:root {
  --bg: #f4f6f8; --panel: #fff; --line: #dfe3e8; --line2: #eef1f4; --text: #18212b; --muted: #5d6b79;
  --brand: #0d5aa7; --brand-2: #e8f1fb; --red: #c62828; --red-2: #fdecec; --ok: #1b7f3b; --warn: #a15c00; --warn-2: #fff4e0;
  --r: 8px; --sh: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .08);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body, #app { margin: 0; height: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 14px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
kbd { font: 11px ui-monospace, monospace; color: var(--muted); background: var(--line2); border-radius: 4px; padding: 1px 5px; }
.ic { flex: none; }
.muted { color: var(--muted); } .small { font-size: 12px; } .grow { flex: 1; } .row { display: flex; gap: 8px; align-items: center; } .wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 12px; } .right { margin-left: auto; } .center { text-align: center; } .nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); border-radius: var(--r); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover:not(:disabled) { background: var(--line2); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #0b4d8f; }
.btn.danger { color: var(--red); } .btn.danger:hover:not(:disabled) { background: var(--red-2); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--line2); }
.btn.icon-only { width: 34px; padding: 0; }
.btn.sm { height: 28px; padding: 0 8px; font-size: 13px; } .btn.sm.icon-only { width: 28px; }
.btn.on { background: var(--brand-2); border-color: #b9d3ef; color: var(--brand); }
input, select, textarea { font: inherit; color: inherit; border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; background: #fff; min-width: 0; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--brand); }
input[type=color] { padding: 2px; height: 34px; width: 44px; }
textarea { resize: vertical; min-height: 64px; }
.field { display: grid; gap: 4px; } .field > span { font-size: 12px; font-weight: 600; color: var(--muted); } .field small { color: var(--muted); font-size: 12px; }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* app shell */
.shell { display: grid; grid-template-rows: 56px 1fr; height: 100%; }
.top { display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--line); min-width: 0; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--text); }
.brand:hover { text-decoration: none; }
.top nav { display: flex; gap: 2px; margin-left: 8px; }
.top nav a { padding: 8px 12px; border-radius: 6px; color: var(--muted); font-weight: 500; }
.top nav a:hover { background: var(--line2); text-decoration: none; }
.top nav a.on { color: var(--brand); background: var(--brand-2); }
.orgsel { max-width: 220px; font-weight: 600; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; border: 0; cursor: pointer; flex: none; }
.page { overflow: auto; padding: 24px; }
.page > .inner { max-width: 1180px; margin: 0 auto; }
.banner { display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: var(--warn-2); color: var(--warn); border-bottom: 1px solid #f3dcb5; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.empty .ic { color: #9aa7b4; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; font-size: 12px; background: var(--line2); color: var(--muted); }
.chip.blue { background: var(--brand-2); color: var(--brand); } .chip.red { background: var(--red-2); color: var(--red); } .chip.green { background: #e7f6ec; color: var(--ok); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 12px; font: inherit; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-color: var(--brand); }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
table.list td { padding: 8px; border-bottom: 1px solid var(--line2); vertical-align: middle; }

/* auth pages */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px; background: linear-gradient(160deg, #e8f1fb, #f4f6f8 60%); }
.auth .card { width: min(420px, 100%); padding: 28px; box-shadow: var(--sh); }
.auth h1 { display: flex; gap: 10px; align-items: center; }

/* projects */
.projects { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.plist { position: sticky; top: 0; }
.plist .items { display: grid; gap: 2px; max-height: calc(100vh - 260px); overflow: auto; margin-top: 6px; }
.pitem { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); cursor: pointer; border: 1px solid transparent; }
.pitem:hover { background: var(--panel); text-decoration: none; }
.pitem.on { background: var(--panel); border-color: var(--line); box-shadow: var(--sh); }
.pitem .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 12px 10px 2px; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; color: var(--text); transition: box-shadow .15s; }
.plan:hover { box-shadow: var(--sh); text-decoration: none; }
.plan .thumb { aspect-ratio: 16/10; background: #e9edf1 center/cover no-repeat; display: grid; place-items: center; color: #9aa7b4; }
.plan .meta { padding: 10px 12px; display: flex; gap: 6px; align-items: center; }
.plan .meta div { min-width: 0; flex: 1; } .plan .meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newplan { border: 2px dashed var(--line); border-radius: 12px; display: grid; place-items: center; min-height: 170px; color: var(--muted); background: transparent; cursor: pointer; font: inherit; }
.newplan:hover { border-color: var(--brand); color: var(--brand); }
.bgpick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bgpick button { border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 12px 6px; display: grid; gap: 6px; justify-items: center; font: inherit; cursor: pointer; }
.bgpick button.on { border-color: var(--brand); background: var(--brand-2); color: var(--brand); }
.results { display: grid; gap: 2px; max-height: 220px; overflow: auto; }
.results button { text-align: left; border: 0; background: none; padding: 8px; border-radius: 6px; font: inherit; cursor: pointer; }
.results button:hover, .results button.on { background: var(--brand-2); }

/* dialogs, menus, toasts */
dialog.modal { border: 0; border-radius: 14px; padding: 0; width: min(480px, calc(100vw - 24px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); color: var(--text); max-height: calc(100vh - 32px); }
dialog.modal.wide { width: min(860px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(16, 24, 40, .45); }
dialog.modal form { display: grid; grid-template-rows: auto 1fr auto; max-height: calc(100vh - 32px); }
dialog.modal header { display: flex; align-items: center; padding: 14px 14px 6px 20px; } dialog.modal header h2 { margin: 0; flex: 1; }
dialog.modal .body { padding: 8px 20px 16px; overflow: auto; display: grid; gap: 12px; align-content: start; }
dialog.modal footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line2); }
dialog.modal form { overflow-x: hidden; }
.menu { position: fixed; z-index: 1000; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--sh); padding: 4px; min-width: 200px; max-height: 70vh; overflow: auto; }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: none; padding: 7px 10px; border-radius: 6px; font: inherit; text-align: left; cursor: pointer; color: var(--text); }
.menu button span:nth-child(2) { flex: 1; }
.menu button:hover:not(:disabled), .menu button:focus-visible { background: var(--line2); outline: none; }
.menu button:disabled { opacity: .45; } .menu button.danger { color: var(--red); }
.menu .ic-space { width: 16px; display: inline-flex; } .menu-head { font-size: 11px; color: var(--muted); font-weight: 700; padding: 6px 10px 2px; text-transform: uppercase; letter-spacing: .05em; }
.toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 2000; }
.toast { background: #1d2733; color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--sh); transition: opacity .3s, transform .3s; max-width: 90vw; }
.toast.error { background: var(--red); } .toast.out { opacity: 0; transform: translateY(8px); }

/* sign tiles */
.signs { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 4px; }
.tile { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 6px 2px 4px; border: 1px solid transparent; border-radius: 8px; background: none; cursor: grab; font: 11px/1.15 inherit; color: var(--muted); min-width: 0; }
.tile:hover, .tile.on { background: var(--brand-2); border-color: #b9d3ef; color: var(--text); }
.tile svg { width: 44px; height: 44px; } .tile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* editor */
.ed { display: grid; grid-template: "bar bar bar" auto "lib cv side" 1fr "lib status side" 28px / 268px 1fr 300px; height: 100%; background: var(--bg); }
.ed.noleft { grid-template-columns: 0 1fr 300px; } .ed.noright { grid-template-columns: 268px 1fr 0; } .ed.noleft.noright { grid-template-columns: 0 1fr 0; }
.ed.ro .edit-only { display: none !important; }
.bar { grid-area: bar; display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: var(--panel); border-bottom: 1px solid var(--line); min-width: 0; overflow-x: auto; }
.bar .sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 4px; flex: none; }
.bar .title { font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 8px; border-radius: 6px; cursor: text; border: 1px solid transparent; }
.bar .title:hover { border-color: var(--line); }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 0 8px; white-space: nowrap; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.status-dot.unsaved::before { background: #e0a100; } .status-dot.error::before { background: var(--red); } .status-dot.saving::before { background: var(--brand); }
.lib, .side { background: var(--panel); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.lib { grid-area: lib; border-right: 1px solid var(--line); } .side { grid-area: side; border-left: 1px solid var(--line); }
.panel-body { overflow: auto; padding: 10px; display: grid; gap: 10px; align-content: start; }
.lib .head, .side .head { padding: 8px 10px; border-bottom: 1px solid var(--line2); display: grid; gap: 8px; }
.side .head.row { display: flex; }
.side .tabs { margin: 0; padding: 0 6px; }
.group > summary { cursor: pointer; font-weight: 600; font-size: 12px; padding: 6px 4px; list-style: none; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.group > summary::before { content: "▸"; font-size: 10px; transition: transform .15s; } .group[open] > summary::before { transform: rotate(90deg); }
.cv { grid-area: cv; position: relative; overflow: hidden; background: #e9edf1; touch-action: none; user-select: none; -webkit-user-select: none; }
.cv canvas, .cv > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv > svg { overflow: hidden; }
.cv .vmap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; } .maplibregl-canvas { position: absolute; left: 0; top: 0; }
.cv > svg.scene { transform-origin: 0 0; will-change: transform; }
.cv > svg.over { pointer-events: none; } .cv > svg.over .h, .cv > svg.over .frame { pointer-events: all; }
.cv.draw, .cv.place { cursor: crosshair; } .cv.panning { cursor: grabbing; }
.cv .hit { fill: transparent; stroke: transparent; } .cv .hit.line { fill: none; stroke-width: 14px; vector-effect: non-scaling-stroke; }
.cv [data-id] { cursor: pointer; } .cv.draw [data-id], .cv.place [data-id] { cursor: crosshair; }
.cv .ghost { opacity: .6; pointer-events: none; }
.cv .handles * { vector-effect: non-scaling-stroke; }
.cv .sel-box { fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 5 3; pointer-events: none; }
.cv .h { fill: #fff; stroke: var(--brand); stroke-width: 1.5; cursor: grab; } .cv .h.mid { fill: var(--brand); fill-opacity: .35; stroke-opacity: .6; }
.cv .h.rot { cursor: alias; } .cv .h.scale { cursor: nwse-resize; }
.cv .issue { fill: none; stroke: #e0a100; stroke-width: 3; stroke-dasharray: 6 4; pointer-events: none; }
.cv .frame { fill: rgba(13, 90, 167, .06); stroke: var(--brand); stroke-width: 2; cursor: move; }
.cv .frame-label { font: 600 13px system-ui; fill: var(--brand); pointer-events: none; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.cv .snap { fill: none; stroke: #e91e63; stroke-width: 2; pointer-events: none; }
.cv .boxsel { fill: rgba(13, 90, 167, .08); stroke: var(--brand); stroke-width: 1; pointer-events: none; }
.hud { position: absolute; display: grid; gap: 4px; z-index: 2; }
.hud.br { right: 10px; bottom: 10px; } .hud.tl { left: 10px; top: 10px; right: 10px; display: flex; pointer-events: none; }
.hud .btn { box-shadow: var(--sh); }
.hud .hint { pointer-events: auto; background: rgba(29, 39, 51, .88); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 13px; margin: 0 auto; }
.attr { position: absolute; right: 0; bottom: 0; font: 10px/1.4 system-ui, sans-serif; background: rgba(255, 255, 255, .85); padding: 1px 6px; color: #333; z-index: 1; border: 0; border-radius: 4px 0 0 0; cursor: pointer; max-width: 70%; text-align: right; }
.attr:hover { text-decoration: underline; }
.credits dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; } .credits dt { font-weight: 600; color: var(--muted); } .credits dd { margin: 0; }
.status { grid-area: status; display: flex; gap: 14px; align-items: center; padding: 0 10px; font-size: 12px; color: var(--muted); background: var(--panel); border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.props { display: grid; gap: 10px; } .props .field input[type=number] { width: 100%; }
.props .row > .field { flex: 1; }
.swatches { display: flex; gap: 4px; flex-wrap: wrap; } .swatch { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .2); cursor: pointer; padding: 0; }
.swatch.on { outline: 2px solid var(--brand); outline-offset: 1px; }
.layer { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 8px; border: 1px solid transparent; }
.layer.on { background: var(--brand-2); border-color: #b9d3ef; } .layer .name { flex: 1; cursor: pointer; padding: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue-item { display: flex; gap: 8px; padding: 8px; border-radius: 8px; background: var(--warn-2); color: #5a3a00; cursor: pointer; border: 0; text-align: left; font: inherit; width: 100%; }
.issue-item.info { background: var(--brand-2); color: #12385f; }
.badge { min-width: 18px; height: 18px; border-radius: 9px; background: #e0a100; color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 5px; }
.preview-banner { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; background: #1d2733; color: #fff; border-radius: 10px; padding: 8px 10px 8px 14px; display: flex; gap: 8px; align-items: center; box-shadow: var(--sh); }
.palette input { width: 100%; font-size: 16px; padding: 10px 12px; }
.palette .results { max-height: 50vh; }
.palette .results button { display: flex; gap: 10px; align-items: center; width: 100%; }
.palette .results svg { width: 26px; height: 26px; }
.inv td svg { width: 30px; height: 30px; display: block; }
.photo-grid { display: flex; gap: 6px; flex-wrap: wrap; } .photo-grid img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.log { display: grid; gap: 10px; } .log .entry { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; background: #fff; }
/* sewer drawings: pipe types in the library, pipe preview, kinds */
.pipes { display: grid; gap: 2px; } .pipe-row { display: flex; align-items: center; gap: 2px; }
.pipe { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 6px; border: 1px solid transparent; border-radius: 8px; background: none; font: 13px/1.3 inherit; color: var(--text); text-align: left; cursor: pointer; }
.pipe:hover { border-color: var(--line); background: var(--panel); } .pipe .sw { display: inline-flex; flex: none; } .pipe .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pipe-preview { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px; } .pipe-preview svg { width: 100%; height: 120px; }
.overlay-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; }
.chip.kind { font-size: 11px; padding: 0 6px; margin-right: 2px; } .chip.kind.sewer { background: #f6ece3; color: #7a4a1f; }
.chip.phase { background: var(--brand-2); color: var(--brand); font-size: 11px; padding: 0 6px; }
.chip.warn { background: var(--warn-2); color: var(--warn); }
.approval-state { background: none; border: 0; padding: 0 4px; cursor: pointer; }
.review .comment, .approval .comment { border-left: 3px solid var(--line); padding: 2px 0 2px 8px; }
.bgpick.kinds { grid-template-columns: repeat(2, 1fr); }
.bgpick.situations { grid-template-columns: repeat(3, 1fr); } .bgpick.situations button { justify-items: start; text-align: left; padding: 12px; } .bgpick.situations small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.propose-sum { padding: 10px 12px; } .propose-sum ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.started ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; } .started li { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.started li svg { color: var(--brand); flex: none; } .started li.done { color: var(--muted); text-decoration: line-through; } .started li.done svg { color: var(--ok); }
.pipes-list tr { cursor: pointer; } .pipes-list tr:hover { background: var(--line2); } .pipes-list td.bad { color: var(--red); font-weight: 600; }
.cv canvas.overlays { pointer-events: none; }
.cv canvas.still { display: none; transform-origin: 0 0; pointer-events: none; }
.profiles .profile svg { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.mapkey { position: absolute; left: 10px; bottom: 10px; z-index: 3; width: min(280px, calc(100% - 20px)); max-height: 55%; overflow: auto; background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--sh); font-size: 12px; }
.mapkey .head { display: flex; align-items: center; gap: 6px; width: 100%; padding: 7px 9px; border: 0; background: none; font: 600 12px/1.2 inherit; color: var(--text); text-align: left; cursor: pointer; }
.mapkey.closed { width: auto; } .mapkey.closed .rows, .mapkey.closed small { display: none; } .mapkey.closed .head svg:last-child { transform: rotate(-90deg); }
.mapkey .rows { display: grid; gap: 8px; padding: 0 9px 6px; }
.mapkey .krow { display: grid; gap: 3px; cursor: help; } .mapkey .krow span { font-weight: 600; } .mapkey .krow span svg { vertical-align: -2px; margin-left: 4px; color: var(--muted); } .mapkey .krow:not(.key-swatch) img { order: 2; max-width: 100%; }
.mapkey .krow.key-swatch { grid-template-columns: 20px minmax(0, 1fr); align-items: center; column-gap: 7px; } .mapkey .krow.key-swatch img { width: 20px; height: 20px; opacity: .6; }
.mapkey small { display: block; padding: 0 9px 8px; color: var(--muted); }
.maptip { position: absolute; z-index: 4; display: none; max-width: 320px; padding: 8px 10px; background: rgba(24, 33, 43, .95); color: #fff; border-radius: 8px; font-size: 12px; line-height: 1.35; pointer-events: none; box-shadow: var(--sh); }
.maptip .hit + .hit { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .2); } .maptip small { display: block; margin-top: 3px; color: #c9d3dd; }

/* custom sign builder: live preview left, the description of the sign right */
dialog.sign-dialog { width: min(980px, calc(100vw - 24px)); }
.sign-editor { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: start; }
.sign-side { position: sticky; top: 0; gap: 8px; }
.sign-preview { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 12px;
  background: repeating-conic-gradient(#eef1f4 0 25%, #fff 0 50%) 0 0/16px 16px; }
.sign-preview svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 4px rgba(16, 24, 40, .18)); }
.sign-form { gap: 14px; min-width: 0; }
.starts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.start { display: grid; gap: 4px; justify-items: center; padding: 8px 4px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font: 12px/1.2 inherit; color: var(--text); cursor: pointer; }
.start:hover { border-color: var(--brand); background: var(--brand-2); }
.start .mini { display: grid; place-items: center; height: 34px; width: 100%; color: var(--muted); } .start .mini svg { max-height: 34px; max-width: 100%; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.seg button { border: 0; background: none; padding: 4px 9px; font: 13px/1.4 inherit; color: var(--text); cursor: pointer; white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--line); } .seg button.on { background: var(--brand-2); color: var(--brand); font-weight: 600; }
.plate-color { width: 34px; height: 28px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .25); font: 700 12px/1 Arial, sans-serif; cursor: pointer; padding: 0; }
.plate-color.on { outline: 2px solid var(--brand); outline-offset: 2px; }
.sl-line { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.sl-items { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sl-item { display: inline-flex; align-items: center; gap: 2px; } .sl-item.text { flex: 1 1 160px; min-width: 0; } .sl-item.text input { width: 100%; }
.sl-item select.arrow { font-size: 18px; padding: 2px 4px; } .sl-item input.arg { width: 64px; }
.sl-sign { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); cursor: pointer; font: 12px inherit; }
.sl-sign svg { max-height: 26px; width: auto; } .sl-img { height: 30px; max-width: 80px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; }
.sl-tools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .sl-tools .sep { width: 1px; height: 20px; background: var(--line); margin: 0 2px; }
.sl-tools .bold, .sl-tools .glyph { font-weight: 800; font-family: Arial, sans-serif; } .sl-tools .glyph { font-size: 17px; }
.seg.sizes button { width: 30px; padding: 0; font-family: Arial, sans-serif; font-weight: 700; } .seg.sizes .s1 { font-size: 11px; } .seg.sizes .s2 { font-size: 14px; } .seg.sizes .s3 { font-size: 18px; } .sl-tools .bold.on { background: var(--brand-2); color: var(--brand); }
.notice { display: flex; gap: 6px; align-items: center; margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--warn-2); color: var(--warn); }

@media (max-width: 900px) {
  .projects { grid-template-columns: 1fr; } .plist { position: static; }
  .projects.detail .plist { display: none; } .projects:not(.detail) .pdetail { display: none; }
  .top nav a span { display: none; } .page { padding: 14px; }
  .ed, .ed.noleft, .ed.noright, .ed.noleft.noright { grid-template: "bar" auto "cv" 1fr "status" 28px / 1fr; }
  .lib, .side { position: fixed; z-index: 20; top: 50px; bottom: 0; width: min(320px, 88vw); box-shadow: var(--sh); transition: transform .2s; }
  .lib { left: 0; } .side { right: 0; }
  .ed.noleft .lib { transform: translateX(-105%); } .ed.noright .side { transform: translateX(105%); }
  .bgpick { grid-template-columns: repeat(2, 1fr); } .sign-editor { grid-template-columns: 1fr; } .bgpick.situations { grid-template-columns: 1fr; } .sign-side { position: static; } .sign-preview { aspect-ratio: 16 / 9; } .hide-sm { display: none !important; }
}
@media print { .shell > .top { display: none; } }
