html.op-demo-open { overflow: hidden; }
.op-demo:not([open]), .op-demo [hidden] { display: none !important; }
.op-demo {
    --demo-blue: #1d4ed8;
    --demo-ink: #142238;
    --demo-muted: #526378;
    --demo-line: #d8e2ed;
    position: fixed;
    inset: 0;
    width: min(880px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100% - 24px);
    margin: auto;
    padding: 0;
    border: 1px solid #334662;
    border-radius: 28px;
    background: #121f36;
    color: #f3f7ff;
    box-shadow: 0 36px 110px #020817a8;
    font-family: 'Outfit', system-ui, sans-serif;
    line-height: 1.4;
    overflow: auto;
    overscroll-behavior: contain;
}
.op-demo::backdrop { background: rgb(3 9 22 / .8); }
.op-demo-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
    align-items: center;
    gap: 24px;
    padding: 25px 46px 25px 34px;
    background: radial-gradient(ellipse at 92% 15%, #253e62 0, transparent 53%), #121f36;
}
.op-demo-guide { min-width: 0; padding: 10px 8px; }
.op-demo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #accaff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}
.op-demo-kicker span { width: 7px; height: 7px; border-radius: 50%; background: #64dbaf; }
.op-demo-guide h2 { margin: 14px 0 8px; color: white; font-size: clamp(28px, 4vw, 46px); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; }
.op-demo-guide > p { color: #c0cee2; font-size: 15px; }
.op-demo-steps { display: grid; gap: 12px; margin: 27px 0; list-style: none; }
.op-demo-steps li { display: flex; gap: 12px; align-items: center; color: #ebf2ff; font-size: 14px; }
.op-demo-steps li span {
    display: grid;
    width: 32px;
    height: 30px;
    flex: none;
    place-items: center;
    border: 1px solid #475c7a;
    border-radius: 8px;
    color: #b9d1ff;
    font-size: 12px;
    font-weight: 700;
}
.op-demo-guide .op-demo-privacy { display: flex; gap: 8px; align-items: flex-start; max-width: 29ch; color: #c0cee2; font-size: 12px; }
.op-demo-privacy svg { flex: none; color: #9dbaf0; }
.op-demo-close {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #516582;
    border-radius: 13px;
    color: white;
    background: #263b59;
    cursor: pointer;
}
.op-demo-close:hover { background: #344d70; }
.op-demo-device {
    min-width: 0;
    height: min(690px, calc(100vh - 92px));
    height: min(690px, calc(100dvh - 92px));
    min-height: 430px;
    padding: 8px;
    border: 1px solid #51627a;
    border-radius: 38px;
    background: linear-gradient(155deg, #9aaac2, #38465b 26%, #121a28 60%, #5d6b80);
    box-shadow: 0 22px 45px #040a18a0, inset 0 0 0 2px #1d2839;
}
.op-demo-display { height: 100%; overflow: hidden; isolation: isolate; border-radius: 30px; background: #0b1220; }
.op-demo-boot, .op-demo-app { height: 100%; }
.op-demo-boot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    background: radial-gradient(circle at 50% 45%, #122b48, #060b15 52%);
    text-align: center;
}
.op-demo-boot strong { color: white; font-size: 24px; letter-spacing: -.04em; }
.op-demo-boot span { color: #b4c7e6; font-size: 13px; }
.op-demo-boot-track { width: 105px; height: 3px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #233751; }
.op-demo-boot-track i { display: block; height: 100%; border-radius: inherit; background: #68aaff; transform-origin: left; animation: op-demo-progress .48s ease-out both; }
@keyframes op-demo-progress { from { transform: scaleX(.08); } to { transform: scaleX(1); } }
.op-demo-app { display: flex; flex-direction: column; background: #f1f5fa; color: var(--demo-ink); }
.op-demo-app-header { display: flex; flex: none; align-items: center; gap: 8px; min-height: 61px; padding: 11px 16px; background: #14223a; color: white; }
.op-demo-app-header strong { color: white; font-size: 16px; }
.op-demo-app-header > span { margin-left: auto; padding: 3px 7px; border: 1px solid #5879a9; border-radius: 6px; color: #bcd5ff; font-size: 10px; font-weight: 700; letter-spacing: .09em; }
.op-demo-mode { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--demo-line); background: #fff; }
.op-demo-mode:has([data-demo-preview-controls][hidden]) { justify-content: flex-end; }
.op-demo-mode-label { display: flex; align-items: center; gap: 5px; min-width: 0; color: #334d70; font-size: 11px; font-weight: 700; }
.op-demo-mode-label svg { flex: none; }
.op-demo-mode [data-demo-mode="interactive"] { min-height: 36px; flex: none; font-size: 12px; }
.op-demo-preview-link { min-height: 32px; color: #19428e; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.op-demo-previews { min-height: 0; flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; background: #f3f6fa; scrollbar-width: thin; }
.op-demo-previews:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; }
.op-demo-previews figure { margin: 0; }
.op-demo-previews img { display: block; width: 100%; height: auto; }
.op-demo-previews img:not([src]) { visibility: hidden; }
.op-demo-content { min-height: 0; flex: 1 1 auto; padding: 16px 14px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.op-demo-section-head { display: flex; gap: 10px; align-items: flex-end; justify-content: space-between; margin-bottom: 13px; }
.op-demo-overline { color: var(--demo-muted); font-size: 11px; font-weight: 700; }
.op-demo-section-head h3 { color: var(--demo-ink); font-size: 22px; font-weight: 700; line-height: 1.14; letter-spacing: -.025em; }
.op-demo-section-head h3 span:not(:empty) { display: inline-block; vertical-align: middle; margin-left: 2px; padding: 2px 6px; border-radius: 6px; background: #e3edff; color: #214d9e; font-size: 11px; letter-spacing: 0; }
.op-demo-primary { min-height: 40px; padding: 8px 12px; border: 0; border-radius: 9px; background: var(--demo-blue); color: white; font-size: 13px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.op-demo-primary:hover { background: #1742b8; }
.op-demo-mobile-privacy { margin: 0 0 12px; padding: 9px 10px; border: 1px solid #d7e6fa; border-radius: 9px; background: #edf5ff; color: #36577a; font-size: 12px; }
.op-demo-list { display: grid; gap: 8px; list-style: none; }
.op-demo-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 10px; min-height: 65px; padding: 10px; border: 1px solid var(--demo-line); border-radius: 11px; background: white; }
.op-demo-item-main { display: grid; min-width: 0; flex: 1 1 135px; gap: 3px; }
.op-demo-item-title { color: var(--demo-ink); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.op-demo-plate { letter-spacing: .045em; }
.op-demo-item-detail { color: var(--demo-muted); font-size: 12px; overflow-wrap: anywhere; }
.op-demo-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.op-demo-status { padding: 3px 6px; border-radius: 5px; background: #ecf1f8; color: #43556c; font-size: 10px; font-weight: 700; }
.op-demo-status[data-demo-status="in-progress"] { background: #fff2dd; color: #814509; }
.op-demo-status[data-demo-status="completed"] { background: #e5f7ee; color: #126546; }
.op-demo-item-button { min-height: 34px; padding: 4px 7px; border: 1px solid #c9dcfb; border-radius: 6px; background: #f2f7ff; color: #19428e; font-size: 11px; font-weight: 700; cursor: pointer; }
.op-demo-empty { padding: 12px; color: var(--demo-muted); font-size: 13px; }
.op-demo-form { display: grid; gap: 8px; padding: 11px; border: 1px solid var(--demo-line); border-radius: 11px; background: white; }
.op-demo-field, .op-demo-field-pair { display: grid; min-width: 0; gap: 4px; }
.op-demo-field-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.op-demo-field > span { color: var(--demo-ink); font-size: 12px; font-weight: 700; }
.op-demo-field input, .op-demo-field select, .op-demo-field textarea {
    width: 100%;
    min-height: 41px;
    padding: 7px 8px;
    border: 1px solid #b9c9db;
    border-radius: 8px;
    background: #fbfdff;
    color: var(--demo-ink);
    font: inherit;
    font-size: 16px;
}
.op-demo-field input::placeholder, .op-demo-field textarea::placeholder { color: #697c91; opacity: 1; font-size: 13px; }
.op-demo-field textarea { resize: vertical; }
.op-demo-field .op-demo-plate-field { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.op-demo-example { justify-self: start; min-height: 32px; padding: 4px 7px; border-radius: 6px; background: #eaf2ff; color: #17428e; font-size: 11px; font-weight: 700; cursor: pointer; }
.op-demo-example b { margin-left: 2px; white-space: nowrap; }
.op-demo-field-hint { color: var(--demo-muted); font-size: 11px; }
.op-demo-submit { width: 100%; }
.op-demo-customer-create { margin-bottom: 11px; }
.op-demo-customer-create summary { display: list-item; width: fit-content; min-height: 38px; padding: 8px 10px; border: 1px solid #bcd1f2; border-radius: 8px; background: #eaf2ff; color: #19428e; font-size: 13px; font-weight: 700; cursor: pointer; }
.op-demo-customer-create[open] summary { margin-bottom: 8px; }
.op-demo-announcement { flex: none; margin: 0 12px 6px; padding: 6px 9px; border-radius: 6px; background: #e4efff; color: #173e81; font-size: 12px; font-weight: 600; }
.op-demo-announcement:empty { margin: 0; padding: 0; }
.op-demo-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: none; gap: 2px; padding: 4px 6px 0; border-top: 1px solid var(--demo-line); background: white; }
.op-demo-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 49px; padding: 4px; border-radius: 8px; color: #415570; font-size: 10px; font-weight: 700; text-align: center; cursor: pointer; }
.op-demo-tabs button.is-active { background: #eaf2ff; color: #1645a4; }
.op-demo-tabs button:hover { color: #1746a5; }
.op-demo-reset { min-height: 31px; flex: none; background: white; color: #435976; font-size: 11px; text-decoration: underline; cursor: pointer; }
.op-demo :is(button, input, select, textarea, summary):focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.op-demo-close:focus-visible { outline-color: #9dc4ff !important; }
@media (max-width: 650px) {
    .op-demo { width: min(100%, 460px); max-height: 100%; border-radius: 20px; }
    .op-demo-shell { display: block; padding: 0; }
    .op-demo-guide { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
    .op-demo-device { height: min(770px, 100vh); height: min(770px, 100dvh); min-height: 0; padding: 0; border: 0; border-radius: 0; }
    .op-demo-display { border-radius: 0; }
    .op-demo-app-header { padding-right: 67px; }
    .op-demo-close { top: 8px; right: 12px; }
    .op-demo-reset { min-height: max(34px, calc(28px + env(safe-area-inset-bottom))); }
}
@media (max-width: 460px) {
    .op-demo { border: 0; border-radius: 0; }
    .op-demo-device { height: 100vh; height: 100dvh; }
}
@media (prefers-reduced-motion: reduce) {
    .op-demo-boot-track i { animation: none; }
}
