:root {
  --bg: #f5f5f7;
  --panel: rgba(255,255,255,.86);
  --panel-solid: #ffffff;
  --text: #111114;
  --muted: #6e6e73;
  --border: rgba(0,0,0,.10);
  --accent: #0071e3;
  --accent-dark: #005bb8;
  --danger: #d92d20;
  --ok: #1a7f37;
  --shadow: 0 18px 54px rgba(0,0,0,.07);
  --radius: 24px;
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --ease-spring: cubic-bezier(.2,1.35,.32,1);
  --mobile-content-pad: 16px;
}
* { box-sizing: border-box; }
html {
  margin: 0;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  background: #f5f5f7;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  width: 100%;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #ffffff 0, #f5f5f7 42%, #eceef2 100%);
  color: var(--text);
  overscroll-behavior-y: none;
}
#app { min-height: 100vh; min-height: 100dvh; min-height: -webkit-fill-available; }
.app-screen { max-width: 1100px; }
button, input, textarea, select { font: inherit; font-size: 16px; max-width: 100%; min-width: 0; }
button, .button-link {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 14px 18px;
  min-height: 52px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,113,227,.16);
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition: transform .18s var(--ease-spring), background .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .16s ease;
  will-change: transform;
}
button:hover, .button-link:hover { transform: translateY(-1px) scale(1.01); background: var(--accent-dark); box-shadow: 0 14px 30px rgba(0,113,227,.20); }
button:active, .button-link:active, button.is-pressing, .button-link.is-pressing { transform: translateY(1px) scale(.985); box-shadow: 0 5px 14px rgba(0,0,0,.10); }
button:focus-visible, .button-link:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(0,113,227,.16), 0 14px 30px rgba(0,113,227,.18); }
button.is-success,
button.is-error,
.button-link.is-success,
.button-link.is-error {
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .14);
}
button.is-success,
.button-link.is-success {
  background: linear-gradient(180deg, #1f8c44, var(--ok));
  border-color: rgba(16, 98, 44, .35);
}
button.is-error,
.button-link.is-error {
  background: linear-gradient(180deg, #e03e35, var(--danger));
  border-color: rgba(185, 41, 29, .35);
}
button.ghost, .ghost-link { background: rgba(255,255,255,.7); color: var(--text); border: 1px solid var(--border); }
button.ghost, .ghost-link { box-shadow: 0 8px 22px rgba(17,17,20,.045); }
button.ghost:hover, .ghost-link:hover { background: #fff; box-shadow: 0 12px 28px rgba(17,17,20,.08); }
button.danger { background: var(--danger); color: #fff; }
button:disabled { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }
button > span, .button-link > span { color: currentColor; }
button > span:not(.ui-icon), .button-link > span:not(.ui-icon) {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.16;
}
button.is-busy:not(:disabled)::after,
.button-link.is-busy::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 2px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  opacity: .82;
  animation: buttonSpin .72s linear infinite;
}
.button.is-success::after,
.button.is-error::after,
.button-link.is-success::after,
.button-link.is-error::after {
  content: "";
  width: 0.95em;
  height: 0.95em;
  margin-left: 3px;
  border-radius: 50%;
  border: 2px solid currentColor;
  transform: scale(0.94);
  opacity: .95;
}
.button.is-success::after,
.button-link.is-success::after { content: "✓"; border: 0; font-weight: 900; line-height: 0.95em; }
.button.is-error::after,
.button-link.is-error::after { content: "!"; border: 0; font-weight: 900; line-height: 0.95em; }
@keyframes buttonFeedbackPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.045); }
  100% { transform: scale(1); }
}
button.is-success,
button.is-error {
  animation: buttonFeedbackPulse .33s var(--ease-spring);
}
.ui-icon {
  width: 1.08em;
  height: 1.08em;
  min-width: 1.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  opacity: .92;
}
.ui-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ui-icon svg path:first-child:last-child { fill: currentColor; stroke: none; }
@keyframes buttonSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  color: var(--text);
  padding: 15px 16px;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: rgba(0,113,227,.55); box-shadow: 0 0 0 4px rgba(0,113,227,.10); }
