:root {
  --bg: #f4efe6; --surface: #fffdf9; --ink: #18201b; --muted: #6f776f; --line: #e2dacb;
  --green: #0b2f21; --green-2: #1d5340; --moss: #e3ecdf; --clay: #9e7b42; --gold: #b8975a; --danger: #a83a2c;
  --radius: 12px; --shadow: 0 1px 2px rgba(30,40,25,.06), 0 4px 16px rgba(30,40,25,.05);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, system-ui, sans-serif; }
h1, h2 { font-family: 'Libre Caslon Text', Georgia, serif; font-weight: 700; letter-spacing: -.01em; color: var(--green); }
h1 { font-size: 30px; margin: 0 0 20px; } h2 { font-size: 20px; margin: 28px 0 12px; }
.card h2 { margin-top: 0; }
a { color: var(--green); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 32px clamp(18px, 4vw, 32px) calc(64px + env(safe-area-inset-bottom)); }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-2); margin: 0 0 8px; display: block; }

/* top bar */
.topbar { display: flex; align-items: center; gap: 24px; padding: calc(12px + env(safe-area-inset-top)) clamp(18px, 4vw, 32px) 12px; background: var(--green); color: #fff; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; font: 700 15px Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.brand img { height: 30px; width: auto; }
.brand small { display: block; font-size: 10px; letter-spacing: .2em; color: var(--gold); }
.topbar nav .count { background: var(--gold); color: var(--green); border-radius: 99px; padding: 1px 7px; font-size: 11px; font-weight: 700; margin-left: 4px; }
.mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--green); font-weight: 700; }
.topbar nav { display: flex; gap: 2px; flex: 1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar { flex-wrap: nowrap; }
.topbar nav a { color: rgba(255,255,255,.82); text-decoration: none; padding: 8px 12px; border-radius: 8px; white-space: nowrap; font-weight: 500; }
.topbar nav a:hover, .topbar nav a.on { background: rgba(255,255,255,.14); color: #fff; }
.topbar .link { color: rgba(255,255,255,.8); }

/* buttons + forms */
.btn { display: inline-block; background: var(--green); color: #fff; border: 0; border-radius: 9px; padding: 10px 18px; font: 600 14px Inter, sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-2); }
.btn.gold { background: var(--gold); color: var(--green); }
.btn.gold:hover { background: #c7a768; }
.btn.ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn.small { padding: 6px 12px; font-size: 13px; } .btn.full { width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--green); cursor: pointer; }
.link.danger, .danger { color: var(--danger); }
label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 15px Inter, sans-serif; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--moss); border-color: var(--green-2); }
label.check { display: flex; align-items: center; gap: 10px; color: var(--ink); }
label.check input { width: auto; margin: 0; }
label.inline { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
label.inline input { margin: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: auto; }
.pagehead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.pagehead h1 { margin: 0; }
.filters { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.filters input, .filters select { margin: 0; width: auto; flex: 1 1 180px; }
.form .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.span2 { grid-column: span 2; }
.alert { background: #f8e3df; color: var(--danger); padding: 10px 12px; border-radius: 8px; }
.notice { background: #f6ecd9; color: #7a5223; padding: 10px 14px; border-radius: 8px; }
.success { background: var(--moss); color: var(--green); padding: 10px 14px; border-radius: 8px; }

/* tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr[onclick] { cursor: pointer; } tbody tr[onclick]:hover { background: #f8f7f1; }
.actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 520px; }

/* status pills */
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; text-transform: capitalize; background: #eceae1; color: #555; }
.pill.lead { background: #e6ecf5; color: #34507a; } .pill.quoted { background: #f3e9d6; color: #84561c; }
.pill.scheduled { background: #e3e7f7; color: #3c4a9a; } .pill.in_progress { background: var(--moss); color: var(--green); }
.pill.completed { background: #d9eadb; color: #24562b; } .pill.on_hold { background: #f3dfdb; color: var(--danger); }

/* dashboard */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.stat .n { font: 700 30px 'Libre Caslon Text', serif; color: var(--green); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2.wide-left { grid-template-columns: 1.1fr 1fr; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border: 0; } .list .muted { grid-column: 1; font-size: 13px; }
.list .date { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 600; color: var(--clay); }

/* specials */
.ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.idea { display: flex; flex-direction: column; gap: 10px; }
.idea .title { font: 700 18px 'Libre Caslon Text', serif; border: 0; padding: 0; margin: 0; background: transparent; }
.idea textarea { margin: 0; flex: 1; }
.idea .btn { align-self: flex-start; }

/* email preview */
.preview iframe { width: 100%; height: 100%; min-height: 560px; border: 0; display: block; border-radius: var(--radius); }

/* public + auth */
.hero { min-height: 100vh; display: grid; align-items: center; padding: 48px 16px;
  background: radial-gradient(1200px 600px at 80% 10%, #3f7a45 0%, transparent 60%), linear-gradient(160deg, #1f3d23, #2f5d34); color: #fff; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; margin: 0 0 18px; }
.hero .eyebrow { color: #cfe3c8; } .lede { font-size: 19px; color: rgba(255,255,255,.85); margin: 0 0 28px; max-width: 560px; }
.hero .btn { background: #fff; color: var(--green); } .hero .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth .card { width: 100%; max-width: 400px; }
.auth h1 { font-size: 26px; }
.auth .small { display: block; margin-top: 14px; text-align: center; }

@media (max-width: 760px) {
  .grid2, .grid2.wide-left, .form .cols { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .topbar { padding: calc(10px + env(safe-area-inset-top)) 18px 10px; gap: 10px; flex-wrap: wrap; }
  .topbar nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
  .topbar nav a { white-space: nowrap; padding: 10px 14px; }
  .topbar .acct { margin-left: auto; }
  th:nth-child(5), td:nth-child(5) { display: none; }
}

/* ── ops screens ── */
.topbar .link { color: rgba(255,255,255,.75); text-decoration: none; font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); }
.kpi .k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.kpi .v { font: 700 28px 'Libre Caslon Text', serif; color: var(--green); margin-top: 6px; }
.kpi .s { font-size: 13px; color: var(--muted); }
.kpi.hl { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.pill.new { background: #f6ecd9; color: #7a5223; } .pill.contacted { background: #e6ecf5; color: #34507a; }
.pill.won, .pill.accepted, .pill.paid { background: #d9eadb; color: #24562b; } .pill.lost, .pill.declined, .pill.cancelled, .pill.unpaid { background: #f3dfdb; color: var(--danger); }
.pill.draft { background: #eceae1; color: #555; } .pill.sent, .pill.deposit { background: #f6ecd9; color: #7a5223; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photos a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg); position: relative; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos .tag { position: absolute; left: 6px; top: 6px; background: rgba(11,47,33,.85); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 99px; }
.photo-cell { position: relative; }
.photo-cell .del { position: absolute; right: 6px; top: 6px; background: rgba(255,255,255,.9); border: 0; border-radius: 99px; width: 26px; height: 26px; cursor: pointer; color: var(--danger); font-weight: 700; }
dl.facts { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; margin: 0; }
dl.facts dt { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
dl.facts dd { margin: 0; }
.sticky { position: sticky; top: 16px; }
.book h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: Inter, sans-serif; margin: 18px 0 8px; }
.book h3:first-child { margin-top: 0; }
.book .opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.book .opt button { flex: none; }
.book .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.book .row2 select, .book .row2 input { margin: 0; }
.items td input { margin: 0; padding: 8px 10px; }
.items td.amt input { text-align: right; width: 120px; }
.items .x { background: none; border: 0; color: var(--danger); font-size: 18px; cursor: pointer; }
.total-row { display: flex; justify-content: flex-end; gap: 24px; align-items: baseline; padding: 16px; font: 700 26px 'Libre Caslon Text', serif; color: var(--green); }
.total-row span { font: 600 13px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.copy { display: flex; gap: 8px; } .copy input { margin: 0; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.neg { color: var(--danger); } .pos { color: #24562b; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 2px; margin: 0 0 16px; }
legend { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
@media (max-width: 760px) { dl.facts { grid-template-columns: 1fr; gap: 2px; } dl.facts dd { margin-bottom: 10px; } .sticky { position: static; } }

/* ── pipeline, status tracker, price book tabs, messages ── */
.pill.lead { background: #e6ecf5; color: #34507a; }
.pill.big { font-size: 14px; padding: 6px 14px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 3px #f6ecd9; }
tr.unread td strong { color: var(--green); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--green); }
.tabs a.on { color: var(--green); border-bottom-color: var(--gold); }
.tabs .n { display: inline-block; min-width: 22px; text-align: center; font-size: 12px; background: #eceae1; color: var(--muted); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.tabs a.on .n { background: var(--gold); color: var(--green); }
.stage-select { margin: 0; width: auto; min-width: 120px; padding: 7px 10px; font-weight: 600; font-size: 13px; border-radius: 99px; cursor: pointer; }
.stage-select.new { background: #f6ecd9; color: #7a5223; } .stage-select.lead { background: #e6ecf5; color: #34507a; }
.stage-select.quoted { background: #f3e9d6; color: #84561c; } .stage-select.accepted { background: #d9eadb; color: #24562b; }
.stage-select.lost { background: #f3dfdb; color: var(--danger); }
.pill.new { background: #f6ecd9; color: #7a5223; }

.status-card { border-left: 4px solid var(--gold); }
.status-card.accepted { border-left-color: #3d8a4a; } .status-card.declined { border-left-color: var(--danger); } .status-card.draft { border-left-color: #b9b4a6; }
.status-now { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status-now .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stepper { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.stepper .step { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font: 600 14px Inter, sans-serif; color: var(--muted); cursor: pointer; }
.stepper .step:hover { border-color: var(--green-2); color: var(--green); }
.stepper .step .b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eceae1; font-size: 12px; }
.stepper .step.done { color: var(--green); } .stepper .step.done .b { background: var(--moss); color: var(--green); }
.stepper .step.on { background: var(--green); border-color: var(--green); color: #fff; } .stepper .step.on .b { background: var(--gold); color: var(--green); }
.stepper .step.lost.on { background: var(--danger); border-color: var(--danger); }
.track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 18px 0 0; padding: 0; counter-reset: t; }
.track li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; font-weight: 600; font-size: 14px; color: var(--muted); }
.track li::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.track li:first-child::before { display: none; }
.track li.done::before, .track li.on::before { background: var(--green-2); }
.track .b { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #eceae1; color: var(--muted); margin-bottom: 6px; font-size: 14px; }
.track li.done { color: var(--green); } .track li.done .b { background: var(--green-2); color: #fff; }
.track li.on { color: var(--green); } .track li.on .b { background: var(--gold); color: var(--green); box-shadow: 0 0 0 4px #f6ecd9; }
.track li.declined .b { background: var(--danger); } .track li.declined { color: var(--danger); }
.track small { font-weight: 400; color: var(--muted); font-size: 12px; min-height: 1em; }

.book-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--bg); padding: 4px; border-radius: 10px; margin-bottom: 14px; }
.book-tabs button { border: 0; background: transparent; padding: 10px 6px; border-radius: 8px; font: 600 13.5px Inter, sans-serif; color: var(--muted); cursor: pointer; }
.book-tabs button.on { background: #fff; color: var(--green); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.book label.mini, .mini-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font: 13px Inter, sans-serif; color: var(--muted); }
.choice strong { font: 700 20px 'Libre Caslon Text', serif; color: var(--green); }
.choice:hover { border-color: var(--green-2); }
.choice.on { border-color: var(--green); background: var(--moss); box-shadow: inset 0 0 0 1px var(--green); }
.choices.sm { margin: 0; gap: 6px; display: flex; }
.choices.sm .choice { padding: 6px 10px; align-items: center; font-size: 11px; }
.choices.sm .choice strong { font: 600 14px Inter, sans-serif; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.cond { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.items tr.added td { animation: added 1.4s ease; }
@keyframes added { from { background: #f6ecd9; } to { background: transparent; } }

.thread { display: grid; gap: 10px; margin-bottom: 14px; }
.msg { padding: 12px 14px; border-radius: 10px; background: var(--bg); }
.msg.out { background: var(--moss); margin-left: 24px; } .msg.in { margin-right: 24px; }
.msg .meta { font-size: 12px; color: var(--muted); } .msg .subj { font-weight: 600; margin: 2px 0 4px; }
.msg .body { white-space: pre-line; font-size: 14px; }
.compose { border-top: 1px solid var(--line); padding-top: 14px; }

.explain { background: #fbf6ea; border: 1px solid #ead9b5; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; line-height: 1.55; }
.explain ul { margin: 8px 0 0; padding-left: 20px; } .explain li { margin: 4px 0; }
.stepn { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--gold); font: 700 13px Inter, sans-serif; margin-right: 10px; vertical-align: 3px; }
details.after > summary { cursor: pointer; list-style: none; }
details.after > summary::-webkit-details-marker { display: none; }
details.after > summary h2::after { content: ' ▾'; color: var(--muted); font-size: 14px; }
details.after[open] > summary h2::after { content: ' ▴'; }
h3.sub { font: 700 12px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
label small.muted { font-weight: 400; }
@media (max-width: 760px) { .track { grid-template-columns: repeat(2, 1fr); row-gap: 16px; } .track li::before { display: none; } .cond { grid-template-columns: 1fr; } }
.pill.commercial { background: #e3e7f7; color: #3c4a9a; }
.seg { display: inline-flex; gap: 2px; background: #ebe6da; padding: 3px; border-radius: 99px; margin: 0 0 14px; }
.seg a { padding: 7px 14px; border-radius: 99px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 13px; }
.seg a.on { background: #fff; color: var(--green); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg .n { font-size: 11px; background: var(--gold); color: var(--green); border-radius: 99px; padding: 1px 6px; }
.stage-select.app-new { background: #f6ecd9; color: #7a5223; } .stage-select.app-reviewing { background: #e6ecf5; color: #34507a; }
.stage-select.app-interview { background: #e3e7f7; color: #3c4a9a; } .stage-select.app-hired { background: #d9eadb; color: #24562b; }
.stage-select.app-declined { background: #f3dfdb; color: var(--danger); }

/* ── roles, team, schedule, crew ── */
.pill.role-owner { background: #0b2f21; color: #e9dcc0; } .pill.role-admin { background: #e6ecf5; color: #34507a; } .pill.role-crew { background: var(--moss); color: var(--green); }
.role-key { display: grid; gap: 6px; margin: 0 0 18px; }
tr.inactive td { opacity: .5; }
.linkbox { border: 1.5px solid var(--gold); background: #fffaf0; }
.crew-pick { margin: 0 0 14px; }
.crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 14px; }
.crew-grid label.check { margin: 0; padding: 8px 0; }
.crew-grid input { width: 20px; height: 20px; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 160px; display: flex; flex-direction: column; gap: 8px; }
.day.today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.dhead { font-size: 13px; color: var(--muted); } .dhead strong { color: var(--green); }
.dempty { color: #c9c3b4; font-size: 13px; }
.sjob { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 9px; background: #f4f1e8; border-left: 3px solid var(--gold); text-decoration: none; color: var(--ink); font-size: 14px; }
.sjob:hover { background: #ece7da; }
.sjob.in_progress { border-left-color: var(--green-2); } .sjob.completed { border-left-color: #3d8a4a; opacity: .7; }
.sjob .st { font-size: 12px; font-weight: 700; color: var(--clay); }
.sjob .warn { color: var(--danger); font-weight: 600; }
@media (max-width: 900px) { .week { grid-template-columns: 1fr; } .day { min-height: 0; } .dempty { display: none; } }

/* crew phone screens */
.crew-wrap { max-width: 560px; margin: 0 auto; }
.crew-h { font-size: 28px; margin: 0 0 6px; }
.crew-sec { font: 700 13px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.crew-when { font-size: 17px; font-weight: 600; color: var(--green); margin: 0 0 10px; }
.empty-note { color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px; margin: 0; }
.jobcard { display: block; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 10px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.jobcard:active { transform: scale(.99); }
.jobcard.in_progress { border-left-color: var(--green-2); } .jobcard.completed { border-left-color: #3d8a4a; opacity: .75; }
.jobcard .when { font-size: 13px; font-weight: 700; color: var(--clay); }
.jobcard .who { font: 700 19px 'Libre Caslon Text', serif; color: var(--green); margin: 4px 0 2px; }
.jobcard .what { font-size: 15px; color: var(--ink); }
.jobcard .where { font-size: 14px; color: var(--muted); margin-top: 6px; }
.jobcard .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.bigbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.bigbtns .btn, .btn.xl { min-height: 54px; display: flex; align-items: center; justify-content: center; font-size: 16px; text-align: center; }
.seg-opt { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 16px; border-radius: 99px; color: var(--ink); font-weight: 600; cursor: pointer; }
.seg-opt:has(input:checked) { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg-opt input { width: auto; margin: 0; }
.login-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -2px 0 16px; }
.login-row label.check { margin: 0; font-size: 14px; }
.login-row input[type=checkbox] { width: 18px; height: 18px; }

[hidden] { display: none !important; }
/* account menu */
.acct { position: relative; flex: none; }
.acct summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; color: rgba(255,255,255,.85); padding: 4px 6px; border-radius: 99px; font-size: 14px; }
.acct summary::-webkit-details-marker { display: none; }
.acct summary:hover { background: rgba(255,255,255,.1); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--green); font-weight: 700; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px -12px rgba(0,0,0,.3); padding: 6px; z-index: 50; }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; padding: 11px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; background: none; border: 0; font: 500 15px Inter, sans-serif; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover, .acct-menu a.on { background: var(--bg); }
.acct-menu form { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.subnav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px 0 20px; }
.subnav a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a.on { color: var(--green); border-bottom-color: var(--gold); }
@media (max-width: 1100px) { .acct-name { display: none; } }

/* language switch (crew + sign-in) */
.lang { display: inline-flex; background: rgba(255,255,255,.12); border-radius: 99px; padding: 2px; }
.lang a { padding: 6px 12px; border-radius: 99px; font: 700 12px Inter, sans-serif; letter-spacing: .06em; color: rgba(255,255,255,.85); text-decoration: none; }
.lang a.on { background: var(--gold); color: var(--green); }
.auth-lang { display: flex; justify-content: flex-end; margin: -6px -6px 6px 0; }
.auth-lang .lang { background: var(--bg); }
.auth-lang .lang a { color: var(--muted); }
.auth-lang .lang a.on { color: var(--green); }
.crewbar { gap: 12px; }
.warn-text { color: var(--danger); font-weight: 600; }

/* prices, settings, security */
.book-tabs.wide { max-width: 520px; margin-bottom: 16px; }
.price-grid td, .price-grid th { padding: 10px 14px; vertical-align: middle; }
.price-grid th small { display: block; font-weight: 500; text-transform: none; letter-spacing: 0; }
.price-in { width: 84px; margin: 0; padding: 8px 10px; text-align: right; font-variant-numeric: tabular-nums; }
.price-in.changed { border-color: var(--gold); background: #fffaf0; }
.price-ro { font-variant-numeric: tabular-nums; font-weight: 600; }
.pair { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } .dash { color: var(--muted); }
.levels { display: flex; gap: 12px; flex-wrap: wrap; } .lvl { margin: 0; } .lvl small { display: block; margin-bottom: 4px; }
.savebar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); margin-top: 8px; }
.meter { height: 10px; background: #eceae1; border-radius: 99px; overflow: hidden; margin: 4px 0 8px; } .meter span { display: block; height: 100%; background: var(--green-2); }
.spark { width: 100%; height: 62px; color: var(--green-2); display: block; }

.gear { flex: none; display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85); text-decoration: none; padding: 7px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.25); font-size: 14px; white-space: nowrap; }
.gear:hover, .gear.on { background: rgba(255,255,255,.14); color: #fff; }
.topbar > .lang { flex: none; }
@media (max-width: 1100px) { .gear-t { display: none; } }
