/* BoeComponents: every colour, radius and font comes from a --boe-* token. */
.boe-theme { box-sizing: border-box; }
.boe-check, .boe-radio { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font-family: var(--boe-font-family); font-size: var(--boe-font-size); color: var(--boe-color-text-primary); position: relative; line-height: 1.5; }
.boe-radio-before { flex-direction: row-reverse; }
.boe-disabled { cursor: not-allowed; opacity: .65; }
.boe-check-input, .boe-radio-input { position: absolute; opacity: 0; width: 14px; height: 14px; margin: 0; }

.boe-check-box { width: 14px; height: 14px; flex: none; box-sizing: border-box; border: 1px solid var(--boe-color-control-border); border-radius: calc(var(--boe-radius) * .6); background: var(--boe-color-surface); display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.boe-check-box svg { width: 100%; height: 100%; stroke: transparent; }
.boe-check-input:checked + .boe-check-box { background: var(--boe-color-primary); border-color: var(--boe-color-primary); }
.boe-check-input:checked + .boe-check-box svg { stroke: var(--boe-color-primary-contrast); }
.boe-check:hover .boe-check-input:not(:disabled):not(:checked) + .boe-check-box { border-color: var(--boe-color-primary); }
.boe-check:hover .boe-check-input:not(:disabled):checked + .boe-check-box { background: var(--boe-color-primary-hover); border-color: var(--boe-color-primary-hover); }
.boe-check-input:focus-visible + .boe-check-box { box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }

.boe-radio-dot { width: 15px; height: 15px; flex: none; box-sizing: border-box; border: 1px solid var(--boe-color-control-border); border-radius: 50%; background: var(--boe-color-surface); position: relative; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.boe-radio-input:checked + .boe-radio-dot { background: var(--boe-color-primary); border-color: var(--boe-color-primary); }
.boe-radio-input:checked + .boe-radio-dot::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--boe-color-primary-contrast); }
.boe-radio:hover .boe-radio-input:not(:disabled):not(:checked) + .boe-radio-dot { border-color: var(--boe-color-primary); }
.boe-radio-input:focus-visible + .boe-radio-dot { box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }

.boe-spinner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--boe-color-primary); font-family: var(--boe-font-family); }
.boe-spinner-arc { width: var(--boe-spinner-size, 30px); height: var(--boe-spinner-size, 30px); animation: boe-spin .8s linear infinite; }
.boe-spinner-arc circle { stroke: var(--boe-color-primary); stroke-dasharray: 100 40; stroke-linecap: round; }
.boe-spinner-label { font-size: 1rem; }
@keyframes boe-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .boe-spinner-arc { animation-duration: 2.4s; } }

.boe-tip-host { position: relative; display: inline-block; }
.boe-tip { position: absolute; z-index: 1000; white-space: nowrap; padding: .35rem .6rem; border-radius: var(--boe-radius); font-size: var(--boe-font-size); font-family: var(--boe-font-family); background: var(--boe-color-text-primary); color: var(--boe-color-background); box-shadow: var(--boe-elevation-2); pointer-events: none; --boe-tip-gap: 8px; }
.boe-tip-pointer::after { content: ""; position: absolute; border: 5px solid transparent; }
/* side top / bottom: the tip is aligned along x */
.boe-tip-top-left, .boe-tip-top-center, .boe-tip-top-right { bottom: calc(100% + var(--boe-tip-gap)); }
.boe-tip-bottom-left, .boe-tip-bottom-center, .boe-tip-bottom-right { top: calc(100% + var(--boe-tip-gap)); }
.boe-tip-top-left, .boe-tip-bottom-left { left: 0; }
.boe-tip-top-center, .boe-tip-bottom-center { left: 50%; transform: translateX(-50%); }
.boe-tip-top-right, .boe-tip-bottom-right { right: 0; }
.boe-tip-top-left::after, .boe-tip-bottom-left::after { left: 12px; }
.boe-tip-top-center::after, .boe-tip-bottom-center::after { left: 50%; margin-left: -5px; }
.boe-tip-top-right::after, .boe-tip-bottom-right::after { right: 12px; }
.boe-tip-top-left::after, .boe-tip-top-center::after, .boe-tip-top-right::after { top: 100%; border-top-color: var(--boe-color-text-primary); }
.boe-tip-bottom-left::after, .boe-tip-bottom-center::after, .boe-tip-bottom-right::after { bottom: 100%; border-bottom-color: var(--boe-color-text-primary); }
/* side left / right: the tip is aligned along y */
.boe-tip-left-top, .boe-tip-left-center, .boe-tip-left-bottom { right: calc(100% + var(--boe-tip-gap)); }
.boe-tip-right-top, .boe-tip-right-center, .boe-tip-right-bottom { left: calc(100% + var(--boe-tip-gap)); }
.boe-tip-left-top, .boe-tip-right-top { top: 0; }
.boe-tip-left-center, .boe-tip-right-center { top: 50%; transform: translateY(-50%); }
.boe-tip-left-bottom, .boe-tip-right-bottom { bottom: 0; }
.boe-tip-left-top::after, .boe-tip-right-top::after { top: 8px; }
.boe-tip-left-center::after, .boe-tip-right-center::after { top: 50%; margin-top: -5px; }
.boe-tip-left-bottom::after, .boe-tip-right-bottom::after { bottom: 8px; }
.boe-tip-left-top::after, .boe-tip-left-center::after, .boe-tip-left-bottom::after { left: 100%; border-left-color: var(--boe-color-text-primary); }
.boe-tip-right-top::after, .boe-tip-right-center::after, .boe-tip-right-bottom::after { right: 100%; border-right-color: var(--boe-color-text-primary); }

.boe-license-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000; display: flex; gap: .75rem; align-items: center; justify-content: center; flex-wrap: wrap; padding: .5rem 1rem; background: var(--boe-color-warning); color: var(--boe-color-warning-contrast); font-family: var(--boe-font-family); font-size: var(--boe-font-size); box-shadow: var(--boe-elevation-3); }
.boe-license-banner a { color: inherit; text-decoration: underline; }

