:root {
  --bg: #090a0d;
  --panel: #111318;
  --panel-raised: #171a20;
  --line: #2a2d35;
  --line-bright: #454a54;
  --text: #f1f1f2;
  --muted: #9296a1;
  --muted-dark: #626773;
  --red: #f11b2a;
  --red-light: #ff4350;
  --red-dark: #9f0b17;
  --steel: #c6c9d0;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { min-height: 100vh; display: flex; flex-direction: column; color: var(--text); background: var(--bg); font-family: var(--sans); font-size: 14px; line-height: 1.65; position: relative; overflow-x: hidden; }
body::before { content: ''; pointer-events: none; position: fixed; inset: 0; z-index: -2; background: radial-gradient(ellipse at 78% 4%, rgba(168, 11, 23, .14), transparent 36%), radial-gradient(ellipse at 8% 42%, rgba(65, 74, 89, .08), transparent 34%); }
body::after { content: ''; pointer-events: none; position: fixed; inset: 0; z-index: -1; opacity: .11; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"); }
a { color: var(--red-light); text-decoration: none; }
a:hover { color: #ff737c; }
::selection { color: #fff; background: var(--red-dark); }
.scanline { position: fixed; z-index: 10; pointer-events: none; inset: 0; opacity: .12; background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(0,0,0,.24) 4px); }
.container { max-width: 1160px; }
.site-nav { min-height: 78px; background: rgba(9,10,13,.88); border-bottom: 1px solid #24262c; backdrop-filter: blur(14px); position: relative; z-index: 20; }
.navbar-brand { margin-right: 1.6rem; }
.brand-logo { width: 43px; height: 43px; object-fit: cover; border-radius: 50%; border: 1px solid #55575c; background: white; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.05; letter-spacing: .13em; font-family: var(--mono); font-size: 10px; color: #c6c8cc; }
.brand-wordmark strong { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: .19em; margin-top: 2px; }
.brand-wordmark small { font-size: 8px; margin-top: 4px; color: var(--red-light); letter-spacing: .22em; }
.nav-link { color: #a6a9b1; text-transform: uppercase; font-family: var(--mono); font-size: 11px; letter-spacing: .09em; }
.nav-link:hover { color: #fff; }
.nav-user { margin: 0 .5rem; padding: 7px 10px; font: 10px var(--mono); color: #d8a5a9; background: rgba(241,27,42,.08); border: 1px solid rgba(241,27,42,.22); }
.btn { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .035em; border-radius: 2px; padding: .72rem 1.15rem; text-transform: uppercase; transition: background .16s, border-color .16s, transform .16s; }
.btn:hover { transform: translateY(-1px); }
.btn-red { color: white; background: var(--red); border: 1px solid var(--red); box-shadow: 0 5px 22px rgba(241,27,42,.11); }
.btn-red:hover, .btn-red:focus { color: #fff; background: #cc1020; border-color: #cc1020; }
.btn-outline-steel { color: #d8d9dc; border: 1px solid #51545d; background: rgba(255,255,255,.015); }
.btn-outline-steel:hover { color: #fff; border-color: var(--red); background: rgba(241,27,42,.08); }
.btn-lg { padding: .88rem 1.25rem; }
.page-shell { flex: 1; padding-top: 30px; padding-bottom: 78px; }
.flash-stack { position: relative; z-index: 2; max-width: 850px; margin: 0 auto 18px; }
.alert { border-radius: 3px; border-width: 1px; font-size: 12px; }
.alert-success { background: #12251d; border-color: #28553e; color: #b4f3cc; }
.alert-danger { background: #2a1116; border-color: #6f1d29; color: #ffc0c7; }
.alert-warning { background: #2a2110; border-color: #70551b; color: #f5dca0; }
.alert-info { background: #111d2a; border-color: #2d4c69; color: #bddfff; }
.eyebrow { font: 10px/1.5 var(--mono); letter-spacing: .17em; text-transform: uppercase; color: var(--red-light); }
.eyebrow-sep { color: #6a6d76; margin: 0 .28rem; }
.hero-grid { min-height: 485px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .82fr); align-items: center; gap: 38px; padding: 28px 0 56px; border-bottom: 1px solid var(--line); position: relative; }
.hero-copy { position: relative; z-index: 1; padding: 14px 0 0; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px rgba(241,27,42,.75); margin-right: 7px; vertical-align: 1px; }
.hero-copy h1 { font-size: clamp(32px, 4.6vw, 55px); line-height: 1.09; letter-spacing: -.045em; font-weight: 800; margin: 23px 0 21px; }
.hero-copy h1 span { color: var(--red-light); }
.hero-lead { max-width: 590px; color: #a7abb4; font-size: 14px; line-height: 1.9; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.hero-facts { display: flex; gap: 35px; margin-top: 45px; }
.hero-facts div { display: flex; flex-direction: column; gap: 2px; min-width: 65px; }
.hero-facts strong { font: 26px/1 var(--mono); color: #f3f3f4; letter-spacing: -.06em; }
.hero-facts span:not(.fact-unit) { font: 9px var(--mono); color: #737782; letter-spacing: .11em; margin-top: 7px; }
.fact-unit { font-size: 10px; color: var(--red-light); letter-spacing: 0; margin-left: 4px; }
.hero-emblem-wrap { align-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; }
.emblem-frame { width: min(100%, 360px); aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.emblem-ring { position: absolute; inset: 6%; border: 1px solid #5a1c23; border-radius: 50%; box-shadow: 0 0 0 12px rgba(255,255,255,.012), inset 0 0 28px rgba(241,27,42,.06); }
.emblem-ring::before, .emblem-ring::after { content: ''; position: absolute; inset: -15px; border: 1px dashed #383b42; border-radius: 50%; }
.emblem-ring::after { inset: 24px; border-color: rgba(241,27,42,.35); border-style: solid; }
.hero-emblem { position: relative; z-index: 1; width: 78%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: #fff; box-shadow: 0 0 45px rgba(241,27,42,.11), 0 20px 65px rgba(0,0,0,.6); }
.emblem-caption { width: min(100%, 360px); display: flex; justify-content: space-between; font: 8px var(--mono); letter-spacing: .09em; color: #757984; margin-top: 10px; }
.emblem-caption span:first-child { color: var(--red-light); }
.progress-section, .tasks-section { padding-top: 46px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.section-heading h2 { font-size: 23px; font-weight: 800; letter-spacing: -.035em; margin: 7px 0 0; }
.progress-total, .section-count { font: 11px var(--mono); color: #8a8e98; }
.section-count span { color: var(--red); padding-left: 7px; }
.progress-panel { height: 100%; padding: 23px 23px 19px; border: 1px solid #30333a; background: linear-gradient(120deg, rgba(255,255,255,.025), transparent 65%), #111318; position: relative; }
.progress-panel::before { content: ''; position: absolute; top: -1px; left: -1px; width: 31px; height: 2px; background: var(--red); }
.progress-panel h3 { font-size: 16px; font-weight: 700; margin: 6px 0 3px; }
.progress-panel p { margin: 0; font-size: 11px; color: #7f838d; }
.level-index { font: 9px var(--mono); letter-spacing: .11em; color: var(--red-light); }
.progress-numbers { font: 25px var(--mono); color: #f5f5f6; white-space: nowrap; }
.progress-numbers small { font-size: 12px; color: #777b85; }
.progress-rose { height: 4px; border-radius: 0; background: #2a2d34; margin-top: 23px; }
.progress-rose .progress-bar { background: linear-gradient(90deg, var(--red-dark), var(--red-light)); box-shadow: 0 0 10px rgba(241,27,42,.35); transition: width .4s; }
.progress-panel-advanced::before { background: #aeb3bd; }
.progress-panel-advanced .level-index { color: #b3b7c0; }
.progress-panel-advanced .progress-bar { background: linear-gradient(90deg, #646b78, #e2e4e9); box-shadow: 0 0 9px rgba(198,201,208,.2); }
.tasks-section { padding-top: 52px; }
.login-nudge { display: flex; align-items: center; gap: 15px; padding: 16px 18px; margin-bottom: 22px; border: 1px solid #39313a; background: rgba(241,27,42,.035); }
.nudge-symbol { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--red-dark); color: var(--red-light); font: 16px var(--mono); }
.login-nudge strong { font-size: 12px; }
.login-nudge p { color: #858995; margin: 3px 0 0; font-size: 11px; }
.text-link { margin-left: auto; flex: 0 0 auto; font: 10px var(--mono); text-transform: uppercase; }
.task-list { border-top: 1px solid #30333a; }
.task-group-label { display: flex; align-items: center; gap: 13px; padding: 17px 14px 12px; font: 10px var(--mono); letter-spacing: .13em; color: #b2b5bc; }
.task-group-label > span { color: var(--red-light); }
.task-group-label i { font-style: normal; font-size: 9px; letter-spacing: .06em; color: #646873; margin-left: auto; }
.advanced-label { border-top: 1px solid var(--line); margin-top: 13px; }
.advanced-label > span { color: #c8cbd2; }
.task-row { display: grid; grid-template-columns: 68px minmax(0, 1fr) 42px; align-items: center; gap: 16px; padding: 17px 15px; border-top: 1px solid #24262d; transition: background .17s, border-color .17s; }
.task-row:hover { background: rgba(255,255,255,.018); border-color: #4b2228; }
.task-row.is-solved { background: rgba(16,79,48,.08); }
.task-id { font: 25px var(--mono); color: #555a65; letter-spacing: -.08em; }
.task-row.is-solved .task-id { color: #58c48b; }
.task-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.category-tag, .solved-tag, .detail-tag { display: inline-flex; align-items: center; padding: 3px 7px; font: 9px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.tag-guided { color: #ff8a91; border: 1px solid rgba(241,27,42,.32); background: rgba(241,27,42,.08); }
.tag-ctf { color: #c2c7d0; border: 1px solid #454a55; background: rgba(255,255,255,.035); }
.solved-tag { color: #7fe0a8; border: 1px solid rgba(76,196,124,.27); background: rgba(76,196,124,.07); }
.task-row h3 { margin: 0; font-size: 14px; font-weight: 700; }
.task-row h3 a { color: #e7e8eb; }
.task-row h3 a:hover { color: var(--red-light); }
.task-row p { font-size: 11px; line-height: 1.6; color: #818590; margin: 5px 0 0; }
.task-open { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid #373a43; color: #c9cbd1; font: 18px var(--mono); }
.task-open:hover { color: white; border-color: var(--red); background: rgba(241,27,42,.09); }
.empty-state { padding: 25px; border: 1px dashed var(--line-bright); color: var(--muted); }

/* Authentication */
.auth-layout { display: grid; grid-template-columns: 1fr minmax(320px, .9fr); align-items: stretch; max-width: 930px; margin: 40px auto 20px; border: 1px solid #30333a; background: #101217; box-shadow: 0 22px 75px rgba(0,0,0,.24); }
.auth-visual { min-height: 510px; padding: 40px; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; background: linear-gradient(145deg, rgba(241,27,42,.11), transparent 60%), #0d0f13; border-right: 1px solid #2b2d34; position: relative; overflow: hidden; }
.auth-visual::after { content: 'SR'; position: absolute; right: -9px; bottom: -90px; font: 190px/.9 var(--mono); font-weight: 700; color: rgba(255,255,255,.025); }
.auth-visual img { width: 108px; height: 108px; object-fit: cover; border-radius: 50%; background: #fff; margin-bottom: 29px; box-shadow: 0 0 35px rgba(241,27,42,.14); }
.auth-visual h2 { font-size: 29px; font-weight: 800; line-height: 1.22; margin: 15px 0; }
.auth-visual h2 span { color: var(--red-light); }
.auth-visual p { max-width: 310px; color: #858995; font-size: 12px; }
.auth-card { padding: 42px 35px 30px; align-self: center; }
.auth-card h1 { font-size: 25px; font-weight: 800; margin: 10px 0 5px; }
.form-subtitle { color: #858995; font-size: 12px; margin: 0 0 24px; }
.form-label { font: 10px var(--mono); letter-spacing: .1em; color: #b9bcc4; }
.form-control { color: #f0f1f3; background: #0a0c10; border: 1px solid #363942; border-radius: 2px; padding: .77rem .85rem; font: 12px var(--mono); }
.form-control:focus { color: #fff; background: #0a0c10; border-color: #a51b27; box-shadow: 0 0 0 .2rem rgba(241,27,42,.11); }
.form-control::placeholder { color: #525661; }
.form-text { color: #747884; font-size: 10px; }
.remember-row { display: flex; align-items: center; gap: 9px; color: #8b8f99; font-size: 11px; margin: 5px 0 22px; }
.remember-row input { accent-color: var(--red); }
.auth-switch { margin: 20px 0 0; text-align: center; font-size: 11px; color: #898d97; }
.auth-switch a { color: #ff6e77; }

/* Task page */
.breadcrumb-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 25px; color: #666b76; font: 10px var(--mono); text-transform: uppercase; }
.breadcrumb-line a { color: #8c909a; }
.breadcrumb-line a:hover { color: #fff; }
.breadcrumb-line strong { color: var(--red-light); font-weight: 500; }
.task-detail-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid var(--line); margin-bottom: 25px; }
.task-detail-header h1 { margin: 9px 0 12px; font-size: clamp(26px, 4vw, 37px); letter-spacing: -.04em; font-weight: 800; }
.task-detail-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.detail-tag { color: #9ca1ad; border: 1px solid #343741; }
.task-detail-number { font: 54px/.95 var(--mono); color: rgba(255,255,255,.09); letter-spacing: -.1em; white-space: nowrap; }
.task-detail-number span { font-size: 15px; color: #666b76; letter-spacing: 0; }
.content-panel, .lab-panel { border: 1px solid #30333b; background: linear-gradient(145deg, rgba(255,255,255,.018), transparent 50%), #111318; }
.panel-topline { display: flex; justify-content: space-between; gap: 12px; padding: 13px 17px; border-bottom: 1px solid #292c34; color: #7e828d; font: 9px var(--mono); letter-spacing: .08em; }
.panel-topline span:last-child { color: #60646e; }
.panel-topline span:last-child::first-letter { color: #62cb8e; }
.markdown-content { padding: 24px 25px 28px; color: #b1b4bc; font-size: 13px; line-height: 1.85; }
.markdown-content h1, .markdown-content h2, .markdown-content h3 { color: #f2f2f4; font-size: 16px; font-weight: 700; margin: 0 0 13px; }
.markdown-content p { margin-bottom: 15px; }
.markdown-content strong { color: #eeeef1; }
.markdown-content code { color: #ff838b; background: #211318; border: 1px solid #3e2028; padding: 2px 5px; font: 11px var(--mono); }
.markdown-content ul, .markdown-content ol { padding-left: 20px; }
.markdown-content li { padding: 2px 0; }
.hint-panel { display: flex; align-items: flex-start; gap: 15px; margin: 17px 0; padding: 19px; border: 1px solid #65451b; background: linear-gradient(110deg, rgba(180,112,22,.1), transparent), #17140f; }
.hint-icon { display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; border: 1px solid #8a6228; color: #f4c66d; font-size: 15px; }
.hint-panel h2 { font-size: 13px; font-weight: 700; margin: 0 0 5px; color: #f4dca7; }
.hint-panel p { margin: 0 0 9px; font-size: 11px; color: #a79a7f; }
.hint-panel code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; white-space: normal; padding: 7px 9px; background: #0b0d0f; color: #ffd890; border: 1px solid #3b3020; font: 11px/1.65 var(--mono); }
.flag-panel { margin-top: 17px; }
.flag-panel h2 { font-size: 15px; font-weight: 800; margin: 22px 20px 5px; }
.flag-panel > p { margin: 0 20px 17px; color: #8b8f99; font-size: 11px; }
.flag-form { display: flex; gap: 9px; padding: 0 20px 22px; }
.flag-input { min-width: 0; }
.flag-form .btn { flex: 0 0 auto; }
.success-inline { border-top: 1px solid #263c31; background: rgba(45,130,78,.08); color: #86d9a5; padding: 11px 20px; font-size: 11px; }
.lab-panel { padding: 23px; position: relative; overflow: hidden; }
.lab-panel::before { content: ''; position: absolute; right: -85px; top: -100px; width: 230px; height: 230px; border: 1px solid rgba(241,27,42,.13); border-radius: 50%; box-shadow: 0 0 0 16px rgba(241,27,42,.015), 0 0 0 36px rgba(241,27,42,.014); pointer-events: none; }
.lab-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid #2b2e36; padding-bottom: 18px; position: relative; }
.lab-panel-head h2 { margin: 5px 0 0; font-size: 18px; font-weight: 800; }
.lab-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #4a242a; color: var(--red-light); background: rgba(241,27,42,.06); font: 22px var(--mono); }
.lab-idle-graphic { display: grid; place-items: center; height: 150px; }
.idle-circles { width: 112px; height: 112px; border: 1px dashed #4b3036; border-radius: 50%; display: grid; place-items: center; position: relative; }
.idle-circles::before, .idle-circles::after { content: ''; position: absolute; border: 1px solid #383b43; border-radius: 50%; }
.idle-circles::before { inset: 12px; }
.idle-circles::after { inset: 25px; border-color: #49232a; }
.idle-circles b { z-index: 1; color: #e52a38; font: 22px var(--mono); letter-spacing: -.1em; }
.idle-circles span { position: absolute; width: 5px; height: 5px; background: var(--red); border-radius: 50%; }
.idle-circles span:nth-child(1) { top: 3px; }
.idle-circles span:nth-child(2) { right: 11px; bottom: 18px; }
.idle-circles span:nth-child(3) { left: 11px; bottom: 18px; }
.idle-status, .lab-status { font: 10px var(--mono); letter-spacing: .08em; padding: 10px 12px; border: 1px solid #383b43; display: flex; align-items: center; background: rgba(255,255,255,.015); }
.idle-dot { width: 6px; height: 6px; border-radius: 50%; background: #737782; margin-right: 9px; }
.lab-status { color: #a6f0be; border-color: #28533a; background: rgba(36,125,69,.07); }
.lab-status .status-dot { background: #45c77d; box-shadow: 0 0 11px rgba(69,199,125,.55); }
.lab-description { margin: 17px 0; color: #8f939e; font-size: 11px; line-height: 1.8; }
.lab-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; border-top: 1px solid #292c34; border-bottom: 1px solid #292c34; padding: 14px 0; margin: 16px 0 21px; }
.lab-specs div { display: flex; flex-direction: column; gap: 5px; }
.lab-specs span { color: #737782; font: 8px var(--mono); letter-spacing: .07em; }
.lab-specs strong { font: 10px var(--mono); color: #d9dbe0; }
.launch-btn { display: flex; align-items: center; justify-content: space-between; }
.launch-btn span { font-size: 17px; }
.lab-footnote { display: flex; gap: 9px; margin-top: 16px; color: #8e7e83; font-size: 10px; line-height: 1.6; }
.lab-footnote span { color: #e0a34e; }
.connection-box { position: relative; padding: 13px; margin: 17px 0; background: #090b0e; border: 1px solid #3a3d45; }
.connection-box > span { display: block; color: #777c87; font: 8px var(--mono); letter-spacing: .1em; margin-bottom: 7px; }
.connection-box code { display: block; overflow-wrap: anywhere; color: #f3f3f5; font: 12px var(--mono); padding-right: 30px; }
.copy-command { position: absolute; right: 9px; bottom: 10px; border: 0; background: none; color: #9a9ea7; font: 17px var(--mono); }
.copy-command:hover { color: var(--red-light); }
.lab-timer-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 21px; }
.lab-timer-row span { color: #787c86; font: 9px var(--mono); letter-spacing: .08em; }
.lab-timer-row strong { font: 24px var(--mono); color: #f3f3f4; }
.lab-timer-row strong.timer-expired { color: var(--red-light); }
.timer-track { height: 3px; background: #2c2f37; margin-top: 10px; }
.timer-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--red-dark), var(--red-light)); transition: width 1s linear; }
.lab-note { display: flex; gap: 9px; padding: 11px; margin: 17px 0; border: 1px solid #493c24; background: rgba(166,120,42,.045); }
.lab-note > span { flex: 0 0 auto; display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid #8f6b32; border-radius: 50%; color: #eac77b; font: 10px var(--mono); }
.lab-note p { margin: 0; color: #a89b81; font-size: 10px; line-height: 1.6; }
.stop-lab-form { margin-top: 13px; }
.error-page { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.error-code { font: 110px/.95 var(--mono); font-weight: 700; letter-spacing: -.1em; color: var(--red); margin: 20px 0; text-shadow: 0 0 45px rgba(241,27,42,.2); }
.error-page h1 { font-size: 19px; margin: 0 0 25px; }
.site-footer { border-top: 1px solid #25272e; background: rgba(7,8,10,.72); padding: 21px 0; color: #a1a4ac; font: 9px var(--mono); letter-spacing: .07em; }
.footer-mark { color: var(--red); margin-right: 6px; }
.muted { color: #656974; }

@media (max-width: 991.98px) {
  .hero-grid { grid-template-columns: 1.15fr .75fr; gap: 20px; }
  .hero-copy h1 { font-size: clamp(30px, 4.8vw, 44px); }
  .hero-facts { gap: 22px; }
  .hero-emblem-wrap { padding: 0; }
  .auth-visual { padding: 28px; }
  .auth-card { padding: 32px 27px; }
  .task-detail-number { font-size: 43px; }
}
@media (max-width: 767.98px) {
  .page-shell { padding-top: 20px; padding-bottom: 48px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 38px; }
  .hero-copy { padding-top: 0; }
  .hero-copy h1 { font-size: clamp(32px, 8.5vw, 47px); }
  .hero-lead { font-size: 13px; }
  .hero-emblem-wrap { grid-row: 1; width: min(78%, 280px); justify-self: center; margin-bottom: 10px; }
  .hero-copy { grid-row: 2; }
  .hero-facts { margin-top: 33px; gap: 26px; }
  .hero-facts strong { font-size: 23px; }
  .section-heading h2 { font-size: 20px; }
  .progress-section, .tasks-section { padding-top: 36px; }
  .task-row { grid-template-columns: 39px minmax(0, 1fr) 34px; gap: 10px; padding: 15px 8px; }
  .task-id { font-size: 20px; }
  .task-row h3 { font-size: 13px; }
  .task-row p { font-size: 10px; }
  .task-open { width: 31px; height: 31px; }
  .login-nudge { align-items: flex-start; flex-wrap: wrap; }
  .login-nudge > div { flex: 1; min-width: 180px; }
  .text-link { margin-left: 44px; }
  .auth-layout { grid-template-columns: 1fr; margin: 14px auto; }
  .auth-visual { min-height: unset; padding: 26px; border-right: 0; border-bottom: 1px solid #2b2d34; }
  .auth-visual img { width: 72px; height: 72px; margin-bottom: 17px; }
  .auth-visual h2 { font-size: 23px; }
  .auth-visual p { margin-bottom: 0; }
  .auth-card { padding: 30px 24px; }
  .task-detail-header { align-items: flex-start; }
  .task-detail-number { font-size: 34px; }
  .task-detail-number span { font-size: 12px; }
  .markdown-content { padding: 20px; }
  .lab-panel { padding: 19px; }
  .site-footer .container { align-items: flex-start; }
}
@media (max-width: 420px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { justify-content: space-between; gap: 10px; }
  .hero-facts strong { font-size: 20px; }
  .task-group-label { gap: 8px; font-size: 9px; }
  .task-group-label i { font-size: 8px; }
  .task-row { grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 8px; }
  .task-id { font-size: 17px; }
  .flag-form { flex-direction: column; }
  .flag-form .btn { width: 100%; }
  .task-detail-header h1 { font-size: 25px; }
  .task-detail-number { font-size: 29px; }
  .lab-specs { grid-template-columns: 1fr 1fr; }
}
