@charset "UTF-8";
.dashboard-addon + .dashboard-addon { border-top: 1px solid var(--line); }
.dashboard-addon > header { padding: 20px 24px 8px; }
.dashboard-addon h3 { margin: 0; font-size: 16px; }
.dashboard-addon > .addon-help { display: block; margin: 16px 24px; color: var(--muted); line-height: 1.5; }
.addon-empty { padding:20px 24px; }
@media(max-width:720px) { .addon-empty { padding:18px 20px; } }
:root {

  scrollbar-gutter:stable;
  font-family:"Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size:14px;
  font-synthesis:none;
  color:var(--ink);
  background:var(--canvas);
  --canvas:#faf9f5;
  --paper:#ffffff;
  --wash:#f5f3ec;
  --ink:#2c2d30;
  --muted:#69685f;
  --line:#e4e1d7;
  --outline:#74736b;
  --edge:#ccc8bb;
  --nav:#f5f1e5;
  --nav-hover:#ede7d7;
  --nav-ink:#2c2d30;
  --nav-muted:#626158;
  --lavender:#ece8fa;
  --violet:#624498;
  --positive-line:#c9bee4;
  --red:#a32c43;
  --error-wash:#fff0f3;
  --error-line:#e4b5c1;
  --warning-ink:#79531b;
  --warning-wash:#fff7e5;
  --warning-line:#e1cea1;
  --accent:#f6c85b;
  --accent-on:#000000;
  --accent-hover:#f7ce6b;
  --accent-wash:#fefaef;
  --accent-ink:#6f5a29;
  --accent-line:#b99644;
  --nav-line:#d8d1bf;
  --nav-shadow:#2c2d30;
  --nav-picker:#ffffff;
  --frame:var(--ink);
  --shadow:var(--ink);
  --toggle-off:#e0e2e5;
  --toggle-knob:var(--paper);
  color-scheme:light;
  --display:"Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --radius:12px;
  --sidebar:236px
}

* {
  box-sizing:border-box
}

body {
  margin:0
}

button,input,select,textarea {
  font:inherit
}

button {
  cursor:pointer;
  color:inherit
}

button:disabled {
  cursor:not-allowed;
  opacity:.45
}

a {
  color:inherit;
  text-decoration:none
}

button,a,input,select,textarea,summary {
  -webkit-tap-highlight-color:transparent
}

h1,h2,h3,h4,p {
  margin:0
}

h1 {
  font-family:var(--display);
  font-size:34px;
  font-weight:750;
  letter-spacing:-1px;
  line-height:1.2
}

h2 {
  font-family:var(--display);
  font-size:18px;
  letter-spacing:-.3px;
  font-weight:700
}

h3 {
  font-size:15px;
  font-weight:650
}

p {
  line-height:1.6
}

small,.muted {
  color:var(--muted)
}

small {
  font-size:12px
}

kbd {
  font:inherit
}

svg.icon {
  width:20px;
  height:20px;
  flex-shrink:0;
  vertical-align:middle
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible {
  outline:2px solid var(--ink);
  outline-offset:2px
}

[hidden] {
  display:none!important
}

pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 15px;
  min-height:42px;
  border:1.5px solid var(--outline);
  border-radius:9px;
  background:var(--paper);
  font-weight:600;
  white-space:nowrap;
  transition:background .12s,transform .12s
}

.button:hover {
  background:var(--wash);
  border-color:var(--edge)
}

.button.primary {
  background:var(--accent);
  color:var(--accent-on);
  border:1.5px solid var(--frame);
  box-shadow:2px 3px 0 var(--shadow)
}

.button.primary:hover {
  background:var(--accent-hover);
  transform:translateY(-1px)
}

.button.primary:active {
  transform:translateY(1px);
  box-shadow:none
}

.button.ghost {
  background:transparent;
  border:1px solid var(--edge);
  box-shadow:none
}

.button.ghost:hover {
  background:var(--wash)
}

.button.danger {
  color:var(--red);
  background:var(--error-wash);
  border-color:var(--error-line)
}

.button.small {
  font-size:13px;
  min-height:36px;
  padding:7px 11px
}

.button.icon-button {
  padding:9px;
  min-height:40px;
  min-width:40px;
  border:0;
  background:transparent;
  box-shadow:none
}

.button.icon-button:hover {
  background:var(--wash)
}

.actions-inline {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap
}

.destructive {
  color:var(--red)
}


.app-shell {
  display:grid;
  grid-template-columns:var(--sidebar) minmax(0,1fr);
  min-height:100vh
}

.sidebar {
  position:fixed;
  width:var(--sidebar);
  inset:0 auto 0 0;
  background:var(--nav);
  color:var(--nav-ink);
  display:flex;
  flex-direction:column;
  z-index:30;
  border-right:2px solid var(--nav-line)
}

.brand {
  display:flex;
  align-items:center;
  gap:11px;
  padding:22px 22px 24px;
  min-height:84px
}

.brand img {
  width:38px;
  height:38px
}

.brand strong {
  font-family:var(--display);
  font-size:28px;
  letter-spacing:-1px;
  font-weight:750
}

.brand span {
  font-size:10px;
  color:var(--nav-muted);
  margin-left:auto;
  letter-spacing:1px
}

.server-picker {
  margin:0 14px 17px;
  padding:11px 9px;
  border:1px solid var(--nav-line);
  background:var(--nav-hover);
  color:var(--nav-ink);
  display:flex;
  align-items:center;
  gap:9px;
  border-radius:10px;
  text-align:left
}

.guild-avatar {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:34px;
  height:34px;
  border-radius:10px;
  object-fit:cover;
  background:var(--accent-wash);
  color:var(--accent-ink);
  font-size:12px;
  font-weight:700
}

.picker-copy {
  min-width:0;
  flex:1
}

