:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #17191c;
  background: #fff;
  font-synthesis: none;
  --muted: #717780;
  --secondary: #6d727b;
  --line: #eceef0;
}
* { box-sizing: border-box; }
body { margin: 0; }
#app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: wait; }
:focus-visible { outline: 2px solid #697484; outline-offset: 4px; }
[hidden] { display: none !important; }
.site-header, main, footer { width: min(100%, 1200px); margin: 0 auto; padding-inline: 40px; }
.site-header { height: 88px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; min-width: 44px; min-height: 44px; }
.brand-mark { font-size: 32px; line-height: 1; font-weight: 650; letter-spacing: -.1em; }
.hero { padding: 72px 0 55px; text-align: center; }
.hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.4; font-weight: 600; letter-spacing: -.045em; margin: 0 0 16px; }
.empty-catalog { padding: 40px 0; text-align: center; font-size: 14px; color: var(--muted); }
.empty-icon { display: block; width: 48px; height: 48px; margin: 0 auto 16px; color: #b5bac2; }
.empty-catalog p, .record-empty p { margin: 0; }
.record-empty { text-align: center; }
.search-box { width: min(100%, 560px); display: flex; align-items: center; gap: 14px; margin: 30px auto 0; padding: 0 5px 0 20px; height: 54px; border: 1px solid #e1e4e8; border-radius: 8px; text-align: left; transition: border-color .15s, box-shadow .15s; }
.search-box:focus-within { border-color: #939aa4; box-shadow: 0 0 0 3px #f2f3f5; }
.search-box input { width: 100%; min-width: 0; padding: 12px 0; border: 0; background: transparent; color: #17191c; font-size: 14px; outline: none; }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-clear { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #858c96; }
.search-clear span { width: 13px; height: 13px; position: relative; }
.search-clear span::before, .search-clear span::after { content: ""; position: absolute; left: 6px; top: 0; width: 1.5px; height: 13px; background: currentColor; transform: rotate(45deg); }
.search-clear span::after { transform: rotate(-45deg); }
.search-clear:focus-visible { outline-offset: -4px; }
input::placeholder, textarea::placeholder { color: #a0a4ab; }
.search-icon { position: relative; width: 14px; height: 14px; margin-right: 3px; flex-shrink: 0; border: 1.5px solid #969ba3; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: #969ba3; right: -5px; bottom: -2px; transform: rotate(45deg); }
.directory { padding-top: 6px; }
.section-heading, .directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-heading h2, .record-panel h2 { margin: 0; font-size: 17px; font-weight: 600; }
.record-summary { margin: 0; font-size: 12px; color: var(--muted); }
.directory-toolbar { margin-top: 10px; padding-bottom: 14px; min-width: 0; }
.filters { display: flex; flex-wrap: nowrap; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-block: 3px; min-width: 0; max-width: 100%; }
.filters::-webkit-scrollbar { display: none; }
.filters button { position: relative; min-height: 44px; min-width: 44px; flex-shrink: 0; border: 0; border-radius: 6px; padding: 10px 8px; background: transparent; color: var(--muted); font-size: 13px; white-space: nowrap; transition: color .15s, background .15s; }
.filters button[aria-selected=true] { color: #17191c; font-weight: 600; }
.filters button[aria-selected=true]::after { content: ""; position: absolute; width: 16px; height: 2px; border-radius: 1px; background: #17191c; bottom: 2px; left: calc(50% - 8px); }
.filters button:focus-visible { outline-offset: -3px; background: #f6f7f8; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 44px; }
.tool-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-width: 0; min-height: 88px; padding: 24px 0; border-top: 1px solid var(--line); }
.tool-copy { min-width: 0; }
.tool-card h3 { font-size: 16px; font-weight: 550; line-height: 1.6; margin: 0; }
.tool-arrow { font-size: 18px; color: #a0a5ac; transition: transform .15s, color .15s; }
.tool-card:hover .tool-arrow { color: #17191c; transform: translate(2px, -2px); }
.tool-card:hover h3 { color: #4b535e; }
.empty { grid-column: 1 / -1; padding: 54px 20px; border-top: 1px solid var(--line); text-align: center; line-height: 1.8; }
.empty h2, .empty h3 { font-size: 19px; font-weight: 550; }
.empty p { font-size: 13px; color: var(--secondary); }
footer { display: flex; flex-shrink: 0; justify-content: space-between; margin-top: 64px; padding-block: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); font-size: 11px; color: #a1a5ac; }
.detail-page { max-width: 800px; }
.tool-heading { padding: 35px 0 34px; }
.tool-heading h1 { font-size: 34px; font-weight: 600; letter-spacing: -.035em; margin: 0; }
.record-panel { padding-top: 26px; border-top: 1px solid var(--line); }
.record-form { margin-top: 25px; }
.record-form label { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; font-size: 12px; color: var(--secondary); }
.record-form input, .record-form textarea { width: 100%; min-width: 0; padding: 12px 13px; color: #17191c; border: 1px solid #e1e4e8; background: #fff; border-radius: 6px; font-size: 14px; }
.record-form input:focus, .record-form textarea:focus { border-color: #969da7; outline: none; box-shadow: 0 0 0 2px #f0f1f3; }
.record-form textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.button, .secondary { display: inline-block; border: 1px solid transparent; padding: 11px 20px; border-radius: 6px; font-size: 12px; line-height: 1.6; }
.button { background: #202329; color: #fff; }
.button:hover { background: #40454d; }
.secondary { background: #fff; border-color: #e1e4e8; color: var(--secondary); }
.secondary:hover { border-color: #aeb4bc; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 3px 0 20px; }
.notice, .source-card, .query-result { padding: 16px 18px; margin: 16px 0; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; line-height: 1.9; color: var(--secondary); overflow-wrap: anywhere; }
.notice.error { border-color: #ecd3ce; color: #9e4c3c; }
.notice.success { border-color: #dce6dd; color: #52725c; }
.source-card { margin-top: 24px; }
.source-card p { margin: 5px 0; }
.source-card a { text-decoration: underline; text-underline-offset: 3px; }
.storage-note { padding-top: 18px; margin: 15px 0 0; border-top: 1px solid var(--line); color: #989da5; font-size: 11px; line-height: 1.9; }
.history-heading { margin-top: 44px; margin-bottom: 21px; }
.history-actions { display: flex; align-items: center; gap: 20px; }
.record-summary { font-size: 11px; }
.backup-menu { position: relative; font-size: 11px; color: var(--secondary); }
.backup-menu > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; list-style: none; padding: 10px 6px; border-radius: 5px; }
.backup-menu > summary::-webkit-details-marker { display: none; }
.backup-menu > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid #9299a3; border-bottom: 1.5px solid #9299a3; margin-left: 9px; margin-top: -3px; transform: rotate(45deg); transition: transform .12s; }
.backup-menu[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.backup-actions { position: absolute; right: 0; top: calc(100% + 6px); z-index: 2; display: flex; flex-direction: column; align-items: stretch; min-width: 156px; gap: 7px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 5px 22px #19202b0b; }
.record-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding: 21px 0; overflow-wrap: anywhere; }
.record-row > div:first-child { min-width: 0; }
.record-row h3 { font-size: 14px; font-weight: 550; margin: 9px 0; }
.record-row time { color: var(--muted); font-size: 11px; }
.record-row strong { font-size: 16px; font-weight: 550; }
.record-row p { font-size: 12px; color: var(--secondary); line-height: 1.8; white-space: pre-wrap; }
.row-actions { display: flex; gap: 12px; }
.text-button { background: none; border: 0; padding: 5px 0; font-size: 11px; color: var(--secondary); }
.text-button:hover { color: #17191c; }
.text-button.danger { color: #a96d60; }
.query-result h2 { font-size: 17px; margin: 0 0 12px; }
.query-result dl { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); font-size: 13px; gap: 14px; }
.query-result dt { color: var(--muted); }
.query-result dd { margin: 0; }
.query-result.invalid, .query-result.unavailable { border-color: #ecd3ce; }
.query-result.stale { border-color: #e7ddbf; }
.loading { text-align: center; margin: 80px 20px; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) {
  .tool-grid { column-gap: 28px; }
  .filters { gap: 8px; }
}
@media (max-width: 680px) {
  .site-header, main, footer { padding-inline: 24px; }
  .site-header { height: 72px; }
  .brand-mark { font-size: 28px; }
  .hero { padding: 48px 0 45px; }
  .hero h1 { font-size: 29px; margin-bottom: 13px; }
  .search-box { margin-top: 24px; height: 52px; padding-left: 16px; padding-right: 3px; gap: 12px; }
  .search-box input { font-size: 16px; }
  .section-heading h2, .record-panel h2 { font-size: 16px; }
  .directory-toolbar { margin-top: 6px; padding-bottom: 13px; }
  .filters { width: 100%; gap: 4px; }
  .filters button { font-size: 13px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }
  .tool-card { min-height: 72px; padding-block: 20px; gap: 9px; }
  .tool-card h3 { font-size: 16px; }
  .tool-arrow { font-size: 15px; }
  footer { margin-top: 40px; padding-block: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); font-size: 10px; }
  .tool-heading { padding: 28px 0; }
  .tool-heading h1 { font-size: 29px; }
  .record-panel { padding-top: 23px; }
  .form-grid { gap: 14px; }
  .record-form input, .record-form textarea { min-height: 46px; padding: 11px 10px; font-size: 16px; }
  .button, .secondary { min-height: 44px; font-size: 14px; }
  .row-actions { align-items: center; gap: 6px; }
  .row-actions .text-button { min-width: 44px; min-height: 44px; }
  .row-actions .text-button, .backup-menu { font-size: 12px; }
  .backup-menu > summary { display: flex; align-items: center; min-height: 44px; }
  .history-actions { gap: 13px; }
  .history-heading { margin-top: 33px; }
  .storage-note { font-size: 10px; }
}
@media (max-width: 360px) {
  .site-header, main, footer { padding-inline: 18px; }
  .hero h1 { font-size: 26px; }
  .tool-grid { column-gap: 20px; }
  .filters { gap: 3px; }
  .history-actions { gap: 9px; }
}
@media (hover: hover) {
  .search-clear:hover, .filters button:hover, .backup-menu > summary:hover { background: #f6f7f8; color: #24282e; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
.utility-form { padding-top: 24px; border-top: 1px solid var(--line); }
.utility-field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; color: var(--secondary); font-size: 13px; }
.utility-field input, .utility-field select { width: 100%; min-width: 0; height: 48px; padding: 10px 12px; border: 1px solid #e1e4e8; border-radius: 6px; background: #fff; color: #17191c; font: inherit; font-size: 16px; }
.utility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.utility-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.utility-actions button, .relation-keys button, .utility-tabs button, .word-presets button { min-height: 44px; }
.utility-tabs { display: flex; gap: 8px; margin: 0 0 24px; }
.utility-tabs button, .word-presets button { border: 0; padding: 10px 12px; background: #f5f6f7; border-radius: 6px; color: var(--muted); font-size: 13px; }
.utility-tabs button[aria-pressed=true] { background: #24282e; color: #fff; }
.relation-path { padding: 16px 0; line-height: 1.9; font-size: 17px; overflow-wrap: anywhere; }
.relation-keys { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.relation-keys button { padding-inline: 4px; font-size: 14px; }
.utility-note { color: var(--muted); font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.utility-output { margin: 28px 0; }
.utility-output h2 { font-size: 16px; margin: 20px 0 12px; }
.utility-empty { text-align: center; padding: 28px 0; color: var(--muted); font-size: 13px; }
.answer-card { border-top: 1px solid var(--line); padding: 20px 0; }
.answer-caption { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.answer-primary { margin: 15px 0 24px; font-size: 26px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.answer-secondary { font-size: 22px; line-height: 1.6; }
.term-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px 12px; }
.term-item { padding: 12px 0; border-top: 1px solid var(--line); }
.term-item strong, .term-item time { display: block; }
.term-item strong { font-size: 14px; font-weight: 500; }
.term-item time { margin-top: 8px; color: var(--muted); font-size: 11px; }
.birthday-list > div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; border-top: 1px solid var(--line); padding: 15px 0; font-size: 14px; }
.birthday-list small { grid-column: 1/-1; color: var(--muted); line-height: 1.8; }
.character-row { padding: 20px 0; border-top: 1px solid var(--line); }
.character-title { display: flex; align-items: baseline; gap: 22px; line-height: 1.8; }
.character-title strong { font-size: 26px; }
.character-title span { overflow-wrap: anywhere; }
.word-examples, .word-presets { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.word-examples { color: var(--secondary); font-size: 13px; margin-top: 14px; line-height: 1.9; }
.source-reference { margin-top: 28px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.source-reference summary { cursor: pointer; min-height: 44px; padding-block: 12px; }
.source-reference a { text-decoration: underline; }
@media(max-width:680px) { .term-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .answer-primary { font-size: 23px; } .relation-keys { gap: 8px; } }
@media(max-width:360px) { .utility-tabs { gap: 5px; } .utility-tabs button { padding-inline: 9px; font-size: 12px; } .term-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
/* Standalone pages have their own visual language and no directory navigation. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.utility-icon { display: inline-block; flex-shrink: 0; width: 22px; height: 22px; vertical-align: middle; }
.standalone { --line: transparent; }
.standalone main { max-width: 600px; padding-top: 30px; }
.standalone .tool-heading { display: flex; align-items: center; gap: 12px; padding: 0 0 26px; }
.standalone .tool-heading h1 { font-size: 26px; letter-spacing: -.035em; }
.standalone footer { max-width: 600px; justify-content: center; margin-top: 28px; }
.standalone .utility-form, .standalone .answer-card, .standalone .term-item, .standalone .character-row, .standalone .birthday-list > div, .standalone .record-panel, .standalone .record-row, .standalone .storage-note, .standalone .empty { border-top: 0; }
.standalone .utility-form { padding-top: 0; }
.standalone .source-reference { margin-top: 4px; }
.tool-help { font-size: 12px; line-height: 1.9; }
.tool-help summary, .source-reference summary { display: flex; gap: 9px; align-items: center; min-height: 44px; padding-block: 12px; cursor: pointer; list-style: none; }
.tool-help summary::-webkit-details-marker, .source-reference summary::-webkit-details-marker { display: none; }
.tool-help summary .utility-icon, .source-reference summary .utility-icon { width: 15px; height: 15px; opacity: .75; }
.tool-help summary::after, .source-reference summary::after { content: '+'; margin-left: auto; font-size: 16px; }
.tool-help[open] summary::after, .source-reference[open] summary::after { content: '−'; }
/* Calculator: black canvas, large light display, round gray keys and orange equals. */
.tool-kinship { background: #000; color: #fff; --muted: #929292; --secondary: #a3a3a3; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', sans-serif; }
.tool-kinship main, .tool-kinship footer { max-width: 430px; }
.tool-kinship .tool-heading { padding-bottom: 16px; }
.tool-kinship .tool-heading h1 { font-size: 19px; font-weight: 500; letter-spacing: .01em; }
.tool-kinship .tool-heading > .utility-icon { color: #ff9f0a; }
.tool-kinship .calculator { padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.calculator-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.calculator-toolbar .utility-field { flex-direction: row; align-items: center; gap: 12px; margin: 0; color: #999; font-size: 12px; }
.calculator-toolbar select { width: 72px; height: 44px; background: #1c1c1e; color: #eee; border: 0; border-radius: 22px; padding-inline: 16px; }
.calculator-screen { padding: 18px 4px 26px; min-height: 188px; background: transparent; color: #fff; overflow-wrap: anywhere; }
.tool-kinship .relation-path { margin: 0; padding: 0; color: #929292; font-size: 14px; line-height: 1.8; text-align: right; }
.tool-kinship .utility-output { margin: 8px 0 0; }
.calculator-idle { text-align: right; }
.calculator-zero { display: block; font-size: 88px; font-weight: 300; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calculator-idle p { font-size: 12px; margin: 8px 0 0; color: #777; }
.tool-kinship .answer-card { padding: 0; text-align: right; }
.tool-kinship .answer-caption { display: none; }
.tool-kinship .utility-output h2 { margin: 12px 0 2px; font-size: 12px; font-weight: 400; color: #929292; }
.tool-kinship .answer-primary { margin: 0; font-size: 52px; font-weight: 300; line-height: 1.35; color: #fff; }
.tool-kinship .answer-secondary { margin: 2px 0 0; font-size: 23px; font-weight: 300; line-height: 1.5; color: #ccc; }
.tool-kinship .relation-keys { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.tool-kinship .relation-keys button { display: grid; place-items: center; aspect-ratio: 1; min-height: 0; width: 100%; padding: 0; border: 0; border-radius: 50%; background: #333335; color: #fff; font-size: 20px; font-weight: 400; box-shadow: none; }
.tool-kinship .relation-keys .calculator-clear, .tool-kinship .relation-keys .calculator-back { background: #b0b0b2; color: #141414; }
.calculator-clear .key-symbol { font-size: 24px; font-weight: 400; }
.calculator-back .utility-icon { width: 28px; height: 28px; }
.tool-kinship .relation-keys .calculator-equals { grid-column: 1/-1; aspect-ratio: auto; min-height: 64px; border-radius: 40px; background: #ff9f0a; color: #fff; font-size: 40px; font-weight: 300; }
.tool-kinship button:active { filter: brightness(1.35); }
.tool-kinship :focus-visible { outline-color: #ffb340; }
.tool-kinship .tool-help { margin-top: 26px; color: #969696; }
.tool-kinship .utility-note, .tool-kinship .source-reference, .tool-kinship footer { color: #8e8e93; }
.tool-kinship .notice { border: 0; border-radius: 14px; background: #242426; color: #ddd; padding: 12px; }
.tool-kinship .notice.error { color: #ffc1a6; }
.tool-kinship button:disabled { opacity: .55; cursor: default; }
/* Tear-off calendar: cloth red binding, punched holes, cream paper and a large date. */
.tool-calendar { background: #e9e2d6; color: #4e402f; --muted: #85745e; --secondary: #786752; font-family: 'Songti SC', 'Noto Serif CJK SC', 'SimSun', serif; }
.tool-calendar .tool-heading { color: #942b27; }
.tool-calendar .tool-heading h1 { font-size: 30px; letter-spacing: .08em; font-weight: 600; }
.tool-calendar .utility-tabs { gap: 4px; padding: 4px; background: #ded4c3; border-radius: 4px; }
.tool-calendar .utility-tabs button { flex: 1; padding-inline: 6px; background: transparent; color: #806b50; border-radius: 2px; font: 14px 'Songti SC', serif; }
.tool-calendar .utility-tabs button[aria-pressed=true] { background: #a42d28; color: #fff9eb; border-radius: 2px; }
.tool-calendar .utility-field { font-size: 13px; }
.tool-calendar .utility-field input, .tool-calendar .utility-field select { border: 0; border-radius: 3px; background: #f9f5e9; color: #624e38; }
.tool-calendar .button { min-height: 46px; border-radius: 3px; padding-inline: 26px; background: #a42d28; color: #fff9eb; font-family: inherit; }
.tool-calendar .vintage-sheet { position: relative; padding: 0 20px 28px; margin-top: 34px; border-radius: 2px; background: #fffbed; text-align: center; box-shadow: 0 4px 0 #d8cdb9,0 8px 0 #f5efde,0 15px 26px #65523a1a; }
.calendar-date-face { margin: 0 -20px 16px; }
.calendar-date-face > span { display: block; position: relative; padding: 30px 0 16px; background: #a42d28; color: #fff8e6; font-size: 22px; letter-spacing: .15em; }
.calendar-date-face > span::before, .calendar-date-face > span::after { content: ''; position: absolute; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: #5d2922; box-shadow: inset 0 1px 2px #39180d66,0 1px 0 #c55b49; }
.calendar-date-face > span::before { left: 26%; }.calendar-date-face > span::after { right: 26%; }
.calendar-date-face > strong { display: block; padding: 16px 0 0; color: #ac2b26; font: 600 136px/1.2 'Times New Roman', 'Songti SC', serif; letter-spacing: -.06em; }
.tool-calendar .calendar-answer .answer-caption { color: #8b4939; font-size: 14px; }
.tool-calendar .calendar-answer .answer-primary { margin: 18px 0 12px; font-family: inherit; font-size: 24px; font-weight: 600; color: #982d27; }
.calendar-leap-note { margin: 0; color: #93816a; font-size: 12px; line-height: 1.8; }
.tool-calendar .vintage-sheet::after { content: ''; position: absolute; height: 7px; bottom: -7px; left: 0; right: 0; background: linear-gradient(135deg,#fffbed 25%,transparent 25%) -6px 0/12px 12px,linear-gradient(225deg,#fffbed 25%,transparent 25%) -6px 0/12px 12px; }
.tool-calendar .term-section { margin-top: 42px; }
.term-heading { display: flex; align-items: center; gap: 10px; color: #8f3c2e; }
.term-heading h2 { margin: 0; }.term-heading .utility-icon { width: 20px; height: 20px; }
.tool-calendar .term-grid { gap: 10px; }
.tool-calendar .term-item { padding: 14px 8px; border-radius: 2px; background: #f7f1e1; }
.tool-calendar .term-item strong { color: #964137; font-size: 15px; }
.tool-calendar .term-item time { font-family: -apple-system, sans-serif; color: #85745e; font-size: 10px; }
.tool-calendar .birthday-list { display: grid; gap: 8px; }
.tool-calendar .birthday-list > div { background: #fbf6e9; padding: 16px; border-radius: 2px; }
.tool-calendar .utility-empty { background: #f3ebda; border-radius: 2px; }
/* Pocket dictionary: red cloth spine, warm pages, large Song characters and numbered readings. */
.tool-pronunciation { background: #e8dfce; color: #372c26; --muted: #84725f; --secondary: #746454; font-family: 'Songti SC', 'Noto Serif CJK SC', 'SimSun', serif; }
.tool-pronunciation main { width: calc(100% - 40px); max-width: 580px; margin-top: 22px; padding: 28px 24px; background: #fffdf3; border-radius: 2px; box-shadow: -7px 0 0 #a1292d,4px 0 0 #d9cdb5; }
.tool-pronunciation .tool-heading { gap: 14px; color: #9c252b; padding-bottom: 30px; }
.tool-pronunciation .tool-heading h1 { font: 600 32px 'Songti SC', serif; letter-spacing: .09em; }
.tool-pronunciation .tool-heading > .utility-icon { width: 38px; height: 46px; padding: 7px; background: #a1292d; color: #fff7e6; border-radius: 2px; }
.dictionary-search { display: flex; align-items: flex-end; gap: 10px; }
.dictionary-search .utility-field { flex: 1; min-width: 0; margin: 0; }
.dictionary-search .utility-field > span { font-size: 12px; color: #9a8069; }
.dictionary-search input { height: 54px; border: 0; border-radius: 2px; background: #f2ebdc; color: #47392d; font-family: inherit; }
.dictionary-submit { flex-shrink: 0; display: grid; place-items: center; width: 54px; height: 54px; border: 0; border-radius: 2px; background: #a1292d; color: #fff9ec; }
.dictionary-submit .utility-icon { width: 25px; height: 25px; }
.tool-pronunciation .word-presets { gap: 7px; margin-top: 16px; }
.tool-pronunciation .word-presets button { min-width: 44px; padding-inline: 10px; border-radius: 2px; background: #efe6d3; color: #8b5942; font-family: inherit; }
.tool-pronunciation .answer-card { padding: 24px 0 18px; border-radius: 0; background: transparent; }
.tool-pronunciation .answer-caption { color: #432e28; font: 600 44px/1.5 'Songti SC', serif; }
.tool-pronunciation .answer-primary { margin: 8px 0 16px; font-size: 25px; font-weight: 400; color: #a1292d; font-family: Georgia, 'Times New Roman', serif; }
.tool-pronunciation .utility-output h2 { font-family: inherit; color: #9c252b; font-size: 17px; font-weight: 500; letter-spacing: .08em; }
.tool-pronunciation .character-row { padding: 22px 0; margin: 0; border-radius: 0; background: transparent; }
.tool-pronunciation .character-title { align-items: center; gap: 22px; }
.tool-pronunciation .character-title strong { flex-shrink: 0; display: block; width: 60px; height: auto; background: transparent; color: #3d2e27; font: 600 52px/1.2 'Songti SC', serif; }
.character-readings { display: flex; flex-wrap: wrap; gap: 8px 14px; color: #992d2d; font-size: 17px; font-family: Georgia, 'Songti SC', serif; }
.character-readings span { white-space: nowrap; }
.tool-pronunciation .word-examples { gap: 6px 16px; margin-top: 16px; align-items: baseline; }
.tool-pronunciation .word-examples > span { padding: 0; border-radius: 0; background: transparent; font-size: 13px; line-height: 2; }
.examples-label { font-size: 11px; color: #a1292d; }
.tool-pronunciation .utility-empty { padding: 52px 0; }
.tool-pronunciation .utility-empty > .utility-icon { display: block; width: 52px; height: 60px; margin: 0 auto 20px; color: #b48d70; stroke-width: 1; }
.tool-pronunciation footer { color: #867361; }
@media(max-width:680px) { .standalone main { padding-inline: 20px; padding-top: 26px; } .standalone footer { padding-inline: 20px; } .tool-pronunciation main { padding: 26px 20px; } }
@media(max-width:360px) { .standalone main { padding-inline: 16px; } .tool-kinship .relation-keys { gap: 10px; } .tool-kinship .relation-keys button { font-size: 18px; } .tool-kinship .relation-keys .calculator-equals { font-size: 36px; } .tool-calendar .term-grid { gap: 8px; } .tool-pronunciation main { width: calc(100% - 32px); padding: 24px 16px; } .tool-pronunciation .tool-heading h1 { font-size: 29px; } }
/* App controls: short choices stay visible; calendar choices open compact grids. */
button, input, textarea { font: inherit; }
body:has(.picker-dialog[open]) { overflow: hidden; }
.standalone .utility-field { gap: 7px; margin-bottom: 12px; }
.segmented-choice { display: flex; gap: 3px; padding: 3px; border-radius: 8px; background: #ddd2bf; min-width: 0; }
.segmented-choice button { flex: 1; min-width: 44px; min-height: 38px; padding: 7px 12px; border: 0; border-radius: 5px; background: transparent; color: inherit; font: inherit; font-size: 13px; white-space: nowrap; }
.segmented-choice button[aria-pressed=true] { background: #a42d28; color: #fff9eb; }
.choice-control { min-width: 0; }
.choice-trigger { display: flex; align-items: center; gap: 8px; width: 100%; height: 46px; min-width: 0; padding: 0 10px; border: 0; border-radius: 4px; background: #f9f5e9; color: #624e38; font-size: 15px; text-align: left; }
.choice-trigger > span { flex: 1; white-space: nowrap; }
.choice-trigger .utility-icon { width: 17px; height: 17px; }
.choice-trigger .utility-icon:last-child { width: 14px; height: 14px; color: #94816a; }
.choice-trigger[aria-expanded=true] { box-shadow: 0 0 0 2px #a42d2844; }
.tool-calendar .utility-tabs { margin-bottom: 16px; }
.tool-calendar .utility-tabs button { display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 13px; white-space: nowrap; }
.tool-calendar .utility-tabs .utility-icon { width: 15px; height: 15px; }
.tool-calendar .utility-form:not(.dictionary-search) { display: flex; flex-wrap: wrap; gap: 0 10px; align-items: flex-end; }
.solar-controls { flex: 1; min-width: 0; }
.solar-controls .utility-field { margin-bottom: 0; }
.tool-calendar .utility-actions { margin: 0; }
.tool-calendar .utility-actions .button { display: flex; align-items: center; gap: 7px; padding-inline: 15px; font-size: 14px; white-space: nowrap; }
.tool-calendar .utility-actions .utility-icon { width: 17px; height: 17px; }
.lunar-controls { width: 100%; }
.date-fields { grid-template-columns: 1.15fr 1fr 1fr; gap: 10px; }
.date-fields .choice-trigger > .utility-icon:first-child { display: none; }
.tool-calendar .date-fields input { height: 46px; padding-inline: 10px; font-size: 15px; appearance: textfield; -moz-appearance: textfield; }
.date-fields input::-webkit-inner-spin-button, .picker-period input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.month-type-row .utility-field { flex-direction: row; align-items: center; justify-content: space-between; }
.month-type-row .segmented-choice { width: 176px; }
.policy-field .segmented-choice button { font-size: 12px; }
.tool-calendar .utility-output:empty { display: none; }
.tool-calendar .vintage-sheet { margin-top: 24px; }
.tool-calendar .term-section { margin-top: 28px; }
.tool-kinship .calculator-toolbar { align-items: center; gap: 8px; margin-bottom: 0; }
.calculator-toolbar > .utility-icon { width: 15px; height: 15px; color: #929292; }
.calculator-toolbar .utility-field { gap: 8px; margin: 0; }
.tool-kinship .segmented-choice { padding: 3px; border-radius: 24px; background: #1c1c1e; }
.tool-kinship .segmented-choice button { border-radius: 20px; color: #999; min-width: 44px; min-height: 38px; padding-inline: 12px; }
.tool-kinship .segmented-choice button[aria-pressed=true] { background: #454547; color: #fff; }
.tool-kinship .calculator-screen { padding-top: 12px; padding-bottom: 20px; min-height: 175px; }
.examples-label { display: inline-flex; align-items: center; gap: 4px; }
.examples-label .utility-icon { width: 13px; height: 13px; }
.picker-dialog { position: fixed; inset: auto 0 max(12px, env(safe-area-inset-bottom)); width: min(380px, calc(100% - 24px)); max-width: none; max-height: min(448px, 72dvh); margin: 0 auto; padding: 14px; border: 0; border-radius: 14px; overflow-y: auto; overscroll-behavior: contain; color: #4e402f; background: #fffbed; box-shadow: 0 16px 64px #30241840; font-family: inherit; }
.picker-dialog::backdrop { background: #241b146b; }
.tool-calendar .picker-dialog { border-radius: 5px; }
.picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.picker-dialog .picker-heading h2 { margin: 0; font-size: 17px; font-weight: 600; color: #942b27; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; padding: 0; border: 0; border-radius: 6px; color: #877258; background: transparent; }
.icon-button .utility-icon { width: 20px; height: 20px; }
.icon-button:disabled { cursor: default; opacity: .3; }
.picker-grid { display: grid; gap: 5px; grid-template-columns: repeat(4, minmax(0,1fr)); }
.picker-grid[data-columns='6'] { grid-template-columns: repeat(6, minmax(0,1fr)); }
.picker-grid[data-columns='7'] { grid-template-columns: repeat(7, minmax(0,1fr)); }
.picker-option { min-width: 0; min-height: 44px; padding: 5px 2px; border: 0; border-radius: 4px; background: #f3ecdc; color: #624e38; font-size: 15px; }
.picker-option[aria-pressed=true] { background: #a42d28; color: #fff9eb; }
.picker-option:focus-visible, .picker-dialog button:focus-visible, .picker-dialog input:focus-visible { outline: 2px solid #a42d28; outline-offset: -2px; }
.picker-monthbar { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 6px; }
.picker-period { display: flex; align-items: center; justify-content: center; gap: 4px; }
.utility-field .picker-period input { width: 63px; height: 36px; padding: 4px; border: 0; text-align: center; background: #f3ecdc; font: 16px Georgia, serif; appearance: textfield; -moz-appearance: textfield; }
.picker-period > span { font-size: 13px; }
.picker-month { display: flex; align-items: center; gap: 3px; height: 40px; padding: 0 8px; border: 0; color: #942b27; background: transparent; font-size: 16px; }
.picker-month .utility-icon { width: 14px; height: 14px; }
.picker-weekdays { display: grid; grid-template-columns: repeat(7,1fr); margin-bottom: 5px; text-align: center; color: #a08e73; font-size: 12px; }
.date-grid { gap: 3px; }
.date-grid .picker-option { min-height: 38px; background: transparent; font: 15px Georgia, serif; }
.date-grid .picker-option[data-today=true]:not([aria-pressed=true]) { color: #a42d28; box-shadow: inset 0 0 0 1px #a42d2855; }
.date-grid .picker-option[aria-pressed=true] { background: #a42d28; color: #fff9eb; }
.picker-today { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; width: 100%; margin-top: 8px; padding: 0; border: 0; border-radius: 4px; background: #f3ecdc; color: #942b27; font-size: 13px; }
.picker-today .utility-icon { width: 15px; height: 15px; }
@media(max-width:360px) { .tool-calendar .utility-tabs button { gap: 3px; padding-inline: 3px; font-size: 12px; } .tool-calendar .utility-tabs .utility-icon { width: 13px; height: 13px; } .tool-calendar .utility-actions .button { padding-inline: 10px; gap: 4px; font-size: 13px; } .date-choice .choice-trigger { gap: 5px; font-size: 13px; } }
.tool-help summary::after, .source-reference summary::after { content: none; }
.tool-help summary > .utility-icon:last-child, .source-reference summary > .utility-icon:last-child, .term-heading > .utility-icon:last-child { margin-left: auto; width: 15px; height: 15px; transition: transform .15s; }
.tool-help[open] summary > .utility-icon:last-child, .source-reference[open] summary > .utility-icon:last-child, .term-section[open] .term-heading > .utility-icon:last-child { transform: rotate(180deg); }
.term-heading { min-height: 44px; cursor: pointer; list-style: none; font-size: 16px; }
.term-heading::-webkit-details-marker { display: none; }
/* Each extended tool is an app with its own palette, compact forms and local actions. */
.extended-app { --accent:#367b6f; --canvas:#f2f6f3; --paper:#fff; --ink:#263c34; --soft:#e4ece6; --muted:#7a8981; background:var(--canvas); color:var(--ink); }
.extended-app main,.extended-app footer { max-width:520px; }
.extended-app .tool-heading { gap:10px; padding-bottom:24px; color:var(--accent); }
.extended-app .tool-heading h1 { font-size:25px; font-weight:600; letter-spacing:-.02em; }
.extended-app .tool-heading > .utility-icon { width:27px; height:27px; }
.extended-app footer,.extended-app .source-reference { color:var(--muted); }
.extended-app .app-panel { font-size:14px; }
.extended-app h2 { margin:24px 0 16px; font-size:17px; font-weight:550; }
.extended-app h3 { font-size:15px; font-weight:550; }
.app-field { display:flex; flex-direction:column; min-width:0; gap:8px; margin-bottom:16px; }
.app-field > span { color:var(--muted); font-size:12px; }
.app-field input,.app-field textarea { min-width:0; width:100%; border:0; border-radius:10px; padding:12px; background:var(--paper); color:var(--ink); font:inherit; font-size:16px; }
.app-field input { min-height:46px; }
.app-field textarea { resize:vertical; min-height:76px; line-height:1.7; }
.app-field input:focus-visible,.app-field textarea:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.app-field input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.app-field input[type=number] { appearance:textfield; -moz-appearance:textfield; }
.app-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; }
.app-field .segmented-choice { background:var(--soft); flex-wrap:wrap; border-radius:9px; }
.app-field .segmented-choice button { min-width:42px; min-height:38px; padding:7px 9px; font-size:13px; color:var(--muted); }
.app-field .segmented-choice button[aria-pressed=true] { color:#fff; background:var(--accent); }
.app-field .choice-trigger { color:var(--ink); background:var(--paper); border-radius:10px; font-size:14px; }
.app-field .choice-trigger > .utility-icon:first-child { color:var(--accent); }
.extended-app .picker-dialog { background:var(--paper); color:var(--ink); font-family:inherit; }
.extended-app .picker-heading h2,.extended-app .picker-month { color:var(--accent); }
.extended-app .picker-option { color:var(--ink); background:var(--soft); }
.extended-app .picker-option[aria-pressed=true] { color:#fff; background:var(--accent); }
.extended-app .date-grid .picker-option:not([aria-pressed=true]) { background:transparent; }
.extended-app .picker-period input { width:65px; min-height:36px; padding:4px; text-align:center; background:var(--soft); font-size:16px; }
.extended-app .picker-period > span { color:var(--muted); }
.extended-app .picker-today { background:var(--soft); color:var(--accent); }
.app-form-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:5px 0 20px; }
.app-primary,.app-secondary { display:inline-flex; justify-content:center; align-items:center; gap:7px; min-height:44px; padding:11px 18px; border:0; border-radius:10px; font:inherit; font-size:14px; text-align:center; }
.app-primary { background:var(--accent); color:#fff; }
.app-secondary { background:var(--soft); color:var(--ink); }
.app-primary .utility-icon,.app-secondary .utility-icon { width:18px; height:18px; }
.app-record-form > .app-form-actions .app-primary,.app-query-form > .app-primary { width:100%; }
.app-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0 0 24px; }
.app-metrics > div { display:flex; flex-direction:column; gap:9px; padding:18px 14px; background:var(--soft); border-radius:14px; }
.app-metrics span { font-size:11px; color:var(--muted); }
.app-metrics strong { color:var(--accent); font-size:21px; font-weight:550; overflow-wrap:anywhere; }
.app-history-heading { display:flex; align-items:center; justify-content:space-between; }
.app-history-row { display:flex; justify-content:space-between; gap:12px; padding:16px; margin-bottom:10px; background:var(--paper); border-radius:12px; }
.app-history-row > div:first-child { flex:1; min-width:0; }
.app-history-row time { font-size:11px; color:var(--muted); }
.app-history-row h3 { line-height:1.6; margin:7px 0; overflow-wrap:anywhere; }
.app-history-row p { font-size:12px; line-height:1.8; margin:5px 0 0; color:var(--muted); white-space:pre-wrap; overflow-wrap:anywhere; }
.app-row-actions { display:flex; align-items:flex-start; gap:2px; }
.extended-app .icon-button { width:36px; min-height:40px; color:var(--muted); }
.extended-app .icon-button .utility-icon { width:16px; height:16px; }
.app-history-row > .icon-button { align-self:flex-start; }
.app-empty { text-align:center; padding:32px 12px; color:var(--muted); font-size:13px; line-height:1.8; }
.app-empty > .utility-icon { width:36px; height:36px; }
.app-backup { margin-top:24px; color:var(--muted); font-size:12px; }
.app-backup > summary { display:flex; align-items:center; gap:8px; min-height:44px; cursor:pointer; list-style:none; }
.app-backup > summary::-webkit-details-marker { display:none; }
.app-backup > summary > .utility-icon { width:16px; height:16px; }
.app-backup > summary > .utility-icon:last-child { margin-left:auto; }
.app-backup[open] > summary > .utility-icon:last-child { transform:rotate(180deg); }
.app-backup .app-form-actions { margin-top:10px; }
.app-note,.app-source { margin:20px 0; color:var(--muted); font-size:11px; line-height:1.9; overflow-wrap:anywhere; }
.extended-app .notice { padding:12px 0; border:0; background:transparent; color:var(--muted); }
.extended-app .notice.error { color:#b8544a; }
.extended-app .notice.success { color:var(--accent); }
.quick-amounts,.reference-tags { display:flex; flex-wrap:wrap; gap:7px; margin-top:4px; }
.quick-amounts button,.reference-tags button { min-height:40px; padding:7px 12px; background:var(--soft); border:0; border-radius:8px; color:var(--accent); font-size:12px; }
.reference-tags { margin:14px 0; }
.reference-card { padding:22px 18px; margin:16px 0; background:var(--paper); border-radius:15px; overflow-wrap:anywhere; }
.reference-card h2 { margin:0 0 16px; }
.reference-card h3 { margin:22px 0 6px; }
.reference-card p { line-height:1.9; color:var(--muted); margin:10px 0; font-size:13px; }
.reference-card small { color:var(--muted); line-height:1.8; font-size:11px; }
.reference-card dl { display:grid; grid-template-columns:1fr 1fr; gap:14px; font-size:13px; }
.reference-card dt { color:var(--muted); }.reference-card dd { margin:0; text-align:right; }
.app-big-number { display:block; color:var(--accent); font-size:clamp(22px,6vw,32px); font-weight:550; line-height:1.5; }
.source-link { display:inline-flex; gap:6px; align-items:center; color:var(--accent); font-size:12px; }
.source-link .utility-icon { width:13px; height:13px; }
.calendar-download { display:flex; gap:6px; align-items:center; min-height:44px; margin-top:12px; padding:0; border:0; background:transparent; color:var(--accent); font-size:12px; }
.calendar-download .utility-icon { width:16px; height:16px; }
.app-swap { display:block; width:44px; height:36px; margin:-4px auto 10px; padding:0; background:transparent; border:0; color:var(--accent); }
.more-records { width:100%; margin:12px 0; }.weight-trend { color:var(--accent); margin:-8px 0 24px; }.weight-trend svg { display:block; width:100%; height:90px; }
.countdown-value { color:var(--accent); font-size:24px; line-height:1.7; font-weight:500; }
.phoneme-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin:16px 0; }
.phoneme-grid button { position:relative; display:flex; flex-direction:column; align-items:center; gap:6px; min-height:76px; padding:12px 6px; border:0; border-radius:11px; background:var(--paper); color:var(--ink); }
.phoneme-grid button strong { font:24px Georgia,serif; }.phoneme-grid button span { font-size:11px; color:var(--muted); }.phoneme-grid .utility-icon { width:11px; height:11px; position:absolute; top:5px; right:5px; color:var(--accent); }
.phoneme-detail { padding:24px 18px; background:var(--soft); border-radius:15px; }.phoneme-display { font:56px Georgia,serif; color:var(--accent); margin-bottom:12px; }.phoneme-detail > p { line-height:1.8; font-size:13px; color:var(--muted); }.phoneme-detail .app-form-actions { margin-bottom:0; }.phonics-quiz { padding-top:16px; }.quiz-options { display:flex; gap:12px; margin-top:12px; }.quiz-options button { flex:1; font:22px Georgia,serif; }
.focus-face { display:flex; flex-direction:column; align-items:center; justify-content:center; width:min(100%,300px); aspect-ratio:1; margin:12px auto 28px; border-radius:50%; background:var(--soft); }.focus-clock { font:300 68px/1.2 -apple-system,sans-serif; font-variant-numeric:tabular-nums; letter-spacing:-.05em; color:var(--accent); }.focus-status { color:var(--muted); font-size:12px; margin:12px 0 0; }
.tool-oil { --accent:#31684c; --canvas:#f2f5eb; --soft:#e2ead7; }
.tool-gold { --accent:#9a742c; --canvas:#f9f5ea; --soft:#eee5cd; }.tool-gold .tool-heading h1 { font-family:'Songti SC',serif; }.tool-gold .reference-card { border-radius:3px; }
.tool-horoscope { --accent:#b8a3f0; --canvas:#1c192b; --paper:#272236; --ink:#f1eafc; --soft:#342c47; --muted:#a69bb9; }.tool-horoscope .reference-card { background:radial-gradient(ellipse at top right,#403055,var(--paper)); }
.tool-dream { --accent:#73739b; --canvas:#eff0f6; --soft:#e1e2ee; }
.tool-traffic { --accent:#365c7c; --canvas:#f0f4f7; --soft:#dfe8ef; }.tool-traffic .reference-card { border-radius:4px; }
.tool-quit-smoking { --accent:#2c7865; --canvas:#f0f6f2; --soft:#dfeee5; }
.tool-quit-drinking { --accent:#795b90; --canvas:#f5f1f7; --soft:#eae0ee; }
.tool-running { --accent:#df5c36; --canvas:#faf3eb; --soft:#f5e4d5; }.tool-running .app-metrics strong { font-style:italic; font-weight:700; }
.tool-workout { --accent:#69754a; --canvas:#f4f5ee; --soft:#e7e9da; }
.tool-weight { --accent:#2f8590; --canvas:#eff6f5; --soft:#dcefeb; }
.tool-bowel { --accent:#a17745; --canvas:#f7f3ec; --soft:#ece2d2; }
.tool-drinks { --accent:#8a624a; --canvas:#f4eee5; --soft:#e8dac8; --paper:#fffaf2; }.tool-drinks .tool-heading h1 { font-family:'Songti SC',serif; }
.tool-food-diary { --accent:#ba743a; --canvas:#fbf5ed; --soft:#f1e4d2; }
.tool-phonics { --accent:#456cad; --canvas:#f0f3fa; --soft:#e0e8f6; }
.tool-sleep { --accent:#a0b2e5; --canvas:#1c243b; --paper:#28324e; --ink:#edf0fa; --soft:#303d5c; --muted:#9aa8c8; }
.tool-water { --accent:#398cbb; --canvas:#eff7fa; --soft:#dceff6; }
.tool-mood { --accent:#bb8b32; --canvas:#fbf7e9; --soft:#f3ebc9; }
.tool-focus { --accent:#b4683c; --canvas:#faf5eb; --soft:#f1e5ce; }
.tool-countdown { --accent:#457e76; --canvas:#f0f6f2; --soft:#dfece1; }
.tool-period { --accent:#bc6b81; --canvas:#fcf2f4; --soft:#f2dfe5; }
.tool-exchange { --accent:#337b75; --canvas:#eff6f4; --soft:#dcece5; }
.tool-calories { --accent:#b48135; --canvas:#faf7ec; --soft:#eee6cd; }
.tool-postcode { --accent:#a15443; --canvas:#f8f2ed; --soft:#edddd1; }.tool-postcode .reference-card { border-radius:4px; font-family:'Songti SC',serif; }
.tool-phone-prefix { --accent:#4b738b; --canvas:#f1f5f8; --soft:#dfe9ef; }
.tool-flowers { --accent:#a35f7a; --canvas:#f9f1f2; --soft:#eedde3; --paper:#fffaf8; }.tool-flowers .tool-heading h1,.tool-flowers .reference-card h2 { font-family:'Songti SC',serif; }
.tool-drama { --accent:#8c6eb4; --canvas:#f4f0f8; --soft:#e8def0; }
.tool-sports { --accent:#83be83; --canvas:#17281d; --paper:#24382c; --ink:#f0f8f0; --soft:#2b4434; --muted:#9ab69e; }.tool-sports .reference-card { border-radius:4px; }.tool-sports .reference-card h2 { font-size:22px; }
.tool-seasonal-fruit { --accent:#708a42; --canvas:#f5f7ed; --soft:#e6edcf; --paper:#fffdf4; }.tool-seasonal-fruit .reference-card h2 { font-family:'Songti SC',serif; font-size:24px; }
@media(max-width:360px) { .extended-app .tool-heading h1 { font-size:23px; }.app-form-grid { gap:0 9px; }.app-field .choice-trigger { gap:5px; font-size:13px; padding-inline:8px; }.app-field .choice-trigger > .utility-icon:first-child { display:none; }.app-metrics strong { font-size:19px; }.app-history-row { padding:14px 10px; }.app-row-actions { flex-direction:column; }.phoneme-grid { gap:7px; }.focus-clock { font-size:60px; }.app-primary,.app-secondary { padding-inline:14px; } }
.extended-app .segmented-choice { background:var(--soft); }
.extended-app .segmented-choice button { color:var(--muted); }
.extended-app .segmented-choice button[aria-pressed=true] { background:var(--accent); color:#fff; }
.app-form-grid.single-field { grid-template-columns:1fr; }
.app-form-grid .wide-field { grid-column:1/-1; }
.app-note-editor { margin:0 0 14px; color:var(--muted); font-size:12px; }
.app-note-editor summary { display:flex; gap:7px; align-items:center; min-height:40px; cursor:pointer; list-style:none; }
.app-note-editor summary::-webkit-details-marker { display:none; }
.app-note-editor summary .utility-icon { width:14px; height:14px; }.app-note-editor summary .utility-icon:last-child { margin-left:auto; }
.app-note-editor[open] summary .utility-icon:last-child { transform:rotate(180deg); }
.app-note-editor .app-field { margin-top:8px; }
/* App home screens show the activity first; record entry lives in a separate sheet. */
.record-dashboard { margin-bottom:24px; }
.record-hero { position:relative; padding:28px 12px 24px; text-align:center; overflow:hidden; }
.hero-label { display:block; color:var(--muted); font-size:12px; }
.hero-number { margin:14px 0 8px; color:var(--accent); font-size:clamp(32px,10vw,60px); font-weight:550; line-height:1.35; letter-spacing:-.04em; overflow-wrap:anywhere; }
.hero-number small { margin-left:8px; font-size:17px; font-weight:400; letter-spacing:0; }
.hero-footnote { margin:8px 0 0; color:var(--muted); font-size:12px; line-height:1.8; }
.record-dashboard > .record-add { width:100%; margin:16px 0 4px; }
.record-week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; padding:16px 0; }
.record-week button { display:flex; flex-direction:column; align-items:center; gap:9px; padding:10px 0; border:0; border-radius:22px; color:var(--muted); background:transparent; }
.record-week button > span { font-size:11px; }.record-week button strong { color:var(--ink); font-size:15px; font-weight:500; }
.record-week button i { width:4px; height:4px; border-radius:50%; background:transparent; }.record-week .has-records i { background:var(--accent); }
.record-week button[aria-pressed=true] { background:var(--soft); }.record-week button[aria-pressed=true] strong { color:var(--accent); }
.water-cups { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; max-width:250px; margin:24px auto 4px; }
.water-cups .utility-icon { width:42px; height:42px; stroke-width:1.2; }.water-cups .filled { color:var(--accent); fill:var(--soft); }.water-cups .unfilled { color:#b4d3df; }
.water-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:16px 0 0; }
.quick-water { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; min-height:110px; border:0; border-radius:20px; background:var(--paper); color:var(--accent); }
.quick-water > .utility-icon { width:25px; height:25px; }.quick-water strong { font-size:25px; font-weight:500; }.quick-water small { font-size:11px; color:var(--muted); }
.habit-checkin { display:flex; align-items:center; justify-content:center; gap:10px; min-height:76px; width:100%; margin-top:12px; border:0; border-radius:40px; background:var(--accent); color:#fff; font-size:16px; }
.habit-checkin .utility-icon { width:24px; height:24px; }.habit-checkin:disabled { background:var(--soft); color:var(--accent); opacity:1; cursor:default; }
.habit-secondary { display:flex; justify-content:space-between; align-items:center; padding:20px 8px; color:var(--muted); font-size:12px; }.habit-secondary strong { color:var(--accent); font-size:21px; font-weight:500; }
.tool-quit-smoking .record-add,.tool-quit-drinking .record-add { background:transparent; color:var(--accent); }
.mood-faces { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; margin:24px 0; }
.mood-faces button { display:flex; flex-direction:column; align-items:center; gap:12px; padding:16px 0; border:0; border-radius:40px; background:transparent; color:var(--accent); }
.mood-faces .utility-icon { width:42px; height:42px; stroke-width:1.2; }.mood-faces span { font-size:10px; white-space:nowrap; color:var(--muted); }.mood-faces .selected { background:var(--soft); }
.hero-mood .hero-number { font-size:30px; }.hero-period .hero-number { font-size:33px; }.hero-workout .hero-number { font-size:36px; }
.activity-bars { display:grid; grid-template-columns:repeat(7,1fr); align-items:end; gap:12px; padding:8px 14px 20px; }
.activity-bars > div { display:flex; flex-direction:column; align-items:center; gap:9px; color:var(--muted); font-size:11px; }.activity-bars small { font-size:10px; }
.activity-bar { display:block; width:17px; min-height:4px; max-height:66px; border-radius:10px; background:var(--accent); opacity:.75; }
.dashboard-menu { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:14px 0; }
.dashboard-choice { display:flex; gap:12px; align-items:center; justify-content:flex-start; min-height:82px; padding:18px; border:0; border-radius:16px; background:var(--paper); color:var(--ink); font-size:14px; }
.dashboard-choice .utility-icon { color:var(--accent); width:27px; height:27px; stroke-width:1.4; }.drinks-menu .dashboard-choice { min-height:100px; border-radius:6px; font-family:'Songti SC',serif; }
.meal-board { display:grid; gap:12px; margin:8px 0 22px; }
.meal-tile { display:grid; grid-template-columns:30px 1fr 24px; gap:8px 12px; align-items:center; min-height:88px; padding:18px; border:0; border-radius:14px; background:var(--paper); text-align:left; color:var(--ink); }
.meal-tile > .utility-icon:first-child { grid-row:1/3; color:var(--accent); width:26px; height:26px; }.meal-tile > span { color:var(--muted); font-size:11px; }.meal-tile strong { grid-column:2; font-size:14px; line-height:1.5; font-weight:500; overflow-wrap:anywhere; }.meal-tile > .utility-icon:last-child { grid-row:1/3; grid-column:3; width:18px; color:var(--accent); }
.hero-sleep { border-radius:140px 140px 30px 30px; background:radial-gradient(ellipse at top,var(--soft),transparent 80%); padding-top:50px; }
.sleep-times { display:flex; align-items:center; justify-content:center; gap:60px; margin-top:28px; }.sleep-times > div { display:flex; align-items:center; flex-direction:column; gap:9px; color:var(--muted); }.sleep-times .utility-icon { width:22px; height:22px; }.sleep-times span { color:var(--ink); font-size:22px; }.sleep-times small { font-size:11px; }
.stool-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:18px 0; }.stool-choices button { display:flex; flex-direction:column; gap:9px; align-items:center; padding:14px 8px; min-height:91px; background:var(--paper); border:0; border-radius:12px; color:var(--accent); }.stool-glyph { width:65px; height:37px; opacity:.8; }.stool-choices span { color:var(--muted); font-size:12px; }.dashboard-prompt { font-size:16px; text-align:center; color:var(--accent); }
.period-calendar { padding:18px 12px; border-radius:18px; background:var(--paper); }.period-calendar h2 { margin:0 0 20px; text-align:center; color:var(--accent); font-size:15px; }
.calendar-weekdays,.calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; text-align:center; }.calendar-weekdays { margin-bottom:12px; color:var(--muted); font-size:11px; }.calendar-days button { min-width:0; min-height:39px; padding:0; border:0; border-radius:50%; background:transparent; color:var(--ink); font-size:13px; }.calendar-days .period-day { background:var(--soft); color:var(--accent); }.calendar-days .calendar-today { box-shadow:inset 0 0 0 1px var(--accent); }.calendar-days button:disabled { opacity:.3; cursor:default; }
body:has(.record-composer[open]) { overflow:hidden; }
.record-composer { position:fixed; inset:auto 0 max(12px,env(safe-area-inset-bottom)); width:min(480px,calc(100% - 24px)); max-width:none; max-height:86dvh; margin:0 auto; padding:20px; border:0; border-radius:20px; color:var(--ink); background:var(--canvas); font:inherit; overflow:auto; overscroll-behavior:contain; }
.record-composer::backdrop { background:#17231d75; }.composer-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }.record-composer .composer-heading h2 { margin:0; font-size:18px; color:var(--accent); }.record-composer .app-form-actions { margin-bottom:0; }.record-composer .app-record-form .app-primary { min-height:48px; }
.weight-input { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; gap:10px; }.weight-input > span { grid-column:1/-1; }.weight-input input { text-align:center; font-size:30px; color:var(--accent); min-height:76px; }.weight-step { width:44px; height:44px; padding:0; border:0; border-radius:50%; background:var(--soft); color:var(--accent); font-size:25px; }
.browse-search { position:relative; }.browse-search > .app-field:first-child input { border-radius:26px; padding-right:60px; }.browse-search > button[type=submit] { position:absolute; right:5px; top:28px; width:40px; min-height:38px; padding:0; border-radius:22px; font-size:0; }.browse-search > button[type=submit] .utility-icon { width:18px; height:18px; }
.portion-options { margin:0 0 14px; font-size:12px; color:var(--muted); }.portion-options > summary { display:flex; align-items:center; gap:6px; min-height:38px; list-style:none; cursor:pointer; }.portion-options summary::-webkit-details-marker { display:none; }.portion-options summary .utility-icon { width:13px; height:13px; }.portion-options > .app-field { margin-top:8px; }
.food-catalogue { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:20px 0; }.food-catalogue button { display:flex; align-items:flex-start; flex-direction:column; gap:10px; min-height:120px; padding:16px; border:0; border-radius:13px; background:var(--paper); color:var(--ink); text-align:left; }.food-catalogue .utility-icon { color:var(--accent); width:21px; height:21px; }.food-catalogue strong { font-size:14px; font-weight:500; line-height:1.5; }.food-catalogue span { font-size:11px; color:var(--muted); }.browse-reset { width:100%; margin:8px 0; }
.scene-tabs { display:flex; gap:8px; flex-wrap:wrap; margin:18px 0; }.scene-tabs button { min-height:40px; padding:8px 16px; border:0; border-radius:24px; color:var(--accent); background:var(--soft); font-size:12px; }
.flower-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.flower-gallery .reference-card { margin:0; padding:22px 14px; min-height:160px; background:linear-gradient(135deg,var(--paper),var(--soft)); }.flower-gallery .reference-card h2 { font-family:'Songti SC',serif; font-size:23px; }.flower-gallery .reference-card strong { font-size:13px; }.flower-gallery .reference-card p { font-size:12px; }
.automatic-query > button[type=submit] { display:none; }.automatic-query .month-rail { display:flex; flex-wrap:nowrap; overflow-x:auto; gap:6px; padding:0 0 12px; background:transparent; border-radius:0; scrollbar-width:none; }.month-rail button { flex:0 0 51px; min-height:51px; border-radius:50%; background:var(--paper); color:var(--accent); }.month-rail button[aria-pressed=true] { background:var(--accent); color:#fff; }
.city-shortcuts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:22px 0; }.city-shortcuts button { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:10px; min-height:80px; padding:8px 3px; border:0; border-radius:10px; color:var(--accent); background:var(--paper); font-size:13px; }.city-shortcuts .utility-icon { width:21px; height:21px; }
.phone-dialer > .app-field:first-child input { height:84px; padding:10px 0; text-align:center; background:transparent; color:var(--accent); font-size:27px; font-variant-numeric:tabular-nums; letter-spacing:.04em; }.phone-dialer > .app-field:first-child > span { text-align:center; }.phone-keypad { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 22px; max-width:300px; margin:12px auto 24px; }.phone-keypad button { justify-self:center; display:grid; place-items:center; width:70px; height:70px; padding:0; border:0; border-radius:50%; background:var(--paper); color:var(--ink); font-size:27px; }.phone-keypad button:nth-child(10) { font-size:12px; }.phone-keypad .utility-icon { width:25px; height:25px; }
.zodiac-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; padding:0; background:transparent!important; margin-bottom:24px; }.zodiac-grid button { min-width:0; min-height:65px; padding:12px 2px; border-radius:13px; background:var(--paper); font-size:12px; }.zodiac-grid button[aria-pressed=true] { background:var(--accent); color:var(--canvas); }
.dream-prompts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:8px 0 24px; }.dream-prompts button { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:11px; min-height:90px; padding:12px 4px; border:0; border-radius:16px; background:var(--paper); color:var(--accent); font-size:12px; }.dream-prompts .utility-icon { width:25px; height:25px; stroke-width:1.4; }
.live-filters { margin:16px 0; }.live-filters > summary { display:flex; align-items:center; justify-content:flex-end; gap:7px; min-height:42px; color:var(--muted); font-size:12px; cursor:pointer; list-style:none; }.live-filters > summary::-webkit-details-marker { display:none; }.live-filters summary .utility-icon { width:15px; height:15px; }.live-filters .app-query-form { padding:16px; background:var(--soft); border-radius:14px; }
.feed-dates { display:flex; justify-content:space-between; gap:7px; padding:6px 0; }.feed-dates button { flex:1; min-width:0; min-height:54px; padding:8px 5px; border:0; border-radius:13px; background:var(--paper); color:var(--muted); font-size:13px; }.feed-dates .selected { background:var(--accent); color:var(--canvas); }
.feed-headline { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:16px 0 4px; color:var(--accent); }.feed-headline > span { font-size:21px; }.feed-headline > small { margin-left:auto; color:var(--muted); font-size:10px; }
.feed-empty { padding:45px 15px; text-align:center; border-radius:18px; background:var(--soft); color:var(--muted); }.feed-empty > .utility-icon { width:45px; height:45px; stroke-width:1.2; color:var(--accent); }.feed-empty h2 { font-size:17px; font-weight:500; margin:20px 0 10px; }.feed-empty p { line-height:1.8; font-size:12px; }
.exchange-board { padding:22px 18px; background:var(--paper); border-radius:22px; }.exchange-board .choice-trigger { background:var(--soft); }.exchange-board .app-field > input { text-align:center; color:var(--accent); font-size:34px; min-height:78px; }.exchange-board .currency-pair { gap:24px; }.exchange-board .currency-pair .choice-trigger { font-size:12px; }.exchange-board .currency-pair .choice-trigger > .utility-icon:first-child { display:none; }.amount-shortcuts { justify-content:center; margin:0 0 18px; }.exchange-placeholder { display:flex; align-items:center; flex-direction:column; gap:10px; padding:30px 0; color:var(--muted); }.exchange-placeholder strong { color:var(--accent); font-size:40px; }.exchange-placeholder > .utility-icon { width:25px; height:25px; }.exchange-placeholder small { font-size:11px; }
@media(max-width:360px) { .record-composer { padding:16px; }.water-actions { gap:8px; }.mood-faces .utility-icon { width:35px; height:35px; }.mood-faces span { font-size:9px; }.dashboard-choice { padding:14px; gap:9px; }.phone-keypad { gap:12px 18px; }.phone-keypad button { width:65px; height:65px; }.feed-headline > small { width:100%; margin:2px 0 0; }.exchange-board { padding:18px 12px; }.zodiac-grid button { font-size:11px; } }
.more-foods { width:100%; margin:0 0 14px; }.flower-gallery > .app-empty,.flower-gallery > .notice { grid-column:1/-1; }
.month-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }.period-calendar .month-heading h2 { margin:0; }.month-heading .icon-button { width:36px; min-height:36px; }
.meal-tile strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
/* Independent mobile identities. Decoration stays local and never represents invented data. */
.extended-app { --on-accent:#fff; --radius:22px; -webkit-font-smoothing:antialiased; }
.extended-app main { padding-top:max(26px,env(safe-area-inset-top)); padding-bottom:8px; }
.extended-app .tool-heading { padding-bottom:28px; gap:11px; color:var(--ink); }
.extended-app .tool-heading h1 { font-size:22px; font-weight:650; letter-spacing:-.04em; }
.extended-app .tool-heading > .utility-icon { width:39px; height:39px; padding:9px; border-radius:13px; background:var(--soft); color:var(--accent); stroke-width:1.8; }
.extended-app footer { opacity:.75; letter-spacing:.06em; font-size:10px; }
.extended-app :focus-visible { outline-color:var(--accent); }
.extended-app button { transition:transform .16s,background .16s,opacity .16s; }
.extended-app button:active:not(:disabled) { transform:scale(.97); }
.extended-app button:disabled { cursor:default; }
.extended-app .app-primary,.extended-app .habit-checkin,.extended-app .segmented-choice button[aria-pressed=true],.extended-app .picker-option[aria-pressed=true] { color:var(--on-accent); }
.extended-app .app-primary { min-height:50px; border-radius:16px; font-weight:550; }
.extended-app .app-secondary { border-radius:14px; }
.extended-app .app-field input,.extended-app .app-field textarea,.extended-app .choice-trigger { border-radius:14px; }
.extended-app .choice-trigger { min-height:48px; padding-inline:13px; }
.extended-app .record-composer { border-radius:28px; padding:25px 22px 22px; box-shadow:0 24px 90px #0002; }
.record-composer::before { content:''; display:block; width:28px; height:4px; margin:-13px auto 17px; border-radius:3px; background:var(--muted); opacity:.3; }
.extended-app .composer-heading h2 { color:var(--ink); font-size:20px; }
.extended-app .picker-dialog { border-radius:24px; padding:18px; }
.extended-app .picker-option { border-radius:10px; }
.extended-app .app-history-heading h2 { margin:25px 0 16px; font-size:16px; }
.extended-app .app-history-row { border-radius:18px; padding:18px 16px; }
.extended-app .app-history-row h3 { font-size:14px; }
.extended-app .app-empty { margin:8px 0; padding:26px 10px; }
.extended-app .app-empty > .utility-icon { width:33px; height:33px; padding:0; stroke-width:1.3; color:var(--accent); opacity:.55; }
.extended-app .app-empty p { font-size:12px; }
.extended-app .app-note,.extended-app .source-reference { font-size:10px; }
.extended-app .app-backup { margin-top:20px; }
.record-hero { border-radius:var(--radius); padding:30px 20px 26px; }
.hero-number { font-variant-numeric:tabular-nums; font-weight:600; letter-spacing:-.055em; }
.hero-label { font-size:12px; letter-spacing:.04em; }
.record-week { padding:14px 0 5px; gap:3px; }
.record-week button { min-height:78px; }
.record-week button[aria-pressed=true] { border-radius:18px; }
.app-illustration { position:relative; display:grid; place-items:center; width:78px; height:78px; margin:0 auto 24px; color:var(--accent); isolation:isolate; }
.app-illustration > .utility-icon { position:relative; z-index:1; width:38px; height:38px; stroke-width:1.3; }
.illustration-orbit { position:absolute; inset:0; border-radius:26px; background:var(--soft); transform:rotate(-9deg); }
.illustration-dot { position:absolute; right:-2px; top:4px; width:11px; height:11px; border-radius:50%; background:var(--accent); opacity:.4; box-shadow:-74px 65px 0 -3px currentColor; }
.record-hero .app-illustration { margin-bottom:23px; }
/* Habit apps: a quiet green daily seal and a separate plum milestone card. */
.tool-quit-smoking { --accent:#226b54; --ink:#183e32; --canvas:#f5f8f2; --soft:#e2edde; --muted:#667d6f; }
.tool-quit-smoking .hero-quit-smoking { background:var(--paper); border-radius:120px 120px 28px 28px; padding-top:34px; }
.tool-quit-smoking .art-quit-smoking { width:72px; height:72px; }
.tool-quit-smoking .illustration-orbit { border-radius:50%; transform:none; background:radial-gradient(circle,transparent 62%,#c6dbbd 64%,transparent 67%); }
.tool-quit-smoking .hero-number { font:500 76px/1.12 Georgia,serif; }
.tool-quit-smoking .hero-number small { font:13px -apple-system,sans-serif; margin-left:12px; }
.tool-quit-smoking .habit-checkin { min-height:62px; border-radius:18px; }
.tool-quit-smoking .habit-secondary { padding:23px 16px; background:var(--soft); border-radius:18px; margin-top:16px; }
.tool-quit-smoking .record-dashboard > .record-add { color:var(--accent); background:transparent; margin-top:4px; }
.tool-quit-drinking { --accent:#755191; --ink:#3e2b4e; --canvas:#f7f3f9; --soft:#e9deef; --muted:#84738e; }
.tool-quit-drinking .hero-quit-drinking { background:#ede3f3; text-align:left; padding:32px 24px; }
.tool-quit-drinking .art-quit-drinking { position:absolute; right:22px; top:32px; width:64px; height:64px; }
.tool-quit-drinking .art-quit-drinking .illustration-orbit { border-radius:50%; background:#e0cce9; }
.tool-quit-drinking .hero-number { font-size:86px; line-height:1.15; margin-top:27px; }
.tool-quit-drinking .hero-number small { font-size:15px; }
.tool-quit-drinking .habit-checkin { border-radius:20px; min-height:62px; }
.tool-quit-drinking .record-add { background:transparent; color:var(--accent); }
.tool-quit-drinking .habit-secondary { padding-inline:4px; }
/* Running is an orange training card; strength is a dark equipment dashboard. */
.tool-running { --accent:#df4d25; --canvas:#f9f8f4; --soft:#f4e3d8; --ink:#282b28; --muted:#7f8179; }
.tool-running .hero-running { background:#ef592f; text-align:left; padding:28px 23px 30px; color:#fff; }
.tool-running .hero-running .hero-label,.tool-running .hero-running .hero-number { color:#fff; }
.tool-running .hero-number { font-size:70px; font-weight:750; font-style:italic; }
.tool-running .art-running { position:absolute; right:18px; top:22px; width:62px; height:62px; color:#fff; }
.tool-running .art-running .illustration-orbit { background:#ffffff20; border-radius:50%; }
.tool-running .illustration-dot { background:#fff; }
.tool-running .activity-bars { background:var(--paper); border-radius:0 0 24px 24px; margin-top:-14px; padding:34px 14px 22px; }
.activity-bar { min-height:0; }
.tool-running .record-dashboard > .record-add { background:var(--ink); }
.tool-running .app-metrics { gap:10px; }
.tool-running .app-metrics > div { background:#eeece5; border-radius:18px; }
.tool-running .app-metrics strong { color:var(--ink); }
.tool-workout { --accent:#d5ed75; --on-accent:#242a18; --canvas:#191d1c; --paper:#252b28; --soft:#30382f; --ink:#f0f1e9; --muted:#a4afa3; }
.tool-workout .hero-workout { text-align:left; padding:28px 24px; background:var(--paper); border-radius:8px 30px 8px 8px; }
.tool-workout .art-workout { width:48px; height:48px; margin:0 0 24px; }
.tool-workout .art-workout .illustration-orbit { border-radius:12px; transform:none; }
.tool-workout .art-workout .utility-icon { width:30px; height:30px; }
.tool-workout .hero-workout .hero-number { font-size:35px; color:var(--ink); letter-spacing:-.05em; }
.tool-workout .dashboard-menu { gap:8px; }
.tool-workout .dashboard-choice { min-height:72px; border-radius:8px; font-size:13px; }
.tool-workout .dashboard-choice .utility-icon { width:24px; height:24px; }
.tool-workout .app-metrics > div { background:var(--paper); border-radius:8px; }
.tool-workout .app-history-row { border-radius:8px; }
/* Weight uses the quiet face and tick marks of a digital scale. */
.tool-weight { --accent:#257e82; --ink:#254547; --canvas:#edf4f1; --soft:#dbeae3; --muted:#728880; }
.tool-weight .hero-weight { background:var(--paper); padding-top:53px; border-radius:32px; box-shadow:0 15px 40px #28574b08; }
.tool-weight .hero-weight::before { content:''; position:absolute; top:20px; left:18%; right:18%; height:14px; background:repeating-linear-gradient(90deg,#d5e0d9 0 1px,transparent 1px 12px); mask-image:linear-gradient(90deg,transparent,#000 25%,#000 75%,transparent); }
.tool-weight .hero-weight .app-illustration { display:none; }
.tool-weight .hero-number { font-size:70px; font-weight:350; }
.tool-weight .weight-trend { background:var(--paper); padding:15px; border-radius:22px; }
.tool-weight .record-dashboard > .record-add { border-radius:28px; }
/* Coffee, meals, and digestion each have their own rhythm and surfaces. */
.tool-drinks { --accent:#654734; --ink:#443326; --canvas:#f3eee3; --soft:#e7dcc9; --paper:#fffdf5; --muted:#8d7d68; }
.tool-drinks .hero-drinks { text-align:left; padding:26px 0 20px; border-radius:0; }
.tool-drinks .hero-drinks .app-illustration { position:absolute; right:9px; top:22px; color:#8b6446; }
.tool-drinks .hero-drinks .illustration-orbit { border-radius:50%; background:#e7d7c1; }
.tool-drinks .hero-number { font:500 48px/1.3 Georgia,serif; margin-top:20px; }
.tool-drinks .drinks-menu { gap:10px; }
.tool-drinks .drinks-menu .dashboard-choice { flex-direction:column; align-items:flex-start; min-height:138px; justify-content:space-between; border-radius:60px 60px 13px 13px; padding:25px 21px 19px; }
.tool-drinks .drinks-menu .utility-icon { width:40px; height:40px; stroke-width:1.2; }
.tool-drinks .dashboard-choice:nth-child(2) { background:#e2c9ac; }
.tool-drinks .dashboard-choice:nth-child(3) { background:#ead9c4; }
.tool-drinks .dashboard-choice:nth-child(4) { background:#dfe5ce; }
.tool-drinks .app-metrics > div { background:transparent; padding:12px 8px; }
.tool-food-diary { --accent:#af6237; --ink:#513b2c; --canvas:#faf4e8; --soft:#ede0c7; --muted:#968269; }
.tool-food-diary .tool-heading h1 { font-family:'Songti SC',serif; }
.tool-food-diary .meal-board { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.tool-food-diary .meal-tile { position:relative; min-height:172px; display:flex; flex-direction:column; align-items:flex-start; padding:23px 18px; gap:11px; border-radius:22px 22px 8px 22px; }
.tool-food-diary .meal-tile > .utility-icon:first-child { width:32px; height:32px; stroke-width:1.3; }
.tool-food-diary .meal-tile > span { margin-top:6px; font-size:13px; color:var(--accent); }
.tool-food-diary .meal-tile strong { font-size:12px; color:var(--muted); font-weight:400; }
.tool-food-diary .meal-tile > .utility-icon:last-child { position:absolute; top:18px; right:14px; width:15px; height:15px; opacity:.55; }
.tool-food-diary .meal-tile:nth-child(2) { background:#f0dfc3; }.tool-food-diary .meal-tile:nth-child(3) { background:#e9e6d5; }.tool-food-diary .meal-tile:nth-child(4) { background:#f2e4d9; }
.tool-bowel { --accent:#88704c; --ink:#534b3d; --canvas:#f5f3e9; --soft:#e5e5d4; --muted:#8b8a79; }
.tool-bowel .dashboard-prompt { margin:5px 0 25px; color:var(--ink); font-size:21px; font-weight:550; }
.tool-bowel .stool-choices { grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.tool-bowel .stool-choices button { border-radius:20px; min-height:105px; padding:18px 3px 13px; gap:13px; }
.tool-bowel .stool-choices button:last-child { grid-column:2; }
.tool-bowel .stool-choices span { font-size:10px; }.tool-bowel .stool-glyph { width:58px; height:32px; }
/* Rest, feelings, dates. No goals or predictions are invented by their artwork. */
.tool-sleep { --canvas:#171d32; --paper:#232d48; --soft:#2b3653; --accent:#bdcbf5; --ink:#edf0fd; --muted:#a5b2d0; --on-accent:#1d2948; }
.tool-sleep .hero-sleep { background:radial-gradient(ellipse at 50% 20%,#39477166,transparent 72%); border-radius:100px 100px 28px 28px; padding-top:18px; }
.tool-sleep .art-sleep { margin-bottom:28px; width:100px; height:100px; }
.tool-sleep .art-sleep .illustration-orbit { border-radius:50%; background:#45537a40; transform:none; box-shadow:0 0 0 15px #45537a15; }
.tool-sleep .art-sleep .utility-icon { width:54px; height:54px; fill:#b4c4ee; stroke-width:.7; }
.tool-sleep .illustration-dot { width:5px; height:5px; right:0; top:15px; opacity:1; box-shadow:-91px 52px 0 -1px currentColor,15px 67px 0 -1px currentColor; }
.tool-sleep .hero-number { color:var(--ink); font-size:64px; font-weight:300; }
.tool-sleep .sleep-times { gap:80px; margin-top:30px; }
.tool-sleep .sleep-times span { font-size:25px; font-weight:300; }
.tool-sleep .record-add { border-radius:28px; }
.tool-water { --accent:#217fac; --ink:#24546b; --canvas:#eff8fc; --soft:#dcedf5; --muted:#7797a6; }
.tool-water .hero-water { background:linear-gradient(170deg,#fff 25%,#d6eefb); border-radius:32px 32px 90px 32px; }
.tool-water .art-water { width:62px; height:62px; margin-bottom:22px; }
.tool-water .art-water .illustration-orbit { background:#cce8f7; border-radius:24px 24px 30px 30px; transform:rotate(8deg); }
.tool-water .hero-number { font-size:70px; font-weight:400; }
.tool-water .water-cups { margin-top:20px; }.tool-water .water-cups .utility-icon { width:28px; height:28px; }
.tool-water .quick-water { min-height:112px; border-radius:25px; box-shadow:0 4px 18px #3a94c108; }
.tool-water .quick-water:nth-child(2) { background:#dcedf7; }.tool-water .quick-water strong { font-weight:600; }
.tool-water .record-dashboard > .record-add { background:transparent; color:var(--accent); }
.tool-mood { --accent:#956721; --ink:#594426; --canvas:#fcf6e7; --soft:#f2e5bf; --muted:#a18e6d; }
.tool-mood .hero-mood { text-align:left; padding:20px 0 14px; }
.tool-mood .hero-mood .app-illustration { display:none; }
.tool-mood .hero-mood .hero-label { font-size:13px; }
.tool-mood .hero-mood .hero-number { font:500 32px/1.5 'Songti SC',serif; color:var(--ink); margin-top:18px; }
.tool-mood .mood-faces { gap:5px; margin:18px 0 25px; }
.tool-mood .mood-faces button { padding:14px 0; border-radius:34px; gap:17px; }
.tool-mood .mood-faces .utility-icon { width:45px; height:45px; border-radius:50%; background:#e0e4ef; color:#687694; stroke-width:1.2; }
.tool-mood .mood-faces button:nth-child(2) .utility-icon { background:#e4dfeb; color:#8c7c9b; }.tool-mood .mood-faces button:nth-child(3) .utility-icon { background:#e1e9d6; color:#83936c; }.tool-mood .mood-faces button:nth-child(4) .utility-icon { background:#f5df9c; color:#ab8233; }.tool-mood .mood-faces button:nth-child(5) .utility-icon { background:#f0c6ad; color:#ad7551; }
.tool-mood .mood-faces .selected { background:#f0e2bc; }
.tool-mood .record-dashboard > .record-add { border-radius:26px; color:#fffdf4; background:#655138; }
.tool-mood .app-history-row { border-radius:4px 22px 22px 22px; }
.tool-period { --accent:#b25074; --ink:#63374a; --canvas:#fcf5f5; --soft:#f2dce4; --muted:#a17d8d; }
.tool-period .hero-period { text-align:left; padding:14px 4px 26px; }
.tool-period .hero-period .app-illustration { position:absolute; right:8px; top:8px; width:55px; height:55px; }
.tool-period .hero-period .illustration-orbit { border-radius:50%; transform:none; background:#f5e4e9; }
.tool-period .hero-period .hero-number { font-size:30px; color:var(--ink); margin-top:21px; }
.tool-period .period-calendar { border-radius:28px; padding:22px 16px; box-shadow:0 8px 32px #a5526c05; }
.tool-period .calendar-days { gap:6px 4px; }.tool-period .calendar-days button { min-height:40px; }
.tool-period .calendar-days .period-day { background:#efd1df; color:#a74469; }
.tool-period .record-dashboard > .record-add { border-radius:28px; }
.tool-countdown { --accent:#396b72; --ink:#294b50; --canvas:#eef3f2; --soft:#dbe6e3; --muted:#7b9292; }
.tool-countdown .hero-countdown { background:var(--paper); padding:30px 22px 37px; border-radius:8px 8px 28px 28px; }
.tool-countdown .hero-countdown::before { content:''; position:absolute; top:0; left:0; right:0; height:9px; background:var(--accent); }
.tool-countdown .hero-countdown .app-illustration { width:55px; height:55px; margin:0 auto 23px; }
.tool-countdown .hero-number { font:500 90px/1.15 Georgia,serif; margin:22px 0 16px; }.tool-countdown .hero-number small { font:13px -apple-system,sans-serif; }
.tool-countdown .app-history-row { background:transparent; padding-inline:4px; }
/* Price boards, transport, conversion and address lookup. */
.tool-oil { --accent:#eac86b; --on-accent:#253b31; --ink:#f4f5e9; --canvas:#193c31; --paper:#25493c; --soft:#315546; --muted:#acbdad; }
.tool-oil .tool-heading > .utility-icon { background:#eac86b; color:#254331; border-radius:11px; }
.tool-oil .feed-headline > .utility-icon,.tool-gold .feed-headline > .utility-icon { display:none; }
.tool-oil .feed-headline > span { font-size:30px; font-weight:650; letter-spacing:-.05em; color:var(--ink); }
.tool-oil .feed-headline small { margin-left:0; width:100%; }
.tool-oil .reference-card { border-radius:14px; background:#f5f0d9; color:#294335; }
.tool-oil .reference-card .app-big-number { color:#294335; font-size:44px; font-weight:650; letter-spacing:-.06em; }.tool-oil .reference-card p { color:#6f7e6e; }
.tool-gold { --accent:#976b28; --ink:#58401f; --canvas:#f7f3e8; --paper:#fffcf3; --soft:#eae0c5; --muted:#9a8767; }
.tool-gold .tool-heading h1 { font-size:24px; letter-spacing:.08em; }
.tool-gold .feed-headline > span { font:27px 'Songti SC',serif; letter-spacing:.06em; }
.tool-gold .reference-card { position:relative; border-radius:24px 4px 24px 4px; padding:27px 22px; background:linear-gradient(125deg,#fffcf2,#ede0bb); }
.tool-gold .reference-card h2 { font:17px 'Songti SC',serif; }.tool-gold .app-big-number { font:500 40px/1.4 Georgia,serif; }
.tool-gold .art-gold .utility-icon { width:54px; height:54px; stroke-width:1.2; }
.tool-traffic { --accent:#355f89; --ink:#2c3c4e; --canvas:#f2f5f8; --paper:#fff; --soft:#dfe8f2; --muted:#7c8d9d; }
.tool-traffic .feed-dates .selected { background:#365f87; color:#fff; }
.tool-traffic .reference-card { border-radius:8px; padding:25px 20px; }
.tool-traffic .reference-card h2 { background:#355f89; color:#fff; display:inline-flex; padding:7px 16px; border-radius:6px; font-size:17px; letter-spacing:.07em; }
.tool-traffic .reference-card .app-big-number { font-size:22px; }
.tool-exchange { --accent:#1e615e; --ink:#253e3b; --canvas:#f0f4f0; --soft:#e1e9df; --muted:#789087; }
.tool-exchange .exchange-board { padding:25px 20px; border-radius:28px; box-shadow:0 14px 40px #23564705; }
.tool-exchange .currency-pair { gap:14px; }
.tool-exchange .exchange-board .choice-trigger { min-height:53px; background:#f1f4ed; }
.tool-exchange .exchange-board .app-field > input { text-align:left; font-size:49px; padding-left:0; font-weight:450; height:95px; }
.tool-exchange .app-swap { border-radius:50%; background:var(--soft); width:42px; height:42px; }
.tool-exchange .amount-shortcuts { justify-content:flex-start; }
.tool-exchange .exchange-placeholder { padding-top:35px; }
.tool-exchange .reference-card { border-radius:26px; background:var(--accent); color:#fff; }.tool-exchange .reference-card .app-big-number,.tool-exchange .reference-card .source-link { color:#fff; }.tool-exchange .reference-card p { color:#bed7cc; }
.tool-postcode { --accent:#934b3e; --ink:#59463d; --canvas:#f6f1e6; --paper:#fffdf6; --soft:#e9dfcf; --muted:#9a8576; }
.tool-postcode .tool-heading h1 { font-family:'Songti SC',serif; }
.tool-postcode .city-shortcuts { gap:10px 8px; margin:27px 0; }.tool-postcode .city-shortcuts button { border-radius:25px 25px 8px 8px; min-height:89px; font-family:'Songti SC',serif; }
.tool-postcode .reference-card { padding:25px; border-radius:4px; box-shadow:3px 4px 0 #e7dfcf; }.tool-postcode .reference-card h2 { font-size:22px; }
.tool-postcode .reference-card dd { font:22px Georgia,serif; color:var(--accent); letter-spacing:.02em; }
.tool-phone-prefix { --accent:#347f5c; --ink:#293a31; --canvas:#fbfcfa; --soft:#e8efe8; --muted:#8c9991; }
.tool-phone-prefix .phone-dialer > .app-field:first-child input { height:94px; font-size:31px; color:var(--ink); letter-spacing:.025em; }
.tool-phone-prefix .phone-keypad { margin-top:12px; gap:12px 23px; }
.tool-phone-prefix .phone-keypad button { background:#edf0eb; width:72px; height:72px; font-size:31px; font-weight:400; }
.tool-phone-prefix .phone-keypad button:nth-child(10),.tool-phone-prefix .phone-keypad button:last-child { background:transparent; color:var(--muted); }
.tool-phone-prefix .phone-keypad button:nth-child(10) { font-size:12px; }
.tool-phone-prefix .phone-dialer > .app-primary { border-radius:28px; max-width:220px; display:flex; margin:0 auto; }
/* Reference collections: picture-led food cards and a botanical pocket book. */
.food-symbol { display:block; font-family:'Apple Color Emoji','Segoe UI Emoji',sans-serif; font-size:41px; line-height:1.4; font-weight:400; }
.tool-calories { --accent:#9a582e; --ink:#513f2e; --canvas:#faf6ee; --soft:#f0e6d4; --muted:#9b8974; }
.tool-calories .food-catalogue { gap:12px; }.tool-calories .food-catalogue button { min-height:163px; border-radius:23px; padding:18px 16px; gap:7px; }
.tool-calories .food-catalogue button:nth-child(4n+2) { background:#eeeada; }.tool-calories .food-catalogue button:nth-child(4n+3) { background:#f5e7d8; }
.tool-calories .food-catalogue .food-symbol { font-size:41px; line-height:1.4; }
.tool-calories .food-catalogue button strong { margin-top:4px; font-size:14px; }.tool-calories .food-catalogue button span:last-child { font-size:10px; }
.tool-calories .reference-card { border-radius:26px; padding:26px 22px; }.tool-calories .app-big-number { font-size:39px; font-weight:500; }
.tool-flowers { --accent:#9d546b; --ink:#543f44; --canvas:#f7f1ec; --paper:#fffcf6; --soft:#eee2dc; --muted:#a08a8a; --petal:#e2adba; --leaf:#d6dfcd; --pollen:#e8c586; }
.tool-flowers .tool-heading h1 { font:600 24px 'Songti SC',serif; letter-spacing:.06em; }
.tool-flowers .scene-tabs { gap:6px; }.tool-flowers .scene-tabs button { padding:8px 14px; background:transparent; color:var(--muted); }
.tool-flowers .scene-tabs button[aria-pressed=true] { background:#e9d7d9; color:var(--accent); }
.tool-flowers .flower-gallery { gap:14px 12px; }
.tool-flowers .flower-gallery .reference-card { position:relative; padding:12px 16px 22px; background:var(--paper); border-radius:75px 75px 10px 10px; min-height:260px; }
.botanical { display:block; width:106px; max-width:100%; height:125px; margin:0 auto 10px; color:#9e777c; stroke-linecap:round; stroke-linejoin:round; }
.tool-flowers [data-flower='向日葵'],.tool-flowers [data-flower='雏菊'] { --petal:#f2d37e; --pollen:#a98c63; }
.tool-flowers [data-flower='百合'],.tool-flowers [data-flower='满天星'] { --petal:#eee9d8; --pollen:#d7bc89; }
.tool-flowers [data-flower='绣球'],.tool-flowers [data-flower='洋桔梗'] { --petal:#c7b8d7; --pollen:#e7d9e9; }
.tool-flowers .flower-gallery .reference-card h2 { font-size:22px; margin:0 0 10px; font-weight:500; }.tool-flowers .flower-gallery .reference-card strong { font-size:12px; color:var(--accent); font-weight:500; }.tool-flowers .flower-gallery .reference-card p { font-size:10px; margin:9px 0 0; }
.tool-seasonal-fruit { --accent:#5b763a; --ink:#44512f; --canvas:#f4f4e8; --paper:#fffef7; --soft:#e1e7ce; --muted:#919775; }
.tool-seasonal-fruit .tool-heading h1 { font:600 23px 'Songti SC',serif; }
.tool-seasonal-fruit .app-query-output { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:23px; }
.tool-seasonal-fruit .reference-card { display:flex; flex-direction:column; margin:0; border-radius:25px 25px 8px 25px; padding:19px 16px; }
.tool-seasonal-fruit .reference-card .food-symbol { order:-1; margin-bottom:14px; font-size:46px; }.tool-seasonal-fruit .reference-card h2 { margin:0 0 5px; font-size:23px; }.tool-seasonal-fruit .reference-card p { font-size:11px; margin:9px 0 0; }.tool-seasonal-fruit .reference-card small { margin-top:12px; font-size:10px; }
.tool-seasonal-fruit .reference-card:nth-child(3n+2) { background:#e8ebd7; }.tool-seasonal-fruit .app-query-output > .app-empty { grid-column:1/-1; }
/* Personal interests: celestial symbols, dream journal, TV timeline, stadium board. */
.tool-horoscope { --canvas:#1a192b; --paper:#28263b; --soft:#35304b; --accent:#d6c3f9; --ink:#f4ecfd; --muted:#afa1c1; --on-accent:#302240; }
.tool-horoscope main { background:radial-gradient(ellipse at 90% 0,#49345f60,transparent 48%); }
.tool-horoscope .zodiac-grid { gap:8px; }.tool-horoscope .zodiac-grid button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; min-height:88px; border-radius:25px; font-size:10px; background:#ffffff06; }
.zodiac-symbol { font:26px/1 'Apple Symbols','Noto Sans Symbols 2',serif; }.tool-horoscope .zodiac-grid button[aria-pressed=true] { background:#cdb6ec; color:#332340; }
.tool-horoscope .reference-card { position:relative; background:radial-gradient(ellipse at top right,#473456,#282338 78%); padding:30px 23px; border-radius:60px 8px 28px 28px; }
.tool-horoscope .reference-card h2 { font-size:13px; color:#bdaeCA; font-weight:400; margin-bottom:23px; }.tool-horoscope .reference-card .app-big-number { font:500 42px/1.5 'Songti SC',serif; letter-spacing:.12em; }.tool-horoscope .reference-card h3 { font-size:12px; color:#d2bddf; }
.tool-dream { --accent:#d4c4ef; --on-accent:#332d4b; --canvas:#242337; --paper:#302e46; --soft:#3a354f; --ink:#f1e9f7; --muted:#aca3bf; }
.tool-dream .dream-prompts { gap:10px; margin-bottom:30px; }.tool-dream .dream-prompts button { background:transparent; min-height:96px; border-radius:50px 50px 18px 18px; }.tool-dream .dream-prompts button:nth-child(odd) { background:#302b42; }.tool-dream .dream-prompts .utility-icon { width:33px; height:33px; stroke-width:1; }
.tool-dream .app-field textarea { background:#332f48; min-height:124px; padding:20px; border-radius:23px; font-size:14px; }
.tool-dream .reference-card { border-radius:4px 26px 26px 26px; padding:28px 24px; }.tool-dream .reference-card h2 { font:22px 'Songti SC',serif; }
.tool-drama { --accent:#b6a1ef; --on-accent:#292038; --ink:#f1eaf8; --canvas:#211e2b; --paper:#302a3d; --soft:#3e344d; --muted:#ad9dbd; }
.tool-drama .feed-dates { gap:8px; }.tool-drama .feed-dates button { background:transparent; border-radius:18px; }.tool-drama .feed-dates button.selected { background:#c0acef; color:#31223d; }
.tool-drama .reference-card { position:relative; border-radius:10px; padding:24px 22px 24px 32px; }
.tool-drama .reference-card::before { content:''; position:absolute; left:13px; top:27px; width:5px; height:5px; background:var(--accent); border-radius:50%; box-shadow:0 13px 0 -1px #6e5a85,0 25px 0 -1px #6e5a85; }
.tool-drama .reference-card h2 { font-size:23px; }.tool-drama .reference-card > strong { display:block; font-size:20px; color:var(--accent); }
.tool-sports { --accent:#c2ee6d; --on-accent:#27361c; --ink:#f4f6eb; --canvas:#172d25; --paper:#233d31; --soft:#304c39; --muted:#a4b9a4; }
.tool-sports .tool-heading { text-transform:uppercase; }.tool-sports .feed-dates button { border-radius:5px; background:transparent; }.tool-sports .feed-dates button.selected { background:#c2ee6d; color:#27361c; font-weight:650; }
.tool-sports .reference-card { border-radius:6px; padding:26px 20px; background:linear-gradient(125deg,#284735,#20392e); }.tool-sports .reference-card h2 { font-weight:700; font-size:24px; line-height:1.6; }.tool-sports .reference-card > strong { display:block; font-size:14px; color:var(--accent); font-variant-numeric:tabular-nums; }
.live-filters { margin-top:10px; margin-bottom:12px; }.live-filters > summary { min-height:44px; }.live-filters[open] > summary .utility-icon:last-child { transform:rotate(180deg); }
.extended-app .feed-empty { padding:34px 22px 27px; border-radius:28px; background:var(--paper); }
.extended-app .feed-empty .app-illustration { width:96px; height:96px; margin-bottom:30px; }
.extended-app .feed-empty .app-illustration .utility-icon { width:46px; height:46px; }
.extended-app .feed-empty h2 { font-size:18px; color:var(--ink); margin:0 0 12px; }
.extended-app .feed-empty p { font-size:12px; line-height:1.9; margin-bottom:24px; }
.extended-app .feed-empty .app-secondary { background:var(--soft); border-radius:22px; padding-inline:24px; font-size:12px; }
.tool-oil .feed-empty { border-radius:16px; background:#244b3c; }.tool-oil .illustration-orbit { border-radius:16px; transform:rotate(-12deg); background:#325b45; }
.tool-gold .feed-empty { background:linear-gradient(125deg,#fffaf0,#f0e5ca); border-radius:55px 8px 55px 8px; }.tool-gold .illustration-orbit { border-radius:50%; background:#e6d6ad; transform:none; }
.tool-traffic .feed-empty { border-radius:10px; }.tool-traffic .illustration-orbit { border-radius:20px; transform:none; }
.tool-drama .feed-empty { border-radius:10px 40px 10px 10px; }.tool-drama .illustration-orbit { border-radius:17px; transform:rotate(-8deg); }
.tool-sports .feed-empty { border-radius:8px; background:radial-gradient(ellipse at 50% 10%,#3d5930,#233e30 80%); }.tool-sports .illustration-orbit { border-radius:50%; transform:none; background:#4d653b; }
/* Learning card and a real elapsed-time ring. */
.tool-phonics { --accent:#3564bd; --ink:#273d63; --canvas:#f2f5fb; --paper:#fff; --soft:#e0e8f7; --muted:#8b9bb8; }
.tool-phonics .phonics-progress { margin:20px 0 10px; font-size:11px; }
.phonics-progress-bar { display:block; width:100%; height:5px; margin-bottom:25px; border:0; border-radius:5px; overflow:hidden; background:var(--soft); color:var(--accent); accent-color:var(--accent); }
.phonics-progress-bar::-webkit-progress-bar { background:var(--soft); }.phonics-progress-bar::-webkit-progress-value { background:var(--accent); border-radius:5px; }.phonics-progress-bar::-moz-progress-bar { background:var(--accent); }
.tool-phonics .phoneme-detail { position:relative; padding:29px 24px; border-radius:25px; background:#355ca4; color:#fff; }
.tool-phonics .phoneme-display { color:#fff; font-size:70px; margin-bottom:8px; }.tool-phonics .phoneme-detail > strong { font:22px Georgia,serif; color:#dbe5ff; }.tool-phonics .phoneme-detail > p { color:#c9d8f4; margin:18px 0 23px; font-size:12px; }
.tool-phonics .phoneme-detail .app-primary { background:#fff; color:#355ca4; }.tool-phonics .phoneme-detail .app-secondary { background:#5076ba; color:#edf2ff; }
.tool-phonics .phoneme-grid { margin-top:24px; gap:9px; }.tool-phonics .phoneme-grid button { min-height:85px; padding-top:16px; border-radius:17px; }.tool-phonics .phoneme-grid button[aria-pressed=true] { background:var(--soft); color:var(--accent); }
.tool-focus { --accent:#b67145; --ink:#604a37; --canvas:#f8f4e9; --paper:#fffcf4; --soft:#ece2cc; --muted:#a39177; }
.tool-focus .focus-face { position:relative; width:min(100% - 14px,290px); margin:16px auto 35px; background:conic-gradient(var(--accent) var(--elapsed,0deg),#e6dcc4 0); padding:20px; isolation:isolate; }
.tool-focus .focus-face::before { content:''; position:absolute; inset:5px; z-index:-1; border-radius:50%; background:var(--canvas); box-shadow:inset 0 0 0 12px #f3eddf; }
.tool-focus .focus-clock { font:400 65px/1.3 Georgia,serif; letter-spacing:-.055em; color:var(--ink); }
.tool-focus .focus-status { font-size:11px; letter-spacing:.05em; }.tool-focus .app-form-grid { grid-template-columns:90px minmax(0,1fr); gap:14px; }.tool-focus .app-form-actions { justify-content:center; gap:8px; }.tool-focus .app-form-actions > .app-primary { flex:1; }.tool-focus .app-form-actions > .app-secondary { min-height:50px; font-size:12px; padding-inline:12px; }
/* The original three keep their familiar identities, with a quieter finish. */
.tool-kinship .tool-heading { color:#dedee2; }.tool-kinship .tool-heading h1 { font-size:18px; font-weight:450; }
.tool-kinship .calculator-screen { min-height:190px; padding-bottom:28px; }.tool-kinship .relation-keys button { background:#2b2b2d; font-size:21px; }.tool-kinship .relation-keys .calculator-clear,.tool-kinship .relation-keys .calculator-back { background:#a9a9ad; }.tool-kinship .relation-keys .calculator-equals { margin-top:5px; min-height:64px; background:#ff9e16; }
.tool-calendar .tool-heading h1 { font-size:27px; letter-spacing:.12em; }.tool-calendar .calendar-date-face > span { background:#a0322e; }.tool-calendar .calendar-date-face > strong { font-size:144px; }.tool-calendar .vintage-sheet { box-shadow:0 3px 0 #d8cdb9,0 7px 0 #f5efde,0 13px 24px #65523a12; }.tool-calendar .term-item { background:#f8f2e4; padding:15px 10px; }
.tool-pronunciation main { background:#fffdf5; box-shadow:-7px 0 0 #a1292d,4px 0 0 #d9cdb5,10px 8px 25px #5a382608; }.tool-pronunciation .tool-heading { padding-bottom:26px; }.tool-pronunciation .word-presets button { background:#f1e8d8; }.tool-pronunciation .character-title strong { width:66px; text-align:center; padding:4px; background:linear-gradient(45deg,transparent 49.5%,#dfd1bd 50%,transparent 50.5%),linear-gradient(-45deg,transparent 49.5%,#dfd1bd 50%,transparent 50.5%); }.tool-pronunciation .character-readings { gap:10px 16px; }.tool-pronunciation .utility-empty { padding:50px 0 38px; }
/* A compact launcher gives every app a recognizable entry without extra copy. */
.site-home .tool-grid { gap:10px 14px; }.site-home .tool-card { border:0; border-radius:18px; min-height:88px; padding:16px 12px; gap:12px; background:#f7f8f7; }.site-home .tool-copy { flex:1; }.site-home .tool-card h3 { font-size:14px; }.site-home .tool-arrow { font-size:13px; opacity:.7; }
.directory-app-icon { display:grid; place-items:center; flex-shrink:0; width:39px; height:39px; border-radius:12px; background:#e5eee7; color:#44755d; }.directory-app-icon .utility-icon { width:21px; height:21px; stroke-width:1.7; }
.directory-icon-running,.directory-icon-food-diary,.directory-icon-calories { color:#ad5e33; background:#f3e5d6; }.directory-icon-gold,.directory-icon-mood,.directory-icon-focus { color:#a47e3a; background:#f3ead1; }.directory-icon-flowers,.directory-icon-period { color:#a55774; background:#f3e1e7; }.directory-icon-water,.directory-icon-weight,.directory-icon-phonics,.directory-icon-phone-prefix { color:#3c7c9c; background:#deedf6; }.directory-icon-horoscope,.directory-icon-dream,.directory-icon-drama,.directory-icon-quit-drinking,.directory-icon-sleep { color:#7c629c; background:#e9e1f2; }.directory-icon-calendar,.directory-icon-pronunciation,.directory-icon-postcode { color:#9a4e44; background:#f0e3d9; }.directory-icon-kinship { color:#ffae35; background:#252526; }.directory-icon-drinks { color:#7d5a3b; background:#eee0ca; }.directory-icon-workout,.directory-icon-sports { color:#d5ed75; background:#2d4133; }
@media(max-width:680px) { .site-home .tool-grid { gap:10px; }.site-home .tool-card { padding:15px 10px; gap:9px; min-height:83px; }.site-home .directory-app-icon { width:33px; height:33px; border-radius:10px; }.site-home .directory-app-icon .utility-icon { width:18px; height:18px; }.site-home .tool-card h3 { font-size:13px; }.site-home .tool-arrow { display:none; } }
@media(max-width:360px) {
 .extended-app .tool-heading { padding-bottom:23px; }.extended-app .tool-heading h1 { font-size:21px; }.extended-app .tool-heading > .utility-icon { width:35px; height:35px; padding:8px; border-radius:12px; }
 .extended-app .record-composer { padding:24px 17px 18px; }.extended-app .record-hero { padding-inline:19px; }.hero-number { font-size:55px; }.tool-quit-drinking .hero-number { font-size:75px; }.tool-quit-drinking .art-quit-drinking { width:52px; height:52px; right:18px; }.tool-running .hero-number { font-size:59px; }.tool-running .art-running { width:45px; height:45px; }.tool-workout .hero-workout .hero-number { font-size:30px; }
 .tool-drinks .hero-number { font-size:40px; }.tool-drinks .hero-drinks .app-illustration { width:56px; height:56px; right:4px; }.tool-drinks .drinks-menu .dashboard-choice { min-height:125px; padding-inline:17px; }
 .tool-mood .hero-mood .hero-number { font-size:27px; }.tool-mood .mood-faces .utility-icon { width:39px; height:39px; }.tool-mood .mood-faces span { font-size:9px; }.tool-period .hero-period .hero-number { font-size:26px; }.tool-period .hero-period .app-illustration { width:45px; height:45px; right:1px; }
 .tool-food-diary .meal-tile { padding:21px 14px; min-height:159px; }.tool-phone-prefix .phone-keypad button { width:66px; height:66px; }.tool-phone-prefix .phone-keypad { gap:12px 18px; }
 .tool-flowers .flower-gallery .reference-card { padding-inline:12px; }.tool-flowers .scene-tabs { gap:2px; }.tool-flowers .scene-tabs button { padding-inline:12px; }.tool-flowers .flower-gallery .reference-card h2 { font-size:20px; }.tool-seasonal-fruit .reference-card { padding-inline:13px; }.tool-seasonal-fruit .reference-card h2 { font-size:21px; }
 .tool-phonics .phoneme-detail { padding:24px 18px; }.tool-phonics .phoneme-detail .app-form-actions { gap:7px; }.tool-phonics .phoneme-detail .app-primary,.tool-phonics .phoneme-detail .app-secondary { padding-inline:12px; font-size:12px; }
 .site-home .tool-card { gap:8px; padding-inline:9px; }.site-home .tool-card h3 { font-size:12px; }.site-home .directory-app-icon { width:30px; height:30px; }
}
@media(prefers-reduced-motion:reduce) { .extended-app button { transition:none; } }
/* Shared finish: spacing, touch targets and optical alignment; app identities stay above. */
.standalone {
 --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:20px; --space-6:24px; --space-8:32px;
 --page-gutter:20px; --tap:44px; --control:52px;
}
.extended-app { line-height:1.5; --text-secondary:color-mix(in srgb,var(--ink) 74%,var(--canvas)); }
.standalone main { padding-inline:var(--page-gutter); }
.extended-app main { padding-top:max(var(--space-6),env(safe-area-inset-top)); }
.extended-app .tool-heading { padding-bottom:var(--space-6); gap:var(--space-3); min-height:64px; }
.extended-app .tool-heading h1 { line-height:1.35; }
.extended-app .tool-heading > .utility-icon { width:40px; height:40px; padding:9px; border-radius:13px; }
.extended-app .app-field { gap:var(--space-2); margin-bottom:var(--space-4); }
.extended-app .app-field > span { color:var(--text-secondary); font-size:12px; line-height:18px; }
.extended-app .app-field > input { min-height:var(--control); padding-inline:var(--space-4); }
.extended-app .app-field > textarea { padding:var(--space-4); }
.extended-app .app-primary { min-height:var(--control); padding:14px var(--space-5); font-size:14px; line-height:20px; }
.extended-app .app-secondary { min-height:48px; padding:12px var(--space-4); line-height:20px; }
.extended-app .app-primary > .utility-icon,.extended-app .app-secondary > .utility-icon { width:20px; height:20px; stroke-width:1.75; }
.standalone .icon-button,.extended-app .icon-button,.month-heading .icon-button { width:var(--tap); height:var(--tap); min-height:var(--tap); border-radius:12px; }
.extended-app .icon-button .utility-icon,.standalone .picker-heading .utility-icon { width:20px; height:20px; stroke-width:1.75; }
.extended-app .icon-button:active:not(:disabled) { background:var(--soft); }
.extended-app .segmented-choice { padding:var(--space-1); gap:var(--space-1); }
.extended-app .segmented-choice button,.standalone .picker-option { min-height:var(--tap); }
.extended-app .choice-trigger { min-height:var(--control); height:auto; padding:12px; gap:var(--space-2); }
.choice-trigger > span { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.extended-app .choice-trigger .utility-icon:first-child { width:20px; height:20px; stroke-width:1.75; }
.extended-app .choice-trigger .utility-icon:last-child { width:16px; height:16px; color:var(--text-secondary); }
.extended-app .app-note,.extended-app .app-source,.extended-app .source-reference { font-size:11px; line-height:1.8; color:var(--text-secondary); }
.extended-app .app-backup { font-size:12px; }
.extended-app .app-backup > summary { gap:var(--space-2); min-height:48px; }
.extended-app .app-backup > summary .utility-icon { width:18px; height:18px; }
.extended-app .app-backup > summary .utility-icon:last-child { width:16px; height:16px; }
.extended-app .app-row-actions { gap:0; flex-direction:row; margin:-5px -8px 0 0; }
.extended-app .app-history-row { align-items:flex-start; gap:var(--space-2); padding:var(--space-4); }
.extended-app .app-history-row time { font-size:12px; line-height:18px; color:var(--text-secondary); }
.extended-app .app-history-row h3 { font-size:14px; line-height:1.65; margin:var(--space-2) 0 0; }
.extended-app .app-history-row p { font-size:12px; color:var(--text-secondary); }
.extended-app .record-dashboard { margin-bottom:0; }
.extended-app .app-metrics { gap:var(--space-3); margin:var(--space-6) 0 0; }
.extended-app .app-metrics > div { gap:var(--space-2); padding:var(--space-4); }
.extended-app .app-metrics span { font-size:12px; line-height:18px; color:var(--text-secondary); }
.extended-app .app-metrics strong { line-height:1.3; }
.extended-app .app-history-heading { margin:var(--space-8) 0 var(--space-4); min-height:24px; gap:var(--space-3); }
.extended-app .app-history-heading h2 { margin:0; font-size:16px; line-height:24px; }
.extended-app .app-history-heading .text-button { min-height:var(--tap); font-size:12px; }
.extended-app .app-empty { padding:var(--space-6) var(--space-3); margin:0; }
.extended-app .app-empty p { margin:var(--space-3) 0 0; font-size:12px; color:var(--text-secondary); }
.extended-app .record-week { padding:var(--space-3) 0 0; gap:var(--space-1); }
.extended-app .record-week button { min-height:72px; gap:var(--space-2); padding:var(--space-3) 0; }
.extended-app .record-week button > span { font-size:12px; line-height:18px; }
.extended-app .hero-footnote { font-size:12px; color:var(--text-secondary); }
.tool-running .record-hero .hero-label { color:#fff; }
.extended-app .quick-amounts button,.extended-app .reference-tags button { min-height:var(--tap); min-width:var(--tap); font-size:12px; padding:10px 12px; }
.extended-app .app-note-editor summary,.extended-app .portion-options > summary { min-height:var(--tap); gap:var(--space-2); }
.extended-app .app-note-editor summary .utility-icon,.extended-app .portion-options summary .utility-icon { width:16px; height:16px; }
.extended-app .browse-search > .app-field:first-child { margin-bottom:0; }
.extended-app .browse-search > .app-field:first-child input { height:var(--control); padding-right:60px; }
.extended-app .browse-search > button[type=submit] { top:30px; right:4px; width:var(--tap); min-height:var(--tap); padding:0; font-size:0; }
.extended-app .browse-search > button[type=submit] .utility-icon { width:20px; height:20px; }
.extended-app .portion-options { margin:var(--space-2) 0 0; }
.extended-app .reference-tags { margin:var(--space-3) 0 var(--space-4); gap:var(--space-2); }
.extended-app .scene-tabs { gap:var(--space-1); margin:var(--space-4) 0 var(--space-5); flex-wrap:nowrap; }
.extended-app .scene-tabs button { min-width:var(--tap); min-height:var(--tap); padding:10px 12px; font-size:12px; flex:1; }
.extended-app .scene-tabs + [aria-live] { margin:0; }
.extended-app .reference-card h2 { line-height:1.5; }
.extended-app .reference-card p { color:var(--text-secondary); }
.extended-app .notice.error { background:color-mix(in srgb,#be544b 8%,var(--canvas)); padding:var(--space-3) var(--space-4); border-radius:14px; }
.extended-app .notice.success { background:var(--soft); padding:var(--space-3) var(--space-4); border-radius:14px; }
.extended-app .feed-headline { margin:0 0 var(--space-2); gap:var(--space-2); }
.extended-app .feed-headline > small { font-size:11px; }
.extended-app .feed-dates { padding:0; gap:var(--space-2); }
.extended-app .feed-dates button { min-height:var(--control); }
.extended-app .live-filters { margin:var(--space-2) 0 var(--space-3); }
.extended-app .live-filters summary { gap:var(--space-2); }
.extended-app .live-filters .app-query-form { padding:var(--space-4); }
.extended-app .feed-empty { padding:var(--space-8) var(--space-5) var(--space-6); }
.extended-app .feed-empty .app-illustration { margin-bottom:var(--space-6); }
.extended-app .feed-empty p { color:var(--text-secondary); margin:var(--space-3) 0 var(--space-6); }
/* Currency selectors and swap form one aligned control, even on a 320px screen. */
.tool-exchange .exchange-board { padding:var(--space-5); }
.tool-exchange .exchange-board .currency-pair { grid-template-columns:minmax(0,1fr) var(--tap) minmax(0,1fr); gap:var(--space-2); align-items:end; margin-bottom:var(--space-6); }
.tool-exchange .currency-pair .app-field { margin:0; }
.tool-exchange .exchange-board .currency-pair .choice-trigger { min-height:76px; padding:12px 10px; gap:var(--space-1); }
.tool-exchange .currency-pair .app-swap { width:var(--tap); height:var(--tap); margin:0 0 var(--space-4); display:grid; place-items:center; border-radius:50%; }
.tool-exchange .currency-pair .app-swap .utility-icon { width:20px; height:20px; }
.currency-label { display:flex; flex-direction:column; align-items:flex-start; gap:var(--space-1); white-space:normal; }
.currency-label strong { font-size:20px; line-height:24px; font-weight:600; letter-spacing:-.02em; }
.currency-label small { font-size:12px; line-height:18px; }
.tool-exchange .exchange-board > .app-field { margin-bottom:var(--space-2); }
.tool-exchange .exchange-board .app-field > input { height:80px; min-height:80px; padding:8px 0; line-height:1.2; font-size:48px; }
.tool-exchange .amount-shortcuts { margin:0 0 var(--space-6); gap:var(--space-2); }
.tool-exchange .exchange-placeholder { padding:var(--space-8) 0 var(--space-6); gap:var(--space-2); }
.tool-exchange .exchange-placeholder small { font-size:12px; }
/* Food icons use the same local SVG grid as the rest of the UI. */
.extended-app .food-symbol { display:grid; place-items:center; width:60px; height:60px; margin:0 0 var(--space-2); border-radius:20px; background:#ecdfcb; color:#a4763e; }
.extended-app .food-symbol .utility-icon { width:32px; height:32px; stroke-width:1.6; }
.extended-app .food-icon-fruit,.extended-app .food-icon-cherry { background:#f0ded7; color:#a16a58; }
.extended-app .food-icon-citrus,.extended-app .food-icon-banana { background:#f2e6c4; color:#b08c39; }
.extended-app .food-icon-grape { background:#e8dfed; color:#8b729e; }
.extended-app .food-icon-leaf,.extended-app .food-icon-salad,.extended-app .food-icon-carrot { background:#dfe7d1; color:#7d8e58; }
.extended-app .food-icon-milk,.extended-app .food-icon-water,.extended-app .food-icon-fish { background:#deeaed; color:#6b8e9b; }
.tool-calories .food-catalogue { gap:var(--space-3); margin:var(--space-5) 0; }
.tool-calories .food-catalogue button { padding:var(--space-4); gap:var(--space-2); min-height:178px; }
.tool-calories .food-catalogue button strong { font-size:14px; margin:0; }
.tool-calories .food-catalogue button span:last-child { font-size:12px; line-height:18px; color:var(--text-secondary); }
.tool-seasonal-fruit .reference-card .food-symbol { order:-1; margin:0 0 var(--space-4); }
.tool-seasonal-fruit .reference-card p { font-size:12px; line-height:1.75; }
.tool-seasonal-fruit .reference-card small { font-size:11px; line-height:1.8; }
.tool-flowers .flower-gallery .reference-card { padding-bottom:var(--space-5); }
.tool-flowers .flower-gallery .reference-card p { font-size:12px; line-height:1.75; }
.tool-flowers .flower-gallery .reference-card strong { font-size:13px; line-height:1.7; }
.tool-flowers .botanical { margin-bottom:var(--space-3); }
.tool-horoscope .zodiac-grid { padding:0; gap:var(--space-2); }
.tool-horoscope .zodiac-grid button { font-size:12px; min-height:88px; padding:var(--space-3) 4px; gap:var(--space-3); }
.tool-horoscope .reference-card h2 { font-size:12px; }
.tool-mood .mood-faces { gap:var(--space-1); margin:var(--space-5) 0 var(--space-6); }
.tool-mood .mood-faces button { gap:var(--space-3); min-width:0; }
.tool-mood .mood-faces span { font-size:11px; line-height:18px; color:var(--text-secondary); }
.tool-bowel .stool-choices span { font-size:12px; line-height:18px; }
.tool-period .period-calendar { padding:var(--space-5) var(--space-3); }
.tool-period .month-heading { margin-bottom:var(--space-3); }
.tool-period .calendar-days button { min-height:42px; }
.tool-period .hero-period .hero-number { max-width:calc(100% - 52px); }
.tool-drinks .drinks-menu { gap:var(--space-3); }
.tool-drinks .drinks-menu .utility-icon { width:36px; height:36px; stroke-width:1.5; }
.tool-drinks .drinks-menu .dashboard-choice { padding:var(--space-6) var(--space-5) var(--space-5); min-height:132px; }
.tool-food-diary .meal-board { gap:var(--space-3); }
.tool-food-diary .meal-tile { gap:var(--space-2); padding:var(--space-5) var(--space-4); }
.tool-phonics .phoneme-detail .app-form-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-2); }
.tool-phonics .phoneme-detail .app-form-actions button { width:100%; padding-inline:8px; font-size:13px; }
.tool-phonics .phoneme-detail > p { font-size:13px; }
.tool-phonics .phoneme-grid button span { font-size:12px; }
.tool-focus .app-form-actions { gap:var(--space-2); }
.tool-focus .app-form-actions > .app-secondary { min-height:var(--control); padding-inline:var(--space-3); }
.extended-app .picker-dialog { padding:var(--space-4); max-height:min(448px,72dvh); }
.extended-app .picker-heading { margin-bottom:var(--space-3); gap:var(--space-2); }
.extended-app .picker-heading h2 { margin:0; font-size:18px; line-height:26px; }
.extended-app .record-composer { padding:var(--space-6) var(--space-5) var(--space-5); scroll-padding-bottom:var(--space-5); }
.extended-app .composer-heading { margin-bottom:var(--space-5); }
.extended-app .composer-heading h2 { font-size:20px; line-height:28px; }
.extended-app .record-composer .app-form-actions { position:sticky; bottom:calc(-1 * var(--space-5)); margin:0; padding:var(--space-3) 0 var(--space-5); background:var(--canvas); }
.extended-app .record-composer .app-form-actions .app-primary { width:auto; flex:1; }
.extended-app .record-composer .app-record-form .app-primary { min-height:var(--control); }
.tool-weight .weight-input input { min-height:80px; height:80px; }
@media(max-width:360px) {
 .standalone { --page-gutter:16px; }
 .tool-pronunciation main { padding-inline:16px; }
 .extended-app .app-row-actions { margin-right:-6px; }
 .extended-app .scene-tabs { gap:0; }.extended-app .scene-tabs button { padding-inline:8px; }
 .tool-exchange .exchange-board { padding:var(--space-4); }
 .tool-exchange .exchange-board .currency-pair { gap:var(--space-1); }
 .tool-exchange .currency-label strong { font-size:18px; }.tool-exchange .currency-label small { font-size:11px; }
 .tool-exchange .currency-pair .choice-trigger .utility-icon:last-child { width:12px; height:12px; }
 .tool-calories .food-catalogue button span:last-child { font-size:11px; }
 .tool-period .hero-period .hero-number { font-size:24px; }
}
@media(hover:hover) {
 .extended-app .icon-button:hover:not(:disabled) { background:var(--soft); color:var(--accent); }
 .extended-app .app-primary:hover:not(:disabled) { filter:brightness(.96); }
}

/* Content starts directly at the safe inset; tool names live in the footer. */
.standalone main { padding-top:max(20px,env(safe-area-inset-top)); }
.tool-pronunciation main { margin-top:max(16px,env(safe-area-inset-top)); padding-top:24px; }
.tool-kinship .calculator-toolbar { margin-bottom:8px; }
.tool-kinship .calculator-screen { padding-top:8px; }
.tool-calendar .utility-tabs { margin-top:0; }
.extended-app .app-panel > .live-filters:first-child { margin-top:0; }
.extended-app .app-panel > .dream-prompts:first-child { margin-top:0; }
.tool-bowel .dashboard-prompt { margin-top:0; }
.site-home .hero { padding:8px 0 24px; }
.site-home .search-box { margin-top:0; }
.site-home .empty-catalog { padding-top:32px; }
/* Generated, local-only textures remain behind the independently styled content. */
.tool-calendar .vintage-sheet { background-image:linear-gradient(#fffbed70,#fffbed70),url('./background-paper.webp'); background-size:cover; background-position:center bottom; }
.tool-pronunciation main { background-image:linear-gradient(#fffdf5d9,#fffdf5d9),url('./background-paper.webp'); background-size:auto 620px; background-position:center top; background-repeat:repeat-y; }
.tool-sleep .hero-sleep { padding-top:104px; background-image:linear-gradient(180deg,#171d3210,#171d3280),url('./background-night.webp'); background-size:cover; background-position:right top; border-radius:32px; }
.tool-sleep .hero-sleep .app-illustration { display:none; }
.tool-sleep .hero-sleep .hero-number { text-shadow:0 2px 18px #10182d50; }
.tool-horoscope .reference-card { background-image:linear-gradient(110deg,#282338ee,#282338bb),url('./background-night.webp'); background-size:cover; background-position:right top; }
.tool-dream .app-field textarea { background-image:linear-gradient(#332f48d9,#332f48d9),url('./background-night.webp'); background-size:cover; background-position:right top; }
.tool-flowers { background-image:linear-gradient(#f7f1ec66,#f7f1ecbb),url('./background-botanical.webp'); background-size:100% 440px,auto 440px; background-position:center top,right top; background-repeat:no-repeat; }
.tool-period .period-calendar { background-image:linear-gradient(#ffffffdd,#ffffffee),url('./background-botanical.webp'); background-size:cover; background-position:center top; }
.tool-seasonal-fruit { background-image:linear-gradient(#f4f4e870,#f4f4e8cc),url('./background-sage.webp'); background-size:100% 560px,auto 560px; background-position:center top,right top; background-repeat:no-repeat; }
.tool-focus .focus-face::before { background-image:linear-gradient(#f8f4e9aa,#f8f4e9aa),url('./background-sage.webp'); background-size:cover; background-position:center; }
.tool-countdown .hero-countdown { background-image:linear-gradient(#ffffffc9,#ffffffd9),url('./background-sage.webp'); background-size:cover; background-position:center; }

/* Transparent tracks, fine rounded thumbs, and no contrasting viewport gutter. */
:root { background-color:var(--scrollbar-canvas,#fff); }
html,* { scrollbar-width:thin; scrollbar-color:#8b94a370 transparent; }
::-webkit-scrollbar { width:4px; height:4px; background:transparent; }
::-webkit-scrollbar-track,::-webkit-scrollbar-corner { background:transparent; box-shadow:none; }
::-webkit-scrollbar-thumb { background:#8b94a370; border:0; border-radius:999px; }
::-webkit-scrollbar-thumb:hover { background:#8b94a3b3; }
::-webkit-scrollbar-button { display:none; width:0; height:0; }
@supports selector(::-webkit-scrollbar) {
 html,* { scrollbar-width:auto; scrollbar-color:auto; }
}
/* Recompose the content canvas after removing the old app title row. */
.extended-app .app-history.is-empty { margin-top:20px; }
.extended-app .app-history-heading:not([hidden]) + .app-history.is-empty { margin-top:0; }
.extended-app .app-history.is-empty .app-empty { display:flex; align-items:center; justify-content:center; gap:12px; padding:16px 8px; text-align:left; }
.extended-app .app-history.is-empty .app-empty > .utility-icon { width:24px; height:24px; }
.extended-app .app-history.is-empty .app-empty p { margin:0; }
.extended-app .app-history.is-empty + .app-backup { margin-top:12px; }
.tool-water .hero-water { padding:28px 24px 24px; text-align:left; border-radius:28px 28px 60px 28px; }
.tool-water .hero-water .app-illustration { display:none; }
.tool-water .hero-water .hero-number { margin:16px 0 8px; font-size:clamp(54px,16vw,68px); line-height:1.2; }
.tool-water .water-cups { justify-content:flex-start; margin:20px 0 0; max-width:none; gap:10px; }
.tool-water .water-actions { margin-top:12px; }
.tool-water .quick-water { min-height:100px; }
.tool-workout .hero-workout { padding:24px; }
.tool-workout .hero-workout .app-illustration { position:absolute; top:20px; right:20px; width:44px; height:44px; margin:0; }
.tool-workout .hero-workout .hero-label { max-width:calc(100% - 56px); }
.tool-workout .hero-workout .hero-number { margin-top:26px; font-size:30px; }
.tool-quit-smoking .hero-quit-smoking { padding-top:28px; padding-bottom:24px; }
.tool-quit-smoking .art-quit-smoking { width:52px; height:52px; margin-bottom:18px; }
.tool-quit-smoking .art-quit-smoking .utility-icon { width:30px; height:30px; }
.tool-quit-drinking .hero-quit-drinking { padding:28px 24px; }
.tool-quit-drinking .hero-number { margin-top:22px; }
.tool-weight .hero-weight { padding-top:48px; padding-bottom:24px; }
.tool-weight .hero-weight .hero-number { font-size:64px; line-height:1.2; }
.tool-drinks .hero-drinks { padding-top:12px; padding-bottom:16px; }
.tool-drinks .hero-drinks .app-illustration { top:8px; }
.tool-sleep .hero-sleep { padding-top:84px; padding-bottom:24px; }
.tool-sleep .hero-sleep .hero-number { font-size:60px; line-height:1.2; }
.tool-sleep .sleep-times { margin-top:24px; }
.tool-period .hero-period { display:grid; grid-template-columns:minmax(0,1fr) 52px; align-items:center; gap:0 16px; padding:0 4px 20px; border-radius:0; }
.tool-period .hero-period .app-illustration { position:relative; inset:auto; grid-column:2; grid-row:1/4; width:48px; height:48px; margin:0; }
.tool-period .hero-period .hero-number { max-width:none; margin:8px 0; font-size:26px; line-height:1.3; }
.tool-period .hero-period .hero-footnote { margin:0; }
.tool-countdown .hero-countdown { padding:28px 22px; }
.tool-countdown .hero-countdown .app-illustration { position:absolute; top:26px; right:22px; width:44px; height:44px; margin:0; }
.tool-countdown .hero-countdown .hero-label { max-width:calc(100% - 60px); text-align:left; font-size:14px; line-height:1.7; }
.tool-countdown .hero-countdown .hero-number { margin:30px 0 10px; font-size:clamp(64px,21vw,88px); }
.tool-countdown .hero-countdown .hero-footnote { margin-top:12px; }
.tool-focus .focus-face { width:min(100% - 14px,260px); margin:8px auto 24px; }
.tool-focus .focus-clock { font-size:62px; }
.tool-phonics .phonics-progress { margin-top:16px; margin-bottom:8px; }
.tool-phonics .phonics-progress-bar { margin-bottom:20px; }
.tool-phonics .phoneme-detail { padding:24px; }
.tool-phonics .phoneme-display { font-size:60px; }
.tool-phonics .phoneme-detail > p { margin:16px 0 20px; }
.tool-phonics .phoneme-grid { margin-top:20px; }
.tool-calendar .calendar-date-face > strong { font-size:clamp(100px,31vw,128px); padding-top:12px; }
.tool-calendar .vintage-sheet { padding-bottom:24px; }
.tool-pronunciation .utility-panel:has(.utility-empty) { display:flex; flex-direction:column; min-height:calc(100dvh - 190px); }
.tool-pronunciation .utility-output:has(.utility-empty) { display:grid; place-items:center; flex:1; margin:16px 0; }
.tool-pronunciation .utility-empty { padding:24px 0; }
/* Seven generated shape illustrations are one local sprite, shared by all views. */
.bowel-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.tool-bowel .dashboard-prompt { margin:0; text-align:left; font-size:20px; font-weight:550; }
.bowel-today { flex-shrink:0; font-size:12px; color:var(--text-secondary); font-variant-numeric:tabular-nums; }
.tool-bowel .stool-choices { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:0 0 16px; }
.tool-bowel .stool-choices button { position:relative; justify-content:center; gap:8px; padding:18px 8px 14px; min-height:136px; border-radius:22px; background:#eeeadf; }
.tool-bowel .stool-choices button:nth-child(even) { background:#fdfbf5; }
.tool-bowel .stool-choices button:last-child { grid-column:1/-1; flex-direction:row; gap:24px; min-height:96px; padding:12px 24px; }
.tool-bowel .stool-choices .stool-index { position:absolute; top:10px; left:12px; color:#a99b82; font:10px/1.2 -apple-system,sans-serif; }
.tool-bowel .stool-choices span:not(.stool-art) { font-size:12px; color:var(--ink); line-height:18px; }
.stool-art { display:block; flex-shrink:0; width:100%; max-width:112px; aspect-ratio:4/3; background-image:url('./bowel-forms.webp'); background-size:400% 200%; background-repeat:no-repeat; }
.stool-art-1 { background-position:0% 0%; }.stool-art-2 { background-position:33.333333% 0%; }.stool-art-3 { background-position:66.666667% 0%; }.stool-art-4 { background-position:100% 0%; }
.stool-art-5 { background-position:0% 100%; }.stool-art-6 { background-position:33.333333% 100%; }.stool-art-7 { background-position:66.666667% 100%; }
.tool-bowel .composer-heading h2:focus { outline:none; }
.stool-entry-preview { display:grid; place-items:center; margin:-8px 0 16px; }
.stool-entry-preview .stool-art { width:160px; max-width:none; }
.bowel-history-copy { display:flex; align-items:center; gap:12px; }
.bowel-history-copy > .stool-art { width:56px; max-width:none; }
.bowel-history-copy > div { min-width:0; flex:1; }
.tool-bowel .app-row-actions { flex-direction:column; }
@media(max-width:360px) {
 .tool-workout .hero-workout { padding:22px 20px; }
 .tool-workout .hero-workout .hero-number { font-size:27px; }
 .tool-period .hero-period .hero-number { font-size:24px; }
 .tool-bowel .dashboard-prompt { font-size:18px; }.bowel-heading { gap:8px; margin-bottom:16px; }
 .tool-bowel .stool-choices { gap:8px; }.tool-bowel .stool-choices button { min-height:124px; padding-inline:5px; }
 .tool-bowel .stool-choices button:last-child { min-height:88px; }
 .tool-bowel .stool-choices span:not(.stool-art) { font-size:11px; }
 .tool-phonics .phoneme-detail { padding:22px 18px; }
}
@media(max-height:680px) {
 .tool-kinship .calculator-screen { min-height:140px; }
 .stool-entry-preview .stool-art { width:120px; }
}
