:root {
    --bg: #08080a;
    --bg-2: #0c0c10;
    --panel: #111116;
    --panel-2: #17171d;
    --panel-3: #1d1d24;
    --stroke: rgba(255, 255, 255, 0.07);
    --stroke-strong: rgba(255, 255, 255, 0.13);
    --text: #f1f1f3;
    --muted: #8c8c97;
    --muted-2: #64646f;
    --orange: #ff9f1a;
    --orange-2: #ffbc5c;
    --orange-dim: rgba(255, 159, 26, 0.12);
    --green: #36d399;
    --red: #ff5b6a;
    --blue: #5aa9ff;
    --purple: #a78bfa;
    --radius: 16px;
    --radius-sm: 10px;
    --sidebar-w: 264px;
    --font: 'Roboto Condensed', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(900px 520px at 8% -12%, rgba(255, 159, 26, 0.1), transparent 60%),
        radial-gradient(760px 460px at 104% 0%, rgba(255, 159, 26, 0.05), transparent 55%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 68px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 68px);
}

a {
    color: var(--orange-2);
    text-decoration: none;
}

a:hover {
    color: var(--orange);
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

p {
    margin: 0 0 12px;
}

p:last-child {
    margin-bottom: 0;
}

code,
.mono {
    font-family: 'Consolas', 'SFMono-Regular', ui-monospace, monospace;
    font-size: 0.92em;
}

::selection {
    background: rgba(255, 159, 26, 0.3);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0d;
}

::-webkit-scrollbar-thumb {
    background: #26262e;
    border-radius: 10px;
    border: 2px solid #0a0a0d;
}

::-webkit-scrollbar-thumb:hover {
    background: #34343e;
}

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Layout */

.app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    padding: 22px 16px 18px;
    background: linear-gradient(180deg, #101014 0%, #0b0b0f 100%);
    border-right: 1px solid var(--stroke);
    z-index: 60;
    transition: transform 0.22s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 22px;
    border-bottom: 1px solid var(--stroke);
    margin-bottom: 18px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #ffbc5c, #ff8a00);
    color: #1a1205;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 26px rgba(255, 145, 0, 0.22);
}

.sidebar-brand strong {
    display: block;
    font-size: 19px;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.sidebar-brand strong span,
.install-brand strong span {
    color: var(--orange);
}

.sidebar-brand small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.nav-group-title {
    padding: 4px 12px 8px;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-2);
}

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

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #a3a3ad;
    font-size: 14.5px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(255, 159, 26, 0.16), rgba(255, 159, 26, 0.02));
    color: #fff;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 3px;
    background: var(--orange);
}

.nav-item.active .icon {
    color: var(--orange);
}

.nav-item.logout-item {
    color: #ff8a95;
}

.nav-item.logout-item:hover {
    background: rgba(255, 91, 106, 0.08);
    color: #ffa7ae;
}

.sidebar-foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--stroke);
}

.side-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--stroke);
    margin-bottom: 8px;
}

.side-user-info {
    min-width: 0;
    flex: 1;
}

.side-user-info strong {
    display: block;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-user-info span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
    padding: 12px 32px;
    background: rgba(8, 8, 10, 0.78);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--stroke);
}

.topbar-title {
    min-width: 0;
}

.topbar-title h1 {
    font-size: 23px;
    font-weight: 600;
}

