:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;color:#192942;background:#f3f6fa;font-synthesis:none;--blue:#265bd1;--muted:#6b7e9e;--line:#e0e7f1;--soft:#f2f5fa;--green:#008356}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #94b8ff;outline-offset:3px}button{border:0;background:transparent}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;color:inherit;padding:13px 12px;min-height:46px}input:focus,select:focus,textarea:focus{outline:2px solid #c5d7ff;border-color:var(--blue)}label{display:block;font-size:13px;color:var(--muted);margin:16px 0 6px}textarea{resize:vertical}h1,h2,h3,p{margin:0}h2{font-size:19px}h3{font-size:15px}a{color:var(--blue)}.app{max-width:720px;margin:30px auto;background:white;min-height:calc(100dvh - 60px);border:1px solid var(--line);border-radius:26px;overflow:hidden;position:relative;padding-bottom:98px}.brand{display:flex;align-items:center;gap:12px;padding:24px 26px 16px}.brand h1{font-size:24px;letter-spacing:.04em}.logo{color:var(--blue);font-size:23px;letter-spacing:2px}.badge{margin-left:auto;padding:7px 12px;border-radius:30px;background:var(--soft);color:var(--muted);font-size:11px}.toolbar{padding:0 24px 12px;display:flex;align-items:center;gap:8px}.icon-btn{min-width:44px;min-height:44px;font-size:22px;border-radius:12px}.icon-btn:hover{background:var(--soft)}.date-field{position:relative;flex:1}.date-field input{border:0;padding:8px 4px;text-align:center;font-weight:700;font-size:15px;min-width:0}.segments{display:flex;border-radius:12px;background:#f0f3f8;padding:3px}.segments button{min-height:42px;padding:10px 18px;border-radius:9px;font-size:13px}.segments .active{background:#fff;color:var(--blue);box-shadow:0 1px 4px #1936600c;font-weight:700}.subline{display:flex;justify-content:space-between;padding:0 26px 8px;color:var(--muted);font-size:12px;gap:8px}.tabs{padding:0 24px 10px;display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--line);min-height:57px;overflow:auto;white-space:nowrap}.tabs button{border:1px solid var(--line);border-radius:12px;min-height:42px;padding:9px 12px;font-size:13px;font-weight:600}.tabs button.active{background:#edf3ff;border-color:#cfddff;color:var(--blue)}.tabs .chevron{color:#8ca1c1;font-size:16px}.scope-note{font-size:12px;color:var(--muted);padding:14px 26px 0}.summary{padding:20px 26px 12px;animation:reveal .25s ease-out}.label{font-size:14px;color:var(--muted)}.amount{font-size:clamp(34px,7.3vw,54px);font-weight:750;letter-spacing:-.05em;line-height:1.25;font-variant-numeric:tabular-nums;margin:4px 0 7px;overflow-wrap:anywhere}.amount .yen{font-size:25px;font-weight:500;letter-spacing:0;margin-right:6px}.secondary{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin-bottom:14px}.secondary strong{font-size:18px;color:#192942;letter-spacing:-.02em;margin-left:7px}.comparisons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.comparison{display:flex;justify-content:space-between;align-items:center;background:var(--soft);border-radius:13px;padding:13px 10px;gap:6px;text-align:left;min-height:46px;font-size:12px;color:var(--muted)}.comparison strong{color:var(--green);font-size:14px;white-space:nowrap}.comparison .negative{color:#ae5353}.goal{margin-top:15px;font-size:12px;color:var(--muted)}.goal-title{display:flex;justify-content:space-between;gap:10px}.goal-title strong{color:var(--blue)}progress{width:100%;height:4px;display:block;border:0;border-radius:4px;overflow:hidden;margin:8px 0 0;background:#e5ecf6}progress::-webkit-progress-bar{background:#e5ecf6}progress::-webkit-progress-value{background:var(--blue);border-radius:4px}.section{margin:2px 26px;padding:18px 0;border-top:1px solid var(--line)}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:8px}.hint{font-size:12px;color:var(--muted)}.nodes{display:flex;justify-content:space-around;gap:8px;overflow-x:auto;padding:0 0 6px;scrollbar-width:thin}.node{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:54px;max-width:95px;flex:1;font-size:12px;padding:3px}.node-symbol{height:48px;width:48px;display:grid;place-items:center;color:#7190bd;background:#eff4fb;border-radius:17px;font-size:23px}.node-symbol.person{border-radius:50%;font-size:21px;font-weight:700}.node-name{font-weight:600;max-width:100%;overflow-wrap:anywhere}.node-value{font-size:12px;color:var(--muted);white-space:nowrap}.node:active{transform:scale(.96)}.focus-nodes{display:flex;justify-content:center;align-items:center;gap:30px;overflow-x:auto;min-height:112px;margin:12px 26px}.focus-nodes .node{flex:0 0 72px;opacity:.45}.focus-nodes .node.selected{opacity:1;transform:scale(1.08);color:var(--blue)}.selected .node-symbol{outline:1px solid var(--blue);outline-offset:5px;background:#e9f0ff;color:var(--blue)}.person-card{margin:0 20px;background:#f4f7fb;border:1px solid #eaf0f7;border-radius:23px;overflow:hidden}.person-card .summary{padding:20px 16px 12px}.person-card .section{margin:0 16px;border:0}.person-card .comparison{background:white;border:1px solid #e3eaf6}.person-title{display:flex;justify-content:space-between;margin-bottom:10px}.chart{height:101px;display:flex;align-items:end;gap:12px;padding:0 8px}.bar{display:flex;flex-direction:column;justify-content:end;align-items:center;height:100%;flex:1;min-width:0;gap:5px;font-size:11px;color:var(--muted);padding:0}.bar-fill{display:block;width:100%;max-width:36px;background:#cddbf2;border-radius:4px 4px 0 0;min-height:3px}.bar.selected{color:var(--blue);font-weight:700}.bar.selected .bar-fill{background:var(--blue)}.chart-caption{background:#eaf0f9;border-radius:10px;margin-top:10px;display:flex;justify-content:space-between;padding:10px 12px;font-size:12px;gap:8px}.text-btn{color:var(--blue);font-size:13px;min-height:40px}.empty{padding:30px 22px;color:var(--muted);font-size:14px;text-align:center;line-height:1.8}.notice{padding:12px 14px;margin-top:14px;background:#f0f5ff;border-radius:12px;color:#506889;font-size:12px;line-height:1.7}.error{background:#fff0ee;color:#a63e30}.login{max-width:400px;margin:30px auto;padding:0 24px}.login h2{font-size:26px;margin-bottom:12px}.login p{font-size:14px;line-height:1.8;color:var(--muted)}.primary{display:block;background:var(--blue);color:#fff;border-radius:15px;min-height:50px;width:100%;font-weight:700;padding:13px 16px;box-shadow:0 4px 10px #265bd115}.login .primary{margin-top:22px}.outline{display:block;width:100%;padding:13px 16px;border:1px solid var(--line);border-radius:12px;min-height:48px;font-size:14px}.demo-buttons{display:grid;gap:8px;margin-top:10px}.links{display:flex;gap:16px;justify-content:center;padding:22px 0;font-size:12px}.footer{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);width:min(720px,100%);background:#ffffffed;backdrop-filter:blur(16px);border-top:1px solid var(--line);display:flex;gap:14px;padding:12px 20px 17px;align-items:center;border-radius:0 0 26px 26px;z-index:2}.footer .small-action{display:flex;flex-direction:column;gap:3px;align-items:center;min-width:48px;font-size:11px;color:var(--muted);min-height:48px}.footer .small-action span{font-size:21px}.footer .primary{flex:1;font-size:15px}dialog{border:0;border-radius:24px 24px 0 0;width:min(640px,100%);max-width:100%;max-height:90dvh;padding:0 24px 28px;margin:auto auto 0;box-shadow:0 -20px 80px #19294215;color:#192942;overscroll-behavior:contain}dialog::backdrop{background:#19294255;backdrop-filter:blur(3px)}.sheet-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:white;padding:16px 0;z-index:1}.sheet-head h2{font-size:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid label{margin-top:12px}.form-total{font-size:32px;font-weight:700;text-align:right;margin:20px 0 12px;font-variant-numeric:tabular-nums}.product-row,.record-row,.settings-row{padding:14px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:58px}.product-row .quantity{width:72px;text-align:center}.record-main{flex:1;min-width:0}.record-main p{font-size:13px;overflow-wrap:anywhere}.record-main small{font-size:11px;color:var(--muted);display:block;margin-top:5px}.record-money{font-size:17px;font-weight:700;white-space:nowrap}.voided{opacity:.5;text-decoration:line-through}.settings-row{width:100%;text-align:left;font-size:14px}.settings-row span:last-child{color:var(--muted)}.checkbox{display:flex;gap:10px;align-items:center}.checkbox input{width:20px;height:20px;min-height:20px}.danger{color:#b64040}.form-actions{display:grid;gap:10px;margin-top:20px}.divider{height:1px;background:var(--line);margin:20px 0}.muted{color:var(--muted);font-size:12px;line-height:1.7}.inline-error{color:#b64040;font-size:13px;line-height:1.7;margin:12px 0}.home-grid{display:grid;gap:10px;padding:20px 24px}.home-card{text-align:left;border:1px solid var(--line);border-radius:16px;padding:20px;font-size:16px;min-height:80px}.home-card small{display:block;color:var(--muted);font-size:12px;margin-top:8px}#toast{position:fixed;bottom:120px;left:50%;transform:translateX(-50%);background:#192942;color:white;padding:13px 20px;border-radius:14px;font-size:13px;z-index:10;max-width:90%;display:none;box-shadow:0 5px 20px #19294222}#toast.show{display:block;animation:reveal .2s}#sheet-body>.primary{margin-top:16px}.history-entry{border-left:2px solid #d8e4fa;padding:8px 12px;margin-top:12px;font-size:13px;line-height:1.8}.legal{max-width:720px;margin:40px auto;background:white;border-radius:20px;padding:30px;line-height:1.9}.legal h1{font-size:24px}.legal h2{margin-top:24px}.legal p{margin-top:12px}@keyframes reveal{from{opacity:.3;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(min-width:700px){.summary{padding-top:24px}.nodes{justify-content:flex-start;gap:22px}.node{max-width:110px}.chart{height:130px}.section{padding:22px 0}.focus-nodes{gap:48px}.amount{font-size:58px}}@media(max-width:740px){.app{margin:0 auto;border:0;border-radius:0;min-height:100dvh;padding-bottom:100px}.footer{bottom:0;border-radius:0;padding-bottom:max(16px,env(safe-area-inset-bottom))}.brand{padding:20px 20px 14px}.toolbar{padding-inline:18px}.subline{padding-inline:20px}.tabs{padding-inline:20px}.summary{padding-inline:20px}.section{margin-inline:20px}.segments button{padding-inline:17px}}@media(max-width:350px){.toolbar{gap:0;padding-inline:8px}.segments button{padding-inline:12px}.comparisons{gap:6px}.comparison{font-size:11px;padding:11px 8px}.comparison strong{font-size:12px}.nodes{gap:3px}.node{min-width:48px;font-size:11px}.node-symbol{width:42px;height:42px}.footer{gap:6px;padding-inline:10px}.secondary{gap:12px}.secondary strong{font-size:16px}.form-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.app{overflow:clip}.nav-sticky{position:sticky;top:0;background:#fff;z-index:1}.record-row{width:100%;text-align:left}.entry-fields{border:0;padding:0;margin:0}

