:root {
  --bg: #f5f3ef;
  --bg-2: #ece8e1;
  --panel: #ffffff;
  --ink: #17191d;
  --ink-2: #2a2d33;
  --muted: #6e7178;
  --line: #e6e1d8;
  --line-2: #d8d1c4;
  --accent: #23302c;
  --accent-ink: #ffffff;
  --accent-soft: #eceee9;
  --brass: #b08d57;
  --brass-2: #d6b67e;
  --brass-soft: #f6efe3;
  --brand: var(--brass);
  --warn: #b7791f;
  --warn-soft: #fbf2e2;
  --err: #b23a3a;
  --err-soft: #fbeaea;
  --ok: #2f7d4a;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 1px 1px rgba(23,25,29,.03), 0 8px 28px -12px rgba(23,25,29,.12);
  --shadow-h: 0 2px 4px rgba(23,25,29,.04), 0 18px 40px -16px rgba(23,25,29,.22);
  --ease: cubic-bezier(.2,.7,.2,1);
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(176,141,87,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(35,48,44,.06), transparent 60%),
    var(--bg);
  background-attachment: fixed; min-height: 100vh;
}
::selection { background: var(--brass-2); color: var(--ink); }
h1, h2, h3 { margin: 0 0 .6em; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 1.32rem; }
h3 { font-size: 1.04rem; }
a { color: var(--accent); text-underline-offset: 3px; }
button, .btn {
  font: inherit; font-weight: 600; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  border-radius: 10px; padding: .5em 1.05em; cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; gap: .45em; white-space: nowrap; letter-spacing: .005em;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s, opacity .2s;
}
button:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(23,25,29,.45); }
button:active, .btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
button:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
button.ghost, .btn.ghost { background: transparent; color: var(--accent); border-color: var(--line-2); }
button.ghost:hover, .btn.ghost:hover { border-color: var(--accent); background: rgba(35,48,44,.04); }
button.light { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.04); }
button.light:hover { border-color: var(--brass-2); color: var(--brass-2); }
button.danger { background: transparent; color: var(--err); border-color: rgba(178,58,58,.45); }
button.icon { background: transparent; border: none; color: var(--muted); padding: .2em .45em; border-radius: 8px; }
button.icon:hover { color: var(--ink); background: rgba(23,25,29,.06); box-shadow: none; transform: none; }
button.small, .btn.small { padding: .25em .65em; font-size: .85rem; border-radius: 8px; }
input, select, textarea {
  font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: .5em .7em; background: #fff;
  color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s, background .2s;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px rgba(176,141,87,.16); }
label { display: block; font-size: .82rem; color: var(--muted); }
label > input, label > select, label > textarea { margin-top: .25em; }
.small { font-size: .85rem; color: var(--muted); }
.small.light { color: rgba(255,255,255,.6); }
button.small, .btn.small { color: var(--accent-ink); }
button.small.ghost, .btn.small.ghost { color: var(--accent); }
button.small.danger { color: var(--err); }
.row { display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6em; }

.topbar {
  display: flex; align-items: center; gap: 1.1rem; padding: .75rem 1.5rem; color: #fff;
  background: rgba(20,22,25,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06); position: sticky; top: 0; z-index: 20;
}
.brand { font-weight: 800; letter-spacing: .22em; text-decoration: none; font-size: 1.02rem; display: inline-flex; align-items: baseline;
  background: linear-gradient(100deg, var(--brass-2), var(--brass) 45%, #f1dcb0 70%, var(--brass));
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite; }
.brand span { -webkit-text-fill-color: rgba(255,255,255,.5); font-weight: 500; letter-spacing: .01em; font-size: .82rem; margin-left: .7em; }
@keyframes sheen { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.crumbs { display: flex; gap: .5em; align-items: center; color: rgba(255,255,255,.55); font-size: .9rem; }
.crumbs a { color: rgba(255,255,255,.9); text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--brass-2); }

main { padding: 1.5rem; max-width: 1600px; margin: 0 auto; }
main.enter > * { animation: rise .5s var(--ease) both; }
main.enter > *:nth-child(2) { animation-delay: .05s; }
main.enter > *:nth-child(3) { animation-delay: .1s; }
main.enter > *:nth-child(4) { animation-delay: .15s; }
main.enter > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow); margin-bottom: 1.1rem; transition: box-shadow .3s var(--ease), border-color .3s; }
.panel:hover { box-shadow: var(--shadow-h); }
details.panel > summary { list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: "›"; float: right; color: var(--muted); font-size: 1.3rem; line-height: 1; transition: transform .25s var(--ease); }
details.panel[open] > summary::after { transform: rotate(90deg); }
details[open] > :not(summary) { animation: rise .35s var(--ease) both; }
.layout { display: grid; grid-template-columns: 300px 1fr; gap: 1.1rem; align-items: start; }
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.1rem; align-items: start; }
.room-grid > .panel { margin-bottom: 1.1rem; }
@media (max-width: 1250px) { .room-grid { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.1rem; align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }
.svgbox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: .5rem; }
.svgbox svg { width: 100%; height: auto; max-height: 72vh; display: block; }
.editor { display: grid; grid-template-columns: 420px 1fr 340px; gap: 1.1rem; align-items: start; }
@media (max-width: 1200px) { .editor { grid-template-columns: 1fr 1fr; } .editor > .chatcol { grid-column: 1 / -1; } }
@media (max-width: 860px) { .layout, .editor { grid-template-columns: 1fr; } .grid4 { grid-template-columns: 1fr 1fr; } main { padding: 1rem; } .brand span { display: none; } }

