:root {
    /* ── Tema ESCURO (padrão) ─────────────────────────────── */
    --bg: #0c1322;
    --surface: #162035;
    --surface-soft: #111927;
    --ink: #dde6f0;
    --muted: #7a90b4;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.13);
    --primary: #e11d48;
    --primary-dark: #be123c;
    --blue: #4a90d9;
    --brand-yellow: #eab308;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.6), 0 8px 16px -6px rgba(0, 0, 0, 0.4);

    /* Tokens de tema (usados pelos overrides light) */
    --heading: #e2eaf5;
    --body-glow-1: rgba(225, 29, 72, 0.09);
    --body-glow-2: rgba(30, 58, 138, 0.06);
    --input-bg: rgba(255, 255, 255, 0.04);
    --hover-soft: rgba(255, 255, 255, 0.03);
    --panel-solid: #1a2844;
    --select-panel: #111827;
    --th-bg: rgba(255, 255, 255, 0.03);
    --stat-base: rgba(22, 32, 53, 0.92);
    --stat-value: #f0f5fc;
    --sidebar-grad:
        linear-gradient(180deg, rgba(215, 25, 32, .14), transparent 22%),
        linear-gradient(180deg, #0b1428 0%, #0a1020 55%, #070d1b 100%);
    --sidebar-ink: #e7eef8;
    --sidebar-brand-bg: linear-gradient(145deg, rgba(7, 13, 27, .98), rgba(18, 27, 49, .96));
    --sidebar-active: rgba(255, 255, 255, .06);
}

:root[data-theme="light"] {
    /* ── Tema CLARO ───────────────────────────────────────── */
    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-soft: #eef1f7;
    --ink: #1a2433;
    --muted: #5b6b85;
    --line: rgba(15, 23, 42, 0.10);
    --line-strong: rgba(15, 23, 42, 0.16);
    --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px -5px rgba(15, 23, 42, 0.14), 0 8px 16px -6px rgba(15, 23, 42, 0.08);

    --heading: #0f1b2e;
    --body-glow-1: rgba(225, 29, 72, 0.05);
    --body-glow-2: rgba(30, 58, 138, 0.04);
    --input-bg: #f4f6fb;
    --hover-soft: rgba(15, 23, 42, 0.03);
    --panel-solid: #ffffff;
    --select-panel: #ffffff;
    --th-bg: rgba(15, 23, 42, 0.03);
    --stat-base: rgba(255, 255, 255, 0.96);
    --stat-value: #0f1b2e;
    --sidebar-grad:
        linear-gradient(180deg, rgba(215, 25, 32, .10), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
    --sidebar-ink: #33415a;
    --sidebar-brand-bg: linear-gradient(145deg, #ffffff, #eef1f7);
    --sidebar-active: rgba(15, 23, 42, .05);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    color-scheme: dark;
}

body {
    min-height: 100%;
    margin: 0;
    background:
        radial-gradient(circle at 80% 0%, var(--body-glow-1), transparent 40%),
        radial-gradient(circle at 10% 90%, var(--body-glow-2), transparent 40%),
        var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}


.shell {
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
    min-height: 100vh;
}

.side {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--sidebar-grad);
    color: var(--sidebar-ink);
    padding: 26px 16px;
    box-shadow: 12px 0 34px rgba(11, 20, 40, .18);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
}

.brand {
    display: grid;
    gap: 10px;
    align-items: start;
    min-height: 44px;
    margin-bottom: 30px;
}

.brand-logo {
    display: block;
    width: min(100%, 210px);
    max-height: 62px;
    object-fit: contain;
    object-position: left center;
}

.side .brand-logo {
    width: 218px;
    max-height: 68px;
}

.brand small {
    display: block;
    color: var(--sidebar-ink);
    font-size: 12px;
    line-height: 1.25;
}

.partner-logos {
    display: flex;
    align-items: center;
    gap: 10px;
}

.partner-logos img {
    height: 30px;
    object-fit: contain;
}

.partner-x {
    color: rgba(255, 255, 255, .3);
    font-size: 13px;
}

.side .brand {
    position: relative;
    overflow: hidden;
    background: var(--sidebar-brand-bg);
    border: 1px solid rgba(255, 210, 31, .18);
    border-radius: 8px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .26), inset 0 0 0 1px rgba(255, 255, 255, .04);
    padding: 13px 12px 12px;
}

.side .brand::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--brand-yellow));
}

