/* Personal presentation preferences. Loaded last; no application data is changed. */
:root {
  color-scheme: light;
  --hp-bg: #fbf8f4;
  --hp-surface: #fffdfb;
  --hp-surface2: #f5efeb;
  --hp-native-surface: #fff;
  --hp-text: #3b3033;
  --hp-muted: #786b71;
  --hp-text-subtle: #6f5f66;
  --hp-accent: #b85073;
  --hp-accent-hover: #953b5b;
  --hp-soft: #f4e7eb;
  --hp-border: #eadfe2;
  --hp-danger: #aa394d;
  --hp-danger-soft: #f6e8e8;
  --hp-danger-border: #c87080;
  --hp-success: #426e54;
  --hp-success-soft: #eff8f2;
  --hp-success-border: #89a999;
  --hp-warning: #886522;
  --hp-warning-soft: #fff7e9;
  --hp-warning-border: #caa266;
  --hp-info: #43658b;
  --hp-on-accent: #fff;
  --hp-toast: #58404b;
  --hp-toast-text: #fff;
  --hp-bar: #fbf8f4f2;
  --hp-overlay: #24192199;
  --hp-shadow: #1b121f22;
  --hp-focus-ring: #b8507390;
  --hp-font-scale: 1;
  --hp-task-surface: #fffdfa;
  --hp-task-soft: #f5e9ed;
  --hp-task-muted: #89767d;
  --hya-paper: var(--hp-bg);
  --hya-white: var(--hp-surface);
  --hya-ink: var(--hp-text);
  --hya-muted: var(--hp-muted);
  --hya-rose: var(--hp-accent);
  --hya-rose-deep: var(--hp-accent-hover);
  --hya-soft: var(--hp-soft);
  --hya-line: var(--hp-border);
  --paper: var(--hp-bg);
  --surface: var(--hp-task-surface);
  --ink: var(--hp-text);
  --rose: var(--hp-accent);
  --soft: var(--hp-task-soft);
  --line: var(--hp-border);
  --muted: var(--hp-task-muted);
  --hp-legacy-accent-915770: #915770;
  --hp-legacy-accent-925271: #925271;
  --hp-legacy-accent-97516c: #97516c;
  --hp-legacy-accent-976078: #976078;
  --hp-legacy-accent-9a4767: #9a4767;
  --hp-legacy-accent-9a5570: #9a5570;
  --hp-legacy-accent-9b4665: #9b4665;
  --hp-legacy-accent-9c4766: #9c4766;
  --hp-legacy-accent-9c4865: #9c4865;
  --hp-legacy-accent-9d485f: #9d485f;
  --hp-legacy-accent-a04b6c: #a04b6c;
  --hp-legacy-accent-a05574: #a05574;
  --hp-legacy-accent-a15877: #a15877;
  --hp-legacy-accent-a44365: #a44365;
  --hp-legacy-accent-a45773: #a45773;
  --hp-legacy-accent-a54364: #a54364;
  --hp-legacy-accent-a54c6c: #a54c6c;
  --hp-legacy-accent-ac586a: #ac586a;
  --hp-legacy-accent-b85073: #b85073;
  --hp-legacy-accent-b8758f: #b8758f;
  --hp-legacy-accent-b9708d: #b9708d;
  --hp-legacy-accent-be809a: #be809a;
  --hp-legacy-accent-c2849b: #c2849b;
  --hp-legacy-accent-c6a4b0: #c6a4b0;
  --hp-legacy-accent-c88ba1: #c88ba1;
  --hp-legacy-accent-c97d94: #c97d94;
  --hp-legacy-accent-cd97ac: #cd97ac;
  --hp-legacy-accent-d39aae: #d39aae;
  --hp-legacy-accent-e8c8d3: #e8c8d3;
  --hp-legacy-accent-hover-8d4e68: #8d4e68;
  --hp-legacy-accent-hover-8f3654: #8f3654;
  --hp-legacy-accent-hover-8f4660: #8f4660;
  --hp-legacy-accent-hover-933c5b: #933c5b;
  --hp-legacy-accent-hover-965c34: #965c34;
  --hp-legacy-accent-hover-9a3f5d: #9a3f5d;
  --hp-legacy-accent-hover-9c4261: #9c4261;
  --hp-legacy-accent-hover-a44365: #a44365;
  --hp-legacy-accent-hover-a54364: #a54364;
  --hp-legacy-bar-fbf8f4f2: #fbf8f4f2;
  --hp-legacy-border-cba9b8: #cba9b8;
  --hp-legacy-border-d8b3c1: #d8b3c1;
  --hp-legacy-border-d8b7c5: #d8b7c5;
  --hp-legacy-border-d9abbc: #d9abbc;
  --hp-legacy-border-d9b9c7: #d9b9c7;
  --hp-legacy-border-d9bdc8: #d9bdc8;
  --hp-legacy-border-d9cbd0: #d9cbd0;
  --hp-legacy-border-dab9c5: #dab9c5;
  --hp-legacy-border-dbb9c5: #dbb9c5;
  --hp-legacy-border-ddc6ce: #ddc6ce;
  --hp-legacy-border-dde1e7: #dde1e7;
  --hp-legacy-border-dfc5cf: #dfc5cf;
  --hp-legacy-border-dfc7d0: #dfc7d0;
  --hp-legacy-border-dfc8d1: #dfc8d1;
  --hp-legacy-border-e0cdd5: #e0cdd5;
  --hp-legacy-border-e1c5d3: #e1c5d3;
  --hp-legacy-border-e4ced8: #e4ced8;
  --hp-legacy-border-e5d6e8: #e5d6e8;
  --hp-legacy-border-e8ced8: #e8ced8;
  --hp-legacy-border-e8d3dc: #e8d3dc;
  --hp-legacy-border-ead7c9: #ead7c9;
  --hp-legacy-border-eadfe2: #eadfe2;
  --hp-legacy-border-eee4e7: #eee4e7;
  --hp-legacy-border-f0e1e6: #f0e1e6;
  --hp-legacy-border-f0e6e8: #f0e6e8;
  --hp-legacy-border-f0e7e5: #f0e7e5;
  --hp-legacy-border-f0e7e9: #f0e7e9;
  --hp-legacy-border-f0e8e9: #f0e8e9;
  --hp-legacy-border-f1e6ea: #f1e6ea;
  --hp-legacy-border-fbf8f4: #fbf8f4;
  --hp-legacy-danger-aa5c68: #aa5c68;
  --hp-legacy-danger-border-ba576f: #ba576f;
  --hp-legacy-danger-soft-f6e8e8: #f6e8e8;
  --hp-legacy-focus-ring-b8507390: #b8507390;
  --hp-legacy-muted-586b82: #586b82;
  --hp-legacy-muted-6c5c64: #6c5c64;
  --hp-legacy-muted-6d535e: #6d535e;
  --hp-legacy-muted-6d535f: #6d535f;
  --hp-legacy-muted-6d5c65: #6d5c65;
  --hp-legacy-muted-6f4e60: #6f4e60;
  --hp-legacy-muted-73646a: #73646a;
  --hp-legacy-muted-745764: #745764;
  --hp-legacy-muted-755962: #755962;
  --hp-legacy-muted-75616a: #75616a;
  --hp-legacy-muted-75626a: #75626a;
  --hp-legacy-muted-758499: var(--hp-text-subtle);
  --hp-legacy-muted-785367: #785367;
  --hp-legacy-muted-785574: #785574;
  --hp-legacy-muted-785b68: #785b68;
  --hp-legacy-muted-78616d: #78616d;
  --hp-legacy-muted-79666f: var(--hp-text-subtle);
  --hp-legacy-muted-7c626e: #7c626e;
  --hp-legacy-muted-7d5c6b: #7d5c6b;
  --hp-legacy-muted-7e6873: var(--hp-text-subtle);
  --hp-legacy-muted-806477: var(--hp-text-subtle);
  --hp-legacy-muted-806570: var(--hp-text-subtle);
  --hp-legacy-muted-806b74: var(--hp-text-subtle);
  --hp-legacy-muted-815769: #815769;
  --hp-legacy-muted-81616f: #81616f;
  --hp-legacy-muted-82616f: var(--hp-text-subtle);
  --hp-legacy-muted-827378: var(--hp-text-subtle);
  --hp-legacy-muted-836973: var(--hp-text-subtle);
  --hp-legacy-muted-856b77: var(--hp-text-subtle);
  --hp-legacy-muted-886d86: var(--hp-text-subtle);
  --hp-legacy-muted-88717b: var(--hp-text-subtle);
  --hp-legacy-muted-88727c: var(--hp-text-subtle);
  --hp-legacy-muted-89737d: var(--hp-text-subtle);
  --hp-legacy-muted-8b707c: var(--hp-text-subtle);
  --hp-legacy-muted-8b747f: var(--hp-text-subtle);
  --hp-legacy-muted-8c707c: var(--hp-text-subtle);
  --hp-legacy-muted-8d7680: var(--hp-text-subtle);
  --hp-legacy-muted-8d7a84: var(--hp-text-subtle);
  --hp-legacy-muted-8e6586: var(--hp-text-subtle);
  --hp-legacy-muted-8e6c79: var(--hp-text-subtle);
  --hp-legacy-muted-907e85: var(--hp-text-subtle);
  --hp-legacy-muted-916781: var(--hp-text-subtle);
  --hp-legacy-muted-937582: var(--hp-text-subtle);
  --hp-legacy-muted-946176: var(--hp-text-subtle);
  --hp-legacy-muted-947181: var(--hp-text-subtle);
  --hp-legacy-muted-966b7e: var(--hp-text-subtle);
  --hp-legacy-muted-977e89: var(--hp-text-subtle);
  --hp-legacy-muted-987084: var(--hp-text-subtle);
  --hp-legacy-muted-9a7c8a: var(--hp-text-subtle);
  --hp-legacy-muted-a18191: var(--hp-text-subtle);
  --hp-legacy-muted-a18b95: var(--hp-text-subtle);
  --hp-legacy-muted-a18c95: var(--hp-text-subtle);
  --hp-legacy-muted-a27d8e: var(--hp-text-subtle);
  --hp-legacy-muted-a38e96: var(--hp-text-subtle);
  --hp-legacy-muted-a48d96: var(--hp-text-subtle);
  --hp-legacy-muted-a5758b: var(--hp-text-subtle);
  --hp-legacy-muted-a7bfae: var(--hp-text-subtle);
  --hp-legacy-muted-aa929d: var(--hp-text-subtle);
  --hp-legacy-muted-aa939d: var(--hp-text-subtle);
  --hp-legacy-muted-ad8c9a: var(--hp-text-subtle);
  --hp-legacy-muted-ad969f: var(--hp-text-subtle);
  --hp-legacy-muted-ae8998: var(--hp-text-subtle);
  --hp-legacy-muted-b4a4ab: var(--hp-text-subtle);
  --hp-legacy-muted-b89ba7: var(--hp-text-subtle);
  --hp-legacy-muted-b99dab: var(--hp-text-subtle);
  --hp-legacy-native-surface-fcfcfd: #fcfcfd;
  --hp-legacy-native-surface-fff: #fff;
  --hp-legacy-native-surface-fffafc: #fffafc;
  --hp-legacy-native-surface-fffdfa: #fffdfa;
  --hp-legacy-native-surface-fffdfb: #fffdfb;
  --hp-legacy-on-accent-fff: #fff;
  --hp-legacy-overlay-3d283d3b: #3d283d3b;
  --hp-legacy-shadow-3b30331a: #3b30331a;
  --hp-legacy-shadow-3b303330: #3b303330;
  --hp-legacy-shadow-43272f22: #43272f22;
  --hp-legacy-shadow-50334318: #50334318;
  --hp-legacy-shadow-62404f14: #62404f14;
  --hp-legacy-shadow-633b4a10: #633b4a10;
  --hp-legacy-shadow-6733430b: #6733430b;
  --hp-legacy-shadow-6d4b5908: #6d4b5908;
  --hp-legacy-shadow-b850730c: #b850730c;
  --hp-legacy-shadow-dbaebd: #dbaebd;
  --hp-legacy-soft-e7c5d0: #e7c5d0;
  --hp-legacy-soft-e9dce1: #e9dce1;
  --hp-legacy-soft-ead3dc: #ead3dc;
  --hp-legacy-soft-ead8dd: #ead8dd;
  --hp-legacy-soft-ead8df: #ead8df;
  --hp-legacy-soft-ebd7df: #ebd7df;
  --hp-legacy-soft-ecd7e0: #ecd7e0;
  --hp-legacy-soft-ecd9e0: #ecd9e0;
  --hp-legacy-soft-ecdce3: #ecdce3;
  --hp-legacy-soft-eddee5: #eddee5;
  --hp-legacy-soft-eee0e5: #eee0e5;
  --hp-legacy-soft-eee3e7: #eee3e7;
  --hp-legacy-soft-eee4e6: #eee4e6;
  --hp-legacy-soft-efdee5: #efdee5;
  --hp-legacy-soft-efe6f0: #efe6f0;
  --hp-legacy-soft-f0dfe5: #f0dfe5;
  --hp-legacy-soft-f0e1e7: #f0e1e7;
  --hp-legacy-soft-f0e2e8: #f0e2e8;
  --hp-legacy-soft-f1e1e8: #f1e1e8;
  --hp-legacy-soft-f1e5e9: #f1e5e9;
  --hp-legacy-soft-f2e2e9: #f2e2e9;
  --hp-legacy-soft-f3ecdf: #f3ecdf;
  --hp-legacy-soft-f4e4eb: #f4e4eb;
  --hp-legacy-soft-f5e5ec: #f5e5ec;
  --hp-legacy-soft-f5e6dc: #f5e6dc;
  --hp-legacy-soft-f5e9ed: #f5e9ed;
  --hp-legacy-soft-f5e9ee: #f5e9ee;
  --hp-legacy-soft-f6e8ed: #f6e8ed;
  --hp-legacy-soft-f6eaf0: #f6eaf0;
  --hp-legacy-soft-f6efeb: #f6efeb;
  --hp-legacy-soft-f7edf0: #f7edf0;
  --hp-legacy-soft-f8eef1: #f8eef1;
  --hp-legacy-soft-f9edf1: #f9edf1;
  --hp-legacy-soft-f9eff2: #f9eff2;
  --hp-legacy-soft-f9f0f2: #f9f0f2;
  --hp-legacy-success-65806c: #65806c;
  --hp-legacy-success-border-88a394: #88a394;
  --hp-legacy-success-border-89a999: #89a999;
  --hp-legacy-success-border-d6e3d9: #d6e3d9;
  --hp-legacy-success-soft-e9f1eb: #e9f1eb;
  --hp-legacy-success-soft-f4f8f5: #f4f8f5;
  --hp-legacy-surface-f8f5f2: #f8f5f2;
  --hp-legacy-surface-faf0f3: #faf0f3;
  --hp-legacy-surface-fbf3f4: #fbf3f4;
  --hp-legacy-surface-fbf3f6: #fbf3f6;
  --hp-legacy-surface-fbf6f5: #fbf6f5;
  --hp-legacy-surface-fbf8f4: #fbf8f4;
  --hp-legacy-surface-fbf8f5: #fbf8f5;
  --hp-legacy-surface-fcf5f7: #fcf5f7;
  --hp-legacy-surface-fdfaf8: #fdfaf8;
  --hp-legacy-surface-fffaf7: #fffaf7;
  --hp-legacy-surface-fffdf7: #fffdf7;
  --hp-legacy-surface2-edf0f4: #edf0f4;
  --hp-legacy-surface2-f0e8e8: #f0e8e8;
  --hp-legacy-surface2-f1e7eb: #f1e7eb;
  --hp-legacy-surface2-f1ece8: #f1ece8;
  --hp-legacy-surface2-f2e7e8: #f2e7e8;
  --hp-legacy-surface2-f3e7ec: #f3e7ec;
  --hp-legacy-surface2-f3e8e9: #f3e8e9;
  --hp-legacy-surface2-f3ebe9: #f3ebe9;
  --hp-legacy-surface2-f3edea: #f3edea;
  --hp-legacy-surface2-f4e9ec: #f4e9ec;
  --hp-legacy-surface2-f4e9ed: #f4e9ed;
  --hp-legacy-surface2-f5eeec: #f5eeec;
  --hp-legacy-surface2-f5efeb: #f5efeb;
  --hp-legacy-surface2-f5f2ef: #f5f2ef;
  --hp-legacy-text-3b3033: #3b3033;
  --hp-legacy-text-55474d: #55474d;
  --hp-legacy-text-59424b: #59424b;
  --hp-legacy-text-624851: #624851;
  --hp-legacy-text-64505a: #64505a;
  --hp-legacy-toast-58404b: #58404b;
  --hp-legacy-warning-8b764b: #8b764b;
  --hp-legacy-warning-border-caa266: #caa266;
  --hp-legacy-warning-border-e5d9c4: #e5d9c4;
  --hp-legacy-warning-border-ead9ad: #ead9ad;
  --hp-legacy-warning-soft-fbefd3: #fbefd3;
}

