@layer ecosystem {
*{box-sizing:border-box;}.unified-platform{margin:0;background:var(--ed-bg);color:var(--ed-text);font-family:inherit;}.up-shell{min-height:100vh;display:grid;grid-template-columns:260px minmax(0,1fr);}.up-sidebar{position:sticky;top:0;height:100vh;overflow:auto;background:#fff;border-left:1px solid var(--ed-border);padding:14px 12px;z-index:1200;}.up-brand a{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--ed-text);padding:8px;}.up-brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#2457e6,#6b8df5);color:#fff;font-weight:900;}.up-brand div{display:grid;}.up-brand small,.up-topbar small,.up-user-meta small{color:var(--ed-muted);font-size:var(--ed-font-sm);}.up-brand button{display:none;}.up-nav{display:grid;gap:3px;margin-top:14px;}.up-nav-label{font-size:var(--ed-font-xs);color:#98a2b3;font-weight:800;padding:14px 10px 5px;}.up-nav a{display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:11px;text-decoration:none;color:#344054;font-size:var(--ed-font-base);font-weight:700;}.up-nav a i{width:24px;height:24px;display:grid;place-items:center;border-radius:8px;background:#f2f4f7;font-style:normal;}.up-nav a:hover,.up-nav a.active{background:var(--ed-primary-soft);color:var(--ed-primary);}.up-nav a.active i{background:var(--ed-primary);color:#fff;}.up-nav a.current-app{box-shadow:inset 0 0 0 1px #c7d7ff;}.up-sidebar-footer a{color:var(--ed-danger);font-weight:700;text-decoration:none;}.up-main{min-width:0;min-height:100vh;display:flex;flex-direction:column;}.up-topbar{height:74px;padding:0 24px;background:rgba(255,255,255,.95);backdrop-filter:blur(10px);border-bottom:1px solid var(--ed-border);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:calc(var(--ed-z-commerce,30000) - 100);}.up-topbar>div:first-of-type{display:grid;}.up-top-actions{display:flex;align-items:center;gap:10px;}.up-app-switch{font-size:var(--ed-font-md);text-decoration:none;padding:8px 11px;border:1px solid var(--ed-border);border-radius:10px;color:#344054;}.up-user-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--ed-primary);color:white;font-weight:900;}.up-user-meta{display:grid;}.up-menu-btn{display:none;border:0;background:transparent;background-image:none;color:inherit;box-shadow:none;font-size:23px;-webkit-appearance:none;appearance:none;}.up-menu-btn:focus-visible{outline:2px solid color-mix(in srgb,var(--ed-primary) 55%,transparent);outline-offset:3px;border-radius:9px;}.up-content{padding:24px;max-width:1600px;width:100%;margin:0 auto;flex:1 0 auto;}.up-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px;}.up-page-head h1{margin:0 0 5px;font-size:22px;}.up-page-head p{margin:0;color:var(--ed-muted);font-size:var(--ed-font-md);}.up-grid{display:grid;gap:16px;}.up-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr));}.up-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr));}.up-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr));}.up-card{background:var(--ed-surface);border:1px solid var(--ed-border);border-radius:var(--ed-radius-card);box-shadow:var(--ed-shadow);padding:18px;min-width:0;}.up-card h2,.up-card h3{margin:0 0 12px;}.up-stat{display:grid;gap:5px;}.up-stat strong{font-size:24px;}.up-stat span{color:var(--ed-muted);font-size:var(--ed-font-sm);}.up-stat .delta{font-size:var(--ed-font-xs);color:var(--ed-success);}.up-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:8px 13px;border:1px solid transparent;border-radius:10px;background:var(--ed-primary);color:#fff;text-decoration:none;font:inherit;font-size:var(--ed-font-md);font-weight:800;cursor:pointer;}.up-btn.secondary{background:#fff;color:#344054;border-color:var(--ed-border);}.up-btn.success{background:var(--ed-success);}.up-btn.warning{background:var(--ed-warning);}.up-btn.danger{background:var(--ed-danger);}.up-btn.sm{min-height:30px;padding:5px 8px;font-size:var(--ed-font-xs);}.up-actions{display:flex;gap:8px;flex-wrap:wrap;}.up-form{display:grid;gap:13px;}.up-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}.up-form label{display:grid;gap:6px;color:#475467;font-size:var(--ed-font-sm);font-weight:700;}.up-form input,.up-form select,.up-form textarea{width:100%;min-height:40px;border:1px solid #d0d5dd;border-radius:10px;background:#fff;padding:8px 10px;color:#101828;font:inherit;font-size:var(--ed-font-md);}.up-form textarea{min-height:100px;resize:vertical;}.up-inline-switches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px;}.up-inline-switches>.up-switch-row{min-width:0;margin:0;}.up-help{font-size:var(--ed-font-xs);color:var(--ed-muted);line-height:1.9;}.up-table-wrap{overflow:auto;border:1px solid var(--ed-border);border-radius:12px;}.up-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:var(--ed-font-sm);}.up-table th,.up-table td{padding:10px 12px;border-bottom:1px solid #eef1f4;text-align:right;}.up-table th{background:#f8fafc;color:#475467;font-weight:900;position:sticky;top:0;}.up-table tr:last-child td{border-bottom:0;}.up-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:var(--ed-font-micro);font-weight:900;width:fit-content;max-width:100%;justify-self:start;align-self:center;flex:0 0 auto;}.up-badge.success{background:#ecfdf3;color:#067647;}.up-badge.warning{background:#fffaeb;color:#b54708;}.up-badge.danger{background:#fef3f2;color:#b42318;}.up-badge.info{background:#eff4ff;color:#3538cd;}.up-progress{height:8px;border-radius:999px;background:#eef2f6;overflow:hidden;}.up-progress>i{display:block;height:100%;background:linear-gradient(90deg,#2457e6,#6b8df5);border-radius:inherit;}.up-alert{padding:12px 14px;border-radius:12px;margin-bottom:14px;font-size:var(--ed-font-md);font-weight:700;}.up-alert.success{background:#ecfdf3;color:#067647;border:1px solid #abefc6;}.up-alert.danger{background:#fef3f2;color:#b42318;border:1px solid #fecdca;}.up-empty{padding:34px;text-align:center;color:var(--ed-muted);border:1px dashed #d0d5dd;border-radius:14px;}.up-chart-bars{height:180px;display:flex;align-items:stretch;gap:8px;padding-top:12px;}.up-chart-bars .bar{flex:1;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:7px;height:100%;min-width:0;}.up-chart-plot{display:flex;align-items:flex-end;justify-content:center;min-height:0;}.up-chart-plot i{display:block;width:100%;background:linear-gradient(180deg,#5b7ff0,#2457e6);border-radius:7px 7px 3px 3px;min-height:3px;}.up-chart-bars .bar small{font-size:var(--ed-font-micro);color:var(--ed-muted);text-align:center;line-height:1.3;}.up-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}.up-kv>div{padding:10px;border-radius:10px;background:#f8fafc;}.up-kv small{display:block;color:var(--ed-muted);font-size:var(--ed-font-micro);}.up-kv b{font-size:var(--ed-font-base);}.up-tabs{display:flex;flex-wrap:wrap;margin-bottom:14px;}.up-tabs a{padding:7px 11px;border-radius:9px;border:1px solid var(--ed-border);background:#fff;color:#475467;text-decoration:none;font-size:var(--ed-font-sm);font-weight:700;}.up-tabs a.active{background:var(--ed-primary);border-color:var(--ed-primary);}.up-note-body{line-height:2;font-size:var(--ed-font-base);}.up-note{border:1px solid var(--ed-border);border-radius:14px;padding:14px;background:#fff;}.up-note+.up-note{margin-top:10px;}.up-note-head{display:flex;justify-content:space-between;gap:12px;}.up-note-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px;}.up-review-card{padding:18px;border:1px solid var(--ed-border);border-radius:16px;background:#fff;}.chance-VERY_HIGH,.chance-ALMOST_CERTAIN{border-right:4px solid #12b76a;}.chance-MEDIUM{border-right:4px solid #fdb022;}.chance-LOW,.chance-WEAK{border-right:4px solid #f79009;}.chance-VERY_LOW,.chance-ALMOST_IMPOSSIBLE{border-right:4px solid #f04438;}.up-backdrop{display:none;}.up-mindmap{min-height:380px;position:relative;overflow:auto;background:radial-gradient(circle at 50% 50%,#eef4ff 0,#fff 60%);border-radius:14px;padding:30px;}.up-mind-root{max-width:250px;margin:120px auto;padding:16px;border-radius:14px;background:var(--ed-primary);color:#fff;text-align:center;font-weight:900;}.up-mind-children{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;}.up-mind-node{padding:12px;background:#fff;border:1px solid #c7d7ff;border-radius:12px;text-align:center;}.up-modal-help{background:#f8fafc;border-radius:12px;padding:12px;line-height:1.9;color:#475467;font-size:var(--ed-font-sm);}
@media(max-width:1200px){.up-grid.cols-4{grid-template-columns:repeat(2,1fr);}.up-form-grid{grid-template-columns:repeat(2,1fr);}}@media(max-width:820px){.up-shell{display:block;}.up-sidebar{position:fixed;right:0;top:0;bottom:0;width:min(310px,88vw);transform:translateX(105%);transition:.2s;box-shadow:0 0 45px rgba(0,0,0,.18);}.up-sidebar.open{transform:translateX(0);}.up-brand button{display:block;margin-right:auto;border:0;background:none;font-size:28px;}.up-menu-btn{display:block;}.up-topbar{padding:0 14px;height:64px;}.up-topbar>div:first-of-type{margin-left:auto;}.up-user-meta,.up-app-switch{display:none;}.up-content{padding:14px;}.up-grid.cols-4,.up-grid.cols-3,.up-grid.cols-2,.up-form-grid{grid-template-columns:1fr;}.up-backdrop.show{display:block;position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:1100;}.up-kv{grid-template-columns:1fr;}.up-mind-children{grid-template-columns:1fr;}}

/* New-platform date fields display Jalali dates while retaining ISO Gregorian values internally. */
.unified-platform .up-jalali-date{cursor:pointer;background:var(--ed-surface,#fff);color:var(--ed-text,#101828);border-color:var(--ed-border,#e3e8ef);}.unified-platform .up-jalali-date[readonly]{opacity:1;}.unified-platform .jalali-popover{direction:rtl;max-width:calc(100vw - 20px);}

/* native checks/radios must never inherit text-input dimensions. */
.unified-platform .up-form input[type="checkbox"],
.unified-platform .up-form input[type="radio"],
.unified-platform input.up-native-check{
  width:18px;height:18px;min-height:18px;min-width:18px;
  padding:0;margin:0;flex:0 0 18px;accent-color:var(--ed-primary);cursor:pointer;
}
.unified-platform .up-check{display:flex;grid-template-columns:18px 1fr;align-items:flex-start;gap:9px;line-height:1.8;}
.up-section-label{display:block;margin-bottom:10px;font-size:var(--ed-font-md);color:#344054;}
.up-course-picker{margin-top:2px;}
.up-course-choice{border:1px solid var(--ed-border);border-radius:14px;background:#fff;transition:.16s ease;box-shadow:0 1px 2px rgba(16,24,40,.02);}
.up-course-choice:hover{border-color:#b9c9f7;box-shadow:0 7px 18px rgba(36,87,230,.07);}
.up-course-choice.selected{border-color:#9ab2f6;background:#f8faff;box-shadow:inset 0 0 0 1px #dce5ff;}
.up-course-choice-head{display:flex;grid-template-columns:none;align-items:center;gap:9px;cursor:pointer;color:var(--ed-text);}
.up-course-choice-head .up-native-check{position:absolute;opacity:0;pointer-events:none;}
.up-check-ui{width:22px;height:22px;flex:0 0 22px;border:1.5px solid #b8c1cf;border-radius:7px;display:grid;place-items:center;color:transparent;background:#fff;font-size:var(--ed-font-base);font-weight:900;transition:.16s ease;}
.up-course-choice-head .up-native-check:checked + .up-check-ui{background:var(--ed-primary);border-color:var(--ed-primary);color:#fff;box-shadow:0 0 0 3px #e7edff;}
.up-course-choice-head .up-native-check:focus-visible + .up-check-ui{outline:2px solid #84adff;outline-offset:2px;}
.up-course-choice-title{min-width:0;display:grid;gap:3px;line-height:1.45;}
.up-course-choice-title b{font-size:var(--ed-font-md);white-space:normal;}
.up-course-choice-title small{font-size:var(--ed-font-micro);color:var(--ed-muted);font-weight:600;}
.up-course-priority{display:grid;grid-template-columns:55px minmax(0,1fr);align-items:center;gap:8px;margin-top:11px;padding-top:10px;border-top:1px solid #eef1f5;}
.up-course-priority>span{font-size:var(--ed-font-xs);color:var(--ed-muted);}
.up-course-priority select{min-height:34px;height:34px;padding:5px 8px;border-radius:9px;font-size:var(--ed-font-xs);}

/* Academy storefront */
.up-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.up-product-card{overflow:hidden;background:#fff;border:1px solid var(--ed-border);border-radius:var(--ed-radius-card);box-shadow:var(--ed-shadow);min-width:0;display:flex;flex-direction:column;}
.up-product-card>img,.up-product-placeholder{width:100%;height:170px;object-fit:cover;background:linear-gradient(135deg,#edf3ff,#f8fbff);display:grid;place-items:center;color:var(--ed-primary);font-weight:900;font-size:20px;}
.up-product-body{padding:14px;display:grid;gap:9px;flex:1;}.up-product-body h3{margin:0;font-size:var(--ed-font-body);line-height:1.8;}.up-product-body p{margin:0;color:var(--ed-muted);font-size:var(--ed-font-xs);line-height:1.9;min-height:38px;}
.up-product-meta,.up-product-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;}.up-product-meta{font-size:var(--ed-font-micro);color:var(--ed-muted);}.up-product-foot{margin-top:auto;padding-top:9px;border-top:1px solid #eef1f4;}.up-product-foot>b{font-size:var(--ed-font-base);color:#0f172a;}
.up-product-hero{display:block;width:100%;max-height:360px;object-fit:cover;border-radius:12px;margin-bottom:16px;}.up-product-thumb{width:100%;height:120px;object-fit:cover;border-radius:11px;margin-bottom:10px;}
@media(max-width:1100px){.up-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}@media(max-width:680px){.up-product-grid{grid-template-columns:1fr;}}
.up-update-error{max-width:520px;white-space:normal;color:var(--ed-danger);font-size:var(--ed-font-micro);line-height:1.7;margin-top:7px;}.up-card code,.up-modal-help code{direction:ltr;display:inline-block;background:#eef2f6;padding:1px 5px;border-radius:5px;}
.up-consultant-chip small{font-size:var(--ed-font-micro);}
.consultant-slot-list{display:grid;gap:9px;margin-top:14px;}.consultant-slot-card{display:grid;gap:9px;border:1px solid var(--ed-border);border-radius:14px;background:linear-gradient(180deg,var(--ed-surface),color-mix(in srgb,var(--ed-surface) 94%,var(--ed-primary) 6%));padding:12px;min-width:0;}.consultant-slot-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}.consultant-slot-person{display:flex;align-items:center;gap:9px;min-width:0;}.consultant-slot-avatar{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:var(--ed-primary-soft);color:var(--ed-primary);font-weight:900;}.consultant-slot-person>span:last-child{display:grid;gap:2px;min-width:0;}.consultant-slot-person b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.consultant-slot-person small{color:var(--ed-muted);font-size:var(--ed-font-xs);}.consultant-slot-head-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto;}.consultant-slot-head-actions form{margin:0;}.consultant-slot-head-actions .up-icon-btn{width:32px;height:32px;min-width:32px;}.consultant-slot-badges{display:grid;grid-template-columns:minmax(170px,1.5fr) repeat(3,minmax(82px,.7fr));gap:6px;}.consultant-slot-badge{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:31px;border:1px solid var(--ed-border);border-radius:999px;background:var(--ed-surface);padding:5px 8px;color:var(--ed-muted);font-size:var(--ed-font-xs);line-height:1.2;text-align:center;}.consultant-slot-badge svg{width:14px;height:14px;color:var(--ed-primary);flex:0 0 14px;}.consultant-slot-badge b{color:var(--ed-text);font-size:var(--ed-font-sm);white-space:nowrap;}.consultant-slot-badge.available{border-color:color-mix(in srgb,#16a34a 32%,var(--ed-border));background:color-mix(in srgb,#16a34a 8%,var(--ed-surface));color:#15803d;}.consultant-slot-note{margin:0;color:var(--ed-muted);font-size:var(--ed-font-xs);line-height:1.8;overflow-wrap:anywhere;}.consultant-slot-pagination{margin-top:12px;}@media(max-width:680px){.consultant-slot-badges{grid-template-columns:repeat(2,minmax(0,1fr));}.consultant-slot-badge{border-radius:11px;}.consultant-slot-head{gap:7px;}.consultant-slot-person b{font-size:var(--ed-font-sm);}.consultant-slot-head-actions .up-badge{padding-inline:7px;}}

/* sidebar surfaces remain intact; only icon containers are background-free. */
.unified-platform .up-sidebar{background:#fff;}
.unified-platform .up-nav a{border-radius:11px;border-right:0;padding:10px 11px;box-shadow:none;}
.unified-platform .up-nav a:hover,.unified-platform .up-nav a.active{background:var(--ed-primary-soft);color:var(--ed-primary);}
.unified-platform .up-nav a.current-app{box-shadow:inset 0 0 0 1px #c7d7ff;}
.unified-platform .up-nav a .ui-icon,.unified-platform .up-nav a i{width:20px;height:20px;flex:0 0 20px;color:currentColor;}
.unified-platform .up-nav a>span:not(.up-nav-access){min-width:0;}
.unified-platform .up-nav a.has-access-state{position:relative;}
.unified-platform .up-nav .up-nav-access{display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px;width:16px;height:16px;margin-inline-start:auto;line-height:1;}
.unified-platform .up-nav .up-nav-access .ui-icon{width:14px;height:14px;flex:0 0 14px;color:currentColor;stroke-width:2;}
.unified-platform .up-nav .up-nav-access.is-open{color:#16a34a;}
.unified-platform .up-nav .up-nav-access.is-locked{color:#dc2626;}
.unified-platform .up-nav a.is-access-locked{cursor:pointer;}
html.unified-dark .unified-platform .up-nav .up-nav-access.is-open,body.dark-ui.unified-platform .up-nav .up-nav-access.is-open{color:#4ade80;}
html.unified-dark .unified-platform .up-nav .up-nav-access.is-locked,body.dark-ui.unified-platform .up-nav .up-nav-access.is-locked{color:#fb7185;}
.up-tabs{border-bottom:1px solid var(--ed-border);gap:18px;}.up-tabs a,.up-tabs a.active{background:transparent;border:0;border-radius:0;color:#667085;padding:8px 1px;border-bottom:2px solid transparent;}.up-tabs a.active{color:var(--ed-primary);border-bottom-color:var(--ed-primary);}
.up-sidebar-footer{padding:12px 8px 18px;}.up-logout-form{margin:0;}.up-logout-btn{width:100%;border:0;background:transparent;color:#ef4444;display:flex;align-items:center;gap:10px;padding:10px 11px;font:inherit;font-size:var(--ed-font-base);font-weight:700;cursor:pointer;text-align:right;}.up-logout-btn:hover{background:rgba(239,68,68,.055);}.up-logout-btn .ui-icon{width:20px;height:20px;background:none;}
.up-menu-btn .ui-icon{width:22px;height:22px;}.up-app-switch{background:var(--ed-surface);}

/* Root unified ecosystem landing */
.unified-home{max-width:1300px;margin:0 auto;padding:38px 22px 70px;direction:rtl;}.unified-home-hero{border:1px solid #e2e8f0;border-radius:26px;padding:42px;background:linear-gradient(135deg,#f8fbff,#eef4ff);display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,.6fr);gap:26px;align-items:center;}.unified-home-hero h1{font-size:34px;margin:0 0 12px;color:#0f172a;}.unified-home-hero p{line-height:2;color:#64748b;margin:0;}.unified-home-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px;}.unified-home-apps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px;}.unified-home-app{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:20px;text-decoration:none;color:#0f172a;display:grid;gap:9px;transition:.16s;}.unified-home-app:hover{transform:translateY(-2px);border-color:#b9c9f7;box-shadow:0 12px 30px rgba(36,87,230,.08);}.unified-home-app .ui-icon{width:28px;height:28px;color:#2457e6;}.unified-home-app h3{margin:0;font-size:16px;}.unified-home-app p{margin:0;color:#64748b;font-size:var(--ed-font-sm);line-height:1.9;}.unified-home-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;}.unified-home-stat{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:18px;text-align:center;}.unified-home-stat b{font-size:22px;display:block;}.unified-home-stat span{font-size:var(--ed-font-xs);color:#64748b;}@media(max-width:900px){.unified-home-hero{grid-template-columns:1fr;}.unified-home-apps{grid-template-columns:repeat(2,1fr);}}@media(max-width:600px){.unified-home{padding:18px 12px;}.unified-home-hero{padding:24px;}.unified-home-hero h1{font-size:25px;}.unified-home-apps{grid-template-columns:1fr;}}
/* Actual root landing component names */
.unified-home .eyebrow{display:inline-block;color:#2457e6;font-size:var(--ed-font-sm);font-weight:900;margin-bottom:8px;}.unified-home .welcome-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px;}.unified-home .hero-system-card{display:grid;gap:8px;background:#fff;border:1px solid #dce5f5;border-radius:18px;padding:20px;}.unified-home .hero-system-card b{font-size:15px;margin-bottom:3px;}.unified-home .hero-system-card span{padding:8px 10px;border-right:2px solid #2457e6;background:#f8faff;border-radius:8px;font-size:var(--ed-font-xs);}.unified-home-section{margin-top:24px;}.unified-home-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:14px;}.unified-home-heading h2{margin:2px 0 0;font-size:22px;}.unified-home-heading p{margin:0;color:#64748b;font-size:var(--ed-font-sm);}.unified-app-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;}.unified-app-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;background:var(--ed-surface);border:1px solid var(--ed-border);border-radius:17px;padding:17px;text-decoration:none;color:var(--ed-text);}.unified-app-card:hover{border-color:var(--ed-primary);box-shadow:var(--ed-shadow);}.unified-app-card .app-card-icon{width:42px;height:42px;display:grid;place-items:center;color:var(--ed-primary);}.unified-app-card .app-card-icon .ui-icon{width:27px;height:27px;}.unified-app-card h3{margin:0 0 4px;font-size:var(--ed-font-body);color:var(--ed-text);}.unified-app-card p{margin:0;color:var(--ed-muted);font-size:var(--ed-font-xs);line-height:1.8;}.unified-app-card .app-card-arrow{color:var(--ed-muted);}.unified-app-card .app-card-arrow .ui-icon{width:17px;height:17px;}.home-feature-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;}.home-feature-strip>div{background:#fff;border:1px solid #e2e8f0;border-radius:13px;padding:15px;text-align:center;}.home-feature-strip b{display:block;font-size:18px;}.home-feature-strip span{font-size:var(--ed-font-micro);color:#64748b;}@media(max-width:900px){.unified-app-grid{grid-template-columns:repeat(2,1fr);}}@media(max-width:600px){.unified-app-grid,.home-feature-strip{grid-template-columns:1fr;}.unified-home-heading{align-items:flex-start;flex-direction:column;}}
/* logout matches the Bank Test sidebar action. */
.unified-platform .up-sidebar-footer{border-top:0;}
.unified-platform .up-logout-btn{width:100%;min-height:44px;border:0;border-radius:10px;background:#fff5f5;color:#ef3434;display:flex;gap:10px;align-items:center;justify-content:center;padding:10px 14px;font-weight:750;}
.unified-platform .up-logout-btn:hover{background:#ffecec;}
/* mobile sidebar scroll ownership.
   While the drawer is open the page is locked and vertical gestures belong to the sidebar. */
@media(max-width:820px){
  html.up-sidebar-open,body.up-sidebar-open{overflow:hidden;height:100%;overscroll-behavior:none;}
  .unified-platform .up-sidebar{-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y;}
  
  
}

/* unified form sizing, settings spacing and compact choice controls */
.unified-platform .up-form input[type="checkbox"]:not(.up-native-check),.unified-platform .up-form input[type="radio"]:not(.up-native-check){
  -webkit-appearance:none;appearance:none;width:16px;height:16px;min-width:16px;min-height:16px;flex:0 0 16px;padding:0;margin:0;border:1.5px solid #b8c1cf;border-radius:5px;background:#fff;display:grid;place-content:center;cursor:pointer;box-shadow:none;transition:.14s ease
;}
.unified-platform .up-form input[type="checkbox"]:not(.up-native-check)::before{content:"✓";font-size:var(--ed-font-xs);font-weight:900;line-height:1;color:#fff;transform:scale(0);transition:.12s ease;}
.unified-platform .up-form input[type="checkbox"]:not(.up-native-check):checked{background:var(--ed-primary);border-color:var(--ed-primary);}.unified-platform .up-form input[type="checkbox"]:not(.up-native-check):checked::before{transform:scale(1);}
.unified-platform .up-form input[type="radio"]:not(.up-native-check){border-radius:50%;}.unified-platform .up-form input[type="radio"]:not(.up-native-check)::before{content:"";width:7px;height:7px;border-radius:50%;background:#fff;transform:scale(0);}.unified-platform .up-form input[type="radio"]:not(.up-native-check):checked{background:var(--ed-primary);border-color:var(--ed-primary);}.unified-platform .up-form input[type="radio"]:not(.up-native-check):checked::before{transform:scale(1);}
.unified-platform .up-control-compact{width:auto;min-width:92px;max-width:180px;}.unified-platform select.up-control-compact{min-width:120px;}.unified-platform .up-control-date{width:auto;min-width:150px;max-width:190px;min-height:38px;border:1px solid #d0d5dd;border-radius:10px;background:#fff;padding:7px 10px;font:inherit;}
.up-settings-card{padding:20px;}.up-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}.up-setting-item{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px;border:1px solid #edf0f5;border-radius:13px;background:#fff;min-height:86px;}.up-setting-copy{display:grid;gap:5px;min-width:0;}.up-setting-copy b{font-size:var(--ed-font-md);color:#1d2939;line-height:1.6;}.up-setting-copy small{display:block;color:#667085;font-size:var(--ed-font-micro);line-height:1.85;}.up-setting-copy code{justify-self:start;font-size:var(--ed-font-micro);color:#98a2b3;background:#f8fafc;border:1px solid #eef1f5;border-radius:6px;padding:2px 6px;direction:ltr;}.up-setting-toggle{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;justify-content:stretch;gap:12px;}.up-setting-toggle>input[type=checkbox]{grid-column:1;grid-row:1;width:24px;height:24px;min-height:24px;margin:1px 0 0;padding:0;justify-self:start;}.up-setting-toggle>.up-setting-copy{grid-column:2;grid-row:1;}.up-savebar{display:flex;justify-content:flex-start;margin-top:16px;padding-top:14px;border-top:1px solid #eef1f5;}.up-responsibility-card{margin-top:18px;}.up-responsibility-card h2{margin-bottom:8px;}.up-responsibility-card p{margin:0;}
.up-section-title{margin:22px 0 12px;}.up-course-picker{gap:12px;}.up-course-choice{padding:11px 12px;}.up-course-choice-row{display:flex;align-items:center;justify-content:space-between;gap:10px;}.up-course-choice-head{flex:1 1 auto;min-width:0;}.up-course-priority-chip{display:grid;grid-template-columns:auto minmax(76px,96px);align-items:center;gap:6px;flex:0 0 auto;width:auto;background:var(--ed-surface-soft);border:1px solid var(--ed-border);border-radius:10px;padding:5px 7px;color:var(--ed-muted);font-size:var(--ed-font-micro);font-weight:800;}.up-course-priority-chip>span{white-space:nowrap;}.up-course-priority-chip select{width:100%;min-width:0;max-width:none;height:30px;min-height:30px;padding:3px 8px;border:1px solid var(--ed-border);border-radius:8px;background:var(--ed-surface);color:var(--ed-text);font-size:var(--ed-font-micro);box-shadow:none;}.up-ranking-opt{margin-top:6px;}
.up-feedback-score-head,.up-feedback-score{width:112px;min-width:112px;max-width:112px;}.up-feedback-score select{width:88px;min-width:88px;max-width:88px;min-height:34px;height:34px;padding:4px 8px;border-radius:9px;}.up-feedback-table td{vertical-align:middle;}
@media(max-width:900px){.up-settings-grid{grid-template-columns:1fr;}.up-setting-item{min-height:auto;}.up-course-choice-row{align-items:flex-start;}.up-course-priority-chip{margin-inline-start:auto;}}

/* Root management forms, compact switches and central tools. */
.unified-platform .up-switch-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
.unified-platform .up-switch-list.compact{grid-template-columns:repeat(2,minmax(0,1fr));}
.unified-platform .up-switch-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px;padding:10px 12px;border:1px solid #edf0f5;border-radius:12px;background:#fbfcfe;color:#344054;}
.unified-platform .up-switch-row>span{display:grid;gap:3px;min-width:0;font-size:var(--ed-font-sm);line-height:1.65;}
.unified-platform .up-switch-row>span b{font-size:var(--ed-font-sm);color:#1d2939;}.unified-platform .up-switch-row>span small{font-size:var(--ed-font-micro);color:#667085;font-weight:500;line-height:1.7;}
.unified-platform .up-switch-row input[type=checkbox],.unified-platform .up-switch-row input[type=radio]{margin-inline-start:auto;flex:0 0 16px;}
.unified-platform .up-form-grid .span-2{grid-column:span 2;}.unified-platform .up-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px;}.unified-platform .up-section-head h2{margin:0 0 4px;}
.unified-platform .up-form small.up-help,.unified-platform .up-form label small{display:block;color:#667085;font-size:var(--ed-font-micro);line-height:1.8;font-weight:500;}
.unified-platform .central-admin-content>.page-head,.unified-platform .central-admin-content>.section-title{margin-top:0;}
.unified-platform .central-admin-content .card{box-shadow:var(--ed-shadow);}
.unified-platform .central-admin-content{max-width:1600px;width:100%;margin:0 auto;}
.unified-platform .central-admin-content .main-inner{padding:0;}
.unified-platform .central-admin-content .settings-tabs{position:relative;top:auto;}
.unified-platform .central-admin-content .table-wrap{max-width:100%;overflow:auto;}
.unified-platform .central-admin-content .page-title,.unified-platform .central-admin-content h1{color:#101828;}
@media(max-width:900px){.unified-platform .up-switch-list,.unified-platform .up-switch-list.compact{grid-template-columns:1fr;}.unified-platform .up-form-grid .span-2{grid-column:auto;}}

/* Unified typography, theme integration, responsive shell and mobile navigation. */
.unified-platform,
.unified-platform button,.unified-platform input,.unified-platform select,.unified-platform textarea,
.unified-platform .up-sidebar,.unified-platform .up-topbar{
  font-family:"Yekan Bakh FaNum","Yekan Bakh",Tahoma,"Segoe UI",Arial,sans-serif;
}
.unified-platform .up-sidebar{overflow:hidden;}


.unified-platform .up-icon-action{width:40px;height:40px;min-width:40px;border:1px solid var(--ed-border);border-radius:11px;background:var(--ed-surface);color:#344054;display:inline-grid;place-items:center;text-decoration:none;padding:0;cursor:pointer;position:relative;}
.unified-platform .up-icon-action:hover{background:var(--ed-primary-soft);color:var(--ed-primary);border-color:#c7d7ff;}
.unified-platform .up-icon-action .ui-icon{width:20px;height:20px;}
.unified-platform .up-theme-toggle .up-theme-sun,.unified-platform .up-theme-toggle .up-theme-moon{display:grid;place-items:center;}
.unified-platform .up-theme-toggle .up-theme-moon{display:none;}
html.unified-dark .unified-platform .up-theme-toggle .up-theme-sun{display:none;}
html.unified-dark .unified-platform .up-theme-toggle .up-theme-moon{display:grid;}

/* One persisted dark-theme state is shared with Bank Test through banktest-ui-dark. */
html.unified-dark{color-scheme:dark;}
html.unified-dark .unified-platform{background:var(--ed-bg);color:var(--ed-text);}
html.unified-dark .unified-platform :is(.up-sidebar,.up-topbar,.up-card,.up-note,.up-review-card,.up-tabs a,.up-icon-action,.up-course-choice,.up-setting-item,.up-switch-row,.up-table-wrap){background:var(--ed-surface);color:var(--ed-text);border-color:var(--ed-border);}
html.unified-dark .unified-platform .up-topbar{background:rgba(17,26,41,.96);}
html.unified-dark .unified-platform :is(.up-nav a,.up-brand a,.up-app-switch,.up-form label,.up-setting-copy b,.up-switch-row>span b){color:var(--ed-text);}
html.unified-dark .unified-platform :is(.up-nav-label,.up-help,.up-page-head p,.up-brand small,.up-topbar small,.up-user-meta small,.up-setting-copy small,.up-switch-row>span small){color:var(--ed-muted);}
html.unified-dark .unified-platform .up-nav a:hover,html.unified-dark .unified-platform .up-nav a.active{background:#172554;color:#9db7ff;}
html.unified-dark .unified-platform :is(input:not([type=checkbox]):not([type=radio]),select,textarea,.up-control-date,.up-jalali-date){background:var(--ed-surface-soft,var(--ed-surface,#0e1726));color:var(--ed-text);border-color:var(--ed-border);}
html.unified-dark .unified-platform .up-table th{background:#162033;color:#cbd5e1;border-color:var(--ed-border);}
html.unified-dark .unified-platform .up-table td{border-color:#263247;}
html.unified-dark .unified-platform .up-kv>div,html.unified-dark .unified-platform .up-modal-help{background:#0e1726;color:var(--ed-text);}
html.unified-dark .unified-platform .up-btn.secondary{background:#111a29;color:var(--ed-text);border-color:var(--ed-border);}
html.unified-dark .unified-platform .up-logout-btn{background:#32191f;color:#ff9a9a;}
html.unified-dark .unified-platform .up-backdrop.show{background:rgba(0,0,0,.62);}

/* General mobile layout: forms, filters and tables must not retain desktop flex widths. */
@media(max-width:820px){
  .unified-platform .up-sidebar{top:0;bottom:auto;padding-bottom:max(10px,env(safe-area-inset-bottom));}
  
  .unified-platform .up-topbar{gap:8px;min-width:0;}
  .unified-platform .up-topbar>div:first-of-type{min-width:0;flex:1 1 auto;}
  .unified-platform .up-topbar>div:first-of-type b,.unified-platform .up-topbar>div:first-of-type small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:36vw;}
  .unified-platform .up-top-actions{flex:0 0 auto;}
  
  
  .unified-platform .up-user-meta,.unified-platform .up-app-switch{display:none;}
  
  .unified-platform .up-card{padding:14px;border-radius:14px;}
  
  .unified-platform .up-form,.unified-platform .up-form-grid{width:100%;min-width:0;}
  .unified-platform .up-form-grid{grid-template-columns:1fr;}
  .unified-platform :is(.up-form input:not([type=checkbox]):not([type=radio]),.up-form select,.up-form textarea,.up-control-compact,.up-control-date){width:100%;min-width:0;max-width:none;}
  
  .unified-platform .up-actions>.up-btn{width:100%;}
  .unified-platform .up-table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
  .unified-platform .up-table{min-width:640px;}
  .unified-platform .up-section-head{flex-direction:column;align-items:flex-start;}
}

/* responsive audit refinements using the canonical theme state. */
.unified-platform .up-nav a .ui-icon,.unified-platform .up-nav a i{background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;}
html.unified-dark .unified-platform .central-admin-content :is(.card,.panel-card,.filter-card,.settings-section,.form-card,.table-card,.profile-card,.metric-card,.notice-card,.empty-state,.announcement-history article,.search-box){background:var(--ed-surface);color:var(--ed-text);border-color:var(--ed-border);}
html.unified-dark .unified-platform .central-admin-content :is(h1,h2,h3,h4,strong,b,.page-title,label,legend){color:var(--ed-text);}
html.unified-dark .unified-platform .central-admin-content :is(p,small,.muted,.help-text){color:var(--ed-muted);}
html.unified-dark .unified-platform .central-admin-content :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#0e1726;color:var(--ed-text);border-color:var(--ed-border);}
html.unified-dark .unified-platform .central-admin-content :is(table,thead,tbody,tr,th,td){border-color:var(--ed-border);color:var(--ed-text);}
html.unified-dark .unified-platform .central-admin-content th{background:#162033;}

@media(max-width:820px){
  .unified-platform .up-topbar{height:68px;padding:0 10px;}
  .unified-platform .up-menu-btn{width:36px;height:36px;min-width:36px;padding:0;display:grid;place-items:center;}
  .unified-platform .up-top-actions{gap:4px;}
  .unified-platform .up-icon-action{width:34px;height:34px;min-width:34px;border-radius:9px;}
  .unified-platform .up-icon-action .ui-icon{width:17px;height:17px;}
  .unified-platform .up-topbar>div:first-of-type b{font-size:var(--ed-font-md);}.unified-platform .up-topbar>div:first-of-type small{font-size:var(--ed-font-micro);}
  .unified-platform .up-page-head{align-items:stretch;flex-direction:column;gap:10px;}.unified-platform .up-page-head>div{width:100%;}.unified-platform .up-page-head h1{font-size:20px;line-height:1.55;}.unified-platform .up-page-head p{line-height:1.9;}
  .unified-platform .up-grid.cols-4,.unified-platform .up-grid.cols-3,.unified-platform .up-grid.cols-2,.unified-platform .up-form-grid{grid-template-columns:1fr;}
  .unified-platform .up-kv{grid-template-columns:1fr;}
  .unified-platform .up-actions>.up-btn{flex:1 1 130px;}
  .unified-platform .central-admin-content .admin-ticket-filter,.unified-platform .central-admin-content .ticket-filter,.unified-platform .central-admin-content .filter-card.admin-ticket-filter,.unified-platform .central-admin-content .filter-toolbar,.unified-platform .central-admin-content .admin-filter,.unified-platform .central-admin-content .exam-toolbar,.unified-platform .central-admin-content .sim-filter,.unified-platform .central-admin-content .unified-filter-row,.unified-platform .central-admin-content .course-shop-filter,.unified-platform .central-admin-content .course-filter-bar{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%;align-items:stretch;padding:10px
  ;}
  .unified-platform .central-admin-content :is(.admin-ticket-filter,.ticket-filter,.admin-filter,.unified-filter-row,.course-shop-filter) .search-box,.unified-platform .central-admin-content .admin-filter .search-field{grid-column:1/-1;width:100%;min-width:0;max-width:none;}
  .unified-platform .central-admin-content :is(.admin-ticket-filter,.ticket-filter,.filter-toolbar,.admin-filter,.exam-toolbar,.sim-filter,.unified-filter-row,.course-shop-filter,.course-filter-bar)>*{width:100%;min-width:0;max-width:none;flex:none;margin:0;}
  .unified-platform .central-admin-content :is(.admin-ticket-filter,.ticket-filter,.filter-toolbar,.admin-filter,.exam-toolbar,.sim-filter,.unified-filter-row,.course-shop-filter,.course-filter-bar) :is(select,input,.btn){min-height:42px;max-width:100%;}
  .unified-platform .central-admin-content :is(.grid-2,.grid-3,.grid-4,.settings-inline-form,.announcement-admin-grid,.product-admin-cards,.profile-grid,.metrics-grid,.dashboard-grid,.stat-grid){grid-template-columns:1fr;}
  .unified-platform .central-admin-content :is(.span-2,.span-3,.span-4){grid-column:auto;}
  .unified-platform .central-admin-content :is(.card,.panel-card,.filter-card,.settings-section,.form-card,.table-card){max-width:100%;min-width:0;}
  .unified-platform .central-admin-content .page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}.unified-platform .central-admin-content .page-head>div{min-width:0;flex:1 1 auto;}.unified-platform .central-admin-content .page-head>.ui-icon,.unified-platform .central-admin-content .page-head>svg{width:24px;height:24px;flex:0 0 24px;margin-top:4px;}
  .unified-platform .central-admin-content .table-wrap,.unified-platform .central-admin-content .table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;}
}
@media(max-width:480px){
  .unified-platform .up-topbar>div:first-of-type small{display:none;}.unified-platform .up-topbar>div:first-of-type b{max-width:92px;}
  .unified-platform .up-icon-action{width:32px;height:32px;min-width:32px;}
  .unified-platform .central-admin-content :is(.admin-ticket-filter,.ticket-filter,.filter-toolbar,.admin-filter,.exam-toolbar,.sim-filter,.unified-filter-row,.course-shop-filter,.course-filter-bar){grid-template-columns:1fr 1fr;}
}

/* compact inline controls inside educational cards. */
.unified-platform .up-inline-form{flex-wrap:wrap;}.unified-platform .up-inline-form :is(input:not([type=checkbox]),select){width:auto;min-width:72px;max-width:150px;}.unified-platform .up-note-actions form{min-width:0;}.unified-platform .up-note-actions form select{width:auto;min-width:90px;}.unified-platform .up-note-actions form .up-btn{white-space:nowrap;}
@media(max-width:820px){
 .unified-platform .up-inline-form{width:100%;}.unified-platform .up-inline-form>*{width:100%;max-width:none;min-width:0;}.unified-platform .up-inline-form label{display:flex;align-items:center;gap:6px;}
 .unified-platform .up-note-actions{display:grid;grid-template-columns:1fr;}.unified-platform .up-note-actions form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;}.unified-platform .up-note-actions form select{width:100%;max-width:none;min-width:0;}
}

/* mobile drawer priority, Review bulk-import containment and consultant-monitor parity. */
.unified-platform .up-file-field{display:grid;gap:7px;min-width:0;}.unified-platform .up-file-label{font-size:var(--ed-font-sm);font-weight:800;color:#475467;}
.unified-platform .up-file-picker{display:flex;align-items:center;gap:9px;min-width:0;border:1px solid #d0d5dd;border-radius:11px;background:var(--ed-surface);padding:8px 9px;}
.unified-platform .up-file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
.unified-platform .up-file-picker>[data-up-file-name]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ed-muted);font-size:var(--ed-font-xs);direction:rtl;}
.unified-platform .review-import-help{max-width:100%;min-width:0;overflow-wrap:anywhere;word-break:break-word;}.unified-platform .review-import-help [dir=ltr]{display:inline;unicode-bidi:isolate;overflow-wrap:anywhere;word-break:break-word;}
.unified-platform .review-import-card{min-width:0;overflow:hidden;}.unified-platform .review-import-grid>*{min-width:0;}.unified-platform .review-import-submit{max-width:100%;}
html.unified-dark .unified-platform .up-file-picker{background:var(--ed-surface);border-color:var(--ed-border);}.unified-platform .up-nav a.current-app{color:var(--ed-primary);font-weight:850;}

@media(max-width:820px){
  .unified-platform .up-sidebar,.unified-platform .up-sidebar.open{z-index:130;pointer-events:auto;isolation:isolate;}
  .unified-platform .up-backdrop.show{z-index:120;pointer-events:auto;}
  .unified-platform .up-nav{max-height:none;pointer-events:auto;}
  
  .unified-platform .review-import-form{width:100%;min-width:0;}
  .unified-platform .up-file-picker{display:grid;grid-template-columns:auto minmax(0,1fr);width:100%;max-width:100%;}
  .unified-platform .up-file-picker .up-btn{width:auto;min-width:102px;white-space:nowrap;}
  .unified-platform .review-import-help{font-size:var(--ed-font-micro);line-height:1.9;padding:10px;}
  .unified-platform .review-import-submit{width:100%;white-space:normal;line-height:1.7;}
  
}
@media(max-width:420px){
  .unified-platform .up-file-picker{grid-template-columns:1fr;}.unified-platform .up-file-picker .up-btn{width:100%;}.unified-platform .up-file-picker>[data-up-file-name]{white-space:normal;overflow-wrap:anywhere;}
}

/* shared central page title icon stays attached to the heading. */
.unified-platform .central-admin-content .page-head-titleline{display:flex;align-items:flex-start;gap:10px;min-width:0;}
.unified-platform .central-admin-content .page-head-titleline>div{min-width:0;flex:1 1 auto;}
.unified-platform .central-admin-content .page-head-inline-icon{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;color:var(--ed-primary);margin-top:5px;}
.unified-platform .central-admin-content .page-head-inline-icon .ui-icon,.unified-platform .central-admin-content .page-head-inline-icon>svg{width:25px;height:25px;}

/* mobile canvas containment, off-canvas drawer isolation and Review admin responsiveness. */
body.unified-platform{max-width:100%;overflow-x:hidden;}
.unified-platform .up-shell,.unified-platform .up-main,.unified-platform .up-content{min-width:0;max-width:100%;width:100%;}
.unified-platform .up-page-head,.unified-platform .up-actions,.unified-platform .up-grid,.unified-platform .up-card,.unified-platform .up-table-wrap{min-width:0;max-width:100%;}
.unified-platform .review-admin-page{min-width:0;max-width:100%;width:100%;}
.unified-platform .review-admin-page .up-page-head{width:100%;}
.unified-platform .review-admin-page .up-actions{max-width:100%;}
.unified-platform .review-admin-page .review-import-card{width:100%;max-width:100%;min-width:0;overflow:hidden;}
.unified-platform .review-admin-page .review-import-grid{width:100%;max-width:100%;min-width:0;}
.unified-platform .review-admin-page .review-import-grid>*,
.unified-platform .review-admin-page .review-import-form,
.unified-platform .review-admin-page .up-file-field,
.unified-platform .review-admin-page .up-file-picker{min-width:0;max-width:100%;}
.unified-platform .review-admin-page .up-table-wrap{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;}
.unified-platform .review-admin-page code{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;}

@media(max-width:820px){
  html{max-width:100%;overflow-x:hidden;}
  body.unified-platform{width:100%;max-width:100vw;overflow-x:hidden;overscroll-behavior-x:none;}
  .unified-platform .up-shell,.unified-platform .up-main,.unified-platform .up-content{width:100%;max-width:100vw;min-width:0;overflow-x:hidden;}
  /* A translated fixed drawer must not remain focusable/painted while closed. This also
     prevents the off-canvas element from creating a horizontal scroll range in RTL mobile browsers. */
  .unified-platform .up-sidebar{transition:transform .2s ease,visibility 0s linear .2s;}
  .unified-platform .up-sidebar.open{transition:transform .2s ease,visibility 0s linear 0s;}
  .unified-platform .up-page-head{width:100%;max-width:100%;min-width:0;overflow:hidden;}
  .unified-platform .up-page-head>div{min-width:0;max-width:100%;}
  .unified-platform .up-page-head h1,.unified-platform .up-page-head p{max-width:100%;overflow-wrap:anywhere;word-break:normal;}
  .unified-platform .up-actions{width:100%;max-width:100%;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
  .unified-platform .up-actions>.up-btn,.unified-platform .up-actions>a.up-btn{width:100%;max-width:100%;min-width:0;white-space:normal;}
  .unified-platform .review-admin-page .up-page-head .up-actions{grid-template-columns:1fr;}
  .unified-platform .review-admin-page .up-grid,.unified-platform .review-admin-page .review-import-grid{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;}
  .unified-platform .review-admin-page .up-card{width:100%;max-width:100%;min-width:0;overflow:hidden;}
  .unified-platform .review-admin-page .up-form,.unified-platform .review-admin-page .up-form label{min-width:0;max-width:100%;}
  .unified-platform .review-admin-page :is(input,select,textarea,button){max-width:100%;}
  .unified-platform .review-admin-page .review-import-card .up-table{min-width:480px;width:max-content;max-width:none;}
}
@media(max-width:480px){
  .unified-platform .up-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
  .unified-platform .up-actions>.up-btn{padding-inline:7px;font-size:var(--ed-font-xs);}
  .unified-platform .review-admin-page .up-page-head .up-actions{grid-template-columns:repeat(2,minmax(0,1fr));}
  .unified-platform .review-admin-page .review-import-card .up-table{min-width:440px;}
}

/* definitive mobile containment for Review management + drawer isolation.
   The Review admin page uses its own responsive header instead of the generic desktop
   page-head/actions row. On narrow screens the closed drawer is removed from layout/paint
   entirely so transformed fixed elements can never create RTL horizontal canvas drift. */
.unified-platform .review-admin-header{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:16px;
  margin:0 0 18px;min-width:0;max-width:100%;width:100%;
}
.unified-platform .review-admin-heading{min-width:0;max-width:100%;}
.unified-platform .review-admin-heading h1{margin:0 0 5px;font-size:22px;line-height:1.55;}
.unified-platform .review-admin-heading p{margin:0;color:var(--ed-muted);font-size:var(--ed-font-md);line-height:1.9;overflow-wrap:anywhere;}
.unified-platform .review-export-actions{display:grid;grid-template-columns:repeat(3,max-content);gap:8px;min-width:0;max-width:100%;}
.unified-platform .review-export-actions .up-btn{white-space:nowrap;}
.unified-platform .review-admin-page{
  box-sizing:border-box;inline-size:100%;max-inline-size:100%;
  margin-inline:0;padding-inline:0;position:relative;
  inset-inline:auto;transform:none;translate:none;
  overflow-x:clip;
}
.unified-platform .review-admin-page>*{max-inline-size:100%;min-inline-size:0;}
.unified-platform .review-admin-page .review-import-card,
.unified-platform .review-admin-page .up-card{box-sizing:border-box;}

@media(max-width:1100px){
  .unified-platform .review-admin-header{grid-template-columns:minmax(0,1fr);align-items:start;gap:12px;}
  .unified-platform .review-export-actions{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;}
  .unified-platform .review-export-actions .up-btn{width:100%;min-width:0;}
}
@media(max-width:820px){
  /* Closed mobile drawers are display:none. This is deliberately stronger than an off-canvas
     transform because some RTL Chromium/WebView builds include transformed fixed boxes in the
     horizontal scrollable overflow area. */
  .unified-platform .up-sidebar{transform:none;right:0;left:auto;}
  .unified-platform .up-sidebar:not(.open){display:none!important;visibility:hidden!important;pointer-events:none!important;}
  .unified-platform .up-sidebar.open{display:flex;visibility:visible!important;transform:none;right:0;left:auto;}
  .unified-platform .up-main{display:flex;flex-direction:column;min-height:100vh;inline-size:100%;max-inline-size:100%;margin:0;padding:0;}
  .unified-platform .up-content{inline-size:100%;max-inline-size:100%;margin:0;padding:14px;overflow-x:clip;}
  .unified-platform .review-admin-page{inline-size:100%;max-inline-size:100%;margin:0;overflow-x:clip;}
  .unified-platform .review-admin-header{display:grid;grid-template-columns:minmax(0,1fr);width:100%;margin-bottom:14px;}
  .unified-platform .review-admin-heading{width:100%;text-align:right;}
  .unified-platform .review-admin-heading h1{font-size:20px;overflow-wrap:anywhere;}
  .unified-platform .review-admin-heading p{font-size:var(--ed-font-sm);max-width:none;}
  .unified-platform .review-export-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:7px;}
  .unified-platform .review-export-actions .up-btn{width:100%;min-width:0;padding-inline:7px;font-size:var(--ed-font-xs);white-space:normal;}
  .unified-platform .review-import-card{padding:14px;}
  .unified-platform .review-import-grid{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;gap:12px;}
  .unified-platform .review-import-grid>div,
  .unified-platform .review-import-form{width:100%;max-width:100%;min-width:0;}
  .unified-platform .review-import-card .up-table-wrap{inline-size:100%;max-inline-size:100%;overflow-x:auto;overflow-y:hidden;}
  .unified-platform .review-import-card .up-table{width:100%;min-width:0;table-layout:fixed;white-space:normal;}
  .unified-platform .review-import-card .up-table th,
  .unified-platform .review-import-card .up-table td{white-space:normal;overflow-wrap:anywhere;word-break:break-word;padding:9px 7px;}
}
@media(max-width:560px){
  .unified-platform .review-export-actions{grid-template-columns:1fr;}
  .unified-platform .review-import-card .up-table{font-size:var(--ed-font-xs);}
}

/* Shared authenticated shell footer: one owner across TEST/PLAN/REVIEW/RANK/admin. */
.platform-shell-footer{width:calc(100% - 48px);max-width:1552px;margin:28px auto 24px;flex:0 0 auto;padding:0;border:1px solid var(--ed-border);border-radius:var(--ed-radius-card);background:var(--ed-surface);box-shadow:var(--ed-shadow);color:var(--ed-muted);overflow:hidden;}
.platform-shell-footer-inner{min-height:58px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:18px;}
.platform-shell-footer-help{display:inline-flex;align-items:center;gap:8px;min-width:0;color:var(--ed-text);font-size:var(--ed-font-sm);line-height:1.8;}
.platform-shell-footer-help .ui-icon{width:17px;height:17px;flex:0 0 17px;color:var(--ed-primary);}
.platform-shell-footer-credit{font-size:var(--ed-font-xs);white-space:nowrap;color:var(--ed-muted);}.platform-shell-footer-credit a{color:var(--ed-primary);text-decoration:none;}
.bank-test-platform .bank-main-inner{flex:1 0 auto;}

/* PLAN goal editor owns its internal grid instead of inheriting the generic 4-column form grid. */
.plan-goal-section{margin-top:16px;}.plan-goal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}.plan-goal-card{min-width:0;padding:16px;border:1px solid var(--ed-border);border-radius:14px;background:var(--ed-surface-soft);display:grid;gap:13px;}.plan-goal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}.plan-goal-head>div{min-width:0;display:grid;gap:5px;}.plan-goal-head b{font-size:var(--ed-font-base);line-height:1.7;}.plan-goal-head p{margin:0;color:var(--ed-muted);font-size:var(--ed-font-xs);line-height:1.8;}.plan-goal-form{gap:10px;}.plan-goal-editor-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(100px,.75fr);gap:10px;}

/* PLAN onboarding and Smart Planner use page-specific grids so course controls keep usable width. */
.plan-onboarding-course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}.plan-onboarding-course-grid .up-course-choice{min-height:72px;display:flex;align-items:center;}.plan-onboarding-course-grid .up-course-choice-row{width:100%;}
.plan-smart-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr);gap:16px;align-items:start;}.plan-smart-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}.plan-smart-course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}.plan-smart-course-grid .up-course-choice{min-height:76px;display:flex;align-items:center;}.plan-smart-course-grid .up-course-choice-row{width:100%;}

@media(max-width:1180px){.plan-goal-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.plan-smart-layout{grid-template-columns:1fr;}.plan-smart-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.plan-smart-course-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:820px){.platform-shell-footer{width:calc(100% - 28px);margin:22px auto 14px;border-radius:14px;}.platform-shell-footer-inner{align-items:center;justify-content:center;flex-direction:column;gap:7px;padding:12px 14px;text-align:center;}.platform-shell-footer-help{justify-content:center;text-align:center;}.platform-shell-footer-credit{white-space:normal;text-align:center;width:100%;}.plan-goal-grid,.plan-onboarding-course-grid,.plan-smart-course-grid{grid-template-columns:1fr;}.plan-smart-form-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:560px){.plan-goal-editor-grid,.plan-smart-form-grid{grid-template-columns:1fr;}.plan-goal-head{align-items:center;}}

}

/* r40 — sticky shell hardening. Sticky headers must not live inside an overflow-clipped
   ancestor; horizontal clipping is kept on the content canvas only. */
.unified-platform .up-shell,
.unified-platform .up-main{overflow:visible!important;}
.unified-platform .up-content{overflow-x:clip;}
.unified-platform .up-topbar{position:sticky!important;top:0!important;z-index:calc(var(--ed-z-commerce,30000) - 100)!important;align-self:stretch;}
.landing-header{position:sticky!important;top:0!important;z-index:1000!important;}
@media(max-width:820px){
  .unified-platform .up-shell,.unified-platform .up-main{overflow:visible!important;max-width:100vw;}
  .unified-platform .up-content{overflow-x:clip!important;}
  .unified-platform .up-topbar{position:sticky!important;top:0!important;}
}

/* r41 sticky/header and compact card fixes */
html,body{overflow-x:hidden;}
.up-topbar,.bank-topbar,.landing-header{position:sticky;top:0;z-index:1100;}
.up-shell,.page-shell,.up-main,.bank-main{overflow:visible;}
.up-topbar-brand,.bank-topbar-brand{display:grid;color:inherit;text-decoration:none;min-width:0;}
.up-topbar-brand b,.bank-topbar-brand b{font-size:inherit;}
.academy-category-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;}
.academy-category-chip{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid var(--ed-border);border-radius:999px;background:#fff;color:#475467;text-decoration:none;font-size:var(--ed-font-sm);font-weight:700;}
.academy-category-chip.active,.academy-category-chip:hover{background:var(--ed-primary-soft);color:var(--ed-primary);border-color:#c7d7ff;}
.academy-inline-link{color:inherit;text-decoration:none;}
.academy-store-card .up-product-body{gap:10px;}
.academy-store-card img,.up-product-card img{height:220px;object-fit:cover;}
.academy-switch-row,.education-comment-setting-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;}
.academy-switch-row small,.education-comment-setting-card small{display:block;color:var(--ed-muted);margin-top:4px;}
.academy-inline-check{display:grid;gap:8px;}
.academy-inline-toggle{display:inline-flex;align-items:center;gap:10px;}
.taxonomy-row-actions,.academy-category-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;}
.academy-category-list{display:grid;gap:12px;}
.academy-category-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border:1px solid var(--ed-border);border-radius:14px;background:#fff;}
.academy-category-row small{display:block;color:var(--ed-muted);margin-top:4px;}
.academy-taxonomy-grid{align-items:start;}
.home-course-grid[data-courses-slider],.landing-unified-app-grid[data-platforms-slider],.education-home-slider[data-education-slider]{scrollbar-width:none;}
.education-home-card{overflow:hidden;background:var(--ed-surface);color:var(--ed-text);border:1px solid var(--ed-border);border-radius:var(--ed-radius-card);box-shadow:var(--ed-shadow);display:flex;flex-direction:column;min-width:0;}
.education-home-card-image{position:relative;display:block;height:230px;overflow:hidden;background:var(--ed-primary-soft);color:var(--ed-primary);}
.education-home-card-image img{width:100%;height:100%;object-fit:cover;display:block;}
.education-home-card-placeholder{display:grid;place-items:center;color:var(--ed-primary);}
.education-home-card-body{padding:13px 14px;display:grid;gap:6px;min-height:0;height:auto;align-content:start;}
.education-home-card-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:3px;}
.home-course-head.compact{margin-bottom:0;}
.home-course-head.compact b{line-height:1.6;}
@media (max-width:900px){.up-topbar,.bank-topbar{padding-inline:16px;}.up-topbar-brand,.bank-topbar-brand{max-width:calc(100vw - 160px);}.academy-switch-row,.education-comment-setting-card,.academy-category-row{grid-template-columns:1fr;display:grid;}.taxonomy-row-actions,.academy-category-actions{justify-content:flex-start;}.academy-store-card img,.up-product-card img{height:190px;}.education-home-card-image{height:215px;}}

/* === EduNex r42: canonical quick-access header === */
/* Normal pages use native sticky positioning. The previous fixed-header workaround
   removed the header from layout and caused the student action buttons to wrap/stack.
   Keep every ancestor overflow-visible and let the header own a single in-flow row. */
html,body{overflow-x:clip;}
body.unified-platform .up-shell,
body.unified-platform .up-main,
body.unified-platform .bank-main{overflow:visible!important;}
body.unified-platform .up-topbar,
body.unified-platform .bank-topbar{
  position:sticky!important;
  top:0!important;
  right:auto!important;
  left:auto!important;
  width:100%!important;
  height:74px!important;
  min-height:74px!important;
  z-index:9000!important;
  transform:none!important;
  translate:none!important;
  flex:0 0 74px;
}
body.unified-platform .up-main,
body.unified-platform .bank-main{padding-top:0!important;}
body.unified-platform .up-top-actions,
body.unified-platform .bank-top-actions{display:flex!important;align-items:center!important;flex-flow:row nowrap!important;gap:8px!important;min-width:max-content;}
body.unified-platform .up-topbar-brand,
body.unified-platform .bank-topbar-brand{display:grid;gap:1px;min-width:0;color:inherit;text-decoration:none;}
body.unified-platform .up-topbar-brand b,
body.unified-platform .bank-topbar-brand b,
body.unified-platform .up-topbar-brand small,
body.unified-platform .bank-topbar-brand small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* Exam/reader/focus routes deliberately scroll the global header away. */
body.unified-platform.route-immersive .up-topbar,
body.unified-platform.route-immersive .bank-topbar{position:relative!important;top:auto!important;z-index:100!important;}
body.unified-platform.route-immersive .up-main,
body.unified-platform.route-immersive .bank-main{padding-top:0!important;}
/* Secure PDF owns its own toolbar and must be the only chrome while reading. */
body.unified-platform.route-immersive-reader .up-sidebar,
body.unified-platform.route-immersive-reader .up-topbar,
body.unified-platform.route-immersive-reader .notif-dropdown,
body.unified-platform.route-immersive-reader .platform-shell-footer,
body.unified-platform.route-immersive-reader .up-backdrop{display:none!important;}
body.unified-platform.route-immersive-reader .up-shell{display:block!important;min-height:100vh!important;}
body.unified-platform.route-immersive-reader .up-main{display:block!important;min-height:100vh!important;padding:0!important;}
body.unified-platform.route-immersive-reader .up-content{max-width:none!important;width:100%!important;min-height:100vh!important;margin:0!important;padding:0!important;}

@media(max-width:820px){
  body.unified-platform .up-topbar,
  body.unified-platform .bank-topbar{
    display:grid!important;
    grid-template-columns:36px minmax(0,1fr) auto!important;
    align-items:center!important;
    column-gap:8px!important;
    height:64px!important;
    min-height:64px!important;
    padding:0 10px!important;
    flex-basis:64px!important;
  }
  body.unified-platform .up-menu-btn{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-width:36px!important;margin:0!important;}
  body.unified-platform .up-topbar>div:first-of-type,
  body.unified-platform .bank-topbar>.bank-topbar-title{min-width:0!important;max-width:none!important;margin:0!important;}
  body.unified-platform .up-topbar>div:first-of-type b,
  body.unified-platform .bank-topbar-brand b{max-width:100%!important;font-size:var(--ed-font-md)!important;}
  body.unified-platform .up-topbar>div:first-of-type small,
  body.unified-platform .bank-topbar-brand small{max-width:100%!important;font-size:var(--ed-font-micro)!important;}
  body.unified-platform .up-top-actions,
  body.unified-platform .bank-top-actions{gap:5px!important;min-width:0!important;justify-self:end;}
  body.unified-platform .up-top-actions{--ed-header-action-size:34px!important;}
  body.unified-platform .up-top-actions>.up-icon-action,
  body.unified-platform .up-top-actions .cart-button,
  body.unified-platform .up-top-actions .notif-button,
  body.unified-platform .up-top-actions .up-user-link{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-width:34px!important;max-height:34px!important;padding:3px!important;border-radius:10px!important;display:grid!important;place-items:center!important;}
  body.unified-platform .up-top-actions .up-user-meta{display:none!important;}
  body.unified-platform .up-top-actions .up-user-avatar{display:grid!important;width:26px!important;height:26px!important;min-width:26px!important;max-width:26px!important;min-height:26px!important;max-height:26px!important;flex:0 0 26px!important;place-items:center!important;margin:0!important;transform:none!important;position:static!important;overflow:hidden!important;}
  body.unified-platform .up-top-actions .up-user-avatar .ui-icon{display:block!important;width:20px!important;height:20px!important;max-width:20px!important;max-height:20px!important;margin:0!important;}
  body.unified-platform.route-immersive .up-topbar,
  body.unified-platform.route-immersive .bank-topbar{position:relative!important;}
}
@media(max-width:390px){
  body.unified-platform .up-topbar,
  body.unified-platform .bank-topbar{grid-template-columns:34px minmax(56px,1fr) auto!important;column-gap:6px!important;padding-inline:8px!important;}
  body.unified-platform .up-top-actions,
  body.unified-platform .bank-top-actions{gap:3px!important;}
  body.unified-platform .up-top-actions{--ed-header-action-size:32px!important;}
  body.unified-platform .up-top-actions>.up-icon-action,
  body.unified-platform .up-top-actions .cart-button,
  body.unified-platform .up-top-actions .notif-button,
  body.unified-platform .up-top-actions .up-user-link{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;}
  body.unified-platform .up-topbar>div:first-of-type small,
  body.unified-platform .bank-topbar-brand small{display:none!important;}
}

/* Dars and ecosystem cards use the same scroll/snap contract as product/article sliders on every viewport. */
.home-course-grid[data-courses-slider],
.landing-unified-app-grid[data-platforms-slider]{
  display:flex!important;
  grid-template-columns:none!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
  gap:16px!important;
  padding:4px 2px 10px!important;
  scrollbar-width:none;
}
.home-course-grid[data-courses-slider]::-webkit-scrollbar,
.landing-unified-app-grid[data-platforms-slider]::-webkit-scrollbar{display:none;}
.home-course-grid[data-courses-slider]>article{
  flex:0 0 min(340px,84vw)!important;
  width:min(340px,84vw)!important;
  min-width:min(340px,84vw)!important;
  max-width:min(340px,84vw)!important;
  min-height:0!important;
  scroll-snap-align:center;
}
.landing-unified-app-grid[data-platforms-slider]>.unified-app-card{
  flex:0 0 min(360px,86vw)!important;
  width:min(360px,86vw)!important;
  min-width:min(360px,86vw)!important;
  max-width:min(360px,86vw)!important;
  scroll-snap-align:center;
}

/* Comment header: title remains right, compact count badge remains at physical left. */
.inline-comment-manager .inline-comment-title-row{
  display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
  flex-flow:row nowrap!important;gap:12px!important;min-width:0!important;
}
.inline-comment-manager .inline-comment-title-row>div{min-width:0!important;flex:1 1 auto!important;}
.inline-comment-manager .inline-comment-title-row>.up-badge{
  order:initial!important;margin-inline-start:auto!important;flex:0 0 auto!important;white-space:nowrap!important;align-self:flex-start!important;
}
/* Article comment switch is always a two-column title/toggle row, including phones. */
.education-comment-setting-card{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;
}
.education-comment-setting-card>.education-comment-switch{justify-self:end!important;align-self:center!important;margin:0!important;}

/* Front category archives. */
.academy-category-archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.academy-category-archive-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;text-decoration:none;color:var(--ed-text);}
.academy-category-archive-card>span{width:42px;height:42px;border-radius:12px;background:var(--ed-primary-soft);color:var(--ed-primary);display:grid;place-items:center;}
.academy-category-archive-card h3,.academy-category-archive-card p{margin:0;}.academy-category-archive-card p{margin-top:4px;color:var(--ed-muted);font-size:var(--ed-font-sm);}
.academy-category-products{margin-top:16px;}
.academy-category-pagination{display:flex;justify-content:center;gap:7px;margin-top:18px;flex-wrap:wrap;}
.academy-category-pagination a{min-width:36px;height:36px;padding:0 9px;border:1px solid var(--ed-border);border-radius:10px;display:grid;place-items:center;color:var(--ed-text);text-decoration:none;}
.academy-category-pagination a.active{background:var(--ed-primary);border-color:var(--ed-primary);color:#fff;}
@media(max-width:900px){
  .academy-category-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .education-comment-setting-card{grid-template-columns:minmax(0,1fr) auto!important;}
}
@media(max-width:560px){.academy-category-archive-grid{grid-template-columns:1fr;}}
/* EduNex r50: Academy storefront shares the same visual contract as frontend product cards. */
.academy-store-grid{display:flex!important;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;gap:16px;padding:4px 2px 12px;scrollbar-width:none}.academy-store-grid::-webkit-scrollbar{display:none}.academy-store-card-clean{flex:0 0 min(360px,84vw);min-width:min(360px,84vw);scroll-snap-align:center}.academy-store-card-clean .academy-home-card-image{height:240px!important}.academy-store-meta-line{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--ed-muted);font-size:var(--ed-font-xs);min-height:20px}.academy-store-meta-line span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.academy-store-card-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}.academy-store-card-actions .up-btn{white-space:nowrap}
@media(max-width:760px){.academy-store-card-clean .academy-home-card-image{height:215px!important}.academy-store-card-actions{gap:4px}.academy-store-card-actions .up-btn{padding-inline:9px}}
.homepage-section-order{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.homepage-section-order-item{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;padding:9px 11px;border:1px solid var(--ed-border);border-radius:12px;background:var(--ed-surface-soft)}.homepage-section-order-item b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.homepage-section-order-item .settings-repeater-actions{margin:0;display:flex;gap:5px;flex:0 0 auto}.instructor-ticket-feedback-form{display:grid;gap:10px;margin-top:12px}.instructor-ticket-feedback-form .up-form-grid{margin:0}@media(max-width:700px){.homepage-section-order{grid-template-columns:1fr}}
/* Academy instructor operational + global monitoring UI. */
.instructor-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.instructor-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.instructor-list{display:grid;gap:8px}.instructor-list>a,.instructor-list-row,.instructor-ticket-list>a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid var(--ed-border);border-radius:14px;color:var(--ed-text);text-decoration:none}.instructor-list small,.instructor-ticket-list small{display:block;color:var(--ed-muted);margin-top:3px}.instructor-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.instructor-product-head,.instructor-admin-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.instructor-product-head h3{margin:0}.instructor-product-head p{margin:5px 0 0;color:var(--ed-muted)}.instructor-approval-state{padding:11px;border:1px dashed var(--ed-border);border-radius:14px;background:var(--ed-primary-soft)}.instructor-approval-state small,.instructor-approval-state b{display:block}.instructor-approval-state p{font-size:var(--ed-font-xs);color:var(--ed-muted);margin:6px 0 0}.instructor-editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.instructor-comment-list,.instructor-ticket-list,.instructor-review-list{display:grid;gap:12px}.instructor-comment-actions{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center}.instructor-comment-actions form,.instructor-reply-form{display:flex;gap:7px;align-items:center}.instructor-reply-form input{min-width:0;flex:1}.instructor-ticket-list>a{background:var(--ed-surface)}.ticket-thread{display:grid;gap:10px;margin-bottom:16px}.ticket-message{padding:12px;border:1px solid var(--ed-border);border-radius:14px;background:var(--ed-surface-soft)}.ticket-message p{margin:6px 0}.ticket-message small{color:var(--ed-muted)}
.instructor-monitor-stack,.instructor-report-stack{display:grid;gap:18px;margin-top:18px}.instructor-monitor-stack>.up-card,.instructor-report-stack>.up-card{margin:0}.instructor-monitor-dashboard{display:grid;gap:16px}.instructor-monitor-dashboard .monitor-chart-grid{margin-top:0}.instructor-monitor-head .up-page-inline-filter{align-self:flex-start}.instructor-grant-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.instructor-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.instructor-admin-card{display:grid;gap:12px;border:1px solid var(--ed-border);border-radius:18px;padding:14px;background:var(--ed-surface-soft);min-width:0}.instructor-admin-card-head small{display:block;color:var(--ed-muted);margin-top:3px}.instructor-name-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.instructor-name-line .monitor-live-dot{margin-inline-end:3px}.instructor-compact-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.instructor-compact-metrics>div{display:grid;gap:2px;padding:8px 9px;border:1px solid var(--ed-border);border-radius:12px;background:var(--ed-surface)}.instructor-compact-metrics small{color:var(--ed-muted);font-size:var(--ed-font-micro)}.instructor-compact-metrics b{font-size:var(--ed-font-base)}.instructor-money-row{display:grid;grid-template-columns:1fr 1fr;gap:7px;color:var(--ed-muted);font-size:var(--ed-font-xs)}.instructor-money-row span{padding:7px 9px;border-radius:10px;background:var(--ed-surface);border:1px solid var(--ed-border)}.instructor-admin-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.instructor-admin-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.instructor-admin-actions .up-btn{width:100%;justify-content:center}
.up-section-head>.up-badge{margin-inline-start:auto;white-space:nowrap;align-self:flex-start;flex:0 0 auto}.instructor-review-list>article{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);gap:12px;align-items:center;padding:12px;border:1px solid var(--ed-border);border-radius:14px;background:var(--ed-surface)}.instructor-review-list small{display:block;color:var(--ed-muted);margin-top:4px}.instructor-review-list form{display:flex;gap:6px;align-items:center;justify-content:flex-end}.instructor-review-list input{min-width:90px}
.instructor-report-head{align-items:flex-start}.instructor-page-back{margin-inline-start:auto;min-width:0;width:auto;white-space:nowrap}.instructor-report-stat{min-height:92px}.instructor-report-stat b{font-size:15px;overflow-wrap:anywhere}.instructor-report-charts{margin-top:16px}.instructor-report-table{min-width:760px}.instructor-report-table td small{display:block;color:var(--ed-muted);margin-top:3px}.instructor-report-table .up-actions{flex-wrap:wrap}.instructor-report-stack .up-table-wrap{border:1px solid var(--ed-border);border-radius:14px;overflow:auto}.instructor-report-stack .up-table{margin:0}.instructor-report-stack .up-table thead th{background:var(--ed-surface-soft);white-space:nowrap}.instructor-report-stack .up-table tbody tr:last-child td{border-bottom:0}
.instructor-admin-table{display:grid;gap:8px}.instructor-admin-row{display:grid;grid-template-columns:minmax(220px,1fr) repeat(3,max-content) auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--ed-border);border-radius:14px;background:var(--ed-surface)}.instructor-admin-row>div{min-width:0;display:grid;gap:3px}.instructor-admin-row b,.instructor-admin-row small{overflow:hidden;text-overflow:ellipsis}.instructor-admin-row small{color:var(--ed-muted)}
html.unified-dark .instructor-admin-card,body.dark-ui .instructor-admin-card,html.unified-dark .instructor-review-list>article,body.dark-ui .instructor-review-list>article,html.unified-dark .instructor-admin-row,body.dark-ui .instructor-admin-row{background:var(--ed-surface-soft);border-color:var(--ed-border)}
@media(max-width:1000px){.instructor-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.instructor-admin-grid{grid-template-columns:1fr}.instructor-review-list>article{grid-template-columns:1fr}.instructor-review-list form{justify-content:flex-start;flex-wrap:wrap}}
@media(max-width:760px){.instructor-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.instructor-dashboard-grid,.instructor-product-grid{grid-template-columns:1fr}.instructor-admin-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.instructor-admin-settings label:last-child{grid-column:1/-1}.instructor-admin-actions{grid-template-columns:1fr 1fr}.instructor-admin-actions .up-btn:first-child{grid-column:1/-1}.instructor-grant-form{grid-template-columns:1fr}.instructor-review-list form{display:grid;grid-template-columns:1fr 1fr}.instructor-review-list form input{grid-column:1/-1}.instructor-report-head{display:grid;grid-template-columns:minmax(0,1fr) auto}.instructor-page-back{align-self:start}.instructor-report-table{min-width:680px}.instructor-compact-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.instructor-admin-row{grid-template-columns:1fr 1fr;align-items:start}.instructor-admin-row>div{grid-column:1/-1}.instructor-admin-row .up-btn{justify-self:start}}
@media(max-width:480px){.instructor-compact-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.instructor-admin-actions{grid-template-columns:1fr 1fr}.instructor-money-row{grid-template-columns:1fr}.instructor-stat-grid{gap:8px}.instructor-report-stat{min-height:78px;padding:10px}.instructor-report-head{gap:8px}.instructor-page-back{padding-inline:10px}}

/* EduNex r50 — compact Academy store card footer, aligned with public Academy cards. */
.academy-store-card-clean .academy-home-card-body{gap:6px!important;padding:13px 14px!important}
.academy-store-card-clean .academy-home-card-body>p{min-height:0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.academy-store-card-clean .academy-home-card-foot{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:end!important;gap:10px!important;margin-top:4px!important}
.academy-store-card-clean .academy-home-price{justify-self:start;text-align:right}
.academy-store-card-clean .academy-store-card-actions{justify-self:end}
@media(max-width:520px){.academy-store-card-clean .academy-home-card-foot{grid-template-columns:1fr auto}.academy-store-card-clean .academy-home-price b{font-size:var(--ed-font-md)}.academy-store-card-clean .academy-store-card-actions .up-btn{min-height:31px;font-size:var(--ed-font-micro)}}

/* EduNex r53: canonical monitoring/report/commerce presentation. */
.unified-platform .up-section-head{min-width:0}.unified-platform .up-section-head>div{min-width:0;flex:1 1 auto}.unified-platform .up-section-head>.up-badge{margin-inline-start:auto;flex:0 0 auto;white-space:nowrap}
.monitor-chart-year{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:4px 9px;border:1px solid var(--ed-border);border-radius:999px;background:var(--ed-surface-soft);color:var(--ed-muted);font-size:var(--ed-font-micro);font-weight:850;white-space:nowrap;flex:0 0 auto}
.instructor-action-form,.instructor-payout-action-form{min-width:0}.instructor-action-form :is(input:not([type=hidden]),select,textarea),.instructor-payout-action-form :is(input:not([type=hidden]),select,textarea){min-width:0;width:100%;min-height:38px;padding:8px 10px;border:1px solid var(--ed-border);border-radius:11px;background:var(--ed-surface);color:var(--ed-text);font:inherit;outline:0;box-shadow:none}.instructor-action-form :is(input,select,textarea):focus,.instructor-payout-action-form :is(input,select,textarea):focus{border-color:var(--ed-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--ed-primary) 12%,transparent)}
.instructor-report-stack{gap:18px}.instructor-report-stack>.up-card{display:grid;gap:12px}.instructor-report-stack>.up-card>.up-section-head{margin-bottom:0}.instructor-report-table td,.instructor-report-table th{vertical-align:middle}.instructor-table-actions .up-btn{white-space:nowrap}.instructor-inline-actions{flex-wrap:nowrap!important}
.unified-platform .up-stat-grid.instructor-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.instructor-report-stat{display:grid;place-items:start;min-height:86px}.instructor-report-stat>div{display:grid;gap:6px}.instructor-report-stat b{color:var(--ed-text)}.instructor-report-stat small{color:var(--ed-muted)}

/* Order/invoice management is a first-class central commerce component. */
.commerce-order-head{align-items:flex-start}.commerce-order-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.commerce-order-kpi{display:grid;gap:7px;min-height:94px}.commerce-order-kpi span{font-size:var(--ed-font-xs);color:var(--ed-muted)}.commerce-order-kpi strong{font-size:16px;color:var(--ed-text);overflow-wrap:anywhere}.commerce-order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.commerce-order-section{display:grid;gap:13px;align-content:start}.commerce-order-items{grid-column:1/-1}.commerce-status-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.commerce-status-actions form,.commerce-status-actions button{width:100%;margin:0}.commerce-note-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:9px}.commerce-note-form label,.commerce-invoice-form label{display:grid;gap:6px;min-width:0;color:var(--ed-muted);font-size:var(--ed-font-xs);font-weight:800}.commerce-note-form textarea,.commerce-invoice-form :is(input,select,textarea){width:100%;min-width:0;min-height:42px;padding:9px 11px;border:1px solid var(--ed-border);border-radius:12px;background:var(--ed-surface-soft);color:var(--ed-text);font:inherit;outline:0;box-shadow:none}.commerce-note-form textarea{min-height:86px;resize:vertical}.commerce-note-form :is(textarea):focus,.commerce-invoice-form :is(input,select,textarea):focus{border-color:var(--ed-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--ed-primary) 12%,transparent)}.commerce-invoice-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:end}.commerce-invoice-form>.up-btn{min-height:42px}.commerce-invoice-danger{display:flex;align-items:center;gap:9px;padding-top:2px}.commerce-invoice-danger form{margin:0}.commerce-invoice-danger small{color:var(--ed-muted);font-size:var(--ed-font-micro)}.commerce-payment-list{display:grid;gap:9px}.commerce-payment-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;padding:11px 12px;border:1px solid var(--ed-border);border-radius:13px;background:var(--ed-surface-soft)}.commerce-payment-list article>div{min-width:0;display:grid;gap:3px}.commerce-payment-list article>div:last-of-type{justify-items:end}.commerce-payment-list article small{color:var(--ed-muted);font-size:var(--ed-font-micro)}.commerce-payment-list article p{grid-column:1/-1;margin:0;color:var(--ed-muted);font-size:var(--ed-font-micro);overflow-wrap:anywhere}.commerce-detail-table td small{display:block;color:var(--ed-muted);margin-top:3px}

@media(max-width:1000px){.commerce-order-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.commerce-order-grid{grid-template-columns:1fr}}
@media(max-width:820px){
  /* Count/status badge never falls below its title on monitoring cards. */
  .unified-platform .up-section-head:has(>.up-badge){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px;flex-direction:initial}
  .unified-platform .up-section-head:has(>.up-badge)>div{grid-column:1;min-width:0}.unified-platform .up-section-head:has(>.up-badge)>.up-badge{grid-column:2;grid-row:1;margin:0;justify-self:end;align-self:start}
  .unified-platform .up-stat-grid.instructor-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.instructor-report-stat{min-height:76px;padding:11px}.instructor-report-stat b{font-size:var(--ed-font-base)}
  .instructor-review-list>article{gap:10px}.instructor-review-list form.instructor-action-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%}.instructor-review-list form.instructor-action-form input{grid-column:1/-1}.instructor-review-list form.instructor-payout-action-form{grid-template-columns:repeat(3,minmax(0,1fr))}.instructor-review-list form.instructor-payout-action-form input{grid-column:1/-1}
  .commerce-order-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}.commerce-order-head>a{align-self:start}.commerce-order-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.commerce-order-kpi{padding:12px;min-height:78px}.commerce-order-kpi strong{font-size:var(--ed-font-base)}
}
@media(max-width:700px){
  /* Instructor report tables become native cards instead of squeezed horizontal tables. */
  .instructor-report-stack .up-table-wrap{overflow:visible;border:0}.instructor-report-table{display:block;width:100%;min-width:0!important;white-space:normal}.instructor-report-table thead{display:none}.instructor-report-table tbody{display:grid;gap:10px}.instructor-report-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:11px;border:1px solid var(--ed-border);border-radius:15px;background:var(--ed-surface-soft)}.instructor-report-table tbody td{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:7px 8px;border:1px solid var(--ed-border);border-radius:10px;background:var(--ed-surface);text-align:left;overflow-wrap:anywhere;white-space:normal}.instructor-report-table tbody td::before{content:attr(data-label);flex:0 0 auto;color:var(--ed-muted);font-size:var(--ed-font-micro);font-weight:850;white-space:nowrap}.instructor-report-table tbody td:first-child{grid-column:1/-1;text-align:right}.instructor-report-table tbody td:first-child::before{display:none}.instructor-report-table tbody td.instructor-table-actions{grid-column:1/-1;background:transparent}.instructor-report-table tbody td.instructor-table-actions .up-btn,.instructor-report-table tbody td.instructor-table-actions .up-actions{width:100%}.instructor-report-table tbody td.instructor-table-actions .up-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.instructor-report-table tbody tr.instructor-empty-row{display:block}.instructor-report-table tbody tr.instructor-empty-row td{display:block;border:0;text-align:center;background:transparent}.instructor-report-table tbody tr.instructor-empty-row td::before{display:none}
  .commerce-note-form,.commerce-invoice-form{grid-template-columns:1fr}.commerce-note-form>.up-btn,.commerce-invoice-form>.up-btn{width:100%}.commerce-status-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.commerce-payment-list article{grid-template-columns:1fr auto}.commerce-detail-table{min-width:620px}
}
@media(max-width:420px){.commerce-order-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.commerce-status-actions{grid-template-columns:1fr 1fr}.instructor-report-table tbody tr{grid-template-columns:1fr}.instructor-report-table tbody td,.instructor-report-table tbody td:first-child,.instructor-report-table tbody td.instructor-table-actions{grid-column:1}.instructor-report-table tbody td:first-child::before{display:block}.instructor-review-list form.instructor-payout-action-form{grid-template-columns:1fr 1fr}.instructor-review-list form.instructor-payout-action-form .up-btn:last-child{grid-column:1/-1}}

/* Instructor portal: canonical cards, forms, profile and review controls. */
.instructor-dashboard-stat{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;min-height:92px;padding:13px!important}.instructor-dashboard-stat>span{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--ed-primary-soft);color:var(--ed-primary)}.instructor-dashboard-stat>div{min-width:0;display:grid;gap:4px}.instructor-dashboard-stat b{color:var(--ed-text);font-size:var(--ed-font-base);overflow-wrap:anywhere}.instructor-dashboard-stat small{color:var(--ed-muted);font-size:var(--ed-font-micro)}.instructor-comment-card{display:grid;gap:12px}.instructor-comment-body{padding:11px 12px;border:1px solid var(--ed-border);border-radius:13px;background:var(--ed-surface-soft);color:var(--ed-text);line-height:1.9}.instructor-comment-actions{display:grid;grid-template-columns:1fr;gap:10px}.instructor-comment-primary-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:7px!important}.instructor-comment-primary-actions .up-btn{width:100%}.instructor-reply-form{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px!important;align-items:end}.instructor-reply-form label{display:grid;gap:5px;min-width:0;color:var(--ed-muted);font-size:var(--ed-font-micro);font-weight:800}.instructor-reply-form textarea{width:100%;min-width:0;min-height:76px;border:1px solid var(--ed-border);border-radius:12px;background:var(--ed-surface);color:var(--ed-text);padding:9px 10px;resize:vertical;font:inherit}.instructor-reply-form .up-btn{min-height:42px}.instructor-profile-grid,.instructor-support-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}.instructor-commission-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.instructor-commission-summary>div{display:grid;gap:5px;padding:11px;border:1px solid var(--ed-border);border-radius:12px;background:var(--ed-surface-soft)}.instructor-commission-summary small{color:var(--ed-muted);font-size:var(--ed-font-micro)}.instructor-commission-summary b{color:var(--ed-text);font-size:var(--ed-font-md)}.instructor-payout-profile-card{display:grid;gap:12px}.instructor-payout-profile-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.instructor-payout-profile-form .full{grid-column:1/-1}.instructor-support-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.instructor-support-form .full{grid-column:1/-1}.ticket-message-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.ticket-message-head small{margin:0}.instructor-revision-preview-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.instructor-product-preview{display:grid;grid-template-columns:minmax(180px,280px) minmax(0,1fr);gap:16px;align-items:start}.instructor-product-preview-media{aspect-ratio:4/3;display:grid;place-items:center;border:1px solid var(--ed-border);border-radius:16px;background:var(--ed-surface-soft);overflow:hidden}.instructor-product-preview-media img{width:100%;height:100%;object-fit:cover}.instructor-product-preview-description{padding:12px;border:1px solid var(--ed-border);border-radius:13px;background:var(--ed-surface-soft);line-height:1.9}.instructor-product-preview-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;color:var(--ed-muted);font-size:var(--ed-font-micro)}.instructor-product-preview-meta span{padding:6px 8px;border:1px solid var(--ed-border);border-radius:9px;background:var(--ed-surface)}
@media(max-width:760px){.instructor-profile-grid,.instructor-support-layout{grid-template-columns:1fr}.instructor-dashboard-stat{min-height:82px;padding:10px!important}.instructor-reply-form{grid-template-columns:1fr}.instructor-reply-form .up-btn{width:100%}.instructor-payout-profile-form{grid-template-columns:1fr}.instructor-payout-profile-form .full{grid-column:auto}.instructor-product-preview{grid-template-columns:1fr}.instructor-review-list>article>div:first-child{min-width:0}.instructor-revision-preview-actions{display:grid;grid-template-columns:1fr 1fr}.instructor-revision-preview-actions .up-btn:last-child{grid-column:1/-1}}

/* EduNex r55 — unified wallet, payout, instructor and staff-monitoring components. */
.wallet-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.wallet-main-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:16px;align-items:start}.wallet-balance-card,.wallet-bank-section,.wallet-transaction-card,.wallet-withdraw-card{display:grid;gap:14px}.wallet-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.wallet-account-grid,.wallet-transaction-list,.wallet-withdraw-list,.wallet-rule-list{display:grid;gap:10px}.wallet-rule-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--ed-border);border-radius:13px;background:var(--ed-surface-soft);color:var(--ed-text)}.wallet-rule-row>div{min-width:0;display:grid;gap:4px}.wallet-rule-row small{color:var(--ed-muted);font-size:var(--ed-font-micro);overflow-wrap:anywhere}.wallet-rule-row form{display:flex;align-items:center;gap:6px;margin:0}.wallet-rule-row .up-btn,.wallet-rule-row .up-icon-btn{margin:0;flex:0 0 auto}.wallet-account-row,.wallet-transaction-row,.wallet-withdraw-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--ed-border);border-radius:14px;background:var(--ed-surface-soft);color:var(--ed-text)}.wallet-account-row>div:first-child,.wallet-transaction-row>div:first-child,.wallet-withdraw-row>div:first-child{min-width:0;display:grid;gap:4px}.wallet-account-row small,.wallet-transaction-row small,.wallet-withdraw-row small{color:var(--ed-muted);overflow-wrap:anywhere}.wallet-account-row .up-actions{margin:0;display:flex;align-items:center;gap:6px;flex-wrap:nowrap}.wallet-account-editor{border:1px dashed var(--ed-border);border-radius:16px;background:var(--ed-surface-soft);padding:12px}.wallet-account-editor>summary{cursor:pointer;font-weight:900;color:var(--ed-text);list-style:none}.wallet-account-editor>summary::-webkit-details-marker{display:none}.wallet-bank-form,.wallet-rule-form,.wallet-adjust-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.wallet-bank-form label,.wallet-rule-form label,.wallet-adjust-form label{display:grid;gap:6px;color:var(--ed-muted);font-size:var(--ed-font-xs);font-weight:800}.wallet-bank-form :is(input,select,textarea),.wallet-rule-form :is(input,select,textarea),.wallet-adjust-form :is(input,select,textarea){width:100%;min-width:0;min-height:44px;padding:9px 11px;border:1px solid var(--ed-border);border-radius:12px;background:var(--ed-surface);color:var(--ed-text);font:inherit;outline:0}.wallet-bank-form :is(input,select,textarea):focus,.wallet-rule-form :is(input,select,textarea):focus,.wallet-adjust-form :is(input,select,textarea):focus{border-color:var(--ed-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--ed-primary) 12%,transparent)}.wallet-bank-form .full,.wallet-rule-form .full,.wallet-adjust-form .full,.wallet-iban-field{grid-column:1/-1;width:100%}.wallet-iban-field input{width:100%}.bank-card-slider{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 8px;overscroll-behavior-inline:contain;scrollbar-width:none}.bank-card-slider::-webkit-scrollbar{display:none}.verified-bank-card{flex:0 0 min(360px,88%);scroll-snap-align:center;display:grid;gap:10px;min-height:175px;padding:18px;border:1px solid color-mix(in srgb,var(--ed-primary) 30%,var(--ed-border));border-radius:20px;background:linear-gradient(135deg,color-mix(in srgb,var(--ed-primary) 15%,var(--ed-surface)),var(--ed-surface));color:var(--ed-text);box-shadow:0 12px 28px color-mix(in srgb,var(--ed-primary) 8%,transparent)}.verified-bank-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px}.verified-bank-top>span:first-child{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--ed-primary);color:#fff}.verified-bank-card strong,.verified-bank-card em{direction:ltr;text-align:left;letter-spacing:.06em;overflow-wrap:anywhere}.verified-bank-card em{font-style:normal;color:var(--ed-muted);font-size:var(--ed-font-xs)}.verified-bank-card small{color:var(--ed-muted)}.academy-slider-dots[data-bank-card-dots]{display:flex;justify-content:center;gap:7px;margin-top:0}.academy-slider-dots[data-bank-card-dots] button{width:8px;height:8px;border:0;border-radius:999px;background:color-mix(in srgb,var(--ed-muted) 35%,transparent);padding:0;transition:.2s}.academy-slider-dots[data-bank-card-dots] button.active{width:28px;background:var(--ed-primary)}
.cart-wallet-box{display:grid;gap:8px;padding:12px;border:1px solid var(--ed-border);border-radius:14px;background:var(--ed-surface-soft)}.cart-checkout-options{display:grid;gap:10px}.profile-wallet-link-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin-top:16px}.profile-wallet-link-card p{margin:4px 0 0;color:var(--ed-muted)}
.section-visibility-switches{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.section-visibility-switches .up-switch-row{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:6px 9px;border:1px solid var(--ed-border);border-radius:10px;background:var(--ed-surface-soft);color:var(--ed-text)}.section-visibility-switches input{width:17px;height:17px}
.instructor-dashboard-grid>.up-card,.instructor-product-card,.instructor-sales-card{min-width:0}.instructor-dashboard-grid .up-section-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px}.instructor-dashboard-grid .up-section-head>div{min-width:0}.instructor-dashboard-grid .up-section-head>.up-btn{grid-column:2;grid-row:1;justify-self:end;align-self:start;width:auto;white-space:nowrap}.instructor-product-card{display:grid;gap:14px}.instructor-product-card>.up-kv{margin:0}.instructor-product-card>.up-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding-top:12px;border-top:1px solid var(--ed-border)}.instructor-product-card>.up-actions .up-btn{width:100%;margin:0}.instructor-sales-card{margin-top:18px;padding:18px}.instructor-sales-card .up-table-wrap{margin-top:4px}.instructor-admin-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.instructor-admin-actions>*{min-width:0}.instructor-admin-actions form{margin:0}.instructor-admin-actions .up-btn{width:100%;margin:0}.instructor-review-list{gap:16px}.instructor-review-list>article{margin:0}.instructor-payout-action-form{gap:8px!important}
.staff-quality-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.product-review-card .review-rating,.academy-review-card .review-rating,.academy-comment-rating{display:inline-flex;align-items:center;gap:4px;line-height:1;white-space:nowrap;color:#b7791f}.product-review-card .up-section-head,.academy-review-card .up-section-head{align-items:flex-start}
@media(max-width:900px){.wallet-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-main-grid,.wallet-history-grid{grid-template-columns:1fr}.instructor-sales-card{padding:14px}}
@media(max-width:620px){.wallet-rule-row{grid-template-columns:1fr}.wallet-rule-row form{justify-content:flex-start}.wallet-bank-form,.wallet-rule-form,.wallet-adjust-form{grid-template-columns:1fr}.wallet-bank-form .full,.wallet-rule-form .full,.wallet-adjust-form .full,.wallet-iban-field{grid-column:auto}.wallet-account-row,.wallet-transaction-row,.wallet-withdraw-row{grid-template-columns:1fr}.wallet-account-row .up-actions{justify-content:flex-start}.verified-bank-card{flex-basis:92%}.profile-wallet-link-card{grid-template-columns:1fr auto}.instructor-dashboard-grid .up-section-head{grid-template-columns:minmax(0,1fr) auto}.instructor-dashboard-grid .up-section-head>.up-btn{padding-inline:9px}.instructor-product-card>.up-actions{grid-template-columns:1fr 1fr}.instructor-admin-actions{grid-template-columns:1fr 1fr}}

/* EduNex r56 — canonical search, accordion and wallet components. */
.live-user-search{display:grid;gap:7px;position:relative;min-width:0;width:100%}.live-user-search-label{color:var(--ed-muted);font-size:var(--ed-font-xs);font-weight:800}.live-user-search-control{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-height:46px;padding:0 11px;border:1px solid var(--ed-border);border-radius:12px;background:var(--ed-surface);color:var(--ed-text)}.live-user-search-control:focus-within{border-color:var(--ed-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--ed-primary) 12%,transparent)}.live-user-search-control svg{width:20px;height:20px;color:var(--ed-muted)}.live-user-search-control input{border:0!important;box-shadow:none!important;outline:0!important;background:transparent!important;color:var(--ed-text)!important;width:100%!important;min-width:0!important;min-height:42px!important;padding:0!important}.live-user-search-spinner{width:16px;height:16px;border:2px solid var(--ed-border);border-top-color:var(--ed-primary);border-radius:50%;animation:edSpin .7s linear infinite}.live-user-search-results{position:absolute;z-index:35;inset-inline:0;top:calc(100% + 4px);max-height:260px;overflow:auto;padding:6px;border:1px solid var(--ed-border);border-radius:14px;background:var(--ed-surface);box-shadow:0 16px 36px rgba(15,23,42,.14)}.live-user-result{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;text-align:right;border:0;border-radius:10px;padding:9px 10px;background:transparent;color:var(--ed-text);cursor:pointer}.live-user-result:hover,.live-user-result:focus-visible{background:var(--ed-primary-soft);outline:0}.live-user-result span{display:grid;gap:2px;min-width:0}.live-user-result b,.live-user-result small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.live-user-result small{color:var(--ed-muted);font-size:var(--ed-font-micro)}.live-user-result em{font-style:normal;color:var(--ed-primary);font-size:var(--ed-font-micro);white-space:nowrap}.live-user-search-empty{padding:12px;text-align:center;color:var(--ed-muted);font-size:var(--ed-font-xs)}.live-user-search-empty.danger{color:var(--ed-danger)}.live-user-search-selected{display:flex;gap:6px;flex-wrap:wrap}.live-user-chip{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;max-width:100%;padding:6px 8px;border:1px solid var(--ed-border);border-radius:11px;background:var(--ed-primary-soft);color:var(--ed-text)}.live-user-chip>span{display:grid;gap:1px;min-width:0}.live-user-chip b,.live-user-chip small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-user-chip small{color:var(--ed-muted);font-size:var(--ed-font-micro)}.live-user-chip button{width:25px;height:25px;padding:0;border:0;border-radius:8px;background:color-mix(in srgb,var(--ed-danger) 10%,transparent);color:var(--ed-danger);font:inherit;cursor:pointer}

.ed-accordion{display:block;width:100%;margin:0;border:1px dashed var(--ed-border);border-radius:15px;background:var(--ed-surface-soft);overflow:hidden;color:var(--ed-text)}.ed-accordion+ .ed-accordion{margin-top:10px}.ed-accordion>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:54px;padding:10px 12px;list-style:none;cursor:pointer;color:var(--ed-text);font-weight:900}.ed-accordion>summary::-webkit-details-marker{display:none}.ed-accordion-icon{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--ed-border);border-radius:10px;background:var(--ed-surface);color:var(--ed-primary);font-size:20px;line-height:1;transition:transform .18s ease}.ed-accordion[open]>.ed-accordion-icon,.ed-accordion[open]>summary .ed-accordion-icon{transform:rotate(45deg)}.ed-accordion-body{padding:12px;border-top:1px solid var(--ed-border);background:var(--ed-surface)}

.ed-toggle-field{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"copy toggle"!important;align-items:center!important;gap:12px!important;min-height:58px!important;padding:9px 11px!important;border:1px solid var(--ed-border)!important;border-radius:13px!important;background:var(--ed-surface-soft)!important;color:var(--ed-text)!important}.ed-toggle-field>span{grid-area:copy;display:grid;gap:2px;align-self:center}.ed-toggle-field>span b{font-size:var(--ed-font-xs)}.ed-toggle-field>span small{font-size:var(--ed-font-micro);color:var(--ed-muted)}.ed-toggle-field input{position:absolute;opacity:0;pointer-events:none;width:1px!important;height:1px!important;min-height:0!important}.ed-toggle-field i{grid-area:toggle;position:relative;display:block;width:46px;height:26px;border-radius:999px;background:var(--ed-border);transition:.18s;cursor:pointer;align-self:center;justify-self:end}.ed-toggle-field i::after{content:'';position:absolute;top:3px;inset-inline-start:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.18);transition:.18s}.ed-toggle-field input:checked+i{background:var(--ed-primary)}.ed-toggle-field input:checked+i::after{transform:translateX(-20px)}.ed-toggle-field input:focus-visible+i{box-shadow:0 0 0 3px color-mix(in srgb,var(--ed-primary) 18%,transparent)}

.wallet-admin-stack{display:grid;gap:18px}.wallet-admin-stack>.up-card{margin:0}.wallet-unified-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:12px;width:100%;min-width:0}.wallet-unified-form>*{min-width:0}.wallet-unified-form label{display:grid;gap:6px;color:var(--ed-muted);font-size:var(--ed-font-xs);font-weight:800;min-width:0}.wallet-unified-form :is(input,select,textarea){width:100%;max-width:none;min-width:0;min-height:44px;padding:9px 11px;border:1px solid var(--ed-border);border-radius:12px;background:var(--ed-surface);color:var(--ed-text);font:inherit;outline:0;box-sizing:border-box}.wallet-unified-form textarea{min-height:88px;resize:vertical}.wallet-unified-form :is(input,select,textarea):focus{border-color:var(--ed-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--ed-primary) 12%,transparent)}.wallet-unified-form .full{grid-column:1/-1!important;width:100%!important;max-width:none!important}.wallet-unified-form .live-user-search{grid-column:1/-1}.wallet-form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.wallet-form-actions.three{grid-template-columns:repeat(3,minmax(0,1fr))}.wallet-form-actions>.up-btn{width:100%;margin:0}.wallet-admin-review-grid{display:grid;gap:12px}.wallet-review-card{display:grid;gap:10px;padding:12px;border:1px solid var(--ed-border);border-radius:14px;background:var(--ed-surface-soft)}.wallet-review-card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px}.wallet-review-card-head>div{display:grid;gap:4px;min-width:0}.wallet-review-card-head small{color:var(--ed-muted);overflow-wrap:anywhere}.wallet-rule-edit-list{display:grid;gap:10px;margin-top:12px}.wallet-rule-summary{display:grid;gap:3px;min-width:0}.wallet-rule-summary small{color:var(--ed-muted);font-size:var(--ed-font-micro);font-weight:600;overflow-wrap:anywhere}.wallet-delete-row{display:flex;justify-content:flex-start;margin-top:9px}.wallet-user-meta{display:block;margin-top:3px;color:var(--ed-muted)}.wallet-main-grid{margin-bottom:18px}.wallet-bank-section{margin-top:18px!important}.wallet-history-grid{margin-top:18px}.wallet-account-editor{padding:0!important}.wallet-account-grid+.wallet-account-editor,.bank-card-slider+.academy-slider-dots+.wallet-account-grid,.academy-slider-dots+.wallet-account-editor,.wallet-account-grid+.ed-accordion{margin-top:12px}.section-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.section-head-actions .up-btn{width:auto;margin:0}.wallet-stat-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-balance-card{grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:10px!important;min-height:96px}.wallet-stat-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--ed-primary-soft);color:var(--ed-primary)}.wallet-stat-copy{display:grid;gap:4px;min-width:0}.wallet-stat-copy b{font-size:var(--ed-font-sm);color:var(--ed-text);overflow-wrap:anywhere}.wallet-stat-copy small{font-size:var(--ed-font-micro);color:var(--ed-muted);line-height:1.8;overflow-wrap:anywhere}.wallet-quick-card{display:grid;gap:12px;margin-block:16px}.wallet-quick-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.wallet-quick-metrics>div{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:9px;padding:10px;border:1px solid var(--ed-border);border-radius:12px;background:var(--ed-surface-soft)}.wallet-quick-metrics>div>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:var(--ed-primary-soft);color:var(--ed-primary)}.wallet-quick-metrics>div>div{display:grid;gap:2px;min-width:0}.wallet-quick-metrics b{font-size:var(--ed-font-xs);color:var(--ed-text)}.wallet-quick-metrics small{font-size:var(--ed-font-micro);color:var(--ed-muted)}

