:root {
  --navy:#0d1b2e;
  --navy-mid:#162540;
  --steel:#2a4a72;
  --red:#c0202a;
  --red-bright:#e02030;
  --silver:#b8c8d8;
  --bg:#f4f7fb;
  --card:#ffffff;
  --text:#121926;
  --muted:#64748b;
  --line:#d9e2ee;
  --success:#157347;
}

* { box-sizing: border-box; }

body {
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at top left, rgba(42,74,114,.13), transparent 34rem), var(--bg);
  color:var(--text);
}

a { color:inherit; }

.topbar {
  background:linear-gradient(135deg, var(--navy), var(--navy-mid));
  color:#fff;
  padding:16px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  position:sticky;
  top:0;
  z-index:5;
  box-shadow:0 10px 30px rgba(13,27,46,.18);
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  min-width:270px;
}

.brand-mark, .login-logo {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:14px;
  background:var(--red);
  color:white;
  font-weight:900;
  letter-spacing:.04em;
}

.brand small {
  display:block;
  color:var(--silver);
  font-size:12px;
  margin-top:2px;
}

.nav {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav a, .ghost {
  color:white;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  padding:8px 10px;
  border-radius:10px;
  font-size:14px;
  cursor:pointer;
}

.container {
  width:min(1280px, calc(100% - 32px));
  margin:24px auto;
}

.hero {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:28px;
  border-radius:24px;
  color:#fff;
  background:
    linear-gradient(135deg, rgba(13,27,46,.94), rgba(42,74,114,.92)),
    radial-gradient(circle at right, rgba(224,32,48,.6), transparent 18rem);
  box-shadow:0 20px 60px rgba(13,27,46,.22);
  margin-bottom:18px;
}

.hero h1 {
  max-width:780px;
  font-size:clamp(28px, 4vw, 46px);
  line-height:1.05;
  margin:4px 0 12px;
}

.hero p { max-width:760px; color:#e5edf7; }

.eyebrow {
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:12px;
  font-weight:800;
  color:var(--red-bright);
  margin:0 0 4px;
}

.page-title {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin:10px 0 18px;
}

.page-title h1 {
  margin:0 0 6px;
  font-size:34px;
}

.page-title p { color:var(--muted); margin:0; }

.grid {
  display:grid;
  gap:18px;
  margin-bottom:18px;
}

.grid.two { grid-template-columns: 1fr 1fr; }

.stats-grid {
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
  margin-bottom:18px;
}

.stats-grid.five {
  grid-template-columns:repeat(5, 1fr);
}

.stat-card, .card {
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:0 12px 35px rgba(13,27,46,.07);
}

.stat-card {
  padding:18px;
}

.stat-card span {
  color:var(--muted);
  display:block;
  margin-bottom:8px;
}

.stat-card strong {
  font-size:32px;
  color:var(--navy);
}

.card {
  padding:20px;
  margin-bottom:18px;
}

.card h2 { margin-top:0; color:var(--navy); }

.narrow { max-width:860px; }

.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.form-grid.single {
  grid-template-columns:1fr;
}

.full { grid-column:1 / -1; }

label {
  display:block;
  font-weight:800;
  color:var(--navy);
}

label small {
  display:block;
  color:var(--muted);
  font-weight:400;
  margin-top:5px;
}

input, select, textarea {
  width:100%;
  margin-top:6px;
  padding:11px 12px;
  border:1px solid #cbd7e6;
  border-radius:12px;
  font:inherit;
  background:white;
}

textarea { min-height:96px; }

fieldset {
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
}

legend {
  padding:0 8px;
  font-weight:900;
  color:var(--navy);
}

.checks {
  display:grid;
  grid-template-columns:repeat(4, minmax(120px, 1fr));
  gap:8px;
}

.checks label {
  font-weight:600;
  color:var(--text);
}

.checks input { width:auto; margin-right:6px; }

button, .button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:none;
  border-radius:12px;
  padding:11px 14px;
  cursor:pointer;
  text-decoration:none;
  font-weight:900;
  color:#fff;
  background:var(--steel);
  font-size:14px;
}

.primary { background:var(--red); }
.primary:hover { background:var(--red-bright); }
.secondary { background:var(--navy-mid); }
.danger { background:#8a1c22; }
.small { padding:7px 9px; font-size:12px; }
.big { padding:14px 18px; font-size:16px; white-space:nowrap; }
.wide { width:100%; }

.actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.inline { display:inline; }

table {
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
}

th, td {
  text-align:left;
  border-bottom:1px solid #e7edf5;
  padding:12px;
  vertical-align:top;
}

th {
  color:var(--navy);
  background:#f7f9fc;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.05em;
}

tr:hover td { background:#fbfdff; }

.nowrap { white-space:nowrap; }

.feed {
  display:block;
  color:var(--navy);
  background:#eef4fb;
  border:1px solid var(--line);
  padding:12px;
  border-radius:12px;
  overflow-x:auto;
  white-space:nowrap;
}

.steps {
  color:var(--muted);
}

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

.summary div {
  display:flex;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid #e7edf5;
  padding-bottom:8px;
}

.summary dt { font-weight:900; color:var(--navy); }
.summary dd { margin:0; color:var(--muted); }

.section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.pill {
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:4px 9px;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  background:#edf2f7;
  color:var(--navy);
}

.pill.task, .pill.active { background:#e8f1ff; color:#174a7c; }
.pill.meeting { background:#fff1e6; color:#9a4a00; }
.pill.done { background:#e8f8ef; color:#11613a; }
.pill.paused { background:#f4f4f5; color:#52525b; }

.muted { color:var(--muted); }

.alert {
  padding:13px 15px;
  border-radius:14px;
  margin-bottom:16px;
  font-weight:700;
}

.success {
  background:#e9f8ef;
  color:var(--success);
  border:1px solid #a9e0bd;
}

.danger-alert {
  background:#ffe7ea;
  color:#8a1c22;
  border:1px solid #f4a5ad;
}

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

.item-list li {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid #e7edf5;
}

.dot {
  display:inline-block;
  width:12px;
  height:12px;
  border-radius:50%;
  margin-right:8px;
}

.feature-list li { margin:8px 0; }

.chips {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.chips span {
  border:1px solid var(--line);
  background:#f7f9fc;
  color:var(--navy);
  border-radius:999px;
  padding:7px 10px;
  font-weight:700;
}

.login-body {
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at top right, rgba(224,32,48,.22), transparent 20rem),
    linear-gradient(135deg, var(--navy), var(--steel));
  padding:20px;
}

.login-card {
  width:min(440px, 94vw);
  background:white;
  border-radius:24px;
  padding:30px;
  box-shadow:0 25px 80px rgba(0,0,0,.25);
}

.login-card h1 { margin-bottom:6px; color:var(--navy); }
.login-card p { color:var(--muted); }

.login-logo {
  width:54px;
  height:54px;
  font-size:18px;
}

.footer {
  width:min(1280px, calc(100% - 32px));
  margin:0 auto 30px;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
}

@media (max-width: 980px) {
  .topbar, .hero, .page-title, .section-head, .footer {
    flex-direction:column;
    align-items:flex-start;
  }
  .grid.two, .stats-grid, .stats-grid.five, .form-grid {
    grid-template-columns:1fr;
  }
  .checks {
    grid-template-columns:1fr 1fr;
  }
  table {
    display:block;
    overflow-x:auto;
  }
  .brand {
    min-width:auto;
  }
}
