/* Additive teacher workspace and account cards, matching the existing academy identity. */
.tn-welcome{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:8px 0 24px}
.tn-welcome h1{font-size:clamp(24px,2.6vw,35px);line-height:1.65;color:#15284c;margin:4px 0;overflow-wrap:anywhere}
.tn-welcome p,.tn-section-heading p{margin:2px 0;color:#63738b;line-height:1.9}
.tn-welcome-badge{display:flex;align-items:center;gap:8px;color:#047c72;background:#e4f8f0;padding:10px 16px;border-radius:14px;font-size:12px;font-weight:800;flex-shrink:0}
.tn-hero{position:relative;overflow:hidden;border-radius:25px;background:#edf4fc;border:1px solid #e1eaf5;min-height:300px;box-shadow:0 12px 35px #15284c0b;margin-bottom:22px}
.tn-hero picture{position:absolute;inset:0;display:block}
.tn-hero img{width:100%;height:100%;object-fit:cover;object-position:center}
.tn-hero-copy{position:relative;z-index:1;width:57%;padding:32px 36px 35px;margin-left:auto;background:linear-gradient(270deg,#f0f6feeb 10%,#f0f6feb0 70%,transparent)}
.tn-hero-kicker{display:inline-flex;background:#fff8d9;border:1px solid #f4e3a6;border-radius:99px;padding:6px 14px;font-size:12px;color:#7c5a0b;font-weight:800}
.tn-hero h2{margin:15px 0 10px;font-size:clamp(28px,3.1vw,43px);line-height:1.45;color:#142b51;letter-spacing:-.6px}
.tn-hero h2 em{color:#0866ed;font-style:normal}
.tn-hero-copy p{color:#516580;font-size:14px;line-height:2;margin:0 0 20px}
.tn-hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.tn-hero-actions button{min-height:44px;font-size:13px}
.tn-follow-banner,.tn-rent-summary{display:flex;align-items:center;gap:15px;background:#fff;border:1px solid #e3ebf4;border-radius:20px;padding:19px 23px;margin:18px 0;box-shadow:0 4px 17px #15284c05}
.tn-follow-banner{background:linear-gradient(120deg,#f6fcff,#f3fbf7)}
.tn-follow-banner>div,.tn-rent-summary>div{flex:1;min-width:0}
.tn-follow-banner h2{font-size:17px;color:#1c3454;margin:0 0 3px}.tn-follow-banner p,.tn-rent-summary p{font-size:12px;color:#64748b;line-height:1.9;margin:2px 0}
.tn-dashboard .p1-metric{border-radius:20px;min-height:106px;position:relative;overflow:hidden;transition:transform .2s,box-shadow .2s}
.tn-dashboard .p1-metric:after{content:"";position:absolute;left:-16px;top:-20px;width:95px;height:95px;border-radius:50%;background:#0866ed05;pointer-events:none}
.tn-dashboard .p1-action-tile{border-radius:19px;background:linear-gradient(145deg,#fff,#f1f6ff);border:1px solid #e2eafb;min-height:90px;transition:transform .2s,box-shadow .2s}
.tn-dashboard .p1-action-tile:nth-child(2){background:linear-gradient(145deg,#fff,#f3f0ff);border-color:#ece5fd}
.tn-dashboard .p1-action-tile:nth-child(3){background:linear-gradient(145deg,#fff,#edf9f5);border-color:#ddf0e8}
.tn-dashboard .p1-action-tile:nth-child(4){background:linear-gradient(145deg,#fff,#fff7e8);border-color:#f9ebcf}
.tn-dashboard .p1-panel{border-radius:22px}.tn-dashboard .p1-empty{border-radius:17px;background:linear-gradient(135deg,#f8fbff,#f4f8ff)}
.tn-dashboard .p1-motion-card{opacity:1;transform:none}
@media(prefers-reduced-motion:no-preference){.tn-dashboard .p1-motion-card.p1-motion-visible{animation:tnCardReveal .35s ease-out both;animation-delay:var(--p1-card-delay,0ms)}}
@keyframes tnCardReveal{from{opacity:.85;translate:0 10px}to{opacity:1;translate:0 0}}
.tn-card{padding:24px;border:1px solid #e3eaf4;background:#fff;border-radius:21px;box-shadow:0 5px 20px #12295706;min-width:0}
.tn-account-section{margin:24px 0}.tn-section-heading{margin-bottom:20px}.tn-section-heading h2{margin:4px 0;font-size:23px;color:#1c3454}
.tn-settings-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:22px;align-items:start}
.tn-settings-grid .stack{gap:16px}.tn-settings-grid .two-col{gap:14px}.tn-card h3{font-size:18px;color:#1c3454;margin:0 0 12px}
.tn-card .field{margin:0}.tn-card input,.tn-card select,.tn-card textarea{max-width:100%;font-family:inherit;min-width:0}
.tn-card input[type=tel],.tn-card input[type=email],.tn-card input[type=password]{direction:ltr;text-align:right}
.tn-security-icon{display:grid;place-items:center;width:48px;height:48px;color:#087b70;background:#e5f7f1;border-radius:15px;font-size:24px;font-weight:800;margin-bottom:16px}
.tn-password-card>p,.tn-hint{font-size:12px;color:#64748b;line-height:1.95;margin:5px 0 14px}
.tn-teacher-picker{border:1px solid #e1e9f4;border-radius:15px;padding:15px;min-width:0;margin:2px 0 10px;background:#f8faff}
.tn-teacher-picker legend{font-size:14px;font-weight:800;color:#1c3454;padding:0 7px}
.tn-teacher-picker p{font-size:11px;line-height:1.9;color:#65778f;margin:0 0 11px}
.tn-teacher-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tn-teacher-option{display:flex!important;align-items:center;gap:9px;padding:12px;border:1px solid #dfe7f3;background:#fff;border-radius:13px;cursor:pointer;min-height:72px;position:relative;overflow-wrap:anywhere;min-width:0}
.tn-teacher-option input{width:17px!important;height:17px;min-height:0!important;padding:0!important;flex-shrink:0;accent-color:#0866ed;margin:0!important}
.tn-avatar{width:37px;height:37px;background:linear-gradient(150deg,#e1edff,#f1f5ff);color:#0866ed;border-radius:12px;display:grid;place-items:center;font-size:18px;font-weight:800;flex-shrink:0}
.tn-teacher-option>span:nth-of-type(2){display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.tn-teacher-option b{font-size:12px;color:#233a5f;line-height:1.7}.tn-teacher-option small{font-size:10px;color:#687c96;line-height:1.6}
.tn-choice-mark{display:none}.tn-teacher-option:has(input:checked){background:#eef5ff;border-color:#0866ed;box-shadow:0 0 0 1px #0866ed18}.tn-teacher-option:has(input:focus-visible){outline:3px solid #0866ed4d;outline-offset:2px}
.tn-picker-message{padding:10px;line-height:1.95;color:#63738b;font-size:12px}
.tn-form-error{color:#b52239;line-height:1.9;font-size:12px;margin:0;overflow-wrap:anywhere}.tn-form-status{color:#087b70;line-height:1.9;font-size:12px;margin:0}.tn-form-error:empty,.tn-form-status:empty{display:none}
.tn-billing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.tn-billing-card-top,.tn-billing-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.tn-billing-card h2{font-size:19px;line-height:1.7;margin:13px 0 3px;overflow-wrap:anywhere;color:#1c3454}.tn-billing-card>p{font-size:12px;color:#687c96;margin:0 0 18px}.tn-billing-card-bottom{margin-top:18px}.tn-billing-card-bottom .p1-btn{font-size:12px}
.tn-status{border-radius:99px;padding:6px 12px;font-size:11px;font-weight:700;background:#fff6df;color:#856019;display:inline-block}.tn-status.paid{background:#e8f8f0;color:#08735e}.tn-status.paused{background:#fff0f0;color:#a92a3d}
.tn-billing-numbers{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0 22px}.tn-billing-numbers>div{flex:1;min-width:105px;padding:14px;border-radius:13px;background:#f4f7fc}.tn-billing-numbers small{display:block;color:#687c96;font-size:11px;line-height:1.8}.tn-billing-numbers strong{display:block;font-size:19px;line-height:1.8;color:#1c3454;overflow-wrap:anywhere}
.tn-editor-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.tn-editor-head h2{font-size:23px;line-height:1.65;margin:3px 0;color:#1c3454;overflow-wrap:anywhere}.tn-editor-head p{font-size:12px;color:#687c96;margin:0}
.tn-billing-editor .tn-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid #e3ebf4;padding-top:24px;gap:32px}.tn-access-toggle{display:flex;align-items:center;gap:10px;border:1px solid #dbe9f9;border-radius:14px;padding:15px;background:#f7faff}.tn-access-toggle input{width:19px;height:19px;flex-shrink:0;accent-color:#0866ed}.tn-access-toggle b{display:block;font-size:13px;line-height:1.8}.tn-access-toggle small{display:block;font-size:11px;color:#687c96;line-height:1.9}
.tn-payment-history{margin-top:25px;border-top:1px solid #e3ebf4;padding-top:20px}.tn-payment-history ul{padding:0;margin:0;list-style:none}.tn-payment-history li{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid #edf1f7}.tn-payment-history li>div{min-width:0}.tn-payment-history b{color:#1c3454;font-size:15px}.tn-payment-history small{display:block;font-size:11px;color:#687c96;line-height:1.9;overflow-wrap:anywhere}.tn-reverse-payment{color:#a92a3d;background:#fff1f2;border:1px solid #f2d4d9;padding:8px 13px;border-radius:9px;flex-shrink:0;font-family:inherit;font-size:11px;min-height:40px;cursor:pointer}.tn-subscription-state{display:flex;gap:10px;flex-wrap:wrap}.tn-account-billing-link{margin-bottom:18px}
@media (hover:hover) and (prefers-reduced-motion:no-preference){.tn-dashboard .p1-metric:hover,.tn-dashboard .p1-action-tile:hover{transform:translateY(-4px);box-shadow:0 10px 24px #15284c0d}}
@media(max-width:1100px){.tn-welcome-badge{display:none}.tn-hero-copy{padding:28px;width:61%}.tn-settings-grid{grid-template-columns:minmax(0,1fr)}.tn-password-card{max-width:none}.tn-teacher-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tn-welcome{margin:0 0 18px}.tn-welcome h1{font-size:24px}.tn-welcome p{font-size:12px}.tn-hero{border-radius:20px;display:flex;flex-direction:column;min-height:0}.tn-hero-copy{order:0;padding:24px 21px 18px;width:100%;background:none}.tn-hero h2{font-size:31px;margin:13px 0 8px}.tn-hero-copy p{font-size:12px;margin-bottom:16px}.tn-hero picture{position:relative;order:1;height:155px;margin-top:-5px}.tn-hero img{object-fit:cover;object-position:left center}.tn-hero-actions{gap:8px}.tn-hero-actions button{font-size:11px;padding:10px 12px;flex:1}.tn-hero-actions .p1-icon{width:18px}.tn-follow-banner,.tn-rent-summary{padding:16px;gap:11px;flex-wrap:wrap}.tn-follow-banner h2{font-size:15px}.tn-follow-banner>button,.tn-rent-summary>button{margin-right:53px}.tn-dashboard .p1-metric{min-height:96px}.tn-card{padding:18px;border-radius:18px}.tn-account-section{margin:20px 0}.tn-settings-grid,.tn-billing-grid,.tn-billing-editor .tn-settings-grid{grid-template-columns:minmax(0,1fr);gap:20px}.tn-teacher-options{grid-template-columns:minmax(0,1fr)}.tn-card .two-col{grid-template-columns:minmax(0,1fr)}.tn-section-heading h2{font-size:21px}.tn-editor-head{align-items:flex-start;flex-direction:column;gap:8px}.tn-editor-head h2{font-size:21px}.tn-billing-numbers{gap:8px}.tn-billing-numbers>div{min-width:85px;padding:11px}.tn-billing-numbers strong{font-size:17px}.tn-billing-numbers small{font-size:10px}.tn-billing-page .p1-heading{gap:14px}.tn-payment-history li{gap:10px}.tn-billing-card-bottom .p1-btn{min-height:44px}.tn-rent-summary .p1-text-btn{font-size:12px}}
body.dark .tn-card,body.dark .tn-teacher-option,body.dark .tn-rent-summary{background:var(--panel,#192b42);border-color:#334764}body.dark .tn-welcome h1,body.dark .tn-card h2,body.dark .tn-card h3,body.dark .tn-section-heading h2,body.dark .tn-billing-numbers strong,body.dark .tn-teacher-option b,body.dark .tn-payment-history b{color:#e9f0fc}body.dark .tn-teacher-picker,body.dark .tn-billing-numbers>div{background:#20344e;border-color:#334764}body.dark .tn-teacher-option:has(input:checked){background:#153968;border-color:#6faaff}body.dark .tn-dashboard .p1-action-tile,body.dark .tn-follow-banner,body.dark .tn-dashboard .p1-empty{background:#20344e;border-color:#334764}body.dark .tn-follow-banner h2{color:#e9f0fc}
@media(max-width:600px){.tn-follow-banner,.tn-rent-summary{display:grid;grid-template-columns:42px minmax(0,1fr)}.tn-follow-banner>button,.tn-rent-summary>button{grid-column:2;justify-self:start;margin-right:0}}
@media(prefers-reduced-motion:reduce){.tn-dashboard *{animation:none!important;transition:none!important}}
