:root {
    --bg-void: #060504;
    --bg-stone: #140f0d;
    --bg-ember: #26180f;
    --panel: rgba(27, 20, 16, 0.94);
    --panel-strong: rgba(34, 25, 19, 0.98);
    --panel-border: rgba(177, 148, 97, 0.38);
    --panel-inner: rgba(240, 220, 180, 0.08);
    --text: #f1e7d1;
    --muted: #b8a98a;
    --accent: #d3b173;
    --accent-strong: #f0d9aa;
    --accent-cool: #9daeb5;
    --danger: #bc7861;
    --success: #8aa06b;
    --warning: #d3a55b;
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.52);
    --radius-lg: 10px;
    --radius-md: 8px;
    --radius-sm: 6px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.18rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(4, 3, 2, 0.48), rgba(4, 3, 2, 0.8)),
        url('image/bg.jpg') center / cover fixed no-repeat,
        radial-gradient(circle at 16% 18%, rgba(119, 135, 148, 0.16), transparent 25%),
        radial-gradient(circle at 84% 14%, rgba(173, 126, 72, 0.18), transparent 24%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58)),
        linear-gradient(145deg, var(--bg-void), var(--bg-stone) 38%, var(--bg-ember));
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    background:
        linear-gradient(rgba(233, 216, 177, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(233, 216, 177, 0.035) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: 0.42;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.84));
}

body::after {
    background:
        linear-gradient(120deg, rgba(239, 217, 174, 0.06), transparent 22%),
        radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.56) 100%);
}

::selection {
    background: rgba(211, 177, 115, 0.32);
    color: var(--accent-strong);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
.eyebrow,
.button,
.status-pill,
.stat-card strong,
.identity-name {
    font-family: 'Cinzel', serif;
}

code,
.mono-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.88rem;
}

.ambient {
    position: fixed;
    inset: auto;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    filter: blur(108px);
    opacity: 0.28;
    pointer-events: none;
    animation: drift 18s ease-in-out infinite;
}

.ambient-one {
    top: -10rem;
    left: -9rem;
    background: rgba(139, 157, 171, 0.54);
}

.ambient-two {
    right: -10rem;
    bottom: -12rem;
    background: rgba(160, 107, 54, 0.52);
    animation-delay: -7s;
}

.panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 242, 214, 0.06), transparent 18%),
        linear-gradient(145deg, rgba(49, 36, 27, 0.96), rgba(20, 14, 11, 0.98));
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    animation: rise-in 0.78s ease both;
}

.panel::before,
.panel::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.panel::before {
    inset: 10px;
    border: 1px solid var(--panel-inner);
    border-radius: calc(var(--radius-lg) - 4px);
    background:
        linear-gradient(90deg, transparent, rgba(240, 220, 180, 0.06), transparent),
        linear-gradient(180deg, rgba(255, 247, 231, 0.03), transparent 32%);
}

.panel::after {
    background:
        radial-gradient(circle at top left, rgba(245, 225, 182, 0.1), transparent 25%),
        radial-gradient(circle at bottom right, rgba(77, 52, 34, 0.28), transparent 28%);
}

.panel > * {
    position: relative;
    z-index: 1;
}

.login-shell,
.dashboard-shell {
    padding: 2rem;
}

.login-layout {
    width: min(1180px, 100%);
    min-height: calc(100vh - 4rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 1.6rem;
    align-items: stretch;
}

.hero-panel,
.auth-panel,
.topbar,
.stat-card,
.form-column > .panel,
.dashboard-grid > .panel {
    padding: 1.8rem;
}

.hero-panel h1,
.topbar h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.7rem);
    line-height: 0.98;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--accent-strong);
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.42);
}

.lede,
.panel-header p,
.muted,
.notes-copy,
.stat-card span,
.feature-card p,
.empty-state p,
.checklist li,
.identity-meta {
    color: var(--muted);
}