.side .brand small {
    border-left: 3px solid var(--brand-yellow);
    color: var(--sidebar-ink);
    font-weight: 800;
    padding-left: 8px;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

.nav {
    display: grid;
    gap: 8px;
}

.nav-icon {
    flex-shrink: 0;
    height: 18px;
    width: 18px;
    opacity: .75;
    transition: opacity .2s;
}

.nav-sep {
    border-top: 1px solid rgba(255,255,255,.08);
    margin: 4px 0;
}

.nav a,
.nav-item,
.logout {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    padding: 11px 12px;
    background: transparent;
    color: var(--sidebar-ink);
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    text-align: left;
}

.nav a:hover,
.nav-item:hover,
.logout:hover {
    background: var(--hover-soft);
    color: var(--heading);
}

.nav a:hover .nav-icon,
.nav-item:hover .nav-icon,
.logout:hover .nav-icon {
    opacity: 1;
}

.nav a.on,
.nav-item.on {
    background: var(--sidebar-active);
    box-shadow: inset 3px 0 0 var(--primary);
    color: var(--heading);
}

.nav a.on .nav-icon,
.nav-item.on .nav-icon {
    opacity: 1;
}

.side-profile {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff7c2, #ffe058);
    color: #741018;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.side-profile-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.side-profile-info b {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--sidebar-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.side-logout-form {
    display: block;
    flex-shrink: 0;
}

.side-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-height: 0;
    padding: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, .06);
    color: rgba(203, 213, 225, .7);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: none;
    transition: background .2s, color .2s;
}

.side-logout:hover {
    background: rgba(225, 29, 72, .22);
    color: #fca5a5;
    transform: none;
    box-shadow: none;
}

.side-logout svg {
    width: 15px;
    height: 15px;
}

.main {
    min-width: 0;
    padding: 36px clamp(26px, 3vw, 44px);
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.top-copy {
    min-width: 0;
}

.top-side {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 12px;
}

.theme-toggle {
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    display: inline-grid;
    height: 46px;
    justify-items: center;
    width: 46px;
    min-height: 46px;
    padding: 0;
    box-shadow: none;
    transition: background .2s, color .2s, border-color .2s;
}

.theme-toggle:hover {
    background: var(--hover-soft);
    color: var(--ink);
    border-color: var(--primary);
    transform: none;
    box-shadow: none;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.notifications {
    position: relative;
}

.notification-menu {
    position: relative;
}

.notification-menu summary {
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    color: var(--ink);
    cursor: pointer;
    display: inline-grid;
    height: 46px;
    justify-items: center;
    list-style: none;
    position: relative;
    width: 46px;
    transition: background 0.2s;
}

.notification-menu summary:hover {
    background: var(--hover-soft);
}

.notification-menu summary::-webkit-details-marker {
    display: none;
}

.notification-menu svg {
    fill: none;
    height: 21px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 21px;
}

.notification-menu summary span {
    align-items: center;
    background: var(--primary);
    border: 2px solid rgba(12, 19, 34, 0.8);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    justify-content: center;
    min-height: 20px;
    min-width: 20px;
    padding: 0 5px;
    position: absolute;
    right: -7px;
    top: -7px;
}

.notification-panel {
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    display: grid;
    gap: 10px;
    padding: 14px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(340px, 86vw);
    z-index: 10;
}

.notification-panel > b {
    color: var(--heading);
    font-size: 14px;
}

.notification-item {
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand-yellow);
    border-radius: 8px;
    display: grid;
    gap: 3px;
    padding: 10px;
    background: var(--hover-soft);
}

.notification-item.late {
    border-left-color: var(--primary);
}

.notification-item strong,
.notification-item span,
.notification-item small {
    display: block;
}

.notification-item strong {
    color: var(--heading);
}

.notification-item span {
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
}

.notification-item small {
    color: var(--muted);
    font-size: 12px;
}

.notification-link {
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--heading);
    display: inline-flex;
    font-weight: 850;
    justify-content: center;
    min-height: 38px;
    padding: 8px 10px;
    transition: background 0.2s;
}

