:root {
  color-scheme: dark;
  --bg: #081122;
  --card: rgba(19, 30, 58, .88);
  --border: rgba(146, 169, 223, .17);
  --muted: #93a4c2;
  --white: #f3f7ff;
  --lime: #b6f765;
  --violet: #9878ff;
  --blue: #63aaff;
  --radius: 23px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--white); background: var(--bg); line-height: 1.5; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background-image: linear-gradient(rgba(113,135,206,.035) 1px,transparent 1px), linear-gradient(90deg,rgba(113,135,206,.035) 1px,transparent 1px); background-size: 48px 48px; pointer-events: none; }
.background-glow { position: fixed; z-index: -2; pointer-events: none; filter: blur(30px); border-radius: 100%; }
.glow-one { width: 620px; height: 620px; top: -350px; left: 13%; background: radial-gradient(circle, #27318d 0, transparent 72%); }
.glow-two { width: 650px; height: 650px; bottom: -380px; right: -240px; background: radial-gradient(circle, #223c63 0, transparent 73%); }
button,input,textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
a { color: inherit; }
.app-shell { max-width: 1260px; margin: 0 auto; padding: 0 36px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 100px; border-bottom: 1px solid rgba(151, 167, 211, .12); }
.brand { text-decoration: none; display: inline-flex; gap: 12px; align-items: center; }
.brand-mark { display: grid; place-items: center; background: var(--lime); color: #091322; border-radius: 13px; width: 44px; height: 44px; font-size: 25px; font-weight: 800; box-shadow: 0 0 35px rgba(182,247,101,.2); }
.brand-text { font-size: 21px; font-weight: 1000; letter-spacing: -.9px; line-height: 1; }
.brand-text > span { color: var(--lime); }
.brand-text small { display: block; letter-spacing: 2.8px; font-weight: 800; font-size: 8px; margin-top: 8px; color: #7889a8; }
.header-right { display: flex; align-items: center; gap: 16px; }
.live-indicator { font-size: 10px; font-weight: 800; letter-spacing: 1.35px; color: #b6c3d9; white-space: nowrap; }
.live-indicator i,.refresh-pill i { display: inline-block; height: 7px; width: 7px; border-radius: 50%; margin-right: 6px; background: var(--lime); box-shadow: 0 0 13px rgba(182,247,101,.55); vertical-align: middle; }
.header-label { font-size: 13px; color: var(--muted); }
.player-pill { display: flex; align-items: center; gap: 7px; padding: 6px 13px 6px 6px; border-radius: 30px; border: 1px solid var(--border); background: #111d35; font-size: 13px; font-weight: 700; }
.player-pill > span { display: grid; place-items: center; height: 27px; width: 27px; border-radius: 50%; background: #2e3660; font-size: 17px; }
.ghost-button { color: #cfdaef; background: transparent; border: 1px solid #3a4762; border-radius: 11px; padding: 9px 12px; font-size: 12px; font-weight: 750; }
.ghost-button:hover { background: rgba(255,255,255,.08); }
.glass-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 22px 65px rgba(0,0,0,.16); }
.eyebrow,.card-overline { font-size: 10px; font-weight: 900; letter-spacing: 2.15px; color: var(--lime); }
.auth-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 76px; align-items: center; min-height: 650px; padding: 64px 15px 36px; }
.intro { position: relative; align-self: stretch; padding-top: 40px; }
.intro h1 { font-size: clamp(55px,6vw,84px); letter-spacing: -5px; line-height: 1.035; margin: 25px 0 22px; font-weight: 1000; }
.intro h1 > span { color: var(--lime); }
.intro-subtitle { max-width: 490px; font-size: 17px; line-height: 1.9; color: #a8b6d1; margin: 0 0 35px; }
.intro-subtitle strong { color: var(--white); }
.intro-stats { display: flex; gap: 36px; padding-top: 10px; }
.intro-stats > div { display: flex; flex-direction: column; }
.intro-stats strong { font-size: 33px; font-weight: 950; line-height: 1.15; letter-spacing: -1.2px; }
.intro-stats span { color: #8393b1; font-size: 11px; margin-top: 4px; }
.pixel-scene { height: 195px; position: relative; max-width: 430px; margin-top: 15px; }
.scene-orb { position: absolute; top: 10px; left: 160px; width: 152px; height: 152px; display: grid; place-items: center; border-radius: 40px; transform: rotate(-9deg); background: linear-gradient(135deg,#4c3eac,#7763c0); box-shadow: 0 30px 80px rgba(109,81,212,.22), inset 0 0 0 6px rgba(255,255,255,.08); font-size: 88px; }
.scene-chip { position: absolute; padding: 9px 15px; color: #fff; background: #233352; border: 1px solid #435378; box-shadow: 0 8px 20px rgba(0,0,0,.25); border-radius: 12px; font-size: 12px; font-weight: 900; }
.chip-1 { left: 16px; top: 28px; transform: rotate(-7deg); color: var(--lime); }
.chip-2 { top: 125px; left: 45px; transform: rotate(7deg); }
.chip-3 { top: 75px; right: 7px; transform: rotate(8deg); color: var(--blue); }
.auth-card { padding: 34px; }
.auth-card h2 { font-size: 26px; letter-spacing: -.8px; margin: 6px 0 25px; }
.auth-card h2 span { font-size: 21px; }
.tab-selector { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; background: #0a1428; border-radius: 13px; margin-bottom: 27px; }
.tab { border: 0; border-radius: 9px; color: #7e90b2; background: transparent; padding: 11px 3px; font-size: 12px; font-weight: 800; }
.tab.active { background: #293656; color: white; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.auth-form { display: flex; flex-direction: column; }
.field-label { display: block; margin-bottom: 8px; color: #dce8f9; font-size: 12px; font-weight: 800; }
.auth-form > input { width: 100%; border: 1px solid #3c4964; border-radius: 11px; background: #0c172b; color: white; padding: 13px 15px; font-size: 14px; margin-bottom: 19px; outline: none; }
.auth-form > input::placeholder,.flag-row input::placeholder,textarea::placeholder { color: #5d6c8c; }
.auth-form > input:focus,.flag-row input:focus,textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(151,119,255,.1); outline: none; }
.avatar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-bottom: 28px; }
.avatar-button { display: grid; place-items: center; padding: 0; min-height: 48px; border: 1px solid #34415d; border-radius: 12px; background: #13213b; font-size: 24px; transition: transform .15s ease,background .15s ease; }
.avatar-button:hover { transform: translateY(-2px); }
.avatar-button.chosen { border-color: var(--lime); background: #2f453b; box-shadow: 0 0 0 2px rgba(182,247,101,.12); }
.primary-button { background: var(--lime); color: #10200d; border: none; border-radius: 11px; min-height: 49px; padding: 12px 20px; font-weight: 950; font-size: 13px; white-space: nowrap; transition: filter .15s,transform .15s; }
.primary-button:hover:not(:disabled) { filter: brightness(1.11); transform: translateY(-1px); }
.primary-button span { margin-left: 12px; font-size: 19px; vertical-align: -1px; }
.auth-submit { width: 100%; }
.privacy-note { border-top: 1px solid var(--border); margin-top: 23px; padding-top: 22px; color: #96a6c0; font-size: 11px; line-height: 1.7; display: flex; gap: 9px; }
.privacy-note span { font-size: 18px; }
.site-footer { display: flex; justify-content: space-between; border-top: 1px solid rgba(151,167,211,.12); gap: 15px; padding: 24px 0 34px; margin-top: 50px; font-size: 10px; letter-spacing: 1.2px; font-weight: 800; color: #6c7b96; }
.footer-star { color: var(--lime); }
/* Game */
.dashboard { padding-top: 40px; }
.dashboard-heading { display: flex; justify-content: space-between; gap: 35px; align-items: flex-end; padding: 15px 0 38px; }
.dashboard-heading h1 { font-size: clamp(34px,4vw,49px); line-height: 1.13; letter-spacing: -2px; margin: 12px 0 10px; }
.dashboard-heading h1 span { color: var(--lime); }
.dashboard-heading p { color: #8ea1c0; font-size: 14px; margin: 0; }
.player-progress { flex-shrink: 0; width: 257px; padding: 19px 20px; }
.progress-top { display: flex; justify-content: space-between; align-items: center; font-size: 9px; font-weight: 900; color: #91a4c4; letter-spacing: 1px; }
.progress-top strong { color: var(--lime); font-size: 25px; letter-spacing: -1px; }
.progress-top strong small { font-size: 13px; color: #92a3c0; }
.progress-track { overflow: hidden; height: 8px; border-radius: 20px; background: #35405d; margin: 13px 0 8px; }
.progress-track > span { display: block; background: linear-gradient(90deg,#57d8cc,var(--lime)); height: 100%; border-radius: inherit; min-width: 0; }
.player-progress > small { color: #8494b1; font-size: 10px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 326px; align-items: start; gap: 23px; }
.game-column { min-width: 0; }
.mission-card { padding: 30px; min-height: 440px; }
.mission-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.level-chip { border: 1px solid rgba(182,247,101,.3); border-radius: 8px; padding: 6px 10px; font-size: 10px; font-weight: 950; letter-spacing: 1.4px; color: var(--lime); background: #2b3b2f; }
.difficulty { font-size: 10px; font-weight: 900; color: #9a84ff; letter-spacing: 1.1px; }
.mission-card h2 { margin: 0 0 10px; font-size: 31px; letter-spacing: -1px; }
.mission-desc { margin: 0 0 24px; color: #a3b3cf; font-size: 14px; line-height: 1.9; }
.mission-desc strong { color: #e2e9ff; }
kbd { background: #293855; border: 1px solid #4b5c7c; color: var(--lime); border-radius: 5px; box-shadow: 0 2px 0 #0c1629; font: 800 12px ui-monospace, SFMono-Regular, Consolas, monospace; padding: 3px 6px; white-space: nowrap; }
.mission-workspace { background: #080f20; border: 1px solid #2e3b55; border-radius: 13px; overflow: hidden; }
.terminal-head { display: flex; align-items: center; justify-content: space-between; background: #15213b; color: #758ba9; font: 700 11px ui-monospace,SFMono-Regular,Consolas,monospace; padding: 10px 14px; }
.traffic { color: #ed9c70; letter-spacing: 4px; }
#selectMission { display: block; width: 100%; height: 168px; padding: 19px; background: transparent; color: #b7f3be; resize: none; border: none; font: 13px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace; }
.double-workspace { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: #293652; }
.double-workspace > div { background: #0a1326; padding: 14px; min-width: 0; }
.double-workspace label { display: block; color: var(--lime); font-size: 11px; letter-spacing: 1.4px; font-weight: 800; margin: 0 0 12px; }
.double-workspace textarea { width: 100%; min-height: 150px; resize: vertical; border: 1px solid #34425f; background: #111f38; color: #dfedfa; border-radius: 9px; padding: 12px; font: 13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace; }
.tip { margin: 16px 0 0; font-size: 12px; color: #9ab3cf; }
.message-workspace { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 25px; }
.big-icon { font-size: 65px; margin-bottom: 8px; }
.message-workspace strong { font-size: 18px; }
.message-workspace p { color: #899bb8; margin: 6px 0 0; font-size: 12px; }
.logs-workspace { max-height: 265px; overflow: auto; }
.log-lines { padding: 12px 16px; color: #8fbab3; font: 11px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace; white-space: nowrap; min-width: 0; }
.log-lines > div { border-bottom: 1px solid rgba(120,154,179,.04); }
.important-log { background: #324e37; color: #c8ff83; font-weight: 900; }
.fake-message { padding: 19px; border-radius: 13px; background: #10182b; border: 1px solid #635052; }
.fake-message-header { display: flex; justify-content: space-between; color: #ffa998; letter-spacing: 1px; font-size: 10px; font-weight: 900; margin-bottom: 15px; }
.fake-message-header span:last-child { font-weight: 1000; width: 20px; height: 20px; text-align: center; border-radius: 50%; color: #201415; background: #ffae8b; }
.fake-message > strong { font-size: 16px; }
.fake-message p { color: #b5bdd1; font-size: 13px; line-height: 1.8; margin: 8px 0; }
.fake-link { font-size: 12px; text-decoration: underline; color: #ffa498; overflow-wrap: anywhere; }
.choice-heading { font-size: 13px; font-weight: 800; margin: 21px 0 10px; }
.choice-grid { display: grid; gap: 9px; }
.choice-grid button { background: #172743; border: 1px solid #354763; border-radius: 10px; padding: 12px 15px; text-align: left; font-size: 13px; color: #d6e1f3; }
.choice-grid button:hover,.choice-grid button.selected { border-color: #a98aff; background: #283359; }
.flag-reveal { border: 1px solid #56734e; background: linear-gradient(110deg,#203725,#203a32); border-radius: 12px; text-align: center; padding: 16px; margin: 20px 0 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.flag-reveal span { font-size: 10px; color: var(--lime); font-weight: 900; letter-spacing: 1.5px; }
.flag-reveal strong { font: 900 22px ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: 2px; color: white; user-select: all; }
.flag-reveal small { font-size: 11px; color: #a4ca9d; }
.flag-form { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 22px; }
.flag-form > label { display: block; font-size: 10px; font-weight: 900; letter-spacing: 1.2px; color: #d7e5f6; margin-bottom: 11px; }
.flag-row { display: flex; gap: 9px; }
.flag-row input { min-width: 0; flex: 1; background: #0a162b; color: white; border: 1px solid #3c4b6c; border-radius: 10px; padding: 12px 15px; font: 800 13px ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: 1px; }
.level-section { margin-top: 35px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 15px; }
.section-heading h2 { font-size: 23px; letter-spacing: -.5px; margin: 4px 0 0; }
.map-caption { color: #7f93b2; font-size: 11px; white-space: nowrap; }
.level-map { display: grid; grid-template-columns: repeat(10, minmax(0,1fr)); gap: 10px; }
.map-level { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 1; border-radius: 12px; font-weight: 900; border: 1px solid #2a3a55; }
.map-level > span { font-size: 15px; }
.map-level small { font-size: 9px; opacity: .65; }
.map-level.locked { color: #667792; background: #131e32; }
.map-level.locked span { font-size: 12px; filter: grayscale(1); opacity: .5; }
.map-level.current { color: white; background: linear-gradient(140deg,#6555b9,#393d80); border-color: #967fff; box-shadow: 0 0 0 3px rgba(145,122,255,.12); }
.map-level.done { color: #c5fa78; background: #233c34; border-color: #4d7659; }
.map-legend { display: flex; flex-wrap: wrap; gap: 18px; color: #8697b5; font-size: 10px; margin-top: 14px; }
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.leaderboard-card { padding: 24px 21px; }
.leaderboard-head { display: flex; justify-content: space-between; align-items: center; }
.refresh-pill { color: #b9fa7b; border: 1px solid #3d5b3d; background: #19342c; border-radius: 20px; font-size: 9px; font-weight: 900; padding: 6px 9px; letter-spacing: 1px; }
.leaderboard-card h2 { margin: 12px 0 4px; font-size: 23px; letter-spacing: -.5px; }
.leaderboard-card p { margin: 0 0 20px; color: #8fa1bd; font-size: 11px; }
.leaderboard-list { display: flex; flex-direction: column; gap: 7px; max-height: 550px; overflow: auto; }
.loading-board { text-align: center; font-size: 12px; color: #99a7bb; padding: 25px 0; }
.leaderboard-item { display: grid; grid-template-columns: 23px 36px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 9px; border: 1px solid transparent; border-radius: 11px; }
.leaderboard-item:nth-child(1) { background: #28344c; border-color: #504f4c; }
.leaderboard-item:nth-child(2) { background: #202e47; }
.leaderboard-item:nth-child(3) { background: #1a2941; }
.leaderboard-item.me { border-color: #708557; }
.leaderboard-rank { font-size: 12px; color: #93a2b8; font-weight: 900; }
.leaderboard-item:nth-child(1) .leaderboard-rank { color: #ffe289; }
.leaderboard-avatar { width: 32px; height: 32px; display: grid; place-items: center; background: #33405d; border-radius: 10px; font-size: 19px; }
.leaderboard-identity { display: flex; flex-direction: column; min-width: 0; }
.leaderboard-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.leaderboard-identity small { color: #7588aa; font-size: 10px; }
.leaderboard-identity small.online { color: var(--lime); }
.leaderboard-score { font-size: 11px; color: #e3ebfa; font-weight: 900; white-space: nowrap; }
.leaderboard-footer { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 15px; color: #8699b6; font-size: 10px; }
.leaderboard-footer small { display: block; padding-top: 5px; color: #617493; }
.online-circle { display: inline-block; height: 8px; width: 8px; background: var(--lime); border-radius: 50%; margin-right: 4px; }
.side-tip { padding: 24px; background: linear-gradient(135deg,#24294d,#182341); }
.side-tip > span { font-size: 29px; }
.side-tip h3 { margin: 7px 0; font-size: 17px; }
.side-tip p { color: #a6b5d0; font-size: 12px; line-height: 1.8; margin: 0; }
.side-tip strong { color: white; }
.victory-panel { display: flex; align-items: center; text-align: center; justify-content: center; flex-direction: column; }
.victory-emoji { font-size: 84px; margin-bottom: 8px; }
.victory-panel p { color: #9bafcc; max-width: 480px; }
.victory-badge { margin-top: 20px; border: 1px solid #517948; color: var(--lime); border-radius: 30px; background: #263a2b; font-size: 12px; font-weight: 900; letter-spacing: 1px; padding: 11px 19px; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 26px; transform: translateX(-50%); max-width: calc(100vw - 30px); min-width: 260px; padding: 13px 20px; border-radius: 13px; color: #e7ffdf; background: #244e3a; border: 1px solid #61955c; font-size: 13px; font-weight: 800; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.toast.error { color: #ffe9e5; background: #683133; border-color: #aa6261; }
@media (max-width: 1050px) { .auth-layout { gap: 35px; } .content-layout { grid-template-columns: minmax(0,1fr) 290px; } .level-map { grid-template-columns: repeat(6,minmax(0,1fr)); } }
@media (max-width: 800px) { .app-shell { padding: 0 19px; } .site-header { min-height: 78px; } .auth-layout { grid-template-columns: 1fr; gap: 15px; padding: 35px 0; } .intro { padding-top: 0; } .intro h1 { font-size: clamp(48px,10vw,70px); } .pixel-scene { display: none; } .intro-stats { padding-bottom: 22px; } .auth-card { max-width: 550px; width: 100%; } .content-layout { grid-template-columns: 1fr; } .sidebar { display: grid; grid-template-columns: 1fr 1fr; } .leaderboard-card { min-width: 0; } .dashboard-heading { align-items: flex-start; } .header-label { display: none; } }
@media (max-width: 580px) { .site-header { gap: 10px; } .brand-mark { width: 37px; height: 37px; font-size: 21px; } .brand-text { font-size: 17px; } .brand-text small { font-size: 7px; letter-spacing: 1.5px; } .live-indicator { display: none; } .player-pill { font-size: 11px; padding-right: 8px; } .ghost-button { padding: 8px; } .intro h1 { letter-spacing: -3px; } .intro-subtitle { font-size: 15px; } .intro-stats { gap: 23px; } .intro-stats strong { font-size: 26px; } .intro-stats span { font-size: 10px; } .auth-card { padding: 24px 20px; } .avatar-grid { gap: 7px; } .avatar-button { min-height: 45px; font-size: 22px; } .dashboard { padding-top: 26px; } .dashboard-heading { flex-direction: column; gap: 20px; padding-bottom: 23px; } .dashboard-heading h1 { font-size: 37px; } .player-progress { width: 100%; } .mission-card { padding: 20px; } .mission-card h2 { font-size: 26px; } .mission-desc { font-size: 13px; } .difficulty { font-size: 9px; } .double-workspace { grid-template-columns: 1fr; } .flag-row { flex-direction: column; } .flag-row button { width: 100%; } .level-map { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; } .map-level { border-radius: 10px; } .map-caption { display: none; } .sidebar { display: flex; } .site-footer { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }

/* Cyber Quest · kapitoly 2–6 (levely 6–30) */
.advanced-choices button { display:flex; align-items:center; gap:13px; line-height:1.55; }
.advanced-choices button b { flex-shrink:0; display:grid; place-items:center; width:32px; height:32px; color:#10200d; background:var(--lime); border-radius:8px; font-size:13px; }
.advanced-form { display:flex; flex-direction:column; gap:13px; padding:17px; border:1px solid #34415d; border-radius:14px; background:#0b152b; }
.mission-select-row { display:flex; flex-direction:column; gap:9px; color:#dce5f4; font-size:13px; font-weight:750; }
.mission-select-row select { appearance:auto; display:block; width:100%; min-width:0; padding:13px 12px; font-weight:600; font-size:13px; border-radius:9px; border:1px solid #465473; color:#ecf4ff; background:#14233d; }
.mission-select-row select:focus-visible { outline:3px solid var(--lime); outline-offset:2px; }
.mission-submit { align-self:flex-start; margin-top:6px; }
.check-option { display:flex; gap:13px; align-items:flex-start; padding:13px 12px; background:#14233d; border:1px solid #354863; border-radius:10px; color:#dfebfa; font-size:13px; line-height:1.6; cursor:pointer; }
.check-option:hover { border-color:var(--violet); }
.check-option input { accent-color:var(--lime); width:18px; height:18px; margin:2px 0 0; flex:none; }
.concept-workspace { display:flex; align-items:center; gap:16px; padding:22px; }
.concept-workspace .concept-icon { display:grid; place-items:center; width:65px; height:65px; border-radius:14px; font-size:39px; background:#202e4c; flex:none; }
.concept-workspace strong { font-size:15px; }
.concept-workspace p { margin:5px 0 0; font-size:12px; color:#94a9cc; }
.qr-workspace { padding:24px; display:flex; align-items:center; flex-direction:column; gap:13px; text-align:center; }
.qr-workspace img { background:white; padding:12px; width:220px; height:220px; object-fit:contain; max-width:100%; border-radius:12px; image-rendering:pixelated; }
.qr-workspace > span { font-size:13px; color:#d6e5fa; }
.fallback-hint { font-size:12px; color:#b9c9e3; max-width:410px; text-align:left; width:100%; border:1px solid #32425e; border-radius:10px; padding:12px 15px; }
.fallback-hint summary { cursor:pointer; font-weight:800; }
.fallback-hint p { margin:10px 0 0; line-height:1.7; }
.explorer-workspace { min-height:230px; }
.explorer-toolbar { padding:11px 13px; background:#101d34; border-bottom:1px solid #2c3b59; display:flex; align-items:center; gap:14px; font-size:12px; }
.explorer-toolbar button { color:#f1f7ff; background:#233555; border:1px solid #495978; border-radius:7px; padding:7px 11px; font-size:12px; }
.explorer-toolbar button:disabled { opacity:.45; }
.explorer-toolbar span { color:#a7c7f2; overflow-wrap:anywhere; }
.explorer-files { display:grid; grid-template-columns:repeat(auto-fit,minmax(112px,1fr)); padding:15px; gap:9px; }
.explorer-files button { display:flex; flex-direction:column; align-items:center; gap:6px; padding:15px 8px; color:#d9e7fa; background:#152641; border:1px solid #354761; border-radius:10px; min-width:0; }
.explorer-files button:hover { border-color:var(--lime); background:#213d44; }
.explorer-files button span { font-size:35px; }
.explorer-files button strong { font-size:12px; overflow-wrap:anywhere; }
.explorer-files button small { font-size:10px; color:#849abb; }
.browser-tabs { display:flex; overflow-x:auto; background:#1b2a47; gap:3px; padding:7px 7px 0; }
.browser-tabs button { flex:1; min-width:116px; padding:11px 10px; background:#12203a; color:#aebed7; border:0; border-radius:8px 8px 0 0; font-size:11px; font-weight:800; }
.browser-tabs button[aria-selected="true"] { background:#32496e; color:white; box-shadow:inset 0 3px var(--lime); }
.browser-panel { min-height:175px; padding:26px; }
.browser-panel h3 { margin:0 0 12px; font-size:18px; }
.browser-panel p { color:#b4c3dd; font-size:13px; line-height:1.8; }
.browser-panel strong { background:#354e43; color:var(--lime); font:900 17px ui-monospace,SFMono-Regular,Consolas,monospace; padding:3px 8px; border-radius:5px; }
.code-form { margin-top:18px; }
.code-form > label { font-weight:800; font-size:13px; }
.code-form .flag-row { display:flex; gap:9px; }
.code-form .flag-row input { flex:1; min-width:0; border:1px solid #465473; background:#14233d; color:white; padding:12px; border-radius:9px; }
.download-workspace { display:flex; flex-direction:column; align-items:center; text-align:center; padding:30px; gap:13px; }
.download-workspace > span { font-size:64px; }
.download-workspace strong { font-size:18px; }
.download-workspace p { font-size:12px; color:#a4b8d8; max-width:440px; margin:0; line-height:1.8; }
.download-mission { color:#12210b; background:var(--lime); padding:12px 17px; border-radius:10px; font-size:13px; font-weight:900; text-decoration:none; display:inline-block; }
.download-mission:hover { filter:brightness(1.1); }
.sort-workspace { padding:18px; margin-bottom:15px; }
.sort-pile { display:flex; flex-wrap:wrap; gap:8px; }
.sort-pile strong { width:100%; font-size:12px; color:#91a9c6; margin-bottom:5px; }
.sort-pile span { display:block; background:#253652; border:1px solid #435576; padding:12px; border-radius:9px; font-size:13px; }
.grid-workspace { padding:20px; }
.grid-caption { font-size:13px; font-weight:850; color:#d6e4f7; margin-bottom:14px; }
.sheet-grid { table-layout:fixed; border-spacing:3px; border-collapse:separate; width:100%; }
.sheet-grid th { background:#263a5a; color:#cedaf0; border-radius:5px; font-size:12px; width:18%; }
.sheet-grid td { width:20%; }
.sheet-grid td button { width:100%; min-height:46px; color:#e6eeff; background:#172945; border:1px solid #3e5070; border-radius:5px; font-size:13px; }
.sheet-grid td button:hover,.sheet-grid td button.selected { background:#375052; color:var(--lime); border-color:var(--lime); }
@media(max-width:580px) {
  .mission-select-row select { font-size:13px; }
  .advanced-form { padding:12px; }
  .mission-submit { width:100%; }
  .concept-workspace { padding:14px; }
  .explorer-files { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .code-form .flag-row { flex-direction:column; }
}