.eyebrow {
    margin: 0 0 0.9rem;
    color: var(--accent);
    font-size: 0.84rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 1.5rem;
    height: 1px;
    margin-right: 0.7rem;
    background: linear-gradient(90deg, rgba(240, 217, 170, 0.18), rgba(240, 217, 170, 0.7));
    vertical-align: middle;
    transform: translateY(-0.16rem);
}

.feature-stack,
.server-stack {
    display: grid;
    gap: 1rem;
}

.feature-card,
.server-card,
.integration-box,
.key-box,
.inline-note,
.identity-chip {
    position: relative;
    border: 1px solid rgba(195, 165, 111, 0.22);
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(255, 241, 210, 0.04), transparent 26%),
        rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px 0 rgba(255, 247, 230, 0.04);
}

.feature-card {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.1rem;
    align-items: flex-start;
}

.feature-step {
    flex: 0 0 auto;
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(240, 217, 170, 0.34);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 245, 221, 0.32), transparent 35%),
        linear-gradient(145deg, rgba(114, 84, 43, 0.94), rgba(60, 42, 24, 0.98));
    color: var(--accent-strong);
    font-family: 'Cinzel', serif;
    font-size: 0.92rem;
    box-shadow: 0 0 0 3px rgba(76, 52, 31, 0.28);
}

.feature-card h2,
.panel-header h2,
.server-card h3,
.empty-state h3 {
    margin: 0 0 0.25rem;
    font-size: 1.28rem;
    color: var(--accent-strong);
    letter-spacing: 0.04em;
}

.inline-note {
    margin-top: 1.35rem;
    display: inline-flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.95rem 1rem;
}

.inline-note strong {
    color: var(--accent-strong);
}

.inline-note code,
.integration-box code,
.key-box code {
    color: var(--accent-strong);
}

.panel-header {
    margin-bottom: 1.2rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(177, 148, 97, 0.16);
}

.panel-header p:last-child {
    margin-bottom: 0;
}

.row-between,
.topbar,
.topbar-actions,
.server-title-row,
.key-box,
.action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}

.topbar {
    width: min(1320px, 100%);
    margin: 0 auto 1.5rem;
}

.topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.identity-chip {
    padding: 0.85rem 1rem;
    display: grid;
    gap: 0.15rem;
    min-width: 15rem;
}