:root[data-hya-font="small"] { --hp-font-scale: .9; }
:root[data-hya-font="large"] { --hp-font-scale: 1.12; }
:root[data-hya-font="xlarge"] { --hp-font-scale: 1.24; }

:root[data-hya-skin="sage"] {
  --hp-bg: #f8f8f2; --hp-surface: #fdfef9; --hp-surface2: #eef1e8;
  --hp-text: #303b32; --hp-muted: #607164;
  --hp-accent: #477558; --hp-accent-hover: #31593f;
  --hp-soft: #e4eee2; --hp-border: #dce3d6; --hp-focus-ring: #47755890;
}
:root[data-hya-skin="ocean"] {
  --hp-bg: #f5f8f9; --hp-surface: #fbfdfe; --hp-surface2: #eaf0f2;
  --hp-text: #293a43; --hp-muted: #5f727d;
  --hp-accent: #376f91; --hp-accent-hover: #275370;
  --hp-soft: #e0edf4; --hp-border: #d6e2e8; --hp-focus-ring: #376f9190;
}
:root[data-hya-skin="amber"] {
  --hp-bg: #faf7f0; --hp-surface: #fffdf8; --hp-surface2: #f1ebdf;
  --hp-text: #403529; --hp-muted: #766851;
  --hp-accent: #8b652e; --hp-accent-hover: #68491e;
  --hp-soft: #f2e7cc; --hp-border: #e8dcc4; --hp-focus-ring: #8b652e90;
}

