:root {
  --bg: #f7f1e8;
  --paper: rgba(255, 251, 243, 0.94);
  --paper-solid: #fffaf1;
  --ink: #211d19;
  --muted: #766d62;
  --faint: #a89d90;
  --line: rgba(35, 39, 38, 0.12);
  --line-strong: rgba(35, 39, 38, 0.22);
  --soft: #f0e6d8;
  --accent: #6a3f2b;
  --sage: #3d756d;
  --lake: #d8e8e5;
  --olive: #7d7b3f;
  --ochre: #b46b37;
  --violet: #855f73;
  --danger: #8a4f4f;
  --shadow: 0 24px 70px rgba(43, 48, 45, 0.09);
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 76% 4%, rgba(180, 107, 55, 0.13), transparent 30%),
    radial-gradient(circle at 12% 20%, rgba(61, 117, 109, 0.09), transparent 28%),
    linear-gradient(180deg, #fffaf1 0%, var(--bg) 44%, #f1e7db 100%);
  color: var(--ink);
  font-family: var(--font-ui);
  letter-spacing: 0;
}

.site-body {
  background:
    radial-gradient(circle at 76% 4%, rgba(180, 107, 55, 0.13), transparent 30%),
    radial-gradient(circle at 12% 20%, rgba(61, 117, 109, 0.09), transparent 28%),
    linear-gradient(180deg, #fffaf1 0%, var(--bg) 44%, #f1e7db 100%);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  background: rgba(255, 250, 241, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.site-brand,
.site-nav nav,
.landing-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-brand,
.site-nav a,
.landing-card a,
.primary-link,
.secondary-link {
  color: var(--ink);
  text-decoration: none;
}

.site-brand span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.site-nav nav a {
  color: var(--muted);
  font-size: 14px;
}

.site-nav nav a:hover {
  color: var(--ink);
}

.nav-button,
.primary-link,
.secondary-link {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 11px 16px;
}

.nav-button,
.primary-link {
  background: var(--ink);
  color: #fff !important;
}

.secondary-link {
  background: rgba(255, 255, 255, 0.62);
}

.landing-hero {
  min-height: calc(92vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.7fr);
  align-items: center;
  gap: 34px;
  padding: 34px 32px 18px;
  max-width: 1500px;
  margin: 0 auto;
}

.landing-copy h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 132px);
  line-height: 0.94;
  font-weight: 400;
  font-family: var(--font-display);
  max-width: 960px;
}

.landing-copy p {
  margin: 24px 0 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.landing-actions {
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hero-signals span {
  border: 1px solid rgba(33, 29, 25, 0.14);
  background: rgba(255, 250, 241, 0.72);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
}

.landing-image {
  margin: 0;
  height: min(64vh, 680px);
  min-height: 390px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.landing-image img,
.landing-card img,
.image-card-landing img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.personal-site .landing-image img,
.personal-site .photo-ribbon img,
.personal-site .note-card.with-photo img,
.personal-site .private-entry img,
.hero-visual img,
.journal-page img,
.day-page-card img {
  filter: saturate(0.88) contrast(0.96) brightness(1.04);
}

.encouragement-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 32px 70px;
}

.encouragement-band p {
  margin: 0;
  font-size: clamp(28px, 4vw, 64px);
  line-height: 1.08;
  font-weight: 400;
  font-family: var(--font-display);
  color: var(--ink);
}

.inside-preview {
  max-width: 1380px;
  margin: 0 auto;
  padding: 10px 32px 46px;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.section-intro {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  background:
    linear-gradient(rgba(255, 250, 241, 0.84), rgba(255, 250, 241, 0.92)),
    url("./assets/quiet-desk.png") center / cover;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.section-intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 68px);
  font-weight: 400;
  line-height: 1.04;
  max-width: 680px;
}

.section-intro p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 650px;
}

.preview-frames {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.preview-frame {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: rgba(255, 251, 243, 0.9);
  box-shadow: var(--shadow);
}

.preview-frame.is-tall {
  grid-row: span 2;
  background:
    linear-gradient(rgba(255, 250, 241, 0.78), rgba(255, 250, 241, 0.88)),
    url("./assets/recovery-scene.png") center / cover;
}

.preview-frame span,
.use-case-strip span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preview-frame strong {
  display: block;
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.05;
}

.preview-frame p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.landing-grid,
.landing-split {
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px 32px;
}

.landing-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
}

.landing-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 253, 0.9);
  overflow: hidden;
  min-height: 360px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 0;
  display: grid;
  grid-template-rows: 260px 1fr;
}

.feature-card div {
  padding: 24px;
}

.landing-card span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-card h2,
.landing-split h2,
.final-cta h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3.2vw, 52px);
  line-height: 1.06;
  font-weight: 400;
  font-family: var(--font-display);
}

.landing-card p,
.landing-split p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.landing-card a {
  margin-top: 24px;
  width: fit-content;
  border-bottom: 1px solid var(--ink);
}

.use-case-strip {
  max-width: 1380px;
  margin: 0 auto;
  padding: 4px 32px 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.use-case-strip article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: rgba(255, 251, 243, 0.72);
}

.use-case-strip p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.landing-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.65fr);
  gap: 18px;
  align-items: stretch;
  padding-top: 70px;
}

