:root {
    --bg: #0e1016;
    --surface: #171b25;
    --text: #eff2fa;
    --muted: #9ca8bd;
    --border: #ffffff12;
    --accent: #5b8cff;
    --radius: 18px;
    color-scheme: dark
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.9 Tahoma, Arial, sans-serif
}

body.light {
    --bg: #f3f5fa;
    --surface: #fff;
    --text: #192238;
    --muted: #59677e;
    --border: #162b4818;
    color-scheme: light
}

a {
    color: var(--accent);
    text-decoration: none
}

button,
input,
select {
    font: inherit
}

button,
.button {
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-block;
    font-weight: bold
}

button:hover,
.button:hover {
    filter: brightness(1.12)
}

button:disabled {
    opacity: .4
}

input,
select {
    padding: 11px 14px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    max-width: 100%;
    outline: none
}

input:focus,
select:focus {
    border-color: var(--accent)
}

label {
    display: block
}

label input {
    display: block;
    width: 100%;
    margin: 8px 0 20px
}

aside {
    width: 235px;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    border-left: 1px solid var(--border);
    padding: 28px 20px;
    background: var(--surface);
    display: flex;
    flex-direction: column
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 48px;
    font-size: 23px;
    font-weight: bold
}

.brand b {
    width: 48px;
    height: 48px;
    background: var(--accent);
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: white;
    font-family: Arial
}

.brand small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    font-weight: normal
}

nav {
    display: grid;
    gap: 8px;
    margin-top: 15px
}

nav a {
    padding: 12px 16px;
    color: var(--muted);
    border-radius: 10px;
    display: flex;
    gap: 14px
}

nav a.selected,
nav a:hover,
.tabs .selected {
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--accent)
}

nav a span {
    font-size: 20px
}

.sidebottom {
    margin-top: auto;
    font-size: 11px;
    color: var(--muted)
}

.sidebottom button {
    width: 100%;
    margin-top: 15px
}

main {
    margin-right: 235px;
    padding: 30px 38px;
    max-width: 1800px
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px
}

h1 {
    font-size: 25px;
    margin: 4px 0
}

h2 {
    margin: 10px 0;
    font-size: 26px
}

h3 {
    font-size: 16px;
    margin: 0 0 8px
}

.muted,
small {
    color: var(--muted)
}

.adminpill,
.person {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--text)
}

.avatar {
    background: color-mix(in srgb, var(--accent) 20%, var(--surface));
    color: var(--accent);
    border-radius: 13px;
    min-width: 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center
}

.avatar.large {
    width: 70px;
    height: 70px;
    font-size: 30px
}

.person small {
    display: block;
    font-size: 11px
}

.hero {
    background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px 40px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden
}

.hero h2 {
    font-size: 30px
}

.hero p {
    color: var(--muted)
}

.eyebrow {
    font: 10px Arial;
    letter-spacing: 3px;
    color: var(--accent)
}

.orb {
    width: 145px;
    height: 145px;
    border: 1px solid var(--accent);
    box-shadow: 0 0 55px color-mix(in srgb, var(--accent) 20%, transparent), inset 0 0 35px color-mix(in srgb, var(--accent) 20%, transparent);
    border-radius: 35px;
    transform: rotate(-10deg);
    display: grid;
    place-content: center;
    text-align: center;
    font: bold 64px Arial;
    color: var(--accent);
    margin-left: 30px
}

.orb span {
    font: 10px Arial;
    letter-spacing: 6px;
    margin-top: 8px
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 22px;
    min-width: 0
}

.stats .card {
    margin: 0
}

.stats h2 {
    font-size: 24px
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399
}

.stats .card small:last-child {
    font-size: 10px
}

.sectionhead {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap
}

.filters input {
    flex: 1;
    min-width: 180px
}

.scroll {
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
    text-align: right
}

th {
    font-weight: normal;
    color: var(--muted);
    font-size: 12px;
    background: var(--bg)
}

