:root {
  color-scheme: light;
  --ink: #242c25;
  --muted: #626b60;
  --green: #28483a;
  --green-dark: #182e26;
  --paper: #f3f2ed;
  --panel: #fcfcf8;
  --line: #dedfd5;
  --accent: #c38455;
  --soft: #eaf0e8;
  --radius: 11px;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid #94704b; outline-offset: 3px;
}
a { color: var(--green); text-underline-offset: 3px; }
svg { display: block; flex: 0 0 auto; }
h1, h2, h3, p { margin: 0; }
.topbar {
  height: 70px; padding: 0 clamp(18px, 3vw, 47px); display: flex; align-items: center; gap: 36px;
  color: #f5f1e5; background: var(--green-dark); border-bottom: 1px solid #466053;
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; text-decoration: none; color: inherit; }
.brand-icon {
  color: #edb484; background: #334539; border: 1px solid #64715a; border-radius: 9px;
  height: 39px; width: 39px; display: grid; place-items: center;
}
.brand-icon svg { width: 27px; height: 27px; }
.brand-name { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 760; letter-spacing: .11em; }
.brand-name small { color: #b6c6b9; font: 650 .66rem "Segoe UI", sans-serif; letter-spacing: .17em; }
.navigation { display: flex; align-items: stretch; gap: 5px; align-self: stretch; }
.nav-link {
  position: relative; display: inline-flex; gap: 8px; align-items: center; color: #c1cfc5; border: 0;
  padding: 0 15px; background: none; font-weight: 670; white-space: nowrap; font-size: .9rem;
}
.nav-link svg { width: 17px; height: 17px; }
.nav-link:hover, .nav-link.active { color: #fff8e7; background: #ffffff0c; }
.nav-link.active::after { content: ""; position: absolute; height: 3px; inset: auto 14px 0; border-radius: 3px 3px 0 0; background: #d7a173; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 21px; }
.connection { color: #bcc9bf; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: .78rem; }
.connection i,.pill i { background: #b88861; border-radius: 50%; display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; }
.connection.online i { background: #92b692; box-shadow: 0 0 0 3px #92b69226; }
.top-settings {
  display: inline-flex; gap: 7px; align-items: center; color: #f0f4eb; border: 1px solid #607064; border-radius: 7px;
  background: #ffffff08; padding: 8px 10px; font-weight: 650; font-size: .86rem;
}
.top-settings svg { width: 17px; height: 17px; }
.top-settings:hover { background: #ffffff19; }
main { margin: 0 auto; padding: 0 clamp(16px, 2.5vw, 40px); max-width: 1920px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 27px 0 23px; }
.eyebrow { color: #526753; font-size: .77rem; font-weight: 750; letter-spacing: .105em; display: flex; align-items: center; gap: 7px; }
.page-head h1 { margin: 5px 0 5px; font-size: clamp(1.95rem, 3.15vw, 2.85rem); font-weight: 780; letter-spacing: -.042em; line-height: 1.16; }
.page-head p { color: var(--muted); font-size: .94rem; line-height: 1.6; }
.page-actions { display: flex; gap: 9px; white-space: nowrap; padding-bottom: 2px; }
.workspace {
  min-height: 510px; height: calc(100dvh - 293px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 366px);
  gap: 15px; align-items: stretch;
}
.battle-status {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(210px,0.34fr); gap: 1px;
  background: #cbd7cb; border: 1px solid #cbd7cb; border-radius: var(--radius); overflow: hidden; margin-bottom: 13px;
}
.hud-stock { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); background: var(--panel); }
.hud-resource { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px 13px; color: #42644c; }
.hud-resource+.hud-resource { border-left: 1px solid #e1e7dc; }
.hud-resource div,.hud-tech-copy { min-width: 0; display: grid; gap: 2px; }
.hud-resource span,.hud-tech-copy>span { color: #4f6659; font-size: .84rem; font-weight: 690; white-space: nowrap; }
.hud-resource strong { font-size: 1.27rem; color: #243d30; line-height: 1; font-variant-numeric: tabular-nums; }
.hud-output,.hud-shortage { font-size: .72rem; font-weight: 650; color: #4f6856; }
.hud-shortage,.unit-warning { color: #873f16; font-weight: 720; }
.unit-type { border-bottom: 1px solid #e0e7db; padding: 5px 3px 6px; }
.unit-type h4 { font-size: .87rem; margin: 0 0 2px; }
.unit-type p,.site-output { font-size: .8rem; color: #486451; line-height: 1.5; margin-top: 3px; }
.hud-tech {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 13px; text-align: left;
  border: 0; background: #eaf0e7; color: #244333;
}
button.hud-tech:hover { background: #e1ebdd; }
.hud-tech-icon { display: grid; place-items: center; background: #d8e5d7; border-radius: 7px; width: 37px; height: 37px; flex-shrink: 0; }
.hud-tech-copy strong { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-tech-copy small { color: #4d6255; font-size: .76rem; }
.hud-tech-copy progress { width: 100%; height: 8px; accent-color: #527554; }
.lobby-hub { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(260px,1fr); gap: 18px; max-width: 1140px; }
.tutorial-entry { display: flex; flex-direction: column; overflow: hidden; background: #f7f8f1; }
.tutorial-illustration {
  height: 158px; display: flex; gap: 22px; align-items: center; justify-content: center; background: #dce6da;
  background-image: repeating-radial-gradient(ellipse at 22% 96%,transparent 0 12px,#a2b79e65 13px 14px,transparent 15px 24px),
    repeating-radial-gradient(ellipse at 92% 12%,transparent 0 15px,#a8b79b75 16px 17px,transparent 18px 29px);
  border-bottom: 1px solid #d0dccf;
}
.tutorial-illustration span {
  display: grid; place-items: center; width: 60px; height: 57px; border: 1px solid #a5baaa; border-radius: 11px;
  background: #f4f6e7; color: #375747; box-shadow: 0 4px 14px #3c674325;
}
.tutorial-illustration span:nth-child(2) { transform: translateY(16px); }
.tutorial-illustration span:nth-child(3) { transform: translateY(-12px); }
.entry-content,.multiplayer-entry { padding: clamp(17px,3vw,27px); }
.entry-content h2 { font-size: clamp(1.55rem,2.55vw,2.2rem); margin: 5px 0 7px; line-height: 1.2; }
.entry-content p { color: var(--muted); line-height: 1.65; max-width: 35ch; margin: 0 0 16px; }
.multiplayer-entry h2 { font-size: 1.24rem; margin-bottom: 11px; }
.entry-links { display: grid; }
.entry-link {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 3px; color: var(--ink);
}
.entry-link:last-child { border-bottom: 0; }
.entry-link:hover { background: #eef2e9; }
.entry-link b,.entry-link small { display: block; }
.entry-link small { margin-top: 4px; font-size: .82rem; color: var(--muted); }
.entry-link>svg,.department-menu button>svg:last-child { transform: rotate(-90deg); color: #5e7664; }
.room-dialog { width: min(91vw,450px); }
.room-dialog .dialog-head { align-items: center; }
.join-rooms { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 11px; }
.training-card {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px;
  background: #eef3e9; border: 1px solid #cfddce; border-radius: var(--radius);
  color: #304437; padding: 13px 16px; margin-bottom: 13px;
}
.training-card h3 { font-size: 1.12rem; margin: 4px 0; }
.training-card p { font-size: .88rem; color: #4d6454; line-height: 1.48; }
.training-card .training-step { font-size: .77rem; font-weight: 750; color: #3c614d; }
.training-card .training-recap { margin-top: 4px; font-weight: 700; }
.training-progress { color: #355846; font-size: .82rem; display: grid; gap: 4px; min-width: 124px; }
.training-progress progress { width: 100%; height: 9px; accent-color: #477453; }
.training-mode .workspace { height: calc(100dvh - 410px); min-height: 480px; }
.tutorial-finish { max-width: 640px; padding: 26px; }
.tutorial-finish h2 { margin-top: 12px; }
.tutorial-finish p { color: var(--muted); margin: 8px 0 17px; line-height: 1.55; }
.tutorial-finish .toolbar { justify-content: flex-start; flex-wrap: wrap; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 3px #273a2806; min-width: 0; }
.sidebar { overflow: auto; scrollbar-width: thin; scrollbar-color: #c6ccb9 transparent; }
.panel-heading { padding: 19px 17px 16px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.heading-icon,.map-icon {
  width: 36px; height: 36px; border-radius: 8px; flex: 0 0 auto;
  display: grid; place-items: center; background: #e8eee5; border: 1px solid #dce5d9; color: #375747;
}
.panel-heading h2,.map-head h2 { font-size: 1.15rem; font-weight: 770; line-height: 1.25; }
.panel-heading p,.map-head p { margin-top: 4px; color: var(--muted); font-size: .85rem; }
.panel-content { padding: 16px 17px; }
.panel-divider { border-top: 1px solid var(--line); }
.muted { color: var(--muted); font-size: .81rem; line-height: 1.55; }
.wide { width: 100%; }
.primary,.secondary,.quiet,.record-button,.dept-button,.icon-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 7px;
  border: 1px solid transparent; border-radius: 7px; font-size: .87rem; font-weight: 650; line-height: 1.25;
  padding: 9px 12px; min-height: 36px; text-decoration: none;
}
.primary { color: #fffdf5; background: var(--green); border-color: var(--green); }
.primary:hover:not(:disabled) { background: #37634f; }
.secondary { color: #354c3e; background: #fcfcf7; border-color: #d2d8ce; }
.secondary:hover:not(:disabled),.icon-button:hover:not(:disabled),.quiet:hover:not(:disabled) { background: #eef1e9; }
.quiet { color: #4b6454; background: transparent; padding: 6px 8px; min-height: 30px; }
.icon-button { color: #496154; border-color: #dce1d6; background: #fdfdf7; padding: 7px 9px; }
.form { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; min-width: 0; color: #334138; font-size: .85rem; font-weight: 670; }
.field>span { display: inline-flex; gap: 6px; align-items: center; }
input:not([type="checkbox"]),select,textarea {
  background: #fffefa; border: 1px solid #d6dacf; border-radius: 6px; padding: 8px 9px;
  color: #24372c; line-height: 1.28; width: 100%; min-width: 0; min-height: 36px; font-weight: 500; font-size: .875rem;
}
input::placeholder,textarea::placeholder { color: #707b70; opacity: 1; }
textarea { resize: vertical; min-height: 73px; }
select {
  appearance: none; padding-right: 24px; background: #fffefa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23546759' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 7px center/15px;
}
.input-action { display: flex; min-width: 0; }
.input-action :is(input,select) { border-radius: 6px 0 0 6px; }
.input-action>button {
  border: 1px solid #d6dacf; border-left: 0; border-radius: 0 6px 6px 0; color: #385343; background: #f1f3ec;
  display: grid; place-items: center; padding: 0 10px; font-weight: 680; white-space: nowrap; min-height: 36px;
}
.input-action>button:hover { background: #e6ede2; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
summary {
  cursor: pointer; display: flex; justify-content: space-between; gap: 6px; align-items: center;
  font-weight: 665; list-style: none; color: #45574b; font-size: .85rem;
}
summary::-webkit-details-marker { display: none; }
details[open]>summary svg { transform: rotate(180deg); }
.extra-fields { margin-top: 11px; }
.checkfield { display: flex; align-items: center; gap: 6px; font-size: .81rem; color: #425448; cursor: pointer; }
input[type="checkbox"] { accent-color: #427051; width: 15px; height: 15px; margin: 0; }
.field-error { color: #963d30; background: #f9ebe5; border: 1px solid #edd2c7; border-radius: 6px; padding: 8px; font-size: .82rem; }
.estimate { margin-top: -7px; font-size: .74rem; }
.map-panel { display: flex; flex-direction: column; overflow: hidden; }
.map-head { padding: 13px 15px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.map-head-actions { display: flex; gap: 7px; align-items: center; }
.map-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.map-title>div { min-width: 0; }
.map-title h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-icon { width: 34px; height: 34px; }
.map-icon svg { width: 17px; height: 17px; }
.map-layer { font-size: .88rem; min-height: 36px; }
.map-layer svg { width: 19px; height: 19px; }
#latestAlert { color: #843f26; background: #fff1db; border-color: #d7b68d; }
.map-area { position: relative; flex: 1; min-height: 310px; background: #ede6d4; border-block: 1px solid #d7cfb7; overflow: hidden; }
#battleMap { width: 100%; height: 100%; position: absolute; inset: 0; display: block; cursor: grab; touch-action: none; }
#battleMap.dragging { cursor: grabbing; }
.map-furniture { pointer-events: none; position: absolute; inset: 0; }
.map-furniture button,.map-furniture input,.map-menu { pointer-events: auto; }
.map-alerts { position: absolute; inset: 0; }
.map-alert {
  position: absolute; transform: translate(-50%,-110%); display: grid; place-items: center; width: 38px; height: 38px;
  border: 2px solid #fff; border-radius: 50%; background: var(--warning); color: #fff;
  box-shadow: 0 2px 5px #2f272da0; --warning: #2d5e80;
}
.map-alert.battle { --warning: #ab2c2c; }
.map-alert.transport-warning { --warning: #9d470b; }
.map-alert.control { --warning: #285841; }
.map-alert.ration { --warning: #955819; }
.map-alert::before {
  content: ""; position: absolute; inset: -5px; border: 3px solid var(--warning); border-radius: 50%;
  pointer-events: none; animation: warning-pulse 1.25s ease-out infinite;
}
@keyframes warning-pulse {
  from { transform: scale(.89); opacity: .95; }
  to { transform: scale(1.42); opacity: .05; }
}
@media(prefers-reduced-motion: reduce) { .map-alert::before { animation: none; } }
.map-search {
  position: absolute; z-index: 3; top: 12px; left: 12px; display: flex; align-items: center; color: #4c6051;
  background: #fbfbf2f6; border: 1px solid #c8cdbb; border-radius: 7px; padding-left: 8px; width: min(195px,60%);
}
.map-search svg { width: 18px; height: 18px; }
.map-search input { background: transparent; border: 0; padding: 6px 8px; min-height: 36px; font-size: .9rem; }
.map-menu {
  position: absolute; z-index: 4; top: 38px; left: 0; width: 100%; min-width: 144px;
  background: #fdfcf5; border: 1px solid #cbd1c1; padding: 5px; border-radius: 6px; box-shadow: 0 5px 16px #46433224;
}
.map-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 3px; width: 100%; text-align: left; background: transparent;
  border: 0; padding: 7px; font-size: .82rem; color: #304c3c; border-radius: 4px;
}
.map-menu button:hover { background: #e9efe3; }
.map-menu small { color: #646d62; }
.map-menu p { padding: 6px; }
.layer-menu { left: auto; right: 10px; top: 11px; width: 135px; }
.layer-menu label { display: flex; align-items: center; gap: 7px; font-size: .82rem; padding: 6px; cursor: pointer; }
.compass {
  position: absolute; top: 13px; right: 14px; display: grid; justify-items: center; gap: 2px;
  color: #5c6651; font-size: .73rem; font-family: Georgia, serif;
}
.compass svg { width: 31px; height: 31px; stroke-width: 1.15; }
.map-tools {
  display: grid; position: absolute; z-index: 2; right: 12px; bottom: 14px; border: 1px solid #c5cbb8; border-radius: 7px; overflow: hidden;
  box-shadow: 0 2px 5px #29261918;
}
.map-tools button { width: 42px; height: 42px; border: 0; background: #f9faf2; color: #375044; display: grid; place-items: center; }
.map-tools button+button { border-top: 1px solid #d8dccc; }
.map-tools button:hover { background: #e7edde; }
.map-tools svg { width: 21px; height: 21px; }
.map-scale {
  position: absolute; left: 13px; bottom: 15px; font-size: .8rem; font-weight: 700; color: #424938;
  text-shadow: 0 0 5px #f4f0da;
}
.map-scale::before { display: block; content: ""; width: var(--scale-length, 58px); min-width: 14px; height: 5px; border: 1px solid #5c6552; border-top: 0; margin-bottom: 2px; }
.pick-notice {
  position: absolute; z-index: 4; left: 50%; bottom: 15px; transform: translateX(-50%); background: #27473a; color: #fffdf0;
  border-radius: 7px; padding: 7px 10px; white-space: nowrap; font-size: .82rem;
}
.pick-notice button { background: transparent; color: #fff; border: 0; text-decoration: underline; margin-left: 5px; }
.map-footer {
  display: flex; flex-wrap: wrap; gap: 9px 13px; align-items: center; min-height: 40px; padding: 7px 13px;
  color: #405346; font-size: .85rem; font-weight: 660;
}
.map-footer>span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.map-footer .coordinates { margin-left: auto; font: .72rem Consolas,monospace; }
.legend { display: inline-grid; place-items: center; width: 17px; height: 16px; flex: 0 0 auto; }
.legend svg { width: 17px; height: 17px; }
.legend.swatch { border-radius: 4px; border: 1px solid #a79f83; }
.legend.wood { background: #b0ba99; }
.legend.hills { background: #d0bf9b; }
.legend.river::after,.legend.road::after { content: ""; display: block; width: 14px; height: 3px; border-radius: 4px; background: #8eb3b5; }
.legend.road::after { background: #c5a977; height: 2px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 8px; }
.section-title h3,.result-grid h3 { font-size: .94rem; font-weight: 760; }
.empty { padding: 7px 0; }
.room-item {
  display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; color: #314639;
  padding: 8px 0; gap: 6px; border: 0; border-bottom: 1px solid var(--line); background: none;
}
.room-item:hover b { text-decoration: underline; text-underline-offset: 3px; }
.room-item b,.room-item small { display: block; font-size: .82rem; overflow-wrap: anywhere; }
.room-item small { color: var(--muted); font-size: .73rem; margin-top: 3px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 10rem;
  background: #eaf0e7; color: #486451; border: 1px solid #dce7d9; font-size: .72rem; font-weight: 660; white-space: nowrap;
}
.pill i { width: 5px; height: 5px; background: #688369; }
.app-footer {
  display: flex; justify-content: space-between; padding: 10px 0; color: #657263; font-size: .75rem;
}
.room-block { display: grid; gap: 12px; }
.time-box { display: flex; align-items: center; justify-content: space-between; padding: 8px 9px; background: #edf0e7; border-radius: 7px; }
.time-box div { display: grid; gap: 2px; }
.time-box div span { font-size: .78rem; color: #516250; }
.time-box strong { font: 760 1.4rem/1.18 "Segoe UI",sans-serif; font-variant-numeric: tabular-nums; color: #304c3d; }
.toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 7px; }
.toolbar select { width: auto; }
.room-meta { display: flex; gap: 12px; align-items: center; justify-content: space-between; color: #5f7060; font-size: .82rem; }
.room-meta span { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.factions { list-style: none; margin: 0; padding: 0; }
.faction-row { padding: 7px 0; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #edefe6; }
.faction-row:last-child { border-bottom: 0; }
.faction-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--faction); box-shadow: 0 0 0 3px color-mix(in srgb,var(--faction),transparent 83%); margin: 0 2px; flex-shrink: 0; }
.faction-row div { min-width: 0; overflow-wrap: anywhere; }
.faction-row b { display: block; font-size: .87rem; color: #324139; }
.faction-row small { display: block; font-size: .76rem; color: #69746a; margin-top: 2px; }
.you-label { font-size: .68rem; background: #e6eee2; color: #3e654e; padding: 2px 4px; border-radius: 3px; white-space: nowrap; }
.faction-points { margin-left: auto; color: #405b49; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.sidebar-tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 12px; }
.sidebar-tabs button { padding: 9px 6px; flex: 1 1 auto; white-space: nowrap; color: #46594c; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: .92rem; font-weight: 690; }
.sidebar-tabs button.active { color: #2c553d; border-bottom-color: #729578; }
.sidebar-tabs button:hover { background: #f0f3e9; }
.sidebar-tabs span { font-size: .72rem; padding-left: 2px; }
.order-panel { padding: 12px 14px; }
.voice-controls { display: grid; margin-bottom: 10px; }
.record-button { background: #eaf0e7; border-color: #d1ddce; color: #355341; }
.record-button:hover,.hold-button:hover { background: #dfeadc; }
.record-button.recording { color: #91382e; background: #f2e1da; border-color: #e2baa9; }
.hold-button { touch-action: none; font-size: .76rem; padding-inline: 5px; white-space: nowrap; }
.hold-button svg { width: 13px; height: 13px; }
.voice-status { padding: 6px 0 8px; min-height: 34px; font-size: .84rem; }
.voice-original { margin-bottom: 10px; }
.voice-original p { margin-top: 3px; font-size: .88rem; color: var(--muted); }
.voice-status[data-state="recording"],.voice-status[data-state="error"] { color: #8a3427; }
.input-options { border-top: 1px solid var(--line); padding-top: 8px; }
.input-example {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 8px 10px;
  border: 1px solid #d3dfd0; border-radius: 7px; background: #eff4ec; margin-bottom: 8px; color: #274c37;
}
.input-example b { font-size: .81rem; }
.input-example p { margin-top: 3px; line-height: 1.5; font-size: .86rem; font-weight: 640; overflow-wrap: anywhere; }
.input-example .quiet { flex: 0 0 auto; padding: 4px 5px; }
.example-catalog { margin-bottom: 10px; }
.example-group { margin-top: 6px; border-top: 1px solid var(--line); padding: 6px 0 0 8px; }
.example-option {
  text-align: left; display: grid; gap: 2px; width: 100%; padding: 6px; color: #375745; background: none;
  border: 0; border-bottom: 1px solid var(--line); font-size: .82rem;
}
.example-option:hover { background: #eaf1e6; }
.preview-assumptions { margin: 6px 0; padding: 5px 8px; border-left: 2px solid #86a486; background: #e8f0e4; color: #31513e; }
.preview-assumptions ul { padding-left: 16px; margin: 3px 0; }
.deputy-reply b { margin-right: 4px; color: #31513e; }
.input-options .toolbar { justify-content: space-between; margin-top: 5px; }
.unit-directory { border-block: 1px solid var(--line); padding: 8px 2px; }
.unit-directory summary>span { margin-left: auto; color: var(--muted); font-size: .79rem; }
.unit-directory .quiet { justify-content: flex-start; }
.unit-directory>div { display: grid; margin-top: 4px; }
.menu-heading { font-size: .91rem; margin: 11px 0 5px; }
.department-menu { display: grid; }
.department-menu button {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; text-align: left;
  color: #365642; border: 0; border-bottom: 1px solid #e4e8de; background: none; padding: 9px 4px; font-size: .88rem;
}
.department-menu button:hover { background: #edf3e9; }
.context-path { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.context-path h3 { font-size: .92rem; }
.object-shortcut { margin-bottom: 9px; }
.march-preview { border-left: 2px solid #90ad91; margin-block: 6px; padding: 4px 0 4px 7px; }
.march-preview details { margin-block: 5px; }
.march-preview ul { padding-left: 15px; margin: 4px 0; }
.march-preview li span { color: var(--muted); font-size: .76rem; }
.selection-empty,.selected-card { margin: 13px 0 12px; border: 1px solid #dce4d9; border-radius: 7px; color: #536e5b; background: #f1f4ed; font-size: .81rem; padding: 8px; }
.selection-empty { display: flex; gap: 7px; align-items: center; line-height: 1.4; }
.selection-title { display: flex; align-items: center; gap: 7px; }
.selection-title>div { min-width: 0; overflow-wrap: anywhere; }
.selection-title small { display: block; margin-top: 2px; color: #667768; }
.selection-title button { margin-left: auto; min-height: 25px; border: 0; background: transparent; padding: 4px; }
.inventory { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 7px; color: #506658; font-size: .76rem; }
.subordinates { display: flex; flex-wrap: wrap; gap: 5px; }
.subordinates .quiet { font-size: .74rem; min-height: 22px; padding: 2px 5px; }
.selected-card .muted { margin-top: 5px; }
.action-item { border-bottom: 1px solid #e2e6da; }
.action-item summary { padding: 8px 1px; }
.action-info { padding: 3px 1px 8px; }
.action-info p,.command-help p { font-size: .81rem; color: #55675b; line-height: 1.5; margin-bottom: 6px; }
.action-info .secondary { min-height: 28px; padding: 4px 7px; font-size: .76rem; }
.action-info .availability { color: #8c5739; }
.example { font-weight: 650; color: #41634e; }
.research-list { display: grid; gap: 5px; margin-bottom: 8px; }
.research-list>div { border: 1px solid #dbe4d7; background: #f5f7f0; padding: 6px; border-radius: 6px; display: flex; flex-wrap: wrap; font-size: .75rem; gap: 2px 5px; }
.research-list>div span { margin-left: auto; color: #5d7263; }
.research-list>div small { color: #636e64; width: 100%; }
.report-list { display: grid; }
.report-list button { justify-content: start; padding-left: 0; }
.task-card { padding: 8px; margin-bottom: 7px; border: 1px solid #e0e5d8; border-radius: 6px; }
.task-card>div { display: flex; justify-content: space-between; gap: 4px; align-items: baseline; }
.task-card b { font-size: .82rem; }
.task-card span,.task-card small { color: #5e6e60; font-size: .73rem; }
.task-card p { margin-top: 4px; color: #5f6c5f; font-size: .77rem; }
.task-card progress { width: 100%; height: 8px; accent-color: #688870; }
.event-list { display: grid; }
.event-list article { display: flex; align-items: baseline; color: #52645a; font-size: .81rem; gap: 8px; padding: 7px 0; border-bottom: 1px solid #e9ece2; line-height: 1.5; }
.event-list time { flex: 0 0 auto; font: .77rem Consolas,monospace; color: #5a745e; }
.event-list b { color: #365744; }
.event-list article.highlighted { padding-inline: 6px; background: #e9f0e4; border-radius: 6px; }
.event-list .quiet { padding-left: 0; }
.observer-note { padding: 4px 0; }
.preview-box { margin-top: 9px; padding: 8px; border: 1px solid #dce5d9; border-radius: 7px; background: #f4f7ed; color: #405f4c; font-size: .81rem; }
.preview-box.error { background: #faf0e5; color: #795039; border-color: #e9d7c4; }
.preview-box p { margin: 4px 0; line-height: 1.5; }
.preview-box small { display: block; line-height: 1.5; }
.preview-step { display: flex; gap: 6px; padding: 5px 0; }
.preview-step>span { display: grid; height: 19px; width: 19px; place-items: center; color: #f9f9ed; background: #659073; border-radius: 50%; flex-shrink: 0; font-size: .72rem; }
.preview-step+ .preview-step { border-top: 1px solid #e4e8df; }
.preview-box .toolbar { margin-top: 5px; }
.result { margin-bottom: 10px; }
.result-title { display: flex; gap: 13px; align-items: center; padding: 17px; }
.result-title .heading-icon { width: 48px; height: 48px; }
.result-title h2 { margin: 4px 0; font-size: 1.6rem; }
.result-title p:not(.eyebrow) { color: var(--muted); font-size: .86rem; }
.result-title .secondary { margin-left: auto; }
.result-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; margin-top: 14px; }
.result-resource-title { padding-top: 14px; }
.resource-report { margin-top: 9px; font-size: .86rem; color: #435749; }
.dialog { border: 1px solid #cdd6c7; border-radius: 11px; padding: 0; width: min(90vw,580px); max-height: 85vh; background: var(--panel); color: var(--ink); box-shadow: 0 10px 49px #142c2681; }
.dialog::backdrop { background: #1f2c25a0; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 17px 20px; gap: 10px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.48rem; margin-top: 4px; }
.dialog-body { padding: 16px 20px 20px; }
.service-form { border: 1px solid var(--line); border-radius: 8px; padding: 11px; margin: 11px 0; gap: 8px; }
.service-form .section-title { margin-bottom: 0; }
.service-feedback { color: #517561; font-size: .81rem; }
.service-feedback[data-tone="error"] { color: #943e31; }
.quick-check { padding-top: 5px; }
.command-dialog { width: min(90vw,430px); }
.command-help { background: #f0f3eb; padding: 8px; border-radius: 6px; margin-bottom: 10px; }
.command-help p:last-child { margin-bottom: 0; }
#toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 5; max-width: min(92vw,520px);
  background: #28483b; color: #fafcf0; border: 1px solid #547263; box-shadow: 0 4px 16px #17281e24;
  padding: 10px 13px; border-radius: 7px; font-size: .88rem;
}
#toast[data-tone="error"] { background: #793f33; border-color: #965f50; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media(max-width: 1120px) {
  .workspace { grid-template-columns: minmax(0,1fr) minmax(255px,310px); gap: 11px; }
  .panel-content { padding-inline: 12px; }
  .panel-heading { padding-inline: 12px; }
  .map-footer .coordinates { display: none; }
}
@media(max-width: 760px) {
  .workspace,.training-mode .workspace { height: auto; display: flex; flex-direction: column; }
  .battle-status { grid-template-columns: 1fr; }
  .hud-tech { padding-block: 7px; }
  .map-panel { min-height: 460px; }
  .right-panel { max-height: none; }
}
@media(max-width: 604px) {
  .topbar { padding: 0 10px; gap: 6px; height: 58px; }
  .brand { gap: 5px; }
  .brand-icon { width: 32px; height: 32px; }
  .brand-icon svg { width: 22px; height: 22px; }
  .brand-name { font-size: 1rem; }
  .brand-name small,.connection,.nav-link span { display: none; }
  .nav-link { padding: 0 7px; font-size: .75rem; }
  .nav-link.active::after { inset-inline: 5px; }
  .header-right { gap: 0; }
  .top-settings { padding: 6px; font-size: .72rem; }
  .top-settings svg { width: 14px; height: 14px; }
  main { padding-inline: 10px; }
  .page-head { flex-wrap: wrap; padding: 16px 0 13px; gap: 7px; }
  .page-head p { font-size: .84rem; }
  .page-actions .secondary,.page-actions .primary { padding: 5px 7px; min-height: 30px; font-size: .78rem; }
  .lobby-hub { grid-template-columns: 1fr; gap: 11px; }
  .tutorial-illustration { height: 103px; }
  .training-card { grid-template-columns: 1fr; gap: 7px; }
  .training-card .primary { justify-self: start; }
  .hud-resource { padding: 8px 4px; justify-content: center; }
  .hud-resource>svg { display: none; }
  .hud-resource strong { font-size: 1.06rem; }
  .map-panel { min-height: 360px; }
  .result-title { flex-wrap: wrap; }
  .result-title .secondary { margin-left: 0; }
  .result-grid { grid-template-columns: 1fr; }
}
