:root {
  --side: #1d2327;
  --side-text: #f0f0f1;
  --accent: #2271b1;
  --ink: #1d2327;
  --muted: #50575e;
  --line: #c3c4c7;
  --line-soft: #dcdcde;
  --bg: #f0f0f1;
  --amber: #dba617;
  --green: #00a32a;
  --queued: #a7aaad;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.4;
}

button { font: inherit; cursor: pointer; }
a { color: var(--accent); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* ---------- admin bar ---------- */
.adminbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 20px; min-height: 40px; padding: 0 16px;
  background: var(--side); color: var(--side-text); font-size: 14px;
}
.adminbar-l { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; }
.monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border: 2px solid var(--side-text); border-radius: 50%;
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
}
.bar-updates { display: flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.adminbar-r { display: flex; align-items: center; gap: 8px; }

/* ---------- layout ---------- */
.shell { display: flex; flex-wrap: wrap; align-items: stretch; }
.menu { flex: 1 1 190px; background: var(--side); color: var(--side-text); padding-top: 8px; }
.menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  color: var(--side-text); text-decoration: none; font-size: 14px;
}
.menu a:hover { filter: brightness(1.18); }
.menu a[aria-current="page"] { background: var(--accent); color: #fff; }
.bubble {
  margin-left: auto; min-width: 18px; padding: 0 6px; border-radius: 9px;
  background: #d63638; color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}
.content { flex: 999 1 560px; min-width: 0; padding: 20px 24px 12px; }

.page-title { font-size: 24px; font-weight: 400; margin-bottom: 16px; }
.page-sub { font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 640px; margin-bottom: 20px; }

/* ---------- notice ---------- */
.notice {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
}
.notice p { flex: 1; font-size: 14px; line-height: 1.5; }
.notice-x { background: none; border: 0; padding: 2px 6px; font-size: 18px; line-height: 1; color: var(--muted); }

/* ---------- cards ---------- */
.card { background: #fff; border: 1px solid var(--line); }
.card-h { padding: 12px 16px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.linkbtn {
  background: none; border: 0; padding: 0; color: var(--accent); text-align: left;
  text-decoration: underline; text-underline-offset: 3px; font-size: 14px;
}
.primary { padding: 8px 14px; background: var(--accent); color: #fff; border: 0; border-radius: 3px; font-size: 14px; }

.welcome { margin-bottom: 20px; }
.welcome-top { padding: 24px 24px 8px; }
.welcome-top h2 { font-size: 22px; font-weight: 400; margin-bottom: 8px; }
.welcome-top p { max-width: 640px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.welcome-cols { display: flex; flex-wrap: wrap; gap: 20px 32px; padding: 16px 24px 24px; }
.welcome-cols > div { flex: 1 1 170px; }
.eyebrow { margin-bottom: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.health { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 20px 16px; }
.health-text { flex: 1 1 160px; font-size: 14px; line-height: 1.5; }
.health-text p + p { margin-top: 6px; color: var(--muted); }
.glance { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; }

.mini { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.mini-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 6px; }
.mini-top strong { font-weight: 600; }
.mini-sub { margin-top: 6px; font-size: 13px; color: var(--muted); }

.activity { padding: 4px 16px 8px; font-size: 14px; }
.activity li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid var(--bg); }
.activity .d { flex: 0 0 112px; white-space: nowrap; color: var(--muted); }
.activity .t { flex: 1 1 180px; }

/* ---------- progress bars ---------- */
.track { background: var(--line-soft); overflow: hidden; }
.track.h8 { height: 8px; } .track.h10 { height: 10px; } .track.h12 { height: 12px; } .track.h18 { height: 18px; }
.fill { height: 100%; transform-origin: left center; animation: grow 1.3s cubic-bezier(.2, .7, .2, 1) both; }
.fill.stripe {
  background-image: linear-gradient(135deg, rgba(255,255,255,.28) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.28) 75%, transparent 75%);
  background-size: 28px 28px;
  animation: grow 1.3s cubic-bezier(.2, .7, .2, 1) both, stripes .9s linear infinite;
}
.spin { animation: spin 1.1s linear infinite; }
.ringfill { animation: ring 1.5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stripes { from { background-position: 0 0; } to { background-position: 28px 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { from { stroke-dasharray: 0 327; } }
@media (prefers-reduced-motion: reduce) { .fill, .fill.stripe, .spin, .ringfill { animation: none; } }

/* ---------- skills list ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 16px; font-size: 14px; }
.filters a { text-decoration: none; }
.filters a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.filters a:not([aria-current="true"]) { text-decoration: underline; text-underline-offset: 3px; }
.rows .row {
  display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft); border-left: 4px solid transparent; background: #fff;
}
.rows .row.is-active { background: #f6f7f7; border-left-color: var(--accent); }
.row-main { flex: 1 1 260px; min-width: 0; }
.row-main strong { font-size: 15px; font-weight: 600; }
.row-main p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.row-main .meta { margin-top: 6px; font-size: 12px; }
.row-side { flex: 0 1 230px; min-width: 180px; font-size: 14px; }
.row-side .line { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.row-side .state { display: flex; align-items: center; gap: 6px; }
.ok { display: flex; align-items: center; gap: 8px; color: #007017; font-weight: 600; }

/* ---------- updates ---------- */
.stack { display: flex; flex-direction: column; gap: 20px; }
.up-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.up-head h2 { font-size: 16px; font-weight: 600; }
.up-head span { font-size: 13px; color: var(--muted); }
.up-body { padding: 16px; }
.up-body > p { margin-bottom: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.up-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.up-bar .track { flex: 1; }
.up-bar strong { min-width: 44px; text-align: right; font-size: 15px; }
.tasks { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.tasks li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.box {
  flex: 0 0 18px; height: 18px; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #8c8f94; background: #fff; color: #fff;
}
.box.on { background: var(--accent); border-color: var(--accent); }
.tasks li.done span:last-child { color: var(--muted); }

/* ---------- roadmap ---------- */
.timeline { padding: 20px 16px; margin-bottom: 20px; }
.timeline-dates { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.timeline p { margin-top: 10px; font-size: 14px; }
.months { display: flex; flex-wrap: wrap; gap: 16px; }
.month { flex: 1 1 200px; min-width: 0; }
.month-h { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: #f6f7f7; font-size: 13px; color: var(--muted); }
.month-b { padding: 14px; }
.month-b strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.month-b .st { margin: 8px 0 10px; font-size: 13px; color: var(--muted); }
.month-b .pc { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* ---------- profile ---------- */
.form { padding: 4px 20px; }
.frow { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.frow:last-child { border-bottom: 0; }
.frow > strong { flex: 0 0 180px; font-weight: 600; }
.frow > div, .frow > span, .frow > p { flex: 1 1 260px; }
.frow > p { max-width: 620px; line-height: 1.6; }
.contacts li { line-height: 1.8; }
.schemes { display: flex; flex-wrap: wrap; gap: 10px; }
.scheme {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  min-width: 104px; min-height: 44px; padding: 8px 10px; background: #fff;
  border: 2px solid var(--line); font-size: 13px; color: var(--ink);
}
.scheme[aria-pressed="true"] { border-color: var(--accent); }
.swatch { display: flex; width: 100%; height: 18px; }
.swatch i { display: block; }

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px;
  margin-top: 28px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted);
}

/* ---------- work ---------- */
.proj-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.proj { flex: 1 1 300px; max-width: 480px; display: flex; flex-direction: column; min-width: 0; }
.proj-img { display: block; border-bottom: 1px solid var(--line-soft); }
.proj-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #f6f7f7; }
.ph {
  display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 10;
  background: var(--side); color: var(--side-text); font-size: 44px; font-weight: 600; letter-spacing: .04em;
}
.proj-b { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.proj-type { font-size: 12px; color: var(--muted); }
.proj-b h2 { font-size: 18px; font-weight: 600; }
.proj-b h2 a { color: var(--ink); text-decoration: none; }
.proj-b h2 a:hover { color: var(--accent); text-decoration: underline; }
.proj-sum { font-size: 14px; line-height: 1.5; color: var(--muted); }
.proj-more { margin-top: auto; padding-top: 4px; font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 2px 8px; border: 1px solid var(--line); background: #f6f7f7; font-size: 12px; color: var(--muted); }

.detail { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.detail-main { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.detail-side { flex: 1 1 240px; min-width: 0; }
.cover { overflow: hidden; }
.cover img { display: block; width: 100%; height: auto; }
.prose { padding: 16px 20px 6px; max-width: 700px; }
.prose p { margin-bottom: 14px; font-size: 15px; line-height: 1.65; }
.prose p.lead { font-size: 16px; font-weight: 600; }
.meta-list { margin: 0; padding: 4px 16px; }
.meta-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bg); font-size: 14px; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; text-align: right; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
.shots { display: flex; flex-direction: column; gap: 20px; }
.shot { margin: 0; border: 1px solid var(--line); background: #fff; }
.shot img { display: block; width: 100%; height: auto; }

/* ---------- roadmap (gantt) ---------- */
.gantt-card { margin-bottom: 20px; }
.gantt-scroll { overflow-x: auto; }
.gantt { --lw: 230px; position: relative; min-width: 760px; padding-bottom: 32px; }
.g-head, .g-row { display: flex; }
.g-head { border-bottom: 1px solid var(--line-soft); background: #f6f7f7; }
.g-label { flex: 0 0 var(--lw); padding: 10px 16px; position: sticky; left: 0; z-index: 2; background: #fff; }
.g-head .g-label { background: #f6f7f7; }
@media (max-width: 640px) {
  .gantt { --lw: 150px; min-width: 620px; }
  .g-label { padding: 10px 10px; }
}
.g-label strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.g-label span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.g-months { flex: 1; display: flex; }
.g-months span { flex: 1; padding: 10px 0 10px 10px; border-left: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.g-months span.now { color: var(--ink); font-weight: 600; }
.g-row { align-items: stretch; border-bottom: 1px solid var(--bg); }
.g-track {
  flex: 1; position: relative; min-height: 58px;
  background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(100% / var(--n) - 1px), var(--line-soft) calc(100% / var(--n) - 1px), var(--line-soft) calc(100% / var(--n)));
}
.g-bar { position: absolute; top: 19px; height: 20px; background: var(--line-soft); border: 1px solid #a7aaad; overflow: hidden; }
.g-overlay { position: absolute; top: 0; bottom: 0; left: var(--lw); right: 0; pointer-events: none; z-index: 1; }
.g-today { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid #d63638; }
.g-today span { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); padding: 1px 6px; background: #d63638; color: #fff; font-size: 11px; }

noscript { display: block; padding: 24px; }
