:root {
    /* Account-menu tokens: the global nav's signed-in UI is shared by every
       page, so its tokens must live here rather than in todo.css. */
    --faint:#9aa094;
    --rule-soft:#f0f0ec;
    --sunken:#fafaf8;
    --warn:#b4460f;
    --warn-soft:#fdf4ef;
    --accent-fill:#2f6b00;
    --accent-fill-hover:#234f00;
    --on-accent:#ffffff;
    --r-lg:16px; --r-md:11px; --r-sm:8px; --r-pill:999px;
    --shadow:0 1px 2px rgba(20,23,15,.04), 0 8px 24px rgba(20,23,15,.05);
    --shadow-lift:0 2px 4px rgba(20,23,15,.05), 0 14px 34px rgba(20,23,15,.09);

    --bg: #0a0a0a;
    --bg-alt: #0f0f0f;
    --surface: #141414;
    --surface-raised: #181818;
    --text: #f5f5f5;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #7cfc00;
    --accent-hover: #99ff33;
    --accent-soft: rgba(124, 252, 0, 0.08);
    --accent-strong: rgba(124, 252, 0, 0.14);
    --accent-border: rgba(124, 252, 0, 0.28);
    --accent-glow: rgba(124, 252, 0, 0.16);
    --max-width: 1120px;
    --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container { width: min(100%, var(--max-width)); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 9px 13px; color: var(--bg); background: var(--accent); text-decoration: none; transform: translateY(-160%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; transition: background-color .2s ease, border-color .2s ease, backdrop-filter .2s ease; }
.site-header.is-scrolled { background: rgba(10, 10, 10, .82); border-color: var(--border); backdrop-filter: blur(15px); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: 0; text-decoration: none; }
.nav__brand img { width: 28px; height: 28px; object-fit: contain; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; align-items: center; gap: 22px; padding: 0; margin: 0; list-style: none; }
.nav__links a { position: relative; color: var(--text-secondary); font-size: .88rem; text-decoration: none; transition: color .18s ease; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { content: ""; position: absolute; bottom: -8px; left: 0; width: 100%; height: 1px; background: var(--accent); }
.nav__action { color: var(--text); padding: 7px 11px; border: 1px solid var(--accent-border); background: var(--accent-soft); font-size: .84rem; text-decoration: none; transition: background-color .18s ease, border-color .18s ease; }
.nav__action:hover { border-color: var(--accent); background: var(--accent-strong); }
.nav__action span { color: var(--accent); margin-left: 4px; }
.nav__toggle { display: none; width: 38px; height: 38px; padding: 0; border: 1px solid var(--border); color: var(--text); background: var(--surface); cursor: pointer; }
.nav__toggle-lines, .nav__toggle-lines::before, .nav__toggle-lines::after { display: block; width: 16px; height: 1px; margin: auto; background: currentColor; content: ""; transition: transform .18s ease; }
.nav__toggle-lines::before { transform: translateY(-5px); }
.nav__toggle-lines::after { transform: translateY(4px); }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines::after { transform: translateY(-1px) rotate(-45deg); }

.hero { position: relative; min-height: min(720px, calc(100vh - 72px)); display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero::before { content: ""; position: absolute; top: -260px; right: max(-10vw, -160px); width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, var(--accent-glow) 0, rgba(124, 252, 0, .04) 34%, transparent 68%); filter: blur(18px); pointer-events: none; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .36), transparent 74%); pointer-events: none; }
.hero__content { position: relative; padding-top: 28px; padding-bottom: 62px; }
.eyebrow, .section-label { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--text-secondary); font-size: .76rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 12px var(--accent-glow); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 740px; margin-bottom: 20px; font-size: clamp(3.25rem, 8vw, 6.8rem); font-weight: 720; line-height: .98; letter-spacing: 0; }
h2 { margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 680; line-height: 1.08; letter-spacing: 0; }
h3 { letter-spacing: 0; }
.hero__lead { max-width: 560px; margin-bottom: 34px; color: var(--text-secondary); font-size: clamp(1.05rem, 2vw, 1.24rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 11px 16px; border: 1px solid var(--border); color: var(--text); background: var(--surface); font-size: .92rem; font-weight: 650; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.button:hover { transform: translateY(-2px); border-color: var(--accent-border); box-shadow: 0 10px 28px rgba(0, 0, 0, .22), 0 0 18px var(--accent-soft); }
.button--primary { border-color: var(--accent-border); background: linear-gradient(100deg, var(--surface-raised), var(--accent-soft)); }
.button--primary span { color: var(--accent); font-size: 1.12rem; }
.button--primary:hover { background: var(--accent-strong); }
.button--secondary { background: transparent; color: var(--text-secondary); }

.section { padding: clamp(74px, 10vw, 132px) 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.intro__inner { max-width: 790px; }
.intro h2 { max-width: 630px; }
.intro p:last-child { max-width: 720px; margin: 0; color: var(--text-secondary); font-size: 1.15rem; }
mark { padding: 0 3px; color: var(--text); background: linear-gradient(transparent 55%, var(--accent-soft) 55%); border-bottom: 1px solid var(--accent-border); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-heading .section-label { margin-bottom: 12px; }
.section-heading h2 { margin-bottom: 0; }
.section-note { margin: 0 0 4px; color: var(--text-muted); font-size: .92rem; }
.status-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 10px; border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--text-secondary); font-size: .78rem; white-space: nowrap; }
.status-badge .status-dot { width: 6px; height: 6px; animation: pulse 2s ease-out infinite; }

.project-card { display: grid; grid-template-columns: minmax(0, .92fr) minmax(300px, 1.08fr); gap: 42px; padding: clamp(26px, 5vw, 54px); border: 1px solid var(--border); background: var(--surface); }
.project-card__copy { align-self: center; }
.project-card__kicker { margin-bottom: 17px; color: var(--text); font-size: 1.24rem; font-weight: 650; }
.project-card__copy > p:not(.project-card__kicker) { max-width: 440px; margin-bottom: 28px; color: var(--text-secondary); }
.project-card__actions { display: flex; gap: 22px; flex-wrap: wrap; }
.text-link { color: var(--text); font-size: .9rem; font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--accent-border); transition: color .18s ease, border-color .18s ease; }
.text-link span { color: var(--accent); margin-left: 4px; }
.text-link:hover { color: var(--accent-hover); border-color: var(--accent); }
.text-link--muted { color: var(--text-secondary); border-bottom-color: var(--border); }
.project-preview { min-height: 300px; padding: 13px; overflow: hidden; border: 1px solid var(--border); background: #101010; box-shadow: inset 0 0 60px rgba(124, 252, 0, .025); }
.preview__topbar { display: flex; gap: 5px; height: 18px; padding-left: 3px; border-bottom: 1px solid var(--border); }
.preview__topbar span { width: 5px; height: 5px; background: #484848; border-radius: 50%; }
.preview__topbar span:first-child { background: var(--accent); }
.preview__body { display: grid; grid-template-columns: 25% 1fr; height: calc(100% - 18px); padding-top: 14px; }
.preview__sidebar { display: flex; flex-direction: column; gap: 14px; padding: 7px 15px 0 2px; border-right: 1px solid var(--border); }
.preview__sidebar i, .preview__heading span, .preview__row span { display: block; height: 6px; border-radius: 4px; background: #303030; }
.preview__sidebar i:nth-child(1) { width: 74%; background: #4a4a4a; }.preview__sidebar i:nth-child(2) { width: 100%; }.preview__sidebar i:nth-child(3) { width: 64%; }.preview__sidebar i:nth-child(4) { width: 82%; }
.preview__main { padding: 8px 0 0 20px; }.preview__heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 23px; }.preview__heading span { width: 38%; height: 10px; background: #5b5b5b; }.preview__heading i { width: 15px; height: 15px; background: var(--accent); border-radius: 3px; }
.preview__row { display: grid; grid-template-columns: 13px 1fr 16px; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-top: 1px solid rgba(255, 255, 255, .045); }.preview__row i { width: 9px; height: 9px; border: 1px solid #585858; border-radius: 2px; }.preview__row span { width: 75%; }.preview__row b { width: 15px; height: 4px; justify-self: end; background: #373737; border-radius: 3px; }.preview__row--active { background: var(--accent-soft); }.preview__row--active i { background: var(--accent); border-color: var(--accent); }.preview__row--active span { background: #5b5b5b; }
.milestones { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 2px; }.milestone { position: relative; display: grid; gap: 8px; color: var(--text-muted); font-size: .75rem; }.milestone::before { content: ""; position: absolute; top: 5px; left: 11px; width: calc(100% - 11px); height: 1px; background: var(--border); }.milestone:last-child::before { display: none; }.milestone span { position: relative; width: 11px; height: 11px; border: 2px solid #424242; border-radius: 50%; background: var(--surface); }.milestone.is-done, .milestone.is-current { color: var(--text-secondary); }.milestone.is-done::before, .milestone.is-current::before { background: var(--accent-border); }.milestone.is-done span { border-color: var(--accent); background: var(--accent); }.milestone.is-current span { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.interest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.interest-card { min-height: 268px; padding: 26px; border: 1px solid var(--border); background: var(--surface); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.interest-card:hover { transform: translateY(-4px); border-color: var(--accent-border); box-shadow: 0 18px 34px rgba(0, 0, 0, .18); }.interest-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 45px; border: 1px solid var(--border); background: var(--surface-raised); color: var(--accent); font-size: .77rem; font-weight: 700; }.interest-icon--server { gap: 3px; padding: 7px; align-content: center; }.interest-icon--server span { display: block; height: 3px; border: 1px solid var(--accent-border); background: #262626; }.interest-icon--server span:first-child { background: var(--accent); }.interest-card h3 { margin-bottom: 8px; font-size: 1.12rem; }.interest-card p { margin: 0; color: var(--text-secondary); font-size: .93rem; }

.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }.game-card { position: relative; min-height: 230px; display: flex; align-items: end; padding: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); isolation: isolate; transition: transform .2s ease, border-color .2s ease; }.game-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .75; transition: transform .35s ease; }.game-card:hover { transform: translateY(-4px); border-color: var(--accent-border); }.game-card:hover::before { transform: scale(1.07); }.game-card--palworld::before { background: radial-gradient(circle at 72% 20%, rgba(124, 252, 0, .33), transparent 25%), linear-gradient(140deg, #1b3828, #101b18 60%, #111); }.game-card--factorio::before { background: radial-gradient(circle at 75% 20%, rgba(255, 177, 56, .2), transparent 24%), linear-gradient(140deg, #282018, #161412 62%, #111); }.game-card--stardew::before { background: radial-gradient(circle at 72% 22%, rgba(146, 205, 255, .25), transparent 28%), linear-gradient(140deg, #1b3026, #13241b 60%, #111); }.game-card--minecraft::before { background: radial-gradient(circle at 74% 20%, rgba(99, 189, 91, .25), transparent 25%), linear-gradient(140deg, #233121, #152014 60%, #111); }.game-card__eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--text-secondary); font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }.game-card__eyebrow .status-dot { width: 6px; height: 6px; }.game-card h3 { margin-bottom: 2px; font-size: 1.25rem; }.game-card p:last-child { margin: 0; color: var(--text-secondary); font-size: .84rem; }

.updates-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }.updates-layout h2 { margin-bottom: 0; }.timeline { position: relative; display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }.timeline::before { content: ""; position: absolute; top: 7px; bottom: 7px; left: 4px; width: 1px; background: var(--border); }.timeline li { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; padding: 0 0 28px; }.timeline li:last-child { padding-bottom: 0; }.timeline li > span { position: relative; width: 9px; height: 9px; margin-top: 4px; border: 2px solid #565656; border-radius: 50%; background: var(--bg); }.timeline li.is-new > span { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }.timeline h3 { margin-bottom: 3px; font-size: .97rem; }.timeline p { margin: 0; color: var(--text-secondary); font-size: .88rem; }.timeline time { color: var(--text-muted); font-size: .78rem; }

.right-now h2 { margin-bottom: 34px; }.now-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }.now-grid p { min-height: 84px; padding: 15px; margin: 0; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); font-size: .88rem; }.now-grid span { display: block; margin-bottom: 6px; color: var(--accent); font-size: .68rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }

.page-hero { position: relative; padding: clamp(92px, 13vw, 154px) 0 clamp(58px, 8vw, 86px); overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero::before, .palworld-hero::before, .admin-dashboard::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .42), transparent 78%); pointer-events: none; }
.page-hero__inner, .palworld-hero__inner, .admin-dashboard__inner { position: relative; }
.page-hero__lead { max-width: 620px; margin-bottom: 0; color: var(--text-secondary); font-size: clamp(1.05rem, 2vw, 1.24rem); }
.games-hub { padding-top: clamp(62px, 8vw, 96px); }
.server-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.server-card { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(0, 1fr) auto; gap: 22px; align-items: center; min-height: 210px; padding: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.server-card:hover { transform: translateY(-4px); border-color: var(--accent-border); box-shadow: 0 20px 40px rgba(0, 0, 0, .22); }
.server-card__art { position: relative; min-height: 154px; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(140deg, #1b3828, #101b18 60%, #111); }
.server-card__art::before { content: ""; position: absolute; inset: 15% 12% auto auto; width: 70px; height: 70px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 45px var(--accent-glow); opacity: .62; }
.server-card__art span { position: absolute; display: block; background: rgba(255, 255, 255, .12); }
.server-card__art span:nth-child(1) { left: 18px; bottom: 34px; width: 68px; height: 12px; }
.server-card__art span:nth-child(2) { left: 18px; bottom: 17px; width: 104px; height: 8px; }
.server-card__art span:nth-child(3) { right: 18px; bottom: 18px; width: 38px; height: 38px; border: 1px solid var(--accent-border); background: var(--accent-soft); }
.server-card__copy p:last-child { max-width: 420px; margin: 0; color: var(--text-secondary); }

.palworld-hero { position: relative; padding: clamp(84px, 12vw, 142px) 0 clamp(56px, 8vw, 90px); overflow: hidden; border-bottom: 1px solid var(--border); }
.palworld-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 34px; align-items: center; }
.status-console { padding: 10px; border: 1px solid var(--border); background: rgba(20, 20, 20, .86); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.console-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; min-height: 54px; padding: 12px; border-bottom: 1px solid var(--border); }
.console-row:last-child { border-bottom: 0; }
.console-row span { color: var(--text-secondary); font-size: .84rem; }
.console-row strong { color: var(--text); font-family: "SFMono-Regular", Consolas, monospace; font-size: .84rem; text-align: right; overflow-wrap: anywhere; }
.console-row--online strong { color: var(--accent); }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.status-tile { min-height: 132px; padding: 17px; border: 1px solid var(--border); background: var(--surface); }
.status-tile span, .setting-line span { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: .73rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.status-tile strong { display: block; color: var(--text); font-size: 1.18rem; line-height: 1.25; }
.settings-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(320px, 1.18fr); gap: 42px; align-items: start; }
.settings-list { display: grid; overflow: hidden; border: 1px solid var(--border); background: var(--border); }
.setting-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; min-height: 58px; padding: 14px 16px; background: var(--surface); }
.setting-line span { margin-bottom: 0; letter-spacing: 0; text-transform: none; font-size: .92rem; font-weight: 500; }
.setting-line strong { color: var(--text); font-size: 1rem; }

.admin-dashboard { position: relative; padding: clamp(74px, 10vw, 128px) 0 clamp(44px, 7vw, 76px); overflow: hidden; border-bottom: 1px solid var(--border); }
.admin-dashboard__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 34px; align-items: center; }
.admin-summary { padding: 10px; border: 1px solid var(--border); background: rgba(20, 20, 20, .86); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.admin-workbench { padding-top: clamp(54px, 8vw, 84px); }
.admin-presets { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--border); background: var(--surface); }
.admin-presets span { color: var(--text-secondary); font-size: .82rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-section { padding: 0 18px 10px; border: 1px solid var(--border); background: var(--surface); }
.admin-section summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; margin: 0 -18px; padding: 0 18px; color: var(--text); font-size: 1rem; font-weight: 650; cursor: pointer; list-style: none; }
.admin-section summary::-webkit-details-marker { display: none; }
.admin-section summary::after { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--border); color: var(--accent); font-family: "SFMono-Regular", Consolas, monospace; font-size: .95rem; line-height: 1; }
.admin-section[open] summary { border-bottom: 1px solid var(--border); }
.admin-section[open] summary::after { content: "-"; }
.admin-section summary span { margin-left: auto; color: var(--text-muted); font-size: .74rem; font-weight: 600; white-space: nowrap; }
.admin-field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(118px, 150px); gap: 14px; align-items: center; min-height: 52px; padding: 10px 0; border-top: 1px solid var(--border); }
.admin-section summary + .admin-field { border-top: 0; }
.admin-field span { color: var(--text-secondary); font-size: .9rem; }
.admin-field input, .admin-field select { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 0; background: var(--bg-alt); color: var(--text); font: inherit; }
.admin-field.is-changed input, .admin-field.is-changed select { border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent-soft); }
.admin-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 16px; border: 1px solid var(--border); background: var(--surface); }
.admin-actions p { max-width: 650px; margin: 0; color: var(--text-secondary); font-size: .9rem; }
.admin-actions p.is-success { color: var(--accent); }
.admin-actions p.is-error { color: #ff8a8a; }
.admin-actions .button[disabled] { cursor: not-allowed; opacity: .48; transform: none; }
.admin-empty { grid-column: 1 / -1; margin: 0; padding: 22px; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); }

