/* Small, self-contained examples; text and controls stay inside the preview. */
.uxp {
  --uxp-blue: #2e67ea;
  --uxp-soft: #edf3ff;
  --uxp-ink: #202e48;
  --uxp-mute: #5f6d84;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  width: min(88%, 320px);
  min-width: 0;
  max-height: 100%;
  padding: 15px 17px;
  margin: auto;
  border: 1px solid #dee5f1;
  border-radius: 13px;
  background: #fff;
  color: var(--uxp-ink);
  box-shadow: 0 4px 12px rgb(33 60 103 / .07), 0 1px 2px rgb(33 60 103 / .04);
  text-align: left;
  font: 500 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  letter-spacing: -.025em;
  overflow-wrap: break-word;
}
.uxp *, .uxp *::before, .uxp *::after { box-sizing: border-box; }
.uxp [hidden] { display: none !important; }
.uxp button, .uxp input, .uxp select, .uxp textarea { font: inherit; letter-spacing: inherit; }
.uxp button {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  min-width: 0; min-height: 0; height: auto; margin: 0; padding: 5px 9px;
  border: 0; border-radius: 6px; color: inherit; background: none;
  font-size: 12px; font-weight: 650; line-height: 1.35; cursor: pointer; box-shadow: none;
}
.uxp button:focus-visible, .uxp summary:focus-visible, .uxp input:focus-visible, .uxp textarea:focus-visible, .uxp select:focus-visible {
  outline: 2px solid #1b54d3; outline-offset: 2px;
}
.uxp button:disabled { opacity: .45; cursor: default; }
.uxp strong, .uxp b { color: inherit; }
.uxp .uxp-heading, .uxp legend, .uxp .uxp-label { display: block; font-size: 14px; font-weight: 750; color: #192940; line-height: 1.45; }
.uxp small, .uxp .uxp-note, .uxp output { display: block; font-size: 11px; line-height: 1.45; color: var(--uxp-mute); font-weight: 500; }
.uxp .uxp-note { margin-top: 2px; }
.uxp .uxp-line { display: block; }
.uxp .uxp-spread, .uxp .uxp-actions, .uxp .uxp-fileline { display: flex; align-items: center; }
.uxp .uxp-spread, .uxp .uxp-fileline { justify-content: space-between; gap: 7px; }
.uxp .uxp-actions { gap: 5px; }
.uxp .uxp-soft { background: var(--uxp-soft); color: #2857bd; }
.uxp .uxp-solid { background: var(--uxp-blue); color: #fff; }
.uxp .uxp-text { color: #2c5ab6; padding: 4px 1px; font-size: 11px; }
.uxp .uxp-tiny { width: 25px; height: 24px; padding: 0; font-size: 17px; line-height: 1; background: #eef2fa; color: #3f587c; }
.uxp .uxp-soft:hover, .uxp .uxp-tiny:hover, .uxp .uxp-plain:hover { background: #e0eaff; }
.uxp .uxp-solid:hover { background: #1c53d4; }
.uxp .uxp-result { overflow-wrap: anywhere; }
.uxp .uxp-result:empty { display: none; }
.uxp .uxp-segments { display: flex; padding: 3px; background: #edf1f8; border-radius: 7px; margin: 10px 0 8px; }
.uxp .uxp-segments button { flex: 1; padding: 4px 0; font-size: 11px; font-weight: 600; color: #5c6a80; }
.uxp .uxp-segments button[aria-pressed=true] { background: white; color: #204dba; box-shadow: 0 1px 4px #cdd6e7; }
.uxp .uxp-stat { display: flex; justify-content: space-between; align-items: end; gap: 7px; }
.uxp .uxp-stat strong, .uxp .uxp-progress-label strong { color: #1c2c47; font-size: 20px; font-weight: 750; letter-spacing: -.045em; }
.uxp .uxp-bars { display: flex; align-items: end; justify-content: end; gap: 3px; width: 32%; height: 31px; border-bottom: 1px solid #dce6f8; }
.uxp .uxp-bars i { width: 9%; background: #acc5fd; border-radius: 2px 2px 0 0; transition: height .25s ease; }
.uxp .uxp-bars i:nth-last-child(-n+2) { background: #4c7dec; }
.uxp.uxp-modal { min-height: 141px; overflow: hidden; padding: 0; }
.uxp .uxp-booking { padding: 12px 14px 24px; }
.uxp .uxp-booking .uxp-soft { margin-top: 6px; }
.uxp .uxp-scrim { position: absolute; inset: 0; display: flex; align-items: end; background: rgb(31 48 78 / .22); }
.uxp .uxp-sheet, .uxp .uxp-bottom {
  width: 100%; padding: 6px 13px 10px; border-radius: 13px 13px 0 0;
  background: white; box-shadow: 0 -3px 10px rgb(33 54 80 / .08);
}
.uxp .uxp-sheet strong, .uxp .uxp-bottom strong { font-size: 13px; }
.uxp .uxp-sheet small { font-size: 10px; }
.uxp .uxp-sheet .uxp-actions, .uxp .uxp-bottom .uxp-actions { margin-top: 6px; }
.uxp .uxp-sheet button, .uxp .uxp-bottom button { flex: 1; }
.uxp .uxp-handle { display: block; width: 28px; height: 3px; border-radius: 3px; background: #d4dbe7; margin: 0 auto 6px; }
.uxp .uxp-feed { display: grid; gap: 8px; margin-top: 11px; }
.uxp .uxp-feedrow, .uxp .uxp-placeholder { display: flex; align-items: center; gap: 10px; }
.uxp .uxp-feedrow b { display: block; font-size: 12px; }
.uxp .uxp-feedrow small { font-size: 10px; }
.uxp .uxp-symbol, .uxp .uxp-placeholder i { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 8px; }
.uxp .uxp-symbol { color: #4b80f1; font-size: 18px; background: #e5effe; }
.uxp .uxp-symbol.uxp-mint { background: #ddf5ec; color: #43a38a; font-size: 14px; }
.uxp .uxp-placeholder i, .uxp .uxp-placeholder b, .uxp .uxp-placeholder b::after {
  background: linear-gradient(105deg,#dce5f5 20%,#eff4fc 44%,#dce5f5 68%);
  background-size: 260% 100%; animation: uxp-glimmer 3.1s ease-in-out infinite;
}
.uxp .uxp-placeholder b { width: 61%; height: 8px; margin-top: -12px; border-radius: 3px; position: relative; }
.uxp .uxp-placeholder b::after { content: ""; position: absolute; width: 66%; height: 6px; top: 13px; left: 0; border-radius: 2px; }
.uxp .uxp-placeholder:nth-child(2) b { width: 49%; }
@keyframes uxp-glimmer { from { background-position: 100% 0; } to { background-position: -60% 0; } }
.uxp .uxp-progress-label { margin-top: 7px; }
.uxp .uxp-progress-label b { color: var(--uxp-blue); font-size: 13px; font-variant-numeric: tabular-nums; }
.uxp progress { display: block; appearance: none; border: 0; border-radius: 8px; width: 100%; height: 7px; overflow: hidden; margin: 6px 0; color: #3e79f6; background: #e7ebf3; }
.uxp progress::-webkit-progress-bar { background: #e7ebf3; }
.uxp progress::-webkit-progress-value { background: #3e79f6; border-radius: 8px; transition: width .25s; }
.uxp progress::-moz-progress-bar { background: #3e79f6; border-radius: 8px; }
.uxp details { padding: 0; margin: 0; border: 0; border-bottom: 1px solid #e8edf4; border-radius: 0; box-shadow: none; background: transparent; }
.uxp details:first-of-type { margin-top: 5px; }
.uxp details:last-child { border-bottom: 0; }
.uxp summary { position: relative; padding: 6px 16px 6px 0; list-style: none; font-size: 12px; font-weight: 650; cursor: pointer; }
.uxp summary::-webkit-details-marker { display: none; }
.uxp summary::after { content: ""; position: absolute; top: calc(50% - 4px); right: 3px; width: 6px; height: 6px; border: solid #61728e; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.uxp details[open] summary::after { transform: rotate(225deg); top: calc(50% - 1px); }
.uxp details small { padding: 5px 7px; border-radius: 5px; background: #f1f4f9; margin-bottom: 5px; }
.uxp.uxp-date-picker { padding: 11px 13px; }
.uxp .uxp-cal-nav { display: flex; align-items: center; gap: 4px; }
.uxp .uxp-cal-nav b { font-size: 11px; white-space: nowrap; }
.uxp .uxp-cal-nav button { width: 22px; height: 22px; font-size: 15px; }
.uxp .uxp-week, .uxp .uxp-month { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 1px; }
.uxp .uxp-week { margin: 5px 0 2px; color: var(--uxp-mute); font-size: 10px; }
.uxp .uxp-month button { width: 100%; height: 17px; padding: 0; border-radius: 10px; font-size: 10px; font-variant-numeric: tabular-nums; }
.uxp .uxp-month button[aria-pressed=true] { background: var(--uxp-blue); color: #fff; }
.uxp .uxp-month button:hover { box-shadow: inset 0 0 0 1px #8fb2fd; }
.uxp .uxp-tipline { display: flex; align-items: center; gap: 7px; margin-top: 10px; position: relative; }
.uxp .uxp-tipline strong { font-size: 20px; }
.uxp .uxp-help { height: 22px; width: 22px; border-radius: 50%; background: #e3edff; color: #245acb; padding: 0; }
.uxp .uxp-tipline [role=tooltip], .uxp .uxp-toastbox, .uxp .uxp-snack { background: #26364e; border-radius: 7px; color: white; box-shadow: 0 4px 10px #24364c20; font-size: 11px; }
.uxp .uxp-tipline [role=tooltip] { position: absolute; z-index: 1; bottom: 100%; left: 0; padding: 6px 9px; max-width: 100%; }
.uxp.uxp-toast > button, .uxp.uxp-bottom-sheet > button { margin-top: 10px; }
.uxp .uxp-toastbox { padding: 7px 9px; margin-top: 5px; }
.uxp .uxp-inbox { display: flex; gap: 9px; align-items: center; margin-bottom: 10px; }
.uxp .uxp-envelope { display: grid; place-items: center; width: 37px; height: 37px; color: #4477d7; background: #eaf2ff; border-radius: 10px; font-size: 22px; }
.uxp .uxp-badge { display: inline-grid; place-items: center; min-width: 17px; height: 17px; font: 700 10px/1 sans-serif; border-radius: 15px; color: white; background: #3269d8; vertical-align: 2px; }
.uxp .uxp-chips, .uxp .uxp-avatars { display: flex; align-items: center; margin: 9px 0; }
.uxp .uxp-chips { gap: 4px; flex-wrap: wrap; }
.uxp .uxp-chips button { font-size: 11px; border: 1px solid #dce3ec; border-radius: 15px; background: #fbfcfe; }
.uxp .uxp-chips button[aria-pressed=true] { border-color: #99b7fe; background: #edf3ff; color: #285bc3; }
.uxp .uxp-avatars > * { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 2px solid white; border-radius: 50%; margin-left: -7px; font-size: 12px; font-weight: 650; }
.uxp .uxp-avatars span:first-child { margin-left: 0; color: #4843a5; background: #ddd9ff; }
.uxp .uxp-avatars span:nth-child(2) { color: #2f7064; background: #c4eddf; }
.uxp .uxp-avatars span:nth-child(3) { color: #934f32; background: #ffdfc4; }
.uxp .uxp-avatars button { background: #e3edff; color: #3f61ad; }
.uxp .uxp-more { width: 27px; height: 26px; background: #f0f4fa; padding: 0; font-size: 18px; }
.uxp .uxp-pop { border-radius: 7px; border: 1px solid #dbe4f1; background: white; box-shadow: 0 3px 8px #24364c18; padding: 3px; margin-left: auto; width: max-content; }
.uxp .uxp-pop button { display: flex; width: 100%; justify-content: start; font-size: 11px; }
.uxp .uxp-bottom { position: absolute; z-index: 1; left: 0; bottom: 0; border: 1px solid #dce5f2; animation: uxp-rise .22s ease-out; }
@keyframes uxp-rise { from { transform: translateY(20px); opacity:.45; } }
.uxp .uxp-poster { --uxp-poster-base:#d5e7ff; --uxp-poster-ink:#6f96d4; position: relative; overflow: hidden; background: var(--uxp-poster-base); height: 60px; border-radius: 7px; margin-bottom: 8px; }
.uxp .uxp-poster[data-slide="1"] { --uxp-poster-base:#ffe8dd; --uxp-poster-ink:#e59877; }
.uxp .uxp-poster[data-slide="2"] { --uxp-poster-base:#d5f2e1; --uxp-poster-ink:#78ae87; }
.uxp .uxp-poster i { position: absolute; width: 55%; height: 90px; background: var(--uxp-poster-ink); border-radius: 50%; top: 30px; left: -10%; transform: rotate(22deg); }
.uxp .uxp-poster i:nth-child(2) { opacity: .55; width: 64%; top: 15px; left: 23%; transform: rotate(-22deg); }
.uxp .uxp-poster i:nth-child(3) { width: 17px; height: 17px; top: 8px; left: 79%; background: white; }
.uxp .uxp-poster b { position: absolute; z-index: 1; top: 7px; left: 9px; font-size: 10px; color: #233858; letter-spacing: .1em; }
.uxp .uxp-records { display: grid; gap: 1px; margin: 6px 0; padding: 5px 7px; background: #f3f6fb; border-radius: 5px; font-size: 11px; }
.uxp .uxp-pages { display: flex; gap: 3px; justify-content: center; }
.uxp .uxp-pages button { width: 22px; height: 22px; padding: 0; font-size: 10px; }
.uxp .uxp-pages button[aria-current=page] { background: var(--uxp-blue); color: white; }
.uxp.uxp-empty-state { text-align: center; }
.uxp .uxp-folder { width: 39px; height: 24px; border-radius: 3px 4px 5px 5px; background: #b0cbfa; position: relative; margin: 6px auto 8px; transform: rotate(-5deg); }
.uxp .uxp-folder::before { position: absolute; content: ""; top: -5px; left: 1px; width: 17px; height: 7px; border-radius: 4px 4px 0 0; background: #83aaed; }
.uxp .uxp-folder.uxp-filled::after { content: "✓"; position: absolute; inset: 3px; color: #244a8d; font-weight: bold; }
.uxp.uxp-empty-state > button { margin-top: 8px; }
.uxp .uxp-fileline, .uxp .uxp-snack, .uxp .uxp-banner { margin-top: 10px; border-radius: 6px; padding: 8px; }
.uxp .uxp-fileline { background: #f3f6fb; }
.uxp .uxp-snack, .uxp .uxp-banner { display: flex; gap: 6px; align-items: center; }
.uxp .uxp-snack .uxp-text { margin-left: auto; color: #bcd4ff; }
.uxp .uxp-banner { background: #eaf1ff; color: #2e5696; font-size: 12px; }
.uxp .uxp-banner b { font: bold 10px/16px serif; width: 16px; border-radius: 50%; background: #3469cc; color: white; text-align: center; flex: 0 0 16px; }
.uxp .uxp-banner button { margin-left: auto; padding: 3px; }
.uxp input[type=text], .uxp input[type=email], .uxp input[type=password], .uxp select, .uxp textarea {
  width: 100%; min-width: 0; height: 32px; padding: 6px 8px; margin-top: 6px;
  color: #263650; background: #fff; border: 1px solid #cbd6e6; border-radius: 6px; font-size: 12px; font-weight: 500;
}
.uxp input::placeholder, .uxp textarea::placeholder { color: #63738a; opacity: 1; }
.uxp .uxp-label + .uxp-spread, .uxp .uxp-label + output, .uxp .uxp-label + .uxp-result, .uxp .uxp-label + button { margin-top: 6px; }
.uxp textarea { resize: none; height: 52px; display: block; }
.uxp fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.uxp legend { padding: 0; margin: 0; }
.uxp .uxp-choice { display: flex; align-items: center; gap: 7px; margin-top: 6px; color: #30405a; font-size: 12px; cursor: pointer; }
.uxp input[type=checkbox], .uxp input[type=radio] { appearance: auto; width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--uxp-blue); }
.uxp.uxp-checkbox .uxp-result, .uxp.uxp-radio-button .uxp-result, .uxp.uxp-toggle-switch .uxp-result { margin-top: 10px; }
.uxp .uxp-toggle { width: 37px; height: 22px; flex: 0 0 auto; justify-content: flex-start; padding: 3px; border-radius: 20px; background: #c9d3e3; }
.uxp .uxp-toggle i { width: 16px; height: 16px; border-radius: 100%; background: white; box-shadow: 0 1px 3px #24364c33; transition: transform .2s; }
.uxp .uxp-toggle[aria-checked=true] { background: var(--uxp-blue); }
.uxp .uxp-toggle[aria-checked=true] i { transform: translateX(15px); }
.uxp select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,#576982 50%),linear-gradient(135deg,#576982 50%,transparent 50%); background-position: calc(100% - 14px) 50%,calc(100% - 10px) 50%; background-size: 4px 4px; background-repeat: no-repeat; padding-right: 24px; }
.uxp .uxp-options { z-index: 2; position: relative; overflow-y: auto; max-height: 54px; margin-top: 2px; background: white; border: 1px solid #dbe3f1; border-radius: 6px; box-shadow: 0 2px 7px #24364c15; }
.uxp .uxp-options [role=option] { cursor: pointer; padding: 3px 7px; font-size: 11px; }
.uxp .uxp-options [role=option]:hover, .uxp .uxp-options [aria-selected=true] { background: #e7efff; }
.uxp.uxp-combobox .uxp-result { margin-top: 5px; }
.uxp input[type=range] { width: 100%; margin: 12px 0; display: block; accent-color: var(--uxp-blue); }
.uxp .uxp-range-sample { font-size: 20px; }
.uxp .uxp-step { display: inline-flex; align-items: center; gap: 3px; margin-top: 10px; border: 1px solid #dde4f0; border-radius: 7px; padding: 3px; }
.uxp .uxp-step output { width: 38px; font-size: 13px; font-weight: 650; text-align: center; color: #273956; }
.uxp .uxp-drop { position: relative; display: grid; justify-items: center; gap: 1px; padding: 8px 4px; border: 1.5px dashed #95b1e0; border-radius: 8px; background: #f3f7ff; text-align: center; }
.uxp .uxp-drop b { font-size: 12px; }
.uxp .uxp-drop > span { color: var(--uxp-blue); font-size: 18px; font-weight: 700; }
.uxp .uxp-drop input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; opacity: 0; cursor: pointer; }
.uxp .uxp-drop:focus-within, .uxp .uxp-drop.uxp-over { outline: 2px solid var(--uxp-blue); outline-offset: 2px; }
.uxp.uxp-file-dropzone .uxp-result { margin-top: 7px; text-align: center; max-height: 30px; overflow: auto; }
.uxp .uxp-otp { display: flex; gap: 5px; padding: 3px 0 7px; }
.uxp .uxp-otp input { width: min(21%, 34px); height: 35px; padding: 3px; text-align: center; font-size: 17px; font-variant-numeric: tabular-nums; }
.uxp input[aria-invalid=true] { border-color: #b74944; background: #fff9f8; }
.uxp.uxp-inline-validation:has(input[aria-invalid=true]) .uxp-result { color: #9b3634; }
.uxp.uxp-inline-validation:has(input[aria-invalid=false]) .uxp-result { color: #26715b; }
.uxp .uxp-password { display: block; }
.uxp .uxp-color-card { display: flex; align-items: center; justify-content: space-between; padding: 13px; background: #b8d4ff; color: #101827; border-radius: 8px; }
.uxp .uxp-color-card span { font-size: 22px; }
.uxp .uxp-color-label { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 11px; }
.uxp .uxp-color-label output { margin-left: auto; }
.uxp .uxp-color-label input { width: 28px; height: 23px; background: transparent; padding: 0; border: 0; cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  .uxp *, .uxp *::before, .uxp *::after { animation: none !important; transition: none !important; }
}
