@font-face { font-family: "Barlow"; font-style: normal; font-weight: 300; font-display: swap; src: url(/static/fonts/barlow-latin-300-normal.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: "Barlow"; font-style: normal; font-weight: 300; font-display: swap; src: url(/static/fonts/barlow-latin-ext-300-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/barlow-latin-400-normal.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: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/barlow-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/barlow-latin-500-normal.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: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/barlow-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/barlow-latin-600-normal.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: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/barlow-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/barlow-latin-700-normal.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: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/barlow-latin-ext-700-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 800; font-display: swap; src: url(/static/fonts/barlow-latin-800-normal.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: "Barlow"; font-style: normal; font-weight: 800; font-display: swap; src: url(/static/fonts/barlow-latin-ext-800-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Peppelin – flat, typographic, calm. Big bold headings, light labels, hairlines instead of boxes, pill buttons. */
:root {
  --bg: #ffffff;            /* page */
  --surface: #f6f6f4;       /* fields, light panels */
  --ink: #2b2b2b; --muted: #8a8a85; --soft-ink: #5c5c58;
  --line: #d4d4cf; --line-soft: #e3e3df;
  --klein: #002fa7; --klein-dark: #00237d;   /* Yves Klein blue = the button to press next */
  --tick: #f2b705;          /* yellow: ticked off, current page, accents */
  --tick-ink: #b88900;      /* darker yellow for text and lines on white */
  --err: #b0121f;   /* deep red */ --ok: #2f6b3c; --warn: #8a4b00;
  --err-bg: #f7dddd; --ok-bg: #dff0e3; --warn-bg: #f5e8d3;
  --hover: rgba(0, 0, 0, .025); --group: rgba(0, 0, 0, .035);
  --radius: 999px;          /* pills: buttons and fields */
  --radius-box: 14px;       /* cards, panels */
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --side: 232px;            /* sidebar width */
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 400 15px/1.45 "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
h1 { font-size: 34px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; margin: 0; }
h1 .h1-loc, h1 #locName { font-weight: 300; color: var(--muted); margin-left: 8px; text-transform: uppercase; }
h1 .h1-note, h2 .h2-note { font-weight: 300; color: var(--muted); margin-left: 8px; }
.dateline { font-weight: 300; color: var(--soft-ink); font-size: 15px; margin: 6px 0 22px; }
.dateline-row { display: flex; align-items: center; gap: 12px; margin: 6px 0 22px; }
.dateline-row .dateline { margin: 0; }
.muted { color: var(--muted); font-weight: 300; }
.small { font-size: 13px; margin-top: 2px; }
.lead { font-size: 16px; font-weight: 300; }
.mt { margin-top: 26px !important; }
.mt-s { margin-top: 10px; }
.name { font-weight: 600; }
.nowrap { white-space: nowrap; }
ui-nav-menu { display: none; }

/* ---------- Layout: sidebar on the left (logo, sections that fold out their pages), page on the right ---------- */
main { max-width: 1480px; margin: 0 auto; padding: 34px 28px 60px; }
body[data-sec="admin.pnl"] main, body[data-sec="home"] main { max-width: none; } /* P&L and Home: the full width available */
body:has(> aside.side) { padding-left: var(--side); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .14em; font-size: 13px; }
.brand .logo { width: 26px; height: 26px; }
aside.side { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); padding: 18px 16px 16px 22px; background: var(--bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; z-index: 20; }
aside.side .brand { display: block; margin: 0 0 18px; }
aside.side .brand .logo { width: 75px; height: 75px; display: block; }
.side-menu { display: flex; flex-direction: column; flex: 1; }
.menu-btn { display: none; }
.bar-title { display: none; } /* the page name in the top bar – phones only */
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.sg-h, .sg-h:visited { display: block; padding: 8px 0; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.sg-h.active { color: var(--ink); font-weight: 700; }
.sg-p { display: none; flex-direction: column; padding: 0 0 8px; border-left: 1px solid var(--line); margin-left: 3px; }
.sg.open .sg-p { display: flex; }
.sg-p a { position: relative; color: var(--muted); text-decoration: none; font-size: 14px; padding: 5px 0 5px 14px; }
.sg-p a.active { color: var(--ink); font-weight: 700; }
.sg-p a.active::before { content: ''; position: absolute; left: -2px; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--tick); }
.nf-g { display: none; }
/* fewer than 10 pages: the pages without their sections */
.nav-flat .sg:not(.single) > .sg-h { display: none; }
.nav-flat .sg-p { display: flex; padding: 0; border-left: 0; margin-left: 0; }
.nav-flat .sg-p a, .nav-flat .sg-p a:visited { padding: 8px 0; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.nav-flat .sg-p a.active { color: var(--ink); font-weight: 700; } .nav-flat .sg-p a.active::before { display: none; }
.nav-flat .nf-g { display: inline; }
.sg-h:hover, .sg-h:focus, .sg-p a:hover, .sg-p a:focus { color: var(--ink); text-decoration: none; }
.side-foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: 13px; }
.side-foot form { margin: 0; }
.g-loc { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; color: var(--muted); }
.g-loc span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.g-loc select { width: 100%; height: 34px; font-size: 14px; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-weight: 300; }
.who .avatar { width: 32px; height: 32px; }
.demo { background: #f5c518; color: #000; font-weight: 700; padding: 2px 8px; border-radius: 3px; font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
.demo.test { background: var(--tick); }
a.demo, a.demo:hover { color: #000; text-decoration: none; }
body.embedded aside.side .brand, body.embedded .side-foot .who { display: none; }

/* ---------- Page title row and sections ---------- */
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.title-tools { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-left: auto; }
#count { color: var(--muted); font-weight: 300; font-size: 18px; text-transform: none; margin-left: 6px; }
.card { background: transparent; padding: 22px 0 26px; margin: 0; border-top: 1px solid var(--line); }
.card h2 { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; margin: 0 0 12px; }
.card h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--soft-ink); margin: 20px 0 8px; }
details.card summary { list-style: none; cursor: pointer; }
details.card summary h2 { display: inline; }
details.card summary::before { content: '+ '; font-weight: 800; }
details.card[open] summary::before { content: '– '; }
.found-head { display: flex; justify-content: space-between; align-items: baseline; }
.soon h2 { color: var(--muted); }
.actions { margin-top: 18px; display: flex; gap: 12px; justify-content: flex-end; }
.rules { margin: 6px 0 10px; padding-left: 20px; line-height: 1.6; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; margin-bottom: 18px; background: transparent; }
th { text-align: left; font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
th.num, td.num { text-align: right; white-space: nowrap; }
td.right { text-align: right; white-space: nowrap; }
td.order { font-weight: 700; font-size: 18px; white-space: nowrap; }
td.img-cell { width: 56px; padding-right: 0; }
tr.group td { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 0 6px; }
tr.total td { font-weight: 800; font-size: 17px; border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
table.list th.sortable { cursor: pointer; user-select: none; }
table.list th.sortable.on { color: var(--ink); }
table.list th.sortable[data-arrow]::after { content: attr(data-arrow); }
.list .pick { width: 34px; text-align: center; }
.list .pick input { width: 18px; height: 18px; cursor: pointer; }
table.tax td, table.tax th { padding: 9px 8px; }
table.tax th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
table.tax th.sortable.on { color: var(--ink); }
table.tax tr.total td { font-size: 15px; }
table.tax tr.subtotal td { font-weight: 700; border-top: 1px solid var(--line-soft); }
table.tax tr.muted-row td { color: var(--muted); }
table.tax tr.credit td { border-top: 0; color: var(--muted); }
table.tax tr.unpaid td { font-style: italic; color: var(--muted); }
.tax-filters .tax-basis { display: grid; gap: 5px; align-content: start; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tax-basis .segmented { width: max-content; }
.tax-basis .seg { text-transform: none; letter-spacing: 0; font-size: 14px; padding: 0 14px; }
table.tax a { color: var(--ink); }
.empty { text-align: center; color: var(--muted); padding: 40px; font-weight: 300; }
.big-num { font-size: 20px; font-weight: 700; }
.neg { color: var(--err); font-weight: 700; }
.pos { color: var(--ok); font-weight: 700; }
.thumb { display: inline-block; width: 44px; height: 32px; object-fit: contain; vertical-align: middle; }
.items td { font-size: 16px; }
.qty { font-size: 17px; font-weight: 700; }
a.order-link { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a.order-link:hover { text-decoration-color: var(--ink); }

/* ---------- Buttons: flat pills. Blue = press this next, outline = secondary ---------- */
button, a.button { font: inherit; font-weight: 600; font-size: 14px; letter-spacing: .01em; padding: 0 16px; height: 38px; border-radius: var(--radius); cursor: pointer; white-space: nowrap;
  background: var(--klein); color: #fff; border: 1px solid var(--klein); box-shadow: none; transition: background .12s, border-color .12s, color .12s; }
a.button { display: inline-flex; align-items: center; text-decoration: none; background: transparent; color: var(--ink); border-color: var(--ink); }
button:not(:disabled):hover { background: var(--klein-dark); border-color: var(--klein-dark); }
button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
button.secondary:not(:disabled):hover, a.button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
button:disabled { cursor: not-allowed; opacity: .4; }
button.danger { background: transparent; color: var(--err); border-color: var(--err); }
button.danger:not(:disabled):hover { background: var(--err); color: #fff; border-color: var(--err); }
button.big { font-size: 15px; height: 46px; padding: 0 26px; min-width: 180px; }
a.button.small, button.small { font-size: 12px; height: 28px; padding: 0 12px; }
button.small-btn { height: 30px; font-size: 13px; padding: 0 10px; }
button.refresh-btn { height: 26px; font-size: 12px; padding: 0 12px; }
/* text-style buttons: never a blue button on hover – darker and underlined instead */
button.link { background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; height: auto; min-width: 0; }
.link-btn { font: inherit; font-weight: 600; background: none; border: 0; padding: 0; height: auto; cursor: pointer; color: inherit; text-align: left; }
button.link:not(:disabled):hover, .link-btn:not(:disabled):hover, button.link:focus-visible, .link-btn:focus-visible { background: none; border: 0; color: var(--ink); text-decoration: underline; }
.segmented { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.segmented .seg { background: transparent; color: var(--ink); border: 0; border-radius: var(--radius); height: 34px; }
.segmented .seg:not(:disabled):hover { background: var(--line-soft); }
.segmented .seg.active, .segmented .seg.active:hover { background: var(--ink); color: #fff; }

/* ---------- Fields: pills ---------- */
input[type=number], input[type=date], input[type=text], input[type=password], input[type=search], input[type=month], input:not([type]), select {
  font: inherit; font-size: 15px; height: 38px; padding: 0 10px 0 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface); }
input::placeholder { color: var(--muted); font-weight: 300; }
select { max-width: 230px; cursor: pointer; -webkit-appearance: none; appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232b2b2b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 12px 8px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background-color: #fff; }
textarea { font: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: var(--radius-box); padding: 8px 14px; background: var(--surface); color: var(--ink); resize: vertical; }
input[type=checkbox] { accent-color: var(--tick); }
.row-form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.row-form label, .stack label, label.block, .tax-filters label, .login label { display: grid; gap: 5px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
label.block { margin: 14px 0; }
.stack { display: grid; gap: 14px; }
.loc { display: flex; align-items: center; gap: 8px; font-weight: 300; color: var(--muted); }
.qty-input { width: 100px; text-align: right; }
.big-check, .check input { width: 20px; height: 20px; cursor: pointer; }
.check { display: flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; }
.switch { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.switch input { width: 18px; height: 18px; }
.row-form label.switch, .dialog label.switch, .stack label.switch { display: flex; flex-direction: row; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); gap: 10px; }
.dialog label.switch, .stack label.switch { font-size: 14px; }
.toggles { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin: 18px 0 4px; }
.cd-field { display: grid; gap: 4px; margin-bottom: 10px; font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink); }
.cd-field textarea, .cd-field input { width: 100%; }
.cd-inline input { width: 70px; }
/* filter rows (reports, lists): one grid, full-width fields */
.tax-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 16px; }
.tax-filters label[hidden] { display: none; }
.tax-filters label.wide { grid-column: 1 / -1; }
.tax-filters select, .tax-filters input { width: 100%; max-width: none; }
.tax-filters input[type=month] { max-width: 240px; }
input[type=month] { padding: 0 12px; }  /* month pickers, like the date pickers in forms */
.tax-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 6px; }
.tax-actions #tState { flex-basis: 100%; }

/* ---------- Messages, chips, tiles ---------- */
.alert, .ok, .hint { padding: 10px 0 10px 14px; margin-bottom: 14px; border-left: 3px solid var(--ink); background: transparent; }
.alert { color: var(--err); border-left-color: var(--err); font-weight: 600; }
.ok { color: var(--ok); border-left-color: var(--ok); font-weight: 600; }
.hint { font-size: 14px; color: var(--soft-ink); border-left-color: var(--line); }
.problem { color: var(--err); font-size: 14px; font-weight: 600; }
.state { font-size: 14px; color: var(--muted); font-weight: 300; }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border: 1px solid currentColor; border-radius: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--soft-ink); vertical-align: middle; }
.tag.warn { color: var(--tick-ink); }
.chip { display: inline-block; padding: 1px 8px; border-radius: var(--radius); font-size: 12px; font-weight: 600; background: var(--line-soft); color: var(--ink); white-space: nowrap; }
.chip.OSS { background: #dbe9f7; } .chip.VIES { background: #e6dcf5; } .chip.VAT-DE { background: var(--ok-bg); } .chip.Export { background: var(--warn-bg); }
.chip.paid, .chip.ok { background: var(--ok-bg); color: var(--ok); border-left: 0; padding: 1px 8px; margin-bottom: 0; } /* not the message style of .ok */
.chip.unpaid, .chip.err { background: var(--err-bg); color: var(--err); }
.chip.refunded, .chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.zero, .chip.muted { background: var(--line-soft); color: var(--muted); }
.tax-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 18px; }
.tile { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink); height: auto; font: inherit; }
.tile span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tile b { font-size: 20px; font-weight: 800; }
.tile small { color: var(--soft-ink); font-weight: 300; }
.tile.warn { border-color: var(--warn); }
.tile.warn b { color: var(--warn); } .tile.ok b { color: var(--ok); }
button.tile { cursor: pointer; }
button.tile:not(:disabled):hover, a.tile:hover { background: var(--line-soft); color: var(--ink); }
a.tile { text-decoration: none; }
.refund { font-size: 17px; padding: 18px 0; text-align: center; margin: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 300; }
.refund b { font-size: 40px; font-weight: 800; display: block; }
.refund.warn { color: var(--warn); }
.transfer { border-top: 1px solid var(--line-soft); padding-top: 8px; }
.transfer:first-child { border-top: 0; }
/* sticky bar for bulk actions (ticked rows) */
.bulk-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: 8px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.bulk-bar #bulkN, .bulk-bar .bulk-n { font-weight: 600; margin-right: 6px; }
/* profile photos and product images: round */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; flex: none; vertical-align: middle; background: var(--surface); }
.avatar.ini { background: #ecebe6; color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.who-row { display: flex; align-items: center; gap: 10px; }
.pp-head { display: flex; align-items: center; gap: 14px; }
.pp-find { margin-top: 10px; }
.pp-find .pp-q { width: 100%; max-width: 320px; }
.pp-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; max-height: 220px; overflow: auto; }
.pp-pick { all: unset; cursor: pointer; border-radius: 50%; outline: 2px solid transparent; outline-offset: 2px; }
.pp-pick:hover { outline-color: var(--tick); }
.photo-field { grid-column: 1 / -1; }
code.pw { font: 600 15px var(--mono); letter-spacing: .04em; }
pre.code { margin: 10px 0 12px; font: 12px/1.5 var(--mono); padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); white-space: pre-wrap; word-break: break-all; }

/* ---------- Login and public pages ---------- */
.login-page { display: grid; place-items: center; min-height: 100vh; }
.login { background: transparent; padding: 0; width: min(360px, 92vw); display: grid; gap: 16px; }
.login .brand { font-size: 15px; margin-bottom: 18px; }
.login .brand .logo { width: 34px; height: 34px; }
.login select { max-width: none; width: 100%; }
.login button { height: 46px; margin-top: 6px; }
.public-doc { width: min(520px, 92vw); }
.public-doc h1 { font-size: 20px; margin: 18px 0 14px; }
.doc-list { list-style: none; padding: 0; margin: 0 0 18px; }
.doc-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* ---------- Dialogs, hover box, menus ---------- */
.modal { position: fixed; inset: 0; background: rgba(43, 43, 43, .35); display: grid; place-items: center; z-index: 50; }
.dialog { background: var(--bg); padding: 28px 32px; width: min(560px, 94vw); border: 1px solid var(--line); max-height: 90vh; overflow-y: auto; }
.dialog.wide { width: min(720px, 94vw); max-height: 90vh; overflow: auto; }
.dialog h2 { margin: 0 0 10px; font-size: 24px; font-weight: 800; text-transform: uppercase; }
.dialog input[type=search] { width: 100%; }
.c-actions { margin-top: 22px; display: flex; gap: 12px; justify-content: flex-end; }
#ask button.big, #check .c-actions button.big, #note .c-actions button.big { min-width: 0; flex: 1; }
#ask .a-text { font-size: 18px; font-weight: 300; }
/* print window (one-click print): steps with a progress bar */
#progress .dialog { width: min(480px, 94vw); }
.p-bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; margin: 6px 0 18px; }
.p-fill { height: 100%; background: var(--klein); transition: width .4s ease; }
#progress.failed .p-fill { background: var(--err); }
.p-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 17px; }
.p-step { display: flex; gap: 12px; align-items: center; }
.p-step.wait { color: var(--muted); }
.p-step.done .p-icon { color: var(--ok); font-weight: 800; }
.p-step.skip { color: var(--muted); }
.p-step.error { color: var(--err); font-weight: 600; }
.p-icon { width: 20px; display: inline-flex; justify-content: center; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: pspin .8s linear infinite; }
@keyframes pspin { to { transform: rotate(360deg); } }
.p-note { min-height: 1em; margin: 14px 0 0; }
.p-error { white-space: pre-line; margin-top: 14px; }
#note textarea { width: 100%; font-size: 16px; padding: 12px 16px; border-radius: 18px; margin-top: 4px; }
#note .n-label { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); }
.tip-wrap { position: relative; display: inline-block; }
.tip { display: none; position: absolute; z-index: 10; left: 0; top: calc(100% + 8px); width: 320px; background: var(--surface); border: 1px solid var(--line);
  padding: 12px 14px; font-size: 14px; font-weight: 400; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .06); }
.tip-wrap:hover .tip { display: block; }
.tip dl { display: grid; grid-template-columns: 74px 1fr; gap: 5px 10px; margin: 0; }
.tip dt { color: var(--muted); font-weight: 300; }
.tip dd { margin: 0; }
.tip .tag { margin-bottom: 10px; }
.menu-wrap { position: relative; display: inline-block; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 6px; min-width: 210px; box-shadow: 0 10px 30px rgba(0,0,0,.08); display: grid; gap: 2px; }
.menu button.menu-item { background: transparent; color: var(--ink); border: 0; text-align: left; justify-content: flex-start; height: 38px; padding: 0 14px; font-weight: 500; border-radius: var(--radius); }
.menu button.menu-item:hover { background: var(--surface); color: var(--ink); }
.sections-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.sections-grid fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; margin: 0; display: grid; gap: 6px; }
.u-pnl { display: grid; gap: 2px; margin: -2px 0 2px 30px; }
.u-pnl .switch { font-size: 13px; }
.u-pnl .u-pnl-f { margin-top: 4px; }
.u-pnl .u-pnl-rep { display: grid; gap: 4px; margin-top: 6px; max-width: 280px; }
.sections-grid legend { font-weight: 700; padding: 0 6px; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.sections-grid label.switch { font-size: 13px; }
.device { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 0; }

/* ---------- Shipping ---------- */
.find { display: flex; gap: 8px; }
.find input { width: 300px; }
#found { padding-top: 18px; }
#found table { margin: 0; }
.ship-table td { font-size: 15px; }
.ship-table .pick { width: 34px; text-align: center; }
.ship-table .pick input { width: 20px; height: 20px; cursor: pointer; }
.docs { display: flex; gap: 8px; flex-wrap: nowrap; align-items: center; }
.docs-note { margin-top: 6px; font-size: 14px; }
.docs-note.problem { color: var(--err); }
/* print buttons: blue = print this next, outline = later, ✓ text = already printed */
.step-btn { background: transparent; color: var(--ink); border: 1px solid var(--line); min-width: 116px; }
.step-btn:not(:disabled):hover { background: transparent; border-color: var(--ink); }
.step-btn.next { background: var(--klein); border-color: var(--klein); color: #fff; }
.step-btn.next:not(:disabled):hover { background: var(--klein-dark); border-color: var(--klein-dark); }
/* shipping list: only the order to ship next (tr.lead) keeps the strong blue; the others are pastel */
#list tbody tr[data-key]:not(.lead) .step-btn.next { background: color-mix(in srgb, var(--klein) 16%, #fff); border-color: transparent; color: var(--klein); }
#list tbody tr[data-key]:not(.lead) .step-btn.next:not(:disabled):hover { background: color-mix(in srgb, var(--klein) 28%, #fff); border-color: transparent; }
.seg { display: inline-flex; align-items: center; gap: 0; margin-right: 12px; }
.seg[hidden] { display: none; }
.seg > span { margin-right: 8px; }
.seg button { border-radius: 0; padding: 6px 12px; background: transparent; color: var(--ink); border: 1px solid var(--line); }
.seg button + button { border-left: 0; }
.seg button:first-of-type { border-radius: 18px 0 0 18px; }
.seg button:last-of-type { border-radius: 0 18px 18px 0; }
.seg button.on { background: var(--klein); border-color: var(--klein); color: #fff; }
.menu-sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.badge-prio { background: #fff0d9; color: #a35a00; margin-left: 6px; vertical-align: 1px; }
.step-btn.used { background: transparent; border-color: transparent; color: var(--muted); font-weight: 500; padding: 0 10px; min-width: 0; }
.step-btn.used::before { content: '✓ '; color: var(--tick-ink); font-weight: 800; }
.step-btn.used:not(:disabled):hover { border-color: var(--line); }
.step-btn:disabled { opacity: .35; }
tr.waiting td, tr.waiting td.order { color: var(--muted); }
tr.waiting td.order { font-weight: 500; }
tr.cancelled td { background: #fbeaea; }
.cancel-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--err); }
.cancel-row button { margin-left: auto; background: var(--err); border-color: var(--err); }
.order-details { margin-top: 18px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.order-details h3 { margin: 0 0 14px; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; color: var(--ink); }
.od-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; font-size: 16px; }
.od-grid .muted.small, .order-details > .muted.small { text-transform: none; font-size: 13px; }
.checklist { display: grid; gap: 0; margin-top: 6px; }
.check-line { display: grid; grid-template-columns: 26px 52px 1fr auto 56px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; font-size: 16px; }
.check-line:last-child { border-bottom: 0; }
.check-line .cl-name { font-weight: 500; }
.check-line .cl-qty { font-size: 18px; font-weight: 800; text-align: right; }
.check-line:has(input:checked) .cl-name { text-decoration: line-through; text-decoration-color: var(--tick-ink); text-decoration-thickness: 2px; color: var(--muted); }
.check-line:has(input:checked) .cl-qty { color: var(--muted); }
/* stock booking and weighing */
.unit-row { display: flex; gap: 10px; align-items: flex-end; }
.unit-row input { flex: 1; }
.convert { font-size: 14px; color: var(--soft-ink); min-height: 20px; }
#dUnit, #eUnit { min-width: 130px; }
.weigh { margin-top: 14px; padding: 14px 18px; background: var(--surface); border-radius: 16px; }
.weigh-steps { margin: 0 0 12px; padding-left: 20px; font-size: 14px; color: var(--soft-ink); line-height: 1.6; }
.weigh .row-form { align-items: center; }
/* return labels */
.rl-order { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; margin: 6px 0 14px; line-height: 1.6; }
.rl-opts { display: grid; gap: 8px; margin: 10px 0 4px; }
.rl-opts .check, .bk-secs .check { font-size: 15px; }
.rl-done { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
/* template editor */
textarea.code { width: 100%; margin-top: 14px; font: 13px/1.5 var(--mono); padding: 14px 16px; border-radius: 16px; tab-size: 2; }
.tpl-actions { justify-content: flex-start; flex-wrap: wrap; }
.tpl-frame { width: 100%; height: 900px; margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }

/* ---------- Accounting: invoicing and the change-invoice dialog ---------- */
.inv-state { font-weight: 600; }
.inv-state.ok { color: var(--ink); }
.inv-state.err { color: #8b1a1a; font-weight: 500; }
.inv-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.inv-actions button, .inv-actions a.button { height: 30px; font-size: 13px; padding: 0 12px; }
.inv-todo { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 14px; }
.inv-todo a { font-weight: 600; }
ul.inv-problems, ul.inv-hints { margin: 6px 0 0; padding-left: 16px; font-size: 13px; max-width: 420px; }
ul.inv-problems { color: var(--err); }
ul.inv-problems li { margin: 2px 0; }
ul.inv-hints { margin-top: 4px; color: var(--warn); }
.status-line b { display: inline-block; min-width: 150px; }
.c-vatq { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 10px 0; display: grid; gap: 6px; }
.c-vatq legend { padding: 0 6px; }
.c-vatq input[disabled] + *, .c-vatq label:has(input[disabled]) { opacity: .5; }
.cdlg h2 { margin-bottom: 4px; }
.cd-sec { border-top: 1px solid var(--line-soft); padding: 14px 0 12px; }
.cd-sec:first-of-type { border-top: 0; }
.cd-h { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.opts { display: grid; gap: 8px; }
.cdlg label.opt { display: grid; grid-template-columns: 20px 1fr; gap: 2px 10px; align-items: start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }
.cdlg label.opt input[type=radio] { width: 18px; height: 18px; margin: 1px 0 0; }
.cdlg label.opt:has(> input:checked) { border-color: var(--klein); box-shadow: inset 0 0 0 1px var(--klein); }
.cdlg label.opt.disabled { opacity: .5; cursor: not-allowed; }
.opt .t { font-weight: 600; }
.opt .d, .opt .c-with { grid-column: 2; font-size: 13px; color: var(--soft-ink); }
.opt .c-with { margin-top: 8px; display: grid; gap: 6px; }
.cd-now { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vat-now { display: inline-block; padding: 3px 10px; border-radius: 99px; font-weight: 700; font-size: 13px; }
.vat-now.yes { background: #e6efe8; color: var(--ok); }
.vat-now.no { background: #f5ece0; color: var(--warn); }
.tag-rec { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: var(--ok); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.c-why { margin: 8px 0 0; }
.c-why.ok { color: var(--ok); }
.c-why.warn { color: var(--warn); font-weight: 500; }
.c-vatnote { margin: 6px 0 0; }
.cdlg .c-to { width: 100%; margin-top: 6px; }
.cdlg .c-to:disabled { opacity: .5; }
.cdlg label.cd-inline { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }

/* ---------- Supply chain: inventory, BOMs, material units ---------- */
.sp-group { margin-top: 22px; }
.sp-group h3 { margin: 0 0 6px; }
table.sp td, table.sp th { white-space: nowrap; }
table.sp .thumb-cell { width: 44px; }
table.sp .thumb-cell img { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-soft); }
table.sp input[type=number] { width: 96px; height: 32px; text-align: right; }
table.sp input.sp-lead { width: 62px; }
table.sp input.changed { border-color: var(--tick-ink); background: #fff8e1; }
table.sp .chip { margin-left: 6px; }
.rc-hits { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.units-table input { height: 32px; font-size: 14px; padding: 0 8px 0 12px; }
.units-table input.changed { border-color: var(--tick-ink); background: #fff8e1; }
/* one Save for the whole table; it and the column names stay in view while scrolling */
.units-bar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: flex-end; gap: 14px; height: 56px; margin-top: 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
.units-table thead th { position: sticky; top: 56px; z-index: 3; background: var(--bg); box-shadow: inset 0 -1px 0 var(--line); }
.units-table td { padding-top: 8px; padding-bottom: 8px; }
.units-table th { white-space: normal; line-height: 1.2; }
/* BOMs: one card per master product that folds out into its components */
.bom-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.bom-card { border: 1px solid var(--line); border-radius: var(--radius-box); background: var(--bg); overflow: hidden; }
.bom-card.open { box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.bom-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; }
.bom-head:hover { background: rgba(0,0,0,.02); }
.bom-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; }
.bom-total { text-align: right; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.bom-total span { display: block; font-weight: 400; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bom-caret { width: 14px; color: var(--muted); font-size: 12px; text-align: center; }
.bom-gap { font-size: 11px; color: #a15c00; background: #fdf1dc; border-radius: var(--radius); padding: 2px 8px; font-weight: 600; }
.bom-lines { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.bom-lines th { font-size: 11px; font-weight: 500; padding: 8px 16px; border-top: 1px solid var(--line); border-bottom: 0; letter-spacing: .06em; }
.bom-lines td { padding: 8px 16px; border-top: 1px solid #f0efea; border-bottom: 0; }
.bom-lines td:first-child, .bom-lines th:first-child { padding-left: 74px; }
.bom-lines td:last-child, .bom-lines th:last-child { padding-right: 16px; }
.bom-lines .num { text-align: right; font-variant-numeric: tabular-nums; }
.bom-lines tfoot td { font-weight: 700; border-top: 1px solid var(--line); background: rgba(0,0,0,.015); }
.bom-edit td { padding-top: 4px; padding-bottom: 4px; }

/* ---------- Administration: team, overhead, timesheets, backup ---------- */
.oh-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 14px; }
.oh-form .oh-wide { grid-column: 1 / -1; }
.oh-form select { max-width: none; width: 100%; }
.oh-form input[type=date] { padding: 0 12px; }
.oh-bday, .oh-due { display: flex; gap: 6px; }
.oh-bday select:first-child { width: 80px; flex: none; } .oh-bday select:last-child { flex: 1; }
.oh-due > * { flex: 1; min-width: 0; } .oh-due > .o-every { flex: 1.5; }
.y-pick { width: 100px; margin-right: 6px; }
.team-list tr.clickable { cursor: pointer; }
.team-list tr.clickable:hover td { background: rgba(0,0,0,.03); }
/* overhead: edited right in the table, grouped by category */
.oh-table th, .oh-table td { padding-left: 4px; padding-right: 4px; }
.oh-table td { padding-top: 4px; padding-bottom: 4px; vertical-align: middle; }
.oh-table .oh-group { cursor: pointer; user-select: none; }
.oh-group td { background: var(--group); padding-top: 10px; padding-bottom: 6px; }
.oh-table .oh-group:hover td { background: rgba(0,0,0,.06); }
.oh-cell input, .oh-cell select { font: inherit; font-size: 14px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; width: 100%; min-width: 0; color: inherit; }
.oh-cell select { padding-right: 22px; }
.oh-cell input:hover, .oh-cell select:hover { border-color: var(--line); }
.oh-cell input:focus, .oh-cell select:focus { border-color: #0033a0; background: var(--surface); outline: none; }
.oh-cell .c-month, .oh-cell .c-year { width: 100px; text-align: right; }
.oh-cell.saving { opacity: .55; }
.oh-name { min-width: 200px; }
.oh-name > a, .oh-name > .link-btn { color: #3d3d3a; font-weight: 600; text-decoration: none; }
.oh-name > a:hover, .oh-name > .link-btn:not(:disabled):hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.oh-name .oh-link { display: flex; gap: 6px; margin-top: 4px; min-width: 120px; max-width: 320px; }
.oh-name .oh-link input { height: 32px; font-size: 14px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; flex: 1; min-width: 0; text-overflow: ellipsis; }
.oh-dates input { display: block; width: 128px; height: 28px; font-size: 13px; padding: 0 4px; }
.oh-due-cell { white-space: nowrap; }
.oh-due-cell .c-every, .oh-due-cell .c-when { display: block; width: 130px; height: 28px; }
.oh-due-cell input { width: auto; display: inline-block; }
.oh-due-cell .c-anniv { display: block; padding: 4px 9px 0; }
.ts-add { margin: 14px 0; }
.ts-add .ts-what { flex: 1; min-width: 240px; }
.ts-add .ts-what input { width: 100%; }
.ts-add .ts-tags input { width: 220px; }
.ts-detail .chip, #tsList .chip { margin: 1px 0; }
.ts-add input[type=date] { padding: 0 12px; }
tr.ts-detail > td { background: var(--surface); }
#bkFolder { min-width: 420px; }
.bk-secs { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 4px; }

/* ---------- Narrow screens (phones) ---------- */
@media (max-width: 760px) {
  :root { --bar: 60px; }
  /* sidebar becomes a top bar: logo + menu button; the menu opens under it */
  body:has(> aside.side) { padding-left: 0; }
  aside.side { position: sticky; top: 0; width: auto; height: var(--bar); flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; z-index: 40; }
  /* phones: the page title left, the logo right; tapping anywhere on the bar opens / closes the menu */
  aside.side { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  aside.side .brand { margin: 0; order: 2; }
  aside.side .brand .logo { width: 40px; height: 40px; }
  .bar-title { display: block; order: 1; flex: 1; min-width: 0; font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* the heading's name moves into the bar; what else is in the heading (messages triangle …) stays on the page */
  body:has(> aside.side:not([hidden])) main h1 { font-size: 0; margin: 0; line-height: 0; }
  body:has(> aside.side:not([hidden])) main h1 .h1-loc { display: none; }
  body:has(> aside.side:not([hidden])) main h1 .h1-warn { font-size: 26px; margin-left: 0; }
  body:has(> aside.side:not([hidden])) main h1 > :not(button) { display: none; } /* location, count … (the count goes into the bar) */
  body:has(> aside.side:not([hidden])) main h1 > button:not([hidden]) { font-size: 26px; line-height: 1.2; }
  /* nothing left of the heading: no gap and no second line right under the bar */
  main .bar-first { border-top-color: transparent !important; margin-top: 0 !important; }
  main .hm { margin-top: 0; } main .hm-tiles { border-top: 0; } main .hm-tiles .hm-block:first-child { border-top: 0; padding-top: 4px; }
  .menu-btn, .menu-btn:not(:disabled):hover { display: none !important; }
  .side-menu { cursor: auto; }
  main .bar-empty { border-bottom-color: transparent !important; padding-bottom: 0 !important; } /* heading moved into the top bar */
  .side-menu { display: none; position: fixed; top: var(--bar); left: 0; right: 0; bottom: 0; padding: 14px 22px 28px; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
  body.menu-open .side-menu { display: flex; }
  body.menu-open { overflow: hidden; }
  .sg-h { padding: 12px 0; font-size: 14px; }
  .sg-p a { padding: 9px 0 9px 16px; font-size: 15px; }
  .nav-flat .sg-p a { padding: 12px 0; font-size: 14px; }
  .side-foot { padding-top: 24px; }
  .g-loc select { max-width: none; }
  body.embedded aside.side .brand { display: none; }
  body.embedded aside.side { justify-content: flex-start; }

  /* page */
  main { padding: 22px 16px 40px; }
  h1 { font-size: 26px; }
  #count { font-size: 15px; }
  .dateline, .dateline-row { margin-bottom: 16px; }
  .title-tools { margin-left: 0; width: 100%; }
  .card h2 { font-size: 18px; }
  input, select, textarea { max-width: 100%; }
  .row-form > label, .stack label, label.block { max-width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .row-form > label > input, .row-form > label > select, #bkFolder { min-width: 0; }
  .row-form > label.wide { flex: 1 1 100%; }
  .find { width: 100%; } .find input { flex: 1; width: auto; min-width: 0; }
  .bulk-bar, .units-bar { top: var(--bar); }
  .units-bar { height: auto; padding: 10px 0; flex-wrap: wrap; justify-content: space-between; }
  .tip { width: min(320px, calc(100vw - 32px)); }
  .dialog, .dialog.wide { width: calc(100vw - 16px); padding: 20px 18px; max-height: calc(100dvh - 16px); }
  .od-grid { grid-template-columns: 1fr; }
  .tpl-frame { height: 600px; }
}
/* touch screens: hover boxes would stay open after a tap */
@media (hover: none) { .tip-wrap:hover .tip { display: none; } }
/* tables: each row becomes a block, every value with its column name above it */
@media (max-width: 640px) {
  main table:not(.pl-table):not(.hm-t) thead { display: none; }
  main table:not(.bom-lines):not(.pl-table):not(.hm-t), main table:not(.bom-lines):not(.pl-table):not(.hm-t) tbody, main table:not(.bom-lines):not(.pl-table):not(.hm-t) tfoot { display: block; width: 100%; }
  main table:not(.bom-lines):not(.pl-table):not(.hm-t) tr { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  main table:not(.bom-lines):not(.pl-table):not(.hm-t) td { display: block; width: auto; min-width: 0; max-width: 100%; flex: 0 1 auto; padding: 0; border: 0; text-align: left; }
  main table:not(.bom-lines):not(.pl-table):not(.hm-t) td[colspan], main table:not(.bom-lines):not(.pl-table):not(.hm-t) tr.group td { flex-basis: 100%; }
  main table:not(.bom-lines):not(.pl-table):not(.hm-t) td.pick { align-self: center; }
  main table:not(.bom-lines):not(.pl-table):not(.hm-t) td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
  main table:not(.bom-lines):not(.pl-table):not(.hm-t) td.pick { width: auto; }
  main table:not(.bom-lines):not(.pl-table):not(.hm-t) tr.total td { border-top: 0; }
  .docs { flex-wrap: wrap; }
  .check-line { grid-template-columns: 26px 44px 1fr auto 44px; }
  .bom-head { padding: 12px; gap: 10px; }
  .bom-lines th, .bom-lines td { padding: 8px 10px; }
  .bom-lines td:first-child, .bom-lines th:first-child { padding-left: 12px; }
}
/* tax report: the four CSV downloads */
.tax-dl { position: relative; display: inline-block; }
.tax-dl > summary { list-style: none; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid var(--ink); border-radius: var(--radius); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.tax-dl > summary::-webkit-details-marker { display: none; }
.tax-dl > summary:hover, .tax-dl[open] > summary { background: var(--ink); color: #fff; }
.tax-dl-menu { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 170px; background: var(--bg); border: 1px solid var(--ink); border-radius: 12px; padding: 6px 0; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.tax-dl-menu a { display: block; padding: 8px 14px; color: var(--ink); text-decoration: none; font-size: 14px; }
.tax-dl-menu a:hover { background: var(--ink); color: #fff; }
/* My hours: timer and tag picker */
.ts-timer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.ts-clock { display: flex; flex-direction: column; }
.ts-clock b { font-size: 34px; font-variant-numeric: tabular-nums; letter-spacing: .02em; line-height: 1.1; }
.ts-timer-btns { display: flex; gap: 8px; }
.ts-timer .ts-add { flex-basis: 100%; margin: 4px 0 0; }
.ts-tags { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; }
.ts-tags .tp-chips { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 8px; }
.ts-tags .tp-chips .link { padding: 0 0 0 2px; height: auto; font-size: 13px; }
.ts-tags input.tp-free { width: 220px; }
/* My settings: the name / photo bottom left opens it */
.me-nav { border-bottom: 1px solid var(--line-soft); padding-bottom: 14px; margin-bottom: 4px; }
.me-nav p { margin: 0; }
.me-nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 14px; }
.me-admin > div { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 14px; }
.who-me { all: unset; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: inherit; font: inherit; border-radius: 999px; }
.who-me:hover span, .who-me:focus-visible span { text-decoration: underline; color: var(--ink); } /* same as Sign out on hover */
.who-me:focus-visible { outline: 2px solid var(--klein); outline-offset: 2px; }
/* Timesheets: the name opens the details; My hours: timer above the input bar */
.ts-name { font: inherit; color: inherit; text-decoration: none; padding: 0; height: auto; text-align: left; }
.ts-name:hover b { text-decoration: underline; }
tr.ts-row.open > td { border-bottom-color: transparent; }
#tsTimer { margin: 0; padding: 0; }
#tsTimer.on #tmClock { color: var(--klein); }
#tsFromTimer { display: block; margin-top: 4px; }
tr.ts-bonus > td { background: var(--surface); }
/* Accounting → Payments */
.pay-open { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.pay-open:first-child { border-top: 0; padding-top: 0; }
.pay-open .warn { color: var(--warn); }
#payStatus .err { color: var(--err); }
/* My hours → Send an invoice */
.ts-inv-draft { margin-top: 12px; display: grid; gap: 10px; }
.ts-inv-draft iframe { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
#meDlg .dialog { max-height: 92vh; overflow-y: auto; }
/* drop zones (My hours invoice box, Submit content) */
.drop-tile, .drop { cursor: pointer; border-style: dashed !important; border-width: 2px !important; }
.drop { display: grid; gap: 4px; place-items: center; text-align: center; padding: 36px 16px; border: 2px dashed var(--line); border-radius: 6px; }
.drop-tile.over, .drop.over { border-color: var(--ink) !important; background: var(--line-soft); }
.drop-tile.busy { opacity: .6; pointer-events: none; }
.drop.has { border-color: var(--ok) !important; }
.drop-tile b { font-size: 16px !important; }
.progress { height: 8px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--ok); transition: width .2s; }
/* period selector: top right, in line with the page title (same on every page) */
.period-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.period-bar label { display: grid; gap: 5px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); min-width: 170px; }
.period-bar label[hidden] { display: none; }
.period-bar select, .period-bar input { width: 100%; }
@media (max-width: 700px) { .period-bar { width: 100%; } .period-bar label { flex: 1 1 140px; min-width: 0; } }
/* boxes in a row always have the same height */
.tax-tiles { align-items: stretch; }
.tax-tiles > .tile { height: 100%; align-content: start; }
/* location / team member: top right next to the period selector */
.title-tools .g-pick { display: block; width: auto; min-width: 190px; }
.title-tools .g-pick select { width: 100%; max-width: none; } /* same look as the period selector */
.period-bar label, .title-tools .g-pick { min-width: 170px; }
@media (max-width: 700px) { .title-tools .g-pick { flex: 1 1 140px; min-width: 0; } }
/* sign out: like the name next to it */
.who form .link { text-decoration: none; font: inherit; color: inherit; }
.who form .link:hover { text-decoration: underline; }
/* Team → Pepperminters */
.team-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.team-list td { vertical-align: middle; }
.team-list .bar { height: 4px; background: var(--line-soft); border-radius: 2px; margin-top: 6px; overflow: hidden; min-width: 90px; margin-left: auto; }
.team-list .bar div { height: 100%; background: var(--warn); }
.team-list .bar div.ok { background: var(--ok); }
#mpAdd { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }

/* Team → Campaigns */
.cp-form .cp-offer { flex: 1; min-width: 240px; }
.cp-form .cp-offer input { width: 100%; }
.cp-form label.check { flex-direction: row; align-items: center; gap: 6px; }

/* Creatives → Match earlier posts */
.mt-i { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 0; }
.mt-i legend { font-size: 13px; font-weight: 700; padding: 0 6px; }
.mt-p { display: grid; gap: 6px; margin: 6px 0 10px; }
.mt-c { align-items: center; }

/* Creatives → platform icons (Simple Icons, CC0; only where matched / posted; click opens the post) */
.pf-ic { display: inline-block; width: 17px; height: 17px; margin-right: 5px; vertical-align: middle; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
a.pf-ic:hover { opacity: .75; }
.pf-instagram { --ic: url(/static/brand/instagram.svg); background: #FF0069; }
.pf-facebook { --ic: url(/static/brand/facebook.svg); background: #0866FF; }
.pf-youtube { --ic: url(/static/brand/youtube.svg); background: #FF0000; }
.pf-tiktok { --ic: url(/static/brand/tiktok.svg); background: #000; }
.pf-ads { --ic: url(/static/brand/meta.svg); background: #0467DF; }

.list tr.ct-total td { background: var(--soft, rgba(0,0,0,.03)); border-bottom: 2px solid var(--line); }

.icon-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; vertical-align: middle; }
.icon-btn:hover { color: #002fa7; background: rgba(0, 47, 167, .08); }

/* Creatives list: small columns only as wide as their content, numbers compact, the name takes the rest */
#ctList table.list { width: 100%; }
/* the heading line stays on top while scrolling through the videos: the table scrolls inside its own box */
#ctList .table-scroll { max-height: calc(100vh - 140px); overflow: auto; }
#ctList thead th { position: sticky; top: 0; z-index: 2; background: var(--bg); box-shadow: inset 0 -1px 0 var(--line); }
#ctList th, #ctList td { padding-left: 8px; padding-right: 8px; }
#ctList th.narrow, #ctList td.narrow { width: 1%; white-space: nowrap; }
#ctList th.num, #ctList td.num { width: 1%; white-space: nowrap; text-align: right; }
#ctList th.num { white-space: normal; min-width: 62px; max-width: 78px; line-height: 1.25; vertical-align: bottom; }
#ctList th { vertical-align: bottom; }
#ctList .ct-name { min-width: 160px; }
#ctList .ct-name a { text-decoration: none; color: inherit; }
#ctList .ct-gap { display: inline-block; visibility: hidden; }
.ct-ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 14px; }
.ct-ed-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.ct-ed-grid .ct-ed-wide { grid-column: 1 / -1; }
#ctList td.ct-actions { padding-left: 14px; }
#ctList td.ct-actions .icon-btn + .icon-btn { margin-left: 2px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.badge-lang { background: rgba(0, 47, 167, .1); color: #002fa7; }
.badge-lang.badge-en { background: #f1f1f1; color: #9a9a9a; }
.mt-row { display: flex; align-items: center; gap: 6px; }
.mt-row .mt-c { flex: 1; }
.mt-x { font-size: 20px; line-height: 1; color: #777; }
.mt-x:hover { color: #b00020; background: rgba(176, 0, 32, .07); }

/* popups: close × top right */
.dialog { position: relative; }
.dialog .dlg-x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 26px !important; font-weight: 400; line-height: 1; cursor: pointer; z-index: 2; }
.dialog .dlg-x:hover { background: rgba(0, 0, 0, .06); }
.dialog > h2 { padding-right: 36px; }

#ctList [data-rename] { text-decoration: none; color: #999; padding: 0 2px; }
#ctList [data-rename]:hover { color: #002fa7; }
.mt-row.mt-saved .mt-c::after { content: '✓ saved'; margin-left: 8px; color: #1a7f37; font-size: 12px; font-weight: 700; }

/* Campaign Live */
.cl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.cl-be { display: grid; text-align: right; }
.cl-be b { font-size: 34px; line-height: 1.1; }
.cl-src { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-right: 4px; }
.cl-src.ok { background: #e6f4ea; color: #1a7f37; }
.cl-src.bad { background: #fde8ea; color: #b00020; }
.cl-src.off { background: #f1f1f1; color: #888; }
.cl-warn { padding: 10px 14px; border-left: 4px solid #e8a400; background: #fff8e6; font-size: 14px; }
.cl-zone { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.cl-loss { background: #b00020; color: #fff; }
.cl-even { background: #e8a400; color: #fff; }
.cl-profit { background: #1a7f37; color: #fff; }
.cl-table tr.cl-row-loss td:first-child { box-shadow: inset 4px 0 0 #b00020; }
.cl-table tr.cl-row-even td:first-child { box-shadow: inset 4px 0 0 #e8a400; }
.cl-table tr.cl-row-profit td:first-child { box-shadow: inset 4px 0 0 #1a7f37; }
.cl-table td, .cl-table th { padding-left: 8px; padding-right: 8px; }
.cl-table th.num { white-space: normal; max-width: 90px; vertical-align: bottom; }
.cl-group td { background: rgba(0, 0, 0, .035); padding-top: 10px; }
.cl-group-same td { background: rgba(0, 47, 167, .08); }
.cl-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; }
.cl-key.cl-dash { width: 16px; height: 0; border-top: 2px dashed #b00020; border-radius: 0; }

/* Dashboard → P&L */
.pl-table th, .pl-table td { white-space: nowrap; }
.pl-table tbody th { text-align: left; font-weight: 500; position: sticky; left: 0; background: var(--bg); z-index: 1; white-space: normal; min-width: 190px; max-width: 240px; }
.pl-note { display: block; font-size: 10px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.pl-table .pl-total th, .pl-table .pl-total td { font-weight: 700; border-top: 1px solid var(--ink); }
.pl-table .pl-final th, .pl-table .pl-final td { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-size: 15px; }
.pl-table .pl-part th { font-weight: 400; color: var(--muted); }
.pl-table .pl-part td { color: var(--muted); }
.pl-table .pl-click { cursor: pointer; }
.pl-table .pl-click:hover th { text-decoration: underline; }
.pl-table tbody tr:hover > th, .pl-table tbody tr:hover > td { background: #f1f1ee; } /* the whole row on roll-over (incl. the sticky name) */
.pl-table .pl-sum { font-weight: 600; border-left: 1px solid var(--line); padding-right: 12px; }
.pl-table .pl-orders th, .pl-table .pl-orders td { font-size: 12px; }
.pl-neg { color: var(--ink); }
.pl-caret { display: inline-block; width: 14px; color: var(--muted); }
.pl-toggles { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.seg-toggle { display: inline-flex; align-items: center; gap: 0; }
.seg-toggle span { margin-right: 10px; font-size: 13px; }
.seg-toggle button { border-radius: 0; padding: 5px 12px; background: transparent; color: var(--ink); border: 1px solid var(--line); font-size: 13px; }
.seg-toggle button + button { border-left: 0; }
.seg-toggle button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pl-excl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.pl-inc { flex: 1 1 100%; width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 4px; }
.pl-inc h3 { margin: 0 0 10px; font-size: 14px; }
.pl-inc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 370px), 1fr)); gap: 8px 28px; }
.pl-inc-row.wide { grid-column: 1 / -1; }
.pl-inc-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; font-size: 13px; }
.pl-inc-tags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pl-inc-tags input { flex: 1; min-width: 160px; max-width: 320px; }
.pl-ctag { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pl-ctag input { width: 170px; height: 34px; min-height: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; box-sizing: border-box; } /* same size as the toggles next to it */
.pl-dl { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pl-how { margin-top: 14px; padding-top: 10px; }
.pl-how > summary { cursor: pointer; font-weight: 600; }
#plSettings + .pl-how:first-child, #plSettings[hidden] + .pl-how { margin-top: 0; border-top: 0; padding-top: 0; }
@media (max-width: 560px) { .pl-inc-row { grid-template-columns: 1fr; gap: 4px; } }
.pl-set { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; }
.pl-set label { display: grid; gap: 5px; font-size: 13px; }
.bom-ship form { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.bom-ship input { width: 70px; }
/* Overhead → Team / Owner's compensation / Corporate tax */
#oxTeamHead { cursor: pointer; }
.pl-table .pl-gap th, .pl-table .pl-gap td { padding-top: 22px; }
.oh-table .ox-pp { display: inline-flex; align-items: center; gap: 6px; } .oh-table .ox-pp input { width: 70px !important; min-width: 0; }

/* Administration → Costs: one layout for every section – heading left, total right; tables share their column widths */
.cost-summary { margin: 6px 0 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cost-summary .tile { padding: 16px 18px; }
.cost-summary .tile b { font-size: 26px; }
@media (max-width: 700px) { .cost-summary { grid-template-columns: 1fr; } }
.cost-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.cost-head h2 { margin: 0; }
.cost-head-r { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cost-total { font-size: 14px; color: var(--soft-ink); white-space: nowrap; }
.cost-total b { color: var(--ink); font-weight: 700; }
.cost-total .sep { margin: 0 8px; color: var(--muted); }
.cost-tools select, .cost-tools input[type=search] { width: auto; min-width: 150px; height: 34px; }
.cost-tools input[type=search] { min-width: 220px; }
.cost-note { font-size: 12px; color: var(--muted); margin: 12px 0 0; max-width: 900px; line-height: 1.5; }
.cost-table { width: 100%; table-layout: fixed; }
.cost-table col.c-money { width: 140px; } .cost-table col.c-type { width: 220px; } .cost-table col.c-date { width: 168px; } .cost-table col.c-x { width: 56px; } .cost-table col.c-wide { width: 38%; }
.cost-table td, .cost-table th { vertical-align: middle; }
.cost-table input, .cost-table select { width: 100%; height: 34px; }
.cost-table .ox-sub { margin-top: 4px; white-space: normal; }
.ox-amt { display: inline-flex; align-items: center; gap: 6px; width: 100%; justify-content: flex-end; }
.ox-amt input { width: 100%; max-width: 110px; text-align: right; }
.ox-amt[hidden] { display: none; }
.ox-unit-l, .ox-unit-r { color: var(--muted); font-size: 13px; min-width: 10px; }
.cost-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cost-actions .grow { flex: 1; }
.cost-form .ox-amt { width: auto; }
.cost-form .ox-amt input { width: 110px; }
.cost-form input[type=date] { width: 160px; height: 34px; }
.ox-hist { margin-top: 12px; }
.ox-hist summary { cursor: pointer; color: var(--soft-ink); }
.ox-hist table { max-width: 560px; margin-top: 6px; }
#oxTeamHead { cursor: pointer; }
/* settings as label | control rows */
.set-grid { display: grid; gap: 0; margin: 4px 0 10px; max-width: 980px; }
.set-row { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: 24px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.set-row:first-child { border-top: 1px solid var(--line); }
.set-label { display: grid; gap: 3px; }
.set-label b { font-size: 14px; }
.set-label span { font-size: 12px; color: var(--muted); line-height: 1.45; }
.set-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.set-ctl select, .set-ctl input[type=text] { width: 100%; max-width: 480px; }
.set-ctl select#taxDay { width: auto; min-width: 80px; }
.set-ctl .set-num { width: 90px; text-align: right; }
.set-actions { display: flex; justify-content: flex-end; padding-top: 14px; }
@media (max-width: 700px) { .set-row { grid-template-columns: 1fr; gap: 8px; } }
/* Hours: donut of hours by task (pastel colours, the same on the task chips) */
.chip.ts-task { color: #2b2b2b; border-color: transparent; }
.ts-chart-title { font-size: 12px !important; letter-spacing: .12em; color: var(--muted); font-weight: 600 !important; }
.ts-chart { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; justify-content: center; }
.ts-chart svg { width: 420px; max-width: 100%; height: auto; overflow: visible; }
.ts-chart .ts-in, .ts-chart .ts-out { font-size: 13px; fill: #2b2b2b; font-weight: 500; }
.ts-chart .ts-in-n { font-weight: 700; }
.ts-chart .ts-pc { font-size: 11px; font-weight: 700; fill: #2b2b2b; }
.ts-chart .ts-total { font-size: 30px; font-weight: 800; fill: var(--ink); }
.ts-chart .ts-total-sub { font-size: 12px; fill: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.ts-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 220px; }
.ts-legend li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.ts-sw { width: 14px; height: 14px; border-radius: 3px; }
.ts-lv { color: var(--muted); font-variant-numeric: tabular-nums; }
/* Hours: chart left, timer right; the log row above the table, in the table's columns */
.ts-top { display: grid; grid-template-columns: 1fr; gap: 24px 48px; align-items: center; }
.ts-top:has(#tsChart:not([hidden])) { grid-template-columns: minmax(320px, 460px) 1fr; }
@media (max-width: 860px) { .ts-top:has(#tsChart:not([hidden])) { grid-template-columns: 1fr; } }
.ts-top .ts-chart svg { width: 100%; max-width: 460px; }
.ts-top .ts-timer { flex-direction: column; align-items: flex-start; gap: 14px; }
.ts-top .ts-clock b { font-size: 46px; }
.ts-top .ts-timer-btns { flex-wrap: wrap; }
.ts-table { width: 100%; table-layout: fixed; }
.ts-table col.c-day { width: 130px; } .ts-table col.c-hours { width: 76px; } .ts-table col.c-proj { width: 170px; } .ts-table col.c-task { width: 220px; }
.ts-form select { width: 100%; height: 38px; }
.ts-table col.c-entered { width: 90px; } .ts-table col.c-logged { width: 150px; } .ts-table col.c-x { width: 52px; }
.ts-form { margin: 0 0 4px; }
.ts-form td { padding-top: 10px; padding-bottom: 14px; vertical-align: top; border-bottom: 0; }
.ts-form input { width: 100% !important; max-width: none !important; min-width: 0 !important; height: 38px; box-sizing: border-box; }
.ts-form .num input { text-align: right; }
.ts-form .ts-tags { display: grid; gap: 6px; }
.ts-form .ts-tags label { display: block; }
.ts-form .ts-tags select { width: 100%; height: 38px; }
.ts-form .ts-tags .tp-chips { padding: 0; }
.ts-form #tsFromTimer { display: block; margin-top: 4px; text-align: right; }
.ts-form button[type=submit] { height: 38px; }
.ts-add .ts-what { flex: none; min-width: 0; }

.pl-table tr.pl-main > th, .pl-table tr.pl-main > td { font-weight: 700; font-size: 14px; }
.pl-table tr.pl-up.pl-open > th, .pl-table tr.pl-up.pl-open > td { border-top: 1px solid var(--ink); }

/* Hours: same-day reward sticker + confetti */
.ts-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9998; }
.ts-sticker { position: fixed; left: 50%; top: 42%; z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 26px 16px;
  background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.18); cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--tilt)) scale(1); animation: ts-pop .55s cubic-bezier(.2,1.6,.4,1) both; }
.ts-sticker.out { animation: ts-out .35s ease-in both; }
.ts-sticker-e { font-size: 64px; line-height: 1; }
.ts-sticker-t { font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; }
@keyframes ts-pop { from { opacity: 0; transform: translate(-50%, -50%) rotate(var(--tilt)) scale(.3); } to { opacity: 1; transform: translate(-50%, -50%) rotate(var(--tilt)) scale(1); } }
@keyframes ts-out { to { opacity: 0; transform: translate(-50%, -60%) rotate(var(--tilt)) scale(.8); } }
@media (prefers-reduced-motion: reduce) { .ts-sticker, .ts-sticker.out { animation: none; } }

/* Hours: to-do list (tasks on their own or by project, linked to the timer) */
.td-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.td-head h2 { margin: 0; }
.td-add { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 6px; }
.td-add #tdTitle { flex: 2 1 260px; }
.td-add #tdProject { flex: 1 1 180px; }
.td-group { margin-top: 14px; }
.td-group h3, .td-done summary { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 4px; }
.td-ul { list-style: none; margin: 0; padding: 0; }
.td-item { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.td-check { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; min-width: 0; }
.td-check input { width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.td-check span { overflow-wrap: anywhere; }
.td-item.done .td-check span { text-decoration: line-through; color: var(--muted, #888); }
.td-item.imp:not(.done) { background: #fff8e1; }
.td-star { background: none; border: 0; padding: 0 4px; min-width: 0; height: auto; font-size: 18px; color: #d6d6d6; cursor: pointer; line-height: 1; }
span.td-star { cursor: default; }
.td-star.on { color: #e0a800; }
button.td-star:not(:disabled):hover { background: none; color: #e0a800; }
.td-x { background: none; border: 0; padding: 0 4px; min-width: 0; height: auto; color: #aaa; cursor: pointer; font-size: 18px; line-height: 1; }
button.td-x:not(:disabled):hover { background: none; color: var(--ink); }
.td-done { margin-top: 14px; }
.td-done summary { cursor: pointer; color: var(--muted, #777); }
.td-lap { white-space: nowrap; }
.td-pause { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; min-width: 0; height: auto; font-size: 13px; color: var(--ink); cursor: pointer; line-height: 1.3; }
button.td-pause:not(:disabled):hover { background: var(--ink); color: var(--bg); }
.td-log .muted.small { display: block; margin-top: 3px; }
.td-min { white-space: nowrap; }
#tdSession { margin: 14px 0 6px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 12px; }
#tdSession h3 { margin: 0 0 8px; }
.td-log input.td-what { width: 100%; }
@media (max-width: 560px) { .td-log select { max-width: 120px; } }
/* to-do notes + Team → Tasks */
.td-notebtn { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; min-width: 0; height: auto; font-size: 12px; color: #999; cursor: pointer; line-height: 1.3; }
.td-notebtn.has { color: var(--ink); border-color: var(--ink); }
button.td-notebtn:not(:disabled):hover { background: none; color: var(--ink); }
.td-note-pre { display: block; color: #8a8a8a; font-size: 12px; margin-top: 2px; text-decoration: none; }
.td-item { flex-wrap: wrap; }
.td-note { flex-basis: 100%; display: flex; flex-direction: column; gap: 4px; padding: 4px 0 2px 28px; }
.td-note textarea { width: 100%; border-radius: 12px; }
.tt-add { display: grid; grid-template-columns: 2fr 1fr; gap: 12px 16px; align-items: end; }
.tt-add label { display: flex; flex-direction: column; gap: 4px; }
.tt-add .tt-wide { grid-column: 1 / -1; }
.tt-add label.switch { flex-direction: row; align-items: center; }
.tt-people { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; }
.tt-people legend { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.tt-people > div { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tt-people label.tt-person { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; letter-spacing: 0; text-transform: none; }
.tt-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.tt-bar input[type=search] { flex: 1 1 200px; max-width: 320px; }
.tt-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tt-done { text-decoration: line-through; color: #999; }
.tt-who { width: auto; min-width: 130px; max-width: 180px; padding: 4px 30px 4px 12px; font-size: 13px; height: auto; }
@media (max-width: 640px) { .tt-add { grid-template-columns: 1fr; } }

/* owner's figures: blurred until "Show" */
.ox-blurred > :not(.cost-head), .ox-blurred .cost-head .cost-total { filter: blur(7px); pointer-events: none; user-select: none; }
.cost-head .ox-eye { margin-left: auto; }
/* Users overview */
.u-table td { vertical-align: middle; }
.u-table .chip { font-size: 11px; }
.u-table .u-del { color: #999; }
.u-flags { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: end; margin-bottom: 12px; }
.u-flags .cd-field { min-width: 280px; }
.u-pw { margin-top: 6px; }

/* checklist inside a task */
.ck ul { list-style: none; margin: 0 0 6px; padding: 0; }
.ck li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.ck li label { display: flex; align-items: center; gap: 8px; flex: 1; cursor: pointer; font-size: 14px; }
.ck li input { width: 16px; height: 16px; accent-color: var(--ink); }
.ck li.done span { text-decoration: line-through; color: #999; }
.ck-x { background: none; border: 0; padding: 0 4px; min-width: 0; height: auto; color: #bbb; cursor: pointer; }
button.ck-x:not(:disabled):hover { background: none; color: var(--ink); }
.ck-new { width: 100%; font-size: 14px; padding: 6px 12px; height: auto; }
.td-notebtn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* Team → Tasks: projects */
.tt-newp { flex: 1 1 320px; display: flex; }
.tt-newp input { flex: 1; }
.tt-proj { border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
.tt-proj.open { border-color: var(--ink); }
.tt-phead { display: flex; align-items: baseline; gap: 10px; width: auto; flex: 0 1 auto; text-align: left; background: none; border: 0; padding: 12px 14px; height: auto; color: var(--ink); cursor: pointer; font: inherit; border-radius: 12px; }
button.tt-phead:not(:disabled):hover { background: rgba(0,0,0,.03); color: var(--ink); }
.tt-caret { width: 12px; }
.tt-pbody { padding: 0 14px 12px; }
.tt-for { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 4px 0 8px; border-bottom: 1px solid var(--line); }
.tt-for label.tt-person { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.tt-newt { width: 100%; margin-top: 8px; }
.tt-pact { margin-top: 8px; }

/* drag & drop */
.drag { cursor: grab; color: #c4c4c4; padding: 0 4px; user-select: none; touch-action: none; font-size: 13px; letter-spacing: -2px; line-height: 1; }
.drag:hover { color: var(--ink); }
.dragging { opacity: .55; background: #f3f3f3; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none; }

/* Team → Tasks: projects next to each other (scroll left and right) */
.tt-phead-row { display: flex; align-items: center; }
.tt-phead-row .drag { padding-left: 10px; }
.drag-gap { width: 22px; flex: none; }
#ttList.tt-cols { display: flex; gap: 14px; overflow-x: auto; align-items: flex-start; padding-bottom: 10px; scroll-snap-type: x proximity; }
#ttList.tt-cols > .tt-proj, #ttList.tt-cols > .tt-col { flex: 0 0 330px; margin-top: 0; scroll-snap-align: start; }
#ttList.tt-cols > .tt-col { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
#ttList.tt-cols > p { flex: 0 0 100%; }
#ttList.tt-cols .tt-caret { display: none; }
#ttList.tt-cols .tt-phead { cursor: default; }
#ttList.tt-cols .td-item { gap: 6px; }
#ttList.tt-cols .tt-who { min-width: 0; max-width: 120px; }
#ttList.tt-cols .td-notebtn { padding: 2px 7px; }
.tk-session { margin: 14px 0 6px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 12px; }
.tk-session h3 { margin: 0 0 8px; }
.tt-timer-card .ts-timer { gap: 14px 24px; }

/* the timer in the page heading, right after the page name; the timer card keeps the buttons */
h1 .h1-timer { margin-left: 14px; font-variant-numeric: tabular-nums; color: #b9b9b9; font-weight: 700; }
h1 .h1-timer[data-state="running"] { color: var(--klein); }
h1 .h1-timer[data-state="paused"], h1 .h1-timer[data-state="stopped"] { color: var(--ink); }
.ts-timer .ts-clock b { display: none; }

/* timer in the heading: the time, then its buttons */
h1 .h1-tk { display: inline-flex; align-items: center; gap: 14px; vertical-align: middle; flex-wrap: wrap; }
h1 .h1-tk .h1-timer { margin-left: 14px; }
h1 .tk-btns { display: inline-flex; gap: 6px; }
h1 .tk-btns button { font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 6px 14px; height: auto; }
.ts-total-goal { font-size: 13px; fill: var(--muted, #888); }

/* task name: opens / closes the task (only the tick box marks it done) */
.tt-tname { background: none; border: 0; padding: 0; min-width: 0; height: auto; font: inherit; color: var(--ink); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
button.tt-tname:not(:disabled):hover { background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.td-item.done .tt-tname { text-decoration: line-through; color: #999; }
.td-check { cursor: default; }

.tt-pact-h { display: inline-flex; gap: 10px; margin-left: 4px; white-space: nowrap; }
.tt-pedit { background: none; border: 0; padding: 0; min-width: 0; height: auto; color: #b5b5b5; cursor: pointer; font-size: 11px; font-weight: 400; text-transform: lowercase; letter-spacing: 0; }
button.tt-pedit:not(:disabled):hover { background: none; color: var(--ink); }
.tt-pname { font: inherit; font-weight: 700; padding: 4px 10px; height: auto; min-width: 200px; }

/* ===== Team → Tasks, in the Peppelin look: hairlines instead of boxes, typographic headings, yellow = ticked ===== */
.tt-bar { gap: 12px 18px; margin-bottom: 4px; }
#ttList .tt-proj { border: 0; border-radius: 0; margin: 0; padding: 0; border-top: 1px solid var(--line); }
#ttList .tt-proj:first-child { border-top: 0; }
#ttList .tt-proj.open { border-color: var(--line); }
#ttList .tt-phead-row { display: flex; align-items: center; gap: 8px; min-height: 46px; }
#ttList .tt-phead { display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 0; background: none; border: 0; border-radius: 0; height: auto; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
#ttList button.tt-phead:not(:disabled):hover { background: none; color: var(--ink); }
#ttList button.tt-phead:hover .tt-pn { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
#ttList .tt-caret { width: 12px; font-size: 11px; color: var(--muted); }
#ttList .tt-pn { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
#ttList .tt-pc { font-size: 13px; font-weight: 300; color: var(--muted); }
#ttList .tt-pcd { font-weight: 300; }
#ttList .tt-pact-h { display: inline-flex; gap: 10px; }
#ttList .tt-ppl { display: inline-flex; gap: 4px; margin-left: auto; padding-right: 2px; }
#ttList .tt-pbody { padding: 0 0 14px 26px; }
#ttList .tt-for { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 0 0 8px; border: 0; font-size: 13px; color: var(--muted); }
#ttList .tt-for label.tt-person { color: var(--ink); font-size: 13px; }
#ttList .tt-for input { accent-color: var(--tick); }
/* a task: one calm line, details in the fold-out */
#ttList .td-ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
#ttList li.tt-task { display: block; padding: 0; border-bottom: 1px solid var(--line-soft); background: none; }
#ttList li.tt-task.imp:not(.done) { box-shadow: inset 3px 0 0 var(--tick); background: none; }
#ttList .tt-line { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 0; }
#ttList .tt-line > .drag { opacity: 0; transition: opacity .15s; }
#ttList li.tt-task:hover .tt-line > .drag { opacity: 1; }
#ttList .tt-tick { width: 18px; height: 18px; flex: none; accent-color: var(--tick); cursor: pointer; margin: 0; }
#ttList .tt-tname { flex: 1; min-width: 0; font-size: 15px; }
#ttList li.done .tt-tname { color: var(--muted); text-decoration: line-through; }
#ttList .tt-meta { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 12px; color: var(--muted); }
#ttList .tt-lap { color: var(--ok); font-weight: 600; }
#ttList .tt-count { font-variant-numeric: tabular-nums; }
#ttList .tt-ini { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #ecebe6; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .02em; }
#ttList .tt-star { background: none; border: 0; padding: 0 2px; min-width: 0; height: auto; font-size: 16px; color: #dcdcd7; cursor: pointer; line-height: 1; }
#ttList button.tt-star:not(:disabled):hover { background: none; color: var(--tick-ink); }
#ttList .tt-star.on { color: var(--tick); }
#ttList button.tt-star:not(.on) { opacity: 0; }
#ttList li.tt-task:hover button.tt-star { opacity: 1; }
#ttList .tt-mini { background: none; border: 0; padding: 0; min-width: 0; height: auto; font-size: 12px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
#ttList button.tt-mini:not(:disabled):hover { background: none; color: var(--ink); }
#ttList .tt-fold { padding: 2px 0 12px 46px; }
#ttList .tt-fold .ck li { padding: 2px 0; }
#ttList .tt-fold .ck li input { accent-color: var(--tick); }
#ttList .tt-fold .ck-new { border-radius: var(--radius); background: var(--surface); border: 0; }
#ttList .tt-fold-foot { display: flex; align-items: center; gap: 18px; margin-top: 8px; font-size: 12px; color: var(--muted); }
#ttList .tt-assign { display: inline-flex; align-items: center; gap: 8px; }
#ttList .tt-assign select { height: 30px; padding: 2px 30px 2px 12px; font-size: 13px; min-width: 150px; }
/* add a task: a quiet line at the end of the list */
#ttList .tt-addrow { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-left: 22px; }
#ttList .tt-plus { width: 18px; text-align: center; color: var(--muted); font-size: 18px; }
#ttList .tt-newt { flex: 1; margin: 0; border: 0; background: none; padding: 6px 0; height: auto; border-radius: 0; font-size: 15px; }
#ttList .tt-newt:focus { outline: none; box-shadow: inset 0 -1px 0 var(--ink); }
/* columns: projects next to each other, each a clean column under a heading line; scroll sideways */
#ttList.tt-cols { display: flex; gap: 32px; overflow-x: auto; align-items: flex-start; padding: 6px 2px 14px; scroll-snap-type: x proximity; }
#ttList.tt-cols > .tt-proj { flex: 0 0 300px; border-top: 2px solid var(--ink); scroll-snap-align: start; }
#ttList.tt-cols > .tt-proj:first-child { border-top: 2px solid var(--ink); }
#ttList.tt-cols .tt-pbody { padding: 0 0 10px; }
#ttList.tt-cols .tt-phead-row { flex-wrap: wrap; min-height: 0; padding: 8px 0 6px; gap: 2px 8px; }
#ttList.tt-cols .tt-phead { padding: 0; }
#ttList.tt-cols .tt-caret { display: none; }
#ttList.tt-cols .tt-ppl { margin-left: 0; flex-basis: 100%; padding-left: 22px; }
#ttList.tt-cols .tt-for { padding-left: 0; }
#ttList.tt-cols .tt-fold { padding-left: 28px; }
#ttList.tt-cols .tt-addrow { padding-left: 0; }
#ttList.tt-cols .tt-line { gap: 8px; }
#ttList.tt-cols .tt-tname { font-size: 14px; }
#ttList.tt-cols > p { flex: 0 0 100%; }
/* the timer in the heading: same size and type as the page title */
h1 .h1-tk .h1-timer { font: inherit; font-size: 1em; font-weight: 800; letter-spacing: inherit; font-variant-numeric: tabular-nums; margin-left: 10px; color: var(--muted); }
h1 .h1-tk .h1-timer[data-state="running"] { color: var(--klein); }
h1 .h1-tk .h1-timer[data-state="paused"], h1 .h1-tk .h1-timer[data-state="stopped"] { color: var(--ink); }
#ttList .tt-phead-row > .drag { opacity: 0; transition: opacity .15s; }
#ttList .tt-proj:hover > .tt-phead-row > .drag { opacity: 1; }
#ttList .tt-for, #ttList .tt-for label.tt-person { font-size: 12px; }
#ttList .tt-for input { width: 14px; height: 14px; }
#ttList.tt-cols .tt-for { gap: 4px 12px; }

.mp-imp { margin: 6px 0 18px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: var(--radius-box); }
.mp-imp h3 { margin: 0 0 6px; }
#mpImpBtn { cursor: pointer; }

/* ===== Team → Tasks as one note: heading = project, checklist line = task, indented line = subtask ===== */
.nt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 10px; }
.nt-bar .nt-who { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.nt-bar .nt-who select { min-width: 180px; }
.nt-bar input[type=search] { flex: 1 1 200px; max-width: 280px; margin-left: auto; }
.nt-note { max-width: 760px; padding: 4px 0 8px; }
.nt-line { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.nt-in { flex: 1; min-width: 0; border: 0; background: none; padding: 4px 0; height: auto; border-radius: 0; font: inherit; font-size: 16px; color: var(--ink); }
.nt-in:focus { outline: none; }
.nt-in::placeholder { color: #c8c8c3; }
/* a project heading */
.nt-h { margin-top: 22px; min-height: 40px; }
.nt-h:first-child { margin-top: 0; }
.nt-h .nt-in { font-size: 21px; font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; }
/* a task / a subtask */
.nt-t.lv1 { padding-left: 32px; }
.nt-tick { width: 20px; height: 20px; flex: none; margin: 0; border-radius: 50%; accent-color: var(--tick); cursor: pointer; }
.nt-t.lv1 .nt-tick { width: 17px; height: 17px; }
.nt-t.lv1 .nt-in { font-size: 15px; }
.nt-t.done .nt-in { color: var(--muted); text-decoration: line-through; }
.nt-t.imp:not(.done) .nt-in { font-weight: 600; }
.nt-meta { display: inline-flex; gap: 10px; flex: none; font-size: 12px; color: var(--muted); }
.nt-lap { color: var(--ok); font-weight: 600; }
.nt-star { background: none; border: 0; padding: 0 2px; min-width: 0; height: auto; font-size: 15px; color: transparent; cursor: pointer; line-height: 1; }
.nt-line:hover button.nt-star, .nt-line:focus-within button.nt-star { color: #d6d6d1; }
.nt-star.on, .nt-line:hover .nt-star.on { color: var(--tick); }
button.nt-star:not(:disabled):hover { background: none; color: var(--tick-ink); }
.nt-ghost .nt-plus { width: 20px; text-align: center; color: #c8c8c3; font-size: 18px; flex: none; }
.nt-help { max-width: 760px; }
/* the stop dialog: what else did you work on */
.tk-else { margin: 4px 0 12px; }
.tk-else p { margin: 0 0 8px; }
.tk-else-g { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.tk-else-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--soft-ink); margin-right: 4px; }
.tk-pick { background: var(--surface); border: 1px solid transparent; color: var(--ink); border-radius: var(--radius); padding: 4px 12px; height: auto; min-width: 0; font-size: 13px; font-weight: 500; cursor: pointer; }
button.tk-pick:not(:disabled):hover { background: var(--line-soft); color: var(--ink); }
.tk-pick.on, button.tk-pick.on:not(:disabled):hover { background: var(--tick); border-color: var(--tick); color: var(--ink); }
.td-log tr.tk-rest td { color: var(--muted); }
/* the note's lines are plain text, not form fields */
.nt-note input.nt-in, .nt-note input.nt-in:focus, .nt-note input.nt-in:hover { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding: 4px 0 !important; height: auto !important; }
.nt-note .nt-line { border-bottom: 1px solid transparent; }
.nt-note .nt-t:focus-within { border-bottom-color: var(--line-soft); }

/* P&L: CM3 and PAT stand out; owner's net and remaining profit stay quiet */
.pl-table tr.pl-star > th, .pl-table tr.pl-star > td { font-weight: 700; font-size: 15px; border-top: 2px solid var(--ink); background: color-mix(in srgb, var(--ink) 4%, var(--bg)); }
.pl-table tr.pl-star > th { background: color-mix(in srgb, var(--ink) 4%, var(--bg)); }
.pl-table tr.pl-star .pl-note { font-size: 11px; }
.pl-cpct { display: block; font-size: 10px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.pl-table tr.pl-quiet > th, .pl-table tr.pl-quiet > td { font-weight: 500; color: var(--muted); border-top: 1px solid var(--line); }

/* Tasks note: plain text lines, the format toolbar, click-anywhere space */
.nt-tools { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.nt-tools button { min-width: 0; }
.nt-note { cursor: text; }
.nt-note textarea.nt-in, .nt-note textarea.nt-in:focus, .nt-note textarea.nt-in:hover { display: block; width: 100%; resize: none; overflow: hidden; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding: 6px 0 !important; min-height: 0 !important; height: auto; line-height: 1.45; font: inherit; font-size: 16px; color: var(--ink); }
.nt-pad { min-height: 140px; }
@media (max-width: 560px) { .nt-tools { width: 100%; } .nt-tools button { flex: 1; } }

/* Lists: round checkboxes, all the same size (like Apple Notes) */
.nt-note .nt-tick { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; flex: none; margin: 0; padding: 0; border: 1.5px solid #c4c4bf; border-radius: 50%; background: var(--bg); cursor: pointer; display: inline-block; }
.nt-note .nt-t.lv1 .nt-tick { width: 20px; height: 20px; }
.nt-note .nt-tick:checked { border-color: var(--tick); background: var(--tick) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.nt-note .nt-tick:focus-visible { outline: 2px solid var(--tick); outline-offset: 2px; }
/* list headings: drag grip, completed tick, star */
.nt-note .nt-h:first-child { margin-top: 22px; }
.nt-note .nt-sec:first-child > .nt-h:first-child { margin-top: 0; }
.nt-h { gap: 10px; }
.nt-grip { width: 14px; flex: none; margin-left: -24px; color: transparent; cursor: grab; user-select: none; font-size: 15px; text-align: center; touch-action: none; }
.nt-h:hover .nt-grip { color: #b9b9b4; }
.nt-nodrag .nt-grip { display: none; }
.nt-ltick-sp { width: 20px; flex: none; }
.nt-lstar { background: none; border: 0; padding: 0 2px; min-width: 0; height: auto; font-size: 17px; line-height: 1; color: transparent; cursor: pointer; }
.nt-h:hover .nt-lstar, .nt-h:focus-within .nt-lstar { color: #d6d6d1; }
.nt-lstar.on, .nt-h:hover .nt-lstar.on { color: var(--tick); }
button.nt-lstar:not(:disabled):hover { background: none; color: var(--tick-ink); }
.nt-h.ldone .nt-in { color: var(--muted); text-decoration: line-through; }
.nt-sec.dragging { opacity: .55; }
/* separate lists: the lists on the left, one list on the right */
.nt-wrap.split { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.nt-side { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 12px; border-right: 1px solid var(--line-soft); padding-right: 14px; }
.nt-slists { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.nt-sitem { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 10px; height: auto; min-width: 0; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
button.nt-sitem:not(:disabled):hover { background: var(--line-soft); color: var(--ink); }
.nt-sitem.on, button.nt-sitem.on:not(:disabled):hover { background: var(--ink); color: var(--bg); }
.nt-sitem.ldone .nt-sname { text-decoration: line-through; opacity: .6; }
.nt-sname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-scount { font-size: 12px; opacity: .6; }
.nt-sstar { color: var(--tick); font-size: 12px; }
.nt-sitem.on .nt-sstar { color: inherit; }
.nt-sitem.dragging { opacity: .55; }
.nt-tools { display: flex; margin-bottom: 8px; }
@media (max-width: 760px) { .nt-wrap.split { grid-template-columns: 1fr; gap: 12px; } .nt-side { position: static; border-right: 0; padding-right: 0; flex-direction: row; flex-wrap: wrap; } .nt-slists { flex-direction: row; flex-wrap: wrap; margin: 0; padding: 0; border: 0; } .nt-sitem { width: auto; } }

.nt-rpop { position: absolute; z-index: 60; width: 270px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.14); padding: 12px; font-size: 13px; }
.nt-rpop-h { font-weight: 600; margin-bottom: 8px; }
.nt-rpop-seg { display: flex; gap: 0; margin-bottom: 10px; }
.nt-rpop-seg button { flex: 1; min-width: 0; padding: 5px 2px; font-size: 12px; border-radius: 0; background: none; color: inherit; border: 1px solid var(--line, #ddd); margin-left: -1px; height: auto; }
.nt-rpop-seg button:first-child { border-radius: 6px 0 0 6px; margin-left: 0; } .nt-rpop-seg button:last-child { border-radius: 0 6px 6px 0; }
.nt-rpop-seg button.on, .nt-rpop-seg button.on:hover { background: var(--klein, #002fa7); color: #fff; border-color: var(--klein, #002fa7); position: relative; }
.nt-rpop-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.nt-rpop-row select { width: auto; min-width: 72px; }
.nt-rpop-hint { font-size: 12px; line-height: 1.4; margin-bottom: 10px; }
.nt-rpop-b { display: flex; justify-content: flex-end; gap: 8px; }
.nt-ldel { background: none; border: 0; padding: 0 2px; min-width: 0; height: auto; font-size: 14px; line-height: 1; opacity: 0; cursor: pointer; filter: grayscale(1); }
.nt-h:hover .nt-ldel, .nt-h:focus-within .nt-ldel { opacity: .45; }
button.nt-ldel:not(:disabled):hover { background: none; opacity: 1; }

/* Lists: highlights – a layer behind the (transparent) text field */
.nt-iw { position: relative; flex: 1; min-width: 0; display: flex; }
.nt-iw > .nt-in { position: relative; z-index: 1; flex: 1; width: 100%; }
.nt-hl { position: absolute; inset: 0; overflow: hidden; color: transparent; pointer-events: none; margin: 0; border: 0; }
.nt-hl mark { color: transparent; border-radius: 3px; padding: 1px 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-y { background: #fff0a6; } .hl-g { background: #cdeed2; } .hl-b { background: #cfe2fb; } .hl-p { background: #fad3e1; } .hl-l { background: #e3d7f8; }
.nt-pal { position: absolute; z-index: 60; display: flex; gap: 6px; align-items: center; padding: 6px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.nt-pal[hidden] { display: none; }
.nt-pal button { width: 22px; height: 22px; min-width: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); cursor: pointer; }
.nt-pal button:hover { transform: scale(1.12); }
.nt-pal .nt-pal-x { background: var(--bg); color: var(--muted); font-size: 14px; line-height: 1; }
.nt-pal button.hl-y { background: #fff0a6 !important; } .nt-pal button.hl-g { background: #cdeed2 !important; } .nt-pal button.hl-b { background: #cfe2fb !important; } .nt-pal button.hl-p { background: #fad3e1 !important; } .nt-pal button.hl-l { background: #e3d7f8 !important; }
.nt-pal button.nt-pal-x { background: var(--bg) !important; color: var(--muted) !important; }
.nt-pal-sep { width: 1px; height: 18px; background: var(--line); margin: 0 2px; }
.nt-pal button.nt-pal-act { background: var(--bg) !important; color: #6b6b66 !important; display: inline-flex; align-items: center; justify-content: center; }
.nt-pal button.nt-pal-act.on { color: var(--klein, #002fa7) !important; border-color: var(--klein, #002fa7); }
.nt-pal button.nt-pal-act:hover { color: var(--klein, #002fa7) !important; }
.nt-pal button.nt-pal-del:hover { color: #c0392b !important; }
.nt-link-in { width: 100%; margin-bottom: 10px; }

/* Lists: ticked lines fold away – 2 show, the 3rd fades out and unfolds the rest on a click */
.nt-sec .nt-t.done + .nt-t.done + .nt-fade, .nt-fade { display: flex; align-items: center; gap: 12px; height: 18px; overflow: hidden; cursor: pointer; opacity: .55; -webkit-mask-image: linear-gradient(#000 0%, transparent 100%); mask-image: linear-gradient(#000 0%, transparent 100%); margin-bottom: 4px; }
.nt-fade:hover, .nt-fade:focus-visible { opacity: .85; outline: none; }
.nt-fade-tick { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--tick); }
.nt-fade-t { font-size: 16px; color: var(--muted); text-decoration: line-through; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 6px; }
.nt-sec .nt-t.done + .nt-t.done { opacity: .75; }
.nt-less { background: none !important; border: 0; padding: 4px 0 4px 32px; min-width: 0; height: auto; font-size: 12px; color: var(--muted) !important; cursor: pointer; }
.nt-less:hover { text-decoration: underline; }

.pl-targets { flex: 1 1 100%; display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.pl-targets h3 { flex: 1 1 100%; margin: 0; font-size: 14px; }
.pl-min { display: inline-flex; gap: 6px; }
.pl-cpct.pl-under { color: var(--err); }

/* Lists: Show ticked (white, off by default), gaps between lists that start a new list */
.nt-bar { justify-content: flex-end; }
.nt-showdone { background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line) !important; }
.nt-showdone.on { background: var(--line-soft) !important; border-color: var(--ink) !important; }
.nt-gap { height: 22px; margin: 2px 0; display: flex; align-items: center; cursor: pointer; border-radius: 6px; }
.nt-gap span { font-size: 12px; color: transparent; padding-left: 32px; user-select: none; }
.nt-gap:hover span { color: var(--muted); }
.nt-gap-end { height: 90px; align-items: flex-start; padding-top: 8px; }
.nt-note .nt-sec + .nt-gap + .nt-sec > .nt-h:first-child { margin-top: 6px; }

/* Administration → Prices */
.pr-bar { align-items: flex-end; }
.pr-bar label { min-width: 220px; }
.pr-card { margin-bottom: 16px; }
.pr-card h3 { margin: 0 0 10px; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.pr-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.pr-t th, .pr-t td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; white-space: nowrap; }
.pr-t thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.pr-t .num { text-align: right; }
.pr-off { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.pr-t thead th.pr-kind { text-align: left; color: var(--ink); border-bottom: 0; padding-bottom: 0; }
.pr-mname { display: block; color: var(--ink); font-size: 12px; letter-spacing: .04em; }
.pr-msub { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.pr-t .pr-sep { border-left: 2px solid var(--line); }
.pr-t { table-layout: fixed; min-width: 900px; } /* the same column widths in every product's table */
.pr-t th, .pr-t td { white-space: normal; }
.pr-t thead tr:last-child th:first-child { width: 72px; }
.pr-t .pr-q { font-weight: 700; }
.pr-t td.pr-same b, .pr-t td.pr-same .pr-off { color: var(--muted); font-weight: 400; }
.pr-t tr.pr-vrow th { padding-top: 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.pr-exc { display: block; margin-top: 3px; font-size: 11px; color: var(--warn, #b45309); }
.pr-camp { margin: 0 0 14px; font-weight: 500; }
.pr-t tbody th { font-weight: 500; }
.pr-was { color: var(--muted); font-weight: 400; font-size: 12px; }
.pr-together { margin: 8px 0 0; }
.pr-foot { margin-top: 6px; }
/* one market: big, for a trade show */

.pr-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.pr-head h3 { margin: 0; }
.pr-img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--line-soft); flex: none; }

/* Lists: one column per list, the most recent on the left */
.nt-note { max-width: none; }
.nt-cols { display: flex; gap: 14px; align-items: flex-start; overflow-x: auto; padding-bottom: 10px; }
.nt-col { flex: 0 0 320px; max-width: 86vw; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 6px; background: var(--bg); }
.nt-note .nt-col > .nt-h:first-child { margin-top: 0; }
.nt-col .nt-in { font-size: 15px; }
.nt-col .nt-h .nt-in { font-size: 18px; }
.nt-newcol { flex: 0 0 120px; align-self: stretch; min-height: 64px; height: auto; border: 1px dashed var(--line) !important; background: none !important; color: var(--muted) !important; border-radius: 14px; padding: 12px; font-size: 13px; cursor: pointer; white-space: normal; }
.nt-newcol:hover { color: var(--ink) !important; border-color: var(--ink) !important; }

/* weak connection: a small bar at the bottom */
.net-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 999px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.18); max-width: calc(100vw - 32px); }
.net-bar[hidden] { display: none; }
/* loading bar at the very top of the page (common.js) */
.list-wait { font-size: 18px; line-height: 1.6; padding: 36px 12px !important; }
#pmLoad { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10000; pointer-events: none; opacity: 0; transition: opacity .3s ease .05s; }
#pmLoad.on { opacity: 1; transition: opacity .1s ease; }
#pmLoad.on.done { opacity: 0; transition: opacity .3s ease .15s; }
#pmLoad.at-line, #pmLoad.at-bar { position: absolute; top: auto; left: 0; right: 0; bottom: -1px; height: 2px; z-index: 30; } /* inside the line's own element: moves with it */
#pmLoad > div { height: 100%; width: 0; background: var(--klein); box-shadow: 0 0 8px color-mix(in srgb, var(--klein) 60%, transparent); transition: width .25s ease; }

/* the timer card above the lists: only when it has something to show (the clock itself sits in the title) */
.tt-timer-card:not(:has(.ts-timer:not([hidden]), .tk-session:not([hidden]))) { display: none; }

/* inside Shopify admin: the menu shows only once it is known which sections this person may open */
body[data-shell]:not(.nav-ok) .side-nav { visibility: hidden; }
.side-nav [hidden], .side-nav .sg[hidden] { display: none !important; }

/* the timer in the page title: same size, weight and line as the title, centred on one line with its buttons */
h1:has(> .h1-tk) { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
h1 .h1-tk { display: inline-flex; align-items: center; gap: 16px; vertical-align: baseline; }
h1 .h1-tk .h1-timer { margin-left: 0; font-size: inherit; font-weight: 800; line-height: 1; letter-spacing: -.01em; }
h1 .tk-btns { align-items: center; }
h1 .tk-btns button { line-height: 1.2; }
h1:has(> .h1-tk) > span:empty, h1:has(> .h1-tk) > .h1-loc:empty { display: none; }

/* Lists: no boxes – columns separated by a very light, thin vertical line */
.nt-cols { gap: 0; }
.nt-col { border: 0; border-radius: 0; padding: 4px 22px 6px; background: none; }
.nt-col + .nt-col { border-left: 1px solid rgba(0,0,0,.06); }
.nt-cols > .nt-col:first-of-type { padding-left: 4px; }
.nt-newcol { margin-right: 18px; }
.nt-newcol { border: 0 !important; flex: 0 0 auto; align-self: flex-start; min-height: 0; padding: 10px 14px 10px 0; margin-right: 8px; font-size: 13px; }
/* the empty "New list" column: its name greyed out until you type one */
.nt-col-new .nt-h .nt-in::placeholder, .nt-h[data-k="h:new"] .nt-in::placeholder { color: #c9c9c4; }
.nt-col-new { min-height: 60px; }

/* task states: open (empty) · working on it (pastel yellow) · done (pastel green) */
.nt-note .nt-t.working .nt-tick { background: #fff0a6; border-color: #e3c64a; box-shadow: inset 0 0 0 4px #fff0a6, inset 0 0 0 10px #e3c64a; }
.nt-note .nt-t.working .nt-in { font-weight: 600; }
.nt-note .nt-tick:checked { border-color: #8fcf9c; background: #cdeed2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232e7d4f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.nt-fade-tick { background: #cdeed2; }

/* Hours: time not logged yet, by day */
.tk-pending { margin: 14px 0 6px; }
.tk-pending h3 { margin: 0 0 8px; }
.td-log tr.tk-day td { padding-top: 14px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); }
.td-log tr.tk-now td { background: #fffbe0; }
.td-log tr.tk-rest td { color: var(--muted); }
.tk-badge { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: #fff0a6; color: var(--ink); margin-left: 6px; }

/* a task with notes (Shift+Enter): the tick and the time stay with the first line */
.nt-note .nt-t { align-items: flex-start; }
.nt-note .nt-t textarea.nt-in, .nt-note .nt-t textarea.nt-in:focus, .nt-note .nt-t textarea.nt-in:hover { padding: 4px 0 !important; }
.nt-note .nt-t .nt-tick { margin-top: 5.5px; } /* centred on the first line of the text (4px padding + half of 15px × 1.45) */
.nt-note .nt-t .nt-meta, .nt-note .nt-t .nt-star { margin-top: 7px; }

/* Lists: the time next to each task – grey; the task worked on counts on in blue */
.nt-note .nt-time { font-size: 12px; color: #a3a39e; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nt-note .nt-time.live { color: #2f6fd6; font-weight: 600; }

/* back after the device slept: how much of that was work? */
.tk-away { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(380px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 16px 18px; }
.tk-away p { margin: 6px 0 12px; font-size: 14px; }
.tk-away-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.tk-away-row label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tk-away-t { width: auto; }

/* the task's time: a click changes it; on the active task the pause icon shows on hover (always on touch screens) */
.nt-note button.nt-time { background: none; border: 0; padding: 0 2px; min-width: 0; height: auto; cursor: text; font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; color: #a3a39e; border-radius: 4px; }
.nt-note button.nt-time:hover { background: #f1f1ee; }
.nt-note button.nt-time.live { color: #2f6fd6; font-weight: 600; }
.nt-note button.nt-time.paused { color: #a3a39e; font-weight: 600; }
.nt-note .nt-timew { display: inline-flex; align-items: center; gap: 2px; }
.nt-note .nt-time-btn { background: none; border: 0; padding: 0 2px; min-width: 0; height: auto; cursor: pointer; color: #2f6fd6; visibility: hidden; display: inline-flex; }
.nt-note .nt-timew.paused .nt-time-btn { color: #a3a39e; visibility: visible; }
.nt-note .nt-line:hover .nt-time-btn, .nt-note .nt-time-btn:focus-visible { visibility: visible; }
.nt-note .nt-time-ic { width: 10px; height: 10px; fill: currentColor; }
@media (hover: none) { .nt-note .nt-time-btn { visibility: visible; } }
.nt-note .nt-time-in { width: 58px; height: auto !important; padding: 1px 4px !important; font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; border: 1px solid var(--line) !important; border-radius: 4px !important; }
.tk-pending-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tk-pending .td-mins { width: 76px; display: inline-block; text-align: right; }
.tk-pending td.num { white-space: nowrap; }

/* Hours: the Lists timer only shows its "Not logged yet" table, never a clock of its own */
.ts-lists-timer .ts-timer { display: none !important; }

/* Lists: drag a list by ⠿ (on hover) to another place */
.nt-note .nt-h { position: relative; }
.nt-note .nt-grip { position: absolute; left: -22px; top: 5px; width: 22px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: grab; color: #c4c4bf; font-size: 14px; line-height: 1; padding: 0; margin: 0; opacity: 0; user-select: none; border-radius: 6px; }
.nt-note .nt-grip:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.nt-note .nt-h:hover .nt-grip { opacity: 1; }
@media (hover: none) { .nt-note .nt-grip { opacity: 1; } }
.nt-col.nt-dragging { opacity: .4; }
.nt-col.nt-drop-l { box-shadow: inset 3px 0 0 #2f6fd6; }
.nt-col.nt-drop-r { box-shadow: inset -3px 0 0 #2f6fd6; }

/* a page's search field in the header, top right */
.title-tools .head-search { width: 240px; max-width: 46vw; }

/* space between the page header (title, tools) and the content below – the date line used to give it */
/* The separator line under the page heading: in the same place on every page – 30 px under the heading (or under the
   intro line right below it), across the full content width. The load bar runs on it (common.js). */
main > :is(.title-row, h1) { position: relative; margin-bottom: 0; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
/* with an intro line right under the heading, the line goes under the intro */
main > :is(.title-row, h1):has(~ p:is(.hint, .muted):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *)) { margin-bottom: 30px; padding-bottom: 0; border-bottom: 0; }
main > :is(.title-row, h1) ~ p:is(.hint, .muted):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *) { position: relative; margin: 0; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
/* the first thing under the line (hidden helpers skipped): a card loses its own top line, anything else starts 22 px down */
:is(:is(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *)):not(p:is(.hint, .muted)), main > :is(.title-row, h1) ~ p:is(.hint, .muted):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *) ~ :not(.pm-src, [hidden], :empty):not(main > :is(.title-row, h1) ~ p:is(.hint, .muted):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *) ~ :not(.pm-src, [hidden], :empty) ~ *)) { margin-top: 22px; }
:is(:is(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *)):not(p:is(.hint, .muted)), main > :is(.title-row, h1) ~ p:is(.hint, .muted):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *) ~ :not(.pm-src, [hidden], :empty):not(main > :is(.title-row, h1) ~ p:is(.hint, .muted):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *) ~ :not(.pm-src, [hidden], :empty) ~ *)):is(.card) { margin-top: 0; border-top: 0; }
:is(:is(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *)):not(p:is(.hint, .muted)), main > :is(.title-row, h1) ~ p:is(.hint, .muted):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *) ~ :not(.pm-src, [hidden], :empty):not(main > :is(.title-row, h1) ~ p:is(.hint, .muted):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *) ~ :not(.pm-src, [hidden], :empty) ~ *)):is(.hm) { margin-top: 4px; } :is(:is(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *)):not(p:is(.hint, .muted)), main > :is(.title-row, h1) ~ p:is(.hint, .muted):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *) ~ :not(.pm-src, [hidden], :empty):not(main > :is(.title-row, h1) ~ p:is(.hint, .muted):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *) ~ :not(.pm-src, [hidden], :empty) ~ *)):is(.hm) .hm-tiles { border-top: 0; }
/* …the same when the first thing is a wrapper whose first block is a card */
:is(:is(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *)):not(p:is(.hint, .muted)), main > :is(.title-row, h1) ~ p:is(.hint, .muted):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *) ~ :not(.pm-src, [hidden], :empty):not(main > :is(.title-row, h1) ~ p:is(.hint, .muted):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *) ~ :not(.pm-src, [hidden], :empty) ~ *)):has(> .card:first-child, > :is(:empty, [hidden]):first-child + .card) { margin-top: 0; }
:is(:is(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *)):not(p:is(.hint, .muted)), main > :is(.title-row, h1) ~ p:is(.hint, .muted):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *) ~ :not(.pm-src, [hidden], :empty):not(main > :is(.title-row, h1) ~ p:is(.hint, .muted):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *) ~ :not(.pm-src, [hidden], :empty) ~ *)) > :is(.card:first-child, :is(:empty, [hidden]):first-child + .card) { border-top: 0; }
@media (max-width: 560px) {
  main > :is(.title-row, h1), main > :is(.title-row, h1) ~ p:is(.hint, .muted):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *) { padding-bottom: 20px; }
  main > :is(.title-row, h1):has(~ p:is(.hint, .muted):not(main > :is(.title-row, h1) ~ :not(.pm-src, [hidden], :empty) ~ *)) { margin-bottom: 20px; padding-bottom: 0; }
}


/* Lists: drag a task by ⠿ (on hover, before its circle) */
.nt-note .nt-t { position: relative; }
.nt-note .nt-tgrip { top: 0; font-size: 13px; } /* in the gap between the separator line and the circle */
.nt-note .nt-t:hover > .nt-tgrip { opacity: 1; }
.nt-note .nt-t.lv1 > .nt-tgrip { left: 10px; }
.nt-line.nt-dragging { opacity: .35; }
.nt-line.nt-drop-t { box-shadow: inset 0 3px 0 #2f6fd6; } /* inside the line, so it also shows on the first line of a list (not cut off above) */
.nt-line.nt-drop-b { box-shadow: inset 0 -3px 0 #2f6fd6; }

/* Lists: the list names stay at the top while scrolling down; a fade under them once scrolled */
.nt-note .nt-cols { overflow: auto; overscroll-behavior: contain; display: grid; grid-auto-flow: column; grid-auto-columns: min(320px, 86vw); align-items: stretch; } /* a grid row: every column as tall as the longest, so every list name stays at the top */
.nt-note .nt-col > .nt-h { position: sticky; top: 0; z-index: 3; background: var(--bg); margin-top: 0; }
.nt-note .nt-col > .nt-h::after { content: ''; position: absolute; left: -22px; right: -22px; top: 100%; height: 22px; background: linear-gradient(var(--bg), rgba(255,255,255,0)); pointer-events: none; opacity: 0; transition: opacity .15s; }
.nt-note .nt-cols.nt-scrolled .nt-col > .nt-h::after { opacity: 1; }

/* Lists: a task done – confetti and an emoji with a random effect */
.nt-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }
.nt-yay { position: fixed; z-index: 91; font-size: 34px; line-height: 1; pointer-events: none; transform: translate(-50%, -50%); animation-duration: 1.6s; animation-fill-mode: forwards; animation-timing-function: cubic-bezier(.2,.8,.3,1); }
.nt-yay-up { animation-name: yay-up; }
.nt-yay-spin { animation-name: yay-spin; }
.nt-yay-bounce { animation-name: yay-bounce; animation-timing-function: ease-out; }
.nt-yay-zoom { animation-name: yay-zoom; }
.nt-yay-wiggle { animation-name: yay-wiggle; animation-timing-function: linear; }
.nt-yay-swoop { animation-name: yay-swoop; }
.nt-yay-flip { animation-name: yay-flip; }
.nt-yay-rise { animation-name: yay-rise; animation-timing-function: ease-in; }
@keyframes yay-up { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 15% { opacity: 1; transform: translate(-50%, -90%) scale(1.2) rotate(var(--tilt)); } 100% { transform: translate(-50%, -260%) scale(1) rotate(var(--tilt)); opacity: 0; } }
@keyframes yay-spin { 0% { transform: translate(-50%, -50%) scale(.2) rotate(0); opacity: 0; } 20% { opacity: 1; } 70% { transform: translate(-50%, -150%) scale(1.3) rotate(540deg); opacity: 1; } 100% { transform: translate(-50%, -170%) scale(.6) rotate(720deg); opacity: 0; } }
@keyframes yay-bounce { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; } 15% { transform: translate(-50%, -180%) scale(1.2); opacity: 1; } 35% { transform: translate(-50%, -60%) scale(1, .85); } 50% { transform: translate(-50%, -130%) scale(1.05); } 65% { transform: translate(-50%, -60%) scale(1, .9); } 78% { transform: translate(-50%, -95%); opacity: 1; } 100% { transform: translate(-50%, -70%); opacity: 0; } }
@keyframes yay-zoom { 0% { transform: translate(-50%, -50%) scale(.1); opacity: 0; } 25% { transform: translate(-50%, -120%) scale(2.2) rotate(var(--tilt)); opacity: 1; } 60% { transform: translate(-50%, -120%) scale(1.8) rotate(var(--tilt)); opacity: 1; } 100% { transform: translate(-50%, -120%) scale(3); opacity: 0; } }
@keyframes yay-wiggle { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; } 10% { transform: translate(-50%, -140%) scale(1.3) rotate(0); opacity: 1; } 20% { transform: translate(-50%, -140%) scale(1.3) rotate(-18deg); } 30% { transform: translate(-50%, -140%) scale(1.3) rotate(18deg); } 40% { transform: translate(-50%, -140%) scale(1.3) rotate(-14deg); } 50% { transform: translate(-50%, -140%) scale(1.3) rotate(14deg); } 60% { transform: translate(-50%, -140%) scale(1.3) rotate(0); opacity: 1; } 100% { transform: translate(-50%, -200%) scale(1); opacity: 0; } }
@keyframes yay-swoop { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; } 20% { opacity: 1; } 50% { transform: translate(60px, -160%) scale(1.3) rotate(25deg); } 80% { transform: translate(120px, -110%) scale(1.1) rotate(40deg); opacity: 1; } 100% { transform: translate(170px, -60%) scale(.8) rotate(60deg); opacity: 0; } }
@keyframes yay-flip { 0% { transform: translate(-50%, -50%) perspective(200px) rotateY(0) scale(.4); opacity: 0; } 20% { opacity: 1; } 70% { transform: translate(-50%, -150%) perspective(200px) rotateY(720deg) scale(1.4); opacity: 1; } 100% { transform: translate(-50%, -180%) perspective(200px) rotateY(720deg) scale(1); opacity: 0; } }
@keyframes yay-rise { 0% { transform: translate(-50%, -50%) scale(.5); opacity: 0; } 10% { opacity: 1; transform: translate(-50%, -80%) scale(1.2); } 100% { transform: translate(-50%, -500%) scale(.7) rotate(var(--tilt)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nt-yay { animation: yay-calm 1.4s forwards; } @keyframes yay-calm { 0%, 80% { opacity: 1; transform: translate(-50%, -150%); } 100% { opacity: 0; transform: translate(-50%, -150%); } } }

/* P&L include / exclude: no box – a section like the others (heading over a thin line), pill toggles like the rest of the app */
.pl-toggles { border-top: 0; padding-top: 0; margin-top: 24px; gap: 18px 28px; }
.pl-inc { border: 0; border-radius: 0; padding: 14px 0 0; border-top: 1px solid var(--line-soft); margin-bottom: 0; }
.pl-inc h3 { margin: 0 0 14px; }
.pl-inc-grid { gap: 12px 32px; }
.pl-inc-row { grid-template-columns: 120px auto; justify-content: start; }
.seg-toggle { gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.seg-toggle > span { margin: 0 8px 0 10px; color: var(--muted); }
.seg-toggle button, .seg-toggle button + button { border: 0; border-radius: 999px; height: 26px; padding: 0 14px; font-size: 12px; font-weight: 600; background: transparent; color: var(--muted); }
.seg-toggle button:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.seg-toggle button.on, .seg-toggle button.on:hover { background: var(--ink); color: var(--bg); }
.pl-toggles > .seg-toggle { border-top: 0; }
.pl-costs { width: 100%; font-size: 13px; }

/* page messages: a red ⚠ next to the page name opens them; the boxes themselves stay out of the page */
.pm-src { display: none !important; }
h1 .h1-warn { display: inline-block; vertical-align: baseline; line-height: 0; margin-left: 14px; padding: 0; height: auto; min-width: 0; background: none; border: 0; color: var(--err); cursor: pointer; font-size: inherit; }
h1 .h1-warn svg { display: block; }
h1 .h1-warn[hidden] { display: none; }
h1 .h1-warn svg { height: 0.8em; width: auto; overflow: visible; } /* the cap height of the page name */
h1 .h1-warn:hover { opacity: .8; }
.pm-notices { position: absolute; z-index: 80; width: min(520px, calc(100vw - 24px)); max-height: 60vh; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 12px 16px 10px; }
.pm-notices-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.pm-notices-x { background: none; border: 0; height: auto; padding: 0 4px; font-size: 20px; color: var(--muted); min-width: 0; }
.pm-notice > * { margin: 0 0 8px; }
.pm-toast { position: fixed; top: 18px; right: 18px; z-index: 95; max-width: min(420px, calc(100vw - 36px)); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.pm-toast.on { opacity: 1; transform: none; }
h1 .h1-warn, h1 .h1-warn:hover, h1 .h1-warn:focus { background: none !important; border: 0 !important; box-shadow: none !important; color: var(--err) !important; border-radius: 6px; }
h1 .h1-warn:focus-visible { outline: 2px solid var(--err); outline-offset: 2px; }
h1 .h1-warn .h1-warn-n { fill: currentColor; font-size: 12px; font-weight: 800; letter-spacing: 0; }
/* P&L: COGS, Marketing and Operations – group lines, bold, no subtotal look */
.pl-table tr.pl-group > th { font-weight: 700; }
/* P&L: EBITDA and PP – bold only (CM3 keeps the highlight) */
.pl-table tr.pl-bold > th, .pl-table tr.pl-bold > td { font-weight: 700; border-top: 1px solid var(--line); }
.pl-table tr.pl-bold > td { background: none; } /* the name column keeps its background, so numbers scroll behind it */
.pl-table .pl-asis { text-transform: none; }
/* P&L chart above the table, and the plot button next to each line's name */
.pl-table tr.pl-chart-row > th, .pl-table tr.pl-chart-row > td { border: 0; padding: 4px 0 10px; background: none; vertical-align: middle; }
.pl-table tr.pl-chart-row > th { position: sticky; left: 0; z-index: 1; background: var(--bg); padding: 4px 8px; text-align: left; font-weight: 400; white-space: normal; }
.pl-table tr.pl-chart-row:hover > * { background: var(--bg); }
.pl-chart-cell { padding: 4px 0 10px; }
.pl-table tr.pl-cc-row > td.pl-cc-list { vertical-align: middle; padding: 4px 8px 10px; white-space: nowrap; font-size: 12px; }
.pl-cc-li { display: flex; align-items: center; gap: 6px; line-height: 1.5; width: 100%; min-width: 150px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-transform: none; letter-spacing: 0; cursor: pointer; border-radius: 0; box-shadow: none; }
.pl-cc-li:hover, .pl-cc-li:focus { background: none !important; color: inherit !important; }
.pl-cc-li:hover span, .pl-cc-li:hover b { font-weight: 700; }
.pl-cc-li.off { opacity: .35; }
/* P&L: the Filters dropdown in the title bar (looks like the selects next to it) */
.pl-fwrap { position: relative; display: grid; align-self: end; }
button.pl-fbtn { min-width: 170px; text-align: left; font: inherit; font-size: 15px; height: 38px; padding: 0 38px 0 16px; border-radius: var(--radius); box-shadow: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232b2b2b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 15px center / 12px 8px; color: var(--ink); border: 1px solid var(--line); font-weight: 400; text-transform: none; letter-spacing: 0; }
button.pl-fbtn:not(:disabled):hover, button.pl-fbtn[aria-expanded="true"] { background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232b2b2b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 15px center / 12px 8px; color: var(--ink); border-color: var(--ink); }
.pl-fpop .pl-inc { border-top: 0; padding-top: 0; }
.pl-fpop { position: fixed; z-index: 60; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 14px 16px; width: max-content; overflow: auto; box-sizing: border-box; } /* placed by the page script */
/* Filters panel: labels in one column, the buttons in a second, right-aligned so they line up */
.pl-fpop .pl-inc-grid { grid-template-columns: auto max-content; column-gap: 28px; }
.pl-fpop .pl-inc-row { grid-column: 1 / -1; grid-template-columns: subgrid; }
.pl-fpop .pl-inc-row > :last-child { justify-self: end; }
/* P&L table: no total column in the overviews; a gradient beside the first column once the table is scrolled */
.pl-table.pl-nosum .pl-sum { display: none; }
.pl-table tbody tr:last-child > th, .pl-table tbody tr:last-child > td { border-bottom: 0; } /* no line under the last row */
/* the time selector's panel: the views, then Calendar / Period at the bottom */
.pl-vpop { padding: 8px; }
.pl-vlist { display: grid; }
button.pl-vopt { all: unset; box-sizing: border-box; cursor: pointer; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ink); }
button.pl-vopt:hover { background: #f1f1ee; }
button.pl-vopt.on { font-weight: 700; }
.pl-vmode { border-top: 1px solid var(--line); margin-top: 6px; padding: 10px 4px 2px; }
.pl-table thead tr.pl-dates > th:first-child { position: sticky; left: 0; z-index: 2; background: var(--bg); }
.pl-table tbody tr:hover > th { --plbg: #f1f1ee; }
.pl-table tr.pl-star > th { --plbg: color-mix(in srgb, var(--ink) 4%, var(--bg)); }
.table-scroll.pl-scrolled .pl-table tr > th:first-child::after { content: ''; position: absolute; top: 0; bottom: 0; right: -22px; width: 22px; pointer-events: none; background: linear-gradient(to right, var(--plbg, var(--bg)), transparent); }
.ox-pnl { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; }
.ox-pnl label { display: grid; gap: 4px; font-size: 13px; }
.pl-ctag-row input { width: 100%; height: 34px; min-height: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; box-sizing: border-box; }
@media (max-width: 700px) {
  .pl-fwrap { flex: 1 1 140px; }
  button.pl-fbtn { width: 100%; min-width: 0; }
  .pl-fpop .pl-inc-grid { grid-template-columns: 1fr; }
  .pl-fpop .pl-inc-row { grid-template-columns: 1fr; gap: 4px; }
}
.pl-fsave { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.pl-cc-li i { width: 10px; height: 3px; border-radius: 2px; flex: none; }
.pl-cc-li span { flex: 1; text-align: left; }
.pl-cc-li b { font-weight: 600; font-variant-numeric: tabular-nums; }
#plChart { position: relative; height: 160px; min-width: 100px; } /* the chart never sets the column widths */
#plChart svg { position: absolute; left: 0; top: 0; display: block; overflow: visible; }
.pl-leg { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 4px 0; }
.pl-leg i { width: 14px; height: 3px; border-radius: 2px; flex: none; }
.pl-leg-note { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; text-transform: none; letter-spacing: 0; }
.pl-plot { float: right; background: none; border: 0; padding: 2px; margin: 0 0 0 6px; height: auto; color: var(--line); cursor: pointer; line-height: 0; opacity: 0; transition: opacity .1s; }
.pl-plot:not(:disabled):hover { background: none; border: 0; color: var(--ink); }
.pl-table tbody tr:hover .pl-plot, .pl-plot.on, .pl-plot:focus-visible { opacity: 1; }
.pl-table tbody tr:hover .pl-plot:not(.on) { color: var(--muted); }
/* P&L: campaign running in a column's period, under its date */
/* width 0 + min-width 100%: the label never widens its column, it wraps to the column's width instead */
.pl-camp { display: block; width: 0; min-width: 100%; margin-left: auto; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; font-size: 9px; letter-spacing: .03em; color: var(--klein); margin-top: 3px; text-align: right; }
.pl-camp.pl-camp-dates { color: var(--muted); letter-spacing: 0; }

/* ---------- Home: flat blocks on hairlines – a small uppercase label (link to its page), a big number or a short list ---------- */
.hm { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.hm > *, .hm-lists, .hm-lists-body { min-width: 0; max-width: 100%; } /* nothing inside may make the page wider than the window */
.hm-label { flex-wrap: wrap; }
.hm-label { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--soft-ink); margin-bottom: 12px; }
.hm-label a { color: inherit; text-decoration: none; }
.hm-label a span { color: var(--muted); transition: transform .12s; display: inline-block; }
.hm-label a:hover { color: var(--ink); } .hm-label a:hover span { transform: translateX(3px); color: var(--ink); }
.hm-tools { margin-left: auto; }
.hm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-top: 1px solid var(--line); }
.hm-tiles .hm-block { padding: 18px 22px 20px; border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hm-tiles .hm-block:first-child { border-left: 0; padding-left: 0; }
.hm-big { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.hm-mid { font-size: 20px; font-weight: 800; line-height: 1.15; display: block; }
.hm-big.bad, .hm-bad { color: var(--err); } .hm-big.good { color: var(--klein); } .hm-big.warn { color: var(--warn); }
.hm-sub { display: block; font-size: 13px; color: var(--soft-ink); margin-top: 4px; }
.hm-mini table { border-collapse: collapse; width: auto; }
.hm-mini th, .hm-mini td { padding: 5px 0 5px 22px; text-align: right; white-space: nowrap; border: 0; background: none; font-variant-numeric: tabular-nums; }
.hm-mini thead th { font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: .08em; color: var(--muted); padding-top: 0; }
.hm-mini tbody th { text-align: left; padding-left: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hm-mini thead th:first-child { padding-left: 0; }
.hm-mini tbody th small { display: block; font-size: 9px; font-weight: 600; letter-spacing: .08em; opacity: .8; }
.hm-mini td { font-size: 15px; font-weight: 600; text-transform: none; }
.hm-mini .hm-r-amer td { padding-bottom: 10px; } .hm-mini .hm-r-amer .hm-big { font-size: 32px; }
.hm-mini tbody tr + tr th, .hm-mini tbody tr + tr td { border-top: 1px solid var(--line-soft); }
.hm-trio { display: flex; flex-wrap: wrap; justify-content: start; gap: 12px 22px; } /* too narrow: the numbers go onto a second line instead of into the next box */
.hm-trio > div { display: grid; gap: 6px; }
.hm-trio span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hm-person { display: flex; align-items: center; gap: 12px; }
.hm-person b { display: block; }
.hm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.hm-dot.live { background: var(--klein); box-shadow: 0 0 0 3px color-mix(in srgb, var(--klein) 18%, transparent); }
.hm-dot.work { background: var(--tick); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tick) 25%, transparent); }
.hm-live { margin-top: 8px; color: var(--klein); }
.hm-err { color: var(--err); }
/* Lists at half the window's height, scrolling inside */
.hm-lists { border-top: 1px solid var(--line); padding-top: 16px; }
.hm-lists-body { min-width: 0; } /* the lists scroll inside themselves (up to half the window – shorter lists take less) */
.hm-lists .nt-note .nt-cols { overscroll-behavior: auto; } /* at the end of the lists, the page scrolls on (and back up) */
.hm-lists .nt-note { max-width: none; }
/* the team */
.hm-team { border-top: 1px solid var(--line); padding-top: 16px; }
.hm-lists + #hmMid .hm-team { margin-top: -22px; }
.hm-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 28px 36px; } /* cards of one even width that fit the page */
.hm-member { display: grid; gap: 10px; align-content: start; min-width: 0; }
.hm-working { font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--tick) 14%, var(--bg)); overflow-wrap: anywhere; }
.hm-working.idle { background: var(--surface); color: var(--muted); font-weight: 400; }
.hm-top { margin: 0; padding: 0 0 0 20px; display: grid; gap: 5px; font-size: 14px; }
.hm-top li { overflow-wrap: anywhere; }
.hm-top li.imp::marker { content: '★  '; color: var(--tick-ink); }
/* lower row */
.hm-lower { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }
.hm-lower .hm-block { border-top: 1px solid var(--line); padding-top: 16px; min-width: 0; }
.hm-headline { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.hm-headline .hm-sub { margin: 0; }
.hm-rows { list-style: none; margin: 0; padding: 0; }
.hm-rows li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.hm-rows li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-rows a { text-decoration: none; } .hm-rows a:hover { text-decoration: underline; }
@media (max-width: 700px) { .hm-tiles .hm-block { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); } .hm-big { font-size: 34px; } }
#hmTop:empty, #hmMid:empty, #hmBottom:empty { display: none; }

/* Home → team cards: the name opens their Lists; tasks can be ticked, renamed, starred and added right here */
.hm-plink { text-decoration: none; color: inherit; border-radius: 10px; padding: 4px 6px; min-width: 0; }
.hm-plink:hover { background: var(--hover); } .hm-plink:hover b { text-decoration: underline; }
.hm-hours.low { color: var(--warn); }
.hm-alert { display: inline-block; font-size: 13px; font-weight: 600; color: var(--err); background: var(--err-bg); border-radius: 999px; padding: 4px 11px; text-decoration: none; justify-self: start; }
.hm-alert:hover { text-decoration: underline; }
.hm-tasks { display: grid; gap: 2px; }
.hm-task { display: flex; align-items: flex-start; gap: 8px; padding: 5px 6px; border-radius: 8px; font-size: 14px; }
.hm-task:hover { background: var(--hover); }
.hm-task.work { background: color-mix(in srgb, var(--tick) 14%, var(--bg)); font-weight: 600; }
.hm-task.idle { background: var(--surface); color: var(--muted); }
.hm-task.done { opacity: .45; text-decoration: line-through; }
.hm-tick { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--ok); cursor: pointer; }
.hm-ttl { flex: 1; min-width: 0; overflow-wrap: anywhere; outline: none; border-radius: 4px; }
.hm-ttl[contenteditable]:focus { background: var(--surface); box-shadow: 0 0 0 3px var(--surface); }
.hm-list { font-size: 12px; white-space: nowrap; margin-top: 1px; }
.hm-star { flex: none; background: none; border: 0; padding: 0 2px; height: auto; line-height: 1.3; font-size: 14px; color: var(--line); cursor: pointer; }
button.hm-star:not(:disabled):hover { background: none; border: 0; color: var(--tick-ink); }
.hm-star.on { color: var(--tick-ink); }
.hm-dot.open { background: var(--line); margin: 6px 0 0; }
input.hm-add, input.hm-add:hover { border: 0; box-shadow: none; height: auto; }
.hm-add { width: 100%; max-width: none; border: 0; background: transparent; padding: 6px; font: inherit; font-size: 14px; border-radius: 8px; }
.hm-add:focus { background: var(--surface); outline: none; }
.hm-mini { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 6px 0 2px 6px; }
.hm-crea { border-top: 1px solid var(--line-soft); padding-top: 6px; }
.hm-crea .hm-mini { margin-left: 0; }
.hm-crow { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 3px 0; }
.hm-crow > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-crow a { text-decoration: none; } .hm-crow a:hover { text-decoration: underline; }
.hm-rows-s li { font-size: 13px; padding: 5px 0; }
#hmListsTools { display: none; } /* Home: no "Show ticked" in the Lists */
/* Lists → Repeat: how often a task comes back, and its link */
.nt-rep { font-size: 12px; color: var(--muted); white-space: nowrap; margin-right: 8px; background: none; border: 0; padding: 0; height: auto; min-width: 0; cursor: pointer; }
button.nt-rep:not(:disabled):hover { background: none; color: var(--klein, #002fa7); }
.nt-link { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; margin-right: 8px; white-space: nowrap; }
.nt-link a { color: var(--klein); text-decoration: none; } .nt-link a:hover { text-decoration: underline; }
.nt-link-x { background: none; border: 0; height: auto; padding: 0 3px; color: var(--muted); font-size: 13px; line-height: 1; opacity: 0; cursor: pointer; }
.nt-line:hover .nt-link-x { opacity: 1; }
button.nt-link-x:not(:disabled):hover { background: none; border: 0; color: var(--err); }
.nt-line.has-rep { flex-wrap: wrap; row-gap: 0; }
.nt-repl { flex-basis: 100%; padding: 0 0 4px 32px; margin-top: -6px; display: flex; flex-wrap: wrap; align-items: center; }
.pl-camp.pl-camp-off { text-decoration: line-through; color: var(--muted); }

/* ---------- Team → Studio: three steps side by side (product · colour · scene), the renders below ---------- */
body[data-sec="team.studio"] main { max-width: none; }
.st { display: grid; gap: 22px; margin-top: 20px; }
.st-setup { border-top: 1px solid var(--line); padding-top: 12px; }
.st-setup summary { cursor: pointer; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--soft-ink); }
.st-set { display: grid; gap: 12px; margin-top: 12px; max-width: 760px; }
.st-set label, .st-form label, .st-lab { display: grid; gap: 5px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.st-set input, .st-form select, .st-lab input, .st-lab textarea, .st-prompt { width: 100%; max-width: none; }
.st-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.st-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 36px; border-top: 1px solid var(--line); }
.st-step { padding-top: 16px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.st-step h2 { font-size: 18px; font-weight: 800; text-transform: uppercase; margin: 0; display: flex; align-items: center; gap: 10px; }
.st-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; }
.st-pick select { width: 100%; max-width: none; }
.st-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.st-file { margin: 0; display: grid; gap: 4px; min-width: 0; }
.st-file img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--surface); border: 2px solid transparent; }
.st-file.shot img { border-color: color-mix(in srgb, var(--err) 35%, transparent); }
.st-file.skip img { opacity: .35; }
.st-file figcaption { display: grid; gap: 3px; font-size: 11px; color: var(--soft-ink); }
.st-file figcaption > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-file select { font-size: 11px; height: 26px; padding: 0 22px 0 8px; max-width: none; width: 100%; }
.st-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.st-sw { display: grid; gap: 6px; }
.st-swr { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1.4fr) auto auto; gap: 6px; align-items: center; }
.st-swr input[type=color] { width: 34px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; }
.st-swr input:not([type]) { height: 32px; font-size: 13px; max-width: none; width: 100%; }
.st-swr .switch { font-size: 12px; gap: 4px; }
.st-base { width: 120px; height: 32px; }
.st-shots { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.st-shot { flex: none; width: 108px; display: grid; gap: 4px; padding: 0; height: auto; background: none; border: 0; color: var(--ink); text-align: left; font-size: 11px; }
.st-shot:not(:disabled):hover { background: none; border: 0; }
.st-shot img { width: 108px; height: 108px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; }
.st-shot.on img { border-color: var(--ink); }
.st-shot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip { height: 30px; padding: 0 12px 0 8px; display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--ink); border: 1px solid var(--line); font-size: 13px; }
.st-chip:not(:disabled):hover { background: var(--hover); border-color: var(--ink); }
.st-chip.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.st-chip i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.st-ok { color: var(--ok); }
.st-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.st-cmp figure { margin: 0; display: grid; gap: 4px; }
.st-cmp img { width: 100%; max-height: 380px; object-fit: contain; border-radius: 10px; background: var(--surface); }
.st-cmp figcaption { font-size: 12px; color: var(--soft-ink); }
.st-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px 12px; }
.st-prompt { font: 13px/1.5 var(--mono); border-radius: 12px; padding: 10px 12px; min-height: 180px; }
.st-renders { border-top: 1px solid var(--line); padding-top: 16px; }
.st-job { padding: 8px 12px; border-radius: 10px; background: var(--surface); margin-bottom: 8px; font-size: 14px; }
.st-job.running { background: color-mix(in srgb, var(--tick) 14%, var(--bg)); }
.st-job.failed { background: var(--err-bg); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.st-res { margin: 0; display: grid; gap: 6px; }
.st-open { padding: 0; border: 0; background: none; height: auto; border-radius: 12px; overflow: hidden; }
.st-open:not(:disabled):hover { background: none; border: 0; }
.st-open img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--surface); transition: transform .2s; }
.st-open:hover img { transform: scale(1.02); }
.st-res figcaption { display: grid; gap: 2px; font-size: 13px; }
.st-score { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.st-score.ok { background: var(--ok-bg); color: var(--ok); } .st-score.bad { background: var(--err-bg); color: var(--err); }
.st-dialog { width: min(1200px, 96vw); max-width: none; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.st-big { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 12px; background: var(--surface); }
.st-side { display: grid; gap: 12px; }
.st-side h2 { margin: 0; }
.st-pre { white-space: pre-wrap; font: 12px/1.5 var(--mono); background: var(--surface); padding: 10px; border-radius: 10px; max-height: 260px; overflow: auto; }
.st-pbox { margin-top: 8px; }
.st-txg { display: grid; gap: 12px; margin: 8px 0 16px; }
.st-tx { display: grid; gap: 4px; }
.st-tx textarea { width: 100%; font-size: 13px; line-height: 1.45; }
.st-txh { gap: 8px; align-items: baseline; }
.st-txc { color: var(--klein); font-weight: 600; }
.st-tx code { font-size: 12px; }
.st-gobox { border-top: 1px solid var(--line); padding: 16px 0 0; }
.st-gobox .st-go { margin: 0; }
#stX .st-lab textarea { width: 100%; }
.st-final-p { margin: 10px 0 0; }
.st-final-p > summary { cursor: pointer; padding: 6px 0; }
.st-pdet[open] > summary { margin-bottom: 8px; }
.st-part { border-left: 3px solid var(--line); padding: 2px 0 2px 10px; margin: 0 0 12px; }
.st-part .st-pre { margin: 6px 0 0; max-height: 200px; }
.st-pwarn { border-left-color: var(--err); }
.st-pscene { border-left-style: dashed; }
.st-ptop { display: flex; align-items: center; gap: 8px; }
.st-pnum { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--surface); font-size: 11px; font-weight: 600; }
.st-psrc { margin-top: 2px; }
.st-pimgs { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin: 0 0 12px; }
.st-pimgs > b { flex-basis: 100%; }
.st-pimg { display: flex; gap: 8px; align-items: center; max-width: 260px; }
.st-pimg img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.st-plist { margin: 4px 0 10px; padding-left: 18px; }
.st-plist li { margin-bottom: 4px; }
.st-pfull { width: 100%; min-height: 120px; }
@media (max-width: 800px) { .st-dialog { grid-template-columns: 1fr; } .st-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-lib { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-libc { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 999px; }
.st-libc img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.st-libc i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.st-group { display: grid; gap: 6px; }
.st-gh { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--soft-ink); }
.st-kind { font-weight: 700; text-transform: uppercase; font-size: 9px; letter-spacing: .08em; color: var(--muted); margin-right: 3px; }
.st-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.st-notes { border-top: 1px solid var(--line-soft); padding-top: 10px; display: grid; gap: 10px; }
.st-notes[open] { gap: 12px; }
.st-notes summary { cursor: pointer; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--soft-ink); }
.st-notes > *:not(summary) { margin-top: 10px; }
.st-recreate { font-size: 14px; }

/* Photo: three columns as in SAI Studio – prompt settings (left) · the image (middle) · files (right) */
.st-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; } /* three equal thirds */
.st-left, .st-right { display: grid; gap: 0; min-width: 0; }
.st-left .st-step { border-top: 1px solid var(--line); padding: 16px 0 18px; }
.st-left .st-step:first-child { border-top: 0; padding-top: 0; }
.st-mid { position: sticky; top: 16px; min-width: 0; }
.st-view { display: grid; gap: 14px; }
.st-stage { margin: 0; display: grid; gap: 8px; }
.st-stage img { width: 100%; max-height: calc(100vh - 220px); object-fit: contain; border-radius: 14px; background: var(--surface); }
.st-empty { display: grid; place-items: center; min-height: 420px; border-radius: 14px; background: var(--surface); font-size: 14px; }
.st-vbar { display: grid; gap: 10px; }
.st-edit input { flex: 1; min-width: 200px; max-width: none; }
.st-okt { color: var(--ok); }
.st-right > section, .st-right > .st-setup { border-top: 1px solid var(--line); padding: 14px 0; }
.st-right > .st-month { padding-bottom: 10px; }
.st-right .st-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.st-thumb { position: relative; padding: 0; height: auto; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--surface); }
.st-thumb:not(:disabled):hover { background: var(--surface); border-color: var(--line); }
.st-thumb.on { border-color: var(--ink); }
.st-thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.st-thumb .st-score { position: absolute; right: 4px; bottom: 4px; margin: 0; }
.st-right .st-set { max-width: none; }
.st-right .st-prices { grid-template-columns: 1fr; }
@media (max-width: 1300px) { .st-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-right { grid-column: 1 / -1; } .st-mid { position: static; } }
@media (max-width: 860px) { .st-layout { grid-template-columns: 1fr; } }
.st-left .st-cmp img { max-height: 240px; } /* the big view is in the middle */

/* Photo: steps 1–3 fold up once done; the open one shows its body */
.st-acc { padding: 12px 0 !important; }
.st-head { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 0; }
.st-head:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.st-head .st-ht { font-size: 18px; font-weight: 800; text-transform: uppercase; }
.st-head .st-sum { flex: 1; min-width: 0; font-size: 13px; color: var(--soft-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.st-head .st-car { transition: transform .15s; color: var(--soft-ink); }
.st-acc.open .st-car { transform: rotate(180deg); }
.st-acc > .st-body { display: none; }
.st-acc.open > .st-body { display: grid; gap: 12px; padding-top: 12px; }
.st-sub { display: grid; gap: 12px; }
.st-sub + .st-sub { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.st-sub h2 { font-size: 18px; font-weight: 800; text-transform: uppercase; margin: 0; display: flex; align-items: center; gap: 10px; }
/* 2 Colour: swatches left, the colour version right */
.st-col2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 14px; align-items: start; }
.st-col2 > div { display: grid; gap: 10px; min-width: 0; }
.st-chips-v { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
.st-chips-v .st-chip { justify-content: flex-start; }
.st-col2 .st-cmp { grid-template-columns: 1fr; }
/* the trash on renders */
.st-tw { position: relative; }
.st-trash { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 5px; border-radius: 8px; background: rgba(255,255,255,.9); color: var(--ink); line-height: 0; }
.st-trash:hover { color: #b0121f; }
.st-trash.sure { background: #b0121f; color: #fff; }
.st-tw .st-trash { position: absolute; top: 4px; right: 4px; opacity: 0; transition: opacity .12s; }
.st-tw:hover .st-trash, .st-tw .st-trash:focus-visible, .st-tw .st-trash.sure { opacity: 1; }
.st-stage { position: relative; }
.st-trash.st-tbig { position: absolute; top: 10px; right: 10px; justify-self: end; align-self: start; width: auto; padding: 7px 10px; line-height: 1; font-size: 13px; font-weight: 600; }
@media (hover: none) { .st-tw .st-trash { opacity: 1; } }
/* ratings: what the prompt writer learns from */
.st-rate { align-items: center; gap: 8px; }
.st-thumbs { all: unset; cursor: pointer; font-size: 18px; line-height: 1; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); filter: grayscale(1); opacity: .7; }
.st-thumbs:hover { opacity: 1; }
.st-thumbs.on { filter: none; opacity: 1; border-color: var(--ink); }
.st-rate input { flex: 1; min-width: 180px; }
.st-rated { position: absolute; left: 4px; bottom: 4px; font-size: 13px; line-height: 1; background: rgba(255,255,255,.9); border-radius: 6px; padding: 2px 3px; }
/* the render queue: progress and cancel */
.st-jtop { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.st-jtop .link { flex: none; }
.st-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 6px; }
.st-bar i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width 1.5s linear; }
.st-job.queued .st-bar i { width: 0 !important; }
.st-job.cancelled { opacity: .7; }
/* no blue button roll-over on the Photo page's own controls (headers, bin, thumbs) */
button.st-head:not(:disabled):hover, button.st-thumbs:not(:disabled):hover { background: none; border-color: var(--line); color: inherit; }
button.st-head:not(:disabled):hover { border: 0; }
button.st-head:not(:disabled):hover .st-ht { text-decoration: underline; text-underline-offset: 3px; }
button.st-trash:not(:disabled):hover { background: rgba(255,255,255,.95); border: 0; color: #b0121f; }
.st-wait { color: #b0121f; font-size: 10px; }

/* Creative → Inspiration */
.in { display: grid; gap: 16px; }
.in-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
button.in-tab { height: 36px; padding: 0 14px; background: transparent; color: var(--ink); border: 1px solid var(--line); font-size: 14px; }
button.in-tab:not(:disabled):hover { background: var(--hover); border-color: var(--ink); color: var(--ink); }
button.in-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
button.in-tab.on .muted { color: rgba(255,255,255,.7); }
button.in-new { border-style: dashed; }
.in-new-cat { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.in-new-cat input { flex: 1 1 220px; }
.in-head { display: grid; gap: 8px; }
.in-add { display: flex; flex-wrap: wrap; gap: 8px; }
.in-add #inUrl { flex: 3 1 320px; } .in-add #inNote { flex: 2 1 200px; }
.in-cat-set summary, .in-share summary { cursor: pointer; color: var(--soft-ink); }
.in-form { display: grid; gap: 10px; max-width: 560px; padding-top: 10px; }
.in-share-body { display: grid; gap: 6px; padding: 8px 0 0; max-width: 760px; }
.in-share-body p { margin: 0; }
/* boards: the pins in columns */
.in-board { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.in-bhead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.in-tog { background: none; border: 0; padding: 0 4px 0 0; min-height: 0; color: var(--muted, #777); font-size: 15px; cursor: pointer; box-shadow: none; }
.in-tog:hover { background: none; color: inherit; }
.in-btitle { cursor: pointer; }
.in-board.shut { gap: 0; padding-bottom: 6px; }
.in-fold { margin: 0 0 4px; }
.in-bact { display: flex; gap: 14px; align-items: baseline; flex: none; }
.in-pins { columns: 6 170px; column-gap: 10px; }
button.in-pin { all: unset; display: block; cursor: zoom-in; margin: 0 0 10px; break-inside: avoid; border-radius: 10px; overflow: hidden; background: var(--surface); }
button.in-pin:not(:disabled):hover { background: var(--surface); }
.in-pin img { display: block; width: 100%; height: auto; transition: opacity .15s; }
.in-pin:hover img { opacity: .88; }
/* videos: cards (9:16) */
.in-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
button.in-card { all: unset; cursor: pointer; display: grid; gap: 8px; align-content: start; }
button.in-card:not(:disabled):hover { background: none; }
.in-thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--surface); }
.in-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.in-ph { color: #fff; font-weight: 700; } .in-ph > span { position: absolute; left: 10px; bottom: 10px; font-size: 13px; opacity: .9; }
.in-ph.in-instagram { background: linear-gradient(135deg, #833ab4, #c13584 50%, #f77737); }
.in-ph.in-tiktok { background: #111; } .in-ph.in-youtube { background: #c4302b; }
.in-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 18px; opacity: .9; }
.in-card:hover .in-play { background: rgba(0,0,0,.7); }
.in-meta { display: grid; gap: 2px; font-size: 13px; line-height: 1.35; }
.in-meta span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* sound / links */
.in-rows { display: grid; gap: 10px; }
.in-row { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; }
.in-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.in-ico { width: 64px; height: 64px; border-radius: 8px; background: var(--surface); display: grid; place-items: center; font-size: 24px; flex: none; }
.in-rtext { flex: 1; min-width: 0; } .in-rtext a { color: var(--ink); text-decoration: none; } .in-rtext a:hover { text-decoration: underline; }
/* one thing at a time, on top */
body.in-noscroll { overflow: hidden; }
.in-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(20,20,18,.82); display: grid; place-items: center; padding: 24px; }
.in-mbox { position: relative; background: var(--bg, #fff); border-radius: 16px; padding: 18px; max-width: min(1100px, 100%); max-height: calc(100vh - 48px); overflow: auto; display: grid; gap: 10px; }
.in-mbox .in-big { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; display: block; margin: 0 auto; border-radius: 10px; }
.in-mvideo { grid-template-columns: auto minmax(220px, 300px); align-items: start; gap: 18px; }
.in-player iframe { display: block; width: min(380px, calc(100vw - 80px)); height: min(680px, calc(100vh - 100px)); border: 0; border-radius: 12px; background: #000; }
.in-p-youtube iframe { width: min(720px, calc(100vw - 80px)); height: min(405px, calc(100vh - 100px)); }
.in-p-instagram iframe { height: min(760px, calc(100vh - 100px)); background: #fff; }
.in-vside { display: grid; gap: 10px; align-content: start; padding-top: 24px; }
.in-vside p { margin: 0; }
button.in-x { all: unset; position: absolute; right: 10px; top: 6px; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); z-index: 2; padding: 4px 8px; }
button.in-x:not(:disabled):hover { background: none; color: #b0121f; }
button.in-nav { all: unset; position: fixed; top: 50%; transform: translateY(-50%); font-size: 48px; color: #fff; cursor: pointer; padding: 10px 16px; }
button.in-nav:not(:disabled):hover { background: none; color: #fff; opacity: .7; }
.in-prev { left: 8px; } .in-next { right: 8px; }
@media (max-width: 760px) { .in-mvideo { grid-template-columns: 1fr; } .in-vside { padding-top: 0; } .in-pins { columns: 2 140px; } }
/* Photo: styles linked to Pinterest boards */
.st-h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--soft-ink); margin: 14px 0 0; }
.st-styles { display: grid; gap: 10px; }
.st-style { display: grid; gap: 6px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.st-style b { font-size: 13px; }
.st-sboards { font-size: 12px; min-height: 34px; }
.st-refs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-refs img, .st-refph { width: 44px; height: 56px; object-fit: cover; border-radius: 6px; display: block; background: var(--surface); }
.in-vside label { display: grid; gap: 4px; }
.in-vside textarea, .in-vside select { width: 100%; }
button.in-tab.on:not(:disabled):hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.in-noembed { width: min(380px, calc(100vw - 80px)); padding: 30px 10px; display: grid; gap: 10px; } .in-noembed p { margin: 0; }
/* Inspiration · videos play in place (no pop-up) */
.in-howto { margin: 0; }
.in-howto a { font-weight: 600; }
.in-sort { display: flex; justify-content: flex-end; margin-top: -6px; }
.in-sort select { height: 32px; font-size: 13px; padding: 0 30px 0 10px; }
.in-card { display: grid; gap: 8px; align-content: start; min-width: 0; }
button.in-thumb { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--surface); }
button.in-thumb:not(:disabled):hover { background: var(--surface); }
button.in-thumb.in-ph.in-instagram:not(:disabled):hover { background: linear-gradient(135deg, #833ab4, #c13584 50%, #f77737); }
button.in-thumb.in-ph.in-tiktok:not(:disabled):hover { background: #111; }
.in-thumb:hover .in-play { background: rgba(0,0,0,.7); }
.in-card.playing { grid-column: span 2; }
.in-inline { border-radius: 12px; overflow: hidden; background: #000; }
.in-inline iframe { display: block; width: 100%; height: min(720px, calc(100vh - 120px)); border: 0; }
.in-inline.in-p-instagram { background: #fff; }
.in-inline.in-p-youtube iframe { height: auto; aspect-ratio: 16 / 9; }
.in-inline .in-noembed { width: auto; background: var(--surface); color: var(--ink); }
.in-stats { font-size: 12px; font-variant-numeric: tabular-nums; }
.in-acts { color: var(--soft-ink); }
.in-acts a, .in-acts .link { color: var(--soft-ink); font-size: 12px; }
.in-noteedit { display: flex; gap: 6px; } .in-noteedit input { flex: 1; min-width: 0; height: 32px; font-size: 13px; }
.in-danger { color: #b0121f !important; }
@media (max-width: 760px) { .in-card.playing { grid-column: 1 / -1; } }
.pf-pinterest { --ic: url(/static/brand/pinterest.svg); background: #E60023; }
.st-pinbox { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line-soft); } .st-pinbox label { display: grid; gap: 4px; font-size: 13px; }
/* video cards: as little as possible – the picture, one number, the rest on hover */
.in-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.in-card { position: relative; gap: 0; }
.in-card .in-meta:not(:has(.in-noteedit)):empty { display: none; }
.in-ph > span:not(.in-num):not(.in-hasnote) { display: none; }
.in-thumb .in-play { display: none; }
.in-num { position: absolute; left: 8px; bottom: 8px; font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); font-variant-numeric: tabular-nums; }
.in-hasnote { position: absolute; right: 8px; bottom: 8px; font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.in-card .in-acts { position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; opacity: 0; transition: opacity .12s; z-index: 2; }
.in-card:hover .in-acts, .in-card.playing .in-acts, .in-card .in-acts:focus-within { opacity: 1; }
.in-card .in-acts > * { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: rgba(255,255,255,.92); color: var(--ink) !important; text-decoration: none !important; font-size: 13px; }
.in-card .in-acts button.link:not(:disabled):hover, .in-card .in-acts a:hover { background: #fff; color: #b0121f !important; }
.in-card.playing .in-acts { top: 8px; right: 8px; }
.in-card .in-noteedit { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 3; background: rgba(255,255,255,.96); padding: 6px; border-radius: 10px; }
@media (hover: none) { .in-card .in-acts { opacity: 1; } }
/* video cards v3: play button in the middle, a still of the post when we have no picture, only the bin */
.in-thumb .in-play { display: grid; z-index: 1; pointer-events: none; }
.in-still { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: #f4f3f0; }
.in-still iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.in-still-ig iframe { width: 326px; height: calc(326px * 16 / 9 + 300px); top: calc(-54px * var(--igs, .5)); transform: scale(var(--igs, .5)); transform-origin: 0 0; }
.in-num, .in-hasnote { z-index: 1; }
.in-card .in-acts { left: 6px; right: auto; }
.in-card .in-acts > * { min-width: 28px; height: 28px; }
.in-card .in-acts svg { display: block; }
.in-card.playing { grid-column: span 3; }
.in-open { display: flex; gap: 16px; align-items: flex-start; }
.in-inline { flex: none; position: relative; }
.in-inline.in-p-instagram { width: min(360px, 100%); aspect-ratio: 9 / 16; overflow: hidden; background: #000; }
.in-inline.in-p-instagram iframe { position: absolute; left: 0; top: -54px; width: 100%; height: calc(100% + 360px); } /* only the video: Instagram's header and links are cut off */
.in-inline.in-p-tiktok { width: min(340px, 100%); aspect-ratio: 9 / 16; }
.in-inline.in-p-tiktok iframe, .in-inline.in-p-facebook iframe { width: 100%; height: 100%; }
.in-inline.in-p-facebook { width: min(340px, 100%); aspect-ratio: 9 / 16; }
.in-inline.in-p-youtube { width: min(640px, 100%); } .in-inline.in-p-youtube iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.in-nums { display: grid; gap: 14px; padding-top: 44px; }
.in-nums div { display: grid; }
.in-nums b { font-size: 22px; font-variant-numeric: tabular-nums; }
.in-nums span { font-size: 12px; color: var(--soft-ink); text-transform: uppercase; letter-spacing: .06em; }
.in-card.playing .in-acts { top: 8px; left: 8px; }
@media (max-width: 760px) { .in-card.playing { grid-column: 1 / -1; } .in-open { flex-direction: column; } .in-nums { grid-template-columns: repeat(4, 1fr); padding-top: 0; } }
.in-thumb::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, rgba(0,0,0,.45)); pointer-events: none; z-index: 0; }
.in-card.playing .in-acts button.link { font-size: 18px; }

/* Creative → Resources */
.rs { display: grid; gap: 16px; }
.rs-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.rs-bar input { flex: 1 1 220px; max-width: 360px; } .rs-bar select { width: auto; }
.rs-up { cursor: pointer; } .rs-up.busy { opacity: .7; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.rs-card { position: relative; display: grid; gap: 6px; min-width: 0; }
button.rs-pic, a.rs-pic { all: unset; box-sizing: border-box; cursor: zoom-in; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface) repeating-conic-gradient(#f0efeb 0 25%, #fafaf8 0 50%) 0 0 / 16px 16px; }
button.rs-pic:not(:disabled):hover { background: var(--surface) repeating-conic-gradient(#f0efeb 0 25%, #fafaf8 0 50%) 0 0 / 16px 16px; }
.rs-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
a.rs-ext { cursor: pointer; display: grid; place-items: center; background: var(--surface); font-weight: 700; color: var(--soft-ink); }
.rs-cap { display: grid; font-size: 13px; line-height: 1.3; } .rs-cap > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-acts { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.rs-card:hover .rs-acts, .rs-font:hover .rs-acts, .rs-acts:focus-within { opacity: 1; }
.rs-acts > * { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 14px; background: rgba(255,255,255,.95); color: var(--ink); }
.rs-acts > *:hover { color: #b0121f; }
.rs-fonts { display: grid; gap: 10px; }
.rs-font { position: relative; display: grid; gap: 4px; border-bottom: 1px solid var(--line-soft); padding: 8px 80px 10px 0; }
.rs-sample { font-size: 34px; line-height: 1.2; }
.rs-font .rs-acts { top: 12px; }
.rs-set { margin-top: 10px; }
/* Brand kit */
.bk-nav { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--line-soft); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bk-nav a { text-decoration: none; color: var(--soft-ink); } .bk-nav a:hover { color: var(--ink); }
.bk-sec { scroll-margin-top: 56px; display: grid; gap: 14px; }
.bk-sec h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.bk-line { font-size: 26px; font-weight: 300; line-height: 1.25; margin: 0; max-width: 34em; }
.bk-about { margin: 0; color: var(--soft-ink); max-width: 46em; }
.bk-words { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-words span { border: 1px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.bk-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 28px; align-items: start; }
.bk-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.bk-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.bk-list.bk-x { list-style: none; padding-left: 0; } .bk-list.bk-x li::before { content: '✕'; color: var(--err); font-weight: 700; margin-right: 8px; }
.bk-do { color: var(--ok); } .bk-dont { color: var(--err); }
.bk-mt { margin-top: 6px; }
.bk-rule { margin: 0; font-weight: 600; }
.bk-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.bk-sw { display: grid; gap: 8px; }
.bk-chip { all: unset; cursor: pointer; height: 120px; border-radius: var(--radius-box); display: flex; align-items: flex-end; padding: 10px 12px; color: #fff; font: 600 13px/1 var(--mono); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.bk-chip.light { color: var(--ink); } .bk-chip span { opacity: 0; transition: opacity .12s; } .bk-chip:hover span, .bk-chip:focus-visible span { opacity: 1; }
.bk-swcap { display: grid; gap: 1px; justify-items: start; } .bk-swcap .link { padding: 0; font-family: var(--mono); font-size: 12px; }
.bk-crow, .bk-crow-head { display: grid; grid-template-columns: 44px 140px 100px 1fr auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.bk-crow input[type=color] { width: 44px; height: 36px; padding: 2px; border-radius: 10px; cursor: pointer; }
.bk-spec { display: grid; gap: 6px; align-content: start; }
.bk-h { font-size: 56px; line-height: .95; letter-spacing: -.01em; }
.bk-b { font-size: 18px; line-height: 1.5; max-width: 30em; }
.bk-font-ed { gap: 8px; }
.bk-check { display: flex; align-items: center; gap: 8px; } .bk-check input { width: auto; }
.bk-photo { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 24px; align-items: start; }
.bk-frame { width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: 12px; display: block; background: var(--surface); }
.bk-ptools { display: grid; gap: 12px; align-content: start; } .bk-fmt { margin: 0; }
.bk-pick { justify-self: start; cursor: pointer; }
.bk-warn { color: var(--err); margin: 0; }
.bk-zone { margin: 0; color: var(--soft-ink); } .bk-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: rgba(255,0,80,.35); border: 1px solid rgba(255,0,80,.9); vertical-align: -1px; margin-right: 4px; }
.bk-sec label:not(.bk-check):not(.button) { display: grid; gap: 4px; font-size: 13px; color: var(--soft-ink); }
.bk-sec label > input:not([type=checkbox]), .bk-sec label > select, .bk-sec label > textarea { width: 100%; max-width: none; color: var(--ink); font-size: 15px; }
.bk-sec textarea { border-radius: var(--radius-box); resize: vertical; line-height: 1.45; }
.bk-sec .link { justify-self: start; }
.bk-savebar { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; padding: 12px 0; background: var(--bg); border-top: 1px solid var(--line-soft); z-index: 5; }
@media (max-width: 700px) {
  .bk-photo { grid-template-columns: 1fr; } .bk-frame-wrap { max-width: 320px; }
  .bk-crow, .bk-crow-head { grid-template-columns: 44px 1fr 92px; } .bk-crow .kcUse { grid-column: 1 / -1; } .bk-crow .kcDel { grid-column: 1 / -1; justify-self: start; } .bk-crow-head span:nth-child(n+4) { display: none; }
  .bk-h { font-size: 40px; } .bk-line { font-size: 21px; }
}
@media (hover: none) { .rs-acts { opacity: 1; } }
.rs-folders { display: grid; gap: 6px; } .rs-frow { display: grid; grid-template-columns: 140px 1fr auto; gap: 6px; align-items: center; }
/* Instagram stills fill the card (cover), centred */
.in-still-ig iframe { top: 0; left: 0; }
.in-still-ig.in-igr iframe { transform: translate(var(--igxr, 0), var(--igyr, 0)) scale(var(--igsr, .5)); }
.in-still-ig.in-igp iframe { transform: translate(var(--igxp, 0), var(--igyp, 0)) scale(var(--igsp, .5)); }
.in-thumb img { object-fit: cover; }
.in-still iframe:not(.in-still-ig iframe) { width: 100%; height: 100%; }
.in-card.playing { grid-column: span 2; }
.in-thumb::after { display: none; }
@media (max-width: 760px) { .in-card.playing { grid-column: 1 / -1; } }

/* Directors: viewing Peppelin as another user (read only) */
.viewas-bar { position: sticky; top: 0; z-index: 50; background: #fff4c2; color: var(--ink); border: 1px solid #f0d36a; border-radius: 10px; padding: 8px 14px; margin: 0 0 14px; font-size: 14px; }
.viewas-bar .link { font-weight: 600; margin-left: 8px; }
.g-viewas { display: block; margin: 0 0 8px; }
.g-viewas select { width: 100%; font-size: 13px; padding: 6px 28px 6px 10px; min-height: 0; height: auto; border-radius: 999px; }

/* Photo, step 4: a room from the Pinterest boards in Inspiration */
.st-rpin { display: grid; gap: 8px; }
.st-rpins { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.st-rp { flex: none; width: 92px; height: 120px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--soft, #f3f3f1); cursor: pointer; }
.st-rp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-rp.on { border-color: var(--klein); }
.st-rp:not(:disabled):hover { background: var(--soft, #f3f3f1); border-color: var(--line); }
.st-rp.on:hover { border-color: var(--klein); }
.st-rp-any { display: grid; place-items: center; padding: 8px; font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--ink); text-align: center; white-space: normal; }
.st-rp-any small { font-weight: 400; font-size: 11px; color: var(--muted); }

/* Administration → Accounts */
.ac-bal { max-width: 640px; }
.ac-add { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin: 6px 0 12px; }
.ac-add label { display: grid; gap: 4px; }
.ac-add .ac-name { flex: 1; min-width: 200px; }
.ac-in { width: 100%; min-width: 80px; }
.loc-set { border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; margin: 0; display: grid; gap: 8px; }
.loc-set h4 { margin: 8px 0 0; }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.ls-grid .ls-wide { grid-column: 1 / -1; }
.small-sel { font-size: 13px; padding: 4px 8px; width: auto; }
/* Photo: room source tabs, the two input images, and nothing wider than its column */
.st-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.st-tab { height: 30px; padding: 0 14px; background: transparent; color: var(--ink); border: 1px solid var(--line); font-size: 13px; }
.st-tab:not(:disabled):hover { background: var(--hover); border-color: var(--ink); }
.st-tab.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.st-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.st-pair .st-stage img { max-height: 420px; }
.st-empty-s { min-height: 180px; }
.st-go { padding-top: 12px; }
.st-layout, .st-left, .st-mid, .st-right, .st-step, .st-body, .st-sub { min-width: 0; max-width: 100%; }
.st-step, .st-acc.open > .st-body, .st-view, .st-vbar, .st-sub { grid-template-columns: minmax(0, 1fr); }
.st-layout :is(input, select, textarea) { max-width: 100%; min-width: 0; }
.st-layout select { width: 100%; }
.st-head .st-ht { white-space: nowrap; }
.st-edit input { min-width: min(200px, 100%); }
.st-shots, .st-rpins, .st-refs { max-width: 100%; }
.st-refs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-refs img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; }
.st-swr { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1.4fr) auto auto; }
.st-left { container-type: inline-size; }
@container (max-width: 440px) {
  .st-col2 { grid-template-columns: minmax(0, 1fr); }
  .st-chips-v { flex-direction: row; flex-wrap: wrap; }
  .st-swr { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .st-swr [data-f=texture] { grid-column: 2 / -1; }
  .st-head .st-sum { display: none; }
}
@media (max-width: 560px) { .st-pair { grid-template-columns: 1fr; } }
.st-form2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.st-photos .st-shot { width: auto; min-width: 0; }
.st-photos .st-shot img { width: 100%; height: auto; aspect-ratio: 1; }
.st-props { font-size: 14px; }
@container (max-width: 340px) { .st-form2 { grid-template-columns: minmax(0, 1fr); } }
.st-tabs { margin-bottom: 6px; }
#stRoomPick { display: grid; gap: 14px; }
#stRoomPick > select, .st-form2 { margin-bottom: 8px; }
.st-brief a { font-weight: 600; }
.st-prodsel { margin-bottom: 4px; }
.st-swatches { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 6px; }
.st-swb { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 58px; padding: 6px 2px 4px; border-radius: 10px; font-size: 11px; line-height: 1.2; color: var(--ink); text-align: center; }
.st-swb img, .st-swb i { display: block; width: 30px; height: 30px; object-fit: cover; border-radius: 50%; border: 2px solid var(--bg, #fff); box-shadow: 0 0 0 1px var(--line); }
.st-swb.on img, .st-swb.on i { box-shadow: 0 0 0 2px var(--ink); }
.st-swb:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
button.st-swb:not(:disabled):hover { background: var(--line-soft); border: 0; color: var(--ink); } /* light gray, not the blue of buttons */
.st-swb span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-swb small { color: var(--muted); }
.st-swb small { color: var(--muted); }
.st-swb:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 10px; }
.st-swref { display: flex; align-items: center; gap: 10px; }
.st-swref img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.st-proposed { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; background: var(--surface); }
/* Location WB (the packers): only the Shipping page – no menu, no multi-select, no refresh, no search */
body.bare { padding-left: 0 !important; }
body.bare aside.side { display: none !important; }
body.bare #find, body.bare #found, body.bare #bulk, body.bare .refresh-btn, body.bare .ship-table .pick { display: none !important; }
table.tax tr.spacer td { height: 26px; padding: 0; border: 0; background: transparent; }
.ship-table tr.review td { color: var(--muted); }
.ship-table tr.review .review-note { font-weight: 600; color: var(--soft-ink); }
.ship-table tr.review .problem-btn.reported { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.h1-loc.loc-switch { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.h1-loc.loc-switch:hover { color: var(--ink); }

/* P&L on a phone: a real table that swipes sideways – the line names stay on the left, the total on the right */
@media (max-width: 700px) {
  body[data-sec="admin.pnl"] .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .pl-table tbody th { background: var(--bg) !important; }
  .pl-table tr.pl-star > th { background: color-mix(in srgb, var(--ink) 4%, var(--bg)) !important; }
  .pl-table td.pl-sum { background: var(--bg) !important; }
  .pl-table { font-size: 13px; }
  .pl-table th, .pl-table td { padding: 7px 8px; }
  .pl-table tbody th, .pl-table tr.pl-chart-row > th, .pl-table thead tr.pl-dates > th:first-child { min-width: 118px; max-width: 132px; font-size: 12px; line-height: 1.25; box-shadow: 1px 0 0 var(--line); }
  .pl-table thead tr.pl-dates > th:first-child { position: sticky; left: 0; z-index: 2; background: var(--bg); }
  .pl-table tr.pl-main > th, .pl-table tr.pl-main > td, .pl-table tr.pl-star > th, .pl-table tr.pl-star > td { font-size: 13px; }
  .pl-table .pl-col { font-size: 11px; }
  .pl-table td.pl-sum, .pl-table thead tr.pl-dates > th:last-child { position: sticky; right: 0; z-index: 1; background: var(--bg); box-shadow: -1px 0 0 var(--line); }
  .pl-table tr.pl-star > td.pl-sum, .pl-table tr.pl-orders > td.pl-sum { background: color-mix(in srgb, var(--ink) 4%, var(--bg)) !important; }
  .pl-table .pl-plot { opacity: .45; }
  .pl-table .pl-plot.on { opacity: 1; }
  .pl-table tr.pl-chart-row > td.pl-chart-cell { min-width: 0; }
}

/* ---------- Creative → Campaign: volume pricing and sales ---------- */
.sl-status { display: flex; align-items: center; gap: 16px; padding: 10px 0 10px 14px; margin: 0 0 8px; border-left: 3px solid var(--line); }
.sl-status > div { flex: 1; }
.sl-status.on { border-left-color: var(--tick); }
.sl-status input { height: 32px; }
.sl-warn { color: var(--warn); }
.sl-missing { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sl-camps td { vertical-align: middle; }
.sl-acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.sl-camps .sl-live-row td { background: #fffaea; }
.sl-slist td { padding: 8px 10px 8px 0; }
.sl-ghead { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.sl-ghead .pr-img { width: 56px; height: 56px; }
.sl-gtitle { flex: 1; min-width: 0; }
.sl-gtitle h2 { margin: 0; }
.sl-gact { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.sl-t td b { display: block; font-weight: 600; }
.sl-price { display: block; font-size: 12px; color: var(--muted); }
.sl-t .sl-on { background: #fffaea; }
.sl-t thead th.sl-on { color: var(--tick-ink); }
.sl-t td.num, .sl-t th.num { min-width: 92px; }
.sl-editing td { padding-top: 6px; padding-bottom: 6px; }
input.sl-cell { width: 76px; height: 32px; text-align: right; padding: 0 10px; }
.sl-addrow th { white-space: nowrap; }
.sl-addrow input { width: 70px; height: 30px; }
.sl-form { display: grid; gap: 12px; }
.sl-form .check { text-transform: none; letter-spacing: 0; }
.sl-eg { border: 1px solid var(--line-soft); border-radius: 12px; padding: 8px 14px 12px; margin: 0; display: grid; gap: 8px; justify-items: start; }
.sl-eg legend { font-weight: 700; padding: 0 6px; }
.sl-erows { display: grid; gap: 6px; }
.sl-erow { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.sl-erow input[type=number] { width: 84px; }
.sl-mks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; width: 100%; }
.sl-mks > div { display: grid; gap: 4px; align-content: start; }
.sl-mks .check { font-size: 14px; }
.sl-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sl-tabs .in-tab { height: 30px; font-size: 13px; }
.sl-lang { display: grid; gap: 8px; width: 100%; }
.sl-lang label, .sl-shop .sl-erow label:first-child { display: grid; gap: 4px; width: 100%; }
.sl-lang input, .sl-lang textarea { width: 100%; box-sizing: border-box; }
.sl-shop { justify-items: stretch; }
.sl-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 14px; width: 100%; }
.sl-prods .check { text-transform: none; letter-spacing: 0; font-size: 14px; }
.sl-img { display: flex; gap: 14px; align-items: center; }
.sl-imgprev { width: 180px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface); display: grid; place-items: center; flex: none; }
.sl-imgprev img { width: 100%; height: 100%; object-fit: cover; }
.sl-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-height: 280px; overflow-y: auto; width: 100%; }
button.sl-imgbtn { all: unset; cursor: pointer; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface); outline-offset: 2px; }
button.sl-imgbtn:hover, button.sl-imgbtn:focus-visible { outline: 2px solid var(--klein); }
button.sl-imgbtn img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) { .sl-ghead { flex-wrap: wrap; } .sl-gact { width: 100%; justify-content: flex-start; } .sl-mks { grid-template-columns: 1fr; } .sl-acts { flex-wrap: wrap; justify-content: flex-start; } }
button.sl-cname { font-weight: 700; font-size: 15px; text-decoration: none; }
button.sl-cname:not(:disabled):hover { text-decoration: underline; }
button.sl-cname:disabled { opacity: 1; cursor: default; color: var(--ink); }
.sl-divider { margin: 56px 0 4px; padding-top: 22px; border-top: 2px solid var(--ink); }
.sl-divider h2 { font-size: 26px; font-weight: 800; text-transform: uppercase; margin: 0 0 4px; }
.sl-divider p { margin: 0; }
.sl-field { display: inline-flex; align-items: center; gap: 4px; }
.sl-field input.sl-cell { width: 70px; }
select.sl-unit { width: 58px; min-width: 58px; height: 32px; padding: 0 22px 0 12px; font-size: 13px; background-position: right 8px center; }
.sl-setdef { visibility: hidden; margin-left: 6px; font-size: 12px; }
.sl-t tr.sl-regrow:hover .sl-setdef, .sl-setdef:focus-visible { visibility: visible; }
button.sl-prodlink { font: inherit; color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
button.sl-prodlink:not(:disabled):hover { color: var(--ink); text-decoration: underline; }
.sl-vol { align-items: flex-start; }
.sl-mks { grid-template-columns: 2fr 1fr; }
.sl-mks > div:first-child { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.sl-mks > div > span { grid-column: 1 / -1; }
@media (hover: none) { .sl-setdef { visibility: visible; } }
@media (max-width: 700px) { .sl-mks, .sl-mks > div:first-child { grid-template-columns: 1fr; } }

/* ---- Creative → Photos (photo library, tags in the file names) */
.ph { display: grid; gap: 14px; }
.ph-prods { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
button.ph-prod { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 112px; display: grid; gap: 4px; justify-items: start; scroll-snap-align: start; padding: 6px; border-radius: 12px; border: 2px solid transparent; }
button.ph-prod:hover { background: var(--hover); }
button.ph-prod.on { border-color: var(--klein); }
button.ph-prod.empty { opacity: .55; }
.ph-pimg { width: 100%; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: var(--surface); display: grid; place-items: center; font-weight: 700; color: var(--soft-ink); }
.ph-pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-pname { font-size: 13px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ph-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ph-bar input[type=search] { flex: 1 1 240px; max-width: 380px; } .ph-bar select { width: auto; }
.ph-size { display: inline-flex; gap: 2px; }
button.ph-sz { all: unset; cursor: pointer; font-size: 12px; font-weight: 700; width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 14px; color: var(--soft-ink); }
button.ph-sz.on { background: var(--ink); color: #fff; }
.ph-filters { display: grid; gap: 6px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 10px 0; }
.ph-frow, .ph-vrow { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: start; }
.ph-flabel, .ph-vrow > span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--soft-ink); padding-top: 6px; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
button.ph-chip, span.ph-chip { all: unset; box-sizing: border-box; cursor: pointer; font-size: 13px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; line-height: 1.3; display: inline-flex; gap: 5px; align-items: center; }
button.ph-chip:hover { border-color: var(--ink); }
.ph-chip > span { color: var(--muted); font-size: 12px; }
.ph-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; } .ph-chip.on > span { color: rgba(255,255,255,.7); }
.ph-chip.zero { opacity: .45; }
.ph-chip.ph-edit { cursor: default; padding-right: 6px; } .ph-chip.ph-edit button { color: rgba(255,255,255,.8); font-size: 15px; padding: 0 2px; }
.ph-addtag input { width: 110px; padding: 4px 11px; font-size: 13px; min-height: 0; }
.ph-head { display: flex; align-items: center; gap: 12px; font-size: 14px; } .ph-all-sel { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.ph-grid { display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); align-items: start; padding-bottom: 70px; }
.ph-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.ph-grid.ph-s, .ph-grid.ph-s .ph-col { gap: 10px; } .ph-grid.ph-s .ph-tags { display: none; }
.ph-card { position: relative; display: grid; gap: 6px; min-width: 0; }
button.ph-pic { all: unset; box-sizing: border-box; cursor: zoom-in; display: block; width: 100%; border-radius: 10px; overflow: hidden; background: var(--surface); outline: 3px solid transparent; outline-offset: -3px; }
.ph-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-card.sel .ph-pic { outline-color: var(--klein); }
.ph-tick { position: absolute; top: 6px; left: 6px; z-index: 1; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.92); opacity: 0; transition: opacity .12s; cursor: pointer; }
.ph-tick input { margin: 0; cursor: pointer; }
.ph-card:hover .ph-tick, .ph-card.sel .ph-tick, .ph-grid:has(.sel) .ph-tick { opacity: 1; }
@media (hover: none) { .ph-tick { opacity: 1; } }
.ph-cap { display: grid; gap: 4px; font-size: 13px; line-height: 1.3; }
.ph-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.ph-tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--surface); color: var(--soft-ink); }
.ph-tag.c-type { background: #e6ecf8; } .ph-tag.c-style { background: #f3ecdc; } .ph-tag.c-specific { background: #ecf1e4; } .ph-tag.c-room { background: #f2e6ea; }
.ph-sel { position: fixed; left: calc(var(--side) + 24px); right: 24px; bottom: 16px; z-index: 50; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 16px; background: #fff; box-shadow: 0 6px 30px rgba(0,0,0,.18); border: 1px solid var(--line-soft); }
.ph-sel select { width: auto; } .ph-sel .secondary { display: inline-flex; gap: 6px; align-items: center; }
body.embedded .ph-sel { left: 24px; }
@media (max-width: 860px) { .ph-sel { left: 12px; right: 12px; } .ph-frow, .ph-vrow { grid-template-columns: 1fr; } .ph-flabel, .ph-vrow > span { padding-top: 0; } }
.ph-mbox { width: min(520px, 100%); padding: 22px; }
.ph-view .ph-mbox { width: min(1280px, 100%); }
.ph-view .ph-mbox { width: auto; max-width: calc(100vw - 48px); }
.ph-vwrap { display: grid; grid-template-columns: auto 320px; gap: 20px; align-items: start; }
/* the frame = the photo's shape: as large as fits next to the tags and on the screen */
.ph-vpic { --r: 1.5; position: relative; border-radius: 12px; overflow: hidden; background: var(--surface);
  width: min(calc(100vw - 48px - 36px - 340px), calc((100vh - 84px) * var(--r)), 1400px); aspect-ratio: var(--r); }
.ph-vpic img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 900px) { .ph-vwrap { grid-template-columns: 1fr; } .ph-vpic { width: min(calc(100vw - 84px), calc((100vh - 140px) * var(--r))); } }
.ph-vnew input { width: 104px; height: 28px; padding: 3px 11px; font-size: 13px; min-height: 0; border-style: dashed; }
button.ph-nav { all: unset; position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.9); font-size: 28px; cursor: pointer; }
button.ph-nav.prev { left: 10px; } button.ph-nav.next { right: 10px; }
.ph-vside { display: grid; gap: 10px; align-content: start; padding-top: 18px; max-height: calc(100vh - 84px); overflow: auto; }
.ph-vside .ph-vrow { grid-template-columns: 1fr; gap: 4px; } .ph-vside .ph-vrow > span { padding-top: 0; }
.ph-vname { font-weight: 600; word-break: break-word; padding-right: 24px; }
.ph-vdl { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; } .ph-vdl .button { display: inline-flex; gap: 6px; align-items: center; }
.ph-set h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--soft-ink); margin: 14px 0 2px; }
.ph-web { display: grid; grid-template-columns: repeat(4, minmax(0, 140px)); gap: 10px; }
.ph-loose { display: grid; gap: 6px; }
.ph-vside > button.link { justify-self: start; }
.ph-addtag input { width: 96px !important; height: 28px; } .ph-web input, .ph-web select { width: 100%; min-width: 0; box-sizing: border-box; }

button.ph-del { color: var(--err); } button.ph-del:not(:disabled):hover { color: var(--err); text-decoration: underline; background: none; }
.ph-vdl { align-items: center; }
/* the group tables line up: same width for the quantity column, the rest shared equally */
.sl-t { table-layout: fixed; width: 100%; }
.sl-t th:first-child { width: 190px; }
.sl-t td.num, .sl-t th.num { min-width: 0; }
@media (max-width: 700px) { .sl-t { min-width: 640px; } .sl-t th:first-child { width: 120px; } }

/* Administration → Pricing: editing a product's prices and its group's volume pricing */
.pr-hact { margin-left: auto; display: flex; gap: 8px; }
.pr-t .pr-in { width: 100%; max-width: 104px; text-align: right; padding: 6px 8px; font-size: 14px; }
.pr-t .pr-in:placeholder-shown { background: var(--line-soft); }
.pr-editing td { vertical-align: middle; }
.pr-vol { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.pr-vol h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.pr-tiers { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 6px; }
.pr-tier { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pr-tier label { display: flex; align-items: center; gap: 6px; margin: 0; }
.pr-tier .pr-tmin { width: 72px; }
.pr-tier .pr-tval { width: 96px; }
.pr-vol #prNewName { max-width: 280px; }
/* Creative → Campaign: the regular tiers are for reference */
.sl-t .sl-reg { color: var(--muted); border-right: 2px solid var(--line-soft); }
.sl-t td.sl-reg b { color: var(--muted); }

/* Partner area (Partner → Orders, Dashboard) */
#poTabs { margin-bottom: 16px; }
.po-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 28px; }
.po-addr { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 14px; margin: 8px 0 12px; }
.po-addr label { display: flex; flex-direction: column; gap: 4px; }
.po-addr label.wide { grid-column: 1 / -1; }
.po-sum { margin: 10px 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
ul.plain { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 4px; }
.pk-code { display: inline-flex; align-items: center; gap: 2px; }
.pd-chart { width: 100%; height: 140px; display: block; fill: var(--ink); margin-top: 8px; }
.pd-chart rect:hover { fill: var(--muted); }
.pd-axis { display: flex; justify-content: space-between; margin: 2px 0 12px; }
.pk-form section { border-top: 1px solid var(--line); padding: 10px 0 6px; }
.pk-form section h3 { margin: 4px 0 8px; }
.pk-form label.switch { margin: 4px 0; }
.pk-items { border: 0; padding: 6px 0 0; margin: 0; }
.pk-items legend { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0; }
.pk-list { margin: 6px 0 0 26px; display: grid; gap: 2px; }
.pk-var { margin-left: 24px !important; }

/* Administration → Users: grouped list, dialog in numbered sections */
.u-group { margin: 22px 0 2px; display: flex; gap: 8px; align-items: baseline; }
.u-access .chip { margin: 0 4px 4px 0; }
.u-form .u-sec { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.u-form .u-sec h3 { display: inline-flex; gap: 10px; align-items: baseline; margin: 0 0 10px; }
.u-form details.u-sec > summary { cursor: pointer; list-style: none; }
.u-form details.u-sec > summary::-webkit-details-marker { display: none; }
.u-form details.u-sec > summary h3::after { content: '▾'; font-size: 12px; color: var(--muted); }
.u-form details.u-sec:not([open]) > summary h3::after { content: '▸'; }
.u-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg, #fff); font-size: 12px; }
.u-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.u-gall { font-weight: 700; }

/* Creative → Campaigns: tabs, create form, log (offer on roll over, results) and the campaign pricing popup */
.cg-tabs { margin: 4px 0 16px; }
.cc-src { margin-bottom: 14px; }
.cc-pick { margin-bottom: 14px; }
.cc-pick select { min-width: 240px; }
.cc-form .row-form { margin-bottom: 12px; }
.cc-form .cc-offer { flex: 1; min-width: 260px; }
.cc-form .cc-offer input { width: 100%; }
.cc-what { min-height: 1.4em; margin: 4px 0 0; }
.cc-actions { margin-top: 12px; }
.cl-t td { vertical-align: middle; }
.cl-t th.cl-res, .cl-t td.num { white-space: nowrap; }
.cl-t .cl-res:first-of-type { border-left: 2px solid var(--line); }
.cl-dates { line-height: 1.35; }
.cl-running { color: var(--muted); }
.cl-offer { display: inline-block; max-width: 260px; }
.cl-offer.cl-more { position: relative; cursor: help; white-space: nowrap; }
.cl-offer .cl-full { display: none; position: absolute; left: 0; top: calc(100% + 4px); z-index: 20; width: max-content; max-width: 360px; white-space: normal; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.12); color: var(--ink); font-size: 13px; }
.cl-offer.cl-more:hover .cl-full, .cl-offer.cl-more:focus .cl-full { display: block; }
.dialog.cpr-dialog { width: min(1100px, 96vw); }
.cpr-t { table-layout: auto; }
.cpr-t td.cpr-inherit b, .cpr-t td.cpr-inherit .pr-off { color: var(--muted); font-weight: 400; }
.cpr-t th.cpr-focus, .cpr-t td.cpr-focus { background: #fffaea; }
.cpr-t .sl-field input { width: 76px; }
.cg-head { display: flex; align-items: center; gap: 14px; margin: 8px 0 6px; }
.cg-head h2, .cg-h2 { margin: 0; font-size: 20px; text-transform: uppercase; }
.cg-head-tools { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.cg-h2 { margin: 26px 0 10px; }
/* campaign log columns */
.cl-t { width: 100%; }
.cl-t th, .cl-t td { padding-left: 8px; padding-right: 8px; }
.cl-t .cl-namecol { min-width: 150px; }
.cl-t td:first-child { min-width: 150px; }
.cl-t .cl-offcol { width: 22%; min-width: 180px; }
.cl-t .cl-offer { max-width: none; }
.cl-t th { white-space: nowrap; }
.cl-t td.right { width: 40px; }
.cc-disc { margin: -2px 0 12px; }
.cc-vol { align-self: center; }
/* the running campaign above the log */
.cv-card { border-left: 0; }
.cv-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.cv-head h2 { margin: 0 0 4px; }
.cv-offer { margin: 6px 0 0; }
.cv-t { width: 100%; border-collapse: collapse; }
.cv-t th, .cv-t td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.cv-t thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; text-align: right; }
.cv-t tbody th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.cv-card { padding-left: 18px; }
.cv-live { margin: 0 0 76px; padding-bottom: 28px; }
.cv-live .cv-pv { margin: 0; max-width: none; border-radius: 14px; overflow: hidden; }
.cv-live .pv-bar, .cv-live .pv-banner { margin: 0; }
.cv-live .pv-banner { position: relative; }
.pv-edit { position: absolute; right: 12px; bottom: 12px; z-index: 2; }
.cv-info { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 12px 0 8px; }
.cv-info .cv-main { flex: 1; } .cv-name { font-size: 16px; }
.cv-t td { font-size: 14px; font-weight: 400; }
.cv-t tr.cv-amer td, .cv-t tr.cv-amer th { font-weight: 800; }
.cv-t tr.cv-amer td { font-size: 15px; }
.cv-low { color: #c62828; } .cv-high { color: #1565c0; }
.cv-set { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; margin: 10px 0 6px; }
.cv-set input { width: 70px; height: 30px; }
.cv-h { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cv-prog { display: grid; grid-template-columns: 110px minmax(160px, 1fr) 150px 210px; gap: 8px 12px; align-items: center; }
.cv-pr { display: contents; }
.cv-pl { font-weight: 600; font-size: 14px; }
.cv-bar { height: 14px; background: rgba(0,0,0,.05); position: relative; z-index: 1; } .cv-bar i { display: block; height: 100%; background: var(--ink); }
.cv-pn { font-size: 13px; font-variant-numeric: tabular-nums; }
.cv-pi { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; } .cv-pi input { width: 90px; height: 28px; }
@media (max-width: 760px) {
  .cv-prog { grid-template-columns: 1fr; gap: 14px; position: static; }
  .cv-pr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
  .cv-pr .cv-bar { grid-column: 1 / -1; grid-row: 2; }
  .cv-pr .cv-pn { grid-row: 1; grid-column: 2; text-align: right; }
  .cv-pr .cv-pi { grid-column: 1 / -1; }
  .cv-ruler { display: none; }
}

/* sale settings: flat sections like the rest of the app, preview with square bar and banner, pill badge */
.sf-wrap { display: grid; gap: 0; width: 100%; }
.sf-sec { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.sf-sec:first-child { border-top: 0; padding-top: 4px; }
.sf-sec h3, .pv-head h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.sf-sec label:not(.check) { display: grid; gap: 4px; }
.sf-sec input:not([type=checkbox]):not([type=color]), .sf-sec select { width: 100%; box-sizing: border-box; }
.sf-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sf-looks { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.sf-col { display: grid; gap: 8px; }
.sf-colors { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sf-colors input[type=color] { -webkit-appearance: none; appearance: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); background: none; border-radius: 50%; overflow: hidden; cursor: pointer; }
.sf-colors input[type=color]::-webkit-color-swatch-wrapper { padding: 0; } .sf-colors input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.sf-colors input[type=color]::-moz-color-swatch { border: 0; border-radius: 50%; }
.sf-opts { display: flex; gap: 14px 20px; align-items: center; flex-wrap: wrap; }
.sf-gr { display: inline-flex; gap: 10px; align-items: center; } .sf-gr select { width: auto !important; }
.sf-swatch { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); }
.sf-img-field { display: grid; gap: 6px; }
.sf-img-field[data-f=logo] .sl-imgprev { aspect-ratio: 16 / 9; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.sf-img-field[data-f=logo] .sl-imgprev img { object-fit: contain; }
.sf-pv { padding: 18px 0 0; border-top: 1px solid var(--line-soft); }
.pv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.pv-ctl { display: flex; gap: 12px; flex-wrap: wrap; }
.pv-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 4px; }
.pv-bar { text-align: center; padding: 9px 12px; font-size: 12px; letter-spacing: .08em; font-weight: 600; text-transform: uppercase; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; border-radius: 0; }
.pv-cnt { font-variant-numeric: tabular-nums; opacity: .9; font-weight: 500; }
.pv-banner { position: relative; overflow: hidden; min-height: 150px; display: grid; place-items: center; text-align: center; padding: 22px 16px; border-radius: 0; }
.pv-img { position: absolute; inset: 0; } .pv-shade { position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.pv-in { position: relative; display: grid; gap: 10px; justify-items: center; max-width: 460px; }
.pv-in b { font-size: 22px; line-height: 1.15; text-transform: uppercase; letter-spacing: .04em; }
.pv-logo { max-height: 64px; max-width: 100%; width: auto; display: block; } .pv-logo-badge { max-height: 34px; }
.pv-btn { display: inline-block; padding: 8px 18px; border: 1px solid currentColor; border-radius: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.pv-prod { display: grid; gap: 8px; justify-items: start; padding: 6px 0; }
.pv-swatches { display: flex; gap: 6px; } .pv-swatches i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.pv-price { font-size: 20px; font-weight: 600; }
.pv-badge { display: inline-block; font-size: 12px; padding: 5px 14px; border-radius: 999px; font-weight: 600; }
.pv-none { padding: 6px 0; }
.pv-only .sf-sec { display: none; }
.pv-only .sf-pv { border-top: 0; padding-top: 0; }
.cv-next { margin-top: 12px; }
.cv-pv { margin: 4px 0 14px; max-width: 900px; }
.cv-pv .pv-lbl:first-child { margin-top: 0; }

.cv-hourly { margin: 6px 0 4px; } .cv-hourly summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 4px 0; }
.cv-ht { max-height: 360px; } .cv-ht tbody th { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 400; white-space: nowrap; }

.cv-tg { border: 0; background: none; padding: 0 4px 0 0; cursor: pointer; color: var(--muted); font-size: 12px; width: 16px; }
.cv-t tr.cv-sub th { padding-left: 30px; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 13px; }
.cv-t tr.cv-sub td { font-size: 13px; color: var(--muted); }
.cv-t tr.cv-sub td.cv-low { color: #c62828; } .cv-t tr.cv-sub td.cv-high { color: #1565c0; }

button.cv-tg, button.cv-tg:hover, button.cv-tg:focus, button.cv-tg:active { background: none; border: 0; box-shadow: none; color: var(--muted); outline: none; height: auto; }


@media (min-width: 761px) { .cv-pr > * { grid-row: var(--r); } .cv-pr > :nth-child(1) { grid-column: 1; } .cv-pr > :nth-child(2) { grid-column: 2; } .cv-pr > :nth-child(3) { grid-column: 3; } .cv-pr > :nth-child(4) { grid-column: 4; } }
.cv-ruler { align-self: stretch; grid-column: 2; display: flex; pointer-events: none; z-index: 0; min-width: 0; }
.cv-ruler i { flex: 1; border-right: 1px dotted #bdbdbd; }
.cv-ruler i:last-child { border-right: 0; }
.cv-ruler i.cur { border-right: 2px dotted #1565c0; }
@media (max-width: 760px) { .cv-ruler { display: none; } }
.live-end { cursor: pointer; position: relative; display: inline-block; }
.live-end .le-b { position: absolute; left: 0; top: 0; height: 100%; display: none; align-items: center; padding: 0 10px; white-space: nowrap; background: var(--danger, #c0392b); color: #fff; border-radius: inherit; z-index: 2; }
.live-end:hover .le-b { display: flex; }
/* phones: the live numbers stay a real table that scrolls sideways, row names stay in view */
@media (max-width: 640px) {
  main table.cv-t { display: table !important; width: max-content !important; min-width: 100%; }
  main table.cv-t thead { display: table-header-group !important; }
  main table.cv-t tbody { display: table-row-group !important; width: auto !important; }
  main table.cv-t tr { display: table-row !important; padding: 0 !important; border: 0 !important; }
  main table.cv-t th, main table.cv-t td { display: table-cell !important; padding: 8px 10px !important; border-bottom: 1px solid var(--line-soft) !important; text-align: right; white-space: nowrap; }
  main table.cv-t tbody th { text-align: left; position: sticky; left: 0; background: var(--bg); z-index: 1; }
  main table.cv-t td::before { display: none !important; }
  main table.cv-t tr.cv-sub th { padding-left: 22px !important; }
  .cv-live .table-scroll { margin: 0 -16px; padding: 0 16px; }
  .cv-info { flex-wrap: wrap; }
}

/* Supply chain: purchase orders, materials, suppliers */
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; }
.grid2 label input, .grid2 label select { width: 100%; }
fieldset { border: 1px solid var(--line); padding: 10px 14px 14px; margin: 0; }
fieldset legend { font-weight: 600; padding: 0 6px; }
.po-mail-preview { border: 1px solid var(--line); padding: 14px 16px; max-height: 46vh; overflow: auto; background: #fff; color: #222; }
.po-pay { background: var(--line-soft); padding: 8px 12px; }
.rcv-btns { margin-top: 4px; display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
table.sp input.sp-buy { width: 78px; text-align: right; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--line-soft); }

/* ===== Dashboard → Quicklinks: columns and headings are the Lists ones (.nt-note .nt-cols .nt-col .nt-h); a click on a line copies it ===== */
.ql-hint { margin: 6px 0 14px; }
.nt-note.ql { cursor: default; }
.ql .nt-col { min-width: 0; }
.ql-items { min-height: 2px; }
/* a note */
.ql-item { display: flex; align-items: flex-start; gap: 6px; padding: 1px 0; border-radius: 8px; position: relative; }
.ql-grip { cursor: grab; color: transparent; font-size: 13px; user-select: none; flex: none; width: 12px; padding-top: 7px; touch-action: none; }
.ql-item:hover > .ql-grip, .ql-gh:hover > .ql-grip { color: #b9b9b4; }
.ql-copy { flex: 1; min-width: 0; padding: 3px 0; font-size: 15px; line-height: 1.35; color: var(--ink); }
.ql-ln { display: block; padding: 1px 6px; border-radius: 6px; cursor: copy; user-select: none; -webkit-user-select: none; overflow-wrap: anywhere; touch-action: pan-y; }
.ql-ln:hover { background: var(--surface); }
.ql-ln:focus-visible, .ql-label:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ql-ln.ql-sel, .ql-ln.ql-sel:hover { background: rgba(242,183,5,.32); }
.ql-gap { display: block; height: .7em; }
.ql-label { display: block; padding: 0 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 1px; cursor: copy; user-select: none; -webkit-user-select: none; }
.ql-label:hover { color: var(--ink); }
.ql-priv .ql-ln { color: var(--soft-ink); }
.ql-tools { display: inline-flex; gap: 2px; padding-top: 5px; opacity: 0; flex: none; }
.ql-item:hover .ql-tools, .ql-item:focus-within .ql-tools { opacity: 1; }
.ql-ico { background: none; border: 0; padding: 2px 4px; min-width: 0; height: auto; font-size: 14px; line-height: 1; color: #b9b9b4; cursor: pointer; display: inline-flex; align-items: center; }
button.ql-ico:not(:disabled):hover { background: none; color: var(--ink); }
.ql-lock { padding-top: 7px; flex: none; color: #d0d0cb; }
.ql-lock.on { color: var(--muted); }
.ql-lock-sp { width: 22px; flex: none; }
/* editing / adding a note */
.ql-edit { padding: 4px 0 4px 18px; }
.ql-fields { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ql-lin { border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: none; padding: 2px 6px; height: auto; font: inherit; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ql-ta { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 15px; line-height: 1.35; resize: vertical; background: var(--bg); color: var(--ink); }
.ql-lin:focus, .ql-ta:focus { outline: none; border-color: var(--ink); }
.ql-add { display: block; background: none; border: 0; padding: 4px 6px 4px 24px; height: auto; min-width: 0; font: inherit; font-size: 13px; color: #c4c4bf; cursor: pointer; }
button.ql-add:not(:disabled):hover { background: none; color: var(--ink); }
.ql-addg { margin-top: 8px; padding-left: 6px; }
/* a group: a light box with its title, its notes and + Add */
.ql-group { margin: 12px 0 4px; padding: 6px 8px 4px 4px; background: var(--surface); border-radius: 12px; }
.ql-gh { display: flex; align-items: center; gap: 6px; }
.ql-gh .ql-grip { padding-top: 0; }
.ql-gin { flex: 1; min-width: 0; border: 0; background: none; padding: 4px 0; height: auto; border-radius: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); }
.ql-gin:focus { outline: none; }
.ql-gin::placeholder { color: #b9b9b4; font-weight: 600; }
.ql-group .ql-ln:hover { background: rgba(0,0,0,.045); }
.ql-group .ql-add { padding-left: 24px; }
.ql-group-new { padding-left: 22px; }
/* dragging */
.ql-dragging { opacity: .4; }
.ql-before { box-shadow: inset 0 2px 0 #2f6fd6; }
.ql-after { box-shadow: inset 0 -2px 0 #2f6fd6; }
.ql-over { box-shadow: inset 0 -2px 0 #2f6fd6; }
@media (hover: none) { .ql-tools { opacity: 1; } .ql-grip { color: #d6d6d1; } }
/* Quicklinks: the group title and label fields without the app's pill field look (like the Lists headings) */
.ql input.ql-gin, .ql input.ql-gin:focus, .ql input.ql-gin:hover { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding: 4px 0 !important; height: auto !important; }
.ql input.ql-lin, .ql input.ql-lin:focus, .ql input.ql-lin:hover { background: none !important; border: 0 !important; border-bottom: 1px solid var(--line-soft) !important; box-shadow: none !important; border-radius: 0 !important; padding: 2px 6px !important; height: auto !important; }
.ql input.ql-lin:focus { border-bottom-color: var(--ink) !important; }
.ql input.ql-gin { font-size: 14px !important; font-weight: 800 !important; text-transform: uppercase; letter-spacing: .02em; color: var(--ink) !important; }

/* Products (BOM editor): product level + variant level */
.bom-edit-head { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.bom-edit-head h2 { margin: 0; }
.bom-variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.bom-variant { border: 1px solid var(--line); border-radius: var(--radius-box); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.bom-variant-head { display: flex; gap: 8px; align-items: baseline; }
.bom-variant-cost { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.bom-variant table.bom-edit { margin: 0; }
.bom-lines tr.sub td { font-weight: 600; background: rgba(0,0,0,.015); }

/* Quicklinks: no indentation – lines, labels and + Add start where the heading starts; the grips sit in the margin */
.ql-item { gap: 4px; }
.ql-grip { position: absolute; left: -16px; top: 0; width: 14px; padding-top: 7px; text-align: center; }
.ql-gh { position: relative; }
.ql-gh .ql-grip { top: 50%; transform: translateY(-50%); padding-top: 0; }
.ql-ln, .ql-label { margin: 0 -6px; }
.ql-copy { padding-left: 0; }
.ql-edit, .ql-group-new { padding-left: 0; }
.ql-add, .ql-group .ql-add, .ql-addg { padding-left: 0; }
.ql-group { margin: 12px -10px 4px; padding: 6px 10px 4px; }


/* material editor: photo, drawings, design files */
.me-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.me-kind { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.me-photo { position: relative; }
.me-photo img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.me-photo .me-x { position: absolute; top: 2px; right: 6px; background: #fff; border-radius: 50%; }
.me-file { font-size: 13px; word-break: break-all; }
.me-file.new { color: var(--muted, #777); }
.po-files { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 6px; }
.bom-new { border: 1px dashed var(--line); border-radius: var(--radius-box); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: rgba(0,0,0,.015); }

/* Quicklinks: the lock sits next to the column heading (only on columns you made) */
.ql .nt-h .ql-lock { padding: 0 2px; flex: none; color: #d0d0cb; }
.ql .nt-h .ql-lock.on { color: var(--muted); }
.ql-ln { cursor: copy; }

/* Materials table: plain cells (no pill-shaped fields) – an input shows its frame only on hover / focus */
.units-table input { border: 1px solid transparent; border-radius: 4px; background: transparent; box-shadow: none; height: 30px; padding: 0 6px; }
.units-table input:hover { border-color: var(--line); }
.units-table input:focus { border-color: var(--ink); background: #fff; outline: none; }
.units-table input.changed { border-color: var(--tick-ink); background: #fff8e1; }
.table-scroll .units-table thead th { top: 0; } /* inside its own scroll box the header must not be pushed down over the first rows */
.m-ic { color: var(--muted, #888); display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; font-size: 12px; text-decoration: none; }
.m-ic:hover { color: var(--ink); }

/* Parts: part rows with their variant rows; the part editor's variants table */
.parts-table .pt-thumb { display: inline-block; width: 28px; height: 28px; border-radius: 6px; object-fit: cover; background: var(--line-soft, #f2f1ec); vertical-align: middle; }
.parts-table tr.pt-var td { padding-top: 3px; padding-bottom: 3px; }
.parts-table tr.pt-var .pt-indent { padding-left: 22px; }
.parts-table tr.pt-part td { border-top: 1px solid var(--line); }
.pe-vars td { vertical-align: middle; }
.pe-vars .pv-photo { white-space: nowrap; }
.pe-vars .pv-photo img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; vertical-align: middle; border: 1px solid var(--line); }

/* Parts: photo cells take a dropped image or a click */
.parts-table .pt-drop { display: inline-block; cursor: pointer; border-radius: 7px; outline: 2px dashed transparent; outline-offset: 1px; line-height: 0; }
.parts-table .pt-drop:hover .pt-thumb, .parts-table .pt-drop.over .pt-thumb { box-shadow: 0 0 0 2px var(--ink); }
.parts-table .pt-drop.over { outline-color: var(--ink); }
.parts-table .pt-drop.busy { opacity: .4; }
.parts-table .pt-empty { display: inline-grid; place-items: center; color: var(--muted, #999); font-size: 15px; line-height: 1; }

.pt-inactive { display: flex; align-items: center; gap: 6px; margin: 14px 0 4px; }

/* ---- Lists: copy lines, due dates, list colours, private / shared lists */
.nt-pal [hidden] { display: none !important; }
.nt-note .nt-copy { width: 20px; height: 20px; flex: none; margin: 0; padding: 0; min-width: 0; border: 1.5px solid #c4c4bf; border-radius: 50%; background: var(--bg); color: #8a8a85; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nt-note button.nt-copy:not(:disabled):hover { background: var(--bg); border-color: var(--klein, #002fa7); color: var(--klein, #002fa7); }
.nt-note .nt-copy.copied, .nt-note button.nt-copy.copied:hover { background: var(--tick); border-color: var(--tick); color: #fff; }
.nt-due { font-size: 12px; color: var(--muted); white-space: nowrap; margin-right: 8px; background: none; border: 0; padding: 0; height: auto; min-width: 0; cursor: pointer; }
button.nt-due:not(:disabled):hover { background: none; color: var(--klein, #002fa7); }
.nt-due.today { color: #b7791f; } .nt-due.late { color: #c0392b; }
.nt-ldue { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; background: none; border: 0; padding: 0 4px; height: auto; min-width: 0; cursor: pointer; text-transform: none; }
button.nt-ldue:not(:disabled):hover { background: none; color: var(--klein, #002fa7); }
.nt-ldue.today { color: #b7791f; } .nt-ldue.late { color: #c0392b; }
.nt-lvis { display: inline-flex; align-items: center; color: var(--muted); background: none; border: 0; padding: 0 3px; height: auto; min-width: 0; }
button.nt-lvis { cursor: pointer; } button.nt-lvis:not(:disabled):hover { background: none; color: var(--klein, #002fa7); }
.nt-note .nt-h input.nt-in[class*="hc-"], .nt-note .nt-h input.nt-in[class*="hc-"]:focus, .nt-note .nt-h input.nt-in[class*="hc-"]:hover { field-sizing: content; flex: 0 1 auto; min-width: 3ch; max-width: 100%; margin-right: auto; border-radius: 4px !important; padding: 2px 6px !important; }
.nt-note .nt-h input.nt-in.hc-y { background: #fff0a6 !important; } .nt-note .nt-h input.nt-in.hc-g { background: #cdeed2 !important; } .nt-note .nt-h input.nt-in.hc-b { background: #cfe2fb !important; } .nt-note .nt-h input.nt-in.hc-p { background: #fad3e1 !important; } .nt-note .nt-h input.nt-in.hc-l { background: #e3d7f8 !important; }
.nt-h .nt-in[readonly] { cursor: default; }
.nt-share-l { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; margin-bottom: 10px; }
.nt-share-l label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.nt-share-l input { width: auto; margin: 0; }

/* ---- Lists: round icon buttons (time tracking, show ticked; sign out on the lists-only address) */
.nt-fab { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; flex-direction: column-reverse; gap: 10px; }
.nt-fab form { margin: 0; display: contents; }
.nt-fab-b { width: 44px; height: 44px; min-width: 0; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg) !important; color: #8a8a85 !important; border: 1px solid var(--line) !important; box-shadow: 0 4px 14px rgba(0,0,0,.10); cursor: pointer; }
button.nt-fab-b:not(:disabled):hover { color: var(--ink) !important; border-color: var(--ink) !important; }
.nt-fab-b.on, button.nt-fab-b.on:not(:disabled):hover { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
#hmListsTools .nt-fab-b { width: 32px; height: 32px; box-shadow: none; }
#hmListsTools .nt-fab-b svg { width: 16px; height: 16px; }
@media (max-width: 700px) { .nt-fab { right: 14px; bottom: 14px; } }
/* lists.peppermintproducts.com: just the lists – no menu, no page title, no pickers */
.lists-only main > h1, .lists-only main > .title-row { display: none !important; }
body.lists-only { padding-left: 0 !important; padding-top: 0 !important; }
body.lists-only aside.side { display: none !important; }
.lists-only main { max-width: none; padding-top: 20px; }
.lists-only main > h1 + #msg:empty + section, .lists-only main > section.nt-card { border-top: 0; }
