/* PCB Canvas Forum. Hand-written, no build step, mobile first.
   Tokens match web/static/css/site.css (accent #F25C1A, Inter). */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --surface: #f3f4f6;
  --surface-2: #ffffff;
  --border: rgba(0, 0, 0, .1);
  --text: #1c1e24;
  --muted: #5f6470;
  --accent: #f25c1a;
  --accent-text: #ffffff;
  --accent-soft: rgba(255, 106, 42, .12);
  --link: #c2410c;
  --ok: #157347;
  --ok-bg: #e7f6ee;
  --warn-bg: #fff6db;
  --warn-text: #7a5000;
  --error-text: #b42318;
  --error-bg: #fdecea;
  --input-border: rgba(0, 0, 0, .28);
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.05);
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --w: 920px;
  --c-news: #2563eb; --c-help: #d97706; --c-ideas: #7c3aed; --c-show: #059669;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1e1f23; --surface: #2a2c32; --surface-2: #25272c; --border: rgba(255,255,255,.1);
    --text: #ecedf0; --muted: #a3a8b2; --accent-soft: rgba(255,128,64,.16); --link: #ff9a66;
    --ok: #5fd39a; --ok-bg: #173226; --warn-bg: #3a2f10; --warn-text: #ffc233;
    --error-text: #ff9b8f; --error-bg: #3d1f1c; --input-border: rgba(255,255,255,.3);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    --c-news: #6ea0ff; --c-help: #f5b14c; --c-ideas: #b394ff; --c-show: #4fd1a5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1e1f23; --surface: #2a2c32; --surface-2: #25272c; --border: rgba(255,255,255,.1);
  --text: #ecedf0; --muted: #a3a8b2; --accent-soft: rgba(255,128,64,.16); --link: #ff9a66;
  --ok: #5fd39a; --ok-bg: #173226; --warn-bg: #3a2f10; --warn-text: #ffc233;
  --error-text: #ff9b8f; --error-bg: #3d1f1c; --input-border: rgba(255,255,255,.3);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  --c-news: #6ea0ff; --c-help: #f5b14c; --c-ideas: #b394ff; --c-show: #4fd1a5;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.55 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--link); text-underline-offset: .15em; text-decoration-thickness: 1px; }
h1, h2, h3 { line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; margin: .2em 0 .4em; overflow-wrap: anywhere; }
h2 { font-size: 1.2rem; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: .5rem; z-index: 10; background: var(--surface-2); padding: .4rem .8rem; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.inline { display: inline; }
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 1rem 16px 3rem; flex: 1; }
.narrow { max-width: 520px; margin: 0 auto; }

