:root {
  color-scheme: dark;
  --bg: #0f1110;
  --bg-2: #151816;
  --surface: #1d211e;
  --surface-2: #252b26;
  --surface-3: #2d342f;
  --line: #374038;
  --line-strong: #536154;
  --text: #edf1ea;
  --muted: #a8b2a7;
  --dim: #727e72;
  --ink: #050706;
  --accent: #c7f36a;
  --accent-2: #83dba1;
  --danger: #ff867f;
  --warning: #f3c96a;
  --pro: #e8d6ff;
  --pro-bg: #2d2440;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --mono: "SF Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "SF Pro Display", "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 18% 8%, rgba(199, 243, 106, 0.12), transparent 32rem),
    radial-gradient(circle at 88% 4%, rgba(131, 219, 161, 0.08), transparent 30rem),
    linear-gradient(135deg, var(--bg), #10140f 54%, #0d100e);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
  background-image:
    radial-gradient(circle at 12px 12px, rgba(255,255,255,.16) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

code,
kbd,
.meta {
  font-family: var(--mono);
}

code {
  border: 1px solid rgba(199, 243, 106, 0.28);
  border-radius: 5px;
  background: rgba(199, 243, 106, 0.08);
  color: var(--accent);
  padding: 1px 5px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 14px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid rgba(83, 97, 84, 0.58);
  background: rgba(15, 17, 16, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand small {
  display: block;
  max-width: 190px;
  overflow: hidden;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 30px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-mark span {
  position: absolute;
  background: var(--accent);
  box-shadow: inset 0 -6px 0 rgba(5, 7, 6, 0.16);
}

.brand-mark span:nth-child(1) {
  left: 5px;
  bottom: 1px;
  width: 24px;
  height: 20px;
  border-radius: 13px 13px 9px 9px;
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(3) {
  top: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.brand-mark span:nth-child(2) { left: 2px; }
.brand-mark span:nth-child(3) { right: 2px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar { display: none; }

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  outline: none;
}

.nav a.active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

.badge,
.pro-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.3;
}

.badge {
  background: rgba(243, 201, 106, 0.16);
  color: var(--warning);
}

.pro-chip {
  background: var(--pro-bg);
  color: var(--pro);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 0 11px;
  font-size: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
}

.dot.online {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(199, 243, 106, 0.1);
}

.auth-control {
  display: inline-flex;
  align-items: center;
}

.auth-signin {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(199, 243, 106, 0.9);
  border-radius: 9px;
  background: var(--accent);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 760;
  font-size: 12px;
  text-decoration: none;
  transition: background 160ms var(--ease);
}

.auth-signin:hover,
.auth-signin:focus-visible {
  background: #d9ff83;
  outline: none;
}

.auth-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 4px 6px 4px 10px;
  font-size: 12px;
}

.auth-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.auth-user button {
  padding: 5px 9px;
  font-size: 11px;
}

main {
  display: grid;
  grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 54px);
  width: min(1420px, calc(100vw - 36px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) 0 80px;
}

.tips-panel {
  position: sticky;
  top: 104px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(29, 33, 30, 0.72);
  box-shadow: var(--shadow);
  padding: 14px;
}

.panel-label,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.tip-list {
  display: grid;
  gap: 8px;
}

.tip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  padding: 10px 11px;
  text-align: left;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}

.tip:hover,
.tip:focus-visible,
.tip.active {
  border-color: var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  outline: none;
}

.tip:active {
  transform: translateY(1px);
}

.tip strong {
  align-self: start;
  border-radius: 5px;
  background: var(--pro-bg);
  color: var(--pro);
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 5px;
}

.workspace {
  min-width: 0;
}

.view {
  min-width: 0;
}

.view-head {
  margin-bottom: 24px;
}

.view-head.split,
.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.view-head h1 {
  margin: 0;
  max-width: 780px;
  color: var(--text);
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-wrap: balance;
}

.view-head p:not(.section-kicker) {
  max-width: 660px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.head-meter {
  width: min(230px, 32vw);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  padding: 14px;
}

.head-meter span {
  display: block;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
}

.head-meter strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.command-surface {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  padding: 16px;
  box-shadow: var(--shadow);
}

.command-surface > label,
.field-inline span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

textarea,
input[type="text"],
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(5, 7, 6, 0.34);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

textarea::placeholder,
input::placeholder {
  color: #8b968b;
}

textarea:focus,
input:focus,
select:focus {
  border-color: rgba(199, 243, 106, 0.65);
  box-shadow: 0 0 0 3px rgba(199, 243, 106, 0.08);
}

.control-row,
.reply-bar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.field-inline {
  display: grid;
  gap: 5px;
  flex: 1 1 220px;
}

.field-inline.compact {
  flex: 0 1 160px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  color: var(--muted);
  white-space: nowrap;
}

button {
  border: 1px solid rgba(199, 243, 106, 0.9);
  border-radius: 9px;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 760;
  cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}

button:hover,
button:focus-visible {
  background: #d9ff83;
  outline: none;
}

button:active {
  transform: translateY(1px) scale(0.99);
}

button.secondary,
button.quiet,
button.link {
  border-color: var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

button.secondary:hover,
button.quiet:hover,
button.link:hover,
button.secondary:focus-visible,
button.quiet:focus-visible,
button.link:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.07);
}

button.link {
  padding: 6px 0;
  border: none;
  background: transparent;
  color: var(--accent);
}

.upgrade-button {
  border-color: rgba(232, 214, 255, 0.8);
  background: var(--pro);
  color: #140f20;
}

.stack {
  display: grid;
  gap: 10px;
}

/* settings view */
.settings-block {
  margin: 0 0 26px;
}
.settings-block .section-kicker {
  margin-bottom: 10px;
}
.settings-h2 {
  margin: 0 0 4px;
  color: var(--text);
  font-family: var(--mono, inherit);
  font-size: 15px;
  font-weight: 600;
}
#settingsDefaultsForm {
  margin-bottom: 26px;
}

.row-card,
.resource-card,
.connection-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(29, 33, 30, 0.76);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.row-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.row-card.clickable {
  cursor: pointer;
}

.row-card:hover,
.resource-card:hover,
.connection-card:hover {
  border-color: var(--line-strong);
  background: rgba(37, 43, 38, 0.9);
}

.row-card.clickable:active {
  transform: scale(0.995);
}

.row-card .body {
  flex: 1;
  min-width: 0;
}

.title {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.row-card pre {
  margin: 10px 0 0;
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 7, 6, 0.28);
  padding: 10px;
  color: var(--muted);
  white-space: pre-wrap;
}

.empty-note {
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 6px;
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag.green { background: rgba(199, 243, 106, 0.13); color: var(--accent); }
.tag.red { background: rgba(255, 134, 127, 0.12); color: var(--danger); }
.tag.yellow { background: rgba(243, 201, 106, 0.13); color: var(--warning); }
.tag.gray { background: rgba(255, 255, 255, 0.05); color: var(--muted); }

.detail-head h1 {
  margin-top: 6px;
  font-size: clamp(28px, 5vw, 54px);
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.transcript,
.messages {
  display: grid;
  gap: 10px;
  min-height: 160px;
  margin-bottom: 18px;
}

.message {
  width: fit-content;
  max-width: min(760px, 88%);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(29, 33, 30, 0.78);
  padding: 11px 13px;
  white-space: pre-wrap;
  word-break: break-word;
}

.message.user {
  justify-self: end;
  border-color: rgba(199, 243, 106, 0.28);
  background: rgba(199, 243, 106, 0.1);
  color: var(--text);
}

.message.error,
.message.pet.error {
  border-color: rgba(255, 134, 127, 0.38);
  color: var(--danger);
}

.tool-line {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
}

.reply-bar {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(29, 33, 30, 0.86);
  padding: 10px;
}

.reply-bar input {
  flex: 1 1 260px;
}

.resource-grid,
.connection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.resource-card,
.connection-card {
  min-height: 148px;
  padding: 15px;
}

.resource-card .topline,
.connection-card .topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.resource-card h3,
.connection-card h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.resource-card p,
.connection-card p {
  margin: 0;
  color: var(--muted);
}

.resource-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
  margin: 16px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.resource-card dt {
  color: var(--dim);
}

.resource-card dd {
  margin: 0;
  color: var(--text);
}

.pro-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(232, 214, 255, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45, 36, 64, 0.9), rgba(29, 33, 30, 0.78));
  padding: 14px 16px;
}

.pro-banner strong,
.pro-banner span {
  display: block;
}

.pro-banner strong {
  color: var(--pro);
}

.pro-banner span {
  margin-top: 3px;
  color: var(--muted);
}

.connection-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
}

.connection-copy {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  padding: 18px;
}

.connection-copy h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.connection-copy p {
  margin: 12px 0 0;
  color: var(--muted);
}

.connection-card {
  display: grid;
  gap: 14px;
}

.connection-card.locked {
  position: relative;
}

.connection-card.locked::after {
  content: "Locked";
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 5px;
  background: var(--pro-bg);
  color: var(--pro);
  padding: 3px 6px;
  font-family: var(--mono);
  font-size: 10px;
}

.connection-card .connect-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.connection-card .connect-actions button {
  padding: 8px 11px;
}

.upgrade-prompt {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: min(390px, calc(100vw - 32px));
  border: 1px solid rgba(232, 214, 255, 0.34);
  border-radius: 14px;
  background: rgba(24, 21, 31, 0.96);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.46);
  padding: 18px;
}

.upgrade-prompt h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.upgrade-prompt p:not(.panel-label) {
  margin: 8px 0 0;
  color: var(--muted);
}

.prompt-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 28px;
  height: 28px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.prompt-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
  }

  main {
    grid-template-columns: 1fr;
  }

  .tips-panel {
    position: static;
  }

  .tip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .connection-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: auto;
  }

  .status-pill {
    display: none;
  }

  main {
    width: min(100% - 24px, 1420px);
    padding-top: 24px;
  }

  .tip-list {
    grid-template-columns: 1fr;
  }

  .view-head.split,
  .detail-head,
  .pro-banner {
    display: grid;
  }

  .view-head h1 {
    font-size: 42px;
  }

  .head-meter {
    width: 100%;
  }

  .control-row,
  .reply-bar {
    align-items: stretch;
  }

  .field-inline,
  .field-inline.compact,
  .reply-bar input {
    flex-basis: 100%;
  }

  .control-row button,
  .reply-bar button,
  .pro-banner button {
    width: 100%;
  }

  .connection-card .connect-actions button {
    min-height: 40px;
    padding: 8px 14px;
  }
}

