/* 코네스 작업 일지 — 다크/라이트 지원, 외부 CDN 없음 */
:root {
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --ok: #2fbf87;
  --ok-soft: rgba(47, 191, 135, 0.14);
  --prog: #4f8df7;
  --prog-soft: rgba(79, 141, 247, 0.15);
  --hold: #d99a1b;
  --hold-soft: rgba(217, 154, 27, 0.16);
  --accent: #fd6802;
  --accent-soft: rgba(253, 104, 2, 0.13);
  --accent-2: #ffae5c;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080d1a;
  --bg-2: #0b1224;
  --card: #101a2f;
  --card-2: #152039;
  --line: rgba(148, 170, 210, 0.16);
  --line-strong: rgba(148, 170, 210, 0.3);
  --text: #e9eefb;
  --muted: #94a3c0;
  --faint: #64748f;
  --shadow: 0 18px 50px rgba(2, 6, 20, 0.55);
  --glow: radial-gradient(60% 60% at 18% 0%, rgba(253, 104, 2, 0.16), transparent 70%),
    radial-gradient(50% 50% at 88% 8%, rgba(1, 37, 94, 0.55), transparent 72%);
  --grad-3: #8fb4ff;
  --card-shadow: none;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #edf0f7;
  --bg-2: #e3e9f3;
  --card: #ffffff;
  --card-2: #f7f9fe;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.18);
  --text: #101828;
  --muted: #566178;
  --faint: #7c879e;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --glow: radial-gradient(60% 60% at 15% 0%, rgba(253, 104, 2, 0.12), transparent 70%),
    radial-gradient(50% 50% at 90% 0%, rgba(120, 160, 235, 0.2), transparent 72%);
  --ok: #16855d;
  --prog: #2f6fd0;
  --hold: #a96f06;
  --grad-3: #3f6fc8;
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 30px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--glow);
  pointer-events: none;
  z-index: 0;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px;
  background: var(--accent); color: #fff; border-radius: 10px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: saturate(150%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 16px; letter-spacing: -0.01em; }
