:root {
  --ink: #151922;
  --muted: #5c6675;
  --line: #dce3ea;
  --wash: #f6f8f7;
  --soft: #edf5f2;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --amber: #c17717;
  --coral: #b84a3d;
  --graphite: #242a32;
  --shadow: 0 22px 55px rgba(21, 25, 34, 0.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--wash);
  color: var(--ink);
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 190px;
}
.mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--graphite));
  color: #fff;
  font-weight: 900;
}
.brand strong { display: block; font-size: 20px; line-height: 1; }
.brand span { color: var(--muted); font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 800; }
.nav-links .button,
.nav-links .button:hover { color: #fff; }
.button, button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}
.button.secondary, button.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.button.teal, button.teal { background: var(--teal); border-color: var(--teal); }
button.danger { background: #fff; color: #8f261e; border-color: #e5b9b4; }
.hero {
  padding: 42px 0 24px;
  background:
    linear-gradient(120deg, rgba(237,245,242,.95), rgba(255,255,255,.96)),
    repeating-linear-gradient(90deg, rgba(15,118,110,.06) 0 1px, transparent 1px 70px);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .56fr);
  gap: 24px;
  align-items: end;
}
.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--teal-dark);
  background: #e6f7f2;
  border: 1px solid #bee7dd;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 58px); line-height: 1.03; letter-spacing: 0; }
h2 { margin: 0 0 12px; font-size: clamp(25px, 3vw, 36px); line-height: 1.1; letter-spacing: 0; }
h3 { margin: 0 0 9px; font-size: 19px; }
.lead { margin: 0; color: var(--muted); font-size: 18px; max-width: 760px; }
.status-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.status-card strong { display: block; font-size: 28px; color: var(--teal-dark); }
.status-card span { color: var(--muted); font-size: 13px; }
main { padding: 28px 0 64px; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  min-height: 40px;
  padding: 9px 12px;
}
.tab.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.app-grid {
  display: grid;
  grid-template-columns: minmax(300px, .42fr) minmax(0, .58fr);
  gap: 16px;
  align-items: start;
}
.panel, .item, .empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(21,25,34,.04);
}
.panel { padding: 20px; }
.field { display: grid; gap: 7px; margin-bottom: 13px; }
.field label { color: #314052; font-size: 13px; font-weight: 900; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
}
textarea { min-height: 92px; resize: vertical; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.list { display: grid; gap: 12px; }
.item { padding: 18px; }
.item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.item h3 { margin-bottom: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 11px 0; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4fb;
  color: #314052;
  font-size: 12px;
  font-weight: 800;
}
.chip.done { background: #def7ec; color: #075f50; }
.chip.active { background: #fff2d9; color: #73500d; }
.chip.blocked { background: #f9e0dd; color: #842d24; }
.notes { color: var(--muted); margin: 0; white-space: pre-wrap; }
.item-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.item-actions button { min-height: 38px; padding: 8px 10px; font-size: 13px; }
.progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7e5e1;
  margin-top: 10px;
}
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #8bdccd); }
.empty { padding: 28px; color: var(--muted); text-align: center; }
.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.summary article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.summary strong { display: block; font-size: 24px; color: var(--teal-dark); }
.summary span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  max-width: min(360px, calc(100% - 36px));
  background: var(--graphite);
  color: #fff;
  border-radius: 8px;
  padding: 13px 15px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .18s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
footer {
  padding: 28px 0;
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
footer .shell { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; font-weight: 800; margin-left: 14px; }
@media (max-width: 860px) {
  nav { flex-direction: column; align-items: flex-start; }
  .hero-grid, .app-grid { grid-template-columns: 1fr; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1180px); }
  .nav-links a:not(.button) { display: none; }
  .button, button { width: 100%; }
  .actions, .tabs, .form-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .summary { grid-template-columns: 1fr; }
  h1 { font-size: clamp(32px, 11vw, 44px); }
}
