/* Bumbee web app. The design follows www.bumbeelabs.com (site/src/styles/global.css in the website repo):
   orange on white, warm neutrals, navy as the second colour, Hanken Grotesk, uppercase tracked headings and
   square corners everywhere – the brand is geometric. One theme, like the website.
   Modules, in order: 1 tokens · 2 base and type · 3 header · 4 buttons · 5 forms · 6 tables · 7 key figures ·
   8 cards, notices and tags · 9 page patterns · 10 sign-in · 11 footer · 12 small screens. */

/* ==== 1. Tokens ================================================================================================ */

@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/HankenGrotesk-Latin.ttf") format("truetype");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/HankenGrotesk-LatinExt.ttf") format("truetype");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+A720-A7FF; }

:root {
  /* Brand palette – the website's values */
  --bbl-orange: #F57F2B;        /* fills: primary buttons, current tab, accents */
  --bbl-orange-600: #E2691A;
  --bbl-orange-ink: #A84E0E;    /* orange text on white (WCAG AA 5.58:1) */
  --bbl-orange-tint: #FDEEE0;
  --on-orange: #14181C;         /* text on orange (AA 6.76:1) */
  --bbl-navy: #1E3D59;
  --bbl-navy-600: #18324A;
  --bbl-sage: #8FAC84;
  --bbl-sage-600: #79976D;
  --bbl-sage-tint: #EDF1EA;
  --bbl-beige: #E4DBCC;
  --bbl-beige-tint: #F4EFE7;
  --bbl-red: #C23A10;           /* the website's #E44717, darkened for AA as text on white */
  --bbl-red-tint: #FBE9E3;

  /* Neutrals, warm-tinted */
  --ink: #14181C;
  --text: #1F2933;
  --muted: #5B6873;
  --line: #E6E3DC;
  --line-strong: #D8D3C8;
  --surface: #FFFFFF;
  --surface-2: var(--bbl-beige-tint);
  --surface-3: #FAFAF8;
  --input-border: rgba(30, 61, 89, 0.22);
  --ghost-border: rgba(30, 61, 89, 0.30);

  /* Type */
  --font: "Hanken Grotesk", "Mundo Sans Std", Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --fs-xs: 0.75rem; --fs-sm: 0.875rem; --fs-base: 0.9375rem; --fs-md: 1.0625rem;
  --fs-h1: clamp(1.5rem, 2.4vw, 2rem);
  --ls-heading: 0.05em; --ls-eyebrow: 0.14em;

  /* Space, size, depth – square corners throughout */
  --container: 1280px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --control: 40px;
  --shadow-sm: 0 1px 2px rgba(30,61,89,0.05), 0 2px 6px rgba(30,61,89,0.07);
  --shadow: 0 6px 20px rgba(30,61,89,0.09);
  --shadow-lg: 0 18px 48px rgba(30,61,89,0.13);
  --shadow-orange: 0 8px 22px rgba(245,127,43,0.28);
}

/* ==== 2. Base and type ========================================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--surface-3); color: var(--text);
  font: var(--fs-base)/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
a { color: var(--bbl-orange-ink); text-decoration: none; }
a:hover { color: #8A3F0B; text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--bbl-orange-ink); outline-offset: 2px; }
p { margin: 0 0 0.8em; }

h1, h2, h3 { color: var(--ink); font-weight: 700; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: var(--ls-heading); margin: 0 0 6px; }
h1 code { font-size: 0.45em; text-transform: none; letter-spacing: 0; vertical-align: middle; margin-left: 6px; }
/* Section headings read like the website's eyebrows: small, tracked, a short orange rule before them. */
h2 { font-size: var(--fs-xs); letter-spacing: var(--ls-eyebrow); margin: 36px 0 12px; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; width: 14px; height: 3px; background: var(--bbl-orange); flex: none; }
h3 { font-size: var(--fs-xs); letter-spacing: var(--ls-eyebrow); margin: 20px 0 10px; color: var(--muted); }

