.region-demo { max-width: none; width: 100%; padding: 24px; color: #333; }
.region-card { background: #fff; border: 1px solid #e8edf3; border-radius: 6px; margin-bottom: 20px; padding: 20px; }
.region-card h1, .region-card h2 { font-size: 16px; line-height: 24px; margin: 0 0 18px; font-weight: 600; }
.region-summary { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.region-stat { flex: 1 1 220px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #bbf7d0; border-radius: 6px; background: #f0fdf4; }
.region-stat i { color: #22c55e; font-size: 24px; }
.region-stat strong, .region-stat span { display: block; font-size: 13px; line-height: 22px; font-weight: 400; }
.region-stat span { color: #7c8797; font-size: 12px; }
.region-stat.is-missing { border-color: #fde68a; background: #fffbeb; }
.region-stat.is-missing i { color: #d99b15; }
.region-split { display: flex; align-items: stretch; gap: 20px; }
.region-left { flex: 0 0 30%; min-width: 320px; max-width: 420px; }
.region-right { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.region-cascader { background: #f8fafc; border-radius: 6px; padding: 18px; }
.region-selects { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.region-selects label { min-width: 0; font-size: 12px; color: #737f90; }
.region-selects select { display: block; width: 100%; height: 38px; margin-top: 6px; border: 1px solid #dce3eb; border-radius: 4px; padding: 0 8px; background: #fff; color: #333; font: inherit; font-size: 14px; }
.region-selects select:disabled { background: #f1f5f9; color: #9ba6b3; }
.region-path { padding: 10px 12px; margin-top: 16px; background: #eff6ff; color: #1e40af; line-height: 22px; border-radius: 4px; overflow-wrap: anywhere; }
.region-demo button { cursor: pointer; font: inherit; }
.region-reset { color: #5c7191; border: none; background: none; padding: 10px 0 0; font-size: 12px; }
.region-info { margin: 12px 0; }
.region-info > div { display: flex; border-bottom: 1px solid #f1f5f9; padding: 12px 0; gap: 12px; font-size: 14px; line-height: 22px; }
.region-info dt { width: 76px; flex-shrink: 0; color: #7a8390; }
.region-info dd { margin: 0; overflow-wrap: anywhere; }
.region-note { color: #8c96a4; font-size: 12px; line-height: 21px; margin: 12px 0; }
.region-map-frame { min-height: max(760px, calc(100vh - var(--region-map-offset, 240px))); flex: 1; position: relative; border-radius: 6px; overflow: hidden; border: 1px solid #e2e8f0; background: #f8fafc; }
#region-map { width: 100%; height: 100%; min-height: 760px; position: absolute; inset: 0; }
.region-map-state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 30px; color: #7c8797; background: #f8fafcf0; text-align: center; line-height: 24px; z-index: 2; }
.region-map-state[hidden] { display: none; }
.region-map-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #8c96a4; font-size: 12px; padding-top: 10px; }
.region-search { display: flex; margin-bottom: 14px; gap: 8px; }
.region-search input { min-width: 0; flex: 1; border: 1px solid #dce3eb; border-radius: 4px; padding: 9px 10px; font: inherit; }
.region-search button, .region-export button { border: none; background: #2979e8; color: #fff; padding: 9px 16px; border-radius: 4px; }
.region-search-results { max-height: 180px; overflow-y: auto; margin-bottom: 12px; border: 1px solid #e2e8f0; border-radius: 4px; }
.region-search-results button { display: block; width: 100%; border: 0; border-bottom: 1px solid #f1f5f9; padding: 10px; text-align: left; background: #fff; color: #334155; }
.region-search-results button:hover { background: #eff6ff; }
.region-export summary { cursor: pointer; color: #54657c; }
.region-export textarea { display: block; box-sizing: border-box; width: 100%; height: 200px; margin-top: 16px; padding: 12px; border: 1px solid #dce3eb; border-radius: 4px; font-family: monospace; }
.region-export-actions { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.region-export a { color: #2979e8; }
.region-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 992px) { .region-split { flex-direction: column; } .region-left { width: 100%; min-width: 0; max-width: none; } .region-map-frame, #region-map { min-height: 360px; } }
@media (max-width: 600px) { .region-demo { padding: 12px; } .region-card { padding: 14px; } .region-summary { gap: 8px; } .region-stat { flex-basis: 100%; } }
