:root {
  color-scheme: light;
  --bg: #f6f4ee;
  --surface: #fffdf8;
  --surface-2: #ece8df;
  --ink: #111411;
  --muted: #73776f;
  --line: #dfdad0;
  --orange: #ef5b36;
  --green: #08a860;
  --green-soft: #e2f5e9;
  --amber: #a4680b;
  --amber-soft: #f8ead3;
  --red: #bc4137;
  --red-soft: #f9e3df;
  --blue: #286d9e;
  --blue-soft: #e5eff7;
  --shadow: 0 18px 45px rgba(16, 20, 17, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #111411;
}

body {
  color: var(--ink);
}

.auth-screen {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  min-height: 100dvh;
  padding: clamp(20px, 3.2vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fffdf8;
  background:
    radial-gradient(circle at 76% 8%, rgba(239, 91, 54, 0.48), transparent 34%),
    radial-gradient(circle at 10% 90%, rgba(114, 92, 46, 0.18), transparent 30%),
    linear-gradient(145deg, #17231d, #0b0f0d 64%, #301811);
  box-sizing: border-box;
}

.auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 59px, rgba(255,255,255,0.022) 59px 60px),
    repeating-linear-gradient(0deg, transparent 0 59px, rgba(255,255,255,0.018) 59px 60px);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1320px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) clamp(390px, 32vw, 480px);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}

.auth-visual {
  min-width: 0;
}

.auth-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.auth-brand-row strong,
.auth-brand-row span {
  display: block;
}

.auth-brand-row strong {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.auth-brand-row span {
  margin-top: 2px;
  color: rgba(255,255,255,0.34);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.auth-story {
  margin-top: clamp(36px, 7vh, 84px);
}

.auth-kicker {
  color: #efb09a;
  font-size: 10px;
  letter-spacing: 0.2em;
}

.auth-story h1 {
  margin-top: 18px;
  font-size: clamp(44px, 4.35vw, 78px);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.auth-story p {
  max-width: 540px;
  margin-top: 23px;
  color: rgba(255,255,255,0.5);
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.75;
}

.auth-feature-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-feature-row span {
  padding: 7px 11px;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 9px;
}

.auth-film-frame {
  position: relative;
  width: min(100%, 680px);
  min-height: clamp(180px, 23vh, 250px);
  margin-top: 35px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 21px;
  background:
    radial-gradient(circle at 72% 38%, rgba(239,91,54,0.32), transparent 24%),
    linear-gradient(150deg, #20362f, #081411 58%, #2b1711);
}

.film-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,0.025) 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,0.018) 39px 40px);
}

.film-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  font-size: 18px;
}

.film-caption {
  position: absolute;
  left: 20px;
  top: 18px;
}

.film-caption span {
  display: block;
}

.film-caption span:first-child {
  font-family: "Songti SC", "STSong", serif;
  font-size: 21px;
  letter-spacing: 0.08em;
}

.film-caption span:last-child {
  margin-top: 4px;
  color: rgba(255,255,255,0.4);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.film-timeline {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 19px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
}

.film-timeline::before {
  content: "";
  position: absolute;
  width: 38%;
  height: 100%;
  background: var(--orange);
  border-radius: inherit;
}

.film-timeline i {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  background: var(--orange);
  border: 2px solid #fffdf8;
  border-radius: 50%;
}

.film-timeline i:nth-child(1) { left: 23%; }
.film-timeline i:nth-child(2) { left: 38%; }
.film-timeline i:nth-child(3) { left: 67%; }

.auth-footnote {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.25);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.auth-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: clamp(26px, 2.4vw, 38px);
  color: #fffaf1;
  background:
    radial-gradient(circle at 100% 0%, rgba(239, 91, 54, 0.18), transparent 34%),
    linear-gradient(155deg, rgba(34, 49, 41, 0.96), rgba(12, 18, 15, 0.98));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(0,0,0,0.42);
  backdrop-filter: blur(24px);
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 34px;
  right: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
}