textarea { min-height: 104px; resize: vertical; }
label, .stack, .stack-sm { display: grid; gap: 8px; }
label > span, .muted, span { color: var(--muted); }
label > span, .small { font-size: 13px; }
.correction-fields:not([hidden]) { display: grid; gap: 12px; padding: 14px; border: 1px solid rgba(0,113,227,.14); border-radius: 22px; background: rgba(0,113,227,.045); }
.correction-form-hint { color: var(--muted); font-size: 13px; line-height: 1.45; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; }
h2 { font-size: 24px; letter-spacing: -.02em; }
h3 { font-size: 17px; }
.screen {
  max-width: 980px;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  padding-top: max(18px, constant(safe-area-inset-top));
  padding-bottom: max(18px, constant(safe-area-inset-bottom));
}
.login-screen { min-height: 100vh; min-height: 100dvh; min-height: -webkit-fill-available; display: grid; place-items: center; }
.card, .login-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  min-width: 0;
  overflow: hidden;
}
.login-card { width: min(100%, 540px); padding: 28px; display: grid; gap: 22px; }
.brand, .topbar, .section-head, .toolbar, .lang-switch, .link-row, .topline, .compact-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.link-row { flex-wrap: wrap; min-width: 0; }
.link-row > * { min-width: 0; max-width: 100%; }
.brand { justify-content: flex-start; }
.mark { width: 48px; height: 48px; border-radius: 16px; background: #111; color: #fff; display: grid; place-items: center; font-weight: 850; }
.topbar, .section-card { padding: 18px; }
.topbar { margin-bottom: 12px; position: sticky; top: 10px; z-index: 5; }
.compact-topbar { min-height: 70px; }
.compact-brand h1 { font-size: clamp(24px, 4vw, 36px); }
.compact-brand p { font-size: 13px; }
.compact-toolbar { flex-shrink: 0; }
.header-menu { min-height: 44px; padding: 10px 15px; gap: 8px; }
.header-menu.active { background: #111; color: #fff; border-color: #111; }
.icon-button { width: 42px; min-width: 42px; min-height: 42px; padding: 0; border-radius: 50%; font-size: 19px; }
.icon-button .ui-icon { width: 18px; height: 18px; min-width: 18px; }
.logout-button { min-height: 44px; padding: 10px 14px; gap: 7px; font-size: 13px; font-weight: 750; color: var(--muted); background: rgba(255,255,255,.62); }
.logout-button:hover { color: var(--text); background: #fff; }
.lang-switch { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lang-switch button { min-height: 38px; padding: 9px 11px; font-size: 12px; }
.lang-switch .active { background: #111; color: #fff; border-color: #111; }
.summary-grid, .main-grid, .team-grid, .two { display: grid; gap: 16px; }
.summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
.main-grid { grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); margin-bottom: 18px; align-items: start; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card { padding: 20px; }
.stat-card strong { display: block; margin-top: 8px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; }
.section-card { display: grid; gap: 14px; margin-bottom: 0; }
.focus-layout { display: grid; gap: 16px; }
.admin-focus-layout {
  gap: 18px;
}
.admin-simple-card {
  gap: 12px;
  padding: clamp(16px, 3vw, 24px);
  background: rgba(255,255,255,.96);
}
.admin-simple-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.admin-simple-head h2 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1;
  letter-spacing: -.03em;
}
.admin-simple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.admin-simple-grid article {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(17,17,20,.075);
  border-radius: 22px;
  background: rgba(255,255,255,.74);
}
.admin-simple-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.admin-simple-grid strong {
  color: var(--text);
  font-size: clamp(42px, 7vw, 72px);
  line-height: .95;
  letter-spacing: -.06em;
}
.admin-simple-grid p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
}
.admin-simple-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.admin-simple-actions button {
  min-height: 92px;
  border-radius: 24px;
  justify-content: center;
  font-size: clamp(19px, 3vw, 26px);
  letter-spacing: -.02em;
}
.admin-request-list {
  display: grid;
  gap: 8px;
}
.admin-request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(17,17,20,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
}
.admin-request-row > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.admin-request-row strong {
  color: var(--text);
  font-size: 16px;
}
.admin-request-row span,
.admin-request-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.admin-request-actions,
.admin-export-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.admin-request-actions button,
.admin-export-actions .button-link {
  min-height: 52px;
  border-radius: 16px;
}
.admin-ultra-minimal {
  max-width: 560px;
}
.simple-home {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}
.simple-home .clock-head { align-items: flex-start; }
.simple-home .clock-head h2 {
  font-size: clamp(32px, 6vw, 54px);
  line-height: .98;
}
.simple-home .clock-copy { font-size: 18px; }
.simple-home .live-time strong,
.simple-home .idle-clock strong {
  font-size: clamp(42px, 12vw, 82px);
}
.simple-home-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.simple-home-links button {
  min-height: 72px;
  border-radius: 22px;
  justify-content: center;
  font-size: 18px;
}
.admin-focus-layout > .manager-digest-card,
.admin-focus-layout > .month-close-signal,
.admin-focus-layout > .export-card,
.admin-focus-layout > .section-card {
  grid-column: 1 / -1;
}
.hero-clock { background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.86)); padding: clamp(22px, 4vw, 34px); }
.today-card { align-content: start; }
.today-card .today-actions { align-self: start; }
.onboarding-card {
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.80));
  border-color: rgba(0,113,227,.14);
}
.onboarding-copy { display: grid; gap: 8px; max-width: 720px; }
.onboarding-copy .muted { line-height: 1.48; }
.demo-note {
  width: fit-content;
  max-width: 100%;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0,113,227,.07);
  border: 1px solid rgba(0,113,227,.16);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.onboarding-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.onboarding-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
}
.onboarding-step > span {
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111114;
  color: #fff;
  font-weight: 850;
  font-size: 13px;
}
.onboarding-step div { min-width: 0; display: grid; gap: 4px; }
.onboarding-step strong { color: var(--text); font-size: 14px; letter-spacing: -.01em; overflow-wrap: anywhere; hyphens: auto; }
.onboarding-step p { color: var(--muted); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; hyphens: auto; }
.onboarding-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.onboarding-actions button { min-height: 54px; }
.onboarding-primary { padding-inline: 20px; }
.onboarding-secondary { color: var(--muted); }
.clock-head { align-items: flex-start; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 850; margin-bottom: 6px; }
.live-time { display: grid; gap: 7px; }
.live-time strong { font-size: clamp(42px, 8vw, 68px); letter-spacing: -.06em; line-height: .95; }
.idle-clock { display: grid; gap: 6px; color: var(--muted); }
.idle-clock strong { color: var(--text); font-size: clamp(50px, 10vw, 84px); letter-spacing: -.07em; line-height: .92; }
.location-pill { width: fit-content; max-width: 100%; border: 1px solid rgba(0,113,227,.18); background: rgba(0,113,227,.07); color: var(--text); border-radius: 999px; padding: 10px 13px; overflow-wrap: anywhere; }
.action-grid,
.today-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.primary-actions,
.today-actions { gap: 12px; }
.primary-actions button,
.today-actions button { min-height: 76px; font-size: 20px; border-radius: 24px; gap: 10px; }
.primary-actions .start-main, .primary-actions .stop-main,
.today-actions .start-main, .today-actions .stop-main { min-height: 100px; font-size: clamp(25px, 5vw, 34px); letter-spacing: -.03em; }
.primary-actions .start-main .ui-icon, .primary-actions .stop-main .ui-icon,
.today-actions .start-main .ui-icon, .today-actions .stop-main .ui-icon { width: .95em; height: .95em; min-width: .95em; }
.primary-actions .finish-main,
.today-actions .finish-main { background: #111114; color: #fff; }
.primary-actions .finish-main:hover,
.today-actions .finish-main:hover { background: #2b2b2f; }
.primary-actions .resume-main,
.today-actions .resume-main {
  min-height: 88px;
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: -.025em;
  background: var(--accent);
  color: #fff;
}
.primary-actions .resume-main:hover,
.today-actions .resume-main:hover { background: var(--accent-dark); }
.primary-actions .stop-secondary,
.today-actions .stop-secondary {
  min-height: 76px;
  font-size: clamp(18px, 3.4vw, 24px);
  background: rgba(255,255,255,.74);
  color: var(--text);
  border: 1px solid rgba(17,17,20,.12);
}
.primary-actions .stop-secondary:hover,
.today-actions .stop-secondary:hover { background: #fff; }
.primary-actions button:disabled,
.primary-actions .disabled-soft:disabled,
.today-actions button:disabled,
.today-actions .disabled-soft:disabled {
  opacity: 1;
  background: rgba(17,17,20,.045);
  color: var(--muted);
  border: 1px solid rgba(17,17,20,.08);
  box-shadow: none;
}
.today-actions.idle-actions,
.today-actions.locating-actions { grid-template-columns: 1fr; }
.today-actions.active-actions,
.today-actions.pause-actions { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: stretch; }
.today-actions.active-actions .ghost,
.today-actions.pause-actions .ghost { min-height: 76px; }
.correction-entry,
.location-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(17,17,20,.08);
  border-radius: 18px;
  background: rgba(245,245,247,.74);
}
.correction-entry > div,
.location-status { min-width: 0; }
.correction-entry strong,
.correction-entry span,
.location-status strong,
.location-status span,
.location-status em { display: block; overflow-wrap: anywhere; }
.correction-entry strong,
.location-status strong { color: var(--text); font-size: 14px; letter-spacing: -.01em; }
.correction-entry span,
.location-status span,
.location-status em { color: var(--muted); font-size: 13px; line-height: 1.36; }
.location-status em { margin-top: 4px; font-style: normal; }
.correction-entry.pending { border-color: rgba(138,90,0,.18); background: rgba(138,90,0,.06); }
.correction-entry.ok { border-color: rgba(26,127,55,.20); background: rgba(26,127,55,.07); }
.location-status.error {
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
  border-color: rgba(217,45,32,.20);
  background: rgba(217,45,32,.055);
}
.location-status.error strong,
.location-status.error span,
.location-status.error em {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
.location-status.error strong { white-space: normal; }
.correction-action { flex-shrink: 0; min-height: 52px; border-radius: 16px; padding-inline: 14px; color: var(--muted); }
.clock-copy {
  max-width: 560px;
  line-height: 1.46;
}
.badge.pending {
  color: #8a5a00;
  border-color: rgba(138,90,0,.18);
  background: rgba(138,90,0,.07);
}
.trust-note {
  padding: 12px 14px;
  border: 1px solid rgba(17,17,20,.08);
  border-radius: 18px;
  background: rgba(245,245,247,.72);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}
.pause-strip {
  width: fit-content;
  max-width: 100%;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(17,17,20,.06);
  border: 1px solid rgba(17,17,20,.10);
  font-weight: 750;
}
.muted-pill { color: var(--muted); }

.manager-digest-card {
  gap: 14px;
  padding: clamp(18px, 3.4vw, 28px);
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.84));
  border-color: rgba(0,113,227,.14);
  box-shadow: 0 16px 46px rgba(0,0,0,.055);
}
.digest-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.digest-head h2 {
  max-width: 700px;
  font-size: clamp(26px, 6vw, 42px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.digest-head .muted {
  max-width: 620px;
  margin-top: 8px;
  line-height: 1.46;
}
.digest-context {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}
.digest-context span,
.digest-empty-line {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 16px;
  background: rgba(245,245,247,.72);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.36;
  overflow-wrap: anywhere;
}
.digest-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.digest-stats article {
  min-width: 0;
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 13px 12px;
  border: 1px solid rgba(17,17,20,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  text-align: center;
}
.digest-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.digest-stats strong {
  color: var(--text);
  font-size: clamp(26px, 6vw, 38px);
  line-height: .94;
  letter-spacing: -.05em;
}
.digest-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 10px;
}
.digest-actions button {
  min-width: 0;
  min-height: 56px;
  border-radius: 18px;
}
.digest-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.digest-decision {
  min-width: 0;
  min-height: 144px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(17,17,20,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.76);
}
.digest-decision.open,
.digest-decision.hint {
  border-color: rgba(183,121,31,.16);
  background: rgba(183,121,31,.055);
}
.digest-decision.ok {
  border-color: rgba(26,127,55,.18);
  background: rgba(26,127,55,.06);
}
.digest-decision strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  letter-spacing: -.01em;
}
.digest-decision p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}
.digest-mini-action {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  border-radius: 15px;
  padding: 10px 12px;
  color: var(--text);
}
.digest-empty-line {
  display: grid;
  gap: 3px;
}
.digest-empty-line strong {
  color: var(--text);
  font-size: 14px;
}
.digest-empty-line span {
  color: var(--muted);
}

.premium-pilot-card {
  gap: 18px;
  padding: clamp(20px, 4vw, 30px);
  background: linear-gradient(180deg, rgba(17,17,20,.96), rgba(33,36,43,.92));
  color: #fff;
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 22px 60px rgba(17,17,20,.14);
}
.premium-pilot-card .muted,
.premium-pilot-card .trust-note { color: rgba(255,255,255,.68); }
.premium-pilot-card .eyebrow { color: #8cc8ff; }
.premium-pilot-card h2 { color: #fff; line-height: 1.04; letter-spacing: -.045em; }
.premium-pilot-card .badge { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.10); color: rgba(255,255,255,.76); }
.premium-pilot-card .badge.ok { color: #bff4d0; border-color: rgba(191,244,208,.28); background: rgba(191,244,208,.10); }
.premium-pilot-card .badge.pending { color: rgba(255,255,255,.74); }
.premium-pilot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.premium-pilot-head > div { min-width: 0; display: grid; gap: 8px; }
.premium-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.premium-trust-grid span {
  min-height: 42px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 15px;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.07);
  font-size: 13px;
  font-weight: 740;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.premium-step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.premium-step-list article {
  min-width: 0;
  min-height: 128px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  display: grid;
  align-content: start;
  gap: 8px;
}
.premium-step-list strong {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #111114;
  font-size: 13px;
}
.premium-step-list span { color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.38; overflow-wrap: anywhere; }
.premium-pilot-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); gap: 10px; }
.premium-pilot-actions button { min-width: 0; min-height: 56px; border-radius: 18px; }
.premium-pilot-card button.ghost { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.18); }
.premium-pilot-card button.ghost:hover { background: rgba(255,255,255,.16); }
.premium-pilot-card button:disabled { opacity: 1; background: rgba(255,255,255,.16); color: rgba(255,255,255,.54); border: 1px solid rgba(255,255,255,.12); }
.premium-upgrade-hint { margin-top: -2px; line-height: 1.45; }

.week-card {
  gap: 16px;
  padding: clamp(18px, 3vw, 24px);
  background: rgba(255,255,255,.84);
  box-shadow: 0 12px 36px rgba(0,0,0,.045);
}
.week-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.week-head h2 {
  margin-top: 2px;
  font-size: clamp(30px, 6vw, 44px);
  line-height: .98;
  letter-spacing: -.055em;
}
.week-head .muted {
  margin-top: 7px;
  line-height: 1.42;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}