.landing-split > div:first-child {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 34px;
  background:
    linear-gradient(rgba(255, 255, 253, 0.86), rgba(255, 255, 253, 0.94)),
    url("./assets/calendar-texture.png") center / cover;
}

.rhythm-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  background: rgba(255, 255, 253, 0.9);
  box-shadow: var(--shadow);
}

.rhythm-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.rhythm-row span {
  color: var(--muted);
}

.rhythm-row strong {
  font-size: 34px;
  font-weight: 400;
}

.mini-chart {
  height: 150px;
  margin-top: 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, transparent 42%, rgba(47, 111, 115, 0.28) 43%, rgba(47, 111, 115, 0.28) 47%, transparent 48%),
    linear-gradient(25deg, transparent 50%, rgba(154, 106, 59, 0.2) 51%, rgba(154, 106, 59, 0.2) 54%, transparent 55%),
    #fbfaf7;
}

.private-grid {
  grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1fr);
  padding-top: 70px;
}

.image-card-landing {
  padding: 0;
  min-height: 460px;
}

.final-cta {
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 32px 120px;
  text-align: center;
}

.final-cta h2 {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .primary-link {
  display: inline-block;
  margin-top: 28px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.file-button {
  border: 1px solid var(--ink);
  background: #253f3a;
  color: #fff;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  cursor: pointer;
}

button.secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border-color: var(--line-strong);
}

.import-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  padding: 0 14px;
  cursor: pointer;
  text-align: center;
}

.import-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

button:hover,
.file-button:hover,
.import-button:hover {
  filter: brightness(0.96);
}

button.day-cell:hover {
  filter: none;
}

button:active,
.template-card:active,
.habit-chip:active,
.metric-card:active,
.day-page-card:active,
.timeline-item:active {
  transform: translateY(1px);
  border-color: rgba(61, 117, 109, 0.42);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.file-button:focus-within,
.import-button:focus-within {
  outline: 3px solid rgba(61, 117, 109, 0.28);
  outline-offset: 3px;
}

.app-shell {
  display: grid;
  grid-template-columns: 318px minmax(0, 1fr);
  min-height: 100vh;
}

.focus-writing [data-focus-hide] {
  display: none !important;
}

.focus-writing .app-shell {
  grid-template-columns: minmax(288px, 0.26fr) minmax(0, 1fr);
}

.focus-writing .main-panel {
  max-width: 1120px;
  margin: 0 auto;
}

.focus-writing .brand-block,
.focus-writing .side-nav,
.focus-writing .local-note,
.focus-writing .template-shelf,
.focus-writing .today-hero .hero-visual,
.focus-writing .today-hero .quiet-wins {
  display: none;
}

.focus-writing .side-panel {
  padding-top: 18px;
}

.focus-writing .side-card {
  padding: 12px;
}

.focus-writing .today-hero {
  min-height: auto;
  grid-template-columns: 1fr;
  padding: 22px 24px;
}

.focus-writing .journal-panel {
  display: none;
}

.focus-writing .layout-two#daily {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.focus-writing .cockpit-panel {
  box-shadow: 0 22px 60px rgba(43, 48, 45, 0.08);
}

#focusButton[aria-pressed="true"] {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.side-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(250, 249, 245, 0.82);
  backdrop-filter: blur(18px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
}

.brand-block h1,
.topbar h2,
.today-hero h3,
.panel h3,
.mockup-title h1 {
  margin: 0;
  line-height: 1.04;
}

.brand-block h1 {
  font-size: 20px;
  font-weight: 500;
}

.brand-block p,
.topbar p,
.mockup-title p {
  margin: 5px 0 0;
  color: var(--muted);
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}

.side-card,
.panel,
.metric-card,
.mockup-card,
.today-hero {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.side-card {
  padding: 14px;
  margin-bottom: 14px;
}

.month-tools,
.topbar,
.panel-head,
.button-row,
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-button {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1;
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(24px, 1fr));
  gap: 5px;
  margin-top: 14px;
  min-width: 0;
}

.day-name,
.day-cell {
  min-width: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 12px;
}

.day-name {
  color: var(--muted);
  aspect-ratio: 2 / 1;
}

.day-cell {
  border: 1px solid rgba(30, 32, 31, 0.1);
  background: var(--paper-solid);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.day-cell:hover {
  transform: translateY(-1px);
  border-color: rgba(61, 117, 109, 0.36);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 8px 18px rgba(51, 45, 37, 0.09);
}

.day-cell.is-selected {
  border-color: rgba(151, 111, 43, 0.72);
  outline: 2px solid rgba(61, 117, 109, 0.32);
  outline-offset: 1px;
  color: var(--ink);
  font-weight: 700;
  box-shadow:
    0 0 0 2px rgba(255, 253, 248, 0.96) inset,
    0 9px 20px rgba(151, 111, 43, 0.16),
    0 2px 8px rgba(61, 117, 109, 0.1);
}

.day-cell.is-selected:hover {
  border-color: rgba(151, 111, 43, 0.86);
  box-shadow:
    0 0 0 2px rgba(255, 253, 248, 0.96) inset,
    0 12px 24px rgba(151, 111, 43, 0.2),
    0 2px 10px rgba(61, 117, 109, 0.12);
}

.day-cell.is-empty {
  visibility: hidden;
}

.mini-row {
  min-height: 34px;
  font-size: 13px;
}

.mini-row select {
  max-width: 125px;
  padding: 7px 9px;
}

.side-nav {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}

.side-nav a,
.mockup-title a {
  color: var(--ink);
  text-decoration: none;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
}

.side-nav a:hover,
.mockup-title a:hover {
  background: rgba(255, 255, 255, 0.62);
}

.main-panel {
  padding: 26px;
  display: grid;
  gap: 20px;
}

.layout-two.is-date-target .cockpit-panel {
  outline: 2px solid rgba(151, 111, 43, 0.36);
  box-shadow:
    0 0 0 6px rgba(255, 243, 199, 0.52),
    0 24px 70px rgba(43, 48, 45, 0.1);
  transition: outline-color 0.2s ease, box-shadow 0.2s ease;
}

.topbar {
  min-height: 72px;
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--line);
}

