/* admin screens. Owned by the admin module; loaded after app.css on every page. */

/* Small text helpers */
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92em; letter-spacing: .01em; }
.nowrap { white-space: nowrap; }
.prewrap { white-space: pre-wrap; }
.opt { font-weight: 400; color: var(--muted); font-size: 14px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
td.detail { max-width: 360px; overflow-wrap: anywhere; }

/* Forms */
.form-card { max-width: 820px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.errlist { margin: 6px 0 0; padding-left: 18px; }
.errlist a { color: inherit; }
.searchbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.searchbar input[type=text] { flex: 1 1 260px; width: auto; min-width: 0; }
.searchbar select { width: auto; flex: 0 1 auto; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input[type=text] { width: 15ch; min-height: 36px; padding: 6px 10px; }
.actions form { margin: 0; }
.copyline { display: flex; gap: 8px; flex-wrap: wrap; }
.copyline input { flex: 1 1 260px; width: auto; min-width: 0; font-size: 14px; background: var(--ivory); }

/* Disclosure sections (add a person, issue an invoice, give credit) */
.disclose { border-top: 1px solid var(--line2); padding-top: 12px; }
.disclose > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 700; cursor: pointer; list-style: none; border-radius: 8px; padding: 0 4px; }
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary::before { content: "+"; display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: var(--sand); font-weight: 800; }
.disclose[open] > summary::before { content: "−"; }
.disclose[open] > summary { margin-bottom: 12px; }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-weight: 600; font-size: 14px; }
.chips a:hover { border-color: var(--ink); }
.chips a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.chips .n { font-variant-numeric: tabular-nums; font-weight: 700; opacity: .8; }

/* Paging */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Plain lists inside cards */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line2); }
.list li:first-child { border-top: 0; padding-top: 0; }

/* Layout fixes for narrow screens (candidates to fold into app.css) */

/* Pipeline board: wraps so every stage is visible; empty stages shrink to a label. */
.kanban { display: flex; flex-wrap: wrap; align-items: stretch; overflow-x: visible; }
.kanban section { flex: 1 1 210px; min-width: 0; }
.kanban section.is-empty { flex: 0 1 150px; min-height: 0; }
.kanban section.is-empty { opacity: .75; }
.kanban h2 { gap: 8px; align-items: flex-start; }
.kanban h2 .count { flex: none; font-variant-numeric: tabular-nums; background: var(--white); border-radius: 999px; padding: 0 8px; min-width: 24px; line-height: 20px; text-align: center; }
.kanban a.cardlink .small { display: inline-flex; align-items: center; gap: 4px; }
.kanban a.cardlink .stale { color: var(--warn); font-weight: 600; }

/* Project moves */
.choices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.choice.serious { border-color: #E2B8B1; }
.choice.serious .small { color: var(--bad); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--white); }
.timeline .when { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Payments waiting to be matched */
.paylist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.paylist li { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line2); }
.paylist li:first-child { border-top: 0; }
.paylist li:target { background: var(--warn-bg); border-radius: 10px; padding-left: 10px; padding-right: 10px; }
.paymeta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.paymeta .why { display: inline-flex; gap: 6px; align-items: center; color: var(--warn); font-weight: 600; }