.boe-field { display: flex; flex-direction: column; gap: .25rem; font-family: var(--boe-font-family); font-size: var(--boe-font-size); color: var(--boe-color-text-primary); min-width: 0; }
.boe-field-label { color: var(--boe-color-text-secondary); font-size: .85em; line-height: 1.3; }
.boe-required { color: var(--boe-color-error); }
.boe-input-wrap { display: flex; align-items: center; gap: .25rem; box-sizing: border-box; min-height: 2rem; padding: 0 .5rem; border: 1px solid var(--boe-color-control-border); border-radius: var(--boe-radius); background: var(--boe-color-surface); transition: border-color .15s, box-shadow .15s; }
.boe-multiline .boe-input-wrap { align-items: stretch; padding: .25rem .5rem; }
.boe-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; padding: .3rem 0; line-height: 1.4; }
.boe-multiline .boe-input { resize: vertical; }
.boe-input::placeholder { color: var(--boe-color-text-secondary); opacity: .8; }
.boe-input-wrap:hover { border-color: var(--boe-color-primary); }
.boe-input-wrap:focus-within { border-color: var(--boe-color-primary); box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }
.boe-input-adorn { display: inline-flex; align-items: center; color: var(--boe-color-text-secondary); }
.boe-input-clear { border: 0; background: transparent; color: var(--boe-color-text-secondary); cursor: pointer; padding: 0 .25rem; font-size: .8em; line-height: 1; border-radius: var(--boe-radius); }
.boe-input-clear:hover { color: var(--boe-color-text-primary); background: var(--boe-color-hover); }
.boe-field-msg { font-size: .8em; color: var(--boe-color-text-secondary); }
.boe-invalid .boe-input-wrap, .boe-invalid .boe-input-wrap:hover { border-color: var(--boe-color-error); }
.boe-invalid .boe-input-wrap:focus-within { box-shadow: 0 0 0 .2rem var(--boe-color-error-soft); }
.boe-field-error { color: var(--boe-color-error); }
.boe-field.boe-disabled { opacity: .6; }
.boe-field.boe-disabled .boe-input-wrap { background: var(--boe-color-hover); border-color: var(--boe-color-border); cursor: not-allowed; }
.boe-field.boe-disabled .boe-input-wrap:hover { border-color: var(--boe-color-border); }
.boe-field.boe-disabled .boe-input { cursor: not-allowed; }

