:root {
    color-scheme: light;
    --sw-ink: #0f172a;
    --sw-ink-soft: #5b6b80;
    --sw-line: rgba(15, 23, 42, 0.10);
    --sw-line-strong: rgba(15, 23, 42, 0.16);
    --sw-panel: #f4f8fb;
    --sw-surface: #ffffff;
    --sw-surface-soft: #eef4f8;
    --sw-accent: #0f6cbd;
    --sw-accent-strong: #0a4f8a;
    --sw-accent-soft: rgba(15, 108, 189, 0.08);
    --sw-warm: #d97706;
    --sw-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

body.sw-demo-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
    color: var(--sw-ink);
    background:
        radial-gradient(circle at top left, rgba(15, 108, 189, 0.14), transparent 30%),
        radial-gradient(circle at right, rgba(243, 177, 102, 0.16), transparent 28%),
        linear-gradient(180deg, #f5f8fc 0%, #eef4fb 100%);
}

body.sw-scroll-lock {
    overflow: hidden;
}

.sw-demo-shell {
    width: 100%;
    min-height: 100vh;
    padding: 34px 34px 24px;
}

.sw-demo-kicker {
    margin: 0 0 12px;
    color: #0f6cbd;
    font-size: 0.88rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
}

.sw-demo-title {
    margin: 0;
    max-width: 14ch;
    font-size: clamp(2.6rem, 5vw, 5.2rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
}

.sw-demo-copy {
    margin: 18px 0 30px;
    max-width: 70ch;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--sw-ink-soft);
}

.sw-demo-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.sw-demo-intro {
    min-width: 0;
}

.sw-demo-summary {
    display: grid;
    gap: 12px;
}

.sw-demo-card {
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid rgba(19, 35, 56, 0.08);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.sw-demo-card strong,
.sw-demo-card p {
    display: block;
    margin: 0;
}

.sw-demo-card p {
    margin-top: 8px;
    color: var(--sw-ink-soft);
    line-height: 1.6;
}

.sw-demo-card code {
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.94em;
}

.sw-demo-widget-stage {
    margin-top: 24px;
}

.sw-demo-embed {
    margin-top: 20px;
}

.sw-widget-grid {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.sw-widget-card {
    display: block;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.84);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.sw-widget-card-path,
.sw-widget-card-copy {
    display: block;
}

.sw-widget-card-path {
    color: var(--sw-accent);
    font-size: 0.76rem;
    font-weight: 700;
}

.sw-widget-card-title {
    display: block;
    margin-top: 6px;
    font-size: 1rem;
}

.sw-widget-card-copy {
    margin-top: 8px;
    color: var(--sw-ink-soft);
    line-height: 1.6;
}

.sw-demo-embed pre {
    margin: 10px 0 0;
    padding: 14px 16px;
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.94);
    color: #e8eef5;
}

.sw-demo-embed code {
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.65;
    white-space: pre;
}

.sw-widget-root {
    width: 100%;
}

.sw-widget-root button,
.sw-widget-root input,
.sw-widget-root textarea {
    font: inherit;
}

.sw-widget-root [hidden] {
    display: none !important;
}

.sw-widget-shell {
    position: relative;
}

.sw-trigger {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    cursor: pointer;
    text-align: left;
    color: var(--sw-ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 253, 0.90)),
        linear-gradient(120deg, rgba(15, 108, 189, 0.08), rgba(217, 119, 6, 0.10));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sw-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 108, 189, 0.20);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.sw-trigger-search-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    color: var(--sw-accent);
    background: linear-gradient(180deg, rgba(15, 108, 189, 0.14), rgba(15, 108, 189, 0.08));
}

.sw-trigger-search-icon svg,
.sw-search-field-icon svg {
    width: 22px;
    height: 22px;
}

.sw-trigger-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sw-trigger-copy strong {
    font-size: 1.03rem;
    font-weight: 700;
}

