/* ============================================================
   LIFE AUTOBIOGRAPHY TIMELINE — style.css
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #28201a;
  --ink-soft:   #47352a;
  --muted:      #7a6255;
  --muted-2:    #a08878;
  --cream:      #fdf9f4;
  --cream-2:    #f7f0e6;
  --cream-3:    #f0e6d8;
  --line:       #dfd0be;
  --line-soft:  #ece4d8;
  --accent:     #9b5040;
  --accent-2:   #c06858;
  --shadow:     0 2px 18px rgba(70,40,20,.10), 0 1px 4px rgba(70,40,20,.06);
  --shadow-lg:  0 8px 36px rgba(70,40,20,.13), 0 2px 10px rgba(70,40,20,.07);
  --r:   18px;
  --rsm: 12px;
  --rxs:  8px;

  /* era colors */
  --era-childhood: #e8c5a0;
  --era-school:    #d4a870;
  --era-teen:      #c08858;
  --era-launch:    #ae7048;
  --era-twenties:  #9c5c3c;
  --era-thirties:  #8c4c34;
  --era-forties:   #7c3c2c;
  --era-fifty:     #6c2c24;

  /* tracker warm */
  --g0: rgba(220,200,180,.20);
  --g1: #f0dfc8;
  --g2: #d4a878;
  --g3: #9b6840;

  /* pattern red */
  --r1: #f0d2cb;
  --r2: #d4857a;
  --r3: #a84e44;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

.page {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 18px 60px;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  padding: 44px 0 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.eyebrow {
  display: block;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -.02em;
}
.hero h1 em { color: var(--accent); font-style: italic; }

.hero-sub {
  margin-top: 14px;
  font-size: .97rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.progress-wrap { position: relative; width: 80px; height: 80px; }
.progress-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  line-height: 1;
}
.progress-center strong {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem; font-weight: 700; color: var(--ink);
}
.progress-center span { font-size: .68rem; color: var(--muted-2); margin-top: 2px; }
.progress-label { font-size: .72rem; color: var(--muted-2); text-align: center; }

/* ══════════════════════════════════════
   TIMELINE SECTION WRAP
══════════════════════════════════════ */
.tl-section-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  overflow: hidden;
}

.tl-header {
  padding: 20px 26px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(248,241,232,.95));
}
.tl-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}
.tl-header p { font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* ══════════════════════════════════════
   TIMELINE VISUAL
══════════════════════════════════════ */
.tl-scroll-outer {
  overflow-x: auto;
  overflow-y: visible;
  padding: 0 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  position: relative;
}
.tl-scroll-outer::-webkit-scrollbar { height: 5px; }
.tl-scroll-outer::-webkit-scrollbar-track { background: transparent; }
.tl-scroll-outer::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }

/* the horizontal track */
.tl-track {
  display: flex;
  align-items: stretch;
  padding: 28px 10px 0;
  min-width: max-content;
  position: relative;
}

/* the horizontal line that runs behind all eras */
.tl-track::before {
  content: "";
  position: absolute;
  top: 52px; /* vertically center on the dots */
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--era-childhood) 0%,
    var(--era-school)    20%,
    var(--era-teen)      38%,
    var(--era-launch)    50%,
    var(--era-twenties)  62%,
    var(--era-thirties)  75%,
    var(--era-forties)   90%,
    var(--era-fifty)     100%
  );
  border-radius: 4px;
  z-index: 0;
}

/* era block */
.tl-era {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 6px;
  border-right: 2px dashed rgba(155,80,64,.15);
  position: relative;
  z-index: 1;
}
.tl-era:last-child { border-right: none; }

/* era label at top */
.era-label {
  font-family: "DM Sans", sans-serif;
  font-size: .7rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 0 4px 10px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.era-label span {
  font-size: .62rem;
  font-weight: 400;
  color: var(--muted-2);
  letter-spacing: .04em;
}

/* dots row */
.era-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding-bottom: 18px;
}

/* individual dot */
.tl-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0 3px;
  user-select: none;
  transition: transform .15s;
}
.tl-dot:hover { transform: translateY(-3px); }

.dot-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid var(--muted-2);
  background: var(--cream);
  transition: all .2s;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.tl-dot:hover .dot-circle {
  border-color: var(--accent);
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(155,80,64,.15);
}

/* written dot */
.tl-dot.written .dot-circle {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

/* active (selected) dot */
.tl-dot.active .dot-circle {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.5);
  box-shadow: 0 0 0 5px rgba(155,80,64,.2);
}