.server-picker strong {
  display:block;
  font-size:13px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.server-picker>.icon {
  width:15px
}

.nav-scroll {
  overflow:auto;
  flex:1;
  padding:0 12px 20px;
  scrollbar-width:thin;
  scrollbar-color:var(--nav-line) transparent
}

.nav-label {
  padding:20px 12px 8px;
  font-size:12px;
  color:var(--nav-muted);
  font-weight:650
}

.nav-link {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:42px;
  margin:2px 0;
  padding:9px 12px;
  border-radius:9px;
  color:var(--nav-muted);
  font-size:13px
}

.nav-link>.icon {
  width:19px;
  height:19px;
  color:var(--nav-muted)
}

.nav-link:hover {
  background:var(--nav-hover);
  color:var(--nav-ink)
}

.nav-link.active {
  color:var(--accent-on);
  background:var(--accent);
  font-weight:700;
  box-shadow:2px 3px 0 var(--nav-shadow);
  outline:1px solid var(--nav-shadow)
}

.nav-link.active>.icon {
  color:var(--accent-on)
}

.nav-count {
  margin-left:auto;
  font-size:11px
}

.nav-group {
  margin-top:14px
}

.nav-group>summary {
  display:flex;
  list-style:none;
  align-items:center;
  justify-content:space-between;
  font-size:12px;
  color:var(--nav-muted);
  padding:9px 12px;
  cursor:pointer
}

.nav-group>summary>.icon {
  width:13px;
  transform:rotate(-90deg)
}

.nav-group[open]>summary>.icon {
  transform:none
}

.nav-group>summary:hover {
  color:var(--nav-ink)
}

.main {
  grid-column:2;
  min-width:0
}

.topbar {
  display:flex;
  align-items:center;
  gap:20px;
  height:68px;
  padding:0 34px;
  background:var(--paper);
  border-bottom:1px solid var(--line)
}

.breadcrumbs {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:13px;
  min-width:0;
  color:var(--muted)
}

.breadcrumbs strong {
  color:var(--ink);
  font-weight:600
}

.breadcrumbs .crumb-root {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.breadcrumbs>.icon {
  width:12px
}

.header-tools {
  display:flex;
  align-items:center;
  flex-shrink:0;
  gap:8px;
  margin-left:auto
}

.search-trigger {
  display:flex;
  align-items:center;
  gap:10px;
  width:220px;
  height:40px;
  margin-right:8px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--wash);
  padding:0 14px;
  color:var(--muted);
  font-size:13px;
  text-align:left;
  white-space:nowrap;
  transition:background .15s,border-color .15s,color .15s
}

.search-trigger>.icon {
  width:18px;
  height:18px
}

.search-trigger:hover,.search-trigger:focus-visible {
  background:var(--paper);
  border-color:var(--accent-line);
  color:var(--ink)
}

.header-tools>.button {
  width:40px;
  min-width:40px;
  height:40px;
  min-height:40px;
  padding:9px;
  border-radius:12px;
  color:var(--muted)
}

.tool-divider {
  width:1px;
  height:24px;
  background:var(--line);
  margin:0 4px
}

.user-avatar {
  padding:0;
  overflow:hidden;
  flex-shrink:0;
  line-height:1;
  display:grid;
  place-items:center;
  object-fit:cover;
  width:40px;
  height:40px;
  border:0;
  border-radius:12px;
  background:#414d61;
  color:white;
  font-size:11px;
  cursor:pointer
}
.user-avatar>img { display:block; width:100%; height:100%; object-fit:cover; border-radius:inherit; }

.profile-menu { position:relative; }
.profile-dropdown {
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:30;
  min-width:160px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
  box-shadow:0 8px 24px color-mix(in srgb,var(--shadow) 14%,transparent);
}
.profile-dropdown .profile-signout {
  width:100%;
  justify-content:flex-start;
  border:0;
  background:transparent;
}
.profile-dropdown .profile-signout:hover,
.profile-dropdown .profile-signout:focus-visible { background:var(--wash); }

.mobile-menu,.mobile-shade,.mobile-only {
  display:none!important
}


.overview-welcome {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:215px;
  margin-bottom:28px;
  padding:30px 36px;
  border:2px solid var(--frame);
  border-radius:20px;
  background:var(--accent-wash);
  box-shadow:4px 5px 0 var(--shadow)
}
.welcome-copy { position:relative; z-index:1; min-width:0; }
.welcome-copy h1 { font-size:clamp(30px,3.2vw,44px); letter-spacing:-1.6px; }
.welcome-copy p { margin:10px 0 22px; max-width:440px; color:var(--muted); }
.welcome-action.button { background:var(--ink); color:var(--paper); border-color:var(--ink); box-shadow:2px 3px 0 #25272d33; }
.welcome-action.button:hover { background:#41434c; }
.overview-art { position:relative; flex:0 0 205px; height:155px; margin:0 12px; }
.art-bot { position:absolute; left:34px; top:33px; width:130px; height:106px; border:3px solid var(--frame); border-radius:30px; background:var(--accent); transform:rotate(-7deg); box-shadow:5px 6px 0 var(--shadow); }
.bot-antenna { position:absolute; width:3px; height:20px; top:-22px; left:61px; background:var(--ink); }
.bot-antenna:before { content:""; position:absolute; width:13px; height:13px; border:3px solid var(--frame); background:var(--lavender); border-radius:50%; top:-9px; left:-5px; }
.bot-face { display:flex; align-items:center; justify-content:space-evenly; height:43px; margin:20px 16px 0; background:var(--ink); border-radius:16px; }
.bot-face i { width:10px; height:14px; background:var(--paper); border-radius:5px; }
.bot-smile { display:block; width:22px; height:9px; margin:9px auto; border:2px solid var(--frame); border-top:0; border-radius:0 0 14px 14px; }
.art-message,.art-shield { position:absolute; display:grid; place-items:center; border:2px solid var(--frame); box-shadow:2px 3px 0 var(--shadow); }
.art-message { left:-5px; top:6px; width:49px; height:42px; border-radius:13px 13px 3px 13px; background:var(--paper); transform:rotate(-12deg); }
.art-shield { right:0; bottom:0; width:53px; height:55px; border-radius:15px; background:var(--lavender); transform:rotate(10deg); }
.art-message .icon,.art-shield .icon { width:27px; height:27px; stroke-width:1.8; }


.page {
  max-width:1580px;
  margin:0 auto;
  padding:34px 36px 110px;
  min-height:calc(100vh - 68px)
}

.page-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:28px
}

.page-title p {
  font-size:14px;
  color:var(--muted);
  margin-top:9px;
  max-width:720px
}

.page-tools {
  display:flex;
  align-items:center;
  gap:14px
}

.eyebrow {
  font-size:11px;
  color:var(--muted);
  margin-bottom:8px
}

.status {
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  white-space:nowrap;
  color:var(--muted)
}

.status i {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#a5a8ad
}

.status.positive {
  color:var(--violet);
  background:var(--lavender);
  border:1px solid var(--positive-line);
  border-radius:6px;
  padding:4px 7px
}

.status.positive i {
  background:var(--violet)
}

.status.warning {
  color:var(--warning-ink)
}

.status.warning i {
  background:var(--warning-ink)
}

.metrics {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin-bottom:32px;
  padding:20px 0;
  border:1.5px solid var(--outline);
  border-radius:14px;
  background:var(--paper);
  box-shadow:3px 3px 0 #25272d12
}

.metric {
  padding:0 26px;
  border-right:1px solid var(--line)
}

.metric:first-child {
  padding-left:26px
}

.metric:last-child {
  border:0
}

.metric-label {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--muted)
}

.metric-label .icon {
  width:24px;
  height:24px;
  padding:3px;
  border-radius:6px;
  background:var(--accent-wash);
  color:var(--accent-ink)
}

.metric strong {
  font-family:var(--display);
  display:block;
  font-size:30px;
  font-weight:700;
  letter-spacing:-.8px;
  margin:8px 0 4px;
  font-variant-numeric:tabular-nums
}

.overview-grid {
  display:grid;
  grid-template-columns:minmax(0,1.75fr) minmax(265px,1fr);
  gap:32px
}

.section {
  margin-bottom:32px
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px
}

.section-heading p {
  font-size:13px;
  color:var(--muted);
  margin-top:5px
}

.surface {
  border:1.5px solid var(--outline);
  border-radius:var(--radius);
  background:var(--paper);
  overflow:hidden
}

.table {
  width:100%;
  border-collapse:collapse;
  font-size:13px
}

.table th {
  padding:13px 17px;
  text-align:left;
  background:var(--wash);
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  font-weight:700
}

.table td {
  padding:17px;
  border-bottom:1px solid var(--line);
  vertical-align:middle
}

.table tr:last-child td {
  border:0
}

.table tr:hover td {
  background:var(--canvas)
}

.table .end {
  text-align:right
}

.name-cell {
  display:flex;
  align-items:center;
  gap:13px
}

.module-icon {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  flex-shrink:0;
  background:var(--accent-wash);
  border:1.5px solid var(--outline);
  color:var(--ink);
  border-radius:12px;
  box-shadow:2px 2px 0 #25272d16
}

.name-cell strong {
  display:block;
  font-size:14px;
  font-weight:650
}

.name-cell small {
  display:block;
  font-size:12px;
  line-height:1.5;
  max-width:380px;
  margin-top:5px
}

.name-cell a:hover strong {
  text-decoration:underline;
  text-underline-offset:3px
}

.table-link {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:40px;
  min-width:24px;
  color:var(--muted)
}

.table-link .icon {
  width:16px
}

.table-note {
  padding:12px 17px;
  font-size:12px;
  color:var(--muted);
  border-top:1px solid var(--line)
}

.module-meta {
  color:var(--muted);
  font-size:12px;
  line-height:1.6
}

.module-warnings {
  font-size:12px;
  color:var(--warning-ink)
}

.toggle-cell {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px
}

.timeline {
  border-top:1px solid var(--line)
}

.timeline-item {
  display:flex;
  gap:12px;
  padding:17px 0;
  border-bottom:1px solid var(--line)
}

.activity-avatar {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:32px;
  height:32px;
  border-radius:11px;
  background:var(--lavender);
  color:var(--violet);
  border:1px solid var(--positive-line);
  font-size:11px;
  font-weight:700
}

.timeline-copy {
  font-size:13px;
  line-height:1.6;
  min-width:0;
  color:var(--muted)
}

.timeline-copy strong {
  color:var(--ink);
  font-weight:600
}

.timeline-copy small {
  display:block;
  margin-top:4px
}

.value-change {
  display:flex;
  gap:7px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:5px;
  overflow-wrap:anywhere
}

.value-chip {
  background:var(--wash);
  padding:2px 6px;
  border-radius:4px;
  font-size:11px;
  max-width:230px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.value-chip.old {
  color:var(--muted);
  text-decoration:line-through
}

.value-change>.icon {
  width:13px
}

.health {
  border-top:1px solid var(--line)
}

.health-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
  font-size:13px;
  color:var(--muted)
}

.health-row>span:first-child {
  display:flex;
  align-items:center;
  gap:9px
}

.health-row .icon {
  width:16px
}

.health-note,.permission-note,.aside-note {
  font-size:12px;
  color:var(--muted);
  line-height:1.6;
  padding:12px 0
}

.notice {
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:16px 18px;
  margin-bottom:22px;
  background:var(--warning-wash);
  border:1px solid var(--warning-line);
  border-radius:10px;
  color:var(--warning-ink);
  font-size:13px;
  line-height:1.6
}

.notice .icon {
  margin-top:1px
}

.notice.info {
  background:var(--lavender);
  border-color:var(--positive-line);
  color:var(--violet)
}

.notice.error {
  background:var(--error-wash);
  border-color:var(--error-line);
  color:var(--red)
}

.notice .button {
  margin-top:10px
}

.notice p {
  color:inherit
}

.quiet-link {
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--accent-ink);
  font-size:13px
}

