:root {
  --ink: #211629;
  --muted: #706a76;
  --muted-light: #97909c;
  --plum: #63135d;
  --plum-deep: #3e0b3e;
  --plum-soft: #f4ebf5;
  --magenta: #9d267f;
  --border: #e8e3ea;
  --surface: #ffffff;
  --canvas: #f7f5f8;
  --success: #25745b;
  --danger: #a44255;
  --shadow: 0 18px 50px rgba(42, 21, 45, 0.09);
}

* { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); }
body { margin: 0; font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif; background: var(--canvas); }
button, input { font: inherit; }
button { color: inherit; }

.app-shell { min-height: 100vh; }
.side-rail {
  position: fixed; inset: 0 auto 0 0; z-index: 20; width: 82px; display: flex; flex-direction: column; align-items: center;
  padding: 20px 0 24px; color: #fff; background: linear-gradient(180deg, #4a114b 0%, #70145f 62%, #3f0a41 100%);
  box-shadow: 6px 0 30px rgba(41, 9, 42, .12);
}
.brand-mark { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.24); }
.rail-links { margin-top: 52px; display: grid; gap: 17px; }
.rail-links button { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 14px; background: transparent; cursor: pointer; }
.rail-links button:hover, .rail-links .rail-link--active { background: rgba(255,255,255,.15); }
.rail-label { margin-top: auto; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.home-icon { width: 19px; height: 17px; border: 2px solid currentColor; border-top: 0; position: relative; border-radius: 2px; }
.home-icon::before { content: ""; position: absolute; width: 14px; height: 14px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); top: -8px; left: 1px; }
.discussion-icon { width: 22px; height: 17px; border: 2px solid currentColor; border-radius: 7px; position: relative; }
.discussion-icon::after { content: ""; position: absolute; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; bottom: -5px; left: 3px; transform: skew(-22deg); }
.results-icon { width: 22px; height: 18px; background: linear-gradient(to top, currentColor 0 100%) left bottom/4px 45% no-repeat, linear-gradient(to top, currentColor 0 100%) center bottom/4px 75% no-repeat, linear-gradient(to top, currentColor 0 100%) right bottom/4px 100% no-repeat; }

.main-content { min-width: 0; width: 100%; }
.hero { height: 292px; position: relative; overflow: hidden; background: #28162d; color: #fff; }
.hero__image { position: absolute; inset: 0; background-image: url("assets/expert-discussion-hero.png"); background-size: cover; background-position: center 46%; filter: saturate(.75) contrast(.94); transform: scale(1.01); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,12,31,.93) 0%, rgba(33,15,38,.82) 28%, rgba(35,17,40,.24) 62%, rgba(28,15,33,.08) 100%); }
.hero__content { position: relative; z-index: 1; height: 100%; max-width: 1510px; margin: 0 auto; padding: 54px 46px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero__eyebrow, .section-kicker, .panel-eyebrow, .drawer-eyebrow { font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero__eyebrow { color: rgba(255,255,255,.72); margin-bottom: 14px; }
.hero__title-lockup { display: flex; align-items: center; gap: 16px; }
.hero__brand-mark { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 15px; }
.hero h1 { margin: 0; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -.045em; font-weight: 720; }
.hero p { max-width: none; margin: 16px 0 20px; white-space: nowrap; font-size: 19px; line-height: 1.55; color: rgba(255,255,255,.87); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 9px; }
.hero__meta span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.09); backdrop-filter: blur(8px); font-size: 12px; }

