/* v13 visual unification. This is a style layer over v12; accounting/auth/storage logic is unchanged. */
:root{
  --dark:#164b3e;--green:#147b58;--ink:#182b25;--muted:#70837a;
  --border:#e4ebe6;--soft:#edf6f0;
}
html{color-scheme:light;scroll-behavior:smooth}
body{
  background-color:var(--wall-color);
  background-image:linear-gradient(150deg,rgba(247,249,247,.91),rgba(247,249,247,.91)),var(--wall-pattern);
  background-size:auto,var(--wall-pattern-size);
  color:var(--ink);
}
.appShell{max-width:920px;min-height:100%;padding-bottom:90px}
.brand{height:66px;background:linear-gradient(125deg,#103e33,#175342);padding:0 18px;gap:11px;border-bottom:1px solid #2c644f}
.brandMark{width:35px;height:35px;flex:none;background:#ffffff1c;border:1px solid #ffffff24;border-radius:11px;font-size:20px}
.brandName{min-width:0}.brand b{font-size:17px;letter-spacing:.015em}.brand em{font-size:12px;color:#c9ead8;margin-left:1px}
.brand small{margin-top:4px;color:#c8e3d5;letter-spacing:.04em;font-weight:500;font-size:10px}
.status{flex:none;color:#d2e8da;background:#ffffff18;padding:6px 8px;border-radius:8px;max-width:125px;font-size:10px}
.topControls{display:grid;grid-template-columns:minmax(0,1fr) 35px 117px 35px;gap:6px;align-items:center;padding:17px 17px 10px}
.topControls>div{width:auto;margin:0;min-width:0}
#appArea .topControls h1{font-size:22px;line-height:1.26;margin:1px 0 0;font-weight:800;letter-spacing:-.04em;color:var(--ink)}
#appArea .topControls .eyebrow{font-size:9px;color:#668779;letter-spacing:.13em}
.topControls input{width:100%;height:38px;border-radius:10px;border:1px solid #d8e6dc;color:#284b3a;font-size:13px;font-weight:750;padding:7px 3px;background:#fff;max-width:100%}
.monthNext{min-width:35px;height:38px;border-color:#d8e6dc;border-radius:10px;font-size:22px;color:#39634d}
#appArea[data-view="wallpaper"] .topControls,#appArea[data-view="more"] .topControls,#appArea[data-view="units"] .topControls,#appArea[data-view="investments"] .topControls,#appArea[data-view="history"] .topControls,#appArea[data-view="sharing"] .topControls,#appArea[data-view="income"] .topControls,#appArea[data-view="accounts"] .topControls,#appArea[data-view="settle"] .topControls,#appArea[data-view="import"] .topControls{grid-template-columns:minmax(0,1fr)}
#appArea[data-view="wallpaper"] .topControls input,#appArea[data-view="wallpaper"] .topControls .monthNext,#appArea[data-view="more"] .topControls input,#appArea[data-view="more"] .topControls .monthNext,#appArea[data-view="units"] .topControls input,#appArea[data-view="units"] .topControls .monthNext,#appArea[data-view="investments"] .topControls input,#appArea[data-view="investments"] .topControls .monthNext,#appArea[data-view="history"] .topControls input,#appArea[data-view="history"] .topControls .monthNext,#appArea[data-view="sharing"] .topControls input,#appArea[data-view="sharing"] .topControls .monthNext,#appArea[data-view="income"] .topControls input,#appArea[data-view="income"] .topControls .monthNext,#appArea[data-view="accounts"] .topControls input,#appArea[data-view="accounts"] .topControls .monthNext,#appArea[data-view="settle"] .topControls input,#appArea[data-view="settle"] .topControls .monthNext,#appArea[data-view="import"] .topControls input,#appArea[data-view="import"] .topControls .monthNext{display:none}
#appArea main{padding:7px 15px 34px;display:grid;gap:14px}
.card{background:#fff;border:1px solid #e6ece8;border-radius:18px;padding:17px 16px;box-shadow:0 3px 14px rgba(17,63,43,.035)}
.card h2{font-size:16px;color:#172f24;margin-bottom:12px;font-weight:800}
.card h3{margin-top:15px;color:#31473c}
.cardSub{font-size:11px;color:#82958a;margin-top:-5px;margin-bottom:4px}
.muted{font-size:12px;color:#72857b;line-height:1.65}
button{transition:background-color .12s ease,border-color .12s ease}
.primary{min-height:45px;background:#117a51;border-color:#117a51;border-radius:11px;font-weight:800;color:#fff;font-size:13px}
.secondary{min-height:44px;border:1px solid #d6e4da;border-radius:11px;color:#285b44;background:#fff;font-size:13px;font-weight:750}
.primary:active,.secondary:active{transform:translateY(1px)}
/* Home: one focal figure, two secondary balances, then charts */
.heroBalance{position:relative;overflow:hidden;background:#fff;border:1px solid #e1eae3;border-radius:19px;padding:20px 19px 17px;box-shadow:0 4px 15px #1f4c2b08}
.heroBalance::before{content:'';position:absolute;right:-44px;top:-56px;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle,#dff1e4 0%,#edf7ef44 55%,transparent 71%);pointer-events:none}
.heroHeading{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#5d7969;font-size:12px;font-weight:750}
.heroMonth{padding:5px 9px;border:1px solid #d8ebe0;border-radius:9px;color:#48725b;background:#f6faf7;font-size:11px}
.heroAmount{position:relative;font-size:clamp(32px,8vw,43px);font-weight:850;color:#173f2f;letter-spacing:-.075em;margin:13px 0 12px;line-height:1.16;overflow-wrap:anywhere}
.heroSub{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:5px;color:#799086;font-size:11px}
.heroSub b{font-weight:850;color:#1b7c55}.heroSub .trendUp{color:#bd5d37}
.overviewKpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.overviewKpis .kpi{background:#fff;border:1px solid #e2eae5;padding:15px 13px;border-radius:16px;box-shadow:0 2px 8px #12352108;min-width:0}
.overviewKpis .kpi.balance{background:#f2f9f3;border-color:#dfebdf}
.overviewKpis .kpi.due{background:#fff;border-color:#e8eae6}
.overviewKpis .kpiIcon{display:block;font-size:15px;color:#287c57;height:23px}
.overviewKpis .kpi .caption{display:block;color:#6e8076;font-size:10px;font-weight:750}
.overviewKpis .kpi strong{font-size:clamp(17px,5vw,23px);line-height:1.2;letter-spacing:-.045em;margin:9px 0 7px;overflow-wrap:anywhere}
.overviewKpis .kpi .detail{font-size:10px;color:#85938a;line-height:1.35;display:block}
.quickActions{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:9px;min-width:0}
.quickActions button{display:flex;align-items:center;gap:10px;min-height:61px;border-radius:14px;padding:9px 14px;font-size:13px;white-space:normal;text-align:left}
.quickActions .quickMain{background:#187b53;border:1px solid #187b53;color:#fff;box-shadow:0 5px 14px #165e4020;font-weight:800}
.quickActions .quickMain .quickSymbol{font-size:24px;line-height:1;flex:none}
.quickActions .quickMain small{display:block;font-size:10px;font-weight:500;margin-top:3px;color:#ddf3e5}
.quickActions .quickArrow{font-size:22px;margin-left:auto;font-weight:400}
.quickActions .quickMinor{justify-content:center;gap:7px;border:1px solid #cbded0;background:#fff;color:#246047;font-weight:800;font-size:12px}
.quickActions .quickMinor span{font-size:18px}
.inlineTip{border:1px solid #f1dec5;background:#fff8e8;padding:11px 13px;border-radius:13px;font-size:12px;color:#765337}
.barChart{margin:17px 0 3px;gap:8px}
.barColumn .track{height:134px;background:repeating-linear-gradient(to top,#e9eeeb 0px,#e9eeeb 1px,transparent 1px,transparent 33px);border-bottom:1px solid #d1dfd6;position:relative;overflow:hidden}
.barColumn .fill{background:#b4dcc1;border-radius:7px 7px 0 0;min-width:12px;max-width:36px;width:75%}
.barColumn .fill.current{background:#287c57}
.barColumn b{font-size:11px;color:#708a7b}.barColumn .unknown{font-size:14px;color:#abb5ac;margin:auto auto 0}
.donutWrap{display:grid;grid-template-columns:148px minmax(0,1fr);gap:17px;align-items:center;margin-top:9px}
.donutGraphic{width:148px;height:148px;border-radius:50%;display:grid;place-items:center;flex:none}
.donutHole{background:white;width:91px;height:91px;border-radius:50%;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px #eef3ef}
.donutHole small{font-size:10px;color:#90a096}.donutHole strong{font-size:14px;letter-spacing:-.04em;white-space:nowrap}
.donutLegend{display:grid;gap:9px}.legendItem{display:grid;grid-template-columns:9px minmax(0,1fr) 34px;gap:7px;align-items:center;font-size:11px;min-width:0}
.legendDot{width:9px;height:9px;border-radius:50%}.legendItem span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#687d70}.legendItem b{text-align:right;color:#2f493b;font-size:11px}
.textAction{border:0;padding:14px 0 0;background:transparent;color:#157a55;font-weight:750;font-size:12px;min-height:32px}
.listItem .amount{font-size:14px}.listItem small{font-size:11px;line-height:1.5}
/* expense search and filtering */
.expenseTop{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 12px}
.expenseTop .caption{font-size:11px;color:var(--muted);display:block}
.expenseTop strong{display:block;font-size:25px;letter-spacing:-.04em;margin-top:5px;white-space:nowrap}
.expenseTop .primary{font-size:12px;min-width:102px;padding:8px 9px}
.segmented{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;background:#f1f5f2;padding:4px;border-radius:12px;margin-bottom:12px}
.segmented button{border:0;background:transparent;border-radius:9px;min-height:38px;font-size:11px;color:#72867c;padding:5px 1px;font-weight:750;overflow:hidden}
.segmented button.active{background:#fff;box-shadow:0 1px 6px #1b492617;color:#167751}
.searchLabel{display:block;margin:0}.searchLabel input{min-height:44px;width:100%;background:#fff;border:1px solid #d7e4dc;border-radius:11px;padding:10px 13px;font-size:14px;outline-offset:2px;color:var(--ink)}
.srOnly{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.resultCount{font-size:11px;color:#819188;margin:13px 0 6px}
.expenseItem{display:flex;gap:11px;align-items:center;border-bottom:1px solid #edf1ee;padding:13px 0;min-width:0}
.expenseItem:last-child{border:0}.expenseIcon{flex:none;display:grid;place-items:center;width:37px;height:37px;border-radius:12px;background:#eaf4ed;color:#397c56;font-size:18px;font-weight:700}
.expenseText{min-width:0;flex:1}.expenseText .title{font-size:13px;font-weight:800;color:#20352c;overflow-wrap:anywhere}.expenseText small{display:block;color:#84958c;font-size:10px;margin-top:4px;line-height:1.4}.expenseText .pill{padding:2px 6px;font-size:10px}
.expenseEnd{display:flex;align-items:center;gap:5px;flex:none}.expenseEnd b{font-size:14px;white-space:nowrap}.expenseEnd button{border:0;background:transparent;color:#92a79a;min-height:38px;min-width:23px;font-size:23px}
/* payments */
.billRow{display:flex;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid #ecf0ed}
.billRow:last-child{border:0}.billDate{flex:none;background:#f0f4f1;color:#516b59;border-radius:10px;font-weight:800;font-size:12px;padding:9px 6px;min-width:50px;text-align:center}
.billInfo{flex:1;min-width:0}.billInfo .title{font-size:13px;font-weight:800}.billInfo small{font-size:10px;display:block;color:#7c9183;margin-top:3px}.billInfo .pill{margin-top:5px}
.billSum{display:flex;align-items:center;gap:4px}.billSum b{font-size:13px;white-space:nowrap}.billSum button{border:0;background:transparent;color:#79958a;font-size:23px;min-width:25px;min-height:44px}
.buttonRow{display:flex;gap:8px;flex-wrap:wrap}.buttonRow button{flex:1;min-width:125px}
/* supporting screens: not alternate main navigation */
.menuLinks{display:grid;gap:0}.menuLink{display:flex;text-align:left;width:100%;align-items:center;gap:13px;padding:13px 0;border:0;border-bottom:1px solid #edf1ee;background:transparent;color:var(--ink);min-height:66px}
.menuLink:last-child{border-bottom:0}.menuGlyph{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:12px;background:#eef6f1;color:#327e56;font-size:19px}
.menuLink>span:nth-child(2){flex:1;min-width:0}.menuLink strong{display:block;font-size:13px;line-height:1.4}.menuLink small{display:block;margin-top:4px;font-size:11px;color:#8ba096;line-height:1.3}.menuChevron{font-size:25px;color:#a6b7ac}
.settingsFoot{margin-top:16px;border-top:1px solid #edf1ee;padding-top:12px;font-size:11px;color:#809287;line-height:1.5}
/* scan page */
.scanIntro{text-align:center;padding-top:26px;padding-bottom:25px}.scanIllustration{margin:0 auto 12px;width:74px;height:74px;display:grid;place-items:center;border-radius:23px;background:#ecf6ef;color:#177c55;font-size:34px}
.scanIntro h2{font-size:19px;margin-bottom:5px}.scanIntro p{max-width:380px;margin:0 auto 19px}
.scanButtons{display:grid;gap:9px}.scanButtons button{min-height:53px}
/* edit dialog: keep optional features collapsed */
dialog{border-radius:21px;padding:18px 18px 22px;max-height:min(88vh,840px)}
.dialogHeader{position:sticky;top:-18px;background:white;padding:5px 0 10px;border-bottom:1px solid #e8eeea;z-index:1}
.dialogHeader b{font-size:18px}.dialogHeader button{color:#4d6d59}
#entryFields>label{font-size:12px;font-weight:800;color:#405b4b}
#entryFields input,#entryFields select,#entryFields textarea{border-color:#d4e3d9;border-radius:11px;min-height:47px;background:#fff}
.detailsHelper{border:1px solid #dce9df;border-radius:14px;margin:17px 0;background:#fbfcfb;overflow:hidden}
.detailsHelper>summary{cursor:pointer;padding:13px 15px;list-style:none;font-size:13px;font-weight:800;color:#2b6448;min-height:50px}
.detailsHelper>summary::-webkit-details-marker{display:none}.detailsHelper>summary::after{content:'⌄';float:right;color:#729981}.detailsHelper[open]>summary::after{content:'⌃'}
.detailsHelper>summary span{font-size:10px;display:block;margin-top:4px;font-weight:500;color:#7b9383}
.detailsHelper .unitBox{background:transparent;border:0;margin:0;padding:3px 12px 15px}.formActions{position:sticky;bottom:-22px;background:#fff;padding:10px 0 5px;border-top:1px solid #e8eeea;z-index:1}.formActions button{min-width:120px}
/* wallpaper is a preference screen: light colored backgrounds never recolor UI components */
.wallpaperSettings .muted{color:#697d72}.wallpaperPreview{border-color:#d7e5da;min-height:122px;border-radius:15px}
.wallpaperSettings{gap:12px}.wallpaperGrid{gap:17px}
.wallpaperFamilyTitle{color:#6d8175;font-size:12px}
.wallpaperSwatches{gap:5px}.wallpaperSwatch{border-radius:9px;min-height:42px}
.wallpaperPatternBtns button.selected{background:#e6f4eb}
.bottomNav{max-width:920px;background:#fff;border-top:1px solid #e4ece6;box-shadow:0 -5px 19px #0d35200c;padding:9px 5px max(10px,env(safe-area-inset-bottom))}
.bottomNav button{min-height:51px;font-size:10px;gap:5px;color:#768b7c;font-weight:650}
.bottomNav button b{width:26px;height:26px;display:grid;place-items:center}
.bottomNav button svg{width:23px;height:23px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.bottomNav button.active{color:#147b52}.bottomNav button.capture b{width:46px;height:46px;border-radius:50%;background:#168154;box-shadow:0 3px 11px #16815433;margin-top:-13px}
.bottomNav button.capture svg{width:25px;height:25px;stroke-width:2.1}
.bottomNav button.capture.active{color:#147b52}.bottomNav button.capture.active b{box-shadow:0 0 0 3px #e1f5e8,0 3px 11px #16815433}
@media(min-width:710px){#appArea main{grid-template-columns:repeat(2,minmax(0,1fr));padding-left:22px;padding-right:22px}.heroBalance,.overviewKpis,.quickActions,.inlineTip{grid-column:1/-1}.topControls{padding-left:23px;padding-right:23px}.overviewKpis{grid-template-columns:repeat(2,minmax(0,1fr))}.card h2{font-size:17px}}
@media(max-width:520px){.topControls{display:grid;grid-template-columns:minmax(0,1fr) 34px 116px 34px;flex-wrap:nowrap;justify-content:initial;gap:5px}.topControls>div{width:auto;margin-right:0}.topControls input{width:100%;flex:auto}.topControls h1{font-size:21px!important}#appArea main{gap:13px;padding:6px 14px 32px}}
@media(max-width:360px){.brand{padding:0 13px}.brand small{font-size:9px}.brand b{font-size:15px}.status{font-size:9px;padding:5px;max-width:105px}.topControls{grid-template-columns:minmax(0,1fr) 30px 106px 30px}.monthNext{min-width:30px}.heroAmount{font-size:31px}.overviewKpis .kpi{padding:13px 10px}.overviewKpis .kpi strong{font-size:17px}.donutWrap{grid-template-columns:126px minmax(0,1fr);gap:8px}.donutGraphic{width:126px;height:126px}.donutHole{width:78px;height:78px}.donutHole strong{font-size:12px}.legendItem{font-size:10px;grid-template-columns:8px minmax(0,1fr) 28px;gap:5px}.quickActions{grid-template-columns:minmax(0,1fr) 86px}.quickActions button{padding:9px 8px}.expenseIcon{width:33px;height:33px}.expenseItem{gap:7px}.expenseEnd b{font-size:12px}.billDate{min-width:45px}.billRow{gap:7px}.billSum b{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
/* Native month input remains operative, but Japanese month text is the visible label */
.topControls .monthField{width:100%;height:38px;position:relative;margin:0;border:1px solid #d8e6dc;border-radius:10px;background:#fff;color:#355b45;display:flex;align-items:center;justify-content:center;overflow:hidden}
.topControls .monthField>span{font-size:12px;font-weight:800;white-space:nowrap;pointer-events:none}
.topControls .monthField input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;padding:0;border:0}
.topControls .monthField:focus-within{outline:2px solid #96cbb0;outline-offset:2px}
#appArea[data-view="wallpaper"] .topControls .monthField,#appArea[data-view="more"] .topControls .monthField,#appArea[data-view="units"] .topControls .monthField,#appArea[data-view="investments"] .topControls .monthField,#appArea[data-view="history"] .topControls .monthField,#appArea[data-view="sharing"] .topControls .monthField,#appArea[data-view="income"] .topControls .monthField,#appArea[data-view="accounts"] .topControls .monthField,#appArea[data-view="settle"] .topControls .monthField,#appArea[data-view="import"] .topControls .monthField{display:none}
/* Investment identity cards and manual valuation records */
.investmentHero{background:linear-gradient(135deg,#154c3c,#267654);color:white;padding:20px;border-radius:18px;min-width:0;box-shadow:0 4px 16px #144b3620}
.investmentHero>span{display:block;color:#d7eee0;font-size:12px;font-weight:750}
.investmentHero>strong{font-size:32px;display:block;margin:13px 0 12px;letter-spacing:-.06em;overflow-wrap:anywhere}
.investmentHero>div{font-size:12px;color:#e2f3e9}.investmentHero b{color:#bef3cd;margin-left:7px;font-size:14px}.investmentHero .investmentLoss{color:#ffd8cb}
.investPeople{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.personInvestment{background:#fff;border:1px solid #e1ebe3;padding:13px 8px;border-radius:14px;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;min-width:0}
.personCircle{display:grid;place-items:center;width:37px;height:37px;border-radius:50%;background:#e8f5ec;color:#357d54;font-size:15px;font-weight:850}
.personInvestment:nth-child(2) .personCircle{background:#f7e9f0;color:#9c6988}.personInvestment:nth-child(3) .personCircle{background:#fff3e0;color:#a77a37}
.personInvestmentLabel{font-size:11px;font-weight:750;color:#5e7869;white-space:nowrap}
.personInvestment strong{font-size:clamp(12px,3vw,17px);letter-spacing:-.035em;overflow-wrap:anywhere}
.personInvestment small{font-size:10px;color:#95a398}
.investItem{display:flex;gap:8px;align-items:center;padding:14px 0;border-bottom:1px solid #ebefed;min-width:0}
.investItem:last-child{border-bottom:0}.investLeft{min-width:0;flex:1}.investLeft .title{font-size:13px;font-weight:800;line-height:1.5;overflow-wrap:anywhere}
.investLeft small{display:block;margin-top:4px;font-size:10px;line-height:1.35;color:#8c9a90}.investRight{display:flex;gap:6px;align-items:center;flex:none}.investRight strong{font-size:13px;white-space:nowrap}.investRight button{border:0;background:transparent;color:#819b89;font-size:23px;min-width:22px;min-height:44px}
.privacyNote{font-size:11px;line-height:1.65;padding:11px 14px;border-radius:11px;border:1px solid #e7e8e2;color:#697e71;background:#f9faf7}
@media(max-width:350px){.investmentHero>strong{font-size:29px}.personInvestment{padding:11px 5px}.personInvestment strong{font-size:12px}}

/* v14 account screens — preserve the v13 visual language */
.loginCard{padding:29px 23px 24px;border:1px solid #dae8df;box-shadow:0 12px 40px #153b3520}
.loginEmblem{width:54px;height:54px;background:linear-gradient(135deg,#184b3b,#25916a);color:#fff;border-radius:17px;display:grid;place-items:center;font-size:28px;font-weight:900;margin:3px 0 21px}
.loginCard h1{font-size:clamp(22px,5vw,30px);letter-spacing:-.055em;line-height:1.4;margin-top:7px;margin-bottom:13px}.loginCard h1 span{color:#157c56}
.loginLead{font-size:12px;color:#607f6c;margin:0 0 20px;line-height:1.75}.loginFeatures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 23px}
.loginFeatures span{border-radius:9px;background:#edf8f1;border:1px solid #d8e8de;padding:10px 4px;font-size:10px;color:#23654a;font-weight:800;text-align:center}
.loginCard form label{font-size:12px;margin:14px 0}.loginCard form input{height:50px;border-color:#d3e2d8}.loginButton{height:51px;margin-top:16px;font-size:15px}
.loginHelp{display:flex;gap:8px;justify-content:space-between;margin-top:12px;align-items:center;flex-wrap:wrap}.loginHelp .link{padding:9px 4px;font-size:12px;font-weight:700}
.loginFooter{margin-top:22px;border-top:1px solid #edf0ee;padding-top:15px;color:#698371;font-size:11px;line-height:1.8;text-align:center}.loginFooter small{font-size:10px}
.sharingHero{background:linear-gradient(135deg,#fff,#f2faf4);border-color:#d4e9da}.shareHeading{display:flex;align-items:center;gap:11px}
.shareGlyph{width:43px;height:43px;background:#e3f3e9;border-radius:14px;color:#2b7655;display:grid;place-items:center;font-size:20px;font-weight:800}
.shareHeading>div:nth-child(2){flex:1;min-width:0}.shareHeading small{display:block;font-size:10px;color:#6d8b79}.shareHeading h2{font-size:18px;margin:3px 0}
.rolePill{font-size:10px;font-weight:800;border-radius:999px;padding:6px 10px;background:#ddf3e5;color:#156a44;white-space:nowrap}.rolePill.guest{background:#edf2fa;color:#456488}.rolePill.pendingRole{background:#fff1da;color:#9b6b28}
.shareSlots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #d9eadf;border-radius:15px;background:#fff;overflow:hidden;margin-top:16px}
.shareSlots>div{padding:13px 6px;text-align:center;border-right:1px solid #e5eee8;min-width:0}.shareSlots>div:last-child{border:0}.shareSlots small{display:block;font-size:10px;color:#738f7b;margin-bottom:6px}
.shareSlots strong{font-size:25px;color:#195e42;letter-spacing:-.05em}.shareSlots em{font-style:normal;font-size:11px;color:#86998b;font-weight:500;margin-left:2px}
.memberRow{display:flex;align-items:center;gap:10px;min-height:65px;padding:11px 0;min-width:0}.memberAvatar{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#e8f4ea;color:#278052;flex:none;font-size:15px;font-weight:850}
.memberAvatar.host{color:#fff;background:#176245}.memberAvatar.pendingAvatar{background:#fff5e4;color:#976728;font-size:21px}.memberInfo{flex:1;min-width:0}.memberInfo b{display:block;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.memberInfo small{display:block;font-size:10px;margin-top:4px}
.guestManage{border-top:1px solid #e7eee9}.guestManage:first-child{border:0}.memberDetails{border:1px solid #dfebe3;border-radius:12px;margin:7px 0 14px;background:#f9fcf9;overflow:hidden}
.memberDetails>summary{cursor:pointer;min-height:48px;display:flex;align-items:center;font-weight:800;color:#216d4d;font-size:12px;padding:11px 13px;list-style:none}
.memberDetails>summary::-webkit-details-marker{display:none}.memberDetails>summary:after{content:'⌄';margin-left:auto;font-size:17px}.memberDetails[open]>summary:after{content:'⌃'}
.memberDetails form{padding:0 10px 14px}.permissionGroups{display:grid;gap:10px;padding:10px}.permissionGroup{border:1px solid #e2eee6;border-radius:12px;background:#fff;min-width:0;padding:10px 11px 11px;margin:0}
.permissionGroup legend{font-size:12px;font-weight:800;color:#2f674d;padding:0 6px}.permissionToggle{display:flex!important;align-items:center;justify-content:space-between;gap:13px;min-height:45px;padding:5px 0;margin:0!important;border-bottom:1px solid #f1f3f1;font-size:12px!important;font-weight:600!important}
.permissionToggle:last-child{border-bottom:0}.permissionToggle span{flex:1;min-width:0;line-height:1.5}.permissionToggle input{appearance:auto!important;width:21px!important;min-width:21px!important;height:21px!important;min-height:21px!important;margin:0!important;accent-color:#1b8557;flex:none}
.memberActions{display:flex;flex-wrap:wrap;gap:8px;margin:10px}.memberActions button{flex:1;min-width:120px}.fullNotice{padding:12px;border-radius:11px;background:#fff3dc;color:#9d6520;font-size:12px}
.accessRestricted{background:#f9fbf9;text-align:center;padding:25px 17px}.accessRestricted>strong{font-size:16px;color:#2d6b4c}.accessRestricted p{max-width:350px;margin:12px auto 17px}
@media(max-width:355px){.loginCard{padding:20px 14px}.loginFeatures span{font-size:9px}.shareSlots strong{font-size:21px}.memberInfo b{font-size:12px}}

.guestNotice{background:#eff7f1;border-radius:11px;padding:12px;color:#2a674d;font-size:12px;line-height:1.6;margin-top:14px}

#hostInviteChoiceLabel[hidden],#createFamily[hidden],#platformSetupPanel:empty{display:none!important}
.portfolioSub{font-size:0.86rem;margin:0.4rem 0 0.5rem;opacity:0.9;}
.ticker{font-size:0.75rem;color:#486c60;display:inline-block;max-width:9rem;overflow-wrap:anywhere;}
/* v16: setup wizard and reviewed statement import. Extends v13 design system. */
.onboardScreen{padding:19px 17px 22px;max-width:680px;margin-inline:auto}
.onboardTop{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}
.onboardStep{color:#137a59;font-weight:800;background:#e5f6ed;border-radius:100px;padding:6px 12px}
.onboardBar{height:7px;border-radius:100px;background:#e7ede9;margin:16px 0 20px;overflow:hidden}
.onboardBar span{display:block;height:100%;background:#18865e;border-radius:100px;transition:width .18s ease}
.onboardScreen>h2{font-size:22px;color:#183c32;margin:8px 0}
.onboardScreen>.muted{font-size:14px;line-height:1.65;margin:4px 0 15px}
.onboardWelcome{text-align:center;background:linear-gradient(125deg,#f5fcf8,#edf8f2);border:1px solid #d9eadd;border-radius:18px;padding:24px 15px}
.onboardWelcome h2{font-size:24px;line-height:1.35;color:#164b3b;margin:8px 0}
.onboardWelcome p{font-size:14px;line-height:1.7;color:#526b60}
.onboardIcon{display:grid;place-items:center;margin:0 auto;width:64px;height:64px;background:#d9efe3;color:#0e704b;border-radius:20px;font-size:38px}
.onboardPromises{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:18px 0 0}
.onboardPromises span{font-weight:700;font-size:12px;border-radius:100px;padding:6px 10px;background:#fff;color:#257457}
.onboardHint{font-size:14px;line-height:1.65;background:#f4faf7;color:#2a6653;border-left:3px solid #58b386;padding:12px;border-radius:9px;margin:9px 0 15px}
.onboardEntries{display:grid;gap:9px;margin:16px 0}
.onboardEntry{min-height:62px;border:1px solid #dfeae4;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;font-size:14px;font-weight:700;min-width:0}
.onboardEntry span{min-width:0;overflow-wrap:anywhere}
.onboardEntry small{font-weight:400;color:#5e766b;display:block;font-size:12px;margin-top:4px}
.onboardEntry button{white-space:nowrap}
.onboardNavigation{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.onboardNavigation button{flex:1 1 115px;min-height:48px}
.onboardFoot{line-height:1.7;color:#61766b;font-size:12px;border-top:1px solid #e4ede7;padding-top:15px;margin-top:20px}
.onboardScreen form label{display:block;line-height:1.5;font-size:13px;margin-bottom:10px}
.onboardScreen form input{font-size:16px;width:100%;height:46px}
.statementReview{margin-top:24px;border-top:1px solid #e1eae5;padding-top:13px}
.statementCount{background:#ebf7ee;color:#1a6648;padding:12px;font-size:13px;font-weight:800;border-radius:10px;margin:10px 0 15px}
.statementRows{display:grid;gap:9px;margin:13px 0}
.statementRow{border:1px solid #dfeae4;border-radius:12px;padding:11px 10px;min-width:0}
.statementRow.statementDuplicate{opacity:.72;background:#f6f9f7}
.statementHead{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0}
.statementHead>div{min-width:0;overflow-wrap:anywhere;line-height:1.5}
.statementHead b{display:block;font-size:13px}.statementHead small{display:block;color:#64776d;font-size:12px;margin-top:2px}
.statementHead select{width:auto;max-width:47%;font-size:12px;padding:7px 5px;flex:0 0 auto;height:auto;min-height:38px}
.statementCheck{white-space:nowrap;display:inline-flex;align-items:center;gap:4px;font-weight:700}
.statementCheck input,.consentRow input{accent-color:#136c4b;width:20px;height:20px;flex:0 0 20px}
.statementRow details{border-top:1px solid #edf2ef;margin-top:8px;padding-top:9px}
.statementRow summary{font-size:12px;color:#357458;cursor:pointer}
.statementEdit{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.statementEdit label{font-size:12px;min-width:0}.statementEdit input{min-width:0;width:100%;font-size:16px;padding:9px 6px}
.statementReview button[disabled]{opacity:.55;cursor:not-allowed}
.payerChoose{margin:14px 0 8px;font-size:13px}.payerChoose label{margin-top:5px}
.consentRow{display:flex !important;align-items:flex-start;gap:10px;font-size:12px !important;line-height:1.6;margin:14px 0}
.warnBox{padding:12px;background:#fff4e7;border:1px solid #f5d5aa;border-radius:8px;color:#984600}
.smallEdit{font-size:12px;min-height:32px !important;padding:6px 8px;display:inline-block;margin:4px 0;background:#f1f7f3;color:#28714f;border-radius:7px}
@media(max-width:350px){.statementEdit{grid-template-columns:1fr}.onboardNavigation button{flex-basis:44%}.statementHead{align-items:flex-start}.statementHead select{max-width:52%;font-size:11px}}
#appArea[data-view="onboarding"] .monthNext,#appArea[data-view="onboarding"] .monthField{display:none}
#appArea[data-view="onboarding"] .bottomNav{display:none}
#appArea[data-view="onboarding"] #screen{padding-bottom:22px}

/* v17: shared vs strictly private ledger. Keep the v13 green/white language. */
.scopeSwitch{padding:4px 16px 3px;margin:0 auto;max-width:740px}
.bookSwitcher{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:5px;background:#e9f1eb;border:1px solid #d8e5dc;border-radius:16px}
.bookSwitcher button{border:0;background:transparent;color:#476759;font-weight:750;font-size:13px;min-width:0;min-height:44px;padding:8px 3px;border-radius:12px}
.bookSwitcher button.active{background:#fff;color:#155a40;box-shadow:0 1px 5px #1d513224}
.scopeExplain{font-size:11px;color:#557667;line-height:1.6;text-align:center;padding:5px 1px 3px}
#appArea[data-book="private"] .scopeExplain{color:#4c6a88}
#appArea[data-book="private"] .bookSwitcher button.active{color:#2e5981;background:#f9fcff}
#appArea[data-book="private"] .heroBalance{background:linear-gradient(135deg,#f7fbff,#e6f1f7);border:1px solid #cbdfed}
#appArea[data-book="private"] .heroBalance .heroAmount{color:#194a62}
#appArea[data-book="private"] .heroBalance .heroHeading,#appArea[data-book="private"] .heroBalance .heroSub{color:#46667d}
.accountPrivacyBadge{display:inline-block;padding:3px 8px;background:#eaf2fa;border-radius:100px;color:#2e6487;font-size:11px;font-weight:750}
.importVisibility{background:#f0f8f4;border:1px solid #d5eadd;border-radius:12px;padding:10px 12px;margin:5px 0 13px;font-size:12px;color:#36654e}
.importVisibility b{font-size:13px}
@media(max-width:355px){.scopeSwitch{padding-inline:11px}.bookSwitcher button{font-size:12px}.scopeExplain{font-size:10px}}

/* v18: 支出の決済方法。通常の手入力フォーム内に統合し、壁紙設定と混在させない。 */
.paymentBox{padding:14px;border:1px solid #cce3d6;border-radius:14px;background:#f5faf7;margin:12px 0 16px}
.paymentBox h3{margin:0 0 6px;color:#174a36;font-size:16px}
.paymentBox .muted{font-size:12px;line-height:1.55}
.paymentFields{margin:8px 0 0;padding:12px;background:#fff;border-radius:10px;border:1px solid #e2ece6;min-width:0}
.paymentFields[hidden]{display:none!important}
.paymentFields label{margin-top:4px}
.paymentBox select,.paymentBox input{max-width:100%}
@media(max-width:350px){.paymentBox{padding:11px}.paymentFields{padding:10px}}

/* v23: connection fails closed, accessible recovery and record diagnostics. */
.recoveryCard{max-width:540px;text-align:center}.recoveryIcon{font-size:3rem;color:#146345;margin:0}
.recoveryActions{display:grid;grid-template-columns:1fr;gap:12px;margin:24px 0}
.diagnosticItem{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:18px 0;border-bottom:1px solid #e4e9e5}
.diagnosticItem p{margin:5px 0 0}.diagnosticCount{border-radius:100px;padding:5px 10px;background:#eef3ed;font-weight:700;white-space:nowrap}.diagnosticCount.warn{background:#fff2df;color:#875400}
.diagnosticSuccess{border-radius:12px;background:#eef8ef;padding:18px;line-height:1.8}
.diagnosticTips{border-left:3px solid #4b886d;padding:12px 18px;background:#f7faf7;margin:20px 0;line-height:1.7}
.helpSteps{display:grid;gap:16px}.helpSteps>div{background:#f7faf7;padding:18px;border-radius:14px}.helpSteps p{line-height:1.7}
@media(max-width:480px){.diagnosticItem{grid-template-columns:minmax(0,1fr) auto}.diagnosticItem button{grid-column:1 / -1;justify-self:start}}
