/* cb.gutz.me — GitHub-inspired look (light + dark) */
:root {
  --bg: #ffffff; --bg-subtle: #f6f8fa; --bg-inset: #f6f8fa; --bg-hover: #f3f4f6; --bg-overlay: #ffffff;
  --fg: #1f2328; --fg-muted: #59636e; --fg-subtle: #818b98; --fg-on-emphasis: #ffffff;
  --border: #d1d9e0; --border-muted: #d8dee4; --border-strong: #b7bfc7;
  --accent: #0969da; --accent-subtle: #ddf4ff; --accent-muted: rgba(84,174,255,.4);
  --success: #1f883d; --success-hover: #1c8139; --success-subtle: #dafbe1;
  --danger: #d1242f; --danger-subtle: #ffebe9; --attention: #9a6700; --attention-subtle: #fff8c5;
  --done: #8250df; --done-subtle: #fbefff;
  --header-bg: #1f2328; --header-fg: #ffffff; --header-muted: rgba(255,255,255,.7);
  --shadow: 0 1px 0 rgba(31,35,40,.04); --shadow-lg: 0 8px 24px rgba(66,74,83,.12), 0 1px 3px rgba(31,35,40,.12);
  --radius: 6px; --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117; --bg-subtle: #151b23; --bg-inset: #010409; --bg-hover: #1f2630; --bg-overlay: #151b23;
    --fg: #f0f6fc; --fg-muted: #9198a1; --fg-subtle: #656c76;
    --border: #3d444d; --border-muted: #2f353d; --border-strong: #4c535c;
    --accent: #4493f8; --accent-subtle: rgba(56,139,253,.15); --accent-muted: rgba(56,139,253,.4);
    --success: #238636; --success-hover: #29903b; --success-subtle: rgba(46,160,67,.15);
    --danger: #f85149; --danger-subtle: rgba(248,81,73,.1); --attention: #d29922; --attention-subtle: rgba(187,128,9,.15);
    --done: #ab7df8; --done-subtle: rgba(171,125,248,.15);
    --header-bg: #010409; --shadow-lg: 0 8px 24px rgba(1,4,9,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117; --bg-subtle: #151b23; --bg-inset: #010409; --bg-hover: #1f2630; --bg-overlay: #151b23;
  --fg: #f0f6fc; --fg-muted: #9198a1; --fg-subtle: #656c76;
  --border: #3d444d; --border-muted: #2f353d; --border-strong: #4c535c;
  --accent: #4493f8; --accent-subtle: rgba(56,139,253,.15); --accent-muted: rgba(56,139,253,.4);
  --success: #238636; --success-hover: #29903b; --success-subtle: rgba(46,160,67,.15);
  --danger: #f85149; --danger-subtle: rgba(248,81,73,.1); --attention: #d29922; --attention-subtle: rgba(187,128,9,.15);
  --done: #ab7df8; --done-subtle: rgba(171,125,248,.15);
  --header-bg: #010409; --shadow-lg: 0 8px 24px rgba(1,4,9,.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--fg); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
code, kbd, .mono { font-family: var(--mono); font-size: 12px; }
svg.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: text-bottom; }
.hidden { display: none !important; }
.muted { color: var(--fg-muted); }
.small { font-size: 12px; }
.noscript { padding: 2rem; text-align: center; }