.identity-name {
    color: var(--accent-strong);
    font-size: 0.98rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.identity-meta {
    font-size: 1rem;
}

.language-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

.language-bar.compact {
    margin-bottom: 0;
}

.language-label {
    color: var(--muted);
    font-family: 'Cinzel', serif;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.language-select {
    min-width: 11rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(177, 148, 97, 0.24);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(180deg, rgba(255, 244, 220, 0.04), transparent 24%),
        rgba(10, 7, 6, 0.58);
    color: var(--text);
    font-family: 'Cinzel', serif;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.language-select:focus {
    outline: none;
    border-color: rgba(240, 217, 170, 0.52);
    box-shadow: 0 0 0 3px rgba(211, 177, 115, 0.16);
}

.hero-grid {
    width: min(1320px, 100%);
    margin: 0 auto 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    background:
        linear-gradient(180deg, rgba(240, 220, 180, 0.05), transparent 32%),
        linear-gradient(155deg, rgba(35, 25, 20, 0.96), rgba(18, 13, 10, 0.98));
}

.stat-card strong {
    display: block;
    margin-bottom: 0.45rem;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    color: var(--accent-strong);
    letter-spacing: 0.08em;
}

.dashboard-grid {
    width: min(1320px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.92fr);
    gap: 1.5rem;
    align-items: start;
}

.form-column {
    display: grid;
    gap: 1.5rem;
}

.site-shell {
    padding: 2rem;
}

.site-layout {
    width: min(1320px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.8rem;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.brand-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    color: var(--accent-strong);
    font-family: 'Cinzel', serif;
    font-size: 1.32rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-link span {
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 0.14em;
}

.hero-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 1.5rem;
    align-items: stretch;
}

.browser-stage {
    align-items: stretch;
}

.browser-hero,
.browser-stats,
.browser-controls,
.browser-results {
    padding: 1.5rem;
}

.browser-controls {
    position: sticky;
    top: 1rem;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.browser-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.metric-tile {
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(195, 165, 111, 0.22);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(180deg, rgba(255, 241, 210, 0.04), transparent 26%),
        rgba(255, 255, 255, 0.02);
}

.metric-tile p {
    margin: 0 0 0.4rem;
    color: var(--muted);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
}

.metric-tile strong {
    color: var(--accent-strong);
    font-family: 'Cinzel', serif;
    font-size: 1.7rem;
    letter-spacing: 0.06em;
}

.metric-footnote {
    margin: 0.9rem 0 0;
}

.browser-toolbar {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 0.9rem;
    align-items: end;
}

.quick-filters {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.quick-filters-label {
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
}

.quick-chip {
    border: 1px solid rgba(177, 148, 97, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.quick-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(217, 186, 129, 0.4);
}

.quick-chip.is-active {
    background:
        linear-gradient(180deg, rgba(255, 245, 222, 0.2), transparent 36%),
        linear-gradient(145deg, #987442, #5e4323);
    color: #f7eedc;
    border-color: rgba(240, 217, 170, 0.38);
}

.search-field {
    min-width: 0;
}

.filter-field {
    min-width: 0;
}

.server-list-rows {
    display: grid;
    gap: 0.85rem;
}

.server-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1.2fr) minmax(150px, 0.8fr) minmax(180px, 0.9fr);
    gap: 0.8rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(195, 165, 111, 0.22);
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(255, 241, 210, 0.04), transparent 26%),
        rgba(255, 255, 255, 0.02);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.server-row:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 186, 129, 0.4);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.server-row-main h3 {
    margin: 0;
    color: var(--accent-strong);
    letter-spacing: 0.04em;
}

.server-row-subline {
    margin: 0.6rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.server-row-address {
    display: grid;
    gap: 0.38rem;
}

.address-label {
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
}

.copy-address {
    justify-content: flex-start;
    min-height: 2.5rem;
    padding: 0.55rem 0.75rem;
    letter-spacing: 0;
    text-transform: none;
}

.copy-address code {
    color: var(--accent-strong);
    font-size: 0.84rem;
}

.server-row-population {
    display: grid;
    gap: 0.2rem;
    justify-content: center;
    text-align: center;
}

.server-row-population strong {
    color: var(--accent-strong);
    font-family: 'Cinzel', serif;
    font-size: 1.12rem;
    letter-spacing: 0.06em;
}

.server-row-population span,
.join-hint {
    color: var(--muted);
    font-size: 0.9rem;
}

.server-row-cta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: flex-end;
    text-align: right;
}

.button-join {
    min-height: 2.35rem;
    padding: 0.58rem 0.95rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.hero-panel-secondary {
    padding: 1.8rem;
}

.site-copy {
    font-size: 1.14rem;
    line-height: 1.62;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.3rem;
}

.callout-grid,
.info-grid,
.endpoint-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.callout-card,
.info-card,
.endpoint-card,
.legal-article,
.server-browser-card,
.state-panel,
.info-banner {
    position: relative;
    padding: 1.2rem;
    border: 1px solid rgba(195, 165, 111, 0.22);
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(255, 241, 210, 0.04), transparent 26%),
        rgba(255, 255, 255, 0.025);
}

.callout-card h3,
.info-card h3,
.endpoint-card h3,
.legal-article h1,
.legal-article h2,
.server-browser-card h3,
.state-panel h2,
.info-banner h2 {
    margin-top: 0;
    color: var(--accent-strong);
}

.legal-article {
    padding: 1.8rem;
}

.legal-article h1 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.legal-article h2 {
    margin-top: 1.6rem;
    font-size: 1.35rem;
}

.legal-article p,
.legal-article li {
    color: var(--muted);
}

.legal-article hr {
    border: 0;
    border-top: 1px solid rgba(177, 148, 97, 0.18);
    margin: 1.5rem 0;
}

pre.legal-article {
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.back-link {
    margin-top: 1.4rem;
}

.server-browser-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.server-browser-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.server-browser-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 186, 129, 0.4);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.server-browser-card p {
    color: var(--muted);
}

.server-browser-meta {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(177, 148, 97, 0.24);
    background: rgba(255, 255, 255, 0.03);
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.status-line,
.endpoint-list {
    display: grid;
    gap: 0.75rem;
}

.endpoint-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--accent-strong);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.page-footer {
    text-align: center;
    padding: 1rem 1.2rem;
    color: var(--muted);
}

.server-card {
    padding: 1.15rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.server-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 186, 129, 0.4);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.server-card-active {
    border-color: rgba(217, 186, 129, 0.48);
    background:
        linear-gradient(180deg, rgba(248, 231, 197, 0.06), transparent 24%),
        rgba(76, 52, 31, 0.18);
}

.meta-grid {
    margin: 1rem 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.meta-grid > div {
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(195, 165, 111, 0.12);
}

.meta-grid dt {
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: 'Cinzel', serif;
}

.meta-grid dd {
    margin: 0.35rem 0 0;
}

.key-box {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
}

.key-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: 'Cinzel', serif;
}

.notes-copy {
    margin: 1rem 0 0;
    line-height: 1.55;
    padding-left: 0.85rem;
    border-left: 2px solid rgba(177, 148, 97, 0.26);
}

.action-row {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.status-pill {
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.status-active {
    background: rgba(138, 160, 107, 0.14);
    color: #caddae;
    border-color: rgba(138, 160, 107, 0.28);
}

.status-maintenance {
    background: rgba(211, 165, 91, 0.12);
    color: #f0d7aa;
    border-color: rgba(211, 165, 91, 0.28);
}

.status-draft {
    background: rgba(157, 174, 181, 0.12);
    color: #dbe3e7;
    border-color: rgba(157, 174, 181, 0.24);
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field span {
    color: var(--muted);
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(177, 148, 97, 0.24);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(180deg, rgba(255, 244, 220, 0.04), transparent 24%),
        rgba(10, 7, 6, 0.5);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(240, 217, 170, 0.52);
    box-shadow: 0 0 0 3px rgba(211, 177, 115, 0.16);
    transform: translateY(-1px);
    background-color: rgba(16, 12, 9, 0.74);
}

.field textarea {
    min-height: 8rem;
    resize: vertical;
}

.split-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.9rem 1.35rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.button:hover {
    transform: translateY(-1px);
}

.button:focus-visible {
    outline: 2px solid rgba(240, 217, 170, 0.74);
    outline-offset: 2px;
}

.button-primary {
    background:
        linear-gradient(180deg, rgba(255, 245, 222, 0.24), transparent 36%),
        linear-gradient(145deg, #987442, #5e4323);
    color: #f7eedc;
    border-color: rgba(240, 217, 170, 0.38);
    box-shadow: 0 12px 28px rgba(61, 39, 18, 0.34);
}

.button-secondary {
    background:
        linear-gradient(180deg, rgba(255, 239, 208, 0.08), transparent 38%),
        rgba(71, 51, 30, 0.36);
    border-color: rgba(177, 148, 97, 0.32);
    color: var(--accent-strong);
}

.button-tertiary,
.button-ghost {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(177, 148, 97, 0.2);
    color: var(--text);
}

.button-danger {
    background: rgba(111, 48, 35, 0.22);
    color: #efc0b2;
    border-color: rgba(188, 120, 97, 0.28);
}

.button.is-disabled,
.is-disabled {
    opacity: 0.56;
    pointer-events: none;
}

.button[disabled],
input[disabled],
select[disabled],
textarea[disabled] {
    opacity: 0.58;
    cursor: not-allowed;
}

.divider {
    margin: 1rem 0;
    position: relative;
    text-align: center;
    color: var(--muted);
}

.divider::before {
    content: '';
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid rgba(177, 148, 97, 0.18);
}

.divider span {
    position: relative;
    padding: 0 0.8rem;
    background: rgba(22, 16, 12, 0.96);
    font-family: 'Cinzel', serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.flash-stack {
    width: min(1320px, 100%);
    margin: 0 auto 1rem;
}

.limit-note {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(211, 165, 91, 0.12);
    border: 1px solid rgba(211, 165, 91, 0.28);
    color: var(--accent-strong);
}

.flash {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.flash-success {
    background: rgba(138, 160, 107, 0.14);
    border-color: rgba(138, 160, 107, 0.28);
    color: #dce8c4;
}

.flash-warning {
    background: rgba(211, 165, 91, 0.12);
    border-color: rgba(211, 165, 91, 0.28);
    color: var(--accent-strong);
}

.flash-error {
    background: rgba(188, 120, 97, 0.12);
    border-color: rgba(188, 120, 97, 0.28);
    color: #f1cbc0;
}

.empty-state,
.integration-box {
    padding: 1.15rem;
}

.checklist {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.7rem;
}

.checklist li::marker {
    color: var(--accent);
}

.integration-box + .integration-box {
    margin-top: 0.8rem;
}

.integration-box strong {
    color: var(--accent-strong);
    font-family: 'Cinzel', serif;
    letter-spacing: 0.04em;
}

.auth-panel .flash {
    margin-bottom: 1.2rem;
}

.feature-card:nth-child(2),
.hero-grid .stat-card:nth-child(2),
.server-stack .server-card:nth-child(2) {
    animation-delay: 0.08s;
}

.feature-card:nth-child(3),
.hero-grid .stat-card:nth-child(3),
.server-stack .server-card:nth-child(3) {
    animation-delay: 0.16s;
}

.hero-grid .stat-card:nth-child(4) {
    animation-delay: 0.24s;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(1.4rem, -1.7rem, 0) scale(1.05);
    }
}

@media (max-width: 1100px) {
    .login-layout,
    .dashboard-grid,
    .hero-grid,
    .hero-stage,
    .callout-grid,
    .info-grid,
    .endpoint-grid,
    .server-browser-grid,
    .browser-metric-grid {
        grid-template-columns: 1fr;
    }

    .browser-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .server-row {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .server-row-cta,
    .server-row-population {
        justify-content: flex-start;
        text-align: left;
    }

    .browser-controls {
        position: static;
        top: auto;
    }

    .topbar,
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 1.08rem;
    }

    .login-shell,
    .dashboard-shell {
        padding: 1rem;
    }

    .hero-panel,
    .auth-panel,
    .topbar,
    .stat-card,
    .form-column > .panel,
    .dashboard-grid > .panel {
        padding: 1.25rem;
    }

    .hero-panel h1,
    .topbar h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .split-fields,
    .meta-grid {
        grid-template-columns: 1fr;
    }

    .row-between,
    .server-title-row,
    .topbar-actions,
    .site-header-actions,
    .hero-actions,
    .server-row-subline {
        align-items: flex-start;
        flex-direction: column;
    }

    .browser-toolbar {
        grid-template-columns: 1fr;
    }

    .quick-filters {
        align-items: flex-start;
    }

    .button {
        width: 100%;
    }

    .action-row form {
        width: 100%;
    }

    .identity-chip {
        min-width: 0;
        width: 100%;
    }

    .language-bar {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
    }

    .language-select {
        width: 100%;
    }
}
