/* Hashfox client area: the counter, as on hashfox.pro (terracotta on warm white, a warm dark mode,
   Schibsted Grotesk, pill buttons). Tokens at the top, the v8 skin block after the v3 skin; mobile first. */

:root {
  --sheet: #fffdf9;
  --sheet-2: #f7f2ea;
  --ink: #1d1a17;
  --ink-2: #5c5550;
  --line: #cfc6ba;
  --hair: #e7e0d6;
  --blue: #6b2d5c;
  --blue-ink: #6b2d5c;
  --blue-deep: #52204a;
  --blue-fill: #6b2d5c;
  --blue-fill-text: #ffffff;
  --blue-soft: #f3e4ef;
  --band: #6b2d5c;
  --band-ink: #ffffff;
  --band-ink-2: #ead3e3;
  --band-hair: rgba(255, 255, 255, 0.5);
  --focus: #6b2d5c;
  --shadow: 0 10px 24px -16px rgba(29, 26, 23, 0.35), 0 1px 3px -1px rgba(29, 26, 23, 0.12);
  --ok: #0f6b3a;
  --err: #b42318;
  --warn: #8a5a00;
  --sel: #f3e4ef;
  --display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --frame: clamp(8px, 1.6vw, 22px);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --sheet: #1a1119;
  --sheet-2: #241a23;
  --ink: #f5eef3;
  --ink-2: #c7b8c3;
  --line: #4a3a46;
  --hair: #332833;
  --blue: #e39fd0;
  --blue-ink: #ecb3dc;
  --blue-deep: #52204a;
  --blue-fill: #6b2d5c;
  --blue-fill-text: #ffffff;
  --blue-soft: #3a1f36;
  --band: #52204a;
  --band-ink: #ffffff;
  --band-ink-2: #ead3e3;
  --band-hair: rgba(255, 255, 255, 0.45);
  --focus: #ecb3dc;
  --shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.7), 0 1px 3px -1px rgba(0, 0, 0, 0.5);
  --ok: #6fd39b;
  --err: #ff8a7a;
  --warn: #f0c674;
  --sel: #4a2744;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sheet: #1a1119;
    --sheet-2: #241a23;
    --ink: #f5eef3;
    --ink-2: #c7b8c3;
    --line: #4a3a46;
    --hair: #332833;
    --blue: #e39fd0;
    --blue-ink: #ecb3dc;
    --blue-deep: #52204a;
    --blue-fill: #6b2d5c;
    --blue-fill-text: #ffffff;
    --blue-soft: #3a1f36;
    --band: #52204a;
    --band-ink: #ffffff;
    --band-ink-2: #ead3e3;
    --band-hair: rgba(255, 255, 255, 0.45);
    --focus: #ecb3dc;
    --shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.7), 0 1px 3px -1px rgba(0, 0, 0, 0.5);
    --ok: #6fd39b;
    --err: #ff8a7a;
    --warn: #f0c674;
    --sel: #4a2744;
    color-scheme: dark;
  }
}


@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/static/schibsted-grotesk-var-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/static/schibsted-grotesk-var-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sheet); color: var(--ink);
  font: 400 1rem/1.5 var(--body); font-variant-numeric: normal;
  padding: var(--frame);
}
::selection { background: var(--sel); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.005em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 0.7em; }
b { font-weight: 600; }
.skip { position: absolute; left: -200vw; top: 8px; background: var(--blue-fill); color: var(--blue-fill-text); padding: 0.5rem 0.9rem; z-index: 50; }
.skip:focus { left: 12px; }
.mono { font-family: var(--mono); font-size: 0.88em; overflow-wrap: anywhere; }
.brk { word-break: break-all; }
.muted { color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i, .btn svg, .theme svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- frame ---- */
.head, .sheet, .foot { position: relative; }
.sheet { border: 1px solid var(--line); border-top: 0; min-height: 60vh; }
.sheet::before, .sheet::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 7px; pointer-events: none;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 160px);
}
.sheet::before { left: 0; }
.sheet::after { right: 0; }
.wrap { padding: clamp(1.1rem, 3vw, 2.2rem) var(--gutter) clamp(2rem, 5vw, 3.5rem); max-width: 1400px; margin: 0 auto; }

/* ---- header ---- */
.head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6rem clamp(1rem, 3vw, 2rem);
  padding: 0.7rem var(--gutter); border: 1px solid var(--line); background: var(--sheet);
  position: sticky; top: var(--frame); z-index: 20;
}
.mark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.mark-glyph { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.mark-text { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.mark-text b { color: var(--blue-ink); }
.nav { display: flex; gap: 0.4rem clamp(0.7rem, 1.6vw, 1.4rem); flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-family: var(--display); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 0.84rem; padding: 0.25rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.head-actions { display: flex; align-items: center; gap: 0.5rem; justify-content: end; }
.who { font-family: var(--display); font-size: 0.82rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme { width: 2.25rem; height: 2.25rem; border: 1px solid var(--line); background: transparent; border-radius: 2px; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); }
.theme:hover { border-color: var(--ink); }
.theme .i-moon { display: none; }
[data-theme="dark"] .theme .i-sun { display: none; }
[data-theme="dark"] .theme .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme .i-moon { display: block; }
}
form.inline { display: inline; margin: 0; }

/* ---- page head ---- */
.pagehead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.8rem 1.5rem; margin-bottom: clamp(1rem, 2.4vw, 1.6rem); padding-bottom: 0.9rem; border-bottom: 1px solid var(--hair); }
.pagehead h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.pagehead .sub { margin-top: 0.35rem; color: var(--ink-2); }
.pagehead-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 2px; min-height: 2.6rem;
  font-family: var(--display); font-weight: 600; font-size: 0.92rem; letter-spacing: 0; text-transform: none; text-decoration: none; line-height: 1.1;
  border: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}
.btn:hover { background: var(--ink); color: var(--sheet); }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--blue-fill); color: var(--blue-fill-text); border-color: var(--blue-fill); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-ghost { text-transform: none; letter-spacing: 0.01em; font-weight: 500; font-family: var(--body); min-height: 2.1rem; padding: 0.35rem 0.7rem; border-color: var(--line); }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin: 0.4rem 0 1rem; }
.row-actions .form { flex: 1 1 260px; }
.links { margin-top: 0.9rem; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

/* ---- zones, grids ---- */
.zone { border: 1px solid var(--line); background: var(--sheet); padding: clamp(1rem, 2.2vw, 1.4rem); margin-bottom: clamp(1rem, 2vw, 1.4rem); min-width: 0; }
.zone-title { font-family: var(--display); font-size: 0.84rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); padding-bottom: 0.55rem; border-bottom: 1px solid var(--hair); margin-bottom: 0.9rem; }
.job { box-shadow: var(--shadow); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(1rem, 2vw, 1.4rem); align-items: start; }
.narrow { max-width: 30rem; margin: 0 auto; }
.narrow.wide { max-width: 44rem; }
.figure { font-family: var(--display); font-size: 2.2rem; font-weight: 600; color: var(--blue-ink); line-height: 1; margin-bottom: 0.7rem; }
.empty { color: var(--ink-2); font-family: var(--display); letter-spacing: 0; text-transform: none; font-size: 0.82rem; padding: 0.4rem 0; }
.prose { max-width: 70ch; }
.prose p + p { margin-top: 0.8em; }
h4 { font-size: 0.84rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); margin: 1rem 0 0.4rem; }

