/* 解星與標註（/tools/astrometry） */
.at-page { padding: 0 0 var(--space-2xl, 64px); }
.at-login { padding: 18px 20px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); color: var(--color-text-secondary); }
.at-login a { color: var(--color-accent); font-weight: var(--font-weight-semibold); }
/* 工具頁版面：左 360px 設定欄、右工作區；1100px 以下單欄（照片在上） */
.at-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1100px) {
    .at-grid { grid-template-columns: 360px minmax(0, 1fr); }
    .at-side { order: -1; }
}
@media (max-width: 860px) { .at-grid, .at-side { gap: 12px; } }
.at-main { min-width: 0; }
.at-drop {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; cursor: pointer;
    min-height: 420px; padding: 24px; border: 2px dashed var(--color-border); border-radius: var(--radius-xl);
    background: var(--color-surface); color: var(--color-text-secondary); transition: border-color .15s, background .15s;
}
.at-drop svg { width: 44px; height: 44px; color: var(--color-text-muted); }
.at-drop b { color: var(--color-text); font-size: 1.02rem; }
.at-drop small { max-width: 460px; font-size: 0.8rem; line-height: 1.5; }
.at-drop:hover, .at-drop.is-over { border-color: var(--color-accent); background: var(--color-accent-soft); }
.at-stage { position: relative; border-radius: var(--radius-xl); overflow: hidden; background: #05060d; border: 1px solid var(--color-border); }
.at-stage canvas { display: block; width: 100%; height: auto; max-height: 82vh; cursor: grab; touch-action: none; }
.at-stage canvas.is-drag { cursor: grabbing; }
.at-busy {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: rgba(5, 6, 13, 0.72); backdrop-filter: blur(2px); color: #fff; text-align: center; padding: 20px;
}
.at-busy small { color: rgba(255,255,255,.7); font: 0.76rem/1.4 ui-monospace, Menlo, monospace; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--color-accent, #f5a04a); animation: at-spin .9s linear infinite; }
@keyframes at-spin { to { transform: rotate(360deg); } }
.at-hint { position: absolute; left: 10px; bottom: 8px; margin: 0; font-size: 0.72rem; color: rgba(255,255,255,.55); pointer-events: none; }
.at-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); font-size: 0.86rem; }
.at-msg.is-err { border-color: #d94b4b; color: #ff8c8c; }
.at-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.at-card { padding: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); }
.at-card h2 { margin: 0 0 12px; font-size: 1rem; font-weight: 600; }
.at-card .btn { min-height: 40px; }
.at-checks { display: flex; flex-direction: column; gap: 6px; }
.at-checks label { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; cursor: pointer; }
.at-sliders { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.at-sliders label, .at-selects label, .at-sel { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--color-text-secondary); }
.at-selects { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.at-selects select, .at-sel select { min-height: 36px; padding: 4px 8px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text); font-family: var(--font-primary); }
.at-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.at-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 0.84rem; }
.at-facts dt { color: var(--color-text-muted); }
.at-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.at-card .astro-hint-row input { width: 100px; }