.quiet-link:hover {
  text-decoration:underline
}

.quiet-link .icon {
  width:15px
}

.toolbar {
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:22px;
  flex-wrap:wrap
}

.input-search {
  display:flex;
  align-items:center;
  gap:10px;
  flex:1;
  max-width:360px;
  padding:0 12px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:9px
}

.input-search .icon {
  color:var(--muted);
  width:18px
}

.input-search input {
  border:0!important;
  box-shadow:none;
  width:100%;
  background:transparent;
  padding:12px 0!important;
  min-width:0
}


:is(.input-search,.global-search-input):focus-within {
  outline:2px solid var(--ink);
  outline-offset:2px
}

:is(.input-search,.global-search-input) input:focus {
  outline:none
}

.segmented {
  display:inline-flex;
  gap:3px;
  padding:4px;
  background:var(--wash);
  border-radius:10px;
  flex-wrap:wrap
}

.segmented button {
  border:0;
  box-shadow:none;
  background:transparent;
  border-radius:7px;
  padding:8px 12px;
  color:var(--muted);
  font-size:12px;
  min-height:32px
}

.segmented button.active {
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 1px 3px #24283012;
  font-weight:650
}

.tabs {
  display:flex;
  gap:8px;
  margin-bottom:25px;
  border-bottom:1px solid var(--line);
  flex-wrap:wrap;
  padding-bottom:10px
}

.tab {
  border:1.5px solid transparent;
  background:transparent;
  font-size:13px;
  padding:10px 14px;
  border-radius:9px;
  color:var(--muted);
  font-weight:550
}

.tab:hover {
  background:var(--wash)
}

.tab.active {
  color:var(--accent-ink);
  background:var(--accent-wash);
  font-weight:650;
  border-color:var(--accent-line);
  box-shadow:0 2px 0 var(--accent-line)
}

.settings-layout {
  max-width:1100px
}
.brand strong { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }
.site-appearance-layout { display:grid;grid-template-columns:minmax(0,1fr) 310px }
.site-appearance-layout .field-row { grid-template-columns:minmax(110px,.55fr) minmax(0,1fr) }
.site-preview { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px 30px;border-left:1px solid var(--line);text-align:center;min-width:0 }
.site-preview-caption { color:var(--muted);font-size:11px }
.theme-choices { min-width:0; margin:0; padding:24px; border:0; border-bottom:1px solid var(--line); }
.appearance-modes { min-width:0; margin:0; padding:22px 24px; border:0; border-bottom:1px solid var(--line); }
.appearance-modes legend { float:left; width:100%; padding:0; font-weight:650; margin-bottom:12px; }
.appearance-modes .boolean-control { clear:both; width:240px; max-width:100%; margin-bottom:10px; }
@media(max-width:720px) { .appearance-modes { padding:18px 20px; } }
.theme-choices legend { float:left; width:100%; padding:0; font-weight:650; margin-bottom:8px; }
.theme-help { clear:both; color:var(--muted); max-width:78ch; font-size:13px; }
.theme-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:14px; margin:20px 0 12px; }
.theme-option { position:relative; min-width:0; padding:10px; border:1px solid var(--edge); border-radius:12px; background:var(--paper); cursor:pointer; }
.theme-option:has(:checked) { border-color:var(--accent-line); box-shadow:0 0 0 2px var(--accent-line); }
.theme-option:has(:focus-visible) { outline:2px solid var(--ink); outline-offset:4px; }
.theme-option input:focus-visible { outline:none; }
.theme-option:has(:disabled) { cursor:default; }
.theme-option input { position:absolute; right:16px; top:16px; width:18px; height:18px; margin:0; accent-color:var(--accent); }
.theme-preview { display:block; width:100%; height:auto; border-radius:7px; overflow:hidden; }
.theme-option>strong { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:12px 0 6px; font-size:13px; }
.theme-option>strong small { color:var(--accent-ink); background:var(--accent-wash); padding:2px 6px; border-radius:4px; font-size:10px; }
.theme-option>span { display:block; color:var(--muted); font-size:12px; line-height:1.5; }
.site-preview>.theme-preview { height:auto; max-width:280px; }
@media(max-width:480px) { .theme-choices { padding:18px; } .theme-grid { grid-template-columns:1fr; } }
.access-advanced { border:0;border-top:1px solid var(--line);border-radius:0;margin:0 }
.custom-access-row { padding:20px;border-top:1px solid var(--line) }
.custom-access-row .section-heading { margin-bottom:16px }
.field-control input:disabled,.field-control select:disabled,.field-control textarea:disabled { opacity:1;color:var(--muted);background:var(--wash);cursor:default }
.picker-trigger:disabled { opacity:1;cursor:default }
@media(max-width:1000px) {
  .site-appearance-layout { grid-template-columns:minmax(0,1fr) 260px }
  .site-appearance-layout .field-row { grid-template-columns:1fr }
}
@media(max-width:720px) {
  .site-appearance-layout { grid-template-columns:1fr }
  .site-preview { border-left:0;border-top:1px solid var(--line);padding:24px }
}

.settings-main {
  min-width:0
}

.settings-section {
  background:var(--paper);
  border:1.5px solid var(--outline);
  border-radius:var(--radius);
  margin-bottom:24px;
  min-width:0
}

.settings-section>header {
  padding:22px 24px;
  border-bottom:1px solid var(--line);
  margin:0;
  background:var(--wash);
  border-radius:var(--radius) var(--radius) 0 0
}

.settings-section>header p {
  font-size:13px;
  color:var(--muted);
  margin-top:5px
}

.settings-section-actions {
  display:flex;
  justify-content:flex-start;
  padding:20px 24px;
  border-top:1px solid var(--line)
}

.field-row {
  display:grid;
  grid-template-columns:minmax(150px,.85fr) minmax(180px,1.15fr);
  gap:26px;
  align-items:start;
  padding:19px 24px;
  border-bottom:1px solid var(--line)
}

.field-row:last-child {
  border-bottom:0
}

.field-row.wide {
  grid-template-columns:1fr;
  gap:10px
}

.field-copy>label {
  display:block;
  font-weight:600;
  font-size:14px;
  margin-top:8px
}

.field-copy small {
  display:block;
  margin-top:6px;
  font-size:12px;
  line-height:1.5;
  max-width:330px
}

.field-control {
  min-width:0
}

.field-control>input,.field-control>textarea,.field-control>select {
  width:100%
}

input,textarea,select {
  border:1px solid var(--edge);
  border-radius:8px;
  background:var(--paper);
  color:var(--ink);
  padding:10px 12px;
  min-height:42px;
  max-width:100%
}

textarea {
  resize:vertical;
  line-height:1.6;
  min-height:110px
}

input[type=checkbox] {
  accent-color:var(--accent-ink);
  min-height:0;
  width:17px;
  height:17px
}

input[type=search] {
  min-width:0
}

.toggle {
  display:inline-flex;
  align-items:center;
  min-height:42px
}

.toggle input {
  appearance:none;
  -webkit-appearance:none;
  width:42px;
  height:25px;
  min-height:25px;
  margin:0;
  border:1.5px solid var(--edge);
  border-radius:20px;
  background:var(--toggle-off);
  padding:3px;
  cursor:pointer;
  transition:background .15s
}

.toggle input:after {
  content:"";
  display:block;
  width:16px;
  height:16px;
  border-radius:50%;
  background:var(--toggle-knob);
  box-shadow:0 1px 2px #292c3326;
  transition:transform .15s
}

.toggle input:checked {
  background:var(--accent);
  border-color:var(--accent-line)
}

.toggle input:checked:after {
  background:var(--accent-on);
  transform:translateX(17px)
}

.toggle input:disabled {
  opacity:.4;
  cursor:not-allowed
}

.boolean-control {
  display:flex;
  width:100%;
  min-width:170px;
  padding:3px;
  gap:3px;
  border:1px solid var(--edge);
  border-radius:8px;
  background:var(--canvas);
}
.boolean-option { position:relative; display:flex; flex:1; min-width:0; cursor:pointer; }
.boolean-option>input {
  position:absolute;
  width:1px;
  height:1px;
  min-height:0;
  padding:0;
  margin:0;
  border:0;
  clip-path:inset(50%);
  overflow:hidden;
}
.boolean-option>span {
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:34px;
  padding:6px 12px;
  border-radius:5px;
  color:var(--muted);
  font-size:13px;
  font-weight:600;
  line-height:1.4;
  transition:color 180ms ease, background-color 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
}
.boolean-option>span::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:inherit;
  background:var(--accent);
  opacity:0;
  transform:scale(.88,.7);
  transition:opacity 180ms ease, transform 320ms cubic-bezier(.16,1,.3,1);
}
.boolean-option:hover>input:not(:disabled):not(:checked)+span { background:var(--wash); color:var(--ink); }
.boolean-option>input:checked+span { color:var(--accent-on); }
.boolean-option>input:checked+span::before { opacity:1; transform:scale(1); }
.boolean-option:active>input:not(:disabled)+span { transform:scale(.97); }
.boolean-option>input:focus-visible+span { outline:2px solid var(--accent-ink); outline-offset:2px; }
.boolean-option:has(>input:disabled) { cursor:not-allowed; }
.boolean-control:has(input:disabled) { opacity:.6; }
@media(prefers-reduced-motion:reduce) {
  .boolean-option>span,.boolean-option>span::before { transition:none; }
  .boolean-option:active>input:not(:disabled)+span { transform:none; }
}

