@font-face {
  font-family: Geist;
  src: url("/assets/geist-latin-ext-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Geist;
  src: url("/assets/geist-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  --bg: #f4f4f2;
  --side: #fafaf9;
  --panel: #fff;
  --raised: #f5f5f4;
  --selected: #ebebe8;
  --input: #fff;
  --line: #e3e3df;
  --line-soft: #efefed;
  --control-line: #d7d7d3;
  --text: #1b1b1a;
  --muted: #555553;
  --dim: #686865;
  --brand: #2563EB;
  --brand-hover: #1d4ed8;
  --accent: var(--brand);
  --accent-hover: var(--brand-hover);
  --positive: #167451;
  --positive-bg: #e5f7ef;
  --warning: #8d5216;
  --warning-bg: #fdf2de;
  --danger: #ac344a;
  --danger-bg: #fff0f2;
  --danger-line: #f3d0d6;
  --chart-accent: var(--brand);
  --chart-secondary: #70706e;
  --chart-neutral: #a4a4a0;
  --chart-amber: #b27832;
  --chart-track: #e8e8e5;
  --radius: 16px;
  --control-radius: 9px;
  --shadow: 0 1px 2px #0000000c;
  --overlay-shadow: 0 12px 28px #0000001c, 0 2px 6px #0000000d;
  --scrim: #00000059;
  --pane-padding: clamp(20px, 2.7vw, 40px);
  --rail-width: 226px;
  --bar-height: 65px;
  font-family: Geist, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141414;
  --side: #191919;
  --panel: #1f1f1f;
  --raised: #262626;
  --selected: #2e2e2e;
  --input: #191919;
  --line: #353535;
  --line-soft: #2c2c2c;
  --control-line: #474747;
  --text: #f4f4f4;
  --muted: #c1c1c1;
  --dim: #a9a9a9;
  --accent: #91b9ff;
  --accent-hover: #bdd8ff;
  --positive: #89dec0;
  --positive-bg: #203d37;
  --warning: #f2cb8d;
  --warning-bg: #3b2e27;
  --danger: #ffc0c9;
  --danger-bg: #402831;
  --danger-line: #663849;
  --chart-accent: #80aaff;
  --chart-secondary: #a3a3a3;
  --chart-neutral: #666;
  --chart-amber: #e5ab62;
  --chart-track: #373737;
  --shadow: 0 1px 2px #00000040;
  --overlay-shadow: 0 12px 28px #00000065, 0 2px 6px #00000033;
  --scrim: #00000099;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 0; scroll-padding-top: calc(var(--bar-height) + 18px); }
body { margin: 0; font-size: 14px; line-height: 1.48; }
body.sidebar-open { overflow: hidden; }
:where(h1,h2,h3,h4,p,dl,dd) { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.026em; }
h1 { font-size: clamp(28px, 2.65vw, 38px); font-weight: 680; }
h2 { font-size: 19px; font-weight: 665; }
h3 { font-size: 15px; font-weight: 650; }
b, strong { font-weight: 650; }
fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
button, input, select, textarea { font: inherit; }
button { border: 0; background: transparent; padding: 0; color: inherit; cursor: pointer; }
button:disabled, select:disabled, input:disabled { cursor: not-allowed; opacity: .56; }
a { color: var(--accent); text-decoration: none; }
a[href]:hover { color: var(--accent-hover); }
svg { inline-size: 1.12em; block-size: 1.12em; flex: none; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:where(input, select, textarea):not([type="checkbox"],[type="radio"],[type="range"],[type="file"]) {
  color: var(--text);
  background: var(--input);
  border: 1px solid var(--control-line);
  min-height: 42px;
  max-width: 100%;
  border-radius: var(--control-radius);
  padding: 8px 11px;
}
:where(input,select,textarea):not([type="checkbox"],[type="radio"]):focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--dim); }
textarea { resize: vertical; }
input:is([type="checkbox"],[type="radio"],[type="range"]) { accent-color: var(--accent); }
kbd {
  font-family: inherit;
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 0 5px;
  min-width: 19px;
  text-align: center;
  background: var(--raised);
  border-radius: 5px;
  color: var(--dim);
}
.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 15px;
  border-radius: 8px;
  background: var(--panel);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.noscript { padding: 16px; }
.button, .copy-button, .favorite-button, .detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  min-height: 40px;
  border: 1px solid var(--control-line);
  border-radius: var(--control-radius);
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 585;
  text-align: center;
}
.button:not(:disabled):hover, .copy-button:not(:disabled):hover, .favorite-button:hover, .detail-link:hover {
  background: var(--raised);
  border-color: var(--dim);
  color: var(--text);
}
.button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.button.primary:not(:disabled):hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.button.danger { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }
.button.danger:not(:disabled):hover { background: var(--danger-line); color: var(--danger); border-color: var(--danger-line); }
.button[aria-pressed="true"] { background: var(--selected); color: var(--text); border-color: var(--control-line); }
.icon-only { padding: 0; min-width: 38px; min-height: 38px; }
.icon-only svg { width: 17px; height: 17px; }
.text-button { display: inline-flex; gap: 6px; align-items: center; color: var(--accent); font-weight: 630; font-size: 13px; }
.text-button:not(:disabled):hover { text-decoration: underline; text-underline-offset: 3px; }
.brand { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; min-width: 0; color: var(--text); font-size: 22px; font-weight: 720; letter-spacing: -.025em; white-space: nowrap; }
.brand[href]:hover { color: var(--text); }
.brand-logo { display: block; flex: none; width: 36px; height: 36px; }
.app-shell, .admin-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: 100vh;
  align-items: start;
}
.app-rail {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 5;
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  background: var(--side);
  border-right: 1px solid var(--line);
}
.rail-top { display: flex; padding: 22px 22px 20px; align-items: center; justify-content: space-between; min-height: 79px; }
.rail-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px 13px 15px; overflow-y: auto; }
.rail-nav { display: grid; align-content: start; gap: 4px; }
.rail-label { display: block; margin: 17px 11px 6px; color: var(--dim); font-size: 10px; font-weight: 690; text-transform: uppercase; letter-spacing: .12em; }
.rail-nav > .rail-label:first-child { margin-top: 6px; }
.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) auto;
  align-items: center;
  text-align: left;
  min-height: 43px;
  width: 100%;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 545;
  font-size: 13px;
}
.nav-item [data-icon] { display: grid; place-items: center; color: var(--dim); }
.nav-item svg { width: 17px; height: 17px; }
.nav-item:hover { color: var(--text); background: var(--raised); }
.nav-item[aria-current="page"] { color: var(--text); background: var(--selected); font-weight: 660; }
.nav-item[aria-current="page"]::before { content: ""; position: absolute; inset: 9px auto 9px 0; width: 3px; border-radius: 2px; background: var(--accent); }
.nav-item[aria-current="page"] [data-icon] { color: var(--accent); }
.nav-item b { font-size: 10px; padding: 2px 6px; border-radius: 7px; color: var(--muted); background: var(--raised); font-variant-numeric: tabular-nums; }
.nav-item[aria-current="page"] b { background: var(--panel); color: var(--muted); }
.nav-toggle { display: none; }
.rail-bottom { margin-top: auto; padding-top: 24px; }
.rail-tools, .rail-profile { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 5px 10px; }
.rail-profile { border-top: 1px solid var(--line); padding-top: 11px; padding-bottom: 0; }
.sync-state { display: inline-flex; align-items: center; min-width: 0; gap: 7px; font-size: 11px; color: var(--muted); }
.sync-state > span:first-child { inline-size: 7px; block-size: 7px; flex: none; border-radius: 50%; background: var(--positive); }
.sync-state[data-tone="offline"] > span:first-child { background: var(--danger); }
.sync-state[data-tone="pending"] > span:first-child { background: var(--warning); }
.theme-toggle { color: var(--dim); border-color: transparent; background: transparent; min-width: 34px; min-height: 34px; }
.theme-toggle::before { content: "☾"; font-size: 21px; line-height: 1; }
:root[data-theme="dark"] .theme-toggle::before { content: "☀"; font-size: 16px; }
.avatar { display: inline-grid; flex: none; place-items: center; inline-size: 34px; block-size: 34px; border-radius: 10px; background: var(--selected); color: var(--muted); font-weight: 680; font-size: 13px; }
.actor-picker { display: flex; min-width: 0; align-items: center; gap: 8px; }
.actor-controls { min-width: 0; }
.actor-controls small, .admin-identity small { display: block; font-size: 10px; color: var(--muted); line-height: 1.2; }
.actor-controls strong { font-size: 13px; font-weight: 660; }
.admin-identity { justify-content: start; }
.admin-identity > button { margin-left: auto; }
.data-tools { position: relative; flex: none; }
.data-tools > summary { cursor: pointer; list-style: none; border-color: transparent; background: transparent; }
.data-tools > summary::-webkit-details-marker { display: none; }
.data-tools-menu {
  position: absolute;
  z-index: 11;
  right: 0;
  bottom: calc(100% + 8px);
  display: grid;
  gap: 2px;
  width: 183px;
  padding: 5px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--overlay-shadow);
}
.data-tools-menu button { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; width: 100%; text-align: left; font-size: 12px; }
.data-tools-menu button:hover { color: var(--text); background: var(--raised); }
.workspace { min-width: 0; }
.workspace-bar {
  position: sticky;
  z-index: 4;
  top: 0;
  min-height: var(--bar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--pane-padding);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--side);
}
.breadcrumbs { display: flex; gap: 9px; align-items: center; min-width: 0; color: var(--muted); font-size: 12px; }
.breadcrumbs strong { color: var(--text); white-space: nowrap; }
.breadcrumbs [data-icon] { display: inline-flex; font-size: 10px; }
.workspace-search { justify-content: start; color: var(--muted); gap: 9px; background: var(--raised); border-color: var(--line); }
.workspace-search kbd { margin-left: 18px; }
.workspace-content { max-width: 1660px; margin-inline: auto; padding: 27px var(--pane-padding) 50px; }
.workspace-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 22px; }
.page-title, .workspace-tools { min-width: 0; }
.summary { color: var(--muted); font-size: 13px; margin-top: 5px; }
.summary:empty { display: none; }
.workspace-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.workspace-date { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 12px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--panel); color: var(--muted); font-size: 12px; font-weight: 550; white-space: nowrap; }
.admin-heading { min-height: 45px; }
.admin-module-error { color: var(--danger); }
.search-wrap { position: relative; min-width: 0; }
.search-wrap > [data-icon]:first-child { display: grid; place-items: center; position: absolute; z-index: 1; top: 50%; left: 12px; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.search-wrap input[type="search"] { width: 100%; padding-left: 35px; padding-right: 34px; }
.search-wrap input::-webkit-search-cancel-button { display: none; }
.search-wrap > kbd, .search-clear { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); }
.search-clear { min-height: 25px; min-width: 25px; border-color: transparent; background: transparent; }
.search-clear svg { width: 13px; height: 13px; }
.connection-banner {
  display: flex;
  align-items: center;
  gap: 8px 11px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 11px 14px;
  border-radius: var(--control-radius);
  background: var(--warning-bg);
  border: 1px solid color-mix(in srgb,var(--warning) 16%, transparent);
  color: var(--warning);
  font-size: 13px;
}
.connection-banner > [data-icon] { display: grid; place-items: center; }
.connection-banner .text-button { color: inherit; }
.backlog-banner .text-button { margin-left: auto; }
.drawer-backdrop { position: fixed; inset: 0; background: var(--scrim); z-index: 8; }
.drawer {
  position: fixed;
  z-index: 9;
  inset: 0 0 0 auto;
  width: min(390px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  box-shadow: var(--overlay-shadow);
}
.drawer-header, .drawer-actions { padding: 17px 21px; display: flex; align-items: center; gap: 8px; }
.drawer-header { justify-content: space-between; border-bottom: 1px solid var(--line); }
.filter-heading { display: flex; align-items: center; gap: 8px; }
.filter-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 100px; color: var(--text); background: var(--selected); font-size: 11px; }
.drawer-actions { justify-content: space-between; border-top: 1px solid var(--line); }
.sidebar-filters { flex: 1; overflow: auto; padding: 17px 21px; }
.sidebar-filters :is(label,.field-label) { display: block; color: var(--muted); font-size: 12px; font-weight: 580; margin: 0 0 4px; }
.sidebar-filters select:not([hidden]) { display: block; width: 100%; margin-bottom: 13px; }
.sidebar-filters .website-shortcut { width: 100%; }
.filter-hint { color: var(--dim); font-size: 12px; margin: 12px 0 0; }
.toast {
  position: fixed;
  z-index: 15;
  bottom: 20px;
  right: 20px;
  max-width: min(415px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 17px;
  font-weight: 580;
  color: var(--text);
  background: var(--panel);
  box-shadow: var(--overlay-shadow);
}
@media (max-width: 1150px) {
  :root { --rail-width: 195px; }
  .rail-top { padding-inline: 17px; }
  .rail-body { padding-inline: 10px; }
}
@media (max-width: 760px) {
  :root { --bar-height: 58px; --pane-padding: 16px; }
  .app-shell, .admin-shell { display: block; }
  .app-rail { height: auto; border: 0; border-bottom: 1px solid var(--line); }
  .rail-top { min-height: var(--bar-height); padding: 8px var(--pane-padding); }
  .nav-toggle { display: inline-flex; color: var(--text); }
  .rail-body { display: none; }
  .app-rail[data-expanded="true"] .rail-body {
    display: flex;
    position: absolute;
    top: 100%;
    width: 100%;
    max-height: calc(100vh - var(--bar-height));
    max-height: calc(100dvh - var(--bar-height));
    border-top: 1px solid var(--line);
    border-radius: 0 0 15px 15px;
    background: var(--side);
    box-shadow: var(--overlay-shadow);
    padding: 12px var(--pane-padding) 17px;
  }
  .rail-bottom { padding-top: 10px; }
  .rail-profile { justify-content: start; }
  .rail-profile > :last-child { margin-left: auto; }
  .workspace-bar { position: static; min-height: 45px; background: transparent; border-bottom: 0; padding-top: 10px; }
  .workspace-search { min-height: 34px; padding: 5px 8px; font-size: 11px; background: var(--panel); }
  .workspace-search kbd { display: none; }
  .workspace-content { padding-top: 12px; }
  .workspace-header { align-items: start; margin-bottom: 16px; }
  .workspace-date { min-height: 35px; font-size: 11px; }
  .workspace-tools .button { min-height: 37px; }
  .backlog-banner .text-button { margin-left: 0; }
  .nav-item { min-height: 42px; }
}
@media (max-width: 400px) {
  .breadcrumbs { gap: 5px; }
  .breadcrumbs > :first-child { display: none; }
  .breadcrumbs > [data-icon] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; }
}
@media print {
  .app-shell, .admin-shell { display: block; }
  .app-rail, .workspace-bar, .workspace-tools, .queue-toolbar, .toast, .drawer { display: none !important; }
  .workspace-content { padding: 0; }
}
