/* Layout: three columns — team & time on the left, work in the middle, Claude on the right. */
:root {
  --bg: #f3f4f1;
  --panel: #ffffff;
  --ink: #1c2321;
  --muted: #66716d;
  --line: #dde1dc;
  --accent: #1f6f5c;        /* terminal green, a nod to POS screens */
  --accent-soft: #dcefe8;
  --warn: #a8640c;
  --bad: #b3362b;
  --good: #2c7a3f;
  --bar: #1f6f5c;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;
  --r: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121615; --panel: #1a201e; --ink: #e5ebe8; --muted: #93a19b; --line: #2b3431;
    --accent: #5cc3a6; --accent-soft: #1e3a32; --warn: #e0a54a; --bad: #ef7a6e; --good: #73c58a; --bar: #5cc3a6;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); display: flex; flex-direction: column; }
h1, h2, h3, h4 { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
[hidden] { display: none !important; }

button, .ghost { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 6px 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
button:hover, .ghost:hover { border-color: var(--accent); }
button[type=submit], .primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { button[type=submit] { color: #0d1513; } }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input, select, textarea { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 6px 8px; min-width: 0; }

/* top bar */
.top { display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.mark { width: 14px; height: 14px; border-radius: 3px; background: var(--accent); box-shadow: 4px 4px 0 var(--accent-soft); }
.top h1 { font-size: 17px; letter-spacing: .01em; }
.today { color: var(--muted); font-variant-numeric: tabular-nums; }
.top-actions { margin-left: auto; display: flex; gap: 8px; }
.chat-toggle { display: none; }
.banner { background: #fff4e0; color: #6b4206; border-bottom: 1px solid #f0d8a8; padding: 10px 16px; }
@media (prefers-color-scheme: dark) { .banner { background: #3a2c12; color: #f3d9a4; border-color: #5a4419; } }

/* columns */
.shell { flex: 1; min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr) 380px; }
.side { overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; border-right: 1px solid var(--line); }
.main { overflow: auto; padding: 16px 20px; min-width: 0; }
.chat { border-left: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.panel h2, .chat-head h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; }
.panel > h2 { margin-bottom: 6px; }

/* team list */
.team, .time-team { list-style: none; margin: 0; padding: 0; }
.team button { width: 100%; border: 0; border-radius: 6px; background: none; padding: 8px; display: flex; justify-content: space-between; align-items: baseline; text-align: left; }
.team button:hover { background: var(--accent-soft); }
.team button[aria-pressed=true] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.team .n { font-family: var(--mono); font-size: 18px; font-variant-numeric: tabular-nums; }
.team li.total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.team li.total .name { font-weight: 600; }

.time-team li { padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.time-team li:last-child { border-bottom: 0; }
.time-team .who { display: flex; justify-content: space-between; align-items: baseline; }
.time-team .h { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.period { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 6px 0 4px; }
.period button { padding: 2px 10px; }
.period-label { font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }
.period-title { margin: 0 0 10px; font-weight: 600; }
.spark i.future { background: transparent; border-bottom: 1px dashed var(--line); }
.grid td.future { color: transparent; }
.spark { display: grid; grid-template-columns: repeat(var(--n, 31), 1fr); gap: 2px; height: 30px; align-items: end; margin-top: 4px; }
.spark i { display: block; background: var(--bar); border-radius: 2px 2px 0 0; min-height: 1px; }
.spark i.zero { background: var(--line); }
.spark i.weekend { opacity: .45; }

/* tabs & toolbar */
.tabs { display: flex; gap: 4px; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tabs button { border: 0; border-radius: 0; background: none; padding: 8px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected=true] { border-bottom-color: var(--accent); font-weight: 600; }
.tab-who { margin-left: auto; color: var(--muted); }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.toolbar input { flex: 1 1 220px; }

/* status overview: stage → status → tickets */
.stages { display: flex; flex-direction: column; gap: 14px; }
.stage { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stage h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--stage, var(--muted)); }
.stage-n { font-family: var(--mono); font-weight: 400; color: var(--muted); }
.stage-to { --stage: var(--muted); }
.stage-in { --stage: var(--accent); }
.stage-code { --stage: #6a5acd; }
.stage-dev { --stage: #2f7fb5; }
.stage-qa { --stage: var(--good); }
.stage-blocked { --stage: var(--bad); }
.status + .status { border-top: 1px solid var(--line); }
.status-row { width: 100%; border: 0; border-radius: 0; background: none; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto minmax(60px, 160px) 48px; align-items: center; gap: 10px; padding: 9px 14px; text-align: left; }
.status-row:hover { background: var(--accent-soft); }
.status.open > .status-row { background: var(--accent-soft); font-weight: 600; }
.chev { color: var(--muted); font-size: 12px; }
.lvl { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin-right: 8px; font-weight: 600; vertical-align: 1px; }
.tree-kids { border-top: 1px solid var(--line); }
.tree-kids > .status { margin-left: 24px; border-left: 2px solid var(--line); }
.tree-kids > .status + .status { border-top: 1px solid var(--line); }
.tree-1 > .status-row .status-name { font-weight: 600; }
.h3-actions { display: inline-flex; align-items: center; gap: 12px; }
.h3-actions button { font-weight: 400; padding: 2px 10px; font-size: 12px; }
.process-check { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pc { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.pc b { font-family: var(--mono); }
.pc.ok { border-color: var(--good); color: var(--good); }
.pc.bad { border-color: var(--bad); color: var(--bad); }
.status-name .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; padding: 6px 12px; background: var(--panel); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed=true] { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .seg button[aria-pressed=true] { color: #0d1513; } }
.status-name { overflow-wrap: anywhere; }
.crit { font-size: 11px; color: var(--bad); border: 1px solid var(--bad); border-radius: 999px; padding: 0 7px; white-space: nowrap; font-weight: 400; }
.bar { height: 6px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--stage, var(--accent)); border-radius: 3px; }
.status-n { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.status .table-wrap { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.status .tickets th { position: static; }
@media (max-width: 760px) { .status-row { grid-template-columns: 16px minmax(0, 1fr) auto 40px; } .status-row .bar { display: none; } }

/* tickets table */
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--panel); }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
.tickets tbody tr { cursor: pointer; }
.tickets tbody tr:hover { background: var(--accent-soft); }
.tickets td.key { font-family: var(--mono); white-space: nowrap; }
.tickets td.sum { min-width: 260px; }
.tickets td.st { white-space: nowrap; }
.pill-btn { cursor: pointer; background: transparent; font: inherit; font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.pill-btn:hover { border-color: var(--accent); }
.st-select { font-size: 12px; padding: 2px 4px; max-width: 260px; }
.act-cell { width: 1%; white-space: nowrap; }
.act-cell button { padding: 2px 10px; font-size: 12px; }
.comment-row td { background: var(--bg); cursor: default; }
.tr-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tr-form input[type=number] { width: 90px; }
.tr-form input[type=text] { flex: 1 1 200px; }
.tr-l { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.act-cell button + button { margin-left: 4px; }
.cr-form { display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.cr-form textarea { width: 100%; resize: vertical; }
.cr-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.cr-actions .toggle { margin-right: auto; }
.tickets td.rep { white-space: nowrap; color: var(--muted); }
.tickets td.upd { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.changes td { font-size: 13px; }
.changes td.nowrap, .changes .k { white-space: nowrap; }
.changes .k { font-family: var(--mono); }
.changes td.val { max-width: 260px; overflow-wrap: anywhere; }
.changes td:last-child { min-width: 220px; }
.block { display: block; }
.pill.src-chat { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
#view-log > p { margin: 0 0 8px; }
#log-more { margin-top: 10px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; white-space: nowrap; border: 1px solid var(--line); }
.pill.new { color: var(--muted); }
.pill.indeterminate { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.pill.blocked { background: transparent; border-color: var(--bad); color: var(--bad); }
.prio-Critical { color: var(--bad); font-weight: 600; }
.prio-High { color: var(--warn); font-weight: 600; }
.stale { color: var(--warn); }
.empty { padding: 24px; text-align: center; color: var(--muted); }

/* timesheet */
.grid td, .grid th { text-align: center; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 13px; }
.grid th:first-child, .grid td:first-child { text-align: left; font-family: var(--font); }
.grid th.we, .grid td.we { background: color-mix(in srgb, var(--line) 35%, transparent); }
.grid td.has { color: var(--ink); font-weight: 600; }
.grid td.none { color: var(--line); }
.grid td.tot { font-weight: 700; border-left: 1px solid var(--line); }
.time-log { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.day { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.day summary { padding: 8px 12px; cursor: pointer; display: flex; gap: 8px; align-items: baseline; }
.day summary b { font-weight: 600; }
.entry { display: grid; grid-template-columns: 110px 92px minmax(0, 1fr) 56px; gap: 10px; padding: 6px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.entry .k { font-family: var(--mono); }
.entry .note { display: block; color: var(--muted); }
.entry .hrs { text-align: right; font-family: var(--mono); }

/* chat */
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-log { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 100%; padding: 8px 12px; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 3px; }
@media (prefers-color-scheme: dark) { .msg.user { color: #0d1513; } }
.msg.bot { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 3px; }
.msg.hint { white-space: normal; background: var(--bg); color: var(--muted); }
.msg.hint ul { margin: 6px 0 0; padding-left: 18px; }
.msg.hint li { cursor: pointer; }
.msg.hint li:hover { color: var(--accent); }
.msg.err { background: transparent; border: 1px solid var(--bad); color: var(--bad); }
.activity { font-size: 12px; color: var(--muted); font-style: italic; }
.approve { border: 1px solid var(--warn); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.approve p { margin: 0; }
.approve .label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--warn); font-weight: 600; }
.approve .btns { display: flex; gap: 8px; }
.approve.done { border-color: var(--line); opacity: .8; }
.approve .verdict { font-size: 12px; font-weight: 600; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { flex: 1; resize: none; max-height: 160px; }

/* drawer */
/* Ticket panel: fills everything right of the team column (left/top set from app.js). */
.drawer-back { position: fixed; inset: 0; z-index: 9; background: rgb(0 0 0 / .2); }
.drawer { position: fixed; top: var(--drawer-top, 0); left: var(--drawer-left, 0); right: 0; bottom: 0; z-index: 10; background: var(--panel); border-left: 1px solid var(--line); overflow: auto; padding: 16px 24px 32px; display: flex; flex-direction: column; gap: 12px; box-shadow: -12px 0 32px rgb(0 0 0 / .12); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 24px; align-items: start; }
.drawer-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.drawer-body .actions { grid-template-columns: minmax(0, 1fr); position: sticky; top: 0; min-width: 0; }
.drawer .act, .drawer .act > *, .drawer .act .row > * { min-width: 0; }
.drawer .act select, .drawer .act input, .drawer .act textarea { width: 100%; max-width: 100%; }
.drawer .act .row button { flex: none; width: auto; }
.drawer #f-log .row > * { flex: 1 1 0; }
.drawer { overflow-x: hidden; }
@media (max-width: 900px) { .drawer-body { grid-template-columns: minmax(0, 1fr); } .drawer-body .actions { position: static; } }
.drawer-head a { font-family: var(--mono); font-size: 15px; }
.drawer h3 { font-size: 18px; line-height: 1.3; text-wrap: balance; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.act { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.act label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.act .row { display: flex; gap: 6px; }
.act .row > :first-child { flex: 1; }
#f-log, #f-comment, #f-return { grid-column: 1 / -1; }
.act-return { border-color: var(--warn); }
.who-tag { text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 600; margin-left: 4px; }
.drawer h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.flow-node { display: grid; grid-template-columns: 82px 82px minmax(0, 1fr) auto 110px; gap: 8px; align-items: center; padding: 4px 8px 4px calc(8px + var(--indent, 0) * 16px); border-radius: 6px; position: relative; }
.flow-node::before { content: ""; position: absolute; left: calc(var(--indent, 0) * 16px); top: 0; bottom: 0; border-left: 2px solid var(--line); }
.flow-node.self { background: var(--accent-soft); font-weight: 600; }
.flow-node.self::before { border-left-color: var(--accent); }
.flow-node.done { color: var(--muted); }
.flow-node .ft { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.flow-node a { font-family: var(--mono); }
.flow-node .fs { overflow-wrap: anywhere; }
.flow-node .fa { font-size: 12px; color: var(--muted); text-align: right; }
.pill.done { color: var(--good); border-color: var(--good); }
.flow-sum { padding: 6px 8px; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .flow-node { grid-template-columns: 70px minmax(0, 1fr) auto; } .flow-node .ft, .flow-node .fa { display: none; } }
.desc { white-space: pre-wrap; margin: 0; font-size: 13px; }
.comment { border-left: 2px solid var(--line); padding: 2px 10px; margin-bottom: 8px; font-size: 13px; white-space: pre-wrap; }
.comment .by { color: var(--muted); font-size: 12px; display: block; }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: 999px; box-shadow: 0 6px 20px rgb(0 0 0 / .2); }
.toast.bad { background: var(--bad); color: #fff; }

/* narrower screens: chat becomes a slide-over */
@media (max-width: 1180px) {
  .shell { grid-template-columns: 260px minmax(0, 1fr); }
  .chat { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 5; box-shadow: -12px 0 32px rgb(0 0 0 / .15); }
  .chat.closed { display: none; }
  .chat-toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
  .actions { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 80px minmax(0, 1fr) 48px; }
  .entry .k { grid-column: 1; }
  .entry .date { display: none; }
}

/* sign-in */
.signed-in { align-self: center; font-size: 13px; }
.login { margin: auto; width: min(360px, calc(100% - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.login .brand { margin-bottom: 4px; }
.login label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.login input { padding: 9px 10px; font-size: 15px; color: var(--ink); }
.login button { justify-content: center; padding: 9px 12px; font-size: 15px; }
.login .err { color: var(--bad); min-height: 1.4em; margin: 0; font-size: 13px; }
.login h1 { font-size: 20px; margin: 0; }

/* server without an Anthropic API key: no chat column */
body.no-chat .chat, body.no-chat .chat-toggle { display: none !important; }
body.no-chat .shell { grid-template-columns: 280px minmax(0, 1fr); }
@media (max-width: 1180px) { body.no-chat .shell { grid-template-columns: 260px minmax(0, 1fr); } }
@media (max-width: 760px) { body.no-chat .shell { grid-template-columns: minmax(0, 1fr); } }

/* My account dialog */
.account { width: min(460px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--ink); padding: 20px 22px; box-shadow: 0 20px 60px rgb(0 0 0 / .25); }
.account::backdrop { background: rgb(0 0 0 / .35); }
.account-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.account-head h2 { font-size: 17px; margin: 0; }
.account-note { background: var(--accent-soft); border-radius: 6px; padding: 8px 10px; margin: 0 0 6px; font-size: 13px; }
.account-form { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.account-form:first-of-type { border-top: 0; }
.account-form h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }
.account-form p { margin: 0; }
.account-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.account-form input { padding: 8px 10px; font-size: 14px; color: var(--ink); }
.account-form button[type=submit] { align-self: flex-start; }
.account-form .err { color: var(--bad); font-size: 13px; min-height: 0; }
.account-form .err:empty { display: none; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.banner button { margin-left: 8px; vertical-align: middle; }

/* POS Chat (on the person's own PC) */
body.poschat .top { gap: 12px; }
body.poschat .chat { flex: 1; min-height: 0; border-left: 0; }
body.poschat .chat[hidden], body.poschat .link-card[hidden], body.poschat .poschat-foot[hidden] { display: none; }
.link-card { margin: 32px auto; width: min(460px, calc(100% - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.link-card h2 { font-size: 17px; margin: 0; }
.link-card p { margin: 0; }
.link-card form { display: flex; flex-direction: column; gap: 10px; }
.link-card label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.link-card input { padding: 8px 10px; font-size: 14px; color: var(--ink); }
.link-card button[type=submit] { align-self: flex-start; }
.link-card .err { color: var(--bad); font-size: 13px; margin: 0; }
.link-card .err:empty { display: none; }
.poschat-foot { padding: 6px 14px; border-top: 1px solid var(--line); background: var(--panel); }
.linklike { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; }
.key-out { display: flex; gap: 8px; }
.key-out input { flex: 1; font-family: var(--mono); font-size: 12px; }