.workspace { max-width: 1510px; margin: 0 auto; padding: 30px 24px 54px; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 18px; }
.section-kicker, .panel-eyebrow, .drawer-eyebrow { color: var(--magenta); }
.workspace-heading h2 { margin: 5px 0 0; font-size: 23px; letter-spacing: -.025em; }
.overall-status { min-width: 430px; max-width: 560px; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid #eadfea; border-radius: 15px; background: #fff; box-shadow: 0 8px 30px rgba(49,22,49,.06); }
.overall-status__icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--plum-soft); color: var(--plum); font-weight: 800; }
.overall-status--complete .overall-status__icon { background: #e7f4ef; color: var(--success); }
.overall-status div { min-width: 0; display: grid; gap: 2px; }
.overall-status strong { font-size: 13px; }
.overall-status div span { font-size: 12px; color: var(--muted); }
.overall-status button { margin-left: auto; white-space: nowrap; padding: 8px 10px; border: 0; border-radius: 9px; background: #f4f1f5; color: var(--plum); font-size: 11px; font-weight: 700; cursor: pointer; }
.status-spinner { width: 15px; height: 15px; border: 2px solid rgba(99,19,93,.22); border-top-color: var(--plum); border-radius: 50%; animation: spin .9s linear infinite; }

.patient-grid { display: grid; grid-template-columns: repeat(var(--patient-columns, 4), minmax(0, 1fr)); gap: 12px; }
.patient-card { position: relative; min-width: 0; padding: 12px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 9px 28px rgba(45,27,48,.06); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.patient-card:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(45,27,48,.09); }
.patient-card--selected { border-color: var(--magenta); box-shadow: 0 0 0 2px rgba(157,38,127,.09), 0 16px 36px rgba(82,27,76,.1); }
.patient-card__select { width: 100%; min-height: 0; flex: 1; padding: 2px 8px 11px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; border: 0; background: transparent; cursor: pointer; }
.patient-avatar { flex: 0 0 auto; object-fit: cover; object-position: center; border-radius: 50%; background: #ebe6ee; border: 3px solid #fff; box-shadow: 0 0 0 1px #e8e1ea; }
.patient-avatar--large { width: 64px; height: 64px; }
.patient-avatar--small { width: 48px; height: 48px; }
.patient-card__copy { min-width: 0; padding-top: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.patient-card__copy strong { font-size: 15px; line-height: 1.2; letter-spacing: -.02em; }
.patient-card__summary { min-height: 0; color: #514a55; font-size: 11px; line-height: 1.35; }
.patient-card__tags { display: grid; gap: 3px; color: #3d3741; font-size: 10.5px; line-height: 1.35; font-weight: 700; }
.patient-card__tags span::before { content: "·"; margin-right: 5px; color: #918793; }
.profile-icon-button { position: absolute; top: 9px; right: 9px; z-index: 2; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #ded6e1; border-radius: 50%; background: #fff; color: var(--plum); font-family: Georgia, serif; font-weight: 700; cursor: pointer; }
.profile-icon-button:hover { background: var(--plum-soft); }
.card-status { width: 100%; min-height: 38px; padding: 8px 9px; display: flex; align-items: center; gap: 7px; border: 1px solid #e5dde7; border-radius: 10px; background: #faf9fa; color: #62596a; font-size: 10.5px; font-weight: 700; text-align: left; }
.card-status--ready { border-color: transparent; background: linear-gradient(100deg, var(--plum-deep), #85216f); color: #fff; cursor: pointer; }
.card-status__duration { margin-left: auto; font-weight: 500; opacity: .8; }
.stage-icon { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; }
.stage-icon--ready { font-size: 9px; background: rgba(255,255,255,.18); }
.stage-icon--queued { background: #ece7ee; color: var(--plum); font-size: 15px; }
.stage-icon--error { background: #fae8ec; color: var(--danger); }
.stage-icon--working { display: flex; justify-content: center; gap: 2px; background: var(--plum-soft); }
.stage-icon--working span { width: 3px; border-radius: 2px; background: var(--magenta); animation: audio-bars .9s ease-in-out infinite; }
.stage-icon--working span:nth-child(1) { height: 6px; animation-delay: -.25s; }
.stage-icon--working span:nth-child(2) { height: 12px; }
.stage-icon--working span:nth-child(3) { height: 8px; animation-delay: -.5s; }

.experience-panel { margin-top: 20px; overflow: hidden; border: 1px solid var(--border); border-radius: 21px; background: #fff; box-shadow: var(--shadow); }
.experience-panel__header { padding: 22px 24px 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #eee9ef; }
.selected-patient { display: flex; align-items: center; gap: 16px; min-width: 0; }
.selected-patient h2 { margin: 3px 0 8px; font-size: 26px; letter-spacing: -.035em; }
.selected-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.selected-tags span { padding: 6px 10px; border-radius: 999px; background: var(--plum-soft); color: var(--plum); font-size: 11px; font-weight: 650; }
.panel-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.secondary-button { min-height: 39px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #ded7e2; border-radius: 10px; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.secondary-button:disabled { cursor: not-allowed; opacity: .42; }
.button-info { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: Georgia,serif; }
.button-document { width: 14px; height: 17px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; }
.button-document::after { content: ""; position: absolute; left: 3px; right: 3px; top: 5px; height: 1px; background: currentColor; box-shadow: 0 4px currentColor; }
.preparing-panel { min-height: 222px; padding: 42px; display: flex; align-items: center; justify-content: center; gap: 30px; background: linear-gradient(135deg,#fff 0%,#fbf7fb 100%); }
.preparing-panel h3 { margin: 5px 0 7px; font-size: 24px; }
.preparing-panel p { max-width: 580px; margin: 0; color: var(--muted); line-height: 1.55; }
.preparing-visual { width: 112px; height: 112px; display: grid; place-content: center; justify-items: center; gap: 8px; border-radius: 28px; background: var(--plum-soft); }
.preparing-visual .stage-icon { transform: scale(1.5); margin-bottom: 9px; }
.preparing-line { width: 55px; height: 5px; border-radius: 5px; background: rgba(99,19,93,.12); overflow: hidden; position: relative; }
.preparing-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,transparent,var(--magenta),transparent); animation: shimmer 1.6s linear infinite; }

.player { padding: 23px 24px 17px; }
.experts-row { display: grid; grid-template-columns: 235px minmax(240px,1fr) 235px; align-items: center; gap: 19px; }
.expert { display: flex; align-items: center; gap: 11px; }
.expert--two { justify-content: flex-end; text-align: right; }
.expert-avatar, .transcript-avatar { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#ead4e6,#cb8bbc); color: var(--plum-deep); border: 3px solid #fff; box-shadow: 0 0 0 1px #e4dbe4; font-size: 13px; font-weight: 800; }
.expert-avatar--two, .transcript-avatar--two { background: linear-gradient(145deg,#d9e4ef,#94b3ce); color: #173d5e; }
.expert div { display: grid; gap: 2px; }
.expert strong { font-size: 13px; }
.expert span { color: var(--muted); font-size: 11px; }
.waveform { height: 76px; display: flex; align-items: center; justify-content: center; gap: 2px; overflow: hidden; }
.waveform > span { width: 2px; flex: 1 1 auto; max-width: 4px; border-radius: 3px; background: #d9c0d7; transition: background .2s ease; }
.waveform .waveform__bar--played { background: var(--magenta); }
.controls-row { display: grid; grid-template-columns: 42px 54px 42px auto minmax(180px,1fr) auto 24px 120px 45px; gap: 10px; align-items: center; margin: 18px 0 5px; }
.skip-button, .play-button, .speed-button { border: 1px solid #e1dae3; border-radius: 50%; background: #fff; cursor: pointer; }
.skip-button { width: 40px; height: 40px; position: relative; font-size: 22px; }
.skip-button small { position: absolute; inset: 16px 0 auto; font-size: 8px; font-weight: 800; }
.play-button { width: 54px; height: 54px; border: 0; background: linear-gradient(145deg,var(--plum),#a82782); color: #fff; box-shadow: 0 9px 22px rgba(99,19,93,.23); font-size: 17px; }
.time-display { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
input[type="range"] { accent-color: var(--magenta); cursor: pointer; }
.progress-slider, .volume-slider { width: 100%; }
.volume-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #f3eff4; font-size: 15px; }
.speed-button { width: 42px; height: 42px; font-size: 11px; }
.audio-status-note { margin: 10px 0 0 148px; color: var(--muted-light); font-size: 10px; }
.audio-status-note span { margin-right: 6px; padding: 2px 5px; border-radius: 4px; background: #efe8f0; color: var(--plum); font-weight: 800; text-transform: uppercase; }
.experience-disclaimer { padding: 11px 24px; display: flex; align-items: center; gap: 8px; border-top: 1px solid #eee9ef; background: #fcfbfc; color: #85808a; font-size: 10px; }
.experience-disclaimer > span, .drawer-note > span { width: 17px; height: 17px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: Georgia,serif; }

.drawer-layer, .dialog-layer { position: fixed; inset: 0; z-index: 80; background: rgba(27,12,29,.42); backdrop-filter: blur(3px); }
.profile-drawer { position: absolute; inset: 0 0 0 auto; width: min(680px, 92vw); display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 60px rgba(29,14,31,.2); animation: drawer-in .27s ease-out; }
.drawer-header { padding: 29px 31px 22px; border-bottom: 1px solid var(--border); background: linear-gradient(140deg,#fff,#faf5fa); position: relative; }
.close-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #ded7e1; border-radius: 50%; background: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.drawer-header > .close-button { position: absolute; right: 24px; top: 24px; }
.drawer-patient { margin-top: 17px; display: flex; align-items: center; gap: 17px; }
.drawer-patient h2 { margin: 0 0 4px; font-size: 28px; }
.drawer-patient p { margin: 0; color: var(--muted); }
.profile-table-wrap { flex: 1; overflow: auto; padding: 24px 31px; }
.profile-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.profile-table th, .profile-table td { padding: 14px 15px; border-bottom: 1px solid #eee9ef; text-align: left; vertical-align: top; line-height: 1.48; }
.profile-table thead th { position: sticky; top: 0; z-index: 1; background: var(--plum-deep); color: #fff; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.profile-table thead th:first-child { width: 37%; border-radius: 10px 0 0 0; }
.profile-table thead th:last-child { border-radius: 0 10px 0 0; }
.profile-table tbody th { color: var(--plum); font-weight: 700; background: #fcfafc; }
.drawer-note { padding: 15px 31px 20px; display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }

.dialog-layer { display: grid; place-items: center; padding: 24px; }
.script-dialog { width: min(840px, 96vw); max-height: 88vh; overflow: hidden; display: flex; flex-direction: column; border-radius: 20px; background: #fff; box-shadow: 0 25px 80px rgba(20,8,23,.28); }
.script-dialog__head { padding: 23px 26px 18px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); }
.script-dialog__head h2 { margin: 5px 0 0; font-size: 23px; }
.transcript { overflow: auto; padding: 22px 27px 8px; display: grid; gap: 20px; }
.transcript-line { display: flex; align-items: flex-start; gap: 13px; }
.transcript-avatar { width: 40px; height: 40px; font-size: 10px; }
.transcript-line strong { color: var(--plum); font-size: 12px; }
.transcript-line p { margin: 5px 0 0; line-height: 1.56; color: #433a48; font-size: 13px; }
.script-note { margin: 10px 27px 22px; padding: 10px 12px; border-radius: 9px; background: #f6f1f6; color: var(--muted); font-size: 11px; }

.loading-state, .fatal-state { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 30px; }
.loading-state p, .fatal-state p { color: var(--muted); }
.loading-mark { width: 48px; height: 48px; border: 4px solid #eadfeb; border-top-color: var(--magenta); border-radius: 50%; animation: spin 1s linear infinite; }
.fatal-state img { width: 64px; height: 64px; border-radius: 18px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes audio-bars { 0%,100% { transform: scaleY(.55); } 50% { transform: scaleY(1.2); } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }

@media (max-width: 1120px) {
  .workspace-heading { align-items: flex-start; flex-direction: column; }
  .overall-status { width: 100%; min-width: 0; max-width: none; }
  .experts-row { grid-template-columns: 190px minmax(150px,1fr) 190px; }
  .controls-row { grid-template-columns: 40px 54px 40px auto minmax(130px,1fr) auto 24px 85px 42px; }
}

@media (max-width: 900px) {
  .patient-grid { grid-template-columns: repeat(min(3, var(--patient-columns, 3)), minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .side-rail { position: fixed; inset: auto 0 0 0; width: auto; height: 65px; flex-direction: row; justify-content: space-between; padding: 8px 18px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 11px; }
  .rail-links { margin: 0; display: flex; }
  .rail-links button { width: 44px; height: 44px; }
  .rail-label { display: none; }
  .main-content { width: 100%; }
  .hero { height: 330px; }
  .hero__image { background-position: 58% center; }
  .hero::after { background: linear-gradient(90deg,rgba(24,10,28,.92),rgba(31,13,36,.54)); }
  .hero__content { padding: 44px 25px; justify-content: flex-end; }
  .hero p { max-width: 550px; white-space: normal; }
  .workspace { padding: 25px 18px 42px; }
  .workspace-heading { margin-bottom: 15px; }
  .overall-status { align-items: flex-start; }
  .overall-status button { display: none; }
  .patient-grid { grid-template-columns: repeat(min(2, var(--patient-columns, 2)), minmax(0, 1fr)); }
  .experience-panel__header { align-items: flex-start; flex-direction: column; }
  .panel-actions { width: 100%; justify-content: flex-start; }
  .experts-row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .waveform { grid-column: 1 / -1; grid-row: 2; }
  .controls-row { grid-template-columns: 40px 54px 40px 1fr auto; }
  .progress-slider { grid-column: 1 / -1; grid-row: 2; }
  .time-display { display: none; }
  .volume-icon, .volume-slider { display: none; }
  .speed-button { grid-column: 5; grid-row: 1; }
  .audio-status-note { margin-left: 0; }
}

@media (max-width: 540px) {
  .hero__title-lockup { gap: 11px; }
  .hero__brand-mark { width: 42px; height: 42px; border-radius: 12px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 16px; }
  .hero__meta span:last-child { display: none; }
  .workspace-heading h2 { font-size: 20px; }
  .patient-grid { grid-template-columns: 1fr; }
  .patient-card__select { min-height: 0; }
  .experience-panel__header { padding: 18px; }
  .selected-patient { align-items: flex-start; }
  .selected-patient h2 { font-size: 23px; }
  .selected-tags span:first-child { width: 100%; }
  .panel-actions .secondary-button { flex: 1; justify-content: center; }
  .preparing-panel { min-height: 260px; padding: 30px 22px; flex-direction: column; text-align: center; }
  .player { padding: 19px 17px 14px; }
  .expert { align-items: flex-start; }
  .expert--two { flex-direction: row-reverse; text-align: left; }
  .expert-avatar { width: 44px; height: 44px; }
  .profile-drawer { width: 100vw; }
  .drawer-header, .profile-table-wrap { padding-left: 20px; padding-right: 20px; }
  .profile-table th, .profile-table td { display: block; width: 100%; }
  .profile-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .profile-table tbody th { padding-bottom: 5px; border-bottom: 0; }
  .profile-table tbody td { padding-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

[hidden] { display: none !important; }
body.overlay-open { overflow: hidden; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(35, 141, 153, .42);
  outline-offset: 3px;
}

.card-status--error {
  border-color: #e9c6ce;
  background: #fff4f6;
  color: var(--danger);
  cursor: pointer;
}
.card-status--script_ready {
  border-color: #decfe0;
  background: #f7f0f7;
  color: var(--plum);
}
.patient-card--unavailable { opacity: .76; }
.patient-card--unavailable:hover { transform: none; }
.overall-status--error .overall-status__icon { background: #fae8ec; color: var(--danger); }

.empty-state {
  margin-top: 20px;
  padding: 42px 28px;
  border: 1px dashed #d9cedb;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  text-align: center;
}
.empty-state h3 { margin: 0 0 7px; font-size: 21px; }
.empty-state p { margin: 0; color: var(--muted); }

.audio-status-note {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.audio-status-note span { flex: 0 0 auto; }

.player audio { display: none; }
.player--disabled .controls-row,
.player--disabled .waveform { opacity: .48; pointer-events: none; }

.status-detail {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.retry-inline {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: currentColor;
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 110;
  width: min(390px, calc(100vw - 44px));
  display: grid;
  gap: 9px;
  pointer-events: none;
}
.toast {
  padding: 13px 15px;
  border: 1px solid #ded4e0;
  border-radius: 12px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 14px 45px rgba(31,14,34,.18);
  color: #413646;
  font-size: 12px;
}
.toast--error { border-color: #e6bdc6; color: var(--danger); }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 820px) {
  .toast-region { right: 14px; bottom: 79px; width: calc(100vw - 28px); }
}
