.political-context-shell {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.political-context-console {
    position: sticky;
    top: 18px;
}

.political-map-panel {
    min-height: 660px;
}

#fruitbowl-political-context-map {
    min-height: 590px;
    height: 68vh;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
}

.political-control-card {
    display: grid;
    gap: 6px;
    margin: 14px 0;
    padding: 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(232,87,168,.18), rgba(240,210,130,.12));
    border: 1px solid rgba(232,87,168,.28);
}

.political-control-card span,
.political-control-card small {
    color: #a6b4ab;
}

.political-control-card strong {
    color: #fff8ed;
    font-size: 24px;
    line-height: 1.1;
}

.political-live-boundary-card {
    display: grid;
    gap: 6px;
    margin: 0 0 14px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(122,167,255,.12);
    border: 1px solid rgba(122,167,255,.26);
    border-left: 5px solid #7aa7ff;
}

.political-live-boundary-card span,
.political-live-boundary-card small {
    color: #a6b4ab;
}

.political-live-boundary-card strong {
    color: #f4fbf4;
    font-size: 20px;
    line-height: 1.15;
}

.political-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.political-summary-grid p {
    color: #c9d5ce;
    line-height: 1.5;
}

.political-source-grid article {
    border-left: 5px solid #e857a8;
}

.political-source-plan {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.political-source-plan article {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.08);
}

.political-source-plan strong {
    color: #f4fbf4;
    font-size: 18px;
}

.political-source-plan span {
    color: #f0d282;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.political-source-plan p {
    color: #b8c6bd;
    margin: 0;
}

.political-source-plan a {
    color: #a9df8f;
    font-weight: 900;
}

.political-boundary-match-grid,
.political-schema-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.political-boundary-match-grid article,
.political-schema-grid article {
    display: grid;
    gap: 9px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.08);
    border-left: 5px solid #7aa7ff;
}

.political-boundary-match-grid article:nth-child(2),
.political-schema-grid article:nth-child(2) {
    border-left-color: #76d672;
}

.political-boundary-match-grid article:nth-child(3),
.political-schema-grid article:nth-child(3) {
    border-left-color: #e857a8;
}

.political-boundary-match-grid span,
.political-schema-grid span {
    color: #f0d282;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.political-boundary-match-grid strong,
.political-schema-grid strong {
    color: #f4fbf4;
    font-size: 18px;
    line-height: 1.2;
}

.political-boundary-match-grid p,
.political-schema-grid p {
    color: #b8c6bd;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.political-import-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.political-import-steps article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
    border-radius: 8px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.08);
}

.political-import-steps b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #07100b;
    background: linear-gradient(135deg, #7bd56f, #e8b34f);
    font-size: 12px;
}

.political-import-steps strong,
.political-import-steps small {
    display: block;
}

.political-import-steps strong {
    color: #f4fbf4;
    line-height: 1.2;
}

.political-import-steps p {
    margin: 6px 0;
    color: #b8c6bd;
    font-size: 12px;
    line-height: 1.4;
}

.political-import-steps small {
    color: #f0d282;
    line-height: 1.35;
}

.theme-light .political-control-card,
.theme-light .political-live-boundary-card,
.theme-light .political-source-plan article,
.theme-light .political-boundary-match-grid article,
.theme-light .political-schema-grid article,
.theme-light .political-import-steps article {
    background: rgba(246,249,244,.86);
    border-color: rgba(18,35,27,.12);
}

.theme-light .political-summary-grid p,
.theme-light .political-source-plan p,
.theme-light .political-boundary-match-grid p,
.theme-light .political-schema-grid p,
.theme-light .political-import-steps p,
.theme-light .political-control-card span,
.theme-light .political-control-card small,
.theme-light .political-live-boundary-card span,
.theme-light .political-live-boundary-card small {
    color: #4d6257;
}

.theme-light .political-control-card strong,
.theme-light .political-live-boundary-card strong,
.theme-light .political-source-plan strong,
.theme-light .political-boundary-match-grid strong,
.theme-light .political-schema-grid strong,
.theme-light .political-import-steps strong {
    color: #12231b;
}

@media (max-width: 900px) {
    .political-context-shell,
    .political-summary-grid,
    .political-source-plan,
    .political-boundary-match-grid,
    .political-schema-grid,
    .political-import-steps {
        grid-template-columns: 1fr;
    }

    .political-context-console {
        position: relative;
        top: auto;
    }
}