.site-footer { padding: 31px 0; border-top: 1px solid var(--border); }.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }.site-footer p { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--text-muted); font-size: .8rem; }.footer__logo { width: 20px; height: 20px; object-fit: contain; }.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }.site-footer a { color: var(--text-secondary); font-size: .78rem; text-decoration: none; }.site-footer a:hover { color: var(--accent-hover); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 12px var(--accent-glow); } 50% { box-shadow: 0 0 0 7px transparent, 0 0 16px var(--accent-glow); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.reveal { opacity: 1; transform: none; transition: none; }.status-badge .status-dot { animation: none; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

@media (max-width: 840px) { .nav__menu { gap: 18px; }.nav__links { gap: 15px; }.project-card { grid-template-columns: 1fr; }.project-preview { min-height: 280px; }.interest-grid { grid-template-columns: repeat(3, 1fr); }.game-grid { grid-template-columns: repeat(2, 1fr); }.now-grid { grid-template-columns: repeat(2, 1fr); }.updates-layout { gap: 40px; }.palworld-hero__inner, .settings-layout, .admin-dashboard__inner { grid-template-columns: 1fr; }.status-grid, .admin-form { grid-template-columns: repeat(2, 1fr); }.server-card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .container { padding: 0 20px; }.nav { min-height: 64px; }.nav__brand img { width: 19px; height: 19px; }.nav__toggle { display: grid; place-items: center; }.nav__menu { position: absolute; top: 64px; right: 12px; left: 12px; display: none; align-items: stretch; gap: 18px; padding: 16px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 18px 36px rgba(0, 0, 0, .3); }.nav__menu.is-open { display: grid; }.nav__links { display: grid; gap: 0; }.nav__links a { display: block; padding: 10px 3px; font-size: .95rem; }.nav__links a.is-active::after { display: none; }.nav__action { text-align: center; }.hero { min-height: 610px; }.hero__content { padding-top: 12px; padding-bottom: 45px; }.section-heading { align-items: start; flex-direction: column; margin-bottom: 27px; }.project-card { gap: 30px; padding: 22px; }.project-preview { min-height: 230px; }.interest-grid { grid-template-columns: 1fr; }.interest-card { min-height: auto; }.interest-icon { margin-bottom: 27px; }.updates-layout { grid-template-columns: 1fr; gap: 32px; }.timeline li { grid-template-columns: 18px 1fr; gap: 10px; }.timeline time { grid-column: 2; grid-row: 2; margin-top: -2px; }.timeline li { padding-bottom: 26px; }.timeline p { margin-bottom: 3px; }.footer__inner { align-items: start; flex-direction: column; }.site-footer nav { gap: 14px; }.status-grid, .admin-form { grid-template-columns: 1fr; }.console-row, .setting-line, .admin-field { grid-template-columns: 1fr; }.console-row strong { text-align: left; }.admin-presets, .admin-actions { align-items: stretch; flex-direction: column; }.admin-presets .button, .admin-actions .button { width: 100%; } }
@media (max-width: 430px) { h1 { font-size: 3.1rem; }.hero__actions { display: grid; }.button { width: 100%; }.game-grid { grid-template-columns: 1fr; }.game-card { min-height: 180px; }.now-grid { grid-template-columns: 1fr; }.now-grid p { min-height: 0; }.milestones small { font-size: .65rem; }.project-card__actions { gap: 16px; }.server-card__art { min-height: 124px; } }

/* ==========================================================================
   2026 public-site redesign — Home / Projects / Hobbies
   --------------------------------------------------------------------------
   Everything below powers the redesigned public pages and the private
   Palworld admin page. Those pages carry <html data-theme="light|dark">.
   Tokens are declared on html[data-theme=…] (never bare :root) and component
   styles are namespaced .rt-* so older Palworld/public styles remain isolated.
   ========================================================================== */

/* Self-hosted Archivo (variable, latin subset) — replaces the Google Fonts
   round-trip. One woff2 covers weights 400–700 via the weight axis. */
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/archivo-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html[data-theme="light"] {
    --bg:#ffffff; --text:#14170f; --muted:#6f756a; --rule:#e7e7e2; --rule-strong:#14170f;
    --accent:#3f8f00; --accent-ink:#2f6b00; --dot:#63c800; --hl:rgba(124,252,0,.38);
    --soft:#f4faee; --card:#ffffff; --field:#ffffff; --progress:#c2410c;
    --grid-dot:rgba(20,23,15,.15);
}
html[data-theme="dark"] {
    --faint:#767c70;
    --rule-soft:rgba(255,255,255,.07);
    --sunken:#0f110e;
    --warn:#ff9264;
    --warn-soft:rgba(255,146,100,.09);
    --accent-fill:#7cfc00;
    --accent-fill-hover:#9dff4d;
    --on-accent:#0b1400;
    --shadow:0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.32);
    --shadow-lift:0 2px 4px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.42);

    --bg:#0c0d0b; --text:#f2f4ef; --muted:#989e91; --rule:rgba(255,255,255,.13); --rule-strong:#f2f4ef;
    --accent:#7cfc00; --accent-ink:#9dff4d; --dot:#7cfc00; --hl:rgba(124,252,0,.26);
    --soft:rgba(124,252,0,.06); --card:#111310; --field:#141612; --progress:#fb923c;
    --grid-dot:rgba(255,255,255,.16);
}

