  @font-face {
    font-family: "Pretendard Variable";
    src: url("/assets/fonts/PretendardVariable.woff2") format("woff2-variations");
    font-style: normal;
    font-weight: 45 920;
    font-display: swap;
  }

  :root {
    --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
    --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --fs-xxs: 14px;
    --fs-xs: 15px;
    --fs-sm: 16px;
    --fs-md: 18px;
    --fs-lg: 20px;
    --fs-xl: 24px;
    --radius-md: 10px;
    --navy: #0f1f36;
    --navy-2: #182b47;
    --teal: #008a9a;
    --teal-soft: #e9f7f8;
    --surface: #f4f6f8;
    --line: #dde3e9;
    --ink: #17202d;
    --muted: #647184;
    --page-gutter: 24px;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; font-synthesis: none; }
  body { margin: 0; background: var(--surface); color: var(--ink); min-width: 0; font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 400; line-height: 1.58; letter-spacing: -.006em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; word-break: keep-all; overflow-wrap: break-word; }
  h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
  a { color: inherit; text-decoration: none; }
  img, svg { display: block; max-width: 100%; }
  button, input, select { font: inherit; letter-spacing: inherit; }
  button { cursor: pointer; }
  button:disabled { cursor: not-allowed; opacity: .58; }
  button:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid rgba(0,138,154,.24); outline-offset: 3px; }
  [hidden] { display: none !important; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

  .app { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
  .sidebar { background: var(--navy); color: white; padding: 28px 18px 20px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
  .logo { display: flex; gap: 12px; align-items: center; padding: 0 10px 28px; }
  .logo-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(145deg, #00a5b8, #087386); display: grid; place-items: center; font-weight: 800; }
  .logo strong { display: block; font-size: var(--fs-sm); font-weight: 700; letter-spacing: -.012em; }
  .logo small { color: #aebcd0; font-size: var(--fs-xxs); }
  .nav { display: grid; gap: 7px; }
  .nav-btn { border: 0; background: transparent; color: #b9c4d4; padding: 12px 13px; border-radius: 9px; text-align: left; display: flex; gap: 11px; align-items: center; font-size: var(--fs-xs); font-weight: 600; }
  .nav-btn:hover { background: rgba(255,255,255,.06); color: white; }
  .nav-btn.active { background: white; color: var(--navy); }
  .nav-icon { width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 7px; display: grid; place-items: center; font-size: var(--fs-xxs); font-weight: 800; }
  .local-card { margin-top: auto; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.05); border-radius: 12px; padding: 14px; }
  .local-title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700; }
  .pulse { width: 8px; height: 8px; border-radius: 50%; background: #42d6a4; box-shadow: 0 0 0 4px rgba(66,214,164,.12); }
  .local-card p { color: #9dacbf; font-size: var(--fs-xxs); line-height: 1.6; margin: 9px 0 0; }

  .workspace { min-width: 0; }
  .topbar { height: 72px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 var(--page-gutter); position: sticky; top: 0; z-index: 20; }
  .page-title { min-width: 0; }
  .page-title h1 { margin: 0; font-size: var(--fs-lg); font-weight: 700; line-height: 1.38; letter-spacing: -.016em; }
  .page-title p { margin: 2px 0 0; font-size: var(--fs-xxs); line-height: 1.55; color: var(--muted); }
  .top-grow { flex: 1; }
  .content { width: 100%; max-width: 1600px; margin: 0 auto; padding: 20px var(--page-gutter) 48px; }
  .page-view { width: 100%; margin-inline: auto; }

  .flow { display: grid; grid-template-columns: repeat(4, 1fr); background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; }
  .flow-step { display: flex; align-items: center; gap: 10px; position: relative; color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
  .step-label { min-width: 0; }
  .flow-step:not(:last-child)::after { content: ''; position: absolute; height: 1px; background: var(--line); left: 44px; right: 16px; bottom: -1px; }
  .step-num { width: 32px; height: 32px; border-radius: 50%; background: #edf1f5; display: grid; place-items: center; color: #536175; font-size: var(--fs-xxs); }
  .flow-step.active { color: var(--ink); }
  .flow-step.active .step-num { background: var(--teal); color: white; }
  .flow-step.current .step-num { box-shadow: 0 0 0 4px rgba(0,138,154,.14); }

  .create-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
  .stack { display: grid; gap: 14px; }
  .card { background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15,31,54,.025); }
  .card-head { padding: 15px 18px 13px; border-bottom: 1px solid #edf0f3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .card-head h2 { margin: 0; font-size: var(--fs-sm); font-weight: 700; line-height: 1.5; letter-spacing: -.012em; }
  .card-head p { margin: 0; color: var(--muted); font-size: var(--fs-xxs); line-height: 1.55; }
  .card-body { padding: 16px 18px; }
  .form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 12px; }
  .span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; }
  .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
  .span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; }
  .field label { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; margin-bottom: 6px; }
  .required { color: #d14343; }
  .input, .select { width: 100%; height: 44px; border: 1px solid #cfd6de; border-radius: 8px; background: white; padding: 0 13px; outline: none; color: var(--ink); font-size: var(--fs-sm); line-height: 1.5; }
  .input:focus, .select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,138,154,.11); }
  .field-hint { display: block; color: var(--muted); font-size: var(--fs-xxs); line-height: 1.5; margin-top: 5px; }
  .picker-status { display: block; margin-top: 7px; border-radius: 7px; padding: 7px 9px; font-size: var(--fs-xxs); line-height: 1.5; }
  .picker-status.info { background: #edf6ff; color: #315f87; }
  .picker-status.success { background: #eaf8f1; color: #23724e; }
  .picker-status.error { background: #fff0f0; color: #a52d2d; }
  .input-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .input-action > .input { min-width: 0; }
  .mini-btn { min-height: 44px; padding: 0 14px; border: 1px solid #bdc7d1; background: white; border-radius: 8px; font-size: var(--fs-xs); font-weight: 700; color: #344256; white-space: nowrap; }
  .mini-btn:hover { background: #f7f9fb; }

  .type-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .type-card { border: 1px solid var(--line); background: white; border-radius: 10px; padding: 12px; text-align: left; min-height: 96px; }
  .type-card:hover { border-color: #9ba8b7; }
  .type-card.active { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
  .type-card b { display: block; font-size: var(--fs-xs); line-height: 1.45; margin-bottom: 6px; }
  .type-card span { color: var(--muted); font-size: var(--fs-xxs); line-height: 1.55; }

  .document-tools { display: grid; gap: 8px; margin-bottom: 14px; }
  .document-filters { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(160px, .55fr); gap: 8px; }
  .document-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .document-tools .filter-btn[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); color: #086a75; }
  .document-summary { grid-column: 1 / -1; color: var(--muted); font-size: var(--fs-xxs); line-height: 1.5; }
  .document-groups { display: grid; gap: 10px; }
  .document-group { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fbfcfd; }
  .document-group-head { display: flex; align-items: center; gap: 9px; padding: 12px 14px; cursor: pointer; list-style: none; font-size: var(--fs-xs); font-weight: 800; color: #344256; }
  .document-group-head::-webkit-details-marker { display: none; }
  .document-group-toggle { position: relative; width: 22px; height: 22px; border: 1px solid #bdc7d1; border-radius: 6px; flex: none; }
  .document-group-toggle::before, .document-group-toggle::after { content: ''; position: absolute; width: 10px; height: 2px; left: 5px; top: 9px; border-radius: 2px; background: var(--teal); }
  .document-group-toggle::after { transform: rotate(90deg); }
  .document-group[open] .document-group-toggle::after { display: none; }
  .document-group[open] > .document-group-head { background: #f2f8f9; border-bottom: 1px solid var(--line); }
  .document-group-title { min-width: 0; }
  .document-group-count { margin-left: auto; color: var(--muted); font-size: var(--fs-xxs); font-weight: 700; white-space: nowrap; }
  .document-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; background: white; }
  .document-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; min-height: 64px; }
  .document-item:hover { border-color: #a9b6c3; }
  .document-item:has(input:checked) { border-color: #7bbac1; background: #f2fbfb; }
  .document-item input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--teal); flex: none; }
  .document-item b { display: block; font-size: var(--fs-xs); line-height: 1.45; }
  .document-item small { display: block; color: var(--muted); font-size: var(--fs-xxs); line-height: 1.55; margin-top: 2px; }
  .option-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #edf0f3; }
  .check { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; }
  .check input { width: 18px; height: 18px; accent-color: var(--teal); }

  .summary { position: sticky; top: 98px; overflow: hidden; }
  .summary-top { background: var(--navy); color: white; padding: 18px; }
  .summary-kicker { color: #77ced5; font-size: var(--fs-xxs); font-weight: 800; letter-spacing: .1em; }
  .summary-top h2 { font-size: var(--fs-lg); font-weight: 700; line-height: 1.4; margin: 5px 0 3px; letter-spacing: -.018em; }
  .summary-top p { color: #aebcd0; font-size: var(--fs-xxs); line-height: 1.5; margin: 0; }
  .summary-body { padding: 16px; }
  .path-box { background: #f4f6f8; border: 1px solid #e1e6eb; border-radius: 9px; padding: 10px; font: 400 var(--fs-xxs)/1.55 var(--font-mono); word-break: break-all; min-height: 48px; color: #3f4c5e; }
  .metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 15px 0; }
  .metric { border: 1px solid #e2e7ec; border-radius: 8px; padding: 9px; }
  .metric small { color: var(--muted); display: block; font-size: var(--fs-xxs); line-height: 1.4; }
  .metric strong { font-size: var(--fs-md); display: block; margin-top: 2px; }
  .issues { display: grid; gap: 7px; margin: 12px 0 16px; }
  .issue { border-radius: 8px; padding: 9px 10px; font-size: var(--fs-xxs); line-height: 1.55; }
  .issue.error { background: #fff0f0; color: #a52d2d; }
  .issue.warning { background: #fff7e6; color: #765814; }
  .issue.info { background: #edf6ff; color: #315f87; }
  .issue.ok { background: #eaf8f1; color: #23724e; }
  .actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
  .btn { min-height: 44px; border-radius: 8px; border: 0; padding: 0 14px; font-size: var(--fs-xs); font-weight: 700; }
  .btn-primary { background: var(--teal); color: white; }
  .btn-primary:hover { background: #007683; }
  .btn-primary:disabled { background: #abb6c0; cursor: not-allowed; }
  .btn-secondary { background: white; border: 1px solid #bdc7d1; color: #344256; }
  .btn-danger { color: #9b3535; background: #fff0f0; }
  .open-row { display: flex; gap: 8px; margin-top: 9px; }
  .open-row .btn { flex: 1; }
  .open-row.public-actions { display: grid; grid-template-columns: 1.35fr 1fr 1fr; }
  .browser-save-hint, .export-status { margin: 8px 0 0; color: var(--muted); font-size: var(--fs-xxs); line-height: 1.5; }
  .export-status { border-radius: 8px; padding: 8px 10px; background: #edf6ff; color: #315f87; }
  .supplement { background: #fff7e6; border: 1px solid #f0d78e; border-radius: 8px; padding: 10px; margin: 12px 0; }
  .supplement label { font-size: var(--fs-xxs); font-weight: 700; }

  .result-card { margin-top: 18px; }
  .result-status { display: inline-flex; border-radius: 99px; padding: 5px 9px; background: #eaf8f1; color: #23724e; font-size: var(--fs-xxs); font-weight: 800; }
  pre.log { margin: 10px 0 0; background: #101b2b; color: #d6deea; border-radius: 10px; padding: 14px; max-height: 380px; overflow: auto; white-space: pre-wrap; word-break: break-all; font: 400 var(--fs-xxs)/1.65 var(--font-mono); }

  .toolbar { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(180px, .5fr) auto; gap: 10px; align-items: end; }
  .toolbar-note { grid-column: 1 / -1; color: var(--muted); font-size: var(--fs-xxs); line-height: 1.5; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 18px 0; }
  .stat { padding: 18px; background: white; border: 1px solid var(--line); border-radius: 12px; }
  .stat small { display: block; color: var(--muted); font-size: var(--fs-xxs); }
  .stat strong { display: block; font-size: 26px; margin-top: 5px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-gutter: stable; }
  .table-note { margin: 0 0 9px; color: var(--muted); font-size: var(--fs-xxs); line-height: 1.5; }
  .mobile-only { display: none; }
  table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
  th { color: var(--muted); background: #f7f9fa; text-align: left; font-size: var(--fs-xxs); padding: 10px 12px; border-bottom: 1px solid var(--line); }
  td { padding: 10px 12px; border-bottom: 1px solid #edf0f3; vertical-align: top; }
  tr.project-row { cursor: pointer; }
  tr.project-row:hover { background: #f8fbfc; }
  tr.project-row:focus-visible { outline: 3px solid rgba(0,138,154,.2); outline-offset: -3px; background: #f2fbfb; }
  .audit-table { min-width: 760px; table-layout: fixed; }
  .audit-table .col-project { width: 36%; }
  .audit-table .col-type { width: 14%; }
  .audit-table .col-score { width: 10%; }
  .audit-table .col-issues { width: 30%; }
  .audit-table .col-actions { width: 10%; }
  .project-name b { display: block; word-break: keep-all; overflow-wrap: anywhere; }
  .project-type, .project-score, .project-actions { word-break: keep-all; white-space: nowrap; }
  .project-actions { text-align: right; }
  .project-export-actions { display: flex; justify-content: flex-end; gap: 6px; }
  .project-export-actions .mini-btn { min-height: 38px; padding-inline: 10px; }
  .public-mode .audit-table .col-project { width: 32%; }
  .public-mode .audit-table .col-issues { width: 26%; }
  .public-mode .audit-table .col-actions { width: 18%; }
  .badge { display: inline-flex; border-radius: 99px; padding: 4px 8px; font-size: var(--fs-xxs); font-weight: 800; background: #edf1f5; color: #48576a; white-space: nowrap; }
  .badge.good { background: #eaf8f1; color: #23724e; }
  .badge.bad { background: #fff0f0; color: #a52d2d; }
  .detail { background: #f8fafb; color: #465467; line-height: 1.6; }
  .detail ul { margin: 4px 0 10px; padding-left: 18px; }
  .project-cards { display: none; }
  .project-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: white; }
  .project-card + .project-card { margin-top: 10px; }
  .project-card-head { display: flex; align-items: flex-start; gap: 10px; }
  .project-card-title { min-width: 0; flex: 1; }
  .project-card-title b { display: block; font-size: var(--fs-xs); line-height: 1.5; overflow-wrap: anywhere; }
  .project-card-title span { display: block; margin-top: 3px; color: var(--muted); font-size: var(--fs-xxs); }
  .project-card-issues { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
  .project-card-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .project-card-actions .mini-btn { width: 100%; }
  .project-card-detail { margin-top: 12px; border-top: 1px solid #edf0f3; padding-top: 12px; color: #465467; font-size: var(--fs-xxs); line-height: 1.6; }
  .project-card-detail ul { margin: 4px 0 10px; padding-left: 18px; }
  .audit-guide { margin: 14px 0 18px; overflow: hidden; }
  .audit-guide > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
  .audit-guide > summary::-webkit-details-marker { display: none; }
  .audit-guide > summary b { display: block; font-size: var(--fs-xs); }
  .audit-guide > summary small { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-xxs); font-weight: 400; }
  .audit-guide[open] > summary { border-bottom: 1px solid var(--line); background: #f8fbfc; }
  .audit-guide[open] .document-group-toggle::after { display: none; }
  .criteria-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 18px 18px; }
  .criterion-guide { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
  .criterion-guide b { display: block; font-size: var(--fs-xxs); }
  .criterion-guide p { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-xxs); line-height: 1.5; }
  .criteria-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
  .criterion-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; background: white; font-size: var(--fs-xxs); }
  .criterion-status { flex: none; border-radius: 99px; padding: 2px 6px; font-size: 12px; font-weight: 800; }
  .criterion-status.pass { background: #eaf8f1; color: #23724e; }
  .criterion-status.fail { background: #fff0f0; color: #a52d2d; }
  .empty { text-align: center; padding: 40px 18px; color: var(--muted); font-size: var(--fs-xs); }

  .activity-controls { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
  .activity-policy { margin: 0; color: var(--muted); font-size: var(--fs-xxs); line-height: 1.5; }
  .activity-list-card { margin-top: 14px; }
  .public-mode-banner { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 13px 16px; border: 1px solid #99d6dc; border-radius: var(--radius-md); background: var(--teal-soft); color: #164e58; font-size: var(--fs-xs); line-height: 1.55; }
  .public-mode-banner b { flex: 0 0 auto; color: #006b78; }
  .timeline { display: grid; gap: 0; }
  .activity { display: grid; grid-template-columns: 16px minmax(0,1fr) auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid #edf0f3; }
  .activity-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
  .activity-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
  .activity b { font-size: var(--fs-xs); display: block; }
  .activity-status { display: inline-flex; align-items: center; border-radius: 99px; padding: 3px 7px; font-size: var(--fs-xxs); font-weight: 800; background: #edf1f5; color: #48576a; }
  .activity.status-success .activity-dot { background: #2eaf79; box-shadow: 0 0 0 4px rgba(46,175,121,.12); }
  .activity.status-warning .activity-dot, .activity.status-partial .activity-dot { background: #d89521; box-shadow: 0 0 0 4px rgba(216,149,33,.12); }
  .activity.status-failed .activity-dot { background: #d14343; box-shadow: 0 0 0 4px rgba(209,67,67,.12); }
  .activity.status-success .activity-status { background: #eaf8f1; color: #23724e; }
  .activity.status-warning .activity-status, .activity.status-partial .activity-status { background: #fff7e6; color: #765814; }
  .activity.status-failed .activity-status { background: #fff0f0; color: #a52d2d; }
  .activity p { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-xxs); line-height: 1.5; word-break: break-all; }
  .activity-note { margin-top: 5px; color: #765814; font-size: var(--fs-xxs); line-height: 1.5; }
  .activity time { color: var(--muted); font-size: var(--fs-xxs); white-space: nowrap; }
  .global-notice { position: fixed; z-index: 100; right: 20px; bottom: 20px; width: min(420px, calc(100vw - 24px)); border: 1px solid #b9c7d6; border-radius: 12px; padding: 12px 14px; background: white; color: #344256; box-shadow: 0 14px 34px rgba(15,31,54,.2); font-size: var(--fs-xs); line-height: 1.55; }
  .global-notice.success { border-color: #9bd4bb; background: #eaf8f1; color: #23724e; }
  .global-notice.error { border-color: #edb7b7; background: #fff0f0; color: #a52d2d; }
  .section-intro { margin-bottom: 20px; }
  .section-intro h2 { font-size: var(--fs-xl); font-weight: 700; line-height: 1.4; margin: 0 0 4px; letter-spacing: -.018em; }
  .section-intro p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; margin: 0; }

  @media (max-width: 1120px) {
    :root { --page-gutter: 18px; }
    .app { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-content: start; }
    .sidebar { height: auto; position: static; padding: 12px 18px; display: grid; grid-template-columns: minmax(190px, 240px) minmax(0, 1fr); gap: 16px; align-items: center; }
    .logo { padding: 0; }
    .nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nav-btn { justify-content: center; text-align: center; padding: 9px 10px; }
    .local-card { display: none; }
    .topbar { top: 0; }
    .create-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .type-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 760px) {
    :root { --page-gutter: 12px; }
    .sidebar { padding: 14px; grid-template-columns: 1fr; gap: 12px; }
    .nav { grid-template-columns: repeat(3, 1fr); }
    .nav-btn { justify-content: center; padding: 9px; font-size: var(--fs-xxs); }
    .nav-icon { display: none; }
    .topbar { top: 0; height: 66px; }
    .content { padding-top: 14px; padding-bottom: 32px; }
    .flow { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .span-8, .span-7, .span-6, .span-5, .span-4, .span-3, .span-2 { grid-column: span 12; }
    .document-list, .document-filters, .type-grid, .stats, .criteria-guide-grid, .criteria-list { grid-template-columns: 1fr; }
    .toolbar { grid-template-columns: 1fr; }
    .mobile-only { display: inline; }
    .activity { grid-template-columns: 16px minmax(0,1fr); }
    .activity time { grid-column: 2; }
    .page-title p { display: none; }
  }
  @media (max-width: 600px) {
    .project-cards { display: block; }
    #projectTable .table-wrap { display: none; }
    #projectTable .table-note { display: none; }
    .activity-controls { align-items: stretch; flex-direction: column; }
    .open-row.public-actions { grid-template-columns: 1fr; }
    .project-export-actions { display: grid; grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 480px) {
    .prototype-badge { display: none; }
    .topbar { gap: 10px; }
    .global-notice { right: 12px; bottom: 12px; }
  }
  @media (max-width: 360px) {
    .sidebar { padding-inline: 12px; }
    .nav-btn { padding-inline: 3px; white-space: nowrap; letter-spacing: -.01em; }
    .flow { gap: 8px; padding-inline: 10px; }
    .flow-step { gap: 7px; font-size: var(--fs-xxs); white-space: nowrap; }
    .step-num { flex: 0 0 30px; width: 30px; height: 30px; }
  }
