/* Bloomtwin's partner dashboard. The ground and accent are the app's (#0d211b, #e36148); the faces are
   the app's two, Gliker for headings and Nunito for everything else. */

@font-face { font-family: 'Gliker'; src: url("fonts/Gliker-Bold.f16a1adb3e7f.woff2") format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Gliker'; src: url("fonts/Gliker-Black.3de44b078d59.woff2") format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url("fonts/nunito-latin.acfce21e9f6e.woff2") format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  --ground: #0d211b;
  --ground-2: #0a1a15;
  --panel: #14302a;
  --panel-2: #1a3a32;
  --panel-3: #21463c;
  --line: rgba(234, 242, 236, .09);
  --line-2: rgba(234, 242, 236, .16);
  --text: #eaf2ec;
  --muted: #9fb5aa;
  --faint: #6f877c;
  --mint: #b9e4c6;
  --green: #5bb874;
  --accent: #e36148;
  --accent-2: #f07b63;
  --amber: #e8a23a;
  --blue: #5aa7d6;
  --violet: #b583d9;
  --danger: #ef6b5b;
  --paper: #f6f3ec;
  --ink: #0d211b;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px rgba(0, 0, 0, .25);
  --display: 'Gliker', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--text); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: .005em; }
h1 { font-size: 34px; line-height: 1.1; font-weight: 900; }
h2 { font-size: 20px; line-height: 1.25; }
h3 { font-size: 16px; line-height: 1.3; }
p { margin: 0 0 10px; }
small, .muted { color: var(--muted); }
.faint { color: var(--faint); }
code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* Frame */
.frame { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--ground-2); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 8px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-family: var(--display); font-size: 18px; line-height: 1; }
.brand span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--muted); font-weight: 700; }
.nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.nav a.on { background: var(--panel-2); color: var(--text); }
.nav a.on .icon { color: var(--accent); }
.nav .sep { height: 1px; background: var(--line); margin: 8px 6px; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px 2px; border-top: 1px solid var(--line); }
.side-foot .who { min-width: 0; flex: 1; }
.side-foot .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who small { font-size: 12px; }