@keyframes blink { 0%,45% { opacity:1 } 50%,95% { opacity:0 } 100% { opacity:1 } }
@keyframes breathe { 0%,100% { box-shadow:0 0 0 0 var(--hl) } 50% { box-shadow:0 0 0 6px transparent } }
@keyframes drift { 0%,100% { transform:translate(0,0) rotate(0deg) } 33% { transform:translate(14px,-18px) rotate(8deg) } 66% { transform:translate(-10px,12px) rotate(-6deg) } }
@keyframes drift2 { 0%,100% { transform:translate(0,0) rotate(0deg) } 50% { transform:translate(-18px,16px) rotate(-12deg) } }

/* Root wrapper + generic anchors/selection (scoped to redesigned pages) */
.rt { position:relative; min-height:100vh; background:var(--bg); color:var(--text); font-family:Archivo, ui-sans-serif, system-ui, sans-serif; font-size:17px; line-height:1.6; -webkit-font-smoothing:antialiased; transition:background-color .35s ease, color .35s ease; overflow:hidden; }
.rt--admin { overflow:visible; }
.rt a { text-decoration:none; }
.rt ::selection { background:var(--hl); }
.rt :focus-visible { outline:2px solid var(--accent); outline-offset:3px; }

/* Backdrop layers */
.rt-grid { position:fixed; inset:0; pointer-events:none; background-image:radial-gradient(var(--grid-dot) 1.4px, transparent 1.4px); background-size:26px 26px; -webkit-mask-image:radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%); mask-image:radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%); }
.rt-grid--admin { -webkit-mask-image:radial-gradient(ellipse 90% 45% at 50% 0%, #000 10%, transparent 70%); mask-image:radial-gradient(ellipse 90% 45% at 50% 0%, #000 10%, transparent 70%); }
.rt-shape { position:fixed; pointer-events:none; }
.rt-shape--square { top:22%; left:6%; width:14px; height:14px; border:2px solid var(--dot); opacity:.45; animation:drift 17s ease-in-out infinite; }
.rt-shape--admin { top:20%; left:4%; opacity:.35; animation:drift 19s ease-in-out infinite; }
.rt-shape--square-alt { bottom:25%; right:14%; width:12px; height:12px; border:2px solid var(--dot); opacity:.34; animation:drift2 23s ease-in-out infinite; }
.rt-shape--dot { top:64%; right:7%; width:10px; height:10px; border-radius:50%; background:var(--dot); opacity:.4; animation:drift2 21s ease-in-out infinite; }
.rt-shape--dash { top:44%; right:12%; width:26px; height:2px; background:var(--dot); opacity:.35; animation:drift 24s ease-in-out infinite; }
.rt-shape--admin-dash { top:46%; right:10%; }
.rt-shape--dash-alt { top:72%; left:9%; width:24px; height:2px; background:var(--dot); opacity:.3; animation:drift2 26s ease-in-out infinite; }
.rt-shape--sq2 { bottom:16%; left:11%; width:8px; height:8px; background:var(--dot); opacity:.3; animation:drift2 19s ease-in-out infinite; }

/* Content column */
.rt-col { position:relative; width:min(100%,700px); margin:0 auto; padding:0 28px; }
.rt-col--admin { width:min(100%,940px); }
body[data-rt-page="home"] .rt-col,
body[data-rt-page="projects"] .rt-col,
body[data-rt-page="hobbies"] .rt-col { width:min(100%,1440px); }

/* Header */
.rt-header { position:relative; z-index:10; padding:34px 0 0; }
.rt-header--admin { z-index:30; }
.rt-bar { display:flex; align-items:center; gap:28px; padding-bottom:16px; border-bottom:2px solid var(--rule); }
.rt-brand { display:inline-flex; align-items:center; gap:10px; color:var(--text); font-weight:600; font-size:.95rem; letter-spacing:-.01em; }
.rt-brand:hover { color:var(--accent); }
.rt-brand img { width:24px; height:24px; object-fit:contain; }
.rt-nav { display:flex; align-items:center; gap:22px; margin-left:auto; }
.rt-navlink { position:relative; display:inline-flex; align-items:center; padding:4px 0; color:var(--text); font-size:.82rem; font-weight:600; letter-spacing:.09em; text-transform:uppercase; }
.rt-navlink:hover { color:var(--accent); }
.rt-navlink[aria-current="page"] { color:var(--accent); border-bottom:2px solid var(--accent); }
.rt-theme { display:inline-flex; align-items:center; gap:9px; height:34px; padding:0 12px; border:1px solid var(--rule); background:transparent; color:var(--muted); font:inherit; font-size:.78rem; font-weight:500; letter-spacing:.04em; text-transform:uppercase; cursor:pointer; transition:border-color .2s ease, color .2s ease; }
.rt-theme:hover { border-color:var(--accent); color:var(--accent); }
.rt-theme-dot { display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--dot); }

/* Mega-nav panels */
.rt-panel { position:absolute; top:100%; left:0; right:0; display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--rule); border-top:0; background:var(--bg); box-shadow:0 18px 40px rgba(20,23,15,.09); }
.rt-panel[hidden] { display:none; }
.rt-panel-cell { padding:22px 24px; }
.rt-panel-cell--divide { border-right:1px solid var(--rule); }
.rt-panel-kicker { margin:0 0 14px; color:var(--muted); font-size:.7rem; font-weight:600; letter-spacing:.13em; text-transform:uppercase; }
.rt-panel-link { display:block; color:var(--text); }
.rt-panel-link:hover { color:var(--accent); }
.rt-panel-title { display:block; font-size:1.02rem; font-weight:600; letter-spacing:-.01em; }
.rt-panel-desc { display:block; margin-top:3px; color:var(--muted); font-size:.85rem; }

