/* Generated by scripts/build-styles.mjs. */
/* original-npc-miners.css */
.npc-deploy,.npc-miner-card{border:1px solid var(--line,#b7a78b);background:var(--paper,#fffaf0);padding:1rem;margin-bottom:1.25rem;min-width:0}
.npc-deploy{border-top:3px solid var(--accent,#ed941a)}
:is(.npc-deploy-form,.npc-oil-deploy-form){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:end}
:is(.npc-deploy-form,.npc-oil-deploy-form) label{display:grid;gap:.4rem;min-width:0;font-weight:700}
:is(.npc-deploy-form,.npc-oil-deploy-form) :is(input,select){width:100%;min-width:0;min-height:44px;box-sizing:border-box}
.npc-deploy-note{grid-column:1/-1;margin:0}
:is(.npc-deploy-form,.npc-oil-deploy-form) button{justify-self:start}
.npc-profile-guide{margin:1rem 0}.npc-profile-guide summary,.npc-miner-card summary{cursor:pointer;font-weight:700;min-height:44px;align-content:center}
.npc-profile-guide dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr));gap:1rem}.npc-profile-guide dt{font-weight:700}.npc-profile-guide dd{margin:.35rem 0 0}
.npc-miner-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,25rem),1fr));gap:1rem}
.npc-miner-card{margin:0;overflow-wrap:anywhere}
.npc-miner-heading{display:flex;gap:1rem;align-items:start;justify-content:space-between;flex-wrap:wrap}
.npc-miner-heading h2,.npc-miner-heading p{margin:0 0 .5rem}
.npc-miner-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.npc-miner-stats dt{font-size:.85rem}.npc-miner-stats dd{margin:.25rem 0 0;font-weight:700}
.npc-miner-remove{border-top:1px solid var(--line,#b7a78b);padding-top:.75rem}
.npc-miner-remove summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;font-weight:700;text-decoration:none}
.npc-miner-remove button{max-width:100%;white-space:normal}
@media(max-width:600px){:is(.npc-deploy-form,.npc-oil-deploy-form){grid-template-columns:minmax(0,1fr)}.npc-deploy,.npc-miner-card{padding:.8rem}}

/* original-miners.css */
/* A community showcase, using each miner's public avatar and Meld colour. */
.game-shell #content:has(> .miners-directory) { max-width: none; padding: 0; }
.miners-directory { --directory-gold: #efb85d; --directory-ink: #232921; color: var(--directory-ink); background: #eee6d6; overflow-wrap: anywhere; }
.miners-directory :is(h1,h2,h3,p) { margin: 0; }
.miners-directory :is(a,button,input):focus-visible { outline: 3px solid #a45f13; outline-offset: 4px; }
.miners-directory .eyebrow { color: #79562f; font: 800 .63rem/1.6 Arial,sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.miners-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1fr) 200px; align-items: center; gap: 2rem; padding: clamp(1.4rem,2.4vw,2rem); overflow: hidden; background: #171e19; color: #fff8e9; border-bottom: 5px solid var(--directory-gold); }
.miners-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 95% 0,#b1853333,transparent 58%),linear-gradient(115deg,transparent 58%,#d3aa5320 58.1%,transparent 58.3%),repeating-linear-gradient(0deg,transparent 0 47px,#ffffff04 48px 49px),repeating-linear-gradient(90deg,transparent 0 47px,#ffffff04 48px 49px); }
.miners-hero .eyebrow { color: var(--directory-gold); }
.miners-hero h1 { margin: .35rem 0 .8rem; color: #fff8e9; font: 900 clamp(3.8rem,7vw,5.3rem)/.86 "Arial Narrow",Impact,Arial,sans-serif; letter-spacing: -.025em; text-transform: uppercase; }
.miners-hero h1 > span { color: var(--directory-gold); }
.miners-hero-line { color: #f6dbab; font: italic 1.18rem/1.45 Arial, Helvetica, sans-serif; }
.miners-hero-description { max-width: 48ch; margin-top: .7rem !important; color: #c3c8bc; font-size: .84rem; line-height: 1.65; }
.miners-community-links { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin-top: .9rem; }
.miners-community-links a { display: inline-flex; align-items: center; justify-content: space-between; gap: .7rem; min-height: 44px; color: #fff0d3; font-size: .75rem; font-weight: 700; text-decoration-color: #c9a167; text-underline-offset: 5px; }
.miners-community-links a > span { color: var(--directory-gold); }
.miners-hero :is(a,button):focus-visible { outline-color: #ffd688; }
.miners-hero-collection { display: grid; position: relative; padding: 1.15rem 1.3rem; border: 1px solid #ad894256; background: #151d18b3; box-shadow: 0 15px 35px #0003; }
.miners-hero-art { position: relative; height: 80px; margin-bottom: .35rem; }
.miners-hero-art img { position: absolute; inset: -38px auto auto calc(50% - 60px); width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 8px 13px #0008); transform: rotate(-12deg); }
.miners-hero-orbit { position: absolute; inset: -12px calc(50% - 48px); width: 96px; height: 96px; border: 1px solid #d5aa554d; border-radius: 50%; box-shadow: 0 0 30px #d09b3120,inset 0 0 30px #d09b3110; }
.miners-hero-collection > p { color: #cbc7b9; font: 700 .6rem/1.5 Arial,sans-serif; text-transform: uppercase; letter-spacing: .13em; }
.miners-hero-collection > strong { margin: .2rem 0; color: #ffe1a6; font: 900 3.2rem/1 "Arial Narrow",Impact,Arial,sans-serif; font-variant-numeric: tabular-nums; }
.miners-hero-collection > span { color: #c4c9bd; font-size: .7rem; }
.miners-hero-collection > a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; margin-top: .65rem; border-top: 1px solid #78734d66; color: #ffe1a6; font-size: .72rem; font-weight: 700; }
.miners-roster { padding: clamp(1rem,2.7vw,2.4rem); }
.miners-roster-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.miners-roster-heading h2 { margin: .2rem 0 .45rem; color: var(--directory-ink); font: 900 clamp(1.7rem,3vw,2.3rem)/1.05 "Arial Narrow",Impact,Arial,sans-serif; text-transform: uppercase; letter-spacing: .015em; }
.miners-roster-heading p:not(.eyebrow) { max-width: 45ch; color: #5d6257; font-size: .78rem; line-height: 1.6; }
.miners-result-count { flex: 0 0 auto; padding: .5rem .65rem; color: #575642; border: 1px solid #c0b394; font: 700 .65rem/1.4 Arial,sans-serif; font-variant-numeric: tabular-nums; }
.miners-search { display: flex; align-items: flex-end; gap: .65rem; margin: 0 0 1.4rem; padding: 1rem; border: 1px solid #c3b89f; background: #f6efdf; }
.miners-search label { flex: 1; min-width: 0; margin: 0; color: #3d4337; font-size: .7rem; font-weight: 700; }
.miners-search input { width: 100%; min-width: 0; height: 46px; margin: .4rem 0 0; color: #252b21; border: 1px solid #b5ab94; background: #fffdf6; font-size: .85rem; border-radius: 2px; }
.miners-directory .miners-search button { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 46px; padding: .7rem 1rem; border: 1px solid #292f24; background: #292f24; color: #fff7df; font-size: .73rem; }
.miners-search button > span { color: #efb85d; }
.miners-clear-search { display: flex; align-items: center; min-height: 46px; color: #794b17; font-size: .73rem; font-weight: 700; }
.miners-directory .miner-list { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 1rem; margin: 0; }
.miners-directory .miner-card { position: relative; display: flex; flex-direction: column; align-items: stretch; min-width: 0; gap: 0; padding: 0; background: #fffaf0; border: 1px solid #bdaf92; border-top: 3px solid color-mix(in srgb,var(--miner-chat-color) 60%,#e3c78b); box-shadow: 0 7px 20px #3831240a; transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.miners-directory .miner-card-leading { background: linear-gradient(130deg,#fff8e7,#fffdf6 65%); border-top-color: #c29240; }
.miners-directory .miner-card-self { outline: 1px solid #b98537; outline-offset: 3px; }
.miner-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid #dcd2bd; background: linear-gradient(110deg,#f1eadb,#faf4e8); }
.miners-directory .miner-meld-rank { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-width: 0; align-self: auto; padding: 0; border: 0; background: none; color: #393b2b; text-align: left; }
.miners-directory .miner-rank-number { min-width: 2.8rem; color: #5b562f; font: 900 1.55rem/1 "Arial Narrow",Impact,Arial,sans-serif; letter-spacing: -.025em; }
.miners-directory .miner-meld-total { display: flex; align-items: baseline; gap: .3rem; padding-left: 1rem; border-left: 1px solid #c7bba0; }
.miners-directory .miner-meld-total strong { color: #313a2e; font: 900 1.3rem/1 "Arial Narrow",Impact,Arial,sans-serif; }
.miners-directory .miner-meld-total small { color: #626657; font-size: .56rem; letter-spacing: .06em; }
.miner-self-label { padding: .25rem .5rem; border: 1px solid #b79147; color: #715017; background: #f8e7bd; font: 800 .58rem/1.4 Arial,sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.miner-card-mark { color: #9e8248; font-size: 1.2rem; }
.miner-card-identity { display: grid; grid-template-columns: 68px minmax(0,1fr); align-items: center; gap: .9rem; margin: 1.15rem 1rem .9rem; }
.miner-portrait { display: grid; position: relative; place-items: center; width: 68px; height: 68px; overflow: hidden; border: 1px solid #96805b; border-radius: 50%; color: #eadaaf; background: radial-gradient(circle at 25% 15%,color-mix(in srgb,var(--miner-chat-color) 45%,#4b543b),#1b251d 80%); box-shadow: 0 0 0 3px #f5eddb,0 0 0 4px #c9b68d; }
.miners-directory .miner-portrait .avatar-stack { width: 100%; height: 100%; border: 0; background: none; }
.miner-monogram { font: 500 1.65rem/1 Arial, Helvetica, sans-serif; letter-spacing: -.06em; text-shadow: 0 2px 4px #0008; }
.miners-directory .miner-card-copy { margin: 0; }
.miners-directory .miner-card h3 { margin: 0 0 .3rem; font: 800 1.08rem/1.2 Arial,sans-serif; overflow-wrap: anywhere; }
.miners-directory .miner-card h3 a { color: #2d402d; }
.miners-directory .miner-location { color: #59634f; font-size: .72rem; line-height: 1.5; }
.miners-directory .miner-since { margin-top: .25rem; color: #78735f; font-size: .6rem; line-height: 1.5; }
.miners-directory .miner-card-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.9em; margin: 0 1rem 1rem; color: #595e51; font-size: .76rem; line-height: 1.5; }
.miners-directory .miner-actions { display: flex; align-items: center; margin-top: auto; padding: .25rem 1rem; border-top: 1px solid #e3dac6; background: #f6f0e3; }
.miners-directory .miner-avatar-edit { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .15rem; color: #6d6553; font-size: .64rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.miners-directory .miner-avatar-edit:hover { color: #704211; }
.miners-directory .miners-empty { grid-column: 1 / -1; padding: 2.5rem 1rem; border: 1px dashed #bcaa85; background: #f6efdf; text-align: center; }
.miners-empty > span { display: block; margin-bottom: .7rem; color: #a17e39; font-size: 2rem; }
.miners-empty h3 { color: #3e4735; font: 900 1.6rem/1.2 "Arial Narrow",Impact,Arial,sans-serif; text-transform: uppercase; }
.miners-empty p { margin: .75rem auto 1rem; color: #676451; font-size: .8rem; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .miners-directory .miner-card:hover { transform: translateY(-3px); border-color: #a1834a; box-shadow: 0 13px 27px #3831241c; }
}
@media (max-width: 700px) {
  .miners-hero { grid-template-columns: minmax(0,1fr); gap: 1.25rem; padding: 1.4rem 1.1rem; }
  .miners-hero h1 { font-size: clamp(3.8rem,16vw,5rem); }
  .miners-hero-line { font-size: 1.03rem; }
  .miners-hero-collection { grid-template-columns: 78px 1fr; column-gap: 1rem; padding: .75rem 1rem; }
  .miners-hero-art { grid-column: 1; grid-row: 1 / 5; align-self: center; height: 76px; margin: 0; }
  .miners-hero-art img { inset: -15px auto auto calc(50% - 53px); width: 106px; height: 106px; }
  .miners-hero-orbit { inset: 0 calc(50% - 38px); width: 76px; height: 76px; }
  .miners-hero-collection > strong { font-size: 2.15rem; }
  .miners-hero-collection > a { margin-top: .45rem; }
  .miners-roster { padding: 1.3rem 1rem; }
  .miners-roster-heading { flex-wrap: wrap; gap: .65rem; }
  .miners-search { flex-wrap: wrap; gap: .55rem; padding: .75rem; }
  .miners-search label { flex-basis: 100%; }
  .miners-search button { flex: 1; }
  .miners-clear-search { padding: 0 .3rem; }
}
@media (max-width: 450px) {
  .miners-hero { gap: 1rem; padding: 1rem; }
  .miners-hero-collection { display: flex; align-items: center; gap: .6rem; padding: .4rem .65rem; }
  .miners-hero-art, .miners-hero-collection > p { display: none; }
  .miners-hero-collection > span { font-size: .6rem; }
  .miners-hero-collection > strong { font-size: 1.8rem; }
  .miners-hero-collection > a { margin: 0 0 0 auto; padding: 0; border: 0; font-size: .65rem; }
  .miners-roster-heading .eyebrow { display: none; }
  .miners-roster { padding: 1rem; }
}
@media (prefers-reduced-motion:reduce) {
  .miners-directory .miner-card { transition: none; }
}

/* original-miner-profile.css */
/* Profile layout shares page typography, controls and facts. */
.miner-profile{overflow-wrap:anywhere}
.miner-profile :is(section,form,header)[id]{scroll-margin-top:16px}
.profile-summary{display:grid;grid-template-columns:160px minmax(0,1fr);gap:20px;align-items:center;margin:16px 0}
.profile-summary-details{min-width:0}
.profile-portrait{min-width:0}
.profile-portrait>.avatar-stack,.profile-portrait>.npc-character-portrait,.profile-monogram{display:block;width:100%;height:auto;aspect-ratio:1}
.profile-portrait>p{margin:8px 0;font-size:12px}
.profile-monogram{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--line)}
.profile-monogram>span{font-size:40px}
.profile-monogram>small{font-size:12px}
.profile-specialisation{font-size:18px}
.profile-established{line-height:1.6}
.miner-profile .profile-tools{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.game-body #content .profile-normalized .profile-tools{display:flex;flex-wrap:wrap;align-items:start}
.game-body #content .profile-normalized .profile-tools .profile-action{width:auto}
.profile-jumps{display:flex;flex-wrap:wrap;gap:8px 20px;border-bottom:1px solid var(--line);padding:8px 0;margin-bottom:20px}
.profile-jumps a{display:inline-flex;align-items:center;min-height:44px}
.profile-body{display:grid;gap:24px}
.profile-story-grid,.profile-owner-panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:24px;align-items:start}
.profile-section-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.profile-mine-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px;list-style:none;padding:0}
.profile-mine-grid>li{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line)}
.profile-mine-grid .table-icon{width:44px;height:44px;object-fit:contain}
.profile-mine-grid :is(strong,span){display:block}
.game-body #content .profile-normalized .profile-inventory-filter{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:0;margin:16px 0}
.game-body #content .profile-normalized :is(input,select,textarea){border-width:1px;border-radius:0}
.profile-inventory-filter label:not(.checkbox-line){flex:1 1 180px;min-width:0}
.profile-inventory-filter select{display:block;width:100%;min-width:0;margin-top:8px}
.profile-normalized :is(.profile-editor,.profile-referral){min-width:0}
.profile-normalized :is(.profile-editor,.profile-referral) label:not(.checkbox-line){display:block;margin:12px 0}
.profile-normalized :is(textarea,input[type=url]){width:100%;min-width:0;margin-top:8px}
.profile-description{white-space:pre-wrap}
.profile-council>div{display:flex;gap:12px;align-items:start}
.profile-council>div>div{min-width:0}
.profile-normalized .item-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
@media(max-width:700px){.profile-summary{grid-template-columns:88px minmax(0,1fr);gap:12px}.profile-normalized .profile-tools{display:flex;grid-template-columns:none}.profile-normalized .profile-action{width:auto}.profile-specialisation{font-size:16px}}

/* original-recycling.css */

.recycle-form { flex: 1 1 10rem; }
.inventory-item-card .recycle-all-form { flex: 0 0 auto; }
.inventory-recycle-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .75rem; width: 100%; min-width: 0; }
.inventory-recycle-controls form { margin: 0; }
.inventory-recycle-preference .checkbox-line { min-height: 44px; margin: 0; line-height: 1.3; cursor: pointer; }
.inventory-region-list { display: grid; gap: 1.4rem; }
.inventory-region { padding: 1rem; background: rgba(255,255,255,.38); border: 1px solid var(--line); }
.inventory-region > header, .inventory-city > header { display: flex; min-height: 0; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; padding: 0 0 .7rem; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); }
.inventory-region > header h2, .inventory-city > header h3, .inventory-region > header p, .inventory-city > header p { margin: 0; }
.inventory-region > header > p, .inventory-city > header > p { color: var(--muted); }
.inventory-city { margin-top: 1rem; padding: .85rem; background: rgba(255,255,255,.52); border-left: 4px solid var(--line); }
.inventory-city.current { border-left-color: var(--gold); }
.inventory-city > header form { margin: 0; }
.inventory-city > .item-grid { margin-top: .8rem; }
.inventory-item-remote { opacity: .88; }
.inventory-list-form { display: flex; align-items: end; gap: .35rem; }
.inventory-list-form label { display: flex; flex: 1; flex-direction: column; gap: .15rem; margin: 0; }
.inventory-list-form input { width: 100%; margin: 0; padding: .65rem; }
.inventory-list-all-form { display: flex; align-items: end; }
.inventory-meld-form { display: flex; align-items: end; }
.recycle-form { display: flex; gap: .35rem; }
.recycle-form input { width: 4.5rem; margin: 0; padding: .65rem; }
.recycle-all-form { display: flex; }
.capacity-warning { padding: 1rem; color: #6f251b; background: #fff0df; border: 1px solid #c98645; }
.auto-recycle-list { display: grid; gap: .55rem; margin: 1rem 0; }
.auto-recycle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.auto-recycle-row img { width: 38px; height: 38px; object-fit: contain; }
.auto-recycle-row small { display: block; color: var(--muted); }
.auto-recycle-row .item-card-actions { justify-content: flex-start; }
.auto-recycle-choice { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; }
.auto-recycle-choice label { margin: 0; }
.auto-recycle-choice .checkbox-line { align-self: center; }
.auto-recycle-choice label:last-child { display: grid; gap: .2rem; color: var(--muted); font-size: .72rem; font-weight: bold; text-transform: uppercase; }
.auto-recycle-choice input[type="number"] { width: 6rem; margin: 0; padding: .55rem; }
.auto-recycle-form > button { position: sticky; bottom: .75rem; z-index: 2; width: 100%; padding: .9rem; box-shadow: 0 4px 12px rgba(0,0,0,.18); }

/* original-recycling-settings.css */
.recycling-settings-page section { margin-block-end: 1.5rem; }
.recycling-settings-filter, .recycling-rule-actions { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; margin-block: 1rem; }
.recycling-settings-filter label { display: flex; flex: 1 1 14rem; flex-direction: column; gap: .35rem; min-width: 0; font-weight: 700; }
.recycling-settings-filter :is(input, select) { width: 100%; min-width: 0; box-sizing: border-box; }
.recycling-settings-filter > .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.recycling-rule-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .75rem; }
.recycling-settings-page .recycle-setting-item { min-width: 0; margin: 0; }
.recycling-settings-page .recycling-rule-list > .item-card { grid-template-columns: minmax(0, 1fr); align-content: start; }
.recycling-settings-page .recycling-rule-list .item-card-actions { display: block; min-width: 0; }
.recycle-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
#content .recycling-settings-page .checkbox-line { display: flex; align-items: center; gap: .65rem; min-height: 44px; margin: 0; font-weight: 700; cursor: pointer; }
#content .recycling-settings-page input[type="checkbox"] { flex: 0 0 auto; width: 20px; min-height: 20px; margin: 0; }


/* original-transport-shops.css */
.transport-shop-roster,.transport-shop-stock{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:.8rem}
.transport-shop-vehicle,.transport-shop-offer{min-width:0;padding:.8rem;border:1px solid var(--line,#b9ac91);background:var(--paper,#fffaf0)}
.transport-shop-vehicle{display:flex;flex-direction:column;justify-content:space-between;gap:.7rem}
.transport-shop-offer{display:flex;flex-direction:column;gap:.65rem}
.transport-shop-offer .item-card{flex:1}
.transport-shop-price{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.35rem}
.transport-shop-price span{font-size:.8rem;color:#625747}
.transport-shop-offer form{display:flex;gap:.7rem;align-items:end;margin:auto 0 0}
.transport-shop-offer label{flex:1;min-width:0;margin:0}
.transport-shop-offer input{display:block;width:100%;min-height:44px;box-sizing:border-box}
.transport-shop-offer button{flex:0 0 auto;min-width:74px;min-height:44px}
.transport-shop-category{margin-block:1.2rem}
.transport-shop-vehicle .button{max-width:100%;white-space:normal}

/* original-loadouts.css */
.vehicle-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: center; gap: 1.2rem; padding: 1.2rem; background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.vehicle-hero > :is(.item-card, div, p) { min-width: 0; }
.vehicle-hero > img { width: 72px; height: 72px; object-fit: contain; }
.vehicle-hero .item-card-featured .item-card-link { grid-template-columns: 76px minmax(0, 1fr); }
.vehicle-hero .item-card-featured .item-card-art { width: 76px; height: 96px; background-image: none; }
.vehicle-hero-compact { padding: .75rem; }
.vehicle-hero.vehicle-hero-compact > .item-card { min-height: 58px; }
.vehicle-hero-compact p { margin: 0; }
.combat-stat-board { margin-top: .75rem; padding: .7rem; color: #f8f0dc; background: #1b211d; border-left: 5px solid var(--gold); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.combat-stat-board > header { display: flex; min-height: 0; align-items: baseline; justify-content: space-between; gap: .8rem; padding: 0 .1rem .6rem; color: inherit; background: none; border: 0; }
.combat-stat-board > header strong { color: #fff7e6; font: 900 .76rem/1 Arial, sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.combat-stat-board > header span { color: #aab1a8; font-size: .7rem; }
.vehicle-loadout .combat-stat-board > dl,
.loadout-preview .combat-stat-board > dl { display: grid; grid-template-columns: repeat(5, minmax(90px, 1fr)); gap: 2px; margin: 0; }
.vehicle-loadout .combat-stat-board > dl > div,
.loadout-preview .combat-stat-board > dl > div { --combat-stat-color: #f39a18; min-width: 0; padding: .7rem .65rem .65rem; background: #292f2a; border: 0; border-top: 3px solid var(--combat-stat-color); }
.combat-stat-board [data-combat-stat="armor"] { --combat-stat-color: #96b1b7; }
.combat-stat-board [data-combat-stat="offense"] { --combat-stat-color: #d86c4d; }
.combat-stat-board [data-combat-stat="defense"] { --combat-stat-color: #83ad6b; }
.combat-stat-board [data-combat-stat="dodge"] { --combat-stat-color: #d5bd62; }
.vehicle-loadout .combat-stat-board dt,
.loadout-preview .combat-stat-board dt { color: #c2c8c0; font: 800 .62rem/1 Arial, sans-serif; letter-spacing: .055em; text-transform: uppercase; }
.vehicle-loadout .combat-stat-board dd,
.loadout-preview .combat-stat-board dd { display: grid; gap: .26rem; margin: .4rem 0 0; }
.combat-stat-board dd strong { color: var(--combat-stat-color); font: 900 1.45rem/.9 "Arial Narrow", Impact, Arial, sans-serif; font-variant-numeric: tabular-nums; }
.combat-stat-board dd small { color: #929a91; font: normal .6rem/1.2 Arial, sans-serif; }
.capacity-budget { margin: .8rem 0 1rem; padding: .85rem; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-left: 5px solid var(--green); }
.capacity-budget.capacity-over { border-left-color: #a85c42; background: rgba(250,231,221,.88); }
.capacity-budget > header { display: flex; min-height: 0; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0 0 .55rem; color: inherit; background: none; border: 0; }
.capacity-budget h3, .capacity-budget header strong { margin: 0; }
.capacity-budget header strong { color: var(--green); font-size: 1.05rem; }
.capacity-over header strong { color: #8d372d; }
.capacity-budget dl { display: grid; grid-template-columns: repeat(7, minmax(72px, 1fr)); gap: .35rem; margin: 0; }
.capacity-budget dl div { min-width: 0; padding: .5rem .55rem; background: rgba(247,239,216,.72); border-left: 0; }
.capacity-budget dt { color: var(--muted); font: bold .66rem Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.capacity-budget dd { margin: .16rem 0 0; font-weight: bold; overflow-wrap: anywhere; }
.capacity-budget .capacity-total { background: rgba(229,216,178,.75); }
/* Vehicle and ship fitting workbench. */
.vehicle-workshop { min-width: 0; }
.vehicle-workshop [hidden] { display: none !important; }
.vehicle-workshop .page-title { margin-bottom: .7rem; }
.loadout-navigation { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.loadout-navigation .button { min-height: 44px; padding: .65rem .85rem; }
.loadout-navigation a[aria-current] { box-shadow: inset 0 -3px #a55b08; }
.vehicle-page-section { scroll-margin-top: 6rem; }
.vehicle-workshop .vehicle-hero { margin: .6rem 0 1rem; padding: .7rem; }
.vehicle-workshop .vehicle-hero p { margin: .25rem 0; font-size: .86rem; }
.workshop-overview { padding: 1rem; background: #fffbf2; border: 1px solid var(--line); }
.loadout-section-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; margin-bottom: .65rem; }
.loadout-section-title h2 { margin: 0; }
.loadout-section-title > span { color: #5c5e50; font-size: .8rem; }
.loadout-capacity-title { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.loadout-capacity-title b { font-size: 1.15rem; }
.loadout-capacity-track { display: flex; overflow: hidden; height: .65rem; margin: .6rem 0; background: #e3decf; }
.loadout-capacity-track span + span { border-left: 2px solid #fffaf0; }
.loadout-capacity-key { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0; padding: 0; list-style: none; font-size: .78rem; }
.loadout-capacity-key li { display: flex; align-items: center; gap: .35rem; }
.loadout-capacity-key i { width: .6rem; height: .6rem; }
.capacity-fittings { background: #a57536; }
.capacity-ammunition { background: #5b7483; }
.capacity-cargo { background: #8c6f8e; }
.capacity-free { background: #a6b891; }
.loadout-capacity.is-over { color: #9b3724; }
.vehicle-workshop .combat-stat-board { margin-top: .85rem; }
.vehicle-workshop .combat-stat-board dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .3rem; margin: 0; }
.vehicle-workshop .combat-stat-board dl > div { padding: .65rem; background: #292f2a; }
.vehicle-workshop .combat-stat-board dt { font: 700 .65rem Arial, sans-serif; color: #c2c8c0; }
.vehicle-workshop .combat-stat-board dd { display: grid; gap: .4rem; margin: .5rem 0 0; }
.loadout-capacity-detail { margin-top: .7rem; font-size: .78rem; }
.loadout-capacity-detail summary, .fitting-all-effects summary { cursor: pointer; }
.fitting-all-effects { margin-top: .5rem; font-size: .74rem; }
.fitting-all-effects .mod-effects li span { min-width: 7rem; }
.workshop-ship-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); }
.workshop-ship-stats dt { color: #666653; font-size: .75rem; }
.workshop-ship-stats dd { margin: .25rem 0 0; font-weight: 700; font-size: .88rem; }
.vehicle-workshop .vehicle-fittings { margin-top: 1.5rem; }
.vehicle-workshop .vehicle-fittings > p { max-width: 75ch; font-size: .9rem; }
.loadout-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(11rem, .5fr) auto; gap: .75rem; align-items: end; margin: 1rem 0; padding: .8rem; background: #ded7c5; }
.loadout-tools label { margin: 0; font-size: .8rem; }
.loadout-tools input, .loadout-tools select { width: 100%; margin: .3rem 0 0; }
.loadout-tools [role="status"] { align-self: center; color: #585b50; font-size: .75rem; }
.loadout-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1.1rem; align-items: start; }
.loadout-choices, .loadout-review-column { min-width: 0; }
.loadout-choices > section + section { margin-top: 1.6rem; }
.vehicle-workshop .fitting-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); align-items: stretch; gap: .7rem; }
.fitting-option { min-width: 0; background: #fffcf5; border: 1px solid #bdb29a; border-left: 4px solid #bdb29a; }
.fitting-option.is-selected { background: #f4f8ec; border-color: #648052; }
.fitting-option.is-changed { border-left-color: #d68c18; }
.vehicle-workshop .fitting-item { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: stretch; gap: .7rem; padding: .7rem; border: 0; background: transparent; box-shadow: none; }
.vehicle-workshop .fitting-item .item-card-link { min-height: 48px; }
.vehicle-workshop .fitting-item .item-card-copy strong { font-size: .95rem; }
.vehicle-workshop .fitting-item .item-card-copy small { line-height: 1.5; }
.vehicle-workshop .fitting-item .item-card-details { flex: 1; }
.vehicle-workshop .fitting-item .item-card-actions { display: block; }
.fitting-effects { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.fitting-effects li { display: flex; gap: .45rem; padding: .3rem .4rem; background: #ece6d7; font-size: .76rem; }
.fitting-effects strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fitting-note { margin: .55rem 0 0; color: #626350; font-size: .76rem; line-height: 1.4; }
.fitting-control { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .4rem; border-top: 1px solid #d1ccba; padding-top: .6rem; }
.vehicle-workshop .fitting-control label { min-width: 0; margin: 0; font-size: .75rem; }
.fitting-control label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: .4rem; min-height: 44px; cursor: pointer; }
.fitting-control input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: #547440; }
.vehicle-workshop .fitting-control input[type="number"] { width: 4rem; max-width: 100%; min-height: 44px; margin: .25rem 0 0; padding: .3rem; text-align: center; }
.fitting-stepper { display: flex; margin-top: .25rem; }
.vehicle-workshop .fitting-stepper input[type="number"] { margin: 0; border-left: 0; border-right: 0; border-radius: 0; appearance: textfield; -moz-appearance: textfield; }
.fitting-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.fitting-stepper button { width: 44px; min-height: 44px; padding: .3rem; font: 700 1.15rem Arial, sans-serif; }
.fitting-state { padding: .3rem .4rem; color: #575c4d; font-size: .72rem; font-weight: 700; }
.is-selected .fitting-state { color: #3d5e29; background: #e2ead7; }
.is-changed .fitting-state { color: #70430b; background: #fae3b7; }
.loadout-review-column { position: sticky; top: 1rem; }
.vehicle-workshop .loadout-preview, .loadout-review-intro { margin: 0; padding: 1rem; background: #faf7ee; border: 1px solid var(--line); border-top: 4px solid #a47a39; box-shadow: none; }
.vehicle-workshop .loadout-preview.preview-valid { border-top-color: #648052; background: #f1f6e9; }
.vehicle-workshop .loadout-preview.preview-invalid { border-top-color: #a85c42; background: #fff1e8; }
.vehicle-workshop .loadout-preview h2, .loadout-review-intro h2 { font-size: 1rem; margin: .4rem 0; }
.vehicle-workshop .preview-verdict, .loadout-review-intro p { font-size: .83rem; line-height: 1.45; font-weight: 400; }
.vehicle-workshop .loadout-preview > dl { display: grid; grid-template-columns: 1fr; gap: .4rem; margin: .8rem 0; }
.vehicle-workshop .loadout-preview > dl > div { padding: .45rem; }
.vehicle-workshop .loadout-preview dd, .loadout-review-intro dd { margin: .2rem 0 .6rem; font-size: .82rem; font-weight: 700; }
.loadout-review-intro dt { font-size: .78rem; }
.vehicle-workshop .loadout-comparison { width: 100%; margin: .8rem 0; font-size: .76rem; }
.loadout-comparison caption { color: #ff9700; text-align: left; padding-bottom: .4rem; font-weight: 700; }
.vehicle-workshop .loadout-comparison :is(th, td) { padding: .45rem .3rem; font-size: inherit; }
.vehicle-workshop .loadout-comparison thead th { background: #dddccc; color: #333d2d; letter-spacing: 0; text-transform: none; }
.loadout-comparison :is(th, td):not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.vehicle-workshop .loadout-comparison tbody th { font-weight: 400; color: #414934; background: none; text-transform: none; letter-spacing: 0; }
.loadout-comparison .has-change { background: #f8e8c6; }
.loadout-comparison .has-change td:last-child { font-weight: 700; }
.loadout-changes { padding-left: 1.1rem; font-size: .8rem; overflow-wrap: anywhere; }
.loadout-changes li + li { margin-top: .4rem; }
.vehicle-workshop .loadout-preview .capacity-warning { padding-left: 1.1rem; font-size: .82rem; }
.vehicle-workshop .loadout-actions { justify-content: space-between; padding: .8rem; color: #eee9db; background: #242c24; border-top: 3px solid var(--brand-orange); box-shadow: 0 -3px 12px #28281924; }
.loadout-actions > p { flex: 1 1 14rem; margin: 0; color: #ece7d5; font-size: .8rem; line-height: 1.4; }
.loadout-actions .button-row { flex: 1 1 auto; justify-content: flex-end; }
.loadout-actions .text-link { color: #eee2c4; font-size: .78rem; }
.loadout-empty { padding: 1rem; background: #f4efdf; border: 1px dashed #b9ac93; color: #62604f; }
.loadout-installed { margin: .75rem 0 1rem; padding: .7rem; border: 1px solid #bdb29a; background: #f8f2e3; font-size: .85rem; }
.loadout-installed summary { cursor: pointer; font-weight: 700; min-height: 24px; }
.loadout-ammunition { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 2px solid #b8ac92; scroll-margin-top: 1rem; }
.ship-ammo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.vehicle-workshop .ship-ammo-card { display: flex; flex-direction: column; align-items: stretch; gap: .7rem; padding: .8rem; background: #fffaf0; }
.ship-ammo-card .item-card-actions { display: block; margin-top: auto; }
.ship-ammo-card .ammo-role { display: grid; gap: .3rem; padding-block: .6rem; border-block: 1px solid var(--line); font-size: .82rem; }
.ammo-role span { color: #646452; font-size: .76rem; }
.ammo-aboard { margin: .8rem 0; font-size: .85rem; }
.ammo-aboard b { font-size: 1.5rem; }
.ammo-unavailable { color: #855826; font-size: .8rem; }
.ship-ammo-card form { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; }
.ship-ammo-card form label { flex: 1 1 5rem; margin: 0; font-size: .76rem; }
.ship-ammo-card form input { width: 100%; max-width: 7rem; min-height: 44px; margin: .3rem 0 0; }
.ship-ammo-card form button { min-height: 44px; }
.ship-ammo-card [data-ammo-result] { flex-basis: 100%; margin: .2rem 0 0; }
.vehicle-workshop .ammo-unload { border: 0; background: none; padding: .5rem 0 0; }
@media (max-width: 1200px) {
  .loadout-workbench { grid-template-columns: minmax(0, 1fr); }
  .loadout-review-column { position: static; }
  .loadout-review-column:has(.loadout-preview) { grid-row: 1; }
  .loadout-review-intro { display: none; }
  .loadout-tools { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); }
  .loadout-tools [role="status"] { grid-column: 1 / -1; }
  .ship-ammo-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .loadout-navigation .button { padding: .6rem; }
  .vehicle-workshop .combat-stat-board dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workshop-ship-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loadout-tools { grid-template-columns: minmax(0, 1fr); }
  .loadout-actions .button-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: .5rem; }
  .loadout-actions .button-row button { min-height: 44px; padding: .5rem .3rem; font-size: .7rem; }
  .loadout-actions .commit-loadout { grid-column: 1 / -1; }
  .loadout-review-column:has(.loadout-preview) { grid-row: 1; }
}
@media (max-width: 760px) {
  .vehicle-workshop .vehicle-hero > :is(.item-card, div) { flex: none; width: 100%; min-height: 0; box-sizing: border-box; }
}

/* original-vehicle-inspection.css */
/* One inspection sheet for owned transports, visible NPCs and battle snapshots. */
.vehicle-inspection { margin: 1.2rem 0; padding: clamp(.85rem, 2vw, 1.4rem); border: 1px solid #b9a98a; border-top: 3px solid #907044; background: #fffaf0; color: #372f24; scroll-margin-top: 6rem; }
.inspection-heading { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid #d9cbb2; padding-bottom: .85rem; margin-bottom: .85rem; }
.inspection-heading > img, .inspection-heading > .spectral-transport { width: 64px; height: 64px; object-fit: contain; flex: 0 0 64px; }
.inspection-heading > .spectral-transport { background: #171a18; border-radius: .4rem; }
.inspection-heading .spectral-transport img { width: 100%; height: 100%; object-fit: contain; }
.inspection-heading > div { min-width: 0; }
.inspection-heading h3 { margin: .15rem 0 .3rem; font-size: 1.45rem; overflow-wrap: anywhere; }
.inspection-heading p { margin: 0; }
.vehicle-inspection .inspection-heading h3, .vehicle-inspection .inspection-sections h4 { color: #372f24; }
.vehicle-inspection .eyebrow { color: #71572f; }
.inspection-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: .5rem; margin: .75rem 0; }
.inspection-stats > div { min-width: 0; padding: .6rem .7rem; background: #f0e7d5; border-left: 2px solid #d2b778; }
.inspection-stats dt { font-size: .75rem; color: #655a47; margin-bottom: .2rem; }
.inspection-stats dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.inspection-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.inspection-sections > section { min-width: 0; padding-top: .75rem; border-top: 1px solid #dfd4c0; }
.inspection-sections h4 { margin: 0 0 .6rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.inspection-equipment { list-style: none; margin: 0; padding: 0; }
.inspection-equipment li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px dotted #dfd4c0; }
.inspection-equipment li > img { width: 38px; height: 38px; flex: 0 0 38px; object-fit: contain; }
.inspection-equipment li > div { min-width: 0; overflow-wrap: anywhere; }
.inspection-equipment small { display: block; color: #655a47; margin-top: .2rem; line-height: 1.5; }
.inspection-cargo, .battle-inspections { margin-top: 1rem; border-top: 1px solid #d9cbb2; padding-top: .5rem; }
.inspection-cargo > summary, .battle-inspections > summary { cursor: pointer; padding: .7rem .2rem; font-weight: 700; }
@media (max-width: 760px) {
  .inspection-pair, .inspection-sections { grid-template-columns: 1fr; }
  .inspection-heading > img, .inspection-heading > .spectral-transport { width: 48px; height: 48px; flex-basis: 48px; }
  .inspection-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* original-vehicle-pages.css */
.cargo-loadout-table input[type="number"] { width: 6.5rem; margin: 0; }
.cargo-loadout-table .item-card { min-width: 0; }
.vehicle-send-panel { margin-top: .8rem; padding: 1rem; border: 1px solid var(--line); background: var(--surface); }
.vehicle-send-panel > h2 { margin-top: 0; }
.vehicle-stance-panel { margin-top: .8rem; padding: 1rem; border: 1px solid #9b7442; background: #fff8e8; }
.vehicle-stance-panel > h2 { margin-top: .2rem; }
.vehicle-stance-panel > p:last-child { margin-bottom: 0; }
.vehicle-stance-panel.is-locked { border-color: var(--line); background: var(--surface); }
.inline-order { display: flex; gap: .4rem; justify-content: end; }
.inline-order input { width: 5rem; margin: 0; padding: .65rem; }
.vehicle-deactivate-form { display: flex; align-items: center; gap: .4rem; margin: 0; }
.vehicle-deactivate-control { display: inline-flex; align-items: stretch; color: #fff; background: #3d423e; }
.vehicle-deactivate-control > button { margin: 0; }
.vehicle-deactivate-all { display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .4rem .65rem; color: inherit; border-left: 1px solid rgba(255,255,255,.25); cursor: pointer; font: bold .78rem Arial, sans-serif; }
.vehicle-deactivate-all span { opacity: 1; }
.vehicle-deactivate-all input { width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; accent-color: var(--gold); }
.vehicle-deactivate-control:has(button:disabled) { opacity: .35; }
.vehicle-deactivate-control > button:disabled { opacity: 1; }
.vehicle-deactivate-all:has(input:disabled) { cursor: not-allowed; }
.vehicle-deactivate-form-detailed { flex-wrap: wrap; margin: 1rem 0; }
.vehicle-deactivate-form-detailed > p { flex: 1 0 100%; margin: 0 0 .2rem; }
@media (max-width:760px) {
  .cargo-loadout-table { display: table !important; overflow: visible !important; background: none; }
  .cargo-loadout-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .cargo-loadout-table tbody, .cargo-loadout-table tr, .cargo-loadout-table td { display: block; width: 100%; }
  .cargo-loadout-table tr { margin-bottom: .65rem; padding: .55rem; background: rgba(255,255,255,.72); border: 1px solid var(--line); }
  .cargo-loadout-table td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; gap: .55rem; padding: .42rem; border: 0; }
  .cargo-loadout-table td::before { content: attr(data-label); color: var(--muted); font: bold .68rem Arial, sans-serif; text-transform: uppercase; }
  .cargo-loadout-table input[type="number"] { width: 100%; }
}

/* original-vehicle-comparison.css */
.vehicle-comparison-intro { max-width: 78rem; }
.vehicle-comparison-groups { display: grid; gap: 1.5rem; margin-top: 1.1rem; }
.vehicle-comparison-group { min-width: 0; }
.vehicle-comparison-group h2 { display: flex; align-items: baseline; gap: .4rem; margin: 0 0 .55rem; }
.vehicle-comparison-group h2 small { color: var(--muted); font-size: .72em; }
.vehicle-comparison-table { width: 100%; table-layout: fixed; font-size: .74rem; }
.vehicle-comparison-table th, .vehicle-comparison-table td { min-width: 0; padding: .55rem .38rem; vertical-align: top; overflow-wrap: anywhere; }
.vehicle-comparison-table thead th { white-space: normal; }
.vehicle-comparison-table .vehicle-comparison-sort { display: inline-flex; align-items: center; gap: .28rem; min-height: 0; padding: 0; border: 0; color: inherit; background: transparent; box-shadow: none; font: inherit; letter-spacing: inherit; text-align: left; text-transform: inherit; cursor: pointer; }
.vehicle-comparison-table .vehicle-comparison-sort:hover, .vehicle-comparison-table .vehicle-comparison-sort:focus-visible { color: var(--orange); background: transparent; text-decoration: underline; }
.vehicle-comparison-table [data-sort-indicator] { font-size: .9rem; line-height: 1; }
.vehicle-comparison-table th:first-child { width: 17%; }
.vehicle-comparison-table th:nth-last-child(2) { width: 18%; }
.vehicle-comparison-table th:last-child { width: 6.2rem; }
.vehicle-comparison-table small { display: block; margin-top: .25rem; color: var(--muted); font-weight: 400; line-height: 1.35; white-space: normal; }
.vehicle-comparison-table ul { min-width: 0; margin: 0; padding-left: 1rem; }
.vehicle-comparison-table li + li { margin-top: .22rem; }
.vehicle-comparison-name .thing-link { display: flex; align-items: center; gap: .55rem; }
.vehicle-comparison-name .thing-link span { min-width: 0; }
.vehicle-comparison-number { font-variant-numeric: tabular-nums; }
.vehicle-comparison-action .button { width: 100%; padding: .55rem .35rem; text-align: center; }
.stored-vehicle-grid .item-card { grid-template-columns: minmax(0, 1fr); align-content: start; }
.stored-vehicle-grid .item-card-actions { min-width: 0; justify-content: flex-start; }
.stored-vehicle-grid .item-card-actions form { display: grid; width: 100%; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .55rem .75rem; }
.stored-vehicle-grid .item-card-actions button { align-self: start; justify-self: start; }
.stored-vehicle-notices { display: grid; min-width: 0; gap: .4rem; }
.stored-vehicle-grid .item-card-actions small { min-width: 0; margin: 0; line-height: 1.35; overflow-wrap: break-word; }
.stored-vehicle-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.stored-vehicle-heading h2, .stored-vehicle-heading p { margin: 0; }
.stored-vehicle-heading p { margin-top: .25rem; color: var(--muted); }
.stored-vehicle-heading form { flex: 0 0 auto; }

.vehicle-comparison-table .table-icon { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; }

@media (max-width: 760px) {
  .vehicle-comparison-table, .vehicle-comparison-table tbody,
  .vehicle-comparison-table tr { display: block; width: 100%; }
  .vehicle-comparison-table thead { display: block; width: 100%; margin-bottom: .45rem; }
  .vehicle-comparison-table thead tr { display: flex; flex-wrap: wrap; gap: .3rem; }
  .vehicle-comparison-table thead th { display: none; }
  .vehicle-comparison-table thead th[data-sort-type] { display: block; width: auto; padding: 0; border: 0; }
  .vehicle-comparison-table thead .vehicle-comparison-sort { padding: .38rem .48rem; border: 1px solid var(--line); background: rgba(255,255,255,.62); }
  .vehicle-comparison-table tbody tr { margin-bottom: .7rem; padding: .35rem; background: rgba(255,255,255,.72); border: 1px solid var(--line); }
  .vehicle-comparison-table th, .vehicle-comparison-table td,
  .vehicle-comparison-table th:first-child,
  .vehicle-comparison-table th:nth-last-child(2),
  .vehicle-comparison-table th:last-child { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); align-items: start; gap: .5rem; width: 100%; padding: .45rem; border: 0; border-bottom: 1px solid rgba(68,57,39,.12); }
  .vehicle-comparison-table tr > :last-child { border-bottom: 0; }
  .vehicle-comparison-table tbody th::before, .vehicle-comparison-table tbody td::before { content: attr(data-label); color: var(--muted); font: bold .65rem Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
  .vehicle-comparison-action .button { width: auto; justify-self: start; }
}

/* journeys.css */

.vehicle-shuttle-form { display: grid; gap: .8rem; }

.vehicle-shuttle-form > label { margin: 0; }

.vehicle-shuttle-form fieldset { min-width: 0; margin: 0; padding: .75rem; border: 1px solid var(--line); }

.vehicle-shuttle-form fieldset legend { padding: 0 .3rem; font-weight: bold; }

.vehicle-shuttle-form fieldset > p { margin: 0 0 .65rem; color: var(--muted); }

.vehicle-shuttle-category-actions { justify-content: flex-end; margin: 0 0 .7rem; }

.vehicle-shuttle-category-actions button { min-height: 36px; padding: .5rem .75rem; }

.vehicle-shuttle-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .35rem .8rem; }

.vehicle-shuttle-categories label { display: inline-flex; align-items: center; gap: .35rem; margin: 0; }

.vehicle-shuttle-categories input { width: auto; margin: 0; }

.vehicle-shuttle-form > button { justify-self: start; }

/* original-convoys.css */
.vehicle-convoy-form { display: grid; gap: 1rem; }
.vehicle-convoy-form > section { padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--surface); }
.vehicle-convoy-form > section > h2 { margin-top: 0; }
.vehicle-convoy-form > button { justify-self: start; }
.vehicle-convoy-order, .vehicle-convoy-available { display: grid; gap: .55rem; }
.vehicle-convoy-available { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.vehicle-convoy-choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .7rem .8rem; border: 1px solid var(--line); background: rgba(255,255,255,.72); }
.vehicle-convoy-choice.is-selected { border-left: 4px solid var(--accent); background: #fff8e8; }
.vehicle-convoy-choice-main { display: flex; align-items: center; gap: .65rem; min-width: 0; margin: 0; cursor: pointer; }
.vehicle-convoy-choice-main input { width: auto; margin: 0; }
.vehicle-convoy-choice-details { display: grid; gap: .12rem; min-width: 0; }
.vehicle-convoy-choice-details small { color: var(--muted); }
.vehicle-convoy-position { min-width: 1.4rem; font-size: 1.15rem; font-weight: bold; color: #6e3f02; }
.vehicle-convoy-available .vehicle-convoy-position, .vehicle-convoy-available .vehicle-convoy-order-actions { display: none; }
.vehicle-convoy-order-actions { display: flex; gap: .35rem; }
.vehicle-convoy-order-actions button { min-height: 32px; padding: .35rem .55rem; }
.vehicle-convoy-included, .vehicle-convoy-cargo { width: max-content; font-size: .72rem; font-weight: bold; letter-spacing: .06em; }
.vehicle-convoy-included { color: var(--muted); }
.vehicle-convoy-cargo { padding: .12rem .35rem; border: 1px solid currentColor; }
.vehicle-convoy-cargo.is-loaded { color: #7d2700; background: #ffd9ad; }
.vehicle-convoy-cargo.is-empty { color: var(--muted); background: transparent; }
.vehicle-send { display: grid; min-width: 0; grid-template-columns: minmax(16rem, 1.25fr) minmax(12rem, .75fr); align-items: start; gap: .8rem 1rem; }
.vehicle-journey-builder { display: grid; gap: .65rem; }
.vehicle-journey-builder > label { margin: 0; }
.vehicle-journey-legs { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.vehicle-journey-legs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .55rem; padding-left: 1rem; border-left: 3px solid var(--accent); }
.vehicle-journey-legs label { margin: 0; }
.vehicle-journey-builder .button-row { margin: 0; }
.vehicle-journey-builder .field-help { margin: 0; color: var(--muted); }
.vehicle-journey-summary { padding: .65rem .75rem; border-left: 3px solid var(--line); background: rgba(255,255,255,.48); line-height: 1.5; }
.vehicle-journey-summary.has-warning { border-left-color: #a64b21; color: #6f251b; background: #fff0db; }
.vehicle-tier-targeting { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; }
.vehicle-tier-targeting p { margin: 0; color: var(--muted); }
.vehicle-tier-targeting label { display: inline-flex; align-items: center; gap: .3rem; margin: 0; }
.vehicle-send input[type="checkbox"], .rating-tabs input { width: auto; margin: 0; }
.vehicle-saved-stance { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.vehicle-send > button[type="submit"] { justify-self: start; }
.vehicle-itinerary-status ol { margin-bottom: 0; }
.vehicle-itinerary-status small { color: var(--muted); }
@media (max-width: 760px) {
}
.convoy-group-grid, .convoy-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; margin: 1rem 0; }
.convoy-group-card, .convoy-settings { min-width: 0; padding: 1rem; margin: 1rem 0; border: 1px solid var(--line); background: var(--surface); }
.convoy-group-card h2, .convoy-settings h2 { margin: 0 0 1rem; overflow-wrap: anywhere; }
.fleet-convoy-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "convoy-heading convoy-action" "convoy-details convoy-action"; align-items: center; gap: .15rem .8rem; min-width: 0; padding: .6rem .75rem; border: 1px solid var(--line); border-left-width: 4px; background: var(--surface); }
.fleet-convoy-heading { grid-area: convoy-heading; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: .8rem; }
.fleet-convoy-copy, .fleet-convoy-details { min-width: 0; overflow-wrap: anywhere; }
.fleet-convoy-heading h3 { margin: 0; font-size: 1rem; }
.fleet-convoy-heading .item-type { display: block; margin-top: .2rem; color: var(--muted); font-size: .72rem; }
.fleet-convoy-details { grid-area: convoy-details; }
.fleet-convoy-card > .button { grid-area: convoy-action; }
@media (max-width: 760px) {
  .fleet-convoy-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "convoy-heading" "convoy-details" "convoy-action"; gap: .35rem; }
  .fleet-convoy-card > .button { justify-self: stretch; }
}
.convoy-settings summary { cursor: pointer; font-weight: bold; }
.convoy-settings label { min-width: 0; }
.convoy-settings input[type="checkbox"] { width: 20px; min-height: 20px; margin: 0 .4rem 0 0; vertical-align: middle; }
.convoy-roster-choices { display: grid; gap: .5rem; }
.convoy-roster-choice { display: grid; grid-template-columns: minmax(0, 1fr) 5rem; align-items: center; gap: .75rem; padding: .5rem; border: 1px solid var(--line); }
.convoy-roster-choice label { display: flex; align-items: center; overflow-wrap: anywhere; }
.convoy-roster-choice label:last-child { display: block; }
.convoy-roster-choice input[type="checkbox"] { flex: 0 0 20px; }
.convoy-members-table .capacity-warning { display: block; }
@media (max-width: 760px) {
  .convoy-members-table, .convoy-members-table tbody, .convoy-members-table tr { display: block; width: 100%; }
  .convoy-members-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .convoy-members-table tbody tr { margin-bottom: .7rem; padding: .5rem; background: var(--surface); border: 1px solid var(--line); }
  .convoy-members-table td { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: start; gap: .5rem; padding: .45rem; border: 0; }
  .convoy-members-table td::before { content: attr(data-label); color: var(--muted); font: bold .68rem/1.4 Arial, sans-serif; text-transform: uppercase; }
  .convoy-members-table td[colspan] { display: block; }
  .convoy-members-table td[colspan]::before { content: none; }
  .convoy-members-table .capacity-warning { grid-column: 2; }
}

/* original-city-industry.css */
/* City workshops: compact controls, local stock and visible working state. */
.city-industry {
  --industry-ink: var(--venue-ink, #203029);
  --industry-paper: var(--venue-paper, #fffaf0);
  --industry-line: var(--venue-line, #c8b89a);
  --industry-accent: var(--venue-accent, #b87c27);
  min-width: 0;
}
.city-industry :is(section, article, div, form, fieldset, details, label) { min-width: 0; }
.city-industry :is(p, h1, h2, h3, h4, dd, label, summary) { overflow-wrap: anywhere; }
.city-industry :is(button, .button, select) { min-height: 44px; max-width: 100%; }
.city-industry :is(button, .button) { white-space: normal; text-align: center; }
.city-industry select { width: 100%; min-width: 0; }
.game-shell .city-industry .industry-title {
  margin: 0 0 .8rem;
  padding: 1rem 1.1rem;
  background: var(--industry-ink);
  color: #fff8e8;
  border: 1px solid #40544a;
  border-top: 4px solid var(--industry-accent);
  box-shadow: inset 0 -1px #fff1;
  gap: .7rem;
}
.game-shell .city-industry .industry-title h1 { margin: 0; color: inherit; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.12; }
.game-shell .city-industry .industry-title .eyebrow { margin: 0 0 .3rem; color: #eac575; }
.city-industry .industry-title .button.secondary { background: #f6efdc; color: #233329; border-color: #e9d7a8; }
.city-industry .industry-header-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.city-industry .industry-metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  margin: 0 0 1rem; border: 1px solid var(--industry-line); background: #ebe4d4;
}
.city-industry .industry-metrics > div { padding: .7rem .8rem; border-inline-end: 1px solid #c8b89a80; }
.city-industry .industry-metrics dt { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #536057; }
.city-industry .industry-metrics dd { margin: .22rem 0 0; font-size: 1.15rem; line-height: 1.2; font-weight: 800; color: var(--industry-ink); font-variant-numeric: tabular-nums; }
.city-industry .industry-metrics dd small { font-size: .7rem; font-weight: 500; }
.city-industry .industry-section { margin: 1rem 0; }
.city-industry .industry-section > h2, .city-industry .industry-section-heading h2 { margin: 0; color: var(--industry-ink); font: 700 1.15rem Arial, Helvetica, sans-serif; }
.city-industry .industry-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .65rem; }
.city-industry .industry-section > h2 { margin-bottom: .6rem; }
.city-industry .industry-section-heading > a { padding-block: .5rem; }
.city-industry .industry-caption { font-size: .84rem; color: #5d6358; margin: .55rem 0; line-height: 1.5; }
.city-industry .industry-empty { padding: 1rem; margin: 0; border: 1px dashed #aaab94; background: #f5f1e5; line-height: 1.5; }
.city-industry .industry-empty h3 { margin: 0 0 .4rem; font-size: 1rem; }
.city-industry .industry-empty p { margin: .4rem 0 .75rem; }
.city-industry .industry-empty a { display: inline-flex; align-items: center; min-height: 44px; }
.city-industry .industry-state { display: inline-block; padding: .3rem .5rem; border: 1px solid #b8b5a0; background: #f1eddc; color: #53584c; font-size: .73rem; font-weight: 700; line-height: 1.4; }
.city-industry .industry-state.is-working { color: #244c31; background: #e0ecd9; border-color: #9fb392; }
.city-industry :is(.industry-disclosure, .keys-drydock-help) { margin: 1rem 0; padding: 0 .85rem .2rem; background: #f4eedf; border: 1px solid var(--industry-line); }
.city-industry :is(.industry-disclosure, .keys-drydock-help, .industry-repair-picker, .industry-workers, .industry-maintenance) > summary { padding: .8rem 0; min-height: 44px; cursor: pointer; font-size: .86rem; font-weight: 700; line-height: 1.45; }
.city-industry summary > span { color: #596253; font-weight: 400; font-size: .75rem; margin-left: .35rem; }
.city-industry details[open] > summary { margin-bottom: .5rem; border-bottom: 1px solid #c8b89a85; }
.city-industry .industry-action-note { padding: .65rem .75rem; background: #f2e6cc; border-left: 3px solid var(--industry-accent); font-size: .8rem; line-height: 1.5; margin: .5rem 0 .8rem; }
.city-industry .industry-mine { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: .85rem; padding: 1rem; border-top: 3px solid #7e9278; }
.city-industry .industry-mine.inactive { border-top-color: #b6af98; opacity: 1; background: #f1eee3; }
.city-industry .industry-mine-portrait { display: flex; align-items: center; justify-content: center; background: #e8e9dc; border: 1px solid #c9c9b6; overflow: hidden; }
.city-industry .industry-mine-portrait .equipment-bot { width: 82px; height: auto; aspect-ratio: 1; max-width: 100%; }
.city-industry :is(.industry-mine-portrait, .industry-loadout-portrait) .equipment-bot > img { width: 100%; height: 100%; }
.city-industry .industry-mine-main > header { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: start; justify-content: space-between; background: none; padding: 0; min-height: 0; border: 0; }
.city-industry .industry-mine-main h3 { margin: 0; font-size: 1.15rem; }
.city-industry .industry-mine-main .eyebrow { font-size: .63rem; margin: 0 0 .25rem; color: #62705c; }
.city-industry .industry-mine-main .mine-priority { display: none; }
.city-industry .industry-production, .city-industry .industry-contract { font-size: .8rem; line-height: 1.55; margin: .6rem 0; }
.city-industry .industry-contract { color: #6b654d; }

/* Mine control: a framed robot, a readable production dial and quiet settings. */
#content .mines-dashboard .industry-title {
  position: relative; overflow: hidden;
  background-image: repeating-linear-gradient(125deg, transparent 0 42px, #f4a32108 43px 44px, transparent 45px 88px);
}
#content .mines-dashboard .industry-metrics { margin-bottom: .6rem; }
#content .mines-dashboard .industry-metrics dd { font-size: 1.4rem; }
#content .mines-dashboard .industry-mine {
  grid-template-columns: 132px minmax(0, 1fr); gap: 1rem;
  padding: 1rem; border-top: 2px solid #9aab83;
}
#content .mines-dashboard .industry-mine.inactive { border-top-color: var(--ui-line); }
#content .mines-dashboard .industry-mine-portrait {
  position: relative; align-self: stretch; flex-direction: column; min-height: 162px;
  background: radial-gradient(ellipse at 50% 45%, #6a7352 0, #343e32 62%, #242c24 100%);
  border: 1px solid #81866a; box-shadow: inset 0 0 0 5px #f7efcd09;
}
#content .mines-dashboard .industry-mine-portrait .equipment-bot { width: 120px; flex: 0 0 auto; }
#content .mines-dashboard .mine-portrait-label {
  margin-top: .35rem; color: #d9d5bd; font: 700 .62rem/1.4 Arial, sans-serif;
  letter-spacing: .14em; text-align: center;
}
#content .mines-dashboard .industry-state { display: inline-flex; align-items: center; gap: .4rem; }
#content .mines-dashboard .industry-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#content .mines-dashboard .mine-production-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem;
  margin: .9rem 0 .65rem;
}
#content .mines-dashboard .mine-production-stats > div + div { border-left: 1px solid var(--ui-line); padding-left: .75rem; }
#content .mines-dashboard .mine-production-stats dt { color: var(--ui-muted); font: 700 .62rem/1.3 Arial, sans-serif; text-transform: uppercase; letter-spacing: .055em; }
#content .mines-dashboard .mine-production-stats dd { margin: .25rem 0 0; color: var(--ui-ink); font: 800 1.25rem/1.25 Arial, sans-serif; font-variant-numeric: tabular-nums; }
#content .mines-dashboard .mine-cycle { display: block; appearance: none; width: 100%; height: 5px; border: 0; background: #dfd7c2; accent-color: var(--ui-orange); }
#content .mines-dashboard .mine-cycle::-webkit-progress-bar { background: #dfd7c2; }
#content .mines-dashboard .mine-cycle::-webkit-progress-value { background: linear-gradient(90deg, #b97821, #f5ab32); }
#content .mines-dashboard .mine-cycle::-moz-progress-bar { background: #d58c23; }
#content .mines-dashboard .mine-production-bonus { display: block; margin-top: .4rem; color: var(--ui-muted); }
#content .mines-dashboard .industry-contract { margin: .55rem 0; font-size: .74rem; }
#content .mines-dashboard .mine-actions { padding-top: .75rem; margin-top: .1rem; }
#content .mines-dashboard .mine-recent .item-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
#content .mines-dashboard .miner-settings { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0 .85rem; }
#content .mines-dashboard .miner-settings > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; list-style: none; }
#content .mines-dashboard .miner-settings > summary::-webkit-details-marker { display: none; }
#content .mines-dashboard .miner-settings-title { display: inline-flex; align-items: center; gap: .55rem; color: var(--ui-ink); font-size: .85rem; font-weight: 700; margin: 0; }
#content .mines-dashboard .miner-settings-title::after { content: '+'; margin-left: .2rem; color: var(--ui-muted); }
#content .mines-dashboard .miner-settings[open] .miner-settings-title::after { content: '−'; }
#content .mines-dashboard .miner-settings-title > span { font-size: 1.15rem; }
#content .mines-dashboard .miner-settings form { margin: 0 0 .8rem; }
#content .mines-dashboard .miner-settings fieldset { padding: 0; margin: 0; border: 0; }
#content .mines-dashboard .miner-settings legend { padding: 0; font-weight: 700; }
#content .mines-dashboard .miner-settings p { color: var(--ui-muted); margin: .3rem 0 .75rem; font-size: .8rem; }
#content .mines-dashboard .miner-rarity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .45rem; }
#content .mines-dashboard .miner-rarity-choice { display: flex; align-items: center; gap: .6rem; min-height: 48px; margin: 0; padding: .5rem .65rem; border: 1px solid var(--ui-line); border-left: 3px solid var(--rarity-link-color); color: var(--ui-ink); background: var(--ui-paper); cursor: pointer; }
#content .mines-dashboard .miner-rarity-choice input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; }
#content .mines-dashboard .miner-rarity-choice span { opacity: 1; font-size: .8rem; }
#content .mines-dashboard .miner-rarity-choice:has(:checked) { background: #f7e4bc; border-color: #bb852c; border-left-color: var(--rarity-link-color); }
#content .mines-dashboard .miner-rarity-choice:has(:focus-visible) { outline: 2px solid var(--ui-orange); outline-offset: 2px; }
#content .mines-dashboard .miner-settings footer { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; justify-content: space-between; margin-top: .8rem; }
#content .mines-dashboard .miner-settings footer small { color: var(--ui-muted); }
@media (max-width: 600px) {
  #content .mines-dashboard .industry-mine { grid-template-columns: 68px minmax(0, 1fr); gap: .65rem; padding: .7rem; }
  #content .mines-dashboard .industry-mine-portrait { min-height: 112px; align-self: start; }
  #content .mines-dashboard .industry-mine-portrait .equipment-bot { width: 64px; }
  #content .mines-dashboard .mine-portrait-label { font-size: .52rem; letter-spacing: .05em; }
  #content .mines-dashboard .mine-production-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: .7rem; }
  #content .mines-dashboard .mine-production-stats > div:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; display: flex; align-items: baseline; justify-content: space-between; gap: .35rem; }
  #content .mines-dashboard .mine-production-stats dd { font-size: 1rem; }
  #content .mines-dashboard .mine-tool-links { margin-left: calc(-68px - .65rem); }
  #content .mines-dashboard .mine-tool-links .button { flex: 1 1 auto; }
  #content .mines-dashboard .mine-recent .item-grid { grid-template-columns: 1fr; }
  #content .mines-dashboard .miner-rarity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #content .mines-dashboard .miner-settings footer { align-items: stretch; flex-direction: column; }
}
.city-industry .mine-tool-links { margin: .7rem 0 0; gap: .4rem; }
.city-industry .mine-tool-links .button { font-size: .74rem; }
.city-industry .mine-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: end; gap: .5rem .8rem; border-top: 1px solid #c8b89a85; padding-top: .7rem; }
.city-industry .mine-actions > form { margin: 0; }
.city-industry .mine-actions label { margin: 0; font-size: .75rem; }
.city-industry .mine-actions small { display: block; font-size: .66rem; margin-top: .25rem; }
.city-industry .mine-actions .industry-mode-form { display: flex; align-items: end; flex: 1 1 18rem; gap: .5rem; }
.city-industry .industry-mode-form label { flex: 1; }
.city-industry .bot-builder { grid-template-columns: minmax(0, 1fr) 110px; padding: .75rem; }
.city-industry .bot-builder h2, .city-industry .stone-progress h2 { font-size: 1.1rem; margin-top: 0; }
.city-industry .bot-builder ul { grid-template-columns: 1fr; }
.city-industry .bot-builder li { font-size: .82rem; }
.city-industry .bot-builder img { max-width: 110px; }
.city-industry .stone-progress { padding: .75rem; gap: .7rem; }
.city-industry .mine-tool-navigation { display: grid; grid-template-columns: auto 1fr 1fr; gap: .45rem; margin: .6rem 0 .85rem; align-items: stretch; }
.city-industry .mine-tool-navigation .button { display: flex; align-items: center; justify-content: center; font-size: .76rem; padding: .6rem; }
.city-industry .industry-back-link { display: flex; align-items: center; min-height: 44px; padding: .4rem .6rem; text-decoration: underline; text-underline-offset: .15em; font-size: .78rem; }
.city-industry .loadout-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 1rem; padding: .85rem; margin: .85rem 0; }
.city-industry .loadout-layout h2 { margin-top: 0; }
.city-industry .industry-loadout-portrait { display: grid; justify-items: center; padding: .7rem; border: 1px solid #c5c7b5; background: #e9ebdf; }
.city-industry .industry-loadout-portrait .equipment-bot { width: 124px; height: auto; aspect-ratio: 1; max-width: 100%; }
.city-industry .industry-loadout-portrait .eyebrow { text-align: center; font-size: .65rem; }
.city-industry .equipped-list { display: grid; gap: .5rem; }
.city-industry .equipped-list > li.empty-slot { padding: .6rem; border: 1px dashed #c3c0ac; background: #f2f0e5; font-size: .83rem; }
.city-industry .detonator-grid { gap: .8rem; }
.city-industry .detonator-option { min-height: 48px; }
.city-industry .explosion-result { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: .7rem 0; padding: .5rem; border: 1px solid var(--industry-line); background: #f6e7cd; }
.city-industry .explosion-result img { max-width: 90px; max-height: 70px; object-fit: contain; }
.city-industry .factory-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); align-items: start; gap: 1rem; }
.city-industry .industry-operation { padding: 1rem; border-top: 3px solid #7e9278; }
.city-industry .industry-operation > header { align-items: start; gap: .6rem; }
.city-industry .industry-operation > header h3 { font: 700 1.2rem Arial, Helvetica, sans-serif; color: var(--industry-ink); }
.city-industry .industry-operation > header .eyebrow { margin: 0 0 .25rem; font-size: .63rem; color: #66715a; }
.city-industry .industry-operation > header .industry-state { max-width: 55%; }
.city-industry .industry-operation p { font-size: .82rem; line-height: 1.5; }
.city-industry .industry-job-progress { margin-top: .8rem; }
.city-industry .industry-job-progress .factory-progress { height: 7px; background: #dedcc8; }
.city-industry .industry-job-progress .factory-progress > div { background: #587956; }
.city-industry .industry-job-progress p { margin: .4rem 0 .6rem; font-variant-numeric: tabular-nums; }
.city-industry .factory-queue { margin: .75rem 0; padding: .65rem; border: 1px solid #d1c5aa; background: #f2eddf; }
.city-industry .factory-queue h4 { margin: 0 0 .5rem; font-size: .82rem; display: flex; gap: .5rem; justify-content: space-between; }
.city-industry .factory-queue h4 span { color: #53614d; }
.city-industry .factory-queue ol { margin: 0; padding: 0; list-style: none; }
.city-industry .factory-queue li { flex-wrap: wrap; padding: .5rem 0; font-size: .8rem; background: none; }
.city-industry .factory-queue li > div:first-child { display: grid; gap: .2rem; flex: 1 1 14rem; }
.city-industry .factory-queue li small { font-size: .73rem; color: #62654f; }
.city-industry .factory-queue .factory-queue-actions { display: flex; flex: 0 1 auto; gap: .3rem; margin-left: auto; }
.city-industry .factory-queue-actions button { min-width: 44px; border: 1px solid #c4b698; background: #fffaf0; }
.city-industry .factory-action { display: grid; grid-template-columns: 1fr; gap: .65rem; padding: .85rem; border: 1px solid #bbba9f; background: #e9ecdf; }
.city-industry .factory-action > label { grid-column: 1; max-width: none; font-size: .78rem; }
.city-industry .factory-action > button, .city-industry .factory-action > p { grid-column: 1; }
.city-industry .factory-action > p { margin: 0; }
.city-industry .industry-repair-picker { grid-column: 1; padding: 0 .65rem; border: 1px solid #c6c7b0; background: #f9f6eb; }
.city-industry .industry-repair-picker > summary { font-size: .78rem; }
.city-industry .industry-repair-picker .item-picker { margin: .5rem 0; padding: .5rem; }
.city-industry .industry-repair-picker .item-picker-none { display: flex; align-items: center; min-height: 44px; gap: .5rem; font-size: .8rem; }
.city-industry .industry-repair-picker .item-picker-grid { max-height: 28rem; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
.city-industry .industry-workers, .city-industry .industry-maintenance { margin-top: .75rem; border-top: 1px solid #c8b89a85; }
.city-industry .industry-workers ul { margin-top: 0; }
.city-industry .industry-workers li { flex-wrap: wrap; font-size: .8rem; }
.city-industry .factory-assign { display: flex; align-items: end; gap: .6rem; }
.city-industry .factory-assign label { flex: 1; font-size: .8rem; }
.city-industry .factory-bot-market { padding: .8rem; background: #ede7d7; border: 1px solid #c7baa0; }
.city-industry .factory-bot-market h4 { margin-top: 0; font-size: .9rem; }
.city-industry .factory-bot-market form { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding: .6rem 0; border-top: 1px solid #c7baa0; margin: 0; }
.city-industry .factory-bot-market form > span { flex: 1 1 9rem; font-size: .8rem; }
.city-industry .factory-bot-market small { display: block; margin-top: .2rem; font-size: .73rem; }
.city-industry .factory-bot-market button { font-size: .75rem; }
.city-industry .industry-build { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .7rem 1rem; margin: 1rem 0; padding: 1rem; background: #e5e7d9; border: 1px solid #b7bba2; }
.city-industry .industry-build .eyebrow { margin: 0 0 .2rem; font-size: .65rem; }
.city-industry .industry-build h2 { font: 700 1.15rem Arial, Helvetica, sans-serif; margin: 0; }
.city-industry .industry-build p { margin: .4rem 0 0; font-size: .82rem; line-height: 1.5; }
.city-industry .industry-build > p { grid-column: 1 / -1; }
.city-industry .industry-build form { margin: 0; }
.city-industry .industry-wallet { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .5rem; padding: .7rem .8rem; background: #eee4ca; border: 1px solid #ccba8d; font-size: .85rem; }
.city-industry .industry-wallet > small { flex-basis: 100%; font-size: .74rem; }
.city-industry .keys-drydock-grid { gap: .8rem; }
.city-industry .keys-drydock-tier { border-top: 4px solid #9a7440; display: flex; flex-direction: column; }
.city-industry .keys-drydock-tier[data-drydock-rarity="5"] { border-top-color: #655184; }
.city-industry .keys-drydock-tier[data-drydock-rarity="6"] { border-top-color: #996426; }
.city-industry .keys-drydock-tier > form { margin-top: auto; }
.city-industry .keys-drydock-tier header { background: none; padding: 0; min-height: 0; border: 0; }
.city-industry .keys-drydock-price { margin: .85rem 0 .35rem; }
.city-industry .keys-drydock-price small { margin-top: .35rem; }
.city-industry .industry-stock { font-size: .75rem; color: #546443; margin: .3rem 0 .85rem; }
.city-industry .keys-drydock-reservation { border-top: 4px solid #708762; margin: 1rem 0; }
.city-industry .keys-drydock-reservation > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: .5rem; background: none; padding: 0; min-height: 0; border: 0; }
.city-industry .keys-drydock-reservation h2 { margin: .25rem 0 .75rem; }
.city-industry .keys-drydock-reservation .industry-metrics { margin-top: .7rem; }
.city-industry .keys-drydock-reservation p { font-size: .82rem; }
.city-industry .mine-roster-overview { margin: .7rem 0; padding: .85rem; gap: .8rem; }
.city-industry .mine-roster-overview h2 { font-size: 1.15rem; }
.city-industry .mine-roster-overview p { margin-bottom: 0; font-size: .85rem; }
.city-industry .mine-shift-board { gap: .6rem; margin: .8rem 0; }
.city-industry .mine-shift-card { padding: .75rem; }
.city-industry .mine-shift-card h2 { font-size: 1.1rem; }
.city-industry .mine-roster-command { padding: .8rem; }
.city-industry .mine-roster-robot .button { margin-top: .5rem; }
.city-industry .industry-roster-help { margin: .7rem 0; }
.city-industry .mine-roster-save { gap: .6rem; padding: .75rem; }
@media (max-width: 600px) {
  .game-shell .city-industry .industry-title { padding: .8rem; gap: .6rem; }
  .game-shell .city-industry .industry-title h1 { font-size: 1.55rem; }
  .game-shell .city-industry .industry-title .eyebrow { font-size: .62rem; }
  .city-industry .industry-header-links { width: 100%; }
  .city-industry .industry-header-links a { flex: 1; font-size: .7rem; }
  .city-industry .industry-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-industry .industry-metrics > div { padding: .55rem .65rem; border-bottom: 1px solid #c8b89a60; }
  .city-industry .industry-metrics dd { font-size: 1rem; }
  .city-industry .industry-metrics dt { font-size: .6rem; letter-spacing: .035em; }
  .city-industry .industry-mine { grid-template-columns: 52px minmax(0, 1fr); padding: .7rem; gap: .6rem; }
  .city-industry .industry-mine-main h3 { font-size: 1rem; }
  .city-industry .industry-mine-portrait { align-self: start; min-height: 72px; }
  .city-industry .mine-tool-links { display: grid; grid-template-columns: 1fr; }
  .city-industry .mine-tool-links .button { padding: .5rem; }
  .city-industry .mine-actions .industry-mode-form { flex-basis: 100%; }
  .city-industry .mine-actions > form:not(.industry-mode-form) { flex: 1; }
  .city-industry .mine-actions > form:not(.industry-mode-form) > button { width: 100%; }
  .city-industry .mine-actions small { text-align: center; }
  .city-industry .bot-builder { grid-template-columns: 1fr; }
  .city-industry .bot-builder > img { display: none; }
  .city-industry .mine-tool-navigation { grid-template-columns: 1fr 1fr; }
  .city-industry .industry-back-link { grid-column: 1 / -1; padding-block: 0; min-height: 32px; }
  .city-industry .mine-tool-navigation .button { font-size: .7rem; }
  .city-industry .loadout-layout { grid-template-columns: 1fr; padding: .65rem; }
  .city-industry .industry-loadout-portrait { grid-template-columns: 64px minmax(0, 1fr); align-items: center; padding: .5rem; }
  .city-industry .industry-loadout-portrait .equipment-bot { max-height: 96px; width: 64px; }
  .city-industry .industry-loadout-portrait .eyebrow { margin: 0; }
  .city-industry .loadout-layout h2 { font-size: 1.1rem; }
  .city-industry .industry-operation { padding: .7rem; }
  .city-industry .industry-operation > header .industry-state { max-width: 100%; }
  .city-industry .factory-action { padding: .65rem; }
  .city-industry .factory-queue { padding: .5rem; }
  .city-industry .factory-bot-market { padding: .6rem; }
  .city-industry .factory-bot-market form > span { flex-basis: 7rem; }
  .city-industry .factory-bot-market button { padding-inline: .55rem; }
  .city-industry .industry-build { grid-template-columns: 1fr; padding: .8rem; }
  .city-industry .industry-build button { width: 100%; }
  .city-industry .industry-disclosure { padding-inline: .7rem; }
  .city-industry summary > span { display: block; margin-left: 1rem; }
  .city-industry .keys-drydock-tier, .city-industry .keys-drydock-reservation { padding: .8rem; }
  .city-industry .keys-drydock-tier button { width: 100%; }
  .city-industry .mine-roster-command { padding: .6rem; }
  .city-industry .mine-roster-command > header .button-row { display: grid; grid-template-columns: 1fr; width: 100%; }
  .city-industry .mine-roster-row { padding: .65rem; }
  .city-industry .mine-roster-save { padding: .65rem; }
}

/* original-refinery.css */
#content .refinery-page > .industry-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.refinery-order, .refinery-batch { padding: 1rem; border: 1px solid var(--ui-line); background: var(--ui-paper); color: var(--ui-ink); }
.refinery-order form { display: grid; gap: .75rem; }
.refinery-order form p { margin: 0; }
.refinery-order label { display: grid; gap: .35rem; justify-self: start; }
.refinery-order input { width: min(100%, 10rem); }
.refinery-order button { justify-self: start; }
.refinery-batches { display: grid; gap: .75rem; padding: 0; list-style: none; }
.refinery-batch > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.refinery-batch progress { width: 100%; margin-top: .75rem; accent-color: var(--ui-accent); }
.refinery-stock { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .75rem; }
.refinery-stock > div { display: flex; justify-content: space-between; gap: .5rem; }
.refinery-stock dd { margin: 0; }

/* original-production.css */
.production-section-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.5rem; }
.production-section-heading h4 { margin:0; }
.production-materials { margin:.75rem 0; padding:.75rem; border:1px solid var(--line,#b6a789); background:var(--paper,#fff9ed); }
.production-materials ul { margin:.5rem 0 0; padding:0; list-style:none; }
.production-materials li { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.45rem 0; border-top:1px solid #d9cfb8; }
.production-materials li>span:first-child { min-width:0; overflow-wrap:anywhere; }
.production-materials li>span:last-child { text-align:right; flex-shrink:0; }
.production-materials small { display:block; font-size:.78rem; color:#615b50; }
.production-materials .needs-stock small { color:#9b3500; }
.production-progress .factory-progress { margin:.4rem 0; }
.production-progress p { margin:.35rem 0; font-size:.85rem; }
.city-industry .production-queue li { display:flex; align-items:center; gap:.75rem; min-width:0; }
.production-queue li>div:first-child { min-width:0; flex:1; overflow-wrap:anywhere; }
.production-queue .factory-queue-actions { flex-wrap:wrap; }
.production-queue .factory-queue-actions:empty { display:none; }
.production-output { display:flex; flex-wrap:wrap; align-items:baseline; gap:.4rem .8rem; margin:.8rem 0; padding:.65rem .85rem; background:#e7dec8; border-left:3px solid var(--brand-orange,#e89319); }
.production-output>span { font-size:.75rem; font-weight:bold; text-transform:uppercase; letter-spacing:.07em; }
.production-output small { color:#615b50; }
.set-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:1rem; }
.set-card { min-width:0; border:1px solid #b6a789; background:#fff9ed; padding:1rem; }
.set-card h3 { margin:0 0 .5rem; overflow-wrap:anywhere; }
.set-card header { display:flex; align-items:center; gap:.75rem; }
.set-card header img { width:64px; height:64px; flex-shrink:0; }
.set-form { display:flex; flex-wrap:wrap; align-items:end; gap:.75rem; }
.set-form label { flex:1 1 180px; min-width:0; }
.set-form input, .set-form select { width:100%; max-width:100%; }
.set-parts { margin:.5rem 0; padding-left:1.3rem; }
.set-parts li { margin:.3rem 0; overflow-wrap:anywhere; }
.set-page>section { margin-bottom:1.25rem; }
.production-recipe[hidden] { display:none; }

/* Workshops share a workbench, but keep the character of their craft. */
.production-workshop { --craft:#bd843d; --craft-light:#ecd196; --craft-dark:#29372e; }
.workshop-mills { --craft:#809367; --craft-light:#d3d5a0; --craft-dark:#29382f; }
.workshop-kiln { --craft:#c77143; --craft-light:#f1c096; --craft-dark:#46352d; }
#content .production-hero { position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(190px,29%); align-items:center; gap:1rem; overflow:hidden; margin:0 0 1rem; padding:1.5rem 1.5rem 1rem; color:#fff7e4; background:radial-gradient(ellipse at 84% 70%,#b48f4630,transparent 45%),linear-gradient(110deg,#16211d,var(--craft-dark,#29372e)); border:1px solid #526052; border-top:3px solid var(--craft,#bd843d); box-shadow:inset 0 0 0 5px #e2cc8c07; }
#content .production-hero::after { content:''; pointer-events:none; position:absolute; inset:0; background:repeating-linear-gradient(90deg,transparent 0 49px,#eddfa007 50px 51px,transparent 52px 100px); }
#content .production-hero h1 { font:700 clamp(1.8rem,3.5vw,2.8rem)/1.05 Arial, Helvetica, sans-serif; color:#fff5dc; margin:.2rem 0 .6rem; letter-spacing:-.03em; }
#content .production-hero p { margin:.4rem 0; font-size:.9rem; color:#d4d3b9; }
#content .production-hero .eyebrow { font-size:.65rem; letter-spacing:.13em; color:var(--craft-light,#ecd196); text-transform:uppercase; }
#content .production-hero a { position:relative; z-index:1; color:var(--craft-light,#ecd196); text-decoration:underline; text-underline-offset:.2em; }
.production-hero nav { display:flex; flex-wrap:wrap; gap:.1rem 1rem; margin-top:.7rem; }
.production-hero nav a { display:inline-flex; align-items:center; min-height:44px; font-size:.78rem; font-weight:700; }
.production-illustration { display:block; width:100%; max-height:180px; }
.production-hero > .production-illustration { filter:drop-shadow(0 8px 7px #0005); transform:rotate(-2deg); }
.workshop-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; border:1px solid #b5a580; background:#b5a580; margin:0 0 1.25rem; }
.workshop-metrics > div { padding:.65rem 1rem; background:#ede3ce; }
.workshop-metrics dt { font:700 .6rem/1.4 Arial,sans-serif; text-transform:uppercase; letter-spacing:.09em; color:#696149; }
.workshop-metrics dd { font:700 1.45rem/1.2 Arial, Helvetica, sans-serif; color:#303d30; margin:.3rem 0 0; font-variant-numeric:tabular-nums; }
.workshop-station { margin:0 0 1.3rem; border:1px solid #a79979; background:#fff9ed; box-shadow:0 3px 0 #48341b13; scroll-margin-top:5rem; }
#content .workshop-station-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.5rem; min-height:0; padding:.65rem .9rem; background:#e7dcc1; border-bottom:1px solid #bfb08e; color:#2c352a; }
.workshop-station-heading > div { display:flex; align-items:center; gap:.7rem; }
#content .workshop-station-heading h2 { font:700 1.1rem Arial, Helvetica, sans-serif; margin:0; }
.workshop-station-number { font:700 .9rem/1 Arial, Helvetica, sans-serif; display:grid; place-items:center; width:34px; height:34px; border:1px solid #a79a7c; background:#f6efde; }
.is-tech .workshop-station-heading { background:#dfe5d5; }
.workshop-status { font-size:.65rem; font-weight:700; letter-spacing:.045em; text-transform:uppercase; display:inline-flex; align-items:center; gap:.4rem; }
.workshop-status::before { content:''; width:7px; height:7px; background:#9c7740; border-radius:50%; }
.workshop-status.is-working::before { background:#567852; box-shadow:0 0 0 3px #5678521a; }
.workshop-station-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.08fr); }
.workshop-operation { padding:1rem; }
.workshop-pause { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1rem; margin-top:.75rem; }
.workshop-pause form { margin:0; }
#content .workshop-pause p { flex:1 1 200px; margin:0; font-size:.8rem; }
.workshop-composer { padding:1rem; border-left:1px solid #d5c6a7; background:#f4eddd; }
#content .workshop-composer > .eyebrow { margin:0 0 .2rem; color:#846232; font-size:.6rem; }
#content .workshop-composer > h3 { font:700 1.25rem Arial, Helvetica, sans-serif; margin:0 0 .9rem; }
.workshop-current { display:grid; grid-template-columns:88px minmax(0,1fr); gap:.85rem; align-items:center; padding:.9rem; background:linear-gradient(120deg,#273b31,#1a2923); color:#f8eed8; border:1px solid #627358; }
.workshop-product-art { display:grid; place-items:center; min-height:105px; border:1px solid #d8c58b33; background:radial-gradient(ellipse,#cfc17823,transparent 75%); }
.workshop-product-art img { width:80px; height:80px; object-fit:contain; filter:drop-shadow(0 5px 4px #0005); }
.workshop-product-art .production-illustration { width:85px; }
#content .workshop-current .eyebrow { color:#d7c587; font-size:.58rem; margin:0 0 .25rem; letter-spacing:.1em; }
#content .workshop-current h3 { color:#fff4d5; margin:0 0 .5rem; font:700 1.1rem/1.25 Arial, Helvetica, sans-serif; }
#content .workshop-current p { color:#d1d7bf; margin:.4rem 0; font-size:.73rem; }
#content .workshop-current .production-section-heading { font-size:.63rem; }
#content .workshop-current .factory-progress { height:7px; margin:.6rem 0 .3rem; background:#101c15; border:1px solid #d9c18345; border-radius:0; }
#content .workshop-current .factory-progress > div { height:100%; background:linear-gradient(90deg,#a28748,#e8cb79); }
.workshop-rental { padding:.6rem 1rem; margin:0; font-size:.8rem; border-bottom:1px solid #d5c6a7; }
.workshop-queue-empty { font-size:.8rem; color:#75694f; }
#content .production-workshop .production-queue { margin:1rem 0; padding:0; border:0; background:none; }
#content .production-workshop .production-queue .production-section-heading { font-size:.75rem; }
#content .production-workshop .production-queue h4 { font:700 .82rem Arial,sans-serif; }
#content .production-workshop .production-queue ol { list-style:none; padding:0; margin:.5rem 0 0; }
#content .production-workshop .production-queue li { gap:.5rem; padding:.65rem 0; border:0; border-top:1px solid #dccdac; background:transparent; }
#content .production-workshop .production-queue li strong { font-size:.8rem; }
#content .production-workshop .production-queue li small { display:block; font-size:.7rem; color:#746850; margin-top:.3rem; }
#content .production-workshop .factory-queue-actions { display:flex; flex-wrap:wrap; gap:.25rem; }
#content .production-workshop .factory-queue-actions form { margin:0; }
#content .production-workshop .factory-queue-actions button { padding:.45rem; font-size:.6rem; min-width:44px; }
.workshop-workers { margin:1rem 0 0; border-block:1px solid #caba98; }
.workshop-workers > summary, .workshop-expand > summary, .workshop-reference > summary { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.4rem; padding:.65rem 0; cursor:pointer; min-height:44px; font-size:.8rem; font-weight:700; }
.workshop-workers > summary::after, .workshop-reference > summary::after, .workshop-expand > summary::after { content:'+'; margin-left:auto; }
.workshop-workers[open] > summary::after, .workshop-reference[open] > summary::after, .workshop-expand[open] > summary::after { content:'−'; }
.workshop-workers > summary b { margin-left:.3rem; font-weight:400; }
.workshop-workers > summary > span:last-of-type { font-size:.68rem; font-weight:400; margin-left:auto; }
.workshop-workers ul { list-style:none; padding:0; margin:0; }
.workshop-workers li { display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; padding:.5rem 0; border-top:1px solid #e0d3b6; font-size:.8rem; }
.workshop-workers li small { display:block; margin-top:.2rem; color:#77674a; font-size:.7rem; }
.workshop-worker-state { margin-left:auto; font-size:.65rem; color:#536945; }
.workshop-hire { margin:.7rem 0; }
.workshop-hire .eyebrow { font-size:.57rem; margin:0 0 .6rem; }
.workshop-hire-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.4rem; }
.workshop-hire-grid form { display:flex; flex-direction:column; gap:.4rem; margin:0; padding:.6rem .4rem; border:1px solid #c8b893; background:#eee3ca; text-align:center; }
.workshop-hire-grid strong { font-size:.75rem; line-height:1.3; }
.workshop-hire-grid span { font:700 .95rem Arial, Helvetica, sans-serif; }
.workshop-hire-grid small { display:block; font:400 .58rem Arial,sans-serif; margin:.25rem 0; }
#content .workshop-hire-grid button { width:100%; margin-top:auto; padding:.4rem .2rem; font-size:.67rem; letter-spacing:0; }
.workshop-bot-mark { color:#7c714d; letter-spacing:.12em; }
.workshop-maintenance { margin-top:.75rem; }
.workshop-maintenance summary { min-height:44px; font-size:.75rem; cursor:pointer; color:#776746; }
.workshop-maintenance form { margin:.5rem 0; }
.workshop-inline-form { display:flex; flex-wrap:wrap; align-items:end; gap:.5rem; margin:.5rem 0; }
.workshop-inline-form label { flex:1 1 150px; }
#content .workshop-composer label, #content .workshop-inline-form label { font-size:.76rem; font-weight:700; display:block; }
.workshop-composer select { display:block; width:100%; margin-bottom:.7rem; }
.workshop-recipe-browser[hidden], .workshop-choice[hidden] { display:none; }
.workshop-recipe-tabs { display:flex; flex-wrap:wrap; gap:.25rem; margin:0 0 .5rem; }
#content .workshop-recipe-tabs button { flex:1 1 auto; min-height:44px; padding:.4rem .6rem; background:#e5dac0; color:#655633; border:1px solid #c4b48e; text-transform:none; letter-spacing:0; font-size:.72rem; }
#content .workshop-recipe-tabs button[aria-pressed="true"] { color:#fff8e1; background:#3c513f; border-color:#3c513f; }
.workshop-search { margin:.5rem 0; }
.workshop-search input { width:100%; }
.workshop-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.4rem; max-height:310px; overflow:auto; overscroll-behavior:contain; padding:2px; scrollbar-color:#aa8b55 #e3d7bc; scrollbar-width:thin; }
#content .production-workshop .workshop-choice { display:flex; align-items:center; gap:.5rem; padding:.55rem; min-height:72px; color:#3b4232; background:#fff8e9; border:1px solid #c9b895; border-radius:0; text-transform:none; letter-spacing:0; text-align:left; font-weight:400; }
.workshop-choice img { flex:0 0 38px; width:38px; height:45px; object-fit:contain; }
.workshop-choice-symbol { flex:0 0 38px; width:38px; text-align:center; font-size:1.6rem; color:#92713b; }
.workshop-choice strong { display:block; font-size:.82rem; line-height:1.25; }
.workshop-choice small { display:block; font-size:.7rem; margin-top:.35rem; color:#7c7157; }
#content .production-workshop .workshop-choice[aria-pressed="true"] { background:#e5edd5; border-color:#67835a; box-shadow:inset 0 0 0 1px #67835a; }
#content .production-workshop .workshop-choice[aria-pressed="true"] strong { color:#284d2b; }
.workshop-recipe { margin:.7rem 0; }
.workshop-recipe > summary { font-size:.78rem; cursor:pointer; min-height:44px; }
.workshop-recipe-product { display:flex; align-items:center; gap:.8rem; padding:.7rem; background:#e8ddc3; border:1px solid #cbbc98; }
.workshop-recipe-product img { width:58px; height:68px; object-fit:contain; }
.workshop-recipe-product .eyebrow { font-size:.57rem; margin:0 0 .3rem; }
.workshop-recipe-product h4 { margin:0; font:700 1rem/1.2 Arial, Helvetica, sans-serif; }
.workshop-recipe-product p { font-size:.72rem; margin:.4rem 0 0; }
.workshop-enhanced .workshop-recipe > summary { display:none; }
#content .production-workshop .production-materials { padding:.6rem .75rem; margin:.5rem 0; background:#fff9ed; }
#content .production-workshop .production-materials h4 { font-size:.73rem; }
#content .production-workshop .production-materials li { gap:.6rem; font-size:.76rem; }
#content .production-workshop .production-materials small { font-size:.65rem; }
.workshop-submit { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; padding-top:.7rem; border-top:1px solid #cebc98; margin-top:.8rem; }
#content .workshop-submit > button { flex:1 0 150px; background:#b47725; color:#fffaf0; border-color:#875b22; }
#content .workshop-submit > button:disabled { background:#dfd7c2; color:#716853; border-color:#bfb298; }
.workshop-submit > small { flex:1 1 120px; font-size:.65rem; color:#78694b; }
.workshop-note, .workshop-recipe-cost { font-size:.75rem; color:#786b53; }
.workshop-construction { padding:1rem; align-content:center; text-align:center; background:#f0e7d1; }
.workshop-construction svg { max-height:140px; }
.workshop-construction p { font-size:.8rem; }
.workshop-expand, .workshop-reference { border:1px solid #c8b893; padding:0 .9rem; margin:1rem 0; background:#f1e7d1; }
.workshop-reference > summary span, .workshop-expand > summary span { font-size:.7rem; font-weight:400; }
.workshop-reference p { font-size:.8rem; }
.workshop-build-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:.8rem; margin:.75rem 0; }
.workshop-build-card { display:flex; gap:.8rem; align-items:center; padding:1rem; background:#fff8e8; border:1px solid #c7b38b; }
.workshop-build-card > svg { flex:0 0 95px; width:95px; background:#334438; border:1px solid #697354; }
.workshop-build-card h3 { font:700 1.1rem Arial, Helvetica, sans-serif; margin:0 0 .45rem; }
.workshop-build-card p { font-size:.76rem; margin:.5rem 0; }
.workshop-links { display:flex; flex-wrap:wrap; gap:.2rem 1rem; }
#content .workshop-links a { display:inline-flex; align-items:center; min-height:44px; text-decoration:underline; text-underline-offset:.2em; font-size:.78rem; font-weight:700; }
.workshop-empty { margin:1rem 0; }
.workshop-empty h2 { font:700 1.3rem Arial, Helvetica, sans-serif; }
.workshop-empty p { font-size:.85rem; }
.workshop-task { margin:0 0 .7rem; border:1px solid #bfb193; background:#fff9ed; padding:0 .8rem .25rem; }
.workshop-task > summary { display:flex; align-items:center; gap:.7rem; min-height:64px; cursor:pointer; }
.workshop-task-symbol { font-size:1.8rem; color:#827c48; }
.workshop-task > summary strong { font:700 1rem Arial, Helvetica, sans-serif; }
.workshop-task > summary small { display:block; font-size:.7rem; font-weight:400; margin-top:.3rem; }
.workshop-task > summary::after { content:'+'; margin-left:auto; }
.workshop-task[open] > summary::after { content:'−'; }
.workshop-task form { margin:.5rem 0; }
.workshop-stock-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr)); gap:.5rem; margin:.75rem 0; }
.workshop-stock-grid a { display:flex; gap:.6rem; padding:.5rem; border:1px solid #c6b692; background:#fff8e7; font-size:.75rem; align-items:center; }
.workshop-stock-grid img { width:44px; height:44px; object-fit:contain; }
.workshop-stock-grid strong { display:block; margin-top:.3rem; color:#4d593e; }
.production-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:0; margin:.85rem 0; list-style:none; gap:.35rem; }
.production-steps li { display:flex; align-items:center; gap:.5rem; padding:.6rem .5rem; background:#e7dec8; border-bottom:3px solid #c3b698; }
.production-steps li > span { font:700 1rem Arial, Helvetica, sans-serif; color:#927950; }
.production-steps strong { display:block; font-size:.75rem; }
.production-steps small { display:block; font-size:.62rem; margin-top:.2rem; }
.production-steps .is-current { background:#f2ce97; border-color:#bb703b; }
.production-steps .is-done { background:#dce4cf; border-color:#7a8c64; }
.kiln-workspace { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:1.1rem; }
.kiln-order { background:#fff8e9; border:1px solid #c4ae89; padding:1rem; align-self:start; }
.kiln-product { display:flex; gap:1rem; align-items:center; }
.kiln-product > img { width:94px; height:116px; object-fit:contain; background:radial-gradient(ellipse,#e6c28f,transparent 70%); filter:drop-shadow(0 5px 3px #674c2e22); }
.kiln-product .eyebrow { font-size:.58rem; margin:0 0 .35rem; color:#96643d; }
.kiln-product h2 { font:700 1.5rem Arial, Helvetica, sans-serif; margin:0; }
.kiln-product p { font-size:.82rem; margin:.6rem 0 .3rem; }
.kiln-product small { font-size:.72rem; color:#867049; }
#content .kiln-queue-form { display:grid; gap:.7rem; margin:.9rem 0; }
#content .kiln-queue-form label { display:grid; grid-template-columns:1fr 80px; align-items:center; gap:.5rem; font-size:.83rem; font-weight:700; }
#content .kiln-queue-form input { width:80px; margin:0; }
#content .kiln-queue-form > button { width:100%; background:#a85f35; border-color:#8b4d2a; color:#fff5e5; }
#content .kiln-queue-form > button:disabled { color:#6f644e; background:#dfd7c4; border-color:#b4a98d; }
.kiln-queue-form > small { font-size:.68rem; color:#877054; }
.kiln-batch { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:.75rem; background:#f1dfc2; gap:.7rem; border-left:3px solid #b87740; }
.kiln-batch span { display:block; font-size:.66rem; color:#7c603b; }
.kiln-batch strong { display:block; font:700 1.05rem Arial, Helvetica, sans-serif; margin-top:.35rem; }
.kiln-clay-ledger { padding:.5rem 0; }
.kiln-clay-ledger > a { display:flex; justify-content:space-between; gap:.75rem; min-height:44px; align-items:center; border-top:1px solid #d1bd99; font-size:.8rem; }
#content .kiln-schedule > header { display:flex; justify-content:space-between; align-items:center; padding:.8rem 1rem; background:#453c2e; border-top:3px solid #cd9361; color:#fff2d7; }
.kiln-schedule > header .eyebrow { margin:0 0 .2rem; font-size:.6rem; color:#e0bd85; }
#content .kiln-schedule > header h2 { color:#fff2d7; font:700 1.2rem Arial, Helvetica, sans-serif; margin:0; }
.kiln-schedule > ol { list-style:none; padding:0; margin:0; border:1px solid #c7b393; border-top:0; }
.kiln-job { padding:.85rem; border-top:1px solid #cab89a; background:#fff9ed; }
.kiln-job-heading { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; }
.kiln-job-number { font:700 1rem Arial, Helvetica, sans-serif; color:#92774b; }
.kiln-job-heading strong { display:block; font-size:.85rem; }
.kiln-job-heading small { display:block; font-size:.7rem; margin-top:.3rem; color:#7b6d54; }
.kiln-job-heading form { margin-left:auto; }
#content .kiln-job-heading button { font-size:.6rem; padding:.4rem .6rem; }
.kiln-active-work { display:grid; grid-template-columns:72px minmax(0,1fr); align-items:center; gap:.7rem; }
.kiln-vessel-art { background:radial-gradient(ellipse,#e8b26a77,transparent 75%); }
.kiln-vessel-art img { width:72px; height:110px; object-fit:contain; }
.kiln-active-work .production-progress { font-size:.75rem; }
.kiln-active-work .factory-progress { height:7px; background:#e3d3b8; border:0; }
.kiln-active-work .factory-progress > div { height:100%; background:linear-gradient(90deg,#a96b43,#e4b368); }
.kiln-active-work .production-progress p { font-size:.7rem; }
.kiln-empty { padding:1.2rem; text-align:center; }
.kiln-empty img { width:75px; height:90px; opacity:.65; }
.kiln-empty h3 { font:700 1.15rem Arial, Helvetica, sans-serif; }
.kiln-empty p { font-size:.8rem; color:#7b6c53; }
.water-workbench { display:grid; grid-template-columns:78px minmax(0,1fr); gap:.8rem; align-items:center; padding:.8rem; margin:.7rem 0; border:1px solid #ab985d; background:linear-gradient(115deg,#27372f,#354239); color:#f3e9c1; }
.water-vessel { position:relative; width:72px; height:100px; background:linear-gradient(to top,#c6ad48 calc(var(--fill) * 1%),#ffffff08 0); border:2px solid #d8c081; border-radius:18px 18px 24px 24px; box-shadow:inset 0 0 0 4px #23362f; }
.water-vessel::before { content:''; position:absolute; top:-10px; left:15px; width:38px; height:12px; background:#2a3a2e; border:2px solid #d8c081; border-radius:3px; }
.water-vessel > span { position:absolute; inset:0; display:grid; place-items:center; color:#fff7dd; font:700 1rem Arial, Helvetica, sans-serif; text-shadow:0 1px 4px #000; }
#content .water-workbench .eyebrow { color:#e4ca79; margin:0 0 .4rem; font-size:.6rem; }
#content .water-workbench h4 { color:#fff1cc; font:700 1.1rem Arial, Helvetica, sans-serif; margin:0 0 .5rem; }
#content .water-workbench p { color:#d4d6bc; margin:.4rem 0; font-size:.75rem; }
#content .water-workbench a { color:#eed38b; text-decoration:underline; text-underline-offset:.2em; min-height:44px; display:inline-flex; align-items:center; font-size:.75rem; }
@media(max-width:1100px) {
  .kiln-workspace { grid-template-columns:1fr; }
  .workshop-station-grid { grid-template-columns:1fr; }
  .workshop-composer { border-left:0; border-top:1px solid #cbbb97; }
  .workshop-choices { grid-template-columns:repeat(3,minmax(0,1fr)); max-height:260px; }
}
@media(max-width:600px) {
  .kiln-order { padding:.75rem; }
  .kiln-product { gap:.65rem; }
  .kiln-product > img { width:66px; height:88px; }
  .kiln-product h2 { font-size:1.2rem; }
  .kiln-active-work { grid-template-columns:1fr; }
  .kiln-vessel-art { display:none; }
  .kiln-job-heading form { flex-basis:100%; margin-left:0; }
  .kiln-job-heading button { width:100%; }
  .water-workbench { grid-template-columns:46px minmax(0,1fr); gap:.65rem; padding:.65rem; }
  .water-vessel { width:42px; height:66px; border-radius:12px; }
  .water-vessel::before { width:24px; left:6px; }
  .water-vessel > span { font-size:.7rem; }
  #content .production-hero { grid-template-columns:minmax(0,1fr) 75px; gap:.35rem; padding:1rem .85rem .6rem; }
  #content .production-hero h1 { font-size:1.8rem; }
  #content .production-hero p { font-size:.75rem; }
  #content .production-hero .eyebrow { font-size:.53rem; }
  .production-hero nav { margin-right:-75px; gap:0 .75rem; }
  .production-hero nav a { font-size:.7rem; }
  .production-hero > svg { align-self:start; margin-top:.8rem; }
  .workshop-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .workshop-metrics > div { padding:.6rem .8rem; }
  .workshop-metrics dd { font-size:1.2rem; }
  .workshop-operation, .workshop-composer { padding:.75rem; }
  .workshop-current { grid-template-columns:60px minmax(0,1fr); gap:.6rem; padding:.6rem; }
  .workshop-product-art { min-height:78px; }
  .workshop-product-art img, .workshop-product-art .production-illustration { width:56px; height:65px; }
  #content .workshop-current h3 { font-size:1rem; }
  .workshop-choices { grid-template-columns:repeat(2,minmax(0,1fr)); max-height:265px; }
  #content .production-workshop .workshop-choice { flex-direction:column; align-items:start; gap:.25rem; padding:.5rem; }
  .workshop-choice img { height:38px; width:38px; }
  .workshop-choice strong { font-size:.8rem; }
  .workshop-build-card { align-items:start; padding:.75rem; gap:.6rem; }
  .workshop-build-card > svg { flex-basis:50px; width:50px; }
  .workshop-build-card h3 { font-size:1rem; }
  .workshop-build-card button { width:100%; }
  .workshop-submit > button { flex-basis:100%; }
  .workshop-submit > small { flex-basis:100%; }
  #content .workshop-recipe-tabs button { min-height:44px; }
  .production-steps li { flex-direction:column; align-items:start; }
}
@media(max-width:600px) {
  .city-industry .production-queue li { flex-direction:column; align-items:stretch; }
  .city-industry .production-queue li>div:first-child { flex:1 1 auto; width:100%; }
  .city-industry .production-queue .factory-queue-actions { margin-left:0; }
  .set-form>button { width:100%; }
  .production-materials { padding:.65rem; }
  .production-materials li { gap:.6rem; }
}
/* Keep progressively enhanced controls out of the native fallback layout. */
#content .production-workshop [hidden] { display: none !important; }

/* original-workshop-controls.css */
.workshops-original-page{--ui-ink:var(--ink);--ui-line:var(--line);--ui-muted:var(--muted)}
.workshops-original-page .packing-picker { margin: 0 0 1rem; padding: 0; border: 0; }
.workshops-original-page .packing-picker legend { padding: 0 0 .5rem; font-weight: 700; }
.workshops-original-page .packing-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .5rem; }
#content.workshops-original-page label.packing-choice { display: grid; grid-template-columns: 20px 48px minmax(0, 1fr); align-items: center; gap: .6rem; min-height: 88px; margin: 0; padding: .65rem; color: var(--ui-ink); background: #fffdf7; border: 1px solid var(--ui-line); cursor: pointer; font-size: .85rem; font-weight: 400; }
#content.workshops-original-page label.packing-choice:has(:checked) { border-color: #8c4b00; background: #fff0d7; box-shadow: inset 0 0 0 1px #8c4b00; }
#content.workshops-original-page label.packing-choice:has(:focus-visible) { outline: 3px solid #176a83; outline-offset: 2px; }
#content.workshops-original-page .packing-choice input[type="radio"] { width: 20px; height: 20px; min-height: 20px; margin: 0; }
.workshops-original-page .packing-choice-art { display: grid; flex: 0 0 48px; width: 48px; height: 52px; place-items: center; }
.workshops-original-page .packing-choice-art img { width: 48px; height: 48px; object-fit: contain; }
#content.workshops-original-page .packing-choice span { opacity: 1; }
.workshops-original-page .packing-choice-copy :is(strong, span, small) { display: block; }
.workshops-original-page .packing-choice-copy strong { color: var(--rarity-link-color, var(--ui-ink)); overflow-wrap: anywhere; }
.workshops-original-page .packing-choice-copy span { margin-top: .2rem; }
.workshops-original-page .packing-choice-copy small { margin-top: .2rem; color: var(--ui-muted); font-size: .75rem; }
#content.workshops-original-page .workshop-links a{color:#8c4300;font-weight:700;min-height:44px;display:inline-flex;align-items:center}
.workshops-original-page .context-help>summary::after{display:none}

/* original-drydocks.css */
.keys-drydock-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.keys-drydock-tier, .keys-drydock-reservation { padding: 1rem; border: 1px solid #b4a583; background: #fffaf0; min-width: 0; }
.keys-drydock-tier header { display: flex; gap: .75rem; align-items: center; }
.keys-drydock-tier header img { width: 3rem; height: 3rem; object-fit: contain; flex: none; }
.keys-drydock-tier header h2 { font-size: 1.1rem; margin: 0; }
.keys-drydock-tier header p { margin: .3rem 0 0; font-size: .85rem; }
.keys-drydock-price { font-size: 1.4rem; font-weight: 800; }
.keys-drydock-price small { display: block; font-size: .8rem; font-weight: 400; }
.keys-drydock-tier fieldset { display: grid; gap: .8rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.keys-drydock-tier label { display: grid; gap: .3rem; min-width: 0; }
.keys-drydock-tier select { width: 100%; min-width: 0; max-width: 100%; }
.keys-drydock-tier button { white-space: normal; min-height: 44px; }
.keys-drydock-reservation time { overflow-wrap: anywhere; }
.keys-drydock-help { margin-block: 1.25rem; }

/* convoy-content.css */
#content .convoy-group-card { display: flex; flex-direction: column; }
#content .convoy-group-card > .button:last-child { align-self: flex-end; margin-top: auto; }
#content .fleet-convoy-card > .button { align-self: end; justify-self: end; }
#content .convoy-vehicle-art { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; padding: 0; list-style: none; }
#content .convoy-vehicle-art li { flex: 0 0 88px; }
#content .convoy-vehicle-image { position: relative; display: flex; align-items: center; justify-content: center; width: 88px; height: 80px; text-decoration: none; }
#content .convoy-vehicle-image img { display: block; width: 88px; height: 72px; object-fit: contain; }
#content .convoy-vehicle-image > span { position: absolute; right: 0; bottom: 0; padding: .1rem .3rem; color: var(--ui-paper); background: var(--ui-dark); font-size: .75rem; font-weight: 800; line-height: 1.2; }
#content .convoy-cargo { min-width: 0; margin: .75rem 0; }
#content .convoy-cargo h3 { margin: 0 0 .4rem; font-size: .9rem; }
#content .convoy-cargo p { margin: 0; }
#content .convoy-cargo ul { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
#content .convoy-cargo li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem; }
#content .convoy-cargo .thing-link { display: flex; align-items: center; gap: .4rem; min-width: 0; min-height: 44px; overflow-wrap: anywhere; }
#content .convoy-cargo .thing-link > span:last-child { min-width: 0; }
#content .convoy-cargo img { width: 28px; height: 28px; object-fit: contain; flex: 0 0 28px; }
#content .convoy-cargo li > strong { white-space: nowrap; }

/* original-intoxication.css */
/* Grog is mined like any other Thing; consuming it makes the interface less dependable. */
.grog-drink-form { display: grid; grid-template-columns: minmax(4.5rem, .35fr) 1fr; gap: .45rem; width: 100%; }
.grog-drink-form input { min-width: 0; }
.grog-drink-form button { background: #765026; border-color: #3c2919; }
.intoxication-status { margin: 0 0 1.2rem; padding: 1rem 1.2rem; color: #eee6cb; background: linear-gradient(120deg, #3b2b1e, #596046); border: 2px solid #b18442; box-shadow: inset 0 0 2.5rem rgba(241,209,123,.12); }
.intoxication-status h2 { margin: .15rem 0 .35rem; color: #ffe39a; }
.intoxication-status p:last-child { margin-bottom: 0; }
.intoxicated #grog-screen { filter: blur(var(--grog-blur)) saturate(var(--grog-saturation)); transform-origin: 50% 15%; animation: grog-screen-drift 9s ease-in-out infinite alternate; }
.grog-fog { position: fixed; z-index: 9000; inset: -8vmax; pointer-events: none; opacity: var(--grog-fog-opacity); background: radial-gradient(circle at 22% 24%, rgba(244,233,190,.46), transparent 28%), radial-gradient(circle at 78% 62%, rgba(157,183,161,.38), transparent 34%), repeating-linear-gradient(117deg, rgba(255,255,255,.08) 0 3px, rgba(77,88,75,.05) 3px 12px); mix-blend-mode: screen; backdrop-filter: blur(var(--grog-blur)); }
.grog-visions { position: fixed; z-index: 9001; inset: 0; overflow: hidden; pointer-events: none; }
.grog-vision { position: absolute; left: var(--vision-x); top: var(--vision-y); display: grid; width: min(17rem, 48vw); min-height: 5rem; place-items: end center; padding: 4.8rem .8rem .65rem; color: rgba(235,245,222,.9); background: radial-gradient(ellipse at center, rgba(28,42,34,.72), transparent 67%); filter: blur(.25px) drop-shadow(0 0 1rem rgba(215,244,193,.75)); font: italic 700 .8rem/1.25 Arial, Helvetica, sans-serif; text-align: center; text-shadow: 0 1px 4px #000; animation: grog-vision-arrives var(--vision-duration, 4.2s) ease-in-out both; }
.grog-vision::before { position: absolute; top: .5rem; left: 50%; width: 5.2rem; height: 4.8rem; content: ''; background: rgba(205,230,190,.7); transform: translateX(-50%); }
.grog-vision-dwarf::before { clip-path: polygon(35% 0,65% 0,72% 20%,92% 34%,74% 46%,81% 100%,19% 100%,26% 46%,8% 34%,28% 20%); }
.grog-vision-whale::before { width: 8rem; clip-path: polygon(0 47%,17% 28%,61% 22%,87% 38%,100% 19%,96% 61%,78% 52%,56% 74%,18% 68%); }
.grog-vision-eyes::before { width: 8rem; background: radial-gradient(ellipse at 25% 50%, #dff5c9 0 9%, #172018 11% 20%, transparent 22%), radial-gradient(ellipse at 75% 50%, #dff5c9 0 9%, #172018 11% 20%, transparent 22%); }
.grog-vision-cask::before { border-radius: 45%; box-shadow: inset 0 0 0 .6rem rgba(57,39,24,.55), inset 1.6rem 0 rgba(75,45,24,.45), inset -1.6rem 0 rgba(75,45,24,.45); }
.grog-vision-ghost::before { border-radius: 50% 50% 10% 10%; clip-path: polygon(20% 0,80% 0,100% 100%,74% 82%,52% 100%,30% 82%,0 100%); }
.grog-vision-kraken::before { width: 8rem; height: 5.5rem; background: repeating-radial-gradient(ellipse at 50% 100%, rgba(197,219,181,.78) 0 8%, transparent 10% 20%); border-radius: 55% 55% 20% 20%; clip-path: polygon(22% 0,78% 0,91% 28%,100% 100%,78% 54%,70% 100%,56% 55%,48% 100%,36% 54%,18% 100%,28% 43%,0 85%,10% 25%); }
.grog-vision-council::before { width: 5.4rem; height: 5.4rem; background: #85836c; border: .45rem double rgba(40,42,34,.8); border-radius: 12% 19% 10% 23%; box-shadow: 0 -1.5rem 0 -.8rem #77704d; transform: translateX(-50%) rotate(5deg); }
.grog-vision-tunnel::before { width: 7rem; height: 5rem; background: radial-gradient(ellipse, #090b09 0 22%, #6e715e 24% 31%, #1b231c 34% 43%, #b4c1a5 46% 50%, transparent 52%); }
.grog-vision-fish::before { width: 8rem; height: 4.2rem; clip-path: polygon(0 50%,20% 10%,28% 33%,69% 17%,100% 50%,69% 83%,28% 67%,20% 90%); }
.grog-vision-unicycle::before { width: 5.2rem; height: 5.2rem; background: transparent; border: .5rem solid rgba(205,230,190,.7); border-radius: 50%; box-shadow: 0 -2.4rem 0 -1.85rem rgba(205,230,190,.85); }
.grog-vision-unicycle::after { position: absolute; top: -1.2rem; left: 50%; width: .38rem; height: 4.2rem; content: ''; background: rgba(205,230,190,.75); transform: translateX(-50%) rotate(-8deg); transform-origin: bottom; }
.grog-vision-ore::before { width: 5rem; height: 4.5rem; clip-path: polygon(20% 7%,70% 0,100% 42%,77% 93%,24% 100%,0 55%); background: linear-gradient(135deg, #faf0a4 0 24%, #9cc5ad 26% 52%, #d8ad58 54% 100%); }
.grog-vision-door::before { width: 4rem; height: 5.5rem; background: linear-gradient(90deg, #29352c, #b8c6a8 48% 52%, #202c24 54%); border: .35rem solid rgba(205,230,190,.75); box-shadow: inset -1.1rem 0 1.8rem rgba(223,242,204,.5); }
.grog-vision-moon::before { width: 5.3rem; height: 5.3rem; border-radius: 50%; background: radial-gradient(circle at 68% 30%, rgba(75,85,72,.3) 0 9%, transparent 10%), radial-gradient(circle at 38% 66%, rgba(75,85,72,.25) 0 12%, transparent 13%), #e0e8c9; box-shadow: 0 0 2rem #e8f1ce; }
.grog-vision-copy { position: relative; z-index: 2; }
.grog-vision-thing { position: absolute; z-index: 1; top: .15rem; left: 50%; width: 6rem; height: 5.8rem; object-fit: contain; filter: drop-shadow(0 0 .35rem rgba(238,255,220,.95)) drop-shadow(0 .35rem .55rem rgba(0,0,0,.8)); transform: translateX(-50%) rotate(var(--thing-rotation)); }
.grog-vision-has-thing::before, .grog-vision-has-thing::after { opacity: .18; }
.grog-vision-thing-rarity-4 .grog-vision-thing { filter: drop-shadow(0 0 .55rem rgba(95,184,255,.95)) drop-shadow(0 .35rem .55rem rgba(0,0,0,.8)); }
.grog-vision-thing-rarity-5 .grog-vision-thing { filter: drop-shadow(0 0 .65rem rgba(199,116,255,.95)) drop-shadow(0 .35rem .55rem rgba(0,0,0,.8)); }
.grog-vision-thing-rarity-6 .grog-vision-thing { filter: drop-shadow(0 0 .8rem rgba(255,211,83,1)) drop-shadow(0 .35rem .55rem rgba(0,0,0,.8)); }
.grog-vision-icon-only { width: min(12rem, 38vw); min-height: 7.2rem; padding: 0; background: radial-gradient(ellipse at center, rgba(28,42,34,.62), transparent 68%); }
.grog-vision-icon-only .grog-vision-thing { top: .55rem; width: 8rem; height: 6.5rem; }
.grog-vision-close { width: min(23rem, 68vw); font-size: .95rem; filter: blur(.1px) drop-shadow(0 0 2rem rgba(226,250,207,.95)); }
.grog-vision-close::before { width: 8rem; height: 7rem; }
.grog-vision-close .grog-vision-thing { width: 8.5rem; height: 7rem; }
.grog-logo-two-vanishing { animation: grog-logo-two-vanishes .9s ease-in both; }
.brand.grog-old-wordmark { width: min(21rem, 48vw); height: 4.2rem; overflow: hidden; background: #e7e2da; border: 1px solid #777067; box-shadow: 0 0 1.4rem rgba(255,238,193,.32); transform: rotate(-.45deg); }
.brand.grog-old-wordmark img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.game-body.grog-old-page-background { background: #5e5a57; }
body.game-body.grog-old-page-background::before { opacity: 0; }
.grog-old-page-background #grog-screen { background: #f5efd9 url('/legacy/img/center-bg.jpg') repeat-x; }
.grog-old-page-background .game-shell #divwrapper { background: transparent url('/legacy/img/center-bg.jpg') repeat-x; }
.grog-old-page-background .game-shell #main { background: rgba(245,239,217,.28); }
.grog-old-page-background .game-shell #left { background: #4d5152 url('/legacy/img/nav-bg.jpg') no-repeat top left; }
.grog-old-page-background #grog-screen.game-shell #navcontainer { background: #6f3b17 url('/legacy/img/top-nav-bg.jpg') repeat-x; border-color: #f2ece0; }
.masthead nav a.grog-old-graphic-label { display: grid; min-width: 5.8rem; min-height: 68px; place-items: center; padding: .35rem; background: transparent; }
.masthead nav a.grog-old-graphic-label img { display: block; width: auto; max-width: 100%; height: 47px; object-fit: contain; image-rendering: auto; }
.masthead nav a.grog-old-graphic-label { justify-content: center; min-height: 47px; padding: .15rem .4rem; background: rgba(111,59,23,.58); }
.masthead nav a.grog-old-graphic-label::before { display: none; }
.masthead nav a.grog-old-graphic-label img { display: block; width: auto; max-width: 100%; height: 47px; object-fit: contain; }
.masthead nav a.grog-old-graphic-label-compact { min-height: 34px; }
.masthead nav a.grog-old-graphic-label-compact img { max-width: calc(100% - 1rem); height: 24px; }
.grog-fake-backwards { color: #dcecc8 !important; text-shadow: 0 0 .45rem rgba(202,239,177,.8); }
.grog-fake-swapped { color: #f3d998 !important; text-shadow: .14rem 0 .35rem rgba(107,62,21,.55); transform: translateX(.18rem); }
.grog-fake-scrambled { color: #d5d0ee !important; letter-spacing: .09em !important; text-shadow: -.12rem .08rem .3rem rgba(76,50,112,.48); }
[data-location-weather].grog-fake-lava { color: #ffcf5c; text-shadow: 0 0 .45rem #ff5318; animation: grog-lava-weather .8s ease-in-out infinite alternate; }
.casino-floor-card.grog-fake-jackpot { overflow: visible; border-color: #fff26f; box-shadow: 0 0 1.4rem #ffac24, inset 0 0 1rem rgba(255,240,76,.35); animation: grog-fake-jackpot-pulse .48s steps(2) infinite; }
.grog-fake-jackpot-label { position: absolute; z-index: 3; top: -.65rem; right: -.45rem; padding: .28rem .42rem; color: #421205; background: #fff078; border: 2px solid #ff7e16; box-shadow: 0 0 .8rem #ffcb28; font: 900 .62rem/1 Arial, sans-serif; letter-spacing: .08em; transform: rotate(4deg); }
.grog-fake-jackpot-machine { animation: grog-fake-jackpot-pulse .48s steps(2) infinite; }
.grog-fake-jackpot-banner { position: absolute; z-index: 20; top: 1rem; right: -.7rem; max-width: min(28rem, 80%); padding: .65rem .9rem; color: #4a1603; background: linear-gradient(110deg, #ff9421, #fff39a, #f6b01d); border: 3px double #701e06; box-shadow: 0 0 1.8rem #ffb51f; font: 900 1rem/1 "Arial Narrow", Impact, sans-serif; letter-spacing: .08em; text-align: center; transform: rotate(3deg); }
body.grog-screen-shake #grog-screen { animation: grog-screen-shake .85s cubic-bezier(.36,.07,.19,.97) both; }
body.grog-screen-zoom-in #grog-screen { transform-origin: 50% 32%; animation: grog-screen-zoom-in 2.4s ease-in-out both; }
body.grog-screen-zoom-out #grog-screen { transform-origin: 50% 32%; animation: grog-screen-zoom-out 2.6s ease-in-out both; }
@media (prefers-reduced-motion: reduce) {
  .intoxicated #grog-screen, .grog-vision, .grog-logo-two-vanishing,
  [data-location-weather].grog-fake-lava,
  .casino-floor-card.grog-fake-jackpot, .grog-fake-jackpot-machine { animation: none; }
  body.grog-screen-shake #grog-screen,
  body.grog-screen-zoom-in #grog-screen,
  body.grog-screen-zoom-out #grog-screen { animation: none; transform: none; }
  .grog-vision { opacity: .65; transform: translateX(-50%); }
}
@media (max-width: 600px) {
  .grog-drink-form { grid-template-columns: 1fr; }
}


/* original-bars.css */
.place-heraldry{ display: flex; align-items: center; gap: .8rem; min-width: 0; max-width: 100%; margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid #8c7850; border-left: 4px solid #cba969; color: #fff0cb; background: #242c29; box-shadow: 0 3px 8px #0002; }
.place-heraldry .region-flag{ display: block; margin: 0; }
.place-heraldry .city-symbol{ margin: 0; }
.heraldry-flag-mount{ flex: 0 0 auto; }
.heraldry-place-names{ display: grid; gap: .18rem; min-width: 0; }
.heraldry-place-names strong{ color: #fff0cb; font: 800 1rem/1.15 Arial, Helvetica, sans-serif; overflow-wrap: anywhere; }
.heraldry-place-names > span{ color: #d0c6af; font: 700 .63rem/1.3 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; overflow-wrap: anywhere; }
.place-heraldry-wall, .place-heraldry-mast, .place-heraldry-home{ width: fit-content; justify-self: end; grid-column: 1 / -1; padding: .75rem 1rem; color: #fff0cb; background: #1b211de8; border: 2px solid #907748; box-shadow: 0 4px 0 #121916, 0 8px 20px #0005; }
.place-heraldry-mast .heraldry-flag-mount{ padding: 0 0 5px 2px; border-left: 2px solid #b8a47e; }
.place-heraldry-home{ margin-left: auto; }
.place-heraldry-compact{ padding: .5rem .65rem; gap: .55rem; border: 0; border-bottom: 1px solid #8c7850; box-shadow: none; }
.city-explore-location > .place-heraldry{ margin-bottom: 1rem; }
.city-home-interior > .place-heraldry{ margin-bottom: 1.5rem; }
@media (max-width: 520px){.place-heraldry{ gap: .6rem; padding: .6rem .7rem; }
.place-heraldry-wall, .place-heraldry-mast, .place-heraldry-home{ justify-self: stretch; width: auto; }
.heraldry-place-names strong{ font-size: .9rem; }
.heraldry-place-names > span{ font-size: .6rem; letter-spacing: .06em; }
}
.city-bar-page .text-link, .bar-message > a, .bar-presence a{ display: inline; padding: 0; border: 0; background: transparent; }
.city-bar-interior{ position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; min-height: 19rem; align-items: end; overflow: hidden; margin-bottom: 1rem; padding: clamp(1.4rem, 4vw, 2.5rem); color: #f5ead2; background: #17130f; box-shadow: 0 18px 35px rgba(25,20,12,.24); }
.city-bar-interior::before{ content: ''; position: absolute; z-index: -3; inset: 0; background-image: linear-gradient(90deg, rgba(17,12,9,.96) 0 42%, rgba(17,12,9,.55)), var(--bar-map); background-position: center; background-size: cover; filter: saturate(.7) sepia(.18); }
.city-bar-interior::after{ content: ''; position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 74% 22%, rgba(244,165,52,.24), transparent 22%), linear-gradient(180deg, transparent 55%, rgba(5,4,3,.72)); }
.bar-backdrop{ position: absolute; z-index: -1; inset: 0 0 0 42%; }
.bar-counter{ position: absolute; right: -4%; bottom: 2.2rem; width: 87%; height: 4rem; border-top: .65rem solid #bd7b2d; background: linear-gradient(180deg, #5b331e, #261911); box-shadow: 0 1rem 1.5rem rgba(0,0,0,.55); }
.bar-bottles{ position: absolute; top: 24%; right: 8%; width: 62%; height: 5.3rem; border-bottom: .45rem solid #6f4a2b; background: repeating-linear-gradient(90deg, transparent 0 7%, #47715b 7% 10%, transparent 10% 14%, #9b5b35 14% 17%, transparent 17% 22%, #c0a24d 22% 24%, transparent 24% 30%); filter: drop-shadow(0 .3rem .25rem #000); }
.bar-lamp{ position: absolute; top: 0; width: 1px; height: 5rem; background: #443728; }
.bar-lamp::after{ content: ''; position: absolute; bottom: -.1rem; left: -.8rem; width: 1.65rem; height: 1.2rem; background: #f0b34d; clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%); box-shadow: 0 0 2rem #ef9b30; }
.bar-lamp-left{ left: 24%; }
.bar-lamp-right{ right: 21%; }
.bar-stool{ position: absolute; bottom: 0; width: 2.6rem; height: 3.8rem; border-top: .65rem solid #9a6330; border-right: .35rem solid #51351f; border-left: .35rem solid #51351f; transform: skewX(-3deg); }
.bar-stool-one{ left: 23%; }
.bar-stool-two{ left: 49%; }
.bar-stool-three{ left: 74%; }
.bar-intro{ position: relative; max-width: 37rem; }
.bar-intro h2{ margin: .2rem 0 .7rem; color: #fff4da; font-size: clamp(2rem, 5vw, 3.7rem); line-height: .98; }
.bar-intro p:last-child{ max-width: 34rem; color: #d0c2ab; line-height: 1.55; }
.city-bar-interior dl{ position: relative; display: flex; margin: 0; background: rgba(8,7,5,.82); }
.city-bar-interior dl div{ min-width: 6.5rem; padding: .85rem; }
.city-bar-interior dt{ color: #aa9c87; font: 800 .55rem/1.2 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.city-bar-interior dd{ margin: .3rem 0 0; color: #ffd783; font: 900 1.05rem/1.2 Arial, sans-serif; }
.bar-grog-menu{ margin-bottom: 1rem; padding: 1.1rem; color: #f1e8d5; background: linear-gradient(145deg, #231b13, #111511); border-top: 4px solid #ad7330; box-shadow: 0 .8rem 1.6rem rgba(36,28,18,.15); }
.bar-grog-menu > header{ display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.bar-grog-menu > header h2, .bar-grog-menu > header p{ margin: 0; }
.bar-grog-menu > header h2{ color: #fff2cf; }
.bar-grog-menu > header p:last-child{ max-width: 42rem; margin-top: .3rem; color: #bdb09a; }
.bar-grog-menu > header dl{ display: flex; flex: 0 0 auto; margin: 0; background: rgba(0,0,0,.28); }
.bar-grog-menu > header dl div{ min-width: 7.5rem; padding: .65rem .8rem; }
.bar-grog-menu > header dt{ color: #9d917d; font: 800 .55rem/1.2 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.bar-grog-menu > header dd{ margin: .25rem 0 0; color: #f4c96f; font-weight: 900; }
.bar-grog-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.bar-grog-offer{ display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .7rem; align-items: center; padding: .85rem; background: rgba(255,249,231,.08); border: 1px solid #554938; }
.bar-grog-offer img{ width: 4.2rem; height: 4.2rem; object-fit: contain; filter: drop-shadow(0 .35rem .35rem rgba(0,0,0,.5)); }
.bar-grog-offer h3, .bar-grog-offer p{ margin: 0; }
.bar-grog-offer h3{ color: #fff1cb; font-size: 1rem; }
.bar-grog-offer div > p:not(.eyebrow){ min-height: 2.2rem; margin: .25rem 0; color: #bcb09e; font-size: .72rem; line-height: 1.35; }
.bar-grog-offer div > span{ color: #e3b85c; font: 900 .66rem/1.2 Arial, sans-serif; text-transform: uppercase; }
.bar-grog-offer form{ grid-column: 1 / -1; margin: 0; }
.bar-grog-offer button{ width: 100%; margin: 0; background: #765026; border-color: #b8863d; }
.bar-grog-strongest{ background: linear-gradient(145deg, rgba(126,82,31,.28), rgba(93,45,34,.2)); border-color: #a77939; }
.bar-workspace{ display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 1rem; }
.bar-conversation{ min-width: 0; color: #ece6d9; background: #111511; border-top: 4px solid #d58b2b; box-shadow: 0 .8rem 1.6rem rgba(36,28,18,.15); }
.bar-conversation > header{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 0; padding: .85rem 1rem; color: inherit; background: #181d18; border: 0; border-bottom: 1px solid #364038; }
.bar-conversation > header h2, .bar-conversation > header p{ margin: 0; color: #fff4dd; }
.bar-live-status{ color: #b9aa91; font: 800 .65rem/1.2 Arial, sans-serif; text-transform: uppercase; }
.bar-live-status::before{ content: ''; display: inline-block; width: .58rem; height: .58rem; margin-right: .38rem; background: #80786a; border-radius: 50%; vertical-align: -.05rem; }
.bar-live-status.is-live::before{ background: #72b76a; box-shadow: 0 0 .45rem #72b76a; }
.bar-chat-log{ height: 27rem; overflow-y: auto; }
.bar-message{ display: grid; grid-template-columns: minmax(7.5rem, .3fr) minmax(0, 1fr) auto; gap: .8rem; align-items: start; padding: .8rem 1rem; border-bottom: 1px solid #303730; box-shadow: inset 4px 0 color-mix(in srgb, var(--bar-speaker, #55666b) 70%, white); }
.bar-message > a{ color: color-mix(in srgb, var(--bar-speaker, #d5a64e) 38%, white); font-weight: 400; text-decoration: underline; overflow-wrap: anywhere; }
.bar-message .chat-entity-link{ --link: #eed19a; }
.bar-message.is-own > a::after{ content: ' · you'; color: #8e978e; font-size: .62rem; text-transform: uppercase; }
.bar-message p{ margin: 0; color: #e6dfd0; line-height: 1.45; overflow-wrap: anywhere; }
.bar-message time{ color: #899288; font-size: .65rem; white-space: nowrap; }
.bar-chat-empty{ display: grid; min-height: 100%; place-content: center; gap: .3rem; padding: 2rem; color: #8e978d; text-align: center; }
.bar-chat-empty strong{ color: #d9d1c1; }
.bar-compose{ display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; align-items: end; margin: 0; padding: .85rem 1rem; background: #0b0e0b; border-top: 1px solid #364038; }
.bar-compose label{ margin: 0; }
.bar-compose label span{ display: block; margin-bottom: .3rem; color: #a49b8b; font: 800 .57rem/1.2 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.bar-compose input{ width: 100%; margin: 0; color: #24251f; background: #fff9eb; }
.bar-compose-locked{ display: grid; gap: .2rem; color: #a89f8f; }
.bar-presence{ align-self: start; padding: 1rem; background: rgba(255,252,244,.72); box-shadow: inset 0 0 0 1px #cfbea0; }
.bar-presence > header h2, .bar-presence > header p{ margin: 0; }
.bar-presence ul{ display: grid; gap: .35rem; margin: .9rem 0; padding: 0; list-style: none; }
.bar-presence li{ display: grid; grid-template-columns: .7rem minmax(0, 1fr); gap: .05rem .45rem; align-items: center; padding: .55rem; background: rgba(255,255,255,.6); }
.bar-presence li i{ grid-row: 1 / 3; width: .62rem; height: .62rem; background: #67a85d; border-radius: 50%; box-shadow: 0 0 .35rem rgba(64,140,67,.55); }
.bar-presence li a{ color: #7f4b08; font-weight: 900; overflow-wrap: anywhere; }
.bar-presence li span{ color: #756c5e; font-size: .64rem; }
.bar-gold-exchange{ margin: 1rem 0; padding: .85rem; color: #f0e5ce; background: linear-gradient(145deg, #3a2a18, #201d18); border: 1px solid #9c6b2e; }
.bar-gold-exchange h3, .bar-gold-exchange p{ margin: 0; }
.bar-gold-exchange > p:not(.eyebrow){ margin-top: .25rem; color: #cfc0a8; font-size: .74rem; line-height: 1.4; }
.bar-gold-exchange form{ display: grid; gap: .5rem; margin: .75rem 0 .55rem; }
.bar-gold-exchange label{ margin: 0; color: #d7c9b0; font: 800 .6rem/1.2 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.bar-gold-exchange input{ width: 100%; margin: .3rem 0 0; color: #211c15; background: #fff8e9; }
.bar-gold-exchange button{ width: 100%; margin: 0; }
.bar-gold-exchange small{ display: block; color: #a99b84; font-size: .66rem; line-height: 1.4; }
.bar-privacy-note{ margin: 1rem 0; padding: .8rem; color: #dcd5c7; background: #252a24; }
.bar-privacy-note p{ margin: .35rem 0 0; color: #bbb3a5; font-size: .74rem; line-height: 1.45; }
.bar-presence > form, .bar-presence > form button{ width: 100%; margin: 0; }
@media (max-width: 780px){.city-bar-interior, .bar-workspace, .bar-grog-grid{ grid-template-columns: 1fr; }
.bar-grog-menu > header{ align-items: flex-start; flex-direction: column; }
.bar-grog-menu > header dl{ width: 100%; }
.bar-grog-menu > header dl div{ flex: 1; min-width: 0; }
.bar-backdrop{ left: 24%; opacity: .58; }
.city-bar-interior dl{ flex-wrap: wrap; }
.bar-message{ grid-template-columns: minmax(6rem, .35fr) minmax(0, 1fr); }
.bar-message time{ grid-column: 1; }
}
@media (max-width: 520px){.bar-compose{ grid-template-columns: 1fr; }
.bar-compose button{ width: 100%; }
.bar-message{ grid-template-columns: 1fr auto; gap: .25rem .7rem; }
.bar-message p{ grid-column: 1 / -1; }
.bar-message time{ grid-column: 2; grid-row: 1; }
}

/* original-city-venues.css */
/* City destinations share materials and a compact shell; each venue keeps its craft. */
.city-venue {
  --venue-accent: #b87c27;
  --venue-ink: #203029;
  --venue-paper: #fffaf0;
  --venue-line: #c8b89a;
  min-width: 0;
  color: var(--venue-ink);
}
.city-venue-travel { --venue-accent: #43818b; }
.city-venue-life { --venue-accent: #718e5b; }
.city-venue .city-return {
  display: flex;
  flex-wrap: nowrap;
  gap: .7rem;
  min-height: 48px;
  padding: 0 .85rem;
  background: #202c26;
  border-top: 3px solid var(--venue-accent);
  border-radius: 3px 3px 0 0;
}
.city-venue .city-return a {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-height: 44px;
  min-width: 44px;
  color: #f7dfa8;
  font-size: .8rem;
  text-underline-offset: 3px;
}
.city-venue .city-return > span {
  flex: 1;
  min-width: 0;
  font-size: .75rem;
  gap: .4rem;
}
.city-venue .city-return .city-service-icon { width: 20px; height: 20px; }
.city-venue .city-return > small { white-space: nowrap; font-size: .65rem; }
.city-venue-interests {
  margin: 0;
  padding: 0;
  background: #e7e6d7;
  border: 1px solid #bdc2ad;
  border-top: 0;
}
.city-venue-interests > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  min-height: 44px;
  padding: .45rem .85rem;
  cursor: pointer;
  list-style: none;
}
.city-venue-interests > summary::-webkit-details-marker { display: none; }
.city-venue-interests > summary > span:first-child { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.city-venue-interests summary small { color: #52624e; font-size: .65rem; text-transform: uppercase; letter-spacing: .04em; }
.city-venue-interests summary strong { color: #293c2e; font-size: .8rem; font-weight: 700; }
.city-interest-expand { color: #465844; font-size: .7rem; white-space: nowrap; }
.city-interest-expand::after { content: ' +'; font-size: 1rem; }
.city-venue-interests[open] .city-interest-expand::after { content: ' −'; }
.city-venue-interests .city-interest-stats { padding: .5rem .85rem .85rem; gap: .65rem 1.3rem; border-top: 1px solid #cbd0bd; }
.city-venue-interests .city-interest-stats dd { font-size: 1.1rem; }
.city-venue-interests .city-interest-stats dt { font-size: .7rem; }
.city-venue-body { padding-top: .9rem; }
.game-shell .city-venue-body .page-title {
  align-items: center;
  gap: .5rem 1.1rem;
  margin: 0 0 .9rem;
  padding: 0 0 .8rem;
}
.game-shell .city-venue-body .page-title h1 {
  font: 800 clamp(1.7rem, 3vw, 2.65rem)/1.06 'Arial Narrow', Arial, sans-serif;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.game-shell .city-venue-body .page-title .eyebrow { font-size: .62rem; margin-bottom: .3rem; }
.game-shell .city-venue-body .page-title > p { font-size: .8rem; line-height: 1.45; }
.city-venue-body :is(button, .button, input:not([type='checkbox']):not([type='radio']), select) { min-height: 44px; }
.city-venue-body :is(input, select, textarea) { max-width: 100%; }
.city-venue-body :is(button, .button) { white-space: normal; }
.city-venue-body :is(button, .button, a, summary):focus-visible,
.city-venue .city-return a:focus-visible,
.city-venue-interests summary:focus-visible { outline: 3px solid #b66f14; outline-offset: 3px; }
.city-venue-body .table-scroll { max-width: 100%; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scrollbar-width: thin; }
.city-venue-body :is(h1, h2, h3, p, label) { overflow-wrap: anywhere; }
.city-venue-body :is(details, section, article, form, fieldset) { min-width: 0; }
.city-venue-body details > summary { min-height: 44px; cursor: pointer; }
.city-venue-body [hidden] { display: none !important; }
/* The Oil Field is an instrument panel: put the board and its controls first. */
.city-venue-body .oil-workspace {
  border: 1px solid #75836c;
  border-top: 4px solid #b88936;
  background: #d9dfce;
  box-shadow: 0 5px 18px #25352512;
}
.city-venue-body .oil-board-heading { padding: .4rem .35rem; }
.city-venue-body .oil-board-heading h2 { font-family: Arial, Helvetica, sans-serif; color: #22392b; }
.city-venue-body .oil-inspector {
  background: #fffaf0;
  border: 1px solid #aab696;
  border-top: 3px solid #5b7755;
  border-radius: 3px;
}
.city-venue-body .oil-board-navigation { background: #25382c; border-radius: 3px 3px 0 0; }
.city-venue-body #oil-zoom-level { color: #f4e8cc; }
.city-venue-body .oil-board-status { padding: .35rem; margin: 0; font-size: .72rem; color: #3f583e; }
.city-venue-body .oil-hex-actions button { min-height: 44px; }
.city-venue-body .oil-handbook,
.city-venue-body .oil-events { background: #f8f2e5; border-radius: 3px; }
.city-venue-body .oil-title > p { display: block; }
.city-venue-body .casino-lobby { margin-top: 0; }
.city-venue-body .city-civic-page > .page-title > .text-link { display: none; }
@media (max-width: 760px) {
  .city-venue .city-return { padding-inline: .65rem; gap: .65rem; }
  .city-venue .city-return a { max-width: 57%; font-size: .76rem; }
  .city-venue .city-return > span { font-size: .68rem; }
  .city-venue .city-return > small { display: none; }
  .city-venue-interests > summary { padding-inline: .65rem; }
  .city-venue-interests > summary > span:first-child { gap: .2rem .65rem; }
  .city-venue-body { padding-top: .75rem; }
  .game-shell .city-venue-body .page-title { margin-bottom: .75rem; padding-bottom: .65rem; gap: .45rem; }
  .game-shell .city-venue-body .page-title > div { flex-basis: 100%; }
  .game-shell .city-venue-body .page-title h1 { font-size: 1.7rem; }
  .game-shell .city-venue-body .page-title > p { font-size: .76rem; }
  .city-venue-body :is(input:not([type='checkbox']):not([type='radio']), select, textarea) { font-size: 16px; }
  .city-venue-body .oil-title > p { font-size: .7rem; }
  .city-venue-body .oil-workspace { margin-inline: -.2rem; padding: .3rem; }
  .city-venue-body .oil-board-heading { padding: .1rem; }
  .city-venue-body .oil-workspace .oil-board-navigation { grid-template-columns: 44px 2.4rem 44px minmax(0, 1fr) minmax(0, 1fr); }
  .city-venue-body #oil-fit-board { font-size: .65rem; padding-inline: .1rem; white-space: nowrap; }
  .city-venue-body .oil-workspace .oil-field-board-shell { height: clamp(225px, 34dvh, 340px); min-height: 225px; }
  .city-venue-body .oil-inspector { position: relative; gap: .4rem; padding: .5rem; }
  .city-venue-body .oil-inspector select { font-size: 16px; }
  .city-venue-body .casino-floor { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-bottom: .75rem; }
  .city-venue-body .casino-floor-card { gap: .3rem; padding: .65rem .7rem; box-shadow: none; }
  .city-venue-body .casino-floor-card strong { font-size: .8rem; line-height: 1.25; }
  .city-venue-body .casino-floor-card small { display: none; }
  .city-venue-body .casino-floor-card > span { font-size: .65rem; line-height: 1.4; }
  .city-venue-body .casino-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: .65rem; box-shadow: none; }
  .city-venue-body .casino-stats div { padding: .5rem; }
  .city-venue-body .casino-stats div:last-child { grid-column: auto; }
  .city-venue-body .casino-stats dt { font-size: .56rem; line-height: 1.3; letter-spacing: .05em; }
  .city-venue-body .casino-stats dd { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .city-venue *, .city-venue *::before, .city-venue *::after { scroll-behavior: auto; }
}

/* original-bar-places.css */

.city-venue-body .city-home-interior > .place-heraldry{ grid-column: 2; grid-row: 1; align-self: center; }
.city-venue-body .city-bar-interior{ min-height: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .6rem 1rem; padding: .85rem 1rem; margin-bottom: .6rem; border-radius: 4px; border-top: 3px solid #b38940; box-shadow: 0 4px 14px #3c332314; }
.city-venue-body .city-bar-interior > .place-heraldry{ grid-column: 1; grid-row: 1; justify-self: start; }
.city-venue-body .bar-intro{ grid-column: 1; grid-row: 2; }
.city-venue-body .bar-intro .eyebrow{ display: none; }
.city-venue-body .bar-intro p:last-child{ margin: 0; max-width: 48ch; font-size: .8rem; line-height: 1.4; }
.city-venue-body .city-bar-interior dl{ grid-column: 2; grid-row: 1 / 3; align-self: center; border: 1px solid #766449; }
.city-venue-body .city-bar-interior dl div{ min-width: 4.5rem; padding: .65rem; }
.city-venue-body .city-bar-interior dd{ font-size: 1.25rem; }
.city-venue-body .bar-workspace{ gap: .75rem; grid-template-columns: minmax(0, 1fr) minmax(14rem, .44fr); align-items: start; }
.city-venue-body .bar-conversation{ border-radius: 4px; overflow: hidden; }
.city-venue-body .bar-conversation > header{ gap: .5rem; padding: .75rem; }
.city-venue-body .bar-conversation > header h2{ font: 700 1.2rem/1.2 Arial, Helvetica, sans-serif; }
.city-venue-body .bar-live-status{ flex: 0 0 auto; max-width: 8rem; font-size: .6rem; }
.city-venue-body .bar-compose{ grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; padding: .7rem; border-top: 0; border-bottom: 1px solid #45503f; }
.city-venue-body .bar-compose button{ margin: 0; width: auto; }
.city-venue-body .bar-compose-locked{ grid-template-columns: minmax(0, 1fr); }
.city-venue-body .bar-chat-log{ height: clamp(12rem, 32vh, 23rem); min-height: 0; overflow-x: hidden; overflow-y: auto; touch-action: pan-y; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
.city-venue-body .bar-chat-empty{ min-height: 100%; padding: 1.1rem; font-size: .83rem; line-height: 1.5; }
.city-venue-body .bar-message{ padding: .65rem .75rem; gap: .25rem .65rem; }
.city-venue-body .bar-message a, .city-venue-body .bar-presence a{ font-weight: 400; }
.city-venue-body .bar-message p{ font-size: .88rem; }
.city-venue-body .bar-presence{ min-width: 0; padding: .85rem; border-radius: 4px; }
.city-venue-body .bar-presence h2{ font-size: 1.35rem; }
.city-venue-body .bar-presence ul{ max-height: 12rem; overflow-y: auto; touch-action: pan-y; overscroll-behavior-y: contain; }
.city-venue-body .bar-presence li a{ min-height: 44px; display: inline-flex; align-items: center; }
.city-venue-body .bar-gold-exchange{ margin-top: .7rem; padding-top: .7rem; }
.city-venue-body .bar-gold-exchange > p{ font-size: .8rem; line-height: 1.5; }
.city-venue-body .bar-gold-exchange form{ gap: .5rem; }
.city-venue-body .bar-gold-exchange small{ font-size: .72rem; line-height: 1.5; }
.city-venue-body .bar-privacy-note{ margin-top: .8rem; padding: 0; border: 1px solid #c8b89a; }
.city-venue-body .bar-privacy-note > summary{ font-size: .82rem; padding: .65rem; }
.city-venue-body .bar-privacy-note > p{ margin: 0; padding: .65rem; font-size: .8rem; }
.city-venue-body .bar-presence > form{ margin: .65rem 0 0; }
.city-venue-body .bar-presence > form button{ width: 100%; }
.city-venue-body .bar-grog-menu{ margin: .85rem 0 0; padding: 1rem; border-radius: 4px; }
.city-venue-body .bar-grog-menu h2{ color: #fff2cf; font-size: 1.45rem; }
.city-venue-body .bar-grog-menu > header{ align-items: start; gap: .6rem; }
.city-venue-body .bar-grog-menu > header p:last-child{ font-size: .8rem; }
.city-venue-body .bar-grog-menu > header dl div{ min-width: 5.5rem; padding: .55rem .65rem; }
.city-venue-body .bar-grog-menu > p a{ color: #f5d28e; }
.city-venue-body .bar-grog-grid{ gap: .55rem; }
.city-venue-body .bar-grog-offer{ grid-template-columns: 3rem minmax(0, 1fr); padding: .7rem; gap: .55rem; }
.city-venue-body .bar-grog-offer img{ width: 3rem; height: 3rem; }
.city-venue-body .bar-grog-offer div > p:not(.eyebrow){ min-height: 0; }
.city-venue-body .bar-grog-offer button{ font-size: .8rem; }
@media (max-width: 780px){
.city-venue-body .bar-presence ul{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.city-venue-body .bar-grog-grid{ grid-template-columns: minmax(0, 1fr); }
.city-venue-body .bar-grog-offer{ grid-template-columns: 3rem minmax(0, 1fr) minmax(9rem, .7fr); }
.city-venue-body .bar-grog-offer form{ grid-column: auto; }
}
@media (max-width: 520px){
.city-venue-body .city-home-interior > .place-heraldry{ grid-column: 1; grid-row: 1; justify-self: stretch; }
.city-venue-body .city-bar-interior{ gap: .5rem; padding: .65rem; }
.city-venue-body .city-bar-interior > .place-heraldry{ grid-column: 1; padding: .35rem; }
.city-venue-body .city-bar-interior .heraldry-place-names > span{ display: none; }
.city-venue-body .city-bar-interior .heraldry-place-names strong{ overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .74rem; }
.city-venue-body .bar-intro{ grid-column: 1 / -1; }
.city-venue-body .city-bar-interior dl{ grid-row: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 6.5rem; }
.city-venue-body .city-bar-interior dl div{ min-width: 0; padding: .4rem; }
.city-venue-body .city-bar-interior dt{ font-size: .5rem; letter-spacing: .03em; }
.city-venue-body .city-bar-interior dd{ font-size: 1.1rem; }
.city-venue-body .bar-conversation > header h2{ font-size: 1.1rem; }
.city-venue-body .bar-live-status{ max-width: 4.8rem; line-height: 1.4; }
.city-venue-body .bar-compose{ padding: .6rem; }
.city-venue-body .bar-compose button{ padding-inline: .65rem; font-size: .78rem; }
.city-venue-body .bar-chat-log{ height: 13rem; }
.city-venue-body .bar-message{ grid-template-columns: minmax(0, 1fr) auto; }
.city-venue-body .bar-message > p{ grid-column: 1 / -1; }
.city-venue-body .bar-message > time{ grid-column: 2; grid-row: 1; }
.city-venue-body .bar-grog-menu{ padding: .75rem; }
.city-venue-body .bar-grog-menu > header{ flex-direction: column; }
.city-venue-body .bar-grog-menu > header dl{ width: 100%; }
.city-venue-body .bar-grog-menu > header dl div{ flex: 1; }
.city-venue-body .bar-grog-offer{ grid-template-columns: 3rem minmax(0, 1fr); }
.city-venue-body .bar-grog-offer form{ grid-column: 1 / -1; }
}

/* original-passengers.css */

.city-venue-body .city-railway-page .page-title{ gap: .5rem; }
.city-venue-body .city-railway-page .passenger-balance{ flex: 0 1 auto; display: grid; gap: .15rem; padding: .55rem .75rem; color: #273e37; border-left: 3px solid #b88a40; background: #e9dfc8; }
.city-venue-body .passenger-balance > span{ color: #6a604d; font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; }
.city-venue-body .passenger-balance > strong{ font-size: 1.15rem; }
.passenger-service-strip{ display: flex; align-items: center; gap: .8rem; margin-bottom: .85rem; padding: .75rem 1rem; color: #f6edd8; background: #243b39; border-top: 3px solid #b39550; border-radius: 4px; }
.passenger-service-strip > p{ display: grid; gap: .2rem; margin: 0; }
.passenger-service-strip strong{ color: #f4d398; font: 700 1.05rem Arial, Helvetica, sans-serif; }
.passenger-service-strip p > span{ color: #c6d1c5; font-size: .78rem; line-height: 1.4; }
.passenger-line-icon{ font: 400 2rem/1 Arial, Helvetica, sans-serif; color: #e5ba63; }
.passenger-ticket-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.city-venue-body .city-railway-page .passenger-ticket{ padding: .85rem; border-top: 4px solid #57816f; border-radius: 4px; background: #fffaf0; }
.city-venue-body .city-railway-page .ticket-closed{ border-top-color: #8c8170; background: #f1ebdf; }
.city-venue-body .passenger-ticket > header{ display: flex; align-items: start; flex-wrap: wrap; gap: .4rem; justify-content: space-between; margin-bottom: .8rem; }
.city-venue-body .passenger-ticket > header .eyebrow{ margin: 0 0 .2rem; }
.city-venue-body .passenger-ticket h3{ margin: 0; color: #263f37; font: 700 1.45rem/1.2 Arial, Helvetica, sans-serif; }
.passenger-ticket-state{ display: inline-block; padding: .3rem .4rem; background: #e1eadc; color: #3c5a45; font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; }
.ticket-closed .passenger-ticket-state{ background: #e0d5c4; color: #635443; }
.passenger-ticket-facts{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; padding: .7rem 0; margin: 0; border-block: 1px solid #ddcfb5; }
.passenger-ticket-facts dt{ margin-bottom: .25rem; color: #74684f; font-size: .63rem; text-transform: uppercase; letter-spacing: .05em; }
.passenger-ticket-facts dd{ margin: 0; color: #364c3e; font-size: .83rem; font-weight: 700; }
.city-venue-body .passenger-ticket > p{ margin: .65rem 0; font-size: .83rem; }
.city-venue-body .passenger-ticket form{ margin: .65rem 0 0; }
.city-venue-body .passenger-ticket form button{ width: 100%; }
.passenger-fare-shortfall{ color: #815235; }
.passenger-booking-note{ margin: .6rem 0 1rem; color: #6b604e; font-size: .78rem; line-height: 1.5; }
.city-venue-body .passenger-journey{ margin: 0 0 1rem; padding: 1rem; background: #223b36; border-top: 4px solid #cb9a45; border-radius: 4px; color: #e8e6d4; }
.city-venue-body .passenger-journey > .eyebrow{ margin: 0; color: #dfbc7b; }
.city-venue-body .passenger-journey h2{ margin: .4rem 0 .7rem; color: #fff0cd; font: 700 1.5rem/1.25 Arial, Helvetica, sans-serif; }
.city-venue-body .passenger-countdown{ display: block; margin-bottom: .6rem; color: #efd28b; font-size: 1rem; }
.city-venue-body .passenger-journey progress{ width: 100%; height: .65rem; accent-color: #d2a65b; }
.city-venue-body .passenger-journey p:not(.eyebrow){ color: #c4cebf; font-size: .84rem; line-height: 1.5; }
.city-venue-body .passenger-arrival-time{ font-size: .76rem; }
.city-venue-body .passenger-line{ margin-top: 1rem; padding: .9rem; border: 1px solid var(--venue-line, #c8b89a); border-radius: 4px; background: #ede8db; }
.city-venue-body .passenger-line > header .eyebrow{ margin: 0; }
.city-venue-body .passenger-line h2{ margin: .2rem 0 .6rem; font: 700 1.4rem Arial, Helvetica, sans-serif; }
.city-venue-body .passenger-network{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0; }
.city-venue-body .passenger-network li{ display: grid; grid-template-columns: 1.65rem minmax(0, 1fr); align-content: start; gap: .5rem; min-width: 0; padding: .7rem; border: 1px solid #b3bba6; border-top: 3px solid #758675; background: #f8f4e8; }
.city-venue-body .passenger-network li.is-current{ border-color: #6b8871; background: #e3eadb; }
.city-venue-body .passenger-network li.is-undiscovered{ border-top-style: dashed; }
.city-venue-body .passenger-network .passenger-station-number{ display: grid; place-items: center; width: 1.65rem; height: 1.65rem; margin: 0; color: #f7eed9; background: #556e5d; border-radius: 50%; font-size: .65rem; }
.city-venue-body .passenger-network li > div{ min-width: 0; }
.city-venue-body .passenger-network li :is(strong, small), .city-venue-body .passenger-network li > div > span{ display: block; overflow-wrap: anywhere; }
.city-venue-body .passenger-network li strong{ color: #304d3e; font: 700 1.1rem Arial, Helvetica, sans-serif; }
.city-venue-body .passenger-network li > div > span{ margin-top: .15rem; color: #586b57; font-size: .75rem; }
.city-venue-body .passenger-network li small{ margin-top: .35rem; color: #6e705f; font-size: .7rem; }
.city-venue-body .passenger-network li form{ grid-column: 1 / -1; margin: .25rem 0 0; }
.city-venue-body .passenger-network li button{ width: 100%; font-size: .75rem; }
.passenger-last-arrival{ margin-bottom: .85rem; padding: .75rem .9rem; background: #e2ead8; border: 1px solid #a8b79a; border-left: 4px solid #67845a; border-radius: 4px; }
.passenger-last-arrival > .eyebrow{ margin: 0 0 .3rem; }
.city-venue-body .city-railway-page .route-list{ margin: 0; }
.city-venue-body .city-railway-page .route-list li{ padding: .4rem 0; gap: .5rem 1rem; background: transparent; border: 0; }
.city-venue-body .city-railway-page .route-list li p{ margin: .3rem 0 0; font-size: .74rem; }
.city-venue-body .passenger-history > .route-list{ padding: .6rem .85rem; }
@media (max-width: 520px){
.city-venue-body .city-railway-page .passenger-balance{ display: flex; align-items: center; justify-content: space-between; flex-basis: 100%; gap: .5rem; padding: .4rem .6rem; }
.passenger-service-strip{ padding: .6rem .75rem; gap: .6rem; }
.passenger-ticket-grid{ grid-template-columns: minmax(0, 1fr); }
.passenger-ticket-facts:has(> div:nth-child(3):last-child){ grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: .4rem; gap: .4rem; }
.city-venue-body .passenger-network{ grid-template-columns: minmax(0, 1fr); }
.city-venue-body .passenger-network li{ grid-template-columns: 1.65rem minmax(0, 1fr) auto; gap: .5rem; padding: .65rem; border-top-width: 1px; border-left: 3px solid #758675; }
.city-venue-body .passenger-network li.is-undiscovered{ border-left-style: dashed; }
.city-venue-body .passenger-network li form{ grid-column: 3; grid-row: 1; align-self: center; margin: 0; }
.city-venue-body .passenger-network li button{ max-width: 5.3rem; padding: .45rem; font-size: .7rem; }
.city-venue-body .city-railway-page .route-list li{ flex-wrap: wrap; }
.city-venue-body .city-railway-page .route-list li > form{ width: 100%; margin: .3rem 0 0; }
.city-venue-body .city-railway-page .route-list li button{ width: 100%; }
}
@media (forced-colors: active){
.city-venue-body :is(.passenger-service-strip, .passenger-journey) :is(strong, span, p, h2){ color: CanvasText; }
}
.city-venue-body .passenger-ticket-office .passenger-network li{ grid-template-columns: minmax(0, 1fr); }
.city-venue-body .passenger-ticket-office .passenger-ticket{ display: flex; flex-direction: column; }
.city-venue-body .passenger-ticket-office .passenger-ticket-facts{ margin-top: auto; }
.city-venue-body .passenger-ticket-office details.passenger-line{ padding: 0; }

/* original-transport.css */
.ore-thief-operation{ margin: 1rem 0 1.6rem; overflow: hidden; color: #e9e2d2; background: #151a17; border-top: 5px solid var(--brand-orange); box-shadow: 0 15px 30px rgba(30,24,15,.18); }
.ore-thief-operation > header{ display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(22rem, .85fr); gap: 1.2rem; min-height: 0; padding: 1.2rem; color: inherit; background: #1c221e; border: 0; border-bottom: 1px solid #3c443e; }
.ore-thief-operation > header h2{ margin: .2rem 0 .45rem; color: #fff6df; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.ore-thief-operation > header p{ max-width: 42rem; margin: 0; color: #bfc5bc; line-height: 1.5; }
.ore-thief-operation > header strong{ color: #ffd17b; }
.ore-thief-operation > header dl{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-self: stretch; margin: 0; background: #111512; }
.ore-thief-operation > header dl div{ min-width: 0; padding: .8rem; border-left: 1px solid #343b36; }
.ore-thief-operation > header dt{ color: #8d998f; font: 900 .55rem/1.2 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.ore-thief-operation > header dd{ margin: .35rem 0 0; color: #f0eadc; font: 800 .78rem/1.35 Arial, sans-serif; overflow-wrap: anywhere; }
.ore-thief-operation > ol{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 1px 0; background: #343b36; list-style: none; counter-reset: none; }
.ore-thief-stage{ position: relative; display: grid; grid-template-columns: auto 4.6rem minmax(0, 1fr); grid-template-rows: auto 1fr; gap: .3rem .75rem; min-width: 0; padding: 1rem; background: #202622; }
.ore-thief-stage::after{ content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: #58605a; }
.ore-thief-stage.is-active::after{ background: var(--brand-orange); box-shadow: 0 0 12px rgba(243,154,24,.55); }
.ore-thief-stage.is-complete::after{ background: #6fa861; }
.ore-thief-stage.is-locked{ color: #91978f; background: #1a1f1c; }
.ore-thief-stage-number{ grid-row: 1 / 3; color: #6e766f; font: 900 .7rem/1 Arial, sans-serif; letter-spacing: .08em; }
.ore-thief-stage-art{ display: grid; grid-row: 1 / 3; width: 4.6rem; height: 4.6rem; place-items: center; padding: 0; background: #101411; border: 0; text-decoration: none; }
.ore-thief-stage-art img{ width: 4rem; height: 4rem; object-fit: contain; }
.ore-thief-stage.is-locked .ore-thief-stage-art{ filter: grayscale(1); opacity: .55; }
.ore-thief-stage > div{ min-width: 0; }
.ore-thief-stage .eyebrow{ margin: 0 0 .2rem; color: #919c92; }
.ore-thief-stage h3{ margin: 0; color: #fff5dc; font: 900 1rem/1.1 "Arial Narrow", Impact, Arial, sans-serif; text-transform: uppercase; }
.ore-thief-stage h3 a{ color: inherit; border: 0; text-decoration-color: #716c5e; }
.ore-thief-stage p{ margin: .55rem 0; color: #c5c8c1; font-size: .76rem; line-height: 1.4; }
.ore-thief-stage small{ color: #8f978f; font-size: .65rem; }
.ore-thief-stage > strong{ grid-column: 3; align-self: end; justify-self: start; padding: .3rem .42rem; color: #aeb4ad; background: #303732; font: 900 .56rem/1 Arial, sans-serif; letter-spacing: .08em; }
.ore-thief-stage.is-active > strong{ color: #21170a; background: var(--brand-orange); }
.ore-thief-stage.is-complete > strong{ color: #e4f3de; background: #45653e; }
.ore-thief-operation > footer{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; color: #aeb5ad; background: #101411; }
.ore-thief-operation > footer p{ max-width: 48rem; margin: 0; font-size: .74rem; line-height: 1.4; }
.ore-thief-operation > footer form{ margin: 0; }
.ore-thief-operation > footer .button, .ore-thief-operation > footer button{ white-space: nowrap; }
.city-facility-page .text-link{ display: inline; padding: 0; border: 0; background: transparent; }
.city-facility-scene{ position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; min-height: 16rem; align-items: end; overflow: hidden; margin-bottom: 1.5rem; padding: 2rem; color: #fff5dc; background: #162522; box-shadow: 0 18px 35px rgba(25,20,12,.2); }
.city-facility-scene::before{ content: ''; position: absolute; z-index: -3; inset: 0; opacity: .92; }
.facility-departures .city-facility-scene::before{ background: linear-gradient(155deg, #594b37 0 39%, #272b28 40% 100%); }
.facility-harbour .city-facility-scene::before{ background: linear-gradient(170deg, #718688 0 38%, #173e4d 39% 68%, #0b242b 69% 100%); }
.facility-airfield .city-facility-scene::before{ background: linear-gradient(168deg, #7b9293 0 43%, #404842 44% 100%); }
.facility-horizon{ position: absolute; z-index: -2; top: 25%; right: 0; left: 0; height: 2px; background: rgba(255,238,189,.55); box-shadow: 0 5px 35px rgba(255,210,87,.35); }
.facility-track{ position: absolute; z-index: -1; right: 7%; bottom: -45%; width: 55%; height: 105%; transform: perspective(10rem) rotateX(62deg); transform-origin: bottom; border-right: 3px dashed rgba(255,221,125,.8); border-left: 3px dashed rgba(255,221,125,.8); background: rgba(8,15,13,.38); }
.facility-harbour .facility-track{ right: -2%; bottom: 0; width: 48%; height: 52%; transform: none; border: 0; border-top: 7px solid #ae8c57; background: repeating-linear-gradient(90deg, rgba(235,237,205,.17) 0 2px, transparent 2px 55px); }
.facility-marker{ display: grid; width: 3.8rem; height: 3.8rem; place-items: center; align-self: start; color: #131a16; background: #f3a01d; border-radius: 50%; box-shadow: 0 0 0 8px rgba(243,160,29,.2); font: 900 1.5rem/1 Arial, sans-serif; }
.city-facility-scene > div:nth-of-type(4){ max-width: 34rem; }
.city-facility-scene h2{ margin: .15rem 0 .6rem; color: #fff8e7; font-size: clamp(2rem, 5vw, 3.6rem); }
.city-facility-scene p{ max-width: 40rem; line-height: 1.5; }
.city-facility-scene dl{ display: flex; align-self: end; margin: 0; background: rgba(5,10,8,.68); }
.city-facility-scene dl div{ min-width: 6rem; padding: .8rem; }
.city-facility-scene dt{ color: #b5c1b8; font: 800 .55rem/1.2 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.city-facility-scene dd{ margin: .3rem 0 0; color: #fff3cf; font: 900 1.4rem/1 Arial, sans-serif; }
.city-facility-columns{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.city-facility-columns > section, .facility-underway{ padding: 1.2rem; background: rgba(255,252,244,.63); box-shadow: inset 0 0 0 1px #cfbea0; }
.city-facility-columns h2, .facility-underway h2{ margin: .15rem 0 1rem; }
.facility-route-board, .facility-vehicle-list, .facility-underway ul{ display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.facility-route-board li{ display: grid; grid-template-columns: 4rem 1fr auto; gap: .3rem .7rem; align-items: center; padding: .75rem; color: #ede7d5; background: #1e2924; }
.facility-route-board li > span{ color: #f3a01d; font: 900 .55rem/1 Arial, sans-serif; letter-spacing: .1em; }
.facility-route-board small{ color: #aeb8b0; }
.facility-vehicle-list li{ display: grid; grid-template-columns: 3.2rem 1fr auto; gap: .6rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid #d8c9ad; }
.facility-vehicle-list img{ width: 3rem; height: 3rem; object-fit: contain; }
.facility-vehicle-list div{ display: grid; gap: .2rem; }
.facility-vehicle-list span, .facility-underway span{ color: #675f52; font-size: .76rem; }
.facility-underway{ margin-top: 1rem; }
.facility-underway li{ display: grid; grid-template-columns: 1fr 2fr auto; gap: .75rem; align-items: center; padding: .55rem 0; }
@media (max-width: 780px){.ore-thief-operation > header, .ore-thief-operation > ol{ grid-template-columns: 1fr; }
.ore-thief-operation > header dl{ grid-template-columns: 1fr; }
.ore-thief-operation > header dl div{ border-top: 1px solid #343b36; border-left: 0; }
.ore-thief-operation > footer{ align-items: flex-start; flex-direction: column; }
.city-facility-scene, .city-facility-columns{ grid-template-columns: 1fr; }
.city-facility-scene dl{ flex-wrap: wrap; }
.facility-vehicle-list li, .facility-underway li{ grid-template-columns: 3rem 1fr; }
.facility-vehicle-list .text-link, .facility-underway .text-link{ grid-column: 2; }
}
.city-venue-body :is(.factory-list, .city-facility-columns, .home-display-grid, .crypto-market-grid, .shop-grid){ gap: 1rem; }
.city-venue-body .facility-vehicle-list li, .city-venue-body .facility-route-board li{ gap: .7rem; }
@media (max-width: 700px){
.city-venue-body .facility-vehicle-list li{ flex-wrap: wrap; }
.city-venue-body .facility-vehicle-list li > div{ min-width: 0; }
}

/* original-transport-places.css */
.city-place-tabs{ display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .8rem; }
.city-place-tabs a{ display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .85rem; color: #354b3d; background: #f5eddc; border: 1px solid var(--venue-line, #c8b89a); border-radius: 3px; font-size: .82rem; }
.city-place-tabs a:hover{ background: #e5d8ba; }
.city-place-empty{ padding: 1rem; border: 1px dashed #b9af96; background: #f6f0e3; }
.city-place-empty strong{ display: block; font-size: .95rem; }
.city-place-empty p{ margin: .5rem 0; color: #635f52; font-size: .84rem; line-height: 1.5; }
.city-place-section-head{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; margin-bottom: .7rem; }
.city-place-section-head .eyebrow, .city-place-section-head h2{ margin: 0 0 .2rem; }
.city-venue-body :is(.city-home-page, .city-bar-page, .city-facility-page, .city-railway-page) .city-place-action{ display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem .75rem; border: 1px solid #b9a57c; border-radius: 3px; color: #3e482f; background: #f4e8cd; font-size: .8rem; font-weight: 700; text-align: center; text-decoration: none; }
.city-venue-body .city-place-action:hover{ background: #e4d3ac; }
.city-venue-body :is(.city-home-page, .city-bar-page, .city-facility-page, .city-railway-page) :is(input, select, button){ min-height: 44px; max-width: 100%; }
.city-venue-body :is(.city-home-page, .city-bar-page, .city-facility-page, .city-railway-page) :is(input, select){ font-size: 1rem; }
.city-venue-body :is(.city-home-page, .city-bar-page, .city-facility-page) > .page-title > .text-link{ display: none; }
.city-venue-body :is(.city-home-interior, .city-bar-interior, .city-facility-scene) > .place-heraldry{ margin: 0; padding: .4rem .6rem; border-width: 1px; box-shadow: none; }
.city-venue-body :is(.city-home-interior, .city-bar-interior, .city-facility-scene) .heraldry-place-names{ gap: .1rem; }
.city-venue-body :is(.city-home-interior, .city-bar-interior, .city-facility-scene) .heraldry-place-names strong{ font-size: .82rem; }
.city-venue-body :is(.city-home-interior, .city-bar-interior, .city-facility-scene) .heraldry-place-names > span{ font-size: .56rem; }
.city-venue-body .home-storage-room .city-place-action{ color: #f5db9b; background: #343628; border-color: #8d774c; }
.city-venue-body .city-facility-scene{ min-height: 0; align-items: center; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; padding: .85rem 1rem; margin-bottom: .8rem; }
.city-venue-body .city-facility-scene > .place-heraldry{ grid-column: 1; grid-row: 1; justify-self: start; }
.city-venue-body .city-facility-scene > div:nth-of-type(4){ grid-column: 1; grid-row: 2; }
.city-venue-body .city-facility-scene > div:nth-of-type(4) .eyebrow{ display: none; }
.city-venue-body .city-facility-scene h2{ margin: 0; font-size: 1.45rem; }
.city-venue-body .city-facility-scene .facility-marker{ position: absolute; right: 43%; bottom: .7rem; width: 2.5rem; height: 2.5rem; font-size: 1.1rem; opacity: .6; pointer-events: none; }
.city-venue-body .city-facility-scene dl{ grid-column: 2; grid-row: 1 / 3; align-self: center; }
.city-venue-body .city-facility-scene dl div{ min-width: 4.6rem; padding: .55rem .65rem; }
.city-venue-body .city-facility-scene dd{ font-size: 1.3rem; }
.city-venue-body .city-facility-columns{ grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: .75rem; align-items: start; }
.city-venue-body .city-facility-columns h2, .city-venue-body .facility-underway h2{ margin-bottom: .65rem; font-size: 1.4rem; }
.city-venue-body .facility-vehicle-list li{ grid-template-columns: 3rem minmax(0, 1fr); gap: .45rem .65rem; padding: .75rem 0; }
.city-venue-body .facility-vehicle-list li:first-child{ padding-top: 0; }
.city-venue-body .facility-vehicle-list li:last-child{ border-bottom: 0; padding-bottom: 0; }
.city-venue-body .facility-vehicle-list li > .city-place-action{ grid-column: 2; justify-self: start; }
.city-venue-body .facility-vehicle-list strong{ overflow-wrap: anywhere; }
.city-venue-body .facility-vehicle-list small{ color: #6a6254; font-size: .73rem; }
.city-venue-body .facility-route-board li{ grid-template-columns: 3.5rem minmax(0, 1fr); gap: .25rem .55rem; padding: .7rem; }
.city-venue-body .facility-route-board li > strong{ min-width: 0; overflow-wrap: anywhere; font-size: .87rem; }
.city-venue-body .facility-route-board li > small{ grid-column: 2; font-size: .72rem; }
.city-venue-body .facility-route-board .route-closed{ background: #e3dfd4; border: 1px dashed #aaa492; }
.city-venue-body .facility-route-board .route-closed > span{ color: #815a45; }
.city-venue-body .facility-route-board .route-closed > strong{ color: #635f54; }
.city-venue-body .facility-route-board .route-closed > small{ color: #706c61; }
.city-venue-body .facility-board-help, .city-venue-body .facility-board-notice{ margin: .7rem 0 0; color: #6a6254; font-size: .78rem; line-height: 1.5; }
.city-venue-body .facility-board-notice{ margin: 0 0 .7rem; }
.city-venue-body .facility-underway{ margin-top: .8rem; }
.city-venue-body .facility-underway li{ grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: .4rem .75rem; border-bottom: 1px solid #dacbb0; }
.city-venue-body .facility-underway li:last-child{ border-bottom: 0; }
.city-venue-body .facility-underway span small{ display: block; margin-top: .2rem; }
.city-venue-body .facility-underway .text-link{ grid-column: auto; }
@media (max-width: 780px){.city-venue-body .bar-workspace, .city-venue-body .city-facility-columns{ grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px){
.city-place-tabs{ gap: .3rem; }
.city-place-tabs a{ flex: 1 1 auto; padding-inline: .55rem; font-size: .75rem; }
.city-venue-body .city-facility-scene{ grid-template-columns: minmax(0, 1fr); gap: .6rem; padding: .75rem; }
.city-venue-body .city-facility-scene > .place-heraldry{ justify-self: stretch; }
.city-venue-body .city-facility-scene .facility-marker{ display: none; }
.city-venue-body .city-facility-scene > div:nth-of-type(4){ display: none; }
.city-venue-body .city-facility-scene dl{ grid-column: 1; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.city-venue-body .city-facility-scene dl div{ min-width: 0; padding: .5rem; }
.city-venue-body .city-facility-scene dt{ font-size: .53rem; letter-spacing: .05em; }
.city-venue-body .facility-underway li{ grid-template-columns: minmax(0, 1fr) auto; }
.city-venue-body .facility-underway li > span{ grid-column: 1; }
.city-venue-body .facility-underway li > a{ grid-column: 2; grid-row: 1 / 3; }
}
@media (forced-colors: active){
}

/* guild-interface.css */
/* The source guild layout uses the shared control and typography contract. */
#content :is(.guild-command,.guild-create,.guild-directory,.guild-bank-section,.guild-draft-panel,.guild-draft-card){background:var(--paper);border:1px solid var(--line);border-radius:0;box-shadow:none;color:var(--ink)}
#content :is(.guild-command,.guild-create,.guild-directory,.guild-bank-section,.guild-draft-page) *{font-family:Arial,Helvetica,sans-serif}
#content :is(.guild-subnav,.guild-command nav){display:flex;flex-wrap:wrap;gap:4px;width:auto;min-width:0}
#content .guild-subnav a{background:#111;color:#fff;padding:10px 12px;min-height:44px;font-weight:800;white-space:normal}
#content .guild-subnav a:is(:hover,[aria-current="page"]){background:var(--orange);color:#111}
#content :is(.guild-command,.guild-create,.guild-directory,.guild-bank-section,.guild-draft-page) :is(input,select,textarea,button,.button){border-radius:0;min-height:44px;max-width:100%;font-family:Arial,Helvetica,sans-serif;font-weight:800;box-shadow:none}
#content :is(.guild-command,.guild-create,.guild-bank-section,.guild-draft-page) :is(button,.button){background:#111;border:2px solid #111;color:white}
#content :is(.guild-command,.guild-create,.guild-bank-section,.guild-draft-page) :is(button,.button):hover{background:#333}
#content :is(.guild-command,.guild-create,.guild-bank-section,.guild-draft-page) :is(button,.button).secondary{color:#111;background:white}
#content :is(.guild-command,.guild-create,.guild-bank-section,.guild-draft-page) :is(button,.button):disabled{opacity:.5;cursor:not-allowed}
#content .guild-bio{white-space:pre-wrap;overflow-wrap:anywhere}
#content .guild-bank-vaults ul{padding-left:20px}
#content .guild-bank-meter{background:var(--paper);color:var(--ink);border-color:var(--line)}
#content .guild-bank-meter .game-fact :is(dt,dd,span){color:var(--ink);font-family:Arial,Helvetica,sans-serif}
#content .guild-draft-statement{overflow-wrap:anywhere}
#content .guild-fund-ledger li{min-width:0;overflow-wrap:anywhere}
#content .guild-bio-control textarea{width:100%;resize:vertical}
#content .guild-chat-page .context-help{color:var(--ink);background:white}
#content .guild-chat-page .chat-list .context-help{margin:0}
#content .guild-chat-page .chat-row > .chat-meta{padding-right:5rem}
@media(max-width:600px){
  #content :is(.guild-command,.guild-create,.guild-directory,.guild-bank-section,.guild-draft-panel){padding:12px;min-width:0}
  #content :is(.guild-create form,.guild-bank-deposit-actions,.guild-directory-card,.guild-fund-deposit,.guild-draft-bid){grid-template-columns:minmax(0,1fr)}
  #content :is(.guild-command,.guild-directory,.guild-bank-section) header{flex-wrap:wrap}
  #content .guild-fund-facts{grid-template-columns:minmax(0,1fr)}
}

/* original-gadgets.css */
.gadget-description{ white-space: pre-line; }
.gadget-list{ display: grid; gap: .75rem; margin-top: 1.5rem; }
.gadget-card{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .7fr); gap: 1.2rem; padding: 1.2rem; background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.gadget-card h3{ margin-bottom: .35rem; }
.gadget-card p{ color: var(--muted); line-height: 1.45; }
.gadget-activators{ display: grid; align-content: center; gap: .5rem; }
.gadget-activators form{ display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .55rem; background: rgba(255,255,255,.55); border: 1px solid var(--line); }
.gadget-activators .item-card-actions form{ display: block; padding: 0; background: none; border: 0; }
.gadget-card-broken{ border-left: 4px solid #b26b25; }
.robot-repair{ padding: .8rem; background: #fff0d6; border: 1px solid #c39a67; }
.robot-repair > strong{ color: #7b3c14; }
.robot-repair > p{ margin: .4rem 0 .7rem; }
.robot-repair > small{ display: block; margin-top: .6rem; color: var(--muted); }
.gadget-automation-state, .gadget-automation-queue, .gadget-automation-config{ margin-top: 1.25rem; padding: 1.2rem; background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.gadget-automation-state dl{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.gadget-automation-state dl div{ padding: .75rem; background: rgba(255,255,255,.6); border: 1px solid var(--line); }
.gadget-automation-state dt{ color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.gadget-automation-state dd{ margin: .25rem 0 0; line-height: 1.4; }
.gadget-automation-config form{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.gadget-automation-config label{ display: grid; gap: .35rem; }
.gadget-automation-config .field-help{ grid-column: 1 / -1; margin: 0; color: var(--muted); line-height: 1.5; }
.gadget-automation-config form > button{ justify-self: start; }
.gadget-automation-queue ol{ display: grid; gap: .55rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.gadget-automation-queue li{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem .75rem; background: rgba(255,255,255,.65); border: 1px solid var(--line); }
.gadget-card .button{ display: inline-block; margin-left: .75rem; }
@media (max-width: 760px){
 .gadget-card, .gadget-automation-state dl, .gadget-automation-config form{ grid-template-columns: 1fr; }
}
@media (max-width: 760px){
.gadget-automation-queue li{ align-items: stretch; flex-direction: column; }
.gadget-automation-queue li form, .gadget-automation-queue li button{ width: 100%; }
}

/* original-haven.css */
/* Haven uses the shared plain management controls and compact stock rows. */
#content .haven-page { max-width: 1200px; margin-inline: auto; }
#content .haven-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,290px),1fr)); gap: 16px; margin-block: 20px; }
#content .haven-grid article, #content .haven-purchase, #content .haven-stock-row, #content .haven-airship { border: 1px solid #7a8985; padding: 18px; background: #f8f4e9; color: #18272b; }
#content .haven-grid h2, #content .haven-grid h3 { margin-top: 0; }
#content .haven-grid .text-link, #content .haven-stock-row .text-link, #content .haven-airship .text-link { color: #784500; }
#content .haven-capacity { padding: 14px 0; border-block: 2px solid #ef8c17; }
#content .haven-stock-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-block: 10px; }
#content .haven-stock-row > div { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
#content .haven-stock-row p { margin-bottom: 0; }
#content .haven-stock-row form { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
#content .haven-stock-row label { display: grid; gap: 4px; font-weight: 700; }
#content .haven-stock-row input[type=number] { width: 96px; min-height: 44px; }
#content .haven-airship { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
#content .haven-airship > img { width: 100%; align-self: start; }
#content .haven-page details { margin-block: 20px; }
#content .haven-page .button, #content .haven-page button { white-space: normal; }
@media(max-width: 650px) { #content .haven-airship { grid-template-columns: 1fr; } }


/* original-dwarf-battles.css */


/* original-battle-replay.css */
.battle-replay-toolbar { text-align: right; }
.battle-replay-toolbar[hidden] { display: none; }
.battle-replay-dialog {
  box-sizing: border-box; width: min(900px, calc(100vw - 16px)); max-width: none;
  max-height: calc(100dvh - 16px); margin: auto; padding: 0; overflow: auto;
  border: 2px solid #f09a24; border-radius: 0; background: #f8f5ed; color: #171717;
  font-family: Arial, Helvetica, sans-serif; box-shadow: 0 18px 70px #0009;
  overscroll-behavior: contain;
}
.battle-replay-dialog::backdrop { background: #080e12c9; }
.battle-replay-heading { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem 1rem; background: #111; color: #fff; border-bottom: 3px solid #f09a24; }
.battle-replay-heading h2 { margin: .15rem 0 0; color: #fff; font: 800 1.3rem/1.2 Arial, Helvetica, sans-serif; }
.battle-replay-heading small { color: #ffbf6b; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.battle-replay-dialog button, .battle-replay-dialog select { box-sizing: border-box; min-height: 44px; min-width: 44px; max-width: 100%; border: 1px solid #b97012; border-radius: 0; padding: .6rem .8rem; background: #f09a24; color: #171717; font: 800 .75rem/1.3 Arial, Helvetica, sans-serif; text-transform: uppercase; cursor: pointer; }
.battle-replay-dialog select { background: #fff; text-transform: none; }
.battle-replay-dialog button:disabled { background: #e2dccf; border-color: #bfb5a3; color: #625e55; cursor: not-allowed; }
.battle-replay-dialog :focus-visible { outline: 3px solid #258dc0; outline-offset: 2px; }
.battle-replay-arena { position: relative; isolation: isolate; overflow: hidden; padding: 1.2rem 1rem .9rem; background: radial-gradient(ellipse at 50% 115%, #77613e 0, #242d2a 55%, #10191d 100%); color: #fff; }
.battle-replay-arena.is-sea { background: repeating-linear-gradient(173deg, transparent 0 48px, #6babb614 49px 50px), radial-gradient(ellipse at 50% 120%, #356b7b, #132b38 60%, #0e1720); }
.battle-replay-fighters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 8vw, 6rem); }
.battle-replay-fighter { min-width: 0; text-align: center; display: flex; flex-direction: column; align-items: stretch; }
.battle-replay-fighter[hidden] { display: none; }
.battle-replay-fighters.is-fleet { grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 1rem; }
.is-fleet .battle-replay-portrait { height: clamp(75px, 14vw, 130px); }
.is-fleet .battle-replay-portrait > img { position: absolute; inset: 0; max-height: 100%; }
.battle-replay-owner { color: #bfccd0; text-transform: uppercase; letter-spacing: .08em; font-size: .65rem; }
.battle-replay-name { min-height: 2.8em; margin-top: .3rem; font-size: clamp(.85rem, 2.3vw, 1.2rem); line-height: 1.4; overflow-wrap: anywhere; }
.battle-replay-role { font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; color: #ffbf6b; }
.battle-replay-role[hidden] { display: none; }
.battle-replay-portrait { position: relative; display: grid; place-items: center; height: clamp(125px, 24vw, 240px); margin: .5rem 0; }
.battle-replay-portrait::before { content: ''; position: absolute; inset: 65% 8% 3%; border-radius: 50%; background: #0005; filter: blur(8px); }
.battle-replay-portrait > img { position: relative; width: 100%; height: 100%; max-height: 240px; object-fit: contain; filter: drop-shadow(0 6px 12px #0009); }
.battle-replay-unknown { font-size: .8rem; color: #bcc5c9; }
.battle-replay-fighter progress { appearance: none; width: 100%; height: 12px; border: 1px solid #b9c8c866; border-radius: 0; background: #070d11; accent-color: #74c68a; }
.battle-replay-fighter progress::-webkit-progress-bar { background: #070d11; }
.battle-replay-fighter progress::-webkit-progress-value { background: #74c68a; }
.battle-replay-fighter progress::-moz-progress-bar { background: #74c68a; }
.battle-replay-health { margin-top: .4rem; font-size: .82rem; font-weight: 700; }
.battle-replay-speech { min-height: 2.8em; margin-top: .45rem; color: #ffe2ad; font: italic .85rem/1.4 Arial, Helvetica, sans-serif; overflow-wrap: anywhere; }
.battle-replay-spoken-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.battle-replay-reserves { margin-top: .3rem; font-size: .7rem; line-height: 1.5; color: #cfdae1; }
.battle-replay-condition { min-height: 1.4em; margin-top: .25rem; font-size: .75rem; color: #ffbe79; }
.battle-replay-fighter.is-wrecked .battle-replay-portrait > img { filter: grayscale(1) brightness(.45); opacity: .65; transform: rotate(-7deg) translateY(8px); }
.battle-replay-fighter.is-defeated .battle-replay-portrait > img { opacity: .35; filter: grayscale(.7); }
.battle-replay-burst { opacity: 0; position: absolute; width: min(110px, 75%); aspect-ratio: 1; background: radial-gradient(circle, #fff5ba 0 10%, #ffc35a 15% 30%, #e26e36b0 35% 50%, transparent 65%); clip-path: polygon(50% 0,60% 25%,84% 8%,76% 36%,100% 50%,74% 60%,90% 85%,62% 75%,50% 100%,38% 77%,9% 92%,25% 62%,0 50%,26% 38%,10% 9%,38% 26%); }
.battle-replay-effects { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.battle-replay-projectile { position: absolute; width: clamp(28px, 5vw, 46px); height: clamp(28px, 5vw, 46px); transform: translate(-50%, -50%); color: #f8dcaa; filter: drop-shadow(0 2px 4px #000); }
.battle-replay-projectile svg { display: block; width: 100%; height: 100%; }
.battle-replay-projectile img { position: absolute; width: 22px; height: 22px; object-fit: contain; right: -12px; bottom: -8px; }
.battle-replay-portrait { transform-origin: 50% 80%; }
.battle-replay-projectile.effect-transfer { width: clamp(42px, 8vw, 72px); height: clamp(42px, 8vw, 72px); }
.battle-replay-projectile.effect-transfer img { inset: 0; width: 100%; height: 100%; }
.battle-replay-quantity { position: absolute; right: -5px; bottom: -10px; padding: 2px 5px; background: #111; color: #ffbd65; font: 800 .8rem/1.3 Arial, Helvetica, sans-serif; white-space: nowrap; }
.battle-replay-receipts { display: flex; flex-wrap: wrap; gap: .5rem; }
.battle-replay-receipt { display: flex; align-items: center; gap: .5rem; max-width: 100%; min-height: 44px; margin-top: .4rem; color: #171717; font-size: .85rem; }
.battle-replay-receipt img { width: 48px; height: 48px; object-fit: contain; }
.effect-wave, .effect-frost, .effect-bubble { color: #8cdef0; }
.effect-ink, .effect-tentacle { color: #c4b0ea; }
.effect-boarding, .effect-weapon, .effect-claw { color: #ffd7a3; }
.effect-shield, .effect-repair, .effect-leaf { color: #a8e4b0; }
.battle-replay-caption { padding: .9rem 1rem; min-height: 7rem; border-bottom: 1px solid #d6cbb8; overflow-wrap: anywhere; }
.battle-replay-caption h3 { margin: 0 0 .45rem; font: 800 1rem/1.4 Arial, Helvetica, sans-serif; color: #181c1d; }
.battle-replay-caption p { margin: .3rem 0; line-height: 1.5; font-size: .9rem; }
.battle-replay-controls { padding: .8rem 1rem 1rem; }
.battle-replay-buttons { display: flex; align-items: end; flex-wrap: wrap; gap: .5rem; }
.battle-replay-buttons > label { display: flex; flex-direction: column; gap: .2rem; margin-left: auto; font-size: .7rem; font-weight: 700; }
.battle-replay-seek { display: block; margin-top: .7rem; font-size: .75rem; font-weight: 700; }
.battle-replay-seek input { display: block; box-sizing: border-box; width: 100%; height: 44px; margin: 0; padding: 0; accent-color: #df8516; cursor: pointer; }
.battle-replay-shortcuts { display: flex; justify-content: space-between; gap: .5rem; }
.battle-replay-shortcuts button { background: #171b1d; color: #fff; border-color: #383f42; }
@media (max-width: 480px) {
  .battle-replay-heading, .battle-replay-controls, .battle-replay-caption { padding: .65rem; }
  .battle-replay-arena { padding: .8rem .65rem .4rem; }
  .battle-replay-fighters { gap: 1rem; }
  .battle-replay-buttons { gap: .3rem; }
  .battle-replay-dialog button, .battle-replay-dialog select { padding: .5rem .6rem; }
  .battle-replay-health { font-size: .72rem; }
  .battle-replay-speech { font-size: .78rem; }
  .battle-replay-reserves { font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .battle-replay-dialog *, .battle-replay-dialog *::before { animation: none !important; transition: none !important; }
}

/* original-lanterns.css */
.threat-board { position: relative; overflow: hidden; padding: clamp(1rem, 2.5vw, 1.5rem); color: #e8e3d8; background: repeating-linear-gradient(118deg, #1d211e 0, #1d211e 13px, #191c1a 13px, #191c1a 15px); border: 1px solid #3e443f; border-top: 5px solid var(--brand-orange); box-shadow: 0 14px 34px rgba(22,18,12,.2); }
.threat-board::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .18; background: linear-gradient(105deg, transparent 0 38%, rgba(255,255,255,.08) 38.2%, transparent 38.6% 68%, rgba(255,255,255,.05) 68.2%, transparent 68.6%); }
.threat-board > * { position: relative; z-index: 1; }
.threat-board { --link: #ffd08c; }
.threat-board .section-heading { align-items: end; margin-bottom: 1.2rem; padding-bottom: .9rem; border-bottom: 1px solid #474d48; }
.threat-board .section-heading h2 { margin: .25rem 0 0; color: #f4efe5; font: 900 1.55rem/1 "Arial Narrow", Impact, Arial, sans-serif; letter-spacing: .055em; text-transform: uppercase; }
.threat-board .section-heading > p { margin: 0; color: #a8aaa4; font: .82rem Arial, Helvetica, sans-serif; }
.threat-board .eyebrow { color: var(--brand-orange); }
.threat-group-summary { margin: 0 0 .85rem; color: #b1b8b2; font-size: .82rem; line-height: 1.5; }
.threat-region + .threat-region { margin-top: 1.35rem; padding-top: 1.2rem; border-top: 1px solid #3d433e; }
.threat-region > h3 { margin: 0 0 .65rem; font: 700 1rem/1.3 Arial, Helvetica, sans-serif; }
.threat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: .75rem; }
.threat-card { --threat-accent: #8c8d86; display: grid; grid-template-columns: 82px minmax(0, 1fr); min-width: 0; overflow: hidden; color: #e9e4da; background: linear-gradient(145deg, #151816, #202420); border: 1px solid #474d48; border-left: 5px solid var(--threat-accent); box-shadow: 0 9px 22px rgba(0,0,0,.26), inset 0 0 24px rgba(255,255,255,.018); }
.threat-card.rarity-1 { --threat-accent: #d7d23a; border-left-color: var(--threat-accent); }
.threat-card.rarity-2 { --threat-accent: #91c54b; border-left-color: var(--threat-accent); }
.threat-card.rarity-3 { --threat-accent: #73a9c7; border-left-color: var(--threat-accent); }
.threat-card.rarity-4 { --threat-accent: #d45a45; border-left-color: var(--threat-accent); }
.threat-card.rarity-5 { --threat-accent: #a868aa; border-left-color: var(--threat-accent); }
.threat-card.rarity-6 { --threat-accent: #f2a249; border-left-color: var(--threat-accent); }
.threat-mark { display: grid; min-height: 100%; place-items: center; position: relative; overflow: hidden; background: repeating-linear-gradient(135deg, #090b0a 0, #090b0a 8px, #101310 8px, #101310 10px); border-right: 1px solid #3d433e; }
.threat-mark::before, .threat-mark::after { content: ''; position: absolute; width: 52px; height: 1px; background: color-mix(in srgb, var(--threat-accent) 55%, transparent); transform: rotate(-28deg); }
.threat-mark::before { top: 24%; left: -9px; }
.threat-mark::after { right: -8px; bottom: 23%; }
.threat-mark img { z-index: 1; width: 64px; height: 64px; object-fit: contain; filter: grayscale(.35) contrast(1.22) drop-shadow(0 5px 5px rgba(0,0,0,.75)); }
.threat-card .threat-mark:any-link { color: inherit; text-decoration: none; }
.threat-mark .spectral-transport { min-height: 76px; }
.threat-mark .spectral-transport img { width: 64px; height: 64px; object-fit: contain; }
.threat-ghost .threat-mark:hover .spectral-transport img, .threat-ghost .threat-mark:focus-visible .spectral-transport img { transform: translateY(-2px) scale(1.1); opacity: .94; filter: var(--spectral-filter) drop-shadow(0 0 8px rgb(var(--spectral-rgb) / 1)) drop-shadow(0 0 20px rgb(var(--spectral-rgb) / .72)); }
.threat-card .threat-mark:focus-visible { outline: 2px solid var(--threat-accent); outline-offset: -3px; }
.threat-card-body { min-width: 0; padding: .9rem; }
.threat-card header { display: flex; min-height: 0; align-items: start; justify-content: space-between; gap: .8rem; margin: 0 0 .7rem; padding: 0 0 .65rem; background: none; border: 0; border-bottom: 1px solid #3d433e; }
.threat-card header > div { min-width: 0; }
.threat-card :is(h3, h4) { margin: .2rem 0 0; color: #f6f1e8; font: 900 1.12rem/1.05 "Arial Narrow", Impact, Arial, sans-serif; letter-spacing: .035em; text-transform: uppercase; overflow-wrap: anywhere; }
.threat-card :is(h3, h4) .threat-record-link:any-link { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.threat-card :is(h3, h4) .threat-record-link:hover, .threat-card :is(h3, h4) .threat-record-link:focus-visible { color: color-mix(in srgb, var(--threat-accent) 72%, white); text-decoration: underline; text-underline-offset: .16em; }
.threat-card .eyebrow { margin: 0; color: color-mix(in srgb, var(--threat-accent) 82%, white); font-size: .59rem; letter-spacing: .12em; }
.threat-condition { flex: 0 0 auto; padding: .3rem .42rem; color: #171a18; background: #aeb2aa; border: 1px solid rgba(255,255,255,.28); font: 900 .57rem/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.threat-condition-unhurt { background: #aebf83; }
.threat-condition-wounded { background: #e6a13a; }
.threat-condition-seriously-wounded { color: #fff5ed; background: #9e372c; }
.threat-facts { display: grid; gap: .4rem; margin: 0; }
.threat-facts > div { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: .55rem; min-width: 0; }
.threat-facts dt { color: #858b85; font: 900 .59rem/1.35 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.threat-facts dd { min-width: 0; margin: 0; color: #d7d3ca; font-size: .78rem; overflow-wrap: anywhere; }
.threat-empty { grid-column: 1 / -1; margin: 0; padding: .9rem 1rem; color: #aeb2ac; background: rgba(8,10,9,.4); border: 1px dashed #4a504b; font: italic .86rem Arial, Helvetica, sans-serif; }
@media (max-width: 760px) {
}
@media (max-width: 480px) {
}

/* original-creatures.css */
.ghost-record { --threat-accent: #8c8d86; overflow: hidden; color: #e9e4da; background: linear-gradient(145deg, #151816, #202420); border-left: 5px solid var(--threat-accent); box-shadow: 0 14px 34px rgba(22,18,12,.2); }
.ghost-record.rarity-1 { --threat-accent: #d7d23a; }
.ghost-record.rarity-2 { --threat-accent: #91c54b; }
.ghost-record.rarity-3 { --threat-accent: #73a9c7; }
.ghost-record.rarity-4 { --threat-accent: #d45a45; }
.ghost-record.rarity-5 { --threat-accent: #a868aa; }
.ghost-record.rarity-6 { --threat-accent: #f2a249; }
.ghost-record .eyebrow { color: color-mix(in srgb, var(--threat-accent) 82%, white); }
.ghost-record-hero { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: center; padding: clamp(1.1rem, 3vw, 2rem); background: radial-gradient(circle at 12% 50%, rgba(99,206,192,.14), transparent 28%), repeating-linear-gradient(135deg, #101311 0, #101311 12px, #151916 12px, #151916 14px); border-bottom: 1px solid #3d433e; }
.ghost-record-spectre { min-height: 190px; }
.ghost-record-spectre img { width: 100%; max-height: 190px; object-fit: contain; }
.threat-record-description .text-link:any-link { color: #dfc987; }
.threat-record-description .text-link:any-link:hover, .threat-record-description .text-link:any-link:focus-visible { color: #fff; }
.ghost-record-hero h2 { margin: .25rem 0 .7rem; color: #f6f1e8; font: 900 clamp(1.5rem, 4vw, 2.5rem)/1 "Arial Narrow", Impact, Arial, sans-serif; letter-spacing: .035em; text-transform: uppercase; }
.ghost-record-hero p { max-width: 50rem; line-height: 1.6; }
.ghost-record-outcome { color: #d7bddc; }
.ghost-record-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0 clamp(1.1rem, 3vw, 2rem); background: #1a1e1b; }
.ghost-record-facts > div { min-width: 0; padding: .9rem 1rem .9rem 0; border-bottom: 1px solid #343a35; }
.ghost-record-facts dt { color: #858b85; font: 900 .61rem/1.3 Arial, sans-serif; letter-spacing: .11em; text-transform: uppercase; }
.ghost-record-facts dd { margin: .25rem 0 0; overflow-wrap: anywhere; }
.ghost-origin { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 1rem; align-items: center; padding: clamp(1.1rem, 3vw, 2rem); border-top: 1px solid #3d433e; }
.ghost-origin h2, .ghost-bounty h2 { margin: .2rem 0 .55rem; color: #f6f1e8; }
.ghost-origin p { max-width: 52rem; line-height: 1.55; }
.ghost-origin > img { width: 86px; height: 86px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0,0,0,.55)); }
.ghost-origin > dl { grid-column: 1 / -1; margin: 0; }
.ghost-origin > dl div { display: flex; gap: .45rem; }
.ghost-origin > dl dt { color: #858b85; font-weight: 900; }
.ghost-origin > dl dd { margin: 0; }
.ghost-bounty { padding: 0 clamp(1.1rem, 3vw, 2rem) clamp(1.1rem, 3vw, 2rem); }
.ghost-bounty ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .65rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.ghost-bounty-item { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: .65rem; align-items: center; min-height: 62px; padding: .5rem; color: #e9e4da; background: #101311; text-decoration: none; }
.ghost-bounty-item:hover, .ghost-bounty-item:focus-visible { color: #fff; background: #252b26; outline: 2px solid currentColor; }
.ghost-bounty-item img { width: 50px; height: 50px; object-fit: contain; }
.ghost-bounty-item span { display: grid; gap: .2rem; min-width: 0; }
.ghost-bounty-item small { color: #989e98; }
.patrol-record .ghost-record-hero > img { width: 100%; max-height: 190px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.65)); }
.patrol-roster { padding: 0 clamp(1.1rem, 3vw, 2rem) clamp(1.1rem, 3vw, 2rem); }
.patrol-roster h2, .patrol-roster h3, .patrol-roster h4 { color: #f6f1e8; }
.patrol-members { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.patrol-member { min-width: 0; padding: 1rem; background: #161a17; border: 1px solid #3d433e; overflow-wrap: anywhere; }
.patrol-member h3 { margin-top: 0; }
.patrol-member p { line-height: 1.5; }
.patrol-fittings h4 { margin: 1rem 0 .5rem; }
.patrol-fittings ul { display: grid; gap: .5rem; padding: 0; list-style: none; }
.patrol-fittings .ghost-bounty-item:any-link { color: #e9e4da; }
.patrol-fittings .ghost-bounty-item:hover, .patrol-fittings .ghost-bounty-item:focus-visible { color: #fff; }
.battle-report { display: grid; gap: 1.1rem; min-width: 0; max-width: 100%; }
.battle-section { box-sizing: border-box; min-width: 0; padding: 1rem; border: 1px solid var(--line); background: rgba(255,255,255,.74); }
.battle-section > h2 { margin: 0 0 .8rem; font-size: 1.2rem; }
.battle-section > p:last-child { margin-bottom: 0; }
.battle-before { border-top: 4px solid var(--accent); }
.battle-report .table-scroll { max-width: 100%; margin: 0; }
.battle-report table { width: 100%; margin: 0; }
.battle-comparison { table-layout: fixed; font-size: .88rem; }
.battle-comparison th:first-child { width: 26%; }
.battle-comparison td, .battle-comparison th { overflow-wrap: anywhere; white-space: normal; vertical-align: top; }
.battle-comparison tbody th { font-size: .78rem; color: var(--muted); text-transform: none; letter-spacing: normal; }
.battle-comparison thead th { background: #252d28; color: #f9f1df; text-transform: none; letter-spacing: normal; }
.battle-fighter { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.battle-fighter img { flex: 0 0 auto; width: 60px; height: 60px; object-fit: contain; }
.battle-fighter > span { display: grid; min-width: 0; gap: .2rem; }
.battle-fighter strong { font-size: 1rem; }
.battle-fighter small { font: .7rem/1.35 Arial, sans-serif; color: #ddd7c9; }
.battle-table-note { margin: -.2rem 0 .8rem; color: var(--muted); font-size: .85rem; }
.battle-scroll-hint { display: none; color: var(--muted); font-size: .78rem; }
.battle-round-table { min-width: 580px; font-size: .85rem; }
.battle-round-table th, .battle-round-table td { vertical-align: top; white-space: normal; }
.battle-round-table td:first-child { width: 13%; font-weight: bold; }
.battle-round-table th:nth-child(2), .battle-round-table td:nth-child(2) { width: 3.5rem; min-width: 3.5rem; white-space: nowrap; text-align: center; }
.battle-round-table td:nth-child(3) { width: 37%; }
.battle-round-table td:last-child { width: 44%; }
.battle-recovery { margin-top: .8rem; padding: .7rem; border-left: 3px solid #74856e; background: #e9eee3; }
.battle-recovery h3, .battle-bounty h3 { margin: 0 0 .6rem; font-size: 1rem; }
.battle-recovery p:last-child { margin-bottom: 0; }
.battle-original { margin-top: .8rem; }
.battle-original summary { cursor: pointer; min-height: 32px; align-content: center; }
.battle-bounty .message-item-group + .message-item-group { margin-top: .8rem; }
.battle-bounty .message-item-group ul { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.battle-unlinked-item { display: flex; align-items: center; gap: .5rem; padding: .5rem; }
.battle-tip { border-left: 4px solid var(--accent); background: #fff3da; }
.battle-tip p { margin: 0; line-height: 1.6; }
.battle-location { padding: .7rem .8rem; color: #3d3427; background: #fff1d2; border-left: 5px solid var(--brand-orange); }
.battle-outcome { color: #477d3e; font-size: 1.25rem; font-weight: bold; }
.battle-log { max-height: 32rem; overflow: auto; padding: 1rem; color: #ded7c8; background: #312d29; white-space: pre-wrap; }
.creature-record-description, .threat-record-description { padding: clamp(1.1rem, 3vw, 2rem); }
.creature-record-description h2 { margin: .25rem 0 .7rem; color: #f6f1e8; }
.creature-record-description p, .threat-record-description p { max-width: 55rem; line-height: 1.55; }
.creature-record-description > :last-child, .threat-record-description > :last-child { margin-bottom: 0; }
.creature-record > .vehicle-inspection, .ghost-detail > .vehicle-inspection { margin: 0 clamp(1.1rem, 3vw, 2rem) 1rem; }
.creature-record > .creature-bounty, .ghost-detail > .ghost-bounty { padding-top: 1rem; }
.inspection-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.inspection-pair > .vehicle-inspection { min-width: 0; }
.inspection-pair .inspection-sections, .patrol-member .inspection-sections { grid-template-columns: 1fr; }
.battle-report .table-scroll{overflow-x:auto}

.ghost-record-facts a:not(.thing-link),.patrol-member>p a:not(.thing-link),.threat-facts a:not(.thing-link){color:#dfc987}
@media (max-width: 760px) {
  .moon-card { align-items: stretch; flex-direction: column; }
  .threat-board .section-heading { align-items: start; }
  .threat-board .section-heading > p { margin-top: .45rem; }
  .threat-grid { grid-template-columns: 1fr; }
  .threat-card { grid-template-columns: 66px minmax(0, 1fr); }
  .threat-mark img, .threat-mark .spectral-transport img { width: 52px; height: 52px; }
  .threat-card header { align-items: start; }
  .ghost-record-hero { grid-template-columns: 90px minmax(0, 1fr); }
  .ghost-record-facts { grid-template-columns: 1fr 1fr; }
  .ghost-origin { grid-template-columns: minmax(0, 1fr) 72px; }
  .ghost-origin > img { width: 68px; height: 68px; }
}
@media (max-width: 480px) {
  .threat-board .section-heading, .threat-card header { flex-direction: column; align-items: start; }
  .ghost-record-hero { grid-template-columns: 1fr; }
  .ghost-record-hero > .ghost-record-spectre { width: 128px; min-height: 128px; justify-self: center; }
  .ghost-record-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .spectral-transport::before, .spectral-transport img { animation: none; }
}

@media(max-width:760px){.ghost-record-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.inspection-pair{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){.ghost-record-facts{grid-template-columns:minmax(0,1fr)}.creature-card .threat-facts>div{grid-template-columns:minmax(0,1fr);gap:.15rem}.creature-card .threat-facts dd{font-size:.875rem}}

/* original-world-events.css */
/* Original lunar/weather panels, with current shared controls applied later. */
.moon-card { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem; margin: 1rem 0 1.5rem; color: #f6f1dc; background: linear-gradient(135deg, #17243b, #35284d); border: 1px solid #605783; box-shadow: 0 10px 26px rgba(13,18,32,.24); }
.moon-card h2, .moon-card p { margin: .15rem 0; }
.moon-card .eyebrow, .moon-card small { color: #cdc5e7; }
.moon-icon { font-size: 4rem; line-height: 1; filter: drop-shadow(0 0 14px rgba(241,234,197,.28)); }
.weather-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: .8rem; }
.weather-card { display: flex; align-items: center; gap: .8rem; padding: .9rem; background: rgba(255,255,255,.75); border: 1px solid var(--line); }
.weather-card > div { min-width: 0; }
.weather-card h3, .weather-card p { margin: .1rem 0; }
.weather-card.weather-snow { color: #243943; background: linear-gradient(135deg, #f9fdff, #dcebf1); border-color: #9db8c5; }
.weather-card.weather-light_sleet { color: #263f49; background: linear-gradient(135deg, #edf7f8, #c9dde2); border-color: #86aab4; }
.weather-card.weather-heavy_sleet { color: #f1f8fa; background: linear-gradient(135deg, #526b75, #2b4652); border-color: #7899a6; }
.weather-card.weather-volcanic_activity { color: #fff1d9; background: linear-gradient(135deg, #713927, #302a2b); border-color: #cf8653; }
.weather-card.weather-duststorm { color: #fff3dc; background: #654b28; border-color: #be9759; }
.weather-card.weather-storm { color: #f7f2e7; background: linear-gradient(135deg, #343b48, #263447); border-color: #73849c; }
.weather-card.weather-hurricane { color: #f5f3ff; background: radial-gradient(circle at 15% 20%, #465575, transparent 36%), linear-gradient(135deg, #242a42, #101827); border-color: #7586ac; }
.weather-card a { color: inherit; }
.events-page .weather-icon{width:16px;height:16px;flex:0 0 16px;display:inline-grid;place-items:center;font-size:16px;line-height:1}
@media(max-width:600px){.moon-card{align-items:stretch;flex-direction:column}}

/* original-heart.css */
/* Shared Heart assaults retain native controls and readable narrow layouts. */
.heart-fleet-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1rem; }
.heart-fleet-roster { list-style: none; padding: 0; }
.heart-fleet-roster > li { margin: .7rem 0; padding: .8rem; border: 1px solid #8a897f; overflow-wrap: anywhere; min-width: 0; }
.heart-fleet-roster > li > div { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.heart-fleet-roster img { width: 40px; height: 40px; object-fit: contain; }
.heart-fleet-roster small { display: block; }
.heart-battle-timeline { padding-left: 1.3rem; overflow-wrap: anywhere; }
.heart-battle-timeline > li { margin-block: 1rem; }

/* original-regional-nameplates.css */


.city-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
.city-card { padding: 1rem; background: rgba(255,255,255,.76); border: 1px solid var(--line); border-radius: 8px; }

/* original-region-map.css */
.route-map { margin: 1.5rem 0; padding: .8rem; overflow: hidden; background: #143e53; border: 1px solid #315968; border-radius: 10px; box-shadow: 0 12px 30px rgba(31,49,54,.18); }
.route-map svg { display: block; width: 100%; height: auto; min-height: 320px; border-radius: 8px; }
.map-background { pointer-events: none; }
.map-city-halo { fill: rgba(238,228,208,.72); stroke: #171a18; stroke-width: 2.5; filter: drop-shadow(0 2px 3px rgba(0,0,0,.38)); }
.map-city-pin { fill: #d7952d; stroke: #171a18; stroke-width: 4; }
.map-city-label { pointer-events: none; }
.map-city-nameplate-shadow { fill: rgba(5,8,8,.62); }
.map-city-nameplate, .map-city-nameplate-tail { fill: rgba(18,23,22,.98); stroke: #f0dfb4; stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 2px 2px rgba(0,0,0,.55)); }
.map-city-nameplate-inlay { fill: none; stroke: #9f6f32; stroke-width: 1; stroke-linejoin: round; }
.map-city-label-rivet { fill: #dfa947; stroke: #211b12; stroke-width: .8; }
.map-city .map-city-name { fill: #fff7e6; font: 700 15px/1 Arial, Helvetica, sans-serif; letter-spacing: .2px; filter: drop-shadow(0 1px 1px #000); pointer-events: none; }
.map-city-rank-plate { fill: #e8b249; stroke: #21170c; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0,0,0,.55)); }
.map-city-rank { fill: #21170c; font: 800 7.5px/1 Arial, sans-serif; letter-spacing: .9px; text-transform: uppercase; }
.map-city-capital .map-city-pin { fill: var(--brand-orange); }
.map-capital-star-marker { fill: #17120b; font: 900 var(--place-icon-size)/1 Arial, sans-serif; pointer-events: none; }
.map-city-gateway .map-city-halo { stroke: #f2cb65; stroke-width: 4; stroke-dasharray: 6 4; }
.map-city-link { cursor: pointer; outline: none; }
.map-city-link:hover .map-city-halo, .map-city-link:focus .map-city-halo { fill: #fffaf0; stroke-width: 4; }
.map-city-link:hover .map-city-pin, .map-city-link:focus .map-city-pin { fill: var(--brand-orange); transform: scale(1.1); transform-box: fill-box; transform-origin: center; }
.map-city-link:hover .map-city-nameplate, .map-city-link:focus .map-city-nameplate,
.map-city-link:hover .map-city-nameplate-tail, .map-city-link:focus .map-city-nameplate-tail { fill: #292f2b; stroke: #ffd06a; }
.map-city-link:hover .map-city-nameplate-inlay, .map-city-link:focus .map-city-nameplate-inlay { stroke: var(--brand-orange); stroke-width: 2; }
.map-city-current .map-city-halo { fill: rgba(240,154,36,.24); stroke: var(--brand-orange); stroke-width: 5; }
.map-city-current .map-city-pin { fill: var(--brand-orange); stroke: #171a18; stroke-width: 4; }
.map-city-current .map-city-nameplate, .map-city-current .map-city-nameplate-tail { fill: rgba(23,26,24,.98); stroke: var(--brand-orange); }
.map-city-current .map-city-nameplate-inlay { stroke: #ffd26f; stroke-width: 1.75; }
.map-city-current.map-city-gateway .map-city-halo { stroke-dasharray: 6 4; }
.map-city-capital .map-city-nameplate, .map-city-capital .map-city-nameplate-tail { stroke: #f2c867; }
.map-city-capital .map-city-nameplate-inlay { stroke: var(--brand-orange); }
.map-city-capital .map-city-name { fill: #fff1c9; }
.map-city-unknown .map-city-halo { fill: rgba(184,177,163,.62); stroke: #596165; stroke-dasharray: 5 4; }
.map-city-unknown .map-city-pin { fill: #7d8583; stroke: #343934; }
.map-city-unknown .map-city-nameplate, .map-city-unknown .map-city-nameplate-tail { fill: rgba(27,31,29,.94); stroke: #b9b5a5; }
.map-city-unknown .map-city-nameplate-inlay { stroke: #696c65; }
.map-city-unknown .map-city-label-rivet { fill: #85877f; }
.map-city-unknown .map-city-name { fill: #d8d6cb; }
.map-city-unknown .map-city-halo, .map-city-unknown .map-city-pin,
.map-city-unknown .map-city-resources { opacity: .76; }
.map-city-resource-rack { fill: rgba(18,23,22,.94); stroke: rgba(240,223,180,.9); stroke-width: 1.5; filter: drop-shadow(0 3px 2px rgba(0,0,0,.45)); }
.map-resource-token { fill: #f4ead4; stroke: #171a18; stroke-width: 1.25; }
.map-oil-field-icon .map-resource-token { fill: #f3c865; stroke: #9d5d16; stroke-width: 1.75; }
.map-resource-icon image { image-rendering: auto; pointer-events: none; }
.route-map figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .7rem; color: #e1edef; font-size: .8rem; }
@media (max-width: 1000px) {
}
@media (max-width: 600px) {
}
.map-operation-link { cursor: pointer; outline: none; }
.map-operation-marker-halo { fill: rgba(8,12,11,.84); stroke: #f6e7bd; stroke-width: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.55)); }
.map-operation-marker-token { fill: var(--brand-orange); stroke: #17120b; stroke-width: 1.5; }
.map-mine-active-marker .map-operation-marker-token { fill: #8fc86c; }
.map-mine-inactive-marker .map-operation-marker-token { fill: #d56b5c; }
.map-shuttle-marker .map-operation-marker-token { fill: #6bc6d9; }
.map-operation-marker text { fill: #17120b; font: 900 8px/1 Arial, sans-serif; pointer-events: none; }
.map-operation-marker .map-operation-marker-count { fill: #fff; stroke: #17120b; stroke-width: 2.5; font-size: 7px; paint-order: stroke; }
.map-operation-link:hover .map-operation-marker-halo, .map-operation-link:focus .map-operation-marker-halo { stroke: #fff; stroke-width: 4; }
.active-mine-key, .inactive-mine-key, .mine-count-key, .automation-key, .shuttle-key { display: inline-flex; align-items: center; gap: .35rem; }
.active-mine-key i, .inactive-mine-key i, .mine-count-key i, .automation-key i, .shuttle-key i { display: inline-grid; width: 1rem; height: 1rem; place-items: center; border: 2px solid #17120b; border-radius: 50%; font: 900 .58rem/1 Arial, sans-serif; font-style: normal; }
.active-mine-key i { background: #8fc86c; }
.inactive-mine-key i { background: #d56b5c; }
.mine-count-key i { width: auto; min-width: .85rem; height: .85rem; padding: 0 .18rem; color: #fff; background: #17120b; border-color: #fff; font-size: .52rem; vertical-align: super; }
.automation-key i { background: var(--brand-orange); }
.shuttle-key i { background: #6bc6d9; }
.city-key::before, .mine-key::before, .gateway-key::before { content: ''; display: inline-block; width: 1.8rem; margin-right: .35rem; border-top: 4px solid; vertical-align: middle; }
.city-key::before { width: .8rem; height: .8rem; border: 2px solid #55666b; border-radius: 50%; background: #f5efd9; }
.city-key-capital::before { border-color: #17120b; background: var(--brand-orange); box-shadow: 0 0 0 2px #f5c56e; }
.city-key-current::before { border-color: #7a4206; background: #e9840c; }
.city-key-unknown::before { opacity: .5; background: #b8b1a3; }
.mine-key::before { width: 1rem; height: 1rem; border: 2px solid #4c5f62; border-radius: 3px; background: #faf7e8; }
.oil-field-key { display: inline-flex; align-items: center; gap: .3rem; }
.oil-field-key img { width: 1.35rem; height: 1.35rem; padding: .08rem; object-fit: contain; background: #f3c865; border-radius: 50%; }
.gateway-key::before { width: 1rem; height: 1rem; border: 3px dashed #f2cb65; border-radius: 50%; }
.route-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; padding: 0; list-style: none; }
.route-summary { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .65rem .8rem; background: rgba(255,255,255,.65); border: 1px solid var(--line); border-left: 5px solid; }
.route-summary.route-land { border-left-color: #9a5b35; }
.route-summary.route-sea { border-left-color: #397f9e; }
.route-summary.route-air { border-left-color: #777184; }
.route-summary > span { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.route-summary small { color: var(--muted); text-align: right; }
@media (prefers-reduced-motion: reduce) {
}
#content .map-mine-icon.golden-mine-icon > .map-resource-token { fill: #f6d575; stroke: #a16b14; stroke-width: 1.4; }
#content .map-mine-icon.golden-mine-icon > image { filter: sepia(.9) saturate(2.4) hue-rotate(350deg); }

/* original-fogo-dust.css */
.fogo-dust, .fogo-dust foreignObject, .fogo-dust-canvas { pointer-events: none; }
.fogo-dust-canvas { display: block; width: 900px; height: 600px; }
.fogo-dust-ready .fogo-dust-still { display: none; }
.fogo-dust-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 20px; }
.fogo-dust-caption p { margin: 0; font: 14px/1.5 Arial, Helvetica, sans-serif; }
.fogo-gold-key { color: #e6b44e; }
.fogo-ore-key { color: #a8b4bf; }
.fogo-dust-caption button { min-height: 44px; }

/* original-gallego-motes.css */
.gallego-motes { pointer-events: none; }
.gallego-mote-drift {
  animation: gallego-mote-drift var(--mote-duration) ease-in-out var(--mote-delay) infinite;
  animation-play-state: paused;
}
.gallego-mote-shimmer {
  animation: gallego-mote-shimmer var(--shimmer-duration) ease-in-out var(--shimmer-delay) infinite;
  animation-play-state: paused;
}
.gallego-rainbow {
  opacity: 0;
  animation: gallego-rainbow 120s linear var(--rainbow-delay) infinite;
  animation-play-state: paused;
}
.gallego-motes[data-motes-state="running"] .gallego-mote-drift,
.gallego-motes[data-motes-state="running"] .gallego-mote-shimmer,
.gallego-motes[data-motes-state="running"] .gallego-rainbow { animation-play-state: running; }
.gallego-motes-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 20px; }
.gallego-motes-caption p { margin: 0; font: 14px/1.5 Arial, Helvetica, sans-serif; }
.gallego-motes-caption button { min-height: 44px; }

/* original-katla-campaign.css */
.katla-subregion-map { margin: 1rem 0; max-width: 100%; overflow-x: auto; }
.katla-subregion-map svg { display: block; width: 100%; height: auto; background: #111; }
.katla-map-panel:has(.katla-map-detail:checked) .katla-subregion-map svg { min-width: 900px; }
.katla-map-controls { display: flex; align-items: center; gap: .6rem; min-height: 44px; font-weight: bold; }
#content .katla-map-detail { width: 20px; height: 20px; min-height: 20px; margin: 0; }
.katla-subregion-map figcaption { padding: .6rem 0; font-family: Arial, Helvetica, sans-serif; }
.katla-subregion-map a:focus-visible .map-city-nameplate { stroke: #fff; stroke-width: 3; }
.katla-subregion-map:focus-visible { outline: 3px solid #f09a24; outline-offset: 3px; }
.katla-region-map svg { min-height: 0; border-radius: 0; }
.katla-region-map { border-radius: 0; padding: 0; background: #111; }
.katla-place-leader { fill: none; stroke: #e8e8e8; stroke-width: 1.4; filter: drop-shadow(0 1px 2px #000); pointer-events: none; }
.katla-place-pin { fill: #111; stroke: #fff; stroke-width: 2.5; }
.katla-map-place[data-place-status="visited"] .katla-place-pin { fill: #f09a24; stroke: #111; }
.katla-map-place[data-current="true"] .katla-place-pin { stroke: #f09a24; stroke-width: 4; }
.katla-place-locked { fill: none; stroke: #fff; stroke-width: 1.5; pointer-events: none; }
.katla-region-map figcaption { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: .65rem; }
.katla-place-list li { min-height: 44px; padding-block: .55rem; scroll-margin-top: 5rem; }
/* Inline defender inspections need the full content width. */
#content .katla-fortress-list { grid-template-columns: minmax(0, 1fr); }
#content .raid-progress, #content .raid-rewards {
  min-width: 0; margin-block: 1rem; overflow-wrap: anywhere;
}
#content .raid-defender { min-width: 0; border-top: 1px solid #7776; margin-top: .7rem; padding-top: .4rem; }
#content .raid-defender summary, #content .raid-progress summary { min-height: 44px; padding: .65rem; font-weight: bold; }
#content .raid-rewards form { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
#content .raid-rewards label { display: grid; gap: .35rem; max-width: 100%; }
#content .raid-rewards input { width: 9rem; max-width: 100%; }
#content .raid-deadline time { white-space: normal; }
#content .katla-city-approach {
  margin: 1rem 0; padding: 1rem; border: 2px solid #f09a24; border-left-width: 6px;
  border-radius: 0; background: #171717; color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}
#content .katla-city-approach .eyebrow { color: #ffc16b; }
#content .katla-city-approach h2 { margin: .35rem 0 .6rem; color: #fff; font-size: clamp(1.2rem, 2vw, 1.6rem); }
#content .katla-city-approach p { max-width: 80ch; line-height: 1.5; }
#content .katla-city-approach .text-link { color: #ffc16b; }
#content .katla-city-approach details { margin-top: .75rem; background: #222; color: #fff; }
#content .katla-city-approach summary { min-height: 44px; padding: .65rem; color: #fff; font-weight: bold; }
#content .katla-city-approach details p { margin: .65rem; }
#content .katla-approach-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
#content .katla-approach-actions .button { max-width: 100%; white-space: normal; text-align: center; }

/* original-creature-portraits.css */
#content .creature-record > .battle-countermeasures { padding: 0 clamp(1.1rem, 3vw, 2rem) 1rem; }
#content .creature-record > .battle-countermeasures ul { margin: .65rem 0; padding-inline-start: 1.25rem; }
#content .creature-record > .battle-countermeasures li > p { margin: .25rem 0 .65rem; }
#content .battle-countermeasures h2 { font-family: Arial, Helvetica, sans-serif; }
#content .creature-record > .battle-countermeasures > :last-child { margin-bottom: 0; }

/* Living-threat illustrations share the Things shimmer and retain their colours. */
.creature-inspection { --creature-glow: #b64a3e; }
.creature-inspection.rarity-1 { --creature-glow: #d7d23a; }
.creature-inspection.rarity-2 { --creature-glow: #91c54b; }
.creature-inspection.rarity-3 { --creature-glow: #73a9c7; }
.creature-inspection.rarity-4 { --creature-glow: #d45a45; }
.creature-inspection.rarity-5 { --creature-glow: #a868aa; }
.creature-inspection.rarity-6 { --creature-glow: #f2a249; }
#content .creature-inspection .inspection-heading { flex-wrap: wrap; gap: 1.25rem; }
#content .creature-inspection .inspection-heading > div { flex: 1 1 12rem; }
#content .creature-portrait {
  position: relative; isolation: isolate; display: grid; place-items: center;
  flex: 0 1 300px; width: 300px; max-width: 100%; aspect-ratio: 3 / 2;
  box-sizing: border-box; overflow: hidden; padding: 14px;
  background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--creature-glow) 28%, #18232a), #111c23 78%);
  border: 1px solid color-mix(in srgb, var(--creature-glow) 65%, #283237);
  box-shadow: inset 0 0 0 3px #ffffff08, 0 3px 12px #14201b33;
  --item-shimmer-delay: -4.6s;
}
#content .creature-portrait > img {
  display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain;
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--creature-glow) 60%, transparent));
}
#content .creature-portrait .item-lustre { inset: 14px; }
@media (max-width: 760px) {
  #content .creature-inspection .inspection-heading { flex-direction: column; align-items: stretch; }
  #content .creature-inspection .inspection-heading > div { flex: none; }
  #content .creature-portrait { flex: none; align-self: center; }
}

/* original-factions.css */
.factions-page { --faction-ink: #183b42; color: #173943; }
.factions-page p { line-height: 1.65; }
.faction-intro { max-width: 72ch; font-size: 1.08rem; }
.faction-breadcrumb { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.3rem; }
.faction-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .65rem; padding: 1rem; margin: 1.5rem 0; background: #f8f5e9; border: 1px solid #b8b29d; }
.faction-search label { flex: 1 1 16rem; min-width: 0; font-weight: 700; }
.faction-search input { display: block; width: 100%; margin-top: .45rem; }
.faction-count { font-weight: 700; }
.faction-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.faction-card { display: flex; flex-direction: column; padding: 1.2rem; border: 1px solid #aaa58f; border-top: 4px solid #e99a18; background: #fcf9ef; min-width: 0; }
.faction-card-top { display: flex; align-items: center; gap: 1rem; }
.faction-card h2 { margin: .3rem 0; font-size: 1.3rem; }
.faction-card > .button { align-self: flex-start; margin-top: auto; }
.faction-card > p { flex: 1; }
.faction-role { font-size: .87rem; margin: .4rem 0; }
.faction-portrait { margin: 0; padding: 1rem; background: #172b2c; color: #fff4d5; text-align: center; border-bottom: 3px solid #e99a18; }
.faction-portrait img { display: block; object-fit: contain; width: 100%; height: 220px; filter: drop-shadow(0 4px 8px #0006); }
.faction-portrait figcaption { margin-top: .5rem; font-size: .8rem; }
.faction-portrait-small { flex: 0 0 88px; width: 88px; padding: .4rem; }
.faction-portrait-small img { height: 88px; }
.faction-heading { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: center; gap: 2rem; margin-bottom: 1.5rem; }
.faction-heading h1 { margin: .5rem 0; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; }
.faction-heading blockquote { margin: 1rem 0; border-left: 4px solid #e99a18; padding-left: 1rem; font-weight: 700; }
.faction-landscape { margin: 0; background: #152e32; color: #fff4d5; }
.faction-landscape img { display: block; width: 100%; height: auto; aspect-ratio: 30 / 13; object-fit: cover; }
.faction-landscape figcaption { padding: .7rem 1rem; font-size: .9rem; }
.faction-location { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem; margin-bottom: 2rem; background: #f9f5e9; border: 1px solid #b8b29d; }
.faction-location > div { flex: 1 1 220px; min-width: 0; }
.faction-homes { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin-top: .4rem; }
.faction-homes .faction-place { min-height: 44px; flex-shrink: 0; }
.faction-place { display: inline-flex; align-items: center; gap: .35rem; vertical-align: middle; }
.faction-place img { object-fit: contain; width: 28px; height: 28px; }
.faction-reading { max-width: 80ch; margin-inline: auto; }
.faction-reading section { margin-bottom: 2.2rem; }
.faction-reading h2 { border-bottom: 2px solid #c3b790; padding-bottom: .45rem; }
.faction-gallery-section, .faction-profile > section { margin-top: 2rem; }
.faction-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.faction-gallery figure { margin: 0; padding: 1rem; background: #152e32; color: #eceddf; border-bottom: 3px solid #e99a18; }
.faction-gallery a { display: block; }
.faction-gallery img { display: block; width: 100%; height: 180px; object-fit: contain; margin-bottom: .8rem; }
.faction-gallery a:not([class*="rarity-"]) { color: #ffdc89; }
.faction-gallery .rarity-1 { --rarity-link-color: #f6e468; }
.faction-gallery .rarity-2 { --rarity-link-color: #a8e673; }
.faction-gallery .rarity-3 { --rarity-link-color: #8bd7fa; }
.faction-gallery .rarity-4 { --rarity-link-color: #ff9991; }
.faction-gallery .rarity-5 { --rarity-link-color: #e7b0ff; }
.faction-gallery .rarity-6 { --rarity-link-color: #ffc278; }
.faction-gallery figcaption { font-size: .9rem; line-height: 1.5; margin-top: .6rem; }
.faction-actions, .faction-relations { display: flex; flex-wrap: wrap; gap: .75rem; }
.faction-relations a { flex: 1 1 220px; display: flex; flex-direction: column; gap: .4rem; background: #fcf9ef; padding: 1rem; border: 1px solid #b8b29d; }
.faction-relations span { font-size: .85rem; color: #29454b; }
.faction-footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #b8b29d; }
.factions-page a, .factions-page h1, .factions-page h2 { overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .faction-heading { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .faction-heading > .faction-portrait { max-width: 280px; width: 100%; justify-self: center; }
  .faction-card { padding: .9rem; }
  .faction-card-top { gap: .65rem; }
  .faction-portrait-small { flex-basis: 68px; width: 68px; }
  .faction-portrait-small img { height: 68px; }
  .faction-location { padding: .8rem; }
  .faction-location > div { flex-basis: 100%; }
  .faction-search .button, .faction-search button { flex: 1 1 auto; }
}

/* original-faction-layout.css */
.factions-page .page-title { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(200px, .55fr); align-items: end; gap: 1.4rem clamp(1.5rem, 3vw, 3rem); min-height: 0; margin: 0 0 2.2rem; padding: 0 0 1.65rem; background: none; border: 0; border-bottom: 1px solid var(--line); }
.factions-page .page-title:not(:has(> :nth-child(2))) { grid-template-columns: minmax(0, 1fr); }
.factions-page .page-title > div { width: 100%; min-width: 0; max-width: none; }
.factions-page .page-title > div:not(:first-child) { width: auto; max-width: 100%; justify-self: end; }
.factions-page .page-title > form { grid-column: 1 / -1; width: min(430px, 100%); }
.factions-page .page-title h1 { max-width: 100%; margin: .38rem 0 0; color: #252824; font-size: clamp(2.25rem, 4vw, 4rem); line-height: .92; overflow-wrap: break-word; word-break: normal; hyphens: none; text-wrap: balance; }
.factions-page .page-title-long h1 { font-size: clamp(2.25rem, 3.25vw, 3.4rem); }
.factions-page .page-title > p { max-width: 35rem; justify-self: end; margin: 0; color: var(--muted); font: .94rem/1.65 Arial, Helvetica, sans-serif; }
.factions-page .page-title > a:not(.button) { justify-self: end; padding-bottom: .25rem; color: #594013; border-bottom: 2px solid var(--brand-orange); font-size: .78rem; font-weight: 900; }
.factions-page .page-title > a.button { justify-self: end; }

@media (max-width: 1180px) {
  .factions-page .page-title { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .factions-page .page-title > p, .factions-page .page-title > a,
  .factions-page .page-title > div:not(:first-child) { width: auto; max-width: 100%; justify-self: start; }
}

/* original-region-header.css */
.map-header { margin: 1rem 0 .7rem; overflow: hidden; color: #f4edda; background: linear-gradient(115deg, #26332e, #1c2724); border: 1px solid #53604c; border-top: 3px solid #c8a560; border-radius: 8px; box-shadow: 0 4px 12px #15201820; }
.map-header-overview { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; }
.map-header-title { display: flex; align-items: center; gap: .65rem; flex: 0 0 auto; }
.map-header-title > .region-flag { width: 42px; height: 32px; margin: 0; }
.map-header-title .eyebrow { margin: 0 0 .15rem; color: #c8b584; font-size: .62rem; letter-spacing: .12em; }
.map-header-title h1 { margin: 0; color: #fff3d4; font: 700 1.6rem/1.1 Arial, Helvetica, sans-serif; }
.map-operation-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; margin: 0; }
.map-operation-stats > div { display: flex; flex-direction: column; align-items: center; gap: .18rem; min-width: 0; padding-left: .7rem; border-left: 1px solid #ffffff1f; text-align: center; }
.map-operation-stats dt { color: #c4cbbf; font-size: .68rem; line-height: 1.25; }
.map-operation-stats dd { order: -1; margin: 0; color: #fff3d4; font: 700 1.2rem/1 Arial, sans-serif; font-variant-numeric: tabular-nums; }
.region-danger { padding: .65rem 1rem .8rem; border-top: 1px solid #ffffff18; }
.region-danger dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin: 0; }
.region-danger-card { --danger-color: #c9d1cb; --danger-bg: #35413c; min-width: 0; }
.region-danger-card.danger-green { --danger-color: #b7e1a5; --danger-bg: #304a35; }
.region-danger-card.danger-amber { --danger-color: #f7d080; --danger-bg: #504529; }
.region-danger-card.danger-red { --danger-color: #ffb4a6; --danger-bg: #583731; }
.region-danger-card dt { margin-bottom: .3rem; color: #e1e4d9; font: 700 .72rem/1.25 Arial, sans-serif; }
.region-danger-card dd { display: flex; align-items: center; gap: .5rem; margin: 0; }
.region-danger-score { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .35rem; padding: .2rem .4rem; border: 1px solid var(--danger-color); border-radius: 4px; color: var(--danger-color); background: var(--danger-bg); font: 700 .7rem/1.25 Arial, sans-serif; }
.region-danger-score strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.region-danger-card small { color: #c4cbbf; font-size: .68rem; line-height: 1.35; }
@media (max-width: 1000px) {
  .region-danger-card dd { align-items: flex-start; flex-direction: column; gap: .3rem; }
}
@media (max-width: 600px) {
  .map-header-overview { align-items: stretch; flex-direction: column; gap: .8rem; padding: .75rem; }
  .map-header-title h1 { font-size: 1.4rem; }
  .map-operation-stats { grid-template-columns: 1fr 1fr 1.1fr 1.5fr 1fr; gap: .25rem; }
  .map-operation-stats > div { padding-left: .35rem; }
  .map-operation-stats > div:first-child { padding-left: 0; border-left: 0; }
  .map-operation-stats dt { font-size: .63rem; }
  .region-danger { padding: .65rem .75rem .75rem; }
  .region-danger dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem .85rem; }
}

/* original-region-lore.css */
/* Keep Lore above the visible map corner, outside its mobile scrolling area.
   Native popovers use the top layer and work without JavaScript or a fetch. */
.region-map-frame { position: relative; margin: 1.5rem 0; }
.region-map-frame > .route-map { margin: 0; }
#content .map-raid-location { margin: .35rem 0 0; font-size: .85rem; line-height: 1.4; }
#content .map-raid-location .text-link:any-link { color: #ffd08c; }
.map-raid-dot { fill: #6c3899; stroke: #ffd56c; stroke-width: 1.1; }
.raid-destination-key i { display: inline-block; width: 9px; height: 9px; border: 1px solid #ffd56c; border-radius: 50%; background: #6c3899; }
#content .city-raid-clues { margin: .8rem 0; }
#content .city-raid-clues summary { min-height: 44px; box-sizing: border-box; padding: .7rem; font-weight: bold; }
#content .city-raid-clues ul { padding-left: 1.4rem; }
#content .city-raid-clues li { margin: .6rem 0; }
#content .city-raid-clues li span { display: block; margin-top: .15rem; }
.map-city-meldable .map-city-marker {
  transform-box: fill-box; transform-origin: center;
  animation: map-meld-ingredients-pulse 3.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .map-city-meldable .map-city-marker { animation: none; }
}
#content .region-lore-button { position: absolute; top: .8rem; right: .8rem; z-index: 2; min-height: 44px; margin: 0; padding: .6rem .9rem; }
#content .region-map-frame:has(.katla-map-panel) > .region-lore-button { top: 0; right: 0; }
.region-map-frame .katla-map-controls { padding-right: 5.5rem; }
#content .region-lore-panel {
  box-sizing: border-box; width: min(46rem, calc(100vw - 1rem));
  max-height: calc(100dvh - 2rem); margin: auto; padding: 0;
  overflow: auto; overscroll-behavior: contain; border: 2px solid #f09a24;
  border-radius: 0; color: #171717; background: #fff;
  box-shadow: 0 10px 40px #0006; font-family: Arial, Helvetica, sans-serif;
}
.region-lore-panel::backdrop { background: #0008; }
#content .region-lore-heading { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem; background: #111; color: #fff; border-bottom: 3px solid #f09a24; }
#content .region-lore-heading h2 { margin: 0; color: inherit; font-size: 1.2rem; line-height: 1.3; }
#content .region-lore-heading button { flex-shrink: 0; margin: 0; }
#content .region-lore-body { padding: .25rem 1rem 1rem; overflow-wrap: anywhere; line-height: 1.6; }
#content .region-lore-body section { margin: 0; padding: 1rem 0; border-bottom: 1px solid #ccc; background: transparent; }
#content .region-lore-body section:last-child { border-bottom: 0; padding-bottom: 0; }
#content .region-lore-body h3 { margin: 0 0 .75rem; font-size: 1.15rem; color: #171717; }
#content .region-lore-body h4 { margin: 1.15rem 0 .25rem; font-size: 1rem; color: #171717; }
#content .region-lore-body p { margin: .5rem 0; }
#content .region-lore-body a { color: #8c4300; text-decoration: underline; text-underline-offset: .15em; }
#content .region-lore-body a:hover { color: #111; }
#content .region-lore-body a.thing-link { color: var(--rarity-link-color, #8c4300); }
#content .region-lore-body .region-lore-habitat { margin-top: 0; font-size: .8rem; font-weight: 700; color: #555; }
@media (max-width: 480px) {
  #content .region-lore-heading { padding: .6rem .75rem; }
  #content .region-lore-body { padding-inline: .75rem; }
}

/* original-free-dwarrows.css */
.dwarrow-page { display: grid; gap: 1.5rem; min-width: 0; }
.dwarrow-page section { min-width: 0; }
.dwarrow-introduction { border-left: 5px solid #ff8500; padding: 1rem; background: #171b19; color: #fff; }
.dwarrow-introduction h2, .dwarrow-introduction a { color: #ffb452; }
.dwarrow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: .8rem; }
.dwarrow-card { padding: 1rem; border: 1px solid #a89879; background: #fffaf0; color: #171b19; overflow-wrap: anywhere; }
.dwarrow-card h3 { margin-top: 0; }
.dwarrow-card p:last-child { margin-bottom: 0; }
.dwarrow-counters { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.dwarrow-counters dt { font-weight: bold; }
.dwarrow-counters dd { margin: .3rem 0; font-size: 1.5rem; }
.dwarrow-status { font-weight: bold; }
.dwarrow-page details { margin-top: 1rem; }

#content .dwarrow-page .dwarrow-introduction a.text-link,
#content .dwarrow-page .dwarrow-introduction .eyebrow { color: #ffb452; }
#content .dwarrow-page .dwarrow-introduction a.text-link:hover { color: #fff; }

/* original-convoy-market.css */
.convoy-market-card, .convoy-market-member { min-width: 0; padding: 1rem; border: 1px solid var(--line, #ccc); background: var(--paper, #fff); color: #161616; overflow-wrap: anywhere; }
.convoy-market-card > header, .convoy-market-member > header { display: flex; gap: .75rem; align-items: center; }
.convoy-market-card > header > div, .convoy-market-member > header > div { min-width: 0; }
.convoy-market-card > header img, .convoy-market-member > header img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain; }
.convoy-market-card h3, .convoy-market-member h2 { margin: .25rem 0; }
.convoy-market-card form, .convoy-market-offer form { margin-block: .65rem 0; }
.convoy-market-members { display: grid; gap: 1rem; }
.convoy-market-contents { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .75rem; }
.convoy-market-contents ul { margin: 0; padding-inline-start: 1.25rem; }
.convoy-market-contents h3 { margin-block: .4rem; }
.convoy-settings :is(input, select) { min-width: 0; max-width: 100%; box-sizing: border-box; }
.convoy-market-offer :is(button, .button), .convoy-market-card :is(button, .button) { white-space: normal; max-width: 100%; }

/* original-mining.css */
.mining-page .mine-list, .mining-page .shop-grid{ display: grid; gap: .8rem; }
.mining-page .mine-actions{ display: flex; gap: .5rem; }
.mining-page .mine-actions form{ margin: 0; }
.mining-page .mine-tool-links{ margin-top: .7rem; }
.mining-page .mine.inactive{ opacity: .72; }
.mining-page .mine-roster-overview{ display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(340px, .9fr); gap: 1.2rem; margin-bottom: 1rem; padding: 1.2rem; color: #f1ecdf; background: #171b18; border-top: 6px solid var(--brand-orange); box-shadow: 0 14px 30px rgba(45,34,21,.18); }
.mining-page .mine-roster-overview h2, .mining-page .mine-roster-overview p{ margin: 0; }
.mining-page .mine-roster-overview > div > p:last-child{ max-width: 48rem; margin-top: .55rem; color: #b8b9b2; line-height: 1.5; }
.mining-page .mine-roster-overview dl{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: #434941; border: 1px solid #434941; }
.mining-page .mine-roster-overview dl div{ display: grid; gap: .2rem; padding: .75rem; background: #242925; }
.mining-page .mine-roster-overview dt{ color: #a8aaa4; font: 800 .6rem/1.2 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.mining-page .mine-roster-overview dd{ margin: 0; color: #fff4db; font: 900 1.35rem/1 "Arial Narrow", Impact, Arial, sans-serif; }
.mining-page .mine-shift-board{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 0 0 1rem; }
.mining-page .mine-shift-card{ display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45rem .75rem; align-items: center; min-width: 0; padding: .85rem; background: #f4eddf; border: 1px solid var(--line); border-top: 4px solid #85877f; }
.mining-page .mine-shift-card.is-current{ background: #fff7e8; border-color: #b56b17; border-top-color: var(--brand-orange); box-shadow: 0 7px 16px rgba(68,48,23,.1); }
.mining-page .mine-shift-letter{ display: inline-grid; grid-row: span 2; width: 2.2rem; height: 2.2rem; place-items: center; color: #fff; background: #333a35; font: 900 1rem/1 Arial, sans-serif; }
.mining-page .mine-shift-card.is-current .mine-shift-letter{ color: #251708; background: var(--brand-orange); }
.mining-page .mine-shift-card p, .mining-page .mine-shift-card h2, .mining-page .mine-shift-card small{ margin: 0; }
.mining-page .mine-shift-card p{ color: #806640; font: 900 .55rem/1 Arial, sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.mining-page .mine-shift-card small{ color: var(--muted); }
.mining-page .mine-shift-card > strong{ grid-column: 1 / -1; padding-top: .55rem; border-top: 1px solid var(--line); font-size: .75rem; }
.mining-page .mine-shift-actions{ display: flex; grid-column: 1 / -1; align-items: center; gap: .45rem; }
.mining-page .mine-shift-actions button{ min-height: 32px; padding: .45rem .6rem; font-size: .65rem; }
.mining-page .mine-roster-command{ padding: 1rem; background: rgba(255,255,255,.46); border: 1px solid var(--line); }
.mining-page .mine-roster-command > header{ display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.mining-page .mine-roster-command > header h2, .mining-page .mine-roster-command > header p{ margin: 0; }
.mining-page .mine-roster-command > p{ max-width: 70rem; color: var(--muted); line-height: 1.5; }
.mining-page .mine-roster-list{ display: grid; gap: .65rem; }
.mining-page .mine-roster-row{ background: #faf5ea; border: 1px solid #cfc3af; border-left: 6px solid #8a877f; box-shadow: 0 5px 13px rgba(56,42,25,.05); }
.mining-page .mine-roster-row.is-active{ border-left-color: #557d2e; }
.mining-page .mine-roster-row > header{ display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; min-height: 0; padding: .72rem .8rem; color: inherit; background: transparent; border: 0; border-bottom: 1px solid #d8cdbb; }
.mining-page .mine-roster-row > header p, .mining-page .mine-roster-row > header h3, .mining-page .mine-roster-row > header small{ margin: 0; }
.mining-page .mine-roster-row > header p{ color: #8b5a21; font: 900 .56rem/1.25 Arial, sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.mining-page .mine-roster-row > header small{ color: var(--muted); }
.mining-page .mine-roster-priority{ display: inline-grid; width: 2.2rem; height: 2.2rem; place-items: center; color: #fff; background: #282d29; font: 900 .8rem/1 Arial, sans-serif; }
.mining-page .mine-roster-order{ display: flex; gap: .35rem; }
.mining-page .mine-roster-order button{ min-height: 32px; padding: .42rem .55rem; font-size: .63rem; }
.mining-page .mine-roster-body{ display: grid; grid-template-columns: minmax(190px, .75fr) minmax(360px, 2fr); align-items: stretch; gap: .75rem; padding: .72rem .8rem; }
.mining-page .mine-roster-robot{ display: flex; align-items: center; gap: .6rem; min-width: 0; padding: .55rem; background: #ede5d7; border: 1px solid #d6c9b5; }
.mining-page .mine-roster-robot > span{ display: inline-grid; width: 2.2rem; height: 2.2rem; flex: 0 0 auto; place-items: center; color: #d7e0d8; background: #3e4a43; border: 2px solid #79877e; font: 900 .65rem/1 Arial, sans-serif; }
.mining-page .mine-roster-robot strong, .mining-page .mine-roster-robot small{ display: block; }
.mining-page .mine-roster-robot small{ margin-top: .18rem; color: var(--muted); font-size: .62rem; }
.mining-page .mine-roster-equipment{ display: flex; align-items: center; gap: .38rem; margin-top: .42rem; }
.mining-page .mine-roster-equipment-label{ color: #66665f; font: 900 .52rem/1 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.mining-page .mine-roster-equipment-squares{ display: flex; flex-wrap: wrap; gap: .2rem; }
.mining-page .mine-roster-equipment-square{ --equipment-swatch: #d4c9b7; display: inline-grid; width: 1.35rem; height: 1.35rem; place-items: center; box-sizing: border-box; color: #242820; background: var(--equipment-swatch); border: 1px solid color-mix(in srgb, var(--equipment-swatch) 65%, #242820); border-radius: 2px; font: 900 .47rem/1 Arial, sans-serif; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.mining-page .mine-roster-equipment-square.rarity-1{ --equipment-swatch: #d7d23a; }
.mining-page .mine-roster-equipment-square.rarity-2{ --equipment-swatch: #91c54b; }
.mining-page .mine-roster-equipment-square.rarity-3{ --equipment-swatch: #73a9c7; }
.mining-page .mine-roster-equipment-square.rarity-4{ --equipment-swatch: #d45a45; color: #fff7ed; }
.mining-page .mine-roster-equipment-square.rarity-5{ --equipment-swatch: #a868aa; color: #fff7ed; }
.mining-page .mine-roster-equipment-square.rarity-6{ --equipment-swatch: #f2a249; }
.mining-page .mine-roster-equipment-square.is-empty{ color: #817b70; background: transparent; border-style: dashed; border-color: #aaa08f; box-shadow: none; }
.mining-page .mine-roster-equipment-square:any-link:hover, .mining-page .mine-roster-equipment-square:any-link:focus-visible{ color: #111; outline: 2px solid #332d23; outline-offset: 1px; transform: translateY(-1px); }
.mining-page .mine-roster-shifts{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.mining-page .mine-shift-choice{ display: flex; align-items: center; gap: .5rem; min-width: 0; margin: 0; padding: .55rem; color: #3f413b; background: #eee8dd; border: 1px solid #d2c8b8; cursor: pointer; }
.mining-page .mine-shift-choice input{ width: auto; min-height: 0; margin: 0; accent-color: #598032; }
.mining-page .mine-shift-choice span{ display: grid; gap: .15rem; min-width: 0; }
.mining-page .mine-shift-choice strong{ font-size: .7rem; }
.mining-page .mine-shift-choice small{ color: #77736b; font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.mining-page .mine-shift-choice.is-working{ color: #f6f4e8; background: #3e5d27; border-color: #30491d; }
.mining-page .mine-shift-choice.is-working small{ color: #d7eac6; }
.mining-page .mine-shift-choice.is-standby{ color: #3c301f; background: #f3d99c; border-color: #ba8a37; }
.mining-page .mine-shift-choice.is-standby small{ color: #73501b; }
.mining-page .mine-shift-choice.is-off{ opacity: .72; }
.mining-page .mine-shift-choice.is-current{ box-shadow: inset 0 -3px var(--brand-orange); }
.mining-page .mine-roster-save{ position: sticky; z-index: 4; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .85rem; padding: .8rem 1rem; color: #e8e3d8; background: rgba(23,27,24,.97); border-top: 4px solid var(--brand-orange); box-shadow: 0 -7px 20px rgba(37,29,20,.17); }
.mining-page .mine-roster-save p{ margin: 0; color: #bfc1ba; font-size: .72rem; }
.mining-page .mine-roster-save button{ flex: 0 0 auto; }
.mining-page .mine-tool-navigation{ margin: 1rem 0 1.5rem; }
.mining-page .loadout-layout{ display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; margin: 1.5rem 0; padding: 1.2rem; background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.mining-page .equipped-list{ display: grid; gap: .45rem; padding: 0; list-style: none; }
.mining-page .equipped-list li{ min-height: 1.6rem; }
.mining-page .equipped-list form, .mining-page .loadout-layout p form{ display: inline; }
.mining-page .loadout-list{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.mining-page .detonator-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.mining-page .detonator-grid .item-card{ display: flex; flex-direction: column; align-items: stretch; }
.mining-page .detonator-grid .item-card-link{ width: 100%; }
.mining-page .detonator-grid .item-card-actions{ width: 100%; margin-top: auto; padding-top: .7rem; border-top: 1px solid rgba(85,102,107,.2); }
.mining-page .detonator-grid .item-card-actions form{ width: 100%; }
.mining-page .detonator-options{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; width: 100%; }
.mining-page .detonator-option{ display: grid; min-width: 0; min-height: 48px; place-items: center; align-content: center; gap: .1rem; padding: .45rem .2rem; color: #fff; background: linear-gradient(#8a9293, #62696a); border: 1px solid #505758; box-shadow: 0 2px 0 #454b4c; font-weight: bold; }
.mining-page .detonator-option:hover:not(:disabled){ background: linear-gradient(#a05f39, #7b3f23); border-color: #66341d; }
.mining-page .detonator-option span{ font-size: .82rem; }
.mining-page .detonator-option small{ color: #f7e5bd; font-size: .62rem; line-height: 1; }
.mining-page .detonator-option:disabled{ color: #6e7475; background: #d2d5d4; border-color: #b8bcbb; box-shadow: none; }
.mining-page .detonator-option:disabled small{ color: #747a7b; }
.mining-page .explosion-result{ float: right; margin: 1.2rem; padding: .7rem; background: rgba(255,255,255,.72); border: 1px solid var(--line); text-align: center; }
.mining-page .explosion-result img{ display: block; width: 100px; height: 100px; image-rendering: pixelated; }
.mining-page .explosion-result figcaption{ margin-top: .4rem; color: var(--muted); font-size: .75rem; }
.mining-page .detonator-form{ width: 100%; }
.mining-page .equipped-list .item-card-actions form{ display: block; }
.mining-page .stone-progress{ display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: 1rem; background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.mining-page .stone-progress h2, .mining-page .stone-progress p{ margin: 0; }
.mining-page .stone-icons{ display: flex; gap: .25rem; }
.mining-page .stone-icons img, .mining-page .stone-card img{ width: 30px; height: 30px; object-fit: contain; }
@media(max-width:900px){.mining-page .mine-roster-overview,.mining-page .mine-roster-body,.mining-page .mine-shift-board{grid-template-columns:1fr}}
@media(max-width:760px){.mining-page .loadout-layout,.mining-page .loadout-list,.mining-page .detonator-grid,.mining-page .stone-progress{grid-template-columns:1fr}}
@media(max-width:680px){.mining-page .mine-roster-command>header,.mining-page .mine-roster-save{align-items:stretch;flex-direction:column}.mining-page .mine-roster-shifts{grid-template-columns:1fr}.mining-page .mine-roster-save button{width:100%}}

/* original-fleet.css */
.fleet-page .page-title { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(200px, .55fr); align-items: end; gap: 1.4rem clamp(1.5rem, 3vw, 3rem); min-height: 0; margin: 0 0 2.2rem; padding: 0 0 1.65rem; background: none; border: 0; border-bottom: 1px solid var(--line); }
.fleet-page .page-title:not(:has(> :nth-child(2))) { grid-template-columns: minmax(0, 1fr); }
.fleet-page .page-title > div { width: 100%; min-width: 0; max-width: none; }
.fleet-page .page-title > div:not(:first-child) { width: auto; max-width: 100%; justify-self: end; }
.fleet-page .page-title > form { grid-column: 1 / -1; width: min(430px, 100%); }
.fleet-page .page-title h1 { max-width: 100%; margin: .38rem 0 0; color: #252824; font-size: clamp(2.25rem, 4vw, 4rem); line-height: .92; overflow-wrap: break-word; word-break: normal; hyphens: none; text-wrap: balance; }
.fleet-page .page-title-long h1 { font-size: clamp(2.25rem, 3.25vw, 3.4rem); }
.fleet-page .page-title > p { max-width: 35rem; justify-self: end; margin: 0; color: var(--muted); font: .94rem/1.65 Arial, Helvetica, sans-serif; }
.fleet-page .page-title > a:not(.button) { justify-self: end; padding-bottom: .25rem; color: #594013; border-bottom: 2px solid var(--brand-orange); font-size: .78rem; font-weight: 900; }
.fleet-page .page-title > a.button { justify-self: end; }

@media (max-width: 1180px) {
  .fleet-page .page-title { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .fleet-page .page-title > p, .fleet-page .page-title > a,
  .fleet-page .page-title > div:not(:first-child) { width: auto; max-width: 100%; justify-self: start; }
}
.fleet-page .vehicle-list { display: grid; gap: .8rem; }
.fleet-page .vehicle-region-list { display: grid; gap: 1rem; margin-top: 1rem; }
.fleet-page .vehicle-council-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .8rem; }
.fleet-page .vehicle-council-escalation { min-width: 0; margin-bottom: 1rem; padding: 1rem; color: #352a1d; background: #fff2d9; border: 1px solid #c89948; border-left: 4px solid #a95119; overflow-wrap: anywhere; }
.fleet-page .vehicle-council-list .vehicle-council-escalation { margin-bottom: 0; }
.fleet-page .vehicle-council-escalation h2, .fleet-page .vehicle-council-escalation h3 { margin: 0 0 .65rem; color: #352a1d; font-size: 1.1rem; }
.fleet-page .vehicle-council-escalation p { margin: .5rem 0 0; font-size: .85rem; line-height: 1.5; }
.fleet-page .vehicle-council-escalation .vehicle-council-level { color: #792f0a; }
.fleet-page .vehicle-council-escalation a:any-link { color: #703511; }
.fleet-page .vehicle-council-escalation time, .fleet-page .vehicle-council-escalation .field-help { color: #5b4c39; }
.fleet-page .vehicle-region { padding: .8rem; background: rgba(255,255,255,.38); border: 1px solid var(--line); }
.fleet-page .vehicle-region > header { display: flex; min-height: 0; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding: 0 0 .65rem; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); }
.fleet-page .vehicle-region > header h3, .fleet-page .vehicle-region > header p { margin: 0; }
.fleet-page .vehicle-region > header > p { color: var(--muted); }
.fleet-page .vehicle-location-list { display: grid; gap: .5rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.fleet-page .vehicle-location-list li { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(7rem, auto) auto; align-items: center; gap: .7rem; padding: .75rem .9rem; background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.fleet-page .vehicle-location-list form { margin: 0; }
.fleet-page .rank-badge { display: inline-block; margin-right: .35rem; vertical-align: middle; }
.fleet-page .rank-badge img { display: inline-block; width: auto; height: 14px; vertical-align: middle; }
.fleet-page .vehicle-list .item-card { width: 100%; }
.fleet-page .idle-vehicle-card { min-height: 0; grid-template-columns: minmax(14rem, 1fr) auto; grid-template-areas: "vehicle-summary vehicle-actions" "vehicle-status vehicle-actions"; gap: .15rem .8rem; padding: .6rem .75rem; }
.fleet-page .idle-vehicle-card > .item-card-link { grid-area: vehicle-summary; }
.fleet-page .idle-vehicle-card > .item-card-details { grid-area: vehicle-status; }
.fleet-page .idle-vehicle-card > .item-card-actions { grid-area: vehicle-actions; align-items: end; flex-wrap: nowrap; }
.fleet-page .idle-vehicle-card .button, .fleet-page .idle-vehicle-card button { min-height: 38px; padding: .55rem .7rem; }
.fleet-page .idle-vehicle-send { display: flex; align-items: end; gap: .4rem; }
.fleet-page .idle-vehicle-send label { width: clamp(15rem, 25vw, 21rem); margin: 0; font-size: .75rem; }
.fleet-page .idle-vehicle-send select { min-height: 38px; margin-top: .2rem; padding: .55rem; font-size: .9rem; }
.fleet-page .fleet-title-actions { display: grid; justify-items: end; gap: .7rem; max-width: 34rem; }
.fleet-page .fleet-title-actions p { margin: 0; color: var(--muted); font: .94rem/1.55 Arial, Helvetica, sans-serif; text-align: right; }
.fleet-page .stored-vehicle-grid .item-card { grid-template-columns: minmax(0, 1fr); align-content: start; }
.fleet-page .stored-vehicle-grid .item-card-actions { min-width: 0; justify-content: flex-start; }
.fleet-page .stored-vehicle-grid .item-card-actions form { display: grid; width: 100%; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .55rem .75rem; }
.fleet-page .stored-vehicle-grid .item-card-actions button { align-self: start; justify-self: start; }
.fleet-page .stored-vehicle-notices { display: grid; min-width: 0; gap: .4rem; }
.fleet-page .stored-vehicle-grid .item-card-actions small { min-width: 0; margin: 0; line-height: 1.35; overflow-wrap: break-word; }
.fleet-page .stored-vehicle-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.fleet-page .stored-vehicle-heading h2, .fleet-page .stored-vehicle-heading p { margin: 0; }
.fleet-page .stored-vehicle-heading p { margin-top: .25rem; color: var(--muted); }
.fleet-page .stored-vehicle-heading form { flex: 0 0 auto; }
.fleet-page .fleet-convoy-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "convoy-heading convoy-action" "convoy-details convoy-action"; align-items: center; gap: .15rem .8rem; min-width: 0; padding: .6rem .75rem; border: 1px solid var(--line); border-left-width: 4px; background: var(--surface); }
.fleet-page .fleet-convoy-heading { grid-area: convoy-heading; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: .8rem; }
.fleet-page .fleet-convoy-copy, .fleet-page .fleet-convoy-details { min-width: 0; overflow-wrap: anywhere; }
.fleet-page .fleet-convoy-heading h3 { margin: 0; font-size: 1rem; }
.fleet-page .fleet-convoy-heading .item-type { display: block; margin-top: .2rem; color: var(--muted); font-size: .72rem; }
.fleet-page .fleet-convoy-details { grid-area: convoy-details; }
.fleet-page .fleet-convoy-card > .button { grid-area: convoy-action; }
@media (max-width: 760px) {
  .fleet-page .fleet-convoy-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "convoy-heading" "convoy-details" "convoy-action"; gap: .35rem; }
  .fleet-page .fleet-convoy-card > .button { justify-self: stretch; }
}

@media (max-width: 1180px) {
  .fleet-page .idle-vehicle-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "vehicle-summary" "vehicle-status" "vehicle-actions"; gap: .35rem; }
  .fleet-page .idle-vehicle-card > .item-card-actions { justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .fleet-page .fleet-title-actions { width: 100%; justify-items: start; }
  .fleet-page .fleet-title-actions p { text-align: left; }
  .fleet-page .idle-vehicle-card > .item-card-actions, .fleet-page .idle-vehicle-send { width: 100%; }
  .fleet-page .idle-vehicle-send { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .fleet-page .idle-vehicle-send label { width: 100%; }
  .fleet-page .stored-vehicle-grid .item-card-actions form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) { .fleet-page .vehicle-location-list li { grid-template-columns: 1fr; align-items: stretch; } }

/* Keep each local Fleet section in two columns when its cards have room. */
@media (min-width: 900px) {
  .fleet-page #fleet-convoys > .vehicle-list,
  .fleet-page #fleet-idle > .vehicle-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-page #fleet-convoys .fleet-convoy-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "convoy-heading" "convoy-details" "convoy-action"; grid-template-rows: auto 1fr auto; align-items: start; gap: .6rem; }
  .fleet-page #fleet-convoys .fleet-convoy-card > .button { justify-self: end; }
  .fleet-page #fleet-idle .idle-vehicle-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "vehicle-summary" "vehicle-status" "vehicle-actions"; grid-template-rows: auto 1fr auto; align-items: start; gap: .35rem; }
  .fleet-page #fleet-idle .idle-vehicle-card > .item-card-actions { min-width: 0; width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .fleet-page #fleet-idle .idle-vehicle-send { display: grid; grid-template-columns: minmax(0, 1fr) auto; flex: 1 0 100%; width: 100%; }
  .fleet-page #fleet-idle .idle-vehicle-send label { min-width: 0; width: 100%; }
}

/* fleet-bulk.css */
/* Bulk management stays separate from the lightweight Fleet index. */
.fleet-page .bulk-vehicle-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 8px; margin-top: 1rem; }
.fleet-page .bulk-vehicle { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); overflow-wrap: anywhere; }
.fleet-page .bulk-vehicle p { margin: 0; }
.fleet-page .bulk-vehicle > .button { justify-self: start; }
.fleet-page .bulk-vehicle .thing-link { display: flex; gap: 8px; align-items: center; }
.fleet-page .bulk-vehicle .checkbox-line, .fleet-page [data-bulk-store] > .button-row .checkbox-line { display: flex; align-items: center; gap: 8px; min-height: 44px; background: #111; color: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 0; }
.fleet-page .bulk-vehicle .checkbox-line input, .fleet-page [data-bulk-select] { flex: 0 0 auto; width: 18px; height: 18px; min-height: 0; }
.fleet-page .stored-recycling { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fleet-page .stored-vehicle-grid .stored-recycling form { display: flex; width: auto; align-items: center; gap: 8px; }
.fleet-page .stored-recycling input[type="number"] { width: 5rem; min-height: 44px; }
.vehicle-deactivate-control { max-width: 100%; }
.vehicle-deactivate-all { min-width: 0; white-space: normal; font-size: .875rem; }
.vehicle-deactivate-all span { overflow-wrap: anywhere; }

.fleet-page .stored-recycling button { gap: 8px; }

/* original-ratings.css */
.rating-tabs { display: flex; gap: .8rem; margin: 1rem 0; }
.ratings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ratings-list { display: grid; gap: .35rem; padding: 0; list-style: none; }
.ratings-list li { display: grid; grid-template-columns: 24px auto minmax(0, 1fr); align-items: center; gap: .25rem; padding: .55rem; background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.ratings-list small { grid-column: 3; color: var(--muted); }
.page-title-actions { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; flex-wrap: wrap; }
.combat-prize-intro { padding: clamp(1rem, 3vw, 1.8rem); background: linear-gradient(135deg, rgba(214,124,23,.17), rgba(255,255,255,.7)); border: 1px solid #b77b35; }
.combat-prize-division { margin-top: 1.4rem; padding: 1rem; border: 1px solid var(--line); background: rgba(255,255,255,.42); }
.combat-prize-division > header { margin-bottom: .9rem; border-bottom: 1px solid var(--line); }
.combat-prize-division > header h2 { margin-top: 0; }
.combat-prize-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.combat-prize-route h3 { margin-top: 0; }
.combat-prize-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.combat-prize-list > li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: center; gap: .55rem; }
.combat-prize-list > li > strong { color: var(--brand-orange); font: 900 1rem Arial, sans-serif; }
.combat-prize-list .item-card { width: 100%; }
@media (max-width: 760px) {
  .combat-prize-routes { grid-template-columns: 1fr; }
  .page-title-actions { justify-content: flex-start; }
}

/* original-equipment-exchange.css */
.council-equipment-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.council-equipment-fields label { display: flex; flex-direction: column; gap: .4rem; min-width: 0; font-weight: 700; }
.council-equipment-fields select, .council-equipment-fields input { width: 100%; min-width: 0; box-sizing: border-box; }
.council-equipment-summary { margin-block: 1.5rem; }
.council-equipment-page .industry-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.council-equipment-page .industry-metrics dd { margin: .25rem 0 0; }
.council-equipment-page .table-scroll table { min-width: 36rem; }
.council-mine-city { margin-block: 1.5rem; }
.council-mine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); gap: 1rem; }
.council-mine-card { border: 1px solid #aaa; padding: 1rem; min-width: 0; }
.council-mine-card h4 { margin: 0; font-size: 1.05rem; }
.council-mine-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
.council-mine-tools > div { min-width: 0; }
.council-mine-tools dt { font-size: .85rem; font-weight: 700; }
.council-mine-tools dd { margin: .25rem 0 0; }
.council-mine-tools a { display: flex; align-items: center; gap: .5rem; min-height: 44px; overflow-wrap: anywhere; }
.council-mine-tools img { width: 32px; height: 32px; object-fit: contain; flex: 0 0 32px; }
.council-mine-empty { display: block; min-height: 24px; line-height: 24px; color: #666; }
@media (max-width: 600px) {
  .council-equipment-fields { grid-template-columns: minmax(0, 1fr); }
  .council-equipment-page .industry-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* original-council-orders.css */
.threat-creature .threat-mark img, .council-patrol-card .threat-mark img{ transition: transform .16s ease, filter .16s ease; }
.threat-creature .threat-mark:hover img, .threat-creature .threat-mark:focus-visible img, .council-patrol-card .threat-mark:hover img, .council-patrol-card .threat-mark:focus-visible img{ transform: scale(1.08); filter: grayscale(.08) contrast(1.28) drop-shadow(0 6px 8px rgba(0,0,0,.8)); }
.council-bounty{ margin-block: 1.25rem; padding: clamp(1rem, 2vw, 1.5rem); overflow-wrap: anywhere; }
.council-bounty h2{ margin-top: 0; }
.council-bounty p, .council-bounty li{ line-height: 1.55; }
.council-bounty a:any-link{ color: #ffcc80; }
.council-bounty h2 a:any-link{ color: #f6f1e8; }
.council-bounty a:hover, .council-bounty a:focus-visible{ color: #fff; text-decoration: underline; }
.council-bounty a:focus-visible, .council-bounty summary:focus-visible{ outline: 2px solid #ffcc80; outline-offset: 3px; }
.council-bounty summary{ cursor: pointer; line-height: 1.5; }
.council-dwarf-market{ margin: 1.2rem 0 1.8rem; padding: 1rem; border: 1px solid #3b3026; background: #171916; box-shadow: inset 0 0 0 3px #24211b, 0 14px 30px rgba(28,20,12,.18); }
.council-dwarf-market > header{ margin: -.1rem -.1rem 1rem; padding: .6rem .7rem 1rem; border-bottom: 1px solid #534636; color: #ded5c6; }
.council-dwarf-market > header .eyebrow{ color: #d0a44f; }
.council-dwarf-market > header h2{ margin: .15rem 0 .35rem; color: #fff7e5; }
.council-dwarf-market > header p{ max-width: 76ch; }
.council-dwarf-market > header p:last-child{ margin-bottom: 0; }
.council-dwarf-market .item-grid{ gap: .65rem; }
.council-induction{ margin: 0 0 1.3rem; padding: clamp(1rem, 3vw, 1.8rem); border: 1px solid #cbbd9d; border-top: 4px solid #b77816; background: #faf5e8; color: #242d28; }
.council-induction header{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.council-induction h2{ margin: .3rem 0 .6rem; font-size: clamp(1.2rem, 3vw, 1.65rem); }
.council-induction .eyebrow, .council-welcome .eyebrow, .bot-build-progress .eyebrow{ color: #765017; }
.induction-count{ white-space: nowrap; font-size: 1.15rem; }
.induction-count span{ display: block; margin-top: .2rem; font-size: .75rem; font-weight: 500; }
.council-induction progress{ display: block; width: 100%; height: .4rem; margin: .65rem 0 1.2rem; border: 0; accent-color: #a46d14; }
.council-induction progress::-webkit-progress-bar{ background: #e5ddca; }
.council-induction progress::-webkit-progress-value{ background: #a46d14; }
.induction-current h3{ margin: .35rem 0 .7rem; font-size: 1.25rem; }
.induction-current p{ max-width: 75ch; line-height: 1.6; }
.induction-instruction{ padding-left: .9rem; border-left: 2px solid #c8b27c; }
.induction-bot-count{ font-size: .82rem; font-weight: 700; }
.induction-production-options{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.induction-production-options > section{ display: flex; flex-direction: column; min-width: 0; padding: 1rem; border: 1px solid #daceb3; background: #fffaf0; }
.induction-production-options h4{ margin: 0; font-size: 1rem; }
.induction-production-options p{ font-size: .9rem; }
.induction-production-options form{ margin: auto 0 0; padding-top: .8rem; }
.induction-production-options button{ width: 100%; white-space: normal; }
.induction-syllabus{ margin-top: 1.1rem; padding-top: .85rem; border-top: 1px solid #daceb3; }
.induction-syllabus summary, .welcome-estate summary{ min-height: 2.75rem; cursor: pointer; font-weight: 700; }
.induction-syllabus p{ font-size: .85rem; line-height: 1.5; }
.induction-syllabus ol{ list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 1rem; margin: .8rem 0 0; padding: 0; }
.induction-syllabus li{ display: flex; align-items: center; gap: .65rem; padding: .65rem; border: 1px solid transparent; font-size: .85rem; overflow-wrap: anywhere; }
.induction-syllabus li > span:first-child{ flex: 0 0 1.6rem; color: #796749; font-weight: 700; }
.induction-syllabus li small{ display: block; margin-top: .2rem; font-size: .7rem; }
.induction-syllabus .is-current{ border-color: #bc9857; background: #fffaf0; font-weight: 700; }
.induction-syllabus .is-complete{ color: #3c6550; }
.induction-reminder{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; margin: 1rem 0; padding: .7rem .9rem; background: #f4eddd; border-left: 3px solid #b77816; font-size: .85rem; overflow-wrap: anywhere; }
.induction-reminder a{ color: #3d4b40; }
.induction-reminder form{ margin: 0; }
.induction-quit{ margin-top: 1rem; padding-top: .85rem; border-top: 1px solid #daceb3; }
.induction-quit p{ max-width: 75ch; font-size: .85rem; line-height: 1.5; }
.induction-graduate{ padding: 1rem; border-left: 3px solid #416b51; background: #edf2e9; }
.council-welcome{ padding: clamp(1rem, 3vw, 2rem); border-top: 4px solid #b77816; background: #faf5e8; color: #26372e; }
.council-welcome h2{ margin: .5rem 0 1rem; font-size: clamp(1.4rem, 4vw, 2rem); }
.council-welcome > div{ line-height: 1.7; }
@media (max-width: 600px){.induction-syllabus ol{ grid-template-columns: minmax(0, 1fr); }
.induction-production-options{ grid-template-columns: minmax(0, 1fr); }
.council-induction .button-row{ align-items: stretch; flex-direction: column; }
.council-induction .button, .council-welcome .button{ white-space: normal; text-align: center; }
}
.council-title{ border-bottom-color: #796f45; }
.council-standing{ display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1.25rem; background: #dad2b5; border: 1px solid #817a61; box-shadow: inset 0 0 0 4px #c5bc9c; }
.council-standing-copy h2, .profile-council h2{ margin: .2rem 0 .45rem; color: #403c2e; }
.council-standing-copy p{ margin: .35rem 0; }
.council-rank-progress, .council-progress{ overflow: hidden; height: .6rem; background: #817b66; border: 1px solid #575344; }
.council-rank-progress span, .council-progress span{ display: block; height: 100%; background: repeating-linear-gradient(135deg, #77743c 0 8px, #9d984d 8px 16px); }
.council-mission-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.council-mission-card{ display: flex; min-width: 0; flex-direction: column; padding: 1rem; background: #eee9d9; border: 1px solid #8c846a; border-top: .35rem solid #77724e; box-shadow: .22rem .22rem 0 #c2bba5; }
.council-mission-card > header, .council-mission-card > footer, .section-heading{ display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.council-mission-card h3{ margin: .15rem 0 .4rem; color: #353226; font: 800 1.2rem/1.15 Arial, Helvetica, sans-serif; }
.council-mission-card > p{ flex: 1; }
.council-learning-intro{ padding: .85rem 1rem; background: #eee9d9; border-left: .25rem solid #77724e; line-height: 1.5; }
.council-mission-advice{ margin: .5rem 0; padding: 0 .8rem; color: #353226; background: #f8f5eb; border: 1px solid #b9b096; line-height: 1.5; overflow-wrap: anywhere; }
.council-mission-advice > summary{ margin: 0 -.8rem; padding: .8rem; cursor: pointer; font-weight: 800; }
.council-mission-advice[open]{ padding-bottom: .8rem; }
.council-mission-advice h4{ margin: .15rem 0 .55rem; color: #353226; font-size: 1rem; }
.council-mission-advice p{ margin: .5rem 0; }
.council-mission-advice ol{ margin: .6rem 0; padding-left: 1.3rem; }
.council-mission-advice li + li{ margin-top: .45rem; }
.council-advice-reminder{ padding-top: .6rem; border-top: 1px dashed #b9b096; }
.council-mission-advice > a{ display: inline-block; padding: .5rem 0; }
.council-mission-card > footer{ align-items: center; flex-wrap: wrap; padding-top: .8rem; border-top: 1px dashed #999078; }
.council-mission-card > footer .button-row{ width: 100%; }
.council-difficulty{ padding: .25rem .4rem; color: #eee9d7; background: #615d49; font: 800 .64rem/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; transform: rotate(1.5deg); }
.council-mission-serious{ border-top-color: #756633; }
.council-mission-hazard{ border-top-color: #773c32; }
.council-mission-directive{ border-top-color: #4e4930; }
.council-reward-list{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; margin: .8rem 0; padding: 0; list-style: none; }
.council-reward-list li{ padding: .45rem; text-align: center; background: #d8d0b8; border: 1px solid #aaa187; font-size: .72rem; }
.council-reward-list strong{ display: block; color: #393525; font-size: .92rem; }
.council-progress{ margin-top: .65rem; }
.council-history-grid .council-mission-card{ opacity: .78; }
.council-history-status{ padding: .2rem .4rem; color: #f3eedf; background: #77705c; font-size: .68rem; text-transform: uppercase; }
.council-history-completed{ background: #58643e; }
.council-accidental-reward{ padding: .55rem .65rem; color: #24301d; background: #c8dbad; border: 2px dotted #5f734c; transform: rotate(.25deg); }
.council-error-policy{ margin-top: 1.5rem; padding: 1.2rem 1.3rem; color: #e7e0ce; background: #403e32; border-left: .55rem solid #8f2e27; transform: rotate(-.12deg); }
.council-error-policy h2{ color: #f3ead2; }
.council-badge{ --badge-face: #77766f; --badge-edge: #4e4e49; --badge-ink: #24241f; position: relative; display: inline-grid; flex: 0 0 auto; place-items: center; width: 7.2rem; height: 8.4rem; filter: drop-shadow(.18rem .22rem .05rem rgba(37,34,25,.35)); transform: rotate(-2deg); }
.council-badge-ribbon{ position: absolute; top: 0; width: 3.2rem; height: 5.8rem; background: repeating-linear-gradient(90deg, #706a4e 0 9px, #908668 9px 16px); clip-path: polygon(0 0,100% 0,90% 100%,50% 82%,10% 100%); border: 1px solid #4b4838; }
.council-badge-face{ z-index: 1; display: grid; place-items: center; width: 5.4rem; height: 5.4rem; margin-top: 2.2rem; color: var(--badge-ink); background: var(--badge-face); border: .35rem double var(--badge-edge); border-radius: 11% 18% 13% 20%; box-shadow: inset .15rem -.15rem .2rem rgba(0,0,0,.28); }
.council-badge-face b{ font: 900 2rem/1 Arial, Helvetica, sans-serif; }
.council-badge-face small{ max-width: 4.5rem; font: 900 .52rem/1 Arial, sans-serif; letter-spacing: .08em; text-align: center; }
.council-badge-beige-square{ --badge-face: #aaa27c; --badge-edge: #625d47; transform: rotate(1deg); }
.council-badge-brown-cog{ --badge-face: #796044; --badge-edge: #493724; }
.council-badge-brown-cog .council-badge-face{ border-radius: 35% 8% 34% 12%; }
.council-badge-mustard-rosette{ --badge-face: #a58c2d; --badge-edge: #675617; transform: rotate(3deg); }
.council-badge-sludge-seal{ --badge-face: #65704d; --badge-edge: #353d2b; }
.council-badge-sludge-seal .council-badge-face{ box-shadow: -.75rem .35rem 0 #536044, inset .15rem -.15rem .2rem rgba(0,0,0,.3); }
.council-badge-maroon-medallion{ --badge-face: #774d4b; --badge-edge: #462a2a; transform: rotate(-.5deg); }
.council-badge-pewter-obligation{ --badge-face: #888a82; --badge-edge: #4d514d; }
.council-badge-pigeon-sunburst{ width: 9rem; height: 9.5rem; --badge-face: #85877f; --badge-edge: #4d4e48; transform: rotate(2deg); }
.council-badge-pigeon-sunburst .council-badge-face{ width: 7rem; height: 7rem; border-width: .65rem; border-radius: 42% 34% 45% 31%; clip-path: polygon(50% 0,60% 18%,76% 5%,78% 27%,100% 24%,84% 45%,100% 58%,78% 64%,82% 89%,60% 79%,48% 100%,39% 78%,15% 91%,21% 66%,0 55%,20% 43%,4% 21%,28% 25%); }
.council-badge-compact{ width: 2.2rem; height: 2.4rem; margin-left: .35rem; filter: none; }
.council-badge-compact .council-badge-ribbon{ width: 1rem; height: 1.8rem; }
.council-badge-compact .council-badge-face{ width: 1.65rem; height: 1.65rem; margin-top: .55rem; border-width: .15rem; }
.council-badge-compact .council-badge-face b{ font-size: .7rem; }
.council-badge-compact .council-badge-face small{ display: none; }
@media (max-width: 760px){.council-standing, .council-mission-grid{ grid-template-columns: 1fr; }
.council-standing .council-badge{ justify-self: center; }
.council-reward-list{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.council-title,.council-title h1{font-family:Arial,Helvetica,sans-serif}

/* original-guide.css */


/* Systems handbook and alphabetical live-catalogue Field guide. */
.glossary-page { max-width: 1120px; margin: 0 auto; }

.glossary-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 1rem; color: #ebe7de; background: #292d29; border: 1px solid #414741; }

.glossary-summary > div { min-width: 0; padding: .95rem 1.1rem; border-right: 1px solid #414741; }

.glossary-summary > div:last-child { border-right: 0; }

.glossary-summary span, .glossary-summary strong { display: block; }

.glossary-summary span { color: #92988f; font: 900 .56rem/1 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }

.glossary-summary strong { margin-top: .42rem; color: #f5efe4; font: 900 .86rem/1.2 Arial, sans-serif; letter-spacing: .035em; text-transform: uppercase; }

.glossary-index { display: flex; align-items: stretch; gap: 0; margin: 0 0 .85rem; overflow-x: auto; color: #d9d7cf; background: #202420; border: 1px solid #414741; }

.glossary-index strong, .glossary-index a { display: grid; min-width: 44px; min-height: 44px; place-items: center; margin: 0; padding: .7rem .8rem; border-right: 1px solid #414741; font: 900 .65rem/1 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }

.glossary-index strong { min-width: 6rem; color: var(--brand-orange); }

.glossary-index a { color: #ebe7de; text-decoration: none; }

.glossary-index a:hover, .glossary-index a:focus-visible { color: #17120b; background: var(--brand-orange); }

.glossary-note { margin: 0 0 2rem; color: var(--muted); font-size: .8rem; }

.guide-systems { margin: 2.2rem 0 3.5rem; }

.guide-system-index { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 0 0 1.15rem; padding: .85rem 0; border-block: 1px solid var(--line); }

.guide-system-index a { padding: .2rem 0; color: #604314; font: 900 .64rem/1.25 Arial, sans-serif; letter-spacing: .045em; text-transform: uppercase; }

.guide-system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.guide-system-card { display: flex; min-width: 0; flex-direction: column; padding: 1.15rem; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-top: 4px solid var(--brand-orange); box-shadow: 0 10px 24px rgba(63,49,29,.07); scroll-margin-top: 1rem; }

.guide-system-card:target { outline: 3px solid var(--brand-orange); outline-offset: 2px; }

.guide-system-card > header { display: flex; min-height: 3.1rem; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }

.guide-system-card .eyebrow { margin-bottom: .25rem; }

.guide-system-card h3 { margin: 0; color: #292d29; font: 900 1.2rem/1.08 "Arial Narrow", Impact, Arial, sans-serif; letter-spacing: .025em; text-transform: uppercase; }

.guide-system-card > p { margin: 0 0 1rem; line-height: 1.55; }

.guide-system-card dl { display: grid; gap: .7rem; margin: auto 0 0; padding-top: .85rem; border-top: 1px solid #dfd3bd; }

.guide-system-card dl > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .75rem; }

.guide-system-card dt { color: #775019; font: 900 .57rem/1.35 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }

.guide-system-card dd { min-width: 0; margin: 0; font-size: .78rem; line-height: 1.48; }

.guide-system-link { align-self: flex-start; margin-top: 1rem; font: 900 .66rem/1.2 Arial, sans-serif; letter-spacing: .045em; text-transform: uppercase; }

.guide-system-glyph, .guide-system-image, .guide-system-art-pair span, .guide-creature-strip span { display: grid; flex: 0 0 auto; place-items: center; }

.guide-system-glyph { width: 2.8rem; height: 2.8rem; color: #171a18; background: #f39a18; font: 900 2rem/1 Arial, sans-serif; clip-path: polygon(50% 0, 100% 24%, 90% 100%, 10% 100%, 0 24%); }

.guide-system-glyph-letter { font-size: 1.35rem; }

.guide-system-image { width: 3rem; height: 3rem; background: #202420; border-radius: 50%; }

.guide-system-image img { width: 2.2rem; height: 2.2rem; object-fit: contain; }

.guide-system-art-pair { display: flex; flex: 0 0 auto; gap: .35rem; }

.guide-system-art-pair span { width: 3.25rem; height: 3.25rem; }

.guide-system-art-pair img { width: 3rem; height: 3rem; object-fit: contain; }

.guide-system-art-trio { display: flex; flex: 0 0 auto; gap: .15rem; }

.guide-system-art-trio span { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; }

.guide-system-art-trio img { width: 2.3rem; height: 2.3rem; object-fit: contain; }

.guide-creature-strip { display: grid; flex: 0 0 auto; grid-template-columns: repeat(3, 1.5rem); gap: .15rem; }

.guide-creature-strip span { width: 1.5rem; height: 1.5rem; background: #202420; border-radius: 50%; }

.guide-creature-strip img { width: 1.2rem; height: 1.2rem; object-fit: contain; }

.guide-catalogue { scroll-margin-top: 1rem; }

.glossary-list { display: grid; gap: 2.5rem; }

.glossary-letter { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1.25rem; scroll-margin-top: 1rem; }

.glossary-letter > header { align-self: start; position: sticky; top: 1rem; padding-top: .2rem; border-top: 5px solid var(--brand-orange); }

.glossary-letter > header strong, .glossary-letter > header span { display: block; }

.glossary-letter > header strong { color: #292d29; font: 900 3rem/.95 "Arial Narrow", Impact, Arial, sans-serif; text-transform: uppercase; }

.glossary-letter > header span { margin-top: .5rem; color: var(--muted); font: 900 .56rem/1.3 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }

.glossary-letter > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.glossary-entry { display: flex; min-width: 0; flex-direction: column; padding: 1.1rem; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-top: 4px solid #4d504b; box-shadow: 0 8px 20px rgba(63,49,29,.06); scroll-margin-top: 1rem; }

.glossary-entry > header { display: flex; align-items: start; justify-content: space-between; gap: .8rem; margin: 0 0 .8rem; padding: 0 0 .7rem; border-bottom: 1px solid var(--line); }

.glossary-entry h3 { margin: 0; color: #292d29; font: 900 1.15rem/1.1 "Arial Narrow", Impact, Arial, sans-serif; letter-spacing: .025em; text-transform: uppercase; }

.glossary-entry > header span { flex: 0 0 auto; padding: .3rem .45rem; color: #3d3529; background: var(--surface-soft); border: 1px solid var(--line); font: 900 .57rem/1 Arial, sans-serif; letter-spacing: .07em; text-transform: uppercase; }

.glossary-entry > p { margin: 0 0 1rem; line-height: 1.55; }

.glossary-entry dl { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .55rem .75rem; margin: auto 0 0; padding-top: .8rem; border-top: 1px solid #dfd3bd; }

.glossary-entry dt { color: #775019; font: 900 .57rem/1.35 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }

.glossary-entry dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: .78rem; line-height: 1.45; }

.glossary-browse { align-self: flex-start; margin-top: 1rem; font: 900 .65rem/1.2 Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; }

@media (max-width: 900px) {
  .guide-system-grid { grid-template-columns: 1fr; }

  .glossary-letter > div { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .glossary-summary { grid-template-columns: 1fr; }

  .glossary-summary > div { padding: .75rem .9rem; border-right: 0; border-bottom: 1px solid #414741; }

  .glossary-summary > div:last-child { border-bottom: 0; }

  .glossary-letter { grid-template-columns: 1fr; gap: .75rem; }

  .glossary-letter > header { position: static; display: flex; align-items: baseline; gap: .75rem; }

  .glossary-letter > header strong { font-size: 2rem; }

  .glossary-letter > header span { margin-top: 0; }

  .guide-system-card dl > div { grid-template-columns: 1fr; gap: .2rem; }

  .guide-system-card dd + dt { margin-top: .4rem; }

  .glossary-entry dl { grid-template-columns: 1fr; gap: .25rem; }

  .glossary-entry dd + dt { margin-top: .45rem; }
}

.glossary-page,.glossary-page h1,.glossary-page h2,.glossary-page h3{font-family:Arial,Helvetica,sans-serif}.glossary-page .guide-system-index a,.glossary-page .glossary-index a{min-height:44px;display:inline-flex;align-items:center}.glossary-page a{text-decoration:none}.induction-reminder{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.65rem 1rem;margin:1rem 0;padding:.7rem .9rem;border-left:3px solid #ff8a00;overflow-wrap:anywhere}.induction-reminder form{margin:0}body:has(#council-induction) .induction-reminder{display:none}

.guide-system-card > header > img{width:3rem;height:3rem;object-fit:contain;flex:0 0 auto}.guide-system-card > header > div{min-width:0;overflow-wrap:anywhere}

/* original-civic.css */
.city-civic-scene > .place-heraldry{ grid-column: 1 / -1; margin: 0; }
.city-civic-page .text-link{ display: inline; padding: 0; border: 0; background: transparent; }
.city-civic-scene{ position: relative; isolation: isolate; min-height: 29rem; overflow: hidden; margin-bottom: 1rem; color: #fff5dc; background: #17241f; box-shadow: 0 18px 35px rgba(25,20,12,.2); }
.city-civic-copy{ position: absolute; z-index: 8; right: 2rem; bottom: 2rem; width: min(25rem, 46%); padding: 1.35rem; background: rgba(7,13,10,.88); box-shadow: .5rem .5rem 0 color-mix(in srgb, var(--city-accent) 62%, transparent); }
.city-civic-copy h2{ margin: .15rem 0 .6rem; color: #fff8e7; font-size: clamp(1.7rem, 4vw, 3rem); line-height: .98; }
.city-civic-copy p:last-child{ margin-bottom: 0; line-height: 1.48; }
.city-civic-note{ padding: 1.25rem 1.4rem; background: rgba(255,252,244,.63); box-shadow: inset 0 0 0 1px #cfbea0; }
.city-civic-note h2{ margin: .15rem 0 .4rem; }
.city-park-scene{
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(18rem, .72fr);
  min-height: 37rem;
  border-top: .32rem solid var(--city-accent, #f3a01d);
  background: #111a17;
}
.dwarf-park-art{
  z-index: 2;
  display: block;
  align-self: center;
  width: 100%;
  height: auto;
  padding: .8rem 0 .8rem .8rem;
  overflow: visible;
  filter: drop-shadow(.75rem 1rem .8rem rgba(0, 0, 0, .42));
}
.city-park-scene .city-civic-copy{
  position: relative;
  right: auto;
  bottom: auto;
  align-self: end;
  width: auto;
  margin: 2rem 2rem 2rem .7rem;
  border-top: 2px solid var(--city-accent, #f3a01d);
}
.city-park-scene .city-civic-copy .eyebrow{ color: #f1ba4e; }
.dwarf-park-art{ overflow: hidden; border-radius: .5rem; }
.dwarf-park-art .park-sun{ fill: #f4dda2; opacity: .65; }
.dwarf-park-art .park-clouds{ fill: #f7edce; opacity: .3; }
.dwarf-park-art .park-roofline{ fill: #425853; opacity: .38; }
.dwarf-park-art .park-distant-green{ fill: #6e815d; }
.dwarf-park-art .park-hills{ fill: #78908a; opacity: .8; }
.dwarf-park-art .park-shadow{ fill: #172a24; opacity: .2; }
.dwarf-park-art .park-bark{ fill: #776650; stroke: #3e4e3e; stroke-width: 4; }
.dwarf-park-art .park-branches{ fill: none; stroke: #625c47; stroke-width: 18; stroke-linecap: round; }
.dwarf-park-art .park-canopy{ fill: #536e48; stroke: #405c40; stroke-width: 3; }
.dwarf-park-art .park-tree-1 .park-canopy{ fill: #6b8250; }
.dwarf-park-art .park-tree-2 .park-canopy{ fill: #527665; }
.dwarf-park-art .park-leaves{ fill: none; stroke: #a6b27b; stroke-width: 4; opacity: .55; }
.dwarf-park-art .park-gravel{ fill: #c4ba98; }
.dwarf-park-art .park-path{ fill: #b6a887; }
.dwarf-park-art .park-stones{ fill: #8d9785; stroke: #576759; stroke-width: 3; }
.dwarf-park-art .park-stone-light{ fill: none; stroke: #c6cab3; }
.dwarf-park-art .park-mushrooms{ fill: #bc9069; stroke: #6d624b; stroke-width: 5; }
.dwarf-park-art .park-mushrooms circle{ fill: #ded1af; stroke: none; }
.dwarf-park-art .park-water-edge{ fill: #acae8c; }
.dwarf-park-art .park-water{ fill: #6d9b99; }
.dwarf-park-art .park-water-lines{ fill: none; stroke: #cee1c4; stroke-width: 3; stroke-linecap: round; opacity: .6; }
.dwarf-park-art .park-reeds{ fill: none; stroke: #61734c; stroke-width: 5; stroke-linecap: round; }
.dwarf-park-art .park-lilies{ fill: #809258; }
.dwarf-park-art .park-stone-wall{ fill: #b5ac92; stroke: #8d8973; stroke-width: 4; }
.dwarf-park-art .park-wall-cap, .dwarf-park-art .park-terrace-top{ fill: #d1c6a6; stroke: #a69d83; stroke-width: 3; }
.dwarf-park-art .park-stone-course{ fill: none; stroke: #908d78; stroke-width: 3; opacity: .5; }
.dwarf-park-art .park-wall-niches{ fill: #787e68; stroke: #cdc3a2; stroke-width: 10; }
.dwarf-park-art .park-raked-lines{ fill: none; stroke: #ded1af; stroke-width: 3; }
.dwarf-park-art .park-steps{ fill: #c5baa0; stroke: #8c8977; stroke-width: 3; }
.dwarf-park-art .park-step-lines{ fill: none; stroke: #858878; stroke-width: 4; }
.dwarf-park-art .park-pot{ fill: #a67e5e; stroke: #705b49; stroke-width: 4; }
.dwarf-park-art .park-pot-rim{ fill: #c3a077; stroke: #76684e; stroke-width: 4; }
.dwarf-park-art .park-herbs{ fill: #6b8151; stroke: #475f41; stroke-width: 4; }
.dwarf-park-art .park-deck-edge{ fill: #61594a; }
.dwarf-park-art .park-deck-top{ fill: #a99671; }
.dwarf-park-art .park-planks{ fill: none; stroke: #786e57; stroke-width: 3; }
.dwarf-park-art .park-rail{ fill: none; stroke: #ac9971; stroke-width: 9; stroke-linecap: round; }
.dwarf-park-art .park-bench{ fill: #8e795a; stroke: #6c624d; stroke-width: 5; }
.dwarf-park-art .park-dwarf{ stroke-linecap: round; stroke-linejoin: round; }
.dwarf-park-art .park-trousers{ fill: #53635e; stroke: #33453f; stroke-width: 4; }
.dwarf-park-art .park-shoes{ fill: #49483e; }
.dwarf-park-art .park-tunic, .dwarf-park-art .park-cap{ fill: var(--dwarf-colour); stroke: #4a5143; stroke-width: 3; }
.dwarf-park-art .park-sash{ fill: none; stroke: #665c49; stroke-width: 7; }
.dwarf-park-art .park-sleeve{ fill: none; stroke: var(--dwarf-colour); stroke-width: 21; }
.dwarf-park-art .park-hand{ fill: none; stroke: #d4b18b; stroke-width: 12; }
.dwarf-park-art .park-face, .dwarf-park-art .park-ear, .dwarf-park-art .park-nose{ fill: #d4b18b; stroke: #8d795e; stroke-width: 2; }
.dwarf-park-art .park-beard{ stroke: #8e9481; stroke-width: 2; }
.dwarf-park-art .park-beard-lines{ fill: none; stroke: #919782; stroke-width: 2; }
.dwarf-park-art .park-cap-band{ fill: none; stroke: #d8c8a3; stroke-width: 6; }
.dwarf-park-art .park-closed-eyes{ fill: none; stroke: #615c47; stroke-width: 3; }
.dwarf-park-art .park-mat{ fill: #b79c6b; stroke: #d4ba8a; stroke-width: 3; }
.dwarf-park-art .park-foreground-grass{ fill: none; stroke: #879965; stroke-width: 5; }
.dwarf-park-art .park-dwarf-motion{ transform-origin: 0 0; animation-duration: var(--park-duration); animation-delay: var(--park-phase); animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.dwarf-park-art .is-tai-chi{ animation-name: park-weight-shift; }
.dwarf-park-art .is-meditating{ animation-name: park-quiet-breath; }
.dwarf-park-art .is-tai-chi .park-arm-motion{ animation: park-open-palm var(--park-duration) ease-in-out var(--park-phase) infinite; }
.dwarf-park-art .is-tai-chi .park-arm-right{ animation-direction: reverse; }
.park-practice-report{ display: grid; grid-template-columns: minmax(16rem, .75fr) minmax(0, 1.4fr); gap: 1.4rem; border-top: .2rem solid var(--city-accent); }
.park-practice-report p{ margin-bottom: 0; }
.park-practice-report ul{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin: 0; padding: 0; list-style: none; }
.park-practice-report li{ display: grid; gap: .4rem; padding: .85rem; color: #eaddc5; background: #293c32; }
.park-practice-report strong{ color: #d8c592; font-size: .9rem; }
.park-practice-report span{ font-size: .85rem; line-height: 1.5; }
.city-landmark-scene{
  --landmark-field: #111b1a;
  --landmark-field-deep: #080d0c;
  --landmark-grid: rgba(240, 218, 174, .11);
  --landmark-line: #f2d9a8;
  --landmark-line-soft: #a99472;
  --landmark-fill: #6d5b43;
  --landmark-fill-deep: #302b24;
  --landmark-highlight: #f3a01d;
  --landmark-glass: #74c5c9;
  --landmark-water: #367986;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(16.5rem, .8fr);
  min-height: 34rem;
  border: 1px solid color-mix(in srgb, var(--landmark-line) 34%, transparent);
  border-top: .3rem solid var(--city-accent, var(--landmark-highlight));
  color: var(--landmark-line);
  background:
    radial-gradient(circle at 34% 42%, color-mix(in srgb, var(--landmark-highlight) 13%, transparent), transparent 38%),
    linear-gradient(145deg, var(--landmark-field) 0 58%, var(--landmark-field-deep) 100%);
  box-shadow: 0 1.2rem 2.4rem rgba(25, 20, 12, .24), inset 0 0 0 1px rgba(255, 255, 255, .035);
}
.city-landmark-scene::before{
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 31px, var(--landmark-grid) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, var(--landmark-grid) 31px 32px);
  background-position: center;
  mask-image: linear-gradient(90deg, #000 0 70%, transparent 96%);
}
.city-landmark-scene::after{
  content: '';
  position: absolute;
  z-index: 7;
  inset: .75rem;
  border: 1px solid color-mix(in srgb, var(--landmark-line) 22%, transparent);
  pointer-events: none;
}
.city-landmark-art{
  z-index: 2;
  display: block;
  align-self: center;
  width: 100%;
  height: auto;
  max-height: 33rem;
  padding: 1.35rem .4rem 1.35rem 1.35rem;
  overflow: visible;
  color: var(--landmark-line);
  filter: drop-shadow(.85rem 1rem .65rem rgba(0, 0, 0, .36));
}
.city-landmark-scene .city-civic-copy{
  position: relative;
  z-index: 8;
  right: auto;
  bottom: auto;
  align-self: end;
  width: auto;
  margin: 2rem 2rem 2rem .75rem;
  padding: 1.3rem 1.35rem 1.4rem;
  color: #f6edda;
  background: rgba(6, 10, 9, .92);
  border-top: 2px solid var(--landmark-highlight);
  box-shadow: .42rem .42rem 0 color-mix(in srgb, var(--city-accent) 60%, transparent);
}
.city-landmark-scene .city-civic-copy .eyebrow{ color: var(--landmark-highlight); }
.city-landmark-scene .city-civic-copy h2{ color: #fffaf0; text-wrap: balance; }
.city-landmark-scene .city-civic-copy p:last-child{ color: #e8ddc9; }
.city-landmark-page.region-aso .city-landmark-scene{
  --landmark-field: #211510; --landmark-field-deep: #0b0907; --landmark-grid: rgba(239, 157, 68, .12);
  --landmark-line: #ffd39a; --landmark-line-soft: #b98056; --landmark-fill: #7c4029;
  --landmark-fill-deep: #321d18; --landmark-highlight: #ff8b32; --landmark-glass: #6fc1c6; --landmark-water: #235f6b;
}
.city-landmark-page.region-bromo .city-landmark-scene{
  --landmark-field: #20201d; --landmark-field-deep: #0b0b0a; --landmark-grid: rgba(226, 213, 166, .1);
  --landmark-line: #eee0b5; --landmark-line-soft: #aaa28d; --landmark-fill: #68645d;
  --landmark-fill-deep: #302f2c; --landmark-highlight: #dcb34f; --landmark-glass: #9dbbb5; --landmark-water: #476b6d;
}
.city-landmark-page.region-calbuco .city-landmark-scene{
  --landmark-field: #102421; --landmark-field-deep: #06100f; --landmark-grid: rgba(115, 193, 166, .11);
  --landmark-line: #d8e4b7; --landmark-line-soft: #88a383; --landmark-fill: #48684e;
  --landmark-fill-deep: #20372d; --landmark-highlight: #69c2b1; --landmark-glass: #6ed1df; --landmark-water: #267889;
}
.city-landmark-page.region-dempo .city-landmark-scene{
  --landmark-field: #10242f; --landmark-field-deep: #061018; --landmark-grid: rgba(162, 221, 235, .12);
  --landmark-line: #daf5f3; --landmark-line-soft: #8fb4c1; --landmark-fill: #577786;
  --landmark-fill-deep: #213c4a; --landmark-highlight: #91e7ef; --landmark-glass: #b9f7f2; --landmark-water: #3f91a7;
}
.city-landmark-page.region-ebeko .city-landmark-scene{
  --landmark-field: #18231e; --landmark-field-deep: #080f0d; --landmark-grid: rgba(199, 187, 125, .1);
  --landmark-line: #e9ddb0; --landmark-line-soft: #9b9a73; --landmark-fill: #657052;
  --landmark-fill-deep: #28352d; --landmark-highlight: #c59a4f; --landmark-glass: #74c9b7; --landmark-water: #3d786f;
}
.city-landmark-page.region-fogo .city-landmark-scene{
  --landmark-field: #29140c; --landmark-field-deep: #0e0705; --landmark-grid: rgba(244, 159, 76, .12);
  --landmark-line: #f6d39e; --landmark-line-soft: #b48258; --landmark-fill: #8a4b2e;
  --landmark-fill-deep: #3d1f16; --landmark-highlight: #f49a3b; --landmark-glass: #ebbc68; --landmark-water: #2d7180;
}
.city-landmark-page.region-gallego .city-landmark-scene{
  --landmark-field: #0b2628; --landmark-field-deep: #041012; --landmark-grid: rgba(100, 215, 207, .12);
  --landmark-line: #d8edcf; --landmark-line-soft: #84ae9b; --landmark-fill: #426b5c;
  --landmark-fill-deep: #183b38; --landmark-highlight: #efc85a; --landmark-glass: #75ded7; --landmark-water: #247c8f;
}
@media (max-width: 780px){.city-civic-copy{ right: 1rem; bottom: 1rem; left: 1rem; width: auto; }
.city-park-scene{ grid-template-columns: minmax(0, 1fr); min-height: 0; }
.dwarf-park-art{ width: 100%; padding: .65rem .65rem 0; }
.city-park-scene .city-civic-copy{ margin: .25rem 1rem 1rem; }
.park-practice-report{ grid-template-columns: 1fr; }
.city-landmark-scene{ grid-template-columns: minmax(0, 1fr); min-height: 0; }
.city-landmark-art{ width: 100%; max-height: none; padding: 1rem 1rem 0; }
.city-landmark-scene .city-civic-copy{ margin: .25rem 1rem 1rem; }
}
@media (max-width: 520px){.city-landmark-art{ padding: .65rem .65rem 0; }
.city-landmark-scene .city-civic-copy{ margin: .15rem .65rem .65rem; padding: 1rem; }
.city-park-scene .city-civic-copy{ margin: .15rem .65rem .65rem; padding: 1rem; }
.park-practice-report ul{ grid-template-columns: 1fr; }
}
@media (forced-colors: active){.city-landmark-scene{
    --landmark-field: Canvas;
    --landmark-field-deep: Canvas;
    --landmark-grid: CanvasText;
    --landmark-line: CanvasText;
    --landmark-line-soft: CanvasText;
    --landmark-fill: Canvas;
    --landmark-fill-deep: Canvas;
    --landmark-highlight: Highlight;
    --landmark-glass: Highlight;
    --landmark-water: Highlight;
    border: 2px solid CanvasText;
  }
.city-landmark-scene .city-civic-copy{ color: CanvasText; background: Canvas; border: 2px solid CanvasText; }
.city-landmark-scene .city-civic-copy h2,
  .city-landmark-scene .city-civic-copy p:last-child{ color: CanvasText; }
.city-park-scene{ --park-line: CanvasText; border: 2px solid CanvasText; }
.city-park-scene .city-civic-copy, .park-practice-report li{ color: CanvasText; background: Canvas; border: 2px solid CanvasText; }
}
@media (prefers-reduced-motion: reduce){.dwarf-park-art .park-dwarf-motion,
  .dwarf-park-art .is-tai-chi .park-arm-motion{ animation: none; }
}
.game-shell .city-venue-body :is(.factory-card, .shop-card, .mine, .mine-resale-card, .passenger-ticket, .keys-drydock-tier, .home-display-slot, .city-civic-note, .city-facility-columns > section, .facility-underway, .trade-forms > form){ min-width: 0; background: #fffbf2; border: 1px solid #c4b698; border-radius: 4px; box-shadow: 0 4px 14px #3c332309; }
.city-venue-body :is(.factory-card, .passenger-ticket, .keys-drydock-tier, .city-civic-note, .city-facility-columns > section, .facility-underway){ padding: 1.1rem; }
.city-venue-body :is(.factory-card, .city-facility-columns, .city-civic-note, .passenger-ticket) h2{ color: #2f4032; font-family: Arial, Helvetica, sans-serif; }
.city-venue-body .city-facility-scene, .city-venue-body .city-civic-scene, .city-venue-body .city-home-interior{ border-radius: 4px; }
@media (max-width: 700px){.city-venue-body :is(.factory-card, .city-civic-note, .city-facility-columns > section, .facility-underway){ padding: .85rem; }
}

.city-place-details{ margin-top: .8rem; background: #f6f0e3; border: 1px solid var(--venue-line, #c8b89a); border-radius: 4px; }
.city-place-details > summary{ min-height: 44px; padding: .75rem .85rem; color: #34493b; font-weight: 700; cursor: pointer; overflow-wrap: anywhere; }
.city-place-details > summary small{ margin-left: .6rem; color: #665f51; font-size: .75rem; font-weight: 400; }
.city-place-details[open] > summary{ border-bottom: 1px solid var(--venue-line, #c8b89a); }
.city-place-detail-body{ padding: .1rem .85rem .75rem; }
.city-place-detail-body p, .city-place-detail-body li{ max-width: 78ch; font-size: .88rem; line-height: 1.6; }
.city-place-detail-body ul{ margin-bottom: .25rem; padding-left: 1.2rem; }
.city-venue-body :is(.city-place-tabs a, .city-place-details > summary, .city-place-action):focus-visible{ outline: 3px solid #ad6921; outline-offset: 3px; }
.civic-visit-strip{ display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .75rem; }
.civic-visit-strip span{ padding: .35rem .55rem; color: #5d634b; background: #e5e3d2; border: 1px solid #c5c5ab; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.city-venue-body .city-civic-scene{ min-height: 0; grid-template-columns: minmax(0, 1.4fr) minmax(15rem, 1fr); }
.city-venue-body .city-civic-scene > .place-heraldry{ padding: .5rem .8rem; border: 0; border-bottom: 1px solid #736443; }
.city-venue-body .city-civic-scene .heraldry-place-names strong{ font-size: .87rem; }
.city-venue-body .city-civic-scene :is(.city-landmark-art, .dwarf-park-art){ max-height: 25rem; padding: .8rem; }
.city-venue-body .city-civic-scene .city-civic-copy{ align-self: center; margin: .8rem .8rem .8rem 0; padding: 1rem; }
.city-venue-body .city-civic-copy h2{ font-size: clamp(1.5rem, 2.7vw, 2.25rem); line-height: 1.1; }
.city-venue-body .city-civic-copy p{ font-size: .88rem; }
.city-venue-body .civic-programme .city-civic-note{ margin: 0; border: 0; box-shadow: none; background: transparent; }
@media (max-width: 780px){.city-venue-body .city-civic-scene{ grid-template-columns: minmax(0, 1fr); }
.city-venue-body .city-civic-scene :is(.city-landmark-art, .dwarf-park-art){ max-height: 22rem; }
.city-venue-body .city-civic-scene .city-civic-copy{ margin: 0 .8rem .8rem; }
}
@media (max-width: 520px){.city-place-details > summary small{ display: block; margin: .25rem 0 0 1rem; font-size: .72rem; }
.city-venue-body .city-civic-scene :is(.city-landmark-art, .dwarf-park-art){ max-height: 19rem; padding: .5rem; }
.city-venue-body .city-civic-scene .city-civic-copy{ margin: 0 .6rem .6rem; padding: .85rem; box-shadow: .2rem .2rem 0 color-mix(in srgb, var(--city-accent) 60%, transparent); }
.city-venue-body .city-civic-copy h2{ font-size: 1.5rem; }
.city-venue-body .city-civic-copy p{ font-size: .83rem; }
}
@media (forced-colors: active){.city-venue-body :is(.passenger-service-strip, .passenger-journey, .passenger-ticket-state, .city-place-empty, .civic-visit-strip span){ color: CanvasText; background: Canvas; border: 1px solid CanvasText; }
}

.city-civic-page,.city-civic-page h1,.city-civic-page h2,.city-civic-page svg{font-family:Arial,Helvetica,sans-serif}
.city-civic-page a{text-decoration:none}
.city-civic-page .text-link{display:inline-flex;align-items:center;min-height:44px;font-weight:700}
.city-civic-page details>summary{display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;padding:0;border:1px solid #ff8a00;border-radius:0;font-weight:700;list-style:none;cursor:pointer}
.city-civic-page details>summary::-webkit-details-marker{display:none}

/* original-payments.css */
.editorial-page{ max-width: 1080px; margin: 0 auto; color: #38372f; font: 1.02rem/1.78 Arial, Helvetica, sans-serif; }
.editorial-switcher{ display: flex; justify-content: flex-end; gap: 0; margin: 0 0 .8rem; font-family: Arial, sans-serif; }
.editorial-switcher a{ display: inline-flex; min-width: 7rem; min-height: 44px; align-items: center; justify-content: center; padding: .65rem 1rem; color: #d9d7cf; background: #292d29; border-right: 1px solid #454b45; font: 900 .65rem/1 Arial, sans-serif; letter-spacing: .11em; text-transform: uppercase; }
.editorial-switcher a:first-child{ border-left: 1px solid #454b45; }
.editorial-switcher a:hover, .editorial-switcher a[aria-current="page"]{ color: #17120b; background: var(--brand-orange); text-decoration: none; }
.editorial-facts{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 3rem; color: #d9d7cf; background: #292d29; border-top: 1px solid #444a44; }
.editorial-facts div{ min-width: 0; padding: 1.15rem 1.3rem; border-right: 1px solid #444a44; }
.editorial-facts div:last-child{ border-right: 0; }
.editorial-facts span, .editorial-facts strong{ display: block; }
.editorial-facts span{ color: #8e938c; font: 900 .57rem/1 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.editorial-facts strong{ margin-top: .45rem; color: #f1ece2; font: 900 .78rem/1.35 Arial, sans-serif; letter-spacing: .035em; text-transform: uppercase; overflow-wrap: anywhere; }
.editorial-layout{ display: grid; grid-template-columns: 205px minmax(0, 72ch); justify-content: center; gap: clamp(2rem, 5vw, 4.5rem); }
.game-body .editorial-page .article-index{ display: flex; align-self: start; flex-direction: column; position: sticky; top: 1rem; margin: 0; padding: 0; overflow: hidden; background: #292d29; border: 1px solid #414741; box-shadow: 0 12px 28px rgba(38,30,19,.15); }
.game-body .editorial-page .article-index > strong{ padding: 1rem; color: var(--brand-orange); background: #202420; border-bottom: 1px solid #414741; font: 900 .58rem/1 Arial, sans-serif; letter-spacing: .17em; text-transform: uppercase; }
.game-body .editorial-page .article-index a{ display: flex; min-height: 44px; align-items: center; padding: .72rem 1rem; color: #d9d7cf; background: transparent; border: 0; border-bottom: 1px solid #414741; font: 900 .63rem/1.2 Arial, sans-serif; letter-spacing: .07em; text-transform: uppercase; white-space: normal; }
.game-body .editorial-page .article-index a:last-child{ border-bottom: 0; }
.game-body .editorial-page .article-index a:hover{ color: #17120b; background: var(--brand-orange); text-decoration: none; }
.game-body .editorial-page .article-index a:focus-visible{ position: relative; z-index: 1; outline: 3px solid #fff1ad; outline-offset: -3px; }
.editorial-copy{ min-width: 0; counter-reset: editorial-section; }
.editorial-copy > section{ position: relative; scroll-margin-top: 1.5rem; padding: 0 0 2.8rem; margin: 0 0 2.8rem; border-bottom: 1px solid var(--line); counter-increment: editorial-section; }
.editorial-copy > section:last-of-type{ border-bottom: 0; }
.editorial-copy h2{ margin: 0 0 1.15rem; color: #292d29; font: 900 clamp(1.55rem, 3.4vw, 2.25rem)/1.05 "Arial Narrow", Impact, Arial, sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.editorial-copy p{ margin: 0 0 1.2rem; }
.editorial-copy a{ font-family: Arial, sans-serif; font-weight: 800; }
.legal-summary, .legal-notice{ padding: 1.15rem 1.3rem; color: #332c22; background: var(--surface-soft); border: 1px solid var(--line); border-left: 6px solid var(--brand-orange); border-radius: 0; }
.editorial-page > .legal-summary{ max-width: 900px; margin: 0 auto 3rem; font-size: 1rem; }
.legal-summary strong{ color: #27221b; }
.legal-clauses > section h2{ padding-left: 1rem; border-left: 4px solid var(--brand-orange); }
.legal-identity, .receipt-grid{ display: grid; grid-template-columns: minmax(130px, .35fr) 1fr; gap: .6rem 1rem; padding: 1rem; background: rgba(255,255,255,.6); border: 1px solid var(--line); }
.legal-identity{ margin-top: 1.4rem; padding: 1.25rem; background: var(--surface); box-shadow: 0 10px 24px rgba(64,51,31,.08); }
.legal-identity dt, .receipt-grid dt{ color: var(--muted); font: 900 .65rem Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.legal-identity dd, .receipt-grid dd{ margin: 0; overflow-wrap: anywhere; }
.editorial-document-note{ margin: 0; padding: 1rem 1.1rem; color: var(--muted); background: #e7dcc6; border-top: 3px solid #292d29; font: 800 .72rem/1.5 Arial, sans-serif; letter-spacing: .025em; }
@media (max-width: 820px){.editorial-switcher{ justify-content: stretch; }
.editorial-switcher a{ flex: 1; }
.editorial-facts{ margin-bottom: 1.5rem; }
.editorial-layout{ grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.game-body .editorial-page .article-index{ flex-direction: row; position: sticky; top: 0; z-index: 20; width: 100%; overflow-x: auto; }
.game-body .editorial-page .article-index > strong, .game-body .editorial-page .article-index a{ flex: 0 0 auto; min-height: 48px; border-right: 1px solid #414741; border-bottom: 0; }
.editorial-copy > section{ scroll-margin-top: 4.5rem; }
}
@media (max-width: 560px){.editorial-facts{ grid-template-columns: 1fr; }
.editorial-facts div{ padding: .85rem 1rem; border-right: 0; border-bottom: 1px solid #444a44; }
.editorial-facts div:last-child{ border-bottom: 0; }
.editorial-page > .legal-summary{ margin-bottom: 2rem; }
}
.credit-bundles{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.payment-brands{ display: inline-flex; align-items: center; flex: 0 0 auto; vertical-align: middle; }
.payment-brand-paypal{ display: inline-flex; align-items: center; justify-content: center; padding: 8px; background: #fff; border-radius: 4px; }
.payment-brand-paypal img{ display: block; width: auto; height: 28px; }
.payment-brands .payment-brand-google{ display: block; width: auto; height: 64px; }
.payment-brands-compact .payment-brand-paypal{ padding: 4px; border-radius: 3px; }
.payment-brands-compact .payment-brand-paypal img{ height: 18px; }
.payment-brands-compact .payment-brand-google{ height: 38px; }
.credit-bundles-heading{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .75rem; }
#main .credit-bundles-heading > h2{ margin: 0; }
#main .credit-bundle .paypal-checkout-button{ display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .5rem; color: #003087; background: #ffc439; border-color: #ffc439; font: 700 .9rem/1.2 Arial, sans-serif; letter-spacing: 0; text-transform: none; }
#main .credit-bundle .paypal-checkout-button:hover:not(:disabled){ background: #f2ba36; border-color: #f2ba36; }
.paypal-checkout-button img{ display: block; width: auto; height: 26px; }
.credit-bundle{ display: flex; flex-direction: column; gap: .65rem; padding: 1.2rem; background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.credit-bundle > strong{ color: #193f4a; font-size: 1.55rem; }
.credit-bundle > span{ color: var(--muted); font-size: 1.1rem; }
.credit-bundle form{ display: flex; flex-direction: column; gap: .75rem; margin-top: auto; padding-top: .6rem; }
.payment-status{ display: inline-block; padding: .18rem .48rem; border-radius: 999px; background: #ddd; text-transform: capitalize; }
.payment-completed{ color: #174f31; background: #cfe8d9; }
.payment-review, .payment-reversed, .payment-refunded, .payment-denied, .payment-failed{ color: #702a20; background: #efd4cf; }
.receipt{ max-width: 760px; margin: 0 auto; }
.bundle-admin-table input, .bundle-admin-table textarea{ box-sizing: border-box; width: 100%; min-width: 90px; }
@media (max-width: 760px){.credit-bundles, .legal-identity, .receipt-grid{ grid-template-columns: 1fr; }
.legal-identity dd, .receipt-grid dd{ margin-bottom: .55rem; }
}

.credits-page,.receipt,.legal-page,.credits-page h1,.credits-page h2,.receipt h1,.legal-page h1,.legal-page h2{font-family:Arial,Helvetica,sans-serif}.credits-page button,.credits-page input{border-radius:0;min-height:44px}.credits-page .check-row{display:flex;gap:.6rem;align-items:flex-start;min-height:44px}.credits-page .check-row input{min-height:0}.credits-page a,.receipt a,.legal-page a{text-decoration:none}.credits-page>section,.credit-referral{margin-top:1.5rem}.credits-page .table-scroll,.payment-admin .table-scroll{max-width:100%;overflow-x:auto}.credits-page th,.credits-page td,.payment-admin th,.payment-admin td{padding:.65rem;text-align:left;vertical-align:top}.payment-admin>nav a{color:var(--ink);background:#fff;border:2px solid var(--ink)}.payment-admin>nav a[aria-current=page]{border-color:var(--orange)}

/* original-account.css */
.account-page .account-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.account-page .account-grid>form,.account-page .account-grid>div,.account-page .account-panel{padding:1.25rem;border:1px solid var(--line);background:#fff;min-width:0}.account-page form{display:grid;gap:1rem;align-content:start}.account-page .checkbox-line{display:flex;gap:.6rem;align-items:flex-start;min-height:44px}.account-page .context-help{display:block}.account-page .account-grid input{max-width:100%}.account-page .page-title{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}.account-page .account-extras{display:grid;gap:1.25rem;margin-top:1.25rem}.account-page h2{margin-bottom:.5rem}.account-page .account-signout{margin-top:1.25rem}@media(max-width:760px){.account-page .account-grid{grid-template-columns:minmax(0,1fr)}}

/* original-email.css */
.verification-card { max-width: 680px; margin: 2rem auto; padding: clamp(1.2rem, 4vw, 2rem); background: rgba(255,255,255,.82); border: 1px solid var(--line); border-top: 6px solid var(--gold); }
.verification-card h1 { margin-top: .25rem; }
.verification-card form { margin: 1rem 0; }
.verification-card details { margin: 1.2rem 0; padding: .9rem; background: rgba(245,239,222,.72); border: 1px solid var(--line); }
.verification-card summary { color: var(--rust); font-weight: 800; cursor: pointer; }
.verification-address { display: grid; gap: .2rem; margin: 1rem 0; padding: .8rem 1rem; background: #edf3ee; border-left: 4px solid var(--green); }
.verification-address span { color: var(--muted); font: bold .7rem Arial, sans-serif; text-transform: uppercase; }
.verification-sent, .development-verification { padding: .8rem 1rem; background: #f3ead9; border-left: 4px solid #9b6b28; }
.development-verification { margin: 1rem 0; }
.development-verification p { margin: .4rem 0 .8rem; }

/* original-player-header.css */
.site-wordmark { display: inline-flex; align-items: center; gap: .8rem; min-width: 0; color: #f7f2e8; text-decoration: none; }
.site-wordmark:hover { text-decoration: none; }
.site-wordmark > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.site-wordmark strong { font: 900 1.48rem/1 "Arial Narrow", Impact, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.site-wordmark small { margin-top: .32rem; color: #aaa9a2; font: 800 .57rem/1 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.site-wordmark > b { align-self: flex-start; margin: -.3rem 0 0 -.5rem; color: var(--brand-orange); font: 900 2.05rem/.8 "Arial Narrow", Impact, Arial, sans-serif; transform: rotate(7deg); }
.site-mark { display: inline-block; position: relative; width: 2rem; height: 2rem; flex: 0 0 auto; background: var(--brand-orange); clip-path: polygon(50% 0, 100% 24%, 76% 100%, 24% 100%, 0 24%); transform: rotate(45deg); }
.site-mark::after { content: ''; position: absolute; inset: 7px; background: var(--brand-dark); clip-path: inherit; }
.game-shell #login { min-width: 0; margin-left: auto; padding: 0; }
.player-status { display: flex; align-items: stretch; justify-content: flex-end; gap: .8rem; }
.player-identity { display: flex; min-width: 9rem; justify-content: center; flex-direction: column; padding: .5rem .85rem; color: #f4efe4; border-left: 2px solid var(--brand-orange); }
.player-identity:hover { text-decoration: none; background: #171a18; }
.player-identity span, .player-vitals dt { color: #9fa29c; font: 900 .55rem/1 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.player-identity strong { margin-top: .38rem; overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.player-vitals { display: flex; margin: 0; border: 1px solid #333833; }
.player-vitals div { display: flex; min-width: 5.3rem; justify-content: center; flex-direction: column; padding: .5rem .72rem; border-right: 1px solid #333833; }
.player-vitals div:last-child { min-width: 7rem; border-right: 0; }
.player-vitals dd { margin: .34rem 0 0; color: #f3eee4; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.player-vitals .player-online-vital dd { display: flex; align-items: center; gap: .38rem; }
.player-vitals .player-online-vital dd::before { content: ''; width: .48rem; height: .48rem; flex: 0 0 auto; background: #72bd69; border-radius: 50%; box-shadow: 0 0 .38rem rgba(114,189,105,.68); }
.player-vitals .player-meld-vital dd { color: color-mix(in srgb, var(--miner-chat-color) 40%, white); }
.player-status form { display: flex; margin: 0; }
.logout-button { align-self: stretch; min-height: 0; color: #f0ece3; background: transparent; border: 1px solid #4b504b; }
.logout-button span { margin-left: .35rem; color: var(--brand-orange); }
.logout-button:hover:not(:disabled) { color: #17120b; background: var(--brand-orange); border-color: var(--brand-orange); }

/* atlas.css */
/* One map hierarchy. Geography and the original region/city artwork stay in content. */
.atlas-region .region-city-detail{display:none}.atlas-region .region-city-detail:target,.atlas-region .region-city-detail.region-city-requested{display:block}
.atlas-trail{position:sticky;top:0;z-index:12;display:flex;align-items:stretch;width:100%;gap:4px;margin:0 0 24px;padding:6px;background:#111;color:#fff;border-bottom:3px solid #ff9700;font-family:Arial,Helvetica,sans-serif}
.atlas-trail>a{display:flex;align-items:center;gap:10px;min-width:0;min-height:54px;flex:1;padding:8px 12px;color:#c7cec9;white-space:normal;border:1px solid transparent}
.atlas-trail>a:hover,.atlas-trail>a:focus-visible{color:#fff;background:#262b27;border-color:#ff9700}
.atlas-trail>a[aria-current]{color:#ffac38;background:#242721;border-color:#4a4b37}
.atlas-trail>a>span{min-width:0;max-width:100%}.atlas-trail small{display:block;font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;line-height:1.4}.atlas-trail strong{display:block;white-space:normal;overflow-wrap:anywhere;font-size:15px;line-height:1.5}.atlas-trail svg{flex-shrink:0}.atlas-chevron{align-self:center;color:#66736c}
.atlas-chart{border:1px solid #45554d;scroll-margin-top:88px;background:#14201e;isolation:isolate}.atlas-map-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#111;color:#fff;padding:8px 12px;flex-wrap:wrap;border-bottom:1px solid #48524b}.atlas-map-toolbar>span{font-size:12px;font-weight:700;display:flex;align-items:center;gap:8px}.atlas-toolbar-muted{font-weight:400;color:#c3c9c4}.atlas-status-dot{display:inline-block;width:7px;height:7px;background:#90cd70}.atlas-map-toolbar>div{display:flex;gap:4px}.atlas-map-toolbar button{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 12px;background:#232923;color:#fff;border:1px solid #56604f;border-radius:0;font-size:14px;font-weight:700}.atlas-map-toolbar button:hover{background:#ff9700;color:#111}.atlas-map-toolbar button:focus-visible{outline:3px solid #ff9700;outline-offset:2px}
.atlas-world-frame{width:100%;height:clamp(380px,62svh,620px);overflow:auto;overscroll-behavior-x:contain;scrollbar-color:#b7a575 #1a2824;background:radial-gradient(ellipse at 55% 45%,#2c4036,#142321 70%);scroll-padding:20px}.atlas-world-frame:focus-visible{outline:3px solid #ff9700;outline-offset:-4px}.atlas-world-canvas{position:relative;min-width:280px;min-height:235px;contain:layout}.atlas-geography{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.atlas-leader{stroke:#82978a;stroke-width:1;fill:none;stroke-dasharray:3 4}.atlas-world-point{fill:#9eac9d;stroke:#142321;stroke-width:3}.atlas-world-point.is-current{fill:#ff9700;stroke:#ffb64c;stroke-width:4}.atlas-coordinate{font:700 11px Arial,Helvetica,sans-serif;fill:#92a696;letter-spacing:2px}.atlas-compass{stroke:#a5b2a3;stroke-width:1.5;fill:none}
.atlas-world-region{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;gap:9px;width:164px;min-height:58px;padding:7px;background:#19231f;color:#eff3e8;border:1px solid #627365;box-shadow:0 4px 15px #0005;text-align:left;z-index:1}.atlas-world-region img{width:40px;height:40px;object-fit:cover;filter:saturate(.55);flex-shrink:0}.atlas-world-region>span{min-width:0}.atlas-world-region strong{display:block;line-height:1.15;font-size:13px;font-weight:700}.atlas-world-region small{display:block;font-size:10px;line-height:1.5;color:#bcc5ba}.atlas-world-region>svg{margin-left:auto;flex-shrink:0;width:13px}.atlas-world-region.is-open{border-color:#8c9d64}.atlas-world-region.is-current{border:2px solid #ff9700;background:#222d21;z-index:2}.atlas-world-region.is-current img{filter:none}.atlas-world-region.is-current small{color:#ffb64c}.atlas-world-region:hover,.atlas-world-region:focus-visible{outline:3px solid #ff9700;outline-offset:3px;background:#34412b;z-index:3;color:#fff}
.atlas-chart-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:8px 12px;background:#111;color:#c6d0c4;font-size:12px}.atlas-chart-footer a{display:inline-flex;align-items:center;gap:7px;min-height:44px;color:#ffad32;font-weight:700}.atlas-chart-footer svg{width:16px}.atlas-region-browser{margin:32px 0;scroll-margin-top:96px}.atlas-browser-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:24px 0 18px}.atlas-browser-heading h2{margin:5px 0 0;font-size:26px;letter-spacing:-.025em}.atlas-browser-heading h2>span{font-size:12px;letter-spacing:0;font-weight:400;color:#5c6258;margin-left:8px}.atlas-browser-heading form{display:flex;gap:6px;max-width:100%;margin:0}.atlas-browser-heading input{min-width:0;min-height:46px;width:240px;background:#fff;border:1px solid #767b6a;font:16px Arial,Helvetica,sans-serif}.atlas-browser-heading button{min-height:46px}.atlas-region-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.atlas-region-card{display:flex;align-items:center;gap:14px;min-width:0;min-height:112px;padding:12px;background:#fffaf0;border:1px solid #c8cabd;color:#171b16}.atlas-region-card>img{width:86px;height:86px;object-fit:cover;flex-shrink:0}.atlas-region-copy{display:grid;gap:6px;min-width:0}.atlas-region-copy>small{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#65684f;font-weight:700}.atlas-region-copy>strong{font-size:18px;line-height:1.15;overflow-wrap:anywhere}.atlas-region-copy>span{font-size:12px;line-height:1.4}.atlas-region-copy i{padding-inline:4px;font-style:normal}.atlas-region-card>svg{width:17px;flex-shrink:0;margin-left:auto}.atlas-region-card:hover,.atlas-region-card:focus-visible{outline:2px solid #ed8700;outline-offset:0;background:#fff4d9}.atlas-open{color:#416121}.atlas-closed{color:#6d6655}
.atlas-region-topline{display:flex;align-items:center;gap:16px;margin:0 0 12px}.atlas-region-topline a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#663b05;font-weight:700;font-size:13px}.atlas-region-topline>a:last-child{margin-left:auto}.atlas-region-state{font-size:12px;font-weight:700;border:1px solid currentColor;padding:5px 10px}.atlas-region .world-section.panel{padding:0;background:none;border:0;box-shadow:none}.atlas-region .map-header{margin-top:0;border-radius:0}.atlas-region .map-header-title h1{font-size:clamp(1.5rem,4vw,2.2rem)}.atlas-region .map-header-overview{padding:14px 18px}.atlas-region .map-operation-stats{gap:12px}.atlas-region .region-danger dl{margin:0}.atlas-region .regional-weather{margin:8px 0 16px;font-size:13px;font-weight:700}.atlas-region .route-map{margin:0 0 26px;scroll-margin-top:92px}.atlas-region .map-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px;background:#111;color:#eee;border:1px solid #3e473d}.atlas-region .map-controls button{min-width:44px;min-height:44px;margin:0;padding:8px 12px;border-radius:0;background:#252d24;color:#fff;border:1px solid #59624e;font-weight:700}.atlas-region .map-controls button:hover{background:#ff9700;color:#111}.atlas-region .map-controls [data-map-scale]{font-size:12px;min-width:40px;text-align:center}.atlas-region .atlas-map-list{display:inline-flex;align-items:center;gap:4px;margin-left:auto;min-height:44px;color:#ffa625;font-weight:700;font-size:13px}.atlas-region .region-map-frame{max-height:68svh;overscroll-behavior-x:contain;border-color:#48503a}.atlas-region .route-map>figcaption{font-size:11px}.atlas-region .atlas-cities{scroll-margin-top:100px}.atlas-region .atlas-city-card{padding:20px;background:#fffaf1;border:1px solid #c6c7b8;min-width:0;scroll-margin-top:100px}.atlas-city-card:target,.atlas-city-card:focus{outline:3px solid #ff9700;outline-offset:3px}.atlas-city-card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.atlas-city-card-heading h3{font-size:21px;line-height:1.15;margin:0 0 8px}.atlas-city-card-heading h3>a{color:#262b1d;display:inline-flex;align-items:center;min-height:44px}.atlas-city-status{font-size:10px;letter-spacing:.04em;text-transform:uppercase;line-height:1.4;font-weight:700;text-align:right;flex-shrink:0;max-width:84px;color:#6b623e}.atlas-city-card p{font-size:13px;line-height:1.5}.atlas-city-card .atlas-city-mines{color:#585c4b}.atlas-city-card form{margin-bottom:0}.atlas-city-card button{display:inline-flex;align-items:center;gap:14px;min-height:46px;width:100%;justify-content:space-between}.atlas-city-access{display:grid;gap:6px;border-top:1px solid #d1d0c1;padding-top:12px;font-size:12px}.atlas-city-access a{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:700;color:#663b05}.atlas-switcher{margin-top:28px}.atlas-switcher>summary{min-height:44px;display:list-item;padding:12px 0;font-weight:700}.city-page:has(.atlas-trail) #city-map{scroll-margin-top:92px}.city-page:has(.atlas-trail) .city-heading{padding-top:4px}
body:has(.atlas-trail) #city-location{display:none}body:has(.atlas-trail) main{padding-top:18px}.atlas-surface{font-family:Arial,Helvetica,sans-serif;min-width:0}.atlas-surface svg{vertical-align:middle}.atlas-trail a,.atlas-dock a,.atlas-world-region,.atlas-region-card{transition:background-color .15s,border-color .15s,color .15s}
.atlas-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:24px 0}.atlas-heading h1{font-size:clamp(2rem,5vw,3.6rem);line-height:1.05;margin:6px 0 12px;letter-spacing:-.045em}.atlas-heading .eyebrow,.atlas-browser-heading .eyebrow{margin:0;font-size:10px;font-weight:700;letter-spacing:.16em;color:#7d4300}.atlas-heading p{margin:0}.atlas-current{display:flex;align-items:center;gap:14px;min-height:76px;padding:14px 18px;border:1px solid #292e27;border-left:4px solid #ff9700;color:#fff;background:#171c18}.atlas-current>span{display:grid;gap:3px;min-width:0}.atlas-current small{color:#c0c9bf;font-size:11px}.atlas-current strong{font-size:18px;color:#ffab2c}.atlas-current span>span{font-size:12px;color:#e0e4dc}.atlas-current>svg{flex-shrink:0}
@media(max-width:1050px){.atlas-region-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.atlas-region-card>img{width:68px;height:72px}.atlas-region .map-header-overview{flex-wrap:wrap}.atlas-region .map-operation-stats{width:100%;justify-content:space-between}.atlas-region .map-operation-stats>div{padding-left:8px}}
@media(max-width:699px){
 body:has(.atlas-trail) .masthead nav[aria-label="Main navigation"]{display:flex;flex-wrap:nowrap;overflow-x:auto;width:100%;margin:0;gap:0;scrollbar-width:thin;scrollbar-color:#656c58 #111}body:has(.atlas-trail) .masthead nav[aria-label="Main navigation"] a{flex-shrink:0;min-height:44px;padding:12px;font-size:13px}body:has(.atlas-trail) .header-inner{padding-top:12px;padding-bottom:0;gap:6px}body:has(.atlas-trail) .header-summary{gap:8px}body:has(.atlas-trail) .player-identity{min-height:44px}body:has(.atlas-trail) .player-vitals div{padding:7px 10px}body:has(.atlas-trail) .player-vitals dt{font-size:9px}body:has(.atlas-trail) .player-vitals dd{font-size:12px}body:has(.atlas-trail) main{padding-top:12px;padding-bottom:12px}body:has(.atlas-trail) .header-account{margin-bottom:4px}
 .atlas-trail{gap:0;margin-bottom:16px;padding:4px 0;border-bottom-width:2px}.atlas-trail>a{gap:6px;padding:7px 8px;min-height:55px}.atlas-trail>a>svg{width:18px;height:18px}.atlas-trail strong{font-size:12px}.atlas-trail small{font-size:8px;letter-spacing:.07em}.atlas-chevron{font-size:13px}.atlas-trail>a:first-child{flex:.75}
 .atlas-heading{display:block;margin:18px 0}.atlas-heading h1{font-size:36px;margin-bottom:10px}.atlas-heading>div>p:last-child{font-size:13px;max-width:28ch;line-height:1.5}.atlas-current{margin-top:18px;padding:10px 12px;min-height:66px;gap:12px}.atlas-current>svg:last-child{margin-left:auto}.atlas-current strong{font-size:16px}.atlas-current>span{grid-template-columns:1fr auto;align-items:center;width:100%;gap:3px 12px}.atlas-current small{grid-column:1/-1;font-size:10px}.atlas-current span>span{font-size:11px}.atlas-chart{scroll-margin-top:82px}.atlas-map-toolbar{padding:6px 8px;gap:4px}.atlas-map-toolbar>span{padding:5px 2px;font-size:11px}.atlas-map-toolbar>div{width:100%;gap:5px}.atlas-map-toolbar button:last-child{margin-left:auto}.atlas-world-frame{height:410px;max-height:62svh}.atlas-chart-footer{padding:5px 10px;gap:0}.atlas-chart-footer>span{font-size:11px}.atlas-chart-footer>a{font-size:11px}
 .atlas-browser-heading{margin-top:20px;gap:12px}.atlas-browser-heading h2{font-size:24px}.atlas-browser-heading form{width:100%}.atlas-browser-heading input{flex:1;width:160px}.atlas-region-grid{grid-template-columns:minmax(0,1fr);gap:10px}.atlas-region-card{padding:10px;gap:12px;min-height:94px}.atlas-region-card>img{width:72px;height:72px}.atlas-region-copy>strong{font-size:18px}.atlas-region-copy{gap:4px}.atlas-region-copy>small{font-size:9px}.atlas-region-copy>span{font-size:11px}
 .atlas-region-topline{gap:10px;margin-bottom:8px}.atlas-region-topline a{font-size:12px;gap:4px}.atlas-region-state{font-size:10px;padding:4px 7px}.atlas-region .map-header-overview{padding:12px;gap:12px}.atlas-region .map-header-title h1{font-size:27px}.atlas-region .map-operation-stats{gap:5px}.atlas-region .map-operation-stats>div{padding-left:5px}.atlas-region .map-operation-stats dt{font-size:8px}.atlas-region .map-operation-stats dd{font-size:14px}.atlas-region .region-danger{padding:8px}.atlas-region .region-danger dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.atlas-region .region-danger-card{padding:6px;min-width:0}.atlas-region .region-danger-card dt{font-size:9px}.atlas-region .region-danger-card small{font-size:9px;line-height:1.3}.atlas-region .region-danger-score{font-size:10px;gap:3px}.atlas-region .region-danger-score strong{font-size:17px}.atlas-region .regional-weather{font-size:11px;margin:8px 0 12px}.atlas-region .map-controls{padding:5px;gap:4px}.atlas-region .map-controls button{padding:6px 10px}.atlas-region .map-controls [data-map-scale]{font-size:10px;min-width:32px}.atlas-region .atlas-map-list{font-size:11px}.atlas-region .atlas-map-list svg{width:14px}.atlas-region .atlas-city-card{padding:16px}.atlas-city-card-heading h3{font-size:22px}.atlas-region .route-map>figcaption{font-size:10px;gap:7px}.atlas-region .region-map-frame{max-height:60svh}.atlas-region .region-plan{min-width:0}.atlas-region .atlas-cities .atlas-browser-heading h2>span{display:block;margin:6px 0 0}
 .city-page:has(.atlas-trail) .city-heading{gap:10px;margin-top:0}.city-page:has(.atlas-trail) .city-heading-copy{flex-basis:auto}.city-page:has(.atlas-trail) .city-heading-copy>p:not(.eyebrow){font-size:12px}.city-page:has(.atlas-trail) .city-region-map{min-height:52px;flex-basis:100%;padding:8px 12px}.city-page:has(.atlas-trail) .city-region-map img{width:54px;height:38px}.city-page:has(.atlas-trail) .city-region-map strong{font-size:13px}.city-page:has(.atlas-trail) .city-region-map span{font-size:11px}.city-page:has(.atlas-trail) .city-plan-heading{padding:8px 10px}
}
@media(prefers-reduced-motion:reduce){.atlas-trail a,.atlas-dock a,.atlas-world-region,.atlas-region-card{transition:none}}
.regional-map-page.atlas-region .map-controls{background:#111;color:#fff;margin-bottom:0}
.atlas-region .map-controls svg{display:inline-block;width:18px;height:18px;min-height:0;border-radius:0;background:none}
.atlas-region .route-map{padding:0;border-radius:0;background:#19251f;border-color:#48503a;box-shadow:none}
.atlas-region .route-map>figcaption{margin:0;padding:12px}
.atlas-trail,.atlas-chart,.atlas-region .region-artwork,.city-page:has(.atlas-trail) .city-atlas{animation:atlas-appear 180ms ease-out}
@media(prefers-reduced-motion:reduce){.atlas-trail,.atlas-chart,.atlas-region .region-artwork,.city-page:has(.atlas-trail) .city-atlas{animation:none}}
.atlas-world-canvas{margin-inline:auto}
.atlas-world-canvas[data-overview="compact"] .atlas-world-region{width:94px;min-height:44px;height:44px;padding:4px;gap:0;box-shadow:0 2px 4px #0005}
.atlas-world-canvas[data-overview="compact"] .atlas-world-region>img,.atlas-world-canvas[data-overview="compact"] .atlas-world-region>svg{display:none}
.atlas-world-canvas[data-overview="compact"] .atlas-world-region strong{font-size:10px;line-height:1.1}
.atlas-world-canvas[data-overview="compact"] .atlas-world-region small{font-size:8px;line-height:1.3}
.atlas-world-frame,.atlas-region .region-map-frame{cursor:grab;user-select:none}.atlas-dragging,.atlas-dragging *{cursor:grabbing!important;user-select:none}
@media(max-width:699px){.atlas-trail>a{padding-inline:6px;gap:4px}.atlas-trail>a>svg{width:16px;height:16px}.atlas-trail>a:first-child{flex:.65}}
.atlas-header{position:sticky;top:0;z-index:40;display:flex;align-items:stretch;gap:4px;width:100%;margin:0 0 24px;padding:6px;background:#111;color:#fff;border-bottom:3px solid #ff9700}
.atlas-header>.atlas-trail{position:static;z-index:auto;flex:1;min-width:0;width:auto;margin:0;padding:0;border:0}
.atlas-menu{flex:none;width:48px;margin:0;padding:0;border:0}
.atlas-menu>summary{position:relative;display:flex;align-items:center;justify-content:center;width:48px;min-height:54px;margin:0;padding:0;border:1px solid #52574b;color:#fff;background:#111;list-style:none}
.atlas-menu>summary::-webkit-details-marker{display:none}
.atlas-menu[open]>summary,.atlas-menu>summary:hover{color:#ffac38;background:#262b27;border-color:#ff9700}
.atlas-menu>summary:focus-visible{outline:3px solid #ff9700;outline-offset:-3px}
.atlas-unread{position:absolute;top:2px;right:2px;padding:1px 3px;background:#ff9700;color:#111;font:700 9px/1.2 Arial,Helvetica,sans-serif}
.atlas-menu-panel{position:absolute;inset:100% 0 auto auto;z-index:2;width:min(600px,100%);max-height:72svh;overflow:auto;overscroll-behavior:contain;padding:14px;background:#111;color:#fff;border:1px solid #737373;border-top:3px solid #ff9700;box-shadow:0 12px 20px #0005}
.atlas-menu:not([open])>.atlas-menu-panel{display:none}
.atlas-menu-panel h2{margin:0 0 10px;font:700 14px/1.4 Arial,Helvetica,sans-serif;color:#ffac38;letter-spacing:0}
.atlas-context-links,.atlas-menu-panel nav[aria-label="Main navigation"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:4px;width:100%;margin:0}
.atlas-menu-panel a{display:flex;align-items:center;gap:9px;min-width:0;min-height:46px;margin:0;padding:10px;color:#fff;border:1px solid #41473e;font:700 13px/1.35 Arial,Helvetica,sans-serif;white-space:normal;overflow-wrap:anywhere}
.atlas-menu-panel a:hover,.atlas-menu-panel a:focus-visible{background:#292929;color:#ffac38;outline:2px solid #ff9700;outline-offset:-2px}
.atlas-menu-panel a[aria-current]{color:#ff9700;border-color:#ff9700}
.atlas-menu-panel a>svg{flex:none;width:22px;height:22px;min-height:0}
.atlas-menu-panel .atlas-menu-world-title{margin-top:18px;padding-top:12px;border-top:1px solid #52574b}
.atlas-menu-panel .main-nav-group{grid-column:1/-1;min-width:0;margin:4px 0 0;padding:0;border:1px solid #41473e;background:#191919}
.atlas-menu-panel .main-nav-group>summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:12px;cursor:pointer;list-style:none;font:700 14px/1.35 Arial,Helvetica,sans-serif;color:#fff}
.atlas-menu-panel .main-nav-group>summary>span:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
.atlas-menu-panel .main-nav-group>summary::-webkit-details-marker{display:none}
.atlas-menu-panel .main-nav-group>summary::after{content:'';flex:none;width:7px;height:7px;margin:0 3px 4px 6px;border-right:2px solid #ff9700;border-bottom:2px solid #ff9700;transform:rotate(45deg)}
.atlas-menu-panel .main-nav-group>summary:hover{background:#252525}
.atlas-menu-panel .main-nav-group>summary:focus-visible{outline:2px solid #ff9700;outline-offset:-3px}
.atlas-menu-panel .main-nav-group:has(a[aria-current])>summary,.atlas-menu-panel .nav-unread{color:#ff9700}
.atlas-menu-panel .main-nav-group[open]{border-color:#ff9700}
.atlas-menu-panel .main-nav-group[open]>summary{background:#252525}
.atlas-menu-panel .main-nav-group[open]>summary::after{transform:rotate(225deg);margin-block:4px 0}
.atlas-menu-panel .main-nav-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;margin:0 10px 10px;padding:8px 8px 4px;background:#0c0c0c;border-top:1px solid #41473e}
.atlas-menu-panel .main-nav-panel>a{min-height:44px;padding:10px 8px;border:0;border-left:2px solid transparent;border-bottom:1px solid #292929;font-size:13px}
.atlas-menu-panel .main-nav-panel>a:hover,.atlas-menu-panel .main-nav-panel>a:focus-visible,.atlas-menu-panel .main-nav-panel>a[aria-current]{border-left-color:#ff9700;background:#252525}
.atlas-menu-panel .main-nav-group:not([open])>.main-nav-panel{display:none}
@media(max-width:699px){.atlas-header{gap:2px;margin-bottom:16px;padding:4px 2px;border-bottom-width:2px}.atlas-menu,.atlas-menu>summary{width:44px}.atlas-menu>summary{min-height:55px}.atlas-menu-panel{width:100%;padding:10px}.atlas-menu-panel .main-nav-panel{margin-inline:6px;padding-inline:0;column-gap:4px}.atlas-header .atlas-trail>a{padding-inline:4px}.atlas-header .atlas-trail>a>svg{display:none}.atlas-header .atlas-trail strong{font-size:11px}}

/* Existing local heraldry identifies the shared place links at every width. */
.atlas-trail .atlas-place-heraldry,.atlas-dock .atlas-place-heraldry{display:block;flex:none;object-fit:contain}
.city-about{margin-block:16px}
@media(max-width:699px){.atlas-header .atlas-trail>a{flex-direction:column;justify-content:center;gap:3px;min-height:66px;padding:5px 2px;text-align:center}.atlas-header .atlas-trail>a>svg{display:block;width:22px;height:22px}.atlas-header .atlas-trail .atlas-region-heraldry{width:30px;height:22px}.atlas-header .atlas-trail .atlas-city-heraldry{width:22px;height:22px}.atlas-header .atlas-menu>summary{height:100%;min-height:66px}.atlas-dock .atlas-region-heraldry{width:28px;height:20px}.atlas-dock .atlas-city-heraldry{width:22px;height:22px}}