.topbar h2 {
  font-size: clamp(30px, 4.4vw, 62px);
  font-weight: 400;
  font-family: var(--font-display);
}

.topbar p {
  max-width: 760px;
  line-height: 1.5;
}

.top-actions,
.chart-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.utility-menu {
  position: relative;
}

.utility-menu summary {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  padding: 8px 14px;
  cursor: pointer;
  list-style: none;
}

.utility-menu summary::-webkit-details-marker {
  display: none;
}

.utility-menu > div {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 8;
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 18px 48px rgba(43, 48, 45, 0.12);
}

.utility-menu:not([open]) > div {
  display: none;
}

.today-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 0.64fr);
  gap: 18px;
  padding: 18px;
  min-height: 300px;
  overflow: hidden;
}

.hero-copy {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h3 {
  font-size: clamp(30px, 5vw, 74px);
  font-weight: 400;
  font-family: var(--font-display);
  max-width: 860px;
}

.hero-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
  max-width: 690px;
}

.hero-visual {
  margin: 0;
  min-height: 260px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.quiet-wins {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.quiet-win {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.quiet-win span,
.metric-card span,
.insight-card span,
.public-card span {
  color: var(--muted);
  font-size: 12px;
}

.quiet-win strong,
.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  font-weight: 400;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(116px, 1fr));
  gap: 10px;
}

.metric-card {
  text-align: left;
  padding: 14px;
  min-height: 88px;
  color: var(--ink);
  background: rgba(255, 255, 253, 0.82);
  border-color: var(--line);
}

.metric-card small {
  color: var(--muted);
}

.layout-two {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 20px;
}

.panel {
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel-head {
  margin-bottom: 16px;
}

.panel h3 {
  font-size: 24px;
  font-weight: 400;
}

.status-pill {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 12px;
}

.status-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.writing-flow {
  display: grid;
  gap: 14px;
}

.writing-section {
  position: relative;
  border: 1px solid rgba(35, 39, 38, 0.1);
  border-radius: 12px;
  padding: 16px 18px;
  background:
    linear-gradient(rgba(255, 255, 253, 0.86), rgba(255, 255, 253, 0.94)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(35, 39, 38, 0.04) 31px 32px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.writing-section::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--section-tone, rgba(61, 117, 109, 0.36));
}

.writing-section-start {
  --section-tone: rgba(61, 117, 109, 0.55);
}

.writing-section-research {
  --section-tone: rgba(37, 63, 58, 0.62);
}

.writing-section-life {
  --section-tone: rgba(180, 107, 55, 0.45);
}

.writing-section-tomorrow {
  --section-tone: rgba(125, 123, 63, 0.48);
}

.writing-section-head {
  margin-bottom: 12px;
  max-width: 780px;
}

.writing-section-head span,
.suggested-template span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.writing-section-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.08;
}

.writing-section-head p,
.suggested-template p {
  display: none;
}

.section-fields {
  align-items: stretch;
}

.habit-chip {
  position: relative;
  text-align: left;
  min-height: 50px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.88), rgba(239, 248, 247, 0.58));
  color: var(--ink);
  border-color: rgba(61, 117, 109, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.74) inset;
  overflow-wrap: normal;
  word-break: normal;
}

.habit-chip strong {
  display: block;
  font-weight: 600;
  line-height: 1.16;
  overflow-wrap: normal;
  word-break: normal;
}

.habit-chip::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(61, 117, 109, 0.18);
}

.habit-chip.is-on {
  background:
    linear-gradient(135deg, rgba(239, 248, 247, 0.98), rgba(255, 251, 243, 0.9));
  color: var(--ink);
  border-color: rgba(61, 117, 109, 0.48);
  box-shadow:
    0 0 0 2px rgba(61, 117, 109, 0.08),
    0 12px 28px rgba(51, 45, 37, 0.08);
}

.habit-chip.is-on span {
  color: #3d756d;
}

.habit-chip.is-on::after {
  background: var(--sage);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.entry-field {
  display: grid;
  gap: 7px;
}

.entry-field span,
.planned-grid span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.entry-field b {
  font-size: 11px;
  color: var(--faint);
  font-weight: 400;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 7px;
}

.field-privacy-select {
  width: auto;
  min-height: 28px;
  max-width: 118px;
  padding: 4px 24px 4px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.9);
  color: #52746d;
  font-size: 11px;
  opacity: 0.72;
  transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.writing-section .field-privacy-select {
  opacity: 0.76;
}

.entry-field:focus-within .field-privacy-select,
.planned-grid label:focus-within .field-privacy-select,
.public-curation:focus-within .field-privacy-select,
.field-privacy-select:hover,
.field-privacy-select:focus {
  opacity: 1;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(61, 117, 109, 0.28);
}

textarea,
input[type="text"],
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.84);
  color: var(--ink);
  padding: 11px 12px;
}

textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.55;
  background:
    linear-gradient(rgba(255, 253, 248, 0.9), rgba(255, 253, 248, 0.94)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(35, 39, 38, 0.045) 31px 32px);
  background-size: 100% 100%, 100% 32px;
}

.planned-box,
.score-details {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.48);
}

.writing-section .planned-box {
  background: rgba(255, 251, 243, 0.58);
}

.suggested-template {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  border: 1px solid rgba(61, 117, 109, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(239, 248, 247, 0.82), rgba(255, 251, 243, 0.86));
}

.suggested-template strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.suggested-template button {
  flex: 0 0 auto;
}

.suggested-template.is-current button {
  opacity: 0.72;
  cursor: default;
}

.daily-suggestion {
  margin: 0;
}

summary {
  cursor: pointer;
  color: var(--ink);
}

.planned-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.summary-box {
  min-height: 58px;
  padding: 13px 14px;
  background: rgba(255, 255, 253, 0.72);
  border: 1px solid rgba(35, 39, 38, 0.1);
  border-radius: 12px;
  color: var(--ink);
  line-height: 1.5;
}

.summary-box > span {
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-box p {
  margin: 0;
}

.daily-reflection-footer {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid rgba(61, 117, 109, 0.16);
  border-radius: 14px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(239, 248, 247, 0.55));
}

.daily-reflection-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.daily-reflection-primary #aiButton {
  min-width: 150px;
}

.day-actions-box {
  border-top: 1px solid rgba(35, 39, 38, 0.08);
  padding-top: 10px;
}

.day-actions-box:not([open]) > :not(summary),
.ai-hook-box:not([open]) > :not(summary) {
  display: none !important;
}

.day-actions-box > summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
  font-size: 12px;
}

.day-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
}

.file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-status {
  margin: -4px 0 12px;
  color: #52746d;
  font-size: 12px;
  line-height: 1.4;
}

.image-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 34%);
  gap: 12px;
  min-height: 230px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.image-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
}

.image-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.image-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
}

.image-meta span {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-meta button {
  min-height: 28px;
  background: #fff;
  color: var(--danger);
  border-color: var(--line);
}

.journal-preview {
  min-height: 430px;
}

.journal-page {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffefa;
  min-height: 430px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(43, 48, 45, 0.08);
}

.journal-date {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}

.journal-date strong {
  color: var(--ink);
  font-weight: 400;
}

.journal-page h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.05;
  font-weight: 400;
  font-family: var(--font-display);
}

.journal-page p {
  color: var(--muted);
  line-height: 1.6;
}

.template-ledger,
.template-field,
.template-reflection,
.template-body,
.template-week {
  padding: 30px;
}

.journal-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  margin-top: 28px;
}

.journal-columns span,
.body-grid span,
.week-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 18px 0 8px;
}

