body{background:var(--bg);color:var(--text)}
body:is(.wiki-page,.food-page,.finance-page,.finance-review-page,.automations-page){min-height:100dvh;background:var(--bg);color:var(--text);font-variant-numeric:tabular-nums;text-underline-offset:4px;scrollbar-color:var(--line) var(--bg)}
body:is(.wiki-page,.food-page,.finance-page,.finance-review-page,.automations-page) button{border:0;box-shadow:none;min-height:44px}
body:is(.wiki-page,.food-page,.finance-page,.finance-review-page,.automations-page) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){font-size:16px;border:0;outline:none;box-shadow:none}
body:is(.wiki-page,.food-page,.finance-page,.finance-review-page,.automations-page)>:is(main,.food-shell,.wiki-shell,.records-shell,.review-shell){width:100%;max-width:1040px;margin-inline:auto;padding-inline:20px}
@media(max-width:370px){body:is(.wiki-page,.food-page,.finance-page,.finance-review-page,.automations-page)>:is(main,.food-shell,.wiki-shell,.records-shell,.review-shell){padding-inline:16px}}
@media(min-width:650px){body:is(.wiki-page,.food-page,.finance-page,.finance-review-page,.automations-page)>:is(main,.food-shell,.wiki-shell,.records-shell,.review-shell){padding-inline:32px}}
.auth-page{padding:max(28px,env(safe-area-inset-top)) 24px max(28px,env(safe-area-inset-bottom));background:var(--soft)}
.auth-card{max-width:400px;text-align:left;padding:24px 0}
.auth-card .mascot{width:88px;height:88px;object-fit:contain;margin-bottom:24px;border-radius:22px}
.auth-card h1{font-size:34px;letter-spacing:-.035em;font-weight:750;margin:0 0 12px}
.auth-card #subtitle{font-size:16px;line-height:1.7;color:var(--muted);margin:0 0 36px}
.auth-card h2{font-size:23px;letter-spacing:-.025em;line-height:1.5;margin:24px 0 20px}
.auth-card .primary,.auth-card .secondary{border-radius:12px;min-height:56px;padding:14px 16px;text-align:center;font-size:15px;line-height:24px}
.auth-card .primary{background:var(--accent);color:var(--accent-ink)}
.auth-card .secondary{background:var(--surface);color:var(--text);border:0}
.auth-card .hint{font-size:13px;line-height:1.8;color:var(--muted)}
.auth-card .text-button{font-size:13px;color:var(--accent);text-align:left;min-height:44px;padding:14px 0}
.auth-card input:not([type=radio]):not([type=checkbox]){background:var(--surface);color:var(--text);border-color:var(--line);border-radius:10px;font-size:16px;min-height:50px}
.auth-card legend{line-height:1.7;font-size:13px;color:var(--muted)}
.auth-card fieldset{gap:12px;margin:24px 0}
.auth-card .avatar{text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px 12px;position:relative}
.auth-card .avatar:has(input:checked){border:2px solid var(--accent);padding:17px 11px;background:var(--pill)}
.auth-card .avatar input{accent-color:var(--accent)}
.auth-card code{background:var(--surface);color:var(--text);border-radius:12px;font-size:18px;line-height:1.6}
.auth-card .saved{display:flex;gap:10px;align-items:center;min-height:44px}
.auth-card .saved input{width:20px;height:20px;accent-color:var(--accent)}
.auth-card #status{color:var(--danger)}
.auth-card #recovery-result p{color:var(--muted)}
.auth-card :focus-visible{outline-color:var(--accent)}
.connection-page{padding:max(20px,env(safe-area-inset-top)) 24px max(32px,env(safe-area-inset-bottom))}
.connection-page main{max-width:620px}
.connection-page header{padding:0 0 24px;border-bottom:1px solid var(--line);margin-bottom:28px}
.connection-page header a{font-size:14px;color:var(--accent)}
.connection-page h1{font-size:28px;letter-spacing:-.03em;margin:24px 0 16px}
.connection-page h2{font-size:19px;margin:28px 0 12px}
.connection-page p{font-size:15px;color:var(--muted);line-height:1.85}
.connection-page button,.connection-page .verify{border:0;background:var(--accent);color:var(--accent-ink);border-radius:12px;min-height:50px}
.connection-page .cancel{background:var(--soft);color:var(--text)}
.connection-page .code{background:var(--soft);border-radius:12px;font-variant-numeric:tabular-nums}
.connection-page [role=alert]{color:var(--danger)}
.food-shell{max-width:780px;padding-inline:22px}
.food-page .intro{margin:14px 0 12px;display:block}
.food-page h1{font-size:29px;letter-spacing:-.035em;margin:0 0 10px}
.food-page .intro>div>p:last-child{font-size:14px;line-height:1.7}
.food-page .summary{display:flex;gap:20px;background:none;border-radius:0;padding:0 0 12px;margin-bottom:0;border-bottom:1px solid var(--line)}
.food-page .summary p{flex-direction:row;align-items:baseline;gap:6px;text-align:left;border:0}
.food-page .summary strong{font-size:18px;font-variant-numeric:tabular-nums;font-weight:650}
.food-page .summary span{font-size:12px}
.food-page button{min-height:44px;border-radius:10px;background:var(--surface);color:var(--text);border-color:var(--line)}
.food-page .primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.food-page .add-food{min-height:44px;margin:12px 0;padding:10px 12px;font-size:15px}
.food-page input,.food-page select,.food-page textarea{background:var(--surface);color:var(--text);border-color:var(--line);border-radius:10px;font-size:16px;min-height:48px}
.food-page .filters{gap:8px}
.food-page .filter-row{gap:8px}.food-page .filter-row select{font-size:14px}
.food-page .date-filters{gap:6px;padding:0;flex-wrap:wrap}
.food-page .date-filters button{background:transparent;border:0;border-radius:8px;font-size:13px;padding:10px 12px}
.food-page .date-filters [aria-pressed=true]{background:var(--soft);color:var(--accent);font-weight:650}
#food-list{display:flex;flex-direction:column;gap:0;margin-top:8px}
.food-page .food-card{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:10px 0;background:transparent}
.food-card h2{font-size:18px;letter-spacing:-.02em}
.food-card img{width:64px;height:64px;border-radius:12px}
.food-meta,.food-notes{font-size:14px;color:var(--muted);line-height:1.75}
.date-row{font-size:13px;gap:8px;margin-top:6px}
.due-badge{border-radius:6px;background:var(--soft);color:var(--accent);padding:5px 8px;font-variant-numeric:tabular-nums}
.due-badge.urgent{background:var(--warning-bg);color:var(--warning-text)}
.due-badge.late{background:var(--warning-bg);color:var(--danger)}
.source-badge{font-size:12px}.card-actions{justify-content:flex-start;margin-top:6px;gap:8px}
.food-page .card-actions button{font-size:13px;padding:9px 12px;min-height:44px}
.food-page .card-actions button:last-child{background:var(--soft)}
.food-page .empty-state{text-align:left;padding:32px 0;font-size:15px;line-height:1.9}
.food-page .food-note{font-size:12px;line-height:1.8;text-align:left;padding-top:20px;border-top:1px solid var(--line)}
.food-page .text-button{font-size:13px;background:transparent;color:var(--accent)}
.food-page dialog{background:var(--surface);color:var(--text);border-radius:16px;box-shadow:var(--elevation)}
.food-page .editor-header{background:var(--surface);padding:10px 20px}
.food-page .editor-header h2{font-size:21px}
.food-page #food-form{gap:10px;padding:14px 20px 16px}
.food-page #food-form>label,.food-page #food-form .form-row>label{font-size:14px;gap:6px}
.food-page .photo-box{border:0;border-radius:12px;background:var(--soft);padding:12px}
.food-page .photo-box>p{font-size:14px;line-height:1.7;padding:0;margin:0 0 8px}
.food-page .photo-actions button{background:var(--surface);font-size:13px}
.food-page .secondary{background:var(--soft);color:var(--accent);font-size:14px;border:0}
.field-hint{font-size:12px;line-height:1.8}
.analysis-status{font-size:13px;color:var(--accent)}
.food-page #food-status,.food-page #save-status{color:var(--danger)}
.food-page .danger{color:var(--danger);background:transparent}
.food-page :focus-visible{outline-color:var(--accent)}
.wiki-shell,.records-shell{max-width:820px;padding:0 22px max(28px,env(safe-area-inset-bottom))}
.wiki-page a{color:var(--accent)}
.wiki-header .brand{font-size:24px;letter-spacing:-.03em;margin-top:18px;color:var(--text)}
.wiki-header>p{font-size:14px;letter-spacing:0;color:var(--muted);margin:8px 0 24px}
.tabs,.records-nav{display:flex;flex-wrap:nowrap;gap:0;border-bottom:1px solid var(--line);margin:0}
.tabs a,.records-nav a{display:inline-flex;align-items:center;justify-content:center;flex:1;min-height:50px;padding:12px 6px;color:var(--muted);background:none;border-radius:0;text-align:center;text-decoration:none;font-size:14px;white-space:nowrap}
.tabs a[aria-current],.records-nav a[aria-current]{background:none;color:var(--accent);border-bottom:2px solid var(--accent);font-weight:650}
.wiki-page .intro{padding:28px 0 20px}
.wiki-page .intro h1,.wiki-page article h1,.records-shell h1{font-size:27px;letter-spacing:-.03em;line-height:1.5;margin:0 0 12px}
.wiki-page .intro>p:last-child,.records-hint{font-size:14px;line-height:1.8;color:var(--muted)}
.wiki-page .search input,.wiki-page .search button{min-height:48px;border-radius:10px;font-size:16px}
.wiki-page .search input{background:var(--surface);color:var(--text);border-color:var(--line)}
.wiki-page .search button{background:var(--accent);color:var(--accent-ink);font-size:14px}
.wiki-page .chips{gap:6px;padding-top:16px}
.wiki-page .chips a{background:var(--soft);color:var(--muted);border-radius:8px;font-size:13px}
.wiki-page .chips a[aria-current]{background:var(--accent);color:var(--accent-ink)}
.result-count{font-size:13px;color:var(--muted);margin:24px 0 4px}
.document-grid{display:flex;flex-direction:column;gap:0}
.document-card{display:grid;grid-template-columns:1fr auto;gap:8px 12px;padding:22px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text)!important}
.document-card h2{grid-column:1/-1;font-size:18px;margin:0;line-height:1.6;font-weight:600}
.category-label{font-size:12px;color:var(--muted);line-height:1.7}
.document-card .card-meta{font-size:12px;color:var(--muted);margin:0}@media (hover:hover) and (pointer:fine){
.document-card:hover{background:var(--soft);border-color:var(--line)}}
.notice{background:var(--soft);color:var(--muted);font-size:13px;border-radius:12px;line-height:1.9}
.toc{background:var(--surface);border-color:var(--line);border-radius:12px}.toc summary{min-height:44px;align-content:center}
.article-body{font-size:17px;line-height:1.85;max-width:68ch;letter-spacing:0}
.article-body h2{font-size:22px;border-color:var(--line)}
.article-body th,.article-body td{border-color:var(--line)}.article-body th{background:var(--soft)}
.article-body blockquote{border-left:1px solid var(--line);color:var(--muted)}
.article-body pre{background:var(--soft)}
.metadata{color:var(--muted)}.badge{border-radius:6px;background:var(--warning-bg);color:var(--warning-text)}
.records-header{margin:0 0 16px;align-items:center}.records-header a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);font-size:14px}
.records-shell main>h1{margin-top:28px}
.entry-editor,.entry-card,.check-item{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:24px 0;margin:0}
.entry-editor summary{min-height:44px;align-content:center;color:var(--accent);font-size:16px}
.entry-editor[open]{padding-bottom:28px}
.records-shell input:not([type=checkbox]),.records-shell textarea,.records-shell select{background:var(--surface);color:var(--text);border-color:var(--line);border-radius:10px;min-height:48px;font-size:16px}
.records-shell button{background:var(--accent);color:var(--accent-ink);border-radius:10px;min-height:44px;font-size:14px}
.records-shell button.quiet{background:var(--soft);color:var(--accent);font-size:13px}
.records-shell button.danger{color:var(--danger)}
.records-eyebrow,.entry-tags,#entry-form label,.memo-label{color:var(--muted);font-size:13px;letter-spacing:0}
.entry-card h2{font-size:21px;letter-spacing:-.02em}
.check-progress{background:var(--soft);color:var(--accent);border-radius:10px;font-size:14px;font-variant-numeric:tabular-nums}
.check-label input{accent-color:var(--accent);width:22px;height:22px}
.check-label:has(input:checked) span{color:var(--muted)}
.pregnancy-tracker{background:var(--soft);border:0;border-radius:12px;padding:20px;margin-block:24px}
.pregnancy-tracker h2{font-size:18px}.tracker-note{color:var(--muted);opacity:1}
.item-status{color:var(--accent)}#record-status{color:var(--danger)}
.wiki-page footer{font-size:12px;color:var(--muted);line-height:1.8}
.wiki-page :focus-visible{outline-color:var(--accent)}
@media(max-width:370px){.food-shell,.wiki-shell,.records-shell{padding-inline:18px}.food-page .summary{gap:12px}.food-page .summary p{gap:4px}.food-page .summary span{font-size:11px}}
@media(min-width:650px){.food-shell,.wiki-shell,.records-shell{padding-inline:32px}.food-page .intro{margin-top:24px}}
.auth-card input:not([type=radio]):not([type=checkbox]),.auth-card .secondary,.auth-card .avatar,.food-page input,.food-page select,.food-page textarea,.wiki-page .search input,.wiki-page select,.records-shell input:not([type=checkbox]),.records-shell textarea{border-color:var(--control-line)}
.food-page .form-actions{position:sticky;bottom:0;padding:10px 0 max(10px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);z-index:1}
.food-page svg,.wiki-page svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.food-page .close-button{display:grid;place-items:center}
.oguri-site-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:max(10px,env(safe-area-inset-top)) 0 10px;margin:0 0 8px;border:0}
.oguri-site-header>a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0;text-decoration:none;font-size:14px;font-weight:650;color:var(--accent);white-space:nowrap}
.oguri-site-header>span{display:none}
.finance-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0 20px}
.finance-site-title{font-size:28px;line-height:38px;font-weight:700;letter-spacing:-.025em;margin:0}
.finance-scope,.finance-source{font-size:12px;font-weight:500;color:var(--muted);line-height:20px}
.finance-scope{white-space:nowrap}
.finance-source{display:block;margin-bottom:12px}
.finance-navigation{display:flex;gap:8px;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0;margin:0 0 24px}
.finance-navigation :is(button,a){position:relative;display:inline-flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:48px;padding:10px 2px;background:transparent;border:0;border-radius:0;text-decoration:none;font-size:13px;font-weight:500;line-height:24px;color:var(--muted);white-space:nowrap}
.finance-navigation :is(button,a)[aria-current]{background:transparent;color:var(--text);font-weight:650}
.finance-navigation :is(button,a)[aria-current]::after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:currentColor}
.library-heading{padding:30px 0 22px}
.library-heading h1{font-size:27px;line-height:1.45;letter-spacing:-.03em;margin:0 0 10px}
.library-heading p{font-size:14px;line-height:1.8;color:var(--muted);margin:0}
.library-search{padding:20px;background:var(--soft);border-radius:14px}
.library-search label{color:var(--text);font-size:14px;margin-bottom:10px}
.library-search .topic-filter{display:flex;align-items:center;gap:12px;margin:14px 0 0;font-size:13px}
.topic-filter select{min-width:0;flex:1;min-height:44px;padding:8px;border:1px solid var(--control-line);border-radius:8px;background:var(--surface);color:var(--text);font-size:16px}
.library-results{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:32px 0 6px}
.library-results h2{font-size:18px;line-height:1.6;letter-spacing:-.02em;margin:0;overflow-wrap:anywhere}
.library-results>a,.library-results>span{font-size:12px;flex-shrink:0;color:var(--muted)}
.topic-list{display:grid;grid-template-columns:1fr 1fr;column-gap:22px}
.topic-list>a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:80px;padding:16px 0;border-bottom:1px solid var(--line);text-decoration:none;color:var(--text)}
.topic-list strong{font-size:15px;line-height:1.65;font-weight:600;word-break:keep-all;overflow-wrap:anywhere}
.topic-list>a>span{display:flex;align-items:center;font-size:11px;white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}
.topic-list svg{width:14px;height:14px}@media (hover:hover) and (pointer:fine){
.topic-list>a:hover{color:var(--accent)}}
.wiki-page .result-count{margin:4px 0 8px}
.article-back{gap:6px;margin:20px 0}
.reading-page{padding-bottom:30px}
.reading-page header{padding-bottom:6px}
.reading-page .toc{border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;padding:12px 0;background:transparent;margin-bottom:30px}
.reading-page .toc nav{gap:0;padding:0 0 8px}
.reading-page .toc nav a{padding:10px 0;line-height:1.7}
.family-privacy{font-size:12px;color:var(--muted);margin:-6px 0 22px}
#record-status:empty{display:none}
.entry-editor{border:0;padding:0;margin:0 0 16px}
.entry-editor>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;background:var(--accent);color:var(--accent-ink);padding:14px 18px;border-radius:12px;min-height:52px;font-size:15px}
.entry-editor>summary::-webkit-details-marker,.tracker-disclosure>summary::-webkit-details-marker,.check-group>summary::-webkit-details-marker{display:none}
.entry-editor[open]>summary svg{transform:rotate(45deg)}
.tracker-disclosure{border-bottom:1px solid var(--line)}
.tracker-disclosure>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;min-height:54px;font-size:14px;cursor:pointer}
.tracker-disclosure[open]>summary svg,.check-group[open]>summary>svg{transform:rotate(180deg)}
.tracker-disclosure .pregnancy-tracker{margin:0 0 20px;padding:18px}
.entry-card{padding:24px 0 28px;margin:0}
.entry-card h2{margin:8px 0 16px;line-height:1.55}
.entry-date{font-size:12px;color:var(--muted);line-height:1.8;margin:0}
.entry-date time{color:var(--accent);font-weight:650;font-variant-numeric:tabular-nums}
.entry-card .entry-photos img{width:100%;height:auto;max-height:360px;object-fit:contain;border-radius:12px}
.entry-card .entry-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.entry-card .entry-photos:has(a:only-child){grid-template-columns:1fr}
.check-overview{display:flex;flex-direction:column;gap:6px;padding:18px 0 24px;border-bottom:1px solid var(--line)}
.check-overview .check-progress{background:none;border-radius:0;padding:0;margin:0;font-size:20px;font-weight:650;color:var(--text)}
.check-overview>p:last-child{font-size:12px;color:var(--muted);margin:0}
.check-group{border-bottom:1px solid var(--line)}
.check-group>summary{display:flex;align-items:center;gap:12px;list-style:none;min-height:84px;padding:20px 0;cursor:pointer}
.check-group>summary>span:first-child{flex:1;min-width:0}
.check-group strong{display:block;font-size:17px;line-height:1.6;font-weight:650}
.check-group small{display:block;font-size:11px;color:var(--muted);line-height:1.7;margin-top:5px}
.group-progress{font-size:12px;color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap}
.check-item{padding:18px 0}
.check-item:first-child{padding-top:0}
.check-label{font-size:15px;cursor:pointer}
.check-label input{width:24px;height:24px;margin:2px 0;outline-offset:3px}
.check-memo{margin-left:36px}
.check-memo>summary{min-height:44px;align-content:center;font-size:12px;color:var(--accent);cursor:pointer}
.check-memo .memo-label{margin-top:4px}
.check-memo button{margin-top:10px}
.check-item .item-status{display:block;margin:0 0 0 36px;font-size:12px}
.check-source{display:inline-flex;align-items:center;min-height:48px;font-size:12px;margin-bottom:8px}
@media(max-width:350px){.topic-list{column-gap:14px}.topic-list strong{font-size:14px}.library-search{padding:16px}.library-results{align-items:flex-start}.library-results>a{max-width:70px;white-space:normal}}