/* Romantic palettes pair softly tinted paper with readable, warm ink. */
:root[data-hya-skin="peach"] {
  --hp-bg: #fff6ed; --hp-surface: #fffcf7; --hp-surface2: #f6e8dc;
  --hp-text: #49332c; --hp-muted: #77594f; --hp-text-subtle: #77594f;
  --hp-accent: #9c483d; --hp-accent-hover: #803a32;
  --hp-soft: #f7dfd3; --hp-border: #ead6c7;
  --hp-on-accent: #fff; --hp-toast: #704c43; --hp-toast-text: #fff;
  --hp-bar: #fff6edf2; --hp-shadow: #71453422; --hp-overlay: #34211f99;
  --hp-focus-ring: #9c483d90;
}
:root[data-hya-skin="sakura"] {
  --hp-bg: #fff6f5; --hp-surface: #fffbfa; --hp-surface2: #f7e8e9;
  --hp-text: #493037; --hp-muted: #785962; --hp-text-subtle: #785962;
  --hp-accent: #a24360; --hp-accent-hover: #89394f;
  --hp-soft: #f7dfe6; --hp-border: #ecd4dc;
  --hp-on-accent: #fff; --hp-toast: #754350; --hp-toast-text: #fff;
  --hp-bar: #fff6f5f2; --hp-shadow: #793e5222; --hp-overlay: #34202a99;
  --hp-focus-ring: #a2436090;
}
:root[data-hya-skin="sunset"] {
  --hp-bg: #fcf4e9; --hp-surface: #fffaf2; --hp-surface2: #f2e3cd;
  --hp-text: #49372c; --hp-muted: #725e4e; --hp-text-subtle: #725e4e;
  --hp-accent: #93512e; --hp-accent-hover: #804324;
  --hp-soft: #f4ddbf; --hp-border: #e8d4b8;
  --hp-on-accent: #fff; --hp-toast: #795038; --hp-toast-text: #fff;
  --hp-bar: #fcf4e9f2; --hp-shadow: #784b2422; --hp-overlay: #35271b99;
  --hp-focus-ring: #93512e90;
}
:root[data-hya-skin="cocoa"] {
  --hp-bg: #f6f0e9; --hp-surface: #fffaf5; --hp-surface2: #eae0d5;
  --hp-text: #493730; --hp-muted: #705b4e; --hp-text-subtle: #705b4e;
  --hp-accent: #795140; --hp-accent-hover: #624331;
  --hp-soft: #e8d9cb; --hp-border: #ddc9b8;
  --hp-on-accent: #fff; --hp-toast: #62483a; --hp-toast-text: #fff;
  --hp-bar: #f6f0e9f2; --hp-shadow: #543a2822; --hp-overlay: #30251e99;
  --hp-focus-ring: #79514090;
}