.boe-number .boe-input { text-align: left; font-variant-numeric: tabular-nums; }
.boe-number .boe-input-wrap { padding-right: 0; }
.boe-spin { display: inline-flex; flex-direction: column; align-self: stretch; border-left: 1px solid var(--boe-color-border); margin-left: .25rem; }
.boe-spin button { flex: 1; width: 1.5rem; padding: 0; border: 0; background: transparent; color: var(--boe-color-text-secondary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.boe-spin button + button { border-top: 1px solid var(--boe-color-border); }
.boe-spin button svg { width: 10px; height: 6px; stroke: currentColor; }
.boe-spin button:hover:not(:disabled) { background: var(--boe-color-hover); color: var(--boe-color-text-primary); }
.boe-spin button:disabled { opacity: .4; cursor: default; }
.boe-spin-up { border-top-right-radius: var(--boe-radius); }
.boe-spin-down { border-bottom-right-radius: var(--boe-radius); }

.boe-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; box-sizing: border-box; min-height: 2rem; padding: 0 .9rem; border: 1px solid var(--boe-color-control-border); border-radius: var(--boe-radius); background: var(--boe-color-surface); color: var(--boe-color-text-primary); font-family: var(--boe-font-family); font-size: var(--boe-font-size); line-height: 1.2; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.boe-btn:hover:not(:disabled) { background: var(--boe-color-hover); border-color: var(--boe-color-primary); }
.boe-btn:focus-visible { outline: 0; box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }
.boe-btn:active:not(:disabled) { background: var(--boe-color-selected); }
.boe-btn-primary { background: var(--boe-color-primary); border-color: var(--boe-color-primary); color: var(--boe-color-primary-contrast); }
.boe-btn-primary:hover:not(:disabled) { background: var(--boe-color-primary-hover); border-color: var(--boe-color-primary-hover); }
.boe-btn-primary:active:not(:disabled) { background: var(--boe-color-primary-hover); }
.boe-btn:disabled { opacity: .5; cursor: not-allowed; }
.boe-btn-icon { display: inline-flex; align-items: center; }
.boe-btn-spin { width: 1em; height: 1em; box-sizing: border-box; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: boe-btn-rot .7s linear infinite; }
@keyframes boe-btn-rot { to { transform: rotate(360deg); } }

.boe-select-anchor { position: relative; }
.boe-select-trigger { cursor: pointer; user-select: none; }
.boe-select-trigger:focus-visible { outline: 0; border-color: var(--boe-color-primary); box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }
.boe-select-open .boe-select-trigger { border-color: var(--boe-color-primary); }
.boe-select-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .3rem 0; line-height: 1.4; }
.boe-select-placeholder { color: var(--boe-color-text-secondary); opacity: .8; }
.boe-select-caret { display: inline-flex; color: var(--boe-color-text-secondary); transition: transform .15s; }
.boe-select-caret svg { width: 10px; height: 6px; stroke: currentColor; }
.boe-select-open .boe-select-caret { transform: rotate(180deg); }
.boe-select-backdrop { position: fixed; inset: 0; z-index: 999; background: transparent; }
.boe-select-list { position: fixed; z-index: 1000; left: auto; top: auto; width: max-content; max-width: min(28rem, calc(100vw - 1rem)); box-sizing: border-box; max-height: 16rem; overflow-y: auto; padding: .25rem 0; background: var(--boe-color-surface); color: var(--boe-color-text-primary); border: 1px solid var(--boe-color-border); border-radius: var(--boe-radius); box-shadow: var(--boe-elevation-3); }
.boe-select-list[hidden] { display: none; }
.boe-select-item { display: flex; align-items: center; gap: .5rem; padding: .4rem .75rem; cursor: pointer; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
.boe-select-item.boe-active { background: var(--boe-color-hover); }
.boe-select-item.boe-selected { background: var(--boe-color-selected); }
.boe-select-item.boe-selected.boe-active { background: var(--boe-color-selected); box-shadow: inset 0 0 0 1px var(--boe-color-primary); }
.boe-select-item.boe-disabled { opacity: .5; cursor: not-allowed; }
.boe-select-check { width: 14px; height: 14px; flex: none; display: inline-flex; border: 1px solid var(--boe-color-control-border); border-radius: calc(var(--boe-radius) * .6); background: var(--boe-color-surface); }
.boe-select-check svg { width: 100%; height: 100%; stroke: transparent; }
.boe-selected .boe-select-check { background: var(--boe-color-primary); border-color: var(--boe-color-primary); }
.boe-selected .boe-select-check svg { stroke: var(--boe-color-primary-contrast); }

.boe-menu { position: relative; display: inline-block; font-family: var(--boe-font-family); font-size: var(--boe-font-size); color: var(--boe-color-text-primary); }
.boe-menu-activator { display: inline-block; }
.boe-btn-text { background: transparent; border-color: transparent; }
.boe-btn-text:hover:not(:disabled) { border-color: transparent; background: var(--boe-color-hover); }
.boe-menu-button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.boe-menu-icon { display: inline-flex; align-items: center; }
.boe-menu-icon svg { width: 1.25em; height: 1.25em; }
.boe-menu-backdrop { position: fixed; inset: 0; z-index: 999; background: transparent; }
.boe-menu-list { position: fixed; z-index: 1000; left: auto; top: auto; min-width: 10rem; box-sizing: border-box; max-height: 24rem; overflow-y: auto; padding: .25rem 0; background: var(--boe-color-surface); color: var(--boe-color-text-primary); border: 1px solid var(--boe-color-border); border-radius: var(--boe-radius); box-shadow: var(--boe-elevation-3); }
.boe-menu-list[hidden] { display: none; }
/* boe-menu-end / boe-menu-up: hooks the popup placer in boe.js reads (right-aligned, opens upward) */
.boe-menu-item { display: flex; align-items: center; gap: .6rem; padding: .45rem .9rem; cursor: pointer; white-space: nowrap; color: inherit; text-decoration: none; line-height: 1.4; }
.boe-menu-dense .boe-menu-item { padding: .25rem .75rem; }
.boe-menu-item.boe-active { background: var(--boe-color-hover); }
.boe-menu-item.boe-disabled { opacity: .5; cursor: not-allowed; }
.boe-menu-item .boe-menu-icon { color: var(--boe-color-text-secondary); }

.boe-dialog-overlay { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 1rem; box-sizing: border-box; background: color-mix(in srgb, black 50%, transparent); }
.boe-dialog-top-center, .boe-dialog-topcenter { align-items: flex-start; }
.boe-dialog-topleft { align-items: flex-start; justify-content: flex-start; }
.boe-dialog-topright { align-items: flex-start; justify-content: flex-end; }
.boe-dialog-centerleft { justify-content: flex-start; }
.boe-dialog-centerright { justify-content: flex-end; }
.boe-dialog-bottomcenter { align-items: flex-end; }
.boe-dialog-bottomleft { align-items: flex-end; justify-content: flex-start; }
.boe-dialog-bottomright { align-items: flex-end; justify-content: flex-end; }
.boe-dialog { display: flex; flex-direction: column; box-sizing: border-box; max-height: calc(100vh - 2rem); min-width: min(20rem, 100%); max-width: calc(100vw - 2rem); background: var(--boe-color-surface); color: var(--boe-color-text-primary); border-radius: calc(var(--boe-radius) * 1.5); box-shadow: var(--boe-elevation-3); font-family: var(--boe-font-family); font-size: var(--boe-font-size); outline: 0; }
.boe-dialog-w-extrasmall { width: 444px; }
.boe-dialog-w-small { width: 600px; }
.boe-dialog-w-medium { width: 960px; }
.boe-dialog-w-large { width: 1280px; }
.boe-dialog-w-extralarge { width: 1920px; }
.boe-dialog-w-extraextralarge, .boe-dialog-w-none { width: auto; }
.boe-dialog-full { width: 100%; }
.boe-dialog-fullscreen { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
.boe-dialog-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem .5rem; }
.boe-dialog-title-text { margin: 0; font-size: 1.25rem; font-weight: 500; line-height: 1.4; }
.boe-dialog-close { border: 0; background: transparent; color: var(--boe-color-text-secondary); cursor: pointer; font-size: 1rem; line-height: 1; padding: .35rem .5rem; border-radius: var(--boe-radius); }
.boe-dialog-close:hover { background: var(--boe-color-hover); color: var(--boe-color-text-primary); }
.boe-dialog-close:focus-visible { outline: 0; box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }
.boe-dialog-content { flex: 1; overflow-y: auto; padding: .5rem 1.5rem 1rem; line-height: 1.5; }
.boe-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; padding: .5rem 1.5rem 1rem; }
.boe-dialog-modeless { background: transparent; pointer-events: none; }
.boe-dialog-modeless > .boe-dialog { pointer-events: auto; }
.boe-dialog-draggable > .boe-dialog-title { cursor: move; user-select: none; }
.boe-dialog-resizable { resize: both; overflow: hidden; }
.boe-dialog-error { margin-bottom: .75rem; padding: .5rem .75rem; border-radius: var(--boe-radius); border: 1px solid var(--boe-color-error); background: var(--boe-color-error-soft); color: var(--boe-color-text-primary); }

.boe-colorpicker { position: relative; display: inline-block; font-family: var(--boe-font-family); font-size: var(--boe-font-size); color: var(--boe-color-text-primary); }
.boe-colorpicker-trigger { display: inline-flex; align-items: center; gap: .5rem; box-sizing: border-box; min-height: 2rem; padding: 0 .5rem; border: 1px solid var(--boe-color-control-border); border-radius: var(--boe-radius); background: var(--boe-color-surface); color: inherit; font: inherit; cursor: pointer; }
.boe-colorpicker-trigger:hover:not(:disabled) { border-color: var(--boe-color-primary); }
.boe-colorpicker-trigger:focus-visible { outline: 0; box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }
.boe-colorpicker-swatch { width: 1.2rem; height: 1.2rem; flex: none; box-sizing: border-box; border: 1px solid var(--boe-color-control-border); border-radius: calc(var(--boe-radius) * .6); }
.boe-colorpicker-hex { font-variant-numeric: tabular-nums; text-transform: lowercase; }
.boe-colorpicker-backdrop { position: fixed; inset: 0; z-index: 999; background: transparent; }
.boe-colorpicker-pop { position: absolute; z-index: 1000; top: calc(100% + 2px); left: 0; display: flex; flex-direction: column; gap: .6rem; padding: .75rem; box-sizing: border-box; background: var(--boe-color-surface); border: 1px solid var(--boe-color-border); border-radius: var(--boe-radius); box-shadow: var(--boe-elevation-3); }
.boe-colorpicker-sv { position: relative; width: 220px; height: 150px; flex: none; border-radius: var(--boe-radius); cursor: crosshair; user-select: none; background-image: linear-gradient(to top, black, transparent), linear-gradient(to right, white, transparent); }
.boe-colorpicker-sv:focus-visible { outline: 0; box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }
.boe-colorpicker-thumb { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; box-sizing: border-box; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px black; pointer-events: none; }
.boe-colorpicker-hue { width: 100%; margin: 0; accent-color: var(--boe-color-primary); }
.boe-colorpicker-row { display: flex; align-items: center; gap: .5rem; }
.boe-colorpicker-current { width: 2rem; height: 2rem; }
.boe-colorpicker-input { flex: 1; min-width: 0; box-sizing: border-box; border: 1px solid var(--boe-color-control-border); border-radius: var(--boe-radius); padding: .35rem .5rem; background: var(--boe-color-surface); color: inherit; font-variant-numeric: tabular-nums; }
.boe-colorpicker-input:focus { border-color: var(--boe-color-primary); box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }
.boe-colorpicker-presets { display: flex; flex-wrap: wrap; gap: .3rem; max-width: 220px; }
.boe-colorpicker-preset { width: 1.3rem; height: 1.3rem; padding: 0; cursor: pointer; border: 1px solid var(--boe-color-control-border); border-radius: calc(var(--boe-radius) * .6); }
.boe-colorpicker-preset:focus-visible { outline: 0; box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }
.boe-colorpicker.boe-disabled { opacity: .6; }

.boe-te { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 1.5rem; align-items: start; font-family: var(--boe-font-family); font-size: var(--boe-font-size); color: var(--boe-color-text-primary); }
@media (max-width: 900px) { .boe-te { grid-template-columns: minmax(0, 1fr); } }
.boe-te-form { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.boe-te-section { display: flex; flex-direction: column; gap: .6rem; }
.boe-te-h { margin: 0; font-size: 1rem; font-weight: 600; }
.boe-te-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .75rem; }
.boe-te-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .6rem .9rem; }
.boe-te-color { display: flex; flex-direction: column; gap: .2rem; }
.boe-te-color-label { color: var(--boe-color-text-secondary); font-size: .85em; }
.boe-te-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.boe-te-check-mark { display: inline-block; width: 1.2em; font-weight: 700; }
.boe-te-ok .boe-te-check-mark { color: var(--boe-color-success); }
.boe-te-bad .boe-te-check-mark { color: var(--boe-color-error); }
.boe-te-check-need { color: var(--boe-color-text-secondary); font-size: .85em; }
.boe-te-problems { margin: 0; padding: .5rem .75rem .5rem 1.5rem; border: 1px solid var(--boe-color-error); border-radius: var(--boe-radius); background: var(--boe-color-error-soft); }
.boe-te-warnings { margin: 0; padding: .5rem .75rem .5rem 1.5rem; border: 1px solid var(--boe-color-warning); border-radius: var(--boe-radius); background: var(--boe-color-warning-soft); }
.boe-te-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.boe-te-footer { justify-content: flex-end; border-top: 1px solid var(--boe-color-border); padding-top: .9rem; }
.boe-te-preview { position: sticky; top: 1rem; border: 1px solid var(--boe-color-border); border-radius: var(--boe-radius); overflow: hidden; }
.boe-te-preview-theme { display: flex; flex-direction: column; }
.boe-te-pv-bar { display: flex; align-items: baseline; justify-content: space-between; padding: .6rem 1rem; background: var(--boe-color-appbar-background); color: var(--boe-color-appbar-text); font-weight: 600; }
.boe-te-pv-bar-sub { font-weight: 400; opacity: .8; font-size: .85em; }
.boe-te-pv-body { padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.boe-te-pv-title { margin: 0; font-size: 1.1rem; }
.boe-te-pv-text, .boe-te-pv-secondary { margin: 0; }
.boe-te-pv-text a { color: var(--boe-color-primary); }
.boe-te-pv-secondary { color: var(--boe-color-text-secondary); }
.boe-te-pv-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start; }
.boe-te-pv-status { display: flex; flex-wrap: wrap; gap: .4rem; }
.boe-te-pv-chip { padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--chip); color: var(--boe-color-text-primary); background: color-mix(in srgb, var(--chip) 16%, transparent); font-size: .85em; }

