.calculator-page { max-width: 920px; }
.calculator-page .page-heading { padding-block: 18px 24px; }
.birth-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; align-items: start; }
.birth-group { min-width: 0; }
.birth-group > legend, .birth-group-label { display: block; width: 100%; margin: 0 0 10px; padding: 0; font-size: 14px; font-weight: 600; }
.input-row { display: grid; gap: 10px; }
.date-parts { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr) minmax(0, 1fr); }
.time-parts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.input-row label { font-size: 12px; color: var(--muted); }
.time-unknown { margin-top: 6px; }
.place-control { grid-column: 1 / -1; }
.place-combobox { position: relative; }
.place-search-icon { position: absolute; top: 15px; left: 14px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
#birth-place { padding-left: 44px; }
#place-suggestions { position: absolute; z-index: 10; top: 100%; left: 0; right: 0; list-style: none; padding: 5px; max-height: 260px; overflow-y: auto; border: 1px solid #b8ad93; border-radius: 6px; background: white; box-shadow: 0 8px 20px #30292315; }
#place-suggestions li { padding: 11px; min-height: 44px; cursor: pointer; font-size: 14px; }
#place-suggestions li:hover, #place-suggestions [aria-selected=true] { background: var(--soft); color: var(--accent); }
#place-status:not(:empty) { color: #3e6245; }
.custom-place-option, .report-name-option { margin-top: 4px; }
.custom-place-option summary, .report-name-option summary { font-size: 13px; width: fit-content; }
#custom-place-fields { padding: 18px; margin-top: 12px; background: var(--soft); border-radius: 6px; }
.report-name-option .field { max-width: 420px; margin-block: 10px; }
.calculator-submit-row { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 10px; }
.calculator-submit-actions { order: -1; display: flex; align-items: center; gap: 24px; }
.form-assurance { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; }
.form-assurance strong { font-weight: 500; }
.form-assurance .form-privacy { margin: 0; font-size: 12px; }
.calculator-form[data-input=date] .birth-form-grid { grid-template-columns: 1fr; max-width: 520px; }
.date-shortcuts { display: flex; gap: 10px; margin-top: 10px; }
.date-shortcuts button { min-height: 36px; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: 5px 14px; font-size: 13px; }
.result-panel { margin-top: 28px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 10px; scroll-margin-top: 110px; }
.result-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.result-heading p { margin-top: 8px; }
.result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.result-actions button { font-size: 12px; min-height: 44px; }
.result-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 24px; }
.result-card { background: #fff5d4; border: 1px solid #ebd795; border-radius: 9px; padding: 16px; }
.result-card strong { display: block; color: var(--accent); font-size: 23px; font-weight: 600; line-height: 1.4; margin-top: 5px; }
.result-card small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.result-card > span { color: var(--muted); font-size: 12px; }
.result-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.result-body:has(.chart-wrap:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.chart-wrap { margin-top: 28px; min-width: 0; }
.chart-wrap h3 { font-size: 17px; margin-bottom: 12px; }
.north-kundli { display: block; width: 100%; height: auto; }
.kundli-bhava { fill: #fffaf0; stroke: #a27347; stroke-width: 1; }
.lagna-bhava { fill: #f4e2c9; }
.kundli-rashi { font-family: var(--hindi); font-size: 12px; fill: #6a3a29; }
.kundli-grahas { font-family: var(--hindi); font-size: 11px; fill: #3a2a22; }
#result-tables { min-width: 0; }
.table-scroll { overflow-x: auto; margin-top: 28px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
caption { font-size: 17px; font-weight: 600; text-align: left; margin-bottom: 12px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; white-space: nowrap; }
th { color: var(--muted); font-size: 12px; font-weight: 500; }
.result-notes, .result-limit { color: var(--muted); font-size: 13px; margin-top: 22px; }
.result-limit h3 { font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.report-guidance { background: linear-gradient(120deg,#fff0b9,#fffaf0); border: 1px solid #e4cf8e; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; padding: 24px; margin-top: 24px; }
.report-brand { color: var(--accent); font-size: 12px; font-weight: 600; margin-bottom: 14px; }
.share-feedback { margin-top: 12px; color: var(--green); }
.share-feedback label { display: block; font-size: 12px; margin-bottom: 7px; }
.share-feedback input { max-width: 100%; font-size: 13px; }
.report-guidance h3 { font-size: 20px; }
.report-guidance > p:not(.eyebrow) { color: var(--muted); margin-top: 10px; font-size: 14px; }
.report-guidance .button { margin-top: 16px; }
.guidance-limits { margin-top: 16px; }
.guidance-limits summary { font-size: 14px; }
.guidance-limits p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.guidance-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.report-guidance > .small { font-size: 12px !important; }
.guidance-marriage-note { border-top: 1px solid #d9cbbb; padding-top: 6px; font-size: 13px; }
.guidance-marriage-note a { display: inline-block; margin-top: 12px; }
.related-tools { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; font-size: 13px; }
.home-birth-form .calculator-submit-actions .primary { flex: 1; }
.home-birth-form .field-help { font-size: 12px; }
.home-birth-form .form-assurance { font-size: 11px; }
.time-check { margin-top:22px; border:1px solid #ccd8c8; border-radius:9px; background:#f3f6f0; padding:15px 18px; }
.time-check>summary { color:#2e513a; font-size:14px; font-weight:600; cursor:pointer; }
.time-check-body>p,.time-check-explanation p { color:#4f6153; font-size:12px; line-height:1.75; margin-top:12px; }
.time-check-options { border:0; margin:16px 0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.time-check-options legend { font-size:12px; margin-bottom:9px; color:#465b4a; }
.time-check-options button { min-height:44px; padding:8px 12px; font:500 12px/1.6 var(--sans); border:1px solid #b9c9b5; border-radius:6px; color:#34533d; background:#fff; cursor:pointer; }
.time-check-options button[aria-pressed=true] { color:white; background:#2e513a; border-color:#2e513a; }
.time-check-clock { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#34533d; font-size:12px; }
.time-check-clock output { font-size:16px; font-weight:600; }
#time-check-slider { width:100%; height:34px !important; padding:0; accent-color:#34533d; background:transparent; border:0; box-shadow:none; }
.time-check-range { display:flex; justify-content:space-between; gap:15px; color:#536356; font-size:10px; }
.time-check-range span:last-child { text-align:right; }
#time-check-results { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:14px; }
#time-check-results>div { min-width:0; background:#fff; border:1px solid #d8e1d5; border-radius:7px; padding:12px; }
#time-check-results>.time-check-varies { background:#fffbf2; border-color:#dcc89e; }
#time-check-results dt { color:#4f6153; font-size:11px; }
#time-check-results dd { margin:7px 0 0; font-size:16px; color:#2e513a; font-weight:600; }
#time-check-results small { display:block; font-size:10px; font-weight:400; margin-top:7px; color:#4f6153; }
#time-check-results .time-check-varies small { color:#78511d; }
.time-check-count { margin-top:10px; font-size:11px; color:#4f6153; }
.time-check-explanation { border:0; padding:0; margin-top:14px; }
.time-check-explanation summary { font-size:12px; color:#4f6153; }
@media(max-width:760px) { #time-check-results { grid-template-columns:repeat(2,minmax(0,1fr)); } .time-check { padding:13px; } }
@media (max-width: 760px) {
  .birth-form-grid { grid-template-columns: 1fr; gap: 18px; }
  .result-body:has(.chart-wrap:not([hidden])) { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .chart-wrap { max-width: 380px; width: 100%; margin-inline: auto; }
  .result-panel { padding: 22px 18px; }
  .result-heading h2 { font-size: 24px; }
}
@media (max-width: 480px) {
  .input-row { gap: 8px; }
  .date-parts { grid-template-columns: minmax(42px, .65fr) minmax(0, 1.7fr) minmax(68px, 1fr); }
  .input-row :is(input,select) { padding-inline: 8px; }
  .calculator-submit-actions { align-items: center; gap: 16px; }
  .calculator-submit-actions .text-button { flex-shrink: 0; font-size: 12px; }
  .result-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .result-card strong { font-size: 20px; }
  .report-guidance { padding: 18px; }
}
@media print {
  .time-check { display:none !important; }
  .calculator-page > .page-heading, .form-panel, .tool-help, .related-tools, .result-actions, .report-guidance, .share-feedback { display: none !important; }
  .result-panel { border: 0; padding: 0; margin: 0; }
  .result-cards { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
  .result-card { padding: 9px; }
  .result-card strong { font-size: 13pt; }
  .result-body:has(.chart-wrap:not([hidden])) { grid-template-columns: 1fr; gap: 0; }
  .chart-wrap { max-width: 250px; margin: 14px auto; }
  .table-scroll { overflow: visible; margin-top: 14px; }
  th, td { font-size: 8pt; padding: 5px 8px; }
  .result-notes, .result-limit { font-size: 8pt; }
}
