:root {
  --bg: #f2f5fa; --panel: #fff; --ink: #14233b; --muted: #5f6f86; --line: #e1e7f0; --line-2: #cfd8e5;
  --navy: #0b1f44; --navy-2: #12295a; --navy-3: #1b3a78; --blue: #1565d8; --blue-2: #0f52b5; --sky: #e8f1fe;
  --accent: #f0a020; --danger: #c4321f; --warn: #b65c06; --ok: #0d7a4a;
  --radius: 12px; --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(16, 34, 70, .05), 0 4px 14px rgba(16, 34, 70, .05);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0 0 4px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 15.5px; margin: 0 0 12px; font-weight: 650; }
h3 { font-size: 14px; margin: 14px 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- frame ---- */
.layout { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, var(--navy) 0%, #0a1a3a 100%); color: #c6d2ea; position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column; }
.side .brand { display: block; padding: 18px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; }
.side .brand:hover { text-decoration: none; }
.side .brand img { display: block; height: 40px; max-width: 190px; object-fit: contain; margin-bottom: 12px; }
.side .brand .chip { display: inline-block; background: #fff; border-radius: 8px; padding: 4px 8px; margin-bottom: 12px; }
.side .brand .chip img { margin: 0; }
.side .brand b { display: block; font-size: 13.5px; letter-spacing: .08em; }
.side .brand span:last-child { font-size: 11.5px; color: #8fa3c8; }
.side .nav { padding: 10px 10px; flex: 1; }
.side .nav a { display: flex; gap: 11px; align-items: center; color: #c6d2ea; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; margin-bottom: 2px; }
.side .nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.side .nav a.on { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(21,101,216,.35); }
.side-foot { padding: 14px 18px; font-size: 11px; color: #6f84ad; border-top: 1px solid rgba(255,255,255,.06); }
.main { min-width: 0; display: flex; flex-direction: column; }

.top { display: flex; align-items: center; gap: 16px; padding: 10px 24px; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20; }
.crumb b { display: block; font-size: 14.5px; }
.crumb span { font-size: 12px; color: var(--muted); }
.search { flex: 1; max-width: 420px; margin-left: auto; position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 11px; color: var(--muted); }
.search input { width: 100%; padding: 8px 12px 8px 36px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.search input:focus { background: #fff; border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--sky); }
.top-right { display: flex; align-items: center; gap: 14px; }
.logo-right { height: 34px; max-width: 150px; object-fit: contain; padding-left: 14px; border-left: 1px solid var(--line); }
.menu-btn { display: none; }
.icon-btn { background: none; border: 0; color: var(--ink); padding: 4px; }
.icon-btn:hover { background: var(--bg); }

.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown .menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(16,34,70,.16); padding: 6px; z-index: 30; }
.dropdown .menu.right { left: auto; right: 0; }
.dropdown.create .menu { display: grid; grid-template-columns: 1fr 1fr; min-width: 340px; right: 0; left: auto; }
.dropdown .menu a, .dropdown .menu .linkish { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--ink);
  font-size: 13.5px; width: 100%; background: none; border: 0; text-align: left; }
.dropdown .menu a:hover, .dropdown .menu .linkish:hover { background: var(--sky); color: var(--blue-2); text-decoration: none; }
.dropdown .menu a svg { color: var(--blue); }
.menu-head { padding: 6px 10px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-head:empty { display: none; }
.usermenu summary { display: flex; gap: 10px; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--sky); color: var(--blue-2); display: grid; place-items: center; font-weight: 700; }
.who b { display: block; font-size: 13px; line-height: 1.2; }
.who small { color: var(--muted); font-size: 11.5px; }

.toasts { position: fixed; top: 64px; right: 20px; z-index: 50; width: min(420px, calc(100vw - 32px)); }
.toasts .msg { box-shadow: 0 8px 24px rgba(16,34,70,.14); cursor: pointer; }

.content { padding: 20px 24px 32px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.content > * { order: 3; }
.content > .sec-badge { display: none; }
.content > .tabs { order: 2; }
/* The first block of every page becomes its banner. */
.content > div.topbar:first-of-type { order: 1; position: relative; color: #fff; border-radius: 16px; padding: 26px 28px 24px;
  margin-bottom: 18px; min-height: 118px; align-items: flex-end;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 140'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='2'%3E%3Cpath d='M150 140L180 10 210 140M160 96h40M166 66h28M172 38h16M160 96l34-30M166 66l22-28M200 96l-34-30M194 66l-22-28M180 10v-8M120 140h130'/%3E%3Cpath d='M30 140v-30h50v30M40 110V95h30v15M220 140v-20h30v20'/%3E%3C/g%3E%3C/svg%3E") right 24px bottom / auto 100% no-repeat,
    radial-gradient(120% 140% at 85% 0%, #2a6fe0 0%, rgba(42,111,224,0) 55%),
    linear-gradient(115deg, var(--navy) 0%, var(--navy-3) 60%, #1d4fa8 100%); }
.content > div.topbar:first-of-type h1 { color: #fff; position: relative; padding-bottom: 10px; }
.content > div.topbar:first-of-type h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 2px; background: #4ea0ff; }
.content > div.topbar:first-of-type .muted { color: #c3d3f0; }
.content > div.topbar:first-of-type a:not(.btn) { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
.content > div.topbar:first-of-type .btn, .content > div.topbar:first-of-type button { background: #fff; color: var(--navy); border-color: #fff; }
.content > div.topbar:first-of-type .btn.ghost, .content > div.topbar:first-of-type button.ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.45); }
.content > div.topbar:first-of-type input, .content > div.topbar:first-of-type select { border-color: transparent; }
.content > div.topbar:first-of-type .badge { background: rgba(255,255,255,.16); color: #fff; }

.topbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; margin: -4px 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; overflow-x: auto; }
.tabs a { padding: 7px 14px; border-radius: 9px; color: var(--muted); font-weight: 550; white-space: nowrap; font-size: 13.5px; }
.tabs a:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.tabs a.on { background: var(--sky); color: var(--blue-2); }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 24px; border-top: 1px solid var(--line);
  background: #fff; font-size: 12px; color: var(--muted); }
.foot .dev { display: flex; align-items: center; gap: 8px; }
.foot .dev img { height: 22px; }

/* ---- building blocks ---- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat .n { font-size: 24px; font-weight: 700; }
.stat .l { color: var(--muted); font-size: 12.5px; }
a.stat:hover { border-color: var(--blue); text-decoration: none; }
a.stat { color: var(--ink); display: block; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: #f7f9fc; text-transform: none; }
tr:first-child th:first-child { border-top-left-radius: 8px; }
tr:first-child th:last-child { border-top-right-radius: 8px; }
tr:hover td { background: #f9fbfe; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 550; background: #eef2f7; color: #3b4a60; white-space: nowrap; }
.badge.ok { background: #dcf5e8; color: var(--ok); }
.badge.warn { background: #fff0d6; color: var(--warn); }
.badge.danger { background: #fde5e1; color: var(--danger); }
.badge.info { background: var(--sky); color: var(--blue-2); }

.bar { height: 8px; background: #e6ecf4; border-radius: 999px; overflow: hidden; min-width: 80px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #4ea0ff); border-radius: 999px; }
.bar.warn > i { background: var(--accent); }

.alert, .msg { padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; border: 1px solid; }
.alert.danger, .msg.error { background: #fef3f1; border-color: #f9cdc5; color: var(--danger); }
.alert.warn, .msg.warning { background: #fff8eb; border-color: #fbdca6; color: var(--warn); }
.msg.success { background: #effaf4; border-color: #b5e8cc; color: var(--ok); }
.msg.info, .alert.info { background: #eff5ff; border-color: #c4dafc; color: var(--blue-2); }
.alert a { color: inherit; }

.btn, button { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--blue); background: var(--blue);
  color: #fff; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 550; line-height: 1.2; }
.btn:hover, button:hover { background: var(--blue-2); text-decoration: none; }
.btn.ghost, button.ghost { background: #fff; color: var(--blue-2); border-color: var(--line-2); }
.btn.ghost:hover, button.ghost:hover { background: var(--sky); border-color: var(--blue); }
.btn.danger, button.danger { background: var(--danger); border-color: var(--danger); }
.btn.sm, button.sm { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn svg.i { width: 16px; height: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; max-width: 100%; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--sky); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--blue); }
textarea { width: 100%; }
form.stack p { margin: 0 0 12px; }
form.stack label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 3px; font-weight: 550; }
form.stack input:not([type=checkbox]):not([type=radio]), form.stack select, form.stack textarea { width: 100%; }
form.stack .helptext { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
form.stack ul:not(.errorlist) { list-style: none; padding: 0; margin: 0; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
form.stack ul:not(.errorlist) li { padding: 5px 10px; border-bottom: 1px solid var(--line); }
form.stack ul:not(.errorlist) label { display: flex; gap: 8px; align-items: center; color: var(--ink); font-weight: 400; margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 18px; }
.errorlist { color: var(--danger); margin: 2px 0; padding-left: 16px; font-size: 12px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.pager { margin-top: 12px; display: flex; gap: 8px; align-items: center; }

/* home */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.tile:hover { border-color: var(--blue); text-decoration: none; transform: translateY(-1px); }
.tile .ic { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; background: var(--sky); color: var(--blue); display: grid; place-items: center; }
.tile b { font-size: 13.5px; }
.tile small { color: var(--muted); font-size: 12px; grid-column: 2; }
.flow { display: flex; gap: 0; overflow-x: auto; padding-bottom: 4px; }
.flow a { flex: 1; min-width: 120px; padding: 12px 14px; position: relative; color: var(--ink); border: 1px solid var(--line); background: #fff; }
.flow a:first-child { border-radius: 12px 0 0 12px; }
.flow a:last-child { border-radius: 0 12px 12px 0; }
.flow a + a { border-left: 0; }
.flow a:hover { background: var(--sky); text-decoration: none; }
.flow .n { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.flow b { display: block; font-size: 13.5px; }
.flow small { color: var(--muted); font-size: 11.5px; }
.list-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }

/* dialog */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 24px 64px rgba(10,25,60,.3); }
dialog::backdrop { background: rgba(10, 22, 50, .45); }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: linear-gradient(115deg, var(--navy), var(--navy-3)); color: #fff; }
dialog .dlg-head h2 { margin: 0; color: #fff; }
dialog .dlg-head button { background: transparent; border: 0; color: #fff; font-size: 20px; padding: 0 4px; }
dialog .dlg-body { padding: 18px 20px; }
dialog .dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: #f7f9fc; }

/* permission matrix */
.perm td, .perm th { text-align: center; }
.perm td:first-child, .perm th:first-child { text-align: left; }
.perm input { transform: scale(1.15); }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.role-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.role-card h3 { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; }

/* storage */
.rack { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; }
.rack h4 { margin: 0 0 6px; font-size: 12.5px; }
.rack .row { display: flex; gap: 3px; margin-bottom: 3px; align-items: center; }
.rack .lv { width: 22px; font-size: 10px; color: var(--muted); }
.slot { flex: 1; min-width: 18px; height: 22px; border-radius: 4px; background: #e8edf5; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #567; }
.slot.full { background: var(--blue); color: #fff; }
.slot.part { background: #8db8f2; color: #fff; }
.racks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }

.scanbox { font-size: 22px; padding: 12px; width: 100%; font-family: ui-monospace, Consolas, monospace; }
#video { width: 100%; max-width: 420px; border-radius: 10px; background: #000; display: none; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photos figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.photos img { width: 100%; height: 120px; object-fit: cover; display: block; }
.photos figcaption { padding: 6px 8px; font-size: 11.5px; }
.qr svg { display: block; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 6px 0 6px 16px; border-left: 2px solid var(--line); position: relative; }
.timeline li:before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); position: absolute; left: -5.5px; top: 12px; }
.litho-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }

/* login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.login-art { color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 140'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.13' stroke-width='1.6'%3E%3Cpath d='M150 140L180 10 210 140M160 96h40M166 66h28M172 38h16M160 96l34-30M166 66l22-28M200 96l-34-30M194 66l-22-28M180 10v-8M100 140h160'/%3E%3Cpath d='M30 140v-30h50v30M40 110V95h30v15'/%3E%3C/g%3E%3C/svg%3E") right bottom / 90% auto no-repeat,
  radial-gradient(100% 80% at 90% 0%, #2a6fe0 0%, rgba(42,111,224,0) 60%), linear-gradient(140deg, var(--navy) 0%, var(--navy-3) 100%); }
.login-art img { height: 46px; }
.login-art h1 { font-size: 34px; margin: 0 0 8px; color: #fff; }
.login-art p { color: #c3d3f0; max-width: 420px; }
.login-art .tag { display: inline-block; font-size: 12px; letter-spacing: .12em; color: #8fb6f5; margin-bottom: 10px; }
.login-box { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.login-form { width: 100%; max-width: 380px; margin: 0 auto; }
.login-form .partner { height: 40px; margin-bottom: 26px; }
.login-form h2 { font-size: 24px; margin: 0 0 4px; }
.login-form input { padding: 11px 12px; }
.login-form button { width: 100%; justify-content: center; padding: 11px; font-size: 15px; margin-top: 4px; }
.login-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 40px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.login-foot img { height: 22px; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .menu-btn { display: inline-flex; }
  .crumb, .who, .logo-right { display: none; }
  .top { padding: 8px 12px; gap: 10px; }
  .g2, .g3, .g4, .g6 { grid-template-columns: 1fr 1fr; }
  .content { padding: 14px 12px 24px; }
  .content > div.topbar:first-of-type { padding: 20px 18px; }
  .dropdown.create .menu { grid-template-columns: 1fr; min-width: 220px; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { padding: 28px; min-height: 220px; }
}
@media (max-width: 560px) {
  .g2, .g3, .g4, .g6 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
}

/* Print: reports and labels */
@media print {
  .side, .top, .noprint, .toasts, .tabs, .foot { display: none !important; }
  .layout { display: block; }
  .content { padding: 0; display: block; }
  .content > div.topbar:first-of-type { background: none !important; color: #000; padding: 0; min-height: 0; border-radius: 0; }
  .content > div.topbar:first-of-type h1, .content > div.topbar:first-of-type .muted { color: #000; }
  .card { border: none; padding: 0; box-shadow: none; }
  body { background: #fff; font-size: 11px; }
  a { color: inherit; }
}

/* checkbox groups (wells, people) */
form.stack div[id^="id_"]:has(> div > label) { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 12px;
  max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
form.stack div[id^="id_"] > div > label { display: flex; gap: 8px; align-items: center; color: var(--ink); font-weight: 400; margin: 0; padding: 3px 0; font-size: 13px; }
.tile:not(:has(small)) .ic { grid-row: auto; }
td.mono, td a.mono, td > a.mono { white-space: nowrap; }

/* masters tree */
.tree details > summary { list-style: none; cursor: pointer; }
.tree details > summary::-webkit-details-marker { display: none; }
.tree .card { padding: 6px 16px; }
.tree .node { margin-left: 22px; border-left: 2px solid var(--line); padding-left: 14px; }
.tree .node.leaf { padding-top: 4px; padding-bottom: 4px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; flex-wrap: wrap; }
.tree details > summary .mrow::before { content: "▸"; color: var(--muted); width: 10px; transition: transform .15s; }
.tree details[open] > summary .mrow::before { transform: rotate(90deg); }
.tree .leaf .mrow::before { content: "•"; color: var(--line-2); width: 10px; }
.mact { margin-left: auto; display: flex; gap: 6px; }
.lvl { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; }
.lvl-basin { background: var(--navy); color: #fff; }
.lvl-area { background: var(--sky); color: var(--blue-2); }
.lvl-block { background: #fff0d6; color: var(--warn); }
.lvl-field { background: #dcf5e8; color: var(--ok); }
