/* Egen side – version 2
   Ét grunddesign. Hver side farves med CSS-variabler: --bg --ink --accent --card --bar --muted --tex --font --radius
   Platformens egne sider (feed, venner, indstillinger) bruger de samme variabler med faste værdier. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

:root {
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --bg: #E7E7E2; --ink: #121212; --accent: #FF4D2E; --on-accent: #121212;
  --card: #FFFFFF; --bar: #EDECE6; --muted: #5D5A52; --tex: #D3D2CA;
  --font: 'IBM Plex Sans', system-ui, sans-serif; --radius: 0px;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 110px;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.inline { display: inline; }
.row { display: flex; gap: 8px; align-items: center; }
.row input { flex: 1; min-width: 0; }
.row.between { justify-content: space-between; flex-wrap: wrap; }

/* ---------- Baggrunde ---------- */
.tex-prikker { background-image: radial-gradient(var(--tex) 1px, transparent 1.2px); background-size: 16px 16px; }
.tex-gitter { background-image: linear-gradient(var(--tex) 1px, transparent 1px), linear-gradient(90deg, var(--tex) 1px, transparent 1px); background-size: 24px 24px; }
.tex-linjer { background-image: repeating-linear-gradient(0deg, transparent 0 5px, var(--tex) 5px 6px); }
.tex-skraa { background-image: repeating-linear-gradient(45deg, transparent 0 7px, var(--tex) 7px 8px); }

