.vega-demo {
  --vd-bg: #f7f4f8;
  --vd-surface: rgba(255, 255, 255, .76);
  --vd-text: #392b43;
  --vd-muted: #716476;
  --vd-accent: #776188;
  --vd-line: rgba(119, 97, 136, .18);
  color: var(--vd-text);
  font: 16px/1.65 Manrope, sans-serif;
}
.vega-demo *, .vega-demo *::before, .vega-demo *::after { box-sizing: border-box; }
:where(.vega-demo) button, :where(.vega-demo) textarea { font: inherit; }
.vega-demo button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vega-demo button:disabled { cursor: default; }
.vega-demo :is(button, textarea, .vd-panel, .vd-booking-status):focus-visible { outline: 2px solid var(--vd-accent); outline-offset: 5px; }
.vega-demo svg { display: block; width: 22px; height: 22px; flex-shrink: 0; }
.vd-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.vd-tabs { display: inline-flex; padding: 6px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 999px; background: rgba(232, 225, 244, .55); box-shadow: 0 3px 14px rgba(73, 48, 89, .025); }
.vd-tab { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 24px; min-height: 52px; border: 0; border-radius: 999px; color: var(--vd-muted); background: transparent; font-size: 16px; font-weight: 500; transition: color .2s, background .2s, box-shadow .2s; }
.vd-tab:hover { color: var(--vd-text); background: rgba(255, 255, 255, .4); }
.vd-tab[aria-selected="true"] { background: #fff; color: var(--vd-text); box-shadow: 0 4px 18px rgba(73, 48, 89, .08); }
.vd-tab-number { font-size: 12px; color: var(--vd-accent); }
.vd-demo-label { display: inline-flex; align-items: center; gap: 10px; color: var(--vd-muted); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.vd-small-dot { width: 6px; height: 6px; border-radius: 50%; background: #96778b; }
.vd-panel { display: grid; grid-template-columns: .85fr 1.15fr; border: 1px solid rgba(255, 255, 255, .9); border-radius: 32px; background: linear-gradient(120deg, rgba(241, 229, 237, .85), rgba(232, 225, 244, .63)); box-shadow: 0 24px 70px rgba(73, 48, 89, .045); }
.vd-story { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 54px 46px; }
.vd-eyebrow { color: var(--vd-accent); font-size: 12px; letter-spacing: .07em; font-weight: 600; }
.vd-story h3 { margin: 26px 0 24px; color: var(--vd-text); font-size: clamp(34px, 3.1vw, 42px); font-weight: 500; letter-spacing: -.045em; line-height: 1.2; }
.vd-story-text { max-width: 370px; margin: 0; color: var(--vd-muted); font-size: 18px; line-height: 1.8; }
.vd-story-bottom { padding-top: 42px; }
.vd-benefit { display: flex; align-items: flex-start; gap: 12px; max-width: 360px; margin: 0; color: var(--vd-text); font-size: 16px; line-height: 1.7; }
.vd-benefit > span { color: var(--vd-accent); padding-top: 3px; }
.vd-benefit svg { width: 20px; height: 20px; }
.vd-try { display: inline-block; margin-top: 22px; color: var(--vd-accent); font-size: 16px; }
.vd-preview { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 40px; border-left: 1px solid rgba(255, 255, 255, .75); background: radial-gradient(ellipse at 80% 0%, rgba(255, 255, 255, .6), transparent 80%); border-radius: 0 32px 32px 0; }
.vd-app { width: 100%; max-width: 510px; min-width: 0; border: 1px solid rgba(255, 255, 255, .95); border-radius: 24px; background: var(--vd-surface); box-shadow: 0 18px 48px rgba(89, 60, 100, .075), inset 0 1px 0 #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.vd-app-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 23px 28px; border-bottom: 1px solid var(--vd-line); }
.vd-wordmark { display: flex; align-items: center; gap: 8px; color: var(--vd-text); font-size: 27px; font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.vd-wordmark > span { margin-top: -7px; color: #96778b; font-size: 18px; }
.vd-app-caption { color: var(--vd-muted); font-size: 12px; letter-spacing: .035em; }
.vd-app-body { padding: 28px; }
.vd-booking-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.vd-round-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid rgba(119, 97, 136, .12); border-radius: 50%; color: var(--vd-accent); background: rgba(232, 225, 244, .6); }
.vd-app h4 { margin: 0; color: var(--vd-text); font-size: 20px; font-weight: 500; letter-spacing: -.025em; line-height: 1.4; }
.vd-booking-heading p, .vd-manager-heading p { margin: 6px 0 0; color: var(--vd-muted); font-size: 13px; line-height: 1.6; }
.vd-fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.vd-fieldset legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; color: var(--vd-text); font-size: 16px; }
.vd-fieldset legend + * { clear: both; }
.vd-fieldset legend span { float: right; margin-left: 8px; color: var(--vd-muted); font-size: 13px; line-height: 2; }
.vd-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vd-day { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 82px; padding: 13px 6px; color: var(--vd-muted); border: 1px solid var(--vd-line); border-radius: 14px; background: rgba(255, 255, 255, .5); transition: border-color .2s, background .2s, color .2s; }
.vd-day > span { font-size: 12px; letter-spacing: .04em; }
.vd-day strong { color: var(--vd-text); font-size: 25px; line-height: 1; font-weight: 500; }
.vd-day:hover, .vd-slot:hover { border-color: var(--vd-accent); background: #f2edf6; }
.vd-day.vd-selected { border-color: var(--vd-accent); background: var(--vd-accent); color: #fff; }
.vd-day.vd-selected strong { color: #fff; }
.vd-time-fieldset { margin-top: 26px; }
.vd-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vd-slot { min-height: 47px; padding: 10px 3px; border: 1px solid var(--vd-line); border-radius: 10px; background: rgba(255, 255, 255, .4); color: var(--vd-text); font-size: 16px; transition: border-color .2s, background .2s; }
.vd-slot.vd-selected { color: var(--vd-text); border-color: var(--vd-accent); background: #e8e1f4; box-shadow: inset 0 0 0 1px var(--vd-accent); }
.vd-primary { display: flex; width: 100%; align-items: center; justify-content: center; gap: 14px; min-height: 54px; margin-top: 28px; padding: 14px 20px; border: 1px solid var(--vd-accent); border-radius: 12px; background: var(--vd-accent); color: #fff; font-size: 16px; font-weight: 500; line-height: 1.5; transition: background .2s, border-color .2s; }
.vd-primary:hover:not(:disabled) { background: #665175; border-color: #665175; }
.vd-primary:disabled { border-color: #e4dce9; background: #e4dce9; color: #716476; }
.vd-primary svg { width: 20px; height: 20px; }
.vd-booking-status { min-height: 21px; margin: 14px 0 0; color: var(--vd-muted); font-size: 13px; line-height: 1.65; text-align: center; }
.vd-success { color: #625073; }
.vd-footnote { max-width: 800px; margin: 22px 4px 0; color: var(--vd-muted); font-size: 13px; line-height: 1.8; }
.vd-note-label { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.vd-icon-small { width: 40px; height: 40px; }
.vd-icon-small svg { width: 20px; height: 20px; }
.vd-dictation { padding: 22px; border: 1px solid rgba(119, 97, 136, .1); border-radius: 16px; background: rgba(241, 229, 237, .45); }
.vd-micro-label { color: var(--vd-accent); font-size: 12px; letter-spacing: .04em; }
.vd-dictation p { margin: 12px 0 0; color: var(--vd-text); font-size: 16px; line-height: 1.8; }
.vd-draft-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 24px; margin-bottom: 12px; }
.vd-draft-header label { color: var(--vd-text); font-size: 16px; }
.vd-badge { color: var(--vd-accent); font-size: 12px; border: 1px solid var(--vd-line); border-radius: 999px; padding: 4px 10px; }
.vd-draft { display: block; width: 100%; min-height: 225px; max-height: 440px; resize: vertical; padding: 18px; border: 1px solid rgba(119, 97, 136, .3); border-radius: 12px; color: var(--vd-text); background: rgba(255, 255, 255, .8); font-size: 16px; line-height: 1.75; }
.vd-draft-help { margin: 12px 0 0; color: var(--vd-muted); font-size: 13px; line-height: 1.7; }
.vd-doctor .vd-primary { margin-top: 22px; }
.vd-manager-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.vd-manager-heading h4 { max-width: 265px; }
.vd-task-counter { white-space: nowrap; color: var(--vd-accent); font-size: 36px; letter-spacing: -.05em; font-weight: 400; }
.vd-task-counter > span { margin-left: 6px; color: var(--vd-muted); font-size: 18px; letter-spacing: -.025em; }
.vd-progress { height: 4px; margin: 25px 0 14px; background: #e8e1ee; border-radius: 5px; overflow: hidden; }
.vd-progress > span { display: block; height: 100%; border-radius: 5px; background: var(--vd-accent); transition: width .3s; }
.vd-task + .vd-task { border-top: 1px solid var(--vd-line); }
.vd-task-toggle { display: flex; align-items: center; width: 100%; gap: 13px; padding: 20px 0; border: 0; background: transparent; color: var(--vd-text); text-align: left; }
.vd-task-toggle:hover .vd-task-summary strong { color: var(--vd-accent); }
.vd-task-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--vd-accent); border: 1px solid var(--vd-line); border-radius: 50%; font-size: 12px; }
.vd-task-icon svg { width: 19px; height: 19px; }
.vd-task-done .vd-task-icon { color: #fff; background: var(--vd-accent); border-color: var(--vd-accent); }
.vd-task-summary { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.vd-task-summary strong { font-size: 16px; font-weight: 500; line-height: 1.55; transition: color .2s; }
.vd-task-summary > span { color: var(--vd-muted); font-size: 12px; line-height: 1.6; }
.vd-task-chevron { flex-shrink: 0; color: var(--vd-accent); transition: transform .2s; }
.vd-task-chevron svg { width: 20px; height: 20px; }
.vd-task-chevron.vd-expanded { transform: rotate(45deg); }
.vd-task-detail { padding: 0 0 24px 45px; }
.vd-task-detail[hidden] { display: none; }
.vd-task-detail p { margin: 0 0 14px; color: var(--vd-muted); font-size: 16px; line-height: 1.75; }
.vd-task-detail .vd-task-next { color: var(--vd-text); }
.vd-task-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 3px; }
.vd-task-footer > span { color: var(--vd-muted); font-size: 12px; line-height: 1.7; }
.vd-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 8px 13px; border: 1px solid var(--vd-line); border-radius: 9px; color: var(--vd-text); background: rgba(232, 225, 244, .45); font-size: 16px; transition: background .2s; }
.vd-text-button svg { width: 18px; height: 18px; }
.vd-text-button:hover { background: #e8e1f4; }
@media (max-width: 1120px) {
  .vd-story { padding: 42px 30px; }
  .vd-preview { padding: 28px; }
  .vd-demo-label { display: none; }
  .vd-story h3 { font-size: 36px; }
}
@media (max-width: 980px) {
  .vd-panel { grid-template-columns: 1fr; }
  .vd-story { padding: 42px; }
  .vd-story h3 { max-width: 520px; }
  .vd-story-text { max-width: 550px; }
  .vd-story-bottom { padding-top: 28px; }
  .vd-benefit { max-width: none; }
  .vd-preview { padding: 36px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .7); border-radius: 0 0 32px 32px; }
  .vd-app { max-width: 560px; }
}
@media (max-width: 600px) {
  .vd-toolbar { margin-bottom: 20px; }
  .vd-tabs { display: grid; grid-template-columns: 1fr .75fr 1.35fr; width: 100%; padding: 4px; }
  .vd-tab { min-width: 0; min-height: 49px; padding: 11px 8px; font-size: 16px; }
  .vd-tab-number { display: none; }
  .vd-panel { border-radius: 24px; }
  .vd-story { padding: 32px 26px; }
  .vd-story h3 { margin-top: 22px; margin-bottom: 20px; font-size: 34px; }
  .vd-story-text { font-size: 16px; }
  .vd-story-bottom { padding-top: 24px; }
  .vd-try { margin-top: 18px; }
  .vd-preview { padding: 20px 14px; border-radius: 0 0 24px 24px; }
  .vd-app { border-radius: 19px; }
  .vd-app-top { padding: 20px; }
  .vd-app-body { padding: 24px 20px; }
  .vd-app h4 { font-size: 19px; }
  .vd-booking-heading { align-items: flex-start; }
  .vd-round-icon { width: 38px; height: 38px; }
  .vd-fieldset legend span { float: none; display: block; margin: 3px 0 0; line-height: 1.6; }
  .vd-days, .vd-slots { gap: 7px; }
  .vd-dictation { padding: 18px; }
  .vd-task-detail { padding-left: 0; }
  .vd-task-toggle { gap: 10px; }
  .vd-task-footer { gap: 16px; }
  .vd-footnote { margin-top: 18px; }
}
@media (max-width: 370px) {
  .vd-tab { padding-inline: 3px; }
  .vd-story { padding-inline: 22px; }
  .vd-story h3 { font-size: 32px; }
  .vd-preview { padding: 16px 8px; }
  .vd-app-top, .vd-app-body { padding-inline: 16px; }
  .vd-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vd-booking-heading .vd-round-icon { display: none; }
  .vd-manager-heading { gap: 10px; }
  .vd-task-counter { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .vega-demo *, .vega-demo *::before, .vega-demo *::after { transition: none !important; animation: none !important; }
}
