@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/static/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0c1316;
  --surface: #141e21;
  --surface-light: #1b272a;
  --inset: #0f181b;
  --border: #304044;
  --faint-border: #263539;
  --text: #f1f2e9;
  --soft: #becac4;
  --muted: #9baea9;
  --accent: #b3e38b;
  --accent-ink: #192b22;
  --amber: #efc882;
  --rose: #f1a79c;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { min-width: 0; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 18% 0%, #142126 0, transparent 40rem), var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .64; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, .brand { font-family: var(--display); }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; }
a { color: inherit; }
canvas { image-rendering: pixelated; }
.skip-link { position: absolute; top: 0; left: .6rem; transform: translateY(-130%); padding: .6rem 1rem; background: var(--accent); color: var(--accent-ink); z-index: 10; }
.skip-link:focus { transform: translateY(.6rem); }
.masthead { border-bottom: 1px solid var(--faint-border); background: #10181bed; }
.masthead-inner, .page, .site-footer {
  width: min(100% - clamp(2rem, 8vw, 8rem), 79rem);
  margin-inline: auto;
}
.masthead-inner { min-height: 4.65rem; display: flex; align-items: center; gap: 1.3rem; }
.brand { display: inline-flex; align-items: center; gap: .47rem; text-decoration: none; font-size: 1.36rem; font-weight: 740; letter-spacing: -.055em; }
.brand img, .site-footer img { image-rendering: pixelated; object-fit: contain; }
.brand-section { border-left: 1px solid #3a4649; padding-left: 1.22rem; color: var(--soft); font-size: .92rem; font-weight: 550; letter-spacing: -.015em; white-space: nowrap; }
.account-nav .btn { white-space: nowrap; }
.account-nav { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: .95rem; min-width: 0; }
.server-host { color: var(--soft); font: .83rem var(--mono); letter-spacing: -.035em; display: inline-flex; align-items: center; gap: .6rem; }
.server-host .glyph { color: var(--muted); }
.account-identity { display: flex; align-items: center; min-width: 0; gap: .55rem; color: var(--soft); font-size: .93rem; font-weight: 570; }
.account-identity .gamertag { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.page { flex: 1; padding-block: clamp(1.45rem, 3.2vw, 2.8rem) 3.8rem; }
.page:focus { outline: none; }
.site-footer { margin-top: auto; border-top: 1px solid var(--faint-border); padding-block: 1.2rem 1.5rem; color: var(--muted); display: flex; align-items: center; justify-content: space-between; font-size: .83rem; }
.site-footer div { display: flex; align-items: center; gap: .42rem; }
.site-footer img { width: 19px; height: 19px; }
.divider { color: #729087; margin-inline: .15rem; }
.footer-domain { font-family: var(--mono); letter-spacing: -.035em; }
.loading-page { min-height: 52vh; display: flex; justify-content: center; align-items: center; gap: .7rem; color: var(--soft); }
.spinner { display: inline-block; width: 1rem; height: 1rem; border: 2px solid #78987572; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.glyph { width: 1rem; height: 1rem; flex: 0 0 auto; display: inline-block; vertical-align: -.125em; }
.glyph.lg { width: 1.35rem; height: 1.35rem; }
.glyph.xl { width: 1.7rem; height: 1.7rem; }

.signin-layout {
  min-height: min(41.5rem, calc(100svh - 12rem));
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(22rem, .9fr);
  overflow: hidden; border: 1px solid var(--border); border-radius: 1.05rem; background: var(--surface);
  box-shadow: 0 1.35rem 5rem -3rem #000b;
}
.signin-art, .world-hero, .picker-art { position: relative; isolation: isolate; overflow: hidden; background: #172735; }
.signin-art::before, .world-hero::before, .picker-art::before {
  position: absolute; inset: 0; content: ""; z-index: -2; background-image: url("/static/overworld.webp"); background-size: cover; background-repeat: no-repeat;
}
.signin-art::after, .world-hero::after, .picker-art::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.signin-art {
  padding: clamp(1.8rem, 4.15vw, 4rem);
  display: flex; align-items: flex-end;
  color: #f9faf1; min-height: 32rem;
}
.signin-art::before { background-position: 69% 50%; }
.signin-art::after { background: linear-gradient(0deg, #071518eb 0, #081422a6 18%, #09152700 64%), linear-gradient(95deg, #06141d54, transparent 66%); }
.hero-copy { max-width: 26rem; position: relative; }
.edition { display: inline-flex; gap: .55rem; align-items: center; color: var(--accent); font: 600 .8rem var(--mono); text-transform: uppercase; letter-spacing: .11em; }
.hero-copy h1 { margin-top: .8rem; font-size: clamp(3.4rem, 6.4vw, 6.05rem); font-weight: 730; letter-spacing: -.052em; line-height: .95; }
.hero-copy p { max-width: 23rem; color: #e1e8e2; margin-top: 1rem; font-size: 1.03rem; line-height: 1.6; text-wrap: pretty; }
.auth-panel { display: grid; align-items: center; padding: clamp(1.6rem, 4vw, 3.9rem); border-left: 1px solid var(--border); background: linear-gradient(145deg, #1a2526, #141c21 74%); }
.auth-box { width: 100%; max-width: 27rem; margin: auto; }
.lock-tile, .symbol-tile {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .65rem;
  background: #26382c; border: 1px solid #415742; color: var(--accent);
}
.lock-tile { width: 2.9rem; height: 2.9rem; margin-bottom: 1.35rem; }
.auth-box h2, .route-title { font-size: clamp(1.9rem, 2.9vw, 2.7rem); letter-spacing: -.052em; font-weight: 730; }
.auth-intro { color: var(--soft); line-height: 1.5; margin-top: .58rem; }
.auth-switch { margin-top: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; padding: .25rem; border: 1px solid var(--border); background: var(--inset); border-radius: .55rem; gap: .22rem; }
.auth-switch button { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; background: transparent; text-align: center; border: 1px solid transparent; border-radius: .38rem; color: var(--muted); min-height: 2.55rem; font-size: .9rem; font-weight: 620; }
.auth-switch button[aria-pressed="true"] { background: #2a3836; color: var(--text); box-shadow: inset 0 0 0 1px #435247; }
.auth-form { margin-top: 1.35rem; display: grid; gap: 1rem; }
.field { display: grid; gap: .39rem; min-width: 0; }
.field label, .field-label { color: var(--text); font-size: .91rem; line-height: 1.4; font-weight: 650; }
.optional { color: var(--muted); font-size: .82rem; font-weight: 400; }
.field input { width: 100%; min-width: 0; min-height: 2.88rem; border-radius: .43rem; border: 1px solid #415052; background: #0d171b; color: var(--text); padding: .64rem .78rem; line-height: 1.36; font-size: 1rem; }
.field input::placeholder { color: #82938f; }
.field input:focus { border-color: #90b57b; }
.field input.code { font-family: var(--mono); letter-spacing: .18em; }
.field small, .help-copy, .subtle { color: var(--muted); font-size: .89rem; line-height: 1.5; }
.auth-hint { display: flex; align-items: flex-start; gap: .65rem; color: var(--muted); font-size: .88rem; line-height: 1.5; margin-top: 1.2rem; padding-top: 1.05rem; border-top: 1px solid var(--faint-border); }
.auth-hint .glyph { margin-top: .12rem; color: #a0b79a; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .56rem; min-height: 2.65rem; border-radius: .45rem; padding: .58rem .93rem; font-size: .91rem; font-weight: 640; border: 1px solid var(--border); color: var(--text); background: var(--surface-light); line-height: 1.35; transition: background .15s, border-color .15s, color .15s; }
.btn:hover:enabled { background: #2b3a3c; border-color: #526365; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 740; }
.btn.primary:hover:enabled { background: #c3eda2; border-color: #c3eda2; }
.btn.primary .spinner { border-color: #748e62; border-top-color: #182d21; }
.btn.compact { min-height: 2.3rem; padding: .45rem .68rem; font-size: .86rem; }
.btn.ghost { background: transparent; }
.btn.danger { color: #ffd9d3; border-color: #80534f; background: #452b2a; }
.btn.danger:hover:enabled { background: #5b3734; border-color: #ad7169; }
.btn.text { color: var(--accent); background: transparent; border: 0; padding-inline: .15rem; }
.auth-form .primary { min-height: 2.98rem; }
.auth-extra { margin-top: .55rem; }
.form-error, .inline-alert { color: #ffcbc3; border: 1px solid #76534e; background: #362829; border-radius: .45rem; padding: .62rem .78rem; font-size: .91rem; }
.inline-alert { margin-bottom: 1rem; }
.notice { position: fixed; z-index: 8; right: max(1rem, calc((100vw - 77rem) / 2)); bottom: 1.15rem; max-width: min(29rem, calc(100vw - 2rem)); background: #233a2d; border: 1px solid #557359; color: #eaf8e4; box-shadow: 0 .5rem 2rem #0007; padding: .8rem 1rem; border-radius: .55rem; font-size: .94rem; }
.notice.error { background: #452e2e; border-color: #8c5c54; color: #ffddd7; }

.picker-head { margin: .35rem 0 1.6rem; }
.picker-head p, .section-top p { color: var(--muted); margin-top: .35rem; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 1.2rem; }
.world-card { display: grid; grid-template-rows: 11rem auto; padding: 0; text-align: left; border: 1px solid var(--border); border-radius: .8rem; color: var(--text); background: var(--surface); overflow: hidden; }
.world-card:hover { border-color: #709074; }
.picker-art::before { background-position: 75% 50%; transition: transform .25s; }
.world-card:nth-child(even) .picker-art::before { background-position: 24% 63%; background-size: 145%; }
.world-card:hover .picker-art::before { transform: scale(1.025); }
.picker-art::after { background: linear-gradient(0deg, #10182070, transparent 80%); }
.world-card-footer { padding: 1.05rem 1.25rem 1.2rem; display: flex; align-items: center; gap: .9rem; justify-content: space-between; }
.world-card-name { font: 685 1.55rem var(--display); letter-spacing: -.045em; overflow-wrap: anywhere; }
.small-chip, .role-chip { display: inline-flex; align-items: center; gap: .36rem; border-radius: .32rem; font-size: .78rem; line-height: 1.35; padding: .24rem .48rem; border: 1px solid #41534d; background: #22322d; color: #c5d9c7; white-space: nowrap; }
.role-chip.admin { color: #f3d6a1; background: #3a3225; border-color: #5e5035; }
.empty-panel, .empty-state { color: var(--muted); }
.empty-panel { border: 1px solid var(--border); border-radius: .65rem; padding: clamp(1.35rem, 3vw, 2.3rem); background: var(--surface); }
.empty-panel h2, .empty-state strong { color: var(--text); }
.empty-panel p { margin-top: .48rem; }
.empty-panel .btn { margin-top: .95rem; }
.world-hero { border: 1px solid #36484b; border-radius: .87rem; min-height: 13.6rem; display: flex; align-items: flex-end; padding: clamp(1.3rem, 3.2vw, 2.8rem); }
.world-hero::before { background-position: 57% 52%; }
.world-hero::after { background: linear-gradient(90deg, #0b1821ee 0%, #0b1722a6 35%, transparent 75%), linear-gradient(0deg, #09141d8c 0%, transparent 73%); }
.world-hero h1 { font-size: clamp(2.45rem, 5.35vw, 4.7rem); line-height: 1; letter-spacing: -.052em; overflow-wrap: anywhere; margin-top: .6rem; }
.world-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .62rem; margin-top: .88rem; }
.world-chips .small-chip { color: #e1e8e3; background: #0e191dc4; border-color: #526363; font-size: .83rem; }
.world-chips .small-chip.online { color: #d5efbd; border-color: #597451; }
.dot { width: .47rem; height: .47rem; display: inline-block; background: #89959a; border-radius: 50%; flex: 0 0 auto; }
.dot.green { background: var(--accent); box-shadow: 0 0 .4rem #b3e38b38; }
.dot.missing { border: 1px solid #a1aba8; background: transparent; }
.tools-line { margin: 1.05rem 0 1.75rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-bottom: 1px solid var(--border); }
.section-nav { display: flex; align-items: stretch; gap: .22rem; }
.section-nav button { font-weight: 620; color: var(--muted); padding: .85rem .82rem .84rem; display: inline-flex; align-items: center; white-space: nowrap; gap: .48rem; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; font-size: .93rem; }
.section-nav button:hover { color: var(--text); }
.section-nav button[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.refresh { border: 0; color: var(--soft); background: transparent; padding: .45rem .2rem; display: inline-flex; gap: .44rem; align-items: center; font-weight: 600; font-size: .86rem; }
.refresh:hover { color: var(--accent); }
.section-top { display:flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.05rem; }
.section-top h2 { font-size: clamp(1.72rem, 3vw, 2.35rem); letter-spacing: -.052em; }
.section-top p { font-size: .93rem; }
.record-time { font-size: .84rem; color: var(--muted); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(15.4rem, .85fr); gap: 1.15rem; align-items: start; }
.panel { border: 1px solid var(--border); border-radius: .72rem; background: var(--surface); min-width: 0; overflow: hidden; }
.panel-header { display: flex; justify-content: space-between; gap: .65rem; align-items: center; border-bottom: 1px solid var(--faint-border); padding: 1.05rem 1.25rem; }
.panel-heading { display: flex; align-items: center; gap: .65rem; }
.panel-header h3 { font-size: 1.14rem; letter-spacing: -.027em; font-weight: 700; }
.panel-heading .glyph { color: var(--accent); }
.panel-body { padding: 1.2rem 1.25rem; }
.location-list { list-style: none; margin: 0; padding: 0 1.25rem; }
.location-list > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: .8rem; padding: 1rem 0; align-items: center; }
.location-list > li + li, .vital + .vital, .roster-row + .roster-row, .backup-row + .backup-row { border-top: 1px solid var(--faint-border); }
.location-title, .roster-name { font-size: .98rem; font-weight: 620; color: var(--text); overflow-wrap: anywhere; }
.location-list small { display: block; margin-top: .15rem; color: var(--muted); font-size: .81rem; }
.location-info { text-align: right; min-width: 0; }
.coords { display: inline-flex; justify-content: end; flex-wrap: wrap; gap: .3rem; }
.coord { font: .87rem var(--mono); letter-spacing: -.045em; display: inline-flex; align-items: baseline; gap: .34rem; color: #e6ede8; background: var(--inset); padding: .25rem .38rem; border: 1px solid var(--faint-border); border-radius: .23rem; }
.coord b { color: #96ac9f; font-size: .69rem; font-weight: 550; }
.no-record { color: var(--muted); font-size: .84rem; font-style: italic; }
.vital { padding: .9rem 0; }
.vital:first-child { padding-top: .16rem; }
.vital:last-child { padding-bottom: .15rem; }
.vital-top, .vital-name { display: flex; align-items: center; gap: .52rem; }
.vital-top { justify-content: space-between; font-size: .94rem; }
.vital-name { color: var(--soft); font-weight: 575; }
.vital.health { --vital: #ec968d; }
.vital.hunger { --vital: #eac28a; }
.vital.saturation { --vital: #94cfbd; }
.vital .glyph { color: var(--vital); }
.vital-value { font: .91rem var(--mono); letter-spacing: -.065em; }
.vital-value small { color: var(--muted); }
.vital progress { width: 100%; appearance: none; -webkit-appearance: none; border: 0; display: block; height: .46rem; background: #29383a; accent-color: var(--vital); margin-top: .56rem; border-radius: 1px; overflow: hidden; }
.vital progress::-webkit-progress-bar { background: #283638; }
.vital progress::-webkit-progress-value { background: var(--vital); }
.vital progress::-moz-progress-bar { background: var(--vital); }
.vital-empty { height: .46rem; background: #283638; margin-top: .56rem; }
.inventory-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(14rem, .78fr); gap: 1.15rem; align-items: start; }
.slot-section + .slot-section { margin-top: 1.35rem; }
.slot-section h4 { color: var(--soft); font: 650 .91rem var(--body); margin: 0 0 .5rem; }
.slot-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: .33rem; padding: .42rem; background: #10191c; border: 1px solid #2a383b; border-radius: .45rem; }
.slot { position: relative; display: flex; justify-content: center; align-items: center; min-width: 0; aspect-ratio: 1; padding: 0; border: 1px solid #2d3e42; border-radius: .19rem; background: #1a272b; }
button.slot { color: #e7f2da; background: #253333; border-color: #435752; }
button.slot:hover, button.slot.selected { background: #304433; border-color: var(--accent); }
.slot canvas { width: min(73%, 2.7rem); height: auto; aspect-ratio: 1; align-self: center; justify-self: center; }
.count { position: absolute; bottom: .08rem; right: .18rem; font: 670 .8rem var(--mono); line-height: 1; color: #f3f4e9; text-shadow: 1px 1px 0 #0a1012, -1px -1px 0 #0a1012; }
.slot-detail { margin-top: .87rem; min-height: 1.3rem; color: var(--soft); font-size: .85rem; }
.slot-detail + .slot-section { margin-top: 1.1rem; }
.stack-list { list-style: none; padding: 0; margin: 0; }
.stack-list li { display: flex; align-items: center; min-width: 0; gap: .7rem; padding: .45rem 0; border-bottom: 1px solid var(--faint-border); font-size: .91rem; }
.stack-list li:last-child { border: 0; }
.stack-list canvas { width: 1.55rem; height: 1.55rem; flex: 0 0 auto; }
.stack-list span { overflow-wrap: anywhere; }
.stack-list b { margin-left: auto; font: .87rem var(--mono); white-space: nowrap; color: var(--soft); }
.roster-list, .backup-list { list-style: none; margin: 0; padding: 0; }
.roster-row, .backup-row { min-height: 3.98rem; display: flex; align-items: center; gap: .78rem; padding: .65rem 1.25rem; }
.roster-row > .identity-lines, .backup-info { flex: 1; min-width: 0; }
.identity-lines { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.avatar { display: inline-grid; place-items: center; width: 2.45rem; height: 2.45rem; border: 1px solid #486054; border-radius: .48rem; background: #283b31; color: #ccdfaf; flex-shrink: 0; font: 700 1rem var(--display); letter-spacing: -.02em; }
.avatar.tiny { width: 1.65rem; height: 1.65rem; border-radius: .35rem; font-size: .76rem; }
.avatar.tint1 { color: #b6dfe0; border-color: #3e6165; background: #223c40; }
.avatar.tint2 { color: #edd2a4; border-color: #64563b; background: #3b3126; }
.avatar.tint3 { color: #d2c8f1; border-color: #58516b; background: #373142; }
.avatar.tint4 { color: #e6bfb6; border-color: #68504e; background: #3d3030; }
.online-label { color: var(--muted); font-size: .86rem; display: inline-flex; align-items: center; gap: .42rem; }
.online-label.is-online { color: #c5e5ab; }
.roster-summary { font-size: .83rem; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.15rem; align-items: start; }
.admin-grid .wide { grid-column: 1 / -1; }
.admin-column { display: grid; gap: 1.15rem; min-width: 0; }
.admin-form { display: grid; gap: .8rem; align-items: end; }
.inline-form { grid-template-columns: minmax(0, 1fr) auto; }
.inline-form .btn { min-height: 2.88rem; }
.admin-roster { margin-top: 1rem; padding-top: .35rem; border-top: 1px solid var(--faint-border); }
.admin-roster .roster-row { padding: .6rem 0; min-height: 3.5rem; }
.remove-member { color: #eab4a9; background: transparent; border: 0; border-radius: .25rem; padding: .45rem; font-size: .85rem; font-weight: 600; }
.remove-member:hover { color: #ffcdc3; text-decoration: underline; }
.admins-inline { margin-top: .95rem; color: var(--muted); font-size: .87rem; }
.admins-inline strong { font-weight: 570; color: var(--soft); }
.panel-body > .admin-form, .panel-body > .help-copy + .admin-form { margin-top: 1rem; }
.panel-body > .admin-form:first-child { margin-top: 0; }
.backup-row { flex-wrap: wrap; }
.backup-info b { display: block; color: var(--text); font-size: .95rem; font-weight: 630; }
.backup-info small { display: block; color: var(--muted); font-size: .84rem; }
.backup-thumb { color: #dabd83; background: #352f26; border-color: #5c503b; width: 2.15rem; height: 2.15rem; }
.dialog { padding: 1.55rem; }
dialog { width: min(30rem, calc(100% - 2rem)); max-height: 85svh; overflow: auto; padding: 0; border-radius: .75rem; color: var(--text); background: #192427; border: 1px solid #496066; box-shadow: 0 1.5rem 5rem #0009; }
dialog::backdrop { background: #050b0ed9; }
.dialog-top { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: .72rem; }
.dialog h2 { font-size: 1.45rem; letter-spacing: -.04em; }
.dialog .close { border: 0; background: transparent; color: var(--soft); padding: .32rem; }
.dialog p { color: var(--soft); font-size: .95rem; }
.dialog .field { margin-top: 1rem; }
.dialog-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; }
.dialog .form-error { margin-top: .7rem; }
@media (min-width: 1500px) {
  .page { padding-top: 3.5rem; }
  .signin-layout { min-height: 42rem; }
}
@media (max-width: 900px) {
  .signin-layout { grid-template-columns: minmax(0, 1fr) minmax(19rem, .9fr); }
  .signin-art { padding: 1.65rem; }
  .auth-panel { padding: 1.65rem; }
  .overview-grid { grid-template-columns: minmax(0, 1.4fr) minmax(14rem, .8fr); }
  .location-list > li { grid-template-columns: 1fr; gap: .3rem; }
  .location-info { text-align: left; }
  .coords { justify-content: flex-start; }
  .location-info small { display: inline-block; margin-left: .3rem; }
  .inventory-layout { grid-template-columns: minmax(0, 1.6fr) minmax(12rem, .75fr); }
  .admin-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
  .inline-form { grid-template-columns: 1fr; }
  .inline-form .btn { justify-self: start; }
}
@media (max-width: 705px) {
  .masthead-inner, .page, .site-footer { width: min(100% - 2rem, 42rem); }
  .masthead-inner { min-height: 3.95rem; gap: .76rem; }
  .brand { font-size: 1.19rem; }
  .brand img { width: 32px; height: 32px; }
  .brand-section { padding-left: .75rem; }
  .account-nav { gap: .57rem; }
  .account-nav .gamertag, .account-nav .server-host { display: none; }
  .page { padding-block: 1.15rem 2.4rem; }
  .signin-layout { display: flex; flex-direction: column; }
  .signin-art { min-height: 14rem; padding: 1.45rem; }
  .signin-art::before { background-position: 76% 45%; }
  .signin-art::after { background: linear-gradient(90deg, #07121ebd, #08122142 67%, transparent), linear-gradient(0deg,#091923a1, transparent 73%); }
  .hero-copy h1 { font-size: clamp(2.75rem, 8.8vw, 3.7rem); margin-top: .45rem; }
  .hero-copy p { margin-top: .5rem; max-width: 19rem; font-size: .95rem; }
  .auth-panel { border-left: 0; border-top: 1px solid var(--border); padding: 1.5rem; }
  .auth-box { max-width: none; }
  .auth-box h2 { font-size: 1.65rem; }
  .lock-tile { float: right; width: 2.55rem; height: 2.55rem; margin: 0 0 0 .65rem; }
  .auth-switch { margin-top: 1.05rem; }
  .auth-form { margin-top: 1.05rem; }
  .world-hero { min-height: 11.5rem; }
  .world-hero::before { background-position: 77% 53%; }
  .tools-line { gap: .3rem; margin: .65rem 0 1.35rem; }
  .section-nav { flex: 1; justify-content: flex-start; gap: .18rem; }
  .section-nav button { font-size: .84rem; padding: .75rem .48rem; gap: .34rem; }
  .refresh .refresh-label { display: none; }
  .refresh { min-width: 2rem; min-height: 2.35rem; justify-content: center; }
  .overview-grid, .inventory-layout, .admin-grid { grid-template-columns: 1fr; }
  .location-list > li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: .45rem; }
  .location-info { text-align: right; }
  .location-info small { display: block; }
  .coords { justify-content: flex-end; }
  .section-top { align-items: flex-start; flex-direction: column; }
  .inline-form { grid-template-columns: minmax(0,1fr) auto; }
  .footer-domain { font-size: .75rem; }
}
@media (max-width: 430px) {
  .masthead-inner, .page, .site-footer { width: calc(100% - 1.35rem); }
  .brand-section { display: none; }
  .account-identity { display: none; }
  .signin-art { min-height: 12rem; }
  .auth-panel { padding: 1.15rem; }
  .world-hero { min-height: 9.9rem; }
  .world-hero h1 { font-size: 2.2rem; }
  .world-chips { gap: .3rem; }
  .world-chips .small-chip { font-size: .75rem; }
  .section-nav button { font-size: .82rem; padding-inline: .47rem; }
  .section-nav .glyph { display: none; }
  .panel-header { padding: .9rem .9rem; }
  .panel-body { padding: 1rem .9rem; }
  .location-list { padding-inline: .86rem; }
  .roster-row, .backup-row { padding-inline: .86rem; }
  .location-list > li { grid-template-columns: 1fr; gap: .27rem; }
  .location-info { text-align: left; }
  .coords { justify-content: start; }
  .roster-row { gap: .48rem; }
  .identity-lines { flex-wrap: wrap; gap: .22rem .4rem; }
  .slot-grid { gap: .19rem; padding: .27rem; }
  .count { font-size: .68rem; }
  .inline-form { grid-template-columns: 1fr; }
  .site-footer { flex-wrap: wrap; gap: .4rem; }
  .backup-row { flex-wrap: nowrap; gap: .47rem; }
}
@media (max-width: 560px) {
  .brand-section { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.job-strip { display: flex; align-items: center; gap: .68rem; margin-bottom: 1rem; padding: .72rem .9rem; background: #22362d; border: 1px solid #48624c; border-radius: .48rem; color: #d9edce; font-size: .92rem; }
.inline-form .form-error { grid-column: 1 / -1; }