.field-group {
  border-bottom:1px solid var(--line)
}

.field-group:last-child {
  border:0
}

.field-group>summary {
  display:flex;
  align-items:center;
  gap:14px;
  list-style:none;
  cursor:pointer;
  padding:18px 24px;
  font-size:14px;
  font-weight:600
}

.field-group>summary:before {
  content:"›";
  font-size:20px;
  color:var(--muted);
  line-height:1;
  transform:rotate(0)
}

.field-group[open]>summary:before {
  transform:rotate(90deg)
}

.field-group>summary small {
  margin-left:auto;
  font-weight:400;
  font-size:11px
}

.field-group[open]>summary {
  background:var(--wash)
}

.field-group .field-group {
  margin:0 15px
}

.collection-toolbar {
  display:flex;
  align-items:center;
  gap:16px;
  justify-content:space-between;
  padding:18px 24px
}

.collection-toolbar input[type=search] {
  flex:1;
  max-width:360px
}

.record-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:19px 24px;
  border-top:1px solid var(--line)
}

.record-copy {
  min-width:0
}

.record-copy strong {
  font-size:15px
}

.record-copy small {
  display:block;
  margin-top:5px
}

.collection-item {
  border:1px solid var(--line);
  border-radius:10px;
  margin:10px 0
}

.collection-item>header {
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 14px;
  border-bottom:1px solid var(--line);
  background:var(--wash);
  border-radius:10px 10px 0 0
}

.collection-item>header strong {
  flex:1;
  font-size:13px
}

.inline-array {
  display:grid;
  gap:8px
}

.inline-array-row {
  display:flex;
  align-items:center;
  gap:6px
}

.inline-array-row>input {
  flex:1;
  min-width:0
}

.color-field {
  display:flex;
  gap:9px;
  align-items:center
}

.color-field input[type=color] {
  flex-shrink:0;
  width:43px;
  height:42px;
  padding:4px
}

.color-field input[type=text] {
  width:100%;
  min-width:0
}

.field-error {
  color:var(--red);
  font-size:13px
}

.form-stack {
  display:grid;
  min-width:0;
  gap:16px
}

.form-stack>label {
  display:grid;
  min-width:0;
  gap:8px;
  font-size:14px;
  font-weight:600
}

.form-stack>label>input,.form-stack>label>select,.form-stack>label>textarea {
  width:100%;
  min-width:0;
  font-weight:400
}

.form-stack>p {
  font-size:13px
}

.form-stack>.field-error {
  color:var(--red)
}

.form-stack>.field-error:empty {
  display:none
}


.picker {
  position:relative;
  min-width:0
}

.picker-trigger {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  width:100%;
  min-height:42px;
  padding:7px 10px;
  text-align:left;
  background:var(--paper);
  border:1px solid var(--edge);
  border-radius:8px
}

.picker-trigger>.icon {
  width:15px;
  margin-left:auto;
  color:var(--muted)
}

.selection-tag {
  display:inline-flex;
  align-items:center;
  gap:5px;
  background:var(--wash);
  padding:4px 6px;
  border-radius:5px;
  font-size:12px;
  max-width:100%;
  overflow-wrap:anywhere
}

.selection-tag>.icon {
  width:13px;
  height:13px
}

.selection-tag.missing {
  background:var(--error-wash);
  color:var(--red)
}

.picker-popup {
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  right:0;
  z-index:50;
  min-width:220px;
  border:1px solid var(--edge);
  border-radius:10px;
  background:var(--paper);
  padding:8px;
  box-shadow:0 5px 16px #24283016
}

.picker-popup input {
  width:100%;
  min-height:38px;
  padding:8px 10px;
  font-size:13px
}

.picker-list {
  max-height:240px;
  overflow:auto;
  margin-top:6px
}

.picker-option {
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  border:0;
  text-align:left;
  background:var(--paper);
  padding:10px;
  border-radius:6px;
  min-height:40px;
  font-size:13px
}

.picker-option:hover,.picker-option.selected {
  background:var(--accent-wash)
}

.picker-option small {
  margin-left:auto;
  font-size:10px
}

.picker-option>.icon {
  width:15px;
  height:15px
}

.picker-option .check {
  margin-left:auto;
  color:var(--accent-ink)
}

.event-filter {
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin:15px 0
}

.event-filter .button.active {
  background:var(--accent-wash)
}

.event-row small {
  display:block;
  font-size:11px;
  margin-top:4px
}

.event-row .picker {
  min-width:180px
}

.event-row .selection-tag {
  font-size:11px
}

.event-category {
  color:var(--muted);
  font-size:11px
}

.role-table td:first-child {
  width:30%
}

.access-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}

.access-grid label {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px
}

.access-grid input {
  flex-shrink:0
}


.dialog {
  width:min(620px,calc(100vw - 40px));
  max-height:calc(100dvh - 40px);
  padding:0;
  border:1.5px solid var(--outline);
  border-radius:16px;
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 12px 40px #161b2429
}

.dialog[open] {
  display:flex;
  flex-direction:column;
  overflow:hidden
}

.dialog::backdrop {
  background:#19202b8c
}

.dialog-head,.dialog-actions {
  flex-shrink:0;
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px 24px
}

.dialog-head {
  justify-content:space-between;
  border-bottom:1px solid var(--line)
}

.dialog-head h2 {
  font-size:19px;
  overflow-wrap:anywhere
}

.dialog-head>.button {
  margin:-6px -8px -6px 0
}

.dialog-content {
  min-height:0;
  flex:1 1 auto;
  overflow:auto;
  padding:24px;
  overscroll-behavior:contain;
  scrollbar-width:thin
}

.dialog-content p {
  color:var(--muted)
}

.dialog-actions {
  justify-content:flex-end;
  border-top:1px solid var(--line);
  background:var(--wash)
}

.dialog-actions:empty {
  display:none
}

.dialog-actions>.field-error {
  margin-right:auto
}

.record-dialog,.builder-dialog {
  width:min(920px,calc(100vw - 40px))
}

.record-dialog>.dialog-content,.builder-dialog>.dialog-content {
  padding:0
}

.record-body {
  padding:0 28px 28px
}

.record-name {
  padding:24px 0
}

.record-name label {
  display:grid;
  gap:10px;
  font-size:14px;
  font-weight:650;
  max-width:460px
}

.record-save-note {
  margin-right:auto;
  font-size:12px;
  max-width:250px
}

.record-dialog .notice {
  margin:20px
}

.record-section {
  padding:22px 0;
  border-bottom:1px solid var(--line)
}

.record-section:last-child {
  border-bottom:0;
  padding-bottom:0
}

.record-section>h3 {
  font-size:16px;
  margin-bottom:18px
}

.record-section>.field-row {
  padding:16px 0
}

.record-section>.field-group>summary {
  padding-inline:0
}

.record-section>.field-group .field-row {
  padding-inline:10px
}

.record-advanced>summary {
  cursor:pointer;
  font-size:14px;
  font-weight:650;
  padding:4px 0
}

.record-advanced[open]>summary {
  margin-bottom:14px
}

.record-section .field-group small {
  display:none
}

.record-section .field-group[open]>summary {
  background:transparent
}

.message-entry {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:20px 24px;
  border-bottom:1px solid var(--line)
}

.message-entry:last-child {
  border:0
}

.message-entry-copy {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0
}

.message-entry-copy>div {
  min-width:0
}

.message-entry-copy>.icon {
  color:var(--accent-ink)
}

.message-entry strong {
  font-size:14px
}

.message-entry small {
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:460px;
  margin-top:5px
}

.composer {
  min-width:0
}

.composer-toolbar {
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  padding:0 0 10px
}

.composer-toolbar>.actions-inline {
  margin-left:auto;
  gap:1px
}

.composer-help {
  font-size:12px;
  color:var(--muted);
  margin-bottom:10px
}

.composer-feedback {
  font-size:12px;
  color:var(--accent-ink);
  line-height:1.5
}

.composer-feedback:not(:empty) {
  padding:10px 12px;
  background:var(--accent-wash);
  border-radius:7px;
  margin-bottom:10px
}

.builder-dialog .composer {
  padding:22px 28px
}

.composer-canvas {
  border:1px solid var(--line);
  background:var(--wash);
  border-radius:12px;
  padding:10px 16px 16px;
  min-width:0
}

