/* The selected palette owns decorative surfaces and actions throughout the app. */
@media screen{
:root{--accent-purple:var(--theme-accent);--accent-cyan:var(--theme-accent);--primary:var(--theme-action);--primary-hover:var(--theme-action-hover);--primary-light:var(--theme-soft)}
:root :is(.cp-theme-hero,.hero-banner.klasama-desk-hero){background:var(--theme-action)!important;background-image:none!important;color:var(--theme-on)!important;border-color:var(--theme-action)!important}
:root :is(.cp-theme-hero,.hero-banner.klasama-desk-hero) :is(h1,h2,h3,p,small,.hero-class-name,.hero-greeting,.hero-subtitle,.klasama-hero-signature){color:var(--theme-on)!important}
:root .cp-theme-hero #cp-avatar{background:color-mix(in srgb,var(--theme-on) 14%,transparent)!important;border-color:color-mix(in srgb,var(--theme-on) 35%,transparent)!important;color:var(--theme-on)!important}
:root .cp-theme-hero span{color:inherit!important}
:root .cp-action{background:var(--theme-opaque)!important;border-color:var(--theme-edge)!important;color:var(--theme-ink)!important}
:root .cp-action>div:first-child{background:var(--theme-soft)!important;color:var(--theme-accent)!important}
:root .cp-action>div:last-child{color:var(--theme-ink)!important}
:root .cp-action:hover{border-color:var(--theme-accent)!important;background:var(--theme-soft)!important}
:root :is(.qt-icon,.hub-tool-icon,.stat-icon,.quick-tool-icon,.tool-icon,.module-icon,.icon-chip,.sn-icon,.cp-icon,.hub-icon,.klasama-value-number){background:var(--theme-soft)!important;color:var(--theme-accent)!important;border-color:var(--theme-edge)!important}
:root :is(.quick-tool,.hub-tool,.hub-card,.tc-tile,.stat-card,.note-card,.class-card,.settings-section,.settings-nav-item){border-color:var(--theme-edge)!important}
:root :is(.quick-tool,.hub-tool,.tc-tile,.class-card){background:var(--theme-opaque)!important;color:var(--theme-ink)!important}
:root :is(.quick-tool,.hub-tool,.tc-tile,.class-card):hover{border-color:var(--theme-accent)!important;background:var(--theme-soft)!important}
:root :is(.btn-primary,.primary,.quick-fab-main,.upgrade-cta,.pro-request,.lc-btn-primary){background:var(--theme-action)!important;color:var(--theme-on)!important;border-color:var(--theme-action)!important}
:root :is(.btn-primary,.primary,.quick-fab-main,.upgrade-cta,.pro-request,.lc-btn-primary):hover{background:var(--theme-action-hover)!important;color:var(--theme-on)!important}
:root :is(.btn-outline,.btn-secondary,.secondary,.hero-pro,.activate-link){color:var(--theme-accent)!important;border-color:var(--theme-edge)!important}
:root :is(.btn-outline,.btn-secondary,.secondary,.hero-pro):hover{background:var(--theme-soft)!important;border-color:var(--theme-accent)!important}
:root .hero-banner .hero-pro-badge{background:var(--theme-opaque)!important;color:var(--theme-ink)!important;border-color:var(--theme-edge)!important}
:root .hero-banner .hero-pro-badge:hover{background:var(--theme-soft)!important;color:var(--theme-ink)!important}
:root :is(.tab.active,.bh-view-tab.active,.hv-tab.active,.settings-nav-item.active,.lc-tab.active,.lp-tab.active,.r-tab.active){color:var(--theme-accent)!important;border-color:var(--theme-accent)!important;background:var(--theme-soft)!important}
:root :is(input,select,textarea){accent-color:var(--theme-accent)}
:root :is(input,select,textarea):focus{border-color:var(--theme-accent)!important;box-shadow:0 0 0 3px var(--theme-soft)!important}
:root .hero h1 span{color:var(--theme-accent)!important}
:root :is(.demo,.demo-inner,.tool,.closing,.klasama-contact-qr){background:var(--theme-opaque)!important;color:var(--theme-ink)!important;border-color:var(--theme-edge)!important}
:root :is(.demo-stats>div,.tick,.demo-tag){background:var(--theme-soft)!important;color:var(--theme-accent)!important;border-color:var(--theme-edge)!important}
:root .demo-stats strong{color:var(--theme-accent)!important}
:root .tool{border-top-color:var(--theme-accent)!important}
:root :is(.preview-bar,.ribbon,.step,.faq-items details,.footer){border-color:var(--theme-edge)!important}
:root :is(.demo-stats span,.demo-date,.demo-note,.demo-label,.small,.section-intro,.tool p,.step p,.faq-items p,.closing p,.creator p,.klasama-contact-qr p,.klasama-contact-qr small){color:var(--theme-muted)!important}
:root :is(.step .number,.plan-label,.number){color:var(--theme-accent)!important}
:root .step .number{background:var(--theme-soft)!important;border-color:var(--theme-edge)!important}
:root .nav-pro,:root .klasama-contact-qr div>a{color:var(--theme-accent)!important}
:root .license.klasama-pro-showcase{background:var(--theme-action)!important;color:var(--theme-on)!important;border-color:var(--theme-accent)!important}
:root .klasama-pro-showcase :is(.pro-intro h2,.pro-intro h2 em,.pro-intro>p,.pro-eyebrow,.pro-bottom strong,.pro-bottom span,.pro-disclosure){color:var(--theme-on)!important}
:root .klasama-pro-showcase .plan-free{background:transparent!important;border-color:color-mix(in srgb,var(--theme-on) 30%,transparent)!important;color:var(--theme-on)!important}
:root .klasama-pro-showcase .plan-free :is(.plan-label,.plan-description,h3,li,.free-link){color:var(--theme-on)!important}
:root .klasama-pro-showcase .plan-pro{background:var(--theme-opaque)!important;border-color:var(--theme-edge)!important;color:var(--theme-ink)!important}
:root .klasama-pro-showcase .plan-pro :is(h3,li){color:var(--theme-ink)!important}
:root .klasama-pro-showcase .plan-pro :is(.plan-description,.license-contact,.plan-label){color:var(--theme-muted)!important}
:root .klasama-pro-showcase .plan-pro li::before{background:var(--theme-soft)!important;color:var(--theme-accent)!important}
:root .klasama-pro-showcase .plan-pro li span{color:var(--theme-accent)!important;border-color:var(--theme-edge)!important}
:root .klasama-pro-showcase .premium-badge{background:var(--theme-action)!important;color:var(--theme-on)!important}
:root .klasama-pro-showcase .pro-request{background:var(--theme-action)!important;color:var(--theme-on)!important;border-color:var(--theme-action)!important}
:root .klasama-pro-showcase .pro-bottom{border-color:color-mix(in srgb,var(--theme-on) 30%,transparent)!important}
:root .klasama-pro-showcase .activate-link{color:var(--theme-on)!important}
:root .klasama-pro-showcase .plan-pro a:not(.button){color:var(--theme-accent)!important}
}

