@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist-400.woff2") format("woff2");
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/geist-500.woff2") format("woff2");
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/geist-600.woff2") format("woff2");
}
:root {
  --base: #0a0a0a;
  --elev: #111113;
  --gray-1: #0e0e0e;
  --gray-2: #171717;
  --gray-3: #1c1c1c;
  --gray-4: #262626;
  --gray-9: #e5e5e5;
  --gray-10: #fff;
  --ink-base: #0a0a0a;
  --ink-9: #fff;
  --ink-8: #e8e8e8;
  --ink-7: #b3b3b3;
  --ink-6: #999;
  --ink-5: #737373;
  --ink-4: #525252;
  --line-1: #1a1a1a;
  --line-2: #222;
  --line-4: #333;
  --green: hsl(142 69% 50%);
  --green-soft: hsl(142 40% 12%);
  --red: hsl(0 72% 60%);
  --red-soft: hsl(0 40% 14%);
  --brand: hsl(221 83% 53%);
  --brand-strong: hsl(217 91% 60%);
  --brand-soft: hsl(222 47% 13%);
  --warn: hsl(38 92% 55%);
  --radius: 0.5rem;
  --shadow-sm: 0 0 0 1px hsl(0 0% 100% / 0.04);
  --shadow-md: 0 16px 40px -12px hsl(0 0% 0% / 0.7), 0 0 0 1px hsl(0 0% 100% / 0.06);
  --focus: 0 0 0 3px hsl(217 91% 60% / 0.35);
  --zoom: 1;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --motion-fast: 160ms;
  --motion-med: 280ms;
  --motion-slow: 420ms;
  interpolate-size: allow-keywords;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { zoom: var(--zoom); }
html, body { margin: 0; min-height: 100%; }
[hidden] { display: none !important; }
body {
  background: var(--base);
  color: var(--ink-8);
  font: 400 14px/1.5 Geist, Inter, system-ui, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.shell { display: flex; min-height: calc(100dvh / var(--zoom)); background: var(--base); }
aside {
  position: sticky;
  top: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  width: 16rem;
  height: calc(100dvh / var(--zoom));
  flex: none;
  padding: 8px;
  overflow: hidden;
  background: var(--gray-1);
  border-right: 1px solid var(--line-1);
}
.brand-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.brand {
  cursor: default;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  margin-bottom: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink-9);
  text-align: left;
  box-shadow: none;
}
.brand-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 0;
  line-height: 1.25;
}
.brand-sub {
  color: var(--ink-5);
  font-size: 12px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(160deg, #60a5fa, #2563eb 55%, #1d4ed8);
  color: #fff;
  font-size: 0;
  font-weight: 600;
  flex: none;
}
.mark svg { display: block; }
.mark.sm { width: 18px; height: 18px; border-radius: 5px; font-size: 11px; }
.brand-photo, .crumb-photo {
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--gray-3);
}
.brand-photo { width: 28px; height: 28px; }
.crumb-photo { width: 18px; height: 18px; }
.brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-9); }
.side-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  margin: 8px 0 0;
  padding: 0 10px;
  background: var(--base);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--ink-4);
}
.side-search .kbd {
  margin-left: auto;
  flex: none;
  padding: 1px 5px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  color: var(--ink-5);
  font-size: 11px;
  line-height: 1.3;
  font-family: inherit;
}
.side-search input {
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink-8);
  font-size: 13px;
}
.side-search input::placeholder { color: var(--ink-4); }
.side-search input:focus { outline: none; border: 0; box-shadow: none; }
.side-search:focus-within { background: var(--base); border-color: var(--line-4); box-shadow: var(--focus); }
.side-label {
  margin: 14px 10px 5px;
  color: #666;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-group { display: flex; flex-direction: column; gap: 1px; margin-bottom: 2px; }
.nav-group:first-child { margin-top: 2px; }
.cue { display: none; }
#back-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  height: 28px;
  margin: 8px 0 0;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--ink-6);
  text-align: left;
  appearance: none;
  font-size: 13px;
}
#back-nav:hover { background: var(--gray-2); color: var(--ink-8); }
.side-rule { height: 1px; margin: 10px 8px; background: var(--line-2); flex: none; }
#back-rule { margin: 8px 8px 0; }
#nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
  margin-top: 6px;
  overflow-y: auto;
  padding: 2px 0 8px;
  scrollbar-width: thin;
}
#nav > .side-rule { margin: 10px 8px; }
.cue { width: 14px; height: 14px; margin-left: auto; color: var(--ink-5); opacity: 0.7; }
.nav-resources {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: none;
  padding: 0 0 4px;
}
.nav-resources .side-rule {
  margin: 8px 8px 6px;
}
.nav-resources .side-label {
  margin: 0 10px 4px;
}
.nav-resources .resources-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.resource-panel {
  max-width: 720px;
  padding: 4px 2px 12px;
}
.resource-panel h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.resource-panel > p {
  margin: 0 0 16px;
  color: #8a8a8a;
  font-size: 14px;
  line-height: 1.5;
}
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.resource-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #222;
  border-radius: 12px;
  background: #0a0a0a;
  color: #cfcfcf;
  font-size: 13.5px;
  line-height: 1.45;
}
.resource-list strong {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.resource-actions .launch {
  text-decoration: none;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin: 6px 0 0;
  padding: 8px;
  border-radius: 10px;
  background: #121212;
  border: 1px solid #1f1f1f;
  color: var(--ink-8);
  min-height: 52px;
}
.user-card-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
}
.user-card-photo,
.user-card-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.user-card-photo {
  object-fit: cover;
  background: #1a1a1a;
}
.user-card-mark {
  background: #1d1d1d;
  color: #a3a3a3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.user-card-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 1px;
  line-height: 1.25;
}
.user-card-meta strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.user-card-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #737373;
  font-size: 12px;
  font-weight: 400;
}
.user-card-out {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  color: #8a8a8a;
  text-decoration: none;
  background: transparent;
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease;
}
.user-card-out:hover {
  background: #1a1a1a;
  color: #f5f5f5;
}
.user-card-out .ico {
  width: 15px;
  height: 15px;
}
.side, #nav button, .nav-resources button {
  position: relative;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  height: 32px;
  text-align: left;
  background: transparent;
  border: 0;
  color: #a3a3a3;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  transition:
    background var(--motion-fast) ease,
    color var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-out);
}
.side::before, #nav button::before, .nav-resources button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--brand);
  opacity: 0;
  transform: scaleY(0.55);
  transition: opacity var(--motion-med) var(--ease-out), transform var(--motion-med) var(--ease-out);
}
.nav-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side.active, #nav button.active, .nav-resources button.active {
  background: #1a1a1a;
  color: #fff;
  box-shadow: none;
}
.side.active::before, #nav button.active::before, .nav-resources button.active::before {
  opacity: 1;
  transform: scaleY(1);
}
.side:hover, #nav button:hover, .nav-resources button:hover { background: #151515; color: #f5f5f5; }
.side:active, #nav button:active, .nav-resources button:active { transform: scale(0.985); }
#nav button.active:hover, .nav-resources button.active:hover { background: #1a1a1a; }
.ico { width: 16px; height: 16px; flex: none; opacity: 0.92; }
.runtime-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  margin-left: 8px;
  border: 1px solid #262626;
  border-radius: 999px;
  background: #121212;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 500;
  flex: none;
  white-space: nowrap;
}
.runtime-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #525252;
  box-shadow: 0 0 0 3px rgba(82, 82, 82, 0.18);
}
.runtime-pill.online {
  color: #86efac;
  border-color: hsl(142 40% 22%);
  background: hsl(142 40% 10%);
}
.runtime-pill.online .runtime-dot {
  background: var(--green);
  box-shadow: 0 0 0 3px hsl(142 69% 50% / 0.18);
}
.runtime-pill.offline {
  color: #fca5a5;
  border-color: hsl(0 40% 24%);
  background: hsl(0 40% 10%);
}
.runtime-pill.offline .runtime-dot {
  background: var(--red);
  box-shadow: 0 0 0 3px hsl(0 72% 60% / 0.18);
}
.runtime-pill { margin-left: auto; }
.top-tools { display: none; }
.tool-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-6);
  cursor: default;
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}
.tool-btn:hover { background: var(--gray-2); color: var(--ink-8); }
.tool-btn:active { transform: scale(0.94); }
.flag {
  display: inline-flex;
  align-items: center;
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 99px;
  background: hsl(240 5% 35%);
  flex: none;
  font-size: 0;
  overflow: hidden;
}
.flag::before { display: none; }
.flag.on { background: var(--green); }
.soon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  margin-left: auto;
  padding: 0 10px;
  border-radius: 999px;
  background: #141414;
  border: 1px solid #2a2a2a;
  color: #a3a3a3;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  flex: none;
  line-height: 1;
}
#nav .soon-badge {
  height: 20px;
  padding: 0 7px;
  font-size: 10px;
}
#nav button.locked {
  color: #737373;
}
#nav button.locked:hover {
  background: #151515;
  color: #a3a3a3;
}
#nav button.locked.active {
  color: #d4d4d4;
}
#nav button.locked.active::before {
  background: #525252;
}
.locked-panel {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 280px;
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed #262626;
  border-radius: 12px;
  background: #0c0c0c;
  color: #8a8a8a;
}
.locked-panel .ico {
  width: 28px;
  height: 28px;
  color: #525252;
}
.locked-panel strong {
  color: #e5e5e5;
  font-size: 16px;
  font-weight: 600;
}
.locked-panel p {
  margin: 0;
  max-width: 42ch;
  font-size: 13.5px;
  line-height: 1.45;
}
.module-card.locked {
  opacity: 0.72;
}
.module-card.locked .launch:disabled {
  cursor: not-allowed;
}
.nav-block { display: flex; flex-direction: column; gap: 1px; margin-bottom: 2px; }
#nav button.branch-active {
  color: #fff;
  background: transparent;
}
.nav-sub {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 1px 0 4px;
  padding: 0 0 0 12px;
  border-left: 1px solid #262626;
  margin-left: 18px;
  animation: nav-sub-in var(--motion-med) var(--ease-out);
}
.nav-sub-btn {
  height: 28px !important;
  padding-left: 10px !important;
  color: #8a8a8a !important;
  font-size: 12.5px !important;
}
.nav-sub-btn.active {
  color: #fff !important;
  background: #1a1a1a !important;
}
.nav-sub-btn:hover {
  color: #e5e5e5 !important;
}
.nav-empty {
  padding: 8px 10px 4px;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}
