/* Palette and type follow the sproushi.com theme: blush base, charcoal ink, mint/teal accents,
   Tenor Sans headings over IBM Plex Sans body. */
:root {
  --bg: #f9f3f1;
  --surface: #ffffff;
  --ink: #3a3a3e;
  --ink-soft: rgba(58, 58, 62, 0.72);
  --line: rgba(58, 58, 62, 0.14);
  --mint: #b2e2d8;
  --teal: #2d7b6c;
  --clay: #984b2c;
  --gold: #dbba75;
  --on-dark: #ffffff;
  --radius: 10px;
  --radius-sm: 5px;
  --max: 1200px;
  --heading: "Tenor Sans", Georgia, serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17.6px/1.7 var(--body);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.1; margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

/* header: frosted glass, uppercase nav */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(249, 243, 241, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--heading); font-size: 22px; text-decoration: none; letter-spacing: 0.04em; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; }
.nav a:not(.btn):hover { color: var(--teal); }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--on-dark) !important;
  border: 1px solid var(--ink); border-radius: var(--radius-sm);
  padding: 13px 28px;
  font: 400 13px/1.2 var(--body); text-transform: uppercase; letter-spacing: 0.14em;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink) !important; }
.btn.ghost { background: transparent; color: var(--ink) !important; }
.btn.ghost:hover { background: var(--ink); color: var(--on-dark) !important; }
.nav .btn { padding: 9px 18px; }

/* hero */
.hero { padding: 120px 2rem 110px; position: relative; isolation: isolate; }
.hero::after {
  content: ""; position: absolute; right: -160px; top: -120px; width: 520px; height: 520px;
  border-radius: 50%; background: var(--mint); opacity: 0.55; z-index: -1;
}
.eyebrow { color: var(--teal); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 22px; }
.hero h1 { font-size: clamp(48px, 8vw, 92px); letter-spacing: 0.01em; margin: 0 0 26px; }
.hero p.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-soft); max-width: 600px; margin: 0 0 40px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* sections */
section { padding: 96px 0; }
section.dark { background: var(--ink); color: var(--on-dark); }
section.mint { background: var(--mint); }
.section-head { margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 46px); }
.section-head p { color: var(--ink-soft); margin: 14px 0 0; max-width: 560px; }
.dark .section-head p, .dark .card p { color: rgba(255, 255, 255, 0.72); }
.dark .eyebrow { color: var(--mint); }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border-radius: var(--radius);
  padding: 34px; display: flex; flex-direction: column; gap: 12px;
}
.dark .card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.card h3 { font-size: 24px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.card .num { font-family: var(--heading); color: var(--mint); font-size: 30px; line-height: 1; }
.tag {
  align-self: flex-start; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal); background: rgba(178, 226, 216, 0.45); border-radius: var(--radius-sm); padding: 4px 10px;
}

.contact { text-align: center; }
.contact h2 { font-size: clamp(34px, 4.6vw, 52px); margin: 0 0 14px; }
.contact p { color: var(--ink); opacity: 0.8; margin: 0 0 32px; }

