@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 500; font-display: swap; src: url("/fonts/caveat-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #0b0d17;
  --bg-2: #0e1120;
  --panel: rgba(17, 19, 32, 0.78);
  --panel-solid: #121424;
  --panel-2: #181a2e;
  --input: #10121e;
  --border: #262a3d;
  --border-strong: #353a52;
  --text: #f2f2f8;
  --text-2: #c9c7e8;
  --muted: #9a9cb4;
  --faint: #6c6f88;
  --accent: #6c5cf0;
  --accent-2: #8b7cf8;
  --accent-3: #a89cff;
  --accent-soft: rgba(108, 92, 240, 0.16);
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --info: #60a5fa;
  --radius: 12px;
  --mono: ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-3); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.25; font-weight: 600; }
h1 { font-size: 24px; letter-spacing: -0.01em; }
h2 { font-size: 17px; }
h3 { font-size: 14px; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
pre {
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 8px 0;
  color: var(--text-2);
}
.boot { padding: 40px; color: var(--muted); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.warn { color: var(--warn); }
.bad { color: var(--bad); }
.ok { color: var(--ok); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------- Brand mark */
.brand { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.brand .mark { width: 1.36em; height: 1em; flex: none; }
.brand.xl { font-size: 46px; }
.brand.lg { font-size: 40px; }
.brand.sm { font-size: 19px; gap: 10px; }

/* ------------------------------------------------------------------ Login */
.login {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 53.1% 1fr;
  background:
    radial-gradient(1200px 700px at 85% 40%, rgba(60, 50, 140, 0.18), transparent 60%),
    linear-gradient(180deg, #0c0e1a 0%, #0a0c16 100%);
  overflow: hidden;
}
.login-art {
  position: relative;
  min-height: 100vh;
  background: url("/img/login-art.webp") center bottom / cover no-repeat;
}
.login-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 72%, #0b0d18 100%);
  pointer-events: none;
}
.login-copy {
  position: relative;
  z-index: 1;
  padding: 9.4vh 0 0 11.9%;
  max-width: 560px;
}
.login-copy .brand { font-size: clamp(34px, 3.1vw, 48px); }
.login-copy .headline {
  margin: 30px 0 34px;
  font-size: clamp(20px, 1.75vw, 27px);
  line-height: 1.32;
  font-weight: 500;
  color: var(--text-2);
}
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.features li { display: grid; grid-template-columns: 38px 1fr; gap: 18px; align-items: start; }
.features svg.i { width: 32px; height: 32px; color: var(--accent-2); stroke-width: 1.6; margin-top: 2px; }
.features b { display: block; font-weight: 500; font-size: 15px; color: #fff; margin-bottom: 5px; }
.features span { font-size: 13px; color: #c3c3d6; }
.scribble {
  margin: 34px 0 0 -4px;
  font-family: "Caveat", cursive;
  font-size: 23px;
  line-height: 1.1;
  color: #b4a9ff;
  transform: rotate(-9deg);
  transform-origin: left top;
  width: max-content;
}
.scribble svg { display: block; width: 140px; height: 18px; margin: 2px 0 0 14px; stroke: #8b7cf8; fill: none; stroke-width: 2.4; stroke-linecap: round; }

.login-side { display: flex; align-items: center; padding: 6vh 6% 6vh 0.5%; }
.login-card {
  width: 100%;
  max-width: 616px;
  min-height: min(816px, 88vh);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 22, 34, 0.72), rgba(14, 16, 26, 0.72));
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 62px 36px;
  text-align: center;
}
.login-card .brand { font-size: clamp(34px, 2.9vw, 46px); }
.login-card h2 { margin: 30px 0 18px; font-size: 21px; font-weight: 500; }
.login-card .sub { margin: 0 0 34px; color: #c3c4d6; font-size: 15.5px; line-height: 1.65; }
.login-form { width: 100%; text-align: left; display: grid; gap: 20px; }
.invite-input { height: 52px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); color: #e6e6f0; font: 500 14.5px "Inter", sans-serif; text-align: center; letter-spacing: 0.5px; }
.invite-input:focus { outline: none; border-color: var(--accent-2); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.tab {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; background: transparent; border: 0; color: #e6e6f0;
  font: 500 14.5px "Inter", sans-serif; cursor: pointer; position: relative;
}
.tab svg.i { width: 21px; height: 21px; }
.tab.active { background: rgba(108, 92, 240, 0.14); color: var(--accent-3); box-shadow: inset 0 0 0 1px rgba(139, 124, 248, 0.55); border-radius: 10px 0 0 10px; }
.tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent-2); }
.tab:nth-child(2).active { border-radius: 0 10px 10px 0; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg.i { position: absolute; left: 20px; width: 21px; height: 21px; color: #9497ad; pointer-events: none; }
.input-wrap input { height: 52px; padding: 0 52px 0 62px; font-size: 14.5px; }
.input-wrap .eye { position: absolute; right: 12px; background: none; border: 0; color: #9497ad; cursor: pointer; padding: 6px; display: flex; }
.login-row { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; }
.cb { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: #e6e6f0; }
.cb input { appearance: none; width: 20px; height: 20px; margin: 0; padding: 0; border-radius: 5px; border: 1px solid var(--border-strong); background: var(--input); display: grid; place-items: center; cursor: pointer; }
.cb input:checked { background: var(--accent); border-color: var(--accent); }
.cb input:checked::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-2); font: inherit; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.btn-hero {
  height: 48px; width: 100%; border: 0; border-radius: 8px;
  background: linear-gradient(180deg, #7061f3, #6656ec);
  color: #fff; font: 500 15px "Inter", sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer;
  box-shadow: 0 6px 24px rgba(108, 92, 240, 0.25);
}
.btn-hero:hover { filter: brightness(1.08); }
.btn-hero:disabled { opacity: 0.6; cursor: wait; }
.btn-outline {
  height: 52px; width: 100%; border-radius: 8px; border: 1px solid var(--border-strong);
  background: transparent; color: #f2f2f8; font: 500 15px "Inter", sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 14px; cursor: pointer;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.03); }
.btn-outline svg.i, .btn-hero svg.i { width: 22px; height: 22px; }
.or { display: flex; align-items: center; gap: 22px; color: #c3c4d6; font-size: 14.5px; margin: 2px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }
.login-foot { margin-top: 38px; font-size: 13px; color: #c3c4d6; }
.login-foot .linkish { margin-left: 12px; font-size: 13px; }
.form-error { color: var(--bad); font-size: 13.5px; min-height: 0; }
.form-info { color: var(--text-2); font-size: 13.5px; background: var(--accent-soft); border: 1px solid rgba(139, 124, 248, 0.35); border-radius: 8px; padding: 10px 12px; }
.github-pane { display: grid; gap: 14px; justify-items: center; text-align: center; color: var(--muted); padding: 8px 0 4px; }

@media (max-width: 1080px) {
  .login { grid-template-columns: 1fr; }
  .login-art { position: absolute; inset: 0; opacity: 0.35; }
  .login-art .login-copy { display: none; }
  .login-side { position: relative; justify-content: center; padding: 24px 16px; min-height: 100vh; }
  .login-card { min-height: 0; padding: 36px 22px 28px; }
}

/* ------------------------------------------------------------------ Shell */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  background: linear-gradient(180deg, #0e1020, #0b0d17);
  border-right: 1px solid var(--border);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side .brand { padding: 2px 10px 22px; }
.nav-btn {
  display: flex; align-items: center; gap: 12px;
  text-align: left; padding: 9px 12px; border-radius: 8px; border: 0;
  background: transparent; color: var(--muted); font: 500 14px "Inter", sans-serif; cursor: pointer;
}
.nav-btn:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.nav-btn.active { background: var(--accent-soft); color: var(--accent-3); box-shadow: inset 2px 0 0 var(--accent-2); }
.nav-btn .nav-count { margin-left: auto; font-size: 12px; color: var(--faint); }
.side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); display: grid; gap: 10px; }
.side-foot .who { color: var(--text-2); word-break: break-all; }
.main {
  padding: 30px 34px 70px;
  min-width: 0;
  background: radial-gradient(900px 500px at 100% 0%, rgba(80, 64, 190, 0.12), transparent 60%);
}
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* ------------------------------------------------------------- Components */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.card + .card { margin-top: 14px; }
.grid > .card + .card { margin-top: 0; }
.grid { display: grid; gap: 14px; }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 18px; }
.grid.halves { grid-template-columns: 1fr 1fr; }
.stat { position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: 12.5px; }
.stat .value { font-size: 30px; font-weight: 700; margin-top: 4px; letter-spacing: -0.02em; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(108, 92, 240, 0.22), transparent 70%); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font: 500 13.5px "Inter", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg.i { width: 16px; height: 16px; }
.btn:hover { background: rgba(255, 255, 255, 0.04); }
.btn.primary { background: linear-gradient(180deg, #7061f3, #6656ec); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); border-color: rgba(248, 113, 113, 0.35); }
.btn.good { color: var(--ok); border-color: rgba(74, 222, 128, 0.35); }
.btn.small { padding: 4px 10px; font-size: 12.5px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

.stack { display: grid; gap: 14px; }
label.field { display: grid; gap: 6px; font-weight: 500; font-size: 13px; color: var(--text-2); }
label.field .hint { font-weight: 400; color: var(--faint); font-size: 12px; }
input, select, textarea {
  font: 400 14px "Inter", sans-serif;
  color: var(--text);
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: #8a8da6; }
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9497ad 50%), linear-gradient(135deg, #9497ad 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(108, 92, 240, 0.22); }
.btn:focus-visible, .nav-btn:focus-visible, .tab:focus-visible, .linkish:focus-visible, .btn-hero:focus-visible, .btn-outline:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--text-2); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 11.5px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: rgba(255, 255, 255, 0.025); }
.table-wrap { overflow-x: auto; }
.card.flush { padding: 4px 6px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  white-space: nowrap;
}
.badge.ok { color: var(--ok); background: rgba(74, 222, 128, 0.1); }
.badge.warn { color: var(--warn); background: rgba(251, 191, 36, 0.1); }
.badge.bad { color: var(--bad); background: rgba(248, 113, 113, 0.1); }
.badge.info { color: var(--info); background: rgba(96, 165, 250, 0.1); }
.badge.accent { color: var(--accent-3); background: var(--accent-soft); }
.badge.muted { color: var(--muted); }

/* Setup checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, 0.015); }
.checklist .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; display: grid; place-items: center; }
.checklist li.done .dot { background: var(--accent); border-color: var(--accent); }
.checklist li.done .dot::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.checklist .txt { flex: 1; }
.checklist .txt small { display: block; color: var(--muted); }

/* Board */
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar select { width: auto; min-width: 160px; }
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.col { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; min-height: 160px; }
.col h3 { font-size: 12px; display: flex; justify-content: space-between; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.tcard {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.tcard:hover { border-color: var(--accent-2); transform: translateY(-1px); }
.tcard .t { font-weight: 500; margin: 6px 0; word-break: break-word; }
.tcard .meta { font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.empty { color: var(--faint); font-size: 13px; text-align: center; padding: 16px 4px; }

/* Activity */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: start; }
.feed li:last-child { border-bottom: 0; }
.feed .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); margin-top: 7px; }
.feed .when { font-size: 12px; color: var(--faint); white-space: nowrap; }
.feed .msg { display: block; word-break: break-word; }
.feed .msg small { display: block; color: var(--muted); }

/* Drawer / modal */
.overlay { position: fixed; inset: 0; background: rgba(5, 6, 12, 0.62); backdrop-filter: blur(2px); display: flex; justify-content: flex-end; z-index: 20; }
.drawer { width: min(680px, 100%); height: 100%; background: var(--panel-solid); overflow-y: auto; padding: 26px; border-left: 1px solid var(--border); }
.overlay.center { justify-content: center; align-items: center; padding: 16px; }
.modal { width: min(600px, 100%); max-height: 92vh; overflow-y: auto; background: var(--panel-solid); border-radius: 16px; padding: 26px; border: 1px solid var(--border); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.modal-head h2 { margin: 0; }
.x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; display: flex; }
.x:hover { color: var(--text); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 14px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.section-title { margin: 22px 0 10px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.prewrap { white-space: pre-wrap; word-break: break-word; }
.review { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.problems { margin: 8px 0 0; padding-left: 18px; }

.toast {
  position: fixed; bottom: 20px; right: 20px; z-index: 50;
  background: var(--panel-solid); color: var(--text); border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent-2);
  padding: 12px 16px; border-radius: 10px; max-width: 440px;
  white-space: pre-wrap; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.toast.error { border-left-color: var(--bad); }
.secret { border: 1px dashed var(--warn); background: rgba(251, 191, 36, 0.05); border-radius: 12px; padding: 14px; margin: 14px 0; }
.copy-row { display: flex; gap: 8px; align-items: stretch; }
.copy-row pre { flex: 1; margin: 0; }

body.setup { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
body.setup .card { max-width: 480px; background: var(--panel-solid); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--border); }
  .side .brand { padding: 4px 8px; }
  .nav-btn .nav-count { display: none; }
  .side-foot { display: none; }
  .main { padding: 18px 16px 60px; }
  .two, .grid.halves { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
}

/* ------------------------------------------------ Dashboard-Themes (/app)
   Aktiv nur im Dashboard. body.theme-claude = Warm hell; zusätzlich body.theme-claude-dark = Warm dunkel.
   Ohne Klasse bleibt das ursprüngliche dunkle FancyAgent-Design. Alle Farben laufen über Variablen. */
body.theme-claude {
  --bg: #faf9f5;
  --bg-2: #f5f4ee;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --panel-2: #f5f4ee;
  --input: #ffffff;
  --border: #e6e3d8;
  --border-strong: #d4d0c2;
  --text: #141413;
  --text-2: #3d3d3a;
  --muted: #6b6a64;
  --faint: #8e8b82;
  --accent: #c96442;
  --accent-2: #d97757;
  --accent-3: #b4522f;
  --accent-soft: rgba(201, 100, 66, 0.12);
  --ok: #2e7d4f;
  --warn: #a16207;
  --bad: #b42318;
  --info: #2f6db5;
  --ok-soft: rgba(46, 125, 79, 0.1);
  --warn-soft: rgba(161, 98, 7, 0.1);
  --bad-soft: rgba(180, 35, 24, 0.08);
  --info-soft: rgba(47, 109, 181, 0.1);
  --badge-bg: rgba(20, 20, 19, 0.06);
  --warn-text: #92590a;
  --surface: #ffffff;
  --hover: rgba(20, 20, 19, 0.05);
  --row-hover: rgba(20, 20, 19, 0.03);
  --shadow: 0 1px 2px rgba(20, 20, 19, 0.04);
  --shadow-lg: 0 12px 32px rgba(20, 20, 19, 0.14);
  --overlay: rgba(20, 20, 19, 0.32);
  --accent-hover: #b5532f;
  --on-accent: #ffffff;
  --placeholder: #9b9890;
  --ring: rgba(201, 100, 66, 0.18);
  --meter-track: rgba(20, 20, 19, 0.07);
  --accent-glow: rgba(201, 100, 66, 0.14);
  --hl-start: rgba(201, 100, 66, 0.08);
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.theme-claude.theme-claude-dark {
  --bg: #262624;
  --bg-2: #1f1e1d;
  --panel: #30302e;
  --panel-solid: #30302e;
  --panel-2: #3a3936;
  --input: #262624;
  --border: #41403d;
  --border-strong: #55534e;
  --text: #f0eee6;
  --text-2: #d4d1c6;
  --muted: #a8a59a;
  --faint: #8a877d;
  --accent: #d97757;
  --accent-2: #e8906f;
  --accent-3: #e8906f;
  --accent-soft: rgba(217, 119, 87, 0.16);
  --ok: #7fc99a;
  --warn: #e0b04a;
  --bad: #f08a80;
  --info: #8ab4f0;
  --ok-soft: rgba(127, 201, 154, 0.14);
  --warn-soft: rgba(224, 176, 74, 0.14);
  --bad-soft: rgba(240, 138, 128, 0.14);
  --info-soft: rgba(138, 180, 240, 0.14);
  --badge-bg: rgba(240, 238, 230, 0.08);
  --warn-text: #e0b04a;
  --surface: #30302e;
  --hover: rgba(240, 238, 230, 0.06);
  --row-hover: rgba(240, 238, 230, 0.04);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  --overlay: rgba(0, 0, 0, 0.55);
  --accent-hover: #e38a68;
  --on-accent: #1f1e1d;
  --placeholder: #7d7a71;
  --ring: rgba(217, 119, 87, 0.25);
  --meter-track: rgba(240, 238, 230, 0.08);
  --accent-glow: rgba(217, 119, 87, 0.18);
  --hl-start: rgba(217, 119, 87, 0.12);
  color-scheme: dark;
}
body.theme-claude h1, body.theme-claude .page-head h1 { font-family: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -0.01em; color: var(--text); }
body.theme-claude a { color: var(--accent-3); }
body.theme-claude .brand { color: var(--text); }
body.theme-claude .side { background: var(--bg-2); border-right: 1px solid var(--border); }
body.theme-claude .side-foot { border-top-color: var(--border); }
body.theme-claude .main { background: var(--bg); }
body.theme-claude .nav-btn { color: var(--text-2); border-radius: 10px; }
body.theme-claude .nav-btn:hover { background: var(--hover); color: var(--text); }
body.theme-claude .nav-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow), inset 0 0 0 1px var(--border); }
body.theme-claude .nav-btn .pdot { background: var(--accent); }
body.theme-claude .side .proj-head { color: var(--muted); }
body.theme-claude .card, body.theme-claude .agent-card, body.theme-claude .chat, body.theme-claude .highlight-card { box-shadow: var(--shadow); border-radius: 14px; }
body.theme-claude .highlight-card { background: linear-gradient(135deg, var(--hl-start), var(--surface) 70%); border-color: var(--accent-soft); }
body.theme-claude .agent-card.working { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-glow), 0 8px 24px var(--shadow-lg); }
body.theme-claude .agent-card .status, body.theme-claude .prompt-step-mini, body.theme-claude .chat-form { background: var(--bg-2); }
body.theme-claude .msg .bubble { background: var(--surface); }
body.theme-claude .msg.dm .bubble { border-color: rgba(217, 119, 6, 0.35); }
body.theme-claude .checklist li { background: var(--surface); }
body.theme-claude .col { background: var(--bg-2); }
body.theme-claude .perks li { color: var(--text-2); }
body.theme-claude .meter { background: var(--meter-track); }
body.theme-claude .meter > i { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
body.theme-claude .prompt-pre-wrap { background: var(--bg-2); color: var(--text); border-color: var(--border); }
body.theme-claude .file-list button:hover, body.theme-claude .file-list button.active { background: var(--accent-soft); color: var(--text); }
body.theme-claude .tabs-bar button.active { color: var(--text); border-bottom-color: var(--accent); }
body.theme-claude tr.click:hover td { background: var(--row-hover); }
body.theme-claude .stat::after { background: radial-gradient(circle, var(--accent-glow), transparent 70%); }
body.theme-claude .overlay { background: var(--overlay); backdrop-filter: none; }
body.theme-claude .btn { background: var(--surface); border-color: var(--border-strong); color: var(--text); border-radius: 10px; box-shadow: var(--shadow); }
body.theme-claude .btn:hover { background: var(--bg-2); }
body.theme-claude .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: none; }
body.theme-claude .btn.primary:hover { background: var(--accent-hover); }
body.theme-claude .btn-outline:hover { background: var(--bg-2); }
body.theme-claude input, body.theme-claude select, body.theme-claude textarea { background-color: var(--input); color: var(--text); border-color: var(--border-strong); border-radius: 10px; }
body.theme-claude input::placeholder, body.theme-claude textarea::placeholder { color: var(--placeholder); }
body.theme-claude input:focus, body.theme-claude select:focus, body.theme-claude textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); outline: none; }
body.theme-claude .badge { background: var(--badge-bg); color: var(--text-2); }
body.theme-claude .badge.ok { color: var(--ok); background: var(--ok-soft); }
body.theme-claude .badge.warn { color: var(--warn-text); background: var(--warn-soft); }
body.theme-claude .badge.bad { color: var(--bad); background: var(--bad-soft); }
body.theme-claude .badge.info { color: var(--info); background: var(--info-soft); }
body.theme-claude .badge.accent { color: var(--accent-3); background: var(--accent-soft); }
body.theme-claude .toast { background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
body.theme-claude .theme-select { max-width: 100%; font-size: 12.5px; padding: 6px 8px; margin: 0 0 8px; }
