:root {
  --navy: #0d366b;
  --navy-2: #164b8f;
  --ink: #16202c;
  --muted: #5b6776;
  --line: #dde3ea;
  --bg: #f4f6f9;
  --card: #fff;
  --accent: #e8a33d;
  --radius: 12px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
code { background: #eef2f7; padding: 0 .3em; border-radius: 4px; font-size: .92em; overflow-wrap: anywhere; }
.faint { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(16px, 4vw, 40px); background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 5; }
.brand { white-space: nowrap; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 10px; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--navy); font-weight: 800; font-size: .85rem; }
img.logo { display: block; padding: 0; background: var(--navy); object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.who > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: #e9eff7; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; min-height: 38px; padding: 6px 14px; }
.btn-light:hover { background: #e9eff7; }
.btn-block { width: 100%; margin-bottom: 10px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 2px rgb(0 0 0 / 4%); }
.notice { background: #fff6e5; border: 1px solid #f0d49b; border-radius: 8px; padding: 10px 12px; }

/* Public home */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 40px); max-width: 1180px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--navy-2); margin: 0 0 8px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.lead { font-size: 1.1rem; color: #33404f; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.signin h2 { font-size: 1.3rem; }
.work { margin: 6px 0 12px; }
.work label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.row { display: flex; gap: 8px; }
.row input { flex: 1; min-width: 0; }
input { font: inherit; min-height: 44px; padding: 8px 12px; border: 1px solid #b9c3cf; border-radius: 10px; background: #fff; }
.modules { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 48px; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.module-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.module-group h3 { font-size: 1rem; color: var(--navy); }
.module-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.module-group li { font-size: .95rem; color: #33404f; }
.module-group strong { color: var(--ink); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 20px clamp(16px, 4vw, 40px) 72px; border-top: 1px solid var(--line); font-size: .9rem; }

/* Sign-in return */
.center { display: grid; place-items: center; padding: 16px; }
.narrow { max-width: 460px; width: 100%; }

/* Signed-in home */
.home { max-width: 1240px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 80px; }
.home-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 12px; }
.home-head h1 { font-size: 1.6rem; margin: 0; }
.home-head p { margin: 2px 0 0; }
.search input { width: min(340px, 100%); }
.search { flex: 0 1 340px; }
.section { margin: 14px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.section > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 1.05rem; color: var(--navy); list-style: revert; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 0 18px 18px; }
.tile { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; color: inherit; text-decoration: none; min-width: 0; }
a.tile:hover { border-color: var(--navy-2); background: #f1f6fd; }
.tile-off { opacity: .7; }
.tile[hidden], .section[hidden] { display: none; }
.mark { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: #fff; font-weight: 800; font-size: .8rem; }
.tile-body { display: grid; gap: 4px; min-width: 0; }
.tile-body strong { overflow-wrap: anywhere; }
.sum { font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e9eff7; color: var(--navy); }
.tag-demo { background: #fff0d6; color: #8a5300; }
.tag-admin { background: #efe6fb; color: #5b2d9a; }
.tag-off { background: #eceff3; color: #5b6776; }

/* "How to make this page work" */
.howto-btn { position: fixed; right: 12px; bottom: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 700; cursor: pointer; opacity: .55; z-index: 10; }
.howto-btn:hover, .howto-btn:focus-visible { opacity: 1; }
dialog.howto { max-width: min(640px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
dialog.howto::backdrop { background: rgb(13 54 107 / 35%); }
dialog.howto li { margin-bottom: 6px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .bar .btn-light { padding: 6px 10px; }
  .row { flex-direction: column; }
  .brand { font-size: 1rem; }
  #who { display: none; }
}

/* /minecraft/ */
.mc-back { margin: 0 0 4px; }
.mc-back a { text-decoration: none; }
.mc-host { margin: 22px 0 8px; }
.mc-host-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.mc-host-head h2 { margin: 0; font-size: 1.2rem; }
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.mc-card { padding: 18px; }
.mc-top { display: flex; align-items: center; gap: 10px; }
.mc-top h3 { margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 1.05rem; }
.mc-dot { width: 11px; height: 11px; border-radius: 50%; background: #a9b3bf; flex: none; }
.mc-dot.mc-running { background: #3f9b2a; box-shadow: 0 0 0 3px rgb(63 155 42 / 18%); }
.mc-dot.mc-starting, .mc-dot.mc-stopping { background: var(--accent); }
.mc-sub { margin: 4px 0 0; }
.mc-motd { margin: 8px 0 0; font-style: italic; overflow-wrap: anywhere; }
.mc-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 12px 0 0; }
.mc-facts dt { color: var(--muted); }
.mc-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mc-players { margin: 10px 0 0; padding-left: 18px; }
.mc-map { position: relative; margin-top: 12px; }
.mc-map canvas { display: block; width: 100%; height: 300px; border-radius: 10px; touch-action: none; cursor: grab; background: #10180f; }
.mc-map-hint { position: absolute; left: 8px; bottom: 6px; font-size: .75rem; color: #9aac98; pointer-events: none; }

/* Sign-in only home page with local time and weather (27 Nov 2026). */
.login-only { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: clamp(24px, 6vw, 64px) 16px; }
.login-stack { width: min(420px, 100%); display: grid; gap: 14px; }
.login-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-weight: 700; font-size: 1.1rem; }
.local-now { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 16px 20px; }
.ln-time, .ln-weather { display: flex; flex-direction: column; }
.ln-weather { text-align: right; }
.ln-clock { font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ln-temp { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.ln-date, .ln-sky { font-size: .85rem; }
.ln-place { grid-column: 1 / -1; margin: 4px 0 0; font-size: .8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 380px) { .local-now { grid-template-columns: 1fr; } .ln-weather { text-align: left; } }

/* Manage users (/admin/users/) */
.users h2 { margin: 0 0 14px; font-size: 1.15rem; }
.users .card { margin: 14px 0; }
.users label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.users-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 18px; }
.users-fields input { width: 100%; }
.users-hint { font-size: .82rem; margin: 4px 0 0; }
.users-groups { border: 0; padding: 0; margin: 16px 0; min-width: 0; }
.users-groups legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.users-sub { font-size: .95rem; margin: 14px 0 0; }
.users-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin-top: 8px; }
.users .users-choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; font-weight: 400; cursor: pointer; min-width: 0; }
.users-choice input { min-height: 0; width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.users-choice span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; font-size: .88rem; }
.users-more { margin-top: 14px; }
.users-more > summary { cursor: pointer; color: var(--navy); font-weight: 600; min-height: 32px; }
.notice-ok { background: #eaf6ec; border-color: #b7dcbf; }
.users form .btn { margin-top: 6px; }
.users-list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.users-list-head h2 { margin: 0; }
.users-list-head input { width: min(300px, 100%); }
.users-people { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.users-person { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 2fr); gap: 8px 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.users-who { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.users-tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
@media (max-width: 720px) { .users-person { grid-template-columns: minmax(0, 1fr) auto; } .users-tags { grid-column: 1 / -1; } }

/* Dark sign-in: the original FikeVantage sign-in screen in its dark scheme (Michael, 27 Nov 2026).
   The front door, the sign-in return page and the 404 page. Signed-in pages keep the light look. */
body.landing, body.center {
  color-scheme: dark;
  --bg: #121211; --card: #1a1a19; --line: #33332f; --ink: #f0efec; --muted: #96958c;
  --blue: #3987e5; --blue-2: #5b9ded;
  background: var(--bg); color: var(--ink);
}
body.landing a, body.center a { color: #86b6ef; }
body.landing .card, body.center .card { border-radius: 16px; padding: 28px; box-shadow: none; }
body.landing .login-stack { width: min(400px, 100%); }
body.landing .signin h1 { font-size: 1.35rem; margin: 0 0 16px; }
body.landing .btn, body.center .btn { background: var(--blue); border-color: var(--blue); color: #fff; }
body.landing .btn:hover, body.center .btn:hover { background: var(--blue-2); border-color: var(--blue-2); }
body.landing .btn-ghost, body.center .btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
body.landing .btn-ghost:hover, body.center .btn-ghost:hover { background: #242422; border-color: #4a4a45; }
body.landing input { background: var(--bg); border-color: var(--line); color: var(--ink); }
body.landing input::placeholder { color: #75746f; }
body.landing .notice, body.center .notice { background: #2b2310; border-color: #5c4a1c; color: #f5d58a; }
body.landing .foot { border-top-color: var(--line); }
body.landing .howto-btn, body.center .howto-btn { background: var(--card); border-color: var(--line); color: var(--muted); }
body.landing dialog.howto, body.center dialog.howto { background: var(--card); color: var(--ink); border-color: var(--line); }
body.landing img.logo { box-shadow: none; }
.users-label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.users .users-inline { display: flex; align-items: center; gap: 8px; font-weight: 400; margin-top: 8px; cursor: pointer; }
.users-inline input { min-height: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.users-edit-btn { min-height: 36px; padding: 6px 14px; justify-self: end; }
.users-person { grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 2fr) auto; }
.users-editor { grid-column: 1 / -1; display: grid; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.users-edit-part { display: grid; gap: 6px; min-width: 0; }
.users-inline-form .row input { flex: 1; min-width: 0; }
.users-danger { color: #a12424; border-color: #e5b4b4; justify-self: start; }
.users-danger:hover { background: #fbeaea; }
.users-editor > .btn { justify-self: start; }
@media (max-width: 720px) { .users-person { grid-template-columns: minmax(0, 1fr) auto; } .users-edit-btn { grid-column: 1 / -1; justify-self: stretch; } }

/* Client demo tour */
.tour-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.tour-pick[aria-current="step"] { background: var(--navy); color: #fff; border-color: transparent; }
.tour-card h2 { margin: 2px 0 6px; font-size: 1.5rem; }
.tour-step { margin: 0; }
.tour-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.tour-apps { padding: 0; }
.users-presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }

/* Manage users: sign-ins */
.users-seen { font-size: .85rem; }
.users-events { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.users-events li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
