:root {
  --desk: #E9DFCF;
  --paper: #FFFDF7;
  --paper-edge: #F4EDDF;
  --ink: #3A3330;
  --muted: #857A70;
  --brown: #8B3A17;      /* title colour, like the reference */
  --green: #6B7A3A;      /* handwritten section headings */
  --rule: #DCE6EE;       /* notebook lines */
  --margin: #E9A8A0;     /* red margin line */
  --ribbon: #B23A2B;
  --tape: rgba(232, 196, 112, .55);
  --line-h: 34px;
  --hand: "Shadows Into Light", "Comic Sans MS", cursive;
  --write: "Kalam", "Comic Sans MS", cursive;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  color: var(--ink);
  font: 17px/1.6 var(--body);
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.35), transparent 60%),
    var(--desk);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.banner { background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 6px 12px; }

/* ── Top bar ─────────────────────────────── */
.topbar {
  max-width: 1180px; margin: 0 auto; padding: 16px 24px 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.brand { font-family: var(--hand); font-size: 34px; color: var(--brown); line-height: 1; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.brand small { font-family: var(--body); font-size: 14px; color: var(--muted); }
.tabs { display: flex; gap: 6px; }
.tab {
  background: var(--paper); border: 0; border-radius: 10px 10px 0 0;
  padding: 8px 16px 6px; font-family: var(--write); font-size: 16px; color: var(--ink);
  box-shadow: 0 -2px 6px rgba(60, 40, 20, .08);
}
.tab:hover { color: var(--brown); }

/* ── The open book ───────────────────────── */
.book {
  max-width: 1180px; margin: 0 auto 10px; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  filter: drop-shadow(0 14px 24px rgba(60, 40, 20, .18));
}
.page {
  position: relative; background: var(--paper); padding: 34px 44px 30px;
  min-height: calc(100vh - 150px);
}
.page.left {
  border-radius: 6px 0 0 6px;
  background: linear-gradient(to left, rgba(120, 90, 60, .16), transparent 46px), var(--paper);
  box-shadow: inset 6px 0 0 var(--paper-edge);
}
.page.right {
  border-radius: 0 6px 6px 0;
  background: linear-gradient(to right, rgba(120, 90, 60, .16), transparent 46px), var(--paper);
  box-shadow: inset -6px 0 0 var(--paper-edge);
  display: flex; flex-direction: column;
}
.ribbon {
  position: absolute; top: -6px; right: 16px; width: 16px; height: 78px;
  background: var(--ribbon);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%);
}

/* ── Left page content ───────────────────── */
.title {
  margin: 0 0 6px; color: var(--brown); font-weight: 800;
  font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -.01em;
}
.theme { margin: 4px 0 18px; }
.tape {
  display: inline-block; background: var(--tape); padding: 3px 14px 2px;
  font-family: var(--write); font-size: 17px; transform: rotate(-1.5deg);
  clip-path: polygon(2% 0, 100% 4%, 98% 100%, 0 96%);
}
.tape strong { font-weight: 700; color: var(--brown); }

.hand { font-family: var(--hand); font-weight: 400; color: var(--green); font-size: 34px; line-height: 1.1; margin: 0; }
.hand.big { font-size: 40px; }

.sec { margin-bottom: 14px; }
.sec summary { list-style: none; cursor: pointer; display: block; border-radius: 8px; padding: 4px 8px 6px; margin: 0 -8px; transition: background .2s; }
.sec summary::-webkit-details-marker { display: none; }
.sec summary:hover { background: rgba(232, 196, 112, .14); }
.sec summary:focus-visible { outline: 2px dashed var(--green); }
.lead { margin: 2px 0 2px; font-size: 18px; }
.more-link { font-family: var(--write); font-size: 15px; color: var(--brown); }
.more-link::after { content: " +"; }
.sec[open] .more-link::after { content: " –"; }
.more {
  margin: 4px 0 6px; padding: 10px 14px; border-left: 3px solid var(--tape);
  background: rgba(244, 237, 223, .55); border-radius: 0 8px 8px 0;
  font-size: 16px; animation: drop .25s ease;
}
.more p { margin: 0 0 8px; }
.more p:last-child { margin-bottom: 0; }
.ask, .bonus { font-weight: 600; }
.ask em { font-weight: 400; }
.bonus span { font-weight: 400; }
.punch { font-family: var(--write); font-size: 24px; color: var(--brown); }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── Right page: writing ─────────────────── */
.stuck { font-size: 14px; color: var(--muted); }
.starters { display: flex; flex-wrap: wrap; gap: 6px; }
.starter {
  font-family: var(--write); font-size: 15px; background: var(--paper);
  border: 1px dashed #C9B89E; border-radius: 6px; padding: 2px 10px; color: var(--ink);
}
.starter:hover { border-style: solid; color: var(--brown); }

.lined {
  flex: 1; position: relative; margin: 8px -44px 0; padding: 0 44px 0 76px;
  background:
    linear-gradient(to right, transparent 64px, var(--margin) 64px, var(--margin) 66px, transparent 66px),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line-h) - 1px), var(--rule) calc(var(--line-h) - 1px), var(--rule) var(--line-h));
  background-attachment: local;
  min-height: calc(var(--line-h) * 9);
}
.lined textarea {
  display: block; width: 100%; height: 100%; min-height: calc(var(--line-h) * 9);
  border: 0; outline: 0; resize: none; background: transparent; overflow: hidden;
  font: 20px/var(--line-h) var(--write); color: #2E3A59; padding: 1px 0 0;
}
.lined textarea::placeholder { color: #A9A39A; }
.save-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.note { font-size: 13px; color: var(--muted); font-style: italic; }
.save {
  font-family: var(--write); font-weight: 700; font-size: 20px; letter-spacing: .02em;
  background: var(--brown); color: #fff; border: 0; border-radius: 6px;
  padding: 6px 28px; box-shadow: 2px 3px 0 rgba(60, 30, 10, .25); transform: rotate(-1deg);
}
.save:hover { transform: rotate(0); }
.save:disabled { opacity: .6; cursor: default; }
.save.wide { width: 100%; transform: none; padding: 10px; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.foot { max-width: 1180px; margin: 0 auto; padding: 6px 24px 20px; font-size: 12px; color: var(--muted); text-align: center; }

/* ── Modals ──────────────────────────────── */
.modal { position: fixed; inset: 0; background: rgba(58, 45, 35, .5); display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 50; }
.sheet {
  position: relative; background: var(--paper); border-radius: 6px; padding: 28px 30px;
  width: 100%; max-width: 430px; max-height: 90vh; overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.sheet.big { max-width: 720px; }
.muted { color: var(--muted); margin: 4px 0 16px; font-size: 15px; }
.x { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 28px; color: var(--muted); }
form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
form input, #search {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: 16px var(--body);
  border: 1px solid #DDD2C1; border-radius: 6px; background: #fff;
}
form input:focus, #search:focus { outline: 2px solid var(--green); outline-offset: -1px; }
.err { color: #B3261E; font-size: 14px; margin: 0 0 10px; }
.switch { text-align: center; font-size: 14px; margin: 16px 0 0; color: var(--muted); }
.link { background: none; border: 0; color: var(--brown); text-decoration: underline; padding: 0; }

/* Archive */
#search { margin-bottom: 8px; }
.month { font-family: var(--hand); font-size: 30px; color: var(--brown); font-weight: 400; margin: 18px 0 4px; }
.entry { padding: 12px 0 14px; border-bottom: 1px dashed #DDD2C1; }
.entry-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.entry-date { font-family: var(--write); font-weight: 700; font-size: 18px; }
.entry-theme { font-family: var(--write); font-size: 14px; background: var(--tape); padding: 0 8px; margin-left: 8px; }
.entry-prompt { font-size: 14px; font-style: italic; color: var(--muted); margin: 2px 0 6px; }
.entry-body {
  white-space: pre-wrap; margin: 0; font: 18px/30px var(--write); color: #2E3A59;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 29px, var(--rule) 29px, var(--rule) 30px);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer;
}
.entry.expanded .entry-body { display: block; }
.del { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; }
.del.confirm { color: #B3261E; font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 24px 0; font-family: var(--write); font-size: 18px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 6px; font-size: 15px;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Phones & small tablets: pages stack ── */
@media (max-width: 860px) {
  .book { grid-template-columns: 1fr; padding: 0 12px; }
  .page { min-height: 0; padding: 26px 22px 24px; }
  .page.left { border-radius: 6px 6px 0 0; background: var(--paper); box-shadow: none; }
  .page.right { border-radius: 0 0 6px 6px; background: linear-gradient(to bottom, rgba(120, 90, 60, .14), transparent 24px), var(--paper); box-shadow: none; }
  .lined { margin: 8px -22px 0; padding: 0 22px 0 50px; background:
    linear-gradient(to right, transparent 38px, var(--margin) 38px, var(--margin) 40px, transparent 40px),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line-h) - 1px), var(--rule) calc(var(--line-h) - 1px), var(--rule) var(--line-h)); }
  .ribbon { right: 28px; height: 64px; }
  .topbar { padding: 12px 14px 0; }
  .brand { font-size: 28px; }
  .brand small { display: none; }
  .hand { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── v3 additions: sky, chart, friends, sharing, install ── */
.banner.soft { background: #F4E3B5; color: var(--ink); }
.banner.soft button { margin-left: 8px; }
.theme-why { font-size: 13px; color: var(--muted); font-style: italic; margin-left: 6px; }
.sky-glyph { font-size: 20px; color: var(--brown); }
.moon-line { font-size: 15px; color: var(--muted); }
.personal { margin: 10px 0; padding: 10px 12px; border: 1px dashed #C9B89E; border-radius: 8px; background: var(--paper); }
.personal h3 { font-family: var(--write); font-size: 19px; margin: 0 0 4px; color: var(--brown); font-weight: 700; }
.personal ul { margin: 4px 0 0; padding-left: 18px; }
.personal li { margin-bottom: 4px; }
.planets { margin: 8px 0; }
.planets summary { cursor: pointer; font-family: var(--write); color: var(--brown); }
.planets ul { columns: 2; padding-left: 18px; margin: 6px 0 0; font-size: 15px; }
.fine { font-size: 12px; color: var(--muted); }
.opt { font-weight: 400; color: var(--muted); }
.check { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.check input { width: auto !important; margin: 0 !important; }
.place-results { display: grid; gap: 4px; margin: -6px 0 8px; }
.place-results button { text-align: left; background: #fff; border: 1px solid #DDD2C1; border-radius: 6px; padding: 6px 10px; font-size: 14px; }
.place-results button:hover { border-color: var(--green); }

.share-btn {
  margin-top: 6px; font-family: var(--write); font-size: 15px; background: none;
  border: 1px solid var(--brown); color: var(--brown); border-radius: 999px; padding: 2px 14px;
}
.share-btn::before { content: "↗ "; }
.share-btn:hover { background: var(--brown); color: #fff; }
.share-img { width: 100%; border-radius: 8px; border: 1px solid #E6DCCB; margin-bottom: 12px; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.share-grid button, .share-grid a {
  display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  border: 1px solid #DDD2C1; background: #fff; color: var(--ink); border-radius: 8px; padding: 9px 6px; font-size: 14px;
}
.share-grid button:hover, .share-grid a:hover { border-color: var(--brown); color: var(--brown); }
.share-grid .wide { grid-column: 1 / -1; background: var(--brown); color: #fff; border-color: var(--brown); font-weight: 700; }

.chart-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 14px; }
.chart-big div { background: #fff; border: 1px solid #E6DCCB; border-radius: 8px; padding: 10px; text-align: center; }
.chart-big b { display: block; font-family: var(--write); font-size: 22px; color: var(--brown); }
.chart-big span { font-size: 13px; color: var(--muted); }
.chart-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.chart-table td { padding: 5px 4px; border-bottom: 1px dashed #E6DCCB; }

.friends { margin-top: 14px; display: grid; gap: 12px; }
.friend { border: 1px solid #E6DCCB; border-radius: 10px; padding: 12px 14px; background: #fff; }
.friend-head { display: flex; align-items: center; gap: 12px; }
.score { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--write); font-weight: 700; font-size: 20px; color: #fff; background: var(--green); flex: none; }
.friend-name { font-family: var(--write); font-size: 22px; font-weight: 700; }
.friend-sub { font-size: 13px; color: var(--muted); }
.friend ul { margin: 8px 0; padding-left: 18px; font-size: 15px; }
.friend .today { background: rgba(232, 196, 112, .2); border-radius: 6px; padding: 8px 10px; font-size: 15px; }
.friend-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }

.tab.install { background: var(--brown); color: #fff; }
.install-steps { padding-left: 20px; }
.install-steps li { margin-bottom: 10px; }

@media (max-width: 860px) {
  .tabs { overflow-x: auto; max-width: 70vw; scrollbar-width: none; }
  .tab { white-space: nowrap; padding: 7px 10px 5px; font-size: 15px; }
  .planets ul { columns: 1; }
  .share-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-big { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── v4: day strip, invite note ── */
.day-strip { display: flex; gap: 4px; margin: 6px 0 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.day-strip::-webkit-scrollbar { display: none; }
.day { flex: 1 0 auto; min-width: 42px; background: none; border: 1px solid transparent; border-radius: 8px; padding: 3px 4px; color: var(--ink); line-height: 1.1; }
.day span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.day b { font-family: var(--write); font-size: 19px; }
.day:hover { border-color: #DDD2C1; }
.day.future { opacity: .6; }
.day.today span { color: var(--brown); font-weight: 700; }
.day.on { background: var(--tape); border-color: rgba(139, 58, 23, .25); opacity: 1; }
.wide-note { grid-column: 1 / -1; margin: 4px 0 0; }
textarea:disabled { cursor: not-allowed; }

.big3 { margin: -2px 0 6px; letter-spacing: .02em; }
.goodfor { font-size: 15px; background: rgba(232, 196, 112, .18); border-radius: 6px; padding: 6px 10px; }


/* ═════════ v6: mobile-first fixes & phone layout ═════════ */
html, body { overflow-x: clip; }
.book { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.page { min-width: 0; }
.day-strip { min-width: 0; scroll-snap-type: x mandatory; }
.day { scroll-snap-align: center; }
.bottom-nav { display: none; }
.lead, .more p, .entry-body { overflow-wrap: anywhere; }

@media (max-width: 860px) {
  body { -webkit-tap-highlight-color: transparent; }
  .banner { padding-top: calc(6px + env(safe-area-inset-top)); }

  /* Compact header: brand + account only (main navigation moves to the bottom bar) */
  .topbar { padding: calc(10px + env(safe-area-inset-top)) 14px 8px; align-items: center; }
  .brand { font-size: 30px; }
  .tabs { max-width: none; overflow: visible; }
  .tabs .tab:not(#authBtn):not(#installBtn) { display: none; }
  .tab { border-radius: 999px; padding: 8px 14px; min-height: 40px; box-shadow: none; border: 1px solid #DDD2C1; font-size: 15px; }

  /* One page, edge to edge */
  .book { grid-template-columns: minmax(0, 1fr); padding: 0 8px; filter: drop-shadow(0 6px 14px rgba(60, 40, 20, .12)); }
  .page { padding: 20px 18px 18px; }
  .page.right { margin-top: 10px; border-radius: 6px; }
  .page.left { border-radius: 6px; }
  .ribbon { right: 18px; width: 14px; height: 48px; }
  .title { font-size: 25px; margin-bottom: 4px; }
  .hand { font-size: 29px; }
  .lead { font-size: 17px; }
  .theme { margin: 6px 0 12px; }
  .theme-why { display: block; margin: 4px 0 0; }

  /* Date strip: swipeable row, bigger targets */
  .day-strip { margin: 4px -18px 6px; padding: 2px 18px 4px; gap: 6px; }
  .day { min-width: 48px; min-height: 52px; border-color: #EEE6D9; }

  /* Sections: whole header is the tap target */
  .sec summary { padding: 8px 8px 10px; }
  .more-link { display: inline-block; padding: 6px 0 0; font-size: 16px; }
  .more { font-size: 16px; padding: 12px 14px; }
  .share-btn { min-height: 40px; padding: 6px 16px; font-size: 16px; }
  .starter { min-height: 40px; font-size: 16px; padding: 6px 12px; }
  .sec summary:hover { background: none; }
  .sec summary:active { background: rgba(232, 196, 112, .2); }

  /* Writing: Save stays in reach above the bottom bar */
  .lined { margin: 8px -18px 0; padding: 0 18px 0 46px; min-height: calc(var(--line-h) * 7);
    background: linear-gradient(to right, transparent 34px, var(--margin) 34px, var(--margin) 36px, transparent 36px),
      repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line-h) - 1px), var(--rule) calc(var(--line-h) - 1px), var(--rule) var(--line-h)); }
  .lined textarea { min-height: calc(var(--line-h) * 7); font-size: 19px; }
  .save-row { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 70%, rgba(255, 253, 247, 0)); margin: 0 -18px -18px; padding: 14px 18px 12px; z-index: 5; }
  .save { min-height: 46px; padding: 8px 30px; }
  body.typing .save-row { bottom: 0; }

  .foot { padding: 14px 18px calc(90px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); text-align: center; border-radius: 12px; }

  /* Bottom tab bar */
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(255, 253, 247, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #E6DCCB; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    transition: transform .2s ease;
  }
  body.typing .bottom-nav { transform: translateY(110%); }
  .bottom-nav button { position: relative; background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; min-height: 52px; color: var(--muted); font: 600 11px var(--body); }
  .bottom-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .bottom-nav button.on { color: var(--brown); }
  .bottom-nav .dot { position: absolute; top: 6px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--ribbon); }

  /* Modals become bottom sheets */
  .modal { align-items: flex-end; padding: 0; }
  .sheet, .sheet.big { max-width: none; width: 100%; border-radius: 18px 18px 0 0; max-height: 92dvh; padding: 26px 18px calc(22px + env(safe-area-inset-bottom)); animation: sheetUp .22s ease; overscroll-behavior: contain; }
  .sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #DDD2C1; }
  .x { width: 44px; height: 44px; top: 6px; right: 6px; }
  .hand.big { font-size: 34px; padding-right: 40px; }
  .share-img { max-height: 42dvh; object-fit: contain; background: #E9DFCF; }
  .share-grid a, .share-grid button { min-height: 46px; }
  .chart-big { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chart-big b { font-size: 18px; }
  .chart-table td:last-child { display: none; }
  .friend-head { align-items: flex-start; }
  form input, #search { min-height: 46px; font-size: 16px; }
  .place-results button { min-height: 44px; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (hover: none) { .save:hover { transform: rotate(-1deg); } .card:hover { box-shadow: none; } }

@media (max-width: 860px) {
  .title { font-size: clamp(22px, 6.6vw, 27px); }
  #addFriendBtn { width: 100%; transform: none; }
  .friend-actions { flex-wrap: wrap; }
}

/* ── v7: good news ── */
.topic { display: inline-block; font: 700 11px var(--body); letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--green); border-radius: 4px; padding: 2px 6px; vertical-align: 2px; }
.topic:empty { display: none; }
.news-list { list-style: none; padding: 0; margin: 0 0 8px; }
.news-list li { padding: 8px 0 10px; border-bottom: 1px dashed #E6DCCB; }
.news-list li:last-child { border-bottom: 0; }
.news-list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.news-list a:hover, .news-list a:active { color: var(--brown); text-decoration: underline; }
.news-list p { margin: 4px 0 2px; font-size: 15px; }
.otd { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #E6DCCB; font-size: 15px; }
.otd a { color: var(--brown); }

/* ── v8: contact form ── */
form select, form textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: 16px var(--body); border: 1px solid #DDD2C1; border-radius: 6px; background: #fff; color: var(--ink); }
form textarea { resize: vertical; min-height: 110px; }
form select:focus, form textarea:focus { outline: 2px solid var(--green); outline-offset: -1px; }
label[hidden] { display: none !important; }

/* ── v9: one good-news story per day ── */
.source-link { display: inline-block; margin: 2px 0 8px; font-weight: 700; color: var(--brown); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.source-link:active { opacity: .7; }
.more-link[hidden], #newsBody[hidden] { display: none !important; }

.sky-tech{font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;opacity:.6;margin:.2rem 0 .4rem}
