/* Monet canvas. One dark sheet: header, notes on the left, the part in the middle, a 380 px panel of cards. */
:root {
  --bg-body: #121620; --bg-surface: #1a1f2e; --bg-elevated: #212738; --border: #2e3650; --border-strong: #3a4368;
  --text: #d4d4d4; --text-bright: #fff; --text-muted: #8a8fa3; --accent: #d4832f;
  --btn-bg: #242a3a; --btn-hover: #2e3548; --ok: #6fd58a; --err: #ff8888; --warn: #ffc14d;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg-body); color: var(--text); font: 13px/1.45 Montserrat, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button { background: var(--btn-bg); color: var(--text); border: 1px solid var(--border-strong); border-radius: 4px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
button:hover { background: var(--btn-hover); }
button.primary { border-color: var(--accent); color: var(--accent); }
button.primary:hover { background: var(--accent); color: #fff; }
button.on { border-color: var(--accent); color: var(--accent); }
button.danger { border-color: var(--err); color: var(--err); }
button.danger:hover { background: var(--err); color: #1a1f2e; }
button:disabled { opacity: .45; cursor: default; }
input, select, textarea { background: var(--bg-body); color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 6px 8px; font-size: 12px; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.muted { color: var(--text-muted); }
.ok { color: var(--ok); } .err { color: var(--err); } .warn { color: var(--warn); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }

/* the app */
.app { --l: var(--side-left-w, 230px); --r: var(--side-right-w, 380px); display: grid; grid-template: 64px minmax(0, 1fr) / var(--l) minmax(0, 1fr) var(--r); height: 100vh; }
.app > aside { grid-area: 2 / 1; } .app > .view { grid-area: 2 / 2; } .app > .panel { grid-area: 2 / 3; }
/* the sides can be sized and closed, after Adam Designer (side.js): an edge 0 wide on each side of the view, a grip
   8 px wide straddling the line, the ‹ › tab on it to close the side, and when closed a knob on the window's edge */
.app.side-left-closed { --l: 0px; } .app.side-right-closed { --r: 0px; }
.app.side-left-closed > aside, .app.side-right-closed > .panel { display: none; }
.app > .side-edge { grid-area: 2 / 2; position: relative; z-index: 6; width: 0; touch-action: none; user-select: none; }
.side-edge.left { justify-self: start; } .side-edge.right { justify-self: end; }
.side-edge:not(.closed)::before { content: ''; position: absolute; top: 0; bottom: 0; left: -4px; width: 8px; cursor: col-resize; }
.side-edge:not(.closed):is(:hover, .dragging)::after { content: ''; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--accent); pointer-events: none; }
.side-edge .side-tab { position: absolute; top: 50%; left: -7px; width: 14px; height: 40px; margin-top: -20px; padding: 0; display: grid; place-items: center; background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border-strong); border-radius: 4px; font-size: 13px; line-height: 1; opacity: 0; transition: opacity .12s; }
.side-edge:not(.closed):hover .side-tab { opacity: 1; }
.side-edge.dragging .side-tab, .side-edge.closed .side-tab { display: none; }
.side-edge .side-tab:hover { color: var(--text-bright); border-color: var(--accent); }
.side-edge .side-icon { display: none; }
.side-edge.closed .side-icon { position: absolute; top: 50%; width: 22px; height: 56px; margin-top: -28px; display: grid; place-items: center; background: var(--bg-surface); color: var(--text-muted); border: 1px solid var(--border-strong); cursor: pointer; }
.side-edge.closed.left .side-icon { left: 0; border-left: 0; border-radius: 0 6px 6px 0; }
.side-edge.closed.right .side-icon { right: 0; border-right: 0; border-radius: 6px 0 0 6px; }
.side-edge.closed .side-icon:hover { color: var(--accent); border-color: var(--accent); }
.side-edge .side-icon svg { width: 16px; height: 16px; fill: currentColor; }
body.side-resizing, body.side-resizing *, body.col-resizing, body.col-resizing * { cursor: col-resize !important; user-select: none; }
header { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: var(--bg-surface); border-bottom: 1px solid var(--border); }
header b { color: var(--text-bright); font-weight: 600; letter-spacing: .16em; }
header .sp { flex: 1; }
header .chip { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
header .chip a { color: inherit; text-decoration: none; }
header .chip a:hover { color: var(--accent); }
header a.quiet { color: var(--text-muted); text-decoration: none; font-size: 12px; }
header a.quiet:hover { color: var(--accent); }
.start h2 { font-size: 16px; color: var(--text-bright); margin: 0 0 6px; font-weight: 600; }
aside, .panel { background: var(--bg-surface); overflow-y: auto; }
aside { border-right: 1px solid var(--border); padding: 10px 0; }
.panel { border-left: 1px solid var(--border); padding: 10px; }
.head { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 0 0 8px; }
aside section { margin-bottom: 14px; }
aside .fold { padding: 2px 14px 6px; }

/* folding: any panel on the side shuts on a click on its head, and stays as it was left */
.fold { display: flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.fold .head { flex: 1; margin: 0; }
.fold .head h2 { text-transform: none; letter-spacing: 0; }
.fold .r { flex: none; }
.fold:hover .head, .fold:hover .chev { color: var(--text); }
.chev { width: 11px; color: var(--text-muted); font-size: 14px; line-height: 1; }
.chev::before { content: '▾'; }
.folded > .fold .chev::before { content: '▸'; }
.folded > .body { display: none; }
.card > .body { margin-top: 9px; }

/* three places to work, and what belongs to each */
.away { display: none !important; }
.rooms { display: inline-flex; margin-left: 10px; border: 1px solid var(--border-strong); border-radius: 5px; overflow: hidden; }
.rooms button { border: 0; border-radius: 0; padding: 6px 14px; background: transparent; color: var(--text-muted); font-weight: 500; }
.rooms button + button { border-left: 1px solid var(--border-strong); }
.rooms button.on { background: var(--accent); color: #fff; }
.tools { display: contents; }
/* beside the cursor while drawing: where it is, and the size of what is being drawn */
#sketchTip { position: absolute; left: 0; top: 0; background: rgba(16, 19, 27, .9); border: 1px solid var(--border-strong); color: var(--text-bright); border-radius: 4px; padding: 1px 7px; font-size: 12px; pointer-events: none; white-space: nowrap; z-index: 2; }

.item .grow { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.item .x { flex: none; padding: 0 5px; border: 0; background: none; color: var(--text-muted); }
.item .x:hover { color: var(--accent); background: none; }
.item input.off { flex: 0 0 52px; padding: 2px 5px; text-align: right; }
#sketchValue { width: 56px; text-align: right; }
#sketchTip.err { border-color: var(--err); color: var(--err); }

/* the names of the planes, each at a corner of its sheet */
#planeLabels span { position: absolute; left: 0; top: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; pointer-events: none; white-space: nowrap; text-shadow: 0 0 4px #10131b, 0 0 2px #10131b; z-index: 1; }
.plane { cursor: pointer; }
.plane:hover b { color: var(--accent); }

/* the box of a box select: dashed when it takes what it touches, solid when only what is wholly inside */
#marquee { position: absolute; border: 1px solid var(--accent); background: rgba(212, 131, 47, .10); pointer-events: none; z-index: 2; }
#marquee.touching { border-style: dashed; }
.item { display: flex; align-items: center; gap: 8px; padding: 5px 14px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item:hover { background: var(--bg-elevated); }
.item.sel { background: var(--bg-elevated); color: var(--text-bright); box-shadow: inset 2px 0 var(--accent); }
.item small { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-muted); }
.dot.green { background: var(--ok); } .dot.red { background: var(--err); } .dot.yellow { background: var(--warn); }
.dot.wait { background: none; box-shadow: inset 0 0 0 1.5px var(--warn); }      /* stale: waiting for the agent to build it */

/* the view */
.view { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #232a3d, #10131b); }
.view canvas { display: block; width: 100%; height: 100%; }
.bar { position: absolute; left: 10px; max-width: calc(100% - 20px); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: rgba(26, 31, 46, .88); border: 1px solid var(--border); border-radius: 6px; padding: 6px; }
.bar.top { top: 10px; } .bar.bottom { bottom: 10px; }
.bar input[type=range] { width: 110px; padding: 0; }
.bar .sep { width: 1px; align-self: stretch; background: var(--border); }
/* the rails, after Adam Designer: sections of buttons down each side of the view, each in a colour of its own. Their
   width is set by the grip on the inner edge (rails.js): wide they are .text, with labels, narrow .icon, icons only */
.rail { position: absolute; top: 10px; width: 116px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.rail.left { left: 10px; } .rail.right { right: 10px; }
.rail-sec { --rail-accent: var(--text-muted); position: relative; display: flex; flex-direction: column; gap: 2px; padding: 4px; background: rgba(26, 31, 46, .92); border: 1px solid var(--border); border-radius: 6px; }
.rail.left .rail-sec { border-left: 2px solid var(--rail-accent); }
.rail.right .rail-sec { border-right: 2px solid var(--rail-accent); }
.rail-sec:not(:has(> :not(.rail-title):not([hidden]):not(.away))) { display: none; }    /* nothing in it: no section */
.rail-sec.draw { --rail-accent: #6fcf97; } .rail-sec.change { --rail-accent: #e6d34f; } .rail-sec.edit { --rail-accent: #e0b060; }
.rail-sec.tools { --rail-accent: #4f8cff; } .rail-sec.look { --rail-accent: #b088ff; } .rail-sec.select { --rail-accent: #4fd1c5; }
.rail-sec.assembly { --rail-accent: #ff7ab6; }
.rail-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--rail-accent); padding: 1px 4px 2px; }
.rail-label { font-size: 11px; color: var(--text-muted); padding: 2px 4px 0; }
.rail button { display: flex; align-items: center; gap: 6px; width: 100%; height: 26px; padding: 0 6px; background: transparent; border-color: transparent; text-align: left; white-space: nowrap; }
.rail button .ico { width: 16px; flex: none; text-align: center; font-size: 13px; line-height: 1; }
.rail button:hover { background: var(--btn-hover); }
.rail button.on { background: var(--rail-accent); border-color: transparent; color: #10131b; font-weight: 600; }
.rail select, .rail input { width: 100%; }
.rail input[type=range] { padding: 0; margin: 4px 0; }
.rail .txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rail.icon .rail-sec { padding: 2px; }
.rail.icon :is(.txt, .rail-title, .rail-label) { display: none; }
.rail.icon button { justify-content: center; padding: 0; }
.rail.icon .rail-sec > select { font-size: 0; padding: 5px 0; }
.rail.icon #sketchValue { width: 100%; padding: 3px 1px; text-align: center; font-size: 11px; }
.rail-grip { position: absolute; top: 0; bottom: 0; width: 11px; display: flex; justify-content: center; cursor: col-resize; touch-action: none; }
.rail.left .rail-grip { right: -8px; } .rail.right .rail-grip { left: -8px; }
.rail-grip::before { content: ''; width: 3px; margin: 6px 0; border-radius: 3px; background: var(--border-strong); opacity: 0; transition: opacity .12s; }
.rail:hover .rail-grip::before { opacity: 1; }
.rail-grip:hover::before, .rail-grip.dragging::before { opacity: 1; background: var(--accent); }
.rail-pop { position: absolute; left: calc(100% + 6px); bottom: 0; width: 150px; display: flex; flex-direction: column; gap: 6px; padding: 6px; background: rgba(26, 31, 46, .96); border: 1px solid var(--border); border-left: 2px solid var(--rail-accent); border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
/* under the navigation cube: the camera */
.view-tools { position: absolute; top: 124px; width: 110px; display: flex; flex-direction: column; gap: 4px; z-index: 3; }
.view-tools .row { display: flex; gap: 4px; }
.view-tools .row button { flex: 1; padding: 3px 0; background: rgba(36, 42, 58, .92); }
.view-tools select { padding: 4px 6px; font-size: 11px; background: rgba(18, 22, 32, .92); }
.hint { position: absolute; right: 12px; bottom: 10px; color: var(--text-muted); font-size: 11px; text-align: right; pointer-events: none; }
/* building: how far along (by how long it took last time), and under it how long the last build took */
.build { position: absolute; left: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 12px; pointer-events: none; }
#compare:not([hidden]) ~ .build { bottom: 56px; }
.busy { min-width: 250px; max-width: 420px; color: var(--warn); background: rgba(26, 31, 46, .92); border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; }
.busy .track { height: 4px; margin-top: 6px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.busy .track[hidden] { display: none; }
.busy .track i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--warn); transition: width .15s linear; }
.busy .track.unknown i { width: 30%; animation: sweep 1.2s ease-in-out infinite alternate; transition: none; }
.busy .track.over i { animation: throb .8s ease-in-out infinite alternate; }
@keyframes sweep { from { margin-left: 0; } to { margin-left: 70%; } }
@keyframes throb { from { opacity: 1; } to { opacity: .45; } }
.last { color: var(--text-muted); background: rgba(26, 31, 46, .7); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; pointer-events: auto; cursor: default; }
.last b { color: var(--text); font-weight: 600; }
.last.failed b { color: var(--err, #e0707a); }

/* cards: label | value rows */
.card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; margin: 0 0 10px; }
.card h2 { font-size: 15px; color: var(--text-bright); margin: 0; font-weight: 600; }
.row { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; }
.row > .k { flex: 0 0 42%; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }
.row > .v { flex: 1; text-align: right; overflow-wrap: anywhere; }
.row .x { flex: none; padding: 0 6px; border: 0; background: none; color: var(--text-muted); }
.row .x:hover { color: var(--err); background: none; }
.line { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.line > input, .line > select { flex: 1; }
.line.even { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.line.even > button { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a row whose controls come first, each in a column of its own: they run in line down the list */
.row.lead { display: grid; align-items: center; column-gap: 6px; }
.row.lead.seen { grid-template-columns: 22px auto minmax(0, 1fr); }
.row.lead.parts { grid-template-columns: repeat(4, 20px) minmax(0, 1fr) auto; column-gap: 0; }
.row.lead.parts > b { margin-left: 4px; }
.row.lead.parts .x { width: 20px; }
.row.lead .x { width: 22px; padding: 0; text-align: center; }
.row.lead > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.lead > .v { flex: none; }
.lead-under { padding-left: calc(4 * 20px + 4px); }
.pill { display: inline-block; border-radius: 10px; padding: 1px 9px; font-size: 11px; font-weight: 600; border: 1px solid currentColor; }
.doc { white-space: pre-wrap; margin: 0; color: var(--text); font: inherit; }
.check { padding: 5px 0; border-top: 1px solid var(--border); }
.check:first-of-type { border-top: 0; }
.check .why { color: var(--text-muted); font-size: 11.5px; }
.tag, .part { cursor: pointer; }
.part.sel, .tag.sel { box-shadow: inset 2px 0 var(--accent); padding-left: 8px; margin-left: -8px; }
.measured { margin-top: 8px; }
/* Motion: a row per joint, its slider under it; a joint pointed at shows its axis in the view */
.joint .kind { display: inline-block; width: 16px; color: var(--accent); }
.joint .x.lock { font-size: 11px; }
.joint .x.lock.on { color: var(--warn); font-weight: 600; }
.joint .line { margin-top: 4px; }
.joint input[type=range] { flex: 1; min-width: 0; }
.joint input.num { flex: 0 0 62px; text-align: right; }
.joint .unit { flex: none; min-width: 18px; }
.joint .why .mono { margin-top: 2px; }
.joint:hover { box-shadow: inset 2px 0 var(--accent); padding-left: 8px; margin-left: -8px; }
/* what the server works out (canvas/facts.js): a short line under a joint, a pose, a row of the BOM */
.fact { color: var(--text-muted); font-size: 11.5px; overflow-wrap: anywhere; }
.fact.ok { color: var(--ok); } .fact.warn { color: var(--warn); } .fact.err { color: var(--err); }
.pose.on { box-shadow: inset 2px 0 var(--accent); padding-left: 8px; margin-left: -8px; }
.pose .row button { flex: none; padding: 1px 10px; }
.card label { display: inline-flex; gap: 5px; align-items: center; color: var(--text-muted); }
.row > .v select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
.big { font-size: 15px; color: var(--text-bright); }
/* the length of a measured line, written beside it in the view */
#dim { position: absolute; left: 0; top: 0; background: rgba(16, 19, 27, .88); border: 1px solid #5fd0ff; color: #bfeaff; border-radius: 4px; padding: 1px 7px; font-size: 12.5px; font-weight: 600; pointer-events: none; white-space: nowrap; z-index: 2; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
details summary { cursor: pointer; color: var(--text-muted); }
pre.src { margin: 8px 0 0; max-height: 320px; overflow: auto; background: var(--bg-body); border: 1px solid var(--border); border-radius: 4px; padding: 8px; }

dialog { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border-strong); border-radius: 8px; padding: 18px 20px; width: min(680px, 92vw); }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
dialog h2 { margin: 0 0 4px; color: var(--text-bright); font-size: 16px; }
dialog h3 { margin: 16px 0 4px; font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
dialog code, dialog pre { background: var(--bg-body); border: 1px solid var(--border); border-radius: 4px; }
dialog code { padding: 1px 5px; }
dialog pre { padding: 8px; overflow-x: auto; user-select: all; margin: 6px 0; }
dialog.ask { width: min(420px, 92vw); }      /* the page's own alert and confirm */

/* the projects, in a sheet of their own: a row each, and at its end what can be done with it */
#project { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; color: var(--text-bright); font-weight: 500; }
#projectName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.projects { margin: 12px -20px 0; max-height: 44vh; overflow-y: auto; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.projects .item { padding: 7px 20px; }
.projects .item:hover, .projects .item.asking { background: var(--bg-surface); }
.projects .item.asking { cursor: default; white-space: normal; }
.projects .item a { flex: none; }
#projectsError:empty { display: none; }

/* the start page */
.start { max-width: 560px; margin: 0 auto; padding: 12vh 20px 40px; }
.start h1 { font-size: 30px; letter-spacing: .2em; color: var(--text-bright); margin: 0; font-weight: 600; }
.start .tag { color: var(--accent); margin: 4px 0 22px; cursor: default; }
.start p { line-height: 1.6; }
.start .card { padding: 16px; margin-top: 22px; }
.start input { width: 100%; font-size: 14px; padding: 9px 10px; }
.start button { width: 100%; margin-top: 12px; padding: 10px; font-size: 13px; }
.start footer { margin-top: 26px; text-align: center; font-size: 11.5px; color: var(--text-muted); }

@media (max-width: 1000px) {
  .app { grid-template: 64px 55vh auto / 1fr; height: auto; } aside, .app > .side-edge { display: none; }
  .app > .view { grid-area: 2 / 1; } .app > .panel, .app.side-right-closed > .panel { grid-area: 3 / 1; display: block; border-left: 0; }
}

/* a newer build is online than the one this page runs */
.newer { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 950; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; background: var(--bg-elevated); border: 1px solid var(--accent); border-radius: 6px; box-shadow: 0 8px 28px rgba(0, 0, 0, .5); font-size: 12px; font-weight: 500; color: var(--text-bright); }
.newer button { background: var(--accent); color: #fff; border: 0; border-radius: 4px; padding: 6px 12px; }
.newer.coming { padding-right: 16px; }
.newer .track { width: 90px; height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.newer .track i { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }

/* a slider made a number and an icon (dial.js): the icon has a line under it, as long as how far along the value is;
   a click on it opens the sheet, a slider on top and presets under it */
.dial { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.dial > input[type=range][data-dialled] { display: none; }
.dial-ico { position: relative; flex: none; width: 26px; height: 24px; padding: 0; display: grid; place-items: center; font-size: 13px; line-height: 1; }
.dial-ico::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 2px; background: linear-gradient(90deg, var(--accent) var(--p, 0%), rgba(255, 255, 255, .12) var(--p, 0%)); }
.dial-num { width: 58px; padding: 3px 6px; text-align: right; }
.dial-unit { flex: none; color: var(--text-muted); font-size: 11px; }
.rail .dial { width: 100%; }
.rail .dial-ico { width: 26px; height: 24px; padding: 0; justify-content: center; }
.rail .dial .dial-num { flex: 1; width: auto; }
.rail.icon .rail-sec > .dial { flex-direction: column; gap: 2px; }
.rail.icon .rail-sec > .dial .dial-num { width: 100%; padding: 2px 1px; text-align: center; font-size: 11px; }
.rail.icon .rail-sec > .dial .dial-unit { display: none; }
.joint .dial { flex: 1; }
.joint .dial input.num { flex: 1; }
.dial-pop { position: fixed; z-index: 960; width: 272px; padding: 10px 12px 12px; background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .55); outline: none; user-select: none; }
.term-bar button { white-space: nowrap; }
.term-size { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; }
.term-size b { min-width: 2ch; text-align: center; font-weight: 600; color: var(--text-muted); font-size: 12px; }
.term-size button { padding: 2px 7px; }
/* the Terminal panel with files held over it: they are given to what runs there (terminal.js attach) */
.term.dropping .term-body { outline: 2px dashed var(--accent); outline-offset: -6px; }
.term.dropping .term-body::after { content: 'Drop: kept in the project\'s attachments/ and given to the agent'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 14px; background: rgba(5, 7, 12, .9); border: 1px solid var(--accent); color: var(--text-bright); font-size: 13px; pointer-events: none; }
/* a sheet beside the panel for what is seldom typed (pop.js): a joint's every property, its range */
.edit-pop { width: 300px; max-height: calc(100vh - 16px); overflow: auto; user-select: text; }
.edit-pop.wide { width: 360px; }
.edit-pop .pop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.edit-pop .line input:not([type=checkbox]), .edit-pop .line select { min-width: 0; }
.edit-pop .line input[data-r] { flex: 1; }
.edit-pop p.muted { margin: 6px 0 0; font-size: 11.5px; }
button.inline { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; border-bottom: 1px dotted var(--text-muted); border-radius: 0; }
button.inline:hover { color: var(--text-bright); border-bottom-color: var(--accent); }
.dial-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.dial-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.dial-read { font-size: 22px; font-weight: 600; line-height: 1; color: var(--text-bright); white-space: nowrap; }
.dial-read small, .dial-ends small { margin-left: 2px; font-size: .6em; color: var(--text-muted); }
.dial-track { position: relative; height: 24px; margin: 0 2px; cursor: ew-resize; touch-action: none; }
.dial-track::before { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 8px; background: rgba(255, 255, 255, .06); }
.dial-ticks { position: absolute; inset: 0; }
.dial-ticks i { position: absolute; bottom: 0; width: 1px; height: 5px; background: var(--border-strong); }
.dial-ticks i.big { height: 9px; }
.dial-fill { position: absolute; left: 0; top: 5px; height: 8px; width: var(--p); background: var(--accent); }
.dial-knob { position: absolute; top: 1px; left: var(--p); width: 4px; height: 16px; margin-left: -2px; background: var(--text-bright); }
.dial-ends { display: flex; justify-content: space-between; margin-top: 2px; font-size: 10.5px; color: var(--text-muted); }
.dial-presets { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 10px; }
.dial-presets button { grid-column: span 2; padding: 4px 0; font-size: 12px; }
.dial-presets [data-p="default"], .dial-presets [data-p="last"] { grid-column: span 5; }


/* Motion's timeline along the bottom of the view (timeline.js): the transport, a ruler, a line of all keys, and dragged
   taller a line per joint, a string with its keys on it. The playhead runs down every line. */
.view { --tl-h: 0px; }
.view.timed .build, .view.timed .hint { bottom: calc(var(--tl-h) + 10px); }
.timeline { --name: 150px; position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; flex-direction: column; background: rgba(16, 19, 27, .94); border-top: 1px solid var(--border-strong); user-select: none; }
.tl-grip { position: absolute; left: 0; right: 0; top: -4px; height: 8px; cursor: row-resize; touch-action: none; z-index: 2; }
.tl-grip:hover, .tl-grip:active { background: linear-gradient(transparent 3px, var(--accent) 3px 5px, transparent 5px); }
body.row-resizing, body.row-resizing * { cursor: row-resize !important; user-select: none; }
.tl-bar { flex: none; display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px; border-bottom: 1px solid var(--border); overflow: hidden; }
.tl-bar button { flex: none; height: 24px; min-width: 28px; padding: 0 7px; font-size: 12px; }
.tl-bar .num { flex: none; width: 54px; padding: 2px 5px; text-align: right; }
.tl-bar [data-tlf="fps"] { width: 38px; }
.tl-lbl { flex: none; color: var(--text-muted); font-size: 11px; }
.tl-sec { flex: none; width: 60px; text-align: right; color: var(--text-muted); }
.tl-sep { flex: none; width: 1px; align-self: stretch; margin: 7px 4px; background: var(--border); }
.tl-sp { flex: 1; }
.tl-tip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 11px; }
.tl-auto.on { color: var(--err); border-color: var(--err); }
.tl-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.tl-row { display: flex; height: 22px; }
.tl-name { flex: 0 0 var(--name); display: flex; align-items: center; gap: 5px; min-width: 0; padding: 0 4px 0 10px; overflow: hidden; white-space: nowrap; font-size: 12px; border-right: 1px solid var(--border); }
.tl-name b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.tl-name .tl-v { margin-left: auto; color: var(--text-muted); font-size: 11px; }
.tl-k { flex: none; width: 12px; text-align: center; color: var(--accent); }
.tl-one { flex: none; height: 18px; padding: 0 4px; border: 0; background: none; color: var(--text-muted); font-size: 10px; }
.tl-one:hover { background: none; color: var(--accent); }
.tl-lane { position: relative; flex: 1; min-width: 0; cursor: ew-resize; }
.tl-lane:hover { background: rgba(255, 255, 255, .025); }
.tl-track { position: absolute; top: 0; bottom: 0; left: 12px; right: 16px; }
.tl-track::after { content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--f, 0) * 100%); width: 1px; background: var(--accent); pointer-events: none; }
.tl-ruler { height: 22px; border-bottom: 1px solid var(--border); }
.tl-tick { position: absolute; bottom: 0; height: 100%; padding-left: 3px; border-left: 1px solid var(--border-strong); font-size: 10px; line-height: 13px; color: var(--text-muted); pointer-events: none; }
.tl-sub { position: absolute; bottom: 0; height: 4px; border-left: 1px solid var(--border); pointer-events: none; }
.tl-flag { position: absolute; top: 1px; left: calc(var(--f, 0) * 100%); z-index: 1; transform: translateX(-50%); padding: 0 5px; font-size: 10px; line-height: 14px; background: var(--accent); color: #000; border-radius: 2px; pointer-events: none; }
.tl-all { border-bottom: 1px solid var(--border); }
.tl-string { position: absolute; left: -12px; right: -16px; top: 50%; height: var(--s, 1px); transform: translateY(-50%); background: var(--border-strong); pointer-events: none; }
.tl-joint.locked { opacity: .5; }
.tl-d { position: absolute; top: 50%; z-index: 1; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; transform: rotate(45deg); background: var(--text); border: 1px solid #000; cursor: grab; }
.tl-all .tl-d { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
.tl-d.now { background: var(--warn); }
.tl-d.sel { background: var(--accent); box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
/* a light's line, the room's and the haze's: warm */
.tl-lit .tl-k { color: var(--warn); }
.tl-lit .tl-string { background: rgba(255, 196, 64, .35); }
/* the action line: flags, not diamonds; the menu of the one pointed at above it */
.tl-acts { border-bottom: 1px solid var(--border); }
.tl-acts .tl-k { color: var(--warn); font-weight: 700; }
.tl-d.tl-a { width: auto; height: 16px; margin: -8px 0 0 -1px; transform: none; padding: 0 4px; display: flex; align-items: center; border: 0; border-left: 2px solid var(--warn);
  border-radius: 0 3px 3px 0; background: rgba(255, 196, 64, .16); color: var(--warn); font-size: 10px; white-space: nowrap; }
.tl-d.tl-a b { font-weight: 700; }
.tl-d.tl-a.goto { border-left-color: var(--accent); background: rgba(120, 170, 255, .16); color: var(--accent); }
.tl-d.tl-a.now { background: rgba(255, 196, 64, .34); }
.tl-d.tl-a.sel { background: var(--accent); color: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); }
.tl-menu { position: absolute; z-index: 6; display: flex; align-items: center; gap: 4px; padding: 4px 6px; background: rgba(22, 27, 39, .98); border: 1px solid var(--border-strong);
  border-radius: 4px; box-shadow: 0 4px 16px rgba(0, 0, 0, .5); font-size: 11px; white-space: nowrap; }
.tl-menu b { margin-right: 4px; }
.tl-menu button { height: 22px; padding: 0 6px; font-size: 11px; }
.tl-menu button.on { color: var(--accent); border-color: var(--accent); }
.tl-menu input.num { width: 46px; height: 22px; }
.timeline.playing .tl-joint.on .tl-string { animation: tl-twang .08s linear infinite alternate; }
@keyframes tl-twang { from { transform: translateY(calc(-50% - .6px)); } to { transform: translateY(calc(-50% + .6px)); } }
@media (prefers-reduced-motion: reduce) { .timeline.playing .tl-joint.on .tl-string { animation: none; } }
.tl-tick.end { transform: translateX(-100%); padding: 0 3px 0 0; border-left: 0; border-right: 1px solid var(--border-strong); }

/* the Notes as a tree: the main assembly first, then the other designs, then the shared modules */
.item.twig { gap: 6px; }
.twist { flex: none; width: 14px; color: var(--text); font-size: 13px; text-align: center; cursor: pointer; }
.twist[data-twig]:hover { color: var(--text-bright); }
.item small.main { color: var(--accent); }
.twig-head { padding: 10px 14px 3px; color: var(--text-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.item.guess, .item.shared { white-space: normal; font-size: 11px; cursor: default; }

/* the video rendered in the background, played over the view */
/* Docs: the project's words and scripts, over the view and the panel (docs.js) */
.app > .docs { grid-area: 2 / 2 / 3 / 4; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg-body); border-left: 1px solid var(--border); }
body[data-room="docs"] .app > .view, body[data-room="docs"] .app > .panel { display: none; }
.docs-bar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--border); background: var(--bg-surface); }
.docs-bar .sp { flex: 1; }
.docs-path { font-weight: 700; color: var(--text-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docs-what { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docs-dirty { color: var(--warn, #ffb347); }
#docsNewPath { width: min(420px, 50%); padding: 5px 8px; color: var(--text-bright); background: var(--bg-body); border: 1px solid var(--accent); font: inherit; }
.docs-body { flex: 1; min-height: 0; display: flex; }
.docs-edit, .docs-read { flex: 1; min-width: 0; min-height: 0; }
.docs-edit > .cm-editor { height: 100%; }
.docs-edit[hidden], .docs-read[hidden] { display: none; }
.docs-read.brief-doc { max-height: none; margin: 0; border: 0; border-radius: 0; padding: 14px 32px 40vh; background: transparent; }
.docs-plain { width: 100%; height: 100%; box-sizing: border-box; padding: 14px 22px; resize: none; border: 0; outline: 0; color: var(--text); background: transparent; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
#docsList { display: flex; flex-direction: column; gap: 1px; padding-bottom: 10px; }
.docs-group { padding: 10px 14px 3px; color: var(--text-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; cursor: default; }
.docs-monet summary { cursor: pointer; list-style: none; } .docs-monet summary::-webkit-details-marker { display: none; }
.docs-monet[open] summary { color: var(--text); }
button.docs-file { display: block; width: 100%; text-align: left; padding: 4px 14px; border: 0; background: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
button.docs-file.on { color: var(--accent); background: rgba(94, 246, 255, .07); }
.docs-help { display: block; padding: 12px 14px 0; font-size: 12px; color: var(--text-muted); }
/* Markdown drawn whole (Read; markdown.js) */
.brief-doc { overflow: auto; min-height: 120px; max-height: 62vh; margin: 10px 0 4px; padding: 4px 16px 10px; background: var(--bg-body); border: 1px solid var(--border); border-radius: 6px; line-height: 1.6; font-size: 14.5px; }
.brief-doc > :first-child { margin-top: 4px; }
.brief-doc h1 { font-size: 26px; margin: 18px 0 8px; color: var(--text-bright); } .brief-doc h2 { font-size: 21px; margin: 20px 0 6px; color: var(--text-bright); }
.brief-doc h3 { font-size: 17px; margin: 18px 0 4px; color: var(--text-bright); } .brief-doc :is(h4, h5, h6) { margin: 12px 0 2px; font-size: 14px; color: var(--text-bright); }
.brief-doc p { margin: 6px 0; } .brief-doc ul, .brief-doc ol { margin: 4px 0; padding-left: 22px; } .brief-doc li { margin: 2px 0; }
.brief-doc li.todo, .brief-doc li.done { list-style: none; margin-left: -18px; }
.brief-doc li.todo::before { content: '☐ '; color: var(--warn); } .brief-doc li.done::before { content: '☑ '; color: var(--ok, #6fcf97); }
.brief-doc li.done { color: var(--text-muted); }
.brief-doc a { color: var(--accent); }
.brief-doc pre { user-select: text; white-space: pre-wrap; padding: 8px 12px; background: var(--bg-surface); border: 1px solid var(--border); }
.brief-doc code { font-family: 'Share Tech Mono', ui-monospace, monospace; color: var(--yellow, #ffd23f); }
.brief-doc pre code { color: var(--text); }
.brief-doc blockquote { margin: 8px 0; padding: 2px 14px; border-left: 3px solid var(--border-strong); color: var(--text-muted); }
.brief-doc hr { border: 0; border-top: 1px solid var(--border-strong); margin: 16px 0; }
.brief-doc table { border-collapse: collapse; margin: 8px 0; } .brief-doc :is(th, td) { padding: 4px 10px; border: 1px solid var(--border); text-align: left; }
.brief-doc th { color: var(--text-bright); background: var(--bg-surface); }
.brief-doc img { max-width: 100%; }
/* another Note on its way: the one in the frame fades, and the frame says what is coming */
#gl { transition: opacity .15s; }
.view.fetching #gl { opacity: .22; }
.arriving { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 5; min-width: 240px; padding: 12px 18px 14px; display: flex; flex-direction: column; gap: 4px; align-items: center;
  background: rgba(16, 19, 27, .92); border: 1px solid var(--border-strong); border-radius: 6px; pointer-events: none; }
.arriving[hidden] { display: none; }
.arriving span { color: var(--text-muted); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.arriving b { font-size: 18px; color: var(--warn); }
.arriving i { display: block; align-self: stretch; height: 4px; margin-top: 6px; background: linear-gradient(90deg, transparent, var(--warn), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: arriving 1.1s linear infinite; }
@keyframes arriving { from { background-position: -70% 0; } to { background-position: 170% 0; } }
.film-player { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; background: rgba(5, 7, 12, .92); }
.film-player video { flex: 1; min-height: 0; width: 100%; object-fit: contain; background: #000; }
.film-bar { display: flex; gap: 12px; align-items: center; padding: 8px 14px; color: var(--text-muted); font-size: 12px; }
.film-bar span { flex: 1; }
.film-bar a { color: var(--accent); }
.film-bar button { padding: 2px 9px; }

/* the terminal (terminal.js): along the bottom of the view, over the timeline; this page to Monet local on this computer.
   Green phosphor on black, a little glow, the lines of an old tube over it */
.view { --term-h: 0px; }
.view.termed .build, .view.termed .hint { bottom: calc(var(--term-h) + 10px); }
.term { --ph: #5dff9b; position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; display: flex; flex-direction: column; background: #050b09; border-top: 1px solid var(--ph); box-shadow: 0 -8px 30px rgba(93, 255, 155, .10); }
.term[hidden] { display: none; }
.term-grip { position: absolute; left: 0; right: 0; top: -4px; height: 8px; cursor: row-resize; touch-action: none; z-index: 3; }
.term-grip:hover, .term-grip:active { background: linear-gradient(transparent 3px, var(--ph) 3px 5px, transparent 5px); }
.term-bar { flex: none; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px; background: #08130f; border-bottom: 1px solid rgba(93, 255, 155, .28); }
.term-bar .sp { flex: 1; }
.term-bar button { height: 24px; padding: 0 9px; }
.term-tabs { display: flex; gap: 4px; }
.term-tabs i { color: var(--ph); font-style: normal; font-size: 9px; vertical-align: 1px; }
.term-where { margin-left: 8px; color: #5b8a72; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-where.warn { color: var(--warn); }
.term-body { position: relative; flex: 1; min-height: 0; background: radial-gradient(ellipse at 50% 0%, #0b1a14, #040807 75%); }
.term-body::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .22) 2px 3px); }
.term-x { position: absolute; inset: 6px 4px 4px 10px; }
.term-x .xterm-rows { text-shadow: 0 0 5px currentColor; }
.term-x .xterm-viewport { background: transparent !important; }
.term-help { position: absolute; inset: 0; overflow: auto; padding: 16px 20px; font-size: 12.5px; color: #b6ffd0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.term-help > * { max-width: 900px; }
.term-help h3 { margin: 0 0 10px; color: var(--ph); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 0 8px rgba(93, 255, 155, .6); }
.term-help p { margin: 8px 0; }
.term-help a { color: #5ef6ff; }
.term-help .muted { color: #5b8a72; line-height: 1.5; }
.term-help code { color: #b6ffd0; }
.term-cmd { display: flex; gap: 8px; align-items: stretch; }
.term-cmd pre { flex: 1; min-width: 0; margin: 0; padding: 10px 12px; background: #020504; border: 1px solid rgba(93, 255, 155, .45); border-radius: 4px; color: var(--ph); font-size: 12px; white-space: pre-wrap; word-break: break-all; user-select: all; text-shadow: 0 0 5px rgba(93, 255, 155, .5); }
.term-cmd button { flex: none; border-color: var(--ph); color: var(--ph); }
.term-wait { color: #8dffb8; }
.term-wait i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--ph); box-shadow: 0 0 8px var(--ph); animation: term-pulse 1.2s ease-in-out infinite; }
@keyframes term-pulse { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .term-wait i { animation: none; } }

/* Find (find.js): the box at the top of the panel beside the view; every list keeps what matches */
.panel > .find { position: sticky; top: -10px; z-index: 3; display: flex; align-items: center; gap: 6px; margin: -10px -10px 10px; padding: 10px 10px 8px; background: var(--bg-surface); border-bottom: 1px solid var(--border); }
.panel > .find input { flex: 1; }
.find-n { flex: none; color: var(--accent); font-size: 11px; white-space: nowrap; }
.find-n:empty { display: none; }
.item.twig.way { color: var(--text-muted); }
.item.twig.way .dot { opacity: .45; }
small.hits, .fold .hits { color: var(--accent); }
.fold .hits { text-transform: none; letter-spacing: 0; margin-left: 4px; }
.card.found > .body { display: block; }
.card.found > .fold .chev::before { content: '▾'; }
.card.missed > .body { display: none; }
.card.missed > .fold .chev::before { content: '▸'; }
.card .body > [hidden], aside .body > [hidden], aside .item[hidden] { display: none !important; }
.check.editing { padding-left: 8px; box-shadow: inset 2px 0 var(--accent); }
.check.editing .line { margin-top: 6px; }
/* the Claude plan's usage over the terminal (terminal.js plan(), from Monet local's usage.py) */
.term-usage { display: flex; gap: 12px; margin-right: 6px; font-size: 11px; color: #8dffb8; white-space: nowrap; }
.term-usage:empty { display: none; }
.term-usage .use { display: inline-flex; align-items: center; gap: 5px; }
.term-usage b { font-weight: 500; color: #5b8a72; }
.term-usage i { position: relative; display: inline-block; width: 54px; height: 6px; border: 1px solid rgba(93, 255, 155, .45); border-radius: 1px; }
.term-usage s { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ph); box-shadow: 0 0 6px var(--ph); text-decoration: none; }
.term-usage .warm { color: #ffd75e; } .term-usage .warm s { background: #ffd75e; box-shadow: 0 0 6px #ffd75e; }
.term-usage .hot { color: #ff6b81; } .term-usage .hot s { background: #ff6b81; box-shadow: 0 0 6px #ff6b81; }
.term-usage .old { opacity: .55; }
@media (max-width: 900px) { .term-usage b { display: none; } .term-usage i { width: 30px; } }

/* a pop-up of the right rail opens to its left (the Picture's size) */
.rail.right .rail-pop { left: auto; right: calc(100% + 6px); }

/* a shared study (/s/<token>): only what plays it, and a note for GitHub beside it (share.js) */
body[data-share] .app { --l: 0px; }
body[data-share] .app > aside, body[data-share] .app > .side-edge, body[data-share] header .rooms, body[data-share] #termBtn, body[data-share] #logout,
body[data-share] #usersLink, body[data-share] #project .chev, body[data-share] .rail.left .motion, body[data-share] .panel .find { display: none !important; }
body[data-share] #project { pointer-events: none; }
.timeline.ro :is([data-tl="key"], [data-tl="auto"], [data-tl="del"]) { display: none; }
.timeline.ro :is([data-tlf="length"], [data-tlf="fps"]) { pointer-events: none; border-color: transparent; background: transparent; }
.sh-overlay { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.sh-overlay.on { pointer-events: auto; cursor: crosshair; }
.sh-tools { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 7; display: flex; align-items: center; gap: 4px; padding: 6px 8px;
  background: var(--bg-elevated); border: 1px solid var(--border-strong); }
.sh-tools[hidden] { display: none; }
.sh-tools button { min-width: 30px; padding: 3px 7px; }
.sh-tools button small { font-size: 10px; margin-left: 2px; }
.sh-tools .sh-c { width: 24px; min-width: 24px; height: 24px; padding: 0; background: var(--c) !important; border-color: transparent !important; clip-path: none !important; }
.sh-tools .sh-c.on { outline: 2px solid var(--text-bright); outline-offset: 2px; }
.sh-sep { width: 1px; align-self: stretch; margin: 0 4px; background: var(--border-strong); }
.share-card .sh-l { display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 4px; margin: 10px 0 0; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.share-card .sh-l :is(input, textarea) { width: 100%; box-sizing: border-box; padding: 7px 9px; color: var(--text-bright); background: var(--bg-body); border: 1px solid var(--border-strong); font: 14px/1.45 inherit; text-transform: none; letter-spacing: 0; resize: vertical; }
.share-card .sh-row { margin-top: 10px; gap: 8px; align-items: center; flex-wrap: wrap; }
.share-card .sh-how { margin-top: 14px; font-size: 12px; }