.notification-link:hover {
    background: var(--hover-soft);
}

.deadline-login-alert {
    border-color: rgba(234, 179, 8, 0.3);
    background: rgba(234, 179, 8, 0.08);
    color: #fde68a;
}

:root[data-theme="light"] .deadline-login-alert {
    color: #92640a;
}

.top h1 {
    margin: 0;
    color: var(--heading);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.08;
}

.top p {
    max-width: 620px;
    margin: 6px 0 0;
    color: var(--muted);
}

.profile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
    justify-content: flex-end;
}

.admin-shortcut {
    align-items: center;
    background: linear-gradient(135deg, #d71920, #a90f16);
    border-radius: 8px;
    color: #fff;
    display: grid;
    min-height: 48px;
    min-width: 138px;
    padding: 9px 14px;
    box-shadow: 0 16px 28px rgba(215, 25, 32, .25);
}

.admin-shortcut:hover {
    background: linear-gradient(135deg, #ef1f27, #b9151d);
}

.admin-shortcut span,
.admin-shortcut b {
    display: block;
    line-height: 1.1;
}

.admin-shortcut span {
    font-size: 11px;
    font-weight: 750;
    opacity: .82;
}

.admin-shortcut b {
    font-size: 15px;
    margin-top: 3px;
}

.profile b,
.profile small {
    display: block;
    text-align: right;
}

.profile small {
    color: var(--muted);
    font-size: 12px;
}

.profile-avatar {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff7c2, #ffe058);
    color: #741018;
    font-weight: 800;
    text-transform: uppercase;
}


/* ── Custom Select ──────────────────────────────── */
.cselect {
    position: relative;
}

.cselect-trigger {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: var(--input-bg);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, background .15s;
    box-shadow: none;
}

.cselect-trigger:hover {
    background: var(--hover-soft);
    border-color: var(--line-strong);
    transform: none;
    box-shadow: none;
}

.cselect-trigger.open {
    border-color: rgba(225, 29, 72, .5);
    background: rgba(225, 29, 72, .06);
}

.cselect-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cselect-chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #7a90b4;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s;
}

.cselect-trigger.open .cselect-chevron {
    transform: rotate(180deg);
}

.cselect-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--select-panel);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    overflow: hidden;
    overflow-y: auto;
    max-height: 280px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.cselect-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: background .1s;
    border-bottom: 1px solid var(--line);
}

.cselect-option:last-child {
    border-bottom: none;
}

.cselect-option:hover {
    background: var(--hover-soft);
}

.cselect-option.selected {
    background: rgba(225, 29, 72, .08);
    color: #fca5a5;
}

.cselect-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cselect-option span:not(.cselect-dot) {
    flex: 1;
    min-width: 0;
}

.cselect-check {
    margin-left: auto;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #f87171;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* ─────────────────────────────────────────────── */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    padding: 24px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.mt {
    margin-top: 18px;
}

.cols {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
}

.eyebrow {
    color: var(--primary);
    display: block;
    font-size: 11px;
    font-weight: 850;
    margin-bottom: 4px;
    text-transform: uppercase;
}

h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--heading);
    margin: 0 0 8px;
}

h2 {
    color: var(--heading);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
}

form {
    display: grid;
    gap: 12px;
}

label {
    color: var(--muted);
    display: grid;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
}

.field-hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}


input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--ink);
    font: inherit;
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.password-field {
    position: relative;
}

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

.password-toggle,
.password-toggle:hover {
    align-items: center;
    background: transparent;
    box-shadow: none;
    color: var(--muted);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    min-height: 0;
    padding: 0;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
}

.password-toggle svg {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 20px;
}

