:root {
    --navy-950: #0b1c25;
    --navy-900: #102832;
    --navy-800: #173943;
    --green-700: #087f5b;
    --green-600: #0b9669;
    --green-100: #dff6ec;
    --blue-100: #e7f0ff;
    --amber-100: #fff3d6;
    --purple-100: #efe9ff;
    --ink-950: #172026;
    --ink-700: #43515a;
    --ink-500: #74818a;
    --line: #dfe5e7;
    --surface: #ffffff;
    --canvas: #f3f6f6;
    --danger: #b42318;
    --danger-soft: #feecea;
    --warning: #936214;
    --warning-soft: #fff5dc;
    --shadow: 0 18px 50px rgba(11, 28, 37, 0.09);
    --radius-lg: 20px;
    --radius-md: 13px;
    --radius-sm: 9px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--canvas);
    color: var(--ink-950);
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand__mark .icon {
    width: 24px;
    height: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--navy-950);
    text-decoration: none;
}

.brand--light {
    color: #fff;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--green-600);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(11, 150, 105, 0.28);
}

.brand > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand strong {
    font-size: 17px;
    letter-spacing: 0.01em;
}

.brand small {
    margin-top: 5px;
    color: var(--ink-500);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand--light small {
    color: rgba(255, 255, 255, 0.58);
}

.eyebrow {
    display: inline-block;
    color: var(--green-700);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow--light {
    color: #78e1bd;
}

.auth-page {
    background: #eef3f2;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(420px, 0.88fr) minmax(540px, 1.12fr);
    min-height: 100vh;
}

.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 48px clamp(40px, 6vw, 86px);
    background:
        radial-gradient(circle at 15% 75%, rgba(20, 176, 123, 0.24), transparent 32%),
        linear-gradient(145deg, #0a1d25 0%, #123540 100%);
    color: #fff;
}

.auth-brand::before,
.auth-brand::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.auth-brand::before {
    width: 520px;
    height: 520px;
    right: -310px;
    top: 13%;
}

.auth-brand::after {
    width: 330px;
    height: 330px;
    right: -205px;
    top: 26%;
}

.auth-brand__content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: auto 0;
}

.auth-brand__content h1 {
    max-width: 600px;
    margin: 18px 0 22px;
    font-size: clamp(38px, 4.5vw, 66px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.auth-brand__content p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 17px;
    line-height: 1.65;
}

.auth-brand__status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43d8a4;
    box-shadow: 0 0 0 5px rgba(67, 216, 164, 0.12);
}

.auth-panel {
    display: grid;
    place-items: center;
    padding: 48px;
}

.auth-card {
    width: min(100%, 450px);
}

.auth-card__header h2,
.setup-card__header h2 {
    margin: 12px 0 8px;
    font-size: 36px;
    letter-spacing: -0.035em;
}

.auth-card__header p,
.setup-card__header p {
    margin: 0 0 30px;
    color: var(--ink-500);
    line-height: 1.55;
}

.auth-card__footer {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 28px;
    color: var(--ink-500);
    font-size: 13px;
}

.auth-card__footer a,
.text-link {
    color: var(--green-700);
    font-weight: 750;
    text-decoration: none;
}

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

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

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

.field > span:first-child {
    color: var(--ink-700);
    font-size: 13px;
    font-weight: 750;
}

.field em {
    color: var(--ink-500);
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 47px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
    background: #fff;
    color: var(--ink-950);
    padding: 11px 13px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 4px rgba(11, 150, 105, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9ba5aa;
}

.field small {
    color: var(--ink-500);
    font-size: 11px;
    line-height: 1.4;
}

.field--full {
    grid-column: 1 / -1;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 75px;
}

.icon-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--green-700);
    font-size: 12px;
    font-weight: 750;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    cursor: pointer;
    font-weight: 750;
    transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.button--large {
    min-height: 51px;
}

.button--primary {
    background: var(--green-700);
    color: #fff;
    box-shadow: 0 9px 25px rgba(8, 127, 91, 0.18);
}

.button--primary:hover:not(:disabled) {
    background: #066e4f;
}

.button--secondary {
    border-color: var(--line);
    background: #fff;
    color: var(--ink-700);
}

.button--ghost {
    background: transparent;
    color: var(--ink-500);
}

.form-message {
    border: 1px solid #f5c6c1;
    border-radius: var(--radius-sm);
    background: var(--danger-soft);
    color: var(--danger);
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.45;
}

.form-message--info {
    border-color: #bfd5f2;
    background: #edf5ff;
    color: #225ea8;
}

.auth-page--setup {
    background: var(--canvas);
}

.setup-layout {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.setup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 94px;
}

.setup-content {
    display: grid;
    grid-template-columns: 320px minmax(0, 680px);
    justify-content: center;
    gap: 60px;
    padding: 48px 0 80px;
}

.setup-steps {
    padding-top: 38px;
}

.setup-steps h1 {
    margin: 14px 0 38px;
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.setup-steps ol {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.setup-steps li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    color: var(--ink-500);
}

.setup-steps li:not(:last-child)::after {
    position: absolute;
    content: "";
    left: 17px;
    top: 53px;
    width: 1px;
    height: 36px;
    background: var(--line);
}

.setup-steps li > span {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

.setup-steps li.is-active > span,
.setup-steps li.is-complete > span {
    border-color: var(--green-600);
    background: var(--green-600);
    color: #fff;
}

.setup-steps li div {
    display: flex;
    flex-direction: column;
}

.setup-steps li strong {
    color: var(--ink-950);
    font-size: 14px;
}

.setup-steps li small {
    margin-top: 4px;
}

.setup-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    padding: 36px;
    box-shadow: var(--shadow);
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    border-radius: var(--radius-sm);
    background: #f0f3f4;
    color: var(--ink-700);
    padding: 11px 13px;
    font-size: 12px;
    font-weight: 700;
}

.connection-status--success {
    background: var(--green-100);
    color: var(--green-700);
}

.connection-status--error {
    background: var(--danger-soft);
    color: var(--danger);
}

.connection-status--warning {
    background: var(--warning-soft);
    color: var(--warning);
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #c8d0d3;
    border-top-color: var(--green-600);
    border-radius: 50%;
    animation: spin 750ms linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.security-note {
    margin-right: auto;
    color: var(--ink-500);
    font-size: 11px;
}

.admin-page {
    overflow-x: hidden;
    background: var(--canvas);
}

.app-layout {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    display: flex;
    width: 260px;
    flex-direction: column;
    background: var(--navy-950);
    color: #fff;
}

.sidebar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 82px;
    padding: 0 24px;
}

.sidebar-close {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 26px;
}

.sidebar-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    padding: 24px 14px;
}

.sidebar-nav__label {
    margin: 0 13px 8px;
    color: rgba(255, 255, 255, 0.34);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 45px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.66);
    padding: 10px 13px;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    font-weight: 650;
}