.week-day {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.week-day span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.week-day i {
  display: block;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(to top, #111114 var(--fill), rgba(17,17,20,.075) var(--fill));
  border: 1px solid rgba(17,17,20,.08);
}
.week-day.today span { color: var(--text); }
.week-day.today i { border-color: rgba(0,113,227,.24); box-shadow: inset 0 0 0 1px rgba(0,113,227,.14); }
.week-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.week-lines span {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 16px;
  background: rgba(245,245,247,.78);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.week-empty-actions {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 8px;
}
.week-empty-actions button {
  min-width: 0;
  min-height: 52px;
  border-radius: 17px;
  justify-content: center;
  padding-inline: 12px;
}
.weekly-close-card {
  gap: 16px;
  padding: clamp(18px, 3.5vw, 28px);
  border-color: rgba(0,113,227,.16);
  border-radius: clamp(24px, 3vw, 30px);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.92));
  box-shadow: 0 18px 54px rgba(17,17,20,.07);
  overflow: hidden;
}
.weekly-close-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.weekly-close-head > div { min-width: 0; display: grid; gap: 5px; }
.weekly-close-head h2 { font-size: clamp(25px, 5.8vw, 34px); line-height: 1.04; letter-spacing: -.045em; }
.weekly-close-list { display: grid; gap: 8px; grid-auto-rows: 72px; }
.weekly-close-row {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
  grid-template-areas: "label status" "detail status";
  align-items: center;
  gap: 4px 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(17,17,20,.075);
  background: rgba(255,255,255,.78);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}
.weekly-close-row span { grid-area: label; min-width: 0; color: var(--text); font-weight: 780; overflow-wrap: anywhere; }
.weekly-close-row strong {
  grid-area: status;
  justify-self: end;
  min-width: 96px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,20,.08);
  background: rgba(245,245,247,.86);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.weekly-close-row em {
  grid-area: detail;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.weekly-close-row.ready strong { color: var(--ok); border-color: rgba(26,127,55,.20); background: rgba(26,127,55,.07); }
.weekly-close-row.review strong { color: #8a5a00; border-color: rgba(186,124,0,.20); background: rgba(255,183,3,.12); }
.weekly-close-row.open strong { color: #8a5a00; border-color: rgba(186,124,0,.22); background: rgba(255,183,3,.14); }
.weekly-close-row.error strong { color: var(--danger); border-color: rgba(217,45,32,.20); background: rgba(217,45,32,.08); }
.weekly-close-actions { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 10px; }
.weekly-close-actions button { min-width: 0; min-height: 68px; border-radius: 20px; justify-content: center; }
.weekly-close-trust,
.weekly-close-empty { margin-top: -2px; }
.month-close-signal {
  gap: 16px;
  border-color: rgba(0,113,227,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(251,252,255,.90));
}
.month-signal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.month-signal-head > div { min-width: 0; display: grid; gap: 4px; }
.month-signal-head h2 { font-size: clamp(23px, 5.4vw, 30px); letter-spacing: -.035em; }
.month-signal-list { display: grid; gap: 8px; }
.month-signal-row {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label status" "detail status";
  align-items: center;
  gap: 3px 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(17,17,20,.075);
  background: rgba(255,255,255,.76);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}
.month-signal-row:hover { background: #fff; }
.month-signal-row span { grid-area: label; color: var(--text); font-weight: 760; overflow-wrap: anywhere; }
.month-signal-row strong {
  grid-area: status;
  justify-self: end;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(17,17,20,.08);
  color: var(--muted);
  background: rgba(245,245,247,.86);
}
.month-signal-row em {
  grid-area: detail;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.month-signal-row.ready strong { color: var(--ok); border-color: rgba(26,127,55,.20); background: rgba(26,127,55,.07); }
.month-signal-row.review strong { color: #8a5a00; border-color: rgba(186,124,0,.20); background: rgba(255,183,3,.12); }
.month-signal-row.error strong { color: var(--danger); border-color: rgba(217,45,32,.20); background: rgba(217,45,32,.08); }
.month-signal-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.month-signal-actions button { min-height: 58px; border-radius: 19px; }
.month-signal-trust { margin-top: -2px; }
.employee-month-card {
  display: grid;
  gap: 14px;
  overflow: hidden;
}
.employee-month-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.employee-month-head h2 { margin-top: 2px; }
.employee-month-head .muted { margin-top: 6px; line-height: 1.42; max-width: 560px; }
.employee-month-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.employee-month-facts span {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 17px;
  background: rgba(255,255,255,.72);
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.25;
}
.employee-month-check-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.employee-month-check-row {
  min-height: 96px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 19px;
  background: rgba(248,250,252,.80);
}
.employee-month-check-row span { min-width: 0; display: grid; gap: 5px; align-content: start; }
.employee-month-check-row strong { color: var(--text); font-size: 14px; line-height: 1.2; }
.employee-month-check-row em { color: var(--muted); font-size: 12px; line-height: 1.32; font-style: normal; overflow-wrap: anywhere; }
.employee-month-check-row b {
  flex: 0 0 auto;
  height: fit-content;
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,20,.08);
  background: rgba(245,245,247,.86);
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
.employee-month-check-row.ready b { color: var(--ok); border-color: rgba(26,127,55,.20); background: rgba(26,127,55,.07); }
.employee-month-check-row.review b { color: #8a5a00; border-color: rgba(186,124,0,.20); background: rgba(255,183,3,.12); }
.employee-month-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .5fr); gap: 10px; }
.employee-month-actions button { min-height: 58px; border-radius: 19px; }

.chef-report-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(0,113,227,.07), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(251,252,255,.91));
}
.chef-report-list { grid-auto-rows: minmax(62px, auto); }
.chef-period-tabs,
.export-period-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 20px;
  background: rgba(245,245,247,.72);
}
.chef-period-tabs button,
.export-period-tabs button {
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 15px;
  justify-content: center;
}
.chef-period-tabs button.active,
.export-period-tabs button.active {
  background: #fff;
  color: var(--accent);
  border-color: rgba(0,113,227,.20);
  box-shadow: 0 8px 22px rgba(0,113,227,.07);
}
.export-period-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .52fr);
  align-items: stretch;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 24px;
  background: rgba(255,255,255,.74);
}
.export-period-card h3 { margin: 0; font-size: clamp(19px, 3vw, 24px); letter-spacing: -.03em; }
.export-period-card p { margin: 4px 0 0; }
.export-period-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; }
.export-week-note { margin-top: -2px; font-size: 12px; }

.export-card {
  border-color: rgba(0,113,227,.16);
  background:
    radial-gradient(circle at 12% 0%, rgba(0,113,227,.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.92));
}
.month-close-card {
  gap: 18px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
  border-radius: clamp(24px, 3vw, 34px);
  box-shadow: 0 22px 70px rgba(17,17,20,.075);
}
.month-close-card *,
.month-close-signal * { min-width: 0; }
.chef-report-card * { min-width: 0; }
.month-close-head {
  align-items: flex-start;
  padding: 2px 2px 0;
}
.month-close-head h2 { max-width: 720px; letter-spacing: -.045em; }

.monthly-approval-card {
  gap: 14px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: clamp(16px, 3vw, 28px);
  border-color: rgba(17,17,20,.08);
  border-radius: clamp(24px, 3vw, 32px);
  background:
    radial-gradient(circle at 14% 0%, rgba(0,113,227,.07), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,250,252,.94));
  box-shadow: 0 22px 70px rgba(17,17,20,.072);
}
.admin-month-overview {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,250,252,.94));
}
.admin-month-overview .monthly-approval-header h2 {
  font-size: clamp(24px, 3.2vw, 34px);
}
.admin-month-overview .monthly-decision-rail {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px;
  border-radius: 22px;
}
.admin-month-overview .monthly-decision-card {
  min-height: 110px;
  padding: 14px;
  border-radius: 17px;
}
.admin-month-overview .monthly-decision-card strong {
  font-size: clamp(18px, 2vw, 22px);
}
.admin-month-overview .monthly-approval-actions {
  grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr);
}
.admin-month-overview .monthly-exception-rail {
  padding: 10px;
  border-radius: 20px;
}
.admin-month-overview .monthly-exception-row {
  min-height: 58px;
  padding: 11px 12px;
  border-radius: 15px;
}
.admin-month-overview .monthly-exception-row strong,
.admin-month-overview .monthly-exception-row em {
  display: block;
}
.admin-month-snapshot {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
  gap: 12px;
  align-items: start;
}
.admin-month-snapshot .month-review-status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px;
  border-radius: 20px;
}
.admin-month-snapshot .month-review-status-card {
  min-height: 96px;
  padding: 13px;
  border-radius: 16px;
}
.compact-team-preview {
  padding: 10px;
  border-radius: 20px;
}
.compact-team-preview .monthly-employee-row {
  min-height: 66px;
  grid-template-columns: minmax(0, 1fr) minmax(86px, auto);
}
.compact-team-preview .monthly-employee-row i {
  display: none;
}
.admin-month-overview .monthly-approval-trust {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-month-overview .monthly-approval-trust span {
  min-height: 46px;
}
.month-close-review-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.monthly-approval-card * { min-width: 0; }
.monthly-approval-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.monthly-approval-header h2 {
  max-width: 680px;
  margin-top: 2px;
  letter-spacing: -.045em;
}
.monthly-approval-header .muted {
  max-width: 660px;
  margin-top: 7px;
  line-height: 1.46;
}
.monthly-approval-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: 0 0 auto;
}
.monthly-approval-meta > span {
  padding: 9px 12px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
  white-space: nowrap;
}
.monthly-detail-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(17,17,20,.06);
  border-radius: 24px;
  background: rgba(245,245,247,.58);
}
.monthly-status-grid {
  --monthly-status-tile-min: 112px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(var(--monthly-status-tile-min), 1fr);
  align-items: stretch;
  gap: 8px;
}
.monthly-status-tile {
  min-height: var(--monthly-status-tile-min);
  height: 100%;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(17,17,20,.075);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
}
.monthly-status-tile span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.monthly-status-tile strong {
  color: var(--text);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.16;
  letter-spacing: -.025em;
}
.monthly-status-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.monthly-status-tile.ready { border-color: rgba(26,127,55,.15); background: rgba(26,127,55,.045); }
.monthly-status-tile.review { border-color: rgba(186,124,0,.16); background: rgba(186,124,0,.055); }
.monthly-status-tile.open { border-color: rgba(217,45,32,.15); background: rgba(217,45,32,.045); }
.monthly-status-tile.error { border-color: rgba(217,45,32,.20); background: rgba(217,45,32,.065); }
.monthly-status-tile.empty { border-color: rgba(17,17,20,.06); background: rgba(255,255,255,.58); }
.monthly-decision-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(245,245,247,.72), rgba(255,255,255,.72));
}
.monthly-decision-card {
  min-height: 132px;
  height: 100%;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}
