/* Shared warm-glass controls for the browser shell and the editor frame. */
:is(html.jura-workspace,html.jura-editor),
:is(html.jura-workspace,html.jura-editor) * {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
:is(html.jura-workspace,html.jura-editor)::-webkit-scrollbar,
:is(html.jura-workspace,html.jura-editor) ::-webkit-scrollbar { width: 7px; height: 7px; }
:is(html.jura-workspace,html.jura-editor)::-webkit-scrollbar-track,
:is(html.jura-workspace,html.jura-editor) ::-webkit-scrollbar-track,
:is(html.jura-workspace,html.jura-editor)::-webkit-scrollbar-corner,
:is(html.jura-workspace,html.jura-editor) ::-webkit-scrollbar-corner { background: transparent; }
:is(html.jura-workspace,html.jura-editor)::-webkit-scrollbar-thumb,
:is(html.jura-workspace,html.jura-editor) ::-webkit-scrollbar-thumb { background: var(--line-strong); border: 2px solid transparent; border-radius: 10px; background-clip: padding-box; }
:is(html.jura-workspace,html.jura-editor)::-webkit-scrollbar-thumb:hover,
:is(html.jura-workspace,html.jura-editor) ::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }
:is(html.jura-workspace,html.jura-editor) select.jura-native-select {
  position: absolute !important; width: 1px !important; height: 1px !important;
  min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
  opacity: 0 !important; pointer-events: none !important; clip-path: inset(50%);
}
:is(html.jura-workspace,html.jura-editor) .jura-select-trigger {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-width: 0; min-height: 30px; box-sizing: border-box;
  padding: 6px 9px; border: 1px solid var(--line-control); border-radius: 6px;
  background: var(--jura-control,transparent); color: var(--ink); font: inherit; font-size: 12px;
  text-align: left; cursor: pointer; transition: background .16s,border-color .16s;
}
:is(html.jura-workspace,html.jura-editor) .jura-select-trigger:hover,
:is(html.jura-workspace,html.jura-editor) .jura-select-trigger[aria-expanded="true"] { background: var(--jura-hover); border-color: var(--accent); }
:is(html.jura-workspace,html.jura-editor) .jura-select-trigger:disabled { opacity: .45; cursor: default; }
:is(html.jura-workspace,html.jura-editor) .jura-select-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:is(html.jura-workspace,html.jura-editor) .jura-select-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
:is(html.jura-workspace,html.jura-editor) .jura-select-chevron { display:grid;place-items:center;width:16px;height:16px;flex:0 0 16px;line-height:1;color:var(--muted);transform-origin:50% 50%;transition:transform .2s cubic-bezier(.2,.75,.25,1); }
:is(html.jura-workspace,html.jura-editor) .jura-select-chevron svg { display:block;width:16px;height:16px; }
:is(html.jura-workspace,html.jura-editor) .jura-select-trigger[aria-expanded="true"] .jura-select-chevron { transform: rotate(180deg); }
:is(html.jura-workspace,html.jura-editor) .jura-themed-listbox {
  position: fixed; z-index: 2500; overflow: hidden; display: flex; flex-direction: column; overscroll-behavior: contain; box-sizing: border-box;
  margin: 0; padding: 5px; border: 1px solid var(--jura-border); border-radius: 10px;
  background: var(--jura-glass-solid); color: var(--ink); box-shadow: var(--jura-shadow);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  /* The shared surface controller owns entrance/exit motion; avoid a second competing animation. */
  transform-origin: top;
}
:is(html.jura-workspace,html.jura-editor) .jura-select-options { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
:is(html.jura-workspace,html.jura-editor) .jura-select-search { box-sizing: border-box; width: 100%; flex: none; min-height: 34px; padding: 7px 10px; margin: 0 0 5px; border: 1px solid var(--line-control); border-radius: 6px; background: var(--jura-control,transparent); color: var(--ink); font: inherit; font-size: 12px; }
:is(html.jura-workspace,html.jura-editor) .jura-select-empty { padding: 8px 10px; margin: 0; font-size: 12px; color: var(--muted); }
:is(html.jura-workspace,html.jura-editor) .jura-themed-listbox[data-direction="up"] { transform-origin: bottom; }
:is(html.jura-workspace,html.jura-editor) .jura-select-option {
  display: block; width: 100%; box-sizing: border-box; min-height: 30px;
  padding: 7px 10px; border: 0; border-radius: 6px; background: transparent;
  color: var(--ink); font: inherit; font-size: 12px; line-height: 1.4; text-align: left;
  white-space: normal; overflow-wrap: anywhere; cursor: pointer;
}
:is(html.jura-workspace,html.jura-editor) .jura-select-option:hover,
:is(html.jura-workspace,html.jura-editor) .jura-select-option.is-highlighted { background: var(--jura-hover); }
:is(html.jura-workspace,html.jura-editor) .jura-select-option[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
:is(html.jura-workspace,html.jura-editor) .jura-select-option:disabled { opacity: .4; cursor: default; }
:is(html.jura-workspace,html.jura-editor) .jura-select-group { padding: 8px 10px 4px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
:is(html.jura-workspace,html.jura-editor) :is(.desk-dialog,.jura-court-dialog) header > button[aria-label^="Close"] { display: grid; place-items: center; width: 28px; height: 28px; min-height: 0; flex: 0 0 28px; padding: 0; line-height: 1; }
@media(prefers-reduced-motion:reduce) {
  :is(html.jura-workspace,html.jura-editor) :is(.jura-themed-listbox,.jura-select-chevron,.jura-select-trigger) { animation: none; transition: none; }
}