.composer-canvas.preview-mode {
  background:var(--wash);
  padding:20px
}

.message-block {
  border:1px solid var(--line);
  background:var(--paper);
  border-radius:9px;
  min-width:0
}

.message-block.is-group {
  border:1px solid var(--line);
  background:var(--paper)
}

.message-block.block-container {
  border:1.5px solid var(--edge);
  background:var(--canvas)
}

.message-block.is-editing {
  border-color:var(--accent-line);
  box-shadow:0 0 0 1px var(--accent-line)
}

.block-heading {
  display:flex;
  align-items:center;
  gap:2px;
  padding:3px 7px;
  min-height:39px
}

.block-container>.block-heading {
  background:var(--accent-wash);
  border-bottom:1px solid var(--accent-line);
  border-radius:8px 8px 0 0
}

.block-title.button {
  border:0;
  background:transparent;
  box-shadow:none;
  flex:1;
  padding:7px 5px;
  min-height:34px;
  justify-content:flex-start;
  white-space:normal;
  text-align:left;
  min-width:0
}

.block-title strong {
  font-size:12px;
  font-weight:650
}

.block-title small {
  margin-left:auto;
  color:var(--muted);
  font-size:11px;
  font-weight:400
}

.block-title .icon {
  width:15px;
  height:15px;
  color:var(--accent-ink)
}

.block-grip.button {
  min-width:28px;
  min-height:32px;
  padding:5px;
  cursor:grab;
  touch-action:none;
  border-radius:5px;
  color:var(--muted)
}

.block-grip .icon {
  stroke-width:3px;
  width:17px;
  height:20px
}

.block-grip:hover {
  background:var(--wash)
}

.block-grip:active {
  cursor:grabbing
}

.block-grip:disabled {
  opacity:.2;
  cursor:default
}

.block-preview {
  display:block;
  width:100%;
  padding:5px 17px 17px;
  border:0;
  text-align:left;
  border-radius:0 0 8px 8px;
  background:transparent;
  cursor:text;
  max-height:190px;
  overflow:hidden
}

.block-preview:hover {
  background:var(--canvas)
}

.block-children {
  min-width:0
}

.is-group>.block-children {
  padding:0 14px 10px
}

.block-fields {
  padding:0 16px 8px
}

.block-fields>.field-row {
  grid-template-columns:minmax(90px,.4fr) minmax(150px,1fr);
  padding:12px 0;
  gap:20px
}

.block-fields>.field-row.wide {
  grid-template-columns:1fr;
  gap:6px
}

.block-fields .field-copy>label {
  font-size:12px;
  margin:5px 0
}

.block-fields textarea {
  min-height:135px;
  font-size:14px
}

.block-fields>.field-group {
  border-top:1px solid var(--line)
}

.block-fields>.field-group>summary {
  padding:12px 0
}

.block-fields>.field-group .field-row {
  padding:12px
}

.block-variables {
  padding:8px 0
}

.block-variables select {
  min-height:34px;
  font-size:12px;
  padding:6px 10px
}

.block-note {
  display:block;
  margin:10px 0
}

.block-actions {
  display:flex;
  align-items:center;
  gap:3px;
  padding:9px 10px;
  border-top:1px solid var(--line);
  flex-wrap:wrap
}

.block-actions .button {
  font-size:11px;
  min-height:32px;
  padding:6px 8px
}

.block-actions .button.destructive {
  margin-left:auto
}

.block-actions select {
  min-height:32px;
  font-size:11px;
  padding:6px;
  max-width:160px
}

.block-actions>.button .icon {
  width:14px;
  height:14px
}

.block-add {
  padding-top:6px
}

.add-block.button {
  background:transparent;
  border:1px dashed var(--edge);
  box-shadow:none;
  border-radius:8px;
  width:100%;
  font-size:12px;
  font-weight:550;
  min-height:36px;
  padding:7px 12px;
  color:var(--muted)
}

.add-block.button:hover {
  background:var(--accent-wash);
  border-color:var(--accent-line);
  color:var(--accent-ink)
}

.add-block .icon {
  width:16px
}

.block-menu {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  padding:10px 0 4px
}

.block-option.button {
  justify-content:flex-start;
  align-items:center;
  text-align:left;
  white-space:normal;
  padding:12px 10px;
  background:var(--paper);
  border-color:var(--line);
  box-shadow:none;
  min-width:0
}

.block-option .icon {
  width:18px;
  color:var(--accent-ink)
}

.block-option strong {
  display:block;
  font-size:12px
}

.block-option small {
  display:block;
  margin-top:4px;
  font-size:10px;
  font-weight:400
}

.block-accessory {
  padding:8px 14px 14px
}

.block-accessory>small {
  display:block;
  font-size:11px;
  margin-bottom:8px
}

.block-empty {
  font-size:12px;
  text-align:center;
  padding:8px 16px 14px;
  color:var(--muted)
}


.drop-slot {
  position:relative;
  height:14px;
  min-height:14px;
  border:1px solid transparent;
  border-radius:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none
}

.drop-slot>span {
  display:none;
  font-size:10px;
  color:var(--accent-ink);
  background:var(--accent-wash);
  padding:0 8px;
  border-radius:4px;
  position:relative;
  z-index:1
}

.composer.is-dragging {
  user-select:none;
  cursor:grabbing
}

.is-dragging .drop-slot:not(.is-invalid):before {
  content:"";
  position:absolute;
  inset:5px 0;
  border-top:2px dashed var(--accent-line)
}

.is-dragging .drop-slot.is-target {
  background:var(--accent-wash);
  border-color:var(--accent-line)
}

.is-dragging .drop-slot.is-target>span {
  display:block
}

.is-dragging .drop-slot.is-target:before {
  border-style:solid;
  border-color:var(--accent-line)
}

.drag-source {
  opacity:.4
}

.is-dragging .block-title,.is-dragging .block-preview,.is-dragging .add-block {
  pointer-events:none
}


.field-label {
  position:relative;
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0
}
.field-help { display:inline-flex;flex:none;align-items:center }
.record-dialog .field-label:has(.field-help-panel:not([hidden])) { flex-wrap:wrap }
.record-dialog .field-help:has(.field-help-panel:not([hidden])) { display:contents }
.record-dialog .field-label .field-help-panel { position:static;flex-basis:100%;width:100%;max-width:none }
.info-button.button {
  min-width:26px;
  min-height:26px;
  padding:4px;
  border:0;
  border-radius:50%;
  background:transparent;
  box-shadow:none;
  color:var(--muted)
}
.info-button.button:hover,.info-button.button[aria-expanded="true"] { color:var(--ink);background:var(--wash) }
.info-button .icon { width:17px;height:17px }
.field-help-panel {
  position:absolute;
  top:100%;
  left:0;
  z-index:60;
  width:310px;
  max-width:calc(100vw - 80px);
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px 14px;
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 6px 20px #2026301a;
  font-size:12px;
  line-height:1.6;
  font-weight:400;
  text-align:left;
  white-space:normal
}
.field-label:has(.field-help-panel:not([hidden])) { z-index:65 }
.preview-info .field-help-panel { left:-90px }


.save-bar {
  position:fixed;
  z-index:40;
  bottom:24px;
  left:calc(var(--sidebar) + 36px);
  right:36px;
  display:flex;
  align-items:center;
  gap:16px;
  border:1px solid #555d69;
  border-radius:12px;
  padding:15px 20px;
  background:#292f38;
  color:white;
  box-shadow:0 4px 20px #2026301a
}

.save-summary {
  flex:1;
  min-width:0;
  font-size:13px;
  font-weight:550
}

.save-summary small {
  display:block;
  font-weight:400;
  margin-top:5px;
  color:#bac2ce;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:700px
}

.save-bar>.button {
  background:transparent;
  border-color:#737c89;
  color:white
}

.save-bar>.button.primary {
  background:var(--accent);
  color:var(--accent-on);
  border-color:var(--accent-line)
}

.save-bar>.icon {
  color:#eec76d
}

#toasts {
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:100;
  display:grid;
  gap:10px;
  max-width:480px;
  pointer-events:none
}

.toast {
  display:flex;
  align-items:center;
  gap:10px;
  padding:15px 18px;
  background:#292f38;
  color:white;
  border:1px solid #555d69;
  border-radius:10px;
  font-size:13px;
  box-shadow:0 4px 15px #252a3419
}

.toast>.icon {
  color:#eecb7c
}

.toast.error {
  background:#7c2b3c
}

.toast.error>.icon {
  color:#ffd3dc
}

.empty {
  padding:32px 22px;
  text-align:center
}

.empty>.icon {
  width:28px;
  height:28px;
  color:var(--muted);
  margin-bottom:13px
}

.empty h2,.empty h3 {
  font-size:16px;
  color:var(--muted)
}

.empty p {
  font-size:13px;
  color:var(--muted);
  margin:9px auto 0;
  max-width:420px
}

