:root {
  --ink: #26271f;
  --ink-soft: #5f6156;
  --paper: #f7f4ed;
  --panel: #fffdf8;
  --line: #ddd8cc;
  --line-strong: #c8c0b0;
  --olive: #74745f;
  --olive-dark: #525444;
  --sand: #c9b995;
  --high: #d55450;
  --high-soft: #f8e7e5;
  --medium: #de9635;
  --medium-soft: #fbefd9;
  --normal: #3b8b79;
  --normal-soft: #e0f1eb;
  --shadow: 0 18px 50px rgba(44, 41, 31, 0.09);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

.loading-screen, .error-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}
.loading-screen p, .error-page p { color: var(--ink-soft); max-width: 520px; }
.error-page h1 { font-family: Georgia, serif; font-size: clamp(36px, 6vw, 68px); margin: 4px 0; }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: -1px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: -.02em;
}
button.brand-lockup { border: 0; background: none; color: inherit; padding: 0; cursor: pointer; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--olive);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.button {
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .55; }
.button-primary { background: var(--olive-dark); color: #fff; box-shadow: 0 7px 20px rgba(82,84,68,.19); }
.button-primary:hover { background: #424438; }
.button-dark { background: var(--ink); color: #fff; }
.button-light { background: #f4f0e7; color: var(--ink); }
.button-ghost { background: var(--panel); border-color: var(--line); }
.button-danger { background: var(--high-soft); color: #a83c39; border-color: #e9b8b5; }
.button-text-danger { background: transparent; color: #aa3e3b; padding-inline: 8px; }
.button-full { width: 100%; }
.button-small { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
}
.icon-button:disabled { opacity: .3; cursor: default; }
.icon-danger { color: var(--high); }

/* Login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, .78fr) 1.22fr; background: var(--panel); }
.login-card { padding: clamp(38px, 8vw, 110px); display: flex; flex-direction: column; justify-content: center; }
.login-card .brand-lockup { margin-bottom: clamp(52px, 11vh, 110px); }
.login-card h1 { font-family: Georgia, serif; font-size: clamp(45px, 5vw, 76px); line-height: .98; letter-spacing: -.055em; margin: 0 0 24px; max-width: 580px; }
.login-copy { color: var(--ink-soft); font-size: 17px; line-height: 1.7; max-width: 580px; margin: 0 0 30px; }
.stack-form { display: grid; gap: 16px; max-width: 470px; }
.form-error { margin: -4px 0 0; color: #b7403d; font-size: 13px; }
.login-preview { position: relative; background: #73735f; overflow: hidden; display: grid; place-items: center; padding: clamp(28px, 5vw, 90px); }
.login-preview::before, .login-preview::after { content: ""; position: absolute; border-radius: 999px; background: rgba(255,255,255,.07); }
.login-preview::before { width: 560px; height: 560px; top: -260px; right: -160px; }
.login-preview::after { width: 420px; height: 420px; bottom: -230px; left: -120px; }
.preview-browser { width: min(800px, 100%); background: #fff; border-radius: 20px; box-shadow: 0 40px 100px rgba(30,31,25,.35); overflow: hidden; transform: rotate(-1.5deg); z-index: 1; }
.preview-toolbar { height: 42px; background: #f0eee9; display: flex; align-items: center; gap: 7px; padding: 0 14px; color: #a19e96; font-size: 10px; }
.preview-toolbar i { width: 8px; height: 8px; border-radius: 50%; background: #c7c1b8; }
.preview-toolbar span { margin-left: 8px; background: #fff; border-radius: 5px; padding: 5px 16px; flex: 1; }
.preview-canvas { min-height: 540px; position: relative; display: grid; grid-template-columns: 46% 54%; background: #eee8dc; }
.preview-copy { padding: 85px 32px 40px 45px; }
.preview-copy small { letter-spacing: .18em; font-weight: 800; font-size: 9px; color: var(--olive); }
.preview-copy strong { display: block; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 58px); line-height: 1; margin: 18px 0; }
.preview-copy p { color: var(--ink-soft); line-height: 1.6; font-size: 12px; }
.preview-image { background: linear-gradient(155deg, rgba(219,212,195,.05), rgba(60,62,49,.2)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='1000' viewBox='0 0 800 1000'%3E%3Crect width='800' height='1000' fill='%23c8c0ae'/%3E%3Ccircle cx='465' cy='260' r='150' fill='%23e5dfd2'/%3E%3Crect x='140' y='460' width='560' height='300' rx='75' fill='%239b9c85'/%3E%3Crect x='85' y='610' width='630' height='215' rx='40' fill='%23757660'/%3E%3Cpath d='M120 210h520v28H120zM145 238h470v295H145z' fill='%23f3eee3' opacity='.54'/%3E%3C/svg%3E") center/cover; }
.demo-marker { position: absolute; width: 34px; height: 34px; display: grid; place-items: center; color: #fff; border-radius: 50%; border: 3px solid #fff; font-size: 12px; font-weight: 800; box-shadow: 0 5px 16px rgba(0,0,0,.25); }
.demo-marker:nth-of-type(1) { top: 18%; left: 52%; }
.demo-marker:nth-of-type(2) { top: 55%; left: 86%; }
.demo-marker:nth-of-type(3) { top: 78%; left: 34%; }

/* Admin shell */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 268px minmax(0, 1fr); }
.sidebar { height: 100vh; position: sticky; top: 0; background: var(--ink); color: #f7f3e9; padding: 25px 18px 18px; display: flex; flex-direction: column; gap: 20px; overflow: auto; }
.sidebar .brand-mark { background: var(--sand); color: var(--ink); }
.sidebar-brand { padding: 0 7px 12px !important; color: #fff !important; font-size: 17px; }
.sidebar-nav { display: grid; gap: 6px; }
.sidebar-project { width: 100%; border: 0; background: transparent; color: #cdcec5; display: grid; grid-template-columns: 31px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px; border-radius: 10px; text-align: left; cursor: pointer; }
.sidebar-project > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.09); color: #fff; }
.sidebar-project b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.sidebar-project small { background: rgba(255,255,255,.08); border-radius: 999px; padding: 2px 7px; }
.sidebar-project:hover, .sidebar-project.is-active { background: rgba(255,255,255,.09); color: #fff; }
.sidebar-footer { margin-top: auto; padding: 15px 8px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; color: #9fa094; font-size: 12px; }
.sidebar-footer button { border: 0; color: #d7d7cf; background: none; cursor: pointer; text-decoration: underline; }
.admin-main { min-width: 0; padding: clamp(28px, 5vw, 72px); }
.admin-audit { padding-top: 36px; }
.page-header { max-width: 1100px; margin: 0 auto 38px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.page-header h1 { font-family: Georgia, serif; font-size: clamp(42px, 5vw, 68px); letter-spacing: -.04em; margin: 0 0 8px; }
.page-header p:not(.eyebrow) { color: var(--ink-soft); margin: 0; }
.project-list { max-width: 1100px; margin: auto; display: grid; gap: 12px; }
.project-list-card { width: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 15px; text-align: left; cursor: pointer; box-shadow: 0 4px 16px rgba(42,40,31,.025); }
.project-list-card:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
.project-card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #e8e4d9; font-family: Georgia, serif; font-size: 21px; }
.project-list-card strong { display: block; margin-bottom: 5px; }
.project-list-card small { color: var(--ink-soft); }
.chevron { font-size: 28px; color: var(--line-strong); }
.empty-list { background: var(--panel); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 50px; text-align: center; }
.empty-list p { font-family: Georgia, serif; font-size: 28px; margin: 0 0 8px; }
.empty-list span { color: var(--ink-soft); }

/* Audit content */
.audit-hero { max-width: 1500px; margin: 0 auto 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 46px); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px 40px; box-shadow: 0 8px 30px rgba(45,42,33,.035); }
.audit-identity h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 72px); line-height: 1; letter-spacing: -.045em; }
.audit-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 17px; color: var(--ink-soft); font-size: 13px; }
.audit-meta span::before { content: "Client · "; color: #9a968b; }
.audit-meta a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.audit-summary { max-width: 760px; color: var(--ink-soft); line-height: 1.65; margin: 22px 0 0; }
.audit-stats { display: grid; grid-template-columns: repeat(2, minmax(105px, 1fr)); gap: 8px; align-self: start; }
.audit-stats div { background: #f3efe6; border-radius: 13px; padding: 15px; }
.audit-stats strong { display: block; font-size: 26px; line-height: 1; margin-bottom: 6px; }
.audit-stats span { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; font-weight: 750; letter-spacing: .05em; }
.audit-stats .stat-high { background: var(--high-soft); }
.audit-stats .stat-medium { background: var(--medium-soft); }
.audit-stats .stat-normal { background: var(--normal-soft); }
.hero-actions { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.filter-bar { max-width: 1500px; margin: 0 auto 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; background: rgba(247,244,237,.92); padding: 9px 0; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-group + .filter-group { border-left: 1px solid var(--line); padding-left: 12px; }
.filter-bar > .button { margin-left: auto; }
.filter-chip { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 8px 11px; font-size: 12px; font-weight: 700; cursor: pointer; }
.filter-chip span { color: var(--ink-soft); padding-left: 4px; }
.filter-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-chip.is-active span { color: #d6d6cd; }
.audit-workspace { max-width: 1500px; margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.screenshot-feed { display: grid; gap: 22px; min-width: 0; }
.screenshot-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; box-shadow: 0 6px 25px rgba(47,43,32,.04); }
.screenshot-card.is-filtered { display: none; }
.screenshot-header { padding: 18px 20px; display: flex; justify-content: space-between; align-items: start; gap: 18px; border-bottom: 1px solid var(--line); }
.screenshot-header h2 { margin: 7px 0 5px; font-family: Georgia, serif; font-size: 23px; }
.screenshot-header a { display: block; max-width: 640px; color: var(--ink-soft); font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; }
.screenshot-actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.device-badge { border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.device-desktop { background: #e8e4d9; }
.device-mobile { background: #dfe9ec; color: #3f6570; }
.placement-banner { background: #f5edd9; color: #785c2f; border-bottom: 1px solid #e6d5ad; padding: 12px 20px; font-size: 13px; font-weight: 700; }
.image-stage { position: relative; width: 100%; line-height: 0; background: #ece9e1; }
.image-stage img { width: 100%; height: auto; display: block; }
.image-stage.is-placing { cursor: crosshair; box-shadow: inset 0 0 0 4px var(--medium); }
.marker-layer { position: absolute; inset: 0; pointer-events: none; }
.note-marker { position: absolute; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 850; line-height: 1; cursor: pointer; pointer-events: auto; box-shadow: 0 4px 14px rgba(30,30,24,.3); z-index: 2; transition: transform .15s ease, opacity .15s ease; }
.note-marker::after { content: ""; position: absolute; inset: -7px; border: 2px solid currentColor; border-radius: 50%; opacity: 0; }
.note-marker:hover, .note-marker.is-selected { transform: translate(-50%, -50%) scale(1.18); z-index: 4; }
.note-marker.is-selected::after { opacity: .5; }
.note-marker.is-filtered { opacity: 0; pointer-events: none; }
.marker-high { background: var(--high); }
.marker-medium { background: var(--medium); }
.marker-normal { background: var(--normal); }
.note-inspector { position: sticky; top: 74px; min-height: 300px; max-height: calc(100vh - 92px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(45,42,33,.045); }
.inspector-empty { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 35px; color: var(--ink-soft); }
.inspector-empty > span { font-size: 33px; color: var(--sand); }
.inspector-empty h3 { color: var(--ink); margin: 12px 0 6px; font-family: Georgia, serif; font-size: 22px; }
.inspector-empty p { line-height: 1.6; margin: 0; font-size: 13px; }
.inspector-note { padding: 22px; }
.inspector-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.inspector-topline > strong { font-family: Georgia, serif; font-size: 22px; }
.severity-pill { padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.severity-high { color: #a63f3c; background: var(--high-soft); }
.severity-medium { color: #8d5a18; background: var(--medium-soft); }
.severity-normal { color: #2d705f; background: var(--normal-soft); }
.inspector-note > h2 { font-family: Georgia, serif; font-size: 28px; line-height: 1.12; margin: 0 0 25px; }
.inspector-note section { border-top: 1px solid var(--line); padding: 19px 0 3px; }
.inspector-note section h3 { margin: 0 0 9px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.inspector-note section p { font-size: 14px; line-height: 1.65; margin: 0; }
.inspector-note .recommendation { border: 0; background: #f1efe7; border-radius: 12px; padding: 16px; margin-top: 19px; }
.inspector-actions { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; display: flex; justify-content: space-between; }
.empty-canvas { min-height: 440px; background: var(--panel); border: 1px dashed var(--line-strong); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.empty-canvas .empty-illustration { font-size: 70px; color: var(--sand); font-family: Georgia, serif; }
.empty-canvas h2 { font-family: Georgia, serif; font-size: 30px; margin: 15px 0 7px; }
.empty-canvas p { max-width: 460px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 20px; }

/* Dialogs and forms */
.app-dialog { width: min(720px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 20px; background: var(--panel); color: var(--ink); box-shadow: 0 35px 110px rgba(28,28,22,.35); }
.app-dialog::backdrop { background: rgba(29,30,25,.62); backdrop-filter: blur(3px); }
.dialog-card { max-height: calc(100vh - 30px); display: flex; flex-direction: column; }
.dialog-header { display: flex; justify-content: space-between; align-items: start; padding: 23px 25px 18px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-family: Georgia, serif; font-size: 30px; }
.dialog-body { padding: 23px 25px; display: grid; gap: 18px; overflow: auto; }
.dialog-actions { border-top: 1px solid var(--line); padding: 15px 25px; display: flex; gap: 8px; justify-content: flex-end; }
.danger-zone { margin-top: 4px; padding: 16px; border: 1px solid rgba(170,62,59,.22); border-radius: 12px; background: rgba(170,62,59,.045); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.danger-zone div { display: grid; gap: 3px; }
.danger-zone strong { color: #7f2f2d; }
.danger-zone span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.danger-zone .button { flex: 0 0 auto; }
.field { display: grid; gap: 7px; }
.field > span, fieldset legend { font-size: 12px; font-weight: 750; }
.field small { color: var(--ink-soft); }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); padding: 11px 12px; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(116,116,95,.13); }
.field textarea { min-height: 116px; resize: vertical; line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-dropzone { min-height: 180px; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: #f5f2ea; display: grid; place-items: center; align-content: center; gap: 6px; cursor: pointer; text-align: center; }
.upload-dropzone:hover { border-color: var(--olive); }
.upload-dropzone input { position: absolute; opacity: 0; pointer-events: none; }
.upload-icon { font-size: 34px; color: var(--olive); }
.upload-dropzone small { color: var(--ink-soft); }
.severity-picker { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.severity-picker legend { margin-bottom: 8px; }
.severity-choice input { position: absolute; opacity: 0; }
.severity-choice > span { height: 100%; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; border: 1px solid var(--line); border-radius: 11px; padding: 12px; cursor: pointer; }
.severity-choice i { width: 12px; height: 12px; border-radius: 50%; margin-top: 3px; }
.choice-high i { background: var(--high); }
.choice-medium i { background: var(--medium); }
.choice-normal i { background: var(--normal); }
.severity-choice b { font-size: 13px; }
.severity-choice small { grid-column: 2; color: var(--ink-soft); font-size: 10px; line-height: 1.4; }
.severity-choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #f5f2ea; }

/* Client view */
.public-shell { min-height: 100vh; }
.public-header { height: 72px; display: flex; justify-content: space-between; align-items: center; max-width: 1560px; margin: auto; padding: 0 30px; }
.readonly-badge { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; font-size: 11px; color: var(--ink-soft); background: var(--panel); }
.public-main { padding: 16px 30px 70px; }
.public-footer { max-width: 1500px; margin: auto; padding: 24px 0 45px; border-top: 1px solid var(--line); color: var(--ink-soft); display: flex; justify-content: space-between; gap: 18px; font-size: 12px; }

/* Feedback */
.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; }
.toast { max-width: 360px; background: var(--ink); color: #fff; border-radius: 11px; padding: 12px 15px; box-shadow: var(--shadow); font-size: 13px; animation: toast-in .2s ease-out; }
.toast-error { background: #a9413e; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1050px) {
  .login-page { grid-template-columns: 1fr; }
  .login-preview { display: none; }
  .login-card { min-height: 100vh; }
  .audit-workspace { grid-template-columns: minmax(0, 1fr) 290px; }
  .admin-main { padding: 28px; }
}

@media (max-width: 820px) {
  .admin-shell { display: block; }
  .sidebar { height: auto; position: relative; padding: 12px 16px; flex-direction: row; align-items: center; overflow: visible; }
  .sidebar-brand { padding: 0 !important; }
  .sidebar > .button, .sidebar-nav, .sidebar-footer span { display: none; }
  .sidebar-footer { margin: 0 0 0 auto; padding: 0; border: 0; }
  .audit-hero { grid-template-columns: 1fr; }
  .audit-stats { grid-template-columns: repeat(4, 1fr); }
  .audit-workspace { grid-template-columns: 1fr; }
  .note-inspector { position: fixed; top: auto; bottom: 12px; left: 12px; right: 12px; z-index: 30; min-height: 0; max-height: 55vh; border-color: var(--line-strong); box-shadow: 0 22px 70px rgba(31,31,25,.25); }
  .inspector-empty { min-height: 95px; padding: 16px 22px; display: grid; grid-template-columns: auto 1fr; text-align: left; gap: 0 14px; }
  .inspector-empty > span { grid-row: 1 / 3; }
  .inspector-empty h3 { margin: 0; }
  .inspector-empty p { margin-top: 3px; }
  .public-main { padding-bottom: 180px; }
  .filter-bar > .button { width: 100%; margin-left: 0; }
}

@media (max-width: 620px) {
  .admin-main, .public-main { padding: 18px 13px 150px; }
  .page-header { align-items: stretch; flex-direction: column; }
  .page-header .button { width: 100%; }
  .audit-hero { padding: 22px 18px; }
  .audit-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { justify-content: stretch; }
  .hero-actions .button { width: 100%; }
  .filter-bar { position: relative; top: auto; }
  .filter-group + .filter-group { border-left: 0; padding-left: 0; }
  .screenshot-header { flex-direction: column; }
  .screenshot-actions { width: 100%; flex-wrap: wrap; }
  .screenshot-actions .button { flex: 1; }
  .note-marker { width: 28px; height: 28px; border-width: 2px; font-size: 10px; }
  .field-grid, .severity-picker { grid-template-columns: 1fr; }
  .dialog-header, .dialog-body, .dialog-actions { padding-left: 17px; padding-right: 17px; }
  .danger-zone { align-items: stretch; flex-direction: column; }
  .public-header { padding: 0 14px; }
  .readonly-badge { font-size: 9px; }
  .public-footer { margin: 0 14px; flex-direction: column; }
  .login-card { padding: 34px 22px; }
}

@media print {
  .sidebar, .public-header, .hero-actions, .filter-bar, .screenshot-actions, .placement-banner, .public-footer { display: none !important; }
  .admin-shell { display: block; }
  .admin-main, .public-main { padding: 0; }
  .audit-hero, .screenshot-card, .note-inspector { box-shadow: none; }
  .audit-workspace { display: block; }
  .note-inspector { display: none; }
  .screenshot-card { break-inside: avoid; margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
