#mayor-manager{width:min(600px,calc(100vw - 28px));max-height:88dvh;box-sizing:border-box;overflow:auto;border:1px solid #87d6dc;border-radius:22px;background:#123449;color:#ebfafb;padding:26px;box-shadow:0 25px 90px #031723bb;font:16px/1.55 system-ui}#mayor-manager::backdrop{background:#061829a6;backdrop-filter:blur(7px)}.mayor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.mayor-heading small{font-size:12px;letter-spacing:.13em;color:#9ee8ce}.mayor-heading h2{font-size:29px;line-height:1.15;margin:8px 0}.mayor-heading button{width:44px;height:44px;flex-shrink:0;border:0;background:#ffffff0b;border-radius:50%;font-size:27px;color:#c7f7e5}#mayor-manager p{color:#c4dce8;margin:12px 0 20px}#mayor-manager input{width:100%;box-sizing:border-box;min-height:48px;border:1px solid #91c4cf99;border-radius:10px;background:#20485d;color:white;font:17px system-ui;padding:11px 12px;margin:6px 0 16px}#mayor-manager label{font-weight:650}.mayor-primary,.mayor-list button{min-height:46px;background:#83efd1;color:#163d44;border:0;border-radius:10px;font:700 16px system-ui;padding:12px 17px;cursor:pointer}.mayor-primary{width:100%}.mayor-secondary{min-height:44px;border:0;background:none;color:#c3f4e4;font:15px system-ui;width:100%;margin-top:8px}.mayor-start-facts{display:flex;flex-wrap:wrap;gap:8px}.mayor-start-facts span{border:1px solid #74b6c855;border-radius:20px;padding:5px 11px;font-size:14px;background:#28566b}.mayor-list{display:grid;gap:10px;margin:20px 0}.mayor-list article{display:flex;align-items:center;gap:13px;padding:15px 12px;background:#24506888;border:1px solid #8dc6d244;border-radius:14px}.mayor-list article>div{min-width:0;flex:1}.mayor-list h3{font-size:18px;margin:0;overflow-wrap:anywhere}.mayor-list article p{font-size:14px!important;margin:3px 0 0!important;overflow-wrap:anywhere}.mayor-monogram{width:42px;height:42px;display:grid;place-items:center;background:#388383;color:#b8ffe5;border-radius:12px;font-size:23px}.mayor-list button:disabled{background:#376773;color:#c3e9eb;cursor:default}#mayor-error{color:#ffc5a8!important;font-size:14px}#mayor-manager[aria-busy=true]{cursor:progress}#mayor-manager[aria-busy=true] button{opacity:.65}
#founding-guide{display:block;position:absolute;top:auto;right:auto;bottom:145px;left:18px;width:350px;max-height:38dvh;z-index:13;max-width:350px;padding:16px 18px;background:#12394fef;color:#e7faf7;border:1px solid #92e0d477;border-radius:16px;box-shadow:0 6px 30px #081f3b55}#founding-guide[hidden]{display:none}#founding-guide>div{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#9aefd0;font-size:13px}#founding-hide{background:none;border:0;color:#c8f8eb;font-size:23px;min-width:36px;min-height:36px}#founding-guide h3{font-size:19px;margin:5px 0}#founding-guide p{font-size:14px;line-height:1.5;margin:6px 0 13px;color:#c6e3ed}#founding-action{min-height:44px;border:0;border-radius:9px;background:#87f0cf;color:#153d44;font-size:15px;font-weight:700;padding:9px 13px;width:100%}.founding-city #journey-cue,.founding-city #mission-card{display:none!important}.build-open #founding-guide,.area-building #founding-guide,.plot-building #founding-guide,.panel-open #founding-guide,.advisor-open #founding-guide,.at-start #founding-guide{display:none!important}
@media(max-width:800px){#mayor-manager{padding:20px 17px}.mayor-heading h2{font-size:25px}.mayor-monogram{display:none}#founding-guide{left:8px;right:8px;width:auto;bottom:147px;max-width:none;padding:10px 13px}#founding-guide h3{font-size:17px}#founding-guide p{font-size:13px;margin-bottom:9px}}

body:has(#more-tools:not([hidden])) #founding-guide,.living-menu-open #founding-guide{display:none!important}

#mayor-manager .mayor-primary:hover,#mayor-manager .mayor-list button:not(:disabled):hover{background:#a3f8df;color:#163d44}

.mayor-name-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.mayor-start-options{border:0;padding:0;margin:0 0 16px;min-width:0}.mayor-start-options legend{font-weight:700;margin-bottom:9px}.mayor-start-option{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid #83bdd255;border-radius:12px;background:#1d455b;margin:7px 0;cursor:pointer}.mayor-start-option:has(input:checked){border-color:#8df1d0;background:#225951;box-shadow:inset 0 0 0 1px #8df1d0}.mayor-start-option:has(input:focus-visible){outline:3px solid #ffe39b;outline-offset:2px}#mayor-manager .mayor-start-option input{width:20px;min-height:20px;height:20px;flex:0 0 20px;margin:0;accent-color:#94f2d2}.mayor-start-option>span{flex:1;min-width:0}.mayor-start-option strong{display:block;font-size:16px}.mayor-start-option small{display:block;font-size:14px;line-height:1.35;font-weight:400;color:#d2e7ed;margin-top:3px}.mayor-start-option>b{font-size:18px;color:#a9f4db;white-space:nowrap}#mayor-manager .mayor-note{font-size:14px;line-height:1.5;margin-bottom:16px}@media(max-width:480px){.mayor-name-fields{grid-template-columns:1fr;gap:0}.mayor-start-option{padding:10px}.mayor-start-option>b{font-size:16px}}

#city-centre-chooser{width:min(520px,calc(100vw - 24px));max-height:90dvh;box-sizing:border-box;overflow:auto;border:1px solid #87d6dc;border-radius:20px;background:#123449;color:#ebfafb;padding:22px;font:16px/1.45 system-ui;box-shadow:0 25px 90px #031723bb}#city-centre-chooser::backdrop{background:#06182999;backdrop-filter:blur(4px)}#city-centre-chooser p{color:#c4dce8;margin:10px 0 14px}#city-centre-chooser .mayor-heading h2{font-size:25px}#city-centre-chooser .mayor-start-option input{width:20px;min-height:20px;height:20px;flex:0 0 20px;margin:0;accent-color:#94f2d2}#city-centre-chooser .mayor-start-option:has(input:disabled){opacity:.55;cursor:not-allowed}#centre-preview{height:120px;border:1px solid #669ea755;border-radius:12px;background:#163f55;margin:10px 0 16px}#centre-preview svg{width:100%;height:100%;display:block}#city-centre-chooser #centre-detail{font-size:14px}#city-centre-chooser #centre-error{color:#ffc5a8;font-size:14px}#centre-error:empty{display:none}@media(max-width:480px){#city-centre-chooser{padding:16px}#city-centre-chooser .mayor-heading h2{font-size:22px}#centre-preview{height:92px}#city-centre-chooser .mayor-start-option{padding:10px}}
#mayor-manager .mayor-card{position:relative;display:block;padding:0;overflow:hidden;background:#963d51;touch-action:pan-y}
.mayor-card .mayor-row{display:flex;align-items:center;gap:13px;padding:14px 12px;background:#20495f;position:relative;z-index:1;transition:transform .2s ease;box-sizing:border-box;min-width:0}
.mayor-row .mayor-info{flex:1;min-width:0}.mayor-row .mayor-actions{display:grid;gap:3px;flex:0 0 auto}.mayor-row .mayor-monogram{flex-shrink:0}
#mayor-manager .mayor-delete{background:transparent;color:#ffc6cd;min-height:44px;padding:7px 12px;font-size:14px}
#mayor-manager .mayor-delete:hover{background:#713548;color:#fff}
#mayor-manager .mayor-danger{background:#bd3851;color:white;min-height:46px;border:1px solid #f18498;border-radius:10px;padding:12px 17px;font:700 16px system-ui;cursor:pointer}
#mayor-manager .mayor-danger:hover{background:#d04b65;color:#fff}
#mayor-manager .mayor-swipe-delete{position:absolute;right:0;top:0;bottom:0;width:96px;border:0;border-radius:0}
.mayor-card.is-revealed .mayor-row{transform:translateX(-96px)}.mayor-card.is-revealed .mayor-actions{visibility:hidden}.mayor-card.is-dragging .mayor-row{transition:none;user-select:none}
.mayor-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mayor-delete-summary{padding:16px;border:1px solid #adbec555;border-radius:12px;background:#214b60;margin-top:16px;overflow-wrap:anywhere}.mayor-delete-summary h3{margin:0;font-size:22px}#mayor-manager .mayor-delete-summary p{margin:4px 0 0}#mayor-manager .mayor-delete-warning{color:#ffd7dd;font-weight:700}
#mayor-manager .mayor-notice{color:#a8f5d9;font-size:15px}.mayor-notice:empty,#mayor-error:empty{display:none}.mayor-empty{padding:16px 0 22px}.mayor-empty h3{margin:0}.mayor-empty p{margin-bottom:0!important}
#mayor-manager button:focus-visible{outline:3px solid #ffe39b;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.mayor-card .mayor-row{transition:none}}
@media(max-width:480px){.mayor-confirm-actions{grid-template-columns:1fr}.mayor-row .mayor-actions button{padding-left:12px;padding-right:12px}}
.mayor-card.is-revealed .mayor-info,.mayor-card.is-revealed .mayor-monogram{transform:translateX(96px)}