.dot-num {
  font-size: .62rem;
  font-weight: 600;
  color: var(--muted-2);
  font-family: "DM Sans", sans-serif;
  white-space: nowrap;
  transition: color .2s;
}
.tl-dot:hover .dot-num,
.tl-dot.active .dot-num { color: var(--accent); }
.tl-dot.written .dot-num { color: var(--accent-2); }

/* era-specific dot colors */
.era-childhood .dot-circle { border-color: var(--era-childhood); }
.era-school    .dot-circle { border-color: var(--era-school); }
.era-teen      .dot-circle { border-color: var(--era-teen); }
.era-launch    .dot-circle { border-color: var(--era-launch); }
.era-twenties  .dot-circle { border-color: var(--era-twenties); }
.era-thirties  .dot-circle { border-color: var(--era-thirties); }
.era-forties   .dot-circle { border-color: var(--era-forties); }
.era-fifty     .dot-circle { border-color: var(--era-fifty); }

.era-childhood .tl-dot.active .dot-circle,
.era-childhood .tl-dot.written .dot-circle { background: var(--era-childhood); border-color: var(--era-childhood); }
.era-school .tl-dot.active .dot-circle,
.era-school .tl-dot.written .dot-circle { background: var(--era-school); border-color: var(--era-school); }
.era-teen .tl-dot.active .dot-circle,
.era-teen .tl-dot.written .dot-circle { background: var(--era-teen); border-color: var(--era-teen); }
.era-launch .tl-dot.active .dot-circle,
.era-launch .tl-dot.written .dot-circle { background: var(--era-launch); border-color: var(--era-launch); }
.era-twenties .tl-dot.active .dot-circle,
.era-twenties .tl-dot.written .dot-circle { background: var(--era-twenties); border-color: var(--era-twenties); }
.era-thirties .tl-dot.active .dot-circle,
.era-thirties .tl-dot.written .dot-circle { background: var(--era-thirties); border-color: var(--era-thirties); }
.era-forties .tl-dot.active .dot-circle,
.era-forties .tl-dot.written .dot-circle { background: var(--era-forties); border-color: var(--era-forties); }
.era-fifty .tl-dot.active .dot-circle,
.era-fifty .tl-dot.written .dot-circle { background: var(--era-fifty); border-color: var(--era-fifty); }

/* ══════════════════════════════════════
   YEAR PANEL (writing area below timeline)
══════════════════════════════════════ */
.year-panel {
  border-top: 1px solid var(--line-soft);
  background: var(--cream-2);
  min-height: 80px;
}

.yp-none {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 20px;
  text-align: center;
}
.yp-none-icon {
  font-size: 1.8rem;
  color: var(--muted-2);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.yp-none p { font-size: .92rem; color: var(--muted); max-width: 320px; line-height: 1.55; }

.yp-content { padding: 0; }
.yp-content.hidden { display: none; }

/* top bar of panel */
.yp-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 22px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(248,241,232,.9));
}

.yp-age-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--accent);
  border-radius: 12px;
  padding: 6px 14px;
  min-width: 64px;
}
.yp-age-label {
  font-size: .6rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.yp-age-badge strong {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.yp-era-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.yp-era-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(155,80,64,.12);
  font-size: .65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  width: fit-content;
}
.yp-era-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}

.yp-nav-btns {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.yp-nav {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s;
}
.yp-nav:hover { background: var(--cream-3); transform: translateY(-1px); }
.yp-nav-next { background: var(--accent); border-color: var(--accent); color: #fff; }
.yp-nav-next:hover { background: #8a4034; }

/* questions */
.yp-questions {
  background: linear-gradient(135deg, rgba(155,80,64,.06), rgba(155,80,64,.02));
  border-bottom: 1px solid rgba(155,80,64,.12);
  padding: 14px 22px;
}
.yq-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.yp-prompt-list { margin: 0; padding: 0; list-style: none; }
.yp-prompt-list li {
  position: relative;
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.55;
  padding-left: 18px;
}
.yp-prompt-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-size: .82rem;
}
.yp-prompt-list li + li { margin-top: 7px; }

/* writing grid */
.yp-write-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px 22px 14px;
}
.yp-write-wide { grid-column: 1 / -1; }

.yp-write-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--rsm);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, border-color .2s;
}
.yp-write-card:focus-within {
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(155,80,64,.1);
  border-color: rgba(155,80,64,.3);
}
.yw-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
}