:root[data-hya-mode="dark"] {
  color-scheme: dark;
  --hp-bg: #201b1d; --hp-surface: #2b2528; --hp-surface2: #332c2e;
  --hp-text: #f2eae5; --hp-muted: #c2b0b8;
  --hp-accent: #e5a0b6; --hp-accent-hover: #f4bfd0;
  --hp-soft: #442f39; --hp-border: #584650;
  --hp-danger: #f3a3ad; --hp-danger-soft: #462d34; --hp-danger-border: #975969;
  --hp-success: #a7d5b7; --hp-success-soft: #293d31; --hp-success-border: #689578;
  --hp-warning: #e6c27c; --hp-warning-soft: #433a27; --hp-warning-border: #9d804a;
  --hp-info: #a2c3e9;
  --hp-on-accent: #2b1820; --hp-toast: #e5d4dc; --hp-toast-text: #30212a;
  --hp-bar: #201b1df2; --hp-overlay: #0e0b0db8; --hp-shadow: #00000055;
  --hp-focus-ring: #e5a0b690;
}
:root[data-hya-mode="dark"][data-hya-skin="sage"] {
  --hp-bg: #1a211c; --hp-surface: #232d26; --hp-surface2: #2b372e;
  --hp-text: #edf3e9; --hp-muted: #b3c5b6;
  --hp-accent: #a3cdaa; --hp-accent-hover: #c1e3c6;
  --hp-soft: #304535; --hp-border: #455b49;
  --hp-on-accent: #18271c; --hp-bar: #1a211cf2; --hp-focus-ring: #a3cdaa90;
}
:root[data-hya-mode="dark"][data-hya-skin="ocean"] {
  --hp-bg: #192128; --hp-surface: #232e37; --hp-surface2: #2a3843;
  --hp-text: #eaf1f6; --hp-muted: #b0c2ce;
  --hp-accent: #9cc8e8; --hp-accent-hover: #bedef3;
  --hp-soft: #2b4253; --hp-border: #425c6d;
  --hp-on-accent: #182936; --hp-bar: #192128f2; --hp-focus-ring: #9cc8e890;
}
:root[data-hya-mode="dark"][data-hya-skin="amber"] {
  --hp-bg: #241f18; --hp-surface: #302920; --hp-surface2: #393126;
  --hp-text: #f4eee3; --hp-muted: #c7b99f;
  --hp-accent: #dfbf7b; --hp-accent-hover: #efd8a5;
  --hp-soft: #4b3d25; --hp-border: #62533a;
  --hp-on-accent: #302414; --hp-bar: #241f18f2; --hp-focus-ring: #dfbf7b90;
}
:root[data-hya-mode="dark"][data-hya-skin="peach"] {
  --hp-bg: #261f1d; --hp-surface: #322825; --hp-surface2: #3b302b;
  --hp-text: #f5e9df; --hp-muted: #cdb9aa; --hp-text-subtle: #cdb9aa;
  --hp-accent: #e6ae93; --hp-accent-hover: #f2c7b0;
  --hp-soft: #4b342a; --hp-border: #645046;
  --hp-on-accent: #34231e; --hp-toast: #ead7cb; --hp-toast-text: #34231e;
  --hp-bar: #261f1df2; --hp-focus-ring: #e6ae9390;
}
:root[data-hya-mode="dark"][data-hya-skin="sakura"] {
  --hp-bg: #251c20; --hp-surface: #32252b; --hp-surface2: #3c2d32;
  --hp-text: #f5e8ed; --hp-muted: #cab3bd; --hp-text-subtle: #cab3bd;
  --hp-accent: #e6a7bb; --hp-accent-hover: #f3c3d2;
  --hp-soft: #49323c; --hp-border: #624751;
  --hp-on-accent: #341d27; --hp-toast: #ead2dc; --hp-toast-text: #341d27;
  --hp-bar: #251c20f2; --hp-focus-ring: #e6a7bb90;
}
:root[data-hya-mode="dark"][data-hya-skin="sunset"] {
  --hp-bg: #261f18; --hp-surface: #32291f; --hp-surface2: #3e3124;
  --hp-text: #f6eddf; --hp-muted: #cfb99d; --hp-text-subtle: #cfb99d;
  --hp-accent: #e3ba88; --hp-accent-hover: #f1d0a4;
  --hp-soft: #4d3926; --hp-border: #67503c;
  --hp-on-accent: #342516; --hp-toast: #ead9c3; --hp-toast-text: #342516;
  --hp-bar: #261f18f2; --hp-focus-ring: #e3ba8890;
}
:root[data-hya-mode="dark"][data-hya-skin="cocoa"] {
  --hp-bg: #211c19; --hp-surface: #2d2521; --hp-surface2: #382e28;
  --hp-text: #f1e8dd; --hp-muted: #c8b4a3; --hp-text-subtle: #c8b4a3;
  --hp-accent: #d4b398; --hp-accent-hover: #e5c9af;
  --hp-soft: #44342a; --hp-border: #5c493b;
  --hp-on-accent: #30231c; --hp-toast: #dfcdbb; --hp-toast-text: #30231c;
  --hp-bar: #211c19f2; --hp-focus-ring: #d4b39890;
}

/* Legacy aliases retain every accepted light/rose shade. A selected alternate
   palette maps those individual shades to semantic, contrast-tested tokens. */