.sw-trigger-copy small {
    color: var(--sw-ink-soft);
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw-trigger-shortcut {
    min-width: 40px;
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--sw-ink-soft);
    background: rgba(15, 23, 42, 0.06);
    text-align: center;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.9rem;
}

.sw-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.sw-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.sw-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(15, 108, 189, 0.12), transparent 28%), linear-gradient(180deg, rgba(10, 15, 24, 0.58), rgba(10, 15, 24, 0.78));
    backdrop-filter: blur(18px);
}

.sw-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(250, 252, 254, 0.98), rgba(243, 247, 251, 0.98));
    box-shadow: var(--sw-shadow);
}

.sw-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 24px 32px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.45));
}

.sw-panel-kicker,
.sw-chat-kicker,
.sw-empty-kicker {
    margin: 0 0 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sw-accent);
}

.sw-panel-heading h2,
.sw-chat-header h3,
.sw-results-placeholder h3 {
    margin: 0;
}

.sw-panel-heading h2 {
    font-size: clamp(1.75rem, 2.4vw, 2.5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.sw-panel-copy {
    margin: 9px 0 0;
    max-width: 64ch;
    color: var(--sw-ink-soft);
    line-height: 1.55;
}

.sw-close {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 15px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.72);
    color: var(--sw-ink);
    font-size: 1.8rem;
    line-height: 1;
}

.sw-content-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
    gap: 0;
}

.sw-search-column,
.sw-chat-column {
    min-height: 0;
    overflow: hidden;
}

.sw-search-column {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(249, 251, 253, 0.94));
}

.sw-chat-column {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(240, 246, 250, 0.88), rgba(235, 242, 247, 0.96));
    border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.sw-search-toolbar {
    padding: 20px 32px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.62);
}

.sw-search-field {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.sw-search-field-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sw-accent);
    border-radius: 14px;
    background: rgba(15, 108, 189, 0.10);
}

.sw-search-field input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0;
    background: transparent;
    color: var(--sw-ink);
    font-size: clamp(1rem, 1.2vw, 1.08rem);
}

.sw-search-field input::placeholder,
.sw-chat-form textarea::placeholder {
    color: #7b8ba1;
}

.sw-search-meta,
.sw-chat-sources-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sw-search-meta {
    margin-top: 12px;
    font-size: 0.92rem;
}

.sw-semantic-control {
    display: block;
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 249, 252, 0.9));
}

.sw-semantic-head,
.sw-semantic-scale {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sw-semantic-head {
    justify-content: space-between;
    margin-bottom: 10px;
}

.sw-semantic-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sw-ink);
}

.sw-semantic-head strong {
    font-size: 0.84rem;
    color: var(--sw-accent);
}

.sw-semantic-scale span {
    flex: 0 0 auto;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--sw-ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sw-semantic-scale input[type="range"] {
    flex: 1 1 auto;
    width: 100%;
    accent-color: var(--sw-accent);
}

.sw-search-meta span,
.sw-chat-sources-head span,
.sw-result-topline,
.sw-source-card span,
.sw-status-card,
.sw-status-pill,
.sw-chat-message-role,
.sw-chat-streaming,
.sw-results-placeholder p,
.sw-loading-card,
.sw-error-card,
.sw-source-empty {
    color: var(--sw-ink-soft);
}

.sw-secondary-action,
.sw-primary-action {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.sw-secondary-action {
    padding: 10px 14px;
    color: var(--sw-ink);
    background: rgba(15, 23, 42, 0.06);
}

.sw-primary-action {
    padding: 0 18px;
    min-height: 54px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sw-accent) 0%, var(--sw-accent-strong) 100%);
    box-shadow: 0 14px 28px rgba(15, 108, 189, 0.24);
}

.sw-secondary-action:hover,
.sw-primary-action:hover {
    transform: translateY(-1px);
}

