:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #203631; background: #f5f7f4; font-synthesis: none; --green: #1f6353; --muted: #687873; --border: #dce5de; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; border: 1px solid var(--border); border-radius: 9px; padding: 10px 16px; font-size: 14px; font-weight: 600; background: white; color: #28483e; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
button:hover, .button:hover { background: #eef4ef; border-color: #99b8a8; }
button:disabled { cursor: wait; opacity: .55; }
button.primary, .button.primary { background: var(--green); color: white; border-color: var(--green); }
button.primary:hover, .button.primary:hover { background: #174d40; }
button.danger { color: #a33a38; }
button.small, .button.small { padding: 7px 12px; font-size: 13px; }
button.ghost { background: transparent; border-color: transparent; }
a { color: var(--green); }
input, select, textarea { width: 100%; background: #fff; border: 1px solid #cfdcd3; border-radius: 8px; padding: 11px 12px; color: #203631; min-height: 43px; }
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: 3px solid #acd7bf; outline-offset: 1px; border-color: var(--green); }
button:focus-visible, a:focus-visible { outline: 3px solid #7dc2a0; outline-offset: 3px; }
label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 7px; }
form .field { margin-bottom: 18px; }
.hint, .muted { color: var(--muted); font-size: 13px; line-height: 1.65; }
.hint { margin: 7px 0 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 29px; letter-spacing: -.9px; margin-bottom: 9px; }
h2 { font-size: 20px; letter-spacing: -.4px; }
h3 { font-size: 16px; line-height: 1.5; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 39px; height: 39px; }
.brand strong { font-size: 22px; letter-spacing: -.6px; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: #a4bfb3; margin-top: 3px; }
.layout { display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: #123c36; color: white; padding: 33px 22px; display: flex; flex-direction: column; gap: 32px; }
.sidebar .brand { margin: 0 8px; }
.nav-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.6px; color: #9fc1b1; margin: 0 14px 12px; }
.nav { display: grid; gap: 7px; }
.nav button { border: 0; background: transparent; justify-content: flex-start; color: #c2d7ce; padding: 13px 14px; font-size: 13px; }
.nav button.active { background: #2d594d; color: white; }
.nav button:hover { background: #254e44; }
.nav .symbol { width: 24px; font-size: 19px; font-weight: 400; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #3b5b4f; padding: 23px 8px 0; }
.sidebar-bottom p { margin-bottom: 3px; font-size: 14px; }
.sidebar-bottom small { color: #9fbdb0; font-size: 11px; overflow-wrap: anywhere; }
.sidebar-bottom button { color: #c2d7ce; margin: 14px 0 0; padding-left: 0; }
.workspace { min-width: 0; }
.topbar { height: 70px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 40px; background: #fbfcfa; color: var(--muted); font-size: 12px; }
.topbar .team-dot { background: #e8f3e9; padding: 6px 11px; border-radius: 20px; color: #38694e; }
main { padding: 37px 40px 60px; max-width: 1350px; margin: auto; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.eyebrow { text-transform: uppercase; color: #698077; letter-spacing: 1.5px; font-size: 10px; font-weight: 700; margin-bottom: 11px; }
.page-heading p { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-bottom: 26px; }
.stat { background: white; border: 1px solid var(--border); padding: 20px 23px; border-radius: 12px; }
.stat strong { display: block; font-size: 29px; letter-spacing: -.8px; margin-top: 8px; }
.stat small { font-size: 12px; color: var(--muted); }
.stat.ready { background: #edf5ec; }
.filters { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(100px, 1fr)); gap: 10px; margin-bottom: 23px; }
.filters input, .filters select { font-size: 13px; }
.list-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.question-card, .exam-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 23px; margin-bottom: 14px; }
.question-card h3 { margin: 14px 0; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.badge { display: inline-block; border-radius: 6px; padding: 4px 9px; font-size: 10px; font-weight: 650; background: #edf1ee; color: #557164; max-width: 100%; overflow-wrap: anywhere; }
.badge.ready { color: #276248; background: #e5f3e8; }
.badge.draft { color: #957231; background: #fff3d7; }
.badge.hard { color: #9a5951; background: #faeae5; }
.badge.medium { color: #82652e; background: #fcf1d9; }
.badge.easy { color: #42795b; background: #eaf4e9; }
.card-footer { border-top: 1px solid #edf0ec; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-footer .muted { font-size: 11px; }
.actions { display: flex; gap: 7px; flex-wrap: wrap; }
.empty { border: 1px dashed #c0d2c5; border-radius: 14px; padding: 50px 24px; text-align: center; background: #fcfdfb; }
.empty .empty-icon { font-size: 40px; color: #44886a; margin-bottom: 18px; }
.empty h2 { margin-bottom: 10px; }
.empty p { max-width: 460px; margin: 0 auto 22px; }
.panel { background: white; border: 1px solid var(--border); padding: 29px; border-radius: 14px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: 24px; align-items: start; }
.form-aside { background: #edf4eb; border: 1px solid #d7e5d6; padding: 27px; border-radius: 14px; }
.form-aside strong.big { display: block; font-size: 42px; margin: 18px 0 4px; color: #2d6c4d; }
.form-aside p { font-size: 13px; color: #526e5c; line-height: 1.8; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: #9d3836; background: #fff2ef; padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.5; margin-bottom: 18px; }
.form-error:empty { display: none; }
.version-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 15px; margin-top: 15px; }
.version-row strong { font-size: 13px; }
.version-row .downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.solution-link { color: #856b39; }
.preview-question { padding: 18px 0; border-bottom: 1px solid var(--border); }
.preview-question h3 { white-space: pre-wrap; }
.preview-question ol { line-height: 1.8; padding-left: 27px; }
.preview-question .correct { color: #226645; font-weight: 650; }
.preview-question li, .import-explanation { white-space: pre-wrap; overflow-wrap: anywhere; }
.import-file { margin-top: 22px; }
.bank-actions { justify-content: flex-end; }
.teacher-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.teacher-grid .panel { padding: 24px; overflow-wrap: anywhere; }
.avatar { display: grid; place-items: center; width: 43px; height: 43px; background: #e7f2e6; color: #2d6b4c; border-radius: 12px; font-weight: 700; margin-bottom: 17px; }
.invite-panel { max-width: 680px; }
.invite-result { margin-top: 20px; }
.invite-result label { line-height: 1.6; }
.invite-result .actions { margin-top: 10px; }
dialog { border: 0; border-radius: 16px; max-width: 750px; width: calc(100% - 30px); max-height: calc(100vh - 50px); padding: 0; box-shadow: 0 25px 80px #123c3633; color: #203631; }
dialog::backdrop { background: #102b2766; backdrop-filter: blur(2px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid var(--border); }
.dialog-header h2 { margin: 0; }
.dialog-body { padding: 26px 28px; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 17px; border-top: 1px solid var(--border); margin-top: 23px; }
.option-input { display: grid; grid-template-columns: 20px 25px 1fr; gap: 8px; align-items: center; margin-bottom: 10px; }
.option-input input[type=radio] { min-height: auto; width: 17px; height: 17px; accent-color: var(--green); }
.option-input label { margin: 0; }
.option-input input[type=text] { font-size: 13px; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-story { background: #123c36; color: white; padding: 55px max(35px, 10vw); display: flex; flex-direction: column; justify-content: space-between; }
.auth-story .brand { margin-bottom: 70px; }
.auth-story h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1.12; letter-spacing: -2px; margin-bottom: 23px; }
.auth-story h1 span { color: #b1dfb6; }
.auth-story p { line-height: 1.8; color: #b8d0c1; font-size: 14px; }
.auth-story .story-lines { margin: 42px 0; }
.story-lines div { border-top: 1px solid #426455; padding: 15px 0; font-size: 13px; color: #c5dacd; }
.story-lines b { margin-right: 17px; color: #91cbaa; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 45px 30px; }
.auth-card { width: 100%; max-width: 390px; }
.auth-card h2 { font-size: 27px; margin-bottom: 10px; }
.auth-card .muted { margin-bottom: 28px; }
.auth-card button.primary { width: 100%; padding: 13px; }
.auth-note { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 23px; text-align: center; }
.loading { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }
#toast { position: fixed; bottom: 23px; right: 23px; background: #173d32; color: white; padding: 14px 20px; border-radius: 10px; box-shadow: 0 6px 30px #20363133; font-size: 13px; max-width: calc(100vw - 46px); z-index: 5; }
[hidden] { display: none !important; }
@media (max-width: 700px) { .page-heading:has(.bank-actions) { flex-direction: column; } .bank-actions { justify-content: flex-start; } }
@media (max-width: 1050px) { .layout { grid-template-columns: 210px minmax(0, 1fr); } main { padding: 28px 24px; } .topbar { padding: 0 24px; } .filters { grid-template-columns: 1fr 1fr; } .form-layout { grid-template-columns: 1fr; } .form-aside { order: -1; padding: 18px 23px; } .form-aside strong.big { margin: 0; font-size: 30px; } .form-aside p { margin-bottom: 0; } .form-aside .details { display: none; } }
@media (max-width: 700px) { .layout { display: block; } .sidebar { padding: 16px; gap: 18px; } .sidebar .brand { margin: 0; } .sidebar .brand small, .nav-label { display: none; } .nav { grid-template-columns: repeat(4, 1fr); gap: 4px; } .nav button { font-size: 10px; padding: 9px 5px; justify-content: center; flex-direction: column; gap: 3px; } .sidebar-bottom { display: flex; align-items: center; justify-content: space-between; padding: 0; margin: 0; border: 0; } .sidebar-bottom small { display: none; } .sidebar-bottom button { margin: 0; } .topbar { height: 47px; padding: 0 18px; } main { padding: 27px 18px; } h1 { font-size: 24px; } .page-heading { gap: 13px; } .page-heading .primary { padding: 9px 11px; font-size: 12px; white-space: nowrap; } .stats { gap: 8px; } .stat { padding: 14px 12px; } .stat small { font-size: 10px; } .stat strong { font-size: 24px; } .question-card, .exam-card { padding: 18px; } .card-footer { align-items: flex-start; } .teacher-grid, .two-columns { grid-template-columns: 1fr; gap: 5px; } .teacher-grid { gap: 14px; } .panel { padding: 23px; } .dialog-body, .dialog-header { padding: 20px; } .auth-layout { display: block; } .auth-story { padding: 25px 30px; } .auth-story .brand { margin-bottom: 30px; } .auth-story h1 { font-size: 29px; letter-spacing: -1px; margin-bottom: 12px; } .auth-story .story-lines, .auth-story .story-footer { display: none; } .auth-story p { margin-bottom: 0; font-size: 12px; } .auth-main { padding: 35px 25px; } }