.auth-step {
  display: block;
  color: #f29a7d;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.auth-card h2 {
  margin-top: 12px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(30px, 2.5vw, 40px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.auth-card p {
  margin-top: 10px;
  color: rgba(255,255,255,0.48);
  font-size: clamp(11px, 0.8vw, 13px);
  line-height: 1.7;
}

.auth-method-switch {
  margin-top: 22px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}

.auth-method-switch button {
  min-height: 40px;
  padding: 0 10px;
  color: rgba(255,255,255,0.48);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 11px;
}

.auth-method-switch button.active {
  color: #fffaf1;
  background: rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.auth-method-panel {
  margin-top: 20px;
}

.phone-login-form label {
  display: block;
  margin-top: 14px;
  color: rgba(255,255,255,0.52);
  font-size: 10px;
}

.phone-login-form label:first-child {
  margin-top: 0;
}

.phone-login-form input {
  width: 100%;
  height: 48px;
  margin-top: 7px;
  padding: 0 14px;
  color: #fffaf1;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  outline: 0;
  font-size: 14px;
}

.phone-login-form input:focus {
  border-color: rgba(239,91,54,0.65);
  box-shadow: 0 0 0 3px rgba(239,91,54,0.1);
}

.phone-login-form input::placeholder {
  color: rgba(255,255,255,0.28);
}

.phone-code-row {
  margin-top: 7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.phone-code-row input {
  margin-top: 0;
}

.phone-code-row button {
  min-width: 108px;
  padding: 0 13px;
  color: #f3a388;
  background: rgba(239,91,54,0.09);
  border: 1px solid rgba(239,91,54,0.24);
  border-radius: 12px;
  font-size: 10px;
}

.phone-code-row button:disabled {
  color: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.08);
}

.phone-login-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  color: #fff;
  background: linear-gradient(115deg, #f2633e, #df4b2b);
  border: 0;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 500;
}

.phone-login-note {
  margin-top: 12px !important;
  color: rgba(255,255,255,0.38) !important;
  text-align: center;
  font-size: 9px !important;
}

.auth-login-panel {
  margin-top: 23px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.auth-login-topline {
  padding: 0 2px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,0.38);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.auth-login-topline span:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
}

.auth-login-topline i {
  width: 5px;
  height: 5px;
  background: #67d39a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(103,211,154,0.1);
}

.wechat-login-container {
  position: relative;
  width: 100%;
  min-height: 256px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 48%, rgba(8, 168, 96, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow: none;
}

.wechat-login-container::before,
.wechat-login-container::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239,91,54,0.55));
}

.wechat-login-container::before {
  top: 34px;
  left: 22px;
}

.wechat-login-container::after {
  right: 22px;
  bottom: 34px;
  transform: rotate(180deg);
}

.wechat-login-placeholder {
  padding: 22px;
  text-align: center;
}

.wechat-login-placeholder strong,
.wechat-login-placeholder span {
  display: block;
}

.wechat-login-placeholder strong {
  display: block;
  margin-top: 14px;
  color: #fffaf1;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.wechat-login-placeholder span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  line-height: 1.5;
}

.scan-art {
  position: relative;
  width: 136px;
  height: 136px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  color: #09a85f;
  background:
    radial-gradient(circle at 50% 42%, rgba(9,168,95,0.12), transparent 54%),
    linear-gradient(145deg, #fbf7ee, #e9e1d2);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 24px;
  box-shadow: 0 14px 26px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.8);
}

.scan-art strong {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #0a5033;
  font-family: "Songti SC", "STSong", serif;
  font-size: 31px;
  letter-spacing: 0.04em;
}

.scan-grid {
  position: absolute;
  inset: 29px;
  opacity: 0.28;
  background-image:
    linear-gradient(90deg, #0a5033 1px, transparent 1px),
    linear-gradient(#0a5033 1px, transparent 1px);
  background-size: 11px 11px;
  border-radius: 10px;
}

.scan-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: #09a85f;
  border-style: solid;
}

.scan-corner.top-left {
  top: 16px;
  left: 16px;
  border-width: 2px 0 0 2px;
  border-radius: 11px 0 0;
}

.scan-corner.top-right {
  top: 16px;
  right: 16px;
  border-width: 2px 2px 0 0;
  border-radius: 0 11px 0 0;
}

.scan-corner.bottom-left {
  bottom: 16px;
  left: 16px;
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 11px;
}

.scan-corner.bottom-right {
  right: 16px;
  bottom: 16px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 11px;
}

.wechat-login-note {
  margin: 12px 4px 2px !important;
  color: rgba(255,255,255,0.38) !important;
  text-align: center;
  font-size: 9px !important;
}

.auth-divider {
  margin: 17px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.28);
  font-size: 8px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255,255,255,0.1);
}

.review-demo-entry {
  width: 100%;
  min-height: 44px;
  margin-top: 0;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  font-size: 11px;
  cursor: pointer;
}