.nav-empty p { margin: 0 0 2px; }
.nav-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  margin-top: 12px;
  padding: 0 10px;
  border: 1px dashed #2a2a2a;
  border-radius: 8px;
  background: transparent;
  color: #a3a3a3;
  font-size: 13px;
  font-weight: 500;
}
.nav-add:hover {
  background: #151515;
  border-color: #3b82f6;
  color: #fff;
}
.block-picker,
.ui-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  animation: overlay-in var(--motion-med) var(--ease-out);
}
.block-picker.is-leaving,
.ui-modal.is-leaving {
  animation: overlay-out var(--motion-fast) var(--ease-in) forwards;
  pointer-events: none;
}
.ui-modal-panel {
  width: min(420px, 100%);
  background: #0e0e0e;
  border: 1px solid #222;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  animation: panel-in var(--motion-slow) var(--ease-out);
}
.block-picker.is-leaving .block-picker-panel,
.ui-modal.is-leaving .ui-modal-panel {
  animation: panel-out var(--motion-fast) var(--ease-in) forwards;
}
.ui-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #1a1a1a;
}
.ui-modal-head h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.ui-modal-head p {
  margin: 4px 0 0;
  color: #8a8a8a;
  font-size: 13px;
}
.ui-modal-body {
  display: grid;
  gap: 14px;
  padding: 16px 20px 20px;
}
.ui-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 20px 18px;
}
.ui-modal-body label {
  display: grid;
  gap: 6px;
  color: #a3a3a3;
  font-size: 12.5px;
}
.ui-modal-body textarea {
  width: 100%;
  border: 1px solid #262626;
  border-radius: 8px;
  background: #111;
  color: #e5e5e5;
}
.ui-modal-head .ghost,
.ui-modal-actions .ghost {
  flex: none;
}
.block-picker-panel {
  width: min(720px, 100%);
  max-height: min(80dvh, 820px);
  overflow: auto;
  background: #0e0e0e;
  border: 1px solid #222;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  animation: panel-in var(--motion-slow) var(--ease-out);
}
.block-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #1a1a1a;
  position: sticky;
  top: 0;
  background: #0e0e0e;
  z-index: 1;
}
.block-picker-head h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.block-picker-head p {
  margin: 4px 0 0;
  color: #8a8a8a;
  font-size: 13px;
}
.block-picker-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  padding: 16px 20px 20px;
}
.block-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px;
  border: 1px solid #222;
  border-radius: 12px;
  background: #0a0a0a;
  color: inherit;
  text-align: left;
  transition:
    border-color var(--motion-fast) ease,
    background var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-out);
}
.block-pick:hover {
  border-color: #3b82f6;
  background: #111;
  transform: translateY(-1px);
}
.block-pick:active { transform: scale(0.985); }
.block-pick.locked {
  opacity: 0.7;
}
.block-pick-top {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.block-pick-top strong {
  flex: 1;
  min-width: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.block-pick p {
  margin: 0;
  color: #8a8a8a;
  font-size: 12.5px;
  line-height: 1.4;
}
.block-pick-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid hsl(221 83% 53% / 0.4);
  background: hsl(222 47% 13%);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  flex: none;
}
.block-pick-meta {
  color: #666;
  font-size: 11.5px;
}
.block-picker-head .ghost {
  flex: none;
}
.workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--base); }
.top {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 44px;
  padding: 0 20px 0 12px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-1);
}
.menu-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-6);
}
.menu-close {
  display: none;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-7);
}
.menu-btn:hover, .menu-close:hover { background: var(--gray-2); color: var(--ink-8); }
body.nav-collapsed aside { display: none; }
body.nav-collapsed .menu-btn { color: var(--ink-8); }
.side-head { display: flex; align-items: center; gap: 4px; }
.side-head .brand-wrap { flex: 1; width: auto; min-width: 0; }
.backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(15, 15, 15, 0.4); }
.crumb { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; overflow: hidden; color: #737373; font-size: 13px; }
.crumb .mark.sm, .crumb-photo { display: none; }
.crumb-link {
  flex: none;
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  padding: 0;
  color: #737373;
  font-weight: 400;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crumb-link:hover { color: #e5e5e5; }
.crumb strong {
  flex: none;
  min-width: 0;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e5e5e5;
  font-weight: 500;
}
.sep { color: #525252; }
.page { padding: 24px 32px 56px; width: 100%; max-width: none; }
.titles {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
}
.titles-main { min-width: 0; flex: 1; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: none; align-items: center; }
.ghost,
.launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  flex: none;
  transition:
    background var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) ease,
    opacity var(--motion-fast) ease;
}
.ghost,
.ghost.soft {
  border: 1px solid #262626;
  background: #141414;
  color: #e5e5e5;
}
.ghost:hover,
.ghost.soft:hover {
  background: #1a1a1a;
  border-color: #333;
  color: #fff;
}
.ghost:active,
.ghost.soft:active,
.launch:active:not(:disabled) {
  transform: scale(0.97);
}
.launch {
  border: 0;
  background: hsl(221 83% 53%);
  color: #fff;
}
.launch:hover { background: hsl(217 91% 58%); }
.launch:disabled {
  background: #1a1a1a;
  color: #666;
  cursor: default;
}
.unsaved-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.unsaved-bar[hidden] { display: none !important; }
.unsaved-bar-panel {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  width: min(920px, 100%);
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #111214;
  border: 1px solid #1e1f22;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  animation: unsaved-in 220ms var(--ease-out);
}
.unsaved-bar-copy {
  margin: 0;
  color: #dbdee1;
  font-size: 14px;
  font-weight: 500;
}
.unsaved-bar-copy strong { color: #fff; font-weight: 600; }
.unsaved-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
body.has-unsaved .page {
  padding-bottom: 96px;
}
body.config-locked #form {
  position: relative;
  opacity: 0.55;
  filter: grayscale(0.35);
}
body.config-locked #form::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.08), rgba(10, 10, 10, 0.22));
  pointer-events: none;
}
@keyframes unsaved-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .unsaved-bar-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .unsaved-bar-actions { justify-content: flex-end; }
}
.icon-btn .ico { width: 15px; height: 15px; opacity: 0.9; flex: none; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.title-row h1 { flex: 1 0 100%; min-width: 0; }
#back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  margin: 0;
  padding: 0 8px 0 4px;
  flex: none;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink-5);
}
#back:hover { background: var(--gray-2); color: var(--ink-8); }
h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: #fff;
}
#summary { margin: 6px 0 0; max-width: 62ch; color: #8a8a8a; font-size: 14px; line-height: 1.45; }
#status { margin: 6px 0 0; color: #666; font-size: 12.5px; }
#status:empty { display: none; }
#guild-note:empty { display: none; }
#guild-note { margin: 4px 0 0; color: var(--green); font-size: 13px; }
#guild-note.bad { color: var(--red); }
.notice {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid hsl(0 72% 60% / 0.25);
  border-radius: var(--radius);
}
h2 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--ink-5); }
h2.quiet { margin-top: 8px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.row-head h2 { margin: 0; color: var(--ink-8); font-size: 14px; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; }
.filters button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-6);
  font-size: 13px;
}
.filters button:hover { background: var(--gray-2); color: var(--ink-8); }
.filters button.active { background: var(--gray-2); color: var(--ink-9); box-shadow: none; }
.cat-row, .cards { display: grid; gap: 12px; margin-bottom: 20px; }
.cat-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cards.overview { display: flex; flex-direction: column; gap: 12px; max-width: none; }
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
}
.kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 118px;
  padding: 18px 18px 16px;
  border: 0;
  border-right: 1px solid #222;
  border-radius: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}
