*{box-sizing:border-box}body.public-page{margin:0;background:#f6f9fc;color:#243d58;font:16px/1.6 system-ui,sans-serif;min-height:100vh}button,input{font:inherit}a{color:#2e609e}button,a,input{touch-action:manipulation}button{cursor:pointer;border:1px solid #cddbe8;border-radius:10px;background:white;color:#294d75;padding:12px 18px;min-height:46px;font-weight:600}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #00a0a8;outline-offset:4px}.primary{color:white;background:#2f62a5;border-color:#2f62a5}.primary:hover:not(:disabled){background:#234e86}[hidden]{display:none!important}.preview-banner{font-size:12px;text-align:center;background:#fff2d7;padding:7px 16px;color:#735a2b}.public-header{border-top:5px solid transparent;border-image:linear-gradient(90deg,#ee96b7 25%,#cbdcba 25%,#cbdcba 50%,#0097a4 50%,#0097a4 75%,#3061a3 75%) 1;background:white;border-bottom:1px solid #e0e8ee;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px max(24px,calc((100vw - 1160px)/2))}.public-brand{display:flex;align-items:center;gap:15px;text-decoration:none}.public-brand img{width:70px;height:46px;object-fit:contain}.public-brand strong{display:block;font-size:16px;letter-spacing:.04em;color:#2f62a5}.public-brand small{font-size:12px;color:#008a95;display:block}.language-switch{display:flex;gap:7px}.language-switch button{font-size:13px;padding:8px 12px;min-height:40px}.language-switch .is-selected{background:#e7f5f4;border-color:#008c98}.public-page main{max-width:1160px;padding:0 24px;margin:auto}.eyebrow{display:block;color:#00848e;font-size:13px;font-weight:600;letter-spacing:.05em;margin-bottom:12px}h1{color:#254f81;font-size:clamp(30px,4vw,48px);line-height:1.2;letter-spacing:-.025em;margin:0 0 20px}h2{color:#294f7c;font-size:23px;line-height:1.3;margin:0 0 14px}h3{font-size:16px;margin:0 0 12px}p{margin:0;color:#65768a}.home-intro{text-align:center;max-width:720px;margin:70px auto 40px}.home-intro p{font-size:18px}.role-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:900px;margin:0 auto 80px}.role-card{display:flex;flex-direction:column;align-items:flex-start;text-decoration:none;color:inherit;background:white;border:1px solid #dae6ed;border-radius:22px;padding:35px;box-shadow:0 10px 30px #224b7d06;transition:transform .15s,border-color .15s}.role-card:hover{transform:translateY(-3px);border-color:#80b5c6}.role-card p{max-width:310px;flex:1}.role-icon{display:grid;place-items:center;width:72px;height:72px;border-radius:18px;margin-bottom:30px;background:#e5f4f2;color:#00858f}.role-icon svg{width:45px;height:45px}.teacher-role .role-icon{background:#eef0fb;color:#4266a1}.role-action{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;padding-top:24px;margin-top:30px;border-top:1px solid #e6edf2;color:#2f62a5;font-weight:600}.role-action span{font-size:25px}.public-footer{text-align:center;border-top:1px solid #e0e8ee;padding:26px 24px 30px;margin-top:40px;font-size:12px;background:white}.public-footer img{width:70px;height:34px;object-fit:contain;margin-bottom:10px}.public-footer p{margin:2px 0}.public-footer small{color:#3061a3}.student-heading{margin:28px 0 32px;max-width:740px}.student-heading h1{font-size:38px}.student-heading p{max-width:650px}.back-link{display:block;width:fit-content;text-decoration:none;font-size:14px;margin-bottom:30px}.student-layout{display:grid;grid-template-columns:minmax(0,380px) minmax(0,1fr);gap:30px;align-items:start;margin-bottom:60px}.details-panel,.preview-panel{min-width:0}.details-panel{background:white;border:1px solid #dce6ee;border-radius:18px;padding:28px}.details-panel h2{font-size:19px;margin-bottom:24px}.details-panel label{display:block;font-size:14px;font-weight:600;margin:15px 0 7px}input[type=text]{width:100%;border:1px solid #c9d7e5;border-radius:9px;padding:12px 14px;background:#fff;min-height:48px;color:#203f65}input[type=file]{max-width:100%;font-size:13px;color:#62748b}input[type=file]::file-selector-button{padding:10px 12px;margin-right:8px;border:1px solid #c9d7e5;border-radius:8px;background:#f5f9fc;color:#294f7c;font:inherit;cursor:pointer}.details-panel .photo-heading{margin-top:32px;margin-bottom:20px}.field-help{font-size:12px;line-height:1.7;margin-top:12px}.wide{width:100%;margin-top:24px}.privacy-note{border-top:1px solid #e1e9ef;margin-top:24px;padding-top:20px;font-size:12px}.privacy-note strong{display:block;color:#00808a;font-size:13px;margin-bottom:6px}.preview-panel{position:sticky;top:24px}.preview-heading{display:flex;justify-content:space-between;align-items:center;margin:4px 0 20px}.preview-heading h2{font-size:19px;margin:0}.preview-dot{height:8px;width:8px;background:#b8d5ca;border-radius:50%}.card-placeholder,#student-card{width:100%;height:auto;border-radius:17px;box-shadow:0 16px 40px #254f8110;border:1px solid #d5e1eb;background:white;display:block}.card-placeholder{padding:28px 30px;border-top:8px solid #2f62a5}.sample-brand{display:flex;align-items:center;gap:10px;font-size:15px;color:#2f62a5;letter-spacing:.03em}.sample-brand img{width:52px;height:36px;object-fit:contain}.sample-pair{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin:24px 0}.sample-photo,.sample-qr{aspect-ratio:1;display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:10px;background:#f0f5f8;color:#91aabc;font-size:13px}.sample-photo svg{width:60%;height:60%;fill:#c4d4df;margin-bottom:7px}.sample-qr{background:#fafcfd;border:1px dashed #c8d7e2}.sample-qr svg{width:56%;height:56%;margin-bottom:10px;color:#b5c8d7}.sample-id{text-align:center;border-top:1px solid #e3eaf1;padding-top:20px;color:#8a9cae;font-size:15px}.card-status{font-size:13px;margin:22px 0 18px}.card-actions{display:flex;gap:12px;flex-wrap:wrap}.card-guidance{margin-top:28px;padding-top:22px;border-top:1px solid #dce6ef}.card-guidance h3{color:#3a5776;font-size:15px}.card-guidance p{font-size:13px;max-width:480px}.form-error{font-size:14px;color:#9f3150;background:#fff0f3;padding:12px;border-radius:8px;margin-top:20px}#photo-framing{margin-top:20px}#photo-framing h3{font-size:14px}#photo-crop{width:150px;height:150px;display:block;max-width:100%;border-radius:10px;border:1px solid #d3e0e8}input[type=range]{width:100%;accent-color:#008e99;min-height:30px}@media(max-width:760px){.public-header{padding:17px 20px;gap:12px;flex-wrap:wrap}.public-brand img{width:51px;height:36px}.public-brand strong{font-size:13px}.public-brand small{font-size:10px}.language-switch{margin-left:auto}.language-switch button{padding:7px 10px;font-size:12px}.public-page main{padding:0 20px}.home-intro{margin:44px auto 30px}.home-intro p{font-size:16px}.role-grid{grid-template-columns:1fr;gap:16px;margin-bottom:45px}.role-card{padding:26px}.role-icon{margin-bottom:20px;width:58px;height:58px}.role-icon svg{width:37px;height:37px}.role-action{margin-top:24px;padding-top:18px}.student-layout{grid-template-columns:1fr;gap:30px}.student-heading h1{font-size:32px}.student-heading{margin-top:22px}.back-link{margin-bottom:25px}.details-panel{padding:24px}.preview-panel{position:static}.card-placeholder{padding:20px}.sample-pair{gap:16px}.sample-brand{font-size:12px}.sample-id{font-size:12px}.public-footer{font-size:11px}.card-actions button{flex:1}.student-heading p{font-size:15px}}@media(prefers-reduced-motion:reduce){.role-card{transition:none}}

/* Portrait student card: balanced photo, identity and QR (900 × 1600). */
.card-placeholder,#student-card{max-width:390px;margin-inline:auto}
.card-placeholder{aspect-ratio:9/16;padding:24px;display:flex;flex-direction:column;justify-content:flex-start}
.sample-brand{justify-content:center;font-size:13px}
.sample-pair{display:flex;flex-direction:column;align-items:center;gap:20px;margin:24px 0 0}
.sample-photo{width:57%;flex-shrink:0}
.sample-qr{width:67%;flex-shrink:0}
.sample-id{border:0;padding:0;font-size:14px;max-width:100%}
@media(max-width:760px){.card-placeholder{padding:20px}.sample-brand{font-size:12px}.sample-pair{gap:16px;margin-top:20px}.sample-id{font-size:12px}}
.home-install{margin:24px auto 0}
.home-install button{background:#eaf1fb;border-color:#b8cce6;color:#254f81}
.home-install button:hover{background:#dce9f8}
.home-install .install-app-help{max-width:550px;margin:12px auto 0;font-size:14px;line-height:1.5}

/* v3.0.1 compact landing page: both choices visible without scrolling on a phone */
.home-intro{margin:36px auto 26px}
.home-intro h1{font-size:clamp(26px,3.4vw,36px);line-height:1.25;margin:0 0 8px}
.role-grid{margin-bottom:56px}
.role-card{padding:28px}
.role-icon{width:60px;height:60px;margin-bottom:20px}
.role-action{margin-top:22px;padding-top:18px}
@media(max-width:760px){
  .public-header{padding:10px 16px;gap:8px;border-top-width:4px}
  .public-page main{padding:0 16px}
  .home-intro{margin:14px auto 14px}
  .home-intro .eyebrow{display:none}
  .home-intro h1{font-size:23px;margin:0 0 4px}
  .home-intro p{font-size:14px;margin:0;line-height:1.45}
  .home-install{margin:10px auto 0}
  .home-install button{min-height:0;padding:7px 14px;font-size:13px;border-radius:999px}
  .install-app-help{margin-top:8px;font-size:12.5px}
  .role-grid{gap:10px;margin-bottom:24px}
  .role-card{display:grid;grid-template-columns:52px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:14px;row-gap:2px;align-items:center;padding:14px 16px;border-radius:18px}
  .role-icon{grid-row:1/3;grid-column:1;width:52px;height:52px;margin:0;border-radius:14px}
  .role-icon svg{width:30px;height:30px}
  .role-card h2{grid-column:2;grid-row:1;margin:0;font-size:17px;line-height:1.3}
  .role-card>p{grid-column:2;grid-row:2;margin:0;font-size:13px;line-height:1.4;color:#5b6f84}
  .role-action{grid-column:3;grid-row:1/3;width:auto;margin:0;padding:0;border:0;font-size:0}
  .role-action span{font-size:24px;line-height:1}
}

.nowrap{white-space:nowrap}

/* v3.0.0 landing page illustrations */
.role-icon img{width:78%;height:78%;object-fit:contain;display:block}

/* v3.0.1 iOS top edge: white header under the status bar, colour bar at its foot */
html{background:#fff}
.public-header{border-top:0;border-bottom:4px solid transparent;border-image:linear-gradient(90deg,#ee96b7 25%,#cbdcba 25% 50%,#0097a4 50% 75%,#3061a3 75%) 1;padding-top:calc(env(safe-area-inset-top) + 14px)}
@media(max-width:760px){.public-header{padding-top:calc(env(safe-area-inset-top) + 10px);border-top-width:0}}

/* credits: each name on its own line; the year never wraps alone */
.credit-line{display:block}

/* v3.0.1 role selection: roomy cards with a clear button (option X) */
.role-grid{gap:14px}
.role-grid .role-card{display:grid;grid-template-columns:68px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:14px;row-gap:3px;align-items:center;padding:18px;border-radius:22px;box-shadow:0 8px 22px #2039530d}
.role-grid .role-icon{grid-row:1/3;grid-column:1;width:68px;height:68px;margin:0;border-radius:20px}
.role-grid .role-icon img{width:76%;height:76%}
.role-grid .role-card h2{grid-column:2;grid-row:1;margin:0;font-size:1.05rem;line-height:1.3}
.role-grid .role-card>p{grid-column:2;grid-row:2;margin:0;font-size:.82rem;line-height:1.45;color:#5b6f84}
.role-grid .role-action{grid-column:1/-1;grid-row:3;display:flex;justify-content:center;width:100%;margin:16px 0 0;padding:11px 14px;border:0;border-radius:999px;font-size:.9rem;font-weight:700}
.role-grid .role-action span{font-size:inherit}
.role-grid .role-action span[aria-hidden]{display:none}
.role-grid .student-role .role-action{background:linear-gradient(135deg,#0a8a96,#2d60a5);color:#fff}
.role-grid .teacher-role .role-action{background:#fff;color:#2f62a5;border:1.5px solid #bcd0e8}