.boe-icon-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background-color .15s, box-shadow .15s; }
.boe-icon-btn svg { width: 1.4em; height: 1.4em; }
.boe-icon-btn:hover:not(:disabled) { background: color-mix(in srgb, currentColor 14%, transparent); }
.boe-icon-btn:focus-visible { outline: 0; box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }
.boe-icon-btn:disabled { opacity: .5; cursor: not-allowed; }

.boe-tse { display: flex; flex-direction: column; gap: 1.25rem; font-family: var(--boe-font-family); font-size: var(--boe-font-size); color: var(--boe-color-text-primary); }
.boe-tse-mode { display: flex; flex-direction: column; gap: .5rem; border: 0; margin: 0; padding: 0; }
.boe-tse-side { display: flex; flex-direction: column; gap: .6rem; }
.boe-tse-row { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.boe-tse-chip { width: 1.4rem; height: 1.4rem; border-radius: calc(var(--boe-radius) * .6); border: 1px solid var(--boe-color-control-border); }
.boe-tse-editor { border: 1px solid var(--boe-color-border); border-radius: var(--boe-radius); padding: 1rem; }

/* data grid */
.boe-grid { display: flex; flex-direction: column; min-width: 0; box-sizing: border-box; font-family: var(--boe-font-family); font-size: var(--boe-font-size); color: var(--boe-color-text-primary); background: var(--boe-color-surface); border: 1px solid var(--boe-color-border); border-radius: var(--boe-radius); overflow: hidden; }
.boe-grid-toolbar { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border-bottom: 1px solid var(--boe-color-border); }
.boe-grid-search { margin-left: auto; }
.boe-grid-search-input { box-sizing: border-box; min-height: 2rem; min-width: 14rem; padding: 0 .5rem; border: 1px solid var(--boe-color-control-border); border-radius: var(--boe-radius); background: var(--boe-color-surface); color: inherit; font: inherit; }
.boe-grid-search-input:hover { border-color: var(--boe-color-primary); }
.boe-grid-search-input:focus { outline: 0; border-color: var(--boe-color-primary); box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }
.boe-grid-scroll { overflow: auto; min-height: 0; flex: 1; }
.boe-grid-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.boe-grid-th { position: sticky; top: 0; z-index: 1; padding: 0; text-align: left; font-weight: 600; font-size: .85em; text-transform: uppercase; letter-spacing: .02em; color: var(--boe-color-primary-contrast); background: var(--boe-color-primary); border-bottom: 1px solid var(--boe-color-border); white-space: nowrap; }
.boe-grid-th > .boe-grid-title { display: block; padding: .6rem .75rem; overflow: hidden; text-overflow: ellipsis; }
.boe-grid-sort { display: flex; align-items: center; justify-content: flex-start; gap: .35rem; width: 100%; padding: .6rem .75rem; border: 0; background: transparent; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; text-align: inherit; cursor: pointer; }
.boe-grid-sort:hover { background: var(--boe-color-primary-hover); }
.boe-grid-sort:focus-visible { outline: 0; box-shadow: inset 0 0 0 .15rem var(--boe-color-primary-contrast); }
.boe-grid-sort .boe-grid-title { overflow: hidden; text-overflow: ellipsis; }
.boe-grid-arrow { font-size: .7em; flex: none; }
.boe-grid .boe-align-center { text-align: center; }
.boe-grid .boe-align-center .boe-grid-sort { justify-content: center; }
.boe-grid .boe-align-right { text-align: right; }
.boe-grid .boe-align-right .boe-grid-sort { justify-content: flex-end; }
.boe-grid-cell { padding: .45rem .75rem; border-bottom: 1px solid var(--boe-color-border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boe-grid-check { width: 42px; padding: 0 .75rem; text-align: center; border-bottom: 1px solid var(--boe-color-border); }
th.boe-grid-check { background: var(--boe-color-primary); position: sticky; top: 0; z-index: 1; }
.boe-grid-checkbox { width: 14px; height: 14px; margin: 0; accent-color: var(--boe-color-primary); cursor: pointer; vertical-align: middle; }
th.boe-grid-check .boe-grid-checkbox { accent-color: var(--boe-color-primary-contrast); }
.boe-grid-row { cursor: default; }
.boe-grid-row:hover { background: var(--boe-color-hover); }
.boe-grid-selected, .boe-grid-selected:hover { background: var(--boe-color-selected); }
.boe-grid-empty td { padding: 1.5rem; text-align: center; color: var(--boe-color-text-secondary); }
.boe-grid-pager { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .5rem .75rem; border-top: 1px solid var(--boe-color-border); }
.boe-grid-pages { display: inline-flex; align-items: center; gap: .15rem; }
.boe-grid-pagebtn { min-width: 1.9rem; height: 1.9rem; padding: 0 .4rem; border: 1px solid transparent; border-radius: var(--boe-radius); background: transparent; color: var(--boe-color-primary); font: inherit; cursor: pointer; }
.boe-grid-pagebtn:hover:not(:disabled) { background: var(--boe-color-hover); }
.boe-grid-pagebtn:focus-visible { outline: 0; box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }
.boe-grid-pagebtn:disabled { color: var(--boe-color-text-secondary); opacity: .5; cursor: default; }
.boe-grid-current { border-color: var(--boe-color-primary); font-weight: 600; }
.boe-grid-gap { padding: 0 .25rem; color: var(--boe-color-text-secondary); }
.boe-grid-info { color: var(--boe-color-text-secondary); font-size: .85em; }
.boe-grid-head { display: flex; align-items: center; min-width: 0; }
.boe-grid-head .boe-grid-sort { flex: 1; min-width: 0; width: auto; }
.boe-grid-head > .boe-grid-title { flex: 1; padding: .6rem .75rem; overflow: hidden; text-overflow: ellipsis; }
.boe-grid-th { position: sticky; }
.boe-grid-th[draggable="true"] { cursor: grab; }
.boe-grid-filterbtn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; margin-right: .25rem; padding: 0; border: 0; border-radius: var(--boe-radius); background: transparent; color: inherit; opacity: .75; cursor: pointer; }
.boe-grid-filterbtn svg { width: 12px; height: 12px; }
.boe-grid-filterbtn:hover, .boe-grid-filtered { opacity: 1; background: var(--boe-color-primary-hover); }
.boe-grid-filterbtn:focus-visible { outline: 0; box-shadow: inset 0 0 0 .15rem var(--boe-color-primary-contrast); }
.boe-grid-resizer { position: absolute; top: 0; right: 0; bottom: 0; width: 6px; cursor: col-resize; user-select: none; }
.boe-grid-resizer:hover, .boe-grid-resizing .boe-grid-resizer { background: var(--boe-color-primary-contrast); opacity: .4; }
body.boe-grid-resizing { cursor: col-resize; user-select: none; }
.boe-grid-filterback { position: fixed; inset: 0; z-index: 20; }
.boe-grid-filter { position: fixed; top: auto; left: auto; z-index: 21; display: flex; flex-direction: column; gap: .5rem; min-width: 14rem; padding: .75rem; box-sizing: border-box; border: 1px solid var(--boe-color-border); border-radius: var(--boe-radius); background: var(--boe-color-surface); color: var(--boe-color-text-primary); box-shadow: var(--boe-elevation-3); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: var(--boe-font-size); text-align: left; white-space: normal; }
.boe-grid-flabel { display: flex; flex-direction: column; gap: .25rem; color: var(--boe-color-text-secondary); font-size: .85em; }
.boe-grid-fselect, .boe-grid-finput, .boe-grid-vfind { box-sizing: border-box; min-height: 2rem; padding: 0 .5rem; border: 1px solid var(--boe-color-control-border); border-radius: var(--boe-radius); background: var(--boe-color-surface); color: var(--boe-color-text-primary); font: inherit; }
.boe-grid-fselect:focus, .boe-grid-finput:focus, .boe-grid-vfind:focus { outline: 0; border-color: var(--boe-color-primary); box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }
.boe-grid-factions { display: flex; gap: .5rem; }
.boe-grid-groupbar { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; min-height: 2.25rem; padding: .25rem .75rem; box-sizing: border-box; border-bottom: 1px solid var(--boe-color-border); background: var(--boe-color-hover); }
.boe-grid-grouphint { color: var(--boe-color-text-secondary); font-size: .9em; }
.boe-grid-groupchip { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .25rem .15rem .6rem; border: 1px solid var(--boe-color-control-border); border-radius: 999px; background: var(--boe-color-surface); font-size: .9em; }
.boe-grid-groupx { border: 0; background: transparent; color: var(--boe-color-text-secondary); cursor: pointer; width: 1.3rem; height: 1.3rem; border-radius: 50%; line-height: 1; }
.boe-grid-groupx:hover { background: var(--boe-color-hover); color: var(--boe-color-text-primary); }
.boe-grid-grouprow td { padding-top: .35rem; padding-bottom: .35rem; border-bottom: 1px solid var(--boe-color-border); background: var(--boe-color-hover); font-weight: 600; }
.boe-grid-groupbtn { display: inline-flex; align-items: center; gap: .5rem; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: .15rem 0; }
.boe-grid-groupbtn:focus-visible { outline: 0; box-shadow: 0 0 0 .2rem var(--boe-focus-ring); border-radius: var(--boe-radius); }
.boe-grid-caret { font-size: .7em; color: var(--boe-color-text-secondary); }
.boe-grid-groupcount { color: var(--boe-color-text-secondary); font-weight: 400; }
.boe-grid-failed td { color: var(--boe-color-error); }

/* alert, paper, progress */
.boe-alert { --boe-alert: var(--boe-color-text-secondary); --boe-alert-soft: var(--boe-color-hover); display: flex; align-items: flex-start; gap: .75rem; box-sizing: border-box; padding: .75rem 1rem; border-radius: var(--boe-radius); background: var(--boe-alert-soft); color: var(--boe-color-text-primary); font-family: var(--boe-font-family); font-size: var(--boe-font-size); line-height: 1.45; }
.boe-alert-info { --boe-alert: var(--boe-color-info); --boe-alert-soft: var(--boe-color-info-soft); }
.boe-alert-success { --boe-alert: var(--boe-color-success); --boe-alert-soft: var(--boe-color-success-soft); }
.boe-alert-warning { --boe-alert: var(--boe-color-warning); --boe-alert-soft: var(--boe-color-warning-soft); }
.boe-alert-error { --boe-alert: var(--boe-color-error); --boe-alert-soft: var(--boe-color-error-soft); }
.boe-alert-outlined { background: transparent; border: 1px solid var(--boe-alert); }
.boe-alert-dense { padding: .35rem .75rem; }
.boe-alert-icon { flex: none; width: 1.4rem; height: 1.4rem; color: var(--boe-alert); }
.boe-alert-body { flex: 1 1 auto; min-width: 0; align-self: center; }
.boe-alert-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.boe-alert-close svg { width: 1.1rem; height: 1.1rem; }
.boe-alert-close:hover { background: var(--boe-color-hover); }
.boe-alert-close:focus-visible { outline: 0; box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }

.boe-paper { box-sizing: border-box; background: var(--boe-color-surface); color: var(--boe-color-text-primary); border-radius: var(--boe-radius); }
.boe-paper-square { border-radius: 0; }
.boe-paper-e0 { box-shadow: none; }
.boe-paper-e1 { box-shadow: var(--boe-elevation-1); }
.boe-paper-e2, .boe-paper-e3 { box-shadow: var(--boe-elevation-2); }
.boe-paper-e4 { box-shadow: var(--boe-elevation-3); }
.boe-paper-outlined { box-shadow: none; border: 1px solid var(--boe-color-border); }

.boe-tone-primary { --boe-tone: var(--boe-color-primary); }
.boe-tone-secondary { --boe-tone: var(--boe-color-secondary); }
.boe-tone-success { --boe-tone: var(--boe-color-success); }
.boe-tone-warning { --boe-tone: var(--boe-color-warning); }
.boe-tone-error { --boe-tone: var(--boe-color-error); }
.boe-tone-info { --boe-tone: var(--boe-color-info); }
.boe-tone-default { --boe-tone: var(--boe-color-text-secondary); }
.boe-progress-circular { display: inline-block; width: var(--boe-progress-size, 40px); height: var(--boe-progress-size, 40px); color: var(--boe-tone); }
.boe-progress-circular svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.boe-progress-circular .boe-progress-track { stroke: var(--boe-color-border); }
.boe-progress-circular .boe-progress-arc { stroke: var(--boe-tone); stroke-linecap: round; transition: stroke-dashoffset .3s; }
.boe-progress-circular.boe-progress-indeterminate svg { animation: boe-spin 1.2s linear infinite; }
.boe-progress-circular.boe-progress-indeterminate .boe-progress-track { stroke: transparent; }
.boe-progress-linear { position: relative; overflow: hidden; width: 100%; height: var(--boe-progress-height, 4px); border-radius: var(--boe-radius); background: var(--boe-color-border); }
.boe-progress-linear .boe-progress-bar { height: 100%; background: var(--boe-tone); transition: width .3s; }
.boe-progress-linear.boe-progress-indeterminate .boe-progress-bar { position: absolute; width: 40%; animation: boe-slide 1.4s ease-in-out infinite; }
@keyframes boe-slide { from { left: -40%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .boe-progress-circular.boe-progress-indeterminate svg { animation-duration: 3.6s; } .boe-progress-linear.boe-progress-indeterminate .boe-progress-bar { animation-duration: 4s; } }

/* chip, switch */
.boe-tone-default { --boe-tone-contrast: var(--boe-color-text-primary); }
.boe-tone-primary { --boe-tone-contrast: var(--boe-color-primary-contrast); }
.boe-tone-secondary { --boe-tone-contrast: var(--boe-color-secondary-contrast); }
.boe-tone-success { --boe-tone-contrast: var(--boe-color-success-contrast); }
.boe-tone-warning { --boe-tone-contrast: var(--boe-color-warning-contrast); }
.boe-tone-error { --boe-tone-contrast: var(--boe-color-error-contrast); }
.boe-tone-info { --boe-tone-contrast: var(--boe-color-info-contrast); }
.boe-chip { display: inline-flex; align-items: center; gap: .3rem; box-sizing: border-box; height: 1.75rem; padding: 0 .7rem; border: 1px solid transparent; border-radius: 999px; font-family: var(--boe-font-family); font-size: .8125rem; line-height: 1; white-space: nowrap; vertical-align: middle; }
.boe-chip-small { height: 1.45rem; padding: 0 .5rem; font-size: .75rem; }
.boe-chip-filled { background: var(--boe-tone); color: var(--boe-tone-contrast); }
.boe-chip-filled.boe-tone-default { background: var(--boe-color-hover); color: var(--boe-color-text-primary); }
.boe-chip-text { background: color-mix(in srgb, var(--boe-tone) 16%, transparent); color: var(--boe-tone); }
.boe-chip-text.boe-tone-default { background: var(--boe-color-hover); color: var(--boe-color-text-primary); }
.boe-chip-outlined { background: transparent; border-color: var(--boe-tone); color: var(--boe-tone); }
.boe-chip-outlined.boe-tone-default { border-color: var(--boe-color-control-border); color: var(--boe-color-text-primary); }
button.boe-chip { cursor: pointer; transition: box-shadow .15s, filter .15s; }
button.boe-chip:hover { filter: brightness(1.08); }
button.boe-chip:focus-visible { outline: 0; box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }
.boe-chip.boe-disabled, button.boe-chip:disabled { opacity: .5; cursor: not-allowed; }
.boe-chip-icon { width: 1.05rem; height: 1.05rem; flex: none; }
.boe-chip-close { display: inline-flex; align-items: center; justify-content: center; width: 1.1rem; height: 1.1rem; margin-right: -.3rem; border-radius: 50%; cursor: pointer; opacity: .75; }
.boe-chip-close svg { width: .9rem; height: .9rem; }
.boe-chip-close:hover { opacity: 1; background: var(--boe-color-hover); }
.boe-chip-close:focus-visible { outline: 0; box-shadow: 0 0 0 .15rem var(--boe-focus-ring); }

.boe-switch { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font-family: var(--boe-font-family); font-size: var(--boe-font-size); color: var(--boe-color-text-primary); }
.boe-switch.boe-disabled { opacity: .5; cursor: not-allowed; }
.boe-switch-input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.boe-switch-track { position: relative; flex: none; width: 2.25rem; height: 1.25rem; box-sizing: border-box; border: 1px solid var(--boe-color-control-border); border-radius: 999px; background: var(--boe-color-hover); transition: background-color .15s, border-color .15s; }
.boe-switch-thumb { position: absolute; top: 50%; left: .15rem; width: .85rem; height: .85rem; margin-top: -.425rem; border-radius: 50%; background: var(--boe-color-text-secondary); transition: left .15s, background-color .15s; }
.boe-switch-input:checked + .boe-switch-track { background: var(--boe-tone); border-color: var(--boe-tone); }
.boe-switch-input:checked + .boe-switch-track .boe-switch-thumb { left: calc(100% - 1rem); background: var(--boe-color-surface); }
.boe-switch-input:focus-visible + .boe-switch-track { box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }
@media (prefers-reduced-motion: reduce) { .boe-switch-track, .boe-switch-thumb { transition: none; } }

/* combo box */
.boe-combo-wrap { position: relative; }
.boe-combo-input { flex: 1; min-width: 0; text-overflow: ellipsis; }
.boe-combo-input[readonly] { cursor: pointer; }
.boe-combo-caret { border: 0; background: transparent; padding: 0 .25rem; cursor: pointer; align-self: stretch; align-items: center; }
.boe-combo-caret:disabled { cursor: not-allowed; }
.boe-combo-caret:focus-visible { outline: 0; box-shadow: 0 0 0 .15rem var(--boe-focus-ring); border-radius: var(--boe-radius); }
.boe-combo-filter { position: sticky; top: 0; display: block; width: calc(100% - 1rem); margin: .1rem .5rem .35rem; box-sizing: border-box; border: 1px solid var(--boe-color-control-border); border-radius: var(--boe-radius); padding: .3rem .5rem; background: var(--boe-color-surface); color: var(--boe-color-text-primary); }
.boe-combo-filter:focus { outline: 0; border-color: var(--boe-color-primary); box-shadow: 0 0 0 .15rem var(--boe-focus-ring); }
.boe-combo-empty { color: var(--boe-color-text-secondary); cursor: default; }

/* multi select */
.boe-multi-wrap { min-height: 2rem; height: auto; padding-top: .15rem; padding-bottom: .15rem; }
.boe-multi-values { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.boe-multi-placeholder { color: var(--boe-color-text-secondary); }
.boe-multi-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boe-multi-item { white-space: nowrap; }
.boe-multi-check { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 1rem; height: 1rem; box-sizing: border-box; border: 1px solid var(--boe-color-control-border); border-radius: calc(var(--boe-radius) / 2); background: var(--boe-color-surface); }
.boe-multi-check svg { width: .7rem; height: .6rem; stroke: var(--boe-color-primary-contrast); }
.boe-multi-on, .boe-multi-some { background: var(--boe-color-primary); border-color: var(--boe-color-primary); }
.boe-multi-all { border-bottom: 1px solid var(--boe-color-border); margin-bottom: .2rem; }

/* date picker */
.boe-date-open { display: inline-flex; align-items: center; border: 0; background: transparent; padding: 0 .15rem; color: var(--boe-color-text-secondary); cursor: pointer; align-self: stretch; }
.boe-date-open:disabled { cursor: not-allowed; }
.boe-date-input[readonly] { cursor: pointer; }
.boe-time-list { min-width: 8rem; }
.boe-datetime-pop { display: flex; width: auto; gap: .5rem; }
.boe-datetime-cal { width: 17rem; flex: 0 0 auto; }
.boe-datetime-times { list-style: none; margin: 0; padding: 0 0 0 .5rem; border-left: 1px solid var(--boe-color-border); width: 6.5rem; max-height: 18rem; overflow-y: auto; }
@media (max-width: 30rem) { .boe-datetime-pop { flex-direction: column; } .boe-datetime-times { border-left: 0; border-top: 1px solid var(--boe-color-border); padding: .5rem 0 0; width: auto; max-height: 10rem; } }
.boe-date-pop { position: fixed; z-index: 1000; left: auto; top: auto; box-sizing: border-box; width: 18rem; max-width: calc(100vw - 1rem); padding: .5rem; background: var(--boe-color-surface); color: var(--boe-color-text-primary); border: 1px solid var(--boe-color-border); border-radius: var(--boe-radius); box-shadow: var(--boe-elevation-3); }
.boe-date-head { display: flex; align-items: center; justify-content: space-between; gap: .25rem; margin-bottom: .35rem; }
.boe-date-nav, .boe-date-title, .boe-date-today-btn, .boe-date-cell, .boe-date-day { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; border-radius: var(--boe-radius); }
.boe-date-nav { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; color: var(--boe-color-text-secondary); }
.boe-date-title { flex: 1; padding: .3rem .5rem; font-weight: 600; }
.boe-date-nav:hover:not(:disabled), .boe-date-title:hover:not(:disabled), .boe-date-today-btn:hover:not(:disabled), .boe-date-cell:hover:not(:disabled), .boe-date-day:hover:not(:disabled) { background: var(--boe-color-hover); }
.boe-date-nav:disabled, .boe-date-title:disabled { cursor: default; opacity: .5; }
.boe-date-title:disabled { opacity: 1; }
.boe-date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.boe-date-dow { text-align: center; font-size: .75rem; padding: .25rem 0; color: var(--boe-color-text-secondary); }
.boe-date-day { height: 2.15rem; padding: 0; text-align: center; }
.boe-date-out { color: var(--boe-color-text-secondary); }
.boe-date-today { box-shadow: inset 0 0 0 1px var(--boe-color-primary); }
.boe-date-day.boe-selected, .boe-date-cell.boe-selected { background: var(--boe-color-primary); color: var(--boe-color-primary-contrast); }
.boe-date-day.boe-active:not(.boe-selected), .boe-date-cell.boe-active:not(.boe-selected) { background: var(--boe-color-hover); box-shadow: inset 0 0 0 1px var(--boe-color-primary); }
.boe-date-day:disabled, .boe-date-cell:disabled, .boe-date-today-btn:disabled { opacity: .35; cursor: not-allowed; }
.boe-date-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: .25rem 0; }
.boe-date-cell { height: 2.6rem; }
.boe-date-foot { display: flex; justify-content: flex-end; margin-top: .35rem; }
.boe-date-today-btn { padding: .3rem .75rem; color: var(--boe-color-primary); font-weight: 600; }

/* card */
.boe-card { display: flex; flex-direction: column; overflow: hidden; }
.boe-card-header { display: flex; align-items: center; gap: .75rem; padding: 1rem; }
.boe-card-avatar { flex: none; display: inline-flex; }
.boe-card-header-content { flex: 1 1 auto; min-width: 0; }
.boe-card-header-actions { flex: none; display: inline-flex; align-items: center; gap: .25rem; margin-left: auto; }
.boe-card-content { padding: 1rem; }
.boe-card-header + .boe-card-content { padding-top: 0; }
.boe-card-actions { display: flex; align-items: center; gap: .5rem; padding: .5rem; }

/* expansion panels */
.boe-xpanels { display: flex; flex-direction: column; overflow: hidden; }
.boe-xpanel + .boe-xpanel { border-top: 1px solid var(--boe-color-border); }
.boe-xpanel-head { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; min-height: 3rem; box-sizing: border-box; cursor: pointer; user-select: none; }
.boe-xpanel-dense .boe-xpanel-head { padding: .4rem 1rem; min-height: 2.25rem; }
.boe-xpanel-head:hover { background: var(--boe-color-hover); }
.boe-xpanel-head:focus-visible { outline: 0; box-shadow: inset 0 0 0 .15rem var(--boe-focus-ring); }
.boe-xpanel-title { flex: 1 1 auto; min-width: 0; }
.boe-xpanel-chevron { flex: none; width: 1.25rem; height: 1.25rem; color: var(--boe-color-text-secondary); transition: transform .2s; }
.boe-xpanel-open > .boe-xpanel-head .boe-xpanel-chevron { transform: rotate(180deg); }
.boe-xpanel.boe-disabled > .boe-xpanel-head { opacity: .5; cursor: not-allowed; }
.boe-xpanel-body[hidden] { display: none; }
.boe-xpanel-content { padding: .25rem 1rem 1rem; }

/* tabs */
.boe-tabs { display: flex; flex-direction: column; }
.boe-tabs-rounded { border-radius: var(--boe-radius); }
.boe-tabs-header { display: flex; align-items: stretch; overflow-x: auto; border-bottom: 1px solid var(--boe-color-border); }
.boe-tab { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.75rem; padding: 0 1rem; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--boe-color-text-secondary); font: inherit; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; cursor: pointer; }
.boe-tab:hover:not(:disabled) { background: var(--boe-color-hover); color: var(--boe-color-text-primary); }
.boe-tab-active { color: var(--boe-color-text-primary); border-bottom-color: var(--boe-color-primary); }
.boe-tab:focus-visible { outline: 0; box-shadow: inset 0 0 0 .15rem var(--boe-focus-ring); }
.boe-tab:disabled { opacity: .5; cursor: not-allowed; }
.boe-tab-icon { width: 1.25rem; height: 1.25rem; }
.boe-tabs-panels { flex: 1 1 auto; min-height: 0; }

/* list */
.boe-list { display: flex; flex-direction: column; padding: .25rem 0; }
.boe-list-item { display: flex; align-items: center; gap: .75rem; padding: .5rem 1rem; color: var(--boe-color-text-primary); line-height: 1.4; }
.boe-list-dense .boe-list-item { padding: .25rem 1rem; }
.boe-list-clickable { cursor: pointer; }
.boe-list-clickable:hover { background: var(--boe-color-hover); }
.boe-list-clickable:focus-visible { outline: 0; box-shadow: inset 0 0 0 .15rem var(--boe-focus-ring); }
.boe-list-item.boe-selected { background: var(--boe-color-selected); }
.boe-list-item.boe-disabled { opacity: .5; cursor: not-allowed; }
.boe-list-icon { flex: none; width: 1.25rem; height: 1.25rem; color: var(--boe-color-text-secondary); }
.boe-list-text { flex: 1 1 auto; min-width: 0; }
.boe-list-subheader { padding: .5rem 1rem; color: var(--boe-color-text-secondary); font-size: .85em; font-weight: 600; line-height: 1.4; }
.boe-list-inset { padding-left: 3.25rem; }
.boe-list-nogutters { padding-left: 0; padding-right: 0; }

.boe-grid-values { display: flex; flex-direction: column; max-height: 12rem; overflow-y: auto; padding: .25rem 0; border: 1px solid var(--boe-color-border); border-radius: var(--boe-radius); }
.boe-grid-value { display: flex; align-items: center; gap: .5rem; padding: .2rem .5rem; cursor: pointer; color: var(--boe-color-text-primary); font-size: var(--boe-font-size); }
.boe-grid-value:hover { background: var(--boe-color-hover); }
.boe-grid-value input { accent-color: var(--boe-color-primary); margin: 0; }
.boe-grid-vall { border-bottom: 1px solid var(--boe-color-border); font-weight: 600; }
.boe-grid-vmore { padding: .25rem .5rem; color: var(--boe-color-text-secondary); font-size: .85em; }
.boe-grid-chooserwrap { display: inline-block; }
.boe-grid-chooser { min-width: 12rem; }
th.boe-grid-expand { width: 42px; background: var(--boe-color-primary); position: sticky; top: 0; z-index: 1; }
td.boe-grid-expand { width: 42px; text-align: center; padding: 0; border-bottom: 1px solid var(--boe-color-border); }
.boe-grid-expandbtn { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: var(--boe-radius); background: transparent; color: var(--boe-color-text-secondary); cursor: pointer; }
.boe-grid-expandbtn:hover { background: var(--boe-color-hover); color: var(--boe-color-text-primary); }
.boe-grid-expandbtn:focus-visible { outline: 0; box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }
.boe-grid-detailrow > td { padding: .75rem 1rem; background: var(--boe-color-background); border-bottom: 1px solid var(--boe-color-border); color: var(--boe-color-text-primary); }
.boe-grid-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.boe-grid-edittools { display: inline-flex; gap: .5rem; }
.boe-grid-editrow > td { background: var(--boe-color-hover); vertical-align: top; }
.boe-grid-editinput { box-sizing: border-box; width: 100%; min-height: 2rem; padding: 0 .5rem; border: 1px solid var(--boe-color-control-border); border-radius: var(--boe-radius); background: var(--boe-color-surface); color: var(--boe-color-text-primary); font: inherit; }
.boe-grid-editinput:focus { outline: 0; border-color: var(--boe-color-primary); box-shadow: 0 0 0 .2rem var(--boe-focus-ring); }
.boe-grid-editinput[aria-invalid=true] { border-color: var(--boe-color-error); }
.boe-grid-editcheck { accent-color: var(--boe-color-primary); }
.boe-grid-editerror { margin-top: .15rem; color: var(--boe-color-error); font-size: .85em; }
.boe-grid-editfield { margin-bottom: .75rem; }
.boe-grid-editfield .boe-grid-editcheck { align-self: flex-start; margin: .25rem 0; }

/* virtual scrolling: every line is exactly --boe-grid-rowh tall so the spacer rows stand in for the lines not drawn */
.boe-grid-virtual .boe-grid-row, .boe-grid-virtual .boe-grid-grouprow { height: var(--boe-grid-rowh); }
.boe-grid-virtual .boe-grid-cell { padding-top: 0; padding-bottom: 0; box-sizing: border-box; }
.boe-grid-spacer td { padding: 0; border: 0; }
