:root {
  /* XV brand "Rose" (docs/BRAND.md, Alan 21 Nov 2026). Light here, dark under body.xv-dark (the same switch as the editor).
     Every screen uses these tokens; the editor adds its own neutral chrome greys under .xd. */
  --bg: #FBF5F7; --bg2: #F6EBEF; --surf: #FFFFFF; --well: #F6EBEF;
  --ink: #2A0E1A; --ink2: #6B4C59; --line: #EEDCE3;
  --acc: #D92A63; --on: #FFFFFF; --tint: #FCE1EA; --link: #C42358;
  --sel: #D92A63; --sel2: #C42358;             /* selection and focus in the editor */
  --logo-ink: #2A0E1A; --logo-handle: #D92A63;
  --warn: #9A6200; --danger: #C62828; --ok-ink: #1E7F4F; --focus: #2F8F7F;   /* semantic: never rose */
  --canvas: #E8E8E8;      /* XD's pasteboard grey */
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}
body.xv-dark {
  --bg: #170A10; --bg2: #1C0D14; --surf: #221019; --well: #12080D;
  --ink: #FBEFF3; --ink2: #B898A6; --line: #3A1E2B;
  --acc: #FF5C93; --on: #2A0E1A; --tint: #4A1A2E; --link: #FF8AB0;
  --sel: #FF5C93; --sel2: #FF8AB0;
  --logo-ink: #FBEFF3; --logo-handle: #FF7AA6;
  --warn: #F0B429; --danger: #FF6B6B; --ok-ink: #4CC27E; --focus: #4FC1AE;
  color-scheme: dark;
}
@font-face { font-family: 'Schibsted Grotesk'; src: url(fonts/schibsted.woff2) format('woff2'); font-weight: 500 800; font-display: swap; }
@font-face { font-family: 'Geist'; src: url(fonts/geist.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(fonts/geist-mono.woff2) format('woff2'); font-weight: 400 500; font-display: swap; }
.xv-logo { display: block; flex: none; }
.xv-logo .lg-ink { fill: var(--logo-ink); }
.xv-logo .lg-handle { stroke: var(--logo-handle); }
.xv-logo .lg-dot { fill: var(--logo-handle); }
.xv-logo .lg-node { stroke: var(--logo-handle); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400; font-size: 15px; -webkit-font-smoothing: antialiased; }
body { display: flex; flex-direction: column; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; }
b { font-weight: 600; }

/* top bar */
.bar { height: 52px; flex: 0 0 52px; display: flex; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg); z-index: 5; }
.wordmark { background: none; border: 0; padding: 4px 2px; display: inline-flex; align-items: center; }
.xd-word { display: inline-flex; align-items: center; padding: 0 6px 0 4px; }
.bar-mid { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.bar-mid .docname { font-size: 16px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-right { display: flex; align-items: center; gap: 8px; }
.crumb { color: var(--ink2); font-size: 13px; }

.btn { background: var(--surf); border: 1px solid var(--line); border-radius: 2px; padding: 8px 14px; font-size: 15px; font-weight: 400; color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: var(--ink2); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--on); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: default; }
.icon-btn { background: none; border: 1px solid transparent; border-radius: 2px; padding: 6px 9px; color: var(--ink2); font-size: 15px; }
.icon-btn:hover { color: var(--ink); border-color: var(--line); }
.zoomlabel { min-width: 54px; text-align: center; font-size: 13px; color: var(--ink2); }

main { flex: 1; min-height: 0; position: relative; }

/* welcome */
.welcome { max-width: 640px; margin: 10vh auto; padding: 0 24px; }
.welcome h1 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 30px; margin: 0 0 16px; }
.lead { font-size: 17px; line-height: 1.6; color: var(--ink); }
.steps { line-height: 1.8; padding-left: 20px; margin: 20px 0 28px; }
.note { color: var(--warn); }