.nav-item:hover,
.nav-item.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-item.is-active {
    box-shadow: inset 3px 0 0 #37d09a;
}

.nav-icon {
    display: grid;
    place-items: center;
    width: 25px;
    font-size: 18px;
}

.sidebar__footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 19px 8px 8px;
}

.sidebar-user {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 10px;
}

.sidebar-user > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.sidebar-user strong,
.sidebar-user small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user strong {
    font-size: 12px;
}

.sidebar-user small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
}

.avatar {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: rgba(55, 208, 154, 0.16);
    color: #69e0b6;
    font-size: 13px;
    font-weight: 800;
}

.avatar--small {
    width: 34px;
    height: 34px;
    background: var(--green-100);
    color: var(--green-700);
}

.logout-button {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.52);
    padding: 8px;
    cursor: pointer;
    font-size: 18px;
}

.main-content {
    min-height: 100vh;
    margin-left: 260px;
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    padding: 0 34px;
    backdrop-filter: blur(12px);
}

.breadcrumb {
    color: var(--ink-500);
    font-size: 12px;
}

.breadcrumb strong {
    color: var(--ink-700);
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-700);
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 800;
}

.live-badge span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-600);
}

.topbar-date {
    color: var(--ink-500);
    font-size: 11px;
    text-transform: capitalize;
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: var(--ink-950);
    cursor: pointer;
    font-size: 22px;
}

.page-container {
    width: min(1420px, 100%);
    margin: 0 auto;
    padding: 34px;
}

.page-section {
    display: none;
}

.page-section.is-active {
    display: block;
    animation: page-in 180ms ease;
}

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

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.page-heading h1 {
    margin: 8px 0 6px;
    font-size: 32px;
    letter-spacing: -0.035em;
}