/* LCARS code harness: one warm primary channel, lavender for orientation only. */
:root { --bg:#050505; --surface:#0d0d0d; --surface-2:#181818; --text:#f4f4f2; --muted:#b0b0ad; --dim:#777774; --ink:#080808; --accent:#e99b63; --locator:#a5a5a1; --danger:#d5d5d0; --warning:#c3c3bf; --sans:"Avenir Next","SF Pro Display",-apple-system,sans-serif; --mono:"SF Mono",Menlo,monospace; }
body.light { --bg:#f4f4f2; --surface:#ffffff; --surface-2:#e8e8e5; --text:#080808; --muted:#555552; --dim:#777774; --ink:#f4f4f2; --accent:#b95f32; --locator:#686864; --danger:#4b4b48; --warning:#5f5f5b; }
body { background:var(--bg); font-size:13px; } body::before { display:none; }
.topbar { position:relative; min-height:82px; grid-template-columns:252px 1fr auto auto; gap:0; padding:0 20px 0 0; border:0; background:var(--bg); backdrop-filter:none; }
.topbar::before { content:""; position:absolute; inset:0 auto 0 0; z-index:0; width:272px; background:var(--accent); border-radius:0 0 38px 0; }.topbar::after { content:""; position:absolute; z-index:0; top:0; left:292px; right:0; height:16px; background:var(--locator); border-radius:0 0 0 16px; }
.brand,.nav,.status-pill { z-index:1; }.brand { height:100%; padding:19px 22px; color:var(--ink); }.brand strong { font-size:13px; font-weight:800; letter-spacing:.1em; }.brand small { color:#5a3730; font-size:9px; }.brand-mark span { background:var(--ink); box-shadow:none; }
.nav { justify-content:center; gap:3px; padding:23px 14px 0; }.nav a { min-height:33px; border:0; border-radius:0 0 14px 0; background:var(--surface-2); color:var(--text); padding:8px 11px; font-family:var(--mono); font-size:9px; letter-spacing:.06em; }.nav a:hover,.nav a:focus-visible { background:var(--locator); color:var(--ink); }.nav a.active { background:var(--accent); color:var(--ink); }
.badge,.pro-chip { border-radius:0 0 4px 0; background:var(--locator); color:var(--ink); font-size:8px; }.theme-toggle { align-self:start; margin-top:23px; min-height:33px; border-radius:0; background:var(--surface-2); color:var(--text); padding:8px 10px; font-size:9px; }.theme-toggle:hover,.theme-toggle:focus-visible { background:var(--locator); color:var(--ink); }.status-pill { margin-top:23px; min-height:33px; border:0; border-radius:0 0 0 16px; background:var(--accent); color:var(--ink); padding:0 14px; font-family:var(--mono); font-size:9px; letter-spacing:.05em; }.dot,.dot.online { background:var(--ink); box-shadow:none; }
.auth-control { align-self:start; margin-top:23px; }.auth-signin { min-height:33px; border:0; border-radius:0 0 0 16px; background:var(--accent); color:var(--ink); padding:0 14px; font-family:var(--mono); font-size:9px; letter-spacing:.05em; }.auth-signin:hover,.auth-signin:focus-visible { background:var(--locator); color:var(--ink); }.auth-user { min-height:33px; border:0; border-radius:0 0 0 16px; background:var(--surface-2); color:var(--text); padding:4px 6px 4px 12px; font-family:var(--mono); font-size:9px; }.auth-user button { border-radius:0; }
main { grid-template-columns:222px minmax(0,1fr); gap:28px; width:min(1460px,calc(100vw - 40px)); padding:26px 0 60px; }.tips-panel { top:18px; border:0; border-radius:0; background:transparent; box-shadow:none; padding:0; }.panel-label,.section-kicker { color:var(--locator); font-family:var(--mono); font-size:9px; letter-spacing:.12em; }
.tip-list { gap:3px; }.tip { min-height:56px; border:0; border-left:13px solid var(--accent); border-radius:0 0 18px 0; background:var(--surface-2); color:var(--text); padding:10px 12px; font-size:11px; line-height:1.35; }.tip:nth-child(n) { border-color:var(--accent); }.tip:hover,.tip:focus-visible,.tip.active { border-color:var(--locator); background:var(--locator); color:var(--ink); }.tip strong { border-radius:0; background:transparent; color:inherit; padding:0; }
.view-head { position:relative; margin:0 0 20px; padding:17px 26px 19px; background:var(--surface); border-left:14px solid var(--accent); border-radius:0 0 32px 0; }.view-head::after { content:""; position:absolute; left:0; bottom:-14px; width:68px; height:8px; background:var(--locator); border-radius:0 0 8px 0; }.view-head h1 { color:var(--text); font-family:var(--mono); font-size:clamp(35px,5.2vw,66px); font-weight:600; letter-spacing:-.07em; line-height:.88; text-transform:uppercase; }.view-head p:not(.section-kicker) { color:var(--muted); font-size:13px; }.head-meter { align-self:center; border:0; border-radius:0 0 16px 0; background:#211d23; color:var(--text); padding:10px 14px; }.head-meter span { color:var(--locator); }.head-meter strong { font-family:var(--mono); font-size:11px; }
.command-surface { gap:9px; margin-top:34px; margin-bottom:18px; border:0; border-left:16px solid var(--accent); border-radius:0 0 28px 0; background:var(--surface); box-shadow:none; padding:16px 18px; }.command-surface > label,.field-inline span { color:var(--locator); font-family:var(--mono); font-size:9px; letter-spacing:.1em; text-transform:uppercase; } textarea,input[type="text"],select { border:0; border-radius:0; background:#000; color:var(--text); padding:11px 12px; font-family:var(--mono); font-size:12px; } textarea:focus,input:focus,select:focus { box-shadow:inset 3px 0 0 var(--locator); }
button { border:0; border-radius:0 0 12px 0; background:var(--accent); color:var(--ink); font-family:var(--mono); font-size:10px; letter-spacing:.05em; } button:hover,button:focus-visible { background:#f8c095; } button.secondary,button.quiet,button.link { border:0; border-radius:0 0 10px 0; background:#26212a; color:var(--text); } button.secondary:hover,button.quiet:hover,button.link:hover,button.secondary:focus-visible,button.quiet:focus-visible,button.link:focus-visible { border:0; background:#393141; }.upgrade-button { background:var(--locator); }
.row-card,.resource-card,.connection-card { border:0; border-left:10px solid var(--accent); border-radius:0 0 20px 0; background:var(--surface); box-shadow:none; }.row-card { min-height:68px; padding:13px 16px; }.row-card:nth-child(n) { border-color:var(--accent); }.row-card:hover,.resource-card:hover,.connection-card:hover { border-color:var(--locator); background:#111015; }.title { font-family:var(--mono); font-size:12px; font-weight:600; }.meta { color:var(--dim); font-size:10px; }.tag { border-radius:0; color:var(--ink)!important; font-size:8px; }.tag.green,.tag.yellow { background:var(--accent); }.tag.red { background:var(--danger); }.tag.gray { background:#a79c94; }.empty-note { border:1px solid #383039; border-radius:0 0 18px 0; background:var(--surface); color:var(--muted); font-family:var(--mono); text-align:left; }
.resource-grid,.connection-grid { gap:8px; }.resource-card,.connection-card { min-height:145px; padding:15px; }.resource-card h3,.connection-card h3,.connection-copy h2 { font-family:var(--mono); font-size:13px; }.resource-card p,.connection-card p,.resource-card dl { color:var(--muted); }.resource-card dt { color:var(--dim); }.transcript,.messages { gap:6px; margin-top:34px; }.message { border:0; border-left:7px solid var(--locator); border-radius:0 0 14px 0; background:var(--surface); font-family:var(--mono); font-size:12px; }.message.user { border-color:var(--accent); background:#191419; }.tool-line { border-left:4px solid var(--accent); color:var(--muted); }.reply-bar { border:0; border-left:12px solid var(--accent); border-radius:0 0 20px 0; background:var(--surface); }.reply-bar input { background:#000; }.pro-banner { border:0; border-left:12px solid var(--locator); border-radius:0 0 20px 0; background:#151117; }.pro-banner strong { color:var(--text); }.connection-copy { border:0; border-left:10px solid var(--accent); border-radius:0 0 20px 0; background:var(--surface); }.upgrade-prompt { border:0; border-left:10px solid var(--locator); border-radius:0 0 20px 0; background:#151117; box-shadow:none; }
body.light textarea,body.light input[type="text"],body.light select,body.light .reply-bar input { background:#f4f4f2; color:#080808; } body.light .message.user,body.light .pro-banner,body.light .upgrade-prompt { background:#e8e8e5; }
.knowledge-results { margin-top:18px; }.knowledge-match { align-items:flex-start; }.knowledge-match p { margin:10px 0 0; color:var(--muted); white-space:pre-wrap; }.knowledge-results .empty-note { margin-top:0; }.control-row > .meta:first-child { margin-right:auto; }
@media (max-width:980px) { .topbar { grid-template-columns:1fr auto auto; padding-right:14px; }.topbar::before { width:250px; }.nav { padding-top:7px; justify-content:flex-start; }.status-pill,.theme-toggle { margin-top:0; } main { grid-template-columns:minmax(0,1fr); width:calc(100vw - 24px); }.tips-panel { position:static; }.tip-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) { .topbar { min-height:124px; }.topbar::before { width:210px; }.brand { padding:16px; }.theme-toggle { margin-top:12px; }.nav { gap:3px; padding:7px 8px 0; }.nav a { padding:7px 8px; font-size:8px; }.view-head,.view-head.split { display:grid; border-left-width:10px; padding:14px 16px; }.view-head h1 { font-size:40px; }.head-meter { width:100%; margin-top:12px; }.command-surface { border-left-width:10px; padding:14px; }.control-row { display:grid; grid-template-columns:minmax(0,1fr); align-items:stretch; }.field-inline,.field-inline.compact { width:100%; }.tip-list,.resource-grid,.connection-grid { grid-template-columns:1fr; } }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
