:root {
    --bg: #f2f0e7;
    --bg-accent: #edf2e8;
    --panel: rgba(255, 255, 255, .9);
    --ink: #16231b;
    --ink-soft: #5b685f;
    --line: rgba(29, 52, 34, .14);
    --accent: #42663f;
    --accent-dark: #27452d;
    --accent-light: #dcebd6;
    --danger: #9c3f38;
    --shadow: 0 14px 34px rgba(22, 43, 27, .09);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 88% 8%, rgba(205, 225, 196, .62), transparent 26rem), radial-gradient(circle at 8% 38%, rgba(247, 236, 205, .55), transparent 27rem), var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.05; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 5vw, 5rem); letter-spacing: -.045em; }
h2 { font-size: 1.3rem; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar, .main-content, .footer { width: min(100% - 48px, 1220px); margin-inline: auto; }
.topbar { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; min-height: 64px; margin-top: 22px; padding: 10px 14px; border: 1px solid rgba(27, 48, 31, .12); border-radius: 15px; background: rgba(255,255,255,.72); box-shadow: 0 9px 30px rgba(20,39,24,.05); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 220px; }
.brand-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: #fff; background: var(--accent); font-size: .8rem; box-shadow: 0 4px 10px rgba(38,68,42,.18); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .9rem; letter-spacing: -.02em; }
.brand small { margin-top: 1px; color: var(--ink-soft); font-size: .65rem; }
.nav { display: flex; align-items: center; justify-content: center; gap: 17px; flex: 1; }
.nav a { color: var(--ink-soft); font-size: .78rem; font-weight: 650; }
.nav a:hover, .nav-admin { color: var(--accent-dark); }
.nav-admin { font-weight: 850 !important; }
.account-links { display: flex; align-items: center; gap: 9px; }
.user-chip { max-width: 120px; overflow: hidden; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.main-content { flex: 1; padding: 34px 0 44px; }
.footer { display: flex; justify-content: space-between; gap: 18px; padding: 17px 0 20px; color: var(--ink-soft); font-size: .68rem; }
.eyebrow { margin-bottom: 9px; color: var(--accent); font-size: .68rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(320px, .72fr); gap: 35px; min-height: 410px; padding: 52px 30px 30px; border: 1px solid rgba(44,75,46,.13); border-radius: 26px; background: linear-gradient(115deg, rgba(255,255,255,.9), rgba(224,239,215,.88)); box-shadow: var(--shadow); overflow: hidden; }
.hero-copy { align-self: center; padding-left: 2px; }
.hero h1 { max-width: 720px; margin-bottom: 18px; }
.hero-lead { max-width: 680px; margin-bottom: 25px; color: var(--ink-soft); font-size: 1.03rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font: inherit; font-size: .76rem; font-weight: 800; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 7px 14px rgba(40,70,40,.17); }
.button-primary:hover { background: var(--accent-dark); }
.button-quiet { border-color: var(--line); color: var(--accent-dark); background: rgba(255,255,255,.64); }
.button-danger { color: #fff; background: var(--danger); }
.button-disabled { cursor: default; color: #868f88; border-color: var(--line); background: #edf0eb; }
.button-large { min-height: 43px; padding-inline: 15px; }
.button-full { width: 100%; }
.server-card { align-self: end; padding: 25px; background: rgba(22,44,28,.94); color: #f4f3e9; border-radius: 19px; box-shadow: 0 16px 29px rgba(28,48,31,.22); }
.server-card h2 { margin-bottom: 17px; font-family: Georgia, "Times New Roman", serif; font-size: 1.83rem; }
.server-card .card-kicker { margin: 8px 0 5px; color: rgba(255,255,255,.66); font-size: .77rem; text-transform: uppercase; letter-spacing: .13em; }
.status-dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: #98c780; box-shadow: 0 0 0 5px rgba(152,199,128,.14); }
.details-list { margin: 0; }
.details-list div, .compact-details div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.15); }
.details-list dt { color: rgba(255,255,255,.61); font-size: .83rem; }
.details-list dd { margin: 0; text-align: right; font-weight: 700; font-size: .83rem; }
.server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 22px 0; }
.server-select-card, .feature-card, .panel, .auth-card, .guide-step, .download-item, .empty-state, .server-context { background: var(--panel); border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(18,38,23,.05); }
.server-select-card { display: flex; flex-direction: column; min-height: 250px; padding: 26px; border-radius: 18px; }
.server-select-card h2 { margin-bottom: 9px; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.server-select-card > p:not(.eyebrow) { color: var(--ink-soft); line-height: 1.55; }
.server-select-card .button { align-self: flex-start; margin-top: auto; }
.compact-details { display: grid; gap: 0; margin: 16px 0; }
.compact-details div { border-color: var(--line); }
.compact-details dt, .compact-details dd { color: var(--ink-soft); font-size: .78rem; }
.compact-details dd { margin: 0; text-align: right; color: var(--ink); font-weight: 800; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0; }
.feature-card { min-height: 185px; padding: 22px; border-radius: 17px; }
.feature-card p, .panel p { color: var(--ink-soft); line-height: 1.55; font-size: .92rem; }
.feature-icon { display: inline-grid; width: 34px; height: 34px; margin-bottom: 17px; place-items: center; border-radius: 10px; background: var(--accent-light); color: var(--accent-dark); font-size: 1.12rem; }
.panel { border-radius: 17px; padding: 26px; }
.split-panel { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.split-panel h2 { margin-bottom: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; }
.flash { margin-bottom: 18px; padding: 14px 16px; border-radius: 12px; font-size: .9rem; border: 1px solid; }
.flash-success { background: #e4f1dc; color: #244722; border-color: #bddbb5; }
.flash-warning { background: #fcf1d8; color: #6f5318; border-color: #ead09a; }
.flash-error { background: #f8e3df; color: #742b25; border-color: #e6b9b1; }
.flash ul { margin: 8px 0 0 20px; }
.auth-wrap { display: grid; min-height: 60vh; place-items: center; }
.auth-card { width: min(470px, 100%); padding: 36px; border-radius: 21px; }
.update-card { width: min(700px, 100%); }
.auth-card h1 { font-size: 2.7rem; }
.auth-card > p:not(.eyebrow) { color: var(--ink-soft); line-height: 1.55; }
.form-stack { display: grid; gap: 14px; }
.form-stack label { display: grid; gap: 7px; color: var(--ink-soft); font-size: .82rem; font-weight: 750; }
input, select, textarea { width: 100%; border: 1px solid rgba(21,35,27,.22); border-radius: 9px; background: rgba(255,255,255,.85); color: var(--ink); padding: 10px 11px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(66,102,63,.12); }
textarea { min-height: 92px; resize: vertical; }
fieldset { min-width: 0; }
.server-checkboxes { display: grid; gap: 7px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.server-checkboxes legend { padding: 0 5px; color: var(--ink-soft); font-size: .82rem; font-weight: 750; }
.check-row { display: flex !important; align-items: center; gap: 8px; cursor: pointer; }
.check-row input { width: auto; }
.page-heading { margin: 8px 0 25px; }
.page-heading h1 { margin-bottom: 11px; font-size: clamp(2.45rem, 5vw, 4rem); }
.page-heading > p:not(.eyebrow) { max-width: 720px; color: var(--ink-soft); line-height: 1.6; }
.server-tabs { display: flex; gap: 9px; margin-bottom: 20px; overflow-x: auto; }
.server-tabs a { display: grid; gap: 3px; min-width: 200px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink-soft); background: rgba(255,255,255,.62); }
.server-tabs a strong { color: var(--ink); font-size: .85rem; }
.server-tabs a small { font-size: .72rem; }
.server-tabs a.active { border-color: var(--accent); color: #fff; background: var(--accent); }
.server-tabs a.active strong, .server-tabs a.active small { color: #fff; }
.server-context { display: flex; justify-content: space-between; gap: 32px; margin-bottom: 25px; padding: 21px 24px; border-radius: 17px; }
.server-context h2 { margin-bottom: 7px; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; }
.server-context p { max-width: 660px; margin-bottom: 0; color: var(--ink-soft); line-height: 1.55; }
.server-context .compact-details { min-width: 230px; margin: 0; }
.install-order-panel { margin-bottom: 25px; padding: 25px; border: 1px solid rgba(66,102,63,.23); border-radius: 18px; background: linear-gradient(135deg, rgba(229,241,222,.95), rgba(255,255,255,.9)); box-shadow: 0 10px 30px rgba(30,61,31,.07); }
.install-order-heading { max-width: 790px; }
.install-order-heading h2 { margin-bottom: 9px; font-family: Georgia, "Times New Roman", serif; font-size: 1.85rem; }
.install-order-heading > p:not(.eyebrow) { margin-bottom: 0; color: var(--ink-soft); line-height: 1.55; }
.install-order-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 22px 0 18px; list-style: none; }
.install-order-list li { display: flex; align-items: flex-start; gap: 11px; min-height: 112px; padding: 15px; border: 1px solid rgba(38,69,45,.13); border-radius: 13px; background: rgba(255,255,255,.76); }
.install-step-number { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); box-shadow: 0 4px 10px rgba(38,68,42,.18); font-size: .78rem; font-weight: 850; }
.install-order-list strong { display: block; margin: 2px 0 5px; font-size: .9rem; }
.install-order-list p { margin-bottom: 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.45; }
.install-order-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; border-top: 1px solid rgba(38,69,45,.13); }
.install-tip { max-width: 790px; color: var(--ink-soft); font-size: .8rem; line-height: 1.45; }
.download-section { margin-top: 27px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 11px; }
.section-title h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.section-title span { color: var(--ink-soft); font-size: .82rem; }
.download-list { display: grid; gap: 10px; }
.download-item { display: flex; justify-content: space-between; align-items: center; gap: 26px; padding: 18px 20px; border-radius: 15px; }
.download-item p { margin-bottom: 10px; color: var(--ink-soft); line-height: 1.45; font-size: .87rem; }
.download-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.download-title-row h3 { margin: 0; }
.download-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-soft); font-size: .77rem; }
.badge { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: .66rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.badge-required { background: #f2e4c9; color: #755014; }
.download-missing { opacity: .86; }
.empty-state { padding: 22px; border-radius: 14px; color: var(--ink-soft); font-size: .9rem; }
.timeline { max-width: 925px; display: grid; gap: 18px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 19px 1fr; gap: 15px; }
.timeline-item:not(:last-child):before { content: ''; position: absolute; left: 8px; top: 20px; bottom: -25px; width: 2px; background: rgba(66,102,63,.22); }
.timeline-marker { width: 17px; height: 17px; margin-top: 3px; border: 4px solid var(--accent-light); border-radius: 50%; background: var(--accent); z-index: 1; }
.timeline-content { padding: 20px; border-radius: 15px; border: 1px solid var(--line); background: var(--panel); }
.timeline-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.timeline-head h2 { margin-bottom: 8px; }
.timeline-head time { color: var(--ink-soft); font-size: .78rem; white-space: nowrap; }
.timeline-content p { margin-bottom: 0; color: var(--ink-soft); line-height: 1.6; font-size: .9rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-step { position: relative; min-height: 210px; padding: 24px; border-radius: 17px; overflow: hidden; }
.guide-step > span { display: grid; width: 32px; height: 32px; place-items: center; margin-bottom: 20px; border-radius: 50%; color: #fff; background: var(--accent); font-weight: 850; font-size: .81rem; }
.guide-step h2 { margin-bottom: 8px; }
.guide-step p { color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }
code { padding: 2px 5px; border-radius: 5px; background: #e7e4d9; color: #4d4532; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8em; word-break: break-word; }
.admin-heading { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.admin-heading h1 { margin-bottom: 8px; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.admin-heading p:not(.eyebrow) { color: var(--ink-soft); }
.tabs { display: flex; gap: 5px; margin-bottom: 22px; padding-bottom: 9px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 11px; border-radius: 8px; color: var(--ink-soft); font-size: .85rem; white-space: nowrap; }
.tabs a.active { color: #fff; background: var(--accent); }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.admin-stats-four { grid-template-columns: repeat(4, 1fr); }
.admin-stats > div { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.admin-stats span { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 2.3rem; color: var(--accent-dark); }
.admin-stats small { color: var(--ink-soft); }
.plain-list { padding-left: 20px; margin-bottom: 0; color: var(--ink-soft); line-height: 1.75; }
.admin-grid, .server-admin-grid { display: grid; grid-template-columns: minmax(310px, .78fr) minmax(0, 1.22fr); gap: 18px; align-items: start; }
.server-admin-grid { grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); }
.admin-grid h2, .settings-panel h2 { margin-bottom: 13px; }
.hint { margin-top: -6px; font-size: .82rem !important; }
.top-gap { margin-top: 18px !important; }
.admin-list { display: grid; gap: 9px; }
.admin-list article { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.admin-list article:last-child { padding-bottom: 0; border-bottom: 0; }
.admin-list strong, .admin-list span, .admin-list small { display: block; }
.admin-list span { margin-top: 4px; color: var(--ink-soft); font-size: .8rem; overflow-wrap: anywhere; }
.admin-list small { margin-top: 4px; font-size: .74rem; }
.state-ok { color: #357234; }
.state-missing { color: #a34f3b; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.settings-panel { max-width: 700px; }
.label-optional { color: var(--ink-soft); font-weight: 500; }
.server-new-panel { margin-top: 18px; }
.server-new-panel summary { cursor: pointer; color: var(--accent-dark); }
.spaced-form { margin-top: 20px; max-width: 700px; }
@media (max-width: 980px) { .topbar { flex-wrap: wrap; gap: 14px; } .nav { order: 3; width: 100%; overflow-x: auto; } .account-links { margin-left: auto; } .hero { grid-template-columns: 1fr; padding: 36px; } .server-card { max-width: 480px; } .feature-grid, .guide-grid, .install-order-list { grid-template-columns: repeat(2, 1fr); } .admin-grid, .server-admin-grid { grid-template-columns: 1fr; } .admin-stats-four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px) { .topbar, .main-content, .footer { width: min(100% - 22px, 1220px); } .topbar { margin-top: 11px; border-radius: 14px; } .brand { min-width: 0; } .account-links { margin-left: 0; } .hero { padding: 27px; border-radius: 21px; } h1 { font-size: 2.65rem; } .server-grid, .feature-grid, .guide-grid, .install-order-list, .admin-stats, .admin-stats-four { grid-template-columns: 1fr; } .split-panel, .download-item, .admin-list article, .server-context, .install-order-footer { align-items: flex-start; flex-direction: column; } .download-item .button { width: 100%; } .footer { align-items: flex-start; flex-direction: column; } .timeline-head { align-items: flex-start; flex-direction: column; gap: 4px; } .auth-card { padding: 25px; } }
.flash { transition: opacity .45s ease, transform .45s ease; }
.flash.flash-fade { opacity: 0; transform: translateY(-4px); pointer-events: none; }