.brand-text small { font-size: 10.5px; letter-spacing: 0.16em; color: var(--faint); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.updated { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.icon-btn:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
:root[data-theme="dark"] .ico-moon { display: none; }
:root[data-theme="light"] .ico-sun { display: none; }

/* ---------- hero ---------- */
.hero { padding: 56px 24px 30px; }
.eyebrow {
  margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent-2); text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 16px; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.24;
  letter-spacing: -0.025em; font-weight: 800;
}
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 52%, var(--grad-3) 100%);
  background: linear-gradient(100deg in oklch, var(--accent) 0%, var(--grad-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 0 0 30px; max-width: 720px; color: var(--muted); font-size: 15.5px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px;
  box-shadow: var(--card-shadow);
}
.kpi::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 150px; height: 150px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
}
.kpi .kpi-label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi .kpi-value { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .kpi-value small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.kpi .kpi-sub { font-size: 12px; color: var(--faint); margin-top: 2px; }

/* ---------- tabs ---------- */
.tabs-bar {
  position: sticky; top: 69px; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 24px; scrollbar-width: none; }
.tab .t-short { display: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: 1px solid transparent; background: transparent; color: var(--muted);
  font: inherit; font-size: 14px; font-weight: 700; padding: 10px 15px; border-radius: 999px;
  cursor: pointer; white-space: nowrap; transition: all 0.18s;
}
.tab:hover { color: var(--text); background: var(--card); }
.tab.is-active {
  color: #fff; background: linear-gradient(135deg, var(--accent), #f03c01);
  box-shadow: 0 8px 20px rgba(253, 104, 2, 0.3);
}

main.wrap { padding-top: 28px; padding-bottom: 72px; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search {
  flex: 1 1 280px; min-width: 240px; display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px;
  transition: border-color 0.2s;
}
.search:focus-within { border-color: var(--accent); }
.search svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.search input {
  flex: 1; border: 0; outline: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 14px; padding: 11px 0; min-width: 0;
}
.search input::placeholder { color: var(--faint); }
.search-clear { border: 0; background: transparent; color: var(--faint); cursor: pointer; font-size: 13px; padding: 4px; }

.segmented { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700;
  padding: 7px 13px; border-radius: 9px; cursor: pointer; transition: all 0.15s;
}
.seg:hover { color: var(--text); }
.seg.is-active { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.seg.is-active[data-status="완료"] { color: var(--ok); }
.seg.is-active[data-status="진행"] { color: var(--prog); }
.seg.is-active[data-status="보류"] { color: var(--hold); }

.select-wrap select {
  appearance: none; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: inherit; font-size: 13.5px;
  padding: 10px 34px 10px 13px; cursor: pointer; max-width: 230px;
}
.ghost-btn {
  border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit;
  font-size: 13px; font-weight: 700; padding: 10px 14px; border-radius: 12px; cursor: pointer;
  transition: all 0.15s;
}
.ghost-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--card); }

.result-line { font-size: 12.5px; color: var(--faint); margin: 0 0 14px; }

/* ---------- journal ---------- */
.journal { display: flex; flex-direction: column; gap: 12px; }

.day {
  background: linear-gradient(165deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--card-shadow);
}
.day-head {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: transparent; border: 0; color: var(--text); font: inherit; cursor: pointer;
  padding: 16px 18px; transition: background 0.15s;
}
.day-head:hover { background: color-mix(in srgb, var(--card-2) 60%, transparent); }
.day-date { display: flex; align-items: baseline; gap: 8px; min-width: 132px; }
.day-date strong { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.day-date span { font-size: 12.5px; color: var(--muted); }
.day-count {
  font-size: 12px; font-weight: 700; color: var(--accent-2); background: var(--accent-soft);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.day-projects { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; min-width: 0; }
.day-emoji {
  font-size: 13px; background: var(--bg-2); border: 1px solid var(--line);
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px;
}
.caret { width: 18px; height: 18px; color: var(--faint); transition: transform 0.2s; flex: none; }
.day.is-open .caret { transform: rotate(180deg); }
.day-body { display: none; padding: 2px 18px 18px; }
.day.is-open .day-body { display: block; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 8px; border-left: 1px solid var(--line); }
.entry { position: relative; padding: 14px 0 14px 22px; }
.entry::before {
  content: ""; position: absolute; left: -5px; top: 22px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--faint); box-shadow: 0 0 0 4px var(--card);
}
.entry[data-status="완료"]::before { background: var(--ok); }
.entry[data-status="진행"]::before { background: var(--prog); }
.entry[data-status="보류"]::before { background: var(--hold); }
.entry-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 5px; }
.entry-time { font-family: var(--mono); font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.entry-title { margin: 0 0 6px; font-size: 16px; font-weight: 750; letter-spacing: -0.01em; }
.entry-summary { margin: 0; font-size: 14px; color: var(--muted); }
.entry-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }

.badge {
  font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 3px 9px; line-height: 1.5;
  border: 1px solid transparent; white-space: nowrap;
}
.badge.완료 { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.badge.진행 { color: var(--prog); background: var(--prog-soft); border-color: color-mix(in srgb, var(--prog) 35%, transparent); }
.badge.보류 { color: var(--hold); background: var(--hold-soft); border-color: color-mix(in srgb, var(--hold) 35%, transparent); }

.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
  color: var(--text); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px; cursor: pointer; font-family: inherit;
  max-width: 100%; transition: all 0.15s;
}
.tag:hover { border-color: var(--accent); color: var(--accent-2); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.art {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650;
  color: var(--text); text-decoration: none; border: 1px solid var(--line);
  background: var(--card); border-radius: 8px; padding: 4px 9px; transition: all 0.15s;
}
.art:hover { border-color: var(--accent); color: var(--accent-2); }
.art svg { width: 12px; height: 12px; opacity: 0.6; }

.next-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  color: var(--accent-2); background: var(--accent-soft); border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 8px; padding: 4px 10px; cursor: pointer; font-family: inherit;
}
.next-link:hover { border-style: solid; }

/* ---------- projects ---------- */
.section-head { margin-bottom: 18px; }
.section-head h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 760px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  font: inherit; font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 999px; cursor: pointer;
}
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pcard {
  position: relative; display: flex; flex-direction: column; gap: 10px; text-align: left;
  background: linear-gradient(165deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  cursor: pointer; font: inherit; color: var(--text); transition: transform 0.16s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--card-shadow);
}
.pcard:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.pcard-top { display: flex; align-items: flex-start; gap: 12px; }
.pcard-emoji {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; font-size: 22px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 13px;
}
.pcard-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pcard-title strong { font-size: 16px; letter-spacing: -0.01em; }
.pcard-title span { font-size: 11.5px; color: var(--faint); font-weight: 600; }
.pcard .badge { margin-left: auto; flex: none; }
.pcard-summary {
  font-size: 13px; color: var(--muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--faint); margin-top: auto; }
.pbar { flex: 1; height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.pcard-links { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- flow ---------- */
.flow-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.flow-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
  font-size: 13px; color: var(--muted);
}
.flow-stat strong { color: var(--text); font-size: 15px; margin-right: 5px; font-variant-numeric: tabular-nums; }

.sub-head { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 26px 0 12px; }

.chains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.chain {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--card-shadow);
}
.chain-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); font-weight: 800; letter-spacing: 0.06em; margin-bottom: 14px; }
.chain-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.step { margin: 0; }
.fnode {
  width: 100%; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 13px; padding: 11px 14px;
  font: inherit; color: var(--text); cursor: pointer; transition: all 0.15s;
}
.fnode:hover { border-color: var(--accent); transform: translateX(2px); }
.fnode .fnode-name { font-size: 14px; font-weight: 750; display: flex; align-items: center; gap: 6px; }
.fnode .fnode-meta { font-size: 11.5px; color: var(--faint); }
.fnode.is-final { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 6%, var(--card-2)); }
.step-arrow { display: flex; align-items: center; gap: 8px; padding: 3px 0 3px 18px; position: relative; }
.step-arrow .vline { position: absolute; left: 24px; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.step-arrow .varrow { color: var(--accent); font-size: 9px; margin-left: 14px; }
.step-arrow em { font-style: normal; font-size: 11.5px; color: var(--muted); line-height: 1.4; }

.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.link-card {
  display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 15px;
}
.link-pair { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 750; flex-wrap: wrap; }
.link-pair .arrow { color: var(--accent); }
.link-reason { font-size: 12.5px; color: var(--muted); margin: 0; }
.link-meta { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--faint); }

