* {
    box-sizing: border-box;
}

:root {
    --bg: #090b0e;
    --panel: #101216;
    --panel-soft: #15181d;
    --panel-hover: #20242b;
    --border: #363a43;
    --border-soft: #292d34;
    --text: #f2efe8;
    --muted: #b3b4ba;
    --gold: #ff2638;
    --gold-bright: #ff4052;
    --danger: #5a332b;
    --success-bg: #123818;
    --success-border: #2f7a3b;
    --success-text: #a7f3a0;
    --error-bg: #3b1818;
    --error-border: #743232;
    --error-text: #ffb3b3;
    --discord: #5865f2;
}

*::selection {
    background: rgba(255, 64, 82, 0.35);
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 64, 82, 0.08), transparent 36rem),
        radial-gradient(circle at bottom right, rgba(88, 101, 242, 0.06), transparent 34rem),
        var(--bg);
    color: var(--text);
}

button,
input,
textarea,
select {
    font: inherit;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: rgba(16, 18, 22, 0.96);
    border-right: 1px solid var(--border-soft);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.16);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #090b0e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(255, 64, 82, 0.18);
}

.brand-mark.large {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 22px;
}

.brand h1,
.login-brand h1 {
    font-size: 18px;
    margin: 0;
    letter-spacing: -0.02em;
}

.brand p,
.login-brand p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav a {
    color: #d5d5d8;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nav a:hover {
    background: var(--panel-hover);
    border-color: var(--border);
    color: #ffffff;
    transform: translateX(2px);
}

.logout-form {
    margin-top: auto;
}

.logout-form button {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: #3a2722;
    color: var(--text);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
}

.logout-form button:hover {
    background: var(--danger);
}

.main {
    flex: 1;
    padding: 28px;
    min-width: 0;
}

.topbar {
    background: rgba(16, 18, 22, 0.94);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.topbar h2 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.topbar p {
    margin: 6px 0 0;
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.card {
    background: rgba(16, 18, 22, 0.94);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.10);
}

.card h3 {
    margin: 0 0 12px;
}

.card p {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.card span {
    color: var(--muted);
    font-size: 14px;
}

.status-good {
    color: #94d38b;
}

.wide-card {
    max-width: 760px;
}

.module-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    align-items: start;
}

.template-list {
    position: sticky;
    top: 28px;
}

.section-header {
    margin-bottom: 14px;
}

.section-header h3 {
    margin-bottom: 6px;
}

.template-item {
    display: block;
    text-decoration: none;
    color: var(--text);
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.template-item:hover,
.template-item.active {
    background: var(--panel-hover);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.template-item strong {
    display: block;
    margin-bottom: 4px;
}

.template-item span,
.muted {
    color: var(--muted);
    font-size: 13px;
}

.builder-area {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.form-card label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-card label span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

input,
textarea,
select {
    width: 100%;
    background: #090b0e;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea {
    resize: vertical;
}

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--gold) 50%),
        linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
    padding-right: 40px;
    cursor: pointer;
}

select option {
    background: #101216;
    color: var(--text);
}

input:hover,
textarea:hover,
select:hover {
    border-color: #777d88;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 64, 82, 0.13);
    background: #12151a;
}

input[type="checkbox"] {
    appearance: none;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    padding: 0;
    background: #292d34;
    border: 1px solid #535963;
    cursor: pointer;
    position: relative;
    flex: 0 0 auto;
}

input[type="checkbox"]::after {
    content: "";
    width: 16px;
    height: 16px;
    background: #b3b4ba;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 4px;
    transition: transform 0.15s ease, background 0.15s ease;
}

input[type="checkbox"]:checked {
    background: rgba(255, 64, 82, 0.28);
    border-color: var(--gold);
}

input[type="checkbox"]:checked::after {
    transform: translateX(17px);
    background: var(--gold-bright);
}

.form-grid.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.button-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

button,
.discord-login-button {
    border: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #090b0e;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover,
.discord-login-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255, 64, 82, 0.16);
}

