/* Western natal wheel overlay (ZET-style) */

.wnw-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(18, 22, 28, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wnw-overlay[hidden] {
    display: none !important;
}

.wnw-dialog {
    width: min(1480px, 100%);
    max-height: calc(100vh - 32px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wnw-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eceff3;
    background: #fafbfc;
}

.wnw-title {
    font-size: 14px;
    line-height: 1.35;
    color: #1f2937;
    font-weight: 600;
}

.wnw-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.wnw-actions button {
    border: 1px solid #d5dbe3;
    background: #fff;
    color: #1f2937;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    cursor: pointer;
}

.wnw-actions button:hover {
    background: #f3f6fa;
}

.wnw-actions .wnw-close {
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
}

.wnw-body {
    overflow: auto;
    padding: 8px 8px 16px;
    background: #fff;
}

.wnw-body svg {
    display: block;
    width: 100%;
    height: auto;
}

.natal-viz-btn {
    flex: 1;
    min-width: 150px;
    background: linear-gradient(180deg, #3d5a80 0%, #2c4a6e 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    min-height: 48px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(44, 74, 110, 0.28);
}

.natal-viz-btn:hover {
    filter: brightness(1.06);
}

.natal-viz-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.natal-viz-btn--matrix {
    background: linear-gradient(180deg, #9c27b0 0%, #6a1b9a 100%);
    box-shadow: 0 4px 12px rgba(106, 27, 154, 0.32);
}

.natal-viz-btn--vedic {
    background: linear-gradient(180deg, #c45c26 0%, #9a3b12 100%);
    box-shadow: 0 4px 12px rgba(154, 59, 18, 0.32);
}

.vk-dialog {
    width: min(1320px, 100%);
}

.vk-tab.is-active {
    background: #9a3b12;
    color: #fff;
    border-color: #9a3b12;
}

.vk-select {
    border: 1px solid #d5dbe3;
    background: #fff;
    color: #1f2937;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    max-width: 260px;
}

.vk-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    user-select: none;
    white-space: nowrap;
}

.vk-toggle input {
    margin: 0;
}

.vk-body {
    background: #fafbfc;
}

.natal-viz-btn--soul {
    background: linear-gradient(180deg, #5c6bc0 0%, #3949ab 100%);
    box-shadow: 0 4px 12px rgba(57, 73, 171, 0.32);
}

.dmc-dialog {
    width: min(1080px, 100%);
}

.dmc-body {
    background: #fff;
}

.sfc-dialog {
    width: min(1800px, 96vw);
    max-width: 1800px;
    height: min(900px, 94vh);
    max-height: 94vh;
}

.sfc-has-timeline .sfc-dialog {
    width: min(1800px, 96vw);
    max-width: 1800px;
    height: min(900px, 94vh);
    max-height: 94vh;
}

.sfc-body {
    background: #fff;
    padding: 0;
    overflow: auto;
    width: 100%;
    box-sizing: border-box;
}

.sfc-inline {
    background: #fff;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.sfc-panels {
    display: grid;
    grid-template-columns: 40% 40% 20%;
    gap: 0;
    width: 100%;
    align-items: start;
}

.sfc-panel {
    min-width: 0;
    box-sizing: border-box;
}

.sfc-formula-panel,
.sfc-cosmo-panel,
.sfc-table-panel {
    width: 100%;
    min-width: 0;
}

.sfc-formula-panel,
.sfc-cosmo-panel {
    overflow: hidden;
}

.sfc-formula-panel svg,
.sfc-cosmo-panel svg {
    display: block;
    width: 100%;
    height: auto;
}

.sfc-body > svg {
    margin-top: 10px;
    border-top: 1px solid #eceff3;
    padding-top: 6px;
    display: block;
    width: 100%;
    height: auto;
}

.sfc-inline > svg {
    margin-top: 10px;
    border-top: 1px solid #eceff3;
    padding-top: 6px;
    display: block;
    width: 100%;
    height: auto;
}

.sfc-table-panel {
    overflow-x: auto;
}

.sfc-tables {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px 12px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    color: #333;
}

.sfc-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d0d0d0;
}

.sfc-table th,
.sfc-table td {
    border: 1px solid #d8d8d8;
    padding: 2px 5px;
    text-align: center;
    white-space: nowrap;
}

.sfc-table th {
    background: #f5f5f5;
    font-weight: 600;
    font-size: 11px;
}

.sfc-table td:first-child {
    text-align: left;
}

.sfc-score-table td:first-child {
    width: 48%;
}

.sfc-table .sfc-total {
    font-weight: 700;
    background: #fafafa;
}

.sfc-glyph {
    font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", sans-serif;
    font-size: 14px;
}

.sfc-planet-table td,
.sfc-age-table td {
    font-size: 11px;
    padding: 1px 4px;
}

@media (max-width: 1100px) {
    .sfc-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .wnw-title {
        font-size: 12px;
    }
    .wnw-dialog {
        max-height: 100vh;
        border-radius: 0;
        width: 100%;
    }
    .wnw-overlay {
        padding: 0;
    }
}

.wnw-timeline {
    margin: 8px 12px 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f4f6f9;
    border: 1px solid #d8dee8;
}
.wnw-timeline-title {
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 8px;
    color: #1a237e;
}
.wnw-timeline-sect {
    font-weight: 600;
    color: #5c6bc0;
}
.wnw-timeline-section {
    margin: 12px 0 6px;
    font-size: 12px;
    font-weight: 800;
    color: #37474f;
    letter-spacing: 0.02em;
}
.wnw-timeline-rows {
    display: grid;
    gap: 6px;
}
.wnw-timeline-row {
    display: grid;
    grid-template-columns: minmax(120px, 1.2fr) 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e3e8f0;
    font-size: 12px;
}
.wnw-timeline-row.is-major {
    border-left: 3px solid #3949ab;
}
.wnw-timeline-row.is-minor {
    border-left: 3px solid #00897b;
    background: #f7fffe;
}
.wnw-timeline-row.is-current {
    border-color: #d32f2f;
    box-shadow: 0 0 0 1px rgba(211, 47, 47, 0.25);
}
.wnw-tl-label { font-weight: 700; color: #263238; }
.wnw-tl-span { color: #546e7a; }
.wnw-tl-detail { color: #90a4ae; white-space: nowrap; }

.wnw-chart-root--astro-numer {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wnw-numerology {
    margin: 4px 12px 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(160deg, #f7f3ff 0%, #eef6ff 55%, #f4faf6 100%);
    border: 1px solid #d5dde8;
}
.wnw-numerology-title {
    font-weight: 800;
    font-size: 14px;
    color: #283593;
    margin-bottom: 10px;
}
.wnw-numerology-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.wnw-num-chip {
    background: #fff;
    border: 1px solid #c5cae9;
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
}
.wnw-num-chip__value {
    font-size: 26px;
    font-weight: 900;
    color: #1a237e;
    line-height: 1.1;
}
.wnw-num-chip__label {
    font-size: 11px;
    font-weight: 700;
    color: #5c6bc0;
    margin-top: 4px;
}
.wnw-num-chip__hint {
    font-size: 10px;
    color: #78909c;
    margin-top: 6px;
    line-height: 1.3;
}
.wnw-numerology-hub {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 4px;
}
.wnw-num-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #d1d9e6;
    border-radius: 999px;
    padding: 4px 10px 4px 6px;
}
.wnw-num-mini__v {
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #3949ab;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wnw-num-mini__l {
    font-size: 11px;
    color: #455a64;
    font-weight: 600;
}
.wnw-numerology-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin: 8px 0 10px;
}
.wnw-num-day {
    background: #fff;
    border: 1px solid #dce3ee;
    border-radius: 10px;
    padding: 6px 4px;
    text-align: center;
}
.wnw-num-day__wd {
    font-size: 10px;
    color: #78909c;
    font-weight: 700;
}
.wnw-num-day__n {
    font-size: 18px;
    font-weight: 900;
    color: #1565c0;
    line-height: 1.2;
}
.wnw-num-day__dt {
    font-size: 9px;
    color: #90a4ae;
}
.wnw-numerology-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.wnw-numerology-person {
    background: #fff;
    border: 1px solid #dce3ee;
    border-radius: 12px;
    padding: 10px 12px;
}
.wnw-numerology-person__name {
    font-weight: 800;
    color: #283593;
    margin-bottom: 6px;
    font-size: 13px;
}
.wnw-numerology-person__row {
    font-size: 12px;
    color: #455a64;
    margin: 2px 0;
}
.wnw-numerology-sub {
    font-size: 12px;
    font-weight: 800;
    color: #37474f;
    margin: 10px 0 6px;
}
.wnw-numerology-square {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-width: 280px;
}
.wnw-pyth-cell {
    background: #fff;
    border: 1px solid #90caf9;
    border-radius: 10px;
    padding: 6px;
    text-align: center;
}
.wnw-pyth-cell.is-empty {
    border-color: #cfd8dc;
    opacity: 0.7;
}
.wnw-pyth-cell.is-strong {
    border-color: #43a047;
    background: #f1f8e9;
}
.wnw-pyth-cell__d {
    font-size: 10px;
    font-weight: 800;
    color: #5c6bc0;
}
.wnw-pyth-cell__v {
    font-size: 13px;
    font-weight: 800;
    color: #263238;
}
.wnw-numerology-note {
    margin-top: 10px;
    font-size: 12px;
    color: #546e7a;
    line-height: 1.4;
}
@media (max-width: 720px) {
    .wnw-numerology-week {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .wnw-numerology-pair {
        grid-template-columns: 1fr;
    }
}
