/* Snjallheimilið: same tokens as quick.css in smart-home-estimator, so the home page and the estimate look alike.
   The warm colours carry the page; --sky and --glass are the light colours of the logo, for lines and fills, never for text on the light ground. */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
  --bg: #f6f4ef; --card: #ffffff; --alt: #efece4; --line: #d9d4c7; --text: #1f2328; --muted: #6b6f76; --accent: #c8781a; --accent-fg: #fff; --ok: #2f8f4e; --sky: #8befff; --sky-soft: #e4f8f9; --sky-ink: #071b30; --glass: #ffdf9a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #14171a; --card: #1c2024; --alt: #181c20; --line: #2f353b; --text: #e4e7ea; --muted: #8b949c; --accent: #f5a524; --accent-fg: #111; --ok: #5cb85c; --sky: #61f2ff; --sky-soft: #14303a; --sky-ink: #071b30; --glass: #ffdf9a; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 17px/1.5 Inter, system-ui, sans-serif; }
.wrap { max-width: 880px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: var(--accent); }
h1, h2, h3 { text-wrap: balance; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h2 { font-size: 1.6rem; }
h2::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 8px; border-radius: 2px; background: linear-gradient(90deg, var(--sky), var(--glass)); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); font-size: .95rem; }
.fine { color: var(--muted); font-size: .9rem; }

.top { position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 2px solid; border-image: linear-gradient(90deg, var(--sky), var(--glass), var(--accent)) 1; z-index: 5; padding-top: env(safe-area-inset-top, 0px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; padding-block: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; }
nav { display: flex; gap: 4px 14px; flex-wrap: wrap; }
nav a { color: var(--text); text-decoration: none; font-size: .95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover { border-color: var(--sky); }
.lang { gap: 2px; font-size: .8rem; letter-spacing: .04em; }
.lang a { padding: 4px 6px; color: var(--muted); border-bottom: 0; border-radius: 6px; }
.lang a:hover { color: var(--text); background: var(--alt); }
.lang a[aria-current] { color: var(--sky-ink); background: var(--sky); font-weight: 600; }
@media (max-width: 700px) { .bar nav:not(.lang) { order: 2; flex-basis: 100%; } .lang { margin-left: auto; } }

section { padding-block: 56px; }
section.alt { background: color-mix(in srgb, var(--alt) 65%, var(--sky-soft)); }
.hero { padding-block: 72px 56px; }
.lede { font-size: 1.2rem; max-width: 40em; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 20px 0 12px; }
.btn { display: inline-block; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 11px 18px; text-decoration: none; cursor: pointer; }
.btn:not(.primary):hover { border-color: var(--sky); }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 600; }
.btn:disabled { opacity: .5; cursor: default; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--sky); border-radius: 12px; padding: 18px; min-width: 0; }
.card p:last-child { margin-bottom: 0; }
.example { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.facts dt { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; font-weight: 600; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--sky); color: var(--sky-ink); font-weight: 700; display: grid; place-items: center; }

