.ww-city-body {
    height: 100vh;
    overflow: hidden;
}

.ww-city-body footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 18;
    margin-top: 0;
    max-height: 58px;
    overflow: hidden;
}

.ww-city-body footer .footer-inner {
    max-width: none;
    padding: .45rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ww-city-body footer .footer-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.ww-city-body footer .footer-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex: 0 0 auto;
}

.ww-city-body footer .footer-title {
    font-size: 1rem;
}

.ww-city-body footer .footer-brand p,
.ww-city-body footer .footer-status,
.ww-city-body footer .footer-groups,
.ww-city-body footer .footer-actions,
.ww-city-body footer .footer-credit,
.ww-city-body footer .footer-salt {
    display: none;
}

.ww-city-body footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    border: 0;
}

.ww-city-body footer .footer-meta {
    display: block;
}

.ww-city-page {
    height: 100vh;
    background: #07100c;
    color: #102018;
    overflow: hidden;
}

.ww-city-embed {
    --ww-nav-height: 0px;
    margin: 0;
    background: #d8ead8;
}

.ww-city-embed .ww-city-page,
.ww-city-embed .ww-city-map-shell,
.ww-city-embed .ww-city-map {
    height: 100vh;
}

.ww-city-embed .ww-city-map-shell {
    padding-top: 0;
}

.ww-city-embed .ww-city-panel,
.ww-city-embed .ww-city-topbar,
.ww-city-embed .ww-city-hint,
.ww-city-embed .ww-city-map-disclaimer,
.ww-city-embed .ww-city-activation-layer,
.ww-city-embed .ww-city-dialog {
    display: none;
}

.ww-city-map-shell {
    position: relative;
    height: calc(100vh - 58px);
    min-height: 0;
    padding-top: var(--ww-nav-height);
    overflow: hidden;
    background: #d8ead8;
}

.ww-city-map {
    display: block;
    width: 100%;
    height: calc(100vh - var(--ww-nav-height) - 58px);
    min-height: 0;
    touch-action: none;
    cursor: grab;
}

.ww-city-map:active {
    cursor: grabbing;
}

.ww-city-topbar {
    position: absolute;
    top: calc(var(--ww-nav-height) + 1rem);
    left: auto;
    right: 1rem;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    pointer-events: none;
}

.ww-city-topbar > div {
    pointer-events: auto;
}

.ww-city-topbar h1 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.5rem);
    line-height: 1;
    color: #f8fff8;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

.ww-city-topbar p {
    width: min(540px, calc(100vw - 460px));
    margin: .5rem 0 0;
    color: rgba(248, 255, 248, .86);
    line-height: 1.35;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .42);
}

.ww-city-actions {
    display: flex;
    gap: .45rem;
    padding: .35rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(12, 22, 16, .72);
    backdrop-filter: blur(12px);
}

.ww-city-activation-layer {
    position: absolute;
    inset: var(--ww-nav-height) 0 0 0;
    z-index: 3;
    pointer-events: none;
}

.ww-city-activate-quadrant {
    position: absolute;
    min-height: 40px;
    padding: .65rem .9rem;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 8px;
    background: rgba(18, 53, 37, .88);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .26);
    transform: translate(-50%, -50%);
}

.ww-city-activate-quadrant:disabled {
    opacity: .65;
    cursor: wait;
}

.ww-city-icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font: 900 1.25rem/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.ww-city-icon-btn:hover {
    background: rgba(255, 255, 255, .22);
}

.ww-city-icon-btn.is-on,
.ww-city-dim-toggle.is-on {
    border-color: rgba(134, 239, 172, .72);
    background: rgba(34, 197, 94, .32);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, .18), 0 0 22px rgba(34, 197, 94, .36);
}

.ww-city-panel {
    position: absolute;
    left: 1rem;
    top: calc(var(--ww-nav-height) + 1rem);
    z-index: 4;
    width: min(420px, calc(100% - 2rem));
    padding: .9rem;
    border: 1px solid rgba(25, 67, 43, .13);
    border-radius: 8px;
    background: rgba(250, 255, 248, .97);
    box-shadow: 0 18px 50px rgba(5, 12, 8, .22);
    backdrop-filter: blur(16px);
}

.ww-city-search {
    display: grid;
    gap: .4rem;
    margin-bottom: .8rem;
}

.ww-city-search label {
    color: #315642;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ww-city-search input {
    width: 100%;
    min-height: 40px;
    padding: .6rem .7rem;
    border: 1px solid rgba(28, 70, 47, .18);
    border-radius: 8px;
    background: #eef8ed;
    color: #102018;
    font: 800 .95rem Arial, Helvetica, sans-serif;
}