.secondary-button {
    background: #292d34;
    color: var(--text);
}

.notice {
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 800;
}

.notice.success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.notice.error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
}

.field-editor {
    margin-top: 22px;
}

.field-row {
    background: #090b0e;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
}

.field-row-title {
    color: #d5d5d8;
    font-weight: 900;
    margin-bottom: 12px;
}

.inline-toggle {
    justify-content: flex-start;
}

.form-card label.inline-toggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: rgba(9, 11, 14, 0.65);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 12px 14px;
}

.inline-toggle input {
    margin: 0;
}

.choice-fieldset {
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 14px;
    margin: 0 0 18px;
}

.choice-fieldset legend {
    padding: 0 8px;
    color: var(--gold-bright);
    font-weight: 900;
}

.choice-fieldset .inline-toggle + .inline-toggle {
    margin-top: 10px;
}

.choice-fieldset .inline-toggle span,
.choice-fieldset .inline-toggle small {
    display: block;
}

.form-warning {
    display: block;
    margin-top: 7px;
    color: var(--error-text);
    font-weight: 800;
}

.discord-preview {
    display: flex;
    gap: 14px;
    max-width: 760px;
}

.discord-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #090b0e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex: 0 0 auto;
}

.discord-message {
    flex: 1;
    min-width: 0;
}

.discord-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.discord-author span {
    font-size: 10px;
    background: var(--discord);
    color: white;
    border-radius: 5px;
    padding: 2px 5px;
}

.discord-author small {
    color: var(--muted);
}

.embed-preview {
    position: relative;
    background: var(--panel-soft);
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    padding: 14px;
    max-width: 620px;
    min-height: 90px;
    overflow-wrap: anywhere;
}

.embed-preview.has-thumb {
    padding-right: 120px;
}

.embed-preview h4 {
    margin: 0 0 10px;
    font-size: 16px;
}

.embed-description {
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;
    margin-bottom: 12px;
}

.embed-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
}

.embed-field {
    min-width: 0;
}

.embed-field.inline {
    display: inline-block;
    width: 32%;
    vertical-align: top;
    margin-right: 1%;
}

.embed-field strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.embed-field p {
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;
    margin: 0;
}

.embed-image {
    display: block;
    max-width: 100%;
    border-radius: 10px;
    margin-top: 14px;
}

.embed-thumb {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 10px;
}

.embed-footer {
    display: block;
    color: #d5d5d8;
    margin-top: 12px;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 64, 82, 0.16), transparent 34rem),
        radial-gradient(circle at 80% 80%, rgba(88, 101, 242, 0.10), transparent 30rem),
        #090b0e;
}

.login-shell {
    width: 100%;
    max-width: 460px;
}

.login-card {
    background: rgba(16, 18, 22, 0.94);
    border: 1px solid var(--border-soft);
    border-radius: 26px;
    padding: 30px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 26px 0;
}

.login-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.login-copy {
    color: #d5d5d8;
    line-height: 1.55;
    margin: 0 0 22px;
}

.discord-login-button {
    width: 100%;
    background: linear-gradient(135deg, #5865f2, #7681ff);
    color: white;
    padding: 14px 18px;
}

.discord-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.login-footnote {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    margin: 18px 0 0;
}

@media (max-width: 1100px) {
    .module-grid {
        grid-template-columns: 1fr;
    }

    .template-list {
        position: static;
    }

    .form-grid.two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--border-soft);
    }

    .main {
        padding: 18px;
    }

    .embed-preview.has-thumb {
        padding-right: 14px;
        padding-top: 112px;
    }

    .embed-thumb {
        left: 14px;
        right: auto;
    }

    .embed-field.inline {
        display: block;
        width: 100%;
        margin-right: 0;
    }
}