/* Code and email bodies */
pre.code, pre.mailbody { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--navy); color: var(--on-navy); font: 14px/1.6 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }
pre.mailbody { background: var(--ivory); color: var(--ink); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 560px; overflow-y: auto; }
.steps-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Health and set-up checks */
.issues, .checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.issues li { display: flex; gap: 8px; align-items: center; color: var(--warn); font-weight: 600; }
.okline { display: flex; gap: 8px; align-items: center; color: var(--ok); font-weight: 600; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px 20px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li.ok svg { color: var(--ok); }
.checks li.todo svg { color: var(--warn); }
dl.kv.fields dd { font-weight: 500; }

@media (max-width: 600px) {
  .pagehead .row { width: 100%; }
  .inline-form input[type=text] { flex: 1 1 auto; width: auto; }
}
.setaside { margin-top: 6px; }
.setaside summary { cursor: pointer; color: var(--muted); }
.setaside .inline-form { margin-top: 6px; }

/* Settings and updates */
.field label .pill { margin-left: 8px; vertical-align: middle; font-size: 12px; }
textarea.mono, code.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
code.mono { background: var(--sand); padding: 3px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.card code { overflow-wrap: anywhere; } /* 0.59: long addresses in a card wrap on a phone */
.check.small { font-size: 14px; }
.upd-box { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.checklist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.checklist li { padding-left: 24px; position: relative; }
.checklist li::before { position: absolute; left: 0; font-weight: 800; }
.checklist .chk-pass::before { content: "✓"; color: var(--ok); }
.checklist .chk-warn::before { content: "△"; color: var(--warn); }
.checklist .chk-fail::before { content: "✗"; color: var(--bad); }
.checklist .chk-info::before { content: "·"; color: var(--muted); }
details > summary { cursor: pointer; font-weight: 700; }
.btn.wrap { white-space: normal; text-align: left; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
.cron-banner { margin-bottom: 16px; }
.plain-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.topic-row { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line, #E3DBCD); }

/* Overview: whole-card links for the four numbers, and stage chips as a list */
a.kpi-link { text-decoration: none; color: var(--ink); }
a.kpi-link:hover { border-color: var(--ink); }
ul.chips { list-style: none; margin: 0; padding: 0; }

/* Help: the how-to guide */

.swatch { display: inline-block; width: 22px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 4px; vertical-align: -5px; margin-left: 6px; background: none; opacity: 1; }

/* Project delivery: client feedback with screenshots and voice notes */
.feedback { border-top: 1px solid var(--line2); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.feedback-shot img { max-width: 100%; max-height: 260px; border: 1px solid var(--line); border-radius: 10px; display: block; }
.feedback audio { max-width: 100%; vertical-align: middle; }
.report-row-late td { background: var(--bad-bg); }
textarea.mono, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; }

/* 0.12: progress bars, the JMSSI spend chart, the go-live checklist, the prospect funnel and setup guides. */
.bar { display: block; width: 100%; height: 8px; }
.bar-bg { fill: var(--line2); }
.bar-fill { fill: var(--ok); }
.bar-fill.warn { fill: #B7791F; } .bar-fill.bad { fill: var(--bad); } .bar-fill.gold { fill: var(--gold); } .bar-fill.info { fill: var(--info); }
.kpi .bar { margin-top: 6px; }
.chart { display: block; width: 100%; height: auto; max-height: 260px; }
.chart .grid-line { stroke: var(--line2); stroke-width: 1; }
.chart .cap-line { stroke: var(--bad); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.chart .axis.cap { fill: var(--bad); }
.chart .day-bar { fill: var(--navy2); }
.chart .hit { fill: transparent; }
.chart .bar-g:hover .day-bar, .chart .bar-g:focus .day-bar { fill: var(--gold); }
.golive-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.golive-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line2); }
.golive-list li:first-child { border-top: 0; }
.golive-list.compact li { grid-template-columns: auto minmax(0, 1fr); padding: 8px 0; }
.golive-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.golive-label { font-weight: 600; }
.golive-list li.is-done .golive-label { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--field); }
.golive-list li.is-na { opacity: .7; }
.golive-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.golive-more summary { cursor: pointer; }
.golive-more[open] { min-width: 240px; }
.tick-form { margin: 0; }
.tick { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--field); background: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--white); padding: 0; }
.tick:hover { border-color: var(--navy); }
.tick[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.funnel li { background: var(--ivory); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.funnel .n { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
.funnel .l { font-size: 14px; font-weight: 600; }
.guide-step { border-top: 1px solid var(--line2); padding-top: 10px; }
.guide-step summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.guide-step ol { margin: 10px 0 4px; display: flex; flex-direction: column; gap: 6px; }
blockquote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--ivory); border-radius: 0 10px 10px 0; }
@media (max-width: 640px) {
  .golive-list li { grid-template-columns: auto minmax(0, 1fr); }
  .golive-meta { grid-column: 2; align-items: flex-start; }
}
.list.numbered { list-style: decimal; padding-left: 22px; }
.list.numbered li { display: list-item; padding: 8px 0; line-height: 1.5; }

/* Google Analytics at a glance (0.12.3), shared by the hub and the admin */
.ga-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin: 4px 0 18px; }
.ga-kpis div { border-top: 2px solid var(--ink, #18303A); padding-top: 10px; min-width: 0; }
.ga-kpis dt { font-size: 13px; color: var(--muted, #5A6273); }
.ga-kpis dd { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ga-kpis b { font-size: 28px; line-height: 1.1; color: var(--ink, #18303A); font-weight: 600; }
.ga-delta { font-size: 13px; font-weight: 700; color: var(--muted, #5A6273); }
.ga-delta.up { color: var(--ok, #24622A); } .ga-delta.down { color: var(--bad, #9A2B1F); }
.ga-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px 28px; margin-bottom: 12px; }
.ga-cols h3 { font-size: 15px; margin: 0 0 10px; }
.ga-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ga-bars li { display: grid; grid-template-columns: minmax(70px, 120px) minmax(0, 1fr) 46px; gap: 10px; align-items: center; font-size: 14px; }
.ga-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.ga-bars progress, .ga-two { width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: #E9ECEF; accent-color: #18303A; }
.ga-bars progress::-webkit-progress-bar, .ga-two::-webkit-progress-bar { background: #E9ECEF; border-radius: 999px; }
.ga-bars progress::-webkit-progress-value, .ga-two::-webkit-progress-value { background: #18303A; border-radius: 999px; }
.ga-two::-webkit-progress-value { background: #BD852E; }
.ga-split { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 14px; }
.ga-split b { font-size: 22px; display: block; }

/* Onboarding, Income, Analytics (0.12.3) */
.ob-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; align-items: start; }
.ob-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ob-list li { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line2); }
.ob-list li:first-child { border-top: 0; padding-top: 0; }
.ob-list li > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.ob-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.inc-chart { width: 100%; height: auto; display: block; margin: 8px 0 16px; }
.inc-chart .grid { stroke: #E6E1D8; stroke-width: 1; }
.inc-chart .ax { font-size: 11px; fill: #5A6273; }
.inc-chart .plans { fill: #18303A; }
.inc-chart .projects { fill: #BD852E; }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }
.legend .sw.plans { background: #18303A; } .legend .sw.projects { background: #BD852E; }
td .up { color: #24622A; font-weight: 700; } td .down { color: #9A2B1F; font-weight: 700; }
.row-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }

/* ===== 0.13 admin ======================================================================================== */
html.dark .inc-chart .grid { stroke: #22363E; } html.dark .inc-chart .ax { fill: #A3B3B9; } html.dark .inc-chart .plans { fill: #9FC2CF; }
html.dark .ga-bars progress, html.dark .ga-two { background: var(--track); }
html.dark .ga-bars progress::-webkit-progress-value { background: #E9B85F; }
/* One timeline per client */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 2px; background: var(--line2); }
.tl-day { position: relative; padding: 14px 0 6px 44px; font: 600 12px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tl-item { position: relative; display: grid; grid-template-columns: 36px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; }
.tl-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); z-index: 1; color: var(--ink); }
.tl-invoice .tl-ic { border-color: var(--gold); } .tl-proposal .tl-ic { border-color: #6C8BD9; } .tl-request .tl-ic { border-color: #5BA36A; } .tl-lead .tl-ic { border-color: #D9844E; } .tl-audit .tl-ic { border-style: dashed; }
.tl-t a { font-weight: 600; }
/* Client extras */
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba-pair figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ba-pair img, .ba-empty { width: 100%; aspect-ratio: 675 / 470; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); background: var(--sand); }
.ba-empty { display: grid; place-items: center; align-content: center; gap: 6px; color: var(--muted); font-size: 14px; }
.ba-pair figcaption { font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
textarea.code { font: 13px/1.4 ui-monospace, Menlo, Consolas, monospace; min-height: 70px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; } .dl dt { font-weight: 700; color: var(--muted); font-size: 14px; } .dl dd { margin: 0; }
.launch-imgs.small { grid-template-columns: 2fr 1fr; }
/* Concept palette */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); }
.swatch i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); }
/* Proposal reading */
.read-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.read-bars li { display: grid; grid-template-columns: minmax(120px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.read-bars progress { width: 100%; height: 10px; border: 0; border-radius: 999px; overflow: hidden; background: var(--track); accent-color: var(--gold); }
.read-bars progress::-webkit-progress-bar { background: var(--track); } .read-bars progress::-webkit-progress-value { background: var(--gold); }
.read-bars progress::-moz-progress-bar { background: var(--gold); }

/* 0.14: Marketing › Work pictures */
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.wp-cell { display: grid; gap: 8px; align-content: start; }
.wp-thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--track); }
.wp-cell input[type=file] { max-width: 100%; font-size: 14px; }

/* ==== 0.16 admin overhaul ================================================================================ */
/* Badges: how many things wait in an area or on a page */
.nbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: #C68E36; color: #10222A; font-size: 11.5px; font-weight: 800; line-height: 1; font-style: normal; }
.nbadge.sm { min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
/* The context bar: where you are, what the page is for, and its tabs */
.abottom a { position: relative; }
.abottom .nbadge { position: absolute; top: 4px; right: calc(50% - 22px); margin: 0; }

/* Today */
.today-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.today-head p { color: var(--muted); margin: 6px 0 0; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.inbox { display: grid; gap: 10px; }
.inbox-group h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 8px; color: var(--muted); font-family: var(--sans); font-weight: 800; }
.inbox-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inbox-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--line); }
.inbox-list li.urgent { border-left-color: var(--bad); }
.inbox-list li.todo { border-left-color: var(--gold); }
.inbox-list li.fyi { border-left-color: var(--info); }
.inbox-list .ib-area { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.inbox-list .ib-text { font-weight: 600; }
.today-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1000px) { .today-cols { grid-template-columns: 1fr; } }
.since-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.since-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.since-list li:last-child { border-bottom: 0; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.journey a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.journey a b { font-size: 15px; } .journey a span { font-size: 12.5px; color: var(--muted); }
.journey a:hover { border-color: var(--gold); }
@media (max-width: 600px) { .inbox-list li { grid-template-columns: minmax(0, 1fr) auto; } .inbox-list .ib-area { grid-column: 1 / -1; } }

/* Client 360 */
.c360-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.c360-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: var(--ivory); }
.c360-tabs button { border: 0; background: transparent; font: 700 14.5px var(--sans); color: var(--muted); padding: 12px 14px; min-height: 44px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.c360-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.c360-tabs button:hover { color: var(--ink); }
.js-tabs [data-panel][hidden] { display: none !important; }
.c360-panel { display: grid; gap: 22px; }
.c360-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.c360-tiles a, .c360-tiles div { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); text-decoration: none; color: var(--ink); }
.c360-tiles span { font-size: 12.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.c360-tiles b { font-size: 20px; } .c360-tiles small { color: var(--muted); }
.c360-tiles a:hover { border-color: var(--gold); }
.c360-panel { padding-top: 18px; }

/* ==== 0.17 admin top bar: one tidy row ================================================================== */
.worker-dot { position: relative; }
.worker-dot i { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--navy); }
.worker-dot.ok i { background: #3FB86B; }
.worker-dot.bad i { background: #E5533D; }
.worker-dot.bad { color: #FFB4A6; }
.bad-t { color: var(--bad); font-weight: 700; }
/* 0.18 share links */
.share-url { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; }
.share-url code { padding: 8px 12px; border-radius: 10px; background: var(--ivory); border: 1px solid var(--line); overflow-wrap: anywhere; }
.share-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.share-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.share-top h3 { margin: 0 0 4px; font-size: 18px; }
.share-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 0; }
.share-stats div { padding: 10px 12px; border-radius: 10px; background: var(--ivory); }
.share-stats dt { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.share-stats dd { margin: 2px 0 0; font-weight: 600; }
.w-sm { width: 120px; display: inline-block; min-height: 36px; }
/* 0.19 share email preview */
.mail-preview { background: #fff; color: #222; border: 1px solid var(--line); border-radius: 12px; padding: 18px; max-width: 680px; overflow-x: auto; }
/* 0.19.3: the email preview in its own frame, so the signature images and styles show as they will in Gmail */
.mail-frame { display: block; width: 100%; max-width: 720px; height: 760px; border: 1px solid var(--line); border-radius: 12px; background: #fff; resize: vertical; }
/* 0.22 */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 6px 0 14px; }
.kpis .kpi .v { font-size: 22px; }
.cp-list { counter-reset: none; padding-left: 20px; list-style: decimal; display: grid; gap: 8px; margin: 6px 0 14px; }
.rv-admin { display: grid; gap: 10px; }
.ac-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.ac-list li { display: flex; gap: 10px; align-items: flex-start; }
.ac-ic { flex: none; width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.ac-ok .ac-ic { background: var(--ok-bg, #E3F1E7); color: var(--ok, #2E7D46); }
.ac-warn .ac-ic { background: rgba(189, 133, 46, .16); color: var(--gold-ink, #7A5415); }
.ac-fail .ac-ic { background: var(--bad-bg, #FBE3DE); color: var(--bad, #A33A2A); }
.est-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 6px 0 10px; }
.est-table th, .est-table td { text-align: left; padding: 6px 8px; border-top: 1px solid var(--line); }
.est-table td.tnum { text-align: right; white-space: nowrap; }
/* 0.29: CV Builder analytics funnel */
.funnel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.funnel-list li { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr auto; gap: 12px; align-items: center; }
.funnel-list .fl-n { font-weight: 700; text-align: right; min-width: 4ch; }
@media (max-width: 560px) { .funnel-list li { grid-template-columns: 1fr auto; } .funnel-list .fl-bar { grid-column: 1 / -1; grid-row: 2; } }
.fb-item { border-top: 1px solid var(--line2); padding: 16px 0; }
.fb-item h3 { margin: 0 0 4px; font-size: 17px; }
.fb-item .field.grow { flex: 1 1 280px; }
.mark-paid[open] { display: flex; flex-direction: column; gap: 6px; }
.mark-paid summary { list-style: none; }
.mark-paid summary::-webkit-details-marker { display: none; }
/* 0.29: development log */
.dl-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.dl-list summary { cursor: pointer; padding: 10px 0; line-height: 1.5; }
.dl-body { padding: 4px 0 14px; font-size: 14px; color: var(--ink); white-space: normal; border-bottom: 1px solid var(--line2); }
.dl-context { white-space: pre-wrap; font-size: 13px; max-height: 420px; overflow: auto; background: var(--ivory); padding: 14px; border-radius: 10px; }
/* 0.29: Apps */
.apps-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.app-id { display: flex; gap: 12px; align-items: center; }
.app-id h2 { margin: 0; }
.app-id img { border-radius: 10px; }
.app-card .row { margin-top: 12px; }
.new-app { border-style: dashed; }
/* 0.30: refunds */
.stack-form { display: grid; gap: 6px; max-width: 260px; }
.stack-form input[type="text"] { width: 100%; }
.stack-form .check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
/* 0.38: Keep clients. */
.ret-note { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 10px; }
.ret-note textarea { font: inherit; line-height: 1.5; }
/* 0.41: less-used pages under "More", opening in the same row. */
.away-card form { display: grid; gap: 10px; }
.away-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 400px) { .away-card .two { grid-template-columns: 1fr; } }
.since-quiet { margin: 0; }
/* 0.42: the running timer and the time card. */
.timer-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border-radius: 999px; background: #C68E36; }
.timer-chip a { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 700; text-decoration: none; font-size: 14px; }
.timer-stop { border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 4px 10px; cursor: pointer; }
.timer-card .row { gap: 10px; flex-wrap: wrap; align-items: center; }
.quality-list li { display: flex; gap: 10px; align-items: flex-start; }
.quality-list li > span:last-child { min-width: 0; overflow-wrap: anywhere; } /* 0.48: long steps wrap on phones */
.bad-text { color: var(--bad); font-weight: 700; }
/* 0.45: Posts to share */
.content-posts { display: grid; gap: 16px; }
.content-post header { align-items: flex-start; }
.content-post textarea { width: 100%; font: inherit; line-height: 1.55; }
/* 0.47: Social media */
.social-week { display: grid; gap: 16px; }
.social-plan { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.social-plan .sp-pic img { width: 200px; height: 200px; border-radius: 10px; display: block; }
.social-plan header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.social-plan textarea { width: 100%; font: inherit; line-height: 1.5; }
.sp-targets { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.sp-when { max-width: 260px; }
@media (max-width: 720px) { .social-plan { grid-template-columns: minmax(0, 1fr); } .social-plan .sp-pic img { width: 100%; height: auto; max-width: 320px; } }
.steps-list code { overflow-wrap: anywhere; }