.drop { position: relative; border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 2.2rem; text-align: center;
  background: linear-gradient(180deg, #fdfcfa, #f8f6f2); cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease); }
.drop:hover { border-color: var(--brass); background: linear-gradient(180deg, #fffdf9, var(--brass-soft)); }
.drop.over { border-color: var(--brass); border-style: solid; background: var(--brass-soft); transform: scale(1.01);
  box-shadow: 0 0 0 6px rgba(176,141,87,.12); }
.drop-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; align-items: center; justify-content: center;
  color: var(--brass); background: var(--brass-soft); margin-bottom: .5rem; transition: transform .3s var(--ease); }
.drop:hover .drop-icon, .drop.over .drop-icon { transform: translateY(-3px); }

.list { display: flex; flex-direction: column; gap: .45rem; }
.room-btn { display: flex; justify-content: space-between; gap: .5rem; width: 100%; text-align: left; font-weight: 500;
  background: #fff; color: var(--ink); border: 1px solid var(--line); padding: .6em .8em; border-radius: 11px; }
.room-btn:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.room-btn.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--brass); }
.room-btn b { font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: .3em; padding: .12em .6em; border-radius: 99px; font-size: .74rem; font-weight: 600; background: var(--bg-2); color: var(--ink-2); }
.badge.err { background: var(--err-soft); color: var(--err); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.ok { background: #e7f1ea; color: var(--ok); }
.badge.low { background: var(--err-soft); color: var(--err); }
.badge.medium { background: var(--warn-soft); color: var(--warn); }
.badge.high { background: #e7f1ea; color: var(--ok); }

table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: .5em .55em; text-align: left; vertical-align: top; font-size: .9rem; }
th { color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.sel td { background: var(--brass-soft); }
tr.clickable { cursor: pointer; }
tr.clickable td { transition: background .15s; }
tr.clickable:hover td { background: #faf7f1; }
tr.group td { background: #f7f5f0; font-weight: 700; }
tr.total td { font-weight: 800; border-bottom: none; }
table.sections input { padding: .25em .35em; min-width: 52px; }

.tabs { display: flex; gap: .2rem; margin-bottom: .8rem; border-bottom: 1px solid var(--line); }
.tab { background: none; color: var(--muted); border: none; border-bottom: 2px solid transparent; border-radius: 0; padding: .55em .9em; font-weight: 600; }
.tab:hover { color: var(--ink); transform: none; box-shadow: none; }
.tab.active { color: var(--ink); border-bottom-color: var(--brass); }

.viewer { width: 100%; height: 520px; border-radius: var(--radius-s); overflow: hidden; background: radial-gradient(circle at 50% 30%, #f4f2ee, #e4e0d8); position: relative; }
.viewer.small-v { height: 400px; }
.viewer .hint { position: absolute; left: .7rem; bottom: .6rem; font-size: .76rem; color: var(--muted); pointer-events: none;
  background: rgba(255,255,255,.7); backdrop-filter: blur(6px); padding: .15em .55em; border-radius: 99px; }
.sheet img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }

.progress-bar { height: 6px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.progress-bar > div { height: 100%; border-radius: 99px; transition: width .6s var(--ease);
  background: linear-gradient(90deg, var(--brass), var(--brass-2), var(--brass)); background-size: 200% 100%; animation: flow 1.6s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }
.note { border-radius: 10px; padding: .6em .85em; font-size: .88rem; margin: .45rem 0; border: 1px solid transparent; }
.note.err { background: var(--err-soft); color: var(--err); border-color: rgba(178,58,58,.15); }
.note.warn { background: var(--warn-soft); color: #7a5312; border-color: rgba(183,121,31,.18); }
.note.info { background: var(--accent-soft); color: var(--accent); border-color: rgba(35,48,44,.08); }
.issues { margin: 0; padding-left: 1.1rem; font-size: .86rem; }
.issues li { margin: .15rem 0; }
.issues li.err { color: var(--err); }
.issues li.warn { color: #7a5312; }
.issues li.ok { color: var(--ink, inherit); }

.chat-log { display: flex; flex-direction: column; gap: .55rem; max-height: 52vh; overflow: auto; padding: .2rem; margin-bottom: .6rem; scroll-behavior: smooth; }
.msg { padding: .6em .85em; border-radius: 14px; font-size: .9rem; white-space: pre-wrap; max-width: 92%; animation: rise .3s var(--ease) both; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: #f3f0ea; border-bottom-left-radius: 4px; }
.msg.system { align-self: center; background: none; color: var(--muted); font-size: .8rem; }
.changes { font-size: .8rem; margin: .3rem 0 0; padding-left: 1rem; }
.total-big { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.kpi > div { display: flex; flex-direction: column; }
.toast { position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%); background: rgba(20,22,25,.94); color: #fff;
  padding: .7em 1.2em; border-radius: 12px; z-index: 50; max-width: 90vw; box-shadow: 0 16px 40px -12px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(8px); animation: toastIn .35s var(--ease) both; }
.toast:not([hidden]) { display: block; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.est-card { display: flex; gap: 1rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink);
  transition: transform .22s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.est-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-h); }
.est-card b { font-weight: 700; }
.spin { display: inline-block; width: 1em; height: 1em; border: 2px solid rgba(176,141,87,.25); border-top-color: var(--brass);
  border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* головна: шапка */
.hero { padding: 1.6rem 0 1.3rem; }
.hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 .35rem; line-height: 1.15; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--brass), #8c6a36); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; color: var(--muted); max-width: 680px; }
.hero-steps { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; }
.hero-steps span { font-size: .8rem; font-weight: 600; padding: .3em .8em; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.hero-steps span b { color: var(--brass); margin-right: .35em; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 2.6em; }
.pw-eye { position: absolute; right: .35em; top: 50%; transform: translateY(-50%); display: flex; padding: .25em; }
.pw-eye:hover { color: var(--ink); }

.sketch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: .8rem; }
.sketch-card { border: 1px solid var(--line); border-radius: 12px; padding: .7rem; cursor: pointer; background: #fcfbfa; transition: transform .22s var(--ease), box-shadow .25s, border-color .2s; }
.sketch-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-h); }
.sketch-card.sel { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176,141,87,.18); }
.sketch-card .svgbox { margin-top: .4rem; }
.sketch-card .svgbox svg { max-height: 560px; }
.panel-sketch > div:first-child { border: 2px solid #8b8478; background: #e9e1d2; margin: .5rem auto; max-width: 100%; }

.zone-chip { display: inline-flex; align-items: center; gap: .3em; background: #fde8e8; color: #b91c1c; border: 1px solid #f5b5b5;
  border-radius: 99px; padding: .1em .3em .1em .7em; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.zone-chip[hidden] { display: none; }
.zone-chip .icon { color: #b91c1c; }
.svgbox.picking svg { cursor: crosshair; outline: 2px dashed #dc2626; outline-offset: 4px; }
.svgbox svg { touch-action: none; user-select: none; }
button.active:not(.tab):not(.room-btn) { background: #fde8e8; border-color: #dc2626; color: #b91c1c; }
.msg-zone { font-size: .78rem; margin-top: .25rem; opacity: .85; }

.render-strip { display: flex; gap: .4rem; overflow-x: auto; padding: .4rem 0; }
.render-thumb { height: 110px; width: auto; border-radius: 10px; border: 1px solid var(--line); display: block; transition: transform .25s var(--ease), box-shadow .25s; }
.render-thumb:hover { transform: scale(1.03); box-shadow: var(--shadow-h); }
.badge.ok { background: var(--accent-soft); color: var(--accent); }

.sheet-wrap { position: relative; }
.sheet-wrap img { width: 100%; display: block; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.sheet-mark { position: absolute; border: 3px solid #dc2626; border-radius: 4px; background: rgba(220,38,38,.06); }
.sheet-mark span { position: absolute; left: -3px; top: -1.6em; background: #dc2626; color: #fff; font-size: .72rem; font-weight: 600;
  padding: .1em .45em; border-radius: 4px 4px 4px 0; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }

.stage-steps { display: flex; gap: .4rem; margin: .5rem 0; font-size: .82rem; }
.stage-steps span { flex: 1; text-align: center; padding: .3em .4em; border-radius: 6px; background: var(--line); color: var(--muted); }
.stage-steps span.on { background: linear-gradient(135deg, var(--accent), #33463f); color: #fff; font-weight: 600; }
.stage-steps span.done { background: var(--accent-soft); color: var(--accent); }
.room-badges { display: flex; flex-wrap: wrap; gap: .25rem; }

/* вкладка «Зони»: креслення ліворуч, кроки праворуч */
.zlayout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); gap: 1.2rem; align-items: start; }
@media (max-width: 1000px) { .zlayout { grid-template-columns: 1fr; } }
.zdraw { position: sticky; top: .8rem; }
.zside { display: flex; flex-direction: column; gap: .7rem; }
.zstep { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; background: #fcfbfa;
  display: flex; flex-direction: column; gap: .5rem; }
.zstep-h { display: flex; align-items: center; gap: .5rem; }
.zstep-n { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: linear-gradient(135deg, var(--brass-2), var(--brass)); color: #fff; font-size: .8rem;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.zgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.zgrid2 > button { justify-content: center; }
.zfield { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: var(--muted); min-width: 0; }
.zfield > input, .zfield > select { width: 100%; color: var(--ink); font-size: .92rem; }
.zrow { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.zrow > input { flex: 1; min-width: 0; }
.seg { display: inline-flex; }
.seg > button { border-radius: 0; }
.seg > button:first-child { border-radius: 7px 0 0 7px; }
.seg > button:last-child { border-radius: 0 7px 7px 0; margin-left: -1px; }
.zsel-chips { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.chip { background: var(--accent-soft); color: var(--accent); font-weight: 600; border-radius: 999px; padding: .1em .6em; font-size: .8rem; }
.zrenders { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: .35rem; }
.zrender { position: relative; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; overflow: hidden;
  aspect-ratio: 1 / 1; display: block; opacity: .55; }
.zrender img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zrender.on { border-color: var(--accent); opacity: 1; }
.zrender:hover { opacity: 1; filter: none; }
.zcheck { position: absolute; top: 3px; right: 3px; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: rgba(255,255,255,.9);
  border: 1px solid var(--line); color: var(--accent); font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.zrender.on .zcheck { background: var(--accent); color: #fff; border-color: var(--accent); }
.zbuild { position: sticky; bottom: .6rem; background: var(--panel); padding: .6rem; border-radius: var(--radius); box-shadow: var(--shadow); }
button.big { width: 100%; justify-content: center; padding: .7em 1em; font-size: 1rem; font-weight: 600; }
.muted { color: var(--muted); }
.zgroups { display: flex; flex-direction: column; gap: .4rem; }
.zgroup { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .6rem; display: flex; flex-direction: column; gap: .25rem; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .7rem; }
@media (max-width: 800px) { .methods { grid-template-columns: 1fr; } }
.method { transition: border-color .2s, background .2s, box-shadow .25s; display: flex; gap: .55rem; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .7rem; cursor: pointer; background: #fff; }
.method:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.method:has(input:checked) { border-color: var(--brass); background: var(--brass-soft); box-shadow: 0 0 0 3px rgba(176,141,87,.12); }
.method input { accent-color: var(--brass); }
/* виріб з файлів */
.ff { display: flex; flex-direction: column; gap: .75rem; }
.ff textarea { width: 100%; }
.ff-drop { padding: 1.4rem; }
.ff-list { display: flex; flex-direction: column; gap: .35rem; }
.ff-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.ff-cards:empty { display: none; }
.ff-card { --link: transparent; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; animation: rise .35s var(--ease) both;
  transition: transform .22s var(--ease), box-shadow .25s, border-color .2s; }
.ff-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); }
.ff-card.linked, .rf-thumb.linked, .ff-thumbs a.linked { border-color: var(--link); box-shadow: 0 0 0 2px color-mix(in srgb, var(--link) 22%, transparent); }
.ff-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2); }
.ff-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.ff-card:hover .ff-media img { transform: scale(1.04); }
.ff-media .ff-pdf { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: .1em; color: var(--brass); }
.ff-num, .rf-num { position: absolute; top: .45rem; left: .45rem; z-index: 1; background: rgba(20,22,25,.78); color: #fff; backdrop-filter: blur(6px);
  border-radius: 7px; padding: .05em .5em; font-size: .74rem; font-weight: 700; }
.linked > .ff-num, .linked .ff-media .ff-num, .linked > .rf-num { background: var(--link); }
.ff-thumbs a { position: relative; }
.ff-del, .rf-del { position: absolute; top: .4rem; right: .4rem; z-index: 1; background: rgba(255,255,255,.92) !important; border-radius: 50%;
  width: 1.7rem; height: 1.7rem; justify-content: center; padding: 0; opacity: 0; transition: opacity .2s; }
.ff-card:hover .ff-del, .rf-thumb:hover .rf-del, .ff-del:focus, .rf-del:focus { opacity: 1; }
@media (hover: none) { .ff-del, .rf-del { opacity: 1; } }
.ff-body { padding: .55rem; display: flex; flex-direction: column; gap: .4rem; }
.ff-body select { font-size: .82rem; padding: .3em .45em; }
.ff-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: .5rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .3rem .4rem; }
.ff-row img, .ff-pdf { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: .75rem; color: var(--accent); }
.ff-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; font-weight: 600; }
.ff-row select { width: auto; }
.ff-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.ff-thumbs a { --link: transparent; display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: var(--ink); border: 1px solid transparent; border-radius: 12px; padding: .3rem; transition: background .2s; }
.ff-thumbs a:hover { background: #faf8f4; }
.ff-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
/* файли приміщення */
.rf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; }
.rf-thumb { --link: transparent; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .35rem; display: flex; flex-direction: column; gap: .35rem;
  transition: transform .22s var(--ease), box-shadow .25s; }
.rf-thumb:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); }
.rf-thumb.small { border-color: var(--warn); }
.rf-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.rf-tags { display: flex; flex-wrap: wrap; gap: .25rem; }
.rf-what { font-size: .76rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chip.new { background: var(--brass-soft); color: #6b5229; font-weight: 600; }
.chip.warn { background: var(--warn-soft); color: #7a5312; }
.rf-kind, .rf-link, .ff-link { width: 100%; font-size: .8rem; padding: .25rem .4rem; }
.chip.link { display: inline-flex; align-items: center; gap: .2rem; background: var(--link, var(--brass)) !important; color: #fff !important; }
.ff-thumbs a:not(.linked) .chip.link { --link: var(--brass); }
.chip.link .icon { color: #fff; padding: 0 .15rem; font-size: .7rem; background: none; }
.rf-board { display: flex; flex-direction: column; gap: .6rem; }
.rf-wall { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .85rem; background: #fcfbfa; display: flex; flex-direction: column; gap: .4rem; }
.rf-files { display: flex; gap: .4rem; flex-wrap: wrap; }
.rf-files img { height: 70px; border-radius: 6px; border: 1px solid var(--line); }
.rf-items { display: flex; flex-wrap: wrap; gap: .4rem; }
.rf-item { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: .3rem .65rem; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s var(--ease); }
.rf-item:hover { border-color: var(--brass); transform: translateY(-1px); }

/* ---- шліфування інтерфейсу ---- */
.room-btn { flex-direction: column; align-items: stretch; gap: .35rem; }
.room-head { display: flex; justify-content: space-between; align-items: baseline; gap: .1rem .5rem; flex-wrap: wrap; min-width: 0; }
.room-head .small { white-space: nowrap; }
.room-btn.active .room-head b { color: var(--ink); }

.tabs { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; }
.tab.active { background: none; }

/* питання, помилки, підказки — окремими рядками-картками */
.issues { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.issues li { margin: 0; padding: .5em .75em .5em 2em; border-radius: 10px; position: relative; line-height: 1.45; background: #f7f5f1; color: var(--ink-2); }
.issues li::before { position: absolute; left: .7em; top: .5em; font-weight: 800; }
.issues li.err { background: var(--err-soft); color: #8e2c2c; }
.issues li.err::before { content: "!"; color: var(--err); }
.issues li.warn { background: var(--warn-soft); color: #6b4a12; }
.issues li.warn::before { content: "?"; color: var(--warn); }
.issues li:not(.err):not(.warn)::before { content: "•"; color: var(--brass); }

/* креслення в мініатюрах — цілком, на білому; рендери — заповнюють */
img.drawing { object-fit: contain !important; background: #fff; }

/* список кошторисів — сітка карток */
.count { display: inline-flex; margin-left: .5rem; font-size: .78rem; font-weight: 700; color: var(--brass); background: var(--brass-soft); border-radius: 99px; padding: .1em .6em; vertical-align: middle; }
.est-search { max-width: 280px; }
.est-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .75rem; }
.est-card { position: relative; align-items: flex-start; }
.est-card[hidden] { display: none; }
.est-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; color: #fff; background: linear-gradient(135deg, #3a4743, var(--accent)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.est-card:hover .est-ico { background: linear-gradient(135deg, var(--brass-2), var(--brass)); }
.est-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.est-main > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 1.4rem; }
.est-meta { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.est-meta b { color: var(--ink); }
.est-del { position: absolute; top: .5rem; right: .4rem; opacity: 0; transition: opacity .2s; }
.est-card:hover .est-del, .est-del:focus { opacity: 1; }
@media (hover: none) { .est-del { opacity: 1; } }

/* чат: порожній стан з прикладами */
.chat-empty { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1.5rem .5rem; color: var(--ink-2); }
.chat-sugg { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: .2rem; }
.chat-sugg button { white-space: normal; text-align: left; }

/* звичайні розкривні блоки — свій маркер замість трикутника */
details:not(.panel) > summary { list-style: none; cursor: pointer; }
details:not(.panel) > summary::-webkit-details-marker { display: none; }
details:not(.panel) > summary::before { content: "›"; display: inline-block; width: 1em; color: var(--brass); font-weight: 700; transition: transform .2s var(--ease); }
details:not(.panel)[open] > summary::before { transform: rotate(90deg); }

/* кнопка-стрілка «назад», дрібні дії */
.drop h3 { margin: 0 0 .25rem; }

/* головна: виріб — основна дія */
.panel-hero { position: relative; overflow: hidden; border-color: var(--line-2); }
.panel-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--brass), var(--brass-2), var(--brass)); }
.panel-hero .ff-drop { padding: 2rem 1.4rem; }
.drop-icon { display: flex; margin: 0 auto .55rem; }
.drop > b { display: block; font-size: 1.02rem; margin-bottom: .2rem; }
button:disabled:not(.icon):not(.tab) { background: var(--bg-2); color: var(--muted); border-color: var(--line); opacity: 1; }

/* тип файлу: перемикачі Візуал / Креслення / Розріз */
.kind-tg { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.kind-tg .kt { flex: 1 1 auto; min-width: 0; padding: .28rem .45rem; font-size: .76rem; font-weight: 600; border-radius: 999px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; transition: background .18s, color .18s, border-color .18s; }
.kind-tg .kt:hover { border-color: var(--brass); }
.kind-tg .kt.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.kind-tg .kt.ai { border-style: dashed; border-color: var(--brass); }
.kind-tg .kt-note { flex-basis: 100%; font-size: .72rem; }

/* підпис під фото для AI */
.ff-note { width: 100%; min-height: 2.6em; resize: vertical; font-size: .8rem; line-height: 1.35; padding: .35rem .5rem; border-radius: 8px; }
.ff-note:not(:placeholder-shown) { border-color: var(--brass); background: #fffdf8; }

/* перемикач моделі AI у верхній панелі */
#aiInfo { display: inline-flex; align-items: center; gap: .4rem; }
.model-pick { width: auto; padding: .25rem 1.8rem .25rem .6rem; font-size: .8rem; font-weight: 600; border-radius: 999px;
  background-color: rgba(255,255,255,.08); color: #f3efe7; border: 1px solid rgba(214,182,126,.55); }
.model-pick option { color: #1d1d1b; }

/* опис файлів від AI (етап 1) */
.ai-desc { margin-top: .8rem; border: 1px solid var(--line); border-radius: 12px; padding: .55rem .8rem; background: #fcfbf8; }
.ai-desc summary { cursor: pointer; font-weight: 600; font-size: .88rem; }
.ai-desc-text { width: 100%; white-space: pre-wrap; font-size: .82rem; line-height: 1.5; margin-top: .3rem; min-height: 260px; max-height: 620px; resize: vertical; font-family: inherit; }

/* перевірка опису (чернетка) */
.draft-split { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.6fr); }
.draft-text { min-height: 560px; max-height: none; }
@media (max-width: 900px) { .draft-split { grid-template-columns: 1fr; } }

/* редактор секцій і ярусів (з IT-Мебляр) */
.sections-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; align-items: start; }
.section-card { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; background: #fcfbf8; display: flex; flex-direction: column; gap: .45rem; }
.section-card h3 { display: flex; align-items: center; gap: .5rem; margin: 0; }
.columns-box { margin-top: .3rem; padding: .5rem; border: 1px dashed var(--line); border-radius: 10px; background: #fff; display: flex; flex-direction: column; gap: .45rem; }
.columns-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .4rem; margin-top: .3rem; }
.column-card { border: 1px solid var(--line); border-radius: 9px; padding: .5rem; background: #fcfbf8; display: flex; flex-direction: column; gap: .35rem; }
.tier-card.side-open { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass-soft); }
.el-mini { gap: .35rem; align-items: center; }
.note-in textarea { min-height: 2.4em; font-size: .82rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
/* специфікація */
.bom-sum { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; }
.bom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.bom-group { display: flex; flex-direction: column; gap: .35rem; }
table.bom { width: 100%; border-collapse: collapse; font-size: .82rem; }
table.bom th { text-align: left; font-weight: 600; color: var(--muted, #777); border-bottom: 1px solid var(--line); padding: .25rem .3rem; }
table.bom td { border-bottom: 1px solid var(--line); padding: .25rem .3rem; }
table.bom td.num { text-align: right; font-variant-numeric: tabular-nums; }
.view-tg .kt { font-weight: 500; }
.view-tg .kt.on { background: var(--brass); border-color: var(--brass); color: #fff; }

/* питання AI з відповідями менеджера */
.qa { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .8rem; }
.qa-item { border-radius: 12px; padding: .6rem .8rem; background: var(--warn-soft); border: 1px solid transparent; }
.qa-item.ok { background: #eef5ef; border-color: #cfe3d3; }
.qa-item.answered { background: #f3f0fa; border-color: #ddd5ef; }
.qa-q { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; line-height: 1.45; }
.qa-mark { font-weight: 700; color: var(--brass); min-width: 1em; }
.qa-item.ok .qa-mark { color: #3f7f55; }
.qa-a { font-size: .84rem; margin: .3rem 0 0 1.6rem; color: #4b4560; }
.qa-actions { gap: .4rem; margin: .45rem 0 0 1.6rem; flex-wrap: wrap; }
.qa-form { margin: .4rem 0 0 1.6rem; }

/* номери ярусів і двері на ескізі */
.sk-badge { cursor: pointer; }
.sk-badge:hover rect { fill: #b08d57; opacity: 1; }
.sk-door { cursor: pointer; }
.sk-door:hover { fill: rgba(176, 141, 87, .12); }

/* живий редактор: номери як на ескізі, компактні яруси */
.sec-no, .tier-no { display: inline-flex; align-items: center; justify-content: center; min-width: 2.1em; height: 1.6em; padding: 0 .45em;
  border-radius: 999px; background: #23302c; color: #fff; font-weight: 700; font-size: .8rem; }
.section-card h3 { font-size: 1rem; }
.tier-head { gap: .4rem; align-items: center; }
.tier-head .tier-preset { flex: 1; min-width: 0; font-size: .82rem; padding: .3rem .45rem; }
.tier-main { gap: .4rem; align-items: end; }
.tier-main label { font-size: .75rem; }
.tier-main input, .tier-main select { font-size: .85rem; padding: .3rem .45rem; }
.tier-more summary { cursor: pointer; font-size: .78rem; color: var(--brass); font-weight: 600; margin-top: .1rem; }
.tier-more[open] { display: flex; flex-direction: column; gap: .35rem; }
.live-status { margin-right: .6rem; }
@keyframes flashcard { 0% { box-shadow: 0 0 0 3px #dc2626; } 100% { box-shadow: 0 0 0 0 transparent; } }
.flash { animation: flashcard 1.6s ease-out; }
.hinge-tg { align-items: center; gap: .25rem; }
.hinge-tg .kt { flex: 0 0 auto; }

/* бібліотека модулів */
.lib { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; background: #fff; margin: .4rem 0 .9rem; }
.lib summary { cursor: pointer; }
.lib-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .55rem 0 .4rem; }
.lib-bar .kind-tg { flex: 0 0 auto; }
.lib-q { flex: 1; min-width: 200px; padding: .35rem .6rem; font-size: .85rem; }
.lib-target { font-size: .82rem; color: var(--muted, #777); margin-bottom: .55rem; display: flex; flex-wrap: wrap; align-items: center; }
.lib-target.on { color: #7a1d1d; background: #fdf0ee; border-radius: 8px; padding: .35rem .6rem; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; }
.lib-card { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: .45rem; background: #fcfbf8; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; transition: transform .15s, box-shadow .2s, border-color .2s; }
.lib-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); border-color: var(--brass); }
.lib-name { font-size: .78rem; font-weight: 600; line-height: 1.25; }
.lib-del { position: absolute; top: 2px; right: 2px; font-size: .7rem; }
.icon.on { background: #23302c; color: #fff; border-radius: 6px; }

/* картка деталі */
.part-card { margin-top: .7rem; border: 1px solid #e8c88a; background: #fffaf0; border-radius: 12px; padding: .6rem .8rem; box-shadow: var(--shadow); }
.part-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.svgbox svg { cursor: pointer; }
.part-hint { flex-basis: 100%; }
/* картка ярусу: готова ніша — окремим рядком, фасад не стискається */
.tier-head { flex-wrap: wrap; }
.tier-head .tier-preset { order: 5; flex: 1 1 100%; }
.tier-head .tier-no { margin-right: auto; }
.tier-main { flex-wrap: wrap; }
.tier-main label:nth-child(2) { flex: 1 1 120px; min-width: 120px; }

/* винятки деталей */
.part-choice { width: auto; font-size: .8rem; padding: .28rem .5rem; }
.exc { margin-top: .6rem; border: 1px dashed var(--line); border-radius: 10px; padding: .45rem .7rem; }
.exc summary { cursor: pointer; }
.exc-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .3rem 0; border-top: 1px solid var(--line); }
.exc-row:first-of-type { border-top: 0; }
.exc-name { font-weight: 600; font-size: .85rem; }
.exc-row .small.ghost { margin-left: auto; }
.exc-row.stale .exc-name { text-decoration: line-through; color: var(--muted, #888); }

/* «+ Деталь» */
.extra-form { margin-top: .6rem; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; background: #fff; display: flex; flex-direction: column; gap: .45rem; }
.extra-form[hidden], .part-card[hidden] { display: none; }
[hidden] { display: none !important; }

.lib-img { width: 60px; height: 84px; object-fit: contain; background: #fff; border-radius: 4px; }
.lib-card[draggable="true"] { cursor: grab; }

/* довідка «Як працювати» */
.help-box { margin: .5rem 0 .8rem; border: 1px solid #e8c88a; background: #fffaf0; border-radius: 12px; padding: .7rem .9rem; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem 1rem; margin-top: .4rem; }
.help-sec ul { margin: .25rem 0 0 1rem; padding: 0; font-size: .82rem; line-height: 1.45; }

.part-sugg { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-top: .55rem; padding-top: .5rem; border-top: 1px dashed #e8c88a; }

/* шаблони виробів */
.tpl-box { margin-top: .7rem; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; background: #fff; }
.tpl-cat { margin-top: .6rem; }
.tpl-cat-name { margin-bottom: .3rem; font-weight: 600; }
.tpl-img { width: 100px; height: 84px; }

/* інструменти 3D «як у SketchUp» */
.v3d-tools { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: .5rem; }
.tb-group { display: flex; flex-wrap: wrap; gap: .25rem; padding-right: .6rem; border-right: 1px solid var(--line); }
.tb-group:last-child { border-right: 0; }
.tb { padding: .25rem .55rem; font-size: .78rem; }
.tb.on { background: #23302c; color: #fff; border-color: #23302c; }
.tb.warn { border-color: var(--brass); color: #8a6f2a; }
.viewer { position: relative; }
.tb.on, .tb.on:hover { color: #fff !important; background: #23302c !important; }
.tb-view { width: auto; font-size: .78rem; padding: .25rem .5rem; }

/* 3D дизайнера як підкладка */
.ref3d { margin: 0 0 .5rem; display: flex; flex-direction: column; gap: .35rem; }
.ref3d .row { gap: .4rem; flex-wrap: wrap; align-items: center; }
.ref3d .ref-head b { color: #1f4f99; }
.ref3d select { width: auto; padding: .15rem .35rem; font-size: .82rem; }
.ref3d input[type=number] { padding: .1rem .3rem; font-size: .82rem; }
.ref3d .ref-cmp .chip { font-size: .78rem; }

/* довідник меблів */
.kb-link { color: #e9dcc4; text-decoration: none; font-size: .85rem; margin-right: 1rem; }
.kb-link:hover { color: #fff; }
.kb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .7rem; margin: .7rem 0; }
.kb-item { border: 1px solid #e4ded3; border-radius: 10px; padding: .7rem .8rem; background: #fdfbf7; }
.kb-item.off { opacity: .55; }
.kb-item .row { gap: .35rem; flex-wrap: wrap; align-items: center; }
.kb-item dl { margin: .5rem 0 0; font-size: .83rem; display: grid; grid-template-columns: max-content 1fr; gap: .2rem .6rem; }
.kb-item dt { color: #8a8478; }
.kb-item dd { margin: 0; }
.kb-form { display: flex; flex-direction: column; gap: .4rem; }
.kb-form label { display: flex; flex-direction: column; font-size: .8rem; gap: .15rem; }
.kb-gen { font-size: .85rem; margin: .3rem 0 .8rem; padding-left: 1.1rem; }
.kb-gen li { margin-bottom: .25rem; }
.kb-prompt { white-space: pre-wrap; font-size: .75rem; max-height: 420px; overflow: auto; background: #f4f1ea; padding: .7rem; border-radius: 8px; }

/* адмінка */
.admin-stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: .4rem; }
.admin-stats b { font-size: 1.15rem; }
.admin-new input { flex: 1 1 200px; }
.admin-new select { width: auto; }
.admin-fresh { margin-top: .8rem; }
.admin-fresh input { flex: 1; font-family: ui-monospace, Menlo, monospace; }
.admin-tokens { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-tokens th, .admin-tokens td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid #ece6db; vertical-align: top; }
.admin-tokens tr.off { opacity: .55; }
.mono { font-family: ui-monospace, Menlo, monospace; }
.kb-link[hidden] { display: none; }
.chip.ok { background: #e3f1e8; color: #2d6a45; }
.note.ok { background: #eef7f1; color: #24543a; border-color: rgba(45,106,69,.18); }
.table-wrap { overflow-x: auto; }
