:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#25382e;background:#f5f2e9;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.tribe-shell{max-width:720px;min-height:100dvh;margin:auto;background:#fbfaf5;box-shadow:0 0 30px #463b201a;padding-bottom:calc(75px + env(safe-area-inset-bottom))}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}.topbar{height:58px;display:flex;align-items:center;gap:12px;padding:0 16px;background:#fffdf6;border-bottom:1px solid #ded6bd}.topbar a{font-size:32px;text-decoration:none;color:#395a42;line-height:1}.topbar strong{flex:1;font-size:18px}.topbar span{font-size:12px;color:#748274}.loading{text-align:center;padding:80px 20px;color:#667767}.page{padding:10px 14px 28px}.scene{background:linear-gradient(90deg,#142b21d6,#203b2670 58%,#1b251111),url('/img/game/tribe-village.webp') center/cover;min-height:150px;border-radius:20px;color:#fff;padding:14px 18px;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:0 12px 25px #34442525;overflow:hidden}.scene small{font-weight:800;letter-spacing:.08em;color:#e8d397}.scene h1{font-size:23px;margin:3px 0}.scene p{margin:2px 0;font-size:14px;font-weight:650;text-shadow:0 1px 4px #16261d}.section-title{display:flex;align-items:center;justify-content:space-between;margin:15px 2px 9px}.section-title h2{font-size:19px;margin:0}.section-title small{color:#677769;font-weight:650}.card{background:#fff;border:1px solid #e7e3d6;border-radius:17px;padding:15px;margin:10px 0;box-shadow:0 5px 15px #4551390a}.card h3{margin:0 0 5px;font-size:17px}.card p{margin:4px 0;color:#667467;line-height:1.5}.resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.resource{padding:12px;border-radius:15px;background:#fff;border:1px solid #e5e5da}.resource b{display:block;font-size:15px}.resource strong{display:block;margin:5px 0;font-size:19px;white-space:nowrap}.resource small{display:block;color:#748172;font-size:12px}.resource.negative small,.warning{color:#a64324!important}.resource .bar,.progress{height:7px;background:#ede9d9;border-radius:20px;overflow:hidden;margin:8px 0 0}.resource .bar i,.progress i{display:block;height:100%;background:#66946c;border-radius:20px}.resource.grain .bar i{background:#d9a84e}.action{background:#456f4f;color:#fff;border:0;border-radius:12px;padding:11px 15px;font-weight:800;min-height:44px}.action.secondary{background:#e7efe3;color:#2d5b37}.action.danger{background:#a64c39}.pill{display:inline-block;padding:5px 9px;border-radius:30px;background:#f1efdf;color:#60735c;font-size:12px;font-weight:800}.muted{color:#788577;font-size:13px}.line{display:flex;justify-content:space-between;gap:10px;align-items:center}.line>*{min-width:0}.cost{font-size:13px;color:#5f6e5d}.cost .missing{color:#bd4b2c;font-weight:800}.facility-scene{min-height:116px;margin:-15px -15px 12px;padding:15px;display:flex;align-items:flex-end;color:#fff;border-radius:16px 16px 0 0;background:linear-gradient(0deg,#172a20b8,#1c392133),url('/img/game/tribe-village.webp') center/cover}.facility-scene.farm{background-position:center 80%}.facility-scene.forest{background-position:left center}.facility-scene.mountain{background-position:right center}.facility-scene.camp{background-position:right 35%}.facility-scene h3{margin:0;text-shadow:0 2px 6px #17231b}.job{border-left:4px solid #b09153}.job strong{display:block}.job .progress i{background:#c59451}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(720px,100%);display:flex;background:#fffdf8;border-top:1px solid #ded8c8;padding:6px 8px calc(6px + env(safe-area-inset-bottom));z-index:6;box-shadow:0 -4px 16px #25321b10}.bottom-nav[hidden]{display:none}.bottom-nav button{flex:1;border:0;background:transparent;border-radius:12px;padding:5px;color:#788477;font-size:19px}.bottom-nav button span{display:block;font-size:12px;font-weight:750}.bottom-nav button.active{color:#385d3b;background:#ebf1e7}.field{display:block;margin:12px 0}.field span{display:block;font-size:13px;font-weight:800;margin-bottom:5px}.field input,.field select{width:100%;min-height:44px;padding:9px 11px;border:1px solid #cdd6c8;border-radius:10px;background:#fff;font-size:16px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.choice-grid button{padding:10px;border:1px solid #cbd6c9;background:#f6f9f4;border-radius:12px;text-align:left}.choice-grid button.selected{border:2px solid #52845d;background:#e9f4e9}.event{border-bottom:1px solid #ecebe2;padding:9px 0}.event:last-child{border:0}.event small{color:#889187}.empty{padding:22px;text-align:center;color:#788677}#toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:#263f2d;color:#fff;padding:11px 17px;border-radius:12px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:10;max-width:min(85vw,400px);text-align:center}#toast.show{opacity:1}@media(max-width:380px){.scene{min-height:142px}.resource strong{font-size:17px}.page{padding:10px}.card{padding:12px}.facility-scene{margin:-12px -12px 12px}}
.facility-scene.farm{background-image:linear-gradient(0deg,#172a20b8,#1c392133),url('/img/game/tribe-farm.webp')}
.facility-scene.forest{background-image:linear-gradient(0deg,#172a20b8,#1c392133),url('/img/game/tribe-forest.webp')}
.facility-scene.mountain{background-image:linear-gradient(0deg,#172a20b8,#1c392133),url('/img/game/tribe-mountain.webp')}
.facility-scene.camp{background-image:linear-gradient(0deg,#172a20b8,#1c392133),url('/img/game/tribe-camp.webp')}

#tribeFeedTeaser{margin-top:10px}
.tribe-feed-teaser{display:flex;align-items:center;gap:8px;width:100%;max-width:100%;min-width:0;overflow:hidden;min-height:42px;padding:7px 10px;border:1px solid #dce5d7;border-radius:13px;background:#f0f6ed;color:#334b37;text-align:left;box-shadow:0 3px 10px #4551390a}
.tribe-feed-teaser>span{flex:none;display:grid;width:30px;height:30px;place-items:center;border-radius:9px;background:#e1eddb;font-size:17px}
.tribe-feed-teaser strong{display:block;flex:1 1 0%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:650}
.tribe-feed-teaser strong b{color:#3d6a45}.tribe-feed-teaser small{flex:none;color:#738171;font-size:11px}.tribe-feed-teaser i{flex:none;font-size:22px;font-style:normal;color:#7c907b}
.tribe-guide-open{min-height:34px;padding:4px 10px;border:1px solid #cbd9c5;border-radius:12px;background:#f2f7ef;color:#3f6946;font-size:13px;font-weight:800}
.tribe-dialog{position:fixed;inset:auto 10px 10px;width:min(680px,calc(100vw - 20px));max-width:none;max-height:min(80dvh,720px);margin:0 auto;padding:0;border:0;border-radius:22px;background:#fffdf8;color:#28382c;box-shadow:0 20px 50px #1e2d2070;overflow:hidden}
.tribe-dialog::backdrop{background:#1d30296b;backdrop-filter:blur(3px)}
.tribe-dialog.food-dialog,.food-dialog .tribe-sheet{max-height:min(92dvh,760px)}
.food-output{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 0 4px;font-size:14px}.food-output strong{font-size:21px;color:#355c40;font-variant-numeric:tabular-nums}.food-output small{font-size:12px;font-weight:600}
.food-table{width:100%;border-collapse:collapse;font-size:15px;font-variant-numeric:tabular-nums}.food-table caption{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.food-table th,.food-table td{padding:8px 3px;border-bottom:1px solid #e8e8de;text-align:right}.food-table th:first-child{text-align:left}.food-table thead th{font-size:12px;color:#70816e;font-weight:600}.food-table tbody th{font-weight:600}.food-totals{padding:10px 0}.food-totals>div,.food-balance>div{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:5px 0;font-size:14px}.food-totals>div:last-child{color:#355c40}.food-balance{padding:12px;border-radius:12px;background:#edf4e8}.food-balance>strong{color:#355c40;font-size:15px}.food-balance.food-deficit{background:#fff0e5}.food-deficit>strong{color:#a64324}.food-balance p,.food-note{font-size:12px;line-height:1.6;color:#73806e;margin:6px 0 0}.food-note{padding-bottom:4px}.food-balance [data-food-warning][hidden]{display:none}
.tribe-sheet{display:grid;grid-template-rows:auto minmax(0,1fr);max-height:min(80dvh,720px);padding:17px}
.tribe-sheet header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:12px;border-bottom:1px solid #e8e8de}
.tribe-sheet header small{color:#688468;font-size:12px;font-weight:800}.tribe-sheet h2{margin:2px 0 0;font-size:21px}
.tribe-dialog-close{display:grid;flex:none;width:40px;height:40px;place-items:center;border:0;border-radius:50%;background:#edf1e9;color:#536452;font-size:25px}
.tribe-dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}.tribe-dialog-body h3{margin:18px 2px 8px;font-size:15px;color:#61745f}
.tribe-modal-loading{padding:34px 8px;text-align:center;color:#768371}
.tribe-feed-list{margin:0;padding:0;list-style:none}.tribe-feed-list li{display:grid;grid-template-columns:38px minmax(0,1fr);gap:9px;padding:12px 2px;border-bottom:1px solid #e9e8df}
.tribe-feed-list li>span{display:grid;width:38px;height:38px;place-items:center;border-radius:11px;background:#eaf2e6;font-size:18px}
.tribe-feed-list li p{margin:0;font-size:14px;line-height:1.5}.tribe-feed-list li p b{color:#3c6744}.tribe-feed-list li small{display:block;margin-top:3px;color:#798778;font-size:12px}
.tribe-feed-more{width:100%;min-height:44px;margin:12px 0 2px;border:1px solid #cbd9c5;border-radius:12px;background:#eef5ea;color:#426c47;font-weight:800}
.tribe-guide-row{display:grid;grid-template-columns:35px minmax(0,1fr) 18px;align-items:center;gap:9px;width:100%;padding:11px 8px;margin-bottom:7px;border:1px solid #e1e8dc;border-radius:12px;background:#fff;text-align:left;color:#334637}
.tribe-guide-row.current{background:#edf6ea;border-color:#b9d4b6}.tribe-guide-row>span{font-size:22px}.tribe-guide-row strong{display:block;font-size:14px}.tribe-guide-row small{display:block;margin-top:3px;color:#70806e;font-size:12px;line-height:1.4}.tribe-guide-row>b{color:#758e75;font-size:20px}
.food-alert{border-color:#db977c;background:#fff4ed}
@media(max-width:380px){.tribe-feed-teaser small{display:none}.tribe-dialog{inset:auto 6px 6px;width:calc(100vw - 12px)}.tribe-sheet{padding:14px}}

.topbar .breadcrumb{display:flex;flex:1;min-width:0;align-items:center;gap:8px;white-space:nowrap}
.topbar .breadcrumb a{display:inline-flex;align-items:center;min-height:44px;color:#1769b5;font-size:17px;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.topbar .breadcrumb span{color:#86938a;font-size:19px}
.topbar .breadcrumb strong{flex:none;overflow:hidden;color:#25382e;font-size:18px;text-overflow:ellipsis}
.overview-page{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.overview-scene{position:relative;min-height:132px;padding:12px 15px;border-radius:17px;gap:12px;justify-content:space-between;background-image:linear-gradient(90deg,#142b21e6,#203b2699 58%,#142b2166),url('/img/game/tribe-village.webp')}
.scene-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.scene-heading>small{min-width:0;letter-spacing:.03em;font-size:13px;text-shadow:0 1px 4px #102219}
.scene-village-switch{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex:none;min-height:44px;padding:5px 11px;border:1px solid #ffffff80;border-radius:12px;background:#12291ebd;color:#fff;font-size:13px;font-weight:750;box-shadow:0 2px 8px #10221925}
.scene-village-switch:hover{background:#254c39}.scene-village-switch:focus-visible{outline:3px solid #f7db8d;outline-offset:3px}
.scene-body{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
.overview-scene h1{min-width:0;margin:0;overflow-wrap:anywhere;font-size:24px;line-height:1.3;text-shadow:0 2px 5px #102219}
.overview-scene .scene-project-mark{display:inline-block;align-self:flex-start;margin-top:4px;padding:2px 7px;border-radius:8px;background:#fff9e9dd;color:#2c5137;font-size:12px}
.overview-alert{padding:12px 14px;border:1px solid #d9967c;border-radius:15px;background:#fff3eb;color:#923d21;font-size:15px;font-weight:750;line-height:1.45}
.overview-alert strong,.overview-alert span{display:block}.overview-alert span{font-size:13px}.overview-alert span span{display:inline}
.overview-alert[hidden]{display:none}
.overview-alert button{min-height:36px;margin-top:4px;padding:3px 6px;border:0;background:transparent;color:#1769b5;font-weight:800;text-decoration:underline}
.overview-module{padding:11px;border:1px solid #d7dfd1;border-radius:17px;background:#fff;box-shadow:0 3px 10px #4551390a}
.overview-module-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}
.overview-module h2{margin:0;font-size:18px;color:#263e2e}
.overview-module-head small{color:#667568;font-size:13px;font-weight:700;text-align:right}
.overview-module p{margin:5px 0 0;line-height:1.5}
.overview-link{min-height:44px;padding:3px 0 3px 8px;border:0;background:transparent;color:#1769b5;font-size:14px;font-weight:800}
.overview-page .resource-grid{gap:8px}
.overview-page .resource{min-width:0;padding:9px 10px;border-color:#dbe5d8;background:linear-gradient(145deg,#fff,#f5faf3)}
.overview-page .resource-main{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0}
.overview-page .resource b{display:inline-flex;align-items:center;gap:3px;flex:none;font-size:14px;font-weight:400;white-space:nowrap}
.overview-page .resource strong{flex:none;min-width:0;margin:0;color:#263e2e;font-size:clamp(15px,4vw,16px);font-weight:400;line-height:1.3;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.overview-page .resource small{margin-top:3px;font-size:12px;font-weight:400;white-space:nowrap}
.overview-page .tile-icon{display:inline-block;font-size:13px;line-height:1}
.food-breakdown{margin-top:8px;border-top:1px solid #e6e9e1;padding-top:6px;color:#536b56;font-size:14px}
.food-breakdown summary{cursor:pointer;min-height:44px;line-height:44px;font-weight:750}
.food-breakdown p{font-size:14px}
.military-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.military-card{min-width:0;padding:9px 10px;border:1px solid #dbe5d8;border-radius:12px;background:linear-gradient(145deg,#fff,#f5faf3)}
.military-card-locked{background:#f7f7f3;border-style:dashed}
.military-card-locked b,.military-card-locked strong{color:#667568}
.military-card:only-child{grid-column:1/-1}
.military-card-main{display:flex;justify-content:space-between;align-items:center;gap:4px;min-width:0}
.military-card b{display:inline-flex;align-items:center;gap:3px;flex:none;font-size:14px;font-weight:400;white-space:nowrap}
.military-card strong{flex:none;min-width:0;font-size:clamp(15px,4vw,16px);font-weight:400;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}
.military-card small{display:block;margin-top:3px;overflow:hidden;color:#637565;font-size:12px;font-weight:400;text-overflow:ellipsis;white-space:nowrap}
.military-card .military-card-role{color:#3d6646;font-weight:650}
.overview-note{color:#647365;font-size:14px}
.overview-queue-item{padding:9px 0;border-top:1px solid #e6e9e1}
.overview-queue-item strong{display:block;font-size:15px}
.overview-queue-item small{display:block;margin-top:3px;color:#647365;font-size:13px}
.overview-queue-item .progress{margin-top:7px}
.overview-next .action{margin-top:9px}
.growth-current{display:block;margin:6px 0;font-size:17px;color:#355e3e}.growth-condition,.growth-benefit,.growth-reason{margin:6px 0;font-size:13px;line-height:1.55}.growth-condition{color:#405847}.growth-benefit{color:#708070}.growth-reason{padding:8px 10px;border-radius:9px;background:#f2f6ed;color:#526a50}.growth-roadmap{margin-top:12px;border-top:1px solid #e3e9df}.growth-roadmap>summary{padding:12px 0 4px;cursor:pointer;color:#45684b;font-size:14px;font-weight:750;line-height:1.5}.growth-roadmap>summary small{display:inline-block;margin-left:6px;font-size:11px;color:#788578;font-weight:500}.growth-roadmap h3{font-size:14px;color:#59745c;margin:12px 0 5px}.growth-roadmap ol{margin:0;padding-left:22px}.growth-roadmap li{padding:8px 0;border-bottom:1px solid #e9ede5;color:#6e7e6e;font-size:13px}.growth-roadmap strong{display:block;color:#425c46;line-height:1.5}.growth-roadmap strong small{display:inline-block;margin-left:8px;color:#81907f;font-size:11px;font-weight:500}.growth-roadmap li.complete strong{color:#4c8055}.growth-roadmap p{margin:4px 0 0;font-size:12px;line-height:1.55}.growth-planned{margin-top:9px;padding:9px 10px;border:1px dashed #d5dfd0;border-radius:10px;color:#798676}.growth-roadmap .growth-note{margin-top:12px;color:#788577}
.overview-practice-link{margin:9px 0 0 8px;vertical-align:bottom}
.village-project summary{cursor:pointer;font-weight:800;font-size:16px;color:#345840;list-style:none}.village-project summary::-webkit-details-marker{display:none}.village-project summary:before{content:'▸ ';color:#416b4a}.village-project[open] summary:before{content:'▾ '}.village-project summary small{float:right;font-size:13px;color:#6c806e}.village-project .action{margin-top:10px}.village-project-done{font-weight:800;color:#406d45!important}
.overview-page .event{padding:8px 0;font-size:14px}
.overview-page #tribeFeedTeaser{margin-top:0}
@media(max-width:380px){.overview-page{gap:8px}.overview-module{padding:11px}.overview-page .resource,.military-card{padding:8px}.overview-page .resource b,.military-card b{font-size:13px}.overview-page .resource strong,.military-card strong{font-size:15px}.overview-page .tile-icon{font-size:12px}}
.raid-preview{padding:11px 12px!important;border:1px solid #dbe4d6;border-radius:12px;background:#f7faf5;color:#3d5442!important;font-size:14px;line-height:1.7!important}
.raid-preview.warning{border-color:#e7b9a8;background:#fff5f0}
.raid-blocked{color:#a64324;font-weight:700}
.raid-estimate-title{display:inline-block;margin-top:7px;color:#294f34;font-weight:750}
.raid-preview [data-action="retry-raid-preview"]{min-height:30px;padding:2px 8px;border:1px solid #abc4a9;border-radius:7px;background:#fff;color:#315f3b}
.raid-report-forecast{margin:9px 0;padding:9px 10px;border:1px solid #dce7d7;border-radius:10px;background:#f6faf4;color:#3e5a43;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.raid-report-forecast small{display:block;margin-top:4px;font-size:12px;color:#58755d}
.military-shortcuts{display:flex;gap:8px;margin:2px 0 11px}
.military-shortcuts button{min-height:38px;padding:6px 12px;border:1px solid #cbd9c5;border-radius:10px;background:#eef5ea;color:#385f40;font-size:13px}
#raidDispatch,#raidReports{scroll-margin-top:12px}
.barracks-overview{display:grid;grid-template-columns:minmax(max-content,1.5fr) repeat(2,minmax(0,1fr));gap:7px;margin:10px 0;padding:12px;border:1px solid #d7e2d2;border-radius:16px;background:#edf5e9}
.barracks-overview div{min-width:0;text-align:center}.barracks-overview strong,.barracks-overview span{display:block}.barracks-overview strong{color:#2d5336;font-size:15px;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}.barracks-overview span{margin-top:2px;color:#6a786a;font-size:11px;white-space:nowrap}
@media(max-width:359px){.barracks-overview{padding:10px 8px;gap:5px}.barracks-overview strong{font-size:14px}}
.barracks-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.barracks-unit{min-width:0;padding:11px;border:1px solid #dce5d8;border-radius:15px;background:#fff}.barracks-unit-top{display:flex;align-items:center;gap:7px}.barracks-unit-icon{display:grid;flex:none;width:32px;height:32px;place-items:center;border-radius:9px;background:#eaf2e7}.barracks-unit-top>div{min-width:0;flex:1}.barracks-unit-top strong,.barracks-unit-top small{display:block;overflow-wrap:anywhere}.barracks-unit-top strong{font-size:14px}.barracks-unit-top small{color:#789079;font-size:11px}.barracks-unit-top b{font-size:14px;white-space:nowrap}.barracks-unit p{min-height:32px;margin:7px 0 4px;color:#718171;font-size:12px;line-height:1.35}.barracks-unit button{width:100%;min-height:36px;border:1px solid #bad2b6;border-radius:9px;background:#eff6ec;color:#345e3d;font-size:12px;font-weight:800}
.barracks-training,.barracks-hero{margin:10px 0;padding:12px;border:1px solid #e0e7da;border-radius:13px;background:#fff}.barracks-training strong,.barracks-training small,.barracks-hero strong,.barracks-hero small{display:block}.barracks-training small,.barracks-hero small{margin-top:3px;color:#6d7b6d;font-size:12px}.barracks-hero{display:flex;align-items:center;justify-content:space-between;gap:10px}.barracks-hero button{flex:none;min-height:36px;padding:4px 8px;border:0;background:transparent;color:#1769b5;font-weight:800}
.barracks-intel-link{display:flex;align-items:center;gap:10px;width:100%;min-height:112px;margin:4px 0 18px;padding:15px 13px;border:1px solid #5a7959;border-radius:17px;background:linear-gradient(120deg,#294835,#42664a);color:#fffaf0;text-align:left;box-shadow:0 7px 18px #29483524}.barracks-intel-link.is-urgent{border-color:#a54b35;background:linear-gradient(120deg,#793b2b,#a65b3d)}.barracks-intel-icon{display:grid;flex:none;width:42px;height:48px;place-items:center;border-radius:12px;background:#ffffff18;font-size:26px}.barracks-intel-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px}.barracks-intel-copy>strong{font-size:20px}.barracks-intel-copy>small{color:#e2eadd;font-size:12px;line-height:1.5}.barracks-intel-counts{display:flex;flex-wrap:wrap;gap:5px}.barracks-intel-counts>span{padding:3px 6px;border-radius:6px;background:#ffffff14;color:#f0f3e9;font-size:11px;white-space:nowrap}.barracks-intel-counts b{margin-left:3px;font-size:13px}.barracks-intel-enter{flex:none;white-space:nowrap;color:#f5dfac;font-size:12px;font-weight:800}.barracks-intel-enter b{margin-left:3px;font-size:20px}.barracks-intel-link:focus-visible{outline:3px solid #b48a37;outline-offset:3px}
.bottom-nav button[data-tab="intel"]{position:relative}.bottom-nav .intel-nav-badge{position:absolute;top:0;left:calc(50% + 9px);min-width:18px;padding:1px 4px;border-radius:12px;background:#8f6330;color:#fff;font-size:10px;font-weight:800;line-height:16px}.bottom-nav .intel-nav-badge[hidden]{display:none}.bottom-nav button.is-urgent,.bottom-nav button.is-urgent.active{color:#963e2a;background:#fff0e6}.bottom-nav button.is-urgent .intel-nav-badge{background:#ac442e}
.barracks-recruit-detail{display:flex;min-height:100%;flex-direction:column}.barracks-recruit-detail p{color:#617263;line-height:1.55}.barracks-recruit-detail>.action{position:sticky;bottom:0;z-index:1;width:100%;margin-top:auto;margin-bottom:5px;box-shadow:0 -7px 14px #fffdf8}.barracks-stats{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.barracks-stats span{padding:5px 8px;border-radius:8px;background:#edf4ea;color:#3e6045;font-size:12px}
.recruit-limit{display:block;margin:0 0 8px;color:#477050;font-size:13px;font-weight:700;line-height:1.5}
.barracks-unit .barracks-recruit-cap{margin-top:2px;color:#3d704b;font-size:12px;font-weight:750}
.tribe-dialog.recruit-dialog{inset:max(2.5dvh,env(safe-area-inset-top)) 10px auto;height:min(95dvh,calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)));max-height:none}
.recruit-dialog .tribe-sheet{height:100%;max-height:none}.recruit-dialog .tribe-dialog-body{padding-bottom:max(4px,env(safe-area-inset-bottom))}
@media(max-width:380px){.tribe-dialog.recruit-dialog{inset:max(2.5dvh,env(safe-area-inset-top)) 6px auto;width:calc(100vw - 12px)}}
.tribe-dialog.dispatch-dialog{inset:auto 10px max(2.5dvh,env(safe-area-inset-bottom));height:min(88dvh,690px);max-height:none}
.dispatch-unit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 9px}.dispatch-unit-grid .field{min-width:0;margin:7px 0}.dispatch-unit-grid .field span{min-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dispatch-unit-grid input{width:100%}
.dispatch-presets{margin:9px 0;border:1px solid #dce7d8;border-radius:11px;background:#f7faf5}.dispatch-presets>summary{min-height:44px;padding:11px;color:#365d3f;font-size:13px;font-weight:800;cursor:pointer}.dispatch-presets>summary small{margin-left:5px;color:#6a806d;font-size:12px}.dispatch-presets-body{padding:0 10px 10px}.dispatch-presets-body>p{margin:1px 0 8px;color:#718171;font-size:12px;line-height:1.45}.dispatch-preset-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;border-top:1px solid #e3ece0}.dispatch-preset-row>div:first-child{min-width:0}.dispatch-preset-row strong,.dispatch-preset-row small{display:block}.dispatch-preset-row strong{font-size:13px}.dispatch-preset-row small{margin-top:2px;color:#708171;font-size:11px;line-height:1.35}.dispatch-preset-empty>span{color:#778777;font-size:12px}.dispatch-preset-actions{display:flex;flex:none;gap:4px}.dispatch-preset-row button{min-height:36px;padding:5px 8px;border:1px solid #c5d7c0;border-radius:8px;background:#fff;color:#315b3b;font-size:12px;font-weight:750}.dispatch-preset-actions button:last-child{color:#8c5a4c}.dispatch-presets .dispatch-preset-row button:focus-visible{outline:2px solid #44764f;outline-offset:2px}
@media(max-width:380px){.dispatch-preset-row:not(.dispatch-preset-empty){align-items:flex-start;flex-direction:column}.dispatch-preset-actions{width:100%}.dispatch-preset-actions button{flex:1}}
.dispatch-dialog .tribe-sheet{height:100%;max-height:none}.dispatch-dialog .tribe-dialog-body{display:flex;min-height:0;flex-direction:column;overflow:hidden}
.dispatch-confirm-scroll{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:8px 1px}
.dispatch-target{padding:11px 12px;border:1px solid #dce6d9;border-radius:12px;background:#f6faf4}.dispatch-target strong{font-size:17px}.dispatch-target p{margin:5px 0 0;color:#5c705e;font-size:13px;line-height:1.45}.dispatch-target .dispatch-unknown{color:#985136}
.dispatch-facts{margin:9px 0;padding:0}.dispatch-facts>div{display:grid;grid-template-columns:78px minmax(0,1fr);gap:8px;padding:9px 3px;border-bottom:1px solid #e9ece5;font-size:13px;line-height:1.45}.dispatch-facts dt{color:#6d7d6d}.dispatch-facts dd{min-width:0;margin:0;color:#2e4434;font-weight:700;overflow-wrap:anywhere}.dispatch-facts dd small{display:block;margin-top:2px;color:#758575;font-size:11px;font-weight:400}
.dispatch-estimate{padding:10px 12px;border:1px solid #d5e4d1;border-radius:11px;background:#f2f8ef;color:#365a3e;font-size:13px;line-height:1.45}.dispatch-estimate p{margin:5px 0}.dispatch-estimate small{color:#6b7e6b}
.dispatch-training-example{margin-top:6px;border-top:1px solid #d5e4d1}
.dispatch-training-example summary{min-height:44px;padding:12px 0;cursor:pointer;font-weight:650}
.dispatch-training-example ul{margin:6px 0;padding-left:18px}
.dispatch-risk{margin:9px 2px;color:#90543d;font-size:12px;line-height:1.45}
.dispatch-confirm-actions{display:flex;flex:none;gap:8px;padding:10px 0 max(2px,env(safe-area-inset-bottom));border-top:1px solid #e6e9df;background:#fffdf8}.dispatch-confirm-actions button{flex:1;min-width:0;min-height:44px;border:1px solid #c6d6c1;border-radius:11px;background:#fff;color:#365f3f;font-weight:800}.dispatch-confirm-actions .action{border:0;background:#456f4f;color:#fff}
@media(max-width:380px){.tribe-dialog.dispatch-dialog{inset:auto 6px max(2.5dvh,env(safe-area-inset-bottom));width:calc(100vw - 12px)}}
.intel-operation{margin:9px 0;border:1px solid #dbe5d6;border-radius:14px;background:#fff;scroll-margin-top:12px}.intel-operation>summary{min-height:50px;padding:13px;color:#35593c;font-weight:800;cursor:pointer}.intel-operation[open]>summary{border-bottom:1px solid #e9eee5}.intel-operation>.card,.intel-operation>.section-title{margin:10px}.intel-operation>.card{box-shadow:none}.intel-operation .target-finder{margin:12px 0}
@media(max-width:380px){.barracks-grid{gap:6px}.barracks-unit{padding:9px}.barracks-unit-top{gap:4px}.barracks-unit-icon{width:27px;height:27px}.barracks-unit-top b{font-size:12px}.barracks-intel-link{gap:8px;padding:13px 10px}.barracks-intel-icon{width:32px;font-size:23px}.barracks-intel-counts{gap:4px}.barracks-intel-counts>span{padding:3px 5px}}
.scene-stats{display:flex;flex:none;flex-direction:column;align-items:flex-end;gap:5px}
.scene-coordinate{display:inline-block;padding:4px 8px;border:1px solid #ffffff70;border-radius:999px;background:#12291ebd;color:#fff;font-size:12px;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap;text-shadow:0 1px 3px #112015}
.scene-residents{display:inline-block;appearance:none;cursor:pointer;font-family:inherit;line-height:1.35;padding:3px 8px;border:1px solid #ffffff70;border-radius:999px;background:#12291ebd;color:#fff;font-size:12px;font-weight:750;white-space:nowrap;text-shadow:0 1px 3px #112015}
@media(max-width:380px){.overview-scene{min-height:142px;padding:11px 12px;gap:10px}.scene-body{grid-template-columns:minmax(0,1fr);gap:8px}.scene-stats{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px}.scene-heading>small{font-size:12px}.scene-village-switch{padding:5px 9px}}
.target-finder{margin:12px 0;padding:12px;border:1px solid #d8e5d2;border-radius:13px;background:#f7faf5}
.target-finder>summary{min-height:40px;display:list-item;padding:8px 0;color:#31583a;font-size:14px;font-weight:800;cursor:pointer}
.target-finder .muted{margin:5px 0 9px;font-size:13px;line-height:1.5}
.target-match{margin-top:10px;padding:10px;border:1px solid #d8e5d2;border-radius:10px;background:#fff;overflow-wrap:anywhere}.target-match p{margin:6px 0;font-size:13px;line-height:1.6}
.target-finder-actions,.target-coordinate-fields{display:flex;gap:7px;margin-top:8px}
.target-finder button{min-height:40px;padding:7px 10px;border:1px solid #b9cfb5;border-radius:9px;background:#fff;color:#315d3c;font-size:13px;font-weight:700}
.target-coordinate-fields{align-items:end}
.target-coordinate-fields label{min-width:0;flex:1;color:#526753;font-size:12px}
.target-coordinate-fields input{display:block;width:100%;min-height:40px;margin-top:4px;padding:6px;border:1px solid #cbd9c5;border-radius:9px;background:#fff;font-size:16px}
@media(max-width:380px){.target-coordinate-fields{flex-wrap:wrap}.target-coordinate-fields button{width:100%}}
.tribe-intel-entry{display:flex;align-items:center;gap:11px;width:100%;min-height:62px;padding:10px 13px;border:1px solid #bad0b5;border-radius:15px;background:linear-gradient(110deg,#e9f3e6,#f8fbf4);color:#2b4b34;text-align:left;box-shadow:0 4px 12px #45513912}
.tribe-intel-entry:focus-visible,.intel-back:focus-visible,.intel-feed-link:focus-visible,.intel-history>summary:focus-visible,.intel-public>summary:focus-visible{outline:3px solid #41744d;outline-offset:2px}
.tribe-intel-entry.is-urgent{border-color:#dc9a7d;background:linear-gradient(110deg,#fff0e7,#fffaf4);color:#893e29}
.tribe-intel-entry-icon{display:grid;flex:none;width:39px;height:39px;place-items:center;border-radius:12px;background:#d6e9d0;font-size:21px}
.tribe-intel-entry.is-urgent .tribe-intel-entry-icon{background:#f8d8c5}
.tribe-intel-entry-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
.tribe-intel-entry-copy strong{font-size:16px}.tribe-intel-entry-copy small{display:-webkit-box;overflow:hidden;color:#607665;font-size:12px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}.tribe-intel-entry.is-urgent .tribe-intel-entry-copy small{color:#90573c}
.tribe-intel-entry-arrow{font-size:26px;line-height:1;color:#6b8c6a}
.intel-back{min-height:40px;padding:5px 8px;border:0;background:transparent;color:#1769b5;font-size:14px;font-weight:800}
.intel-intro{margin:0 2px 15px;color:#617463;font-size:14px;line-height:1.5}
.intel-urgent{padding:14px;border:1px solid #d9967c;border-radius:15px;background:#fff3eb;color:#8f3d28}
.intel-urgent strong{font-size:17px}.intel-urgent p{margin:7px 0 12px;line-height:1.5}.intel-urgent .action{width:100%}
.intel-targets>p{margin-bottom:12px}.intel-target{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:54px;padding:10px 0;border:0;border-top:1px solid #e7ebdf;background:transparent;color:#25382e;text-align:left}.intel-target span:first-child{min-width:0}.intel-target strong,.intel-target small{display:block}.intel-target strong{font-size:15px}.intel-target small{margin-top:3px;color:#687969;font-size:12px;line-height:1.4}.intel-targets>.action{width:100%;margin-top:12px}
.intel-feed-link{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;margin-top:14px;padding:9px 13px;border:1px solid #dce5d7;border-radius:12px;background:#f0f6ed;color:#355940;text-align:left;font-weight:750}
.intel-calm{margin:3px 2px 12px;color:#788677;font-size:14px}.intel-history,.intel-public{margin:10px 0;border:1px solid #dce5d7;border-radius:14px;background:#fff}.intel-history>summary,.intel-public>summary{min-height:48px;padding:12px 14px;color:#355940;font-weight:800;cursor:pointer}.intel-history>summary small,.intel-public>summary small{margin-left:7px;color:#788677;font-size:12px;font-weight:650}.intel-history-items,.intel-public>#tribeMilitaryFeed{padding:0 10px 10px}.intel-history-items>.card{margin:9px 0}.intel-public>.intel-feed-link{width:calc(100% - 20px);margin:0 10px 10px}
.intel-linked-focus{outline:3px solid #cf9f48;outline-offset:3px;scroll-margin:80px}
.intel-military-list{margin:0;padding:0;list-style:none;border:1px solid #dfe7da;border-radius:15px;background:#fff;overflow:hidden}
.intel-military-list li{display:flex;align-items:flex-start;gap:10px;padding:12px;border-bottom:1px solid #e9eee5;color:#334b38;font-size:14px;line-height:1.45}.intel-military-list li:last-child{border-bottom:0}
.intel-military-icon{display:grid;flex:none;width:32px;height:32px;place-items:center;border-radius:9px;background:#e8f0e5;font-size:17px}.intel-military-list strong{color:#315d3c}.intel-military-list small{display:block;margin-top:4px;color:#738272;font-size:12px}
.overview-feed-links{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%;gap:4px;margin:-4px 0}.overview-feed-links>div{min-width:0;max-width:100%}.overview-feed-links .tribe-feed-teaser{min-height:34px;padding:4px 9px;gap:7px;border-radius:10px}.overview-feed-links .tribe-feed-teaser>span{width:24px;height:24px;border-radius:7px;font-size:15px}.overview-feed-links .tribe-feed-teaser i{line-height:1}.tribe-feed-teaser .feed-channel{flex:none;font-size:12px;font-style:normal;font-weight:800;color:#4b6b48}.military-feed-teaser{border-color:#deceb1;background:#fff8e9;color:#5c4a31}.military-feed-teaser>span{background:#f0e1c2}.military-feed-teaser .feed-channel{color:#89602e}.military-feed-teaser i{color:#967747}
#aidSection{scroll-margin-top:12px}
.intel-defense{margin:12px 0 18px;border:1px solid #d9a18c;border-radius:18px;background:#fffaf6;overflow:hidden;box-shadow:0 8px 25px #8b432116}
.intel-defense-head{padding:17px;background:linear-gradient(120deg,#fff0e7,#fffaf6);color:#883d28}.intel-defense-head>span{font-size:13px;font-weight:800}.intel-defense-head h3{margin:5px 0;font-size:20px}.intel-defense-head p{margin:0;color:#815744;font-size:13px;line-height:1.5}
.intel-defense-step{padding:15px;border-top:1px solid #eedfd6}.intel-defense-step>p{margin:6px 0;color:#5c6d5e;font-size:13px;line-height:1.5}.intel-defense-step>.action{width:100%;margin-top:9px}
.intel-step-title{display:flex;align-items:center;gap:9px}.intel-step-title b{display:grid;flex:none;width:25px;height:25px;place-items:center;border-radius:50%;background:#b75a3e;color:#fff;font-size:13px}.intel-step-title h3{margin:0;font-size:16px}
.intel-guard-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:11px 0;padding:0;list-style:none}.intel-guard-list li{display:flex;justify-content:space-between;gap:5px;padding:8px 9px;border:1px solid #e2e8dc;border-radius:9px;background:#fff;font-size:13px}.intel-guard-list strong{font-variant-numeric:tabular-nums}
.intel-defense-raid{margin:11px 0 0;padding:12px;border:1px solid #e3dfd3;border-radius:12px;background:#fff}.intel-defense-raid h4{margin:0;font-size:14px}.intel-defense-raid p{margin:7px 0;color:#617062;font-size:13px;line-height:1.5}.intel-defense-raid .field{margin:11px 0 7px}.intel-defense-raid .action{width:100%}.intel-defense-raid .intel-aid-state{padding:7px 9px;border-radius:8px;background:#edf5ea;color:#356244}
.raid-distance{display:block;margin-top:3px;color:#7c866f;font-size:12px}
.battle-watch{display:inline-flex;align-items:center;min-height:38px;margin:8px 0 0;padding:6px 10px;border:1px solid #b9d0ba;border-radius:10px;background:#eef5ea;color:#315c3c;font-size:13px;font-weight:800}
.battle-replay{padding:4px 0 8px}.battle-note{margin:0 0 12px;color:#667b67;font-size:13px;line-height:1.5}
.battle-own-aid{margin:0 0 10px;padding:8px 10px;border-radius:10px;background:#eef5ea;color:#365c3d;font-size:12px;line-height:1.5}
.battle-live-status{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;padding:8px 10px;border-radius:10px;background:#fff0e7;color:#97442d;font-size:13px;font-weight:800}.battle-live-status small{font-size:12px;font-weight:650}
.battle-arena{padding:16px;border:1px solid #e5dfd4;border-radius:16px;background:linear-gradient(150deg,#fff8f3,#f7faff)}
.battle-arena-head{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:7px}.battle-arena-head span{min-width:0}.battle-arena-head span:last-child{text-align:right}.battle-arena-head small,.battle-arena-head strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.battle-arena-head small{color:#788577;font-size:11px}.battle-arena-head strong{font-size:14px}.battle-arena-head span:first-child strong{color:#a74834}.battle-arena-head span:last-child strong{color:#3f6ea2}.battle-arena-head b{color:#334a39;font-size:13px;white-space:nowrap}
.battle-clash-meter{display:flex;width:100%;height:20px;margin-top:14px;border-radius:20px;background:#eee;overflow:hidden}.battle-clash-meter i{display:block;height:100%;transition:width .85s ease}.battle-clash-meter .attacker{background:linear-gradient(90deg,#ad4037,#d9714b)}.battle-clash-meter .defender{background:linear-gradient(90deg,#6f9bc2,#3973a9)}
.battle-meter-labels{display:flex;justify-content:space-between;gap:8px;margin-top:5px;color:#768477;font-size:11px}
.battle-commentary{margin-top:12px;padding:12px;border:1px solid #dce5d8;border-radius:14px;background:#fff}.battle-commentary h3{margin:0 0 8px;font-size:15px}.battle-round-hint{display:block;margin:0 0 6px;color:#708171;font-size:11px}.battle-commentary ol{max-height:230px;margin:0;padding:0;overflow:auto;list-style:none}.battle-commentary li{padding:9px 0;border-top:1px solid #e9eee6}.battle-commentary li.current{color:#2c573a}.battle-commentary li.battle-summary{color:#834a25}.battle-commentary li b{font-size:13px}.battle-commentary li p,.battle-commentary>p{margin:4px 0 0;color:#546b57;font-size:13px;line-height:1.55}
.battle-controls{display:flex;gap:7px;margin-top:13px}.battle-controls button{flex:1;min-height:44px;padding:6px;border:1px solid #b9cfb5;border-radius:11px;background:#fff;color:#315b3a;font-size:13px;font-weight:800}.battle-controls [data-battle-skip]{background:#eef5ea}
.tribe-dialog.battle-dialog{inset:max(2.5dvh,env(safe-area-inset-top)) 10px auto;height:min(95dvh,calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)));max-height:none}
.battle-dialog .tribe-sheet{height:100%;max-height:none}.battle-dialog .tribe-dialog-body{overflow:hidden}
.battle-dialog .battle-replay{display:flex;height:100%;min-height:0;flex-direction:column}.battle-dialog .battle-arena,.battle-dialog .battle-note,.battle-dialog .battle-own-aid,.battle-dialog .battle-live-status,.battle-dialog .battle-controls{flex:none}
.battle-dialog .battle-commentary{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden}.battle-dialog .battle-commentary h3,.battle-dialog .battle-round-hint{flex:none}.battle-dialog .battle-commentary ol{min-height:0;max-height:none;flex:1;overflow-y:auto;overscroll-behavior:contain}
@media(max-width:380px){.tribe-dialog.battle-dialog{inset:max(2.5dvh,env(safe-area-inset-top)) 6px auto;width:calc(100vw - 12px)}}
@media(prefers-reduced-motion:reduce){.battle-clash-meter i{transition:none}}
.raid-report-details{margin-top:8px;padding-top:4px;border-top:1px solid #e8ece4}.raid-report-details summary{min-height:40px;padding:9px 0;color:#376246;font-size:13px;font-weight:750;cursor:pointer}.raid-report-details p{margin:7px 0;font-size:13px;line-height:1.5}
.raid-recovery{margin-top:10px;border:1px solid #d9e6d4;border-radius:12px;background:#f6faf4}.raid-recovery>summary{min-height:44px;padding:11px 12px;color:#315c3b;font-size:14px;font-weight:800;cursor:pointer}.raid-recovery>summary small{margin-left:6px;color:#68816a;font-size:12px}.raid-recovery-body{padding:0 12px 12px}.raid-recovery-body p{margin:7px 0;color:#536c57;font-size:12px;line-height:1.5}.raid-recovery-body ul{margin:10px 0;padding:0;list-style:none}.raid-recovery-body li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid #e1ebdd}.raid-recovery-body li span{min-width:0}.raid-recovery-body li strong,.raid-recovery-body li small{display:block}.raid-recovery-body li strong{font-size:13px}.raid-recovery-body li small{margin-top:3px;color:#6d7e6e;font-size:12px;line-height:1.4}.raid-recovery-body li button{flex:none;min-height:40px;padding:7px 9px;border:1px solid #bfd2bc;border-radius:9px;background:#fff;color:#315c3b;font-size:12px;font-weight:800}
.raid-timeline{display:grid;gap:4px;margin:12px 0 8px;padding:0;list-style:none}.raid-timeline.four{grid-template-columns:repeat(4,minmax(0,1fr))}.raid-timeline.three{grid-template-columns:repeat(3,minmax(0,1fr))}.raid-timeline li{min-width:0;padding:7px 5px;border-top:3px solid #dce5da;background:#f7f9f5;text-align:center}.raid-timeline li.done{border-color:#63946b}.raid-timeline li.next{border-color:#c18b4e;background:#fff7eb}.raid-timeline b,.raid-timeline small{display:block;line-height:1.35}.raid-timeline b{font-size:12px;color:#365340}.raid-timeline small{margin-top:3px;color:#657569;font-size:11px;overflow-wrap:anywhere}

.tribe-chronicle{padding:0}.tribe-chronicle>summary{min-height:48px;padding:13px 15px;color:#36563c;font-weight:800;cursor:pointer}.tribe-chronicle>summary small{float:right;color:#718475;font-size:12px;font-weight:600}.tribe-chronicle-body{padding:0 15px 15px}.tribe-chronicle-body p{margin:4px 0 9px;font-size:13px;line-height:1.45}.tribe-chronicle-next{color:#667a69}.tribe-chronicle-highlight{color:#315d3b;font-weight:700}.tribe-chronicle ol{margin:10px 0;padding:0;list-style:none}.tribe-chronicle li{display:flex;flex-direction:column;gap:2px;padding:9px 0;border-top:1px solid #e5ebdf;font-size:13px}.tribe-chronicle li span{color:#5d715f;line-height:1.4}.tribe-chronicle li.pending{opacity:.7}.tribe-chronicle-body>small{color:#708373;font-size:11px;line-height:1.4}

.village-panel{padding-bottom:0}.village-panel .card{margin-bottom:8px}.village-panel summary{cursor:pointer;font-weight:700}.village-panel summary small{font-weight:400;margin-left:8px}.village-options{display:grid;gap:8px;margin-top:14px}.village-panel .muted{font-size:14px}

.transport-module summary{cursor:pointer;font-weight:700}.transport-module summary small{font-weight:400;margin-left:8px}.transport-cargo-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.transport-record{border-top:1px solid #dce5d8;padding-top:14px;margin-top:16px}.transport-record .action{margin-top:8px}

.village-current{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;color:inherit;background:white;cursor:pointer;font:inherit}.village-current strong{min-width:0;overflow-wrap:anywhere}.village-current span{flex-shrink:0;font-size:13px}.village-picker-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.village-picker-item{display:flex;flex-direction:column;gap:7px;padding:14px 12px;border:1px solid #dce5d8;border-radius:16px;background:#f6f9f3;text-align:left;color:#304b35;cursor:pointer;min-width:0}.village-picker-item strong{overflow-wrap:anywhere}.village-picker-item span,.village-picker-item small{font-size:12px}.village-picker-item.is-current{border:2px solid #608b5d;background:#e6f0df;opacity:1}.troop-module summary{cursor:pointer;font-weight:700}.troop-module summary small{font-weight:400;margin-left:6px}
.village-overview-list{display:grid;gap:12px;margin-top:12px}.village-overview-row{padding:14px;border:1px solid #dce5d8;border-radius:14px;background:#f6f9f3;overflow-wrap:anywhere}.village-overview-row p{font-size:13px;line-height:1.65;margin:8px 0}.village-overview-row small{color:#73806d}#villageOverview>summary{font-weight:700;cursor:pointer}#villageOverview>summary small{font-weight:400;margin-left:8px}

.operation-cargo{padding-left:20px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.operation-links{display:flex;flex-wrap:wrap;gap:8px}
.operation-forecast{border-left:3px solid #bd9861;padding-left:10px}

.village-management-controls{padding:12px;border:1px solid #ded6bd;border-radius:12px;background:#fffdf6}
.village-filter-check{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:14px}
.village-filter-check input{width:18px;height:18px;flex-shrink:0}
.village-purpose-field{margin:12px 0;font-size:13px}
.village-purpose-field select,.village-management-controls select{width:100%;min-width:0}

/* Compact layout with normal typography; shared navigation keeps one size. */
.overview-page,.build-page{font-size:16px;line-height:1.5}
.overview-page .scene-heading>small,.overview-page .scene-village-switch{font-size:13px}
.overview-page .scene-stats span{font-size:12px}
.overview-page .overview-module h2{font-size:18px}.build-page h2{font-size:19px}
.overview-page .overview-module-head small,.build-page .section-title small{font-size:13px}
.overview-page .overview-module-head{align-items:center;flex-wrap:wrap}
.overview-page .overview-module{padding:13px}
.overview-page .overview-link,.overview-page .action,.build-page .action{min-height:44px;font-size:14px}
.overview-page .overview-alert{font-size:15px}
.overview-page .overview-alert span,.overview-page .overview-alert button{font-size:13px}
.overview-page .overview-alert button{min-height:44px}
.overview-page .resource b,.overview-page .military-card b{font-size:14px}
.overview-page .resource strong,.overview-page .military-card strong{font-size:16px;font-weight:650}
.overview-page .tile-icon{font-size:13px}
.overview-page .resource small,.overview-page .military-card small{font-size:12px;white-space:normal;overflow:visible}
.overview-page .food-breakdown,.overview-page .food-breakdown p,.overview-page .overview-note{font-size:14px}.overview-page .overview-queue-item small{font-size:13px}
.overview-page .overview-queue-item strong{font-size:15px}
.overview-page summary{min-height:44px;padding:9px 0;cursor:pointer;font-size:14px;font-weight:750;line-height:1.5}
.overview-page .food-breakdown summary{line-height:1.55}
.overview-page summary small{font-size:12px;font-weight:400}
.overview-page .overview-army-counts{font-size:14px}
.overview-page .overview-army{border-top:1px solid #e6e9e1;margin-top:12px;padding-top:12px;min-width:0}
.overview-page .overview-army-links{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:8px}
.overview-page .tribe-feed-teaser{min-height:34px}
.overview-page .overview-army-links .overview-link{padding-left:0}
.overview-records-body{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:12px;padding-top:8px}
.overview-records-body>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
.overview-page .overview-records .overview-module{box-shadow:none;background:#f9fbf7}
.overview-bottom{display:grid;gap:4px;margin:-4px 0}.overview-page .overview-bottom>.overview-module{padding:0 10px;border-radius:10px;box-shadow:none}.overview-bottom>.overview-module>summary,.overview-bottom>.overview-module>details>summary{min-height:32px;padding:4px 0;line-height:24px;font-size:14px}.overview-bottom>.overview-module>details[open]{padding-bottom:10px}.overview-bottom>.overview-records[open]{padding-bottom:10px}.overview-bottom .overview-task-panel>.overview-module-head{min-height:32px;margin:0;flex-wrap:nowrap;gap:8px}.overview-bottom .overview-task-panel h2{font-size:14px;white-space:nowrap}.overview-bottom .overview-task-panel .task-empty-note{flex:1;color:#788577;font-size:12px}.overview-bottom .overview-task-panel .overview-module-head>small{font-size:12px;white-space:nowrap}.overview-bottom .overview-task-panel .overview-queue-item{padding:6px 0}.overview-bottom .overview-records>summary .records-new{margin-left:7px;padding:2px 6px;border-radius:6px;background:#eef4e9;color:#527146;font-size:11px}.overview-bottom .overview-records-body{gap:8px;padding-top:6px}.overview-bottom .overview-records-body>.overview-module{padding:0 10px;border-radius:9px}.overview-bottom #returnSummary>summary{min-height:32px;padding:4px 0;font-size:14px}
.overview-page .event{font-size:14px}.overview-page .muted,.overview-page .growth-condition,.overview-page .growth-benefit,.overview-page .growth-reason{font-size:13px}
.overview-page .tribe-feed-teaser strong{font-size:13px}
.overview-page .tribe-feed-teaser small{font-size:11px}
.overview-page #foodSustain.warning{border-left:3px solid #a64324;padding:8px 10px;background:#fff3eb}
.overview-page button:focus-visible,.overview-page summary:focus-visible,.build-page button:focus-visible,.build-page summary:focus-visible{outline:3px solid #2c6c9e;outline-offset:3px}
.build-page .build-card{padding:14px;margin:10px 0;overflow-wrap:anywhere}
.build-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.build-card-heading h3{margin:0;font-size:17px}
.build-card-heading>span{flex:none;font-size:13px;color:#526a56}
.build-page .build-benefit{font-size:14px;margin:4px 0 9px}
.build-production{overflow-wrap:anywhere}
.build-production span{display:inline-block}
.build-production small{display:block;margin-top:5px;font-size:12px;color:#637565}
.build-page .cost{font-size:14px;line-height:1.7;color:#3e5743}
.build-page .cost b{font-weight:650;margin-right:5px}
.build-page .cost span{display:inline-block}
.build-card-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin-top:8px}
.build-card-footer p{font-size:13px}
.build-card-footer .action{flex:none;padding:9px 14px}
.build-page .build-reason{margin-top:8px;padding-top:7px;border-top:1px solid #e6e9e1;font-size:13px;color:#536b56}
.build-page .build-group-title{margin:20px 2px 8px;font-size:18px}
.build-page .job p,.build-page .muted{font-size:13px}.build-page .village-project summary{font-size:14px}
.build-page .job strong{font-size:16px}
.build-page .village-project summary{min-height:44px;display:block;padding:9px 0}
@media(max-width:380px){
 .overview-page .resource-main,.overview-page .military-card-main{flex-wrap:wrap;gap:2px 8px}
 .overview-page .resource strong{width:100%;text-align:left}
 .overview-page .resource,.overview-page .military-card{padding:10px}
 .overview-page .scene-heading>small,.overview-page .scene-village-switch{font-size:13px}
}

/* 军情：主操作前置，规则随手展开。 */
.intel-page>.section-title:first-child{margin-top:0;margin-bottom:8px}.intel-actions{display:flex;gap:6px;margin:8px 0}.intel-actions .action{margin:0;padding:10px 12px;min-height:42px;white-space:nowrap}.intel-actions .action:first-child{flex:1}.intel-page>.intel-calm{padding:6px 2px;margin:0;color:#788677}.intel-page>.section-title{margin:12px 0 8px}.intel-page .intel-operation{margin:6px 0}.intel-page .intel-operation>summary{min-height:38px;padding:8px 10px}.intel-page #drillSection>summary{display:flex;align-items:center;gap:8px}.intel-page #drillSection>summary:before{content:'▸'}.intel-page #drillSection[open]>summary:before{content:'▾'}.intel-page #drillSection>summary::-webkit-details-marker{display:none}.intel-rules-link{margin-left:auto;padding:4px 2px;border:0;background:none;color:#176bbb;font:inherit;font-size:14px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.combat-rules[hidden]{display:none}.dispatch-form>.field{margin-top:10px}.dispatch-form>.action{width:100%}.intel-page .intel-history>summary,.intel-page .intel-public>summary{min-height:38px;padding:8px 10px}

/* Public matchups remain contained on narrow screens. */
.military-match-teaser{display:flex;align-items:center;gap:9px;width:100%;max-width:100%;min-width:0;overflow:hidden;border:1px solid #d9c39e;border-radius:12px;padding:9px 10px;background:linear-gradient(110deg,#fff5df,#fffaf0);color:#554029;text-align:left}.match-icon{flex:none;font-size:25px}.match-copy{flex:1;min-width:0}.match-copy>strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px}.match-copy i,.battle-march h3 i{font-size:11px;font-style:normal;color:#a46a37;margin:0 4px}.match-caption{display:flex;justify-content:space-between;gap:5px;align-items:center;margin-top:3px}.match-caption b{font-size:11px;color:#8c6534}.match-caption small{font-size:11px;color:#827a67}.match-caption .is-live{color:#ad422b}.match-caption .is-live:before{content:'●';margin-right:4px}.match-progress{display:block;height:4px;overflow:hidden;border-radius:5px;background:#e7dfcf;margin-top:6px}.match-progress>i{display:block;height:100%;width:0;background:#aa773b;border-radius:5px;transition:width 1s linear}.battle-march{padding:22px 15px;border-radius:15px;border:1px solid #dfccb0;background:linear-gradient(135deg,#fff4da,#f4f8f0);text-align:center}.battle-march>small{color:#8b6635}.battle-march h3{font-size:21px;overflow-wrap:anywhere;margin:15px 0}.battle-march>b{display:inline-block;background:#e6ecdf;padding:5px 12px;border-radius:20px;color:#46613d}.battle-march .match-progress{margin:15px 0}.battle-privacy{font-size:12px;color:#788577;line-height:1.6}.battle-watch-banner{background:#4b3d2b;color:#fff1d3;padding:8px 12px;border-radius:9px;font-size:13px;margin-bottom:10px}.battle-event-heading{display:flex;gap:9px;align-items:baseline;flex-wrap:wrap}.battle-event-heading time{font-size:11px;font-variant-numeric:tabular-nums;color:#8a7c65}.battle-commentary li.current{border-left:3px solid #b27b39;background:#fff5e3;animation:tribe-battle-arrival .35s ease-out}.battle-commentary li p{overflow-wrap:anywhere}@keyframes tribe-battle-arrival{from{opacity:.3;transform:translateY(4px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.battle-commentary li.current{animation:none}.match-progress>i{transition:none}}
.dispatch-general-fit{margin:12px 0;padding:12px;border:1px solid #d6dec8;border-radius:9px;background:#eff3e7;color:#4e6545;font-size:12px}.dispatch-general-fit p{margin:6px 0}.dispatch-general-fit small{display:block;color:#7c886f;line-height:1.7}
.overview-general-summary{padding:5px 0 10px}.overview-general-summary>div{display:flex;flex-wrap:wrap;gap:7px 15px;margin:7px 0}.overview-general-summary>div a{color:#4d6c53;text-decoration:none;font-size:13px;max-width:100%;overflow-wrap:anywhere}.overview-general-summary>.overview-link{font-size:13px;text-decoration:none}

/* Military reports: compact numeric comparisons on phones. */
.intel-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0 6px}.intel-counts>span{display:flex;justify-content:space-between;gap:4px;align-items:center;padding:9px 10px;border:1px solid #dce5d7;border-radius:10px;background:#f0f5ec;color:#61735e;font-size:12px}.intel-counts b{font-size:17px;color:#355940;font-variant-numeric:tabular-nums}.intel-counts .is-urgent{background:#fff0e7;border-color:#e2b499;color:#943f2c}.intel-counts .is-urgent b{color:#943f2c}
.report-card{min-width:0;border-left-width:3px}.report-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.report-head>strong{min-width:0;overflow-wrap:anywhere;font-size:15px}.report-head .pill{flex:none;padding:3px 8px;font-size:11px}.report-card>strong{font-size:15px;overflow-wrap:anywhere}.report-card>strong .pill{font-size:11px;padding:3px 8px}.report-result{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:11px 0 8px;padding:10px;border-radius:10px;background:#edf4e8;color:#345d3d}.report-result strong{font-size:16px}.report-result small{flex:none;font-size:12px}.report-result.is-loss{background:#fbefe8;color:#97432e}.report-result.is-neutral{background:#f2f0e5;color:#73623f}.report-stat{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:8px 0;color:#657461;font-size:12px}.report-stat b{color:#3d4f3d;font-size:15px;font-variant-numeric:tabular-nums}
.report-troops{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}.report-troops caption{text-align:left;padding:7px 0;color:#74816d;font-size:11px}.report-troops th,.report-troops td{padding:7px 3px;text-align:right;border-bottom:1px solid #e7ecdf;overflow-wrap:anywhere;font-weight:500}.report-troops th[scope="row"],.report-troops th[rowspan]{width:24%;text-align:left}.report-troops thead th{background:#f5f7f0;color:#66755f;font-size:11px}.report-troops thead tr:first-child th:not(:first-child){text-align:center}.report-troops tbody th{color:#42563e;font-weight:650}.report-troops td:nth-child(3),.report-troops td:nth-child(5){color:#975c3b}.report-resources h4{margin:12px 0 7px;font-size:12px;color:#687760}.report-resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0}.report-resource-grid>div{display:flex;justify-content:space-between;gap:6px;min-width:0;padding:8px 9px;border-radius:8px;background:#f6f5ed}.report-resource-grid dt{color:#74806a;font-size:12px}.report-resource-grid dd{margin:0;color:#465440;font-size:14px;font-weight:750;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.report-card .report-note{margin:8px 0;color:#74816d;font-size:12px;line-height:1.5}.report-simulation-note{padding:7px 9px;border-radius:8px;background:#f2f5ed}.report-config{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0}.report-config>div{padding:7px;border-radius:8px;background:#f4f6ef}.report-config dt{font-size:11px;color:#74816d}.report-config dd{margin:4px 0 0;font-size:13px;color:#43593e}.report-card .raid-report-details{overflow-wrap:anywhere}.report-card .raid-report-details>summary{min-height:44px}.report-card>p:empty{display:none}.report-card .battle-watch{min-height:44px}.report-card details>summary:focus-visible{outline:2px solid #41744d;outline-offset:2px}
@media(max-width:380px){.intel-actions .action{padding:10px 8px;font-size:13px}.intel-counts>span{padding:8px 7px;font-size:11px}.report-result{padding:9px 8px}.report-result strong{font-size:14px}.report-result small{font-size:11px}.report-troops th,.report-troops td{padding:7px 2px}.report-head>strong{font-size:14px}}
