/* mdl — the Desk, the project view, cards, windows, print. Tokens in tokens.css (art.hellodamien.com via
   Things); the Desk's rules come from Press desk.css, scoped to #desk. Text inputs are ≥ 16 px on touch. */
:root { --pane: var(--bg); --board: #E7E7E4; --warn-tint: rgba(230,57,23,.08); }
:root[data-theme="dark"] { --board: #131313; }
html, body { height: 100%; }
body { overflow: hidden; background: var(--paper); }
#root { position: fixed; inset: 0; }
button { cursor: default; }
.btn { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: var(--r); padding: 6px 12px; font-size: 13px; line-height: 1.2; }
.btn:hover:not(:disabled) { background: var(--hover); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { opacity: .88; background: var(--ink); }
.btn.ghost { border-color: transparent; background: none; }
.btn.sm { padding: 4px 9px; font-size: 12px; }
.btn:disabled, .ib:disabled { opacity: .4; }
.ib { border: 0; background: none; width: 28px; height: 28px; border-radius: var(--r); display: inline-grid; place-items: center; color: var(--ink-2); font-size: 15px; }
.ib:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); }
.seg button { border: 0; background: none; padding: 4px 9px; font-size: 12px; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--ink); color: var(--bg); }
select, input[type=text], input:not([type]), input[inputmode] { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: var(--r); padding: 5px 7px; font-size: 13px; }
.chip { font: 11px var(--mono); color: var(--ink-3); border: 1px solid var(--line); border-radius: 10px; padding: 1px 8px; white-space: nowrap; }
.lbl { font: 10.5px var(--mono); color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.hint { color: var(--ink-3); font-size: 12px; }
.unk { color: var(--ink-3); font-style: italic; }
kbd { font: 500 10.5px var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--r); padding: 0 4px; background: var(--raised); }
#toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 10px); z-index: 9500; background: var(--ink); color: var(--bg); font-size: 12.5px; padding: 8px 14px; border-radius: 16px; box-shadow: var(--e2); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; max-width: min(560px, 92vw); text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.opener { position: fixed; z-index: 9000; background: var(--bg); box-shadow: var(--e2); pointer-events: none; }
dialog.dlg { border: 1px solid var(--line); border-radius: 8px; background: var(--pane); color: var(--ink); box-shadow: var(--e2); padding: 18px; width: min(420px, 92vw); }
dialog.dlg::backdrop { background: rgba(0,0,0,.28); }
dialog.dlg h3 { margin: 0 0 12px; font-size: 15px; font-weight: 500; }
dialog.dlg label { display: grid; gap: 4px; margin-bottom: 10px; }
dialog.dlg input { font-size: 14px; padding: 7px 8px; }
dialog.dlg .acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
dialog.dlg:has(.wiz) { width: min(720px, 94vw); }
.wizgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.wz { border: 1px solid var(--line); background: var(--bg); border-radius: 6px; padding: 8px 8px 10px; display: grid; gap: 4px; justify-items: center; text-align: center; font-size: 12px; line-height: 1.3; }
.wz:hover, .wz:focus-visible { border-color: var(--sel); background: var(--sel-tint); }
.wzi { width: 92px; height: 72px; display: block; }
.wzi svg { width: 100%; height: 100%; overflow: visible; }

