/* Swift Media support dock — light panel so it reads on the dark site */
.sm-dock {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 1200;
    font-family: Inter, system-ui, sans-serif;
    color: #18181b;
}
.sm-dock-launcher {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(24, 24, 27, 0.12);
    background: #fff;
    color: #18181b;
    border-radius: 999px;
    padding: 0.45rem 0.95rem 0.45rem 0.45rem;
    box-shadow: 0 14px 36px -14px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}
.sm-dock-launcher img {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #fff7ed;
    object-fit: cover;
}
.sm-dock-launcher:hover {
    border-color: rgba(234, 88, 12, 0.4);
    background: #fff7ed;
}
.sm-dock-panel {
    position: absolute;
    right: 0;
    bottom: 3.7rem;
    width: min(22.5rem, calc(100vw - 1.5rem));
    max-height: min(34rem, calc(100dvh - 6rem));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 1.1rem;
    border: 1px solid rgba(24, 24, 27, 0.1);
    background: #fff;
    color: #18181b;
    box-shadow: 0 28px 64px -24px rgba(0, 0, 0, 0.55);
}
.sm-dock-panel[hidden],
#sm-live-pre[hidden],
#sm-live-room[hidden],
.sm-live-room[hidden] {
    display: none !important;
}
.sm-dock-kicker {
    margin: 0;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c2410c;
}
.sm-dock-intro { padding: 1rem 1rem 0.15rem; }
.sm-dock-lead {
    margin: 0.45rem 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #52525b;
}
.sm-dock-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid #e4e4e7;
}
.sm-dock-head-title {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #18181b;
}
.sm-dock-close {
    border: 0;
    background: transparent;
    color: #71717a;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.2rem;
}
.sm-dock-close:hover { color: #18181b; }
.sm-dock-body {
    padding: 1rem;
    overflow: auto;
    background: #fafafa;
}
.sm-dock-choice {
    display: block;
    width: calc(100% - 2rem);
    margin: 0.65rem 1rem 0;
    text-align: left;
    border-radius: 0.85rem;
    border: 1px solid #e4e4e7;
    background: #fafafa;
    color: inherit;
    padding: 0.85rem 0.95rem;
    cursor: pointer;
}
.sm-dock-choice:last-of-type { margin-bottom: 1rem; }
.sm-dock-choice:hover {
    border-color: #fdba74;
    background: #fff7ed;
}
.sm-dock-choice-title { display: block; font-weight: 600; font-size: 0.9rem; }
.sm-dock-choice-note { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: #71717a; }
.sm-dock-form label {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #3f3f46;
}
.sm-dock-form label span { color: #dc2626; }
.sm-dock-form .sm-opt { color: #a1a1aa; font-weight: 400; }
.sm-dock-form input,
.sm-dock-form textarea {
    display: block;
    width: 100%;
    margin-top: 0.3rem;
    border-radius: 0.7rem;
    border: 1px solid #d4d4d8;
    background: #fff;
    color: #18181b;
    padding: 0.55rem 0.7rem;
    font: inherit;
    font-size: 0.85rem;
}
.sm-dock-form input:focus,
.sm-dock-form textarea:focus,
.sm-live-composer input:focus {
    outline: none;
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.16);
}
.sm-dock-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    border-radius: 0.75rem;
    background: #ea580c;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.65rem 0.9rem;
    cursor: pointer;
}
.sm-dock-submit:hover { background: #c2410c; }
.sm-dock-submit:disabled { opacity: 0.6; cursor: wait; }
.sm-dock-status { min-height: 1.1rem; margin: 0.55rem 0 0; font-size: 0.75rem; color: #71717a; }
.sm-dock-status.is-err { color: #dc2626; }
.sm-dock-status.is-ok { color: #047857; }
.sm-hp {
    position: absolute;
    left: -9999px;
    height: 1px;
    width: 1px;
    opacity: 0;
}
.sm-live-room { display: flex; flex-direction: column; height: 26rem; padding: 0; background: #fafafa; }
.sm-live-log {
    flex: 1;
    overflow: auto;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.sm-live-bubble {
    max-width: 85%;
    border-radius: 0.85rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}
.sm-live-bubble.is-you {
    align-self: flex-end;
    background: #ea580c;
    color: #fff;
}
.sm-live-bubble.is-agent {
    align-self: flex-start;
    background: #fff;
    color: #27272a;
    border: 1px solid #e4e4e7;
}
.sm-live-meta {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.7;
}
.sm-live-composer {
    display: flex;
    gap: 0.4rem;
    padding: 0.7rem 0.85rem 0.9rem;
    border-top: 1px solid #e4e4e7;
    background: #fff;
}
.sm-live-composer input {
    flex: 1;
    border-radius: 0.7rem;
    border: 1px solid #d4d4d8;
    background: #fff;
    color: #18181b;
    padding: 0.55rem 0.7rem;
    font: inherit;
    font-size: 0.85rem;
}
.sm-dock-send { width: auto; padding-left: 1rem; padding-right: 1rem; }
@media (max-width: 420px) {
    .sm-dock { right: 0.7rem; bottom: 0.7rem; }
    .sm-dock-launcher span { display: none; }
    .sm-dock-launcher { padding: 0.4rem; }
}
