/* Approved dark identity card. Scoped to the teacher profile; shared flows stay unchanged. */
.profile-page.profile-dark { max-width: none; margin: calc(0px - max(16px, var(--safe-top))) calc(0px - var(--shell-right)) 0 calc(0px - var(--shell-left)); color: var(--deep); }
.profile-dark .profile-hero { display: block; margin: 0; padding: 0 24px 26px; border: 0; border-radius: 0; background: linear-gradient(125deg, var(--deep), var(--main)); box-shadow: none; color: #fff; }
.profile-dark .profile-hero::before { content: none; }
.profile-dark .profile-masthead { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: max(22px, var(--safe-top)); }
.profile-dark .profile-masthead h2 { margin: 0; color: inherit; font-size: 18px; font-weight: 600; }
.profile-dark .profile-brand { display: flex; align-items: center; gap: 8px; flex: none; color: var(--border); font-size: 14px; }
.profile-dark .profile-brand img { width: 24px; height: 26px; object-fit: contain; }
.profile-dark .profile-identity-top { display: flex; align-items: center; gap: 17px; padding-top: 34px; }
.profile-dark .profile-avatar { flex: none; width: 68px; height: 68px; padding: 0; border: 0; border-radius: 16px; background: #fff; color: var(--main); box-shadow: none; font-family: KaiTi, STKaiti, serif; font-size: 43px; }
.profile-dark .profile-avatar[data-length="2"] { font-size: 30px; }
.profile-dark .profile-avatar:is([data-length="3"], [data-length="4"]) { font-size: 22px; }
.profile-dark .profile-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.profile-dark .profile-identity h1 { margin: 0; max-width: 100%; color: #fff; font-size: 32px; font-weight: 650; line-height: 1.3; letter-spacing: .04em; }
.profile-dark .profile-role { border: 1px solid #ffffff70; padding: 2px 6px; border-radius: 5px; color: var(--border); font-size: 11px; line-height: 1.6; }
.profile-dark .profile-identity p { margin: 9px 0 0; color: var(--border); font-size: 13px; }
.profile-dark .profile-context { gap: 16px; margin-top: 22px; padding-top: 18px; border-color: #ffffff38; color: var(--border); }
.profile-dark .profile-context > div { display: flex; align-items: center; gap: 9px; }
.profile-dark .profile-context > div > div { min-width: 0; }
.profile-dark .profile-context > div + div { border: 0; padding: 0; }
.profile-dark .profile-context small { margin-bottom: 4px; color: var(--border); font-size: 11px; letter-spacing: 0; }
.profile-dark .profile-context span { font-size: 13px; line-height: 1.5; }
.profile-dark svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.profile-dark .profile-context svg { width: 18px; height: 18px; }
.profile-dark .profile-content { padding: 22px 24px 0; }
.profile-dark .profile-settings { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.profile-dark .profile-settings > h2, .profile-dark .profile-accounts-heading h2 { margin: 0 0 12px; padding: 0; color: var(--deep); font-size: 17px; font-weight: 650; line-height: 1.5; letter-spacing: 0; }
.profile-dark .profile-info-list { border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.profile-dark .profile-setting { overflow-wrap: anywhere; }
.profile-dark .profile-setting:first-child > .profile-setting-trigger { border-radius: 12px 12px 0 0; }
.profile-dark .profile-setting:last-child:not(.is-open) > .profile-setting-trigger { border-radius: 0 0 12px 12px; }
.profile-dark .profile-setting-trigger { min-height: 76px; gap: 11px; padding: 15px 16px; text-decoration: none; }
.profile-dark .profile-setting-leading { gap: 11px; }
.profile-dark .profile-symbol { width: 35px; height: 35px; border-radius: 10px; background: var(--tint); color: var(--main); }
.profile-dark .profile-setting-trigger strong { color: var(--deep); font-size: 15px; font-weight: 600; line-height: 1.5; }
.profile-dark .profile-setting-trigger small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.profile-dark .profile-setting-value { min-width: 0; gap: 7px; max-width: 26%; color: var(--muted); font-size: 12px; line-height: 1.5; }
.profile-dark .profile-chevron { display: flex; color: var(--muted); }
.profile-dark .profile-chevron svg { width: 15px; height: 15px; }
.profile-dark .profile-setting.is-open .profile-chevron { transform: rotate(90deg); }
.profile-dark .profile-setting-body { padding: 12px 16px 16px; }
.profile-dark .profile-account-panel { margin-top: 20px; padding: 17px 16px; border-radius: 14px; background: var(--tint); }
.profile-dark .profile-accounts-heading { padding: 0; gap: 10px; }
.profile-dark .profile-accounts-heading h2 { margin: 0; }
.profile-dark #profile-accounts .profile-setting-body { border: 0; padding: 0; }
.profile-dark #profile-accounts .section-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.profile-dark #profile-accounts .linked-accounts { margin: 12px 0 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.profile-dark #profile-accounts .linked-accounts > button { align-content: center; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 2px 7px; min-height: 44px; min-width: 0; padding: 8px 11px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.profile-dark #profile-accounts .linked-accounts strong { max-width: 100%; color: var(--deep); font-size: 16px; line-height: 1.4; }
.profile-dark #profile-accounts .linked-accounts small { max-width: 100%; flex-shrink: 1; color: var(--muted); font-size: 11px; line-height: 1.5; }
.profile-dark #profile-accounts .linked-accounts > button[aria-pressed=true] { background: var(--main); border-color: var(--main); opacity: 1; }
.profile-dark #profile-accounts .linked-accounts > button[aria-pressed=true] :is(strong, small) { color: #fff; }
.profile-dark #profile-accounts .linked-accounts > button:not(:disabled):hover { border-color: var(--main); background: var(--surface); }
.profile-dark #profile-accounts .linked-accounts .empty { grid-column: 1 / -1; margin: 0; padding: 12px 0; color: var(--muted); font-size: 13px; }
.profile-dark [data-action=register] { min-height: 44px; padding: 8px 0; color: var(--main); font-size: 12px; }
.profile-dark .profile-preferences [data-action=install] { border-top: 1px solid var(--border); }
.profile-dark .profile-preferences [data-action=install]:first-child { border-top: 0; }
.profile-dark .profile-preferences { margin-top: 24px; }
.profile-dark .profile-logout { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; margin-top: 22px; padding: 10px; border: 0; border-radius: 8px; color: var(--muted); font-size: 13px; }
.profile-dark .profile-footer { margin: 0; padding: 12px 0 20px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.profile-page.profile-dark > .theme-settings { margin: 0 24px; border-radius: 14px; }
.profile-dark :is(button, a, input, #profile-accounts):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.profile-dark .profile-avatar:focus-visible { outline-color: #fff; }
.profile-dark .profile-hero ::selection { color: var(--deep); background: var(--tint); }
@media (max-width: 440px) {
 .profile-dark .profile-hero { padding-inline: 18px; }
 .profile-dark .profile-content { padding-inline: 18px; }
 .profile-page.profile-dark > .theme-settings { margin-inline: 18px; }
 .profile-dark .profile-setting-trigger { padding: 14px 12px; }
 .profile-dark .profile-account-panel { padding: 16px 12px; }
 .profile-dark #profile-accounts .linked-accounts > button { padding-inline: 9px; column-gap: 5px; }
}
@media (max-width: 350px) {
 .profile-dark .profile-hero, .profile-dark .profile-content { padding-inline: 14px; }
 .profile-page.profile-dark > .theme-settings { margin-inline: 14px; }
 .profile-dark .profile-identity-top { gap: 12px; }
 .profile-dark .profile-avatar { width: 56px; height: 56px; font-size: 36px; }
 .profile-dark .profile-avatar[data-length="2"] { font-size: 26px; }
 .profile-dark .profile-avatar:is([data-length="3"], [data-length="4"]) { font-size: 19px; }
 .profile-dark .profile-identity h1 { font-size: 28px; }
 .profile-dark .profile-title-line { gap: 7px; }
 .profile-dark .profile-role { padding-inline: 5px; }
 .profile-dark .profile-context { gap: 10px; }
 .profile-dark .profile-context > div { gap: 6px; }
 .profile-dark .profile-context span { font-size: 12px; }
 .profile-dark .profile-context svg { width: 15px; height: 15px; }
 .profile-dark .profile-setting-trigger { gap: 7px; padding-inline: 11px; }
 .profile-dark .profile-setting-leading { gap: 7px; }
 .profile-dark .profile-symbol { width: 29px; height: 32px; }
 .profile-dark #profile-accounts .linked-accounts > button { padding-inline: 7px; column-gap: 4px; }
}
@media (min-width: 760px) {
 .profile-page.profile-dark { max-width: 680px; margin: 0 auto; }
 .profile-dark .profile-hero { border-radius: 14px; }
}