/* Shared mobile navigation. The drawer is rendered by global-nav.js on every page. */
.rt-mobilebar, .rt-drawer { display:none; }
.rt-global-nav-shell { width:min(100%,1180px); margin:0 auto; padding:0 28px; }
body[data-rt-page="home"] .rt-global-nav-shell,
body[data-rt-page="projects"] .rt-global-nav-shell,
body[data-rt-page="hobbies"] .rt-global-nav-shell { width:min(100%,1440px); }
.rt-global-nav .rt-brand img { width:44px; height:44px; object-fit:contain; }

/* Main + intro block */
.rt-main { padding:84px 0 0; }
.rt-main--home { padding:104px 0 0; }
.rt-main--admin { padding:64px 0 0; }
.rt-eyebrow { display:flex; align-items:center; gap:9px; margin:0 0 22px; color:var(--muted); font-size:.76rem; font-weight:600; letter-spacing:.13em; text-transform:uppercase; }
.rt-main--home .rt-eyebrow { margin-bottom:26px; }
.rt-eyebrow-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--dot); animation:breathe 2.6s ease-out infinite; }
.rt-h1 { margin:0 0 22px; font-size:clamp(2.6rem,7vw,3.8rem); font-weight:600; line-height:1.04; letter-spacing:-.035em; }
.rt-h1--home { margin:0 0 26px; font-size:clamp(2.9rem,8vw,4.4rem); line-height:1.02; }
.rt-h1--admin { margin-bottom:20px; font-size:clamp(2.4rem,6vw,3.4rem); }
.rt-caret { display:inline-block; width:.09em; height:.82em; margin-left:.12em; vertical-align:-.04em; background:var(--dot); animation:blink 1.15s step-end infinite; }
.rt-lead { max-width:34em; margin:0; font-size:1.15rem; line-height:1.55; color:var(--text); }
.rt-lead--home { margin:0 0 18px; font-size:1.22rem; }
.rt-lead--gap { margin:0 0 8px; }
.rt-lead--admin { max-width:40em; margin-bottom:34px; font-size:1.1rem; }
.rt-aside { max-width:34em; margin:0; color:var(--muted); font-size:.95rem; }
.rt-hl { background:linear-gradient(transparent 58%, var(--hl) 58%); padding:0 2px; }
.rt-divider { height:2px; background:var(--rule-strong); opacity:.14; margin:56px 0 0; }
.rt-divider--home { margin:64px 0 0; }