.review-demo-entry:hover {
  color: #fffaf1;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

.company-register-entry {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  color: #f0a187;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 10px;
}

.company-register-entry:hover {
  background: rgba(239,91,54,0.07);
  border-color: rgba(239,91,54,0.18);
}

.auth-card small {
  display: block;
  margin-top: 17px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  font-size: 8px;
  line-height: 1.6;
}

.secure-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 5px;
  vertical-align: 1px;
  background: #67d39a;
  border-radius: 50%;
}

@media (min-width: 1500px) {
  .auth-shell {
    width: min(100%, 1420px);
    grid-template-columns: minmax(0, 1.45fr) minmax(430px, 500px);
  }
}

@media (max-width: 1080px) and (min-width: 901px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 38px;
  }

  .auth-story h1 {
    font-size: 46px;
  }

  .auth-card {
    padding: 25px;
  }

  .wechat-login-container {
    min-height: 220px;
  }

  .scan-art {
    width: 116px;
    height: 116px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .auth-screen {
    padding: 20px 34px;
  }

  .auth-story {
    margin-top: 30px;
  }

  .auth-story h1 {
    font-size: clamp(40px, 3.5vw, 60px);
  }

  .auth-film-frame {
    min-height: 156px;
    margin-top: 24px;
  }

  .auth-card {
    padding: 24px 28px;
  }

  .auth-method-panel {
    margin-top: 14px;
  }

  .wechat-login-container {
    min-height: 205px;
  }
}

