/* Base styles of the fortui browser backend. Pages include this in <head>, so
   a page rendered by the server is laid out before any script runs. Colours
   and fonts belong to the page, except the attention tone and the themes an
   application asks for (below). */
.fui-box { display: flex; box-sizing: border-box; min-width: 0; }
.fui-col { flex-direction: column; align-items: flex-start; }
.fui-row { flex-direction: row; align-items: center; }
/* Containers span the width available to them, as in fortui's own layout. */
.fui-col > .fui-box { align-self: stretch; }
.fui-root { width: 100%; }
.fui { box-sizing: border-box; margin: 0; font: inherit; line-height: 1.25; min-width: 0; }
.fui-k1 { overflow-wrap: anywhere; }
.fui-k9 { color: inherit; text-decoration: none; }
.fui-k9:hover { text-decoration: underline; }
.fui-k1.fui-ellipsis, .fui-k9.fui-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fui[data-style="3"], .fui[data-style="4"] { font-weight: 600; }
/* Code keeps its spaces and wraps at the container's edge instead of widening the page. */
.fui[data-style="5"] {
  font-family: ui-monospace, "SF Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.fui-k2, .fui-k5 { white-space: nowrap; }
.fui-k4 { display: inline-flex; align-items: center; gap: 6px; }
.fui-k7 { overflow: auto; white-space: pre-wrap; }
.fui-k8 { min-height: 32px; }
.fui-k10 { resize: none; font: inherit; }
/* Attention (UI_TONE_ATTENTION): a person's turn, amber for the colour scheme
   the page declares (color-scheme), light where it declares none. */
.fui[data-tone="17"], .fui [data-t="17"] { color: #9a6700; color: light-dark(#9a6700, #d29922); }

/* Themes an application asks for (ui_init theme=): data-theme on the root.
   Without one the page keeps its own look. Fonts come from the visitor's system. */
.fui-root[data-theme] { padding: var(--fui-margin); }
.fui-root[data-theme="classic"] {
  --fui-margin: 8px;
  background: #c0c0c0; color: #000;
  font-family: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Helvetica, Arial, sans-serif;
  font-size: 11px; -webkit-font-smoothing: none; font-smooth: never;
}
.fui-root[data-theme="classic"] .fui-k2,
.fui-root[data-theme="classic"] .fui-k5 {
  background: #c0c0c0; color: #000; border: 0; border-radius: 0; min-height: 23px;
  min-width: 75px; padding: 0 10px; font: inherit;
  box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
}
.fui-root[data-theme="classic"] .fui-k2[data-emphasis="1"],
.fui-root[data-theme="classic"] .fui-k2:focus {
  outline: 1px solid #000; outline-offset: -1px;
  box-shadow: inset -2px -2px #000, inset 2px 2px #fff, inset -3px -3px #808080,
    inset 3px 3px #dfdfdf;
}
.fui-root[data-theme="classic"] .fui-k2:active:not(:disabled) {
  box-shadow: inset 1px 1px #000, inset -1px -1px #000, inset 2px 2px #808080,
    inset -2px -2px #808080;
  padding: 1px 9px 0 11px;
}
.fui-root[data-theme="classic"] .fui-k2:disabled { color: #808080; text-shadow: 1px 1px #fff; }
.fui-root[data-theme="classic"] .fui-k5[aria-selected="true"] { margin-top: -2px; min-height: 25px; }
.fui-root[data-theme="classic"] .fui-k8,
.fui-root[data-theme="classic"] .fui-k10,
.fui-root[data-theme="classic"] .fui-k7 {
  background: #fff; color: #000; border: 0; border-radius: 0; padding: 3px 4px; font: inherit;
  box-shadow: inset -1px -1px #fff, inset 1px 1px #808080, inset -2px -2px #dfdfdf,
    inset 2px 2px #000;
}
.fui-root[data-theme="classic"] .fui-k9 { color: #00f; text-decoration: underline; }
.fui-root[data-theme="classic"] .fui-k4 input { accent-color: #000; }
.fui-root[data-theme="classic"] .fui[data-style="5"] {
  font-family: "More Perfect DOS VGA", "Courier New", Courier, monospace; font-size: 16px;
}

.fui-root[data-theme="fluent"], .fui-root[data-theme="fluent-dark"] {
  --fui-margin: 16px;
  --fui-brand: #0f6cbd; --fui-brand-hover: #115ea3; --fui-brand-pressed: #0c3b5e;
  --fui-bg: #f5f5f5; --fui-bg1: #fff; --fui-bg1-hover: #f5f5f5; --fui-bg1-pressed: #e0e0e0;
  --fui-fg1: #242424; --fui-fg3: #616161; --fui-fg-disabled: #bdbdbd;
  --fui-stroke1: #d1d1d1; --fui-stroke1-hover: #c7c7c7; --fui-stroke-accessible: #616161;
  --fui-focus: #000; --fui-link: #115ea3;
  background: var(--fui-bg); color: var(--fui-fg1);
  font-family: "Segoe UI Variable Text", "Segoe UI", Selawik, -apple-system,
    BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  font-size: 14px;
}
.fui-root[data-theme="fluent-dark"] {
  --fui-brand: #115ea3; --fui-brand-hover: #0f6cbd; --fui-brand-pressed: #0c3b5e;
  --fui-bg: #1f1f1f; --fui-bg1: #292929; --fui-bg1-hover: #3d3d3d; --fui-bg1-pressed: #1f1f1f;
  --fui-fg1: #fff; --fui-fg3: #adadad; --fui-fg-disabled: #5c5c5c;
  --fui-stroke1: #666; --fui-stroke1-hover: #757575; --fui-stroke-accessible: #adadad;
  --fui-focus: #fff; --fui-link: #479ef5; color-scheme: dark;
}
.fui-root[data-theme^="fluent"] .fui-k2 {
  min-height: 32px; min-width: 96px; padding: 0 12px; border-radius: 4px; font: inherit;
  font-weight: 600; background: var(--fui-bg1); color: var(--fui-fg1);
  border: 1px solid var(--fui-stroke1); cursor: pointer;
}
.fui-root[data-theme^="fluent"] .fui-k2:hover:not(:disabled) {
  background: var(--fui-bg1-hover); border-color: var(--fui-stroke1-hover);
}
.fui-root[data-theme^="fluent"] .fui-k2:active:not(:disabled) { background: var(--fui-bg1-pressed); }
.fui-root[data-theme^="fluent"] .fui-k2[data-emphasis="1"] {
  background: var(--fui-brand); color: #fff; border-color: transparent;
}
.fui-root[data-theme^="fluent"] .fui-k2[data-emphasis="1"]:hover:not(:disabled) {
  background: var(--fui-brand-hover);
}
.fui-root[data-theme^="fluent"] .fui-k2[data-emphasis="1"]:active:not(:disabled) {
  background: var(--fui-brand-pressed);
}
.fui-root[data-theme^="fluent"] .fui-k2[data-emphasis="2"] {
  background: transparent; border-color: transparent;
}
.fui-root[data-theme^="fluent"] .fui-k2:disabled {
  color: var(--fui-fg-disabled); background: var(--fui-bg1-hover); border-color: var(--fui-bg1-pressed);
}
.fui-root[data-theme^="fluent"] .fui-k2:focus-visible,
.fui-root[data-theme^="fluent"] .fui-k5:focus-visible {
  outline: 2px solid var(--fui-focus); outline-offset: -2px;
}
.fui-root[data-theme^="fluent"] .fui-k5 {
  min-height: 44px; border: 0; background: transparent; color: var(--fui-fg3); font: inherit;
}
.fui-root[data-theme^="fluent"] .fui-k5[aria-selected="true"] {
  color: var(--fui-fg1); font-weight: 600; box-shadow: inset 0 -3px var(--fui-brand);
}
.fui-root[data-theme^="fluent"] .fui-k8,
.fui-root[data-theme^="fluent"] .fui-k10 {
  min-height: 32px; padding: 0 10px; border: 1px solid var(--fui-stroke1);
  border-bottom-color: var(--fui-stroke-accessible); border-radius: 4px;
  background: var(--fui-bg1); color: inherit; font: inherit;
}
.fui-root[data-theme^="fluent"] .fui-k10 { padding: 6px 10px; }
.fui-root[data-theme^="fluent"] .fui-k8:focus,
.fui-root[data-theme^="fluent"] .fui-k10:focus {
  outline: 0; box-shadow: inset 0 -2px var(--fui-brand);
}
.fui-root[data-theme^="fluent"] .fui-k7 {
  background: var(--fui-bg1); border: 1px solid var(--fui-stroke1); border-radius: 4px;
  padding: 10px;
}
.fui-root[data-theme^="fluent"] .fui-k3,
.fui-root[data-theme^="fluent"] .fui-k4 input { accent-color: var(--fui-brand); }
.fui-root[data-theme^="fluent"] .fui-k9 { color: var(--fui-link); text-decoration: underline; }
.fui-root[data-theme^="fluent"] .fui[data-style="2"] { color: var(--fui-fg3); }
.fui-root[data-theme^="fluent"] .fui[data-style="3"],
.fui-root[data-theme^="fluent"] .fui[data-style="4"] { font-weight: 600; }
.fui-root[data-theme^="fluent"] .fui[data-style="5"] {
  font-family: "Cascadia Mono", Consolas, ui-monospace, Menlo, monospace;
}

.fui-k11 { min-height: 96px; overflow: auto; background: var(--fui-field, Canvas); color: var(--fui-text, CanvasText); border: 1px solid GrayText; padding: 4px; }
.fui-k11 option { padding: 4px 8px; }

.fui-box[role="dialog"] { width: min(880px, 100%); align-self: center; padding: 16px; box-sizing: border-box; border: 1px solid GrayText; border-radius: 8px; box-shadow: 0 8px 32px #0003; }
