/* ---------------------------------------------------------------- tokens --- */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f1f2f6;
  --surface-3: #e7e9ee;
  --border: #dfe1e6;
  --border-strong: #c3c8d2;
  --text: #172b4d;
  --text-muted: #5e6c84;
  --text-faint: #8993a4;
  --accent: #4a6cf7;
  --accent-hover: #3a5ae0;
  --accent-soft: #e8edff;
  --danger: #cf3b2f;
  --danger-soft: #fdebe9;
  --warn: #b06000;
  --warn-soft: #fff4e0;
  --success: #1f9d55;
  --success-soft: #e4f7ec;
  --todo: #8993a4;
  --inprogress: #0b74de;
  --done: #1f9d55;
  --shadow-sm: 0 1px 2px rgba(23, 43, 77, .12);
  --shadow: 0 4px 12px rgba(23, 43, 77, .14);
  --shadow-lg: 0 12px 40px rgba(23, 43, 77, .22);
  --radius: 6px;
  --radius-lg: 10px;
  --nav-h: 52px;
  --side-w: 248px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #15181d;
  --surface: #1c2027;
  --surface-2: #22272e;
  --surface-3: #2c333c;
  --border: #2f3640;
  --border-strong: #434c59;
  --text: #e4e8ef;
  --text-muted: #9aa5b6;
  --text-faint: #7b869a;
  --accent: #6b8afd;
  --accent-hover: #849dff;
  --accent-soft: #23304f;
  --danger: #f27162;
  --danger-soft: #3a2220;
  --warn: #e3a44a;
  --warn-soft: #3a2f1c;
  --success: #4cc27e;
  --success-soft: #1d3327;
  --todo: #8f9bad;
  --inprogress: #5aa2f0;
  --done: #4cc27e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 4px 14px rgba(0, 0, 0, .45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
/* An author `display` rule beats the UA stylesheet's [hidden] { display: none },
   so .boot (display: grid) would stay on screen after being hidden. */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
::placeholder { color: var(--text-faint); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 99; }
.boot-spinner, .spinner {
  width: 26px; height: 26px; border: 3px solid var(--surface-3);
  border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------- layout --- */
.shell { display: grid; grid-template-rows: var(--nav-h) 1fr; height: 100vh; }
.body-row { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 0; }
.body-row.no-side { grid-template-columns: 1fr; }
.main { min-width: 0; overflow: auto; padding: 20px 24px 56px; }
.main.flush { padding: 0; display: flex; flex-direction: column; }

/* topbar */
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 6px; background: var(--accent);
  display: grid; place-items: center; color: #fff; flex: none;
}
.topbar-search { flex: 1; max-width: 460px; position: relative; }
.topbar-search input {
  width: 100%; padding: 7px 10px 7px 32px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-2);
}
.topbar-search input:focus { background: var(--surface); border-color: var(--accent); outline: none; }
.topbar-search .icon { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }
.topbar-spacer { flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 6px; }

/* sidebar */
.sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 14px 10px; overflow: auto; display: flex; flex-direction: column; gap: 4px;
}
.side-head { display: flex; align-items: center; gap: 9px; padding: 6px 8px 12px; }
.side-title { font-weight: 650; font-size: 14px; line-height: 1.2; }
.side-sub { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.side-group { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); padding: 14px 8px 4px; }
.side-link {
  display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: var(--radius);
  color: var(--text); font-weight: 500;
}
.side-link:hover { background: var(--surface-2); text-decoration: none; }
.side-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-link .count { margin-left: auto; font-size: 11.5px; color: var(--text-faint); font-weight: 600; }