.status-bad {
    color: #ff8f8f;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard-hero h2 {
    margin: 0 0 6px;
    font-size: 32px;
    letter-spacing: -0.04em;
}

.dashboard-hero span {
    color: var(--muted);
}

.eyebrow {
    color: var(--gold-bright);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.hero-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(9, 11, 14, 0.75);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 10px 14px;
    white-space: nowrap;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.status-dot.online {
    background: #94d38b;
    box-shadow: 0 0 16px rgba(148, 211, 139, 0.65);
}

.status-dot.offline {
    background: #ff8f8f;
    box-shadow: 0 0 16px rgba(255, 143, 143, 0.55);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.stat-card {
    background: rgba(16, 18, 22, 0.94);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.10);
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.stat-card strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.stat-card small {
    color: var(--muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    margin-bottom: 18px;
}

.module-status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.module-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(9, 11, 14, 0.65);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 14px;
}

.module-status-row strong {
    display: block;
    margin-bottom: 4px;
}

.module-status-row span {
    color: var(--muted);
    font-size: 13px;
}

.pill {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid transparent;
}

.pill.enabled {
    color: #a7f3a0;
    background: rgba(47, 122, 59, 0.18);
    border-color: rgba(47, 122, 59, 0.55);
}

.pill.disabled {
    color: #b3b4ba;
    background: rgba(179, 180, 186, 0.08);
    border-color: rgba(179, 180, 186, 0.18);
}

.pill.neutral {
    color: #d5d5d8;
    background: rgba(255, 64, 82, 0.14);
    border-color: rgba(255, 64, 82, 0.34);
}

.system-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.system-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(9, 11, 14, 0.65);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 12px 14px;
}

.system-list span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.system-list strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.quick-action-card {
    display: block;
    background: rgba(9, 11, 14, 0.65);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 16px;
    color: var(--text);
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: var(--panel-hover);
}

.quick-action-card strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
}

.quick-action-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 1200px) {
    .stat-grid,
    .quick-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-grid,
    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .module-status-row,
    .system-list div {
        align-items: flex-start;
        flex-direction: column;
    }

    .system-list strong {
        text-align: left;
    }
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 15px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #090b0e;
}

.action-link.secondary {
    background: #292d34;
    color: var(--text);
    border: 1px solid var(--border);
}

.action-link.full {
    width: 100%;
    margin-top: 14px;
}

.row-between,
.search-row,
.filter-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.table-card {
    margin-bottom: 18px;
}

.failure-reason {
    max-width: 360px;
    color: var(--error-text);
    white-space: normal;
    overflow-wrap: anywhere;
}

.responsive-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 13px 12px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

td a,
.filter-links a {
    color: var(--gold-bright);
}

.table-subtext {
    display: block;
    color: var(--muted);
    margin-top: 5px;
}

.empty-state {
    padding: 24px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
}

.ticket-type-builder {
    max-width: 980px;
}

select[multiple] {
    min-height: 180px;
    background-image: none;
    padding-right: 14px;
}

