:root {
  color-scheme: light;
  font-family: "Avenir Next", "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", sans-serif;
  background: #f7f5ef;
  color: #292b27;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --surface: #fffefa;
  --surface-raised: #f2f0e9;
  --line: #deddd5;
  --muted: #77786f;
  --accent: #9be8ce;
  --accent-text: #193a30;
  --danger: #b94f4f;
}

@font-face {
  font-family: "CiaoMilan";
  src: url("/assets/fonts/CiaoMilan-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  line-height: 1.5;
  background:
    radial-gradient(ellipse at 92% -12%, rgba(155, 232, 206, .24), transparent 42%),
    radial-gradient(ellipse at -15% 50%, rgba(219, 211, 190, .2), transparent 45%),
    #f7f5ef;
}

button { font: inherit; }

.launch-splash {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  background:
    radial-gradient(ellipse at 50% 42%, rgba(155, 232, 206, .22), transparent 38%),
    #f7f5ef;
  opacity: 1;
  transition: opacity .32s ease;
}
.splash-brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.launch-splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s .4s, opacity .4s ease;
}
.launch-splash-enter { animation: launch-splash-enter .28s ease both; }
@keyframes launch-splash-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
.launch-logo {
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(20, 38, 27, .3);
}
.launch-logo img,
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.splash-title {
  margin: 0;
  font-family: "Parisienne", "Segoe UI Variable", "Segoe UI", "Aptos", -apple-system, BlinkMacSystemFont, cursive;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0;
  color: #193a30;
  text-align: center;
  line-height: 1;
}
.launch-progress {
  position: absolute;
  right: 0;
  bottom: max(54px, calc(env(safe-area-inset-bottom) + 44px));
  left: 0;
  width: 112px;
  height: 2px;
  margin: auto;
  overflow: hidden;
  border-radius: 2px;
  background: #deddd5;
  opacity: 0;
  animation: splash-credit-rise .6s 1.7s cubic-bezier(.2, .7, .25, 1) forwards;
}
.launch-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #86d9ba;
  box-shadow: 0 0 8px rgba(101, 190, 153, .45);
  animation: launch-progress-fill 1.5s ease-out 1.7s forwards;
}
.splash-credit {
  position: absolute;
  right: 0;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 18px));
  left: 0;
  margin: 0;
  color: #85867d;
  font-size: 11px;
  letter-spacing: .035em;
  text-align: center;
  opacity: 0;
  animation: splash-credit-rise .8s 2.3s cubic-bezier(.2, .7, .25, 1) forwards;
}
.splash-credit span {
  color: #648e70;
  font-weight: 650;
}
@keyframes splash-credit-rise {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes launch-progress-fill {
  to { width: 100%; }
}

.shell {
  display: flex;
  width: min(100% - 32px, 430px);
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 0 max(18px, env(safe-area-inset-bottom));
  opacity: 0;
  transition: opacity .5s ease;
}
.shell.visible {
  opacity: 1;
}
body.scanner-page .brand { display: none !important; }

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 12px 0 clamp(24px, 5svh, 36px);
}
.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 14px rgba(20, 38, 27, .24);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

h1 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.025em; line-height: 1.3; }

.card {
  width: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 254, 250, .98), rgba(247, 246, 240, .98));
  box-shadow: 0 16px 38px rgba(79, 76, 62, .12), inset 0 1px rgba(255, 255, 255, .8);
}

