/* Mycel app v2. Tokens and type scale documented in DESIGN.md. App-only overrides of base.css tokens. */
:root {
  --bg: #f6f6f3; --surface: #fff; --surface-2: #fafaf8; --ink: #15171a; --ink-2: #3b4048; --muted: #6b7079; --faint: #9a9fa7;
  --line: #e6e5e0; --line-2: #efeeea; --hover: rgba(21, 23, 26, .035);
  --r-xs: 6px; --r-sm: 8px; --r: 10px; --r-lg: 10px; --r-xl: 14px;
  --sh-1: none; --sh-o: 0 12px 32px -12px rgba(20, 23, 27, .18), 0 2px 6px rgba(20, 23, 27, .05);
}
body { background: var(--bg); font-size: 14px; line-height: 1.5; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.logo-lg, .logo { display: inline-block; width: 24px; height: 24px; background: url("/assets/img/brand/mycel-mark.svg") center/contain no-repeat; flex: none; }
.logo-lg { width: 48px; height: 48px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.btn { height: 36px; padding: 0 14px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 560; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; gap: 6px; }
.btn.lg { height: 44px; font-size: 14.5px; border-radius: var(--r); }
.btn svg { width: 15px; height: 15px; }
.btn.ghost { color: var(--ink-2); }
.chip { height: 22px; padding: 0 8px; font-size: 11.5px; border-radius: 6px; font-weight: 560; text-decoration: none; }
.chip.xs { height: 18px; padding: 0 6px; font-size: 10.5px; }
a.chip:hover { filter: brightness(.97); }
.field > span, .label { font-size: 12.5px; font-weight: 580; color: var(--ink-2); }
.label { text-transform: none; letter-spacing: 0; }
.input, .field input, .field select, .field textarea { border-radius: var(--r-sm); font-size: 14px; }
.input.sm { height: 32px; min-height: 32px; padding: 4px 10px; font-size: 13px; margin-top: 6px; }
.input.mono, textarea.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.55; width: 100%; }
code, .addr { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; background: var(--lo-soft); padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; }

/* auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-o); padding: 28px; display: grid; gap: 16px; }
.auth-card h1 { font-size: 22px; letter-spacing: -.02em; margin: 0; font-weight: 640; }
.auth-card .brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; }
.auth-alt { text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-alt a { color: var(--accent); font-weight: 560; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.err { color: var(--em); font-size: 13px; margin: 0; }

/* shell */
.shell { display: grid; min-height: 100vh; grid-template-columns: 1fr; }
.side { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
header.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 14px; background: rgba(246, 246, 243, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.top .org { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
header.top .sp { flex: 1; }
.brand-m { display: inline-flex; }
.icon-btn { position: relative; width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; flex: none; color: var(--ink-2); }
.icon-btn.sm { width: 28px; height: 28px; border-color: transparent; background: transparent; }
.icon-btn.sm:hover { background: var(--hover); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--em); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.icon-btn .badge.ink { background: var(--ink); }
.ask-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 11px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 560; font-size: 13px; color: var(--ink-2); }
.ask-btn .spark, .spark { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); flex: none; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2l2.2 6.6L21 11l-6.8 2.4L12 20l-2.2-6.6L3 11l6.8-2.4z"/></svg>') center/contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2l2.2 6.6L21 11l-6.8 2.4L12 20l-2.2-6.6L3 11l6.8-2.4z"/></svg>') center/contain no-repeat; }
.ask-btn .txt { display: none; }
.example-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 7px 14px; background: #fbf6ea; border-bottom: 1px solid #efe3c6; font-size: 12.5px; color: #5f4710; }
.example-bar b { font-weight: 650; }
.example-bar a { color: #5f4710; }
.example-bar select { height: 28px; border-radius: 7px; border: 1px solid #e3d3ac; background: #fff; padding: 0 8px; font-size: 12.5px; }
.content { padding: 18px 14px 110px; width: 100%; max-width: 1200px; margin: 0 auto; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a, .tabbar button { display: grid; justify-items: center; gap: 3px; padding: 5px 2px; text-decoration: none; font-size: 10.5px; font-weight: 560; color: var(--muted); background: none; border: 0; cursor: pointer; }
.tabbar svg { width: 20px; height: 20px; }
.tabbar .on { color: var(--accent); }
.navlist { display: grid; gap: 1px; }
.navlist a { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 7px; text-decoration: none; color: var(--ink-2); font-size: 13.5px; font-weight: 520; }
.navlist a svg { width: 17px; height: 17px; color: var(--faint); flex: none; }
.navlist a:hover { background: var(--hover); }
.navlist a.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.navlist a.on svg { color: var(--accent); }
.sheet-nav { display: grid; gap: 2px; }
.sheet-nav a { height: 42px; font-size: 14.5px; }

/* page */
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin: 2px 0 16px; }
.ph h1 { font-size: 19px; letter-spacing: -.015em; margin: 0; font-weight: 640; line-height: 1.3; }
.ph h1 a { text-decoration: none; }
.ph h1 a:hover { text-decoration: underline; }
.ph p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.ph .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { font-size: 12.5px; color: var(--muted); text-decoration: none; display: inline-flex; gap: 6px; margin-bottom: 6px; }
.crumb:hover { color: var(--ink); }
.crumb-in { font-size: 12.5px; color: var(--muted); text-decoration: none; display: block; margin-bottom: 4px; }
.grid, .stack-l { display: grid; gap: 16px; min-width: 0; align-content: start; }
.g2, .g3, .g4 { display: grid; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.panel > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; min-height: 48px; }
.panel > header h2 { font-size: 14.5px; margin: 0; letter-spacing: -.005em; font-weight: 620; }
.panel > header .meta { color: var(--muted); font-size: 12px; text-decoration: none; }
.panel > header a.meta:hover { color: var(--ink); }
.panel .pb { padding: 16px; }
.panel .pb.tight { padding: 10px 12px; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13.5px; display: grid; justify-items: center; gap: 2px; }
.empty b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; } .ink2 { color: var(--ink-2); }
.em-t { color: var(--em); } .warn-t { color: var(--hi); } .danger-t { color: var(--em) !important; }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; }
.stack { display: grid; gap: 10px; }
.sep { height: 1px; background: var(--line-2); margin: 12px 0; }
.prose { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ul, .ol { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); display: grid; gap: 2px; }
.ol { margin-top: 8px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wrap-t { white-space: normal !important; }
.only-m { display: block; } .only-d { display: none; }
.hide-m { display: none; }

/* metric strip */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; overflow: hidden; }
.kpi { display: grid; gap: 2px; padding: 12px 16px; text-decoration: none; min-width: 0; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.kpi:nth-child(2n) { border-right: 0; }
a.kpi:hover { background: var(--surface-2); }
.kpi .k { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v { font-size: 21px; font-weight: 620; letter-spacing: -.02em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 11.5px; color: var(--faint); }
.kpi.alert .v { color: var(--em); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; text-decoration: none; display: grid; gap: 2px; min-width: 0; }
.stat .v { font-size: 20px; font-weight: 620; letter-spacing: -.02em; line-height: 1.2; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat.alert .v { color: var(--em); }
.facts { display: grid; gap: 0; margin: 0; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; text-align: right; font-weight: 560; }
.facts a { text-decoration: none; } .facts a:hover { text-decoration: underline; }

/* tabs and segmented filters */
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0 0 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 9px 10px 10px; text-decoration: none; font-size: 13.5px; font-weight: 540; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.tabs .n, .seg .n { font-size: 11px; margin-left: 6px; color: var(--faint); font-weight: 560; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: #ecebe7; border-radius: var(--r-sm); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a { flex: none; padding: 5px 10px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 540; color: var(--muted); white-space: nowrap; }
.seg a:hover { color: var(--ink); }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 23, 27, .08); font-weight: 600; }
.seg-sm a { padding: 4px 8px; font-size: 12.5px; }
.seg-top { margin-bottom: 14px; }
.seg-wrap { padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 200px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--faint); }
.search svg { width: 15px; height: 15px; flex: none; }
.search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink); height: 100%; }
.search:focus-within { border-color: var(--ink-2); }
.toolbar select, .filters select, .filters .input { width: auto; height: 34px; min-height: 34px; padding: 0 28px 0 10px; font-size: 13px; border-radius: var(--r-sm); border: 1px solid var(--line); background-color: var(--surface); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; align-items: center; }
.filters label.row { color: var(--muted); }

/* action centre */
.dash { display: grid; gap: 16px; }
.side-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.pac { display: grid; }
.pa { display: grid; grid-template-columns: 3px 1fr; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.pa:last-child { border-bottom: 0; }
.pa .bar { border-radius: 3px; background: var(--line); }
.pa.emergency { background: #fffaf9; } .pa.emergency .bar { background: var(--em); } .pa.high .bar { background: var(--ur); } .pa.medium .bar { background: var(--hi); } .pa.low .bar { background: #c9cdd3; }
.pa-b { min-width: 0; display: grid; gap: 3px; }
.pa-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pa-h a { text-decoration: none; min-width: 0; }
.pa-h a:hover h3 { text-decoration: underline; }
.pa h3 { font-size: 13.5px; margin: 0; font-weight: 600; letter-spacing: -.003em; line-height: 1.4; }
.pa p { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.pa p b { font-weight: 600; color: var(--muted); }
.pa .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }

/* lists & tables */
.list { display: grid; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; min-width: 0; }
.li:last-child { border-bottom: 0; }
.li.top { align-items: flex-start; }
a.li:hover, label.li:hover { background: var(--surface-2); }
.li .main-t { min-width: 0; flex: 1; }
.li .t { font-weight: 560; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; text-decoration: none; }
.li a.t:hover { text-decoration: underline; }
.li .s { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .r { display: flex; gap: 6px; align-items: center; flex: none; }
.li .r.col { flex-direction: column; align-items: flex-end; }
.li .ic { width: 30px; height: 30px; border-radius: 7px; background: var(--lo-soft); display: grid; place-items: center; color: var(--muted); flex: none; }
.li .ic svg { width: 16px; height: 16px; }
.li .n5 { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; white-space: normal; font-weight: 500; }
.datebox { width: 40px; flex: none; text-align: center; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; border: 1px solid var(--line); border-radius: 7px; padding: 4px 0; }
.datebox b { display: block; font-size: 15px; color: var(--ink); letter-spacing: 0; }
.stars { color: var(--hi); letter-spacing: 1px; font-size: 13px; flex: none; } .stars i { color: var(--line); font-style: normal; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 560; color: var(--muted); font-size: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl a { color: var(--ink); font-weight: 580; text-decoration: none; }
.tbl a:hover { text-decoration: underline; }
.tbl tr.rowlink { cursor: pointer; } .tbl tr.rowlink:hover td { background: var(--surface-2); }
.tbl tr.skip-row td { color: var(--faint); }
.tbl-plain td { padding: 6px 0; border-bottom: 1px solid var(--line-2); } .tbl-plain tr:last-child td { border-bottom: 0; }
.tbl select { height: 32px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; background: var(--surface); font-size: 13px; max-width: 240px; }

/* job */
.job-head { display: grid; gap: 8px; margin-bottom: 14px; }
.job-head h1 { font-size: 19px; letter-spacing: -.015em; margin: 0; font-weight: 640; line-height: 1.3; }
.job-head h1 a { text-decoration: none; } .job-head h1 a:hover { text-decoration: underline; }
.emerg-bar { margin-bottom: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .emerg-bar > div { flex: 1; min-width: 220px; }
.jobgrid { display: grid; gap: 16px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 7px 14px; font-size: 13px; margin: 0; }
.kv.kv-s { grid-template-columns: 104px 1fr; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv a { text-decoration: none; font-weight: 560; } .kv a:hover { text-decoration: underline; }
.stage-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 12px; margin-bottom: 14px; }
.stages { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scrollbar-width: none; }
.stages::-webkit-scrollbar { display: none; }
.stages li { flex: 1 0 74px; display: grid; justify-items: center; gap: 4px; position: relative; text-align: center; padding: 0 2px; }
.stages li::before { content: ""; position: absolute; top: 9px; left: calc(-50% + 12px); right: calc(50% + 12px); height: 2px; background: var(--line); }
.stages li:first-child::before { display: none; }
.stages li.done::before, .stages li.cur::before { background: var(--accent); }
.stages .dotx { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; position: relative; z-index: 1; }
.stages .done .dotx { background: var(--accent); border-color: var(--accent); }
.stages .cur .dotx { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.stages .cur .dotx::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.stages .l { font-size: 11.5px; color: var(--faint); font-weight: 540; line-height: 1.25; }
.stages .done .l { color: var(--ink-2); } .stages .cur .l { color: var(--ink); font-weight: 650; }
.stages .w { font-size: 10.5px; color: var(--faint); min-height: 13px; }
.stages.small-st { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 8px 10px; max-width: 560px; }
.next-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.next-line .label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); font-weight: 650; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: start; padding: 6px 0; font-size: 13px; position: relative; }
.steps .b { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: 10.5px; font-weight: 650; color: var(--faint); }
.steps .done .b { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps .cur .b { border-color: var(--ink); color: var(--ink); }
.steps .w { color: var(--faint); font-size: 11.5px; }
.track { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.track li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 0 0 16px; position: relative; }
.track li::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.track li:last-child::before { display: none; }
.track .b { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.track .done .b { background: var(--accent); border-color: var(--accent); }
.track .cur .b { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.track .t { font-weight: 600; padding-top: 2px; } .track .s { font-size: 13px; color: var(--muted); }
.track li:not(.done):not(.cur) .t { color: var(--faint); font-weight: 500; }
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.media a, .media .doc { display: block; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--lo-soft); border: 1px solid var(--line); position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .doc { display: grid; place-items: center; font-size: 11.5px; color: var(--muted); text-align: center; padding: 6px; text-decoration: none; }
.assess { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); padding: 12px 14px; display: grid; gap: 8px; }
.assess .hd { display: flex; align-items: center; gap: 8px; font-weight: 620; font-size: 13.5px; flex-wrap: wrap; }
.flag { background: var(--em-soft); color: var(--em); border-radius: var(--r-sm); padding: 9px 12px; font-size: 13px; }
.flag b { display: block; margin-bottom: 2px; }
.callout { border-radius: var(--r); padding: 11px 14px; font-size: 13px; background: var(--st-soft); color: #1d3f61; }
.callout.slim { padding: 9px 12px; font-size: 12.5px; }
.callout a { color: inherit; font-weight: 600; }
.callout.ok { background: var(--ok-soft); color: #0f5a2b; } .callout.warn { background: var(--hi-soft); color: #6b4a06; } .callout.em { background: var(--em); color: #fff; }
.callout.em a { color: #fff; font-weight: 700; }
.thread { display: grid; gap: 8px; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 12px; background: var(--lo-soft); font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { justify-self: end; background: var(--ink); color: #fff; }
.msg.sys { justify-self: center; background: transparent; color: var(--muted); font-size: 12px; text-align: center; max-width: 100%; }
.msg .w { font-size: 11px; opacity: .7; margin-bottom: 3px; font-weight: 600; }
.msg-full { font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); }
.compose { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; }
.compose textarea { flex: 1; min-height: 40px; max-height: 160px; resize: vertical; padding: 9px 12px; border-radius: var(--r); border: 1px solid var(--line); font-size: 13.5px; }
.quote-cards { display: grid; gap: 12px; }
.qc { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 7px; background: var(--surface); align-content: start; }
.qc.rec { border-color: #9cc4b1; box-shadow: inset 0 0 0 1px #9cc4b1; }
.qc .amt { font-size: 20px; font-weight: 640; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.score { display: inline-grid; place-items: center; min-width: 38px; height: 28px; padding: 0 6px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 700; flex: none; font-variant-numeric: tabular-nums; }
.li.match { align-items: flex-start; }
.li.match input { margin-top: 3px; accent-color: var(--accent); }
.factors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; margin: 6px 0; max-width: 460px; }
.factors span { display: grid; grid-template-columns: 92px 1fr 24px; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.factors i { font-style: normal; }
.factors b { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--w), var(--lo-soft) var(--w)); }
.factors em { font-style: normal; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.audit { display: grid; gap: 0; font-size: 13px; }
.audit div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.audit div:last-child { border-bottom: 0; }
.audit time { color: var(--faint); font-size: 12px; }
.report { white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere; }

/* inbox */
.inbox { display: grid; gap: 16px; }
.ib-list .list { max-height: none; }
.li.ib { align-items: flex-start; gap: 10px; padding: 10px 14px; }
.li.ib.sel { background: var(--accent-soft); }
.ib-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: none; background: transparent; }
.ib-dot.on { background: var(--accent); }
.li.ib .t { font-size: 13px; }
.li.ib .s { font-size: 12px; }
.ib-detail { min-height: 200px; }
.ib-detail > header { align-items: flex-start; }
.ib-detail > header .meta { margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inbox.has-sel .ib-list { display: none; }
.inbox:not(.has-sel) .ib-detail { display: none; }

/* inspections */
.li.chk { align-items: flex-start; flex-wrap: wrap; }
.cond { display: flex; gap: 4px; flex-wrap: wrap; }
.cond label { position: relative; }
.cond input { position: absolute; opacity: 0; inset: 0; }
.cond span { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); font-size: 12.5px; cursor: pointer; font-weight: 540; background: var(--surface); }
.cond input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cond .c-good input:checked + span { background: var(--ok-soft); border-color: #9fd0b0; color: var(--ok); }
.cond .c-fair input:checked + span { background: var(--hi-soft); border-color: #e6cf8f; color: var(--hi); }
.cond .c-poor input:checked + span { background: var(--em-soft); border-color: #f0b4ad; color: var(--em); }
.cond .c-na input:checked + span { background: var(--lo-soft); border-color: #cdd1d6; color: var(--ink-2); }
.sticky-acts { position: sticky; bottom: 70px; z-index: 5; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; box-shadow: var(--sh-o); }

/* assistant */
.ctx-chip { font-size: 12px; color: var(--muted); padding: 6px 10px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); justify-self: start; }
.sugg2 { display: grid; gap: 6px; }
.sugg2 button { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 9px 11px; cursor: pointer; display: grid; gap: 2px; }
.sugg2 button:hover { border-color: #cfccc5; background: var(--surface-2); }
.sugg2 b { font-size: 13px; font-weight: 580; }
.sugg2 span { font-size: 11.5px; color: var(--muted); }

/* forms */
.form { display: grid; gap: 14px; }
.f2 { display: grid; gap: 12px; }
.f2 .full { grid-column: 1 / -1; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt span { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; cursor: pointer; font-weight: 520; }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop { border: 1.5px dashed #d6d3cc; border-radius: var(--r); padding: 16px; text-align: center; background: var(--surface-2); cursor: pointer; display: grid; gap: 4px; place-items: center; }
.drop:hover { border-color: var(--accent); }
.drop b { font-size: 13.5px; font-weight: 600; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs:empty { display: none; }
.thumbs .th { width: 68px; height: 68px; border-radius: var(--r-sm); overflow: hidden; background: var(--lo-soft); position: relative; display: grid; place-items: center; font-size: 10.5px; color: var(--muted); text-align: center; border: 1px solid var(--line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; cursor: pointer; line-height: 1; }
.thumbs .up { position: absolute; inset: 0; background: rgba(255, 255, 255, .7); display: grid; place-items: center; font-weight: 600; }
.req-wrap { max-width: 640px; margin: 0 auto; }
.stepn { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 650; color: var(--muted); flex: none; }
.stepn.done { background: var(--accent); border-color: var(--accent); color: #fff; }

/* modal / drawer */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(20, 23, 27, .32); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-height: 92vh; overflow: auto; background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--sh-o); padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: .6; } }
.modal h2 { font-size: 16.5px; margin: 0 0 2px; letter-spacing: -.01em; font-weight: 640; }
.modal .mh { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.modal .ft { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.drawer { position: fixed; z-index: 55; inset: 0; background: rgba(20, 23, 27, .2); display: flex; justify-content: flex-end; }
.drawer .dp { width: 100%; max-width: 420px; height: 100%; background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--sh-o); animation: slide .18s ease-out; border-left: 1px solid var(--line); }
@keyframes slide { from { transform: translateX(30px); opacity: .6; } }
.dp > header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dp > header h2 { margin: 0; font-size: 14.5px; flex: 1; font-weight: 620; }
.dp .body { flex: 1; overflow: auto; padding: 14px 16px; display: grid; gap: 12px; align-content: start; }
.dp .foot { padding: 10px 12px; border-top: 1px solid var(--line); padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.ai-q { justify-self: end; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 12px 12px 4px 12px; max-width: 88%; font-size: 13.5px; }
.ai-a { background: var(--surface-2); border: 1px solid var(--line); padding: 12px; border-radius: 12px 12px 12px 4px; font-size: 13.5px; display: grid; gap: 8px; }
.ai-a .items { display: grid; gap: 6px; }
.ai-a .it { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 8px 10px; text-decoration: none; display: block; text-align: left; cursor: pointer; width: 100%; }
.ai-a .it b { display: block; font-size: 13px; font-weight: 580; }
.ai-a .it span { color: var(--muted); font-size: 12px; }
.ai-a .src { font-size: 11px; color: var(--faint); }
.ai-a textarea { width: 100%; min-height: 140px; border-radius: var(--r-sm); border: 1px solid var(--line); padding: 10px; font-size: 13px; }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.sugg button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 11px; font-size: 12.5px; cursor: pointer; text-align: left; }
.notes-list .n { padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; display: grid; gap: 2px; text-decoration: none; }
.notes-list .n.unread { font-weight: 600; }
.notes-list .n.emergency { color: var(--em); }
#toast { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%) translateY(20px); z-index: 80; background: var(--ink); color: #fff; padding: 9px 14px; border-radius: var(--r); font-size: 13px; opacity: 0; pointer-events: none; transition: all .2s; max-width: calc(100% - 32px); box-shadow: var(--sh-o); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--em); }
.soon-card { padding: 28px 20px; display: grid; gap: 8px; justify-items: start; }
.soon-card h2 { font-size: 15px; margin: 0; font-weight: 620; }
.soon-card p { margin: 0; color: var(--ink-2); font-size: 13.5px; max-width: 620px; }
.soon-card ul { color: var(--ink-2); font-size: 13px; margin: 4px 0 0; }
.bars { display: grid; gap: 9px; }
.bars .br { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 10px; align-items: center; font-size: 13px; }
.bars .br .num { text-align: right; font-variant-numeric: tabular-nums; }
.bars .br .tr { height: 6px; border-radius: 3px; background: var(--lo-soft); overflow: hidden; margin-top: 4px; }
.bars .br .tr b { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.perm { font-size: 12.5px; }
.perm td, .perm th { text-align: center; }
.perm td:first-child, .perm th:first-child { text-align: left; }
.yes { color: var(--ok); font-weight: 700; } .no { color: var(--faint); }

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpis .kpi { border-bottom: 0; border-right: 1px solid var(--line-2); }
  .kpis .kpi:last-child { border-right: 0; }
  .kpis:has(> :nth-child(5)) { grid-template-columns: repeat(5, 1fr); }
  .f2 { grid-template-columns: 1fr 1fr; }
  .g2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .quote-cards { grid-template-columns: 1fr 1fr; }
  .overlay { align-items: center; padding: 20px; }
  .modal { max-width: 560px; border-radius: var(--r-xl); padding: 22px; }
  .content { padding: 24px 24px 60px; }
  .ask-btn .txt { display: inline; }
  .only-m { display: none; } .only-d { display: block; }
  .hide-m { display: inline-flex; }
  .ph h1 { font-size: 20px; }
}
@media (min-width: 1024px) {
  .shell { grid-template-columns: 224px 1fr; }
  .side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow: auto; padding: 14px 10px; border-right: 1px solid var(--line); background: #f1f1ed; }
  .side .brand { display: flex; align-items: center; gap: 9px; font-weight: 650; padding: 4px 10px 2px; text-decoration: none; font-size: 15px; letter-spacing: -.01em; }
  .side-org { font-size: 12px; color: var(--muted); padding: 0 10px 12px 43px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side .who { margin-top: auto; padding: 10px 6px 4px 10px; border-top: 1px solid var(--line); font-size: 12.5px; display: flex; align-items: center; gap: 9px; }
  .side .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side .who > div:nth-child(2) { flex: 1; min-width: 0; }
  .side .who .av { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 650; color: var(--ink-2); flex: none; }
  .brand-m, header.top .org { display: none; }
  .tabbar { display: none; }
  header.top { padding: 0 28px; }
  .content { padding: 24px 28px 60px; }
  .stats { grid-template-columns: repeat(5, 1fr); }
  .g4 { grid-template-columns: repeat(4, 1fr); }
  .dash { grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); align-items: start; }
  .jobgrid { grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); align-items: start; }
  .inbox { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); align-items: start; }
  .inbox.has-sel .ib-list, .inbox:not(.has-sel) .ib-detail { display: block; }
  .ib-list { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow: auto; }
  .crumb-in.only-m { display: none; }
  .sticky-acts { bottom: 16px; }
  #toast { bottom: 28px; }
}
a.panel > span > span > svg { width: 22px; height: 22px; display: block; }
@media print {
  .side, header.top, .tabbar, .example-bar, .acts, .tabs, .filters, .toolbar, .seg, button { display: none !important; }
  .shell { display: block; } .content { padding: 0; max-width: none; } .panel { border: 0; }
}
/* Room for the host's free-plan badge (bottom-right) below the mobile tab bar */
.has-host-badge .tabbar { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
.has-host-badge .content { padding-bottom: 170px; }
.has-host-badge .sticky-acts { bottom: 128px; }
@media (min-width: 1024px) { .has-host-badge .content { padding-bottom: 90px; } .has-host-badge .sticky-acts { bottom: 72px; } }

.pac-more { display: block; padding: 12px 16px; font-size: 13px; font-weight: 550; color: var(--accent); border-top: 1px solid var(--line-2); text-decoration: none; }
.pac-more:hover { background: var(--bg); }

/* mobile: collapse long filter rows behind a toggle; let list chips wrap under the title */
.only-m-i { display: inline-flex; }
@media (max-width: 719px) {
  .filters.m-collapsed { display: none; }
  .filters select { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .toolbar .search { flex: 1 1 100%; order: 2; }
  .li { flex-wrap: wrap; row-gap: 6px; }
  .li .main-t { flex: 1 1 100%; }
  .li .r { flex-wrap: wrap; }
  .li .r.col { flex-direction: row; align-items: center; }
}
@media (min-width: 720px) { .only-m-i { display: none !important; } }

/* ---- v3: match breakdown, calendar, AI activity, metrics */
.li.match.inel { opacity: .72; }
.bd { display: grid; gap: 3px; margin: 8px 0 4px; max-width: 620px; }
.bd-r { display: grid; grid-template-columns: 170px minmax(60px, 1fr) 118px; grid-template-rows: auto auto; column-gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.bd-r .bar { height: 6px; border-radius: 3px; background: var(--lo-soft); overflow: hidden; }
.bd-r .bar b { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.bd-r .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.bd-r .v em { font-style: normal; color: var(--faint); }
.bd-r .w { grid-column: 1 / -1; font-size: 11px; color: var(--faint); margin: 0 0 3px; }
@media (max-width: 720px) { .bd-r { grid-template-columns: 1fr 70px; } .bd-r .bar { grid-column: 1 / -1; grid-row: 2; } .bd-r .w { grid-row: 3; } }
.cal-h, .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-h span { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; padding-bottom: 4px; }
.cal-d { min-height: 74px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 4px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); overflow: hidden; }
.cal-d .n { font-size: 11px; font-weight: 600; color: var(--muted); }
.cal-d.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-d.past { opacity: .5; }
.cal-d.busy { background: var(--ur-soft); }
.cal-d.free { background: var(--ok-soft); }
.cal-e { font-size: 10.5px; line-height: 1.25; padding: 1px 4px; border-radius: 4px; background: rgba(255,255,255,.7); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.cal-e.job { background: var(--accent); color: #fff; }
.cal-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.cal-key.busy { background: var(--ur-soft); border: 1px solid var(--ur); } .cal-key.free { background: var(--ok-soft); border: 1px solid var(--ok); } .cal-key.job { background: var(--accent); }
@media (max-width: 720px) { .cal-d { min-height: 52px; } .cal-e { font-size: 9.5px; } }
.ai-list { display: grid; }
.ai-it { border-top: 1px solid var(--line-2); }
.ai-it:first-child { border-top: 0; }
.ai-it > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 16px; }
.ai-it > summary::-webkit-details-marker { display: none; }
.ai-it > summary .t { font-weight: 600; font-size: 14px; min-width: 0; }
.ai-it[open] > summary { background: var(--surface-2); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mcard { padding: 16px; display: grid; gap: 6px; align-content: start; }
.mcard .k { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mcard .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.mcard .v.nd { font-size: 15px; font-weight: 600; color: var(--faint); }
.mcard .s { font-size: 12px; color: var(--muted); }
pre.codes { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; font-size: 15px; letter-spacing: .06em; line-height: 1.7; margin: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }

/* ---- v4: contractor Today, availability, comparison, invite codes ---- */
.f3 { display: grid; gap: 12px; }
@media (min-width: 700px) { .f3 { grid-template-columns: 1fr 1fr 1fr; } }
.btn.big { min-height: 48px; padding: 0 18px; font-size: 15px; font-weight: 600; }
.bigrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.bigrow > .btn { flex: 1 1 140px; justify-content: center; }
.bigcol { display: grid; gap: 8px; }
.bigcol > .btn { justify-content: center; width: 100%; }
.today { max-width: 760px; }
.availbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.availbar .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; }
.tsec { margin: 0 0 18px; }
.tsec > h2 { font-size: 15px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.tsec > h2 .n { background: var(--line-2, #eee); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 600; }
.tcard { background: #fff; border: 1px solid var(--line, #e3e3e3); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.tcard-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 14px 0; color: inherit; text-decoration: none; }
.tcard-b { padding: 6px 14px 14px; }
.more-tools { margin-top: 6px; }
.more-tools > summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2, #555); padding: 6px 0; }
ul.checks { list-style: none; margin: 8px 0; padding: 0; font-size: 13.5px; display: grid; gap: 4px; }
ul.checks li.ok { color: var(--ok, #18794e); }
ul.checks li.no { color: var(--em, #b42318); font-weight: 600; }
code.jcode { font-size: 15px; font-weight: 700; letter-spacing: .04em; background: var(--bg-2, #f4f4f2); padding: 3px 8px; border-radius: 8px; user-select: all; }
.li.top { align-items: flex-start; }
table.cmp th:first-child { white-space: nowrap; color: var(--ink-2, #555); font-weight: 600; width: 1%; }
table.cmp td, table.cmp thead th { vertical-align: top; min-width: 150px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
textarea.input { width: 100%; }
@media (max-width: 640px) { .today .ph h1 { font-size: 26px; } }
/* v5: sponsored slot, publishing choices, owner portal */
.chip.spon{background:#fff4d6;color:#7a5200;border:1px solid #e9cf9a;font-weight:700;letter-spacing:.02em}
.panel.sponsored{border:1px dashed #e0b85c;background:linear-gradient(180deg,#fffcf3,#fff)}
.panel.sponsored header h2::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#d79a1c;margin-right:8px;vertical-align:middle}
.spwhy summary{cursor:pointer;color:var(--ink-2)}
.spwhy ul{margin:6px 0 0 18px;padding:0}
.pubchoice{display:flex;flex-direction:column;gap:6px}
.pubchoice .label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-3,#6b7280)}
a.stat{text-decoration:none;color:inherit}

/* =====================================================================================================================
   v6 design system (17 Nov 2026): forest-green sidebar, warm cream canvas, Apple-like minimalism.
   System font first (SF on Apple devices), Inter as the fallback. Soft depth, rounded surfaces, frosted top bar,
   gentle motion that switches off with prefers-reduced-motion. Everything above stays as the structural base.
   ===================================================================================================================== */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --bg: #f6f3ec; --surface: #fffdf9; --surface-2: #fbf8f2; --ink: #17201b; --ink-2: #3a433d; --muted: #6c736d; --faint: #9aa09a;
  --line: #e8e2d6; --line-2: #f0ebe1; --hover: rgba(31, 77, 58, .05);
  --accent: #1f4d3a; --accent-ink: #163a2b; --accent-soft: #e6efe9;
  --forest: #1c3a2e; --forest-2: #24473a; --cream: #f3ecdc;
  --r-sm: 10px; --r: 16px; --r-lg: 16px; --r-xl: 22px;
  --sh-1: 0 1px 2px rgba(28, 40, 32, .04), 0 2px 8px -4px rgba(28, 40, 32, .06);
  --sh-2: 0 12px 30px -14px rgba(28, 40, 32, .20), 0 2px 6px rgba(28, 40, 32, .04);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
html, body { font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--ink); letter-spacing: -.003em; }

/* buttons: forest primary, gentle press */
.btn { border-radius: 11px; transition: background .18s var(--ease), border-color .18s, box-shadow .18s, transform .12s var(--ease); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn.primary:hover { background: var(--forest-2); }
.btn.primary svg { width: 14px; height: 14px; }
.btn:not(.primary):not(.danger):not(.accent):hover { box-shadow: var(--sh-1); }
.input, .field input, .field select, .field textarea { border-radius: 12px; background-color: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 77, 58, .10); outline: none; }
.chip { border-radius: 999px; padding: 0 10px; }

/* page header: small green eyebrow + big confident title */
.eyebrow { font-size: 11.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: #3c7a5c; margin: 0 0 6px; }
.ph { margin: 6px 0 22px; position: relative; z-index: 1; }
.ph h1 { font-size: 26px; font-weight: 720; letter-spacing: -.028em; line-height: 1.12; }
.ph p { font-size: 14px; margin-top: 8px; }
@media (min-width: 720px) { .ph h1 { font-size: 34px; } }

/* surfaces */
.panel { border-radius: var(--r); border-color: var(--line); box-shadow: var(--sh-1); background: var(--surface); }
.panel > header { border-bottom-color: var(--line-2); min-height: 52px; padding: 14px 18px; }
.panel > header h2 { font-size: 15px; font-weight: 650; }
.panel .pb { padding: 18px; }
.kpis, .stat { border-radius: var(--r); box-shadow: var(--sh-1); background: var(--surface); }
.kpi .v, .stat .v { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.li { padding: 13px 18px; transition: background .15s; }
a.li:hover { background: var(--hover); }
.callout { border-radius: 14px; }
.modal { border-radius: 22px; }

/* segmented controls (Apple-style) */
.seg { background: #ece6d9; border-radius: 12px; padding: 3px; }
.seg a { border-radius: 9px; transition: background .2s var(--ease), color .2s; }
.seg a.on { background: #fff; box-shadow: 0 1px 3px rgba(28, 40, 32, .12); }
.tabs a.on { border-bottom-color: var(--accent); color: var(--ink); }

/* frosted top bar */
header.top { background: rgba(246, 243, 236, .72); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom-color: rgba(232, 226, 214, .7); height: 60px; }
.ask-btn { background: var(--forest); border-color: var(--forest); color: #fff; border-radius: 12px; height: 38px; padding: 0 14px; transition: transform .12s var(--ease), background .18s; }
.ask-btn:hover { background: var(--forest-2); } .ask-btn:active { transform: scale(.97); }
.ask-btn .spark { background: #cfe7d8; }
.icon-btn { border-radius: 12px; width: 38px; height: 38px; background: #fff; border-color: var(--line); }
.top-av { width: 36px; height: 36px; border-radius: 50%; background: #ece6d9; color: var(--ink-2); display: grid; place-items: center; font-size: 12.5px; font-weight: 650; text-decoration: none; flex: none; }
.has-hero header.top { background: rgba(246, 243, 236, .35); border-bottom-color: transparent; }

/* hero photo bleeding in top-right (decorative, behind the page header) */
.main { position: relative; }
.app-hero { position: absolute; top: 0; right: 0; width: min(58%, 760px); height: 300px; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 100%), linear-gradient(to top, transparent 0, #000 45%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to left, #000 35%, transparent 100%); }
.app-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.app-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, var(--bg)); }
.has-hero header.top, .has-hero .content { position: relative; z-index: 1; }
@media (max-width: 719px) { .app-hero { width: 100%; height: 190px; opacity: .45; } }

/* jobs/requests photo thumbnail */
.jthumb { width: 56px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; background: #e9e3d6; }
.jthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* organisation marks (logo, designed example mark, or initials) */
.omark { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; overflow: hidden; color: #fff; background: var(--forest); }
.omark svg { width: 70%; height: 70%; }
.omark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.omark b { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.omark.sm { width: 26px; height: 26px; border-radius: 8px; } .omark.sm b { font-size: 10.5px; }
.omark.lg { width: 112px; height: 80px; border-radius: 14px; } .omark.lg svg { width: 52px; height: 52px; } .omark.lg b { font-size: 24px; }

/* sidebar: deep forest green */
@media (min-width: 1024px) {
  .shell { grid-template-columns: 248px 1fr; }
  .side { background: var(--forest); border-right: 0; padding: 18px 14px; color: #e9efe9; gap: 6px; }
  .side .brand { color: #fff; font-size: 17px; font-weight: 700; padding: 4px 8px 10px; }
  .side-org { display: flex; align-items: center; gap: 9px; margin: 2px 0 14px; padding: 9px 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; color: #fff; font-size: 13px; font-weight: 600; }
  .side-org span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side .navlist { gap: 3px; }
  .side .navlist a { color: rgba(240, 245, 240, .86); height: 40px; border-radius: 11px; font-size: 14px; font-weight: 520; padding: 0 12px; transition: background .18s var(--ease), color .18s; }
  .side .navlist a svg { color: rgba(240, 245, 240, .72); }
  .side .navlist a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
  .side .navlist a.on { background: var(--cream); color: var(--forest); box-shadow: none; font-weight: 640; }
  .side .navlist a.on svg { color: var(--forest); }
  .nbadge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 11.5px; font-weight: 650; display: grid; place-items: center; }
  .side .navlist a.on .nbadge { background: var(--forest); }
  .side-card { margin-top: auto; display: grid; gap: 3px; position: relative; text-align: left; padding: 14px 44px 14px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; cursor: pointer; font: inherit; transition: background .2s; }
  .side-card:hover { background: rgba(255, 255, 255, .1); }
  .side-card b { font-size: 13.5px; } .side-card span { font-size: 12px; color: rgba(240, 245, 240, .72); line-height: 1.35; }
  .side-card .go { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; }
  .side-card .go svg { width: 13px; height: 13px; color: #fff; }
  .side .who { margin-top: 10px; border-top-color: rgba(255, 255, 255, .12); color: #fff; }
  .side .who .muted { color: rgba(240, 245, 240, .6); }
  .side .who .av { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
  .side .who .icon-btn { color: #fff; background: transparent; border-color: transparent; }
  .content { padding: 30px 40px 72px; max-width: 1240px; }
  header.top { padding: 0 40px; }
}
.side-card { display: none; } @media (min-width: 1024px) { .side-card { display: grid; } }
.nbadge { display: none; } @media (min-width: 1024px) { .nbadge { display: grid; } }

/* mobile tab bar: frosted */
.tabbar { background: rgba(255, 253, 249, .82); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); }
.tabbar .on { color: var(--forest); }

/* page enter transition */
.content.enter { animation: pos-enter .38s var(--ease) both; }
@keyframes pos-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* open marketplace (reference layout) */
.om-pills { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: -8px 0 20px; font-size: 13px; color: var(--ink-2); position: relative; z-index: 1; }
.om-pills span { display: inline-flex; align-items: center; gap: 7px; } .om-pills svg { width: 16px; height: 16px; color: var(--forest); }
.filterbar { background: rgba(255, 253, 249, .9); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--sh-2); align-items: flex-end; gap: 12px 16px; margin-bottom: 22px; position: relative; z-index: 1; }
.filterbar .field { min-width: 200px; } .filterbar .field.search { flex: 1; min-width: 220px; }
.filterbar select, .filterbar input { height: 42px !important; min-height: 42px !important; border-radius: 12px !important; width: 100%; }
.inp-ic { position: relative; display: block; } .inp-ic svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; } .inp-ic input { padding-left: 36px !important; }
.filterbar .check { height: 42px; align-items: center; }
.filterbar .btn { height: 42px; }
.om-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.om-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.om-sort { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.om-sort select { border: 0; background: transparent; font-weight: 600; color: var(--ink); font-size: 13px; cursor: pointer; }
.om-list { display: grid; gap: 12px; margin-bottom: 18px; }
.om-group { font-size: 14px; font-weight: 650; margin: 14px 0 8px; }
.omcard { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 12px 16px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.omcard:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.omcard.hot { border-color: #e8cf9f; background: linear-gradient(#fffdf8, #fffaf0); }
.om-b { min-width: 0; display: grid; gap: 7px; }
.om-t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .om-t h3 { margin: 0; font-size: 16.5px; font-weight: 680; letter-spacing: -.015em; }
.om-m { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink-2); }
.om-m span { display: inline-flex; align-items: center; gap: 5px; } .om-m svg { width: 14px; height: 14px; color: var(--muted); }
.om-tags { display: flex; flex-wrap: wrap; gap: 6px; } .om-tags span { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; background: #f1ece1; color: var(--ink-2); text-transform: capitalize; }
.om-r { display: grid; justify-items: end; gap: 12px; align-self: stretch; align-content: space-between; }
.om-when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.om-save { width: 36px !important; height: 36px !important; } .om-save svg { width: 18px; height: 18px; } .om-save.on svg { fill: var(--forest); color: var(--forest); }
.omcard .btn.primary { height: 38px; padding: 0 16px; }
@media (max-width: 719px) {
  .omcard { grid-template-columns: auto 1fr; padding: 12px; gap: 12px; align-items: start; }
  .omcard .omark.lg { width: 64px; height: 56px; } .omcard .omark.lg svg { width: 36px; height: 36px; }
  .om-r { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .filterbar .field, .filterbar .field.search { min-width: 100%; }
  .ph h1 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .omcard:hover { transform: none; }
}
/* v6 fixes */
.filterbar .field { display: grid; gap: 6px; }
.filterbar .field > .inp-ic { font-size: 14px; font-weight: 400; color: var(--ink); display: block; }
.filterbar select, .filterbar input:not([type=checkbox]) { height: 42px !important; min-height: 42px !important; border-radius: 12px !important; width: 100%; }
.filterbar input[type=checkbox] { width: 18px; height: 18px; min-height: 0 !important; accent-color: var(--forest); }
.filterbar .check { display: inline-flex; gap: 8px; font-size: 13.5px; white-space: nowrap; }
.has-hero header.top > .btn.primary { display: none; }
.content a.panel[href="#/report"] { background: var(--forest) !important; border-color: var(--forest) !important; border-radius: 20px; box-shadow: var(--sh-2); transition: transform .2s var(--ease); }
.content a.panel[href="#/report"]:active { transform: scale(.985); }
@media (max-width: 719px) { .li:has(> .jthumb) { flex-wrap: nowrap; align-items: flex-start; } .li:has(> .jthumb) .main-t { flex: 1 1 auto; } .li:has(> .jthumb) > .chip, .li:has(> .jthumb) .r { flex: none; } }
.filterbar .field.om-search { flex: 1; min-width: 220px; }
.om-tags span { text-transform: none; }
@media (max-width: 719px) { .filterbar .field.om-search { min-width: 100%; order: 0; } }

/* ================================================================ v7: report inbox → review → post for quotes */
.cbadge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:11px;background:var(--forest,#1c3a2e);color:#fff;font-size:12px;font-weight:700;margin-left:6px;vertical-align:2px}
.inbox7{margin-bottom:18px;overflow:hidden}
.inbox7 header h2{display:flex;align-items:center}
.rcards{display:grid;gap:0}
.rcard{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:14px 18px;border-top:1px solid rgba(28,58,46,.08);color:inherit;text-decoration:none;transition:background .18s ease,transform .18s ease}
.rcard:first-child{border-top:0}
.rcard:hover{background:rgba(31,77,58,.05)}
.rcard .jthumb{width:72px;height:72px;border-radius:14px}
.rc-t{font-weight:650;font-size:16px;letter-spacing:-.01em}
.rc-w{color:#5b6660;font-size:13.5px;margin-top:2px}
.rc-c{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;align-items:center}
.rc-ai{font-size:11.5px;color:#5b6660;border:1px dashed rgba(28,58,46,.3);border-radius:999px;padding:2px 8px}
.rc-r{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.rc-go{display:inline-flex;align-items:center;gap:4px;font-weight:600;color:var(--accent,#1f4d3a);font-size:14px}
.rc-go svg{width:16px;height:16px}
.rv-call{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.rv-call .btn{margin-left:auto}
.rv-ph{align-items:flex-end}
.rv-ph h1{font-size:clamp(26px,3.2vw,38px);letter-spacing:-.025em;margin:4px 0}
.rv-ph .sub{color:#5b6660;margin:0}
.flow7{list-style:none;display:grid;grid-template-columns:repeat(6,1fr);gap:0;margin:6px 0 18px;padding:0;counter-reset:f}
.flow7 li{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;font-size:13px;color:#7a847e}
.flow7 li::before{content:"";position:absolute;top:14px;left:-50%;width:100%;height:2px;background:rgba(28,58,46,.14);z-index:0}
.flow7 li:first-child::before{display:none}
.flow7 li.done::before,.flow7 li.cur::before{background:var(--accent,#1f4d3a)}
.flow7 .b{position:relative;z-index:1;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;border:2px solid rgba(28,58,46,.18);font-weight:700;font-size:13px}
.flow7 li.done .b{background:var(--accent,#1f4d3a);border-color:var(--accent,#1f4d3a);color:#fff}
.flow7 li.cur .b{border-color:var(--accent,#1f4d3a);color:var(--accent,#1f4d3a);box-shadow:0 0 0 5px rgba(31,77,58,.12)}
.flow7 li.done .l,.flow7 li.cur .l{color:#1c2a23;font-weight:600}
.flow7 .w{font-size:11.5px;min-height:14px}
.rv-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.rv-desc{font-size:16px;line-height:1.5;margin:0}
.rv-ai{background:linear-gradient(180deg,#fbfaf6,#f4f1e8)}
.rv-ai header .chip{font-size:11.5px}
.rv-media{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.rv-media figure{margin:0;display:flex;flex-direction:column;gap:6px}
.rv-media img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;display:block}
.rv-media figure.off img{opacity:.35;filter:grayscale(1)}
.rv-media label{display:flex;gap:6px;align-items:center}
.rv-form{margin-bottom:90px}
.rv-form .two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.rv-form .field>span svg{width:14px;height:14px;vertical-align:-2px}
.rv-bar{position:sticky;bottom:0;z-index:5;display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px 16px;margin:-80px -4px 0;background:rgba(246,243,236,.86);backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px);border-top:1px solid rgba(28,58,46,.1);border-radius:16px 16px 0 0}
.rv-bar .btn.lg{padding:12px 22px;font-size:15.5px;border-radius:999px}
.rv-more{display:flex;flex-wrap:wrap;gap:4px;margin-left:auto}
.danger-t{color:#a3321f!important}
.rv-posted{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.rv-posted .btn{margin-left:auto}
.rv-out{margin-bottom:16px}
.sheet7 .aud7{border:0;padding:0;margin:0;display:grid;gap:8px}
.sheet7 legend{font-weight:600;margin-bottom:8px;font-size:14px}
.aopt{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1.5px solid rgba(28,58,46,.14);border-radius:14px;cursor:pointer;transition:border-color .15s,background .15s}
.aopt:has(input:checked){border-color:var(--accent,#1f4d3a);background:rgba(31,77,58,.05)}
.aopt.dis{opacity:.55;cursor:not-allowed}
.aopt input{margin-top:3px;width:18px;height:18px;flex:none}
.aopt b{display:block}.aopt small{color:#5b6660;font-size:12.5px}
.pick7{display:grid;gap:6px;padding:4px 14px 6px 44px}
.pick7 label{gap:8px;font-size:14px}
.pick7 input{width:16px;height:16px}
.sheet7 .two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.t-out{padding:12px 14px;border-radius:12px;background:#f7f2e6;border:1px solid #eadfc4}
@media (max-width:760px){
  .rv-grid,.rv-form .two,.sheet7 .two{grid-template-columns:1fr}
  .rcard{grid-template-columns:auto 1fr;padding:12px 14px}
  .rcard .jthumb{width:56px;height:56px}
  .rc-r{grid-column:2;flex-direction:row;justify-content:space-between;align-items:center}
  .flow7 li{font-size:11px}.flow7 .w{display:none}.flow7 .b{width:24px;height:24px;font-size:11px}.flow7 li::before{top:11px}
  .rv-bar{margin:-80px -12px 0;border-radius:0}
  .rv-bar .btn.lg{flex:1}
  .rv-more{margin-left:0;width:100%}
  .rv-more .btn{font-size:13px;padding:6px 10px}
}
.rc-d{color:#36423b;font-size:13.5px;margin-top:4px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
@media (max-width:760px){.rc-d{-webkit-line-clamp:2}}
.t-now{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;margin:0 0 14px;border-radius:16px;background:#fff;border:1px solid rgba(28,58,46,.12);box-shadow:0 1px 2px rgba(0,0,0,.03)}
.t-now b{font-size:16px;display:block;margin:2px 0}
.t-dot{width:12px;height:12px;border-radius:50%;background:var(--accent,#1f4d3a);margin-top:6px;flex:none;box-shadow:0 0 0 5px rgba(31,77,58,.14)}
.t-now.off .t-dot{background:#b7791f;box-shadow:0 0 0 5px rgba(183,121,31,.15)}

/* v8: plan panel */
.plan-pick{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
@media(max-width:760px){.plan-pick{grid-template-columns:1fr 1fr}}
.pp{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px;border-radius:14px;border:1.5px solid rgba(28,58,46,.15);background:#fff;cursor:pointer;text-align:left;font:inherit;color:inherit}
.pp b{font-size:15px}.pp span{font-size:18px;font-weight:650;letter-spacing:-.01em}.pp small{font-size:11.5px;font-weight:500;color:#5b6660}
.pp.on{border-color:var(--accent,#1f4d3a);background:rgba(31,77,58,.06);box-shadow:0 0 0 3px rgba(31,77,58,.12)}
.pp:disabled{cursor:default;opacity:.75}
.pp .pp-pop{position:absolute;top:-9px;right:10px;font-size:10.5px!important;font-weight:650;background:var(--accent,#1f4d3a);color:#fff;padding:2px 8px;border-radius:999px}

/* v8: platform owner console */
.oc-note{margin-bottom:14px}
.oc-tiles{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:16px}
@media(max-width:1100px){.oc-tiles{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.oc-tiles{grid-template-columns:1fr 1fr}}
.oc-tile{display:flex;flex-direction:column;gap:4px;padding:16px 18px;border-radius:18px;background:#fff;border:1px solid rgba(28,58,46,.1);color:inherit;text-decoration:none;transition:transform .2s,box-shadow .2s}
a.oc-tile:hover{transform:translateY(-2px);box-shadow:0 12px 28px -18px rgba(28,58,46,.4)}
.oc-tile .k{font-size:13px;color:#5b6660}.oc-tile b{font-size:34px;letter-spacing:-.03em;line-height:1.1}.oc-tile .s{font-size:12px;color:#5b6660}
.oc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
@media(max-width:900px){.oc-grid{grid-template-columns:1fr}}
.hbars{display:grid;gap:9px}
.hb{display:grid;grid-template-columns:150px 1fr 40px;gap:10px;align-items:center;color:inherit;text-decoration:none;font-size:13.5px}
.hb-t{height:10px;border-radius:6px;background:rgba(28,58,46,.08);overflow:hidden}.hb-t i{display:block;height:100%;background:var(--accent,#1f4d3a);border-radius:6px;min-width:2px}
.hb b{text-align:right}
@media(max-width:760px){.hb{grid-template-columns:110px 1fr 32px}}
.wchart{display:grid;grid-template-columns:repeat(12,1fr);gap:6px;height:170px;align-items:end}
.wc-col{display:flex;flex-direction:column;align-items:center;gap:6px;height:100%}
.wc-bars{flex:1;width:100%;display:flex;gap:2px;align-items:flex-end;justify-content:center;border-bottom:1px solid rgba(28,58,46,.12)}
.wc-bars i{display:block;width:30%;border-radius:4px 4px 0 0}
.wc-col span{font-size:10.5px;color:#7a847e;white-space:nowrap}
.wchart i.s0,.wc-key i.s0{background:#1f4d3a}.wchart i.s1,.wc-key i.s1{background:#7fae96}.wchart i.s2,.wc-key i.s2{background:#d2a24c}
.wc-key{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px;font-size:12.5px;color:#36423b}.wc-key i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
@media(max-width:760px){.wc-col span{font-size:9px}.wchart{gap:3px}}
.oc-search{max-width:260px;padding:7px 12px;border-radius:999px;border:1px solid rgba(28,58,46,.18);font:inherit;font-size:13.5px;background:#fff}
.oc-tbl td{vertical-align:top}
.masked{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;color:#36423b}
.masked.shown{font-family:inherit;font-size:inherit;background:#fff6d6;padding:1px 4px;border-radius:4px}
.revealed{margin-top:8px;padding:10px 12px;background:#fff6d6;border-radius:10px}

/* v8: contractor job map */
.jobmap-wrap{margin:0 0 14px}
.jobmap{height:420px;border-radius:18px;overflow:hidden;border:1px solid rgba(28,58,46,.12);background:#e9efe9;z-index:0}
.panel .jobmap-wrap{margin:12px 16px}
.jobmap-note{margin:8px 2px 0;display:flex;gap:6px;align-items:flex-start}.jobmap-note svg{width:14px;height:14px;flex:none;margin-top:1px}
.rad-sel{display:inline-flex;align-items:center;gap:6px}
.cw-tools{gap:10px;align-items:center}
.leaflet-container{font:inherit}
.leaflet-popup-content{font-size:13.5px;line-height:1.4}
@media(max-width:760px){.jobmap{height:340px;border-radius:14px}.panel .jobmap-wrap{margin:10px}}

/* v8: first-run checklist */
.ob-card{margin-bottom:18px;overflow:hidden;background:linear-gradient(180deg,#fff,#fbf9f3)}
.ob-card header{align-items:flex-start}.ob-card header h2{margin:0}
.ob-prog{height:6px;margin:0 18px;border-radius:4px;background:rgba(28,58,46,.1);overflow:hidden}.ob-prog i{display:block;height:100%;background:var(--accent,#1f4d3a);border-radius:4px;transition:width .5s ease}
.ob-list{list-style:none;margin:8px 0 6px;padding:0}
.ob-list li{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:12px 18px}
.ob-n{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;border:2px solid rgba(28,58,46,.2);color:#5b6660;background:#fff}
.ob-list li.done .ob-n{background:var(--accent,#1f4d3a);border-color:var(--accent,#1f4d3a);color:#fff}
.ob-list li.cur .ob-n{border-color:var(--accent,#1f4d3a);color:var(--accent,#1f4d3a);box-shadow:0 0 0 4px rgba(31,77,58,.12)}
.ob-b{display:flex;flex-direction:column;gap:2px}.ob-b b{font-size:15px}.ob-b span{font-size:13px;color:#5b6660}
.ob-list li.done .ob-b b{color:#5b6660;text-decoration:line-through;text-decoration-color:rgba(28,58,46,.35)}
.ob-codes{display:grid;gap:8px;margin-bottom:12px}.ob-code{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid rgba(28,58,46,.12);border-radius:12px}
.ob-link{margin:8px 0;word-break:break-all;font-size:12px}
@media(max-width:760px){.ob-list li{grid-template-columns:auto 1fr;padding:12px 14px}.ob-list li .btn{grid-column:2;justify-self:start}}

/* ---------------------------------------------------------------- v9: plans, upgrade prompts, Real Estate Agent, apartments */
.plan-pick .pp { text-align: left; align-items: flex-start; }
.pp-f { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 4px; font-size: 12px; color: var(--ink-2, #4a4f57); font-weight: 450; }
.pp-f li { padding-left: 14px; position: relative; line-height: 1.35; }
.pp-f li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand, #1f4d3a); opacity: .6; }
.upg { text-align: center; padding: 36px 24px 30px; max-width: 460px; margin: 0 auto; }
.upg h3 { margin: 12px 0 6px; font-size: 20px; letter-spacing: -.01em; }
.upg p { margin: 0 0 16px; color: var(--ink-2, #4a4f57); font-size: 14px; line-height: 1.5; }
.upg-i { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50, #eef4f0); color: var(--brand, #1f4d3a); }
.upg-i svg, .lock-inline svg, .rea-add svg { width: 20px; height: 20px; }
.lock-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--bg-2, #f4f2ee); font-size: 13px; }
.lock-inline > span:first-child { color: var(--brand, #1f4d3a); display: inline-flex; }
.rea header { align-items: center; }
.rea-add { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line, #e3e0da); background: #fff; font-size: 20px; line-height: 1; display: grid; place-items: center; cursor: pointer; color: var(--brand, #1f4d3a); font-weight: 500; transition: background .15s, transform .15s; }
.rea-add:hover { background: var(--brand-50, #eef4f0); transform: scale(1.05); }
.rea-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rea-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 5px; border-radius: 999px; background: var(--bg-2, #f4f2ee); border: 1px solid var(--line-2, #ece9e3); max-width: 100%; }
.rea-chip .av { width: 28px; height: 28px; border-radius: 50%; background: var(--brand, #1f4d3a); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; }
.rea-chip.invited .av { background: #8a6d1f; } .rea-chip.expired .av { background: #9aa0a6; }
.rc-t { display: grid; line-height: 1.2; min-width: 0; } .rc-t b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rc-t small { font-size: 11px; color: var(--ink-3, #6b7079); }
.rc-m { border: 0; background: transparent; padding: 4px 8px; border-radius: 999px; cursor: pointer; color: var(--ink-3, #6b7079); letter-spacing: 1px; font-size: 11px; }
.rc-m:hover { background: #fff; }
.rea-seg { margin: 0 0 14px; }
.apt-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.apt-card { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ic t go" "n n n" "f f f"; gap: 10px 12px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line-2, #ece9e3); color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(20,20,20,.04); transition: box-shadow .2s, transform .2s; }
.apt-card:hover { box-shadow: 0 8px 24px rgba(20,20,20,.08); transform: translateY(-1px); }
.apt-ic { grid-area: ic; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50, #eef4f0); color: var(--brand, #1f4d3a); display: grid; place-items: center; } .apt-ic svg { width: 20px; height: 20px; }
.apt-t { grid-area: t; display: grid; gap: 2px; min-width: 0; } .apt-t b { font-size: 17px; letter-spacing: -.01em; } .apt-t span { font-size: 13px; color: var(--ink-3, #6b7079); }
.apt-card .go { grid-area: go; align-self: center; color: var(--ink-3, #6b7079); } .apt-card .go svg { width: 18px; height: 18px; }
.apt-n { grid-area: n; display: flex; gap: 16px; font-size: 13px; color: var(--ink-2, #4a4f57); } .apt-n b { font-size: 15px; color: var(--ink, #15171a); }
.apt-f { grid-area: f; font-size: 12px; color: var(--ink-3, #6b7079); border-top: 1px solid var(--line-2, #ece9e3); padding-top: 10px; }
.tl { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 0; }
.tl-i { display: grid; grid-template-columns: 16px 1fr; gap: 12px; position: relative; padding-bottom: 16px; }
.tl-i::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 0; width: 2px; background: var(--line-2, #ece9e3); }
.tl-i:last-child::before { display: none; }
.tl-d { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: #c9ccd1; border: 2px solid #fff; box-shadow: 0 0 0 1px #c9ccd1; position: relative; z-index: 1; }
.tl-i.k-inspection .tl-d { background: var(--brand, #1f4d3a); box-shadow: 0 0 0 1px var(--brand, #1f4d3a); }
.tl-i.k-completed .tl-d, .tl-i.k-confirmed .tl-d, .tl-i.k-closed .tl-d { background: #2f8f5b; box-shadow: 0 0 0 1px #2f8f5b; }
.tl-i.k-attended .tl-d { background: #3b6fb6; box-shadow: 0 0 0 1px #3b6fb6; } .tl-i.k-missed .tl-d { background: #c0452f; box-shadow: 0 0 0 1px #c0452f; }
.tl-i b { font-size: 14px; font-weight: 600; display: block; line-height: 1.35; } .tl-i small { display: block; font-size: 12px; color: var(--ink-3, #6b7079); margin-top: 2px; }
.tl-media { margin-top: 8px; }
.media video { width: 100%; max-width: 320px; border-radius: 12px; background: #000; aspect-ratio: 16 / 10; }
.apt-dd .list .li { padding: 8px 0; }
.ok-t { color: #2f8f5b; }
@media (max-width: 720px) { .apt-grid { grid-template-columns: 1fr; } .media video { max-width: 100%; } }

/* ---------------------------------------------------------------- v10: contractor step 2, logos, public profiles */
.auth-card.auth-wide { max-width: 680px; }
.auth-seg { display: flex; width: 100%; } .auth-seg a { flex: 1; text-align: center; padding: 8px 10px; font-size: 13.5px; }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 560; }
.stepper li { display: flex; align-items: center; gap: 6px; flex: 1; padding: 0 0 8px; border-bottom: 2px solid var(--line); }
.stepper li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--muted); font-size: 11px; font-weight: 700; }
.stepper li.cur { color: var(--ink); border-color: var(--forest); } .stepper li.cur span { background: var(--forest); color: #fff; }
.stepper li.done { color: var(--ink-2); border-color: #9fc2b1; } .stepper li.done span { background: #d9ebe1; color: var(--forest); }
.omark.xl { width: 64px; height: 64px; border-radius: 16px; } .omark.xl b { font-size: 22px; } .omark.xl img { object-fit: cover; }
.logo-pick .lp-row { display: flex; gap: 14px; align-items: center; }
.logo-pick .lp-ctl { display: grid; gap: 6px; min-width: 0; } .logo-pick small { font-size: 12px; }
.cp-form { gap: 14px; }
.cp-prog { position: sticky; top: 0; z-index: 3; background: var(--surface); padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 8px; box-shadow: 0 6px 16px -14px rgba(20, 30, 25, .35); }
.cp-prog .bar { height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; } .cp-prog .bar i { display: block; height: 100%; background: var(--forest); border-radius: 6px; transition: width .35s var(--ease, ease); }
.cp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cp-chips li { font-size: 11.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px 3px 6px; display: inline-flex; gap: 5px; align-items: center; }
.cp-chips li span { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #c9c5bc; }
.cp-chips li.on { color: var(--forest); background: #eaf3ee; border-color: #cfe3d7; } .cp-chips li.on span { background: var(--forest); border-color: var(--forest); box-shadow: inset 0 0 0 2px #eaf3ee; }
.cp-item { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 12px; background: var(--surface); transition: border-color .2s; }
.cp-item.done { border-color: #bcd8c8; }
.cp-h { display: flex; gap: 10px; align-items: flex-start; } .cp-h h3 { margin: 0; font-size: 15px; font-weight: 640; } .cp-h p { margin: 2px 0 0; }
.cp-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c9c5bc; margin-top: 1px; display: grid; place-items: center; color: #fff; font-size: 12px; }
.cp-item.done .cp-dot, .cp-dot.on { background: var(--forest); border-color: var(--forest); } .cp-item.done .cp-dot::after, .cp-dot.on::after { content: "✓"; font-weight: 700; }
.cp-dot.plain { border: 0; color: var(--muted); } .cp-dot.plain svg { width: 18px; height: 18px; }
.cp-drop .drop.sm { padding: 12px; } .cp-drop.over .drop { border-color: var(--forest); background: #eef5f1; }
.cp-list { display: grid; gap: 6px; margin-top: 8px; } .cp-list:empty { display: none; }
.cp-file { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); font-size: 13px; min-width: 0; }
.cp-file .cp-fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-file .cp-ic { font-size: 10px; font-weight: 700; color: var(--forest); background: #e3efe8; border-radius: 5px; padding: 2px 5px; }
.cp-file .x, .wp .x { border: 0; background: none; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.lic-row { display: grid; gap: 10px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; } .lic-row + .lic-row { margin-top: 10px; }
.switch-row { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-row .sw { flex: none; width: 42px; height: 26px; border-radius: 13px; background: #dcd8cf; position: relative; transition: background .2s; }
.switch-row .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch-row input:checked + .sw { background: var(--forest); } .switch-row input:checked + .sw::after { transform: translateX(16px); }
.switch-row input:focus-visible + .sw { outline: 2px solid var(--forest); outline-offset: 2px; }
.pre-in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding-left: 10px; } .pre-in span { color: var(--muted); } .pre-in input { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 0; }
.ok-t { color: var(--ok, #18794e); } .err-t { color: #b42318; }
.cp-actions { justify-content: flex-end; } .cp-actions .btn { max-width: 100%; } .cp-actions .btn.lg { min-width: 220px; }
.cp-panel .pb { max-width: 760px; }
.li-sum { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); }
.pcard { display: grid; gap: 10px; } .pcard-h { display: flex; gap: 14px; align-items: center; } .pcard-h h3 { margin: 0 0 4px; font-size: 18px; }
.pcard-bio { margin: 0; white-space: pre-wrap; line-height: 1.5; }
.pcard-ph { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; } .pcard-ph figure { margin: 0; } .pcard-ph img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; } .pcard-ph figcaption { font-size: 12px; color: var(--muted); margin-top: 3px; }
.vbadge { font-weight: 640; }
.con-h { display: inline-flex; align-items: center; gap: 7px; } .linkish { border: 0; background: none; color: var(--forest); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.wp { margin: 0; position: relative; display: grid; gap: 4px; } .wp img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; } .wp .x { position: absolute; top: 4px; right: 4px; background: rgba(255, 255, 255, .9); border-radius: 50%; width: 24px; height: 24px; }
.wp.add { border: 1.5px dashed #d6d3cc; border-radius: 10px; aspect-ratio: 4/3; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 12.5px; cursor: pointer; background: var(--surface-2); }
.tcard .pcard-h h3 { font-size: 16px; }
.adm-comp { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--surface-2); } .adm-comp summary { cursor: pointer; font-size: 13px; }
.adm-ci { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); } .adm-ci:first-of-type { border-top: 0; } .adm-ci .cp-dot { width: 18px; height: 18px; font-size: 10px; }
.adm-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; } .adm-file { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; max-width: 260px; }
.adm-file img, .adm-file .pdf { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex: none; } .adm-file .pdf { display: grid; place-items: center; background: #fbe9e7; color: #a33a2a; font-weight: 700; font-size: 11px; text-decoration: none; }
.adm-file .row { gap: 10px; }
@media (max-width: 720px) {
  .auth-card.auth-wide { padding: 20px 16px; }
  .cp-item { padding: 12px; }
  .cp-actions { flex-direction: column-reverse; align-items: stretch; } .cp-actions .btn { width: 100%; white-space: normal; text-align: center; justify-content: center; } .cp-actions .btn.lg { min-width: 0; }
  .cp-prog { padding: 10px 12px; gap: 6px; } .cp-prog .cp-chips, .cp-prog .row > .muted { display: none; }
  .logo-pick .lp-row { align-items: flex-start; }
}

/* v11: SMS job alerts */
.sms-optin{border:1px solid var(--line-2);border-radius:14px;padding:12px 14px;background:var(--surface-2, rgba(0,0,0,.02))}
.sms-optin .check{margin:0}
.sms-optin p{margin:6px 0 0 28px;line-height:1.45}
.sms-panel .switch-row{align-items:flex-start}
.sms-panel .switch-row small{font-weight:400}
.sms-more{display:grid;gap:14px}
.sms-more[hidden],.sms-cons[hidden]{display:none}
.sms-cons{border:1px solid var(--line-2);border-radius:12px;padding:10px 12px}
.sms-cons p{margin:6px 0 0 28px}
.sms-row .sms-body{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.45;background:var(--surface-2, rgba(0,0,0,.03));border-radius:10px;padding:8px 10px;margin:6px 0;word-break:break-word;white-space:normal}
.sms-hist .label,.om-focus .label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:0 0 8px}
.om-focus{display:grid;gap:8px;margin:0 0 18px;padding:14px;border-radius:18px;background:var(--surface-2, rgba(0,0,0,.03));border:1px solid var(--line-2)}
@media (max-width:640px){.sms-optin p,.sms-cons p{margin-left:0}}
.sms-log > header{flex-wrap:wrap;gap:10px}
.sms-tools{gap:8px;justify-content:flex-end}
@media (max-width:640px){.sms-log > header{align-items:flex-start}.sms-tools{justify-content:flex-start;width:100%}.sms-tools .seg{max-width:100%;overflow-x:auto}}

/* v12: Mycel brand */
.brand .lockup { display: block; height: 34px; width: auto; }
.auth-card .brand .lockup { height: 36px; }
.brand-m .mark { display: block; width: 30px; height: 30px; }
.side .brand .lockup { height: 33px; }
@media (min-width: 1024px) { .side .brand { padding: 4px 8px 12px; } }

/* ---------------------------------------------------------------- v13: contractor application status + owner queue */
.ap { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.ap-hero { text-align: center; padding: 28px 18px 8px; }
.ap-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e9efdd; color: #4f6330; margin-bottom: 14px; box-shadow: 0 0 0 8px rgba(102, 122, 61, .08); }
.ap-ic svg { width: 30px; height: 30px; }
.ap-ic.sm { width: 48px; height: 48px; margin-bottom: 8px; } .ap-ic.sm svg { width: 22px; height: 22px; }
.ap-review .ap-ic { background: #fdf3dc; color: #8a5a00; box-shadow: 0 0 0 8px rgba(214, 160, 40, .1); }
.ap-review .ap-ic svg path { stroke: #8a5a00; }
.ap-changes .ap-ic, .ap-paused .ap-ic { background: #fbe9e4; color: #9a3b22; box-shadow: 0 0 0 8px rgba(190, 80, 50, .08); }
.ap-draft .ap-ic { background: #eef0ec; color: #4a5244; box-shadow: 0 0 0 8px rgba(0, 0, 0, .03); }
.ap-hero h1 { font-size: clamp(26px, 4.4vw, 36px); letter-spacing: -.025em; margin: 0 0 8px; font-weight: 700; }
.ap-lede { font-size: 16px; color: var(--ink-2); max-width: 34em; margin: 0 auto; line-height: 1.55; }
.ap-note { max-width: 560px; margin: 14px auto 0; text-align: left; }
.ap-cta { margin-top: 18px; } .ap-cta:empty { display: none; }
.ap-card { padding: 6px 4px 4px; }
.ap-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0; }
.ap-dl > div { padding: 12px 16px; border-bottom: 1px solid var(--line-2); min-width: 0; }
.ap-dl dt { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.ap-dl dd { margin: 0; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.ap-mail { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 16px; font-size: 14px; color: var(--ink-2); }
.ap-mail svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #667a3d; }
.ap-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .ap-grid { grid-template-columns: 1fr 1fr; } }
.ap-items { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.ap-items li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.ap-items li.on { color: var(--ink); }
.ap-tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; }
.ap-items li.on .ap-tick { background: #667a3d; border-color: #667a3d; color: #fff; }
.ap-tick svg { width: 13px; height: 13px; }
.ap-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ap-st { display: flex; gap: 12px; }
.ap-st b { font-size: 14px; } .ap-st p { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.ap-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #eef0ec; color: #4a5244; font-size: 12px; font-weight: 700; }
.ap-n svg { width: 14px; height: 14px; }
.ap-st.done .ap-n { background: #667a3d; color: #fff; }
.ap-st.cur .ap-n { background: #fdf3dc; color: #8a5a00; box-shadow: 0 0 0 4px rgba(214, 160, 40, .14); }
.ap-st.lock { opacity: .78; }
.ap-tiles { display: grid; gap: 10px; padding: 14px; }
@media (min-width: 760px) { .ap-tiles { grid-template-columns: repeat(3, 1fr); } }
.ap-tile { display: grid; gap: 3px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--surface-2); }
.ap-tile:hover { border-color: #c9d3b5; } .ap-tile svg { width: 20px; height: 20px; color: #667a3d; margin-bottom: 4px; }
.ap-tile span { font-size: 12.5px; color: var(--muted); }
.ap-tile.locked { opacity: .65; cursor: not-allowed; } .ap-tile.locked svg { color: var(--muted); }
.ap-lock { text-align: center; max-width: 620px; margin: 0 auto; } .ap-lock h2 { margin: 4px 0 6px; font-size: 20px; } .ap-lock .ap-ic { background: #eef0ec; color: #4a5244; box-shadow: none; }
/* owner console queue */
.vq-callout { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; border-radius: 14px; background: #fdf6e3; border: 1px solid #f0dfb0; color: var(--ink); text-decoration: none; }
.vq-callout > div { flex: 1; display: grid; gap: 2px; } .vq-callout span:not(.vq-badge) { font-size: 13px; color: var(--muted); } .vq-callout > svg { width: 18px; height: 18px; }
.vq-badge { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 17px; background: #c0392b; color: #fff; display: grid; place-items: center; font-weight: 700; }
.vq-tabs .n.hot { background: #c0392b; color: #fff; }
.vq-list { padding: 0; }
.vq-item { border-bottom: 1px solid var(--line-2); } .vq-item:last-child { border-bottom: 0; }
.vq-item > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.vq-item > summary::-webkit-details-marker { display: none; }
.vq-item > summary:hover { background: var(--hover); }
.vq-sum { flex: 1; min-width: 0; display: grid; gap: 2px; } .vq-sum span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vq-meta { display: grid; justify-items: end; gap: 4px; flex: none; }
.vq-body { padding: 4px 16px 16px; display: grid; gap: 12px; }
.vq-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 16px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; }
.vq-facts span { display: block; font-size: 11.5px; color: var(--muted); } .vq-facts b { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.vq-bio p { margin: 2px 0 0; font-size: 13.5px; }
.vq-acts { gap: 8px; } .btn.danger { color: #a3321c; }
.vq-more { position: relative; } .vq-more > summary { list-style: none; } .vq-more > summary::-webkit-details-marker { display: none; }
.vq-more[open] > div { position: absolute; z-index: 5; left: 0; top: calc(100% + 4px); display: grid; gap: 4px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--sh-o); min-width: 170px; }
@media (max-width: 719px) { .vq-item > summary { flex-wrap: wrap; } .vq-meta { justify-items: start; width: 100%; padding-left: 38px; } .ap-hero { padding-top: 12px; } }
