/* Shared workspace system. Existing feature IDs and Bootstrap behavior stay intact. */
body.premium {
  --boss-black: #121516;
  --boss-dark: #16191a;
  --boss-gray: #272c2e;
  --boss-red: #f16b70;
  --boss-cyan: #73d8c1;
  --boss-text: #f5f7f6;
  --boss-text-muted: #abb5b1;
  --boss-border: #353d3b;
  --boss-panel: #1c2121;
  --boss-panel-solid: #1c2121;
  --boss-panel-raised: #262d2c;
  background: #16191a;
  color: var(--boss-text);
  font: 14px/1.55 Inter, system-ui, sans-serif;
}
.premium *, .premium *::before, .premium *::after { letter-spacing: 0; }
.premium [hidden] { display: none !important; }
.premium::before { display: none; }
.premium h1, .premium h2, .premium h3, .premium h4, .premium h5, .premium h6 { font-family: Inter, system-ui, sans-serif; font-weight: 650; color: #f5f7f6; }
.premium h1 { font-size: 30px; }
.premium h2, .premium h5 { font-size: 18px; }
.premium h3, .premium h6 { font-size: 16px; }
.premium a { color: #8ce2cd; }
.premium a:hover { color: #b4f1e1; }
.premium .text-muted, .premium .form-text { color: #abb5b1 !important; }
.premium .text-success { color: #85e0b9 !important; }
.premium .text-danger, .premium .text-primary { color: #ff9096 !important; }
.premium .text-info { color: #8cd9e1 !important; }
.premium :focus-visible { outline: 3px solid #8ce2cd; outline-offset: 3px; }
.premium .btn { border-radius: 6px; font-size: 13px; font-weight: 600; box-shadow: none; transform: none; white-space: normal; }
.premium .btn:hover { transform: none; box-shadow: none; }
.premium .btn-primary { background: #8ce2cd; border-color: #8ce2cd; color: #102b24; }
.premium .btn-primary:hover { background: #b4f1e1; border-color: #b4f1e1; color: #102b24; }
.premium .btn-outline-light, .premium .btn-outline-primary, .premium .btn-outline-secondary { color: #e3eae7; border-color: #505b57; background: transparent; }
.premium .btn-success { background: #255e49; border-color: #398267; color: #e8fff4; }
.premium .btn-warning { background: #ecd287; border-color: #ecd287; color: #332a13; }
.premium .btn-danger { background: #813d45; border-color: #a45961; color: #fff; }
.premium .btn:disabled { opacity: .55; }
.premium .form-control, .premium .form-select, .premium .dropdown-menu { background-color: #222827; color: #eef3f0; border-color: #4b5651; border-radius: 6px; }
.premium .form-control::placeholder { color: #9ca8a2; }
.premium .form-control:focus, .premium .form-select:focus { border-color: #8ce2cd; box-shadow: 0 0 0 3px #8ce2cd20; }
.premium .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e3eae7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.premium .form-select[multiple] { background-image: none; }
.premium .dropdown-item { color: #eef3f0; }
.premium .dropdown-item:hover { background: #343f3a; }
.premium .form-check-input:checked { background-color: #3b9b7e; border-color: #3b9b7e; }
.premium .card { background: #1c2121; border: 1px solid #353d3b; border-radius: 8px; box-shadow: none; }
.premium .card:hover { transform: none; box-shadow: none; }
.premium .card-header { background: transparent; border-bottom: 1px solid #353d3b; padding: 16px; }
.premium .table { --bs-table-bg: transparent; --bs-table-color: #e7eeea; --bs-table-hover-bg: #28342e; --bs-table-hover-color: #fff; color: #e7eeea; table-layout: auto; }
.premium .table th { background: #222a27; color: #b9c5bf; font-size: 11px; text-transform: uppercase; font-weight: 650; padding: 13px 16px; white-space: nowrap; word-break: normal; overflow-wrap: normal; }
.premium .table td { padding: 14px 16px; border-color: #303b35; vertical-align: middle; word-break: normal; overflow-wrap: anywhere; }
.premium .table tbody tr { background: transparent; }
.premium .badge { border-radius: 4px; font-weight: 500; line-height: 1.4; white-space: normal; }
.premium .progress, .premium .xp-track { background: #38413d; border: 0; height: 7px; border-radius: 4px; }
.premium .progress-bar, .premium .xp-fill { background: #8ce2cd; box-shadow: none; }
.premium .level-badge { background: #303a35; color: #e0e9e3; border: 0; border-radius: 4px; padding: 3px 8px; min-width: 0; box-shadow: none; }
.premium .modal-content, .premium .work-dialog { background: #202725; color: #eef4f0; border: 1px solid #56635c; border-radius: 8px; }
.premium .modal-header, .premium .modal-footer { border-color: #3c4841; }
.premium .btn-close { filter: invert(1); }
.app-brandbar { min-height: 66px; padding: 14px max(24px, calc((100% - 1200px)/2)); display: flex; align-items: center; gap: 24px; border-bottom: 1px solid #353d3b; background: #121516; }
.app-brandbar > a:first-child { color: #fff; font-size: 19px; font-weight: 750; text-decoration: none; }
.app-brandbar > a:first-child i { color: #f16b70; margin-right: 8px; }
.app-brandbar > span { color: #98a69e; font-size: 12px; }
.app-brandbar .logout-link { margin-left: auto; display: flex; gap: 8px; color: #c9d4cd; font-size: 12px; text-decoration: none; }
.premium.login-page { min-height: 100dvh; }
.premium .login-card { background: #202725; border: 1px solid #48564c; border-radius: 8px; box-shadow: 0 18px 70px #0003; }
.premium .login-card .logo h1 { font-size: 30px; }
.premium .login-card .logo i { color: #f16b70; }
.premium .login-tab { color: #b5c4bb; }
.premium .login-tab.active { color: #8ce2cd; border-color: #8ce2cd; }
.premium .btn-login { background: #8ce2cd; border-color: #8ce2cd; color: #193629; }
.premium .btn-login:hover { background: #b4f1e1; color: #193629; transform: none; box-shadow: none; }
.premium .password-hint { color: #abb5b1; }
.student-shell { max-width: 1248px; padding: 0 24px; margin: auto; }
.premium .student-header { background: none; box-shadow: none; border: 0; border-radius: 0; padding: 28px 0 22px; margin: 0; align-items: center; }
.premium .student-identity { border: 0; padding: 0; }
.premium .student-identity h1 { font-size: 32px; margin: 5px 0 4px; }
.premium .student-identity p { color: #b9c8bf; font-weight: 400; margin: 0; }
.premium .student-kicker { color: #9aafa3; text-transform: uppercase; font-size: 10px; font-weight: 700; margin-bottom: 8px; }
.context-year { color: #aebcb3; font-size: 12px; }
.premium .student-account-switcher { margin: 0 0 0 auto; padding: 0; border: 0; background: none; display: block; }
.premium .student-account-label { display: block; font-size: 11px; color: #aebcb3; margin-bottom: 6px; }
.premium .student-account-options { display: flex; flex-wrap: wrap; gap: 4px; }
.premium .student-account-tab { color: #bfcac4; background: #242c28; border: 1px solid #3e4b43; border-radius: 5px; padding: 8px 13px; font-size: 12px; font-weight: 600; }
.premium .student-account-tab.active { background: #dcece2; color: #173a2a; border-color: #dcece2; }
.premium .student-section-nav { position: static; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 24px; background: none; border: 0; border-bottom: 1px solid #3c4740; border-radius: 0; margin: 0 0 24px; padding: 0; box-shadow: none; }
.premium .student-section-nav a { display: inline-flex; flex-shrink: 0; align-items: center; gap: 8px; color: #9facA4; border: 0; border-bottom: 2px solid transparent; background: none; border-radius: 0; padding: 12px 0; font-size: 13px; text-decoration: none; box-shadow: none; }
.premium .student-section-nav a.active { color: #a5eed7; border-bottom-color: #8ce2cd; }
.student-view { min-height: 380px; }
.account-metrics { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; padding: 6px 0 26px; border-bottom: 1px solid #353d3b; }
.account-metrics > div { display: flex; flex-direction: column; gap: 5px; border-left: 1px solid #353d3b; padding-left: 28px; min-width: 0; }
.account-metrics > div:first-child { border: 0; padding: 0; }
.account-metrics span, .account-metrics a { font-size: 12px; color: #b2bfb7; }
.account-metrics strong { font-size: 34px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.3; }
.account-metrics #student-level { font-size: 24px; background: none !important; color: #eceee8 !important; }
.account-metrics #student-shares { color: #a5eed7; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 32px; padding: 24px 0; border-bottom: 1px solid #353d3b; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.section-heading h2, .section-heading h3 { margin: 0; }
.section-heading a { font-size: 12px; white-space: nowrap; }
.chart-frame { position: relative; height: 240px; }
.next-move { border-left: 1px solid #353d3b; padding-left: 32px; }
.career-emblem { width: 48px; height: 48px; border: 1px solid #b9a46d; background: #363222; color: #ebd48f; border-radius: 8px; display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; }
.next-move h3 { font-size: 20px; }
.next-move .progress { margin: 16px 0 10px; }
.next-move p { font-size: 12px; margin-bottom: 8px; }
.overview-bottom { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; padding: 24px 0; }
.bonus-section { min-width: 0; }
.bonus-section small { font-size: 11px; display: block; margin-top: 12px; }
.premium .investment-projection-row { background: none; border: 0; border-radius: 0; padding: 0; }
.premium .investment-projection-amount strong { font-size: 28px; color: #a5eed7; }
.status-pill { font-size: 11px; background: #2e3f35; color: #b6ebc7; padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.work-preview { display: grid; grid-template-columns: 144px 1fr; gap: 20px; align-items: center; border-left: 1px solid #353d3b; padding-left: 32px; }
.work-preview img { width: 144px; height: 120px; object-fit: cover; border-radius: 6px; }
.work-preview p { color: #b2bfb7; font-size: 12px; }
.work-preview h2 { font-size: 18px; }
.app-footer { display: flex; justify-content: space-between; color: #85968b; font-size: 11px; padding: 24px 0; border-top: 1px solid #353d3b; margin-top: 20px; }
.premium .corporate-ladder { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; }
.premium .ladder-level { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 0; border: 0; border-bottom: 1px solid #353d3b; border-radius: 0; background: none; box-shadow: none; opacity: 1; text-align: left; margin: 0; min-height: 90px; }
.premium .ladder-level::before { display: none; }
.premium .ladder-level.active { color: #a5eed7; background: none; }
.ladder-medal { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border: 1px solid #596b5e; border-radius: 8px; color: #d2dfd5; }
.ladder-level.active .ladder-medal { background: #a5eed7; color: #15382a; }
.ladder-level small { color: #aebcb3; display: block; font-size: 12px; }
.ladder-level .status-pill { margin-left: auto; }
.rank-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.rank-tabs button { padding: 9px 14px; border: 1px solid #48534c; border-radius: 6px; background: transparent; color: #bcc9c0; font-size: 13px; }
.rank-tabs button[aria-selected="true"] { background: #deece2; color: #203b29; border-color: #deece2; }
.premium .leaderboard-arena { background: none; border: 0; padding: 0; box-shadow: none; }
.premium .podium-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: none; border: 0; padding: 0; gap: 16px; }
.premium .podium-card { background: #252a25; border: 1px solid #4b5144; box-shadow: none; border-radius: 8px; padding: 18px; min-height: 150px; transform: none; order: initial; }
.premium .podium-card.rank-1 { border-color: #ad975c; background: #302d22; }
.premium .podium-rank { height: 28px; width: 28px; font-size: 13px; box-shadow: none; }
.premium .podium-name { font-size: 14px; margin-top: 12px; }
.premium .podium-score { font-size: 26px; margin: 6px 0 0; }
.premium .podium-meta { font-size: 11px; }
.premium .podium-card .xp-track { display: none; }
.premium .esport-list { gap: 0; }
.premium .esport-row { grid-template-columns: 32px minmax(0,1fr) 90px; gap: 14px; min-height: 64px; border: 0; border-bottom: 1px solid #354039; border-radius: 0; background: none; padding: 10px 12px; box-shadow: none; }
.premium .esport-row.current { background: #233e32; border-color: #426851; }
.premium .esport-row .xp-track { display: none; }
.premium .esport-row .mt-2 { margin-top: 2px !important; }
.premium .esport-row .rank-chip { background: none; border: 0; font-size: 12px; }
.premium .esport-score { font-size: 16px; }
.rank-position { padding: 12px 16px; background: #233e32; margin-bottom: 18px; border-left: 3px solid #8ce2cd; }
.work-section-heading { margin: 28px 0 16px; }
.work-section-heading i { color: #9bd9c3; margin-right: 6px; }
.opportunity-grid, .reward-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.premium .student-opportunity-card, .premium .store-item { background: #202725; border: 1px solid #3d4841; border-radius: 8px; padding: 20px; margin: 0; display: flex; flex-direction: column; min-width: 0; }
.opportunity-icon { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; font-size: 20px; color: #a5eed7; background: #30483a; margin-bottom: 18px; }
.student-opportunity-card h3 { margin: 0 0 8px; }
.student-opportunity-card p { color: #b9c7bd; font-size: 12px; line-height: 1.65; white-space: pre-line; }
.opportunity-pay { font-size: 20px; font-weight: 650; color: #f2dfa2; margin: 8px 0; }
.opportunity-pay small { font-size: 11px; color: #b9c7bd; font-weight: 400; }
.opportunity-footer { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.empty-work { grid-column: 1/-1; padding: 24px 0; color: #abb5b1; }
.reward-art { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; margin-bottom: 18px; }
.work-dialog { max-width: 540px; width: calc(100% - 32px); padding: 24px; }
.work-dialog::backdrop { background: #000a; }
.premium .sidebar { position: fixed; top: 0; left: 0; height: 100dvh; overflow-y: auto; width: 216px; background: #121516; border-right: 1px solid #353d3b; box-shadow: none; }
.premium .sidebar .logo { padding: 28px 18px; text-align: left; border-color: #353d3b; }
.premium .sidebar .logo h4 { font-size: 17px; }
.premium .sidebar .logo h4, .premium .main-content h1, .premium .main-content h2, .premium .main-content h3, .premium .main-content h4, .premium .main-content h5 { font-family: Inter, system-ui, sans-serif; }
.premium .student-opportunity-card::before { display: none; }
.premium .sidebar .logo i { color: #f16b70; }
.premium .sidebar .nav-link { border-radius: 5px; margin: 3px 10px; padding: 11px 12px; font-size: 13px; color: #abb9b0; background: transparent; border: 0; }
.premium .sidebar .nav-link.active { background: #293a30; color: #b4efd5; box-shadow: none; border: 0; }
.premium .main-content { margin-left: 216px; width: calc(100% - 216px); padding: 0 28px 28px; }
.workspace-context { position: sticky; top: 0; z-index: 101; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 0; margin-bottom: 24px; background: #16191a; border-bottom: 1px solid #3a463d; }
.workspace-context label { font-size: 11px; color: #acbdb1; }
.workspace-context select { max-width: 380px; font-size: 13px; }
.workspace-context .context-controls { display: flex; gap: 10px; align-items: center; }
.premium .dashboard-toolbar h1 { font-size: 24px; }
.premium .dashboard-toolbar { gap: 16px; flex-wrap: wrap; }
.premium .stats-card { border: 0; border-left: 2px solid #597463; background: none; border-radius: 0; }
.premium .stats-card i { font-size: 20px; opacity: .8; }
.premium .stats-card::after { display: none; }
.premium .table th, .premium .table td { display: table-cell; }
.premium table.table thead th, .premium table.table tbody td { min-width: 0; max-width: none; width: auto; text-align: left !important; }
.premium table.table thead th { background: #222a27 !important; color: #b9c5bf !important; border-bottom: 1px solid #48564c; }
.premium table.table tbody tr { background: transparent !important; }
.premium table.table tbody td { background: transparent; }
.premium .level-badge { background: #303a35 !important; color: #e0e9e3 !important; }
.premium .student-identity { padding-left: 0; }
.premium .progress { height: 7px !important; }
.workspace-context .context-year { white-space: nowrap; }
.premium .mobile-menu-toggle { box-shadow: none; background: #293a30; color: #b4efd5; border: 1px solid #48594d; }
.premium .stats-card .card-body { padding: 8px 18px; }
.premium #dashboard-view > .card, .premium #work-view .card, .premium #classes-view .card, .premium #leaderboard-view > .card, .premium #store-management-view > .card, .premium #store-requests-view > .card { background: none; border: 0; border-radius: 0; }
.premium #dashboard-view > .card > .card-body, .premium #work-view .card-body { padding-left: 0; padding-right: 0; }
.premium #work-view .card-header { padding-left: 0; }
.approval-row { padding: 18px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; border-bottom: 1px solid #354039; }
.approval-row p { margin: 4px 0; font-size: 12px; color: #b5c5b9; overflow-wrap: anywhere; }
.approval-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.approval-count { margin-left: 6px; padding: 1px 5px; background: #3c5947; color: #d0f4da; border-radius: 4px; font-size: 11px; }
.template-library { border-bottom: 1px solid #3a463d; margin-bottom: 24px; padding-bottom: 20px; }
.template-library summary { cursor: pointer; font-size: 15px; font-weight: 650; }
.template-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; padding-top: 20px; }
.template-item { border: 1px solid #3d4841; border-radius: 8px; padding: 18px; background: #202725; }
.template-item p { font-size: 12px; color: #b9c7bd; }
@media (max-width: 1000px) {
  .opportunity-grid, .reward-grid, .template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-bottom { grid-template-columns: 1fr; }
  .work-preview { border-left: 0; border-top: 1px solid #353d3b; padding: 24px 0 0; }
  .premium .dashboard-actions { flex-wrap: wrap; }
}
@media (max-width: 991px) { .workspace-context { padding-left: 46px; } }
@media (max-width: 767px) {
  .app-brandbar { padding: 14px 18px; gap: 10px; }
  .app-brandbar > span { display: none; }
  .student-shell { padding: 0 18px; }
  .premium .student-header { align-items: flex-start; gap: 20px; padding: 22px 0; }
  .premium .student-account-switcher { margin: 0; width: 100%; }
  .premium .student-section-nav { gap: 20px; }
  .account-metrics { gap: 14px; grid-template-columns: 1fr 1fr; }
  .account-metrics > div { padding-left: 16px; }
  .account-metrics > div:last-child { grid-column: 1/-1; border-left: 0; padding: 14px 0 0; border-top: 1px solid #353d3b; }
  .account-metrics strong { font-size: 29px; }
  .overview-grid { grid-template-columns: 1fr; gap: 24px; }
  .next-move { border: 0; border-top: 1px solid #353d3b; padding: 24px 0 0; }
  .chart-frame { height: 220px; }
  .work-preview { grid-template-columns: 100px minmax(0,1fr); gap: 14px; }
  .work-preview img { width: 100px; height: 100px; }
  .work-preview .btn { font-size: 12px; }
  .premium .corporate-ladder { grid-template-columns: 1fr; }
  .premium .podium-grid { gap: 8px; }
  .premium .podium-card { padding: 12px 9px; }
  .premium .podium-name { font-size: 12px; overflow-wrap: anywhere; }
  .premium .podium-score { font-size: 22px; }
  .premium .podium-meta { font-size: 10px; }
  .opportunity-grid, .reward-grid, .template-grid { grid-template-columns: 1fr; }
  .section-heading { flex-wrap: wrap; }
  .premium .main-content { margin-left: 0; width: 100%; padding: 0 18px 24px; }
  .workspace-context { padding-left: 40px; position: static; }
  .workspace-context select { max-width: 100%; }
  .workspace-context .context-controls { flex-wrap: wrap; min-width: 0; }
  .premium .sidebar { width: 216px; }
  .premium .table-responsive { overflow-x: auto; }
  .teacher-app #dashboard-view > .row.mb-4 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 0; }
  .teacher-app #dashboard-view > .row.mb-4 > div { width: 100%; }
  .premium #dashboard-view .table { min-width: 750px; }
  .monthly-table { min-width: 560px; }
  .approval-row { grid-template-columns: 1fr; }
}
.work-class-picker { min-width: 0; margin: 16px 0; }
.work-class-picker legend { float: none; width: auto; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.class-picker-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-bottom: 10px; border-bottom: 1px solid #3b4441; }
.class-picker-heading [data-selection-count] { color: #b6c4bd; font-size: 12px; }
.class-picker-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 4px 16px; padding-top: 8px; }
.work-class-picker label { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; margin: 0; min-width: 0; cursor: pointer; font-size: 13px; }
.work-class-picker input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #51ceb0; }
.work-class-picker label span { min-width: 0; overflow-wrap: anywhere; }
.work-class-picker small { display: block; color: #b6c4bd; font-size: 11px; margin-top: 2px; }
.class-picker-error { color: #ff9c9c; font-size: 13px; margin: 6px 0 0; }
.class-picker-error:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .premium *, .premium *::before, .premium *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
