@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #161e19;
    --sidebar: #1b2b22;
    --panel: #27352c;
    --panel2: #314035;
    --ink: #f5f2e9;
    --muted: #b4bfb2;
    --line: #ffffff22;
    --acid: #d1b48a;
    --pink: #c3a18b;
    --blue: #a5c6b1;
    --red: #e29d91;
}

* {
    font-family: 'Barlow Condensed' !important;
    box-sizing: border-box;
}

:focus,
:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--ink);
}

body {
    font-size: 19px;
    font-weight: 500;
}

::selection {
    background: var(--acid);
    color: #000;
}

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

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

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

.hidden {
    display: none !important;
}

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

.accent {
    color: var(--acid);
}

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

#login-screen {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-art {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6vw;
    background: linear-gradient(130deg, #2a4033, #101b15);
}

.login-art h1 {
    font-size: clamp(90px, 15vw, 225px);
    line-height: .72;
    margin: 0;
    text-transform: uppercase;
}

.login-art h1 span {
    color: var(--acid);
}

.login-art p {
    font-size: 27px;
    max-width: 420px;
}

.login-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.login-card {
    width: min(100%, 470px);
}

.brand {
    font-weight: 900;
    font-size: 31px;
}

.brand b {
    color: var(--acid);
}

.brand-small {
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 900;
    font-size: 14px;
}

.login-card h2 {
    font-size: 80px;
    line-height: .85;
    text-transform: uppercase;
    margin: 26px 0;
}

.login-card>p {
    color: var(--muted);
    font-size: 21px;
}

.field {
    display: block;
    margin: 14px 0;
}

.field>span,
.field>label {
    display: block;
    color: #dfd5e1;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.control {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #ffffff2f;
    background: #100f15;
    color: white;
    resize: vertical;
    border-radius: 0;
}

.control::placeholder {
    color: #7c7384;
}

.control.area {
    min-height: 135px;
}

.control:focus,
.control:focus-visible {
    border-color: #ffffff2f !important;
}

textarea {
    line-height: 1.3;
}

.primary,
.secondary,
.danger,
.tiny,
.close-btn {
    border: 1px solid transparent;
    background: var(--acid);
    color: #100d14;
    padding: 12px 18px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
    transition: filter .15s, transform .15s;
}

.primary:hover,
.secondary:hover,
.danger:hover,
.tiny:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.primary.full {
    width: 100%;
}

.secondary {
    background: transparent;
    border-color: #ffffff55;
    color: white;
}

.danger {
    background: #5f1b2a;
    color: #ffe7ed;
    border-color: #c34e6a;
}

.tiny {
    padding: 8px 12px;
    font-size: 14px;
    background: #352a3c;
    color: var(--acid);
    border-color: #ffffff1c;
}

.tiny.red {
    color: #ffadba;
}

.close-btn {
    padding: 8px 12px;
    background: transparent;
    color: var(--muted);
    font-size: 26px;
}

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

.sidebar {
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow: auto;
    background: var(--sidebar);
    border-right: 1px solid var(--line);
    padding: 30px 17px;
}

.sidebar-brand {
    padding: 6px 14px 27px;
    border-bottom: 1px solid var(--line);
}

.sidebar-badge {
    font-size: 11px;
    font-weight: 900;
    color: var(--acid);
    text-transform: uppercase;
}