/* library */
.lib { height: 100%; overflow: auto; padding: 24px 28px 60px; }
.lib-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.lib-sort { margin-right: 4px; }
.lib-sort button { font-size: 13px; padding: 7px 12px; }
.lib-head h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 24px; margin: 0 auto 0 0; }
.search { background: var(--surf); border: 1px solid var(--line); color: var(--ink); padding: 8px 12px; border-radius: 2px; width: 240px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card { background: var(--surf); border: 1px solid var(--line); border-radius: 2px; padding: 0; text-align: left; display: flex; flex-direction: column; overflow: hidden; }
.card:hover { border-color: var(--acc); }
.card .cov { aspect-ratio: 4/3; background: var(--bg2) center/contain no-repeat; border-bottom: 1px solid var(--line); }
.card .meta { padding: 10px 12px 12px; }
.card .t { font-size: 15px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .s { font-size: 13px; color: var(--ink2); margin-top: 3px; }
.empty { color: var(--ink2); padding: 40px 0; font-size: 17px; }

/* document */
.doc { display: grid; grid-template-columns: 230px 1fr 280px; height: 100%; }
.side { background: var(--bg); border-right: 1px solid var(--line); overflow: auto; min-height: 0; }
.side.right { border-right: 0; border-left: 1px solid var(--line); }
.side h3 { font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); margin: 0; padding: 14px 14px 8px; border-top: 1px solid var(--line); }
.side h3:first-child { border-top: 0; }
.ablist { list-style: none; margin: 0; padding: 0 0 20px; }
.ablist li { padding: 6px 14px; font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.ablist li:hover { background: var(--surf); }
.ablist li.sel { background: var(--bg2); color: var(--acc); }
.ablist li.pb { color: var(--ink2); font-style: italic; }
.filter { margin: 4px 12px 8px; width: calc(100% - 24px); background: var(--surf); border: 1px solid var(--line); color: var(--ink); padding: 6px 9px; font-size: 13px; border-radius: 2px; }

.panel { padding: 4px 14px 16px; font-size: 13px; line-height: 1.55; }
.panel .big { font-size: 15px; font-weight: 400; margin-bottom: 4px; word-break: break-word; }
.panel .dim { color: var(--ink2); }
.row { display: flex; gap: 6px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.seg button { background: var(--surf); border: 0; border-right: 1px solid var(--line); padding: 6px 11px; font-size: 13px; color: var(--ink2); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--ink); color: var(--bg); font-weight: 500; }
label.check { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 8px 0; cursor: pointer; }
.fontlist { list-style: none; padding: 0; margin: 0; }
.fontlist li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.ok { color: var(--ok-ink); } .warn { color: var(--warn); } .bad { color: var(--danger); }
.hint { color: var(--ink2); font-size: 13px; margin-top: 10px; font-style: italic; }

/* canvas */
.canvas { position: relative; overflow: hidden; background: var(--canvas); cursor: default; touch-action: none; }
.canvas.panning, .canvas.space { cursor: grab; }
.canvas.panning:active { cursor: grabbing; }
.world { position: absolute; inset: 0; }
.ab { position: absolute; left: 0; top: 0; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.ab > img.thumb { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: auto; pointer-events: none; user-select: none; }
.ab > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ab.pb { background: transparent; box-shadow: none; opacity: .9; }
.ab .lbl { position: absolute; left: 0; bottom: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #6e6e6e; transform-origin: 0 100%; pointer-events: auto; cursor: pointer; font-size: 13px; padding-bottom: 4px; }
.ab.sel { box-shadow: 0 0 0 2px var(--acc); }
.ab.sel .lbl { color: var(--acc); }
.ab.focus { box-shadow: 0 0 0 2px var(--focus); }
.overlay { position: absolute; inset: 0; pointer-events: none; }
.selbox { position: absolute; border: 1.5px solid var(--acc); }
.selbox.hover { border: 1px solid rgba(255,125,87,.55); }
.scopebox { position: absolute; border: 1px dashed var(--focus); }
.focusbar { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: var(--surf); border: 1px solid var(--line); padding: 7px 12px; font-size: 13px; color: var(--ink); border-radius: 2px; pointer-events: auto; white-space: nowrap; }
.focusbar b { color: var(--focus); }

/* modal + toast */
.modal { position: fixed; inset: 0; background: rgba(23,10,16,.5); display: flex; align-items: center; justify-content: center; z-index: 20; }
.modal-box { background: var(--bg); border: 1px solid var(--line); width: min(720px, 92vw); max-height: 86vh; overflow: auto; padding: 24px; border-radius: 2px; }
.modal-box h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 22px; margin: 0 0 14px; }
.filelist { list-style: none; padding: 0; margin: 10px 0 18px; max-height: 46vh; overflow: auto; border-top: 1px solid var(--line); }
.filelist li { display: flex; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.filelist li .st { margin-left: auto; font-size: 13px; color: var(--ink2); white-space: nowrap; }
.progress { height: 4px; background: var(--bg2); margin: 6px 0 4px; }
.progress > div { height: 100%; background: var(--acc); width: 0; transition: width .2s; }
.log { font-size: 13px; color: var(--ink2); max-height: 160px; overflow: auto; white-space: pre-wrap; margin-top: 10px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; font-size: 15px; z-index: 30; border-radius: 2px; max-width: 80vw; }
[hidden] { display: none !important; }
.canvas:focus { outline: none; }
/* the canvas (pasteboard): only the drawings themselves catch clicks; empty canvas still drags */
.ab.pb, .ab.pb > svg, .ab.pb > img.thumb { pointer-events: none; }
.ab.pb > svg g.content * { pointer-events: visiblePainted; }

/* =================== Editor (XD-style, light) =================== */
body.editing { background: #E6E1E3; }
body.editing > .bar { display: none; }
.xd {
  --chrome: #F8F6F7; --panel: #FBFAFA; --edge: #E6E0E3; --ink: #2B2327; --ink2: #6F6469; --ink3: #9C9296;
  --hover: #EFEAEC; --field: #FFFFFF; --fieldEdge: #D8D0D4;
  position: absolute; inset: 0; display: flex; flex-direction: column; color: var(--ink); font-size: 13px; font-weight: 400;
  -webkit-font-smoothing: antialiased; user-select: none;
}
.xd button { color: inherit; }
.xd-top { height: 44px; flex: 0 0 44px; display: flex; align-items: center; gap: 10px; padding: 0 10px; background: var(--chrome); border-bottom: 1px solid var(--edge); }
.xd-ico { background: none; border: 0; padding: 6px; border-radius: 4px; color: var(--ink2); display: flex; }
.xd-ico:hover { background: var(--hover); color: var(--ink); }
.xd-title { flex: 1; text-align: center; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.xd-status { font-size: 12px; color: var(--ink3); min-width: 56px; text-align: right; }
.xd-status.busy { color: var(--sel); }
.xd-zoom { font-family: var(--mono); background: var(--field); border: 1px solid var(--fieldEdge); border-radius: 4px; padding: 3px 8px; font-size: 12px; min-width: 58px; color: var(--ink2); }
.xd-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 48px 230px 1fr 252px; }
.xd.no-layers .xd-body { grid-template-columns: 48px 1fr 252px; }
.xd.no-layers.no-insp .xd-body { grid-template-columns: 48px 1fr; }
.xd.no-insp .xd-insp { display: none; }
.xd-ico.on { color: var(--sel); }
.xd.no-layers .xd-layers { display: none; }
.xd-rail { background: var(--chrome); border-right: 1px solid var(--edge); display: flex; flex-direction: column; align-items: center; padding: 8px 0; gap: 2px; }
.xd-tool { width: 36px; height: 34px; border: 0; background: none; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--ink2); }
.xd-tool svg { width: 18px; height: 18px; }
.xd-tool:hover { background: var(--hover); color: var(--ink); }
.xd-tool.on { color: var(--sel); background: var(--tint); }
.xd-rail-gap { flex: 1; }
.xd-layers { background: var(--panel); border-right: 1px solid var(--edge); overflow: auto; min-height: 0; }
.lay-head { display: flex; align-items: center; gap: 6px; padding: 12px 12px 8px; font-size: 11px; letter-spacing: .08em; color: var(--ink2); font-weight: 500; white-space: nowrap; overflow: hidden; }
.lay-head span { overflow: hidden; text-overflow: ellipsis; }
.lay-head .dim { color: var(--ink3); font-weight: 400; }
.lay-back { border: 0; background: none; font-size: 18px; line-height: 1; padding: 0 4px; color: var(--ink2); border-radius: 3px; }
.lay-back:hover { background: var(--hover); }
.lay-filter { margin: 0 10px 6px; width: calc(100% - 20px); background: var(--field); border: 1px solid var(--fieldEdge); border-radius: 4px; padding: 5px 8px; font-size: 12px; color: var(--ink); user-select: text; }
.lay-list { list-style: none; margin: 0; padding: 0 0 20px; }
.lay-list li { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; font-size: 13px; cursor: default; white-space: nowrap; border-top: 1px solid transparent; border-bottom: 1px solid transparent; }
.lay-list li:hover { background: var(--hover); }
.lay-list li.sel { background: var(--tint); color: var(--sel2); }
.lay-list li.pb { color: var(--ink3); font-style: italic; }
.lay-list li.hid .nm { opacity: .45; }
.lay-list .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.lay-list .kind { width: 14px; text-align: center; color: var(--ink3); font-size: 11px; }
.lay-list .eye { border: 0; background: none; color: var(--ink3); padding: 0 2px; visibility: hidden; font-size: 12px; }
.lay-list li:hover .eye, .lay-list li.hid .eye { visibility: visible; }
.lay-rename { flex: 1; font: inherit; padding: 1px 4px; border: 1px solid var(--sel); border-radius: 2px; min-width: 0; user-select: text; }

.xd .canvas { background: var(--canvasBg, #E6E1E3); outline: none; }
.xd .canvas[data-tool=rect], .xd .canvas[data-tool=ellipse], .xd .canvas[data-tool=polygon], .xd .canvas[data-tool=line], .xd .canvas[data-tool=pen], .xd .canvas[data-tool=artboard] { cursor: crosshair; }
.xd .canvas[data-tool=text] { cursor: text; }
.xd .canvas[data-tool=zoom] { cursor: zoom-in; }
.xd .canvas.space, .xd .canvas.panning { cursor: grab; }
.xd .ab { box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.12); }
.xd .ab.pb { box-shadow: none; opacity: 1; }
.xd .ab .lbl { color: #707070; font-size: 12px; cursor: default; }
.ov-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.xd .overlay > * { position: absolute; }
.sel-board { outline: 1px solid var(--sel); }
.hoverbox { border: 1px solid var(--sel); }
.scopebox { border: 1px dashed #8DB6EF; }
.selbox { border: 1px solid var(--sel); }
.hdl { position: absolute; width: 8px; height: 8px; background: #fff; border: 1px solid var(--sel); pointer-events: auto; margin: -4.5px 0 0 -4.5px; }
.hdl-nw { left: 0; top: 0; cursor: nwse-resize; } .hdl-n { left: 50%; top: 0; cursor: ns-resize; } .hdl-ne { left: 100%; top: 0; cursor: nesw-resize; }
.hdl-e { left: 100%; top: 50%; cursor: ew-resize; } .hdl-se { left: 100%; top: 100%; cursor: nwse-resize; } .hdl-s { left: 50%; top: 100%; cursor: ns-resize; }
.hdl-sw { left: 0; top: 100%; cursor: nesw-resize; } .hdl-w { left: 0; top: 50%; cursor: ew-resize; }
.rot { position: absolute; width: 16px; height: 16px; pointer-events: auto;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M17.6 6.4A8 8 0 1 0 20 12M20 4.5v4.6h-4.6' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linejoin='round'/%3E%3Cpath d='M17.6 6.4A8 8 0 1 0 20 12M20 4.5v4.6h-4.6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 12 12, crosshair; }
.rot-nw { left: -18px; top: -18px; } .rot-ne { right: -18px; top: -18px; } .rot-se { right: -18px; bottom: -18px; } .rot-sw { left: -18px; bottom: -18px; }
.dimtag { transform: translateX(-50%); background: var(--sel); color: #fff; font: 500 11px var(--mono); padding: 2px 6px; border-radius: 3px; white-space: nowrap; }
.canvas.pen-closing { cursor: pointer; }
.guide { background: #FF2D9B; pointer-events: none; z-index: 4; }
.guide-x { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; pointer-events: none; z-index: 4;
  background: linear-gradient(45deg, transparent 43%, #FF2D9B 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, #FF2D9B 43% 57%, transparent 57%); }
.marquee { border: 1px solid var(--sel); background: rgba(217,42,99,.08); }
.ghost { border: 1px solid var(--sel); }
.canvas[data-tool=ellipse] .ghost { border-radius: 50%; }
.text-edit { position: absolute; z-index: 5; background: transparent; border: 0; outline: 1px solid var(--sel); padding: 0; margin: 0; resize: none; overflow: hidden; white-space: pre; user-select: text; caret-color: var(--sel); }

/* inspector */
.xd-insp { background: var(--panel); border-left: 1px solid var(--edge); overflow: auto; min-height: 0; padding-bottom: 30px; }
.is-title { padding: 14px 14px 6px; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is { padding: 8px 14px 10px; border-bottom: 1px solid var(--edge); }
.is-h { font-size: 11px; letter-spacing: .08em; color: var(--ink2); font-weight: 500; margin: 2px 0 8px; }
.is-row { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.is-sub { font-size: 11px; color: var(--ink3); margin: 8px 0 -2px; }
.is-hint { font-size: 12px; color: var(--ink3); line-height: 1.45; margin-top: 6px; }
.is-hint.warn { color: #C46A00; }
.is-dim { color: var(--ink2); font-size: 12px; margin: 2px 0; }
.fld { display: flex; align-items: center; flex: 1; min-width: 0; background: var(--field); border: 1px solid var(--fieldEdge); border-radius: 4px; height: 26px; padding: 0 6px; gap: 4px; }
.fld:focus-within { border-color: var(--sel); }
.fld.wide { flex: 2; }
.fl { color: var(--ink3); font-size: 11px; white-space: nowrap; }
.num, .txt, .hex { border: 0; outline: 0; background: none; font: inherit; font-size: 12px; color: var(--ink); min-width: 0; width: 100%; padding: 0; user-select: text; }
.sfx { color: var(--ink3); font-size: 11px; }
.txt { flex: 1; background: var(--field); border: 1px solid var(--fieldEdge); border-radius: 4px; height: 26px; padding: 0 8px; }
.txt:focus { border-color: var(--sel); }
.colrow { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.colrow .fld { flex: 0 0 64px; }
.sw { width: 28px; height: 26px; border: 1px solid var(--fieldEdge); border-radius: 4px; padding: 2px; background: var(--field); cursor: pointer; }
.sw::-webkit-color-swatch-wrapper { padding: 0; } .sw::-webkit-color-swatch { border: 0; border-radius: 2px; }
.hash { color: var(--ink3); margin-right: -4px; }
.hex { flex: 1; background: var(--field); border: 1px solid var(--fieldEdge); border-radius: 4px; height: 26px; padding: 0 6px; text-transform: uppercase; }
.hex:focus { border-color: var(--sel); }
.ck { display: flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; flex: 1; }
.ck input { accent-color: var(--sel); margin: 0; }
.xd .seg, .modal .seg { display: inline-flex; border: 1px solid var(--fieldEdge); border-radius: 4px; overflow: hidden; background: var(--field); }
.xd .seg button { border: 0; border-right: 1px solid var(--fieldEdge); background: none; padding: 4px 10px; font-size: 12px; color: var(--ink2); display: flex; align-items: center; }
.xd .seg button:last-child { border-right: 0; }
.xd .seg button.on { background: var(--tint); color: var(--sel2); font-weight: 500; }
.xd .seg.sm button { padding: 4px 7px; font-size: 11px; }
.xd .seg.icons button { padding: 3px 8px; }
.ib { border: 1px solid transparent; background: none; border-radius: 4px; width: 28px; height: 26px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); flex: 0 0 auto; }
.ib:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
.ib.on { color: var(--sel); background: var(--tint); }
.ib:disabled { opacity: .35; }
.aligns { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.aligns .sep { width: 1px; height: 18px; background: var(--edge); margin: 0 4px; }
.sel-sm { font: inherit; font-size: 12px; height: 26px; border: 1px solid var(--fieldEdge); border-radius: 4px; background: var(--field); color: var(--ink); padding: 0 4px; flex: 1; min-width: 0; }
.sel-sm.wide { width: 100%; }
.xd .btn { background: var(--field); border: 1px solid var(--fieldEdge); color: var(--ink); font-size: 13px; padding: 6px 12px; border-radius: 4px; }
.xd .btn:hover { border-color: #B5B5B5; }
.xd .btn.primary { background: var(--sel); border-color: var(--sel); color: #fff; font-weight: 500; }
.xd .btn.primary:hover { background: var(--sel2); }
.xd .btn.small { font-size: 12px; padding: 5px 10px; }
.xd .btn.wide { flex: 1; }
.xd .fontlist li { border-bottom: 1px solid var(--edge); font-size: 12px; padding: 4px 0; }
.xd .ok { color: #2D9D5B; } .xd .bad { color: #D7373F; }
table.keys { border-collapse: collapse; width: 100%; font-size: 14px; }
table.keys td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.keys td:first-child { color: var(--ink2); width: 42%; }
.aligns .ib { width: 26px; height: 30px; }
.aligns .ib svg { width: 18px; height: 18px; }
.is-row .ib svg { width: 16px; height: 16px; }
.is-lab { font-size: 11px; color: var(--ink3); width: 50px; flex: 0 0 50px; }
.arrange { margin-top: 6px; }
.arr-lab { font-size: 11px; color: var(--ink3); margin-left: 6px; }
.ctx-menu { position: fixed; z-index: 40; background: #fff; border: 1px solid #DDD3D8; border-radius: 6px; box-shadow: 0 6px 24px rgba(42,14,26,.16); padding: 4px 0; min-width: 220px; font-size: 13px; color: #2B2327; }
.ctx-item { display: flex; justify-content: space-between; gap: 18px; width: 100%; border: 0; background: none; padding: 6px 14px; text-align: left; font: inherit; color: inherit; }
.ctx-item:hover:not(:disabled) { background: var(--sel); color: #fff; }
.ctx-item:disabled { color: #B5B5B5; }
.ctx-key { color: #9A9A9A; font-size: 12px; }
.ctx-item:hover:not(:disabled) .ctx-key { color: rgba(255,255,255,.75); }
.ctx-sep { height: 1px; background: #E4E4E4; margin: 4px 0; }

/* combined shapes: the original shapes are hidden, and only clickable while you're inside */
g.bool-src { pointer-events: none; }
g.bool-src.in-scope { pointer-events: painted; }

/* rename by double-clicking the name at the top of the right panel */
.is-title.editable { cursor: text; border-radius: 4px; margin: 8px 8px 0; padding: 6px 6px 4px; }
.is-title.editable:hover { background: var(--hover); }
.is-rename { display: block; width: 100%; box-sizing: border-box; font: inherit; font-weight: 500; font-size: 13px; color: var(--ink); background: var(--field); border: 1px solid var(--sel); border-radius: 3px; padding: 2px 5px; margin: -3px 0; outline: none; }

/* tabs: several designs open at once (14 Nov 2026) */
.tabs { flex: 0 0 34px; height: 34px; display: flex; align-items: flex-end; gap: 2px; padding: 0 8px; background: #ECE5E8; border-bottom: 1px solid #D8CDD2; overflow-x: auto; scrollbar-width: none; }
.tabs[hidden] { display: none; }
.tab { display: flex; align-items: center; gap: 6px; height: 28px; max-width: 220px; min-width: 0; padding: 0 8px 0 12px; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; background: transparent; color: #444; font: 400 13px var(--font); cursor: default; flex: 0 1 auto; }
.tab:hover { background: #F3EEF0; }
.tab.on { background: #F8F6F7; border-color: #D8CDD2; color: #2B2327; height: 29px; margin-bottom: -1px; }
.tab .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab .x { width: 18px; height: 18px; line-height: 17px; text-align: center; border-radius: 3px; color: #777; font-size: 15px; flex: 0 0 18px; }
.tab .x:hover { background: #D0D0D0; color: #111; }
.tab.home { padding-right: 12px; flex: 0 0 auto; }
.tab.home span { display: flex; }
.libbox, .tabbox { position: absolute; inset: 0; }
.libbox[hidden], .tabbox[hidden] { display: none; }

/* home screen card menu */
.card { position: relative; cursor: pointer; }
.card:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.card-more { position: absolute; top: 8px; right: 8px; width: 30px; height: 26px; border-radius: 3px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surf) 90%, transparent); color: var(--ink); font-size: 16px; line-height: 1; opacity: 0; transition: opacity .12s; }
.card:hover .card-more, .card:focus-within .card-more { opacity: 1; }
/* folders on the home screen (js/folders.js): one level */
.lib-fold { display: flex; align-items: center; gap: 6px; }
.lib-head h2 { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.crumb-up { background: none; border: 0; padding: 0; font: inherit; color: var(--ink2); cursor: pointer; border-bottom: 2px solid transparent; }
.crumb-up:hover { color: var(--acc); }
.crumb-up.drop { color: var(--acc); border-bottom-color: var(--acc); }
.crumb-sep { color: var(--ink2); font-weight: 400; }
.crumb-here { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fold-more { font-size: 18px; line-height: 1; padding: 4px 9px; }
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 22px; }
.folders[hidden] { display: none; }
.folder-tile { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 44px 14px 14px; background: var(--surf);
  border: 1px solid var(--line); border-radius: 2px; cursor: pointer; color: var(--ink); }
.folder-tile > .ico { color: var(--acc); flex: none; }
.folder-tile .ft { display: flex; flex-direction: column; min-width: 0; }
.folder-tile .t { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-tile .s { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.folder-tile:hover { border-color: var(--acc); }
.folder-tile:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.folder-tile .card-more { top: 50%; transform: translateY(-50%); }
.folder-tile:hover .card-more, .folder-tile:focus-within .card-more { opacity: 1; }
.folder-tile.drop { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, var(--surf)); outline: 2px solid var(--acc); outline-offset: -1px; }
.card.dragging { opacity: .45; }
.card .s.in { display: none; align-items: center; gap: 4px; }
.grid.searching .card .s.in { display: flex; }
.move-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; }
.move-pick { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; background: var(--surf);
  border: 1px solid var(--line); border-radius: 2px; color: var(--ink); font-size: 15px; cursor: pointer; }
.move-pick > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.move-pick:hover:not(:disabled) { border-color: var(--acc); }
.move-pick:disabled { cursor: default; opacity: .7; }
.move-pick .ico { color: var(--ink2); }
.move-pick.new { color: var(--acc); }
.move-pick.new .ico { color: var(--acc); }
.ctx-item.danger { color: var(--danger); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.note.warn { color: var(--warn); min-height: 1.2em; }

/* =================== Canvas colour swatches (right-click menu) =================== */
.ctx-swatches { display: flex; align-items: center; gap: 5px; padding: 6px 14px 4px; }
.ctx-sw-label { flex: 1; color: inherit; opacity: .75; margin-right: 6px; white-space: nowrap; }
.ctx-sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); padding: 0; flex: none; cursor: pointer; position: relative; overflow: hidden; }
.ctx-sw.std { background: linear-gradient(135deg, #E4E4E4 50%, #1E1E1E 50%); }
.ctx-sw.on { box-shadow: 0 0 0 2px var(--sel); }
.ctx-sw.pick { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.ctx-sw.pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }

/* =================== Dark interface (body.xv-dark) =================== */
body.xv-dark .xd {
  --chrome: #221C1F; --panel: #1F1A1C; --edge: #3A2F34; --ink: #EDE6E9; --ink2: #B0A4A9; --ink3: #82767B;
  --hover: #33292E; --field: #1A1517; --fieldEdge: #4A3D43;
  --canvasBg: #171315; color-scheme: dark;
}
body.xv-dark.editing { background: #171315; }
body.xv-dark .xd-tool.on, body.xv-dark .ib.on, body.xv-dark .xd .seg button.on { background: rgba(255,92,147,.18); }
body.xv-dark .lay-list li.sel { background: rgba(255,92,147,.2); }
body.xv-dark .xd .ab { box-shadow: 0 0 0 .5px rgba(255,255,255,.10), 0 2px 8px rgba(0,0,0,.5); }
body.xv-dark .xd .ab .lbl { color: #9A9A9A; }
body.xv-dark .xd .btn:hover { border-color: #6E5F66; }
body.xv-dark .is-hint.warn { color: #F0A245; }
body.xv-dark .xd .ok { color: #4CC27E; } body.xv-dark .xd .bad { color: #FF6B6B; }
body.xv-dark .ctx-menu { background: #2A2226; border-color: #463A40; color: #EDE6E9; box-shadow: 0 8px 28px rgba(0,0,0,.5); }
body.xv-dark .ctx-item:disabled { color: #666; }
body.xv-dark .ctx-key { color: #8A8A8A; }
body.xv-dark .ctx-sep { background: #3A2F34; }
body.xv-dark .ctx-sw { border-color: rgba(255,255,255,.3); }
body.xv-dark .tabs { background: #140F11; border-bottom-color: #33292E; color: #C2B6BB; }
body.xv-dark .tab { color: #C2B6BB; }
body.xv-dark .tab:hover { background: #221C1F; }
body.xv-dark .tab.on { background: #221C1F; border-color: #3A2F34; color: #F3EDEF; }
body.xv-dark .tab .x { color: #999; }
body.xv-dark .tab .x:hover { background: #3A2F34; color: #FFF; }

/* =================== Accounts: sign in, account, connect (Phase 1) =================== */
.scroll { position: absolute; inset: 0; overflow: auto; }
.ico { display: inline-flex; vertical-align: -3px; }
.btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn.wide { width: 100%; justify-content: center; padding: 11px 14px; }
.btn:focus-visible, .input:focus-visible, .app:focus-visible, .start:focus-visible, a:focus-visible, .avatar-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
a { color: var(--link); }
.dim { color: var(--ink2); }
.small { font-size: 13px; }

/* sign in / create account / signed out */
.auth { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-mark { margin-bottom: 30px; }
.auth h1 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 30px; margin: 0 0 10px; }
.auth-lead { font-size: 16px; line-height: 1.55; color: var(--ink2); margin: 0 0 26px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-swap { margin: 6px 0 0; font-size: 15px; color: var(--ink2); text-align: center; }
.auth-actions { margin-top: 8px; }
.auth-forgot { align-self: flex-start; font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.linkbtn:disabled { color: var(--ink2); cursor: default; }
.auth-form .input.code { font-family: var(--mono); font-size: 22px; letter-spacing: 0.3em; max-width: 220px; }
.auth-form .field-hint .linkbtn { font-size: 13px; }
.auth-foot { margin-top: 40px; font-size: 13px; color: var(--ink2); }
body.signed-out .bar { border-bottom-color: transparent; }
body.signed-out .wordmark { visibility: hidden; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--ink2); font-weight: 400; }
.field-hint { font-size: 13px; color: var(--ink2); }
.field-hint.ok { color: var(--ok-ink); }
.input { width: 100%; background: var(--surf); border: 1px solid var(--line); color: var(--ink); padding: 10px 12px; border-radius: 2px; font-size: 16px; min-height: 44px; }
.input:focus { border-color: var(--ink2); outline: none; }
.input.mono { font-family: var(--mono); font-size: 14px; }
.pw { position: relative; }
.pw .input { padding-right: 46px; }
.pw-eye { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 42px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--ink2); }
.pw-eye:hover { color: var(--ink); }
.form-err { margin: 0; min-height: 0; color: var(--danger); font-size: 15px; line-height: 1.45; }
.form-err:empty { display: none; }
.reauth { max-width: 400px; }
.reauth h2 { margin-bottom: 6px !important; }
.reauth .auth-form { margin-top: 16px; }

/* top bar on the home screens */
.avatar-btn { background: none; border: 0; padding: 2px; border-radius: 50%; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--line); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: 14px; }
.avatar-btn:hover .avatar { border-color: var(--ink2); }
.connect-btn { border-color: var(--acc); color: var(--link); }
.connect-btn:hover { background: color-mix(in srgb, var(--acc) 12%, transparent); border-color: var(--acc); }
.connect-btn.glow { box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent); }
.acct-menu { min-width: 240px; }
.acct-who { padding: 8px 14px 10px; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid rgba(0,0,0,.08); margin-bottom: 4px; }
.acct-who b { font-weight: 500; } .acct-who span { font-size: 12px; opacity: .7; }
body.xv-dark .acct-who { border-bottom-color: #3A2F34; }

/* pages (account, connect) */
.page { max-width: 760px; margin: 0 auto; padding: 28px 24px 80px; display: flex; flex-direction: column; gap: 18px; }
.page-head { margin-bottom: 6px; }
.page-head h1 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 32px; margin: 10px 0 8px; }
.page-lead { font-size: 17px; line-height: 1.55; color: var(--ink2); margin: 0; max-width: 620px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink2); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--ink); }
.pcard { background: var(--surf); border: 1px solid var(--line); border-radius: 2px; padding: 20px 22px 22px; }
.pcard > h2 { font-weight: 600; font-size: 18px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.pcard p { line-height: 1.55; margin: 0 0 12px; }
.facts { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.facts dt { color: var(--ink2); } .facts dd { margin: 0; word-break: break-all; }
.pill { display: inline-block; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.pform { display: flex; flex-direction: column; gap: 14px; max-width: 400px; }
.pactions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.danger-outline { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.danger-outline:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.confirm h2 { text-transform: none !important; letter-spacing: 0 !important; font-size: 22px !important; }
.confirm .field { margin-top: 14px; }
.conseq { padding-left: 20px; line-height: 1.7; margin: 8px 0 4px; }
.modal-box .form-err { margin-top: 10px; }

/* connect */
.stepnum { width: 28px; height: 28px; border-radius: 50%; background: var(--acc); color: var(--on); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.app:hover { border-color: var(--ink2); }
.app.on { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.app-n { font-size: 16px; font-weight: 400; }
.app-s { font-size: 13px; color: var(--ink2); }
.linkrow { display: flex; gap: 8px; }
.linkrow .input { flex: 1; min-width: 0; }
.linkrow .btn { flex: none; }
.makeform .dim { margin-bottom: 12px; }
.callout { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--warn); background: var(--bg); line-height: 1.5; font-size: 15px; }
.testrow { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.test-res { font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.test-res.ok { color: var(--ok-ink); } .test-res.bad { color: var(--danger); }
.linkish { background: none; border: 0; padding: 0; margin-top: 14px; color: var(--ink2); text-decoration: underline; font-size: 14px; }
.linkish:hover { color: var(--ink); }
.howto { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; line-height: 1.55; font-size: 16px; }
.howto li::marker { color: var(--ink2); }
.howto b { font-weight: 500; }
.notes { margin: 18px 0 0; padding: 12px 14px 12px 32px; background: var(--bg); line-height: 1.5; font-size: 14px; color: var(--ink2); display: flex; flex-direction: column; gap: 6px; }
.chip { margin-left: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 13px; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; vertical-align: 1px; }
.chip:hover, .chip.done { border-color: var(--acc); }
.code { position: relative; margin-top: 8px; background: var(--well); border: 1px solid var(--line); border-radius: 2px; }
.code pre { margin: 0; padding: 12px 90px 12px 14px; font: 13px/1.55 var(--mono); color: var(--ink); white-space: pre-wrap; word-break: break-all; }
.code .copy { position: absolute; top: 7px; right: 7px; }
.btn.done, .chip.done { color: var(--ok-ink); }
.btn.primary.done { color: var(--on); }
.tries { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tries li { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); padding: 10px 8px 10px 14px; line-height: 1.5; }
.tries li span { flex: 1; }
.links { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 10px; }
.links th { text-align: left; font-weight: 400; color: var(--ink2); font-size: 13px; padding: 0 8px 8px 0; border-bottom: 1px solid var(--line); }
.links td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); }
.links td:last-child { text-align: right; padding-right: 0; }

/* home screen: first run, nudge, drop */
.first { max-width: 880px; margin: 6vh auto 0; text-align: center; }
.first h1 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 34px; margin: 0 0 10px; }
.first .lead { color: var(--ink2); margin: 0 auto 32px; max-width: 640px; }
.starts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; text-align: left; }
.start { background: var(--surf); border: 1px solid var(--line); border-radius: 2px; padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 8px; min-height: 180px; }
.start:hover { border-color: var(--ink2); }
.start.ai { border-color: var(--acc); }
.start.ai .start-ico { color: var(--acc); }
.start-ico { color: var(--ink); margin-bottom: 10px; }
.start-t { font-size: 18px; font-weight: 600; }
.start-s { font-size: 14px; line-height: 1.5; color: var(--ink2); }
.nudge { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; margin-bottom: 20px; border: 1px solid var(--line); border-left: 3px solid var(--acc); background: var(--surf); font-size: 15px; }
.nudge > span:nth-child(2) { flex: 1; }
.nudge .ico { color: var(--acc); }
.drophint { position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.drophint > div { border: 2px dashed var(--acc); padding: 40px 56px; display: flex; flex-direction: column; align-items: center; gap: 12px; background: var(--bg); color: var(--ink); font-size: 18px; }
.drophint b { font-weight: 400; }

/* narrow screens (phone, small tablet) */
@media (max-width: 720px) {
  .bar { gap: 8px; padding: 0 10px; }
  .hide-sm { display: none; }
  .bar .btn .lbl { display: none; }
  .bar .btn { padding: 8px 10px; }
  .crumb { display: none; }
  .lib { padding: 18px 16px 60px; }
  .search { width: 100%; }
  .page { padding: 20px 16px 60px; }
  .page-head h1 { font-size: 26px; }
  .pcard { padding: 16px; }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; }
  .linkrow { flex-direction: column; }
  .linkrow .btn { justify-content: center; }
  .links thead { display: none; }
  .links tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .links td { border: 0; padding: 2px 0; }
  .links td:nth-child(2), .links td:nth-child(3) { grid-column: 1; color: var(--ink2); font-size: 13px; }
  .links td:nth-child(2)::before, .links td:nth-child(3)::before { content: attr(data-k) ': '; }
  .links td:last-child { grid-row: 1 / span 3; grid-column: 2; align-self: center; }
  .first h1 { font-size: 26px; }
  .nudge { flex-wrap: wrap; }
}
.modal-box:has(> .confirm), .modal-box:has(> .reauth) { width: min(480px, 92vw); }
.reauth h2 { text-transform: none !important; letter-spacing: 0 !important; font-size: 22px !important; }

/* XV tokens bar (account + connect pages) */
.tokens { display: flex; flex-direction: column; gap: 10px; }
.tokens.compact { background: var(--surf); border: 1px solid var(--line); padding: 14px 18px; }
.tok-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.tok-t { font-weight: 400; }
.tok-n { color: var(--ink2); font-variant-numeric: tabular-nums; }
.tok-bar { height: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.tok-fill { height: 100%; background: var(--acc); transition: width .4s; }
.tok-bar.low .tok-fill { background: var(--warn); }
.tok-bar.out .tok-fill { background: var(--danger); }
.tok-say { margin: 0; font-size: 15px; line-height: 1.5; }
.tok-say.low b { color: var(--warn); } .tok-say.out b { color: var(--danger); }
.tok-extra { margin: 0; font-size: 14px; color: var(--ink2); }
.tok-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tok-actions .soon { font-size: 13px; color: var(--ink2); }
.tok-how { margin: 0 !important; font-size: 14px; color: var(--ink2); line-height: 1.5; }
.plan-more { margin: 14px 0 0 !important; }

/* dark editor: primary buttons take the dark rose with plum text (brand: --on on --acc) */
body.xv-dark .xd .btn.primary { background: var(--sel); border-color: var(--sel); color: #2A0E1A; }
body.xv-dark .xd .btn.primary:hover { background: var(--sel2); }
body.xv-dark .dimtag { color: #2A0E1A; }
body.xv-dark .ctx-item:hover:not(:disabled) { color: #2A0E1A; }
body.xv-dark .ctx-item:hover:not(:disabled) .ctx-key { color: rgba(42,14,26,.7); }
.ov-svg { color: var(--sel); }
.num { font-family: var(--mono); }   /* inspector numbers (W, H, X, Y…) in Geist Mono */

/* the typed name, shown only if the logo files are missing (js/brand.js) */
.wordmark-text { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: var(--logo-ink); white-space: nowrap; display: inline-block; padding-bottom: .08em; }
.wordmark-text .wm-x { color: var(--logo-handle); }
.wm { display: inline-flex; align-items: center; height: var(--wm-h); }
.wm-img { height: var(--wm-h); width: auto; display: block; }
.wm .wm-dark, .wm .wordmark-text { display: none; }
body.xv-dark .wm .wm-light { display: none; }
body.xv-dark .wm .wm-dark { display: block; }
.wm.wm-missing .wm-img { display: none !important; }
.wm.wm-missing .wordmark-text { display: inline-block; }
.xd-home { padding: 5px 6px; }
.xd-home:hover { background: var(--hover); }
.xd .xd-word { margin-left: 10px; }   /* air between the X (home button) and the words */

/* plan / free trial (js/plan.js): banner, plans on the Account page, read-only editor, locked export */
.planbar { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; margin-bottom: 18px; border: 1px solid var(--line); border-left: 3px solid var(--acc); background: var(--surf); font-size: 15px; line-height: 1.45; }
.planbar > span { flex: 1; }
.planbar .ico { color: var(--acc); flex: none; }
.planbar.soon { border-left-color: var(--warn); } .planbar.soon .ico { color: var(--warn); }
.planbar.ro { border-left-color: var(--ink); } .planbar.ro .ico { color: var(--ink); }
.page > .planbar { margin-bottom: 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 14px; }
.plan { position: relative; border: 1px solid var(--line); background: var(--bg); padding: 18px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.plan.picked, .plan.mine { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.plan-tag { position: absolute; top: -11px; left: 14px; background: var(--acc); color: var(--on); font-size: 12px; font-weight: 600; padding: 2px 8px; }
.plan-tag.quiet { background: var(--surf); color: var(--ink2); border: 1px solid var(--line); font-weight: 400; }
.plan-n { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin-top: 4px; }
.plan-p { font-size: 15px; } .plan-p b { font-size: 20px; font-weight: 700; }
.plan-l { color: var(--ink2); font-size: 14px; }
.plan-tax { display: block; color: var(--ink2); font-size: 13px; margin-top: 2px; }
.plan ul { margin: 6px 0 12px; padding-left: 18px; font-size: 14px; line-height: 1.6; flex: 1; }
.plan .btn { align-self: flex-start; }
.plan-status { font-size: 15px; margin: 0 0 14px !important; }
.plan-status.ro { font-weight: 600; }
.xd-planbar:empty { display: none; }
.xd-planbar .planbar { margin: 0; border-width: 0 0 1px; border-left: 3px solid var(--acc); font-size: 13px; padding: 6px 10px 6px 12px; background: var(--chrome); color: var(--ink); }
.xd-planbar .planbar.ro { border-left-color: var(--ink); }
.xd-planbar .planbar .btn.small { padding: 4px 10px; font-size: 12px; }
.xd.ro .xd-rail .xd-tool:not([data-tool="select"]):not([data-tool="zoom"]) { opacity: .3; pointer-events: none; }
.xd.ro .hdl, .xd.ro [data-r] { display: none; }
.xd-insp section[inert] { opacity: .55; }
.exp-locked button:not(:first-child) { color: var(--ink3, #999); }
.lock-hint a { color: var(--sel); }
.ctx-item.off { opacity: .45; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } .planbar { flex-wrap: wrap; } }
.start.off { border-style: dashed; }
.start.off .start-t { color: var(--ink2); }
.start.off .start-ico { color: var(--ink2); }
.start.off:hover { border-color: var(--acc); }
.bar .btn.locked { color: var(--ink2); border-style: dashed; }
.bar .btn.locked .ico { margin-right: 2px; }

/* Help & messages, announcements (js/help.js) */
.avatar-btn { position: relative; }
.avatar-btn.has-dot::after { content: ''; position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 2px var(--bg); }
.help-top { margin-bottom: 12px; }
.tickets { list-style: none; margin: 0 0 8px; padding: 0; }
.ticket { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.ticket:hover { background: var(--bg); }
.ticket .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.ticket .dot.off { background: transparent; }
.ticket.unread .ticket-s { font-weight: 600; }
.ticket-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-st, .thread-st { font-size: 13px; color: var(--ink2); white-space: nowrap; }
.st-waiting { color: var(--acc) !important; font-weight: 600; }
.st-fixed { color: var(--ok-ink) !important; }
.ticket-t { font-size: 13px; color: var(--ink2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.help-form textarea, .reply textarea { resize: vertical; min-height: 110px; font: inherit; font-size: 16px; line-height: 1.5; }
.help-form { display: flex; flex-direction: column; gap: 14px; }
.thread { list-style: none; margin: 8px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 14px; border: 1px solid var(--line); background: var(--bg); }
.msg.you { align-self: flex-end; background: var(--tint); border-color: transparent; }
.msg-who { font-size: 12px; color: var(--ink2); margin-bottom: 4px; }
.msg-b, .news-b, .notice-b { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.reply { display: flex; flex-direction: column; gap: 10px; }
.news { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.news-t { font-weight: 600; } .news-d { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 10px 12px 14px; margin-bottom: 14px; border: 1px solid var(--line); border-left: 3px solid var(--acc); background: var(--surf); font-size: 15px; }
.notice .ico { color: var(--acc); flex: none; margin-top: 2px; }
.notice-x { flex: 1; } .notice-b { color: var(--ink2); margin-top: 2px; }
@media (max-width: 720px) { .ticket { grid-template-columns: 12px 1fr auto; } .ticket-t { display: none; } .msg { max-width: 100%; } }

/* sign-up: the unticked news-and-tips box */
label.check.auth-check { font-size: 14px; color: var(--ink2); margin: 2px 0 4px; align-items: flex-start; line-height: 1.4; }
label.check.auth-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--acc); }

/* the selection box turns with a turned object (editor selFrame) */
.selbox.turned { transform-origin: 50% 50%; }

/* Layers panel (⌘Y): artboards and their objects as a tree, drag to reorder */
.lay-caret { width: 14px; height: 14px; flex: none; border: 0; background: none; padding: 0; color: var(--ink3); display: flex; align-items: center; justify-content: center; }
.lay-caret.none { visibility: hidden; }
.lay-caret span { display: flex; transition: transform .12s; }
.lay-caret.open span { transform: rotate(90deg); }
.lay-caret:hover { color: var(--ink); }
.lay-list .kind { display: flex; align-items: center; justify-content: center; }
.lay-list li.lay-board { font-weight: 500; }
.lay-list li.lay-empty { color: var(--ink3); font-style: italic; padding-left: 36px; }
.lay-list li.dragging { opacity: .45; }
.lay-list li.drop-a { border-top-color: var(--sel); }
.lay-list li.drop-b { border-bottom-color: var(--sel); }
.lay-list .eye { display: flex; align-items: center; }

/* smart guides: equal spacing spans (js/snap.js) */
.gap-tick { background: #FF2D9B; pointer-events: none; z-index: 4; }
.gap-tick.hz { width: 1px; height: 9px; margin: -4.5px 0 0 0; }
.gap-tick.v { width: 9px; height: 1px; margin: 0 0 0 -4.5px; }
.gap-tag { transform: translate(-50%, -50%); background: #FF2D9B; color: #fff; font: 500 11px var(--mono); padding: 1px 5px; border-radius: 3px; white-space: nowrap; pointer-events: none; z-index: 5; }

/* picture lasso (js/picture.js) */
.xd .canvas[data-tool=lasso] { cursor: crosshair; }
.ov-svg .ants { animation: ants .8s linear infinite; }
@keyframes ants { to { stroke-dashoffset: -8; } }
.adj-row { display: grid; grid-template-columns: 78px 1fr 36px; align-items: center; gap: 8px; font-size: 12px; color: var(--ink2); margin: 4px 0; }
.adj-row input[type=range] { width: 100%; accent-color: var(--sel); }
.adj-row .adj-v { font: 500 11px var(--mono); text-align: right; color: var(--ink); }

/* text editing: the design shows the words (coloured ones too); the box only carries the caret and the highlight */
.text-edit.live::selection { background: rgba(80, 140, 255, .28); color: transparent; }
.colrow .ib.drop { flex: none; }

/* a missing font: the nearest fonts here (js/fonts.js fontSuggestions) */
.ffind { margin: 6px 0 2px; }
.ffchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
/* getting a missing font (fonts.js fontGetter; editor and brand kit page) */
.fget { margin: 6px 0 8px; }
.fget-msg { font-size: 13px; line-height: 1.5; }
.fget-msg:empty { display: none; }
.fget > .btn { margin-bottom: 2px; }
.fget-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
a.fget-go { text-decoration: none; display: inline-flex; align-items: center; }
.fget-locked { display: inline-flex; align-items: center; gap: 5px; }
a.fget-go, .fget-row a.btn { text-decoration: none; }
.fget.found .fget-msg { color: var(--ok-ink); }
.bk-warn .fget-msg { color: var(--ink2); }
.bk-warn .fget { margin-bottom: 0; }
.ffchip { border: 1px solid var(--fieldEdge); background: var(--field); border-radius: 2px; padding: 4px 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.ffchip:hover { border-color: var(--sel); }
.fontlist li.ffrow { display: block; border-bottom: 1px solid var(--line); }

/* Terms / Privacy links (account.js legalLink; addresses in brand.js LEGAL) */
.auth-legal { margin: -4px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink2); text-align: center; }
.auth-legal a, .legal-line a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.auth-legal a:hover, .legal-line a:hover { color: var(--ink); }
label.check.auth-check .check-note { display: block; font-size: 13px; color: var(--ink2); opacity: .85; margin-top: 2px; }
.legal-line { margin: 8px 0 24px; font-size: 13px; color: var(--ink2); text-align: center; }
#home .home-words { margin-left: 10px; display: inline-flex; }   /* air between the X and the words, as in the editor bar */
.first .starts { max-width: 640px; margin: 0 auto; }   /* two cards: New design, Connect your AI */

/* Notes for your AI (js/notes.js): numbered pins on the canvas, a callout to write in, the list in the left panel */
.xd .canvas[data-tool=note] { cursor: crosshair; }
.xd.note-mode .xd-body { grid-template-columns: 48px 260px 1fr 252px; }
.xd.note-mode.no-insp .xd-body { grid-template-columns: 48px 260px 1fr; }
.xd.note-mode .xd-layers { display: block; }
.note-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.note-layer[hidden] { display: none; }
.note-pin { position: absolute; pointer-events: auto; transform: translate(-2px, calc(-100% + 2px)); min-width: 26px; height: 26px; padding: 0 7px;
  border: 2px solid #fff; border-radius: 13px 13px 13px 2px; background: var(--sel); color: #fff; font: 600 13px/22px var(--mono, inherit);
  box-shadow: 0 1px 4px rgba(42, 14, 26, .35); cursor: pointer; }
.note-pin:hover, .note-pin.on { background: var(--sel2); box-shadow: 0 0 0 2px var(--sel), 0 2px 6px rgba(42, 14, 26, .35); }
.note-pin.done { background: var(--ink3); }
.note-call { position: absolute; pointer-events: auto; width: 280px; background: var(--panel); color: var(--ink); border: 1px solid var(--edge);
  border-radius: 4px; box-shadow: 0 8px 24px rgba(42, 14, 26, .18); padding: 10px 12px 10px; font-size: 14px; }
.note-call-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.note-call-h b { font-weight: 600; }
.note-call-h span { color: var(--ink3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-ta { display: block; width: 100%; box-sizing: border-box; min-height: 74px; resize: vertical; font: inherit; font-size: 15px; line-height: 1.45;
  color: var(--ink); background: var(--field, #fff); border: 1px solid var(--fieldEdge, var(--edge)); border-radius: 3px; padding: 7px 8px; }
.note-ta:focus { outline: 2px solid var(--sel); outline-offset: -1px; }
.note-reply { margin-top: 8px; font-size: 13px; color: var(--ink2); white-space: pre-wrap; }
.note-reply span { font-weight: 600; }
.note-call-f { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.note-call-f .linkish { margin: 0 0 0 auto; font-size: 13px; }
.note-done { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); }
.notes-intro { padding: 0 12px 10px; font-size: 13px; color: var(--ink2); line-height: 1.45; }
.notes-intro p { margin: 0 0 8px; }
.notes-list { list-style: none; margin: 0; padding: 0 0 6px; }
.note-item { display: grid; grid-template-columns: 26px 1fr 22px; gap: 8px; align-items: start; padding: 7px 8px 7px 12px; }
.note-item:hover, .note-item.on { background: var(--tint); }
.note-num { width: 24px; height: 24px; border-radius: 12px 12px 12px 2px; border: 0; background: var(--sel); color: #fff; font: 600 12px/24px var(--mono, inherit); padding: 0; }
.note-item.done .note-num { background: var(--ink3); }
.note-num:hover:not(:disabled) { background: var(--sel2); }
.note-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; background: none; border: 0; padding: 2px 0; color: var(--ink); font-size: 13px; }
.note-t { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.note-item.done .note-t { color: var(--ink2); text-decoration: line-through; }
.note-r { color: var(--ink2); font-size: 12px; overflow-wrap: anywhere; }
.note-m { color: var(--ink3); font-size: 12px; }
.note-x { border: 0; background: none; color: var(--ink3); font-size: 16px; line-height: 1; padding: 4px; visibility: hidden; }
.note-item:hover .note-x, .note-x:focus-visible { visibility: visible; }
.note-x:hover { color: var(--ink); }
.notes-empty { padding: 4px 12px; font-size: 13px; color: var(--ink2); margin: 0; }
.notes-done-t { display: block; border: 0; background: none; color: var(--ink2); font-size: 12px; padding: 10px 12px 6px; }
.notes-keys { padding: 12px; margin: 0; font-size: 12px; color: var(--ink3); }
.notes-head { padding-right: 6px; }
.notes-close { margin-left: auto; border: 0; background: none; color: var(--ink2); font-size: 20px; line-height: 1; width: 28px; height: 28px; border-radius: 4px; }
.notes-close:hover { background: var(--hover); color: var(--ink); }

/* Connect your AI (OAuth, 27 Nov): the consent screen AI apps open, the private-link fallback */
.consent h1 { margin-bottom: 14px; }
.consent-what { font-size: 18px; line-height: 1.5; margin: 0 0 10px; }
.consent-back { color: var(--ink2); margin: 0 0 6px; overflow-wrap: anywhere; }
.consent-back .mono { font-family: var(--mono, monospace); font-weight: 600; color: var(--ink); }
.consent .callout { margin: 14px 0 0; }
.consent-actions { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 8px; }
.consent .dim.small { margin-top: 18px; }
details.fallback > summary { cursor: pointer; list-style: none; }
details.fallback > summary::-webkit-details-marker { display: none; }
details.fallback > summary h2 { display: inline; }
details.fallback > summary::before { content: '▸'; display: inline-block; width: 20px; font-size: 18px; color: var(--ink2); }
details.fallback[open] > summary::before { content: '▾'; }
details.fallback[open] > summary { margin-bottom: 10px; }
.sub-h { font-size: 14px; font-weight: 600; margin: 18px 0 6px; }
.connect .linkrow + p.dim { margin: 10px 0 0; }
.consent h1:focus { outline: none; }

/* ---------- brand kits (js/brandkit-ui.js; Pro, 27 Nov 2026) ---------- */
.lib-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 0 0 20px; }
.lib-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0 9px; margin-bottom: -1px; color: var(--ink2); text-decoration: none; font-size: 15px; border-bottom: 2px solid transparent; }
.lib-tabs a:hover { color: var(--ink); }
.lib-tabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--acc); }
.lib-tabs a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lib-tab-lock[hidden] { display: none; }
.lib-tab-lock { display: inline-flex; color: var(--ink2); }
.bk .lib-head .btn { display: inline-flex; align-items: center; gap: 6px; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.bk-card { position: relative; background: var(--surf); border: 1px solid var(--line); border-radius: 2px; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; }
.bk-card:hover { border-color: var(--ink2); }
.bk-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bk-card:hover .card-more, .bk-card:focus-within .card-more { opacity: 1; }
.bk-strip { display: flex; height: 34px; border-bottom: 1px solid var(--line); }
.bk-strip span { flex: 1; }
.bk-card-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 14px; min-height: 92px; border-bottom: 1px solid var(--line); }
.bk-aa { font-size: 44px; line-height: 1; color: var(--ink); }
.bk-card-logo { display: flex; align-items: center; justify-content: center; width: 96px; height: 56px; border-radius: 2px; }
.bk-card-logo:empty { display: none; }
.bk-card-logo.on-dark { background: #212121; } .bk-card-logo.on-light { background: #FFFFFF; border: 1px solid var(--line); }
.bk-card-logo img { max-width: 84px; max-height: 44px; }
.bk-card .meta { padding: 10px 12px 12px; }
.bk-card .t { display: flex; align-items: center; gap: 8px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-card .s { font-size: 13px; color: var(--ink2); margin-top: 3px; }
.bk-tag { display: inline-block; font-size: 13px; line-height: 1; padding: 3px 6px; border-radius: 2px; background: var(--tint); color: var(--ink); font-weight: 500; }
.bk-tag.ai { margin-left: 8px; }
.bk-lock, .bk-empty { max-width: 620px; border: 1px solid var(--line); background: var(--surf); padding: 24px; border-radius: 2px; }
.bk-lock { display: flex; gap: 16px; align-items: flex-start; }
.bk-lock-ico { color: var(--acc); flex: none; padding-top: 2px; }
.bk-lock h3, .bk-empty h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 8px; letter-spacing: -0.01em; }
.bk-lock p, .bk-empty p { margin: 0 0 16px; color: var(--ink2); line-height: 1.5; font-size: 16px; }
.bk-empty-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.bk-empty-btns .btn { display: inline-flex; align-items: center; gap: 6px; }
.bk-note { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--warn); background: var(--surf); font-size: 15px; }
.bk-pick { max-height: 50vh; overflow: auto; border: 1px solid var(--line); margin: 12px 0; }
.bk-pick-row { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: var(--surf); border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; font-size: 15px; }
.bk-pick-row:hover:not(:disabled) { background: var(--tint); }
.bk-pick-row .s { color: var(--ink2); font-size: 13px; flex: none; }

/* one kit's page */
.bk-page { max-width: 1120px; margin: 0 auto; }
.bk-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.bk-head .crumb-up { font-size: 15px; text-decoration: none; }
.bk-page .bk-head input.bk-name { height: auto; flex: 1 1 240px; min-width: 0; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); background: none; border: 1px solid transparent; border-radius: 2px; padding: 2px 6px; }
.bk-page .bk-name:hover:not(:disabled) { border-color: var(--line); }
.bk-page .bk-name:focus { outline: none; border-color: var(--acc); background: var(--surf); }
.bk-sub { flex-basis: 100%; font-size: 13px; color: var(--ink2); padding-left: 2px; }
.bk-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px 10px 14px; margin: 0 0 20px; border: 1px solid var(--line); border-left: 3px solid var(--acc); background: var(--surf); font-size: 15px; position: sticky; top: 0; z-index: 2; }
.bk-bar[hidden] { display: none; }
.bk-bar > span { flex: 1 1 260px; }
.bk-bar .ico { color: var(--acc); flex: none; }
.bk-bar.done { border-left-color: var(--ok-ink); } .bk-bar.done .ico { color: var(--ok-ink); }
.bk-bar.busy { border-left-color: var(--ink2); color: var(--ink2); }
.bk-sec { border-top: 1px solid var(--line); padding: 20px 0 24px; }
.bk-sec-h h3 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0; }
.bk-hint { color: var(--ink2); font-size: 13px; line-height: 1.45; }
.bk-sec-btns { display: flex; gap: 8px; }
.bk-sec-btns .btn { display: inline-flex; align-items: center; gap: 4px; }
.bk-page input, .bk-page select, .bk-page textarea { color: var(--ink); }
.bk-page input:not([type]), .bk-page input[type=number], .bk-page select, .bk-page textarea { background: var(--surf); border: 1px solid var(--line); border-radius: 2px; font-size: 13px; height: 30px; padding: 0 8px; }
.bk-page input:focus-visible, .bk-page select:focus-visible, .bk-page textarea:focus-visible { outline: none; border-color: var(--acc); }
.bk-page input:disabled, .bk-page select:disabled, .bk-page textarea:disabled { opacity: .7; }
/* the kit page, simplified (Alan, 27 Nov: "a bit daunting and fiddly - make it easier to use and more simple") */
.bk-sec-h { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; margin-bottom: 14px; }
.bk-sec-h h3 { display: flex; align-items: center; gap: 10px; }
.bk-sec-h > .bk-hint { grid-column: 1 / -1; margin: 0; font-size: 15px; max-width: 70ch; }
.bk-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 600; }
.bk-intro { display: grid; grid-template-columns: 1fr 1.6fr; gap: 14px; margin: 0 0 8px; align-items: start; }
.bk-way { border: 1px solid var(--line); background: var(--surf); border-radius: 2px; padding: 16px 18px; min-width: 0; }
.bk-way h3 { font-family: var(--display); font-weight: 700; font-size: 17px; margin: 0 0 6px; }
.bk-way p { margin: 0 0 10px; color: var(--ink2); font-size: 15px; line-height: 1.5; }
.bk-way p:last-child { margin-bottom: 0; }
.bk-src { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bk-chip { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 13px; color: var(--ink); cursor: pointer; }
.bk-chip:hover { border-color: var(--ink2); }
.bk-chip.on { border-color: var(--acc); background: var(--tint); font-weight: 500; }
.bk-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bk-prompt-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.bk-prompt { flex: 1; min-width: 0; padding: 10px 12px; background: var(--well, var(--bg)); border: 1px solid var(--line); border-radius: 2px; font-size: 15px; line-height: 1.45; color: var(--ink); user-select: all; }
.bk-prompt-row .btn { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.bk-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bk-col { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 0 8px; border: 1px solid var(--line); background: var(--surf); border-radius: 2px; overflow: hidden; }
.bk-col.dragging { opacity: .4; } .bk-col.drop { border-color: var(--acc); }
.bk-col-sw { position: relative; height: 84px; border-bottom: 1px solid var(--line); overflow: hidden; cursor: grab; }
.bk-sw { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); border: 0; padding: 0; cursor: pointer; background: none; }
.bk-col > input, .bk-col > select { margin: 0 8px; width: calc(100% - 16px); }
.bk-page .bk-col .bk-cname { border-color: transparent; background: none; font-size: 15px; font-weight: 500; padding: 0 4px; }
.bk-page .bk-col .bk-cname:hover:not(:disabled), .bk-page .bk-lname:hover:not(:disabled) { border-color: var(--line); }
.bk-page .bk-col .bk-hex { border-color: transparent; background: none; font-family: var(--mono); text-transform: uppercase; color: var(--ink2); padding: 0 4px; height: 24px; }
.bk-page .bk-col .bk-hex:hover:not(:disabled) { border-color: var(--line); }
.bk-del { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; opacity: 0; transition: opacity .12s; }
.bk-col:hover .bk-del, .bk-col:focus-within .bk-del, .bk-logo:hover .bk-del, .bk-logo:focus-within .bk-del { opacity: 1; }
@media (hover: none) { .bk-del { opacity: 1; } }
.bk-col-add, .bk-logo-add { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px dashed var(--line); background: none; border-radius: 2px; color: var(--ink2); font-size: 15px; cursor: pointer; padding: 12px; text-align: center; }
.bk-col-add:hover, .bk-logo-add:hover { border-color: var(--acc); color: var(--ink); }
.bk-styles { display: flex; flex-direction: column; gap: 10px; }
.bk-style { border: 1px solid var(--line); background: var(--surf); padding: 12px 14px; border-radius: 2px; }
.bk-style-top { display: flex; align-items: center; gap: 12px; }
.bk-style-l { flex: 1; min-width: 0; }
.bk-sample { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-style-sum { font-size: 13px; color: var(--ink2); margin-top: 4px; }
.bk-style-f { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; align-items: end; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.bk-style-f[hidden] { display: none; }
.bk-fld { display: flex; flex-direction: column; align-items: stretch; gap: 4px; font-size: 13px; color: var(--ink2); text-align: left; }
.bk-fld > input, .bk-fld > select { width: 100%; }
.bk-fld .fld-in { display: flex; align-items: center; gap: 4px; }
.bk-fld .fld-in .num { flex: 1; min-width: 0; }
.bk-style-end { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.danger-text { color: var(--danger, #C0392B); }
.bk-caps { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); height: 30px; }
.bk-warn { margin-top: 8px; font-size: 13px; color: var(--warn); }
.bk-warn[hidden] { display: none; }
.bk-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; border: 1px dashed transparent; border-radius: 2px; }
.bk-logos.drop { border-color: var(--acc); }
.bk-logo { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); background: var(--surf); padding: 8px; border-radius: 2px; }
.bk-logo-wrap { position: relative; }
.bk-logo-pic { height: 110px; display: flex; align-items: center; justify-content: center; border-radius: 2px; }
.bk-logo-pic.on-dark { background: #212121; } .bk-logo-pic.on-light { background: #FFFFFF; border: 1px solid var(--line); }
.bk-logo-pic img { max-width: 85%; max-height: 90px; }
.bk-page .bk-lname { border-color: transparent; background: none; font-size: 15px; font-weight: 500; padding: 0 4px; width: 100%; }
.bk-logo-f { display: flex; gap: 6px; }
.bk-logo-f select { flex: 1; min-width: 0; }
.bk-how { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--acc); background: var(--surf); font-size: 15px; line-height: 1.55; color: var(--ink); max-width: 80ch; }
.bk-rules { width: 100%; height: auto !important; min-height: 140px; padding: 10px !important; font: inherit; font-size: 15px !important; line-height: 1.5; resize: vertical; }
.bk-left { display: block; font-size: 13px; color: var(--ink2); margin-top: 6px; min-height: 18px; }
.bk-ex { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bk-ex .bk-hint { margin-right: 4px; font-size: 13px; }
.bk-paste { width: 100%; font: inherit; font-size: 15px; padding: 10px; border: 1px solid var(--line); background: var(--surf); color: var(--ink); border-radius: 2px; margin: 8px 0; }
@media (max-width: 760px) { .bk-intro { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .bk-cols { grid-template-columns: repeat(2, 1fr); }
  .bk-logos { grid-template-columns: 1fr; }
  .bk-prompt-row { flex-direction: column; }
  .bk-sec-h { grid-template-columns: 1fr; }
}

/* the editor's right panel: the design's kit */
.is-kit { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 4px; }
.is-kit-l { flex: 0 0 42px; font-size: 11px; color: var(--ink3); padding-top: 4px; text-transform: uppercase; letter-spacing: .04em; }
.is-kit-sw, .is-kit-st { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; min-width: 0; }
.is-kit-sw.static { margin: 4px 0 8px; }
.kit-sw { width: 20px; height: 20px; border-radius: 2px; border: 1px solid var(--edge, #ccc); padding: 0; display: inline-block; }
button.kit-sw:hover { outline: 2px solid var(--sel); outline-offset: 1px; }
.kit-st { border: 1px solid var(--fieldEdge, #ccc); background: var(--field, #fff); color: var(--ink); border-radius: 4px; height: 26px; padding: 0 8px; font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit-st:hover { border-color: var(--sel); }
.kit-st.on { border-color: var(--sel); background: var(--tint); }
.is-kit-logos { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.bk-kept { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 26px 0 14px; }
.bk-bar-note { flex-basis: 100%; font-size: 13px; color: var(--ink2); padding-left: 30px; }

/* client review (js/review.js): the top-bar button, the Share dialog, From review in the Comments panel */
.xd-share { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 1px solid var(--fieldEdge); background: var(--field); color: var(--ink); border-radius: 4px; font-size: 13px; white-space: nowrap; }
.xd-share:hover { border-color: var(--sel); }
.xd-share.approved { color: var(--ok-ink); border-color: var(--ok-ink); }
.xd-share.changed { color: var(--warn); border-color: var(--warn); }
.xd-share.locked { color: var(--ink2); border-style: dashed; }
.xd-share-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sel); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.xd-tool.has-new { position: relative; }
.xd-tool.has-new::after { content: ''; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--sel); box-shadow: 0 0 0 2px var(--panel, var(--bg)); }
.rv-dialog { max-width: 560px; }
.rv-form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.rv-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink2); }
.rv-f.inline { flex-direction: row; align-items: center; gap: 8px; }
.rv-f input { width: 100%; }
.rv-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.rv-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.rv-made { margin: 10px 0 4px; padding: 12px; border: 1px solid var(--line); border-left: 3px solid var(--ok-ink); background: var(--surf); }
.rv-url-row { display: flex; gap: 8px; }
.rv-url-row input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; }
.rv-once { margin: 8px 0 0; font-size: 13px; color: var(--warn); }
.rv-links h3 { font-size: 14px; margin: 18px 0 6px; }
.rv-links ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-height: 40vh; overflow: auto; }
.rv-link { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.rv-link.off { opacity: .6; }
.rv-link-m { font-size: 13px; color: var(--ink2); }
.rv-appr { font-size: 13px; color: var(--ok-ink); }
.rv-appr.changed { color: var(--warn); }
.rv-sec { margin: 4px 0 10px; border-top: 1px solid var(--edge, var(--line)); border-bottom: 1px solid var(--edge, var(--line)); background: var(--tint); }
.rv-sec-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 0; font-size: 11px; letter-spacing: .04em; color: var(--ink2); }
.rv-sec-h .linkish { margin: 0; font-size: 12px; letter-spacing: 0; }
.rv-sec-p { margin: 4px 12px 2px; font-size: 12px; color: var(--ink2); }
.rv-item { grid-template-columns: 26px 1fr; }
.rv-num { background: var(--ink2); display: inline-flex; align-items: center; justify-content: center; }
.rv-acts { grid-column: 2; display: flex; gap: 6px; }
.rv-item .note-t { white-space: pre-wrap; overflow-wrap: anywhere; }
/* review, 28 Nov: the × on the share window, review pins on the canvas, Show by person, Pass by person, whose comments to ask about */
.rv-dialog { position: relative; }
.rv-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0; background: none; color: var(--ink2); font-size: 22px; line-height: 1; border-radius: 2px; }
.rv-x:hover { color: var(--ink); background: var(--tint); }
.note-pin.review { background: var(--panel, #fff); color: var(--sel); border: 2px solid var(--sel); font-family: inherit; }
.note-pin.review:hover, .note-pin.review.on { background: var(--sel); color: #fff; }
.rv-call-t { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 10px; }
.rv-call .note-call-f { justify-content: flex-end; gap: 8px; }
.rv-call .note-call-f .linkish { margin-right: auto; }
.rv-people { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 4px 12px 10px; }
.rv-people-l { font-size: 11px; letter-spacing: .04em; color: var(--ink2); text-transform: uppercase; margin-right: 2px; }
.rv-person { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--edge, var(--line)); background: none; color: var(--ink2); font-size: 13px; text-decoration: line-through; }
.rv-person.on { background: var(--tint); border-color: var(--sel); color: var(--ink); text-decoration: none; }
.rv-person-n { font-size: 11px; font-weight: 600; color: var(--sel); }
.rv-ask { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.rv-ask select { width: 100%; max-width: 100%; }
.rv-pass { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 12px 4px; }

/* ---------------- Image Studio (js/studio.js, IMAGE-PLAN §1a; XV - Image Studio 29 Nov 2026) ---------------- */
.studio-ph { position: absolute; z-index: 3; display: grid; place-items: center; pointer-events: none; border: 1.5px dashed var(--acc);
  background: linear-gradient(110deg, rgba(217,42,99,.10) 30%, rgba(217,42,99,.26) 50%, rgba(217,42,99,.10) 70%) 0 0 / 220% 100%;
  animation: studio-shimmer 1.4s linear infinite; }
.studio-ph span { font: 600 12px/1.3 var(--font, system-ui); color: var(--acc); background: var(--surf); padding: 4px 8px; border-radius: 2px; white-space: nowrap; }
.studio-ph.inline { position: relative; width: 100%; aspect-ratio: 1; }
@keyframes studio-shimmer { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .studio-ph { animation: none; } }
.studio-btn.locked, .btn.small.locked { opacity: .7; }
.btn.small.locked .ico { margin-right: 4px; vertical-align: -2px; }
.modal-box:has(> .studio-box) { width: min(600px, 92vw); }
.modal-box:has(> .studio-var) { width: min(800px, 94vw); }
.studio-box, .studio-var { width: auto; }
.studio-desc { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; line-height: 1.45; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surf); color: var(--ink); resize: vertical; margin-top: 10px; }
.studio-desc:focus { outline: 2px solid var(--acc); outline-offset: -1px; }
.studio-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); margin: 14px 0 6px; }
.studio-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.studio-chips .chip { border: 1px solid var(--line); background: var(--surf); color: var(--ink); border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer; }
.studio-chips .chip.on { border-color: var(--acc); background: var(--tint); color: var(--link); font-weight: 600; }
.studio-recent { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 6px; font-size: 13px; }
.studio-match { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; }
.studio-match img { width: 34px; height: 34px; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); }
.studio-box .actions { align-items: center; flex-wrap: wrap; }
.studio-foot { display: flex; flex-direction: column; font-size: 13px; color: var(--ink2); margin-top: 14px; }
.studio-foot small { font-size: 12px; opacity: .85; }
.studio-row .is-row { flex-wrap: wrap; }
.studio-edit-f { display: flex; gap: 6px; margin: 6px 0; }
.studio-edit-f input { flex: 1; min-width: 0; }
.studio-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.studio-strip figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.studio-strip img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bg2); border: 1px solid var(--line); border-radius: 2px; }
.studio-strip figcaption { font-size: 13px; color: var(--ink2); }
.facts dd.credits-low { color: #9A5B00; }
body.xv-dark .facts dd.credits-low { color: #F0B45A; }

/* lock (⌘L, Alan 29 Nov 2026): the padlock in Layers, the selection box of a locked object, the inspector note */
.lay-list .lk { border: 0; background: none; color: var(--ink3); padding: 0 2px; visibility: hidden; display: flex; align-items: center; cursor: pointer; }
.lay-list li:hover .lk, .lay-list .lk.on, .lay-list .lk.inh { visibility: visible; }
.lay-list .lk.on { color: var(--ink2, var(--ink)); }
.lay-list .lk.inh { opacity: .4; cursor: default; }
.selbox.locked { border-style: dashed; }
.selbox .lock-badge { position: absolute; top: -9px; right: -9px; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  background: var(--sel); color: #fff; border-radius: 2px; pointer-events: auto; }
.is-lockrow { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink2, var(--ink)); }
.is-lockrow > span:nth-child(2) { flex: 1; }
.is-lockrow .lk-ico { display: flex; color: var(--ink3); }
.is-lockrow .lk-ico svg { width: 14px; height: 14px; }
section.is.is-locked { opacity: .45; }

/* your own fonts (fontsui.js): the upload window and the Account page's "Your fonts" */
.modal-box:has(> .uf) { width: min(640px, 94vw); }
.uf-rows { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.uf-row { border: 1px solid var(--line); border-radius: 2px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.uf-row.bad { border-color: var(--danger); }
.uf-file { display: flex; align-items: baseline; gap: 8px; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.uf-sample { font-size: 22px; line-height: 1; min-width: 32px; }
.uf-fields { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.uf-fields .input { flex: 1 1 200px; min-width: 0; }
.uf-fields .uf-it { margin: 0; }
.uf-want { align-self: flex-start; font-size: 13px; }
.uf-state { font-size: 13px; color: var(--ink2); }
.uf-state:empty { display: none; }
.uf-state.ok { color: var(--ok-ink); }
.uf-state.bad, .uf-row.bad .uf-state { color: var(--danger); }
.uf-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.uf-fam-name { font-size: 20px; margin-bottom: 4px; overflow-wrap: anywhere; }
.uf-faces { list-style: none; margin: 0; padding: 0; }
.uf-faces li { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; padding: 4px 0; border-top: 1px solid var(--line); font-size: 15px; }
.uf-faces li > span:first-child { flex: 1 1 140px; }
.uf-del { font-size: 13px; }
.fget > .btn + .btn { margin-left: 6px; }
.uf-card .pactions { margin-top: 16px; }

.confirm-note { font-size: 13px; color: var(--ink2); margin-top: 4px; line-height: 1.5; }

/* Cancel your plan (#/account/cancel) */
.cancel-page { max-width: 560px; }
.cancel-page h1 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 28px; margin: 8px 0 12px; }
.cancel-lead { font-size: 16px; line-height: 1.55; color: var(--ink2); margin: 0 0 12px; }
.cancel-page .pactions { align-items: center; margin-top: 18px; gap: 18px; }
.cancel-keep { font-size: 15px; }

/* the Bin (#/bin, bin.js) */
.bin-lead { color: var(--ink2); font-size: 15px; margin: -10px 0 18px; }
.bin-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bin-row { display: flex; align-items: center; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--surf); }
.bin-pic { flex: 0 0 96px; height: 64px; background: var(--line); border-radius: 2px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.bin-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bin-meta { flex: 1 1 auto; min-width: 0; }
.bin-name { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bin-when, .bin-purge { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.bin-purge.soon { color: var(--danger); }
.bin-err { font-size: 13px; color: var(--danger); margin-top: 4px; }
.bin-err:empty { display: none; }
.bin-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bin-empty { text-align: center; color: var(--ink2); padding: 60px 16px; }
.bin-empty h3 { color: var(--ink); margin: 12px 0 6px; font-size: 18px; }
.bin-empty p { margin: 0 auto; max-width: 420px; line-height: 1.55; }
@media (max-width: 600px) { .bin-row { flex-wrap: wrap; } .bin-pic { flex-basis: 72px; height: 48px; } .bin-meta { flex: 1 1 150px; } .bin-acts { width: 100%; justify-content: flex-start; } }
