:root {
  color-scheme: light dark;
  --page: #f7f7f5;
  --surface: #ffffff;
  --surface-soft: #f0f2ee;
  --ink: #24211d;
  --ink-soft: #514b44;
  --muted: #716a61;
  --line: #ded9d0;
  --line-strong: #bbb2a6;
  --accent: #c7462b;
  --accent-strong: #a93621;
  --green: #1e7964;
  --amber: #9b5b12;
  --red: #b53128;
  --violet: #7655a4;
  --header-height: 64px;
  --page-width: 1160px;
  --reading-width: 760px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --serif: ui-serif, Georgia, "Songti SC", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #181714;
    --surface: #22211e;
    --surface-soft: #2b2925;
    --ink: #f5f0e8;
    --ink-soft: #d0c8bd;
    --muted: #a39a8e;
    --line: #3c3832;
    --line-strong: #625b51;
    --accent: #ff896b;
    --accent-strong: #ffab94;
    --green: #72c4aa;
    --amber: #efb45f;
    --red: #f47c72;
    --violet: #b79add;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 14px/1.6 var(--font);
  letter-spacing: 0;
}
::selection { background: color-mix(in srgb, var(--amber) 34%, transparent); color: var(--ink); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button, input, textarea, select { color: inherit; font: inherit; letter-spacing: 0; }
button, select { cursor: pointer; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 14px; background: var(--ink); color: var(--surface); }
.skip-link:focus { top: 16px; }
[data-icon], .icon-button svg, .icon-text-button svg, .primary-button svg, .secondary-button svg { width: 17px; height: 17px; stroke-width: 2; flex: 0 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  min-height: var(--header-height);
  padding: 0 max(24px, calc((100vw - var(--page-width)) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 720; text-decoration: none; white-space: nowrap; }
.brand-mark { position: relative; width: 15px; height: 15px; border: 1px solid color-mix(in srgb, var(--ink) 72%, transparent); border-radius: 3px; background: var(--amber); transform: rotate(-3deg); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 1px; }
.brand-mark::before { left: 2px; top: 2px; background: var(--accent); }
.brand-mark::after { right: 2px; bottom: 2px; background: var(--green); }
.site-header-actions { display: flex; align-items: center; gap: 9px; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a { padding: 8px 10px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 620; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.nav-toggle { display: none !important; }

.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  display: inline-grid;
  place-items: center;
}
.icon-button:hover { background: var(--surface-soft); }
.icon-text-button, .primary-button, .secondary-button, .danger-button, .text-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.icon-text-button, .secondary-button { border: 1px solid var(--line); background: var(--surface); }
.icon-text-button:hover, .secondary-button:hover { border-color: var(--line-strong); }
.primary-button { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.primary-button:hover { background: var(--accent-strong); }
.danger-button { border: 1px solid color-mix(in srgb, var(--red) 38%, var(--line)); background: transparent; color: var(--red); }
.text-button { padding-inline: 8px; border: 0; background: transparent; color: var(--muted); }
.text-button:hover { color: var(--ink); }
button:disabled { opacity: .5; cursor: not-allowed; }

.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  width: 230px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
  display: grid;
}
.account-popover p { margin: 0 4px 7px; padding: 8px; border-bottom: 1px solid var(--line); display: grid; }
.account-popover p span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; }
.account-popover a, .account-popover button { min-height: 38px; padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; display: flex; align-items: center; gap: 9px; text-decoration: none; text-align: left; }
.account-popover a:hover, .account-popover button:hover { background: var(--surface-soft); }

.eyebrow { margin: 0 0 7px; color: var(--accent); display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 760; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); box-shadow: 4px 4px 0 var(--green); transform: rotate(-4deg); }
.home-hero, .page-band, .page-shell, .article-shell, .dashboard-shell { width: min(var(--page-width), calc(100% - 48px)); margin-inline: auto; }
.home-hero { position: relative; min-height: calc(72vh - var(--header-height)); padding: 82px 0 50px; display: grid; align-content: center; }
.home-hero::after { content: ""; position: absolute; right: 0; top: 20%; width: 88px; height: 88px; border-top: 2px solid var(--amber); border-right: 2px solid var(--green); opacity: .62; pointer-events: none; }
.home-hero h1 { max-width: 900px; margin: 0; font-size: 68px; line-height: 1.02; font-weight: 760; }
.hero-name-accent { position: relative; z-index: 0; display: inline-block; }
.hero-name-accent::after { content: ""; position: absolute; z-index: -1; left: .02em; right: -.03em; bottom: .06em; height: .17em; border-radius: 2px; background: var(--amber); opacity: .72; transform: rotate(-1.5deg); }
.home-hero > p:not(.eyebrow) { max-width: 680px; margin: 24px 0 32px; color: var(--ink-soft); font-family: var(--serif); font-size: 19px; line-height: 1.85; }
.hero-links { max-width: 1040px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hero-links a { --hero-color: var(--accent); position: relative; min-height: 94px; padding: 17px 15px 14px; border: 1px solid var(--line); border-top: 3px solid var(--hero-color); border-radius: 8px; background: color-mix(in srgb, var(--surface) 72%, transparent); color: var(--ink); display: flex; align-items: center; gap: 13px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.hero-links a:hover { background: var(--surface); box-shadow: 0 12px 26px color-mix(in srgb, var(--ink) 10%, transparent); transform: translateY(-3px); }
.hero-link-life { --hero-color: var(--green) !important; }
.hero-link-circle { --hero-color: var(--amber) !important; }
.hero-link-plan { --hero-color: var(--violet) !important; }
.hero-links svg { width: 21px; height: 21px; color: var(--hero-color); }
.hero-links span { min-width: 0; display: grid; }
.hero-links strong { font-size: 14px; }
.hero-links small { color: var(--muted); }
.hero-link-index { position: absolute; right: 10px; top: 8px; color: var(--hero-color) !important; font: 700 9px/1 var(--mono); }

.page-band { padding: 60px 0 76px; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.section-heading h2 { margin: 0; font-size: 27px; line-height: 1.2; }
.section-heading > a { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.section-heading > a:hover { color: var(--accent); }
.home-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }

.content-list { display: grid; gap: 2px; }
.content-row { --type-color: var(--accent); padding: 24px 0 24px 18px; border-top: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--type-color); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.content-row.type-pick { --type-color: var(--violet); }
.content-row.type-viral_reference { --type-color: var(--amber); }
.content-row.type-life { --type-color: var(--green); }
.content-row.type-circle { --type-color: var(--amber); }
.content-row-visual { padding: 12px 0; border: 0; box-shadow: none; }
.content-visual { position: relative; min-height: 300px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--type-color) 48%, var(--line)); border-radius: 8px; background: #28231f; color: #fff; display: grid; align-items: end; isolation: isolate; text-decoration: none; }
.content-visual-image, .content-visual-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.content-visual-image { z-index: -2; object-fit: cover; transform: scale(1.002); transition: transform .45s ease; }
.content-visual-shade { z-index: -1; background: rgba(20, 17, 14, .56); transition: background .25s ease; }
.content-visual-copy { min-width: 0; padding: 28px; display: grid; justify-items: start; }
.content-visual .content-meta { color: rgba(255,255,255,.78); }
.content-visual .content-meta span { color: #fff; }
.content-visual .content-visual-title { max-width: 850px; margin: 0; color: #fff; font-size: 30px; font-weight: 760; line-height: 1.16; text-wrap: balance; }
.content-visual-summary { max-width: 720px; margin-top: 10px; color: rgba(255,255,255,.86); display: -webkit-box; overflow: hidden; font-family: var(--serif); font-size: 15px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.content-visual-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.content-visual-tags > span { padding: 3px 7px; border: 1px solid rgba(255,255,255,.4); border-radius: 5px; background: rgba(20,17,14,.24); color: rgba(255,255,255,.9); font-size: 10px; }
.content-visual-action { margin-top: 22px; color: #fff; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 720; }
.content-visual-action svg { width: 15px; height: 15px; transition: transform .2s ease; }
.content-visual:hover .content-visual-image { transform: scale(1.045); }
.content-visual:hover .content-visual-shade { background: rgba(20, 17, 14, .48); }
.content-visual:hover .content-visual-action svg { transform: translateX(4px); }
.content-meta { margin: 0 0 7px; color: var(--muted); display: flex; align-items: center; gap: 9px; font-size: 11px; }
.content-meta span { color: var(--type-color, var(--accent)); font-weight: 700; }
.content-row h2 { margin: 0; font-size: 22px; line-height: 1.3; }
.content-row h2 a { text-decoration: none; }
.content-row h2 a:hover { color: var(--accent); }
.content-row > div > p:not(.content-meta) { max-width: 760px; margin: 9px 0 0; color: var(--ink-soft); }
.tag-list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list a { padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 11px; text-decoration: none; }
.tag-list a:hover { border-color: var(--line-strong); color: var(--ink); }
.plan-highlights { display: grid; }
.plan-highlights a { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-decoration: none; }
.plan-highlights a > span { color: var(--accent); font-size: 10px; text-transform: uppercase; }
.plan-highlights a > strong { grid-column: 1; }
.plan-highlights a > small { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--muted); }

.circle-feed { width: min(760px, 100%); display: grid; gap: 32px; }
.circle-entry { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); display: grid; grid-template-columns: minmax(280px, 48%) minmax(0, 1fr); }
.circle-feed .circle-entry { grid-template-columns: 1fr; }
.circle-entry-media { min-width: 0; border-right: 1px solid var(--line); background: var(--surface-soft); display: grid; place-items: center; }
.circle-entry-media { position: relative; cursor: zoom-in; }
.circle-feed .circle-entry-media { border-right: 0; border-bottom: 1px solid var(--line); }
.circle-entry-media img { width: 100%; height: auto; max-height: 820px; object-fit: contain; display: block; }
.circle-home .circle-entry-media img { max-height: 560px; }
.circle-media-hint { position: absolute; right: 12px; bottom: 12px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.24); border-radius: 6px; background: rgba(20,17,14,.72); color: #fff; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; }
.circle-media-hint svg { width: 14px; height: 14px; }
.circle-entry-media:hover .circle-media-hint, .circle-entry-media:focus-visible .circle-media-hint { opacity: 1; transform: none; }
.circle-entry-copy { min-width: 0; padding: 26px; align-content: center; display: grid; justify-items: start; }
.circle-entry h2 { margin: 0; font-size: 25px; line-height: 1.24; }
.circle-entry h2 a { text-decoration: none; }
.circle-entry h2 a:hover { color: var(--accent); }
.circle-entry-copy > p:not(.content-meta) { margin: 12px 0 0; color: var(--ink-soft); font-family: var(--serif); font-size: 16px; line-height: 1.7; }
.circle-entry .tag-list li > span { padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 11px; }
.circle-entry-action { margin-top: 22px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-decoration: none; }
.circle-entry-action svg { width: 15px; height: 15px; }
.circle-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.circle-heading > div > p:last-child { margin: 16px 0 0; color: var(--ink-soft); font-family: var(--serif); font-size: 17px; }
.circle-random { min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.circle-random:not(:disabled):hover { border-color: var(--amber); color: var(--accent); }
.circle-random:disabled { opacity: .45; cursor: not-allowed; }
.circle-random svg { width: 15px; height: 15px; }
.circle-filters { width: min(760px, 100%); margin: -8px 0 24px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); display: grid; grid-template-columns: minmax(170px, 1fr) 110px auto auto; align-items: end; gap: 8px; }
.circle-filters label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 700; }
.circle-filters input { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.circle-filters button, .circle-filters > a { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; display: inline-grid; place-items: center; font-size: 12px; text-decoration: none; }
.circle-filters button { background: var(--ink); color: var(--surface); }
.circle-filters > a { background: var(--surface); color: var(--muted); }
.circle-pagination { width: min(760px, 100%); margin-top: 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.circle-pagination a { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-decoration: none; }
.circle-pagination a:last-child { justify-self: end; }
.circle-pagination small { color: var(--muted); }
.circle-lightbox { width: min(1100px, calc(100vw - 32px)); height: min(92dvh, 1000px); padding: 0; border: 0; border-radius: 8px; background: #14110e; overflow: hidden; }
.circle-lightbox::backdrop { background: rgba(10,9,8,.88); backdrop-filter: blur(8px); }
.circle-lightbox img { width: 100%; height: 100%; object-fit: contain; display: block; }
.circle-lightbox-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(20,17,14,.75); color: #fff; display: grid; place-items: center; }
.circle-lightbox-close svg { width: 18px; height: 18px; }
.has-lightbox { overflow: hidden; }

.guestbook-page { width: min(var(--page-width), calc(100% - 48px)); min-height: calc(100dvh - var(--header-height)); margin-inline: auto; padding: 76px 0 100px; display: grid; grid-template-columns: minmax(0, .82fr) minmax(420px, 1fr); align-items: start; gap: clamp(48px, 8vw, 120px); }
.guestbook-intro { position: sticky; top: calc(var(--header-height) + 54px); padding-top: 18px; }
.guestbook-intro h1 { max-width: 620px; margin: 12px 0 20px; font-size: clamp(48px, 6vw, 78px); line-height: 1.04; }
.guestbook-intro > p:last-child { max-width: 470px; color: var(--ink-soft); font-family: var(--serif); font-size: 18px; }
.guestbook-compose { padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 18px 50px rgba(28,23,18,.08); }
.guestbook-compose > header { margin-bottom: 22px; padding-bottom: 17px; border-bottom: 1px solid var(--line); display: flex; align-items: start; justify-content: space-between; }
.guestbook-compose > header h2 { margin: 2px 0 0; font-size: 25px; }
.guestbook-compose > header > svg { width: 24px; height: 24px; color: var(--amber); }
.guestbook-compose form { display: grid; gap: 17px; }
.guestbook-compose fieldset { margin: 0; padding: 0; border: 0; }
.guestbook-compose legend { margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.guestbook-tones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.guestbook-tones input { position: absolute; opacity: 0; pointer-events: none; }
.guestbook-tones span { min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; font-size: 12px; text-align: center; cursor: pointer; }
.guestbook-tones input:checked + span { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 10%, var(--surface)); color: var(--amber); font-weight: 700; }
.guestbook-tones input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.guestbook-message { position: relative; }
.guestbook-message textarea { min-height: 180px; }
.guestbook-message small { position: absolute; right: 10px; bottom: 8px; color: var(--muted); font-size: 10px; }
.guestbook-send { min-height: 44px; border: 0; border-radius: 7px; background: var(--ink); color: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; }
.guestbook-send:hover { background: var(--accent); }
.guestbook-send:disabled { opacity: .55; cursor: wait; }
.guestbook-note { grid-column: 2; margin-top: -80px; transform: translateX(28px); max-width: 300px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); display: flex; gap: 10px; }
.guestbook-note > span { color: var(--green); }
.guestbook-note p { margin: 0; color: var(--muted); font-size: 11px; }
.guestbook-note strong { color: var(--ink); }

.page-shell { min-height: 68vh; padding: 70px 0 90px; }
.page-heading { max-width: 760px; margin-bottom: 34px; padding-left: 18px; border-left: 4px solid var(--amber); }
.page-heading h1 { margin: 0; font-size: 44px; line-height: 1.1; }
.page-heading > p:last-child { margin: 16px 0 0; color: var(--ink-soft); font-family: var(--serif); font-size: 17px; }
.secondary-tabs { position: sticky; top: var(--header-height); z-index: 30; margin: 0 0 22px; padding: 7px 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--page) 94%, transparent); backdrop-filter: blur(12px); display: flex; gap: 5px; }
.secondary-tabs a { padding: 7px 10px; border-radius: 6px; color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.secondary-tabs a[aria-current="page"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.filter-toolbar { padding: 12px 0 18px; display: grid; grid-template-columns: minmax(220px, 1fr) 180px 110px auto auto; gap: 8px; }
.search-field { min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); display: flex; align-items: center; gap: 8px; }
.search-field svg { width: 16px; height: 16px; color: var(--muted); }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; }
.filter-toolbar > input, .plan-toolbar select { min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.result-count { color: var(--muted); font-size: 11px; }
.archive-groups section { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; }
.archive-groups h2 { margin: 0; font-size: 22px; }
.archive-groups section > div { display: grid; }
.archive-groups a { min-height: 44px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent); display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 12px; text-decoration: none; }
.archive-groups a time, .archive-groups a small { color: var(--muted); font-size: 11px; }

.article-shell { min-height: 70vh; padding: 84px 0 100px; }
.article-shell > article { width: min(var(--reading-width), 100%); margin-inline: auto; }
.article-header { margin-bottom: 52px; }
.article-header-copy { position: relative; z-index: 1; }
.article-header-visual { position: relative; width: min(980px, calc(100vw - 48px)); min-height: min(500px, 64vh); margin-left: 50%; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: 8px; background: #28231f; color: #fff; display: grid; align-items: end; isolation: isolate; transform: translateX(-50%); }
.article-header-image, .article-header-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.article-header-image { z-index: -2; object-fit: cover; }
.article-header-shade { z-index: -1; background: rgba(20,17,14,.56); }
.article-header-visual .article-header-copy { width: min(var(--reading-width), calc(100% - 48px)); margin-inline: auto; padding: 58px 0 42px; }
.article-header-visual .content-meta { color: rgba(255,255,255,.76); }
.article-header-visual .content-meta span, .article-header-visual h1 { color: #fff; }
.article-header-visual .article-summary, .article-header-visual .source-line { color: rgba(255,255,255,.86); }
.article-header-visual .source-line a { color: #fff; }
.article-header-visual .tag-list a { border-color: rgba(255,255,255,.38); background: rgba(20,17,14,.2); color: rgba(255,255,255,.9); }
.article-header h1 { margin: 14px 0 0; font-size: 46px; line-height: 1.14; }
.article-summary { margin: 22px 0 0; color: var(--ink-soft); font-family: var(--serif); font-size: 19px; line-height: 1.75; }
.source-line { color: var(--muted); font-size: 12px; }
.markdown-body { color: var(--ink-soft); font-family: var(--serif); font-size: 17px; line-height: 1.85; overflow-wrap: break-word; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { color: var(--ink); font-family: var(--font); line-height: 1.28; }
.markdown-body h2 { margin-top: 2em; font-size: 27px; }
.markdown-body h3 { margin-top: 1.7em; font-size: 21px; }
.markdown-body a { color: var(--accent); text-underline-offset: 3px; }
.markdown-body blockquote { margin-inline: 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.markdown-body pre { overflow-x: auto; padding: 18px; border-radius: 7px; background: #171b21; color: #edf1f5; font: 13px/1.65 var(--mono); }
.markdown-body :not(pre) > code { padding: 2px 5px; border-radius: 4px; background: var(--surface-soft); font-family: var(--mono); font-size: .88em; }
.inline-media { margin: 32px 0; }
.inline-media img { width: 100%; height: auto; border-radius: 6px; }
.inline-media figcaption { margin-top: 8px; color: var(--muted); font: 11px/1.5 var(--font); text-align: center; }
.markdown-body table { width: 100%; border-collapse: collapse; font: 13px/1.5 var(--font); }
.markdown-body th, .markdown-body td { padding: 9px; border: 1px solid var(--line); text-align: left; }
.raw-html-blocked { border-left: 3px solid var(--amber); }
.community { margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line); }
.community-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.community-action { min-width: 82px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.community-action:hover { border-color: var(--line-strong); }
.community-action[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); color: var(--accent); }
.community-action [data-count] { min-width: 1.5em; color: var(--muted); font-size: 11px; text-align: right; }
.community-status { min-height: 22px; margin: 8px 0; color: var(--muted); font-size: 12px; }
.community-status.is-error { color: var(--red); }
.community-discussion { margin-top: 24px; }
.community-discussion > header { min-height: 52px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.community-discussion > header h2 { margin: 0 0 12px; font-size: 25px; }
.community-composer { margin: 18px 0 26px; display: grid; gap: 8px; }
.community-composer textarea { width: 100%; min-height: 112px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); resize: vertical; outline: 0; }
.community-composer textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent); }
.community-composer footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.community-reply-context { min-height: 38px; padding: 5px 8px 5px 12px; border-left: 3px solid var(--accent); background: var(--surface-soft); display: flex; align-items: center; justify-content: space-between; }
.community-comments { display: grid; }
.community-comment { padding: 17px 0; border-bottom: 1px solid var(--line); }
.community-comment.is-reply { margin-left: 32px; padding-left: 15px; border-left: 2px solid var(--line); }
.community-comment > header { display: flex; align-items: center; gap: 10px; }
.community-comment > header strong { font-size: 13px; }
.community-comment > header time { color: var(--muted); font-size: 10px; }
.community-comment > p { margin: 8px 0; color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.community-comment > footer { display: flex; gap: 3px; }
.community-comment .text-button { min-height: 30px; padding-inline: 5px; font-size: 11px; }
.text-button.is-danger { color: var(--red); }
.video-frame { aspect-ratio: 16 / 9; margin: 0 0 38px; background: #111; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.transcript { margin-top: 50px; border-top: 1px solid var(--line); }
.transcript summary { min-height: 52px; display: flex; align-items: center; color: var(--ink); font-weight: 680; cursor: pointer; }
.transcript > div { max-height: 620px; overflow-y: auto; padding-right: 10px; }
.transcript p { margin: 0; padding: 9px 0; border-top: 1px solid color-mix(in srgb, var(--line) 62%, transparent); display: grid; grid-template-columns: 78px 1fr; gap: 10px; color: var(--ink-soft); font-size: 12px; }
.transcript p a { color: var(--accent); font-family: var(--mono); text-decoration: none; }

.plan-page { min-height: calc(100dvh - var(--header-height)); display: grid; grid-template-rows: auto auto minmax(600px, 1fr); }
.plan-heading { padding: 28px max(24px, calc((100vw - var(--page-width)) / 2)) 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.plan-heading h1 { margin: 0; font-size: 36px; }
.plan-heading p:last-child { margin: 7px 0 0; color: var(--muted); }
.plan-heading-actions { display: flex; gap: 8px; }
.plan-toolbar { min-width: 0; padding: 8px max(16px, calc((100vw - var(--page-width)) / 2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; gap: 7px; overflow-x: auto; }
.plan-toolbar .search-field { min-width: 240px; }
.plan-toolbar select { flex: 0 0 auto; }
.plan-edge-menu { position: relative; flex: 0 0 auto; }
.plan-edge-menu summary { list-style: none; cursor: pointer; }
.plan-edge-menu summary::-webkit-details-marker { display: none; }
.plan-edge-menu > div { position: fixed; z-index: 30; margin-top: 6px; min-width: 140px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: 0 14px 34px rgba(0,0,0,.16); display: grid; }
.plan-edge-menu label { min-height: 38px; padding: 5px 7px; display: flex; align-items: center; gap: 8px; }
.plan-edge-menu input { accent-color: var(--accent); }
.save-indicator { color: var(--muted); font-size: 11px; white-space: nowrap; }
.save-indicator.is-dirty { color: var(--amber); }
.save-indicator.is-error { color: var(--red); }
.plan-workspace { position: relative; min-height: 600px; height: calc(100dvh - 222px); overflow: hidden; background: var(--surface-soft); }
.plan-canvas { position: absolute; inset: 0; }
.plan-list { position: absolute; inset: 0; padding: 18px max(18px, calc((100vw - 900px) / 2)); overflow-y: auto; background: var(--page); display: grid; align-content: start; gap: 7px; }
.plan-list button { min-height: 66px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; }
.plan-list button span { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.plan-list button small { color: var(--muted); }
.plan-detail { position: absolute; z-index: 10; top: 0; right: 0; width: min(440px, 92vw); height: 100%; padding: 26px; border-left: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 97%, transparent); box-shadow: -16px 0 38px rgba(0,0,0,.12); overflow-y: auto; }
.plan-detail-close { position: sticky; top: 0; float: right; background: var(--surface); }
.plan-detail .node-domain { color: var(--accent); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.plan-detail h2 { margin: 8px 42px 8px 0; font-size: 25px; line-height: 1.2; }
.plan-detail .node-summary { color: var(--ink-soft); font-family: var(--serif); font-size: 16px; }
.plan-detail .node-dates, .plan-detail .node-updated { color: var(--muted); font-size: 11px; }
.node-metrics { margin: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.node-metrics span { padding: 9px; border: 1px solid var(--line); border-radius: 6px; display: grid; color: var(--muted); font-size: 10px; }
.node-metrics strong { color: var(--ink); font-size: 14px; }
.node-relations, .node-hierarchy { margin-top: 22px; }
.node-relations h3, .node-hierarchy h3 { margin: 0 0 8px; font-size: 13px; }
.node-relations button { width: 100%; min-height: 42px; padding: 7px 0; border: 0; border-top: 1px solid var(--line); background: transparent; display: grid; grid-template-columns: 70px 1fr; text-align: left; }
.node-relations button span { color: var(--muted); font-size: 10px; }
.node-hierarchy > div { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.node-hierarchy button { min-height: 34px; padding: 0 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); }
.node-hierarchy span { color: var(--muted); }
.plan-minimap { position: absolute; left: 14px; bottom: 14px; width: 150px; height: 100px; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb, var(--surface) 90%, transparent); pointer-events: none; }
.plan-minimap i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.plan-node-form { display: grid; gap: 12px; }
.plan-node-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.plan-node-form footer { display: flex; gap: 8px; }

.dashboard-shell { min-height: 70vh; padding: 58px 0 90px; }
.dashboard-heading { margin-bottom: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.dashboard-heading h1 { margin: 0; font-size: 38px; }
.dashboard-heading p:last-child { margin: 7px 0 0; color: var(--muted); }
.dashboard-list { border-top: 1px solid var(--line); }
.dashboard-list > a { min-height: 70px; padding: 14px 8px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 14px; text-decoration: none; }
.dashboard-list > a:hover { background: var(--surface-soft); }
.dashboard-list > a div { min-width: 0; display: grid; }
.dashboard-list > a strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-list > a small { color: var(--muted); }
.dashboard-list > .asset-row { min-height: 70px; padding: 14px 8px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 14px; }
.dashboard-list > .asset-row div { min-width: 0; display: grid; }
.dashboard-list > .asset-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-list > .asset-row small { color: var(--muted); }
.status-badge { width: fit-content; padding: 3px 7px; border-radius: 5px; background: color-mix(in srgb, var(--muted) 12%, transparent); color: var(--muted); font-size: 10px; font-weight: 700; }
.status-submitted, .status-in_review, .status-scheduled { background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--accent); }
.status-published { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); }
.status-rejected { background: color-mix(in srgb, var(--red) 11%, transparent); color: var(--red); }
.status-changes_requested { background: color-mix(in srgb, var(--amber) 12%, transparent); color: var(--amber); }
.type-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.type-picker form { margin: 0; }
.type-picker button { width: 100%; min-height: 110px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); display: grid; grid-template-columns: 1fr auto; gap: 5px; text-align: left; }
.type-picker strong { font-size: 18px; }
.type-picker span { grid-column: 1; color: var(--muted); }
.type-picker svg { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.metric-grid { margin-bottom: 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.metric-grid a { min-height: 110px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); display: grid; align-content: space-between; text-decoration: none; }
.metric-grid span { color: var(--muted); }
.metric-grid strong { font-size: 30px; }
.admin-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.admin-links > a { min-height: 100px; padding: 17px; border-top: 2px solid var(--line-strong); display: flex; align-items: flex-start; gap: 12px; text-decoration: none; }
.admin-links > a:hover { background: var(--surface); }
.admin-links span { display: grid; }
.admin-links small { color: var(--muted); }

.editor-page { min-height: calc(100dvh - var(--header-height)); }
.editor-commandbar { position: sticky; top: var(--header-height); z-index: 35; min-height: 54px; padding: 7px max(18px, calc((100vw - 1320px) / 2)); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--page) 94%, transparent); backdrop-filter: blur(12px); display: flex; align-items: center; gap: 8px; }
.editor-commandbar .save-indicator { margin-left: auto; }
.editor-layout { width: min(1320px, calc(100% - 36px)); margin: 0 auto; padding: 28px 0 70px; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
.editor-main { min-width: 0; display: grid; grid-template-rows: auto auto 46px minmax(620px, 72vh); grid-template-columns: 1fr 1fr; }
.editor-title { grid-column: 1 / -1; width: 100%; padding: 0 0 8px; border: 0; background: transparent; font-size: 38px; line-height: 1.15; font-weight: 740; outline: 0; }
.slug-field { grid-column: 1 / -1; margin-bottom: 18px; color: var(--muted); display: flex; align-items: center; font-family: var(--mono); font-size: 11px; }
.slug-field input { min-width: 0; width: 400px; padding: 4px 5px; border: 0; border-radius: 4px; background: transparent; outline: 0; }
.slug-field input:focus { background: var(--surface); }
.editor-toolbar { grid-column: 1 / -1; padding: 4px 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--surface); display: flex; align-items: center; gap: 2px; }
.editor-toolbar > span { flex: 1; }
.markdown-editor, .editor-preview { min-width: 0; min-height: 0; height: 100%; border: 1px solid var(--line); background: var(--surface); overflow: auto; }
.markdown-editor { border-radius: 0 0 0 8px; }
.editor-preview { padding: 24px; border-left: 0; border-radius: 0 0 8px 0; }
.editor-main.preview-hidden { grid-template-columns: 1fr; }
.editor-main.preview-hidden .editor-preview { display: none; }
.editor-main.preview-hidden .markdown-editor { border-radius: 0 0 8px 8px; }
.cm-editor { height: 100%; background: var(--surface); }
.cm-scroller { font-family: var(--mono); font-size: 13px; line-height: 1.7; }
.cm-content { padding: 20px 16px 100px; }
.cm-gutters { background: var(--surface) !important; border-right: 1px solid var(--line) !important; color: var(--muted) !important; }
.cm-focused { outline: 0 !important; }
.editor-sidebar { display: grid; align-content: start; gap: 13px; }
.field { min-width: 0; display: grid; gap: 5px; }
.field > span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.field input, .field textarea, .field select, .plan-node-form input, .plan-node-form textarea, .plan-node-form select, .idea-inbox select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); outline: 0; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent); }
.upload-panel { padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); display: grid; gap: 9px; }
.upload-panel header { display: flex; justify-content: space-between; }
.upload-panel header span { color: var(--muted); font-size: 10px; }
.upload-list { display: grid; gap: 6px; }
.upload-item { padding: 7px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 11px; }
.upload-item progress { grid-column: 1 / -1; width: 100%; }
.review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.review-actions .primary-button { grid-column: 1 / -1; }
.submission-status { padding: 13px; border-left: 3px solid var(--accent); background: var(--surface-soft); display: grid; }
.submission-status span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.submission-status p { margin-bottom: 0; color: var(--ink-soft); }

.idea-inbox { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.idea-inbox article { padding: 17px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); display: grid; gap: 10px; }
.idea-inbox article header, .idea-inbox article > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.idea-inbox h2, .idea-inbox p { margin: 0; }
.idea-inbox p { white-space: pre-wrap; color: var(--ink-soft); }
.idea-inbox time { color: var(--muted); font-size: 10px; }

.auth-dialog, .idea-dialog { width: min(500px, calc(100vw - 30px)); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: 0 26px 80px rgba(0,0,0,.26); }
.auth-dialog::backdrop, .idea-dialog::backdrop { background: rgba(0,0,0,.5); backdrop-filter: blur(3px); }
.auth-shell, .idea-dialog form { padding: 22px; display: grid; gap: 14px; }
.auth-shell header, .idea-dialog header { display: flex; align-items: flex-start; justify-content: space-between; }
.auth-shell h2, .idea-dialog h2 { margin: 0; font-size: 23px; }
.dialog-copy, .idea-dialog form > p { margin: 0; color: var(--muted); }
.form-status { min-height: 20px; margin: 0; color: var(--muted); font-size: 12px; }
.form-status.is-error { color: var(--red); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }
.toast { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 1000; max-width: min(430px, calc(100vw - 36px)); padding: 11px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--ink); color: var(--surface); box-shadow: 0 14px 40px rgba(0,0,0,.22); }
.toast.is-error { background: var(--red); color: #fff; }
.empty-state { padding: 30px 0; color: var(--muted); }
.not-found { min-height: 70vh; padding: 100px 24px; display: grid; place-content: center; justify-items: center; text-align: center; }
.not-found h1 { margin: 0; font-size: 44px; }
.not-found div { margin-top: 20px; display: flex; gap: 8px; }
.site-footer { width: min(var(--page-width), calc(100% - 48px)); min-height: 90px; margin-inline: auto; padding: 26px 0; border-top: 1px solid var(--line); color: var(--muted); display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; font-size: 11px; }
.site-footer span:last-child { display: flex; gap: 14px; }

@media (max-width: 900px) {
  .site-header { padding-inline: 16px; }
  .nav-toggle { display: inline-grid !important; margin-left: auto; }
  .site-header-actions { position: fixed; inset: var(--header-height) 0 auto; padding: 12px 16px 16px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: 0 14px 32px rgba(0,0,0,.14); display: none; grid-template-columns: 1fr auto auto; }
  .site-header-actions.is-open { display: grid; }
  .site-header nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); }
  .site-header nav a { min-height: 44px; display: grid; place-items: center; }
  .home-hero { min-height: auto; padding-top: 62px; }
  .home-hero h1 { font-size: 54px; }
  .hero-links { grid-template-columns: repeat(2, 1fr); }
  .home-secondary { grid-template-columns: 1fr; gap: 46px; }
  .content-visual { min-height: 280px; }
  .filter-toolbar { grid-template-columns: 1fr 1fr 100px auto; }
  .filter-toolbar .search-field { grid-column: 1 / -1; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-sidebar { grid-template-columns: repeat(2, 1fr); }
  .upload-panel, .review-actions, .submission-status { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-links { grid-template-columns: 1fr; }
  .plan-workspace { height: calc(100dvh - 242px); }
  .guestbook-page { grid-template-columns: 1fr; gap: 38px; }
  .guestbook-intro { position: static; padding-top: 0; }
  .guestbook-note { grid-column: 1; margin: -18px 0 0; transform: none; }
}

@media (max-width: 650px) {
  :root { --header-height: calc(58px + env(safe-area-inset-top)); }
  .site-header { min-height: var(--header-height); padding-top: env(safe-area-inset-top); }
  .site-header-actions { top: var(--header-height); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .site-header nav { grid-template-columns: repeat(3, 1fr); }
  .home-hero, .page-band, .page-shell, .article-shell, .dashboard-shell, .site-footer { width: min(100% - 30px, var(--page-width)); }
  .home-hero { padding: 48px 0 34px; }
  .home-hero::after { display: none; }
  .home-hero h1 { font-size: 44px; }
  .home-hero > p:not(.eyebrow) { font-size: 17px; }
  .hero-links { grid-template-columns: repeat(2, 1fr); }
  .hero-links a { min-height: 68px; }
  .hero-links svg { display: none; }
  .circle-entry { grid-template-columns: 1fr; }
  .circle-entry-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .circle-entry-media img, .circle-home .circle-entry-media img { max-height: none; }
  .circle-entry-copy { padding: 18px; }
  .circle-entry h2 { font-size: 21px; }
  .circle-heading { align-items: start; }
  .circle-heading .circle-random span { display: none; }
  .circle-filters { grid-template-columns: 1fr 92px; }
  .circle-filters button, .circle-filters > a { width: 100%; }
  .circle-media-hint { opacity: 1; transform: none; }
  .page-band { padding: 42px 0 55px; }
  .section-heading { align-items: flex-start; }
  .content-row { padding: 20px 0 20px 14px; }
  .content-row-visual { padding: 8px 0; }
  .content-visual { min-height: 245px; }
  .content-visual-copy { padding: 18px; }
  .content-visual .content-visual-title { font-size: 23px; }
  .content-visual-summary { font-size: 14px; -webkit-line-clamp: 2; }
  .content-visual-tags { margin-top: 10px; }
  .content-visual-action { margin-top: 15px; }
  .content-row h2 { font-size: 18px; }
  .content-row > div > p:not(.content-meta) { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .page-shell { padding: 46px 0 65px; }
  .guestbook-page { width: min(100% - 30px, var(--page-width)); padding: 46px 0 70px; }
  .guestbook-intro h1 { font-size: 44px; }
  .guestbook-compose { padding: 18px; }
  .guestbook-tones { grid-template-columns: 1fr; }
  .page-heading h1 { font-size: 36px; }
  .secondary-tabs { top: var(--header-height); overflow-x: auto; }
  .filter-toolbar { grid-template-columns: 1fr 90px; }
  .filter-toolbar > input[name="tag"] { grid-column: 1; }
  .archive-groups section { grid-template-columns: 1fr; gap: 8px; }
  .archive-groups a { grid-template-columns: 86px 1fr; }
  .archive-groups a small { display: none; }
  .article-shell { padding: 52px 0 70px; }
  .article-header h1 { font-size: 35px; }
  .article-header-visual { width: calc(100vw - 30px); min-height: 420px; }
  .article-header-visual .article-header-copy { width: calc(100% - 30px); padding: 38px 0 28px; }
  .article-header-visual .article-summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .article-summary { font-size: 17px; }
  .markdown-body { font-size: 16px; }
  .community-action { flex: 1 1 calc(50% - 7px); }
  .community-comment.is-reply { margin-left: 14px; }
  .plan-page { grid-template-rows: auto auto minmax(500px, 1fr); }
  .plan-heading { padding: 20px 15px 14px; align-items: flex-start; }
  .plan-heading h1 { font-size: 30px; }
  .plan-heading > div > p:last-child { display: none; }
  .plan-heading-actions .secondary-button, .plan-heading-actions .primary-button { width: 40px; padding: 0; }
  .plan-heading-actions .secondary-button { font-size: 0; }
  .plan-toolbar { padding-inline: 8px; }
  .plan-toolbar .search-field { min-width: 190px; }
  .plan-workspace { min-height: 500px; height: calc(100dvh - 210px - env(safe-area-inset-bottom)); }
  .plan-canvas { display: none; }
  .plan-list { display: grid !important; }
  .plan-view-toggle, .plan-minimap { display: none; }
  .plan-detail { width: 100%; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
  .dashboard-shell { padding: 40px 0 65px; }
  .dashboard-heading { align-items: flex-start; }
  .dashboard-heading h1 { font-size: 32px; }
  .dashboard-heading .primary-button { width: 40px; padding: 0; font-size: 0; }
  .dashboard-list > a { grid-template-columns: 80px minmax(0, 1fr) auto; }
  .type-picker, .metric-grid, .idea-inbox { grid-template-columns: 1fr; }
  .editor-commandbar { top: var(--header-height); padding-inline: 8px; }
  .editor-commandbar .icon-text-button { width: 38px; padding: 0; font-size: 0; }
  .editor-layout { width: calc(100% - 20px); padding-top: 18px; }
  .editor-main { grid-template-columns: 1fr; grid-template-rows: auto auto 46px 62dvh; }
  .editor-title { font-size: 30px; }
  .editor-preview { display: none; }
  .markdown-editor { border-radius: 0 0 8px 8px; }
  .editor-sidebar { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: calc(26px + env(safe-area-inset-bottom)); flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
