/* ============================================================
   Date & Time Calculator PWA — Styles
   Aesthetic: Luxury Precision Instrument
   Dark Navy × Gold × Clean Geometry
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=JetBrains+Mono:wght@300;400;500;600&family=Outfit:wght@300;400;500;600&display=swap');

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  --bg-base:       #070E1C;
  --bg-surface:    #0D1B33;
  --bg-card:       #111F3A;
  --bg-input:      #0A1628;
  --bg-hover:      #162847;

  --gold:          #D4AF37;
  --gold-light:    #F0D060;
  --gold-dim:      #8A6F1E;
  --gold-subtle:   rgba(212,175,55,0.12);

  --text-primary:  #EEF2F8;
  --text-secondary:#8BA3C7;
  --text-muted:    #4A6080;
  --text-gold:     #D4AF37;

  --accent-teal:   #2AABBC;
  --accent-green:  #2ECC71;
  --accent-red:    #E74C3C;
  --accent-blue:   #5B8AF0;

  --border:        rgba(212,175,55,0.18);
  --border-input:  rgba(139,163,199,0.22);
  --border-focus:  rgba(212,175,55,0.6);

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-xl:     24px;

  --shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:     0 6px 24px rgba(0,0,0,0.45);
  --shadow-gold:   0 0 24px rgba(212,175,55,0.15);

  --font-serif:    'DM Serif Display', Georgia, serif;
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;
  --font-body:     'Outfit', system-ui, sans-serif;

  --transition:    all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h:         64px;
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100dvh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(212,175,55,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(91,138,240,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; }

/* ── App Shell ───────────────────────────────────────────────── */
#app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ── Top Header ──────────────────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--nav-h);
  background: rgba(7, 14, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--gold-subtle);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.logo-text span {
  color: var(--gold);
}

.header-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

/* ── Navigation Tabs ─────────────────────────────────────────── */
.nav-tabs-wrapper {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-tabs-wrapper::-webkit-scrollbar { display: none; }

.nav-tabs {
  display: flex;
  padding: 0 12px;
  min-width: max-content;
  gap: 2px;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.02em;
  position: relative;
}

.nav-tab .tab-icon {
  font-size: 15px;
  line-height: 1;
}

.nav-tab:hover {
  color: var(--text-secondary);
  background: var(--gold-subtle);
}

.nav-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── Main Content ────────────────────────────────────────────── */
.main-content {
  flex: 1;
  padding: 28px 20px 80px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

/* ── Panels ──────────────────────────────────────────────────── */
.panel {
  display: none;
  animation: panelIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.panel.active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Panel Header ────────────────────────────────────────────── */
.panel-header {
  margin-bottom: 28px;
}

.panel-title {
  font-size: clamp(24px, 5vw, 32px);
  color: var(--text-primary);
  margin-bottom: 6px;
}

.panel-title em {
  color: var(--gold);
  font-style: italic;
}

.panel-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ── Card ────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(212,175,55,0.28);
  box-shadow: var(--shadow-gold);
}

.card-title {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Form Elements ───────────────────────────────────────────── */
.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

label {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

input[type="date"],
input[type="time"],
input[type="number"],
input[type="text"],
select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

input:focus, select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
  background: #0D1E38;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.6) sepia(1) saturate(3) hue-rotate(5deg);
  cursor: pointer;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238BA3C7' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #C9A227, #D4AF37, #E8C84A);
  color: #0A1628;
  box-shadow: 0 4px 16px rgba(212,175,55,0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212,175,55,0.45);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border-input);
}

.btn-secondary:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text-secondary);
  background: var(--gold-subtle);
}

.btn-full { width: 100%; }

.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
}

