/* Territory chapter: restrained board-game accents, isolated from the accepted Kabinet layer. */
.territory-room {--territory-line:rgba(46,53,45,.18);--territory-paper:#fff8e8;--territory-green:#264e44;}
.territory-room .panel {margin-bottom:18px;}
.territory-intro {background:linear-gradient(115deg,#f5e2b9,#eee5d0);color:#29392f;}
.territory-stats {display:flex;gap:12px;flex-wrap:wrap;margin:18px 0;}
.territory-stats>span {padding:10px 14px;background:rgba(255,255,255,.56);border:1px solid var(--territory-line);border-radius:12px;min-width:130px;}
.territory-stats b {display:block;font-size:1.3rem;margin-top:4px;}
.territory-map {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0;}
.territory-district {display:flex;flex-direction:column;gap:6px;text-align:left;color:#263a31;background:var(--territory-paper);border:2px solid var(--territory-line);padding:15px;border-radius:15px;cursor:pointer;transition:transform .15s,border-color .15s;min-width:0;}
.territory-district:nth-child(3n+2) {background:#e8ece0;}
.territory-district:nth-child(3n) {background:#eee4ef;}
.territory-district:hover {transform:translateY(-2px);}
.territory-district.is-selected {border-color:var(--territory-green);box-shadow:0 0 0 2px #fff inset;}
.territory-district:focus-visible,.territory-room button:focus-visible {outline:3px solid #895b25;outline-offset:3px;}
.territory-icon {font-size:1.7rem;}
.territory-district strong {font-size:1.12rem;}
.territory-district>span:not(.territory-icon) {font-size:.85rem;line-height:1.45;}
.territory-service {margin-top:auto;padding-top:5px;}
.territory-feedback {border-top:1px solid var(--territory-line);padding-top:7px;}
.territory-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0;}
.territory-actions button {display:flex;flex-direction:column;gap:7px;text-align:left;padding:16px;white-space:normal;line-height:1.4;}
.territory-actions button strong {font-size:1rem;}
.territory-actions button span {font-size:.9rem;}
.territory-actions button:disabled {opacity:.52;cursor:not-allowed;}
.territory-weekend {border-top:1px solid var(--territory-line);padding-top:10px;}
.territory-weekend small {display:block;margin-top:10px;}
.territory-notice {padding:14px 18px;background:#e5ecd9;border-left:4px solid #476d4d;border-radius:10px;color:#243e2d;}
.territory-checks,.territory-mandates {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.territory-checks p,.territory-mandates p {display:flex;flex-direction:column;gap:5px;background:#f8f1e4;padding:14px;margin:0;border:1px solid var(--territory-line);border-radius:10px;}
.territory-mandates b {font-size:1.3rem;color:var(--territory-green);}
.territory-result {margin-bottom:16px;}
.territory-room label {display:block;font-weight:700;margin:14px 0 7px;}
.territory-room input,.territory-room select {display:block;width:min(100%,420px);padding:12px;border:1px solid var(--territory-line);border-radius:9px;background:#fffdf6;color:#243a2d;font:inherit;}
.territory-room details>summary {cursor:pointer;font-weight:700;line-height:1.5;}
.territory-room details>details {margin-top:15px;}
.territory-election-invite {background:#eae3ee;padding:16px;border-radius:12px;}
.territory-campaign {border-top:5px solid #9582a9;}
.territory-log {border-bottom:1px solid var(--territory-line);padding:5px 0 12px;}
.territory-trends {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.territory-trends div {padding:10px;background:#f6f0e4;border-radius:10px;}
.territory-trends p {font-size:.85rem;line-height:1.6;}
.territory-key {display:block;font-size:.8rem;overflow-wrap:anywhere;line-height:1.7;background:#f5f0e4;padding:10px;border-radius:8px;}
.territory-confirm {padding:14px;margin-top:14px;background:#fff0ca;border:1px solid #c79d47;border-radius:12px;}
.territory-confirm button {margin:5px 8px 5px 0;}
@media(max-width:1050px){.territory-map{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:620px){.territory-actions,.territory-checks,.territory-mandates,.territory-trends{grid-template-columns:1fr;}.territory-map{gap:8px;}.territory-district{padding:11px;}.territory-stats{gap:8px;}.territory-stats>span{min-width:0;flex:1 1 42%;padding:10px;}.territory-room .page-title{align-items:flex-start;}.territory-weekend .primary{width:100%;white-space:normal;}}
@media(prefers-reduced-motion:reduce){.territory-district{transition:none;}.territory-district:hover{transform:none;}}