code { font: 0.8em ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.strong { font-weight: 700; }
.warn { color: var(--bbl-red); }
.nowrap { white-space: nowrap; }
.count { color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 2px; }

/* ==== 3. Header ================================================================================================ */

.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 32px; min-height: 68px;
  padding: 0 var(--gutter); background: var(--surface);   /* no backdrop-filter: it would trap the menu's backdrop */
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { display: block; width: 111px; height: 38px; }
.top nav { display: flex; align-items: stretch; gap: 4px; align-self: stretch; }
.top nav a { display: flex; align-items: center; padding: 0 12px; color: var(--ink); font-weight: 500; text-decoration: none; }
.top nav a:hover { color: var(--bbl-orange-ink); }
.top nav a[aria-current="page"] { color: var(--bbl-orange-ink); box-shadow: inset 0 -3px 0 var(--bbl-orange); }

.me { margin-left: auto; position: relative; }
.me summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--ink); font-weight: 500; }
.me summary::-webkit-details-marker { display: none; }
.me summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); }
.me[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
/* Closing on a click anywhere else, without JavaScript: while the menu is open the summary gets an invisible layer
   over the whole window, so a click outside the menu lands on the summary and closes the details element. */
.me[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 1; cursor: default; }
.me .menu { position: absolute; z-index: 2; right: 0; top: calc(100% + 6px); min-width: 210px; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.me .menu form { margin: 0; }
.me .menu button { width: 100%; justify-content: flex-start; border: 0; background: none; font-weight: 500; }
.me .menu button:hover { background: var(--surface-2); color: var(--bbl-orange-ink); box-shadow: none; }

/* ==== 4. Buttons =============================================================================================== */

.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--control);
  padding: 0 18px; font: 700 var(--fs-sm)/1 var(--font); letter-spacing: 0.01em; color: var(--ink); background: var(--surface);
  border: 2px solid var(--ghost-border); border-radius: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease; }
.button:hover, button:hover { border-color: var(--bbl-orange); color: var(--bbl-orange-ink); background: var(--bbl-orange-tint);
  text-decoration: none; }
.button:active, button:active { transform: translateY(1px); }
.button.primary, button.primary { background: var(--bbl-orange); border-color: var(--bbl-orange); color: var(--on-orange); }
.button.primary:hover, button.primary:hover { background: var(--bbl-orange-600); border-color: var(--bbl-orange-600);
  color: var(--on-orange); box-shadow: var(--shadow-orange); }

/* ==== 5. Forms ================================================================================================= */

label { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.02em; color: var(--ink); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; letter-spacing: 0; }
input[type=text], input[type=email], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: var(--control); padding: 8px 12px; font: 400 var(--fs-base)/1.4 var(--font); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--input-border); border-radius: 0; transition: border-color .15s ease; }
input:hover, select:hover, textarea:hover { border-color: rgba(30, 61, 89, 0.4); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--bbl-orange-ink); outline-offset: 1px;
  border-color: var(--bbl-orange-ink); }
select { appearance: none; padding-right: 34px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E3D59' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; }
textarea { resize: vertical; }
input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--bbl-orange-600); }
input::placeholder, textarea::placeholder { color: #8A949C; }
.error { color: var(--bbl-red); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 20px; }
.fields .wide { grid-column: 1 / -1; }
.card > label { margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 20; margin: 0 calc(var(--gutter) * -1); padding: 14px var(--gutter);
  background: rgba(255,255,255,0.96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(30,61,89,0.06); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0 16px; }
.filters input[type=search] { width: auto; min-width: 240px; flex: 0 1 300px; }
.filters select { width: auto; }
.filters .spacer { flex: 1; }
.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.note { display: flex; gap: 10px; margin-bottom: 14px; }
.note input { flex: 1; }

details.danger { display: inline-flex; flex-direction: column; gap: 10px; }
details.danger summary { cursor: pointer; color: var(--bbl-red); font-size: var(--fs-sm); font-weight: 700; padding: 10px 4px; list-style: none; }
details.danger summary::-webkit-details-marker { display: none; }
details.danger[open] { padding: 12px; border: 1px solid var(--line); background: var(--bbl-red-tint); }
details.danger[open] summary { padding-top: 0; }

/* ==== 6. Tables ================================================================================================ */

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  border-bottom: 2px solid var(--line-strong); white-space: nowrap; vertical-align: bottom; }
tbody tr:hover td { background: var(--surface-3); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.scroll { overflow-x: auto; position: relative; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.list { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.scroll .list { border: 0; box-shadow: none; }
.list tbody tr:last-child td { border-bottom: 0; }

/* The pipeline grid: the workbook on screen */
.grid { font-size: var(--fs-sm); }
.grid .sticky { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 210px; box-shadow: inset -1px 0 0 var(--line); }
.grid tbody tr:hover .sticky { background: var(--surface-3); }
.grid .section th, .grid .section td { background: var(--surface-2); color: var(--ink); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; }
.grid .section .count { letter-spacing: 0; }
.grid tfoot th, .grid tfoot td { background: var(--surface-2); font-weight: 700; }
.grid tfoot tr:first-child th, .grid tfoot tr:first-child td { border-top: 2px solid var(--line-strong); }
.grid tfoot tr:last-child th, .grid tfoot tr:last-child td { color: var(--muted); }
.grid .next { min-width: 240px; }
.lines td { vertical-align: middle; }
.lines input[type=number], .lines input[type=text] { max-width: 170px; text-align: right; margin-left: auto; display: block; }
.totals { margin-bottom: 12px; }

/* ==== 7. Key figures =========================================================================================== */
/* The website's stat strip: big orange-ink figures, the label under them, thin dividers between. */

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 20px 0 8px;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--bbl-orange); box-shadow: var(--shadow-sm); }
.kpi { position: relative; padding: 18px 22px; }
.kpi + .kpi::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--line); }
.kpi span { display: block; margin-bottom: 8px; color: var(--muted); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; }
.kpi strong { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1; color: var(--bbl-orange-ink);
  letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: var(--fs-sm); font-weight: 500; margin-left: 4px; }