.ww-city-search-results {
    display: grid;
    gap: .4rem;
    max-height: 240px;
    overflow: auto;
    padding-right: .2rem;
}

.ww-city-search-result {
    display: grid;
    gap: .15rem;
    width: 100%;
    padding: .55rem .65rem;
    border: 1px solid rgba(28, 70, 47, .14);
    border-radius: 8px;
    background: rgba(19, 74, 48, .07);
    color: #173527;
    text-align: left;
    cursor: pointer;
}

.ww-city-search-result strong {
    font-size: .92rem;
}

.ww-city-search-result span {
    color: #52665a;
    font-size: .78rem;
    font-weight: 800;
}

.ww-city-search-empty {
    padding: .5rem .65rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, .06);
    color: #52665a;
    font-size: .84rem;
    font-weight: 800;
}

.ww-city-property-card {
    padding-top: .25rem;
}

.ww-city-panel-kicker {
    color: #3d7358;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ww-city-panel h2,
.ww-city-dialog h2 {
    margin: .25rem 0 .45rem;
    color: #102018;
    font-size: 1.5rem;
    line-height: 1.08;
}

.ww-city-panel-location {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .4rem;
}

.ww-city-panel-location span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: .28rem .5rem;
    border: 1px solid rgba(25, 67, 43, .13);
    border-radius: 8px;
    background: rgba(232, 245, 235, .8);
    color: #315642;
    font-size: .82rem;
    font-weight: 900;
}

.ww-city-panel p,
.ww-city-dialog-meta {
    margin: 0 0 .85rem;
    color: #43564a;
    line-height: 1.42;
}

.ww-city-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .75rem 0;
}

.ww-city-stats span,
.ww-city-claim-line,
.ww-city-claimed-box {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 32px;
    padding: .35rem .55rem;
    border: 1px solid rgba(28, 70, 47, .14);
    border-radius: 8px;
    background: rgba(19, 74, 48, .08);
    color: #234432;
    font-size: .9rem;
    font-weight: 800;
}

.ww-city-claim-line {
    display: flex;
    margin: .6rem 0 0;
}

.ww-city-claim-line.claimed {
    background: rgba(43, 116, 255, .1);
    color: #183c78;
}

.ww-city-claim-line.group {
    background: rgba(115, 67, 184, .1);
    color: #4b2b75;
}

.ww-city-claim-line a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ww-city-panel-status {
    display: grid;
    gap: .12rem;
    margin-top: .75rem;
    padding: .65rem .75rem;
    border: 1px solid rgba(25, 67, 43, .13);
    border-radius: 8px;
    background: rgba(232, 245, 235, .78);
    color: #214732;
}

.ww-city-panel-status.is-locked {
    background: rgba(219, 234, 254, .78);
    color: #173a72;
}

.ww-city-panel-status strong {
    font-size: .9rem;
    font-weight: 900;
}

.ww-city-panel-status span {
    color: #53695c;
    font-size: .8rem;
    font-weight: 800;
}

.ww-city-panel-action {
    width: 100%;
    margin-top: .8rem;
}

.ww-city-primary,
.ww-city-login,
.ww-city-secondary,
.ww-city-danger {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    padding: .6rem .9rem;
    border: 1px solid rgba(30, 96, 62, .24);
    border-radius: 8px;
    background: #1f7a50;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.ww-city-primary:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.ww-city-secondary {
    background: #496857;
}

.ww-city-danger {
    border-color: rgba(160, 34, 34, .28);
    background: #a73838;
}

.ww-city-login {
    margin-top: .75rem;
    width: 100%;
    text-decoration: none;
}

.ww-city-hint {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 2;
    padding: .55rem .7rem;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    background: rgba(12, 22, 16, .72);
    color: rgba(255, 255, 255, .9);
    font-size: .9rem;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.ww-city-map-disclaimer {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    max-width: min(540px, calc(100vw - 2rem));
    padding: .55rem .7rem;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    background: rgba(12, 22, 16, .72);
    color: rgba(255, 255, 255, .92);
    font-size: .86rem;
    font-weight: 900;
    line-height: 1.25;
    backdrop-filter: blur(12px);
}

.ww-city-dialog {
    width: min(780px, calc(100% - 1.5rem));
    max-height: min(880px, calc(100vh - var(--ww-nav-height) - 1.5rem));
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #102018;
}

.ww-city-dialog::backdrop {
    background: rgba(3, 8, 6, .68);
    backdrop-filter: blur(8px);
}

.ww-city-dialog-card {
    padding: 1.6rem;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 8px;
    background: #fbfff8;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
    max-height: inherit;
    overflow: auto;
}

.ww-city-dialog-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.ww-city-dialog-head-actions {
    display: flex;
    gap: .45rem;
    align-items: flex-start;
}

.ww-city-dialog-head .ww-city-icon-btn {
    flex: 0 0 auto;
    background: #183527;
}

.ww-city-edit-gear[hidden] {
    display: none;
}

.ww-city-claimed-box {
    display: flex;
    margin: 0 0 .85rem;
    background: rgba(51, 117, 255, .1);
}

.ww-city-profile-summary {
    display: grid;
    grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
    gap: 1rem;
    margin: 1.15rem 0 .4rem;
    padding: 1rem;
    border: 1px solid rgba(25, 67, 43, .14);
    border-radius: 8px;
    background: #eef7ec;
}

.ww-city-profile-media {
    min-height: 220px;
    border-radius: 8px;
    overflow: hidden;
    background: #dcebd8;
}

.ww-city-profile-media img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.ww-city-profile-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    color: #52705f;
    font-weight: 900;
}