/* ------------------------------------------------------------ controls --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-weight: 550; cursor: pointer;
  white-space: nowrap; transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(.5px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.subtle { border-color: transparent; background: transparent; }
.btn.subtle:hover { background: var(--surface-2); }
.btn.danger { color: var(--danger); border-color: var(--border-strong); }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.sm { padding: 3px 8px; font-size: 12.5px; }
.btn.icon-only { padding: 6px; }
.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius);
  border: none; background: transparent; cursor: pointer; color: var(--text-muted); position: relative;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.input, select.input, textarea.input {
  width: 100%; padding: 7px 10px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); color: var(--text);
}
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px var(--accent-soft); }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.55; }
select.input { cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field > label { font-size: 12px; font-weight: 650; color: var(--text-muted); }
.field .hint { font-size: 11.5px; color: var(--text-faint); }
.field .error { font-size: 12px; color: var(--danger); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.checkline { display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------- pieces --- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.card-pad { padding: 16px; }
.page-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .grow { flex: 1; min-width: 200px; }
.page-head .sub { color: var(--text-muted); font-size: 13px; margin-top: 3px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; }
.crumbs a { color: var(--text-muted); }

.avatar {
  width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
  color: #fff; font-size: 10.5px; font-weight: 700; flex: none; letter-spacing: .02em;
  text-transform: uppercase; user-select: none;
}
.avatar.lg { width: 34px; height: 34px; font-size: 13px; }
.avatar.sm { width: 20px; height: 20px; font-size: 9px; }
.avatar.ghost { background: var(--surface-3) !important; color: var(--text-faint); }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack .avatar:first-child { margin-left: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  background: var(--surface-3); color: var(--text-muted); white-space: nowrap;
}
.badge.todo { background: var(--surface-3); color: var(--text-muted); }
.badge.inprogress { background: var(--accent-soft); color: var(--inprogress); }
.badge.done { background: var(--success-soft); color: var(--done); }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 11.5px; color: var(--text-muted);
}
.chip.removable { padding-right: 4px; }
.chip button { border: none; background: none; cursor: pointer; color: var(--text-faint); padding: 0 2px; line-height: 1; }
.chip button:hover { color: var(--danger); }
.pill { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--text-muted); }
.points {
  min-width: 22px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--surface-3);
  color: var(--text-muted); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center;
}
.type-icon { width: 16px; height: 16px; border-radius: 3px; display: inline-grid; place-items: center; flex: none; }
.type-icon svg { width: 11px; height: 11px; }
.prio { font-weight: 800; font-size: 13px; line-height: 1; }

.empty { text-align: center; padding: 44px 20px; color: var(--text-muted); }
.empty h3 { margin-bottom: 6px; color: var(--text); }
.empty .icon { font-size: 30px; opacity: .45; margin-bottom: 10px; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.tiny { font-size: 11.5px; }
.nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flex { display: flex; align-items: center; gap: 8px; }
.flex-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* --------------------------------------------------------------- table --- */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-faint); padding: 8px 10px; border-bottom: 1px solid var(--border); font-weight: 700;
  white-space: nowrap; background: var(--surface);
}
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--text); }
.table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr.selected { background: var(--accent-soft); }
.table .shrink { width: 1px; white-space: nowrap; }

/* --------------------------------------------------------------- board --- */
.board-toolbar {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); background: var(--surface);
}
.board-scroll { flex: 1; overflow: auto; padding: 16px 20px 28px; }
.board-columns { display: flex; gap: 12px; align-items: flex-start; min-height: 100%; }
.column {
  width: 286px; flex: none; background: var(--surface-2); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; max-height: 100%;
}
.column-head { padding: 11px 13px 8px; display: flex; align-items: center; gap: 8px; }
.column-head .name { font-size: 11.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
.column-head .n { font-size: 11.5px; color: var(--text-faint); font-weight: 600; }
.column-body { padding: 0 8px 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 60px; }
.column.drag-over { background: var(--accent-soft); outline: 2px dashed var(--accent); outline-offset: -2px; }
.column-cap { height: 3px; border-radius: 3px; margin: 0 13px 8px; background: var(--todo); }
.column-cap.inprogress { background: var(--inprogress); }
.column-cap.done { background: var(--done); }

.issue-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 11px; cursor: pointer; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px;
}
.issue-card:hover { border-color: var(--border-strong); }
.issue-card.dragging { opacity: .45; }
.issue-card .title { font-size: 13.5px; line-height: 1.4; }
.issue-card .meta { display: flex; align-items: center; gap: 7px; }
.issue-card .epic-tag {
  display: inline-block; max-width: 150px; padding: 1px 6px; border-radius: 3px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.issue-card .labels { display: flex; gap: 4px; flex-wrap: wrap; }
.issue-card .mini-label { font-size: 10.5px; padding: 1px 6px; border-radius: 3px; background: var(--surface-3); color: var(--text-muted); }

/* ------------------------------------------------------------- backlog --- */
.backlog-group { margin-bottom: 14px; }
.backlog-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; flex-wrap: wrap;
}
.backlog-head.collapsed { border-radius: var(--radius); }
.backlog-list { border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); }
.backlog-list.drag-over { background: var(--accent-soft); }
.backlog-row {
  display: flex; align-items: center; gap: 9px; padding: 7px 12px; border-bottom: 1px solid var(--border);
  cursor: pointer; font-size: 13.5px;
}
.backlog-row:last-child { border-bottom: none; }
.backlog-row:hover { background: var(--surface-2); }
.backlog-row.dragging { opacity: .45; }
.backlog-row.selected { background: var(--accent-soft); }
.backlog-row .summary { flex: 1; min-width: 0; }
.backlog-empty { padding: 18px; text-align: center; color: var(--text-faint); font-size: 12.5px; }
.sprint-dates { font-size: 12px; color: var(--text-muted); }
.caret { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 2px; display: grid; place-items: center; }
.caret svg { transition: transform .15s; }
.caret.collapsed svg { transform: rotate(-90deg); }

