#archive-dialog { max-width: 470px; }
#archive-dialog > .modal-eyebrow { display: block; padding-right: 34px; line-height: 1.7; }
#archive-dialog h2 { margin-bottom: 22px; }
.archive-calendar { border: 1px solid #343d36; border-radius: 14px; background: #14191b; padding: 16px 12px 10px; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 5px 14px; }
.calendar-heading h3 { margin: 0; font-size: 16px; font-weight: 750; text-transform: capitalize; letter-spacing: -.3px; }
.calendar-navigation { display: flex; gap: 6px; }
.calendar-navigation button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid #343d3c; border-radius: 9px; background: #212728; color: #c3cec6; }
.calendar-navigation svg { width: 20px; height: 20px; }
.calendar-navigation button:hover:not(:disabled) { color: var(--accent); border-color: #6c8050; }
.calendar-navigation button:disabled { opacity: .3; }
.calendar-grid { table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 3px 5px; }
.calendar-grid th { padding: 0 0 7px; text-align: center; font-size: 12px; font-weight: 600; color: #94a39b; }
.calendar-grid td { padding: 0; text-align: center; }
.calendar-day { position: relative; width: 100%; max-width: 46px; height: 44px; border: 1px solid transparent; border-radius: 10px; background: #232b29; padding: 0; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: #ecf0e9; transition: background .15s, border-color .15s; }
.calendar-day:hover:not(:disabled) { background: #333e2c; border-color: #829c58; }
.calendar-day.is-locked { background: #1a2122; color: #a4afaa; }
.calendar-day.is-solved { background: #283322; color: var(--accent); }
.calendar-day.is-today { border-color: #9dbb61; }
.calendar-day.is-selected, .calendar-day.is-selected:hover { background: var(--accent); color: #1b2413; border-color: var(--accent); }
.calendar-day:disabled { background: transparent; color: #59625f; opacity: .65; }
.calendar-day:focus-visible { outline-offset: 1px; }
.calendar-lock { position: absolute; bottom: 3px; right: 4px; width: 6px; height: 5px; border: 1px solid #8c9a8c; border-radius: 1px; }
.calendar-lock::before { content: ''; position: absolute; left: 0; bottom: 3px; width: 4px; height: 4px; border: 1px solid #8c9a8c; border-bottom: 0; border-radius: 4px 4px 0 0; }
.calendar-check { position: absolute; right: 3px; bottom: 1px; font-size: 10px; line-height: 1; }
.calendar-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #2b3430; margin: 10px 5px 0; padding-top: 9px; }
.calendar-legend { color: #98a59b; font-size: 12px; }
.calendar-legend span { color: var(--accent); margin-right: 5px; }
#calendar-today { background: transparent; color: var(--accent); border: 0; padding: 8px 2px; font-size: 13px; font-weight: 700; }
#calendar-today:hover { text-decoration: underline; text-underline-offset: 4px; }
.calendar-selection { color: #b6c3b1; text-align: center; font-size: 13px; line-height: 1.7; margin: 16px 0; }
@media(max-width:420px) {
 #archive-dialog { padding: 30px 18px 22px; }
 .archive-calendar { padding: 12px 6px 8px; }
 .calendar-heading { padding: 0 4px 12px; }
 .calendar-heading h3 { font-size: 14px; }
 .calendar-navigation { gap: 4px; }
 .calendar-navigation button { width: 30px; height: 32px; }
 .calendar-grid { border-spacing: 2px 4px; }
 .calendar-day { height: 40px; border-radius: 8px; }
 .calendar-selection { font-size: 12px; }
}
