/* Launch My Firm — AI team office.
   A dark office in Plus Jakarta Sans, with a monospaced voice for the live, technical bits (the console, counts, initials).
   Red is the brand and anything that needs you; blue is work in progress; amber is a note or something sent back. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/plus-jakarta-sans-regular.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/plus-jakarta-sans-medium.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/plus-jakarta-sans-semibold.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/plus-jakarta-sans-bold.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-extrabold.woff2") format("woff2"); }
/* the new UAE Dirham sign (U+20C3) only: system fonts do not have it yet. From the MIT-licensed "dirham" package. */
@font-face { font-family: "Dirham"; font-style: normal; font-weight: 100 900; font-display: block; src: url("/fonts/dirham-sans.woff2") format("woff2"); unicode-range: U+20C3; }
:root {
  --page: #0B0B0C;
  --panel: #141416;
  --raise: #1C1C1F;
  --deep: #0F0F11;
  --line: #26262B;
  --line-2: #3A3A40;
  --text: #F4F4F5;
  --soft: #D4D4D8;
  --muted: #A6A6AE;
  --faint: #8C8C94;
  --red: #FB1B39;
  --red-btn: #D6122E;
  --red-text: #FF8A98;
  --red-wash: #2A1216;
  --blue: #6CB6FF;
  --blue-text: #9CCBFF;
  --blue-wash: #0F1A26;
  --blue-line: #23415F;
  --warn: #F5A524;
  --warn-text: #F7D9A6;
  --warn-wash: #221A0C;
  --warn-line: #5A4318;
  --ok: #9CCBFF;
  --font: "Dirham", "Plus Jakarta Sans", -apple-system, "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: "Dirham", ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --bar-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar-h) + 16px); }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, textarea, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

/* ---------- top bar: the logo, whose work, the three pages, and the office's state */
.bar { position: sticky; top: 0; z-index: 8; min-height: var(--bar-h); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 10px 22px; border-bottom: 1px solid var(--line); background: rgba(16, 16, 18, 0.94); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-what { color: var(--muted); font-size: 13px; padding-left: 11px; border-left: 2px solid var(--red); line-height: 1; white-space: nowrap; }
.brands { display: flex; gap: 4px; padding: 4px; background: var(--raise); border: 1px solid var(--line); border-radius: 12px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.brand-pick, .brand-new { flex: none; border: 0; border-radius: 8px; padding: 8px 13px; min-height: 38px; font-size: 13.5px; font-weight: 600; background: transparent; color: var(--soft); white-space: nowrap; }
.brand-pick:hover { background: #26262B; color: var(--text); }
.brand-pick[aria-pressed="true"] { background: var(--text); color: var(--page); }
.brand-new { color: var(--muted); border: 1px dashed var(--line-2); }
.brand-count { display: inline-block; margin-left: 7px; background: var(--red-btn); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11.5px; font-weight: 700; line-height: 18px; font-family: var(--mono); }
.brand-new:hover { color: var(--text); border-color: var(--muted); }
.views { display: flex; gap: 2px; }
.view-tab { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 10px 12px; min-height: 44px; font-size: 14.5px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.view-tab:hover { color: var(--text); }
.view-tab[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--red); }
.view-count { background: var(--red-btn); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; font-weight: 700; line-height: 20px; font-family: var(--mono); }
.bar-right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 13px; }
.bar-gaps { display: inline-flex; align-items: center; gap: 7px; background: var(--raise); border: 1px solid var(--warn-line); border-radius: 999px; padding: 7px 13px; color: var(--soft); font-weight: 600; font-size: 13px; }
.bar-gaps::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.bar-gaps b { color: var(--text); font-weight: 700; }
.bar-gaps:hover { border-color: var(--warn); color: var(--text); }
.bar-plan { display: flex; align-items: center; gap: 14px; }
.gauge { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.gauge-bar { width: 54px; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.gauge-bar i { display: block; height: 100%; background: var(--text); border-radius: 2px; transition: width 0.6s ease; }
.gauge.is-high .gauge-bar i { background: var(--warn); }
.gauge.is-full .gauge-bar i { background: var(--red); }
.gauge b { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--text); }
.bar-claude, .bar-nano { color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.bar-spend { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 13px; cursor: default; }
.bar-spend b { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.bar-spend .spend-sep { width: 1px; height: 14px; align-self: center; background: var(--line-2); margin: 0 3px; }
.bar-spend .spend-month { color: #FFFFFF; }
.bar-claude::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.bar-claude.is-off { color: var(--warn-text); }
.bar-claude.is-off::before { background: var(--warn); }
.bar-nano::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #F2C230; }
.bar-nano.is-busy::before { animation: pulse 1s ease-in-out infinite; }
.bar-nano.is-off::before { background: var(--warn); }
.signout .linkish { font-size: 13px; }

/* ---------- pages */
main.office { max-width: 1480px; margin: 0 auto; padding: 22px 22px 40px; }
.page-office { display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 31vw, 470px); gap: 22px; align-items: start; }
.work { min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.sec-note { color: var(--muted); font-size: 13px; }
.count-badge { align-self: center; background: var(--red-btn); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 700; font-family: var(--mono); }
.count-badge.is-zero { background: var(--line-2); }

/* ---------- the task box */
.composer { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 14px; display: grid; gap: 12px; }
.composer-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.composer-title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.composer-for { color: var(--muted); font-size: 13px; }
.composer-for b { color: var(--text); }
.composer-to { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.to-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--red-wash); color: var(--text); border: 1px solid #5C1420; border-radius: 999px; padding: 3px 4px 3px 12px; font-weight: 600; }
.to-chip button { background: none; border: 0; color: var(--soft); width: 24px; height: 24px; border-radius: 50%; line-height: 1; font-size: 16px; }
.to-chip button:hover { background: #3A141B; color: #fff; }
textarea { width: 100%; resize: vertical; max-height: 260px; background: var(--deep); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; line-height: 1.45; color: var(--text); font-size: 15px; }
textarea::placeholder { color: var(--faint); }
textarea:focus { outline: none; border-color: var(--blue-line); box-shadow: 0 0 0 3px rgba(108, 182, 255, 0.12); }
#ask { min-height: 64px; resize: none; }
.composer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.composer-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.flows { display: flex; flex-wrap: wrap; gap: 8px; }
.flows-more { padding-top: 12px; border-top: 1px solid var(--line); }
.flow { background: var(--raise); border: 1px solid var(--line); color: var(--soft); border-radius: 999px; padding: 7px 14px; min-height: 38px; font-size: 13.5px; font-weight: 600; }
.flow:hover { border-color: var(--line-2); color: var(--text); }
.flow[aria-pressed="true"] { background: var(--text); color: var(--page); border-color: var(--text); }
.flow-more { background: transparent; color: var(--muted); }
.send, .primary-btn { background: var(--red-btn); color: #fff; border: 0; border-radius: 10px; padding: 0 20px; font-weight: 700; font-size: 14.5px; min-height: 44px; }
.send:hover, .primary-btn:hover { background: #E8213C; }
.send:disabled, .primary-btn:disabled { background: #3A2A2D; color: #A39A9C; }
.ghost-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--raise); border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 0 15px; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; }
.ghost-btn:hover { border-color: var(--muted); }
.ghost-btn:disabled { opacity: 0.5; }
.warn-btn { background: var(--warn); color: #1A1203; border: 0; border-radius: 10px; padding: 0 16px; min-height: 40px; font-weight: 700; font-size: 14px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); background: var(--raise); color: var(--text); border-radius: 10px; }
.icon-btn svg, .chk-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: var(--muted); }
.composer-help { margin: 0; color: var(--muted); font-size: 12.5px; min-height: 1.45em; max-width: 100ch; }
.composer-help.is-error { color: var(--warn-text); }

/* ---------- Needs you */
.need-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.need { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.need.is-new { animation: rise 0.3s ease-out; }
.need.is-question { border-color: #3A2E1A; }
.need.is-rejected { border-color: #4A1A22; }
.need.is-approved { border-color: var(--blue-line); background: var(--blue-wash); }
.need-top { display: flex; gap: 14px; min-width: 0; }
.need-thumb { flex: 0 0 72px; height: 90px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; padding: 0; background: #fff; }
.need-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.need-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.need-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.need.is-question .need-kicker { color: var(--warn-text); }
.need.is-rejected .need-kicker { color: var(--red-text); }
.need-title { background: none; border: 0; padding: 0; text-align: left; color: var(--text); font-size: 16px; font-weight: 700; line-height: 1.3; }
.need-title:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.need-who { font-size: 12.5px; color: var(--muted); }
.need-ex { margin: 0; color: var(--soft); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.need-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.chk { display: inline-flex; align-items: center; gap: 5px; }
.chk.is-ok { color: var(--blue-text); } .chk.is-warn { color: var(--warn-text); } .chk.is-bad { color: var(--red-text); }
.chk-icon { width: 14px; height: 14px; }
.need-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.need-acts .primary-btn { flex: 1 1 110px; }
.need-acts .ghost-btn { flex: 1 1 auto; }
.need-back { display: grid; gap: 8px; background: var(--warn-wash); border: 1px solid var(--warn-line); border-radius: 12px; padding: 12px; }
.need-back label { color: var(--warn-text); font-size: 13px; font-weight: 600; }
.need-back textarea { background: var(--deep); border-color: var(--warn-line); min-height: 64px; }
.need-msg { margin: 0; color: var(--warn-text); font-size: 13px; }
.need-msg:empty { display: none; }
.need-done { display: flex; gap: 10px; color: #CFE6FF; font-size: 14px; }
.need-done .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: var(--page); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.need-empty { margin: 0; padding: 20px; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--muted); grid-column: 1 / -1; }

/* ---------- the task list */
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chip { background: none; border: 1px solid var(--line-2); color: var(--muted); border-radius: 999px; padding: 6px 12px; min-height: 34px; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.chip b { font-family: var(--mono); font-weight: 600; font-size: 12px; color: var(--text); }
.chip:hover { border-color: var(--muted); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--page); }
.chip[aria-pressed="true"] b { color: var(--page); }
.chip.c-waiting[aria-pressed="false"] b { color: var(--red-text); }
.chip.c-rejected[aria-pressed="false"] b { color: var(--red-text); }
.chip.is-dept { border-color: var(--blue-line); color: var(--blue-text); }
.chip.is-ok[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--page); }
.chip-x { font-size: 15px; line-height: 1; }
.tasks { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tasks li + li { border-top: 1px solid #202024; }
.task { position: relative; width: 100%; text-align: left; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto auto; align-items: center; gap: 6px 16px; background: none; border: 0; padding: 13px 18px; color: var(--text); }
.task:hover { background: #18181B; }
.task.is-selected { background: #1A1A1E; box-shadow: inset 3px 0 0 var(--red); }
.task-thumb { width: 40px; height: 50px; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.task-thumb.is-none { background: var(--raise); }
.task-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.task-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.task-title { font-weight: 600; font-size: 14.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.task-meta { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-pill { justify-self: start; min-width: 92px; text-align: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.task.is-running .task-pill { border-color: var(--blue-line); color: var(--blue-text); background: var(--blue-wash); }
.task.is-review .task-pill, .task.is-waiting .task-pill { border-color: #5C1420; color: var(--red-text); background: var(--red-wash); }
.task.is-approved .task-pill { border-color: var(--blue); color: var(--page); background: var(--blue); }
.task.is-rejected .task-pill { border-color: #5C1420; color: var(--red-text); }
.task.is-completed .task-pill { color: var(--muted); }
.task.is-queued .task-pill, .task.is-stopped .task-pill, .task.is-error .task-pill { color: var(--faint); }
.task-cost, .task-when { color: var(--muted); font-size: 12.5px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.task-cost { min-width: 46px; font-family: var(--mono); font-size: 12px; }
.task-when { min-width: 92px; }
.task-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.task-bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width 0.9s cubic-bezier(.2,.7,.2,1); }
.empty { color: var(--soft); max-width: 52ch; margin: 8px 0 0; }
.empty strong { display: block; font-size: 18px; color: var(--text); margin-bottom: 6px; }

/* ---------- the details pane */
.pane { position: sticky; top: calc(var(--bar-h) + 18px); max-height: calc(100vh - var(--bar-h) - 36px); min-height: 420px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); display: flex; flex-direction: column; overflow: hidden; }
.pane-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 0; }
.pane-title { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.live-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--blue-line); color: var(--blue-text); border-radius: 999px; padding: 3px 10px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.live-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: breathe 1.6s ease-in-out infinite; }
.live-pill.is-off { border-color: var(--warn-line); color: var(--warn-text); }
.pane-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 20px 24px; scrollbar-color: var(--line-2) transparent; }
.pane-foot { flex: none; border-top: 1px solid var(--line); padding: 12px 20px 16px; display: grid; gap: 8px; background: var(--raise); }
.pane h2 { font-size: 22px; line-height: 1.2; margin: 0 0 6px; font-weight: 800; letter-spacing: -0.01em; }
.pane h3 { font-size: 13px; font-weight: 700; color: var(--muted); margin: 22px 0 8px; letter-spacing: 0.02em; }
.back { background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.back:hover { color: var(--text); }
.lede { color: var(--soft); margin: 0 0 4px; max-width: 60ch; }
.quiet { color: var(--muted); font-size: 13.5px; margin: 0; }
.pane-body > .quiet + .files, .pane-body > .lede + .files { margin-top: 14px; }
.pane-body > .files + .quiet { margin-top: 14px; }
.pane-body > .lede + .quiet { margin-top: 8px; }
.pane-body > .lede + .quick, .pane-body > .status + .quick, .pane-body > .quiet + .quick { margin-top: 14px; }
.status { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--soft); margin: 2px 0 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.is-running .dot { background: var(--blue); animation: breathe 1.6s ease-in-out infinite; }
.is-completed .dot, .is-approved .dot { background: var(--blue); }
.is-review .dot, .is-waiting .dot, .is-rejected .dot { background: var(--red); }
.is-queued .dot { background: var(--warn); }
.alert { border-left: 3px solid var(--warn); background: var(--warn-wash); padding: 9px 12px; border-radius: 0 8px 8px 0; color: var(--warn-text); font-size: 14px; margin: 12px 0 0; }
.cost-line { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.approved-note { color: var(--blue-text); font-weight: 700; font-size: 14px; align-self: center; }

/* the team, when nothing is chosen */
.team-dept { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.team-dept.is-live { border-color: var(--blue-line); }
.team-dept-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 14px; min-height: 44px; text-align: left; color: var(--text); }
.team-dept-head:hover { background: #18181B; }
.team-dept-name { font-weight: 700; }
.team-dept-n { font-size: 12px; font-family: var(--mono); color: var(--faint); }
.team-dept.is-live .team-dept-n { color: var(--blue-text); }
.team-desks { list-style: none; margin: 0; padding: 0 6px 6px; }
.team-desk { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; border-radius: 10px; padding: 6px 8px; text-align: left; color: var(--text); }
.team-desk:hover { background: #18181B; }
.team-av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #202024; color: var(--faint); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.team-desk.is-working .team-av { background: var(--red-btn); color: #fff; box-shadow: 0 0 0 3px rgba(108, 182, 255, 0.35); }
.team-desk-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.team-desk-name { font-size: 14px; font-weight: 600; color: var(--soft); }
.team-desk.is-working .team-desk-name { color: var(--text); }
.team-desk-state { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-desk.is-working .team-desk-state { color: var(--blue-text); }
.team-docs { margin-top: 16px; }

/* a job */
.steps { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-2); }
.step { position: relative; padding: 0 0 14px 16px; }
.step:last-child { padding-bottom: 2px; }
.step::before { content: ""; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel); border: 2px solid var(--faint); }
.step.is-working::before { border-color: var(--blue); background: var(--blue); animation: breathe 1.6s ease-in-out infinite; }
.step.is-done::before { border-color: var(--blue-text); background: var(--blue-text); }
.step.is-blocked::before, .step.is-stopped::before { border-color: var(--warn); }
.step-desk { font-weight: 700; }
.step-desk button { background: none; border: 0; padding: 0; font-weight: inherit; }
.step-desk button:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.step-label { color: var(--soft); font-size: 14px; }
.step-note { color: var(--muted); font-size: 13px; }
.step details { margin-top: 4px; }
.step summary { color: var(--muted); font-size: 13px; cursor: pointer; }
.step summary:hover { color: var(--text); }
.step .report { margin: 6px 0 0; max-height: 300px; overflow: auto; border-left: 2px solid var(--line-2); padding-left: 10px; scrollbar-color: var(--line-2) transparent; }
.pane .step .report .md { font-size: 13.5px; color: var(--soft); }
.verdict { display: inline-flex; align-items: baseline; gap: 8px; border: 1.5px solid currentColor; border-radius: 8px; padding: 6px 12px; font-weight: 700; margin-top: 14px; background: var(--panel); }
.verdict small { font-weight: 500; font-size: 12.5px; opacity: 0.85; }
.verdict.v-ready { color: var(--blue-text); }
.verdict.v-fixes { color: var(--warn-text); }
.verdict.v-not { color: var(--red-text); }
.rejection { border: 1px solid #4A1A22; border-left-width: 3px; border-radius: 10px; padding: 10px 12px; margin-top: 14px; background: rgba(251, 27, 57, 0.05); }
.rejection.is-yours { border-color: var(--warn-line); background: var(--warn-wash); }
.rejection h4 { margin: 0 0 6px; font-size: 12.5px; color: var(--red-text); font-weight: 700; }
.rejection.is-yours h4 { color: var(--warn-text); }
.rejection ol { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--soft); }
.rejection ol li + li { margin-top: 3px; }
.rejection .after { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.job-pics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.job-pic { width: 84px; height: 105px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.job-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.job-pic:hover { border-color: var(--muted); }
.files { list-style: none; margin: 0; padding: 0; }
.file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 9px 0; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file:hover .file-name { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.file-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.file-gaps { color: var(--red-text); font-weight: 700; }
.turn { margin: 18px 0 0; }
.turn.first { margin-top: 14px; }
.turn-who { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.turn.you .turn-text { background: var(--raise); border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; padding: 9px 12px; white-space: pre-wrap; color: var(--soft); max-height: 190px; overflow: auto; }
.live { color: var(--soft); border-left: 2px solid var(--blue); padding-left: 12px; white-space: pre-wrap; font-size: 14px; margin-top: 16px; }
.denied { color: var(--warn-text); font-size: 13.5px; margin: 12px 0 0; }
.gate { border: 1px solid var(--warn-line); background: var(--warn-wash); border-radius: 10px; padding: 10px 12px; margin: 14px 0 0; display: grid; gap: 9px; }
.gate p { margin: 0; color: var(--warn-text); font-size: 14px; }
.gate .linkish { color: #fff; }
.gate .ghost { border-color: #8A6F2B; color: #fff; background: none; }
.reply-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.reply-row textarea { min-height: 52px; }
.btn { background: var(--text); color: var(--page); border: 0; border-radius: 10px; padding: 0 16px; font-weight: 700; min-height: 44px; }
.btn:hover { background: #FFFFFF; }
.btn:disabled { background: #2B2B2B; color: #777; }
.ghost { background: var(--panel); border: 1px solid var(--line-2); color: var(--soft); border-radius: 999px; padding: 6px 14px; min-height: 36px; font-size: 13.5px; font-weight: 600; }
.ghost:hover { border-color: var(--muted); color: var(--text); }
a.ghost { display: inline-flex; align-items: center; text-decoration: none; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.quick.take { margin: 10px 0 4px; }
.pane-body p.where { margin: 10px 0 0; font-size: 13px; line-height: 1.45; }
.linkish { background: none; border: 0; padding: 0; color: var(--soft); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.linkish:hover { color: var(--text); text-decoration-color: var(--red); }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--soft); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.dept-agents { list-style: none; margin: 0; padding: 0; }
.dept-agent { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 9px 0; }
.dept-agent .linkish { font-weight: 600; text-decoration: none; text-align: left; }
.dept-agent .linkish:hover { text-decoration: underline; }
.dept-agent small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.dept-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 0; }
.dept-numbers > div { background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; min-width: 0; }
.dept-numbers b { display: block; font-family: var(--mono); font-weight: 600; font-size: 20px; line-height: 1.1; }
.dept-numbers span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.client-status { font-weight: 700; color: var(--soft); }
.client-status.is-active { color: var(--blue-text); }
.client-status.is-onboarding { color: var(--warn-text); }
.client-status.is-paused, .client-status.is-ended { color: var(--muted); }
.pane-body > .client-add { margin-top: 12px; }

/* ---------- the content calendar: a board like monday.com, or a month */
.page-calendar { display: flex; flex-direction: column; gap: 18px; }
.cal-group { --gc: #C4C4C4; }
.cal-group[data-c="passed"], .cal-strip[data-c="passed"] { --gc: #E2445C; }
.cal-group[data-c="held"], .cal-strip[data-c="held"] { --gc: #7E7E8F; }
.cal-group[data-c="unscheduled"], .cal-strip[data-c="unscheduled"] { --gc: #A9A9B3; }
.cal-group[data-c="this"], .cal-strip[data-c="this"] { --gc: #579BFC; }
.cal-group[data-c="next"], .cal-strip[data-c="next"] { --gc: #A25DDC; }
.cal-group[data-c="later"], .cal-strip[data-c="later"] { --gc: #FDAB3D; }
.cal-group[data-c="posted"], .cal-strip[data-c="posted"] { --gc: #00C875; }
.cal-ghead { display: flex; align-items: baseline; gap: 10px; background: none; border: 0; padding: 4px 0 8px; color: var(--gc); text-align: left; }
.cal-caret { width: 14px; font-size: 13px; }
.cal-gname { font-size: 17px; font-weight: 700; }
.cal-gcount { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.cal-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.cal-row { display: grid; grid-template-columns: 6px minmax(280px, 3fr) minmax(140px, 1fr) 64px minmax(110px, 1fr) minmax(70px, 0.7fr) minmax(80px, 0.8fr) minmax(150px, 1fr) 76px; align-items: stretch; border-top: 1px solid var(--line); min-height: 64px; }
.cal-row:first-child { border-top: 0; }
.cal-thead { min-height: 38px; background: var(--raise); }
.cal-thead .cal-cell { font-size: 12px; font-weight: 600; color: var(--muted); justify-content: center; }
.cal-strip { background: var(--gc); }
.cal-cell { display: flex; align-items: center; justify-content: center; padding: 8px 10px; border-left: 1px solid var(--line); font-size: 13.5px; min-width: 0; }
.cal-muted { color: var(--muted); }
.cal-post { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: none; border: 0; color: var(--text); text-align: left; min-width: 0; }
.cal-post:hover .cal-title { text-decoration: underline; }
.cal-thumb { position: relative; flex: none; width: 46px; height: 46px; border-radius: 8px; overflow: hidden; background: var(--raise); }
.cal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cal-n { position: absolute; right: 2px; bottom: 2px; background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 10px; border-radius: 4px; padding: 0 4px; }
.cal-ttl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-title { font-size: 14px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-row.is-story .cal-title { font-weight: 500; color: var(--soft); }
.cal-thumb.is-empty { display: grid; place-items: center; border: 1px dashed var(--line-2); background: transparent; color: var(--muted); font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; text-align: center; line-height: 1.1; padding: 2px; }
.cal-row.is-story .cal-thumb.is-empty { border-radius: 50%; }
.cal-ver { color: var(--soft); font-size: 13px; }
.cal-ver-sel, .cal-date input { background: var(--raise); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 13px; color-scheme: dark; max-width: 100%; }
.cal-date { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cal-sugg { font-size: 10.5px; color: #8EC5FF; font-family: var(--mono); }
.cal-st-wrap { position: relative; width: 100%; height: 100%; display: flex; }
.cal-st { flex: 1; border: 0; border-radius: 0; color: #fff; font-weight: 600; font-size: 13px; padding: 8px 6px; min-height: 40px; }
.cal-cell:has(.cal-st-wrap) { padding: 0; }
.cal-st.is-planned { background: #5F5F6B; }
.cal-st.is-progress { background: #A25DDC; }
.cal-st.is-ready { background: #FDAB3D; }
.cal-st:disabled { opacity: 0.4; cursor: not-allowed; }
.cal-st.is-scheduled { background: #579BFC; }
.cal-st.is-posted { background: #00C875; }
.cal-st:hover { filter: brightness(1.08); }
.cal-menu { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; display: flex; flex-direction: column; gap: 4px; background: var(--raise); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
.cal-menu .cal-st { border-radius: 6px; min-height: 34px; }
.cal-none { margin: 0; padding: 14px 18px; color: var(--muted); font-size: 13.5px; }
.cal-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.62); display: grid; place-items: center; padding: 20px; }
.cal-modal { width: min(1080px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; }
.cal-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.cal-modal-head h3 { margin: 2px 0 0; font-size: 19px; }
.cal-kicker { margin: 0; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.cal-x { font-size: 22px; line-height: 1; }
.cal-modal-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; padding: 18px 20px 22px; }
.cal-pics { display: flex; flex-direction: column; gap: 12px; }
.cal-pics.is-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cal-pics figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cal-pics img { width: 100%; border-radius: 10px; display: block; background: var(--raise); }
.cal-dl { align-self: flex-start; text-decoration: none; }
.cal-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cal-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cal-nopic { display: flex; flex-direction: column; gap: 6px; padding: 26px 22px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); font-size: 13.5px; }
.cal-nopic strong { color: var(--text); font-size: 15px; }
.cal-dl-list { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 8px 14px; margin: 0; font-size: 13px; }
.cal-dl-list dt { color: var(--muted); font-weight: 600; }
.cal-dl-list dd { margin: 0; color: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.cal-cta { margin: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.cal-cta span { font-size: 12px; color: var(--muted); font-weight: 600; }
.cal-tags { margin: 0; font-size: 12.5px; color: #8EC5FF; overflow-wrap: anywhere; }
.cal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cal-tools .chips-row { margin: 0; }
.cal-side h4 { margin: 8px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.cal-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cal-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.cal-fields .cal-st-wrap { height: auto; }
.cal-fields .cal-st { border-radius: 8px; }
.cal-fields .cal-date { align-items: stretch; }
.cal-caption { width: 100%; background: var(--raise); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; }
.cal-alt summary { cursor: pointer; color: var(--soft); font-size: 13.5px; }
.cal-alt p { white-space: pre-wrap; font-size: 13.5px; color: var(--soft); }
.cal-mhead { display: flex; align-items: center; gap: 10px; }
.cal-mhead h3 { margin: 0 8px; font-size: 18px; min-width: 170px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.cal-wd { padding: 8px 10px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--raise); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 118px; padding: 6px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cal-day:nth-child(7n + 1) { border-left: 0; }
.cal-day.is-out { background: rgba(255, 255, 255, 0.015); }
.cal-day.is-out .cal-dnum { opacity: 0.4; }
.cal-day.is-today .cal-dnum { background: var(--red-btn); color: #fff; border-radius: 999px; padding: 0 7px; }
.cal-day.is-drop { outline: 2px dashed #579BFC; outline-offset: -3px; }
.cal-dnum { align-self: flex-start; font-size: 12px; font-family: var(--mono); color: var(--soft); }
.cal-chip { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; background: var(--raise); border: 0; border-left: 4px solid #FDAB3D; border-radius: 6px; padding: 4px 6px; color: var(--text); font-size: 12px; text-align: left; cursor: grab; }
.cal-chip.is-planned { border-left-color: #6E6E7A; }
.cal-chip.is-progress { border-left-color: #A25DDC; }
.cal-chip.is-scheduled { border-left-color: #579BFC; }
.cal-chip.is-story { background: transparent; border: 1px solid var(--line-2); border-left-width: 4px; }
.cal-chip.is-held { opacity: 0.6; }
.cal-chip b { font-size: 10.5px; color: var(--muted); font-weight: 600; flex: none; }
.cal-chip.is-posted { border-left-color: #00C875; opacity: 0.75; }
.cal-chip img { width: 26px; height: 26px; border-radius: 4px; object-fit: cover; flex: none; }
.cal-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-tray h4 { margin: 4px 0 10px; font-size: 14px; color: var(--soft); }
.cal-tray-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-tray-list .cal-chip { width: auto; max-width: 260px; }
@media (max-width: 980px) {
  .cal-table { overflow-x: auto; }
  .cal-row { min-width: 1060px; }
  .cal-modal-body { grid-template-columns: 1fr; }
  .lib-modal-body { grid-template-columns: 1fr; }
  .cal-day { min-height: 84px; }
  .cal-chip span { display: none; }
}

/* ---------- the Library */
.page-library { display: flex; flex-direction: column; gap: 16px; }
.lib-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.lib-head h2 { margin: 0 0 2px; font-size: 24px; font-weight: 800; }
.lib-head .chips-row { margin: 0; }
.lib-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.lib-card { width: 100%; display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; padding: 0 0 12px; color: var(--text); transition: border-color 0.15s ease, translate 0.15s ease; }
.lib-card:hover { border-color: var(--line-2); translate: 0 -2px; }
.lib-pic { aspect-ratio: 4 / 5; background: #fff; display: grid; place-items: center; overflow: hidden; margin-bottom: 8px; }
.lib-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-pic.is-doc { background: var(--raise); }
.lib-ext { font-size: 22px; font-weight: 600; color: var(--faint); letter-spacing: 0.08em; }
.lib-name, .lib-meta, .lib-status { padding: 0 12px; }
.lib-name { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lib-meta { font-size: 12.5px; color: var(--muted); text-transform: capitalize; }
.lib-status { font-size: 12.5px; font-weight: 700; color: var(--faint); }
.lib-status.is-ok { color: var(--blue-text); }
.lib-more { display: flex; justify-content: center; }
/* the Library as one card per piece of work */
.lib-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.lib-tools .chips-row { margin: 0; }
.lib-tab.is-waiting[aria-pressed="false"] b { color: var(--red-text); }
.lib-type { background: var(--raise); color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 14px; min-height: 34px; font: inherit; font-size: 12.5px; font-weight: 600; color-scheme: dark; }
.lib-msg { margin: 0; padding: 10px 14px; border: 1px solid var(--blue-line); background: var(--blue-wash); color: var(--blue-text); border-radius: 10px; font-size: 13.5px; }
.lib-jobs { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; align-items: stretch; }
.lib-job { height: 100%; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lib-job.is-waiting, .lib-job.is-failed, .lib-job.is-question { border-color: var(--line-2); }
.lib-pics { display: grid; gap: 2px; padding: 0; border: 0; background: var(--line); width: 100%; height: 190px; flex: none; cursor: pointer; position: relative; overflow: hidden; }
.lib-pics.n-1 { grid-template-columns: 1fr; } .lib-pics.n-2 { grid-template-columns: 1fr 1fr; } .lib-pics.n-3 { grid-template-columns: 1fr 1fr 1fr; }
.lib-v { position: relative; height: 190px; background: #1B1B1F; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lib-v img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lib-vlabel { position: absolute; left: 6px; bottom: 6px; background: rgba(12, 12, 14, 0.82); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.lib-vlabel:empty { display: none; }
.lib-vmore { position: absolute; right: 6px; top: 6px; background: rgba(12, 12, 14, 0.82); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.lib-pics:hover .lib-v img { filter: brightness(1.04); }
.lib-pics.is-doc { background: var(--raise); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px 16px; }
.lib-docname { color: var(--muted); font-size: 12.5px; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lib-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 10px 11px 11px; }
.lib-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.lib-title { background: none; border: 0; padding: 0; color: var(--text); text-align: left; font: inherit; font-weight: 700; font-size: 13.5px; line-height: 1.3; min-height: 2.6em; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lib-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.lib-body .lib-meta { padding: 0; margin-top: -4px; }
.lib-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 11.5px; }
.lib-state { font-weight: 700; color: var(--faint); }
.lib-state::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.lib-state.is-waiting { color: var(--warn-text); }
.lib-state.is-question, .lib-state.is-failed { color: var(--red-text); }
.lib-state.is-approved { color: var(--blue-text); }
.lib-state.is-rework, .lib-state.is-working { color: #C9A7F0; }
.lib-acts { margin-top: 2px; align-items: center; }
.lib-acts { gap: 6px; }
.lib-acts .primary-btn, .lib-acts .ghost-btn, .lib-acts .warn-btn { min-height: 34px; font-size: 13px; padding: 0 10px; border-radius: 8px; }
.lib-acts .primary-btn { flex: 1 1 70px; }
.lib-posting { font-size: 12px; color: var(--muted); flex: 1 1 auto; }
.lib-posting.is-busy { color: #C9A7F0; }
.lib-pick { display: grid; gap: 8px; background: var(--raise); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; }
.lib-pick-q { margin: 0; font-weight: 700; font-size: 12.5px; }
.lib-pick-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)); gap: 6px; }
.lib-pick-v { display: flex; flex-direction: column; gap: 4px; background: var(--deep); border: 1px solid var(--line-2); border-radius: 8px; padding: 4px; color: var(--text); font: inherit; font-size: 10.5px; line-height: 1.2; font-weight: 700; cursor: pointer; }
.lib-pick-v img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 6px; background: #fff; }
.lib-pick-v:hover { border-color: var(--red-btn); }
.lib-pick .linkish { justify-self: start; }
.lib-which { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--warn-text); }
.lib-which .chip { min-height: 30px; padding: 4px 10px; }
.lib-which-note { color: var(--muted); }
.lib-more-files { align-self: flex-start; font-size: 11.5px; }
.lib-more-files.is-none { visibility: hidden; }
.lib-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lib-files li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.lib-files .mono { color: var(--faint); font-size: 11px; }
.lib-files .linkish { text-align: left; }
.lib-overlay { z-index: 15; }
.lib-modal-body { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
.lib-big { display: grid; gap: 14px; align-content: start; }
.lib-big.is-set { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.lib-big figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.lib-big figcaption { font-weight: 700; font-size: 13px; color: var(--muted); }
.lib-big-pics { display: grid; gap: 8px; }
.lib-big-pics.is-slides { grid-template-columns: 1fr 1fr; }
.lib-big-pic { padding: 0; border: 0; background: #fff; border-radius: 10px; overflow: hidden; cursor: zoom-in; display: block; }
.lib-big-pic img { width: 100%; display: block; }
.lib-side { display: flex; flex-direction: column; gap: 14px; align-content: start; }
.lib-side-h { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.lib-said { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--soft); }
.lib-fix { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.5; color: var(--soft); display: grid; gap: 4px; }
.lib-work summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.lib-docs { display: flex; flex-direction: column; gap: 6px; }
.lib-side .linkish { align-self: flex-start; }

/* ---------- My Team: the map */
.tm { display: flex; flex-direction: column; gap: 14px; }
.tm-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; }
.tm-titles { display: flex; flex-direction: column; gap: 3px; }
.tm-title { margin: 0; font-size: 24px; font-weight: 800; }
.tm-summary { margin: 0; font-size: 12.5px; color: var(--muted); }
.tm-now { margin: 6px 0 0; font-size: 12.5px; color: var(--text); display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.tm-now[hidden] { display: none; }
.tm-now b { color: #8EC5FF; font-weight: 600; margin-right: 4px; }
.tm-now-who { color: #FFFFFF; font-weight: 600; }
.tm-now-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-right: 6px; animation: pulse 1.2s ease-in-out infinite; }
.tm-pause { margin-left: auto; border: 1px solid var(--line-2); background: transparent; color: var(--soft); border-radius: 999px; padding: 0 15px; min-height: 40px; font-size: 13px; font-weight: 600; }
.tm-pause:hover { color: var(--text); border-color: var(--muted); }
.tm-wrap { position: relative; width: 100%; overflow: hidden; border-radius: 24px; background-color: #0E0E10; background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px); background-size: 24px 24px; }
.tm-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.tm-wrap .tm-stage { left: 50%; translate: -50% 0; transform-origin: 50% 0; }
.tm-wrap.is-scroll { overflow-x: auto; }
.tm-wrap.is-scroll .tm-stage { left: 0; translate: none; transform-origin: 0 0; }
.tm-radar, .tm-orbit, .tm-inner { position: absolute; border-radius: 50%; }
.tm-radar { overflow: hidden; }
.tm-sweep { position: absolute; border-radius: 50%; background: conic-gradient(from 0deg, rgba(108, 182, 255, 0.07), rgba(108, 182, 255, 0) 60deg, rgba(108, 182, 255, 0) 360deg); animation: spin 14s linear infinite; }
.tm-orbit { border: 1px dashed rgba(255, 255, 255, 0.09); }
.tm-inner { border: 1px solid rgba(255, 255, 255, 0.05); }
.tm-sat { position: absolute; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%; background: #A9D4FF; box-shadow: 0 0 10px var(--blue); offset-rotate: 0deg; animation: travel 46s linear infinite; }
.tm-links { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.tm-spoke { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 1.5; transition: opacity 0.35s ease; }
.tm-flow { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 12; opacity: 0; transition: opacity 0.4s ease; }
.tm-flow.is-on { opacity: 1; animation: march 1.2s linear infinite; }
.tm-flow.is-in { stroke: #FF5A6E; }
.tm-flow.is-out { stroke: var(--blue); }
.tm-spoke.is-dim, .tm-flow.is-dim { opacity: 0.15; }
.tm-flow.is-on.is-dim { opacity: 0.25; }
.tm-trail { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; stroke-dasharray: 3 7; animation: fade 1.7s ease-out forwards; }
.tm-packets { position: absolute; left: 0; top: 0; width: 0; height: 0; transition: opacity 0.35s ease; }
.tm-packets.is-dim { opacity: 0.3; }
.tm-pkt { position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; offset-rotate: 0deg; animation: packet 3.2s ease-in-out infinite both; }
.tm-pkt.is-in { background: #FF5A6E; box-shadow: 0 0 12px #FF5A6E; }
.tm-pkt.is-out { background: var(--blue); box-shadow: 0 0 12px var(--blue); animation-duration: 2.8s; }
.tm-fly { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 14px var(--blue), 0 0 4px #fff; offset-rotate: 0deg; animation: fly 1.5s cubic-bezier(.45,.05,.35,1) forwards; }
.tm-fly.is-back { box-shadow: 0 0 14px #FF5A6E, 0 0 4px #fff; }

.tm-you { position: absolute; width: 170px; margin: -54px 0 0 -85px; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; padding: 0; color: var(--text); }
.tm-you-ring, .tm-ripple, .tm-you-core { position: absolute; left: 50%; border-radius: 50%; }
.tm-you-core { position: relative; left: auto; width: 108px; height: 108px; display: grid; place-items: center; background: #1A0D10; border: 2px solid var(--red); font-size: 20px; font-weight: 600; letter-spacing: 1px; transition: transform 0.2s ease; }
.tm-you:hover .tm-you-core { transform: scale(1.05); }
.tm-you.is-selected .tm-you-core { border-color: #fff; }
.tm-you-ring { top: -8px; width: 124px; height: 124px; margin-left: -62px; border: 1px dashed rgba(255, 255, 255, 0.18); animation: spin 22s linear infinite; }
.tm-ripple { top: 0; width: 108px; height: 108px; margin-left: -54px; border: 2px solid var(--red); opacity: 0; }
.tm-you.is-waiting .tm-ripple { animation: ripple 2.6s ease-out infinite; }
.tm-you.is-waiting .tm-ripple-2 { animation-delay: 1.3s; }
.tm-you-state { font-size: 12px; font-weight: 600; color: var(--blue-text); }
.tm-you.is-waiting .tm-you-state { color: var(--red-text); }

.tm-dept { position: absolute; translate: -50% -50%; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border: 1px solid var(--line); background: rgba(16, 16, 18, 0.9); color: #E4E4E7; border-radius: 999px; padding: 0 14px; min-height: 36px; font-size: 11.5px; font-weight: 600; letter-spacing: 1px; transition: opacity 0.35s ease, border-color 0.2s ease; }
.tm-dept:hover { border-color: var(--muted); }
.tm-dept.is-selected { border-color: var(--red); background: var(--red-wash); }
.tm-dept-dot { width: 7px; height: 7px; border-radius: 50%; background: #4A4A50; }
.tm-dept.is-working .tm-dept-dot { background: var(--blue); animation: breathe 1.6s ease-in-out infinite; }
.tm-dept.is-waiting .tm-dept-dot { background: var(--red); }
.tm-dept-count { color: var(--faint); letter-spacing: 0; }
.tm-dept.is-working .tm-dept-count { color: var(--blue-text); }
.tm-dept.is-dim { opacity: 0.35; }

.tm-node { position: absolute; width: 124px; margin: -28px 0 0 -62px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--text); transition: opacity 0.35s ease; }
.tm-node.is-dim { opacity: 0.28; }
.tm-av { position: relative; width: 56px; height: 56px; transition: transform 0.2s ease; }
.tm-node:hover .tm-av { transform: scale(1.07); }
.tm-face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: #151518; border: 2px solid var(--line-2); color: var(--soft); font-size: 14px; font-weight: 600; }
.tm-glow, .tm-spin { position: absolute; inset: -6px; border-radius: 50%; opacity: 0; }
.tm-node.is-working .tm-face { background: var(--blue-wash); border-color: var(--blue); color: #CFE6FF; }
.tm-node.is-working .tm-glow { opacity: 1; box-shadow: 0 0 24px rgba(108, 182, 255, 0.55); animation: glow 2.6s ease-in-out infinite; }
.tm-node.is-working .tm-spin { opacity: 1; border: 2px dashed var(--blue); animation: spin 7s linear infinite; }
.tm-node.is-oncall .tm-spin { opacity: 1; border: 1.5px dashed var(--faint); animation: spin 22s linear infinite; }
.tm-node.is-waiting .tm-face { border-color: #FF5A6E; }
.tm-node.is-blocked .tm-face { border-color: var(--warn); }
.tm-node.is-selected .tm-face { border-color: var(--red); background: var(--red-wash); }
.tm-node.is-filed .tm-av::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #fff; animation: ripple 1.2s ease-out 1; }
.tm-badge { position: absolute; right: -7px; top: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red-btn); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; border: 2px solid #0E0E10; }
.tm-badge:empty { display: none; }
.tm-name { font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center; }
.tm-state { font-size: 11px; font-weight: 500; color: var(--faint); }
.tm-node.is-working .tm-state { color: var(--blue-text); }
.tm-node.is-working .tm-state::after { content: "_"; animation: blink 1s steps(1) infinite; }
.tm-node.is-waiting:not(.is-working) .tm-state { color: var(--red-text); }
.tm-node.is-blocked .tm-state { color: var(--warn-text); }

.tm-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; color: var(--muted); padding: 0 4px; }
.tm-lg { display: inline-flex; align-items: center; gap: 8px; }
.tm-lg i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.tm-lg .lg-work { border: 2px dashed var(--blue); }
.tm-lg .lg-idle { border: 2px solid var(--line-2); }
.tm-lg .lg-wait { background: var(--red-btn); }
.tm-lg .lg-call { border: 1.5px dashed var(--faint); }
.tm-lg .lg-out { width: 8px; height: 8px; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.tm-lg .lg-in { width: 8px; height: 8px; background: #FF5A6E; box-shadow: 0 0 8px #FF5A6E; }
.tm-lg .lg-fly { width: 9px; height: 9px; background: #fff; box-shadow: 0 0 8px var(--blue); }

.tm-console { background: var(--deep); border: 1px solid #1F1F23; border-radius: 16px; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.55; }
.tm-cons-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.tm-prompt { display: flex; gap: 10px; min-width: 0; }
.tm-path { color: var(--blue); }
.tm-dollar { color: var(--faint); }
.tm-cmd { color: var(--text); }
.tm-cons-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-act { border: 1px solid var(--line-2); background: transparent; color: #E4E4E7; border-radius: 8px; padding: 0 12px; min-height: 36px; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.tm-act:hover { border-color: var(--muted); }
.tm-act.is-primary { background: var(--red-btn); border-color: var(--red-btn); color: #fff; }
.tm-cons-body { display: flex; flex-direction: column; gap: 2px; }
.tm-line { display: grid; grid-template-columns: 64px minmax(120px, 230px) minmax(0, 1fr); gap: 2px 16px; color: var(--soft); }
.tm-time { color: var(--faint); }
.tm-who { color: var(--blue-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-text { min-width: 0; overflow-wrap: anywhere; }
.tm-line.is-work .tm-text { color: #CFE6FF; }
.tm-line.is-wait .tm-text, .tm-line.is-wait .tm-who { color: var(--red-text); }
.tm-line.is-bad .tm-text { color: var(--red-text); }
.tm-line.is-done .tm-text { color: var(--muted); }
.tm-line.is-head .tm-text, .tm-line.is-head .tm-who { color: var(--text); }
.tm-line.is-typing .tm-text { animation: typein 1.2s steps(36) both; }
.tm-cursor { color: var(--blue); animation: blink 1s steps(1) infinite; }
.tm.is-paused *, .tm.is-paused *::before, .tm.is-paused *::after { animation-play-state: paused !important; }

/* ---------- motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes march { to { stroke-dashoffset: -28; } }
@keyframes packet { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes fly { 0% { offset-distance: 0%; opacity: 0; transform: scale(0.6); } 15% { opacity: 1; transform: scale(1); } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; transform: scale(0.6); } }
@keyframes fade { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes glow { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes pulse { 50% { opacity: 0.25; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes typein { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- the sign-in page, when the office has a password */
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.login { width: min(380px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px 30px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
.login-logo { height: 56px; width: auto; }
.login h1 { margin: 4px 0 0; font-size: 20px; font-weight: 800; }
.login-lede { margin: 0; color: var(--muted); font-size: 14px; }
.login form { display: grid; gap: 10px; width: 100%; margin-top: 8px; }
.login input { width: 100%; background: var(--raise); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; font-size: 15px; color: var(--text); }
.login input:focus { outline: none; border-color: var(--blue-line); }
.login .send { width: 100%; }
.login .msg { margin: 0; color: var(--warn-text); font-size: 14px; }

/* ---------- rendered text (team replies in the pane, files on the sheet) */
.md { overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md p { margin: 0.6em 0; max-width: 72ch; }
.md h1, .md h2, .md h3, .md h4 { letter-spacing: -0.01em; line-height: 1.2; margin: 1.3em 0 0.45em; color: inherit; font-weight: 800; }
.md h1 { font-size: 1.5em; } .md h2 { font-size: 1.25em; } .md h3 { font-size: 1.08em; } .md h4 { font-size: 1em; }
.md ul, .md ol { margin: 0.5em 0; padding-left: 1.3em; max-width: 72ch; }
.md li { margin: 0.22em 0; }
.md li.in1 { margin-left: 1.3em; } .md li.in2 { margin-left: 2.6em; }
.md code { font-family: var(--mono); font-size: 0.88em; background: rgba(127, 127, 127, 0.18); padding: 0.08em 0.36em; border-radius: 4px; }
.md pre { background: rgba(127, 127, 127, 0.14); padding: 11px 13px; border-radius: 8px; overflow: auto; font-size: 0.86em; line-height: 1.45; }
.md pre code { background: none; padding: 0; }
.md blockquote { margin: 0.7em 0; padding: 0.1em 0 0.1em 14px; border-left: 3px solid var(--red); opacity: 0.92; }
.md hr { border: 0; border-top: 1px solid var(--line-2); margin: 1.2em 0; }
.md a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 3px; }
.md .table-scroll { overflow-x: auto; margin: 0.8em 0; scrollbar-color: var(--line-2) transparent; padding-bottom: 4px; }
.md table { border-collapse: collapse; font-size: 0.92em; min-width: 100%; overflow-wrap: normal; word-break: normal; }
.md th, .md td { text-align: left; vertical-align: top; padding: 7px 14px 7px 0; border-bottom: 1px solid var(--line); min-width: 5.5em; max-width: 32ch; }
.md th:last-child, .md td:last-child { padding-right: 0; }
.md th { font-weight: 700; border-bottom-width: 2px; border-color: var(--line-2); white-space: nowrap; }
.md mark.gap { background: none; color: var(--red-text); border: 1px solid currentColor; border-radius: 5px; padding: 0 5px; font-weight: 600; font-size: 0.93em; }
.pane .md { font-size: 14.5px; color: var(--text); }

/* ---------- the sheet: a file, read on paper */
.sheet-wrap { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.72); display: grid; place-items: center; padding: 28px; z-index: 20; }
.sheet { background: #FAF9F6; color: #151515; width: min(900px, 100%); max-height: 100%; border-radius: 12px; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.sheet-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 22px 30px 14px; border-bottom: 1px solid #DEDAD2; flex-wrap: wrap; }
.sheet-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.sheet-path { margin: 4px 0 0; color: #6B665E; font-size: 13px; overflow-wrap: anywhere; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ghost-dark { background: none; border: 1px solid #C9C4BA; color: #2A2826; border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 600; }
.ghost-dark:hover { border-color: #151515; }
a.ghost-dark { display: inline-block; text-decoration: none; line-height: 1.3; }
.sheet-body { padding: 20px 30px 34px; overflow-y: auto; font-size: 15.5px; line-height: 1.55; }
.sheet .md { color: #151515; }
.sheet .md mark.gap { color: var(--red-btn); }
.sheet .md th, .sheet .md td { border-color: #DEDAD2; }
.sheet-body img, .sheet-body video { max-width: 100%; max-height: 72vh; display: block; margin: 0 auto; border-radius: 4px; }
.sheet-body img.design { display: block; max-width: 100%; height: auto; margin: 0 auto; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sheet-body img.design.page { max-height: none; margin-bottom: 14px; }
.sheet-body iframe.pdf { display: block; width: 100%; height: 72vh; border: 0; background: #fff; }

/* ---------- handing files to the team */
.attach { display: grid; gap: 6px; min-width: 0; }
.attach[hidden] { display: none; }
.attach-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 30px; }
.attach-btn { display: inline-flex; align-items: center; gap: 6px; }
.composer-acts .attach-btn { border-radius: 10px; min-height: 44px; padding: 0 14px; font-size: 14px; background: var(--raise); }
.attach-btn .clip { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid currentColor; font-size: 12px; line-height: 1; }
.attach-who { color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.attach-who[hidden] { display: none; }
.attach-for { font: inherit; font-size: 13px; color: var(--text); background: var(--raise); border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 8px; max-width: 240px; }
.attach-msg { color: var(--muted); font-size: 12.5px; min-width: 0; flex: 1 1 200px; }
.attach-msg.is-error { color: var(--warn-text); }
.attach-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.attach-list[hidden] { display: none; }
.attach-file { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; background: var(--raise); border: 1px solid var(--line-2); border-radius: 9px; padding: 4px 6px 4px 10px; font-size: 13px; }
.attach-file.is-logo { border-color: var(--warn); }
.attach-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; font-weight: 600; }
.attach-size { color: var(--muted); font-size: 12px; white-space: nowrap; }
.attach-logo { display: inline-flex; align-items: center; gap: 5px; color: var(--soft); font-size: 12.5px; white-space: nowrap; cursor: pointer; }
.attach-logo input { accent-color: var(--red); margin: 0; }
.attach-x { background: none; border: 0; color: var(--muted); font-size: 16px; line-height: 1; padding: 2px 5px; border-radius: 6px; }
.attach-x:hover { color: var(--text); background: var(--line); }
.pane-foot .attach-file, .pane-foot .attach-for { background: var(--page); }

/* ---------- smaller windows */
@media (max-width: 1100px) {
  .page-office { grid-template-columns: minmax(0, 1fr); }
  .pane { position: static; max-height: none; min-height: 0; }
  .pane-body { max-height: 80vh; }
}
@media (max-width: 760px) {
  main.office { padding: 14px 14px 32px; }
  .bar { padding: 8px 14px; gap: 8px 12px; }
  .brand-what { display: none; }
  .bar-right { margin-left: 0; width: 100%; }
  .bar-plan { display: none; }
  .task { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .task-cost, .task-when { display: none; }
  .tm-line { grid-template-columns: 76px minmax(0, 1fr); }
  .tm-line .tm-text { grid-column: 1 / -1; padding-left: 0; }
  .dept-numbers { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.lib-job .lib-meta { font-size: 11.5px; }
.lib-job .lib-back textarea { min-height: 72px; font-size: 13px; }
.lib-job .lib-back label { font-size: 12px; }
.lib-job .lib-files li { font-size: 12px; overflow-wrap: anywhere; }
.lib-pics.is-doc .lib-ext { font-size: 18px; }
.lib-chosen { font-size: 13px; font-weight: 700; color: var(--blue-text); padding: 8px 0; }
.lib-acts .lib-posting { flex: 1 1 100%; }
.lib-acts .lib-posting.is-busy { flex: 1 1 100%; }
.lib-acts .linkish { font-size: 12px; }
.lib-acts .ghost-btn { flex: 1 1 60px; }