/* Link rows */
.rt-rows { display:grid; }
.rt-group { border-bottom:1px solid var(--rule); }
.rt-row { display:grid; grid-template-columns:1fr auto; align-items:baseline; gap:20px; padding:26px 14px 10px 0; color:var(--text); transition:transform .22s ease, background-color .22s ease; }
.rt-row:hover { transform:translateX(10px); background:var(--soft); color:var(--text); }
.rt-row-title { display:block; font-size:1.3rem; font-weight:600; letter-spacing:-.02em; }
.rt-row-desc { display:block; margin-top:4px; color:var(--muted); font-size:.92rem; }
.rt-row-right { color:var(--accent); font-size:.82rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; white-space:nowrap; }
.rt-row-right--muted { color:var(--muted); }
.rt-row-right--success { display:inline-flex; align-items:center; gap:8px; color:var(--accent); }
.rt-row-right--progress { color:var(--progress); }
.rt-mini-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--dot); animation:breathe 2.6s ease-out infinite; }
.rt-title-link { display:inline-block; color:var(--text); }
.rt-title-link:hover { color:var(--accent); }
.rt-row--child { padding:12px 14px 22px 18px; margin-left:2px; border-left:2px solid var(--hl); transition:transform .22s ease, background-color .22s ease, border-color .22s ease; }
.rt-row--child:hover { transform:translateX(10px); background:var(--soft); border-color:var(--accent); }
.rt-row--static:hover { transform:none; background:transparent; border-color:var(--hl); }
.rt-row--child .rt-row-title { font-size:1rem; letter-spacing:-.01em; }
.rt-row--child .rt-row-desc { margin-top:3px; font-size:.88rem; }
.rt-row--child .rt-row-right { font-size:.75rem; }
.rt-main--home .rt-row--child .rt-row-title { font-size:1.3rem; letter-spacing:-.02em; }
.rt-main--home .rt-row--child .rt-row-desc { margin-top:4px; font-size:.92rem; }
.rt-row--server { padding:20px 14px 24px 0; border-top:1px solid var(--rule); }

