/* Heirloom Light writing rooms. Presentation only: original routes, forms,
   saved records, hidden states and native disclosures remain authoritative. */
:root[data-theme=heirloom_light] {
  --writing-ink: #422d1c;
  --writing-muted: #765d43;
  --writing-edge: #c3a474;
  --writing-paper: #f6e9ce;
  --writing-surface: linear-gradient(125deg, #fff7e5, #f2e3c7 78%, #ead4af);
  --writing-gold: linear-gradient(120deg, #f6dfa1, #dfb668 65%, #c99549);
  --writing-keepsake: url('/assets/images/b9436ec874676f6f/waymark-keepsake.png');
}

:root[data-theme=heirloom_light] :is(.waymark-editor, .waymarks-collection, .chart-page, .calendar-page, .letters-page, .letter-reader-page, .settings-page, .story-editor-page, .rule-editor-page, .reflection-editor-page, .editor, .detail-paper) {
  --light-text: var(--writing-ink);
  --light-muted: var(--writing-muted);
  --light-accent: #875c26;
  color: var(--writing-ink);
}

/* Soft linen and paper, without recoloring any original photographs. */
:root[data-theme=heirloom_light] #content :is(.waymark-editor, .chart-main) {
  background: radial-gradient(ellipse at 8% 15%, #e6c98c20, transparent 70%), #f8efdd !important;
}
:root[data-theme=heirloom_light] :is(.waymarks-collection, .calendar-page, .letters-page, .letter-reader-page, .settings-page, .story-editor-page, .rule-editor-page, .reflection-editor-page) {
  background: radial-gradient(ellipse at 0 10%, #e5c8941c, transparent 70%), #f8efdd;
}
:root[data-theme=heirloom_light] body:is([data-page=calendar], [data-page=letters], [data-page=chart], [data-editor=story], [data-editor=letter], [data-editor=rule]) .phone-shell,
:root[data-theme=heirloom_light] body:has(.letter-reader-page) .phone-shell {
  background: linear-gradient(#fcf4e3, #f5ead4 600px);
}

/* The compact editor hero remains compact, with a real keepsake illustration. */
:root[data-theme=heirloom_light] .waymark-editor .waymark-hero {
  --light-text: var(--writing-ink);
  --light-muted: var(--writing-muted);
  background: linear-gradient(90deg, #fcf3def2 0%, #fcf3dedd 43%, #fcf3de00 75%), var(--writing-keepsake) center 62% / cover no-repeat, #f4e6ca;
  border-bottom: 1px solid #c9ab7b;
}
:root[data-theme=heirloom_light] .waymark-editor .waymark-intro {
  margin-left: 0;
  width: 66%;
  padding: 38px 12px 12px 18px;
  text-align: left;
}
:root[data-theme=heirloom_light] .waymark-editor .waymark-intro h1 { font-size: clamp(24px, 6.1cqw, 30px); }
:root[data-theme=heirloom_light] .waymark-editor .waymark-subtitle { font-size: clamp(12px, 3.1cqw, 15px); }
:root[data-theme=heirloom_light] #content .waymark-editor .waymark-top {
  background: linear-gradient(110deg, #f9ecd2, #f1dfbc) !important;
  border-bottom-color: #cdb184;
}
:root[data-theme=heirloom_light] :is(.waymark-intro, .waymark-top a, .waymark-draft, .waymark-back) { text-shadow: none; }
:root[data-theme=heirloom_light] .waymark-back {
  padding-inline: 9px;
  margin-left: -9px;
  border-radius: 16px;
  background: #fff5e2e8;
}
:root[data-theme=heirloom_light] .waymark-brand { --light-text: #795025; }
:root[data-theme=heirloom_light] .waymark-week {
  background: #f3e0b8;
  border-color: #c2a06b;
}
:root[data-theme=heirloom_light] :is(.waymark-layout-picker, .chart-layout-picker) {
  background: #f4e7cf;
  border-color: #cdb590;
}
:root[data-theme=heirloom_light] :is(.waymark-layout-picker, .chart-layout-picker)>div {
  background: #eee0c6;
  border-color: #c2a474;
}
:root[data-theme=heirloom_light] :is(.waymark-layout-picker, .chart-layout-picker) button[aria-pressed=true] {
  background: var(--writing-gold);
  border-color: #a77a37;
  --light-text: #3e2913;
}
:root[data-theme=heirloom_light] :is(.waymark-date-row, .waymark-examples, .waymark-people fieldset, .waymark-people label, .waymark-editor[data-layout=new] #save-status) {
  border-color: #c5aa7b77;
}
:root[data-theme=heirloom_light] #content .waymark-date-control {
  background: #f1e1c3 !important;
  border-color: #bd9b65 !important;
}
:root[data-theme=heirloom_light] #content .waymark-date-control input {
  color-scheme: light;
  background: transparent !important;
}
:root[data-theme=heirloom_light] :is(.waymark-writing-paper, .editor, .detail-paper, .reflection-composer, .story-paper, .rule-paper, .letter-parchment, .calendar-paper, .chart-begin) {
  background: url('/assets/images/ae3eecc3329110b3/waymark-surface-grain.svg'), var(--writing-surface) !important;
  background-blend-mode: multiply, normal;
  border-color: #c1a16e !important;
  box-shadow: inset 0 1px 0 #fff9, inset 0 0 26px #b0802a13, 0 4px 14px #5f3d1c12;
  --light-text: var(--writing-ink);
}
:root[data-theme=heirloom_light] .waymark-form #entry-body,
:root[data-theme=heirloom_light] #content .story-paper :is(input, textarea) {
  background: transparent !important;
  caret-color: #4c2d16;
}
:root[data-theme=heirloom_light] :is(.waymark-mark, .waymark-private, .waymark-keep, .waymark-people, .keep-included, #keep-selected button) {
  background: linear-gradient(115deg, #fbf0da, #efdfbf) !important;
  border-color: #bfa06b !important;
  box-shadow: inset 0 1px #fff9, 0 2px 7px #64421c08;
}
:root[data-theme=heirloom_light] :is(.waymark-memory button, .waymark-visibility button, #waymark-add-to, #keep-links a) {
  background: linear-gradient(#fff5df, #efdbb7) !important;
  border-color: #bd985f !important;
  --light-text: #51391d;
}
:root[data-theme=heirloom_light] #content .waymark-visibility button[aria-pressed=true] {
  background: var(--writing-gold) !important;
  border-color: #96682e !important;
  box-shadow: inset 0 0 0 1px #f7e1ae, 0 2px 4px #64421c19;
  --light-text: #3e2814;
}
:root[data-theme=heirloom_light] :is(.waymark-toggle, .shortcut-show i, .area-visibility-row input) {
  background: #b9ad93;
  border-color: #8e7957;
  box-shadow: inset 0 1px 3px #5e451d33;
}
:root[data-theme=heirloom_light] .waymark-mark input:checked+.waymark-toggle { background: #a17d34; border-color: #795a23; }
:root[data-theme=heirloom_light] .keep-switch-row input:checked+.waymark-toggle { background: #5c7c4d; border-color: #486039; }
:root[data-theme=heirloom_light] :is(.waymark-toggle::after, .shortcut-show i::after, .area-visibility-row input::after) { background: #fff6df; box-shadow: 0 1px 3px #4d361c33; }
:root[data-theme=heirloom_light] :is(.keep-place-icon, .keep-included, .waymark-private) svg { color: #906b30; }
:root[data-theme=heirloom_light] .keep-place-icon:has(svg) {
  background: radial-gradient(ellipse at top, #fff0c5, #e4c28b);
  border-color: #b99459;
  box-shadow: inset 0 1px #fff9, 0 2px 4px #714b1820;
}
:root[data-theme=heirloom_light] [data-layout=focused] .keep-place-icon { background: none; box-shadow: none; }
:root[data-theme=heirloom_light] :is(.keep-place-icon svg, .shortcut-card-icon svg) { filter: none; }
:root[data-theme=heirloom_light] :is(#keep-passage-dialog, #chart-course-dialog) {
  background: #fbf0db !important;
  border-color: #b89457 !important;
  --light-text: var(--writing-ink);
}
:root[data-theme=heirloom_light] :is(#keep-passage-dialog, #chart-course-dialog)::backdrop { background: #39291280; }
:root[data-theme=heirloom_light] :is(.keep-dialog-header, .keep-dialog-footer, #waymark-keep-panel, .waymark-save-footer) {
  background: #f4e6cb !important;
  border-color: #c6a771 !important;
}
:root[data-theme=heirloom_light] :is(.keep-choices>div, .keep-destinations, .keep-switch-row, .keep-highlights label) { border-color: #c6a77188 !important; }
:root[data-theme=heirloom_light] #keep-passage {
  background: #f9efd9;
  border-left-color: #a77b37;
}
:root[data-theme=heirloom_light] .keep-badge { background: #e8d5ae; border-color: #b79a66; }
:root[data-theme=heirloom_light] :is(.waymark-set, #keep-apply, #waymark-selection-action, .chart-create, .letters-new, .editor-actions .primary, .story-save-actions .primary, .rule-save-actions .primary, .reflection-actions .primary, #chart-course-form .primary, .shortcut-save-actions .primary, .shortcut-add-actions [data-shortcut-action=add]) {
  background: var(--writing-gold) !important;
  border-color: #ad7d38 !important;
  box-shadow: inset 0 1px #fff5ce, 0 3px 7px #70471920;
  --light-text: #3b2713;
  color: #3b2713;
}

/* Collection headings use art behind a quiet readable patch of parchment. */
:root[data-theme=heirloom_light] .waymarks-collection .page-heading {
  margin: -2px -20px 18px;
  padding: 24px 20px 27px;
  background: linear-gradient(90deg, #fff4df 5%, #fff4dfea 48%, #fff4df22), var(--writing-keepsake) right 65% / cover no-repeat;
  border-block: 1px solid #c9ac7a66;
}
:root[data-theme=heirloom_light] .waymarks-collection .page-heading :is(h1, p) { max-width: 82%; }
:root[data-theme=heirloom_light] .waymarks-collection .entry-card {
  background: linear-gradient(125deg, #fff6e3, #f1e2c6) !important;
  border-color: #c7aa78 !important;
  box-shadow: inset 0 1px #fff9, 0 3px 9px #64421c0c;
}
:root[data-theme=heirloom_light] :is(.waymark-author-name, .waymark-people summary strong) { --light-text: #855b29; }

/* Captain's Chart: light map and compass, with the open side reserved for copy. */
:root[data-theme=heirloom_light] .chart-hero {
  --light-text: var(--writing-ink);
  --light-muted: var(--writing-muted);
  min-height: 260px;
  background: linear-gradient(90deg, #fff3ddde 0%, #fff3ddb3 48%, #fff3dd00 78%), linear-gradient(0deg, #f8efdd, #f8efdd00 28%), url('/assets/images/7a683e49147dd91c/light-chart.png') center / cover no-repeat;
}
:root[data-theme=heirloom_light] .chart-back { text-shadow: none; }
:root[data-theme=heirloom_light] .chart-hero-copy { margin-left: 0; max-width: 72%; padding: 12px 20px 45px; text-shadow: none; }
:root[data-theme=heirloom_light] .chart-hero h1 { font-size: clamp(30px, 8cqw, 44px); }
:root[data-theme=heirloom_light] .chart-hero-copy>p:last-child { font-size: clamp(15px, 3.8cqw, 20px); }
:root[data-theme=heirloom_light] .chart-eyebrow { --light-text: #855a29; }
:root[data-theme=heirloom_light] .chart-begin { border-width: 3px; }
:root[data-theme=heirloom_light] :is(.chart-companion, .chart-course) {
  background: linear-gradient(115deg, #fff4df, #efe0c3) !important;
  border-color: #c1a16d !important;
}
:root[data-theme=heirloom_light] :is(.chart-next, .chart-companion>div) { border-color: #c3a77877; }
:root[data-theme=heirloom_light] .chart-coming { background: #ede1c9 !important; border-color: #bba37c !important; --light-text: #735d3b; }
:root[data-theme=heirloom_light] .chart-course-actions button {
  background: #f0dfba;
  border-color: #b99960;
  min-height: 44px;
}
:root[data-theme=heirloom_light] #content .chart-starting-points button[aria-pressed=true] {
  background: var(--writing-gold) !important;
  border-color: #9b722f !important;
  --light-text: #3d2b16;
  box-shadow: inset 0 0 0 1px #fbe3af;
}
:root[data-theme=heirloom_light] .chart-course-state { --light-text: #557144; }

/* A compact calendar keeps the month and entry list close at hand. */
:root[data-theme=heirloom_light] .calendar-hero {
  --light-text: var(--writing-ink);
  --light-muted: var(--writing-muted);
  padding: 17px 22px 25px;
  min-height: 126px;
  background: linear-gradient(90deg, #fff3dedf 0%, #fff3deba 54%, #fff3de33), url('/assets/images/a48dac4b2981343b/light-desk.webp') center 63% / cover no-repeat;
  border-bottom: 1px solid #c9ab7c;
  margin-bottom: 15px;
}
:root[data-theme=heirloom_light] .calendar-hero :is(h1, p) { text-shadow: none; max-width: 85%; }
:root[data-theme=heirloom_light] .calendar-hero h1 { font-size: clamp(30px, 8cqw, 43px); }
:root[data-theme=heirloom_light] .calendar-hero p { font-size: clamp(16px, 4cqw, 21px); }
:root[data-theme=heirloom_light] :is(.calendar-view-switch, #calendar-month-form) { background: #efe0c3; border-color: #bc9e69; box-shadow: 0 3px 9px #5a3c1614; }
:root[data-theme=heirloom_light] :is(.calendar-view-switch button[aria-pressed=true], .calendar-month>a:not(.calendar-today), #calendar-month-form button) {
  background: var(--writing-gold);
  border-color: #af823e;
  --light-text: #3e2913;
  box-shadow: inset 0 1px #fff6d5, 0 2px 3px #68451d20;
}
:root[data-theme=heirloom_light] .calendar-month .calendar-today { background: #fbedd0; border-color: #b08b51; }
:root[data-theme=heirloom_light] .calendar-day { background: #fff6e4; border-color: #cfb98d; }
:root[data-theme=heirloom_light] .calendar-blank { background: #eadbbe66; border-color: #d8c6a322; }
:root[data-theme=heirloom_light] .calendar-day.is-today { outline-color: #8a6632; font-weight: 600; }
:root[data-theme=heirloom_light] .calendar-day.is-selected {
  background: var(--writing-gold) !important;
  border-color: #a37432;
  box-shadow: inset 0 0 0 1px #fff0c8, 0 2px 5px #6a4a2026;
  --light-text: #382614;
}
:root[data-theme=heirloom_light] .calendar-day:hover { background: #edd5a8; --light-text: #432b14; }
:root[data-theme=heirloom_light] :is(.calendar-day-card, .calendar-anniversaries, .calendar-memory-sample, .room-connection-link) {
  background: linear-gradient(120deg, #fff5df, #f0e1c5) !important;
  border-color: #c6a876 !important;
}
:root[data-theme=heirloom_light] .calendar-memory-sample img { background: #e8d6b4; }
:root[data-theme=heirloom_light] .calendar-memory-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 52px;
  padding: 8px;
  color: #8d6831;
  background: linear-gradient(135deg, #f8e9c6, #e7cfa0);
  border: 1px solid #ba9a62;
  border-radius: 7px;
}
:root[data-theme=heirloom_light] .calendar-today-badge { background: #ead6aa; border-color: #b48f4c; --light-text: #6c4b22; }
:root[data-theme=heirloom_light] .calendar-write-hint { border-color: #c4aa7d; }
:root[data-theme=heirloom_light] .calendar-space-label { border-left-color: #a27b3e; --light-text: #7b5429; }
:root[data-theme=heirloom_light] .room-connection-link:hover { background: #eddbb9 !important; border-color: #a77e3f !important; }

/* Letters keep their original envelope, corner ornament and dynamic content. */
:root[data-theme=heirloom_light] :is(.letters-hero, .letter-reader-heading, .story-editor-hero) {
  --light-text: var(--writing-ink);
  --light-muted: var(--writing-muted);
  margin-inline: -16px;
  padding: 21px 21px 24px;
  text-shadow: none;
  background: linear-gradient(90deg, #fff3ddf5, #fff3dddd 56%, #fff3dd22), var(--writing-keepsake) right 64% / cover no-repeat;
  border-bottom: 1px solid #c6a675;
  margin-bottom: 17px;
}
:root[data-theme=heirloom_light] :is(.letters-hero h1, .letter-reader-heading h1, .story-editor-hero h1) { font-size: clamp(29px, 7.6cqw, 42px); text-shadow: none; }
:root[data-theme=heirloom_light] .letters-hero>p:not(.letters-kicker),
:root[data-theme=heirloom_light] .story-editor-hero>p:last-child { max-width: 85%; font-size: clamp(16px, 4cqw, 21px); }
:root[data-theme=heirloom_light] :is(.letters-kicker, .story-editor-kicker, .rule-editor-kicker) { --light-text: #855b2b; }
:root[data-theme=heirloom_light] :is(.letter-paper-card, .story-frame) {
  background: linear-gradient(125deg, #dfc08c, #bd9459 48%, #ecd2a2);
  border-color: #ae834a;
  box-shadow: inset 0 0 0 2px #f5deb0, inset 0 0 0 3px #b18a4e, 0 4px 10px #6b482020;
}
:root[data-theme=heirloom_light] .letter-parchment .tag { background: #ead6ae; border-color: #b4945b; --light-text: #65461f; }
:root[data-theme=heirloom_light] .letter-parchment .tag.sample-unread { background: #e2c186; border-color: #9d743b; --light-text: #543413; box-shadow: none; }
:root[data-theme=heirloom_light] .letters-inbox-count { --light-text: #fff6e8; }
:root[data-theme=heirloom_light] :is(.letters-preview-note, .letters-empty-note, .letter-editor-notice) {
  background: #f0e3ca;
  border-color: #cbb38a;
  --light-text: #735a3c;
}
:root[data-theme=heirloom_light] .letters-drafts>.entry-card { background: var(--writing-surface) !important; border-color: #bb9860 !important; }
:root[data-theme=heirloom_light] .letter-empty-art { color: #9a7540; }

/* Original light room art marks Settings, without changing its arrangement. */
:root[data-theme=heirloom_light] .settings-hero {
  --light-text: var(--writing-ink);
  --light-muted: var(--writing-muted);
  min-height: 230px;
  background: linear-gradient(90deg, #fcf1deef 0%, #fcf1ded9 45%, #fcf1de08 80%), url('/assets/images/29b41545fde044a0/light-lantern-room.png') 67% center / cover no-repeat;
  border-color: #bf9f6b;
}
:root[data-theme=heirloom_light] .settings-hero h1 { font-size: clamp(39px, 10cqw, 50px); }
:root[data-theme=heirloom_light] .settings-hero p { max-width: 67%; font-size: clamp(16px, 4.4cqw, 21px); }
:root[data-theme=heirloom_light] :is(.settings-brand span, .settings-section, .settings-sections>.appearance-setting, .shade-disclosure) { border-color: #c4aa7c; }
:root[data-theme=heirloom_light] :is(.settings-group, .theme-option, .area-visibility-row, .shortcut-order-card, .shortcut-choice, .settings-floating-card, .shortcut-drag-card) {
  background: linear-gradient(115deg, #fff4df, #edddbd) !important;
  border-color: #bfa06d !important;
  box-shadow: inset 0 1px #fffa, 0 2px 8px #62431c0c;
}
:root[data-theme=heirloom_light] .settings-group-content { background: transparent !important; }
:root[data-theme=heirloom_light] :is(.settings-group-link+.settings-group-link, .settings-group-detail+.settings-group-detail) { border-color: #c8b28b77; }
:root[data-theme=heirloom_light] #content .theme-option:has(:checked) {
  background: #eed7a9 !important;
  border-color: #a37a37 !important;
  box-shadow: inset 0 0 0 1px #b78b42, 0 2px 5px #65451d12;
}
/* Use the same book artwork and selection badge as the dark theme cards. */
:root[data-theme=heirloom_light] .theme-picture-light { background: url('/assets/images/06a556a01faee4cb/appearance-atlas.png') center bottom / auto 208% no-repeat; }
:root[data-theme=heirloom_light] .theme-selected { background: #f1c579; --light-text: #2b1808; box-shadow: 0 2px 5px #5a3b1c33; }
:root[data-theme=heirloom_light] .theme-picture-option:focus-within { outline-color: #9b6c2d; }
:root[data-theme=heirloom_light] .shortcut-card-icon {
  background: linear-gradient(130deg, #f8e7be, #dabc82);
  color: #89632d;
  border-color: #b48d4f;
  box-shadow: inset 0 0 0 2px #eddbb8, inset 0 1px #fff6d9, 0 2px 3px #63441e22;
}
:root[data-theme=heirloom_light] .shelf-scope-tabs { background: #ecddc0; border-color: #bfa16e; }
:root[data-theme=heirloom_light] .shelf-scope-active { background: var(--writing-gold); --light-text: #3f2913; }
:root[data-theme=heirloom_light] .shelf-scope-tabs button:disabled { --light-text: #786a53; }
:root[data-theme=heirloom_light] .shortcut-add:not([hidden]) { background: #f1e4cc; border-color: #c3a574; }
:root[data-theme=heirloom_light] .shortcut-choice:has(:checked) { border-color: #a77b36 !important; box-shadow: inset 0 0 0 1px #b78b45; }
:root[data-theme=heirloom_light] :is(.shortcut-show[aria-checked=true] i, .area-visibility-row input:checked) { background: linear-gradient(110deg, #d9b367, #a47d36); border-color: #8a662d; }
:root[data-theme=heirloom_light] :is(.shortcut-drop-line, .settings-placement-line, .shortcut-drop-line::before, .shortcut-drop-line::after) { background: #916426; box-shadow: 0 0 0 1px #fff2d6; }
:root[data-theme=heirloom_light] .lantern-setting { border-color: #c4aa7c; }
:root[data-theme=heirloom_light] .lantern-setting input { background: #bbad92; border-color: #8d7754; }
:root[data-theme=heirloom_light] .lantern-setting input::before { background: #fff4db; box-shadow: 0 1px 3px #63471e33; }
:root[data-theme=heirloom_light] .lantern-setting input:checked { background: #a17d39; border-color: #7e5d27; }
:root[data-theme=heirloom_light] .lantern-setting input:checked::before { background: #fff2ce; }

/* Shared readable paper for stories, family values and reflection forms. */
:root[data-theme=heirloom_light] body[data-editor=story] .story-editor-hero {
  background: linear-gradient(90deg, #fff3def0 0%, #fff3deda 55%, #fff3de22), url('/assets/images/a48dac4b2981343b/light-desk.webp') center 63% / cover no-repeat;
}
:root[data-theme=heirloom_light] .rule-editor-hero {
  --light-text: var(--writing-ink);
  --light-muted: var(--writing-muted);
  background: linear-gradient(90deg, #fff3def0 0%, #fff3deda 55%, #fff3de22), url('/assets/images/a48dac4b2981343b/light-desk.webp') center 64% / cover no-repeat;
  border-bottom: 1px solid #c9aa78;
  margin-bottom: 17px;
}
:root[data-theme=heirloom_light] .rule-editor-hero :is(h1, p) { text-shadow: none; }
:root[data-theme=heirloom_light] .rule-paper { border-color: #c2a16a !important; outline-color: #af8a50; }
:root[data-theme=heirloom_light] .rule-discard { border-color: #bea16d; }
:root[data-theme=heirloom_light] .rule-discard button { background: #f8e9c8; border-color: #b79962; }
:root[data-theme=heirloom_light] .detail-paper { border-radius: 12px; }
:root[data-theme=heirloom_light] .reading-body { --light-text: #49321f; }
:root[data-theme=heirloom_light] :is(.editor, .rule-paper, .reflection-composer, #chart-course-form) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), textarea, select) {
  background: #fff8e8c9 !important;
  border-color: #bfa16e !important;
  color-scheme: light;
}
:root[data-theme=heirloom_light] :is(.waymark-help, .waymark-counter, .waymark-word-count, .waymark-sharing-note, .waymark-people small, .chart-local, .chart-feedback, .chart-companion-note, .calendar-view-note, .calendar-empty, .calendar-notes, .letters-local-note, .letter-reader-note, .story-editor-help, .rule-local-note, .settings-section-note, .settings-group-content p, .appearance-setting p, .editor-help) { --light-text: var(--writing-muted); }
:root[data-theme=heirloom_light] :is(.waymark-editor, .waymarks-collection, .chart-page, .calendar-page, .letters-page, .letter-reader-page, .settings-page, .story-editor-page, .rule-editor-page, .reflection-editor-page, .editor) :focus-visible,
:root[data-theme=heirloom_light] :is(.waymark-date-control, .waymark-writing-paper):focus-within {
  outline-color: #875e26;
}
:root[data-theme=heirloom_light] :is(.waymark-mark, .keep-switch-row) input:focus-visible+.waymark-toggle { outline-color: #875e26; }
:root[data-theme=heirloom_light] :is(.save-state, #keep-status, #chart-form-status)[data-error=true],
:root[data-theme=heirloom_light] .reflection-actions p[data-error=true] { --light-text: #922f22; }

@media (max-width: 355px) {
  :root[data-theme=heirloom_light] .chart-hero-copy { max-width: 78%; padding-inline: 16px; }
  :root[data-theme=heirloom_light] :is(.letters-hero, .story-editor-hero) { margin-inline: -12px; padding-inline: 17px; }
  :root[data-theme=heirloom_light] .waymarks-collection .page-heading { margin-inline: -16px; padding-inline: 16px; }
}
