:root {
    color-scheme: dark;
    --background: #101411;
    --surface: #192019;
    --surface-strong: #232c23;
    --text: #f2f4ed;
    --muted: #adb8a9;
    --accent: #f18f3b;
    --green: #7fcf78;
    --yellow: #e5c66a;
    --red: #e27b72;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.5; }
a { color: var(--accent); }
code { color: #d9e8d4; }
.shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 5rem; }
.hero { padding: 3rem 0 2rem; }
.hero h1 { margin: 0; font-size: clamp(2.3rem, 7vw, 5rem); line-height: .95; letter-spacing: -.05em; }
.hero p { color: var(--muted); }
.eyebrow { margin: 0 0 .55rem; color: var(--green) !important; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.server-grid, .workshop-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.server-card, .workshop-card { border: 1px solid #303b30; border-radius: 12px; background: var(--surface); overflow: hidden; }
.server-card { display: flex; min-height: 230px; padding: 1.3rem; flex-direction: column; justify-content: space-between; }
.server-card h2, .workshop-card h3 { margin: .2rem 0; }
.server-card h2 a, .workshop-card h3 a { color: var(--text); text-decoration: none; }
.quick-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1rem 0 0; }
.quick-stats div { padding: .65rem; border-radius: 8px; background: var(--surface-strong); }
dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
section { margin-bottom: 3rem; }
.back { margin-top: 1rem; }
.actions { margin: -1rem 0 3rem; }
.button { display: inline-block; padding: .75rem 1rem; border-radius: 7px; background: var(--accent); color: #17110b; font-weight: 800; text-decoration: none; }
.table-wrap { overflow-x: auto; border: 1px solid #303b30; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: .7rem .85rem; border-bottom: 1px solid #303b30; text-align: left; }
th { color: var(--muted); }
tr:last-child > * { border-bottom: 0; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .5rem; }
.rules div { display: flex; gap: .6rem; justify-content: space-between; padding: .6rem .75rem; border-radius: 6px; background: var(--surface); overflow-wrap: anywhere; }
.rules span { color: var(--muted); text-align: right; }
.warning { padding: .75rem; border-left: 3px solid var(--yellow); background: #29271b; color: #f2e7bd; }
.workshop-card { display: grid; grid-template-columns: 100px 1fr; min-height: 130px; }
.workshop-card > div { padding: 1rem; }
.workshop-card img { width: 100%; height: 100%; min-height: 130px; object-fit: cover; }
.workshop-card p { margin: .3rem 0; color: var(--muted); font-size: .88rem; }
.item-id { font-family: ui-monospace, monospace; }
[class^=state-] { font-size: .7rem !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.state-installed { color: var(--green) !important; }
.state-missing { color: var(--red) !important; }
.state-unmanaged, .state-unknown { color: var(--yellow) !important; }
.motd-page .shell { max-width: 760px; padding-bottom: 1rem; }
.motd { padding-top: 1rem; }
.motd h1 { margin: 0 0 1rem; font-size: 2rem; }
.motd-stats { display: table; width: 100%; margin: 1rem 0; border-spacing: .5rem; }
.motd-stats div { display: table-cell; padding: .7rem; border-radius: 7px; background: var(--surface); text-align: center; }
.motd-stats strong, .motd-stats span { display: block; }
.motd-stats span { color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.motd-players { color: var(--muted); }
@media (max-width: 580px) {
    .shell { width: min(100% - 1rem, 1120px); padding-top: .5rem; }
    .quick-stats { grid-template-columns: 1fr; }
    .workshop-card { grid-template-columns: 1fr; }
    .workshop-card img { height: 160px; }
}