/* Keep staff monitoring operations compact; never let action controls create horizontal overflow. */

.instructor-admin-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}.instructor-admin-actions>*,.instructor-admin-actions form,.instructor-admin-actions .up-btn{width:100%!important;min-width:0;margin:0}.instructor-admin-actions .impersonation-switch-form{width:100%}.instructor-admin-actions .impersonation-switch-form button{width:100%}

/* Profile title row badges are part of the title row, not a separate vertical block. */
.staff-role-badges{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin:0!important}.compact-title-row>.staff-role-badges{grid-column:2;align-self:start}

@media(max-width:620px){.wallet-unified-form{grid-template-columns:1fr}.wallet-unified-form .full,.wallet-unified-form .live-user-search{grid-column:1!important}.wallet-form-actions,.wallet-form-actions.three{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-form-actions.three .up-btn:last-child{grid-column:1/-1}.wallet-stat-grid-compact,.wallet-quick-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-balance-card{min-height:88px;padding:10px!important}.wallet-stat-icon{width:36px;height:36px}.wallet-stat-copy b{font-size:var(--ed-font-micro)}.wallet-stat-copy small{font-size:var(--ed-font-micro)}.section-head-actions{justify-content:flex-start}.wallet-review-card-head{grid-template-columns:1fr auto}.verified-bank-card{flex-basis:92%}.live-user-search-results{max-height:220px}.ed-toggle-field input:checked+i::after{transform:translateX(-20px)}}
@media(max-width:390px){.wallet-stat-grid-compact,.wallet-quick-metrics{grid-template-columns:1fr 1fr}.wallet-balance-card{grid-template-columns:auto minmax(0,1fr)!important}.wallet-form-actions{grid-template-columns:1fr 1fr}}

/* EduNex r56 final — compact monitoring, demo actions and a shared accordion contract. */
.demo-data-head{align-items:flex-start}.demo-revision-box{display:grid;gap:8px;justify-items:end;min-width:min(100%,360px)}.demo-revision-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%}.demo-revision-actions form,.demo-revision-actions .up-btn{width:100%;margin:0}.demo-accounts-card,.demo-explainer-card{margin-top:16px!important}
@media(max-width:520px){.demo-data-head{grid-template-columns:1fr!important}.demo-revision-box{width:100%;justify-items:stretch}.demo-revision-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-revision-actions .up-btn{padding-inline:6px;font-size:var(--ed-font-micro)}}

