.workspace-demo {
    margin: 22px 0 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(15px, 3vw, 32px);
    background: radial-gradient(circle, color-mix(in srgb, var(--ink) 13%, transparent) 1px, transparent 1px) 0 0 / 17px 17px, var(--panel);
}
.workspace-demo-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, .88fr);
    align-items: center;
    gap: clamp(12px, 2vw, 25px);
    max-width: 780px;
    margin: auto;
}
.workspace-demo-source { min-width: 0; width: min(100%, 328px); justify-self: end; }
.workspace-demo-browser {
    overflow: hidden;
    border: 1px solid #d4e2ef;
    border-radius: 15px;
    background: #edf4fb;
    color: #19283b;
    box-shadow: 0 12px 23px #253c6314;
}
.workspace-demo-address {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid #d9e4ef;
    background: #fbfdff;
    color: #4d5f75;
    font-size: 12px;
}
.workspace-demo-address .icon { flex: none; }
.workspace-demo-site { padding: 14px; }
.workspace-demo-company { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; }
.workspace-demo-company img { flex: none; object-fit: contain; }
.workspace-demo-company strong, .workspace-demo-company small { display: block; }
.workspace-demo-company strong { font-size: 14px; line-height: 1.2; }
.workspace-demo-company small { color: #526780; font-size: 11px; }
.workspace-demo-widget {
    border: 1px solid #d9e4ee;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.workspace-demo-widget h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 9px 10px;
    border-bottom: 1px solid #e4eaf0;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 650;
}
.workspace-demo-widget h3 img { flex: none; object-fit: contain; }
.workspace-demo-close { display: grid; place-items: center; flex: none; margin-left: auto; color: #526780; }
.workspace-demo-widget-body { display: flex; flex-direction: column; justify-content: space-between; min-height: 199px; gap: 9px; padding: 10px; }
.workspace-demo-fields { display: grid; gap: 6px; margin: 0; }
.workspace-demo-fields dt { margin-bottom: 2px; color: #4d5f75; font-size: 11px; font-weight: 550; }
.workspace-demo-fields dd {
    margin: 0;
    padding: 4px 7px;
    border: 1px solid #e0e7ef;
    border-radius: 6px;
    background: #f6f8fa;
    font-size: 11px;
    overflow-wrap: anywhere;
}
.workspace-demo-booking > p { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12px; }
.workspace-demo-booking > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.workspace-demo-booking > div > * { padding: 7px 2px; border: 1px solid #dce6ef; border-radius: 6px; font-size: 11px; text-align: center; }
.workspace-demo-booking strong { border-color: #2b6b95; background: #e9f4fb; color: #185881; }
.workspace-demo-chat { display: grid; gap: 8px; justify-items: start; }
.workspace-demo-chat p { border-radius: 10px 10px 10px 3px; background: #edf2f6; margin: 0; padding: 7px 9px; font-size: 11px; }
.workspace-demo-chat p:last-child { justify-self: end; border-radius: 10px 10px 3px 10px; color: #fff; background: #1d628e; }
.workspace-demo-action > * {
    display: flex;
    min-height: 33px;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    background: #1d628e;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}
.workspace-demo-action strong { display: none; }
.workspace-demo-powered { margin: 0 0 8px; color: #526780; text-align: center; font-size: 10px; }
.workspace-demo[data-phase="routing"] .workspace-demo-action > span {
    animation: workspace-submit .26s ease-out both;
}
.workspace-demo[data-phase="arrived"] .workspace-demo-action > span { display: none; }
.workspace-demo[data-phase="arrived"] .workspace-demo-action strong { display: flex; background: #e7f3ed; color: #215f45; }
@keyframes workspace-submit { 45% { transform: scale(.97); background: #164d70; } }
.workspace-demo-route {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: fit-content;
    margin: 10px auto 0;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--body-text);
    font-size: 12px;
}
.workspace-demo-route strong { color: var(--ink); }
.workspace-demo-route .icon, .workspace-demo-route img { flex: none; object-fit: contain; }
.workspace-demo-connector { position: relative; display: grid; align-items: center; height: 24px; color: var(--accent); }
.workspace-demo-connector .icon { margin-left: auto; }
.workspace-demo-connector::before { content: ""; position: absolute; inset-inline: 0 12px; border-top: 1px dashed var(--accent); opacity: .5; }
.workspace-demo[data-phase="routing"] .workspace-demo-connector::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 9px var(--accent);
    animation: workspace-transit .66s .2s ease-in-out both;
}
@keyframes workspace-transit { from { left: 0; } to { left: calc(100% - 12px); } }
.workspace-demo-phone {
    justify-self: start;
    width: min(100%, 253px);
    height: 416px;
    padding: 6px;
    border-radius: 31px;
    background: #202e43;
    box-shadow: 0 14px 26px #20375030;
}
.workspace-demo-screen {
    position: relative;
    isolation: isolate;
    height: 100%;
    overflow: hidden;
    border-radius: 25px;
    color: #253751;
    background: radial-gradient(ellipse at 25% 6%, #e3ecf8, transparent 70%), linear-gradient(150deg, #bcd3e6, #a2bbce);
}
.workspace-demo-screen::before, .workspace-demo-screen::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}
.workspace-demo-screen::before { inset: 35% -55% -27% -16%; transform: rotate(-27deg); background: #9bb5c9; }
.workspace-demo-screen::after { inset: 66% -26% -48% -57%; transform: rotate(19deg); background: linear-gradient(155deg, #d2e2f1, #9dbbd3); }
.workspace-demo-status { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 13px; font-size: 11px; font-weight: 650; }
.workspace-demo-camera { position: absolute; top: 10px; left: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: #253751; }
.workspace-demo-device-indicators { display: flex; gap: 5px; align-items: center; }
.workspace-demo-device-indicators i { display: block; width: 12px; height: 7px; border: 1px solid #253751; border-radius: 2px; box-shadow: inset 7px 0 #253751; }
.workspace-demo-date { display: block; min-height: 17px; margin: 6px 13px 0; font-size: 13px; font-weight: 620; }
.workspace-demo-alerts { margin: 11px 9px 0; }
.workspace-demo[data-phase="ready"] .workspace-demo-alerts,
.workspace-demo[data-phase="routing"] .workspace-demo-alerts { visibility: hidden; }
.workspace-demo-alert {
    padding: 9px 10px;
    border: 1px solid #dce6ee;
    border-radius: 14px;
    background: #fbfdff;
    color: #19283b;
    box-shadow: 0 5px 15px #27456d22;
}
.workspace-demo[data-phase="arrived"].is-running .workspace-demo-alert:not([hidden]) { animation: workspace-arrival .42s cubic-bezier(.18,.72,.24,1) both; }
@keyframes workspace-arrival { from { transform: translateY(-12px) scale(.97); opacity: 0; } }
.workspace-demo-alert header { display: flex; align-items: center; gap: 6px; color: #42576f; font-size: 11px; }
.workspace-demo-alert header img { flex: none; object-fit: contain; }
.workspace-demo-alert header span { margin-left: auto; align-self: baseline; color: #516278; font-size: 10px; }
.workspace-demo-alert h3 { font-size: 13px; font-weight: 680; line-height: 1.3; margin: 5px 0 2px; }
.workspace-demo-alert p { margin: 0; color: #445972; font-size: 11px; line-height: 1.4; }
.workspace-demo-alert p b { font-weight: 620; color: #253751; }
.workspace-demo-dock { position: absolute; bottom: 53px; inset-inline: 19px; display: flex; justify-content: space-between; gap: 4px; }
.workspace-demo-dock img { padding: 5px; border-radius: 50%; background: #edf5fb; object-fit: contain; }
.workspace-demo-search {
    position: absolute;
    bottom: 15px;
    inset-inline: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 20px;
    background: #edf5fb;
    color: #41536a;
    font-size: 11px;
}
.workspace-demo-search i { width: 9px; height: 9px; position: relative; border: 1px solid currentColor; border-radius: 50%; }
.workspace-demo-search i::after { content: ""; position: absolute; width: 5px; height: 1px; top: 6px; left: 6px; transform: rotate(45deg); background: currentColor; }
.workspace-demo-gesture { position: absolute; bottom: 4px; left: 35%; width: 30%; height: 3px; border-radius: 8px; background: #253751; }
.workspace-demo-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 780px;
    margin: 13px auto 0;
    color: var(--body-text);
    font-size: 12px;
}
.workspace-demo-controls { display: flex; gap: 6px; }
.workspace-demo-controls button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.workspace-demo-controls button:hover { color: var(--accent-active); border-color: var(--accent); }
.workspace-demo [hidden] { display: none !important; }
@media (max-width: 690px) {
    .workspace-demo-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 7px; }
    .workspace-demo-source, .workspace-demo-phone { justify-self: center; }
    .workspace-demo-connector { width: 24px; transform: rotate(90deg); }
    .workspace-demo-phone { height: 385px; }
}
@media (prefers-reduced-motion: reduce) {
    .workspace-demo *, .workspace-demo *::after { animation: none !important; }
}
@media (pointer: coarse) {
    .workspace-demo-controls button { min-height: 44px; }
}
