.ce-wrap {
--ce-border: #dfe4ea;
--ce-text: #1d2733;
--ce-muted: #637083;
--ce-bg: #ffffff;
--ce-soft: #f5f7fa;
--ce-accent: #1769aa;
--ce-accent-dark: #0f4f84;
--ce-success: #147a42;
--ce-warning: #a45a00;
--ce-danger: #b42318;
max-width: 1080px;
margin: 24px auto;
color: var(--ce-text);
font-family: inherit;
line-height: 1.55;
}
.ce-wrap * { box-sizing: border-box; }
.ce-hero {
display: flex;
gap: 18px;
align-items: center;
padding: 24px;
margin-bottom: 16px;
border: 1px solid var(--ce-border);
border-radius: 16px;
background: linear-gradient(135deg, #fff8e8 0%, #ffffff 55%, #eef7ff 100%);
}
.ce-hero-icon {
width: 64px;
height: 64px;
display: grid;
place-items: center;
flex: 0 0 64px;
border-radius: 50%;
background: #ffcc4d;
color: #503700;
font-size: 34px;
box-shadow: inset 0 0 0 7px rgba(255,255,255,.5);
}
.ce-title { margin: 0 0 4px; font-size: clamp(1.55rem, 2.5vw, 2.15rem); line-height: 1.2; }
.ce-lead { margin: 0; color: var(--ce-muted); }
.ce-notice {
padding: 13px 16px;
margin: 0 0 18px;
border-radius: 10px;
border: 1px solid #cfe1f2;
background: #f2f8fd;
font-size: .94rem;
}
.ce-panel {
margin: 20px 0;
padding: 22px;
border: 1px solid var(--ce-border);
border-radius: 16px;
background: var(--ce-bg);
box-shadow: 0 6px 24px rgba(20, 36, 55, .055);
}
.ce-section-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ce-section-head h3 { margin: 0 0 3px; font-size: 1.28rem; }
.ce-section-head p { margin: 0; color: var(--ce-muted); font-size: .94rem; }
.ce-controls {
display: grid;
grid-template-columns: repeat(12, minmax(0, 1fr));
gap: 12px;
align-items: end;
}
.ce-controls-global .ce-field { grid-column: span 4; }
.ce-controls-global .ce-field-small { grid-column: span 3; }
.ce-controls-global .ce-button { grid-column: span 5; }
.ce-controls-local .ce-field { grid-column: span 3; }
.ce-controls-local .ce-field-small { grid-column: span 2; }
.ce-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ce-field-grow { flex: 1 1 auto; }
.ce-field > span { font-size: .87rem; font-weight: 700; color: #39475a; }
.ce-field input {
width: 100%;
min-height: 44px;
padding: 9px 11px;
border: 1px solid #cbd3dd;
border-radius: 9px;
background: #fff;
color: var(--ce-text);
font: inherit;
}
.ce-field input:focus { outline: 3px solid rgba(23, 105, 170, .12); border-color: var(--ce-accent); }
.ce-location-search { display: flex; align-items: end; gap: 10px; margin-bottom: 12px; }
.ce-input-button-row { display: flex; gap: 8px; }
.ce-input-button-row input { flex: 1 1 auto; }
.ce-button {
min-height: 44px;
padding: 9px 15px;
border-radius: 9px;
border: 1px solid transparent;
font: inherit;
font-weight: 700;
cursor: pointer;
transition: transform .05s ease, background .15s ease, border-color .15s ease;
}
.ce-button:active { transform: translateY(1px); }
.ce-button:disabled { opacity: .58; cursor: wait; }
.ce-button-primary { background: var(--ce-accent); color: #fff; }
.ce-button-primary:hover { background: var(--ce-accent-dark); }
.ce-button-secondary { background: #eef5fb; color: #174c78; border-color: #c8ddef; }
.ce-button-secondary:hover { background: #e2f0fb; }
.ce-button-ghost { background: #fff; color: #354559; border-color: #cbd3dd; }
.ce-button-ghost:hover { background: #f7f9fb; }
.ce-button-wide { width: 100%; margin-top: 14px; }
.ce-location-feedback, .ce-status { min-height: 1.5em; margin-top: 10px; color: var(--ce-muted); font-size: .91rem; }
.ce-feedback-success { color: var(--ce-success); }
.ce-feedback-error { color: var(--ce-danger); }
.ce-results { margin-top: 16px; }
.ce-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ce-card {
position: relative;
overflow: hidden;
border: 1px solid var(--ce-border);
border-radius: 13px;
background: #fff;
padding: 17px;
}
.ce-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #9aa7b5; }
.ce-card[data-kind="solar"]::before { background: #e5a100; }
.ce-card[data-kind="lunar"]::before { background: #6673c7; }
.ce-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ce-card-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ce-eclipse-preview { flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.ce-eclipse-preview svg { width: 58px; height: 58px; display: block; border-radius: 12px; box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.ce-eclipse-preview span { font-size: .67rem; color: var(--ce-muted); line-height: 1.1; white-space: nowrap; }
.ce-card-title { margin: 0; font-size: 1.08rem; }
.ce-card-date { margin: 4px 0 0; color: var(--ce-muted); font-size: .9rem; }
.ce-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: #eef1f5; font-size: .77rem; font-weight: 800; white-space: nowrap; }
.ce-badge-total { background: #1f2937; color: #fff; }
.ce-badge-annular { background: #fff0bd; color: #604300; }
.ce-badge-partial { background: #e9f2fb; color: #164b78; }
.ce-badge-penumbral { background: #eeeafa; color: #55418a; }
.ce-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 14px 0 0; }
.ce-meta-item { padding: 8px 10px; border-radius: 8px; background: var(--ce-soft); }
.ce-meta-label { display: block; color: var(--ce-muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; }
.ce-meta-value { display: block; margin-top: 1px; font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }
.ce-card-note { margin: 12px 0 0; font-size: .87rem; color: var(--ce-muted); }
.ce-card-note strong { color: var(--ce-text); }
.ce-visibility-good { color: var(--ce-success); font-weight: 800; }
.ce-visibility-limited { color: var(--ce-warning); font-weight: 800; }
.ce-visibility-no { color: var(--ce-danger); font-weight: 800; }
.ce-region-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.ce-region-text { flex: 1 1 220px; font-size: .86rem; color: var(--ce-muted); }
.ce-mini-button { min-height: 34px; padding: 5px 9px; font-size: .8rem; }
.ce-phase-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .85rem; }
.ce-phase-table th, .ce-phase-table td { padding: 6px 7px; border-top: 1px solid #e7ebef; text-align: left; vertical-align: top; }
.ce-phase-table th { color: var(--ce-muted); font-weight: 700; width: 34%; }
.ce-empty { padding: 16px; border: 1px dashed #cbd3dd; border-radius: 10px; color: var(--ce-muted); background: #fafbfc; }
.ce-error-box { padding: 13px 15px; border: 1px solid #f1c2bd; border-radius: 10px; background: #fff5f4; color: #8e2118; }
.ce-footnote { margin: 18px 4px; font-size: .88rem; color: var(--ce-muted); }
.ce-footnote p { margin: 7px 0; }
.ce-osm-credit { font-size: .8rem; }
@media (max-width: 800px) {
.ce-controls-global .ce-field,
.ce-controls-global .ce-field-small,
.ce-controls-global .ce-button,
.ce-controls-local .ce-field,
.ce-controls-local .ce-field-small { grid-column: span 6; }
.ce-result-grid { grid-template-columns: 1fr; }
.ce-location-search { align-items: stretch; flex-direction: column; }
}
@media (max-width: 560px) {
.ce-wrap { margin: 14px auto; }
.ce-panel, .ce-hero { padding: 16px; border-radius: 12px; }
.ce-hero { align-items: flex-start; }
.ce-hero-icon { width: 48px; height: 48px; flex-basis: 48px; font-size: 26px; }
.ce-controls-global .ce-field,
.ce-controls-global .ce-field-small,
.ce-controls-global .ce-button,
.ce-controls-local .ce-field,
.ce-controls-local .ce-field-small { grid-column: 1 / -1; }
.ce-input-button-row { flex-direction: column; }
.ce-meta { grid-template-columns: 1fr; }
.ce-card-top { flex-direction: column; }
} .ce-type-filter {
margin: 0 0 16px;
padding: 0;
border: 0;
}
.ce-type-filter legend {
margin: 0 0 7px;
padding: 0;
color: #39475a;
font-size: .87rem;
font-weight: 700;
}
.ce-segmented {
display: inline-flex;
flex-wrap: wrap;
gap: 5px;
padding: 4px;
border: 1px solid var(--ce-border);
border-radius: 11px;
background: var(--ce-soft);
}
.ce-segmented label {
position: relative;
margin: 0;
cursor: pointer;
}
.ce-segmented input {
position: absolute;
inline-size: 1px;
block-size: 1px;
margin: -1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
clip-path: inset(50%);
}
.ce-segmented span {
display: inline-flex;
min-height: 38px;
align-items: center;
justify-content: center;
padding: 7px 14px;
border-radius: 8px;
color: #465568;
font-size: .88rem;
font-weight: 750;
transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.ce-segmented input:checked + span {
background: #fff;
color: var(--ce-accent-dark);
box-shadow: 0 1px 4px rgba(20, 36, 55, .13);
}
.ce-segmented input:focus-visible + span {
outline: 3px solid rgba(23, 105, 170, .22);
outline-offset: 1px;
}
.ce-shadow-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
margin-top: 13px;
}
.ce-shadow-button {
min-height: 36px;
padding: 6px 11px;
font-size: .82rem;
}
.ce-shadow-panel {
margin-top: 13px;
padding: 12px;
border: 1px solid #d9e0e8;
border-radius: 11px;
background: #fafbfc;
}
.ce-shadow-panel[hidden] { display: none !important; }
.ce-shadow-status {
min-height: 1.45em;
margin: 0 0 9px;
color: var(--ce-muted);
font-size: .84rem;
}
.ce-shadow-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin: 0 0 10px;
flex-wrap: wrap;
}
.ce-shadow-toolbar[hidden] { display: none !important; }
.ce-shadow-toolbar-note {
color: var(--ce-muted);
font-size: .8rem;
}
.ce-shadow-map {
border: 1px solid #cfd6de;
border-radius: 9px;
background: #fff;
}
.ce-shadow-map-viewport {
width: 100%;
min-height: 330px;
max-height: 520px;
overflow: auto;
}
.ce-shadow-map-stage {
position: relative;
width: 100%;
aspect-ratio: 1280 / 649;
min-width: 100%;
}
.ce-shadow-map-stage img,
.ce-shadow-modal-stage img {
display: block;
width: 100%;
height: 100%;
object-fit: fill;
user-select: none;
}
.ce-shadow-map-stage canvas,
.ce-shadow-modal-stage canvas {
position: absolute;
inset: 0;
display: block;
width: 100%;
height: 100%;
pointer-events: none;
}
.ce-shadow-legend {
display: flex;
flex-wrap: wrap;
gap: 8px 13px;
align-items: center;
margin-top: 9px;
color: var(--ce-muted);
font-size: .78rem;
}
.ce-shadow-key {
width: 18px;
height: 9px;
border-radius: 3px;
border: 1px solid rgba(0,0,0,.14);
}
.ce-shadow-key-1 { background: rgba(246, 190, 31, .25); }
.ce-shadow-key-2 { background: rgba(231, 145, 20, .38); }
.ce-shadow-key-3 { background: rgba(191, 73, 24, .48); }
.ce-shadow-key-4 { background: rgba(98, 27, 18, .62); }
.ce-shadow-key-path {
width: 20px;
height: 0;
border: 0;
border-top: 2px dashed #9a4a00;
border-radius: 0;
}
.ce-shadow-note {
margin: 9px 0 0;
color: var(--ce-muted);
font-size: .79rem;
line-height: 1.45;
}
.ce-shadow-modal {
position: fixed;
inset: 0;
z-index: 99999;
}
.ce-shadow-modal[hidden] { display: none !important; }
.ce-shadow-modal-backdrop {
position: absolute;
inset: 0;
background: rgba(10, 18, 27, .62);
}
.ce-shadow-modal-dialog {
position: relative;
z-index: 1;
width: min(96vw, 1680px);
height: min(90vh, 1080px);
margin: 4vh auto 0;
background: #fff;
border-radius: 14px;
box-shadow: 0 20px 60px rgba(0,0,0,.35);
display: flex;
flex-direction: column;
overflow: hidden;
}
.ce-shadow-modal-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
padding: 14px 16px;
border-bottom: 1px solid #e1e7ee;
background: #fafbfc;
}
.ce-shadow-modal-header p {
margin: 4px 0 0;
color: var(--ce-muted);
font-size: .82rem;
}
.ce-shadow-modal-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.ce-shadow-modal-viewport {
flex: 1 1 auto;
overflow: auto;
background: #f3f6f8;
padding: 12px;
}
.ce-shadow-modal-stage {
position: relative;
width: 1880px;
height: 954px;
transform-origin: top left;
}
body.ce-shadow-modal-open {
overflow: hidden;
}
@media (max-width: 560px) {
.ce-wrap { margin: 14px auto; }
.ce-panel, .ce-hero { padding: 16px; border-radius: 12px; }
.ce-hero { align-items: flex-start; }
.ce-hero-icon { width: 48px; height: 48px; flex-basis: 48px; font-size: 26px; }
.ce-controls-global .ce-field,
.ce-controls-global .ce-field-small,
.ce-controls-global .ce-button,
.ce-controls-local .ce-field,
.ce-controls-local .ce-field-small { grid-column: 1 / -1; }
.ce-input-button-row { flex-direction: column; }
.ce-meta { grid-template-columns: 1fr; }
.ce-card-top { flex-direction: column; }
} .ce-type-filter {
margin: 0 0 16px;
padding: 0;
border: 0;
}
.ce-type-filter legend {
margin: 0 0 7px;
padding: 0;
color: #39475a;
font-size: .87rem;
font-weight: 700;
}
.ce-segmented {
display: inline-flex;
flex-wrap: wrap;
gap: 5px;
padding: 4px;
border: 1px solid var(--ce-border);
border-radius: 11px;
background: var(--ce-soft);
}
.ce-segmented label {
position: relative;
margin: 0;
cursor: pointer;
}
.ce-segmented input {
position: absolute;
inline-size: 1px;
block-size: 1px;
margin: -1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
clip-path: inset(50%);
}
.ce-segmented span {
display: inline-flex;
min-height: 38px;
align-items: center;
justify-content: center;
padding: 7px 14px;
border-radius: 8px;
color: #465568;
font-size: .88rem;
font-weight: 750;
transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.ce-segmented input:checked + span {
background: #fff;
color: var(--ce-accent-dark);
box-shadow: 0 1px 4px rgba(20, 36, 55, .13);
}
.ce-segmented input:focus-visible + span {
outline: 3px solid rgba(23, 105, 170, .22);
outline-offset: 1px;
}
.ce-shadow-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
margin-top: 13px;
}
.ce-shadow-button {
min-height: 36px;
padding: 6px 11px;
font-size: .82rem;
}
.ce-shadow-panel {
margin-top: 13px;
padding: 12px;
border: 1px solid #d9e0e8;
border-radius: 11px;
background: #fafbfc;
}
.ce-shadow-panel[hidden] { display: none !important; }
.ce-shadow-status {
min-height: 1.45em;
margin: 0 0 9px;
color: var(--ce-muted);
font-size: .84rem;
}
.ce-shadow-map {
position: relative;
width: 100%;
aspect-ratio: 940 / 477;
overflow: hidden;
border: 1px solid #cfd6de;
border-radius: 9px;
background: #fff;
}
.ce-shadow-map img {
display: block;
width: 100%;
height: 100%;
object-fit: fill;
user-select: none;
}
.ce-shadow-map canvas {
position: absolute;
inset: 0;
display: block;
width: 100%;
height: 100%;
pointer-events: none;
}
.ce-shadow-legend {
display: flex;
flex-wrap: wrap;
gap: 8px 13px;
align-items: center;
margin-top: 9px;
color: var(--ce-muted);
font-size: .78rem;
}
.ce-shadow-legend-item {
display: inline-flex;
gap: 5px;
align-items: center;
}
.ce-shadow-key {
width: 18px;
height: 9px;
border-radius: 3px;
border: 1px solid rgba(0,0,0,.14);
}
.ce-shadow-key-1 { background: rgba(246, 190, 31, .25); }
.ce-shadow-key-2 { background: rgba(231, 145, 20, .38); }
.ce-shadow-key-3 { background: rgba(191, 73, 24, .48); }
.ce-shadow-key-4 { background: rgba(98, 27, 18, .62); }
.ce-shadow-key-path {
width: 20px;
height: 0;
border: 0;
border-top: 2px dashed #9a4a00;
border-radius: 0;
}
.ce-shadow-note {
margin: 9px 0 0;
color: var(--ce-muted);
font-size: .79rem;
line-height: 1.45;
}
@media (max-width: 560px) {
.ce-segmented { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.ce-segmented span { padding-inline: 8px; }
.ce-shadow-panel { padding: 9px; }
.ce-shadow-legend { gap: 6px 10px; }
.ce-shadow-map-viewport { min-height: 220px; max-height: 360px; }
.ce-shadow-modal-dialog { width: 98vw; height: 92vh; margin-top: 2vh; }
.ce-shadow-modal-header { flex-direction: column; align-items: stretch; }
.ce-shadow-modal-actions { justify-content: flex-start; }
.ce-shadow-modal-viewport { padding: 8px; }
}
@media (max-width: 640px) {
.ce-card-heading { align-items: flex-start; }
.ce-eclipse-preview svg { width: 50px; height: 50px; }
.ce-eclipse-preview span { font-size: .64rem; }
}