/* ---- flash, banner, chips, badges ---- */
.flash { border: 1px solid var(--line); border-left-width: 4px; padding: 0.6rem 0.9rem; margin-bottom: 1rem; font-weight: 500; }
.flash.ok { border-left-color: var(--ok); color: var(--ok); }
.flash.err { border-left-color: var(--err); color: var(--err); }
.banner { border: 1px solid var(--err); color: var(--err); padding: 0.6rem 0.9rem; margin-bottom: 1rem; font-weight: 600; }
.banner a { color: var(--err); }
.chip { display: inline-block; font-family: var(--display); font-size: 0.74rem; font-weight: 600; letter-spacing: 0; text-transform: none; border: 1px solid var(--line); border-radius: 2px; padding: 0.12rem 0.45rem; color: var(--ink-2); white-space: nowrap; }
.chip-active, .chip-live, .chip-paid, .chip-accepted, .chip-done, .chip-sent, .chip-received { color: var(--ok); border-color: var(--ok); }
.chip-overdue, .chip-urgent, .chip-past_due, .chip-suspended, .chip-declined, .chip-failed { color: var(--err); border-color: var(--err); }
.chip-high, .chip-pending, .chip-trialing, .chip-waiting_client, .chip-held, .chip-draft { color: var(--warn); border-color: var(--warn); }
.chip-issued, .chip-building, .chip-in_progress, .chip-open, .chip-review, .chip-queued { color: var(--blue-ink); border-color: var(--blue-ink); }
.chip-demo { color: var(--blue-fill-text); background: var(--blue-fill); border-color: var(--blue-fill); }
.badge { display: inline-block; min-width: 1.5rem; text-align: center; padding: 0.05rem 0.45rem; background: var(--blue-fill); color: var(--blue-fill-text); font-weight: 600; font-size: 0.85rem; border-radius: 2px; }
.tick { color: var(--ok); font-weight: 600; }

/* ---- title block ---- */
.titleblock { margin: 0 0 clamp(1rem, 2vw, 1.4rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); background: var(--sheet); }
.titleblock > div { padding: 0.6rem 0.9rem 0.7rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--hair); min-width: 0; }
.titleblock dt { font-family: var(--display); font-size: 0.7rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); font-weight: 600; }
.titleblock dd { margin: 0.15rem 0 0; font-size: 0.95rem; overflow-wrap: anywhere; }
.titleblock-foot { margin: 0; border-top: 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.titleblock-foot a { color: var(--ink); }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.cutlist { width: 100%; border-collapse: collapse; }
.cutlist th, .cutlist td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--hair); }
.cutlist thead th { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); background: var(--sheet-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.cutlist tbody tr:last-child td { border-bottom: 0; }
.cutlist tbody tr:hover td { background: var(--sheet-2); }
.cutlist .num { text-align: right; white-space: nowrap; }
.cutlist td form.inline .btn { min-height: 2rem; }
.cutlist.edit input[type="text"] { width: 100%; min-width: 6rem; border: 1px solid var(--line); border-radius: 2px; background: var(--sheet); padding: 0.4rem 0.5rem; }

/* ---- forms ---- */
.form { margin: 0; }
.field { display: grid; gap: 0.3rem; margin-top: 0.8rem; min-width: 0; border: 0; padding: 0; }
.field > span, .field legend { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); font-weight: 600; padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 2px; background: var(--sheet); padding: 0.55rem 0.65rem; min-height: 2.6rem; color: var(--ink); caret-color: var(--blue-ink);
}
.field textarea { resize: vertical; line-height: 1.45; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--err); }
.field input[disabled] { color: var(--ink-2); background: var(--sheet-2); }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 11px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.2rem; }
.field input[type="file"] { padding: 0.4rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 0.9rem; }
.lines .field-row { grid-template-columns: minmax(0, 3fr) minmax(4rem, 0.7fr) minmax(6rem, 1fr); }
.lines .field { margin-top: 0.4rem; }
.check { display: flex; gap: 0.55rem; align-items: center; margin-top: 0.9rem; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--blue-fill); }
.form-actions { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 1rem; }
.form-msg { margin-top: 0.6rem; font-size: 0.95rem; min-height: 1.2em; color: var(--ink-2); }
.form-msg.err { color: var(--err); font-weight: 500; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { display: inline-flex; gap: 0.4rem; align-items: center; border: 1px solid var(--line); padding: 0.45rem 0.8rem; border-radius: 2px; cursor: pointer; font-family: var(--display); font-weight: 600; }
.pill:has(input:checked) { border-color: var(--blue-ink); color: var(--blue-ink); }
.inline-form .field-row { max-width: 40rem; }

/* ---- payment rails ---- */
.rails { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border: 1px solid var(--ink); }
.rail { padding: 0.9rem 1rem; border-right: 1px solid var(--hair); min-width: 0; }
.rail:last-child { border-right: 0; }
.rail h3 { font-size: 1.05rem; color: var(--blue-ink); margin-bottom: 0.5rem; }
.rail dl { margin: 0; display: grid; gap: 0.45rem; }
.rail dt { font-family: var(--display); font-size: 0.68rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); font-weight: 600; }
.rail dd { margin: 0; overflow-wrap: anywhere; }

