/* One warm glass palette for workspace and engine chrome. */
html.jura-workspace,
html.jura-editor,
html.jura-editor[data-theme] {
  color-scheme: light;
  --jura-glass: rgba(249, 247, 243, 0.88);
  --jura-glass-solid: #f8f6f2;
  --jura-border: rgba(111, 101, 85, 0.17);
  --jura-hover: rgba(46, 87, 136, 0.075);
  --jura-shadow: 0 12px 36px -10px #30291d29, 0 2px 8px #30291d0a;
  --bg: #f6f3ee;
  --bg-2: #f1eee8;
  --surface: #faf8f4;
  --surface-alt: #f4f1eb;
  --surface-raised: #fcfaf7;
  --ink: #302f2c;
  --text: #302f2c;
  --muted: #625f58;
  --faint: #6c685f;
  --icon: #4a515b;
  --ink-disabled: #92918d;
  --line: #e6e1d8;
  --line-strong: #d6d0c6;
  --line-control: #bcb6ab;
  --accent: #285d9d !important;
  --accent-text: #285d9d;
  --accent-ink: #fff;
  --accent-soft: #285d9d12;
  --selected: #285d9d14;
  --selected-ink: #24548d;
  --hover: var(--jura-hover);
  --press: #285d9d14;
  --primary-bg: #285d9d;
  --primary-ink: #fff;
  --scrim: #34302726;
  --e2: var(--jura-shadow);
  --e3: 0 22px 70px #30291d26;
}
.jura-icon {
  width: 21px;
  height: 21px;
  flex: none;
  vertical-align: middle;
}
.jura-icon .icon-wash {
  fill: currentColor;
  fill-opacity: 0.12;
  stroke: none;
}
.jura-icon-home,
.jura-icon-new,
.jura-icon-share,
.jura-icon-info,
.jura-icon-export {
  color: #386ba5;
}
.jura-icon-open,
.jura-icon-close {
  color: #9c793c;
}
.jura-icon-save,
.jura-icon-saveAs {
  color: #8061a0;
}
.jura-icon-print,
.jura-icon-options,
.jura-icon-account {
  color: #5b716e;
}
@supports (backdrop-filter: blur(16px)) {
  .jura-workspace .jura-topbar,
  .jura-workspace #file-nav,
  .jura-editor header.bar,
  .jura-editor .ribbon,
  .jura-editor .rail,
  .jura-editor .footer,
  .jura-editor .context-menu,
  .jura-editor [role="menu"],
  .jura-editor .popover,
  .jura-editor .jura-command-menu,
  .jura-editor dialog,
  .jura-editor .dialog-card,
  .jura-editor .side-panel,
  .jura-editor .review-sidebar,
  .jura-editor .jura-selection-pane,
  .jura-editor .sidebar,
  .jura-workspace dialog,
  .jura-editor .jura-trigger-bridge {
    background: var(--jura-glass);
    backdrop-filter: blur(20px) saturate(1.25);
    -webkit-backdrop-filter: blur(20px) saturate(1.25);
  }
}
@media (prefers-reduced-motion: reduce) {
  .jura-editor *,
  .jura-workspace * {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

html.jura-editor[data-theme="dark"],
html.jura-workspace[data-theme="dark"] {
  color-scheme: dark;
  --jura-glass: rgba(29, 38, 50, 0.66);
  --jura-glass-solid: rgba(29, 38, 50, 0.94);
  --jura-control: rgba(255, 255, 255, 0.045);
  --jura-border: #ffffff20;
  --jura-hover: #ffffff0d;
  --jura-shadow: 0 12px 40px #0005;
  --bg: #1c2025;
  --bg-2: #22262b;
  --surface: rgba(29, 38, 50, 0.68);
  --surface-alt: rgba(39, 50, 65, 0.48);
  --surface-raised: rgba(39, 50, 65, 0.76);
  --text: #e8e7e4;
  --ink: #e8e7e4;
  --muted: #a6a8ad;
  --faint: #a0a3a8;
  --icon: #c0c9d4;
  --ink-disabled: #727780;
  --line: #ffffff20;
  --line-strong: #ffffff30;
  --line-control: #ffffff35;
  --hover: #ffffff0d;
  --accent: #91b5e7 !important;
  --accent-text: #a6caff;
  --accent-soft: #a5c6fa18;
  --selected: #a5c6fa20;
  --selected-ink: #b2d2ff;
  --press: #a5c6fa24;
  --primary-bg: #315f99;
  --primary-ink: #f7f9ff;
  --scrim: #0007;
  --e3: 0 22px 70px #0006;
}

/* Tool entries are destinations; only editing tabs own a ribbon band. */
html.jura-editor:has(.ribbon-tab[data-side-tool][aria-selected="true"]) .ribbon { display:none !important; }
html.jura-workspace textarea:not(.editor-text-input), html.jura-editor textarea:not(.editor-text-input) { resize:none !important; overflow-y:auto; }
html.jura-workspace[data-theme="dark"] #file-content,
html.jura-workspace[data-theme="dark"] .jura-tool-panel {
  background-image:radial-gradient(ellipse at 12% 0%,#367dbb12,transparent 50%),radial-gradient(ellipse at 95% 80%,#35a8a60c,transparent 50%);
}

html.jura-workspace[data-theme="dark"] #scribe-tools {--jura-glass-bg:rgba(29,38,50,.62);--jura-control-bg:rgba(39,50,65,.42);}
