* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-weight: 650; letter-spacing: -0.02em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.top nav { display: flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.top nav a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.top nav a[aria-current="page"] { background: var(--soft); color: var(--ink); font-weight: 600; }
.sp { flex: 1; }
.ib {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 14px;
}
.av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.logo-for-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-for-light { display: none; }
  :root:not([data-theme="light"]) .logo-for-dark { display: block; }
}
:root[data-theme="dark"] .logo-for-light { display: none; }
:root[data-theme="dark"] .logo-for-dark { display: block; }
:root[data-theme="light"] .logo-for-dark { display: none; }
:root[data-theme="light"] .logo-for-light { display: block; }

.shell { min-height: 100vh; }
.main { max-width: 1360px; margin: 0 auto; padding: 20px; }

.brand-lockup,
.brand-lockup:hover,
.brand-lockup:focus,
.brand-lockup:visited {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.brand-lockup-img { display: block; height: 32px; width: auto; }
.brand-lockup--login { margin: 0 0 20px; }

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
}
.login-side {
  background: var(--ink);
  color: var(--bg);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-side h1 { font-size: 40px; margin: 0 0 12px; letter-spacing: -0.03em; }
.login-side p { margin: 0; max-width: 36ch; color: color-mix(in srgb, var(--bg) 82%, var(--ink)); }
.login-main { display: grid; place-items: center; padding: 48px 24px; background: var(--bg); }
.panel {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
}
.panel h2 { margin: 0 0 8px; font-size: 28px; }
.lede { color: var(--muted); margin: 0 0 20px; }

.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
h1.page { font-size: 28px; margin: 0; line-height: 1.2; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 10px; }
.inline { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.oauth { display: flex; flex-direction: column; gap: 8px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
input, select, textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  min-width: 0;
}
button.primary, button.secondary, a.primary, a.secondary {
  border-radius: 10px;
  padding: 9px 14px;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-block;
}
button.primary, a.primary { background: var(--accent); color: var(--on-accent); font-weight: 600; }
button.secondary, a.secondary { background: transparent; border-color: var(--line); }
button.cta {
  background: var(--hl);
  color: #2D3142;
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
}
button.link { padding: 0; border: 0; background: none; color: var(--accent); }

.card, .person, .group, a.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
}
a.card:hover, .trip-hub-trip:hover, button.home-trip-card:hover { border-color: var(--accent); }
button.home-trip-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.home-trip-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.home-req { margin-top: 8px; font-weight: 600; color: var(--hl); }
.tag.pin { background: color-mix(in srgb, var(--hl) 25%, transparent); }
.home-archived { margin-bottom: 12px; }
.home-pending { margin: 24px 0; }
.nav-badge {
  display: inline-flex;
  min-width: 1.25rem;
  justify-content: center;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--hl);
  color: #2D3142;
  font-size: 12px;
  font-weight: 700;
}
.inbox-row.inbox-action { border-color: color-mix(in srgb, var(--hl) 40%, var(--line)); }
.inbox-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.inbox-list { margin-top: 16px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.person, .group { display: grid; gap: 6px; }
.person header, .group header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag, .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: var(--c, var(--s0));
  background: transparent;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; font-style: normal; }
.st-draft { --c: var(--s0); }
.st-preparing { --c: var(--s1); }
.st-active { --c: var(--s4); }
.st-completed { --c: var(--s5); }
.st-archived { --c: var(--s6); }
.st-cancelled, .st-aborted { --c: var(--warn); }
.st-postponed { --c: var(--s3); }
.hub-stage-s0 { --c: var(--s0); }
.hub-stage-s1 { --c: var(--s1); }
.hub-stage-s2 { --c: var(--s2); }
.hub-stage-s3 { --c: var(--s3); }
.hub-stage-s4 { --c: var(--s4); }
.hub-stage-s5 { --c: var(--s5); }
.hub-stage-s6 { --c: var(--s6); }
.hub-stage-s7 { --c: var(--s6); }
.tag.pending { --c: var(--warn); }
.tag.child { --c: var(--ok); }
.tag.ok { --c: var(--ok); }