.journal-columns aside {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.journal-columns aside b,
.body-grid b,
.week-stats b {
  display: block;
  font-size: 52px;
  line-height: 1;
  font-weight: 400;
}

.journal-columns aside small {
  color: var(--muted);
}

.template-photo {
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(0, 1fr);
}

.template-photo > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.template-photo > div {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.field-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: 24px;
}

.field-layout figure {
  margin: 0;
}

.field-layout img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.field-layout figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.template-reflection {
  background:
    linear-gradient(rgba(255, 255, 253, 0.92), rgba(255, 255, 253, 0.95)),
    url("./assets/recovery-scene.png") center / cover;
}

.large-note {
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.25 !important;
  color: var(--ink) !important;
  max-width: 920px;
}

.reflection-footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.reflection-footer span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.body-grid,
.week-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.body-grid section,
.week-stats section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.week-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.day-pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

.template-shelf {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.template-card {
  --template-bg: rgba(255, 251, 243, 0.7);
  --template-preview: linear-gradient(135deg, #f5efe5, #ffffff);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 64px 12px 12px;
  background: var(--template-bg);
  color: var(--ink);
  text-align: left;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.template-card::before {
  content: "";
  position: absolute;
  inset: 10px 10px auto;
  height: 46px;
  border: 1px solid rgba(35, 39, 38, 0.1);
  border-radius: 8px;
  background: var(--template-preview);
  box-shadow: 0 8px 18px rgba(51, 45, 37, 0.09);
}

.template-card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(35, 39, 38, 0.12);
}

.template-card:hover {
  filter: none;
  transform: translateY(-2px);
  border-color: rgba(61, 117, 109, 0.4);
  box-shadow: 0 14px 30px rgba(51, 45, 37, 0.12);
}

.template-card.is-active,
.template-card[aria-pressed="true"] {
  border-color: rgba(61, 117, 109, 0.68);
  background: linear-gradient(180deg, rgba(246, 252, 249, 0.92), rgba(255, 251, 243, 0.92));
  box-shadow:
    0 0 0 2px rgba(61, 117, 109, 0.12),
    0 14px 34px rgba(51, 45, 37, 0.13);
}

.template-card.is-active::after,
.template-card[aria-pressed="true"]::after {
  background: var(--sage);
  border-color: rgba(255, 255, 255, 0.9);
}

.template-card[data-template-option="research-ledger"] {
  --template-preview:
    linear-gradient(90deg, rgba(37, 63, 58, 0.9) 0 18%, transparent 18%),
    repeating-linear-gradient(0deg, rgba(35, 39, 38, 0.13) 0 1px, transparent 1px 9px),
    #fffdfa;
}

.template-card[data-template-option="photo-essay"] {
  --template-preview:
    linear-gradient(rgba(255, 250, 241, 0.06), rgba(255, 250, 241, 0.1)),
    url("./assets/lake-note.jpg") center / cover;
}

.template-card[data-template-option="field-note"] {
  --template-preview:
    linear-gradient(135deg, rgba(61, 117, 109, 0.18) 0 28%, transparent 28%),
    linear-gradient(90deg, transparent 0 58%, rgba(180, 107, 55, 0.2) 58% 100%),
    repeating-linear-gradient(0deg, rgba(35, 39, 38, 0.12) 0 1px, transparent 1px 11px),
    #fffdf8;
}

.template-card[data-template-option="quiet-reflection"] {
  --template-preview:
    linear-gradient(rgba(255, 251, 243, 0.24), rgba(255, 251, 243, 0.42)),
    url("./assets/morning-road.jpg") center / cover;
}

.template-card[data-template-option="fitness-meals"] {
  --template-preview:
    linear-gradient(90deg, rgba(125, 123, 63, 0.28) 0 33%, rgba(255, 250, 241, 0.92) 33% 66%, rgba(180, 107, 55, 0.24) 66%),
    #fffdfa;
}

.template-card[data-template-option="weekly-review"] {
  --template-preview:
    linear-gradient(90deg, transparent 0 21%, rgba(35, 39, 38, 0.12) 21% 22%, transparent 22% 47%, rgba(35, 39, 38, 0.12) 47% 48%, transparent 48% 73%, rgba(35, 39, 38, 0.12) 73% 74%, transparent 74%),
    linear-gradient(0deg, rgba(61, 117, 109, 0.18) 0 38%, transparent 38%),
    #fffdfa;
}

.template-card span {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.template-card p {
  display: none;
}

.day-page-card {
  min-height: 310px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fffefa;
  color: var(--ink);
  text-align: left;
}

.day-page-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.day-page-card span,
.day-page-card strong,
.day-page-card small,
.day-page-card p {
  display: block;
  margin-left: 16px;
  margin-right: 16px;
}

.day-page-card span {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.day-page-card strong {
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.25;
}

.day-page-card small {
  margin-top: 9px;
  color: #3d756d;
  font-size: 12px;
  line-height: 1.35;
}

.day-page-card p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  padding: 18px;
  text-align: center;
}

.quick-score-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.quick-score-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--category-tone);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.quick-score-card div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.quick-score-card span {
  color: var(--muted);
  font-size: 12px;
}

.quick-score-card strong {
  font-weight: 400;
  font-size: 24px;
}

.tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tab-button {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border-color: var(--line);
}

.tab-button.is-active {
  background: var(--ink);
  color: #fff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
}

.category-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--category-tone);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.category-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.category-head h4 {
  margin: 0;
  font-size: 17px;
}

.category-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.category-head strong {
  font-weight: 400;
  font-size: 28px;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr 108px 28px;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
}

.score-row label {
  font-size: 13px;
  color: var(--ink);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.quiet-note {
  color: var(--muted);
  font-size: 13px;
}

.custom-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 150px 130px 24px 70px;
  gap: 10px;
  align-items: center;
}

.custom-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.custom-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.55);
}

.custom-item > div {
  min-width: 0;
}

.custom-item strong,
.custom-item span {
  overflow-wrap: anywhere;
}

.custom-item span {
  color: var(--muted);
  font-size: 12px;
}

.custom-item button {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  min-height: 30px;
  background: #fff;
  color: var(--danger);
  border-color: var(--line);
}

.large-number {
  font-size: 36px;
  font-weight: 400;
}

.weight-grid {
  display: grid;
  gap: 12px;
}

.weight-row {
  display: grid;
  grid-template-columns: 130px 1fr 42px;
  gap: 10px;
  align-items: center;
}

canvas {
  width: 100%;
  height: auto;
  max-height: 380px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}

.trend-story {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.trend-hero {
  border: 1px solid rgba(61, 117, 109, 0.18);
  border-radius: 12px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(239, 248, 247, 0.82), rgba(255, 251, 243, 0.92));
}

.trend-hero span,
.trend-mini-grid span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trend-hero h4 {
  margin: 7px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.08;
}

.trend-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.trend-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.trend-mini-grid article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 253, 0.62);
}

.trend-mini-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.insight-grid,
.public-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.insight-card,
.public-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.insight-card p,
.public-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.public-card strong {
  display: block;
  font-size: 34px;
  margin-top: 8px;
  font-weight: 400;
}

.hero-public {
  grid-column: span 2;
  background:
    linear-gradient(rgba(255, 255, 253, 0.82), rgba(255, 255, 253, 0.86)),
    url("./assets/quiet-desk.png") center / cover;
}

.hero-public h4 {
  margin: 10px 0 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 400;
}