[hidden]{display:none!important}

/* Responsive selection: readable names, all choices remain in the scroll strip. */
.team-selector,.member-selector{border-top:0;padding:12px 0 4px}
.team-selector .section-head,.member-selector .section-head{margin-bottom:8px;min-height:30px}
.section-head h3{font-size:17px}.section-head .text-btn{font-size:15px;min-height:44px}
.selection-rail{position:relative;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:none;padding-inline:calc((100% - (100% - 16px)/3)/2)}
.selection-rail .rail-slot{position:relative;flex:0 0 calc((100% - 16px)/3);min-width:104px;scroll-snap-align:center}
.selection-rail .node{width:100%;min-width:0;max-width:none;gap:8px;padding:10px 4px;border-radius:18px}
.selection-rail .node-symbol{width:48px;height:48px;flex:none}
.selection-rail .node-name{font-size:15px;line-height:1.45;white-space:normal;min-height:44px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#192942}
.selection-rail .node-value{font-size:15px;font-variant-numeric:tabular-nums;color:#5c6e8a}
.selection-rail .node.selected{background:transparent;color:var(--blue)}
.selection-rail .selected .node-symbol{background:var(--blue);color:white;outline:1.5px solid #9eb9ef;outline-offset:5px}
.selection-rail .selected .node-name{color:var(--blue)}
.selection-rail.single-node{padding:0;display:flex;justify-content:center;overflow:visible}
.selection-rail.single-node .rail-slot{flex:0 0 144px;max-width:100%}
.selection-rail.single-node .node-name{min-height:0}
.team-card{margin:12px 20px;border:1px solid #edf0f5;border-radius:20px;background:#f4f7fb;overflow:hidden}
.team-card .summary{padding:18px 16px}.team-card .label,.person-card .label{color:#192942;font-size:17px;font-weight:650}
.team-card .amount{font-size:36px;margin:6px 0}.team-card .secondary{font-size:15px;gap:16px}.team-card .secondary strong{font-size:17px}
.team-card .comparison,.person-card .comparison{background:white;border:1px solid #e3eaf5}
.comparison{display:grid;grid-template-columns:1fr auto;padding:12px;min-height:64px;font-size:13px}.comparison>span:first-child{grid-column:1/3}.comparison strong{font-size:15px}
.team-card .goal,.goal{font-size:13px}.person-title h3{font-size:20px}
@media(min-width:700px){.selection-rail{padding-inline:calc((100% - (100% - 32px)/5)/2)}.selection-rail .rail-slot{flex-basis:calc((100% - 32px)/5)}}

.node-symbol svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}

/* SulSul account entry: one purpose per step, persistent labels and visible recovery. */
.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--blue);color:white;flex:none}.brand-mark svg{width:24px;height:24px;fill:currentColor}.brand h1{font-size:18px;letter-spacing:0}.brand-caption{font-size:11px;color:var(--muted);margin-top:2px}.badge:empty{display:none}
.auth-screen{max-width:500px;padding-bottom:10px}.auth-screen .brand{padding:24px 24px 0}.auth-login{padding:24px}.auth-hero h2{font-size:30px;line-height:1.5;letter-spacing:-.035em;font-weight:750}.auth-hero>p{font-size:14px;line-height:1.8;color:#62718a;margin-top:12px}.auth-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}.auth-benefits{display:flex;align-items:center;padding:14px 10px;border-radius:16px;background:#f0f5ff;color:var(--blue);margin:20px 0 26px}.auth-benefits>div{flex:1;display:flex;align-items:center;flex-direction:column;gap:7px;font-size:12px;font-weight:550}.benefit-arrow{color:#7b8da9}.auth-login h3{font-size:19px;margin-bottom:16px}.auth-login label,.auth-field label{font-size:14px;font-weight:650;color:#192942;margin:0 0 8px}.auth-login input,.auth-step input:not([type=checkbox]){height:54px;border-color:#ced8e7;border-radius:14px;font-size:16px}.auth-login #email{margin-bottom:18px}.auth-login .primary,.auth-step .primary{min-height:54px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:16px;font-size:16px;font-weight:650}.auth-login #password-help{text-align:center}.auth-login #password-help button{font-size:13px;min-height:44px;margin-top:6px}.auth-legal{display:flex;align-items:center;justify-content:center;gap:22px;font-size:12px;flex-wrap:wrap;margin-top:16px}.auth-legal a{min-height:44px;display:inline-flex;align-items:center;text-decoration:none;color:#536783}.auth-divider{display:flex;gap:12px;align-items:center;color:#62718a;font-size:12px;margin:14px 0}.auth-divider:before,.auth-divider:after{content:'';height:1px;background:var(--line);flex:1}.auth-secondary{width:100%;min-height:54px;border:1px solid #b9ccee;border-radius:16px;background:white;color:var(--blue);font-weight:650}.auth-secondary:hover{background:#f4f7ff}.auth-field{margin-bottom:20px}.required{margin-left:8px;font-size:11px;font-weight:400;color:#62718a}.password-wrap{position:relative}.password-wrap input{padding-right:62px}.password-toggle{position:absolute;right:3px;top:5px;height:44px;width:54px;color:var(--blue);font-size:13px}.password-hint{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#62718a;margin-top:7px;line-height:1.6}.password-hint>span:last-child{white-space:nowrap}.password-hint .complete{color:#08704f}.field-error{color:#b3342e;font-size:12px;line-height:1.65;margin:7px 0 0}.field-error:empty{display:none}input[aria-invalid=true]{border-color:#b3342e!important}.auth-login .inline-error:empty{display:none}.auth-login .inline-error:not(:empty){margin:12px 0;font-size:13px}
dialog.auth-sheet{width:min(100%,500px);max-width:500px;max-height:100dvh;background:#f7f9fc}.auth-sheet .sheet-head{position:sticky;top:0;background:#f7f9fc;z-index:2;padding:12px 24px;border-bottom:1px solid #e4ebf5}.auth-sheet .sheet-head h2{font-size:16px}.auth-sheet #sheet-body{padding:24px}.auth-step{font-size:14px}.auth-progress{display:flex;gap:8px;margin-bottom:24px}.auth-progress span{flex:1;font-size:11px;color:#62718a;border-top:4px solid var(--line);padding-top:8px}.auth-progress span.active{border-color:var(--blue);color:var(--blue)}.auth-progress [aria-current=step]{font-weight:700}.auth-emblem{display:grid;place-items:center;width:56px;height:56px;background:#eaf0fe;color:var(--blue);border-radius:18px;margin-bottom:14px}.auth-emblem svg{width:28px;height:28px}.auth-step-title h3{font-size:24px;letter-spacing:-.03em;line-height:1.5}.auth-step-title p{font-size:14px;line-height:1.8;color:#62718a;margin-top:8px}.auth-step-title{margin-bottom:24px}.auth-step-title h3:focus{outline:0}.auth-step .auth-hint{font-size:12px;color:#62718a;line-height:1.8;margin:10px 0 20px}.auth-choices{display:grid;gap:10px;margin-bottom:22px}.auth-choice{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:16px;border:1px solid #d4deeb;border-radius:16px;background:#fff}.auth-choice>span:not(.choice-check){flex:1}.auth-choice strong{display:block;font-size:14px}.auth-choice small{display:block;font-size:11px;color:#62718a;line-height:1.6;margin-top:5px}.auth-choice.selected{border:1.5px solid var(--blue);background:#eef3fe;color:var(--blue)}.choice-check{border:1px solid #b8c8dc;border-radius:50%;width:22px;height:22px;flex:none}.selected .choice-check{background:var(--blue);border-color:var(--blue);color:white}.choice-check .auth-icon{height:20px;width:20px}.auth-consent{padding:16px;background:white;border-radius:16px;margin:20px 0}.auth-consent .auth-legal{justify-content:flex-start;margin:0;gap:20px}.auth-consent .checkbox{font-size:14px;line-height:1.6;font-weight:400;color:#192942;align-items:flex-start;margin:8px 0 0;min-height:44px}.auth-consent input{width:22px;height:22px;min-height:22px;flex:none;margin:0;accent-color:var(--blue)}.auth-recipient{background:white;padding:16px;border-radius:16px;margin-bottom:24px;overflow-wrap:anywhere}.auth-recipient>span{font-size:12px;color:#62718a;display:block;margin-bottom:7px}.auth-recipient strong{font-size:14px}.auth-recipient p{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);padding-top:12px;margin-top:12px;color:#62718a;font-size:13px}.auth-recipient svg{width:18px;height:18px}.auth-step .code-input{font-size:26px!important;letter-spacing:4px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:600}.auth-success,.auth-error{padding:14px;font-size:13px;line-height:1.7;border-radius:14px;margin:18px 0;color:#08704f;background:#eaf6f0}.auth-error{color:#b3342e;background:#fff0ef}.auth-mail-help{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.auth-mail-help h4{font-size:14px;margin:0 0 9px}.auth-mail-help p{font-size:12px;color:#62718a;line-height:1.8}.auth-mail-help button{display:block;min-height:44px;text-align:left;font-size:13px}.auth-back{display:block;margin:16px auto 0;min-height:44px;font-size:13px}.auth-step #mail-submit{margin-top:22px}
@media(max-width:600px){.auth-screen{border:0;border-radius:0;margin:0;min-height:100dvh}.auth-login{padding:24px}.auth-screen .brand{padding-top:20px}dialog.auth-sheet{height:100dvh;max-height:100dvh;margin:0 auto;border:0;border-radius:0;padding-bottom:env(safe-area-inset-bottom)}.auth-sheet #sheet-body{padding:22px 24px}.auth-hero h2{font-size:30px}.auth-sheet .sheet-head{padding-top:max(10px,env(safe-area-inset-top))}}
@media(max-width:374px){.auth-login,.auth-sheet #sheet-body{padding-left:20px;padding-right:20px}.auth-hero h2{font-size:28px}.auth-step-title h3{font-size:22px}.auth-legal{gap:16px}}
.brand-mark svg{fill:none;stroke:currentColor;stroke-linecap:round}
dialog.auth-sheet{padding:0}body:has(dialog[open]){overflow:hidden}.auth-sheet .auth-field input{scroll-margin-top:90px}
.auth-hero h2{font-size:28px}.auth-hero>p{margin-top:10px}.auth-benefits{margin:16px 0 22px;padding:12px 10px}.auth-benefits>div{flex-direction:row;justify-content:center;gap:6px}.auth-benefits .auth-icon{width:17px;height:17px}
dialog.auth-sheet[open]{display:flex;flex-direction:column;height:min(900px,96dvh);overflow:hidden}.auth-sheet .sheet-head{position:static;flex:none}.auth-sheet #sheet-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.auth-sheet #auth-footer{flex:none;background:#f7f9fc;border-top:1px solid #e4ebf5;padding:14px 24px max(14px,env(safe-area-inset-bottom))}.auth-sheet #auth-footer .primary{width:100%;min-height:54px;font-size:16px;font-weight:650;border-radius:16px;margin:0}.auth-sheet .auth-back{margin-top:8px}@media(max-width:600px){dialog.auth-sheet[open]{height:100dvh;max-height:100dvh}.auth-sheet #sheet-body{padding-bottom:8px}}

/* Mobile typography and form rhythm, shared by the dashboard and its sheets. */
:root{--muted:#5c6e8a}body{line-height:1.5}.tabs button{font-size:15px;min-height:44px}.subline,.hint,.chart-caption,.scope-note{font-size:13px}.footer .small-action{font-size:13px;min-height:52px}.record-main p,.settings-row{font-size:16px}.record-main small,.muted{font-size:13px}.product-row{font-size:16px}.sheet-head h2{font-size:20px}#sheet-body label{font-size:15px;font-weight:600;color:#192942}#sheet-body input,#sheet-body select,#sheet-body textarea{font-size:16px;min-height:52px}.record-row,.settings-row{padding-block:16px}.person-title{gap:12px}.person-title>div{min-width:0;overflow-wrap:anywhere}.label{overflow-wrap:anywhere}.single-node .node-name{max-width:100%}
@media(max-width:480px){.form-grid{grid-template-columns:1fr}.footer{gap:8px;padding-inline:16px}.brand{padding-top:16px}.toolbar{padding-inline:12px;gap:4px}.segments button{padding-inline:14px}.summary{padding-top:16px}.section{padding-top:14px}.section-head{margin-bottom:10px}.chart{gap:8px}.node-value{overflow-wrap:anywhere}.single-node{margin-bottom:4px}}

dialog.entry-sheet[open]{display:flex;flex-direction:column;padding:0;max-height:calc(100dvh - 24px)}.entry-sheet .sheet-head{flex:none;padding:16px 20px}.entry-sheet #sheet-body{overflow:auto;padding:0 20px 16px;min-height:0}.entry-sheet #entry-footer:not([hidden]){display:grid;grid-template-columns:1fr auto;flex:none;gap:8px;padding:12px 20px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:white}.entry-total-label{align-self:center;font-size:14px;color:var(--muted)}#entry-footer .form-total{font-size:24px;margin:0}#entry-footer .inline-error,#entry-footer .primary{grid-column:1/3}#entry-footer .inline-error:empty{display:none}#entry-footer .inline-error{margin:0}.node-name{font-size:15px}

/* Respect motion preferences without changing the selected scope or its circular symbols. */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.record-context { overflow-wrap: anywhere; line-height: 1.6; }
#sheet-back { flex-shrink: 0; min-height: 44px; }

@media (max-width: 350px) {
  .toolbar { flex-wrap: wrap; }
  .toolbar .date-field { flex: 1 1 155px; }
  .toolbar > .segments { flex: 0 0 100%; justify-content: center; }
}

/* State details scroll; the compact state title and primary action stay visible. */
#entry-state{font-size:1rem;line-height:1.65;margin-bottom:16px}#entry-state details{margin-top:12px}#entry-state summary{min-height:44px;cursor:pointer;color:var(--blue)}#entry-state pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.875rem;user-select:text}#entry-state-title{grid-column:1/3;font-size:1rem;line-height:1.4}#entry-footer .primary{min-height:48px}

/* Email examples and entered values are text, rather than link-colored actions. */
.auth-field input,.auth-login input {color:#192942;-webkit-text-fill-color:#192942}
.auth-field input::placeholder,.auth-login input::placeholder {color:#62718a;-webkit-text-fill-color:#62718a;opacity:1}

/* Selected scope: one primary amount, then its trend and supporting context. */
.summary-details{padding:8px 20px 16px}
.person-card .summary-details,.team-card .summary-details{padding-inline:16px}
.team-card>.section{margin:0 16px;border:0}
.person-card .person-title{margin-bottom:4px}
.read-error p{max-width:32em;margin:12px auto}

/* DBUI: one information order at every scope; touch targets stay at least 44px. */
.brand{padding:8px 20px;min-height:0}.brand h1{font-size:16px}.brand .status{font-size:12px}
.nav-sticky>.segments{margin:4px 20px 8px;display:flex}.nav-sticky>.segments button{flex:1;min-height:44px}
.toolbar{padding-block:4px}.subline{padding-block:2px}.tabs{padding-block:4px}
.summary-card{background:var(--soft,#f1f6fa);border-radius:20px;margin:8px 16px 0}
.summary-card .summary{padding:12px 16px 8px}.summary-card .label{display:flex;align-items:center;gap:10px;margin:0 0 4px;font-weight:650;font-size:17px;color:var(--ink,#192942)}
.selected-scope{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;height:44px;border-radius:50%;background:var(--blue);color:white;outline:1.5px solid #9eb9ef;outline-offset:4px}.selected-scope svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65}
.summary-card .amount{margin:4px 0 8px;font-size:40px;line-height:1.2}.summary-card .summary-details{padding:2px 16px 12px}.summary-details .comparisons{margin:0;gap:8px}.comparison strong.neutral{color:var(--muted)}.comparison strong.positive{color:#008055}.comparison strong.negative{color:#b03039}.comparison strong{line-height:1.35}.summary-details .goal{margin:10px 0 0}
.team-selector,.member-selector{margin-top:0;padding-top:8px}.section-head{margin-bottom:4px}.selection-rail .node-name{min-height:0}.trend-section{margin-top:8px}.summary-card+.scope-note{margin-block:8px}
@media(max-width:480px){.brand{padding-top:8px}.summary-card .amount{font-size:36px}.section{padding-top:8px}}

/* The focused branch remains a visible tree, with peers at their actual level. */
.tree-ancestors{display:flex;flex-direction:column;align-items:center;margin:8px 16px 0}.tree-ancestors button{min-height:44px;display:flex;align-items:center;gap:8px;color:var(--blue);font-weight:600;font-size:15px;max-width:100%;overflow-wrap:anywhere}.ancestor-symbol{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--soft);width:32px;height:32px;flex-shrink:0}.ancestor-symbol svg{width:22px;height:22px}.tree-link{width:2px;height:14px;background:#b7caeb;margin:0 auto}.tree-link+.section{margin-top:0}.tree-link+.summary-card{margin-top:0}.selection-rail .rail-slot{position:relative;padding-top:14px}.selection-rail .rail-slot:before{content:"";position:absolute;left:50%;top:0;height:14px;width:2px;background:#b7caeb}.selection-rail .rail-slot:after{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:#b7caeb}.selection-rail .rail-slot:first-child:after{left:50%}.selection-rail .rail-slot:last-child:after{right:50%}.selection-rail.single-node .rail-slot:after{display:none}

.summary-card .secondary{margin-bottom:6px}.comparisons{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.comparison strong{white-space:normal;overflow-wrap:anywhere}.selection-rail .rail-slot:not(:last-child):after{right:-8px}

/* Focus / Motion / Typography dashboard. Authentication and settings keep their existing layout. */
.dashboard-screen{max-width:480px;margin:0 auto;min-height:100dvh;border-radius:0;border:0;padding-bottom:86px;background:#fff}
.dashboard-screen .brand{min-height:50px;padding:6px 20px 2px;gap:9px}
.dashboard-screen .brand-mark{width:28px;height:30px;border-radius:0;background:transparent;color:var(--blue)}
.dashboard-screen .brand-mark svg{width:28px;height:30px;stroke:var(--blue)}
.dashboard-screen .brand h1{font-size:20px;font-weight:700;letter-spacing:.01em}
.dashboard-screen .brand-caption{display:none}
.dashboard-screen .badge{padding:6px 0;background:transparent;font-size:10px;letter-spacing:.02em}
.dashboard-screen .badge:before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#6c809f;margin-right:5px;vertical-align:1px}
.dashboard-screen #main{min-height:calc(100dvh - 136px)}
.dashboard-screen .nav-sticky{position:relative;top:auto;background:#fff}
.dashboard-screen .toolbar{min-height:48px;padding:2px 16px;gap:1px}
.dashboard-screen .icon-btn{width:40px;min-width:40px;height:44px;border-radius:12px;font-size:21px}
.dashboard-screen .date-field input{min-height:38px;padding:4px 9px;background:#f0f1f4;border-radius:22px;font-size:16px;font-weight:600}
.dashboard-screen .period-segments{flex:0 0 auto;border-radius:18px;padding:3px;gap:2px}
.dashboard-screen .period-segments button{min-width:40px;min-height:32px;padding:4px 12px;border-radius:15px}
.dashboard-screen .metric-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:1px 20px 5px}
.dashboard-screen .metric-row>.segments{background:#f0f4fc;border-radius:18px;gap:1px}
.dashboard-screen .metric-row>.segments button{min-width:60px;min-height:32px;padding:4px 13px;border-radius:15px;font-size:12px}
.dashboard-screen .metric-row>.segments .active{background:var(--blue);color:white;box-shadow:none}
.dashboard-screen .period-note{font-size:11px;color:var(--muted);text-align:right}
.dashboard-screen .path-row{min-height:44px;padding:2px 20px 5px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #e6edf8}
.dashboard-screen .ancestry{display:flex;align-items:center;gap:3px;min-width:0;overflow-x:auto;scrollbar-width:none}
.dashboard-screen .crumb{display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:5px 9px;border-radius:10px;color:var(--muted);font-size:12px;font-weight:650;white-space:nowrap}
.dashboard-screen .crumb.active{color:var(--blue);background:#eef4ff;border:1px solid #d8e4fd}
.dashboard-screen .crumb-join{color:#8c9cb6;font-size:16px}
.dashboard-screen .scope-count{font-size:11px;white-space:nowrap;color:var(--muted)}
.dashboard-screen .summary-card{margin:0;padding:10px 20px 0;background:transparent;border-radius:0;animation:focus-reveal .22s cubic-bezier(.22,1,.36,1)}
.dashboard-screen .summary-card .summary{padding:3px 0;text-align:center}
.dashboard-screen .summary-card .label{display:flex;align-items:center;justify-content:center;gap:9px;margin:0;font-size:17px;line-height:1.4;font-weight:700;color:var(--ink)}
.dashboard-screen .selected-scope{width:36px;height:36px;flex:0 0 36px;border-radius:12px;background:#edf2fe;color:var(--blue);outline:0}
.dashboard-screen .selected-scope.person{border-radius:50%;font-size:15px;font-weight:700}
.dashboard-screen .selected-scope svg{width:21px;height:21px}
.dashboard-screen .summary-card .amount{font-size:clamp(40px,11vw,49px);line-height:1.22;font-weight:760;letter-spacing:-.048em;margin:3px 0 4px;white-space:nowrap;overflow-wrap:normal}
.dashboard-screen .summary-card .secondary{display:flex;align-items:center;justify-content:center;gap:20px;margin:0;padding:4px 0 3px;font-size:13px}
.dashboard-screen .summary-card .secondary strong{font-size:14px;font-weight:650;margin-left:6px}
.dashboard-screen .summary-card .summary-details{padding:7px 0 0}
.dashboard-screen .comparisons{gap:8px}
.dashboard-screen .comparison{display:grid;grid-template-columns:1fr auto;min-height:58px;padding:8px 12px;border:0;border-radius:14px;background:#f2f6fd;gap:3px 7px;text-align:left}
.dashboard-screen .comparison>span:first-child{grid-column:1/3;font-size:12px;line-height:1.45}
.dashboard-screen .comparison strong{font-size:17px;line-height:1.25;font-weight:700}
.dashboard-screen .comparison strong.neutral{font-size:12px;line-height:1.35;font-weight:550}
.dashboard-screen .summary-details .goal{margin:7px 2px 0;font-size:11px}
.dashboard-screen .goal-title{font-size:11px;line-height:1.6}
.dashboard-screen .summary-card+.scope-note{margin:0;padding:6px 20px 0;text-align:center;font-size:11px}
.dashboard-screen .team-selector,.dashboard-screen .member-selector{margin:0 20px;padding:8px 0 2px;border:0}
.dashboard-screen .section-head{min-height:34px;margin-bottom:0}
.dashboard-screen .section-head h3{font-size:16px;font-weight:700}
.dashboard-screen .section-head .text-btn{font-size:12px;color:var(--muted)}
.dashboard-screen .selection-rail{padding:11px 0 0;gap:9px;overflow-x:auto;scroll-snap-type:none;justify-content:safe center}
.dashboard-screen .selection-rail .rail-slot{flex:0 0 calc((100% - 18px)/3);min-width:92px;padding-top:7px}
.dashboard-screen .selection-rail .node{gap:0;padding:3px 0 1px;border-radius:13px;font-size:13px}
.dashboard-screen .selection-rail .node-symbol{width:47px;height:47px;margin:2px 0 7px;border-radius:16px;background:#edf2fe;color:var(--blue);outline:0}
.dashboard-screen .selection-rail .node-symbol.person{border-radius:50%;font-size:20px}
.dashboard-screen .selection-rail .node-name{min-height:19px;font-size:13px;line-height:1.45;font-weight:650;color:var(--ink);display:block;overflow-wrap:anywhere}
.dashboard-screen .selection-rail .node-value{font-size:14px;line-height:1.4;font-weight:600;margin-top:3px;color:var(--muted)}
.dashboard-screen .selection-rail .selected .node-symbol{background:var(--blue);color:white;outline:0;box-shadow:0 0 0 3px white,0 0 0 4.5px #90aeef}
.dashboard-screen .selection-rail .selected .node-name{color:var(--blue)}
.dashboard-screen .selection-rail .rail-slot:before{height:8px;top:-1px;background:#d9e5f9;width:1px}
.dashboard-screen .selection-rail .rail-slot:after{top:6px;height:1px;background:#d9e5f9}
.dashboard-screen .selection-rail .rail-slot:not(:last-child):after{right:-9px}
.dashboard-screen .selection-rail.single-node{justify-content:center}
.dashboard-screen .selection-rail.single-node .rail-slot{flex-basis:120px}
.dashboard-screen .trend-section{margin:6px 20px 0;padding:7px 0 0;border-top:1px solid var(--line)}
.dashboard-screen .trend-section .section-head{margin:0}
.dashboard-screen .trend-section .section-head h3{font-size:14px}
.dashboard-screen .chart{height:78px;gap:9px;padding:0}
.dashboard-screen .bar{height:76px;font-size:10px}
.dashboard-screen .bar-fill{max-width:26px;background:#d9e4fa}
.dashboard-screen .chart-caption{min-height:19px;margin:0;padding:3px 0 0;background:transparent;justify-content:flex-end;text-align:right;font-size:11px}
.dashboard-screen>.footer,.dashboard-screen .footer{width:min(480px,100%);bottom:0;border-radius:0;padding:9px 16px max(9px,env(safe-area-inset-bottom));gap:13px;background:#f8fafff2}
.dashboard-screen .footer .small-action{min-width:44px;min-height:47px;font-size:11px}
.dashboard-screen .footer .small-action span{font-size:20px}
.dashboard-screen .footer .primary{min-height:47px;border-radius:17px;font-size:15px}
@keyframes focus-reveal{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(min-width:700px){.dashboard-screen{border:1px solid var(--line);border-radius:26px;margin:20px auto;min-height:calc(100dvh - 40px)}.dashboard-screen>.footer,.dashboard-screen .footer{bottom:20px;border-radius:0 0 26px 26px}}
@media(max-width:374px){.dashboard-screen .toolbar{padding-inline:8px}.dashboard-screen .date-field input{font-size:14px}.dashboard-screen .metric-row,.dashboard-screen .path-row{padding-inline:16px}.dashboard-screen .summary-card{padding-inline:16px}.dashboard-screen .summary-card .amount{font-size:38px}.dashboard-screen .team-selector,.dashboard-screen .member-selector,.dashboard-screen .trend-section{margin-inline:16px}}
@media(prefers-reduced-motion:reduce){.dashboard-screen .summary-card{animation:none}.dashboard-screen .node:active{transform:none}}

/* Adopted S brand candidate; dashboard information layout is unchanged. */
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain;border-radius:9px}
.dashboard-screen .brand-mark{height:28px}
.dashboard-screen .brand-mark img{border-radius:7px}
.language-picker{font:inherit;font-size:14px;min-height:44px;max-width:120px;padding:6px;border:1px solid var(--line,#dfe5ee);border-radius:10px;background:white;color:var(--ink,#152238)}
html[lang=en] .secondary{flex-wrap:wrap}html[lang=en] .scope-count{white-space:normal}html[lang=en] .auth-step-title h3{overflow-wrap:anywhere}

.billing-panel{display:grid;gap:16px}.billing-panel .notice{margin:0;font-size:16px;line-height:1.6}.billing-panel .notice strong{font-size:18px}.billing-panel p{margin:0}.billing-panel .outline{margin:0}
