.student-shell { padding-block:32px 80px; }
.student-shell .button { appearance:none; -webkit-appearance:none; min-height:46px; border:1px solid transparent; line-height:1.35; gap:10px; }
.student-shell .button.secondary { color:var(--ink); background:var(--bg); border-color:var(--line); }
.student-nav { display:flex; gap:12px; flex-wrap:wrap; padding-bottom:28px; border-bottom:1px solid var(--line); margin-bottom:34px; }
.student-nav form { display:flex; margin:0 0 0 auto; }
.student-nav .button { padding:12px 18px; border-radius:10px; }
.student-shell .student-nav a[aria-current] { background:var(--ink); color:var(--bg); border-color:var(--ink); }
.student-shell .student-nav .account-exit { color:var(--muted); font-weight:500; background:transparent; }
.student-shell .student-nav .account-exit:hover { color:var(--accent); border-color:var(--accent); background:var(--accent-soft); }
.student-nav .button:hover { transform:none; }
.account-exit svg { flex-shrink:0; }
.student-notice { border-left:3px solid var(--accent); background:var(--surface); padding:16px 22px; margin-bottom:24px; border-radius:0 12px 12px 0; }
.auth-layout { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1fr); max-width:1060px; margin:20px auto; border:1px solid var(--line); border-radius:24px; overflow:hidden; box-shadow:0 25px 70px #102c5209; }
.auth-brand { position:relative; overflow:hidden; display:flex; flex-direction:column; justify-content:center; padding:50px; color:#fff; background:radial-gradient(ellipse at 100% 100%,#75476066,transparent 65%),#102c52; }
.auth-brand:after { content:''; position:absolute; width:420px; height:420px; border:1px solid #ffffff18; border-radius:50%; left:-180px; bottom:-190px; pointer-events:none; }
.auth-brand>p { font-family:Georgia,serif; font-size:clamp(2.3rem,4vw,3.4rem); line-height:1.05; letter-spacing:-.045em; }
.auth-brand>p span { color:#edbdc3; }
.auth-monogram { font-family:Georgia,serif; font-size:100px; letter-spacing:-.2em; line-height:1; margin-bottom:30px; opacity:.4; }
.auth-monogram span { position:relative; top:15px; }
.auth-signature { font-size:clamp(.8rem,1.3vw,1rem); margin-top:65px; white-space:nowrap; }
.auth-panel { padding:44px clamp(24px,4vw,54px); min-width:0; }
.auth-panel h1 { font-size:clamp(2rem,3.2vw,2.8rem); margin-bottom:28px; }
.auth-description { color:var(--muted); margin-block:0 24px; }
.student-form { display:grid; gap:17px; }
.student-field label { display:block; font-size:.9rem; font-weight:600; margin-bottom:6px; }
.student-field input:not([type=checkbox]) { width:100%; min-height:48px; font:inherit; color:var(--ink); padding:10px 14px; border:1px solid var(--line); background:var(--bg); border-radius:9px; }
.student-field input[aria-invalid=true] { border-color:var(--accent); }
.checkbox-field { display:flex; align-items:center; gap:10px; }
.checkbox-field label { margin:0; font-weight:400; }
.checkbox-field input { width:19px; height:19px; accent-color:var(--button); }
.password-help { font-size:.82rem; color:var(--muted); }
.field-errors { color:var(--accent); font-size:.875rem; }
.field-errors ul { list-style:none; padding:0; margin:5px 0; }
.auth-submit { width:100%; margin-top:4px; }
.auth-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:25px; border-top:1px solid var(--line); padding-top:24px; }
.auth-links .button { font-size:.85rem; padding:10px 15px; }
.student-heading { margin-block:12px 32px; }
.student-greeting { color:var(--muted); font-size:clamp(1rem,1.5vw,1.125rem); text-transform:none; letter-spacing:normal; }
.student-greeting strong { color:var(--ink); font-weight:500; }
.student-heading h1 { font-size:clamp(2.5rem,4.5vw,4rem); margin-top:12px; }
.student-empty { padding:50px 30px; text-align:center; border:1px solid var(--line); border-radius:22px; background:var(--surface); }
.empty-symbol { font-size:44px; color:var(--accent); margin-bottom:15px; }
.student-empty h2 { margin-bottom:25px; }
.student-empty .button { margin:6px; }
.resume-card { display:grid; grid-template-columns:1.1fr 1fr; background:var(--surface); border:1px solid var(--line); border-radius:20px; overflow:hidden; margin-bottom:36px; }
.resume-image { align-self:center; padding:24px; }
.resume-image img { width:100%; border-radius:10px; }
.resume-copy { padding:32px; display:flex; flex-direction:column; align-items:start; gap:16px; }
.resume-copy p:not(.eyebrow) { color:var(--muted); }
.resume-copy>span,.student-course-body>span:not(.eyebrow) { font-size:.85rem; color:var(--muted); }
progress { appearance:none; display:block; height:6px; width:100%; border:0; border-radius:10px; background:var(--line); overflow:hidden; accent-color:var(--accent); }
progress::-webkit-progress-bar { background:var(--line); }
progress::-webkit-progress-value { background:var(--accent); }
progress::-moz-progress-bar { background:var(--accent); }
.student-course-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.student-course { border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.student-course>img { width:100%; }
.student-course-body { padding:24px; display:flex; flex-direction:column; gap:14px; align-items:start; }
.student-course-body h2 { font-size:1.6rem; }
.profile-card { max-width:800px; border:1px solid var(--line); border-radius:20px; padding:32px; }
.profile-card dl { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin:0 0 32px; }
.profile-card dt { font-size:.8rem; color:var(--muted); margin-bottom:5px; }
.profile-card dd { margin:0; font-size:1.1rem; }
.lesson-layout { display:grid; grid-template-columns:minmax(0,1fr) 350px; gap:36px; align-items:start; }
.lesson-title { font-size:clamp(2rem,3.3vw,3rem); margin:20px 0 26px; }
.lesson-preview-label { margin:0 0 16px; }
.lesson-stage { aspect-ratio:16/9; border-radius:16px; overflow:hidden; background:#07172c; border:1px solid var(--line); }
.lesson-stage iframe { width:100%; height:100%; border:0; }
.lesson-stage.is-unavailable { background:var(--surface); }
.lesson-stage [hidden] { display:none; }
.video-unavailable { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; padding:24px; text-align:center; color:var(--muted); gap:10px; }
.video-unavailable>span { font-size:32px; color:var(--accent); line-height:1; }
.video-unavailable p { max-width:400px; font-size:clamp(.875rem,1.5vw,1rem); }
.lesson-materials { margin-top:32px; padding:25px; border:1px solid var(--line); border-radius:16px; }
.lesson-materials summary { cursor:pointer; font-size:1.25rem; font-weight:600; }
.lesson-materials li { margin-block:10px; }
.lesson-materials img { margin-top:24px; border-radius:10px; }
.lesson-outline { border:1px solid var(--line); border-radius:16px; padding:24px; }
.lesson-outline h2 { font-size:1.55rem; margin-bottom:18px; }
.lesson-outline ol { list-style:none; padding:0; margin:20px 0 0; }
.lesson-outline li+li { border-top:1px solid var(--line); }
.lesson-outline .lesson-link { display:flex; width:100%; text-align:left; align-items:center; gap:12px; background:transparent; color:var(--ink); border:0; padding:15px 8px; text-decoration:none; font-size:.875rem; border-radius:6px; line-height:1.5; }
.lesson-outline .lesson-link[aria-current] { background:var(--accent-soft); border-left:3px solid var(--accent); }
.lesson-outline button:disabled { color:var(--muted); cursor:not-allowed; }
.lesson-outline .status-icon { color:var(--accent); flex-shrink:0; }
.lesson-error { padding:40px; background:var(--surface); border-radius:16px; }
.lesson-error p { margin-bottom:22px; }
.lesson-quiz { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px; margin-top:24px; padding:24px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.lesson-quiz h2 { flex:1 1 220px; min-width:0; font-size:1.4rem; margin:0; }
.lesson-quiz .button { min-height:44px; white-space:normal; }
#player-error { margin-top:20px; padding:18px; border:1px solid var(--accent); border-radius:12px; }
#player-error button { margin-top:10px; }
@media(max-width:1000px) { .lesson-layout { grid-template-columns:minmax(0,1fr) 290px; gap:24px; } .student-course-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { .auth-layout,.resume-card,.lesson-layout { grid-template-columns:1fr; } .auth-brand { padding:24px 28px; } .auth-brand>p { font-size:1.9rem; } .auth-monogram,.auth-signature { display:none; } .auth-panel { padding:28px 24px; } .auth-panel h1 { font-size:2rem; } .student-course-grid { grid-template-columns:1fr; } .resume-image { padding:18px 18px 0; } .resume-copy { padding:24px; } .lesson-outline { padding:18px; } .student-shell { padding-block:18px 50px; } }
@media(max-width:480px) { .profile-card dl { grid-template-columns:1fr; } .student-nav { gap:8px; } .student-nav .button { padding:10px 12px; font-size:.82rem; } .auth-links .button { width:100%; } .student-empty { padding:30px 20px; } .student-empty .button { display:flex; } .lesson-materials { padding:18px; } }

/* Google uses its own recognizable white button in both site themes. */
.google-login-form {margin:0;}
.auth-divider {display:flex;align-items:center;gap:16px;margin:24px 0;color:var(--muted);font-size:.9rem;}
.auth-divider::before,.auth-divider::after {content:'';flex:1;height:1px;background:var(--line);}
.google-login-form .google-login-button {display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;background:#fff;color:#1f1f1f;border:1px solid #747775;border-radius:4px;font-family:Arial,sans-serif;font-weight:500;box-shadow:none;}
.google-login-form .google-login-button:hover {background:#f2f6fc;border-color:#1f1f1f;}
.google-login-button svg {flex-shrink:0;}

.profile-editor{max-width:900px;background:var(--bg);padding:clamp(22px,4vw,40px)}
.profile-edit-grid{display:grid;grid-template-columns:220px minmax(0,1fr);gap:clamp(28px,5vw,60px);align-items:start}
.profile-photo-controls{text-align:center;min-width:0}.profile-photo-label{font-size:.9rem;font-weight:600;margin:0 0 16px}
.profile-avatar{width:144px;height:144px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);color:var(--muted);margin:0 auto 18px}
.profile-avatar{grid-template: minmax(0,1fr) / minmax(0,1fr)}
.profile-avatar > *{grid-area:1 / 1;min-width:0;min-height:0}
.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-avatar [hidden]{display:none}
.profile-photo-upload{position:relative;overflow:hidden;cursor:pointer}.profile-photo-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.profile-photo-upload:focus-within{outline:2px solid var(--ink);outline-offset:4px}.profile-photo-filename{display:block;overflow-wrap:anywhere;font-size:.8rem;color:var(--muted);margin-top:8px}.profile-photo-remove{justify-content:center;margin-top:12px}
.profile-name-fields{display:grid;gap:24px;min-width:0;padding-top:4px}.profile-save{text-align:right;margin-top:4px}.profile-save .button{min-width:170px}
.profile-account-details{border-top:1px solid var(--line);margin-top:28px;padding-top:26px}.profile-account-details dl{margin-bottom:18px}.profile-account-details dd{overflow-wrap:anywhere}
@media(max-width:600px){.profile-edit-grid{grid-template-columns:1fr;gap:26px}.profile-photo-controls{max-width:270px;justify-self:center}.profile-name-fields{gap:18px;width:100%}.profile-save .button{width:100%}.profile-account-details dl{grid-template-columns:1fr;gap:20px}}

/* One account area, with course study pages retaining their full content width. */
.student-content{min-width:0}
.account-area{display:flex;flex-direction:column}
.student-navigation{display:contents}
.account-area .student-nav{order:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 28px;padding:0 0 20px}
.account-area .student-nav .button{display:flex;justify-content:center;min-width:0;padding:12px 14px;font-size:.95rem;white-space:nowrap}
.account-area .student-nav svg{flex-shrink:0}
.account-area .student-content{order:1}
.account-area .account-logout{order:2;align-self:flex-end;margin:30px 0 0}
.student-shell .account-exit{background:transparent;color:var(--muted);border-color:transparent;padding:10px 16px;font-weight:500}
.student-shell .account-exit:hover{color:var(--accent);border-color:var(--line)}
@media(min-width:1100px){
 .account-area--sidebar{display:grid;grid-template-columns:190px minmax(0,1fr);gap:40px;align-items:start}
 .account-area--sidebar .student-navigation{display:flex;flex-direction:column;position:sticky;top:28px;padding-top:12px}
 .account-area--sidebar .student-nav{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;border:0}
 .account-area--sidebar .student-nav .button{justify-content:flex-start;padding:14px 16px;border-color:transparent}
 .account-area--sidebar .account-logout{align-self:stretch;border-top:1px solid var(--line);padding-top:18px;margin-top:24px}
 .account-area--sidebar .student-content{padding-left:32px;border-left:1px solid var(--line)}
 .account-area--sidebar .student-heading{margin-top:12px}
 .account-area--sidebar .order-page{padding-top:12px}
 .account-area--sidebar .student-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .account-area--sidebar .order-card{grid-template-columns:minmax(0,1fr) auto;gap:14px 20px}
 .account-area--sidebar .order-card>div:first-child{grid-area:1/1}
 .account-area--sidebar .order-statuses{grid-area:2/1}
 .account-area--sidebar .order-price{grid-area:1/2;text-align:right}
 .account-area--sidebar .order-card>a{grid-area:2/2}
}
@media(max-width:480px){
 .account-area .student-nav{gap:6px;margin-bottom:22px;padding-bottom:16px}
 .account-area .student-nav .button{font-size:.84rem;padding:12px 8px}
 .account-area .student-nav svg{display:none}
}

/* Profile photo/album visual prototype. */
.profile-subnav{display:flex;gap:30px;border-bottom:1px solid var(--line);margin:-10px 0 30px}
.profile-subnav a{padding:12px 2px;text-decoration:none;color:var(--muted);border-bottom:2px solid transparent}
.profile-subnav a[aria-current]{color:var(--ink);border-color:var(--accent);font-weight:600}
.photo-heading{display:flex;align-items:center;gap:20px}
.photo-preview-badge{font-size:.75rem;letter-spacing:.04em;padding:5px 10px;border-radius:6px;background:var(--accent-soft);color:var(--accent)}
.photo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px;flex-wrap:wrap}
.photo-view-switch{display:flex;gap:6px;background:var(--surface);padding:5px;border-radius:10px}
.photo-view-switch button{border:0;border-radius:7px;background:transparent;padding:9px 15px;color:var(--muted);font-size:.95rem}
.photo-view-switch button[aria-pressed=true]{background:var(--bg);color:var(--ink);box-shadow:0 1px 4px #102c5215}
.photo-view-switch span{font-size:.75rem;margin-left:6px;color:var(--muted)}
.photo-actions{display:flex;gap:10px}.photo-actions .button{font-size:.85rem;padding:11px 14px;gap:8px}
.photo-add-label{position:relative;overflow:hidden;cursor:pointer}.photo-add-label input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.photo-add-label:focus-within{outline:3px solid var(--accent);outline-offset:4px}
.photo-grid,.photo-album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.photo-workspace [hidden]{display:none!important}
.photo-tile{padding:0;border:0;aspect-ratio:1;background:var(--surface);border-radius:10px;overflow:hidden;cursor:zoom-in}
.photo-tile img{width:100%;height:100%;object-fit:cover;transition:transform .2s}.photo-tile:hover img{transform:scale(1.035)}
.photo-album{padding:0 0 14px;background:transparent;color:var(--ink);border:0;text-align:left;min-width:0}
.photo-album-cover{aspect-ratio:1.2;overflow:hidden;border-radius:10px;background:var(--surface);display:grid;place-items:center;font-size:3rem;color:var(--muted);margin-bottom:14px}
.photo-album-cover img{width:100%;height:100%;object-fit:cover}
.photo-album strong{display:block;font-size:1rem;line-height:1.4;font-weight:600;margin-bottom:5px}
.photo-album>span,.photo-private{font-size:.8rem;color:var(--muted)}
.photo-preview-footer{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.78rem;margin-top:22px}
.photo-album-heading{display:flex;align-items:center;gap:15px;margin:0 0 24px}.photo-album-heading h2{font-size:1.5rem}.photo-album-heading>button{background:transparent;border:1px solid var(--line);border-radius:50%;color:var(--ink);width:40px;height:40px}.photo-album-heading .photo-private{margin-left:auto}
.photo-grid:empty{min-height:170px;background:var(--surface);border:1px dashed var(--line);border-radius:12px}
.photo-dialog{width:min(460px,calc(100% - 32px));padding:30px;border:1px solid var(--line);border-radius:16px;background:var(--bg);color:var(--ink)}
.photo-dialog::backdrop,.photo-lightbox::backdrop{background:#07172cbf}
.photo-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px}.photo-dialog h2{font-size:1.8rem}.photo-dialog .photo-private{margin:18px 0}.photo-dialog form>.button{width:100%}
.photo-close{background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:50%;width:38px;height:38px;flex-shrink:0;font-size:1.5rem;line-height:1}
.photo-lightbox{max-width:calc(100vw - 32px);max-height:90vh;padding:0;border:0;border-radius:12px;background:var(--bg)}.photo-lightbox .photo-close{position:absolute;top:12px;right:12px}.photo-lightbox img{max-height:85vh;object-fit:contain}
.photo-upload-error{margin-bottom:20px;color:var(--accent)}
@media(max-width:650px){.photo-toolbar{gap:18px}.photo-actions{width:100%}.photo-actions .button{flex:1;justify-content:center}.photo-grid,.photo-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.photo-heading{gap:12px}.photo-album-heading{flex-wrap:wrap}.photo-album-heading h2{font-size:1.3rem}}
@media(prefers-reduced-motion:reduce){.photo-tile img{transition:none}.photo-tile:hover img{transform:none}}
.photo-lightbox .photo-close{z-index:2}
.photo-lightbox-arrow{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--bg);color:var(--ink);box-shadow:0 2px 12px #07172c26;z-index:1}
.photo-lightbox-prev{left:12px}.photo-lightbox-next{right:12px}.photo-lightbox-arrow[hidden]{display:none}
.photo-lightbox-count{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);padding:3px 12px;border-radius:20px;background:#07172cd9;color:#fff;font-size:.8rem;pointer-events:none}
@media(max-width:480px){.photo-lightbox-prev{left:6px}.photo-lightbox-next{right:6px}.photo-lightbox-arrow{width:42px;height:42px}}
.photo-actions form{margin:0;display:flex}.photo-actions form .photo-add-label{height:100%}.photo-album{text-decoration:none}.gallery-empty{padding:20px 0;color:var(--muted)}.gallery-upload-help{font-size:.78rem;color:var(--muted);margin-top:8px}.photo-album-heading>a{display:grid;place-items:center;background:transparent;border:1px solid var(--line);border-radius:50%;color:var(--ink);width:40px;height:40px;text-decoration:none}
@media(max-width:650px){.photo-actions form{flex:1}.photo-actions form .photo-add-label{width:100%}}
[data-gallery] .photo-grid:empty{display:none}[data-gallery] .gallery-empty{display:grid;place-items:center;min-height:200px;padding:32px;background:var(--surface);border:1px dashed var(--line);border-radius:12px;text-align:center}

/* Private gallery organization and explicit delete confirmation. */
.photo-album-heading>a.gallery-edit-icon{border:0;border-radius:0;width:40px;height:40px;flex-shrink:0}
.photo-album-heading h2{min-width:0;overflow-wrap:anywhere}
.gallery-manage{max-width:700px;padding:28px;border:1px solid var(--line);border-radius:14px;background:var(--bg)}
.gallery-manage--photo{display:grid;grid-template-columns:180px minmax(0,1fr);gap:28px;align-items:start}
.gallery-manage-preview{width:180px;max-height:260px;object-fit:contain;border-radius:8px;background:var(--surface)}
.gallery-manage h2{font-size:1.4rem;overflow-wrap:anywhere;margin-bottom:20px}
.gallery-manage-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.gallery-manage-actions .button{padding:12px 22px;font-size:.95rem}
.gallery-delete-link{display:inline-block;margin-top:28px;color:var(--accent);font-size:.9rem}
.gallery-confirmation{line-height:1.6;margin:0}
.student-shell .button.gallery-danger{background:var(--accent);color:#fff;border-color:var(--accent)}
.gallery-lightbox-actions{display:flex;justify-content:center;gap:28px;padding:16px 20px;background:var(--bg);font-size:.9rem}
.gallery-lightbox-actions a{color:var(--ink);text-underline-offset:4px;padding:5px 0}
.gallery-lightbox-actions a:last-child{color:var(--accent)}
.photo-lightbox:has(.gallery-lightbox-actions){overflow:auto}.photo-lightbox:has(.gallery-lightbox-actions) img{max-height:calc(85vh - 72px)}
.photo-lightbox:has(.gallery-lightbox-actions) .photo-lightbox-count{bottom:80px}
@media(max-width:600px){.gallery-manage{padding:20px}.gallery-manage--photo{grid-template-columns:1fr;gap:24px}.gallery-manage-preview{width:100%;max-height:220px}.gallery-manage-actions .button{flex:1}.gallery-lightbox-actions{gap:24px;font-size:.85rem}}
.gallery-manage select{width:100%;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit}
.gallery-manage select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Course heading and quiz history action. */
.courses-heading--actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}
.courses-heading--actions h1 { margin-bottom: 0; }
.courses-quiz-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 14px;
  margin-bottom: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}
.courses-quiz-link:hover { background: var(--surface); border-color: var(--muted); }
.courses-quiz-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.courses-quiz-link svg { flex-shrink: 0; }
@media (max-width: 600px) {
  .courses-heading--actions { flex-direction: column; align-items: flex-start; }
  .courses-quiz-link { margin: 0; }
}
