/* Toast presentation v3.9.764: explicit modes override page mode. */
:is(.tob-toast,.feedback-toast)[data-toast-theme]{--tob-bg:#fff;--tob-text:#23324a;--tob-track:#e1e7ef;border-radius:14px}
[data-theme=dark] [data-toast-theme][data-toast-mode=auto],[data-toast-theme][data-toast-mode=dark]{--tob-bg:#202b3b;--tob-text:#f1f5fb;--tob-track:#475569}
[data-theme] [data-toast-theme][data-toast-mode=light]{--tob-bg:#fff;--tob-text:#23324a;--tob-track:#e1e7ef}
:is(.tob-toast,.feedback-toast)[data-toast-theme=soft-glass]{background:color-mix(in srgb,var(--tob-bg) 92%,transparent);backdrop-filter:blur(16px);border-color:color-mix(in srgb,var(--tob-tone) 25%,var(--tob-bg))}
:is(.tob-toast,.feedback-toast)[data-toast-theme=minimal]{box-shadow:none}
:is(.tob-toast,.feedback-toast)[data-toast-theme=accent-line]{border-left:4px solid var(--tob-tone)}
:is(.tob-toast,.feedback-toast)[data-toast-theme=icon-tile] :is(.tob-symbol,.feedback-symbol){border-radius:9px;width:36px;height:36px}
:is(.tob-toast,.feedback-toast)[data-toast-theme=solid]{background:var(--tob-tone);--tob-text:#fff}
:is(.tob-toast,.feedback-toast)[data-toast-theme=solid] :is(.tob-copy,.feedback-copy,.feedback-copy p,.feedback-copy strong){color:#fff}
:is(.tob-toast,.feedback-toast)[data-toast-theme=floating-card]{padding:16px;box-shadow:0 14px 44px #0003;border-radius:18px}
:is(.tob-toast,.feedback-toast)[data-toast-theme=compact-pill]{border-radius:999px;padding:8px 12px;width:max-content;max-width:100%}
:is(.tob-toast,.feedback-toast)[data-toast-theme=outline]{border:1.5px solid var(--tob-tone);box-shadow:none}
:is(.tob-toast,.feedback-toast)[data-toast-theme=progress]{overflow:hidden;padding-bottom:16px}
:is(.tob-toast,.feedback-toast)[data-toast-theme=progress]:after{content:'';position:absolute;bottom:0;left:0;height:3px;width:100%;background:var(--tob-tone);transform:scaleX(var(--tob-progress,1));transform-origin:left}
:is(.tob-toast,.feedback-toast)[data-toast-theme=dark-luxe]{border-color:color-mix(in srgb,#38bdf8 40%,var(--tob-bg));box-shadow:0 8px 28px #0003;background:linear-gradient(120deg,color-mix(in srgb,#38bdf8 7%,var(--tob-bg)),var(--tob-bg))}
.tob-configured-stack{position:fixed!important;top:20px!important;bottom:auto!important;left:auto!important;right:16px!important;transform:none!important;z-index:10050;display:grid;gap:10px;pointer-events:none;max-width:calc(100vw - 24px)}
.tob-configured-stack>*{pointer-events:auto}
.tob-configured-stack[data-desktop$=center]{left:50%!important;right:auto!important;transform:translateX(-50%)!important;justify-items:center}
.tob-configured-stack[data-desktop^=bottom]{top:auto!important;bottom:calc(24px + env(safe-area-inset-bottom))!important}
@media(max-width:760px){.tob-configured-stack{left:auto!important;right:12px!important;top:12px!important;bottom:auto!important;transform:none!important}.tob-configured-stack[data-mobile$=center]{left:50%!important;right:auto!important;transform:translateX(-50%)!important;justify-items:center}.tob-configured-stack[data-mobile^=bottom]{top:auto!important;bottom:calc(90px + env(safe-area-inset-bottom))!important}}
.toast-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}.toast-editor-grid>section{min-width:0;border:1px solid var(--line,#dce3ed);border-radius:18px;padding:18px}.toast-preview-stage{margin:18px 0;padding:24px 12px;border-radius:14px;background:#edf3fc;display:grid;place-items:center;min-height:110px}.toast-preview-stage[data-theme=dark]{background:#111b2b}.toast-preview-buttons{display:flex;flex-wrap:wrap;gap:8px}.toast-preview-buttons button{font-size:12px;padding:8px 10px}.toast-editor-grid input[type=number]{width:100%}.toast-preview-stage .tob-toast{width:min(370px,100%)}
@media(max-width:1000px){.toast-editor-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){[data-toast-theme]{animation:none!important;transition:none!important}}
.tob-notification[data-toast-theme]{--notice-bg:var(--tob-bg);--notice-text:var(--tob-text);--notice-muted:var(--tob-text);color:var(--tob-text)}
.tob-notification[data-toast-theme] .tob-notification-message{opacity:.8}.tob-notification[data-tone=green]{--tob-tone:var(--status-success,#15944d)}.tob-notification[data-tone=amber]{--tob-tone:var(--status-warning,#b77914)}.tob-notification[data-tone=purple]{--tob-tone:#8750d8}

/* v3.9.765: compact workspace, accessible native switch and visible theme choices. */
.toast-settings-editor{padding-top:24px}.toast-settings-editor>h2{margin:0 0 8px}.toast-settings-editor>p{margin:0 0 18px;color:var(--muted,#69758a)}
.toast-settings-editor .toast-share-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:18px;background:color-mix(in srgb,var(--primary,#026fff) 5%,var(--surface,#fff));border:1px solid var(--line,#dce3ed);border-radius:12px;padding:14px 16px;margin:0 0 18px;font-size:13px}
.toast-settings-editor .toast-share-toggle input[type=checkbox]{appearance:auto!important;display:block!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;max-width:20px!important;flex:0 0 20px!important;margin:0!important;padding:0!important;accent-color:var(--primary,#026fff);box-shadow:none!important}
.toast-editor-grid{gap:16px}.toast-editor-grid>section{padding:20px;background:var(--surface,#fff)}.toast-editor-grid h3{display:flex;gap:10px;align-items:center;margin:0 0 18px;font-size:16px}.toast-editor-grid h3:before{content:'◈';display:grid;place-items:center;width:32px;height:32px;border-radius:10px;color:var(--primary,#026fff);background:color-mix(in srgb,var(--primary,#026fff) 10%,transparent)}
.toast-editor-grid .form-grid{gap:14px}.toast-editor-grid .form-grid label{font-size:12px;line-height:1.5;margin:0}.toast-editor-grid :is(select,input[type=number]){font-size:13px;min-height:40px;height:40px;padding:8px 10px;margin-top:5px;border-radius:10px;box-sizing:border-box}.toast-theme-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:12px 0 20px}
.toast-theme-choice{appearance:none;padding:8px 4px!important;min-height:64px!important;border:1px solid var(--line,#dce3ed);border-radius:9px;background:var(--surface,#fff);color:var(--text,#23324a);font:inherit;font-size:10px;cursor:pointer;text-align:center;line-height:1.3}.toast-theme-choice[aria-pressed=true]{border-color:var(--primary,#026fff);box-shadow:0 0 0 1px var(--primary,#026fff);background:color-mix(in srgb,var(--primary,#026fff) 7%,var(--surface,#fff))}.toast-theme-choice i{display:block;width:30px;height:12px;border-radius:4px;margin:0 auto 7px;background:color-mix(in srgb,var(--primary,#026fff) 12%,var(--surface,#fff));border:1px solid color-mix(in srgb,var(--primary,#026fff) 35%,transparent)}
.toast-theme-choice[data-theme-choice=solid] i{background:var(--primary,#026fff)}.toast-theme-choice[data-theme-choice=accent-line] i{border-left:4px solid var(--primary,#026fff)}.toast-theme-choice[data-theme-choice=compact-pill] i{border-radius:99px}.toast-theme-choice[data-theme-choice=progress] i{border-bottom:3px solid var(--primary,#026fff)}.toast-theme-choice[data-theme-choice=dark-luxe] i{background:#18293d;border-color:#38bdf8}.toast-theme-choice[data-theme-choice=floating-card] i{box-shadow:0 3px 6px #0003}.toast-theme-choice[data-theme-choice=outline] i{border:1px solid var(--primary,#026fff);background:transparent}.toast-theme-choice[data-theme-choice=minimal] i{background:var(--surface,#fff)}.toast-theme-choice[data-theme-choice=icon-tile] i{background:linear-gradient(90deg,var(--primary,#026fff) 25%,transparent 25%)}
.toast-preview-stage{margin:16px 0 10px;min-height:100px;padding:22px 12px;box-sizing:border-box}.toast-preview-buttons{gap:6px}.toast-preview-buttons .btn{min-height:32px;height:auto;font-size:11px;line-height:1.4;padding:7px 9px;border-radius:8px}.toast-preview-buttons [aria-pressed=true]{background:color-mix(in srgb,var(--primary,#026fff) 12%,var(--surface,#fff));border-color:var(--primary,#026fff);color:var(--primary,#026fff)}[data-preview-note]{display:block;font-size:11px;line-height:1.6;margin-top:10px;color:var(--muted,#69758a)}
.toast-editor-grid [data-scope-note]{margin:-8px 0 16px;font-size:11px;color:var(--muted,#69758a)}.toast-preview-label{display:flex;justify-content:space-between;font-size:11px;font-weight:600;color:var(--muted,#69758a);margin-top:16px}
@media(max-width:480px){.toast-editor-grid>section{padding:14px}.toast-theme-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.toast-editor-grid .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.toast-editor-grid select{max-width:100%;font-size:16px}.toast-editor-grid input[type=number]{font-size:16px}}
.toast-preview-stage .tob-toast[data-toast-theme=compact-pill]{width:max-content;max-width:100%}
.toast-theme-choice:focus-visible,.toast-preview-buttons button:focus-visible{outline:2px solid var(--primary,#026fff);outline-offset:3px}.toast-theme-choice:disabled{cursor:default;opacity:.65}

/* v3.9.768: center the close mark geometrically, independent of font baseline. */
.tob-toast[data-toast-theme] .tob-close{align-self:center;display:grid;place-items:center;padding:0!important;line-height:1!important;font-size:0!important;box-sizing:border-box;flex-shrink:0}
.tob-toast[data-toast-theme] .tob-close:after{content:'';position:absolute;inset:-8px;background:currentColor;transform:none;border:0;border-radius:0;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M18 6 6 18' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center/18px 18px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M18 6 6 18' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center/18px 18px no-repeat}