.page-heading p {
    margin: 0;
    color: var(--ink-500);
    font-size: 13px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 166px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    padding: 22px;
}

.stat-card__icon {
    position: absolute;
    right: 18px;
    top: 18px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 19px;
}

.stat-card--green .stat-card__icon { background: var(--green-100); color: var(--green-700); }
.stat-card--blue .stat-card__icon { background: var(--blue-100); color: #3569ae; }
.stat-card--amber .stat-card__icon { background: var(--amber-100); color: #9a691b; }
.stat-card--purple .stat-card__icon { background: var(--purple-100); color: #6f51aa; }
.stat-card--teal .stat-card__icon { background: #dff7f5; color: #167f78; }
.stat-card--rose .stat-card__icon { background: #ffe8ee; color: #a94361; }

.stat-card__label {
    display: block;
    color: var(--ink-500);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.stat-card > strong {
    display: block;
    margin-top: 18px;
    font-size: 38px;
    letter-spacing: -0.04em;
}

.stat-card > small {
    display: block;
    margin-top: 4px;
    color: var(--ink-500);
    font-size: 11px;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    padding: 19px 21px;
}

.card__header h2 {
    margin: 0;
    font-size: 15px;
    letter-spacing: -0.015em;
}

.card__header p {
    margin: 5px 0 0;
    color: var(--ink-500);
    font-size: 11px;
}

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

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    border-bottom: 1px solid var(--line);
    padding: 13px 21px;
}

.activity-item:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.activity-item__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: var(--green-100);
    color: var(--green-700);
}

.activity-item div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.activity-item strong {
    font-size: 12px;
}

.activity-item small {
    margin-top: 4px;
    color: var(--ink-500);
    font-size: 10px;
}

.management-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.76fr) minmax(540px, 1.7fr);
    gap: 20px;
    align-items: start;
}

.management-grid--users {
    grid-template-columns: minmax(390px, 0.9fr) minmax(600px, 1.7fr);
}

.page-select {
    display: flex;
    min-width: 245px;
    flex-direction: column;
    gap: 7px;
}

.page-select > span {
    color: var(--ink-500);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-select select {
    min-height: 43px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
    background: #fff;
    color: var(--ink-700);
    padding: 9px 12px;
}

.management-grid > [hidden] + .card {
    grid-column: 1 / -1;
}

.form-card > form {
    padding: 21px;
}

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

.switch-field {
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
}

.switch-field > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch {
    position: relative;
    width: 38px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #c8d0d3;
    transition: background 150ms ease;
}

.switch::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: transform 150ms ease;
}

.switch-field > input:checked + .switch {
    background: var(--green-600);
}

.switch-field > input:checked + .switch::after {
    transform: translateX(16px);
}

.switch-field > span:last-child {
    display: flex;
    flex-direction: column;
}

.switch-field strong {
    font-size: 12px;
}

.switch-field small {
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 10px;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 7px;
    width: min(220px, 45%);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 10px;
    color: var(--ink-500);
}

.search-field input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 11px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

th {
    background: #fafbfb;
    color: var(--ink-500);
    padding: 11px 15px;
    text-align: left;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

td {
    border-top: 1px solid var(--line);
    padding: 13px 15px;
    color: var(--ink-700);
}

tbody tr:hover {
    background: #fbfcfc;
}

.table-primary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-primary > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.table-primary strong {
    color: var(--ink-950);
    font-size: 12px;
}

.table-primary small {
    display: block;
    max-width: 240px;
    overflow: hidden;
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entity-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: #edf2f2;
    color: var(--navy-800);
}

.code-badge,
.role-badge {
    display: inline-flex;
    border-radius: 6px;
    background: #edf2f2;
    color: var(--ink-700);
    padding: 5px 7px;
    font-size: 9px;
    font-weight: 800;
}

.access-count-badge {
    display: inline-flex;
    border-radius: 999px;
    background: #e8f6f1;
    color: var(--green-700);
    padding: 5px 8px;
    font-size: 9px;
    font-weight: 800;
}

.role-badge {
    background: var(--blue-100);
    color: #315f9b;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 9px;
    font-weight: 800;
}

.status-badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge--active {
    background: var(--green-100);
    color: var(--green-700);
}

.status-badge--passive {
    background: #edf0f1;
    color: var(--ink-500);
}

.table-actions {
    text-align: right;
}

.table-button {
    border: 0;
    background: transparent;
    color: var(--green-700);
    padding: 6px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

.table-empty,
.empty-state {
    color: var(--ink-500);
    padding: 30px !important;
    text-align: center;
    font-size: 12px;
}

.permission-fieldset {
    margin: 0;
    border: 0;
    padding: 0;
}

.permission-fieldset legend {
    margin-bottom: 10px;
    color: var(--ink-700);
    font-size: 13px;
    font-weight: 750;
}

.permission-grid {
    display: grid;
    gap: 8px;
}

.access-fieldset {
    border-top: 1px solid var(--line);
    padding-top: 15px;
}

.access-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    max-height: 180px;
    overflow-y: auto;
}

.access-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px;
    cursor: pointer;
}

.access-option:has(input:checked) {
    border-color: #8fcfb8;
    background: #f4fbf8;
}

.access-option input {
    flex: 0 0 auto;
    accent-color: var(--green-600);
}

.access-option span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.access-option strong,
.access-option small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.access-option strong {
    font-size: 10px;
}

.access-option small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 8px;
}

.address-preview {
    display: flex;
    flex-direction: column;
    gap: 7px;
    border: 1px dashed #9fcbbb;
    border-radius: 10px;
    background: #f4fbf8;
    padding: 12px 13px;
}

.address-preview span {
    color: var(--green-700);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.address-preview strong {
    overflow-wrap: anywhere;
    color: var(--navy-900);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

.location-address {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: calc(var(--tree-depth) * 17px);
}

.location-address > span:last-child {
    display: flex;
    flex-direction: column;
}

.location-address strong {
    color: var(--ink-950);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
}

.location-address small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 8px;
}

.tree-connector {
    color: #95aaa2;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.type-badge {
    display: inline-flex;
    border-radius: 6px;
    background: #edf2f2;
    color: var(--ink-700);
    padding: 5px 7px;
    font-size: 9px;
    font-weight: 800;
}

.type-badge--aisle { background: #e7f0ff; color: #3569ae; }
.type-badge--rack { background: #efe9ff; color: #6f51aa; }
.type-badge--level { background: #fff3d6; color: #936214; }
.type-badge--bin { background: #dff6ec; color: #087f5b; }

.permission-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px;
    cursor: pointer;
}

.permission-option:has(input:checked) {
    border-color: #8fcfb8;
    background: #f4fbf8;
}

.permission-option input {
    margin-top: 2px;
    accent-color: var(--green-600);
}

.permission-option span {
    display: flex;
    flex-direction: column;
}

.permission-option strong {
    font-size: 11px;
}

.permission-option small {
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 9px;
    line-height: 1.4;
}

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

.role-item {
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 15px;
}

.role-item__top {
    display: flex;
    align-items: center;
    gap: 9px;
}

.role-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: var(--purple-100);
    color: #7053a7;
}

.role-item__top div {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.role-item__top strong {
    font-size: 11px;
}

.role-item__top small {
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 9px;
}

.role-item > p {
    min-height: 33px;
    margin: 13px 0;
    color: var(--ink-500);
    font-size: 10px;
    line-height: 1.55;
}

.role-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    color: var(--ink-500);
    font-size: 9px;
}

.muted {
    color: var(--ink-500);
    font-size: 11px;
}

.toast-region {
    position: fixed;
    z-index: 100;
    right: 22px;
    top: 22px;
    display: flex;
    width: min(370px, calc(100% - 44px));
    flex-direction: column;
    gap: 9px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #b7dfd0;
    border-radius: 10px;
    background: #fff;
    padding: 12px 14px;
    opacity: 0;
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast > span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-700);
    font-weight: 900;
}

.toast p {
    margin: 0;
    color: var(--ink-700);
    font-size: 12px;
    line-height: 1.4;
}

.toast--error {
    border-color: #f1c1bd;
}

.toast--error > span {
    background: var(--danger-soft);
    color: var(--danger);
}

.sidebar-overlay {
    display: none;
}

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

    .management-grid,
    .management-grid--users {
        grid-template-columns: 1fr;
    }

    .form-card {
        max-width: 720px;
    }
}

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        min-height: 330px;
        padding: 30px;
    }

    .auth-brand__content {
        margin: 55px 0;
    }

    .auth-brand__content h1 {
        font-size: 42px;
    }

    .auth-panel {
        padding: 50px 24px 70px;
    }

    .setup-content {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .setup-steps {
        padding-top: 0;
    }

    .setup-steps ol {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .setup-steps li {
        align-items: flex-start;
    }

    .setup-steps li:not(:last-child)::after {
        display: none;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 200ms ease;
    }

    .sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay {
        position: fixed;
        z-index: 25;
        inset: 0;
        background: rgba(5, 16, 21, 0.5);
    }

    .sidebar-open .sidebar-overlay {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .menu-button {
        display: block;
    }

    .topbar {
        justify-content: flex-start;
        gap: 14px;
        padding: 0 20px;
    }

    .topbar__right {
        margin-left: auto;
    }

    .page-container {
        padding: 25px 20px;
    }
}

@media (max-width: 620px) {
    .auth-brand {
        min-height: 260px;
    }

    .auth-brand__content {
        margin: 35px 0 20px;
    }

    .auth-brand__content h1 {
        font-size: 33px;
    }

    .auth-brand__content p,
    .auth-brand__status {
        display: none;
    }

    .auth-panel {
        padding-top: 36px;
    }

    .auth-card__header h2,
    .setup-card__header h2 {
        font-size: 30px;
    }

    .auth-card__footer {
        flex-direction: column;
        align-items: center;
    }

    .setup-layout {
        width: min(100% - 28px, 1180px);
    }

    .setup-header {
        height: 76px;
    }

    .setup-content {
        padding-top: 24px;
    }

    .setup-steps h1 {
        font-size: 30px;
    }

    .setup-steps li small {
        display: none;
    }

    .setup-card {
        padding: 24px 18px;
    }

    .form-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

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

    .page-select {
        width: 100%;
        min-width: 0;
    }

    .field--full {
        grid-column: auto;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .security-note {
        margin: 0;
        text-align: center;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-heading h1 {
        font-size: 27px;
    }

    .stat-grid,
    .activity-list,
    .role-list {
        grid-template-columns: 1fr;
    }

    .activity-item:nth-child(odd) {
        border-right: 0;
    }

    .topbar-date {
        display: none;
    }

    .card__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-field {
        width: 100%;
    }
}

/* 2026 kurumsal arayüz sistemi */
:root {
    --primary: #1677ff;
    --primary-hover: #0f68e8;
    --primary-soft: #edf5ff;
    --primary-ring: rgba(22, 119, 255, 0.12);
    --navy-950: #162033;
    --navy-900: #1d2940;
    --navy-800: #2c3951;
    --green-700: #117a52;
    --green-600: #16a36a;
    --green-100: #ecf9f3;
    --blue-100: #edf5ff;
    --amber-100: #fff7e8;
    --purple-100: #f3efff;
    --ink-950: #162033;
    --ink-700: #445169;
    --ink-500: #657087;
    --line: #e5eaf1;
    --surface: #ffffff;
    --canvas: #f7f9fc;
    --danger: #d9363e;
    --danger-soft: #fff1f1;
    --warning: #a6660c;
    --warning-soft: #fff7e8;
    --shadow: 0 5px 18px rgba(22, 32, 51, 0.05);
    --radius-lg: 12px;
    --radius-md: 10px;
    --radius-sm: 8px;
}

.admin-page {
    color: var(--ink-950);
    background: var(--canvas);
}

.admin-page .sidebar {
    width: 260px;
    border-right: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-700);
    transition: width 180ms ease, transform 200ms ease;
}

.admin-page .sidebar__top {
    height: 76px;
    border-bottom: 1px solid var(--line);
    padding: 0 20px;
}

.admin-page .brand {
    min-width: 0;
    color: var(--ink-950);
}

.admin-page .brand__mark {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: var(--primary);
    box-shadow: none;
}

.admin-page .brand__mark .icon {
    width: 22px;
    height: 22px;
}

.admin-page .brand strong {
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}

.admin-page .brand small {
    margin-top: 4px;
    color: var(--ink-500);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.045em;
    text-transform: none;
    white-space: nowrap;
}

.admin-page .sidebar-close {
    color: var(--ink-500);
}

.admin-page .sidebar-close .icon {
    width: 20px;
    height: 20px;
}

.admin-page .sidebar-nav {
    gap: 4px;
    padding: 20px 12px;
}

.admin-page .sidebar-nav__label {
    margin: 0 12px 7px;
    color: #96a0b2;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.1em;
}

.admin-page .nav-item {
    position: relative;
    min-height: 46px;
    gap: 12px;
    overflow: hidden;
    border-radius: 7px;
    color: #4d596f;
    padding: 10px 12px;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 140ms ease, background 140ms ease;
}

.admin-page .nav-item::before {
    position: absolute;
    content: "";
    inset: 8px auto 8px 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: transparent;
}

.admin-page .nav-item:hover {
    background: #f6f8fb;
    color: var(--ink-950);
}

.admin-page .nav-item.is-active {
    background: var(--primary-soft);
    color: #0f63d8;
    box-shadow: none;
    font-weight: 600;
}

.admin-page .nav-item.is-active::before {
    background: var(--primary);
}

.admin-page .nav-icon {
    width: 24px;
    flex: 0 0 auto;
}

.admin-page .nav-icon .icon {
    width: 18px;
    height: 18px;
}

.admin-page .sidebar__footer {
    margin: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafbfd;
    padding: 12px;
}

.admin-page .sidebar__footer > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.admin-page .sidebar__footer strong {
    color: var(--ink-700);
    font-size: 10px;
    font-weight: 600;
}

.admin-page .sidebar__footer small {
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 9px;
}

.admin-page .status-dot {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(22, 163, 106, 0.1);
}

.admin-page .main-content {
    margin-left: 260px;
    transition: margin-left 180ms ease;
}

.admin-page .topbar {
    height: 72px;
    border-bottom-color: var(--line);
    background: rgba(255, 255, 255, 0.96);
    padding: 0 30px;
    backdrop-filter: blur(10px);
}

.topbar__left,
.topbar__right,
.topbar-user {
    display: flex;
    align-items: center;
}

.topbar__left {
    min-width: 0;
    gap: 14px;
}

.admin-page .menu-button,
.topbar-icon-button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-500);
    padding: 0;
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.admin-page .menu-button:hover,
.topbar-icon-button:hover {
    border-color: var(--line);
    background: #f8fafc;
    color: var(--primary);
}

.topbar__title {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.topbar__title > strong {
    color: var(--ink-950);
    font-size: 14px;
    font-weight: 600;
}

.admin-page .breadcrumb {
    display: flex;
    align-items: center;
    color: #8a95a8;
    font-size: 10px;
}

.admin-page .breadcrumb .icon {
    width: 12px;
    height: 12px;
    margin: 0 2px;
}

.admin-page .breadcrumb b {
    color: var(--ink-500);
    font-weight: 500;
}

.admin-page .topbar__right {
    gap: 4px;
}

.admin-page .topbar-date {
    margin-right: 12px;
    color: var(--ink-500);
    font-size: 10px;
}

.topbar-icon-button.has-indicator {
    position: relative;
}

.topbar-icon-button.has-indicator::after {
    position: absolute;
    content: "";
    right: 7px;
    top: 7px;
    width: 6px;
    height: 6px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--danger);
}

.topbar-divider {
    width: 1px;
    height: 28px;
    margin: 0 10px;
    background: var(--line);
}

.topbar-user {
    gap: 9px;
    margin-right: 3px;
}

.topbar-user > span:last-child {
    display: flex;
    max-width: 150px;
    flex-direction: column;
}

.topbar-user strong,
.topbar-user small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user strong {
    color: var(--ink-950);
    font-size: 10.5px;
    font-weight: 600;
}

.topbar-user small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 9px;
}

.admin-page .avatar--small {
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
}

.admin-page .page-container {
    width: min(1540px, 100%);
    padding: 28px 30px 42px;
}

.admin-page .page-section.is-active {
    animation: page-in 140ms ease;
}

.admin-page .page-heading {
    align-items: center;
    margin-bottom: 22px;
}

.admin-page .eyebrow {
    color: var(--primary);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.1em;
}

.admin-page .page-heading h1 {
    margin: 5px 0;
    color: var(--ink-950);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.admin-page .page-heading p {
    color: var(--ink-500);
    font-size: 12px;
}

.admin-page .button {
    min-height: 42px;
    gap: 8px;
    border-radius: 7px;
    padding: 9px 14px;
    font-size: 11px;
    font-weight: 600;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.admin-page .button:hover:not(:disabled) {
    transform: none;
}

.admin-page .button .icon {
    width: 16px;
    height: 16px;
}

.admin-page .button--primary {
    background: var(--primary);
    box-shadow: none;
}

.admin-page .button--primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.admin-page .button--secondary {
    border-color: var(--line);
    color: var(--ink-700);
}

.admin-page .button--secondary:hover:not(:disabled) {
    border-color: #cfd7e3;
    background: #f9fbfd;
}

.admin-page .stat-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.admin-page .stat-card {
    min-height: 144px;
    border-color: var(--line);
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 7px rgba(22, 32, 51, 0.025);
}

.admin-page .stat-card__icon {
    right: 16px;
    top: 16px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.admin-page .stat-card__icon .icon {
    width: 18px;
    height: 18px;
}

.admin-page .stat-card__label {
    max-width: calc(100% - 42px);
    color: var(--ink-500);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.admin-page .stat-card > strong {
    margin-top: 21px;
    color: var(--ink-950);
    font-size: 29px;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.admin-page .stat-card > small {
    margin-top: 5px;
    color: #8490a3;
    font-size: 9px;
    line-height: 1.4;
}

.admin-page .stat-card--green .stat-card__icon {
    background: var(--primary-soft);
    color: var(--primary);
}

.admin-page .stat-card--blue .stat-card__icon {
    background: #eef4ff;
    color: #4c6fff;
}

.admin-page .stat-card--amber .stat-card__icon {
    background: var(--amber-100);
    color: #c0770b;
}

.admin-page .stat-card--purple .stat-card__icon {
    background: var(--purple-100);
    color: #7856c8;
}

.admin-page .stat-card--teal .stat-card__icon {
    background: var(--green-100);
    color: var(--green-700);
}

.admin-page .stat-card--rose .stat-card__icon {
    background: var(--danger-soft);
    color: var(--danger);
}

.admin-page .card {
    border-color: var(--line);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(22, 32, 51, 0.025);
}

.admin-page .card__header {
    min-height: 68px;
    border-bottom-color: var(--line);
    padding: 16px 18px;
}

.admin-page .card__header h2 {
    color: var(--ink-950);
    font-size: 13px;
    font-weight: 600;
}

.admin-page .card__header p {
    margin-top: 4px;
    font-size: 10px;
}

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

.admin-page .activity-item {
    min-height: 68px;
    padding: 12px 18px;
}

.admin-page .activity-item__icon {
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
}

.admin-page .management-grid {
    grid-template-columns: minmax(320px, 0.72fr) minmax(580px, 1.8fr);
    gap: 18px;
}

.admin-page .management-grid > .card {
    min-width: 0;
}

.admin-page .management-grid--users {
    grid-template-columns: minmax(410px, 0.9fr) minmax(600px, 1.55fr);
}

.admin-page .form-card > form {
    padding: 18px;
}

.admin-page .form-stack {
    gap: 16px;
}

.admin-page .field > span:first-child,
.admin-page .permission-fieldset legend {
    color: var(--ink-700);
    font-size: 11px;
    font-weight: 600;
}

.admin-page .field input,
.admin-page .field select,
.admin-page .field textarea,
.admin-page .page-select select {
    min-height: 44px;
    border-color: #dce3ec;
    border-radius: 7px;
    color: var(--ink-950);
    padding: 10px 12px;
    font-size: 11px;
}

.admin-page .field input:focus,
.admin-page .field select:focus,
.admin-page .field textarea:focus,
.admin-page .page-select select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.admin-page .field small {
    color: #8490a3;
    font-size: 9px;
}

.admin-page .switch-field > input:checked + .switch {
    background: var(--primary);
}

.admin-page .search-field {
    width: min(240px, 48%);
    min-height: 38px;
    border-color: #dce3ec;
    border-radius: 7px;
    padding: 7px 10px;
}

.admin-page .search-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.admin-page table {
    font-size: 11px;
}

.admin-page th {
    border-bottom: 1px solid var(--line);
    background: #f9fafc;
    color: #7a869a;
    padding: 11px 14px;
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
}

.admin-page td {
    border-top-color: var(--line);
    padding: 12px 14px;
}

.admin-page tbody tr:hover {
    background: #f9fbfe;
}

.admin-page .entity-icon {
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
}

.admin-page .table-button {
    color: var(--primary);
}

.admin-page .access-count-badge,
.admin-page .status-badge--active {
    background: var(--green-100);
    color: var(--green-700);
}

.admin-page .role-badge,
.admin-page .type-badge--aisle {
    background: var(--primary-soft);
    color: #176bdc;
}

.admin-page .access-option:has(input:checked),
.admin-page .permission-option:has(input:checked) {
    border-color: #9bc7ff;
    background: #f3f8ff;
}

.admin-page .access-option input,
.admin-page .permission-option input {
    accent-color: var(--primary);
}

.admin-page .address-preview {
    border-color: #9bc7ff;
    background: #f3f8ff;
}

.admin-page .address-preview span {
    color: var(--primary);
}

.admin-page .address-preview strong {
    color: var(--ink-950);
}

.admin-page .toast {
    border-color: #b8e3d1;
    border-radius: 9px;
    box-shadow: 0 12px 30px rgba(22, 32, 51, 0.12);
}

.sidebar-collapsed .sidebar {
    width: 78px;
}

.sidebar-collapsed .main-content {
    margin-left: 78px;
}

.sidebar-collapsed .sidebar__top {
    justify-content: center;
    padding: 0;
}

.sidebar-collapsed .brand > span:last-child,
.sidebar-collapsed .sidebar-nav__label,
.sidebar-collapsed .nav-item > span:last-child,
.sidebar-collapsed .sidebar__footer > div {
    display: none;
}

.sidebar-collapsed .nav-item {
    justify-content: center;
    padding-inline: 0;
}

.sidebar-collapsed .sidebar__footer {
    justify-content: center;
}

@media (max-width: 1380px) {
    .admin-page .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-page .topbar-date {
        display: none;
    }
}

@media (max-width: 1180px) {
    .admin-page .management-grid,
    .admin-page .management-grid--users {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-page .form-card {
        max-width: none;
    }
}

@media (max-width: 900px) {
    .admin-page .sidebar {
        width: 260px;
    }

    .admin-page .main-content,
    .sidebar-collapsed .main-content {
        margin-left: 0;
    }

    .sidebar-collapsed .brand > span:last-child,
    .sidebar-collapsed .nav-item > span:last-child,
    .sidebar-collapsed .sidebar__footer > div {
        display: flex;
    }

    .sidebar-collapsed .sidebar__top {
        justify-content: space-between;
        padding: 0 20px;
    }

    .sidebar-collapsed .nav-item {
        justify-content: flex-start;
        padding: 10px 12px;
    }

    .admin-page .topbar {
        gap: 10px;
        padding: 0 18px;
    }

    .admin-page .topbar__right {
        margin-left: auto;
    }

    .topbar-user > span:last-child,
    .topbar-divider,
    .admin-page .topbar-icon-button[aria-label="Ara"],
    .admin-page .topbar-icon-button[aria-label="Yardım"] {
        display: none;
    }

    .admin-page .page-container {
        padding: 24px 20px 36px;
    }
}

@media (max-width: 620px) {
    .admin-page .topbar {
        height: 64px;
        padding: 0 12px;
    }

    .topbar__title .breadcrumb,
    .admin-page .topbar-icon-button[aria-label="Bildirimler"] {
        display: none;
    }

    .topbar-user {
        margin-left: 2px;
    }

    .admin-page .page-container {
        padding: 20px 14px 30px;
    }

    .admin-page .page-heading {
        align-items: flex-start;
        gap: 16px;
    }

    .admin-page .page-heading h1 {
        font-size: 23px;
    }

    .admin-page .stat-grid,
    .admin-page .activity-list,
    .admin-page .role-list {
        grid-template-columns: 1fr;
    }

    .admin-page .stat-card {
        min-height: 128px;
    }
}

/* Giriş ve kurulum ekranlarında aynı tema dili */
.auth-page .brand__mark,
.auth-page--setup .brand__mark {
    background: var(--primary);
    box-shadow: 0 8px 22px rgba(22, 119, 255, 0.16);
}

.auth-page .field input:focus,
.auth-page .field select:focus,
.auth-page .field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.auth-page .button--primary {
    background: var(--primary);
    box-shadow: 0 8px 22px rgba(22, 119, 255, 0.14);
}

.auth-page .button--primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.auth-page .text-link,
.auth-page .auth-card__footer a,
.auth-page .password-toggle {
    color: var(--primary);
}

.auth-page--setup .setup-card {
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.auth-page--setup .setup-steps li.is-active > span,
.auth-page--setup .setup-steps li.is-complete > span {
    border-color: var(--primary);
    background: var(--primary);
}

.admin-page .search-field > .icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}