/* Canonical responsive contracts for wallet, selectors and monitoring. */
.live-user-search-results{position:static;z-index:auto;inset:auto;top:auto;width:100%;max-height:260px;margin-top:1px;overflow:auto;box-sizing:border-box;box-shadow:0 10px 24px rgba(15,23,42,.10)}
.live-user-search-results[hidden]{display:none}.live-user-search-selected:empty{display:none}
.ed-toggle-field{position:relative;cursor:pointer;user-select:none}.ed-toggle-field input{position:absolute!important;opacity:0!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;pointer-events:auto!important;cursor:pointer;z-index:2}.ed-toggle-field i{pointer-events:none}.ed-toggle-field input:checked+i::after{transform:none;inset-inline-start:23px}
.wallet-admin-stack,.wallet-main-grid,.wallet-history-grid{gap:18px}.wallet-main-grid{margin-top:18px;margin-bottom:18px}.wallet-admin-stack>.up-card,.wallet-main-grid>.up-card,.wallet-history-grid>.up-card,.wallet-bank-section{min-width:0;overflow:hidden}
.wallet-unified-form,.wallet-unified-form label,.wallet-unified-form .field{width:100%;max-width:none;box-sizing:border-box}.wallet-unified-form label.full{display:grid!important;grid-template-columns:minmax(0,1fr)!important}.wallet-unified-form textarea{display:block;width:100%!important;max-width:none!important;min-height:108px!important;margin:0!important;box-sizing:border-box!important}
.wallet-rule-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.wallet-rule-quick-actions form,.wallet-rule-quick-actions .up-btn{width:100%;min-width:0;margin:0}.wallet-rule-quick-actions .up-btn{justify-content:center;padding-inline:7px}
.wallet-bank-section>.up-section-head,.compact-title-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px}.wallet-bank-section>.up-section-head>div:first-child,.compact-title-row>div:first-child{min-width:0}.wallet-bank-section .section-head-actions{grid-column:2;grid-row:1;justify-self:end;align-self:start;flex-wrap:nowrap}.wallet-bank-section .section-head-actions .up-btn{order:2}.wallet-bank-section .section-head-actions .up-badge{order:1}
.wallet-stat-grid-compact{gap:12px}.wallet-balance-card{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;min-height:82px!important;padding:14px!important}.wallet-stat-copy{align-self:center}.wallet-stat-copy b{display:block}.wallet-stat-copy small{display:block}.wallet-history-grid .up-card{align-content:start}.wallet-transaction-list,.wallet-withdraw-list{gap:9px}.wallet-transaction-row,.wallet-withdraw-row{margin:0}.wallet-transaction-copy{display:grid;gap:3px;min-width:0}.wallet-transaction-copy b{font-size:var(--ed-font-sm)}.wallet-transaction-description{color:var(--ed-muted);line-height:1.8;overflow-wrap:anywhere}.wallet-transaction-copy time{color:var(--ed-muted);font-size:var(--ed-font-micro)}.wallet-transaction-amount{display:grid;gap:1px;justify-items:end;font-size:var(--ed-font-md);white-space:nowrap}.wallet-transaction-amount small{font-size:var(--ed-font-micro);color:currentColor}.wallet-transaction-amount.positive{color:var(--ed-success,#159455)}.wallet-transaction-amount.negative{color:var(--ed-danger,#d92d20)}
.compact-title-row>.staff-role-badges,.compact-title-row>span.up-badge,.compact-title-row>a,.compact-title-row>.up-btn{grid-column:2;grid-row:1;justify-self:end;align-self:start}.staff-role-badges{justify-content:flex-start}.wallet-quick-card>.compact-title-row>a{white-space:nowrap}
.instructor-admin-actions>.up-btn:first-child{grid-column:auto!important}.instructor-admin-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}.instructor-admin-actions>*{grid-column:auto!important}
.announcement-selected-users:not([hidden]){display:block;width:100%}.announcement-selected-users .live-user-search{width:100%}
.demo-revision-primary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:7px;width:100%}.demo-revision-primary>*{min-width:0}.demo-revision-primary form,.demo-revision-primary .up-btn{width:100%;margin:0}.demo-revision-primary .up-badge{display:flex;align-items:center;justify-content:center;white-space:normal;text-align:center}.demo-revision-actions{grid-template-columns:1fr}.demo-revision-actions .up-btn{width:100%}
html.unified-dark .live-user-search-results,body.dark-ui .live-user-search-results{box-shadow:0 12px 30px rgba(0,0,0,.35)}
@media(max-width:620px){.wallet-main-grid,.wallet-history-grid,.wallet-admin-stack{gap:14px}.wallet-main-grid{margin-top:14px;margin-bottom:14px}.wallet-bank-section{margin-top:14px!important}.wallet-bank-section>.up-section-head,.compact-title-row{grid-template-columns:minmax(0,1fr) auto}.wallet-bank-section .section-head-actions{justify-self:end}.wallet-bank-section .section-head-actions .up-badge{display:none}.wallet-stat-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.wallet-balance-card{padding:10px!important;gap:8px!important;min-height:76px!important}.wallet-stat-copy small{line-height:1.55}.wallet-rule-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.ed-toggle-field input:checked+i::after{transform:none;inset-inline-start:23px}.live-user-search-results{max-height:220px}.instructor-admin-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}.wallet-transaction-row{grid-template-columns:minmax(0,1fr) auto;padding:10px}.wallet-history-grid .up-card{padding-inline:12px!important}}
@media(max-width:390px){.wallet-stat-grid-compact,.wallet-quick-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-balance-card{min-height:74px!important}.wallet-rule-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.wallet-rule-quick-actions .up-btn{font-size:var(--ed-font-micro);padding-inline:3px}}

