@layer reset, base, components, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p { margin: 0; }
  button, input, select, textarea { font: inherit; }
  button, a, input, select { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  button:disabled { cursor: not-allowed; }
  svg { display: block; max-width: 100%; }
}
@layer base {
  :root { --paper:#f5f5ef; --white:#fffefa; --ink:#132d3c; --muted:#637078; --teal:#156e63; --teal-soft:#e7f1e9; --line:#dde2db; --red:#a33c32; --red-soft:#fff0eb; --amber:#866019; --amber-soft:#fff7e4; --radius:16px; font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ink); background:var(--paper); font-synthesis:none; }
  body { min-width:320px; font-size:14px; line-height:1.55; }
  ::selection { background:#c8e9d9; }
  :focus-visible { outline:3px solid #3f9284; outline-offset:3px; }
  button, a { touch-action:manipulation; }
  a { color:var(--teal); text-underline-offset:3px; }
  button { color:inherit; }
  h1 { font-size:clamp(29px,3.2vw,42px); letter-spacing:-1.6px; line-height:1.17; font-weight:600; }
  h2 { font-size:18px; letter-spacing:-.45px; font-weight:600; }
  h3 { font-size:15px; font-weight:650; }
  small { font-size:12px; }
  input, select { width:100%; min-height:43px; border:1px solid #ccd4cd; border-radius:8px; color:var(--ink); background:var(--white); padding:9px 11px; }
  input::placeholder { color:#838b8b; }
  input[type="checkbox"] { width:18px; height:18px; min-height:18px; margin:3px 0 0; accent-color:var(--teal); flex-shrink:0; }
  label { display:block; font-size:12px; font-weight:600; }
  label > input, label > select { margin-top:6px; font-size:14px; font-weight:400; }
  table { border-collapse:collapse; width:100%; text-align:left; font-size:13px; }
  th { color:var(--muted); font-size:10px; font-weight:650; letter-spacing:.9px; text-transform:uppercase; white-space:nowrap; }
  th, td { padding:15px 18px; border-bottom:1px solid var(--line); vertical-align:top; }
  tbody tr:last-child td { border-bottom:0; }
  td { overflow-wrap:anywhere; }
  .numeric { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
  [hidden] { display:none !important; }
}
@layer components {
  .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
  .skip-link { position:fixed; top:10px; left:12px; transform:translateY(-150%); z-index:100; padding:10px 16px; background:var(--white); border:2px solid var(--teal); border-radius:8px; }
  .skip-link:focus { transform:none; }
  .initial-state { min-height:100vh; display:grid; place-content:center; justify-items:center; gap:18px; }
  .noscript { padding:24px; text-align:center; }
  .app-header { background:var(--white); border-bottom:1px solid var(--line); padding:0 4%; }
  .header-inner { max-width:1440px; margin:auto; display:flex; align-items:center; gap:36px; min-height:88px; }
  .brand { display:flex; align-items:center; gap:13px; flex-shrink:0; }
  .brand-mark { height:40px; width:53px; display:grid; place-items:center; color:#eaf3e6; background:var(--ink); border-radius:8px; font-size:17px; font-weight:750; letter-spacing:-1px; }
  .brand-name { font-size:13px; font-weight:650; line-height:1.3; }
  .brand-sub { display:block; margin-top:3px; font-size:10px; font-weight:500; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted); }
  .main-nav { display:flex; gap:6px; align-self:stretch; align-items:center; }
  .nav-button { border:0; background:transparent; border-radius:8px; padding:10px 17px; font-size:13px; font-weight:500; color:var(--muted); }
  .nav-button:hover { background:#f1f2ed; color:var(--ink); }
  .nav-button[aria-current="page"] { background:var(--teal-soft); color:var(--teal); font-weight:650; }
  .account { margin-left:auto; display:flex; align-items:center; gap:14px; }
  .account-details { font-size:12px; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:right; }
  .account-role { display:block; color:var(--muted); font-size:10px; text-transform:capitalize; }
  .utility-menu { position:relative; }
  .utility-menu > summary { list-style:none; cursor:pointer; border:1px solid var(--line); border-radius:7px; padding:7px 11px; color:var(--muted); font-size:11px; font-weight:550; }
  .utility-menu > summary::-webkit-details-marker { display:none; }
  .utility-menu > summary::after { content:"⌄"; margin-left:7px; }
  .utility-menu[open] > summary { background:var(--teal-soft); color:var(--teal); }
  .utility-options { position:absolute; top:calc(100% + 8px); right:0; z-index:20; min-width:210px; padding:7px; border:1px solid var(--line); border-radius:10px; background:var(--white); box-shadow:0 8px 28px #132d3c14; }
  .utility-options .button { width:100%; justify-content:flex-start; font-size:11px; }
  .avatar { width:32px; height:32px; border:1px solid #cbd9ce; border-radius:50%; display:grid; place-items:center; font-size:11px; font-weight:650; background:#edf2e8; }
  .signout { border:0; background:transparent; color:var(--muted); padding:7px 0 7px 4px; font-size:12px; white-space:nowrap; }
  .signout:hover { color:var(--ink); text-decoration:underline; }
  .workspace { max-width:1440px; margin:auto; padding:43px 4% 42px; }
  .page-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:28px; }
  .eyebrow { color:var(--teal); font-size:10px; letter-spacing:1.6px; text-transform:uppercase; font-weight:700; margin-bottom:9px; }
  .page-description { color:var(--muted); margin-top:10px; max-width:670px; font-size:13px; }
  .subtle { color:var(--muted); }
  .fine-print { color:var(--muted); font-size:11px; line-height:1.6; }
  .button { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--line); border-radius:8px; padding:10px 16px; min-height:42px; background:var(--white); font-size:12px; font-weight:600; text-decoration:none; white-space:nowrap; }
  .button:hover { border-color:#a8b8b0; background:#f6f8f2; }
  .button.primary { background:var(--teal); border-color:var(--teal); color:white; }
  .button.primary:hover { background:#105a51; }
  .button.danger { border-color:#d4a299; color:var(--red); }
  .button:disabled { opacity:.5; }
  .button.small { min-height:34px; padding:6px 12px; font-size:11px; }
  .button.link { border-color:transparent; background:transparent; color:var(--teal); }
  .button svg { width:15px; height:15px; }
  .button-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
  .panel { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
  .panel-header { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:23px 24px 18px; }
  .panel-description { margin-top:5px; font-size:11px; color:var(--muted); }
  .panel-body { padding:24px; }
  .filters { display:grid; grid-template-columns:1fr 1fr 1.2fr 1fr 1.35fr 1.05fr auto; align-items:end; gap:12px; padding:18px 20px; margin-bottom:22px; }
  .filters label { color:var(--muted); font-size:10px; letter-spacing:.1px; }
  .filters input, .filters select { min-height:38px; padding:7px 9px; font-size:12px; }
  .filters .button { min-height:38px; padding:7px 12px; }
  .filter-actions { display:flex; gap:6px; }
  .metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:22px; }
  .metric { padding:23px 24px; position:relative; min-height:144px; }
  .metric.primary { background:var(--ink); border-color:var(--ink); color:var(--white); }
  .metric-label { font-size:11px; color:var(--muted); display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .metric.primary .metric-label, .metric.primary .metric-note { color:#bfcdc9; }
  .metric-value { font-size:36px; line-height:1.2; font-weight:550; letter-spacing:-1.5px; margin-top:12px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
  .metric-value.compact { font-size:27px; letter-spacing:-.8px; }
  .metric-note { color:var(--muted); font-size:10px; margin-top:7px; }
  .metric-icon { width:24px; height:24px; display:grid; place-items:center; color:#7b9686; }
  .metric-icon svg { width:18px; height:18px; }
  .coverage { display:flex; align-items:center; gap:10px 22px; justify-content:space-between; font-size:11px; padding:0 2px; margin:0 0 22px; color:var(--muted); flex-wrap:wrap; }
  .coverage strong { font-weight:500; color:var(--ink); }
  .coverage-item { display:flex; align-items:center; gap:7px; }
  .status-dot { width:6px; height:6px; background:var(--teal); border-radius:50%; flex-shrink:0; }
  .chart-grid { display:grid; grid-template-columns:1.55fr 1fr; gap:20px; margin-bottom:22px; }
  .chart { padding:0 24px 21px; min-height:235px; }
  .chart svg { width:100%; height:214px; overflow:visible; }
  .chart-caption { font-size:10px; color:var(--muted); margin-top:8px; }
  .chart-grid .empty { min-height:215px; padding:20px; }
  .legend { display:flex; align-items:center; gap:7px; font-size:10px; color:var(--muted); white-space:nowrap; }
  .legend::before { content:""; width:7px; height:7px; background:var(--teal); border-radius:50%; }
  .bar-chart { padding:4px 24px 24px; display:grid; gap:17px; }
  .bar-label { display:flex; align-items:baseline; justify-content:space-between; gap:12px; font-size:11px; margin-bottom:6px; }
  .bar-label span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .bar-label strong { font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
  .bar-track { height:6px; background:#edf1e9; border-radius:2px; position:relative; }
  .bar-fill { height:100%; position:absolute; background:var(--teal); border-radius:2px; min-width:1px; }
  .bar-fill.negative { background:#9a756c; }
  .bar-zero { position:absolute; height:10px; width:1px; background:#798b82; top:-2px; }
  .tables-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:20px; margin-bottom:22px; align-items:start; }
  .table-scroll { overflow:auto; max-height:440px; }
  .table-scroll th { background:var(--white); position:sticky; top:0; z-index:1; }
  .table-scroll:focus-visible { outline-offset:-3px; }
  .table-primary { font-weight:550; }
  .table-secondary { font-size:10px; color:var(--muted); margin-top:3px; }
  .badge { display:inline-flex; align-items:center; border-radius:5px; background:#edf2e9; color:#436c57; padding:3px 7px; font-size:10px; font-weight:550; white-space:nowrap; }
  .badge.muted { color:#677078; background:#eff0eb; }
  .badge.warning { background:var(--amber-soft); color:var(--amber); }
  .badge.danger { background:var(--red-soft); color:var(--red); }
  .note { display:flex; gap:10px; padding:14px 17px; border:1px solid var(--line); border-radius:10px; background:#f0f2eb; font-size:12px; color:var(--muted); }
  .note svg { width:16px; height:16px; flex-shrink:0; margin-top:2px; }
  .note p + p { margin-top:7px; }
  .note.warning { color:var(--amber); background:var(--amber-soft); border-color:#ecdfbd; }
  .note.error { color:var(--red); background:var(--red-soft); border-color:#edc9c1; }
  .note.success { color:var(--teal); background:var(--teal-soft); border-color:#d2e5d7; }
  .footer { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; font-size:10px; color:#838d8c; border-top:1px solid var(--line); padding-top:18px; margin-top:30px; }
  .empty { padding:52px 28px; min-height:260px; display:flex; align-items:center; justify-content:center; flex-direction:column; text-align:center; gap:12px; }
  .empty-icon { width:48px; height:48px; display:grid; place-items:center; border:1px solid var(--line); background:#f1f4ec; border-radius:12px; color:#6c8e7c; margin-bottom:3px; }
  .empty-icon svg { width:22px; height:22px; }
  .empty p { max-width:410px; color:var(--muted); font-size:12px; }
  .loading { min-height:300px; display:grid; place-content:center; justify-items:center; gap:15px; color:var(--muted); }
  .spinner { width:22px; height:22px; border:2px solid #d6e1d8; border-top-color:var(--teal); border-radius:50%; animation:rotate 850ms linear infinite; }
  @keyframes rotate { to { transform:rotate(360deg); } }
  .auth-shell { min-height:100vh; display:grid; grid-template-columns:1fr 1fr; }
  .auth-story { background:var(--ink); color:var(--white); padding:55px clamp(35px,6vw,100px); display:flex; flex-direction:column; position:relative; overflow:hidden; }
  .auth-story .brand-mark { background:#dcebdd; color:var(--ink); }
  .auth-story .brand-sub { color:#afc3be; }
  .auth-story-copy { margin:auto 0; padding:100px 0; max-width:430px; position:relative; z-index:1; }
  .auth-story h1 { font-size:clamp(38px,4.2vw,64px); line-height:1.1; letter-spacing:-2.3px; margin:20px 0; }
  .auth-story-copy > p { color:#b9ceca; font-size:14px; max-width:340px; line-height:1.8; }
  .auth-story .eyebrow { color:#a3c6b5; }
  .auth-story-footer { font-size:10px; color:#9fb8b2; letter-spacing:.4px; }
  .auth-decoration { position:absolute; width:520px; height:520px; border:1px solid #294650; border-radius:50%; bottom:-285px; right:-235px; box-shadow:0 0 0 70px #1b3744,0 0 0 71px #294650,0 0 0 140px #193440,0 0 0 141px #294650; }
  .auth-main { display:flex; align-items:center; justify-content:center; padding:60px 36px; }
  .auth-card { max-width:360px; width:100%; }
  .auth-card h1 { font-size:30px; letter-spacing:-1px; }
  .auth-card .page-description { font-size:13px; margin-top:13px; margin-bottom:29px; }
  .auth-form { display:grid; gap:19px; }
  .auth-form label { font-size:11px; }
  .auth-form .button { width:100%; min-height:45px; margin-top:2px; }
  .auth-hint { color:var(--muted); margin-top:24px; font-size:11px; text-align:center; }
  .auth-error { margin-bottom:18px; }
  .password-hint { font-size:10px; color:var(--muted); margin-top:5px; }
  .upload-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:24px; align-items:start; }
  .upload-guidance { padding:24px; }
  .upload-guidance ol { padding-left:18px; color:var(--muted); font-size:12px; }
  .upload-guidance li { padding:7px 0 7px 3px; }
  .upload-guidance strong { color:var(--ink); font-weight:550; }
  .drop-zone { border:1px dashed #afc2b3; border-radius:12px; background:#f7f9f2; min-height:260px; padding:34px 24px; display:flex; align-items:center; justify-content:center; flex-direction:column; text-align:center; gap:14px; }
  .drop-zone.drag-active { background:#e5f1e5; border-color:var(--teal); }
  .drop-zone .empty-icon { background:var(--white); }
  .drop-zone p { color:var(--muted); font-size:12px; }
  .drop-zone input[type=file] { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
  .drop-zone label.button { color:white; }
  .drop-zone:has(input:focus-visible) { outline:3px solid #3f9284; outline-offset:3px; }
  .stack { display:grid; gap:18px; }
  .review-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
  .review-stat { background:#f3f5ee; border-radius:9px; padding:15px; }
  .review-stat strong { display:block; margin-top:6px; font-size:23px; font-weight:550; letter-spacing:-.5px; }
  .review-stat span { color:var(--muted); font-size:10px; }
  .acknowledgments { padding:18px; border-radius:10px; border:1px solid #ecdfbd; background:var(--amber-soft); display:grid; gap:15px; }
  .checkbox-label { display:flex; align-items:flex-start; gap:10px; font-size:12px; font-weight:400; }
  .checkbox-label span { display:block; }
  .review-table { max-height:420px; }
  .review-table table { min-width:850px; font-size:11px; }
  .review-table th, .review-table td { padding:12px; }
  .details-list { margin:0; display:grid; grid-template-columns:1fr 1fr; gap:14px; font-size:12px; }
  .details-list dt { font-size:10px; color:var(--muted); }
  .details-list dd { margin:3px 0 0; overflow-wrap:anywhere; }
  .file-table { min-width:760px; }
  .file-table .table-primary { max-width:280px; }
  .team-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:24px; align-items:start; }
  .invite-form { display:grid; gap:16px; }
  .invite-result { display:grid; gap:12px; padding:18px; background:var(--teal-soft); border:1px solid #d0dfd0; border-radius:10px; margin-top:20px; }
  .invite-result input { font-size:11px; }
  .user-name { display:flex; align-items:center; gap:10px; }
  .team-table { min-width:550px; }
  .inline-error { margin:16px 0; }
  .dialog-backdrop { position:fixed; inset:0; background:#10273766; z-index:50; display:grid; place-items:center; padding:24px; }
  .dialog { width:100%; max-width:450px; box-shadow:0 20px 80px #10273733; }
  .dialog p { font-size:13px; color:var(--muted); margin:14px 0 24px; }
  .status-message { margin-bottom:20px; }
  .form-error { color:var(--red); font-size:12px; }
  .raw-filters { grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:0; }
  .raw-filter-actions { grid-column:1/-1; justify-content:space-between; align-items:center; }
  .raw-data-panel .table-scroll { max-height:620px; }
  .raw-data-table { min-width:1550px; }
  .raw-data-table th { white-space:normal; min-width:100px; max-width:165px; line-height:1.5; }
  .raw-data-table th:first-child { min-width:190px; }
  .raw-data-table th:nth-child(3) { min-width:220px; }
  .raw-data-table th:nth-child(5) { min-width:175px; }
  .raw-data-table td { font-size:12px; }
  .raw-data-table .source-date { white-space:nowrap; font-size:11px; }
  .raw-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:17px 20px; border-top:1px solid var(--line); flex-wrap:wrap; }
  .raw-pagination .button-row { gap:6px; }
  .page-number { padding:0 7px; color:var(--muted); font-size:11px; white-space:nowrap; }
  .raw-file-history { scroll-margin-top:24px; }
  .raw-file-history > summary { cursor:pointer; padding:23px 24px; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:16px; }
  .raw-file-history > summary::-webkit-details-marker { display:none; }
  .raw-file-history > summary::after { content:"+"; font-size:23px; color:var(--teal); font-weight:400; }
  .raw-file-history[open] > summary::after { content:"−"; }
  .raw-file-history > summary strong { font-size:17px; font-weight:600; letter-spacing:-.4px; }
  .raw-file-history .panel-description { display:block; }
  .raw-file-content { padding:0 20px 20px; }
  .raw-file-content .file-table { min-width:900px; }
  .data-entry-layout { grid-template-columns:minmax(0,1fr); }
  .data-entry-layout .upload-guidance ol { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
  .entry-methods { display:flex; gap:6px; padding:5px; border:1px solid var(--line); border-radius:10px; background:#ecefe7; width:max-content; max-width:100%; }
  .entry-method { display:flex; align-items:center; justify-content:center; gap:8px; padding:10px 18px; border:0; border-radius:7px; font-size:12px; color:var(--muted); background:transparent; }
  .entry-method svg { width:16px; height:16px; }
  .entry-method.selected { background:var(--white); color:var(--teal); box-shadow:0 1px 4px #132d3c0a; font-weight:600; }
  .sheet-panel { min-width:0; }
  .sheet-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px; }
  .sheet-batch-name { width:310px; max-width:40%; font-size:10px; flex-shrink:0; }
  .sheet-batch-name input { margin-top:5px; min-height:38px; font-size:12px; }
  .optional-label { font-weight:400; color:var(--muted); }
  .sheet-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:12px 20px; background:#f3f5ee; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
  .sheet-row-count { color:var(--teal); font-size:11px; font-weight:650; }
  .sheet-table-host { min-width:0; }
  .sheet-scroll { max-height:440px; overflow:auto; overscroll-behavior:contain; }
  .sheet-scroll:focus-visible { outline-offset:-3px; }
  .paste-table { width:100%; min-width:1500px; table-layout:fixed; font-size:12px; }
  .paste-table thead { position:sticky; top:0; z-index:4; }
  .paste-table thead th { height:81px; background:#f5f7f1; color:var(--ink); text-transform:none; font-size:11px; letter-spacing:0; padding:9px 12px; border-right:1px solid var(--line); border-bottom:1px solid #c9d5cb; white-space:normal; vertical-align:top; font-weight:600; }
  .paste-table thead th:nth-child(2) { width:175px; }
  .paste-table thead th:nth-child(3) { width:150px; }
  .paste-table thead th:nth-child(4) { width:255px; }
  .paste-table thead th:nth-child(5) { width:205px; }
  .paste-table thead th:nth-child(6) { width:135px; }
  .paste-table thead th:nth-child(7) { width:165px; }
  .paste-table thead th:nth-child(8) { width:130px; }
  .paste-table thead th:nth-child(9) { width:190px; }
  .sheet-column-letter { display:block; color:#8a9890; font-size:9px; font-weight:400; margin-bottom:3px; }
  .sheet-column-hint { display:block; margin-top:4px; font-size:9px; color:var(--muted); font-weight:400; line-height:1.3; }
  .paste-table .sheet-row-number { width:49px; min-width:49px; position:sticky; left:0; z-index:2; text-align:center; color:#7f8b83; background:#f4f6ef; padding:8px 4px; font-size:10px; font-variant-numeric:tabular-nums; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
  .paste-table thead .sheet-row-number { z-index:5; padding-top:34px; }
  .paste-table tbody td { padding:0; border-right:1px solid var(--line); border-bottom:1px solid var(--line); vertical-align:middle; background:var(--white); }
  .paste-table tbody tr:last-child td { border-bottom:1px solid var(--line); }
  .paste-table tbody tr:focus-within .sheet-row-number { color:var(--teal); background:#dfeddd; font-weight:650; }
  .sheet-cell { display:block; width:100%; height:38px; min-height:38px; resize:none; border:0; border-radius:0; outline:0; background:transparent; color:var(--ink); padding:10px 11px; line-height:18px; font-size:12px; white-space:pre; overflow:auto; scrollbar-width:thin; }
  .sheet-cell:focus { outline:2px solid var(--teal); outline-offset:-2px; background:#f1f7ed; position:relative; z-index:1; }
  .sheet-cell:disabled { opacity:.65; cursor:wait; }
  .paste-table .sheet-row-action { width:37px; min-width:37px; text-align:center; padding:0; background:#f6f7f1; }
  .sheet-delete.button { min-height:32px; width:31px; padding:0; border:0; background:transparent; color:#85938b; font-size:19px; font-weight:400; border-radius:4px; }
  .sheet-delete:hover { color:var(--red); background:var(--red-soft); }
  .sheet-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:12px 20px; border-top:1px solid var(--line); }
  .sheet-bottom { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px; border-top:1px solid var(--line); }
  .sheet-bottom > div { display:grid; gap:5px; }
  .sheet-bottom > .button { flex-shrink:0; }
  .period-panel { margin-bottom:18px; }
  .stack > .period-panel { margin-bottom:0; }
  .period-header { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 22px 15px; }
  .period-header h2 { font-size:15px; letter-spacing:-.25px; }
  .period-header .panel-description { font-size:10px; }
  .period-year { display:flex; align-items:center; gap:10px; flex-shrink:0; color:var(--muted); font-size:10px; }
  .period-year select { width:100px; margin:0; min-height:35px; font-size:12px; padding:6px 10px; }
  .period-sheets { display:flex; align-items:stretch; gap:3px; padding:0 18px; overflow-x:auto; scrollbar-width:thin; border-bottom:1px solid var(--line); background:linear-gradient(180deg,var(--white),#f3f5ef); }
  .period-sheet { display:flex; align-items:center; justify-content:center; gap:6px; flex:1 0 auto; min-width:48px; min-height:44px; padding:10px 12px; background:transparent; color:var(--muted); border:1px solid transparent; border-bottom:2px solid transparent; border-radius:7px 7px 0 0; font-size:11px; font-weight:500; white-space:nowrap; }
  .period-sheet:hover { color:var(--teal); background:#eaf1e7; }
  .period-sheet.active { color:var(--teal); background:#e4efdf; border-color:#d4e3d0; border-bottom-color:var(--teal); font-weight:650; }
  .period-sheet:focus-visible { outline-offset:-3px; }
  .period-dot { display:inline-block; flex-shrink:0; width:4px; height:4px; border-radius:50%; background:transparent; }
  .period-dot.available { background:#659581; }
  .period-context { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 22px; flex-wrap:wrap; }
  .period-selection { color:var(--teal); font-size:11px; font-weight:550; }
  .period-selection.custom { color:var(--amber); }
  .period-availability { display:flex; align-items:center; gap:6px; font-size:9px; color:var(--muted); }
  .inventory-subnav { display:flex; align-items:center; gap:5px; margin:-6px 0 24px; padding-bottom:12px; border-bottom:1px solid var(--line); }
  .inventory-tab { display:flex; align-items:center; gap:7px; border:0; background:transparent; color:var(--muted); border-radius:8px; font-size:12px; padding:10px 17px; }
  .inventory-tab svg { width:14px; height:14px; }
  .inventory-tab.selected { background:var(--teal-soft); color:var(--teal); font-weight:650; }
  .inventory-tab:hover { background:#eaf0e6; }
  .inventory-snapshot-picker { display:grid; grid-template-columns:minmax(0,1fr) minmax(250px,1fr); gap:13px 30px; padding:22px 24px; }
  .inventory-snapshot-picker > label { font-size:10px; color:var(--muted); align-self:center; }
  .inventory-snapshot-picker select { font-size:12px; }
  .inventory-snapshot-note { grid-column:1/-1; }
  .inventory-filters { grid-template-columns:minmax(120px,1fr) minmax(140px,1fr) auto; margin:0; }
  .inventory-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:0; }
  .inventory-stock-table { min-width:800px; }
  .inventory-stock-table th:nth-child(3) { min-width:300px; }
  .inventory-stock-table td:nth-child(2) { white-space:nowrap; }
  .inventory-entry-fields { display:grid; grid-template-columns:minmax(200px,1fr) minmax(200px,1fr); gap:22px; }
  .inventory-entry-fields label { font-size:11px; }
  .inventory-entry-fields .password-hint { display:block; }
  .inventory-review-action { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:5px 0; }
  .inventory-review-action .button { flex-shrink:0; }
  .inventory-paste-table { min-width:740px; }
  .inventory-paste-table thead th:nth-child(2) { width:auto; }
  .inventory-paste-table thead th:nth-child(3) { width:245px; }
  .inventory-paste-table thead th:nth-child(4) { width:37px; }
  .inventory-paste-table thead th { height:65px; }
}
@layer responsive {
  @media (min-width:1600px) { .workspace { padding-left:48px; padding-right:48px; } }
  @media (max-width:1150px) { .header-inner { gap:20px; } .nav-button { padding:10px 12px; } .account-details { max-width:120px; } .filters { grid-template-columns:repeat(3,1fr); } .filter-actions { grid-column:1/-1; justify-content:flex-end; } .metric { padding:20px; } .metric-value { font-size:30px; } .upload-layout { grid-template-columns:minmax(0,1fr) 250px; } .team-layout { grid-template-columns:minmax(0,1fr) 300px; } }
  @media (max-width:900px) { .header-inner { flex-wrap:wrap; gap:0 20px; padding-top:18px; } .brand { margin-bottom:13px; } .account { margin-bottom:13px; } .main-nav { order:3; width:100%; padding:0 0 12px; } .workspace { padding-top:30px; } .chart-grid, .tables-grid { grid-template-columns:1fr; } .metrics { gap:12px; } .metric { padding:17px; min-height:135px; } .metric-value { font-size:28px; } .metric-label { font-size:10px; } .metric-icon { display:none; } .team-layout, .upload-layout { grid-template-columns:1fr; } .upload-guidance { order:-1; } .upload-guidance ol { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-bottom:0; } .auth-story { padding:40px; } .auth-story h1 { font-size:43px; } .raw-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
  @media (max-width:600px) { .raw-pagination { padding:15px; gap:14px; } .raw-pagination .button { padding:6px 9px; } .raw-pagination .button-row { gap:4px; } .page-number { font-size:10px; padding:0 4px; } .raw-filter-actions { align-items:flex-start; gap:12px; flex-direction:column; } .raw-filter-actions > .button-row { justify-content:flex-end; width:100%; } .raw-file-content { padding:0 12px 16px; } .raw-file-history > summary { padding:19px 18px; } .raw-data-panel .table-scroll { max-height:520px; } .raw-data-panel .table-scroll .raw-data-table { min-width:1450px; } .utility-menu > summary { padding:6px 8px; font-size:10px; } .utility-options { min-width:200px; } #view:has(.raw-data-panel) .page-heading { flex-wrap:wrap; gap:15px; } }
  @media (max-width:700px) { .sheet-heading { flex-direction:column; align-items:stretch; gap:17px; padding:20px 18px; } .sheet-batch-name { max-width:100%; width:100%; } .sheet-toolbar { padding:11px 14px; } .sheet-bottom { align-items:stretch; flex-direction:column; gap:15px; padding:18px; } .sheet-pagination { padding:12px 14px; } .sheet-pagination .button-row { width:100%; justify-content:space-between; } .entry-methods { width:100%; } .entry-method { flex:1; padding:10px 9px; font-size:11px; } .data-entry-layout .upload-guidance ol { grid-template-columns:1fr; gap:0; } }
  @media (max-width:600px) { .period-header { padding:17px 16px 14px; gap:12px; align-items:flex-start; } .period-header h2 { font-size:14px; } .period-header .panel-description { max-width:210px; font-size:9px; } .period-year { flex-direction:column; align-items:flex-start; gap:4px; } .period-year select { width:85px; } .period-sheets { padding:0 12px; gap:2px; } .period-sheet { min-width:52px; padding:9px 12px; } .period-context { padding:11px 16px; } .period-availability { font-size:8px; } }
  @media (max-width:700px) { .inventory-snapshot-picker, .inventory-entry-fields { grid-template-columns:1fr; gap:16px; } .inventory-snapshot-picker { padding:20px 18px; } .inventory-filters { grid-template-columns:1fr 1fr; } .inventory-filters > .button-row { grid-column:1/-1; justify-content:flex-end; } .inventory-review-action { flex-direction:column; align-items:stretch; gap:14px; } .inventory-metrics { grid-template-columns:1fr; } .inventory-metrics .metric { min-height:115px; } .inventory-subnav { gap:3px; } .inventory-tab { font-size:11px; padding:9px 12px; } .inventory-paste-table { min-width:700px; } }
  @media (max-width:600px) { .workspace { padding:26px 18px 24px; } .app-header { padding:0 18px; } .header-inner { gap:0 12px; } .brand { gap:9px; } .brand-mark { width:45px; height:36px; font-size:15px; } .brand-name { font-size:11px; } .brand-sub { font-size:8px; letter-spacing:1px; } .account { gap:7px; } .account-details { display:none; } .avatar { width:29px; height:29px; font-size:10px; } .signout { font-size:11px; } .main-nav { gap:3px; } .nav-button { padding:9px 14px; font-size:12px; } .page-heading { align-items:flex-start; margin-bottom:22px; } .page-heading .button { padding:9px 12px; min-height:38px; font-size:11px; } h1 { font-size:30px; letter-spacing:-1px; } .eyebrow { font-size:9px; } .page-description { font-size:12px; } .filters { grid-template-columns:1fr 1fr; padding:16px; gap:12px; } .metrics { grid-template-columns:1fr 1fr; margin-bottom:18px; } .metric { min-height:133px; padding:18px; } .metric-value { font-size:29px; } .metric-value.compact { font-size:23px; } .metric-note { font-size:9px; } .coverage { gap:8px; display:grid; font-size:10px; } .chart-grid { gap:18px; } .panel-header { padding:20px 18px 15px; } .panel-header h2 { font-size:16px; } .panel-body { padding:18px; } .chart { padding:0 18px 18px; } .bar-chart { padding:4px 18px 22px; } .tables-grid { gap:18px; } th, td { padding:13px 14px; } .table-scroll table { min-width:400px; } .table-scroll.review-table table { min-width:850px; } .footer { font-size:9px; } .auth-shell { grid-template-columns:1fr; } .auth-story { padding:26px 26px 32px; } .auth-story-copy { padding:25px 0 5px; max-width:100%; } .auth-story h1 { font-size:35px; max-width:340px; margin:12px 0; letter-spacing:-1.5px; } .auth-story-copy > p { font-size:12px; max-width:320px; } .auth-story-footer { display:none; } .auth-decoration { width:200px; height:200px; bottom:-170px; right:-90px; } .auth-main { padding:37px 26px 50px; align-items:flex-start; } .auth-card { max-width:430px; } .auth-card h1 { font-size:26px; } .auth-card .page-description { margin-bottom:24px; } .upload-guidance ol { grid-template-columns:1fr; gap:0; } .review-metrics { grid-template-columns:1fr; gap:8px; } .review-stat { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:12px 15px; } .review-stat strong { margin:0; font-size:20px; } .details-list { gap:12px; } .file-table { min-width:720px !important; } .team-table { min-width:550px !important; } }
  @media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; } }
}
