:root {
  color-scheme: light;
  --bg: #080a0d;
  --panel: #101319;
  --panel-2: #151920;
  --text: #f4f6f8;
  --muted: #8c949f;
  --line: rgba(255, 255, 255, 0.09);
  --hot: #526e49;
  --hot-2: #405d39;
  --shadow: 0 16px 48px rgba(56, 64, 45, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 78% 5%, rgba(255, 107, 53, 0.12), transparent 30rem),
    radial-gradient(circle at 10% 80%, rgba(92, 108, 255, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
}

button, input { font: inherit; }

select { font: inherit; }

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

[hidden] { display: none !important; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  z-index: 20;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 460px);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(22, 26, 33, 0.96), rgba(11, 13, 17, 0.96));
  box-shadow: var(--shadow);
}

.mark, .brand-mark {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--hot), var(--hot-2));
  color: #111;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.22);
}

.mark {
  width: 54px;
  height: 54px;
  margin-bottom: 34px;
  border-radius: 17px;
  font-size: 1.5rem;
  transform: rotate(-5deg);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--hot-2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.login-card h1, .headline h1 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 1;
}

.login-card h1 { font-size: clamp(2.8rem, 9vw, 4.6rem); }

.login-copy {
  margin: 16px 0 34px;
  color: var(--muted);
  font-size: 1rem;
}

label {
  display: block;
  margin-bottom: 9px;
  color: #c8cdd4;
  font-size: 0.875rem;
  font-weight: 650;
}

.login-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: #090b0e;
  color: var(--text);
}

input:focus { border-color: var(--hot); box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.14); }

button {
  border: 0;
  border-radius: 13px;
  cursor: pointer;
}

.login-row button {
  padding: 0 20px;
  background: var(--text);
  color: #090a0c;
  font-weight: 800;
}

.error {
  margin: 14px 0 0;
  color: #ff8a7a;
  font-size: 0.9rem;
}

.portal { min-height: 100vh; }

.topbar {
  height: 82px;
  padding: 0 clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 13, 0.78);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.brand strong, .brand small { display: block; }

.brand strong { font-size: 0.92rem; letter-spacing: 0.12em; }

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.top-actions { display: flex; align-items: center; gap: 18px; }

.system-state {
  color: #b9c0c9;
  font-size: 0.82rem;
}

.system-state i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #4ee096;
  box-shadow: 0 0 12px rgba(78, 224, 150, 0.7);
}

.ghost-button {
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.workspace {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 108px) 0 72px;
}

.headline {
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 52px;
}

.headline h1 {
  max-width: 720px;
  font-size: clamp(2.8rem, 7vw, 6.3rem);
}

.head-symbol {
  width: clamp(116px, 16vw, 210px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background:
    linear-gradient(145deg, rgba(255, 107, 53, 0.18), transparent 55%),
    var(--panel);
  transform: rotate(6deg);
  box-shadow: inset 0 0 40px rgba(255,255,255,0.025);
}

.head-symbol span {
  color: var(--hot-2);
  font-size: clamp(1.3rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  transform: rotate(-6deg);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.section-head span { color: var(--muted); font-size: 0.84rem; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(23, 27, 34, 0.94), rgba(13, 16, 21, 0.94));
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-card.enabled:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: linear-gradient(150deg, rgba(29, 34, 42, 0.98), rgba(14, 17, 22, 0.98));
}

.project-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -54px;
  bottom: -60px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.08;
  filter: blur(2px);
}

.project-card.disabled { cursor: default; opacity: 0.72; }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; }

.project-icon {
  font-size: 1.65rem;
  line-height: 1;
}

.badge {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.025);
  font-size: 0.72rem;
  font-weight: 700;
}

.project-card.enabled .badge { color: var(--accent); }

.project-card h3 {
  margin: auto 0 9px;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
}

