:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #74747a;
  --line: #e6e6e2;
  --accent: #2f5bd3;
  --on: #1e8a4f;
  --off: #c33a2c;
  --danger: #b3261e;
  --warn: #a35f00;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #1a1a1d;
    --text: #ececee;
    --muted: #96969d;
    --line: #2a2a2f;
    --accent: #7ea3ff;
    --on: #4cc38a;
    --off: #ff6f61;
    --danger: #ff6f61;
    --warn: #f0a340;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  display: grid;
  gap: 16px;
}

/* --- шапка --- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.bar {
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 16px 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand { font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -0.01em; }

.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.tabs {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 8px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tabs a {
  padding: 10px 8px 9px;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }
@media (max-width: 420px) {
  .tabs { gap: 0; padding: 0 4px; }
  .tabs a { padding: 10px 7px 9px; font-size: 14px; }
}

/* --- статус --- */
.pulse { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pulse.on { color: var(--on); }
.pulse.off { color: var(--off); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pulse.on .dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--on) 20%, transparent); }

/* --- секции --- */
main > section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

h1, h2 { margin: 0 0 14px; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.head h2 { margin: 0; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.note { color: var(--muted); margin: 0; }
p { margin: 12px 0 0; }

/* --- плитки --- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.tile-label { color: var(--muted); font-size: 13px; }
.tile-value { font-size: 26px; font-weight: 600; line-height: 1.25; margin-top: 4px; }
.tile-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* --- строки "название — значение" --- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.rows li:first-child { border-top: 0; padding-top: 0; }
.rows .num { font-variant-numeric: tabular-nums; font-weight: 600; }

/* --- журнал --- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips a {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}
.chips a.active { color: var(--text); border-color: var(--text); }

.log { list-style: none; margin: 0; padding: 0; }
.log li { padding: 10px 0; border-top: 1px solid var(--line); }
.log li:first-child { border-top: 0; padding-top: 0; }
.log-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.log-action { font-weight: 550; }
.log-time { margin-left: auto; font-size: 13px; }
.log .details { margin-top: 4px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.more { display: inline-block; margin-top: 4px; }

code {
  font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

/* --- формы --- */
.stack { display: grid; gap: 12px; }
label { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }

input {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

button {
  font: inherit;
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  background: var(--text);
  color: var(--surface);
  font-weight: 600;
}
button.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); margin-top: 14px; }
button.danger:hover { background: var(--danger); color: #fff; }
button.link { background: none; color: var(--muted); padding: 0; font-weight: 400; }
button.link:hover { color: var(--text); }

.error { color: var(--off); margin: 0 0 12px; }

/* --- вход --- */
.login { max-width: 360px; width: 100%; margin: 12vh auto 0; }
.tg-login {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #2aabee;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.tg-login:hover { background: #229ed9; }

/* --- настройки --- */
.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  border-color: color-mix(in srgb, var(--warn) 45%, var(--line)) !important;
}

.small-btn {
  padding: 7px 12px;
  font-size: 14px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.small-btn:hover { border-color: var(--text); }
.js form.watch button { display: none; }
.js form.watch.dirty button { display: inline-block; background: var(--text); color: var(--surface); border-color: var(--text); }
.ok { color: var(--on); margin: 6px 0 0; }
.error.small { margin: 6px 0 0; }

.switch {
  width: 44px;
  height: 26px;
  padding: 3px;
  border-radius: 999px;
  background: var(--line);
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
}
.switch span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
  transition: transform 0.15s;
}
.switch.on { background: var(--on); }
.switch.on span { transform: translateX(18px); }

.rows li form { margin: 0; }
.rows li .inline-form { margin: 0; }

.inline-form { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.inline-form input { flex: 1; min-width: 0; }

select {
  font: inherit;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}

.groups { display: grid; gap: 8px; }

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
}
details[open] { padding-bottom: 6px; }

summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "›"; margin-left: auto; color: var(--muted); transition: transform 0.15s; }
details[open] summary::after { transform: rotate(90deg); }

.setting { padding: 12px 0; border-top: 1px solid var(--line); }
.setting-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.setting-label { font-weight: 550; }
.setting.changed .setting-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  vertical-align: middle;
}
.reset { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }

.badge-soft, .badge-warn {
  font-size: 12px;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }

/* --- категории настроек --- */
.segments {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.segments a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 550;
  white-space: nowrap;
}
.segments a:hover { color: var(--text); }
.segments a.active { background: var(--text); color: var(--surface); }
.segments .count {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  background: var(--accent);
  color: #fff;
}
@media (max-width: 380px) {
  .segments a { font-size: 14px; padding: 9px 2px; }
}