.menu-label {
    font-size: 13px;
    color: #80778a;
    text-transform: uppercase;
    font-weight: 900;
    margin: 23px 13px 8px;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    font-size: 20px;
    font-weight: 700;
    color: #c9c1cc;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.menu-item:hover,
.menu-item.active {
    background: #342e3b;
    color: var(--acid);
}

.menu-item .symbol {
    font-size: 22px;
    width: 26px;
    text-align: center;
}

.sidebar-foot {
    border-top: 1px solid var(--line);
    padding: 20px 12px;
    margin-top: 26px;
    font-size: 16px;
    color: var(--muted);
}

.main {
    padding: 0 42px 65px;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: space-between;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.topbar .crumb {
    font-size: 14px;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 900;
}

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

.role-badge {
    border: 1px solid #deff5077;
    padding: 7px 11px;
    color: var(--acid);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 900;
}

.topbar-email {
    font-size: 16px;
    color: var(--muted);
}

.page-title {
    font-size: clamp(48px, 6vw, 94px);
    text-transform: uppercase;
    line-height: .9;
    font-weight: 900;
    margin: 33px 0 14px;
}

.page-subtitle {
    color: var(--muted);
    font-size: 22px;
    margin: 0 0 28px;
}

.title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.title-row .page-subtitle {
    margin: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat {
    padding: 27px 25px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.stat span {
    font-size: 16px;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 900;
}

.stat b {
    font-size: 64px;
    display: block;
    color: var(--acid);
    line-height: 1.1;
}

.stat small {
    font-size: 16px;
    color: #9e91a7;
}

.panel {
    padding: 25px;
    background: var(--panel);
    border: 1px solid var(--line);
    margin-top: 22px;
}

.panel h3 {
    font-size: 33px;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.panel p {
    font-size: 19px;
    color: var(--muted);
}

.panel-table {
    overflow: auto;
    border: 1px solid var(--line);
    background: var(--panel);
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 670px;
    text-align: left;
}

thead {
    background: #2c2434;
}

th {
    padding: 15px 17px;
    text-transform: uppercase;
    color: var(--acid);
    font-size: 14px;
}

td {
    padding: 16px 17px;
    border-top: 1px solid var(--line);
    vertical-align: middle;
    font-size: 19px;
}

td.small {
    font-size: 16px;
    color: var(--muted);
}

.table-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.cell-title {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.1;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    background: #382b42;
    color: #d9cce0;
}

.pill.active {
    background: #2f4421;
    color: var(--acid);
}

.pill.draft {
    background: #413638;
    color: #e9adb3;
}

.toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.toolbar .control {
    max-width: 390px;
}

.simple-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.simple-row {
    border: 1px solid var(--line);
    padding: 13px 17px;
    background: #221b2b;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
}

.simple-row strong {
    font-size: 21px;
}

.simple-row small {
    display: block;
    color: var(--muted);
    font-size: 16px;
}

.dim-note {
    color: var(--muted);
    font-size: 18px;
    padding: 24px;
    background: var(--panel);
    border-left: 4px solid var(--acid);
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .8);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

#overlay.open {
    display: flex;
}

.modal {
    width: min(850px, 100%);
    max-height: 92vh;
    background: #1c1724;
    border: 1px solid #55465c;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 110px #000d;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--line);
}

.modal-head h3 {
    font-size: 35px;
    text-transform: uppercase;
    margin: 0;
}

.modal-body {
    padding: 20px 28px;
    overflow-y: auto;
}

.modal-foot {
    padding: 19px 28px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.form-grid .field.wide {
    grid-column: 1/-1;
}

.media-control {
    display: flex;
    gap: 8px;
    align-items: center;
}

.media-control .control {
    flex: 1;
    min-width: 0;
}

.thumb-preview {
    width: 140px;
    height: 105px;
    object-fit: cover;
    background: #32263a;
    margin-top: 10px;
    border: 1px solid var(--line);
}

.toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px;
    cursor: pointer;
    background: #1e1c22;
    border: 1px solid var(--line);
    user-select: none;
    min-height: 51px;
}

.toggle-indicator {
    width: 44px;
    height: 25px;
    background: #504257;
    position: relative;
    border-radius: 15px;
}

.toggle-indicator:after {
    content: '';
    width: 19px;
    height: 19px;
    position: absolute;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    background: #e8dfe8;
    transition: .2s;
}

.toggle[data-on="true"] .toggle-indicator {
    background: var(--acid);
}

.toggle[data-on="true"] .toggle-indicator:after {
    left: 22px;
    background: #111;
}

.toggle span {
    font-size: 17px;
    font-weight: 700;
}

.select-custom {
    position: relative;
}

.select-trigger {
    cursor: pointer;
    min-height: 49px;
    border: 1px solid #ffffff2f;
    background: #100f15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 13px;
    color: white;
}

.select-trigger:after {
    content: '⌄';
    color: var(--acid);
    font-size: 25px;
}

.select-options {
    position: absolute;
    z-index: 160;
    top: 100%;
    left: 0;
    right: 0;
    background: #302638;
    border: 1px solid #68526d;
    display: none;
    max-height: 260px;
    overflow: auto;
    box-shadow: 0 25px 60px #000b;
}

.select-custom.open .select-options {
    display: block;
}

.select-option {
    padding: 11px 13px;
    cursor: pointer;
}

.select-option:hover,
.select-option.selected {
    background: var(--acid);
    color: #100d15;
}

.check-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.custom-check {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px;
    background: #15121b;
    border: 1px solid var(--line);
    cursor: pointer;
}

.custom-check .indicator {
    height: 19px;
    width: 19px;
    border: 1px solid #b1a6bd;
    display: grid;
    place-items: center;
}

.custom-check.active {
    border-color: var(--acid);
    color: var(--acid);
}

.custom-check.active .indicator {
    background: var(--acid);
    color: #101018;
}

.modal-confirm {
    max-width: 450px;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 25px;
    z-index: 250;
    background: #292331;
    border-left: 5px solid var(--acid);
    padding: 15px 21px;
    min-width: 260px;
    max-width: 430px;
    box-shadow: 0 15px 35px #000b;
    font-size: 19px;
}

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

.section-label {
    color: var(--acid);
    font-size: 19px;
    margin: 20px 0 10px;
    text-transform: uppercase;
    font-weight: 900;
}

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

@media(max-width:1100px) {
    #shell {
        grid-template-columns: 205px 1fr
    }

    .main {
        padding: 0 25px 60px
    }

    .sidebar {
        padding: 24px 9px
    }

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

@media(max-width:720px) {
    #login-screen {
        grid-template-columns: 1fr
    }

    .login-art {
        display: none
    }

    #shell {
        display: block
    }

    .sidebar {
        position: static;
        max-height: none;
        display: flex;
        overflow: auto;
        white-space: nowrap;
        padding: 8px
    }

    .sidebar-brand,
    .menu-label,
    .sidebar-foot {
        display: none
    }

    .menu-item {
        width: auto;
        flex: 0 0 auto;
        font-size: 17px;
        padding: 12px 10px
    }

    .menu-item .symbol {
        font-size: 20px;
        width: auto
    }

    .main {
        padding: 0 15px 40px
    }

    .topbar {
        padding: 17px 0
    }

    .topbar-email {
        display: none
    }

    .page-title {
        font-size: 54px
    }

    .stats {
        gap: 9px
    }

    .stat {
        padding: 15px
    }

    .stat b {
        font-size: 44px
    }

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

    .modal-body {
        padding: 15px
    }

    .modal-head,
    .modal-foot {
        padding: 14px
    }

    .check-list {
        grid-template-columns: 1fr
    }

    .toolbar .control {
        max-width: 100%
    };
}


/* Refinamientos premium */

.login-art .brand,
.sidebar .brand {
    font-size: 34px;
    font-weight: 800;
}

.primary {
    background: var(--acid);
}

.stat {
    border-radius: 3px;
}

.panel,
.panel-table {
    border-radius: 3px;
}

.menu-item.active {
    background: #3a4d3d;
    color: #f5dfb7;
}