/* RJIT Web Builder admin (spec/06-admin-ui.md) */
:root {
  color-scheme: light dark;
  --bg: #f4f4f1;
  --panel: #ffffff;
  --sunken: #ecece7;
  --text: #1b1b19;
  --muted: #6a6a64;
  --border: #dcdcd5;
  --accent: #2f5bea;
  --accent-text: #ffffff;
  --accent-soft: #e8eeff;
  --error: #b42318;
  --error-bg: #fdecea;
  --ok: #1b7f4b;
  --ok-bg: #e7f6ee;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 4px 16px rgb(0 0 0 / 6%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131312;
    --panel: #1c1c1a;
    --sunken: #252522;
    --text: #ecece8;
    --muted: #9d9d95;
    --border: #32322e;
    --accent: #7c9cff;
    --accent-text: #0f1220;
    --accent-soft: #212a47;
    --error: #ff8a80;
    --error-bg: #3a1d1a;
    --ok: #6fdc9f;
    --ok-bg: #173324;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 4px 16px rgb(0 0 0 / 30%);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}
h1, h2, h4 { margin: 0 0 .5rem; line-height: 1.25; }
h2 { font-size: 1rem; }
a { color: var(--accent); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--sunken); padding: .05em .3em; border-radius: 4px; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.button {
  font: inherit; cursor: pointer; border-radius: 9px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); padding: .45rem .85rem;
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; white-space: nowrap;
}
.button:hover:not(:disabled) { border-color: var(--muted); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.button.primary:hover:not(:disabled) { filter: brightness(1.08); border-color: var(--accent); }
.button.danger { border-color: var(--error); color: var(--error); font-weight: 600; }
.button.ghost { border-color: transparent; background: none; color: var(--muted); }
.button.ghost:hover:not(:disabled) { background: var(--sunken); color: var(--text); border-color: transparent; }
.button.small { padding: .25rem .6rem; font-size: .85rem; }
.button.link { border: 0; background: none; color: var(--accent); padding: 0; text-decoration: underline; }
.button.icon-button { padding: .45rem; }
.button:disabled { opacity: .5; cursor: not-allowed; }

.flash { margin: 0; padding: .55rem .9rem; border-radius: 9px; }
.flash-error { background: var(--error-bg); color: var(--error); }
.flash-notice { background: var(--ok-bg); color: var(--ok); }

.badge { font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.badge-staging { border-color: var(--accent); color: var(--accent); }
.badge-production { border-color: var(--ok); color: var(--ok); }
.badge-error { border-color: var(--error); color: var(--error); }

/* ---------------------------------------------------------------- login */
.login-page { display: flex; justify-content: center; align-items: center; }
.login { width: min(22rem, 100% - 2rem); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.login h1 { font-size: 1.3rem; }
.login .flash { margin: 0 0 1rem; }
.stack { display: grid; gap: .9rem; margin-top: 1.25rem; }
.stack label { display: grid; gap: .25rem; font-weight: 600; font-size: .9rem; }
.stack .button { justify-content: center; }
input[type="text"], input[type="password"] {
  font: inherit; width: 100%; padding: .55rem .7rem; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
}

/* ------------------------------------------------------------ app shell */
.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: .55rem 1rem; background: var(--panel); border-bottom: 1px solid var(--border); }
.brand { font-size: 1rem; letter-spacing: -.01em; }
.status { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.status form { margin: 0; }
.status-chips { display: flex; gap: .4rem; margin: 0; }
.chip { display: flex; gap: .35rem; align-items: baseline; white-space: nowrap; padding: .2rem .65rem; border-radius: 999px; background: var(--sunken); font-size: .85rem; }
.chip dt { color: var(--muted); }
.chip dd { margin: 0; font-weight: 600; }
.chip-live dd { color: var(--ok); }
.chip a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .25rem; }
.chip a:hover { text-decoration: underline; }
.chip a svg { width: .85em; height: .85em; }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }
.logout { display: flex; gap: .6rem; align-items: center; margin: 0; padding-left: .5rem; border-left: 1px solid var(--border); }

.flash-region { display: grid; gap: .4rem; margin: .75rem .75rem 0; }
.flash-region:empty { display: none; }

.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(19rem, 24.5rem) minmax(0, 1fr); gap: .75rem; padding: .75rem; position: relative; }