/* boot */
.boot { display: grid; place-items: center; height: 100vh; }
.boot-spinner, .spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.spinner { width: 14px; height: 14px; border-width: 2px; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* buttons & form controls (Primer-like) */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-subtle); color: var(--fg); font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow); transition: background .1s; }
.btn:hover { background: var(--bg-hover); border-color: var(--border-strong); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--success); border-color: rgba(31,35,40,.15); color: #fff; }
.btn-primary:hover { background: var(--success-hover); border-color: rgba(31,35,40,.15); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-icon { width: 32px; padding: 0; justify-content: center; }
.btn-sm.btn-icon { width: 28px; }
.btn-invisible { background: transparent; border-color: transparent; box-shadow: none; color: var(--fg-muted); }
.btn-invisible:hover { background: var(--bg-hover); border-color: transparent; color: var(--fg); }
.btn-block { width: 100%; justify-content: center; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.input, select.input, textarea.input { display: block; width: 100%; min-height: 32px; padding: 5px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--fg); outline: none; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted); }
.input.mono { font-size: 14px; letter-spacing: .08em; }
label.lbl { display: block; font-weight: 600; margin: 12px 0 6px; }
.field-note { font-size: 12px; color: var(--fg-muted); margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; margin: 10px 0; cursor: pointer; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.label { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; height: 20px; font-size: 12px; font-weight: 500; border: 1px solid var(--border); border-radius: 2em; color: var(--fg-muted); white-space: nowrap; }
.label.green { color: var(--success); border-color: var(--success); background: var(--success-subtle); }
.label.purple { color: var(--done); border-color: var(--done); background: var(--done-subtle); }
.label.red { color: var(--danger); border-color: var(--danger); background: var(--danger-subtle); }
.label.yellow { color: var(--attention); border-color: var(--attention); background: var(--attention-subtle); }
.label svg.ic { width: 12px; height: 12px; }
.flash { padding: 12px 16px; border: 1px solid; border-radius: var(--radius); margin: 0 0 16px; }
.flash.error { background: var(--danger-subtle); border-color: var(--danger); color: var(--fg); }
.flash.warn { background: var(--attention-subtle); border-color: var(--attention); }
.flash.info { background: var(--accent-subtle); border-color: var(--accent-muted); }

/* auth pages */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 48px 16px; background: var(--bg-subtle); }
.auth .logo { width: 48px; height: 48px; margin-bottom: 16px; }
.auth h1 { font-size: 24px; font-weight: 300; margin: 0 0 16px; letter-spacing: -.5px; }
.auth .box { width: 100%; max-width: 340px; background: var(--bg); border: 1px solid var(--border-muted); border-radius: var(--radius); padding: 16px 20px 20px; }
.auth .box + .box { margin-top: 16px; text-align: center; }
.seg { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 4px; }
.seg button { flex: 1; border: 0; background: var(--bg-subtle); padding: 6px; cursor: pointer; color: var(--fg-muted); font-weight: 500; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--bg); color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); }
.token-input { text-align: center; font-family: var(--mono); font-size: 20px !important; letter-spacing: .3em; }

/* header */
.hdr { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; background: var(--header-bg); color: var(--header-fg); position: sticky; top: 0; z-index: 20; }
.hdr .brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 16px; }
.hdr .brand img { width: 28px; height: 28px; }
.hdr .spacer { flex: 1; }
.hdr .btn-invisible { color: var(--header-muted); }
.hdr .btn-invisible:hover { color: #fff; background: rgba(255,255,255,.12); }
.hdr .menu-toggle { display: none; }
.usage { display: flex; flex-direction: column; gap: 3px; min-width: 120px; font-size: 11px; color: var(--header-muted); }
.usage .bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.usage .bar span { display: block; height: 100%; background: #3fb950; }
.usage .bar span.warn { background: #d29922; }
.usage .bar span.full { background: #f85149; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #2da44e, #0969da); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12px; text-transform: uppercase; }

/* dropdown menus */
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: var(--bg-overlay); color: var(--fg); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px 0; z-index: 50; }
.menu.left { left: 0; right: auto; }
.menu .mi { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 16px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--fg); font-size: 14px; }
.menu .mi:hover { background: var(--bg-hover); }
.menu .mi.danger { color: var(--danger); }
.menu .sep { height: 1px; background: var(--border-muted); margin: 8px 0; }
.menu .mh { padding: 4px 16px 8px; font-size: 12px; color: var(--fg-muted); }

/* layout */
.layout { display: grid; grid-template-columns: 280px 1fr; height: calc(100vh - 56px); }
.side { border-right: 1px solid var(--border-muted); background: var(--bg); display: flex; flex-direction: column; min-height: 0; }
.side-head { display: flex; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid var(--border-muted); }
.side-head .input { min-height: 28px; height: 28px; font-size: 13px; }
.tree { flex: 1; overflow: auto; padding: 8px; }
.tree .node { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: var(--radius); cursor: pointer; color: var(--fg); user-select: none; min-height: 32px; position: relative; }
.tree .node:hover { background: var(--bg-hover); }
.tree .node.active { background: var(--accent-subtle); }
.tree .node.active::before { content: ""; position: absolute; left: -8px; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: var(--accent); }
.tree .node .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree .node .ic.k { color: var(--fg-muted); }
.tree .node .ic.folder { color: #54aeff; }
.tree .node .mini { color: var(--fg-subtle); display: inline-flex; gap: 2px; }
.tree .node .mini svg { width: 12px; height: 12px; }
.tree .node .chev { width: 16px; height: 16px; color: var(--fg-subtle); transition: transform .12s; }
.tree .node .chev.open { transform: rotate(90deg); }
.tree .node .chev.none { visibility: hidden; }
.tree .node.drop { outline: 2px dashed var(--accent); outline-offset: -2px; }
.tree .kids { margin-left: 14px; padding-left: 6px; border-left: 1px solid var(--border-muted); }
.tree .empty { padding: 24px 12px; text-align: center; color: var(--fg-muted); }
.tree .root-drop { min-height: 40px; }
.side-foot { padding: 10px 12px; border-top: 1px solid var(--border-muted); font-size: 12px; color: var(--fg-muted); display: flex; gap: 8px; align-items: center; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.tabs { display: flex; align-items: flex-end; gap: 0; padding: 8px 8px 0; border-bottom: 1px solid var(--border-muted); background: var(--bg-subtle); overflow-x: auto; flex: none; scrollbar-width: thin; }
.tab { display: flex; align-items: center; gap: 6px; max-width: 220px; height: 36px; padding: 0 8px 0 12px; border: 1px solid transparent; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
  color: var(--fg-muted); cursor: pointer; white-space: nowrap; position: relative; top: 1px; flex: none; }
.tab:hover { color: var(--fg); }
.tab.on { background: var(--bg); border-color: var(--border-muted); color: var(--fg); font-weight: 600; }
.tab.on::after { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; border-radius: 2px 2px 0 0; background: #fd8c73; }
.tab .t { overflow: hidden; text-overflow: ellipsis; }
.tab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--attention); flex: none; }
.tab .x { border: 0; background: none; padding: 2px; border-radius: 4px; color: var(--fg-subtle); cursor: pointer; display: grid; }
.tab .x:hover { background: var(--bg-hover); color: var(--fg); }
.tab .x svg { width: 14px; height: 14px; }

.pane { flex: 1; overflow: auto; padding: 24px; min-height: 0; }
.pane-inner { max-width: 1100px; margin: 0 auto; }
.welcome { max-width: 640px; margin: 48px auto; text-align: center; }
.welcome h2 { font-weight: 400; font-size: 24px; margin: 8px 0; }
.welcome .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 24px; }
.welcome .card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 12px; cursor: pointer; background: var(--bg); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--fg); }
.welcome .card:hover { border-color: var(--accent); background: var(--bg-subtle); }
.welcome .card svg.ic { width: 24px; height: 24px; color: var(--fg-muted); }

