/* Current production selectors; no stage-canvas or skill-tree geometry changes. */
@media screen {
.app-shell.app-shell {--v14-green:#58cc02;--v14-blue:#1cb0f6;--v14-yellow:#ffc800;--v14-orange:#ff9600;--v14-purple:#ce82ff;--v14-line:#e5e5e5;color:#4b4b4b}
.app-shell.app-shell .brand-mark,.view-login.view-login .login-brand-mark,.view-onboarding.view-onboarding .ob-brand-mark,.admin-shell.admin-v2 .admin-shell-brand-icon,.page.teacher-page .tch-brand-mark,.teacher-layout .tch-topbar-mark{width:44px;height:44px;min-width:44px;flex:0 0 44px}
.app-shell.app-shell .brand{gap:10px;align-items:center}
.app-shell.app-shell .brand-title{font-size:25px;font-weight:850;letter-spacing:.015em;color:#58a700}
.app-shell.app-shell .nav-links button{gap:14px;min-height:56px;padding:10px 16px;border-radius:14px;font-size:17px;font-weight:750}
.app-shell.app-shell .nav-links button.active{background:#ddf4ff;border-color:#84d8ff;color:#1899d6}
.app-shell.app-shell .tab-bar button{gap:4px;font-weight:750}
.app-shell.app-shell .app-main main:not(.view-skills):not(.skill-tree-page){line-height:1.55}
.app-shell main.view-home.home-page .home-layout{gap:24px}
.app-shell main.view-home.home-page .home-layout>.home-area-hero{border:2px solid #d7efbd;border-radius:20px;background:#f1fbe7;box-shadow:0 3px 0 #d7efbd;gap:0;min-height:350px}
.app-shell main.view-home.home-page .home-layout .home-practice-card>.sd-hero-copy{padding:24px 16px 16px 24px;gap:12px}
.app-shell main.view-home.home-page .home-layout .home-practice-card>.sd-hero-copy h1{font-size:29px;line-height:1.3;letter-spacing:0;font-weight:850;color:#4b4b4b}
.app-shell main.view-home.home-page .home-hero-sub{font-size:16px;color:#5a6c4f;line-height:1.6}
.app-shell main.view-home.home-page .home-hero-art{margin:20px 20px 14px 0;border:0;border-radius:16px;background:#e5f5d4;box-shadow:none}
.app-shell main.view-home.home-page .home-practice-card>.hero-actions{padding:0 20px 20px;margin:0;gap:10px}
.app-shell main.view-home.home-page .home-area-steps{padding:20px;border:2px solid #e5e5e5;border-radius:20px;background:#fff;box-shadow:0 3px 0 #e5e5e5}
.app-shell main.view-home.home-page .home-area-steps>.p13-steps-card{padding:0;border:0;box-shadow:none;background:transparent}
.app-shell main.view-home.home-page .p13-step-action{color:#1899d6;background:#fff;border-color:#84d8ff}
.app-shell main.view-home.home-page .weekly-progress-summary{padding:24px;border:2px solid #b9e8ff;border-radius:20px;background:#f1faff;box-shadow:0 3px 0 #d6f0fc}
.app-shell main.view-home.home-page .weekly-progress-summary .weekly-progress-metric{background:#fff;border:0;border-radius:12px;padding:14px}
.app-shell main.view-home.home-page .home-practice-summary{gap:20px}
.app-shell main.view-home.home-page :is(.home-piece,.home-goal){padding:22px;border:2px solid #e5e5e5;border-radius:20px;background:#fff;box-shadow:0 3px 0 #e5e5e5}
.app-shell main.view-home.home-page .home-piece-title{gap:14px;align-items:center}
.app-shell main.view-home.home-page .home-piece-icon{width:60px;height:70px;flex:none}
.app-shell main.view-home.home-page .p13-streak-panel{border:2px solid #ffdb9e;background:#fff8e9;border-radius:20px;padding:24px;box-shadow:0 3px 0 #ffebc8}
.app-shell main.view-home.home-page .home-server-stats{border:2px solid #e5e5e5;border-radius:20px;padding:24px;box-shadow:none}
.app-shell main.view-home.home-page .home-discovery-pair{gap:24px}
.app-shell main.view-home.home-page .home-discovery-pair>.home-illustrated-card{padding:16px;border:2px solid #e5e5e5;border-radius:20px;gap:14px;background:#fff;box-shadow:0 3px 0 #e5e5e5}
.app-shell main.view-home.home-page .home-discovery-art{border-radius:14px;aspect-ratio:16/8;background:#fff5ce}
.app-shell main.view-home.home-page .home-rewards-art{padding:16px;box-sizing:border-box}
.app-shell main.view-home.home-page .home-rewards-art>img{width:100%;height:100%;max-height:160px;object-fit:contain}
.app-shell main.view-home.home-page .home-entry-icon{width:66px;height:66px;flex:0 0 66px;padding:8px;box-sizing:border-box;border-radius:16px;background:#f1e8ff}
.app-shell main.view-home.home-page .home-entry-icon img{width:100%;height:100%;object-fit:contain}
.app-shell main.view-home.home-page .home-entry-video .home-entry-icon{background:#ddf4ff}
.app-shell main.view-home.home-page .home-entry-poster .home-entry-icon{background:#fff3ce}
.app-shell main.view-home.home-page .home-squad{border:2px solid #e5e5e5;border-radius:20px;padding:24px;background:#fff;box-shadow:none}
.app-shell main.view-home.home-page .home-squad-list{gap:16px;align-items:start}
.app-shell main.view-home.home-page .home-squad-char{padding:12px;border:0;border-radius:16px;background:#f7f7f7;box-sizing:border-box;min-width:0}
.app-shell main.view-home.home-page .home-squad-char img{width:88px;height:88px;max-width:100%;object-fit:contain}
.app-shell main.view-home.home-page .home-dialogue{border:0;background:#f1faff;border-radius:20px;box-shadow:none;padding:24px}
/* Shared media edges retain complete original character art. */
.app-shell.app-shell main.view-settings .set-card{border:2px solid #e5e5e5;border-radius:20px;padding:24px;background:#fff;box-shadow:none}
.app-shell.app-shell main.view-settings .set-card-head{margin-bottom:18px;gap:14px}
.app-shell.app-shell main.view-settings .set-card-head h2{font-size:21px;font-weight:800}
.app-shell.app-shell main.view-settings .set-companion-grid>li{padding:16px;border:2px solid #e5e5e5;border-radius:16px;background:#f7fbff;gap:10px;box-sizing:border-box}
.app-shell.app-shell main.view-settings .set-companion-grid>li img{padding:6px;box-sizing:border-box;object-fit:contain}
.app-shell.app-shell main.view-settings .set-hero-image{border:2px solid #e5e5e5;border-radius:18px;padding:16px;box-sizing:border-box;background:#f5f0ff}
.app-shell.app-shell main.page .txchars-grid>.txchars-card{padding:16px;gap:16px;border:2px solid #e5e5e5;border-radius:20px;background:#fff;box-shadow:0 3px 0 #e5e5e5}
.app-shell.app-shell main.page .txchars-grid>.txchars-card:last-child:nth-child(odd){grid-column:auto}
.app-shell.app-shell main.page .txchars-grid>.txchars-card .txchars-card-media{padding:16px;box-sizing:border-box;border:0;border-radius:16px;background:#f3edff;aspect-ratio:1;max-height:300px;min-height:0}
.app-shell.app-shell main.page .txchars-grid>.txchars-card .txchars-card-media img{object-fit:contain;padding:0;width:100%;height:100%}
.app-shell.app-shell main.page .txchars-grid>.txchars-card .txchars-card-body{gap:10px}
.app-dialog-overlay.txchars-overlay .txchars-dialog{padding:24px;border-radius:24px;box-sizing:border-box}
.app-dialog-overlay.txchars-overlay .txchars-dialog .txchars-edit-hero{padding:16px;box-sizing:border-box;border:0;border-radius:18px;background:#f3edff}
.app-dialog-overlay.txchars-overlay .txchars-dialog .txchars-edit-hero img{object-fit:contain;max-width:100%;max-height:100%}
.app-shell.app-shell main.view-growth.page .avatar-stage-panel{padding:24px;gap:24px;border:2px solid #e5e5e5;border-radius:20px;background:#fff;box-shadow:none}
.app-shell.app-shell main.view-growth.page .avatar-stage-panel .gw-stage-scene{border:2px solid #e5e5e5;border-radius:16px;box-shadow:none;margin:0}
.app-shell.app-shell main.view-growth.page .reward-entry-grid{gap:20px}
.app-shell.app-shell main.view-growth.page .reward-entry-grid>.practice-action-card{padding:20px;border:2px solid #e5e5e5;border-radius:18px;gap:14px;box-shadow:0 3px 0 #e5e5e5}
.app-shell.app-shell main.view-growth.page .gw-entry-stats{background:#f3edff}
.app-shell.app-shell main.view-growth.page .gw-entry-craft{background:#eaf8ff}
.app-shell.app-shell main.view-growth.page .gw-entry-shop{background:#fff8dc}
.app-shell.app-shell main.view-growth.page .gw-entry-art{width:90px;height:90px;object-fit:contain}
.app-shell.app-shell main.view-shop .shp-card{padding:16px;gap:16px;border:2px solid #e5e5e5;border-radius:20px;background:#fff;box-shadow:0 3px 0 #e5e5e5}
.app-shell.app-shell main.view-shop .shp-card-media{height:240px;min-height:0;padding:16px;box-sizing:border-box;border:0;border-radius:16px;background:#f2faff}
.app-shell.app-shell main.view-shop .shp-card-media img{width:100%;height:100%;object-fit:contain}
.app-shell.app-shell main.view-shop .shp-card-content{gap:10px;padding:0}
.app-shell.app-shell main.view-shop .shp-points-card{background:#fff8dc;border:2px solid #ffe586;border-radius:20px;padding:24px;box-shadow:none}
.view-onboarding.onboarding-page :is(.ob-prot-card,.ob-world-card){padding:20px;border:2px solid #e5e5e5;border-radius:20px;background:#fff;box-shadow:none}
.view-onboarding.onboarding-page .ob-avatar-wrap{border-radius:16px;padding:12px;box-sizing:border-box;background:#f1fbe7}
.view-onboarding.onboarding-page .ob-avatar-wrap img{object-fit:contain}
.view-login.view-login .login-card{border:2px solid #e5e5e5;border-radius:24px;box-shadow:0 4px 0 #e5e5e5}
}
@media screen and (min-width:1024px){
.app-shell main.view-home.home-page .home-layout{grid-template-columns:minmax(0,1.35fr) minmax(340px,1fr)}
.app-shell main.view-home.home-page .home-layout>.home-area-hero{grid-template-columns:minmax(0,1fr) minmax(180px,.85fr);min-height:350px}
.app-shell main.view-home.home-page .home-layout>.home-practice-summary{grid-column:1/-1;grid-template-columns:1.15fr 1fr;grid-row:2}
.app-shell main.view-home.home-page .home-layout>.weekly-progress-summary{grid-column:1/-1;grid-row:3;min-height:0}
.app-shell main.view-home.home-page .weekly-progress-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
}
@media screen and (max-width:767px){
.app-shell.app-shell .brand-mark{width:40px;height:40px;min-width:40px;flex-basis:40px}
.app-shell main.view-home.home-page .home-layout{gap:20px}
.app-shell main.view-home.home-page .home-layout>.home-area-hero{min-height:0;grid-template-columns:minmax(0,1fr)}
.app-shell main.view-home.home-page .home-layout .home-practice-card>.sd-hero-copy{padding:20px 20px 14px;gap:10px}
.app-shell main.view-home.home-page .home-layout .home-practice-card>.sd-hero-copy h1{font-size:25px}
.app-shell main.view-home.home-page .home-hero-art{margin:0 16px 16px;min-height:180px;aspect-ratio:16/10}
.app-shell main.view-home.home-page .home-practice-card>.hero-actions{padding:0 16px 20px}
.app-shell main.view-home.home-page .home-practice-summary{grid-template-columns:minmax(0,1fr);gap:16px}
.app-shell main.view-home.home-page .home-area-steps,.app-shell main.view-home.home-page .weekly-progress-summary{padding:18px}
.app-shell main.view-home.home-page .home-squad{padding:18px}
.app-shell main.view-home.home-page .home-squad-list{gap:10px}
.app-shell main.view-home.home-page .home-squad-char{padding:8px}
.app-shell.app-shell main.view-settings .set-card{padding:18px}
.app-shell.app-shell main.view-settings .set-companion-grid>li{padding:12px}
.app-shell.app-shell main.page .txchars-grid>.txchars-card{padding:14px}
.app-shell.app-shell main.view-growth.page .avatar-stage-panel{padding:18px;gap:18px}
.app-shell.app-shell main.view-shop .shp-card-media{height:220px;padding:12px}
.app-dialog-overlay.txchars-overlay .txchars-dialog{padding:18px}
}
@media (prefers-reduced-motion:no-preference){.app-shell .nav-links button,.app-shell .tab-bar button{transition:background-color .16s ease,border-color .16s ease}}

@media screen {
.app-shell main.view-home.home-page .home-layout>.home-practice-summary{grid-column:1 / -1;grid-row:auto}
.app-shell main.view-home.home-page .home-hero-art .sd-stage-bg.scene-background{object-fit:cover}
}
@media screen and (min-width:1024px){
.app-shell main.view-home.home-page .home-layout>.home-practice-summary{grid-column:1 / -1;grid-row:2;grid-template-columns:1.15fr 1fr;height:auto}
.app-shell main.view-home.home-page .home-layout>.weekly-progress-summary{grid-column:1 / -1;grid-row:3;height:auto}
}

@media screen {
.app-shell main.view-home.home-page .home-layout>.home-practice-summary{display:grid}
.app-shell main.view-home.home-page .home-layout>.sd-hero.home-practice-card.home-area-hero{height:auto;max-height:none;padding:0}
.app-shell main.view-home.home-page .home-hero-art .sd-stage-bg.scene-background{object-fit:cover}
}
@media screen and (min-width:1024px){
.app-shell main.view-home.home-page .home-layout>.sd-hero.home-practice-card.home-area-hero{min-height:350px;grid-template:1fr auto / minmax(0,1fr) minmax(180px,.85fr)}
}
@media screen and (max-width:767px){
.app-shell main.view-home.home-page .home-layout>.sd-hero.home-practice-card.home-area-hero{grid-template:auto auto auto / minmax(0,1fr);min-height:0}
}

@media screen {
.app-shell main.view-home.home-page .home-layout>.sd-hero.home-practice-card.home-area-hero .home-hero-art{margin:20px 20px 14px 0;align-self:stretch}
}
@media screen and (max-width:767px){
.app-shell main.view-home.home-page .home-layout>.sd-hero.home-practice-card.home-area-hero .home-hero-art{margin:0 16px 16px;min-height:180px;aspect-ratio:16/10}
}
@media screen and (max-width:767px){
.app-shell.app-shell main.view-home.home-page .home-layout>.sd-hero.home-practice-card.home-area-hero{display:grid;grid-template: auto auto auto / minmax(0,1fr);grid-auto-columns:auto;grid-auto-rows:auto;width:100%;height:auto;min-height:0;max-height:none}
.app-shell.app-shell main.view-home.home-page .home-layout>.sd-hero.home-practice-card.home-area-hero>.sd-hero-copy{grid-column:1;grid-row:1;width:100%;max-width:none;min-width:0;box-sizing:border-box}
.app-shell.app-shell main.view-home.home-page .home-layout>.sd-hero.home-practice-card.home-area-hero>.home-hero-art{grid-column:1;grid-row:2;width:auto;min-width:0;height:190px;margin:0 16px 16px;aspect-ratio:auto}
.app-shell.app-shell main.view-home.home-page .home-layout>.sd-hero.home-practice-card.home-area-hero>.hero-actions{grid-column:1;grid-row:3;width:100%;min-width:0;box-sizing:border-box;height:auto;align-self:stretch}
}
