/* ==========================================================
   MarkMyLogo Workspace (signed-in area of app.markmylogo.com)
   Builds on style.css (same colors and fonts as www.markmylogo.com).
   ========================================================== */
.ws-wide { max-width: 1120px; }
.ws-header { padding: 18px 0; border-bottom: 1px solid var(--line); }
.ws-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; }
.ws-header .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ws-header .brand-mark { width: 40px; height: 40px; }
.ws-header .tag { font-size: 13px; color: var(--ink-faint); border-left: 1px solid var(--line-strong); padding-left: 10px; margin-left: 2px; }
.ws-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ws-nav a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.ws-nav a:hover, .ws-nav a.on { color: var(--ink); }
.ws-nav a.on { text-decoration: underline; text-underline-offset: 5px; }
#ws-user { min-width: 32px; min-height: 32px; }

.ws-main { padding: 36px 0 80px; }
.ws-main h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; }
.ws-sub { color: var(--ink-soft); margin: 0 0 28px; max-width: 680px; }
.ws-loading { color: var(--ink-faint); padding: 60px 0; text-align: center; }

.card { background: var(--paper); border: 1px solid var(--line-strong); border-radius: 2px; padding: 24px 28px; margin: 0 0 20px; }
.card > h2 { font-size: 22px; margin: 0 0 4px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card > .card-sub { color: var(--ink-faint); font-size: 14px; margin: 0 0 18px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { font-size: 22px; margin: 0; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--seal); color: var(--on-seal); font: 600 13px/1 var(--sans); }

.grid { display: grid; gap: 14px 18px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: 1fr 1.4fr 1fr; }
.f label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 4px; }
.f .hint { display: block; font-size: 13px; color: var(--ink-faint); margin: -2px 0 6px; }
.f textarea { min-height: 4.6rem; }
.f input[type=number] { width: 100%; font: inherit; color: var(--ink); background: var(--paper); padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 2px; }
.f.span2 { grid-column: span 2; }
.f select { width: 100%; font: inherit; color: var(--ink); background: var(--paper); padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 2px; }

.chip { display: inline-block; font: 500 12px/1 var(--sans); letter-spacing: .02em; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-faint); white-space: nowrap; vertical-align: middle; }
.chip.blue { border-color: var(--gold); color: var(--gold); }
.chip.navy { border-color: var(--seal); background: var(--seal); color: var(--on-seal); }
.chip.red { border-color: var(--err); color: var(--err); }