.card > p:not(.eyebrow) { color: #595b54; line-height: 1.55; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
.preview-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.primary {
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  padding: 14px 22px;
  border: 1px solid rgba(105, 179, 146, .48);
  border-radius: 999px;
  background: linear-gradient(180deg, #c0f1df 0%, #a8e9d1 48%, #91dfc1 100%);
  color: var(--accent-text);
  box-shadow:
    0 5px 0 rgba(87, 155, 124, .2),
    0 9px 18px rgba(83, 153, 122, .16),
    inset 0 2px 2px rgba(255, 255, 255, .76),
    inset 0 -1px 2px rgba(73, 151, 116, .14);
  font-weight: 750;
  transition: filter .16s ease, transform .16s ease, box-shadow .16s ease;
}

.primary:not(:disabled):hover {
  filter: saturate(1.06) brightness(1.02);
  box-shadow:
    0 5px 0 rgba(87, 155, 124, .2),
    0 10px 22px rgba(83, 153, 122, .21),
    0 0 0 3px rgba(134, 217, 186, .16),
    inset 0 2px 2px rgba(255, 255, 255, .8);
}
.primary:not(:disabled):active {
  transform: translateY(3px);
  filter: brightness(.98);
  box-shadow:
    0 2px 0 rgba(87, 155, 124, .2),
    0 4px 10px rgba(83, 153, 122, .14),
    inset 0 2px 4px rgba(73, 151, 116, .12);
}
.primary:focus-visible, .text-button:focus-visible, .preview-link:focus-visible {
  outline: 2px solid #70cba6;
  outline-offset: 3px;
}
.primary:disabled {
  border-color: #d3d1c9;
  background: linear-gradient(180deg, #e8e7e0, #d6d5cd);
  color: #77786f;
  opacity: 1;
  box-shadow: 0 3px 0 rgba(79, 76, 62, .12), inset 0 1px rgba(255, 255, 255, .72);
}
.secondary {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #d5e7dc;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffefa, #f3f5ef);
  color: #3e5549;
  box-shadow: 0 3px 8px rgba(79, 76, 62, .1), inset 0 1px rgba(255, 255, 255, .9);
  font-weight: 650;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.secondary:not(:disabled):active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(79, 76, 62, .12); }
.text-button {
  padding: 7px 14px;
  border: 1px solid #d5e7dc;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffefa, #f3f5ef);
  color: #3e6954;
  box-shadow: 0 2px 6px rgba(79, 76, 62, .08), inset 0 1px rgba(255, 255, 255, .9);
  transition: color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.text-button:active { transform: translateY(1px); box-shadow: inset 0 1px 3px rgba(79, 76, 62, .12); }
.secondary:focus-visible { outline: 2px solid #70cba6; outline-offset: 3px; }
.text-button:focus-visible { outline: 2px solid #70cba6; outline-offset: 3px; }
.secondary:disabled,
.demo-navigation .primary:disabled {
  cursor: default;
  opacity: .48;
  box-shadow: none;
}
.hidden { display: none !important; }

.screen-transition-enter {
  opacity: 0;
  transform: translateX(10px);
}
.screen-transition-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity .24s ease, transform .24s ease;
}
.screen-transition-exit {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.demo-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  position: fixed;
  z-index: 10001;
  top: max(72px, calc(env(safe-area-inset-top) + 52px));
  right: max(16px, calc((100vw - 430px) / 2));
}
.appearance-menu {
  position: fixed;
  z-index: 10002;
  top: max(24px, env(safe-area-inset-top));
  right: max(16px, calc((100vw - 430px) / 2));
}
.appearance-menu-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0 0 5px;
  border: 1px solid #d5e7dc;
  border-radius: 50%;
  background: linear-gradient(145deg, #fffefa, #f3f5ef);
  color: #3e6954;
  box-shadow: 0 3px 8px rgba(79, 76, 62, .1), inset 0 1px rgba(255, 255, 255, .9);
  font-size: 30px;
  line-height: 1;
}
.appearance-menu-button:focus-visible { outline: 2px solid #70cba6; outline-offset: 3px; }
.appearance-panel {
  position: absolute;
  top: 48px;
  right: 0;
  width: max-content;
  min-width: 190px;
  padding: 12px 14px;
  border: 1px solid #deddd5;
  border-radius: 16px;
  background: #fffefa;
  box-shadow: 0 12px 32px rgba(79, 76, 62, .18);
}
.theme-switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #292b27;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.theme-toggle-button {
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
}
.switch-track {
  display: flex;
  width: 42px;
  height: 25px;
  flex: 0 0 42px;
  align-items: center;
  padding: 3px;
  border: 1px solid #d1d1c8;
  border-radius: 999px;
  background: #dcdcd4;
  transition: background .18s ease, border-color .18s ease;
}
.switch-track > span {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fffefa;
  box-shadow: 0 1px 3px rgba(42, 43, 39, .2);
  transition: transform .18s ease;
}
.theme-toggle-button[aria-checked="true"] .switch-track {
  border-color: #69b892;
  background: #91dfc1;
}
.theme-toggle-button[aria-checked="true"] .switch-track > span { transform: translateX(17px); }
.theme-toggle-button:focus-visible .switch-track { outline: 2px solid #70cba6; outline-offset: 3px; }
body.demo-splash .launch-splash {
  z-index: 10000;
}
.demo-arrow {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  padding: 0 0 4px;
  border: 1px solid #deddd5;
  border-radius: 50%;
  background: linear-gradient(145deg, #c0f1df, #91dfc1);
  color: #285742;
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 3px 0 rgba(87, 155, 124, .16), 0 5px 12px rgba(79, 76, 62, .1), inset 0 1px rgba(255, 255, 255, .75);
}
.demo-arrow:active:not(:disabled) { transform: translateY(2px) scale(.96); box-shadow: inset 0 2px 4px rgba(73, 151, 116, .15); }
.demo-arrow:focus-visible { outline: 2px solid #70cba6; outline-offset: 3px; }
.demo-arrow:disabled {
  cursor: default;
  opacity: .38;
  box-shadow: none;
}

#dashboard {
  margin-top: 24px;
}

.scanner-frame {
  position: relative;
  display: grid;
  min-height: 250px;
  margin-top: 18px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #deddd5;
  border-radius: 18px;
  background: #f0efe9;
  box-shadow: inset 0 1px 5px rgba(83, 79, 62, .08);
}
.scanner-frame video {
  display: none;
  width: 100%;
  max-height: 55dvh;
  object-fit: cover;
}
.scanner-frame .scanner-placeholder {
  max-width: 220px;
  padding: 18px;
  color: #77786f;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.camera-active .scanner-frame video { display: block; }
.camera-active .scanner-frame .scanner-placeholder { display: none; }
.scanner-reticle {
  position: absolute;
  width: min(58vw, 220px);
  aspect-ratio: 1;
  border: 2px solid rgba(104, 199, 157, .5);
  border-radius: 20px;
  box-shadow: 0 0 22px rgba(104, 199, 157, .2);
  pointer-events: none;
}
.status-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 2px solid rgba(105, 190, 151, .25);
  border-radius: 50%;
  background: #69d7a0;
  box-shadow: 0 0 16px rgba(105, 190, 151, .32);
  animation: status-pulse 2s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .7; }
}
#scanner-status { min-height: 40px; }

.status-card { display: flex; align-items: center; gap: 14px; }
.account-panel { margin-top: 16px; }
.manual-action-panel { margin-top: 16px; }
.account-login-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.account-login-panel summary {
  color: #3e6954;
  font-weight: 650;
  cursor: pointer;
}
.account-login-panel[open] summary { margin-bottom: 12px; }
.account-form {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.account-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.account-form input,
.account-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  font: inherit;
}
.account-form input:focus-visible,
.account-form select:focus-visible {
  outline: 2px solid #70cba6;
  outline-offset: 2px;
}
.account-form .muted { margin: 0; }
.account-form-status { min-height: 20px; }
.status-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 2px solid rgba(105, 190, 151, .25);
  border-radius: 50%;
  background: #69d7a0;
  box-shadow: 0 0 16px rgba(105, 190, 151, .32);
}

body.demo-mode .status-dot {
  border-color: rgba(200, 156, 74, .25);
  background: #f0bc58;
  box-shadow: 0 0 16px rgba(240, 188, 88, .34);
}
body.demo-mode .account-panel,
body.demo-mode .account-login-panel { display: none; }
.demo-notice {
  margin-bottom: 12px;
  padding: 13px 15px;
  border: 1px solid #55462d;
  border-radius: 14px;
  background: linear-gradient(120deg, #fbf3dd, #f6edcf);
  color: #746039;
  font-size: 12px;
  line-height: 1.5;
}

.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 12px; }
.text-button:hover { color: #2e6951; }
.events { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.event {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 254, 250, .98), rgba(246, 245, 239, .98));
  box-shadow: 0 8px 22px rgba(79, 76, 62, .1), inset 0 1px rgba(255, 255, 255, .75);
  line-height: 1.45;
  animation: event-fade .35s ease both;
}
.event::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
}
@keyframes event-fade {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.event-type-connection { border-left-color: var(--accent); }
.event-type-connection::before { background: var(--accent); }
.event-type-candidate { border-left-color: #f0bc58; }
.event-type-candidate::before { background: #f0bc58; }
.event-type-error { border-left-color: var(--danger); }
.event-type-error::before { background: var(--danger); }
.event-type-automation { border-left-color: #9879cc; }
.event-type-automation::before { background: #9879cc; }
.event-type-member { border-left-color: #70cba6; }
.event-type-member::before { background: #70cba6; }
.event time { display: block; margin-top: 8px; color: #85867d; font-size: 11px; }
.empty-state { padding: 20px 4px; color: var(--muted); text-align: center; }
.app-status { margin: 0 4px; color: var(--danger); font-size: 13px; }
.app-status.has-message { min-height: 20px; margin: 18px 4px 8px; }
footer {
  margin: auto 4px 0;
  color: #85867d;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 380px) {
  .shell { width: min(100% - 32px, 430px); }
  .card { padding: 20px; }
}

@media (max-height: 520px) {
  .shell { padding-top: max(12px, env(safe-area-inset-top)); }
  .brand { margin: 4px 0 10px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .shell { padding-block: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-bottom)); }
  .brand { margin-top: 0; }
  .card { padding: 16px; }
  .primary { min-height: 48px; margin-top: 8px; padding-block: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .35s !important;
    transition-duration: .01ms !important;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  background: #101410;
  color: #edf4ef;
  --surface: #1b221d;
  --surface-raised: #242d26;
  --line: #343e36;
  --muted: #a4afa6;
  --accent-text: #193a30;
  --danger: #ffaaa0;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(ellipse at 92% -12%, rgba(86, 168, 128, .15), transparent 42%),
    radial-gradient(ellipse at -15% 50%, rgba(85, 109, 87, .1), transparent 45%),
    #101410;
}
:root[data-theme="dark"] .launch-splash {
  background: radial-gradient(ellipse at 50% 42%, rgba(86, 168, 128, .16), transparent 38%), #101410;
}
:root[data-theme="dark"] .splash-title { color: #a9d8b6; }
:root[data-theme="dark"] .launch-logo,
:root[data-theme="dark"] .brand-mark {
  box-shadow: 0 8px 22px rgba(0, 0, 0, .32);
}
:root[data-theme="dark"] .launch-progress { background: #303a32; }
:root[data-theme="dark"] .splash-credit { color: #89978d; }
:root[data-theme="dark"] .splash-credit span { color: #a9d8b6; }
:root[data-theme="dark"] .card {
  border-color: #343e36;
  background: linear-gradient(145deg, rgba(31, 39, 33, .98), rgba(24, 30, 25, .98));
  box-shadow: 0 16px 38px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .035);
}
:root[data-theme="dark"] .card > p:not(.eyebrow) { color: #c4cec6; }
:root[data-theme="dark"] .secondary,
:root[data-theme="dark"] .text-button,
:root[data-theme="dark"] .appearance-menu-button {
  border-color: #3a4b40;
  background: linear-gradient(180deg, #26342b, #1c2821);
  color: #d3efdf;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .06);
}
:root[data-theme="dark"] .text-button:hover { color: #a8edca; }
:root[data-theme="dark"] .account-login-panel summary { color: #a8edca; }
:root[data-theme="dark"] .automation-toggle { color: #d3efdf; }
:root[data-theme="dark"] .automation-controls select {
  border-color: #3a4b40;
  background: #1c2821;
  color: #edf4ef;
}
:root[data-theme="dark"] .primary:disabled {
  border-color: #414841;
  background: linear-gradient(180deg, #3c443e, #303832);
  color: #aab4ac;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .05);
}
:root[data-theme="dark"] .demo-arrow {
  border-color: #3e6652;
  background: linear-gradient(145deg, #a9e8cb, #78c9a4);
  color: #183a2b;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .2), 0 5px 12px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .55);
}
:root[data-theme="dark"] .scanner-frame {
  border-color: #39443c;
  background: #141a16;
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, .28);
}
:root[data-theme="dark"] .scanner-frame .scanner-placeholder { color: #a4afa6; }
:root[data-theme="dark"] .scanner-reticle {
  border-color: rgba(130, 224, 177, .95);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .38), 0 0 22px rgba(104, 199, 157, .28);
}
:root[data-theme="dark"] .scanner-reticle::before {
  border-top-color: rgba(130, 224, 177, 1);
  border-right-color: rgba(130, 224, 177, 1);
}
:root[data-theme="dark"] .scanner-reticle::after {
  background: linear-gradient(90deg, transparent, rgba(130, 224, 177, .9), transparent);
}
:root[data-theme="dark"] .status-dot {
  border-color: rgba(130, 224, 177, .25);
  background: #82e0b1;
  box-shadow: 0 0 16px rgba(130, 224, 177, .32);
}
:root[data-theme="dark"] .status-dot.connected {
  background: #82e0b1;
  box-shadow: 0 0 20px rgba(130, 224, 177, .4);
}
:root[data-theme="dark"] .status-dot.disconnected {
  background: #ffaaa0;
  border-color: rgba(255, 170, 160, .25);
  box-shadow: 0 0 20px rgba(255, 170, 160, .4);
  animation: status-pulse 1.5s ease-in-out infinite;
}
:root[data-theme="dark"] .demo-notice {
  border-color: #625536;
  background: linear-gradient(120deg, #322b1c, #292417);
  color: #ead7a4;
}
:root[data-theme="dark"] .event {
  border-color: #343e36;
  background: linear-gradient(145deg, rgba(31, 39, 33, .98), rgba(24, 30, 25, .98));
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .035);
}
:root[data-theme="dark"] .event time,
:root[data-theme="dark"] footer { color: #929e95; }
:root[data-theme="dark"] .event-type-error::before { background: var(--danger); }
:root[data-theme="dark"] .event-type-automation::before { background: #b89be8; }
:root[data-theme="dark"] .event-type-candidate::before { background: #f0bc58; }
:root[data-theme="dark"] .event-type-connection::before { background: var(--accent); }
:root[data-theme="dark"] .event-type-member::before { background: #70cba6; }
:root[data-theme="dark"] .appearance-panel {

.empty-state {
  padding: 20px 4px;
  color: var(--muted);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty-state::before {
  content: "•";
  font-size: 48px;
  line-height: 1;
  color: var(--line);
}
  border-color: #39443c;
  background: #1d251f;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
}
:root[data-theme="dark"] .theme-switch { color: #edf4ef; }
:root[data-theme="dark"] .switch-track { border-color: #465047; background: #353d37; }
:root[data-theme="dark"] .switch-track > span { background: #f4f4ed; }
