@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#1c2b27;--muted:#73827c;--line:#e3eae6;--paper:#f5f8f6;--white:#fff;--green:#167458;--green-dark:#105c46;--green-soft:#e5f4ed;--coral:#c74f44;--amber:#a66a12;--shadow:0 12px 34px rgba(35,70,55,.07)}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 'DM Sans',sans-serif}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin-top:0}h1,h2,h3,.brand{font-family:Manrope,'DM Sans',sans-serif;letter-spacing:-.035em}h1{font-size:30px;line-height:1.2;margin:0;font-weight:800}h2{font-size:20px;font-weight:750;margin-bottom:14px}h3{font-size:16px;margin-bottom:8px}.topbar{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-size:15px;font-weight:800;letter-spacing:-.02em}.brand small,.user-area small{display:block;font:11px 'DM Sans',sans-serif;color:var(--muted);letter-spacing:.02em}.brand-mark,.login-icon{display:grid;place-items:center;background:var(--green);color:#fff;font-family:Manrope;font-weight:800;border-radius:13px;width:38px;height:38px;box-shadow:0 5px 12px #16745833}.user-area{display:flex;align-items:center;gap:16px;text-align:right;font-size:13px;font-weight:700}.user-area form{margin:0}.shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 130px)}.sidebar{padding:27px 15px 24px 23px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#fafcfb}.sidebar nav{display:grid;gap:5px}.nav-link{display:flex;gap:12px;align-items:center;padding:10px 12px;border-radius:9px;color:#52635d;font-weight:600;font-size:13px}.nav-link:hover,.nav-link.active{background:var(--green-soft);color:var(--green-dark);text-decoration:none}.nav-dot{width:7px;height:7px;border:1.5px solid #96a69e;border-radius:3px}.nav-link.active .nav-dot{background:var(--green);border-color:var(--green)}.sidebar-note{margin-top:auto;background:#edf5f0;color:#71837a;padding:13px;border-radius:9px;font-size:11px;line-height:1.55}.main{max-width:1480px;width:100%;padding:34px 42px 48px;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.15em;color:#83a193;margin-bottom:8px}.role-chip{background:#e3f2ea;color:var(--green-dark);border-radius:99px;padding:6px 11px;font-size:10px;font-weight:800;letter-spacing:.08em}.role-chip.teacher{background:#edf0e4;color:#787a47}.button{display:inline-flex;justify-content:center;align-items:center;gap:7px;border:1px solid #d8e2dc;background:#fff;color:#38534a;border-radius:8px;padding:9px 14px;font:600 12px 'DM Sans',sans-serif;cursor:pointer;transition:.15s}.button:hover{border-color:#9fc7b5;color:var(--green-dark);text-decoration:none;transform:translateY(-1px)}.button.primary{background:var(--green);border-color:var(--green);color:#fff;box-shadow:0 4px 10px #16745828}.button.primary:hover{background:var(--green-dark)}.button.danger{border-color:#edc7c3;background:#fff8f7;color:var(--coral)}.button.small{padding:7px 11px}.button.full{width:100%;margin-top:8px}.card,.login-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:22px;box-shadow:var(--shadow)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field{display:grid;gap:6px;color:#53645d;font-size:12px;font-weight:700}.field input,.field select,.field textarea,.inline input,.filter-bar select,.filter-bar input,.decision-form input:not([type=checkbox]),.bulk-bar input,.bulk-bar select{width:100%;border:1px solid #dce5e0;border-radius:7px;background:#fff;padding:10px 11px;color:var(--ink);font:13px 'DM Sans',sans-serif;outline:none}.field input:focus,.field select:focus,.field textarea:focus,.inline input:focus{border-color:#6db193;box-shadow:0 0 0 3px #daf0e5}.field textarea{resize:vertical}.wide{grid-column:1/-1}.actions{display:flex;gap:9px}.muted,.hint{color:var(--muted);font-size:12px}.hint{font-size:11px;margin:15px 0 0}.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:14px}.toolbar p{margin:0}.inline{display:inline-flex;gap:7px;align-items:center;margin:0}.inline input{width:auto;min-width:155px;padding:8px 10px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow)}table{width:100%;border-collapse:collapse;font-size:12px;min-width:660px}th{text-align:left;color:#829189;font-size:10px;text-transform:uppercase;letter-spacing:.08em;background:#f8faf9;padding:12px 15px;border-bottom:1px solid var(--line)}td{padding:13px 15px;border-bottom:1px solid #edf1ee;vertical-align:middle}tbody tr:last-child td{border-bottom:0}td strong{font-size:13px}td small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.row-actions{white-space:nowrap}.row-actions a,.link-button{font-weight:700;font-size:11px}.link-button{background:none;border:0;padding:0;color:var(--coral);font:700 11px 'DM Sans',sans-serif;cursor:pointer}.empty{text-align:center;color:var(--muted);padding:28px!important}.alert{border:1px solid;border-radius:9px;padding:11px 14px;margin:0 0 16px;font-size:12px}.alert.success{background:#eaf6ee;border-color:#c6e5d0;color:#286747}.alert.error{background:#fff0ee;border-color:#f0cbc6;color:#9f3830}.alert.warning{background:#fff7e8;border-color:#f0dfbb;color:#8b620e}.welcome{border-radius:14px;background:linear-gradient(115deg,#124f3d,#1c7658);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:25px 30px;margin-bottom:20px;overflow:hidden;position:relative}.welcome .eyebrow{color:#b3d4c2}.welcome h2{font-size:22px;margin-bottom:5px}.welcome p{margin:0;color:#d8eae0;font-size:13px}.welcome-art{font-size:100px;line-height:1;color:#ffffff17;transform:rotate(12deg);margin-right:20px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:17px;box-shadow:var(--shadow)}.stat-card span{display:block;color:var(--muted);font-size:11px;font-weight:600}.stat-card strong{display:block;font:800 26px Manrope;margin-top:8px}.stat-card.accent{background:#eff8f2;border-color:#d8ebdf}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.quick-card{display:flex;align-items:center;gap:11px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:13px;color:var(--ink);font-size:12px;font-weight:700;box-shadow:0 5px 15px #254e3b08}.quick-card:hover{border-color:#a9ccb9;text-decoration:none}.quick-card b{margin-left:auto;color:#8ea096}.quick-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#e9f4ed;color:var(--green);font-weight:800}.section-title{margin:24px 0 12px}.request-list{display:grid;gap:10px}.request-card{display:flex;gap:14px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:17px;box-shadow:0 5px 16px #254e3b08}.check{padding-top:2px}.request-main{min-width:0;flex:1}.request-top{display:flex;align-items:center;gap:10px;margin-bottom:8px}.status{font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;border-radius:30px;padding:4px 8px;background:#fff5dd;color:#986c15}.status.tasdiqlandi{background:#e8f4eb;color:#32754c}.status.rad_etildi{background:#fff0ee;color:#ae4941}.request-card h3{margin:0 0 7px}.request-card p{font-size:12px;margin:5px 0;color:#566860}.diff-grid{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.diff-grid>div{background:#f6f9f7;border:1px solid #edf1ee;border-radius:7px;padding:6px 9px;display:grid;gap:2px;max-width:100%}.diff-grid small{color:#809087;font-size:9px}.diff-grid span{font-size:11px;overflow-wrap:anywhere}.decision-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.decision-form input:not([type=checkbox]){width:min(260px,100%);padding:8px 10px}.decision-form label{display:flex;align-items:center;gap:4px;color:var(--muted);font-size:10px}.filter-bar,.bulk-bar{display:flex;gap:8px;align-items:center;margin-bottom:14px}.filter-bar select,.bulk-bar select{width:auto}.bulk-bar input{max-width:260px}.permissions{text-align:center;min-width:780px}.permissions td:not(:first-child){text-align:center}.permissions td:first-child{text-align:left}.class-checks{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0 18px}.class-checks label{background:#f4f8f5;padding:7px 10px;border-radius:7px;font-size:12px}.narrow{max-width:530px}.login-main{min-height:calc(100vh - 120px);display:grid;place-items:center;padding:35px 18px}.login-card{width:min(420px,100%);padding:30px}.login-card h1{font-size:27px;margin-bottom:7px}.login-card .muted{margin-bottom:22px}.login-icon{width:46px;height:46px;border-radius:15px;font-size:20px;margin-bottom:22px}.login-card form{display:grid;gap:14px}.footer{text-align:center;padding:20px;color:#96a49d;font-size:10px}.footer span{padding:0 4px}.request-card .button{margin-top:8px}
@media(max-width:980px){.shell{grid-template-columns:185px 1fr}.main{padding:28px 24px}.stats-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.topbar{padding:0 15px;height:64px}.shell{display:block}.sidebar{padding:8px 12px;border-right:0;border-bottom:1px solid var(--line);overflow:auto}.sidebar nav{display:flex;gap:2px;min-width:max-content}.nav-link{padding:8px 10px;font-size:11px}.nav-dot{display:none}.sidebar-note{display:none}.main{padding:24px 14px 34px}.page-heading{margin-bottom:18px}.page-heading h1{font-size:25px}.role-chip{font-size:8px}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.toolbar{align-items:flex-start;flex-wrap:wrap}.toolbar .inline{width:100%;flex-wrap:wrap}.quick-grid{grid-template-columns:repeat(2,1fr)}.welcome{padding:20px}.welcome-art{font-size:70px;margin-right:0}.stats-grid{gap:8px}.stat-card{padding:13px}.stat-card strong{font-size:23px}.user-area{gap:8px}.user-area>span{display:none}.filter-bar,.bulk-bar{flex-wrap:wrap}.request-top{align-items:flex-start;flex-direction:column;gap:4px}.login-card{padding:23px}}
.compact{margin-top:14px}.compact-form{margin-top:12px}.template-select{max-width:340px;margin-bottom:12px}.status.warning{background:#fff4d8;color:#946510}.row-actions form{margin:0 4px}.row-actions .inline input{max-width:135px}.request-card .alert{margin-top:10px}
.topbar-tools{display:flex;align-items:center;gap:14px}.theme-switch{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--line);border-radius:999px;background:#f1f6f3}.theme-choice{display:grid;place-items:center;width:34px;height:32px;border:0;border-radius:999px;background:transparent;color:var(--ink);font:16px/1 'DM Sans',sans-serif;cursor:pointer}.theme-choice[aria-pressed="true"]{background:#fff;box-shadow:0 1px 5px #1c2b271c}.theme-choice:focus-visible{outline:2px solid var(--green);outline-offset:2px}
html[data-theme="dark"]{color-scheme:dark;--ink:#e5eee9;--muted:#9baea4;--line:#33443b;--paper:#111815;--white:#19221e;--green:#58b58d;--green-dark:#78c9a3;--green-soft:#243c30;--coral:#ef887d;--amber:#e1b66a;--shadow:0 12px 34px rgba(0,0,0,.2)}
html[data-theme="dark"] body{background:var(--paper);color:var(--ink)}
html[data-theme="dark"] .topbar,html[data-theme="dark"] .sidebar,html[data-theme="dark"] .card,html[data-theme="dark"] .login-card,html[data-theme="dark"] .table-wrap,html[data-theme="dark"] .stat-card,html[data-theme="dark"] .quick-card,html[data-theme="dark"] .request-card{background:#19221e;border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .sidebar{background:#151d19}html[data-theme="dark"] .nav-link{color:#b5c5bc}html[data-theme="dark"] .nav-link:hover,html[data-theme="dark"] .nav-link.active{background:#263d31;color:#a5e0c1}html[data-theme="dark"] .nav-dot{border-color:#82978b}html[data-theme="dark"] .sidebar-note{background:#202e27;color:#a4b5ab}
html[data-theme="dark"] .brand,html[data-theme="dark"] .quick-card{color:var(--ink)}html[data-theme="dark"] .brand small,html[data-theme="dark"] .user-area small{color:#9baea4}html[data-theme="dark"] .page-heading .eyebrow{color:#8dbda4}html[data-theme="dark"] .role-chip{background:#294638;color:#a5e0c1}html[data-theme="dark"] .role-chip.teacher{background:#3a3c2c;color:#d1d49a}
html[data-theme="dark"] .button{background:#222e28;border-color:#405148;color:#d8e5dd}html[data-theme="dark"] .button:hover{border-color:#6aab8c;color:#b1e8ca}html[data-theme="dark"] .button.primary{background:#247b5b;border-color:#247b5b;color:#fff}html[data-theme="dark"] .button.primary:hover{background:#2d906a}html[data-theme="dark"] .button.danger{background:#382522;border-color:#68423d;color:#f1a39a}
html[data-theme="dark"] .field{color:#bbc9c1}html[data-theme="dark"] .field input,html[data-theme="dark"] .field select,html[data-theme="dark"] .field textarea,html[data-theme="dark"] .inline input,html[data-theme="dark"] .filter-bar select,html[data-theme="dark"] .filter-bar input,html[data-theme="dark"] .decision-form input:not([type=checkbox]),html[data-theme="dark"] .bulk-bar input,html[data-theme="dark"] .bulk-bar select{background:#111815;border-color:#405148;color:var(--ink)}html[data-theme="dark"] .field input:focus,html[data-theme="dark"] .field select:focus,html[data-theme="dark"] .field textarea:focus,html[data-theme="dark"] .inline input:focus{border-color:#58b58d;box-shadow:0 0 0 3px #244d3b}
html[data-theme="dark"] th{background:#202b25;color:#a8b8af;border-color:#33443b}html[data-theme="dark"] td{border-color:#29372f}html[data-theme="dark"] .empty{color:#9baea4}html[data-theme="dark"] .row-actions a,html[data-theme="dark"] a{color:#83d4ad}html[data-theme="dark"] .link-button{color:#ef887d}
html[data-theme="dark"] .stat-card.accent{background:#20352a;border-color:#34513f}html[data-theme="dark"] .quick-icon{background:#263d31;color:#85d3aa}html[data-theme="dark"] .quick-card:hover{border-color:#57866c}html[data-theme="dark"] .quick-card b{color:#9aafa3}
html[data-theme="dark"] .diff-grid>div{background:#202b25;border-color:#33443b}html[data-theme="dark"] .diff-grid small{color:#9baea4}html[data-theme="dark"] .request-card p{color:#bbc9c1}html[data-theme="dark"] .class-checks label{background:#202b25;color:#d2dfd7}
html[data-theme="dark"] .alert.success{background:#20372a;border-color:#345a40;color:#a9dfb7}html[data-theme="dark"] .alert.error{background:#392522;border-color:#69413b;color:#f0a39a}html[data-theme="dark"] .alert.warning{background:#3a3020;border-color:#665331;color:#e8c77e}html[data-theme="dark"] .status{background:#3c3320;color:#e8c77e}html[data-theme="dark"] .status.tasdiqlandi{background:#20372a;color:#a9dfb7}html[data-theme="dark"] .status.rad_etildi{background:#392522;color:#f0a39a}html[data-theme="dark"] .status.warning{background:#3a3020;color:#e8c77e}
html[data-theme="dark"] .theme-switch{background:#101613;border-color:#3a4a41}html[data-theme="dark"] .theme-choice{color:#dce9e1}html[data-theme="dark"] .theme-choice[aria-pressed="true"]{background:#2c3d33;box-shadow:0 1px 5px #0008}html[data-theme="dark"] .footer{color:#82958a}
@media(max-width:680px){.topbar-tools{gap:6px}.theme-choice{width:30px;height:30px}.theme-switch{gap:1px;padding:2px}}