/* ----------------------------------------------------------------- chat */
.chat { min-height: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); position: relative; overflow: hidden; }
.chat > .flash { margin: .75rem .75rem 0; }
.conversation-scroll { flex: 1; min-height: 0; overflow-y: auto; scroll-behavior: smooth; }
.conversation { list-style: none; margin: 0; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; min-height: 100%; }
.conversation .empty { margin: auto; max-width: 22rem; text-align: center; color: var(--muted); }
.conversation .empty h2 { color: var(--text); font-size: 1.15rem; }
.suggestions { display: grid; gap: .45rem; margin-top: 1rem; }
.suggestion { font: inherit; cursor: pointer; text-align: left; padding: .55rem .8rem; border-radius: 9px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.suggestion:hover { border-color: var(--accent); }

.message { max-width: 100%; }
.message-user { align-self: flex-end; max-width: 88%; background: var(--accent-soft); padding: .55rem .8rem; border-radius: var(--radius) var(--radius) 4px var(--radius); }
.message-assistant { align-self: stretch; }
.message-event { align-self: center; font-size: .82rem; color: var(--muted); background: var(--sunken); padding: .15rem .7rem; border-radius: 999px; }
.message-failed .message-content { color: var(--error); background: var(--error-bg); padding: .5rem .7rem; border-radius: 9px; }
.message-meta { display: flex; gap: .45rem; align-items: center; font-size: .76rem; color: var(--muted); margin-bottom: .1rem; }
.message-meta .who { font-weight: 700; color: var(--text); }
.message-content { white-space: pre-wrap; overflow-wrap: anywhere; }
.prose { white-space: normal; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol, .prose pre { margin: .45rem 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose h4 { font-size: 1rem; margin: .7rem 0 .2rem; }
.prose pre { background: var(--sunken); padding: .6rem .7rem; border-radius: 9px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }

.attachments { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: .1rem 0 .4rem; padding: 0; }
.attachment { display: flex; align-items: center; gap: .4rem; border-radius: 9px; overflow: hidden; border: 1px solid var(--border); background: var(--panel); color: var(--text); text-decoration: none; font-size: .82rem; }
.attachment img { display: block; width: 6rem; height: 6rem; object-fit: cover; background: var(--sunken); }
.attachment:not(:has(img)) { padding: .35rem .6rem; }
.file-icon { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .15rem .35rem; border-radius: 5px; background: var(--sunken); color: var(--muted); }

.activity { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .86rem; color: var(--muted); }
.activity li:last-child { color: var(--text); }
.spinner { width: .8rem; height: .8rem; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } .conversation-scroll { scroll-behavior: auto; } }

.composer { margin: 0 .75rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); padding: .5rem .5rem .4rem; }
.composer:focus-within { border-color: var(--accent); }
.composer textarea { font: inherit; display: block; width: 100%; border: 0; outline: 0; resize: none; background: none; color: var(--text); padding: .3rem .4rem; min-height: 2.4rem; max-height: 220px; }
.composer-bar { display: flex; align-items: center; gap: .4rem; }
.composer-hint { flex: 1; font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-bar #send, .composer-bar #stop { margin-left: auto; }
.attachment-tray { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .4rem; padding: 0; }
.tray-item { display: flex; align-items: center; gap: .4rem; padding: .2rem .3rem .2rem .2rem; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); font-size: .8rem; max-width: 100%; }
.tray-item img { width: 2.2rem; height: 2.2rem; object-fit: cover; border-radius: 6px; }
.tray-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 11rem; }
.tray-remove { font: inherit; cursor: pointer; border: 0; background: none; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 0 .25rem; }
.tray-remove:hover { color: var(--error); }
.selection-tray, .selections { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .4rem; padding: 0; }
.selection-chip { display: inline-flex; align-items: center; max-width: 100%; min-width: 0; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: 999px; background: var(--panel); font-size: .8rem; line-height: 1.3; }
.selection-chip svg { width: .85rem; height: .85rem; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.selection-show { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; display: inline-flex; align-items: center; gap: .35rem; min-width: 0; padding: .2rem .15rem .2rem .55rem; border-radius: 999px 0 0 999px; }
.selection-show:hover .selection-text { color: var(--text); }
.selection-kind { font-weight: 600; white-space: nowrap; }
.selection-text { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
.selection-text::before { content: "· "; }
.selection-chip .tray-remove { padding: 0 .5rem 0 .2rem; }
.selections { margin: 0 0 .35rem; }
.selections .selection-chip { gap: .35rem; padding: .15rem .6rem; }
.drop-hint { display: none; position: absolute; inset: .5rem; z-index: 5; align-items: center; justify-content: center; border: 2px dashed var(--accent); border-radius: var(--radius); background: color-mix(in srgb, var(--panel) 88%, transparent); color: var(--accent); font-weight: 600; pointer-events: none; }
.chat.dragging .drop-hint { display: flex; }

/* -------------------------------------------------------------- preview */
.preview { min-height: 0; min-width: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.preview-bar { display: flex; align-items: center; gap: .5rem; padding: .4rem .5rem; border-bottom: 1px solid var(--border); position: relative; }
/* A moving line under the toolbar while the builder works. */
.app[data-busy="true"] .preview-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: sweep 1.4s linear infinite; }
@keyframes sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { .app[data-busy="true"] .preview-bar::after { animation: none; background-size: 100% 100%; } }
.select-toggle { gap: .35rem; padding: .28rem .6rem; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.select-toggle svg { width: 1rem; height: 1rem; }
.select-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.select-toggle:disabled { opacity: .5; cursor: default; }
.select-hint { margin: 0; padding: .35rem .7rem; font-size: .82rem; background: var(--accent-soft); color: var(--text); border-bottom: 1px solid var(--border); }
.app.selecting .preview-stage iframe { outline: 2px solid var(--accent); outline-offset: -2px; }
.segmented { display: inline-flex; background: var(--sunken); border-radius: 9px; padding: 2px; }
.segmented button { font: inherit; cursor: pointer; border: 0; background: none; color: var(--muted); padding: .28rem .7rem; border-radius: 7px; display: inline-flex; align-items: center; }
.segmented button[aria-selected="true"], .segmented button[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / 12%); font-weight: 600; }
.segmented.devices button { padding: .28rem .45rem; }
.preview-path { flex: 1; min-width: 0; font: .82rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); background: var(--sunken); border-radius: 7px; padding: .3rem .6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-stage { flex: 1; min-height: 0; display: flex; justify-content: center; background: var(--sunken); position: relative; }
.preview-stage iframe { width: 100%; height: 100%; border: 0; background: #fff; transition: width .2s ease; }
.preview-stage[data-device="tablet"] iframe { width: 820px; max-width: 100%; box-shadow: var(--shadow); }
.preview-stage[data-device="phone"] iframe { width: 390px; max-width: 100%; box-shadow: var(--shadow); }
.preview-note { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 2rem max(2rem, 50% - 17rem); background: var(--panel); }
.preview-note .button { margin-right: .4rem; }

/* -------------------------------------------------------------- history */
.history { min-height: 0; overflow-y: auto; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.workspace { grid-template-columns: minmax(19rem, 24.5rem) minmax(0, 1fr) auto; }
.app.history-open .workspace { grid-template-columns: minmax(19rem, 24.5rem) minmax(0, 1fr) 23rem auto; }
@media (max-width: 1180px) {
  /* Not enough room for three columns: history slides over the preview. */
  .app.history-open .workspace { grid-template-columns: minmax(19rem, 24.5rem) minmax(0, 1fr) auto; }
  .history { position: absolute; top: .75rem; right: 6.6rem; bottom: .75rem; z-index: 20; width: min(22rem, 100% - 7.4rem); box-shadow: var(--shadow); }
}
.history-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.history-head h2 { margin: 0; }
.versions { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.version { border-top: 1px solid var(--border); padding-top: .75rem; }
.version:first-child { border-top: 0; padding-top: 0; }
.version-head { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.version-name { font-variant-numeric: tabular-nums; }
.version-summary { margin: .25rem 0 .5rem; font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.version form { margin: 0; }
.storage { font-size: .8rem; margin: 1rem 0 0; }

/* ------------------------------------------------------- connect an agent */
.agents h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.1rem 0 .35rem; }
.agents p { margin: .3rem 0 .5rem; }
.copy-row { display: flex; gap: .4rem; align-items: flex-start; margin: .35rem 0; }
.copy-row code, .copy-row pre { flex: 1; min-width: 0; margin: 0; padding: .4rem .55rem; border-radius: 8px; background: var(--sunken); font: .78rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.new-token { margin-top: .6rem; padding: .6rem; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-soft); }
.connections { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.connection { border-top: 1px solid var(--border); padding-top: .6rem; }
.connection:first-child { border-top: 0; padding-top: 0; }
.connection-head { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.connection-meta { font-size: .8rem; margin: .15rem 0 .4rem; }
.connection form { margin: 0; }
.consent { width: min(27rem, 100% - 2rem); }
.consent-list { padding-left: 1.1rem; margin: .6rem 0 1rem; display: grid; gap: .3rem; }
.consent-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.2rem; }

/* --------------------------------------------------------------- mobile */
.mobile-tabs { display: none; }
@media (max-width: 860px) {
  .workspace { grid-template-columns: 1fr; padding: .5rem; }
  .app[data-view="chat"] .preview, .app[data-view="preview"] .chat { display: none; }
  .mobile-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--border); background: var(--panel); }
  .mobile-tabs #rail-toggle[aria-expanded="true"] { color: var(--accent); font-weight: 700; box-shadow: inset 0 2px 0 var(--accent); }
  .rail { display: none; }
  .app.rail-open .rail { display: grid; grid-template-columns: repeat(3, 1fr); position: absolute; left: .5rem; right: .5rem; bottom: .5rem; z-index: 30; width: auto; box-shadow: var(--shadow); }
  .mobile-tabs button { font: inherit; cursor: pointer; border: 0; background: none; color: var(--muted); padding: .7rem; }
  .mobile-tabs button[aria-pressed="true"] { color: var(--accent); font-weight: 700; box-shadow: inset 0 2px 0 var(--accent); }
  .topbar { flex-wrap: wrap; gap: .5rem; }
  .brand, .username, .composer-hint, .devices { display: none; }
  /* Labels differ in length per language: let the bar wrap rather than overflow. */
  .status { margin-left: 0; flex: 1 1 100%; flex-wrap: wrap; gap: .4rem; }
  .status-chips { flex-wrap: wrap; }
  .status form { margin-left: auto; }
  .topbar-actions { flex: 1 1 100%; flex-wrap: wrap; justify-content: space-between; gap: .25rem; }
  .topbar-actions .button.ghost { padding: .35rem .5rem; }
  .logout { border-left: 0; padding-left: 0; }
  .app.history-open .workspace { grid-template-columns: 1fr; }
  .history { top: .5rem; right: .5rem; bottom: .5rem; width: calc(100% - 1rem); }
}

/* ------------------------------------------------------------- the rail */
.rail { display: flex; flex-direction: column; gap: .2rem; width: 5.6rem; padding: .35rem; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow-y: auto; }
.rail-item { font: inherit; cursor: pointer; border: 0; background: none; color: var(--muted); display: grid; justify-items: center; gap: .15rem; padding: .5rem .15rem; border-radius: 9px; font-size: .68rem; line-height: 1.15; text-align: center; position: relative; }
.rail-item svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail-item:hover, .rail-item[aria-expanded="true"] { background: var(--sunken); color: var(--text); }
.rail-item[aria-expanded="true"] { color: var(--accent); font-weight: 600; }
.rail-count { position: absolute; top: .2rem; right: .45rem; font-size: .68rem; font-weight: 700; color: var(--accent); }
.rail-count:empty { display: none; }

/* ------------------------------------------------- pages, check, memory */
.page-list, .check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.page-item { font: inherit; cursor: pointer; width: 100%; text-align: left; display: grid; gap: .05rem; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); color: var(--text); }
.page-item:hover { border-color: var(--accent); }
.page-title { font-weight: 600; }
.page-path { font: .78rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); overflow-wrap: anywhere; }
.page-meta { font-size: .78rem; color: var(--muted); }
.check-list { gap: .6rem; margin: .6rem 0 .9rem; }
.check-note { border-top: 1px solid var(--border); padding-top: .6rem; }
.check-note:first-child { border-top: 0; padding-top: 0; }
.check-note p { margin: 0 0 .35rem; font-size: .9rem; overflow-wrap: anywhere; }
.check-clean { color: var(--ok); font-weight: 600; }
.memory-text { white-space: pre-wrap; font-size: .9rem; overflow-wrap: anywhere; }
.usage { font-size: .8rem; margin: 1rem 0 0; }
.message-usage { font-size: .7rem; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* ----------------------------------------- viewing, variants, questions */
.viewing, .variant-bar { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .35rem .6rem; font-size: .84rem; background: var(--accent-soft); border-bottom: 1px solid var(--border); }
.viewing[hidden] { display: none; }
.viewing #viewing-text { flex: 1; min-width: 0; }
.variant-bar form { margin: 0; }
.variant-bar .variants { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; background: var(--panel); }
.variant-bar .variants button { padding: .28rem .8rem; }
.variant-bar .variants button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
.composer-note { margin: 0 0 .35rem; font-size: .78rem; color: var(--accent); }
.questions { display: grid; gap: .6rem; margin-top: .5rem; }
.question { border: 1px solid var(--border); border-radius: 10px; padding: .45rem .65rem .6rem; margin: 0; min-width: 0; }
.question legend { font-weight: 600; padding: 0 .3rem; }
.question-options { display: flex; flex-wrap: wrap; gap: .35rem; }
.question-options .button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.question-options-text { margin: 0; font-size: .82rem; }
.questions > .button { justify-self: start; }
.proposal-card { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .5rem; }
.proposal-variant { border: 1px solid var(--border); border-radius: 10px; padding: .5rem .65rem; }
.proposal-head { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.proposal-head .button { margin-left: auto; }
.proposal-description { font-size: .88rem; color: var(--muted); }
.proposal-description p { margin: .25rem 0 0; }
