:root {
    color-scheme: light;
    --navy: #0c1c35;
    --navy-light: #132b50;
    --blue: #174ed8;
    --ink: #13233c;
    --muted: #52627a;
    --line: #dce4f0;
    --surface: #fff;
    --canvas: #f3f6fb;
    font: 15px/1.5 'Inter', system-ui, sans-serif;
    color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.55rem); line-height: 1.12; letter-spacing: -.045em; }
h2 { font-size: 1.15rem; letter-spacing: -.025em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #5683fc; outline-offset: 3px; }
.icon { display: inline-grid; place-items: center; min-width: 1.15em; line-height: 1; font-size: 1.15em; }
.icon-arrow, .icon-logout, .icon-users { position: relative; width: 1em; min-width: 1em; height: 1em; }
.icon-arrow::before, .icon-logout::before {
    content: ''; width: .64em; height: 2px; background: currentColor;
}
.icon-arrow::after, .icon-logout::after {
    content: ''; position: absolute; right: .18em; width: .38em; height: .38em;
    border-right: 2px solid; border-top: 2px solid; transform: rotate(45deg);
}
.external .icon-arrow { transform: rotate(-45deg); }
.icon-users::before, .icon-users::after { content: ''; position: absolute; border: 1.5px solid; }
.icon-users::before { top: .05em; width: .29em; height: .29em; border-radius: 50%; }
.icon-users::after { bottom: .07em; width: .57em; height: .36em; border-radius: .39em .39em .14em .14em; }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 44px; padding: .67rem 1rem; border: 1px solid transparent; border-radius: .65rem;
    background: var(--blue); color: #fff; font-weight: 650;
}
.button:hover { background: #0e3cae; text-decoration: none; }
.button.secondary { color: var(--blue); background: #edf3ff; border-color: #dbe6ff; }
.button.secondary:hover { background: #dfeaff; }
.environment {
    display: inline-flex; align-items: center; gap: .45rem; padding: .28rem .66rem; border-radius: 2rem;
    color: #664107; background: #fff0cc; font-size: .77rem; font-weight: 750; white-space: nowrap;
}
.environment::before { content: ''; width: .42rem; height: .42rem; border-radius: 50%; background: #9b5b08; }
.alert { padding: .8rem 1rem; background: #fff0f0; border: 1px solid #f3cbcb; border-radius: .65rem; color: #8f2121; }
label { display: grid; gap: .4rem; font-size: .87rem; font-weight: 650; min-width: 0; }
input:not([type=checkbox]):not([type=hidden]) {
    display: block; width: 100%; min-width: 0; min-height: 44px; padding: .65rem .75rem;
    background: #fff; border: 1px solid #cbd6e7; border-radius: .6rem; color: var(--ink);
}
input[type=checkbox] { accent-color: var(--blue); width: 1rem; height: 1rem; }

.brand { display: flex; align-items: center; gap: .75rem; color: #fff; letter-spacing: .11em; }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: grid; place-items: center; width: 2.65rem; height: 2.65rem; flex: 0 0 auto;
    background: #2a61f3; color: #fff; border-radius: .68rem; font-size: 1.25rem; font-weight: 850;
}
.brand small { display: block; color: #b7c8e4; letter-spacing: normal; font-size: .74rem; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.login-brand {
    min-height: 33rem; position: relative; isolation: isolate; overflow: hidden; display: grid;
    align-content: space-between; gap: 4rem; padding: clamp(2rem, 6vw, 6rem); color: #fff;
    background: radial-gradient(ellipse at 89% 81%, #154bb9, transparent 61%), linear-gradient(140deg, #0a172d 10%, #10284e);
}
.login-product { z-index: 1; }
.login-product h1 { font-size: clamp(2.6rem, 5.9vw, 6.3rem); line-height: .99; }
.login-product h1 span { color: #79a4ff; }
.login-product p { margin-top: 1.15rem; color: #c2d3ef; }
.login-art {
    position: absolute; inset: 26% -16% -32% 17%; z-index: -1; transform: rotate(-24deg);
    background-image: linear-gradient(#81a5ff25 1px, transparent 1px), linear-gradient(90deg, #81a5ff25 1px, transparent 1px);
    background-size: 35px 35px; mask-image: radial-gradient(ellipse, #000, transparent 70%);
}
.login-art i { position: absolute; inset: 20% 9%; border: 1px solid #9bb9fc70; border-radius: 50%; }
.login-art i:nth-child(2) { inset: 30% 13%; }
.login-art i:nth-child(3) { inset: 40% 18%; }
.login-panel { display: grid; place-items: center; padding: clamp(1.5rem, 5vw, 5rem); background: #fff; }
.login-form { width: min(100%, 390px); }
.login-form h2 { margin: .9rem 0 1.6rem; font-size: 2.1rem; line-height: 1.12; }
.login-form form { display: grid; gap: 1rem; }
.login-form .alert { margin-bottom: 1rem; }

.skip { position: fixed; top: .5rem; left: .5rem; transform: translateY(-200%); z-index: 5; background: #fff; padding: .6rem; }
.skip:focus { transform: none; }
.shell { display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 100vh; }
.shell.menu-closed { grid-template-columns: minmax(0, 1fr); }
.shell.menu-closed .sidebar { display: none; }
.sidebar {
    display: flex; flex-direction: column; gap: 1.65rem; background: var(--navy); color: #fff; padding: 1.45rem 1rem;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar > .brand { margin: .1rem .35rem; }
.sidebar nav { display: grid; gap: .3rem; }
.nav-label { margin: .65rem .65rem .18rem; color: #a7bad7; font-size: .69rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.sidebar nav a, .roadmap summary {
    display: flex; align-items: center; gap: .7rem; padding: .7rem .65rem; color: #dbe6f8; border-radius: .6rem;
    font-size: .88rem; font-weight: 650;
}
.sidebar nav a:hover, .roadmap summary:hover { background: var(--navy-light); text-decoration: none; }
.sidebar nav a[aria-current] { background: #204581; color: #fff; }
.external { margin-left: auto; color: #b4cefa; }
.roadmap { margin-top: .75rem; }
.roadmap summary::before { content: '›'; font-size: 1.2em; }
.roadmap[open] summary::before { transform: rotate(90deg); }
.roadmap ul { padding: 0 .65rem; list-style: none; margin: 0; }
.roadmap li { display: flex; justify-content: space-between; align-items: center; gap: .35rem; padding: .26rem 0; color: #c2d0e8; font-size: .8rem; }
.roadmap small, .sidebar-version { color: #a7bad7; font-size: .71rem; }
.sidebar-version { margin-top: auto; padding: .65rem; border-top: 1px solid #ffffff25; }
.topbar {
    min-height: 68px; display: flex; align-items: center; gap: .85rem; padding: .65rem clamp(1rem, 3vw, 2.5rem);
    position: relative; z-index: 3; background: #fff; border-bottom: 1px solid var(--line);
}
.topbar-title { flex: 1; font-weight: 750; }
.sidebar-toggle, .profile summary {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .48rem .65rem;
    border: 1px solid var(--line); border-radius: .55rem; color: var(--ink); background: #f9fbff;
}
.profile { position: relative; }
.profile summary { max-width: 13rem; font-weight: 650; }
.profile summary span:not(.icon) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-panel {
    position: absolute; right: 0; top: calc(100% + .5rem); width: 13rem; padding: .85rem;
    background: #fff; border: 1px solid var(--line); border-radius: .65rem; box-shadow: 0 10px 30px #14264d1a;
    overflow-wrap: anywhere;
}
.profile-panel small { display: block; color: var(--muted); }
.profile-panel button { margin-top: .65rem; padding: .55rem .5rem; width: 100%; border: 0; border-radius: .45rem; color: var(--blue); background: #edf3ff; }
.content { max-width: 1500px; margin: 0 auto; padding: clamp(1rem, 3vw, 2.5rem); }
.content > * + * { margin-top: 1.15rem; }
.welcome { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.4rem; }
.welcome p { margin-top: .45rem; color: var(--muted); overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: .85rem; }
.metric, .panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: .92rem; box-shadow: 0 5px 15px #152a4f08; }
.metric { padding: 1.05rem; }
.icon-tile { display: inline-grid; width: 2.45rem; height: 2.45rem; place-items: center; background: #eaf0ff; color: var(--blue); border-radius: .63rem; flex: 0 0 auto; }
.metric p { margin: .6rem 0 .1rem; color: var(--muted); font-size: .85rem; }
.metric strong { font-size: 2rem; line-height: 1.18; letter-spacing: -.05em; }
.dashboard-panels { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: .85rem; align-items: start; }
.panel-title { display: flex; align-items: center; gap: .65rem; padding: 1rem 1.15rem; }
.activity-list, .technical-list { margin: 0; padding: 0 1.15rem; list-style: none; }
.activity-list li { display: flex; justify-content: space-between; gap: .6rem; padding: .7rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.activity-list span, .activity-meta time { display: block; font-size: .82rem; color: var(--muted); }
.activity-meta { text-align: right; }
.technical-list li { padding: .42rem 0; border-top: 1px solid var(--line); }
.technical .button { margin: 1rem 1.15rem; }
.empty { padding: 0 1.15rem 1.15rem; color: var(--muted); }
.import-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 1rem 1.15rem; }
.import-panel p { color: var(--muted); font-size: .88rem; margin-top: .15rem; }
.table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { text-align: left; white-space: nowrap; border-top: 1px solid var(--line); padding: .72rem 1rem; }
th { background: #f5f8fd; color: #334966; }
tbody tr:hover { background: #f7faff; }
td:first-child { font-weight: 650; }
.role-tag { padding: .22rem .45rem; border-radius: .35rem; background: #eaf0ff; color: #204585; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .9rem; padding: 0 1.15rem 1.15rem; }
.form-actions, fieldset { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: .65rem; }
fieldset label { display: flex; align-items: center; gap: .35rem; margin: .3rem 0; }
legend { font-weight: 700; }
@media (max-width: 900px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .sidebar { position: fixed; inset: 68px auto 0 0; height: auto; width: min(280px, 85vw); z-index: 2; box-shadow: 0 12px 30px #152a4f40; }
}
@media (max-width: 690px) {
    .login-layout, .dashboard-panels { grid-template-columns: minmax(0, 1fr); }
    .login-brand { min-height: 15rem; gap: 2rem; }
    .login-panel { align-items: start; }
    .topbar { gap: .45rem; }
    .topbar-title, .profile summary span:not(.icon) { display: none; }
    .topbar .profile { margin-left: auto; }
}

.form-grid select, .form-grid textarea {
    width: 100%; min-width: 0; min-height: 44px; padding: .65rem .75rem;
    background: #fff; border: 1px solid #cbd6e7; border-radius: .6rem; color: var(--ink); font: inherit;
}
.form-grid textarea { min-height: 5rem; resize: vertical; }
.profile-panel a { display: block; margin-top: .6rem; }
