:root {
  color-scheme: dark;
  --bg: #04131a;
  --bg-deep: #020c12;
  --surface: #081d26;
  --surface-2: #0b232d;
  --surface-3: #0d2935;
  --line: #23424d;
  --line-soft: #183640;
  --text: #dce7e8;
  --text-soft: #aebfc3;
  --number: #dbe9f3;
  --muted: #78939b;
  --muted-2: #526f78;
  --mint: #55d3a4;
  --mint-strong: #68ddb2;
  --cyan: #648fe0;
  --amber: #d8b067;
  --orange: #ef8c55;
  --red: #f0737c;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 18px 50px rgba(0, 7, 10, .28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(85, 211, 164, .1), transparent 34rem),
    radial-gradient(ellipse 33rem 26rem at 80% 32%, rgba(54, 122, 169, .15), transparent),
    radial-gradient(ellipse 38rem 30rem at 14% 69%, rgba(28, 101, 131, .13), transparent),
    radial-gradient(ellipse at 92% 95%, rgba(100, 143, 224, .12), transparent 38rem),
    linear-gradient(145deg, #06171f 0%, #041219 48%, #020c12 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 194, 201, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 194, 201, .026) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), rgba(0,0,0,.16));
}
.unit-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.unit-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 11px;
  line-height: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
.unit-mark svg { display: block; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.35; stroke-linecap: round; stroke-linejoin: round; }
.unit-mark--pr { color: #8cd8c1; background: rgba(88, 195, 163, .075); border-color: rgba(116, 208, 179, .42); }
.unit-mark--seeding { color: #9bbcf0; background: rgba(108, 150, 213, .085); border-color: rgba(126, 169, 229, .42); }
.unit-mark--media { color: #aebed5; background: rgba(119, 151, 185, .075); border-color: rgba(143, 173, 207, .4); }
.unit-mark--large { width: 54px; height: 54px; border-radius: 12px; }
.unit-mark--large svg { width: 34px; height: 34px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(100, 143, 224, .3);
  outline-offset: 2px;
}
button:disabled { cursor: not-allowed; opacity: .5; }

.app-shell { display: none; min-height: 100vh; }
.app-shell.is-authenticated { display: block; }

.login-screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  padding: 42px 22px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 23% 18%, rgba(85, 211, 164, .1), transparent 27rem),
    radial-gradient(circle at 82% 78%, rgba(100, 143, 224, .14), transparent 34rem),
    linear-gradient(145deg, rgba(4, 19, 26, .98), rgba(2, 12, 18, .99));
}
.login-screen::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .65; background-image: linear-gradient(rgba(153, 207, 225, .042) 1px, transparent 1px), linear-gradient(90deg, rgba(153, 207, 225, .042) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000 8%, transparent 72%); }
.login-screen::after { content: ""; position: absolute; z-index: 0; left: 50%; top: 48%; width: min(720px, 90vw); height: 540px; pointer-events: none; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(48, 111, 150, .16), rgba(42, 89, 131, .065) 48%, transparent 72%); filter: blur(38px); }
.login-screen[hidden] { display: none; }
.login-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid rgba(153, 205, 224, .28);
  border-radius: 18px;
  background: radial-gradient(circle at 4% 0%, rgba(85, 211, 164, .105), transparent 18rem), linear-gradient(145deg, rgba(2, 19, 29, .56), rgba(2, 13, 23, .45));
  box-shadow: 0 32px 90px rgba(0, 7, 11, .43), inset 0 1px 0 rgba(224, 245, 255, .12), inset 1px 0 0 rgba(153, 210, 234, .055), inset 0 0 36px rgba(104, 166, 199, .035);
  backdrop-filter: blur(9px) saturate(115%);
}
.login-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; pointer-events: none; background: linear-gradient(180deg, rgba(176, 223, 246, .05), transparent); }
.login-brand { display: flex; align-items: center; gap: 13px; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif; letter-spacing: .13em; }
.login-brand small { margin-top: 4px; color: var(--muted); font-size: .68rem; }
.login-heading { margin: 44px 0 27px; }
.login-heading h1 { margin: 9px 0 8px; font-size: 1.85rem; letter-spacing: -.04em; }
.login-heading p { margin: 0; color: var(--text-soft); font-size: .83rem; line-height: 1.7; }
.login-form { display: grid; gap: 18px; }
.login-form label { display: grid; gap: 8px; color: var(--text-soft); font-size: .76rem; font-weight: 650; }
.login-form select, .login-form input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(4, 21, 32, .63);
  color: var(--text);
}
.login-form .primary-button { margin-top: 3px; min-height: 48px; }
.site-filing { color: var(--muted); font-size: .72rem; text-align: center; letter-spacing: .02em; }
.site-filing a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(120, 147, 155, .45); }
.site-filing a:hover, .site-filing a:focus-visible { color: var(--text); border-bottom-color: currentColor; }
.site-filing-login { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 18px; }
.site-filing-app { padding: 0 20px 25px; }
.demo-login-note {
  margin-top: 22px;
  padding: 13px 14px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(100, 143, 224, .24);
  border-radius: 9px;
  background: rgba(100, 143, 224, .07);
}
.demo-login-note strong { color: #b8ccef; font-size: .72rem; }
.demo-login-note span { color: var(--muted); font-size: .68rem; line-height: 1.55; }
.global-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  padding: 0 clamp(20px, 4vw, 68px);
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(154, 197, 202, .18);
  background: linear-gradient(90deg, rgba(7, 26, 34, .96), rgba(5, 20, 27, .92), rgba(7, 25, 35, .95));
  box-shadow: 0 12px 34px rgba(0, 7, 10, .16);
  backdrop-filter: blur(22px) saturate(130%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  padding: 9px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  border: 1px solid rgba(102, 226, 193, .5);
  border-radius: 11px;
  background: rgba(53, 221, 177, .09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(53,221,177,.06);
}
.brand-mark i { flex: 1; border-radius: 2px 2px 0 0; background: var(--mint); }
.brand-mark i:nth-child(1) { height: 45%; }
.brand-mark i:nth-child(2) { height: 76%; }
.brand-mark i:nth-child(3) { height: 100%; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong {
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: .98rem;
  letter-spacing: .14em;
}
.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .035em;
}

.main-nav { align-self: stretch; display: flex; align-items: stretch; gap: 4px; }
.nav-item {
  position: relative;
  min-width: 80px;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  line-height: 1;
}
.nav-item > span { font-size: .82rem; }
.nav-item > small { color: inherit; font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif; font-size: .53rem; font-weight: 400; letter-spacing: .09em; }
.nav-item::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.018); }
.nav-item.active { color: var(--text); font-weight: 700; }
.nav-item:hover > small, .nav-item.active > small { color: inherit; }
.nav-item.active::after { background: var(--mint); }
.nav-badge {
  position: absolute;
  top: 10px;
  right: 7px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: .58rem;
  font-style: normal;
  font-weight: 800;
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.account-security-button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(132, 181, 202, .28);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(24, 56, 71, .76), rgba(9, 31, 43, .62));
  color: var(--text-soft);
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(14px);
}
.account-security-button:hover { border-color: rgba(122, 188, 221, .6); color: var(--text); background: rgba(32, 70, 90, .8); }
.primary-button, .secondary-button, .ghost-button, .text-button, .module-link, .back-link {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 15px;
  font-size: .875rem;
  font-weight: 700;
}
.primary-button, .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(137, 183, 215, .25); border-radius: 10px;
  font-weight: 600; line-height: 1.4;
  backdrop-filter: blur(16px);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.primary-button { background: linear-gradient(135deg, rgba(48, 89, 120, .94), rgba(21, 54, 78, .88)); border-color: rgba(147, 195, 227, .56); color: #e4eff7; box-shadow: inset 0 1px 0 rgba(225, 243, 255, .18), 0 5px 16px rgba(3, 16, 29, .22); }
.primary-button:hover:not(:disabled) { background: linear-gradient(135deg, rgba(60, 107, 139, .96), rgba(29, 68, 94, .92)); border-color: #9bc3dd; box-shadow: inset 0 1px 0 rgba(225, 243, 255, .24), 0 7px 20px rgba(3, 16, 29, .3); }
.secondary-button { background: linear-gradient(135deg, rgba(29, 55, 73, .64), rgba(8, 26, 40, .72)); color: #c2d4e0; box-shadow: inset 0 1px 0 rgba(221, 240, 255, .07); }
.secondary-button:hover:not(:disabled) { border-color: rgba(145, 190, 219, .57); background: linear-gradient(135deg, rgba(41, 76, 100, .74), rgba(12, 35, 51, .8)); color: #e0ecf7; }
.secondary-button.warning-button { border-color: rgba(216, 176, 103, .44); background: linear-gradient(135deg, rgba(100, 72, 39, .36), rgba(27, 31, 32, .68)); color: #eac891; }
.secondary-button.warning-button:hover:not(:disabled) { border-color: rgba(230, 187, 111, .73); background: linear-gradient(135deg, rgba(119, 86, 45, .48), rgba(36, 38, 34, .74)); color: #f3d5a4; }
:is(.primary-button, .secondary-button):active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 2px 6px rgba(0, 9, 19, .24); }
:is(.primary-button, .secondary-button):disabled { transform: none; box-shadow: none; }
.heading-action-menu > summary:focus-visible { outline: 2px solid #8eafd0; outline-offset: 3px; }
.form-actions { flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .primary-button, .secondary-button { transition: none; } }
.compact-button { min-height: 40px; padding-inline: 13px; }
.small-button { min-height: 36px; padding: 7px 12px; font-size: .8rem; }
.icon-button { width: 42px; padding: 0; font-size: 1.25rem; }
.text-button, .module-link, .back-link { min-height: auto; padding: 3px 0; background: transparent; color: #a5c9df; }
.text-button:hover, .module-link:hover, .back-link:hover { color: #d3eafa; }
.invoice-correction-trigger { white-space: nowrap; padding: 6px 10px; border: 1px solid rgba(100,143,224,.3); border-radius: 7px; background: linear-gradient(135deg, rgba(100,143,224,.12), rgba(8,29,38,.4)); color: var(--number); }
.invoice-correction-trigger:hover { border-color: rgba(120,170,235,.55); background: linear-gradient(135deg, rgba(100,143,224,.2), rgba(8,29,38,.48)); color: var(--text); }
.invoice-record-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
.invoice-void-trigger { white-space: nowrap; padding: 6px 10px; border: 1px solid rgba(240,115,124,.28); border-radius: 7px; background: rgba(240,115,124,.07); color: #e7a4aa; }
.invoice-void-trigger:hover { border-color: rgba(240,115,124,.5); background: rgba(240,115,124,.14); color: #f3bdc2; }

.role-switcher {
  position: relative;
  min-width: 164px;
  min-height: 48px;
  padding: 6px 30px 6px 6px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(154, 197, 202, .22);
  border-radius: 11px;
  background: rgba(16, 43, 52, .5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(14px);
}
.role-switcher select { position: absolute; inset: 0; width: 100%; opacity: 0; }
.avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 221, 177, .38);
  border-radius: 8px;
  background: rgba(53, 221, 177, .09);
  color: var(--mint);
  font-size: .82rem;
  font-weight: 800;
}
.role-copy small, .role-copy strong { display: block; }
.role-copy small { color: var(--muted); font-size: .6875rem; line-height: 1.1; }
.role-copy strong { margin-top: 4px; font-size: .8125rem; line-height: 1.1; }
.chevron { position: absolute; right: 11px; color: var(--muted); pointer-events: none; }
.logout-button {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .62rem;
}
.logout-button:hover { color: var(--text); }

.workspace { width: min(1680px, 100%); margin: 0 auto; padding: 0 clamp(20px, 4vw, 68px) 80px; }
.view { display: none; }
.view.active { display: block; animation: view-in .24s ease both; }
@keyframes view-in { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.page-heading {
  position: relative;
  z-index: 30;
  min-height: 170px;
  padding: 34px 0 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.page-heading h1 { margin: 9px 0 0; font-size: clamp(1.8rem, 2.6vw, 2.45rem); line-height: 1.12; letter-spacing: -.045em; }
.page-heading p { margin: 9px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.page-subtitle-en {
  display: block;
  margin-top: 11px;
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: .69rem;
  font-weight: 400;
  letter-spacing: .15em;
}
.compact-heading { min-height: 158px; }
.title-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; }
.status-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--mint); box-shadow: 0 0 0 4px rgba(53,221,177,.09); }
.heading-controls { display: flex; align-items: center; gap: 10px; }
.heading-controls > .primary-button,
.heading-controls > .secondary-button,
.heading-action-menu > summary {
  min-height: 42px;
  border: 1px solid rgba(80, 145, 131, .56);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(33, 72, 74, .92), rgba(27, 58, 63, .94) 58%, rgba(22, 50, 56, .95));
  color: #d8ebe5;
  box-shadow: inset 0 1px 0 rgba(178, 224, 208, .13), inset 0 -1px 0 rgba(1, 16, 20, .27), 0 10px 24px rgba(0, 8, 18, .25);
  backdrop-filter: blur(16px);
  transition: border-color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
  white-space: nowrap;
}
.heading-controls > .primary-button:hover,
.heading-controls > .secondary-button:hover,
.heading-action-menu > summary:hover {
  border-color: rgba(126, 195, 171, .76);
  background: linear-gradient(145deg, rgba(42, 87, 86, .95), rgba(31, 70, 73, .96) 58%, rgba(23, 55, 61, .96));
  box-shadow: inset 0 1px 0 rgba(192, 233, 216, .18), 0 12px 28px rgba(7, 35, 43, .3);
  transform: translateY(-1px);
}
.heading-controls > :is(.primary-button, .secondary-button):active,
.heading-action-menu > summary:active { transform: translateY(0); }
.heading-action-menu { position: relative; z-index: 6; flex: 0 0 auto; }
.heading-action-menu > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: .875rem; font-weight: 700; cursor: pointer; list-style: none; }
.people-export-menu > summary { min-height: 36px; padding: 7px 12px; border: 1px solid rgba(135, 180, 209, .3); border-radius: 9px; background: linear-gradient(135deg, rgba(29, 55, 73, .64), rgba(8, 26, 40, .72)); color: #c2d4e0; font-size: .78rem; box-shadow: inset 0 1px 0 rgba(221, 240, 255, .07); }
.heading-action-menu > summary::-webkit-details-marker { display: none; }
.heading-action-menu[open] > summary { border-color: rgba(126, 195, 171, .76); }
.heading-action-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: max-content; min-width: 176px; display: grid; gap: 4px; padding: 7px; border: 1px solid rgba(80, 145, 131, .42); border-radius: 10px; background: linear-gradient(145deg, rgba(22, 54, 59, .97), rgba(7, 29, 38, .98)); box-shadow: 0 20px 42px rgba(0, 6, 18, .42), inset 0 1px 0 rgba(192, 233, 216, .08); backdrop-filter: blur(22px); }
.heading-action-menu-panel > button { width: 100%; min-height: 36px; padding: 8px 12px; border: 0; background: transparent; justify-content: flex-start; text-align: left; font-weight: 550; }
.heading-action-menu-panel > button:hover { background: rgba(91, 164, 144, .18); }
@media (prefers-reduced-motion: reduce) { .heading-controls > .primary-button, .heading-controls > .secondary-button, .heading-action-menu > summary { transition: none; } }
.period-switch {
  display: flex;
  padding: 4px;
  border: 1px solid rgba(154, 197, 202, .22);
  border-radius: 10px;
  background: rgba(16, 43, 52, .48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(14px);
}
.period-switch button { min-height: 34px; padding: 7px 13px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: .8125rem; }
.period-switch button:hover { color: var(--text); }
.period-switch button.active {
  background: rgba(87, 188, 242, .1);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(87, 188, 242, .36), 0 5px 14px rgba(0,0,0,.12);
}
.period-date-select {
  min-width: 96px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(154, 197, 202, .22);
  border-radius: 9px;
  background: rgba(7, 25, 36, .72);
  color: var(--text);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(12px);
}
.period-slot-select { min-width: 76px; }
.period-date-select:hover { border-color: rgba(154, 197, 202, .42); }
.history-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: -8px 0 16px; }
.history-toolbar > span { margin-right: 4px; color: var(--text-soft); font-size: .76rem; font-weight: 650; }
.history-toolbar > span small { margin-left: 5px; color: var(--muted); font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif; font-size: .62rem; font-weight: 500; letter-spacing: .11em; }
.history-toolbar > small { margin-left: auto; color: var(--muted); font-size: .7rem; }
.audit-panel { overflow: hidden; }
.audit-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 104px; align-items: end; gap: 14px; padding: 2px 0 22px; }
.audit-filters label { display: flex; min-width: 0; flex-direction: column; gap: 8px; color: var(--text-soft); font-size: .72rem; line-height: 1.2; }
.audit-filters select, .audit-filters input { display: block; width: 100%; min-width: 0; height: 42px; min-height: 42px; padding: 0 12px; border: 1px solid rgba(154, 197, 202, .24); border-radius: 9px; background: rgba(5, 22, 30, .55); color: var(--text); font-size: .8rem; line-height: normal; color-scheme: dark; }
.audit-filters button { height: 42px; min-height: 42px; }
.audit-table { min-width: 680px; }
.audit-table td:first-child { white-space: nowrap; color: var(--text-soft); }
.audit-table td:nth-child(2) { white-space: nowrap; }
.audit-detail { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; }
.audit-pager { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; color: var(--text-soft); font-size: .75rem; }
.audit-pager > div { display: flex; gap: 8px; }
.audit-notice { margin: 0; padding: 0 24px 22px; color: var(--muted); font-size: .7rem; }
.person-status-content { max-height: min(820px, calc(100vh - 36px)); overflow-y: auto; }
.handover-list { display: grid; gap: 10px; margin-top: 20px; padding: 16px; border: 1px solid rgba(151, 200, 220, .18); border-radius: 10px; background: rgba(5, 22, 30, .44); }
.handover-list > strong { font-size: .82rem; color: var(--text); }
.handover-list > p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.handover-row { display: grid; gap: 7px; padding-top: 10px; border-top: 1px solid var(--line-soft); color: var(--text-soft); font-size: .75rem; }
.handover-row select { width: 100%; min-width: 0; }
@media (max-width: 960px) { .audit-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .audit-filters button { justify-self: start; min-width: 104px; } }
@media (max-width: 520px) { .audit-filters { grid-template-columns: 1fr; } .audit-filters button { width: 100%; } }

.metric-module, .director-card, .attention-panel, .data-panel, .director-hero-panel, .resource-hero-card, .resource-stat-card {
  border: 1px solid rgba(151, 200, 220, .25);
  border-radius: 14px;
  background: radial-gradient(circle at 4% 0%, rgba(85, 211, 164, .105), transparent 18rem), linear-gradient(145deg, rgba(2, 19, 29, .43), rgba(2, 13, 23, .35));
  box-shadow: inset 0 1px 0 rgba(216, 241, 255, .105), inset 1px 0 0 rgba(153, 210, 234, .045), inset 0 0 28px rgba(105, 176, 209, .02), 0 18px 44px rgba(0, 7, 10, .26);
  backdrop-filter: blur(8px) saturate(115%);
}
.metric-module { overflow: hidden; margin-bottom: 20px; }
.finance-module {
  border-top-color: rgba(85, 211, 164, .58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 22px 54px rgba(0, 7, 10, .32), 0 -1px 18px rgba(85, 211, 164, .03);
}
.module-heading {
  min-height: 70px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(121, 170, 177, .18);
  background: linear-gradient(90deg, rgba(255,255,255,.018), transparent 62%);
}
.module-heading h2, .section-heading h2, .panel-heading h2 { margin: 0; font-size: 1rem; line-height: 1.3; }
.module-heading p { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
.module-title-block { display: block; }
.module-title-en {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .12em;
  white-space: nowrap;
}
.module-index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 221, 177, .45);
  border-radius: 7px;
  background: rgba(53, 221, 177, .065);
  color: var(--mint);
  font-size: .7rem;
  font-weight: 800;
}
.module-link { margin-left: auto; font-size: .78rem; }
.module-link span { margin-left: 5px; }
.module-status { margin-left: auto; color: var(--muted-2); font-size: .72rem; }
.metric-row { display: grid; gap: 1px; background: rgba(121, 170, 177, .13); }
.five-columns { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.four-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.six-columns { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.metric-cell {
  min-width: 0;
  min-height: 150px;
  padding: 23px 21px;
  background: radial-gradient(circle at 4% 0%, rgba(85, 211, 164, .105), transparent 18rem), linear-gradient(145deg, rgba(2, 19, 29, .56), rgba(2, 13, 23, .48));
  box-shadow: inset 0 1px 0 rgba(189, 229, 247, .075), inset 0 -1px 0 rgba(0, 6, 12, .12);
  backdrop-filter: blur(9px) saturate(115%);
}
.metric-cell > span, .project-total-cell > span, .compact-stat > span, .director-highlight > span { display: block; color: var(--muted); font-size: .8125rem; }
.metric-label-en {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .075em;
  line-height: 1;
  text-transform: uppercase;
}
.metric-cell > strong, .value-with-badge > strong {
  display: block;
  margin-top: 19px;
  color: var(--text);
  font-size: clamp(1.55rem, 2.2vw, 2.08rem);
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.five-columns .metric-cell > strong { font-size: clamp(1.12rem, 1.55vw, 1.65rem); }
.metric-cell.hero-metric > strong { color: var(--text); }
.finance-module .metric-cell > strong, .finance-module .value-with-badge { margin-top: 14px; }
.finance-module .metric-cell:nth-child(-n+3) > strong { color: var(--number); }
section[aria-labelledby="resourceSummaryTitle"] .hero-metric > strong { color: var(--cyan); }
.metric-cell > small { display: block; margin-top: 12px; color: var(--muted-2); font-size: .72rem; line-height: 1.35; }
.value-with-badge { margin-top: 19px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.value-with-badge > strong { margin: 0; }

.margin-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .6875rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}
.margin-low, .margin-text.low { color: var(--red); }
.margin-normal, .margin-text.normal { color: var(--amber); }
.margin-good, .margin-text.good { color: var(--mint); }
.margin-excellent, .margin-text.excellent { color: var(--cyan); }

.project-metric-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(121, 170, 177, .13); }
.submission-history-list { display: grid; gap: 12px; margin-top: 18px; min-height: 160px; }
.submission-history-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(20, 46, 66, .32); }
.submission-history-item > div { min-width: 0; }
.submission-history-item strong, .submission-history-item small { display: block; overflow-wrap: anywhere; }
.submission-history-item small { color: var(--text-soft); margin: 8px 0; font-size: .75rem; }
.submission-history-item p, .correction-history p { font-size: .8rem; line-height: 1.7; overflow-wrap: anywhere; }
.submission-history-item button { flex-shrink: 0; }
.workflow-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; font-size: .8rem; color: var(--text-soft); }
.resubmission-note label { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.resubmission-note input[type="checkbox"] { width: 16px; min-height: 16px; }
#returnedSubmissionBadge { color: #e3b781; }
.project-table .status-chip { white-space: nowrap; }
.project-table { min-width: 1180px; }
@media (max-width: 600px) { .submission-history-item { align-items: stretch; flex-direction: column; } }
.project-chart-card { position: relative; }
.project-number-chart { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 22px 0 24px; }
.project-number-chart > div:first-child { min-width: 0; }
.project-number-chart strong { color: #e2edfc; font-size: clamp(4rem, 7.5vw, 6.25rem); line-height: .98; letter-spacing: -.045em; font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 2px 24px rgba(134,175,231,.12); }
.project-number-chart small { display: block; margin-top: 10px; color: var(--text-soft); font-size: .74rem; }
.project-cycle-pie { --cycle-size: clamp(152px, 15.5vw, 184px); position: relative; width: var(--cycle-size); height: var(--cycle-size); flex: 0 0 var(--cycle-size); display: grid; place-items: center; isolation: isolate; border-radius: 50%; background: transparent; }
.project-cycle-pie::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--cycle-segments, rgba(125,160,188,.12)); -webkit-mask: radial-gradient(circle closest-side, transparent 67%, #000 68%); mask: radial-gradient(circle closest-side, transparent 67%, #000 68%); box-shadow: inset 0 0 0 1px rgba(222,240,255,.20); transition: filter .25s ease; }
.project-cycle-pie::after { content: ""; position: absolute; inset: 19%; z-index: -1; border: 1px solid rgba(154,188,218,.13); border-radius: inherit; background: radial-gradient(circle at 32% 22%, rgba(106,149,183,.08), transparent 72%); box-shadow: 0 0 24px rgba(5,15,28,.20); }
.project-cycle-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; pointer-events: none; }
.project-cycle-center > span { color: #b8cbdc; font-size: .83rem; font-weight: 500; letter-spacing: .08em; }
.project-number-chart .project-cycle-center small { margin: 0; color: #8ca6bb; font-family: "Avenir Next", "Helvetica Neue", sans-serif; font-size: .58rem; font-weight: 500; letter-spacing: .13em; }
.project-chart-card:hover .project-cycle-pie::before { filter: brightness(1.09); }
.project-cycle-pie.is-empty::before { box-shadow: none; }
.project-chart-card .mini-tags { margin-top: 0; gap: 10px; }
.project-chart-card .mini-tags em { padding: 10px 6px; border-radius: 8px; font-weight: 500; }
.project-chart-card .mini-tags b { font-size: .86rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.project-cycle-share { display: block; margin-top: 5px; font-size: .67rem; font-weight: 400; opacity: .9; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .project-cycle-pie::before { transition: none; } }
@media (max-width: 600px) { .project-number-chart { flex-wrap: wrap; } .project-number-chart > div:first-child { flex-shrink: 0; } }
@media (max-width: 380px) { .project-cycle-pie { --cycle-size: 124px; } .project-number-chart { gap: 14px; } .project-number-chart strong { font-size: 3.5rem; } }
@media (min-width: 761px) and (max-width: 1000px) { .project-number-chart { gap: 16px; } .project-number-chart strong { font-size: 4rem; } }
.project-as-of { display: block; color: var(--muted); font-size: .69rem; line-height: 1.5; margin-top: 12px; }
.month-result { display: block; padding: 12px 14px; border-left: 2px solid rgba(139,187,215,.55); background: rgba(40,77,97,.15); color: var(--number); font-size: .95rem; font-variant-numeric: tabular-nums; }
.project-total-cell, .compact-stat { min-width: 0; min-height: 170px; padding: 24px 22px; background: radial-gradient(circle at 4% 0%, rgba(85, 211, 164, .105), transparent 18rem), linear-gradient(145deg, rgba(2, 19, 29, .56), rgba(2, 13, 23, .48)); box-shadow: inset 0 1px 0 rgba(189, 229, 247, .075), inset 0 -1px 0 rgba(0, 6, 12, .12); backdrop-filter: blur(10px) saturate(115%); }
.project-total-cell.project-chart-card { padding: 26px 28px 22px; }
.project-total-cell > strong { display: block; margin-top: 10px; font-size: 2.45rem; line-height: 1; letter-spacing: -.04em; }
.project-total-cell > strong small { margin-left: 5px; color: var(--muted); font-size: .75rem; font-weight: 500; }
.mini-tags { margin-top: 19px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini-tags em { min-width: 0; padding: 6px 5px; border: 1px solid transparent; border-radius: 6px; font-size: .72rem; font-style: normal; font-weight: 600; text-align: center; white-space: nowrap; }
.mini-tags em:nth-child(1) { border-color: rgba(100, 143, 224, .22); background: rgba(100, 143, 224, .11); color: #9fb7e8; }
.mini-tags em:nth-child(2) { border-color: rgba(85, 211, 164, .2); background: rgba(85, 211, 164, .09); color: #83cbb7; }
.mini-tags em:nth-child(3) { border-color: rgba(216, 176, 103, .2); background: rgba(216, 176, 103, .1); color: #cbb783; }
.mini-tags b { margin-left: 4px; color: inherit; }
.compact-stat { display: flex; flex-direction: column; justify-content: center; }
.compact-stat > strong { margin-top: 12px; font-size: 2.3rem; line-height: 1; }
.compact-stat > small { margin-top: 15px; color: var(--muted-2); font-size: .72rem; line-height: 1.45; }
.project-total-cell:nth-child(2) > strong { color: var(--cyan); }
.compact-stat:nth-child(3) > strong { color: var(--red); }
.compact-stat.attention { background: radial-gradient(circle at 4% 0%, rgba(85, 211, 164, .105), transparent 18rem), linear-gradient(145deg, rgba(2, 19, 29, .56), rgba(2, 13, 23, .48)); }
.compact-stat.attention > strong { color: var(--red); }

.customer-module { border-top-color: rgba(100, 143, 224, .52); }
.customer-index { border-color: rgba(100, 143, 224, .45); background: rgba(100, 143, 224, .07); color: var(--cyan); }
.customer-sort { margin-left: auto; color: var(--text-soft); font-size: .72rem; white-space: nowrap; }
.customer-insights {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr);
  background: rgba(121, 170, 177, .13);
}
.customer-ranking { min-width: 0; display: flex; flex-direction: column; overflow-x: auto; background: rgba(3, 17, 24, .56); }
.customer-bar-head,
.customer-bar {
  display: grid;
  grid-template-columns: minmax(140px, .75fr) minmax(200px, 2fr) minmax(112px, auto) 62px;
  align-items: center;
  gap: 14px;
  padding-inline: 22px;
}
.customer-bar-head {
  min-height: 38px;
  color: var(--muted-2);
  font-size: .65rem;
}
.customer-bar-head span:nth-child(n+3) { text-align: right; }
.customer-bars { border-top: 1px solid var(--line-soft); }
.customer-bar {
  --customer-color: var(--cyan);
  min-width: 0;
  min-height: 42px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,.004);
}
.customer-good { --customer-color: var(--mint); }
.customer-normal { --customer-color: var(--amber); }
.customer-low { --customer-color: var(--red); }
.customer-name { min-width: 0; display: grid; grid-template-columns: 22px auto 1fr; align-items: center; gap: 8px; }
.customer-name span { color: var(--customer-color); font-size: .66rem; font-weight: 800; }
.customer-name strong { overflow: hidden; color: var(--text); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.customer-name small { color: var(--muted-2); font-size: .62rem; text-align: right; white-space: nowrap; }
.customer-bar-track { height: 9px; overflow: hidden; border-radius: 999px; background: rgba(154, 197, 202, .075); }
.customer-bar-track i { display: block; width: var(--bar-width); height: 100%; border-radius: inherit; background: var(--customer-color); box-shadow: 0 0 16px color-mix(in srgb, var(--customer-color) 22%, transparent); opacity: .8; }
.customer-bar > b { color: var(--number); font-size: .76rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.customer-bar > em { color: var(--customer-color); font-size: .74rem; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

.customer-share {
  min-width: 0;
  padding: 16px 20px 18px;
  border-left: 1px solid rgba(121, 170, 177, .16);
  background: linear-gradient(145deg, rgba(16, 43, 59, .58), rgba(5, 20, 28, .72));
}
.customer-share-heading strong,
.customer-share-heading small { display: block; }
.customer-share-heading strong { color: var(--text-soft); font-size: .75rem; }
.customer-share-heading small { margin-top: 5px; color: var(--text-soft); font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif; font-size: .6rem; font-weight: 400; letter-spacing: .07em; }
.customer-share-content { min-height: 320px; display: grid; grid-template-columns: 168px minmax(118px, 1fr); align-items: center; gap: 20px; }
.customer-donut {
  position: relative;
  width: 168px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    #9cbce5 0 20.7%,
    #d7a56a 20.7% 38%,
    #7dbfaa 38% 53.5%,
    #b5a0da 53.5% 65.8%,
    #d0828f 65.8% 77.1%,
    #79b6cb 77.1% 86.6%,
    #c7bd7c 86.6% 94.1%,
    #a69bc9 94.1% 100%
  );
  box-shadow: 0 18px 40px rgba(0, 7, 10, .28), inset 0 0 0 1px rgba(255,255,255,.06);
}
.customer-donut::after { content: ""; position: absolute; inset: 23px; border: 1px solid rgba(121, 170, 177, .13); border-radius: 50%; background: #071a23; box-shadow: inset 0 10px 22px rgba(0,0,0,.18); }
.customer-donut-center { position: absolute; inset: 23px; z-index: 1; display: grid; place-content: center; text-align: center; }
.customer-donut-center strong { color: var(--number); font-size: 1.05rem; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.customer-donut-center small { margin-top: 7px; color: var(--muted-2); font-size: .61rem; }
.customer-share-legend { display: grid; gap: 11px; }
.customer-share-legend span { min-width: 0; display: grid; grid-template-columns: 11px 1fr auto; align-items: center; gap: 9px; color: var(--muted); font-size: .65rem; }
.customer-share-legend i { width: 11px; height: 11px; border: 1px solid rgba(235,245,255,.2); border-radius: 3px; box-shadow: 0 0 0 2px rgba(5,17,27,.4); }
.customer-share-legend b { overflow: hidden; color: var(--text-soft); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.customer-share-legend em { font-style: normal; font-variant-numeric: tabular-nums; }
.share-a { background: #9cbce5; }
.share-b { background: #d7a56a; }
.share-c { background: #7dbfaa; }
.share-d { background: #b5a0da; }
.share-e { background: #536fa9; }
.share-f { background: #465f93; }
.share-g { background: #394f7c; }
.share-h { background: #2f4267; }

.director-section { margin: 32px 0 20px; }
.section-heading { min-height: 54px; margin-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: .67rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.section-title-block .section-kicker { margin: 7px 0 0; }
.section-heading h2 { font-size: 1.3rem; letter-spacing: -.02em; }
.margin-legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .6875rem; }
.margin-legend span { display: flex; align-items: center; gap: 5px; }
.margin-legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend-low { background: var(--red); }
.legend-normal { background: var(--amber); }
.legend-good { background: var(--mint); }
.legend-excellent { background: var(--cyan); }
.director-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.director-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 24px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 4% 0%, rgba(85, 211, 164, .105), transparent 18rem),
    linear-gradient(145deg, rgba(2, 19, 29, .43), rgba(2, 13, 23, .35));
  box-shadow: inset 0 1px 0 rgba(216, 241, 255, .11), inset 1px 0 0 rgba(153, 210, 234, .045), 0 22px 50px rgba(0, 7, 10, .28);
  backdrop-filter: blur(8px) saturate(115%);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.director-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), transparent 72%);
}
.director-card[data-director="wu"] {
  background:
    radial-gradient(circle at 4% 0%, rgba(100, 143, 224, .12), transparent 18rem),
    linear-gradient(145deg, rgba(2, 18, 34, .43), rgba(2, 13, 23, .35));
}
.director-card[data-director="wu"]::before { background: linear-gradient(90deg, var(--cyan), transparent 72%); }
.director-card:hover { transform: translateY(-2px); border-color: rgba(122, 198, 205, .42); }
.director-card-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.director-identity { display: flex; align-items: center; gap: 11px; }
.director-identity strong, .director-identity small { display: block; }
.director-identity strong { font-size: 1.02rem; letter-spacing: -.01em; }
.director-identity small {
  margin-top: 5px;
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .1em;
}
.director-avatar {
  width: 44px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(127, 169, 194, .38);
  border-radius: 9px;
  background: rgba(100, 143, 224, .09);
  color: var(--number);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.ghost-button { min-height: 34px; padding: 6px 10px; border: 1px solid rgba(154, 197, 202, .23); background: rgba(255,255,255,.018); color: var(--text-soft); font-size: .75rem; }
.ghost-button:hover { border-color: #456d78; color: var(--text); }
.director-highlight { margin: 24px 0 20px; }
.director-highlight > strong { display: block; margin: 9px 0 7px; color: var(--text); font-size: 2rem; line-height: 1; letter-spacing: -.035em; }
.director-card[data-director="miao"] .director-highlight > strong,
.director-card[data-director="wu"] .director-highlight > strong { color: var(--number); }
.director-highlight > small { color: var(--muted); font-size: .72rem; }
.director-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-block: 1px solid rgba(121, 170, 177, .14); background: rgba(121, 170, 177, .12); }
.director-metrics > div { padding: 14px 12px; background: radial-gradient(circle at 4% 0%, rgba(85, 211, 164, .075), transparent 18rem), linear-gradient(145deg, rgba(2, 19, 29, .56), rgba(2, 13, 23, .48)); backdrop-filter: blur(9px) saturate(115%); }
.director-metrics span, .director-metrics b { display: block; }
.director-metrics span { color: var(--muted); font-size: .6875rem; }
.director-metrics b { margin-top: 8px; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.director-metrics > div:nth-child(1) b,
.director-metrics > div:nth-child(2) b { color: var(--number); }
.collection-progress { height: 5px; margin-top: 19px; overflow: hidden; border-radius: 999px; background: rgba(154, 197, 202, .12); }
.collection-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--cyan)); }
.progress-caption { margin-top: 8px; display: flex; justify-content: space-between; color: var(--muted); font-size: .6875rem; }
.progress-caption b { color: var(--text-soft); }
.media-strip { min-width: 0; min-height: 112px; margin-top: 16px; padding: 16px 20px; display: grid; grid-template-columns: minmax(230px, .85fr) minmax(0, 3.3fr) auto; align-items: center; gap: 16px; border: 1px solid rgba(151, 195, 220, .28); border-radius: 13px; background: radial-gradient(circle at 4% 0%, rgba(85, 211, 164, .105), transparent 18rem), linear-gradient(145deg, rgba(2, 19, 29, .56), rgba(2, 13, 23, .48)); box-shadow: inset 0 1px 0 rgba(216, 241, 255, .105), 0 16px 38px rgba(0,7,10,.24); backdrop-filter: blur(9px) saturate(115%); }
.media-strip-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.media-strip-identity > div { min-width: 0; }
.media-strip-identity h3 { margin: 0 0 5px; color: var(--text); font-size: .96rem; font-weight: 700; }
.media-strip-identity h3 small { display: inline-block; margin-left: 6px; color: var(--text-soft); font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif; font-size: .57rem; font-weight: 500; letter-spacing: .08em; }
.media-strip-identity p { margin: 0; color: var(--muted); font-size: .68rem; }
.media-strip-metrics { min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
.media-strip-metrics > div { min-width: 0; padding: 4px 12px; border-left: 1px solid rgba(147, 184, 206, .18); }
.media-strip-metrics span, .media-strip-metrics strong { display: block; white-space: nowrap; }
.media-strip-metrics span { color: var(--muted); font-size: .67rem; }
.media-strip-metrics strong { margin-top: 8px; color: var(--number); font-size: 1.03rem; font-variant-numeric: tabular-nums; }
.media-strip-metrics strong.margin-text.low { color: var(--red); }
.media-strip-metrics strong.margin-text.normal { color: var(--amber); }
.media-strip-metrics strong.margin-text.good { color: var(--mint); }
.media-strip-metrics strong.margin-text.excellent { color: var(--cyan); }
.media-strip-metrics .margin-badge { margin-top: 5px; padding: 2px 5px; font-size: .54rem; }
.media-strip-link { min-height: 34px; padding: 7px 10px; white-space: nowrap; border: 1px solid rgba(147, 184, 206, .25); border-radius: 7px; background: rgba(255,255,255,.018); color: var(--text-soft); font-size: .72rem; }
.media-strip-link:hover { border-color: rgba(147, 184, 206, .55); color: var(--text); }
.media-strip-link span { margin-left: 5px; }

.module-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.backoffice-section { margin: 32px 0 20px; }
.backoffice-heading { margin-bottom: 14px; }
.backoffice-section .module-split .metric-module { margin-bottom: 0; }
.compact-module { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.compact-row .metric-cell { min-height: 132px; padding: 20px 16px; }
.compact-row .metric-cell > strong { font-size: clamp(1.35rem, 1.7vw, 1.65rem); }
.six-columns .metric-cell { padding-inline: 13px; }
.six-columns .metric-cell > span { min-height: 2.3em; line-height: 1.35; }
.six-columns .metric-cell > strong { font-size: clamp(1.15rem, 1.35vw, 1.45rem); }

.attention-panel { margin-top: 12px; padding: 20px; }
.attention-panel .section-heading { margin-bottom: 8px; }
.attention-scope { margin: 7px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.attention-list { display: grid; align-content: start; }
.attention-row {
  width: 100%;
  min-height: 92px;
  padding: 15px 10px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) minmax(126px, auto) 94px;
  align-items: center;
  gap: 16px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
}
.attention-row:hover, .attention-row:focus-visible { background: rgba(88, 151, 185, .09); outline: none; }
.priority-dot { width: 8px; height: 8px; border-radius: 50%; }
.priority-dot.high { background: var(--red); }
.priority-dot.medium { background: var(--amber); }
.attention-name strong, .attention-name small { display: block; }
.attention-name { min-width: 0; }
.attention-name strong { color: var(--text); font-size: .84rem; line-height: 1.35; }
.attention-name small { margin-top: 7px; overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.attention-reasons { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 7px; }
.attention-reasons em { color: var(--text-soft); font-size: .74rem; font-style: normal; line-height: 1.35; }
.attention-reasons em + em::before { content: '·'; margin-right: 12px; color: var(--muted); }
.attention-metric { display: grid; gap: 5px; justify-items: end; min-width: 0; text-align: right; }
.attention-metric small { color: var(--muted); font-size: .7rem; }
.attention-metric strong { color: var(--number); font-size: .85rem; font-variant-numeric: tabular-nums; }
.attention-action { color: var(--text-soft); font-size: .72rem; font-weight: 600; text-align: right; white-space: nowrap; }
.attention-row:hover .attention-action, .attention-row:focus-visible .attention-action { color: var(--cyan); }
.owner-chip, .status-chip, .warning-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .6875rem;
  font-weight: 700;
}
.owner-chip { border: 1px solid var(--line); color: var(--text-soft); }
.row-arrow { color: var(--muted); }

.back-link { margin-bottom: 18px; color: var(--muted); font-size: .75rem; }
.director-page-heading { align-items: center; }
.director-hero-panel { margin-bottom: 18px; padding: 22px; display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: stretch; border-top: 2px solid var(--mint); }
.director-profile { display: flex; align-items: center; gap: 13px; padding-right: 20px; border-right: 1px solid var(--line); }
.director-avatar.large { width: 54px; height: 54px; border-radius: 11px; font-size: 1rem; }
.director-profile small, .director-profile strong, .director-profile > div span { display: block; }
.director-profile small { color: var(--muted); font-size: .72rem; }
.director-profile strong { margin-top: 5px; font-size: 1rem; }
.director-profile > div span { margin-top: 7px; color: var(--muted); font-size: .68rem; }
.online-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--mint); }
.director-kpi-strip { display: grid; grid-template-columns: repeat(5, 1fr); }
.four-kpi-strip { grid-template-columns: repeat(4, 1fr); }
.director-kpi-strip > div { min-width: 0; padding: 8px 18px; border-right: 1px solid var(--line-soft); }
.director-kpi-strip > div:last-child { border-right: 0; }
.director-kpi-strip span, .director-kpi-strip strong { display: block; }
.director-kpi-strip span { color: var(--muted); font-size: .72rem; }
.director-kpi-strip strong { margin-top: 12px; font-size: clamp(1.05rem, 1.35vw, 1.35rem); letter-spacing: -.025em; white-space: nowrap; }
.director-kpi-strip .margin-badge { display: inline-flex; margin-top: 9px; }
.director-content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .65fr); gap: 16px; margin-bottom: 16px; }
.director-content-grid > .data-panel { margin-bottom: 0; display: flex; flex-direction: column; }
.director-content-grid .table-wrap { overflow-x: auto; }
.director-content-grid .collection-list { align-content: start; }
.director-content-grid .collection-side-panel > .full-button { flex: 0 0 auto; margin-top: 12px; }
.data-panel { min-width: 0; padding: 20px; margin-bottom: 16px; }
.panel-heading { min-height: 42px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.export-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.panel-heading .section-kicker { margin-bottom: 5px; }
.panel-note { color: var(--muted); font-size: .72rem; }
.group-module { border-top: 2px solid rgba(100, 143, 224, .65); }
.group-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.group-list .group-card { min-height: 147px; }
.group-card { min-width: 0; padding: 18px; display: grid; gap: 20px; text-align: left; border: 1px solid rgba(151, 195, 220, .24); border-radius: 10px; background: radial-gradient(circle at 4% 0%, rgba(85, 211, 164, .105), transparent 18rem), linear-gradient(145deg, rgba(2, 19, 29, .56), rgba(2, 13, 23, .48)); backdrop-filter: blur(9px); transition: border-color .18s ease, transform .18s ease; }
.group-card:hover { border-color: rgba(143, 188, 210, .52); transform: translateY(-2px); }
.group-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.group-card-top strong { color: var(--text); font-size: .98rem; }
.group-card-top small { color: var(--muted); font-size: .69rem; text-align: right; }
.group-card-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.group-card-metrics span { display: grid; gap: 7px; color: var(--muted); font-size: .68rem; }
.group-card-metrics b { color: var(--number); font-size: .95rem; font-variant-numeric: tabular-nums; }
.group-card-arrow { color: var(--text-soft); font-size: .72rem; }
.group-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.group-admin-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.group-card-actions button { min-height: 30px; padding: 4px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; }
.group-card-actions button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.group-card-actions .group-card-arrow { margin-left: -8px; text-align: left; }
.group-card-actions .group-card-arrow:hover { color: var(--cyan); }
.group-lead-button { color: var(--text-soft); font-size: .72rem; }
.group-lead-button:hover { border-color: rgba(143,188,210,.36); color: var(--text); background: rgba(143,188,210,.06); }
.group-delete-button { color: var(--muted); font-size: .72rem; }
.group-delete-button:hover { border-color: rgba(239,116,124,.34); color: var(--red); background: rgba(239,116,124,.06); }
.group-empty { min-height: 92px; grid-column: 1 / -1; display: grid; align-content: center; gap: 8px; padding: 17px 20px; border: 1px dashed rgba(126, 165, 179, .32); border-radius: 9px; background: rgba(100, 143, 224, .035); }
.group-empty strong { font-size: .82rem; }
.group-empty span { color: var(--muted); font-size: .72rem; line-height: 1.55; }

.table-wrap { width: 100%; overflow-x: auto; }
.people-table { min-width: 1528px; table-layout: fixed; }
.people-table th, .people-table td { white-space: nowrap; }
.people-table th { padding-inline: 10px; }
.people-table td { padding-inline: 10px; }
.people-table th:nth-child(1) { width: 90px; }
.people-table th:nth-child(2) { width: 90px; }
.people-table th:nth-child(3) { width: 115px; }
.people-table th:nth-child(4) { width: 155px; }
.people-table th:nth-child(5) { width: 175px; }
.people-table th:nth-child(6) { width: 78px; }
.people-table th:nth-child(7) { width: 95px; }
.people-table th:nth-child(8) { width: 80px; }
.people-table th:nth-child(9) { width: 95px; }
.people-table th:nth-child(10) { width: 135px; }
.people-table th:nth-child(11) { width: 66px; }
.people-table th:nth-child(12) { width: 74px; }
.people-table th:nth-child(13) { width: 280px; }
.people-education-edit { width: 100%; min-width: 0; display: grid; gap: 3px; padding: 5px 7px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.people-education-edit:hover, .people-education-edit:focus-visible { border-color: rgba(122, 188, 221, .4); background: rgba(122, 188, 221, .09); }
.people-education-edit span, .people-education-edit small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-education-edit small { color: var(--muted); font-size: .66rem; }
.people-table .people-cell-ellipsis { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-table .people-contract-name { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-table .people-contract-name .attachment-link { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.people-table .status-chip { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.people-table .people-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.people-table .people-position-button { padding: 6px; font-size: .7rem; }
.people-table .people-actions .people-position-button + .people-position-button { margin-left: 0; }
.module-pager { min-height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding: 5px 2px 0; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .68rem; }
.module-pager > div { display: flex; gap: 6px; }
.module-pager button { width: 28px; height: 26px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); color: var(--text-soft); font-size: .76rem; }
.module-pager button:hover:not(:disabled) { border-color: var(--mint); color: var(--mint); }
.module-pager button:disabled { opacity: .32; cursor: default; }
.paginated-list > [hidden] { display: none !important; }
table { width: 100%; min-width: 760px; border-collapse: collapse; color: var(--text); }
th {
  padding: 11px 12px;
  border-block: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: left;
  white-space: nowrap;
}
td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); font-size: .78rem; vertical-align: middle; }
tbody tr { transition: background .14s ease; }
tbody tr:hover { background: rgba(53, 221, 177, .025); }
.table-primary, .table-secondary { display: block; }
.table-primary { font-size: .78rem; font-weight: 700; }
.table-secondary { margin-top: 5px; color: var(--muted); font-size: .68rem; }
.project-cell-subrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; margin-top: 5px; }
.project-cell-subrow .table-secondary { min-width: 0; margin-top: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-detail-link { flex: 0 0 auto; padding: 2px 0; border: 0; background: transparent; color: #accfe4; font-size: .69rem; font-weight: 650; white-space: nowrap; }
.project-detail-link:hover { color: #e0f2fb; text-decoration: underline; text-underline-offset: 3px; }
.project-detail-link span { margin-left: 2px; }
.progress-cell { min-width: 116px; }
.progress-value { display: flex; justify-content: space-between; color: var(--text-soft); font-size: .7rem; }
.progress-track { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--mint); }
.progress-value--reference { margin-top: 7px; color: var(--muted); font-size: .64rem; }
.progress-track--reference { height: 3px; margin-top: 5px; }
.progress-track--reference i { background: #809bbd; }
.status-chip { padding: 5px 8px; }
.status-chip.normal { color: var(--mint); background: rgba(53,221,177,.09); }
.status-chip.watch { color: var(--amber); background: rgba(242,190,93,.09); }
.status-chip.risk { color: var(--red); background: rgba(239,116,124,.09); }
.status-chip.closed { color: var(--muted); background: rgba(127,157,166,.09); }
.cycle-chip { display: inline-flex; min-width: 42px; justify-content: center; padding: 5px 8px; border-radius: 6px; font-size: .68rem; font-weight: 750; }
.cycle-chip.annual { border: 1px solid rgba(100,143,224,.26); background: rgba(100,143,224,.1); color: #a8bde8; }
.cycle-chip.quarter { border: 1px solid rgba(85,211,164,.24); background: rgba(85,211,164,.085); color: #8ad1bd; }
.cycle-chip.single { border: 1px solid rgba(216,176,103,.24); background: rgba(216,176,103,.09); color: #cfba87; }
.table-empty { padding: 34px 16px; color: var(--muted); text-align: center; }
.contract-file { color: var(--mint); font-size: .7rem; }
.contract-missing { color: var(--amber); font-size: .7rem; }
.collection-list { display: grid; gap: 5px; margin-bottom: 16px; }
.collection-item { padding: 13px 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line-soft); }
.collection-item time { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .68rem; line-height: 1.2; text-align: center; }
.collection-item strong, .collection-item small { display: block; }
.collection-item strong { font-size: .75rem; }
.collection-item small { margin-top: 5px; color: var(--muted); font-size: .68rem; }
.collection-item b { font-size: .78rem; }
.full-button { width: 100%; }
.delivery-breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-content: start; }
.delivery-item { padding: 16px; border: 1px solid var(--line-soft); border-radius: 8px; background: #091c24; }
.delivery-item span, .delivery-item strong, .delivery-item small { display: block; }
.delivery-item span { color: var(--muted); font-size: .72rem; }
.delivery-item strong { margin-top: 11px; font-size: 1.2rem; }
.delivery-item small { margin-top: 8px; color: var(--text-soft); font-size: .7rem; }
.delivery-bar { height: 4px; margin-top: 13px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.delivery-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--cyan)); }

.toolbar-panel { margin-bottom: 18px; padding: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; border: 1px solid rgba(132, 173, 204, .19); border-radius: 14px; background: radial-gradient(ellipse at 0% 0%, rgba(62, 101, 144, .12), transparent 60%), linear-gradient(125deg, rgba(10, 28, 43, .78), rgba(5, 20, 32, .62)); box-shadow: inset 0 1px 0 rgba(211, 232, 248, .055), 0 8px 24px rgba(0, 8, 18, .10); backdrop-filter: blur(18px) saturate(115%); }
.search-field { min-width: min(320px, 35vw); display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: #071a21; color: var(--muted); }
.search-field input { width: 100%; min-width: 0; border: 0; background: transparent; }
input, select, textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #071a21;
  color: var(--text);
  padding: 10px 11px;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
select { min-width: 142px; }
select option { background: var(--surface); color: var(--text); }
textarea { resize: vertical; line-height: 1.55; }
.toolbar-panel > select, .toolbar-panel > .search-field {
  height: 44px; min-height: 44px; border: 1px solid rgba(136, 176, 207, .22); border-radius: 9px;
  background-color: rgba(8, 24, 39, .62);
  background-image: linear-gradient(145deg, rgba(89, 131, 168, .105), rgba(9, 27, 44, .04));
  box-shadow: inset 0 1px 0 rgba(216, 237, 253, .065), 0 3px 8px rgba(0, 6, 17, .08);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.toolbar-panel > select {
  appearance: none; -webkit-appearance: none; min-width: 120px; padding: 0 36px 0 14px; line-height: normal;
  color: #c7d6e5; font-size: .8rem; font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2395afc7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(145deg, rgba(89, 131, 168, .105), rgba(9, 27, 44, .04));
  background-position: right 12px center, center; background-repeat: no-repeat; background-size: 16px 16px, 100% 100%;
}
.toolbar-panel > select:hover, .toolbar-panel > .search-field:hover { border-color: rgba(139, 184, 221, .43); background-color: rgba(18, 40, 62, .74); }
.toolbar-panel > select:focus-visible, .toolbar-panel > .search-field:focus-within { outline: none; border-color: #799fc8; box-shadow: 0 0 0 3px rgba(116, 164, 214, .13), inset 0 1px 0 rgba(216, 237, 253, .09); }
.toolbar-panel > select.filter-selected { border-color: rgba(128, 174, 218, .44); background-color: rgba(29, 53, 80, .64); color: #d8e6f5; }
.toolbar-panel > .search-field { flex: 1 1 230px; min-width: 190px; padding: 0 14px; }
.toolbar-panel > .search-field input { height: 42px; min-height: 0; padding: 0; box-shadow: none; outline: none; font-size: .8rem; }
#projects .toolbar-panel { display: grid; grid-template-columns: minmax(210px, 1.6fr) repeat(5, minmax(115px, 1fr)) minmax(166px, 1.3fr) auto; }
#projects .toolbar-panel > select, #projects .toolbar-panel > .search-field { width: 100%; min-width: 0; }
.toolbar-panel .result-count { padding: 0 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 1450px) {
  #projects .toolbar-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #projects .toolbar-panel .result-count { justify-self: end; }
}
@media (prefers-reduced-motion: reduce) { .toolbar-panel > select, .toolbar-panel > .search-field { transition: none; } }
@media (max-width: 600px) {
  .toolbar-panel { padding: 12px; gap: 10px; }
  #projects .toolbar-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #projects .toolbar-panel > .search-field, #projects .toolbar-panel .result-count { grid-column: 1 / -1; }
}
.result-count { margin-left: auto; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.flush-panel { padding: 0; overflow: hidden; }
.flush-panel th:first-child, .flush-panel td:first-child { padding-left: 20px; }
.flush-panel th:last-child, .flush-panel td:last-child { padding-right: 20px; }
.project-table tbody tr { cursor: pointer; }
.project-created-at { color: var(--text-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
#projects .flush-panel, #finance > .data-panel, #people > .data-panel { display: flex; flex-direction: column; }

.finance-page-metrics { border-top: 2px solid var(--mint); }
.finance-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 16px; margin-bottom: 20px; }
.finance-grid > .data-panel { margin-bottom: 0; }
.finance-grid > .data-panel:first-child { display: flex; flex-direction: column; }
.finance-grid > .data-panel:last-child { display: flex; flex-direction: column; }
.finance-director-rows { display: grid; align-content: start; }
.finance-grid:not(.multi-unit) .finance-director-row { border-bottom: 1px solid var(--line-soft); }
.finance-director-row {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(145px, 1.3fr) repeat(3, minmax(66px, .65fr)) 14px;
  align-items: center;
  gap: 6px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
}
.finance-director-row.no-margin { grid-template-columns: minmax(145px, 1.3fr) repeat(2, minmax(76px, .8fr)); }
.finance-director-row:hover { background: rgba(255,255,255,.018); }
.finance-director-row > div:not(.person) span, .finance-director-row > div:not(.person) strong { display: block; }
.finance-director-row > div:not(.person) span { color: var(--muted); font-size: .68rem; }
.finance-director-row > div:not(.person) strong { margin-top: 6px; font-size: .82rem; }
.finance-director-row .person { display: flex; align-items: center; gap: 9px; }
.finance-director-row .person .unit-mark { display: grid; place-items: center; }
.finance-director-row .person strong { margin: 0; font-size: .82rem; white-space: nowrap; }
.finance-collection-list { display: grid; align-content: start; }
.finance-collection-row { min-height: 64px; display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; border-top: 1px solid var(--line-soft); }
.finance-collection-row time { color: var(--muted); font-size: .7rem; }
.finance-collection-row strong, .finance-collection-row small { display: block; }
.finance-collection-row strong { font-size: .76rem; }
.finance-collection-row small { margin-top: 5px; color: var(--muted); font-size: .66rem; }
.finance-collection-row b { font-size: .8rem; }
.warning-chip { color: var(--red); background: rgba(239,116,124,.09); }
.warning-chip.is-clear { color: var(--muted); background: rgba(127,157,166,.09); }

.department-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.department-tags button { min-height: 30px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); font-size: .7rem; cursor: pointer; }
.department-tags button.active { border-color: rgba(53,221,177,.45); background: rgba(53,221,177,.08); color: var(--mint); }
.department-tags button:not(.active):hover, .department-tags button:focus-visible { border-color: var(--cyan); color: var(--text); }

.review-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: 16px; }
.review-list-panel, .review-detail-panel { min-height: 0; }
.review-list-panel { display: flex; flex-direction: column; }
.review-tabs { display: flex; gap: 6px; }
.review-tabs button { min-height: 30px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); font-size: .7rem; }
.review-tabs button.active { border-color: rgba(100,143,224,.45); background: rgba(100,143,224,.1); color: var(--text); }
.review-list { display: grid; padding: 10px 14px 16px; gap: 8px; }
.review-item { width: 100%; padding: 15px; display: grid; grid-template-columns: 76px minmax(0,1fr) auto; gap: 13px; align-items: center; border: 1px solid rgba(151, 196, 213, .25); border-radius: 9px; background: rgba(13, 40, 56, .46); text-align: left; }
.review-item:hover, .review-item.active { border-color: rgba(100,143,224,.4); background: rgba(100,143,224,.07); }
.review-type { display: grid; place-items: center; min-height: 28px; border-radius: 6px; background: rgba(100,143,224,.1); color: var(--cyan); font-size: .7rem; font-weight: 800; }
.review-item[data-category="finance"] .review-type { background: rgba(85,211,164,.09); color: var(--mint); }
.review-item-main strong, .review-item-main small { display: block; }
.review-item-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.review-item-main small { margin-top: 7px; color: var(--muted); font-size: .66rem; }
.review-item-meta { text-align: right; }
.review-item-meta strong, .review-item-meta small { display: block; }
.review-item-meta strong { font-size: .8rem; }
.review-item-meta small { margin-top: 6px; color: var(--amber); font-size: .65rem; }
.review-detail { padding: 24px; }
.review-detail.empty-state { min-height: 220px; display: grid; place-content: center; text-align: center; }
.review-detail.empty-state strong { font-size: 1rem; }
.review-detail.empty-state p { max-width: 280px; margin: 10px auto 0; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.review-detail-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.review-detail-head h2 { margin: 7px 0 0; font-size: 1.12rem; }
.review-detail-head p { margin: 7px 0 0; color: var(--muted); font-size: .72rem; }
.review-status { align-self: flex-start; padding: 6px 9px; border: 1px solid rgba(216,176,103,.3); border-radius: 999px; color: var(--amber); font-size: .68rem; }
.review-fields { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review-field { padding: 13px; border: 1px solid rgba(151, 196, 213, .22); border-radius: 8px; background: rgba(13, 40, 56, .42); }
.review-field span, .review-field strong { display: block; }
.review-field span { color: var(--muted); font-size: .67rem; }
.review-field strong { margin-top: 8px; font-size: .86rem; line-height: 1.45; word-break: break-word; }
.review-note { margin-top: 14px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 8px; color: var(--text-soft); background: rgba(3,17,24,.36); font-size: .73rem; line-height: 1.7; }
.review-impact { margin-top: 14px; padding: 14px; border: 1px solid rgba(85,211,164,.16); border-radius: 8px; background: rgba(85,211,164,.045); }
.review-impact > span { color: var(--mint); font-size: .7rem; font-weight: 800; }
.review-impact-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.review-impact-grid div { padding: 10px; border-radius: 7px; background: rgba(3,17,24,.46); }
.review-impact-grid small, .review-impact-grid strong { display: block; }
.review-impact-grid small { color: var(--muted); font-size: .62rem; }
.review-impact-grid strong { margin-top: 7px; font-size: .8rem; }
.review-actions { margin-top: 20px; display: flex; justify-content: space-between; gap: 10px; }
.approval-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 18px; overflow: hidden; border: 1px solid rgba(131, 180, 205, .24); border-radius: 9px; background: rgba(131, 180, 205, .16); }
.approval-summary > div { display: grid; gap: 7px; min-width: 0; padding: 13px 15px; background: linear-gradient(145deg, rgba(10, 34, 49, .94), rgba(7, 27, 40, .9)); }
.approval-summary span { color: var(--muted); font-size: .7rem; }
.approval-summary strong { color: var(--number); font-size: .88rem; font-weight: 700; overflow-wrap: anywhere; }
#approveAmountValue { color: #cfe4f1; font-size: 1.2rem; }
.approval-summary .amount-uppercase { color: var(--text-soft); font-size: .7rem; }
.submission-state { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: .64rem; font-weight: 750; }
.submission-state.pending { color: var(--amber); background: rgba(216,176,103,.09); }
.submission-state.approved { color: var(--mint); background: rgba(85,211,164,.08); }
.submission-state.returned { color: var(--red); background: rgba(240,115,124,.08); }
.danger-button { min-height: 42px; padding: 9px 14px; border: 1px solid rgba(240,115,124,.32); border-radius: 8px; background: rgba(240,115,124,.045); color: var(--red); font-size: .78rem; font-weight: 800; }
.danger-button:hover { background: rgba(240,115,124,.09); }

.resource-hero-grid { display: grid; grid-template-columns: 1.6fr repeat(3, .7fr); gap: 12px; margin-bottom: 16px; }
.resource-hero-card, .resource-stat-card { min-height: 184px; padding: 23px; }
.resource-hero-card { border-top: 2px solid var(--mint); }
.resource-hero-card > span, .resource-stat-card > span { color: var(--muted); font-size: .78rem; }
.resource-hero-card > strong, .resource-stat-card > strong { display: block; margin-top: 18px; font-size: 2.35rem; letter-spacing: -.04em; }
.resource-hero-card > strong { color: var(--mint); }
.resource-hero-card > small, .resource-stat-card > small { display: block; margin-top: 10px; color: var(--muted-2); font-size: .7rem; }
.resource-platform-bar { height: 6px; margin-top: 20px; display: flex; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.resource-platform-bar i { height: 100%; background: var(--mint); }
.resource-platform-bar b { flex: 1; background: var(--cyan); }
.resource-platform-labels { margin-top: 9px; display: flex; gap: 18px; color: var(--muted); font-size: .68rem; }
.resource-platform-labels i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; }
.xhs-dot { background: var(--mint); }
.douyin-dot { background: var(--cyan); }
.resource-content-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.category-bars { display: grid; gap: 17px; }
.category-row { display: grid; grid-template-columns: 80px 1fr 70px; gap: 12px; align-items: center; font-size: .75rem; }
.category-row > span { color: var(--text-soft); }
.category-row > b { text-align: right; }
.category-track { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.category-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--cyan)); }
.asset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.asset-grid article { padding: 16px; border: 1px solid var(--line-soft); border-radius: 7px; background: #091c24; }
.asset-grid span, .asset-grid strong, .asset-grid small { display: block; }
.asset-grid span { color: var(--muted); font-size: .7rem; }
.asset-grid strong { margin-top: 9px; font-size: 1.45rem; }
.asset-grid small { margin-top: 4px; color: var(--muted-2); font-size: .68rem; }

.modal {
  width: min(1060px, calc(100vw - 36px));
  max-height: min(820px, calc(100vh - 36px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #31535e;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0, 6, 9, .66);
}
.modal::backdrop { background: rgba(0, 8, 11, .78); backdrop-filter: blur(5px); }
.export-dialog { width: min(660px, calc(100vw - 24px)); }
.export-dialog-content { padding: 25px 28px 26px; }
.modal > :is(.export-dialog-content, .group-dialog-content) {
  max-height: min(820px, calc(100vh - 36px));
  max-height: min(820px, calc(100dvh - 36px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(145, 190, 217, .85) rgba(20, 47, 63, .5);
}
#personDetailDialog .export-dialog-content,
#mySubmissionsDialog .export-dialog-content { overflow-y: scroll; scrollbar-gutter: stable; }
.modal > :is(.export-dialog-content, .group-dialog-content)::-webkit-scrollbar { width: 9px; }
.modal > :is(.export-dialog-content, .group-dialog-content)::-webkit-scrollbar-track { background: rgba(20, 47, 63, .5); }
.modal > :is(.export-dialog-content, .group-dialog-content)::-webkit-scrollbar-thumb { border-radius: 9px; background: rgba(145, 190, 217, .85); }
.export-scope-note { margin: 18px 0 0; color: var(--text-soft); font-size: .8rem; line-height: 1.7; }
.export-list-tools { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 20px 0 12px; }
.export-search-label { display: grid; gap: 7px; flex: 1; color: var(--muted); font-size: .72rem; }
.export-search-label input { width: 100%; }
.export-list-tools .text-button { white-space: nowrap; }
.export-record-list { max-height: min(360px, 42vh); overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; background: rgba(2, 17, 26, .42); }
.export-record { display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); color: var(--text); font-size: .79rem; cursor: pointer; }
.export-record:last-child { border-bottom: 0; }
.export-record:hover { background: rgba(74, 132, 169, .12); }
.export-record input { flex: 0 0 auto; width: 16px; height: 16px; accent-color: #61add1; }
.export-record span { overflow-wrap: anywhere; }
.export-list-empty { padding: 25px 14px; color: var(--muted); text-align: center; font-size: .78rem; }
.export-dialog-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 20px; color: var(--muted); font-size: .76rem; }
.export-dialog-footer > div { display: flex; flex-wrap: wrap; gap: 9px; }
.export-dialog-footer button:disabled { opacity: .4; cursor: not-allowed; }
.group-dialog { width: min(560px, calc(100vw - 36px)); }
.group-dialog-content { padding: 26px 30px 30px; }
.allocation-dialog { width: min(850px, calc(100vw - 32px)); }
.allocation-rows { display: grid; gap: 10px; margin: 18px 0 12px; }
.allocation-row { display: grid; grid-template-columns: minmax(115px, 1.05fr) minmax(105px, .9fr) minmax(120px, 1fr) minmax(110px, .85fr) auto; align-items: end; gap: 9px; padding: 13px; border: 1px solid rgba(133,177,209,.24); border-radius: 12px; background: linear-gradient(125deg, rgba(42,76,106,.28), rgba(10,27,43,.65)); }
.allocation-row label { min-width: 0; display: grid; gap: 6px; color: var(--text-soft); font-size: .68rem; }
.allocation-row select, .allocation-row input { width: 100%; min-width: 0; height: 42px; }
.allocation-row [data-remove-allocation] { height: 42px; padding: 0 10px; }
.allocation-total { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 14px 0; color: var(--text-soft); font-size: .75rem; }
.allocation-total strong { color: var(--number); font-variant-numeric: tabular-nums; }
.allocation-total span { color: #e7a4aa; }
@media (max-width: 690px) { .allocation-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .allocation-row [data-remove-allocation] { grid-column: 1 / -1; } }
.group-delete-summary { margin: 20px 0 0; color: var(--text); font-size: .84rem; line-height: 1.6; }
.group-transfer-label { display: grid; gap: 8px; margin-top: 20px; color: var(--text-soft); font-size: .75rem; font-weight: 700; }
.group-transfer-label[hidden] { display: none; }
.group-transfer-label select { width: 100%; }
.group-delete-note { margin: 16px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.65; }
.danger-submit-button { min-height: 42px; padding: 10px 16px; border: 1px solid rgba(239,116,124,.48); border-radius: 7px; background: rgba(239,116,124,.15); color: #f3afb3; font-weight: 700; }
.danger-submit-button:hover:not(:disabled) { background: rgba(239,116,124,.24); }
.danger-submit-button:disabled { opacity: .4; cursor: not-allowed; }
.modal-shell { min-height: min(680px, calc(100vh - 36px)); max-height: min(820px, calc(100vh - 36px)); display: grid; grid-template-columns: 280px 1fr; }
.form-nav { max-height: min(820px, calc(100vh - 36px)); padding: 24px 18px; overflow-y: auto; border-right: 1px solid var(--line); background: #071a21; }
.form-nav-head { padding: 0 8px 18px; }
.prototype-chip { display: inline-flex; padding: 5px 8px; border: 1px solid rgba(53,221,177,.36); border-radius: 999px; color: var(--mint); font-size: .64rem; font-weight: 800; }
.form-nav h2 { margin: 14px 0 0; font-size: 1.3rem; }
.form-nav p { margin: 7px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.form-nav nav { display: grid; gap: 5px; }
.form-nav nav button { width: 100%; padding: 12px 10px; display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; border: 1px solid transparent; border-radius: 8px; background: transparent; text-align: left; }
.form-nav nav button > span { color: var(--muted-2); font-size: .66rem; font-weight: 800; }
.form-nav nav button strong, .form-nav nav button small { display: block; }
.form-nav nav button strong { font-size: .78rem; }
.form-nav nav button small { margin-top: 5px; color: var(--muted); font-size: .67rem; }
.form-nav nav button:hover { background: rgba(255,255,255,.025); }
.form-nav nav button.active { border-color: rgba(53,221,177,.28); background: rgba(53,221,177,.075); }
.form-nav nav button.active > span, .form-nav nav button.active strong { color: var(--mint); }
.form-content { min-width: 0; max-height: min(820px, calc(100vh - 36px)); overflow-y: auto; padding: 26px 30px 30px; }
.modal-topbar { min-height: 54px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 17px; }
.modal-topbar h2 { margin: 0; font-size: 1.2rem; }
.close-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 1.2rem; }
.close-button:hover { color: var(--text); }
.prototype-form { display: none; }
.prototype-form.active { display: block; }
.form-note { margin-top: 18px; padding: 13px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(53,221,177,.25); border-radius: 8px; background: rgba(53,221,177,.055); }
.form-note strong { color: var(--mint); font-size: .76rem; white-space: nowrap; }
.form-note span { color: var(--text-soft); font-size: .72rem; line-height: 1.45; }
.invoice-capacity-note { display: block; margin-top: 3px; padding: 10px 13px; border-color: rgba(116,166,202,.27); background: rgba(33,68,96,.2); color: var(--text-soft); font-size: .73rem; line-height: 1.55; }
.invoice-capacity-values { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; row-gap: 4px; }
.invoice-capacity-values span { color: var(--text-soft); font-size: .73rem; white-space: nowrap; }
.invoice-capacity-values strong { margin-left: 4px; color: var(--number); font-size: .79rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.invoice-capacity-note small { display: block; margin-top: 3px; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.form-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid label { position: relative; min-width: 0; display: grid; align-content: start; gap: 7px; color: var(--text-soft); font-size: .75rem; font-weight: 700; }
.form-grid label[hidden] { display: none; }
.form-grid label > input, .form-grid label > select, .form-grid label > textarea { width: 100%; min-width: 0; color: var(--text); font-weight: 400; }
.form-grid label > input:not([type="file"]), .form-grid label > select { height: 44px; min-height: 44px; }
.date-shortcuts { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 8px; }
.date-shortcuts select, .audit-filters .date-shortcuts select { width: 100%; min-width: 0; height: 38px; min-height: 38px; padding: 0 9px; border: 1px solid rgba(154, 197, 202, .26); border-radius: 8px; background: rgba(11, 35, 47, .84); color: var(--text); font-size: .76rem; font-weight: 500; }
.date-shortcuts select:hover, .date-shortcuts select:focus-visible { border-color: rgba(122, 188, 221, .62); }
.audit-filters .date-shortcuts { margin-top: 2px; }
.form-grid input[type="file"] { min-height: 44px; padding: 9px; }
.field-help { color: var(--muted); font-size: .66rem; font-weight: 400; line-height: 1.5; }
.form-grid-help { grid-column: 1 / -1; margin-top: -7px; }
.span-2 { grid-column: span 2; }
.input-suffix { position: absolute; right: 11px; bottom: 13px; color: var(--muted); font-size: .68rem; pointer-events: none; }
.money-input-wrap { position: relative; display: block; }
.money-input-wrap input { width: 100%; min-width: 0; height: 44px; padding-right: 34px; color: var(--text); font-weight: 400; }
.money-input-wrap .input-suffix { top: 50%; bottom: auto; transform: translateY(-50%); }
.amount-uppercase { display: block; min-height: 1.4em; color: var(--text-soft); font-size: .7rem; font-weight: 500; line-height: 1.4; }
.auto-calc { margin-top: 18px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto auto; gap: 26px; align-items: center; border-radius: 8px; background: #071a21; }
.auto-calc > span { color: var(--muted); font-size: .7rem; }
.auto-calc small, .auto-calc strong { display: block; text-align: right; }
.auto-calc small { color: var(--muted); font-size: .66rem; }
.auto-calc strong { margin-top: 5px; }
.permission-note { margin-top: 18px; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.permission-note span { color: var(--text-soft); font-weight: 700; }
.private-note { border-color: rgba(240,115,124,.22); background: rgba(240,115,124,.04); }
.private-note strong { color: var(--red); }
.form-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 9px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0,7,10,.62); backdrop-filter: blur(3px); }
.project-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 71;
  width: min(470px, 100vw);
  height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: #081b23;
  box-shadow: -20px 0 70px rgba(0, 5, 8, .5);
  transform: translateX(102%);
  transition: transform .24s ease;
}
.project-drawer.open { transform: none; }
.drawer-head { padding-bottom: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 12px 0 0; font-size: 1.2rem; }
.drawer-head p { margin: 6px 0 0; color: var(--muted); font-size: .75rem; }
.drawer-content { flex: 1; overflow-y: auto; padding: 20px 0; }
.drawer-section { padding: 17px 0; border-bottom: 1px solid var(--line-soft); }
.drawer-section:first-child { padding-top: 0; }
.drawer-section h3 { margin: 0 0 14px; color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.drawer-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.drawer-kpis div { padding: 13px; border: 1px solid var(--line-soft); border-radius: 7px; background: var(--surface); }
.drawer-kpis span, .drawer-kpis strong { display: block; }
.drawer-kpis span { color: var(--muted); font-size: .67rem; }
.drawer-kpis strong { margin-top: 8px; font-size: .92rem; }
.drawer-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drawer-meta div span, .drawer-meta div strong { display: block; }
.drawer-meta span { color: var(--muted); font-size: .67rem; }
.drawer-meta strong { margin-top: 7px; font-size: .76rem; }
.drawer-note { color: var(--text-soft); font-size: .76rem; line-height: 1.7; }
.drawer-actions { padding-top: 16px; display: grid; gap: 16px; border-top: 1px solid var(--line); }
.drawer-action-section { display: grid; gap: 9px; }
.drawer-action-section > span { color: var(--muted); font-size: .67rem; letter-spacing: .08em; }
.drawer-action-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.drawer-action-buttons > button { min-width: 0; }
.drawer-action-buttons > button.last-odd { grid-column: 1 / -1; }
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: 360px;
  padding: 13px 16px;
  border: 1px solid rgba(53,221,177,.38);
  border-radius: 9px;
  background: var(--mint);
  color: #03231a;
  box-shadow: var(--shadow);
  font-size: .78rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: none; }
.empty-table { padding: 34px; color: var(--muted); text-align: center; }
.role-hidden { display: none !important; }

@media (max-width: 1280px) {
  .global-header { gap: 16px; }
  .brand-copy small { font-size: .52rem; letter-spacing: .02em; }
  .main-nav { gap: 0; }
  .nav-item { min-width: 68px; padding-inline: 10px; }
  .five-columns { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .six-columns { grid-template-columns: repeat(3, 1fr); }
  .six-columns .metric-cell:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  .project-metric-row { grid-template-columns: 1fr 1fr; }
  .project-metric-row .compact-stat { min-height: 136px; }
  .module-split { grid-template-columns: 1fr; }
  .director-kpi-strip { grid-template-columns: repeat(3, 1fr); }
  .director-kpi-strip > div:nth-child(n+4) { margin-top: 14px; }
  .resource-hero-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .resource-stat-card:last-child { grid-column: span 3; min-height: 120px; }
}

@media (max-width: 1020px) {
  .global-header { height: auto; min-height: 72px; flex-wrap: wrap; padding-block: 10px; }
  .brand { flex: 1; }
  .header-actions { order: 2; }
  .main-nav { order: 3; width: 100%; height: 40px; overflow-x: auto; }
  .nav-item { flex: 1; min-width: 76px; }
  .page-heading { min-height: 160px; }
  .director-grid, .finance-grid, .resource-content-grid, .review-grid { grid-template-columns: 1fr; }
  .finance-grid { align-items: start; }
  .media-strip { grid-template-columns: 1fr auto; }
  .media-strip-metrics { grid-column: 1 / -1; grid-row: 2; }
  .customer-insights { grid-template-columns: 1fr; }
  .customer-share { border-top: 1px solid rgba(121, 170, 177, .16); border-left: 0; }
  .customer-share-content { min-height: 220px; grid-template-columns: 190px minmax(180px, 1fr); justify-content: center; }
  .director-content-grid { grid-template-columns: 1fr; }
  .director-hero-panel { grid-template-columns: 1fr; }
  .director-profile { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 18px; }
  .resource-hero-grid { grid-template-columns: 1fr 1fr; }
  .resource-hero-card { grid-column: span 2; }
  .resource-stat-card:last-child { grid-column: auto; min-height: 184px; }
  .toolbar-panel { flex-wrap: wrap; }
  .search-field { flex: 1 1 100%; min-width: 0; }
  .result-count { margin-left: 0; }
}

@media (max-width: 760px) {
  .global-header { position: relative; padding-inline: 16px; }
  .brand-copy small { display: none; }
  .compact-button { width: 42px; overflow: hidden; white-space: nowrap; padding: 0 11px; color: transparent; }
  .compact-button span { color: var(--text-soft); font-size: 1rem; }
  .role-switcher { min-width: 50px; width: 50px; padding: 6px; }
  .account-security-button { padding-inline: 9px; font-size: .7rem; }
  .role-copy, .role-switcher .chevron { display: none; }
  .workspace { padding: 0 16px 50px; }
  .page-heading { min-height: 0; padding: 27px 0 22px; align-items: flex-start; flex-direction: column; }
  .heading-controls { width: 100%; flex-wrap: wrap; }
  .period-switch { flex: 1 1 100%; }
  .period-switch button { flex: 1; }
  .history-toolbar > .period-switch { order: 1; }
  .history-toolbar > small { margin-left: 0; }
  .heading-controls > .primary-button, .heading-controls > .secondary-button:not(.icon-button) { flex: 1; }
  .five-columns, .four-columns, .six-columns { grid-template-columns: repeat(2, 1fr); }
  .five-columns .metric-cell { grid-column: auto; }
  .metric-cell { min-height: 132px; padding: 18px; }
  .metric-cell > strong, .value-with-badge > strong { font-size: 1.55rem; }
  .project-metric-row { grid-template-columns: 1fr; }
  .customer-bar-head, .customer-bar { grid-template-columns: 116px minmax(110px, 1fr) minmax(112px, auto) 56px; gap: 10px; padding-inline: 16px; }
  .project-total-cell, .compact-stat { min-height: 140px; }
  .director-metrics { grid-template-columns: 1fr 1fr; }
  .media-strip { gap: 14px; padding: 15px; }
  .media-strip-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 0; }
  .group-list { grid-template-columns: 1fr; }
  .group-card-metrics { gap: 7px; }
  .group-dialog-content { padding: 20px 18px; }
  .director-metrics > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .margin-legend { gap: 9px; }
  .attention-row { grid-template-columns: 9px minmax(0, 1fr) auto; gap: 9px; }
  .attention-row > .priority-dot { grid-column: 1; grid-row: 1; }
  .attention-row > .attention-name { grid-column: 2 / 4; grid-row: 1; }
  .attention-row > .attention-metric { grid-column: 2; grid-row: 2; justify-items: start; text-align: left; }
  .attention-row > .attention-action { grid-column: 3; grid-row: 2; }
  .director-kpi-strip { grid-template-columns: 1fr 1fr; }
  .director-kpi-strip > div { padding: 10px; }
  .director-kpi-strip > div:nth-child(n+3) { margin-top: 10px; }
  .delivery-breakdown { grid-template-columns: 1fr 1fr; }
  .toolbar-panel > select { flex: 1 1 calc(50% - 9px); min-width: 0; }
  .resource-hero-grid { grid-template-columns: 1fr; }
  .resource-hero-card { grid-column: auto; }
  .resource-stat-card:last-child { min-height: 160px; }
  .modal { width: calc(100vw - 18px); max-height: calc(100vh - 18px); }
  .export-dialog-content { padding: 20px 17px; }
  .modal > :is(.export-dialog-content, .group-dialog-content) { max-height: calc(100vh - 18px); max-height: calc(100dvh - 18px); }
  .export-list-tools, .export-dialog-footer { align-items: stretch; flex-direction: column; }
  .export-dialog-footer > div { display: grid; grid-template-columns: 1fr 1fr; }
  .modal-shell { min-height: 0; height: calc(100vh - 18px); height: calc(100dvh - 18px); max-height: calc(100vh - 18px); max-height: calc(100dvh - 18px); grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .form-nav { padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .form-nav-head { display: none; }
  .form-nav nav { display: flex; overflow-x: auto; }
  .form-nav nav button { min-width: 150px; }
  .form-content { min-height: 0; max-height: none; padding: 20px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .form-note { align-items: flex-start; flex-direction: column; }
  .review-fields, .review-impact-grid { grid-template-columns: 1fr; }
  .approval-summary { grid-template-columns: 1fr; }
  .review-item { grid-template-columns: 64px minmax(0,1fr); }
  .review-item-meta { grid-column: 2; text-align: left; }
}

@media (max-width: 480px) {
  .brand-mark { width: 34px; height: 34px; }
  .brand-copy strong { font-size: .875rem; }
  .main-nav { justify-content: flex-start; }
  .nav-item { flex: 0 0 auto; min-width: 70px; }
  .five-columns, .four-columns, .six-columns { grid-template-columns: 1fr; }
  .five-columns .metric-cell { grid-column: auto; }
  .metric-cell { min-height: 118px; }
  .customer-sort { display: none; }
  .customer-bar-head, .customer-bar { grid-template-columns: 94px minmax(80px, 1fr) minmax(112px, auto); gap: 8px; padding-inline: 13px; }
  .customer-bar-head span:nth-child(4), .customer-bar > em { display: none; }
  .customer-name { grid-template-columns: 20px 1fr; gap: 6px; }
  .customer-name small { display: none; }
  .customer-share-content { min-height: 0; grid-template-columns: 1fr; justify-items: center; padding-block: 22px 8px; }
  .customer-share-legend { width: 100%; grid-template-columns: 1fr 1fr; }
  .director-card { padding: 18px; }
  .media-strip-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-director-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 13px 0; }
  .finance-director-row .person { grid-column: 1 / -1; }
  .finance-director-row > span:last-child { display: none; }
  .ghost-button { width: 36px; overflow: hidden; white-space: nowrap; color: transparent; }
  .ghost-button span { color: var(--text); }
  .delivery-breakdown { grid-template-columns: 1fr; }
  .asset-grid { grid-template-columns: 1fr 1fr; }
  .auto-calc { grid-template-columns: 1fr 1fr; }
  .auto-calc > span { grid-column: span 2; }
}

.position-history { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 14px; color: var(--muted); font-size: .85rem; }
.position-history strong { display: block; color: var(--text); margin-bottom: 9px; font-weight: 600; }
.position-history p { margin: 7px 0; line-height: 1.5; }
.position-history time { color: var(--text); margin-right: 8px; }
.people-position-button { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: rgba(83, 130, 169, .08); color: var(--text); cursor: pointer; white-space: nowrap; }
.people-position-button:hover, .people-position-button:focus-visible { border-color: var(--cyan); background: rgba(83, 130, 169, .18); }
.people-position-button + .people-position-button { margin-left: 6px; }
.employee-no { font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--ice, #d6e8f4); white-space: nowrap; }
.employee-number-preview { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 8px 2px; color: var(--muted); font-size: .78rem; }
.employee-number-preview strong { color: var(--text); font-size: 1rem; font-variant-numeric: tabular-nums; }
.employee-number-preview small { color: var(--muted); }
.file-links { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.attachment-link { display: inline-block; max-width: 240px; overflow-wrap: anywhere; color: #a9cde3; text-decoration: underline; text-decoration-color: rgba(169, 205, 227, .42); text-underline-offset: 3px; font-weight: 500; }
.attachment-link:hover, .attachment-link:focus-visible { color: #d7e9f2; text-decoration-color: currentColor; }

/* Only surfaces with a real destination receive a click affordance. */
.drill-card { position: relative; isolation: isolate; overflow: hidden; cursor: pointer; transition: background .28s ease, border-color .28s ease, box-shadow .28s ease, transform .28s ease; }
.drill-card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: linear-gradient(108deg, transparent 25%, rgba(159, 205, 234, .11) 49%, transparent 73%); transform: translateX(-110%); transition: transform .72s cubic-bezier(.2,.65,.2,1), opacity .25s ease; }
.drill-card:hover::after, .drill-card:focus-visible::after { opacity: 1; transform: translateX(110%); }
.metric-cell.drill-card:hover, .project-total-cell.drill-card:hover, .compact-stat.drill-card:hover,
.director-kpi-strip > .drill-card:hover, .media-strip-metrics > .drill-card:hover {
  background: linear-gradient(145deg, rgba(9, 43, 64, .56), rgba(3, 21, 36, .5));
  box-shadow: inset 0 0 0 1px rgba(156, 209, 236, .28), inset 0 1px 0 rgba(224, 245, 255, .08), 0 10px 26px rgba(0, 7, 16, .15);
  transform: translateY(-2px);
}
.director-card.drill-card:hover, .group-card.drill-card:hover {
  border-color: rgba(156, 209, 236, .42);
  background: linear-gradient(145deg, rgba(8, 39, 59, .58), rgba(3, 20, 35, .52));
  box-shadow: inset 0 1px 0 rgba(216, 241, 255, .1), 0 24px 52px rgba(0, 7, 16, .3);
}
.drill-card:active { transform: translateY(0) scale(.994) !important; }
.drill-card > strong, .drill-card .value-with-badge > strong { transition: text-shadow .28s ease; }
.drill-card:hover > strong, .drill-card:hover .value-with-badge > strong { text-shadow: 0 0 20px rgba(176, 214, 239, .23); }
.drill-spotlight { animation: drill-spotlight .95s ease-out; scroll-margin-top: 110px; }
@keyframes drill-spotlight { 0% { filter: brightness(1.2); } 100% { filter: brightness(1); } }

.backup-module { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; margin-top: 16px; background: radial-gradient(circle at 4% 0%, rgba(85, 211, 164, .105), transparent 18rem), linear-gradient(145deg, rgba(2, 19, 29, .56), rgba(2, 13, 23, .48)); }
.backup-copy { min-width: 0; }
.backup-copy h2 { margin: 5px 0 0; font-size: 1rem; }
.backup-copy p { margin: 10px 0 0; color: var(--text-soft); font-size: .8rem; line-height: 1.5; }
.backup-copy small { display: block; margin-top: 8px; color: var(--muted); font-size: .69rem; line-height: 1.55; }
.backup-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 9px; }
.backup-actions .secondary-button { min-height: 38px; white-space: nowrap; }
@media (max-width: 760px) { .backup-module { align-items: stretch; flex-direction: column; gap: 16px; } .backup-actions { flex: 1 1 auto; } }
@media (prefers-reduced-motion: reduce) {
  .drill-card, .drill-card::after, .drill-card > strong, .drill-card .value-with-badge > strong { transition: none !important; }
  .drill-card:hover, .drill-card:active { transform: none !important; }
  .drill-card::after { display: none; }
  .drill-spotlight { animation: none; }
}

.form-error { padding: 12px 14px; border: 1px solid rgba(237, 135, 145, .32); border-radius: 10px; background: rgba(104, 35, 48, .18); color: #efb9c0; font-size: 13px; line-height: 1.6; }
.form-error[hidden] { display: none; }
.progress-presets { display: flex; gap: 8px; margin: 18px 0; }
.monthly-progress-card { padding: 18px; border: 1px solid rgba(131, 181, 220, .2); border-radius: 12px; background: rgba(18, 40, 55, .35); }
.monthly-progress-card[hidden] { display: none; }
.monthly-progress-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.monthly-progress-card .progress-cell { width: 100%; min-width: 0; }
.monthly-progress-card small { display: block; margin-top: 10px; color: var(--muted, #96adbc); font-size: 12px; line-height: 1.6; }
.progress-presets button { flex: 1; min-width: 0; padding-inline: 8px; }
#monthlyFinalizedWrap input[type="checkbox"] { width: auto; min-height: auto; margin-right: 8px; accent-color: #83b5dc; }
#projectCompletedDateWrap[hidden], #progressCompletedDateWrap[hidden], #monthlyFinalizedWrap[hidden] { display: none; }

/* Usability pass: keep the dark glass palette, reduce competition between controls. */
:root { --muted: #96adb8; --muted-2: #859ca9; }
.account-menu { position: relative; }
.account-menu summary { cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker, .project-more-filters summary::-webkit-details-marker { display: none; }
.account-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; padding: 8px; z-index: 65; border: 1px solid var(--line); border-radius: 12px; background: #0c202e; box-shadow: var(--shadow); }
.account-menu-panel button { display: block; width: 100%; padding: 12px; text-align: left; border: 0; border-radius: 7px; background: transparent; color: var(--text); }
.account-menu-panel button:hover { background: rgba(124,168,216,.12); }
.director-hero-panel { grid-template-columns: minmax(0,1fr); gap: 18px; }
.director-profile { border: 0; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.director-profile > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.director-profile strong, .director-profile > div span { margin-top: 0; }
.director-profile .unit-mark--large, .director-avatar.large { width: 38px; height: 38px; }
.director-kpi-strip { grid-template-columns: repeat(5,minmax(0,1fr)); }
.director-kpi-strip.four-kpi-strip { grid-template-columns: repeat(4,minmax(0,1fr)); }
.director-kpi-strip > div { padding: 8px 16px; }
.director-kpi-strip > div:nth-child(n) { margin-top: 0; }
.director-kpi-strip strong { white-space: normal; overflow-wrap: anywhere; }
.group-module.is-empty { padding: 16px 20px; }
.group-module.is-empty .panel-heading { margin-bottom: 8px; min-height: 30px; }
.group-module.is-empty .group-empty { min-height: 0; padding: 0; border: 0; background: transparent; }
.group-module.is-empty .group-empty strong { display: none; }
.task-item { width: 100%; grid-template-columns: 64px minmax(0,1fr) 16px; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-radius: 8px; padding: 14px 10px; background: transparent; color: var(--text); cursor: pointer; }
.task-item > span { min-width: 0; }
.task-item strong, .task-item small { display: block; overflow-wrap: anywhere; }
.task-item small { margin-top: 6px; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.task-item time { width: 64px; min-width: 64px; font-size: .7rem; }
.task-item:hover { background: rgba(119,160,213,.08); }
.finance-grid.without-collection-plan { grid-template-columns: minmax(0,1fr); }
.scope-note { font-size: .75rem; color: var(--text-soft); line-height: 1.65; margin: 12px 0 20px; }
#people > .scope-note { order: 0; }
#people .metric-cell { min-height: 112px; padding-block: 18px; }
#people .metric-cell strong { margin-top: 14px; }
.people-table { min-width: 900px; table-layout: auto; }
.people-table :is(th,td):is(:nth-child(5),:nth-child(7),:nth-child(8),:nth-child(9),:nth-child(10),:nth-child(12),:nth-child(13)) { display: none; }
.people-table th:nth-child(4) { width: 240px; }
.person-detail-trigger { text-align: left; color: var(--text); font-weight: 600; padding: 0; border: 0; background: transparent; cursor: pointer; }
.person-detail-trigger small { display: block; color: #a8c6e4; font-size: .68rem; font-weight: 400; margin-top: 5px; }
.person-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 20px; }
.person-detail-grid section { padding: 14px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.person-detail-grid h3 { margin: 0 0 10px; font-size: .72rem; color: var(--muted); }
.person-detail-grid .people-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#projects .toolbar-panel { grid-template-columns: minmax(190px,1.7fr) repeat(3,minmax(115px,1fr)) auto auto auto; position: relative; z-index: 20; overflow: visible; }
.project-more-filters:not([open]) .more-filter-grid { display: none; }
.project-more-filters summary { cursor: pointer; list-style: none; padding: 12px; white-space: nowrap; font-size: .8rem; border: 1px solid var(--line); border-radius: 9px; background: rgba(13,33,49,.6); }
.more-filter-grid { position: absolute; right: 16px; top: calc(100% - 5px); z-index: 15; padding: 16px; display: grid; grid-template-columns: repeat(3,minmax(135px,1fr)); gap: 12px; max-width: calc(100% - 32px); border: 1px solid var(--line); border-radius: 12px; background: #0b202e; box-shadow: var(--shadow); }
.more-filter-grid select { min-width: 0; width: 100%; }
.project-table { min-width: 1510px; }
.project-table :is(th,td):first-child { position: sticky; left: 0; z-index: 2; background: #0b202a; min-width: 240px; max-width: 300px; box-shadow: 8px 0 16px rgba(0,0,0,.12); }
.project-table td:first-child .table-primary { display: block; overflow-wrap: anywhere; }
.project-table td:not(:first-child) { white-space: nowrap; }
.project-table .table-secondary { white-space: nowrap; }
.prototype-form > .form-actions { position: sticky; bottom: -30px; z-index: 4; margin: 20px -10px -10px; padding: 14px 10px; border-top: 1px solid var(--line); background: rgba(7,25,36,.96); backdrop-filter: blur(16px); }
#monthlyForm .form-grid { gap: 12px; }
.monthly-progress-card { padding: 12px; }
.monthly-progress-header { margin-bottom: 8px; }
.monthly-progress-card small { font-size: .68rem; margin-top: 5px; }
#monthlyProgressUpdated { display: none; }
#monthlyProgressBars .progress-cell { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; grid-auto-flow: column; gap: 3px 16px; }
#monthlyProgressBars .progress-value--reference { margin-top: 0; }
.monthly-progress-card .monthly-progress-header strong { font-size: .78rem; }
@media (max-width: 1100px) {
  #projects .toolbar-panel { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .director-kpi-strip { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .director-kpi-strip > div { padding-inline: 10px; }
}
@media (max-width: 700px) {
  #projects .toolbar-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #projects .toolbar-panel .search-field { grid-column: 1/-1; }
  .more-filter-grid { grid-template-columns: minmax(0,1fr); width: calc(100% - 24px); right: 12px; }
  .director-kpi-strip, .director-kpi-strip.four-kpi-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 0; }
  .director-kpi-strip:not(.four-kpi-strip) > div:last-child { grid-column: 1/-1; border-top: 1px solid var(--line); padding-top: 12px; }
  .person-detail-grid { grid-template-columns: minmax(0,1fr); }
  .person-detail-grid .span-2 { grid-column: auto; }
  .prototype-form > .form-actions { bottom: -22px; }
}