/* Shared wallet summary header used by every authenticated role. */
.wallet-quick-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px;width:100%}.wallet-quick-head>div{grid-column:1;min-width:0}.wallet-quick-head h2{margin:0}.wallet-quick-link{grid-column:2;grid-row:1;width:auto;min-width:0;white-space:nowrap;justify-self:end;align-self:start}

.central-role-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0;padding:12px;border:1px solid var(--ed-border);border-radius:14px}.central-role-picker legend{padding-inline:7px;font-weight:900;color:var(--ed-text)}.central-role-option{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:start;gap:8px!important;padding:9px;border:1px solid var(--ed-border);border-radius:11px;background:var(--ed-surface-soft)}.central-role-option input{width:18px!important;height:18px!important;min-height:0!important;margin-top:2px}.central-role-option>span{display:grid;gap:2px}.central-role-option small{color:var(--ed-muted);line-height:1.7}.central-role-option.is-protected{opacity:.72}@media(max-width:620px){.central-role-picker{grid-template-columns:1fr}}

/* === EduNex r76: real mouse/touch Academy storefront carousel === */
.ed-scroll-interactive{cursor:grab;user-select:none;-webkit-user-select:none;touch-action:pan-y pinch-zoom;scroll-behavior:smooth}.ed-scroll-interactive.is-dragging{cursor:grabbing;scroll-behavior:auto!important;scroll-snap-type:none!important}.academy-store-grid.ed-scroll-interactive{direction:ltr;scroll-padding-inline:12px}.academy-store-grid.ed-scroll-interactive>.academy-store-card-clean{direction:rtl}.academy-store-dots{margin-top:10px}.academy-store-dots[hidden]{display:none!important}
@media(pointer:fine){.academy-store-grid.ed-scroll-interactive{padding-inline:10px}}