footer { padding: 32px 0; color: var(--ink-soft); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* auth / portal pages */
.auth { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 48px 16px; }
.panel { width: 100%; max-width: 420px; background: var(--surface); border-radius: var(--radius); padding: 44px 40px; }
.panel h1 { font-size: 34px; margin: 0 0 8px; }
.panel .sub { margin: 0 0 30px; color: var(--ink-soft); font-size: 15px; }
label { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 8px; }
input[type=email], input[type=password] {
  width: 100%; padding: 12px 14px; margin: 0 0 22px; font: inherit; font-size: 16px;
  color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.panel .btn { width: 100%; padding: 15px; }
.error { background: rgba(152, 75, 44, 0.1); color: var(--clay); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14px; margin: 0 0 22px; }
.portal { padding: 80px 2rem 110px; }
.portal h1 { font-size: clamp(34px, 4.6vw, 48px); margin: 0 0 10px; }
.portal .sub { color: var(--ink-soft); margin: 0 0 40px; }
.card.link { text-decoration: none; border: 1px solid transparent; transition: border-color .2s, transform .2s; }
.card.link:hover { border-color: var(--teal); transform: translateY(-2px); }
.empty { color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--radius); padding: 44px; text-align: center; margin: 0; }
.inline { display: inline; margin: 0; }

@media (max-width: 640px) {
  .wrap, .portal { padding-left: 16px; padding-right: 16px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 80px 16px 72px; }
  .hero::after { width: 320px; height: 320px; right: -140px; top: -80px; }
  section { padding: 68px 0; }
  .card { padding: 26px; }
  .panel { padding: 32px 22px; }
}

/* ---- full homepage sections ---- */
.preview-bar { background: var(--gold); color: var(--ink); text-align: center; font-size: 13px; letter-spacing: 0.06em; padding: 8px 16px; }
.hero-split { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 80px; }
.hero-split h1 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: 0; }
.portrait { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; aspect-ratio: 452 / 494; background: var(--mint); }
.actions.center { justify-content: center; display: flex; gap: 14px; flex-wrap: wrap; }

