/* Spruce Up Engineering — workspace skin. Same visual family as the production system:
   white and yellow, slate ink, dense register-style tables, 2px corners. */
:root {
  --yellow: #f5c800; --yellow-soft: #fff5c1; --yellow-line: #d6b000;
  --ink: #283f50; --muted: #62788b; --faint: #6f8190;
  --border: #c2cfd9; --grid: #d0dae3; --heading: #dfe8ef; --surface: #fff; --canvas: #f3f6f8; --nav: #eaf0f4;
  --good: #1f7a4d; --good-soft: #e6f4ec; --warn: #8a6100; --warn-soft: #fff4d6; --bad: #a64034; --bad-soft: #fdf0ed;
  --info: #2c5f86; --info-soft: #e7f0f7;
  --radius: 2px; --sidebar: 232px;
  font-family: "DM Sans", Arial, Helvetica, sans-serif; font-size: 13px; color: var(--ink); font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--surface); }
body { line-height: 1.45; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: #2c5f86; }
:is(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid #9f8100; outline-offset: 2px; }
h1, h2, h3, h4, p { margin: 0; }
svg.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Start-up and sign-in */
.boot, .login { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--canvas); color: var(--muted); text-align: center; padding: 24px; }
.login-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--yellow); border-radius: var(--radius); padding: 30px 30px 26px; text-align: left; display: grid; gap: 14px; }
.login-card img { width: 190px; height: auto; }
.login-card .eyebrow { margin-top: 6px; }
.login-card h1 { font-size: 22px; letter-spacing: -.3px; color: var(--ink); }
.login-card p { color: var(--muted); font-size: 13px; }
.login-card .row { margin-top: 6px; }
.login-note { font-size: 11px; color: var(--faint); max-width: 440px; }