.error-state .button {
  margin-top:18px
}

.history-detail {
  border-bottom:1px solid var(--line);
  padding:16px 0
}

.history-detail summary {
  display:flex;
  align-items:center;
  gap:14px;
  cursor:pointer;
  list-style:none
}

.history-detail summary>div {
  flex:1;
  font-size:13px
}

.history-detail summary>div small {
  display:block;
  margin-top:5px
}

.history-detail summary>small {
  font-size:11px
}

.history-detail .value-change {
  display:block;
  margin:15px 0 0 46px;
  font-size:12px
}

.history-detail pre {
  background:var(--wash);
  border-radius:7px;
  padding:12px;
  font-size:12px;
  max-height:230px;
  overflow:auto;
  max-width:100%
}

.history-detail>strong {
  font-size:13px
}

.analytics-empty {
  padding:24px;
  color:var(--muted);
  font-size:13px;
  line-height:1.7
}

.analytics-empty strong {
  display:block;
  color:var(--ink);
  margin-bottom:8px
}

.activity-row {
  padding:13px 0;
  border-bottom:1px solid var(--line);
  font-size:13px
}

.activity-row small {
  display:block;
  margin-top:5px
}

.progress-track {
  display:flex;
  height:8px;
  overflow:hidden;
  border-radius:4px;
  background:var(--wash);
  margin:12px 0
}

.progress-segment {
  background:var(--accent)
}

.progress-segment:nth-child(2) {
  background:#a797cf
}

.guild-option,.search-results a {
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 10px;
  border-bottom:1px solid var(--line);
  border-radius:8px
}

.guild-option:hover,.search-results a:hover {
  background:var(--accent-wash)
}

.guild-option>span,.search-results a>div {
  flex:1;
  min-width:0
}

.guild-option strong,.search-results strong {
  display:block;
  font-size:14px
}

.guild-option small,.search-results small {
  display:block;
  margin-top:5px;
  font-size:12px
}

.search-results a>.icon {
  color:var(--accent-ink)
}

.search-results {
  margin-top:12px
}

.login {
  display:grid;
  place-items:center;
  min-height:100vh;
  background:var(--canvas);
  padding:24px
}

.login-panel {
  width:100%;
  max-width:380px;
  padding:36px 30px;
  text-align:center;
  background:var(--paper);
  border:2px solid var(--frame);
  border-radius:22px;
  box-shadow:7px 7px 0 var(--shadow)
}

.login-logo {
  display:block;
  width:68px;
  height:68px;
  object-fit:contain;
  margin:0 auto 18px
}

.login-panel h1 {
  font-size:28px;
  overflow-wrap:anywhere
}

.login-panel .notice {
  margin:22px 0 0;
  text-align:left
}

.login-panel .button.primary {
  width:100%;
  margin:28px 0 20px;
  padding:14px
}

.login-panel>small {
  display:block;
  font-size:12px;
  line-height:1.5
}

.initial {
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:20px;
  color:var(--muted)
}

.loading-line {
  height:3px;
  width:150px;
  background:var(--wash);
  overflow:hidden;
  border-radius:3px
}

.loading-line:after {
  content:"";
  display:block;
  width:50%;
  height:100%;
  background:var(--accent);
  animation:loading 1s ease-in-out infinite alternate
}

@keyframes loading {
  to {
    transform:translateX(100%)
  }
}

.skeleton {
  display:grid;
  gap:20px
}

.skeleton>div {
  height:54px;
  border-radius:10px;
  background:var(--wash);
  animation:shimmer 1.2s ease-in-out infinite alternate
}

.skeleton>div:first-child {
  height:28px;
  width:32%
}

.skeleton>div:nth-child(2) {
  height:92px
}

@keyframes shimmer {
  to {
    opacity:.45
  }
}

.page-footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-size:11px;
  margin-top:35px;
  padding-top:20px;
  border-top:1px solid var(--line)
}

.configuration-scope {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px
}

.configuration-scope small {
  max-width:240px;
  text-align:right
}

.split-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px
}

.subheading {
  padding:18px 24px;
  border-bottom:1px solid var(--line)
}

.switches-list {
  display:flex;
  gap:16px;
  flex-wrap:wrap
}

.settings-status {
  font-size:12px;
  color:var(--muted)
}


@media(min-width:1550px) {
  .page {
    padding:38px 48px 110px
  }
  .topbar {
    padding:0 48px
  }
}

@media(max-width:1150px) {
  .page {
    padding:28px 26px 110px
  }
  .topbar {
    padding:0 26px
  }
  .search-trigger {
    width:40px;
    justify-content:center;
    margin-right:0;
    padding:0
  }
  .search-trigger span {
    display:none
  }
  .overview-grid {
    gap:24px
  }
  .optional-column {
    display:none
  }
  .metric {
    padding:0 18px
  }
  .save-bar {
    left:calc(var(--sidebar) + 26px);
    right:26px
  }
  .field-row {
    grid-template-columns:minmax(130px,.8fr) minmax(180px,1.2fr);
    gap:18px
  }
  .message-entry small {
    max-width:260px
  }
}

@media(max-width:950px) {
  .overview-welcome { padding:28px; }
  .overview-art { flex-basis:170px; margin:0; }
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); padding:0; }
  .metric,.metric:first-child { padding:18px 20px; border-bottom:1px solid var(--line); }
  .metric:nth-child(2) { border-right:0; }
  .metric:nth-child(n+3) { border-bottom:0; }
  .overview-grid {
    grid-template-columns:1fr
  }
  .overview-side {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px
  }
  .field-row {
    grid-template-columns:1fr;
    gap:10px
  }
  .field-copy>label {
    margin-top:0
  }
  .metrics .metric-label .icon {
    display:none
  }
  .metric strong {
    font-size:27px
  }
  .metric-label {
    font-size:12px
  }
  .table td {
    padding:15px 12px
  }
}