/* Featured project sections */
.rt-project-showcase { display:grid; grid-template-columns:minmax(0, 1fr) minmax(200px, 260px); gap:48px; padding:38px 0; border-bottom:1px solid var(--rule); }
.rt-project-showcase__copy { align-self:center; }
.rt-project-showcase__head { display:flex; align-items:baseline; justify-content:space-between; gap:18px; }
.rt-project-showcase__title { margin:0; color:var(--text); font-size:1.55rem; font-weight:600; letter-spacing:-.02em; }
.rt-project-showcase__copy > p { max-width:620px; margin:14px 0 0; color:var(--muted); font-size:.95rem; line-height:1.65; }
.rt-project-showcase__facts { display:flex; flex-wrap:wrap; gap:0 16px; margin:20px 0 0; padding:0; color:var(--text); font-size:.8rem; font-weight:600; letter-spacing:.04em; list-style:none; text-transform:uppercase; }
.rt-project-showcase__facts li + li::before { margin-right:16px; color:var(--accent); content:"•"; }
.rt-project-showcase__actions { display:flex; flex-wrap:wrap; gap:16px; }
.rt-project-showcase__actions a { color:var(--accent); font-size:.78rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }
.rt-project-showcase__actions a:hover { color:var(--accent-ink); }
.rt-project-showcase__media { height:400px; margin:0; overflow:hidden; border:1px solid var(--rule); background:var(--soft); }
.rt-project-showcase__media img { display:block; width:100%; height:100%; object-fit:cover; object-position:top; }

/* Static (non-link) project rows */
.rt-static { display:grid; grid-template-columns:1fr auto; align-items:baseline; gap:20px; padding:26px 0; border-bottom:1px solid var(--rule); }

/* Full-width server blocks + shared Palworld status component */
.rt-block-head { display:grid; grid-template-columns:1fr auto; align-items:baseline; gap:20px; }
.rt-server-summary { padding:26px 0; border-bottom:1px solid var(--rule); color:var(--text); }
.rt-server-summary--featured { padding-top:20px; border-top:1px solid var(--rule); }
.rt-server-summary--child { padding:12px 14px 22px 18px; margin-left:2px; border-left:2px solid var(--hl); }
.rt-server-summary--after-link { border-top:1px solid var(--rule); }
.rt-server-status { display:grid; grid-template-columns:repeat(3,1fr); margin-top:18px; border:1px solid var(--rule); }
.rt-server-status-cell { padding:14px 16px; }
.rt-server-status-cell:not(:last-child) { border-right:1px solid var(--rule); }
.rt-server-status.is-online .rt-stat-dot { background:var(--dot); }
.rt-server-status.is-offline .rt-stat-dot { background:#c2410c; }
.rt-admin-status { margin:0 0 32px; }

/* Section heads (Hobbies) */
.rt-sechead { display:flex; align-items:baseline; justify-content:space-between; gap:20px; padding:26px 0 6px; }
.rt-sechead--tight { padding:0 0 6px; }
.rt-sectitle { margin:0; font-size:.78rem; font-weight:600; letter-spacing:.13em; text-transform:uppercase; color:var(--muted); }
.rt-secnote { margin:0; color:var(--muted); font-size:.82rem; }
.rt-sec { padding-top:44px; }

/* Status component text */
.rt-stat-kicker { margin:0 0 7px; color:var(--muted); font-size:.68rem; font-weight:600; letter-spacing:.13em; text-transform:uppercase; }
.rt-stat-value { display:flex; align-items:center; gap:8px; margin:0; font-size:.92rem; font-weight:600; }
.rt-stat-dot { display:inline-block; width:8px; height:8px; flex:0 0 auto; border-radius:50%; background:var(--muted); animation:breathe 2.6s ease-out infinite; }
.rt-stat-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 7px; }
.rt-stat-head .rt-stat-kicker { margin:0; }
.rt-stat-refresh { display:inline-flex; align-items:center; justify-content:center; min-width:64px; height:24px; padding:0 8px; border:1px solid var(--rule); background:transparent; color:var(--muted); font:inherit; font-size:.64rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; cursor:pointer; transition:border-color .2s ease, color .2s ease; }
.rt-stat-refresh:hover { border-color:var(--accent); color:var(--accent); }
.rt-stat-refresh[disabled] { cursor:wait; opacity:.58; }
.rt-stat-note { margin:7px 0 0; color:var(--muted); font-size:.7rem; }

/* Games list (Hobbies) */
.rt-shelf { display:grid; padding:0; margin:0; list-style:none; border-top:1px solid var(--rule); }
.rt-shelf-item { display:grid; grid-template-columns:1fr auto; align-items:baseline; gap:20px; padding:18px 0; border-bottom:1px solid var(--rule); }
.rt-shelf-name { font-size:1.05rem; font-weight:600; letter-spacing:-.01em; }
.rt-shelf-genre { margin-left:10px; color:var(--muted); font-size:.9rem; }
.rt-shelf-status { display:inline-flex; align-items:center; gap:8px; color:var(--accent); font-size:.75rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }
.rt-shelf-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--dot); }

