/* Shared Shuffleland identity. Loaded after legacy styles to retain existing UI hooks. */
:root { color-scheme:light; --bg:#f6f5fa;--panel:#fff;--card:#fff;--panel-2:#f2eef9;--ink:#211a38;--text:#211a38;--muted:#6b647b;--line:#e4dfed;--border:#e4dfed;--teal:#6136c7;--teal-dark:#492598;--mint:#eee8fa;--shadow:none;font-family:"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif; }
body { color:var(--ink); background:var(--bg);line-height:1.55; }
button,input,textarea,select { font:inherit; }
button,a,input,select,textarea { touch-action:manipulation; }
:focus-visible { outline:3px solid #a88ce3;outline-offset:3px; }
button:disabled {cursor:not-allowed;}
.brand-icon,.logo-icon {display:inline-grid;place-items:center;min-width:34px;height:34px;background:var(--teal);color:#fff;border-radius:10px;font-size:22px;font-weight:850;}
.brand-icon.small {font-size:20px;}
.brand-name,.admin-brand-name {font-size:17px;letter-spacing:-.5px;}
.sl-auth {padding:48px 24px;min-height:100dvh;background:#f6f5fa;}
.sl-auth .card {position:relative;max-width:460px;padding:40px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 48px #211a3809;color:var(--ink);}
.sl-auth .logo {margin-bottom:36px;}
.sl-auth h1 {font-size:28px;letter-spacing:-1px;line-height:1.3;margin-bottom:10px;}
.sl-auth .subtitle {font-size:14px;line-height:1.7;margin-bottom:28px;}
.sl-auth input {min-height:48px;background:#fff;border-color:#d5cde3;font-size:16px;}
.sl-auth label {font-size:14px;margin-bottom:8px;}
.sl-auth button {min-height:48px;background:var(--teal);margin-top:20px;}
.sl-auth button:hover {background:var(--teal-dark);}
.sl-auth .back,.sl-auth .pw-help {font-size:13px;line-height:1.8;overflow-wrap:anywhere;}
.sl-auth .error-box {background:#fff1f2;color:#9f2435;border-color:#eab4bd;}
.sl-auth .info-box {background:#eee8fa;color:#492598;border-color:#d5c5ef;}
.app-shell {grid-template-columns:264px minmax(0,1fr);}
.sidebar {position:sticky;top:0;align-self:start;height:100dvh;min-height:0;padding:28px 20px;gap:18px;background:#fff;overflow-y:auto;}
.sl-nav-label {font-size:12px;color:var(--muted);margin:6px 10px -12px;}
.sidebar-nav {gap:8px;padding:12px 0;}
.nav-item {padding:14px;border:1px solid transparent;}
.nav-item.is-active {border-color:#d4c4ef;}
.nav-title {font-size:15px;line-height:1.55;}
.nav-room {font-size:12px;letter-spacing:0;}
.workspace {min-width:0;width:100%;max-width:1280px;margin:0 auto;padding-bottom:48px;}
.workspace-header {padding:36px 32px 8px;}
.workspace-title {font-size:28px;letter-spacing:-.8px;line-height:1.4;}
.video-section {border:0;background:transparent;box-shadow:none;padding:20px 32px 28px;}
.video-frame {border-radius:14px;overflow:hidden;}
.chapter-section {padding:0 32px 28px;}
.chapter-item {padding:16px;border-radius:10px;background:#fff;border:1px solid var(--line);}
.chapter-title {font-size:15px;}
.chapter-item.is-done {opacity:1;}
#submitQaRow {padding:0 32px!important;}
.submissions-section,.board-section {margin:24px 32px;}
.section-title {font-size:18px;letter-spacing:-.4px;}
.primary-action {background:var(--teal);border-color:var(--teal);min-height:42px;}
.ghost-action {min-height:38px;}
.sl-mobile-menu {display:none;}
.admin-app {max-width:1600px;margin:0 auto;}
.admin-header {height:76px;padding:0 36px;}
.admin-badge {background:var(--mint);color:var(--teal);font-size:12px;padding:4px 9px;}
.sl-admin-intro {display:flex;justify-content:space-between;align-items:center;padding:32px 36px 24px;gap:16px;}
.sl-admin-intro h1 {font-size:28px;letter-spacing:-1px;margin:0 0 5px;}
.sl-admin-intro p {color:var(--muted);margin:0;font-size:14px;}
.sl-admin-intro a {color:var(--teal);text-decoration:none;font-size:14px;font-weight:650;white-space:nowrap;}
.admin-stats-bar {margin:0 36px 28px;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;}
.stat-card {padding:22px 24px;gap:4px;border-right:1px solid var(--line);}
.stat-card:last-child {border:0;}
.stat-num {font-size:28px;letter-spacing:-1px;}
.stat-label {font-size:13px;}
.admin-tabs {padding:0 36px;overflow-x:auto;flex-shrink:0;scrollbar-width:thin;}
.admin-tab {white-space:nowrap;min-height:52px;padding:12px 16px;flex-shrink:0;font-size:14px;}
.admin-tab-content {padding:28px 36px;min-width:0;}
.admin-section-header {flex-wrap:wrap;}
.admin-section-header h2 {margin-right:auto;}
.admin-search {width:260px;min-height:44px;font-size:14px;}
#studentStatusFilter {min-height:44px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:8px 12px;}
.student-grid {grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px;}
.student-card {padding:22px;border-radius:12px;gap:16px;box-shadow:none;}
.sc-info {min-width:0;overflow-wrap:anywhere;}
.sc-email {overflow-wrap:anywhere;}
.sc-actions {flex-wrap:wrap;gap:6px;}
.sc-status {white-space:nowrap;}
.admin-tab-content table {max-width:100%;}
.modal-overlay {padding:16px;}
.modal-content {max-height:90dvh;overflow:auto;}
@media(max-width:900px) {
 .app-shell {display:block;}
 .sl-mobile-menu {display:block;position:sticky;top:0;z-index:150;width:100%;padding:14px 20px;border:0;border-bottom:1px solid var(--line);background:#fff;color:var(--teal);font-weight:700;text-align:left;min-height:50px;}
 .sidebar {display:none;position:relative;height:auto;max-height:70dvh;padding:20px;}
 .sidebar.sl-open {display:flex;}
 .sidebar-nav {flex:none;}
 .workspace-header {padding:24px 20px 4px;}
 .workspace-title {font-size:24px;}
 .video-section {padding:16px 20px 24px;}
 .chapter-section {padding:0 20px 24px;}
 #submitQaRow {flex-direction:column;padding:0 20px!important;}
 #submitQaRow>section {width:100%;}
 .submissions-section,.board-section {margin:24px 20px;}
 .admin-header {padding:0 20px;}
 .sl-admin-intro {padding:24px 20px;align-items:flex-start;}
 .admin-stats-bar {margin:0 20px 20px;display:grid;grid-template-columns:1fr 1fr;gap:0;}
 .stat-card {border-bottom:1px solid var(--line);padding:16px 20px;}
 .admin-tabs {padding:0 12px;}
 .admin-tab-content {padding:24px 20px;}
 .admin-section-header h2 {width:100%;}
 .admin-search {flex:1;min-width:140px;width:auto;}
 .student-grid {grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));}
}
@media(max-width:480px) {
 .sl-auth {padding:24px 16px;}
 .sl-auth .card {padding:28px 24px;}
 .admin-header {height:auto;min-height:70px;gap:10px;flex-wrap:wrap;padding:14px 16px;}
 .admin-brand {gap:7px;}.admin-brand-name {font-size:15px;}.admin-header-actions {margin-left:auto;}
 .admin-header-actions button {font-size:12px;}
 .sl-admin-intro {flex-direction:column;}
 .sl-admin-intro h1 {font-size:25px;}
 .student-card {padding:18px;}
 .chapter-item {align-items:flex-start;gap:10px;}
 .chapter-right {flex-wrap:wrap;justify-content:flex-end;}
 .header-meta {flex-wrap:wrap;}
}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {animation-duration:.01ms!important;transition:none!important;}}
/* A real 16:9 stage, with the placeholder filling the player instead of a nested tile. */
.video-frame {display:block;aspect-ratio:16/9;min-height:0;background:#211a38;}
.video-placeholder {position:absolute;inset:0;width:100%;height:100%;min-height:0;border-radius:0;background:#211a38;padding:20px;text-align:center;}
.video-meta {color:#e0d8f0;}
@media(max-width:480px){.video-placeholder{padding:12px;}.play-btn{padding:10px 22px;font-size:14px;}.video-meta{font-size:12px;}}

/* Official original artwork: CSS frames transparent padding without changing the asset. */
.sl-logo-symbol {position:relative;display:block;width:52px;height:68px;overflow:hidden;flex-shrink:0;}
.sl-logo-symbol img {position:absolute;width:120px;height:120px;max-width:none;left:50%;top:50%;transform:translate(-50%,-43%);object-fit:contain;}
.sl-auth .logo {gap:14px;margin-bottom:28px;}
.admin-header .sl-logo-symbol {width:44px;height:60px;}
.admin-header .sl-logo-symbol img {width:108px;height:108px;}