.sw-results,
.sw-chat-thread,
.sw-chat-sources {
    min-height: 0;
    overflow: auto;
}

.sw-results {
    flex: 1;
    padding: 20px 28px 28px 32px;
}

.sw-result-group + .sw-result-group {
    margin-top: 20px;
}

.sw-result-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding: 0 2px;
}

.sw-result-group-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.sw-result-group-title strong {
    font-size: 0.95rem;
}

.sw-result-group-title span,
.sw-result-group-count {
    color: var(--sw-ink-soft);
    font-size: 0.75rem;
}

.sw-result-group-count {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    white-space: nowrap;
}

.sw-result-group-list {
    display: grid;
    gap: 8px;
}

.sw-results-placeholder,
.sw-loading-card,
.sw-error-card,
.sw-results-callout {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--sw-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 252, 0.92));
}

.sw-results-placeholder p,
.sw-loading-card,
.sw-error-card,
.sw-source-empty,
.sw-chat-message-body {
    line-height: 1.65;
}

.sw-result-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.sw-result-card-link {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    color: inherit;
    text-decoration: none;
}

.sw-result-card:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 108, 189, 0.16);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.sw-result-actions {
    display: flex;
    justify-content: flex-end;
}

.sw-result-action {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--sw-accent);
    background: rgba(15, 108, 189, 0.08);
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.sw-result-action:hover {
    background: rgba(15, 108, 189, 0.14);
    transform: translateY(-1px);
}

.sw-result-media {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #f8fbfe, #eef4f8);
}

.sw-result-media-glow {
    position: absolute;
    inset: auto -12px -18px auto;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.14);
    filter: blur(16px);
}

.sw-result-media img,
.sw-source-card img {
    display: block;
    object-fit: cover;
    background: #ffffff;
}

.sw-result-media.is-icon img {
    padding: 10px;
    object-fit: contain;
}

.sw-result-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.sw-result-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
    font-size: 0.76rem;
}

.sw-result-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.22);
}

.sw-result-body {
    min-width: 0;
}

.sw-result-title {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.sw-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 7px;
}

.sw-result-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--sw-accent);
    background: rgba(15, 108, 189, 0.08);
}

.sw-result-badge.is-muted {
    color: var(--sw-ink-soft);
    background: rgba(15, 23, 42, 0.06);
}

.sw-result-snippet {
    margin: 0 0 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.sw-result-path {
    color: var(--sw-accent);
    font-size: 0.76rem;
    font-weight: 600;
}

.sw-results-callout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.sw-results-callout h3 {
    margin: 4px 0 6px;
    font-size: 1.05rem;
}

.sw-results-callout p {
    margin: 0;
    color: var(--sw-ink-soft);
    line-height: 1.6;
}

.sw-result-title mark,
.sw-result-snippet mark,
.sw-source-card strong mark {
    color: inherit;
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.14), rgba(217, 119, 6, 0.30));
    padding: 0 0.12em;
    border-radius: 0.28em;
}

.sw-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.sw-chat-header h3 {
    font-size: 1.15rem;
}

.sw-chat-badge {
    padding: 9px 11px;
    border-radius: 999px;
    border: 1px solid rgba(15, 108, 189, 0.14);
    color: var(--sw-accent);
    background: rgba(15, 108, 189, 0.08);
    font-size: 0.8rem;
    font-weight: 700;
}

.sw-chat-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 24px 12px;
}

.sw-status-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--sw-line);
    line-height: 1.45;
}

.sw-chat-thread {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 24px 14px;
}

.sw-chat-message {
    padding: 13px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--sw-line);
}

.sw-chat-message-body {
    line-height: 1.6;
}

.sw-chat-message-body p,
.sw-chat-message-body ul,
.sw-chat-message-body ol {
    margin: 0;
}