.yp-ta {
  width: 100%;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--rxs);
  background: var(--cream);
  padding: 10px 12px;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.65;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
}
.yp-ta:focus { border-color: rgba(155,80,64,.45); box-shadow: 0 0 0 3px rgba(155,80,64,.09); }
.yp-ta::placeholder { color: var(--muted-2); font-style: italic; }

.yp-stage-note {
  padding: 10px 22px 16px;
  font-size: .82rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   CARDS (tracker, summary, board, graphs)
══════════════════════════════════════ */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 22px;
}
.card-head {
  padding: 20px 26px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(248,241,232,.92));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}
.ch-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin-top: 6px;
}
.ch-desc { margin-top: 8px; font-size: .9rem; color: var(--muted); line-height: 1.6; max-width: 640px; }
.howto {
  background: rgba(155,80,64,.05);
  border: 1px solid rgba(155,80,64,.14);
  border-radius: var(--rsm);
  padding: 11px 14px;
  min-width: 200px; max-width: 280px;
}
.howto-title { font-size: .68rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 7px; }
.howto ol, .howto ul { padding-left: 15px; font-size: .81rem; color: var(--ink-soft); line-height: 1.55; }
.howto li + li { margin-top: 3px; }
.howto p { font-size: .81rem; color: var(--ink-soft); line-height: 1.55; }
.card-body { padding: 18px 20px 16px; }

/* ══════════════════════════════════════
   TRACKER GRAPH
══════════════════════════════════════ */
.tracker-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tc-field { display: flex; flex-direction: column; gap: 4px; }
.tc-label { font-size: .67rem; font-weight: 600; color: var(--muted-2); letter-spacing: .1em; text-transform: uppercase; }
.tc-input {
  height: 37px; padding: 0 11px; width: 88px;
  border: 1px solid var(--line); border-radius: var(--rxs);
  background: var(--cream-2);
  font-family: "DM Sans", sans-serif; font-size: .87rem; color: var(--ink-soft);
  outline: none; transition: border-color .2s;
}
.tc-input:focus { border-color: rgba(155,80,64,.5); }
.ghost-btn {
  padding: 7px 15px; background: none;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: "DM Sans", sans-serif; font-size: .8rem; color: var(--muted);
  cursor: pointer; transition: all .2s; align-self: flex-end;
}
.ghost-btn:hover { border-color: var(--muted-2); color: var(--ink-soft); }
.legend-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.leg-item { display: flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--muted); }
.leg-swatch { width: 13px; height: 13px; border-radius: 4px; border: 1px solid rgba(80,40,20,.13); display: inline-block; }

.tracker-grid-wrap { overflow-x: auto; padding-bottom: 4px; }
.tracker-grid-shell { min-width: 960px; }
.tracker-grid { display: grid; grid-template-columns: 30px 46px 26px repeat(31, 26px); gap: 2px; }

.grid-cell { height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 5px; font-family: "DM Sans", sans-serif; }
.header-blank { background: transparent; }
.header-day { font-size: .6rem; font-weight: 600; color: #fff; background: linear-gradient(180deg, #c07868, #a05040); }
.quarter { font-size: .54rem; font-weight: 700; letter-spacing: .06em; color: var(--accent); text-transform: uppercase; background: transparent; }
.month { font-size: .64rem; font-weight: 600; color: var(--ink-soft); background: var(--cream-2); }
.month-number { font-size: .6rem; color: var(--muted-2); background: transparent; }
.tracker-day { background: var(--g0); border: 1px solid rgba(120,80,40,.08); border-radius: 5px; cursor: pointer; transition: transform .14s, box-shadow .14s; }
.tracker-day:hover { transform: scale(1.18); box-shadow: 0 2px 8px rgba(80,40,20,.18); }
.tracker-day.inactive { background: transparent; border-color: transparent; cursor: default; }
.tracker-day.inactive:hover { transform: none; box-shadow: none; }
.tracker-day[data-level="1"] { background: var(--g1); }
.tracker-day[data-level="2"] { background: var(--g2); }
.tracker-day[data-level="3"] { background: var(--g3); }
.tracker-day[data-level="1"]::after,
.tracker-day[data-level="2"]::after,
.tracker-day[data-level="3"]::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.25); border: 1px solid rgba(70,35,15,.25); }
.q-divider-top { border-top: 2px solid rgba(155,80,64,.16) !important; }
.footer-label, .footer-weekday { font-size: .57rem; color: var(--muted-2); background: transparent; }

