:root {
    --bg: #f3f5f9;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e3e8ef;
    --text: #172033;
    --muted: #6b778c;
    --sidebar: #0f1b2d;
    --sidebar-text: #b8c4d6;
    --primary: #0f766e;
    --primary-dark: #0b5a54;
    --primary-soft: #d9f2ee;
    --danger: #c62828;
    --danger-soft: #fdeaea;
    --warn: #b45309;
    --warn-soft: #fef3dc;
    --info: #1d4ed8;
    --info-soft: #e3ecff;
    --ok: #15803d;
    --ok-soft: #dcf5e4;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 4px 14px rgba(15, 27, 45, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
}

h1 {
    font-size: 1.6rem;
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
}

a {
    color: var(--primary);
}

.muted, .hint {
    color: var(--muted);
    font-size: 0.88rem;
}

.shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--sidebar);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0.9rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar .brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.6rem 1.2rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.sidebar .org {
    margin: 0 0.4rem 1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
}

.sidebar .org strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow-y: auto;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.75rem;
    border-radius: 9px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-weight: 500;
}

.sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.sidebar nav a.active {
    background: var(--primary);
    color: #fff;
}

.sidebar .nav-ico {
    width: 1.3rem;
    text-align: center;
}

.sidebar .nav-section {
    margin: 1rem 0.75rem 0.3rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6f7f96;
}

.sidebar .user-box {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.9rem 0.5rem 0;
    font-size: 0.85rem;
}

.sidebar .user-box strong {
    color: #fff;
    display: block;
}

.sidebar .user-box form {
    margin-top: 0.6rem;
}

.sidebar .user-box button {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 0;
}

.sidebar .user-box button:hover {
    background: rgba(255, 255, 255, 0.16);
}

