.tool-main-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  margin: 0 auto;
  padding: 1.25rem;
  box-shadow: var(--shadow-base);
}

.calendar-layout {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.dial-section {
  flex: 4;
  position: relative;
  min-width: 0;
}

canvas#calendar-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f1a 100%);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.date-overlay {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  line-height: 1.2;
}

.date-weekday {
  display: block;
  font-size: clamp(0.8rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date-full {
  display: block;
  font-size: clamp(0.5rem, 1vw, 0.75rem);
  color: var(--text-base);
  opacity: 0.5;
  margin-top: 0.2em;
  font-variant-numeric: tabular-nums;
}

.sidebar {
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.5rem 0;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-label {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-base);
  opacity: 0.35;
}

.sidebar-buttons {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.sidebar button {
  min-width: 28px;
  height: 28px;
  padding: 0 0.45rem;
  font-size: 0.65rem;
  font-weight: 500;
  border: 1px solid var(--border-base);
  border-radius: 0.35rem;
  background: var(--bg-page);
  color: var(--text-base);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-page));
}

.sidebar button:active {
  transform: scale(0.95);
}

.sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
  border-bottom: 1px solid var(--border-base);
  border-bottom-width: 0.5px;
}

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

.sidebar-row .slbl {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-base);
  opacity: 0.4;
  font-weight: 500;
}

.sidebar-row .sval {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-base);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
  .calendar-layout {
    flex-direction: column;
  }
  .sidebar {
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
  }
  .sidebar-group {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
  }
  .sidebar-label {
    margin-right: 0.25rem;
  }
  .sidebar-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .sidebar-row {
    border-bottom: none;
    gap: 0.3rem;
  }
}