.topbar-title p {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.user-chip:hover {
    border-color: var(--stroke-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.user-chip .avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 12px;
}

.user-chip-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.user-chip-text strong {
    font-size: 13px;
    font-weight: 600;
}

.user-chip-text span {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--stroke-strong);
}

.menu-btn {
    display: none;
}

.content {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 32px 56px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(140deg, #ffbc5c, #ff8a00);
    color: #1c1305;
    font-weight: 700;
    font-size: 14px;
    flex: 0 0 auto;
}

.avatar-lg {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    font-size: 22px;
}

/* Typography helpers */

.muted {
    color: var(--muted);
}

.small {
    font-size: 12.5px;
}

.text-orange {
    color: var(--orange);
}

.text-danger {
    color: var(--red);
}

.text-success {
    color: var(--green);
}

.nowrap {
    white-space: nowrap;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mt-6 {
    margin-top: 6px;
}

.mt-20 {
    margin-top: 20px;
}

.stack-sm {
    gap: 8px;
}

.justify-start {
    justify-content: flex-start;
}

.pre-line {
    white-space: pre-line;
}

.max-320 {
    max-width: 320px;
}

.text-23 {
    font-size: 23px;
}

.grid-1 {
    grid-template-columns: 1fr;
}

.divider {
    height: 1px;
    background: var(--stroke);
    margin: 22px 0;
}

/* Page head */

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.page-head h2 {
    font-size: 21px;
}

.page-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13.5px;
}

.page-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    align-items: center;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.section-head h2,
.section-head h1 {
    font-size: 18px;
}

.section-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.section-head .section-link {
    font-size: 12.5px;
    color: var(--orange-2);
    white-space: nowrap;
}

/* Cards */

.card {
    position: relative;
    background: linear-gradient(180deg, rgba(24, 24, 30, 0.92), rgba(14, 14, 18, 0.96));
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.card.flush {
    padding: 0;
    overflow: hidden;
}

.card-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.card-head h2 {
    font-size: 16.5px;
}

.card-head p {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--muted);
}

.card-body {
    padding: 22px;
}

.card-body.flush {
    padding: 0;
}

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

.grid {
    display: grid;
    gap: 18px;
}

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

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

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-sidebar {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
}

/* Stats */

.stat-card {
    position: relative;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: linear-gradient(160deg, rgba(27, 27, 33, 0.9), rgba(13, 13, 17, 0.96));
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -50px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 159, 26, 0.09), transparent 68%);
}

.stat-label {
    font-size: 10.5px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-value {
    margin-top: 6px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.stat-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted-2);
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--orange-dim);
    color: var(--orange);
    margin-bottom: 12px;
}

.stat-icon.green {
    background: rgba(54, 211, 153, 0.12);
    color: var(--green);
}

.stat-icon.blue {
    background: rgba(90, 169, 255, 0.12);
    color: var(--blue);
}

.stat-icon.red {
    background: rgba(255, 91, 106, 0.12);
    color: var(--red);
}

.stat-icon.purple {
    background: rgba(167, 139, 250, 0.12);
    color: var(--purple);
}

/* Badges */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.5;
}

.badge-success {
    background: rgba(54, 211, 153, 0.1);
    border-color: rgba(54, 211, 153, 0.22);
    color: #5be3b2;
}

.badge-danger {
    background: rgba(255, 91, 106, 0.1);
    border-color: rgba(255, 91, 106, 0.24);
    color: #ff8b96;
}

.badge-warning {
    background: rgba(255, 159, 26, 0.1);
    border-color: rgba(255, 159, 26, 0.26);
    color: var(--orange-2);
}

.badge-info {
    background: rgba(90, 169, 255, 0.1);
    border-color: rgba(90, 169, 255, 0.24);
    color: #8cc0ff;
}

.badge-muted {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.09);
    color: var(--muted);
}

.badge-level-1 {
    background: rgba(90, 169, 255, 0.1);
    border-color: rgba(90, 169, 255, 0.26);
    color: #8cc0ff;
}

.badge-level-2 {
    background: rgba(255, 159, 26, 0.13);
    border-color: rgba(255, 159, 26, 0.32);
    color: var(--orange-2);
}

.badge-level-0 {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--muted);
}

.grade-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text);
}

.grade-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    opacity: 0.85;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.015em;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn .icon {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #ffbc5c, #ff970f);
    color: #1a1205;
    box-shadow: 0 8px 24px rgba(255, 149, 0, 0.17);
}

.btn-primary:hover {
    color: #1a1205;
    box-shadow: 0 10px 30px rgba(255, 149, 0, 0.26);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--stroke);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--stroke-strong);
    color: var(--text);
}

.btn-danger {
    background: rgba(255, 91, 106, 0.11);
    border-color: rgba(255, 91, 106, 0.3);
    color: #ff8b96;
}

.btn-danger:hover {
    background: rgba(255, 91, 106, 0.18);
    color: #ffa4ac;
}

.btn-sm {
    padding: 7px 10px;
    font-size: 12.5px;
    border-radius: 8px;
}

.btn-sm .icon {
    width: 14px;
    height: 14px;
}

.btn-block {
    width: 100%;
}