@media (max-width: 900px) {
  .auth-screen {
    align-items: flex-start;
    overflow-y: auto;
    padding: 24px 18px;
  }

  .auth-shell {
    width: min(100%, 700px);
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .auth-visual {
    display: contents;
  }

  .auth-brand-row {
    order: 0;
    width: 100%;
    margin-bottom: 22px;
  }

  .auth-card {
    order: 1;
    width: 100%;
    margin: 0 0 30px;
  }

  .auth-story {
    order: 2;
    margin: 0;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .auth-feature-row {
    order: 3;
    margin-top: 20px;
  }

  .auth-story h1 {
    font-size: clamp(34px, 7vw, 46px);
  }

  .auth-story p {
    font-size: 13px;
  }

  .auth-film-frame,
  .auth-footnote {
    display: none;
  }

  .wechat-login-container {
    min-height: 230px;
  }
}

@media (max-width: 620px) {
  .auth-screen {
    min-height: 100dvh;
    padding: max(16px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom));
  }

  .auth-brand-icon {
    width: 42px;
    height: 42px;
  }

  .auth-brand-row {
    margin-bottom: 16px;
  }

  .auth-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .auth-story h1 {
    font-size: 34px;
  }

  .auth-story p {
    margin-top: 15px;
    font-size: 12px;
  }

  .auth-card h2 {
    font-size: 28px;
  }

  .auth-method-switch {
    margin-top: 18px;
  }

  .wechat-login-container {
    min-height: 215px;
  }

  .scan-art {
    width: 112px;
    height: 112px;
  }

  .scan-grid {
    inset: 24px;
  }

  .phone-code-row {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .phone-code-row button {
    min-width: 0;
    padding: 0 9px;
  }
}

.company-setup {
  position: relative;
  min-height: 100dvh;
  padding: clamp(20px, 3.2vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  color: #fffdf8;
  background:
    radial-gradient(circle at 80% 12%, rgba(239, 91, 54, 0.38), transparent 32%),
    radial-gradient(circle at 8% 88%, rgba(94, 78, 43, 0.18), transparent 30%),
    linear-gradient(145deg, #17231d, #0b0f0d 64%, #301811);
}

.company-setup-shell {
  width: min(100%, 1240px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
}

.company-setup-intro h1 {
  margin-top: 32px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(42px, 4.2vw, 72px);
  font-weight: 500;
  line-height: 1.22;
}

.company-setup-intro > p {
  max-width: 520px;
  margin-top: 20px;
  color: rgba(255,255,255,0.5);
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.75;
}

.company-setup-points {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-setup-points span {
  padding: 7px 11px;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 9px;
}

.company-setup-card {
  padding: clamp(26px, 3vw, 42px);
  color: #fffaf1;
  background:
    radial-gradient(circle at 100% 0%, rgba(239, 91, 54, 0.16), transparent 32%),
    linear-gradient(155deg, rgba(34, 49, 41, 0.96), rgba(12, 18, 15, 0.98));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(0,0,0,0.42);
}

.company-setup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.company-setup-head h2 {
  margin-top: 10px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(30px, 2.6vw, 42px);
  font-weight: 500;
}

.company-setup-head button {
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  color: rgba(255,255,255,0.54);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 10px;
}

.company-setup-copy {
  margin-top: 12px;
  color: rgba(255,255,255,0.42);
  font-size: 11px;
  line-height: 1.6;
}

.company-form-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.company-form-grid label {
  display: block;
  color: rgba(255,255,255,0.52);
  font-size: 10px;
}

.company-form-grid label.wide {
  grid-column: 1 / -1;
}

.company-form-grid input,
.company-form-grid select {
  width: 100%;
  height: 48px;
  margin-top: 7px;
  padding: 0 14px;
  color: #fffaf1;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  outline: 0;
  font-size: 13px;
}

.company-form-grid select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.4) 50%), linear-gradient(135deg, rgba(255,255,255,0.4) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
}

.company-form-grid option {
  color: var(--ink);
}

.company-form-grid input::placeholder {
  color: rgba(255,255,255,0.27);
}

.company-form-grid input:focus,
.company-form-grid select:focus {
  border-color: rgba(239,91,54,0.65);
  box-shadow: 0 0 0 3px rgba(239,91,54,0.1);
}

.company-module-fieldset {
  margin: 22px 0 0;
  padding: 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
}

.company-module-fieldset legend {
  padding: 0 6px;
  color: rgba(255,255,255,0.52);
  font-size: 10px;
}

.company-module-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.company-module-options label {
  min-height: 40px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.035);
  border-radius: 10px;
  font-size: 10px;
}

.company-module-options input {
  accent-color: var(--orange);
}

.company-setup-note {
  margin-top: 14px;
  color: rgba(255,255,255,0.38);
  font-size: 10px;
}

.company-setup-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 15px;
  color: #fff;
  background: linear-gradient(115deg, #f2633e, #df4b2b);
  border: 0;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 1050px) {
  .company-setup-shell {
    grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
    gap: 34px;
  }

  .company-setup-intro h1 {
    font-size: 46px;
  }
}

@media (max-width: 820px) {
  .company-setup {
    align-items: flex-start;
    padding: 22px 16px;
  }

  .company-setup-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .company-setup-intro h1 {
    margin-top: 20px;
    font-size: 38px;
  }

  .company-setup-card {
    width: 100%;
    padding: 24px 18px;
    border-radius: 24px;
  }
}

@media (max-width: 560px) {
  .company-form-grid {
    grid-template-columns: 1fr;
  }

  .company-form-grid label.wide {
    grid-column: auto;
  }

  .company-module-options {
    grid-template-columns: 1fr 1fr;
  }
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
}

.safe-top {
  height: env(safe-area-inset-top);
}

.app-header {
  min-height: 62px;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 39px;
  height: 39px;
  border-radius: 12px;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: 0.06em;
}

.brand-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-badge {
  padding: 5px 8px;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 999px;
  font-size: 9px;
  white-space: nowrap;
}

.avatar-button,
.large-avatar {
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: var(--orange);
  font-weight: 500;
}

.avatar-button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 12px;
}

.content {
  padding: 5px 18px calc(104px + env(safe-area-inset-bottom));
}

.screen {
  animation: enter 180ms ease-out;
}

@keyframes enter {
  from { opacity: 0.45; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.page-heading {
  min-height: 69px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 9px;
  letter-spacing: 0.13em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family: "Songti SC", "STSong", serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 14px;
  font-weight: 500;
}

.outline-button,
.primary-button,
.chip {
  min-height: 38px;
  border-radius: 12px;
}

.outline-button {
  padding: 0 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11px;
}

.primary-button {
  padding: 0 14px;
  color: #fff;
  background: var(--orange);
  border: 0;
  font-size: 11px;
  font-weight: 500;
}

.full {
  width: 100%;
  min-height: 48px;
}

.finance-hero {
  position: relative;
  overflow: hidden;
  padding: 22px;
  color: #fffdf8;
  background: linear-gradient(145deg, #17231d, #0b0f0d 62%, #311811);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  top: -110px;
  background: rgba(239, 91, 54, 0.55);
  border-radius: 50%;
}

.hero-row,
.hero-metrics,
.hero-value,
.mini-chart {
  position: relative;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.hero-value {
  margin-top: 17px;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero-value small {
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.hero-metrics {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-metrics div {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.hero-metrics div:first-child {
  text-align: left;
}

.hero-metrics div:last-child {
  border-right: 0;
  text-align: right;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 13px;
  font-weight: 500;
}

.hero-metrics span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
}

.mini-chart {
  height: 48px;
  margin-top: 17px;
  padding-top: 8px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-chart span {
  flex: 1;
  min-height: 3px;
  background: #ff7954;
  border-radius: 5px 5px 1px 1px;
}

.mini-chart .mini-chart-empty {
  min-height: 0;
  color: rgba(255, 255, 255, 0.38);
  background: transparent;
  font-size: 10px;
  text-align: center;
}

.metric-grid {
  margin-top: 11px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.metric-card {
  min-width: 0;
  padding: 14px 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.metric-card strong,
.metric-card span {
  display: block;
}

.metric-card strong {
  font-size: 21px;
  font-weight: 500;
}

.metric-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.section-heading {
  margin: 21px 2px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-heading button {
  min-height: 30px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 10px;
}

.alert-list,
.project-list,
.approval-list,
.timeline-list {
  display: grid;
  gap: 8px;
}

.alert-card,
.project-card,
.approval-card,
.event-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.alert-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  background: var(--red-soft);
}

.alert-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: rgba(188, 65, 55, 0.11);
  border-radius: 10px;
  font-size: 14px;
}

.alert-card strong,
.alert-card span {
  display: block;
}

.alert-card strong {
  font-size: 11px;
  font-weight: 500;
}

.alert-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.alert-card button {
  min-height: 32px;
  padding: 0 9px;
  color: var(--red);
  background: var(--surface);
  border: 0;
  border-radius: 9px;
  font-size: 9px;
}

.project-card {
  width: 100%;
  padding: 16px;
  color: var(--ink);
  text-align: left;
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-title,
.project-meta {
  display: block;
}

.project-title {
  font-size: 14px;
  font-weight: 500;
}

.project-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.status-pill,
.access-pill {
  flex: none;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8px;
}

.status-pill {
  color: var(--green);
  background: var(--green-soft);
}

.status-pill.warn {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-pill.danger {
  color: var(--red);
  background: var(--red-soft);
}

.access-pill {
  color: var(--muted);
  background: var(--surface-2);
}

.progress {
  height: 6px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--orange);
  border-radius: inherit;
}

.progress.green span {
  background: var(--green);
}

.progress.amber span {
  background: #d38b22;
}

.project-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
}

.chip-row {
  margin: 4px 0 14px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip {
  flex: none;
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  background: var(--surface-2);
  border: 0;
  font-size: 10px;
}

.chip.active {
  color: #fff;
  background: var(--orange);
}

.calendar-panel {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.calendar-head {
  min-height: 53px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-head button {
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: var(--surface-2);
  border: 0;
  border-radius: 10px;
  font-size: 20px;
}

.calendar-head strong {
  font-size: 13px;
  font-weight: 500;
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.weekday-row {
  min-height: 38px;
  align-items: center;
  color: var(--muted);
  background: var(--surface-2);
  text-align: center;
  font-size: 9px;
}

.calendar-grid {
  border-top: 1px solid var(--line);
}

.calendar-day {
  min-height: 60px;
  padding: 7px 3px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  font-size: 10px;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.outside {
  color: #c7c3b9;
}

.calendar-day.today span:first-child {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--orange);
  border-radius: 50%;
}

.calendar-day.selected {
  background: #fbe7e0;
}

.event-dots {
  height: 10px;
  margin-top: 5px;
  display: flex;
  gap: 3px;
}

.event-dot {
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
}

.event-dot.green {
  background: var(--green);
}

.event-dot.blue {
  background: var(--blue);
}

.muted-text {
  color: var(--muted);
  font-size: 9px;
}

.event-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
}

.event-time {
  color: var(--orange);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.event-main strong,
.event-main span {
  display: block;
}

.event-main strong {
  font-size: 11px;
  font-weight: 500;
}

.event-main span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.count-badge {
  padding: 7px 10px;
  color: var(--orange);
  background: #fbe7e0;
  border-radius: 999px;
  font-size: 10px;
}

.approval-card {
  padding: 16px;
}

.approval-card h3 {
  font-size: 13px;
  font-weight: 500;
}

.approval-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.approval-actions {
  margin-top: 13px;
  display: flex;
  gap: 8px;
}

.approval-actions button {
  flex: 1;
  min-height: 39px;
  border-radius: 11px;
  font-size: 10px;
}

.approve-button {
  color: #fff;
  background: var(--orange);
  border: 0;
}

.reject-button {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.role-pill {
  padding: 7px 10px;
  color: var(--orange);
  background: #fbe7e0;
  border-radius: 999px;
  font-size: 9px;
}

.account-card {
  padding: 20px;
  color: #fff;
  background: linear-gradient(145deg, #17231d, #0b0f0d 62%, #311811);
  border-radius: 24px;
}

.account-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.large-avatar {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 15px;
}

.account-main strong,
.account-main span {
  display: block;
}

.account-main strong {
  font-size: 16px;
  font-weight: 500;
}

.account-main span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
}

.account-metrics {
  margin-top: 22px;
  padding-top: 17px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.account-metrics div {
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
}

.account-metrics div:first-child {
  text-align: left;
}

.account-metrics div:last-child {
  border-right: 0;
  text-align: right;
}

.account-metrics strong,
.account-metrics span {
  display: block;
}

.personal-workbench {
  margin-top: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.personal-workbench-head,
.personal-workbench-summary,
.personal-load-row,
.capacity-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.personal-workbench-head h2 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.personal-workbench-head > span {
  color: var(--muted);
  font-size: 10px;
}

.personal-workbench-summary {
  margin-top: 15px;
  justify-content: flex-start;
  gap: 13px;
}

.personal-kpi {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 27px;
}

.personal-kpi.empty {
  color: var(--muted);
  background: #dedad0;
}

.personal-workbench-copy strong,
.personal-workbench-copy span {
  display: block;
}

.personal-workbench-copy strong {
  font-size: 14px;
}

.personal-workbench-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.personal-metrics {
  margin-top: 15px;
  padding: 13px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.personal-metrics div {
  border-right: 1px solid var(--line);
  text-align: center;
}

.personal-metrics div:last-child {
  border-right: 0;
}

.personal-metrics strong,
.personal-metrics span {
  display: block;
}

.personal-metrics strong {
  font-size: 19px;
  font-weight: 500;
}

.personal-metrics span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.personal-load-row {
  margin-top: 13px;
  color: var(--muted);
  font-size: 10px;
}

.personal-load-row strong {
  color: var(--ink);
  font-weight: 500;
}

.personal-load-track {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  background: #e7e2d8;
  border-radius: 999px;
}

.personal-load-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #cbd94a);
  border-radius: inherit;
}

.compact-heading {
  margin-top: 18px;
}

.personal-task-row {
  width: 100%;
  padding: 11px 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.personal-task-row:last-child {
  border-bottom: 0;
}

.personal-task-priority {
  padding: 3px 6px;
  color: #b83228;
  background: #fbe4df;
  border-radius: 999px;
  font-size: 8px;
}

.personal-task-priority.p1 {
  color: #8b6822;
  background: #f6ecd2;
}

.personal-task-priority.p2 {
  color: #6b7069;
  background: #ece9e0;
}

.personal-task-main {
  min-width: 0;
}

.personal-task-main strong,
.personal-task-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-task-main strong {
  font-size: 11px;
  font-weight: 500;
}

.personal-task-main small,
.personal-task-due {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.personal-task-due {
  margin-top: 0;
}

.account-metrics strong {
  font-size: 13px;
  font-weight: 500;
}

.account-metrics span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
}

.settings-list {
  margin-top: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 19px;
}

.settings-list button {
  width: 100%;
  min-height: 57px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 11px;
}

.settings-list button:last-child {
  border-bottom: 0;
}

.settings-list b {
  color: #aaa69c;
  font-size: 18px;
  font-weight: 400;
}

.version-card {
  margin-top: 14px;
  padding: 16px;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 17px;
  font-size: 9px;
  line-height: 1.65;
}

.version-card span {
  display: block;
}

.tabbar {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 480px);
  min-height: calc(65px + env(safe-area-inset-bottom));
  padding: 6px 8px env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(8, minmax(58px, 1fr));
  overflow-x: auto;
  background: rgba(255, 253, 248, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.tabbar::-webkit-scrollbar {
  display: none;
}

.tabbar button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 11px;
  font-size: 8px;
}

.review-project-grid {
  display: grid;
  gap: 9px;
}

.review-project-card {
  width: 100%;
  padding: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  text-align: left;
}

.review-project-card.active {
  border-color: var(--orange);
  background: #fbe7e0;
}

.review-project-card strong,
.review-project-card span {
  display: block;
}

.review-project-card strong {
  font-size: 13px;
  font-weight: 500;
}

.review-project-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.review-detail-panel {
  margin-top: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 21px;
}

.review-player {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.62);
  background:
    radial-gradient(circle at 75% 30%, rgba(239,91,54,0.32), transparent 24%),
    linear-gradient(145deg, #253b35, #0a1714 58%, #271612);
  font-size: 12px;
}

.review-player video {
  width: 100%;
  height: 260px;
  display: block;
  background: #000;
}

.review-detail-copy {
  padding: 18px;
}

.review-detail-copy h2 {
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
}

.review-detail-copy > p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.review-comment-list {
  max-height: 240px;
  margin-top: 14px;
  overflow-y: auto;
}

.review-comment {
  padding: 11px 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 9px;
  border-top: 1px solid var(--line);
}

.review-comment time {
  color: var(--orange);
  font-size: 9px;
}

.review-comment p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.review-comment-form {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.review-comment-form input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  background: var(--surface-2);
  border: 0;
  border-radius: 11px;
  font-size: 10px;
}

.review-comment-form .primary-button {
  min-height: 42px;
}

.member-table {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.member-row {
  min-height: 64px;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}

.member-row:last-child {
  border-bottom: 0;
}

.member-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface-2);
  border-radius: 11px;
  font-size: 11px;
}

.member-copy strong,
.member-copy span {
  display: block;
}

.member-copy strong {
  font-size: 11px;
  font-weight: 500;
}

.member-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.member-role {
  padding: 5px 8px;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  font-size: 8px;
}

.table-shell {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.data-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 10px;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  color: var(--muted);
  background: var(--surface-2);
  font-size: 9px;
  font-weight: 500;
}

.data-table td {
  color: #50564e;
}

.data-table td:first-child {
  color: var(--ink);
  font-weight: 500;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.budget-status {
  padding: 4px 7px;
  border-radius: 999px;
}

.budget-status.normal {
  color: var(--green);
  background: var(--green-soft);
}

.budget-status.warn {
  color: var(--amber);
  background: var(--amber-soft);
}

.budget-status.over {
  color: var(--red);
  background: var(--red-soft);
}

.budget-history-row {
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.budget-history-row strong,
.budget-history-row span {
  display: block;
}

.budget-history-row strong {
  font-size: 11px;
  font-weight: 500;
}

.budget-history-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.tabbar button.active {
  color: var(--orange);
}

.nav-symbol {
  font-size: 18px;
  line-height: 1;
}

.sheet-mask {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.46);
}

.bottom-sheet {
  width: min(100%, 480px);
  max-height: 86vh;
  margin: 0 auto;
  padding: 10px 19px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--bg);
  border-radius: 25px 25px 0 0;
}

.sheet-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 17px;
  background: #d1ccc1;
  border-radius: 999px;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-header h2 {
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
}

.detail-header button {
  min-height: 33px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 9px;
}

.detail-summary {
  margin: 18px 0 11px;
  padding: 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 17px;
}

.detail-summary strong {
  display: block;
  font-size: 25px;
  font-weight: 500;
}

.detail-summary span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
}

.detail-block {
  margin-top: 10px;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.detail-block h3 {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 500;
}

.detail-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.detail-row strong {
  color: var(--ink);
  font-weight: 500;
}

.mini-link {
  min-height: 25px;
  margin-left: 6px;
  padding: 0 7px;
  color: var(--orange);
  background: #fbe7e0;
  border: 0;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 400;
}

.mini-link.destructive {
  color: var(--red);
  background: var(--red-soft);
}

.add-department-link {
  width: 100%;
  margin: 8px 0 0;
  color: var(--orange);
  background: transparent;
}

.detail-primary {
  margin-top: 10px;
}

.detail-primary.is-disabled {
  color: var(--muted);
  background: var(--surface-2);
}

#project-form label {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 10px;
}

#project-form input,
#project-form select,
#project-form textarea,
#progress-form input,
#progress-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
}

.source-input-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
}

.source-history {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.source-history-label {
  color: var(--muted);
  font-size: 9px;
}

#project-form .source-history-chip {
  width: auto;
  height: 28px;
  margin: 0;
  padding: 0 10px;
  color: var(--orange);
  background: #fbe7e0;
  border: 1px solid rgba(239, 91, 54, 0.18);
  border-radius: 999px;
  font-size: 10px;
}

#project-form .source-history-chip:hover {
  background: #f8d9ce;
}

#project-form input,
#project-form select,
#progress-form input {
  height: 48px;
}

#project-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

#project-form textarea {
  min-height: 92px;
  padding-top: 13px;
  resize: vertical;
}

#progress-form label {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 10px;
}

#progress-form textarea {
  min-height: 110px;
  padding-top: 13px;
  resize: vertical;
}

#progress-form input[type="file"] {
  height: auto;
  padding: 11px;
  font-size: 10px;
}

#progress-form .primary-button {
  margin-top: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.form-grid label {
  margin-top: 16px !important;
}

.department-fieldset {
  margin: 17px 0 0;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.department-fieldset legend {
  padding: 0 5px;
  color: var(--muted);
  font-size: 10px;
}

.department-fieldset p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.department-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.department-options label {
  min-height: 38px;
  margin: 0 !important;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: var(--surface-2);
  border-radius: 10px;
  font-size: 10px;
}

.department-options input {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  accent-color: var(--orange);
}

.form-sync-note {
  margin-top: 15px;
  padding: 10px;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 10px;
  font-size: 9px;
  line-height: 1.5;
}

#project-form .primary-button {
  margin-top: 20px;
}

.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 11px 15px;
  color: #fff;
  background: #20251f;
  border-radius: 11px;
  box-shadow: var(--shadow);
  font-size: 10px;
}

@media (min-width: 640px) {
  body {
    padding: 24px 0;
  }

  .app {
    min-height: calc(100vh - 48px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  }

  .tabbar {
    bottom: 24px;
    border-radius: 0 0 28px 28px;
  }
}

@media (min-width: 900px) {
  body {
    padding: 0;
    background:
      radial-gradient(circle at 92% 0%, rgba(239, 91, 54, 0.2), transparent 34%),
      #111411;
  }

  .app {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
  }

  .safe-top {
    display: none;
  }

  .app-header {
    position: fixed;
    z-index: 25;
    left: 0;
    top: 0;
    width: 214px;
    height: 88px;
    padding: 20px 22px;
    align-items: flex-start;
    background: var(--ink);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .brand-icon {
    width: 42px;
    height: 42px;
  }

  .brand-copy strong {
    color: #fffdf8;
  }

  .brand-copy small {
    color: rgba(255, 255, 255, 0.35);
  }

  .header-actions {
    margin-top: 15px;
  }

  .demo-badge {
    color: #efad55;
    background: rgba(211, 139, 34, 0.14);
  }

  .content {
    margin-left: 214px;
    width: calc(100% - 214px);
    max-width: 1440px;
    padding: 30px 38px 60px;
  }

  .screen {
    max-width: 1240px;
  }

  .page-heading {
    min-height: 75px;
  }

  h1 {
    font-size: 34px;
  }

  .finance-hero {
    min-height: 245px;
    padding: 28px;
  }

  .hero-value {
    font-size: 48px;
  }

  .hero-metrics {
    max-width: 580px;
  }

  .mini-chart {
    height: 66px;
  }

  .metric-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    max-width: 760px;
  }

  .metric-card {
    padding: 18px;
  }

  #home-projects,
  #project-list,
  .review-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-detail-panel {
    display: grid;
    grid-template-columns: minmax(420px, 1.3fr) minmax(300px, 0.7fr);
  }

  .review-player {
    min-height: 430px;
  }

  .review-player video {
    height: 430px;
  }

  .alert-list {
    max-width: 760px;
  }

  .calendar-panel {
    max-width: 860px;
  }

  .calendar-day {
    min-height: 72px;
  }

  .timeline-list,
  .approval-list {
    max-width: 860px;
  }

  .account-card,
  .settings-list,
  .version-card {
    max-width: 860px;
  }

  .tabbar {
    left: 0;
    top: 88px;
    bottom: 0;
    width: 214px;
    min-height: 0;
    padding: 18px 14px;
    transform: none;
    align-content: start;
    grid-template-columns: 1fr;
    gap: 7px;
    background: var(--ink);
    border-top: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    backdrop-filter: none;
  }

  .tabbar button {
    min-height: 50px;
    padding: 0 15px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.48);
    border-radius: 12px;
    font-size: 12px;
  }

  .tabbar button.active {
    color: #fffdf8;
    background: rgba(255, 255, 255, 0.08);
  }

  .tabbar button.active .nav-symbol {
    color: var(--orange);
  }

  .nav-symbol {
    width: 23px;
    font-size: 18px;
    text-align: center;
  }

  .sheet-mask {
    align-items: center;
    justify-content: center;
    padding: 28px;
  }

  .bottom-sheet {
    width: min(600px, 100%);
    max-height: min(840px, 90vh);
    border-radius: 25px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  }

  .toast {
    bottom: 28px;
  }
}