@media(max-width:720px) {
  .overview-welcome { min-height:0; padding:24px; border-radius:16px; gap:0; }
  .welcome-copy p { max-width:290px; }
  .overview-art { display:none; }
  .app-shell {
    display:block
  }
  .sidebar {
    width:252px;
    transform:translateX(-100%);
    transition:transform .18s
  }
  .app-shell.nav-open .sidebar {
    transform:none
  }
  .app-shell.nav-open .mobile-shade {
    display:block!important;
    position:fixed;
    inset:0;
    z-index:29;
    background:#19202b80
  }
  .mobile-menu {
    display:inline-flex!important
  }
  .mobile-only {
    display:block!important
  }
  .topbar {
    height:62px;
    padding:0 10px;
    gap:7px
  }
  .breadcrumbs {
    font-size:12px;
    flex:1;
    overflow:hidden
  }
  .breadcrumbs .crumb-root,.breadcrumbs>.icon,.header-help,.tool-divider {
    display:none
  }
  .breadcrumbs strong {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
  }
  .header-tools {
    gap:3px
  }
  .page {
    padding:25px 16px 125px;
    min-height:calc(100vh - 62px)
  }
  .page-title {
    gap:14px;
    flex-wrap:wrap;
    align-items:flex-start;
    margin-bottom:24px
  }
  .page-title h1 {
    font-size:28px
  }
  .page-title p {
    font-size:13px
  }
  .page-tools {
    gap:12px
  }
  .page-tools .button {
    font-size:12px
  }
  .metrics {
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:0;
    margin-bottom:26px
  }
  .metric,.metric:first-child {
    padding:18px 12px;
    border-bottom:1px solid var(--line)
  }
  .metric:nth-child(2) {
    border-right:0
  }
  .metric:nth-child(n+3) {
    border-bottom:0
  }
  .metric-label {
    font-size:12px
  }
  .metric strong {
    font-size:28px
  }
  .overview-side {
    display:block
  }
  .section {
    margin-bottom:26px
  }
  .section-heading {
    gap:10px
  }
  .section-heading h2 {
    font-size:17px
  }
  .section-heading p {
    font-size:12px
  }
  .toolbar {
    gap:12px
  }
  .input-search {
    max-width:none;
    flex-basis:100%
  }
  .toolbar>.segmented {
    width:100%
  }
  .toolbar .segmented button {
    flex:1;
    font-size:11px;
    padding:8px
  }
  .module-table thead {
    display:none
  }
  .module-table tr {
    display:flex;
    flex-wrap:wrap;
    padding:18px 16px;
    gap:14px;
    align-items:center;
    border-bottom:1px solid var(--line)
  }
  .module-table tr:last-child {
    border:0
  }
  .module-table td {
    padding:0;
    border:0
  }
  .module-table td:first-child {
    width:100%
  }
  .module-table td.end {
    margin-left:auto
  }
  .module-table .name-cell small {
    max-width:100%
  }
  .module-table td.optional-column {
    display:none
  }
  .table:not(.module-table) .compact-hide {
    display:none
  }
  .table th,.table td {
    padding:12px 10px
  }
  .table {
    font-size:12px
  }
  .tabs {
    gap:5px
  }
  .tab {
    padding:9px 11px;
    font-size:12px
  }
  .settings-section {
    border-radius:11px;
    margin-bottom:20px
  }
  .settings-section>header {
    padding:18px 16px
  }
  .settings-section>header h2 {
    font-size:17px
  }
  .field-row {
    padding:16px;
    gap:9px
  }
  .field-group>summary {
    padding:16px;
    font-size:13px
  }
  .field-group .field-group {
    margin:0 8px
  }
  .collection-toolbar {
    padding:16px;
    gap:9px;
    flex-wrap:wrap
  }
  .collection-toolbar input[type=search] {
    width:100%;
    max-width:none;
    flex-basis:100%
  }
  .collection-toolbar .button {
    min-height:40px
  }
  .record-row {
    padding:17px 16px;
    gap:10px
  }
  .record-copy {
    overflow-wrap:anywhere
  }
  .record-row .actions-inline {
    flex-wrap:nowrap;
    gap:2px
  }
  .record-row .icon-button {
    min-width:34px;
    padding:7px
  }
  .message-entry {
    padding:17px 16px;
    gap:12px;
    flex-wrap:wrap
  }
  .message-entry small {
    max-width:220px
  }
  .message-entry-copy>.icon {
    display:none
  }
  .message-entry .button {
    min-height:40px
  }
  .picker-popup {
    left:0;
    right:0;
    min-width:0
  }
  .picker-list {
    max-height:220px
  }
  .event-row td:first-child {
    width:38px
  }
  .event-row .picker {
    min-width:0
  }
  .event-row td:nth-child(2) {
    max-width:110px;
    overflow-wrap:anywhere
  }
  .event-row .selection-tag {
    font-size:10px;
    max-width:120px
  }
  .event-row .picker-trigger {
    font-size:11px;
    padding:6px
  }
  .role-table td:first-child {
    width:80px
  }
  .role-table .picker-trigger {
    font-size:12px
  }
  .access-grid {
    grid-template-columns:1fr
  }
  .notice {
    padding:14px;
    font-size:12px;
    gap:9px
  }
  .notice .button {
    white-space:normal
  }
  .dialog {
    width:calc(100vw - 16px);
    max-height:calc(100dvh - 16px);
    border-radius:13px
  }
  .dialog-head,.dialog-actions {
    padding:15px 16px
  }
  .dialog-head h2 {
    font-size:17px
  }
  .dialog-content {
    padding:18px
  }
  .dialog-actions {
    gap:8px;
    flex-wrap:wrap
  }
  .record-dialog>.dialog-content,.builder-dialog>.dialog-content {
    padding:0
  }
  .record-body {
    padding:0 16px 20px
  }
  .record-section {
    padding:20px 0
  }
  .record-name {
    padding:20px 0 0
  }
  .record-save-note {
    display:none
  }
  .record-dialog .dialog-actions>.button {
    flex:1
  }
  .record-dialog .notice {
    margin:16px
  }
  .composer-toolbar {
    gap:7px
  }
  .composer-toolbar>.actions-inline .button {
    padding:6px 8px
  }
  .composer-help {
    font-size:11px
  }
  .composer-canvas {
    padding:5px 9px 12px
  }
  .builder-dialog .composer {
    padding:16px 12px
  }
  .block-menu {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .block-option.button {
    padding:10px 8px;
    gap:7px
  }
  .block-option strong {
    font-size:11px
  }
  .block-option small {
    font-size:10px
  }
  .block-option .icon {
    width:15px
  }
  .block-fields {
    padding:0 12px 8px
  }
  .block-fields>.field-row {
    grid-template-columns:1fr;
    gap:7px
  }
  .block-fields textarea {
    min-height:150px
  }
  .is-group>.block-children {
    padding:0 9px 10px
  }
  .block-actions .button {
    min-height:38px;
    font-size:10px
  }
  .block-actions select {
    max-width:130px
  }
  .block-grip.button {
    min-width:31px;
    min-height:38px
  }
  .block-accessory {
    padding:8px 9px 12px
  }
  .block-preview {
    padding:5px 12px 14px
  }
  .composer-canvas.preview-mode {
    padding:10px
  }
  .discord-preview {
    padding:16px
  }
  .discord-head small {
    font-size:9px
  }
  .discord-content h2 {
    font-size:19px
  }
  .discord-content p {
    font-size:13px
  }
  .save-bar {
    left:10px;
    right:10px;
    bottom:10px;
    padding:13px;
    gap:9px;
    flex-wrap:wrap
  }
  .save-summary {
    flex-basis:calc(100% - 36px)
  }
  .save-bar>.button {
    flex:1
  }
  .history-detail summary {
    gap:10px
  }
  .history-detail summary>div {
    font-size:12px
  }
  .history-detail summary>small {
    max-width:58px
  }
  .history-detail .value-change {
    margin-left:0
  }
  .page-footer {
    font-size:10px;
    gap:12px
  }
  #toasts {
    left:12px;
    right:12px;
    bottom:12px;
    max-width:none
  }
  .toast {
    font-size:12px
  }
  .configuration-scope {
    align-items:flex-start
  }
  .configuration-scope small {
    text-align:left
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}

.validation-errors:not([hidden]), .inline-errors:has(.validation-summary) {
  border:1px solid var(--error-line);
  border-radius:10px;
  background:var(--error-wash);
  padding:18px 20px;
  margin:18px 0;
}
.record-dialog .validation-errors, .builder-dialog .validation-errors { margin:20px; }
.validation-summary { display:flex; align-items:flex-start; gap:10px; }
.validation-summary>.icon { flex-shrink:0; color:var(--red); margin-top:2px; }
.validation-summary strong { font-size:14px; color:var(--text); }
.validation-summary p { margin:4px 0 0; font-size:12px; }
.validation-issues { list-style:none; margin:14px 0 0; padding:0; }
.validation-issues li { display:flex; align-items:center; justify-content:space-between; gap:16px; border-top:1px solid var(--error-line); padding:14px 0 0; margin-top:14px; }
.validation-issues li>div { min-width:0; }
.issue-location { font-size:12px; font-weight:650; overflow-wrap:anywhere; }
.validation-issues p { margin:4px 0 0; font-size:13px; line-height:1.55; overflow-wrap:anywhere; color:var(--red); }
.issue-jump { flex-shrink:0; white-space:nowrap; }
.issue-highlight { outline:2px solid var(--error-line); outline-offset:3px; border-radius:6px; background:var(--error-wash); scroll-margin:100px 0; }
.issue-field-hint { display:flex; align-items:flex-start; gap:8px; grid-column:1/-1; font-size:12px; line-height:1.5; color:var(--red)!important; margin:8px 0 0; }
.issue-field-hint .icon { flex-shrink:0; width:16px; height:16px; }
[aria-invalid=true] { border-color:var(--error-line)!important; }
@media(max-width:720px) {
  .validation-issues li { align-items:flex-start; flex-direction:column; gap:10px; }
  .validation-errors:not([hidden]), .inline-errors:has(.validation-summary) { padding:14px; }
  .record-dialog .validation-errors, .builder-dialog .validation-errors { margin:16px; }
}

.field-group>.disclosure-summary,.record-advanced>.disclosure-summary {
  display:flex; align-items:center; gap:10px; list-style:none;
  margin:8px 12px; padding:13px 14px; border:1px solid var(--line); border-radius:8px;
  background:var(--wash); font-size:13px; font-weight:650; cursor:pointer;
}
.disclosure-summary::-webkit-details-marker { display:none; }
.field-group>.disclosure-summary:before { content:none; }
.disclosure-summary>.icon { width:19px; height:19px; border:1px solid var(--line); border-radius:5px; background:var(--paper); padding:2px; }
details[open]>.disclosure-summary>.icon { transform:rotate(90deg); }
.field-group>.disclosure-summary:hover,.record-advanced>.disclosure-summary:hover { background:var(--wash); border-color:var(--edge); }
.field-group[open]>.disclosure-summary,.record-advanced[open]>.disclosure-summary { background:var(--wash); margin-bottom:8px; }
.disclosure-title { flex:1; min-width:0; }
.field-group>.disclosure-summary small { display:block; margin-left:0; white-space:nowrap; }
.disclosure-state { font-size:11px; font-weight:500; color:var(--muted); }
details>.disclosure-summary .when-open,details[open]>.disclosure-summary .when-closed { display:none; }
details[open]>.disclosure-summary .when-open { display:inline; }
.record-section>.disclosure-summary { margin-inline:0; }
@media(max-width:720px) { .field-group>.disclosure-summary,.record-advanced>.disclosure-summary { margin-inline:8px; padding:12px 10px; gap:8px; } .disclosure-summary small { display:none!important; } }

.search-dialog { width:min(760px,calc(100vw - 40px)); }
.server-chooser-dialog { width:min(560px,calc(100vw - 40px)); }
.server-chooser-dialog>.dialog-content { padding:20px; background:var(--canvas); }
.server-chooser-search.global-search-input { padding:0 12px; border-radius:8px; border-color:var(--edge); background:var(--paper); }
.server-chooser-search>.icon { width:18px; height:18px; color:var(--muted); }
.server-chooser-search input { background:transparent; font-size:13px; }
.server-chooser-search:focus-within { outline-color:var(--accent-line); outline-offset:2px; }
.server-chooser-status { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; font-size:12px; color:var(--muted); }
.server-chooser-results { height:min(var(--server-list-height,340px),42dvh); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--edge) transparent; scrollbar-gutter:stable; padding:2px; }
.server-chooser-results .guild-option { min-height:74px; gap:12px; padding:12px; margin-bottom:8px; border:1px solid var(--line); border-radius:10px; background:var(--paper); color:var(--ink); transition:background-color 160ms ease,border-color 160ms ease; }
.server-chooser-results .guild-option:last-child { margin-bottom:0; }
.server-chooser-results .guild-option:hover { background:var(--wash); border-color:var(--edge); }
.server-chooser-results .guild-option:focus-visible { outline:2px solid var(--accent-line); outline-offset:-2px; }
.server-chooser-results .guild-option[aria-current="page"] { background:var(--accent-wash); border-color:var(--accent-line); }
.server-chooser-results .guild-avatar { width:42px; height:42px; border:1px solid var(--line); border-radius:10px; background:var(--wash); color:var(--ink); font-size:14px; }
.server-chooser-results .guild-option[aria-current="page"] .guild-avatar { background:var(--paper); color:var(--accent-ink); }
.server-chooser-results .server-chooser-copy { min-width:0; flex:1; }
.server-chooser-copy strong { font-weight:650; line-height:1.45; overflow-wrap:anywhere; }
.server-chooser-copy small { display:flex; align-items:center; gap:5px; color:var(--muted); line-height:1.4; }
.server-chooser-copy small>.icon { width:13px; height:13px; flex-shrink:0; }
.guild-option>.server-chooser-current { display:flex; align-items:center; flex:0 0 auto; gap:5px; padding:4px 7px; border:1px solid var(--accent-line); border-radius:6px; color:var(--accent-ink); font-size:11px; font-weight:600; }
.server-chooser-current>.icon { width:13px; height:13px; }
.server-chooser-results .guild-option>.icon { width:16px; height:16px; flex-shrink:0; color:var(--muted); }
.server-chooser-results>.empty { padding:24px 12px; }
@media(max-width:480px) { .server-chooser-dialog { width:calc(100vw - 24px); } .server-chooser-dialog>.dialog-content { padding:16px; } .server-chooser-results .guild-option { gap:9px; padding:10px; } .server-chooser-results .guild-avatar { width:36px; height:36px; } }
@media(prefers-reduced-motion:reduce) { .server-chooser-results .guild-option { transition:none; } }
.global-search-input { display:flex; align-items:center; gap:12px; border:1px solid var(--edge); border-radius:10px; padding:4px 14px; background:var(--paper); }
.global-search-input input { border:0; padding:12px 0; box-shadow:none; width:100%; min-width:0; }
.search-filters { display:flex; width:fit-content; max-width:100%; margin-top:14px; background:var(--wash); border:1px solid var(--line); flex-wrap:nowrap; }
.search-filters button { gap:7px; padding:8px 14px; color:var(--muted); transition:background-color 160ms ease,color 160ms ease,box-shadow 160ms ease; }
.search-filters button .icon { width:15px; height:15px; }
.search-filters button:hover { color:var(--ink); background:var(--paper); }
.search-filters button.active { background:var(--paper); color:var(--ink); box-shadow:0 1px 4px #24283018; }
.search-explanation { font-size:12px; margin-top:12px; color:var(--muted); }
.search-feedback { font-size:12px; color:var(--muted); margin-bottom:12px; min-height:2.8em; }
.configuration-search-results { height:min(420px,45dvh); overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
@media(prefers-reduced-motion:reduce) { .search-filters button { transition:none; } }
.configuration-search-result { display:flex; gap:12px; padding:16px 10px; border-top:1px solid var(--line); align-items:flex-start; }
.configuration-search-result:hover,.configuration-search-result:focus-visible { background:var(--accent-wash); }
.configuration-search-result>.icon { margin-top:2px; color:var(--muted); width:18px; height:18px; }
.configuration-search-result>.icon:last-child { margin-left:auto; }
.search-result-copy { min-width:0; flex:1; }
.search-result-heading { display:flex; justify-content:space-between; gap:10px; align-items:baseline; }
.search-result-heading strong { font-size:14px; }
.search-result-heading small { font-size:10px; }
.search-result-location { display:block; font-size:11px; margin:4px 0; overflow-wrap:anywhere; }
.search-result-copy p { font-size:12px; line-height:1.6; color:var(--ink); white-space:pre-wrap; overflow-wrap:anywhere; }
.search-result-match { display:block; margin-top:5px; font-size:10px; color:var(--muted); }
.search-error { display:grid; justify-items:start; gap:12px; padding:20px 0; }
.search-highlight { outline:2px solid var(--accent-line); outline-offset:4px; border-radius:6px; background:var(--accent-wash); scroll-margin:100px 0; }
@media(max-width:720px) { .search-dialog { width:calc(100vw - 24px); } .configuration-search-result { padding-inline:2px; gap:8px; } .configuration-search-result>.icon:last-child { display:none; } }


.emoji-field { display:flex; align-items:center; gap:6px; min-width:0; }
.emoji-trigger { flex:1; min-width:0; gap:10px; }
.emoji-trigger>span:not(.emoji-graphic) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.emoji-trigger>.icon:last-child { margin-left:auto; flex:none; }
.emoji-graphic { display:inline-block; width:28px; height:28px; flex:none; object-fit:contain; font:24px/28px 'Segoe UI Emoji','Apple Color Emoji',sans-serif; overflow:hidden; }
.emoji-standard { background-image:url('/assets/vendor/emoji/atlas.webp'); background-repeat:no-repeat; }
.emoji-dialog { width:min(540px,calc(100vw - 32px)); }
.emoji-dialog>.dialog-content { padding:16px 20px; overflow:hidden; }
.emoji-dialog>.dialog-actions:empty { display:none; }
.emoji-dialog .input-search { width:100%; max-width:none; }
.emoji-categories { display:flex; gap:2px; overflow-x:auto; padding:12px 0; border-bottom:1px solid var(--line); scrollbar-width:thin; }
.emoji-categories>.icon-button { width:36px; min-width:36px; height:34px; padding:7px; border:0; background:transparent; border-radius:6px; }
.emoji-categories [aria-pressed=true] { color:var(--accent-on); background:var(--accent); }
.emoji-feedback { font-size:12px; margin:8px 0; }
.emoji-feedback:empty { display:none; }
.emoji-results { max-height:min(350px,45vh); min-height:160px; overflow:auto; overscroll-behavior:contain; padding:0 2px 12px; scrollbar-width:thin; }
.emoji-results h3 { margin:16px 2px 8px; font-size:12px; color:var(--muted); font-weight:650; }
.emoji-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(38px,1fr)); gap:3px; }
.emoji-option { display:grid; place-items:center; height:40px; min-width:0; padding:4px; border:1px solid transparent; border-radius:6px; background:transparent; }
.emoji-option:hover,.emoji-option:focus-visible,.emoji-option[aria-pressed=true] { border-color:var(--accent); background:var(--wash); outline:none; }
.emoji-option:focus-visible { outline:2px solid var(--ink); outline-offset:-2px; }
.emoji-option:disabled { opacity:.4; }
.emoji-empty { margin:24px 6px; font-size:13px; color:var(--muted); }
@media(max-width:480px) { .emoji-dialog>.dialog-content { padding:12px; } }

.gallery-image-editor {
  margin-bottom:14px;
  border-bottom:1px solid var(--line);
  padding-bottom:10px
}

.gallery-image-editor>header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px
}

.gallery-image-editor>header strong {
  font-size:12px
}

.gallery-image-editor>.field-row {
  padding:12px 0;
  grid-template-columns:minmax(85px,.35fr) minmax(130px,1fr);
  gap:15px
}

.gallery-image-editor>.field-row.wide {
  grid-template-columns:1fr
}

@media(max-width:720px) {
  .gallery-image-editor>.field-row {
    grid-template-columns:1fr;
    gap:7px
  }
  .gallery-image-editor>header .button {
    font-size:10px
  }
}


.choice-field { min-width:0; flex:1; }
.choice-field>select { width:100%; }
.choice-description { display:block; margin-top:8px; color:var(--muted); font-size:12px; line-height:1.55; max-width:65ch; }
.choice-description[hidden] { display:none; }