@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');
:root{--green:#235c45;--green-light:#eaf2ec;--ink:#24382f;--muted:#7b847e;--border:#e5e9e3;--paper:#f7f8f4;--white:#fff;--radius:18px;font-family:'Noto Sans KR',-apple-system,BlinkMacSystemFont,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}a,button,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8daf87;outline-offset:3px}svg{flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1.4px;font-weight:700}h2{font-size:19px;letter-spacing:-.5px}h3{font-size:16px}p{line-height:1.7}.muted{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-100px;z-index:100;background:#fff;padding:12px}.skip-link:focus{top:10px}.sidebar{width:244px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;padding:36px 24px;z-index:20}.brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:800;letter-spacing:-.9px}.brand small{display:block;font-size:11px;color:var(--muted);font-weight:400;letter-spacing:.1px;margin-top:5px}.brand-mark{background:var(--green);color:white;width:46px;height:48px;display:flex;align-items:center;justify-content:center;font-family:Georgia,serif;font-size:43px;border-radius:15px;position:relative}.brand-mark span{font-size:18px;position:absolute;right:6px;top:0}.nav-label{font-size:11px;color:#99a19b;margin:47px 12px 15px}.desktop-nav{display:grid;gap:8px}.nav-item{min-height:48px;display:flex;align-items:center;gap:13px;padding:12px 16px;border-radius:10px;font-size:14px;color:#758278}.nav-item.active{color:var(--green);background:var(--green-light);font-weight:700}.sidebar-bottom{margin-top:auto;background:#f7f8f3;padding:23px 18px;border-radius:14px}.tiny-leaf{font-size:28px;color:#799878;display:block;margin-bottom:14px}.sidebar-bottom strong{font-size:14px;line-height:1.85}.sidebar-bottom p{font-size:11px;color:var(--muted);margin-top:10px}.sidebar-foot{font-size:8px;letter-spacing:1px;color:#929b93;margin-top:26px;display:flex;justify-content:space-between}.workspace{margin-left:244px}.topbar{height:78px;padding:0 46px;background:#ffffffb0;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px}.desktop-top-label{font-size:12px;color:#849086}.demo-pill{font-size:11px;border:1px solid #dce8d9;color:#5e795d;border-radius:20px;padding:7px 12px;background:#f2f6ee;white-space:nowrap;display:flex;align-items:center;gap:7px}.demo-pill i{width:6px;height:6px;background:#7e9d6f;border-radius:50%}.mobile-brand{display:none}main{max-width:1340px;margin:auto;padding:38px 46px 22px;min-height:calc(100vh - 150px)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:27px}.eyebrow{font-size:10px;letter-spacing:2px;color:#7d937e;margin-bottom:7px}.page-heading>div>p:last-child{font-size:13px;color:var(--muted);margin-top:10px}.button{border:1px solid transparent;padding:12px 18px;border-radius:9px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:600;white-space:nowrap}.primary{background:var(--green);color:#fff}.primary:hover{background:#194c37}.secondary{background:white;border-color:var(--border);color:var(--ink)}.danger{color:#ac453b;background:#fcf0ed;border-color:#f2d9d2}.text-button{border:0;background:none;color:var(--green);font-size:12px;min-height:44px;display:inline-flex;align-items:center;gap:7px}.hero{background:#eaf0e4;border:1px solid #e0e8d9;border-radius:var(--radius);min-height:185px;padding:30px 32px;position:relative;overflow:hidden;margin-bottom:28px;display:flex;justify-content:space-between;align-items:center}.hero-tag{font-size:10px;color:#6d8266;letter-spacing:1.1px;display:flex;gap:7px;align-items:center;margin-bottom:12px}.hero h2{font-size:26px;line-height:1.6;letter-spacing:-1.2px;font-weight:600}.hero h2 strong{color:var(--green)}.hero p{font-size:12px;color:#788873;margin-top:9px}.hero-art{width:230px;align-self:stretch;position:relative;flex-shrink:0;display:flex;align-items:center;justify-content:center}.art-orbit{position:absolute;border:1px solid #cfdbc5;border-radius:50%;width:180px;height:180px;transform:rotate(-20deg)}.art-orbit:nth-child(2){width:130px;height:130px;transform:translate(22px,5px)}.art-sprout{font-size:100px;color:#648262;line-height:1;transform:rotate(-14deg)}.art-star{position:absolute;top:2px;right:30px;font-size:25px;color:#91a985}.art-small{position:absolute;bottom:10px;left:24px;font-size:23px;color:#acba94}.section-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.section-header p{font-size:12px;color:var(--muted);margin-top:6px}.semester-control{display:flex;align-items:center;gap:8px;padding:4px 10px;border:1px solid var(--border);border-radius:9px;background:white;color:#667965}.semester-control svg{width:16px}.semester-control select{border:0;background:transparent;font-size:12px;color:var(--ink);min-height:36px;max-width:170px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:17px}.stat{background:white;border:1px solid var(--border);border-radius:14px;padding:20px;text-align:left;cursor:pointer;transition:transform .15s}.stat:hover{transform:translateY(-2px)}.stat-top{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#758077}.stat-icon{width:33px;height:33px;background:#f1f4ed;border-radius:9px;display:grid;place-items:center;color:#758a65}.stat:nth-child(2) .stat-icon{background:#eff1fb;color:#8b8caf}.stat:nth-child(3) .stat-icon{background:#f9f2e8;color:#b29a69}.stat:nth-child(4) .stat-icon{background:#eaf3ec;color:#71977b}.stat-number{font-size:35px;font-weight:600;letter-spacing:-1px;margin:4px 0}.stat-number small{font-size:12px;color:var(--muted);font-weight:400;margin-left:7px}.stat-bottom{font-size:10px;color:#97a093;display:flex;gap:4px;align-items:center}.insight-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px;background:#f0f2eb;border-radius:10px;font-size:12px;margin-bottom:33px;color:#687861}.insight-strip a{text-decoration:underline;text-underline-offset:3px;color:var(--green)}.home-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr);gap:24px}.panel{border:1px solid var(--border);background:white;border-radius:var(--radius);padding:23px}.recent-list{margin-top:6px}.recent-row{display:flex;gap:12px;align-items:center;min-height:75px;padding:13px 0;border-bottom:1px solid #f0f2ed}.recent-row:last-child{border-bottom:0;padding-bottom:0}.recent-row>div:nth-child(2){flex:1;min-width:0}.recent-row strong{font-size:14px;overflow-wrap:anywhere}.recent-row p{font-size:10px;color:#8e978f;margin-top:3px}.avatar{width:41px;height:41px;border-radius:14px;background:#eff0e4;display:grid;place-items:center;color:#7e855a;font-size:15px;flex-shrink:0}.tint-1{background:#eeeaf3;color:#9683a4}.tint-2{background:#e6eee6;color:#6e8c72}.tint-3{background:#f5ede3;color:#a8906f}.badge{display:inline-block;border-radius:5px;padding:5px 8px;font-size:10px;white-space:nowrap;font-weight:500}.status-0{background:#f0f1ed;color:#7e867a}.status-1{background:#eef0fa;color:#7778a8}.status-2{background:#fbf1df;color:#a88740}.status-3{background:#eaf3eb;color:#648c6d}.status-4{background:#e6f0ec;color:#427c63}.journey{display:grid;gap:17px;margin-top:26px}.journey-line{display:flex;gap:13px;position:relative}.journey-line:not(:last-child):after{content:'';position:absolute;left:15px;top:35px;width:1px;height:26px;background:#e2e9dc}.journey-line>span{width:31px;height:31px;display:grid;place-items:center;flex-shrink:0;background:#f2f5ee;border:1px solid #e4e9df;border-radius:50%;font-size:11px;color:#809475}.journey-line strong{font-size:13px;display:block;margin-bottom:4px}.journey-line p{font-size:11px;color:#90988e}.journey-note{background:#f6f7f2;font-size:11px;color:#85927b;padding:12px;border-radius:8px;margin-top:23px;line-height:1.8}.page-footer{font-size:10px;color:#a1a99e;max-width:1340px;margin:auto;padding:24px 46px 27px;display:flex;justify-content:space-between}.bottom-nav{display:none}.toolbar{display:flex;gap:12px;margin-bottom:15px}.search-box{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--border);border-radius:10px;padding:0 14px;flex:1;min-width:0;color:#9aa498}.search-box input{border:0;background:transparent;width:100%;min-height:47px;font-size:14px;outline:none}.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}.filters label{display:flex;gap:6px;align-items:center;font-size:11px;color:var(--muted)}.filters select{min-height:44px;border:1px solid var(--border);border-radius:8px;background:white;padding:8px;font-size:12px;max-width:155px}.result-count{font-size:12px;color:var(--muted);margin:20px 0 14px}.member-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.member-card{background:white;border:1px solid var(--border);border-radius:15px;padding:20px;transition:border-color .15s}.member-card:hover{border-color:#a9bba1}.member-heading{display:flex;align-items:center;gap:11px}.member-heading>div{flex:1;min-width:0}.member-heading h3{overflow-wrap:anywhere}.member-heading p{font-size:11px;color:var(--muted);margin-top:4px}.member-heading>svg{color:#b2b9ad;width:16px}.card-status{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:20px;font-size:10px}.progress-row{display:flex;gap:5px;margin:22px 0}.progress-step{flex:1;display:flex;align-items:center;gap:6px}.progress-step>span{background:#f2f3ef;border:1px solid #e6e9e2;color:#a0a799;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;font-size:10px;flex-shrink:0}.progress-step.done>span{background:#e8f0e4;border-color:#dce9d4;color:#6e8e5f}.progress-step svg{width:13px}.progress-step small{font-size:10px;color:#929c8a}.progress-step small b{display:block;font-weight:400;font-size:10px;margin-top:3px}.member-foot{border-top:1px solid #eef0ea;padding-top:13px;font-size:10px;color:#8a9584;display:flex;justify-content:space-between;gap:8px}.member-foot>span{display:flex;align-items:center;gap:4px;overflow-wrap:anywhere}.member-foot svg{width:13px;height:13px}.empty{text-align:center;background:white;border:1px dashed var(--border);padding:50px 20px;border-radius:15px;grid-column:1/-1}.empty>svg{width:36px;height:36px;color:#a6b99d}.empty h3{margin:16px 0 10px}.empty p{font-size:13px;color:var(--muted);margin-bottom:20px}.form-layout{max-width:840px}.form-section{padding:26px;background:white;border:1px solid var(--border);border-radius:15px;margin-bottom:17px}.form-section h2{font-size:17px;display:flex;align-items:center;gap:10px;margin-bottom:21px}.section-number{background:#eef3e9;color:#7e9670;font-size:10px;width:26px;height:26px;display:grid;place-items:center;border-radius:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field label{font-size:12px;font-weight:500}.field label em{font-style:normal;color:#af6554;margin-left:4px}.field input,.field select,.field textarea{min-height:46px;border:1px solid #dce3d8;border-radius:8px;padding:11px 12px;width:100%;font-size:16px;background:#fff;color:var(--ink);min-width:0}.field textarea{min-height:125px;resize:vertical;line-height:1.7}.field.full{grid-column:1/-1}.field small,.form-hint{font-size:11px;color:var(--muted);line-height:1.8}.field .field-error{color:#ac453b;min-height:0}.field [aria-invalid="true"]{border-color:#c36554}.check-label{display:flex;align-items:center;gap:10px;font-size:14px;min-height:44px;cursor:pointer}.check-label input{width:20px;height:20px;accent-color:var(--green)}.checks{display:grid;gap:6px}.date-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:22px}.date-input-wrap{position:relative}.date-input-wrap input{padding-right:30px;font-size:13px}.clear-date{border:0;background:transparent;min-height:30px;color:#85917d;text-decoration:underline;font-size:11px;align-self:flex-start}.form-actions{display:flex;gap:10px;justify-content:flex-end;padding:6px 0 16px}.form-message{color:#ac453b;font-size:13px;margin-bottom:12px;line-height:1.7}.form-message:empty{display:none}.back-link{display:inline-flex;gap:7px;align-items:center;font-size:12px;color:var(--muted);min-height:44px;margin-bottom:14px}.detail-header{display:flex;gap:16px;align-items:center;margin-bottom:24px}.detail-header .avatar{width:65px;height:65px;font-size:25px;border-radius:20px}.detail-header h1{overflow-wrap:anywhere}.detail-header p{font-size:12px;color:var(--muted);margin-top:7px}.detail-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:20px}.info-list{display:grid;grid-template-columns:1fr 1fr;gap:21px;margin-top:24px}.info-list dt{font-size:11px;color:var(--muted);margin-bottom:7px}.info-list dd{margin:0;font-size:14px;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.8}.info-list .full{grid-column:1/-1}.notice{background:#fcf4e5;border:1px solid #f0e2c9;color:#947639;font-size:12px;padding:13px 16px;border-radius:10px;line-height:1.8;margin:18px 0}.notice p+p{margin-top:4px}.detail-actions{display:flex;justify-content:space-between;gap:10px;margin-top:22px}.education-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:20px}.education-list{display:grid;gap:8px;align-content:start}.education-person{border:1px solid var(--border);background:white;border-radius:12px;padding:14px;display:flex;align-items:center;gap:10px;text-align:left;width:100%}.education-person.active{border-color:#8baa7c;background:#f0f5ed}.education-person strong{font-size:13px}.education-person small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.education-editor{align-self:start;position:sticky;top:20px}.education-editor h2{margin-bottom:7px}.education-editor>p{font-size:12px;color:var(--muted);margin-bottom:23px}#toast{position:fixed;bottom:30px;left:calc(50% + 122px);transform:translateX(-50%);background:#243e2f;color:#fff;padding:13px 22px;border-radius:12px;font-size:13px;z-index:100;max-width:90vw;box-shadow:0 4px 24px #243e2f20;display:none}#toast.show{display:block}dialog{border:1px solid var(--border);border-radius:18px;padding:28px;max-width:440px;width:calc(100% - 32px);color:var(--ink)}dialog::backdrop{background:#17291f60;backdrop-filter:blur(3px)}dialog h2{margin-bottom:14px}dialog p{font-size:13px;color:var(--muted);margin-bottom:20px;overflow-wrap:anywhere}dialog .dialog-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.success-icon{width:58px;height:58px;border-radius:50%;background:#eaf2e5;color:#729766;display:grid;place-items:center;margin-bottom:18px}.loading{padding:80px;text-align:center;color:var(--muted)}
@media(min-width:1500px){main{padding-top:45px}.hero{min-height:205px}.stats-grid{gap:20px}.home-columns{gap:28px}}
@media(max-width:1190px){.sidebar{width:210px;padding:30px 18px}.workspace{margin-left:210px}.topbar{padding:0 28px}main{padding:30px 28px}.page-footer{padding:22px 28px}.stat{padding:16px}.home-columns{grid-template-columns:1.35fr 1fr}.member-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.education-layout{grid-template-columns:270px minmax(0,1fr)}#toast{left:calc(50% + 105px)}}
@media(max-width:1023px){.sidebar{display:none}.workspace{margin-left:0}.topbar{height:65px;padding:0 25px}.desktop-top-label{display:none}.mobile-brand{display:block;font-size:18px;font-weight:800;letter-spacing:-.6px}.mobile-brand span{font-size:12px;font-weight:400;color:var(--muted);margin-left:5px}main{padding:28px 25px 95px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;border-top:1px solid var(--border);background:#fffffff5;backdrop-filter:blur(12px);z-index:30;padding:7px 14px calc(7px + env(safe-area-inset-bottom))}.bottom-nav .nav-item{flex:1;justify-content:center;flex-direction:column;gap:5px;font-size:10px;padding:8px 5px;min-height:52px;border-radius:10px}.bottom-nav .nav-item svg{width:21px;height:21px}.page-footer{display:none}#toast{bottom:calc(90px + env(safe-area-inset-bottom));left:50%}.education-layout{grid-template-columns:260px minmax(0,1fr)}.detail-layout{gap:15px}}
@media(max-width:767px){h1{font-size:25px}.page-heading{margin-bottom:22px;align-items:flex-start}.page-heading .button{padding:10px 12px;font-size:11px;margin-top:15px}.page-heading .button svg{width:16px}.page-heading>div>p:last-child{font-size:12px;max-width:240px}.hero{padding:25px 22px;min-height:188px;margin-bottom:25px}.hero h2{font-size:23px}.hero-art{width:100px;position:absolute;right:-13px;bottom:9px;height:130px;opacity:.7}.art-orbit{width:120px;height:120px}.art-orbit:nth-child(2){width:85px;height:85px}.art-sprout{font-size:67px}.art-star{right:20px;font-size:19px}.hero>div:first-child{position:relative;z-index:1}.hero p{max-width:230px;font-size:11px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.stat{padding:17px}.stat-number{font-size:31px}.section-header h2{font-size:17px}.section-header p{font-size:10px}.semester-control{gap:3px;padding:2px 6px}.semester-control select{font-size:11px;max-width:150px}.semester-control svg{display:none}.insight-strip{font-size:11px;padding:12px;align-items:flex-start;line-height:1.7;margin-bottom:25px;flex-wrap:wrap}.home-columns{grid-template-columns:1fr;gap:18px}.panel{padding:21px}.recent-row{min-height:74px}.member-grid{grid-template-columns:1fr}.member-card{padding:21px}.toolbar{flex-wrap:wrap}.toolbar .search-box{flex-basis:100%}.filters{gap:7px}.filters label{font-size:10px;flex-direction:column;align-items:flex-start;gap:4px}.filters select{font-size:11px;max-width:150px}.form-section{padding:21px 18px}.form-grid{gap:17px 13px}.form-grid>.field:first-child{grid-column:1/-1}.date-fields{grid-template-columns:1fr;gap:12px}.date-fields .field{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:5px}.date-fields .field .date-input-wrap{grid-column:2}.date-fields .field .clear-date{grid-column:2;text-align:left;justify-self:start;padding:0}.date-fields .field input{font-size:16px}.date-fields .field .field-error{grid-column:2}.detail-layout{grid-template-columns:1fr}.education-layout{grid-template-columns:1fr}.education-list{max-height:310px;overflow:auto}.education-editor{position:static}.form-actions{justify-content:stretch}.form-actions>*{flex:1}.detail-header h1{font-size:27px}.form-hint{margin-top:5px}.page-heading:has(+ .form-layout)>div>p:last-child{max-width:none}}
@media(max-width:359px){main{padding:24px 15px 95px}.topbar{padding:0 15px}.demo-pill{font-size:9px;padding:6px 8px}.mobile-brand{font-size:16px}.mobile-brand span{font-size:10px}.hero{padding:22px 18px}.hero h2{font-size:21px}.hero-art{opacity:.35}.stat{padding:13px}.stat-top{font-size:11px}.stat-icon{width:28px;height:28px}.stat-bottom{font-size:9px}.recent-row .badge{font-size:9px;padding:5px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.filters select{max-width:140px}.progress-step small b{font-size:9px}.page-heading .button{padding:10px 8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:359px){.page-heading{display:block}.page-heading>.button{margin-top:14px}main>.section-header{align-items:flex-start;flex-wrap:wrap}main>.section-header>div{width:100%}}

/* 세례 선택: 일반 입력 필드의 너비/패딩 규칙과 분리합니다. */
.baptism-choice{grid-column:1/-1;min-height:56px;padding:14px 16px;border:1px solid var(--border);border-radius:10px;background:#f8faf6;transition:background .15s,border-color .15s}
.baptism-choice input{flex:0 0 20px;width:20px;height:20px;min-height:20px;margin:0;padding:0}
.baptism-choice span{line-height:1.5}
.baptism-choice:hover{border-color:#9bb296}
.baptism-choice:has(input:checked){border-color:#8daf87;background:var(--green-light)}
.baptism-choice:has(input:focus-visible){outline:3px solid #8daf87;outline-offset:3px}
.baptism-choice input:focus-visible{outline:none}

.access-panel{max-width:440px;margin:40px auto;padding:28px}.access-panel h1{font-size:25px}.access-panel form{margin-top:24px}.access-panel .button{width:100%;margin-top:16px}.access-panel .form-message{margin-top:10px}.logout-button{border:0;border-left:1px solid #dce8d9;background:none;color:inherit;padding:0 0 0 9px;margin-left:2px;min-height:30px;font-size:inherit}

/* Small screens: full-width fields and stable action labels. */
dialog{max-width:400px;width:calc(100% - 32px);max-height:calc(100dvh - 32px);padding:24px;border-radius:20px;box-shadow:0 24px 80px #17291f26;overflow:auto;overscroll-behavior:contain}
dialog::backdrop{background:#17291f55;backdrop-filter:blur(2px)}
dialog h2{font-size:20px;line-height:1.5;letter-spacing:-.5px;margin-bottom:10px}
dialog p{font-size:14px;line-height:1.7;margin-bottom:24px;overflow-wrap:break-word}
dialog .dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
dialog .dialog-actions .button{width:100%;min-width:0;min-height:48px;font-size:14px;padding:12px 8px;border-radius:10px}
dialog[data-variant="success"] .dialog-actions .primary{grid-column:1/-1}
.dialog-actions .button:only-child{grid-column:1/-1}
.loading{padding:64px 12px;display:flex;flex-direction:column;align-items:center;gap:16px;font-size:14px;white-space:nowrap}
.loading-spinner{width:24px;height:24px;border:2px solid var(--border);border-top-color:var(--green);border-radius:50%;animation:loading-spin .8s linear infinite}
@keyframes loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.loading-spinner{animation:none}}
body{word-break:keep-all;overflow-wrap:break-word}
h1,h2,h3,p,label{word-break:keep-all;overflow-wrap:break-word}
.insight-strip strong{white-space:nowrap}
.page-heading>div,.section-header>div{min-width:0}
.section-header>div{flex:1}
.text-button,.button,.logout-button{white-space:nowrap;flex-shrink:0}
.section-header .text-button{display:inline-flex;align-items:center;gap:6px;min-height:44px}
.hero>div:first-child{max-width:100%}
.logout-button{min-height:44px}
@media(max-width:767px){
  .topbar{height:64px;padding:0 16px;gap:8px}
  .mobile-brand{display:flex;align-items:baseline;gap:6px;font-size:18px;white-space:nowrap}
  .mobile-brand span{margin:0;font-size:11px}
  .demo-pill{font-size:11px;padding:0 9px;gap:6px}
  main{padding:24px 16px calc(100px + env(safe-area-inset-bottom))}
  h1{font-size:25px;line-height:1.4;letter-spacing:-.8px}
  .page-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-bottom:24px}
  .page-heading>div>p:last-child{max-width:none;font-size:13px;margin-top:8px}
  .page-heading>.button{margin:0;min-height:48px;font-size:14px;justify-content:center}
  .hero{padding:24px;min-height:0;border-radius:16px;margin-bottom:28px}
  .hero h2{font-size:22px;line-height:1.6}
  .hero p{max-width:none;font-size:13px;margin-top:16px}
  .hero-tag{font-size:10px;letter-spacing:1.4px}
  main>.section-header{flex-wrap:wrap;align-items:flex-start}
  main>.section-header>div{flex-basis:100%}
  .section-header h2{font-size:18px;line-height:1.5}
  .section-header p{font-size:12px;line-height:1.65}
  .section-header .text-button{font-size:12px;gap:4px}
  .section-header .text-button svg{width:16px;height:16px}
  .panel{padding:20px;border-radius:14px}
  .recent-row{gap:10px;padding:16px 0;min-height:80px;flex-wrap:wrap}
  .recent-row>div{flex:1;min-width:100px}
  .recent-row strong{font-size:15px;overflow-wrap:anywhere}
  .recent-row p{font-size:12px;line-height:1.6}
  .recent-row .badge{font-size:10px;padding:6px 8px}
  .recent-row .avatar{width:36px;height:36px;border-radius:12px}
  .insight-strip{font-size:13px;padding:16px;gap:12px}
  .insight-strip a{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}
  .stat-bottom{font-size:11px;line-height:1.6}
  .form-section{padding:20px;border-radius:14px;margin-bottom:16px}
  .form-section h2{font-size:18px;margin-bottom:24px}
  .form-grid{grid-template-columns:minmax(0,1fr);gap:20px}
  .field label{font-size:14px}
  .field input,.field select,.field textarea{font-size:16px;min-height:48px;padding:12px}
  .field small,.form-hint{font-size:12px}
  .form-layout{margin-top:16px}
  .date-fields .field{display:flex;align-items:stretch;gap:8px}
  .date-fields .field input{font-size:16px;padding:12px}
  .clear-date{min-height:44px;font-size:12px}
  .form-actions .button{font-size:14px;min-height:48px}
  .bottom-nav{padding:6px 8px calc(6px + env(safe-area-inset-bottom))}
  .bottom-nav .nav-item{font-size:11px;min-height:56px;padding:8px 3px}
  .bottom-nav .nav-item span{white-space:nowrap}
  .access-panel{margin:16px auto;padding:24px}
  input:focus-visible,select:focus-visible,textarea:focus-visible{outline-width:2px;outline-offset:2px}
}
@media(max-width:359px){
  .mobile-brand{font-size:16px}.mobile-brand span{font-size:10px}
  .demo-pill{font-size:10px;padding:0 7px;gap:5px}
  .hero{padding:20px}.hero h2{font-size:20px}
  .recent-row .badge{margin-left:46px}
}

/* Shared reading sizes, contrast, and consistent controls. */
:root{--muted:#657369}
main:focus{outline:none}
.desktop-top-label,.sidebar-foot,.nav-label{color:var(--muted)}
.page-heading>div>p:last-child{color:var(--muted);font-size:14px}
.stat-top,.stat-bottom,.recent-row p,.journey-line p,.journey-note{color:var(--muted)}
.stat-top{font-size:13px}.stat-bottom{font-size:12px;line-height:1.6}
.badge{font-size:12px;padding:6px 9px;line-height:1.5}
.status-0{color:#566052}.status-1{color:#555b8c}.status-2{color:#806019}.status-3{color:#40654a}.status-4{color:#235c45}
.member-heading h3{font-size:17px}.member-heading p{font-size:13px}
.card-status,.member-foot{font-size:12px;color:var(--muted);flex-wrap:wrap;row-gap:10px}
.progress-step small,.progress-step small b{font-size:12px;color:var(--muted)}
.progress-step>span{color:#657369}.progress-step.done>span{color:#40654a}
.field label,.info-list dt{font-size:13px;color:#54645a}
.field small,.form-hint,.result-count{font-size:12px;color:var(--muted)}
.info-list{grid-template-columns:repeat(2,minmax(0,1fr))}.info-list>div{min-width:0}
.detail-header>div{min-width:0}.detail-header{margin-bottom:0}
.search-box input{font-size:16px;min-height:48px}
.search-box:focus-within{border-color:#6c9278;box-shadow:0 0 0 2px #235c451a}
.filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:12px;padding:16px;border:1px solid var(--border);border-radius:14px;background:white;align-items:end}
.filters label{flex-direction:column;align-items:stretch;gap:8px;font-size:12px;color:var(--muted);min-width:0}
.filters select{width:100%;max-width:none;font-size:14px;min-height:48px;padding:10px 8px;color:var(--ink)}
.filters .text-button{justify-content:center;min-height:48px;padding:8px}
.education-person>span:last-child{min-width:0;flex:1}.education-person strong{font-size:15px;overflow-wrap:anywhere}.education-person small{font-size:12px}
.education-list{gap:10px}.education-editor .section-header{flex-wrap:wrap;gap:10px;align-items:flex-start}
.education-editor h2{min-width:0;overflow-wrap:anywhere}.education-editor .form-actions{margin-top:18px;padding-bottom:0}
.education-back{display:none}
.clear-date{min-height:44px;color:#576a5c;font-size:12px}
.checks{padding:12px 14px;background:#f8faf6;border:1px solid var(--border);border-radius:10px;margin-bottom:8px}
.check-label input{flex:0 0 20px;margin:0}
.empty h3{line-height:1.6}.empty p{margin-top:10px}
.education-editor>p,.detail-header p,.back-link{font-size:13px}
.journey-line strong{font-size:14px}.journey-line p,.journey-note{font-size:12px}
.access-panel .field label{font-size:14px}.access-panel h1{line-height:1.5}
.bottom-nav .nav-item{font-size:12px}
@media(min-width:768px) and (max-width:1023px){.education-editor .date-fields{grid-template-columns:minmax(0,1fr)}}
@media(max-width:767px){
  .page-heading>div>p:last-child{font-size:14px;line-height:1.7}
  .bottom-nav .nav-item{height:56px;min-height:56px;line-height:1.2;padding:7px 3px}
  .stat{padding:16px}.stat-number{font-size:32px}.stat-top{font-size:13px}.stat-bottom{font-size:12px}
  .stat-icon{width:28px;height:28px}.stat-icon svg{width:18px;height:18px}
  .recent-row .badge{font-size:11px}.recent-row>div:nth-child(2){min-width:100px}
  .filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;padding:14px}
  .filters .text-button{grid-column:1/-1;min-height:44px;background:#f6f8f4;border-radius:8px}
  .member-card{padding:20px}.member-foot{font-size:13px}
  .info-list{gap:22px 16px}.info-list dt{font-size:13px}.info-list dd{font-size:15px}
  .progress-row{flex-wrap:wrap;gap:10px}.progress-step{min-width:65px}
  .detail-layout .progress-step{flex-direction:column;align-items:flex-start;gap:8px}
  .progress-step small b{white-space:nowrap}
  .education-tools.editor-open{display:none}
  .education-layout[data-selected="true"] #education-results{display:none}
  .education-layout[data-selected="false"] #education-editor{display:none}
  .education-list{max-height:none;overflow:visible}
  .education-back{display:inline-flex;align-items:center;gap:7px;min-height:44px;border:0;background:none;color:var(--green);font-size:13px;padding:0;margin-bottom:14px;cursor:pointer}
  .education-editor .section-header{display:block}.education-editor .section-header h2{font-size:20px;line-height:1.5;margin-bottom:10px}
  .education-editor .section-header .badge{margin-bottom:4px}
  #member-form .form-actions,#education-form .form-actions{position:fixed;left:0;right:0;bottom:calc(69px + env(safe-area-inset-bottom));z-index:29;display:flex;gap:10px;margin:0;padding:12px 16px;background:#fffffff5;border-top:1px solid var(--border);box-shadow:0 -4px 16px #24382f08;backdrop-filter:blur(12px)}
  #member-form .form-actions>.secondary,#education-form .form-actions>.secondary{flex:1}
  #member-form .form-actions>.primary,#education-form .form-actions>.primary{flex:2}
  #member-form .form-actions .button,#education-form .form-actions .button{padding:12px 8px;min-height:48px}
  main:has(#member-form),main:has(.education-layout[data-selected="true"] #education-form){padding-bottom:calc(180px + env(safe-area-inset-bottom))}
  .date-fields .field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center}
  .date-fields .field label{grid-column:1;grid-row:1}
  .date-fields .field .clear-date{grid-column:2;grid-row:1;justify-self:end;align-self:center}
  .date-fields .field .date-input-wrap{grid-column:1/-1;grid-row:2}
  .date-fields .field .field-error{grid-column:1/-1;grid-row:3}
  .field label{font-size:14px}.field textarea{min-height:150px}
  .form-hint{line-height:1.7}
}
@media(max-width:359px){
  .recent-row{display:grid;grid-template-columns:36px minmax(0,1fr);gap:6px 10px}
  .recent-row .avatar{grid-row:1/3}.recent-row .badge{grid-column:2;margin:0;justify-self:start}
  .recent-row>div:nth-child(2){min-width:0}
  .stat-top{font-size:12px}.stat-icon{width:24px;height:24px}
  .progress-step small,.progress-step small b{font-size:11px}
}