.password-toggle.is-visible {
    color: var(--primary);
}

.caps-hint {
    color: var(--warning);
    font-size: 12px;
    font-weight: 800;
}

textarea {
    min-height: 82px;
    resize: vertical;
}

button,
.button-link,
.small-action,
.danger-button {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button {
    background: var(--primary);
    color: #fff;
    padding: 10px 18px;
    box-shadow: 0 4px 6px -1px rgba(225, 29, 72, 0.2), 0 2px 4px -1px rgba(225, 29, 72, 0.12);
}

button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.3), 0 4px 6px -4px rgba(225, 29, 72, 0.2);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
    box-shadow: none;
}

.button-link,
.small-action,
.danger-button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    padding: 8px 14px;
}

.button-link,
.small-action,
.secondary {
    background: var(--input-bg);
    color: var(--ink);
    border: 1px solid var(--line-strong);
}

.button-link:hover,
.small-action:hover,
.secondary:hover {
    background: var(--hover-soft);
    color: var(--heading);
    transform: translateY(-1px);
}

.danger-button {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.danger-button:hover {
    background: rgba(239, 68, 68, 0.18);
    transform: translateY(-1px);
}

.table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: auto;
}

.compact-table table {
    min-width: 620px;
}

table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    padding: 13px 12px;
    text-align: left;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: 0;
}

th {
    background: var(--th-bg);
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

tr:hover td {
    background: var(--hover-soft);
}

tr.is-low-stock td {
    background: rgba(234, 179, 8, 0.07);
}

tr.is-low-stock:hover td {
    background: rgba(234, 179, 8, 0.12);
}

.actions {
    white-space: nowrap;
}

.actions form {
    display: inline-block;
    margin-left: 8px;
}

.pill {
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    min-height: 26px;
    padding: 5px 9px;
}

.pill.is-available {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.pill.is-active {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}

.pill.is-maintenance,
.warn {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.pill.is-reserved {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
}

.pill.is-empty,
.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.pill.is-return {
    background: rgba(20, 184, 166, 0.12);
    color: #2dd4bf;
}

.alert {
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: 8px;
    background: rgba(20, 184, 166, 0.08);
    color: #5eead4;
    margin-bottom: 18px;
    padding: 12px 14px;
    font-weight: 650;
}

.error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

/* Textos de alerta legíveis sobre fundo claro */
:root[data-theme="light"] .alert { color: #0f766e; }
:root[data-theme="light"] .error { color: #b91c1c; }

/* Badges de status com contraste adequado no tema claro */
:root[data-theme="light"] .pill.is-available { color: #15803d; }
:root[data-theme="light"] .pill.is-active { color: #1d4ed8; }
:root[data-theme="light"] .pill.is-maintenance,
:root[data-theme="light"] .warn { color: #b45309; }
:root[data-theme="light"] .pill.is-reserved { color: #6d28d9; }
:root[data-theme="light"] .pill.is-empty,
:root[data-theme="light"] .danger { color: #b91c1c; }

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

.creator-credit {
    color: rgba(122, 144, 180, 0.5);
    font-size: 12px;
    font-weight: 700;
    margin: 24px 0 0;
    text-align: center;
}

.auth-credit {
    color: rgba(226, 232, 240, .74);
    text-align: center;
}

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

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

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

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

    .side-profile {
        display: none;
    }
}

@media (max-width: 620px) {
    .main {
        padding: 14px;
    }

    .top {
        flex-direction: column;
        align-items: stretch;
    }

    .top h1 {
        font-size: 20px;
    }

    .top-side {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-shortcut {
        min-width: 0;
    }

    .profile {
        justify-content: flex-start;
        min-width: 0;
    }

    .profile b,
    .profile small {
        text-align: left;
    }

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

    .partner-logos img {
        height: 24px;
    }

    .side {
        padding: 16px 12px;
    }

    .side .brand {
        padding: 10px;
    }

    .table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-scroll table {
        min-width: 620px;
    }

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

    .creator-credit {
        font-size: 10px;
        padding: 8px 0;
    }
}