.stage-trail {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  align-items: center;
}
.stage-seg {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  opacity: 0.45;
}
.stage-seg.done { background: color-mix(in srgb, var(--c, var(--accent)) 55%, var(--line)); opacity: 1; }
.stage-seg.on {
  background: linear-gradient(90deg, var(--c, var(--accent)), var(--hl));
  opacity: 1;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c, var(--accent)) 30%, transparent);
}
.trip-hub-head--collapsed .trip-hub-head-body { display: none; }
.trip-hub-head-body { margin-top: 4px; }
.hub-head-toggle { font-size: 13px; margin-left: 4px; }
.hub-tab-hint { margin-left: auto; font-size: 12px; padding: 10px 8px; white-space: nowrap; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rail-toggle { font-size: 16px; padding: 0 4px; }
.trip-hub-rail--collapsed { width: 52px; min-width: 52px; }
.trip-hub-rail--collapsed .section-title,
.trip-hub-rail--collapsed .trip-hub-trip .muted,
.trip-hub-rail--collapsed .plus,
.trip-hub-rail--collapsed > .muted { display: none; }
.trip-hub-rail--collapsed .trip-hub-trip strong {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 40px;
}
@media (min-width: 761px) {
  .trip-hub:has(.trip-hub-rail--collapsed) { grid-template-columns: 56px minmax(0, 1fr) 300px; }
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 4px;
}
.hub-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.hub-card.em { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.hub-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.hub-big { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.hub-sub { margin: 0 0 8px; font-size: 13px; }
.hub-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.hub-row:first-of-type { border-top: 0; }
.hub-row span:last-child { color: var(--muted); text-align: right; }
.btn-hub {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 14px;
  margin-top: 8px;
}
.btn-hub.p { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.head-export { margin-top: 0; margin-left: auto; }
.checks-in-card { margin: 0 0 10px; grid-template-columns: 1fr; }
.trip-hub-context { gap: 14px; background: transparent; border: 0; padding: 0; }
.trip-hub-context .hub-side-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.trip-hub-context .card-inset { margin-top: 0; }
.hub-ev { font-size: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.hub-ev:first-of-type { border-top: 0; }
.hub-ev b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.hub-ev.u b::after { content: " · срочно"; color: var(--warn); }
.trip-hub-tab-def::after { content: " •"; color: var(--hl); }
.rail li.cur:before {
  background: var(--hl);
  border-color: var(--hl);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hl) 30%, transparent);
}
.rail li.done:before { background: var(--accent); }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 0 0 16px; }
.check { display: flex; gap: 8px; align-items: baseline; }
.check i { font-style: normal; width: 1.2em; color: var(--muted); }
.check.ok i { color: var(--ok); }

.invite-sent-wrap { margin-top: 14px; }
.invite-sent-title { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.invite-sent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.invite-sent-row {
  display: grid;
  grid-template-columns: minmax(8rem, auto) 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.invite-sent-date { font-size: 13px; white-space: nowrap; }
.invite-sent-name { font-weight: 500; }
.icon-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
}
.icon-btn:hover { color: var(--warn); background: var(--soft); }
.invite-sent-empty { margin: 0; font-size: 14px; }

.banner, .notice {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.banner { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); color: var(--warn); }
.notice { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }
.toast {
  position: sticky;
  bottom: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 28%, transparent);
}
.toast .link { color: var(--bg); text-decoration: underline; font-weight: 600; }
.toast .icon-btn { color: var(--bg); }
.plus-menu, .share-menu { position: relative; display: inline-flex; }
.plus-btn { font-size: 20px; font-weight: 700; min-width: 36px; }
.plus-dropdown, .share-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 16%, transparent);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.plus-dropdown button, .share-dropdown button[role="menuitem"], .share-dropdown .share-more {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
}
.plus-dropdown button:hover,
.share-dropdown button[role="menuitem"]:hover,
.share-dropdown .share-more:hover { background: var(--soft); }
.share-scope {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 4px;
}
.scope-chip {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--soft);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.scope-chip.on {
  background: color-mix(in srgb, var(--hl) 55%, var(--surface));
  border-color: transparent;
  font-weight: 600;
}
.quick-add {
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.quick-add header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.invite-actions { gap: 8px; margin-bottom: 12px; }
.paste-form { margin-top: 16px; }
.paste-preview {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--soft);
}
.paste-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 6px 0;
  font-size: 14px;
}
.paste-preview .primary { margin-top: 10px; margin-right: 8px; }
.expense-more { margin-top: 12px; }
.expense-more summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.banner.warn { background: color-mix(in srgb, var(--hl) 28%, var(--surface)); color: var(--warn); }
.banner.warn p { margin: 0 0 10px; }

.tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-radius: 9px; }