.project-card p {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.open-label {
  margin-top: 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.panel-error {
  padding: 14px;
  border: 1px solid rgba(255, 100, 80, 0.28);
  border-radius: 12px;
  background: rgba(255, 100, 80, 0.08);
}

footer {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: 24px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 860px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-symbol { display: none; }
}

@media (max-width: 580px) {
  .topbar { height: 72px; padding: 0 18px; }
  .system-state { display: none; }
  .workspace { width: min(100% - 28px, 1240px); padding-top: 50px; }
  .headline { min-height: 170px; padding-bottom: 38px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 204px; }
  .login-card { padding: 30px 24px; }
  .login-row { grid-template-columns: 1fr; }
  .login-row button { min-height: 48px; }
  footer { width: min(100% - 28px, 1240px); flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card { transition: none; }
}

.command-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(28px, 5vw, 72px);
  margin-bottom: 58px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(255, 122, 69, 0.3);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.1), transparent 42%),
    rgba(16, 19, 25, 0.92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.command-copy h2,
.tasks-section h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
}

.command-copy > p:last-child {
  max-width: 360px;
  margin: 15px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

#command-form label {
  margin-bottom: 10px;
}

#command-input {
  width: 100%;
  min-height: 126px;
  resize: vertical;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: #090b0e;
  color: var(--text);
  line-height: 1.55;
}

#command-input:focus {
  border-color: var(--hot);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.14);
}

.command-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
}