/* ---- cards (repositories) ---- */
.cards { display: grid; gap: 1rem; }
.card { border: 1px solid var(--hair); padding: 0.9rem 1rem; min-width: 0; }
.card h3 { font-size: 1.05rem; }
.card .form { max-width: 30rem; }
.kv { margin: 0.8rem 0 0; }
.kv dt { font-family: var(--display); font-size: 0.7rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); font-weight: 600; }
.kv dd { margin: 0.2rem 0 0; }
.qrbox { max-width: 240px; border: 1px solid var(--line); padding: 8px; background: #fff; margin-bottom: 0.8rem; }
.qr { width: 100%; height: auto; display: block; }
.codes { columns: 2; font-size: 1.05rem; padding-left: 1.4rem; }

/* ---- tabs ---- */
.tabs { display: flex; gap: 1rem; margin-bottom: 0.9rem; border-bottom: 1px solid var(--hair); }
.tabs a { font-family: var(--display); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 0.84rem; color: var(--ink-2); text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---- chat and threads ---- */
.chat { display: grid; gap: 0.8rem; }
.thread { list-style: none; margin: 0; padding: 0.8rem; border: 1px solid var(--line); display: grid; gap: 0.6rem; max-height: min(62vh, 640px); overflow-y: auto; background: var(--sheet-2); overscroll-behavior: contain; }
.tthread { max-height: none; }
.thread .day { justify-self: center; font-family: var(--display); font-size: 0.74rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.msg { max-width: min(78%, 46rem); border: 1px solid var(--line); background: var(--sheet); padding: 0.55rem 0.75rem; justify-self: start; }
.msg.mine { justify-self: end; border-color: var(--blue-ink); }
.msg.internal { border-style: dashed; border-color: var(--warn); }
.tthread .msg { max-width: 100%; justify-self: stretch; }
.msg .meta { font-size: 0.82rem; color: var(--ink-2); display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: baseline; }
.msg .meta b { color: var(--ink); }
.msg .body { margin-top: 0.2rem; overflow-wrap: anywhere; }
.msg .seen { margin-left: auto; font-family: var(--display); letter-spacing: 0; text-transform: none; font-size: 0.7rem; }
.att { display: inline-block; margin-top: 0.4rem; margin-right: 0.6rem; font-size: 0.9rem; }
.composer { display: flex; gap: 0.5rem; align-items: end; flex-wrap: wrap; }
.composer .grow { flex: 1 1 260px; margin-top: 0; }
.composer textarea { min-height: 2.8rem; }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.filebtn.has { border-color: var(--blue-ink); color: var(--blue-ink); }

/* ---- footer ---- */
.foot { margin-top: 0; }
* { scrollbar-color: var(--line) transparent; scrollbar-width: thin; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .head { grid-template-columns: 1fr auto; }
  .nav { grid-column: 1 / -1; order: 3; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { padding: 0; }
  .head { position: static; padding: 0.6rem 16px; border-left: 0; border-right: 0; }
  .sheet { border-left: 0; border-right: 0; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .mark-text { font-size: 0.92rem; }
  .who { display: none; }
  .nav { gap: 0.3rem 0.8rem; }
  .nav a { font-size: 0.78rem; letter-spacing: 0.05em; }
  .sheet::before, .sheet::after { display: none; }
  .form-actions .btn, .composer .btn-solid { width: 100%; justify-content: center; }
  .msg { max-width: 92%; }
  .codes { columns: 1; }
  .cutlist th, .cutlist td { padding: 0.5rem 0.55rem; }
  .lines .field-row { grid-template-columns: minmax(0, 1fr) 4.5rem 6rem; }
}

/* ---- v3 skin: same studio as aibusinessalbania.com (Schibsted Grotesk, ultramarine, sentence case) ---- */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.sheet::before, .sheet::after { display: none; }
.mark-text, .nav a, .who, .btn, .zone-title, .empty, h4 { text-transform: none; letter-spacing: 0; }
h1, h2, h3 { letter-spacing: -0.025em; font-weight: 600; }
.mark { gap: 0.65rem; }
.mark-tile { width: 32px; height: 32px; fill: var(--blue-fill); flex: none; }
.mark-text { font-weight: 600; font-size: 1.02rem; line-height: 1.15; color: var(--ink); }
.mark-text small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--ink-2); margin-top: 0.1rem; }
.head { border-color: var(--hair); border-radius: 12px; }
.nav a { font-size: 0.95rem; font-weight: 500; }
.who { font-size: 0.9rem; }
.theme { border-color: var(--hair); border-radius: 8px; }
.btn { font-weight: 600; font-size: 0.95rem; border-radius: 8px; }
.btn-ghost { border-radius: 8px; }
.zone { border-color: var(--hair); border-radius: 12px; }
.zone-title { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.empty { font-size: 0.95rem; }
.figure { letter-spacing: -0.03em; }
input, select, textarea { border-radius: 8px; }
.titleblock dt { text-transform: none; letter-spacing: 0; }

.cutlist td, .cutlist th, .figure, .kv dd, .rail dd, .money, .num { font-variant-numeric: tabular-nums; }
.sheet { border-color: var(--hair); }
.titleblock { border-color: var(--hair); }
.field > span, .field legend, .titleblock dt, .rail dt, .kv dt, .cutlist thead th, .thread .day, .msg .seen { font-size: 0.82rem; font-weight: 500; }
.chip { font-size: 0.78rem; border-radius: 999px; }
.tabs a { font-size: 0.95rem; }

/* ---- v8 skin: the counter, the same look as hashfox.pro (terracotta band, pill buttons, Schibsted 800 display,
   chat bubbles like the site's). Only colour, radius and weight: no layout changes. ---- */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; }
.pagehead h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.figure { font-weight: 800; letter-spacing: -0.04em; }
/* the header is the terracotta band */
.head { background: var(--band); color: var(--band-ink); border-color: var(--band); border-radius: 14px; }
.mark, .mark-text, .mark-text b { color: var(--band-ink); }
.mark-tile { fill: var(--band-ink); }
.mark-text { font-weight: 800; }
.mark-text small { color: var(--band-ink-2); }
.nav a { color: var(--band-ink-2); font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--band-ink); border-bottom-color: var(--band-ink); }
.nav a.nav-new { background: var(--band-ink); color: var(--band); }
.nav a.nav-new:hover { filter: none; background: var(--sheet-2); }
.nav a.nav-new[aria-current="page"] { box-shadow: 0 0 0 2px var(--band), 0 0 0 4px var(--band-ink); }
.nav-badge { background: var(--band-ink); color: var(--band); }
.who { color: var(--band-ink-2); }
.theme { color: var(--band-ink); border-color: var(--band-hair); border-radius: 999px; }
.theme:hover { border-color: var(--band-ink); }
.head .btn { color: var(--band-ink); border-color: var(--band-hair); }
.head .btn:hover { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.head .btn-solid { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.switch summary { color: var(--band-ink-2); }
.switch summary:hover { color: var(--band-ink); }
.switch ul, .switch li a, .switch li button { color: var(--ink); }
.head :focus-visible { outline-color: var(--band-ink); }
/* pill buttons, as on the site */
.btn, .btn-ghost { border-radius: 999px; border-width: 1.5px; font-weight: 700; }
.btn-solid:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--blue-fill-text); }
.btn-google { border-radius: 999px; }
/* surfaces */
.zone, .titleblock, .table-wrap, .thread, .card, .rails { border-radius: 14px; }
.flash, .banner { border-radius: 10px; }
.rail:first-child h3, .rail h3 { color: var(--blue-ink); }
input, select, textarea, .field input, .field select, .field textarea { border-radius: 10px; }
.cutlist thead th { color: var(--ink); font-weight: 700; }
.thread { border-color: var(--hair); }
/* chat bubbles: mine in terracotta, theirs on paper, the site's bubble shape */
.msg { border-radius: 18px; border-top-left-radius: 4px; border-color: var(--hair); }
.msg.mine { background: var(--blue-fill); color: var(--blue-fill-text); border-color: var(--blue-fill); border-top-left-radius: 18px; border-top-right-radius: 4px; }
.msg.mine .meta, .msg.mine .meta b, .msg.mine .seen, .msg.mine a { color: var(--blue-fill-text); }
.msg.mine .meta { opacity: 0.85; }
.msg.internal { background: var(--sheet); color: var(--ink); border-color: var(--warn); }
.msg.internal .meta, .msg.internal .meta b { color: var(--ink-2); opacity: 1; }
.talk-thread .talk-msg { border-radius: 14px; }
.req-asked, .task-asked { border-radius: 0 10px 10px 0; }
.req-needs { border-radius: 0 10px 10px 0; }
.tabs a[aria-current="page"] { border-bottom-color: var(--blue-fill); }
.task-rows, .studio-rows, .outbox-rows { border-radius: 12px; }
.hirebot-frame { border-radius: 14px; }
.titleblock > div { border-right-color: var(--hair); }

/* ---- studio: client agent chats ------------------------------------------ */
.studio-list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.studio-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.9rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.studio-dot { width: 0.75rem; height: 0.75rem; margin-top: 0.4rem; border-radius: 50%; background: var(--line); }
.studio-dot.on { background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); animation: studio-pulse 1.8s ease-out infinite; }
.studio-dot.err { background: var(--err); }
@keyframes studio-pulse { 70% { box-shadow: 0 0 0 0.5rem rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
@media (prefers-reduced-motion: reduce) { .studio-dot.on { animation: none; } }
.studio-head { margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; }
.studio-state { color: var(--ink-2); font-size: 0.92rem; }
.studio-last { margin: 0.35rem 0 0; color: var(--ink-2); overflow-wrap: anywhere; }
.studio-last b { color: var(--ink); font-weight: 600; margin-right: 0.35rem; }
.studio-when { margin-left: 0.5rem; font-size: 0.85rem; white-space: nowrap; }
@media (max-width: 600px) { .studio-item { grid-template-columns: auto minmax(0, 1fr); } .studio-item .btn { grid-column: 2; justify-self: start; } }
.studio-tasks { margin-top: 0.6rem; }
.studio-tasks summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.studio-tasks ol { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.studio-tasks li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.6rem; align-items: start; padding: 0.55rem 0.7rem; border: 1px solid var(--hair); border-radius: 4px; }
.studio-tasks li.st-done { opacity: 0.6; }
.task-st { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); padding-top: 0.15rem; }
.st-question .task-st { color: var(--warn); }
.st-open .task-st { color: var(--blue-ink); }
.st-doing .task-st { color: var(--ok); }
.task-title { margin: 0; overflow-wrap: anywhere; }
.task-body { margin: 0.3rem 0 0; color: var(--ink-2); font-size: 0.92rem; overflow-wrap: anywhere; }
.studio-tasks-none { margin: 0.4rem 0 0; color: var(--ink-2); font-size: 0.9rem; }
@media (max-width: 600px) { .studio-tasks li { grid-template-columns: 1fr; gap: 0.2rem; } }
.studio-tasks li.task-ctl { display: block; margin-top: -0.35rem; border-top: 0; border-radius: 0 0 4px 4px; background: var(--sheet-2); }
.task-ctl textarea { width: 100%; min-height: 2.6rem; resize: vertical; padding: 0.45rem 0.6rem; border: 1px solid var(--hair); border-radius: 4px; background: var(--sheet); color: var(--ink); font: inherit; font-size: 0.95rem; }
.task-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }
.task-actions .btn { padding: 0.3rem 0.75rem; font-size: 0.9rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- owner viewing the client area as a client ---------------------------- */
.viewas { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: center; align-items: center; padding: 0.5rem 1rem; background: var(--warn); color: #fff; font-size: 0.95rem; }
.viewas a { color: #fff; font-weight: 600; text-decoration: underline; }
.studio-activity h4 { margin: 0.8rem 0 0.3rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
.studio-cost { margin: 0.5rem 0 0; color: var(--ink-2); font-size: 0.92rem; }
ol.act { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; font-size: 0.9rem; }
ol.act li { display: grid; grid-template-columns: 5.5rem 5.5rem minmax(0, 1fr); gap: 0.5rem; padding: 0.2rem 0; border-bottom: 1px solid var(--hair); }
.act-when { color: var(--ink-2); white-space: nowrap; }
.act-kind { font-weight: 600; overflow-wrap: anywhere; }
.act-text { overflow-wrap: anywhere; }
@media (max-width: 600px) { ol.act li { grid-template-columns: 4.5rem minmax(0, 1fr); } .act-text { grid-column: 1 / -1; } }
.st-ready .task-st { color: var(--ok); }
.studio-tasks li.st-ready { border-color: var(--ok); border-width: 2px; }
.task-pics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.task-pics a { display: block; line-height: 0; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; background: var(--sheet-2); }
.task-pics img { display: block; max-width: min(100%, 260px); max-height: 360px; width: auto; height: auto; }
.studio-dot.inline { display: inline-block; width: 0.6rem; height: 0.6rem; margin: 0 0.45rem 0 0; vertical-align: 0.05em; }
.build-line { margin: 0 0 0.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; font-size: 0.95rem; }
.build-line.run b { color: var(--ok); }
.build-line.ok { color: var(--ok); }
.build-line.bad { color: var(--err); }
.build-line .btn { padding: 0.2rem 0.65rem; font-size: 0.85rem; }
.build-steps { margin: 0 0 0.6rem; }
.build-steps summary { cursor: pointer; font-size: 0.9rem; color: var(--ink-2); }
ol.act.build li { grid-template-columns: 5rem minmax(0, 1fr); }
.studio-side { display: grid; gap: 0.5rem; justify-items: stretch; }
.agent-switch { margin: 0; }
.agent-switch .btn { width: 100%; font-size: 0.85rem; }
.agent-switch .btn.is-on { border-color: var(--ok); color: var(--ok); }
@media (max-width: 600px) { .studio-side { grid-column: 2; justify-items: start; } }
.rel { margin: 0.5rem 0 0.2rem; padding: 0.6rem 0.75rem; border: 1px solid var(--hair); border-radius: 4px; background: var(--sheet-2); }
.rel-line { margin: 0 0 0.3rem; display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; align-items: baseline; font-size: 0.95rem; }
.rel-tag { display: inline-block; min-width: 2.6rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.rel-tag.live { color: var(--ok); }
.rel-tag.dev { color: var(--blue-ink); }
.rel-ok { color: var(--ok); font-weight: 600; }
.rel-bad { color: var(--err); font-weight: 600; }
.rel-busy { margin: 0.2rem 0; color: var(--warn); font-weight: 600; }
.rel-wait { margin: 0.3rem 0; }
.rel-wait summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; }
.rel-wait ol { margin: 0.3rem 0 0; padding-left: 1.2rem; font-size: 0.9rem; }
.rel-notes { margin: 0.3rem 0 0; padding-left: 1.2rem; }

/* Hashfox tab: the studio chat inside the client area */
.hirebot-frame { display: block; width: 100%; border: 1px solid var(--line); border-radius: 4px; background: var(--sheet); }

/* ---- v4: the client area for the way the studio works (requests, assistant full-height, phone nav) ---- */
.grid-dash { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 clamp(1rem, 2vw, 1.4rem); align-items: start; }
.req { list-style: none; margin: 0; padding: 0; }
.req li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.3rem 0.8rem; padding: 0.7rem 0; border-top: 1px solid var(--hair); align-items: start; }
.req li:first-child { border-top: 0; padding-top: 0.2rem; }
.req .chip { margin-top: 0.15rem; }
.req-title { font-weight: 600; }
.req-id { color: var(--ink-2); font-size: 0.8rem; font-weight: 400; margin-left: 0.45rem; }
.req-note { color: var(--ink-2); font-size: 0.92rem; margin-top: 0.15rem; }
.req-decide { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.req details { margin-top: 0.35rem; }
.req summary { cursor: pointer; color: var(--ink-2); font-size: 0.88rem; font-weight: 500; }
.req-body { color: var(--ink-2); font-size: 0.9rem; margin-top: 0.35rem; white-space: pre-line; }
.req .task-pics img { max-height: 110px; width: auto; }
.req-counts { color: var(--ink-2); font-size: 0.9rem; margin-bottom: 0.5rem; }
.req-done { padding: 0; }
.req-done > summary { list-style: none; cursor: pointer; padding: 0.9rem clamp(1rem, 2.2vw, 1.4rem); margin: 0; border-bottom: 0; }
.req-done > summary::-webkit-details-marker { display: none; }
.req-done[open] > summary { border-bottom: 1px solid var(--hair); }
.req-done > ol { padding: 0.4rem clamp(1rem, 2.2vw, 1.4rem) 1rem; }
.chip-question { color: var(--warn); border-color: var(--warn); }
.chip-ready { color: var(--ok); border-color: var(--ok); }
.chip-doing { color: var(--blue-ink); border-color: var(--blue-ink); }
.chip-later { color: var(--ink-2); }
/* the assistant fills the screen below the menu: the page is one column as tall as the screen,
   the frame takes what the menu and tabs leave, so there is one scroll (inside the chat) */
body.full { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
body.full > .head, body.full > .viewas { flex: none; }
.sheet-full { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.sheet-full .wrap-full { padding: 0.7rem var(--gutter) 0.7rem; max-width: none; width: 100%; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.wrap-full > .flash, .wrap-full > .hb-tabs { flex: none; }
.hirebot-frame { flex: 1 1 auto; height: auto; min-height: 260px; border-color: var(--hair); border-radius: 12px; }
@media (max-width: 900px) {
  .grid-dash { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 1.1rem; margin: 0 -16px; padding: 0 16px 0.1rem; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: 0.92rem; letter-spacing: 0; }
  .titleblock-foot { grid-template-columns: 1fr 1fr; }
  .titleblock-foot > div:nth-child(1), .titleblock-foot > div:nth-child(4) { display: none; }
  .sheet-full .wrap-full { padding: 0.4rem 8px 0.4rem; }
  .hirebot-frame { border-radius: 10px; }
  .pagehead-actions .btn { width: 100%; justify-content: center; }
}

/* ---- v5: the Tasks page, folded zones, the Studio tasks link ---- */
.tasks-group { margin-bottom: 1rem; }
.tasks-group > summary { font-size: 1.05rem; padding: 0.2rem 0; }
.task-client { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--blue-ink); border: 1px solid var(--blue-ink); border-radius: 999px; padding: 0.05rem 0.55rem; margin-right: 0.3rem; vertical-align: 0.1rem; }
.task-age { color: var(--ink-2); font-size: 0.85rem; font-weight: 400; margin-left: 0.4rem; }
.studio-tasks-link { margin-top: 0.5rem; font-size: 0.95rem; }
.zone-fold { padding: 0; }
.zone-fold > summary { list-style: none; cursor: pointer; padding: 0.9rem clamp(1rem, 2.2vw, 1.4rem); margin: 0; border-bottom: 0; }
.zone-fold > summary::-webkit-details-marker { display: none; }
.zone-fold[open] > summary { border-bottom: 1px solid var(--hair); }
.zone-fold > form, .zone-fold > div { padding: 0.6rem clamp(1rem, 2.2vw, 1.4rem) 1rem; }

/* ---- v6: domains ---- */
.domain-list { list-style: none; margin: 0 0 0.8rem; padding: 0; }
.domain-list li { padding: 0.5rem 0; border-top: 1px solid var(--hair); }
.domain-list li:first-child { border-top: 0; padding-top: 0; }
.domain-list ol.ns { margin: 0.3rem 0 0.5rem 1.2rem; padding: 0; }
.domain-search { display: flex; gap: 0.6rem; align-items: end; flex-wrap: wrap; }
.domain-search .field { flex: 1 1 14rem; margin: 0; }
.domain-bring { margin-top: 0.8rem; }
.domain-bring > summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.domain-bring-form { margin-top: 0.6rem; display: grid; gap: 0.6rem; }
.domain-bring-form .btn { justify-self: start; }
.domain-transfer { display: none; gap: 0.5rem; }
.domain-bring-form:has(input[value="transfer"]:checked) .domain-transfer { display: grid; }
.domain-yours { margin-top: 0.8rem; font-size: 0.9rem; }
.run-line { margin-top: 0.8rem; font-size: 0.92rem; }
.chip-requested, .chip-connecting, .chip-transfer_pending { color: var(--blue-ink); border-color: var(--blue-ink); }
.chip-registered, .chip-connected { color: var(--ok); border-color: var(--ok); }
.chip-released { color: var(--warn); border-color: var(--warn); }
.chip-failed, .chip-rejected { color: var(--err); border-color: var(--err); }

/* Build / Live tabs above the assistant */
.hb-tabs { display: flex; align-items: center; gap: 0.35rem; margin: 0 0 0.6rem; flex-wrap: wrap; }
.hb-tabs a { padding: 0.35rem 0.9rem; border: 1px solid var(--hair); border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.hb-tabs a[aria-current="page"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.hb-note { margin-left: 0.4rem; color: var(--ink-2); font-size: 0.9rem; }

/* ---- v7: phones (390 and 360 wide) and tablets ---- */
@media (max-width: 600px) {
  /* tap targets of at least 44px */
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
  .theme { width: 2.75rem; height: 2.75rem; }
  .btn { min-height: 2.75rem; }
  .btn-ghost { min-height: 2.75rem; }
  .hb-tabs { gap: 0.4rem 0.35rem; margin-bottom: 0.4rem; }
  .hb-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; }
  .hb-note { flex: 1 1 100%; margin: 0 0.2rem; font-size: 0.82rem; line-height: 1.35; }
  summary { padding: 0.6rem 0; }
  .zone-fold > summary, .req-done > summary { padding-top: 0.9rem; padding-bottom: 0.9rem; }
  .pagehead-actions { width: 100%; }
  /* tables become one block per row, each cell labelled with its column */
  .table-wrap:has(> .cutlist.grid) { overflow: visible; border: 0; }
  .cutlist.grid, .cutlist.grid tbody, .cutlist.grid tr, .cutlist.grid td { display: block; width: 100%; }
  .cutlist.grid thead { display: none; }
  .cutlist.grid tr { border: 1px solid var(--hair); border-radius: 8px; padding: 0.35rem 0.75rem; }
  .cutlist.grid tr + tr { margin-top: 0.6rem; }
  .cutlist.grid tbody tr:hover td { background: transparent; }
  .cutlist.grid td { display: grid; grid-template-columns: minmax(6.5rem, 38%) minmax(0, 1fr); gap: 0.6rem; padding: 0.45rem 0; border-bottom: 1px solid var(--hair); text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .cutlist.grid td:last-child { border-bottom: 0; }
  .cutlist.grid td::before { content: attr(data-label); color: var(--ink-2); font-size: 0.82rem; font-weight: 500; padding-top: 0.1rem; }
  .cutlist.grid td:not([data-label])::before, .cutlist.grid td[data-label=""]::before { display: none; }
  .cutlist.grid td:not([data-label]), .cutlist.grid td[data-label=""] { grid-template-columns: minmax(0, 1fr); }
  .cutlist.grid td:empty { display: none; }
  .cutlist.grid td > .btn, .cutlist.grid td > .chip, .cutlist.grid td > form { justify-self: start; }
}
/* the assistant on a short phone screen (keyboard open, landscape): the menu row steps aside for the chat */
@media (max-width: 600px) and (max-height: 600px) {
  body.full .head .nav, body.full .hb-note { display: none; }
  .hirebot-frame { min-height: 200px; }
}

/* ---- the live screen (/live): the project's name, the live assistant, nothing else ---- */
body.app .head { grid-template-columns: minmax(0, 1fr) auto; }
body.app .mark { min-width: 0; }
body.app .mark-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
body.app .mark-text small { overflow: hidden; text-overflow: ellipsis; }
.hb-tabs a.hb-open { order: 2; margin-left: auto; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; min-height: 0; padding: 0; border-radius: 8px; color: var(--ink-2); }
.hb-tabs a.hb-open:hover { color: var(--ink); border-color: var(--ink-2); }
.hb-note { order: 3; }
@media (max-width: 600px) {
  .hb-tabs a.hb-open { width: 44px; height: 44px; }
}

/* Tasks tab: green count of tasks waiting on the studio */
.nav-badge { display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; margin-left: 0.35rem; padding: 0 0.3rem; border-radius: 999px; background: #1f9d55; color: #fff; font-size: 0.7rem; font-weight: 600; line-height: 1; vertical-align: 0.1em; }
.nav-badge[hidden] { display: none; }
.nav-badge.bump { animation: nav-bump 0.9s ease-out 2; }
@keyframes nav-bump { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0.55); } 100% { box-shadow: 0 0 0 0.55rem rgba(31, 157, 85, 0); } }
@media (prefers-reduced-motion: reduce) { .nav-badge.bump { animation: none; } }
.task-anchor { display: block; scroll-margin-top: 5rem; }
:target + .task-title { background: rgba(31, 157, 85, 0.12); }

/* Continue with Google (login, sign-up) */
.btn-google { display: flex; width: 100%; gap: 0.65rem; background: var(--sheet); color: var(--ink); border-color: var(--hair); font-weight: 500; }
.btn-google:hover { background: var(--sheet); color: var(--ink); border-color: var(--ink); }
.btn-google svg, .g-who svg { width: 20px; height: 20px; flex: none; }
.or { display: flex; align-items: center; gap: 0.8rem; margin: 1.1rem 0; color: var(--ink-2, #6b7280); font-size: 0.85rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--hair); }
.g-who { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1rem; }

/* the studio's private build idea on a task */
/* Talk to the builder: the studio's private conversation about one task (Tasks, Studio) */
.talk { margin: 0 0 0.7rem; border: 1px solid var(--hair); border-radius: 4px; background: var(--sheet); }
.talk > summary { cursor: pointer; padding: 0.45rem 0.7rem; font-weight: 600; font-size: 0.95rem; }
.talk-sum { font-weight: 400; color: var(--ink-2); }
.talk-box { padding: 0 0.7rem 0.6rem; }
.talk-thread { list-style: none; margin: 0; padding: 0.6rem; display: grid; gap: 0.5rem; max-height: min(52vh, 520px); overflow-y: auto; background: var(--sheet-2); border: 1px solid var(--hair); border-radius: 4px; overscroll-behavior: contain; }
.talk-thread:empty { display: none; }
.talk-thread .talk-msg { display: block; max-width: min(92%, 46rem); padding: 0.45rem 0.65rem; border-radius: 6px; border: 1px solid var(--hair); background: var(--sheet); }
.talk-thread .talk-msg.studio { justify-self: end; background: var(--blue-soft); border-color: var(--sel); }
.talk-thread .talk-msg.builder { justify-self: start; }
.talk-thread .talk-msg.system { justify-self: stretch; max-width: none; padding: 0.1rem 0.5rem; border: 0; background: none; text-align: center; font-size: 0.85rem; color: var(--ink-2); }
.talk-thread .talk-msg.system.bad { color: var(--err); }
.talk-thread .talk-msg.system.ok { color: var(--ok); }
.talk-meta { display: flex; flex-wrap: wrap; gap: 0 0.5rem; font-size: 0.78rem; color: var(--ink-2); margin-bottom: 0.15rem; }
.talk-meta b { color: var(--ink); font-weight: 600; }
.talk-wait { color: var(--warn); }
.talk-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.93rem; line-height: 1.45; }
.talk-text code { font-family: var(--mono); font-size: 0.86em; padding: 0 0.2em; border-radius: 3px; background: var(--sheet-2); }
.talk-run { margin: 0.5rem 0 0; }
.talk-run:empty { display: none; }
.talk-run .build-line { margin: 0 0 0.3rem; }
.talk-compose { margin-top: 0.5rem; }
.talk-compose textarea { width: 100%; min-height: 2.6rem; resize: vertical; padding: 0.45rem 0.6rem; border: 1px solid var(--hair); border-radius: 4px; background: var(--sheet); color: var(--ink); font: inherit; font-size: 0.95rem; }
.talk-compose .form-msg { margin-top: 0.25rem; min-height: 0; font-size: 0.85rem; }
.talk-compose .form-msg:empty { display: none; }

/* the business switcher: a person who works for several businesses (shown on a phone too) */
.switch { position: relative; font-family: var(--display); font-size: 0.9rem; }
.switch summary { cursor: pointer; list-style: none; color: var(--ink-2); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0.3rem 0; }
.switch summary::-webkit-details-marker { display: none; }
.switch summary::after { content: " \25BE"; }
.switch summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch ul { position: absolute; right: 0; top: calc(100% + 0.3rem); z-index: 30; margin: 0; padding: 0.3rem 0; list-style: none; min-width: 14rem; max-width: calc(100vw - 32px); background: var(--sheet); border: 1px solid var(--hair); border-radius: 6px; box-shadow: var(--shadow); }
.switch li form { margin: 0; }
.switch li a, .switch li button { display: block; width: 100%; text-align: left; padding: 0.55rem 0.9rem; background: none; border: 0; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch li a:hover, .switch li button:hover, .switch li a:focus-visible, .switch li button:focus-visible { background: var(--blue-soft); }
@media (max-width: 600px) { .switch summary { max-width: 14ch; } }
.warn { color: var(--warn); }
/* the Tasks page: one line per task, opened for its notes and controls */
.tasks-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0 1rem; }
.tasks-filter { display: inline-flex; gap: 0.35rem; align-items: baseline; padding: 0.3rem 0.75rem; border: 1px solid var(--hair); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.tasks-filter b { font-weight: 600; color: var(--blue-ink); }
.tasks-filter:hover { border-color: var(--line); }
.tasks-filter.on { border-color: var(--blue-ink); background: var(--blue-soft); }
.task-rows { list-style: none; margin: 0.5rem 0 0; padding: 0; border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; }
.task-row + .task-row { border-top: 1px solid var(--hair); }
.task-row > details > summary { display: grid; grid-template-columns: 5.6rem 8.5rem 3.8rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.55rem 0.8rem; cursor: pointer; list-style: none; }
.task-row > details > summary::-webkit-details-marker { display: none; }
.task-row > details > summary:hover, .task-row > details[open] > summary { background: var(--sheet-2); }
.task-row > details > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.task-row .task-st { padding-top: 0; }
.task-row .task-client { margin: 0; justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-id { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-2); }
.task-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.task-row .task-age { font-size: 0.82rem; color: var(--ink-2); white-space: nowrap; }
.task-row.stalled .task-st { color: var(--warn); }
.task-row.st-done .task-name { font-weight: 400; color: var(--ink-2); }
.task-open { list-style: none; margin: 0; padding: 0.1rem 0.8rem 0.8rem; display: grid; gap: 0.5rem; background: var(--sheet-2); }
.studio-tasks.task-open li.task-detail { display: block; border: 0; padding: 0.2rem 0 0; }
.studio-tasks.task-open li.task-ctl { margin-top: 0; border: 1px solid var(--hair); border-radius: 4px; background: var(--sheet); }
.tasks-more { margin: 0.5rem 0 0; font-size: 0.92rem; }
@media (max-width: 700px) {
  .task-row > details > summary { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "st client age" "name name name"; gap: 0.25rem 0.6rem; }
  .task-row .task-st { grid-area: st; }
  .task-row .task-client { grid-area: client; }
  .task-row .task-age { grid-area: age; }
  .task-row .task-id { display: none; }
  .task-name { grid-area: name; white-space: normal; }
}

/* the Studio page: one line per client chat, opened for its release, last message, activity and switches */
.rows-tools { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; margin: 0.2rem 0 1rem; }
.rows-tools .tasks-filters { margin: 0; }
.rows-search input { width: min(18rem, 100%); padding: 0.4rem 0.7rem; border: 1px solid var(--hair); border-radius: 999px; background: var(--sheet); color: var(--ink); font: inherit; font-size: 0.92rem; }
.rows-search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.studio-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; }
.studio-row + .studio-row { border-top: 1px solid var(--hair); }
.studio-row > details > summary { display: grid; grid-template-columns: 0.8rem minmax(7rem, 11rem) minmax(0, 1fr) 6rem minmax(0, 14rem) 4.5rem 9rem; gap: 0.75rem; align-items: center; padding: 0.55rem 0.8rem; cursor: pointer; list-style: none; }
.studio-row > details > summary::-webkit-details-marker { display: none; }
.studio-row > details > summary:hover, .studio-row > details[open] > summary { background: var(--sheet-2); }
.studio-row > details > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.studio-row .studio-dot { margin: 0; }
.studio-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-row .studio-state { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 0.9rem; }
.studio-live { font-size: 0.9rem; white-space: nowrap; }
.studio-live.muted, .studio-seen, .studio-open { color: var(--ink-2); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-needs { display: flex; flex-wrap: wrap; gap: 0.25rem; min-width: 0; }
.studio-need { font-size: 0.78rem; font-weight: 600; color: var(--warn); border: 1px solid var(--warn); border-radius: 999px; padding: 0.05rem 0.5rem; white-space: nowrap; }
.studio-detail { display: flex; gap: 1rem; align-items: flex-start; padding: 0.4rem 0.8rem 0.9rem 2.35rem; background: var(--sheet-2); }
.studio-detail .studio-body { flex: 1; min-width: 0; }
.studio-detail .studio-side { display: grid; gap: 0.5rem; }
@media (max-width: 900px) {
  .studio-row > details > summary { grid-template-columns: 0.8rem minmax(0, 1fr) auto; grid-template-areas: "dot name live" ". needs needs" ". state state"; gap: 0.25rem 0.6rem; }
  .studio-row .studio-dot { grid-area: dot; }
  .studio-name { grid-area: name; }
  .studio-live { grid-area: live; }
  .studio-needs { grid-area: needs; }
  .studio-row .studio-state { grid-area: state; white-space: normal; }
  .studio-open, .studio-seen { display: none; }
  .studio-detail { flex-direction: column; padding-left: 0.8rem; }
  .studio-detail .studio-side { grid-auto-flow: column; justify-content: start; }
  .studio-needs:empty { display: none; }
}

/* the Outbox: one line per message, opened for the whole message and its buttons */
.outbox-state { margin: -0.4rem 0 0.8rem; font-size: 0.92rem; }
.outbox-on { color: var(--ok); }
.outbox-off { color: var(--warn); }
.outbox-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.outbox-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; }
.outbox-row + .outbox-row { border-top: 1px solid var(--hair); }
.outbox-row > details > summary { display: grid; grid-template-columns: 6rem 4.8rem 7.5rem minmax(0, 13rem) minmax(0, 1fr) 6.5rem; gap: 0.7rem; align-items: center; padding: 0.5rem 0.8rem; cursor: pointer; list-style: none; }
.outbox-row > details > summary::-webkit-details-marker { display: none; }
.outbox-row > details > summary:hover, .outbox-row > details[open] > summary { background: var(--sheet-2); }
.outbox-row > details > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.outbox-row .chip { justify-self: start; }
.outbox-ch, .outbox-when { color: var(--ink-2); font-size: 0.85rem; white-space: nowrap; }
.outbox-client { min-width: 0; overflow: hidden; }
.outbox-client .task-client { margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outbox-to { font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outbox-what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outbox-row.st-sent .outbox-what, .outbox-row.st-discarded .outbox-what { color: var(--ink-2); }
.outbox-open { padding: 0.3rem 0.8rem 0.9rem; background: var(--sheet-2); display: grid; gap: 0.5rem; }
.outbox-facts { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; margin: 0; font-size: 0.88rem; }
.outbox-facts dt { color: var(--ink-2); font-size: 0.78rem; }
.outbox-facts dd { margin: 0; }
.outbox-subject { margin: 0; }
.outbox-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 0.92rem; padding: 0.6rem 0.75rem; border: 1px solid var(--hair); border-radius: 4px; background: var(--sheet); max-height: 22rem; overflow: auto; }
.outbox-err { margin: 0; color: var(--err); font-size: 0.9rem; }
@media (max-width: 800px) {
  .outbox-row > details > summary { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "st ch when" "what what what" "to to client"; gap: 0.2rem 0.6rem; }
  .outbox-row .chip { grid-area: st; }
  .outbox-ch { grid-area: ch; }
  .outbox-when { grid-area: when; justify-self: end; }
  .outbox-what { grid-area: what; white-space: normal; }
  .outbox-to { grid-area: to; }
  .outbox-client { grid-area: client; justify-self: end; }
}

/* Kërkesat: a finished request to check, its chat */
.req-decide { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: flex-start; margin: 0.45rem 0 0.2rem; }
.req-changes > summary { list-style: none; cursor: pointer; }
.req-changes > summary::-webkit-details-marker { display: none; }
.req-changes[open] { flex: 1 1 100%; }
.req-changes form { display: grid; gap: 0.4rem; margin-top: 0.4rem; }
.req-changes textarea { width: 100%; padding: 0.45rem 0.6rem; border: 1px solid var(--hair); border-radius: 4px; background: var(--sheet); color: var(--ink); font: inherit; font-size: 0.95rem; }
.req-changes button { justify-self: start; }
.req-chat { display: inline-block; margin-top: 0.35rem; font-size: 0.9rem; }
/* the change box: room to write on a phone, grows with the text, 16px so iOS does not zoom */
.req-changes textarea { min-height: 7.5rem; max-height: 60vh; resize: vertical; field-sizing: content; font-size: max(16px, 1rem); line-height: 1.45; }
.req-hint { color: var(--ink-2); font-size: 0.88rem; }
/* a request sent back with changes: what was asked */
.req-asked, .task-asked { margin-top: 0.3rem; padding: 0.4rem 0.6rem; border-left: 3px solid var(--blue); border-radius: 0 4px 4px 0; background: var(--blue-soft); color: var(--ink); font-size: 0.92rem; white-space: pre-line; }
.task-asked { margin: 0 0 0.5rem; }
@media (max-width: 600px) {
  /* the status above the request, so the request has the whole width */
  .req li { grid-template-columns: minmax(0, 1fr); }
  .req li > .chip { justify-self: start; }
  .req-decide > form.inline, .req-decide > .req-changes { flex: 1 1 100%; }
  .req-decide .btn { width: 100%; text-align: center; }
}

/* the menu's Kërkesë e re button */
.nav a.nav-new { padding: 0.25rem 0.8rem; border-radius: 999px; background: var(--blue-fill); color: var(--blue-fill-text); text-decoration: none; }
.nav a.nav-new:hover { filter: brightness(1.08); }
.nav a.nav-new[aria-current="page"] { box-shadow: 0 0 0 2px var(--sheet), 0 0 0 4px var(--blue-fill); }

/* what the studio needs from the client */
.req-needs { margin: 0.35rem 0 0; padding: 0.4rem 0.6rem; border-left: 3px solid var(--warn); background: var(--sheet-2); font-size: 0.92rem; }

/* cancelling a request: a quiet link under it */
.req-cancel { margin-top: 0.35rem; }
.req-cancel > summary { font-size: 0.85rem; color: var(--ink-2); text-decoration: underline; }

/* notes from the client assistants to the studio: unread ones stand out, a stop note in red */
.anotes-box { margin: 0 0 0.9rem; }
.anotes-box h2, .anotes-box h4 { margin: 0 0 0.4rem; }
.anotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.anote { padding: 0.45rem 0.7rem; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 0 6px 6px 0; background: var(--sheet); }
.anote.unread { border-left-color: var(--blue); background: var(--blue-soft); }
.anote.unread.k-stop { border-left-color: var(--err); background: var(--sheet-2); }
.anote-meta { margin: 0; font-size: 0.88rem; }
.anote-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0 0.45rem; border: 1px solid currentColor; border-radius: 999px; }
.k-stop .anote-tag { color: var(--err); }
.k-resume .anote-tag { color: var(--blue); }
.anote-text { margin: 0.25rem 0 0.35rem; white-space: pre-line; overflow-wrap: anywhere; }
.anote-wait { font-size: 0.88rem; color: var(--warn); font-weight: 600; }

/* Requests in lanes: whose move it is, by colour; one main step per row */
.turn-studio { --turn: var(--blue-ink); }
.turn-builder { --turn: var(--ink-2); }
.turn-client { --turn: var(--warn); }
.turn-release { --turn: var(--ok); }
.turn-done { --turn: var(--ink-2); }
.turn-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--turn); margin: 1.4rem 0 0.4rem; display: flex; align-items: center; gap: 0.6rem; }
.turn-title::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.lane > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; }
.lane .lane-name { font-weight: 600; }
.lane .lane-n { font-weight: 700; color: var(--turn); font-variant-numeric: tabular-nums; }
.lane .lane-what { flex-basis: 100%; font-size: 0.86rem; color: var(--ink-2); padding-left: 1.1rem; }
.lane .task-st { color: var(--turn); }
.tasks-filter.turn-studio b, .tasks-filter.turn-builder b, .tasks-filter.turn-client b, .tasks-filter.turn-release b { color: var(--turn); }
.task-row > details > summary { grid-template-columns: 5.6rem 8.5rem 3.8rem minmax(0, 1fr) auto auto; }
.task-row .row-act { white-space: nowrap; padding: 0.3rem 0.7rem; font-size: 0.86rem; }
.task-row .task-sub { display: block; font-weight: 400; font-size: 0.84rem; color: var(--ink-2); margin-top: 0.15rem; overflow-wrap: anywhere; }
.lane-stalled .task-st, .lane-remove .task-st, .lane-changes .task-st { color: var(--err); }
/* back from the client: the one row nobody may miss */
.lane-changes > details > summary { box-shadow: inset 3px 0 0 var(--err); }
.chip-wait { color: var(--ink-2); border-color: var(--line); margin-left: 0.3rem; }
.chip-wait.late { color: var(--err); border-color: var(--err); font-weight: 700; }
.task-row.late > details > summary { background: color-mix(in srgb, var(--err) 6%, var(--sheet)); }
.late-banner { border-left: 4px solid var(--err); }
.task-archive { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; align-items: center; font-size: 0.9rem; }
.task-drop .btn-solid { background: var(--err); border-color: var(--err); }
.lane-dropped .task-st, .lane-cancelled .task-st { color: var(--ink-2); }
.tasks-more { margin: 0.4rem 0 0; font-size: 0.95rem; }
.rel-holds ul, .rel-box ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.rel-holds p, .rel-box p { margin: 0; }
.rel-box { margin: 0.4rem 0; padding: 0.5rem 0.7rem; border-radius: 6px; background: var(--sheet); border: 1px solid var(--hair); }
.rel-going { border-color: var(--ok); }
.rel-gone { color: var(--ink-2); }
.rel-box li, .rel-holds li { display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; align-items: baseline; }
.rel-box .why, .rel-holds .why { font-size: 0.8rem; font-weight: 600; margin-left: auto; white-space: nowrap; }
.rel-none { margin: 0.4rem 0; }
.task-cancel { margin-top: 0.6rem; font-size: 0.9rem; }
.task-cancel > summary { color: var(--ink-2); cursor: pointer; }
.task-cancel form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin-top: 0.4rem; }
.task-cancel label { flex-basis: 100%; font-size: 0.85rem; color: var(--ink-2); }
.task-cancel input { flex: 1 1 14rem; min-width: 0; }
@media (max-width: 720px) {
  .task-row > details > summary { grid-template-columns: auto minmax(0, 1fr) auto; }
  .task-row .task-name { grid-column: 1 / -1; }
  .task-row .row-act { grid-column: 1 / -1; justify-self: start; }
}