.members { margin: 0; padding-left: 18px; }
.members li { margin: 4px 0; }
.group-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.group-meta { margin: 0; font-size: 13px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.custom-type-editor {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.custom-type-editor header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.settings-theme {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.settings-theme legend {
  padding: 0 6px;
  font-weight: 600;
}
.settings-toggle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0;
  cursor: pointer;
}
.settings-toggle small { display: block; }
.type-preview { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.money-my { margin-bottom: 16px; }
.money-balance { font-size: 28px; font-weight: 700; }
.settle-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.settle-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.settle-amount { font-weight: 600; white-space: nowrap; }
.expense-list .expense-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
}
.expense-list .expense-row small { grid-column: 1 / -1; }
h3 { margin: 18px 0 8px; font-size: 16px; }
.section-title { margin: 0 0 8px; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

.trip-hub {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.trip-hub-rail, .trip-hub-side { display: flex; flex-direction: column; gap: 6px; }
.trip-hub-trip {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  text-decoration: none;
  margin: 0;
}
.trip-hub-trip.current { background: var(--surface); border-color: var(--line); }
.trip-hub-trip strong { display: block; font-size: 15px; }
.trip-hub-trip .muted { font-size: 13px; }
.now {
  background: var(--ink);
  color: var(--bg);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0;
}
.now small { opacity: 0.75; letter-spacing: 0.04em; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.now h2 { margin: 2px 0 4px; font-size: 22px; letter-spacing: -0.01em; }
.now p { margin: 0; opacity: 0.9; max-width: 52ch; }
.now .tx { flex: 1; min-width: 240px; }
details summary { cursor: pointer; color: var(--muted); margin: 4px 0 8px; }
.rail { list-style: none; margin: 6px 0 16px; padding: 0 0 0 18px; position: relative; }
.rail:before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.rail li { position: relative; padding: 5px 0 9px 10px; font-size: 14px; }
.rail li:before { content: ""; position: absolute; left: -18px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.rail li.cp:before { width: 16px; height: 16px; left: -20px; top: 7px; }
.rail li small { display: block; color: var(--muted); }
.rail li a { margin-right: 8px; }
.plus {
  margin-top: 6px;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  border-radius: 10px;
  padding: 10px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.trip-hub-head {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.trip-hub-head:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background: repeating-radial-gradient(circle at 85% 20%, transparent 0 14px, var(--ink) 14px 15px);
  pointer-events: none;
}
.trip-hub-head > * { position: relative; }
.trip-hub-head h1 { margin: 6px 0 0; font-size: 28px; line-height: 1.2; }
.hub-head-actions { margin-left: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.trip-hub-head .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.deeds-switch { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.deeds-switch .deeds-sub { border: 1px solid var(--border); background: var(--surface); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.deeds-switch .deeds-sub.active { border-color: var(--accent); font-weight: 600; }
.readiness-list { list-style: none; padding: 0; margin: 8px 0 0; }
.readiness-list li { margin: 4px 0; }
.now-links { margin-top: 8px; }
.icon-gear { font-size: 18px; line-height: 1; padding: 4px 10px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 14px; align-items: center; }
.trip-hub-tabs {
  display: flex;
  gap: 2px;
  margin: 18px 0 14px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.trip-hub-tab {
  border: 0;
  background: transparent;
  padding: 10px 14px;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.trip-hub-tab[aria-selected="true"] { color: var(--ink); font-weight: 600; border-color: var(--accent); }
.trip-hub-side .card, .trip-hub-side {
  background: transparent;
}
.trip-hub-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.join-req { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.code-block {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  overflow: auto;
  max-height: 240px;
}
.btn-link { text-decoration: none; display: inline-block; }
button.danger, .link.danger { color: var(--warn); }
.invite-facts { margin: 0 0 16px; padding-left: 18px; }
.limit-box {
  flex-basis: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--hl) 28%, var(--surface));
}
.limit-box p { margin: 0 0 10px; }
.trip-hub-tab .tag { margin-left: 6px; border: 0; background: var(--hl); color: #2D3142; }

@media (max-width: 1100px) {
  .trip-hub { grid-template-columns: 200px minmax(0, 1fr); }
  .trip-hub-side { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; }
  .login-side { min-height: auto; padding: 28px 20px; }
  .grid-2, .checks { grid-template-columns: 1fr; }
  .top { flex-wrap: wrap; }
  .top nav { display: flex; width: 100%; margin-left: 0; }
  .main { padding: 12px; }
  .trip-hub { grid-template-columns: 1fr; }
  .trip-hub-rail { flex-direction: row; overflow: auto; }
  .trip-hub-trip { min-width: 170px; }
}
.pick-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  max-height: 280px;
  overflow: auto;
}
.list-pick {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.list-pick:hover { border-color: var(--accent, #2D3142); }
.form-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 12px 0;
  border: 0;
  padding: 0;
}
.form-flags legend { font-weight: 600; margin-bottom: 4px; width: 100%; }
.checkin-sheet {
  margin: 12px 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.checkin-sheet header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.checkin-attendees {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 240px;
  overflow: auto;
}
.checkin-attendee {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.cmd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--ink) 35%, transparent);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 16px 16px;
}
.cmd-palette {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 48px color-mix(in srgb, var(--ink) 28%, transparent);
  overflow: hidden;
}
.cmd-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
}
.cmd-list {
  display: flex;
  flex-direction: column;
  max-height: 320px;
  overflow: auto;
  padding: 6px;
}
.cmd-item {
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.cmd-item:hover,
.cmd-item.selected {
  background: color-mix(in srgb, var(--hl) 55%, var(--surface));
}
.cmd-empty { padding: 12px; margin: 0; }
.cmd-hint { padding: 8px 14px 12px; margin: 0; font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
