/* A distinct yellow entry point, with large controls for a shared iPad. */
.sidebar .nav-btn.self-nav{background:linear-gradient(135deg,#ffe58c,#f4cf4f);color:#172c38;font-family:'Open Sans',Arial,sans-serif;font-weight:800;letter-spacing:.025em;border:1px solid #d6ad32;border-radius:14px;padding:10px 18px;margin-top:0;gap:9px;box-shadow:0 3px 0 #cfaa3e,0 6px 16px #c69b2420;transition:background .18s,box-shadow .18s,transform .18s}
.sidebar .nav-btn.self-nav span{font-weight:800}
.sidebar .nav-btn.self-nav .icon{width:28px;height:28px;padding:5px;border-radius:50%;background:#ffffff80;stroke-width:2.5}
.sidebar .nav-btn.self-nav:hover{background:linear-gradient(135deg,#ffedaa,#ffda60);transform:translateY(-1px);box-shadow:0 4px 0 #cfaa3e,0 8px 18px #c69b2428}
.sidebar .nav-btn.self-nav.active{background:linear-gradient(135deg,#ffe99b,#f4cf4f);border-color:#ad8220;color:#172c38;box-shadow:0 3px 0 #ad8220,0 0 0 3px #f4d35e30}
.sidebar .nav-btn.self-nav:active{transform:translateY(1px);box-shadow:0 1px 0 #ad8220}
@media(max-width:640px){.sidebar .nav-btn.self-nav{padding:10px 8px;border-radius:11px;letter-spacing:0}}
@media(prefers-reduced-motion:reduce){.sidebar .nav-btn.self-nav{transition:none}}
.self-hero{background:#fff4c9;border:1px solid #e7d180;border-radius:24px;padding:30px;margin:24px 0}.self-hero h1{margin:8px 0 12px}.self-hero p{max-width:680px}.self-tag{display:inline-flex;align-items:center;gap:8px;background:#f4d35e;color:#172c38;border-radius:99px;padding:7px 13px;font-size:13px;font-weight:800;letter-spacing:.04em}
.self-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0}.self-steps article{background:white;border:1px solid #e5e5d9;border-radius:16px;padding:20px}.self-steps b{display:block;font-size:17px;margin:12px 0 8px}.self-steps p{margin:0;font-size:14px;line-height:1.6}.step-dot{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#f4d35e;font-weight:800;color:#172c38}.self-setup-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.self-setup-grid .card{height:fit-content}.self-check{display:flex;gap:12px;align-items:flex-start;font-weight:400}.self-check input{width:22px;height:22px;flex-shrink:0;margin-top:3px}.btn.yellow{background:#f4d35e;color:#172c38;border-color:#e1bd40}.btn.yellow:hover{background:#ffe38a}
.self-body{background:#f6f5ee;color:#172c38;min-height:100svh}.self-shell{max-width:980px;margin:auto;padding:28px 28px 40px}.self-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.self-brand{font-size:29px;font-weight:900;letter-spacing:-1px}.self-brand span{color:#2f7861}.self-context{font-size:14px;text-align:right;line-height:1.6}.self-window{background:white;border:1px solid #e5e5d9;box-shadow:0 16px 45px #172c3809;border-radius:26px;padding:clamp(24px,5vw,44px)}.self-window h1{font-size:clamp(27px,4vw,38px);line-height:1.16;letter-spacing:-.8px;margin:12px 0 16px}.self-window .lead{font-size:18px;line-height:1.7;max-width:680px}.self-window .btn{min-height:54px;font-size:16px;text-transform:none;letter-spacing:0}.self-progress{display:flex;gap:8px;list-style:none;padding:0;margin:0 0 30px}.self-progress li{flex:1;border-top:5px solid #e8ece6;padding-top:9px;font-size:13px;color:#53645e;line-height:1.35}.self-progress li.current{border-color:#e0b42c;color:#172c38;font-weight:800}.self-progress li.done{border-color:#41846a}.self-form{max-width:520px;margin-top:26px}.self-form input{min-height:56px;font-size:19px}.self-form label{margin-bottom:20px;display:block;font-weight:700}.self-form label span{display:block;font-size:14px;font-weight:400;line-height:1.6;margin-top:7px;color:#53645e}.self-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:26px}.self-actions .primary-action{flex:1}.self-footer{display:flex;gap:14px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-top:26px;padding-top:20px;border-top:1px solid #e7ebe5}.self-footer button{font-size:14px!important;min-height:44px!important}.self-summary{display:grid;grid-template-columns:1fr 1fr;gap:18px;background:#f6f7f0;border-radius:18px;padding:24px;margin:22px 0}.self-summary strong{font-size:22px;display:block;margin-top:6px}.self-summary small{color:#53645e}.self-child{display:block;width:100%;text-align:left;border:2px solid #dce5db;border-radius:16px;background:#fff;padding:20px;margin:12px 0;font:inherit;cursor:pointer}.self-child strong{display:block;font-size:23px}.self-child:hover{border-color:#c69b24;background:#fff9e4}.self-note{padding:16px 20px;border-radius:14px;background:#fff4cf;line-height:1.65}.self-note strong{color:#172c38}.self-print-layout{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:start}.self-label-preview{background:#f6f7f0;padding:20px;border:1px solid #e0e5dc;border-radius:18px}.self-label-preview svg{width:100%;height:auto;max-height:380px;display:block}.self-print-list{padding-left:24px;line-height:1.7}.self-print-list li{padding:0 0 14px 6px}.self-complete{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}.self-complete>div{border:1px solid #dde5d9;padding:22px;border-radius:18px}.self-complete h2{font-size:21px}.self-code{font-size:32px;font-weight:900;letter-spacing:5px}.self-help{max-width:560px;padding:30px;border:0;border-radius:22px}.self-help::backdrop{background:#122c38a6}.self-help p{line-height:1.7}.self-idle{background:#fff0b3;padding:15px;border-radius:12px;margin-bottom:20px;line-height:1.6}.self-idle[hidden]{display:none}.self-demo{background:#dfeee5;border-radius:12px;padding:14px;margin-bottom:20px;line-height:1.6}.self-status{min-height:24px;font-size:14px;line-height:1.6;margin:12px 0}.self-window :focus-visible{outline:3px solid #c1951c;outline-offset:3px}.self-window [disabled]{opacity:.6;cursor:wait}
@media(max-width:800px){.self-steps{grid-template-columns:1fr 1fr}.self-setup-grid{grid-template-columns:1fr}.self-shell{padding:20px}.self-print-layout{grid-template-columns:1fr}.self-label-preview{max-width:370px;margin:auto;width:100%}}
@media(max-width:480px){.self-header{align-items:flex-start}.self-context{font-size:12px}.self-window{padding:22px 18px}.self-progress li{font-size:11px}.self-summary,.self-complete{grid-template-columns:1fr}.self-steps article{padding:16px}.self-steps{gap:10px}.self-actions{align-items:stretch}.self-actions .btn{width:100%}.self-hero{padding:24px}.self-shell{padding:14px}}

.self-search-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:24px 0}.self-search-methods .btn{min-width:0;padding:12px 8px}@media(max-width:600px){.self-search-methods{grid-template-columns:repeat(2,minmax(0,1fr))}}.self-search-methods [aria-pressed="true"]{box-shadow:inset 0 0 0 2px #bd901b}

/* The family flow uses the full page, with room to scroll when the keyboard opens. */
@media screen {
 .self-body{--self-gutter:clamp(20px,4vw,56px);background:#fff}
 .self-shell{width:100%;max-width:none;min-height:100svh;margin:0;padding:0;display:flex;flex-direction:column}
 .self-header{flex:none;margin:0;padding:20px var(--self-gutter);padding-left:max(var(--self-gutter),env(safe-area-inset-left));padding-right:max(var(--self-gutter),env(safe-area-inset-right));border-bottom:1px solid #e5e5d9}
 .self-shell>.self-demo{margin:0;border-radius:0;padding:14px var(--self-gutter)}
 .self-window{flex:1;width:100%;min-width:0;display:flex;flex-direction:column;border:0;border-radius:0;box-shadow:none;padding:clamp(24px,3vw,40px) var(--self-gutter);padding-left:max(var(--self-gutter),env(safe-area-inset-left));padding-right:max(var(--self-gutter),env(safe-area-inset-right));padding-bottom:max(24px,env(safe-area-inset-bottom))}
 .self-window>*{flex-shrink:0}
 .self-window>.self-tag{align-self:flex-start}
 .self-window h1{font-size:clamp(30px,3.6vw,48px)}
 .self-window .lead{max-width:none;font-size:clamp(18px,1.7vw,22px);line-height:1.6}
 .self-window .self-form{width:100%;max-width:none}
 .self-window .self-form input{min-height:64px;font-size:22px}
 .self-window .self-form label{font-size:18px}
 .self-window .btn{min-height:64px;font-size:18px}
 .self-window .self-progress li{font-size:clamp(13px,1.4vw,18px)}
 .self-window>.self-actions{margin-bottom:24px}
 .self-window>.self-footer{margin-top:auto;padding-top:24px}
 .self-help{inset:0;width:100%;max-width:none;height:100svh;max-height:none;margin:0;border-radius:0;padding:clamp(28px,6vw,80px);padding-left:max(var(--self-gutter),env(safe-area-inset-left));padding-right:max(var(--self-gutter),env(safe-area-inset-right));padding-bottom:max(28px,env(safe-area-inset-bottom));overflow:auto}
 .self-help[open]{display:flex;flex-direction:column;justify-content:center}
 .self-help h2{font-size:clamp(28px,3.6vw,44px)}
 .self-help p{font-size:clamp(18px,1.8vw,22px)}
 .self-help .btn{min-height:64px;font-size:18px}
 @media(max-width:480px){.self-window{padding-top:24px}.self-window .self-progress{gap:6px}.self-window .self-progress li{font-size:12px}.self-window .self-actions .btn{width:100%}.self-help[open]{justify-content:flex-start}}
}

@media screen {
 .self-print-dialog{width:min(720px,calc(100% - 32px));max-height:calc(100svh - 32px);background:#f4d35e;color:#172c38;border:1px solid #e1bd40;border-radius:24px;padding:clamp(24px,4vw,44px);text-align:center;overflow:auto}
 .self-print-dialog::backdrop{background:#122c38a6}
 .self-print-dialog-intro{font-size:17px;margin-bottom:12px}
 .self-print-dialog h2{font-size:clamp(28px,3vw,40px);font-weight:800;line-height:1.15;margin-bottom:20px}
 .self-print-dialog p{font-size:18px;line-height:1.6}
 .self-print-dialog-actions{display:grid;gap:12px;margin-top:26px}
 .self-print-dialog .btn{min-height:64px;font-size:18px}
 .self-print-dialog .btn.text{color:#172c38;min-height:48px}
}
.self-qr-reader{max-width:760px;width:100%;margin:0 auto}.self-qr-reader .self-front-camera{transform:scaleX(-1);height:clamp(250px,40svh,420px);max-height:48svh;object-fit:contain;border:3px solid #f4d35e}.self-qr-reader .self-actions{margin-top:12px}
.self-scan-window .self-progress{margin-bottom:12px}.self-scan-window h1{font-size:clamp(28px,3vw,36px);margin:8px 0}.self-scan-window>.lead{font-size:18px;line-height:1.4;margin:8px 0}.self-scan-window .self-search-methods{margin:14px 0}.self-scan-window .self-qr-reader .lead{font-size:18px;line-height:1.4;margin:0 0 8px}.self-scan-window .self-front-camera{height:clamp(180px,30svh,300px);margin:10px 0}.self-scan-window .self-status{margin:8px 0}

/* A calm, welcoming first screen for each family using the shared iPad. */
.self-welcome-window{background:radial-gradient(ellipse at 0 0,#fff6d9 0,transparent 48%),radial-gradient(ellipse at 100% 0,#eef8ff 0,transparent 48%),#fff}
.self-welcome{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;max-width:800px;margin:0 auto;padding:8px 0 28px;text-align:center}
.self-welcome-logo{width:clamp(88px,11vw,132px);height:auto;border-radius:50%;margin-bottom:20px}
.self-welcome .self-tag{font-size:13px;letter-spacing:.08em}
.self-window .self-welcome h1{font-size:clamp(34px,4.6vw,56px);line-height:1.12;margin:18px 0}
.self-window .self-welcome h1:focus{outline:none}
.self-window .self-welcome .lead{max-width:660px;margin:0;font-size:clamp(18px,2vw,22px);line-height:1.6}
.self-window .self-start{width:min(100%,440px);min-height:88px;margin:28px 0 30px;border-radius:20px;font-size:32px;font-weight:800;gap:24px;box-shadow:0 5px 0 #d6b342}
.self-window .self-start:active{transform:translateY(3px);box-shadow:0 2px 0 #d6b342}
.self-welcome-help{width:100%;max-width:720px;padding:20px 24px;background:#edf6fc;border:1px solid #d8e6f0;border-radius:20px}
.self-welcome-help h2{font-size:21px;letter-spacing:0;margin:0 0 8px}
.self-welcome-help p{font-size:17px;line-height:1.6;margin:0}
@media(max-width:480px){.self-window .self-start{min-height:80px;font-size:28px}.self-welcome-help{padding:18px}.self-welcome-help p{font-size:16px}}

/* New families remain in the same station and continue to confirmation. */
.self-first-visit{white-space:normal;text-align:center;line-height:1.5}
.self-registration{inset:0;width:100%;max-width:none;height:100svh;max-height:none;margin:0;border:0;border-radius:0;padding:clamp(24px,4vw,48px) max(20px,env(safe-area-inset-right)) max(32px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));overflow:auto;color:#172c38;background:#fff;overscroll-behavior:contain}
.self-registration::backdrop{background:#172c3880}
.self-registration-content{width:100%;max-width:820px;margin:auto}
.self-registration h2{font-size:clamp(28px,3.6vw,42px);margin:18px 0 12px}
.self-registration p{line-height:1.6}
.self-registration form{margin-top:24px}
.self-registration input:not([type=checkbox]),.self-registration textarea{font-size:18px;min-width:0}
.self-registration input:not([type=checkbox]){min-height:56px}
.self-registration .contact-fieldset{min-width:0}
.self-registration .btn{min-height:64px;font-size:18px;white-space:normal}
.self-registration .form-error:empty{display:none}
.self-registration .check{align-items:flex-start;line-height:1.5}
.self-registration .check input{flex-shrink:0;margin-top:4px}
@media(max-width:600px){.self-registration .contact-fields{grid-template-columns:1fr}.self-registration .self-actions{flex-direction:column;align-items:stretch}.self-registration .self-actions .btn{width:100%}}

.self-choice{display:flex;align-items:center;gap:18px;cursor:pointer}.self-choice input{width:28px;height:28px;flex:0 0 28px;accent-color:#2f7861}.self-choice>span{min-width:0}.self-choice>span>span{display:block;margin-top:6px;font-size:16px;line-height:1.5}.self-choice.selected{background:#fff4c9;border-color:#b18c1e;box-shadow:inset 0 0 0 1px #b18c1e}.self-choice:focus-within{outline:3px solid #2d6c96;outline-offset:3px}.self-batch-list{padding-left:24px;line-height:1.8}.self-batch-preview{display:grid;gap:20px}.self-batch-preview figure{margin:0}.self-batch-preview figcaption{font-weight:700;font-size:16px;margin-bottom:8px;line-height:1.4}
