:root{--accent: #8b6e96;--accent-dark: #4a3558;--accent-mid: #b5a8bc;--accent-soft: #e8e0ec;--page: #f5f0eb;--page-light: #faf6f2;--cta: #2d2235;--stage: #2d2235;--stage-deep: #1b1520;--ink: #1f1a24;--ink-2: #3a3240;--muted: #5e5466;--line: #eee7f1;--ok: #1f6b3a;--ok-soft: #dff3e5;--ok-live: #6fd38a;--danger: #c2352b;--danger-ink: #9b2c22;--danger-soft: #fbe3e1;--warn-ink: #4d3600;--warn-soft: #fff4de;--warn-line: #f0d9a8;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--ink);background:var(--page);-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}a{color:var(--accent-dark)}button{font:inherit;cursor:pointer}button:disabled{opacity:.5;cursor:default}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.page{min-height:100%;max-width:560px;margin:0 auto;padding:max(24px,env(safe-area-inset-top)) 20px max(24px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:20px}.page.wide{max-width:1280px}.stack{display:flex;flex-direction:column;gap:10px}.row{display:flex;align-items:center;gap:12px}.spacer{margin-top:auto}.card{background:#fff;border-radius:20px;padding:18px 20px}.card.center{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:36px 24px}h1{margin:0;font-size:26px;line-height:1.2}h2{margin:0;font-size:17px}p{margin:0;line-height:1.5}.muted{color:var(--muted)}.small{font-size:13px}.clinic{display:flex;align-items:center;gap:12px}.avatar{flex:none;width:44px;height:44px;border-radius:999px;background:var(--accent-soft);color:var(--accent-dark);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px}.avatar.xl{width:120px;height:120px;font-size:40px;font-weight:600;background:var(--accent-dark);color:var(--accent-soft)}.chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:#fff;font-size:13px;color:var(--muted)}.chip.strong{font-weight:600;color:var(--accent-dark)}.chip.on-dark{background:#ffffff24;color:#fff}.dot{width:8px;height:8px;border-radius:999px;background:var(--ok-live)}.btn{min-height:52px;padding:0 22px;border-radius:999px;border:1.5px solid transparent;font-size:16px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.btn.block{width:100%}.btn.primary{background:var(--cta);color:#fff}.btn.primary:hover{background:var(--accent-dark)}.btn.outline{background:transparent;border-color:var(--cta);color:var(--cta)}.btn.ghost{background:transparent;color:var(--cta)}.btn.danger{background:var(--danger);color:#fff}.btn.danger-outline{background:transparent;border-color:var(--danger);color:var(--danger-ink)}.icon-btn{width:52px;height:52px;flex:none;border-radius:999px;border:0;background:#ffffff29;color:#fff;display:inline-flex;align-items:center;justify-content:center}.icon-btn.off{background:#fff;color:var(--cta)}.icon-btn.accent{background:var(--accent)}.banner{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:16px;font-size:14px}.banner.warn{background:var(--warn-soft);border:1px solid var(--warn-line);color:var(--warn-ink)}.banner.tip{background:#fff;color:var(--ink-2)}.banner.error{background:var(--danger-soft);color:var(--danger-ink)}.banner.ok{background:var(--ok-soft);color:var(--ok)}.preview{position:relative;height:300px;border-radius:24px;background:var(--stage);overflow:hidden;display:flex;align-items:center;justify-content:center;color:var(--accent-soft)}.preview video{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.preview .mirror{transform:scaleX(-1)}.preview .badge{position:absolute;top:14px;left:14px}.preview .controls{position:absolute;left:0;right:0;bottom:16px;display:flex;justify-content:center;gap:14px}.call{position:relative;height:100dvh;background:var(--stage-deep);color:#fff;overflow:hidden}.call.with-panel{display:flex;gap:20px;padding:20px;background:var(--page);color:var(--ink)}.stage{position:relative;flex:1;min-width:0;height:100%;background:var(--stage);color:#fff;overflow:hidden}.with-panel .stage{border-radius:24px}.stage .remote{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.stage .waiting{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:var(--accent-mid);text-align:center;padding:24px}.stage .top{position:absolute;top:0;left:0;right:0;padding:max(20px,env(safe-area-inset-top)) 20px 16px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;background:#1b15208c}.stage .self{position:absolute;right:16px;top:calc(max(20px,env(safe-area-inset-top)) + 72px);width:108px;height:148px;border-radius:18px;overflow:hidden;background:var(--accent-dark);border:2px solid rgb(255 255 255 / .35)}.with-panel .stage .self{top:auto;bottom:112px;right:24px;width:220px;height:140px}.stage .self video{width:100%;height:100%;object-fit:cover}.stage .notices{position:absolute;left:16px;right:16px;bottom:calc(max(20px,env(safe-area-inset-bottom)) + 96px);display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}.stage .notices .chip{max-width:100%;text-align:center;line-height:1.35;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.chip.warn{background:var(--warn-soft);color:var(--warn-ink)}.chip.error{background:var(--danger-soft);color:var(--danger-ink)}.stage .unlock{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#1b152073}.stage .unlock .btn{background:#fff;color:var(--cta);box-shadow:0 10px 30px #0000004d}.devices{position:absolute;left:50%;bottom:calc(max(20px,env(safe-area-inset-bottom)) + 96px);transform:translate(-50%);width:min(360px,calc(100% - 32px));padding:16px;border-radius:20px;background:#1b1520f0;display:flex;flex-direction:column;gap:14px;z-index:2}.devices select{width:100%;min-height:44px;padding:0 12px;border-radius:12px;border:1px solid rgb(255 255 255 / .2);background:#ffffff14;color:#fff;font:inherit}.devices option{color:var(--ink)}.spinner{width:18px;height:18px;flex:none;border-radius:999px;border:2.5px solid currentColor;border-right-color:transparent;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation-duration:2.4s}}.toolbar{position:absolute;left:12px;right:12px;bottom:max(20px,env(safe-area-inset-bottom));padding:12px;border-radius:28px;background:#1b1520d1;display:flex;align-items:center;justify-content:space-between;gap:10px}.with-panel .toolbar{left:50%;right:auto;transform:translate(-50%);justify-content:center;border-radius:999px}@media(min-width:720px){.toolbar{left:50%;right:auto;transform:translate(-50%);justify-content:center;border-radius:999px;max-width:calc(100% - 24px)}}.toolbar .leave-icon{display:none}@media(max-width:400px){.toolbar,.with-panel .toolbar{left:8px;right:8px;transform:none;justify-content:space-between;padding:8px;gap:4px;border-radius:24px}.toolbar .icon-btn,.toolbar .btn{width:42px;height:42px;min-height:42px;padding:0;flex:none}.toolbar .toolbar-label{display:none}.toolbar .leave-icon{display:inline-flex;transform:rotate(135deg)}}.counter{display:inline-flex;align-items:baseline;gap:6px;padding:7px 14px;border-radius:999px;background:#ffffff24;font-variant-numeric:tabular-nums}.counter strong{font-size:18px}.counter .of,.counter .extra{font-size:13px;color:var(--accent-soft)}.reconnecting{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:12px 18px;border-radius:999px;background:#0009;font-weight:600;display:inline-flex;align-items:center;gap:10px}.vet-panel{width:380px;flex:none;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.two-cols .vet-panel{width:auto;overflow:visible}.documents{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.documents li{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:12px;background:var(--page-light);font-size:14px}.documents li.failed{background:#fdf1f0}.documents .line{display:flex;justify-content:space-between;align-items:center;gap:10px}.documents .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ok{color:var(--ok);font-weight:600;font-size:13px;white-space:nowrap}.ko{color:var(--danger-ink);font-size:13px}.link-btn{border:0;background:transparent;padding:0;font-size:13px;font-weight:600;color:var(--accent-dark);text-decoration:underline}.dropzone{display:flex;flex-direction:column;align-items:center;gap:6px;padding:18px;border-radius:14px;border:1.5px dashed var(--accent-mid);text-align:center;font-size:13px;color:var(--muted);cursor:pointer}.dropzone.over{background:var(--accent-soft)}.reasons{margin:0;padding:0;border:0;display:flex;flex-direction:column;gap:8px}.reasons legend{font-weight:600;font-size:14px;margin-bottom:8px}.reasons label{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 14px;border-radius:12px;background:var(--page-light);font-size:14px}.reasons label.checked{background:var(--accent-soft)}.reasons input{width:18px;height:18px;accent-color:var(--accent-dark)}textarea{font:inherit;width:100%;min-height:80px;padding:12px;border-radius:12px;border:1px solid #dcd2e0;resize:vertical}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.stat{padding:14px;border-radius:16px;background:var(--page-light);display:flex;flex-direction:column;gap:4px}.stat strong{font-size:22px;font-variant-numeric:tabular-nums}.two-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}.countdown{font-size:44px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}.eyebrow{font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--accent-dark)}.facts{display:flex;flex-direction:column}.facts div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;font-size:14px;border-bottom:1px solid var(--line)}.facts div:last-child{border-bottom:0}.facts dt{color:var(--muted)}.facts dd{margin:0;font-weight:600;text-align:right}.round-icon{width:64px;height:64px;border-radius:999px;display:flex;align-items:center;justify-content:center}.chat{display:flex;flex-direction:column;min-height:0;background:#fff;color:var(--ink)}.chat.card{padding:0;overflow:hidden}.chat.card .chat-list{max-height:320px;min-height:120px}.chat.drawer{position:absolute;z-index:3;right:16px;top:calc(max(20px,env(safe-area-inset-top)) + 72px);bottom:calc(max(20px,env(safe-area-inset-bottom)) + 96px);width:min(380px,calc(100% - 32px));border-radius:20px;box-shadow:0 16px 40px #00000059;overflow:hidden}.chat-head{display:flex;align-items:baseline;gap:8px;padding:14px 16px;border-bottom:1px solid var(--line)}.chat-close{margin-left:auto;align-self:center;border:0;background:transparent;color:var(--muted);padding:4px;display:inline-flex}.chat-list{list-style:none;margin:0;padding:14px 16px;flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}.chat-empty{margin:auto;text-align:center;padding:12px}.bubble{max-width:85%;align-self:flex-start;display:flex;flex-direction:column;gap:3px}.bubble p{margin:0;padding:9px 13px;border-radius:16px 16px 16px 4px;background:var(--page);white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.4}.bubble.mine{align-self:flex-end;align-items:flex-end}.bubble.mine p{border-radius:16px 16px 4px;background:var(--accent);color:#fff}.bubble .meta{font-size:12px;color:var(--muted);padding:0 4px}.link{border:0;background:none;padding:0;color:var(--accent-dark);font:inherit;font-weight:600;text-decoration:underline}.chat-compose{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid var(--line)}.chat-compose textarea{flex:1;resize:none;min-height:44px;max-height:120px;field-sizing:content;padding:11px 14px;border-radius:22px;border:1px solid var(--line);background:var(--page-light);font:inherit;font-size:16px;color:var(--ink)}.icon-btn.send{width:44px;height:44px;background:var(--cta);color:#fff}.icon-btn.send:disabled{opacity:.4}.chat-closed{padding:10px 16px 14px;margin:0;text-align:center}.chat-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 10px 10px}.btn.small-btn{min-height:36px;padding:0 12px;font-size:14px}.field{min-height:52px;padding:0 16px;border-radius:14px;border:1.5px solid var(--line);background:var(--page-light);font:inherit;font-size:17px;letter-spacing:.04em;color:var(--ink)}.field:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.field[aria-invalid=true]{border-color:var(--danger)}.badge-count{position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--danger);color:#fff;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.icon-btn{position:relative}.stage .notices .chip.action{pointer-events:auto;border:0;font:inherit;cursor:pointer}@media(max-width:640px){.chat.drawer{left:8px;right:8px;bottom:calc(max(20px,env(safe-area-inset-bottom)) + 84px);top:28%;width:auto}}@media(max-width:400px){.chat.drawer{bottom:calc(max(20px,env(safe-area-inset-bottom)) + 66px)}}@media(max-width:900px){.call.with-panel{flex-direction:column;padding:0;gap:0;height:auto;min-height:100dvh}.call.with-panel .stage{height:62dvh;flex:none;border-radius:0}.vet-panel{width:auto;padding:16px}.with-panel .stage .self{width:108px;height:148px;bottom:100px}.two-cols{grid-template-columns:minmax(0,1fr)}}