.btn[disabled],
.btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.btn-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--orange-2);
    cursor: pointer;
    font-size: 12.5px;
}

.btn-link:hover {
    color: var(--orange);
}

/* Forms */

form {
    margin: 0;
}

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

.form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.field > span,
.field-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.field-hint {
    font-size: 11.5px;
    color: var(--muted-2);
    line-height: 1.45;
}

.field-span-2 {
    grid-column: span 2;
}

.field-span-3 {
    grid-column: span 3;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    background: #0c0c10;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    color: var(--text);
    font-size: 14.5px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}

select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 15px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 38px;
    cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(255, 159, 26, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 159, 26, 0.1);
    background: #101015;
}

input::placeholder,
textarea::placeholder {
    color: #55555f;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--orange);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13.5px;
    cursor: pointer;
    color: var(--text);
}

.check-row input {
    margin-top: 3px;
}

.check-row span {
    display: block;
    color: var(--text);
}

.check-row small {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
    margin-top: 2px;
}

.input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.input-group input {
    flex: 1;
    min-width: 0;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.form-section-title {
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--stroke);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange);
}

.form-section-title:first-child {
    margin-top: 0;
}

.filters {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.filters .field {
    min-width: 150px;
}

.filters .field > span {
    font-size: 9.5px;
}

.filters .btn {
    padding: 9px 14px;
}

.filter-tabs {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--stroke);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
}

.filter-tab {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted);
    border: 1px solid transparent;
    transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.filter-tab:hover {
    color: var(--text);
}

.filter-tab.active {
    color: var(--orange);
    background: rgba(255, 159, 26, 0.1);
    border-color: rgba(255, 159, 26, 0.28);
}

.search-field {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-field input {
    padding-left: 36px;
}

.search-field .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-2);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* Tables */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: rgba(16, 16, 20, 0.7);
}

.table-wrap.flush-top {
    border-radius: 0 0 14px 14px;
    border: 0;
}

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 620px;
}

table.data th {
    padding: 11px 16px;
    text-align: left;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
    background: rgba(255, 255, 255, 0.022);
    border-bottom: 1px solid var(--stroke);
    white-space: nowrap;
}

table.data td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    vertical-align: middle;
}

table.data tbody tr:last-child td {
    border-bottom: 0;
}

table.data tbody tr {
    transition: background 0.12s ease;
}

table.data tbody tr:hover {
    background: rgba(255, 159, 26, 0.025);
}

table.data .cell-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

table.data .cell-main strong {
    display: block;
    font-weight: 600;
    font-size: 13.5px;
    white-space: nowrap;
}

table.data .cell-main span {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
}

table.data td.actions {
    text-align: right;
    white-space: nowrap;
}

.table-actions {
    display: inline-flex;
    gap: 6px;
    justify-content: flex-end;
}

.table-empty {
    padding: 42px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
}

.table-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--stroke);
    font-size: 12px;
    color: var(--muted);
    flex-wrap: wrap;
}

.pagination {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination a,
.pagination span {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid var(--stroke);
    color: var(--muted);
    font-size: 12px;
}

.pagination a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.pagination .current {
    background: var(--orange-dim);
    border-color: rgba(255, 159, 26, 0.3);
    color: var(--orange-2);
}

/* Alerts & flash */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    font-size: 13.5px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.alert:last-child {
    margin-bottom: 0;
}

.alert .alert-icon {
    flex: 0 0 auto;
    margin-top: 1px;
}

.alert-success {
    background: rgba(54, 211, 153, 0.08);
    border-color: rgba(54, 211, 153, 0.22);
    color: #8cebc8;
}

.alert-danger {
    background: rgba(255, 91, 106, 0.08);
    border-color: rgba(255, 91, 106, 0.24);
    color: #ffa3ab;
}

.alert-warning {
    background: rgba(255, 159, 26, 0.08);
    border-color: rgba(255, 159, 26, 0.24);
    color: #ffc977;
}

.alert-info {
    background: rgba(90, 169, 255, 0.08);
    border-color: rgba(90, 169, 255, 0.22);
    color: #a3cdff;
}

.flash-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

/* Empty state */

.empty-state {
    text-align: center;
    padding: 58px 24px;
    border: 1px dashed var(--stroke-strong);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.015);
}