:root:is([data-hya-mode="dark"], [data-hya-skin="sage"], [data-hya-skin="ocean"], [data-hya-skin="amber"], [data-hya-skin="peach"], [data-hya-skin="sakura"], [data-hya-skin="sunset"], [data-hya-skin="cocoa"]) {
  --hp-native-surface: var(--hp-surface);
  --hp-task-surface: var(--hp-surface);
  --hp-task-soft: var(--hp-soft);
  --hp-task-muted: var(--hp-muted);
  --hp-legacy-accent-915770: var(--hp-accent);
  --hp-legacy-accent-925271: var(--hp-accent);
  --hp-legacy-accent-97516c: var(--hp-accent);
  --hp-legacy-accent-976078: var(--hp-accent);
  --hp-legacy-accent-9a4767: var(--hp-accent);
  --hp-legacy-accent-9a5570: var(--hp-accent);
  --hp-legacy-accent-9b4665: var(--hp-accent);
  --hp-legacy-accent-9c4766: var(--hp-accent);
  --hp-legacy-accent-9c4865: var(--hp-accent);
  --hp-legacy-accent-9d485f: var(--hp-accent);
  --hp-legacy-accent-a04b6c: var(--hp-accent);
  --hp-legacy-accent-a05574: var(--hp-accent);
  --hp-legacy-accent-a15877: var(--hp-accent);
  --hp-legacy-accent-a44365: var(--hp-accent);
  --hp-legacy-accent-a45773: var(--hp-accent);
  --hp-legacy-accent-a54364: var(--hp-accent);
  --hp-legacy-accent-a54c6c: var(--hp-accent);
  --hp-legacy-accent-ac586a: var(--hp-accent);
  --hp-legacy-accent-b85073: var(--hp-accent);
  --hp-legacy-accent-b8758f: var(--hp-accent);
  --hp-legacy-accent-b9708d: var(--hp-accent);
  --hp-legacy-accent-be809a: var(--hp-accent);
  --hp-legacy-accent-c2849b: var(--hp-accent);
  --hp-legacy-accent-c6a4b0: var(--hp-accent);
  --hp-legacy-accent-c88ba1: var(--hp-accent);
  --hp-legacy-accent-c97d94: var(--hp-accent);
  --hp-legacy-accent-cd97ac: var(--hp-accent);
  --hp-legacy-accent-d39aae: var(--hp-accent);
  --hp-legacy-accent-e8c8d3: var(--hp-accent);
  --hp-legacy-accent-hover-8d4e68: var(--hp-accent-hover);
  --hp-legacy-accent-hover-8f3654: var(--hp-accent-hover);
  --hp-legacy-accent-hover-8f4660: var(--hp-accent-hover);
  --hp-legacy-accent-hover-933c5b: var(--hp-accent-hover);
  --hp-legacy-accent-hover-965c34: var(--hp-accent-hover);
  --hp-legacy-accent-hover-9a3f5d: var(--hp-accent-hover);
  --hp-legacy-accent-hover-9c4261: var(--hp-accent-hover);
  --hp-legacy-accent-hover-a44365: var(--hp-accent-hover);
  --hp-legacy-accent-hover-a54364: var(--hp-accent-hover);
  --hp-legacy-bar-fbf8f4f2: var(--hp-bar);
  --hp-legacy-border-cba9b8: var(--hp-border);
  --hp-legacy-border-d8b3c1: var(--hp-border);
  --hp-legacy-border-d8b7c5: var(--hp-border);
  --hp-legacy-border-d9abbc: var(--hp-border);
  --hp-legacy-border-d9b9c7: var(--hp-border);
  --hp-legacy-border-d9bdc8: var(--hp-border);
  --hp-legacy-border-d9cbd0: var(--hp-border);
  --hp-legacy-border-dab9c5: var(--hp-border);
  --hp-legacy-border-dbb9c5: var(--hp-border);
  --hp-legacy-border-ddc6ce: var(--hp-border);
  --hp-legacy-border-dde1e7: var(--hp-border);
  --hp-legacy-border-dfc5cf: var(--hp-border);
  --hp-legacy-border-dfc7d0: var(--hp-border);
  --hp-legacy-border-dfc8d1: var(--hp-border);
  --hp-legacy-border-e0cdd5: var(--hp-border);
  --hp-legacy-border-e1c5d3: var(--hp-border);
  --hp-legacy-border-e4ced8: var(--hp-border);
  --hp-legacy-border-e5d6e8: var(--hp-border);
  --hp-legacy-border-e8ced8: var(--hp-border);
  --hp-legacy-border-e8d3dc: var(--hp-border);
  --hp-legacy-border-ead7c9: var(--hp-border);
  --hp-legacy-border-eadfe2: var(--hp-border);
  --hp-legacy-border-eee4e7: var(--hp-border);
  --hp-legacy-border-f0e1e6: var(--hp-border);
  --hp-legacy-border-f0e6e8: var(--hp-border);
  --hp-legacy-border-f0e7e5: var(--hp-border);
  --hp-legacy-border-f0e7e9: var(--hp-border);
  --hp-legacy-border-f0e8e9: var(--hp-border);
  --hp-legacy-border-f1e6ea: var(--hp-border);
  --hp-legacy-border-fbf8f4: var(--hp-border);
  --hp-legacy-danger-aa5c68: var(--hp-danger);
  --hp-legacy-danger-border-ba576f: var(--hp-danger-border);
  --hp-legacy-danger-soft-f6e8e8: var(--hp-danger-soft);
  --hp-legacy-focus-ring-b8507390: var(--hp-focus-ring);
  --hp-legacy-muted-586b82: var(--hp-muted);
  --hp-legacy-muted-6c5c64: var(--hp-muted);
  --hp-legacy-muted-6d535e: var(--hp-muted);
  --hp-legacy-muted-6d535f: var(--hp-muted);
  --hp-legacy-muted-6d5c65: var(--hp-muted);
  --hp-legacy-muted-6f4e60: var(--hp-muted);
  --hp-legacy-muted-73646a: var(--hp-muted);
  --hp-legacy-muted-745764: var(--hp-muted);
  --hp-legacy-muted-755962: var(--hp-muted);
  --hp-legacy-muted-75616a: var(--hp-muted);
  --hp-legacy-muted-75626a: var(--hp-muted);
  --hp-legacy-muted-758499: var(--hp-muted);
  --hp-legacy-muted-785367: var(--hp-muted);
  --hp-legacy-muted-785574: var(--hp-muted);
  --hp-legacy-muted-785b68: var(--hp-muted);
  --hp-legacy-muted-78616d: var(--hp-muted);
  --hp-legacy-muted-79666f: var(--hp-muted);
  --hp-legacy-muted-7c626e: var(--hp-muted);
  --hp-legacy-muted-7d5c6b: var(--hp-muted);
  --hp-legacy-muted-7e6873: var(--hp-muted);
  --hp-legacy-muted-806477: var(--hp-muted);
  --hp-legacy-muted-806570: var(--hp-muted);
  --hp-legacy-muted-806b74: var(--hp-muted);
  --hp-legacy-muted-815769: var(--hp-muted);
  --hp-legacy-muted-81616f: var(--hp-muted);
  --hp-legacy-muted-82616f: var(--hp-muted);
  --hp-legacy-muted-827378: var(--hp-muted);
  --hp-legacy-muted-836973: var(--hp-muted);
  --hp-legacy-muted-856b77: var(--hp-muted);
  --hp-legacy-muted-886d86: var(--hp-muted);
  --hp-legacy-muted-88717b: var(--hp-muted);
  --hp-legacy-muted-88727c: var(--hp-muted);
  --hp-legacy-muted-89737d: var(--hp-muted);
  --hp-legacy-muted-8b707c: var(--hp-muted);
  --hp-legacy-muted-8b747f: var(--hp-muted);
  --hp-legacy-muted-8c707c: var(--hp-muted);
  --hp-legacy-muted-8d7680: var(--hp-muted);
  --hp-legacy-muted-8d7a84: var(--hp-muted);
  --hp-legacy-muted-8e6586: var(--hp-muted);
  --hp-legacy-muted-8e6c79: var(--hp-muted);
  --hp-legacy-muted-907e85: var(--hp-muted);
  --hp-legacy-muted-916781: var(--hp-muted);
  --hp-legacy-muted-937582: var(--hp-muted);
  --hp-legacy-muted-946176: var(--hp-muted);
  --hp-legacy-muted-947181: var(--hp-muted);
  --hp-legacy-muted-966b7e: var(--hp-muted);
  --hp-legacy-muted-977e89: var(--hp-muted);
  --hp-legacy-muted-987084: var(--hp-muted);
  --hp-legacy-muted-9a7c8a: var(--hp-muted);
  --hp-legacy-muted-a18191: var(--hp-muted);
  --hp-legacy-muted-a18b95: var(--hp-muted);
  --hp-legacy-muted-a18c95: var(--hp-muted);
  --hp-legacy-muted-a27d8e: var(--hp-muted);
  --hp-legacy-muted-a38e96: var(--hp-muted);
  --hp-legacy-muted-a48d96: var(--hp-muted);
  --hp-legacy-muted-a5758b: var(--hp-muted);
  --hp-legacy-muted-a7bfae: var(--hp-muted);
  --hp-legacy-muted-aa929d: var(--hp-muted);
  --hp-legacy-muted-aa939d: var(--hp-muted);
  --hp-legacy-muted-ad8c9a: var(--hp-muted);
  --hp-legacy-muted-ad969f: var(--hp-muted);
  --hp-legacy-muted-ae8998: var(--hp-muted);
  --hp-legacy-muted-b4a4ab: var(--hp-muted);
  --hp-legacy-muted-b89ba7: var(--hp-muted);
  --hp-legacy-muted-b99dab: var(--hp-muted);
  --hp-legacy-native-surface-fcfcfd: var(--hp-native-surface);
  --hp-legacy-native-surface-fff: var(--hp-native-surface);
  --hp-legacy-native-surface-fffafc: var(--hp-native-surface);
  --hp-legacy-native-surface-fffdfa: var(--hp-native-surface);
  --hp-legacy-native-surface-fffdfb: var(--hp-native-surface);
  --hp-legacy-on-accent-fff: var(--hp-on-accent);
  --hp-legacy-overlay-3d283d3b: var(--hp-overlay);
  --hp-legacy-shadow-3b30331a: var(--hp-shadow);
  --hp-legacy-shadow-3b303330: var(--hp-shadow);
  --hp-legacy-shadow-43272f22: var(--hp-shadow);
  --hp-legacy-shadow-50334318: var(--hp-shadow);
  --hp-legacy-shadow-62404f14: var(--hp-shadow);
  --hp-legacy-shadow-633b4a10: var(--hp-shadow);
  --hp-legacy-shadow-6733430b: var(--hp-shadow);
  --hp-legacy-shadow-6d4b5908: var(--hp-shadow);
  --hp-legacy-shadow-b850730c: var(--hp-shadow);
  --hp-legacy-shadow-dbaebd: var(--hp-shadow);
  --hp-legacy-soft-e7c5d0: var(--hp-soft);
  --hp-legacy-soft-e9dce1: var(--hp-soft);
  --hp-legacy-soft-ead3dc: var(--hp-soft);
  --hp-legacy-soft-ead8dd: var(--hp-soft);
  --hp-legacy-soft-ead8df: var(--hp-soft);
  --hp-legacy-soft-ebd7df: var(--hp-soft);
  --hp-legacy-soft-ecd7e0: var(--hp-soft);
  --hp-legacy-soft-ecd9e0: var(--hp-soft);
  --hp-legacy-soft-ecdce3: var(--hp-soft);
  --hp-legacy-soft-eddee5: var(--hp-soft);
  --hp-legacy-soft-eee0e5: var(--hp-soft);
  --hp-legacy-soft-eee3e7: var(--hp-soft);
  --hp-legacy-soft-eee4e6: var(--hp-soft);
  --hp-legacy-soft-efdee5: var(--hp-soft);
  --hp-legacy-soft-efe6f0: var(--hp-soft);
  --hp-legacy-soft-f0dfe5: var(--hp-soft);
  --hp-legacy-soft-f0e1e7: var(--hp-soft);
  --hp-legacy-soft-f0e2e8: var(--hp-soft);
  --hp-legacy-soft-f1e1e8: var(--hp-soft);
  --hp-legacy-soft-f1e5e9: var(--hp-soft);
  --hp-legacy-soft-f2e2e9: var(--hp-soft);
  --hp-legacy-soft-f3ecdf: var(--hp-soft);
  --hp-legacy-soft-f4e4eb: var(--hp-soft);
  --hp-legacy-soft-f5e5ec: var(--hp-soft);
  --hp-legacy-soft-f5e6dc: var(--hp-soft);
  --hp-legacy-soft-f5e9ed: var(--hp-soft);
  --hp-legacy-soft-f5e9ee: var(--hp-soft);
  --hp-legacy-soft-f6e8ed: var(--hp-soft);
  --hp-legacy-soft-f6eaf0: var(--hp-soft);
  --hp-legacy-soft-f6efeb: var(--hp-soft);
  --hp-legacy-soft-f7edf0: var(--hp-soft);
  --hp-legacy-soft-f8eef1: var(--hp-soft);
  --hp-legacy-soft-f9edf1: var(--hp-soft);
  --hp-legacy-soft-f9eff2: var(--hp-soft);
  --hp-legacy-soft-f9f0f2: var(--hp-soft);
  --hp-legacy-success-65806c: var(--hp-success);
  --hp-legacy-success-border-88a394: var(--hp-success-border);
  --hp-legacy-success-border-89a999: var(--hp-success-border);
  --hp-legacy-success-border-d6e3d9: var(--hp-success-border);
  --hp-legacy-success-soft-e9f1eb: var(--hp-success-soft);
  --hp-legacy-success-soft-f4f8f5: var(--hp-success-soft);
  --hp-legacy-surface-f8f5f2: var(--hp-surface);
  --hp-legacy-surface-faf0f3: var(--hp-surface);
  --hp-legacy-surface-fbf3f4: var(--hp-surface);
  --hp-legacy-surface-fbf3f6: var(--hp-surface);
  --hp-legacy-surface-fbf6f5: var(--hp-surface);
  --hp-legacy-surface-fbf8f4: var(--hp-surface);
  --hp-legacy-surface-fbf8f5: var(--hp-surface);
  --hp-legacy-surface-fcf5f7: var(--hp-surface);
  --hp-legacy-surface-fdfaf8: var(--hp-surface);
  --hp-legacy-surface-fffaf7: var(--hp-surface);
  --hp-legacy-surface-fffdf7: var(--hp-surface);
  --hp-legacy-surface2-edf0f4: var(--hp-surface2);
  --hp-legacy-surface2-f0e8e8: var(--hp-surface2);
  --hp-legacy-surface2-f1e7eb: var(--hp-surface2);
  --hp-legacy-surface2-f1ece8: var(--hp-surface2);
  --hp-legacy-surface2-f2e7e8: var(--hp-surface2);
  --hp-legacy-surface2-f3e7ec: var(--hp-surface2);
  --hp-legacy-surface2-f3e8e9: var(--hp-surface2);
  --hp-legacy-surface2-f3ebe9: var(--hp-surface2);
  --hp-legacy-surface2-f3edea: var(--hp-surface2);
  --hp-legacy-surface2-f4e9ec: var(--hp-surface2);
  --hp-legacy-surface2-f4e9ed: var(--hp-surface2);
  --hp-legacy-surface2-f5eeec: var(--hp-surface2);
  --hp-legacy-surface2-f5efeb: var(--hp-surface2);
  --hp-legacy-surface2-f5f2ef: var(--hp-surface2);
  --hp-legacy-text-3b3033: var(--hp-text);
  --hp-legacy-text-55474d: var(--hp-text);
  --hp-legacy-text-59424b: var(--hp-text);
  --hp-legacy-text-624851: var(--hp-text);
  --hp-legacy-text-64505a: var(--hp-text);
  --hp-legacy-toast-58404b: var(--hp-toast);
  --hp-legacy-warning-8b764b: var(--hp-warning);
  --hp-legacy-warning-border-caa266: var(--hp-warning-border);
  --hp-legacy-warning-border-e5d9c4: var(--hp-warning-border);
  --hp-legacy-warning-border-ead9ad: var(--hp-warning-border);
  --hp-legacy-warning-soft-fbefd3: var(--hp-warning-soft);
}