/* .objs: anything that draws objects (the desk, the rail, the ghost, quick look) */
.objs { --paper-o: #FFFFFF; --edge-l: #ECECE8; --edge-r: #D9D9D4; --stripe: rgba(0,0,0,.07); --shadow: rgba(0,0,0,.14); }
:root[data-theme="dark"] .objs { --paper-o: #E4E4E0; --edge-l: #BDBDB8; --edge-r: #9E9E99; --stripe: rgba(0,0,0,.10); --shadow: rgba(0,0,0,.5); }
.objs .s-l { fill: var(--edge-l); } .objs .s-r { fill: var(--edge-r); }
.objs .stripe { stroke: var(--stripe); stroke-width: .05; }
.objs .shadow { fill: var(--shadow); filter: url(#dkSoft); }
.objs .outline { fill: none; stroke: transparent; stroke-width: .3; stroke-linejoin: round; }
.objs .halo { fill: transparent; }
.objs .glass-top { fill: var(--sel-tint); stroke: var(--sel); stroke-width: .12; stroke-dasharray: .45 .3; }
.objs .glass-side { fill: var(--sel-tint); opacity: .7; }
.objs .glass-plus { stroke: var(--sel); stroke-width: .3; stroke-linecap: round; }
.objs .flat { position: relative; background: var(--paper-o); border-radius: 1.5px; box-shadow: var(--fs, none); }
.objs .flat svg { display: block; width: 100%; height: 100%; }
.objs .flat.glass { background: var(--sel-tint); outline: 1.2px dashed var(--sel); outline-offset: -1px; }
.objs .flat .kind { position: absolute; right: 4px; top: 4px; font: 8.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55); padding: 0 3px; border-radius: 2px; }
.objs .flat.pilef { aspect-ratio: 8.5/11; display: grid; place-items: center; background: var(--sunk); box-shadow: 3px 3px 0 -.5px var(--sunk), 3px 3px 0 .5px var(--line), 6px 6px 0 -.5px var(--sunk), 6px 6px 0 .5px var(--line); font: 500 15px var(--font); color: var(--ink-2); }

#desk {
  --grid: rgba(0,0,0,.045); --tray: #E2E2DE; --tray-wall: #CFCFCA; --tray-wall-2: #D8D8D3; --icon: 128px;
  position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
}
:root[data-theme="dark"] #desk { --grid: rgba(255,255,255,.04); --tray: #232323; --tray-wall: #141414; --tray-wall-2: #1B1B1B; }
#desk .brand { font-weight: 500; white-space: nowrap; }
#desk input[type=search] { border: 1px solid var(--line); background: var(--pane); border-radius: var(--r); padding: 5px 8px 5px 26px; outline: none; width: 220px; font-size: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Ccircle cx='5' cy='5' r='3.6' fill='none' stroke='%238C8C8C' stroke-width='1.2'/%3E%3Cpath d='M7.7 7.7L11 11' stroke='%238C8C8C' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 8px 50%; }
#desk input[type=range] { accent-color: var(--ink); width: 84px; }
#desk .it.picked .outline { stroke: var(--sel); }
#desk .it.picked .halo { fill: var(--sel-tint); stroke: var(--sel); stroke-width: .12; stroke-dasharray: .4 .3; }
#desk .it.picked .flat { outline: 2px solid var(--sel); outline-offset: 3px; }
#dkQL .qltab { max-width: min(560px, 60vw); max-height: 62vh; overflow: auto; }
#dkQL .qltab table { border-collapse: collapse; font-size: 11.5px; margin-top: 6px; }
#dkQL .qltab th, #dkQL .qltab td { border-bottom: 1px solid var(--line-2); padding: 4px 8px; text-align: left; white-space: nowrap; }
#dkQL .qltab th { font: 10px var(--mono); text-transform: uppercase; color: var(--ink-3); }
#dkQL .qlc { grid-template-columns: auto minmax(220px, 280px); }
/* ---------------------------------------------------------------- frame */
#dkTop { flex: none; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; border-bottom: 1px solid var(--line); background: var(--pane); z-index: 5; }
#dkTop .crumb { color: var(--ink-2); font-weight: 500; padding-left: 10px; border-left: 1px solid var(--line); }
#dkTop .spacer { flex: 1; }
#dkTop .sizectl { display: flex; align-items: center; gap: 6px; }
#dkView button { display: inline-flex; align-items: center; gap: 6px; }

#dkWrap { flex: 1; display: grid; grid-template-columns: 1fr 236px; min-height: 0; }
#dkShelves { overflow: auto; padding: 18px 26px 80px; position: relative; user-select: none; -webkit-user-select: none; outline: none; }
#desk.axo #dkShelves { background-image: repeating-linear-gradient(30deg, var(--grid) 0 1px, transparent 1px 26px), repeating-linear-gradient(150deg, var(--grid) 0 1px, transparent 1px 26px); }
#dkSquares { border-left: 1px solid var(--line); background: var(--pane); padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 8px; overflow: auto; user-select: none; -webkit-user-select: none; }
#dkSquares > .lbl { padding: 0 2px 2px; }
#dkSqList { display: flex; flex-direction: column; gap: 8px; }
#dkSquares .foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2); color: var(--ink-3); font-size: 11px; line-height: 1.5; }
#dkLoading { padding: 60px 0; text-align: center; color: var(--ink-3); }

/* ---------------------------------------------------------------- shelves */
#desk .shelf { margin: 0 0 22px; }
#desk .shelf > header { display: flex; align-items: baseline; gap: 10px; padding: 4px 6px 8px 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; position: sticky; top: -18px; z-index: 2; background: var(--bg); border-radius: var(--r) var(--r) 0 0; transition: background .12s, box-shadow .12s; }
#desk .shelf h2 { font-size: 13px; font-weight: 500; margin: 0; }
#desk .shelf .n { font: 11px var(--mono); color: var(--ink-3); }
#desk .shelf .more { margin-left: auto; border: 0; background: none; color: var(--ink-2); font-size: 11.5px; padding: 2px 4px; border-radius: var(--r); }
#desk .shelf .more:hover { background: var(--hover); color: var(--ink); }
#desk .shelf > header.drop-ok { background: var(--sel-tint); box-shadow: inset 0 -2px 0 var(--sel); }
#desk .shelf > header.drop-ok h2 { color: var(--sel); }
#desk .shelf .vacant { color: var(--ink-3); font-size: 11.5px; padding: 6px 2px 2px; }
#desk .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--icon) + 18px), 1fr)); gap: 18px 10px; }
#desk .dkempty { color: var(--ink-3); padding: 40px 0; text-align: center; }
#desk .total { padding: 6px 2px; }

/* ---------------------------------------------------------------- items */
#desk .it { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 4px 8px; border-radius: 4px; cursor: default; outline: none; position: relative; }
#desk .it .ic { width: var(--icon); height: calc(var(--icon) * .84); display: grid; place-items: end center; position: relative; }
#desk .it .ic svg { width: 100%; height: 100%; overflow: visible; transition: transform .18s cubic-bezier(.2,.8,.2,1); }
#desk .it:hover .ic svg { transform: translateY(-3px); }
#desk .it .cap { text-align: center; max-width: calc(var(--icon) + 14px); }
#desk .it .cap b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; font-size: 11.5px; line-height: 1.3; padding: 1px 4px; border-radius: 2px; }
#desk .it .cap .meta { display: block; font: 10px var(--mono); color: var(--ink-3); margin-top: 2px; letter-spacing: .02em; }
#desk .it.picked .cap b { background: var(--sel); color: #fff; }
#desk .it.dragging { opacity: .35; }
#desk .it.drop-ok .ic::after { content: ''; position: absolute; inset: -6px; border: 1.5px solid var(--sel); border-radius: 6px; background: var(--sel-tint); }
#desk .it:focus-visible .cap b { box-shadow: 0 0 0 2px var(--sel-tint); }
#desk .it.pop { animation: dkpop .55s cubic-bezier(.34,1.56,.64,1); }
@keyframes dkpop { 0% { transform: scale(.4); opacity: 0 } 100% { transform: none; opacity: 1 } }
#desk .it.land .ic { animation: dkland .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes dkland { 0% { transform: scale(.92) } 55% { transform: scale(1.06) } 100% { transform: none } }

/* svg classes (axonometric) */
.objs .f-paper { fill: var(--paper); }
.objs .s-l { fill: var(--edge-l); }
.objs .s-r { fill: var(--edge-r); }
.objs .stripe { stroke: var(--stripe); stroke-width: .05; }
.objs .shadow { fill: var(--shadow); filter: url(#dkSoft); }
.objs .outline { fill: none; stroke: transparent; stroke-width: .3; stroke-linejoin: round; }
#desk .it.picked .outline { stroke: var(--sel); }
.objs .halo { fill: transparent; }
#desk .it.picked .halo { fill: var(--sel-tint); stroke: var(--sel); stroke-width: .12; stroke-dasharray: .4 .3; }
.objs .glass-top { fill: var(--sel-tint); stroke: var(--sel); stroke-width: .12; stroke-dasharray: .45 .3; }
.objs .glass-side { fill: var(--sel-tint); opacity: .7; }
.objs .glass-plus { stroke: var(--sel); stroke-width: .3; stroke-linecap: round; }

/* flat icons */
.objs .flat { position: relative; background: var(--paper); border-radius: 1.5px; box-shadow: var(--fs, none); }
.objs .flat svg { display: block; width: 100%; height: 100%; }
.objs .flat.glass { background: var(--sel-tint); outline: 1.2px dashed var(--sel); outline-offset: -1px; }
#desk .it.picked .flat { outline: 2px solid var(--sel); outline-offset: 3px; }
.objs .flat .pp { position: absolute; right: 4px; bottom: 4px; font: 9px var(--mono); color: #555; background: rgba(255,255,255,.85); padding: 0 3px; border-radius: 2px; }
.objs .flat .kind { position: absolute; right: 4px; top: 4px; font: 8.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55); padding: 0 3px; border-radius: 2px; }

/* ---------------------------------------------------------------- squares */
#desk .sq { border-radius: 6px; padding: 8px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; transition: background .15s, opacity .15s, transform .2s cubic-bezier(.2,.8,.2,1); }
#desk .sq .tray { width: 128px; height: 70px; display: grid; place-items: center; }
#desk .sq .tray svg { width: 100%; height: 100%; overflow: visible; }
#desk .sq .cap { text-align: center; }
#desk .sq .cap b { display: block; font-weight: 500; font-size: 12px; }
#desk .sq .sqh { display: block; font: 10px var(--mono); color: var(--ink-3); min-height: 14px; letter-spacing: .02em; max-width: 190px; }
#desk .t-floor { fill: var(--tray); } #desk .t-wall { fill: var(--tray-wall); } #desk .t-wall2 { fill: var(--tray-wall-2); }
#desk .t-rim { fill: none; stroke: var(--line); stroke-width: .12; }
#desk .t-glyph { fill: none; stroke: var(--ink-3); stroke-width: .32; stroke-linecap: round; stroke-linejoin: round; }
#desk .t-glyph-t { fill: var(--ink-3); font: 600 3.4px var(--mono); }
#desk.dragging .sq.ok .t-floor { fill: var(--sel-tint); }
#desk.dragging .sq.ok .t-glyph { stroke: var(--sel); }
#desk.dragging .sq.ok .t-glyph-t { fill: var(--sel); }
#desk.dragging .sq.ok .sqh { color: var(--sel); }
#desk.dragging .sq.no { opacity: .38; }
#desk .sq.hot { background: var(--sel-tint); transform: scale(1.04); }
#desk .sq.hot .t-rim { stroke: var(--sel); stroke-width: .25; }
#desk .sq.swallow { animation: dkswallow .5s ease; }
@keyframes dkswallow { 30% { transform: scale(.94) } 70% { transform: scale(1.05) } }
#desk .sq.shake { animation: dkshake .35s; }
@keyframes dkshake { 20%,60% { transform: translateX(-5px) } 40%,80% { transform: translateX(5px) } }
#desk .sq .fsq { width: 120px; height: 84px; border: 1.5px dashed var(--line); border-radius: 6px; display: grid; place-items: center; color: var(--ink-3); background: var(--bg); transition: border-color .15s, background .15s, color .15s; }
#desk .sq .fsq svg { width: 34px; height: 34px; }
#desk.dragging .sq.ok .fsq { border-color: var(--sel); color: var(--sel); }
#desk .sq.hot .fsq { background: var(--sel-tint); border-style: solid; }

/* ---------------------------------------------------------------- drag */
#dkGhost { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 50; width: 110px; height: 96px; display: none; }
#dkGhost .g { position: absolute; inset: 0; transition: transform .15s; }
#dkGhost .g svg, #dkGhost .g .flat { width: 100%; height: 100%; }
#dkGhost .g .flat { height: auto; }
#dkGhost .badge { position: absolute; right: -6px; top: -4px; background: var(--sel); color: #fff; font: 500 11px var(--font); border-radius: 10px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 6px; box-shadow: var(--e2); }
#dkMarquee { position: fixed; border: 1px solid var(--sel); background: var(--sel-tint); pointer-events: none; z-index: 40; display: none; }

/* ---------------------------------------------------------------- quick look */
#dkQL { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: rgba(0,0,0,.28); backdrop-filter: blur(3px); }
#dkQL.on { display: grid; }
#dkQL .qlc { background: var(--pane); border-radius: 6px; box-shadow: var(--e2); padding: 18px; display: grid; grid-template-columns: auto 230px; gap: 20px; max-width: 92vw; animation: dkql .3s cubic-bezier(.2,.8,.2,1); }
@keyframes dkql { from { transform: scale(.9); opacity: 0 } }
#dkQL .qlpv { height: min(62vh, 560px); display: grid; place-items: center; }
#dkQL .qlpv .flat { height: 100%; width: auto; max-width: 60vw; }
#dkQL h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; display: inline; }
#dkQL .qlren { border: 0; background: none; color: var(--ink-3); font-size: 11.5px; padding: 1px 5px; margin: 0 0 0 6px; border-radius: var(--r); vertical-align: 2px; }
#dkQL .qlren:hover, #dkQL .qlren:focus-visible { background: var(--hover); color: var(--ink); }
#dkQL .qlren + .lbl { margin-top: 4px; }
#dkQL dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 14px 0; font-size: 11.5px; }
#dkQL dt { color: var(--ink-3); font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .04em; padding-top: 1px; }
#dkQL dd { margin: 0; }
#dkQL .acts { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- phone */
@media (max-width: 720px) {
  #dkTop .hide-s, #dkTop .crumb { display: none; }
  #desk input[type=search] { width: 120px; flex: 1; }
  #dkView span { display: none; }
  #dkWrap { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  #dkShelves { padding: 14px 16px 30px; }
  #dkSquares { border-left: 0; border-top: 1px solid var(--line); padding: 6px 8px; flex-direction: row; }
  #dkSquares > .lbl, #dkSquares .foot { display: none; }
  #dkSqList { flex-direction: row; gap: 2px; width: 100%; }
  #desk .sq { flex: 1; padding: 4px 2px; }
  #desk .sq .tray { width: 72px; height: 44px; }
  #desk .sq .fsq { width: 56px; height: 40px; }
  #desk .sq .fsq svg { width: 20px; height: 20px; }
  #desk .sq .sqh { display: none; }
  #desk .sq .cap b { font-size: 10.5px; }
  #dkQL .qlc { grid-template-columns: 1fr; }
  #dkQL .qlpv { height: 40vh; }
}
@media (prefers-reduced-motion: reduce) {
  #desk *, #desk *::after { animation: none !important; transition: none !important; }
}

/* ---- shelves: inner shelves, the ⋯ menu, lazy bodies (desk step 9 and known issues) ---- */
#desk .shelf.sub { margin-left: 22px; }
#desk .shelf.sub > header { top: -18px; }
#desk .shelf.sub h2 { font-size: 12.5px; }
#desk .shelf h2 .par { color: var(--ink-3); font-weight: 400; }
/* Dragging a heading reorders shelves */
#desk .shelf > header[data-coll]:not([data-coll="__archive"]) h2 { cursor: grab; }
#desk.shelf-dragging, #desk.shelf-dragging * { cursor: grabbing !important; }
#desk .shelf.shelf-lifted { opacity: .35; }
#desk .shelf > header.lifted { background: var(--sel-tint); }
#dkShelfGhost { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; background: var(--pane); color: var(--ink); font: 500 13px var(--font); padding: 6px 10px; border-radius: var(--r); box-shadow: var(--e2); border: 1px solid var(--line); white-space: nowrap; }
#dkShelfMark { position: fixed; z-index: 49; height: 2px; margin-top: -1px; background: var(--sel); border-radius: 1px; pointer-events: none; display: none; }
#dkShelfMark::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--sel); }
#desk .shelf .shm { border: 0; background: none; color: var(--ink-3); font-size: 15px; line-height: 1; padding: 0 6px 3px; border-radius: var(--r); margin-left: 4px; }
#desk .shelf .more + .shm { margin-left: 0; }
#desk .shelf header:not(:has(.more)) .shm { margin-left: auto; }
#desk .shelf .shm:hover, #desk .shelf .shm:focus-visible { background: var(--hover); color: var(--ink); }
#desk .grid.lazy { display: block; background: repeating-linear-gradient(90deg, transparent 0 calc(var(--icon) + 10px), var(--grid, transparent) calc(var(--icon) + 10px) calc(var(--icon) + 28px)); opacity: .5; border-radius: 4px; }
.lqm { position: fixed; z-index: 120; min-width: 190px; background: var(--raised, var(--pane)); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--e2); padding: 4px; display: flex; flex-direction: column; font-size: 12.5px; }
.lqm button { border: 0; background: none; text-align: left; padding: 6px 10px; border-radius: 4px; color: var(--ink); }
.lqm button:hover:not(:disabled), .lqm button:focus-visible { background: var(--hover); outline: none; }
.lqm button:disabled { color: var(--ink-3); }
.lqm hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
/* Liquid menus (liquid.js): the menu waits invisible while the liquid pours into its box, then fades in
   over it and its entries drip in; leaving, it fades as the liquid spills back into what opened it. */
.lq-liquid { position: fixed; z-index: 119; pointer-events: none; transition: opacity .2s; }
.lqm.lq-menu { border-radius: 10px; opacity: 0; transform: scale(.97); transform-origin: 20% 10%; transition: opacity .22s cubic-bezier(.2,.8,.2,1), transform .3s cubic-bezier(.2,.9,.3,1.15); }
.lqm.lq-in { opacity: 1; transform: none; }
.lqm.lq-in > * { animation: lq-drip .42s cubic-bezier(.2,.9,.3,1.15) both; animation-delay: calc(var(--i, 0) * 28ms + 40ms); }
.lqm.lq-in > .mh { animation-delay: 0ms; }
.lqm.lq-leaving { opacity: 0; transform: scale(.97); transition-duration: .14s; pointer-events: none; }
@keyframes lq-drip { from { opacity: 0; transform: translateY(-6px) scale(.97); filter: blur(3px); } }
/* Hold an icon: its information card */
.lqm.info { width: 270px; max-width: calc(100vw - 16px); }
.lqm .mh { padding: 10px 10px 4px; }
.lqm .mh h4 { margin: 0 0 2px; font: 600 14px/1.25 var(--font); letter-spacing: -.005em; overflow-wrap: anywhere; }
.lqm .mh .lbl { font: 10.5px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.lqm .mh dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 10px 0 4px; font-size: 11.5px; line-height: 1.4; }
.lqm .mh dt { color: var(--ink-3); font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .04em; padding-top: 1px; }
.lqm .mh dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.lqm .mh dd i { color: var(--ink-3); font-style: normal; }
.lqm .mh .v { font: 10.5px var(--mono); color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .lqm.lq-menu, .lqm.lq-in > * { transition: none; animation: none; transform: none; } }
#dkDlg { border: 1px solid var(--line); border-radius: 8px; background: var(--pane); color: var(--ink); box-shadow: var(--e2); padding: 18px; width: min(380px, 92vw); }
#dkDlg::backdrop { background: rgba(0,0,0,.28); }
#dkDlg h3 { margin: 0 0 12px; font-size: 15px; font-weight: 500; }
#dkDlg label { display: grid; gap: 4px; font-size: 11.5px; color: var(--ink-2); margin-bottom: 10px; }
#dkDlg input, #dkDlg select { font: inherit; font-size: 13px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 8px; }
#dkDlg .hint { font-size: 11.5px; color: var(--ink-3); margin: 0 0 10px; }
#dkDlg .err { color: #C4321C; font-size: 11.5px; margin: 0 0 6px; min-height: 1em; }
#dkDlg .acts { display: flex; justify-content: flex-end; gap: 6px; }

/* ---- touch: long-press lifts an icon to drag ---- */
#dkShelves { touch-action: pan-x pan-y; }
#desk .it { -webkit-touch-callout: none; }
#desk .it.lifted .ic svg, #desk .it.lifted .ic .flat { transform: translateY(-6px) scale(1.06); filter: drop-shadow(0 8px 10px rgba(0,0,0,.18)); transition: transform .18s cubic-bezier(.2,.8,.2,1), filter .18s; }
@media (prefers-reduced-motion: reduce) { #desk .it.lifted .ic svg, #desk .it.lifted .ic .flat { transform: none; } }


/* ================================================================ project view */
#pv, #cmp { position: absolute; inset: 0; display: grid; grid-template-rows: 46px 1fr auto; background: var(--bg); }
#cmp { grid-template-rows: 46px 1fr; overflow: hidden; }
#pvTop { display: flex; align-items: center; gap: 8px; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--pane); min-width: 0; z-index: 6; }
#pvTop .spacer { flex: 1; }
.pvt { border: 0; background: none; font: 500 14px var(--font); padding: 4px 6px; border-radius: var(--r); max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
button.pvt:hover { background: var(--hover); }
#pvScn { max-width: 170px; }
#pvMain { display: grid; grid-template-columns: 84px 0 1fr 300px; min-height: 0; transition: grid-template-columns .28s cubic-bezier(.2,.8,.2,1); }
#pvMain.pane-on { grid-template-columns: 84px minmax(300px, 380px) 1fr 300px; }
#pvRail { border-right: 1px solid var(--line); background: var(--pane); overflow: auto; padding: 10px 6px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
#pvRail > .lbl { text-align: center; font-size: 9.5px; }
.ri { border: 1px solid transparent; background: none; border-radius: 6px; padding: 4px 2px 6px; display: grid; justify-items: center; gap: 2px; }
.ri:hover { background: var(--hover); }
.ri.on { border-color: var(--sel); background: var(--sel-tint); }
.ric { width: 64px; height: 54px; display: grid; place-items: end center; }
.ric svg { width: 100%; height: 100%; overflow: visible; }
.rit { font-size: 9.5px; line-height: 1.2; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: center; }
.ri.add { font-size: 20px; color: var(--ink-3); border: 1.5px dashed var(--line); height: 44px; place-items: center; }
.ri.arrive { animation: riarrive .55s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes riarrive { from { transform: translate(40px, 30px) scale(.4); opacity: 0; } }
#pvPane { overflow: hidden; border-right: 1px solid var(--line); background: var(--pane); display: flex; flex-direction: column; min-width: 0; }
.evh { display: flex; align-items: start; justify-content: space-between; gap: 8px; padding: 10px 12px 8px; border-bottom: 1px solid var(--line-2); }
.evh b { display: block; font-weight: 500; font-size: 13px; line-height: 1.3; }
.evwarn { margin: 8px 12px 0; font-size: 11.5px; color: var(--warn); background: var(--warn-tint); padding: 5px 8px; border-radius: var(--r); }
.evb { flex: 1; overflow: auto; padding: 8px; }
.evf { padding: 6px 12px 8px; border-top: 1px solid var(--line-2); font-size: 11px; color: var(--ink-3); }
.evt { border-collapse: collapse; font-size: 12px; width: 100%; }
.evt th { font: 10px var(--mono); text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 4px 6px; position: sticky; top: -8px; background: var(--pane); border-bottom: 1px solid var(--line); }
.evt td { padding: 5px 6px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.evt td.fig, .tl .fig { cursor: grab; touch-action: none; }
.evt td.fig { font-family: var(--mono); font-size: 11.5px; }
.evt td.fig:hover, .evt td.fig:focus-visible { background: var(--sel-tint); color: var(--sel); outline: 1px solid var(--sel); outline-offset: -1px; }
.evpdf { display: grid; justify-items: center; }
.pg { position: relative; box-shadow: var(--e1); background: #fff; }
.pg canvas { display: block; }
.tl { position: absolute; inset: 0; }
.tl .fig { position: absolute; border-radius: 3px; background: rgba(34,87,255,.10); outline: 1px dashed rgba(34,87,255,.55); }
.tl .fig:hover, .tl .fig:focus-visible { background: rgba(34,87,255,.22); outline-style: solid; }
.fig.lifted { opacity: .4; }
.evnav { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 8px; }
.evnav .pn { font: 11px var(--mono); color: var(--ink-3); }
.evchip { position: fixed; left: 0; top: 0; z-index: 9600; pointer-events: none; background: var(--sel); color: #fff; border-radius: 4px; padding: 4px 8px; box-shadow: var(--e2); display: grid; font-size: 13px; }
.evchip b { font: 500 14px var(--mono); }
.evchip span { font-size: 10px; opacity: .85; }
#pvCenter { position: relative; min-width: 0; overflow: hidden; }
#pvAlt { position: absolute; inset: 0; overflow: auto; background: var(--paper); padding: 28px 18px 60px; }
#pvWins { position: absolute; inset: 0; pointer-events: none; z-index: 30; }
#pvWins .win { pointer-events: auto; }

/* ----------------------------------------------------------------- canvas */
.cv { position: absolute; inset: 0; overflow: hidden; background-color: var(--paper); background-image: radial-gradient(var(--line) 1px, transparent 1.2px); background-size: 22px 22px; touch-action: none; user-select: none; -webkit-user-select: none; }
.cv[hidden], #pvAlt[hidden] { display: none; }
.cv.panning { cursor: grabbing; }
.cv.drop-here { box-shadow: inset 0 0 0 2px var(--sel); }
.cv-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.cv-links { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; color: var(--ink-2); }
.cv-links .ln { fill: none; stroke: currentColor; stroke-width: 1.4; }
.cv-links .hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; }
.cv-links .lk text { font: 10.5px var(--mono); fill: var(--ink-2); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.cv-links .lk.on { color: var(--sel); }
.cv-links .lk.on text { fill: var(--sel); }
.cv-links .tmp { fill: none; stroke: var(--sel); stroke-width: 1.6; stroke-dasharray: 5 4; }
.cv-links g.ls { pointer-events: auto; }
.cv-cards { position: absolute; left: 0; top: 0; }
.card { position: absolute; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--e1); font-size: 12.5px; outline: none; }
.card.sel { border-color: var(--sel); box-shadow: 0 0 0 1px var(--sel), var(--e2); }
.card.drop-ok, .card.link-ok { box-shadow: 0 0 0 2px var(--sel), var(--e2); background: color-mix(in srgb, var(--sel) 6%, var(--bg)); }
.card.arrive { animation: arrive .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes arrive { 40% { transform: scale(1.04); box-shadow: 0 0 0 3px var(--sel), var(--e2); } }
.card .ch { display: flex; align-items: center; gap: 6px; padding: 6px 8px 4px; }
.card .ck { font: 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.card .ct { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.assumption .ct { white-space: normal; line-height: 1.25; }
.card .gr { font: 9.5px var(--mono); border: 1px solid var(--line); border-radius: 8px; padding: 0 5px; color: var(--ink-2); }
.card .gr.g-D { border-style: dashed; }
.card .gr.g-demo { color: var(--warn); border-color: currentColor; }
.card.node .nart { display: flex; gap: 10px; align-items: center; padding: 2px 10px 6px; }
.card.node .nart svg { width: 54px; height: 32px; flex: none; color: var(--ink); }
.card.node .nart b { display: block; font-weight: 500; font-size: 14px; line-height: 1.2; }
.card.node .nart span { font-size: 11px; color: var(--ink-3); }
.card .later { margin: 0 10px 9px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 10.5px; color: var(--ink-3); }
.card .lh { position: absolute; right: -9px; top: 38px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink-2); background: var(--bg); cursor: crosshair; padding: 0; touch-action: none; }
.card .lh:hover { border-color: var(--sel); background: var(--sel-tint); }
.card.assumption .av { font: 500 26px/1.1 var(--font); padding: 2px 10px 2px; letter-spacing: -.01em; }
.card.assumption .av.unk { font-size: 16px; padding-top: 8px; font-style: italic; color: var(--ink-3); font-weight: 400; }
.card.assumption .as { width: calc(100% - 20px); margin: 4px 10px; accent-color: var(--ink); }
.card.assumption .as[data-unset] { opacity: .35; }
.card .src { padding: 5px 10px 8px; font-size: 10.5px; color: var(--ink-2); border-top: 1px solid var(--line-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .src.none { color: var(--ink-3); font-style: italic; }
.card.note { background: #FFF6C9; border-color: #EADF9F; }
:root[data-theme="dark"] .card.note { background: #3A3520; border-color: #5A5130; }
.card.note .nt { padding: 0 10px 10px; min-height: 40px; outline: none; white-space: pre-wrap; user-select: text; -webkit-user-select: text; cursor: text; font-size: 13px; }
.card.result .rs-empty { padding: 4px 10px 12px; color: var(--ink-3); font-size: 12px; }
.cv.ro .card { cursor: default; }
.cv-tools { position: absolute; left: 10px; top: 10px; z-index: 5; display: flex; gap: 2px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 3px; box-shadow: var(--e1); }
.cv-tools button { border: 0; background: none; font-size: 12px; padding: 4px 8px; border-radius: 4px; color: var(--ink); }
.cv-tools button:hover { background: var(--hover); }
.cv-tools .sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.cv-tools .zv { font: 11px var(--mono); color: var(--ink-3); min-width: 38px; text-align: center; }
.cv.ro .cv-tools [data-add] { display: none; }
.cv-marq { position: absolute; display: none; border: 1px solid var(--sel); background: var(--sel-tint); pointer-events: none; z-index: 6; }
.cv-locked { display: none; position: absolute; right: 12px; top: 12px; z-index: 5; font-size: 11.5px; background: var(--ink); color: var(--bg); padding: 4px 10px; border-radius: 12px; }
.cv.locked .cv-locked { display: block; }

/* ----------------------------------------------------------------- inspector */
#pvInsp { border-left: 1px solid var(--line); background: var(--pane); display: flex; flex-direction: column; min-height: 0; }
#pvInsp .tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 4px; }
#pvInsp .tabs button { flex: 1; border: 0; background: none; font-size: 11.5px; padding: 9px 2px 8px; color: var(--ink-2); border-bottom: 2px solid transparent; }
#pvInsp .tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.ib-body { overflow: auto; padding: 12px 14px 20px; font-size: 13px; }
.ib-body h3 { margin: 0 0 10px; font-size: 14px; font-weight: 500; }
.ib-body p { line-height: 1.5; }
.ib-body .f { display: grid; gap: 3px; margin-bottom: 10px; font-size: 11.5px; color: var(--ink-2); }
.ib-body .f input, .ib-body .f select { width: 100%; }
.ib-body .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ib-body .empty { color: var(--ink-3); line-height: 1.5; padding: 6px 0; }
.ib-body .later { font-size: 11.5px; color: var(--ink-3); border: 1px dashed var(--line); border-radius: var(--r); padding: 7px 9px; margin: 6px 0 12px; }
.ib-body .lks { padding-left: 16px; margin: 6px 0; font-size: 12px; }
.ib-body .cite { display: grid; gap: 2px; border-left: 2px solid var(--sel); padding: 4px 0 4px 9px; margin: 6px 0; font-size: 12px; }
.ib-body .cite b { font-weight: 500; }
.ib-body .cite .btn { justify-self: start; margin-top: 4px; padding-left: 0; }

/* ----------------------------------------------------------------- strip + dock */
#pvStrip { border-top: 1px solid var(--line); background: var(--pane); display: flex; align-items: center; gap: 10px; padding: 6px 10px; min-height: 84px; overflow: hidden; }
#pvStrip .scs { display: flex; gap: 8px; overflow-x: auto; flex: 1; min-width: 0; padding: 2px; }
.sc { flex: none; width: 128px; border: 1px solid var(--line); background: var(--bg); border-radius: 4px; padding: 4px 4px 3px; display: grid; gap: 2px; text-align: left; font-size: 11px; }
.sc svg { width: 100%; height: 50px; background: var(--paper); border-radius: 2px; }
.sc svg rect { fill: var(--bg); stroke: var(--ink-3); stroke-width: .6; }
.sc svg rect.t-node { fill: var(--ink); stroke: none; } .sc svg rect.t-note { fill: #F4E7A0; stroke: none; }
.sc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.sc.on { border-color: var(--sel); box-shadow: 0 0 0 1px var(--sel); }
.sc.add { width: auto; display: grid; place-items: center; padding: 0 12px; color: var(--ink-2); border-style: dashed; }
.dock { display: flex; gap: 6px; align-items: center; max-width: 45%; overflow-x: auto; }
.dock.empty { display: none; }
.dock .slot { height: 24px; min-width: 90px; max-width: 160px; border: 1px solid var(--line); background: var(--bg); font: 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 0 8px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: var(--r); }
.dock .slot.on { border-color: var(--ink); }
.dock .slot.mn { color: var(--ink-3); border-style: dashed; }

/* ----------------------------------------------------------------- windows (Things OS) */
.win { position: absolute; background: var(--bg); border: 1px solid var(--ink); box-shadow: var(--e2); display: flex; flex-direction: column; min-width: 260px; min-height: 120px; border-radius: var(--r); overflow: hidden; }
:root[data-theme="dark"] .win { border-color: var(--line); }
.win .tb { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 0 0 9px; background: var(--sunk); border-bottom: 1px solid var(--line); cursor: grab; user-select: none; touch-action: none; flex: none; }
.win.focus .tb { background: var(--ink); color: var(--bg); }
.win .tb .sq { width: 8px; height: 8px; background: currentColor; flex: none; }
.win .tb .tt { font: 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win .tb button { width: 28px; height: 28px; border: 0; border-left: 1px solid currentColor; background: transparent; font: 13px var(--mono); color: inherit; opacity: .85; }
.win .wb { flex: 1; overflow: auto; padding: 12px 14px; font-size: 13px; }
.win .rs { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, var(--line) 50%, var(--line) 60%, transparent 60%, transparent 72%, var(--line) 72%, var(--line) 82%, transparent 82%); }
.win.min { display: none; }
.win .big { font: 500 30px var(--font); }
.win ul.scl, .win ul.hist { list-style: none; padding: 0; margin: 6px 0 12px; }
.win ul.scl li, .win ul.hist li { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--line-2); }
.win ul.scl li label { flex: 1; }
.win ul.hist li span { flex: 1; font-size: 12px; }
.win dl.keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 12px; }
.pal-back { position: fixed; inset: 0; background: rgba(17,17,17,.18); z-index: 9000; display: grid; place-items: start center; padding-top: 14vh; }
.pal { width: min(560px, 92vw); background: var(--bg); border: 1px solid var(--ink); box-shadow: var(--e2); border-radius: var(--r); overflow: hidden; }
.pal input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; font-size: 16px; background: transparent; outline: none; border-radius: 0; }
.pal ul { list-style: none; margin: 0; padding: 6px 0; max-height: 50vh; overflow: auto; }
.pal li { padding: 8px 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.pal li.on { background: var(--ink); color: var(--bg); }
.pal li .k { font: 10.5px var(--mono); opacity: .6; text-transform: uppercase; }

/* ----------------------------------------------------------------- paper: story, results, report, compare */
.paper { max-width: 720px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--e1); padding: 28px 32px 32px; }
.paper h2 { font-weight: 500; font-size: 24px; letter-spacing: -.01em; margin: 6px 0 12px; }
.paper h3 { font-weight: 500; font-size: 15px; margin: 22px 0 6px; }
.paper p { line-height: 1.6; max-width: 64ch; }
.paper.story p { font-size: 15.5px; }
.paper .tok { font-family: var(--mono); background: var(--sel-tint); color: var(--sel); padding: 0 3px; border-radius: 2px; }
.paper .acts { display: flex; gap: 8px; margin-top: 18px; }
.nc { border: 1.5px solid var(--ink); border-radius: var(--r); padding: 10px 14px; margin-top: 18px; font-size: 13px; }
.nc ul { margin: 4px 0 0; padding-left: 18px; }
.frame { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 12.5px; margin-top: 18px; }
.frame dt { font: 10.5px var(--mono); text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.frame dd { margin: 0; }
#cmp .cmpb, #cmp .paper.report { overflow: auto; }
#cmp .cmpb { padding: 18px; }
#cmp > .paper { margin-top: 20px; }
.cmpt { border-collapse: collapse; width: 100%; font-size: 13px; background: var(--bg); }
.cmpt th, .cmpt td { text-align: left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid var(--line-2); }
.cmpt thead th { border-bottom: 1px solid var(--line); }
.cmpt thead th a { color: var(--ink); font-weight: 500; text-decoration: none; display: block; }
.cmpt thead th a:hover { text-decoration: underline; }
.cmpt td .hint { display: block; font-size: 11px; }
.cmpt tr.grp td { font: 10.5px var(--mono); text-transform: uppercase; color: var(--ink-3); padding-top: 16px; }
.cmpt tr.diff td:not(:first-child) { background: var(--sel-tint); }
.cmpt td.miss { color: var(--ink-3); }
.cmpt tr.hl td { background: var(--paper); }
#cmp.only .cmpt tr.same { display: none; }
#cmp .cmpt td:first-child { color: var(--ink-2); width: 22%; }

/* ----------------------------------------------------------------- phone: read, annotate, approve */
@media (max-width: 720px) {
  #pvTop { gap: 4px; padding: 0 6px; overflow-x: auto; }
  #pvTop .hide-s, #pvLevel, #pvVer { display: none; }
  .pvt { max-width: 34vw; }
  #pvMain, #pvMain.pane-on { grid-template-columns: 1fr; }
  #pvUndo, #pvRedo, #pvK { display: none; }
  #pvScn { max-width: 120px; }
  #pvRail, #pvPane, #pvInsp { display: none; }
  #pvStrip { min-height: 0; padding: 4px 6px; }
  .sc { width: 96px; } .sc svg { height: 34px; }
  #pvMode button { padding: 4px 7px; }
  .paper { padding: 18px 16px 22px; }
  #pvAlt { padding: 12px 10px 40px; }
  select, input[type=text], input:not([type]), input[inputmode], .pal input, dialog.dlg input, #desk input[type=search] { font-size: 16px; }
  .cmpt { font-size: 12px; } #cmp .cmpb { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { .ri.arrive, .card.arrive { animation: none; } #pvMain { transition: none; } }
@media print { #pvTop, #pvRail, #pvPane, #pvInsp, #pvStrip, .cv-tools { display: none !important; } #pvAlt { position: static; } body { overflow: visible; } }

/* A newer build is live (app.js checkBuild) */
.upd { position: fixed; left: 50%; top: 10px; transform: translateX(-50%); z-index: 9800; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); padding: 7px 7px 7px 14px; border-radius: 6px; font-size: 13px; box-shadow: var(--e2); max-width: calc(100% - 20px); animation: updin .3s cubic-bezier(.2,.8,.2,1); }
.upd .go { border: 0; background: var(--sel); color: #fff; font: 500 12.5px var(--font); padding: 7px 12px; border-radius: 4px; }
.upd .x { border: 0; background: none; color: inherit; opacity: .7; font-size: 16px; width: 26px; height: 26px; }
@keyframes updin { from { opacity: 0; transform: translate(-50%, -8px); } }
@media (prefers-reduced-motion: reduce) { .upd { animation: none; } }