form { display: grid; gap: 12px; margin-top: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
label { display: block; font-size: .95rem; color: var(--muted); }
input, textarea { display: block; width: 100%; margin-top: 4px; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
input:focus, textarea:focus { outline: 2px solid var(--sky); outline-offset: 1px; }
textarea { resize: vertical; min-height: 110px; }
.gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; }
#formMsg.ok { color: var(--ok); } #formMsg.err { color: var(--accent); }

footer { border-top: 2px solid; border-image: linear-gradient(90deg, var(--sky), var(--glass), var(--accent)) 1; padding-block: 24px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 14px; }
.badge img { width: 88px; height: 88px; border-radius: 50%; }
[hidden] { display: none !important; }

/* Intro: the plan of the film's house with its wiring, a still watermark behind the hero's text (generated by tools/intro.py). */
.hero { position: relative; overflow: hidden; min-height: 420px; display: grid; align-items: center; }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.intro { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .18; }
.intro path, .intro text { fill: none; stroke: var(--text); stroke-linecap: round; stroke-linejoin: round; }
.intro .w { stroke-width: 7; } .intro .w.i { stroke-width: 4; }
.intro .win { stroke-width: 1.5; } .intro .door { stroke-width: 1.5; }
.intro .cut { stroke: var(--bg); stroke-width: 9; stroke-linecap: butt; }
.intro .e { stroke: var(--accent); stroke-width: 2; }
.intro .run { stroke: var(--accent); stroke-width: 1.4; opacity: .9; }
.intro .run.s { stroke-width: 1; } .intro .run.k { stroke-width: 1.2; }
.intro .rn { stroke: none; fill: var(--muted); font: 15px Inter, system-ui, sans-serif; text-anchor: middle; }
.intro .gr { stroke: none; fill: var(--accent); font: 600 11px Inter, system-ui, sans-serif; text-anchor: middle; }
/* Dagur: the 'Einn dagur í snjallheimili' film: a video with its captions burned in (tools/film), buttons to its scenes. */
.dagur { display: grid; gap: 14px; margin-top: 16px; }
.dagur video { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 14px; background: #14171a; }
.dline { display: none; margin: 0; min-height: 4.5em; }
.dline b { display: block; }
@media (max-width: 700px) { .dline:not([hidden]) { display: block; } }
.dots { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dots button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; }
.dots button[aria-current="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.dots .play { width: auto; border-radius: 17px; padding: 0 12px; margin-left: auto; }

/* Vörur í boði: the product tabs. Without script every panel shows; site.js adds .js and then one panel at a time. */
.vtabs { margin: 16px 0; }
.tablist { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.tablist [role="tab"] { flex: none; font: inherit; font-size: .95rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; white-space: nowrap; }
.tablist [role="tab"]:hover { border-color: var(--sky); color: var(--text); }
.tablist [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 600; }
.tablist [role="tab"]:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.panel { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--sky); border-radius: 12px; padding: 18px; margin-top: 10px; }
.panel p:last-child { margin-bottom: 0; }
.vtabs:not(.js) .tablist { display: none; }
.vtabs.js .panel:not(.on) { display: none; }

/* Kerfin: three systems, each a card with its product pictures on white tiles. */
.systems { display: grid; gap: 18px; margin: 16px 0; }
.sys { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--sky); border-radius: 12px; padding: 18px; }
.sys h3 { margin: 0 0 6px; }
.sys > p { margin: 0 0 14px; }
.sys.ha { margin: 16px 0 0; border-top-color: var(--accent); }
.sys .points { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.sys.ha figure { margin: 14px 0 0; }
.sys.ha figure img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }
.sys.ha figcaption { margin-top: 6px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.pfig { margin: 0; }
.pimg { background: #fff; border-radius: 10px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 8px; }
.pimg img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.pfig figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.small { font-size: .82rem; }

.links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; }

/* The drawn view of the fitting lines on a wall (owner 2026-11-24; markup written by tools/lines_view.py). The drawings take their colours from the
   variables below: data-fit on .lv is the colour of the fittings, data-line the line's shape (corner radius, glass gloss), --wall the wall. */
.lv { margin: 18px 0 24px; --wall: #f3f1ec; --plate: #f4f4f1; --key: #ffffff; --recess: #e6e6e1; --ink: #7d838a; --edge: rgba(0, 0, 0, .22); --shade: rgba(0, 0, 0, .09); --led: #57b7ff; --rx: 6px; }
.lv[data-fit="black"] { --plate: #17181a; --key: #24272a; --recess: #0f1011; --ink: #a7adb3; --edge: rgba(255, 255, 255, .16); --shade: rgba(255, 255, 255, .08); }
.lv[data-fit="grey"] { --plate: #8b9097; --key: #9ba0a7; --recess: #777c83; --ink: #2e3136; --edge: rgba(0, 0, 0, .28); --shade: rgba(0, 0, 0, .12); }
.lv[data-fit="gold"] { --plate: #c5a45c; --key: #d6b970; --recess: #b08f48; --ink: #54421a; --edge: rgba(0, 0, 0, .26); --shade: rgba(0, 0, 0, .12); }
.lv[data-line="mosaic"] { --rx: 3px; } .lv[data-line="valena"] { --rx: 10px; } .lv[data-line="merten"] { --rx: 1.5px; } .lv[data-line="bseed_glass"] { --rx: 5px; } .lv[data-line="bseed_plastic"] { --rx: 7px; }
.lv h3 { margin: 0 0 4px; }
.lv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.lv-lab { flex: 0 0 4.2em; color: var(--muted); font-size: .9rem; }
.lv-tab, .lv-fit, .lv-mode { min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.lv-tab[aria-pressed="true"], .lv-fit[aria-pressed="true"], .lv-mode[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.lv-sw { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--c); cursor: pointer; padding: 0; }
.lv-sw[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.lv-fits[hidden] { display: none; }
.lv-wall { overflow: hidden; background: radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%), linear-gradient(rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .10)), var(--wall); border: 1px solid var(--line); border-radius: 14px; padding: 18px 14px 22px; transition: background-color .35s; color: var(--wall-ink, #1f2328); }
.lv-wall.darkwall { --wall-ink: #f1f3f5; }
.lv-set h4 { margin: 0 0 12px; font-size: 1rem; } .lv-set h5 { margin: 20px 0 10px; font-size: .86rem; font-weight: 600; opacity: .8; }
.lv-set + .lv-set { margin-top: 28px; }
.lv.js .lv-set { display: none; } .lv.js .lv-set.on { display: block; animation: lv-in .35s ease-out; }
.lv.js .lv-set h4 { display: none; }
@keyframes lv-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lv-grid { display: flex; flex-wrap: wrap; gap: 16px 10px; align-items: flex-start; }
.lv-fig { margin: 0; flex: 0 0 auto; width: 98px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.lv-fig.wide { width: auto; flex: 0 1 auto; max-width: 100%; }
.lv-fig figcaption { font-size: .7rem; line-height: 1.25; max-width: 100%; overflow-wrap: anywhere; }
.lv-fig.wide figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; }
.lv-svg { width: calc(var(--n) * 68px + 16px); max-width: 100%; height: auto; display: block; filter: drop-shadow(0 2px 2.5px rgba(0, 0, 0, .32)); }
.lv-svg .plate { fill: var(--plate); stroke: var(--edge); rx: var(--rx); }
/* Legrand Mosaic: a 45 mm module in an 82 mm plate, so the part is smaller in its frame than on the lines whose rocker fills a 55 mm opening */
.lv-svg .cell { transform-origin: 30px 36px; }
/* The 3D picture of a frame: shown in place of its drawing when .lv has data-mode="3d". It is --k times as wide as the frame in it (the wall round the
   frame holds its shadow), so it is drawn that much wider than the drawing and pulled back by negative margins: the frame sits where the drawing sat. */
.lv-modes { display: none; } .lv.js .lv-modes { display: flex; }
.lv-pic { display: none; --fw: calc(var(--n) * 68px + 16px); width: calc(var(--fw) * var(--k)); max-width: calc(100% * var(--k)); height: auto; margin: calc(var(--fw) * (1 - var(--k)) / 2); margin-block: -9px -3px; }
.lv[data-mode="3d"] .lv-fig .lv-svg { display: none; }
.lv[data-mode="3d"] .lv-pic { display: block; }

.lv-svg .band { fill: none; stroke: #fff; stroke-opacity: .55; stroke-width: 2.5; stroke-linecap: round; }
.lv[data-line="mosaic"] .lv-svg .cell { transform: scale(.74); }
.lv-svg .gloss { display: none; fill: url(#lv-gloss); rx: var(--rx); pointer-events: none; }
.lv[data-line="bseed_glass"] .lv-svg .gloss, .lv[data-line="merten"] .lv-svg .gloss { display: block; }
.lv-svg .k { fill: var(--key); stroke: var(--edge); stroke-width: .8; }
.lv-svg .d { fill: var(--recess); stroke: var(--edge); stroke-width: .8; }
.lv-svg .i, .lv-svg .knob { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lv-svg .knob { stroke-width: 2.4; }
.lv-svg .f { fill: var(--ink); } .lv-svg text.f { font-family: inherit; }
.lv-svg .lid { fill: var(--key); stroke: var(--edge); stroke-width: .8; opacity: .92; }
.lv-svg .hit { fill: transparent; }
.lv-svg .sh { fill: var(--shade); opacity: 0; transition: opacity .16s; pointer-events: none; }
.lv-svg .rock .sh.b { opacity: 1; } .lv-svg .rock.on .sh.b { opacity: 0; } .lv-svg .rock.on .sh.a { opacity: 1; }
.lv-svg .led { fill: none; stroke: var(--led); stroke-width: 1.6; transition: fill .2s, stroke .2s, filter .2s; }
.lv-svg .rock.on .led, .lv-svg .led.on { fill: #ffb341; stroke: #ffb341; filter: drop-shadow(0 0 2.5px #ffb341); }
.lv-svg .lamp { fill: var(--recess); stroke: var(--edge); stroke-width: .6; transition: fill .2s, filter .2s; }
.lv-svg .rock.on .lamp { fill: #ff6a3d; filter: drop-shadow(0 0 2.5px #ff6a3d); }
@media (prefers-reduced-motion: reduce) { .lv-wall, .lv-svg .sh, .lv-svg .led, .lv-svg .lamp { transition: none; } .lv.js .lv-set.on { animation: none; } }

.lv-fig[hidden] { display: none; }
/* the close-up of a line: with the 3D pictures only; it has a wall of its own, so it is framed like a photograph */
.lv-hero { display: none; margin: 0 0 18px; }
.lv[data-mode="3d"] .lv-hero { display: block; }
.lv-hero img { display: block; width: 100%; max-width: 760px; height: auto; border-radius: 10px; box-shadow: 0 6px 22px rgba(0, 0, 0, .28); }
.lv-hero figcaption { margin-top: 6px; font-size: .78rem; opacity: .75; color: var(--wall-ink, inherit); }

/* The product page (vorur.html, written by tools/products.py; vorur.js filters). A card is one part of one line on a wall-coloured tile; the
   filters are a list of groups with a count beside each choice. Under 800 px the filters open from a button; without script they are hidden. */
.pv { padding-block: 32px 56px; }
.pv-head { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 18px 0 12px; }
.pv-count { margin: 0; color: var(--muted); font-size: .95rem; }
.pv-count b { color: var(--text); }
.pv-toggle, .pv-clear { padding: 8px 14px; font-size: .95rem; }
.pv-clear { margin-left: auto; }
.pv-clear[hidden], .pv-card[hidden], .pv-none[hidden] { display: none; }
.pv:not(.js) .pv-filters, .pv:not(.js) .pv-toggle { display: none; }
.pv-filters { display: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; margin-bottom: 14px; }
.pv.filters-open .pv-filters { display: block; }
.pv-group { border-bottom: 1px solid var(--line); }
.pv-group:last-child { border-bottom: 0; }
.pv-group summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.pv-group summary::-webkit-details-marker { display: none; }
.pv-group summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; margin-right: 4px; }
.pv-group[open] summary::after { transform: rotate(45deg); }
.pv-opts { padding: 0 0 10px; }
.pv-opts label { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--text); font-size: .95rem; cursor: pointer; }
.pv-opts label.zero { color: var(--muted); opacity: .6; cursor: default; }
.pv-opts input { display: inline-block; width: 20px; height: 20px; margin: 0; padding: 0; flex: none; accent-color: var(--accent); }
.pv-n { color: var(--muted); }
.pv-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 1px solid rgba(128, 128, 128, .55); flex: none; }
.pv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; align-content: start; }
.pv-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pv-pic { background: radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%), #e9e6df; border-radius: 8px; overflow: hidden; }
.pv-pic img { display: block; width: 100%; height: auto; }
.pv-card h3 { font-size: .95rem; margin: 6px 0 0; }
.pv-line { margin: 0; color: var(--muted); font-size: .82rem; }
.pv-dots { margin: 2px 0 0; display: flex; gap: 5px; }
.pv-none { color: var(--muted); padding: 24px 0; }
.pv .cta { margin: 24px 0 14px; }
@media (min-width: 800px) {
  .pv-toggle { display: none; }
  .pv-body { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; }
  .pv.js .pv-filters { display: block; position: sticky; top: calc(var(--top, 60px) + var(--pbh, 0px) + 12px); margin: 0; max-height: calc(100vh - var(--top, 60px) - var(--pbh, 0px) - 28px); overflow: auto; }
}

/* The frame builder on the product page (.pb, also .lv so that the drawing takes the lines view's colours and shapes). Empty it is a heading and a
   line of help; holding a frame it stays under the page's header. Over each position of the drawing lies a button to press, drag and drop on. */
.pb { margin: 18px 0 0; }
.pb[hidden] { display: none; }
.pb-h { font-size: 1.15rem; margin: 0 0 4px; } .pb-h::after { display: none; }
.pb-help { margin: 0; }
.pb-wall, .pb-name, .pb-bar { display: none; }
.pb.has { position: sticky; top: var(--top, 60px); z-index: 4; background: var(--bg); padding: 10px 0 8px; border-bottom: 1px solid var(--line); }
.pb.has .pb-wall { display: flex; justify-content: center; padding: 12px 10px 14px; border-radius: 12px; }
.pb.has .pb-name { display: block; margin: 8px 0 0; font-size: .9rem; }
.pb.has .pb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.pb.drag .pb-wall { outline: 2px dashed var(--accent); outline-offset: 2px; }
.pb-frame { position: relative; max-width: 100%; }
.pb .lv-svg { width: calc(var(--n) * 56px + 13px); }
.pb .lv-svg .slot { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 3; opacity: .7; }
.pb-slot { position: absolute; top: 0; bottom: 0; background: none; border: 0; padding: 0; border-radius: 6px; cursor: pointer; }
.pb-slot.on { outline: 3px solid var(--accent); outline-offset: -2px; }
.pb-slot:focus-visible { outline: 3px solid var(--sky); outline-offset: -2px; }
.pb-set { display: inline-flex; gap: 6px; align-items: center; }
.pb-set[hidden] { display: none; }
.pb-b { min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; font-size: 1.05rem; cursor: pointer; }
.pb-b.wide { padding: 0 12px; font-size: .9rem; }
.pb-b:disabled { opacity: .4; cursor: default; }
.pb-reset { margin-left: auto; }
.pb-fit { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(128, 128, 128, .6); background: var(--c); padding: 0; cursor: pointer; }
.pb-fit[hidden] { display: none; }
.pb-fit[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.pb-fit:disabled { opacity: .3; cursor: default; }
.pb-msg { margin: 6px 0 0; font-size: .9rem; color: var(--accent); min-height: 0; }
.pb-msg:empty { display: none; }
.pv-pic { position: relative; }
.pv-add { position: absolute; right: 6px; bottom: 6px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.pv-add.off { opacity: .35; }
.pv-card[draggable="true"] { cursor: grab; }
@media (max-width: 799px) { .pb.has .pb-h, .pb.has .pb-help { display: none; } }