.tools { display: grid; gap: 10px; }
.tool-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 6px 14px; align-items: center; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); }
.tool-row input { accent-color: var(--seal); width: 18px; height: 18px; margin: 0; }
.tool-row .name { font-weight: 500; }
.tool-row .desc { display: block; font-size: 13px; color: var(--ink-faint); font-weight: 400; }
.tool-row .cost { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.tool-row .status { font-size: 13px; white-space: nowrap; color: var(--ink-faint); min-width: 120px; text-align: right; }
.tool-row .status.done { color: var(--seal); }
.tool-row .status.fail { color: var(--err); }
.tool-row .status.run::before { content: ''; display: inline-block; width: 10px; height: 10px; border: 2px solid var(--seal); border-right-color: transparent; border-radius: 50%; margin-right: 6px; vertical-align: -1px; animation: ws-spin .8s linear infinite; }
@keyframes ws-spin { to { transform: rotate(360deg); } }
.run-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.run-bar .total { font-size: 15px; color: var(--ink-soft); }
/* Orange: the complement of the brand blues, so the Run button stands out on the page. */
.btn.run { background: #C2550B; border-color: #C2550B; color: #fff; font-size: 17px; font-weight: 600; padding: 16px 32px; box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.btn.run:hover, .btn.run:focus-visible { background: #9E4507; border-color: #9E4507; color: #fff; }
.btn.run[disabled] { background: var(--paper-raised); border-color: var(--line-strong); color: var(--ink-faint); box-shadow: none; cursor: default; opacity: 1; }
.risk-sel { font: inherit; font-size: 14px; padding: 5px 8px; border-radius: 2px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); cursor: pointer; }
.risk-sel.r-high { border-color: var(--err); color: var(--err); font-weight: 600; }
.risk-sel.r-medium { border-color: var(--gold); color: var(--gold); font-weight: 600; }
.risk-sel.r-low { color: var(--ink-faint); }
.run-bar .total strong { color: var(--ink); }
.ws-err { color: var(--err); font-size: 14px; margin: 10px 0 0; }
.ws-err:empty { display: none; }
.ws-note { color: var(--ink-faint); font-size: 13px; margin: 8px 0 0; }

.sec { border-top: 1px solid var(--line); padding: 22px 0 6px; }
.sec:first-of-type { border-top: none; padding-top: 4px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec-head h3 { font-size: 20px; margin: 0; }
.sec-head .btn.small { padding: 6px 12px; }
.sec-head .include { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-soft); cursor: pointer; margin-left: auto; }
.sec-head .include input { width: 18px; height: 18px; accent-color: var(--seal); }
.sec.omitted .doc, .sec.omitted .notes-box, .sec.omitted > .ws-note { opacity: .4; }
.sec.omitted h3::after { content: ' (left out of report)'; font-size: 14px; font-weight: 400; color: var(--ink-faint); }
.notes-box { margin: 14px 0 6px; }
.notes-box label { font-size: 13px; font-weight: 600; color: var(--ink-soft); display: block; margin-bottom: 4px; }
.notes-box textarea { min-height: 4.2rem; font-size: 15px; }

/* Rendered report preview (shared by all tools) */
.doc { font-size: 15px; color: var(--ink-soft); }
.doc p { margin: 8px 0; }
.doc .kv { display: grid; grid-template-columns: 200px 1fr; gap: 6px 16px; margin: 10px 0; }
.doc .kv dt { color: var(--ink-faint); }
.doc .kv dd { margin: 0; color: var(--ink); }
.doc ul { margin: 6px 0 10px; padding-left: 20px; }
.doc li { margin: 3px 0; }
.doc h4 { font: 600 14px/1.3 var(--sans); color: var(--ink); margin: 14px 0 6px; }
.doc .tbl-wrap { overflow-x: auto; margin: 10px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--ink); padding: 8px 10px 8px 0; }
.doc td { vertical-align: top; border-bottom: 1px solid var(--line); padding: 9px 10px 9px 0; color: var(--ink); }
.doc td .sub { display: block; color: var(--ink-faint); font-size: 13px; margin-top: 2px; }
.doc td a, .doc li a { color: var(--seal); word-break: break-word; }
.doc td.pick { width: 28px; }
.doc td.pick input { accent-color: var(--seal); width: 16px; height: 16px; }
.doc tr.off td:not(.pick) { opacity: .45; }
.doc .src { font-size: 13px; }

/* Reports list */
.rtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.rtable th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--ink); padding: 8px 12px 8px 0; }
.rtable td { border-bottom: 1px solid var(--line); padding: 12px 12px 12px 0; vertical-align: top; }
.rtable td a.mark { font-family: var(--serif); font-size: 18px; color: var(--ink); text-decoration: none; }
.rtable td a.mark:hover { text-decoration: underline; }
.rtable .muted { color: var(--ink-faint); font-size: 13px; display: block; }
.rtable .num { text-align: right; white-space: nowrap; }
.rtable button.link { background: none; border: none; color: var(--ink-faint); font: inherit; font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; }
.empty { color: var(--ink-faint); padding: 18px 0 6px; }

