:root {
    --sidebar: #111827;
    --accent: #2563eb;
    --bg: #f3f6fb;
    --card: #ffffff;
    --muted: #6b7280;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #111827;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 255px;
    background: var(--sidebar);
    color: #ffffff;
    padding: 24px 16px;
    position: fixed;
    inset: 0 auto 0 0;
    overflow-y: auto;
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    padding: 0 10px 24px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.side-nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 11px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-nav a:hover {
    background: #1f2937;
    color: #ffffff;
}

.side-nav a span {
    margin-left: auto;
    font-size: 11px;
    background: #374151;
    padding: 3px 7px;
    border-radius: 20px;
}

.disabled-link {
    opacity: .72;
}

.main-panel {
    margin-left: 255px;
    width: calc(100% - 255px);
}

.topbar {
    min-height: 76px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
}

.role-badge {
    margin-left: 8px;
    font-size: 11px;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 999px;
    padding: 4px 8px;
}

.content {
    padding: 30px;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.page-head h1 {
    font-size: 28px;
    margin: 0 0 5px;
}

.page-head p {
    margin: 0;
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stats-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.metric,
.panel,
.login-card {
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.metric {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.metric > i {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #eff6ff;
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 21px;
}

.metric span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.metric strong {
    font-size: 29px;
}

.panel {
    padding: 22px;
}

.version-badge,
.status,
.level-badge {
    font-size: 12px;
    border-radius: 999px;
    padding: 6px 10px;
}

.version-badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.status.active {
    background: #dcfce7;
    color: #166534;
}

.status.draft {
    background: #fef3c7;
    color: #92400e;
}

.level-badge {
    background: #ede9fe;
    color: #6d28d9;
}

.code {
    font-size: 12px;
    color: #2563eb;
    background: #eff6ff;
    padding: 4px 8px;
    border-radius: 7px;
}

.indicator-list {
    padding-left: 18px;
    margin-bottom: 0;
}

.indicator-list li {
    margin: 7px 0;
}

.indicator-list li span {
    float: right;
    color: var(--muted);
    font-size: 12px;
}

.form-panel {
    max-width: 760px;
}

.form-panel input,
.form-panel select,
.form-panel textarea,
.login-card input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
}

.form-panel input[type="checkbox"] {
    width: auto;
}

.form-panel label,
.login-card label {
    font-weight: 600;
    margin-bottom: 5px;
}

.form-panel p,
.login-card p {
    margin-bottom: 16px;
}

.login-card {
    padding: 30px;
}

.login-logo {
    width: 60px;
    height: 60px;
    margin: auto;
    border-radius: 18px;
    background: #dbeafe;
    color: #2563eb;
    display: grid;
    place-items: center;
    font-size: 26px;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.lab-grid > div {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
}

.lab-grid i {
    font-size: 24px;
    color: #2563eb;
}

.lab-grid h3 {
    font-size: 17px;
    margin: 10px 0 5px;
}

.assessment-card {
    display: flex;
    flex-direction: column;
}

.assessment-card .btn {
    align-self: flex-start;
}

.assessment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
}

.questions-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.question-card {
    display: flex;
    gap: 18px;
}

.question-number {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.question-body {
    flex: 1;
}

.question-competency {
    font-size: 12px;
    color: #2563eb;
    margin-bottom: 8px;
}

.rating-row {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.rating-option input {
    position: absolute;
    opacity: 0;
}

.rating-option span {
    width: 44px;
    height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: #ffffff;
    transition: .2s ease;
}

.rating-option input:checked + span {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    max-width: 260px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.submit-bar {
    margin-top: 20px;
    background: #ffffff;
    padding: 18px 22px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.overall-score {
    min-width: 150px;
    background: #111827;
    color: #ffffff;
    border-radius: 16px;
    padding: 14px 20px;
    text-align: center;
}

.overall-score span {
    display: block;
    font-size: 12px;
    color: #cbd5e1;
}

.overall-score strong {
    font-size: 30px;
}

.score-line {
    display: grid;
    grid-template-columns: 1fr 58px;
    gap: 14px;
    align-items: center;
    margin-top: 20px;
}

.score-track,
.vector-track {
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.score-fill,
.vector-fill {
    height: 100%;
    background: #2563eb;
    border-radius: inherit;
}

.twin-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.twin-summary > div {
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
}

.twin-summary span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.twin-summary strong {
    font-size: 26px;
}

.recent-list {
    display: flex;
    flex-direction: column;
}

.recent-list a {
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.twin-main-card {
    text-align: center;
}

.twin-main-card > span {
    display: block;
    color: var(--muted);
}

.twin-main-card > strong {
    display: block;
    font-size: 58px;
    color: #2563eb;
    margin: 10px 0;
}

.vector-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vector-row {
    display: grid;
    grid-template-columns: 150px 1fr 55px;
    gap: 12px;
    align-items: center;
}

.empty-state {
    color: var(--muted);
    text-align: center;
    padding: 25px;
}

@media (max-width: 900px) {
    .sidebar {
        width: 210px;
    }

    .main-panel {
        margin-left: 210px;
        width: calc(100% - 210px);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .sidebar {
        position: static;
        width: 100%;
    }

    .app-shell {
        display: block;
    }

    .main-panel {
        margin: 0;
        width: 100%;
    }

    .stats-grid,
    .stats-grid.three,
    .lab-grid,
    .twin-summary {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 18px;
    }

    .topbar {
        padding: 12px 18px;
    }

    .page-head,
    .submit-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .vector-row {
        grid-template-columns: 100px 1fr 50px;
    }
}


.cabinet-label {
    margin: 0 10px 16px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.permission-note {
    border-left: 4px solid #2563eb;
    background: #eff6ff;
    padding: 14px 16px;
    border-radius: 10px;
    color: #1e3a8a;
}


.notification-bell{
    position:relative;
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    border:1px solid #e5e7eb;
    border-radius:12px;
    color:#374151;
    text-decoration:none;
    background:#fff;
}
.notification-bell:hover{background:#f8fafc;color:#2563eb}
.notification-bell>span{
    position:absolute;
    top:-6px;
    right:-6px;
    min-width:20px;
    height:20px;
    padding:0 5px;
    border-radius:999px;
    display:grid;
    place-items:center;
    background:#dc2626;
    color:#fff;
    font-size:10px;
    font-weight:700;
    border:2px solid #fff;
}
.notification-list{padding:0;overflow:hidden}
.notification-item{
    display:flex;
    gap:14px;
    align-items:center;
    padding:16px 18px;
    color:inherit;
    text-decoration:none;
    border-bottom:1px solid #eef2f7;
    position:relative;
}
.notification-item:hover{background:#f8fafc}
.notification-item.unread{background:#eff6ff}
.notification-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    border-radius:12px;
    display:grid;
    place-items:center;
    background:#f1f5f9;
    color:#475569;
}
.notification-icon.kind-warning{background:#fef3c7;color:#92400e}
.notification-icon.kind-critical{background:#fee2e2;color:#b91c1c}
.notification-icon.kind-assessment{background:#ede9fe;color:#6d28d9}
.notification-icon.kind-registration{background:#dcfce7;color:#166534}
.notification-icon.kind-assignment{background:#dbeafe;color:#1d4ed8}
.notification-content{flex:1;min-width:0}
.unread-dot{
    width:9px;
    height:9px;
    border-radius:50%;
    background:#2563eb;
    flex:0 0 9px;
}

.rubric-level{border:1px solid #e5e7eb;border-radius:12px;padding:14px;margin-bottom:10px;background:#fafafa}.rubric-level>div:first-child{display:flex;justify-content:space-between}.rubric-level p{margin:8px 0;color:#475569}.rubric-recommendation{margin-top:10px;padding:10px 12px;border-radius:10px;background:#eff6ff;color:#1e40af}.rubric-result{padding-top:14px;border-top:1px solid #e5e7eb}