.empty-state .icon {
    width: 30px;
    height: 30px;
    color: var(--muted-2);
    margin-bottom: 10px;
}

.empty-state h2,
.empty-state h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.empty-state p {
    color: var(--muted);
    font-size: 13.5px;
    max-width: 420px;
    margin: 0 auto 16px;
}

.empty-code {
    font-size: 54px;
    font-weight: 700;
    color: rgba(255, 159, 26, 0.25);
    line-height: 1;
    margin-bottom: 8px;
}

/* Detail list */

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--stroke);
    border-radius: 12px;
    overflow: hidden;
    background: var(--stroke);
    gap: 1px;
}

.detail-item {
    background: #101014;
    padding: 13px 16px;
    min-width: 0;
}

.detail-item dt {
    margin: 0;
    font-size: 9.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.detail-item dd {
    margin: 4px 0 0;
    font-size: 14px;
    overflow-wrap: anywhere;
}

/* Profile */

.profile-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.profile-hero-info {
    flex: 1;
    min-width: 220px;
}

.profile-hero-info h2 {
    font-size: 23px;
}

.profile-hero-info p {
    color: var(--muted);
    margin: 4px 0 0;
    font-size: 13px;
}

.profile-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 9px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--stroke);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}

.profile-stat {
    background: #101014;
    padding: 14px 16px;
}

.profile-stat strong {
    display: block;
    font-size: 20px;
    line-height: 1.2;
}

.profile-stat span {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
}

/* Timelines */

.timeline {
    position: relative;
    padding-left: 22px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--stroke-strong);
}

.timeline-item {
    position: relative;
    padding: 0 0 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--orange);
    border: 3px solid #111116;
    box-shadow: 0 0 0 1px rgba(255, 159, 26, 0.35);
}

.timeline-item h4 {
    font-size: 14px;
    font-weight: 600;
}

.timeline-item .timeline-meta {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
}

.timeline-item p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #b9b9c2;
}

/* Progress */

.bar {
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-top: 8px;
}

.bar span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #ff9f1a, #ffc266);
}

.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.metric-row + .metric-row {
    margin-top: 14px;
}

.big-number {
    font-size: 27px;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 2px;
}

/* Meetings / list cards */

.meeting-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--stroke);
}

.meeting-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.meeting-card:first-child {
    padding-top: 0;
}

.date-chip {
    width: 52px;
    flex: 0 0 auto;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 159, 26, 0.22);
    background: var(--orange-dim);
    padding: 7px 4px;
}

.date-chip strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
    color: var(--orange-2);
}

.date-chip span {
    display: block;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
}

.meeting-body {
    flex: 1;
    min-width: 0;
}

.meeting-body h4 {
    font-size: 14.5px;
}

.meeting-body p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--muted);
}

/* Misc */

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.025);
    font-size: 11.5px;
    color: var(--muted);
}

.code-area {
    width: 100%;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: #0b0b0f;
    color: var(--text);
    font-family: 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.6;
    resize: vertical;
}

.credential-box {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--stroke);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    overflow: hidden;
    margin: 14px 0;
}

.credential-box > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 14px;
    background: #101015;
    font-size: 13px;
}

.credential-box span {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.credential-box strong {
    font-family: 'Consolas', monospace;
    font-size: 13.5px;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

.copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 159, 26, 0.3);
    background: rgba(255, 159, 26, 0.06);
    font-family: 'Consolas', monospace;
    font-size: 15px;
    letter-spacing: 0.04em;
    word-break: break-all;
}

.copy-row button {
    margin-left: auto;
}

.hint-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 12.5px;
}

.hint-list li {
    margin-bottom: 5px;
}

.hint-list li::marker {
    color: var(--orange);
}

.sidebar-overlay {
    display: none;
}

.sidebar-overlay.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 55;
}

/* Modal */

dialog.modal {
    width: min(500px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid var(--stroke-strong);
    border-radius: 16px;
    background: #121217;
    color: var(--text);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

dialog.modal::backdrop {
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(3px);
}

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--stroke);
}

.modal-head h3 {
    font-size: 17px;
}

.modal-head p {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--muted);
}

.modal-body {
    padding: 20px 22px;
}