.kpi.internal strong { color: var(--bbl-navy); }
.kpi.internal span::after { content: " · internt"; text-transform: none; letter-spacing: 0; font-weight: 500; }

/* ==== 8. Cards, notices and tags =============================================================================== */

.card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 4px 24px 24px; margin: 24px 0; }
.card h2 { margin-top: 22px; }

.flash { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; padding: 12px 16px;
  background: var(--bbl-sage-tint); border-left: 4px solid var(--bbl-sage-600); color: var(--ink); font-weight: 500; }
.flash button { min-height: 32px; padding: 0 12px; }
.alert { padding: 12px 16px; margin: 12px 0; background: var(--bbl-orange-tint); border-left: 4px solid var(--bbl-orange);
  color: var(--ink); font-weight: 500; }

.tag { display: inline-block; padding: 2px 8px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--bbl-orange-ink); background: var(--bbl-orange-tint); vertical-align: middle; }

.tabs { display: flex; gap: 24px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 0; color: var(--muted); font-weight: 700; font-size: var(--fs-sm); text-transform: uppercase;
  letter-spacing: 0.08em; text-decoration: none; }
.tabs a:hover { color: var(--bbl-orange-ink); }
.tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--bbl-orange); }

/* ==== 9. Page patterns ========================================================================================= */