.simulation-report {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(rgba(255, 255, 253, 0.82), rgba(255, 255, 253, 0.9)),
    url("./assets/calendar-texture.png") center / cover;
}

.simulation-report p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  text-align: left;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.timeline-item strong {
  font-weight: 700;
}

.mockup-body {
  background: #f6f5f2;
}

.mockup-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 24px;
}

.mockup-title {
  margin-bottom: 24px;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
}

.mockup-card {
  min-height: 430px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mockup-card header span {
  color: var(--muted);
  font-size: 12px;
}

.mockup-card h2 {
  margin: 7px 0 0;
  font-size: 25px;
  font-weight: 400;
}

.selected {
  outline: 2px solid var(--ink);
}

.mock-row,
.mock-dash {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.mock-dash b {
  flex: 1;
  padding: 16px;
  border: 1px solid var(--line);
  text-align: center;
  font-size: 26px;
  font-weight: 400;
}

.mock-lines,
.mock-chart,
.mock-photo,
.mock-text,
.mock-calendar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #f0efea);
}

.mock-lines {
  height: 170px;
  background:
    linear-gradient(to top, transparent 19%, #d9d8d1 20%, transparent 21%),
    linear-gradient(135deg, rgba(47, 111, 115, 0.18), rgba(36, 63, 95, 0.08));
  background-size: 100% 34px, 100% 100%;
}

.mock-calendar {
  height: 130px;
  background-image:
    linear-gradient(#d8d8d2 1px, transparent 1px),
    linear-gradient(90deg, #d8d8d2 1px, transparent 1px);
  background-size: 28px 28px;
}

.mock-text {
  height: 20px;
  background: #e9e8e2;
}

.mock-text.short {
  width: 68%;
}

.mock-chart {
  height: 140px;
  background:
    linear-gradient(160deg, transparent 35%, rgba(47, 111, 115, 0.3) 36%, rgba(47, 111, 115, 0.3) 39%, transparent 40%),
    linear-gradient(25deg, transparent 48%, rgba(154, 106, 59, 0.28) 49%, rgba(154, 106, 59, 0.28) 52%, transparent 53%),
    #fbfaf7;
}

.mock-photo {
  height: 210px;
  background:
    linear-gradient(135deg, rgba(47, 111, 115, 0.25), transparent 45%),
    linear-gradient(45deg, rgba(154, 106, 59, 0.22), transparent 45%),
    #f0efea;
}

@media (max-width: 1280px) {
  .metric-grid,
  .quick-score-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-grid,
  .insight-grid,
  .public-preview,
  .day-pages,
  .template-shelf,
  .mockup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-two,
  .today-hero,
  .inside-preview,
  .landing-split {
    grid-template-columns: 1fr;
  }

  .landing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .site-nav {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .site-nav nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-nav nav a {
    font-size: 13px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 28px 16px 10px;
  }

  .landing-copy h1 {
    font-size: clamp(52px, 18vw, 86px);
  }

  .landing-image {
    min-height: 280px;
    height: 42vh;
  }

  .inside-preview,
  .landing-grid,
  .landing-split,
  .private-grid,
  .use-case-strip,
  .encouragement-band,
  .final-cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .preview-frames,
  .landing-grid,
  .private-grid,
  .use-case-strip {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-column: auto;
  }

  .section-intro {
    min-height: 300px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .focus-writing .main-panel {
    order: 1;
  }

  .focus-writing .side-panel {
    order: 2;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .focus-writing .side-panel .side-card:first-of-type {
    display: none;
  }

  .side-panel {
    position: static;
    height: auto;
  }

  .main-panel {
    padding: 16px;
  }

  .topbar,
  .panel-head,
  .timeline-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .quick-score-grid,
  .category-grid,
  .field-grid,
  .planned-grid,
  .quick-strip,
  .insight-grid,
  .public-preview,
  .journal-columns,
  .template-photo,
  .field-layout,
  .body-grid,
  .week-stats,
  .day-pages,
  .template-shelf,
  .mockup-grid {
    grid-template-columns: 1fr;
  }

  .template-photo > img {
    min-height: 240px;
  }

  .journal-page {
    min-height: auto;
  }

  .custom-form {
    grid-template-columns: 1fr;
  }

  .hero-public {
    grid-column: auto;
  }
}

.personal-site {
  background:
    linear-gradient(180deg, rgba(240, 247, 248, 0.92) 0%, rgba(255, 250, 241, 0.96) 36%, #f5eadc 100%);
}

.personal-nav {
  background: rgba(253, 250, 244, 0.78);
}

.personal-hero {
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.86fr);
  align-items: center;
  min-height: calc(88vh - 74px);
  padding-top: 28px;
}

.personal-hero .landing-copy {
  padding-bottom: 0;
}

.personal-hero .landing-copy h1 {
  max-width: 820px;
}

.personal-hero .landing-copy p {
  color: #5f695f;
  max-width: 680px;
}

.soft-actions .primary-link,
.private-entry .primary-link {
  background: var(--sage);
  border-color: var(--sage);
}

.soft-actions .secondary-link,
.text-link {
  border-color: rgba(61, 117, 109, 0.35);
  color: #294f49;
}

.hero-photo {
  position: relative;
  height: min(72vh, 760px);
  min-height: 470px;
  border-radius: 24px 24px 10px 10px;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 56%, rgba(24, 34, 30, 0.18));
}

.hero-photo figcaption,
.photo-ribbon figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.alive-band {
  padding-top: 28px;
}

.alive-band p {
  color: #27342f;
}

.about-strip,
.journal-door,
.photo-ribbon,
.research-section,
.private-entry,
.site-footer {
  max-width: 1380px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.about-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 8px;
  padding-bottom: 58px;
}

.about-strip article,
.note-card,
.currently-panel,
.private-entry {
  border: 1px solid rgba(61, 117, 109, 0.16);
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 18px 44px rgba(43, 48, 45, 0.06);
}

.about-strip article {
  min-height: 170px;
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(249, 242, 231, 0.72)),
    var(--paper);
}

.about-strip span,
.note-card span,
.currently-panel span {
  color: #52746d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-strip strong {
  display: block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(25px, 2.8vw, 42px);
  font-weight: 400;
  line-height: 1.08;
}

.about-strip p,
.note-card p,
.research-section p,
.private-entry p {
  color: #687166;
  line-height: 1.55;
}

.journal-door {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.72fr);
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 70px;
}

.journal-door-copy {
  background:
    linear-gradient(rgba(255, 250, 241, 0.82), rgba(255, 250, 241, 0.94)),
    url("./assets/generated/desk-light-image2.png") center / cover,
    url("./assets/desk-light.jpg") center / cover;
  border-radius: 18px;
  min-height: 440px;
}

.note-stack {
  display: grid;
  gap: 14px;
}

.note-card {
  border-radius: 16px;
  padding: 22px;
  min-height: 132px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.note-card h3 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.08;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.note-card p,
.note-card span,
.note-card strong,
.note-card .tag-row {
  min-width: 0;
  overflow-wrap: anywhere;
}

.note-card.with-photo {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.92fr 1fr;
}

.note-card.with-photo img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.note-card.with-photo div {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.public-tags {
  margin-top: 14px;
}

.public-tags span {
  text-transform: none;
  letter-spacing: 0;
  color: #3d756d;
  background: rgba(239, 248, 247, 0.7);
}

.public-curation {
  margin-bottom: 14px;
  border: 1px solid rgba(61, 117, 109, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(216, 232, 229, 0.52), rgba(255, 250, 241, 0.82)),
    var(--paper);
  padding: 16px;
}

.public-curation label {
  display: grid;
  gap: 10px;
}

.public-curation label > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.public-curation textarea {
  min-height: 94px;
  resize: vertical;
}

.photo-ribbon {
  display: grid;
  grid-template-columns: 1.2fr 0.82fr 1fr;
  gap: 14px;
  padding-bottom: 78px;
}

.photo-ribbon figure {
  position: relative;
  margin: 0;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.photo-ribbon figure:nth-child(2) {
  margin-top: 46px;
}

.photo-ribbon img,
.private-entry img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.research-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: 34px;
  border-top: 1px solid rgba(61, 117, 109, 0.16);
  border-bottom: 1px solid rgba(61, 117, 109, 0.16);
  padding-top: 38px;
  padding-bottom: 38px;
  margin-bottom: 76px;
}

.research-section h2,
.private-entry h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 72px);
  line-height: 1.02;
  font-weight: 400;
}

.currently-panel {
  border-radius: 14px;
  padding: 22px;
  display: grid;
  gap: 18px;
}

.currently-panel div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.currently-panel div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.currently-panel strong {
  display: block;
  margin-top: 8px;
  font-weight: 500;
}

.private-entry {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border-radius: 22px;
  overflow: hidden;
  padding: 0;
  margin-bottom: 70px;
}

.private-entry figure {
  margin: 0;
  min-height: 520px;
}

.private-entry > div {
  padding: 38px 38px 38px 10px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.journal-panel {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(239, 248, 247, 0.82));
}

.quick-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.habit-chip {
  min-width: 0;
  min-height: 64px;
  padding: 8px 10px;
  line-height: 1.22;
  overflow-wrap: normal;
}

.opening-field {
  margin-bottom: 16px;
}

.opening-field input {
  min-height: 52px;
  font-family: var(--font-display);
  font-size: 23px;
}

.checkin-grid {
  display: grid;
  grid-template-columns: 130px 130px minmax(0, 1fr) 140px;
  gap: 10px;
  margin-bottom: 16px;
}

.checkin-grid label {
  display: grid;
  gap: 7px;
}

.checkin-grid span {
  color: var(--muted);
  font-size: 12px;
}

.checkin-grid select,
.checkin-grid input {
  min-height: 42px;
  background: rgba(239, 248, 247, 0.5);
  border-color: rgba(61, 117, 109, 0.18);
}

.journal-checkin {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -10px 0 24px;
}

.journal-checkin span {
  border: 1px solid rgba(61, 117, 109, 0.2);
  background: rgba(239, 248, 247, 0.6);
  color: #3d756d;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.ai-hook-box {
  margin-top: 14px;
  border: 1px solid rgba(61, 117, 109, 0.18);
  border-radius: 12px;
  padding: 12px;
  background: rgba(239, 248, 247, 0.45);
}

.ai-hook-box p {
  margin: 8px 0 12px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.ai-hook-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.ai-hook-grid label {
  display: grid;
  gap: 7px;
}

.ai-hook-grid label span {
  color: var(--muted);
  font-size: 12px;
}

.ai-status {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(61, 117, 109, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  color: #3d756d;
  background: rgba(255, 253, 247, 0.74);
  font-size: 12px;
}

.local-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.save-note {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 12px;
}

.save-note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(61, 117, 109, 0.58);
}

.save-note[data-tone="error"] {
  color: var(--danger);
}

.save-note[data-tone="error"]::before {
  background: var(--danger);
}

.ai-hook-box .payload-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.payload-preview {
  max-height: 260px;
  overflow: auto;
  border: 1px solid rgba(61, 117, 109, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
  color: #26312e;
  padding: 12px;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.45;
}

.archive-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 140px 130px 170px auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.archive-tools span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.today-hero {
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(236, 247, 247, 0.72));
}

.hero-visual {
  border-radius: 16px;
}

.metric-card {
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.72);
}

.metric-card strong {
  font-size: 24px;
}

.image-editor {
  display: grid;
  gap: 8px;
  align-items: stretch;
}

.image-grid.is-empty {
  display: block;
  min-height: 360px;
  overflow: visible;
}

.image-editor input,
.image-editor select {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 12px;
}

.image-controls,
.image-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.image-actions button {
  min-height: 32px;
  font-size: 12px;
}

.danger-button {
  color: var(--danger) !important;
}

.image-card.is-cover {
  outline: 2px solid rgba(61, 117, 109, 0.45);
  outline-offset: 2px;
}

.warm-empty {
  width: 100%;
  min-height: 360px;
  background:
    linear-gradient(rgba(255, 253, 247, 0.8), rgba(255, 253, 247, 0.92)),
    url("./assets/generated/field-walk-image2.png") center / cover,
    url("./assets/field-walk.jpg") center / cover;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}

.warm-empty span {
  display: block;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
}

.journal-page {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 31px, rgba(61, 117, 109, 0.055) 32px),
    #fffefa;
  background-size: 100% 32px, 100% 100%;
}

.template-reflection {
  background:
    linear-gradient(rgba(255, 255, 253, 0.9), rgba(255, 255, 253, 0.95)),
    url("./assets/generated/morning-road-image2.png") center / cover,
    url("./assets/morning-road.jpg") center / cover;
}

.hero-public {
  background:
    linear-gradient(rgba(255, 255, 253, 0.82), rgba(255, 255, 253, 0.88)),
    url("./assets/generated/desk-light-image2.png") center / cover,
    url("./assets/desk-light.jpg") center / cover;
}

@media (max-width: 980px) {
  .personal-hero,
  .journal-door,
  .research-section,
  .private-entry,
  .photo-ribbon,
  .about-strip {
    grid-template-columns: 1fr;
  }

  .personal-hero {
    min-height: auto;
  }

  .hero-photo {
    min-height: 340px;
    height: 48vh;
  }

  .photo-ribbon figure,
  .photo-ribbon figure:nth-child(2) {
    height: 310px;
    margin-top: 0;
  }

  .private-entry > div {
    padding: 28px;
  }

  .private-entry figure {
    min-height: 330px;
  }

  .site-footer {
    flex-direction: column;
  }

  .quick-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-writing .app-shell {
    grid-template-columns: 1fr;
  }

  .focus-writing .side-panel {
    position: static;
    min-height: auto;
    padding: 12px 16px;
  }

  .focus-writing .main-panel {
    max-width: none;
  }

  .focus-writing .topbar {
    gap: 14px;
  }

  .focus-writing .layout-two#daily {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .about-strip,
  .journal-door,
  .photo-ribbon,
  .research-section,
  .private-entry,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .note-card.with-photo {
    grid-template-columns: 1fr;
  }

  .image-controls,
  .image-actions,
  .ai-hook-grid,
  .archive-tools,
  .checkin-grid {
    grid-template-columns: 1fr;
  }

  .archive-tools span {
    text-align: left;
  }

  .quick-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .writing-section {
    padding: 14px;
  }

  .writing-section-head strong {
    font-size: 22px;
  }

  .suggested-template {
    align-items: flex-start;
    flex-direction: column;
  }

  .suggested-template button {
    width: 100%;
  }

  .trend-mini-grid {
    grid-template-columns: 1fr;
  }

  .main-panel {
    padding: 12px;
    overflow-x: clip;
  }

  .main-panel > * {
    order: 10;
  }

  .topbar {
    order: 1;
  }

  .today-hero {
    order: 2;
  }

  #daily {
    order: 3;
  }

  #journal {
    order: 4;
  }

  .topbar h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .today-hero {
    min-height: auto;
    padding: 12px;
  }

  .hero-copy {
    min-width: 0;
    padding: 10px;
  }

  .hero-copy h3 {
    max-width: 100%;
    font-size: clamp(36px, 11vw, 48px);
  }

  .hero-copy p {
    max-width: 100%;
    font-size: 16px;
  }

  .quiet-wins {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .quiet-win {
    min-width: 0;
    padding: 10px;
  }

  .quiet-win strong {
    font-size: clamp(22px, 7vw, 28px);
    overflow-wrap: break-word;
  }

  .focus-writing .topbar {
    align-items: flex-start;
  }

  .focus-writing .top-actions {
    justify-content: flex-start;
  }

  .focus-writing .today-hero {
    padding: 18px 18px;
  }

  .focus-writing .hero-copy h3 {
    font-size: clamp(34px, 12vw, 56px);
  }
}