/* Credit packs */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pack { border: 1px solid var(--line-strong); border-radius: 2px; padding: 16px 18px; background: var(--paper); display: flex; flex-direction: column; gap: 4px; }
.pack .n { font-family: var(--serif); font-size: 24px; color: var(--ink); }
.pack .price { font-size: 18px; color: var(--ink); font-weight: 500; }
.pack .each { font-size: 13px; color: var(--ink-faint); }
.pack .save { font-size: 13px; color: var(--gold); }
.pack .btn { margin-top: 10px; text-align: center; }

/* Invoice */
.inv-lines { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 12px; }
.inv-lines th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--ink); padding: 8px 10px 8px 0; }
.inv-lines td { border-bottom: 1px solid var(--line); padding: 9px 10px 9px 0; vertical-align: middle; }
.inv-lines .num { text-align: right; white-space: nowrap; }
.inv-lines tfoot td { border-bottom: none; font-weight: 600; color: var(--ink); padding-top: 12px; }
.inv-lines input { padding: 7px 9px; font-size: 14px; }
.inv-lines input.amt { max-width: 120px; text-align: right; }
.inv-lines button.x { background: none; border: none; color: var(--ink-faint); cursor: pointer; font-size: 18px; line-height: 1; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.saved { font-size: 13px; color: var(--ink-faint); }
.sticky-bar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 0; margin: -36px 0 24px; }
.sticky-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; }
.sticky-bar .title { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.sticky-bar .title small { font-family: var(--sans); font-size: 13px; color: var(--ink-faint); margin-left: 8px; }

.signin-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; padding: 24px 0; }
.signin-wrap ul { color: var(--ink-soft); padding-left: 20px; }
.signin-wrap li { margin: 6px 0; }
#ws-signin { min-height: 420px; }
.setup-msg { border-left: 3px solid var(--err); background: var(--paper-raised); padding: 14px 18px; color: var(--ink-soft); }

@media (max-width: 760px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .f.span2 { grid-column: auto; }
  .tool-row { grid-template-columns: auto 1fr; }
  .tool-row .cost, .tool-row .status { grid-column: 2; text-align: left; }
  .doc .kv { grid-template-columns: 1fr; gap: 2px; }
  .doc .kv dd { margin-bottom: 8px; }
  .card { padding: 18px 16px; }
  .signin-wrap { grid-template-columns: 1fr; }
  .rtable .hide-sm { display: none; }
  .ws-header .tag { display: none; }
}

