/* Estate Edition — an original field-management interface for Sawit Manager. */
:root {
  --bg: #0c1211;
  --bg2: #111a17;
  --panel: #17211d;
  --panel2: #1e2b25;
  --line: #2a3931;
  --text: #e9eee7;
  --muted: #9ba99f;
  --accent: #d1ed82;
  --accent2: #e0f5ad;
  --fruit: #efa45b;
  --good: #9fce91;
  --ok: #c2d97e;
  --mid: #e5be72;
  --bad: #f18b7f;
  --info: #8dbec1;
  --radius: 10px;
  --shadow: 0 14px 48px #0004;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}
html, body { background: var(--bg); font-size: 13px; }
body { -webkit-font-smoothing: antialiased; }
button, input, select { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button, a, input, select { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button { transition: background-color .15s, border-color .15s, color .15s; }
::selection { background: #d1ed8255; color: #fff; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #405047; border-radius: 8px; }
::-webkit-scrollbar-track { background: #111916; }
.sm-icon { display: inline-block; vertical-align: middle; flex: none; }
.muted { color: var(--muted); }
.small { line-height: 1.55; }
h1 { font: 700 28px/1.12 var(--display); letter-spacing: .2px; }
h2 { font: 650 13px/1.35 "Inter", "Segoe UI", sans-serif; text-transform: none; letter-spacing: -.1px; color: var(--text); }
h3 { font-weight: 600; }
.page-head { margin-bottom: 22px; align-items: center; }
.page-head p { margin-top: 6px; font-size: 12px; line-height: 1.5; }
.page-kicker { font-size: 10px; font-weight: 650; letter-spacing: 1.8px; color: var(--muted); text-transform: uppercase; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* The management frame keeps navigation stable while the work surface scrolls. */
#app.manager-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); grid-template-rows: 77px minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
#sidebar { grid-column: 1; grid-row: 1 / -1; display: flex; flex-direction: column; padding: 0 12px; background: #101916; border-right: 1px solid #29362e; overflow-y: auto; scrollbar-width: thin; }
#topbar { grid-column: 2; grid-row: 1; padding: 0 28px; gap: 12px; background: #111a17; border-bottom: 1px solid var(--line); min-width: 0; }
#main { grid-column: 2; grid-row: 2; min-width: 0; padding: 27px 28px 48px; background: radial-gradient(ellipse at 95% 0, #1a292118, transparent 65%), var(--bg); scrollbar-gutter: stable; }
#sidebar .sidebar-brand { min-height: 86px; padding: 18px 4px; border: 0; display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
#sidebar .sidebar-brand:hover { background: none; }
.brand-mark { display: inline-flex; width: 39px; height: 47px; align-items: center; justify-content: center; color: var(--accent); border: 1px solid #78984f; border-radius: 4px 4px 15px 15px; background: linear-gradient(140deg, #30422c, #18231b); box-shadow: inset 0 0 0 3px #17261d; flex: none; }
.brand-wordmark b, .newgame-brand > b { font: 700 26px/.8 var(--display); color: #eef1e6; letter-spacing: 1.4px; }
.brand-wordmark b span, .newgame-brand > b > span { display: block; font-size: 17px; margin-top: 7px; letter-spacing: 3.6px; color: var(--accent); }
.brand-wordmark small { display: block; font-size: 6px; letter-spacing: 1.25px; margin-top: 11px; color: #8e9d90; }
.sidebar-estate { display: flex; align-items: center; gap: 9px; padding: 11px 9px; margin: 0 0 16px; border: 1px solid #2a3930; border-radius: 7px; background: #19231e; }
.estate-monogram { display: grid; place-items: center; width: 31px; height: 33px; background: #3e4b2a; border: 1px solid #637443; color: #dfe7b3; font: 700 15px var(--display); border-radius: 5px; flex: none; }
.sidebar-estate > div { min-width: 0; flex: 1; }
.sidebar-estate b { display: block; font-size: 11px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-estate small { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; }
.sidebar-estate > .sm-icon { color: #899989; }
.sidebar-navigation { padding-bottom: 22px; }
.nav-section-label { font-size: 8px; font-weight: 600; letter-spacing: 1.4px; color: #7f9183; padding: 18px 10px 8px; }
.nav-section-label:first-child { padding-top: 0; }
#sidebar button { border: 0; border-radius: 6px; padding: 9px 10px; font-size: 11px; min-height: 36px; margin: 1px 0; gap: 11px; color: #a8b5aa; }
#sidebar button .ico { width: 18px; color: #8c9f8c; display: inline-flex; justify-content: center; }
#sidebar button .ico .sm-icon { width: 17px; height: 17px; }
#sidebar button:hover { color: #f1f5e9; background: #1c2a21; }
#sidebar button.active { color: var(--accent); background: #2c3923; box-shadow: inset 2px 0 var(--accent); font-weight: 550; }
#sidebar button.active .ico { color: var(--accent); }
#sidebar .badge { font-size: 9px; line-height: 17px; min-width: 19px; padding: 0 5px; background: var(--fruit); color: #1a2015; }
.nav-copy { flex: 1; }
.nav-new { margin-left: auto; border: 1px solid #4b6040; border-radius: 3px; font-size: 6px; letter-spacing: .6px; padding: 2px 4px; color: #b2cb8a; }
.sidebar-footer { display: flex; align-items: center; gap: 6px; margin: auto 0 0; padding: 15px 4px 17px; border-top: 1px solid var(--line); color: #8e9e90; font-size: 8px; white-space: nowrap; }
.sidebar-footer small { margin-left: auto; font-size: 7px; color: #647669; }
.sidebar-footer .status-dot { width: 4px; height: 4px; }
.topbar-context { min-width: 0; flex: 1; }
.context-kicker { font-size: 9px; color: #8ea08e; display: flex; gap: 8px; align-items: center; white-space: nowrap; margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; }
.context-kicker > span { color: #526253; }
#topbar .brand { margin: 0; }
#topbar .brand b { font: 600 16px "Inter", sans-serif; letter-spacing: -.4px; }
#topbar .brand > span { display: none; }
.topinfo { gap: 12px; flex-wrap: nowrap; width: auto; }
.topbar-date { display: flex; gap: 9px; color: #b9c7b7; align-items: center; padding-right: 5px; white-space: nowrap; }
.topbar-date > span { display: flex; flex-direction: column; gap: 4px; }
.topbar-date b { font-size: 10px; font-weight: 550; }
.topbar-date small { font-size: 8px; color: #8fa18e; }
.topinfo .topbar-weather { display: flex; align-items: center; gap: 6px; font-size: 15px; background: none; padding: 0 9px; border-right: 1px solid var(--line); border-radius: 0; }
.topbar-weather span { font-size: 9px; color: var(--muted); }
.btn-menu { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 6px; color: #aebfab; border: 1px solid #324133; }
.btn-menu:hover { background: #293829; color: var(--accent); }
.lang-switch { display: flex; align-items: center; border: 1px solid #344333; padding: 2px; border-radius: 5px; background: #182219; }
.lang-switch button { padding: 5px 6px; border: 0; background: none; color: #8d9f88; font-size: 9px; font-weight: 600; border-radius: 3px; }
.lang-switch button.on { color: #e6efd8; background: #34432b; }
.btn-continue { font: 650 11px "Inter", "Segoe UI", sans-serif; min-height: 40px; min-width: 158px; padding: 0 0 0 17px; display: inline-flex; align-items: center; justify-content: space-between; gap: 17px; background: var(--accent); color: #182113; border-radius: 6px; box-shadow: none; letter-spacing: -.15px; }
.btn-continue:hover { background: #dff79e; filter: none; }
.continue-icon { display: grid; place-items: center; align-self: stretch; border-left: 1px solid #46582b3d; width: 38px; }
.continue-label { white-space: nowrap; }
.profile-avatar { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #4a5a42; border-radius: 50%; color: #d3dfa7; background: linear-gradient(145deg, #495a36, #253421); font-size: 10px; font-weight: 650; }
.manager-profile { padding-left: 10px; border-left: 1px solid var(--line); }

/* Shared data presentation. */
.panel { box-shadow: 0 2px 8px #0000000c; border-color: #2a3830; background: #17211d; padding: 17px; }
.panel > h2 { padding-bottom: 8px; }
.panel.tight { padding: 0; }
.grid { gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #3b4c3b; background: #243226; color: #cfdbc6; font-size: 11px; padding: 9px 12px; border-radius: 5px; }
.btn:hover { border-color: #9ab56c; background: #2e3e2c; }
.btn.primary { background: var(--accent); color: #1c2618; border-color: var(--accent); font-weight: 650; }
.btn.sm { font-size: 10px; padding: 5px 9px; }
.btn.danger { background: #3d2624; border-color: #86504a; color: #f5b7ae; }
.btn-continue:disabled { opacity: .5; filter: none; }
select, input[type=text], input[type=number] { background: #111b15; border-color: #3b4b3b; border-radius: 5px; min-height: 33px; }
input[type=checkbox] { accent-color: var(--accent); width: 14px; height: 14px; }
.seg button { background: #162219; border-color: #344632; border-radius: 6px; }
.seg button.on, .seg-mini button.on { background: #33432a; border-color: #8caa63; color: #e1efc1; }
.seg-mini { border-color: #374832; background: #111a14; }
.seg-mini button { color: #9eaf98; font-size: 11px; padding: 7px 12px; }
.seg-mini button.on { box-shadow: none; }
.bar { background: #ffffff0c; height: 5px; border-radius: 3px; }
.bar > i { background: var(--accent); }
.bar.big { height: 7px; }
.kpi .l { font-size: 9px; letter-spacing: 1px; color: #95a38f; }
.kpi .v { font-family: "Inter", sans-serif; font-size: 27px; font-weight: 600; letter-spacing: -1.1px; }
.tag { border-radius: 4px; font-size: 9px; padding: 2px 6px; }
th { background: #1a281e; font-size: 8px; letter-spacing: .8px; color: #9cac94; padding: 11px 10px; }
td { padding: 11px 10px; font-size: 11px; border-bottom-color: #ffffff07; }
tbody tr:hover { background: #d1ed8205; }
tr.me td { background: #a8d86112; }
.who-cell .face-wrap { width: 36px; height: 36px; overflow: hidden; }
.who-cell .face-wrap .face { width: 36px; height: 36px; }
.who-cell .small { margin-top: 3px; font-size: 9px; }
.stars { font-size: 11px; letter-spacing: .5px; color: #d7df8c; }
.stars .pot { color: #536043; }
.form-dots i { padding: 3px 0; border-radius: 3px; }
.mood { font-size: 12px; }
.mood .small { font-size: 10px; }
.face, .face-wrap { border-radius: 9px; }
.face-wrap { overflow: hidden; box-shadow: none; border: 1px solid #4e5c48; background: #253327; }
.modal { border: 1px solid #46543e; border-radius: 12px; }
.modal-head { background: #1f2d22; border-bottom-color: var(--line); }
.modal-head h1 { font-family: "Inter", sans-serif; font-size: 21px; letter-spacing: -.6px; }
.modal-body { padding: 22px; }
.mail-body { font-size: 13px; line-height: 1.8; color: #c9d2c3; }
.mail-list { max-height: calc(100dvh - 180px); }
.mail-item { padding: 15px 13px; border-color: #ffffff08; }
.mail-item.sel { border-left-color: var(--accent); background: #293725; }
.mail-item .subj { font-size: 11px; line-height: 1.5; }
.mail-item .from { font-size: 9px; }
.inbox { grid-template-columns: minmax(245px, .8fr) minmax(0, 1.8fr); }
.inbox .panel:not(.mail-list) { padding: 22px; }
.mail-art { border-radius: 7px; overflow: hidden; }
.mail-art .art { max-height: 220px; }
.requests .req { padding: 18px; gap: 9px; background: #17231b; }
.req > b { font-size: 13px; }
.estate-map svg { border-color: #3d513a; border-radius: 7px; }
.legend { gap: 10px; font-size: 9px; }
.legend i { width: 6px; height: 6px; }
.block { border-radius: 8px; background: #18251c; padding: 16px; }
.block::before { height: 3px; }
.block .bid { font: 600 22px "Inter", sans-serif; }
.block .meta, .block dl { font-size: 10px; line-height: 1.55; }
.warnbox, .infobox { font-size: 11px; padding: 11px 13px; line-height: 1.6; }
.warnbox { color: #e9c59e; background: #9b5f261c; border-color: #9b75334d; }
.infobox { color: #b4d2c4; background: #43837915; border-color: #618d7b55; }
.adv { background: #112017; font-size: 11px; line-height: 1.6; padding: 10px 11px; border-radius: 4px; }

/* An operational hub: a clear picture of the estate and the next useful action. */
.operations-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.operations-heading h1 { font-size: 31px; margin-top: 7px; }
.operations-heading p { color: var(--muted); font-size: 11px; margin: 6px 0 0; }
.operations-heading > .row { gap: 8px; }
.operations-grid { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 18px; align-items: start; }
.operations-main, .operations-aside { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.operations-hero { position: relative; min-height: 250px; display: flex; align-items: flex-end; overflow: hidden; border: 1px solid #4e5b39; border-radius: 10px; background: linear-gradient(90deg, #111d16e6 0%, #11221970 48%, #14201605 100%), linear-gradient(0deg, #0e1e17db, transparent 60%), var(--estate-art, url('../assets/estate-dawn.webp')) 62% 55% / cover; }
.operations-hero-content { width: 100%; position: relative; padding: 25px 27px 21px; }
.hero-status { display: inline-flex; align-items: center; gap: 6px; font-size: 8px; font-weight: 550; text-transform: uppercase; letter-spacing: 1.4px; color: #e4eacb; padding: 6px 9px; border: 1px solid #d8e0aa3b; border-radius: 4px; background: #1a2c1e8f; backdrop-filter: blur(5px); }
.operations-hero-copy h2 { font: 600 35px/1.05 var(--display); color: #f3f2e4; letter-spacing: .2px; margin: 15px 0 8px; max-width: 460px; }
.operations-hero-copy p { color: #ccd4be; font-size: 11px; line-height: 1.6; max-width: 370px; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 19px; }
.hero-actions .btn { padding: 9px 13px; font-size: 10px; background: #e3efb9; color: #24301b; border-color: #e3efb9; }
.hero-actions .hero-secondary { background: #14251bb3; color: #e9ecdb; border-color: #a9ba8f66; }
.hero-metrics { display: flex; gap: 21px; align-items: center; border-top: 1px solid #bdce9d36; padding-top: 15px; margin-top: 20px; }
.hero-metrics > div { display: flex; flex-direction: column; gap: 3px; }
.hero-metrics b { font-size: 13px; color: #f2efd8; font-weight: 550; }
.hero-metrics small { font-size: 8px; letter-spacing: .6px; text-transform: uppercase; color: #b4c2aa; }
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-tile { position: relative; padding: 16px 15px; min-width: 0; min-height: 117px; border: 1px solid #30402f; border-radius: 8px; background: linear-gradient(140deg, #1e2c1f, #152019); }
.metric-tile .l, .metric-tile > small { color: #a2b298; font-size: 8px; letter-spacing: .7px; line-height: 1.5; text-transform: uppercase; }
.metric-tile .v { display: block; font: 600 26px/1.4 "Inter", sans-serif; letter-spacing: -1px; margin: 5px 0 4px; }
.metric-tile .small { font-size: 9px; }
.metric-tile .bar { margin: 8px 0 6px; height: 4px; }
.metric-tile .sm-icon { color: #c6d991; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 15px; }
.section-heading h2, .section-heading h3 { margin: 0; font: 550 12px "Inter", sans-serif; letter-spacing: -.1px; }
.section-heading > span, .section-count { font-size: 9px; color: #9dae95; }
.section-heading > button { background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 5px; color: #c2d397; font-size: 9px; cursor: pointer; }
.section-count { display: inline-flex; align-items: center; justify-content: center; background: #34442b; color: #c2dc95; border: 1px solid #4b5b39; height: 18px; min-width: 21px; padding: 0 5px; border-radius: 4px; margin-left: 6px; }
.operations-priorities { padding-bottom: 8px; }
.priority-list { display: flex; flex-direction: column; }
.priority-card { display: flex; gap: 11px; align-items: center; width: 100%; text-align: left; border: 0; border-top: 1px solid #ffffff0a; background: none; padding: 12px 0; cursor: pointer; color: var(--text); }
.priority-card:hover .priority-copy b { color: var(--accent); }
.priority-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 7px; color: #c1d393; background: #b6cc6f12; border: 1px solid #657d3f4a; flex: none; }
.priority-card.warn .priority-icon, .priority-card.sev2 .priority-icon { color: #e4ba7b; background: #c2863c14; border-color: #b08a4952; }
.priority-card.critical .priority-icon, .priority-card.sev3 .priority-icon { color: #e5a08a; background: #c86b4814; border-color: #a35e3c66; }
.priority-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.priority-copy b { font-size: 10px; font-weight: 550; line-height: 1.5; }
.priority-copy small { font-size: 9px; color: #9eac98; line-height: 1.5; }
.priority-arrow { color: #8a9d7c; }
.advice-footer { border-top: 1px solid var(--line); padding-top: 11px; color: #91a188; font-size: 8px; display: flex; align-items: center; gap: 7px; }
.spotlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.spotlight-worker { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #32412e; border-radius: 6px; background: #121c16; color: var(--text); cursor: pointer; text-align: left; min-width: 0; }
.spotlight-worker:hover { border-color: #8a9f66; background: #1e2d1f; }
.spotlight-face { width: 45px; height: 49px; overflow: hidden; border-radius: 7px; border: 1px solid #5a6a48; background: #31432a; flex: none; }
.spotlight-face .face { width: 100%; height: 100%; border-radius: 0; }
.spotlight-info { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 5px; }
.spotlight-info b { font-size: 10px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spotlight-info small { font-size: 8px; color: #9eaf90; }
.spotlight-form { font-size: 8px; color: #d0de9c; display: flex; align-items: center; gap: 3px; }
.operations-map .estate-map { margin-bottom: 0; }
.map-legend { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; font-size: 8px; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 4px; }
.equipment-teaser { background: linear-gradient(145deg, #263523, #162119); }
.equipment-mini { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: #111c1480; border: 1px solid #384a30; border-radius: 6px; padding: 10px; margin-bottom: 7px; color: var(--text); cursor: pointer; }
.equipment-mini .sm-prop { width: 38px; height: 38px; }
.equipment-mini > span { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.equipment-mini b { font-size: 10px; font-weight: 550; }
.equipment-mini small { color: #9fae91; font-size: 8px; }
.performance-empty { border: 1px dashed #46543a; min-height: 112px; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 20px; color: #a4b491; font-size: 11px; line-height: 1.7; border-radius: 6px; }
.performance-empty .sm-icon { color: #c1d194; }
.weather-panel .fc { gap: 5px; }
.weather-panel .fc-day { padding: 10px 5px; background: #122017; border-color: #334530; }
.weather-panel .fc-day small { font-size: 8px; }
.weather-panel .fc-day b { font-size: 10px; }
.weather-panel .fc-day .fc-ico { font-size: 24px; }
.weather-panel .small { font-size: 9px; }
.league-panel td { font-size: 10px; padding: 10px 5px; }
.league-panel .small { font-size: 8px; }
.league-panel .btn { width: 100%; }
.news-panel .mail-item { padding: 10px 0; }
.news-panel .mail-item .from { font-size: 8px; }
.news-panel .mail-item .subj { font-size: 10px; }

/* Equipment cards reflect the actual career state; all actions open game systems. */
.equipment-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.equipment-header h1 { margin-top: 7px; font-size: 32px; }
.equipment-header p { max-width: 670px; line-height: 1.7; color: #a8b69e; font-size: 11px; margin: 8px 0 0; }
.equipment-summary { display: flex; align-items: center; gap: 22px; padding: 17px 20px; background: #1e2b1f; border: 1px solid #3a4a32; border-radius: 8px; margin-bottom: 18px; }
.equipment-summary > div { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.equipment-summary small, .equipment-summary .l { font-size: 8px; color: #a0ae94; text-transform: uppercase; letter-spacing: .8px; }
.equipment-summary b { font-size: 16px; font-weight: 550; }
.equipment-summary > .sm-icon { color: var(--accent); }
.equipment-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.equipment-card { border: 1px solid #374530; border-radius: 9px; background: #18221b; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.equipment-visual { position: relative; display: grid; place-items: center; min-height: 155px; background: radial-gradient(ellipse at 50% 55%, #52673a42, transparent 65%), repeating-linear-gradient(90deg, transparent, transparent 29px, #b2c58a05 30px), repeating-linear-gradient(0deg, transparent, transparent 29px, #b2c58a05 30px), #121b15; border-bottom: 1px solid #374530; }
.equipment-visual > .sm-icon { width: 112px; height: 112px; filter: drop-shadow(0 9px 5px #0005); }
.equipment-index { position: absolute; top: 12px; left: 13px; font: 500 9px "Inter", sans-serif; letter-spacing: .7px; color: #93a67f; }
.equipment-visual-label { position: absolute; bottom: 12px; right: 13px; text-transform: uppercase; letter-spacing: 1.5px; font-size: 6px; color: #7f9371; }
.equipment-meta { padding: 16px 15px 9px; }
.equipment-meta h2, .equipment-meta h3 { margin: 0 0 6px; font: 550 14px "Inter", sans-serif; color: #f0f1df; }
.equipment-meta p { font-size: 10px; line-height: 1.65; color: #a5b29b; margin: 0; }
.equipment-status { display: inline-flex; align-items: center; gap: 5px; font-size: 8px; color: #d3e5a6; background: #3b51204d; border: 1px solid #637c3f70; border-radius: 4px; padding: 4px 6px; margin: 8px 0 2px; }
.equipment-status.warn { color: #ebc28b; background: #5b3e202d; border-color: #97713e75; }
.equipment-detail { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 9px 15px; border-top: 1px solid #ffffff06; font-size: 9px; line-height: 1.6; color: #93a18a; }
.equipment-detail b { color: #dce7c8; font-size: 9px; font-weight: 500; text-align: right; }
.equipment-action { margin: auto 15px 15px; padding-top: 10px; }
.equipment-action .btn { width: 100%; font-size: 10px; }
.equipment-note { display: flex; gap: 9px; align-items: flex-start; padding: 12px 0; margin-bottom: 12px; color: #98aa8d; font-size: 10px; line-height: 1.6; }
.equipment-note .sm-icon { color: #bed198; }
.equipment-facilities { margin-top: 27px; }
.facility-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.facility-card { display: flex; align-items: center; gap: 10px; padding: 14px 13px; border: 1px solid #37462f; border-radius: 7px; background: #19241a; text-align: left; color: var(--text); min-width: 0; }
.facility-icon { color: #bbd48b; }
.facility-icon .sm-icon { width: 34px; height: 34px; }
.facility-card > div { min-width: 0; flex: 1; }
.facility-card b { display: block; font-size: 10px; margin-bottom: 6px; font-weight: 500; }
.facility-card small { display: block; font-size: 8px; color: #9aae88; margin-top: 4px; }
.camp-status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.camp-status-grid .facility-card { padding: 15px; }

/* A career begins on the estate, with a calm, compact setup alongside it. */
#app.launch-shell { height: auto; min-height: 100dvh; }
.newgame.newgame-v2 { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(475px, .92fr); min-height: 100dvh; padding: 0; background: #141d17; place-items: stretch; }
.newgame-art { position: sticky; top: 0; min-height: 720px; height: 100dvh; display: flex; flex-direction: column; padding: 40px 48px 26px; background: linear-gradient(180deg, #0e1b15a6 0%, #15281b03 25%, #0d1d1399 61%, #0d1b13f0 100%), var(--estate-art, url('../assets/estate-dawn.webp')) 68% center / cover; overflow: hidden; }
.newgame-brand { display: flex; align-items: center; gap: 13px; position: relative; }
.newgame-brand .brand-mark { width: 43px; height: 53px; }
.newgame-brand > b { font-size: 33px; text-shadow: 0 2px 10px #0007; }
.newgame-brand > b > span { font-size: 19px; letter-spacing: 5.3px; }
.newgame-art-content { position: relative; margin-top: auto; padding: 160px 0 40px; }
.newgame-eyebrow { display: block; color: #deecb3; letter-spacing: 2.3px; font-size: 9px; font-weight: 500; margin-bottom: 18px; }
.newgame-art-content h1 { font: 600 clamp(55px, 5.1vw, 84px)/.99 var(--display); letter-spacing: -.8px; margin: 0 0 21px; color: #f0f0df; text-shadow: 0 2px 18px #0004; }
.newgame-art-content > p { max-width: 330px; color: #c9d2b9; font-size: 12px; line-height: 1.8; margin: 0; }
.newgame-proof { display: flex; gap: 20px; margin-top: 29px; padding-top: 20px; border-top: 1px solid #ccdab346; }
.newgame-proof > span { display: inline-flex; align-items: center; gap: 7px; color: #c7d2b4; font-size: 9px; }
.newgame-proof .sm-icon { color: #d4e0a0; }
.newgame-art-foot { display: flex; justify-content: space-between; gap: 14px; color: #99ac8e; letter-spacing: 1.2px; font-size: 7px; }
.newgame-form { padding: 36px clamp(25px, 3.6vw, 64px) 25px; align-self: start; background: #141d17; width: 100%; min-width: 0; }
.newgame-form-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 27px; }
.newgame-form-head .page-kicker { font-size: 8px; letter-spacing: 1.5px; color: #9ead91; }
.newgame-intro h2 { font: 600 35px var(--display); color: #eff0e2; margin: 0 0 6px; letter-spacing: -.3px; text-transform: none; }
.newgame-intro > p { color: #97a58d; font-size: 11px; line-height: 1.6; margin: 0 0 24px; }
.newgame-name > label { display: block; font-size: 8px; letter-spacing: 1.2px; font-weight: 550; text-transform: uppercase; color: #a6b79a; margin-bottom: 8px; }
.newgame-name > input { width: 100%; height: 39px; padding: 10px 13px; font-size: 12px; background: #1d2a1e; border: 1px solid #3c5036; color: #e7edda; }
.newgame-modes { width: 100%; display: flex; margin: 18px 0 22px; padding: 4px; border-radius: 6px; }
.newgame-modes > button { flex: 1; justify-content: center; display: inline-flex; align-items: center; gap: 7px; font-size: 10px; min-height: 31px; border-radius: 4px; }
.newgame-select-heading { margin-bottom: 10px; }
.newgame-select-heading h3 { font-size: 9px; text-transform: uppercase; letter-spacing: .8px; color: #c8d2bc; }
.newgame-select-heading > span { font-size: 7px; letter-spacing: 1px; color: #718969; }
.newgame-v2 .estates { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; margin: 0 0 17px; }
.newgame-v2 .estate { position: relative; display: flex; gap: 12px; padding: 14px 13px; border: 1px solid #34492f; border-radius: 7px; background: #19241a; }
.newgame-v2 .estate:hover { border-color: #739453; background: #213020; }
.newgame-v2 .estate.on { border-color: #b8d078; background: linear-gradient(110deg, #303d23, #202d1c); box-shadow: inset 2px 0 #d1ed82; }
.estate-code { display: inline-grid; place-items: center; width: 29px; height: 32px; color: #96ac7b; border: 1px solid #526244; background: #2a3824; border-radius: 4px; font: 600 15px var(--display); flex: none; }
.estate.on .estate-code { color: #e1eab8; background: #4b5d30; border-color: #839755; }
.estate-copy { min-width: 0; flex: 1; }
.newgame-v2 .estate b { font-size: 12px; color: #dfe7ce; font-weight: 600; }
.estate-copy > .row { gap: 5px; }
.newgame-v2 .estate .diff { position: static; display: inline-flex; font-size: 7px; border-radius: 3px; padding: 2px 5px; background: #52673d50; color: #b5d491; }
.newgame-v2 .estate .diff.medium { background: #876d334d; color: #e2c789; }
.newgame-v2 .estate .diff.hard { background: #8556444d; color: #dfa690; }
.estate-region { display: block; font-size: 8px; color: #98a889; margin-top: 4px; }
.newgame-v2 .estate p { font-size: 9px; line-height: 1.55; color: #a2b093; margin: 7px 0; }
.estate-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #b2c39e; font-size: 7px; margin-top: 7px; }
.estate-meta > span { display: inline-flex; align-items: center; gap: 3px; }
.estate-meta .sm-icon { width: 12px; height: 12px; }
.estate-selected { position: absolute; right: 13px; bottom: 13px; color: #647d50; }
.estate.on .estate-selected { color: #cde88a; }
.newgame-tutorial { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #b9c6a7; margin: 14px 0 17px; }
.newgame-start { display: flex; flex-wrap: wrap; gap: 8px; }
.newgame-start > .btn-continue { width: 100%; padding: 0 13px; min-height: 43px; font-size: 11px; justify-content: center; }
.newgame-start > .btn-continue > .sm-icon { margin-left: auto; }
.newgame-start > .btn { flex: 1; padding: 9px 6px; font-size: 9px; background: transparent; }
.newgame-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #31412c; margin-top: 20px; padding-top: 13px; }
.newgame-footer .btn { border: 0; padding: 0; background: none; font-size: 9px; }
.newgame-save-note { color: #849a77; display: inline-flex; align-items: center; gap: 5px; font-size: 8px; }
.scenario-estates .scen-goals { font-size: 9px; padding-left: 15px; line-height: 1.8; }

/* Field day, team talks and results share the new visual vocabulary. */
.lineup { border-color: #3e5034; }
.bubble { background: #e2e9c6; color: #28361e; border-radius: 7px; font-size: 11px; font-weight: 500; }
.bubble::after { border-top-color: #e2e9c6; }
.lu-group { border-radius: 6px; background: #101c15de; border-color: #8c9f6d50; }
.lu-head { color: #d1dfa4; }
.lu-w .face-wrap { border-radius: 6px; box-shadow: 0 0 0 1px #b5ce7d; }
.live-controls .btn { min-height: 32px; }
.stage { border-radius: 8px; overflow: hidden; }
.live-side h2 { font-size: 11px; }
.shouts { gap: 8px; }
.shouts .btn { display: block; border-color: #43563b; background: #1e301f; font-size: 11px; padding: 11px; border-radius: 6px; }
.shouts .btn small { font-size: 9px; line-height: 1.6; margin-top: 6px; color: #a2b798; }
.clock { color: #e5edce; font-size: 35px; }
.me-pill { color: #d4e4a6; background: #8bb44b1c; border-color: #89ad4b55; border-radius: 4px; font-size: 10px; }
.spot-card { background: linear-gradient(100deg, #4b532c7a, #2d391a33); border-color: #8a9b4e; border-radius: 7px; }
.spot-card .vs { color: #d9df9a; font-size: 9px; }
.spot-card b { font: 550 14px "Inter", sans-serif; }
.score { background: #1c2c1e; border-color: #526944; }
.score .big { font-family: "Inter", sans-serif; font-size: 33px; font-weight: 600; letter-spacing: -1px; }
.score .vs { font-size: 9px; letter-spacing: 1px; }
.potm { border-color: #779451; }
.potm-in .face-wrap { border-radius: 10px; box-shadow: 0 0 0 1px #9eb974; }
.potm-in .vs { color: #d4e4a5; font-size: 9px; }
.potm-rating { border-radius: 7px; font-family: "Inter", sans-serif; font-size: 24px; }
.tut-bubble { background: #26351f; border-color: #b8ce82; border-radius: 8px; }
.tut-bubble h3 { color: #e0edb1; }
.tut-bubble p { color: #c5d2b4; font-size: 12px; }
.tut-hint { color: #e1ebaa !important; }

@media (min-width: 1600px) {
  #app.manager-shell { grid-template-columns: 236px minmax(0, 1fr); }
  #main { padding: 32px 40px 50px; }
  #topbar { padding: 0 40px; }
  .operations-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
  .operations-hero { min-height: 292px; }
  .operations-hero-copy h2 { font-size: 43px; }
  #sidebar button { min-height: 39px; font-size: 12px; }
  .nav-section-label { font-size: 8px; padding-top: 21px; }
  .spotlight-worker { padding: 16px; }
  .spotlight-face { width: 53px; height: 58px; }
  .spotlight-info b { font-size: 12px; }
}
@media (max-width: 1280px) {
  #app.manager-shell { grid-template-columns: 196px minmax(0, 1fr); }
  #main { padding: 23px 21px 40px; }
  #topbar { padding: 0 21px; }
  .topbar-weather, .topbar-weather.hide-sm, .manager-profile { display: none !important; }
  .operations-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 14px; }
  .operations-main, .operations-aside { gap: 14px; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-tile { min-height: 107px; }
  .spotlight-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .spotlight-face { width: 37px; height: 42px; }
  .equipment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facility-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .newgame.newgame-v2 { grid-template-columns: minmax(0, 1fr) minmax(430px, 1fr); }
  .newgame-art { padding: 34px 32px 25px; }
  .newgame-form { padding: 31px 30px 24px; }
  .newgame-art-content h1 { font-size: 61px; }
  .newgame-proof { flex-direction: column; gap: 10px; }
}
@media (max-width: 1050px) and (min-width: 761px) {
  #app.manager-shell { grid-template-columns: 182px minmax(0, 1fr); }
  #sidebar { padding-left: 9px; padding-right: 9px; }
  .brand-wordmark b { font-size: 23px; }
  .brand-wordmark b span { font-size: 15px; }
  .brand-wordmark small { font-size: 5px; letter-spacing: 1px; }
  .sidebar-estate { padding: 9px 7px; gap: 7px; }
  .topbar-date { display: none; }
  .topinfo { gap: 8px; }
  .operations-grid { grid-template-columns: minmax(0, 1fr); }
  .operations-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric-tile { padding: 13px 10px; }
  .metric-tile .v { font-size: 23px; }
  .spotlight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spotlight-worker { flex-direction: column; align-items: flex-start; }
  .equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .camp-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inbox { grid-template-columns: 1fr; }
  .mail-list { max-height: 250px; }
}
@media (max-width: 760px) {
  #app.manager-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: 104px minmax(0, 1fr) 64px; }
  #topbar { grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; align-content: center; align-items: center; padding: 10px 15px; gap: 10px 8px; }
  .topbar-context { flex: 1; }
  .context-kicker { font-size: 8px; margin-bottom: 4px; }
  #topbar .brand b { font-size: 15px; }
  .topinfo { width: 100%; display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; margin: 0; }
  .topbar-date { display: flex; margin-right: auto; padding-right: 0; gap: 6px; }
  .topbar-date > .sm-icon { display: none; }
  .topbar-date b { font-size: 9px; }
  .topbar-date small { font-size: 7px; }
  .topinfo .btn-continue { flex: none; min-width: 136px; min-height: 34px; width: auto; padding: 0 0 0 11px; font-size: 9px; gap: 10px; }
  .continue-icon { width: 29px; }
  .continue-icon .sm-icon { width: 15px; }
  .btn-menu { width: 28px; height: 28px; }
  .topinfo .btn-menu[data-action=sound] { display: none; }
  .lang-switch { padding: 2px; }
  .lang-switch button { padding: 4px 5px; font-size: 8px; }
  #sidebar { grid-column: 1; grid-row: 3; display: flex; flex-direction: row; padding: 0 7px env(safe-area-inset-bottom, 0px); border-right: 0; border-top: 1px solid #3a4b33; overflow: hidden; align-items: center; justify-content: space-around; background: #132017; }
  #sidebar .sidebar-brand, .sidebar-estate, .nav-section-label, .sidebar-footer { display: none; }
  .sidebar-navigation { display: contents; }
  #sidebar button { flex: 1 1 0; min-width: 0; width: auto; min-height: 54px; font-size: 8px; margin: 0; gap: 5px; flex-direction: column; justify-content: center; border-radius: 6px; padding: 7px 2px; position: relative; }
  #sidebar button.active { background: #2e3e2266; box-shadow: inset 0 2px var(--accent); }
  #sidebar button .ico { width: 19px; }
  #sidebar button .ico .sm-icon { width: 18px; height: 18px; }
  .nav-copy { flex: none; white-space: nowrap; overflow: hidden; max-width: 100%; text-overflow: ellipsis; }
  #sidebar .badge { position: absolute; top: 3px; right: 4px; min-width: 12px; line-height: 13px; font-size: 7px; padding: 0 3px; }
  #sidebar .nav-extra { display: none; }
  #sidebar .nav-more { display: flex !important; }
  .nav-new { display: none; }
  #main { grid-column: 1; grid-row: 2; padding: 19px 14px 30px; scrollbar-gutter: auto; }
  h1, .operations-heading h1 { font-size: 27px; }
  .operations-heading { align-items: flex-start; gap: 10px; margin-bottom: 16px; }
  .operations-heading > .row { flex-direction: column; align-items: flex-end; }
  .operations-heading > .row > .btn { font-size: 8px; padding: 7px 8px; }
  .operations-heading p { font-size: 9px; }
  .page-kicker { font-size: 8px; letter-spacing: 1.3px; }
  .operations-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .operations-main, .operations-aside { gap: 14px; }
  .operations-hero { min-height: 253px; background-position: 64% center; }
  .operations-hero-content { padding: 20px 18px 17px; }
  .operations-hero-copy h2 { font-size: 34px; max-width: 245px; }
  .operations-hero-copy p { font-size: 10px; max-width: 260px; }
  .hero-status { font-size: 7px; letter-spacing: 1px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { font-size: 9px; padding: 8px 9px; }
  .hero-metrics { gap: 16px; margin-top: 16px; padding-top: 13px; }
  .hero-metrics b { font-size: 11px; }
  .hero-metrics small { font-size: 7px; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .metric-tile { padding: 13px 12px; min-height: 103px; }
  .metric-tile .v { font-size: 24px; }
  .panel { padding: 15px; }
  .spotlight-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .spotlight-worker { flex-direction: row; padding: 10px 12px; }
  .spotlight-face { width: 40px; height: 44px; }
  .spotlight-info b { font-size: 11px; }
  .spotlight-info small { font-size: 9px; }
  .equipment-header { flex-wrap: wrap; }
  .equipment-header h1 { font-size: 28px; }
  .equipment-header p { font-size: 10px; }
  .equipment-summary { gap: 13px; padding: 14px; flex-wrap: wrap; }
  .equipment-summary > div { flex: 1 1 35%; }
  .equipment-summary b { font-size: 14px; }
  .equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .equipment-visual { min-height: 132px; }
  .equipment-visual > .sm-icon { width: 95px; height: 95px; }
  .equipment-meta { padding: 13px 11px 7px; }
  .equipment-meta h2, .equipment-meta h3 { font-size: 12px; }
  .equipment-meta p { font-size: 9px; }
  .equipment-status { font-size: 7px; max-width: 100%; line-height: 1.5; }
  .equipment-detail { padding: 8px 11px; font-size: 8px; flex-wrap: wrap; gap: 3px; }
  .equipment-detail b { font-size: 8px; }
  .equipment-action { margin: auto 10px 12px; }
  .equipment-action .btn { font-size: 8px; padding: 8px 4px; }
  .facility-grid, .camp-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .facility-card { padding: 12px 9px; gap: 8px; }
  .facility-card b { font-size: 9px; }
  .facility-icon .sm-icon { width: 28px; height: 28px; }
  .inbox { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mail-list { max-height: 220px; }
  .inbox .panel:not(.mail-list) { padding: 17px; }
  .mail-body { font-size: 12px; }
  .page-head { gap: 10px; margin-bottom: 16px; }
  .squad-cards { gap: 9px; }
  .wcard { padding: 12px; background: #17251a; border-color: #384e31; }
  .wcard .face-wrap { width: 58px; height: 63px; border-radius: 7px; }
  .wcard .face-wrap .face { width: 100%; height: 100%; border-radius: 0; }
  .wc-main > b { font-size: 12px; }
  .modal-bg { padding: 10px; }
  .modal-head { padding: 16px; }
  .modal-head h1 { font-size: 17px; }
  .modal-body { padding: 16px; }
  .score { gap: 13px; padding: 20px 12px; }
  .score .big { font-size: 26px; }
  .score .vs { font-size: 8px; letter-spacing: .4px; }
  .shouts .btn { font-size: 11px; min-height: 67px; }
  .view-switch { gap: 3px; }
  .view-switch button { padding: 7px 8px; font-size: 10px; }
  .newgame.newgame-v2 { display: flex; flex-direction: column; }
  .newgame-art { position: relative; min-height: 330px; height: auto; padding: 24px 25px 20px; background-position: 65% 40%; }
  .newgame-brand .brand-mark { width: 33px; height: 41px; }
  .newgame-brand .brand-mark .sm-icon { width: 28px; height: 28px; }
  .newgame-brand > b { font-size: 25px; }
  .newgame-brand > b > span { font-size: 14px; letter-spacing: 4.6px; }
  .newgame-art-content { padding: 50px 0 22px; }
  .newgame-eyebrow { font-size: 7px; margin-bottom: 12px; }
  .newgame-art-content h1 { font-size: 49px; margin-bottom: 12px; }
  .newgame-art-content > p { max-width: 250px; font-size: 10px; line-height: 1.7; }
  .newgame-proof { display: none; }
  .newgame-art-foot { font-size: 6px; letter-spacing: 1px; }
  .newgame-form { padding: 25px 22px 23px; }
  .newgame-form-head { margin-bottom: 21px; }
  .newgame-intro h2 { font-size: 30px; }
  .newgame-intro > p { font-size: 10px; margin-bottom: 20px; }
  .newgame-name > input { min-height: 43px; font-size: 13px; }
  .newgame-v2 .estate { padding: 13px 11px; gap: 10px; }
  .newgame-v2 .estate p { font-size: 10px; }
  .newgame-v2 .estate b { font-size: 12px; }
  .estate-meta { font-size: 8px; gap: 8px; }
  .newgame-start > .btn-continue { min-height: 46px; font-size: 12px; }
  .newgame-save-note { font-size: 7px; }
  .newgame-footer .btn { font-size: 8px; }
}
@media (max-width: 370px) {
  .topbar-date { display: none; }
  .topinfo .btn-continue { margin-left: auto; }
  .equipment-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions { flex-wrap: wrap; }
  .newgame-form { padding-left: 17px; padding-right: 17px; }
  .newgame-v2 .estate { gap: 8px; }
  .estate-code { width: 24px; }
  .newgame-select-heading > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Final hierarchy and direct-child layouts shared by the dashboard and equipment. */
html, body { font-size: 14px; }
.context-kicker { font-size: 10px; }
.topbar-date b { font-size: 11px; }
.topbar-date small { font-size: 9px; }
.nav-section-label { font-size: 9px; }
.section-heading h2, .section-heading h3 { font-size: 13px; }
.section-heading > div > .page-kicker { display: block; margin-bottom: 6px; font-size: 9px; }
.metric-strip { margin-bottom: 18px; }
.metric-tile { min-height: 129px; padding: 18px; }
.metric-icon { position: absolute; top: 18px; right: 16px; color: #b9cd8c; }
.metric-label { display: block; padding-right: 22px; min-height: 15px; color: #a9b69e; font-size: 10px; line-height: 1.5; }
.metric-tile > strong { display: block; font: 600 29px/1.4 "Inter", sans-serif; letter-spacing: -1.2px; color: #edf0df; margin-top: 8px; }
.metric-tile > strong small { margin-left: 5px; font: 400 13px "Inter", sans-serif; letter-spacing: 0; color: #8da380; }
.metric-detail { display: block; font-size: 10px; line-height: 1.5; color: #99ac8e; }
.metric-progress { margin-top: 10px; }
.metric-progress .bar { margin: 0; }
.operations-heading p { font-size: 12px; }
.operations-hero-copy > .page-kicker { display: block; margin-top: 17px; font-size: 9px; }
.operations-hero-copy h2 { margin-top: 8px; }
.hero-status { font-size: 9px; }
.hero-status-right { padding-left: 9px; margin-left: 5px; border-left: 1px solid #bdd3944d; }
.hero-metrics > div > span { font-size: 9px; letter-spacing: .9px; color: #bacaa7; }
.hero-metrics b { font-size: 18px; margin-top: 3px; }
.hero-metrics b small { font-size: 11px; margin-left: 3px; }
.hero-actions .btn { font-size: 11px; min-height: 37px; }
.priority-copy b { font-size: 12px; }
.priority-copy small { font-size: 10px; }
.priority-card.attention .priority-icon { background: #d69c5320; color: #e5be83; border-color: #c1934c55; }
.priority-card.urgent .priority-icon { background: #c76b4c24; color: #efa68e; border-color: #ce795c66; }
.map-legend { font-size: 9px; flex-wrap: wrap; }
.map-legend i { width: 6px; height: 6px; border-radius: 2px; background: var(--legend-color); }
.spotlight-info .tag { align-self: flex-start; }
.spotlight-form { flex-wrap: wrap; gap: 4px; }
.spotlight-form > span:last-child { font-size: 9px; }
.performance-empty { flex-direction: column; gap: 8px; text-align: center; }
.performance-empty p { margin: 0; font-size: 11px; }
.equipment-teaser p { font-size: 11px; line-height: 1.7; color: #b5c4a3; }
.equipment-teaser .equipment-mini { justify-content: space-around; cursor: default; padding: 11px 5px; gap: 5px; }
.equipment-teaser .equipment-mini > span { flex: none; }
.equipment-meta { display: flex; flex: 1; flex-direction: column; padding: 17px 16px 15px; }
.equipment-meta > .page-kicker { display: block; color: #a5b492; font-size: 8px; line-height: 1.6; min-height: 26px; letter-spacing: 1px; }
.equipment-meta h2 { font-size: 16px; margin-bottom: 8px; }
.equipment-meta p { min-height: 53px; font-size: 11px; line-height: 1.65; }
.equipment-status { align-self: flex-start; font-size: 9px; margin: 13px 0; }
.equipment-status.warning { border-color: #a7884a75; color: #efc987; background: #ae803318; }
.equipment-status.warning .status-dot { background: #efc987; }
.equipment-detail { display: flex; flex-direction: column; align-items: flex-start; border-top: 1px solid #778d5a26; padding: 11px 0 12px; gap: 4px; }
.equipment-detail b { font-size: 11px; font-weight: 450; text-align: left; color: #d3dfbd; }
.equipment-detail > span { font-size: 10px; color: #9aac8c; line-height: 1.6; }
button.equipment-action { width: 100%; min-height: 37px; margin: auto 0 0; display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 9px 0 0; border: 0; border-top: 1px solid #778d5a33; border-radius: 0; background: none; color: #d1e6a0; cursor: pointer; font-size: 11px; text-align: left; }
button.equipment-action:hover { color: #eff8cd; }
button.equipment-action .sm-icon { width: 15px; height: 15px; }
.facility-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 7px 12px; min-height: 100px; }
.facility-card > .facility-icon { grid-column: 1; grid-row: 1 / 4; }
.facility-card > b { grid-column: 2; margin: 0; font-size: 11px; line-height: 1.5; }
.facility-card > .lvl, .facility-card > small { grid-column: 2; }
.facility-card > small { font-size: 9px; line-height: 1.6; margin: 0; }
.facility-card > .lvl i { width: 15px; height: 4px; border-radius: 2px; }
.camp-status-grid .facility-card { grid-template-columns: 36px minmax(0, 1fr) auto; }
.camp-status-grid .facility-card > .facility-icon { grid-row: 1 / 3; }
.camp-status-grid .facility-card > strong { grid-column: 3; grid-row: 1; font-size: 17px; color: #d6e7aa; font-weight: 550; }
.camp-status-grid .facility-card > strong small { display: inline; font-size: 9px; font-weight: 400; color: #93a77f; }
.camp-status-grid .facility-card > .bar { grid-column: 2 / 4; }
.camp-status-grid .facility-card > small { grid-column: 1 / -1; }
.newgame-start.btn-continue { width: 100%; min-height: 45px; padding: 0 15px; font-size: 12px; border-radius: 5px; justify-content: space-between; }
.newgame-form-head .page-kicker { font-size: 9px; }
.newgame-intro > p { font-size: 12px; }
.newgame-name > label { font-size: 9px; }
.newgame-v2 .estate b { font-size: 13px; }
.newgame-v2 .estate p { font-size: 11px; }
.estate-region { font-size: 10px; }
.estate-meta { font-size: 9px; }
.newgame-v2 .estate .diff { font-size: 9px; }
.newgame-tutorial { font-size: 11px; }
.newgame-select-heading h3 { font-size: 10px; }
.newgame-modes > button { font-size: 11px; }
.newgame-save-note { font-size: 9px; }
.newgame-footer .btn { font-size: 10px; cursor: pointer; }
.nav-grid button { font-size: 12px; }
.nav-grid button .sm-icon { width: 24px; height: 24px; }
@media (max-width: 1280px) {
  .metric-tile { padding: 15px; min-height: 128px; }
  .metric-tile > strong { font-size: 26px; }
  .metric-label { font-size: 10px; }
  .metric-detail { font-size: 10px; }
  .metric-icon { top: 15px; right: 12px; }
}
@media (max-width: 760px) {
  .context-kicker { font-size: 9px; }
  .topbar-date b { font-size: 10px; }
  .topbar-date small { font-size: 8px; }
  .operations-heading p { font-size: 11px; }
  .operations-hero-copy p { font-size: 11px; }
  .hero-metrics { gap: 13px; }
  .hero-metrics > div > span { font-size: 8px; letter-spacing: .5px; }
  .hero-metrics b { font-size: 16px; }
  .hero-actions .btn { font-size: 10px; }
  .metric-tile { padding: 14px 12px; min-height: 130px; }
  .metric-label { font-size: 10px; max-width: calc(100% - 5px); padding-right: 18px; min-height: 30px; }
  .metric-tile > strong { font-size: 26px; margin-top: 4px; }
  .metric-tile > strong small { font-size: 11px; }
  .metric-detail { font-size: 10px; }
  .metric-icon .sm-icon { width: 16px; height: 16px; }
  .equipment-meta { padding: 13px 12px; }
  .equipment-meta > .page-kicker { font-size: 8px; min-height: 38px; }
  .equipment-meta h2 { font-size: 14px; }
  .equipment-meta p { font-size: 11px; line-height: 1.65; min-height: 92px; }
  .equipment-status { font-size: 9px; }
  .equipment-detail b { font-size: 10px; }
  .equipment-detail > span { font-size: 10px; }
  button.equipment-action { font-size: 10px; line-height: 1.7; min-height: 43px; }
  .facility-card { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .facility-card > .facility-icon { grid-column: 1; grid-row: auto; }
  .facility-card > b, .facility-card > .lvl, .facility-card > small { grid-column: 1; }
  .camp-status-grid .facility-card { grid-template-columns: minmax(0, 1fr) auto; }
  .camp-status-grid .facility-card > .facility-icon { grid-column: 1; grid-row: 1; }
  .camp-status-grid .facility-card > b { grid-column: 1; grid-row: 2; }
  .camp-status-grid .facility-card > strong { grid-column: 2; grid-row: 2; }
  .camp-status-grid .facility-card > .bar { grid-column: 1 / -1; }
  .newgame-start.btn-continue { min-height: 47px; }
}

#app[data-estate="riau"] { --estate-art: url('../assets/estate-riau.webp'); }
#app[data-estate="kalbar"] { --estate-art: url('../assets/estate-kalbar.webp'); }
.news-panel .mail-item { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid #ffffff0a; color: var(--text); }
.news-panel .mail-item:hover { color: var(--accent); background: #d1ed8206; }
.news-panel .mail-item > .from { width: 100%; }
.facility-card > b, .facility-card > small { min-width: 0; overflow-wrap: anywhere; }
.map-instruction { justify-content: flex-end; }
