@font-face{font-family:Inter;src:url('/inter-variable.ttf') format('truetype');font-weight:100 900;font-display:swap}
@font-face{font-family:'Instrument Sans';src:url('/instrument-sans-latin.woff2') format('woff2');font-weight:400 700;font-display:swap}
@font-face{font-family:'Noto Sans Bengali';src:url('/noto-sans-bengali.woff2') format('woff2');font-weight:400 600;font-display:swap;unicode-range:U+0980-09FE,U+200C-200D,U+0964-0965}
:root{--bg:#f6f8f8;--ink:#172124;--body:#4c5559;--muted:#6b757a;--line:#dce1e2;--cyan:#15c8e1;--cyan-deep:#10a8be;--green:#128458;--green-bg:#e4f8ef;--font:Inter,'Noto Sans Bengali',system-ui,sans-serif;--display:'Instrument Sans','Noto Sans Bengali',Inter,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:108px}body{margin:0;background:var(--bg);color:var(--font,Inter,sans-serif);font:400 15px/1.6 var(--font);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button,summary{cursor:pointer}button{border:0}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--cyan-deep);text-decoration:none}a:hover{color:#0d8fa2}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #15c8e180;outline-offset:4px}[hidden]{display:none!important}.skip{position:fixed;top:-100px;z-index:100;padding:12px 20px;background:var(--ink);color:white}.skip:focus{top:8px}h1,h2,h3,h4{font-family:var(--display);color:var(--ink);font-weight:600;line-height:1.2;margin:0 0 16px;letter-spacing:-.02em}p{margin:0 0 20px}svg{vertical-align:middle;flex-shrink:0}progress{appearance:none;border:0;border-radius:99px;background:#eceff0;overflow:hidden;height:6px;width:100%;display:block}progress::-webkit-progress-bar{background:#eceff0;border-radius:99px}progress::-webkit-progress-value{background:var(--cyan);border-radius:99px}progress::-moz-progress-bar{background:var(--cyan);border-radius:99px}
.site-header{position:sticky;top:0;z-index:50;background:#f6f8f8ed;backdrop-filter:blur(20px);border-bottom:1px solid #dce1e280}.header-inner{max-width:1280px;margin:auto;padding:16px 32px;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:78px}.brand{display:flex;align-items:center;gap:12px;flex-shrink:0;color:#181314}.brand>span{font:700 30px/1 var(--font);letter-spacing:-.045em}.brand img{display:block;object-fit:contain}.red-dot{color:#ff0f19}.brand .school-badge{font:600 12px/1 var(--font);letter-spacing:.04em;background:#181314;color:#fff;border-radius:99px;padding:6px 10px;margin-left:0}.main-navigation{display:flex;align-items:center;gap:4px}.main-navigation>a,.learn-menu>summary{padding:10px 14px;border-radius:8px;font-size:15px;line-height:1.2;color:#2f363b;font-weight:500;white-space:nowrap}.main-navigation>a:hover,.learn-menu>summary:hover,.main-navigation a.active,.learn-menu[open]>summary{background:#eceff0;color:var(--ink)}.main-navigation a.active{font-weight:600}.learn-menu{position:relative}.learn-menu>summary{display:flex;align-items:center;gap:8px;list-style:none}.learn-menu>summary::-webkit-details-marker{display:none}.learn-menu[open]>summary>span{transform:rotate(180deg)}.learn-dropdown{position:absolute;top:calc(100% + 12px);left:0;width:260px;max-height:75vh;overflow:auto;padding:8px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #17212414}.learn-dropdown>a{display:flex;align-items:center;gap:12px;border-radius:8px;padding:10px 12px;color:var(--ink);font-weight:500}.learn-dropdown>a:hover{background:var(--bg)}.menu-tile{width:32px;height:32px;display:grid;place-items:center;background:#e2f6f9;border-radius:8px;color:var(--cyan-deep);font-size:17px}.menu-tile.red{background:#ffe7e8;color:#ff0f19}.menu-tile.neutral{background:#eceff0;color:var(--ink)}.account-actions{display:flex;align-items:center;gap:8px;margin-left:8px}.account-actions .button{min-height:40px;padding:10px 16px;font-size:14px}.icon-button{display:none;background:transparent;font-size:24px;color:var(--ink);min-width:44px;min-height:44px}.shell{min-height:calc(100vh - 78px);display:flex;flex-direction:column}main{width:100%;max-width:1280px;margin:0 auto;padding:48px 32px 96px;flex:1;min-width:0}.page-footer{width:calc(100% - 64px);max-width:1216px;margin:0 auto;padding:24px 0 40px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--muted)}.footer-brand{gap:8px}.footer-brand>span{font:600 20px/1 var(--display);letter-spacing:-.02em}.overline{display:block;font-size:12px;font-weight:600;letter-spacing:.12em;line-height:1.2;text-transform:uppercase;color:var(--cyan-deep);margin:0 0 14px}.page-title,.submissions-title{font:600 clamp(20px,3vw,36px)/1.04 var(--display);letter-spacing:-.03em;margin:0 0 20px;color:var(--ink);overflow-wrap:anywhere}.lede,.submissions-lede{font-size:16px;color:var(--muted);line-height:1.7;margin-bottom:32px;max-width:780px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;margin-bottom:40px}.page-heading .page-title{margin-bottom:0}.section-heading{font:600 12px/1.3 var(--font);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:16px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:12px 20px;border:1px solid transparent;border-radius:8px;background:var(--cyan);color:var(--ink);font-size:14px;font-weight:600;line-height:1.2;text-align:center;transition:background .16s,border-color .16s}.button:hover{background:var(--cyan-deep);color:var(--ink)}.button.secondary{background:#fff;border-color:#bec5c8;color:#2f363b}.button.secondary:hover{background:#eceff0}.button.large{min-height:48px;padding:14px 24px;font-size:16px}.inline-link{font-size:14px;font-weight:600;color:#0d8fa2}.back-link,.breadcrumbs{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px;color:var(--muted);margin-bottom:32px}.back-link:hover{color:var(--cyan-deep)}.breadcrumbs>a{color:var(--cyan-deep)}.breadcrumbs>span[aria-hidden]{color:#909a9e}.summary-chips{display:flex;gap:8px;flex-wrap:wrap}.summary-chip{display:flex;align-items:baseline;gap:8px;padding:12px 16px;background:#fff;border:1px solid var(--line);border-radius:12px;font-size:13px;color:var(--muted)}.summary-chip strong{font:600 24px/1 var(--display);color:var(--ink);letter-spacing:-.02em}.summary-progress{min-width:185px;display:flex;flex-direction:column;justify-content:center;gap:10px;padding:12px 16px;background:white;border:1px solid var(--line);border-radius:12px;font-size:13px}.summary-progress>div{display:flex;justify-content:space-between;gap:15px}.summary-progress strong{color:var(--ink)}
.home-hero{border:1px solid var(--line);border-radius:24px;padding:clamp(40px,7vw,96px) 40px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:24px;background-color:#fff;background-image:linear-gradient(#1813140d 1px,transparent 1px),linear-gradient(90deg,#1813140d 1px,transparent 1px);background-size:32px 32px;margin-bottom:96px}.home-hero h1{max-width:900px;font:600 clamp(40px,7vw,80px)/1.02 var(--display);letter-spacing:-.03em;margin:0}.home-hero h1 span{color:var(--cyan-deep)}.home-hero p{font-size:19px;margin:0}.hero-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;padding-top:8px}.brand-rings{display:flex;align-items:flex-end;gap:10px;height:56px;flex-shrink:0}.brand-rings i{display:block;border-radius:99px;box-sizing:border-box}.brand-rings i:nth-child(1){width:12px;height:12px;background:#8d8f93}.brand-rings i:nth-child(2){width:24px;height:30px;border:6px solid #181314}.brand-rings i:nth-child(3){width:46px;height:56px;border:10px solid #ff0f19}.home-section{margin-bottom:80px}.home-section h2{font:600 clamp(36px,4.5vw,52px)/1.05 var(--display);letter-spacing:-.02em}.about-intro{font-size:clamp(19px,2vw,23px);line-height:1.6;color:#2f363b;max-width:960px;margin:28px 0 32px}.feature-grid,.quote-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.feature-card,.quote-card{padding:28px;border:1px solid var(--line);border-radius:16px;background:white}.feature-card .menu-tile{width:48px;height:48px;font-size:24px;border-radius:12px;margin-bottom:20px}.feature-card h3{font-size:22px}.feature-card p{font-size:16px;line-height:1.65;margin-bottom:20px}.home-callout,.connect-panel{background:var(--ink);color:white;border-radius:24px;padding:40px;margin-top:32px}.home-callout{display:flex;align-items:center;gap:24px}.home-callout h3{font-size:clamp(24px,3vw,34px);color:white;line-height:1.25;margin:0}.home-callout .brand-rings i:nth-child(2){border-color:white}.quote-card{margin:0;display:flex;flex-direction:column;gap:20px}.quote-card:first-child{grid-column:1/-1}.quote-mark{font:600 48px/.6 var(--display);color:#ff0f19;height:20px}.quote-card blockquote{font:500 23px/1.5 var(--display);color:var(--ink);margin:0;flex:1}.quote-card figcaption{color:var(--muted);font-size:14px}.connect-panel{background:#172124;padding:clamp(32px,6vw,56px) clamp(24px,5vw,48px);display:flex;justify-content:space-between;align-items:center;gap:32px;flex-wrap:wrap}.contact-copy{display:flex;flex-direction:column;gap:16px}.contact-label{margin:0;font:600 12px/1 var(--font,Inter,sans-serif);letter-spacing:.12em;text-transform:uppercase;color:#15c8e1}.connect-panel h2{margin:0;font:600 clamp(32px,4vw,48px)/1.05 var(--display);letter-spacing:-.02em;color:white}.contact-email{display:inline-flex;align-items:center;gap:12px;min-height:56px;padding:0 24px;border-radius:12px;background:#15c8e1;color:#172124;font:600 17px/1 var(--font,Inter,sans-serif);max-width:100%}.contact-email:hover{background:#10a8be;color:white}
.volume-section{margin-bottom:40px}.volume-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:16px}.volume-card{display:flex;flex-direction:column;justify-content:space-between;gap:28px;padding:24px;border:1px solid var(--line);border-radius:16px;background:white;color:var(--ink);transition:background .22s,color .22s}.volume-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.12em}.round-arrow{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:var(--bg);color:var(--font,Inter,sans-serif);transition:transform .22s,background .22s}.volume-number{font:600 clamp(72px,8vw,104px)/.85 var(--display);letter-spacing:-.05em}.volume-info{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:12px}.volume-info strong{font:600 18px/1.2 var(--display)}.volume-range{font:500 14px/1.4 ui-monospace,monospace;color:var(--muted)}.volume-bottom{display:flex;align-items:center;gap:12px;margin-top:12px}.volume-bottom>span{font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap}.volume-card:hover,.volume-card:focus-visible{background:var(--ink);border-color:var(--ink);color:white}.volume-card:hover .volume-number{color:var(--cyan)}.volume-card:hover .round-arrow{background:var(--cyan);color:var(--ink);transform:rotate(45deg)}.volume-card:hover .volume-top,.volume-card:hover .volume-range,.volume-card:hover .volume-bottom>span{color:#bec5c8}.volume-list-heading{display:flex;align-items:flex-end;gap:20px}.volume-list-heading .volume-number{color:var(--cyan);font-size:clamp(72px,9vw,120px)}.volume-list-heading h1{font-size:clamp(16px,2.25vw,24px);margin:0 0 10px;line-height:1}.volume-list-heading .overline{margin-bottom:10px}
.filter-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:24px}.filter-tabs{display:flex;gap:4px;padding:4px;background:#eceff0;border-radius:12px}.filter-tab{min-height:36px;padding:8px 16px;border-radius:8px;background:transparent;color:var(--muted);font-weight:600;font-size:14px}.filter-tab.active{background:#fff;color:var(--ink);box-shadow:0 1px 2px #17212414}.filters{display:flex;gap:10px;flex-wrap:wrap}.search-box{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 14px;border-radius:12px;border:1px solid var(--line);background:white;color:#909a9e}.search-box input{min-width:0;width:230px;background:transparent;color:var(--ink);border:0;outline:0;font-size:15px}.search-box:focus-within{outline:3px solid #15c8e180;outline-offset:2px}.volume-filter{min-height:44px;max-width:205px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--font,Inter,sans-serif);font-size:14px}.problem-list{background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden}.problem-row{display:flex;align-items:center;gap:20px;padding:18px 24px;border-bottom:1px solid #eceff0;color:var(--ink);transition:background .16s}.problem-row:last-child{border-bottom:0}.problem-row:hover{background:#f0fafb;color:var(--ink)}.problem-number{flex:0 0 68px;font:600 26px/1 var(--display);letter-spacing:-.03em}.problem-row:hover .problem-number{color:var(--cyan-deep)}.problem-row-name{flex:1;min-width:0;display:flex;align-items:center;gap:12px;flex-wrap:wrap;font:600 18px/1.3 var(--display)}.problem-row-name small{font:400 12px/1.3 var(--font);width:100%;color:var(--muted)}.problem-stats{width:280px;max-width:30%;display:flex;flex-direction:column;gap:10px}.problem-stats>div{display:flex;justify-content:space-between;gap:12px}.problem-stats span{font-size:12px;color:var(--muted);display:flex;flex-direction:column;gap:4px;line-height:1.2}.problem-stats b{font-size:14px;color:#2f363b;font-weight:600}.problem-stats progress{height:4px}.problem-row .round-arrow{width:32px;height:32px}.problem-row:hover .round-arrow{background:var(--cyan);color:var(--ink);transform:rotate(45deg)}.solved-label{font:600 12px/1 var(--font);padding:6px 9px;border-radius:99px;background:#e2f6f9;color:#0d8fa2;white-space:nowrap}.solved-label.tried{background:#fbf0e0;color:#b9761f}.table-footer{padding:16px 24px;color:var(--muted);font-size:13px}.empty{padding:48px 24px!important;text-align:center;color:var(--muted)}
.solve-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:14px 20px;background:white;border:1px solid var(--line);border-radius:14px;margin-bottom:24px}.solve-heading h1{font-size:20px;margin:0;letter-spacing:-.01em}.solve-heading .problem-id{font:500 12px/1.4 var(--font);color:var(--muted);display:block;margin-bottom:6px}.tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tag{display:inline-flex;gap:6px;align-items:center;padding:6px 12px;font-size:13px;line-height:1.3;border-radius:99px;background:#f6f8f8;border:1px solid #eceff0;color:var(--muted)}.tag.cyan{background:#e2f6f9;color:#0d8fa2;border-color:transparent}.solve-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:32px}.statement{min-width:0;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.statement-header{padding:clamp(24px,4vw,48px) clamp(24px,4vw,48px) 0}.statement-header h2{font-size:clamp(18px,2.5vw,28px);line-height:1.05;margin:0 0 20px}.statement-header .tags{margin-bottom:8px}.statement-body{padding:32px clamp(24px,4vw,48px) 48px;font-size:17px;line-height:1.7;color:#2f363b}.statement-body h1,.statement-body h2,.statement-body h3{font-size:22px;line-height:1.3;margin:28px 0 12px}.statement-body>h1:first-child,.statement-body>h2:first-child{margin-top:0}.statement-body p{margin-bottom:20px}.legacy-content{overflow-wrap:anywhere}.legacy-content img{max-width:100%;height:auto}.legacy-content table{max-width:100%;display:block;overflow-x:auto;border-collapse:collapse}.legacy-content td,.legacy-content th{padding:12px;border:1px solid var(--line)}.legacy-content pre{margin:16px 0 24px;padding:20px;border-radius:12px;background:var(--ink);color:white;font:500 16px/1.65 ui-monospace,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.legacy-content code{font:14px/1.6 ui-monospace,monospace}.statement-actions{display:flex;justify-content:flex-end;padding:0 clamp(24px,4vw,48px) 32px}.submission-panel{min-width:0;padding:32px;background:white;border:1px solid var(--line);border-radius:16px;scroll-margin-top:108px}.submission-heading{font-size:30px;margin-bottom:20px}.editor-card{background:var(--ink);border:1px solid var(--ink);border-radius:12px;overflow:hidden}.editor-tabs{display:flex;align-items:center;gap:4px;padding:8px 12px;border-bottom:1px solid #ffffff24;min-height:56px}.editor-tab{padding:10px 16px;border-radius:8px;background:transparent;color:#bec5c8;font-size:14px;font-weight:600}.editor-tab.active{background:var(--cyan);color:var(--ink)}.file-name{margin-left:auto;color:#909a9e;font:12px/1.4 ui-monospace,monospace}.editor-area{display:flex;height:360px;padding:24px 0 18px;overflow:hidden}.line-numbers{font:14px/1.8 ui-monospace,monospace;color:#6b757a;white-space:pre;text-align:right;padding:0 14px 0 20px;user-select:none}.editor-area textarea{border:0;outline:0;background:transparent;color:#e2ebed;caret-color:var(--cyan);font:14px/1.8 ui-monospace,Menlo,monospace;white-space:pre;min-width:0;flex:1;padding:0 20px 0 6px;resize:none;tab-size:4}.editor-status{display:flex;justify-content:space-between;gap:16px;padding:12px 20px;border-top:1px solid #ffffff1a;font-size:12px;color:#bec5c8}.editor-controls{margin-top:20px;background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 20px;border-bottom:1px solid #eceff0;font-size:14px;font-weight:600}.panel-heading span:last-child{font-size:12px;font-weight:400;color:var(--muted)}.custom-input{width:100%;min-height:110px;border:0;background:#fff;color:var(--ink);padding:16px 20px;resize:vertical;font:14px/1.7 ui-monospace,monospace}.editor-actions{display:flex;justify-content:flex-end;gap:12px;margin:20px 0 12px}.editor-help{font-size:13px;color:var(--muted);margin:0;line-height:1.7}
.table-card,.white-panel{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.scroll-table{overflow-x:auto}.sub-table{width:100%;border-collapse:collapse;text-align:left}.sub-table th{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);padding:18px 24px;border-bottom:1px solid var(--line);background:#fcfdfd;white-space:nowrap}.sub-table td{font-size:14px;padding:22px 24px;border-bottom:1px solid #eceff0}.sub-table tr:last-child td{border-bottom:0}.sub-table tbody tr:hover{background:#f8fcfc}.problem-title{display:block;font:600 18px/1.4 var(--display);color:var(--ink)}.sub-table td a:not(.button):hover{color:var(--cyan-deep)}.verdict-tag{padding:6px 10px;border-radius:99px;background:var(--green-bg);color:var(--green);font-size:12px;font-weight:600;white-space:nowrap}.verdict-tag.wrong{background:#fbf0e0;color:#b9761f}.pagination{display:flex;justify-content:center;align-items:center;gap:20px;flex-wrap:wrap;margin:28px 0 0;font-size:13px;color:var(--muted)}.result-intro{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:32px}.result-intro h1{font-size:clamp(20px,3vw,36px);letter-spacing:-.03em;margin-bottom:12px}.result-intro p:last-child{margin-bottom:0;color:var(--muted)}.result-banner{display:flex;align-items:center;gap:20px;padding:32px;border-radius:16px;border:1px solid #c8e9db;background:#f0faf5;margin-bottom:24px}.verdict-icon{display:grid;place-items:center;width:56px;height:56px;flex-shrink:0;border-radius:50%;background:#ddf3e7;color:var(--green);font-size:28px}.result-banner h2{font-size:32px;color:var(--green);margin-bottom:8px}.result-banner p{font-size:15px;margin:0;color:#527360}.result-banner.wrong-result{background:#fff5f1;border-color:#f1d1c6}.wrong-result h2{color:#c93e1c}.wrong-result .verdict-icon{background:#fbe3d9;color:#c93e1c}.wrong-result p{color:#91695a}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:32px}.metric{padding:24px;background:white;border:1px solid var(--line);border-radius:16px;min-width:0}.metric-label{display:block;font-size:13px;color:var(--muted);margin-bottom:16px}.metric-value{font:600 36px/1.2 var(--display);letter-spacing:-.02em;color:var(--ink)}.metric-value small{font:400 14px var(--font);color:var(--muted);margin-left:6px}.metric-note{display:block;margin-top:12px;font-size:12px;color:var(--muted)}.white-panel{padding:28px}.white-panel h3{font-size:22px}.white-panel+.white-panel{margin-top:24px}.saved-code{background:var(--ink);color:#e2ebed;border-radius:12px;padding:24px;font:14px/1.8 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;margin:20px 0 0}.source-panel{margin-top:24px}.source-panel summary{font-weight:600;cursor:pointer;color:var(--ink)}.auth-panel{width:100%;max-width:560px;margin:16px auto 0;padding:40px}.auth-panel h1{font-size:44px;letter-spacing:-.03em}.auth-panel p{font-size:15px;color:var(--muted)}.auth-panel form{margin:28px 0}.auth-panel label,.admin-form label{display:block;font-size:14px;font-weight:600;margin:20px 0;color:#2f363b}.auth-panel input,.auth-panel select,.admin-form input:not([type=checkbox]),.admin-form select,.admin-form textarea{display:block;width:100%;padding:13px 14px;border:1px solid #bec5c8;border-radius:8px;margin-top:8px;background:white;color:var(--ink);font:400 15px/1.5 var(--font)}.auth-panel form>.button{width:100%;margin-top:8px}.auth-links{display:flex;gap:12px 20px;flex-wrap:wrap;border-top:1px solid #eceff0;padding-top:24px}.auth-links .inline-link{font-size:13px}.admin-nav{display:flex;gap:4px;flex-wrap:wrap;background:#eceff0;border-radius:12px;padding:4px;margin:28px 0}.admin-nav .button{background:transparent;border:0;padding:10px 16px;min-height:40px}.admin-nav .button.active{background:white;color:var(--ink);box-shadow:0 1px 2px #17212414}.admin-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:24px 0}.admin-form{max-width:1000px;padding:32px}.admin-form textarea{font:14px/1.7 ui-monospace,monospace}.admin-form input[type=checkbox]{accent-color:var(--cyan-deep);width:18px;height:18px;vertical-align:middle}.admin-form input[type=file]{padding:14px}.resource-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:16px}.resource-card{display:flex;flex-direction:column;align-items:flex-start;gap:20px;min-height:185px;padding:28px;border-radius:16px;border:1px solid var(--line);background:white;color:var(--ink)}.resource-card:hover{border-color:var(--cyan-deep);color:var(--ink)}.resource-card .resource-index{color:var(--cyan-deep);font:600 30px/1 var(--display)}.resource-card h2{font-size:22px;margin:0;flex:1}.resource-card>span:last-child{color:var(--cyan-deep);font-size:14px;font-weight:600}.profile-summary{display:flex;align-items:center;gap:20px;margin-bottom:24px}.avatar{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#e2f6f9;color:var(--cyan-deep);font:600 28px var(--display);flex-shrink:0}#form-message:not(:empty),#problem-message:not(:empty),#tests-message:not(:empty),#content-message:not(:empty){padding:12px 16px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);overflow-wrap:anywhere}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,12px);z-index:80;max-width:90vw;padding:14px 20px;border-radius:12px;background:var(--ink);color:white;box-shadow:0 8px 24px #17212426;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:1100px){.header-inner{gap:16px}.main-navigation>a,.learn-menu>summary{padding:10px;font-size:14px}.brand>span{font-size:26px}.brand{gap:8px}.brand img{width:40px}.account-actions{margin-left:0}.account-actions .button{padding:10px 12px}.brand .school-badge{font-size:11px}.problem-stats{width:240px}}
@media(max-width:900px){.header-inner{padding:14px 24px;flex-wrap:wrap}.icon-button{display:block}.main-navigation{display:none;width:100%;align-items:stretch;flex-direction:column;padding:12px 0}.menu-open .main-navigation{display:flex}.main-navigation>a,.learn-menu>summary{padding:14px;font-size:15px}.learn-dropdown{position:static;width:100%;box-shadow:none;margin-top:8px}.account-actions{margin-top:12px;gap:12px}.account-actions .button{flex:1}.main-navigation .learn-menu>summary{justify-content:space-between}main{padding:40px 24px 72px}.page-footer{width:calc(100% - 48px)}.problem-stats{max-width:32%}.sub-table td,.sub-table th{padding:18px}.problem-row{gap:16px;padding:18px}.home-hero{padding:64px 24px;margin-bottom:64px}.home-section{margin-bottom:64px}.home-callout,.connect-panel{padding:32px}}
@media(max-width:600px){html{scroll-padding-top:92px}body{font-size:14px}.header-inner{padding:12px 16px;min-height:72px}.brand>span{font-size:26px}.brand img{width:40px;height:26px}.brand .school-badge{font-size:10px;padding:6px 8px}main{padding:32px 16px 64px}.page-footer{width:calc(100% - 32px);font-size:12px;padding-bottom:28px;gap:20px}.page-footer>span{order:3;width:100%}.page-heading{align-items:flex-start;gap:24px;margin-bottom:28px}.page-title,.submissions-title{font-size:20px}.submissions-lede,.lede{font-size:15px}.summary-chips{gap:8px}.summary-chip{padding:10px 12px;font-size:12px}.summary-chip strong{font-size:22px}.home-hero{padding:48px 20px;gap:24px;border-radius:20px;margin-bottom:56px}.home-hero h1{font-size:44px}.home-hero p{font-size:16px}.home-hero .button{font-size:14px}.feature-grid,.quote-grid{grid-template-columns:1fr}.feature-card,.quote-card{padding:24px}.quote-card:first-child{grid-column:auto}.quote-card blockquote{font-size:21px}.about-intro{font-size:18px}.home-section h2{font-size:36px}.home-callout{padding:28px;flex-direction:column;align-items:flex-start}.home-callout h3{font-size:26px}.connect-panel{padding:28px}.volume-card{gap:28px}.volume-grid{grid-template-columns:1fr}.volume-list-heading{gap:16px}.volume-list-heading .volume-number{font-size:80px}.volume-list-heading h1{font-size:16px}.filter-bar{align-items:stretch;gap:16px}.filter-tabs{width:100%}.filter-tab{flex:1;padding:10px 8px}.filters{width:100%;flex-wrap:nowrap}.search-box{flex:1;min-width:0}.search-box input{width:100%}.volume-filter{max-width:135px;font-size:12px}.problem-row{display:grid;grid-template-columns:48px minmax(0,1fr) 32px;gap:14px;padding:20px 16px}.problem-number{font-size:24px}.problem-row-name{font-size:18px}.problem-stats{grid-column:2;grid-row:2;width:100%;max-width:none;margin-top:2px}.problem-row>.round-arrow{grid-column:3;grid-row:1}.problem-stats>div{gap:8px}.problem-stats span{font-size:11px}.problem-stats b{font-size:13px}.solved-label{font-size:11px}.breadcrumbs{font-size:12px;gap:8px;margin-bottom:24px}.solve-heading{padding:16px;align-items:flex-start}.solve-heading h1{font-size:18px}.solve-heading .tags{gap:6px}.tag{font-size:12px;padding:6px 10px}.statement-header{padding:24px 20px 0}.statement-header h2{font-size:18px}.statement-body{padding:24px 20px 32px;font-size:16px;line-height:1.75}.statement-body h2{font-size:22px}.statement-body pre{padding:16px;font-size:14px}.statement-actions{padding:0 20px 24px}.submission-panel{padding:20px}.submission-heading{font-size:26px}.editor-tabs{gap:2px;padding:8px}.editor-tab{font-size:12px;padding:10px 12px}.file-name{display:none}.editor-area{height:320px}.line-numbers{font-size:13px;padding-left:12px;padding-right:8px}.editor-area textarea{font-size:13px;padding-right:12px}.editor-status{font-size:10px;padding:12px}.panel-heading{padding:12px;font-size:13px;align-items:flex-start}.panel-heading span:last-child{max-width:120px;text-align:right;font-size:11px}.custom-input{padding:14px;font-size:13px}.editor-actions .button{font-size:13px;padding:12px;flex:1}.editor-help{font-size:12px}.sub-table{min-width:560px}.sub-table td,.sub-table th{padding:16px;font-size:13px}.sub-table th{font-size:10px}.pagination{gap:12px;font-size:12px}.pagination .button{font-size:12px;padding:10px 12px}.result-intro{flex-direction:column;align-items:flex-start;gap:20px}.result-intro h1{font-size:20px}.result-banner{padding:24px 20px;align-items:flex-start;gap:14px}.result-banner h2{font-size:26px}.verdict-icon{width:42px;height:42px;font-size:22px}.result-banner p{font-size:13px}.metrics{grid-template-columns:1fr;gap:12px}.metric{padding:20px}.metric-value{font-size:32px}.white-panel{padding:24px}.auth-panel{margin-top:0;padding:28px 24px}.auth-panel h1{font-size:36px}.auth-panel input,.auth-panel select{font-size:16px}.auth-links{gap:12px 16px}.admin-form{padding:24px}.admin-nav .button{padding:10px 12px;font-size:13px}.admin-actions .search-box{width:100%}.admin-actions .search-box input{width:100%}.resource-grid{grid-template-columns:1fr}.resource-card{padding:24px;min-height:165px}.saved-code{font-size:12px;padding:16px}.profile-summary{align-items:flex-start;gap:14px}.avatar{width:48px;height:48px;font-size:22px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}
.learn-menu:has(a.active)>summary{background:#eceff0;color:var(--ink);font-weight:600}.home-hero h1{text-wrap:balance}
/* Problem details follow the supplied three-tab layout. */
.detail-toolbar{padding:8px 8px 8px 20px;gap:16px}.detail-title{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.detail-title h1{font-size:18px;line-height:1.3}.detail-title>span{font-size:13px;color:var(--muted)}.detail-tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:white}.detail-tabs>button{display:flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 18px;border-radius:8px;background:transparent;color:var(--muted);font-size:14px;font-weight:600;white-space:nowrap}.detail-tabs>button:hover{background:var(--bg)}.detail-tabs>button[aria-selected=true]{background:#172124;color:#fff;box-shadow:0 1px 2px rgba(23,33,36,.12)}.detail-tabs>button>span{font-size:17px}.detail-code-panel{display:flex;flex-direction:column;gap:16px;min-width:0}.editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid #ffffff24}.editor-toolbar .editor-tabs{min-height:0;padding:3px;border:0;border-radius:10px;background:#ffffff0f}.editor-toolbar .editor-tab{padding:8px 14px;font-size:13px}.editor-tools{display:flex;align-items:center;gap:12px}.editor-file-button,.editor-reset{position:relative;display:inline-flex;align-items:center;min-height:32px;padding:7px 10px;border:1px solid #ffffff24;border-radius:8px;background:transparent;color:#bec5c8;font-size:12px;line-height:1.2;cursor:pointer}.editor-file-button input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.editor-file-button:focus-within{outline:3px solid #15c8e180;outline-offset:3px}.editor-reset:hover,.editor-file-button:hover{background:#ffffff12}.execution-panel{border:1px solid var(--line);border-radius:16px;background:white;overflow:hidden}.execution-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid #eceff0}.execution-heading h2,#inline-result h3,.input-label{font:600 12px/1.3 var(--font);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0}.execution-heading .button{min-height:40px;font-size:14px;padding:10px 16px}.execution-body{display:flex;flex-direction:column;gap:16px;padding:16px}.execution-body p{margin:0}.input-label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.text-button{border:0;background:none;padding:0;letter-spacing:0;text-transform:none;font-size:12px}.execution-body .custom-input{display:block;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:12px 14px;min-height:110px}.official-note{padding:12px 14px;border-radius:10px;background:var(--bg);border:1px solid #eceff0;font-size:14px;line-height:1.5}#inline-result h3{margin-bottom:10px}.inline-idle{padding:16px;border:1px dashed var(--line);border-radius:10px;font-size:14px;color:var(--muted)}.inline-error{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #f6c7b9;border-radius:10px;padding:14px 16px;background:#fdece7;color:#9e3216;font:400 13px/1.6 ui-monospace,monospace}.inline-verdict{padding:16px;border-radius:12px;font:600 22px/1.3 var(--display)}.inline-verdict.success{background:#e4f8ef;color:#128458}.inline-verdict.attention{background:#fbf0e0;color:#b9761f}.inline-metrics{font-size:13px;color:var(--muted);padding:12px 0}.execution-body .saved-code{margin:12px 0 16px}.detail-code-panel .editor-area{height:360px}
@media(max-width:600px){.detail-toolbar{padding:12px;gap:16px}.detail-tabs{width:100%}.detail-tabs>button{flex:1;padding:0 10px;font-size:13px}.detail-title{gap:6px 12px}.detail-title h1{font-size:18px}.editor-toolbar{padding:12px}.editor-tools{flex-wrap:wrap;gap:10px;width:100%;justify-content:flex-end}.editor-toolbar .editor-tabs{width:100%;justify-content:space-between}.editor-toolbar .editor-tab{font-size:12px;padding:8px 13px}.editor-tools .file-name{display:block;margin-right:auto}.execution-heading{padding:12px}.execution-heading .button{font-size:12px;padding:10px 12px}.execution-heading h2{font-size:11px}.execution-body{padding:14px}.detail-code-panel .editor-area{height:320px}}
#problem-panel .statement-body p{margin:0 0 12px}
#problem-panel .statement-body p:has(>strong:only-child){margin-top:24px;margin-bottom:10px}
#problem-panel .statement-body p:first-child{margin-top:0}
#problem-panel .statement-body p:last-child{margin-bottom:0}
.problem-samples{padding:0 clamp(24px,4vw,48px) 32px}.sample-case{display:flex;gap:16px;flex-wrap:wrap}.sample-case+.sample-case{margin-top:24px}.sample-column{flex:1 1 220px;min-width:0}.sample-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.sample-heading h3{font-size:21px;margin:0}.sample-copy{min-height:32px;padding:6px 12px;font-size:13px}.sample-column pre{margin:0;padding:20px;border-radius:12px;background:#eceff0;color:#172124;font:500 16px/1.6 ui-monospace,monospace;white-space:pre;overflow-x:auto}.statement-notes{padding:0 clamp(24px,4vw,48px) 24px;font-size:15px}.problem-setter{padding:24px clamp(24px,4vw,48px);border-top:1px solid var(--line);font-size:14px;color:var(--muted)}.problem-setter strong{color:var(--ink);font-weight:500}.sample-editor{border:1px solid var(--line);border-radius:12px;margin:28px 0;padding:24px;min-width:0}.sample-editor legend{font-weight:600;color:var(--ink);padding:0 8px}.sample-editor-case{padding:20px;border:1px solid var(--line);border-radius:12px;margin-bottom:20px;background:var(--bg)}.sample-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.sample-editor-heading h3{font-size:18px;margin:0}.sample-editor-case textarea:disabled{background:#eceff0}.sample-editor-case label:has(input[type=checkbox]){font-weight:400;font-size:13px}@media(max-width:600px){.problem-samples{padding:0 20px 24px}.sample-heading h3{font-size:19px}.sample-column pre{font-size:14px;padding:16px}.statement-notes{padding:0 20px 20px}.problem-setter{padding:20px}.sample-editor{padding:16px}.sample-editor-case{padding:16px}}
.problem-attribution>hr{margin:0;border:0;border-top:1px solid var(--line)}
.problem-attribution .statement-notes{padding-top:24px;padding-bottom:16px}
.problem-attribution .statement-notes p:last-child{margin-bottom:0}
.problem-attribution .problem-setter{border-top:0}
.problem-attribution:has(.statement-notes) .problem-setter{padding-top:0}
#problem-panel .statement-body{padding-top:12px}
@media(max-width:600px){#problem-panel .statement-body{padding-top:7px}}
.language-version{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border-radius:99px;background:#15c8e124;color:#15c8e1;font-size:12px;font-weight:600;line-height:1.3;white-space:nowrap}
.sample-column{display:flex;flex-direction:column}
.sample-column pre{flex:1}
.result-banner.pending-result{background:#e2f6f9;border-color:#cceaf0}.pending-result h2,.pending-result p{color:var(--ink)}.pending-result .verdict-icon{background:#cceaf0;color:#0d8fa2}

@media(max-width:600px){.connect-panel{padding:32px 24px}.contact-email{font-size:14px;padding:0 14px}}

main:has(> .connect-panel){padding-bottom:64px}

.explore-section{display:flex;flex-direction:column;gap:32px}
.explore-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap}
.explore-heading-copy{display:flex;flex-direction:column;gap:12px}
.explore-label{font:600 12px/1 Inter,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#10A8BE}
.explore-title{margin:0;font:600 clamp(36px,4.5vw,52px)/1.05 'Instrument Sans',sans-serif;letter-spacing:-0.02em;color:#172124}
.explore-caption{margin:0;font:400 16px/1.5 Inter,sans-serif;color:#6B757A}
.explore-card{border-radius:24px;background:#fff;border:1px solid #DCE1E2;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));overflow:hidden}
.explore-copy{padding:clamp(24px,5vw,40px);display:flex;flex-direction:column;gap:20px}
.explore-kicker{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.explore-category{font:600 12px/1 Inter,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#6B757A}
.explore-subtitle{margin:0;font:600 clamp(32px,3.6vw,44px)/1.08 'Instrument Sans',sans-serif;letter-spacing:-0.02em;color:#172124}
.explore-description{margin:0;max-width:460px;font:400 17px/1.6 Inter,sans-serif;color:#4C5559}
.explore-actions{display:flex;flex-direction:column;gap:16px;align-items:flex-start;margin-top:8px}
.explore-buttons{display:flex;gap:12px;flex-wrap:wrap}
.explore-hint{font:400 13px/1.5 Inter,sans-serif;color:#6B757A}
.example-side{background:#E2F6F9;display:grid;place-items:center;padding:clamp(24px,5vw,40px);min-height:280px;min-width:0}
.example-wrap{width:100%;max-width:none;display:flex;flex-direction:column;gap:16px}
.example-panel{border-radius:16px;background:#172124;padding:20px;display:flex;flex-direction:column;gap:4px;font:500 clamp(12px,3.2vw,14px)/1.6 ui-monospace,Menlo,monospace;min-height:200px;overflow-x:auto}
.example-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.example-dots{display:flex;gap:6px}
.example-dot{width:10px;height:10px;border-radius:999px;background:#4C5559}
.example-filename{font:500 12px/1 Inter,sans-serif;color:#909A9E}
.example-output{margin-top:8px;color:#15C8E1}
.example-tabs{display:flex;padding:4px;border-radius:10px;background:#ccebf0;gap:4px}.example-tabs button{flex:1;border:0;border-radius:7px;background:transparent;color:#4c5559;font-weight:600;padding:10px 12px;min-height:40px}.example-tabs button[aria-selected="true"]{background:white;color:#172124;box-shadow:0 1px 3px #17212415}#home-code-content{display:block;font:inherit;color:white;white-space:pre;line-height:1.65;min-height:138px}.example-panel{max-width:100%}.example-output{display:block}@media(max-width:600px){.explore-caption{font-size:14px}.explore-heading{align-items:flex-start}.explore-copy,.example-side{padding:24px}}

.editor-language-group{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;min-width:0}.playground-time-limit{font-size:12px;color:#aeb8bc;white-space:nowrap;padding:8px 12px 8px 0}

.run-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px}.run-actions .inline-link{font-size:13px}

.playground-io{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:20px}.playground-io>div{min-width:0}.playground-io .custom-input{min-height:180px}.playground-io .inline-idle{min-height:180px}.playground-io .saved-code{max-width:100%;overflow:auto}@media(max-width:600px){.playground-io{grid-template-columns:minmax(0,1fr)}}

.editor-area.enhanced-editor{display:block;padding:0}.enhanced-editor .cm-editor{width:100%}.enhanced-editor .cm-scroller{scrollbar-color:#536268 #172124}.enhanced-editor .cm-content{caret-color:var(--cyan)}

.run-sign-in{font-size:13px}

.submit-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px}

.editor-reset{gap:6px}

.select-control{position:relative;display:inline-flex;min-width:0}.select-control .volume-filter{appearance:none;padding:0 44px 0 14px;color:var(--ink);width:100%}.select-control>svg{position:absolute;right:16px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--muted)}.sort-control{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}.sort-control .volume-filter{min-width:170px}.filters{align-items:center}@media(max-width:600px){.filters{flex-wrap:wrap}.filters .search-box{flex-basis:100%}.sort-control{flex:1}.sort-control .select-control{flex:1}.sort-control .volume-filter{min-width:0;max-width:none}.filters>.select-control{flex:1}.filters>.select-control .volume-filter{max-width:none}}

.volume-list-heading{align-items:center}.volume-list-heading .volume-number{font-size:clamp(48px,6vw,72px)}.volume-list-heading h1{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin:0}.volume-list-heading h1 .volume-range{letter-spacing:normal;white-space:nowrap}

.password-settings{margin:28px 0;padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.password-settings summary{font-weight:600;color:var(--ink)}.password-settings>p{font-size:14px;color:var(--muted);margin:16px 0}.password-settings form{margin-top:20px}

.centered-auth-links{justify-content:center;text-align:center}

.verdict-tag.pending{background:#e2f6f9;color:#0d7180}

/* Verdict colors shared by recent submissions and personal history. */
.verdict-tag[data-verdict]{display:inline-flex;align-items:center;background:#edf0f2;color:#475569}
.verdict-tag[data-verdict="0"]{background:#edf0f2;color:#475569}
.verdict-tag[data-verdict="1"]{background:#dbeafe;color:#1e40af}
.verdict-tag[data-verdict="2"]{background:#e4f8ef;color:#116b42}
.verdict-tag[data-verdict="3"]{background:#fee2e2;color:#991b1b}
.verdict-tag[data-verdict="4"]{background:#f3e8ff;color:#6b21a8}
.verdict-tag[data-verdict="5"]{background:#fef3c7;color:#854d0e}
.verdict-tag[data-verdict="6"]{background:#ffedd5;color:#9a3412}
.verdict-tag[data-verdict="7"]{background:#cffafe;color:#155e75}
.verdict-tag[data-verdict="8"]{background:#fce7f3;color:#9d174d}
.verdict-tag[data-verdict="9"]{background:#e0e7ff;color:#3730a3}
.verdict-tag[data-verdict="10"]{background:#374151;color:#ffffff}

.output-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:10px;min-height:16px}
#inline-result .output-heading h3{margin:0}
.output-metrics{color:var(--muted);font-size:12px;line-height:1.3;text-align:right;white-space:nowrap}
.output-box{min-height:180px;max-height:420px;overflow:auto;padding:16px;border:1px dashed var(--line);border-radius:10px;font-size:14px;line-height:1.6}
.output-box pre{margin:0;white-space:pre;font:400 13px/1.6 ui-monospace,monospace}
.output-placeholder{color:var(--muted)}
.output-box .output-error{color:#9e3216}
.output-box .output-verdict{font-weight:600;margin:0 0 10px}
.output-box pre+pre{margin-top:12px}
