:root{font-family:system-ui,"Yu Gothic",sans-serif;background:#f3f8f7;color:#193e47;line-height:1.6}*{box-sizing:border-box}body{margin:0}header{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#fff;border-bottom:1px solid #d6e6e3;font-size:14px}header a{font-size:20px;font-weight:800;color:#176f80}main{max-width:700px;margin:auto;padding:14px 16px}h1{font-size:24px;line-height:1.3;margin:6px 0 12px}p{margin:8px 0 14px}.demo{background:#fff2d6;color:#67480d;padding:8px 10px;border-radius:8px;font-size:13px}.eyebrow{font-size:13px;color:#54747b;margin-top:15px}.cards{display:grid;gap:10px;margin:14px 0}.cards button{display:grid;grid-template-columns:40px 1fr;text-align:left;align-items:center;border:1px solid #9dc4c8;background:#fff;border-radius:10px;padding:12px;color:#174959;font:inherit;cursor:pointer}.cards button:first-child{border:2px solid #176f80}.cards span{grid-row:span 2;text-align:center;font-size:24px}.cards strong{font-size:17px}.cards small{font-size:13px}.primary,.outline{min-height:50px;border-radius:9px;padding:12px 14px;font:inherit;font-weight:700;cursor:pointer}.primary{width:100%;border:0;background:#176f80;color:white}.primary:disabled{opacity:.45;cursor:not-allowed}.outline{background:white;border:1px solid #176f80;color:#176f80}.back{border:0;background:none;color:#176f80;font:inherit;padding:10px 0;cursor:pointer}label{display:block;font-weight:700;margin:14px 0 5px}input:not([type=checkbox]),textarea{width:100%;min-height:48px;border:1px solid #8aafb5;border-radius:8px;padding:10px;font:inherit;background:white}textarea{min-height:100px}.cancel{font-weight:400;display:flex;align-items:center;gap:8px}.cancel input{width:20px;height:20px}details{background:white;border:1px solid #c7dedb;border-radius:10px;padding:0 14px;margin:10px 0}summary{font-weight:700;padding:14px 0;cursor:pointer}.state,.hint{background:#eaf5f2;color:#183f3c;border:1px solid #cce4dd;border-radius:12px;padding:12px 14px}.muted{font-size:13px;color:#557178}.error{color:#b12b20;font-weight:700}.receipt,#summary>div{background:white;border:1px solid #c6dfdb;border-radius:9px;padding:12px;margin:8px 0}#summary p{white-space:pre-wrap;overflow-wrap:anywhere}.receipt #receipt-number{overflow-wrap:anywhere;margin:10px 0;font-size:18px}.checkmark{font-size:40px;color:#147d66}.processing{width:40px;height:40px;border:4px solid #cce8e6;border-top-color:#176f80;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.processing{animation:none}}[hidden]{display:none!important}:focus-visible{outline:3px solid #146ca4;outline-offset:2px}footer{max-width:700px;margin:16px auto;padding:18px;font-size:14px;border-top:1px solid #d6e6e3}footer a{color:#176f80}
.file-input{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.file-input:focus-visible+.file-picker{outline:3px solid #075d70;outline-offset:3px}.file-picker{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 18px;border:1px solid #08667b;border-radius:10px;color:#075d70;background:#fff;cursor:pointer;font-weight:700}#remove-confirm{margin-top:10px;padding:12px;border:1px solid #c7dddd;border-radius:12px;background:#f4f9f8}#remove-confirm button{margin:4px}

.card-icon{display:flex;align-items:center;justify-content:center}.card-icon svg{width:24px;height:24px;display:block}

.file-message{color:#17634f;font-weight:700}
.guide-flow{margin-top:12px}.guide-flow-body{padding-bottom:12px}.guide-flow h2{font-size:16px;margin:16px 0 8px}.guide-flow p{font-size:13px;color:#557178}.flow-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;list-style:none;padding:0;margin:0;counter-reset:flow-step}.flow-steps li{counter-increment:flow-step;display:flex;align-items:center;gap:8px;background:#f0f7f6;border:1px solid #d5e8e3;border-radius:10px;padding:9px;font-size:13px;font-weight:700;min-height:54px}.flow-steps li::before{content:counter(flow-step);flex:none;display:grid;place-items:center;width:23px;height:23px;background:#176f80;color:white;border-radius:50%;font-size:12px}.flow-steps li span{font-size:18px;color:#176f80}@media(max-width:340px){.flow-steps{grid-template-columns:1fr}}

#full-application { width:100%; min-height:1200px; border:0; }
header .portal-brand{display:flex;align-items:center;height:100%;min-width:0}header .portal-brand img{display:block;width:110px;height:auto;max-height:42px;object-fit:contain}@media(max-width:340px){header .portal-brand img{width:90px}header span{font-size:12px}}
header .home-label{font-size:13px;font-weight:700;color:#176f80;text-align:right}#leave-dialog{border:1px solid #b9d8d1;border-radius:14px;max-width:min(90vw,420px);padding:20px;color:#193e47}#leave-dialog::backdrop{background:#123a3a88}#leave-dialog h2{font-size:20px}#leave-dialog button,#leave-dialog a{display:block;width:100%;margin-top:12px;border-radius:9px;padding:12px;font:inherit;text-align:center}#leave-dialog button{background:#176f80;color:white;border:0;font-weight:700}#leave-dialog a{background:white;border:1px solid #176f80;color:#176f80}
#start .welcome{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 5px 4px}#start .welcome h1{font-size:clamp(24px,4vw,32px);color:#173d39}#start .welcome p:not(.eyebrow){font-size:14px;color:#54747b}#start .welcome-art{width:145px;flex:none}#start .welcome-art svg{width:100%;display:block}#start .start-steps{display:flex;gap:8px;align-items:center;padding:8px 0 10px;font-size:13px;font-weight:700;color:#527a70}#start .start-steps span+span:before{content:"→";margin-right:8px;color:#a1b8ac}#start .start-help{font-size:14px;color:#54747b}#start .cards button{border-radius:14px;border-color:#d3e7df;box-shadow:0 3px 10px #244b360d;min-height:76px;gap:8px}#start .cards button:first-child{border:2px solid #438f7e}#start .cards .card-icon{grid-row:span 2;width:44px;height:44px;border-radius:12px;background:#e3f2eb;color:#27816f}#start .cards button:nth-child(2) .card-icon{background:#fff0da;color:#a87432}#start .cards button:nth-child(3) .card-icon{background:#e7f2f3;color:#4e858d}@media(max-width:480px){#start .welcome-art{width:100px}#start .welcome h1{font-size:24px}#start .welcome p:not(.eyebrow){font-size:13px}#start .start-steps{font-size:12px;justify-content:space-between;gap:0}#start .start-steps span+span:before{margin-right:3px}#start .cards button{min-height:68px}}
#start .start-steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:4px 0 14px;padding:0}#start .start-steps li{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 5px;min-height:50px;border:1px solid #dfebe5;border-radius:12px;background:#fff;color:#345f56;font-size:13px;font-weight:700}#start .start-steps li:not(:last-child):after{content:"›";position:absolute;z-index:1;right:-8px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#f3f8f7;color:#86a99d;font-size:17px;line-height:1}#start .start-steps .step-art{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:9px;background:#e5f2ec;color:#368170}#start .start-steps li:nth-child(2) .step-art{background:#fff1de;color:#a97a38}#start .start-steps li:nth-child(3) .step-art{background:#e8f2f4;color:#508691}#start .start-steps li:nth-child(4) .step-art{background:#eef0fa;color:#777eaa}#start .start-steps svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#start .start-steps span+span:before{content:none}@media(max-width:480px){#start .start-steps{gap:6px}#start .start-steps li{flex-direction:column;gap:3px;min-height:66px;padding:6px 2px;font-size:11px}#start .start-steps .step-art{width:27px;height:27px}#start .start-steps svg{width:17px;height:17px}#start .start-steps li:not(:last-child):after{right:-7px}}
.file-actions{display:flex;gap:10px;flex-wrap:wrap}.file-actions .file-picker{margin:0;gap:8px}.camera-picker{background:#eaf7f2;border-color:#5c9b8a}.back{display:inline-flex;align-items:center;gap:6px;padding:10px 14px;margin:0 0 10px;border:1px solid #bddbd5;border-radius:10px;background:#fff;color:#176f80;font-weight:700}.back:hover{background:#edf8f4}@media(max-width:400px){.file-actions .file-picker{flex:1;min-width:140px}}

.device-save-notice{margin:1.1rem 0 1.4rem;padding:1rem 1.15rem;border:1px solid #bfddd5;border-radius:14px;background:#eff8f5;color:#163f46;line-height:1.75}.device-save-notice strong{display:block;color:#16594f;font-size:.95rem}.device-save-notice p{margin:.35rem 0 0;font-size:.92rem}@media(max-width:480px){.device-save-notice{padding:.9rem 1rem}.device-save-notice p{font-size:.9rem}}