.privacy-options {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.privacy-options legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.privacy-options label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.privacy-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.privacy-options span {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
}

.privacy-options input:checked + span {
  border-color: rgba(255, 122, 69, 0.55);
  background: rgba(255, 107, 53, 0.13);
  color: var(--text);
}

.primary-button {
  min-height: 44px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--hot), var(--hot-2));
  color: #111;
  font-weight: 850;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.command-hint {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.tasks-section {
  margin-bottom: 64px;
}

.tasks-section .section-head {
  align-items: flex-end;
}

.tasks-section .section-head .eyebrow {
  margin-bottom: 8px;
}

.task-list {
  display: grid;
  gap: 11px;
}

.task-card,
.task-empty {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(16, 19, 25, 0.78);
}

.task-card {
  padding: 18px 20px;
  border-left: 3px solid var(--hot);
}

.task-card.status-done { border-left-color: #4ee096; }
.task-card.status-failed { border-left-color: #ff6f61; }
.task-card.status-running { border-left-color: #6ea8fe; }
.task-card.status-review { border-left-color: #f7c760; }

.task-head,
.task-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.task-project,
.task-status {
  font-size: 0.78rem;
  font-weight: 800;
}

.task-project {
  color: var(--hot-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.task-status {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cdd2d9;
}

.task-card h3 {
  margin: 13px 0 8px;
  font-size: 1rem;
  line-height: 1.45;
}

.task-route {
  margin: 0;
  color: #aeb5be;
  font-size: 0.86rem;
}

.task-result {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(78, 224, 150, 0.16);
  border-radius: 12px;
  background: rgba(78, 224, 150, 0.055);
}

.status-failed .task-result {
  border-color: rgba(255, 111, 97, 0.2);
  background: rgba(255, 111, 97, 0.06);
}

.task-result strong {
  color: #77e8ae;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status-failed .task-result strong { color: #ff8a7a; }

.task-result p {
  margin: 6px 0 0;
  color: #cbd1d8;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.task-meta {
  justify-content: flex-start;
  margin-top: 13px;
  color: #777f8a;
  font-size: 0.77rem;
}

.task-empty {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .command-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .command-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .tasks-section .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
}

/* Live task telemetry */
.live-head {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
}

#live-refresh { color: #77e8ae; }

#live-refresh i,
.task-progress i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #4ee096;
}

.task-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.task-summary .detail-metric { min-height: 78px; }

.task-progress {
  display: flex;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(110, 168, 254, 0.16);
  border-radius: 10px;
  background: rgba(110, 168, 254, 0.05);
  color: #bfc9d8;
  font-size: 0.84rem;
  line-height: 1.45;
}

.task-progress i:not(.pulse) { background: #626b77; }

.pulse {
  box-shadow: 0 0 0 rgba(78, 224, 150, 0.5);
  animation: live-pulse 1.6s infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(78, 224, 150, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(78, 224, 150, 0); }
  100% { box-shadow: 0 0 0 0 rgba(78, 224, 150, 0); }
}

.task-details {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.task-details summary {
  padding: 14px 0 2px;
  color: #cdd3da;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 750;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.detail-metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.metric-label,
.metric-value,
.metric-hint { display: block; }

.metric-label {
  color: #777f8a;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric-value {
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: #edf1f5;
  font-size: 0.9rem;
}

.metric-hint {
  margin-top: 5px;
  color: #777f8a;
  font-size: 0.72rem;
  line-height: 1.35;
}

.detail-heading {
  margin: 20px 0 10px;
  color: #cdd3da;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.task-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  min-height: 48px;
  position: relative;
}

.timeline-item::before {
  content: "";
  width: 1px;
  position: absolute;
  left: 3px;
  top: 12px;
  bottom: -2px;
  background: var(--line);
}

.timeline-item:last-child::before { display: none; }

.timeline-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: #6ea8fe;
  z-index: 1;
}

.timeline-item.active .timeline-dot {
  background: #4ee096;
  animation: live-pulse 1.6s infinite;
}

.timeline-item.level-error .timeline-dot { background: #ff6f61; }
.timeline-item.level-warning .timeline-dot { background: #f7c760; }
.timeline-item.muted .timeline-dot { background: #626b77; }

.timeline-copy strong,
.timeline-copy time { display: block; }

.timeline-copy strong {
  color: #bec5ce;
  font-size: 0.82rem;
  font-weight: 620;
  line-height: 1.45;
}

.timeline-copy time {
  margin-top: 3px;
  color: #68717d;
  font-size: 0.7rem;
}

.task-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.task-button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: #cfd5dc;
  font-size: 0.78rem;
  font-weight: 700;
}

.task-button:hover { border-color: rgba(255, 122, 69, 0.45); }
.task-button.approve {
  border-color: rgba(78, 224, 150, 0.28);
  background: rgba(78, 224, 150, 0.08);
  color: #77e8ae;
}
.task-button.danger { color: #ff9b8f; }
.task-button:disabled { cursor: wait; opacity: 0.6; }

.task-dialog {
  margin-top: 22px;
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

.chat-output {
  max-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(5, 7, 10, 0.45);
}

.chat-empty {
  margin: 8px;
  color: #777f8a;
  font-size: 0.82rem;
  line-height: 1.5;
}

.chat-message {
  max-width: min(86%, 760px);
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.chat-message.role-user {
  align-self: flex-end;
  border-color: rgba(255, 122, 69, 0.22);
  background: rgba(255, 107, 53, 0.07);
}

.chat-message.role-assistant {
  align-self: flex-start;
  border-color: rgba(78, 224, 150, 0.18);
  background: rgba(78, 224, 150, 0.055);
}

.chat-message.role-error {
  margin-right: auto;
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(119, 30, 30, 0.2);
  color: #ffd1d1;
}

.chat-role,
.chat-time { display: block; }

.chat-role {
  color: #aeb7c2;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chat-content {
  margin: 6px 0 0;
  color: #d7dce2;
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.chat-time {
  margin-top: 7px;
  color: #68717d;
  font-size: 0.68rem;
}

.task-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  margin-top: 9px;
}

.task-chat-input {
  width: 100%;
  min-height: 78px;
  padding: 12px 13px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #090b0e;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}

.task-chat-input:focus {
  border-color: rgba(78, 224, 150, 0.5);
  box-shadow: 0 0 0 3px rgba(78, 224, 150, 0.09);
}

.task-chat-form .task-button { min-height: 44px; }

.chat-privacy {
  margin: 8px 2px 0;
  color: #68717d;
  font-size: 0.7rem;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .live-head { align-items: flex-start; }
  .task-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-grid { grid-template-columns: 1fr; }
  .task-meta { align-items: flex-start; flex-wrap: wrap; }
  .task-chat-form { grid-template-columns: 1fr; }
  .chat-message { max-width: 94%; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse,
  .timeline-item.active .timeline-dot { animation: none; }
}


/* Recorded work status, separate from service health. */
.project-updated { display: block; margin-top: 0.5rem; }
.task-next, .task-updated { font-size: 0.85rem; line-height: 1.5; }
.project-work { overflow-wrap: anywhere; }

/* Shared workspace shell: navigation stays separate from task operations. */
:root { --bg: #f4f3ed; --panel: #fffef9; --text: #29372e; --muted: #5e685a; --line: #d6dacd; }
body { background: var(--bg); }
a { color: var(--hot-2); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 5px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 14px; background: var(--panel); }
.skip-link:focus { top: 12px; }
.sidebar { width: 232px; position: fixed; inset: 0 auto 0 0; padding: 34px 22px 26px; border-right: 1px solid var(--line); background: #e5eadd; display: flex; flex-direction: column; }
.brand { gap: 11px; }
.brand-mark { width: 38px; height: 42px; border-radius: 12px 4px 12px 4px; box-shadow: none; background: #4c6843; color: #fffef9; }
.brand strong { font-size: .86rem; letter-spacing: .09em; }
.brand small { font-size: .54rem; letter-spacing: .1em; }
.nav-label { margin: 58px 12px 16px; color: #606f57; font-size: .65rem; letter-spacing: .16em; font-weight: 700; }
.main-nav { display: grid; gap: 7px; }
.main-nav a { min-height: 48px; display: flex; align-items: center; gap: 15px; padding: 12px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; color: #4f604a; font-size: .88rem; }
.main-nav a span { font-size: .68rem; color: #63775a; }
.main-nav a:hover { background: #dce4d3; color: #29372e; }
.main-nav a[aria-current="page"] { color: #304b29; background: #d2dfc6; border-color: #bfceb2; }
.main-nav a[aria-current="page"] span { color: #4e6844; }
.sidebar-bottom { margin-top: auto; padding: 20px 10px 0; color: #4e6247; font-size: .75rem; }
.sidebar-bottom small { display: block; margin-top: 10px; color: #606e57; font-size: .68rem; }
.sidebar-dot { display: inline-block; width: 6px; height: 6px; background: #4c6843; margin-right: 8px; border-radius: 50%; }
.page-shell { margin-left: 232px; }
.topbar { position: static; height: 80px; padding: 0 44px; background: transparent; color: #5e6e57; font-size: .78rem; backdrop-filter: none; }
.breadcrumb { color: #344730; margin-left: 12px; }
.session-label { color: #5b6b52; font-size: .74rem; }
.ghost-button { border-color: #cbd3bf; color: #4b5d42; border-radius: 8px; }
.ghost-button:hover { background: #dce5d3; }
.ghost-link { display: inline-flex; align-items: center; padding: 10px 13px; border: 1px solid #cbd3bf; border-radius: 8px; color: #465e3b; text-decoration: none; font-size: .8rem; }
.workspace { width: min(1192px, calc(100% - 88px)); padding: 48px 0 24px; }
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.eyebrow { font-size: .64rem; letter-spacing: .1em; margin-bottom: 13px; color: #506d44; }
.welcome h1 { margin: 0; font-size: clamp(2.1rem, 3.4vw, 3.65rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.13; }
.welcome h1 span { color: #657e57; }
.intro { color: var(--muted); font-size: .9rem; line-height: 1.75; margin: 18px 0 0; }
.action-link { display: inline-flex; align-items: center; justify-content: center; gap: 24px; text-decoration: none; white-space: nowrap; border-radius: 9px; min-height: 46px; font-size: .8rem; }
.primary-button { background: #4c6843; color: #fffef9; font-weight: 700; }
.primary-button:hover { background: #3d5735; }
.ai-panel { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px 36px; padding: 30px 32px 0; margin-bottom: 42px; border: 1px solid #c9d4bf; border-radius: 22px; background: #e4ebda; }
.ai-panel h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.035em; font-weight: 600; }
.ai-copy > p:not(.eyebrow) { color: #52634a; font-size: .84rem; line-height: 1.7; max-width: 470px; margin: 13px 0 18px; }
.connection-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; color: #6b542d; padding: 7px 10px; border: 1px solid #dacbaa; border-radius: 6px; background: #f3ead8; }
.connection-badge i { width: 6px; height: 6px; border-radius: 50%; background: #967440; }
.connection-plan { display: flex; align-items: center; justify-content: center; padding: 12px 0; }
.connection-node { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 102px; text-align: center; }
.node-icon { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #b7c9a8; border-radius: 15px; background: #cadaba; color: #38552e; font-size: 1.4rem; font-weight: 700; }
.mac-icon { background: #edf0e5; color: #4f6446; border-color: #bfceb3; }
.connection-node strong { font-size: .78rem; font-weight: 600; }
.connection-node small { color: #576c4d; font-size: .64rem; }
.connection-line { width: 72px; border-top: 1px dashed #9dad8e; position: relative; margin: 0 8px 44px; }
.connection-line span { position: absolute; left: 0; right: 0; top: 8px; text-align: center; color: #5a704f; font-size: .61rem; }
.connection-details { grid-column: 1 / -1; border-top: 1px solid #c6d1bb; }
.connection-details summary { padding: 16px 0; font-size: .75rem; color: #445e3a; cursor: pointer; }
.connection-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 0 0 20px; }
.connection-detail-grid h3 { font-size: .88rem; }
.connection-detail-grid p { color: #52664a; font-size: .8rem; line-height: 1.7; }
.connection-detail-grid code { overflow-wrap: anywhere; color: #344f2b; }
.program-section { margin-bottom: 36px; }
.section-head { gap: 16px; margin-bottom: 18px; align-items: end; }
.section-head h2 { font-size: 1.18rem; letter-spacing: -.025em; font-weight: 600; }
.section-head .eyebrow { margin-bottom: 8px; }
.section-head > span { font-size: .72rem; }
.project-grid { gap: 16px; }
.project-card { min-height: 220px; padding: 24px; border-radius: 16px; background: #fffef9; border-color: #daddd0; }
.project-card.enabled:hover { background: #fafbf5; border-color: #a6b898; transform: translateY(-2px); }
.project-card::after { display: none; }
.project-card.enabled .badge { color: #586d4d; }
.project-card h3 { font-size: 1.03rem; letter-spacing: -.02em; margin: 20px 0 10px; }
.project-card p { color: #626e5a; font-size: .79rem; line-height: 1.7; margin: 0 0 22px; }
.program-icon { display: grid; place-items: center; height: 36px; min-width: 36px; padding: 0 7px; background: #e7eddf; border: 1px solid #d0dcc5; border-radius: 9px; color: #4b663e; font-size: .75rem; font-weight: 700; }
.badge { color: #586d4d; background: transparent; border-color: #d4dccb; font-size: .61rem; padding: 4px 7px; }
.open-label { display: flex; justify-content: space-between; color: #48633b; font-size: .72rem; margin-top: auto; }
.secondary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.secondary-grid .project-card { min-height: 195px; padding: 20px; }
.secondary-grid .project-icon { font-size: 1.3rem; }
.secondary-grid .project-card h3 { font-size: .95rem; }
.secondary-grid .project-card p { font-size: .75rem; }
.workspace-note { display: flex; gap: 15px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
.workspace-note p { color: #5e6e54; font-size: .76rem; line-height: 1.8; margin: 0; }
.workspace-note strong { color: #3b5131; font-weight: 600; }
.workspace-note a { text-underline-offset: 3px; }
.note-icon { color: #6c815e; font-size: 1.5rem; }
footer { width: min(1192px, calc(100% - 88px)); margin: 0 auto; padding: 22px 0; border-top: 1px solid var(--line); font-size: .66rem; color: #617254; }
.tasks-welcome { margin-bottom: 30px; }
.tasks-welcome h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.command-panel { background: #fffef9; border-color: #d0dac5; padding: 28px; border-radius: 14px; margin-bottom: 36px; }
.command-copy h2 { font-size: 1.4rem; }
.command-hint { line-height: 1.7; color: #5a6d4f; }
.task-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.metric-label, .metric-hint, .task-meta, .chat-time, .chat-privacy { color: #5c6c52; }
.task-card, .task-empty { background: #fffef9; }
.task-project { color: #4c6843; }
.login-card { background: #fffef9; border-color: var(--line); }
.mark { color: #fffef9; background: #627d52; box-shadow: none; transform: none; border-radius: 17px; }
.login-row button { background: #4c6843; color: #fffef9; }
label { color: #46543d; }
input, #command-input, .task-chat-input { background: #fffefb; color: #29372e; border-color: #cbd3bf; }
input:focus, #command-input:focus, .task-chat-input:focus { border-color: #728b60; box-shadow: 0 0 0 3px #728b601a; }
.command-panel { box-shadow: 0 5px 22px #39463005; }
.privacy-options input:checked + span { background: #e2ead8; border-color: #a9bc97; color: #364d2b; }
.task-status { color: #425438; background: #e8eddf; }
.task-route, .timeline-copy strong, .task-details summary { color: #53644a; }
.task-result { background: #edf3e6; border-color: #d3e0c7; }
.task-result strong { color: #48663b; }
.task-result p, .chat-content, .metric-value { color: #35452d; }
.detail-metric { background: #fffef9; }
.task-progress { background: #eef1e9; border-color: #d5ddcb; color: #53644a; }
.detail-heading, .chat-role { color: #506344; }
.timeline-copy time, .chat-empty { color: #637456; }
.task-button { color: #4a5d3e; background: #f0f3e9; border-color: #cbd6bf; }
.task-button.approve { color: #3e612f; background: #e6efd9; border-color: #bfcea9; }
.task-button.danger, .error { color: #a34535; }
.panel-error, .status-failed .task-result { background: #f9ede5; border-color: #e5cbbd; }
.status-failed .task-result strong { color: #9e4935; }
.task-card.status-done { border-left-color: #81956b; }
.task-card.status-running { border-left-color: #819d9e; }
.task-card.status-review { border-left-color: #b69a60; }
.task-card.status-failed { border-left-color: #b46f5b; }
.task-progress i:not(.pulse) { background: #97a48c; }
.chat-output { background: #f3f4eb; }
.chat-message { background: #fffef9; }
.chat-message.role-user { background: #e6ecdc; border-color: #cbd8bd; }
.chat-message.role-assistant { background: #fffef9; border-color: #d5deca; }
.chat-message.role-error { background: #f9ede5; border-color: #dfbcad; color: #a34535; }
#live-refresh { color: #536e44; }
#live-refresh i, .task-progress i, .timeline-item.active .timeline-dot { background: #849b70; box-shadow: none; }
.pulse, .timeline-item.active .timeline-dot { animation: none; }
.privacy-options input:focus-visible + span { outline: 2px solid #4c6843; outline-offset: 3px; }
@media (min-width: 1500px) { .workspace { padding-top: 60px; } .welcome { margin-bottom: 42px; } }
@media (max-width: 1150px) { .sidebar { width: 205px; padding-inline: 16px; } .page-shell { margin-left: 205px; } .workspace, footer { width: calc(100% - 48px); } .topbar { padding-inline: 24px; } .secondary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project-card { padding: 20px; } .ai-panel { padding: 24px 24px 0; gap: 22px; } }
@media (max-width: 900px) { .ai-panel { grid-template-columns: 1fr; } .connection-plan { justify-content: flex-start; } .connection-line { flex: 1; max-width: 140px; } .engineering-grid { grid-template-columns: 1fr; } .engineering-grid .project-card { min-height: 185px; } .welcome { align-items: flex-start; flex-direction: column; gap: 22px; } .welcome .action-link { width: auto; } }
@media (max-width: 640px) { .sidebar { position: static; width: auto; padding: 20px 18px 14px; border-right: 0; border-bottom: 1px solid var(--line); } .sidebar-bottom, .nav-label { display: none; } .main-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 22px; } .main-nav a { justify-content: center; padding: 10px 6px; font-size: .76rem; min-height: 44px; } .main-nav a span { display: none; } .page-shell { margin-left: 0; } .topbar { height: 64px; padding-inline: 20px; } .top-actions { gap: 8px; } .session-label { display: none; } .workspace, footer { width: calc(100% - 36px); } .workspace { padding-top: 30px; } .welcome h1 { font-size: 2.35rem; } .intro br { display: none; } .ai-panel { padding: 22px 20px 0; } .ai-panel h2 { font-size: 1.35rem; } .section-head { align-items: flex-start; flex-direction: column; gap: 10px; } .secondary-grid, .connection-detail-grid { grid-template-columns: 1fr; } .secondary-grid .project-card { min-height: 175px; } .connection-node { min-width: 92px; } .command-panel { padding: 22px 18px; } .task-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .task-actions { flex-wrap: wrap; } .task-head { align-items: flex-start; } .connection-badge { font-size: .65rem; } footer { gap: 8px; } }
