:root {
  --ink: #071416;
  --ink-2: #0d2225;
  --paper: #f6f2eb;
  --white: #fffaf2;
  --orange: #ff6a13;
  --orange-dark: #a6420b;
  --line: rgba(7, 20, 22, .14);
  --muted: #657071;
  --green: #2f7d5b;
  --yellow: #b36a00;
  --red: #a5372f;
  --shadow: 0 18px 50px rgba(7, 20, 22, .08);
  --sidebar: 260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, video { max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(255, 106, 19, .4); outline-offset: 3px; }
.sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--ink); color: var(--white); display: flex; flex-direction: column; min-height: 100vh; padding: 34px 26px 28px; position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 20; }
.brand, .auth-brand { align-items: center; display: inline-flex; gap: 13px; font-size: 21px; font-weight: 800; letter-spacing: .06em; }
.brand-mark { align-items: center; background: var(--orange); color: var(--ink); display: inline-flex; font-size: 25px; font-weight: 900; height: 46px; justify-content: center; position: relative; width: 46px; }
.brand-mark::before, .brand-mark::after { border-color: var(--ink); border-style: solid; content: ""; inset: 7px; position: absolute; }
.brand-mark::before { border-width: 2px 0 0 2px; }
.brand-mark::after { border-width: 0 2px 2px 0; }
.brand > span:last-child, .auth-brand > span:last-child { display: grid; gap: 2px; }
.brand small, .auth-brand small { color: rgba(255, 250, 242, .48); font-family: Consolas, monospace; font-size: 8px; font-weight: 500; letter-spacing: .18em; }
.sidebar nav { display: grid; gap: 5px; margin-top: 70px; }
.nav-label { color: rgba(255, 250, 242, .35); font-family: Consolas, monospace; font-size: 9px; letter-spacing: .16em; margin: 26px 14px 8px; text-transform: uppercase; }
.sidebar nav a { align-items: center; border: 1px solid transparent; color: rgba(255, 250, 242, .65); display: flex; font-size: 13px; font-weight: 700; gap: 14px; min-height: 48px; padding: 0 14px; transition: .2s ease; }
.sidebar nav a span { color: rgba(255, 106, 19, .68); font-family: Consolas, monospace; font-size: 9px; }
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .08); color: var(--white); }
.sidebar nav a.active { box-shadow: inset 3px 0 var(--orange); }
.sidebar-foot { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: auto; padding-top: 22px; }
.user-chip { align-items: center; display: flex; gap: 11px; }
.user-chip > span { align-items: center; background: var(--orange); color: var(--ink); display: flex; font-size: 13px; font-weight: 800; height: 34px; justify-content: center; width: 34px; }
.user-chip div { display: grid; gap: 2px; min-width: 0; }
.user-chip strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip small { color: rgba(255, 250, 242, .48); font-size: 10px; }
.text-button { background: none; border: 0; color: rgba(255, 250, 242, .5); cursor: pointer; font-size: 10px; margin: 14px 0 0 44px; padding: 0; text-transform: uppercase; }
.text-button:hover { color: var(--orange); }
.mobile-header { display: none; }
.main-content { grid-column: 2; min-width: 0; padding: clamp(32px, 5vw, 76px) clamp(22px, 5vw, 78px) 90px; }

