:root {
  --bg: #f5f4f0; --surface: #ffffff; --line: #e1ded6; --line2: #ece9e2; --text: #1d221f; --muted: #686d66;
  --accent: #1f6f5c; --accent-2: #e5f0ec; --error: #b8322a; --error-bg: #fbeceb; --warn: #9a6512; --warn-bg: #fcf3e3;
  --question: #2a5f9e; --question-bg: #eaf1fa; --ok: #2c7a4f; --ok-bg: #e9f5ee; --hl: #f2b705;
  --r: 8px; --shadow: 0 1px 2px rgba(30, 30, 20, .06), 0 2px 10px rgba(30, 30, 20, .04);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 20px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
[hidden] { display: none !important; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 20px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: #1c2b26; color: #eef3f0; }
.top a { color: #eef3f0; }
.brand { font-weight: 700; letter-spacing: .01em; display: flex; align-items: center; gap: 8px; }
.brand svg { width: 22px; height: 22px; }
.top nav { display: flex; gap: 14px; margin-left: 8px; }
.top .who { margin-left: auto; display: flex; gap: 12px; align-items: center; font-size: 13px; opacity: .9; }
main { padding: 18px 20px 40px; max-width: 1680px; margin: 0 auto; }

/* элементы управления */
button, .btn { font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 6px;
  padding: 6px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
button:hover, .btn:hover { border-color: #c9c4b9; text-decoration: none; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover { filter: brightness(1.06); }
button.ghost { border-color: transparent; background: transparent; }
button.danger { color: var(--error); }
button:disabled { opacity: .5; cursor: default; }
button.sm { padding: 3px 8px; font-size: 12.5px; }
input, select, textarea { font: inherit; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; background: #fff; color: var(--text); min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
input[type=number] { width: 100%; }
textarea { width: 100%; resize: vertical; }
label.f { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
label.f > input, label.f > select, label.f > textarea { color: var(--text); font-size: 14px; }
label.f.wide { grid-column: 1 / -1; }
label.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card > header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.card > .body { padding: 12px 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack > * { flex-shrink: 0; }

/* таблицы */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #faf9f6; position: sticky; top: 0; }
.tbl td { padding: 6px 10px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #faf8f3; }
.tbl tr.sel td { background: #fff6d6; }
.tbl tr.grp td { background: #f6f4ee; font-weight: 600; }
.tbl td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td input[type=number] { min-width: 76px; }
.tbl td input:not([type]) { min-width: 150px; width: 100%; }

/* статусы и метки */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; font-size: 12px; background: #efede7; color: #4b4f49; white-space: nowrap; }
.chip.error { background: var(--error-bg); color: var(--error); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.question { background: var(--question-bg); color: var(--question); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* вход */
.login { max-width: 360px; margin: 12vh auto; }
.login .body { display: flex; flex-direction: column; gap: 12px; }

/* проект */
.phead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.phead .title-input { font-size: 18px; font-weight: 650; border-color: transparent; background: transparent; padding: 2px 6px; width: min(420px, 100%); }
.phead .title-input:hover { border-color: var(--line); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.dirty { color: var(--warn); font-size: 13px; }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.split.wide-right { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.sticky { position: sticky; top: 64px; max-height: calc(100vh - 76px); overflow: auto; padding-right: 2px; }
@media (max-width: 1100px) { .split, .split.wide-right { grid-template-columns: minmax(0, 1fr); } .sticky { position: static; max-height: none; overflow: visible; } }

.view3d { position: relative; height: 460px; border-radius: var(--r); overflow: hidden; background: #e9e7e2; }
.view3d.tall { height: 560px; }
.view3d .tools { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; z-index: 2; }
.view3d .tools button { background: rgba(255, 255, 255, .92); }
.view3d .info { position: absolute; left: 10px; bottom: 10px; right: 10px; background: rgba(255, 255, 255, .94); border-radius: 6px; padding: 6px 10px; font-size: 13px; pointer-events: none; }
.planbox { background: #fff; border-radius: var(--r); }
svg.plan { width: 100%; height: auto; max-height: 520px; display: block; font-family: system-ui, sans-serif; }
.plan .floor { fill: #faf8f3; }
.plan .wall { stroke: #2f3431; stroke-width: 36; stroke-linecap: square; cursor: pointer; }
.plan .wall.assumed { stroke: #9aa09a; stroke-dasharray: 90 60; }
.plan text { font-size: var(--fs); fill: #2f3431; text-anchor: middle; dominant-baseline: middle; }
.plan .wl { font-weight: 600; cursor: pointer; }
.plan .wl.assumed { fill: #8a8f89; }
.plan .dl { font-size: calc(var(--fs) * .8); fill: #4b4f49; }
.plan .cap { fill: #6b6f69; font-size: calc(var(--fs) * .9); }
.plan .mid { font-size: calc(var(--fs) * .75); fill: #5b5240; }
.plan .dim, .plan .tick { stroke: #7b807a; stroke-width: 6; }
.plan .gap { stroke: #faf8f3; stroke-width: 44; }
.plan .op { stroke-width: 14; fill: none; cursor: pointer; }
.plan .op.window, .plan .op.balcony_door { stroke: #3d84c6; stroke-width: 22; }
.plan .op.door, .plan .op.passage { stroke: #8a8f89; stroke-dasharray: 40 30; }
.plan .op.niche { fill: #e8eef3; stroke: #6c8aa6; stroke-dasharray: 30 20; }
.plan .reveal { fill: #eef4f9; stroke: #9db7cf; stroke-width: 6; }
.plan .swing { fill: none; stroke: #9aa09a; stroke-width: 8; stroke-dasharray: 30 25; }
.plan .util { stroke: rgba(0, 0, 0, .35); stroke-width: 4; cursor: pointer; }
.plan .mod { cursor: pointer; }
.plan .mod rect { stroke-width: 8; }
.plan .hl, .plan .hl rect { stroke: #d63a2f !important; stroke-width: 26 !important; }
.plan text.hl { fill: #d63a2f; stroke: none !important; }

/* проверка */
.checks .grp { margin-bottom: 10px; }
.checks .grp > h3 { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; }
.checks ul { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.checks li:hover { background: #f6f4ee; }
.checks li.sel { background: #fff6d6; }
.checks li .ic { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; margin-top: 1px; }
.checks .error .ic { background: var(--error-bg); color: var(--error); }
.checks .warn .ic { background: var(--warn-bg); color: var(--warn); }
.checks .question .ic { background: var(--question-bg); color: var(--question); }
.checks .ok .ic { background: var(--ok-bg); color: var(--ok); }
.checks li b { font-weight: 600; }
.summary { display: flex; gap: 6px; flex-wrap: wrap; }

/* формы замера */
.sect { border-top: 1px solid var(--line2); padding: 12px 0 4px; }
.sect:first-child { border-top: 0; padding-top: 0; }
.sect > .row:first-child { margin-bottom: 8px; }
.item { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 10px; background: #fcfbf9; }
.item.sel { border-color: var(--hl); box-shadow: 0 0 0 2px #fff0b8; }
.item > .row:first-child { margin-bottom: 8px; }
.note { font-size: 12px; color: var(--muted); }
.err-box { background: var(--error-bg); color: var(--error); padding: 8px 10px; border-radius: 6px; font-size: 13px; white-space: pre-wrap; }

/* материалы */
.drop { border: 2px dashed #cfcac0; border-radius: var(--r); padding: 22px; text-align: center; color: var(--muted); background: #fbfaf7; }
.drop.over { border-color: var(--accent); background: var(--accent-2); color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; cursor: zoom-in; background: #eee; }
.gallery figcaption { padding: 5px 8px; font-size: 12px; display: flex; gap: 6px; align-items: center; }
.gallery figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.lightbox { position: fixed; inset: 0; background: rgba(15, 18, 16, .88); z-index: 50; display: grid; place-items: center; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 6px; }

/* смета */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: #faf9f6; border: 1px solid var(--line2); border-radius: 8px; padding: 10px 12px; }
.kpi .v { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12px; color: var(--muted); }
.kpi.main { background: var(--accent-2); border-color: #cfe3db; }

.toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: #1f2421; color: #fff; padding: 10px 14px; border-radius: 8px; max-width: 420px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); font-size: 13px; }
.toast.error { background: var(--error); }
.toast.ok { background: var(--ok); }
.empty { padding: 30px; text-align: center; color: var(--muted); }
pre.q { white-space: pre-wrap; background: #faf9f6; border: 1px solid var(--line2); border-radius: 6px; padding: 10px; font-size: 13px; margin: 0; max-height: 360px; overflow: auto; }

@media (max-width: 640px) {
  main { padding: 12px 12px 30px; }
  .top { padding: 10px 12px; gap: 10px; flex-wrap: wrap; }
  .top .who .name { display: none; }
  .view3d { height: 340px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .card > .body, .card > header { padding-left: 10px; padding-right: 10px; }
}

/* 3D-редактор раскладки — рабочее пространство во весь экран */
body.ws-open { overflow: hidden; }
.ws { position: fixed; inset: 0; z-index: 40; background: #e9e7e2; display: flex; flex-direction: column; }
.ws-top { display: flex; align-items: center; gap: 6px; padding: 6px 10px; padding-top: calc(6px + env(safe-area-inset-top, 0px));
  background: #1c2b26; color: #eef3f0; min-height: 46px; flex-wrap: nowrap; overflow-x: auto; position: relative; z-index: 3; }
.ws-top > * { flex: none; }
.ws-top .spacer { flex: 1; min-width: 4px; }
.ws-top select[title="Вариант"] { max-width: 210px; }
.ws-go { width: 96px; }
@media (max-width: 1400px) { .ws-title { display: none; } }
.ws-top button { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #eef3f0; }
.ws-top button:hover { border-color: rgba(255, 255, 255, .4); }
.ws-top button.on { background: #2f6f5e; border-color: #4f9c86; }
.ws-top button.primary { background: #2f9a7c; border-color: #2f9a7c; }
.ws-top button:disabled { opacity: .35; }
.ws-top select, .ws-top input { background: rgba(255, 255, 255, .1); color: #eef3f0; border-color: rgba(255, 255, 255, .2); font-size: 13px; padding: 3px 6px; }
.ws-top select option { color: #1d221f; }
.ws-top .sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .2); margin: 0 3px; }
.ws-top .dirty { color: #f2c46d; font-size: 12px; }
.ws-back { color: #eef3f0; font-size: 18px; padding: 0 6px; }
.ws-title { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; opacity: .9; }
.ws-note { width: 130px; }
.ws-nav { display: flex; gap: 10px; font-size: 13px; }
.ws-nav a { color: #cfe0d9; }
.ws-body { position: relative; flex: 1; min-height: 0; }
.ws-canvas { position: absolute; inset: 0; overflow: hidden; }
.ws-empty { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); max-width: 460px; z-index: 2; }
.ws-panel { position: absolute; top: 12px; bottom: 12px; z-index: 2; background: rgba(255, 255, 255, .96); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 6px 24px rgba(30, 30, 20, .14); display: flex; flex-direction: column; overflow: hidden; }
.ws-left { left: 12px; width: 292px; }
.ws-right { right: 12px; width: 332px; overflow: auto; }
.ws-right > header { display: flex; align-items: center; gap: 8px; padding: 10px 34px 10px 14px; border-bottom: 1px solid var(--line2); }
.ws-right > .body { padding: 12px 14px; }
.ws-x { position: absolute; top: 6px; right: 6px; z-index: 3; padding: 0 7px; font-size: 16px; line-height: 22px; border: 0; background: transparent; color: var(--muted); }
.ws-left .ws-x { top: 7px; }
.ws-tab { position: absolute; top: 12px; z-index: 2; background: rgba(255, 255, 255, .95); box-shadow: 0 3px 12px rgba(0, 0, 0, .12); font-size: 13px; }
.ws-tab-left { left: 12px; }
.ws-tab-right { right: 12px; top: auto; bottom: 12px; }  /* внизу: наверху наезжала на «Шкафы» на узком экране */
.ws-drawer { position: absolute; bottom: 12px; z-index: 2; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 6px 24px rgba(30, 30, 20, .14); display: flex; flex-direction: column; max-height: 46%; }
.ws-dtabs { display: flex; gap: 2px; align-items: center; padding: 4px 6px; }
.ws-dtabs > button { border: 0; background: transparent; font-size: 13px; padding: 5px 10px; border-radius: 6px; color: var(--muted); }
.ws-dtabs > button.on { background: var(--accent-2); color: var(--accent); font-weight: 600; }
.ws-dbody { overflow: auto; padding: 4px 14px 12px; border-top: 1px solid var(--line2); }
.ws-plan svg.plan { max-height: 300px; }
.ws.bare .ws-drawer, .ws.bare .ws-panel, .ws.bare .ws-tab { display: none; }
.inside-bar { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: #fff7df; border: 1px solid #f0d58a;
  padding: 4px 10px; border-radius: 6px; z-index: 3; font-size: 13px; white-space: nowrap; }
.loc .locrow { display: grid; grid-template-columns: 82px 1fr 12px 1fr 38px; gap: 4px; align-items: center; font-size: 12px; margin-top: 4px; }
.elrow { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line2); }
.elrow .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.elrow.error > span:first-child { color: var(--error); font-weight: 600; }
.elrow.warn > span:first-child { color: var(--warn); font-weight: 600; }
.dimlabels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dimlabels span { position: absolute; left: 0; top: 0; background: rgba(255, 255, 255, .93); color: #1f6f5c; font: 600 11.5px system-ui, sans-serif;
  padding: 1px 5px; border-radius: 4px; border: 1px solid #b9d7cc; white-space: nowrap; }
.dimlabels span.drag { left: 50%; top: 56px; transform: translateX(-50%) !important; background: #1f2421; color: #fff; border-color: #1f2421; font-size: 13px; padding: 3px 8px; }
.dimlabels span.gtitle { background: #2f6fd6; color: #fff; border-color: #2f6fd6; font-size: 12.5px; padding: 2px 8px; }

/* панель «Шкафы» */
.cab { display: flex; flex-direction: column; min-height: 0; flex: 1; user-select: none; }
.cab-top { display: flex; align-items: center; gap: 6px; padding: 9px 30px 8px 14px; }
.cab-top b { font-size: 14px; }
.cab-q { flex: 1; min-width: 0; font-size: 12.5px; padding: 3px 7px; }
.ic-btn { padding: 3px 6px; border-radius: 6px; border-color: transparent; background: transparent; }
.ic-btn:hover { background: #f1f0ec; }
.ic-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; display: block; }
.cab-list { flex: 1; overflow: auto; padding: 2px 8px 10px; border-top: 1px solid var(--line2); }
.cab-r { display: flex; align-items: center; gap: 8px; height: 30px; padding-right: 8px; border-radius: 6px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.cab-r:hover { background: #f1f0ec; }
.cab-r.sel { background: #2f6fd6; color: #fff; }
.cab-r .sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .18); flex: none; }
.cab-r .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cab-r .w { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 30px; text-align: right; }
.cab-r.sel .w { color: #dbe6fb; }
.cab-r .bad { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.cab-r .bad.error { background: var(--error-bg); color: var(--error); } .cab-r .bad.warn { background: var(--warn-bg); color: var(--warn); }
.acts { display: inline-flex; gap: 2px; }
.acts .ic { width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 4px; color: #8a8f89; visibility: hidden; }
.acts .ic:hover { background: rgba(0, 0, 0, .07); }
.acts .ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cab-r:hover .acts .ic, .cab-gh:hover .acts .ic, .acts .ic.on { visibility: visible; }
.acts .ic.on { color: #b5651d; }
.cab-r.sel .acts .ic { color: #fff; }
.cab-r.hid .nm, .cab-r.hid .sw, .cab-r.hid .w { opacity: .38; }
.cab-r.locked .nm { color: #8a6a44; } .cab-r.sel.locked .nm { color: #fff; }
.cab-edit { flex: 1; min-width: 0; font-size: 13px; padding: 1px 5px; height: 24px; }
.cab-g { margin: 8px 0 4px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--gc) 28%, #fff); border-left: 4px solid var(--gc);
  background: color-mix(in srgb, var(--gc) 6%, #fff); }
.cab-g .cab-g { margin: 4px 6px 6px; }
.cab-g.sel { box-shadow: 0 0 0 2px var(--gc); }
.cab-g.drop, .cab-sec.drop { outline: 2px dashed #2f6fd6; outline-offset: 1px; background: #e8f0fd; }
.cab-gh { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 6px; font-weight: 650; font-size: 13px; cursor: pointer; }
.cab-gh .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: color-mix(in srgb, var(--gc) 70%, #1d221f); }
.cab-gh .cnt { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.cab-gh .chev { width: 16px; height: 16px; display: inline-grid; place-items: center; color: #8a8f89; }
.cab-gh .chev svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .12s; }
.cab-gh .chev.open svg { transform: rotate(90deg); }
.cab-gb { padding: 0 4px 4px; }
.cab-menu { position: absolute; right: 6px; top: 30px; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15); padding: 4px; display: flex; flex-direction: column; min-width: 210px; font-weight: 400; }
.cab-menu button { border: 0; text-align: left; padding: 6px 10px; border-radius: 6px; }
.cab-menu button:hover { background: #f1f0ec; }
.cab-menu button.danger { color: var(--error); }
.cab-sec { margin-top: 10px; border-radius: 6px; }
.cab-sh { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a8f89; padding: 4px 10px; cursor: pointer; }
.cab-sh:hover { color: var(--text); }
.cab-sh span { font-weight: 500; margin-left: 4px; }
.cab-bar { border-top: 1px solid var(--line2); padding: 8px 10px 10px; background: #fbfaf7; }
.cab-bar.hint { font-size: 11.5px; color: var(--muted); }
.cab-bar-t { font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.cab-bar-b { display: flex; flex-wrap: wrap; gap: 6px; }
.cab-pop-wrap { position: relative; }
.cab-pop { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 6; width: 250px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .18); padding: 10px; }
.cab-pop input { flex: 1; min-width: 0; }
.cab-pop-g { display: block; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--gc); border-radius: 4px; margin-top: 4px; background: #f7f6f2; }
.cab-pop-g:hover { background: #efede7; }
.ingroup { font-size: 12.5px; padding: 6px 8px; border-left: 4px solid var(--gc); background: color-mix(in srgb, var(--gc) 8%, #fff); border-radius: 6px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.boards { max-height: 320px; overflow: auto; border: 1px solid var(--line2); border-radius: 6px; margin-top: 4px; }
.board { display: flex; gap: 8px; align-items: center; padding: 4px 8px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.board:hover { background: #f1f0ec; }
.board.sel { background: #fff1c2; }
.board .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.ly-sec { border-top: 1px solid var(--line2); padding: 6px 8px; max-height: 140px; overflow: auto; }
.ly-sec .ly-row { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 2px 4px; }
.ly-sec .ly-row .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  .ws-left { width: calc(100% - 24px); bottom: auto; max-height: 45%; }
  .ws-right { top: auto; bottom: 12px; width: calc(100% - 24px); max-height: 45%; }
  .ws-drawer { display: none; }
  .ws-nav, .ws-title { display: none; }
}