/* ---------- Knapper og felter ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--bg);
  font: 500 14px/1 var(--mono); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.15); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { min-height: 38px; padding: 0 12px; font-size: 13px; }
.linkbtn { background: none; border: 0; padding: 4px; font: 12px var(--mono); color: var(--muted); text-decoration: underline; cursor: pointer; }
input:not([type=radio]):not([type=file]):not([type=color]), textarea {
  width: 100%; min-height: 40px; padding: 8px 10px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 15px;
}
textarea { resize: vertical; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Beskeder ---------- */
.flash, .newbar {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 40;
  padding: 10px 16px; border-radius: 4px; background: #121212; color: #EDEDED;
  font: 13px var(--mono); box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.flash { animation: drop .22s cubic-bezier(.2,.8,.2,1), fadeout 4.5s forwards; }
@keyframes fadeout { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.newbar a { color: #FF4D2E; }
.error { padding: 12px 14px; border: 1px solid #C8461E; background: #FBE3DC; color: #7E2A0B; }

/* ---------- Moduler (fælles for siderne) ---------- */
.module { background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 32px; padding: 0 12px;
  border-bottom: 1px solid var(--ink); background: var(--bar);
  font: 12px var(--mono); color: var(--ink);
}
.bar label { font: inherit; }
.module-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- En persons side ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 48px 32px; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 40px; align-items: start; }
.sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }
.sidebar.tall { position: static; }
.profile { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.avatar-big { width: 100%; aspect-ratio: 1; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--bar); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.avatar-big img { width: 100%; height: 100%; object-fit: cover; }
.avatar-big span { font-size: 96px; font-weight: 700; color: var(--muted); }
.path { font: 14px var(--mono); color: var(--accent); }
.profile h1 { font-size: 44px; font-weight: 700; line-height: .95; letter-spacing: -.03em; overflow-wrap: anywhere; }
.bio { font-size: 15px; }
.facts { display: flex; flex-direction: column; gap: 2px; font: 12px var(--mono); color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 13px var(--mono); }
.note { font: 12px/1.5 var(--mono); color: var(--muted); }
.gb { font-size: 14px; }
.gb-entry a { font-weight: 600; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.stack-sm label { font-family: var(--mono); }

.stream { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.empty { padding: 20px 0; }
.activity { list-style: none; margin: 0; font-size: 15px; gap: 8px; }
.activity a { font-weight: 600; }

.tile-label { font: 11px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.file { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px dashed var(--ink); border-radius: var(--radius); font: 13px var(--mono); cursor: pointer; }
.post-image { width: 100%; border-bottom: 1px solid var(--ink); }
.post-body { font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.post-delete { align-self: flex-end; }

/* Hjerter med navne der glider forbi */
.ticker { display: flex; align-items: stretch; height: 38px; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; font: 13px var(--mono); }
.heart-form { display: flex; }
.heart { width: 44px; border: 0; border-right: 1px solid var(--ink); background: var(--card); color: var(--accent); font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.heart.on { background: var(--accent); color: var(--on-accent); }
.heart.static { cursor: default; }
.ticker-view { flex: 1; overflow: hidden; display: flex; align-items: center; padding-left: 12px; }
.ticker-track { display: flex; gap: 22px; white-space: nowrap; width: max-content; }
.ticker-track.run { padding-right: 22px; animation: tick 20s linear infinite; }
.ticker:hover .ticker-track.run, .ticker:focus-within .ticker-track.run { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track.run { animation: none; } }
.empty-names { color: var(--muted); }

.comments { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--ink); }
.comment { font-size: 15px; overflow-wrap: anywhere; }
.comment a { font-weight: 600; margin-right: 4px; }

/* ---------- Platformens sider ---------- */
.app { font-family: 'IBM Plex Sans', system-ui, sans-serif; }
main.wide { max-width: 1180px; margin: 0 auto; padding: 48px 32px; display: flex; flex-direction: column; gap: 32px; }
main.narrow { max-width: 640px; margin: 0 auto; padding: 48px 20px; display: flex; flex-direction: column; gap: 24px; }
.app-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.app-head h1 { font-size: 36px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.app-head > span, .app-head > a { font: 13px var(--mono); }
.app-section { display: flex; flex-direction: column; gap: 12px; }
.new { display: inline-flex; align-items: center; gap: 6px; }
.sq { width: 8px; height: 8px; background: #FF4D2E; }
.done { text-align: center; font: 14px var(--mono); color: var(--muted); }
.empty-box { padding: 24px; border: 1px dashed #121212; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.people { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.people li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px; border: 1px solid #121212; background: #fff; }
.person { display: flex; align-items: center; gap: 12px; color: #121212; text-decoration: none; }
.sq-avatar { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #121212; background: #D9D7CC; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; }
.sq-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sq-avatar.big { width: 72px; height: 72px; font-size: 28px; }

/* Login */
.lead { font-size: 17px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack label { font: 500 13px var(--mono); margin-top: 8px; }
.stack .btn { margin-top: 12px; }
.testcode { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 2px dashed #FF4D2E; background: #fff; }
.testcode span { font: 12px var(--mono); color: #7E2A0B; }
.testcode strong { font: 600 34px var(--mono); letter-spacing: .2em; }
.code-input { font: 500 26px var(--mono) !important; letter-spacing: .3em; text-align: center; }
.handle-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.handle-row input { flex: 1; min-width: 160px; }

/* Indstillinger */
.settings { max-width: 1180px; margin: 0 auto; padding: 48px 32px; display: flex; flex-direction: column; gap: 24px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.settings-col { display: flex; flex-direction: column; gap: 16px; }
.panel { margin: 0; border: 1px solid #121212; background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.panel legend { padding: 0 6px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.panel > label, .panel .two label { font: 500 12px var(--mono); margin-top: 6px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.color-row { display: flex; align-items: center; gap: 12px; font: 13px var(--mono); }
.color-row input[type=color] { width: 44px; height: 44px; padding: 0; border: 1px solid #121212; background: none; cursor: pointer; }
.color-row label { flex: 1; }
.contrast-warn { padding: 10px 12px; border: 1px solid #E0A100; background: #FFF6DA; font: 12px/1.5 var(--mono); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.choice-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice > span:not(.sr) { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 8px; border: 1px solid #C9C8C0; background-color: #FAFAF7; font-size: 15px; cursor: pointer; }
.choice input:checked + span { border: 2px solid #121212; }
.choice input:focus-visible + span { outline: 3px solid #FF4D2E; outline-offset: 2px; }
.choice .rounded { border-radius: 6px; }
.choice > .tex-swatch { height: 52px; background-color: #EDEDE8; --tex: #A9A8A0; }
.wide-btn { width: 100%; min-height: 50px; }
.logout { align-self: flex-start; }

/* Story-visning */
.story-view { position: fixed; inset: 0; z-index: 20; background: #0D0D0D; color: #EDEDED; display: grid; grid-template-rows: auto 1fr auto; font-family: var(--mono); }
.story-top { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 10px; max-width: 720px; width: 100%; margin: 0 auto; }
.story-progress { display: flex; gap: 4px; }
.story-progress span { flex: 1; height: 3px; background: #3A3A3A; }
.story-progress span.done { background: #EDEDED; }
.story-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.story-meta a { color: #EDEDED; }
.story-meta span { color: #9A9A9A; flex: 1; }
.story-close { font-size: 20px; text-decoration: none; padding: 6px 10px; }
.story-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 12px; }
.story-stage figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-height: 100%; }
.story-stage img { max-height: calc(100vh - 230px); max-width: min(100%, 560px); object-fit: contain; }
.story-stage figcaption { font-size: 15px; }
.story-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 96px; display: flex; align-items: center; justify-content: center; font-size: 44px; color: #EDEDED; text-decoration: none; }
.story-nav.prev { left: 8px; }
.story-nav.next { right: 8px; }
.seen-by { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.seen-by a { color: #EDEDED; }
.seen-by .label { color: #9A9A9A; }
.story-view .muted { color: #9A9A9A; }

/* ---------- Docken: ens på alle sider ---------- */
.dock {
  position: fixed; left: 50%; bottom: 20px; z-index: 30; transform: translateX(-50%);
  width: min(660px, calc(100% - 24px)); height: 60px; padding: 6px;
  display: flex; align-items: center; gap: 4px;
  border-radius: 6px; background: #121212; color: #EDEDED;
  font: 13px var(--mono);
  box-shadow: 0 0 0 1px #2A2A2A, 0 10px 24px rgba(0,0,0,.28);
}
nav.dock a { position: relative; height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border-radius: 3px; color: #EDEDED; text-decoration: none; flex-shrink: 0; }
nav.dock a:hover { background: #262626; }
.dock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
nav.dock .dock-home { width: 48px; padding: 0; justify-content: center; background: #EDEDED; color: #121212; }
nav.dock .dock-home:hover { background: #fff; }
.dock-space { flex: 1; }
nav.dock .outlined { border: 1px solid #3A3A3A; }
.story-ico { width: 10px; height: 16px; border: 1.5px solid #EDEDED; border-radius: 1px; }
.outlined .story-ico + .lbl { margin-left: -2px; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 2px; background: #FF4D2E; color: #121212; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
nav.dock .dock-me { width: 48px; padding: 0; justify-content: center; margin-left: 4px; background: #A7A28F; color: #121212; font-weight: 700; font-size: 18px; box-shadow: inset 0 0 0 1px #EDEDED; }
.dock-me img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.dock-me .dot { position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border-radius: 2px; background: #FF4D2E; box-shadow: 0 0 0 2px #121212; }
nav.dock .dock-login { background: #EDEDED; color: #121212; font-weight: 500; }

/* ---------- Telefon ---------- */
@media (max-width: 860px) {
  .wrap { display: flex; flex-direction: column; padding: 24px 16px; gap: 20px; }
  .sidebar { display: contents; }
  .profile { order: 1; }
  .sidebar .note { order: 2; }
  .stream { order: 3; }
  #gaestebog { order: 4; }
  .profile { display: grid; grid-template-columns: 96px 1fr; column-gap: 14px; row-gap: 4px; align-items: end; }
  .avatar-big { grid-row: span 3; width: 96px; }
  .avatar-big span { font-size: 40px; }
  .profile h1 { font-size: 32px; }
  .profile .bio, .profile .facts, .profile .links, .profile form, .profile .btn { grid-column: 1 / -1; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings, main.wide { padding: 24px 16px; }
}
@media (max-width: 600px) {
  .dock { justify-content: space-between; }
  .dock .lbl, .dock-space { display: none; }
  nav.dock a { width: 48px; padding: 0; justify-content: center; }
  .dock-feed .badge { position: absolute; top: 3px; right: 0; }
  nav.dock .dock-login { width: auto; padding: 0 14px; }
  .module-body { padding: 12px; }
  .post-body { font-size: 16px; }
}

/* ===================== Version 3 ===================== */

/* ---------- Vinduer (før: stories) – ingen kasse, små og slørede ---------- */
.vinduer { display: flex; flex-direction: column; gap: 10px; }
.vinduer-head { display: flex; justify-content: space-between; gap: 12px; margin: 0; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: lowercase; color: var(--muted); border-bottom: 1px dashed var(--ink); padding-bottom: 6px; }
.vinduer-head span:first-child { color: var(--ink); }
.vinduer-row { display: flex; gap: 12px; overflow-x: auto; padding: 6px 4px 6px; scrollbar-width: thin; }
.vindue-tile { width: 76px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); cursor: pointer; }
.glass { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 9 / 16; overflow: hidden; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--bar); }
.glass img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) saturate(1.1); transform: scale(1.08); }
/* lille vinduesramme ovenpå: et kryds som i en sprosse */
.glass::before, .glass::after { content: ""; position: absolute; background: var(--card); opacity: .55; }
.glass::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.glass::after { top: 42%; left: 0; right: 0; height: 1px; }
.vindue-tile.unseen .glass { outline: 2px solid #FF4D2E; outline-offset: 2px; }
.vindue-add .glass { border-style: dashed; background: transparent; font: 11px/1.3 var(--mono); text-align: center; }
.vindue-add .glass::before, .vindue-add .glass::after { display: none; }
.tile-label { font: 10.5px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vinduer-row.strip .vindue-tile { width: 84px; }

/* Upload af vindue */
.vindue-uploader { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px; border: 1px dashed var(--ink); border-radius: var(--radius); background: var(--card); }
.vindue-uploader .up-preview img { width: 120px; aspect-ratio: 9 / 16; object-fit: cover; border: 1px solid var(--ink); background: var(--bar); }
.up-side { display: flex; flex-direction: column; gap: 8px; }
.up-side label { font-family: var(--mono); }

/* Fælles for upload */
.up-preview { position: relative; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.composer .up-preview img { max-height: 320px; width: auto; max-width: 100%; border: 1px solid var(--ink); }
.up-progress { height: 8px; border: 1px solid var(--ink); background: var(--bg); overflow: hidden; }
.up-progress span { display: block; height: 100%; width: 0; background: #FF4D2E; transition: width .15s linear; }
.up-status:empty { display: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }

/* ---------- Vindue-visning ---------- */
.story-foot { padding: 12px 16px 96px; max-width: 720px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.story-foot-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ticker.dark { border-color: #3A3A3A; --ink: #3A3A3A; --card: #0D0D0D; --accent: #FF4D2E; --on-accent: #121212; color: #EDEDED; }
.ticker.dark .heart { border-right-color: #3A3A3A; }
.ticker.dark .empty-names { color: #8A8A8A; }
.story-stage figure { cursor: pointer; }
.next-hint { position: absolute; right: 16px; bottom: 4px; font-size: 12px; color: #9A9A9A; }

/* ---------- Søgning ---------- */
.search { display: flex; gap: 8px; max-width: 560px; }
.search input { flex: 1; min-height: 46px; padding: 0 14px; border: 1px solid #121212; background: #fff; font: 15px var(--mono); }

/* ---------- ID-kort ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.card-wrap { display: flex; flex-direction: column; gap: 8px; }
.card-wrap form { align-self: flex-start; }
.idcard { display: flex; flex-direction: column; border: 1px solid #121212; background: #fff; text-decoration: none; color: #121212; transition: transform .12s ease, box-shadow .12s ease; }
.idcard:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 #121212; }
.idcard.is-new { outline: 2px solid #FF4D2E; outline-offset: 3px; }
.idcard .bar { border-color: #121212; background: #EDECE6; color: #121212; }
.idcard-body { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: end; min-height: 150px; padding: 14px; background-color: var(--bg); color: var(--ink); font-family: var(--font); }
.idcard-photo { width: 84px; height: 104px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--bar); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: var(--muted); }
.idcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.idcard-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-bottom: 2px; }
.idcard-name { font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.idcard-bio { font-size: 13px; line-height: 1.35; color: var(--ink); }
.idcard-facts { display: flex; flex-wrap: wrap; gap: 2px 10px; font: 11px var(--mono); color: var(--muted); }

/* ---------- Indstillinger: forhåndsvisning øverst ---------- */
.preview-top { grid-column: 1 / -1; position: sticky; top: 8px; z-index: 6; display: flex; flex-direction: column; gap: 4px; }
.preview { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; align-items: start; padding: 16px; border: 1px solid #121212; background-color: var(--bg); color: var(--ink); font-family: var(--font); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.pv-side { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pv-photo { width: 72px; height: 72px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--bar); overflow: hidden; }
.pv-photo img { width: 100%; height: 100%; object-fit: cover; }
.pv-accent { color: var(--accent); font: 12px var(--mono); overflow: hidden; text-overflow: ellipsis; }
.pv-name { font-size: 22px; line-height: 1.05; overflow-wrap: anywhere; }
.pv-module .module-body { gap: 8px; padding: 12px; }
.pv-module p { font-size: 15px; }
.pv-label { align-self: flex-end; font: 11px var(--mono); color: #5D5A52; }

@media (max-width: 860px) {
  .wrap { display: flex; flex-direction: column; padding: 24px 16px; gap: 20px; }
  .sidebar { display: contents; }
  .profile { order: 1; }
  .sidebar .note { order: 2; }
  .stream { order: 3; }
  #gaestebog { order: 4; }
  .cards { grid-template-columns: 1fr; }
  .preview { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
  .pv-side { flex-direction: row; align-items: center; gap: 10px; }
  .pv-photo { width: 40px; height: 40px; }
  .pv-name { font-size: 18px; }
  .pv-module .module-body { padding: 8px 10px; }
  .pv-module .ticker { display: none; }
  .vindue-uploader { grid-template-columns: 96px minmax(0, 1fr); }
  .vindue-uploader .up-preview img { width: 96px; }
}

/* Rettelser efter test */
#feed-live, #alle-live { display: flex; flex-direction: column; gap: 32px; }
.glass::before, .glass::after { z-index: 1; }
.tile-label { display: flex; flex-direction: column; white-space: normal; line-height: 1.3; }
.tile-label > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-label .t-time { color: var(--muted); }
.story-stage { overflow: hidden; }
.story-stage img { max-height: calc(100vh - 310px); }
@media (max-width: 600px) { .story-stage img { max-height: calc(100vh - 290px); } }
@media (max-width: 860px) {
  .wrap { align-items: stretch; }
  .wrap > *, .stream > * { min-width: 0; }
}

/* ===================== Version 4 ===================== */
/* Intet vindueskryds */
.glass::before, .glass::after { display: none; }

/* Hus-knappen = feed, med boble */
nav.dock .dock-home { position: relative; }
.dock-home .badge { position: absolute; top: -6px; right: -6px; box-shadow: 0 0 0 2px #121212; }

/* Feedback */
.feedback-tab {
  position: fixed; right: 0; top: 50%; z-index: 25; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; padding: 14px 8px;
  background: #121212; color: #EDEDED; text-decoration: none;
  font: 12px var(--mono); letter-spacing: .08em; border-radius: 0 4px 4px 0;
  box-shadow: 0 0 0 1px #2A2A2A;
}
.feedback-tab:hover { background: #FF4D2E; color: #121212; }
@media (max-width: 600px) { .feedback-tab { top: auto; bottom: 96px; transform: rotate(180deg); padding: 10px 6px; font-size: 11px; } }

/* Aktivitet med historik */
.activity-box .module-body { gap: 10px; }
.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.activity a { font-weight: 600; }
.activity.fresh li { padding-left: 12px; border-left: 3px solid #FF4D2E; }
.activity .quote { color: var(--muted); overflow-wrap: anywhere; }
.history { border-top: 1px dashed var(--ink); padding-top: 10px; }
.history summary { cursor: pointer; font: 12px var(--mono); color: var(--muted); list-style: none; }
.history summary::-webkit-details-marker { display: none; }
.history summary::before { content: "▸ "; }
.history[open] summary::before { content: "▾ "; }
.history[open] summary { margin-bottom: 10px; }
.history .activity { font-size: 14px; }

/* Venner */
.label .count { color: var(--ink); margin-left: 6px; }
.friends-section .cards { margin-top: 2px; }

/* Svar på vinduer */
.replies { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.replies .label { color: #9A9A9A; }
.reply a { color: #EDEDED; font-weight: 600; }
.reply-form input { background: #161616 !important; color: #EDEDED !important; border-color: #3A3A3A !important; font-size: 14px !important; }
.reply-form .btn { background: #EDEDED; color: #121212; border-color: #EDEDED; }
.story-stage img { max-height: calc(100vh - 360px); }
@media (max-width: 600px) { .story-stage img { max-height: calc(100vh - 340px); } }
.history:first-child { border-top: 0; padding-top: 0; }

/* ===================== Version 5 ===================== */

/* Aktivitet: en lille knap, der folder sig ud */
details.activity-box { display: flex; flex-direction: column; }
.activity-pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; width: max-content;
  min-height: 36px; padding: 0 12px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--card); color: var(--ink); font: 12px var(--mono); cursor: pointer; list-style: none;
}
.activity-pill::-webkit-details-marker { display: none; }
.activity-pill::before { content: "▸"; }
details.activity-box[open] > .activity-pill::before { content: "▾"; }
details.activity-box[data-new] > .activity-pill { border-color: #FF4D2E; box-shadow: 0 0 0 1px #FF4D2E; }
.activity-pill .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 2px; background: #FF4D2E; color: #121212; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
details.activity-box[open] > .activity-pill { margin-bottom: 10px; }

/* Slet vindue: tydeligt anderledes end luk */
.danger-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid #E5484D; border-radius: 3px; background: transparent; color: #FF8A8E; font: 12px var(--mono); cursor: pointer; }
.danger-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.danger-btn:hover { background: #E5484D; color: #fff; }

/* Upload af flere billeder og lyd */
.up-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.up-thumb { position: relative; width: 84px; height: 84px; border: 1px solid var(--ink); background: var(--bar); }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; }
.up-x { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border: 1px solid var(--ink); border-radius: 50%; background: var(--card); color: var(--ink); font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.up-audio { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px dashed var(--ink); border-radius: var(--radius); }
.up-audio label { font-family: var(--mono); }
.up-audio-name { flex: 1; font-family: var(--mono); overflow-wrap: anywhere; }
.tag-hint { margin-top: -4px; }
.composer .module-body { position: relative; }
.up-tag-list { position: relative; z-index: 8; margin-top: -6px; max-width: 360px; display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--card); box-shadow: 4px 4px 0 var(--ink); }
.tag-opt { display: flex; gap: 8px; align-items: baseline; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--bar); background: none; color: var(--ink); font: 14px var(--font); text-align: left; cursor: pointer; }
.tag-opt span { font: 12px var(--mono); color: var(--muted); }
.tag-opt.sel, .tag-opt:hover { background: var(--bar); }
.mention { font-weight: 600; text-decoration: none; }
.mention:hover { text-decoration: underline; }

/* Billedkarrusel */
.carousel { position: relative; border-bottom: 1px solid var(--ink); background: var(--bar); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: var(--ratio, 4 / 3); max-height: 640px; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; }
.car-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--card); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; opacity: .9; }
.car-nav.prev { left: 10px; }
.car-nav.next { right: 10px; }
.car-nav:disabled { opacity: 0; pointer-events: none; }
.car-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; background: var(--card); border: 1px solid var(--ink); font: 11px var(--mono); }

/* Lydafspiller */
.player { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--bg); }
.player .play { width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-size: 15px; cursor: pointer; }
.player-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.player-title { font: 500 13px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wave { display: flex; align-items: center; gap: 2px; height: 36px; cursor: pointer; }
.wave i { flex: 1; min-width: 1px; background: var(--muted); opacity: .45; border-radius: 1px; }
.wave i.on { background: var(--accent); opacity: 1; }
.player-time { font: 12px var(--mono); color: var(--muted); white-space: nowrap; }

/* Tagget i */
.tagged-list { list-style: none; margin: 0; font-size: 14px; gap: 8px; }
.tagged-list li { display: flex; flex-direction: column; gap: 1px; }
.tagged-list a { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.tg-who { font: 12px var(--mono); color: var(--accent); }
.tg-text { overflow-wrap: anywhere; }
.tagged-list a:hover .tg-text { text-decoration: underline; }

@media (max-width: 860px) {
  .tagged { order: 4; }
  #gaestebog { order: 5; }
}
@media (max-width: 600px) {
  .player { grid-template-columns: 44px minmax(0, 1fr); }
  .player .play { width: 44px; height: 44px; }
  .player-time { grid-column: 2; margin-top: -6px; }
}

/* Version 5.1 */
.owner-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.owner-actions .linkbtn { font-size: 13px; }
.up-num { position: absolute; left: 4px; bottom: 4px; min-width: 18px; height: 18px; padding: 0 4px; background: var(--ink); color: var(--bg); font: 11px var(--mono); display: flex; align-items: center; justify-content: center; }
.up-thumb.pending { background: repeating-linear-gradient(45deg, var(--bar) 0 6px, var(--card) 6px 12px); animation: pend 1s linear infinite; }
.up-thumb.pending img { display: none; }
@keyframes pend { to { background-position: 17px 0; } }
@media (max-width: 860px) { .profile .owner-actions { grid-column: 1 / -1; } }

/* ---------- 5.3: slet side, admin, som app ---------- */
.panel-h { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.install-panel p { margin: 0; font-size: 14px; line-height: 1.5; }
.install-how { display: flex; flex-direction: column; gap: 8px; }
.install-how .btn { align-self: flex-start; }
.kbd { display: inline-block; min-width: 20px; padding: 0 4px; border: 1px solid #121212; font: 12px var(--mono); text-align: center; }
.account-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.danger-link { margin-left: auto; font: 12px var(--mono); color: #B4232A; }
.danger-zone { padding: 16px; border: 2px solid #B4232A; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.danger-zone p, .danger-zone ul { margin: 0; }
.danger-zone ul { padding-left: 20px; font-size: 15px; line-height: 1.6; }
.btn.danger-solid { background: #B4232A; color: #fff; border-color: #B4232A; }
.admin-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-search input { flex: 1; min-width: 200px; }
.admin-search a { font: 13px var(--mono); }
.admin-h { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #121212; font-size: 14px; }
.admin-table th { text-align: left; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; background: #E9E8E0; padding: 8px 10px; border-bottom: 1px solid #121212; }
.admin-table td { padding: 8px 10px; border-bottom: 1px solid #DAD9D0; vertical-align: top; }
.admin-table .mono, .people .mono { font: 12px var(--mono); overflow-wrap: anywhere; }
.admin-table .person { align-items: flex-start; }
.admin-table .sq-avatar { width: 36px; height: 36px; }
.tag-admin { display: inline-block; padding: 0 5px; background: #121212; color: #fff; font-size: 10px; }
.admin-del summary { cursor: pointer; font: 12px var(--mono); color: #B4232A; text-decoration: underline; list-style: none; }
.admin-del summary::-webkit-details-marker { display: none; }
.admin-del form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; font: 12px var(--mono); }
.admin-del label { display: flex; gap: 6px; align-items: center; }
.admin-link { font: 12px var(--mono); color: var(--muted); margin-top: 6px; display: inline-block; }
@media (max-width: 860px) {
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; }
  .admin-table tr { border-bottom: 1px solid #121212; padding: 6px 0; }
  .admin-table td { border: 0; padding: 4px 10px; }
}
/* Telefonens kant og hjem-streg, når siden kører som app */
.dock { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.standalone body { padding-top: env(safe-area-inset-top, 0px); }
body { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }

/* 5.4: kamera-knap kun på telefoner/tablets */
@media not all and (pointer: coarse) { .cam-only { display: none !important; } }
.add-split { flex-direction: column; align-items: stretch; }
.add-split label { flex: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.add-split label + label { border-top: 1px dashed var(--ink); }

/* ===================== 5.5: bevægelse – hurtigt, præcist, aldrig i vejen ===================== */

/* Sideskift uden blink: kort crossfade, docken og feedback-fanen står helt stille. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
nav.dock { view-transition-name: dock; }
.feedback-tab { view-transition-name: feedback; }
/* Profilbilledet flyver fra ID-kortet til siden */
::view-transition-group(avatar) { animation-duration: .3s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
::view-transition-old(avatar), ::view-transition-new(avatar) { height: 100%; object-fit: cover; }
/* Findes billedet kun på den ene side, fader det bare med resten */
::view-transition-old(avatar):only-child, ::view-transition-new(avatar):only-child { animation-duration: .16s; }

/* Knapper trykkes en pixel ned, som gamle knapper */
.btn, .file, .linkbtn, .danger-btn, .heart, nav.dock a, .activity-pill, .car-nav, .player .play, .vindue-tile .glass {
  transition: transform .08s ease-out, filter .12s, background-color .12s;
}
.btn:active, .file:active, .danger-btn:active, nav.dock a:active, .activity-pill:active, .player .play:active, .vindue-tile:active .glass { transform: translateY(1px); }
.car-nav:active { transform: translateY(calc(-50% + 1px)); }
.idcard:active { transform: translate(0, 0); box-shadow: 0 0 0 #121212; }
.linkbtn:active { transform: translateY(1px); }

/* Hjerter: lille pop + navnene glider ind */
.heart.pop { animation: pop .26s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(.82); } 100% { transform: scale(1); } }
.ticker-track.fresh { animation: slidein .24s ease-out; }
@keyframes slidein { from { opacity: 0; transform: translateX(-8px); } }

/* Nyt indhold fra live-opdateringer */
.arrive { animation: arrive .3s ease-out both; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }
.newbar:not([hidden]) { animation: drop .22s cubic-bezier(.2,.8,.2,1); }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -10px); } }

/* Billeder fader ind, når de er hentet */
img.img-wait { opacity: 0; }
img { transition: opacity .2s ease-out; }

/* Vinduer: fra sløret til skarpt */
.story-stage .unblur { animation: unblur .32s ease-out; }
@keyframes unblur { from { filter: blur(16px); opacity: .5; } }
.vindue-skift .story-stage .unblur { animation: none; }

/* Aktivitet folder sig ud */
details.activity-box[open] > .activity-panel { animation: arrive .2s ease-out; }

/* Har man bedt telefonen om mindre bevægelse, er det hele slået fra */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .heart.pop, .ticker-track.fresh, .arrive, .newbar:not([hidden]), .story-stage .unblur,
  details.activity-box[open] > .activity-panel { animation: none; }
  .flash { animation: fadeout 4.5s forwards; }
  img, .btn, .file, .linkbtn, .danger-btn, .heart, nav.dock a, .activity-pill, .car-nav, .player .play, .vindue-tile .glass { transition: none; }
  .btn:active, .file:active, .linkbtn:active, .danger-btn:active, nav.dock a:active, .activity-pill:active, .vindue-tile:active .glass { transform: none; }
  .car-nav:active { transform: translateY(-50%); }
  .idcard { transition: none; }
}
.vindue-skift .story-stage img { transition: none; }

/* ===================== 5.6: video i vinduer ===================== */
.vid-wrap { position: relative; display: flex; justify-content: center; }
.story-stage video { display: block; max-height: calc(100vh - 360px); max-width: min(100%, 560px); object-fit: contain; background: #000; }
@media (max-width: 600px) { .story-stage video { max-height: calc(100vh - 340px); } }
.sound-btn { position: absolute; right: 10px; bottom: 10px; min-height: 34px; padding: 0 12px; border: 1px solid #EDEDED; border-radius: 3px;
  background: rgba(13,13,13,.75); color: #EDEDED; font: 12px var(--mono); cursor: pointer; }
.sound-btn[aria-pressed="true"] { background: #EDEDED; color: #121212; }
.sound-btn:active { transform: translateY(1px); }
.vid-mark { position: absolute; right: 5px; bottom: 5px; z-index: 2; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  background: rgba(13,13,13,.8); color: #EDEDED; border-radius: 2px; font-size: 9px; line-height: 1; }
.add-split label { min-height: 0; }

/* 5.6.2: egen play-knap (strømsparetilstand på iPhone afspiller aldrig automatisk) */
.vid-wrap { cursor: pointer; }
.play-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border: 1px solid #EDEDED;
  border-radius: 3px; background: rgba(13,13,13,.72); color: #EDEDED; font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding-left: 4px; }
.play-big[hidden], .sound-btn[hidden] { display: none; }
.play-big:active { transform: translate(-50%, calc(-50% + 1px)); }
.vid-error { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 10px 12px; background: rgba(13,13,13,.85);
  border: 1px solid #E5484D; color: #FF8A8E; font: 12px/1.4 var(--mono); }

/* ===================== 6: test-stribe ===================== */
.sandbox-stripe { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 22px; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(-45deg, #FFD600 0 12px, #121212 12px 24px); color: #121212; font: 600 11px/1 var(--mono); letter-spacing: .08em; pointer-events: none; }
.sandbox-stripe span { background: #FFD600; padding: 3px 10px; border-left: 2px solid #121212; border-right: 2px solid #121212; white-space: nowrap; }
body:has(.sandbox-stripe) { padding-top: 22px; }
body:has(.sandbox-stripe) .flash, body:has(.sandbox-stripe) .newbar { top: 32px; }

/* ===================== 6: pladsmåler ===================== */
.disk-total { margin: 0; font-size: 15px; }
.disk-bar { display: flex; height: 18px; border: 1px solid #121212; background: #fff; overflow: hidden; }
.disk-bar span { display: block; height: 100%; }
.disk-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.disk-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border: 1px solid #121212; vertical-align: -1px; }
.disk-legend .mono { font: 12px var(--mono); color: var(--muted); }
.disk-top summary { cursor: pointer; font: 12px var(--mono); text-decoration: underline; }
.disk-top ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.7; }

/* ===================== 6: tegn & skriv ===================== */
html.ed-open, html.ed-open body { overflow: hidden; }
.ed { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #0D0D0D; color: #EDEDED;
  font: 13px var(--mono); padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); animation: arrive .18s ease-out; }
.ed-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.ed-title { color: #9A9A9A; font-size: 12px; text-align: center; flex: 1; }
.ed-btn { min-height: 40px; padding: 0 14px; border: 1px solid #3A3A3A; border-radius: 3px; background: transparent; color: #EDEDED; font: 13px var(--mono); cursor: pointer; }
.ed-btn.ed-done { background: #EDEDED; color: #121212; border-color: #EDEDED; font-weight: 600; }
.ed-btn:active, .ed-tool:active, .ed-swatch:active, .ed-pen:active { transform: translateY(1px); }
.ed-stage { display: flex; align-items: center; justify-content: center; padding: 0 12px; min-height: 0; overflow: hidden; }
.ed-frame { position: relative; box-shadow: 0 0 0 1px #3A3A3A; }
.ed-frame canvas { display: block; touch-action: none; cursor: crosshair; }
.ed-tools { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 14px; }
.ed-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; min-height: 36px; }
.ed-tool { min-height: 38px; padding: 0 12px; border: 1px solid #3A3A3A; border-radius: 3px; background: #161616; color: #EDEDED; font: 13px var(--mono); cursor: pointer; }
.ed-tool[aria-pressed="true"] { background: #EDEDED; color: #121212; border-color: #EDEDED; }
.ed-tool.ed-danger { border-color: #E5484D; color: #FF8A8E; }
.ed-swatch { width: 32px; height: 32px; border: 1px solid #3A3A3A; border-radius: 3px; cursor: pointer; padding: 0; }
.ed-swatch[aria-pressed="true"] { outline: 2px solid #EDEDED; outline-offset: 2px; }
.ed-pen { width: 40px; height: 38px; border: 1px solid #3A3A3A; border-radius: 3px; background: #161616; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ed-pen i { display: block; border-radius: 50%; background: #EDEDED; }
.ed-pen[aria-pressed="true"] { border-color: #EDEDED; }
.ed-hint { color: #8A8A8A; font-size: 12px; text-align: center; }
.ed-input { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; gap: 8px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; background: #0D0D0D; border-bottom: 1px solid #3A3A3A; }
.ed-input[hidden] { display: none; }
.ed-input input { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border: 1px solid #EDEDED; border-radius: 3px; background: #161616; color: #EDEDED; font: 16px var(--mono); }
.ed-note { position: absolute; left: 12px; right: 12px; top: 60px; margin: 0; padding: 8px 10px; background: rgba(13,13,13,.85); border: 1px solid #3A3A3A; color: #9A9A9A; font-size: 12px; text-align: center; pointer-events: none; }
.edit-btn { align-self: flex-start; }
@media (max-width: 600px) { .ed-tool { padding: 0 10px; font-size: 12px; } .ed-swatch { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .ed { animation: none; } }