/* Conversation Core: the navigation owns its scroll independently from fixed widgets. */
.unified-platform .up-sidebar{display:flex;flex-direction:column;height:100dvh;max-height:100dvh;overflow:hidden}
.unified-platform .up-sidebar>.up-brand,.unified-platform .up-sidebar>.up-sidebar-footer{flex:0 0 auto}
.unified-platform .up-sidebar>.up-nav{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;align-content:start;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;scrollbar-gutter:stable}
@media(max-width:820px){
  .unified-platform .up-sidebar,.unified-platform .up-sidebar.open{top:0!important;bottom:0!important;height:100dvh;max-height:100dvh;z-index:31050!important}
  .unified-platform .up-backdrop.show{z-index:31040!important}
  html.up-sidebar-open .ed-live-chat--floating{visibility:hidden!important;pointer-events:none!important}
}


/* r94 i18n: platform direction follows the selected system language. */
[dir="ltr"] .unified-platform{text-align:left;}
[dir="ltr"] .unified-platform .up-sidebar{border-left:0;border-right:1px solid var(--ed-border);}
[dir="ltr"] .unified-platform .up-table th,[dir="ltr"] .unified-platform .up-table td{text-align:left;}
[dir="ltr"] .unified-platform .up-logout-btn{text-align:left;}
[dir="ltr"] .unified-platform .up-brand button{margin-right:0;margin-left:auto;}
[dir="ltr"] .unified-platform .chance-VERY_HIGH,[dir="ltr"] .unified-platform .chance-ALMOST_CERTAIN{border-right:0;border-left:4px solid #12b76a;}
[dir="ltr"] .unified-platform .chance-MEDIUM{border-right:0;border-left:4px solid #fdb022;}
[dir="ltr"] .unified-platform .chance-LOW,[dir="ltr"] .unified-platform .chance-WEAK{border-right:0;border-left:4px solid #f79009;}
[dir="ltr"] .unified-platform .chance-VERY_LOW,[dir="ltr"] .unified-platform .chance-ALMOST_IMPOSSIBLE{border-right:0;border-left:4px solid #f04438;}
@media(max-width:820px){
  [dir="ltr"] .unified-platform .up-sidebar{right:auto!important;left:0!important;transform:translateX(-105%);}
  [dir="ltr"] .unified-platform .up-sidebar.open{right:auto!important;left:0!important;transform:translateX(0);}
  [dir="ltr"] .unified-platform .up-topbar>div:first-of-type{margin-left:0;margin-right:auto;}
}

/* Shared metric contract: label on the right, value on the left in every viewport. */
.unified-platform .up-stat{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 14px;text-align:start;align-content:center}
.unified-platform .up-stat>span{grid-column:1;min-width:0;text-align:start}
.unified-platform .up-stat>strong,.unified-platform .up-stat>button{grid-column:2;justify-self:end;margin:0;text-align:end}
.unified-platform .up-stat>small,.unified-platform .up-stat>.delta{grid-column:1/-1}
.unified-platform .up-kv>div,.unified-platform .metric-box,.unified-platform .staff-kpi{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;text-align:start}
.unified-platform .up-kv>div>small,.unified-platform .metric-box>span,.unified-platform .staff-kpi>span{display:block;min-width:0;margin:0;text-align:start}
.unified-platform .up-kv>div>b,.unified-platform .metric-box>strong,.unified-platform .staff-kpi>strong{display:block;flex:0 0 auto;margin:0;text-align:end}

/* Neutral dark typography inherits tokens; semantic badges/buttons keep their own colors. */
html.unified-dark .unified-platform :is(.up-card,.up-kv>div,.metric-box,.staff-kpi) :is(h1,h2,h3,h4,h5,h6,strong,b){color:var(--ed-text)}
html.unified-dark .unified-platform :is(.up-stat>span,.up-kv>div>small,.metric-box>span,.staff-kpi>span){color:var(--ed-muted)}

/* Hint bubble: a long explanation sits beside its caption instead of stretching
   the form. Hover on a pointer device, focus (tap) on touch. */
.unified-platform .up-hint{position:relative;display:inline-grid;place-items:center;width:16px;height:16px;margin-inline-start:6px;padding:0;border:1px solid var(--ed-border-strong,#c3c9d4);border-radius:50%;background:var(--ed-bg-alt,#f7f8fb);color:var(--ed-muted,#7b8390);font:inherit;font-size:10px;line-height:1;vertical-align:middle;cursor:help;flex:0 0 auto}
.unified-platform .up-hint:hover,.unified-platform .up-hint:focus-visible{border-color:var(--ed-primary,#3b5bdb);color:var(--ed-primary,#3b5bdb);outline:none}
.unified-platform .up-hint::after{content:attr(data-hint);position:absolute;top:100%;z-index:40;inset-inline-start:auto;max-width:min(280px,70vw);margin-top:6px;padding:8px 10px;border-radius:10px;background:#1f2733;color:#fff;font-size:11px;line-height:1.8;text-align:start;white-space:normal;display:none;pointer-events:none;box-shadow:0 8px 20px rgba(15,23,42,.22)}
.unified-platform .up-hint:hover::after,.unified-platform .up-hint:focus::after,.unified-platform .up-hint:focus-visible::after{display:block}
.unified-platform label:has(>.up-hint),.unified-platform .up-hint-row{display:flex;align-items:center;gap:0;flex-wrap:wrap}
@media(max-width:620px){
  .unified-platform .up-hint::after{max-width:min(260px,86vw)}
}
/* ---------------------------------------------------------------------------
   Form controls. Every text-like control gets the same border, radius and height
   so a "title" box never looks unstyled beside a date box. Width is deliberately
   NOT set here: a control stretches only in the caption-above-field pattern
   (`label > input`), because forcing it everywhere makes each control in an
   inline filter row claim a whole line and the row stacks.
   --------------------------------------------------------------------------- */
.unified-platform :is(.up-card,.up-form-stack,.up-form-grid,.up-grid,.up-filters) :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="range"]):not([type="submit"]):not([type="button"]){
  min-height:38px;
  border:1px solid var(--ed-border,#dfe3ea);
  border-radius:12px;
  padding:7px 11px;
  background:var(--ed-bg,#fff);
  color:inherit;
  font:inherit;
  box-sizing:border-box;
}
.unified-platform :is(.up-form-stack,.up-form-grid) label>:is(input,select,textarea),
.unified-platform .up-card>label>:is(input,select,textarea){width:100%}

/* A file field is one row in its own box: the field name, its tooltip and the
   picker. The tooltip is a sibling of the label, not a child, so clicking it
   cannot open the file dialog. */
.unified-platform .up-file-field{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:2px 0 0;padding:11px 13px;border:1px solid var(--ed-border,#dfe3ea);border-radius:12px;background:var(--ed-bg-alt,#f7f8fb)}
.unified-platform .up-file-field>.up-file-field-label{display:inline-flex;align-items:center;gap:6px;margin:0;color:#475467;font-size:var(--ed-font-sm);font-weight:700;white-space:nowrap}
.unified-platform .up-file-field>input[type="file"]{flex:1 1 200px;width:auto;min-width:0;min-height:38px;padding:6px 10px;border:1px solid var(--ed-border,#dfe3ea);border-radius:10px;background:var(--ed-bg,#fff);color:inherit;font:inherit;font-size:var(--ed-font-sm)}
:is(html.unified-dark,body.dark-ui) .unified-platform .up-file-field{background:rgba(12,18,32,.55);border-color:#334155}
:is(html.unified-dark,body.dark-ui) .unified-platform .up-file-field>.up-file-field-label{color:var(--ed-dark-text,#eef4ff)}
@media(max-width:620px){.unified-platform .up-file-field>input[type="file"]{flex:1 1 100%}}

/* Blocks inside a card keep their distance from each other: a button row must not
   sit on the fields it submits, and a table must not touch the filter above it.
   Only direct children with a preceding sibling take the rhythm, so action groups
   inside table cells and the first block in a card are untouched. */
.unified-platform .up-card>*+:is(.up-form,.up-form-stack,.up-form-grid,.up-inline-form,.up-actions,.up-table-wrap,.up-empty,.up-filters){margin-block-start:14px}

/* An inline row keeps its controls on one line: the text field takes the slack,
   the rest stay their natural width. */
.unified-platform .up-inline-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.unified-platform .up-inline-form>:is(input[type="text"],input[type="search"],input:not([type])){flex:1 1 200px;min-width:0}
.unified-platform .up-inline-form>select{flex:0 1 auto;min-width:150px}
.unified-platform .up-inline-form>.up-btn{flex:0 0 auto}

.unified-platform :is(.up-card,.up-form-stack,.up-form-grid,.up-grid,.up-filters) textarea:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="range"]):not([type="submit"]):not([type="button"]){min-height:96px;line-height:1.8;resize:vertical}
.unified-platform :is(.up-card,.up-form-stack,.up-form-grid,.up-grid,.up-filters) :is(input,select,textarea):focus{
  outline:2px solid var(--ed-primary-soft,#eef2ff);
  border-color:var(--ed-primary,#3b5bdb);
}
.unified-platform :is(.up-card,.up-form-stack,.up-form-grid,.up-grid,.up-filters) :is(input,select,textarea):disabled{
  background:var(--ed-bg-alt,#f7f8fb);
  color:var(--ed-muted,#7b8390);
}

/* A checkbox row is a line of text with a box at its start, not a caption stacked
   above a field. The label rules above exclude `.check-line` for exactly this
   reason, so this rule wins on its own without an override. */
.unified-platform .check-line,
.unified-platform label.check-line{
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  gap:8px;
  line-height:1.75;
  cursor:pointer;
}
.unified-platform .check-line>input[type="checkbox"],
.unified-platform .check-line>input[type="radio"]{
  flex:0 0 auto;
  width:17px;
  height:17px;
  min-height:0;
  margin:4px 0 0;
  padding:0;
  border-radius:5px;
  accent-color:var(--ed-primary,#3b5bdb);
}