/* --------------------------------------------------------------- issue --- */
.issue-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.issue-title-input {
  font-size: 21px; font-weight: 600; width: 100%; border: 1px solid transparent;
  background: transparent; padding: 4px 6px; border-radius: var(--radius); margin: -4px -6px 0;
}
.issue-title-input:hover { background: var(--surface-2); }
.issue-title-input:focus { background: var(--surface); border-color: var(--accent); outline: none; }
.section-label { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .04em; }
.rich-text { line-height: 1.65; white-space: pre-wrap; word-wrap: break-word; }
.rich-text:empty::before { content: "Add a description…"; color: var(--text-faint); }
.editable-block { border: 1px solid transparent; border-radius: var(--radius); padding: 8px 10px; margin: 0 -10px; cursor: text; }
.editable-block:hover { background: var(--surface-2); }
.detail-grid { display: grid; grid-template-columns: 96px 1fr; gap: 9px 10px; align-items: center; font-size: 13px; }
.detail-grid > .k { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.inline-select {
  border: 1px solid transparent; background: transparent; border-radius: var(--radius);
  padding: 4px 6px; cursor: pointer; width: 100%; text-align: left;
}
.inline-select:hover { background: var(--surface-2); border-color: var(--border); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.tab {
  padding: 8px 12px; border: none; background: none; cursor: pointer; font-weight: 600;
  font-size: 13px; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.comment { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: none; }
.comment .body { flex: 1; min-width: 0; }
.comment .who { font-weight: 650; font-size: 13px; }
.comment .when { font-size: 11.5px; color: var(--text-faint); }
.comment .text { margin-top: 4px; white-space: pre-wrap; word-wrap: break-word; }
.comment .actions { margin-top: 5px; display: flex; gap: 10px; font-size: 12px; }
.history-row { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.history-row:last-child { border-bottom: none; }
.subtask-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; cursor: pointer; }
.subtask-row:last-child { border-bottom: none; }
.progress { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--success); }
.attach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.attach {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface-2);
  display: flex; flex-direction: column; font-size: 12px;
}
.attach .thumb { height: 86px; display: grid; place-items: center; background: var(--surface-3); overflow: hidden; }
.attach .thumb img { width: 100%; height: 100%; object-fit: cover; }
.attach .info { padding: 7px 8px; }
.dropzone { border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 18px; text-align: center; color: var(--text-muted); font-size: 13px; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }

/* --------------------------------------------------------------- modal --- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(9, 15, 30, .55); display: grid; place-items: start center;
  padding: 7vh 16px 4vh; overflow: auto; z-index: 60; animation: fade .12s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; animation: pop .14s ease-out;
}
.modal.wide { max-width: 860px; }
@keyframes pop { from { transform: translateY(-8px) scale(.99); opacity: 0; } }
.modal-head { padding: 16px 20px 10px; display: flex; align-items: center; gap: 10px; }
.modal-body { padding: 4px 20px 8px; max-height: 64vh; overflow: auto; }
.modal-foot { padding: 12px 20px 16px; display: flex; justify-content: flex-end; gap: 8px; align-items: center; }

.menu {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 5px; min-width: 190px; z-index: 70; max-height: 330px; overflow: auto;
}
.menu-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 4px; cursor: pointer;
  font-size: 13px; width: 100%; border: none; background: none; text-align: left;
}
.menu-item:hover { background: var(--surface-2); }
.menu-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.menu-sep { height: 1px; background: var(--border); margin: 4px 0; }
.menu-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); padding: 7px 9px 3px; }

.toast-root { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 90; align-items: center; }
.toast {
  background: #172b4d; color: #fff; padding: 9px 16px; border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: 13px; display: flex; align-items: center; gap: 9px; animation: rise .16s ease-out; max-width: 560px;
}
.toast.error { background: var(--danger); }
.toast.success { background: #11704a; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

.badge-dot {
  position: absolute; top: 4px; right: 4px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px;
  background: var(--danger); color: #fff; font-size: 9.5px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--surface);
}

/* --------------------------------------------------------------- stats --- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; }
.stat .n { font-size: 25px; font-weight: 680; letter-spacing: -.02em; }
.stat .l { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; }
.chart-wrap { overflow-x: auto; }
svg.chart { display: block; width: 100%; height: auto; }
svg.chart text { fill: var(--text-muted); font-size: 10.5px; font-family: var(--sans); }
svg.chart .grid-line { stroke: var(--border); stroke-width: 1; }
svg.chart .axis { stroke: var(--border-strong); stroke-width: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.bar-list { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 44px; gap: 10px; align-items: center; font-size: 12.5px; }
.bar-track { height: 9px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; background: var(--accent); }

/* ---------------------------------------------------------------- misc --- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 396px; }
.auth-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 20px; font-size: 20px; font-weight: 700; }
.kbd {
  font-family: var(--mono); font-size: 11px; padding: 1px 5px; border-radius: 3px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-muted);
}
.jql-bar { display: flex; gap: 8px; align-items: flex-start; }
.jql-input { font-family: var(--mono); font-size: 12.5px; }
.jql-input.invalid { border-color: var(--danger); }
.hscroll { overflow-x: auto; }
.settings-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.swatch { width: 22px; height: 22px; border-radius: 5px; border: 1px solid var(--border); cursor: pointer; }
.swatch.active { box-shadow: 0 0 0 2px var(--accent); }
.color-row { display: flex; gap: 7px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .issue-layout { grid-template-columns: 1fr; }
  .body-row { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 640px) {
  .main { padding: 14px 12px 48px; }
  .topbar-search { max-width: none; }
  .column { width: 250px; }
}
