* { box-sizing: border-box; }
:root { --panel: #191a1b; --edge: #343537; --soft: #b4b5b7; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse 65% 43% at 0 -12%, #432e24 0%, transparent 85%), radial-gradient(ellipse 62% 48% at 100% -12%, #183135 0%, transparent 85%), #111213; color: var(--text); font: 15px/1.5 var(--font); }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
[hidden] { display: none !important; }
.frame { max-width: 1540px; width: calc(100% - clamp(32px, 8vw, 144px)); margin: auto; }
.top { background: #141516e0; border-bottom: 1px solid var(--line); }
.top-inner, .brand, nav, nav a, .local, .heading, .tools, .primary, .secondary, .quiet, .search, .filter, .col-title, .card-top, .card-footer, .row, .dialog-head, .actions, .tag, .source, .match { display: flex; align-items: center; }
.top-inner { gap: clamp(30px, 6vw, 106px); min-height: 70px; }
.brand { font-weight: 700; font-size: 19px; letter-spacing: -.7px; gap: 9px; white-space: nowrap; }
.brand-symbol { position: relative; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(145deg,#ff9a58,#ff7135 45%,#f24d0b); box-shadow: inset 0 1px 1px #ffbd8d; }
.brand-symbol { display: grid; place-items: center; color: #25170e; font: bold 20px var(--mono); letter-spacing: -2px; }
.brand-name { font-size: 15px; line-height: 1.04; letter-spacing: -.3px; }
.brand-product { color: var(--muted); border-left: 1px solid var(--edge); padding-left: 10px; font: 13px var(--mono); letter-spacing: .3px; }
nav { align-self: stretch; gap: 24px; }
nav a { position: relative; text-decoration: none; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
nav a[aria-current] { color: var(--text); }
nav a[aria-current]::after { content: ''; height: 2px; position: absolute; bottom: 0; inset-inline: 0; background: #ff8442; }
.local { margin-left: auto; gap: 8px; font-size: 12px; color: var(--soft); }
.local i { width: 7px; height: 7px; border-radius: 50%; background: #9ad6c2; }
svg.icon { width: 18px; height: 18px; display: block; flex-shrink: 0; }
main.frame { padding: clamp(32px,5vw,74px) 0 54px; }
.heading { justify-content: space-between; gap: 18px; margin-bottom: 34px; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(34px,4.5vw,62px); line-height: 1.05; letter-spacing: -.055em; }
#summary { color: var(--muted); margin-top: 10px; font-size: 14px; }
.primary,.secondary,.quiet { min-height: 40px; justify-content: center; gap: 8px; border-radius: 9px; padding: 9px 15px; font-weight: 600; font-size: 14px; }
.primary { color: #23170f; background: #ff8749; box-shadow: inset 0 1px 0 #ffad80; }
.primary:hover { background: #ff9b68; }
.secondary,.filter,.search { border: 1px solid var(--edge); background: #1b1c1e; }
.secondary:hover,.quiet:hover { background: #303134; }
.quiet { background: transparent; color: var(--soft); }
.danger { color: #ffac99; }
.tools { gap: 10px; margin-bottom: 22px; }
.search,.filter { border-radius: 9px; padding: 0 12px; color: var(--muted); gap: 10px; height: 40px; }
.search { width: min(100%, 340px); }
.search input,.filter select { background: transparent; border: 0; min-width: 0; height: 100%; width: 100%; }
.search input { color: var(--text); }
.filter select { font-size: 13px; color: var(--text); }
option { color: var(--text); background: #232426; }
.board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: stretch; }
.column { --accent: #fc945e; --wash: #312824; border: 1px solid #323132; background: linear-gradient(180deg, color-mix(in srgb,var(--wash),#18191b 58%),#18191a 145px); padding: 16px; min-height: 350px; border-radius: 15px; }
.column.working { --accent:#72d4e1; --wash:#1e3438; }
.column.done { --accent:#a4b4a8; --wash:#29322c; }
.col-title { gap: 9px; padding: 2px 2px 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.col-title i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.col-title h2 { font-size: 17px; letter-spacing: -.4px; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; background: #ffffff0c; border: 1px solid #ffffff13; border-radius: 7px; font: 12px var(--mono); color: var(--soft); }
.col-title .icon-button { margin-left: auto; }
.icon-button { display: inline-grid; place-items: center; padding: 5px; color: var(--soft); background: transparent; border-radius: 6px; }
.icon-button:hover { background: #ffffff12; color: var(--text); }
.zero { margin: 22px 0; border: 1px dashed #3d3e40; border-radius: 12px; min-height: 170px; display: grid; align-content: center; justify-items: center; gap: 9px; color: var(--muted); font-size: 13px; text-align: center; padding: 12px; }
.zero-icon { color: var(--accent,var(--soft)); width: 40px; height: 40px; border: 1px solid #ffffff0d; border-radius: 12px; display: grid; place-items: center; background: #ffffff05; }
.card { text-align: left; display: block; width: 100%; padding: 15px; margin: 0 0 10px; background: #242527; border: 1px solid #393a3c; border-radius: 11px; color: var(--text); overflow-wrap: anywhere; }
.card:hover { background: #292a2c; border-color: #565758; }
.card[draggable=true] { cursor: grab; }
.card-top,.card-footer { justify-content: space-between; gap: 8px; }
.source,.tag { font-size: 11px; gap: 5px; font-weight: 500; }
.source { color: var(--soft); }
.source .icon,.tag .icon { width: 14px; height: 14px; }
.key,time { font: 11px/1.5 var(--mono); color: var(--muted); }
.excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #c2c3c4; font-size: 13px; white-space: pre-line; }
.card-footer { border-top: 1px solid #ffffff12; padding-top: 11px; margin-top: 16px; flex-wrap: wrap; }
.tag { color: #ffb580; }
.column.over { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.client-list { border: 1px solid var(--edge); border-radius: 14px; background: var(--panel); overflow: hidden; }
.row { width: 100%; gap: 14px; padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); background: transparent; }
.row:hover { background: #ffffff06; }
.row:last-child { border-bottom: 0; }
.row .details { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row small,.subtle { color: var(--muted); font-size: 13px; }
.row small,.row strong { display: block; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ice); background: #223336; border-radius: 10px; flex-shrink: 0; }
#connection,.error { color: #ffbb9b; padding: 8px 0; }
dialog { box-sizing: border-box; width: min(600px,calc(100% - 32px)); max-height: 90dvh; padding: 24px; color: var(--text); border: 1px solid #464647; border-radius: 16px; background: #1c1d1f; box-shadow: 0 18px 80px #0008; }
dialog::backdrop { background: #090a0bcc; }
.dialog-head { justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dialog-head h2 { font-size: 24px; letter-spacing: -.8px; }
.fields { display: grid; gap: 13px; }
.fields label:not(.check) { display: grid; gap: 5px; color: #c9c9cb; font-size: 13px; }
.fields input:not([type=checkbox]),.fields select,.fields textarea { border: 1px solid #454647; background: #151617; padding: 9px 10px; border-radius: 8px; width: 100%; min-width: 0; color: var(--text); font-size: 15px; }
textarea { resize: vertical; min-height: 95px; }
.check { font-size: 14px; display: flex; align-items: flex-start; gap: 7px; }
input[type=checkbox] { accent-color: #fc884e; }
.actions { flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.section { border-top: 1px solid var(--edge); margin-top: 16px; padding-top: 16px; }
.section h3 { font-size: 16px; margin-bottom: 8px; }
.match { flex-wrap: wrap; gap: 6px; }
.match button { min-height: 32px; padding: 5px 10px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; background: #343537; color: #fafafa; padding: 10px 16px; border-radius: 9px; z-index: 5; max-width: 90vw; }
.skip { position: fixed; top: -80px; left: 12px; z-index: 10; background: var(--text); color: var(--bg); padding: 8px; }
.skip:focus { top: 6px; }
@media(max-width: 800px) {
  .board { gap: 8px; }
  .column { padding: 10px; }
  .card { padding: 10px; }
  .top-inner { gap: 24px; }
}
@media(max-width: 650px) {
  .top-inner { flex-wrap: wrap; gap: 0; padding-top: 15px; }
  .top-inner nav { order: 3; width: 100%; height: 45px; }
  .board { grid-template-columns: 1fr; gap: 16px; }
  .column { min-height: 0; padding: 14px; }
  .zero { min-height: 100px; margin: 12px 0 0; }
  .heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 22px; }
  .tools { flex-wrap: wrap; }
  .tools > * { flex: 1 1 auto; }
  .search { width: 180px; }
  .card { padding: 14px; }
  dialog { padding: 17px; }
}
.card-heading { display: block; font-size: 17px; letter-spacing: -.3px; margin: 12px 0 5px; }
.question { margin: 16px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.record-key { color: var(--muted); font: 11px/1.5 var(--mono); overflow-wrap: anywhere; margin: 4px 0; }
.match-heading { font-size: 13px; color: var(--ice); margin: 8px 0; }
.dialog-head h2,.fields,.row strong,dialog p,button { overflow-wrap: anywhere; }
.error:empty { display: none; }

#logout { margin-left: auto; }
.login-page { display: grid; place-items: center; padding: 20px; }
.login-box { width: min(100%, 390px); padding: clamp(22px, 5vw, 36px); border: 1px solid var(--edge); border-radius: 16px; background: var(--panel); }
.login-box h1 { margin: 30px 0 22px; font-size: 29px; letter-spacing: -.04em; }
.login-box .primary { margin-top: 8px; }