.monthly-decision-card.ready { border-color: rgba(26,127,55,.18); background: rgba(26,127,55,.05); }
.monthly-decision-card.review { border-color: rgba(186,124,0,.20); background: rgba(255,183,3,.10); }
.monthly-decision-card.open { border-color: rgba(217,45,32,.16); background: rgba(217,45,32,.055); }
.monthly-decision-card b {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.monthly-decision-card strong {
  min-width: 0;
  color: var(--text);
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.08;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.monthly-decision-card p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.36;
  overflow-wrap: anywhere;
}
.monthly-decision-card span {
  align-self: end;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(0,113,227,.16);
  border-radius: 999px;
  background: rgba(0,113,227,.06);
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  overflow-wrap: anywhere;
  white-space: normal;
}
.monthly-approval-promise {
  margin: -4px 2px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.38;
}

.month-close-no-pii-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(17,17,20,.075);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(248,250,252,.76));
}
.month-close-no-pii-card.ready { border-color: rgba(26,127,55,.15); background: rgba(26,127,55,.045); }
.month-close-no-pii-card.review { border-color: rgba(186,124,0,.16); background: rgba(255,183,3,.075); }
.month-close-no-pii-card.open { border-color: rgba(217,45,32,.14); background: rgba(217,45,32,.045); }
.month-close-no-pii-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
  align-items: start;
  gap: 12px;
}
.month-close-no-pii-head > div { display: grid; gap: 5px; }
.month-close-no-pii-head .eyebrow { margin: 0; }
.month-close-no-pii-head strong {
  color: var(--text);
  font-size: clamp(17px, 2.3vw, 22px);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.month-close-no-pii-head span,
.month-close-no-pii-policy,
.month-close-no-pii-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.36;
  overflow-wrap: anywhere;
}
.month-close-no-pii-head b {
  min-width: 112px;
  justify-self: end;
  padding: 9px 11px;
  border: 1px solid rgba(0,113,227,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.month-close-no-pii-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(104px, 1fr);
  gap: 9px;
}
.month-close-no-pii-grid article {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 18px;
  background: rgba(255,255,255,.76);
}
.month-close-no-pii-grid article.ready { border-color: rgba(26,127,55,.16); background: rgba(26,127,55,.045); }
.month-close-no-pii-grid article.review { border-color: rgba(186,124,0,.18); background: rgba(255,183,3,.10); }
.month-close-no-pii-grid article.open { border-color: rgba(217,45,32,.16); background: rgba(217,45,32,.055); }
.month-close-no-pii-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .09em;
  line-height: 1.2;
  text-transform: uppercase;
}
.month-close-no-pii-grid strong {
  color: var(--text);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.month-close-no-pii-grid p,
.month-close-no-pii-policy { margin: 0; }
.month-close-no-pii-grid p { color: var(--muted); font-size: 12px; line-height: 1.34; }
.month-close-no-pii-policy {
  padding: 11px 12px;
  border: 1px solid rgba(17,17,20,.06);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.monthly-confidence-panel {
  display: grid;
  grid-template-columns: minmax(110px, .55fr) repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.74), rgba(248,250,252,.72));
}
.monthly-confidence-panel > span {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(17,17,20,.035);
  color: var(--text);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.monthly-confidence-panel article {
  min-height: 76px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 13px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 18px;
  background: rgba(255,255,255,.76);
}
.monthly-confidence-panel article.ready { border-color: rgba(26,127,55,.16); background: rgba(26,127,55,.045); }
.monthly-confidence-panel article.review { border-color: rgba(186,124,0,.18); background: rgba(255,183,3,.10); }
.monthly-confidence-panel b {
  color: var(--text);
  font-size: 13px;
  letter-spacing: -.01em;
}
.monthly-confidence-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.34;
}
.monthly-correction-hint {
  display: grid;
  grid-template-columns: minmax(132px, .42fr) minmax(148px, .5fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 22px;
  background: rgba(255,255,255,.70);
}
.monthly-correction-hint span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.monthly-correction-hint strong {
  color: var(--text);
  font-size: 15px;
  letter-spacing: -.015em;
}
.monthly-correction-hint p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.monthly-correction-hint.ready { border-color: rgba(26,127,55,.14); background: rgba(26,127,55,.04); }
.monthly-correction-hint.review { border-color: rgba(186,124,0,.16); background: rgba(255,183,3,.09); }
.monthly-correction-inbox {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 24px;
  background: rgba(255,255,255,.70);
}
.monthly-correction-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, auto);
  gap: 14px;
  align-items: start;
}
.monthly-correction-head h3 { color: var(--text); font-size: 20px; }
.monthly-correction-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  gap: 8px;
  min-width: 0;
}
.monthly-correction-summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  align-content: center;
  padding: 9px 10px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 16px;
  background: rgba(248,250,252,.78);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.15;
  text-transform: uppercase;
}
.monthly-correction-summary b {
  color: var(--text);
  font-size: 21px;
  line-height: 1;
  letter-spacing: -.04em;
}
.monthly-correction-list { display: grid; gap: 9px; }
.monthly-correction-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}
.monthly-correction-row > div { display: grid; gap: 4px; min-width: 0; }
.monthly-correction-row strong { color: var(--text); font-size: 14px; }
.monthly-correction-row span,
.monthly-correction-row p,
.monthly-correction-row em {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.34;
  overflow-wrap: anywhere;
}
.monthly-correction-row.open { border-color: rgba(217,45,32,.14); background: rgba(217,45,32,.045); }
.monthly-correction-row.ready { border-color: rgba(26,127,55,.16); background: rgba(26,127,55,.045); }
.monthly-correction-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.monthly-correction-actions button {
  min-height: 46px;
  padding: 10px 13px;
  border-radius: 16px;
}

.monthly-exception-rail {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
}
.monthly-exception-rail.chef {
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(248,250,252,.74));
}
.monthly-exception-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.monthly-exception-head > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 840;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.monthly-exception-head .monthly-all-link {
  width: auto;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12px;
}
.monthly-exception-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(46px, auto);
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(17,17,20,.075);
  border-radius: 18px;
  background: rgba(248,250,252,.82);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}
.monthly-exception-row > span { display: grid; gap: 4px; }
.monthly-exception-row strong { color: var(--text); font-size: 14px; line-height: 1.22; letter-spacing: -.01em; overflow-wrap: anywhere; }
.monthly-exception-row em { color: var(--muted); font-size: 12px; line-height: 1.32; font-style: normal; overflow-wrap: anywhere; }
.monthly-exception-row b {
  justify-self: end;
  min-width: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(17,17,20,.08);
  border-radius: 999px;
  background: rgba(245,245,247,.88);
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.monthly-exception-row.ready { border-color: rgba(26,127,55,.15); background: rgba(26,127,55,.045); }
.monthly-exception-row.ready b { color: var(--ok); border-color: rgba(26,127,55,.20); background: rgba(26,127,55,.07); }
.monthly-exception-row.review { border-color: rgba(186,124,0,.16); background: rgba(255,183,3,.08); }
.monthly-exception-row.open { border-color: rgba(217,45,32,.14); background: rgba(217,45,32,.045); }
.monthly-exception-row.review b,
.monthly-exception-row.open b { color: #8a5a00; border-color: rgba(186,124,0,.20); background: rgba(255,183,3,.12); }
.monthly-exception-row.error b { color: var(--danger); border-color: rgba(217,45,32,.20); background: rgba(217,45,32,.08); }
.month-review-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 24px;
  background: rgba(255,255,255,.70);
}
.month-review-status-card {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(17,17,20,.075);
  border-radius: 19px;
  background: rgba(248,250,252,.82);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}
.month-review-status-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .09em;
  line-height: 1.2;
  text-transform: uppercase;
}
.month-review-status-card strong {
  color: var(--text);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.1;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.month-review-status-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.month-review-status-card.ready { border-color: rgba(26,127,55,.16); background: rgba(26,127,55,.045); }
.month-review-status-card.review { border-color: rgba(186,124,0,.18); background: rgba(255,183,3,.09); }
.month-review-status-card.open { border-color: rgba(217,45,32,.16); background: rgba(217,45,32,.05); }
.month-review-status-card.error { border-color: rgba(217,45,32,.22); background: rgba(217,45,32,.065); }
.monthly-employee-list {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 24px;
  background: rgba(255,255,255,.66);
}
.monthly-employee-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, auto) minmax(118px, auto);
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 19px;
  background: rgba(248,250,252,.86);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}
