:root {
  --ground: #14161D; --surface: #1D202A; --surface-2: #262A36; --line: #2F3440; --line-strong: #6E7686;
  --ink: #EDEFF4; --ink-2: #C3C8D2; --ink-3: #9AA0AD; --go: #5FD3A0;
  --font-display: "Segoe UI Variable Display", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-text: "Segoe UI Variable Text", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --target: 48px; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ground); color: var(--ink); font: 500 16px/1.4 var(--font-text); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.chamber { height: 100dvh; display: grid; grid-template-columns: 80px minmax(0, 1fr); }

.rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; border-right: 1px solid var(--line); }
.rail-home { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; color: var(--ink); margin-bottom: 8px; }
.rail-home svg { width: 18px; height: 30px; stroke: none; }
.rail button { width: 64px; min-height: 60px; display: grid; justify-items: center; gap: 4px; padding: 8px 0; border: 0; border-radius: 16px; background: transparent; color: var(--ink-3); font: 600 11.5px/1 var(--font-text); }
.rail button:hover { background: var(--surface); color: var(--ink); }
.rail button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
.rail-end { margin-top: auto; }

.stage { position: relative; min-width: 0; height: 100dvh; display: grid; grid-template-rows: 72px minmax(0, 1fr) auto; }
.top { display: flex; align-items: center; gap: 12px; padding: 0 24px; min-width: 0; }
.top h1 { margin: 0; font: 620 1.1875rem/1.2 var(--font-display); letter-spacing: -.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top-end { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: none; }
.primary { min-height: var(--target); padding: 0 24px; border-radius: 999px; border: 0; background: var(--ink); color: var(--ground); font-weight: 650; transition: transform .14s var(--ease); }
.primary:hover { transform: translateY(-1px); } .primary:active { transform: scale(.98); }
.quiet-btn { min-height: var(--target); padding: 0 16px; border-radius: 999px; border: 1.5px solid transparent; background: transparent; color: var(--ink-2); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.quiet-btn:hover:not(:disabled) { background: var(--surface); color: var(--ink); } .quiet-btn:disabled { opacity: .35; cursor: default; }

.mid { min-height: 0; display: grid; place-items: center; padding: 0 24px; container-type: size; }
.canvas { position: relative; width: min(100cqw, 100cqh * 16 / 9); aspect-ratio: 16 / 9; }
.hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(20, 22, 29, .78); color: #EDEFF4; font-size: 14px; pointer-events: none; white-space: nowrap; }

.film { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; background: var(--paper); color: var(--ink); container-type: inline-size; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); isolation: isolate; }
.film { --a: #12564F; --b: #F2C94C; --paper: #EEF4F2; --speed: 1.5s; }
.film, .film .el { color: var(--ink); } .film { --ink: #0E1B1A; }
.el { position: absolute; border-radius: 4px; cursor: pointer; touch-action: none; user-select: none; animation-duration: var(--speed); animation-timing-function: var(--ease); animation-fill-mode: both; }
.el-ground { background: var(--a); border-radius: 0; } .el-shape { background: var(--b); }
.el-words { display: flex; align-items: center; font: 680 1em/1.02 var(--font-display); letter-spacing: -.03em; }
.el-words span { outline: none; display: block; width: 100%; } .el-words span[contenteditable="true"] { user-select: text; cursor: text; background: rgba(255, 255, 255, .22); border-radius: 6px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .22); }
.el:hover { outline: 2px dashed rgba(20, 22, 29, .55); outline-offset: 3px; }
.el.is-selected { outline: 2.5px solid #14161D; outline-offset: 3px; box-shadow: 0 0 0 5.5px #fff; z-index: 2; }
.el-ground.is-selected { outline-offset: -5px; box-shadow: inset 0 0 0 7px #fff; }
.el.is-hidden { opacity: .14; outline: 2px dashed rgba(20, 22, 29, .6); outline-offset: 3px; }
.el.is-dragging { transition: none; cursor: grabbing; }
.m-rise { animation-name: m-rise; } .m-fade { animation-name: m-fade; } .m-slide { animation-name: m-slide; } .m-pop { animation-name: m-pop; }
@keyframes m-rise { from { transform: translateY(18%); opacity: 0; } }
@keyframes m-fade { from { opacity: 0; } }
@keyframes m-slide { from { transform: translateX(-24%); opacity: 0; } }
@keyframes m-pop { from { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); } }
.is-hidden.m-rise, .is-hidden.m-fade, .is-hidden.m-slide, .is-hidden.m-pop { animation: none; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(20, 22, 29, .18); z-index: 3; }
.progress i { display: block; height: 100%; background: var(--b); }

.bubble { position: absolute; z-index: 5; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 18px; background: #14161D; color: #EDEFF4; border: 1px solid #3A4050; box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .7); white-space: nowrap; }
.bubble b { padding: 0 12px 0 14px; font-weight: 600; color: #9AA0AD; font-size: 14px; }
.bubble button { min-height: var(--target); padding: 0 16px; border: 0; border-radius: 14px; background: transparent; font-weight: 600; font-size: 15px; }
.bubble button:hover, .bubble button[aria-pressed="true"] { background: #2B303D; }

.menu { position: absolute; z-index: 6; width: 264px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid #3A4050; box-shadow: 0 24px 60px -10px rgba(0, 0, 0, .8); display: grid; }
.menu-name { padding: 8px 14px 4px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.menu button { display: flex; justify-content: space-between; align-items: center; min-height: var(--target); padding: 0 14px; border: 0; border-radius: 10px; background: transparent; text-align: left; font-weight: 500; }
.menu button:hover:not(:disabled) { background: var(--surface-2); } .menu button:disabled { opacity: .4; cursor: default; }
.menu kbd { font: 500 12.5px/1 ui-monospace, Consolas, monospace; color: var(--ink-3); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }

.low { display: grid; justify-items: center; gap: 12px; padding: 16px 24px 20px; min-width: 0; }
.tray { display: grid; grid-template-columns: repeat(4, 136px); gap: 10px; }
.card { display: grid; gap: 6px; padding: 6px 6px 8px; border-radius: 14px; border: 2px solid transparent; background: var(--surface); text-align: left; font-weight: 600; font-size: 14px; transition: transform .2s var(--ease), border-color .14s; }
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); } .card[aria-pressed="true"] { border-color: var(--ink); }
.card span { padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw { display: grid; place-items: center; height: 52px; border-radius: 9px; background: #EEF4F2; color: #0E1B1A; font: 680 22px/1 var(--font-display); font-style: normal; overflow: hidden; }
.sw-scene { background: var(--surface-2); color: var(--ink); }
.sw-motion::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: #12564F; animation: inherit; animation-duration: 1.4s; animation-iteration-count: infinite; animation-timing-function: var(--ease); }
.sw-motion.m-rise::after { animation-name: m-rise; } .sw-motion.m-fade::after { animation-name: m-fade; } .sw-motion.m-slide::after { animation-name: m-slide; } .sw-motion.m-pop::after { animation-name: m-pop; }
.ideas { display: flex; gap: 8px; flex-wrap: nowrap; max-width: 100%; }
.ideas button { min-height: var(--target); padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.ideas button:hover:not(:disabled) { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.ideas button:disabled { opacity: .55; cursor: default; }
.dock { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 22px; background: var(--surface); border: 1px solid #3A4050; box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .7); width: min(100%, 860px); }
.round { width: var(--target); height: var(--target); flex: none; border-radius: 50%; border: 0; background: var(--ink); color: var(--ground); display: grid; place-items: center; }
.round svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.time { flex: none; font: 600 13.5px/1 ui-monospace, Consolas, monospace; color: var(--ink-3); padding: 0 6px; font-variant-numeric: tabular-nums; }
.say { flex: 1; display: flex; gap: 6px; min-width: 0; }
.say input { flex: 1; min-width: 0; min-height: var(--target); padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--ground); font-weight: 500; }
.say input::placeholder { color: var(--ink-3); opacity: 1; }
.say button { min-height: var(--target); padding: 0 18px; border-radius: 16px; border: 0; background: var(--surface-2); font-weight: 650; }
.say button:hover { background: #343A4A; }
.energy { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 8px; color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.energy input { width: 132px; height: var(--target); accent-color: #EDEFF4; cursor: pointer; margin: 0; }

.timeline { width: min(100%, 860px); border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 10px 14px 12px; }
.tl-head { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-3); margin-bottom: 4px; } .tl-head b { color: var(--ink); } .tl-head .quiet-btn { margin-left: auto; }
.tl-body { position: relative; display: grid; gap: 3px; }
.tl-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; font-size: 12.5px; color: var(--ink-3); } .tl-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-lane { position: relative; height: 18px; border-radius: 6px; background: var(--ground); }
.tl-bar { position: absolute; top: 2px; bottom: 2px; border: 0; border-radius: 5px; background: var(--line-strong); padding: 0; cursor: ew-resize; touch-action: none; }
.tl-bar::before { content: ""; position: absolute; inset: -15px 0; }            
.tl-bar:hover, .tl-bar.is-selected { background: var(--ink); } .tl-bar.is-hidden { opacity: .3; }
.tl-voice .tl-bar { background: var(--go); }
.tl-head-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); pointer-events: none; }


.toast { position: fixed; left: 50%; top: 84px; transform: translate(-50%, -24px); opacity: 0; pointer-events: none; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 20px; min-height: 56px; border-radius: 999px; background: var(--ink); color: var(--ground); font-weight: 600; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7); transition: transform .32s var(--ease), opacity .32s var(--ease); width: max-content; max-width: calc(100vw - 32px); }
.toast.on { transform: translate(-50%, 0); opacity: 1; pointer-events: none; }
.toast button { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(20, 22, 29, .4); background: transparent; color: inherit; font-weight: 700; }
.toast.on button { pointer-events: auto; }   

@media (max-width: 860px) {
  .chamber { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 68px; }
  .rail { grid-row: 2; flex-direction: row; justify-content: space-around; padding: 4px 8px; border-right: 0; border-top: 1px solid var(--line); }
  .rail-home { display: none; } .rail-end { margin-top: 0; } .rail button { min-height: 56px; }
  .stage { height: auto; min-height: 0; grid-template-rows: 60px minmax(0, 1fr) auto; }
  .top { padding: 0 12px; gap: 4px; } .top h1 { display: none; } .primary { padding: 0 18px; }
  .mid { padding: 0 12px; place-items: start center; } .film { border-radius: 12px; }
  .bubble { position: fixed; left: 12px !important; right: 12px; top: auto !important; bottom: calc(68px + 232px); overflow: hidden; } .bubble b { display: none; } .bubble button { flex: 1; min-width: 48px; padding: 0 6px; font-size: 14px; }
  .menu { position: fixed; left: 12px !important; right: 12px; width: auto; top: auto !important; bottom: 80px; }
  .low { padding: 10px 12px 12px; gap: 8px; } .tray { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; } .sw { height: 40px; font-size: 17px; } .card { font-size: 12.5px; padding: 4px 4px 6px; }
  .ideas { width: 100%; overflow: hidden; } .ideas button:nth-child(n+3) { display: none; } .ideas button { flex: 1; padding: 0 8px; }
  .time, .hide-s { display: none !important; } .dock { border-radius: 18px; }
  .hint { bottom: 8px; font-size: 13px; white-space: normal; width: max-content; max-width: calc(100% - 24px); text-align: center; border-radius: 14px; line-height: 1.35; }
  .timeline { padding: 8px 10px; } .tl-head span { display: none; } .tl-row { grid-template-columns: 84px minmax(0, 1fr); }
  .toast { top: 66px; }
  #redo:disabled { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.el-words::after { content: ""; position: absolute; inset: -14px -6px; }

.film { background: #0b0c10; }
.film-plakat, .film-lerret { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.film-plakat { filter: brightness(.55); }
.film-lerret { opacity: 0; transition: opacity .32s var(--ease); }
.film-lerret.er-live { opacity: 1; }
.film-trykk { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; border-radius: 18px; }
.film-trykk:hover { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.film-trykk:focus-visible { outline-offset: -4px; }
.halde-merke { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .66); color: #fff; font-size: 14px; pointer-events: none; }
.progress i { background: var(--hennar-lead, #EDEFF4); width: 0; }
html[data-hennar] .primary, html[data-hennar] .round { background: var(--hennar-lead); color: var(--hennar-lead-ink); }
.top .quiet-btn svg { width: 20px; height: 20px; margin-left: -4px; }
.tray.tray-looks { grid-template-columns: repeat(6, minmax(0, 112px)); }
.tray.tray-looks { max-height: 38dvh; overflow-y: auto; overscroll-behavior: contain; padding: 3px; }
.tray.tray-colours, .tray.tray-motion { grid-template-columns: repeat(4, 136px); }
.sw-bilde { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; background: var(--surface-2); }
.sw-fargar { display: flex; gap: 0; background: none; padding: 0; overflow: hidden; }
.sw-fargar b { flex: 1; height: 100%; }
.sw-motion { background: var(--surface-2); }
.sw-motion::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--hennar-lead, #EDEFF4); animation: fart var(--fart, 1.4s) ease-in-out infinite alternate; }
@keyframes fart { from { transform: translateX(-26px); } to { transform: translateX(26px); } }
.tray-merk { grid-column: 1 / -1; margin: 0; color: var(--ink-3); font-size: 14px; text-align: center; } .tray-merk a { color: var(--ink-2); }
.tl-steder { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-steder button { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.tl-steder small { color: var(--ink-3); font: 500 12px/1 ui-monospace, Consolas, monospace; }
.tl-lane { height: 44px; cursor: pointer; touch-action: none; }
.tl-head-line { width: 3px; background: var(--hennar-lead, var(--ink)); border-radius: 2px; }
.tray-looks .card span, .tray-colours .card span, .tray-motion .card span { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; min-height: 2.3em; font-size: 13px; }
.tray.tray-looks { grid-template-columns: repeat(6, minmax(0, 120px)); }
@media (max-width: 860px) {
  .bubble { position: absolute; left: 0 !important; right: 0; top: calc(100% + 8px) !important; bottom: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; white-space: normal; overflow: visible; }
  .mid { place-items: start center !important; padding-top: 4px; }
  .bubble button { min-width: 0; padding: 4px 6px; font-size: 13.5px; line-height: 1.15; }
  .tray-colours .card span, .tray-motion .card span { font-size: 12px; }
  .tray.tray-looks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tray.tray-colours, .tray.tray-motion { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tray-looks .card span { display: none; }
  .tray-looks .card { padding: 3px; }
  .top .quiet-btn { padding: 0 10px; }
  .mid { place-items: center; }
  .top .kun-s { display: inline; }
  .ideas button:nth-child(n+3) { display: inline-flex; align-items: center; justify-content: center; }
  .ideas { flex-wrap: wrap; } .ideas button { flex: 1 1 40%; }
  .ideas button:nth-child(n+5) { display: none; }
}
@media (max-width: 430px) {
  .top-end { gap: 2px; }
  .top .quiet-btn { padding: 0 8px; }
  .top #tilbake .kun-s { display: none; }
  .top #tilbake svg { margin-left: 0; }
  .top .primary { padding: 0 14px; }
}
.kun-s { display: none; }

a.primary { display: inline-flex; align-items: center; text-decoration: none; }

.canvas[data-form="kvadrat"] { width: min(100cqw, 100cqh); aspect-ratio: 1 / 1; }
.canvas[data-form="hoy"] { width: min(100cqw, 100cqh * 9 / 16); aspect-ratio: 9 / 16; }
.film-plakat, .film-lerret { inset: auto; left: 50%; top: 50%; width: auto; height: 100%; aspect-ratio: 16 / 9; transform: translate(-50%, -50%) scale(var(--naer, 1)); transition: transform .4s var(--ease), opacity .32s var(--ease), filter .3s var(--ease); }
.film-tone { position: absolute; inset: 0; mix-blend-mode: soft-light; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), background-color .3s var(--ease); }
.film.som-laga .film-lerret { filter: none !important; }
.film.som-laga .film-tone { opacity: 0 !important; }
.sw-form, .sw-naer { background: var(--surface-2); }
.sw-form b { display: block; border: 2px solid var(--ink-2); border-radius: 4px; }
.sw-form-breid b { width: 48px; height: 27px; } .sw-form-kvadrat b { width: 32px; height: 32px; } .sw-form-hoy b { width: 22px; height: 38px; }
.sw-naer { overflow: hidden; } .sw-naer b { display: block; width: 44px; height: 25px; border-radius: 3px; background: linear-gradient(135deg, var(--ink-3), var(--line-strong)); }
.tray.tray-frame { grid-template-columns: repeat(6, minmax(0, 112px)); }
.tray.tray-colours { grid-template-columns: repeat(4, 136px); }

.nett { display: grid; gap: 6px; justify-items: center; margin-top: 2px; }
.nett label { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.nett-rad { display: flex; gap: 6px; width: min(100%, 420px); }
.nett input { flex: 1; min-width: 0; min-height: var(--target); padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--ground); }
.nett button { min-height: var(--target); padding: 0 16px; border-radius: 14px; border: 0; background: var(--surface-2); font-weight: 650; }
.nett-svar { margin: 0; min-height: 1.2em; font-size: 13.5px; color: var(--ink-2); }

.svar { width: min(100%, 860px); display: grid; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong); }
.svar p { margin: 0; color: var(--ink-2); line-height: 1.45; font-size: 15px; }
.svar-rad { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.say button { white-space: nowrap; }

@media (max-width: 860px) {
  .mid { place-items: center !important; }
  .tray-looks .card span { display: block; font-size: 11px; min-height: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; padding: 0 2px; }
  .tray.tray-frame { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tray.tray-colours { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .svar { padding: 10px 12px; gap: 8px; } .svar p { font-size: 14px; }
  .low:has(.svar:not([hidden])) .tray, .low:has(.svar:not([hidden])) .ideas { display: none; }
  .svar .primary { min-height: 44px; }
  .rail button { width: 58px; font-size: 11px; }
  .nett label { font-size: 13px; }
}

.film-lerret { inset: 0 !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; aspect-ratio: auto !important; transform: none !important; filter: none !important; }
.film-plakat { inset: 0; left: 0; top: 0; width: 100%; height: 100%; transform: none; object-fit: cover; }
.film-melding { position: absolute; inset: auto 16px 16px 16px; margin: 0; padding: 12px 16px; border-radius: 14px; background: rgba(20, 22, 29, .9); color: #EDEFF4; font-size: 15px; line-height: 1.45; z-index: 4; }
.slipp { position: absolute; inset: 8px; display: grid; place-items: center; border: 2px dashed var(--ink-2); border-radius: 20px; background: rgba(20, 22, 29, .82); z-index: 8; pointer-events: none; }
.slipp p { margin: 0; font-weight: 650; font-size: 18px; }
.mid { position: relative; }
.tray-rad { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.tray-rad-namn { font-size: 13px; font-weight: 650; color: var(--ink-3); margin-right: 4px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.chip:hover { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.sw-ikon { background: var(--surface-2); color: var(--ink); font: 700 22px/1 var(--font-display); }
.sw-legg { font-size: 30px; } .sw-fil { font-size: 15px; letter-spacing: .02em; } .sw-lyd { font-size: 24px; }
.sw-hennar { background: var(--ink); color: var(--ground); }
.tray.tray-sound { grid-template-columns: repeat(3, 136px); }
.tray.tray-motion { grid-template-columns: repeat(4, 136px); }
.lyd-rad input { width: 180px; height: 44px; accent-color: #EDEFF4; }
.lyd-rad input:disabled { opacity: .4; }
#lyd-elsk[aria-pressed="true"], #lyd-elska { background: transparent; color: var(--go); border-color: var(--go); }
#lyd-ny-musikk { grid-column: 1 / -1; justify-self: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; }
#lyd-ny-musikk:hover:not(:disabled) { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
#lyd-ny-musikk:disabled { opacity: .55; cursor: default; }
.tl-klipt { position: absolute; top: 0; bottom: 0; background: var(--line-strong); opacity: .5; border-radius: 6px; pointer-events: none; }
.tl-hand { position: absolute; top: -4px; bottom: -4px; width: 22px; margin-left: -11px; border: 0; border-radius: 8px; background: var(--ink); cursor: ew-resize; touch-action: none; padding: 0; z-index: 2; }
.tl-hand::before { content: ""; position: absolute; inset: -10px -8px; }
.tl-steder button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.tl-steder button:disabled { opacity: .45; cursor: default; }
.timeline { max-height: 40dvh; overflow: auto; }
@media (max-width: 860px) {
  .tray.tray-sound, .tray.tray-motion { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tray-rad { justify-content: flex-start; } .chip { min-height: 40px; padding: 0 10px; font-size: 13px; }
  .tray-rad-namn { width: 100%; }
  .lyd-rad input { width: 100%; }
  .film-melding { font-size: 13.5px; inset: auto 8px 8px 8px; padding: 8px 10px; }
  .rail button { width: 52px; font-size: 10.5px; }
}

.low:has(.svar:not([hidden])) .tray, .low:has(.svar:not([hidden])) .ideas, .low:has(.svar:not([hidden])) .timeline { display: none; }

@media (max-width: 860px) { .ideas button:nth-child(n+5) { display: inline-flex; align-items: center; justify-content: center; } .ideas button { flex: 1 1 30%; min-height: 44px; font-size: 13.5px; padding: 0 8px; } }
@media (max-width: 860px) { .low[data-verk="frame"] .ideas, .low[data-verk="sound"] .ideas, .low[data-verk="motion"] .ideas, .low[data-verk="advanced"] .ideas { display: none; } }
.sw-av { font-size: 15px; letter-spacing: .02em; color: var(--ink-3); }
.tl-steder .tl-versjon { max-width: 100%; text-align: left; white-space: normal; line-height: 1.3; padding: 8px 12px; }

.deler { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.del-boks { position: absolute; display: block; border-radius: 6px; pointer-events: none; }
.del-over { outline: 2px dashed rgba(255, 255, 255, .85); outline-offset: 2px; box-shadow: 0 0 0 1px rgba(20, 22, 29, .55); }
.del-over b { position: absolute; left: -2px; bottom: calc(100% + 6px); padding: 3px 9px; border-radius: 999px; background: rgba(20, 22, 29, .9); color: #EDEFF4; font: 600 12.5px/1.3 var(--font-text); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.del-over.merk-under b { bottom: auto; top: calc(100% + 6px); }
.del-valt { outline: 2.5px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(20, 22, 29, .6); }
.film-trykk { z-index: 3; }
.tray.tray-del { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: min(100%, 860px); justify-items: stretch; }
.del-hode { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.del-hode > b { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46%; }
.del-slag { font-size: 12.5px; color: var(--ink-3); font-weight: 600; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; }
.del-heile { margin-left: auto; }
.del-faner { display: flex; gap: 6px; flex-wrap: wrap; }
.del-innhald { display: grid; gap: 8px; justify-items: center; min-width: 0; }
.del-ord { display: flex; gap: 6px; width: 100%; }
.del-ord input { flex: 1; min-width: 0; min-height: var(--target); padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--ground); font-weight: 500; }
.del-ord button { min-height: var(--target); padding: 0 16px; border-radius: 14px; border: 0; background: var(--surface-2); font-weight: 650; white-space: nowrap; }
.del-fargar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-strong); padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ground), 0 0 0 5px var(--ink); }
.del-rad { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.del-tal { min-width: 56px; text-align: center; font: 600 14px/1 var(--font-text, inherit); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.del-etikett { font-size: 13.5px; color: var(--ink-3); font-weight: 600; min-width: 92px; }
.framtid { grid-column: 1 / -1; display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px auto; align-items: center; gap: 6px; width: min(100%, 720px); justify-self: center; }
.framtid-kort { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.framtid-ein { padding: 4px 4px 6px; }
.framtid-ein.lastar .framtid-bilde { opacity: .35; }
.framtid-ein span { font-size: 13px; line-height: 1.25; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.framtid-bilde { display: block; width: 100%; height: auto; max-height: 90px; object-fit: contain; border-radius: 8px; background: var(--surface-2); }
.framtid-pil { width: 40px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 22px; line-height: 1; }
.framtid-pil:disabled, .framtid-meir:disabled { opacity: .35; cursor: default; }
.framtid-meir { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 650; font-size: 14px; }
.framtid-merk { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-3); text-align: center; }
.del-dra { min-width: 0; font-weight: 500; margin-left: 4px; }
.tray.tray-del .del-innhald { min-height: max(var(--del-h, 0px), 180px); align-content: start; }
@media (max-width: 860px) and (min-width: 521px) { .tray.tray-del .del-innhald { min-height: max(var(--del-h, 0px), 243px); } }
@media (max-width: 520px) { .tray.tray-del .del-innhald { min-height: var(--del-h, 0px); } }
.sw-del { background: var(--surface-2); color: var(--ink); font: 700 20px/1 var(--font-display); }

.del-svak { outline: 1px dashed rgba(255, 255, 255, .5); outline-offset: 1px; box-shadow: 0 0 0 1px rgba(20, 22, 29, .25); border-radius: 4px; }
.del-valt b { position: absolute; left: -2px; bottom: calc(100% + 8px); padding: 3px 9px; border-radius: 999px; background: #fff; color: #14161D; font: 650 12.5px/1.3 var(--font-text); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.del-valt.merk-under b { bottom: auto; top: calc(100% + 8px); }
.del-valt.er-skjult { outline-style: dashed; opacity: .75; }
.hjorne { position: absolute; width: 16px; height: 16px; border-radius: 4px; background: #fff; border: 2px solid #14161D; pointer-events: auto; touch-action: none; z-index: 4; }
.hjorne[data-h="nw"] { left: -10px; top: -10px; cursor: nwse-resize; } .hjorne[data-h="se"] { right: -10px; bottom: -10px; cursor: nwse-resize; }
.hjorne[data-h="ne"] { right: -10px; top: -10px; cursor: nesw-resize; } .hjorne[data-h="sw"] { left: -10px; bottom: -10px; cursor: nesw-resize; }
.deler { z-index: 4; }
.som-laga { position: absolute; right: 10px; top: 10px; z-index: 5; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(20, 22, 29, .72); color: #EDEFF4; font: 650 13px/1 var(--font-text); }
.som-laga[aria-pressed="true"] { background: #EDEFF4; color: #14161D; }
.halde-merke { position: absolute; left: 10px; top: 10px; z-index: 5; padding: 6px 12px; border-radius: 999px; background: #EDEFF4; color: #14161D; font: 650 13px/1 var(--font-text); }

.chamber.med-panel { grid-template-columns: 80px minmax(0, 1fr) 360px; }
.panel { border-left: 1px solid var(--line); background: var(--surface); height: 100dvh; overflow-y: auto; padding: 16px 16px 28px; display: grid; align-content: start; gap: 14px; }
.panel-innhald { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 14px; align-content: start; }
.p-hode { display: flex; align-items: center; gap: 8px; min-width: 0; }
.p-hode > b { font: 650 16px/1.3 var(--font-display); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.p-rad { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.p-seksjon { display: grid; gap: 8px; min-width: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.p-seksjon h3 { margin: 0; font: 650 12.5px/1.2 var(--font-text); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.p-seksjon .framtid { width: 100%; grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-areas: "kort kort kort" "fr meir nx" "merk merk merk"; gap: 8px; }
.p-seksjon .framtid-kort { grid-area: kort; gap: 8px; }
.p-seksjon .framtid > .framtid-pil:first-child { grid-area: fr; }
.p-seksjon .framtid > .framtid-pil:nth-child(3) { grid-area: nx; }
.p-seksjon .framtid-meir { grid-area: meir; justify-self: center; }
.p-seksjon .framtid-merk { grid-area: merk; }
.p-seksjon .framtid-pil { width: 44px; }
.p-seksjon .framtid-bilde { max-height: none; }
@media (min-width: 861px) {
  .panel .framtid-kort { grid-template-columns: minmax(0, 1fr); }
  .panel .framtid-ein { grid-template-columns: 148px minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px; }
  .panel .framtid-ein span { font-size: 14px; padding: 0; }
  .panel .framtid-ein:hover { transform: none; }
}
.p-farge { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-swatchar { display: flex; flex-wrap: wrap; gap: 6px; }
.p-swatchar .swatch { width: 34px; height: 34px; }
.swatch-no { display: inline-flex; flex: none; }
.swatch-no .nf-knapp { width: 44px; height: 44px; border: 2px solid var(--ink); }
.swatch-no input[type="color"] { width: 44px; height: 44px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; }
.tast-hint { font-size: 13px; color: var(--ink-3); white-space: nowrap; opacity: 0; transition: opacity .4s var(--ease); }
.tast-hint.on { opacity: 1; }
.tast-hint kbd { font: inherit; font-weight: 600; color: var(--ink-2); padding: 1px 7px; border: 1px solid var(--line-strong); border-radius: 6px; }
@media (max-width: 860px), (pointer: coarse) { .tast-hint { display: none; } }
.p-pil { min-width: 44px; font-size: 18px; }
.p-rad input[type="range"] { flex: 1; min-width: 120px; accent-color: var(--ink); }
.p-tid { display: grid; gap: 6px; }
.p-tid-t { margin: 0; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.p-tid-spor { position: relative; height: 40px; }
.p-tid-bane, .p-tid-fyll { position: absolute; top: 17px; height: 6px; border-radius: 3px; pointer-events: none; }
.p-tid-bane { left: 0; right: 0; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.p-tid-fyll { background: var(--ink-2); }
.p-tid-spor input { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 40px; margin: 0; pointer-events: none; background: transparent; -webkit-appearance: none; appearance: none; }
.p-tid-spor input::-webkit-slider-runnable-track { height: 40px; background: transparent; }
.p-tid-spor input::-moz-range-track { background: transparent; }
.p-tid-spor input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 16px; height: 32px; margin-top: 4px; border-radius: 6px; background: var(--ink); border: 2px solid var(--ground); box-shadow: 0 1px 4px rgba(0, 0, 0, .5); cursor: ew-resize; }
.p-tid-spor input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 30px; border-radius: 6px; background: var(--ink); border: 2px solid var(--ground); cursor: ew-resize; }
.p-tid-spor input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--ink-2); outline-offset: 2px; }
.p-tid-skala { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.p-fare { border-color: #8a4b4b !important; }
.p-betalt { border-style: dashed !important; }
.panel .del-ord input { min-height: 44px; }
.panel .tray-merk, .tray-del .tray-merk { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.4; }

@media (max-width: 860px) {
  .tray.tray-del.panel-innhald { max-height: 44dvh; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }
  .som-laga { right: 6px; top: 6px; min-height: 32px; padding: 0 10px; font-size: 12px; }
  .hjorne { width: 22px; height: 22px; }
  .hjorne[data-h="nw"] { left: -13px; top: -13px; } .hjorne[data-h="se"] { right: -13px; bottom: -13px; }
  .hjorne[data-h="ne"] { right: -13px; top: -13px; } .hjorne[data-h="sw"] { left: -13px; bottom: -13px; }
  .low[data-verk="del"] .ideas { display: none; }
}
.low { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) {
  .del-slag { display: none; }
  .del-hode { flex-wrap: nowrap; }
  .del-hode > b { max-width: none; flex: 1; font-size: 14px; }
  .del-hode .chip { flex: none; }
  .del-faner .chip { min-height: 40px; padding: 0 10px; }
  .framtid { grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 4px; }
  .framtid-meir { grid-column: 1 / -1; justify-self: center; min-height: 40px; }
  .framtid-pil { width: 32px; }
  .framtid-ein span { font-size: 12px; }
  .framtid-bilde { max-height: none; }
  .low[data-verk="del"] .ideas button { flex: 1 1 30%; }
}
@media (max-width: 520px) { .framtid-bilde { max-height: 64px; } .p-seksjon .framtid-bilde { max-height: none; } }

.chamber.med-panel .top { padding: 0 14px; gap: 6px; }
.chamber.med-panel .top h1 { display: none; }
.chamber.med-panel .top-end { gap: 2px; }
.chamber.med-panel .top .quiet-btn { padding: 0 10px; }
.chamber.med-panel .sp-knapp-t, .chamber.med-panel .sofa-opne-t, .chamber.med-panel .nt-topp-t, .chamber.med-panel #tilbake .hide-s { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 1180px) { .chamber.med-panel { grid-template-columns: 80px minmax(0, 1fr) 320px; } }

.dock .play-control { width: auto; min-width: 92px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; flex: 0 0 auto; }
.play-control span { font: 650 14px/1 var(--font-text); }
.lyd-knapp { background: transparent; color: var(--ink); border: 1px solid #3A4050; }
.lyd-knapp svg { width: 22px; height: 22px; }
.lyd-knapp svg path, .lyd-trykk svg path { fill: currentColor; stroke: none; }
.lyd-knapp svg path.fri, .lyd-trykk svg path.fri { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lyd-knapp[aria-pressed="false"] { color: var(--ink-3); }
.lyd-trykk { position: absolute; left: 10px; top: 10px; z-index: 5; min-height: 44px; padding: 0 16px 0 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(20, 22, 29, .82); color: #EDEFF4; font: 650 14px/1 var(--font-text); cursor: pointer; }
.lyd-trykk[hidden] { display: none; }
.lyd-trykk svg { width: 22px; height: 22px; }
.lyd-trykk:hover { background: rgba(20, 22, 29, .95); }
@media (max-width: 860px) { .lyd-trykk { left: 6px; top: 6px; min-height: 40px; font-size: 13px; padding: 0 12px 0 10px; } }
.lyd-knapp[hidden] { display: none; }
.lyd-volum { width: 84px; accent-color: var(--ink); cursor: pointer; margin: 0 4px 0 -2px; flex: 0 0 auto; }
.lyd-volum[hidden] { display: none; }
@media (max-width: 520px) { .lyd-volum { width: 64px; } }
html[data-hennar] .lyd-knapp { background: transparent; color: var(--ink); }
html[data-hennar] .lyd-knapp[aria-pressed="false"] { color: var(--ink-3); }

@media (max-width: 860px) {
  .chamber { grid-template-rows: minmax(0, 1fr) 64px; }
  .stage { --film-h: calc((100vw - 16px) * 9 / 16 + 8px); height: 100%; min-height: 0; overflow: hidden; grid-template-rows: 52px var(--film-h) minmax(0, 1fr); }
  .stage:has(.canvas[data-form="kvadrat"]), .stage:has(.canvas[data-form="hoy"]) { --film-h: 42dvh; }
  .top { padding: 0 8px; }
  .mid { height: var(--film-h); padding: 4px 8px !important; place-items: center !important; }
  .film { border-radius: 10px; }
  .low { display: flex; flex-direction: column; align-items: stretch; justify-items: stretch; gap: 10px; padding: 0 12px 20px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; -webkit-overflow-scrolling: touch; }
  .low > * { flex: none; }
  .dock { order: -2; position: sticky; top: 0; z-index: 6; flex-wrap: wrap; gap: 6px; padding: 8px; border-radius: 0 0 18px 18px; border-top: 0; margin: 0 -12px; width: calc(100% + 24px); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .9); }
  .dock .round { width: 44px; height: 44px; }
  .dock .play-control { width: auto; }
  .dock .time { display: inline-block !important; margin-left: auto; order: 1; }
  .dock .say { order: 2; flex: 1 1 100%; }
  .dock .say input { min-height: 44px; font-size: 16px; }
  .dock .say button { min-height: 44px; padding: 0 14px; }
  .lyd-volum { width: 72px; }
  .bubble { z-index: 8; }
  .svar { order: -1; width: 100%; }
  .tray, .timeline, .ideas { width: 100%; }
  .tray.tray-looks { max-height: none; overflow: visible; }
  .tray.tray-del.panel-innhald { max-height: none; overflow: visible; }
  .timeline { max-height: none; overflow: visible; }
  .low[data-verk="colours"] .framtid, .low[data-verk="motion"] .framtid, .low[data-verk="frame"] .framtid { display: none; }
  .tray.tray-colours, .tray.tray-motion, .tray.tray-frame, .tray.tray-sound { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
  .tray-colours .sw, .tray-motion .sw, .tray-frame .sw, .tray-sound .sw { height: 34px; }
  .tray-colours .card span, .tray-motion .card span, .tray-frame .card span, .tray-sound .card span { min-height: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
  .ideas { flex-wrap: wrap; overflow: visible; }
  .ideas button { flex: 1 1 30%; min-height: 44px; }
  .low[data-verk="frame"] .ideas, .low[data-verk="sound"] .ideas, .low[data-verk="motion"] .ideas, .low[data-verk="advanced"] .ideas { display: flex; }
  .hint { display: none; }
  .toast { top: auto; bottom: 76px; }
}
@media (max-width: 380px) {
  .top .primary { padding: 0 12px; font-size: 14px; }
  .top .quiet-btn { padding: 0 6px; }
  .lyd-volum { width: 56px; }
  .rail button { width: 50px; font-size: 10.5px; }
  .tray.tray-colours, .tray.tray-motion, .tray.tray-frame, .tray.tray-sound { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
}

@media (min-width: 861px) {
  .stage { grid-template-rows: 72px minmax(46dvh, 1fr) minmax(0, auto); }
  .low { max-height: calc(54dvh - 72px); overflow-y: auto; overscroll-behavior: contain; align-content: start; padding-top: 12px; }
  .dock { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 0 0 100vmax var(--ground); clip-path: inset(-12px -100vmax -20px -100vmax); }
  .timeline { max-height: none; overflow: visible; }
  .dock .say { min-width: 280px; }
  .tast-hint:not(.on) { display: none; }
}
.timeline { overflow-x: hidden; }
.tl-spor > * { min-width: 0; }

.film.endra::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--hennar-lead, #EDEFF4); animation: endra .7s var(--ease) forwards; pointer-events: none; z-index: 6; }
@keyframes endra { from { opacity: 1; } to { opacity: 0; } }
.rail button[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
@media (max-width: 860px) { .rail button[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--ink); } }
.rail button { position: relative; }
.rail-prikk { position: absolute; top: 8px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 3px var(--ground); animation: prikk 2.4s ease-in-out infinite; }
@keyframes prikk { 50% { transform: scale(1.35); } }

.timeline { width: min(100%, 980px); }
.tl-head { flex-wrap: wrap; }
.tl-head .chip { min-height: 40px; }
.tl-spor { --tl-namn: 150px; position: relative; display: grid; grid-template-columns: var(--tl-namn) minmax(0, 1fr); column-gap: 10px; row-gap: 6px; margin: 6px 0 10px; }
.tl-namn { display: grid; align-content: center; gap: 4px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.tl-namn b { font-size: 13.5px; color: var(--ink); font-weight: 650; }
.tl-namn small { font-size: 12px; color: var(--ink-3); }
.tl-namn-rad { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tl-namn-rad b { flex: 1; min-width: 0; }
.tl-niva { width: 70px; height: 28px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.tl-ms { min-height: 34px; min-width: 52px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-weight: 650; font-size: 12.5px; }
.tl-ms:hover { border-color: var(--line-strong); color: var(--ink); }
.tl-ms[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.tl-linjal { position: relative; height: 18px; font: 600 11px/1 ui-monospace, Consolas, monospace; color: var(--ink-3); }
.tl-linjal i { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); font-style: normal; }
.tl-linjal i span { position: absolute; left: 4px; top: 2px; white-space: nowrap; }
.tl-spor .tl-lane { height: 48px; border-radius: 10px; overflow: hidden; }
.tl-bilete { background: linear-gradient(90deg, #232735, #2B3040); }
.tl-bilete { overflow: visible !important; }
.tl-lyd { position: relative; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; touch-action: pan-y; }
.tl-lyd.er-stille .tl-klipp { opacity: .28; }
.tl-klipp { position: absolute; top: 4px; bottom: 4px; min-width: 6px; padding: 0; border: 0; border-radius: 7px; overflow: hidden; background: var(--klipp, #8FA6D8); color: #0E1016; cursor: grab; touch-action: none; text-align: left; transition: box-shadow .15s var(--ease); }
.tl-klipp canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.tl-klipp span { position: relative; display: block; padding: 3px 6px 0; font: 650 11px/1.2 var(--font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 6px var(--klipp, #8FA6D8); }
.tl-klipp:hover, .tl-klipp:focus-visible { box-shadow: 0 0 0 2px var(--ink); z-index: 2; }
.tl-klipp.drar { cursor: grabbing; box-shadow: 0 0 0 2px var(--ink), 0 8px 18px -6px rgba(0, 0, 0, .8); z-index: 3; }
.tl-klipp.er-flytta { box-shadow: 0 0 0 2px var(--ink); }
.tl-klipp.tl-fast { cursor: pointer; }
.tl-voice { --klipp: #5FD3A0; } .tl-music { --klipp: #8FA6D8; } .tl-effects { --klipp: #B9A3F5; } .tl-mix { --klipp: #8FA6D8; }
.tl-heil { display: flex; align-items: center; cursor: default; }
.tl-lyd[style*="--rekkjer"] .tl-klipp { bottom: auto; top: calc(4px + var(--rekkje, 0) * (100% - 8px) / var(--rekkjer)); height: calc((100% - 8px) / var(--rekkjer) - 2px); }.tl-spokelse { position: absolute; top: 4px; bottom: 4px; border: 1.5px dashed var(--line-strong); border-radius: 7px; pointer-events: none; }
.tl-over { position: absolute; left: calc(var(--tl-namn) + 10px); right: 0; top: 0; bottom: 0; pointer-events: none; z-index: 4; }
.tl-over .tl-head-line { top: 0; bottom: 0; }
.tl-spor .tl-hand { top: -2px; bottom: -2px; }
@media (max-width: 860px) {
  .tl-spor { --tl-namn: 112px; column-gap: 10px; }
  .tl-niva { width: 54px; }
  .tl-ms { min-width: 0; flex: 1; min-height: 36px; padding: 0 6px; }
  .tl-namn small { display: none; }
  .tl-spor .tl-lane { height: 56px; }
  .tl-row { grid-template-columns: 70px minmax(0, 1fr) !important; }
}

.vink { width: min(100%, 860px); display: grid; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong); }
.vink p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.45; }
.vink-rad { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vink-rad .primary { min-height: 44px; }
.vink-rad .quiet-btn { min-height: 44px; border-color: var(--line); }
.vink-lukk { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; }
.vink-lukk:hover { background: var(--surface-2); color: var(--ink); }
.vink-lukk svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .vink { order: -1; width: 100%; } .vink p { font-size: 14px; } }

.laga-rad { display: none; }
@media (max-width: 860px) {
  .laga-rad { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; padding: 0 14px 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 650; font-size: 14.5px; }
  .laga-rad svg { width: 18px; height: 18px; color: var(--ink-3); }
  .laga-rad[hidden] { display: none; }
}
#laga-knapp[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
.tray.tray-laga { display: block; width: min(100%, 980px); }
.laga { display: grid; gap: 14px; }
.laga-venta { margin: 0; color: var(--ink-3); text-align: center; }
.laga-hode { display: flex; align-items: center; gap: 12px; }
.laga-hode b { font: 650 17px/1.3 var(--font-display); }
.laga-hode .quiet-btn { margin-left: auto; }
.laga-steg { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.laga-steg > li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.laga-nr { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); font: 700 13px/1 var(--font-text); }
.laga-steg h3 { margin: 3px 0 6px; font: 650 15px/1.3 var(--font-display); }
.laga-steg p, .laga-steg li li { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.laga-steg p { margin: 0 0 8px; }
.laga-steg ul { margin: 0 0 8px; padding-left: 18px; display: grid; gap: 5px; }
.laga-steg blockquote { margin: 0 0 8px; padding: 8px 12px; border-left: 3px solid var(--line-strong); color: var(--ink); font-size: 14px; line-height: 1.45; }
.laga-steg cite { display: block; margin-top: 4px; font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.laga-steg cite a { color: var(--ink-3); }
.laga-tal { display: flex; align-items: baseline; gap: 8px; } .laga-tal b { font: 700 28px/1 var(--font-display); color: var(--ink); }
.laga-domarar { display: flex; flex-wrap: wrap; gap: 6px; } .laga-domarar span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
.laga-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.laga-cta p { margin: 0 auto 0 0; font-weight: 600; }
.laga-cta .quiet-btn { border-color: var(--line-strong); }
@media (max-width: 860px) { .laga-steg { grid-template-columns: minmax(0, 1fr); } .laga-cta p { flex: 1 1 100%; } .laga-hode b { font-size: 15.5px; } }

@media (max-width: 860px) { .n9-tb { display: none !important; } }

.say-tips, .svar-tips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.say-tips { flex: 1 1 100%; order: 3; padding: 2px 4px 0; }
.say-tips[hidden], .svar-tips[hidden] { display: none; }
.tips-ord { font-size: 13px; font-weight: 650; color: var(--ink-3); margin-right: 2px; }
.say-tips .chip, .svar-tips .chip { min-height: 40px; }
.dock { flex-wrap: wrap; }
.ideas:empty { display: none; }
@media (max-width: 860px) {
  .chamber.rediger .mid { place-items: start center !important; padding-top: 6px; }
  .chamber.rediger .low { align-self: end; background: var(--surface); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, .8); padding-top: 18px; position: relative; }
  .chamber.rediger .low::before { content: ""; position: absolute; left: 50%; top: 7px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-strong); }
  .chamber.rediger .low .dock { background: var(--ground); box-shadow: none; }
  .chamber.rediger .low .tray .card { background: var(--surface-2); }
  .chamber.rediger .hint { top: calc(100% + 16px); bottom: auto; background: transparent; color: var(--ink-2); font-size: 15.5px; font-weight: 600; padding: 0 8px; }
  .chamber.rediger .rail { border-top: 0; }
}
.panel > .tray { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; max-height: none; overflow: visible; padding: 0; gap: 8px; justify-items: stretch; }
.panel > .tray .card { min-width: 0; }
.panel > .tray .tray-rad { justify-content: flex-start; }
.panel > .tray .tray-rad-namn { width: 100%; }
.panel > .tray .tray-merk { text-align: left; }
.panel > .tray .nett { justify-items: stretch; } .panel > .tray .nett-rad { width: 100%; }
.panel > .tray .lyd-rad input { width: 100%; }
.panel > .tray .framtid { width: 100%; grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-areas: "kort kort kort" "fr meir nx" "merk merk merk"; gap: 8px; }
.panel > .tray .framtid-kort { grid-area: kort; }
.panel > .tray .framtid > .framtid-pil:first-child { grid-area: fr; }
.panel > .tray .framtid > .framtid-pil:nth-child(3) { grid-area: nx; }
.panel > .tray .framtid-meir { grid-area: meir; justify-self: center; }
.panel > .tray .framtid-merk { grid-area: merk; }
.panel > .tray .framtid-pil { width: 44px; }
.panel > .tray .framtid-bilde { max-height: 104px; object-fit: contain; }
.p-verk-hode { padding-bottom: 2px; }
@media (max-width: 860px) {
  .chamber.rediger .low { max-height: max(180px, calc(100dvh - 68px - 60px - 6px - (100vw - 24px) * 9 / 16 - 10px)); overflow-y: auto; overscroll-behavior: contain; }
  .chamber.rediger .low .tray, .chamber.rediger .low .tray.tray-looks, .chamber.rediger .low .tray.tray-del.panel-innhald, .chamber.rediger .low .timeline { max-height: none; overflow: visible; }
  .chamber.rediger .low .dock { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 0 0 10px var(--surface), 0 14px 0 10px var(--surface); }
}