/* Header */
/* Site header (same look as the website) with the forum bar under it. */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top); }
.site-row { max-width: 1120px; margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; min-height: 3.5rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 600; text-decoration: none; padding: .6rem 0; }
.logo-mark { flex: none; }
.site-nav { overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; width: calc(100% + 32px); }
.site-nav ul { display: flex; list-style: none; margin: 0; padding: 0 0 .5rem; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: .4rem .6rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--accent-text, #fff); background: var(--accent); }
@media (max-width: 400px) { .site-nav a { font-size: .9rem; padding: .4rem .5rem; } }
@media (min-width: 760px) { .site-nav { width: auto; margin: 0; padding: 0; overflow: visible; } .site-nav ul { padding: 0; } }
.site-nav { order: 3; }
.site-account { order: 2; display: inline-flex; align-items: center; min-height: 40px; padding: .3rem .9rem; border-radius: 999px; border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 500; font-size: .9rem; white-space: nowrap; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }
.site-account:hover { background: var(--surface); }
.site-account[aria-current="page"] { border-color: var(--accent); }
@media (min-width: 760px) { .site-nav { order: 2; margin-left: auto; } .site-account { order: 3; } }
.top-in { max-width: var(--w); margin: 0 auto; padding: .45rem 16px; display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; border-top: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: .45rem; color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; }
.search input { width: 100%; min-width: 0; }
.me { display: flex; align-items: center; gap: .4rem; }
.me .btn.ghost { display: none; }
.me-name { display: none; }
.avatar-link { display: flex; align-items: center; gap: .4rem; color: var(--text); text-decoration: none; }
@media (min-width: 640px) {
  .brand span { display: inline; }
  .me .btn.ghost { display: inline-flex; }
  .me-name { display: inline; font-size: .9rem; }
}

/* Controls */
input, select, textarea { font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--input-border); border-radius: 10px; padding: .6rem .75rem; width: 100%; min-height: 44px; }
textarea { resize: vertical; line-height: 1.5; min-height: 8rem; }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--accent); margin: 0; flex: none; }
input[type="file"] { padding: .45rem; font-size: .9rem; }
input:disabled { color: var(--muted); background: var(--surface); }
.search input[type="search"] { border-radius: 999px; padding: .45rem .9rem; min-height: 38px; background: var(--surface); border-color: transparent; }
.search input[type="search"]:focus { border-color: var(--input-border); background: var(--surface-2); }
.search.big { display: flex; gap: .5rem; margin-bottom: 1rem; }
.search.big input { min-height: 44px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid transparent; background: var(--accent); color: var(--accent-text); font: 600 .95rem/1.1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { background: var(--surface); filter: none; }
.btn.small { min-height: 34px; padding: .3rem .8rem; font-size: .85rem; font-weight: 500; }
.btn.big { min-height: 52px; padding: .7rem 1.6rem; font-size: 1.05rem; }
.btn.ok { background: var(--ok); color: #fff; }
.btn.danger { background: var(--error-text); color: #fff; }
.btn.ghost.danger { background: transparent; color: var(--error-text); }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.badge { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: .75rem; font-weight: 600; text-align: center; line-height: 1.5; }

.stack { display: grid; gap: 1rem; }
.stack label, .two label { display: grid; gap: .35rem; font-weight: 500; }
.two { display: grid; gap: 1rem; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
label.check { display: flex !important; align-items: center; gap: .6rem; font-weight: 400; min-height: 40px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem 1rem .8rem; margin: 0; min-width: 0; }
legend { font-weight: 500; padding: 0 .3rem; }
.form-f { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .5rem 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: .7rem 1rem; border-radius: 12px; margin: 0 0 1rem; }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.ok a { color: inherit; font-weight: 600; }
.alert.warn { background: var(--warn-bg); color: var(--warn-text); }
.alert.error { background: var(--error-bg); color: var(--error-text); }
.note { display: inline-block; background: var(--warn-bg); color: var(--warn-text); font-size: .85rem; border-radius: 8px; padding: .2rem .6rem; margin: .4rem 0 0; }
.toast { position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; max-width: calc(100% - 32px); }
.toast:not(:empty) { background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: 12px; box-shadow: var(--shadow); }

/* Tags and categories */
.tag { display: inline-flex; align-items: center; gap: .2rem; font-size: .72rem; font-weight: 600; letter-spacing: .01em; padding: .1rem .5rem; border-radius: 999px; background: var(--surface); color: var(--muted); margin-left: .35rem; vertical-align: .15em; white-space: nowrap; }
.tag.solved { background: var(--ok-bg); color: var(--ok); }
.tag.pin { background: var(--accent-soft); color: var(--link); }
.tag.wait { background: var(--warn-bg); color: var(--warn-text); }
.tag.del { background: var(--error-bg); color: var(--error-text); }
.tag.admin { background: var(--accent); color: var(--accent-text); }
.cat { --c: var(--muted); display: inline-flex; align-items: center; gap: .35rem; color: var(--text); text-decoration: none; font-weight: 500; }
.cat::before { content: ""; width: .55rem; height: .55rem; border-radius: 3px; background: var(--c); }
.cat-news { --c: var(--c-news); } .cat-help { --c: var(--c-help); } .cat-ideas { --c: var(--c-ideas); } .cat-show { --c: var(--c-show); }

/* Home */
.hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; margin: .5rem 0 1rem; }
.hero h1 { margin: 0; }
.hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cats { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .8rem; }
@media (min-width: 640px) { .cats { grid-template-columns: 1fr 1fr; } }
.cat-card { background: var(--surface-2); border: 1px solid var(--border); border-top: 4px solid var(--c); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow); min-width: 0; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; color: var(--text); text-decoration: none; }
.cat-head h2 { margin: 0; }
.cat-card > p { margin: .3rem 0 .6rem; font-size: .92rem; }
.mini { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.mini li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .2rem; padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.mini li:last-child { border-bottom: 0; }
.mini a { color: var(--text); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.mini a:hover { color: var(--link); }
.mini time { margin-left: auto; padding-left: .5rem; }
.section-h { margin: 1.6rem 0 .6rem; display: flex; align-items: center; gap: .5rem; }

/* Lists */
.crumbs { font-size: .9rem; color: var(--muted); margin: .2rem 0 .3rem; }
.crumbs a { color: var(--muted); }
.cat-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; align-items: flex-end; border-left: 4px solid var(--c); padding-left: .9rem; margin-bottom: .8rem; }
.cat-top h1 { margin: 0; }
.cat-top p { margin: .2rem 0 0; }
.cat-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.sortbar { display: flex; gap: .3rem; align-items: center; border-bottom: 1px solid var(--border); margin-bottom: .4rem; overflow-x: auto; }
.sortbar a { padding: .55rem .7rem; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.sortbar a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
.sortbar .feed { margin-left: auto; font-size: .8rem; }
.rows { list-style: none; padding: 0; margin: 0; }
.row { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 1.02rem; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.row-title a { color: var(--text); text-decoration: none; }
.row-title a:hover { color: var(--link); }
.row-ex { margin: .2rem 0; color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-ex mark { background: var(--accent-soft); color: var(--text); border-radius: 3px; padding: 0 .1em; }
.row-meta { display: flex; flex-wrap: wrap; gap: .1rem .45rem; align-items: center; margin: .2rem 0 0; color: var(--muted); font-size: .84rem; }
.row-n { display: grid; justify-items: center; min-width: 3.2rem; text-decoration: none; color: var(--muted); font-size: .72rem; padding-top: .1rem; }
.row-n b { font-size: 1.05rem; color: var(--text); font-weight: 600; }
.pending-list { opacity: .85; }
.empty { padding: 2rem 0; text-align: center; }
.pager { display: flex; justify-content: space-between; margin-top: 1.2rem; }

/* Vote */
.vote { margin: 0; flex: none; }
.vote button, .vote a { display: grid; justify-items: center; align-content: center; gap: .05rem; width: 3.2rem; min-height: 3.4rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font: 600 1rem/1 var(--font); cursor: pointer; text-decoration: none; }
.vote button:hover, .vote a:hover { border-color: var(--c-ideas); color: var(--c-ideas); }
.vote.on button { background: var(--c-ideas); border-color: var(--c-ideas); color: #fff; }
.vote .n { font-size: 1rem; color: inherit; }

/* Gallery */
.gallery { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card-img { display: block; aspect-ratio: 4 / 3; background: var(--surface); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-b { padding: .7rem .9rem .8rem; }
.card h3 { margin: 0; font-size: 1rem; }
.card h3 a { color: var(--text); text-decoration: none; }

/* Thread */
.thread-h { display: flex; gap: .8rem; align-items: flex-start; }
.thread-h > div { min-width: 0; }
.thread-h h1 { margin: 0; }
.tags { margin: .3rem 0 .6rem; }
.tags .tag:first-child { margin-left: 0; }
.facts { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0 0 1rem; padding: .6rem .9rem; background: var(--surface); border-radius: 12px; font-size: .9rem; }
.facts div { display: flex; flex-wrap: wrap; gap: .4rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-family: var(--mono); font-size: .85rem; }
.board { margin: 0 0 1rem; }
.board img { border-radius: var(--radius); border: 1px solid var(--border); margin: 0 auto; }
.adminbar { display: flex; gap: .4rem; margin: 0 0 .6rem; padding: .4rem; border: 1px dashed var(--border); border-radius: 12px; }
.adminbar form { margin: 0; }
.posts { display: grid; gap: .8rem; }
.post { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem; scroll-margin-top: 5rem; min-width: 0; }
.post.is-solution { border: 2px solid var(--ok); }
.post.is-pending { border-style: dashed; }
.post.is-deleted { opacity: .7; }
.post:target { box-shadow: 0 0 0 3px var(--accent-soft); }
.post-h { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .45rem; font-size: .9rem; }
.post-h .tag { margin-left: 0; }
.who { font-weight: 600; }
.when { color: var(--muted); text-decoration: none; }
.post-f { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.post-f form { margin: 0; }
.report { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin-top: .6rem; }
.report label { flex: 1 1 14rem; display: grid; gap: .3rem; font-size: .9rem; }
.reply { margin-top: 1.4rem; }
.mod { margin-bottom: .8rem; }
.plain { list-style: none; padding: 0; }
.plain li { padding: .3rem 0; }

.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 600; font-size: .85rem; flex: none; background: hsl(var(--h, 20) 55% 46%); }
.av0 { --h: 12; } .av1 { --h: 38; } .av2 { --h: 150; } .av3 { --h: 200; } .av4 { --h: 225; }
.av5 { --h: 262; } .av6 { --h: 290; } .av7 { --h: 330; } .av8 { --h: 175; } .av9 { --h: 95; }

/* Markdown */
.md { overflow-wrap: anywhere; margin-top: .4rem; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p, .md ul, .md ol, .md pre, .md blockquote, .md table { margin: .55em 0; }
.md img { border-radius: 10px; border: 1px solid var(--border); margin: .5rem 0; max-height: 70vh; width: auto; }
.md code { font: .88em var(--mono); background: var(--surface); border-radius: 5px; padding: .1em .35em; }
.md pre { background: var(--surface); border-radius: 10px; padding: .8rem; overflow-x: auto; }
.md pre code { background: none; padding: 0; }
.md blockquote { border-left: 3px solid var(--border); margin-left: 0; padding-left: .9rem; color: var(--muted); }
.md table { border-collapse: collapse; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--border); padding: .3rem .6rem; }
.md li input[type="checkbox"] { vertical-align: -.15em; margin-right: .3rem; }

/* Editor */
.editor { border: 1px solid var(--input-border); border-radius: var(--radius); background: var(--surface-2); overflow: hidden; }
.editor:focus-within { outline: 2px solid var(--accent); outline-offset: -1px; }
.editor .tabs { display: flex; gap: .2rem; padding: .3rem .3rem 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.tab { border: 0; background: none; font: 500 .88rem var(--font); color: var(--muted); padding: .45rem .8rem; border-radius: 8px 8px 0 0; cursor: pointer; min-height: 36px; }
.tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.editor textarea { border: 0; border-radius: 0; outline: none; display: block; }
.editor textarea.drop { background: var(--accent-soft); }
.editor .preview { padding: .7rem .8rem; min-height: 8rem; }
.editor-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; padding: .4rem .6rem; border-top: 1px solid var(--border); }
.hint { color: var(--muted); font-size: .8rem; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.upload-status { margin: 0; padding: 0 .8rem; }
.upload-status:empty { display: none; }
.upload-status:not(:empty) { padding-bottom: .4rem; }

.catpick { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex !important; align-items: center; gap: .45rem; border: 1px solid var(--border); border-radius: 999px; padding: .45rem .9rem; cursor: pointer; font-weight: 500; min-height: 42px; }
.chip:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.only { display: none; }
form:has(input[value="help"]:checked) .only-help, form:has(input[value="show"]:checked) .only-show { display: block; }

details.danger-zone { margin-top: 2rem; border: 1px solid var(--border); border-radius: var(--radius); padding: .7rem 1rem; }
details.danger-zone summary { cursor: pointer; color: var(--error-text); font-weight: 500; }
details.danger-zone form { margin-top: .8rem; }
.prose p { line-height: 1.7; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 1rem 16px calc(1.2rem + env(safe-area-inset-bottom)); color: var(--muted); font-size: .88rem; }
.foot-in { max-width: var(--w); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; }
.foot a { color: var(--muted); }
.foot .links { margin: 0; }
.prefs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.seg button { border: 0; background: none; color: var(--muted); font: 500 .8rem var(--font); padding: .35rem .7rem; border-radius: 999px; cursor: pointer; min-height: 32px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); }

@media (min-width: 640px) {
  h1 { font-size: 1.9rem; }
  .wrap { padding-top: 1.4rem; }
  .post { padding: 1rem 1.2rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Account: signed-in app installs */
.devices { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.devices li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem .8rem; }
.devices form { margin: 0; }