.monthly-employee-row > span { display: grid; gap: 4px; }
.monthly-employee-row strong { color: var(--text); font-size: 14px; letter-spacing: -.01em; }
.monthly-employee-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.monthly-employee-row b {
  justify-self: end;
  min-width: 92px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,20,.08);
  background: rgba(245,245,247,.86);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.monthly-employee-row i {
  justify-self: stretch;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 15px;
  border: 1px solid rgba(17,17,20,.08);
  background: rgba(255,255,255,.74);
  color: var(--text);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  text-align: center;
}
.monthly-employee-row.ready b { color: var(--ok); border-color: rgba(26,127,55,.20); background: rgba(26,127,55,.07); }
.monthly-employee-row.review b,
.monthly-employee-row.open b { color: #8a5a00; border-color: rgba(186,124,0,.20); background: rgba(255,183,3,.12); }
.monthly-employee-row.skeleton {
  pointer-events: none;
  grid-template-columns: minmax(0, 1fr) 92px;
  background: linear-gradient(90deg, rgba(245,245,247,.76), rgba(255,255,255,.92), rgba(245,245,247,.76));
  background-size: 220% 100%;
  animation: skeletonShimmer 1.3s ease-in-out infinite;
}
.monthly-employee-row.skeleton span,
.monthly-employee-row.skeleton em,
.monthly-employee-row.skeleton strong {
  display: block;
  height: 13px;
  border-radius: 999px;
  background: rgba(17,17,20,.08);
}
.monthly-employee-row.skeleton em { width: 70%; }
.monthly-empty-line {
  margin: 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(248,250,252,.78);
  color: var(--muted);
  font-size: 13px;
}
.monthly-all-link {
  min-height: 46px;
  width: 100%;
  border-radius: 16px;
}
.monthly-approval-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 10px;
}
.monthly-approval-actions button {
  min-height: 58px;
  border-radius: 19px;
  justify-content: center;
  text-align: center;
}
.monthly-approval-actions button:first-child {
  min-height: 64px;
  font-size: 16px;
}
.monthly-approval-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.monthly-approval-trust span {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 18px;
  background: rgba(255,255,255,.68);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
@keyframes skeletonShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

.month-close-form { gap: 15px; }
.month-select-block {
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 22px;
  background: rgba(255,255,255,.74);
}
.month-select-block select {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  font-weight: 760;
}
.month-select-block small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.export-form { gap: 14px; }
.export-profile-tabs {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 24px;
  background: rgba(255,255,255,.70);
}
.export-profile-tabs > p {
  margin: 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}
.export-profile-tabs > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}
.export-profile-tab {
  min-height: 88px;
  height: 100%;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(17,17,20,.075);
  background: rgba(248,250,252,.78);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}
.export-profile-tab:hover { background: #fff; }
.export-profile-tab.active { background: #fff; border-color: rgba(0,113,227,.24); box-shadow: inset 0 0 0 1px rgba(0,113,227,.08), 0 10px 30px rgba(0,113,227,.07); }
.export-profile-tab strong { color: var(--text); font-size: 14px; letter-spacing: -.01em; }
.export-profile-tab span { color: var(--muted); font-size: 12px; line-height: 1.28; overflow-wrap: anywhere; }
.export-profile-tabs small { color: var(--muted); font-size: 12px; line-height: 1.35; padding-inline: 2px; }


.tax-field-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(0,113,227,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.74);
}
.tax-field-preview > div:first-child {
  display: grid;
  gap: 5px;
}
.tax-field-preview .eyebrow { margin: 0; }
.tax-field-preview strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.tax-field-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tax-field-chips span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(17,17,20,.075);
  border-radius: 999px;
  background: rgba(248,250,252,.88);
  color: var(--text);
  font-size: 12px;
  font-weight: 740;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.tax-field-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.export-privacy-boundary {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: stretch;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(17,17,20,.075);
  border-radius: 24px;
  background: rgba(245,245,247,.72);
}
.export-privacy-boundary > div { min-width: 0; }
.export-privacy-boundary > div:first-child {
  display: grid;
  align-content: start;
  gap: 5px;
}
.export-privacy-boundary .eyebrow { margin: 0; }
.export-privacy-boundary strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.32;
  letter-spacing: -.01em;
}
.export-privacy-boundary span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.export-privacy-boundary > div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
}
.export-privacy-boundary > div:last-child span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(17,17,20,.075);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 730;
}
.export-receipt-preview {
  background: rgba(255,255,255,.76);
  border-color: rgba(0,113,227,.13);
}
.export-receipt-preview > div:first-child {
  display: grid;
  gap: 4px;
}
.export-receipt-preview .eyebrow { margin: 0; }
.export-receipt-preview > div:first-child strong {
  color: var(--text);
  font-size: 14px;
  letter-spacing: -.01em;
}
.export-receipt-card {
  gap: 8px;
  padding: 14px;
  border-radius: 22px;
}
.export-receipt-card span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 7px;
  border-top: 1px solid rgba(17,17,20,.06);
}
.export-receipt-card i {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}
.export-receipt-card b {
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  text-align: right;
  overflow-wrap: anywhere;
}
.export-receipt-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.close-checklist {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 24px;
  background: rgba(255,255,255,.74);
}
.preflight-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 2px;
}
.preflight-title-row > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}
.preflight-status-copy {
  margin: -2px 2px 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}
.preflight-trust-note {
  margin: 2px 2px 0;
  font-size: 12px;
  line-height: 1.35;
}

.chef-report-card {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 2.6vw, 22px);
  border: 1px solid rgba(17,17,20,.075);
  border-radius: clamp(22px, 2.6vw, 28px);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  overflow: hidden;
}
.month-close-form > .chef-report-card {
  margin-inline: -16px;
  border-radius: clamp(24px, 3vw, 32px);
}
.chef-report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.chef-report-header h3 {
  margin-top: 2px;
  font-size: clamp(20px, 2.4vw, 24px);
  letter-spacing: -.035em;
}
.chef-report-header .muted { margin-top: 6px; line-height: 1.44; max-width: 540px; }
.chef-report-meta {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 8px;
}
.chef-report-meta > span {
  padding: 8px 11px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}
.chef-report-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.chef-report-check-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label status" "detail status";
  align-items: center;
  gap: 5px 10px;
  padding: 12px 13px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}
.chef-report-check-row span { grid-area: label; color: var(--text); font-weight: 730; overflow-wrap: anywhere; }
.chef-report-check-row strong {
  grid-area: status;
  justify-self: end;
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,20,.08);
  background: rgba(245,245,247,.88);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.chef-report-check-row em {
  grid-area: detail;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  font-style: normal;
  overflow-wrap: anywhere;
}
.chef-report-check-row.ready strong { color: var(--ok); border-color: rgba(26,127,55,.20); background: rgba(26,127,55,.07); }
.chef-report-check-row.review strong,
.chef-report-check-row.open strong { color: #8a5a00; border-color: rgba(186,124,0,.20); background: rgba(255,183,3,.12); }
.chef-report-check-row.error strong { color: var(--danger); border-color: rgba(217,45,32,.20); background: rgba(217,45,32,.08); }
.chef-report-receipt {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(17,17,20,.075);
  border-radius: 20px;
  background: rgba(245,245,247,.76);
}
.chef-report-receipt > strong { color: var(--text); font-size: 14px; letter-spacing: -.01em; }
.chef-report-receipt span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 7px;
  border-top: 1px solid rgba(17,17,20,.06);
}
.chef-report-receipt i { color: var(--muted); font-size: 12px; font-style: normal; overflow-wrap: anywhere; }
.chef-report-receipt b { color: var(--text); font-size: 12px; font-weight: 760; text-align: right; overflow-wrap: anywhere; }
.chef-report-receipt p { color: var(--muted); font-size: 12px; line-height: 1.35; }
.chef-report-format-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr);
  align-items: center;
  gap: 10px;
}
.chef-report-format-actions button { min-height: 60px; border-radius: 19px; }
.chef-report-format-actions small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.chef-report-disclaimer { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.close-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label status" "detail status";
  align-items: center;
  min-height: 70px;
  gap: 6px 12px;
  padding: 13px 14px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 19px;
  background: rgba(248,250,252,.84);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}
