.card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

h3 {
    margin-top: 0;
}

.row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
}

label {
    font-size: 12px;
    color: #555;
}

select, input, button {
    padding: 6px 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    text-align: right;
}

th:first-child,
td:first-child {
    text-align: left;
}

canvas {
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    margin-top: 10px;
}

.muted {
    color: #777;
    font-size: 13px;
}

/* South Indian charts */
.chartsRow { display:flex; gap:16px; flex-wrap:wrap; }
.chartBox { flex: 1 1 420px; min-width: 360px; }
.southChart {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 0;
    border: 1px solid #bbb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.cell {
    border: 1px solid #ddd;
    min-height: 78px;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.2;
}
.cell.blank { background: #fafafa; border: 1px solid #f0f0f0; }
.cell .sign { font-weight: 600; color:#333; margin-bottom: 4px; }
.cell .pl { color:#111; }
.cell.asc { outline: 2px solid #009900; outline-offset: -2px; }
.legend { font-size: 12px; color:#555; margin: 6px 0 0; }
.planet-label {
    font-weight: 700;
    color: #d40b0b;        /* deep blue */
}
#dashaTable th, #dashaTable td,
#bhuktiTable th, #bhuktiTable td {
    text-align: left;
    white-space: nowrap;
}
.southChart {
    position: relative;            /* required for absolute center overlay */
}

/* Center box spanning the middle 2x2 empty area */
.southChart .centerBox {
    position: absolute;
    left: 25%;
    top: 25%;
    width: 50%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;

    border: 1px solid #999;
    border-radius: 10px;
    background: #fff;
}

.southChart .centerBox .t1 { font-weight: 700; }
.southChart .centerBox .t2 { margin-top: 6px; font-size: 12px; color: #333; }
.southChart .centerBox .t3 { margin-top: 6px; font-size: 12px; color: #333; }