.graph-red .header-day { background: linear-gradient(180deg, #c07060, #a04840); }
.graph-red .tracker-day { background: rgba(240,210,200,.2); }
.graph-red .tracker-day[data-level="1"] { background: var(--r1); }
.graph-red .tracker-day[data-level="2"] { background: var(--r2); }
.graph-red .tracker-day[data-level="3"] { background: var(--r3); }

.tracker-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 22px; justify-content: start; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.t-stat span { font-size: .67rem; font-weight: 600; color: var(--muted-2); letter-spacing: .1em; text-transform: uppercase; display: block; }
.t-stat strong { font-family: "Playfair Display", serif; font-size: 1.25rem; color: var(--ink); display: block; margin-top: 2px; }

/* ══════════════════════════════════════
   SUMMARY GRID
══════════════════════════════════════ */
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 20px; }
.sum-card { background: #fff; border: 1px solid var(--line); border-radius: var(--rsm); padding: 15px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; transition: transform .2s, box-shadow .2s; }
.sum-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.sum-icon { font-size: 1.3rem; line-height: 1; }
.sum-card h3 { font-family: "Playfair Display", serif; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.sum-hint { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.sum-ta { width: 100%; min-height: 115px; border: 1px solid var(--line); border-radius: var(--rxs); background: var(--cream); padding: 9px 11px; font-family: "Playfair Display", serif; font-size: .95rem; color: var(--ink-soft); line-height: 1.6; resize: vertical; outline: none; box-sizing: border-box; margin-top: 2px; transition: border-color .2s; }
.sum-ta:focus { border-color: rgba(155,80,64,.4); box-shadow: 0 0 0 3px rgba(155,80,64,.08); }
.sum-ta::placeholder { color: var(--muted-2); font-style: italic; }
.sa { border-left: 3px solid #c8a080; } .sb { border-left: 3px solid #b89070; }
.sc { border-left: 3px solid #9a7870; } .sd { border-left: 3px solid #a06868; }
.se { border-left: 3px solid #887858; } .sf { border-left: 3px solid #c0a868; }
.sg { border-left: 3px solid #9888a8; } .sh { border-left: 3px solid #88a880; }

/* ══════════════════════════════════════
   COMMUNITY BOARD
══════════════════════════════════════ */
.dialogue-layout { display: grid; grid-template-columns: .9fr 1.1fr; }
.form-panel { border-right: 1px solid var(--line); padding: 18px 20px; background: rgba(248,241,232,.45); }
.form-intro { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.form-intro h3 { font-family: "Playfair Display", serif; font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.form-intro p { font-size: .83rem; color: var(--muted); line-height: 1.55; }
.post-form { display: flex; flex-direction: column; gap: 11px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-field { display: flex; flex-direction: column; gap: 4px; }
.f-label { font-size: .67rem; font-weight: 600; color: var(--muted-2); letter-spacing: .1em; text-transform: uppercase; }
.f-input { width: 100%; height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--rxs); background: #fff; font-family: "DM Sans", sans-serif; font-size: .88rem; color: var(--ink-soft); outline: none; box-sizing: border-box; transition: border-color .2s; }
.f-input:focus { border-color: rgba(155,80,64,.5); box-shadow: 0 0 0 3px rgba(155,80,64,.1); }
.f-ta { width: 100%; min-height: 155px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--rxs); background: #fff; font-family: "Playfair Display", serif; font-size: .95rem; color: var(--ink-soft); line-height: 1.6; resize: vertical; outline: none; box-sizing: border-box; transition: border-color .2s; }
.f-ta:focus { border-color: rgba(155,80,64,.5); }
.f-ta::placeholder, .f-input::placeholder { color: var(--muted-2); font-style: italic; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.post-btn { padding: 9px 18px; background: var(--accent); border: none; border-radius: 999px; font-family: "DM Sans", sans-serif; font-size: .83rem; font-weight: 600; color: #fff; cursor: pointer; transition: all .2s; }
.post-btn:hover { background: #8a4034; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(155,80,64,.28); }
.post-status { min-height: 16px; font-size: .78rem; color: var(--accent); }
.feed-panel { padding: 18px 20px; display: flex; flex-direction: column; }
.feed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.feed-head h3 { font-family: "Playfair Display", serif; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.feed-count-badge { font-size: .67rem; font-weight: 600; color: var(--muted-2); letter-spacing: .12em; text-transform: uppercase; }
.feed { overflow: auto; max-height: 640px; flex: 1; padding-right: 3px; }
.feed-empty { font-size: .88rem; color: var(--muted); line-height: 1.55; padding: 6px 0; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--rsm); padding: 12px 14px; box-shadow: var(--shadow); }
.post + .post { margin-top: 10px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.post-author { font-size: .82rem; font-weight: 600; color: var(--ink); }
.post-date { font-size: .72rem; color: var(--muted-2); }
.topic-pill { padding: 2px 8px; border-radius: 999px; background: rgba(155,80,64,.1); border: 1px solid rgba(155,80,64,.18); font-size: .63rem; font-weight: 600; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.post-headline { font-family: "Playfair Display", serif; font-size: .98rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; line-height: 1.35; }
.post-body { font-size: .86rem; color: var(--ink-soft); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.post-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.reply-btn { padding: 4px 12px; background: none; border: 1px solid var(--line); border-radius: 999px; font-size: .73rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .2s; }
.reply-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.reply-count { font-size: .72rem; color: var(--muted-2); }
.reply-list { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.reply-item { background: var(--cream-2); border: 1px solid var(--line-soft); border-radius: var(--rxs); padding: 8px 10px; }
.reply-form-wrap { margin-top: 10px; }
.reply-form-wrap.hidden { display: none !important; }
.reply-form { background: rgba(155,80,64,.04); border: 1px dashed rgba(155,80,64,.28); border-radius: var(--rxs); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.reply-form input, .reply-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 6px 10px; font-family: "DM Sans", sans-serif; font-size: .83rem; color: var(--ink-soft); outline: none; box-sizing: border-box; }
.reply-form input { height: 34px; }
.reply-form textarea { min-height: 80px; resize: vertical; line-height: 1.5; }
.reply-form input:focus, .reply-form textarea:focus { border-color: rgba(155,80,64,.45); }
.reply-actions { display: flex; gap: 6px; }

/* ══════════════════════════════════════
   PATTERN GRAPHS
══════════════════════════════════════ */
.pattern-top-bar { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 20px 12px; border-bottom: 1px solid var(--line-soft); }
.pattern-controls { display: flex; align-items: flex-end; gap: 9px; flex-wrap: wrap; }
.pattern-deck { display: flex; flex-direction: column; gap: 16px; padding: 18px; }
.p-card { border: 1px solid var(--line); border-radius: var(--rsm); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.p-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(135deg, rgba(248,241,232,.9), rgba(255,255,255,.7)); align-items: start; }
.p-head h3 { font-family: "Playfair Display", serif; font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.p-head p { font-size: .81rem; color: var(--muted); line-height: 1.5; }
.p-side { display: flex; flex-direction: column; gap: 9px; }
.p-label-box span { display: block; font-size: .64rem; font-weight: 600; color: var(--muted-2); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.p-label-input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-family: "DM Sans", sans-serif; font-size: .84rem; color: var(--ink-soft); outline: none; box-sizing: border-box; transition: border-color .2s; }
.p-label-input:focus { border-color: rgba(155,80,64,.45); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stat-chip { background: var(--cream-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.stat-chip span { font-size: .61rem; font-weight: 600; color: var(--muted-2); letter-spacing: .1em; text-transform: uppercase; display: block; }
.stat-chip strong { display: block; font-family: "Playfair Display", serif; font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-top: 2px; line-height: 1; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 28px 0 22px; }
  .card-head { grid-template-columns: 1fr; }
  .howto { max-width: 100%; }
  .dialogue-layout { grid-template-columns: 1fr; }
  .form-panel { border-right: none; border-bottom: 1px solid var(--line); }
  .yp-write-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr; }
  .form-row2 { grid-template-columns: 1fr; }
  .p-head { grid-template-columns: 1fr; }
  .tracker-stats { grid-template-columns: repeat(2, auto); }
  .legend-row { margin-left: 0; }
  .yp-topbar { flex-wrap: wrap; }
  .yp-nav-btns { margin-left: 0; }
}

@media (max-width: 600px) {
  .page { padding: 0 10px 36px; }
  .summary-grid { padding: 12px; }
  .pattern-deck { padding: 12px; }
  .tl-track { padding: 22px 6px 0; }
  .tl-dot { padding: 0 2px; }
  .dot-circle { width: 14px; height: 14px; }
  .dot-num { font-size: .55rem; }
}