/* ---------- modal ---------- */
.modal {
  border: 0; padding: 0; margin: auto; background: transparent; color: var(--text);
  width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
}
.modal::backdrop { background: rgba(4, 8, 20, 0.66); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 22px;
  padding: 26px; max-height: calc(100vh - 48px); overflow: auto; box-shadow: var(--shadow);
}
.modal-close {
  position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; font-size: 14px;
}
.modal-close:hover { color: var(--text); border-color: var(--line-strong); }
.m-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 6px; padding-right: 40px; }
.m-emoji { width: 54px; height: 54px; display: grid; place-items: center; font-size: 27px; background: var(--card-2); border: 1px solid var(--line); border-radius: 15px; flex: none; }
.m-head h3 { margin: 0 0 3px; font-size: 22px; letter-spacing: -0.02em; }
.m-head .m-sub { font-size: 12.5px; color: var(--faint); }
.m-summary { color: var(--muted); font-size: 14px; margin: 12px 0 18px; }
.m-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.m-stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.m-stat b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.m-stat span { font-size: 11.5px; color: var(--faint); }
.m-links { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.m-section-title { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin: 20px 0 10px; }
.m-timeline { list-style: none; margin: 0; padding: 0; }
.m-timeline li { position: relative; padding: 0 0 14px 20px; border-left: 1px solid var(--line); }
.m-timeline li:last-child { border-left-color: transparent; }
.m-timeline li::before { content: ""; position: absolute; left: -4.5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.m-timeline li[data-status="완료"]::before { background: var(--ok); }
.m-timeline li[data-status="진행"]::before { background: var(--prog); }
.m-timeline li[data-status="보류"]::before { background: var(--hold); }
.m-timeline time { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.m-timeline p { margin: 2px 0 0; font-size: 13px; color: var(--text); font-weight: 600; }
.m-timeline .m-detail { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.m-next { display: flex; flex-direction: column; gap: 7px; }
.m-next-item { display: flex; gap: 8px; align-items: baseline; font-size: 13px; color: var(--muted); }
.m-next-item button { all: unset; cursor: pointer; color: var(--accent-2); font-weight: 700; }
.m-next-item button:hover { text-decoration: underline; }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 50px 20px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.link-btn { all: unset; color: var(--accent-2); cursor: pointer; font-weight: 700; }
.link-btn:hover { text-decoration: underline; }

.site-footer { border-top: 1px solid var(--line); padding: 26px 0 40px; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner strong { font-size: 14px; }
.footer-inner p { margin: 6px 0 0; font-size: 12px; color: var(--faint); max-width: 560px; }
.footer-meta { text-align: right; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: 60px; }
  .brand-text small { display: none; }
  .updated { display: none; }
  .hero { padding: 34px 16px 22px; }
  .hero h1 { font-size: 27px; }
  .lede { font-size: 14px; }
  .kpi { padding: 14px; border-radius: 15px; }
  .kpi .kpi-value { font-size: 27px; }
  .tabs-bar { top: 61px; }
  .tabs { padding: 8px 12px; }
  .tab { font-size: 13px; padding: 9px 12px; flex: 1 1 0; text-align: center; }
  .tab .t-long { display: none; }
  .tab .t-short { display: inline; }
  main { padding-top: 18px; }
  .toolbar { gap: 8px; }
  .search { flex-basis: 100%; }
  .segmented { flex: 1 1 auto; justify-content: space-between; }
  .select-wrap { flex: 1 1 100%; }
  .select-wrap select { width: 100%; max-width: none; }
  .ghost-btn { flex: 1 1 100%; }
  .day-head { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .day-date { min-width: 0; }
  .day-projects { order: 3; flex-basis: 100%; }
  .day-body { padding: 0 14px 14px; }
  .entry { padding-left: 16px; }
  .entry-title { font-size: 15px; }
  .entry-summary { font-size: 13.2px; }
  .project-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .chains { grid-template-columns: 1fr; }
  .m-stats { grid-template-columns: repeat(2, 1fr); }
  .modal-panel { padding: 20px; border-radius: 18px; }
  .m-head h3 { font-size: 19px; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
}