.close-check-row span { grid-area: label; min-width: 0; color: var(--text); font-weight: 720; overflow-wrap: anywhere; }
.close-check-row strong {
  grid-area: status;
  justify-self: end;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,20,.08);
  background: rgba(245,245,247,.86);
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.close-check-row em {
  grid-area: detail;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.32;
  font-style: normal;
  overflow-wrap: anywhere;
}
.close-check-row.ready strong { color: var(--ok); border-color: rgba(26,127,55,.20); background: rgba(26,127,55,.07); }
.close-check-row.review strong,
.close-check-row.open strong { color: #8a5a00; border-color: rgba(186,124,0,.20); background: rgba(255,183,3,.12); }
.close-check-row.error strong { color: var(--danger); border-color: rgba(217,45,32,.20); background: rgba(217,45,32,.08); }
.export-actions {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 24px;
  background: rgba(255,255,255,.74);
}
.export-primary { min-height: 72px; font-size: 18px; gap: 10px; border-radius: 22px; }
.export-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}
.export-secondary-grid button {
  min-width: 0;
  min-height: 58px;
  height: 100%;
  border-radius: 18px;
  justify-content: center;
  padding-inline: 10px;
  text-align: center;
}
.export-links { justify-content: flex-start; flex-wrap: wrap; }
.export-links .button-link { gap: 8px; }
.export-trust-note { margin-top: 0; }
.export-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 8px; }
.export-trust-grid span { min-height: 58px; display: flex; align-items: center; padding: 10px 12px; border: 1px solid rgba(17,17,20,.07); border-radius: 18px; background: rgba(255,255,255,.70); color: var(--muted); font-size: 12px; line-height: 1.35; }
.export-receipt { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid rgba(26,127,55,.18); border-radius: 18px; background: rgba(26,127,55,.06); }
.export-receipt strong { color: var(--ok); font-size: 14px; }
.export-receipt span { color: var(--muted); font-size: 13px; }
.team-trust-strip {
  display: grid;
  gap: 12px;
  margin: 4px 0 16px;
  padding: 14px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 20px;
  background: rgba(248,250,252,.78);
}
.team-trust-strip p { margin: 0; }
.trust-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.trust-mini-grid span {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid rgba(17,17,20,.07);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}
.menu-card { box-shadow: 0 12px 36px rgba(0,0,0,.05); }
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  background: rgba(17,17,20,.28);
  backdrop-filter: blur(18px);
  animation: overlayFade .16s ease both;
}
.menu-sheet {
  width: min(100%, 560px);
  padding: 10px 18px 18px;
  border-radius: 30px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 80px rgba(0,0,0,.20);
  animation: sheetUp .22s cubic-bezier(.2,.8,.2,1) both;
}
.sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  margin: 2px auto 16px;
  background: rgba(0,0,0,.16);
}
.sheet-menu-grid { margin-top: 16px; }
.sheet-menu-button {
  background: rgba(255,255,255,.82);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
@keyframes overlayFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(18px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
.compact-card { padding: 16px; }
.menu-grid { display: grid; grid-template-columns: 1fr; gap: 11px; }
.menu-button { min-height: 72px; border-radius: 22px; justify-content: flex-start; padding: 16px 18px; gap: 12px; font-size: 18px; }
.menu-button .ui-icon { width: 19px; height: 19px; min-width: 19px; color: var(--accent); }
.menu-button.active { background: #111; color: #fff; border-color: #111; }
.menu-button.active .ui-icon { color: currentColor; }
.summary-drawer { padding: 16px; box-shadow: 0 12px 36px rgba(0,0,0,.04); }
.settings-card { gap: 18px; }
.settings-screen { max-width: 920px; }
.settings-page-wrap { display: grid; gap: 16px; }
.settings-page-wrap .settings-card { margin-bottom: 0; }
.settings-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.settings-panel {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,.68);
}
.settings-panel h3 { letter-spacing: -.01em; }
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(245,245,247,.76);
}
.settings-row > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.settings-row strong, .settings-row span { display: block; }
.settings-row strong { color: var(--text); font-size: 14px; }
.settings-row span { font-size: 13px; overflow-wrap: anywhere; }
.settings-row .ui-icon { width: 20px; height: 20px; min-width: 20px; color: var(--accent); }
.settings-row.subtle { background: rgba(255,255,255,.64); }
.settings-actions { display: grid; gap: 9px; }
.settings-action { width: 100%; justify-content: flex-start; border-radius: 20px; min-height: 64px; font-size: 17px; }
.privacy-panel { border-color: rgba(0,113,227,.20); background: rgba(255,255,255,.78); }
.privacy-retention { display: grid; gap: 6px; padding: 12px; border-radius: 18px; background: rgba(0,113,227,.06); }
.privacy-retention span { font-size: 13px; color: var(--muted); }
.privacy-admin { margin-top: 6px; }
.privacy-admin .mini-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.privacy-admin .team-card { min-width: 0; overflow: hidden; }
.privacy-admin .team-card strong,
.privacy-admin .team-card span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.privacy-admin .link-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
  gap: 8px;
}
.privacy-admin .link-row .button-link,
.privacy-admin .link-row button {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding-inline: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.privacy-user-list { display: grid; gap: 10px; }
.privacy-user { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.72); border: 1px solid var(--border); }
.privacy-user strong, .privacy-user span { display: block; }
.privacy-user span { font-size: 13px; }
.danger-inline { color: var(--danger); border-color: rgba(217,45,32,.22); }
.setting-toggle { min-width: 74px; min-height: 40px; padding: 9px 14px; background: rgba(0,0,0,.08); color: var(--muted); border: 1px solid transparent; }
.setting-toggle.active { background: #111; color: #fff; }
.compact-controls .primary-actions .start-main,
.compact-controls .primary-actions .stop-main { min-height: 76px; font-size: clamp(22px, 4vw, 28px); }
.compact-controls .primary-actions button { min-height: 58px; font-size: 17px; }
.summary-drawer summary { cursor: pointer; font-weight: 800; color: var(--muted); padding: 4px 2px 14px; }
.entries-list { display: grid; gap: 10px; }
.entry-row, .team-card, .empty, .alert, .subform {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  padding: 15px;
}
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  line-height: 1.35;
  animation: alertIn .24s var(--ease-out) both;
}
.alert::before {
  content: "";
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 12%, transparent);
}
.entry-row { display: flex; justify-content: space-between; gap: 14px; }
.entry-meta { text-align: right; display: grid; gap: 4px; min-width: 120px; }
.team-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.team-card { display: grid; gap: 7px; }
.badge { display: inline-flex; width: fit-content; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; white-space: nowrap; align-items: center; justify-content: center; }
.badge.ok, .alert.ok { color: var(--ok); border-color: rgba(26,127,55,.22); background: rgba(26,127,55,.08); }
.badge.error { color: var(--danger); border-color: rgba(217,45,32,.22); background: rgba(217,45,32,.08); }
.alert.error { color: var(--danger); border-color: rgba(217,45,32,.20); background: rgba(217,45,32,.08); }
@keyframes alertIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.check { display: flex; align-items: center; gap: 10px; color: var(--text); }
.check input { width: auto; }
.subform { margin-top: 6px; }
.app-legal-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; pointer-events: none; }
.has-app-shell .app-legal-footer { position: static; padding: 0 16px calc(22px + env(safe-area-inset-bottom)); background: transparent; }
.app-legal-footer a { color: var(--muted); text-decoration: none; pointer-events: auto; }
.app-legal-footer a:hover { color: var(--accent); }
.legal-body { background: #f5f5f7; overscroll-behavior-y: auto; }
.legal-page { width: min(920px, 100%); margin: 0 auto; padding: 28px 16px 56px; }
.legal-back { display: inline-flex; margin-bottom: 16px; color: var(--accent); text-decoration: none; font-weight: 700; }
.legal-card { background: rgba(255,255,255,.92); border: 1px solid var(--border); border-radius: 30px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 46px); line-height: 1.65; }
.legal-card h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 54px); letter-spacing: -.04em; }
.legal-card h2 { margin-top: 30px; font-size: 22px; letter-spacing: -.02em; }
.legal-card p, .legal-card li { color: #252529; }
.legal-card a { color: var(--accent); }
.legal-card ul { padding-left: 20px; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; }

.month-close-commentary-card {
  display: grid;
  gap: 14px;
  padding: clamp(14px, 2.6vw, 20px);
  border: 1px solid rgba(17,17,20,.08);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(248,250,252,.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.month-close-commentary-card.empty { background: rgba(255,255,255,.62); }
.month-close-commentary-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
  gap: 16px;
  align-items: start;
}
.month-close-commentary-head > div:first-child,
.month-close-commentary-summary { display: grid; gap: 6px; }
.month-close-commentary-head .eyebrow { margin: 0; }
.month-close-commentary-head strong { color: var(--text); font-size: clamp(18px, 2vw, 23px); letter-spacing: -.035em; }
.month-close-commentary-head span,
.month-close-commentary-empty,
.month-close-commentary-more,
.month-close-commentary-blocked,
.month-close-commentary-privacy { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.month-close-commentary-summary { justify-items: end; text-align: right; }
.month-close-commentary-summary b { font-size: 13px; color: var(--text); }
.month-close-commentary-head-action { min-height: 40px; padding-inline: 14px; }
.month-close-commentary-blocked {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,183,3,.10);
  color: #7a5600;
}
.month-close-commentary-list { display: grid; gap: 9px; }
.month-close-commentary-row {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(126px, auto) minmax(0, 1fr) minmax(96px, auto);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(17,17,20,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}
.month-close-commentary-row:hover { transform: translateY(-1px); border-color: rgba(17,17,20,.14); }
.month-close-commentary-row.ready { border-color: rgba(26,127,55,.16); background: rgba(26,127,55,.045); }
.month-close-commentary-row.review { border-color: rgba(186,124,0,.18); background: rgba(255,183,3,.08); }
.month-close-commentary-row.missing { border-color: rgba(217,45,32,.12); background: rgba(217,45,32,.04); }
.month-close-commentary-main { display: grid; gap: 4px; min-width: 0; }
.month-close-commentary-main strong { font-size: 15px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month-close-commentary-main small,
.month-close-commentary-preview { color: var(--muted); font-size: 12px; line-height: 1.35; }
.month-close-commentary-status {
  justify-self: end;
  min-width: 118px;
  padding: 7px 10px;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  font-weight: 850;
  background: rgba(17,17,20,.06);
  color: var(--muted);
}
.month-close-commentary-status.ready { background: rgba(26,127,55,.10); color: #1a7f37; }
.month-close-commentary-status.review { background: rgba(255,183,3,.14); color: #8a6200; }
.month-close-commentary-status.missing { background: rgba(217,45,32,.08); color: #9f1d15; }
.month-close-commentary-preview { display: grid; gap: 2px; min-width: 0; }
.month-close-commentary-preview em { color: var(--text); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month-close-commentary-row > b { justify-self: end; color: var(--accent); font-size: 12px; white-space: nowrap; }
.month-close-commentary-sheet {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(17,17,20,.10);
  background: rgba(255,255,255,.90);
}
.month-close-commentary-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.month-close-commentary-sheet-head > div { display: grid; gap: 3px; }
.month-close-commentary-sheet-head span,
.month-close-commentary-sheet-head small,
.month-close-commentary-limit { color: var(--muted); font-size: 12px; }
.month-close-commentary-sheet-head strong { color: var(--text); font-size: 17px; }
.month-close-commentary-sheet label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.month-close-commentary-sheet textarea { resize: vertical; min-height: 92px; line-height: 1.45; text-transform: none; letter-spacing: 0; font-weight: 600; }
.month-close-commentary-limit { justify-self: end; margin-top: -4px; }
.month-close-commentary-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, auto); gap: 10px; }
.month-close-commentary-error { margin: 0; padding: 10px 12px; border-radius: 14px; background: rgba(217,45,32,.08); color: #9f1d15; font-size: 13px; font-weight: 700; }
.month-close-no-pii-commentary {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(17,17,20,.07);
}
.month-close-no-pii-commentary span { color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .10em; }
.month-close-no-pii-commentary strong { color: var(--text); font-size: 14px; }
.month-close-no-pii-commentary p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.month-close-chef-preview {
  display: grid;
  gap: 12px;
  padding: clamp(14px, 2.6vw, 20px);
  border: 1px solid rgba(17,17,20,.08);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(248,250,252,.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.month-close-chef-preview.ready { border-color: rgba(26,127,55,.15); background: rgba(26,127,55,.045); }
.month-close-chef-preview.review { border-color: rgba(186,124,0,.16); background: rgba(255,183,3,.075); }
.month-close-chef-preview.open { border-color: rgba(217,45,32,.14); background: rgba(217,45,32,.045); }
.month-close-chef-preview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, auto);
  gap: 12px;
  align-items: start;
}
.month-close-chef-preview-head > div { display: grid; gap: 5px; }
.month-close-chef-preview-head .eyebrow { margin: 0; }
.month-close-chef-preview-head strong {
  color: var(--text);
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: -.035em;
}
.month-close-chef-preview-head span,
.month-close-chef-preview small,
.month-close-chef-preview-privacy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.month-close-chef-preview-head b {
  justify-self: end;
  padding: 9px 11px;
  border: 1px solid rgba(0,113,227,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
  text-align: center;
}
.month-close-chef-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.month-close-chef-preview-grid span {
  display: grid;
  gap: 5px;
  min-height: 74px;
  align-content: start;
  padding: 11px;
  border: 1px solid rgba(17,17,20,.07);
  border-radius: 16px;
  background: rgba(255,255,255,.70);
}
.month-close-chef-preview-grid i {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.month-close-chef-preview-grid b {
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
}
.month-close-chef-preview-privacy {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(17,17,20,.06);
  border-radius: 18px;
  background: rgba(255,255,255,.68);
}
.month-close-chef-preview-privacy strong { color: var(--text); font-size: 13px; }
.month-close-chef-preview-privacy p,
.month-close-chef-preview small { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .employee-month-facts,
  .employee-month-check-list,
  .employee-month-actions,
  .admin-simple-grid,
  .admin-simple-actions,
  .digest-context,
  .digest-actions,
  .digest-decision-grid,
  .premium-trust-grid,
  .premium-step-list,
  .premium-pilot-actions,
  .export-period-card,
  .monthly-correction-hint,
  .monthly-decision-rail,
  .chef-report-format-actions,
  .export-privacy-boundary,
  .monthly-approval-actions,
  .monthly-approval-trust,
  .weekly-close-actions,
  .month-close-commentary-head,
  .month-close-commentary-actions,
  .month-close-chef-preview-head,
  .month-close-chef-preview-grid,
  .monthly-correction-head,
  .admin-request-row,
  .admin-request-actions,
  .admin-export-actions,
  .monthly-correction-row { grid-template-columns: 1fr; }
  .premium-trust-grid,
  .premium-step-list,
  .premium-pilot-actions,
  .weekly-close-actions { grid-template-columns: 1fr; }
  .digest-head, .premium-pilot-head, .employee-month-head, .monthly-approval-header, .weekly-close-head, .chef-report-header { align-items: stretch; flex-direction: column; }
  .digest-head .badge, .premium-pilot-head .badge, .employee-month-head .badge, .monthly-approval-header .badge, .weekly-close-head .badge, .chef-report-header .badge { width: fit-content; max-width: 100%; }
  .monthly-approval-meta, .chef-report-meta { justify-items: start; }
  .month-close-commentary-summary { justify-items: start; text-align: left; }
  .month-close-commentary-row { grid-template-columns: 1fr; align-items: start; gap: 8px; min-height: 0; }
  .month-close-commentary-status, .month-close-commentary-row > b { justify-self: start; }
  .month-close-chef-preview-head b { justify-self: start; }
  .monthly-correction-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .monthly-correction-actions { grid-template-columns: 1fr; }
  .month-close-commentary-preview em { white-space: normal; }
  .screen {
    padding: max(10px, env(safe-area-inset-top)) 10px calc(92px + env(safe-area-inset-bottom));
    padding-top: max(10px, constant(safe-area-inset-top));
    padding-bottom: calc(92px + constant(safe-area-inset-bottom));
  }
  .summary-grid, .main-grid, .two, .onboarding-steps { grid-template-columns: 1fr; }
  .main-grid, .summary-grid { margin-bottom: 12px; }
  .topbar, .section-head, .toolbar, .link-row, .entry-row, .privacy-user { align-items: stretch; flex-direction: column; }
  .privacy-admin .link-row { grid-template-columns: 1fr; }
  .topbar { position: relative; top: auto; z-index: 1; margin-bottom: 10px; }
  .compact-topbar { flex-direction: row; align-items: center; }
  .compact-toolbar { flex-direction: row; align-items: center; justify-content: flex-end; }
  .topbar, .section-card, .login-card { padding: 16px; border-radius: 22px; }
  .simple-home {
    max-width: none;
    margin-inline: 0;
  }
  .hero-clock {
    padding: 18px;
    gap: 12px;
  }
  .simple-home .clock-head { gap: 10px; }
  .simple-home .clock-head h2 { font-size: clamp(34px, 7vw, 50px); line-height: .98; }
  .simple-home .clock-copy { font-size: clamp(18px, 3vw, 24px); line-height: 1.2; }
  .live-time { gap: 8px; }
  .live-time strong { font-size: clamp(58px, 11vw, 82px); line-height: .9; }
  .live-time > span { font-size: clamp(18px, 3vw, 22px); line-height: 1.25; }
  .location-pill {
    width: auto;
    justify-self: start;
    padding: 9px 12px;
    line-height: 1.2;
  }
  .simple-home-links,
  .compact-toolbar {
    gap: 10px;
  }
  .simple-home-links button,
  .compact-toolbar button {
    min-width: 0;
  }
  .lang-switch { justify-content: flex-start; }
  .entry-meta { text-align: left; }
  .primary-actions button,
  .today-actions button { min-height: 68px; border-radius: 22px; }
  .primary-actions .start-main, .primary-actions .stop-main { min-height: 104px; }
  .today-actions .start-main, .today-actions .stop-main { min-height: 92px; }
  .today-actions.active-actions,
  .today-actions.pause-actions { gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); }
  .today-actions.active-actions .ghost,
  .today-actions.pause-actions .ghost { min-height: 72px; }
  .menu-grid, .settings-grid { grid-template-columns: 1fr; }
  .menu-overlay { align-items: flex-end; padding: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .menu-sheet { border-radius: 28px; padding: 8px 14px 14px; max-height: min(72vh, 620px); overflow-y: auto; }
  .sheet-menu-grid { gap: 10px; }
  .menu-button { min-height: 68px; width: 100%; }
  .onboarding-card { gap: 14px; }
  .onboarding-step { padding: 13px; border-radius: 18px; }
  .onboarding-actions { display: grid; grid-template-columns: 1fr; }
  .onboarding-actions button { width: 100%; }
  .week-head { flex-direction: column; align-items: stretch; }
  .week-head .badge { align-self: flex-start; }
  .week-lines { grid-template-columns: 1fr; }
  .week-empty-actions { grid-template-columns: 1fr; }
  .week-day i { height: 40px; }
  .summary-drawer .summary-grid { gap: 10px; }
  .week-strip { gap: 6px; }
  .week-day { height: 82px; border-radius: 16px; padding: 8px 5px; }
  .week-detail-grid { grid-template-columns: 1fr; }
  .export-secondary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .export-trust-grid { grid-template-columns: 1fr; }
  .export-secondary-grid button:last-child { grid-column: auto; }
  .empty-action { width: 100%; }
  input, textarea, select { border-radius: 16px; padding: 14px; }
}
@media (max-width: 520px) {
  :root { --mobile-content-pad: 12px; }
  .screen {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }
  .compact-topbar { flex-direction: column; align-items: stretch; gap: 14px; }
  .compact-brand { min-width: 0; }
  .compact-toolbar { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .compact-toolbar button { width: 100%; }
  .header-menu, .logout-button { justify-content: center; padding-inline: 10px; }
  .primary-actions { grid-template-columns: 1fr; }
  .today-actions { grid-template-columns: 1fr; }
  .today-actions.active-actions,
  .today-actions.pause-actions { grid-template-columns: 1fr; }
  .primary-actions .start-main, .primary-actions .stop-main { min-height: 88px; }
  .today-actions .start-main, .today-actions .stop-main { min-height: 84px; }
  .today-actions .resume-main, .today-actions .stop-secondary { min-height: 68px; }
  .hero-clock { padding: 16px; gap: 11px; }
  .simple-home .clock-head h2 { font-size: clamp(32px, 10vw, 44px); }
  .simple-home .clock-copy { font-size: 18px; }
  .live-time strong { font-size: clamp(56px, 18vw, 76px); }
  .live-time > span { font-size: 17px; }
  .location-pill {
    width: 100%;
    font-size: 16px;
    border-radius: 20px;
    padding: 9px 11px;
  }
  .simple-home-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .simple-home-links button {
    min-height: 68px;
    padding-inline: 10px;
    border-radius: 20px;
  }
  .simple-home-links,
  .today-actions {
    width: 100%;
  }
  .correction-entry { align-items: stretch; flex-direction: column; }
  .correction-action { width: 100%; }
  
.week-card { padding: 16px; }
  .week-strip { gap: 4px; }
  .week-day span { font-size: 10px; }
  .week-day i { height: 36px; }
}

@media (max-width: 390px) {
  .manager-digest-card, .premium-pilot-card, .employee-month-card, .monthly-approval-card, .weekly-close-card { padding: 16px; gap: 12px; }
  .month-close-card { padding: 16px; gap: 12px; }
  .chef-report-card { padding: 16px; gap: 10px; }
  .chef-report-check-list { grid-template-columns: 1fr; }
  .chef-report-receipt span { align-items: flex-start; flex-direction: column; gap: 4px; }
  .chef-report-receipt b { text-align: left; }
  .digest-stats { gap: 7px; }
  .digest-stats article { min-height: 76px; padding: 11px 7px; border-radius: 16px; }
  .digest-stats span { font-size: 10px; letter-spacing: .08em; }
  .digest-actions button { width: 100%; }
  .digest-decision { min-height: 132px; padding: 13px; }
  .premium-trust-grid span { min-height: 40px; }
  .premium-step-list article { min-height: 0; padding: 13px; }
  .screen { padding-left: 10px; padding-right: 10px; }
  .topbar, .section-card, .login-card { padding: 16px; border-radius: 22px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .mark { width: 44px; height: 44px; border-radius: 14px; }
  .export-secondary-grid { grid-template-columns: 1fr; }
  .export-secondary-grid button:last-child { grid-column: auto; }
  .close-check-row { grid-template-columns: 1fr; grid-template-areas: "label" "status" "detail"; gap: 6px; }
  .close-check-row strong { justify-self: start; max-width: 100%; text-align: left; }
  .trust-mini-grid { grid-template-columns: 1fr; }
}

@media (min-width: 960px) {
  .focus-layout { grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr); align-items: stretch; }
  .today-card { grid-row: span 2; min-height: 100%; }
  .week-card, .onboarding-card { min-height: 0; }
  .focus-layout .onboarding-steps { grid-template-columns: 1fr; }
  .focus-layout .onboarding-step { padding: 13px; border-radius: 18px; }
  .focus-layout > .compact-card,
  .focus-layout > .section-card:not(.today-card):not(.week-card):not(.onboarding-card) { grid-column: 1 / -1; }
}


@media (max-width: 430px) {
  .month-signal-head, .employee-month-head, .monthly-approval-header, .weekly-close-head, .chef-report-header { display: grid; }
  .month-signal-head .badge, .employee-month-head .badge, .monthly-approval-header .badge, .weekly-close-head .badge, .chef-report-header .badge { justify-self: start; }
  .monthly-approval-meta > span, .chef-report-meta > span { white-space: normal; text-align: left; }
  .monthly-detail-panel { padding: 9px; border-radius: 20px; }
  .monthly-status-grid { --monthly-status-tile-min: 145px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .month-review-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; gap: 8px; }
  .month-review-status-card { min-height: 118px; padding: 13px; border-radius: 18px; }
  .admin-month-overview .monthly-decision-rail,
  .monthly-decision-rail { grid-template-columns: 1fr; padding: 9px; gap: 8px; }
  .monthly-decision-card { min-height: 118px; padding: 14px; }
  .monthly-confidence-panel { grid-template-columns: 1fr; padding: 9px; gap: 8px; }
  .month-close-no-pii-card { padding: 12px; border-radius: 20px; }
  .month-close-no-pii-head { grid-template-columns: 1fr; }
  .month-close-no-pii-head b { justify-self: start; min-width: 0; white-space: normal; }
  .month-close-no-pii-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(92px, auto); }
  .month-close-commentary-sheet-head { display: grid; }
  .month-close-no-pii-grid article { min-height: 92px; }
  .monthly-correction-hint { grid-template-columns: 1fr; align-items: start; gap: 6px; padding: 12px; border-radius: 20px; }
  .monthly-decision-card,
  .monthly-confidence-panel > span,
  .monthly-confidence-panel article { min-height: 0; }
  .monthly-status-tile { min-height: var(--monthly-status-tile-min); padding: 14px; border-radius: 18px; }
  .monthly-employee-list, .monthly-exception-rail { padding: 10px; }
  .monthly-exception-head { align-items: stretch; flex-direction: column; }
  .monthly-exception-head .monthly-all-link { width: 100%; }
  .monthly-exception-row { grid-template-columns: 1fr; gap: 8px; min-height: 66px; padding: 12px; }
  .monthly-exception-row b { justify-self: start; }
  .monthly-employee-row { grid-template-columns: 1fr; gap: 8px; min-height: 78px; padding: 12px; }
  .monthly-employee-row b { justify-self: start; min-width: 86px; }
  .monthly-employee-row i { width: 100%; }
  .chef-period-tabs { grid-template-columns: 1fr; }
  .weekly-close-list { grid-auto-rows: 76px; }
  .month-signal-row,
  .weekly-close-row { min-width: 0; }
  .month-signal-row {
    grid-template-columns: 1fr;
    grid-template-areas: "label" "status" "detail";
    gap: 6px;
  }
  .weekly-close-row {
    grid-template-columns: minmax(0, 1fr) minmax(88px, auto);
    grid-template-areas: "label status" "detail status";
    gap: 3px 10px;
    padding: 11px 12px;
  }
  .month-signal-row strong { justify-self: start; }
  .weekly-close-row strong { min-width: 88px; padding: 7px 9px; }
  .month-signal-actions { grid-template-columns: 1fr; }
  .export-secondary-grid { grid-template-columns: 1fr; }
  .close-check-row {
    grid-template-columns: 1fr;
    grid-template-areas: "label" "status" "detail";
    gap: 6px;
  }
  .chef-report-check-row {
    grid-template-columns: 1fr;
    grid-template-areas: "label" "status" "detail";
    gap: 6px;
  }
  .close-check-row strong { justify-self: start; max-width: 100%; text-align: left; }
  .chef-report-check-row strong { justify-self: start; max-width: 100%; text-align: left; }
  .employee-month-check-row { min-height: 82px; flex-direction: column; }
  .employee-month-check-row b { width: fit-content; }
  .export-profile-tabs > div { grid-template-columns: 1fr; }
  .export-profile-tab { min-height: 58px; }
  .tax-field-preview { padding: 12px; border-radius: 20px; }
  .export-privacy-boundary { padding: 12px; border-radius: 20px; }
  .export-privacy-boundary > div:last-child { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .export-privacy-boundary > div:last-child span { width: 100%; border-radius: 15px; }
  .tax-field-chips { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .tax-field-chips span { width: 100%; border-radius: 15px; }
  .export-receipt-card span { align-items: flex-start; flex-direction: column; gap: 4px; }
  .export-receipt-card b { text-align: left; }
}

@media (max-width: 390px) {
  .monthly-status-grid { --monthly-status-tile-min: 161px; }
}

@media (max-width: 360px) {
  .month-signal-row { padding: 12px; }
  .month-close-card { padding: 14px; }
  .monthly-approval-card { padding: 16px; }
  .monthly-status-grid { --monthly-status-tile-min: 174px; }
  .month-review-status-grid { grid-template-columns: 1fr; }
  .month-review-status-card { min-height: 96px; }
  .monthly-status-tile { min-height: var(--monthly-status-tile-min); }
  .monthly-employee-row { padding: 12px; }
  .weekly-close-row { padding: 10px 11px; grid-template-columns: minmax(0, 1fr) minmax(82px, auto); }
  .weekly-close-row span { font-size: 13px; }
  .weekly-close-row strong { min-width: 82px; font-size: 11px; padding-inline: 8px; }
  .weekly-close-row em { font-size: 12px; }
  .weekly-close-list { grid-auto-rows: 76px; }
  .export-secondary-grid { grid-template-columns: 1fr; }
}