/* Dashboard welcome: opaque surfaces, readable metadata, and flow-based layout. */
@media screen{
:root .hero-banner.dashboard-welcome{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px 24px;padding:26px 28px!important;min-height:0!important;background:var(--theme-opaque)!important;color:var(--theme-ink)!important;border:1px solid var(--theme-edge)!important;border-inline-start:4px solid var(--theme-accent)!important;border-radius:18px!important;box-shadow:none!important;isolation:isolate}
:root .dashboard-welcome::before,:root .dashboard-welcome::after{display:none!important}
:root .dashboard-welcome .welcome-identity{display:flex;gap:20px;align-items:center;min-width:0;grid-column:1;grid-row:1}
:root .dashboard-welcome .welcome-copy{min-width:0;flex:1}
:root .dashboard-welcome h2{color:var(--theme-ink)!important;font-size:clamp(22px,2.4vw,30px)!important;line-height:1.25!important;letter-spacing:-.6px!important;margin:0 0 9px!important;overflow-wrap:anywhere}
:root .dashboard-welcome p{color:var(--theme-muted)!important;opacity:1!important;line-height:1.55!important;margin:0!important}
:root .dashboard-welcome .welcome-context{font-size:14px!important;font-weight:550!important}
:root .dashboard-welcome .welcome-date{font-size:13px!important;margin-top:4px!important}
:root .dashboard-welcome .hero-teacher-avatar{width:72px!important;height:72px!important;flex:0 0 72px!important;font-size:26px!important;background:var(--theme-soft)!important;color:var(--theme-accent)!important;border:1px solid var(--theme-edge)!important;box-shadow:none!important;display:flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden}
:root .dashboard-welcome .hero-teacher-avatar img{width:100%;height:100%;object-fit:cover}
:root .dashboard-welcome .hero-pro-badge{position:static!important;grid-column:2;grid-row:1;align-self:start;transform:none!important;min-width:148px;background:var(--theme-action)!important;color:var(--theme-on)!important;border:1px solid var(--theme-action)!important;border-radius:10px!important;padding:0!important;margin:0!important}
:root .dashboard-welcome .hero-pro-badge:hover{background:var(--theme-action-hover)!important;color:var(--theme-on)!important}
:root .dashboard-welcome .hero-pro-badge .hpb-inner{padding:11px 14px!important;min-height:52px;gap:10px}
:root .dashboard-welcome .hero-pro-badge :is(.hpb-label,.hpb-sub,.hpb-crown){color:var(--theme-on)!important;-webkit-text-fill-color:currentColor!important;opacity:1!important;text-shadow:none!important}
:root .dashboard-welcome .hero-pro-badge .hpb-label{font-size:14px!important;letter-spacing:0!important}
:root .dashboard-welcome .hero-pro-badge .hpb-sub{font-size:12px!important;letter-spacing:0!important;text-transform:none!important}
:root .dashboard-welcome .hero-class-chips{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;padding:16px 0 0!important;margin:0!important;border-top:1px solid var(--theme-edge);position:relative}
:root .dashboard-welcome .hero-class-chip{min-height:36px;font-size:12px!important;line-height:1.4!important;padding:8px 12px!important;background:var(--theme-opaque)!important;color:var(--theme-accent)!important;border:1px solid var(--theme-edge)!important;box-shadow:none!important;border-radius:8px!important}
:root .dashboard-welcome .hero-class-chip.active{background:var(--theme-action)!important;color:var(--theme-on)!important;border-color:var(--theme-action)!important}
:root .dashboard-welcome :is(.hero-class-chip,.hero-teacher-avatar,.hero-pro-badge):focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
@media(max-width:700px){
:root .hero-banner.dashboard-welcome{padding:20px!important;grid-template-columns:minmax(0,1fr);gap:16px}
:root .dashboard-welcome .welcome-identity{gap:14px;align-items:flex-start}
:root .dashboard-welcome .hero-teacher-avatar{width:52px!important;height:52px!important;flex-basis:52px!important;font-size:20px!important}
:root .dashboard-welcome h2{font-size:22px!important;letter-spacing:-.4px!important}
:root .dashboard-welcome .hero-pro-badge{grid-column:1;grid-row:3;justify-self:start;min-width:0}
:root .dashboard-welcome .hero-class-chips{grid-row:2}
}
}

@media screen{.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:560px}.theme-preview-light{background:#f0f5e9!important}.theme-preview-light .tp-sidebar,.theme-preview-light .tp-topbar{background:#145747!important}.theme-preview-dark{background:#14221b!important}.theme-preview-dark .tp-sidebar,.theme-preview-dark .tp-topbar{background:#216548!important}}
