/* ClassWaze Panel — Common CSS
 * Panel foundation + shell + reusable components.
 */

/* ============================================================
   STUDENT WHATSAPP SUPPORT — FINAL
   Solid WhatsApp green circle + white WhatsApp mark
   Student Panel + Admin Workspace support shortcut
   Same visual component reused across supported panel roles.
   ============================================================ */

.panel-role-student .student-whatsapp-float,
.panel-role-admin .student-whatsapp-float{
    position:fixed;
    right:20px;
    bottom:20px;
    z-index:4800;

    width:64px !important;
    height:64px !important;

    display:grid;
    place-items:center;

    padding:0;
    margin:0;

    background:#25D366 !important;
    color:#FFFFFF !important;

    border:0 !important;
    border-radius:50% !important;

    box-shadow:0 4px 12px rgba(37,211,102,.25) !important;

    text-decoration:none !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

/* White WhatsApp mark */
.panel-role-student .student-whatsapp-float svg,
.panel-role-admin .student-whatsapp-float svg{
    width:42px !important;
    height:42px !important;

    display:block;
    flex:0 0 42px;

    color:#FFFFFF !important;
}

/* Hide text */
.panel-role-student .student-whatsapp-float span,
.panel-role-admin .student-whatsapp-float span{
    display:none !important;
}

/* Subtle hover */
.panel-role-student .student-whatsapp-float:hover,
.panel-role-admin .student-whatsapp-float:hover{
    transform:scale(1.05);

    box-shadow:
        0 6px 16px rgba(37,211,102,.32) !important;
}

/* Mobile */
@media(max-width:560px){

    .panel-role-student .student-whatsapp-float,
    .panel-role-admin .student-whatsapp-float{
        right:14px;
        bottom:14px;

        width:58px !important;
        height:58px !important;
    }

    .panel-role-student .student-whatsapp-float svg,
.panel-role-admin .student-whatsapp-float svg{
        width:38px !important;
        height:38px !important;

        flex-basis:38px;
    }
}


.top-notification{position:relative;}
.notification-badge{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#E5484D;color:#fff;border:2px solid #fff;font-size:9px;font-weight:900;line-height:14px;display:grid;place-items:center;}
.panel-head .muted,.form-section-head p,.page-titlebar-copy>p,.panel>p.muted{color:#1C2B40;}

/* ============================================================================
   CLASSWAZE PANEL — FOUNDATION LAYER
   01 · Design tokens / theme variables
   02 · Base / reset / typography
   03 · Shared layout primitives / surfaces
   04 · Forms / inputs / tables
   05 · Buttons / feedback / utility controls
   06 · Responsive foundation rules

   Ownership map
   • common.css      = header, sidebar, page title strip, mobile shell
   • common.css = reusable cards, KPI/stat cards, plans, shared widgets
   • pages.css      = cross-page page content patterns and page utilities
   • pages.css  = admission-only form layout
   • pages.css  = analytics-only charts/metrics
   • *_page.css      = truly unique page systems only
   Do not duplicate or override another file’s component rules here.
   ============================================================================ */
:root {
  --cw-theme-primary:#0A2D6D;
  --cw-theme-accent:#00B4E6;
  --cw-theme-dark:#08204E;
  --cw-theme-light:#EEF8FC;
  --cw-bg:#FFFFFF;
  --cw-surface:#FFFFFF;
  --cw-line:#E1E8F0;
  --cw-line-strong:#D2DDE8;
  --cw-text:#1C2B40;
  --cw-muted:#1C2B40;
  --cw-radius:15px;
  --cw-radius-sm:11px;
  --cw-shadow:0 7px 22px rgba(8,32,78,.052);
  --cw-shadow-hover:0 11px 28px rgba(8,32,78,.09);
  --cw-fast:160ms;
  --cw-normal:220ms;
  --cw-font:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
img,svg,video,canvas{max-width:100%}
.cw-shared-card,.panel,.form-card,.notice-card,.content-wrap,.feature-page-shell,.topbar,.page-titlebar{min-width:0}
.cw-shared-card h1,.cw-shared-card h2,.cw-shared-card h3,.notice-card strong,.notice-card p,.panel-head,.action-context,.section-kicker{overflow-wrap:anywhere}
html{min-height:100%;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:var(--cw-theme-accent) var(--cw-theme-light)}
html::-webkit-scrollbar{width:10px;height:10px}
html::-webkit-scrollbar-track{background:var(--cw-theme-light)}
html::-webkit-scrollbar-thumb{background:var(--cw-theme-primary);border-radius:999px;border:2px solid var(--cw-theme-light)}
html::-webkit-scrollbar-thumb:hover{background:var(--cw-theme-accent)}
body.modal-open{overflow:hidden}body{margin:0;min-height:100%;font-family:var(--cw-font);font-size:14px;line-height:1.45;color:var(--cw-text);background:var(--cw-bg);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,select,textarea{font:inherit}
a{color:inherit}
img{max-width:100%;display:block}
svg.svg-icon{width:1em;height:1em;display:block;flex:0 0 auto}

/* Workspace frame — all three roles use exactly the same content geometry. */
.app-body{width:100%;max-width:100%;padding:12px;overflow-x:hidden;background:#fff}
.app-shell{display:grid;grid-template-columns:272px minmax(0,1fr);width:100%;min-height:calc(100vh - 24px);gap:14px;align-items:start}
.main-area{min-width:0;min-height:calc(100vh - 24px);display:flex;flex-direction:column;gap:12px;position:relative}
.content-wrap{width:100%;max-width:none;margin:0;padding:0 0 24px;flex:1 1 auto;min-width:0}
.feature-page-shell{position:relative;display:grid;gap:12px;min-width:0}

/* Responsive grids: content cards stay two-up on phones; forms become one-up. */
.grid{display:grid;gap:12px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.grid-6{grid-template-columns:repeat(6,minmax(0,1fr))}

.panel,.form-card,.table-wrap{position:relative;min-width:0;background:var(--cw-surface);border:1px solid var(--cw-line);border-radius:var(--cw-radius);box-shadow:var(--cw-shadow)}
.panel,.form-card{padding:15px}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:11px;margin-bottom:11px}
.panel h2,.form-card h2{margin:0;color:var(--cw-theme-accent);font-size:17px;line-height:1.28}
.panel h3{margin:0;color:var(--cw-theme-accent);font-size:15px}
.muted{color:var(--cw-muted);font-size:12.5px;line-height:1.55}
.mini{color:#52627A;font-size:10.5px;line-height:1.5}
.mini b{color:#53637A}
.metric-row{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #EDF1F5}
.metric-row:last-child{border-bottom:0}
.metric-row span{color:#6E7C91;font-size:10.5px;min-width:0;overflow-wrap:anywhere}
.metric-row strong{color:var(--cw-theme-dark);font-size:11px;text-align:right}
.price{line-height:1.1}

/* Button system */
.btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 13px;border:1px solid transparent;border-radius:11px;text-decoration:none;font-size:11.5px;font-weight:850;line-height:1;cursor:pointer;transition:transform var(--cw-fast) ease,box-shadow var(--cw-fast) ease,background var(--cw-fast) ease,border-color var(--cw-fast) ease,color var(--cw-fast) ease}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:none}
.btn:focus-visible,.input:focus-visible,.select:focus-visible,.textarea:focus-visible{outline:3px solid rgba(0,180,230,.17);outline-offset:1px}
.btn-primary{background:var(--cw-theme-primary);color:#fff;box-shadow:0 7px 16px rgba(10,45,109,.14)}
.btn-primary:hover{background:#0C3A8B;box-shadow:0 10px 22px rgba(10,45,109,.18)}
.btn-accent,.btn-install{background:var(--cw-theme-accent);color:#fff;border-color:var(--cw-theme-accent);box-shadow:0 7px 16px rgba(0,180,230,.15)}
.btn-accent:hover,.btn-install:hover{background:#009DCB;border-color:#009DCB}
.btn-secondary{background:#fff;color:#43536B;border-color:#D5DFE8}
.btn-secondary:hover{background:#F6F9FB;border-color:#C5D1DE}
.btn-soft{background:#EAF8FC;color:var(--cw-theme-primary);border-color:#CFEAF3}
.btn-soft:hover{background:#DDF4FA;border-color:#B7E2EE}
.btn-outline{background:#fff;color:var(--cw-theme-primary);border-color:#B7C9DA}
.btn-outline:hover{background:#F4F8FB}
.btn-success{background:#EAF8EF;color:#087443;border-color:#C7E9D4}
.btn-warning{background:#FFF7E8;color:#9B5F00;border-color:#F1D99F}
.btn-danger{background:#FFF0EE;color:#B42318;border-color:#F1CDC8}
.btn-install{animation:cw-accent-pulse 3.6s ease-in-out infinite}
.btn-small{min-height:34px;padding:7px 10px;font-size:10.5px}
.btn-xs{min-height:30px;padding:6px 9px;font-size:10px}
.actions{display:flex;flex-wrap:wrap;gap:7px}

/* Action-only toolbars. Page identity is already in the shared title strip. */
.page-actionbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:0;background:transparent;border:0;border-radius:0;min-height:0}
.action-buttons,.page-actionbar-actions,.form-actions{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap}
.action-buttons form,.page-actionbar-actions form,.form-actions form{margin:0;display:inline-flex;align-items:center}
.action-buttons .btn,.page-actionbar-actions .btn,.form-actions .btn{flex:0 0 auto;white-space:nowrap}
.table-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.table-actions form{margin:0;display:inline-flex;align-items:center}
@media(max-width:620px){
  .action-buttons,.page-actionbar-actions,.form-actions{width:100%;align-items:stretch}
  .action-buttons .btn,.page-actionbar-actions .btn,.form-actions .btn{min-height:40px}
}

.page-actionbar-actions .action-context{display:none}
.page-actionbar-actions .btn{flex:0 0 auto}
.toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:1px}.toolbar > .btn:only-child{margin-left:auto}

/* Forms */
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.field{display:grid;gap:5px;min-width:0}
.field.full{grid-column:1/-1}
label{font-size:10px;font-weight:850;letter-spacing:.045em;text-transform:none;color:#5B6A82}
.input,.select,.textarea{width:100%;min-height:41px;padding:9px 11px;border:1px solid #D9E2EC;border-radius:11px;background:#fff;color:var(--cw-text);outline:0;font-size:12.5px;transition:border-color var(--cw-fast) ease,box-shadow var(--cw-fast) ease}
.textarea{min-height:108px;resize:vertical}
.input::placeholder{color:#9DA9B8}
.input:focus,.select:focus,.textarea:focus{border-color:#8ED5E7;box-shadow:0 0 0 4px rgba(0,180,230,.07)}

/* Filters / tables */
.filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.filters .input,.filters .select{width:auto;min-width:150px}
.table-wrap{overflow:auto}
.data-table{width:100%;min-width:700px;border-collapse:separate;border-spacing:0}
.data-table th,.data-table td{padding:10px 12px;border-bottom:1px solid #EDF1F5;text-align:left;vertical-align:middle;font-size:11.5px}
.data-table th{background:#FAFCFE;color:#738096;font-size:9px;font-weight:900;letter-spacing:.07em;text-transform:none}
.data-table tbody tr{transition:background var(--cw-fast) ease}
.data-table tbody tr:hover{background:#FBFDFF}
.data-table tr:last-child td{border-bottom:0}
.badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 7px;border-radius:999px;font-size:8.5px;font-weight:900;white-space:nowrap}
.badge-success{background:#EAF8EF;color:#087443}
.badge-warning{background:#FFF7E8;color:#9B5F00}
.badge-danger{background:#FFF0EE;color:#B42318}
.badge-info{background:#EEF3F8;color:#5B6A80}
.empty{padding:30px 12px;text-align:center;color:#8793A5;font-size:10.5px}
.progress{margin-bottom:13px}
.progress-bar{height:7px;overflow:hidden;border-radius:999px;background:#EDF2F6}
.progress-bar span{display:block;height:100%;border-radius:inherit;background:var(--cw-theme-accent)}

/* Feedback / install */
.flash{margin-bottom:10px;padding:11px 13px;border:1px solid var(--cw-line);border-radius:12px;background:#fff;box-shadow:var(--cw-shadow);font-size:11px;font-weight:800}
.flash.success{color:#087443;background:#F3FCF6;border-color:#C6E9D3}
.flash.error{color:#B42318;background:#FFF5F3;border-color:#F0C8C2}
.install-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:11px;padding:12px 14px;background:#fff;border:1px solid #D9EDF4;border-radius:14px;box-shadow:var(--cw-shadow)}
.install-banner strong{display:block;color:var(--cw-theme-dark);font-size:12px}
.install-banner .muted{margin-top:3px;font-size:10px}
.install-banner.hidden{display:none!important}

/* Plan-aware preview state */
.nav-lock{width:20px;height:20px;display:grid;place-items:center;color:var(--cw-theme-accent)}
.feature-nav-locked{color:#8D9BAD!important}.feature-nav-locked .nav-lock{color:#B2BFCC}
.feature-lock-banner{display:flex;align-items:center;gap:10px;padding:11px 13px;background:#FFF9ED;border:1px solid #F1D99F;border-radius:13px;box-shadow:0 7px 20px rgba(155,95,0,.045)}
.feature-lock-icon{width:32px;height:32px;display:grid;place-items:center;flex:0 0 32px;border-radius:9px;background:#fff;color:#9B5F00;border:1px solid #F1D99F}
.feature-lock-copy{min-width:0;flex:1}.feature-lock-copy strong{display:block;color:#6F4B00;font-size:11px}.feature-lock-copy span{display:block;margin-top:2px;color:#8A6A2C;font-size:9.5px;line-height:1.4}
.feature-page-shell.is-locked{position:relative}
.feature-page-shell.is-locked::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(255,255,255,.05),rgba(255,255,255,.14));pointer-events:none;border-radius:15px}
.feature-page-shell.is-locked > *{pointer-events:none;user-select:none}

/* Modal / processing */
.modal,.confirm-modal,.processing-layer{position:fixed !important;top:0 !important;right:0 !important;bottom:0 !important;left:0 !important;width:100vw !important;height:100vh !important;margin:0 !important;display:none;align-items:center;justify-content:center;padding:14px;background:rgba(8,25,48,.48);backdrop-filter:blur(4px);transform:none !important;isolation:isolate;box-sizing:border-box}
.modal{z-index:5000}.processing-layer{z-index:200}.confirm-modal{z-index:210}
.modal.show,.confirm-modal.show,.processing-layer.show{display:flex}
/* Staff create modal: keep every two-column field at its natural height so a helper note in the first column cannot stretch the paired field. */
.staff-form > .field{align-self:start;}
.staff-form > .field.full{align-self:stretch;}

.modal-card{width:min(900px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:17px;background:#fff;border:1px solid var(--cw-line);border-radius:17px;box-shadow:0 28px 90px rgba(8,25,48,.20);animation:cw-modal-in 180ms ease both;margin:0}
.processing-card{width:min(360px,100%);padding:22px;text-align:center;background:#fff;border:1px solid var(--cw-line);border-radius:17px;box-shadow:0 25px 80px rgba(8,25,48,.20)}
.spinner{width:33px;height:33px;margin:0 auto 10px;border:3px solid #DCECF3;border-top-color:var(--cw-theme-accent);border-radius:50%;animation:cw-spin .75s linear infinite}
.processing-card strong{display:block;color:var(--cw-theme-dark);font-size:11.5px}.processing-card span{display:block;margin-top:4px;color:#7C899B;font-size:9.5px}
.confirm-card{width:min(430px,100%);display:grid;grid-template-columns:40px 1fr;gap:11px;padding:17px;background:#fff;border:1px solid var(--cw-line);border-radius:16px;box-shadow:0 28px 90px rgba(8,25,48,.20);animation:cw-modal-in 180ms ease both}
.confirm-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:#FFF7E8;color:#9B5F00;border:1px solid #F1D99F}
.confirm-card strong{display:block;color:var(--cw-theme-dark);font-size:14px}.confirm-card p{margin:4px 0 0;color:var(--cw-muted);font-size:11px;line-height:1.5}
.confirm-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:7px;padding-top:3px}
.toast{position:fixed;right:16px;bottom:16px;z-index:220;max-width:min(360px,calc(100vw - 32px));padding:10px 12px;background:#fff;border:1px solid var(--cw-line);border-radius:11px;box-shadow:0 15px 35px rgba(8,32,78,.14);font-size:10.5px;font-weight:800;opacity:0;transform:translateY(8px);transition:opacity var(--cw-fast) ease,transform var(--cw-fast) ease}
.toast.show{opacity:1;transform:none}.toast.success{border-color:#BFE7CF;color:#087443}

/* Dashboard-only footer */
.footer{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;flex:0 0 auto;margin-top:auto;padding:11px 14px;background:#fff;border:1px solid var(--cw-line);border-radius:14px;box-shadow:var(--cw-shadow);color:#7C889A;font-size:10px;min-height:50px;position:relative;z-index:1;box-sizing:border-box}.main-area:has(.footer){min-height:calc(100vh - 24px)}
.footer strong{color:var(--cw-theme-dark);font-size:10px}.footer-copy{margin-left:6px;color:#8793A5}.footer-version{color:#7B889A;font-size:9px;font-weight:800;white-space:nowrap}

.hidden{display:none!important}
.content-wrap > *{animation:cw-rise .28s ease both}
@keyframes cw-rise{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes cw-spin{to{transform:rotate(360deg)}}
@keyframes cw-upgrade-flash{0%,100%{filter:brightness(1)}50%{filter:brightness(1.06)}}
@keyframes cw-accent-pulse{0%,100%{box-shadow:0 7px 16px rgba(0,180,230,.12)}50%{box-shadow:0 9px 24px rgba(0,180,230,.22)}}
@keyframes cw-menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@keyframes cw-modal-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}

@media(max-width:1180px){
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:860px){
  .app-body{padding:9px}.app-shell{display:block;min-height:calc(100vh - 18px);gap:9px}
  .form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}
  .install-banner{align-items:flex-start;flex-direction:column}.install-banner .btn{width:100%}
  .footer{align-items:flex-start;flex-direction:column}
}
@media(max-width:700px){
  .grid-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .grid-3,.grid-4{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .panel,.form-card{padding:13px;border-radius:14px}
  .toolbar{align-items:stretch}
  .filters{width:100%}
}
@media(max-width:520px){
  body{font-size:13px}.app-body{padding:7px}.app-shell{display:block;min-height:calc(100vh - 14px);gap:7px}
  .grid-2,.grid-3,.grid-4{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .data-table{min-width:620px}
  .filters .input,.filters .select{width:100%;min-width:0}
  .filters .btn{width:auto}
  .modal,.confirm-modal,.processing-layer{padding:8px}
  .modal-card{max-height:94vh;padding:13px}.confirm-card{padding:14px}.confirm-actions .btn{flex:1}
}
@media(max-width:380px){
  .grid-2,.grid-3,.grid-4{gap:7px}
  .btn{padding-left:10px;padding-right:10px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
@media print{.sidebar,.topbar,.footer,.install-banner,.toolbar{display:none!important}.app-body{padding:0;background:#fff}.app-shell{display:block}.content-wrap{padding:0}}


.modal-card:hover,.confirm-card:hover,.processing-card:hover,.login-card:hover{border-color:var(--cw-line);box-shadow:inherit}
/* --------------------------------------------------------------------------
   Student required account consent modal
   Global because the blocking consent modal is rendered on the Student
   Dashboard before the page-specific stylesheet is selected.
   -------------------------------------------------------------------------- */
.legal-consent-modal{z-index:6000}
.legal-consent-card{
    width:min(760px,calc(100vw - 28px));
    max-height:min(88vh,780px);
    padding:20px;
    overflow:auto;
}
.legal-consent-card .panel-head{margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #E8EEF3}
.legal-consent-card .panel-head h2{font-size:20px;line-height:1.25}
.legal-consent-card .panel-head .muted{font-size:12px;line-height:1.55}
.legal-consent-docs{display:grid;gap:8px;margin:14px 0}
.legal-consent-docs details{border:1px solid #DCE6EE;border-radius:10px;background:#FBFDFF;overflow:hidden}
.legal-consent-docs summary{display:flex;align-items:center;gap:7px;padding:11px 13px;cursor:pointer;color:var(--cw-theme-dark);font-size:11.5px;font-weight:800;line-height:1.4}
.legal-consent-docs summary span{margin-left:auto;color:#8290A1;font-size:10px;white-space:nowrap}
.legal-consent-body{padding:11px 13px;border-top:1px solid #E8EEF3;color:#506177;font-size:11px;line-height:1.6;max-height:180px;overflow:auto}
.legal-consent-form{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    width:100%;
    margin-top:16px;
    padding:16px 0 4px!important;
    border-top:1px solid #E8EEF3;
    box-sizing:border-box;
}
.legal-consent-form .check-row{
    display:flex!important;
    width:100%!important;
    min-width:0;
    box-sizing:border-box;
    align-items:flex-start!important;
    gap:9px;
    padding:10px 11px!important;
    border:1px solid #E1E8EF!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#405269;
    font-size:11.5px!important;
    line-height:1.5!important;
}
.legal-consent-form .check-row input{
    flex:0 0 15px;
    width:15px;
    height:15px;
    margin:2px 0 0;
    accent-color:var(--cw-theme-accent);
}
.legal-consent-form .btn{
    justify-self:start!important;
    align-self:start!important;
    margin-top:4px!important;
    min-height:42px!important;
    padding:10px 17px!important;
    font-size:12px!important;
}
@media(max-width:560px){
    .legal-consent-card{width:calc(100vw - 18px);max-height:92vh;padding:15px}
    .legal-consent-card .panel-head h2{font-size:18px}
    .legal-consent-form .check-row{font-size:11px!important;padding:10px!important}
    .legal-consent-form .btn{width:100%!important;justify-self:stretch!important;margin-top:6px!important}
}

.panel,.form-card,.table-wrap,.card,.box,[class*="-card"]{transition:border-color var(--cw-fast) ease,box-shadow var(--cw-fast) ease,transform var(--cw-fast) ease}


/* ============================================================================
   10 · Typography normalization
   Panel headings are sentence/title case; only compact metadata may use
   emphasis without forcing ALL CAPS through CSS transforms.
   ============================================================================ */
main h1,main h2,main h3,main h4,main h5,main h6{
  text-transform:none;
}


/* ============================================================================
   11 · Final Typography / Brand Accent Hierarchy
   Major headings use the secondary ClassWaze cyan for clarity; body copy and
   dense utility text remain neutral/navy so the interface stays readable.
   ============================================================================ */
.panel > h2,
.form-card > h2,
.panel-head h2,
.panel-head h3,
.section-card > h2,
.page-head h1,
.page-head h2,
.page-head h3{
  color:var(--cw-theme-accent) !important;
}
.panel .section-title h2,
.form-card .section-title h2,
.card-head h2{
  color:var(--cw-theme-accent) !important;
}
.panel .metric-row strong,
.panel .stat-value,
.panel .price,
.dashboard-widget h3{
  color:var(--cw-theme-dark);
}
/* ===== Panel Shell ===== */
/* ============================================================================
   CLASSWAZE PANEL — SHARED SAAS SHELL
   Header, sidebar, title bar, desktop collapse and mobile navigation.
   The navigation geometry is intentionally fixed so every SVG + label starts
   from the same visual grid across all roles and menu levels.
   ============================================================================ */

/* --------------------------------------------------------------------------
   SIDEBAR
   -------------------------------------------------------------------------- */
.sidebar-overlay { display: none; }

.sidebar {
  width: 272px;
  flex: 0 0 272px;
  position: sticky;
  top: 12px;
  height: calc(100vh - 24px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #FCFEFF 100%);
  border: 1px solid var(--cw-line);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 12px 34px rgba(8, 32, 78, .06);
  transition: width var(--cw-normal) ease, flex-basis var(--cw-normal) ease,
              transform var(--cw-normal) ease, opacity var(--cw-normal) ease;
}

.brand-block {
  flex: 0 0 auto;
  padding: 2px 2px 13px;
  margin: 0 1px 11px;
  border-bottom: 1px solid #EAF0F5;
}
.brand-block-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 5px 3px;
  color: inherit;
  text-decoration: none;
  text-align: center;
  border-radius: 14px;
  box-sizing: border-box;
}
.brand-block-link:hover { background: #F7FBFD; }
.brand-block-head{min-width:0;width:100%;display:flex;justify-content:center}
.brand-mark { width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;overflow:visible;background:transparent;border:0;border-radius:0;margin-inline:auto; }
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.brand-copy { min-width: 0; width: 100%; display: block; text-align: center; }
.brand-block strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--cw-theme-accent);
  font-size: 13.5px;
  font-weight: 820;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-align: center;
}
.brand-block small {
  display: block;
  margin-top: 4px;
  color: #718096;
  font-size: 9.5px;
  font-weight: 750;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: .01em;
  text-align: center;
}
.brand-block.no-logo .brand-block-link { padding: 5px 7px; }
.brand-block.no-logo .brand-block strong { max-width: 100%; font-size: 15px; text-align:center; }
.brand-block.no-logo .brand-block small { margin-top: 3px; font-size: 10px; text-align:center; }

.brand-plan-badge{display:flex;align-items:center;justify-content:center;gap:7px;width:max-content;max-width:calc(100% - 18px);margin:8px auto 0;padding:5px 10px;border:1px solid transparent;border-radius:999px;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;font-weight:800;line-height:1.2;transition:transform var(--cw-fast) ease,box-shadow var(--cw-fast) ease,border-color var(--cw-fast) ease}
.brand-plan-badge:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(8,32,78,.08)}
.brand-plan-dot{width:7px;height:7px;border-radius:50%;flex:0 0 7px;background:currentColor;opacity:.75}
.brand-plan-free{background:#F2F6F9;color:#52627A;border-color:#DCE5EC}
.brand-plan-basic{background:#EAF8FC;color:#087FA7;border-color:#CBEAF3}
.brand-plan-pro{background:#F4EFFF;color:#6340B4;border-color:#DED1F7}
.brand-plan-premium{background:#FFF6DE;color:#A76500;border-color:#F0D9A0}
.brand-block.no-logo .brand-plan-badge{margin:8px auto 0}
@media(max-width:560px){.brand-plan-badge{margin:8px auto 0;max-width:calc(100% - 18px);font-size:9.5px;padding:5px 9px}}

.nav-stack {
  display: grid;
  gap: 3px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0 5px;
  scrollbar-width: thin;
  scrollbar-color: var(--cw-theme-accent) transparent;
}
.nav-stack::-webkit-scrollbar { width: 5px; }
.nav-stack::-webkit-scrollbar-track { background: transparent; }
.nav-stack::-webkit-scrollbar-thumb { background: var(--cw-theme-accent); border-radius: 999px; }

.nav-group { display: grid; gap: 2px; isolation: isolate; }

/* Every row follows one exact 3-column layout: icon | label | end icon. */
.nav-stack > a,
.nav-group-toggle,
.nav-submenu > a {
  width: calc(100% - 16px);
  margin-inline: 8px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  align-items: center;
  column-gap: 8px;
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid transparent;
  transform: translateZ(0);
  isolation: isolate;
  border-radius: 12px;
  background: transparent;
  color: #59687E;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  z-index: 0;
  transition: background var(--cw-fast) ease, color var(--cw-fast) ease,
              border-color var(--cw-fast) ease, box-shadow var(--cw-fast) ease;
}

.nav-stack > a:hover,
.nav-group-toggle:hover,
.nav-submenu > a:hover {
  background: #F4FAFC;
  color: var(--cw-theme-primary);
  border-color: #E1F0F5;
  z-index: 2;
}


.nav-stack > a.active {
  background: var(--cw-theme-primary);
  color: #fff;
  border-color: var(--cw-theme-primary);
  box-shadow: 0 6px 14px rgba(10,45,109,.12);
  z-index: 3;
}

.nav-stack > a.active .nav-icon-wrap,
.nav-stack > a.active .svg-icon { color: #fff; }

.nav-icon-rail,
.nav-end-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: grid;
  place-items: center;
  color: currentColor;
}
.nav-icon-rail { overflow: hidden; }
.nav-icon-rail .svg-icon { width: 16px; height: 16px; }

.nav-icon-wrap { color: #738198; border-radius: 8px; }
.nav-stack > a:hover .nav-icon-wrap,
.nav-submenu > a:hover .nav-icon-wrap { color: var(--cw-theme-primary); }

.nav-group-icon {
  border-radius: 9px;
  background: #F1F7FB;
  color: var(--cw-theme-primary);
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-chevron {
  color: #8EA0B2;
  transition: transform var(--cw-fast) ease, color var(--cw-fast) ease;
}
.nav-group-toggle .nav-chevron { justify-self: end; }

/* Expanded section gets the strong navy treatment used by the approved demo. */
.nav-group.open > .nav-group-toggle {
  position: relative;
  z-index: 3;
  background: var(--cw-theme-primary);
  color: #fff;
  border-color: var(--cw-theme-primary);
  box-shadow: 0 8px 18px rgba(10,45,109,.12);
}
.nav-group.open .nav-group-icon {
  background: rgba(255,255,255,.10);
  color: #fff;
}
.nav-group.open .nav-chevron { transform: rotate(180deg); color: #fff; }

.nav-submenu {
  margin-inline: 8px;
  border-radius: 14px;
  background:var(--brand-light);
  border:1px solid color-mix(in srgb, var(--brand-accent) 18%, #DDE7EE);
  padding-inline: 3px;
  display: grid;
  row-gap: 2px;
  isolation: isolate;
  grid-template-rows: 0fr;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  transition: grid-template-rows var(--cw-normal) ease,
              max-height var(--cw-normal) ease,
              opacity var(--cw-normal) ease,
              padding var(--cw-normal) ease;
}
.nav-group.open .nav-submenu {
  margin-top:4px;
  grid-template-rows: 1fr;
  max-height: 1000px;
  opacity: 1;
  padding: 4px 2px 6px;
}
.nav-submenu > a {
  min-height: 35px;
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 720;
  color: #65738A;
}
.nav-submenu > a.active {
  position: relative;
  z-index: 3;
  background: #EAF8FC;
  color: var(--cw-theme-primary);
  border-color: #CDECF5;
  box-shadow: inset 3px 0 0 var(--cw-theme-accent);
  font-weight: 850;
}
.nav-submenu > a.active .nav-icon-wrap { color: var(--cw-theme-accent); }

.nav-end-icon.nav-spacer { visibility: hidden; }

/* No Upgrade / Plan / Support cards in the shared navigation. */
.sidebar-bottom {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 9px 0 0;
  border-top: 1px solid #EAF0F5;
}
.nav-logout {
  width: calc(100% - 18px);
  margin-inline: 9px;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) 24px;
  column-gap: 9px;
  align-items: center;
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 12px;
  color: #8C6262;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  box-sizing: border-box;
}
.nav-logout:hover { background: #FFF4F3; color: #B42318; }


.panel:hover,.form-card:hover,.table-wrap:hover,.dashboard-widget:hover,.pricing-plan-editor:hover,.onboard-card:hover,.studio-card:hover,.action-card:hover,.info-card:hover,.metric-card:hover,.split-card:hover,.progress-card:hover,.status-card:hover,.summary-card:hover,.feature-card:hover,.notice-card:hover,.timeline-card:hover,.compact-card:hover,.highlight-card:hover{border-color:rgba(0,180,230,.42);box-shadow:var(--cw-shadow-hover),0 0 0 1px rgba(0,180,230,.20)}

/* --------------------------------------------------------------------------
   TOP BAR
   -------------------------------------------------------------------------- */
.topbar {
  min-height:70px;
  position:sticky;
  top:12px;
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 12px;
  background:rgba(255,255,255,.94);
  border:1px solid var(--cw-line);
  border-radius:18px;
  box-shadow:0 9px 28px rgba(8,32,78,.055);
  backdrop-filter:blur(12px);
}
.topbar-left,.topbar-right { display:flex;align-items:center;gap:8px;min-width:0; }
.topbar-left { flex:1; }
.topbar-brand-mini { display:none;align-items:center;gap:7px;flex:0 0 auto; }
.topbar-brand-mini span { width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#F0F7FB;color:var(--cw-theme-primary);border:1px solid #DCEAF2;font-size:10px;font-weight:950; }
.topbar-brand-mini .topbar-brand-logo{width:30px;height:30px;display:grid;place-items:center;overflow:visible;border-radius:0;background:transparent;border:0;}
.topbar-brand-mini .topbar-brand-logo img{width:100%;height:100%;object-fit:contain;border-radius:0;}
.topbar-brand-mini strong{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--cw-theme-dark);font-size:12px;font-weight:900;}
.menu-toggle { display:grid !important;place-items:center;width:38px;height:38px;flex:0 0 38px;padding:0 !important;border:1px solid var(--cw-line);background:#fff;color:var(--cw-theme-primary);border-radius:11px;cursor:pointer; }
.menu-toggle:hover { background:#F4FAFC;border-color:#CFE7EF; }
.topbar-search {
  position:relative;height:42px;max-width:680px;min-width:260px;flex:1;display:flex;align-items:center;gap:9px;
  padding:0 12px;border:1px solid var(--cw-line);border-radius:12px;background:#F8FAFC;color:#7E8A9B;
}
.topbar-search:focus-within { background:#fff;border-color:#9EDBEA;box-shadow:none; }
.topbar-search input { width:100%;min-width:0;border:0;outline:0;box-shadow:none!important;background:transparent;color:var(--cw-text);font-size:12.5px;font-weight:400; }
.topbar-search input::placeholder { color:#97A4B4;opacity:1;font-weight:400; }
.panel-search-results{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:6200;background:#fff;border:1px solid #DCE7EF;border-radius:14px;box-shadow:0 14px 36px rgba(8,32,78,.12);padding:6px;display:none;max-height:390px;overflow:auto;}
.panel-search-results.show{display:block;}
.panel-search-result{display:flex;align-items:flex-start;gap:10px;padding:9px 10px;border-radius:10px;text-decoration:none!important;color:#1C2B40!important;}
.panel-search-result:hover{background:#F2FBFE;}
.panel-search-result .result-icon{width:28px;height:28px;border-radius:8px;background:#EEF8FC;color:var(--cw-theme-accent);display:grid;place-items:center;flex:0 0 28px;}
.panel-search-result strong{display:block;color:#26364B;font-size:11px;font-weight:500;line-height:1.35;}
.panel-search-result small{display:block;margin-top:3px;color:#7B899B;font-size:10px;font-weight:400;line-height:1.35;}
.panel-search-empty{padding:14px 10px;color:#7B899B;font-size:10.5px;font-weight:400;text-align:center;}
@media(max-width:980px){.topbar-search{min-width:220px;}}
@media(max-width:760px){.topbar-search{min-width:0;flex:1;}.panel-search-results{position:fixed;left:10px;right:10px;top:72px;max-height:55vh;}}

.top-action,.icon-button {
  display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;
  border:1px solid var(--cw-line);border-radius:11px;background:#fff;color:#607087;cursor:pointer;
}
.top-action:hover,.icon-button:hover { background:#F4FAFC;border-color:#CFE6EF;color:var(--cw-theme-primary); }
.top-live { display:flex;align-items:center;gap:7px;height:38px;padding:0 10px;border:1px solid var(--cw-line);border-radius:11px;background:#FBFCFE;color:#718096;font-size:10.5px;font-weight:800;white-space:nowrap; }
.live-dot { width:7px;height:7px;border-radius:50%;background:#16A34A;box-shadow:0 0 0 4px rgba(22,163,74,.08); }
.profile-wrap { position:relative; }
.profile-trigger { display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--cw-text);cursor:pointer;outline:0; }
.profile-trigger:hover,.profile-trigger:focus-visible { background:rgba(0,180,230,.06);box-shadow:0 0 0 3px rgba(0,180,230,.08); }
.profile-avatar { width:36px;height:36px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:var(--cw-theme-primary);color:#fff;font-size:11px;font-weight:900; }
.profile-menu { display:none;position:absolute;right:0;top:calc(100% + 8px);width:190px;padding:6px;z-index:100;background:#fff;border:1px solid var(--cw-line);border-radius:13px;box-shadow:0 20px 50px rgba(8,32,78,.14);animation:cw-menu-in 140ms ease both; }
.profile-menu.show { display:grid; }
.profile-menu::before{content:"";position:absolute;top:-5px;right:18px;width:9px;height:9px;transform:rotate(45deg);background:#fff;border-left:1px solid var(--cw-line);border-top:1px solid var(--cw-line)}
.profile-menu-head{padding:7px 9px 8px;border-bottom:1px solid #EDF1F5;color:var(--cw-theme-dark);font-size:11.5px;font-weight:900;line-height:1.25;margin-bottom:3px}
.profile-menu a { display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:9px;color:#56657B;text-decoration:none;font-size:11px;font-weight:750; }
.profile-menu a:hover { background:#F3F8FB;color:var(--cw-theme-primary); }
.profile-menu a.danger:hover { background:#FFF2F0;color:#B42318; }

/* --------------------------------------------------------------------------
   SHARED PAGE TITLE BAR
   This is the single place for page identity. Individual pages should not
   repeat the page title/subtitle below it.
   -------------------------------------------------------------------------- */
.page-titlebar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:84px;
  padding:12px 15px;
  background:linear-gradient(135deg,#FFFFFF 0%,#FBFDFF 72%,#F4FBFD 100%);
  border:1px solid var(--cw-line);
  border-radius:16px;
  box-shadow:0 7px 22px rgba(8,32,78,.045);
}
.page-titlebar-main { display:flex;align-items:center;gap:11px;min-width:0; }
.page-title-icon { width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border:1px solid #CFEAF3;border-radius:12px;background:#F0FAFD;color:var(--cw-theme-accent); }
.page-titlebar-copy { min-width:0; }
.page-breadcrumb { display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:3px;color:#8B97A8;font-size:8.5px;font-weight:800;letter-spacing:.02em; }
.page-breadcrumb strong { color:var(--cw-theme-primary);font-weight:900; }
.breadcrumb-sep { color:#C3CCD5; }
.page-titlebar h1 { margin:0;color:var(--cw-theme-accent);font-size:22px;line-height:1.12;letter-spacing:-.028em; }
.page-titlebar p { max-width:940px;margin:4px 0 0;color:#718096;font-size:11px;line-height:1.45; }
.page-titlebar-side { display:flex;align-items:center;justify-content:center;min-width:0;flex:0 0 auto;gap:6px; }
.page-date { color:#8A96A8;font-size:9px;font-weight:800; }

@media (min-width:861px) {
  .sidebar-collapsed .sidebar { width:0;flex-basis:0;padding-left:0;padding-right:0;border-width:0;opacity:0;transform:translateX(-14px);pointer-events:none; }
  .sidebar-collapsed .app-shell { grid-template-columns:0 minmax(0,1fr); gap:0; }
  /* Desktop collapse keeps only the menu/search controls; the duplicate brand strip disappears. */
  .sidebar-collapsed .topbar-brand-mini { display:none !important; }
  .sidebar-collapsed .topbar-search { max-width:none; }
}

@media (max-width:860px) {
  .sidebar { position:fixed;left:9px;top:9px;width:min(304px,calc(100vw - 18px));height:calc(100vh - 18px);transform:translateX(calc(-100% - 18px));opacity:0;pointer-events:none;z-index:120; }
  .sidebar.open { transform:none;opacity:1;pointer-events:auto; }
  .sidebar-overlay { display:block;position:fixed;inset:0;z-index:110;background:rgba(8,25,48,.30);backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:opacity var(--cw-normal) ease; }
  body.sidebar-open .sidebar-overlay { opacity:1;pointer-events:auto; }
  .page-titlebar { min-height:78px;padding:11px 13px; }
  .page-titlebar-side { display:none; }
  .page-titlebar h1 { font-size:20px; }
  .page-titlebar p { font-size:11px; }
  .topbar { top:9px;min-height:66px;padding:9px 10px; }
  .top-live { display:none; }
  .profile-trigger { width:36px;height:36px; }
  .profile-avatar { width:34px;height:34px; }
}

@media (max-width:560px) {
  .sidebar { left:7px;top:7px;height:calc(100vh - 14px);padding:10px; }
  .topbar { top:7px;min-height:62px;padding:8px;border-radius:15px; }
  .menu-toggle { width:36px;height:36px;flex-basis:36px; }
  .topbar-search { height:38px;min-width:0;padding:0 10px;border-radius:10px; }
  .topbar-search input { font-size:11.5px; }
  .top-action { width:35px;height:35px;flex-basis:35px; }
  .profile-avatar { width:31px;height:31px; }
  .page-titlebar { padding:10px 11px;border-radius:14px; }
  .page-titlebar h1 { font-size:18px; }
  .page-breadcrumb { font-size:8px; }
  .page-titlebar-main { gap:9px; }
  .page-title-icon { width:36px;height:36px;flex-basis:36px;border-radius:10px; }
}


@media(max-width:760px){.page-titlebar{padding:12px 13px;}.page-titlebar h1{font-size:19px;}.page-titlebar p{font-size:10.5px;}}

/* ============================================================================
   12 · Panel Heading Hierarchy
   Major titles use the ClassWaze accent for a cleaner, lighter hierarchy.
   Small labels and dense data stay neutral for readability.
   ============================================================================ */
.page-titlebar h1,
.page-head h1,
.page-head h2 {
  color:var(--cw-theme-accent);
}


@media (min-width:861px){.sidebar-collapsed .topbar-brand-mini{display:none !important;}.sidebar-collapsed .topbar-left{gap:8px;}}

/* ============================================================================
   06 · SHARED COMPONENTS
   Single source of truth for reusable panel cards.
   Super Admin, Admin and Student use the same visual card shell;
   pages only choose content, layout variant and semantic tone.
   ============================================================================ */

/* Base shared card shell. */
.cw-shared-card,
.cw-hover-card,
.message-card,
.step-panel,
.material-card,
.brand-preview-card,
.theme-preset,
.section-card,
.studio-card,
.onboard-card,
.subscription-plan-card,
.control-plan-card,
.insight-card,
.franchise-metric-card,
.admission-card,
.resource-card,
.folder-card,
.pricing-plan-editor,
.domain-status-panel,
.subscription-summary,
.profile-hero-card,
.dashboard-widget,
.quick-action,
.action-card,
.info-card,
.metric-card,
.split-card,
.progress-card,
.status-card,
.summary-card,
.feature-card,
.notice-card,
.timeline-card,
.compact-card,
.highlight-card,
.plan-card{
    position:relative;
    min-width:0;
    background:#fff;
    border:1px solid rgba(10,45,109,.10);
    border-radius:15px;
    box-shadow:0 4px 14px rgba(8,32,78,.045);
    transition:
        transform var(--cw-fast) ease,
        box-shadow var(--cw-fast) ease,
        border-color var(--cw-fast) ease,
        background var(--cw-fast) ease;
}

/* Shared hover: thin ClassWaze cyan brand outline. */
.cw-shared-card:hover,
.cw-hover-card:hover,
.message-card:hover,
.step-panel:hover,
.material-card:hover,
.brand-preview-card:hover,
.theme-preset:hover,
.section-card:hover,
.studio-card:hover,
.onboard-card:hover,
.subscription-plan-card:hover,
.control-plan-card:hover,
.insight-card:hover,
.franchise-metric-card:hover,
.admission-card:hover,
.resource-card:hover,
.folder-card:hover,
.pricing-plan-editor:hover,
.domain-status-panel:hover,
.subscription-summary:hover,
.profile-hero-card:hover,
.dashboard-widget:hover,
.quick-action:hover,
.action-card:hover,
.info-card:hover,
.metric-card:hover,
.split-card:hover,
.progress-card:hover,
.status-card:hover,
.summary-card:hover,
.feature-card:hover,
.notice-card:hover,
.timeline-card:hover,
.compact-card:hover,
.highlight-card:hover,
.plan-card:hover{
    transform:translateY(-2px);
    border-color:rgba(0,180,230,.42);
    box-shadow:var(--cw-shadow-hover),0 0 0 1px rgba(0,180,230,.12);
}

/* --------------------------------------------------------------------------
   06A · Shared card content / layout variants
   -------------------------------------------------------------------------- */
.info-card,
.action-card,
.metric-card,
.status-card,
.summary-card,
.feature-card,
.notice-card,
.timeline-card,
.highlight-card{
    padding:14px;
}

.compact-card{
    padding:11px 12px;
}

.info-card h3,
.action-card h3,
.metric-card h3,
.status-card h3,
.summary-card h3,
.feature-card h3,
.notice-card h3,
.timeline-card h3,
.highlight-card h3,
.compact-card h3{
    margin:0;
    color:var(--cw-theme-dark);
    font-size:13px;
    line-height:1.3;
}

.card-copy{
    margin:4px 0 0;
    color:#7B899D;
    font-size:10.5px;
    line-height:1.5;
}

.metric-card .metric-value{
    margin-top:7px;
    color:var(--cw-theme-dark);
    font-size:22px;
    font-weight:900;
    line-height:1.05;
}

.metric-card .metric-hint{
    margin-top:4px;
    color:#8793A5;
    font-size:9.5px;
}

.action-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.action-card .action-card-copy{
    min-width:0;
    flex:1;
}

.card-tone-green{background:#F5FBF7;}
.card-tone-amber{background:#FFF9EF;}
.card-tone-violet{background:#FAF7FF;}
.card-tone-red{background:#FFF7F6;}
.card-tone-cyan{background:#F3FCFE;}
.card-tone-navy{background:#F8FAFE;}

/* Core stat grid used on both dashboard and inner pages. */
.stats-grid,
.stats-grid-4{
    display:grid;
    grid-template-columns:repeat(4,minmax(190px,1fr));
    gap:10px;
    align-items:stretch;
    width:100%;
}


.stats-grid-5{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:10px;
    align-items:stretch;
}

.stats-grid-6,
.cw-stat-grid-6,
.dashboard-kpis{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:10px;
    align-items:stretch;
    width:100%;
}

.stat-card,
.stat-card-link{
    position:relative;
    min-width:0;
    min-height:104px;
    padding:12px 13px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    background:#fff;
    border:1px solid rgba(10,45,109,.11);
    border-radius:15px;
    box-shadow:0 4px 14px rgba(8,32,78,.045);
    color:inherit;
    text-decoration:none;
    cursor:default;
    transition:
        transform var(--cw-fast) ease,
        box-shadow var(--cw-fast) ease,
        background var(--cw-fast) ease,
        border-color var(--cw-fast) ease;
}

.stat-card-link{cursor:pointer;}

.stat-card:hover,
.stat-card-link:hover{
    transform:translateY(-2px);
    border-color:rgba(0,180,230,.42);
    box-shadow:var(--cw-shadow-hover),0 0 0 1px rgba(0,180,230,.12);
}

.stat-card .stat-top,
.stat-card-link .stat-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
}

.stat-card .stat-icon,
.stat-card-link .stat-icon{
    width:20px;
    height:20px;
    min-width:20px;
    display:inline-flex;
    align-items:center;
    justify-content:flex-start;
    padding:0;
    margin:0 0 8px;
    border:0;
    border-radius:0;
    background:transparent!important;
    color:var(--cw-theme-primary);
    font-size:16px;
    line-height:1;
}

.stat-card .stat-icon svg,
.stat-card-link .stat-icon svg,
.stat-card .stat-icon .svg-icon,
.stat-card-link .stat-icon .svg-icon{
    width:18px;
    height:18px;
    display:block;
    fill:none;
    stroke:currentColor;
}

.stat-card .stat-label,
.stat-card-link .stat-label{
    margin:0;
    color:#56667D;
    font-size:11px;
    font-weight:650;
    line-height:1.3;
    text-transform:none;
    letter-spacing:0;
}

.stat-card .stat-value,
.stat-card-link .stat-value{
    margin-top:3px;
    color:var(--cw-theme-dark);
    font-size:22px;
    font-weight:900;
    line-height:1.05;
    letter-spacing:-.03em;
}

.stat-card .stat-hint,
.stat-card-link .stat-hint{
    margin-top:5px;
    color:#8592A4;
    font-size:9.5px;
    line-height:1.35;
}

.stat-card .stat-tone,
.stat-card-link .stat-tone{
    display:none!important;
}

.stat-trend{
    padding:4px 7px;
    border-radius:999px;
    background:#F4F7FA;
    color:#65758B;
    font-size:8.5px;
    font-weight:850;
}

/* KPI semantic tones. */
.stat-card--navy{background:linear-gradient(180deg,#fff,#F7FAFF);border-color:rgba(10,45,109,.12);box-shadow:0 4px 15px rgba(10,45,109,.065)}
.stat-card--navy .stat-icon,.stat-card--navy .stat-value{color:#0A2D6D}

.stat-card--cyan{background:linear-gradient(180deg,#fff,#F1FAFD);border-color:rgba(0,157,204,.12);box-shadow:0 4px 15px rgba(0,157,204,.075)}
.stat-card--cyan .stat-icon{color:#009DCC}.stat-card--cyan .stat-value{color:#087FA7}

.stat-card--green{background:linear-gradient(180deg,#fff,#F2FAF6);border-color:rgba(22,132,91,.12);box-shadow:0 4px 15px rgba(22,132,91,.08)}
.stat-card--green .stat-icon{color:#16845B}.stat-card--green .stat-value{color:#126D4C}

.stat-card--amber{background:linear-gradient(180deg,#fff,#FFF9EE);border-color:rgba(197,126,0,.13);box-shadow:0 4px 15px rgba(197,126,0,.085)}
.stat-card--amber .stat-icon{color:#B97800}.stat-card--amber .stat-value{color:#A76600}

.stat-card--violet{background:linear-gradient(180deg,#fff,#F9F6FF);border-color:rgba(112,81,200,.12);box-shadow:0 4px 15px rgba(112,81,200,.08)}
.stat-card--violet .stat-icon{color:#7051C8}.stat-card--violet .stat-value{color:#5D40AE}

.stat-card--indigo{background:linear-gradient(180deg,#fff,#F5F6FF);border-color:rgba(78,95,195,.12);box-shadow:0 4px 15px rgba(78,95,195,.075)}
.stat-card--indigo .stat-icon{color:#4E5FC3}.stat-card--indigo .stat-value{color:#3F4FA9}

.stat-card--teal{background:linear-gradient(180deg,#fff,#F1FBFA);border-color:rgba(8,125,120,.12);box-shadow:0 4px 15px rgba(8,125,120,.075)}
.stat-card--teal .stat-icon{color:#087D78}.stat-card--teal .stat-value{color:#066E6A}

.stat-card--red{background:linear-gradient(180deg,#fff,#FFF6F5);border-color:rgba(180,35,24,.13);box-shadow:0 4px 15px rgba(180,35,24,.10)}
.stat-card--red .stat-icon{color:#C83232}.stat-card--red .stat-value{color:#BD2929}

.stat-card--slate{background:linear-gradient(180deg,#fff,#F7F9FB);border-color:rgba(82,98,122,.11);box-shadow:0 4px 15px rgba(82,98,122,.07)}
.stat-card--slate .stat-icon{color:#52627A}.stat-card--slate .stat-value{color:#43536B}

.stat-card--purple{background:linear-gradient(180deg,#fff,#FBF6FF);border-color:rgba(138,67,184,.12);box-shadow:0 4px 15px rgba(138,67,184,.075)}
.stat-card--purple .stat-icon{color:#8A43B8}.stat-card--purple .stat-value{color:#7535A4}

/* --------------------------------------------------------------------------
   06B · Responsive card grid
   -------------------------------------------------------------------------- */
@media(max-width:1180px){
    .stats-grid-6,.cw-stat-grid-6,.dashboard-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
    .stats-grid-5{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:1000px){
    .stats-grid,.stats-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
    .stats-grid-6,.cw-stat-grid-6,.dashboard-kpis,.stats-grid-5{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:720px){
    .stats-grid,.stats-grid-4,.stats-grid-6,.cw-stat-grid-6,.dashboard-kpis,.stats-grid-5{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:9px;
    }
    .stat-card,.stat-card-link{min-height:104px;padding:10px;border-radius:13px}
    .stat-card .stat-value,.stat-card-link .stat-value{font-size:21px}
}
@media(max-width:520px){
    .stats-grid,.stats-grid-4,.stats-grid-6,.cw-stat-grid-6,.dashboard-kpis,.stats-grid-5{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }
}

/* --------------------------------------------------------------------------
   06C · Internal layout variants
   -------------------------------------------------------------------------- */
.compact-card{padding:11px 12px}
.split-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px}
.progress-card .progress-label{display:flex;justify-content:space-between;gap:10px;color:#52627A;font-size:10px;font-weight:800}
.progress-card .progress-track{height:7px;margin-top:7px;background:#EDF2F6;border-radius:999px;overflow:hidden}
.progress-card .progress-track span{display:block;height:100%;background:var(--cw-theme-accent);border-radius:inherit}
.status-card{display:flex;align-items:flex-start;gap:10px}
.status-card .status-mark{width:30px;height:30px;display:grid;place-items:center;flex:0 0 30px;border-radius:9px;background:#EEF8FC;color:var(--cw-theme-accent)}
.timeline-card{border-left:3px solid var(--cw-theme-accent)}

/* --------------------------------------------------------------------------
   07 · SMALL SHARED UTILITIES
   -------------------------------------------------------------------------- */
.share-link{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #E2E8EF;border-radius:10px;background:#FBFCFE}
.share-link input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#52627A;font-size:10px}
.empty-state{padding:34px 16px;text-align:center;background:#FBFCFE;border:1px dashed #DCE5ED;border-radius:14px}
.empty-state strong{display:block;color:var(--cw-theme-dark);font-size:12px}
.empty-state p{margin:5px 0 0;color:#8793A5;font-size:9.5px}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:11px;margin-bottom:12px}
.page-head h1,.page-head h2{margin:0;color:var(--cw-theme-dark)}
.section-kicker{display:block;margin-bottom:4px;color:var(--cw-theme-accent);font-size:8.5px;font-weight:900;letter-spacing:.12em;text-transform:none}
.input-small{min-height:33px!important;padding:6px 9px!important;font-size:10px!important}
.search-icon{display:grid;place-items:center;flex:0 0 auto;color:#7E8A9B}

.toggle{position:relative;display:inline-block;width:46px;height:24px}
.toggle input{display:none}
.toggle span{position:absolute;inset:0;background:#C9D3DF;border-radius:999px;cursor:pointer;transition:.18s}
.toggle span:before{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 4px rgba(8,32,78,.15);transition:.18s}
.toggle input:checked+span{background:var(--cw-theme-accent)}
.toggle input:checked+span:before{transform:translateX(22px)}

@media(max-width:520px){
    .message-card{padding:13px}
    .step-panel{padding:13px}
    .share-link{flex-direction:column;align-items:stretch}
    .share-link .btn{width:100%}
    .page-head{align-items:flex-start;flex-direction:column}
}

/* --------------------------------------------------------------------------
   08 · SPECIALIZED DOCUMENT / PRINT SURFACES
   Auth, modal, printable and identity-document surfaces remain specialized.
   They are intentionally not converted into dashboard content cards.
   -------------------------------------------------------------------------- */
.admit-card,.id-card,.print-card,.agreement-document{
    background:#fff;
    border:1px solid var(--cw-line);
    border-radius:14px;
    box-shadow:var(--cw-shadow);
}
.id-card-top,.id-card-bottom,.id-card-main{padding:11px}
.id-avatar{width:68px;height:68px;border-radius:11px;object-fit:cover;background:#EEF3F8}
.print-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.file-input{font-size:11px}
.upload-note{font-size:10px;color:var(--cw-muted);line-height:1.5}
.preview-chip{white-space:nowrap}

/* --------------------------------------------------------------------------
   09 · SHARED SURFACE INTERACTION
   Non-stat containers retain the common ClassWaze hover language.
   -------------------------------------------------------------------------- */
.modal-card:hover,.confirm-card:hover,.processing-card:hover,.login-card:hover{
    border-color:var(--cw-line);
    box-shadow:inherit;
}

.hidden{display:none!important}

/* Responsive / motion safeguards remain owned by common.css. */
@media(prefers-reduced-motion:reduce){
    *,*::before,*::after{
        animation-duration:.001ms!important;
        animation-iteration-count:1!important;
        transition-duration:.001ms!important;
        scroll-behavior:auto!important;
    }
}

/* --------------------------------------------------------------------------
   10 · Footer
   -------------------------------------------------------------------------- */
.footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:auto;
    padding:11px 14px;
    background:#fff;
    border:1px solid var(--cw-line);
    border-radius:14px;
    box-shadow:var(--cw-shadow);
    color:#7C889A;
    font-size:10px;
    min-height:50px;
}
.footer strong{color:var(--cw-theme-dark);font-size:10px}
.footer-copy{margin-left:6px;color:#8793A5}
.footer-version{color:#7B889A;font-size:9px;font-weight:800;white-space:nowrap}

/* --------------------------------------------------------------------------
   Shared dashboard welcome accent + panel pagination
   -------------------------------------------------------------------------- */
.dashboard-welcome .welcome-role-accent{
    color:#13A66A;
}
.dashboard-welcome-workspace .welcome-role-accent,.dashboard-welcome-student .welcome-role-accent{
    color:#13A66A;
}

.panel-pagination{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:5px;
    margin-top:12px;
}
.panel-page-number{
    min-width:31px;
    height:31px;
    display:inline-grid;
    place-items:center;
    padding:0 8px;
    border:1px solid var(--cw-line);
    border-radius:9px;
    background:#fff;
    color:#52627A;
    text-decoration:none;
    font-size:10px;
    font-weight:850;
}
.panel-page-number:hover{
    border-color:#B8E6F1;
    background:#F3FBFD;
    color:var(--cw-theme-primary);
}
.panel-page-number.active{
    border-color:var(--cw-theme-primary);
    background:var(--cw-theme-primary);
    color:#fff;
}
.panel-page-ellipsis{
    display:inline-grid;
    place-items:center;
    min-width:24px;
    height:31px;
    color:#8793A5;
    font-size:10px;
}
@media(max-width:560px){
    .panel-pagination{justify-content:center;}
}

/* Readable nested notes/previews: intentionally lighter than full cards. */
.setting-note{
    margin-top:14px;
    padding:12px 13px;
    background:var(--brand-light);
    border:1px solid #DCEEF4;
    border-radius:12px;
}
.setting-note strong{
    display:block;
    color:var(--cw-theme-dark);
    font-size:11.5px;
    line-height:1.3;
}
.setting-note p{
    margin:5px 0 0;
    color:#66778E;
    font-size:10.5px;
    line-height:1.55;
}

/* ============================================================================
   AUTH / LOGIN — shared professional surface
   ============================================================================ */
.login-page{
    min-height:100vh;
    margin:0;
    padding:24px;
    display:grid;
    place-items:center;
    background:
      radial-gradient(circle at 10% 10%,rgba(0,180,230,.08),transparent 28%),
      radial-gradient(circle at 90% 85%,rgba(10,45,109,.08),transparent 30%),
      #F6F9FC;
}
.login-shell{width:min(100%,500px);position:relative}
.login-card{
    position:relative;
    width:100%;
    padding:32px;
    border:1px solid var(--cw-line);
    border-radius:22px;
    background:#fff;
    box-shadow:0 22px 55px rgba(8,32,78,.10);
}
.login-close{
    position:absolute;
    top:14px;
    right:14px;
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border:1px solid #DDE6EF;
    border-radius:50%;
    background:#fff;
    color:#66778E;
    text-decoration:none;
    transition:.18s ease;
}
.login-close:hover{color:var(--cw-theme-primary);border-color:rgba(0,180,230,.45);background:#F3FBFD;transform:translateY(-1px)}
.login-logo{display:flex;align-items:center;justify-content:flex-start;min-height:58px;margin:0 44px 20px 0;color:var(--cw-theme-dark);font-size:20px;font-weight:950;letter-spacing:-.03em}
.login-logo img{display:block;width:auto;max-width:220px;height:auto;max-height:64px;object-fit:contain;background:transparent;border:0;border-radius:0;box-shadow:none}
.login-logo--text strong{font-size:20px;color:var(--cw-theme-dark)}
.login-card .eyebrow{margin-bottom:7px;color:var(--cw-theme-accent);font-size:9px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.login-card h1{margin:0;color:var(--cw-theme-dark);font-size:25px;line-height:1.15;letter-spacing:-.025em}
.login-card>p{margin:8px 0 0;color:#718096;font-size:11.5px;line-height:1.6}
.login-card form{margin-top:20px}
.login-card .field{gap:7px}
.login-card .input{min-height:44px;border-radius:12px}
.login-card .btn-primary{min-height:44px}
.login-card .flash{margin-top:14px}
.login-links{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:18px;padding-top:15px;border-top:1px solid #EDF1F5}
.login-links a{color:#68788E;font-size:10.5px;font-weight:800;text-decoration:none}
.login-links a:hover{color:var(--cw-theme-accent)}
.login-forgot{display:flex;justify-content:center;margin-top:10px}
.login-forgot a{color:var(--cw-theme-primary);font-size:10.5px;font-weight:800;text-decoration:none}
.login-forgot a:hover{color:var(--cw-theme-accent)}
@media(max-width:560px){
    .login-page{padding:12px}
    .login-card{padding:24px 18px;border-radius:18px}
    .login-card h1{font-size:21px}
    .login-logo img{max-width:185px;max-height:54px}
    .login-links{gap:10px;flex-wrap:wrap}
}

/* ============================================================================
   Tables / action alignment
   ============================================================================ */
.data-table th,.data-table td{vertical-align:middle}
.data-table th:last-child,.data-table td:last-child{text-align:center}
.staff-action-buttons,.student-action-buttons{display:flex;align-items:center;justify-content:flex-start;gap:5px;flex-wrap:wrap;max-width:520px}.student-action-buttons .btn{white-space:nowrap}
.staff-action-buttons form,.student-action-buttons form{margin:0}

/* ============================================================================
   Staff identity records + print card
   ============================================================================ */
.staff-toolbar{margin-bottom:12px}
.staff-table{min-width:1080px}
.staff-table th,.staff-table td{white-space:nowrap}
.staff-table td:first-child{white-space:normal;min-width:180px}
.staff-compliance-note{margin-top:12px;background:#F8FBFD;box-shadow:none}
.permission-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.permission-group{padding:10px;border:1px solid #E5ECF2;border-radius:12px;background:#FBFCFE}
.permission-group-title{margin-bottom:7px;color:var(--cw-theme-dark);font-size:10px;font-weight:900}
.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.permission-item{display:flex!important;align-items:center;gap:7px;padding:8px 9px;border:1px solid #E5ECF2;border-radius:9px;background:#fff;text-transform:none!important;letter-spacing:0!important;font-size:11px!important;font-weight:750!important;color:#46566C!important}
.permission-item input{margin:0}
.permission-item small{margin-left:auto;color:#9B5F00;font-size:8px;font-weight:800}
.permission-item.is-locked{opacity:.58;background:#F7F8FA}

.kyc-status-page{display:grid;gap:12px}.kyc-status-hero{display:flex;align-items:center;gap:13px;padding:16px;border:1px solid #E8D4D0;border-radius:16px;background:#FFF7F5}.kyc-status-hero.kyc-status-verified{border-color:#CBE8D7;background:#F4FCF7}.kyc-status-mark{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:12px;background:#FBE8E5;color:#B42318}.kyc-status-verified .kyc-status-mark{background:#E6F7ED;color:#087443}.kyc-status-hero h2{margin:0;color:var(--cw-theme-dark);font-size:18px}.kyc-status-hero p{margin:4px 0 0;color:#68788E;font-size:10.5px;line-height:1.55}.kyc-action-box,.kyc-complete-box,.kyc-rejection-note{padding:12px;border-radius:12px;background:#F8FBFD;border:1px solid #E1EAF1}.kyc-action-box strong,.kyc-complete-box strong,.kyc-rejection-note strong{color:var(--cw-theme-dark);font-size:11px}.kyc-rejection-note{margin-top:12px;background:#FFF7F5;border-color:#F0D4CF}.kyc-rejection-note p{margin:5px 0 0;color:#7A5A55;font-size:10px;line-height:1.5}
.dashboard-alert{display:flex;align-items:center;gap:12px;padding:13px 14px;margin:0 0 12px;border:1px solid #E8C7C2;border-radius:16px;background:#FFF7F5;box-shadow:0 8px 22px rgba(180,35,24,.06)}
.dashboard-alert-icon{width:36px;height:36px;display:grid;place-items:center;flex:0 0 36px;border-radius:10px;background:#FBE8E5;color:#B42318}.dashboard-alert-copy{min-width:0;flex:1}.dashboard-alert-copy strong{display:block;color:#8F2017;font-size:12px}.dashboard-alert-copy p{margin:3px 0 0;color:#785B57;font-size:10px;line-height:1.5}.dashboard-alert .btn{flex:0 0 auto}
@media(max-width:760px){.permission-grid,.permission-groups{grid-template-columns:1fr}.dashboard-alert{align-items:flex-start;flex-wrap:wrap}.dashboard-alert .btn{margin-left:48px}.staff-table{min-width:1040px}}
@media print{.no-print,.sidebar,.topbar,.page-titlebar,.footer{display:none!important}.main-area{padding:0!important}.content-wrap{padding:0!important}}

/* R34.3: compact platform health legend; labels no longer collapse into a narrow column. */
.cw-legend-row{grid-template-columns:minmax(0,1fr) auto;}
.cw-legend-row i{display:none;}
/* R38 follow-up analytics */
.stats-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 12px}.timeline-list{display:grid;gap:8px}.timeline-row{padding:10px 11px;border:1px solid #E3EAF1;border-radius:11px;background:#FBFCFE}.timeline-row strong{display:block;color:var(--cw-theme-dark);font-size:11px}.timeline-row span{display:block;color:#53647B;font-size:10px;margin-top:3px}.timeline-row small{display:block;color:#8A96A8;font-size:9px;margin-top:4px}@media(max-width:800px){.stats-grid-3{grid-template-columns:1fr}}


/* R52 typography pass: compact metadata stays readable without heavy bold weight. */
.mini,.footer-version,.page-date,.page-breadcrumb{font-weight:550!important}
.stat-card .stat-hint,.stat-card-link .stat-hint{font-weight:500}
.form-section-head p,.panel-head .muted,.action-context span,.top-centre-copy small{font-weight:500}

/* R53 layout safety: long labels and descriptions must never overlap controls. */
.panel-head>div:first-child,
.page-titlebar-copy,
.dashboard-widget-title>div,
.dashboard-widget-head>div,
.form-section-head>div{min-width:0}
.panel-head h2,.panel-head h3,.page-titlebar h1,.page-titlebar p,
.muted,.mini,.dashboard-widget-title h3,.dashboard-widget-title .muted,
.form-section-head h2,.form-section-head p{overflow-wrap:anywhere;word-break:break-word}
.panel-head{align-items:flex-start}
.panel-head .actions{flex:0 0 auto;max-width:100%}

/* Final QA #3/#6: readable, consistent panel typography. */
.panel,.form-card,.table-wrap,.stat-card,.stat-card-link,.cw-shared-card{font-size:14px}
.panel h2,.form-card h2{font-size:18px}
.panel h3{font-size:15.5px}
.muted{font-size:13px}
.mini{font-size:11px}
.section-kicker{font-size:10px;letter-spacing:.08em}
.field label{font-size:12px}
.input,.select,.textarea{font-size:12px}
.data-table th,.data-table td{font-size:11.5px}
.btn{font-size:12px}
.stat-card .stat-label,.stat-card-link .stat-label{font-size:11.5px}
.stat-card .stat-hint,.stat-card-link .stat-hint{font-size:10.5px}


.cw-validation-strip{margin:0 0 12px;padding:10px 12px;border:1px solid #F1B8BA;background:#FFF5F5;color:#A12B31;border-radius:10px;font-size:12px;font-weight:700}.cw-required-error{border-color:#D92D20!important;box-shadow:0 0 0 3px rgba(217,45,32,.08)!important}.cw-required-message{display:block;margin-top:5px;color:#B42318;font-size:11px;font-weight:700}.dashboard-alert-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;margin:0 0 14px;border-radius:16px;border:1px solid #F0B6BA;background:#FFF4F4}.dashboard-alert-strip strong{display:block;font-size:16px;color:#7F1D1D}.dashboard-alert-strip p{margin:4px 0 0;color:#7B4A4E;font-size:12px}.dashboard-alert-strip .btn{white-space:nowrap}@media(max-width:700px){.dashboard-alert-strip{align-items:flex-start;flex-direction:column}.dashboard-alert-strip .btn{width:100%}}


.inline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%}.inline-actions>.input,.inline-actions>.select{flex:1 1 220px;min-width:0}.inline-actions>.btn{flex:0 0 auto;white-space:nowrap}.cw-page-related{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px}.cw-page-related a{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #dce7ef;border-radius:999px;background:#fff;color:#37506d;font-size:10px;font-weight:800;text-decoration:none}.cw-page-related a:hover{border-color:var(--cw-theme-accent);color:var(--cw-theme-primary)}.cw-empty-state-panel{max-width:720px;margin:6px auto 24px;padding:34px;text-align:center}.cw-empty-state-icon{width:52px;height:52px;margin:0 auto 12px;border-radius:14px;display:grid;place-items:center;color:var(--cw-theme-accent);background:var(--cw-theme-light);border:1px solid #d9edf4}.cw-empty-state-panel h2{margin:6px 0 8px;color:var(--cw-theme-dark);font-size:22px}.cw-empty-state-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:18px}@media(max-width:640px){.inline-actions>.input,.inline-actions>.select{flex:1 1 100%}.inline-actions>.btn{width:100%}.cw-empty-state-panel{padding:24px 18px}}

/* Final contextual guidance + operational action cards */
.cw-page-context-hint{display:flex;align-items:flex-start;gap:10px;padding:11px 13px;margin-bottom:14px;border:1px solid #dceaf1;border-radius:13px;background:linear-gradient(180deg,#fbfeff,#f6fbfd);box-shadow:0 2px 10px rgba(8,32,78,.025)}
.cw-page-context-icon{width:29px;height:29px;flex:0 0 29px;display:grid;place-items:center;border-radius:9px;background:#eaf8fc;color:var(--cw-theme-primary);border:1px solid #d6edf4}
.cw-page-context-icon .svg-icon{width:18px;height:18px;display:block;stroke-width:2!important}.cw-page-context-hint strong{display:block;color:var(--cw-theme-dark);font-size:11px;line-height:1.25}
.cw-page-context-hint span{display:block;margin-top:3px;color:#6f7e92;font-size:9.5px;line-height:1.55}
.action-center-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.action-center-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;border:1px solid #e3ebf1;border-radius:13px;background:#fff;text-decoration:none;transition:.16s ease}
.action-center-item:hover{border-color:#a7ddea;background:#fbfeff;transform:translateY(-1px)}
.action-center-copy{min-width:0}.action-center-copy strong{display:block;color:#2f435f;font-size:10.5px;line-height:1.35}.action-center-copy span{display:block;margin-top:3px;color:#8794a6;font-size:8.7px}
.action-center-count{min-width:42px;height:34px;padding:0 10px;display:inline-grid;place-items:center;border-radius:10px;background:#f1f8fb;color:var(--cw-theme-primary);font-size:14px;font-weight:900}
@media(max-width:760px){.action-center-list{grid-template-columns:1fr}.cw-page-context-hint{padding:10px 11px}.cw-page-context-hint span{font-size:9px}}


/* ============================================================
   CLASSWAZE RESOURCE / LEARNING UI — SHARED
   ============================================================ */
.resource-center-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.resource-center-stat{min-width:0;padding:14px 15px;border:1px solid #E2E8F0;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(15,36,66,.04)}.resource-center-stat small,.resource-center-stat span{display:block;color:#718096;font-size:10px;line-height:1.4}.resource-center-stat strong{display:block;margin:4px 0;color:var(--cw-theme-dark);font-size:20px;line-height:1.1}.resource-center-tabs{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:12px 0}.resource-center-tab{display:inline-flex;align-items:center;gap:6px;padding:9px 12px;border:1px solid #DCE5EE;border-radius:10px;background:#fff;color:#53637A;text-decoration:none;font-size:11px;font-weight:800;line-height:1}.resource-center-tab:hover{border-color:#9BDCEB;color:var(--cw-theme-primary);background:#F7FCFE}.resource-center-tab.active{border-color:var(--cw-theme-primary);background:var(--cw-theme-primary);color:#fff}.resource-playlist-list{display:grid;gap:8px}.resource-playlist-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border:1px solid #E1E8F0;border-radius:12px;background:#fff;text-decoration:none;color:inherit;min-width:0}.resource-playlist-item:hover,.resource-playlist-item.active{border-color:#9BDCEB;background:#F7FCFE}.resource-playlist-item>div:first-child{min-width:0}.resource-playlist-item strong{display:block;color:var(--cw-theme-dark);font-size:12px;line-height:1.35}.resource-playlist-item span{display:block;margin-top:3px;color:#718096;font-size:10px;line-height:1.45;overflow-wrap:anywhere}.resource-playlist-item .actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;flex:0 0 auto}.resource-manager-grid{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,2fr);gap:12px;align-items:start}.resource-manager-table{min-width:0}.resource-admin-list{display:grid;gap:8px}.resource-admin-card{display:flex;gap:11px;padding:13px;border:1px solid #E1E8F0;border-radius:13px;background:#fff;min-width:0}.resource-admin-type{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#EEF8FC;color:var(--cw-theme-primary);flex:0 0 38px}.resource-admin-type.video{background:#ECFBF4;color:#0B8A58}.resource-admin-main{min-width:0;flex:1}.resource-admin-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.resource-admin-title strong{color:var(--cw-theme-dark);font-size:12px;line-height:1.35;overflow-wrap:anywhere}.resource-admin-main p{margin:6px 0 9px;color:#65758C;font-size:11px;line-height:1.5}.resource-admin-main .actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.resource-center-empty{display:grid;place-items:center;min-height:150px;padding:28px;text-align:center;color:#718096;border:1px dashed #D7E0EA;border-radius:13px;background:#FBFDFF}.resource-center-empty strong{display:block;color:var(--cw-theme-dark);font-size:12px}.resource-center-empty p{margin:5px 0 0;font-size:11px;line-height:1.5}.platform-resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.platform-resource-card{overflow:hidden;padding:0}.platform-resource-media{aspect-ratio:16/9;background:#F3F7FA;display:grid;place-items:center;overflow:hidden}.platform-resource-media iframe{width:100%;height:100%;border:0}.platform-resource-doc{display:grid;place-items:center;width:64px;height:64px;border-radius:16px;background:#fff;color:var(--cw-theme-primary);box-shadow:0 8px 22px rgba(15,36,66,.08)}.platform-resource-body{padding:14px}.platform-resource-meta{display:flex;gap:6px;flex-wrap:wrap;color:#718096;font-size:10px}.platform-resource-meta span{padding:4px 7px;border-radius:999px;background:#F4F7FA}.platform-resource-body h3{margin:8px 0 5px;color:var(--cw-theme-dark);font-size:14px;line-height:1.35}.platform-resource-body p{margin:0 0 10px;color:#65758C;font-size:11px;line-height:1.55}.platform-resource-actions{display:flex;gap:7px;flex-wrap:wrap}.resource-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.resource-overview-card{display:flex;align-items:center;gap:10px;padding:13px}.resource-overview-card>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#EEF8FC;color:var(--cw-theme-primary);flex:0 0 36px}.resource-overview-card>span.cyan{color:var(--cw-theme-accent)}.resource-overview-card>span.green{background:#ECFBF4;color:#0B8A58}.resource-overview-card small,.resource-overview-card em{display:block;color:#8290A2;font-size:9px;font-style:normal}.resource-overview-card strong{display:block;color:var(--cw-theme-dark);font-size:17px}.folder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.folder-card{display:flex;gap:9px;align-items:center;padding:11px;border:1px solid #E1E8F0;border-radius:12px;background:#FBFDFF;text-decoration:none}.folder-card.is-active{border-color:#80D8ED;background:#F0FBFE}.folder-icon{width:32px;height:32px;border-radius:9px;background:#EEF8FC;color:var(--cw-theme-accent);display:grid;place-items:center}.folder-card strong{display:block;color:var(--cw-theme-dark);font-size:11px}.folder-card span:not(.folder-icon){display:block;color:#7B899B;font-size:9px;margin-top:2px}.material-target-box{display:none}.material-target-list{display:grid;gap:5px;margin-top:7px;max-height:180px;overflow:auto}.material-target-list .check-row{font-size:10px!important}
@media(max-width:1000px){.resource-center-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-manager-grid{grid-template-columns:1fr}.platform-resource-grid{grid-template-columns:1fr}}
@media(max-width:600px){.resource-center-summary{grid-template-columns:1fr}.resource-playlist-item{align-items:flex-start;flex-direction:column}.resource-playlist-item .actions{justify-content:flex-start;width:100%}.folder-grid{grid-template-columns:1fr}}


/* ============================================================
   QUESTION BUILDER — TYPE-SPECIFIC ANSWER EDITOR
   ============================================================ */
.question-editor-card{overflow:visible}.question-type-select{font-weight:800}.question-answer-card{border:1px solid #DCE5EE;border-radius:14px;background:#FBFDFF;padding:13px}.question-answer-card.compact{padding-bottom:12px}.question-answer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.question-answer-head strong{display:block;color:var(--cw-theme-dark);font-size:12px;line-height:1.35}.question-answer-badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#EAF8FC;color:var(--cw-theme-primary);font-size:9px;font-weight:900;white-space:nowrap}.question-option-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 0;border-top:1px solid #EDF1F5}.question-option-label{font-size:11px;font-weight:900;color:#4F6078}.question-correct-choice{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:10px;font-weight:800;color:#5A6A80}.question-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.question-choice{display:flex;align-items:center;gap:9px;padding:11px 12px;border:1px solid #DCE5EE;border-radius:10px;background:#fff;color:var(--cw-theme-dark);font-size:11px;font-weight:800}.question-editor-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:2px}.question-editor-actions .mini{flex:1;min-width:240px}@media(max-width:650px){.question-option-row{grid-template-columns:1fr}.question-correct-choice{justify-self:start}.question-choice-grid{grid-template-columns:1fr}}


/* ============================================================
   FINAL EXAM CONTROLLED WORKFLOW
   ============================================================ */
.cw-final-exam-notice{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;margin:12px 0;padding:13px 15px;border:1px solid #D8E7F0;border-radius:13px;background:linear-gradient(135deg,#F8FCFE,#FFFFFF);box-shadow:0 5px 18px rgba(15,36,66,.04)}.cw-final-exam-notice strong{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;background:#EAF8FC;color:var(--cw-theme-primary);font-size:10px;font-weight:900;white-space:nowrap}.cw-final-exam-notice span{color:#53637A;font-size:11px;line-height:1.6;font-weight:650}@media(max-width:700px){.cw-final-exam-notice{grid-template-columns:1fr;gap:7px}}

/* Shared compact numeric field for question marks / quotas. */
.question-editor-card input[name="marks"]{max-width:120px;min-width:100px}
.question-editor-card .field:has(input[name="marks"]){max-width:150px}

/* Final sidebar rhythm: slightly tighter without changing the approved shape width. */
.nav-stack{gap:2px}
.nav-group{gap:1px}
.nav-stack > a,.nav-group-toggle,.nav-submenu > a{min-height:36px;padding-top:5px;padding-bottom:5px}
.nav-group.open .nav-submenu{margin-top:3px;padding-top:3px;padding-bottom:5px}
.nav-submenu{row-gap:1px}
.nav-submenu > a{min-height:33px}


/* Final QA readability + bottom action safety across all panels. */
.panel-foot{margin-top:16px!important;padding:16px 0 4px!important;border-top:1px solid var(--cw-line,#E2E8F0)!important;display:flex;justify-content:flex-end;align-items:center;gap:8px;clear:both}
.panel-foot .btn{min-height:38px}
.data-table th,.data-table td{font-size:12px;line-height:1.45}
.muted{font-size:13px!important;line-height:1.55}
.mini{font-size:11.5px!important;line-height:1.45}
.field label{font-size:12.5px}
@media(max-width:700px){.panel-foot{justify-content:stretch;padding:14px 0 6px!important}.panel-foot form,.panel-foot .btn{width:100%}.panel-foot .btn{min-height:42px}}

/* Final UX pass — identity, table numbering, field rhythm and safe actions. */
.cw-list-avatar{display:inline-grid;place-items:center;position:relative;flex:0 0 auto;overflow:hidden;border-radius:50%;background:#EEF5FA;border:1px solid #D5E5EE;color:var(--cw-theme-primary,#0A2D6D);font-weight:900;line-height:1;vertical-align:middle}
.cw-list-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.cw-list-avatar-initial{display:grid;place-items:center;width:100%;height:100%;font-size:13px}
.cw-list-avatar img + .cw-list-avatar-initial{display:none}
.cw-list-avatar.is-fallback .cw-list-avatar-initial{display:grid}
.cw-identity-cell{display:flex;align-items:center;gap:10px;min-width:180px}
.cw-identity-cell>div{min-width:0}
.cw-identity-cell strong,.cw-identity-cell .mini{overflow-wrap:anywhere}
.data-table.cw-numbered-table thead th:first-child,.data-table.cw-numbered-table tbody td:first-child{width:46px;min-width:46px;text-align:center}
.cw-table-index{font-weight:800;color:#7A899B;font-size:11px}
.field{gap:7px}
.field label{display:block;margin:0 0 1px;line-height:1.35;position:relative;z-index:1}
.field .input,.field .select,.field .textarea{position:relative;z-index:0}
.quota-field-label{align-self:start!important;margin:0!important;padding-top:1px!important;line-height:1.35!important}
.actions,.franchise-action-buttons,.application-action-buttons,.page-actionbar-actions .actions{align-items:center;gap:7px;row-gap:7px;flex-wrap:wrap}
.actions>.btn,.actions>form,.actions>.inline-form{margin:0}
.inline-form{display:inline-flex;align-items:center}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:700px){.cw-identity-cell{min-width:150px}.data-table{min-width:680px}.data-table th,.data-table td{white-space:normal}.actions>.btn,.actions>.inline-form{flex:0 0 auto}}
.help-context-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;margin:0 0 14px;border:1px solid #DCEAF1;border-radius:14px;background:#FBFDFF}.help-context-card h2{margin:3px 0 2px;color:#0A2D6D;font-size:20px}.help-context-card p{margin:0;color:#66788D;font-size:12px;line-height:1.55}.help-context-card .section-kicker{font-size:9px;font-weight:900}@media(max-width:650px){.help-context-card{display:block}.help-context-card .btn{margin-top:10px}}
.logo-preview-frame{min-height:150px;width:100%;display:grid;place-items:center;padding:22px;border:1px solid #D7E7EE;border-radius:14px;background:#F8FBFD;box-sizing:border-box;overflow:hidden}.logo-preview-frame.has-image img{display:block;max-width:82%;max-height:105px;width:auto;height:auto;object-fit:contain}.logo-preview-placeholder{display:grid;place-items:center;gap:5px;color:#7A899B;text-align:center}.logo-preview-placeholder span{display:grid;place-items:center;width:58px;height:58px;border-radius:12px;border:1px dashed #BFD3DE;background:#fff;font-weight:900;color:#0A2D6D}.logo-preview-placeholder small{font-size:10px}.logo-preview-caption{margin-top:9px;color:#738398;font-size:10.5px;line-height:1.5}
#qrStatus{display:block;margin-top:10px;padding:10px 12px;border:1px solid #DCEAF1;border-radius:10px;background:#FBFDFF;color:#56677D;font-size:11.5px;line-height:1.5;min-height:18px}
.actions>form,.actions>form.inline-form,.student-action-buttons>form,.staff-action-buttons>form,.application-action-buttons>form,.franchise-action-buttons>form{display:inline-flex;align-items:center;margin:0}.actions .btn,.student-action-buttons .btn,.staff-action-buttons .btn,.application-action-buttons .btn,.franchise-action-buttons .btn{white-space:nowrap}.student-action-buttons,.staff-action-buttons,.application-action-buttons,.franchise-action-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:7px;row-gap:7px}
.field label,.quota-field-label{white-space:normal;overflow-wrap:anywhere}.field .input,.field .select,.field .textarea,.quota-field .input{box-sizing:border-box;min-height:40px}.field .input:focus,.field .select:focus,.field .textarea:focus,.quota-field .input:focus{outline:2px solid rgba(0,180,230,.18);outline-offset:1px}

/* Brand Studio preview: compact, proportional and content-led. */
.page-template-settings .brand-preview-card{padding:12px;overflow:hidden}.page-template-settings .brand-preview-card .logo-preview-frame{min-height:104px;height:104px;padding:14px}.page-template-settings .brand-preview-card .logo-preview-frame.has-image img{max-width:72%;max-height:72px}.page-template-settings .brand-preview-card .preview-brand{padding:10px 12px;border:1px solid #e3ebf1;border-radius:11px;background:#fbfdff}.page-template-settings .brand-preview-card .preview-brand strong{display:block;font-size:12px;line-height:1.35;color:var(--cw-theme-primary,#0A2D6D);overflow-wrap:anywhere}.page-template-settings .brand-preview-card .preview-brand .muted{font-size:10px;line-height:1.45;overflow-wrap:anywhere}.page-template-settings .brand-preview-card .logo-preview-caption{font-size:9.5px;line-height:1.45;margin-top:7px}.page-template-settings .brand-preview-card .preview-chip{font-size:9px;margin-bottom:6px}

/* Staff identity + document management */
.cw-staff-list-identity{gap:10px}.cw-staff-list-identity .cw-list-avatar{box-shadow:0 2px 8px rgba(8,32,78,.08)}
.cw-staff-document-section{padding:16px;border:1px solid #DCE8F0;border-radius:16px;background:#F8FBFD;grid-column:1/-1}.cw-staff-document-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px}.cw-staff-document-head h3{margin:0;color:var(--cw-theme-dark,#0A2D6D);font-size:15px}.cw-staff-document-head p{margin:4px 0 0;color:#718096;font-size:11px;line-height:1.5}.cw-staff-document-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#EAF7FB;color:var(--cw-theme-accent,#00B4E6);flex:0 0 auto}
.cw-staff-document-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.cw-staff-document-card{background:#fff;border:1px solid #DCE8F0;border-radius:14px;padding:12px;min-width:0;box-shadow:0 4px 14px rgba(8,32,78,.04)}.cw-staff-document-card-top{display:flex;align-items:center;gap:9px;min-width:0}.cw-staff-document-card-top>div{min-width:0}.cw-staff-document-card-top strong{display:block;color:#21344D;font-size:12px}.cw-staff-document-card-top span:not(.cw-staff-document-card-icon){display:block;margin-top:2px;color:#8390A2;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cw-staff-document-card-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#EEF7FB;color:#00A9D6;flex:0 0 auto}.cw-doc-photo{background:#EEF5FF;color:#2D64C8}.cw-doc-signature{background:#F5F0FF;color:#7556C8}.cw-doc-id{background:#FFF7EA;color:#B86B00}
.cw-staff-preview{height:108px;margin:10px 0;border:1px dashed #CBD9E3;border-radius:11px;background:#F7FBFD;display:flex;align-items:center;justify-content:center;overflow:hidden}.cw-staff-preview img{width:100%;height:100%;object-fit:contain}.cw-preview-placeholder{display:grid;place-items:center;gap:5px;color:#9AA8B7;text-align:center}.cw-preview-placeholder small,.cw-preview-file-icon small{font-size:9px;color:#8291A2}.cw-preview-file-icon{display:grid;place-items:center;gap:5px;color:#7890A4;text-align:center}.cw-staff-file-picker{display:flex;align-items:center;justify-content:center;min-height:34px;border:1px solid #CCDCE7;border-radius:9px;background:#fff;color:#0A2D6D;font-size:10px;font-weight:800;cursor:pointer;transition:.18s ease}.cw-staff-file-picker:hover{border-color:#00B4E6;background:#F2FBFD}.cw-staff-file-picker input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.cw-staff-selected-file{margin-top:6px;color:#7C899B;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cw-staff-document-actions{display:flex;gap:6px;align-items:center}.cw-staff-file-picker-inline{flex:1}.cw-staff-document-note{display:flex;align-items:flex-start;gap:7px;margin-top:12px;padding:9px 10px;border-radius:10px;background:#EEF8FC;color:#687A8E;font-size:10px;line-height:1.45}.cw-staff-document-note svg{flex:0 0 auto;color:#00A9D6}
@media(max-width:900px){.cw-staff-document-grid{grid-template-columns:1fr 1fr}}@media(max-width:640px){.cw-staff-document-grid{grid-template-columns:1fr}.cw-staff-document-section{padding:12px}}


/* Staff UI refinement — secure circular avatars + clear document cards */
.cw-staff-list-avatar{width:46px;height:46px;flex:0 0 46px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,#eaf7fb,#eef5ff);border:1px solid #d9e8ef;box-shadow:0 2px 8px rgba(8,32,78,.08)}
.cw-staff-list-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.cw-staff-list-avatar-fallback{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;color:#0A2D6D;font-size:15px;font-weight:800}
.cw-staff-document-card-icon svg,.cw-staff-document-icon svg,.cw-staff-file-picker svg,.cw-staff-document-note svg{display:block;stroke:currentColor}
.cw-staff-document-card-icon svg{width:17px;height:17px}
.cw-staff-document-icon svg{width:18px;height:18px}
.cw-staff-file-picker span{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.cw-staff-file-picker span svg{width:14px;height:14px}
.cw-staff-preview{height:96px}
.cw-staff-preview img{background:#fff;object-fit:contain}
.cw-staff-document-note svg{width:14px;height:14px;flex:0 0 auto}
.cw-preview-file-icon{min-width:80px;padding:10px 12px;border:1px solid #d9e8ef;border-radius:12px;background:#fff}
@media(max-width:900px){.cw-staff-list-avatar{width:42px;height:42px;flex-basis:42px}}


/* ==========================================================================
   Staff document cards — compact, professional previews
   ========================================================================== */
.cw-staff-document-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.cw-staff-document-card{padding:10px;border-radius:12px}
.cw-staff-preview{height:82px;min-height:82px;margin:8px 0;border-radius:10px}
.cw-staff-preview img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.cw-staff-preview[data-preview-box="photo"] img{width:60px;height:60px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 2px 8px rgba(8,32,78,.10)}
.cw-staff-preview[data-preview-box="signature"] img{width:90%;height:62px;object-fit:contain}
.cw-staff-document-card-top strong{font-size:10.5px}
.cw-staff-document-card-top span:not(.cw-staff-document-card-icon){font-size:8.5px}
.cw-staff-file-picker{min-height:32px;font-size:9.5px}
.cw-staff-selected-file{font-size:8.5px}
@media(max-width:900px){.cw-staff-document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.cw-staff-document-grid{grid-template-columns:1fr}}