.ww-city-profile-copy h3 {
    margin: .15rem 0 .35rem;
    color: #102018;
    font-size: 1.65rem;
    line-height: 1.15;
}

.ww-city-world-title {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.ww-city-title-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #173d2a;
    color: #f8fff8;
    font-size: .92rem;
    line-height: 1;
    flex: 0 0 auto;
}

.ww-city-profile-copy p {
    margin: .55rem 0 0;
    color: #405747;
    line-height: 1.45;
}

.ww-city-profile-meta {
    margin-top: .25rem;
    color: #52705f;
    font-size: .9rem;
    font-weight: 800;
}

.ww-city-profile-fields {
    display: grid;
    gap: .55rem;
    margin-top: .75rem;
}

.ww-city-profile-fields div {
    min-width: 0;
}

.ww-city-profile-fields strong,
.ww-city-profile-fields span {
    display: block;
}

.ww-city-profile-fields strong {
    color: #2e6f4c;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ww-city-profile-fields span {
    margin-top: .12rem;
    overflow-wrap: anywhere;
    color: #263f31;
    font-size: .94rem;
    font-weight: 800;
    line-height: 1.35;
}

.ww-city-profile-fields a {
    color: #174b32;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ww-city-listing-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .7rem;
}

.ww-city-listing-facts span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: .32rem .55rem;
    border: 1px solid rgba(25, 67, 43, .15);
    border-radius: 8px;
    background: rgba(255, 255, 255, .62);
    color: #274633;
    font-size: .78rem;
    font-weight: 900;
}

.ww-city-world-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .8rem;
}

.ww-city-world-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: .45rem .7rem;
    border: 1px solid rgba(25, 67, 43, .18);
    border-radius: 8px;
    background: #173d2a;
    color: #f8fff8;
    font-size: .78rem;
    font-weight: 900;
    text-decoration: none;
}

.ww-city-world-actions a:hover {
    background: #21563b;
}

.ww-city-edit-wrap[hidden] {
    display: none;
}

.ww-city-edit-title {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    margin: .95rem 0 .65rem;
    padding-top: .85rem;
    border-top: 1px solid rgba(25, 67, 43, .12);
}

.ww-city-edit-title strong,
.ww-city-edit-title span {
    display: block;
}

.ww-city-edit-title strong {
    color: #183d2a;
    font-size: 1rem;
}

.ww-city-edit-title span,
.ww-city-field-help {
    color: #5c7364;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.35;
}

.ww-city-edit-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .35rem;
    margin: .75rem 0;
    padding: .25rem;
    border: 1px solid rgba(25, 67, 43, .12);
    border-radius: 8px;
    background: rgba(216, 234, 216, .45);
}

.ww-city-edit-tabs button {
    min-width: 0;
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #375645;
    font: 900 .82rem Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.ww-city-edit-tabs button.is-active {
    background: #1f7a50;
    color: #fff;
    box-shadow: 0 6px 14px rgba(31, 122, 80, .22);
}

.ww-city-form-grid {
    display: block;
}

.ww-city-tab-panel[hidden] {
    display: none;
}

.ww-city-tab-panel {
    padding: .8rem;
    border: 1px solid rgba(25, 67, 43, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .32);
}

.ww-city-tab-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .75rem;
}

.ww-city-form-grid label {
    display: grid;
    gap: .35rem;
    color: #365445;
    font-size: .84rem;
    font-weight: 900;
}

.ww-city-form-grid input,
.ww-city-form-grid select,
.ww-city-form-grid textarea {
    width: 100%;
    min-height: 42px;
    padding: .6rem .7rem;
    border: 1px solid rgba(25, 67, 43, .2);
    border-radius: 8px;
    background: #eef8ed;
    color: #102018;
    font: 700 .95rem Arial, Helvetica, sans-serif;
}