/* Native cards and overlays formerly took their white from inline page styles. */
body.hya-page:not(.qixi-fullscreen) :is(.modal-box,.confirm-box,.cd-card,.fd-row:not(.top1,.top2,.top3),.photo-card,.msg-form,.message-list,.reply-item,.polaroid,.tl-card,.view-toggle,.tag-pill:not(.active)) {
  background-color: var(--hp-native-surface);
}
body.hya-page:not(.qixi-fullscreen) :is(.modal-box,.confirm-box) {
  color: var(--hp-text);
}
body.hya-page:not(.qixi-fullscreen) :is(.modal-overlay,.modal) {
  background-color: var(--hp-overlay);
}
body.hya-page:not(.qixi-fullscreen) :is(.checkbox-row span,.drop-zone p,.reply-date,.lock-sub,.lock-note,.password-hint,.upload-progress + p) {
  color: var(--hp-muted);
}
body.hya-page:not(.qixi-fullscreen) :is(.drop-zone,.photo-preview,.upload-progress) {
  border-color: var(--hp-border);
  background-color: var(--hp-surface2);
  color: var(--hp-muted);
}
body.hya-page:not(.qixi-fullscreen) :is(.drop-zone:hover,.drop-zone.dragover) {
  background-color: var(--hp-soft);
  border-color: var(--hp-accent);
}
body.hya-page:not(.qixi-fullscreen) :is(.lock-box,.password-box) p { color: var(--hp-muted); }
body.hya-page:not(.qixi-fullscreen) :is(.lock-box,.password-box) input { color: var(--hp-text); }
body.hya-page:not(.qixi-fullscreen) :is(.lock-btn,.password-box button,.reply-row button) { color: var(--hp-on-accent); }
body.hya-page:not(.qixi-fullscreen) :is(.lock-error,.password-error,.error-msg) { color: var(--hp-danger); }
body.hya-page:not(.qixi-fullscreen) :is(.lock-box,.password-box) a { color: var(--hp-accent-hover); }
body.hya-page:not(.qixi-fullscreen) .msg-item .msg-actions button.liked { background: var(--hp-accent); color: var(--hp-on-accent) !important; }
body.hya-page:not(.qixi-fullscreen) .btn-danger { background: var(--hp-danger); color: var(--hp-on-accent); }
body.hya-page:not(.qixi-fullscreen) .btn-danger:hover { filter: brightness(.95); }

/* Precise inline labels need a color override, while the delete button remains red. */
:root[data-hya-mode="dark"] body.hya-page #confirmText { color: var(--hp-muted) !important; }
:root[data-hya-mode="dark"] body.hya-page #confirmBtn { background: #a83848 !important; color: #fff; }
:root[data-hya-mode="dark"] body.hya-page .fd-best { background: var(--hp-warning-soft); color: var(--hp-warning); border-color: var(--hp-warning-border); }
:root[data-hya-mode="dark"] body.hya-page :is(.lock-screen,.password-overlay) { background: var(--hp-bg); }
:root[data-hya-mode="dark"] body.hya-page :is(.lock-box,.password-box) { background: var(--hp-surface); }

