:root {
    --ink: #111111;
    --muted: #686868;
    --quiet: #9a9a9a;
    --line: #dedede;
    --line-soft: #e9e9e9;
    --surface: #ffffff;
    --canvas: #f7f7f7;
    --blue: #2563eb;
    --green: #08783f;
    --green-bg: #e3f8eb;
    --green-line: #a8e8c0;
    --amber: #8d5900;
    --amber-bg: #fff3ce;
    --amber-line: #edcf77;
    --red: #c92727;
    --radius: 18px;
    --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font: 16px/1.5 var(--font-sans); }
button, input, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.eyebrow { margin: 0 0 6px; color: #606060; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.required, .field-error { color: var(--red); }
.field-error { margin: 7px 0 0; font-size: 13px; font-weight: 600; }
.field-help { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; border: 1px solid transparent; border-radius: 14px; font-weight: 650; text-decoration: none; transition: background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease; }
.button-dark { color: #fff; background: #0b0b0b; }
.button-dark:hover { background: #2c2c2c; }
.button-outline { background: #fff; border-color: var(--line); }
.button-outline:hover { border-color: #a9a9a9; }
.button-wide { width: 100%; margin-top: 22px; }
.text-button { min-height: 44px; padding: 0 12px; background: none; border: 0; font-weight: 550; }
.text-button:hover { color: var(--muted); }

/* Admin creation workspace */
.admin-create { background: var(--canvas); }
.create-topbar { min-height: 102px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 38px; background: #fff; border-bottom: 1px solid var(--line); }
.create-title-group, .create-actions { display: flex; align-items: center; gap: 28px; }
.create-title-group h1 { margin: 0; font: 700 32px/1.1 var(--font-display); letter-spacing: -.025em; }
.back-link { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; font-size: 18px; text-decoration: none; white-space: nowrap; }
.back-link span { font-size: 26px; font-weight: 300; }
.create-actions .button-dark { min-width: 152px; }
.created-banner { display: grid; grid-template-columns: minmax(0, .7fr) minmax(480px, 1.3fr); gap: 30px; align-items: center; padding: 26px 40px; background: #effaf3; border-bottom: 1px solid var(--green-line); }
.created-banner h2 { margin: 0 0 4px; font: 700 25px/1.2 var(--font-display); }
.created-banner p { margin: 0; color: var(--muted); }
.created-link-row { display: flex; gap: 10px; }
.created-link-row input { min-width: 0; flex: 1; padding: 0 16px; border: 1px solid var(--green-line); border-radius: 12px; background: #fff; }
.create-workspace { min-height: calc(100vh - 102px); display: grid; grid-template-columns: minmax(440px, 35%) minmax(0, 65%); }
.form-panel { background: #fff; border-right: 1px solid var(--line); }
.form-panel form { padding: 42px 42px 70px; }
.field-block { margin: 0 0 24px; }
.field-block:last-child { margin-bottom: 0; }
.field-block label, .signature-field label { display: block; margin-bottom: 9px; font-weight: 620; }
.field-block input, .field-block textarea, .decision-panel textarea { width: 100%; min-height: 58px; padding: 16px 18px; border: 1px solid #d8d8d8; border-radius: 16px; background: #fff; outline: 0; transition: border-color .18s ease, box-shadow .18s ease; }
.field-block textarea, .decision-panel textarea { min-height: 116px; resize: vertical; }
.field-block input::placeholder, .field-block textarea::placeholder, .decision-panel textarea::placeholder { color: #aaa; }
.field-block input:focus, .field-block textarea:focus, .decision-panel textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.form-section { margin: 34px 0 0; padding: 34px 0 0; border: 0; border-top: 1px solid var(--line); }
.form-section legend { float: left; width: 100%; margin: 0 0 26px; color: #5c5c5c; font-size: 14px; font-weight: 750; letter-spacing: .03em; }
.form-section legend + * { clear: both; }
.form-submit-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.upload-drop { min-height: 136px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 22px; border: 1.5px dashed #c9c9c9; border-radius: 16px; background: #fafafa; text-align: center; transition: border-color .18s ease, background .18s ease; }
.upload-drop:hover { border-color: #777; background: #f5f5f5; }
.upload-drop span:last-child { color: var(--muted); font-size: 13px; }
.upload-icon { font-size: 24px; }
.file-name { margin: 9px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.quiet-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--muted); font-size: 14px; }
.preview-panel { min-width: 0; background: #f7f7f7; }
.preview-toolbar { height: 103px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line); }
.preview-toolbar h2 { margin: 0; font-size: 23px; }
.preview-toggle { display: flex; gap: 4px; padding: 6px; border-radius: 15px; background: #fff; }
.preview-toggle button { width: 48px; height: 48px; border: 0; border-radius: 11px; background: transparent; font-size: 26px; line-height: 1; }
.preview-toggle button.active { color: #fff; background: #0b0b0b; }
.preview-stage { min-height: 900px; display: flex; justify-content: center; align-items: flex-start; padding: 36px clamp(28px, 4vw, 72px) 80px; }
.preview-card { width: min(100%, 790px); overflow: hidden; border: 1px solid #d9d9d9; border-radius: 22px; background: #fff; transition: width .2s ease; }
.preview-card.mobile { width: min(100%, 390px); }
.preview-brand { padding: 28px 32px 26px; border-bottom: 1px solid var(--line); }
.preview-brand h3 { margin: 0; font: 700 24px/1.15 var(--font-display); }
.preview-brand p { margin: 4px 0 0; color: var(--muted); }
.preview-content { padding: 30px 32px; }
.preview-content h4 { margin: 0; font-size: 25px; }
.preview-content > p { margin: 5px 0 24px; color: var(--muted); font-size: 18px; }
.preview-art { aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: #f3f3f3; color: #aaa; }
.preview-art img { width: 100%; height: 100%; object-fit: contain; background: #f3f3f3; }
.preview-art.pdf-selected { padding: 30px; text-align: center; }
.preview-note { margin-top: 24px; padding: 20px; border: 1px solid var(--line-soft); border-radius: 14px; }
.preview-note p { margin: 7px 0 0; color: var(--muted); white-space: pre-wrap; }
.preview-agree { display: flex; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.disabled-preview { color: #6d6d6d; }
.fake-checkbox { width: 22px; height: 22px; flex: 0 0 22px; border: 2px solid #ddd; border-radius: 6px; }
.preview-approval-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 22px; }
.fake-sign, .fake-approve { min-height: 56px; display: grid; place-items: center; border-radius: 14px; }
.fake-sign { border: 2px dashed #ddd; }
.fake-approve { min-width: 160px; padding: 0 20px; background: #f1f1f1; }
.error-summary { margin: 0 0 28px; padding: 18px 20px; border: 1px solid #e7b0b0; border-left: 4px solid var(--red); border-radius: 12px; background: #fff7f7; }
.error-summary h2, .error-summary h3 { margin: 0 0 8px; font-size: 17px; }
.error-summary ul { margin: 0; padding-left: 20px; }
.admin-list { padding: 70px 40px 100px; background: #fafafa; border-top: 1px solid var(--line); }
.list-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.list-heading h2 { margin: 0; font: 700 32px/1.2 var(--font-display); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 18px 20px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
th { color: var(--muted); background: #f6f6f6; font-size: 13px; letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }
td small { display: block; margin-top: 3px; color: var(--muted); }
.proof-order-link { color: var(--ink); font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.proof-order-link:hover, .proof-order-link:focus-visible { color: #555; }
.link-actions { white-space: nowrap; }
.proof-action-buttons { display: flex; align-items: center; gap: 8px; }
.icon-delete-form { margin: 0; }
.icon-action-button, .icon-delete-button { display: inline-grid; width: 44px; height: 44px; place-items: center; border-radius: 11px; cursor: pointer; touch-action: manipulation; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.icon-action-button { border: 1px solid #d1d1d1; background: linear-gradient(180deg, #fafafa 0%, #e4e4e4 100%); color: #343434; }
.icon-action-button:hover, .icon-action-button:focus-visible { border-color: #9e9e9e; box-shadow: 0 2px 5px rgba(0,0,0,.12); color: #161616; }
.icon-delete-button { border: 1px solid #e0a8a8; background: linear-gradient(180deg, #fff6f6 0%, #f7dfdf 100%); color: #aa2929; }
.icon-delete-button:hover, .icon-delete-button:focus-visible { border-color: #c85f5f; background: linear-gradient(180deg, #ffecec 0%, #f3cccc 100%); color: #871414; }
.icon-action-button:active, .icon-delete-button:active { transform: translateY(1px); }
.copy-url-icon, .trash-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.copy-tooltip { position: fixed; z-index: 1002; padding: 7px 10px; border-radius: 8px; background: #222; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; }
.copy-tooltip.is-visible { opacity: 1; transform: translateY(0); }
.delete-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid #dc9999; border-radius: 9px; background: linear-gradient(180deg, #fff5f5 0%, #f7dede 100%); color: #a51d1d; cursor: pointer; font: inherit; font-size: 13px; font-weight: 750; white-space: nowrap; }
.delete-button:hover, .delete-button:focus-visible { border-color: #c85f5f; background: linear-gradient(180deg, #ffecec 0%, #f3cccc 100%); color: #871414; }
.mobile-action-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid #d1d1d1; border-radius: 11px; background: linear-gradient(180deg, #fafafa 0%, #e4e4e4 100%); color: #343434; font-size: 14px; font-weight: 750; text-decoration: none; }
.mobile-delete-form { display: none; }
.notes-cell { position: relative; min-width: 120px; }
.note-button { min-height: 36px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 13px; font-weight: 650; }
.note-button::before { content: ""; width: 11px; height: 11px; margin-right: 7px; border: 1.5px solid currentColor; border-radius: 2px; }
.note-button:hover { border-color: #999; background: #fafafa; }
.note-float { position: fixed; z-index: 1000; width: min(360px, calc(100vw - 24px)); margin: 0; padding: 15px 17px; border: 1px solid #cfcfcf; border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.16); color: #333; font-size: 13px; line-height: 1.45; }
.note-float strong { display: block; margin-bottom: 6px; font-size: 13px; }
.note-float p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.proof-mobile-list { display: none; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 20px; }
.pagination a, .pagination-arrow, .pagination-ellipsis { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: 13px; font-weight: 750; line-height: 1; text-decoration: none; }
.pagination a:hover, .pagination a:focus-visible { border-color: var(--ink); background: #f7f7f7; }
.pagination a.is-current { border-color: var(--ink); background: var(--ink); color: #fff; }
.pagination-ellipsis { min-width: auto; border-color: transparent; }
.no-note { color: #9a9a9a; }
.empty-state { padding: 50px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: center; }
.empty-state h3 { margin: 0 0 5px; font-family: var(--font-display); font-size: 24px; }
.empty-state p { margin: 0; color: var(--muted); }

/* Shared status chips */
.status-pill { display: inline-flex; align-items: center; gap: 7px; width: max-content; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status-pill::before { width: 8px; height: 8px; content: ""; border-radius: 50%; background: currentColor; }
.status-approved { color: var(--green); background: var(--green-bg); }
.status-pending { color: var(--amber); background: var(--amber-bg); }
.status-revision_requested { color: #9f3f12; background: #ffeadf; }
.status-draft { color: #6d3fab; background: #f0e6ff; }
.status-neutral { color: #555; background: #eee; }

/* Public proof */
.public-proof { min-height: 100vh; background: #f8f8f8; }
.public-header { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 20px max(28px, calc((100vw - 1280px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.brand-name { font: 700 24px/1.1 var(--font-display); text-decoration: none; }
.public-header p { margin: 5px 0 0; color: var(--muted); }
.public-header-actions { display: flex; align-items: center; gap: 20px; }
.icon-text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; text-decoration: none; }
.public-main { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 90px; }
.proof-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.proof-heading h1 { max-width: 860px; margin: 0; font: 700 clamp(29px, 3.4vw, 40px)/1.15 var(--font-display); letter-spacing: -.02em; }
.proof-heading p { margin: 8px 0 0; color: var(--muted); font-size: 18px; }
.proof-heading .due-date { font-size: 14px; white-space: nowrap; }
.card { border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.artwork-card { position: relative; min-height: 420px; display: grid; place-items: center; overflow: hidden; padding: clamp(20px, 3vw, 44px); }
.proof-artwork { width: 100%; max-height: 860px; display: block; object-fit: contain; }
.pdf-viewer { width: 100%; height: min(75vh, 850px); border: 0; border-radius: 12px; background: #f1f1f1; }
.pdf-open { position: absolute; right: 24px; bottom: 24px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.94); font-size: 14px; font-weight: 650; text-decoration: none; }
.customer-note { margin-top: 28px; padding: 30px 32px; }
.customer-note h2 { margin: 0 0 10px; font-size: 17px; }
.customer-note p { margin: 0; color: #5d5d5d; white-space: normal; overflow-wrap: anywhere; }
.decision-card { margin-top: 28px; padding: clamp(28px, 4vw, 48px); }
.decision-intro { max-width: 740px; }
.decision-intro h2 { margin: 0 0 10px; font: 700 30px/1.2 var(--font-display); }
.decision-intro > p:last-child { margin: 0 0 28px; color: var(--muted); }
.decision-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 0; border: 0; }
.decision-choice { min-height: 96px; display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .18s ease, background-color .18s ease; }
.decision-choice:has(input:checked) { border-color: var(--blue); background: #f5f8ff; box-shadow: 0 0 0 1px var(--blue); }
.decision-choice input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); }
.choice-copy { display: block; }
.choice-copy strong, .choice-copy small { display: block; }
.choice-copy strong { font-size: 17px; }
.choice-copy small { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.decision-panel { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.decision-panel > label:not(.agreement-check) { display: block; margin-bottom: 9px; font-weight: 650; }
.decision-panel textarea { width: 100%; }
.agreement-check { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; }
.agreement-check > input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; accent-color: var(--blue); }
.agreement-link { display: inline; padding: 0; border: 0; background: none; text-decoration: underline; font: inherit; cursor: pointer; }
.signature-field { margin-top: 28px; }
.signature-label-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 9px; }
.signature-label-row label { margin: 0; }
.signature-label-row button { min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--muted); text-decoration: underline; }
#signature-pad { width: 100%; height: 210px; display: block; border: 1.5px dashed #aaa; border-radius: 16px; background: #fff; cursor: crosshair; touch-action: none; }
.legal-name-field { margin-top: 24px; }
.response-card { margin-top: 28px; padding: clamp(28px, 4vw, 44px); border-radius: 20px; }
.approved-card { border: 1px solid var(--green-line); background: #eafaf0; }
.revision-card { border: 1px solid var(--amber-line); background: #fff9e8; }
.response-title { display: flex; gap: 16px; align-items: flex-start; }
.response-title h2 { margin: 0; font: 700 28px/1.2 var(--font-display); }
.response-title p { margin: 4px 0 0; color: #4f6155; }
.response-icon { width: 32px; height: 32px; display: grid; flex: 0 0 32px; place-items: center; border: 2px solid currentColor; border-radius: 50%; color: var(--green); font-weight: 800; }
.revision-card .response-icon { color: var(--amber); }
.approval-details { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 42px; margin: 30px 0 0; padding: 28px 0; border-top: 1px solid rgba(8,120,63,.2); border-bottom: 1px solid rgba(8,120,63,.2); }
.approval-details div { min-width: 0; }
.approval-details dt { margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.approval-details dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.approval-details .signature-record { grid-column: 1 / -1; }
.signature-record img { max-width: 320px; max-height: 100px; display: block; padding: 8px 18px; border-radius: 8px; background: #fff; object-fit: contain; }
.agreement-record { margin: 20px 0 0; }
.after-approval-print { display: flex; justify-content: center; margin-top: 22px; }
.recorded-comment { margin-top: 26px; padding: 22px; border: 1px solid rgba(141,89,0,.22); border-radius: 14px; background: #fff; }
.recorded-comment h3 { margin: 0 0 8px; font-size: 15px; }
.recorded-comment p { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.locked-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.agreement-modal { width: min(920px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 24px 80px rgba(0,0,0,.24); }
.agreement-modal::backdrop { background: rgba(0,0,0,.56); }
.modal-bar { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding: 25px 28px; border-bottom: 1px solid var(--line); }
.modal-bar h2 { max-width: 720px; margin: 0; font: 700 25px/1.2 var(--font-display); }
.modal-close { width: 46px; height: 46px; flex: 0 0 46px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 28px; line-height: 1; }
.agreement-scroll { max-height: calc(100vh - 220px); overflow-y: auto; padding: 32px clamp(24px, 5vw, 60px) 50px; }
.agreement-scroll h2, .print-agreement h2 { margin: 4px 0 24px; font: 700 25px/1.25 var(--font-display); }
.agreement-scroll h3, .print-agreement h3 { margin: 30px 0 10px; font: 700 19px/1.25 var(--font-display); }
.agreement-scroll h4, .print-agreement h4 { margin: 24px 0 8px; font-size: 15px; }
.agreement-scroll p, .print-agreement p { margin: 0 0 15px; white-space: normal; }
.agreement-kicker { font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 28px; border-top: 1px solid var(--line); background: #fafafa; color: var(--muted); font-size: 14px; }
.public-footer { display: flex; justify-content: space-between; gap: 24px; padding: 30px max(28px, calc((100vw - 1280px) / 2)); border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; }
.public-footer p { margin: 0; }
.not-found { max-width: 680px; margin: 70px auto; padding: 60px; text-align: center; }
.not-found h1 { margin: 0 0 10px; font: 700 36px/1.2 var(--font-display); }

/* Public order lookup */
.lookup-page { min-height: 100vh; display: flex; flex-direction: column; background: #f8f8f8; }
.lookup-header { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px max(28px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); background: #fff; }
.lookup-header p { margin: 5px 0 0; color: var(--muted); }
.lookup-support { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 650; }
.lookup-main { width: min(100% - 40px, 680px); flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; margin: 0 auto; padding: 70px 0; }
.lookup-logo { width: 125px; height: 125px; display: block; margin: 0 0 28px; object-fit: contain; }
.lookup-card { width: 100%; padding: clamp(30px, 6vw, 62px); }
.lookup-card h1 { margin: 0 0 13px; font: 700 clamp(32px, 5vw, 46px)/1.12 var(--font-display); letter-spacing: -.02em; }
.lookup-intro { max-width: 520px; margin: 0 0 34px; color: var(--muted); font-size: 17px; }
.lookup-form label { display: block; margin-bottom: 9px; font-weight: 650; }
.lookup-form input { width: 100%; min-height: 60px; padding: 16px 18px; border: 1px solid #d8d8d8; border-radius: 16px; background: #fff; outline: 0; }
.lookup-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.lookup-note { margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.lookup-footer { display: flex; justify-content: space-between; gap: 24px; padding: 26px max(28px, calc((100vw - 1180px) / 2)); border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; }
.lookup-footer p { margin: 0; }

@media (max-width: 1050px) {
    .create-workspace { grid-template-columns: 1fr; }
    .form-panel { border-right: 0; }
    .preview-panel { border-top: 1px solid var(--line); }
    .preview-stage { min-height: auto; }
    .created-banner { grid-template-columns: 1fr; }
    .created-link-row { flex-wrap: wrap; }
    .created-link-row input { min-height: 48px; flex-basis: 100%; }
}

@media (max-width: 700px) {
    .create-topbar { min-height: auto; position: static; align-items: flex-start; padding: 18px 20px; }
    .create-title-group { display: block; }
    .create-title-group h1 { margin-top: 8px; font-size: 26px; }
    .back-link { font-size: 15px; }
    .create-actions { gap: 4px; }
    .create-actions .text-button { display: none; }
    .create-actions .button-dark { min-width: 0; min-height: 46px; padding: 0 16px; }
    .created-banner, .admin-list { padding-left: 20px; padding-right: 20px; }
    .created-link-row .button { flex: 1; }
    .form-submit-actions { flex-direction: column-reverse; }
    .form-submit-actions .button { width: 100%; }
    .form-panel form { padding: 30px 20px 55px; }
    .preview-toolbar { height: 82px; padding: 0 20px; }
    .preview-stage { padding: 24px 16px 50px; }
    .preview-brand, .preview-content { padding-left: 22px; padding-right: 22px; }
    .preview-approval-row { grid-template-columns: 1fr; }
    .public-header { align-items: flex-start; padding: 17px 20px; }
    .brand-name { font-size: 20px; }
    .public-header-actions { flex-direction: column; align-items: flex-end; gap: 4px; }
    .icon-text-link { font-size: 12px; }
    .public-main { width: min(100% - 28px, 1120px); padding-top: 32px; }
    .proof-heading { display: block; }
    .proof-heading .due-date { margin-top: 12px; }
    .artwork-card { min-height: 260px; padding: 12px; border-radius: 14px; }
    .pdf-viewer { height: 66vh; }
    .customer-note { padding: 24px; }
    .decision-card { padding: 24px 20px; }
    .decision-choices { grid-template-columns: 1fr; }
    #signature-pad { height: 180px; }
    .approval-details { grid-template-columns: 1fr; }
    .approval-details .signature-record { grid-column: auto; }
    .modal-footer { align-items: stretch; flex-direction: column; }
    .public-footer { flex-direction: column; padding: 24px 20px; }
    .lookup-header { padding: 17px 20px; }
    .lookup-main { width: min(100% - 28px, 680px); padding: 40px 0; }
    .lookup-logo { width: 125px; height: 125px; }
    .lookup-card { padding: 30px 22px; }
    .lookup-footer { flex-direction: column; padding: 24px 20px; }
    .quiet-row { align-items: flex-start; flex-direction: column; }
    .table-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; }
    .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
    .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .table-wrap tr { margin-bottom: 14px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
    .table-wrap tr:last-child { margin-bottom: 0; }
    .table-wrap td { display: grid; grid-template-columns: minmax(104px, .75fr) minmax(0, 1.25fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); text-align: left; }
    .table-wrap td:last-child { border-bottom: 0; }
    .table-wrap td:nth-child(1)::before { content: "Order"; }
    .table-wrap td:nth-child(2)::before { content: "Client"; }
    .table-wrap td:nth-child(3)::before { content: "Project"; }
    .table-wrap td:nth-child(4)::before { content: "Internal notes"; }
    .table-wrap td:nth-child(5)::before { content: "Status"; }
    .table-wrap td:nth-child(6)::before { content: "Created"; }
    .table-wrap td:nth-child(7)::before { content: "Client link"; }
    .table-wrap td::before { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .02em; }
    .table-wrap td small { margin-top: 2px; }
    .table-wrap .notes-cell, .table-wrap .link-actions { min-width: 0; }
    .table-wrap .link-actions { display: grid; grid-template-columns: subgrid; align-items: center; }
    .table-wrap { display: none; }
    .proof-mobile-list { display: grid; gap: 12px; }
    .mobile-proof-card { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
    .mobile-proof-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
    .mobile-proof-head h3 { margin: 10px 0 0; padding-left: 2px; color: var(--ink); font-size: 22px; line-height: 1.12; letter-spacing: -.025em; }
    .mobile-proof-toggle { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; touch-action: manipulation; transition: background .16s ease, border-color .16s ease; }
    .mobile-proof-toggle:hover, .mobile-proof-toggle:focus-visible { border-color: var(--ink); background: #f7f7f7; }
    .mobile-proof-toggle span { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .16s ease; }
    .mobile-proof-toggle[aria-expanded="true"] span { transform: rotate(225deg) translate(-2px, -2px); }
    .mobile-proof-client { margin-top: 16px; padding-left: 2px; }
    .mobile-proof-client strong, .mobile-proof-client small { display: block; overflow-wrap: anywhere; }
    .mobile-proof-client strong { color: var(--ink); font-size: 17px; line-height: 1.35; }
    .mobile-proof-client small { margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.45; }
    .mobile-proof-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
    .mobile-proof-details { margin-top: 18px; padding-top: 0; border-top: 1px solid var(--line-soft); opacity: 0; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, padding-top .18s ease, margin-top .18s ease; }
    .mobile-proof-details.is-open { margin-top: 18px; padding-top: 16px; opacity: 1; transform: translateY(0); }
    .mobile-proof-details dl { display: grid; gap: 14px; margin: 0; }
    .mobile-proof-details dl > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
    .mobile-proof-details dt { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .02em; }
    .mobile-proof-details dd { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
    .mobile-delete-form { display: flex; justify-content: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
    .mobile-delete-form .delete-button { width: min(100%, 260px); }
}

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