/* McCord Design proofing portal styles.
   Colors are taken from mccorddesign.com: orange #DF6235, charcoal #3A3636,
   sage #CADFDC, off-white #FBFBF6. Body type is Outfit, a close free match for
   the site's geometric sans. */

:root {
  --bg: #FFFFFF; --panel: #FBFBF6; --card: #FFFFFF; --ink: #3A3636; --mute: #6F6A67; --line: #E6E4DD;
  --accent: #DF6235; --sage: #CADFDC; --sage-ink: #3A3636; --teal: #2F7A70; --draft: #9A938E; --print: #7FA9A3;
  --shade: rgba(58, 54, 54, .45);
  --f-body: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1A19; --panel: #232120; --card: #292625; --ink: #EEEBE7; --mute: #ABA49F; --line: #3B3735;
    --accent: #EE7346; --sage: #2B3B39; --sage-ink: #EEEBE7; --teal: #5DB8AA; --draft: #8E8782; --print: #6E9C96;
    --shade: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5; }
img, video, canvas { max-width: 100%; }
h1, h2, h3, p, dl, dd, dt, ul, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
ul { padding: 0; list-style: none; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, select, textarea, button { font: inherit; color: inherit; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: var(--panel); padding: 1px 4px; border-radius: 3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── layout shell ── */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.site-head { top: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: #DF6235; }
body:has(.login) { background: #DF6235; }
.login-card { width: 100%; max-width: 440px; background: var(--card); border-radius: 8px; padding: 32px 28px; }
.drawer { background: var(--card); padding: 20px max(20px, env(safe-area-inset-right, 0px)) 20px 20px; }
.modal-pad { padding: 16px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); max-width: calc(100vw - 32px); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 60; box-shadow: 0 6px 20px rgba(0,0,0,.18); }

/* ── components ── */
.label { font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.tab { font-variant-numeric: tabular-nums; }
.inp { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; width: 100%; display: block; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 16px; background: transparent; font-weight: 600; font-size: 14px; white-space: nowrap; }
.btn:hover { background: var(--panel); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn.pri:hover { filter: brightness(1.06); }
.btn.ok { background: var(--teal); border-color: var(--teal); color: var(--bg); }
.btn.ghost { border-color: var(--line); }
.btn.danger { border-color: var(--accent); color: var(--accent); }
.btn.sm { padding: 3px 12px; font-size: 13px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.stage { background: color-mix(in srgb, var(--accent) 7%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 4px; }
.menu { box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.subpanel { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.quote { color: var(--accent); font-size: 40px; line-height: .6; height: 18px; display: block; font-family: Georgia, serif; }
.stat { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; line-height: 1; }
.ptitle { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -.01em; }
.logo-chip { background: #FFFFFF; border-radius: 4px; padding: 2px 6px; display: inline-flex; }
.seg { display: flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; font-size: 14px; }
.seg button { padding: 4px 12px; font-weight: 600; }
.seg button.on { background: var(--ink); color: var(--bg); }
.tabbtn { padding: 6px 14px; font-weight: 600; border-bottom: 3px solid transparent; color: var(--mute); }
.tabbtn.on { border-color: var(--accent); color: var(--ink); }
.hover-panel:hover { background: var(--panel); }
.chev { transition: transform .15s; }
.chev:hover { background: var(--line); }
.pre-copy { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; max-height: 70vh; font-family: var(--f-body); margin: 0; }
.pre-wrap { white-space: pre-wrap; }
.break-any { overflow-wrap: anywhere; }

/* ── grids ── */
.grid { display: grid; }
.cols-detail { grid-template-columns: minmax(0, 1fr); }
.cols-aside { grid-template-columns: minmax(0, 1fr); }
.cols-newproj { grid-template-columns: minmax(0, 1fr); }
.col-full { grid-column: 1 / -1; }
@media (min-width: 640px) { .cols-newproj { grid-template-columns: 2fr 1fr 1fr 1fr auto; } }
@media (min-width: 1024px) {
  .cols-detail { grid-template-columns: minmax(0, 1fr) 360px; }
  .cols-aside { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 639px) { .hide-sm { display: none; } }

/* ── utilities (a small, hand-picked set) ── */
.flex { display: flex; } .inline-block { display: inline-block; } .block { display: block; }
.flex-wrap { flex-wrap: wrap; } .flex-1 { flex: 1 1 0%; } .shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; } .items-end { align-items: flex-end; } .items-start { align-items: flex-start; } .items-baseline { align-items: baseline; }
.justify-center { justify-content: center; } .justify-end { justify-content: flex-end; }
.place-items-center { place-items: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.gap-x-2 { column-gap: 8px; } .gap-x-3 { column-gap: 12px; } .gap-x-4 { column-gap: 16px; } .gap-x-5 { column-gap: 20px; } .gap-x-6 { column-gap: 24px; } .gap-x-10 { column-gap: 40px; }
.gap-y-1 { row-gap: 4px; } .gap-y-2 { row-gap: 8px; } .gap-y-3 { row-gap: 12px; } .gap-y-4 { row-gap: 16px; }
.space-y-2 > * + * { margin-top: 8px; } .space-y-3 > * + * { margin-top: 12px; } .space-y-4 > * + * { margin-top: 16px; } .space-y-5 > * + * { margin-top: 20px; } .space-y-6 > * + * { margin-top: 24px; }
.min-w-0 { min-width: 0; } .min-w-140 { min-width: min(140px, 100%); } .min-w-160 { min-width: min(160px, 100%); } .min-w-180 { min-width: min(180px, 100%); } .min-w-200 { min-width: min(200px, 100%); } .min-w-220 { min-width: min(220px, 100%); }
.w-full { width: 100%; } .w-px { width: 1px; } .w-2 { width: 8px; } .w-3 { width: 12px; } .w-5 { width: 20px; } .w-6 { width: 24px; }
.h-full { height: 100%; } .h-px { height: 1px; } .h-2 { height: 8px; } .h-3 { height: 12px; } .h-4 { height: 16px; } .h-5 { height: 20px; } .h-6 { height: 24px; }
.max-w-md { max-width: 28rem; } .max-w-4xl { max-width: 56rem; } .max-h-full { max-height: 100%; }
.p-2 { padding: 8px; } .p-3 { padding: 12px; } .p-4 { padding: 16px; } .p-6 { padding: 24px; } .p-8 { padding: 32px; } .p-10 { padding: 40px; }
.px-1 { padding-left: 4px; padding-right: 4px; } .px-3 { padding-left: 12px; padding-right: 12px; } .px-4 { padding-left: 16px; padding-right: 16px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; } .py-2 { padding-top: 8px; padding-bottom: 8px; } .py-3 { padding-top: 12px; padding-bottom: 12px; }
.pt-1 { padding-top: 4px; } .pt-4 { padding-top: 16px; } .pb-1 { padding-bottom: 4px; } .pr-3 { padding-right: 12px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.ml-1 { margin-left: 4px; } .ml-2 { margin-left: 8px; } .ml-auto { margin-left: auto; } .mr-1 { margin-right: 4px; } .mr-auto { margin-right: auto; } .mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; } .absolute { position: absolute; } .fixed { position: fixed; } .sticky { position: sticky; }
.inset-0 { inset: 0; } .inset-y-0 { top: 0; bottom: 0; } .top-0 { top: 0; } .top-2 { top: 8px; } .left-0 { left: 0; } .left-1 { left: 4px; } .right-0 { right: 0; }
.z-10 { z-index: 10; } .z-20 { z-index: 20; } .z-30 { z-index: 30; } .z-50 { z-index: 50; }
.-translate-x-1\/2.-translate-y-1\/2 { transform: translate(-50%, -50%); }
.-translate-x-1\/2.rotate-45 { transform: translateX(-50%) rotate(45deg); }
.overflow-hidden { overflow: hidden; } .overflow-auto { overflow: auto; } .overflow-x-auto { overflow-x: auto; } .overflow-y-auto { overflow-y: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rounded { border-radius: 4px; } .rounded-sm { border-radius: 2px; } .rounded-full { border-radius: 999px; }
.text-left { text-align: left; } .text-center { text-align: center; } .text-right { text-align: right; }
.text-10 { font-size: 10px; } .text-11 { font-size: 11px; } .text-xs { font-size: 12px; line-height: 1.45; } .text-sm { font-size: 14px; }
.text-lg { font-size: 18px; } .text-xl { font-size: 20px; } .text-2xl { font-size: 24px; } .text-3xl { font-size: 30px; }
.font-normal { font-weight: 400; } .font-semibold { font-weight: 600; } .font-bold { font-weight: 700; }
.leading-tight { line-height: 1.2; } .capitalize { text-transform: capitalize; } .underline { text-decoration: underline; }
.text-mute { color: var(--mute); }
.align-middle { vertical-align: middle; }
.cursor-pointer { cursor: pointer; } .cursor-grab { cursor: grab; } .cursor-ew-resize { cursor: ew-resize; }
.select-none { user-select: none; } .select-all { user-select: all; } .touch-none { touch-action: none; } .pointer-events-none { pointer-events: none; }

/* ── full-screen proof ── */
.openable { transition: box-shadow .15s; }
.openable:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.open-hint { position: absolute; right: 8px; bottom: 8px; background: rgba(58,54,54,.82); color: #FFFFFF; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.fullproof { position: fixed; inset: 0; z-index: 70; background: #2A2726; color: #F3F0EC; display: flex; flex-direction: column; }
.fp-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 56px; padding: calc(env(safe-area-inset-top, 0px) + 8px) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); background: #1E1B1A; border-bottom: 1px solid #3B3735; }
.fp-btn { border: 1px solid #55504D; border-radius: 999px; padding: 3px 12px; font-weight: 600; font-size: 13px; color: #F3F0EC; }
.fp-btn:hover { background: #3B3735; } .fp-btn:disabled { opacity: .35; cursor: not-allowed; }
.fp-close { background: #DF6235; border-color: #DF6235; color: #FFFFFF; }
.fp-body { flex: 1; overflow: auto; padding: 12px 16px 160px; display: flex; align-items: flex-start; justify-content: safe center; }
.fp-body > * { margin: 0 auto; }
.fp-composer { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); width: min(380px, calc(100vw - 32px)); background: #FFFFFF; color: #3A3636; border-radius: 8px; padding: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.4); z-index: 71; }
.fp-composer .inp { background: #FFFFFF; color: #3A3636; border-color: #D9D5CF; }
.fp-note { background: #3B3735; color: #F3F0EC; }

/* ── comment checklist ── */
.done-box { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--teal); flex-shrink: 0; cursor: pointer; }
.done-dot { width: 18px; height: 18px; margin-top: 1px; border-radius: 4px; border: 1.5px solid var(--line); flex-shrink: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #FFFFFF; }
.done-dot.on { background: var(--teal); border-color: var(--teal); }
.comment.is-done .comment-text { color: var(--mute); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--mute) 60%, transparent); }
label.comment-text[for] { cursor: pointer; }