.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 16px 22px;
    border-top: 1px solid var(--stroke);
    background: rgba(0, 0, 0, 0.12);
}

.modal-close {
    width: 30px;
    height: 30px;
}

/* Toasts */

.toast-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-width: min(360px, calc(100vw - 32px));
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid var(--stroke-strong);
    background: #1a1a20;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    font-size: 13px;
    animation: toast-in 0.2s ease;
}

.toast.success {
    border-color: rgba(54, 211, 153, 0.35);
}

.toast.error {
    border-color: rgba(255, 91, 106, 0.38);
}

.toast .icon {
    margin-top: 1px;
}

.toast.success .icon {
    color: var(--green);
}

.toast.error .icon {
    color: var(--red);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login */

.login-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 28px 18px;
}

.login-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 430px;
}

.login-card {
    position: relative;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--stroke-strong);
    background: linear-gradient(170deg, rgba(24, 24, 30, 0.96), rgba(12, 12, 16, 0.98));
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 159, 26, 0.7), transparent);
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    text-align: center;
}

.login-brand .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 18px;
}

.login-brand h1 {
    font-size: 27px;
    letter-spacing: 0.05em;
}

.login-brand h1 span {
    color: var(--orange);
}

.login-brand p {
    margin: 2px 0 0;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form .btn {
    margin-top: 5px;
    height: 44px;
}

.login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--stroke);
    font-size: 11.5px;
    color: var(--muted-2);
}

.login-foot {
    margin-top: 16px;
    text-align: center;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.login-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 11px;
    color: var(--muted-2);
}

.login-secure .icon {
    width: 13px;
    height: 13px;
}

/* Install */

.install-body {
    padding: 40px 18px;
}

.install-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.install-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding: 0 4px;
}

.install-brand strong {
    display: block;
    font-size: 21px;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.install-brand small {
    display: block;
    font-size: 9.5px;
    letter-spacing: 0.18em;
    color: var(--muted-2);
    margin-top: 3px;
}

.install-card {
    padding: 30px;
}

.install-card h1 {
    font-size: 24px;
}

.requirement-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 18px 0 8px;
}

.requirement {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 7px;
    border: 1px solid var(--stroke);
    font-size: 11px;
    color: var(--muted);
}

.requirement.ok {
    border-color: rgba(54, 211, 153, 0.24);
    background: rgba(54, 211, 153, 0.06);
    color: #7ee6bf;
}

.requirement.fail {
    border-color: rgba(255, 91, 106, 0.28);
    background: rgba(255, 91, 106, 0.07);
    color: #ff9aa4;
}

.install-card .form-section-title {
    margin-top: 26px;
}

.install-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.install-foot {
    margin-top: 16px;
    text-align: center;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.install-success {
    text-align: center;
    padding: 8px 0 16px;
}

.success-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(54, 211, 153, 0.12);
    border: 1px solid rgba(54, 211, 153, 0.3);
    color: var(--green);
    font-size: 26px;
    margin-bottom: 12px;
}

/* Responsive */

@media (max-width: 1180px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grid-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
    .content {
        padding: 26px 24px 48px;
    }
}

@media (max-width: 860px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .app.nav-open .sidebar {
        transform: translateX(0);
    }
    .main {
        margin-left: 0;
    }
    .menu-btn {
        display: inline-grid;
    }
    .topbar {
        padding: 10px 18px;
        min-height: 68px;
    }
    .content {
        padding: 22px 18px 44px;
    }
    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
    .topbar-title h1 {
        font-size: 20px;
    }
    .user-chip-text {
        display: none;
    }
    .user-chip {
        padding: 5px;
        border: 0;
        background: none;
    }
}

@media (max-width: 620px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: minmax(0, 1fr);
    }
    .form-grid,
    .form-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
    .field-span-2,
    .field-span-3 {
        grid-column: span 1;
    }
    .detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .profile-stats {
        grid-template-columns: minmax(0, 1fr);
    }
    .card {
        padding: 18px;
    }
    .card-head,
    .card-body {
        padding: 16px 18px;
    }
    .login-card,
    .install-card {
        padding: 22px;
    }
    .page-head {
        align-items: flex-start;
    }
    .filters .field {
        min-width: 100%;
    }
    .topbar-title p {
        display: none;
    }
}