main.content {
    padding: 1.75rem 2rem 3rem;
    max-width: 1280px;
    width: 100%;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.page-head .subtitle {
    color: var(--muted);
}

.anon {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(1200px 500px at 10% -10%, #d9f2ee 0%, transparent 60%),
        radial-gradient(900px 500px at 110% 110%, #e3ecff 0%, transparent 55%),
        var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 2rem;
    border: 1px solid var(--border);
}

.auth-card .brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    font-size: 1.15rem;
}

.auth-card h1 {
    font-size: 1.4rem;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 1rem;
}

.auth-card .switch {
    margin-top: 1.1rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

label.field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #3a475e;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="time"],
input:not([type]),
select,
textarea {
    padding: 0.55rem 0.7rem;
    border: 1px solid #cdd5e1;
    border-radius: 9px;
    background: #fff;
    font: inherit;
    color: var(--text);
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary-soft);
    border-color: var(--primary);
}

button, .btn {
    padding: 0.5rem 0.95rem;
    border: 1px solid #cdd5e1;
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

button:hover, .btn:hover {
    background: #eef2f7;
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

button.primary, .btn.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

button.primary:hover {
    background: var(--primary-dark);
}

button.danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

button.danger:hover {
    background: #a31f1f;
}

button.ghost {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
}

button.ghost:hover {
    background: #eef2f7;
    color: var(--text);
}

button.small {
    padding: 0.3rem 0.65rem;
    font-size: 0.82rem;
}

.alert {
    padding: 0.7rem 0.95rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.alert.error, .error {
    background: var(--danger-soft);
    color: var(--danger);
}

.alert.success {
    background: var(--ok-soft);
    color: var(--ok);
}

.alert.info {
    background: var(--info-soft);
    color: var(--info);
}

p.error {
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.card > h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.85rem;
}

.form-actions, .row-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.form-actions {
    margin-top: 1rem;
}

.form-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-row > * {
    flex: 1 1 180px;
}

.form-row > button {
    flex: 0 0 auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

th {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    background: var(--surface-2);
}

tbody tr:hover {
    background: var(--surface-2);
}

td.num, th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

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

.empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted);
}

.pill {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pill.available { background: var(--ok-soft); color: var(--ok); }
.pill.inuse { background: var(--info-soft); color: var(--info); }
.pill.paused { background: var(--warn-soft); color: var(--warn); }
.pill.reserved { background: #efe6fb; color: #6d28d9; }
.pill.maintenance, .pill.outofservice { background: #eceff4; color: #4b5872; }
.pill.off { background: var(--danger-soft); color: var(--danger); }

.code-box {
    font-family: Consolas, "Courier New", monospace;
    letter-spacing: 0.15em;
    background: var(--surface-2);
    border: 1px dashed #b7c2d4;
    border-radius: 8px;
    padding: 0.2rem 0.55rem;
    font-weight: 700;
}

.thumb {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary-soft);
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-dark);
    display: grid;
    place-items: center;
    font-weight: 700;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.15rem;
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--primary);
}

.stat.info::before { background: var(--info); }
.stat.warn::before { background: var(--warn); }
.stat.ok::before { background: var(--ok); }

.stat .label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.stat .value {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 0.15rem;
}

.stat .sub {
    color: var(--muted);
    font-size: 0.8rem;
}

.toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.chip {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--muted);
}

.chip.active {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 1rem;
}

.table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 5px solid #cbd5e1;
}

.table-card.available { border-top-color: #22c55e; }
.table-card.inuse { border-top-color: #2563eb; background: linear-gradient(180deg, #f3f7ff, #fff 45%); }
.table-card.paused { border-top-color: #d97706; background: linear-gradient(180deg, #fff8ec, #fff 45%); }
.table-card.reserved { border-top-color: #7c3aed; }
.table-card.maintenance, .table-card.outofservice { border-top-color: #94a3b8; opacity: 0.85; }

.table-card .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-number {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.table-card .label {
    color: var(--muted);
    font-size: 0.85rem;
    min-height: 1.2em;
}

.timer {
    font-family: Consolas, "Courier New", monospace;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.timer.idle {
    color: #b3bdcc;
}

.amount {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.05rem;
}

.table-card .actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.4rem;
}

.table-card .actions button {
    flex: 1;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 27, 45, 0.5);
    display: grid;
    place-items: center;
    padding: 1rem;
    z-index: 50;
}

.modal {
    background: var(--surface);
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal h2 {
    font-size: 1.2rem;
}

.bill {
    margin: 1rem 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.bill .line {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid var(--border);
}

.bill .line:last-child {
    border-bottom: 0;
}

.bill .total {
    background: var(--primary-soft);
    font-weight: 800;
    font-size: 1.2rem;
}

.pay-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.9rem;
    box-shadow: var(--shadow);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.team-players {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.7rem;
}

.player-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.player-toggle input {
    width: auto;
}

.day-picker {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.day-picker label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    background: var(--surface-2);
}

.day-picker input {
    width: auto;
}

.slot-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 0.6rem;
    align-items: end;
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--border);
}

.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.4rem;
    vertical-align: middle;
    background: #94a3b8;
}

.split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 1000px) {
    .split { grid-template-columns: 1fr; }
    .slot-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    main.content {
        padding: 1.1rem 1rem 2rem;
    }
}

.lang-switcher {
    display: flex;
    gap: 0.35rem;
}

.lang-switcher button {
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid rgba(128, 128, 128, 0.4);
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.lang-switcher button.active {
    background: rgba(128, 128, 128, 0.25);
}

.sidebar .lang-switcher {
    margin: 0 0.5rem 0.75rem;
}

.sidebar .lang-switcher button {
    color: #fff;
}

.anon { position: relative; }

.anon .lang-switcher {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    justify-content: flex-end;
}

.validation-errors {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    color: #b42318;
    font-size: 0.85rem;
}

a.small-link {
    padding: 0.3rem 0.65rem;
    font-size: 0.82rem;
    border: 1px solid var(--border, #d5dbe4);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

a.small-link:hover {
    background: #eef2f7;
}

.team-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.avatar-picker .avatar-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    color: var(--muted, #64748b);
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 0.35rem;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--border, #d5dbe4);
    border-radius: 10px;
    background: #fff;
}

.avatar-cell {
    padding: 2px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

.avatar-cell.active {
    border-color: var(--primary, #0f766e);
}

td.num.win { color: var(--ok); font-weight: 600; }
td.num.loss { color: var(--danger); font-weight: 600; }

.chart-box { width: 100%; }
.chart { width: 100%; height: auto; display: block; }
.chart-axis { stroke: #cbd5e1; stroke-width: 1; }
.chart-bar { fill: var(--primary, #0f766e); opacity: .85; }
.chart-bar:hover { opacity: 1; }
.chart-mean { stroke: var(--warn, #d97706); stroke-width: 1.2; stroke-dasharray: 4 3; }
.chart-label { font-size: 9px; fill: #64748b; }
.range-select { min-width: 160px; }

td.win { font-weight: 700; color: var(--ok, #15803d); }

.bracket {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 0.75rem;
    min-width: 200px;
}

.bracket-round h3 {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    color: var(--muted, #64748b);
}

.bracket-match {
    border: 1px solid var(--border, #d5dbe4);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.bracket-match > div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 0.6rem;
}

.bracket-match > div + div {
    border-top: 1px solid var(--border, #d5dbe4);
}

.bracket-match > div.win {
    background: var(--ok-soft, #e7f6ec);
    font-weight: 700;
}

.bracket-match .score {
    min-width: 1.5rem;
    text-align: right;
}

.dp { position: relative; }
.dp-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #cdd5e1;
    border-radius: 9px;
    background: #fff;
    font: inherit;
    font-weight: 400;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}
.dp-input:focus-visible { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.dp-placeholder { color: #94a3b8; }
.dp-ico { font-size: 0.95rem; opacity: .7; }
.dp-backdrop { position: fixed; inset: 0; z-index: 40; background: transparent; }
.dp-pop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 41;
    width: 286px;
    padding: 0.7rem;
    border: 1px solid #d5dbe4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 0.25rem; margin-bottom: 0.45rem; }
.dp-head strong { flex: 1; text-align: center; font-size: 0.92rem; }
.dp-nav { padding: 0.15rem 0.5rem; border-radius: 8px; line-height: 1.2; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-week span { text-align: center; font-size: 0.7rem; font-weight: 600; color: #64748b; padding: 0.2rem 0; }
.dp-day {
    padding: 0.4rem 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 0.85rem;
}
.dp-day:hover:not(:disabled) { background: #eef2f7; }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--primary); }
.dp-day.selected, .dp-day.selected:hover { background: var(--primary); color: #fff; }
.dp-day:disabled { color: #cbd5e1; cursor: default; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 0.5rem; }

.tp { display: flex; align-items: center; gap: 0.3rem; }
.tp select { width: auto; flex: 1; min-width: 4.2rem; }
.tp-sep { font-weight: 700; color: #64748b; }

.sidebar .nav-group { display: flex; flex-direction: column; }
.sidebar .nav-items { display: flex; flex-direction: column; gap: 2px; }
.sidebar .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0.55rem 0 0.15rem;
    padding: 0.4rem 0.75rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a9ab3;
    cursor: pointer;
}
.sidebar .nav-toggle:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.sidebar .nav-toggle .chev { transition: transform 0.15s ease; font-size: 0.8rem; }
.sidebar .nav-group.collapsed .chev { transform: rotate(-90deg); }

.picker-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0.6rem 0; }
.picker-list { max-height: 380px; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 10px; }
.picker-list table { width: 100%; }
.picker-list tr { cursor: pointer; }
.picker-list tr:hover { background: #f8fafc; }
.picker-list tr.picked { background: var(--primary-soft); }
.picker-list .pick-check { width: 2rem; }

.avatar-modal { max-width: 720px; }
.avatar-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.avatar-modal-head h2 { margin: 0; }
.avatar-grid-lg {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    max-height: min(60vh, 520px);
    margin-top: 0;
    gap: 0.5rem;
}
.avatar-grid-lg .avatar-cell { padding: 3px; }
.avatar-grid-lg .avatar-cell img { width: 100%; height: auto; border-radius: 12px; }
.avatar-grid-lg .avatar-cell:hover { border-color: #cbd5e1; }
.avatar-grid-lg .avatar-cell.active { border-color: var(--primary); }

.brand-logo { height: 38px; width: auto; object-fit: contain; flex: none; }
.sidebar .brand-logo {
    height: 40px;
    padding: 3px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
}
.auth-card .brand-row .brand-logo { height: 54px; }
.auth-card .brand-row { font-size: 1.4rem; }

.result-icon { display: inline-flex; align-items: center; padding: 0.2rem 0.5rem; }
.result-icon svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
