:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --ink: #151922;
  --muted: #647084;
  --panel: #ffffff;
  --line: #dce4ef;
  --navy: #111827;
  --blue: #2563eb;
  --teal: #0f766e;
  --coral: #d94d3f;
  --indigo: #4f46e5;
  --danger: #b42318;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
button, input, select, textarea { font: inherit; }
.hub-shell { min-height: 100vh; }
.hero {
  padding: 18px clamp(16px, 4vw, 48px) 34px;
  background:
    linear-gradient(135deg, rgba(14, 31, 53, .92), rgba(30, 64, 175, .78)),
    radial-gradient(circle at 85% 12%, rgba(20, 184, 166, .36), transparent 30%);
  color: #fff;
}
.topbar, .hero-grid, .main { max-width: 1180px; margin: 0 auto; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
}
.brand strong, .brand small { display: block; letter-spacing: 0; }
.brand small { color: rgba(255,255,255,.72); margin-top: 2px; }
.top-actions, .hero-actions, .modal-actions, .form-actions, .controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 24px;
  align-items: end;
  padding-top: 58px;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 800;
  color: #8be0d8;
}
h1 { margin: 0; max-width: 760px; font-size: clamp(34px, 6vw, 68px); line-height: .98; letter-spacing: 0; }
.lead { max-width: 660px; margin: 18px 0 0; color: rgba(255,255,255,.78); line-height: 1.6; font-size: 16px; }
.hero-actions { margin-top: 24px; }
.solid-button, .ghost-button, .primary-link, .text-button, .danger-button {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.solid-button, .primary-link { background: #fff; color: var(--navy); }
.ghost-button, .text-button { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.danger-button { background: #fff1f0; color: var(--danger); border-color: #fecdca; }
.status-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}
.status-panel div, .summary-grid div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.status-panel span { color: rgba(255,255,255,.7); }
.status-panel strong { color: #fff; }
.main { padding: 28px clamp(16px, 4vw, 48px) 80px; }
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}
.toolbar h2 { margin: 0; font-size: 26px; letter-spacing: 0; }
.toolbar p { margin: 4px 0 0; color: var(--muted); }
.controls input, .controls select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  min-width: 170px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.summary-grid div, .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}
.summary-grid div { padding: 13px; color: var(--muted); }
.summary-grid strong { color: var(--ink); font-size: 20px; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.card { overflow: hidden; }
.card-visual {
  min-height: 150px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  padding: 16px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.card.coral .card-visual { background: linear-gradient(135deg, #7f1d1d, #d94d3f); }
.card.indigo .card-visual { background: linear-gradient(135deg, #312e81, #4f46e5); }
.card-visual strong { font-size: 20px; max-width: 260px; line-height: 1.15; }
.badge { border: 1px solid rgba(255,255,255,.36); border-radius: 999px; padding: 5px 8px; font-size: 12px; background: rgba(255,255,255,.12); }
.card-body { padding: 14px; display: grid; gap: 10px; }
.card-body p { margin: 0; color: #475467; line-height: 1.55; }
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.open-link {
  min-height: 40px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.empty { text-align: center; color: var(--muted); padding: 36px; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, .48);
}
.modal-backdrop.is-open { display: flex; }
.modal, .workspace-panel {
  width: min(620px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
  color: var(--ink);
}
.modal { padding: 20px; }
.modal-head { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.modal-head h2 { margin: 0; font-size: 22px; letter-spacing: 0; }
.modal-body p { color: #475467; line-height: 1.65; }
.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
}
.workspace { position: fixed; right: 18px; bottom: 18px; z-index: 45; }
.workspace-toggle {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .22);
  cursor: pointer;
}
.workspace-panel { width: min(520px, calc(100vw - 28px)); padding: 18px; }
.safe-note {
  margin: 12px 0;
  padding: 10px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #0f766e;
  font-weight: 700;
}
.review-form { display: grid; gap: 10px; }
.review-form label { display: grid; gap: 5px; font-weight: 800; color: #344054; }
.review-form input, .review-form select, .review-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
}
.file-drop {
  border: 1px dashed #b9c4d3;
  border-radius: 10px;
  padding: 10px;
}
output { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .topbar, .toolbar { align-items: stretch; flex-direction: column; }
  .hero-grid, .project-grid, .summary-grid { grid-template-columns: 1fr; }
  h1 { font-size: 38px; }
  .top-actions, .controls { width: 100%; }
  .controls input, .controls select { width: 100%; }
  .workspace { right: 12px; bottom: 12px; }
}