.eyebrow { color: var(--orange); font-family: Consolas, monospace; font-size: 10px; font-weight: 700; letter-spacing: .16em; margin: 0 0 18px; text-transform: uppercase; }
.eyebrow.dark { color: var(--orange-dark); }
.page-header { align-items: end; display: flex; gap: 50px; justify-content: space-between; margin-bottom: 44px; }
.page-header > div:first-child { max-width: 760px; }
.page-header.narrow > div:first-child { max-width: 850px; }
.page-header h1, .project-hero h1, .success-panel h1, .error-page h1 { font-size: clamp(42px, 6vw, 82px); letter-spacing: -.065em; line-height: .93; margin: 0; }
.page-header h1 em { color: var(--orange); font-style: normal; }
.page-header > div > p:last-child { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 22px 0 0; max-width: 620px; }
.header-actions, .form-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.primary-button, .secondary-button { align-items: center; border: 1px solid transparent; cursor: pointer; display: inline-flex; font-size: 12px; font-weight: 800; gap: 18px; justify-content: center; letter-spacing: .01em; min-height: 50px; padding: 0 19px; transition: .2s ease; }
.primary-button { background: var(--orange); color: var(--ink); }
.primary-button:hover { background: #ff7c31; transform: translateY(-1px); }
.secondary-button { background: transparent; border-color: rgba(7, 20, 22, .25); color: var(--ink); }
.secondary-button:hover { border-color: var(--ink); }
.primary-button.full { width: 100%; }
.text-link { border-bottom: 1px solid var(--orange); font-size: 12px; font-weight: 800; padding-bottom: 3px; }
.text-link:hover { color: var(--orange-dark); }

.metric-grid { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); margin-bottom: 56px; }
.metric-grid article { background: #ebe6dd; min-height: 150px; padding: 24px; position: relative; }
.metric-grid article::before { background: var(--orange); content: ""; height: 2px; left: 24px; position: absolute; top: 0; width: 28px; }
.metric-grid span, .metric-grid small { color: var(--muted); display: block; font-family: Consolas, monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.metric-grid strong { display: block; font-size: 48px; letter-spacing: -.06em; line-height: 1; margin: 25px 0 7px; }
.section-block, .content-section { margin-top: 58px; }
.section-title { align-items: end; border-bottom: 1px solid var(--line); display: flex; gap: 30px; justify-content: space-between; margin-bottom: 22px; padding-bottom: 19px; }
.section-title .eyebrow { margin-bottom: 10px; }
.section-title h2 { font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -.045em; line-height: 1; margin: 0; }
.section-title > span { color: var(--muted); font-family: Consolas, monospace; font-size: 10px; text-transform: uppercase; }
.search-field input { background: transparent; border: 0; border-bottom: 1px solid rgba(7, 20, 22, .35); color: var(--ink); font-size: 12px; min-width: 245px; padding: 10px 0; }
.search-field input::placeholder { color: #7b8585; }
.project-list { display: grid; }
.project-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 20px; grid-template-columns: 42px minmax(240px, 1.5fr) minmax(150px, .7fr) 75px 85px 24px; min-height: 100px; padding: 14px 12px; transition: .2s ease; }
.project-row:hover { background: #ebe6dd; padding-left: 18px; }
.project-index { color: var(--orange-dark); font-family: Consolas, monospace; font-size: 10px; }
.project-primary { display: grid; gap: 7px; }
.project-primary strong { font-size: 17px; }
.project-primary small, .project-count small { color: var(--muted); font-size: 11px; }
.project-count { display: grid; gap: 4px; }
.project-count strong { font-size: 19px; }
.row-arrow { color: var(--orange-dark); font-size: 18px; }
.status { align-items: center; display: inline-flex; font-size: 10px; font-weight: 800; gap: 7px; letter-spacing: .03em; text-transform: uppercase; }
.status i { background: currentColor; border-radius: 50%; height: 7px; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 15%, transparent); width: 7px; }
.status-planned { color: #627073; }
.status-captured { color: #316989; }
.status-processing { color: var(--yellow); }
.status-delivered { color: var(--green); }
.client-grid { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); }
.client-grid article { align-items: center; background: #ebe6dd; display: grid; gap: 12px; grid-template-columns: 38px 1fr auto; min-height: 84px; padding: 18px; }
.client-grid article > span { align-items: center; background: var(--ink); color: var(--white); display: flex; font-size: 13px; font-weight: 800; height: 38px; justify-content: center; }
.client-grid article > div { display: grid; gap: 4px; min-width: 0; }
.client-grid strong { font-size: 13px; }
.client-grid small { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-grid b { color: var(--muted); font-size: 9px; }
.empty-state, .inline-empty { border: 1px dashed rgba(7, 20, 22, .25); padding: 50px; }
.empty-state span, .inline-empty > span { color: var(--orange-dark); font-family: Consolas, monospace; font-size: 10px; }
.empty-state h3, .inline-empty h3 { font-size: 25px; margin: 18px 0 10px; }
.empty-state p, .inline-empty p { color: var(--muted); line-height: 1.6; margin: 0 0 24px; }
.flash, .form-error { border-left: 3px solid var(--green); background: #e1ece6; color: #1e5c41; font-size: 12px; margin-bottom: 24px; padding: 14px 16px; }
.flash-error, .form-error { background: #f3dfdd; border-left-color: var(--red); color: #7d2823; }

.auth-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(430px, .85fr); min-height: 100vh; }
.auth-visual { background-color: var(--ink); background-image: linear-gradient(145deg, rgba(255, 106, 19, .12), transparent 32%), repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(255, 255, 255, .035) 80px); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(35px, 5vw, 70px); }
.auth-copy { max-width: 700px; }
.auth-copy h1 { font-size: clamp(52px, 7vw, 105px); letter-spacing: -.075em; line-height: .86; margin: 0; }
.auth-copy h1 em { color: var(--orange); font-style: normal; }
.auth-copy > p:last-child { color: rgba(255, 250, 242, .67); font-size: 16px; line-height: 1.7; margin: 28px 0 0; max-width: 560px; }
.auth-proof { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.auth-proof span { color: rgba(255, 250, 242, .55); font-family: Consolas, monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.auth-proof span::before { color: var(--orange); content: "✓ "; }
.auth-form-panel { align-items: center; background: var(--paper); display: flex; justify-content: center; min-height: 100vh; padding: 45px; }
.auth-form { max-width: 440px; width: 100%; }
.auth-form h2 { font-size: 42px; letter-spacing: -.055em; margin: 0 0 14px; }
.auth-form > p:not(.eyebrow), .privacy-note { color: var(--muted); display: block; font-size: 13px; line-height: 1.6; }
.auth-form label, .editor-card label, .admin-editor label, .success-panel label, .comment-form label { color: #394849; display: grid; font-size: 10px; font-weight: 800; gap: 8px; letter-spacing: .06em; margin-top: 20px; text-transform: uppercase; }
input, textarea, select { background: rgba(255, 255, 255, .55); border: 1px solid rgba(7, 20, 22, .2); border-radius: 0; color: var(--ink); min-height: 50px; padding: 12px 14px; width: 100%; }
textarea { line-height: 1.55; resize: vertical; }
input:focus, textarea:focus, select:focus { background: #fff; border-color: var(--orange); outline: none; }
.auth-form .primary-button { margin-top: 24px; }
.privacy-note { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.demo-box { background: #ebe6dd; display: grid; font-family: Consolas, monospace; font-size: 9px; gap: 5px; line-height: 1.45; margin-top: 20px; padding: 14px; }
.demo-box strong { color: var(--orange-dark); }

.editor-card { background: #ebe6dd; box-shadow: var(--shadow); max-width: 1040px; padding: clamp(24px, 5vw, 60px); }
.editor-card-small { max-width: 650px; }
.form-grid { display: grid; gap: 0 22px; grid-template-columns: 1fr 1fr; }
.form-grid .wide { grid-column: 1 / -1; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 30px 0 0; padding: 25px 0 0; }
legend { color: #394849; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.check-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.check-card { align-items: center; background: rgba(255, 255, 255, .5); border: 1px solid transparent; cursor: pointer; display: flex !important; gap: 12px !important; margin: 0 !important; min-height: 66px; padding: 12px; text-transform: none !important; }
.check-card:has(input:checked) { border-color: var(--orange); background: #fff; }
.check-card input { accent-color: var(--orange); height: 18px; min-height: auto; padding: 0; width: 18px; }
.check-card span { display: grid; gap: 4px; }
.check-card small { color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.form-actions { border-top: 1px solid var(--line); justify-content: flex-end; margin-top: 30px; padding-top: 22px; }
.success-panel { max-width: 760px; padding-top: 5vh; }
.success-mark { align-items: center; background: var(--orange); display: flex; font-size: 28px; font-weight: 900; height: 64px; justify-content: center; margin-bottom: 40px; width: 64px; }
.success-panel > p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 650px; }
.copy-field { display: grid; grid-template-columns: 1fr auto; }
.copy-field button { background: var(--ink); border: 0; color: var(--white); cursor: pointer; font-size: 11px; font-weight: 800; padding: 0 18px; }

.back-link { color: var(--muted); display: inline-block; font-size: 11px; font-weight: 700; margin-bottom: 25px; }
.back-link:hover { color: var(--orange-dark); }
.project-hero { background: var(--ink); color: var(--white); display: grid; gap: 60px; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); margin: 0 calc(clamp(22px, 5vw, 78px) * -1); min-height: 470px; padding: clamp(45px, 7vw, 90px) clamp(22px, 5vw, 78px); }
.project-hero h1 { max-width: 940px; }
.project-hero > div:first-child > p:last-child { color: rgba(255, 250, 242, .64); line-height: 1.7; margin: 25px 0 0; max-width: 680px; }
.project-hero-meta { align-self: end; border-left: 1px solid rgba(255, 255, 255, .15); padding-left: 28px; }
.project-hero-meta .status { margin-bottom: 28px; }
.project-hero-meta dl { display: grid; margin: 0 0 24px; }
.project-hero-meta dl > div { border-top: 1px solid rgba(255, 255, 255, .11); display: grid; gap: 5px; grid-template-columns: 1fr 1.1fr; padding: 12px 0; }
.project-hero-meta dt { color: rgba(255, 250, 242, .45); font-family: Consolas, monospace; font-size: 9px; text-transform: uppercase; }
.project-hero-meta dd { font-size: 12px; font-weight: 700; margin: 0; text-align: right; }
.project-jump { background: #e7e1d7; display: flex; gap: 0; margin: 0 calc(clamp(22px, 5vw, 78px) * -1); overflow-x: auto; padding: 0 clamp(22px, 5vw, 78px); position: sticky; top: 0; z-index: 10; }
.project-jump a { border-right: 1px solid var(--line); color: var(--muted); flex: 0 0 auto; font-family: Consolas, monospace; font-size: 9px; font-weight: 700; min-height: 52px; padding: 20px 24px; text-transform: uppercase; }
.project-jump a:first-child { border-left: 1px solid var(--line); }
.project-jump a:hover { background: var(--orange); color: var(--ink); }
.admin-strip { align-items: center; background: var(--orange); display: grid; gap: 18px; grid-template-columns: 1fr auto auto auto; margin: 24px 0; padding: 14px 18px; }
.admin-strip > div { display: grid; gap: 3px; }
.admin-strip > div span { font-family: Consolas, monospace; font-size: 8px; letter-spacing: .12em; }
.admin-strip > div strong { font-size: 13px; }
.admin-strip form { display: flex; }
.admin-strip select, .admin-strip button { background: var(--ink); border: 0; color: var(--white); font-size: 10px; min-height: 40px; }
.admin-strip select { min-width: 170px; }
.admin-strip button { border-left: 1px solid rgba(255, 255, 255, .2); cursor: pointer; font-weight: 800; padding: 0 14px; width: auto; }
.admin-strip > a { border-bottom: 1px solid var(--ink); font-size: 10px; font-weight: 800; padding-bottom: 3px; }
.project-overview { align-items: start; display: grid; gap: 50px; grid-template-columns: .55fr 1.45fr; padding: 70px 0 20px; }
.project-overview h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -.06em; line-height: .95; margin: 0; }
.overview-grid { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); }
.overview-grid article { background: #e8e3da; min-height: 150px; padding: 20px; }
.overview-grid span { color: var(--orange-dark); font-family: Consolas, monospace; font-size: 9px; }
.overview-grid strong { display: block; font-size: 42px; letter-spacing: -.05em; margin: 28px 0 5px; }
.overview-grid p { color: var(--muted); font-size: 11px; margin: 0; }
.media-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.media-card { background: #e7e1d7; margin: 0; min-width: 0; }
.media-card > a { display: block; height: 0; overflow: hidden; padding-bottom: 68%; position: relative; }
.media-card img { height: 100%; inset: 0; object-fit: cover; position: absolute; transition: transform .45s ease; width: 100%; }
.media-card:hover img { transform: scale(1.025); }
.media-card figcaption { align-items: center; display: flex; gap: 16px; justify-content: space-between; min-height: 72px; padding: 13px 15px; }
.media-card figcaption div { display: grid; gap: 5px; min-width: 0; }
.media-card figcaption strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-card figcaption small { color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-card-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.media-card-actions form { margin: 0; }
.media-card-actions a, .media-card-actions button { align-items: center; background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer; display: flex; font-size: 16px; height: 34px; justify-content: center; padding: 0; text-decoration: none; width: 34px; }
.media-card-actions button { border-color: #cdb7b1; color: var(--red); }
.media-card-actions button:hover, .media-card-actions button:focus-visible { background: var(--red); color: var(--white); }
.video-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
.video-card { background: var(--ink); color: var(--white); }
.video-card video { aspect-ratio: 16 / 9; background: #000; display: block; object-fit: contain; width: 100%; }
.video-card > div { align-items: center; display: grid; gap: 12px; grid-template-columns: 1fr auto auto; padding: 16px; }
.video-card strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-card span, .video-card a { color: rgba(255, 250, 242, .55); font-size: 9px; }
.video-card a { border-bottom: 1px solid var(--orange); color: var(--white); padding-bottom: 2px; }
.finding-list { display: grid; }
.finding-list > article { align-items: start; border-bottom: 1px solid var(--line); display: grid; gap: 22px; grid-template-columns: 42px minmax(0, 180px) minmax(0, 1fr); min-height: 155px; padding: 22px 0; }
.finding-list > article:not(:has(img)) { grid-template-columns: 42px minmax(0, 1fr); }
.finding-number { color: var(--orange-dark); font-family: Consolas, monospace; font-size: 10px; padding-top: 6px; }
.finding-list img { aspect-ratio: 1.45; height: auto; object-fit: cover; width: 100%; }
.finding-head { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; }
.finding-head small { color: var(--muted); font-family: Consolas, monospace; font-size: 9px; text-transform: uppercase; }
.severity { border: 1px solid currentColor; font-size: 8px; font-weight: 800; padding: 5px 7px; text-transform: uppercase; }
.severity-info { color: #426a7d; }
.severity-attention { color: var(--yellow); }
.severity-urgent { color: var(--red); }
.finding-list h3 { font-size: 20px; margin: 15px 0 7px; }
.finding-list p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0; max-width: 760px; }
.document-list { display: grid; }
.document-list > a { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: 56px 1fr auto; min-height: 86px; padding: 12px 5px; }
.document-list > a:hover { background: #ebe6dd; }
.document-icon { align-items: center; background: var(--ink); color: var(--white); display: flex; font-family: Consolas, monospace; font-size: 9px; height: 56px; justify-content: center; }
.document-list > a > div { display: grid; gap: 5px; }
.document-list strong { font-size: 13px; }
.document-list small { color: var(--muted); font-size: 9px; }
.document-list b { color: var(--orange-dark); font-size: 10px; }
.originals { border-top: 1px solid var(--line); margin-top: 35px; padding-top: 25px; }
.originals h3 { font-size: 18px; }
.originals a { align-items: center; border-top: 1px dotted var(--line); display: grid; font-size: 11px; grid-template-columns: 1fr auto 20px; padding: 12px 4px; }
.originals small { color: var(--muted); }
.comment-layout { display: grid; gap: 45px; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); }
.comment-list { display: grid; gap: 1px; }
.comment-list article { background: #ebe6dd; display: grid; gap: 14px; grid-template-columns: 38px 1fr; padding: 18px; }
.comment-list article > span { align-items: center; background: var(--ink); color: var(--white); display: flex; font-size: 12px; font-weight: 800; height: 38px; justify-content: center; }
.comment-list header { align-items: center; display: flex; justify-content: space-between; }
.comment-list header strong { font-size: 12px; }
.comment-list header small { color: var(--muted); font-size: 9px; }
.comment-list p { color: #4b5859; font-size: 12px; line-height: 1.6; margin: 8px 0 0; white-space: pre-line; }
.comment-form { background: #e5dfd5; height: fit-content; padding: 22px; }
.comment-form label { margin-top: 0; }
.comment-form button { margin-top: 14px; }
.admin-workspace { background: var(--ink); color: var(--white); display: grid; gap: 1px; grid-template-columns: 1fr 1fr; margin: 75px calc(clamp(22px, 5vw, 78px) * -1) -90px; }
.admin-editor { padding: clamp(32px, 5vw, 65px); }
.admin-editor + .admin-editor { border-left: 1px solid rgba(255, 255, 255, .11); }
.admin-editor h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.05em; margin: 0; }
.admin-editor > p:not(.eyebrow) { color: rgba(255, 250, 242, .6); font-size: 12px; line-height: 1.65; max-width: 560px; }
.admin-editor label { color: rgba(255, 250, 242, .62); }
.admin-editor input, .admin-editor textarea, .admin-editor select { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: var(--white); }
.admin-editor select option { color: var(--ink); }
.admin-editor input::placeholder, .admin-editor textarea::placeholder { color: rgba(255, 250, 242, .35); }
.upload-zone { align-items: center; border: 1px dashed rgba(255, 255, 255, .3); cursor: pointer; justify-items: center; min-height: 150px; padding: 30px; text-align: center; }
.upload-zone input { height: 1px; opacity: 0; padding: 0; position: absolute; width: 1px; }
.upload-zone span { color: var(--white); font-size: 12px; letter-spacing: 0; text-transform: none; }
.upload-zone small { color: rgba(255, 250, 242, .44); font-size: 9px; }
.admin-editor button { margin-top: 20px; }
.error-page { align-items: start; display: flex; flex-direction: column; justify-content: center; min-height: 70vh; max-width: 760px; }
.error-page > span { color: var(--orange-dark); font-family: Consolas, monospace; font-size: 70px; font-weight: 800; }
.error-page p { color: var(--muted); line-height: 1.7; }
.error-page .primary-button { margin-top: 20px; }
.error-page.standalone { margin: auto; padding: 40px; }

@media (max-width: 1150px) {
  :root { --sidebar: 225px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .project-row { grid-template-columns: 36px minmax(220px, 1fr) minmax(140px, .7fr) 68px 20px; }
  .project-row .project-count:nth-of-type(2) { display: none; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .project-overview { grid-template-columns: 1fr; }
  .admin-strip { grid-template-columns: 1fr auto; }
  .admin-strip > a { display: none; }
}

@media (max-width: 860px) {
  .app-shell { display: block; }
  .mobile-header { align-items: center; background: var(--ink); color: var(--white); display: flex; height: 70px; justify-content: space-between; padding: 0 18px; position: sticky; top: 0; z-index: 30; }
  .mobile-header .brand-mark { height: 38px; width: 38px; }
  .mobile-header .brand { font-size: 17px; }
  .menu-button { background: none; border: 0; display: grid; gap: 5px; padding: 10px; }
  .menu-button span { background: var(--white); display: block; height: 1px; width: 25px; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; width: min(310px, 90vw); }
  .sidebar.open { transform: translateX(0); }
  .desktop-brand { display: none; }
  .sidebar nav { margin-top: 35px; }
  .main-content { padding: 42px 22px 70px; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { min-height: 52vh; }
  .auth-form-panel { min-height: auto; padding: 60px 24px; }
  .project-hero { grid-template-columns: 1fr; margin-inline: -22px; padding-inline: 22px; }
  .project-hero-meta { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .15); padding: 24px 0 0; }
  .project-jump { margin-inline: -22px; padding-inline: 22px; top: 70px; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .comment-layout { grid-template-columns: 1fr; }
  .admin-workspace { grid-template-columns: 1fr; margin: 65px -22px -70px; }
  .admin-editor + .admin-editor { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .11); }
}

@media (max-width: 620px) {
  .page-header h1, .project-hero h1, .success-panel h1, .error-page h1 { font-size: 42px; }
  .header-actions, .header-actions > *, .form-actions, .form-actions > * { width: 100%; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid article { min-height: 132px; padding: 18px; }
  .metric-grid strong { font-size: 38px; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .search-field, .search-field input { min-width: 0; width: 100%; }
  .project-row { gap: 12px; grid-template-columns: 28px 1fr 20px; padding: 16px 4px; }
  .project-row .status { grid-column: 2; }
  .project-row .project-count { display: none; }
  .client-grid { grid-template-columns: 1fr; }
  .form-grid, .check-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .editor-card { margin-inline: -22px; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .media-grid, .video-grid { grid-template-columns: 1fr; }
  .finding-list > article, .finding-list > article:not(:has(img)) { grid-template-columns: 30px 1fr; }
  .finding-list img { grid-column: 2; }
  .finding-list article > div { grid-column: 2; }
  .document-list > a { grid-template-columns: 48px 1fr; }
  .document-list b { display: none; }
  .admin-strip { align-items: stretch; grid-template-columns: 1fr; }
  .admin-strip form { display: grid; gap: 1px; grid-template-columns: 1fr; }
  .auth-visual { min-height: 560px; }
  .auth-copy h1 { font-size: 52px; }
  .auth-proof { display: grid; }
  .copy-field { grid-template-columns: 1fr; }
  .copy-field button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
