* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-app);
  color: var(--text-primary);
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 32px 380px 32px 32px;
  min-height: 100vh;
}

.feature-callout {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 10;
}

.feature-callout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  font-family: inherit;
}

.feature-callout-btn:hover {
  background: var(--bg-user-msg);
}

.feature-callout-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-coral);
  flex-shrink: 0;
  animation: feature-callout-pulse 1.8s ease-in-out infinite;
}

@keyframes feature-callout-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.feature-callout-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 320px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-callout-popover h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  padding-right: 18px;
}

.feature-callout-popover p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-callout-popover p:last-child {
  margin-bottom: 0;
}

.feature-callout-popover .key {
  display: inline-block;
  min-width: 18px;
  text-align: center;
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--bg-sidebar);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
}

.feature-callout-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
  padding: 2px;
}

.feature-callout-close:hover {
  color: var(--text-primary);
}

.view-toggle-wrap {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.view-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.view-info {
  position: relative;
  width: 320px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.view-info-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
  padding: 2px;
}

.view-info-close:hover {
  color: var(--text-primary);
}

.view-info h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  padding-right: 18px;
}

.view-info p {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.view-info p:last-child {
  margin-bottom: 0;
}

.view-toggle-option {
  color: var(--text-muted);
  user-select: none;
}

.view-toggle-option.is-active {
  color: var(--text-primary);
}

.view-toggle-switch {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.view-toggle-switch.is-on {
  background: var(--accent-coral);
}

.view-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: left 0.15s ease;
}

.view-toggle-switch.is-on .view-toggle-knob {
  left: 16px;
}

.page-header {
  max-width: 768px;
  width: 100%;
  text-align: center;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
}

.agenda-nav {
  max-width: 768px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.agenda-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}

.agenda-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.provider-section {
  max-width: 768px;
  width: 100%;
  scroll-margin-top: 24px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.provider-card {
  background: var(--bg-tool-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.provider-card:hover,
.provider-card:focus-visible {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.provider-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.provider-card.is-disabled:hover {
  box-shadow: none;
  transform: none;
}

.provider-name {
  font-size: 15px;
  font-weight: 600;
}

.provider-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 64px;
  height: 24px;
}

.provider-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