.switcher { position: relative; }
.switcher summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.switcher summary::-webkit-details-marker { display: none; }
.switcher summary:hover { border-color: var(--line-2); }
.switcher .chev { margin-left: auto; color: var(--muted); }
.switcher[open] summary { border-color: var(--line-2); }
.switcher .menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); max-height: 60vh; overflow-y: auto; }
.switcher .menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; background: none; color: var(--text); border-radius: 8px; font: inherit; text-align: left; cursor: pointer; }
.switcher .menu button:hover, .switcher .menu button.on { background: var(--panel-3); }
.co-badge { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-family: var(--display); font-size: 13px; color: #fff; flex: none; }
.co-name { min-width: 0; }
.co-name b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-name small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.main { padding: 28px 36px 64px; min-width: 0; }
.head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head .titles { flex: 1; min-width: 240px; }
.eyebrow { color: var(--green); font-weight: 800; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.lede { color: var(--mint); font-family: var(--display); font-size: 17px; margin-top: 8px; }
.head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.crumbs a { color: var(--muted); }

/* Surfaces */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card + .card { margin-top: 16px; }
.card > h2, .card > h3, .card-head { margin-bottom: 12px; }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-head h2, .card-head h3 { margin: 0; flex: 1; }
.card.flat { box-shadow: none; }
.card.paper { background: var(--paper); color: var(--ink); }
.card.accent { border-color: rgba(227, 97, 72, .55); background: linear-gradient(180deg, rgba(227, 97, 72, .08), transparent 60%), var(--panel); }
.grid { display: grid; gap: 16px; }
.grid > .card + .card, .stats > .card + .card { margin-top: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.g-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

/* Figures */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .n { font-family: var(--display); font-size: 32px; font-weight: 900; line-height: 1; }
.stat .n.withheld { font-size: 18px; color: var(--muted); font-family: var(--body); font-weight: 800; }
.stat .l { color: var(--muted); font-weight: 700; font-size: 13px; }
.stat .s { color: var(--faint); font-size: 12px; }
.stat.big .n { font-size: 44px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stats .card { padding: 16px 18px; }

.bars { display: flex; flex-direction: column; gap: 8px; }
.bar { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.bar .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .track { display: block; height: 10px; background: rgba(255, 255, 255, .05); border-radius: 99px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: var(--green); border-radius: 99px; min-width: 3px; }
.bar .fill.accent { background: var(--accent); }
.bar .fill.amber { background: var(--amber); }
.bar .fill.blue { background: var(--blue); }
.bar .fill.violet { background: var(--violet); }
.bar .v { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; }
.bar a.label { color: var(--text); }

.spark { display: flex; align-items: flex-end; gap: 4px; height: 64px; }
.spark i { flex: 1; background: var(--green); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.spark i:last-child { background: var(--accent); opacity: 1; }

.share { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.ring { display: flex; align-items: center; gap: 10px; }
.ring svg { width: 46px; height: 46px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .bg { stroke: rgba(255, 255, 255, .07); }
.ring .fg { stroke: var(--green); stroke-linecap: round; }
.ring b { display: block; font-size: 16px; }
.ring small { font-size: 12px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; color: var(--muted); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.link { cursor: pointer; }
.t tr.link:hover td { background: rgba(255, 255, 255, .025); }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.t td.wrap { white-space: normal; }
.t .folded td { color: var(--muted); font-style: italic; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.pill.green { background: rgba(91, 184, 116, .16); color: #8fd6a2; }
.pill.accent { background: rgba(227, 97, 72, .18); color: #ff9c86; }
.pill.amber { background: rgba(232, 162, 58, .17); color: #f2c178; }
.pill.blue { background: rgba(90, 167, 214, .17); color: #93c9ea; }
.pill.violet { background: rgba(181, 131, 217, .17); color: #d2b0ec; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--panel-3); display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--mint); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.l { width: 64px; height: 64px; font-size: 22px; }
.who-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who-line b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.by { color: var(--faint); font-size: 12px; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: 800 14px/1.2 var(--body); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--panel-3); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; }
.btn.danger { color: #ff9c86; border-color: rgba(239, 107, 91, .4); background: transparent; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .icon { width: 16px; height: 16px; }
.icon-btn { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 8px; display: inline-grid; place-items: center; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 13px; color: var(--muted); }
label.f small { font-weight: 600; }
.in, input[type=text].in, input[type=email].in, input[type=number].in, input[type=search].in, input[type=datetime-local].in, textarea.in, select.in {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-s); border: 1px solid var(--line-2); background: var(--ground-2); color: var(--text); font: 600 15px/1.4 var(--body); }
.in:focus { outline: 2px solid rgba(227, 97, 72, .55); outline-offset: 0; border-color: transparent; }
textarea.in { resize: vertical; min-height: 90px; }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.in.title { font-family: var(--display); font-size: 22px; background: transparent; border-color: transparent; padding-left: 0; }
.in.title:hover { border-color: var(--line); }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.seg { display: inline-flex; background: var(--ground-2); border: 1px solid var(--line); border-radius: 99px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a, .seg button, .seg label { padding: 6px 14px; border-radius: 99px; color: var(--muted); font-weight: 800; font-size: 13px; border: 0; background: none; cursor: pointer; font-family: inherit; }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg .on, .seg input:checked + span { background: var(--panel-3); color: var(--text); }
.seg label { padding: 0; }
.seg label span { display: block; padding: 6px 14px; border-radius: 99px; }
.seg input { display: none; }
.form-grid { display: grid; gap: 14px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .in { width: auto; min-width: 220px; }

.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.flash.success { background: rgba(91, 184, 116, .14); color: #a8e2b8; border: 1px solid rgba(91, 184, 116, .3); }
.flash.error { background: rgba(239, 107, 91, .12); color: #ffb3a6; border: 1px solid rgba(239, 107, 91, .35); }
.note { padding: 12px 14px; border-radius: 12px; background: rgba(90, 167, 214, .09); border: 1px solid rgba(90, 167, 214, .25); color: #cfe6f4; font-size: 14px; }
.note.warn { background: rgba(232, 162, 58, .09); border-color: rgba(232, 162, 58, .3); color: #f5d9ad; }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.empty .btn { margin-top: 12px; }

.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 16px; color: var(--muted); }

/* Notification and email previews, as on the slide */
.phone { background: #0a1712; border: 1px solid var(--line); border-radius: 26px; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.notif { background: #f6f8f4; color: var(--ink); border-radius: 18px; padding: 14px 16px 14px 14px; display: grid; grid-template-columns: 34px 1fr; gap: 12px; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.notif.later { background: #cdd3cd; }
.notif .mark { width: 30px; height: 30px; }
.notif .app { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #5b6b63; }
.notif .app span { letter-spacing: 0; text-transform: none; font-weight: 700; }
.notif b { display: block; font-size: 16px; margin: 2px 0; }
.notif p { margin: 0; font-size: 14px; line-height: 1.4; color: #24352d; }
.mail { background: #f0eae1; border-radius: 16px; padding: 14px; color: var(--ink); }
.mail .sheet { background: #fff; border-radius: 12px; padding: 20px 22px; }
.mail .subject { font-weight: 800; font-size: 13px; color: #5b6b63; margin-bottom: 8px; }
.mail h4 { font-size: 20px; margin: 0 0 10px; font-family: var(--body); font-weight: 800; }
.mail h5 { font-size: 16px; margin: 14px 0 6px; font-family: var(--body); font-weight: 800; }
.mail p { color: #143126; font-size: 14px; }
.mail .plant { display: flex; gap: 12px; border: 1px solid #e6ddd0; border-radius: 12px; padding: 10px; align-items: center; margin: 8px 0 12px; }
.mail .plant img, .mail .plant .ph { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #e9efe9; flex: none; }
.mail .cta { display: inline-block; background: var(--accent); color: #fff; border-radius: 99px; padding: 10px 20px; font-weight: 800; margin: 10px 0; }
.mail .from { color: #6b7a72; font-size: 12px; margin-top: 10px; }

/* The audience builder: blocks, Scratch-fashion */
.builder { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.palette { background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.palette h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 10px 4px 6px; display: flex; align-items: center; gap: 8px; }
.palette h4 i { width: 10px; height: 10px; border-radius: 3px; }
.palette .pblock { margin-bottom: 6px; cursor: grab; }
.palette .search { margin-bottom: 4px; }
.block { --c: var(--green); position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 34px 9px 12px; border-radius: 10px; background: var(--c); color: #0b1d16; font-weight: 800; font-size: 14px; line-height: 1.3; box-shadow: 0 2px 0 rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .25); user-select: none; }
.block.pblock { padding-right: 12px; font-size: 13px; }
.block::before { content: ''; position: absolute; left: 18px; top: -5px; width: 22px; height: 6px; background: var(--c); border-radius: 4px 4px 0 0; }
.block .x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, .14); border: 0; color: #0b1d16; width: 22px; height: 22px; border-radius: 6px; cursor: pointer; font-weight: 900; }
.block .x:hover { background: rgba(0, 0, 0, .28); }
.block .slot { background: rgba(255, 255, 255, .88); border: 0; border-radius: 99px; padding: 3px 10px; font: 800 13px var(--body); color: #0b1d16; min-width: 46px; }
.block input.slot { width: 74px; text-align: center; }
.block input.slot.text { width: 160px; text-align: left; }
.block select.slot { appearance: none; padding-right: 22px; background-image: linear-gradient(45deg, transparent 50%, #0b1d16 50%), linear-gradient(135deg, #0b1d16 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 8px) 55%; background-size: 4px 4px; background-repeat: no-repeat; cursor: pointer; }
.block .slot.plant { cursor: pointer; min-width: 120px; text-align: left; }
.block .slot.plant.empty { color: #5d6b64; }
.block.any { flex-direction: column; align-items: stretch; padding: 9px 10px 10px; background: color-mix(in srgb, var(--c) 92%, #000); }
.block.any > .any-head { display: flex; align-items: center; gap: 6px; padding-right: 26px; }
.block.any > .x { top: 18px; }
.block.any .stack-drop { background: rgba(0, 0, 0, .16); min-height: 46px; margin-top: 8px; border-radius: 8px; padding: 8px; }
.canvas { display: flex; flex-direction: column; gap: 14px; }
.stack-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stack-card > header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stack-card > header b { font-family: var(--display); font-size: 17px; }
.stack-card.none-stack { border-style: dashed; }
.stack-drop { display: flex; flex-direction: column; gap: 10px; min-height: 64px; border-radius: 12px; padding: 10px; background: rgba(0, 0, 0, .18); border: 2px dashed transparent; transition: border-color .12s, background .12s; }
.stack-drop.over { border-color: var(--accent); background: rgba(227, 97, 72, .06); }
.stack-drop .hint { color: var(--faint); font-size: 13px; text-align: center; padding: 10px; }
.stack-drop .and { font-size: 11px; color: var(--muted); font-weight: 900; letter-spacing: .14em; margin: -4px 0 -4px 14px; }
.block.dragging { opacity: .4; }
.counter { position: sticky; top: 16px; }
.counter .stat .n { font-size: 52px; }
.counter .stat .n.withheld, .stat.big .n.withheld { font-size: 20px; }
.counter .live { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.counter .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(91, 184, 116, .6); animation: pulse 1.6s infinite; }
.counter.busy .live i { background: var(--amber); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(91, 184, 116, .5); } 70% { box-shadow: 0 0 0 8px rgba(91, 184, 116, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 184, 116, 0); } }
.words { margin: 0; padding-left: 18px; color: var(--mint); font-size: 14px; }
.words li { margin-bottom: 3px; }
.templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.templates a { display: block; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-weight: 700; }
.templates a:hover { border-color: var(--accent); text-decoration: none; }

/* Plant picker */
.picker { position: fixed; z-index: 60; width: 340px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.picker input { margin-bottom: 6px; }
.picker ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.picker li button { width: 100%; text-align: left; border: 0; background: none; color: var(--text); padding: 8px 10px; border-radius: 8px; cursor: pointer; font: inherit; display: flex; gap: 8px; align-items: center; }
.picker li button:hover, .picker li button.on { background: var(--panel-3); }
.picker li small { margin-left: auto; color: var(--muted); font-size: 12px; }

/* Journeys */
.journey { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.flow { background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0) 0 0 / 22px 22px, var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 16px 40px; overflow-x: auto; min-height: 520px; }
.seq { display: flex; flex-direction: column; align-items: center; min-width: 260px; }
.node { width: 270px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; cursor: pointer; position: relative; box-shadow: var(--shadow); }
.node:hover { border-color: var(--mint); }
.node.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227, 97, 72, .25), var(--shadow); }
.node .kind { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.node .kind i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: #0b1d16; font-style: normal; }
.node b { display: block; margin-top: 6px; font-size: 15px; }
.node p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.node .count { position: absolute; right: 10px; top: 10px; }
.node.trigger { border-color: rgba(91, 184, 116, .55); background: linear-gradient(180deg, rgba(91, 184, 116, .12), transparent), var(--panel); }
.node.end { width: auto; padding: 8px 18px; border-radius: 99px; text-align: center; }
.wire { width: 2px; height: 22px; background: var(--line-2); }
.add { width: 28px; height: 28px; border-radius: 50%; border: 1px dashed var(--line-2); background: var(--ground-2); color: var(--muted); cursor: pointer; display: grid; place-items: center; font-size: 18px; line-height: 1; position: relative; }
.add:hover { color: var(--text); border-color: var(--accent); border-style: solid; }
.add-menu { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); z-index: 20; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; min-width: 170px; box-shadow: var(--shadow); }
.add-menu button { border: 0; background: none; color: var(--text); text-align: left; padding: 8px 10px; border-radius: 8px; font: 700 14px var(--body); cursor: pointer; display: flex; gap: 8px; align-items: center; }
.add-menu button:hover { background: var(--panel-3); }
.split { display: flex; gap: 26px; align-items: flex-start; position: relative; padding-top: 18px; }
.split::before { content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 18px; border: 2px solid var(--line-2); border-bottom: 0; border-radius: 12px 12px 0 0; }
.branch { display: flex; flex-direction: column; align-items: center; }
.branch-label { font-size: 11px; font-weight: 900; letter-spacing: .14em; padding: 3px 10px; border-radius: 99px; margin-bottom: 4px; }
.branch-label.yes { background: rgba(91, 184, 116, .18); color: #8fd6a2; }
.branch-label.no { background: rgba(239, 107, 91, .16); color: #ffb3a6; }
.inspector { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.inspector .mini .builder { grid-template-columns: 1fr; }
.inspector .mini .palette { position: static; max-height: 240px; }

/* Composer */
.eblocks { display: flex; flex-direction: column; gap: 8px; }
.eblock { background: var(--ground-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.eblock .tools { display: flex; gap: 2px; }
.eblock .tag { font-size: 11px; color: var(--muted); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }

/* People */
.dossier-head { display: flex; gap: 18px; align-items: center; }
.consents { display: flex; gap: 8px; flex-wrap: wrap; }
.plan { width: 100%; height: auto; background: #0f2a22; border-radius: 12px; display: block; }
.plan .plan-boundary { fill: rgba(185, 228, 198, .05); stroke: var(--mint); stroke-width: 1.5; stroke-dasharray: 5 4; }
.plan .plan-plant { fill: rgba(91, 184, 116, .55); stroke: #9fe0b0; stroke-width: 1; }
.plan .plan-plant.is-struggling { fill: rgba(227, 97, 72, .6); stroke: #ff9c86; }
.plan .plan-prop { fill: #9fb5aa; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 12px 26px; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel-3); border: 2px solid var(--ground); }
.timeline li.planted::before { background: var(--green); }
.timeline li.lost::before { background: var(--danger); }
.timeline li.problem::before { background: var(--amber); }
.timeline li.message::before { background: var(--accent); }
.timeline li.harvest::before { background: var(--violet); }
.timeline li.garden::before { background: var(--mint); }
.timeline li.signin::before { background: var(--blue); }
.timeline time { color: var(--faint); font-size: 12px; display: block; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 800; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on, .tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { border-color: var(--accent); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; font-weight: 700; }

.comments { display: flex; flex-direction: column; gap: 10px; }
.comment { display: flex; gap: 10px; }
.comment .body { background: var(--panel-2); border-radius: 12px; padding: 8px 12px; font-size: 14px; flex: 1; }
.comment .body small { display: block; }

/* Sign-in */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at top, #16382f, var(--ground) 60%); }
.gate .box { width: 100%; max-width: 440px; }
.gate .card { padding: 32px; }
.gate h1 { font-size: 30px; margin-bottom: 8px; }
.gate .brand { padding: 0; margin-bottom: 26px; }

@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side, .g-wide, .journey { grid-template-columns: 1fr; }
  .counter, .inspector { position: static; }
}
@media (max-width: 860px) {
  .frame { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .nav { flex-direction: row; overflow-x: auto; }
  .main { padding: 20px 16px 48px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .builder { grid-template-columns: 1fr; }
  .palette { position: static; max-height: none; }
  h1 { font-size: 28px; }
}

.builder.compact { grid-template-columns: 1fr; }
.builder.compact .palette { position: static; max-height: 230px; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.builder.compact .palette h4 { width: 100%; margin: 6px 2px 0; }
.builder.compact .palette .search { width: 100%; }
.builder.compact .palette .pblock { margin: 0; }