/* --- юзеры --- */
.search { display: flex; flex-wrap: wrap; gap: 8px; }
.search input[name="q"] { flex: 1 1 220px; min-width: 0; }
.search select { flex: 0 1 220px; min-width: 0; }
.filters { margin-top: 12px; }

.ulist { list-style: none; margin: 0; padding: 0; }
.ulist li { border-top: 1px solid var(--line); }
.ulist li:first-child { border-top: 0; }
.ulist a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text);
}
.ulist a:hover .u-name { color: var(--accent); }
.u-main { display: grid; min-width: 0; }
.u-name { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.u-title { margin: 0; overflow-wrap: anywhere; }

.tag-soft, .tag-bad {
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.tag-bad { color: var(--off); border-color: color-mix(in srgb, var(--off) 50%, transparent); }

.pager { display: flex; justify-content: space-between; margin-top: 14px; }
.back { margin: 0; }

.branches { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.branches span {
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px dashed var(--line);
  color: var(--muted);
}
.branches span.on { border-style: solid; border-color: var(--on); color: var(--on); }

.rows .sub { display: block; }
.num.plus { color: var(--on); }
.num.minus { color: var(--off); }

.sparks-form {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto;
  grid-template-areas: "amount reason button";
  gap: 8px;
}
.sparks-form input[name="amount"] { grid-area: amount; min-width: 0; }
.sparks-form input[name="reason"] { grid-area: reason; min-width: 0; }
.sparks-form button { grid-area: button; }
@media (max-width: 520px) {
  .sparks-form {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "amount button" "reason reason";
  }
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions form { margin: 0; }
.danger-outline { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }
.danger-outline:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* --- сфера: приглашения и афк --- */
.invite-form {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 560px) {
  .invite-form { grid-template-columns: 1fr; }
}
.new-link {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--on) 45%, var(--line));
  background: color-mix(in srgb, var(--on) 7%, transparent);
}
.copy-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.copy-row code { flex: 1; min-width: 0; font-size: 14px; }
.inv-title { font-weight: 550; }
.inv-link { margin-top: 2px; color: var(--muted); }
.inv-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.inv-status { font-size: 13px; white-space: nowrap; }
.st-waiting { color: var(--accent); }
.st-active, .st-forever { color: var(--on); }
.st-expired, .st-revoked { color: var(--muted); }
.afk-filter { margin-top: 0; flex-wrap: wrap; }
.inline-label { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 15px; }
.inline-label input { width: 70px; flex: none; text-align: center; }

/* подразделы внутри категории настроек */
.subsegments { display: flex; gap: 4px; flex-wrap: wrap; margin-top: -6px; }
.subsegments a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  border: 1px solid transparent;
}
.subsegments a:hover { color: var(--text); }
.subsegments a.active { color: var(--text); border-color: var(--line); background: var(--surface); font-weight: 550; }

/* --- рассылки --- */
.flash { margin: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.flash.ok { border-color: color-mix(in srgb, var(--on) 45%, var(--line)); }
.flash.error { border-color: color-mix(in srgb, var(--off) 45%, var(--line)); }

.bc-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  grid-template-areas: "ids ids ids" "date time submit";
  align-items: end;
  gap: 10px 12px;
  margin-top: 12px;
}
.bc-form .bc-ids { grid-area: ids; }
.bc-form .bc-date { grid-area: date; }
.bc-form .bc-time { grid-area: time; }
.bc-form .bc-submit { grid-area: submit; justify-self: end; padding: 11px 18px; }
@media (max-width: 560px) {
  .bc-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "ids ids" "date time" "submit submit";
  }
}
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }
label.check input { width: 18px; height: 18px; padding: 0; }
input[type="date"], input[type="time"] { min-width: 0; }

.preview { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)) !important; }
.post-preview span, .post-item > span:first-child { display: grid; gap: 4px; }
.post-text { white-space: pre-line; overflow-wrap: anywhere; font-size: 14px; }
.post-preview .tag-soft, .post-item .tag-soft { justify-self: start; }
.summary { margin-top: 12px; }
.post-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; white-space: nowrap; }
.post-actions form { margin: 0; }