.danger-button {
    background: linear-gradient(135deg, #6b3029, #9a3f35);
    color: #fff;
}

.danger-zone {
    border-color: rgba(154, 63, 53, 0.65);
}

.preview-ticket-button {
    display: inline-flex;
    margin: 8px 6px 0 0;
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    background: #5865f2;
}

.preview-ticket-button.secondary { background: #4f545c; }
.preview-ticket-button.success { background: #3ba55d; }
.preview-ticket-button.danger { background: #ed4245; }

.search-row {
    justify-content: flex-start;
    margin: 18px 0;
}

.search-row input {
    max-width: 620px;
}

.search-row button {
    flex: 0 0 auto;
}

code {
    color: #d5d5d8;
    overflow-wrap: anywhere;
}

@media (max-width: 720px) {
    .row-between,
    .search-row {
        align-items: stretch;
        flex-direction: column;
    }
}


/* NCS public-site visual language. */
@font-face{font-family:NCS Display;src:url('/public/assets/barlow-condensed-600.woff2?v=latin-20261003') format('woff2');font-style:normal;font-weight:600;font-display:swap}
:root{color-scheme:dark;--bg:#090b0e;--panel:#101216;--panel-soft:#15181d;--text:#f2efe8;--muted:#b3b4ba;--gold:#ff4052;--gold-bright:#ff4052;--mono:Consolas,'Courier New',monospace}
body{background:var(--bg);font-size:15px;line-height:1.6;-webkit-text-size-adjust:100%}
a{color:inherit;text-underline-offset:5px}a:hover{color:var(--gold)}
:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.skip{position:absolute;top:-100px;left:20px;padding:12px 18px;background:var(--text);color:var(--bg);z-index:20}.skip:focus{top:12px}
.app-shell{display:block;max-width:1440px;margin:auto;padding:0 48px}
.sidebar{width:100%;min-height:96px;display:flex;flex-direction:row;align-items:center;gap:48px;padding:18px 0;background:none;border:0;border-bottom:1px solid var(--border);box-shadow:none}
.brand{margin:0;gap:14px;text-decoration:none;flex-shrink:0}.brand img{object-fit:contain}.brand>span{font:600 22px/1 'NCS Display',sans-serif;letter-spacing:1px}.brand small{display:block;font:10px/1.6 var(--mono);letter-spacing:1px;text-transform:uppercase;margin-top:5px;color:var(--muted)}
.nav{flex-direction:row;gap:28px;margin-left:auto;flex-wrap:wrap}.nav a{padding:12px 0;border:0;border-radius:0;color:var(--muted);font-size:13px;position:relative}.nav a:hover{background:none;transform:none;color:var(--text)}.nav a[aria-current=page]{color:var(--text)}.nav a[aria-current=page]::after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--gold)}
.logout-form{margin:0}.logout-form button{width:auto;background:none;border:1px solid var(--border);font-size:12px;padding:10px 14px;gap:20px}.logout-form button:hover{background:var(--panel-soft)}
.main{padding:42px 0 0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;background:none;border:0;border-radius:0;padding:0;margin:0 0 32px;box-shadow:none}.topbar h1{font:600 42px/1.1 'NCS Display',sans-serif;margin:8px 0 0}.topbar p{font-size:12px;margin:0}.topbar .eyebrow{font:11px/1.4 var(--mono);letter-spacing:1.3px}.account-label strong{color:var(--text);font-weight:400}
.card,.stat-card,.quick-action-card,.field-row,.template-item,.choice-fieldset,.notice,.empty-state{border-radius:0;box-shadow:none}.card{padding:26px;background:var(--panel);border:1px solid var(--border-soft)}.card p{font-size:14px;font-weight:400;line-height:1.6}.card h3{font:600 27px/1.2 'NCS Display',sans-serif;margin:0 0 8px}.card span{font-size:14px}.card .eyebrow,.eyebrow{font:11px/1.5 var(--mono);text-transform:uppercase;letter-spacing:1.3px;color:var(--muted);margin:0 0 18px}
.dashboard-hero{min-height:260px;position:relative;isolation:isolate;overflow:hidden;background:var(--bg);padding:26px 0 38px;border:0;margin-bottom:0;align-items:flex-end}.dashboard-hero::before{content:'';position:absolute;inset:0 0 0 34%;background:url('/public/assets/ncs-skyline.svg') right bottom/100% auto no-repeat;opacity:.24;z-index:-1;mask-image:linear-gradient(to right,transparent,#000 30%)}.dashboard-hero h2{font:600 clamp(48px,6vw,78px)/.95 'NCS Display',sans-serif;letter-spacing:-1px;margin:0 0 20px}.dashboard-hero h2 em{font-style:normal;color:var(--gold)}.dashboard-hero>div>span{font-size:14px;color:var(--muted)}.hero-status{background:var(--bg);border:1px solid var(--border);border-radius:0;font:11px var(--mono);padding:12px 16px;margin-bottom:4px}.status-dot{width:6px;height:6px}.status-dot.online,.status-dot.offline{box-shadow:none}
.stat-grid{gap:0;border:1px solid var(--border);margin-bottom:32px;grid-template-columns:repeat(4,minmax(0,1fr))}.stat-card{background:var(--bg);border:0;border-right:1px solid var(--border);padding:24px}.stat-card:last-child{border:0}.stat-card span{font:10px var(--mono);letter-spacing:1px;margin-bottom:14px}.stat-card strong{font:600 30px/1.1 'NCS Display',sans-serif;letter-spacing:0;margin-bottom:8px}.stat-card small{font-size:12px}
.dashboard-grid{gap:24px;margin-bottom:24px;grid-template-columns:1.2fr 1fr}.section-header{margin-bottom:22px}.section-header .muted{font-size:13px;font-weight:400}.module-status-list,.system-list{gap:0}.module-status-row,.system-list div{border:0;border-bottom:1px solid var(--border-soft);border-radius:0;background:none;padding:17px 0;flex-direction:row}.module-status-row:last-child,.system-list div:last-child{border-bottom:0}.module-status-row strong{font-size:14px;font-weight:400}.module-status-row span{font-size:12px}.pill{border-radius:2px;padding:4px 8px;font:10px/1.4 var(--mono)}.pill.neutral,.pill.disabled{color:var(--muted);background:#181c22;border-color:var(--border)}.system-list span{font:10px/1.5 var(--mono);letter-spacing:.5px}.system-list strong{font-size:12px;font-weight:400}.system-list div{min-height:52px}.quick-action-grid{gap:16px}.quick-action-card{background:none;border:1px solid var(--border);padding:20px}.quick-action-card:hover{transform:none;border-color:var(--gold);background:var(--panel-soft)}.quick-action-card strong{font:600 24px 'NCS Display',sans-serif}.quick-action-card span{font-size:12px}
input,textarea,select{border-radius:2px;padding:12px;background-color:var(--bg);font-size:14px;line-height:1.5}input:focus,textarea:focus,select:focus{box-shadow:none;outline:2px solid var(--gold);outline-offset:2px;background-color:var(--bg)}input[type=checkbox]{border-radius:3px;width:22px;height:22px;background:var(--bg)}input[type=checkbox]::after{width:10px;height:10px;left:5px;top:5px;border-radius:0;transform:none;background:transparent}input[type=checkbox]:checked{background:var(--gold);border-color:var(--gold)}input[type=checkbox]:checked::after{transform:none;background:var(--text);clip-path:polygon(0 40%,35% 70%,100% 0,100% 35%,35% 100%,0 70%)}
button,.discord-login-button,.action-link{border-radius:0;background:#d91630;color:#fff;font-size:13px;font-weight:600;min-height:44px;transition:background .15s ease}.discord-login-button:hover,button:hover,.action-link:hover{background:#ef203b;color:#fff;box-shadow:none;transform:none;filter:none}.secondary-button,.action-link.secondary{background:var(--panel-soft);color:var(--text);border:1px solid var(--border)}.form-card label span{font:11px var(--mono);letter-spacing:.7px}.form-card label.inline-toggle{border-radius:0;background:none;padding:14px;gap:20px}.form-grid.two{gap:20px}.module-grid{grid-template-columns:260px minmax(0,1fr);gap:24px}.template-list{top:24px}.template-item:hover{transform:none}.field-row{background:var(--bg)}.discord-avatar{background:#d91630;color:white}.embed-preview{background:#202127}.wide-card{max-width:960px}.panel-footer{display:flex;justify-content:space-between;gap:24px;margin-top:48px;padding:28px 0;border-top:1px solid var(--border);color:var(--muted);font:10px/1.5 var(--mono);letter-spacing:1px}.panel-footer a{text-decoration:none}
.login-body{display:flex;flex-direction:column;min-height:100svh;padding:0 48px;background:var(--bg)}.login-header,.login-footer{width:min(1280px,100%);margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;font:11px var(--mono);letter-spacing:1px;color:var(--muted)}.login-header{min-height:96px;border-bottom:1px solid var(--border)}.login-header img{object-fit:contain}.login-shell{position:relative;isolation:isolate;display:flex;align-items:center;width:min(1280px,100%);max-width:none;flex:1;min-height:560px;margin:auto}.login-card{position:relative;z-index:1;background:none;border:0;box-shadow:none;border-radius:0;padding:64px 0;width:min(580px,100%)}.login-card h1{font:600 clamp(72px,8vw,112px)/.92 'NCS Display',sans-serif;margin:24px 0 30px;letter-spacing:-1px}.login-card h1 span{color:var(--gold)}.login-copy{color:var(--muted);font-size:17px;margin-bottom:32px}.discord-login-button{width:auto;gap:42px;padding:16px 24px}.login-footnote{text-align:left;max-width:350px;font-size:12px;line-height:1.7;margin:22px 0 0}.login-skyline{position:absolute;inset:0 -5% 0 25%;z-index:-1;background:url('/public/assets/ncs-skyline.svg') right bottom/100% auto no-repeat;opacity:.4;mask-image:linear-gradient(to right,transparent,#000 35%)}.login-footer{min-height:90px;border-top:1px solid var(--border);font-size:10px}.login-footer a{text-decoration:none}
@media(min-width:1600px){.dashboard-hero{min-height:300px}}
@media(max-width:1100px){.app-shell{padding:0 28px}.sidebar{gap:24px}.nav{gap:20px}.dashboard-grid{grid-template-columns:1fr 1fr}.module-grid{grid-template-columns:1fr}.template-list{position:static}.quick-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.two{grid-template-columns:1fr}.stat-card{padding:20px 16px}.stat-card strong{font-size:26px}}
@media(max-width:760px){.app-shell{padding:0 20px}.sidebar{flex-wrap:wrap;padding:20px 0;gap:18px}.brand{order:0}.logout-form{order:1;margin-left:auto}.nav{order:2;width:100%;margin:0;gap:24px}.main{padding-top:28px}.topbar{align-items:flex-start}.topbar h1{font-size:36px}.account-label{max-width:135px;text-align:right}.dashboard-hero{min-height:270px;align-items:flex-start;flex-direction:column;gap:20px;padding-top:8px}.dashboard-hero::before{left:15%;opacity:.15}.dashboard-hero h2{font-size:60px}.stat-grid{grid-template-columns:1fr 1fr}.stat-card:nth-child(2){border-right:0}.stat-card:nth-child(-n+2){border-bottom:1px solid var(--border)}.dashboard-grid{grid-template-columns:1fr;gap:20px}.card{padding:22px 18px}.module-status-row{align-items:center;gap:16px}.system-list div{align-items:center}.system-list strong{text-align:right}.panel-footer{flex-direction:column;gap:16px}.login-body{padding:0 24px}.login-header{min-height:82px;font-size:9px}.login-shell{min-height:600px;align-items:flex-start}.login-card{padding:60px 0 150px}.login-skyline{left:-10%;right:-10%;opacity:.25;background-size:160% auto}.login-footer{align-items:flex-start;justify-content:center;flex-direction:column;gap:12px;padding:22px 0}.login-card h1{font-size:84px}}
@media(max-width:420px){.nav{gap:20px}.nav a{font-size:12px}.brand>span{font-size:20px}.brand small{font-size:9px}.quick-action-grid{grid-template-columns:1fr}.module-status-row>div{min-width:0}.module-status-row span{font-size:11px}.login-card h1{font-size:72px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.login-body{overflow-x:clip}.logout-form button{border-radius:0}
.login-skyline{right:0}@media(max-width:760px){.login-skyline{left:0;right:0}}