/* clipboard editor */
.ed { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.ed-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg-subtle); border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
.ed-title { flex: 1; min-width: 160px; border: 1px solid transparent; background: transparent; font-size: 16px; font-weight: 600; padding: 4px 8px; border-radius: var(--radius); }
.ed-title:hover { border-color: var(--border); }
.ed-title:focus { border-color: var(--accent); background: var(--bg); outline: none; box-shadow: 0 0 0 3px var(--accent-muted); }
.ed-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border-muted); }
.ed-status { margin-left: auto; font-size: 12px; color: var(--fg-muted); display: flex; align-items: center; gap: 6px; }
.ed textarea.code { display: block; width: 100%; min-height: 55vh; border: 0; padding: 16px; resize: vertical; background: var(--bg); color: var(--fg); font: 13px/1.6 var(--mono); outline: none; tab-size: 4; border-radius: 0 0 var(--radius) var(--radius); }
.rt-tools { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--border-muted); background: var(--bg); }
.rt-tools .btn { height: 28px; min-width: 28px; padding: 0 6px; font-size: 13px; }
.rt-tools .sep { width: 1px; background: var(--border-muted); margin: 4px 4px; }
.rich { min-height: 55vh; padding: 16px 20px; outline: none; overflow-wrap: anywhere; }
.rich:empty::before { content: attr(data-placeholder); color: var(--fg-subtle); }
.rich img { max-width: 100%; }
.rich blockquote { margin: 0 0 12px; padding: 0 1em; color: var(--fg-muted); border-left: .25em solid var(--border); }
.rich pre, .rich code { background: var(--bg-subtle); border-radius: 6px; font-family: var(--mono); }
.rich code { padding: .2em .4em; font-size: 85%; }
.rich pre { padding: 16px; overflow: auto; }
.rich table { border-collapse: collapse; }
.rich td, .rich th { border: 1px solid var(--border); padding: 6px 13px; }
.rich h1, .rich h2 { border-bottom: 1px solid var(--border-muted); padding-bottom: .3em; }
.locked { padding: 48px 24px; text-align: center; }
.locked svg.ic { width: 32px; height: 32px; color: var(--fg-muted); }
.locked h3 { font-weight: 500; margin: 12px 0 4px; }
.locked form { max-width: 360px; margin: 16px auto 0; }