.ch-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 12px;
  margin-top: 12px;
}
.ch-form.ch-button { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
.ch-form.ch-button button { justify-self: start; }
@media (max-width: 560px) {
  .ch-form, .ch-form.ch-button { grid-template-columns: 1fr; }
}
p + .rows, p + .ulist { margin-top: 14px; }
.js [data-when-kind][hidden] { display: none; }
.tg-link { color: var(--text); text-decoration: none; }
.tg-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* --- дашборд --- */
.period-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.kpis .tile { background: var(--surface); }
.delta { font-weight: 600; }
.delta.up { color: var(--on); }
.delta.down { color: var(--off); }

.chart { display: block; width: 100%; height: auto; margin-top: 4px; overflow: visible; }
.ch-bar { fill: var(--accent); transition: opacity 0.1s; }
.ch-hit { fill: transparent; }
.ch-col:hover .ch-bar { opacity: 0.75; }
.ch-col:hover .ch-hit { fill: color-mix(in srgb, var(--text) 5%, transparent); }
.ch-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.ch-base { stroke: color-mix(in srgb, var(--muted) 60%, transparent); stroke-width: 1; }
.ch-axis { fill: var(--muted); font-size: var(--ch-font, 11px); }

.tip {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--text);
  color: var(--surface);
  font-size: 13px;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px));
}

.funnel { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.funnel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 5px; }
.meter { display: block; width: 100%; height: 6px; }
.meter-track { fill: color-mix(in srgb, var(--accent) 16%, transparent); }
.meter-fill { fill: var(--accent); }

.table-wrap { overflow-x: auto; margin-top: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: right; font-weight: 500; color: var(--muted); font-size: 13px; padding: 0 0 8px 12px; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; padding-left: 0; }
table.data td { padding: 8px 0 8px 12px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }

/* --- трафик --- */
.link-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto;
  align-items: end;
  gap: 10px 12px;
  margin-top: 12px;
}
@media (max-width: 560px) { .link-form { grid-template-columns: 1fr; } .link-form button { justify-self: end; } }
.link-item > span:first-child { display: grid; gap: 4px; min-width: 0; }
.link-item .copy-row code { font-size: 13px; }
.link-item.fresh { background: color-mix(in srgb, var(--on) 7%, transparent); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; }
.link-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 14px; white-space: nowrap; }
.link-stats form { margin: 0; }

/* --- ии --- */
.task-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.task-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.task-card p { flex: 1; margin-top: 0; }
.task-card form { margin-top: 12px; }
.task-card .inline-form { margin-top: 12px; }
.task-card .inline-form input[type="date"] { flex: 1; }
button[disabled] { opacity: 0.5; cursor: default; }

.task-row { display: grid; gap: 4px; width: 100%; }
.task-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rows.tasks li { display: block; }
.report-box { margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.report-box summary { padding: 8px 0; font-weight: 500; font-size: 14px; }
.report {
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg);
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 520px;
  overflow: auto;
}
.report-text { white-space: pre-line; margin: 0; }
h3 { font-size: 14px; font-weight: 600; margin: 14px 0 6px; color: var(--muted); }
.bullets { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

.prompt-form { display: grid; gap: 10px; margin-top: 12px; }
.prompt-form textarea {
  width: 100%;
  min-height: 360px;
  resize: vertical;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.prompt-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.prompt-actions { display: flex; gap: 8px; }
.prompt-actions input { flex: 1; min-width: 0; }
.js form.prompt-form.watch .prompt-actions input { display: block; }
.reset-file { margin-top: 8px; }
.reply-text { overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }

/* --- сфера: магазин и прочее --- */
.subsegments { row-gap: 6px; }
.edit-box { width: 100%; padding: 12px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 12px; margin: 6px 0; }
.shop-item.off .inv-title { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.shop-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 100px;
  grid-template-areas: "title price order" "desc desc desc" "active active actions";
  gap: 10px 12px;
  align-items: end;
}
.shop-form .sf-title { grid-area: title; }
.shop-form .sf-price { grid-area: price; }
.shop-form .sf-order { grid-area: order; }
.shop-form .sf-desc { grid-area: desc; }
.shop-form .sf-active { grid-area: active; }
.shop-form .sf-actions { grid-area: actions; display: flex; gap: 14px; align-items: center; justify-content: flex-end; }
.shop-form textarea {
  font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); resize: vertical; width: 100%;
}
.shop-form label { min-width: 0; }
.shop-form input { width: 100%; min-width: 0; }
.shop-form input[readonly] { color: var(--muted); }
@media (max-width: 560px) {
  .shop-form { grid-template-columns: 1fr 1fr; grid-template-areas: "title title" "price order" "desc desc" "active actions"; }
}
.inline-actions { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 4px 10px; }
.inline-actions form { margin: 0; }
.bc-form input, .ch-form input, .link-form input, .invite-form input, .invite-form select, .ch-form select { width: 100%; min-width: 0; }
.rows li > .edit-box { flex: 1 1 100%; min-width: 0; }
.mini-edit summary { cursor: pointer; color: var(--accent); list-style: none; }
.mini-edit summary::-webkit-details-marker { display: none; }
.mini-edit[open] { flex-basis: 100%; }
.mini-edit .inline-form input { max-width: 220px; }
