/* S1 / S2 — classes prefixed .an- */

.an-main { min-width: 0; }
.an-card { padding: 24px; }
.an-card-wide { padding: 24px; }
.an-card .title, .an-card-wide .title { margin: 0 0 6px; }
.an-card .subtitle, .an-card-wide .subtitle { margin: 0 0 18px; }
.an-providers { margin: -8px 0 16px; }

/* S1 grid */
.an-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: stretch;
}
.an-illu {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius, 18px);
  overflow: hidden;
  background: var(--blue-soft, #e8f1fd);
}
.an-illu-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.an-bubble {
  position: absolute;
  top: 16px;
  left: 16px;
  max-width: 130px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink, #12294d);
  font-style: italic;
  font-size: 14px;
  line-height: 1.3;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.an-rec { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.an-rec-box {
  background: var(--blue-tint, #f3f8ff);
  border: 1px solid var(--line, #dbe3ee);
  border-radius: var(--radius, 18px);
  padding: 20px 16px;
  display: flex;
  justify-content: center;
  text-align: center;
}
.an-text { display: grid; gap: 10px; }
.an-or { display: flex; align-items: center; gap: 12px; color: var(--muted, #61728a); font-size: 13px; }
.an-or::before, .an-or::after { content: ""; flex: 1; height: 1px; background: var(--line, #dbe3ee); }
.an-text-title { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink, #12294d); }
.an-textarea { width: 100%; box-sizing: border-box; min-height: 96px; }
.an-text-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.an-text-go { flex: none; }
.an-tips { padding: 4px 8px; font-size: 14px; color: var(--text, #2b3b52); }
.an-tips-title { display: flex; align-items: center; gap: 8px; color: var(--ink, #12294d); margin-bottom: 6px; }
.an-tips ul { margin: 0; padding-left: 28px; display: grid; gap: 4px; font-size: 13px; }

.an-bar {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--blue-tint, #f3f8ff);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text, #2b3b52);
}
.an-bar-text { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.an-bar-text svg { flex: none; margin-top: 2px; color: var(--blue, #1b6ee6); }
.an-skip { flex: none; display: inline-flex; align-items: center; gap: 6px; }

/* aside */
.an-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.an-appt { display: flex; gap: 10px; align-items: flex-start; }
.an-appt-ico { color: var(--blue, #1b6ee6); flex: none; margin-top: 2px; }
.an-appt-text { flex: 1; min-width: 0; line-height: 1.35; }
.an-appt-name { color: var(--ink, #12294d); font-weight: 500; }
.an-appt-spec { color: var(--blue, #1b6ee6); font-size: 13px; }
.an-avatar {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft, #e8f1fd);
  color: var(--blue-dark, #1558bd);
  font-weight: 600;
  font-size: 14px;
}
.an-side-title { display: flex; align-items: center; gap: 8px; color: var(--ink, #12294d); margin-bottom: 8px; }
.an-side-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text, #2b3b52); margin-top: 6px; }
.an-side-row svg { flex: none; margin-top: 1px; color: var(--muted, #61728a); }
.an-help-text { margin: 0 0 12px; color: var(--green-ink, #2b6a42); }
.an-help-btn { width: 100%; justify-content: center; }

/* S2 */
.an-wait, .an-inline-wait {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 28px 16px;
  background: var(--blue-tint, #f3f8ff);
  border-radius: 12px;
  color: var(--blue, #1b6ee6);
  margin-bottom: 16px;
}
.an-inline-wait { padding: 20px 12px; margin: 8px 0 0; }
.an-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.an-flags { margin-bottom: 16px; }
.an-flag-list { margin: 6px 0 0; padding-left: 20px; }
.an-info { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.an-info svg { flex: none; color: var(--blue, #1b6ee6); }

.an-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.an-panel {
  border: 1px solid var(--line, #dbe3ee);
  border-radius: 14px;
  padding: 16px;
  min-width: 0;
}
.an-panel-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: var(--blue, #1b6ee6); }
.an-panel-head > div { min-width: 0; }
.an-panel-head p { margin: 2px 0 0; }
.an-h2 { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink, #12294d); }
.an-quote { color: var(--blue, #1b6ee6); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
/* the markup carries the « » marks; neutralise the shared .quote pseudo-elements */
.an-quote::before, .an-quote::after { content: none; }
.an-quote p { margin: 0 0 10px; }
.an-quote p:last-child { margin-bottom: 0; }
.an-audio { margin-top: 14px; }
.an-audio audio { width: 100%; margin-top: 4px; }
.an-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.an-textarea { width: 100%; box-sizing: border-box; min-height: 160px; resize: vertical; }
.an-sinput { width: 100%; box-sizing: border-box; resize: vertical; }

.an-rows { display: grid; gap: 12px; }
.an-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.an-row-label { color: var(--text, #2b3b52); }
.an-row-value { color: var(--ink, #12294d); overflow-wrap: anywhere; }

.an-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .an-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .an-grid { grid-template-columns: minmax(0, 1fr); }
  .an-illu { min-height: 220px; }
}
@media (max-width: 560px) {
  .an-card, .an-card-wide { padding: 16px; }
  .an-bar { flex-direction: column; align-items: stretch; }
  .an-skip { align-self: flex-end; }
  .an-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .an-row-label { color: var(--muted, #61728a); font-size: 13px; }
  .an-footer > .btn { width: 100%; justify-content: center; }
}
