:root {
    --ink: #111318;
    --muted: #667085;
    --line: #e6e8ee;
    --soft: #f6f8fb;
    --surface: rgba(255, 255, 255, 0.86);
    --brand: #0f766e;
    --brand-dark: #0f3f3b;
    --gold: #b7791f;
    --danger: #b42318;
    --shadow: 0 20px 60px rgba(17, 19, 24, 0.09);
}

* {
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(246, 248, 251, 0.96), rgba(255, 255, 255, 0.98)),
        repeating-linear-gradient(90deg, rgba(15, 118, 110, 0.04) 0, rgba(15, 118, 110, 0.04) 1px, transparent 1px, transparent 120px);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header,
.admin-topbar {
    background: #121417;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
}

.brand-mark-lg {
    width: 84px;
    height: 84px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
}

.glass-card {
    background: var(--surface);
    border: 1px solid rgba(230, 232, 238, 0.9);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.section-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 34px rgba(17, 19, 24, 0.06);
}

.public-shell {
    min-height: 100vh;
}

.download-panel {
    max-width: 560px;
    width: 100%;
}

.form-control,
.form-select {
    border-radius: 8px;
    border-color: #d7dbe5;
    min-height: 48px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.16);
}

.btn {
    border-radius: 8px;
    min-height: 44px;
    font-weight: 700;
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn-dark {
    background: #121417;
    border-color: #121417;
}

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

.result-list {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.result-list label {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    margin: 0;
    cursor: pointer;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.result-list label:last-child {
    border-bottom: 0;
}

.result-list label:hover {
    background: #f8fafc;
}

.admin-shell {
    min-height: 100vh;
    background: #f6f8fb;
}

.admin-sidebar {
    background: #17191d;
    color: #d0d5dd;
    min-height: calc(100vh - 73px);
}

.admin-sidebar a {
    color: #d0d5dd;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 650;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.stat-tile {
    border-left: 4px solid var(--brand);
}

.upload-preview {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.editor-frame {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px;
}

.canvas-wrap {
    min-width: 320px;
}

.small-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.table {
    vertical-align: middle;
}

.badge-soft {
    background: rgba(15, 118, 110, 0.12);
    color: var(--brand-dark);
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        min-height: auto;
    }

    .admin-sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (max-width: 575.98px) {
    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-mark-lg {
        width: 68px;
        height: 68px;
    }

    .download-panel {
        margin-inline: 12px;
    }

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