:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#11243f;background:#f4f8ff}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(180deg,rgba(37,99,235,.12),transparent 360px),#f4f8ff}button,textarea,input{font:inherit}button{cursor:pointer}.app-shell{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:40px 0}.hero{margin-bottom:28px}.hero-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.eyebrow{margin:0 0 8px;color:#1d4ed8;text-transform:uppercase;letter-spacing:.12em;font-size:.78rem;font-weight:800}.hero h1{margin:0;color:#0f2d52;font-size:clamp(2rem,5vw,3.6rem);line-height:1.05}.app-menu{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.app-menu button{min-height:40px;padding:9px 14px;color:#153a66;background:#fff;border:1px solid #c7daf4;border-radius:8px;font-weight:800}.app-menu button:hover,.app-menu button.active{color:#fff;background:#2563eb;border-color:#2563eb}.login-display{display:flex;align-items:center;gap:12px;min-height:40px;color:#153a66;font-weight:700}.login-display button,.login-button{min-height:40px;padding:9px 14px;color:#fff;background:#0f2d52;border:1px solid #0f2d52;border-radius:8px;font-weight:800}.login-display button:hover,.login-button:hover{background:#2563eb;border-color:#2563eb}.login-button:disabled{cursor:not-allowed;opacity:.62}.login-button:disabled:hover{background:#0f2d52;border-color:#0f2d52}.login-status{color:#52677f;font-weight:700}.login-gate{display:grid;justify-items:start;gap:14px;padding:28px;border:1px solid #d7e4f7;border-radius:8px;background:#ffffffeb;box-shadow:0 18px 50px #2563eb1f}.login-gate h1,.login-gate p{margin:0}.login-gate p{color:#52677f;font-weight:700}.hero p:last-child{max-width:760px;color:#52677f;line-height:1.7}.workspace{display:grid;grid-template-columns:360px 1fr;gap:22px;align-items:start}.task-list,.task-panel,.history{border:1px solid #d7e4f7;background:#ffffffeb;border-radius:8px;box-shadow:0 18px 50px #2563eb1f}.task-list{padding:18px}.task-group+.task-group{margin-top:24px;padding-top:18px;border-top:1px solid #dbe8f8}.task-group h2,.terminal-variant-list h2,.history h2{margin:0 0 12px;color:#153a66;font-size:1rem}.terminal-variant-list{display:grid;gap:12px}.terminal-variant{border:1px solid #d9e6f7;border-radius:8px;background:#fff;overflow:hidden}.variant-toggle{width:100%;display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;min-height:48px;padding:12px 14px;color:#153a66;text-align:left;background:#f7fbff;border:0;font-weight:800}.variant-toggle:before{content:"›";width:18px;grid-column:1;grid-row:1;color:#1d4ed8;transform:rotate(0);transition:transform .16s ease}.variant-toggle span:first-child{grid-column:1;padding-left:22px}.variant-toggle span:last-child{color:#5f7896;font-size:.86rem}.variant-toggle.expanded:before{transform:rotate(90deg)}.variant-toggle:hover{background:#eef5ff}.variant-task-list{padding:12px;border-top:1px solid #eef3fb}.variant-task-list .task-card:last-child{margin-bottom:0}.task-card{width:100%;display:flex;gap:12px;align-items:center;min-height:54px;padding:13px 14px;margin-bottom:10px;color:#17314f;text-align:left;border:1px solid #d9e6f7;border-radius:8px;background:#fff;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.task-card:hover,.task-card.active{border-color:#2563eb;background:#eef5ff;box-shadow:0 8px 24px #2563eb24}.task-number{color:#1d4ed8;font-weight:800}.task-panel{overflow:hidden}.panel-header{display:flex;align-items:center;gap:12px;padding:16px 20px;color:#0f2d52;background:#eaf3ff;border-bottom:1px solid #d7e4f7}.task-badge{padding:6px 10px;color:#fff;background:#2563eb;border-radius:999px;font-size:.78rem;font-weight:800}.panel-body{padding:22px}.task-description{color:#52677f;line-height:1.6}.task-description p{margin:0 0 14px}.task-description p:last-child{margin-bottom:0}.task-meta{display:grid;gap:8px;margin:0 0 18px;padding:12px 14px;color:#17314f;background:#f7fbff;border:1px solid #d7e4f7;border-radius:8px;font-size:.92rem}.network-table-wrap{margin:0 0 16px;overflow-x:auto;border:1px solid #d7e4f7;border-radius:8px;background:#fff}.markdown-table-wrap{margin:14px 0 16px}.markdown-table{min-width:520px}.network-table{width:100%;min-width:760px;border-collapse:collapse}.network-table th,.network-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #eef3fb;white-space:nowrap}.network-table th{color:#153a66;background:#eaf3ff;font-weight:800}.network-table td{color:#17314f}.terminal-label{display:block;margin-bottom:8px;color:#1d4ed8;font-family:Fira Code,Consolas,monospace;font-weight:700}.terminal-input-area{display:grid;grid-template-columns:max-content 1fr;min-height:306px;padding:18px 16px;border:1px solid #1c3559;border-radius:8px;background:#071426}.terminal-prefix-lines{display:grid;grid-auto-rows:24px;padding:0;color:#60a5fa;font-family:Fira Code,Consolas,monospace;font-size:.95rem;line-height:24px;white-space:pre;-webkit-user-select:none;user-select:none}.terminal-prefix-lines span{padding-right:10px}.expected-commands{margin:0 0 16px;border:1px solid #d7e4f7;border-radius:8px;background:#f7fbff}.expected-commands summary{padding:12px 14px;color:#153a66;font-weight:800;cursor:pointer}.expected-commands pre,.missing-commands pre{margin:0;padding:14px;overflow-x:auto;color:#eaf3ff;background:#0d2240;font-family:Fira Code,Consolas,monospace;font-size:.9rem;line-height:1.55}textarea{width:100%;min-height:250px;resize:vertical;padding:0;color:#eaf3ff;caret-color:#fff;background:transparent;border:0;border-radius:0;outline:none;font-family:Fira Code,Consolas,monospace;font-size:.95rem;line-height:24px;overflow:hidden;box-shadow:none}textarea:focus{box-shadow:none}textarea::placeholder{color:#7f93ad}.primary-button{margin-top:16px;min-height:44px;padding:11px 18px;color:#fff;background:#2563eb;border:0;border-radius:8px;font-weight:800}.primary-button:hover{background:#1d4ed8}.secondary-button{min-height:38px;padding:8px 12px;color:#153a66;background:#fff;border:1px solid #c7daf4;border-radius:8px;font-weight:800}.secondary-button:hover{border-color:#2563eb;color:#1d4ed8}.secondary-button:disabled{cursor:not-allowed;opacity:.62}.danger-button{color:#b42318;border-color:#fecaca}.danger-button:hover{color:#991b1b;border-color:#ef4444}.check-result{display:grid;gap:8px;margin-top:16px;padding:14px;border-radius:8px;border:1px solid}.check-result.correct{color:#065f46;background:#ecfdf5;border-color:#a7f3d0}.check-result.incorrect{color:#991b1b;background:#fef2f2;border-color:#fecaca}.missing-commands{display:grid;gap:8px}.upload-box{display:grid;place-items:center;min-height:150px;padding:22px;color:#153a66;text-align:center;border:2px dashed #93b7ed;border-radius:8px;background:#f7fbff}.upload-box span{display:block;color:#1d4ed8;font-weight:800}.upload-box small{display:block;margin-top:6px;color:#5f7896}.file-input{width:100%;margin-top:12px;color:#17314f}.error-message{margin:14px 0 0;color:#b42318;font-weight:700}.file-table,.results-panel{margin-top:18px;border:1px solid #d7e4f7;border-radius:8px;overflow:hidden;background:#fff}.table-heading,.file-row,.result-row{display:grid;align-items:center;gap:12px;padding:13px 16px}.table-heading{grid-template-columns:1fr auto;color:#0f2d52;background:#eaf3ff;border-bottom:1px solid #d7e4f7}.table-heading span,.file-row small{color:#5f7896}.file-row{grid-template-columns:1fr auto;border-bottom:1px solid #eef3fb}.file-row span{overflow-wrap:anywhere}.file-table .primary-button{margin:16px}.java-workbench{display:grid;gap:16px}.code-workspace{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:620px;overflow:hidden;border:1px solid #1c3559;border-radius:8px;background:#08111f}.code-sidebar{display:grid;grid-template-rows:auto auto auto 1fr;gap:10px;padding:12px;color:#dbeafe;background:#0d1b2e;border-right:1px solid #1c3559}.code-sidebar-header{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:32px;color:#eaf3ff}.code-sidebar-header span{color:#93c5fd;font-size:.85rem;font-weight:800}.code-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.code-actions .secondary-button,.import-button{min-height:34px;padding:7px 9px;color:#dbeafe;background:#12243c;border-color:#274568;text-align:center}.code-actions .secondary-button:hover,.import-button:hover{color:#fff;border-color:#60a5fa}.import-button input{display:none}.file-tree{display:grid;align-content:start;gap:1px;min-height:0;overflow:auto}.tree-row{width:100%;display:grid;grid-template-columns:16px minmax(0,1fr);align-items:center;gap:4px;min-height:30px;padding:5px 8px 5px calc(8px + (var(--tree-depth, 0) * 16px));overflow:hidden;color:#c7d2fe;border:0;border-radius:6px;background:transparent;font-family:Fira Code,Consolas,monospace;font-size:.82rem;line-height:1.35;text-align:left}.tree-row span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-row.folder{color:#93c5fd;font-weight:800;cursor:pointer}.tree-row.file{cursor:pointer}.tree-row.folder:hover,.tree-row.file:hover,.tree-row.file.active{color:#fff;background:#19365c}.tree-row.file.active{background:#1d4ed8}.tree-chevron{display:inline-grid;place-items:center;width:16px;height:16px;color:#60a5fa;transform:rotate(0);transition:transform .14s ease}.tree-chevron.expanded{transform:rotate(90deg)}.tree-file-dot{width:9px;height:9px;margin-left:3px;border-radius:2px;background:#60a5fa}.editor-shell{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0}.editor-tabs{display:flex;min-height:40px;overflow-x:auto;background:#0d1b2e;border-bottom:1px solid #1c3559}.editor-tabs button{min-width:120px;max-width:220px;padding:9px 12px;overflow:hidden;color:#bfdbfe;text-overflow:ellipsis;white-space:nowrap;background:#12243c;border:0;border-right:1px solid #1c3559;font-weight:800}.editor-tabs button.active{color:#fff;background:#08111f}.code-editor{width:100%;min-height:100%;resize:none;padding:0;color:#eaf3ff;caret-color:#fff;background:#08111f;border:0;border-radius:0;font-family:Fira Code,Consolas,monospace;font-size:.95rem;line-height:1.55;overflow:auto;-moz-tab-size:4;tab-size:4}.monaco-editor-host{min-height:0;overflow:hidden}.completion-list{position:absolute;top:52px;left:18px;z-index:5;width:min(360px,calc(100% - 36px));max-height:280px;overflow:auto;border:1px solid #315782;border-radius:8px;background:#0d1b2e;box-shadow:0 18px 42px #00000052}.completion-list button{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;min-height:34px;padding:7px 10px;color:#dbeafe;background:transparent;border:0;border-bottom:1px solid rgba(49,87,130,.55);font-family:Fira Code,Consolas,monospace;font-size:.85rem;text-align:left}.completion-list button:last-child{border-bottom:0}.completion-list button:hover,.completion-list button.active{color:#fff;background:#1d4ed8}.completion-list span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.completion-list small{color:#93c5fd;font-family:Inter,system-ui,sans-serif;font-size:.75rem;font-weight:800}.completion-list button.active small,.completion-list button:hover small{color:#dbeafe}.editor-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:12px;align-items:end;padding:12px;background:#0d1b2e;border-top:1px solid #1c3559}.editor-toolbar label{display:grid;gap:6px;color:#bfdbfe;font-weight:800}.editor-toolbar input{min-height:38px;padding:8px 10px;color:#eaf3ff;caret-color:#fff;background:#08111f;border:1px solid #274568;border-radius:8px}.language-status{align-self:center;min-width:110px;color:#93c5fd;font-size:.85rem;font-weight:800;text-align:right;white-space:nowrap}.editor-buttons{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.editor-buttons .primary-button,.editor-buttons .secondary-button{margin-top:0}.run-output{margin:0;min-height:110px;padding:14px;overflow:auto;color:#eaf3ff;background:#0d2240;font-family:Fira Code,Consolas,monospace;font-size:.9rem;line-height:1.55;white-space:pre-wrap}.result-table{width:100%}.result-row{grid-template-columns:90px 1fr 90px;border-top:1px solid #eef3fb}.result-head{color:#153a66;font-weight:800;background:#f7fbff}.results-page{border:1px solid #d7e4f7;background:#ffffffeb;border-radius:8px;box-shadow:0 18px 50px #2563eb1f;overflow:hidden}.access-page{display:grid;grid-template-columns:minmax(280px,420px) 1fr;gap:18px}.task-admin-page{border:1px solid #d7e4f7;border-radius:8px;background:#ffffffeb;box-shadow:0 18px 50px #2563eb1f;overflow:hidden}.task-admin-form{display:grid;gap:16px;padding:18px}.task-admin-form label,.task-admin-card label{display:grid;gap:7px;color:#153a66;font-weight:800}.field-hint{color:#5f7896;font-size:.82rem;font-weight:700;line-height:1.35}.task-admin-form input,.task-admin-form textarea,.task-admin-card input,.task-admin-card textarea{width:100%;min-height:40px;padding:9px 11px;color:#17314f;caret-color:#17314f;background:#fff;border:1px solid #c7daf4;border-radius:8px;font-family:inherit;font-size:.95rem;line-height:1.5}.task-admin-form textarea,.task-admin-card textarea{min-height:110px;resize:vertical;overflow:auto}.terminal-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.task-admin-card{display:grid;gap:12px;margin:0;padding:14px;border:1px solid #d7e4f7;border-radius:8px;background:#f7fbff}.task-admin-card legend{color:#153a66;font-weight:800}.task-admin-list{display:grid;gap:18px;padding:18px;border-top:1px solid #d7e4f7}.task-admin-list section{overflow:hidden;border:1px solid #d7e4f7;border-radius:8px;background:#fff}.task-admin-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:13px 16px;border-top:1px solid #eef3fb}.task-admin-variant{border-top:1px solid #eef3fb}.task-admin-variant>.task-admin-row{border-top:0}.task-admin-subrows{display:grid;gap:8px;padding:0 16px 14px 34px}.task-admin-subrow{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #eef3fb;color:#52677f}.hidden-badge{display:inline-flex;align-items:center;margin-left:8px;padding:3px 7px;color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:999px;font-size:.72rem;font-weight:800}.row-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.edit-status{margin:0;color:#1d4ed8;font-weight:800}.access-editor,.access-list{border:1px solid #d7e4f7;border-radius:8px;background:#ffffffeb;box-shadow:0 18px 50px #2563eb1f;overflow:hidden}.access-editor{display:grid;gap:16px;padding:18px}.access-editor label{display:grid;gap:8px;color:#153a66;font-weight:800}.access-email-input{min-height:180px;padding:12px;color:#17314f;caret-color:#17314f;background:#fff;border:1px solid #c7daf4;border-radius:8px;font-family:inherit;line-height:1.5;overflow:auto}.access-email-input::placeholder{color:#7f93ad}.access-permissions{display:grid;gap:10px}.access-permissions label{display:flex;align-items:center;gap:10px;color:#17314f;font-weight:700}.access-permissions input{width:18px;height:18px}.access-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.access-actions .primary-button{margin-top:0}.access-row{display:grid;grid-template-columns:minmax(220px,.8fr) 1.2fr auto;align-items:center;gap:12px;padding:13px 16px;border-top:1px solid #eef3fb}.access-row span{color:#5f7896}.success-message{margin:0;color:#047857;font-weight:700}.results-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:#eaf3ff;border-bottom:1px solid #d7e4f7}.segmented-control{display:flex;gap:6px;padding:4px;border:1px solid #c7daf4;border-radius:8px;background:#fff}.segmented-control button{min-height:34px;padding:7px 12px;color:#153a66;background:transparent;border:0;border-radius:6px;font-weight:800}.segmented-control button.active{color:#fff;background:#2563eb}.results-toolbar label{display:grid;gap:6px;color:#153a66;font-weight:800}.results-toolbar select,.results-toolbar input[type=date]{min-height:38px;min-width:240px;padding:7px 10px;color:#17314f;border:1px solid #c7daf4;border-radius:8px;background:#fff}.stored-results-list{display:grid;gap:14px;padding:20px}.stored-result{border:1px solid #d7e4f7;border-radius:8px;overflow:hidden;background:#fff}.stored-result-header,.stored-result-meta,.stored-result-row{display:grid;align-items:center;gap:12px;padding:12px 14px}.stored-result-header{grid-template-columns:1.1fr 1.2fr .8fr .8fr;color:#0f2d52;background:#f7fbff;border-bottom:1px solid #eef3fb}.stored-result-header span,.stored-result-meta{color:#5f7896}.stored-result-details{border-top:1px solid #eef3fb}.stored-result-details summary{padding:12px 14px;color:#153a66;font-weight:800;cursor:pointer}.stored-result-details[open] summary{border-bottom:1px solid #eef3fb}.stored-result-meta{grid-template-columns:repeat(3,minmax(0,1fr))}.stored-result-table{border-top:1px solid #eef3fb}.stored-result-row{grid-template-columns:90px 1fr 90px;border-top:1px solid #eef3fb}.stored-code{margin:0;padding:14px;overflow-x:auto;color:#eaf3ff;background:#0d2240;font-family:Fira Code,Consolas,monospace;font-size:.9rem;line-height:1.55;white-space:pre-wrap}.results-empty{margin:0;padding:20px;color:#52677f;font-weight:700}.results-error{padding:20px}.results-error .error-message{margin-top:0}.history{margin-top:22px;padding:18px}.history-item{display:grid;grid-template-columns:92px 1fr auto;gap:8px 16px;padding:14px 0;border-top:1px solid #dbe8f8}.history-item code{grid-column:2 / 4;color:#1d4ed8;overflow-wrap:anywhere}.history-item span{color:#5f7896}.status-ok{color:#047857}.status-bad{color:#b42318}@media (max-width: 860px){.hero-header{display:grid}.workspace,.code-workspace,.access-page,.terminal-admin-grid,.editor-toolbar,.task-admin-row,.task-admin-subrow,.access-row{grid-template-columns:1fr}.language-status{text-align:left}.row-actions{justify-content:flex-start}.panel-header,.table-heading,.result-row,.stored-result-header,.stored-result-meta,.stored-result-row,.history-item{grid-template-columns:1fr}}