.facts { list-style: none; margin: 0 0 24px; padding: 32px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; gap: 6px; }
.facts strong { font-family: var(--heading); font-weight: 400; font-size: 24px; line-height: 1.15; }
.facts span { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

.case { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; background: var(--surface); border-radius: var(--radius); padding: 44px; margin-bottom: 22px; }
.case-meta h3 { font-size: 34px; margin: 14px 0 8px; }
.case-meta .role { color: var(--ink-soft); font-size: 15px; margin: 0; }
.case-lede { font-family: var(--heading); font-size: 22px; line-height: 1.4; margin: 0 0 24px; }
.case dl { display: grid; grid-template-columns: 150px 1fr; gap: 14px 24px; margin: 0; }
.case dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); padding-top: 4px; }
.case dd { margin: 0; color: var(--ink-soft); font-size: 16px; }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.service { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 44px; }
.service .num { font-family: var(--heading); color: var(--mint); font-size: 34px; line-height: 1; }
.service h3 { font-size: 30px; margin: 18px 0 14px; }
.service p { color: rgba(255, 255, 255, 0.78); margin: 0 0 22px; }
.service ul { list-style: none; margin: 0; padding: 0; }
.service li { padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 15px; }
.service li::before { content: "—"; color: var(--mint); margin-right: 12px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: "0" counter(step); font-size: 12px; letter-spacing: 0.14em; color: var(--teal); }
.steps strong { font-family: var(--heading); font-weight: 400; font-size: 22px; }
.steps span { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

.about-section { border-top: 1px solid var(--line); }
.about { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.about h2 { font-size: clamp(30px, 3.8vw, 42px); margin: 0 0 22px; }
.about p { color: var(--ink-soft); margin: 0 0 16px; max-width: 640px; }
.about .langs { color: var(--teal); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 24px; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-split .portrait { max-width: 360px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .case { grid-template-columns: 1fr; gap: 24px; padding: 30px 26px; }
  .case dl { grid-template-columns: 1fr; gap: 4px; }
  .case dd { margin-bottom: 12px; }
  .services { grid-template-columns: 1fr; }
  .service { padding: 30px 26px; }
  .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .hero-split { padding-top: 64px; padding-bottom: 56px; }
}
.notice { background: rgba(178, 226, 216, 0.5); color: var(--teal); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14px; margin: 0 0 22px; }
.toast {
  position: fixed; top: 88px; left: 50%; transform: translateX(-50%); z-index: 20;
  display: flex; align-items: center; gap: 16px; cursor: pointer; max-width: calc(100vw - 32px);
  background: var(--ink); color: var(--on-dark); border-radius: var(--radius-sm);
  padding: 13px 18px; font-size: 15px; box-shadow: 0 8px 28px rgba(58, 58, 62, 0.25);
  animation: toast-in .3s ease-out; transition: opacity .4s, transform .4s;
}
.toast::before { content: "✓"; color: var(--mint); }
.toast span { opacity: 0.6; font-size: 20px; line-height: 1; }
.toast.out { opacity: 0; transform: translate(-50%, -10px); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -10px); } }

/* ================= portal app: projects, tasks, timeline, admin ================= */
.nav a.on { color: var(--teal); }
.h2 { font-family: var(--heading); font-weight: 400; font-size: 26px; margin: 48px 0 18px; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.late, .due.late { color: var(--clay); }
.loading { color: var(--ink-soft); padding: 40px 0; }
.toast.bad { background: var(--clay); }
.toast.bad::before { content: "!"; color: #fff; font-weight: 700; }
button.link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--teal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
button.link.danger { color: var(--clay); }

/* form controls inside the app */
.app select, .app textarea, .app input[type=date], .app input[type=search], .app input[name=title], .app input[name=name],
.app input[name=description], .admin input[type=email] {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; width: 100%; min-height: 42px;
}
.app select:disabled, .app textarea:disabled, .app input:disabled { background: transparent; color: var(--ink); opacity: 1; border-color: transparent; padding-left: 0; }
.app textarea { resize: vertical; line-height: 1.5; }
.admin input[type=email] { margin: 0; }

/* project cards */
.project-card .bar { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.project-card .bar span { display: block; height: 100%; background: var(--teal); }
.project-card .counts { font-size: 14px; }

/* project page */
.project { padding: 56px 2rem 100px; }
.project-head .eyebrow a { text-decoration: none; }
.project-head h1 { font-size: clamp(32px, 4.4vw, 46px); margin: 0 0 8px; }
.project-head .sub { color: var(--ink-soft); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 32px 0 28px; }
.stat { text-align: left; cursor: pointer; background: var(--surface); border: 1px solid transparent; border-radius: var(--radius); padding: 18px 20px; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 2px; transition: border-color .15s; }
.stat:hover { border-color: var(--line); }
.stat strong { font-family: var(--heading); font-weight: 400; font-size: 30px; line-height: 1.1; }
.stat span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.stat.alert { background: rgba(152, 75, 44, 0.08); }
.stat.alert strong, .stat.alert span { color: var(--clay); }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 0; margin-bottom: -1px; cursor: pointer; font: 400 13px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--ink); }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.toolbar input[type=search] { flex: 1; min-width: 160px; width: auto; }
.toolbar .btn { padding: 10px 18px; }
.seg { display: inline-flex; background: var(--surface); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.seg button { background: none; border: 0; border-radius: 4px; padding: 7px 12px; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.seg button span { font-size: 12px; opacity: 0.7; margin-left: 2px; }
.seg button[aria-selected=true] { background: var(--ink); color: var(--on-dark); }
.seg button.has-late:not([aria-selected=true]) { color: var(--clay); }
label.select { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; }
label.select select { width: auto; padding: 8px 10px; }
.quick-add { margin: 0 0 18px; }
.quick-add input { background: transparent !important; border-style: dashed !important; }
.quick-add.small { margin: 10px 0 0; }

.group-head { font-family: var(--body); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin: 26px 0 8px; display: flex; gap: 10px; align-items: baseline; }
.group-head span { color: var(--ink-soft); letter-spacing: 0.04em; text-transform: none; font-size: 13px; }
.group-head em { color: var(--clay); font-style: normal; }
.task-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.task { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-top: 1px solid var(--line); cursor: pointer; }
.task:first-child { border-top: 0; }
.task:hover { background: rgba(178, 226, 216, 0.18); }
.task-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 4px; }
.task-title { font-size: 16px; }
.task.is-done .task-title { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--line); }
.task-ctx { font-size: 13px; color: var(--ink-soft); }
.task-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; font-size: 13px; }
.meta { color: var(--ink-soft); }
.due { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.chip { display: inline-block; font: inherit; font-size: 12px; background: var(--bg); color: var(--ink); border: 0; border-radius: var(--radius-sm); padding: 2px 8px; }
button.chip { cursor: pointer; padding: 6px 12px; font-size: 14px; background: var(--surface); }
.chip.warn { background: rgba(152, 75, 44, 0.12); color: var(--clay); }
.st { font-size: 12px; border-radius: var(--radius-sm); padding: 2px 8px; }
.st-todo { background: rgba(58, 58, 62, 0.08); color: var(--ink-soft); }
.st-doing { background: rgba(45, 123, 108, 0.14); color: var(--teal); }
.st-waiting { background: rgba(219, 186, 117, 0.3); color: #7a5d1c; }
.st-done { background: rgba(178, 226, 216, 0.6); color: var(--teal); }

.check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(58, 58, 62, 0.35); background: transparent; cursor: pointer; padding: 0; position: relative; }
.check:hover { border-color: var(--teal); }
.is-done > .check, .check.on { background: var(--teal); border-color: var(--teal); }
.is-done > .check::after, .check.on::after { content: "\2713"; color: #fff; font-size: 13px; position: absolute; inset: 0; display: grid; place-items: center; }
.check.static { cursor: default; }
.avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 500; }
.avatar.none { background: var(--bg); color: var(--ink-soft); }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }

/* side sheet */
body.sheet-open { overflow: hidden; }
.scrim { position: fixed; inset: 0; background: rgba(58, 58, 62, 0.35); z-index: 30; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--bg); z-index: 31; overflow-y: auto; padding: 36px 36px 60px; box-shadow: -12px 0 40px rgba(58, 58, 62, 0.18); animation: sheet-in .22s ease-out; }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } }
.sheet-close { position: absolute; top: 16px; right: 18px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.sheet .eyebrow { margin-bottom: 12px; }
.sheet-form label { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.title-input { font-family: var(--heading) !important; font-size: 26px !important; border: 0 !important; background: transparent !important; padding: 4px 0 !important; margin-bottom: 18px; }
.title-input:focus { outline: none; border-bottom: 1px solid var(--teal) !important; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.sheet-section { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 22px; }
.sheet-section h4 { font: 400 12px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; }
.sheet-section h4 span { color: var(--ink-soft); letter-spacing: 0; margin-left: 6px; }
.sub-list { list-style: none; margin: 0; padding: 0; }
.sub-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.sub-list li a { flex: 1; text-decoration: none; }
.sub-list li.is-done a { color: var(--ink-soft); text-decoration: line-through; }
.activity { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; color: var(--ink-soft); }
.activity li { padding: 6px 0; }
.activity em { font-style: normal; color: var(--ink); }
.activity time { font-size: 12px; margin-left: 6px; opacity: 0.8; }
.activity .comment { background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px; margin: 8px 0; color: var(--ink); }
.activity .comment p { margin: 6px 0 0; white-space: pre-wrap; }
.comment-head { display: flex; align-items: center; gap: 8px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }

/* timeline */
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink-soft); margin-left: auto; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; background: var(--c); }
.s-todo { --c: #b9b6b0; } .s-doing { --c: var(--teal); } .s-waiting { --c: var(--gold); } .s-done { --c: #8fcfc0; } .s-late { --c: var(--clay); }
.timeline { overflow-x: auto; background: var(--surface); border-radius: var(--radius); position: relative; }
.tl-inner { position: relative; min-width: 100%; }
.tl-row { display: flex; min-height: 40px; border-top: 1px solid var(--line); }
.tl-row.head { border-top: 0; min-height: 34px; }
.tl-name { position: sticky; left: 0; z-index: 2; flex: none; width: 220px; background: var(--surface); border: 0; border-right: 1px solid var(--line); text-align: left; padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tl-row.r-phase .tl-name { font-family: var(--heading); font-size: 16px; }
.tl-row.r-phase { background: rgba(249, 243, 241, 0.6); }
.tl-row.r-label .tl-name { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); cursor: default; display: flex; align-items: center; }
.tl-name.is-done { color: var(--ink-soft); text-decoration: line-through; }
.tl-track { position: relative; flex: 1; }
.ticks .tick { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); padding: 8px 6px; font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.ticks .tick.week { border-left-style: dotted; padding-top: 18px; font-size: 10px; }
.tl-bar { position: absolute; top: 9px; height: 22px; border: 0; border-radius: 4px; background: var(--c); color: #fff; font: inherit; font-size: 12px; text-align: left; padding: 0; cursor: pointer; overflow: hidden; }
.tl-bar.s-todo, .tl-bar.s-done, .tl-bar.s-waiting { color: var(--ink); }
.tl-bar .lbl { position: relative; padding: 0 8px; white-space: nowrap; line-height: 22px; }
.tl-bar.phase { top: 7px; height: 26px; background: color-mix(in srgb, var(--c) 35%, white); color: var(--ink); }
.tl-bar.phase .fill { position: absolute; inset: 0 auto 0 0; background: var(--c); opacity: 0.55; }
.tl-bar.phase .lbl { line-height: 26px; }
.tl-nodate { position: sticky; left: 232px; font-size: 12px; color: var(--ink-soft); line-height: 40px; padding-left: 12px; }
.tl-today { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--clay); z-index: 1; pointer-events: none; }
.tl-today span { position: absolute; top: 2px; left: 4px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); background: var(--surface); padding: 1px 4px; }
.undated { margin-top: 24px; }
.undated h4 { font: 400 12px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* admin */
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 400; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.table tr.off td { opacity: 0.55; }
.table .muted { font-size: 13px; }
.table td.actions { white-space: nowrap; text-align: right; }
.table td.actions form, .table td.actions a { display: inline; margin-left: 14px; font-size: 14px; }
.table .chip { margin: 2px 4px 2px 0; }
.row-form select { width: auto; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.inline-form input, .inline-form select { flex: 1; min-width: 180px; width: auto; }
.stack-form { max-width: 520px; display: flex; flex-direction: column; }
.stack-form label { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink-soft); margin: 12px 0 6px; }
.stack-form label.check { width: auto; height: auto; border: 0; border-radius: 0; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.stack-form .btn { align-self: flex-start; margin-top: 18px; }
.creds { background: var(--mint); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; }
.creds p { margin: 0 0 12px; }
.creds pre { background: var(--surface); border-radius: var(--radius-sm); padding: 14px; font-size: 14px; white-space: pre-wrap; margin: 0 0 14px; }

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .legend { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  .app .top .wrap { height: auto; flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; padding-bottom: 12px; }
  .app .nav { flex-wrap: wrap; gap: 8px 18px; }
  .app .nav a:not(.btn) { display: inline; font-size: 12px; }
  .app .nav .btn { padding: 6px 12px; font-size: 11px; }
  .project { padding: 36px 16px 80px; }
  .toolbar .seg { width: 100%; overflow-x: auto; }
  .task { padding: 12px 14px; align-items: flex-start; }
  .sheet { padding: 28px 18px 48px; }
  .field-grid { grid-template-columns: 1fr; }
  .table td.actions { white-space: normal; text-align: left; }
}
.project-notes { background: var(--surface); border-radius: var(--radius); padding: 16px 22px; margin: 24px 0 0; }
.project-notes summary { cursor: pointer; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.project-notes dl { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 8px 24px; margin: 16px 0 4px; font-size: 15px; }
.project-notes dt { color: var(--teal); }
.project-notes dd { margin: 0; color: var(--ink-soft); }
.project-notes dd.full { grid-column: 1 / -1; }
.stack-form textarea { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); resize: vertical; }
@media (max-width: 640px) { .project-notes dl { grid-template-columns: 1fr; gap: 2px; } .project-notes dd { margin-bottom: 10px; } }