main { width: 100%; max-width: var(--container); margin: 0 auto; padding: 32px var(--gutter) 56px; flex: 1; }
.crumb { margin: 0 0 8px; font-size: var(--fs-sm); color: var(--muted); }
.crumb a { color: var(--muted); }
.titlebar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.actions-top { display: flex; flex-wrap: wrap; gap: 10px; }
.lede { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-md); }
.next { margin: 8px 0 0; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 40px; }
.facts { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
.comment { white-space: pre-line; background: var(--surface-2); border-left: 3px solid var(--bbl-beige); padding: 12px 16px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border-bottom: 0; }

.timeline { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); }
.timeline li { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .muted { display: inline-block; min-width: 190px; font-size: var(--fs-sm); }
.timeline.archive .muted { display: block; min-width: 0; }
.timeline.archive .text { white-space: pre-line; }

.months { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 12px; }
.months input { text-align: right; font-variant-numeric: tabular-nums; }
.years { margin-left: auto; font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0; text-transform: none; }
.contact { border-top: 1px solid var(--line); padding: 18px 0 4px; }
.contact:first-of-type { border-top: 0; }
.article { border-top: 1px solid var(--line); padding: 18px 0 6px; }
.article:first-of-type { border-top: 0; }
.article-head { margin-bottom: 10px; }
.quick { white-space: nowrap; }
.quick select { width: auto; min-height: 34px; max-width: 160px; }
.quick button, .quick .button { min-height: 34px; padding: 0 10px; font-size: var(--fs-xs); }
.pager { display: flex; gap: 10px; margin-top: 16px; }

/* ==== 10. Sign-in ============================================================================================== */
/* A navy band with the bee wings, like the website's dark sections; the only place navy fills the screen. */

.signin { flex: 1; display: grid; place-items: center; padding: 48px var(--gutter); background: var(--bbl-navy);
  position: relative; overflow: hidden; }
.signin::after { content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 350px; opacity: 0.07;
  background: url("/static/img/wings-white.png") no-repeat center / contain; pointer-events: none; }
.signin .panel { position: relative; z-index: 1; width: 100%; max-width: 440px; background: var(--surface); padding: 40px 36px;
  box-shadow: var(--shadow-lg); border-top: 4px solid var(--bbl-orange); }
.signin .panel > img { display: block; width: 140px; height: auto; margin-bottom: 26px; }
.signin .eyebrow { display: block; margin-bottom: 8px; color: var(--bbl-orange-ink); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.signin h1 { margin-bottom: 12px; }
.signin .button { width: 100%; min-height: 48px; margin-top: 18px; font-size: var(--fs-base); }
.signin .dev { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
body.bare main { max-width: none; padding: 0; display: flex; }

/* ==== 11. Footer =============================================================================================== */

footer { display: flex; justify-content: space-between; gap: 16px; padding: 16px var(--gutter); background: var(--bbl-navy);
  color: #AFC1CF; font-size: var(--fs-xs); letter-spacing: 0.04em; }

/* ==== 12. Small screens ======================================================================================== */

@media (max-width: 760px) {
  .top { gap: 14px; flex-wrap: wrap; padding-top: 8px; }
  .brand img { width: 92px; height: 32px; }
  .top nav { order: 3; width: calc(100% + var(--gutter) * 2); overflow-x: auto; margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter); min-height: 44px; border-top: 1px solid var(--line); }
  .top nav a { padding: 0 10px; white-space: nowrap; }
  main { padding-top: 22px; }
  .titlebar { flex-direction: column; }
  .filters input[type=search] { min-width: 0; flex: 1 1 100%; }
  .filters .spacer { display: none; }
  .kpi + .kpi::before { display: none; }
  .kpi + .kpi { border-top: 1px solid var(--line); }
  .grid .sticky { min-width: 150px; }
  .list thead { display: none; }
  .list tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .list tr:last-child { border-bottom: 0; }
  .list td { display: inline; padding: 0 8px 0 0; border: 0; }
  .list td:first-child { display: block; margin-bottom: 4px; }
  .list .num { text-align: left; }
  .quick { white-space: normal; display: flex !important; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .timeline .muted { display: block; min-width: 0; }
  .facts { grid-template-columns: 110px 1fr; }
  .signin .panel { padding: 30px 22px; }
  footer { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}

/* ==== 13. Pipeline as a board ================================================================================= */
/* Each phase a column, as in a kanban board; a lane per kind of customer. Same square, warm look as the rest. */

.views { display: inline-flex; margin: 20px 0 0; border: 2px solid var(--ghost-border); }
.views a { padding: 8px 18px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); text-decoration: none; }
.views a + a { border-left: 2px solid var(--ghost-border); }
.views a:hover { background: var(--bbl-orange-tint); color: var(--bbl-orange-ink); }
.views a[aria-current="page"] { background: var(--bbl-orange); color: var(--on-orange); }

.lane + .lane { margin-top: 12px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto;
  padding-bottom: 10px; scroll-snap-type: x proximity; }
.column { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 0 0 12px; background: var(--surface-2);
  border-top: 3px solid var(--bbl-orange); scroll-snap-align: start; }
.column-head { padding: 12px 14px 4px; }
.column-head strong { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.column-sum { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.column-empty { margin: 0 14px; color: var(--muted); font-size: var(--fs-sm); }
.kcard { margin: 0 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.kcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.kcard-title { display: block; font-weight: 700; color: var(--ink); }
.kcard-title:hover { color: var(--bbl-orange-ink); }
.kcard-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; color: var(--muted); font-size: var(--fs-sm); }
.kcard-meta .num { margin-left: auto; color: var(--bbl-orange-ink); font-weight: 700; }
.kcard-next { margin: 8px 0 0; font-size: var(--fs-sm); }
.kcard-next.overdue { color: var(--bbl-red); font-weight: 500; }
.move { margin-top: 8px; }
.move summary { display: inline-block; cursor: pointer; list-style: none; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.move summary::-webkit-details-marker { display: none; }
.move summary:hover { color: var(--bbl-orange-ink); }
.move form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.move button { justify-content: flex-start; min-height: 34px; font-size: var(--fs-xs); }
@media (max-width: 760px) {
  .board { grid-auto-columns: 82vw; }
}

/* ==== 14. Users (admin) ======================================================================================== */

.person { padding: 18px 22px; margin: 12px 0; }
.person.inactive { background: var(--surface-3); }
.person.inactive strong { color: var(--muted); }
.person-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.person-head .inline select { width: auto; }
.person details.profile summary, .person details.danger summary { margin-top: 10px; }
details.profile summary { cursor: pointer; list-style: none; font-size: var(--fs-sm); font-weight: 700; color: var(--muted); padding: 6px 0; }
details.profile summary::-webkit-details-marker { display: none; }
details.profile summary:hover { color: var(--bbl-orange-ink); }
details.profile[open] { padding-bottom: 8px; }
.tag.off { color: var(--bbl-red); background: var(--bbl-red-tint); }
.roles td:first-child { width: 140px; }