.kpi:last-child { border-right: 0; }
.kpi:hover { background: #0f0f0f; }
.kpi-label { color: #8a8a8a; font-size: 12.5px; font-weight: 500; }
.kpi-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.kpi-value strong {
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.kpi-hint { color: #666; font-size: 12px; line-height: 1.35; }
.kpi-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: hsl(142 69% 52%);
  font-size: 12px;
  font-weight: 500;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #404040;
  flex: none;
}
.dot.on { background: var(--green); box-shadow: 0 0 0 3px hsl(142 69% 50% / 0.15); }
.overview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.overview-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px 0 10px;
  border: 1px solid #222;
  border-radius: 999px;
  background: #111;
  color: #d4d4d4;
  font-size: 12.5px;
}
.overview-chip .ico { width: 14px; height: 14px; color: #737373; }
.overview-chip strong { font-weight: 500; color: #fff; }
.overview-chip span { color: #8a8a8a; font-variant-numeric: tabular-nums; }
.overview-chip:hover { background: #171717; border-color: #333; }
.overview-chip.on {
  background: #1a1a1a;
  border-color: #3b82f6;
  color: #fff;
}
.kpi-compact .kpi-value strong {
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.dash-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-panel { padding-bottom: 14px; }
.dash-toolbar {
  margin: 0 0 12px;
  gap: 10px;
}
.dash-toolbar .toolbar-search {
  flex: 0 1 280px;
  max-width: 280px;
  width: 100%;
  background: #111;
  border: 1px solid #262626;
  border-radius: 8px;
  color: #e5e5e5;
  height: 34px;
  padding: 0 12px;
}
.dash-toolbar .toolbar-search:focus {
  outline: none;
  border-color: #3b82f6;
}
.dash-toolbar .filters.overview-chips {
  flex: 1 1 auto;
}
.dash-panel > .dash-feed,
.dash-panel > .meters,
.dash-panel > .chart-host {
  margin-top: 2px;
}
.dash-feed {
  display: flex;
  flex-direction: column;
}
.dash-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid #1a1a1a;
  background: transparent;
}
.dash-entry:last-child { border-bottom: 0; }
.dash-entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dash-entry-title {
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}
.dash-entry-title.quiet { color: #8a8a8a; font-weight: 400; }
.dash-entry-when {
  color: #737373;
  font-size: 12px;
  flex: none;
}
.dash-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  color: #8a8a8a;
  font-size: 12px;
}
.dash-entry-meta span:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: #525252;
}
.meter-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-mid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 12px;
}
.overview-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.95fr);
  gap: 12px;
}
.panel {
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 16px 18px;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-head h2 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.panel-head p {
  margin: 4px 0 0;
  color: #737373;
  font-size: 12.5px;
  line-height: 1.4;
}
.panel-body.muted,
.muted { color: #8a8a8a; font-size: 13px; line-height: 1.45; }
.text-link {
  border: 0;
  background: transparent;
  color: #8a8a8a;
  font-size: 12.5px;
  padding: 0;
  white-space: nowrap;
}
.text-link:hover { color: #fff; }
.plan-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid hsl(221 83% 53% / 0.4);
  background: hsl(222 47% 13%);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 500;
}
.chart-host { min-height: 248px; }
.line-chart { display: flex; flex-direction: column; gap: 8px; min-height: 248px; }
.line-chart-frame {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px;
  align-items: stretch;
  min-height: 220px;
}
.line-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 0 14px;
  color: #525252;
  font-size: 11px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.line-chart-svg { width: 100%; height: 220px; display: block; }
.line-grid { stroke: #1f1f1f; stroke-width: 1; }
.line-path {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.line-area { fill: hsl(217 91% 60% / 0.14); stroke: none; }
.line-axis {
  display: flex;
  justify-content: space-between;
  padding-left: 38px;
  color: #666;
  font-size: 11px;
}
.chart-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 180px;
  margin: 0;
  padding: 24px;
  border: 1px dashed #262626;
  border-radius: 10px;
  background: #0c0c0c;
  color: #737373;
  font-size: 13px;
  text-align: center;
}
.empty-panel {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 120px;
  padding: 20px 16px;
  text-align: center;
  color: #737373;
  border: 1px dashed #262626;
  border-radius: 10px;
  background: #0c0c0c;
}
.empty-panel strong {
  color: #d4d4d4;
  font-size: 14px;
  font-weight: 500;
}
.empty-panel p { margin: 0; }
.empty-panel .ico {
  width: 28px;
  height: 28px;
  color: #525252;
  margin-bottom: 4px;
}
.meters { display: flex; flex-direction: column; gap: 16px; }
.meter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: #a3a3a3;
  font-size: 12.5px;
}
.meter-top strong { color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; }
.meter-track {
  height: 6px;
  border-radius: 99px;
  background: #1a1a1a;
  overflow: hidden;
}
.meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #3b82f6;
}
.meter-fill.full { background: #3b82f6; }
.meter-fill.warn { background: #ef4444; }
.module-live-list { display: flex; flex-direction: column; gap: 2px; }
.module-live {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  text-align: left;
}
.module-live:hover { background: #151515; }
.module-live-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.module-live strong { font-weight: 500; font-size: 13.5px; }
.module-live-sub { color: #737373; font-size: 12px; }
.module-live .meta,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: hsl(142 40% 12%);
  color: hsl(142 69% 52%);
  font-size: 12px;
  font-weight: 500;
}
.module-live .meta.off,
.status-pill.off {
  background: #1a1a1a;
  color: #737373;
}
.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #1a1a1a;
  border-radius: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  font-size: 13px;
}
.recent-item:last-child { border-bottom: 0; }
.recent-item span { color: #8a8a8a; font-size: 12px; }
.security-card { padding: 0; grid-column: 1 / -1; }
.security-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.security-row:hover { background: #111; }
.security-row .ico { width: 18px; height: 18px; color: #8a8a8a; flex: none; }
.security-row h2 { margin: 0; color: #fff; font-size: 14px; font-weight: 600; }
.security-row p { margin: 2px 0 0; color: #737373; font-size: 12.5px; }
.overview-links { display: flex; flex-wrap: wrap; gap: 8px; }
.overview-links button {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #262626;
  border-radius: 8px;
  background: #141414;
  color: #e5e5e5;
  font-size: 13px;
  font-weight: 500;
}
.overview-links button:hover { background: #1a1a1a; border-color: #333; color: #fff; }
@media (max-width: 1100px) {
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(1),
  .kpi:nth-child(2) { border-bottom: 1px solid hsl(240 4% 15%); }
  .overview-mid,
  .overview-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kpi-strip { grid-template-columns: 1fr; }
  .kpi { border-right: 0; border-bottom: 1px solid hsl(240 4% 15%); }
  .kpi:last-child { border-bottom: 0; }
}
button.stat { width: 100%; text-align: left; }
button.stat:hover { border-color: var(--line-4); }
.cat, .module-card {
  background: var(--base);
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) + 4px);
  text-align: left;
  box-shadow: none;
  transition:
    border-color var(--motion-fast) ease,
    background var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-out);
}
.cat:active, .module-card:active { transform: scale(0.985); }
.cat { padding: 12px 14px; color: inherit; }
.cat strong { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 500; color: var(--ink-8); }
.cat span, .group { color: var(--ink-5); font-size: 12px; }
.cat.active, .cat:hover, .module-card:hover { border-color: var(--line-4); background: hsl(240 5% 5%); }
.module-card { padding: 16px; display: flex; flex-direction: column; min-height: 148px; }
.module-top, .module-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.module-card h3 { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 600; letter-spacing: 0; color: var(--ink-8); }
.module-card p { margin: 6px 0 14px; color: var(--ink-5); flex: 1; font-size: 13px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-6);
  background: var(--gray-2);
}
.pill.on { color: var(--green); background: var(--green-soft); }
.empty {
  display: grid;
  place-items: center;
  gap: 8px;
  margin: 8px 0 20px;
  padding: 48px 24px;
  color: var(--ink-5);
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: calc(var(--radius) + 4px);
  background: hsl(240 6% 5%);
}
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 16px 16px 14px; }
.stat span { display: block; color: hsl(240 5% 55%); font-size: 12.5px; font-weight: 500; }
.stat strong { display: block; margin-top: 10px; color: #fff; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat .rank-fill, .bar-fill { background: var(--brand); }
.rank-fill { background: var(--brand); }
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
}
.bars { display: flex; align-items: flex-end; gap: 6px; height: 148px; }
.bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar-fill { display: block; width: 100%; max-width: 28px; border-radius: 5px 5px 2px 2px; background: var(--ink-7); }
.bar > span:last-child { color: var(--ink-5); font-size: 11px; line-height: 1; }
.ranks { display: flex; flex-direction: column; gap: 10px; }
.rank { display: grid; grid-template-columns: minmax(120px, 190px) 1fr auto; gap: 12px; align-items: center; }
.rank-name { display: flex; gap: 8px; min-width: 0; color: var(--ink-8); font-size: 13px; }
.rank-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-place { color: #737373; flex: none; }
.rank-track { height: 6px; border-radius: 99px; background: var(--gray-3); overflow: hidden; }
.rank-fill { display: block; height: 100%; border-radius: inherit; background: var(--ink-7); }
.rank-value { color: var(--ink-5); font-size: 12px; white-space: nowrap; }
form { max-width: none; }
form.config-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: none;
  align-items: stretch;
}
form > h2 { margin: 0 0 12px; color: var(--ink-8); font-size: 14px; font-weight: 600; }
.config-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
}
.config-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid #222;
  border-radius: 12px;
  background: #0a0a0a;
}
.config-hero-copy { min-width: 0; flex: 1; }
.config-hero-copy .eyebrow {
  margin: 0 0 6px;
  color: #737373;
  font-size: 12px;
  font-weight: 500;
}
.config-hero-copy strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.config-hero-copy p {
  margin: 6px 0 0;
  max-width: 62ch;
  color: #8a8a8a;
  font-size: 13.5px;
  line-height: 1.45;
}
.config-hero-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
  min-width: 200px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #262626;
  border-radius: 10px;
  background: #111;
}
.config-hero-toggle > div:first-child { flex: 1; min-width: 0; }
.config-hero-toggle .name { color: #e5e5e5; font-weight: 500; font-size: 13px; }
.config-hero-toggle .hint { display: none; }
.config-section {
  border: 1px solid #222;
  border-radius: 12px;
  background: #0a0a0a;
  overflow: visible;
  transition: border-color var(--motion-med) ease, box-shadow var(--motion-med) var(--ease-out);
}
.config-section[open]:not(.is-closing) {
  border-color: #2a2a2a;
  box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.75);
}
.config-section.wide { width: 100%; }
.config-section.is-collapsing {
  pointer-events: none;
  overflow: hidden;
}
.config-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 12px 12px 0 0;
  background: transparent;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--motion-fast) ease;
}
.config-section:not([open]) > .config-summary,
.config-section.is-closing > .config-summary { border-radius: 12px; }
.config-summary::-webkit-details-marker { display: none; }
.config-summary-main {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.config-chev {
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid #262626;
  border-radius: 8px;
  background: #111;
  position: relative;
  transition:
    border-color var(--motion-fast) ease,
    background var(--motion-fast) ease,
    transform var(--motion-med) var(--ease-out),
    box-shadow var(--motion-fast) ease;
}
.config-chev::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid #8a8a8a;
  border-bottom: 1.6px solid #8a8a8a;
  transform: rotate(45deg) translate(-1px, -2px);
  transition: transform 320ms var(--ease-out), border-color var(--motion-fast) ease;
}
.config-summary:hover .config-chev {
  border-color: #333;
  background: #171717;
}
.config-section[open]:not(.is-closing) > .config-summary .config-chev {
  border-color: #333;
  background: #171717;
  transform: rotate(180deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.config-section[open]:not(.is-closing) > .config-summary .config-chev::before {
  transform: rotate(45deg) translate(-1px, -2px);
  border-color: #cfcfcf;
}
.config-summary-title {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.config-summary-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #141414;
  border: 1px solid #262626;
  color: #8a8a8a;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.config-summary:hover { background: #111; }
.config-body {
  padding: 0;
  border-top: 1px solid #1a1a1a;
  overflow: visible;
  will-change: height, opacity, transform;
}
.config-section:not([open]) > .config-body,
.config-section.is-closing > .config-body {
  border-top-color: transparent;
}
.config-section.is-collapsing > .config-body {
  overflow: hidden;
}
.config-body.stack { padding: 18px 20px 20px; }
.config-body.stack > .block > h2,
.config-body.stack > .msg > h2,
.config-body.stack > .list-block > h2 {
  display: none;
}
.config-body.stack > .block,
.config-body.stack > .msg,
.config-body.stack > .list-block,
.config-body.stack > .tag-group {
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}
.config-form .card.plain {
  border: 0;
  background: transparent;
  padding: 0;
}
.settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 18px 20px 20px;
  margin-bottom: 0;
}
.settings > .wide { grid-column: 1 / -1; }
.field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
}
.field.menu-open { position: relative; z-index: 30; }
.field.switch-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #262626;
  border-radius: 10px;
  background: #111;
}
.field.switch-row > div:last-child { flex: none; }
.card .field {
  border: 0;
  background: transparent;
  margin-bottom: 0;
  padding: 0;
}
.config-form input[type="text"],
.config-form input[type="password"],
.config-form input[type="number"],
.config-form input[type="search"],
.config-form select,
.config-form textarea,
.config-form .picker-control {
  min-height: 40px;
  background: #111;
  border: 1px solid #262626;
  border-radius: 8px;
  color: #fff;
  padding: 8px 12px;
}
.config-form input:hover,
.config-form select:hover,
.config-form textarea:hover,
.config-form .picker-control:hover {
  border-color: #333;
  background: #151515;
}
.config-form input:focus,
.config-form select:focus,
.config-form textarea:focus,
.config-form .picker.open .picker-control {
  border-color: hsl(221 83% 53% / 0.7);
  background: #0a0a0a;
  box-shadow: 0 0 0 3px hsl(221 83% 53% / 0.18);
}
.config-form .card {
  border: 1px solid #222;
  border-radius: 12px;
  background: #0c0c0c;
  padding: 16px 18px;
  margin: 0;
}
.config-form .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.config-form .card-head strong {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.config-form .card .remove {
  height: 36px;
  padding: 0 14px;
  border: 1px solid #262626;
  border-radius: 8px;
  background: #141414;
  color: #e5e5e5;
  font-size: 13px;
  font-weight: 500;
}
.config-form .card .remove:hover {
  background: #1a1a1a;
  border-color: #333;
  color: #fff;
}
.config-form .card .field + .field { margin-top: 14px; }
.config-form .add {
  height: 36px;
  border: 1px solid #262626;
  border-radius: 8px;
  background: #141414;
  color: #e5e5e5;
  font-size: 13px;
  font-weight: 500;
}
.config-form .add:hover {
  border-color: #333;
  color: #fff;
  background: #1a1a1a;
}
@media (max-width: 900px) {
  .settings { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 800px) {
  .page { padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
  .config-hero { flex-direction: column; align-items: stretch; }
  .config-hero-toggle { width: 100%; min-width: 0; }
  .config-summary { padding: 0 14px; min-height: 48px; }
  .settings,
  .config-body.stack { padding: 14px; }
}
.switch-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.switch-row > div:last-child { flex: none; }
.switch {
  appearance: none;
  width: 36px;
  height: 20px;
  margin: 0;
  border-radius: 99px;
  background: var(--gray-4);
  position: relative;
  cursor: pointer;
  transition: background var(--motion-med) var(--ease-out), box-shadow var(--motion-fast) ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink-9);
  box-shadow: var(--shadow-sm);
  transition: transform var(--motion-med) var(--ease-out), background var(--motion-fast) ease;
}
.switch:checked { background: var(--brand); }
.switch:checked::after { background: #fff; transform: translateX(16px); }
.switch:focus { outline: none; box-shadow: var(--focus); }
.field .name { color: #d4d4d4; font-weight: 500; font-size: 13px; }
.config-form .hint { color: #737373; }
.hint, .err { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; }
.hint { color: var(--ink-5); font-weight: 420; }
.err { color: var(--red); }
input[type="text"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
  width: 100%;
  min-height: 28px;
  background: var(--gray-2);
  border: 1px solid var(--gray-2);
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--ink-8);
  box-shadow: none;
}
textarea { min-height: 88px; resize: vertical; padding: 8px; }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:hover, select:hover, textarea:hover { border-color: var(--line-4); background: var(--gray-3); }
input:focus, select:focus, textarea:focus {
  outline: none;
  background: var(--base);
  border-color: var(--line-4);
  box-shadow: var(--shadow-sm);
}
.side-search input { min-height: 0; height: 100%; padding: 0; background: transparent; border: 0; }
.side-search input:hover, .side-search input:focus { background: transparent; border: 0; box-shadow: none; }
input.bad, textarea.bad, select.bad { border-color: var(--red); box-shadow: none; }
.color-line { display: flex; gap: 8px; align-items: center; }
.color-line input[type="text"] { flex: 1; min-width: 0; width: auto; }
input[type="color"] { width: 28px; height: 28px; padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 8px; }
.check { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.block { margin-top: 24px; }
.block h2 { margin-bottom: 8px; color: var(--ink-8); }
.list-block { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.list-block > h2, .list-block > .err, .list-block > .add { grid-column: 1 / -1; }
.list-block > .card { margin: 0; }
.list-block > .card:only-of-type { grid-column: 1 / -1; }
.msg, .preview-wrap {
  background: var(--base);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 16px 20px;
}
.card {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 4px 16px 12px;
  margin: 0;
  background: var(--base);
}
.remove, .add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  background: #141414;
  color: #e5e5e5;
  border: 1px solid #262626;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}
.remove:hover, .add:hover {
  background: #1a1a1a;
  border-color: #333;
  color: #fff;
}
.remove { margin: 8px 0; }
.msg { margin-top: 20px; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.vars code {
  background: var(--gray-2);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--ink-8);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
}
.preview-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.preview-wrap .hint { margin: 0; }
.preview { width: 100%; max-width: 720px; height: auto; border-radius: 12px; background: var(--gray-2); border: 1px solid var(--line-1); }
.picker { position: relative; }
.picker-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 28px;
  padding: 2px 8px;
  text-align: left;
  background: var(--gray-2);
  border: 1px solid var(--gray-2);
  border-radius: 8px;
  color: var(--ink-8);
}
button.picker-control.single { justify-content: flex-start; gap: 8px; padding: 4px 8px; }
button.picker-control.single::after { margin-left: auto; }
button.picker-control.single::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink-5);
  border-bottom: 1.5px solid var(--ink-5);
  transform: rotate(45deg) translateY(-2px);
  flex: none;
}
.picker-control:hover { background: var(--gray-3); border-color: var(--line-4); }
.picker.open .picker-control { background: var(--base); border-color: var(--line-4); box-shadow: var(--shadow-sm); }
.picker.bad .picker-control { border-color: var(--red); }
.picker-control .picker-search, .picker-panel .picker-search {
  flex: 1 1 120px;
  width: auto;
  min-width: 96px;
  min-height: 0;
  margin: 0;
  padding: 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.picker-control .picker-search:focus, .picker-panel .picker-search:focus { outline: none; border: 0; box-shadow: none; background: transparent; }
.picker-panel .picker-search { flex: none; width: 100%; margin-bottom: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line-1); }
.picker-panel {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: var(--elev);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 4px;
  box-shadow: var(--shadow-md);
}
.picker-list { max-height: 240px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.picker-group { margin: 8px 8px 2px; color: var(--ink-5); font-size: 12px; font-weight: 500; }
.picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  text-align: left;
  color: var(--ink-8);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
}
.picker-row:hover, .picker-row.on { background: var(--gray-2); }
.picker-row.on::after {
  content: "";
  width: 5px;
  height: 9px;
  margin-left: auto;
  border-right: 1.5px solid var(--ink-8);
  border-bottom: 1.5px solid var(--ink-8);
  transform: rotate(45deg);
}
.picker-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-meta { flex: none; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-5); font-size: 12px; }
.avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; background: var(--gray-3); }
.chip .avatar { width: 16px; height: 16px; }
.picker-empty { margin: 0; padding: 8px; color: var(--ink-5); font-size: 13px; }
.swatch { width: 8px; height: 8px; border-radius: 99px; flex: none; }
.chips { display: contents; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 22px;
  padding: 0 2px 0 8px;
  background: var(--gray-3);
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-8);
}
.chip-x { width: 18px; height: 18px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-5); line-height: 1; }
.chip-x:hover { color: var(--ink-8); background: var(--gray-4); }
.manage { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.manage-list, .manage-detail { background: var(--gray-1); border: 1px solid var(--line-2); border-radius: 12px; }
.manage-list {
  position: sticky;
  top: 58px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100dvh / var(--zoom) - 74px);
  overflow: auto;
}
.manage-person {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 6px 8px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink-8);
}
.manage-person .avatar { width: 28px; height: 28px; }
.manage-score { margin-left: auto; color: var(--ink-7); font-size: 12px; font-variant-numeric: tabular-nums; }
.reviews { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 18px; }
.reviews h2 { margin: 0 0 2px; color: var(--ink-8); font-size: 16px; }
.review {
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-left: 3px solid #d4a017;
  border-radius: 12px;
  background: var(--base);
}
.review-top { display: flex; align-items: center; gap: 10px; }
.review-top .avatar { width: 28px; height: 28px; }
.review-top strong { color: var(--ink-9); font-size: 15px; }
.review-score { margin-left: auto; color: var(--ink-8); font-weight: 600; font-variant-numeric: tabular-nums; }
.review-copy p, .review > .review-copy p { margin: 6px 0 0; color: var(--ink-6); font-size: 13px; }
.review-copy .review-score { margin: 0; color: var(--ink-8); font-size: 14px; }
.manage-person:hover { background: var(--gray-2); }
.manage-person.on { background: var(--elev); box-shadow: var(--shadow-sm); }
.manage-id { display: flex; flex-direction: column; min-width: 0; }
.manage-id strong { font-weight: 500; }
.manage-id span { color: var(--ink-5); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manage-detail { padding: 20px; }
.person-head { display: flex; align-items: center; gap: 14px; }
.person-head h2 { margin: 0; color: var(--ink-8); font-size: 20px; font-weight: 600; }
.person-head .hint { margin: 2px 0 0; }
.person-head .avatar { width: 48px; height: 48px; }
.sheet { margin-top: 22px; }
.sheet h3 { margin: 0 0 10px; font-size: 12px; font-weight: 500; color: var(--ink-5); }
.sheet .hint { margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.note { margin: 0 0 16px; max-width: 72ch; color: var(--ink-5); font-size: 13px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
input.toolbar-search { width: auto; max-width: 320px; flex: 1 1 220px; }
.toolbar .filters { flex: 1 1 240px; }
.feed, .entries { display: flex; flex-direction: column; gap: 8px; }
.feed-count { margin: 0 0 4px; color: var(--ink-5); font-size: 13px; }
.entry {
  padding: 12px 14px;
  background: var(--gray-2);
  border: 1px solid var(--line-1);
  border-radius: 10px;
}
.entry-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.entry-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.entry-who .avatar { width: 28px; height: 28px; }
.entry-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.choice { display: flex; gap: 6px; }
.choice-btn {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--gray-3);
  color: var(--ink-7);
}
.choice-btn.on.accept { background: var(--green-soft); color: var(--green); }
.choice-btn.on.refuse { background: var(--red-soft); color: var(--red); }
.tag.ok { color: var(--green); background: var(--green-soft); }
h2, h3, [data-toc] { scroll-margin-top: 16px; }
.entry .context { margin-top: 10px; }
.entry strong { font-size: 14px; font-weight: 500; color: var(--ink-8); }
.entry-when { flex: none; color: var(--ink-5); font-size: 12px; }
.entry-reason { margin: 8px 0 0; color: var(--ink-8); font-size: 14px; line-height: 1.45; }
.entry-reason.quiet { color: var(--ink-5); }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; margin: 6px 0 0; color: var(--ink-5); font-size: 12px; }
.entry-meta span:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--ink-4); }
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--gray-3);
  color: var(--ink-7);
  font-size: 12px;
  font-weight: 500;
}
.tag.warn { color: oklch(0.84 0.13 82); background: oklch(0.32 0.05 70); }
.tag.danger { color: var(--red); background: var(--red-soft); }
.tag.mute { color: oklch(0.777 0.112 244.656); background: oklch(0.3 0.05 255); }
.entry-more { margin-top: 6px; }
.entry-more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 500;
  list-style: none;
}
.entry-more summary:hover { color: #d4d4d4; }
.entry-more summary::-webkit-details-marker { display: none; }
.entry-more summary::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
}
.entry-more[open] summary::before { transform: rotate(45deg) translateY(-1px); }
.dash-entry .context,
.context {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
}
.context-row { display: flex; flex-direction: column; gap: 2px; }
.context-label { margin: 0; color: #737373; font-size: 12px; }
.context-value, .context-note { margin: 0; color: #d4d4d4; font-size: 13px; line-height: 1.45; }
.context-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.context-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.context-item-title { color: var(--ink-8); font-size: 13px; }
.context-perms { display: flex; flex-wrap: wrap; gap: 4px; }
.context-perms .pill { height: 20px; background: var(--gray-3); color: var(--ink-6); font-weight: 420; }
.context-link { color: var(--ink-7); font-size: 12px; word-break: break-all; }
@media (max-width: 1100px) {
  .settings, .list-block, .manage { grid-template-columns: 1fr; }
  .manage-list { position: static; max-height: none; }
}
@media (max-width: 800px) {
  .titles { flex-direction: column; align-items: stretch; }
  .page-actions { justify-content: flex-start; }
  .top-tools { display: none; }
  .menu-close { display: grid; }
  body.nav-collapsed aside { display: flex; }
  .shell { display: block; }
  aside {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    width: min(280px, calc(100vw - 48px));
    height: calc(100dvh / var(--zoom));
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    border-right: 1px solid var(--line-1);
    transition:
      transform var(--motion-med) var(--ease-out),
      visibility var(--motion-med);
  }
  body.nav-open { overflow: hidden; }
  body.nav-open aside { transform: none; visibility: visible; pointer-events: auto; }
  .backdrop {
    transition: opacity var(--motion-med) ease;
  }
  .top { height: calc(42px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0 8px; }
  .page { padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
  .settings, .msg, .preview-wrap { padding-left: 14px; padding-right: 14px; }
  .side, #nav button, #back-nav { height: 40px; }
  .overview-section { grid-template-columns: 1fr; }
  .rank { grid-template-columns: 1fr auto; }
  .rank-track { display: none; }
  .row-head { align-items: stretch; flex-direction: column; gap: 10px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .filters button { flex: none; }
  .cat-row { display: flex; overflow-x: auto; gap: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cat { min-width: 148px; flex: none; scroll-snap-align: start; }
  .cards { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  input, select, textarea { font-size: 16px; }
  .check { min-height: 44px; }
  .picker-list { max-height: min(240px, 46dvh); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .page.prep, .page.page-exit, .stagger-in { opacity: 1 !important; transform: none !important; }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes overlay-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes panel-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(8px) scale(0.98); }
}
@keyframes nav-sub-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@keyframes stagger-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes bar-rise {
  from { transform: scaleY(0.08); opacity: 0.35; }
  to { transform: scaleY(1); opacity: 1; }
}
.manage-person { transition: background var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out); }
.manage-person:active { transform: scale(0.99); }
.page, #nav, .person-detail {
  transition: opacity var(--motion-med) var(--ease-soft), transform var(--motion-slow) var(--ease-out);
}
.page.prep, #nav.prep, .person-detail.prep {
  opacity: 0;
  transform: translateY(12px);
  transition: none;
}
.page.page-exit {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity var(--motion-fast) var(--ease-in),
    transform var(--motion-fast) var(--ease-in);
}
.stagger-in {
  animation: stagger-rise var(--motion-slow) var(--ease-out) both;
  animation-delay: calc(var(--stagger, 0) * 42ms);
}
.bars .bar-fill {
  transform-origin: bottom center;
  animation: bar-rise 700ms var(--ease-out) both;
}
.rank-fill {
  transform-origin: left center;
  animation: rank-fill-in 700ms var(--ease-out) both;
}
@keyframes rank-fill-in {
  from { transform: scaleX(0.08); opacity: 0.4; }
  to { transform: scaleX(1); opacity: 1; }
}
.filters button {
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}
.filters button:active { transform: scale(0.96); }
.picker-panel:not([hidden]) { animation: pop var(--motion-med) var(--ease-out); }
.notice:not([hidden]) {
  animation: stagger-rise var(--motion-med) var(--ease-out);
}
.titles h1,
#summary {
  transition: opacity var(--motion-med) ease, transform var(--motion-med) var(--ease-out);
}
.crumb strong,
.crumb-link,
.sep {
  transition: color var(--motion-fast) ease, opacity var(--motion-fast) ease;
}
input[type="text"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.list-block.stack { grid-template-columns: 1fr; }
.discord-preview {
  margin: 8px 0 16px;
  padding: 14px;
  background: var(--gray-1);
  border: 1px solid var(--line-1);
  border-radius: 12px;
}
.discord-msg { display: flex; gap: 12px; align-items: flex-start; }
.discord-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gray-3); object-fit: cover; flex: none; }
.discord-body { min-width: 0; flex: 1; }
.discord-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.discord-head strong { color: var(--ink-9); font-size: 15px; }
.discord-app {
  padding: 0 4px;
  border-radius: 4px;
  background: oklch(0.55 0.14 255);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.discord-time { color: var(--ink-5); font-size: 12px; }
.discord-text { margin: 0; color: var(--ink-8); line-height: 1.45; overflow-wrap: anywhere; }
.discord-text a { color: oklch(0.78 0.09 250); }
.discord-text code, .discord-title code, .discord-author code, .discord-footer code, .discord-field-name code {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--gray-3);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.92em;
}
.discord-text pre {
  margin: 6px 0;
  padding: 8px 10px;
  overflow: auto;
  background: var(--base);
  border-radius: 8px;
}
.discord-text pre code { padding: 0; background: transparent; }
.discord-empty { margin: 0; color: var(--ink-5); }
.discord-embed, .discord-v2 {
  max-width: 520px;
  margin-top: 4px;
  padding: 8px 12px 12px;
  background: var(--base);
  border-left: 4px solid var(--line-4);
  border-radius: 4px;
}
.discord-embed { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
.discord-embed-main { min-width: 0; }
.discord-author, .discord-footer { display: flex; align-items: center; gap: 8px; color: var(--ink-7); font-size: 13px; }
.discord-author-icon { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.discord-title { margin-bottom: 4px; color: var(--ink-9); font-weight: 650; }
.discord-fields { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.discord-field { min-width: 0; }
.discord-field.inline { width: calc(33% - 8px); min-width: 120px; }
.discord-field-name { color: var(--ink-9); font-weight: 650; font-size: 13px; }
.discord-footer { margin-top: 8px; }
.discord-embed-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.discord-embed-image { grid-column: 1 / -1; width: 100%; max-height: 280px; object-fit: cover; border-radius: 8px; }
.discord-sep { margin: 8px 0; border: 0; border-top: 1px solid var(--line-2); }
.discord-sep.large { margin: 16px 0; }
.discord-gallery { display: flex; flex-wrap: wrap; gap: 6px; }
.discord-gallery img, .discord-section-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }
.discord-section { display: flex; gap: 12px; align-items: flex-start; }
.discord-section .discord-text { flex: 1; }
.discord-section-thumb { width: 72px; height: 72px; flex: none; }

