/* MyraGlow Artist Studio: a dark, quiet desk so her face is the brightest thing on screen. */
@font-face { font-family: "Jost"; font-weight: 300; font-display: swap; src: url(../fonts/jost-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url(../fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url(../fonts/jost-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-display: swap; src: url(../fonts/playfair-display-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/playfair-display-latin-400-italic.woff2) format("woff2"); }

:root {
  --bg: #0B0910; --panel: #13101A; --panel-2: #1A1622; --raise: #221C2C; --line: rgba(246, 238, 243, .09); --line-2: rgba(246, 238, 243, .16);
  --text: #F6EEF3; --muted: #A2939D; --faint: #6E6370; --accent: #FF8FC0; --gold: #D7B36A; --good: #8FD9B0; --warn: #F2C27A; --bad: #FF8A8A;
  --rose: #D9488A; --violet: #A35BEF; --peri: #6F79F0;
  --crystal: linear-gradient(125deg, var(--rose), var(--violet) 52%, var(--peri));
  --f-display: "Playfair Display", Georgia, serif;
  --f-body: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --r: 12px; --bar: 60px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; overflow: hidden; }
img, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; letter-spacing: -.01em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.engine { position: fixed; width: 1px; height: 1px; left: -10px; top: -10px; opacity: 0; border: 0; pointer-events: none; }

/* ---------- top bar ---------- */
.bar { height: var(--bar); display: flex; align-items: center; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(11, 9, 16, .9); position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-size: 18px; white-space: nowrap; }
.brand img { width: 38px; height: 38px; }
.brand em { font-style: italic; color: var(--accent); }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); min-width: 0; flex: 1; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--faint); }
.crumbs .here { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--crystal); display: grid; place-items: center; font-size: 12px; font-weight: 500; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- buttons, fields, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); font-weight: 500; font-size: 13px; letter-spacing: .02em; white-space: nowrap; transition: background .2s, border-color .2s, transform .15s; }
.btn:hover { background: var(--raise); border-color: rgba(255, 143, 192, .4); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.primary { border: 0; background: var(--crystal); color: #fff; box-shadow: 0 6px 24px rgba(163, 91, 239, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel-2); }
.btn.small { height: 30px; padding: 0 12px; font-size: 12px; }
.btn.icon { width: 36px; padding: 0; }
.btn.small.icon { width: 30px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.danger { color: var(--bad); }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; color: var(--muted); }
.input, .textarea, .select { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; outline: 0; transition: border-color .2s; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); }
.textarea { resize: vertical; min-height: 72px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.chip:hover { color: var(--text); border-color: rgba(255, 143, 192, .45); }
.chip.on { color: #fff; border-color: transparent; background: linear-gradient(125deg, rgba(217, 72, 138, .75), rgba(163, 91, 239, .75) 52%, rgba(111, 121, 240, .75)); }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); flex: none; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); }
.seg button { border: 0; background: transparent; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12px; color: var(--muted); }
.seg button.on { background: var(--raise); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 143, 192, .35); }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: .03em; background: var(--raise); color: var(--muted); white-space: nowrap; }
.pill.warn { color: #241a0a; background: var(--warn); }
.pill.good { color: #0b2216; background: var(--good); }
.pill.accent { color: #fff; background: var(--crystal); }
.label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- views ---------- */
.view { height: calc(100% - var(--bar)); overflow: auto; outline: 0; }
.fade-in { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } * { transition-duration: 0s !important; } }

/* sign in */
.welcome { min-height: 100%; display: grid; grid-template-columns: 1.15fr 1fr; }
.welcome-art { position: relative; overflow: hidden; padding: 64px clamp(28px, 5vw, 80px); display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; background: radial-gradient(120% 90% at 20% 0%, rgba(163, 91, 239, .22), transparent 60%), radial-gradient(90% 70% at 100% 100%, rgba(217, 72, 138, .2), transparent 60%), var(--bg); }
.welcome-art .faces { position: absolute; inset: 40px 40px auto auto; display: flex; gap: 14px; transform: rotate(-4deg); opacity: .92; }
.welcome-art .faces img { width: 150px; height: 190px; object-fit: cover; border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); border: 1px solid var(--line-2); }
.welcome-art .faces img:nth-child(2) { transform: translateY(40px); }
.welcome-art .faces img:nth-child(3) { transform: translateY(10px); }
.welcome-art h1 { font-size: clamp(40px, 5vw, 72px); max-width: 12ch; }
.welcome-art h1 em { color: var(--accent); }
.welcome-art .lede { font-size: 17px; color: var(--muted); max-width: 46ch; font-weight: 300; }
.welcome-art ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 52ch; }
.welcome-art li { display: flex; gap: 10px; color: var(--muted); }
.welcome-art li b { color: var(--text); font-weight: 500; }
.welcome-art li::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--crystal); flex: none; }
.welcome-form { display: grid; place-items: center; padding: 40px 24px; border-left: 1px solid var(--line); background: var(--panel); }
.card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.signin { width: min(400px, 100%); display: grid; gap: 16px; }
.signin h2 { font-size: 28px; }
.signin .err { color: var(--bad); font-size: 13px; min-height: 1em; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; }
.or::before, .or::after { content: ""; height: 1px; flex: 1; background: var(--line); }
@media (max-width: 900px) { .welcome { grid-template-columns: 1fr; } .welcome-art { min-height: 520px; } .welcome-art .faces { inset: 24px 16px auto auto; } .welcome-art .faces img { width: 100px; height: 130px; } }