.ww-city-form-grid input[type="file"] {
    padding: .52rem;
    background: #f8fff5;
}

.ww-city-form-grid textarea {
    min-height: 84px;
    resize: vertical;
}

.ww-city-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: .55rem !important;
    padding: .55rem .65rem;
    border: 1px solid rgba(25, 67, 43, .14);
    border-radius: 8px;
    background: rgba(31, 122, 80, .07);
}

.ww-city-check input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.ww-city-check span {
    color: #365445;
    font-size: .84rem;
    font-weight: 900;
}

.ww-city-world-results,
.ww-city-linked-world,
.ww-city-media-strip {
    display: grid;
    gap: .45rem;
}

.ww-city-world-results {
    margin-top: .45rem;
    max-height: 250px;
    overflow: auto;
}

.ww-city-world-option,
.ww-city-linked-world-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: .55rem;
    align-items: center;
    width: 100%;
    padding: .45rem;
    border: 1px solid rgba(25, 67, 43, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    color: #153525;
    text-align: left;
}

.ww-city-world-search-field {
    padding: .7rem;
    border: 1px solid rgba(25, 67, 43, .16);
    border-radius: 8px;
    background: rgba(31, 122, 80, .06);
}

.ww-city-world-option {
    cursor: pointer;
}

.ww-city-world-option img,
.ww-city-linked-world-card img {
    width: 54px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(20, 55, 34, .12);
}

.ww-city-world-option strong,
.ww-city-linked-world-card strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .88rem;
}

.ww-city-world-option span,
.ww-city-linked-world-card span {
    display: block;
    color: #52705f;
    font-size: .78rem;
    font-weight: 800;
}

.ww-city-media-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: .65rem;
}

.ww-city-media-strip figure {
    margin: 0;
    min-width: 0;
}

.ww-city-media-strip img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(25, 67, 43, .14);
}

.ww-city-media-strip figcaption {
    margin-top: .25rem;
    overflow: hidden;
    color: #52705f;
    font-size: .72rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ww-city-wide {
    grid-column: 1 / -1;
}

.ww-city-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .9rem;
}

.ww-city-invite-notice {
    margin: .75rem 0 .95rem;
    padding: .75rem .85rem;
    border: 1px solid rgba(31, 122, 80, .25);
    border-radius: 8px;
    background: rgba(225, 245, 232, .92);
    color: #17442d;
    font-size: .92rem;
    font-weight: 900;
}

.ww-city-invite-notice[hidden] {
    display: none;
}

.ww-city-admin-invite,
.ww-city-friend-invite {
    margin-top: .95rem;
    padding: .85rem;
    border: 1px solid rgba(25, 67, 43, .16);
    border-radius: 8px;
    background: rgba(232, 245, 235, .78);
}

.ww-city-admin-invite[hidden],
.ww-city-friend-invite[hidden] {
    display: none;
}

.ww-city-admin-invite strong,
.ww-city-admin-invite span,
.ww-city-friend-invite strong,
.ww-city-friend-invite span {
    display: block;
}

.ww-city-admin-invite strong,
.ww-city-friend-invite strong {
    color: #153f2b;
    font-size: .9rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ww-city-admin-invite span,
.ww-city-friend-invite span {
    margin-top: .15rem;
    color: #496857;
    font-size: .86rem;
    font-weight: 800;
}

.ww-city-admin-invite-row,
.ww-city-friend-invite-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .55rem;
    margin-top: .7rem;
}

.ww-city-admin-invite-row input,
.ww-city-friend-invite-row input {
    min-width: 0;
}

.ww-city-message {
    min-height: 1.2rem;
    margin-top: .75rem;
    color: #395444;
    font-size: .9rem;
    font-weight: 800;
}

@media (max-width: 760px) {
    .ww-city-map {
        min-height: 0;
    }

    .ww-city-topbar {
        top: calc(var(--ww-nav-height) + .75rem);
        left: auto;
        right: .75rem;
    }

    .ww-city-topbar p {
        width: min(540px, calc(100vw - 1.5rem));
    }

    .ww-city-actions {
        align-self: flex-end;
    }

    .ww-city-panel {
        left: .75rem;
        right: .75rem;
        top: calc(var(--ww-nav-height) + 7.5rem);
        width: calc(100% - 1.5rem);
    }

    .ww-city-hint,
    .ww-city-map-disclaimer {
        display: none;
    }

    .ww-city-tab-grid,
    .ww-city-edit-tabs {
        grid-template-columns: 1fr;
    }

    .ww-city-admin-invite-row,
    .ww-city-friend-invite-row {
        grid-template-columns: 1fr;
    }

    .ww-city-profile-summary {
        grid-template-columns: 1fr;
    }
}