td,
th {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border)
}

td {
    font-size: 12px
}

td:nth-child(3) {
    max-width: 360px;
    white-space: normal;
    min-width: 140px
}

tbody tr:hover {
    background: color-mix(in srgb, var(--accent) 4%, transparent)
}

.mono {
    font-family: monospace;
    direction: ltr;
    unicode-bidi: embed
}

.badge {
    font-size: 11px;
    border-radius: 7px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
    padding: 5px 10px;
    display: inline-block
}

.badge.done,
.badge.confirmed,
.badge.approved {
    color: #34d399;
    background: #34d39915
}

.badge.rejected {
    color: #f87171;
    background: #f8717115
}

.badge.pending,
.badge.processing {
    color: #fbbf24;
    background: #fbbf2415
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 22px;
    gap: 12px
}

.pagination a {
    margin-right: 8px
}

.ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border)
}

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

.twocol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px
}

.twocol form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.twocol form input {
    flex: 1
}

.infogrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
    border-top: 1px solid var(--border);
    color: var(--muted)
}

.profile .stats {
    margin-top: 30px
}

.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px
}

.tabs a {
    padding: 10px 20px;
    border-radius: 9px
}

.swatches {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap
}

.swatch {
    width: 38px;
    height: 38px;
    border: 3px solid #ffffff35;
    border-radius: 50%;
    padding: 0
}

input[type=color] {
    width: 55px;
    height: 44px;
    padding: 4px
}

.notice {
    padding: 15px;
    background: #34d39915;
    border: 1px solid #34d39940;
    border-radius: 10px;
    margin-bottom: 20px
}

.loginmain {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-content: center;
    background: radial-gradient(ellipse at top, #5b8cff18, transparent 60%)
}

.login {
    width: min(420px, 90vw);
    padding: 35px
}

.login .brand {
    margin-bottom: 25px
}

.login button {
    width: 100%;
    margin-top: 12px
}

footer {
    text-align: center;
    font: 10px Arial;
    letter-spacing: 2px;
    color: var(--muted);
    margin-top: 30px
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 25px 0
}

details {
    white-space: normal;
    max-width: 300px
}

summary {
    color: var(--accent);
    cursor: pointer
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px
}

@media(min-width:1600px) {
    main {
        padding-left: 60px;
        padding-right: 60px
    }
}

@media(max-width:1000px) {
    aside {
        width: 190px;
        padding: 20px 14px
    }

    main {
        margin-right: 190px;
        padding: 24px
    }

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

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

    .orb {
        width: 110px;
        height: 110px;
        font-size: 50px
    }
}

@media(max-width:650px) {
    aside {
        position: static;
        width: auto;
        padding: 14px;
        border-left: 0;
        border-bottom: 1px solid var(--border)
    }

    aside .brand {
        margin: 0;
        font-size: 18px
    }

    aside .brand b {
        width: 35px;
        height: 35px
    }

    aside>small,
    .sidebottom {
        display: none
    }

    nav {
        display: flex;
        overflow: auto;
        gap: 5px
    }

    nav a {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 12px
    }

    nav a span {
        display: none
    }

    main {
        margin: 0;
        padding: 20px 14px
    }

    h1 {
        font-size: 22px
    }

    .hero {
        padding: 24px
    }

    .hero h2 {
        font-size: 24px
    }

    .orb {
        display: none
    }

    .stats {
        gap: 10px
    }

    .stats h2 {
        font-size: 19px
    }

    .card {
        padding: 16px
    }

    .adminpill {
        font-size: 11px
    }

    .adminpill .avatar {
        display: none
    }

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

    .pagination {
        font-size: 12px
    }

    .tabs a {
        padding: 8px 12px
    }

    .loginmain {
        padding: 15px
    }

    .sectionhead {
        align-items: flex-start
    }

    .filters select {
        flex: 1
    }
}
