/* The council follows the supplied white-paper reference; game artwork is unchanged. */
#diplomacyDialog.council-window{--council-ink:#3e4d57;--council-muted:#64707a;--council-line:#dde0dd;--council-sage:#537f70;--council-blue:#7898ad;width:min(1480px,calc(100% - 64px));max-width:none;max-height:calc(100dvh - 44px);margin:auto;padding:22px 32px 18px;border:1px solid #d7dbd6;border-radius:12px;background:radial-gradient(ellipse at 50% 20%,#fffefa66,transparent 70%),#faf9f6;box-shadow:0 4px 18px #3540392b;color:var(--council-ink);font-family:Inter,Arial,sans-serif;font-size:14px;font-weight:400;line-height:1.5;overflow:auto;scrollbar-width:thin;scrollbar-color:#c9ceca transparent;font-synthesis:none}
#diplomacyDialog::backdrop{background:linear-gradient(#f5f3ece8,#f5f3ece8),url("assets/world-map.webp?v=red-pups-1") center/cover;backdrop-filter:blur(2px) saturate(.55)}
.council-window button,.council-window input,.council-window select,.council-window summary{font-family:Inter,Arial,sans-serif;font-weight:500}
.council-window h2,.council-window h3,.council-window .council-ruler-interests h4{font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;color:var(--council-ink)}
.council-window .council-heading{align-items:flex-start;gap:20px;margin:0;padding:0 0 12px;border-bottom:1px solid var(--council-line)}
.council-heading .council-eyebrow{display:flex;align-items:center;gap:8px;color:#8a9490;font:600 12px/1.5 Inter,Arial,sans-serif;letter-spacing:1.6px}
.council-eyebrow svg{width:19px;height:19px;color:#9ba88f;flex-shrink:0}
.council-heading h2{margin:0;font-size:46px;line-height:1.05;letter-spacing:0}
.council-heading p{margin:4px 0 0;font:400 13px/1.5 Inter,Arial,sans-serif;font-style:italic;color:#68747e}
.council-heading #closeDiplomacy{display:flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:0;padding:5px;border:0;border-radius:5px;background:transparent;color:#50616b;box-shadow:none}
#closeDiplomacy svg{width:26px;height:26px}.council-heading #closeDiplomacy:hover{background:#eaece7}
.council-workspace{display:grid;grid-template-columns:minmax(210px,.85fr) minmax(0,3.15fr);align-items:stretch}
.council-nations{border-right:1px solid var(--council-line);padding:12px 0 20px;min-width:0}
.council-nations>h3{font-size:29px;line-height:1.2;margin:0 18px 12px 0}
.council-window #diplomacyNations{display:flex;flex-direction:column;gap:0;padding:0 0 0 0;margin:0;grid-template-columns:none}
.council-window #diplomacyNations .nation-button{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:7px 16px 7px 0;border:0;border-right:2px solid transparent;border-radius:0;background:transparent;box-shadow:none;color:var(--council-ink);text-align:left}
.council-window #diplomacyNations .nation-button.selected{background:linear-gradient(90deg,#eeece400,#e9e6dca8);border-right-color:#c4a96c}
.council-window #diplomacyNations .nation-button:hover{background:#eceee7}
.council-window #diplomacyNations .nation-button .ruler-portrait{order:1;width:32px;height:32px;flex-basis:32px;border-radius:7px;border-color:#d7d8cd}
.council-window #diplomacyNations .nation-button>span:last-child{order:2;flex:1;min-width:0}
.council-window #diplomacyNations .nation-button strong{font:500 12px/1.4 Inter,Arial,sans-serif;color:var(--council-ink)}
.council-window #diplomacyNations .nation-button small{display:none}
.council-window #diplomacyNations .nation-mark{order:3;width:7px;height:7px;flex-basis:7px;margin-left:auto}
.council-window #diplomacyDetail{min-width:0}
.council-grid{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(0,1fr);min-width:0}
.council-ruler{padding:2px 26px 18px;text-align:center;min-width:0}
.council-ruler-heading>span{font:500 17px/1.3 'Cormorant Garamond',Georgia,serif;letter-spacing:.5px}
.council-ruler-heading h3{font-size:35px;line-height:1.08;margin:2px 0 5px;letter-spacing:0}
.council-ruler-heading p{font:400 12px/1.5 Inter,Arial,sans-serif;color:#68747e;margin:0 auto 10px;max-width:440px}
.council-window .council-ruler .realm-card{width:auto;max-width:100%;margin:0 auto 14px;display:flex;justify-content:center}
.council-window .council-ruler .realm-card-preview{display:block;position:relative;width:auto;max-width:100%;padding:0;border:0;background:transparent;box-shadow:none;border-radius:3px;overflow:hidden}
.council-window .council-ruler .realm-card-preview img{display:block;position:static;width:auto;max-width:100%;height:auto;max-height:clamp(250px,calc(100dvh - 570px),410px);object-fit:contain;border-radius:3px;opacity:1;filter:none}
.council-window .council-ruler .realm-card-caption{font:500 12px/1.4 Inter,Arial,sans-serif;background:#faf9f6ed;color:#485b65}
.council-ruler-interests{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding:12px 0 0;border-top:1px solid var(--council-line);text-align:left}
.council-ruler-interests>div{display:flex;align-items:flex-start;gap:9px;min-width:0}
.council-ruler-interests h4{font-size:21px;line-height:1.2;margin:0 0 5px}
.council-ruler-interests p{font:400 12px/1.55 Inter,Arial,sans-serif;margin:0;color:var(--council-muted);overflow-wrap:anywhere}
.council-ruler-interests .council-icon{width:21px;height:21px;flex:0 0 21px;color:#90a29c;margin-top:1px}
.council-ruler-interests>div:last-child .council-icon{color:#bc9f62;fill:#dac79033}
.council-relations{border-left:1px solid var(--council-line);padding:10px 0 18px 26px;min-width:0}
.council-relations>h3{font-size:29px;line-height:1.2;margin:0 0 16px}
.council-icon{width:24px;height:24px;display:inline-block;vertical-align:middle;flex-shrink:0;pointer-events:none}
.council-window .council-scores{display:flex;flex-direction:column;gap:22px;margin:0 0 20px}
.council-window .council-scores>label{display:grid;grid-template-columns:27px 1fr auto;grid-template-rows:auto 6px;column-gap:11px;row-gap:5px;font:400 16px/1.4 Inter,Arial,sans-serif;color:var(--council-ink)}
.council-scores .council-icon{grid-column:1;grid-row:1/3;align-self:center;color:#91a69b}
.council-scores .council-score-label{grid-column:2;grid-row:1;min-width:0}
.council-window .council-scores strong{grid-column:3;grid-row:1;float:none;font:400 15px/1.4 Inter,Arial,sans-serif;color:var(--council-ink)}
.council-window .council-scores [data-council-stat=attitude] strong{color:#477766}
.council-window .council-scores meter{grid-column:2/4;grid-row:2;width:100%;height:6px;min-height:6px;margin:0;border:0;border-radius:4px;overflow:hidden;background:#e3e6e3;appearance:none;-webkit-appearance:none}
.council-scores meter::-webkit-meter-bar{height:6px;border:0;border-radius:4px;background:#e3e6e3;box-shadow:none}
.council-scores meter::-webkit-meter-optimum-value{background:#79a392;border-radius:4px}
.council-scores meter::-moz-meter-bar{background:#79a392;border-radius:4px}
.council-scores [data-council-stat=trust] meter::-webkit-meter-optimum-value{background:#819fb2}.council-scores [data-council-stat=trust] meter::-moz-meter-bar{background:#819fb2}
.council-scores [data-council-stat=threat] meter::-webkit-meter-optimum-value{background:#c68e86}.council-scores [data-council-stat=threat] meter::-moz-meter-bar{background:#c68e86}
.council-scores [data-council-stat=trust] .council-icon{color:#8a9aa5}.council-scores [data-council-stat=threat] .council-icon{color:#919ca3}
.council-state{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:5px 0 17px;border-bottom:1px solid var(--council-line);font-size:12px;color:#828b91}
.council-state>span{display:flex;align-items:center;gap:9px;min-width:0;overflow-wrap:anywhere}.council-state>span+span{border-left:1px solid var(--council-line);padding-left:12px}.council-state .council-icon{width:20px;height:20px}
.council-state .council-at-peace{color:#5c8776;font-style:italic}.council-state .council-at-war{color:#a06660}
.council-relations>.council-propose-title{margin:14px 0 12px}
.council-quick-actions{display:grid;gap:8px}
.council-window .council-quick-button{display:flex;align-items:center;gap:13px;width:100%;min-height:46px;padding:9px 14px;border:1px solid #d2d9d9;border-radius:7px;background:#fafbf900;box-shadow:none;color:#435662;text-align:left;font:500 14px/1.4 Inter,Arial,sans-serif}
.council-quick-button .council-icon{width:23px;height:23px;color:#7f8f99}.council-window .council-quick-button.council-primary{border-color:#bdcfdb;background:#e1e9ee;color:#3e5c6e}.council-window .council-quick-button:hover:not(:disabled){background:#e9eeeb;border-color:#9eafb5}.council-window .council-quick-button:disabled{opacity:.62;cursor:not-allowed}.council-window .council-quick-button:focus-visible{outline:2px solid #8b9faf;outline-offset:2px}
.council-action-limit{display:flex;align-items:center;gap:10px;margin:14px 0 0;padding-top:14px;border-top:1px solid var(--council-line);font:400 12px/1.5 Inter,Arial,sans-serif;font-style:italic;color:#74818a}.council-action-limit .council-icon{width:20px;height:20px;color:#8b989f}
.council-advanced{margin:0 0 16px 24px;padding:10px 0;border-top:1px solid var(--council-line);font:400 13px/1.6 Inter,Arial,sans-serif}.council-advanced>summary{cursor:pointer;color:#697a83;font-size:12px;font-weight:500;padding:3px 0}.council-advanced-body{padding-top:14px}
.council-window .council-advanced .diplomacy-profile{display:block;grid-template-columns:none;padding:16px;margin:0 0 16px;background:transparent}.council-advanced .diplomacy-profile .diplomacy-meters{margin-top:12px}.council-advanced .interest-panel>h3{font-size:25px}.council-advanced .interest-panel>.eyebrow{font-family:Inter,Arial,sans-serif}.council-advanced .interest-offer h4{font:500 15px/1.4 Inter,Arial,sans-serif}.council-advanced .action-card strong{font:500 14px/1.5 Inter,Arial,sans-serif}.council-advanced .action-card small{font:400 12px/1.5 Inter,Arial,sans-serif}.council-window .council-advanced button{font-weight:500}.council-window .council-advanced p,.council-window .council-advanced label,.council-window .council-advanced select,.council-window .council-advanced input{font-family:Inter,Arial,sans-serif}.council-window .council-advanced h3{font-family:'Cormorant Garamond',Georgia,serif;font-weight:500}.council-advanced .realm-lore h3{font-family:'Cormorant Garamond',Georgia,serif}
.council-recent{display:grid;grid-template-columns:minmax(200px,.85fr) minmax(0,2.6fr) auto;align-items:center;gap:20px;border-top:1px solid var(--council-line);padding-top:16px;margin-top:2px}.council-recent>h3{display:flex;align-items:center;gap:10px;margin:0;font-size:26px;line-height:1.2}.council-recent>h3 svg{width:26px;height:30px;color:#84939c;flex-shrink:0}.council-recent #councilRecentEvents{border-left:1px solid var(--council-line);padding-left:18px}.council-recent p{position:relative;font:400 12px/1.6 Inter,Arial,sans-serif;margin:2px 0 6px;padding-left:16px;color:#75818a}.council-recent p::before{content:'';position:absolute;left:0;top:6px;width:6px;height:6px;border-radius:50%;background:#76a38f}.council-recent p+p::before{background:#a0adb7}.council-recent #diplomacyNextTurn{font:500 12px/1.4 Inter,Arial,sans-serif;padding:9px 12px;min-height:36px;background:transparent;border:1px solid #d4d9d4;border-radius:6px;white-space:nowrap;color:#62747f}
.council-pending-button{margin-top:12px;text-align:left}.council-undead-note{font-size:13px;color:#7b6e65}.council-relations .interest-panel{padding:0;margin:0;border:0;background:transparent}.council-relations .interest-panel h3{display:none}.council-relations .interest-panel p{font-size:13px;line-height:1.55}
.council-window .council-sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;padding:0!important;margin:-1px!important;border:0!important}
@media(min-width:1650px){.council-window #diplomacyNations .nation-button{min-height:49px}.council-window #diplomacyNations .nation-button strong{font-size:13px}.council-ruler-heading h3{font-size:38px}.council-window .council-quick-button{font-size:16px}}
@media(max-width:1150px) and (min-width:761px){#diplomacyDialog.council-window{padding:20px;width:calc(100% - 32px)}.council-workspace{grid-template-columns:190px minmax(0,1fr)}.council-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.council-ruler{padding-inline:18px}.council-relations{padding-left:18px}.council-ruler-heading h3{font-size:30px}.council-ruler-interests{gap:12px}.council-window #diplomacyNations .nation-button strong{font-size:12px}.council-window .council-quick-button{font-size:12px}.council-relations>h3{font-size:26px}.council-recent{grid-template-columns:190px 1fr}.council-recent #diplomacyNextTurn{grid-column:2;justify-self:end}.council-recent>h3{font-size:23px}}
@media(max-width:760px){#diplomacyDialog.council-window{width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:17px 15px 15px;border-radius:10px}.council-heading h2{font-size:38px}.council-heading .council-eyebrow{font-size:12px;letter-spacing:1.2px;gap:5px}.council-heading p{font-size:12px;max-width:270px}.council-workspace{display:block}.council-nations{border-right:0;border-bottom:1px solid var(--council-line);padding:12px 0}.council-nations>h3{font-size:25px;margin-bottom:8px}.council-window #diplomacyNations{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,42px);grid-auto-columns:166px;gap:4px 6px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding-bottom:6px}.council-window #diplomacyNations .nation-button{padding:5px 6px;min-height:40px;gap:7px;border:1px solid transparent;border-radius:5px}.council-window #diplomacyNations .nation-button.selected{background:#ece9de;border-color:#cbb98c}.council-window #diplomacyNations .nation-button strong{font-size:12px}.council-window #diplomacyNations .nation-button .ruler-portrait{width:28px;height:28px;flex-basis:28px}.council-window #diplomacyNations .nation-mark{width:5px;height:5px;flex-basis:5px}.council-grid{display:flex;flex-direction:column}.council-ruler{padding:15px 0}.council-ruler-heading h3{font-size:31px}.council-ruler-heading p{font-size:12px}.council-window .council-ruler .realm-card-preview img{max-height:440px;max-width:100%}.council-ruler-interests{gap:14px}.council-ruler-interests h4{font-size:21px}.council-ruler-interests p{font-size:12px}.council-relations{border-left:0;border-top:1px solid var(--council-line);padding:18px 0}.council-relations>h3{font-size:28px}.council-window .council-scores{gap:18px}.council-window .council-scores>label{font-size:15px}.council-window .council-quick-button{font-size:13px;min-height:46px}.council-state{font-size:12px}.council-advanced{margin:0 0 14px;padding:12px 0}.council-recent{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding-top:14px}.council-recent>h3{font-size:25px}.council-recent #councilRecentEvents{padding-left:0;border-left:0}.council-recent #diplomacyNextTurn{align-self:flex-end}.council-recent p{font-size:12px}.council-window .council-advanced .diplomacy-profile{padding:12px}.council-window .council-advanced-body{min-width:0;overflow-wrap:anywhere}.council-window .council-advanced .deal-controls{grid-template-columns:1fr}}
.council-window .council-ruler .realm-card-caption{position:absolute;left:0;right:0;bottom:0;margin:0;padding:6px;opacity:0;transition:opacity .15s;border:0}.council-window .council-ruler .realm-card-preview:hover .realm-card-caption,.council-window .council-ruler .realm-card-preview:focus-visible .realm-card-caption{opacity:1}
.council-heading #closeDiplomacy:focus-visible{outline:1px solid #afbdc3;outline-offset:1px}
@media(max-width:760px){.council-window .council-ruler .realm-card-preview img{max-height:440px}}

.council-war{margin-top:12px;padding-top:12px;border-top:1px solid var(--council-line);font:400 12px/1.6 Inter,Arial,sans-serif}.council-window .council-war-button{width:100%;display:flex;gap:10px;align-items:center;justify-content:center;min-height:42px;padding:8px 12px;border:1px solid #c4a09b;background:#f4ece8;color:#844b44;border-radius:6px;box-shadow:none;font:500 13px/1.4 Inter,Arial,sans-serif}.council-window .council-war-button:hover:not(:disabled){background:#eddfd7}.council-war-button:disabled{opacity:.6}.council-war>p{margin:6px 0 0;color:#65747d}.council-war select{width:100%;min-width:0;font:400 12px/1.5 Inter,Arial,sans-serif;margin:5px 0 8px}.council-war label{display:block;margin-top:12px}.council-war #warConsequences p{font:400 12px/1.6 Inter,Arial,sans-serif;margin:7px 0}.council-war details{margin-top:10px}.council-war details p{font:400 12px/1.6 Inter,Arial,sans-serif;margin:7px 0}.council-war summary{cursor:pointer;color:#7c5a51}.council-window #payWarCompensation{width:100%;margin-top:10px;font:500 12px/1.5 Inter,Arial,sans-serif}#warDeclaration[hidden]{display:none}

.fleet-negotiation{padding:16px;margin:14px 0;border:1px solid #cbd6db;border-radius:8px;background:#f2f5f5;scroll-margin-top:12px}.fleet-negotiation h3{margin:0 0 8px;font-size:28px}.fleet-negotiation p{margin:8px 0}.fleet-negotiation #negotiationBox{margin:0;padding:0;border:0}.fleet-negotiation .agreement-summary,.fleet-negotiation .negotiation-heading,.fleet-negotiation .active-treaties,.fleet-negotiation .other-relations,.fleet-negotiation .deal-help{display:none}.fleet-negotiation .deal-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fleet-negotiation select,.fleet-negotiation input{width:100%;box-sizing:border-box;min-width:0}.fleet-negotiation button{min-height:44px;margin:8px 8px 0 0}.fleet-negotiation .deal-factors{font-size:12px}.fleet-negotiation #returnToFleet{display:block}.fleet-negotiation:has(#dealType) #returnToFleet{background:#fff;color:#4d6c7c;border:1px solid #cbd6db}@media(max-width:600px){.fleet-negotiation{padding:12px}.fleet-negotiation .deal-controls{grid-template-columns:1fr}.fleet-negotiation h3{font-size:25px}}