/* Trademark Portfolio Report */
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-bottom: 3px; }
.chip.registered { background: #E3F1E6; color: #1E5B2E; }
.chip.pending { background: #FFF1D6; color: #7A4B00; }
.chip.dead { background: #ECEDF0; color: #4B5566; }
.ptable td.nowrap { white-space: nowrap; }
.ptable td.edit input { display: block; width: 100%; font: inherit; font-size: 13px; padding: 5px 7px; margin-bottom: 4px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); color: var(--ink); }
.ptable td select { font: inherit; font-size: 14px; padding: 4px 6px; }
.ptable tr.goods td { padding-top: 0; font-size: 13px; color: var(--ink-soft); }
.ptable tr.goods summary { cursor: pointer; font-size: 12px; color: var(--ink-faint); }
.ptable td .muted { margin-top: 2px; }
h3.grp { font-size: 18px; margin: 24px 0 8px; }
ul.failed { padding-left: 18px; font-size: 14px; }
.ptable .dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 16px; margin: 10px 0; }
.ptable .dfield { display: block; font-size: 12px; color: var(--ink-faint); }
.ptable .dfield span { display: block; margin-bottom: 3px; }
.ptable .dfield input[type=date], .ptable .dfield input[type=text], .ptable .dfield textarea { width: 100%; font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); color: var(--ink); box-sizing: border-box; }
.ptable .dfield.chk { display: flex; align-items: flex-end; gap: 8px; }
.ptable .dfield.chk span { order: 2; margin: 0; }
.ptable .dfield.wide { grid-column: 1 / -1; }
.ptable .drow { display: grid; grid-template-columns: 1fr 170px auto auto; gap: 8px 12px; align-items: center; margin-bottom: 6px; max-width: 860px; }
.ptable .dver { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-faint); white-space: nowrap; }
.ptable .dver input { width: auto; margin: 0; }
.ptable .drow input { width: 100%; font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); color: var(--ink); box-sizing: border-box; }
.ptable .dadd { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.ptable tr.goods.open td { background: #F6F8FB; padding: 12px 14px; }
.ptable .gh { font-size: 13px; margin: 12px 0 4px; color: var(--ink-faint); }
.ptable .muted.note { font-style: italic; }
.ptable td.edit .btn.small { margin-top: 2px; white-space: nowrap; }

/* Workspace home: one dominant action, invoice status, intake progress, row menus */
.btn.cta { font-size: 16px; font-weight: 500; padding: 14px 28px; }
.rtable .chip.billed { background: #E3F1E6; color: #1E5B2E; border-color: transparent; }
.rtable .chip.todo { background: #FFF1D6; color: #7A4B00; border-color: transparent; }
.rtable td a.muted { text-decoration: underline; text-underline-offset: 2px; color: var(--seal); }
.rtable .prog { display: flex; align-items: center; gap: 10px; min-width: 130px; }
.rtable .prog .track { flex: 1; height: 8px; background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.rtable .prog .fill { display: block; height: 100%; background: var(--seal); border-radius: 999px; }
.rtable .prog .fill.full { background: #2E7D46; }
.rtable .prog .pct { font-size: 13px; color: var(--ink-soft); min-width: 36px; text-align: right; }
.rtable td.act { width: 1%; }
.row-menu-wrap { position: relative; display: inline-block; }
.rtable button.kebab { background: none; border: 1px solid transparent; border-radius: 2px; color: var(--ink-soft); font-size: 20px; line-height: 1; padding: 4px 10px; cursor: pointer; text-decoration: none; }
.rtable button.kebab:hover, .rtable button.kebab[aria-expanded="true"] { background: var(--paper-raised); border-color: var(--line-strong); color: var(--ink); }
.row-menu { position: absolute; right: 0; top: calc(100% + 2px); z-index: 30; min-width: 150px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 2px; box-shadow: 0 6px 18px rgba(0,0,0,.14); padding: 4px 0; text-align: left; }
.row-menu[hidden] { display: none; }
.row-menu a, .row-menu button { display: block; width: 100%; box-sizing: border-box; background: none; border: none; text-align: left; font: inherit; font-size: 14px; color: var(--ink); padding: 8px 14px; text-decoration: none; cursor: pointer; }
.row-menu a:hover, .row-menu button:hover, .row-menu a:focus-visible, .row-menu button:focus-visible { background: var(--paper-raised); }
.row-menu button.danger { color: var(--err); }

/* Workspace home, phase 2: summary counts, needs attention, recent work, tighter cards */
@media (min-width: 761px) { .card { padding: 20px 24px; margin-bottom: 16px; } }
.metrics { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.metric { flex: 1 1 150px; display: flex; flex-direction: column; text-align: left; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 2px; padding: 12px 16px; font: inherit; color: var(--ink); cursor: pointer; }
.metric:hover:not(:disabled) { border-color: var(--seal); }
.metric.on { border-color: var(--seal); box-shadow: inset 0 0 0 1px var(--seal); }
.metric:disabled { cursor: default; opacity: .65; }
.metric .n { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.metric .lbl { font-size: 14px; font-weight: 500; }
.metric .sub { font-size: 12px; color: var(--ink-faint); }
.card.attn { border-left: 3px solid #C2550B; }
.attn-list { list-style: none; margin: 10px 0 0; padding: 0; }
.attn-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.attn-list li:first-child { border-top: none; }
.attn-list li.more { font-size: 13px; color: var(--ink-faint); }
.attn-list .who { flex: 1 1 220px; }
.attn-list .who strong { font-family: var(--serif); font-weight: 500; font-size: 17px; color: var(--ink); }
.attn-list .who span { display: block; font-size: 13px; color: var(--ink-faint); }
.attn-list .why { flex: 1 1 200px; font-size: 14px; color: var(--ink-soft); }
h2.all-work { font-size: 22px; margin: 28px 0 12px; }
.filter-note { margin: 0 0 10px; }
.more-row { margin: 10px 0 0; }
.more-row:has(button[hidden]) { display: none; }
.more-row button.link, .filter-note button.link { background: none; border: none; color: var(--seal); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 0; }
.card details.fold > summary { cursor: pointer; list-style: none; }
.card details.fold > summary::-webkit-details-marker { display: none; }
.card details.fold > summary h2 { display: inline; font-size: 22px; margin: 0; }
.card details.fold > summary::before { content: "\25B8"; display: inline-block; width: 1.1em; color: var(--ink-faint); }
.card details.fold[open] > summary::before { content: "\25BE"; }
.card details.fold > summary + .card-sub { margin-top: 8px; }

/* Clients page and billing list */
.crumb { margin: 0 0 6px; font-size: 14px; }
.crumb a { color: var(--seal); }
.metric.static { cursor: default; }
.bill-filters { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; margin: 0 0 8px; }
.bill-filters label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.bill-filters select, .bill-filters input[type=date] { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); color: var(--ink); }
.bill-filters button.link { background: none; border: none; color: var(--seal); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 0; }
.rtable th.chk, .rtable td.chk { width: 28px; padding-right: 0; }
.rtable td.chk input, .rtable th.chk input { width: 16px; height: 16px; accent-color: var(--seal); }
.bill-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.bill-bar .btn[disabled] { opacity: .5; cursor: default; }
.rtable td a:not(.mark):not(.muted):not(.btn) { color: var(--seal); text-underline-offset: 2px; }

/* Client dropdown shared by reports, portfolio reports, and intakes */
.cp-add { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.cp-add input { flex: 1 1 220px; font: inherit; color: var(--ink); background: var(--paper); padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 2px; }
.cp-manage { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--seal); text-underline-offset: 2px; }
.client-form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.client-form .span2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .client-form { grid-template-columns: 1fr; } }

/* Client verification (Clients page and intake) */
.vblock { padding: 14px 0; border-top: 1px solid var(--line); }
.vblock:first-of-type { border-top: 0; padding-top: 4px; }
.vblock h3 { margin: 0 0 6px; font-size: 16px; }
.vstatus { margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); }
.vstatus.ok { color: var(--ink); font-weight: 500; }
.vstatus.bad { color: var(--err); }
a.btn { text-decoration: none; display: inline-block; }

/* Client assets (websites, social accounts, shops) */
.as-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #E5E9EF; flex-wrap: wrap; }
.as-main { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.as-main .sub { display: block; font-size: 12.5px; color: #5B6675; }
.as-row select { max-width: 190px; }
.as-add { margin-top: 12px; }
.spec-links label { display: block; margin: 4px 0; }
.spec-links .sub { display: block; margin-left: 24px; font-size: 12.5px; color: #5B6675; }

.cb-row { margin: 6px 0; }
.cb-row select { margin-left: 6px; }

/* Audit */
.audit-item { border: 1px solid #D5DCE6; border-left-width: 5px; border-radius: 8px; padding: 12px 14px; margin: 12px 0; background: #fff; color: #1B2430; }
.audit-item.lv-major { border-left-color: #B3261E; }
.audit-item.lv-review { border-left-color: #C77700; }
.audit-item.lv-minor { border-left-color: #5B6675; }
.audit-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.audit-badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #EEF1F5; color: #26303D; }
.audit-badge.bad { background: #FBE4E2; color: #8C1C16; }
.audit-badge.warn { background: #FFF1D6; color: #7A4A00; }
.audit-ctx { margin: 6px 0 0; font-size: 13.5px; color: #5B6675; }
.audit-detail { margin: 8px 0 0; font-size: 14px; }
.audit-item ul { margin: 8px 0 0 18px; padding: 0; }
.audit-ok { font-weight: 500; }

.audit-badge.ok { background: #DDF3E4; color: #17602F; }
.gs-row { padding: 8px 0; border-top: 1px solid #E5E9EF; }
.gs-row:first-of-type { border-top: 0; }
.gs-w { margin-left: 8px; font-weight: 500; }
.choice .sub { display: block; font-size: 12.5px; color: #5B6675; }

/* Clients page cleanup */
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.list-head h1 { margin: 0; }
.action-row { display: flex; gap: 8px 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.card details.fold > summary .fold-status { margin-left: 14px; font-size: 14px; color: var(--ink-faint); }
.card details.fold > summary .fold-status.bad { color: #9A2A1F; }
.card details.fold > summary .fold-status.good { color: #17602F; }
.card details.fold > summary + * { margin-top: 12px; }

.help-lead { font-weight: 600; margin: 0 0 4px; }
.help-opts { margin: 6px 0 10px 20px; padding: 0; }
.help-opts li { margin: 0 0 10px; }
.remove-box{margin-top:18px;padding-top:12px;border-top:1px solid var(--line,#e5e5e5)}.remove-box p{margin:0 0 8px}


/* The credit approval window (WS.confirmCharge) */
.ws-dialog { border: 1px solid var(--line-strong); border-radius: 2px; padding: 24px 28px; max-width: 480px; width: calc(100% - 32px); background: var(--paper); color: inherit; }
.ws-dialog::backdrop { background: rgba(1, 44, 93, .45); }
.ws-dialog h2 { font-size: 22px; margin: 0 0 12px; }
.ws-dialog p { margin: 0 0 10px; }
.cc-cost { margin: 14px 0 4px; padding: 12px 14px; background: var(--paper-raised); border: 1px solid var(--line-strong); }
.cc-cost > div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.cc-cost > .tot { border-top: 1px solid var(--line-strong); margin-top: 6px; padding-top: 8px; }
.ws-dialog .btn-row { margin-top: 18px; }
.ws-dialog .btn.run { font-size: 16px; padding: 12px 22px; }

/* Audit page: tabs and the "before you run it" checklist */
.au-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; border-bottom: 1px solid var(--line-strong); }
.au-tab { appearance: none; background: none; border: 1px solid transparent; border-bottom: 0; padding: 10px 16px; font: inherit; font-weight: 600; color: var(--ink-faint); cursor: pointer; border-radius: 2px 2px 0 0; margin-bottom: -1px; }
.au-tab:hover { color: inherit; }
.au-tab[aria-selected="true"] { background: var(--paper); border-color: var(--line-strong); color: inherit; }
.au-check { list-style: none; margin: 10px 0 14px; padding: 0; }
.au-check li { display: flex; gap: 10px; padding: 5px 0; }
.au-check .mk { font-weight: 700; width: 1.2em; flex: none; }
.au-check .ok .mk { color: #17602F; }
.au-check .no .mk { color: #8C1C16; }
.au-price { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-faint); }
.tbl-wrap td .sub { display: block; font-size: 12.5px; color: #5B6675; }
.signin-help { margin-top: 16px; text-align: center; }

/* Reminders on the workspace home page: one compact line per item, dates open under the row */
.attn-list li { padding: 7px 0; gap: 6px 16px; flex-wrap: wrap; }
.attn-list .who { flex: 1 1 260px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; min-width: 0; }
.attn-list .who strong { font-size: 16px; }
.attn-list .who span { display: inline; font-size: 13px; }
.attn-list .why { flex: 2 1 300px; font-size: 13.5px; }
.attn-list .why strong.due { display: inline; font-size: 13px; font-weight: 600; margin-left: 8px; color: var(--ink-soft); }
.attn-list .why strong.due.late { color: #B42318; }
.attn-list .why strong.due.now, .attn-list .why strong.due.soon { color: #C2550B; }
.attn-list .acts { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.attn-list .follow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px; flex: 1 1 100%; padding: 2px 0 4px; }
.attn-list .follow[hidden] { display: none; }
.attn-list .follow label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--ink-faint); }
.attn-list .follow input[type="date"] { font: inherit; font-size: 14px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }

/* Left-hand menu: one icon for each workspace tool; the name and a short description appear when the mouse rests on it. */
.ws-side { position: fixed; left: 0; top: 0; bottom: 0; width: 64px; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 96px 0 16px; background: var(--paper-raised); border-right: 1px solid var(--line); }
.ws-side[hidden] { display: none; }
body.ws-has-side { padding-left: 64px; }
.ws-side-link { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 6px; color: var(--ink-soft); text-decoration: none; }
.ws-side-link[hidden] { display: none; }
.ws-side-link:hover, .ws-side-link:focus-visible { background: #fff; color: var(--seal); }
.ws-side-link.on { background: #DCE6F2; color: var(--seal); box-shadow: inset 3px 0 0 var(--seal); }
.ws-side-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.ws-side-link .lbl { display: none; }
.ws-side-link::after { content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--seal-dark); color: #fff; font-size: 13px; line-height: 1.3; padding: 7px 11px; border-radius: 3px; opacity: 0; pointer-events: none; transition: opacity .12s ease; z-index: 40; }
.ws-side-link:hover::after, .ws-side-link:focus-visible::after { opacity: 1; }
@media (max-width: 760px) {
  /* On a phone the menu becomes a bar along the bottom, with a short name under each icon. */
  body.ws-has-side { padding-left: 0; padding-bottom: 66px; }
  .ws-side { top: auto; width: auto; height: 60px; right: 0; flex-direction: row; justify-content: space-around; gap: 0; padding: 4px 0; border-right: 0; border-top: 1px solid var(--line); }
  .ws-side-link { width: auto; flex: 1; height: 52px; }
  .ws-side-link .lbl { display: block; font-size: 10px; margin-top: 2px; }
  .ws-side-link::after { display: none; }
  .ws-side-link.on { box-shadow: inset 0 3px 0 var(--seal); }
}

/* Wide tables (portfolio marks) scroll inside the page instead of running past its edge. */
.tbl-wrap { overflow-x: auto; max-width: 100%; }
.ptable td.num { white-space: nowrap; }
/* Shadows at the edges show that a table scrolls sideways, and the scroll bar is always visible. */
.tbl-wrap { background: linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) 0 0 / 40px 100% no-repeat local, linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) 100% 0 / 40px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.28), rgba(0,0,0,0)) 0 0 / 14px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.28), rgba(0,0,0,0)) 100% 0 / 14px 100% no-repeat scroll; padding-bottom: 6px; }
.tbl-wrap::-webkit-scrollbar { height: 12px; }
.tbl-wrap::-webkit-scrollbar-track { background: #ECEDF0; border-radius: 6px; }
.tbl-wrap::-webkit-scrollbar-thumb { background: #8A93A3; border-radius: 6px; }

/* Expand / contract arrow (a small chevron: points down when folded, up when open). */
.chev-btn { padding: 4px 8px !important; text-decoration: none !important; }
.chev { display: inline-block; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin-top: -4px; }
.chev.up { transform: rotate(-135deg); margin-top: 4px; }

/* Collapsible sections on the Workspace home */
.acc-btn { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 0; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.acc-btn:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
.acc-chev { flex: none; width: 0; height: 0; border-left: 7px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .15s; }
.acc-btn[aria-expanded="true"] .acc-chev { transform: rotate(90deg); }
.acc-body[hidden] { display: none; }

.ptable tr.pick > td { background: #fff7d6; }