.sw-chat-message-body p + p,
.sw-chat-message-body p + ul,
.sw-chat-message-body p + ol,
.sw-chat-message-body ul + p,
.sw-chat-message-body ol + p,
.sw-chat-message-body ul + ul,
.sw-chat-message-body ol + ol,
.sw-chat-message-body ul + ol,
.sw-chat-message-body ol + ul {
    margin-top: 10px;
}

.sw-chat-message-body ul,
.sw-chat-message-body ol {
    padding-left: 20px;
}

.sw-chat-message-body li + li {
    margin-top: 6px;
}

.sw-chat-message-body strong {
    color: var(--sw-ink);
}

.sw-chat-message-body a {
    color: var(--sw-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sw-chat-message-body code {
    padding: 0.12em 0.38em;
    border-radius: 0.45em;
    background: rgba(15, 23, 42, 0.06);
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.92em;
}

.sw-chat-message-user {
    margin-left: 22px;
    background: linear-gradient(180deg, rgba(15, 108, 189, 0.12), rgba(15, 108, 189, 0.07));
}

.sw-chat-message-assistant {
    margin-right: 10px;
}

.sw-chat-message.is-error {
    border-color: rgba(171, 63, 63, 0.2);
    background: rgba(255, 244, 244, 0.92);
}

.sw-chat-message-role,
.sw-chat-streaming {
    display: inline-flex;
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sw-chat-streaming {
    margin-top: 8px;
    color: var(--sw-accent);
    align-items: center;
    gap: 8px;
}

.sw-chat-streaming::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(15, 108, 189, 0.12);
}

.sw-chat-sources-panel {
    padding: 0 24px 14px;
}

.sw-chat-sources-head {
    margin-bottom: 8px;
}

.sw-chat-sources {
    display: grid;
    gap: 8px;
    max-height: 196px;
}

.sw-source-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--sw-line);
    background: rgba(255, 255, 255, 0.78);
}

.sw-source-card img {
    width: 48px;
    height: 48px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.sw-source-card strong,
.sw-source-card span {
    display: block;
}

.sw-source-card strong {
    line-height: 1.35;
}

.sw-source-card span {
    margin-top: 4px;
    font-size: 0.82rem;
}

.sw-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px 24px 20px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.48);
}

.sw-chat-form textarea {
    width: 100%;
    min-height: 54px;
    max-height: 176px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    resize: none;
    outline: 0;
    color: var(--sw-ink);
    background: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

@media (max-width: 1180px) {
    .sw-demo-shell {
        padding: 24px 20px 20px;
    }

    .sw-demo-hero {
        grid-template-columns: 1fr;
    }

    .sw-content-grid {
        grid-template-columns: 1fr;
    }

    .sw-chat-column {
        border-left: 0;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        min-height: 38vh;
    }

    .sw-search-meta {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    .sw-demo-shell {
        padding: 16px 12px 12px;
    }

    .sw-overlay {
        padding: 0;
    }

    .sw-trigger {
        grid-template-columns: auto 1fr;
    }

    .sw-trigger-shortcut {
        display: none;
    }

    .sw-panel {
        border-radius: 0;
    }

    .sw-panel-header,
    .sw-search-toolbar,
    .sw-chat-header,
    .sw-chat-status,
    .sw-chat-thread,
    .sw-chat-sources-panel,
    .sw-chat-form {
        padding-left: 14px;
        padding-right: 14px;
    }

    .sw-search-meta,
    .sw-chat-form {
        grid-template-columns: 1fr;
    }

    .sw-semantic-scale {
        flex-wrap: wrap;
    }

    .sw-result-group-head {
        padding: 0;
        margin-bottom: 8px;
    }

    .sw-result-card {
        padding: 10px;
    }

    .sw-result-card-link {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 10px;
    }

    .sw-result-media {
        width: 54px;
        height: 54px;
    }

    .sw-results-callout {
        flex-direction: column;
    }
}


.sw-secondary-action:disabled,
.sw-primary-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