/* ── Result Box ──────────────────────────────────────────────── */
.result-box {
  background: linear-gradient(135deg, rgba(212,175,55,0.06), rgba(91,138,240,0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
  display: none;
  animation: resultIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.result-box.show { display: block; }

@keyframes resultIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.result-primary {
  font-family: var(--font-mono);
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.result-label {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.result-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.breakdown-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.breakdown-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  line-height: 1.2;
}

.breakdown-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

/* ── Stat Row ────────────────────────────────────────────────── */
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-row:last-child { border-bottom: none; }

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.stat-value.highlight { color: var(--gold); }

/* ── Toggle Buttons ──────────────────────────────────────────── */
.toggle-group {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.toggle-btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: none;
  border-radius: calc(var(--radius-md) - 3px);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.toggle-btn.active {
  background: var(--gold);
  color: var(--bg-base);
  font-weight: 600;
}

/* ── Timezone Converter ──────────────────────────────────────── */
.tz-display {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.tz-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.tz-name {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tz-time {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.tz-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-family: var(--font-mono);
}

.tz-arrow {
  font-size: 20px;
  color: var(--gold);
  text-align: center;
}

/* ── Countdown ───────────────────────────────────────────────── */
.countdown-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.cd-unit {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  text-align: center;
  transition: var(--transition);
}

.cd-unit.pulse {
  border-color: var(--gold);
  animation: cdPulse 0.3s ease;
}

@keyframes cdPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.cd-value {
  font-family: var(--font-mono);
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 600;
  color: var(--gold-light);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.cd-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.countdown-event-name {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.countdown-status {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

/* ── Time Calculator Rows ────────────────────────────────────── */
.time-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.time-row-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 30px;
}

.time-row-sign {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--gold);
  text-align: center;
  min-width: 24px;
}

.time-row-remove {
  background: none;
  border: 1px solid rgba(231,76,60,0.3);
  border-radius: var(--radius-sm);
  color: var(--accent-red);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  padding: 0;
  flex-shrink: 0;
}

.time-row-remove:hover { background: rgba(231,76,60,0.15); }

/* ── Working Days ────────────────────────────────────────────── */
.holiday-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  margin: 4px;
}

.holiday-tag button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.holiday-tag button:hover { color: var(--accent-red); }

.tags-container {
  display: flex;
  flex-wrap: wrap;
  min-height: 36px;
  padding: 4px;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

/* ── Unit Converter within Time ──────────────────────────────── */
.dual-input {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
}

.convert-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  color: var(--gold);
  font-size: 20px;
}

/* ── Snackbar / Toast ────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  z-index: 999;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Error/Info States ───────────────────────────────────────── */
.error-msg {
  font-size: 13px;
  color: var(--accent-red);
  font-family: var(--font-mono);
  margin-top: 8px;
  display: none;
  padding: 8px 12px;
  background: rgba(231,76,60,0.08);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent-red);
}

.error-msg.show { display: block; }

/* ── Info Chips ──────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  border: 1px solid;
}

.chip-gold  { background: rgba(212,175,55,0.1); color: var(--gold); border-color: var(--gold-dim); }
.chip-teal  { background: rgba(42,171,188,0.1); color: var(--accent-teal); border-color: var(--accent-teal); }
.chip-green { background: rgba(46,204,113,0.1); color: var(--accent-green); border-color: var(--accent-green); }
.chip-red   { background: rgba(231,76,60,0.1);  color: var(--accent-red);   border-color: var(--accent-red); }

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ── Offline Banner ──────────────────────────────────────────── */
.offline-banner {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(231,76,60,0.9), rgba(192,57,43,0.9));
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  font-family: var(--font-mono);
  z-index: 99;
  letter-spacing: 0.06em;
}

.offline-banner.show { display: block; }

/* ── Update Banner ───────────────────────────────────────────── */
.update-banner {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  z-index: 200;
  box-shadow: var(--shadow-gold);
  max-width: 300px;
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.update-banner.show { display: block; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 560px) {
  :root { --nav-h: 56px; }

  .main-content { padding: 20px 14px 80px; }

  .card { padding: 18px; }

  .form-row.cols-2 { grid-template-columns: 1fr; }
  .form-row.cols-3 { grid-template-columns: 1fr 1fr; }

  .countdown-display { grid-template-columns: repeat(2, 1fr); }

  .result-primary { font-size: 32px; }

  .tz-display { grid-template-columns: 1fr; gap: 10px; }
  .tz-arrow { transform: rotate(90deg); }

  .time-row {
    grid-template-columns: auto 1fr 1fr 1fr auto;
    font-size: 12px;
  }

  .logo-text { font-size: 16px; }
  .header-time { display: none; }

  .dual-input { grid-template-columns: 1fr; }
  .convert-arrow { transform: rotate(90deg); height: 24px; }

  .result-breakdown { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 360px) {
  .form-row.cols-3 { grid-template-columns: 1fr; }
  .nav-tab { padding: 11px 11px; font-size: 12px; }
  .nav-tab .tab-icon { font-size: 13px; }
}

@media (prefers-color-scheme: light) {
  /* Intentionally keeping dark theme — it's a design decision */
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ── History Section ─────────────────────────────────────────── */
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.history-item:hover {
  border-color: var(--border-focus);
  background: var(--bg-hover);
}

.history-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.history-desc {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
}

.history-result {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
}

.history-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ── Week highlight for working days ─────────────────────────── */
.weekday-check {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.weekday-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-input);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.weekday-btn.active {
  background: var(--gold);
  color: var(--bg-base);
  border-color: var(--gold);
}

.weekday-btn:hover:not(.active) {
  border-color: var(--border-focus);
  color: var(--text-primary);
}

/* ── Print styles ────────────────────────────────────────────── */
@media print {
  .app-header, .nav-tabs-wrapper, .btn { display: none !important; }
  body { background: white; color: black; }
  .result-box { border: 1px solid #ccc; }
}