/* desk */
.desk { max-width: 1280px; margin: 0 auto; padding: 36px clamp(18px, 3vw, 40px) 60px; display: grid; gap: 26px; }
.desk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.desk-head h1 { font-size: clamp(30px, 3vw, 44px); }
.desk-head h1 em { color: var(--accent); }
.notice { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); border: 1px solid rgba(242, 194, 122, .35); background: rgba(242, 194, 122, .07); color: var(--text); }
.notice p { flex: 1; }
.lanes { display: flex; gap: 6px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.req { color: inherit; text-decoration: none; position: relative; display: grid; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); text-align: left; transition: border-color .2s, transform .2s, background .2s; }
.req:hover { border-color: rgba(255, 143, 192, .4); transform: translateY(-2px); background: var(--panel-2); }
.req-top { display: flex; align-items: center; gap: 10px; }
.req-top .name { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req .occ { font-family: var(--f-display); font-size: 20px; line-height: 1.2; }
.req .notes { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.req .meta { display: flex; gap: 12px; color: var(--faint); font-size: 12px; flex-wrap: wrap; }
.thumbs { display: flex; gap: 8px; }
.thumbs .t { width: 64px; height: 80px; border-radius: 10px; background: var(--raise); overflow: hidden; display: grid; place-items: center; color: var(--faint); font-size: 10px; text-align: center; }
.thumbs .t img { width: 100%; height: 100%; object-fit: cover; }
.req.practice { background: radial-gradient(120% 120% at 0% 0%, rgba(163, 91, 239, .18), transparent 60%), var(--panel); border-color: rgba(163, 91, 239, .3); }
.empty { padding: 48px 24px; border: 1px dashed var(--line-2); border-radius: 16px; text-align: center; color: var(--muted); display: grid; gap: 8px; justify-items: center; }
.empty h3 { font-size: 22px; color: var(--text); }

/* ---------- the studio ---------- */
.studio { height: 100%; display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; grid-template-rows: auto minmax(0, 1fr); }
.tools { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); min-width: 0; }
.tools .name { width: min(320px, 28vw); font-family: var(--f-display); font-size: 18px; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 4px 8px; }
.tools .name:hover { border-color: var(--line-2); }
.tools .name:focus { border-color: var(--accent); outline: 0; }
.tools .grow { flex: 1; }
.tools .sepv { width: 1px; height: 22px; background: var(--line); }
.side { background: var(--panel); border-right: 1px solid var(--line); overflow: auto; display: flex; flex-direction: column; min-height: 0; }
.side.right { border-right: 0; border-left: 1px solid var(--line); }
.tabs { display: flex; gap: 2px; padding: 10px 10px 0; position: sticky; top: 0; background: var(--panel); z-index: 2; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; border: 0; background: transparent; color: var(--muted); padding: 8px 6px 10px; font-size: 12px; font-weight: 500; letter-spacing: .04em; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.pane { padding: 16px; display: grid; gap: 16px; align-content: start; }
.block { display: grid; gap: 10px; }
.brief-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.brief-photos figure { margin: 0; display: grid; gap: 4px; }
.brief-photos .ph { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--raise); display: grid; place-items: center; color: var(--faint); font-size: 11px; text-align: center; padding: 6px; }
.brief-photos img { width: 100%; height: 100%; object-fit: cover; }
.brief-photos figcaption { font-size: 11px; color: var(--faint); }
.kv { display: grid; grid-template-columns: 84px 1fr; gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; }
.skin { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.skin .dot { width: 26px; height: 26px; }
.picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pick { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 0; overflow: hidden; text-align: left; transition: border-color .2s; }
.pick:hover, .pick.on { border-color: rgba(255, 143, 192, .55); }
.pick img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; transform: scale(1.35); transform-origin: 50% 38%; }
.pick { position: relative; }
.pick span { position: relative; background: var(--bg); }
.pick span { display: block; padding: 6px 8px; font-size: 12px; }
.facepick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.facepick button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--raise); aspect-ratio: 4 / 5; }
.facepick button.on { border-color: var(--accent); }
.facepick img { width: 100%; height: 100%; object-fit: cover; }
.trend { display: flex; flex-wrap: wrap; gap: 6px; }
.chat { display: grid; gap: 10px; }
.msg { padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; display: grid; gap: 6px; }
.msg.mine { background: rgba(163, 91, 239, .1); border-color: rgba(163, 91, 239, .3); }
.msg .when { font-size: 11px; color: var(--faint); }
.msg .lk { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }

/* canvas */
.stage { position: relative; overflow: hidden; background: radial-gradient(70% 70% at 50% 40%, #17121E, #0A080E); display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.canvas { position: relative; overflow: hidden; cursor: grab; touch-action: none; min-height: 0; }
.canvas.dragging { cursor: grabbing; }
.canvas .frame { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; box-shadow: 0 40px 90px rgba(0, 0, 0, .55); }
.canvas .frame img { width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.canvas .frame .after { position: absolute; inset: 0; }
.canvas .split { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .5); cursor: ew-resize; pointer-events: auto; }
.canvas .split::after { content: ""; position: absolute; top: 50%; left: -16px; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315101A' stroke-width='2'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.tag { position: absolute; top: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(11, 9, 16, .7); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(6px); pointer-events: none; }
.tag.l { left: 14px; } .tag.r { right: 14px; }
.hud { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(19, 16, 26, .85); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.hud .zoom { min-width: 48px; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.painting { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(19, 16, 26, .85); border: 1px solid var(--line-2); font-size: 12px; color: var(--muted); opacity: 0; transition: opacity .2s; pointer-events: none; }
.painting.on { opacity: 1; }
.stage-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; }
.stage-msg h3 { color: var(--text); font-size: 26px; margin-bottom: 8px; }
.strip { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; border-top: 1px solid var(--line); background: var(--panel); }
.strip[hidden] { display: none; }
.strip button { flex: none; width: 74px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: var(--raise); overflow: hidden; position: relative; text-align: left; }
.strip button.on { border-color: var(--accent); }
.strip img, .strip .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.strip .ph { display: grid; place-items: center; }
.strip span { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 6px 4px; font-size: 10px; line-height: 1.2; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }

/* inspector */
.layers { display: grid; gap: 2px; }
.layer { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; text-align: left; width: 100%; }
.layer:hover { background: var(--panel-2); }
.layer.on { background: var(--panel-2); border-color: rgba(255, 143, 192, .45); }
.layer.off { opacity: .45; }
.layer .n { width: 18px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.layer .dot { width: 22px; height: 22px; }
.layer .t { flex: 1; min-width: 0; display: grid; }
.layer .t b { font-weight: 500; font-size: 13px; }
.layer .t small { color: var(--faint); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer .eye { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; color: var(--faint); border: 0; background: transparent; }
.layer .eye:hover { color: var(--text); background: var(--raise); }
.layer .eye svg { width: 15px; height: 15px; }
.insp { display: grid; gap: 16px; padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.insp h3 { font-size: 20px; }
.insp .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shades { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.shade { aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; padding: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); transition: transform .15s; }
.shade:hover { transform: scale(1.12); }
.shade.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.hex { display: flex; gap: 8px; align-items: center; }
.hex input[type="color"] { width: 38px; height: 34px; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; }
.hex .input { font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; }
.range { display: grid; grid-template-columns: 1fr 44px; gap: 10px; align-items: center; }
.range input { width: 100%; accent-color: var(--accent); }
.range output { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
.zonepick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.zonepick button { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 10px; color: var(--muted); }
.zonepick button.on { border-color: var(--accent); color: var(--text); }
.zonepick .dot { width: 16px; height: 16px; }
.zonepick .dot.empty { background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(255, 255, 255, .15) 3px 4px) !important; }
.add { display: flex; gap: 8px; }
.plan-note { font-size: 12px; color: var(--faint); display: flex; gap: 8px; align-items: flex-start; }
.plan-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }

/* dialog + toast */
.dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 1px solid var(--line-2); border-radius: 20px; padding: 0; background: var(--panel); color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, .7); }
.dlg::backdrop { background: rgba(5, 4, 8, .7); backdrop-filter: blur(4px); }
.dlg form { display: grid; gap: 16px; padding: 24px; }
.dlg h2 { font-size: 26px; }
.dlg .acts { display: flex; justify-content: flex-end; gap: 8px; }
.dlg .preview { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; }
.dlg .preview img { border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.dlg .steps { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; columns: 2; column-gap: 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: all .3s; z-index: 20; font-size: 13px; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.kbd { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--line-2); font-size: 11px; text-align: center; color: var(--muted); }

/* small screens: the Studio is a desktop tool, so stack and say so */
.narrow-note { display: none; }
@media (max-width: 1100px) {
  .studio { grid-template-columns: 260px minmax(0, 1fr) 300px; }
}
@media (max-width: 860px) {
  body { overflow: auto; }
  .view { height: auto; min-height: calc(100% - var(--bar)); }
  .studio { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .stage { height: 70vh; }
  .side, .side.right { border: 0; border-top: 1px solid var(--line); }
  .narrow-note { display: block; padding: 10px 14px; font-size: 12px; color: var(--warn); background: rgba(242, 194, 122, .08); border-bottom: 1px solid var(--line); grid-column: 1 / -1; }
  .tools { flex-wrap: wrap; }
  .crumbs { display: none; }
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted, inherit); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: #D9488A; }
.btn.off { opacity: .45; pointer-events: none; }