.drop-zone { margin: 16px; border: 2px dashed var(--border); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--fg-muted); cursor: pointer; transition: all .12s; }
.drop-zone:hover, .drop-zone.over { border-color: var(--accent); background: var(--accent-subtle); color: var(--fg); }
.drop-zone svg.ic { width: 28px; height: 28px; }
.flist { list-style: none; margin: 0; padding: 0; }
.flist li { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-top: 1px solid var(--border-muted); }
.flist li:hover { background: var(--bg-subtle); }
.flist .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flist .fsize { color: var(--fg-muted); font-size: 12px; white-space: nowrap; }
.progress { height: 4px; border-radius: 2px; background: var(--border-muted); overflow: hidden; width: 120px; }
.progress span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .1s; }
.notes { width: 100%; border: 0; border-top: 1px solid var(--border-muted); padding: 12px 16px; min-height: 70px; resize: vertical; background: var(--bg); outline: none; font: 13px/1.5 var(--sans); border-radius: 0 0 var(--radius) var(--radius); }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(1,4,9,.5); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; overflow: auto; animation: fade .12s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 480px; background: var(--bg-overlay); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); animation: pop .15s; }
.modal.wide { max-width: 760px; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
.modal-h { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border-muted); font-weight: 600; }
.modal-h .grow { font-size: 14px; }
.modal-b { padding: 16px; max-height: 70vh; overflow: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border-muted); }
.modal-b > :first-child { margin-top: 0; }

/* list boxes */
.box-list { border: 1px solid var(--border); border-radius: var(--radius); }
.box-list > .bl-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border-muted); }
.box-list > .bl-item:first-child { border-top: 0; }
.box-list > .bl-head { padding: 10px 14px; background: var(--bg-subtle); border-bottom: 1px solid var(--border); font-weight: 600; border-radius: var(--radius) var(--radius) 0 0; }
.box-list .empty { padding: 20px; text-align: center; color: var(--fg-muted); }
.kid { font-family: var(--mono); font-size: 11px; color: var(--fg-muted); }
.secret { display: flex; gap: 8px; align-items: center; padding: 12px; background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--mono); font-size: 18px; letter-spacing: .1em; word-break: break-all; }
.secret.sm { font-size: 12px; letter-spacing: 0; }

/* admin */
.admin { max-width: 1200px; margin: 0 auto; padding: 24px; }
.admin h2 { font-weight: 400; font-size: 24px; margin: 0; }
.sub-nav { display: flex; gap: 8px; border-bottom: 1px solid var(--border-muted); margin: 16px 0; }
.sub-nav button { border: 0; background: none; padding: 8px 12px; cursor: pointer; color: var(--fg-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.sub-nav button.on { color: var(--fg); border-bottom-color: #fd8c73; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; }
.stat b { display: block; font-size: 22px; font-weight: 600; }
.tbl-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th { text-align: left; font-weight: 600; background: var(--bg-subtle); padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.tbl td { padding: 8px 12px; border-top: 1px solid var(--border-muted); vertical-align: middle; }
table.tbl tr:hover td { background: var(--bg-subtle); }
.meter { width: 90px; height: 6px; background: var(--border-muted); border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.meter span { display: block; height: 100%; background: var(--success); }

/* public view */
.pub { max-width: 980px; margin: 0 auto; padding: 24px 16px; }
.pub .meta { color: var(--fg-muted); font-size: 13px; margin: 4px 0 16px; }
.pub .readonly { padding: 16px; font: 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; margin: 0; min-height: 120px; }

/* toast */
.toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; align-items: center; pointer-events: none; }
.toast { background: var(--fg); color: var(--bg); padding: 8px 16px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 13px; animation: pop .15s; max-width: 90vw; }
.toast.error { background: var(--danger); color: #fff; }
.banner { display: flex; gap: 12px; align-items: center; padding: 10px 16px; background: var(--attention-subtle); border-bottom: 1px solid var(--attention); font-size: 13px; }

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: fixed; top: 56px; bottom: 0; left: 0; width: 86vw; max-width: 320px; z-index: 30; transform: translateX(-100%); transition: transform .18s; box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .hdr .menu-toggle { display: inline-flex; }
  .usage { display: none; }
  .pane { padding: 12px; }
  .hdr .hide-sm { display: none; }
}
.spacer-12 { height: 12px; }
.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
.conflict { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: var(--attention-subtle); border-bottom: 1px solid var(--attention); font-size: 13px; }
.share-link { display: flex; gap: 8px; margin-top: 8px; }
.kbd { display: inline-block; padding: 0 5px; font: 11px var(--mono); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; background: var(--bg-subtle); }
.node-actions { opacity: 0; }
.tree .node:hover .node-actions, .tree .node:focus-within .node-actions { opacity: 1; }
@media (hover: none) { .node-actions { opacity: 1; } }
.tree .node-actions .btn { height: 22px; width: 22px; }
.tip-list { text-align: left; color: var(--fg-muted); font-size: 13px; margin: 32px auto 0; max-width: 480px; }
.ed-bar select.enc-select { display: inline-block; width: auto; max-width: 220px; height: 28px; min-height: 28px; padding: 0 8px; font-size: 12px; }
.pub-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.center-row { justify-content: center; }