/* Local preview bar */
.preview-bar { position: sticky; top: 0; z-index: 60; height: 34px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: #2b2f36; color: #fff; font-size: 11px; }
.preview-bar strong { color: var(--yellow); letter-spacing: .9px; font-size: 10px; }
.preview-bar span { color: #d5dae1; }
.preview-bar label { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.preview-bar select { min-width: 190px; height: 24px; border-radius: 2px; border: 0; padding: 0 6px; font-size: 12px; color: #1d2733; }

/* Frame */
.app { min-height: 100vh; }
.side { position: fixed; top: var(--bar, 0px); bottom: 0; left: 0; width: var(--sidebar); display: flex; flex-direction: column; background: var(--nav); border-right: 1px solid #b5c5d2; z-index: 40; }
.side-brand { padding: 17px 14px 12px; min-height: 86px; background: #fff; border-top: 3px solid var(--yellow); border-bottom: 1px solid var(--border); }
.side-brand img { width: 164px; height: auto; display: block; }
.side-brand span { display: block; margin-top: 9px; font-size: 10px; font-weight: 700; letter-spacing: .7px; line-height: 1.35; color: #25282c; text-transform: uppercase; }
.side-nav { flex: 1; overflow-y: auto; padding: 0 8px 10px; scrollbar-width: thin; scrollbar-color: #b3c3cf transparent; }
.side-nav section { padding: 6px 0; border-top: 1px solid var(--border); }
.side-nav section:first-child { border-top: 0; padding-top: 9px; }
.side-nav h2 { font-size: 10px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; color: #6a7f8e; padding: 5px 6px; margin-bottom: 2px; }

.side-nav h3 { font-size: 11px; font-weight: 600; color: #4b6374; padding: 5px 4px 1px; }
.nav-item { width: 100%; min-height: 31px; display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 1px 0; border: 0; border-radius: 2px; background: transparent; color: #40596b; font-size: 12px; text-align: left; text-decoration: none; }
.nav-item svg.icon { width: 15px; height: 15px; color: #5c7588; }
.nav-item:hover { background: #dce6ee; color: #213f55; }
.nav-item.active { background: var(--yellow); color: #2d301d; font-weight: 700; box-shadow: inset 3px 0 #b18e00; }
.nav-item.active svg.icon { color: #544816; }

.side-foot { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid #b7c7d3; background: #e2eaf0; }
.avatar { width: 29px; height: 29px; flex: none; display: grid; place-items: center; border: 1px solid #d4bd56; border-radius: 3px; background: #fff4bd; color: #6d5913; font-size: 10px; font-weight: 700; }
.side-foot .who { min-width: 0; flex: 1; }
.side-foot strong { display: block; font-size: 11px; color: #344f63; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot small { display: block; font-size: 9px; color: #647a8d; margin-top: 2px; }
.main { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.top { position: sticky; top: var(--bar, 0px); z-index: 30; height: 47px; display: flex; align-items: center; gap: 12px; padding: 0 18px; background: #f6f8fa; border-top: 3px solid var(--yellow); border-bottom: 1px solid #b7c7d4; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #718491; min-width: 0; white-space: nowrap; }
.crumb strong { font-size: 12px; font-weight: 600; color: #29475d; overflow: hidden; text-overflow: ellipsis; }
.crumb svg.icon { width: 12px; height: 12px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top select, .search-trigger { height: 28px; border: 1px solid var(--border); border-radius: 2px; background: #fff; color: #476175; font-size: 11px; padding: 0 8px; }
.search-trigger { display: flex; align-items: center; gap: 7px; min-width: 150px; color: #5a7488; }
.search-trigger kbd { margin-left: auto; font: inherit; font-size: 10px; background: #eff3f6; color: #6e8393; padding: 0 5px; border-radius: 1px; }
.icon-btn.menu-button { display: none; }
.content { flex: 1; padding: 20px 20px 24px; background: #fff; min-width: 0; }
.foot { display: flex; justify-content: space-between; gap: 12px; padding: 8px 20px; min-height: 30px; border-top: 1px solid var(--border); background: #edf2f6; font-size: 9px; color: #6e8394; }
.foot span:first-child { letter-spacing: .7px; text-transform: uppercase; }
.banner { padding: 7px 18px; font-size: 12px; background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid #e6cf8a; }

/* Page furniture */
.eyebrow { font-size: 10px; letter-spacing: .9px; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.heading { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.heading > div:first-child { min-width: 0; flex: 1; }
.heading h1 { font-size: 23px; line-height: 1.3; letter-spacing: -.4px; margin: 2px 0 6px; font-weight: 700; }
.heading p { font-size: 12px; color: #647b8d; max-width: 860px; }
.heading-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.nowrap { white-space: nowrap; }
.stack { display: grid; gap: 14px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.cols.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: #3e586b; font-weight: 600; font-size: 12px; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.btn:hover:not(:disabled) { background: #edf3f7; border-color: #9db3c4; }
.btn.primary { background: var(--yellow); border-color: var(--yellow-line); color: #332f16; }
.btn.primary:hover:not(:disabled) { background: #e9bf00; border-color: #bea000; }
.btn.danger { color: var(--bad); border-color: #d9b2aa; background: #fff8f6; }
.btn.quiet { border-color: transparent; background: transparent; }
.btn.small { min-height: 24px; padding: 2px 7px; font-size: 11px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg.icon { width: 14px; height: 14px; }
.icon-btn { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 2px; background: #fff; color: #4b6375; padding: 0; }
.icon-btn:hover { background: var(--yellow-soft); border-color: #c9ad38; }
.icon-btn.plain { border-color: transparent; background: transparent; }
.link { border: 0; background: none; padding: 0; color: #2c5f86; font-weight: 600; text-align: left; }
.link:hover { text-decoration: underline; }

.panel { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--heading); border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 13px; color: #304e63; }
.panel-head p { font-size: 11px; color: #627b8e; margin-top: 2px; }
.panel-head > div:first-child { flex: 1; min-width: 0; }
.panel-body { padding: 14px; }

.notice { border: 1px solid #dfce7f; border-left: 3px solid var(--yellow); background: #fffbe8; border-radius: 2px; padding: 9px 12px; font-size: 12px; color: #5b4e12; }
.notice.info { border-color: #b9cfe0; border-left-color: var(--info); background: var(--info-soft); color: #254a66; }
.notice.bad { border-color: #e3bdb5; border-left-color: var(--bad); background: var(--bad-soft); color: #7c2d24; }
.empty { padding: 30px 18px; text-align: center; color: #6c8293; }
.empty h3 { font-size: 15px; color: #40596b; margin-bottom: 4px; }
.empty p { font-size: 12px; margin-bottom: 12px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--border); border-radius: 2px; background: #fff; margin-bottom: 14px; }
.tile { padding: 11px 12px 12px; border: 0; border-right: 1px solid var(--grid); background: #fff; text-align: left; min-width: 0; border-top: 2px solid transparent; }
.tile:last-child { border-right: 0; }
button.tile:hover { background: #f3f7fa; }
.tile.alert { border-top-color: #c0564a; }
.tile .label { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: #35536a; }
.tile .label svg.icon { width: 14px; height: 14px; color: #5c7588; }
.tile .value { font-size: 24px; font-weight: 700; line-height: 1.3; margin-top: 6px; letter-spacing: -.5px; }
.tile.alert .value { color: var(--bad); }
.tile .sub { font-size: 10px; color: #697f90; margin-top: 2px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--grid); border-radius: 2px; }

table.table { width: 100%; border-collapse: collapse; font-size: 12px; color: #344e62; }
.table th { padding: 7px 10px; background: var(--heading); color: #35536a; border: 1px solid var(--grid); border-top: 0; text-align: left; font-weight: 600; white-space: nowrap; }
.table td { padding: 7px 10px; border: 1px solid var(--grid); color: #3f596b; vertical-align: top; }
.table tr > :first-child { border-left: 0; } .table tr > :last-child { border-right: 0; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) { background: #f7f9fb; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover { background: #eff4f8; }
.table td strong { color: #2b4a60; font-weight: 600; }
.table td small { display: block; font-size: 11px; color: #6d8190; margin-top: 2px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tfoot td { background: #f1f5f8; font-weight: 700; }

.badge { display: inline-block; border: 1px solid #c5d2dc; border-radius: 2px; background: #f1f5f8; color: #48647a; font-size: 10px; font-weight: 600; padding: 2px 6px; white-space: nowrap; line-height: 1.4; }
.badge.good { background: var(--good-soft); border-color: #b5dcc6; color: var(--good); }
.badge.warn { background: var(--warn-soft); border-color: #ead48f; color: var(--warn); }
.badge.bad { background: var(--bad-soft); border-color: #e3bdb5; color: var(--bad); }
.badge.info { background: var(--info-soft); border-color: #b9cfe0; color: var(--info); }

.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #c5d2dc; border-radius: 2px; background: #fff; color: #48647a; font-size: 10px; padding: 1px 6px; white-space: nowrap; }
.chip.market { background: #eef3f7; }
.chip button { border: 0; background: none; padding: 0; color: inherit; line-height: 1; display: grid; }
.chip button svg.icon { width: 11px; height: 11px; }

/* Toolbars and tabs */
.toolbar { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 9px 10px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 2px; background: #edf2f6; }
.toolbar label { display: grid; gap: 3px; font-size: 11px; color: #4c6578; }
.toolbar :is(input, select) { height: 30px; min-width: 150px; border: 1px solid #b6c6d3; border-radius: 2px; background: #fff; padding: 0 7px; font-size: 12px; }
.toolbar input[type=search] { min-width: 240px; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid #a9bac8; margin-bottom: 14px; overflow-x: auto; }
.tabs button { border: 1px solid #bdcbd6; border-bottom: 0; border-radius: 2px 2px 0 0; background: #e7edf2; color: #3d576b; font-size: 12px; padding: 7px 12px; min-height: 33px; margin-right: -1px; white-space: nowrap; }
.tabs button.on { background: #fff; color: #263f53; box-shadow: inset 0 3px var(--yellow); font-weight: 700; }
.tabs button .n { color: #6a7f8e; font-weight: 400; margin-left: 4px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.field { display: grid; gap: 4px; font-size: 12px; color: #4c6578; align-content: start; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > span { font-weight: 600; }
.field > small { font-size: 11px; color: #6d8192; }
.field :is(input:not([type=checkbox]), select, textarea) { width: 100%; border: 1px solid #b6c6d3; border-radius: 2px; background: #fff; color: var(--ink); font-size: 12px; min-height: 31px; padding: 5px 7px; }
.field textarea { min-height: 76px; line-height: 1.5; resize: vertical; }
.field .required { color: var(--bad); }
.field.invalid :is(input, select, textarea) { border-color: var(--bad); background: #fffafa; }
.checks { display: flex; flex-wrap: wrap; gap: 5px; }
.checks label { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #c5d2dc; border-radius: 2px; background: #fff; padding: 3px 8px; font-size: 11px; color: #48647a; cursor: pointer; }
.checks label:has(input:checked) { background: var(--yellow-soft); border-color: #ddca74; color: #5e4d0d; font-weight: 600; }
.checks input { margin: 0; width: 12px; height: 12px; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #3f596b; }
.repeat { display: grid; gap: 6px; }
.repeat-row { display: grid; gap: 6px; align-items: start; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)) 28px; }
.repeat-row :is(input, textarea) { min-height: 30px; }
.repeat-row textarea { min-height: 30px; height: 30px; }
.form-section { grid-column: 1 / -1; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--grid); font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #5b7386; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--grid); border-radius: 2px; }
.facts > div { padding: 8px 10px; border-bottom: 1px solid var(--grid); border-right: 1px solid var(--grid); min-width: 0; }
.facts > div.wide { grid-column: 1 / -1; }
.facts dt { font-size: 10px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: #6f8190; margin-bottom: 2px; }
.facts dd { margin: 0; font-size: 12px; color: #2f4a5e; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Record window */
.overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; padding: 5vh 16px 16px; background: rgba(27, 42, 54, .46); overflow-y: auto; }
.window { width: min(900px, 100%); background: #f7f9fb; border: 1px solid #7e95a7; border-radius: 3px; box-shadow: 0 16px 48px rgba(22, 40, 54, .28); display: flex; flex-direction: column; max-height: 90vh; }
.window.wide { width: min(1120px, 100%); }
.window.narrow { width: min(520px, 100%); }
.window-head { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px 12px; background: #354e63; color: #fff; border-top: 3px solid var(--yellow); border-radius: 2px 2px 0 0; }
.window-head > div:first-child { flex: 1; min-width: 0; }
.window-head .eyebrow { color: #d4e0e9; }
.window-head h2 { font-size: 17px; margin-top: 3px; overflow-wrap: anywhere; }
.window-head .icon-btn { color: #fff; border-color: #668095; background: transparent; }
.window-head .badge { margin-top: 5px; }
.window-tabs { padding: 10px 14px 0; background: #eef2f6; border-bottom: 1px solid #a9bac8; }
.window-tabs .tabs { margin: 0; border-bottom: 0; }
.window-body { padding: 16px; overflow-y: auto; flex: 1; min-height: 120px; background: #fff; }
.window-foot { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: #edf2f6; border-top: 1px solid var(--border); border-radius: 0 0 2px 2px; }
.window-foot .status { font-size: 11px; color: #60798b; }

.group-title { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: #2b4a60; }
.group-title small { font-weight: 400; color: #6d8190; }
.group-title:first-child { margin-top: 0; }

/* Lists inside panels */
.rows { display: grid; }
.rows > :is(button, div) { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--grid); background: #fff; text-align: left; min-width: 0; }
.rows > :last-child { border-bottom: 0; }
.rows > button:hover { background: #f3f7fa; }
.rows .when { width: 54px; flex: none; font-weight: 700; color: #35536a; font-size: 11px; }
.rows .what { flex: 1; min-width: 0; }
.rows .what strong { display: block; font-weight: 600; color: #2b4a60; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .what small { display: block; font-size: 11px; color: #6d8190; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bar { height: 7px; background: #e3eaf0; border-radius: 1px; overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; background: #5c7f9a; }
 .bar i.bad { background: #c0564a; } .bar i.good { background: #2f9461; }

/* Files, comments, history */
.file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--grid); border-radius: 2px; background: #fff; }
.file + .file { margin-top: 6px; }
.file .thumb { width: 46px; height: 46px; flex: none; border: 1px solid var(--grid); border-radius: 2px; background: #eef2f6; display: grid; place-items: center; color: #8ba0b0; overflow: hidden; }
.file .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file .info { flex: 1; min-width: 0; }
.file .info strong { display: block; font-weight: 600; color: #2b4a60; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .info small { font-size: 11px; color: #6d8190; }
.drop { border: 1px dashed #9db3c4; border-radius: 2px; background: #f6f9fb; padding: 14px; text-align: center; color: #5b7386; font-size: 12px; margin-bottom: 10px; }
.drop.over { background: var(--yellow-soft); border-color: #c9ad38; }
.drop input { display: none; }
.comment { padding: 9px 11px; border: 1px solid var(--grid); border-radius: 2px; background: #fff; }
.comment + .comment { margin-top: 6px; }
.comment header { display: flex; gap: 8px; align-items: baseline; font-size: 11px; color: #6d8190; margin-bottom: 3px; }
.comment header strong { color: #2b4a60; }
.comment p { white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline { display: grid; gap: 0; }
.timeline > div { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--grid); font-size: 12px; }
.timeline time { color: #6d8190; font-size: 11px; }
.timeline small { display: block; color: #6d8190; font-size: 11px; }

/* Charts */
.chart { width: 100%; height: auto; display: block; }
.chart .axis { stroke: #d0dae3; stroke-width: 1; }
.chart .line { fill: none; stroke: #35536a; stroke-width: 1.8; }
.chart .area { fill: rgba(245, 200, 0, .22); stroke: none; }
.chart text { font-size: 10px; fill: #6d8190; font-family: inherit; }

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: grid; gap: 8px; }
.toast { min-width: 240px; max-width: 420px; padding: 10px 12px; border: 1px solid #7e95a7; border-left: 4px solid var(--yellow); border-radius: 2px; background: #2f4558; color: #fff; font-size: 12px; box-shadow: 0 8px 24px rgba(22, 40, 54, .25); }
.toast.bad { border-left-color: #e0796c; }
.spinner { width: 16px; height: 16px; border: 2px solid #c5d2dc; border-top-color: #4b6375; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { padding: 40px; text-align: center; color: #6c8293; }

@media (max-width: 1050px) {
  :root { --sidebar: 214px; }
  .side-brand img { width: 147px; }
  .cols, .cols.even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .side { transform: translateX(-100%); transition: transform .16s ease; width: min(290px, 86vw); box-shadow: 0 0 0 100vmax rgba(27, 42, 54, 0); }
  .app.menu-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(27, 42, 54, .46); }
  .main { margin-left: 0; }
  .icon-btn.menu-button { display: inline-grid; }
  .content { padding: 14px 12px 20px; }
  .heading { flex-direction: column; align-items: stretch; gap: 10px; }
  .heading-actions { justify-content: flex-start; }
  .heading h1 { font-size: 21px; }
  .form-grid, .facts { grid-template-columns: minmax(0, 1fr); }
  .search-trigger { min-width: 0; } .search-trigger span, .search-trigger kbd { display: none; }
  .btn, .nav-item, .tabs button, .toolbar :is(input, select) { min-height: 40px; }
  .field :is(input:not([type=checkbox]), select, textarea), .toolbar :is(input, select) { font-size: 16px; min-height: 42px; }
  
  .overlay { padding: 0; } .window { max-height: 100vh; min-height: 100vh; border-radius: 0; border: 0; }
  .timeline > div { grid-template-columns: 1fr; gap: 2px; }
  .crumb span, .crumb svg.icon { display: none; }
}
@media print { .side, .top, .foot, .preview-bar, .toolbar, .heading-actions { display: none !important; } .main { margin: 0; } }
@media (max-width: 760px) { .preview-bar span { display: none; } .preview-bar select { min-width: 0; } }

/* Workspaces: the switch in the side bar, and the workspace cards */
.workspace-switch { display: grid; gap: 4px; padding: 10px 14px 11px; background: #2f4558; color: #fff; border-bottom: 1px solid #22323f; border-left: 4px solid var(--yellow); }
.workspace-switch small { font-size: 9.500px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: #c9d7e1; }
.workspace-switch strong { font-size: 13px; line-height: 1.3; }
.workspace-switch select { width: 100%; height: 30px; border: 1px solid #5d7386; border-radius: 2px; background: #3b5469; color: #fff; font-size: 12.500px; font-weight: 700; padding: 0 6px; }
.workspace-switch select option { color: var(--ink); background: #fff; }

.row.nowrap { flex-wrap: nowrap; }

/* A ring that shows how complete something is */
svg.ring { flex: none; display: block; }
svg.ring circle { fill: none; stroke-width: 3.2; }
svg.ring .track { stroke: #dbe4eb; }
svg.ring .bar { stroke: #b07a00; stroke-linecap: round; }
svg.ring.good .bar { stroke: var(--good); } svg.ring.low .bar { stroke: #b0483c; }
svg.ring text { font-size: 11px; font-weight: 700; fill: var(--ink); font-family: inherit; }

.repeat-row input { border: 1px solid #b6c6d3; border-radius: 2px; min-height: 31px; padding: 4px 8px; font-size: 12px; min-width: 0; }

.chip.market.off { text-decoration: line-through; color: #8ba0b0; }

.file button.thumb { padding: 0; cursor: zoom-in; font: inherit; }
.file button.thumb:hover, .file button.thumb:focus-visible { border-color: var(--info); }

@media print { .heading, .notice, .workspace-switch { display: none !important; } .content { padding: 0 !important; }  html, body { background: #fff; } }

/* The tabs of one area (Projects and boards, Settings) */
.area-tabs .tabs { margin-bottom: 16px; }

.toolbar label.check-line { display: inline-flex; align-items: center; gap: 6px; align-self: center; }
.toolbar label.check-line input { width: auto; min-width: 0; height: auto; }

.sf-count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; margin-right: 8px; border-radius: 2px; background: #e6edf2; font-size: 12px; font-weight: 700; color: #35536a; flex: none; }
.sf-count.must { background: var(--bad-soft); color: var(--bad); } .sf-count.should { background: var(--yellow-soft); color: #6b5600; }

.sf-safe { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sf-safe li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-size: 12.5px; line-height: 1.45; }
.sf-safe li svg.icon { width: 15px; height: 15px; margin-top: 2px; } .sf-safe li.ok svg.icon { color: #2f7a55; } .sf-safe li.check svg.icon { color: #b07d00; }

@media print {
  .area-tabs { display: none !important; }

}

/* Storage and safety: the backups and checks (src/views/safety.js) */
.sf-jobs { display: grid; gap: 0; }
.sf-job { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--grid); }
.sf-job:first-child { border-top: 0; padding-top: 2px; }
.sf-job .badge { justify-self: start; margin-top: 1px; }
.sf-job strong { display: block; font-size: 13px; } .sf-job small { display: block; color: #5d7486; font-size: 11.5px; line-height: 1.45; }
.sf-job p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; } .sf-job a.small { display: inline-block; margin-top: 4px; font-size: 11.5px; }
.sf-job.bad p { color: var(--bad); } .sf-job.warn p { color: var(--warn); }
.sf-jobs.compact .sf-job { padding: 7px 0; } .sf-jobs.compact .sf-job p { margin-top: 1px; font-size: 12px; color: #5d7486; }

@media (max-width: 640px) { .sf-job { grid-template-columns: minmax(0, 1fr); gap: 4px; }  }

.chip.warn { background: var(--warn-soft); border-color: #ead48f; color: var(--warn); }
.chip.warn svg.icon { width: 11px; height: 11px; }

.window-body progress { width: 100%; height: 8px; }

/* Boards (src/views/boards.js) */
.toolbar.bd-tools { align-items: center; }
.toolbar.bd-tools input[type=search] { min-width: 220px; }
.bd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.bd-card { display: grid; gap: 6px; align-content: start; text-align: left; border: 1px solid var(--border); border-top: 3px solid var(--yellow); border-radius: 2px; background: #fff; padding: 11px 12px; min-width: 0; }
.bd-card:hover { border-color: #8ca7bb; background: #f8fbfd; }
.bd-card.archived { border-top-color: #b7c3cc; opacity: .85; }
.bd-card-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bd-card-head strong { font-size: 14px; color: #2b4a60; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-card small { font-size: 11px; color: #6d8190; }
.bd-card p { font-size: 12px; color: #4c6578; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bd-card-counts { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: #60798b; }
.bd-card-counts strong { color: #2b4a60; font-size: 13px; }
.bd-card-counts .bad strong, .bd-card-counts .bad { color: var(--bad); }
.bd-bar { display: block; height: 5px; background: #e5ecf1; border-radius: 2px; overflow: hidden; }
.bd-bar > span { display: block; height: 100%; background: var(--good); }
.bd-key { display: inline-block; font: 600 11px/1.6 ui-monospace, "SF Mono", Menlo, monospace; color: #35536a; background: #eef3f7; border: 1px solid #cfdbe4; border-radius: 2px; padding: 0 5px; white-space: nowrap; }
.bd-key-link { cursor: pointer; }
.bd-key-link:hover { background: var(--yellow-soft); border-color: #ddca74; }
.bd-key-input { text-transform: uppercase; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.bd-level { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 3px; color: #fff; font-size: 9px; font-weight: 700; line-height: 1; }
.bd-initiative { background: #2f8a57; } .bd-epic { background: #7a4fb3; } .bd-task { background: #2f6fb0; } .bd-subtask { background: #6aa6d9; }
.bd-priority { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: #60798b; white-space: nowrap; }
.bd-priority svg.icon { width: 12px; height: 12px; }
.bd-p-high { color: var(--bad); font-weight: 600; } .bd-p-low { color: #7d93a4; }
.bd-meta { margin: -4px 0 12px; }
.bd-table td { vertical-align: middle; }
.bd-table .bd-col-key { width: 1%; }
.bd-th-work { display: inline-flex; align-items: center; gap: 4px; }
.bd-th-work .icon-btn { width: 20px; height: 20px; }
.bd-title { display: flex; align-items: center; gap: 6px; min-width: calc(260px + var(--depth, 0) * 22px); padding-left: calc(var(--depth, 0) * 22px); position: relative; }
.bd-title::before { content: ''; position: absolute; left: calc(var(--depth, 0) * 22px - 12px); top: -8px; bottom: -8px; border-left: 1px solid #cdd9e2; }
.bd-title.bd-root::before { display: none; }
.bd-toggle { width: 20px !important; height: 20px !important; }
.bd-toggle-gap { width: 20px; flex: none; }
.bd-open { border: 0; background: none; padding: 0; text-align: left; color: #2b4a60; font-weight: 600; cursor: pointer; min-width: 0; overflow-wrap: anywhere; }
.bd-open:hover { text-decoration: underline; }
.bd-progress { font-size: 10px; color: #60798b; border: 1px solid #d4dee6; border-radius: 2px; padding: 0 4px; white-space: nowrap; }
.bd-add-child { width: 22px !important; height: 22px !important; margin-left: auto; opacity: 0; }
.bd-row:hover .bd-add-child, .bd-add-child:focus-visible { opacity: 1; }
.bd-context td { background: #fafbfc; }
.bd-context .bd-open { color: #7d93a4; font-weight: 500; }
.bd-status { height: 26px; border: 1px solid #b6c6d3; border-radius: 2px; background: #fff; font-size: 12px; padding: 0 4px; max-width: 170px; }
.bd-status.bd-g-in_progress { background: var(--info-soft); border-color: #b9cfe0; color: var(--info); }
.bd-status.bd-g-done { background: var(--good-soft); border-color: #b5dcc6; color: var(--good); }
.bd-late { color: var(--bad); font-weight: 600; }
.bd-add { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px dashed #b6c6d3; border-radius: 2px; background: #fbfcfd; margin-top: 8px; }
.bd-add.under { margin: 0; padding-left: calc(var(--depth, 0) * 22px + 10px); }
.bd-add input[type=text] { flex: 1; min-width: 120px; height: 30px; border: 1px solid #b6c6d3; border-radius: 2px; padding: 0 8px; font-size: 12px; }
.bd-add select { height: 30px; border: 1px solid #b6c6d3; border-radius: 2px; font-size: 12px; }
.bd-add-level { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #4c6578; white-space: nowrap; }
.bd-add-row td { background: #fbfcfd; padding: 4px 6px; }
.bd-foot { margin-top: 8px; }
.bd-pad { padding: 10px 12px; }
.bd-fixed { margin-top: 12px; }
.bd-statuses { display: grid; gap: 6px; }
.bd-status-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(130px, 180px) 70px auto auto auto; gap: 6px; align-items: center; }
.bd-status-row input, .bd-status-row select { height: 30px; border: 1px solid #b6c6d3; border-radius: 2px; padding: 0 7px; font-size: 12px; background: #fff; min-width: 0; }
.bd-item { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.bd-main { display: grid; gap: 14px; min-width: 0; }
.bd-title-input { width: 100%; font-size: 17px; font-weight: 700; color: #2b4a60; border: 1px solid transparent; border-radius: 2px; padding: 4px 6px; background: transparent; }
.bd-title-input:hover, .bd-title-input:focus { border-color: #b6c6d3; background: #fff; }
.bd-title-text { font-size: 17px; color: #2b4a60; }
.bd-section { display: grid; gap: 7px; }
.bd-section h4 { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #5b7487; }
.bd-section textarea { width: 100%; border: 1px solid #b6c6d3; border-radius: 2px; padding: 8px; font-size: 13px; line-height: 1.5; }
.bd-words { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; color: #2f4a5e; }
.bd-children { border: 1px solid var(--grid); border-radius: 2px; }
.bd-chip-open { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.bd-history { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 12px; color: #3f596b; }
.bd-history small { display: block; font-size: 10px; color: #7d93a4; }
.bd-side { display: grid; gap: 9px; border: 1px solid var(--grid); border-radius: 2px; background: #f7f9fb; padding: 12px; }
.bd-fact { display: grid; gap: 3px; font-size: 11px; color: #5b7487; }
.bd-fact > span:first-child { font-weight: 700; letter-spacing: .3px; text-transform: uppercase; font-size: 10px; }
.bd-fact :is(select, input) { width: 100%; height: 30px; border: 1px solid #b6c6d3; border-radius: 2px; padding: 0 7px; font-size: 12px; background: #fff; max-width: none; }
.bd-fact .row { flex-wrap: nowrap; }
.bd-parent-link { display: flex; align-items: center; gap: 6px; border: 1px solid var(--grid); background: #fff; border-radius: 2px; padding: 6px 8px; font-size: 12px; color: #2c5f86; text-align: left; }
.bd-small-facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; margin: 4px 0 0; font-size: 11px; color: #60798b; }
.bd-small-facts dt { font-weight: 700; } .bd-small-facts dd { margin: 0; }
.bd-win-meta { font-size: 12px; color: #c9d6e0; margin-top: 4px; }
.bd-win-meta a { color: #fff; }
@media (max-width: 860px) { .bd-item { grid-template-columns: minmax(0, 1fr); } .bd-side { order: -1; } .bd-status-row { grid-template-columns: minmax(0, 1fr) 120px auto auto auto; } .bd-status-row > .muted { display: none; } }
@media (max-width: 640px) { .bd-title { min-width: calc(190px + var(--depth, 0) * 14px); padding-left: calc(var(--depth, 0) * 14px); } .bd-title::before { left: calc(var(--depth, 0) * 14px - 8px); } .bd-add.under { padding-left: calc(var(--depth, 0) * 14px + 10px); } .toolbar.bd-tools input[type=search] { min-width: 0; width: 100%; } .bd-add { flex-wrap: wrap; } .bd-add input[type=text] { flex-basis: 100%; } }
/* Boards, phase 2: editing in the row, nesting by dragging, ticked items, and the Board view */
.bd-col-tick { width: 1%; text-align: center; }
.bd-col-tick input { margin: 0; }
.bd-chosen td { background: #fffbe8 !important; }
.bd-cell { border: 1px solid transparent; background: none; border-radius: 2px; padding: 3px 5px; margin: -3px -5px; text-align: left; color: inherit; font: inherit; cursor: pointer; min-height: 26px; max-width: 100%; }
.bd-cell:hover, .bd-cell:focus-visible { border-color: #b6c6d3; background: #fff; }
.bd-cell-edit { height: 28px; border: 1px solid #9f8100; border-radius: 2px; padding: 0 5px; font-size: 12px; background: #fff; max-width: 170px; }
.bd-grip { display: inline-grid; place-items: center; width: 16px; height: 22px; flex: none; color: #9aabb8; cursor: grab; opacity: 0; }
.bd-row:hover .bd-grip { opacity: 1; }
.bd-grip svg.icon { width: 13px; height: 13px; }
.bd-drop-ok td { background: var(--info-soft) !important; box-shadow: inset 0 2px 0 var(--info), inset 0 -2px 0 var(--info); }
.bd-top-strip { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 9px; margin-bottom: 8px; border: 1px dashed var(--info); border-radius: 2px; background: var(--info-soft); color: var(--info); font-size: 12px; font-weight: 600; }
.bd-top-strip.over { background: #d6e6f2; }
.bd-bulk { position: sticky; top: calc(var(--bar, 0px) + 54px); z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 8px; border: 1px solid #ddca74; border-left: 3px solid var(--yellow); border-radius: 2px; background: #fffbe8; font-size: 12px; }
.bd-bulk select { height: 28px; border: 1px solid #b6c6d3; border-radius: 2px; font-size: 12px; background: #fff; padding: 0 5px; }
.bd-show { display: inline-flex !important; align-items: center; gap: 6px; }
.bd-hint { margin: -4px 0 10px; }
.bd-kanban { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(230px, 1fr)); gap: 10px; overflow-x: auto; align-items: start; padding-bottom: 6px; }
.bd-col { border: 1px solid var(--border); border-top: 3px solid #9aabb8; border-radius: 2px; background: #f3f6f8; min-width: 0; }
.bd-col.bd-g-in_progress { border-top-color: var(--info); } .bd-col.bd-g-done { border-top-color: var(--good); }
.bd-col.over { background: #eaf1f6; }
.bd-col > header { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--heading); border-bottom: 1px solid var(--border); font-size: 12px; color: #2b4a60; }
.bd-col > header span { margin-left: auto; font-weight: 600; color: #60798b; font-size: 11px; }
.bd-col-cards { padding: 8px; display: grid; gap: 7px; min-height: 80px; align-content: start; }
.bd-col-empty { font-size: 11px; color: #8a9cab; text-align: center; padding: 14px 0; }
.bd-kcard { display: grid; gap: 6px; border: 1px solid var(--border); border-left: 3px solid #8ba0b0; border-radius: 2px; background: #fff; padding: 8px 9px; min-width: 0; }
.bd-kcard[draggable=true] { cursor: grab; }
.bd-kcard:hover { border-color: #8ca7bb; }

.bd-kcard.dragging { opacity: .45; }
.bd-kcard .bd-open { font-size: 13px; }
.bd-kcard-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bd-kcard-up { font-size: 10px; color: #7d93a4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bd-kcard-foot { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.bd-count { display: inline-flex; align-items: center; gap: 2px; } .bd-count svg.icon { width: 12px; height: 12px; }
.bd-avatar { width: 24px !important; height: 24px !important; font-size: 9px !important; }
.bd-kcard-move { display: none; align-items: center; gap: 2px; border-top: 1px solid var(--grid); padding-top: 6px; }
.bd-kcard-move select { flex: 1; min-width: 0; height: 26px; border: 1px solid #b6c6d3; border-radius: 2px; font-size: 11px; background: #fff; }
.bd-kcard-move .icon-btn { width: 26px; height: 26px; }
.bd-kcard:hover .bd-kcard-move, .bd-kcard:focus-within .bd-kcard-move { display: flex; }
@media (hover: none) { .bd-kcard-move { display: flex; } .bd-grip { display: none; } .bd-add-child { opacity: 1; } }
.bd-drop-line { height: 3px; border-radius: 2px; background: var(--info); margin: -2px 0; }
@media (max-width: 640px) { .bd-kanban { grid-template-columns: repeat(var(--cols, 4), minmax(220px, 82vw)); } .bd-bulk { position: static; } }
/* A board inside another page */
.bd-block { display: grid; gap: 8px; }
.bd-block-head { padding: 8px 10px; border: 1px solid var(--border); border-top: 3px solid var(--yellow); border-radius: 2px; background: #fff; }
/* Projects (src/views/projects.js) */
.pj-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.pj-card .bd-card-head { justify-content: space-between; }
.pj-latest { display: block; font-size: 11px; color: #4c6578; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-out { text-decoration: none; }
.pj-timeline { display: grid; gap: 10px; }
.pj-composer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px; border: 1px solid var(--border); border-left: 3px solid var(--yellow); border-radius: 2px; background: #fff; }
.pj-composer input[type=text] { flex: 1; min-width: 200px; height: 32px; border: 1px solid #b6c6d3; border-radius: 2px; padding: 0 8px; font-size: 13px; }
.pj-counter { min-width: 56px; text-align: right; }
.pj-avatar { width: 26px !important; height: 26px !important; font-size: 9px !important; }
.pj-stream { display: grid; gap: 14px; }
.pj-day h3 { position: sticky; top: calc(var(--bar, 0px) + 54px); z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #5b7487; background: var(--surface); padding: 4px 0; margin-bottom: 6px; }
.pj-day { display: grid; gap: 6px; border-left: 2px solid var(--grid); padding-left: 12px; margin-left: 4px; }
.pj-entry { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #3f596b; min-width: 0; }
.pj-entry > svg.icon { color: #7d93a4; }
.pj-event > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pj-who { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pj-who strong { color: #2b4a60; }
.pj-time { margin-left: auto; color: #8a9cab; font-size: 11px; white-space: nowrap; }
.pj-link { border: 0; background: none; padding: 0; color: #2c5f86; font: inherit; text-align: left; cursor: pointer; }
.pj-link:hover { text-decoration: underline; }
.pj-doc, .pj-update { display: grid; gap: 6px; }
.pj-update { border: 1px solid var(--border); border-radius: 2px; background: #fff; padding: 10px 12px; }
.pj-detailed { border-left: 3px solid var(--info); }
.pj-update h4 { font-size: 14px; color: #2b4a60; }
.pj-line { display: flex; align-items: center; gap: 8px; }
.pj-quick-text { font-size: 13px; color: #2f4a5e; overflow-wrap: anywhere; }
.pj-quick-edit { display: flex; gap: 6px; align-items: center; }
.pj-quick-edit input { flex: 1; height: 30px; border: 1px solid #b6c6d3; border-radius: 2px; padding: 0 8px; }
.pj-actions { gap: 6px; }
.pj-replies { border-top: 1px solid var(--grid); padding-top: 8px; }
.pj-more { justify-content: center; }
.pj-update-file { padding: 6px 12px; }
.pj-outs { display: grid; gap: 6px; }
.pj-out-row { display: grid; grid-template-columns: 130px minmax(120px, 1fr) minmax(180px, 2fr) auto; gap: 6px; align-items: center; }
.pj-out-row :is(input, select) { height: 30px; border: 1px solid #b6c6d3; border-radius: 2px; padding: 0 7px; font-size: 12px; background: #fff; min-width: 0; }
@media (max-width: 640px) { .pj-out-row { grid-template-columns: 1fr 1fr; } .pj-out-row input[type=url] { grid-column: 1 / -1; } .pj-composer input[type=text] { flex-basis: 100%; } .pj-day h3 { position: static; } }
/* Boards below other pages (src/views/board-embed.js) */
.bd-below { margin-top: 18px; }
.bd-work-rows .badge { flex: none; }
.bd-block { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.bd-below .panel-body > div, .bd-below .bd-pad { min-width: 0; }
/* Sprints and the backlog */
.bd-sprint-chip { font-size: 10px; color: var(--info); border: 1px solid #b9cfe0; background: var(--info-soft); border-radius: 2px; padding: 0 5px; white-space: nowrap; }
.bd-sprint-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 10px; border: 1px solid #b9cfe0; border-left: 3px solid var(--info); border-radius: 2px; background: var(--info-soft); font-size: 12px; color: #254a66; }
.bd-goal { font-size: 12px; color: #4c6578; }
.bd-bsection { border: 1px solid var(--border); border-radius: 2px; background: #fff; }
.bd-bsection.running { border-left: 3px solid var(--info); }
.bd-bsection.backlog { background: #fbfcfd; }
.bd-bsection.over { background: #eef5fa; }
.bd-bsection > .bd-goal { padding: 6px 12px 0; }
.bd-bhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--grid); background: var(--heading); }
.bd-bhead strong { color: #2b4a60; }
.bd-blist { display: grid; padding: 6px 8px; gap: 4px; min-height: 40px; }
.bd-brow { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--grid); border-left: 3px solid #8ba0b0; border-radius: 2px; background: #fff; font-size: 12px; min-width: 0; }
.bd-brow[draggable=true] { cursor: grab; }

.bd-brow.dragging { opacity: .45; }
.bd-brow:hover .bd-grip { opacity: 1; }
.bd-brow .bd-open { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-brow-who { min-width: 90px; color: #4c6578; }
.bd-brow-move { display: none; align-items: center; gap: 2px; }
.bd-brow-move select { height: 26px; border: 1px solid #b6c6d3; border-radius: 2px; font-size: 11px; background: #fff; max-width: 130px; }
.bd-brow-move .icon-btn { width: 24px; height: 24px; }
.bd-brow:hover .bd-brow-move, .bd-brow:focus-within .bd-brow-move { display: inline-flex; }
.bd-bsection .bd-add.under { margin: 0 8px 8px; padding-left: 10px; }
.bd-done-sprints summary { cursor: pointer; font-weight: 700; color: #2b4a60; padding: 6px 0; }
@media (hover: none) { .bd-brow-move { display: inline-flex; } }
@media (max-width: 640px) { .bd-brow { flex-wrap: wrap; } .bd-brow .bd-open { flex-basis: 100%; order: 3; white-space: normal; } .bd-brow-who { min-width: 0; } }
/* Notices (src/views/board-embed.js) */
.bd-bell-wrap { position: relative; }
.bd-bell { position: relative; }
.bd-bell-count { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 9px; font-weight: 700; line-height: 16px; text-align: center; }
.bd-bell-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; border: 1px solid var(--border); border-top: 3px solid var(--yellow); border-radius: 2px; background: #fff; box-shadow: 0 8px 24px rgba(30, 50, 70, .16); }
.bd-bell-panel header, .bd-bell-panel footer { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.bd-bell-panel header { border-bottom: 1px solid var(--grid); }
.bd-bell-panel footer { border-top: 1px solid var(--grid); }
.bd-bell-list { display: grid; }
.bd-notice { display: grid; gap: 2px; text-align: left; border: 0; border-bottom: 1px solid var(--grid); background: #fff; padding: 8px 10px; font-size: 12px; color: #3f596b; cursor: pointer; }
.bd-notice.new { background: #fffbe8; box-shadow: inset 3px 0 0 var(--yellow); }
.bd-notice:hover { background: #f3f7fa; }
.bd-notice small { font-size: 10px; color: #7d93a4; }
.comment header .spacer { flex: 1; }
