@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    --ink: #242a27;
    --muted: #737a76;
    --paper: #f3f4f1;
    --surface: #fbfcfa;
    --line: #d8dcd7;
    --line-strong: #c7cdc8;
    --green: #3c6558;
    --green-2: #2f5147;
    --mint: #e5eeea;
    --gold: #a87a35;
    --danger: #9a5048;
    font-family: var(--font-sans);
    color: var(--ink);
    font-size: 15px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-2); }
h1, h2, h3, .brand { font-family: var(--font-sans); letter-spacing: -.025em; }
h1 { font-size: clamp(1.65rem, 2.8vw, 2.2rem); line-height: 1.12; margin: 0 0 .45rem; }
h1:focus { outline: none; }
h2 { margin: 0 0 .75rem; font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { line-height: 1.5; }

.site-header { height: 58px; background: rgba(251,252,250,.96); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; border-radius: 5px; display: grid; place-items: center; color: white; background: var(--green); font-size: .85rem; }
.header-actions, .public-nav { display: flex; align-items: center; gap: 14px; }
.header-actions form { margin: 0; }
.user-name { color: var(--muted); font-size: .78rem; }
.link-button { border: 0; background: none; color: var(--green); padding: 0; cursor: pointer; font: inherit; }
.business-switcher { position: relative; }
.business-switcher summary { cursor: pointer; font-weight: 600; list-style: none; padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: .78rem; }
.menu-card { position: absolute; right: 0; top: 36px; width: 235px; padding: 5px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 10px 30px rgba(28,35,31,.12); }
.menu-card a { display: flex; justify-content: space-between; padding: 8px; border-radius: 4px; color: var(--ink); font-size: .8rem; }
.menu-card a:hover { background: var(--paper); }
.menu-card small { color: var(--muted); }

.workspace { display: flex; min-height: calc(100vh - 58px); }
.sidebar { width: 198px; padding: 18px 10px; background: #252e2a; color: white; position: fixed; top: 58px; bottom: 0; }
.sidebar-business { padding: 0 9px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-business span { display: block; color: #9da9a3; text-transform: uppercase; letter-spacing: .12em; font-size: .57rem; margin-bottom: 3px; }
.sidebar-business strong { font-size: .82rem; font-weight: 600; }
.sidebar nav { margin-top: 12px; display: grid; gap: 2px; }
.sidebar nav a { color: #cbd2ce; padding: 8px 9px; border-radius: 4px; display: flex; align-items: center; gap: 7px; font-size: .8rem; }
.sidebar nav a.active, .sidebar nav a:hover { background: #36433e; color: white; }
.sidebar nav a span { width: 18px; text-align: center; color: #9fafA8; font-size: .72rem; }
.sidebar nav small { margin-left: auto; padding: 2px 6px; border-radius: 8px; color: #b7d2c9; background: rgba(255,255,255,.08); font-size: .62rem; text-transform: uppercase; }
.sidebar nav .disabled-nav { opacity: .55; cursor: default; }
.main-with-sidebar { margin-left: 198px; width: calc(100% - 198px); padding: 26px clamp(20px, 3vw, 44px) 44px; }
.main-public { width: 100%; }

.landing {
    --landing-ink: #11251e;
    --landing-green: #174e3d;
    --landing-coral: #e7785d;
    overflow: hidden;
    background:
        linear-gradient(rgba(23,78,61,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23,78,61,.035) 1px, transparent 1px),
        #fbfaf6;
    background-size: 54px 54px;
    color: var(--landing-ink);
}
.landing-hero {
    min-height: min(780px, calc(100vh - 72px));
    max-width: 1220px;
    margin: auto;
    padding: clamp(64px, 8vw, 112px) 36px 84px;
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    align-items: center;
    gap: clamp(50px, 8vw, 105px);
}
.hero-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--landing-green);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.hero-kicker span { width: 26px; height: 2px; background: var(--landing-coral); }
.landing .hero-copy h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(2.7rem, 4.8vw, 4.1rem);
    line-height: .99;
    letter-spacing: -.055em;
}
.landing .hero-copy h1 em { color: var(--landing-green); font-style: normal; }
.hero-lede {
    max-width: 570px;
    margin: 27px 0 0;
    color: #53645d;
    font-size: clamp(1.02rem, 1.45vw, 1.16rem);
    line-height: 1.7;
}
.landing .hero-actions { display: flex; align-items: center; gap: 24px; margin: 32px 0 0; }
.landing-primary { min-height: 49px; padding-inline: 21px; border-radius: 7px; box-shadow: 0 8px 20px rgba(23,78,61,.14); }
.landing-primary span, .landing-light-button span { font-size: 1.12rem; transition: transform .18s ease; }
.landing-primary:hover span, .landing-light-button:hover span { transform: translateX(3px); }
.landing-text-link { padding: 8px 0 6px; border-bottom: 1px solid #afbbb5; color: #3e5149; font-size: .9rem; font-weight: 600; }
.landing-text-link:hover { border-color: var(--landing-green); }
.landing .hero-note { margin: 17px 0 0; color: #7d8983; font-size: .78rem; }

.proof-preview {
    position: relative;
    max-width: 610px;
    border: 1px solid #d6dcd6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(30,55,44,.14), 0 3px 10px rgba(30,55,44,.06);
}
.proof-preview::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 40px -45px -45px 75px;
    border-radius: 50%;
    background: #dfece5;
    filter: blur(1px);
}
.preview-bar { height: 48px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e8ebe8; color: #7b8781; font-size: .65rem; }
.preview-brand { display: flex; align-items: center; gap: 8px; color: #1c3028; font-size: .72rem; font-weight: 700; }
.preview-brand i { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px 3px 7px 3px; background: var(--landing-green); color: #fff; font: normal 700 .7rem var(--font-sans); }
.preview-secure { display: flex; align-items: center; gap: 5px; }
.preview-secure svg { width: 11px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.preview-body { padding: 23px; }
.preview-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.preview-heading div > span { display: block; color: #84908a; font-size: .54rem; font-weight: 700; letter-spacing: .1em; }
.preview-heading strong { display: block; margin-top: 4px; font-size: .92rem; }
.preview-status { padding: 5px 8px; border-radius: 4px; background: #eef5ef; color: var(--landing-green); font-size: .55rem; font-weight: 700; }
.artwork-stage { position: relative; height: 270px; margin: 20px 0 14px; display: grid; place-items: center; border: 1px solid #dfe3df; background: #f0eee8; }
.artwork { width: 62%; aspect-ratio: 1.75; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 3px solid #ac7c4e; color: #835b35; text-align: center; box-shadow: inset 0 0 0 5px #ded0b8, 0 9px 20px rgba(75,55,35,.12); background: #d4c09f; transform: rotate(-.5deg); }
.artwork span { font: 600 .55rem var(--font-sans); letter-spacing: .28em; }
.artwork strong { font: 800 clamp(1.15rem, 2.5vw, 1.9rem) var(--font-sans); letter-spacing: .08em; line-height: 1; }
.artwork i { margin: 4px 0; font: italic 500 .64rem Georgia, serif; letter-spacing: .15em; }
.artwork small { padding-top: 4px; border-top: 1px solid currentColor; font-size: .44rem; letter-spacing: .15em; }
.dimension { position: absolute; color: #89938e; font-size: .49rem; letter-spacing: .06em; }
.dimension-width { bottom: 12px; left: 50%; transform: translateX(-50%); }
.dimension-height { right: 12px; top: 50%; transform: rotate(90deg) translateX(50%); transform-origin: right center; }
.preview-message { display: flex; gap: 10px; padding: 10px 12px; border-left: 2px solid var(--landing-coral); background: #fbf7f1; }
.message-avatar { flex: 0 0 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #dcebe3; color: var(--landing-green); font-size: .62rem; font-weight: 800; }
.preview-message p { margin: 0; color: #65726c; font-size: .58rem; line-height: 1.45; }
.preview-message strong { color: #293a33; }
.preview-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 13px; font-size: .58rem; font-weight: 700; }
.preview-actions span, .preview-actions strong { padding: 8px 10px; border-radius: 5px; }
.preview-actions span { border: 1px solid #d7dcd8; color: #56665f; }
.preview-actions strong { background: var(--landing-green); color: #fff; }

.landing-principle {
    max-width: 1150px;
    margin: 0 auto;
    padding: 88px 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    border-top: 1px solid #d9dfda;
}
.section-label { display: block; margin-bottom: 13px; color: var(--landing-coral); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.landing h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.08; letter-spacing: -.05em; }
.landing-principle h2 { max-width: 500px; margin: 0; }
.landing-principle > p { margin: 27px 0 0; color: #596a62; font-size: 1.04rem; line-height: 1.75; }
.landing-features { max-width: 1150px; margin: 0 auto 110px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #d9dfda; background: rgba(255,255,255,.7); }
.landing-features article { position: relative; min-height: 310px; padding: 34px; border-right: 1px solid #d9dfda; }
.landing-features article:last-child { border-right: 0; }
.feature-number { position: absolute; top: 24px; right: 26px; color: #aab4af; font: 600 .66rem var(--font-sans); }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 22px 0 43px; border-radius: 50%; background: #e8f0eb; color: var(--landing-green); }
.feature-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.landing-features h3 { margin: 0 0 10px; font-size: 1.05rem; letter-spacing: -.02em; }
.landing-features p { margin: 0; color: #68766f; font-size: .9rem; line-height: 1.65; }
.landing-flow { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; padding: 100px max(36px, calc((100% - 1080px) / 2)); background: var(--landing-green); color: #fff; }
.flow-copy h2 { max-width: 470px; margin: 0 0 20px; }
.flow-copy p { max-width: 450px; color: #bdd0c7; line-height: 1.7; }
.flow-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.2); }
.flow-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 23px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.flow-steps li > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: #d9e6e0; font-size: .72rem; }
.flow-steps strong { font: 700 1rem var(--font-sans); }
.flow-steps p { margin: 4px 0 0; color: #b8cdc3; font-size: .86rem; }
.landing-cta { padding: 105px 30px 115px; background: #ee785c; color: #fff; text-align: center; }
.landing-cta .section-label { color: #552a20; }
.landing-cta h2 { margin: 0; }
.landing-cta p { max-width: 580px; margin: 17px auto 29px; color: #623329; line-height: 1.65; }
.landing-light-button { border-color: #fff; border-radius: 7px; background: #fff; color: var(--landing-green); }
.landing-light-button:hover { border-color: #f4f2ea; background: #f4f2ea; color: var(--landing-green); }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 36px; padding: 7px 13px; color: white; background: var(--green); border: 1px solid var(--green); border-radius: 5px; font-weight: 600; font-size: .82rem; cursor: pointer; }
.button:hover { background: var(--green-2); color: white; }
.button-secondary { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
.button-secondary:hover { color: var(--ink); background: var(--paper); }
.button-danger { color: var(--danger); background: var(--surface); border-color: #d8b9b5; }
.button-small { min-height: 30px; padding: 5px 9px; font-size: .75rem; }

.auth-wrap { min-height: calc(100vh - 58px); display: grid; place-items: center; padding: 32px 18px; background: var(--paper); }
.auth-card { width: min(100%, 440px); background: var(--surface); padding: 26px; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(35,45,40,.06); }
.auth-card .lede { color: var(--muted); margin-bottom: 20px; }
.auth-footer { text-align: center; margin-top: 17px; color: var(--muted); font-size: .8rem; }

.page-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.page-head h1 { font-size: 1.75rem; }
.page-head p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--muted); font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumbs { display: flex; align-items: center; gap: 6px; margin: 0 0 11px; color: var(--muted); font-size: .72rem; font-weight: 600; }
.breadcrumbs a { color: var(--green); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-hidden] { color: #a7b0aa; }
.job-navigation { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(260px, auto); gap: 8px; align-items: stretch; padding: 8px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.job-jump { display: grid; grid-template-columns: auto minmax(180px, 1fr); gap: 10px; align-items: center; margin: 0; padding-left: 4px; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.job-jump select { min-width: 0; padding: 9px 34px 9px 10px; background-color: var(--paper); }
.next-work-button, .queue-clear { display: flex; flex-direction: column; justify-content: center; min-height: 46px; padding: 7px 11px; border-radius: 4px; }
.next-work-button { background: var(--green); color: white; text-decoration: none; }
.next-work-button:hover { background: #154f40; color: white; }
.next-work-button span, .queue-clear strong { font-size: .85rem; font-weight: 800; }
.next-work-button small { color: rgba(255,255,255,.76); }
.queue-clear { background: var(--paper); color: var(--muted); }
.queue-clear small { color: var(--muted); }
.dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.dashboard-head h1 { margin: 2px 0 3px; font-size: 1.7rem; }
.dashboard-head p { margin: 0; color: var(--muted); }
.dashboard-actions { display: flex; gap: 9px; }
.dashboard-queues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.queue-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid #8da39a; border-radius: 7px; }
.queue-design { border-top-color: #708cae; }
.queue-waiting { border-top-color: #b48b4d; }
.queue-production { border-top-color: var(--green); }
.queue-card > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 12px 12px 3px; }
.queue-card h2 { margin: 1px 0 0; font-size: .98rem; }
.queue-card > header > strong { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 4px; background: var(--paper); font: 700 .9rem var(--font-sans); }
.queue-kicker { color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.queue-description { min-height: 31px; margin: 0; padding: 0 12px 8px; color: var(--muted); font-size: .69rem; line-height: 1.4; }
.queue-jobs { border-top: 1px solid var(--line); }
.dashboard-job-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 8px 11px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.dashboard-job-row:hover { background: #f7faf8; color: var(--ink); }
.dashboard-job-main { min-width: 0; }
.dashboard-job-main strong, .dashboard-job-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-job-main strong { font-size: .76rem; }
.dashboard-job-main small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.dashboard-job-meta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: end; gap: 4px; }
.dashboard-job-meta .status { max-width: 132px; overflow: hidden; text-overflow: ellipsis; }
.dashboard-job-meta > small { color: var(--muted); font-size: .67rem; }
.dashboard-job-meta .job-overdue { color: #a83e35; font-weight: 750; }
.dashboard-job-meta .job-due-soon { color: #8b641c; font-weight: 700; }
.queue-empty { min-height: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 13px; color: var(--muted); text-align: center; }
.queue-empty span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 4px; background: var(--mint); color: var(--green); font-weight: 700; }
.queue-empty p { margin: 0; font-size: .78rem; }
.queue-more { display: block; padding: 10px 14px; font-size: .75rem; font-weight: 700; }
.dashboard-summary { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.dashboard-summary a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.dashboard-summary a:last-child { border-right: 0; }
.dashboard-summary a:hover { background: var(--paper); }
.dashboard-summary span { color: var(--muted); font-size: .74rem; }
.dashboard-summary strong { font: 700 .98rem var(--font-sans); }
.dashboard-summary .summary-alert strong { color: #a83e35; }
.dashboard-summary .summary-warning strong { color: #8b641c; }
.dashboard-activity { padding: 13px 15px; }
.dashboard-activity .section-head { margin-bottom: 10px; }
.dashboard-activity h2 { font-size: 1.15rem; }
.activity-compact { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line); }
.activity-compact > div { position: relative; min-width: 0; padding: 9px 11px 1px 10px; border-right: 1px solid var(--line); }
.activity-compact > div:last-child { border-right: 0; }
.activity-compact > div > span { position: absolute; top: 17px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.activity-compact p { margin: 0 0 6px; font-size: .74rem; line-height: 1.4; }
.activity-compact time { color: var(--muted); font-size: .66rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.stat-card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.stat-card { padding: 14px; }
.stat-card .label { color: var(--muted); font-size: .74rem; }
.stat-card strong { display: block; font: 700 1.55rem var(--font-sans); margin-top: 4px; }
.panel { padding: 17px; margin-top: 12px; }
.two-column { display: grid; grid-template-columns: 1.4fr .8fr; gap: 12px; }

form { margin-bottom: 0; }
.field { margin-bottom: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-weight: 600; font-size: .76rem; margin-bottom: 5px; }
input, select, textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 4px; padding: 8px 9px; color: var(--ink); background: var(--surface); font: inherit; font-size: .84rem; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(35,118,91,.15); border-color: var(--green-2); }
textarea { min-height: 82px; resize: vertical; }
.form-actions { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.hint { color: var(--muted); font-size: .72rem; }
.alert { padding: 9px 11px; border-radius: 5px; margin: 0 0 12px; font-size: .8rem; }
.alert-error { color: #792e29; background: #fbe9e7; border: 1px solid #f2c6c1; }
.alert-success { color: #18533f; background: var(--mint); border: 1px solid #b9dfd0; }
.alert-warning { color: #6f5018; background: #fff4db; border: 1px solid #ecd49b; }
.pilot-link { overflow-wrap: anywhere; background: var(--paper); padding: 9px; border-radius: 4px; font-size: .75rem; display: block; }

.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar form { flex: 1; display: flex; gap: 8px; }
.toolbar input { max-width: 430px; }
.tabs { display: flex; gap: 5px; margin-left: auto; }
.tabs a { padding: 6px 8px; border-radius: 4px; color: var(--muted); font-size: .76rem; }
.tabs a.selected { background: var(--mint); color: var(--green); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .07em; padding: 8px 9px; border-bottom: 1px solid var(--line); font-weight: 700; }
.data-table td { padding: 9px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .8rem; }
.data-table tr:last-child td { border-bottom: 0; }
.customer-name { font-weight: 650; display: block; color: var(--ink); }
.subtle { color: var(--muted); font-size: .76rem; }
.badge { display: inline-block; border-radius: 4px; padding: 3px 6px; background: var(--mint); color: var(--green); font-size: .65rem; font-weight: 700; }
.badge-muted { background: #eee; color: var(--muted); }
.empty-state { text-align: center; padding: 34px 16px; }
.empty-state .empty-icon { width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; background: var(--mint); color: var(--green); margin: auto auto 11px; font-size: 1rem; }

.detail-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 12px; }
.detail-list { display: grid; grid-template-columns: 130px 1fr; gap: 8px; font-size: .82rem; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 13px 18px; border-left: 1px solid var(--line); margin-left: 4px; font-size: .78rem; }
.timeline li::before { content: ""; position: absolute; width: 7px; height: 7px; left: -4px; top: 5px; border-radius: 50%; background: var(--green); }
.timeline li:last-child { border-left-color: transparent; }
.timeline time { display: block; color: var(--muted); font-size: .78rem; margin-top: 4px; }
.note { padding: 10px; border-radius: 4px; background: var(--paper); margin-bottom: 7px; white-space: pre-wrap; font-size: .8rem; }
.note.pinned { border-left: 3px solid var(--gold); }

.setup-list { display: grid; gap: 10px; }
.setup-item { display: flex; gap: 9px; align-items: center; padding: 9px; background: var(--paper); border-radius: 4px; }
.setup-item .check { width: 25px; height: 25px; border: 2px solid #bfc8c2; border-radius: 50%; display: grid; place-items: center; color: white; }
.setup-item.done .check { background: var(--green); border-color: var(--green); }
.team-person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 30px; height: 30px; border-radius: 4px; background: var(--mint); color: var(--green); display: grid; place-items: center; font-weight: 700; font-size: .72rem; }
.inline-form { display: flex; align-items: center; gap: 8px; }
.inline-form select { width: auto; padding: 7px; }

.status { display: inline-flex; align-items: center; border-radius: 4px; padding: 3px 6px; border: 1px solid #dce0dc; background: #eef0ee; color: #59615d; font-size: .65rem; font-weight: 650; white-space: nowrap; }
.status-awaitingapproval, .status-awaitingcustomer { border-color: #e2d4b8; background: #f5efe3; color: #755b2c; }
.status-approved, .status-ready, .status-completed { border-color: #cddbd5; background: var(--mint); color: var(--green); }
.status-changesrequested, .status-urgent { border-color: #e2c9c5; background: #f3e7e5; color: #86453e; }
.status-inproduction, .status-proofinprogress { border-color: #cbd5e1; background: #e9edf2; color: #49627c; }
.status-cancelled, .status-declined { border-color: #dcdedc; background: #eee; color: #777; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h2 { margin: 2px 0 0; }
.section-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.main-with-sidebar:has(.proof-maker-page) { height: calc(100vh - 58px); padding: 14px; overflow: hidden; }
.proof-maker-page { display: flex; flex-direction: column; height: calc(100vh - 86px); min-height: 580px; }
.proof-maker-head { flex: 0 0 auto; display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.proof-maker-head h1 { font-size: 1.55rem; }
.proof-maker-head p { margin: 0; color: var(--muted); }
.proof-maker-notice { flex: 0 0 auto; color: #5f4a1f; background: #fff6df; border: 1px solid #ecd49b; margin-bottom: 14px; }
.proof-maker-shell { flex: 1 1 auto; min-height: 0; overflow: hidden; background: #181d1b; border: 1px solid #303936; border-radius: 6px; box-shadow: 0 8px 24px rgba(20,35,28,.12); }
.proof-maker-shell iframe { display: block; width: 100%; height: 100%; border: 0; background: #181d1b; }
.upload-panel { padding: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; margin-bottom: 14px; }
.upload-panel summary { cursor: pointer; font-weight: 800; color: var(--green); }
.upload-panel[open] summary { margin-bottom: 20px; }
.proof-list { display: grid; gap: 10px; }
.proof-version { display: grid; grid-template-columns: 44px 1fr; gap: 10px; border: 1px solid var(--line); border-radius: 5px; padding: 10px; opacity: .72; font-size: .8rem; }
.proof-version.current { border-color: #9fcbb9; background: #f5fbf8; opacity: 1; }
.proof-round-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 24px 0 14px; }
.proof-round-head h3, .proof-round-head p { margin: 0; }
.proof-round-head p { max-width: 410px; text-align: right; }
.proof-version-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.proof-choice-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.proof-choice-actions form { margin: 0; }
.danger-link { color: #9a3d35; }
.proof-history { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.proof-history > summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.proof-history[open] > summary { margin-bottom: 12px; }
.file-icon { width: 42px; height: 42px; display: grid; place-items: center; background: var(--mint); color: var(--green); border-radius: 4px; font-weight: 700; font-size: .63rem; }
.internal-note { background: #fff4db; color: #6f5018; padding: 8px 10px; border-radius: 8px; font-size: .86rem; }
.proof-assets { margin: 8px 0 0; font-size: .86rem; }
.share-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid #bdd0c8; background: #f0f5f2; border-radius: 5px; margin-bottom: 12px; overflow-wrap: anywhere; }
.share-box span { color: var(--muted); white-space: nowrap; font-size: .8rem; }
.customer-link-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: end; padding: 11px; margin-top: 12px; border: 1px solid #bdd0c8; background: #f0f5f2; border-radius: 5px; }
.customer-link-copy { min-width: 0; }
.customer-link-copy label { display: block; margin-bottom: 6px; color: var(--green); font-size: .8rem; font-weight: 700; }
.customer-link-copy input { width: 100%; padding: 9px 10px; border: 1px solid #bad7cc; border-radius: 8px; background: white; color: var(--ink); }
.customer-link-box > span { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; }
.proof-share-form { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 18px; }
.email-toggle { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid #bdd0c8; background: #f0f5f2; border-radius: 5px; cursor: pointer; }
.email-toggle input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--brand); }
.email-toggle span { display: flex; flex-direction: column; gap: 2px; }
.email-toggle small { color: var(--muted); }
.response-card { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 9px; background: var(--paper); border-radius: 4px; margin-top: 6px; font-size: .78rem; }
.response-card time { color: var(--muted); font-size: .78rem; }
.response-card p { grid-column: 2 / -1; margin: 0; }

.proof-public { min-height: 100vh; background: var(--paper); }
.proof-public > .auth-card { margin: 80px auto; }
.proof-public-head { height: 58px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px,4vw,48px); color: var(--muted); font-size: .78rem; }
.proof-review { max-width: 1000px; margin: auto; padding: 32px 20px 55px; }
.proof-review-title { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 24px; }
.proof-review-title h1 { font-size: 2rem; }
.proof-review-title p { color: var(--muted); }
.proof-choice-picker { display: grid; grid-template-columns: minmax(220px, .8fr) 1.2fr; gap: 16px; align-items: end; padding: 14px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.proof-choice-picker h2 { margin: 2px 0 4px; font-size: 1.35rem; }
.proof-choice-picker p { margin: 0; }
.proof-choice-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.proof-choice-tab { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 650; }
.proof-choice-tab:hover { border-color: #9fcbb9; }
.proof-choice-tab.selected { border-color: var(--green); background: var(--mint); color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.proof-choice-tab small { color: var(--green); font-size: .7rem; font-weight: 600; }
.proof-canvas { min-height: 420px; background: #29312e; border-radius: 6px; padding: 12px; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(20,35,28,.12); }
.proof-canvas img { max-width: 100%; max-height: 75vh; object-fit: contain; border-radius: 6px; }
.proof-canvas iframe { width: 100%; height: 75vh; min-height: 550px; border: 0; background: white; border-radius: 8px; }
.proof-canvas .button { margin-top: 12px; }
.customer-message { padding: 18px 20px; background: #fff5df; border-left: 4px solid var(--gold); margin: 22px 0; border-radius: 4px 10px 10px 4px; }
.customer-message p { margin-bottom: 0; }
.approval-form { padding: 19px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; margin-top: 16px; }
.approval-check { display: flex; align-items: start; gap: 8px; padding: 10px; background: var(--paper); border-radius: 4px; font-weight: 400; line-height: 1.45; }
.approval-check input { width: auto; margin-top: 4px; }
.proof-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.approval-complete { display: flex; align-items: center; gap: 12px; padding: 16px; margin-top: 16px; background: var(--mint); color: var(--green); border-radius: 6px; }
.approval-complete > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 1.4rem; }
.approval-complete h2, .approval-complete p { margin: 0; }
.approval-complete.changes { background: #fff0d8; color: #765316; }
.approval-complete.changes > span { background: var(--gold); }
.proof-footer { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 30px; }
.mfa-card { width: min(100%, 820px); }
.mfa-status { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 5px; background: var(--paper); margin-bottom: 12px; }
.mfa-status p { margin: 3px 0 0; color: var(--muted); }
.mfa-shield { width: 48px; height: 52px; display: grid; place-items: center; border-radius: 16px 16px 20px 20px; background: var(--green); color: white; font-size: 1.4rem; font-weight: 800; }
.mfa-setup { border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.qr-wrap { width: 260px; max-width: 100%; padding: 15px; margin: 22px auto; background: white; border: 1px solid var(--line); border-radius: 14px; }
.qr-wrap svg { display: block; width: 100%; height: auto; }
.setup-key { display: block; padding: 12px; background: var(--paper); border-radius: 8px; overflow-wrap: anywhere; letter-spacing: .12em; text-align: center; }
.recovery-panel { background: #f4eddf; border: 1px solid #d8c49d; padding: 15px; border-radius: 5px; margin-bottom: 14px; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0; }
.recovery-codes code { background: white; border: 1px solid #e7d8b4; padding: 9px; text-align: center; border-radius: 7px; color: var(--ink); }

#blazor-error-ui { display: none; position: fixed; bottom: 0; width: 100%; padding: 12px; background: #fff0c9; z-index: 100; }

@media (max-width: 850px) {
    .landing-hero { grid-template-columns: 1fr; gap: 62px; padding-top: 72px; }
    .landing .hero-copy { max-width: 640px; }
    .proof-preview { width: min(100%, 610px); margin: auto; }
    .landing-principle { grid-template-columns: 1fr; gap: 16px; }
    .landing-features { margin-inline: 24px; grid-template-columns: 1fr; }
    .landing-features article { min-height: 230px; border-right: 0; border-bottom: 1px solid #d9dfda; }
    .landing-features article:last-child { border-bottom: 0; }
    .feature-icon { margin-bottom: 28px; }
    .landing-flow { grid-template-columns: 1fr; gap: 50px; }
    .sidebar { width: 58px; padding: 14px 6px; }
    .sidebar-business { display: none; }
    .sidebar nav a { justify-content: center; font-size: 0; }
    .sidebar nav a span { font-size: .95rem; }
    .sidebar nav small { display: none; }
    .main-with-sidebar { margin-left: 58px; width: calc(100% - 58px); padding: 22px 16px 44px; }
    .cards { grid-template-columns: 1fr; }
    .two-column, .detail-grid { grid-template-columns: 1fr; }
    .main-with-sidebar:has(.proof-maker-page) { padding: 16px; }
    .proof-maker-head { align-items: start; }
}

@media (max-width: 560px) {
    .site-header { padding: 0 15px; }
    .public-nav { gap: 12px; }
    .landing-hero { padding: 52px 20px 65px; }
    .landing .hero-copy h1 { font-size: clamp(2.45rem, 13vw, 3.4rem); }
    .landing .hero-actions { align-items: flex-start; flex-direction: column; gap: 13px; }
    .proof-preview::before { inset: 35px -15px -25px 55px; }
    .preview-body { padding: 14px; }
    .preview-heading { align-items: flex-start; }
    .artwork-stage { height: 210px; }
    .preview-actions { justify-content: stretch; }
    .preview-actions span, .preview-actions strong { flex: 1; text-align: center; }
    .landing-principle { padding: 70px 20px; }
    .landing-features { margin: 0 14px 78px; }
    .landing-features article { padding: 27px; }
    .landing-flow { padding: 75px 22px; }
    .landing-cta { padding: 80px 22px 88px; }
    .user-name { display: none; }
    .business-switcher summary { max-width: 125px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .main-with-sidebar:has(.proof-maker-page) { height: auto; min-height: calc(100vh - 134px); padding: 18px 12px 76px; overflow: visible; }
    .proof-maker-page { height: auto; min-height: 0; }
    .proof-maker-head { display: grid; }
    .proof-maker-head .button { justify-self: start; }
    .proof-maker-shell { height: 72vh; min-height: 600px; flex: none; }
    .sidebar { position: fixed; top: auto; left: 0; right: 0; bottom: 0; height: 54px; width: 100%; padding: 4px; z-index: 30; }
    .sidebar nav { margin: 0; grid-template-columns: repeat(4,1fr); }
    .sidebar nav a { flex-direction: column; gap: 0; font-size: .62rem; padding: 5px; }
    .sidebar nav a span { font-size: 1rem; }
    .sidebar nav a:nth-child(3), .sidebar nav a:nth-child(4) { display: none; }
    .main-with-sidebar { margin: 0; width: 100%; padding: 19px 12px 70px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .page-head { align-items: start; flex-direction: column; }
    .dashboard-head { align-items: start; flex-direction: column; }
    .dashboard-queues { grid-template-columns: 1fr; }
    .dashboard-summary { grid-template-columns: repeat(2, 1fr); }
    .dashboard-summary a { border-bottom: 1px solid var(--line); }
    .activity-compact { grid-template-columns: 1fr; }
    .activity-compact > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .job-navigation { grid-template-columns: 1fr; }
    .job-jump { grid-template-columns: 1fr; gap: 5px; }
    .toolbar { align-items: stretch; flex-direction: column; }
    .tabs { margin-left: 0; }
    .data-table th:nth-child(3), .data-table td:nth-child(3) { display: none; }
    .auth-card { padding: 21px 17px; }
    .proof-actions { flex-direction: column; }
    .proof-review-title { flex-direction: column; }
    .proof-choice-picker { grid-template-columns: 1fr; }
    .proof-round-head { align-items: start; flex-direction: column; }
    .proof-round-head p { text-align: left; }
    .proof-canvas { min-height: 280px; padding: 9px; }
    .proof-canvas iframe { min-height: 430px; }
    .share-box { align-items: start; flex-direction: column; }
    .customer-link-box { grid-template-columns: 1fr; }
    .customer-link-box .button { justify-self: start; }
    .recovery-codes { grid-template-columns: 1fr; }
}

/* ProofMate application design system — light, readable operations UI */
:root {
    --ink: #172033;
    --muted: #667085;
    --paper: #e9edf2;
    --surface: #f8f9fb;
    --line: #d5dbe4;
    --line-strong: #c4ccd8;
    --green: #1769d2;
    --green-2: #0f56b3;
    --mint: #eaf3ff;
    --gold: #b76e00;
    --danger: #b42318;
    font-size: 16px;
}

html, body { background: var(--paper); color: var(--ink); }
body { line-height: 1.5; }
a { color: #1769d2; }
a:hover { color: #0f56b3; }
h1, h2, h3, .brand { letter-spacing: -.025em; }
h1 { font-size: clamp(1.85rem, 3vw, 2.15rem); line-height: 1.2; }
h2 { font-size: 1.25rem; line-height: 1.3; }

.site-header {
    height: 68px;
    padding: 0 22px;
    background: rgba(247,248,250,.98);
    border-color: var(--line);
    box-shadow: none;
}
.brand { gap: 10px; color: var(--ink); font-size: 1.28rem; }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: #1769d2;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(23,105,210,.18);
}
.header-actions { gap: 18px; }
.user-name { color: var(--muted); font-size: .875rem; }
.link-button { color: #344054; font-size: .875rem; }
.business-switcher summary {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-color: var(--line);
    border-radius: 8px;
    background: #f8f9fb;
    font-size: .875rem;
}
.menu-card {
    top: 46px;
    width: 260px;
    padding: 7px;
    border-color: var(--line);
    border-radius: 9px;
    box-shadow: 0 14px 32px rgba(16,24,40,.12);
}
.menu-card a { padding: 10px; border-radius: 6px; font-size: .875rem; }

.workspace { min-height: calc(100vh - 68px); }
.sidebar {
    top: 68px;
    width: 228px;
    padding: 24px 12px;
    background: #f2f4f7;
    color: var(--ink);
    border-right: 1px solid var(--line);
}
.sidebar-business {
    padding: 0 10px 19px;
    border-bottom-color: var(--line);
}
.sidebar-business span { margin-bottom: 5px; color: #8992a3; font-size: .68rem; letter-spacing: .1em; }
.sidebar-business strong { color: var(--ink); font-size: .94rem; }
.sidebar nav { margin-top: 14px; gap: 5px; }
.sidebar nav a {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #475467;
    font-size: .94rem;
    font-weight: 500;
}
.sidebar nav a span { width: 22px; color: #7c8799; font-size: 1rem; }
.sidebar nav a.active, .sidebar nav a:hover {
    background: #eaf3ff;
    color: #1259b0;
}
.sidebar nav a.active { font-weight: 650; }
.sidebar nav a.active span, .sidebar nav a:hover span { color: #1769d2; }
.main-with-sidebar {
    margin-left: 228px;
    width: calc(100% - 228px);
    padding: 30px clamp(24px, 3.4vw, 54px) 56px;
}
.main-with-sidebar > * { max-width: 1540px; margin-left: auto; margin-right: auto; }

.button {
    min-height: 42px;
    padding: 9px 16px;
    border-color: #1769d2;
    border-radius: 7px;
    background: #1769d2;
    box-shadow: 0 1px 2px rgba(16,24,40,.05);
    font-size: .9rem;
    font-weight: 650;
}
.button:hover { border-color: #0f56b3; background: #0f56b3; }
.button-secondary { border-color: var(--line-strong); background: #fff; color: #344054; }
.button-secondary:hover { border-color: #b8c0cc; background: #f8fafc; color: #172033; }
.button-danger { border-color: #f0c5c1; background: #fff; color: var(--danger); }
.button-small { min-height: 36px; padding: 7px 12px; font-size: .84rem; }

.page-head { align-items: center; margin-bottom: 24px; }
.page-head h1 { font-size: 1.9rem; }
.page-head p { font-size: .95rem; }
.eyebrow { color: #7c8799; font-size: .73rem; }
.breadcrumbs { margin-bottom: 14px; font-size: .84rem; }
.breadcrumbs a { color: #1769d2; }

.panel, .stat-card, .dashboard-panel {
    background: #f8f9fb;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16,24,40,.025);
}
.panel { margin-top: 16px; padding: 22px; }
.stat-card { padding: 20px; }
.stat-card .label { font-size: .85rem; }
.stat-card strong { font-size: 1.75rem; }
.two-column, .detail-grid { gap: 18px; }

label { margin-bottom: 7px; color: #344054; font-size: .875rem; }
input, select, textarea {
    min-height: 42px;
    padding: 9px 11px;
    border-color: var(--line-strong);
    border-radius: 7px;
    background: #fcfcfd;
    font-size: .94rem;
}
input:focus, select:focus, textarea:focus {
    outline: 3px solid rgba(23,105,210,.13);
    border-color: #1769d2;
}
textarea { min-height: 104px; }
.field { margin-bottom: 17px; }
.field-row { gap: 16px; }
.hint, .subtle { font-size: .82rem; }
.form-actions { gap: 10px; margin-top: 20px; }
.alert { padding: 11px 13px; border-radius: 7px; font-size: .875rem; }

.toolbar { gap: 10px; margin-bottom: 16px; }
.tabs { gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #f8f9fb; }
.tabs a { padding: 7px 10px; border-radius: 6px; font-size: .84rem; }
.tabs a.selected { background: #eaf3ff; color: #1259b0; }
.data-table th {
    padding: 11px 12px;
    color: #667085;
    background: #fafbfc;
    font-size: .72rem;
}
.data-table td { height: 52px; padding: 11px 12px; font-size: .9rem; }
.data-table tbody tr:hover { background: #fafcff; }
.customer-name { font-weight: 650; }
.badge { border-radius: 999px; padding: 4px 8px; background: #eaf3ff; color: #1259b0; font-size: .72rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #eaf3ff; color: #1259b0; font-size: .8rem; }

.status {
    gap: 5px;
    padding: 4px 8px;
    border: 0;
    border-radius: 999px;
    background: #f0f2f5;
    color: #475467;
    font-size: .75rem;
    font-weight: 650;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.status-awaitingapproval, .status-awaitingcustomer, .status-awaitingartwork { background: #f4ebff; color: #7f2db3; }
.status-approved, .status-ready, .status-completed { background: #e8f7f1; color: #087a5b; }
.status-changesrequested, .status-urgent { background: #fff2df; color: #a95b00; }
.status-inproduction, .status-proofinprogress, .status-draft { background: #eaf3ff; color: #1769d2; }
.status-cancelled, .status-declined { background: #f0f2f5; color: #667085; }

.dashboard-head {
    align-items: center;
    margin-bottom: 24px;
}
.dashboard-head h1 { margin: 0 0 4px; font-size: 1.9rem; }
.dashboard-head p { color: var(--muted); font-size: .95rem; }
.dashboard-summary {
    grid-template-columns: repeat(4, 1fr);
    margin: 0 0 18px;
    border-color: var(--line);
    border-radius: 10px;
    background: #f8f9fb;
}
.dashboard-summary a {
    justify-content: flex-start;
    gap: 13px;
    min-height: 86px;
    padding: 16px 20px;
    border-color: var(--line);
}
.dashboard-summary a:hover { background: #fafcff; }
.dashboard-summary a > span {
    display: flex;
    flex-direction: column;
    color: #667085;
    font-size: .84rem;
}
.dashboard-summary a strong { order: -1; margin-bottom: 1px; color: var(--ink); font-size: 1.45rem; line-height: 1.2; }
.summary-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 50%;
    background: #eaf3ff;
    color: #1769d2;
    font: normal 700 1.1rem var(--font-sans);
}
.summary-icon-changes { background: #fff2df; color: #b76e00; }
.summary-icon-customer { background: #f4ebff; color: #8735b9; }
.summary-icon-due { background: #ffebe8; color: #c63f31; }

.dashboard-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(320px, .9fr);
    gap: 18px;
    align-items: start;
}
.dashboard-panel { min-width: 0; overflow: hidden; }
.dashboard-panel-head {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
}
.dashboard-panel-head h2 { margin: 0; font-size: 1.18rem; }
.dashboard-panel-head a { font-size: .84rem; font-weight: 600; }
.work-table-wrap { overflow-x: auto; }
.work-table { width: 100%; border-collapse: collapse; }
.work-table th {
    padding: 10px 14px;
    color: #667085;
    background: #fafbfc;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: .72rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .045em;
}
.work-table td {
    height: 58px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    color: #344054;
    font-size: .86rem;
    vertical-align: middle;
}
.work-table tbody tr:last-child td { border-bottom: 0; }
.work-table tbody tr:hover { background: #fafcff; }
.work-job { min-width: 160px; display: flex; flex-direction: column; color: var(--ink); }
.work-job strong { font-size: .86rem; }
.work-job span { margin-top: 2px; color: #667085; font-size: .82rem; }
.table-action {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid #b7d1f3;
    border-radius: 6px;
    background: #fcfcfd;
    font-size: .8rem;
    font-weight: 650;
}
.job-overdue { color: #b42318; font-weight: 650; }
.job-due-soon { color: #b76e00; font-weight: 650; }
.due-muted { color: #98a2b3; }
.queue-empty { min-height: 150px; gap: 8px; padding: 24px; }
.queue-empty span { width: 34px; height: 34px; border-radius: 50%; background: #e8f7f1; color: #087a5b; }
.queue-empty p { font-size: .9rem; }

.waiting-list { padding: 12px 14px 15px; }
.waiting-list > a {
    min-height: 70px;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 11px 10px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
.waiting-list > a:last-child { border-bottom: 0; }
.waiting-list > a:hover { background: #fafcff; }
.waiting-file {
    width: 32px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #cfd5de;
    border-radius: 5px;
    color: #667085;
}
.waiting-list strong, .waiting-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waiting-list strong { font-size: .85rem; }
.waiting-list small { margin-top: 3px; color: #667085; font-size: .8rem; }
.waiting-age { color: #b76e00; font-size: .78rem; font-weight: 650; }

.dashboard-activity { grid-column: 1 / 2; padding: 0; margin: 0; }
.activity-list { padding: 8px 20px 14px; }
.activity-list > div {
    min-height: 38px;
    display: grid;
    grid-template-columns: 9px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eef0f3;
}
.activity-list > div:last-child { border-bottom: 0; }
.activity-list > div > span { width: 7px; height: 7px; border-radius: 50%; background: #1769d2; }
.activity-list p { margin: 0; font-size: .82rem; }
.activity-list time { color: #7c8799; font-size: .76rem; }

.auth-wrap { min-height: calc(100vh - 68px); padding: 42px 20px; }
.auth-card { padding: 32px; border-radius: 11px; box-shadow: 0 14px 36px rgba(16,24,40,.07); }
.auth-footer { font-size: .875rem; }
.job-navigation { padding: 10px; border-radius: 9px; }
.job-jump { font-size: .875rem; }
.next-work-button, .queue-clear { min-height: 52px; border-radius: 7px; }
.next-work-button { background: #1769d2; }
.next-work-button:hover { background: #0f56b3; }

.customer-job-list { display: grid; border-top: 1px solid var(--line); }
.customer-job-row {
    min-width: 0;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
.customer-job-row:last-child { border-bottom: 0; }
.customer-job-row:hover { color: var(--ink); }
.customer-job-row > span:first-child { min-width: 0; }
.customer-job-row strong, .customer-job-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-job-row strong { font-size: .9rem; }
.customer-job-row small { margin-top: 3px; color: var(--muted); font-size: .8rem; }

@media (max-width: 1100px) {
    .dashboard-workspace { grid-template-columns: 1fr; }
    .dashboard-activity { grid-column: auto; }
    .dashboard-summary a { padding-inline: 14px; }
}

@media (max-width: 850px) {
    .sidebar { top: 68px; width: 68px; padding: 16px 7px; }
    .sidebar nav a { justify-content: center; }
    .sidebar nav a span { font-size: 1.05rem; }
    .main-with-sidebar { margin-left: 68px; width: calc(100% - 68px); padding: 26px 20px 48px; }
    .dashboard-summary { grid-template-columns: repeat(2,1fr); }
    .dashboard-summary a:nth-child(2) { border-right: 0; }
    .dashboard-summary a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
    .site-header { height: 62px; }
    .brand { font-size: 1.1rem; }
    .brand-mark { width: 31px; height: 31px; }
    .sidebar {
        top: auto;
        height: 62px;
        padding: 5px 4px;
        background: #f2f4f7;
        border-top: 1px solid var(--line);
        border-right: 0;
    }
    .sidebar nav { grid-template-columns: repeat(4,1fr); }
    .sidebar nav a { min-height: 50px; color: #667085; }
    .sidebar nav a.active { background: #eaf3ff; color: #1769d2; }
    .main-with-sidebar { width: 100%; margin: 0; padding: 22px 14px 82px; }
    .dashboard-head { gap: 16px; }
    .dashboard-head h1 { font-size: 1.7rem; }
    .dashboard-summary { grid-template-columns: 1fr 1fr; }
    .dashboard-summary a { min-height: 78px; padding: 12px; }
    .summary-icon { display: none; }
    .work-table th:nth-child(2), .work-table td:nth-child(2), .work-table th:nth-child(4), .work-table td:nth-child(4) { display: none; }
    .work-table th, .work-table td { padding-inline: 11px; }
    .activity-list > div { grid-template-columns: 9px minmax(0,1fr); padding: 7px 0; }
    .activity-list time { grid-column: 2; }
    .panel { padding: 18px; }
    input, select, textarea { font-size: 16px; }
}

/* ============================================================================
   PROOFLINE APPROVAL-PORTAL DESIGN SYSTEM
   Imported from Claude Design project 65940c0c-9853-4abb-8832-35f5f9d44efe
   ("Approval Portal.dc.html"). Reference implementation of the language lives
   at /approval-portal/ — wwwroot/approval-portal/portal.css holds the same
   tokens.

   This layer supersedes the two theme layers above it. It is deliberately
   additive: the layer above introduces the only styling for the current
   dashboard markup (.work-table, .dashboard-panel, .waiting-list,
   .activity-list, .summary-icon, .customer-job-list), so it is re-skinned
   here rather than replaced.

   Palette: white surfaces on #F7F8FA, navy #1E3A8A primary, deep navy #101B33
   navigation, and amber / green / red status tints.
   ========================================================================== */

:root {
    --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

    /* surfaces */
    --paper: #f7f8fa;
    --surface: #ffffff;
    --surface-2: #fafbfc;

    /* text */
    --ink: #12151b;
    --ink-2: #363b47;
    --body-text: #4b5262;
    --muted: #6b7280;
    --muted-2: #8a8f9b;
    --muted-3: #9aa0ac;

    /* lines */
    --line: #e7e9ee;
    --line-strong: #d9dce3;
    --line-row: #f0f1f4;

    /* brand — names kept so the layers above inherit the new palette */
    --green: #1e3a8a;
    --green-2: #16296b;
    --mint: #eaeffb;
    --gold: #b45309;
    --danger: #b91c1c;

    --primary: #1e3a8a;
    --primary-hover: #16296b;
    --primary-tint: #eaeffb;
    /* legacy alias: .email-toggle references var(--brand), which was never
       defined anywhere, leaving its accent-color declaration inert. */
    --brand: var(--primary);

    /* deep navy navigation */
    --nav: #101b33;
    --nav-active: #1d2a4d;
    --nav-accent: #2f4ca6;
    --nav-text: #c9d0e0;
    --nav-muted: #8894b3;
    --nav-sub: #7c87a3;
    --nav-line: #223054;

    /* status */
    --ok: #15803d;
    --ok-tint: #dcfce7;
    --ok-ink: #166534;
    --warn: #b45309;
    --warn-tint: #fef3c7;
    --warn-ink: #92400e;
    --alert-tint: #fee2e2;
    --alert-ink: #991b1b;
    --neutral-tint: #f0f2f5;
    --neutral-ink: #475467;

    /* geometry */
    --r-sm: 5px;
    --r: 7px;
    --r-md: 8px;
    --r-lg: 10px;
    --r-xl: 12px;
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06);
    --shadow-md: 0 6px 18px rgba(16, 24, 40, .12);

    font-size: 16px;
}

/* Bootstrap 5.3 loads before this file and sets body font/colour/background
   from its own custom properties, so they have to be redirected explicitly. */
:root,
body {
    --bs-body-font-family: var(--font-sans);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--paper);
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--primary-hover);
    --bs-border-color: var(--line);
    --bs-emphasis-color: var(--ink);
}

html, body { background: var(--paper); color: var(--ink); }
body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

h1, h2, h3, .brand { letter-spacing: -.02em; }
h1 { font-size: clamp(1.55rem, 2.6vw, 1.9rem); line-height: 1.15; font-weight: 700; }
h2 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d6dae1; border-radius: 4px; }

@keyframes pl-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pl-pop-in {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

/* ------------------------------------------------------------------ header - */

.site-header {
    height: 64px;
    padding: 0 clamp(16px, 3vw, 28px);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    backdrop-filter: none;
}
.brand { gap: 10px; font-size: 1.12rem; font-weight: 700; }
.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: var(--r);
    background: var(--primary);
    box-shadow: none;
    font-size: .85rem;
    font-weight: 700;
}
.user-name { color: var(--muted); font-size: .82rem; }
.link-button { color: var(--muted); font-size: .84rem; font-weight: 500; }
.link-button:hover { color: var(--ink); }

.business-switcher summary {
    min-height: 38px;
    border-color: var(--line-strong);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--ink-2);
    font-size: .84rem;
    font-weight: 600;
}
.business-switcher summary:hover { background: var(--surface-2); }
.menu-card {
    top: 44px;
    border-color: var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}
.menu-card a { border-radius: 6px; color: var(--ink-2); font-size: .84rem; }
.menu-card a:hover { background: var(--primary-tint); color: var(--primary); }
.menu-card small { color: var(--muted-2); }

/* -------------------------------------------------------- navigation rail - */

.workspace { min-height: calc(100vh - 64px); }

.sidebar {
    top: 64px;
    width: 224px;
    padding: 20px 14px;
    background: var(--nav);
    color: var(--nav-text);
    border-right: 0;
}
.sidebar-business { padding: 0 8px 18px; border-bottom: 1px solid var(--nav-line); }
.sidebar-business span { color: var(--nav-sub); font-size: .62rem; letter-spacing: .11em; }
.sidebar-business strong { color: #fff; font-size: .88rem; }

.sidebar nav { margin-top: 14px; gap: 2px; }
.sidebar nav a {
    min-height: 40px;
    padding: 9px 10px;
    border-radius: var(--r);
    color: var(--nav-muted);
    font-size: .875rem;
    font-weight: 500;
}
.sidebar nav a span { width: 20px; color: var(--nav-sub); font-size: .92rem; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.sidebar nav a.active { background: var(--nav-active); color: #fff; font-weight: 600; }
.sidebar nav a.active span, .sidebar nav a:hover span { color: #fff; }
.sidebar nav small {
    background: rgba(255, 255, 255, .1);
    color: var(--nav-text);
    font-size: .6rem;
}

.main-with-sidebar {
    margin-left: 224px;
    width: calc(100% - 224px);
    padding: 28px clamp(20px, 3vw, 44px) 52px;
}

/* ----------------------------------------------------------------- buttons - */

.button {
    min-height: 40px;
    gap: 6px;
    padding: 9px 18px;
    border: 1px solid var(--primary);
    border-radius: var(--r);
    background: var(--primary);
    color: #fff;
    box-shadow: none;
    font-size: .875rem;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.button:hover { border-color: var(--primary-hover); background: var(--primary-hover); color: #fff; }
.button-secondary { border-color: var(--line-strong); background: var(--surface); color: var(--ink-2); }
.button-secondary:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--ink); }
.button-danger { border-color: var(--line-strong); background: var(--surface); color: var(--danger); }
.button-danger:hover { background: #fef2f2; color: var(--danger); }
.button-small { min-height: 34px; padding: 6px 12px; font-size: .8rem; }
.danger-link { color: var(--danger); }

/* ------------------------------------------------------------------ fields - */

label { margin-bottom: 6px; color: var(--ink-2); font-size: .8rem; font-weight: 600; }
input, select, textarea {
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--ink);
    font-size: .875rem;
}
input::placeholder, textarea::placeholder { color: var(--muted-3); }
input:focus, select:focus, textarea:focus {
    outline: 3px solid rgba(30, 58, 138, .13);
    border-color: var(--primary);
}
textarea { min-height: 96px; }
.hint, .subtle { color: var(--muted); font-size: .8rem; }
.eyebrow { color: var(--muted-2); font-size: .68rem; font-weight: 700; letter-spacing: .07em; }
.breadcrumbs { color: var(--muted); font-size: .82rem; }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs span[aria-hidden] { color: var(--muted-3); }

/* ------------------------------------------------------------------ alerts - */

.alert { border-radius: var(--r-md); padding: 11px 14px; font-size: .86rem; font-weight: 500; }
.alert-error   { border: 0; background: var(--alert-tint); color: var(--alert-ink); }
.alert-success { border: 0; background: var(--ok-tint);    color: var(--ok-ink); }
.alert-warning { border: 0; background: var(--warn-tint);  color: var(--warn-ink); }
#blazor-error-ui { background: var(--warn-tint); color: var(--warn-ink); border-top: 1px solid #f3d9a4; }

/* ---------------------------------------------------------- cards / panels - */

.panel, .stat-card, .dashboard-panel, .queue-card, .auth-card, .proof-preview {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}
.panel { padding: 20px; }
.stat-card { padding: 18px; }
.stat-card .label { color: var(--muted); font-size: .82rem; }
.stat-card strong { font-size: 1.6rem; font-weight: 700; }
.auth-card { padding: 32px; box-shadow: var(--shadow-md); }
.auth-card .lede { color: var(--muted); }
.remember-device {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0 0;
    color: var(--ink-2);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
}
.remember-device input[type="checkbox"] {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    accent-color: var(--primary);
}
.auth-footer { color: var(--muted); font-size: .84rem; }
.auth-wrap { min-height: calc(100vh - 64px); background: var(--paper); }

.page-head h1, .dashboard-head h1 { font-size: 1.5rem; font-weight: 700; }
.page-head p, .dashboard-head p { color: var(--muted); font-size: .875rem; }
.section-head h2 { font-size: 1.15rem; }

/* ------------------------------------------------------------------ tables - */

.data-table th, .work-table th {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.data-table td, .work-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line-row);
    color: var(--body-text);
    font-size: .86rem;
}
.data-table tbody tr:hover, .work-table tbody tr:hover { background: #fafbff; }
.customer-name, .work-job strong { color: var(--ink); font-weight: 600; }
.work-job span, .dashboard-job-main small, .customer-job-row small, .waiting-list small {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .76rem;
}
.table-action {
    border-color: var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 600;
}
.table-action:hover { background: var(--primary-tint); }

.toolbar input { max-width: 320px; }
.tabs { padding: 3px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.tabs a { border-radius: var(--r-sm); color: var(--muted); font-size: .82rem; font-weight: 600; }
.tabs a.selected { background: var(--primary-tint); color: var(--primary); }

.pilot-link, .setup-key, .recovery-codes code {
    background: var(--surface-2);
    color: var(--ink-2);
    font-family: var(--font-mono);
}
.pilot-link { border: 1px solid var(--line); border-radius: var(--r-sm); }

/* ------------------------------------------------------------ status pills - */

.status {
    gap: 0;
    padding: 3px 9px;
    border: 0;
    border-radius: var(--r-sm);
    background: var(--neutral-tint);
    color: var(--neutral-ink);
    font-size: .72rem;
    font-weight: 600;
}
.status::before { content: none; }
.status-awaitingapproval, .status-awaitingcustomer, .status-awaitingartwork { background: var(--warn-tint); color: var(--warn-ink); }
.status-approved, .status-ready, .status-completed { background: var(--ok-tint); color: var(--ok-ink); }
.status-changesrequested, .status-urgent { background: var(--alert-tint); color: var(--alert-ink); }
.status-inproduction, .status-proofinprogress, .status-draft { background: var(--primary-tint); color: var(--primary); }
.status-cancelled, .status-declined { background: var(--neutral-tint); color: var(--muted); }
.email-is-sending { overflow: hidden; }
.email-sending-overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; background: rgba(18, 29, 26, .56); backdrop-filter: blur(4px); }
.email-sending-overlay[hidden] { display: none; }
.email-sending-card { width: min(460px, 100%); display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 24px; border: 1px solid rgba(255,255,255,.55); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 24px 70px rgba(15, 35, 29, .28); }
.email-sending-card h2 { margin: 0 0 5px; font-size: 1.2rem; }
.email-sending-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.email-monkey { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-tint); font-size: 1.9rem; animation: email-monkey-bob .75s ease-in-out infinite alternate; }
.email-sending-dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 6px; }
.email-sending-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: email-dot-pulse 1s ease-in-out infinite; }
.email-sending-dots i:nth-child(2) { animation-delay: .15s; }
.email-sending-dots i:nth-child(3) { animation-delay: .3s; }
.print-list-actions { display: flex; align-items: center; gap: 10px; }
.print-list-actions .badge { font-size: .82rem; }
.queue-number { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--primary-tint); color: var(--primary); }
@keyframes email-monkey-bob { to { transform: translateY(-5px) rotate(3deg); } }
@keyframes email-dot-pulse { 0%, 60%, 100% { opacity: .25; transform: scale(.8); } 30% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
    .email-monkey, .email-sending-dots i { animation: none; }
}
@media print {
    .site-header, .sidebar, .print-list-actions, .print-list-open, #blazor-error-ui { display: none !important; }
    .main-with-sidebar, .main-public { margin: 0 !important; padding: 0 !important; }
    .workspace, .app-shell { display: block !important; }
    body { background: #fff !important; color: #000 !important; }
    .page-head { margin-bottom: 18px; }
    .panel, .print-list-panel { padding: 0 !important; border: 0 !important; box-shadow: none !important; }
    .data-table th, .data-table td { color: #000 !important; border-color: #bbb !important; }
    .data-table a { color: #000 !important; text-decoration: none !important; }
}

.badge { border-radius: var(--r-sm); background: var(--primary-tint); color: var(--primary); font-size: .7rem; font-weight: 600; }
.badge-muted { background: var(--neutral-tint); color: var(--muted); }
.avatar, .file-icon, .empty-state .empty-icon, .queue-empty span {
    background: var(--primary-tint);
    color: var(--primary);
}
.avatar { border-radius: 50%; font-weight: 700; }
.job-overdue { color: var(--danger); font-weight: 600; }
.job-due-soon { color: var(--warn); font-weight: 600; }
.due-muted { color: var(--muted-3); }
.waiting-age { color: var(--warn); font-weight: 600; }

/* --------------------------------------------------------------- dashboard - */

.dashboard-summary { border-color: var(--line); border-radius: var(--r-xl); background: var(--surface); }
.dashboard-summary a { border-color: var(--line); }
.dashboard-summary a:hover { background: #fafbff; }
.dashboard-summary a > span { color: var(--muted); font-size: .82rem; }
.dashboard-summary a strong { color: var(--ink); font-size: 1.4rem; font-weight: 700; }
.summary-icon { border-radius: var(--r-md); background: var(--primary-tint); color: var(--primary); font: normal 700 1rem var(--font-sans); }
.summary-icon-changes { background: var(--warn-tint); color: var(--warn); }
.summary-icon-customer { background: var(--neutral-tint); color: var(--neutral-ink); }
.summary-icon-due { background: var(--alert-tint); color: var(--danger); }

.dashboard-panel-head { min-height: 56px; border-bottom: 1px solid var(--line); }
.dashboard-panel-head h2 { font-size: 1.1rem; }
.dashboard-panel-head a { color: var(--primary); font-size: .82rem; font-weight: 600; }
.waiting-list > a, .customer-job-row, .dashboard-job-row { border-bottom-color: var(--line-row); }
.waiting-list > a:hover, .dashboard-job-row:hover { background: #fafbff; }
.waiting-file { border-color: var(--line-strong); border-radius: var(--r-sm); background: var(--surface-2); color: var(--muted); }
.activity-list > div { border-bottom-color: var(--line-row); }
.activity-list > div > span { background: var(--primary); }
.activity-list p { color: var(--body-text); font-size: .82rem; }
.activity-list time { color: var(--muted); font-size: .75rem; }

.queue-card { border-top: 2px solid var(--primary); }
.queue-design { border-top-color: var(--nav-accent); }
.queue-waiting { border-top-color: var(--warn); }
.queue-production { border-top-color: var(--ok); }
.queue-kicker { color: var(--muted-2); }
.queue-card > header > strong { border-radius: var(--r-sm); background: var(--primary-tint); color: var(--primary); font: 700 .88rem var(--font-sans); }
.queue-more { color: var(--primary); }
.next-work-button { border-radius: var(--r); background: var(--primary); }
.next-work-button:hover { background: var(--primary-hover); }
.queue-clear { border-radius: var(--r); background: var(--surface-2); }
.job-navigation { border-color: var(--line); border-radius: var(--r-lg); background: var(--surface); }

.timeline li::before { background: var(--primary); }
.timeline li { border-left-color: var(--line); }
.note { border-radius: var(--r-md); background: var(--surface-2); }
.note.pinned { border-left: 3px solid var(--warn); }
.internal-note { border-radius: var(--r-md); background: var(--warn-tint); color: var(--warn-ink); }
.setup-item { border-radius: var(--r-md); background: var(--surface-2); }
.setup-item .check { border-color: var(--line-strong); }
.setup-item.done .check { border-color: var(--ok); background: var(--ok); }
.detail-list dt { color: var(--muted); }
.response-card { border-radius: var(--r-md); background: var(--surface-2); }
.upload-panel { border-color: var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.upload-panel summary { color: var(--primary); font-weight: 700; }
.proof-dropzone {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 26px 18px;
    border: 2px dashed var(--line-strong);
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--muted);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.proof-dropzone:hover,
.proof-dropzone:focus-visible,
.proof-dropzone.is-dragging {
    border-color: var(--primary);
    background: var(--primary-tint);
    outline: none;
}
.proof-dropzone.is-dragging { transform: scale(1.005); }
.proof-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
.proof-dropzone-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-tint);
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 800;
}
.proof-dropzone strong { color: var(--ink); font-size: .95rem; }
.proof-dropzone small { color: var(--muted-2); }
.proof-dropzone kbd {
    padding: 2px 5px;
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    border-radius: 4px;
    background: var(--surface-2);
    color: var(--ink);
    font: inherit;
    font-size: .75rem;
}
.proof-file-selection {
    min-height: 1.2em;
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
}
.proof-file-selection.is-error { color: var(--danger); }
.proof-workflow-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 16px 0 20px;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: var(--r-lg);
    background: var(--surface-2);
}
.proof-workflow-state h3,
.proof-workflow-state p { margin: 0; }
.proof-workflow-state h3 { margin-top: 2px; font-size: 1.08rem; }
.proof-workflow-state p {
    max-width: 650px;
    margin-top: 4px;
    color: var(--muted);
}
.proof-workflow-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.proof-workflow-state-approved {
    border-left-color: var(--ok);
    background: var(--ok-tint);
}
.proof-workflow-state-awaitingcustomer {
    border-left-color: var(--warn);
    background: var(--warn-tint);
}
.proof-workflow-state-changesrequested {
    border-left-color: var(--danger);
    background: var(--alert-tint);
}
#job-status { scroll-margin-top: 16px; }
.proof-start {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--primary-tint);
}
.proof-start-number {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}
.proof-start h3,
.proof-start p { margin: 0; }
.proof-start p { margin-top: 2px; color: var(--muted); }
.proof-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}
.proof-choice-grid .proof-version {
    align-content: start;
    min-width: 0;
    opacity: 1;
}
.proof-choice-grid .proof-version > div:last-child { min-width: 0; }
.proof-choice-grid .proof-version a {
    overflow-wrap: anywhere;
}
.proof-upload-panel {
    margin: 18px 0;
    padding: 0;
    overflow: hidden;
    scroll-margin-top: 16px;
    background: var(--surface);
}
.proof-upload-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    list-style: none;
}
.proof-upload-panel > summary::-webkit-details-marker { display: none; }
.proof-upload-panel > summary span:first-child {
    display: grid;
    gap: 2px;
}
.proof-upload-panel > summary strong {
    color: var(--ink);
    font-size: 1rem;
}
.proof-upload-panel > summary small {
    color: var(--muted);
    font-weight: 500;
}
.proof-upload-summary-action {
    flex: 0 0 auto;
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
}
.proof-upload-panel[open] > summary {
    margin-bottom: 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}
.proof-upload-panel[open] .proof-upload-summary-action { display: none; }
.proof-upload-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
}
.proof-upload-form > .field { margin: 0; }
.proof-upload-file-field,
.proof-upload-notes,
.proof-upload-submit { grid-column: 1 / -1; }
.proof-upload-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.proof-upload-notes .field { margin: 0; }
.proof-upload-notes textarea { min-height: 88px; }
.proof-upload-submit {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.proof-upload-submit .hint { margin: 0; }
.optional-label {
    color: var(--muted-2);
    font-size: .72rem;
    font-weight: 500;
}

@media (max-width: 720px) {
    .proof-workflow-state {
        align-items: flex-start;
        flex-direction: column;
    }
    .proof-workflow-actions {
        justify-content: flex-start;
        width: 100%;
    }
    .proof-choice-grid,
    .proof-upload-form,
    .proof-upload-notes { grid-template-columns: 1fr; }
    .proof-upload-file-field,
    .proof-upload-notes,
    .proof-upload-submit { grid-column: 1; }
    .proof-upload-panel > summary { align-items: flex-start; }
    .proof-upload-summary-action { display: none; }
    .proof-upload-form { padding: 14px; }
}

/* ----------------------------------------------------------------- landing - */

.landing {
    --landing-ink: var(--ink);
    --landing-green: var(--primary);
    --landing-coral: var(--warn);
    background:
        linear-gradient(rgba(30, 58, 138, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 138, .04) 1px, transparent 1px),
        var(--paper);
}
.landing h2 { letter-spacing: -.03em; }
.hero-lede, .landing-principle > p { color: var(--body-text); }
.landing .hero-copy h1 { letter-spacing: -.04em; }
.landing-primary { border-radius: var(--r); box-shadow: 0 8px 20px rgba(30, 58, 138, .16); }
.landing-text-link { border-bottom-color: var(--line-strong); color: var(--ink-2); }
.landing-text-link:hover { border-color: var(--primary); }
.landing .hero-note { color: var(--muted-2); }

.proof-preview { border-radius: var(--r-xl); box-shadow: 0 24px 56px rgba(16, 24, 40, .1), var(--shadow-sm); }
.proof-preview::before { background: #e6ecf9; }
.preview-bar { border-bottom-color: var(--line); color: var(--muted-2); }
.preview-brand { color: var(--ink); }
.preview-brand i { border-radius: var(--r-sm); background: var(--primary); font: normal 700 .7rem var(--font-sans); }
.preview-heading div > span { color: var(--muted-2); }
.preview-status { border-radius: var(--r-sm); background: var(--ok-tint); color: var(--ok-ink); }
.artwork-stage { border-color: var(--line); }
.dimension { color: var(--muted-2); }
.preview-message { border-left: 2px solid var(--warn); background: var(--warn-tint); }
.preview-message p { color: var(--warn-ink); }
.preview-message strong { color: var(--warn-ink); }
.message-avatar { background: var(--primary-tint); color: var(--primary); }
.preview-actions span { border-color: var(--line-strong); border-radius: var(--r-sm); color: var(--ink-2); }
.preview-actions strong { border-radius: var(--r-sm); background: var(--primary); }

.landing-principle { border-top-color: var(--line); }
.section-label { color: var(--warn); letter-spacing: .12em; }
.landing-features { border-color: var(--line); background: var(--surface); }
.landing-features article { border-right-color: var(--line); }
.landing-features p { color: var(--muted); }
.feature-number { color: var(--muted-3); font: 600 .66rem var(--font-sans); }
.feature-icon { border-radius: var(--r-lg); background: var(--primary-tint); color: var(--primary); }

.landing-flow { background: var(--nav); }
.flow-copy p, .flow-steps p { color: var(--nav-muted); }
.flow-steps strong { font: 700 1rem var(--font-sans); }
.flow-steps li > span { border-color: rgba(255, 255, 255, .35); color: var(--nav-text); }

.landing-cta { background: var(--primary); color: #fff; }
.landing-cta .section-label { color: #a9beea; }
.landing-cta p { color: rgba(255, 255, 255, .84); }
.landing-light-button { border-color: #fff; border-radius: var(--r); background: #fff; color: var(--primary); }
.landing-light-button:hover { border-color: #eef2fb; background: #eef2fb; color: var(--primary-hover); }

/* ---------------------------------------------------- proof review / share - */

.proof-public { background: var(--paper); }
.proof-public-head { height: 64px; background: var(--surface); border-bottom-color: var(--line); color: var(--muted); }
.proof-review-title h1 { font-size: 1.7rem; }
.proof-review-title p { color: var(--muted); }
.proof-choice-picker { border-color: var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.proof-choice-tab { border-color: var(--line-strong); border-radius: var(--r); background: var(--surface); font-weight: 600; }
.proof-choice-tab:hover { border-color: var(--primary); background: var(--surface-2); }
.proof-choice-tab.selected {
    border-color: var(--primary);
    background: var(--primary-tint);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary);
}
.proof-choice-tab small { color: var(--primary); }

.proof-canvas { border-radius: var(--r-xl); background: var(--nav); box-shadow: var(--shadow-md); }
.proof-canvas img, .proof-canvas iframe { border-radius: var(--r-md); }

.customer-message {
    border-left: 4px solid var(--warn);
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
    background: var(--warn-tint);
    color: var(--warn-ink);
}
.approval-form { border-color: var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.approval-check { border-radius: var(--r-md); background: var(--surface-2); }
.approval-complete { border-radius: var(--r-lg); background: var(--ok-tint); color: var(--ok-ink); }
.approval-complete > span { background: var(--ok); }
.approval-complete.changes { background: var(--warn-tint); color: var(--warn-ink); }
.approval-complete.changes > span { background: var(--warn); }
.proof-footer { color: var(--muted-2); font-size: .8rem; }

.proof-version { border-color: var(--line); border-radius: var(--r-lg); }
.proof-version.current { border-color: var(--primary); background: var(--primary-tint); }
.share-box, .customer-link-box {
    border-color: #c7d5f1;
    border-radius: var(--r-lg);
    background: var(--primary-tint);
}
.customer-link-copy label { color: var(--primary); font-weight: 700; }
.customer-link-copy input { border-color: #c7d5f1; border-radius: var(--r); background: var(--surface); font-family: var(--font-mono); }
.proof-history > summary { color: var(--muted); }

.proof-maker-shell { border-color: var(--nav-line); border-radius: var(--r-lg); background: var(--nav); box-shadow: var(--shadow-md); }
.proof-maker-shell iframe { background: var(--nav); }
.proof-maker-notice { border: 0; background: var(--warn-tint); color: var(--warn-ink); }

.mfa-shield { border-radius: var(--r-lg); background: var(--primary); }
.mfa-status { border-radius: var(--r-lg); background: var(--surface-2); }
.mfa-setup { border-color: var(--line); border-radius: var(--r-lg); }
.qr-wrap { border-color: var(--line); border-radius: var(--r-xl); }
.recovery-panel { border: 0; border-radius: var(--r-lg); background: var(--warn-tint); color: var(--warn-ink); }
.recovery-codes code { border-color: #f3d9a4; border-radius: var(--r-sm); }

/* -------------------------------------------------------------- responsive - */

@media (max-width: 1100px) {
    .dashboard-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
    .sidebar { top: 64px; width: 64px; padding: 16px 8px; }
    .main-with-sidebar { margin-left: 64px; width: calc(100% - 64px); padding: 24px 20px 44px; }
}

@media (max-width: 560px) {
    .site-header { height: 58px; padding: 0 15px; }
    .workspace { min-height: calc(100vh - 58px); }
    .auth-wrap { min-height: calc(100vh - 58px); }
    .sidebar {
        top: auto;
        height: 58px;
        padding: 4px;
        background: var(--nav);
        border-top: 1px solid var(--nav-line);
        border-right: 0;
    }
    .sidebar nav a { min-height: 48px; color: var(--nav-muted); }
    .sidebar nav a.active { background: var(--nav-active); color: #fff; }
    .main-with-sidebar { margin: 0; width: 100%; padding: 20px 14px 78px; }
    input, select, textarea { font-size: 16px; }
}

/* ------------------------------------------------------------ plans/pricing - */

.pricing-hero { max-width: 720px; margin: 0 auto; padding: 8px 0 34px; text-align: center; }
.pricing-hero h1 { margin: 14px 0 16px; font-size: clamp(2rem, 4vw, 2.85rem); letter-spacing: -1px; line-height: 1.1; }
.pricing-lede { margin: 0 auto; max-width: 620px; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.pricing-gst { margin: 18px 0 0; color: var(--muted-2); font-size: .85rem; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    margin: 0 auto 56px;
    max-width: 1080px;
}
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.pricing-card.is-featured { border-color: var(--primary); box-shadow: var(--shadow-md); }
.pricing-flag {
    position: absolute;
    top: -11px;
    left: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.pricing-card h2 { margin: 0 0 6px; font-size: 1.28rem; }
.pricing-tagline { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.pricing-price { display: flex; align-items: baseline; gap: 7px; }
.pricing-price strong { font-size: 2.4rem; font-weight: 700; letter-spacing: -1.4px; line-height: 1; }
.pricing-price span { color: var(--muted-2); font-size: .82rem; }

.pricing-allowance, .pricing-features, .plan-option-allowance { margin: 0; padding: 0; list-style: none; }
.pricing-allowance { display: grid; gap: 8px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing-allowance li { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: .93rem; font-weight: 600; }
.pricing-allowance li span { color: var(--primary); }
.pricing-features { display: grid; gap: 9px; flex: 1; }
.pricing-features li { position: relative; padding-left: 21px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.pricing-features li::before {
    content: "";
    position: absolute;
    top: .45em;
    left: 3px;
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(-45deg);
}
.pricing-card .button { width: 100%; }

.pricing-detail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 44px;
    margin: 0 auto 20px;
    max-width: 940px;
    padding: 34px 0;
    border-top: 1px solid var(--line);
}
.pricing-detail h3 { margin: 0 0 8px; font-size: 1rem; }
.pricing-detail p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ------------------------------------------------------------ plan + usage - */

.plan-summary-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.plan-summary-head h2 { margin: 4px 0 5px; font-size: 1.6rem; }
.plan-summary-head p { margin: 0; }
.plan-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0 4px; }
.plan-period { margin: 10px 0 0; }
.plan-change-title { margin: 0 0 6px; font-size: 1.1rem; }

.plan-meter { padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.plan-meter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.plan-meter-label { color: var(--muted); font-size: .8rem; font-weight: 600; }
.plan-meter-value { color: var(--ink); font-size: 1.02rem; font-weight: 700; }
.plan-meter-value span { color: var(--muted-3); font-weight: 500; }
.plan-meter-track { height: 7px; border-radius: 999px; background: var(--neutral-tint); overflow: hidden; }
.plan-meter-track span { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width .2s ease; }
.plan-meter-note { margin: 9px 0 0; color: var(--muted-2); font-size: .78rem; line-height: 1.45; }
.plan-meter.is-near .plan-meter-track span { background: var(--warn-ink); }
.plan-meter.is-full .plan-meter-track span { background: var(--danger); }
.plan-meter.is-unlimited .plan-meter-track span { background: var(--muted-3); width: 100% !important; opacity: .35; }

.plan-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.plan-option {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}
.plan-option.is-current { border-color: var(--primary); background: var(--primary-tint); }
.plan-option-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.plan-option-head strong { font-size: 1.02rem; }
.plan-option-price { color: var(--muted); font-size: .82rem; font-weight: 600; }
.plan-option-allowance { display: grid; gap: 5px; flex: 1; }
.plan-option-allowance li { color: var(--muted); font-size: .84rem; }
.plan-option .field { margin: 0; }
.plan-option .field label { font-size: .74rem; }
.plan-option .field input { min-height: 34px; font-size: .82rem; }
.plan-option .button { width: 100%; }
.plan-option .badge { align-self: start; }

.status-active { background: var(--ok-tint); color: var(--ok-ink); }
.status-pastdue { background: var(--warn-tint); color: var(--warn-ink); }

@media (max-width: 900px) {
    .pricing-grid, .plan-options, .plan-meters, .pricing-detail { grid-template-columns: 1fr; }
    .pricing-flag { left: 18px; }
}

@media (max-width: 560px) {
    .plan-summary-head { flex-direction: column; }
    .pricing-price strong { font-size: 2rem; }
}