/* Palworld admin */
.rt-admin-summary { display:grid; grid-template-columns:repeat(3,1fr); margin:0 0 36px; border:1px solid var(--rule); }
.rt-admin-summary-row { display:grid; gap:5px; padding:14px 16px; }
.rt-admin-summary-row:not(:last-child) { border-right:1px solid var(--rule); }
.rt-admin-summary-row span { color:var(--muted); font-size:.68rem; font-weight:600; letter-spacing:.13em; text-transform:uppercase; }
.rt-admin-summary-row strong { color:var(--text); font-size:.92rem; font-weight:600; overflow-wrap:anywhere; }
.rt-admin-summary-row:first-child strong { color:var(--accent); }
.rt-admin-control { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin:0 0 32px; padding:16px; border:1px solid var(--rule); background:var(--soft); }
.rt-admin-control-status { margin:6px 0 0; color:var(--muted); font-size:.86rem; }
.rt-admin-control-status.is-success { color:var(--accent-ink); }
.rt-admin-control-status.is-error { color:#b42318; }
.rt-admin-control-actions { display:flex; flex-wrap:wrap; gap:10px; }
.rt-admin-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:8px; padding-bottom:14px; border-bottom:2px solid var(--rule); }
.rt-admin-toolbar h2 { margin:0; color:var(--muted); font-size:.78rem; font-weight:600; letter-spacing:.13em; text-transform:uppercase; }
.rt-admin-tools { display:flex; flex-wrap:wrap; gap:10px; margin-left:auto; }
.rt-button { display:inline-flex; align-items:center; justify-content:center; height:34px; padding:0 12px; border:1px solid var(--rule); background:transparent; color:var(--muted); font:inherit; font-size:.78rem; font-weight:600; letter-spacing:.04em; text-transform:uppercase; cursor:pointer; transition:border-color .2s ease, color .2s ease, background-color .2s ease; }
.rt-button:hover { border-color:var(--accent); color:var(--accent); }
.rt-button--solid { height:40px; padding:0 16px; border-color:var(--accent); background:var(--accent); color:#fff; font-size:.82rem; }
.rt-button--solid:hover { border-color:var(--accent-ink); background:var(--accent-ink); color:#fff; }
.rt-button--danger { border-color:#b42318; color:#b42318; }
.rt-button--danger:hover { border-color:#b42318; background:#b42318; color:#fff; }
.rt-button[disabled] { cursor:not-allowed; opacity:.45; }
.rt-button[disabled]:hover { border-color:var(--rule); background:transparent; color:var(--muted); }
.rt-button--solid[disabled]:hover { border-color:var(--accent); background:var(--accent); color:#fff; }
.rt-admin-form { display:grid; grid-template-columns:1fr; gap:0; padding-bottom:120px; }
.rt .admin-section { padding:0; border:0; border-bottom:1px solid var(--rule); background:transparent; }
.rt .admin-section summary { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:14px; min-height:0; margin:0; padding:18px 0; color:var(--text); font-size:1.06rem; font-weight:600; letter-spacing:-.01em; transition:padding-left .2s ease, background-color .2s ease; }
.rt .admin-section summary:hover { padding-left:12px; background:var(--soft); }
.rt .admin-section summary::after { content:"+"; grid-column:3; grid-row:1; width:22px; height:22px; border:1px solid var(--rule); color:var(--accent); font-size:.9rem; font-weight:600; }
.rt .admin-section[open] summary { border-bottom:0; }
.rt .admin-section[open] summary::after { content:"\2212"; }
.rt .admin-section summary span { grid-column:2; margin-left:0; color:var(--muted); font-size:.75rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; white-space:nowrap; }
.rt .admin-section.is-changed summary { color:var(--accent); }
.rt .admin-field { display:grid; grid-template-columns:minmax(0,1fr) 150px; gap:14px; align-items:center; min-height:52px; padding:8px 0 8px 12px; border-top:1px solid var(--rule); border-left:2px solid transparent; }
.rt .admin-field.is-changed { border-left-color:var(--accent); }
.rt .admin-field span { color:var(--muted); font-size:.9rem; }
.rt .admin-field input,
.rt .admin-field select { width:100%; min-height:36px; padding:7px 9px; border:1px solid var(--rule); border-radius:6px; background:var(--field); color:var(--text); font:inherit; font-size:.88rem; }
.rt .admin-field.is-changed input,
.rt .admin-field.is-changed select { border-color:var(--accent); box-shadow:0 0 0 3px var(--hl); }
.rt .admin-empty { grid-column:1 / -1; margin:18px 0 0; padding:18px 0; border:0; border-bottom:1px solid var(--rule); background:transparent; color:var(--muted); }
.rt-admin-savebar { position:sticky; bottom:0; z-index:20; display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding:16px 18px; margin-bottom:28px; border:1px solid var(--rule); background:var(--bg); box-shadow:0 -14px 34px rgba(20,23,15,.08); }
.rt-admin-change-count { display:inline-flex; align-items:center; gap:9px; color:var(--text); font-size:.82rem; font-weight:600; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; }
.rt-admin-change-count::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--muted); }
.rt-admin-change-count.is-changed::before { background:var(--dot); }
.rt-admin-savebar p { flex:1 1 200px; min-width:0; margin:0; color:var(--muted); font-size:.85rem; }
.rt-admin-savebar p.is-success { color:var(--accent); }
.rt-admin-savebar p.is-error { color:#b42318; }

/* Footer */
.rt-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding:44px 0 56px; color:var(--muted); font-size:.82rem; }
.rt-footer-copy { display:grid; gap:2px; }
.rt-footer p { margin:0; }
.rt-theme--footer { margin-left:auto; }
.rt-footer--admin { padding-top:16px; }

/* Responsive — reuse the site's 680 / 430 breakpoints */
@media (max-width:680px) {
    .rt-panel { display:none; }
    .rt-main--home { padding-top:56px; }
    body[data-rt-page="projects"] .rt-main,
    body[data-rt-page="hobbies"] .rt-main { padding-top:56px; }
    .rt-server-status { grid-template-columns:1fr; }
    .rt-server-status-cell:not(:last-child) { border-right:0; border-bottom:1px solid var(--rule); }
    .rt-admin-summary { grid-template-columns:1fr; }
    .rt-admin-summary-row:not(:last-child) { border-right:0; border-bottom:1px solid var(--rule); }
    .rt-admin-tools { width:100%; margin-left:0; }
    .rt-admin-tools .rt-button { flex:1 1 auto; }
    .rt-admin-control { align-items:stretch; flex-direction:column; }
    .rt-admin-control-actions .rt-button { flex:1 1 auto; }
    .rt .admin-field { grid-template-columns:1fr; }
    .rt-admin-savebar { align-items:stretch; flex-direction:column; }
    .rt-admin-savebar .rt-button { width:100%; }
    .rt-project-showcase { grid-template-columns:1fr; gap:24px; padding:30px 0; }
    .rt-project-showcase__media { height:auto; }
    .rt-project-showcase__media img { height:auto; }
}
@media (max-width:700px) {
    .rt-global-nav-shell { padding:0 16px; }
    .rt-global-nav .rt-bar, .rt-global-nav .rt-panel { display:none; }
    .rt-global-nav .rt-mobilebar {
        display:grid; grid-template-columns:44px 1fr 44px; align-items:center;
        gap:8px; padding:10px 14px; border-bottom:2px solid var(--rule);
    }
    .rt-global-nav .rt-burger {
        display:grid; place-items:center; width:44px; height:44px; padding:0;
        border:1px solid var(--rule); border-radius:11px; background:transparent;
        color:var(--text); cursor:pointer;
    }
    .rt-global-nav .rt-burger svg { width:19px; height:19px; }
    .rt-global-nav .rt-burger[aria-expanded="true"] { border-color:var(--accent); background:var(--soft); color:var(--accent-ink); }
    .rt-global-nav .rt-mobilebar__logo { display:grid; place-items:center; }
    .rt-global-nav .rt-mobilebar__logo img { width:41px; height:41px; object-fit:contain; }
    .rt-global-nav .rt-mobilebar__spacer { display:block; width:44px; height:44px; }
    .rt-global-nav .rt-drawer {
        position:absolute; top:100%; left:0; right:0; z-index:90;
        max-height:calc(100vh - 66px); overflow-y:auto; padding:10px 14px 16px;
        border-bottom:1px solid var(--rule); background:var(--bg);
        box-shadow:0 14px 34px rgba(20,23,15,.12);
    }
    .rt-global-nav .rt-drawer:not([hidden]) { display:block; }
    .rt-global-nav .rt-drawer a {
        display:flex; align-items:center; justify-content:space-between; gap:10px;
        min-height:46px; padding:0 12px; border-radius:11px; color:var(--text);
        font-size:.95rem; font-weight:600;
    }
    .rt-global-nav .rt-drawer a:hover { background:var(--soft); }
    .rt-global-nav .rt-drawer a[aria-current="page"] { color:var(--accent); background:var(--soft); }
    .rt-global-nav .rt-drawer .rt-drawer__sub {
        min-height:42px; margin-left:12px; padding:0 12px 0 14px;
        border-left:2px solid var(--hl); border-radius:0 11px 11px 0;
        color:var(--muted); font-size:.88rem; font-weight:400;
    }
    .rt-global-nav .rt-drawer .rt-drawer__sub span:last-child { color:var(--accent); }
}
@media (max-width:430px) {
    .rt-bar { flex-wrap:wrap; gap:12px 18px; }
    .rt-nav { gap:18px; }
}


/* --- Signed-in account menu ----------------------------------------------
   Moved out of todo.css so every page renders the same signed-in nav. The
   To Do page still loads this file, so its own header is unchanged. */

/* An explicit display beats [hidden], and this menu is all flex/grid. todo.css
   sets this globally for its own page; the shared nav needs it everywhere. */
.rt-global-nav [hidden] { display: none !important; }

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

.td-account { position: relative; margin-left: 18px; }
.td-account__trigger {
    display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
    border: 1px solid var(--rule); border-radius: 50%;
    background: var(--card); color: var(--accent-ink);
    font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}
.td-account.is-open .td-account__trigger { border-color: var(--accent); background: var(--soft); }

.td-menu {
    position: absolute; top: calc(100% + 9px); right: 0; z-index: 95;
    width: 262px; padding: 7px;
    border: 1px solid var(--rule); border-radius: var(--r-lg);
    background: var(--bg); box-shadow: var(--shadow-lift);
    animation: td-rise .16s ease;
}
.td-menu__id { padding: 9px 11px 12px; border-bottom: 1px solid var(--rule-soft); }
.td-menu__rest { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.td-menu__avatar {
    display: grid; place-items: center; width: 36px; height: 36px;
    border-radius: 50%; background: var(--soft);
    color: var(--accent-ink); font-size: .85rem; font-weight: 700;
}
.td-menu__name {
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: .94rem; font-weight: 600; letter-spacing: -.01em;
}
.td-menu__email {
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--faint); font-size: .79rem;
}
.td-menu__edit {
    display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
    border: 0; border-radius: var(--r-sm); background: transparent; color: var(--faint);
    cursor: pointer; transition: background-color .16s ease, color .16s ease;
}
.td-menu__edit svg { width: 14px; height: 14px; }
.td-menu__edit:hover { background: var(--sunken); color: var(--accent); }

.td-nameform { display: grid; gap: 7px; }
.td-nameform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.td-nameform input {
    width: 100%; min-height: 38px; padding: 8px 10px;
    border: 1px solid var(--rule); border-radius: var(--r-sm);
    background: var(--field); color: var(--text); font: inherit; font-size: .88rem;
}
.td-nameform input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--hl); outline: none; }
.td-nameform__actions { display: flex; gap: 7px; }
.td-menu__section { padding: 11px 11px 9px; }
.td-menu__section > p {
    margin: 0 0 8px; color: var(--faint); font-size: .68rem; font-weight: 600;
    letter-spacing: .13em; text-transform: uppercase;
}
.td-menu__out { padding-top: 5px; border-top: 1px solid var(--rule-soft); }
.td-menu__signout {
    display: flex; align-items: center; gap: 9px; width: 100%;
    min-height: 40px; padding: 0 11px; border: 0; border-radius: var(--r-md);
    background: transparent; color: var(--text); font: inherit; font-size: .88rem;
    text-align: left; cursor: pointer; transition: background-color .16s ease, color .16s ease;
}
.td-menu__signout:hover { background: var(--soft); color: var(--accent-ink); }
.td-menu__signout svg { width: 15px; height: 15px; flex: 0 0 auto; }

.td-kicker { margin: 0 0 6px; color: var(--faint); font-size: .68rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }

.td-seg { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--sunken); }
.td-seg button {
    flex: 1 1 0; min-height: 34px; border: 0; border-radius: var(--r-pill);
    background: transparent; color: var(--muted);
    font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}
.td-seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.td-seg--sm button { min-height: 30px; font-size: .8rem; }

.td-fill {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    border: 1px solid var(--accent-fill); border-radius: var(--r-md);
    background: var(--accent-fill); color: var(--on-accent);
    font: inherit; font-weight: 600; cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}
.td-fill:hover { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); }
.td-fill[disabled] { opacity: .45; cursor: not-allowed; }
.td-ghost {
    border: 1px solid var(--rule); border-radius: var(--r-sm);
    background: transparent; color: var(--muted);
    font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
    transition: border-color .18s ease, color .18s ease;
}
.td-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Replaces inline style attributes: /ebay runs a strict style-src 'self' CSP. */
.td-menu__namecol { min-width: 0; }
.td-fill--sm { height: 34px; padding: 0 14px; font-size: .82rem; }
.td-ghost--sm { height: 34px; padding: 0 12px; }

.td-alert {
    display: flex; align-items: flex-start; gap: 9px; margin: 0;
    padding: 11px 13px; border: 1px solid var(--warn); border-radius: var(--r-md);
    background: var(--warn-soft); color: var(--warn); font-size: .87rem;
}
.td-alert b { flex: 0 0 auto; margin-top: 1px; font-weight: 700; }