/* Fill presentation details that still originate in the task application's base CSS. */
body:has(> .app) { font-size: calc(16px * var(--hp-font-scale)); }
.app .ft-page { font-size: calc(14px * var(--hp-font-scale)); }
.app .task-check { color: var(--hp-on-accent); }
.app .task-item .task-meta .meta-due.overdue { color: var(--hp-danger); }
.app .task-item .task-meta .meta-pinned { color: var(--hp-accent); }
.app .task-item .task-pin.on { color: var(--hp-accent); }
.app .repeat-info { color: var(--hp-accent); }
.app .cat-actions button { color: var(--hp-muted); }
.app .calendar-heading button { background: var(--hp-surface); }
.app .calendar-day:hover { background: var(--hp-soft); }
.app .calendar-num { font-size: calc(11px * var(--hp-font-scale)); }
.app .calendar-more { font-size: calc(10px * var(--hp-font-scale)); color: var(--hp-muted); }
.app .calendar-task { font-size: calc(10px * var(--hp-font-scale)); }
.app .calendar-agenda h4 { font-size: calc(13px * var(--hp-font-scale)); }
.app .split-preview-item { font-size: calc(13px * var(--hp-font-scale)); }
.app .split-preview-item input { accent-color: var(--hp-accent); }
.app .split-count { font-size: calc(12px * var(--hp-font-scale)); }
.app .subtask-item .st-del { color: var(--hp-muted); }
.app .subtask-item .st-del:hover { color: var(--hp-danger); }
.app .subtask-item .st-text.done { color: var(--hp-muted); }
.app .confirm-box p { color: var(--hp-muted); }
.app .toast { background: var(--hp-toast); color: var(--hp-toast-text); }
.app .task-priority.p3 { background: #fff0f1; color: #ad304c; }
.app .task-priority.p2 { background: #fff7e9; color: #886522; }
.app .task-priority.p1 { background: #eff8f2; color: #426e54; }
:root[data-hya-mode="dark"] .app .task-priority.p3 { background: var(--hp-danger-soft); color: var(--hp-danger); }
:root[data-hya-mode="dark"] .app .task-priority.p2 { background: var(--hp-warning-soft); color: var(--hp-warning); }
:root[data-hya-mode="dark"] .app .task-priority.p1 { background: var(--hp-success-soft); color: var(--hp-success); }
:root[data-hya-mode="dark"] .app :is(.drag-over-top,.drag-over-bottom) { border-color: var(--hp-accent) !important; }
:root[data-hya-mode="dark"] .app :is(.list-item.drag-over,.task-item.drag-over) { background: var(--hp-soft); border-color: var(--hp-accent); }

/* These controls have legacy !important declarations; only their sizes are superseded. */
.ft-page .ft-segment { font-size: calc(12px * var(--hp-font-scale)) !important; white-space: normal; }
.ft-link { font-size: calc(12px * var(--hp-font-scale)) !important; }
.ft-sync .ft-link { font-size: calc(11px * var(--hp-font-scale)) !important; }
.ft-page .ft-summary-text { font-size: calc(12px * var(--hp-font-scale)) !important; }
.ft-page .ft-task-binding select { font-size: calc(12px * var(--hp-font-scale)); }
.ft-page .ft-scope select { font-size: calc(12px * var(--hp-font-scale)); }
.ft-page .ft-session-row { font-size: calc(12px * var(--hp-font-scale)); }
.ft-page .ft-session-row strong { font-size: calc(12px * var(--hp-font-scale)); }
.ft-page .ft-note-actions .ft-btn { font-size: calc(11px * var(--hp-font-scale)); }
.ft-page .ft-action-group > .ft-btn { font-size: calc(12px * var(--hp-font-scale)); }
.ft-form-footer > span { font-size: calc(11px * var(--hp-font-scale)); color: var(--hp-accent-hover); }
.ft-form-error { font-size: calc(12px * var(--hp-font-scale)); color: var(--hp-danger); }
.ft-page .ft-data-warning { font-size: calc(12px * var(--hp-font-scale)); color: var(--hp-warning); background: var(--hp-warning-soft); border-color: var(--hp-warning-border); }
.ft-page textarea::placeholder { color: var(--hp-muted); }
.ft-mini { font-size: calc(12px * var(--hp-font-scale)); }
:root[data-hya-mode="dark"] .ft-modal { color: var(--hp-text); }

/* Reading size adapts the controls, never the page geometry or content itself. */
:root:is([data-hya-font="large"],[data-hya-font="xlarge"]) .search-field,
:root:is([data-hya-font="large"],[data-hya-font="xlarge"]) .view-switch { height: auto; min-height: 45px; }
:root:is([data-hya-font="large"],[data-hya-font="xlarge"]) .ft-card-top { flex-wrap: wrap; row-gap: 10px; }
:root:is([data-hya-font="large"],[data-hya-font="xlarge"]) .form-row { flex-wrap: wrap; }
:root:is([data-hya-font="large"],[data-hya-font="xlarge"]) .form-row .form-group { min-width: min(180px,100%); }
:root:is([data-hya-font="large"],[data-hya-font="xlarge"]) .hya-home .birthday-row { flex-wrap: wrap; }
:root:is([data-hya-font="large"],[data-hya-font="xlarge"]) .hya-home .hya-section-note { white-space: normal; }

@media (max-width:900px) {
  .app .calendar-task { font-size: calc(9px * var(--hp-font-scale)); }
}
@media (max-width:700px) {
  .app .calendar-task { font-size: calc(8px * var(--hp-font-scale)); }
  .app .ft-page .ft-summary-text { font-size: calc(11px * var(--hp-font-scale)) !important; }
  .app .ft-mini { font-size: calc(11px * var(--hp-font-scale)); }
  :root:is([data-hya-font="large"],[data-hya-font="xlarge"]) .toolbar-search { flex-wrap: wrap; }
  :root:is([data-hya-font="large"],[data-hya-font="xlarge"]) .toolbar-search .search-field { flex: 1 1 100%; }
  :root:is([data-hya-font="large"],[data-hya-font="xlarge"]) .toolbar-search .view-switch { margin-left: auto; }
  :root:is([data-hya-font="large"],[data-hya-font="xlarge"]) .filter-select { flex-basis: 100%; }
  :root:is([data-hya-font="large"],[data-hya-font="xlarge"]) .toolbar-intro { flex-wrap: wrap; }
  :root:is([data-hya-font="large"],[data-hya-font="xlarge"]) .topbar { flex-wrap: wrap; }
  :root:is([data-hya-font="large"],[data-hya-font="xlarge"]) .topbar h2 { flex-basis: calc(100% - 52px); }
}

/* The festival's immersive visual has its own deliberately fixed art direction. */
.qixi-fullscreen { font-size: 15px; color-scheme: light; }

/* Editor dialogs, photo comments and voting keep the same semantic palette. */
:root:is([data-hya-mode="dark"],[data-hya-skin="sage"],[data-hya-skin="ocean"],[data-hya-skin="amber"],[data-hya-skin="peach"],[data-hya-skin="sakura"],[data-hya-skin="sunset"],[data-hya-skin="cocoa"]) .hya-page :is(.fd-mask,.hm-mask,.ph-mask) { background: var(--hp-overlay); }
:root:is([data-hya-mode="dark"],[data-hya-skin="sage"],[data-hya-skin="ocean"],[data-hya-skin="amber"],[data-hya-skin="peach"],[data-hya-skin="sakura"],[data-hya-skin="sunset"],[data-hya-skin="cocoa"]) .hya-page :is(.fd-modal,.hm-modal,.ph-modal,.lb-side,.lb-input-row,.lb-who) { background: var(--hp-surface); color: var(--hp-text); }
:root:is([data-hya-mode="dark"],[data-hya-skin="sage"],[data-hya-skin="ocean"],[data-hya-skin="amber"],[data-hya-skin="peach"],[data-hya-skin="sakura"],[data-hya-skin="sunset"],[data-hya-skin="cocoa"]) .hya-page :is(.fd-modal,.hm-modal,.ph-modal) h3 { color: var(--hp-text); }
:root:is([data-hya-mode="dark"],[data-hya-skin="sage"],[data-hya-skin="ocean"],[data-hya-skin="amber"],[data-hya-skin="peach"],[data-hya-skin="sakura"],[data-hya-skin="sunset"],[data-hya-skin="cocoa"]) .hya-page :is(.fd-field,.hm-field,.ph-field) label { color: var(--hp-muted); }
:root:is([data-hya-mode="dark"],[data-hya-skin="sage"],[data-hya-skin="ocean"],[data-hya-skin="amber"],[data-hya-skin="peach"],[data-hya-skin="sakura"],[data-hya-skin="sunset"],[data-hya-skin="cocoa"]) .hya-page :is(.fd-field,.hm-field,.ph-field,.lb-input-row) :is(input,textarea,select) { background: var(--hp-bg); color: var(--hp-text); border-color: var(--hp-border); }
:root:is([data-hya-mode="dark"],[data-hya-skin="sage"],[data-hya-skin="ocean"],[data-hya-skin="amber"],[data-hya-skin="peach"],[data-hya-skin="sakura"],[data-hya-skin="sunset"],[data-hya-skin="cocoa"]) .hya-page :is(.fd-field,.hm-field,.ph-field,.lb-input-row) :is(input,textarea,select):focus { border-color: var(--hp-accent); }
:root:is([data-hya-mode="dark"],[data-hya-skin="sage"],[data-hya-skin="ocean"],[data-hya-skin="amber"],[data-hya-skin="peach"],[data-hya-skin="sakura"],[data-hya-skin="sunset"],[data-hya-skin="cocoa"]) .hya-page :is(.fd-btn,.hm-btn,.ph-btn,.lb-input-row button) { background: var(--hp-accent); color: var(--hp-on-accent); border-color: var(--hp-accent); box-shadow: none; }
:root:is([data-hya-mode="dark"],[data-hya-skin="sage"],[data-hya-skin="ocean"],[data-hya-skin="amber"],[data-hya-skin="peach"],[data-hya-skin="sakura"],[data-hya-skin="sunset"],[data-hya-skin="cocoa"]) .hya-page :is(.fd-btn.ghost,.hm-btn.ghost,.ph-btn.ghost,.lb-ops button,.lb-who button) { background: var(--hp-surface); color: var(--hp-accent-hover); border-color: var(--hp-border); }
:root:is([data-hya-mode="dark"],[data-hya-skin="sage"],[data-hya-skin="ocean"],[data-hya-skin="amber"],[data-hya-skin="peach"],[data-hya-skin="sakura"],[data-hya-skin="sunset"],[data-hya-skin="cocoa"]) .hya-page :is(.hm-hint,.fd-empty-hint,.cm-meta,.lb-meta,.lb-who span) { color: var(--hp-muted); }
:root:is([data-hya-mode="dark"],[data-hya-skin="sage"],[data-hya-skin="ocean"],[data-hya-skin="amber"],[data-hya-skin="peach"],[data-hya-skin="sakura"],[data-hya-skin="sunset"],[data-hya-skin="cocoa"]) .hya-page :is(.cm-meta b,.cm-del,.hm-upslot,.ph-dropzone) { color: var(--hp-accent-hover); }
:root:is([data-hya-mode="dark"],[data-hya-skin="sage"],[data-hya-skin="ocean"],[data-hya-skin="amber"],[data-hya-skin="peach"],[data-hya-skin="sakura"],[data-hya-skin="sunset"],[data-hya-skin="cocoa"]) .hya-page :is(.lb-title,.lb-cap,.cm-text) { color: var(--hp-text); }
:root:is([data-hya-mode="dark"],[data-hya-skin="sage"],[data-hya-skin="ocean"],[data-hya-skin="amber"],[data-hya-skin="peach"],[data-hya-skin="sakura"],[data-hya-skin="sunset"],[data-hya-skin="cocoa"]) .hya-page :is(.lb-head,.lb-input-row,.hm-emoji-panel,.hm-emoji-tabs,.hm-upslot,.ph-dropzone) { border-color: var(--hp-border); }
:root:is([data-hya-mode="dark"],[data-hya-skin="sage"],[data-hya-skin="ocean"],[data-hya-skin="amber"],[data-hya-skin="peach"],[data-hya-skin="sakura"],[data-hya-skin="sunset"],[data-hya-skin="cocoa"]) .hya-page :is(.lb-comments,.hm-emoji-tabs,.ph-progress) { background: var(--hp-surface2); }
:root:is([data-hya-mode="dark"],[data-hya-skin="sage"],[data-hya-skin="ocean"],[data-hya-skin="amber"],[data-hya-skin="peach"],[data-hya-skin="sakura"],[data-hya-skin="sunset"],[data-hya-skin="cocoa"]) .hya-page :is(.hm-emoji-tab.on,.hm-emoji-grid button:hover,.hm-emoji-grid button.on,.ph-dropzone:hover,.ph-dropzone.dragover,.lb-who button.on) { background: var(--hp-soft); border-color: var(--hp-accent); outline-color: var(--hp-accent); }
:root:is([data-hya-mode="dark"],[data-hya-skin="sage"],[data-hya-skin="ocean"],[data-hya-skin="amber"],[data-hya-skin="peach"],[data-hya-skin="sakura"],[data-hya-skin="sunset"],[data-hya-skin="cocoa"]) .hya-page :is(.ph-progress .bar,.upload-progress .bar) { background: var(--hp-accent); }
:root[data-hya-mode="dark"] .hya-page .vote-btn.up.voted { background: var(--hp-success-soft); color: var(--hp-success); border-color: var(--hp-success-border); }
:root[data-hya-mode="dark"] .hya-page .vote-btn.down.voted { background: var(--hp-danger-soft); color: var(--hp-danger); border-color: var(--hp-danger-border); }
:root[data-hya-mode="dark"] .hya-page .fd-best.shop { background: var(--hp-soft); color: var(--hp-info); border-color: var(--hp-border); }
:root[data-hya-mode="dark"] .hya-page .password-box > p[style] { color: var(--hp-muted) !important; }
:root:is([data-hya-font="large"],[data-hya-font="xlarge"]) .hya-page :is(.fd-actions,.hm-modal-actions,.ph-actions,.lb-input-row) { flex-wrap: wrap; }
:root:is([data-hya-font="large"],[data-hya-font="xlarge"]) .hya-page .lb-input-row input { min-width: 0; }

/* Filled actions use a contrasting label in each mode, including body-level overlays. */
.app .cat-add-task button,
.task-modal .btn-save,
.ft-page .ft-btn-primary,
.ft-modal .ft-btn-primary { color: var(--hp-on-accent); }
body:has(> .app) > .toast { background: var(--hp-toast); color: var(--hp-toast-text); }

/* New swatches show their actual paper tones, rather than a white mix. */
.hp-palette-preview i:nth-child(2) { background: var(--hp-swatch-soft, color-mix(in srgb, var(--hp-swatch) 26%, #fffdfb)); }
.hp-palette-preview i:nth-child(3) { background: var(--hp-swatch-bg, color-mix(in srgb, var(--hp-swatch) 6%, #fbf8f4)); }
