@import url("./assets/w95fa.css");

:where(.p95),
:where(:root, :scope) {
  --p95-space-0: 0;
  --p95-space-1: 4px;
  --p95-space-2: 8px;
  --p95-space-3: 12px;
  --p95-space-4: 16px;
  --p95-space-5: 24px;
  --p95-space-6: 32px;
  --p95-space-7: 48px;
  --p95-space-8: 64px;
  --p95-font-ui: "W95FA", "MS Sans Serif", sans-serif;
  --p95-font-code: "Courier New", monospace;
  --p95-text-small: 14px;
  --p95-text-body: 16px;
  --p95-text-large: 20px;
  --p95-text-title: 24px;
  --p95-text-heading: 32px;
  --p95-text-display: 48px;
  --p95-leading-tight: 1.15;
  --p95-leading-body: 1.5;
  --p95-weight-normal: 400;
  --p95-weight-strong: 700;
  --p95-line: 1px;
  --p95-line-strong: 2px;
  --p95-radius-control: 7px 4px 8px 3px / 3px 7px 4px 6px;
  --p95-radius-window: 6px 9px 5px 8px / 8px 4px 7px 5px;
  --p95-sketch-width: 10px;
  --p95-sketch-outset: 4px;
  --p95-button-sketch-width: var(--p95-space-2);
  --p95-button-sketch-outset: var(--p95-line-strong);
  --p95-sketch-shape: polygon(2px 3px, 24% 1px, 53% 3px, 78% 1px, calc(100% - 2px) 3px, 100% 28%, calc(100% - 2px) 67%, 100% calc(100% - 3px), 73% calc(100% - 1px), 41% calc(100% - 3px), 2px 100%, 0 61%, 2px 28%);
  --p95-control-height: 36px;
  --p95-action-height: 44px;
  --p95-icon-size: 24px;
  --p95-content-width: 1200px;
  --p95-reading-width: 68ch;
  --p95-sidebar-width: 192px;
  --p95-field-width: 280px;
  --p95-dialog-width: 480px;
  --p95-duration: 100ms;
  --p95-backdrop-opacity: 0.6;
  --p95-color-desktop: #007b78;
  --p95-color-surface: #c6c6c1;
  --p95-color-surface-hover: #d8d8d2;
  --p95-color-surface-active: #b3b3ae;
  --p95-color-paper: #fafaf3;
  --p95-color-text: #22241f;
  --p95-color-text-muted: #4b4e46;
  --p95-color-text-disabled: #65675f;
  --p95-color-ink: #262822;
  --p95-color-edge-light: #fffff8;
  --p95-color-edge-shadow: #777a71;
  --p95-color-title: #000080;
  --p95-color-on-title: #ffffff;
  --p95-color-accent: #000080;
  --p95-color-on-accent: #ffffff;
  --p95-color-link: #000080;
  --p95-color-link-visited: #592867;
  --p95-color-focus: #000080;
  --p95-color-selection: #000080;
  --p95-color-on-selection: #ffffff;
  --p95-color-success: #18532f;
  --p95-color-success-surface: #e1efdf;
  --p95-color-warning: #684400;
  --p95-color-warning-surface: #fff0c5;
  --p95-color-danger: #8b2020;
  --p95-color-danger-surface: #fae2de;
  --p95-color-info: #163f7a;
  --p95-color-info-surface: #e3eafb;
  --p95-color-backdrop: #111a1a;
  --p95-color-grid: #176f6b;
  --p95-frame-image: url("./assets/frame.svg");
  --p95-button-frame-image: url("./assets/frame-button.svg");
  --p95-frame-danger-image: url("./assets/frame-danger.svg");
  --p95-rule-image: url("./assets/rule.svg");
  --p95-shadow-raised: none;
  --p95-shadow-inset: none;
  --p95-shadow-window: none;
  --p95-panel-padding: var(--p95-space-5);
  --p95-section-gap: var(--p95-space-6);
  --p95-control-gap: var(--p95-space-2);
  --p95-scrollbar-size: var(--p95-space-5);
  --p95-scrollbar-arrow-size: var(--p95-space-2);
  --p95-scrollbar-thumb: var(--p95-color-surface);
  --p95-scrollbar-track: var(--p95-color-paper);
  --p95-scrollbar-arrow-up-image: url("./assets/scrollbar-arrows.svg#up");
  --p95-scrollbar-arrow-down-image: url("./assets/scrollbar-arrows.svg#down");
  --p95-scrollbar-arrow-left-image: url("./assets/scrollbar-arrows.svg#left");
  --p95-scrollbar-arrow-right-image: url("./assets/scrollbar-arrows.svg#right");
  --p95-scrollbar-arrow-disabled-up-image: url("./assets/scrollbar-arrows.svg#up-disabled");
  --p95-scrollbar-arrow-disabled-down-image: url("./assets/scrollbar-arrows.svg#down-disabled");
  --p95-scrollbar-arrow-disabled-left-image: url("./assets/scrollbar-arrows.svg#left-disabled");
  --p95-scrollbar-arrow-disabled-right-image: url("./assets/scrollbar-arrows.svg#right-disabled");
  --p95-focus-ring: var(--p95-line-strong) dotted var(--p95-color-focus);
  color-scheme: light;
  color: var(--p95-color-text);
  background: var(--p95-color-paper);
  font: var(--p95-weight-normal) var(--p95-text-body) / var(--p95-leading-body) var(--p95-font-ui);
  accent-color: var(--p95-color-accent);
  scrollbar-color: var(--p95-color-text-muted) var(--p95-scrollbar-track);
}

:where(.p95[data-p95-theme="dark"]),
:where(:root[data-p95-theme="dark"], :scope[data-p95-theme="dark"], body[data-p95-theme="dark"], :root:has(> body[data-p95-theme="dark"]), :root[data-p95-theme="dark"] > body.p95, :scope[data-p95-theme="dark"] > body.p95) {
  --p95-color-desktop: #090f19;
  --p95-color-surface: #2d3d57;
  --p95-color-surface-hover: #344865;
  --p95-color-surface-active: #172840;
  --p95-color-paper: #101927;
  --p95-color-text: #f4f7ff;
  --p95-color-text-muted: #c6d2e6;
  --p95-color-text-disabled: #c6d2e6;
  --p95-color-ink: #8297b6;
  --p95-color-edge-light: #8297b6;
  --p95-color-edge-shadow: #8297b6;
  --p95-color-title: #3d6096;
  --p95-color-on-title: #f4f7ff;
  --p95-color-accent: #b4ceff;
  --p95-color-on-accent: #101927;
  --p95-color-link: #b4ceff;
  --p95-color-link-visited: #b4ceff;
  --p95-color-focus: #b4ceff;
  --p95-color-selection: #b4ceff;
  --p95-color-on-selection: #101927;
  --p95-color-success: #b8e4bd;
  --p95-color-success-surface: #243c2c;
  --p95-color-warning: #f6d78d;
  --p95-color-warning-surface: #433922;
  --p95-color-danger: #ffc0b6;
  --p95-color-danger-surface: #472b2b;
  --p95-color-info: #bfceff;
  --p95-color-info-surface: #29364c;
  --p95-color-backdrop: #050a12;
  --p95-color-grid: #090f19;
  --p95-frame-image: url("./assets/frame-dark.svg");
  --p95-button-frame-image: url("./assets/frame-button-dark.svg");
  --p95-frame-danger-image: url("./assets/frame-danger-dark.svg");
  --p95-rule-image: url("./assets/rule-dark.svg");
  --p95-scrollbar-arrow-up-image: url("./assets/scrollbar-arrows-dark.svg#up");
  --p95-scrollbar-arrow-down-image: url("./assets/scrollbar-arrows-dark.svg#down");
  --p95-scrollbar-arrow-left-image: url("./assets/scrollbar-arrows-dark.svg#left");
  --p95-scrollbar-arrow-right-image: url("./assets/scrollbar-arrows-dark.svg#right");
  --p95-scrollbar-arrow-disabled-up-image: url("./assets/scrollbar-arrows-dark.svg#up-disabled");
  --p95-scrollbar-arrow-disabled-down-image: url("./assets/scrollbar-arrows-dark.svg#down-disabled");
  --p95-scrollbar-arrow-disabled-left-image: url("./assets/scrollbar-arrows-dark.svg#left-disabled");
  --p95-scrollbar-arrow-disabled-right-image: url("./assets/scrollbar-arrows-dark.svg#right-disabled");
  color-scheme: dark;
}

:where(:scope, *), :where(:scope, *)::before, :where(:scope, *)::after { box-sizing: border-box; }
:where(body), .p95 { margin: 0; }
::selection { color: var(--p95-color-on-selection); background: var(--p95-color-selection); }
:where(:focus-visible) { outline: var(--p95-focus-ring); outline-offset: var(--p95-space-1); }
:where([hidden]) { display: none !important; }
:where(a) { color: var(--p95-color-link); text-underline-offset: var(--p95-space-1); }
:where(a:visited) { color: var(--p95-color-link-visited); }
:where(a:hover) { text-decoration-thickness: var(--p95-line-strong); }
:where(button, input, select, textarea) { font: inherit; color: inherit; accent-color: var(--p95-color-accent); }
:where(h1, h2, h3, h4, h5, h6, p) { margin: 0; }
:where(h1) { font-size: var(--p95-text-display); }
:where(h2) { font-size: var(--p95-text-heading); }
:where(h3) { font-size: var(--p95-text-title); }
:where(h1, h2, h3, h4, h5, h6) { line-height: var(--p95-leading-tight); font-weight: var(--p95-weight-normal); }
:where(img) { max-inline-size: 100%; block-size: auto; }
.p95-muted { color: var(--p95-color-text-muted); }
.p95-small { font-size: var(--p95-text-small); }
.p95-stack { display: grid; gap: var(--p95-space-4); }
.p95-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--p95-control-gap); }
.p95-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--p95-field-width)), 1fr)); gap: var(--p95-space-5); }
.p95-sr-only { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.p95-skip { position: fixed; z-index: 10; inset: var(--p95-space-2) auto auto var(--p95-space-2); padding: var(--p95-space-3); background: var(--p95-color-paper); transform: translateY(-200%); }
.p95-skip:focus { transform: none; }

@supports selector(::-webkit-scrollbar) {
  @media (forced-colors: none) {
    /* Non-auto standard colors suppress the detailed scrollbar parts in Chromium. */
    :where(.p95, :root, :scope) { scrollbar-color: auto; }
    :where(:scope, *)::-webkit-scrollbar { width: var(--p95-scrollbar-size); height: var(--p95-scrollbar-size); }
    :where(:scope, *)::-webkit-scrollbar-track { background: var(--p95-scrollbar-track); }
    :where(:scope, *)::-webkit-scrollbar-thumb,
    :where(:scope, *)::-webkit-scrollbar-button {
      background-color: var(--p95-scrollbar-thumb);
      border: var(--p95-line) solid var(--p95-color-ink);
      border-radius: 0;
      box-shadow: inset var(--p95-line) var(--p95-line) var(--p95-color-edge-light), inset calc(-1 * var(--p95-line)) calc(-1 * var(--p95-line)) var(--p95-color-edge-shadow);
    }
    :where(:scope, *)::-webkit-scrollbar-thumb { min-width: var(--p95-scrollbar-size); min-height: var(--p95-scrollbar-size); }
    :where(:scope, *)::-webkit-scrollbar-thumb:hover,
    :where(:scope, *)::-webkit-scrollbar-button:hover { background-color: var(--p95-color-surface-hover); }
    :where(:scope, *)::-webkit-scrollbar-thumb:active,
    :where(:scope, *)::-webkit-scrollbar-button:active {
      background-color: var(--p95-color-surface-active);
      box-shadow: inset var(--p95-line) var(--p95-line) var(--p95-color-edge-shadow), inset calc(-1 * var(--p95-line)) calc(-1 * var(--p95-line)) var(--p95-color-edge-light);
    }
    :where(:scope, *)::-webkit-scrollbar-button {
      display: none;
      width: var(--p95-scrollbar-size);
      height: var(--p95-scrollbar-size);
      background-repeat: no-repeat;
      background-size: var(--p95-scrollbar-arrow-size) var(--p95-scrollbar-arrow-size);
      background-position: center;
    }
    :where(:scope, *)::-webkit-scrollbar-button:vertical:start:decrement,
    :where(:scope, *)::-webkit-scrollbar-button:vertical:end:increment,
    :where(:scope, *)::-webkit-scrollbar-button:horizontal:start:decrement,
    :where(:scope, *)::-webkit-scrollbar-button:horizontal:end:increment { display: block; }
    :where(:scope, *)::-webkit-scrollbar-button:vertical:decrement { background-image: var(--p95-scrollbar-arrow-up-image); }
    :where(:scope, *)::-webkit-scrollbar-button:vertical:increment { background-image: var(--p95-scrollbar-arrow-down-image); }
    :where(:scope, *)::-webkit-scrollbar-button:horizontal:decrement { background-image: var(--p95-scrollbar-arrow-left-image); }
    :where(:scope, *)::-webkit-scrollbar-button:horizontal:increment { background-image: var(--p95-scrollbar-arrow-right-image); }
    :where(:scope, *)::-webkit-scrollbar-button:disabled {
      --p95-scrollbar-arrow-up-image: var(--p95-scrollbar-arrow-disabled-up-image);
      --p95-scrollbar-arrow-down-image: var(--p95-scrollbar-arrow-disabled-down-image);
      --p95-scrollbar-arrow-left-image: var(--p95-scrollbar-arrow-disabled-left-image);
      --p95-scrollbar-arrow-right-image: var(--p95-scrollbar-arrow-disabled-right-image);
    }
    :where(:scope, *)::-webkit-scrollbar-corner,
    :where(:scope, *)::-webkit-resizer { background-color: var(--p95-scrollbar-thumb); }
  }
}

/* Nine-slice ink keeps stroke weight independent of a component's dimensions. */
.p95-window, .p95-panel { position: relative; }
.p95-window, .p95-panel, :where(dialog) { min-inline-size: 0; border: var(--p95-line) solid var(--p95-color-ink); border-radius: var(--p95-radius-window); background: var(--p95-color-surface); box-shadow: var(--p95-shadow-raised); }
.p95-window, :where(dialog) { padding: var(--p95-space-1); box-shadow: var(--p95-shadow-raised), var(--p95-shadow-window); }
.p95-titlebar { position: relative; isolation: isolate; display: flex; align-items: center; gap: var(--p95-space-2); min-block-size: var(--p95-control-height); padding: var(--p95-space-1) var(--p95-space-2); color: var(--p95-color-on-title); }
.p95-titlebar::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: var(--p95-color-title); clip-path: var(--p95-sketch-shape); }
.p95-titlebar :is(h1, h2, h3) { flex: 1; font-size: var(--p95-text-body); overflow-wrap: anywhere; }
.p95-titlebar > :is(.p95-button, :where(button, input:is([type="button"], [type="submit"], [type="reset"]))) { min-block-size: var(--p95-icon-size); min-inline-size: var(--p95-icon-size); padding: 0 var(--p95-space-1); color: var(--p95-color-text); }
.p95-titlebar :focus-visible { outline-color: var(--p95-color-on-title); }
.p95-window-body { padding: var(--p95-panel-padding); }
.p95-panel { padding: var(--p95-panel-padding); }
.p95-inset { min-inline-size: 0; padding: var(--p95-space-4); background: var(--p95-color-paper); border: var(--p95-line) solid var(--p95-color-edge-shadow); box-shadow: var(--p95-shadow-inset); }
.p95-statusbar { display: flex; flex-wrap: wrap; gap: var(--p95-space-1); padding-block-start: var(--p95-space-1); font-size: var(--p95-text-small); }
.p95-statusbar > * { padding: var(--p95-space-1) var(--p95-space-2); box-shadow: var(--p95-shadow-inset); }
.p95-statusbar > :first-child { flex: 1; }
.p95-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--p95-space-2); padding: var(--p95-space-2); border-block-end: var(--p95-line) solid var(--p95-color-edge-shadow); }

/* Menu items own their skin and states. The explicit alias still opts into actions. */
.p95-button, :where(:is(button, input:is([type="button"], [type="submit"], [type="reset"])):not(.p95-menu-list > *)) {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--p95-space-2);
  min-block-size: var(--p95-control-height); min-inline-size: var(--p95-control-height);
  padding: var(--p95-space-1) var(--p95-space-4);
  border: var(--p95-line-strong) solid transparent; border-radius: var(--p95-radius-control);
  border-image: var(--p95-button-frame-image) 8 / var(--p95-button-sketch-width) / var(--p95-button-sketch-outset) stretch;
  background-clip: padding-box;
  color: var(--p95-color-text); background-color: var(--p95-color-surface);
  box-shadow: var(--p95-shadow-raised); text-decoration: none; cursor: pointer;

  &:where(.p95-button):visited { color: var(--p95-color-text); }
  &:where(.p95-button):hover:not(:disabled), :where(&):where(:hover:not(:disabled)) { background-color: var(--p95-color-surface-hover); }
  &:where(.p95-button):active:not(:disabled), &:where(.p95-button)[aria-pressed="true"], :where(&):where(:active:not(:disabled), [aria-pressed="true"]) { background-color: var(--p95-color-surface-active); box-shadow: var(--p95-shadow-inset); }
  :where(&).p95-button--primary { min-block-size: var(--p95-action-height); color: var(--p95-color-on-accent); background-color: var(--p95-color-accent); box-shadow: none; }
  :where(&).p95-button--primary:visited { color: var(--p95-color-on-accent); }
  :where(&).p95-button--primary:hover:not(:disabled), :where(&).p95-button--primary:active:not(:disabled), :where(&).p95-button--primary[aria-pressed="true"] { color: var(--p95-color-on-accent); background-color: var(--p95-color-accent); text-decoration: underline; text-underline-offset: var(--p95-space-1); }
  :where(&).p95-button--danger { color: var(--p95-color-danger); }
  &:disabled { color: var(--p95-color-text-disabled); cursor: not-allowed; border-style: dashed; }
  @media (forced-colors: active) {
    border-image: none; border-color: ButtonText;
  }
}
.p95-icon { inline-size: var(--p95-icon-size); block-size: var(--p95-icon-size); flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.p95-tabs { display: flex; flex-wrap: wrap; gap: var(--p95-space-1); border-block-end: var(--p95-line-strong) solid var(--p95-color-ink); }
.p95-tabs > * { border-end-start-radius: 0; border-end-end-radius: 0; }
.p95-tabs [aria-selected="true"] { background: var(--p95-color-paper); box-shadow: none; text-decoration: underline; text-underline-offset: var(--p95-space-1); }
.p95-menu { position: relative; inline-size: fit-content; }
.p95-menu > summary { list-style: none; }
.p95-menu > summary::-webkit-details-marker { display: none; }
.p95-menu-list { position: absolute; z-index: 3; min-inline-size: var(--p95-sidebar-width); padding: var(--p95-space-1); background: var(--p95-color-surface); border: var(--p95-line) solid var(--p95-color-ink); box-shadow: var(--p95-shadow-window); }
.p95-menu-list > * { display: block; inline-size: 100%; padding: var(--p95-space-2); color: var(--p95-color-text); text-align: start; background: none; border: 0; text-decoration: none; cursor: pointer; }
.p95-menu-list > :is(:hover, :focus-visible) { color: var(--p95-color-on-selection); background: var(--p95-color-selection); }

.p95-field { display: grid; gap: var(--p95-space-1); min-inline-size: 0; }
.p95-input, :where(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="color"], [type="file"], [type="image"], [type="button"], [type="submit"], [type="reset"]), textarea, select) { inline-size: 100%; min-inline-size: 0; min-block-size: var(--p95-action-height); padding: var(--p95-space-2) var(--p95-space-3); background: var(--p95-color-paper); border: var(--p95-line) solid var(--p95-color-ink); border-radius: var(--p95-radius-control); box-shadow: var(--p95-shadow-inset); }
select.p95-input[multiple], :where(select[multiple]) { min-block-size: calc(var(--p95-control-height) * 3); }
textarea.p95-input, :where(textarea) { resize: vertical; min-block-size: calc(var(--p95-control-height) * 3); }
.p95-input::placeholder, :where(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="color"], [type="file"], [type="image"], [type="button"], [type="submit"], [type="reset"]), textarea, select)::placeholder { color: var(--p95-color-text-muted); opacity: 1; }
.p95-field-error { color: var(--p95-color-danger); }
.p95-filter-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 2fr)) auto; gap: var(--p95-space-1) var(--p95-space-3); align-items: start; }
.p95-filter-row > .p95-field { grid-row: span 2; grid-template-rows: subgrid; }
.p95-filter-row > :is(.p95-button, :where(button, input:is([type="button"], [type="submit"], [type="reset"]))) { grid-row: span 2; align-self: end; min-block-size: var(--p95-action-height); }
.p95-choice { position: relative; min-inline-size: 0; }
.p95-choice-trigger { display: flex; align-items: center; justify-content: space-between; gap: var(--p95-space-2); text-align: start; cursor: pointer; }
.p95-choice-trigger::after { content: ""; flex-shrink: 0; border-inline: var(--p95-space-1) solid transparent; border-block-start: var(--p95-space-1) solid currentColor; }
.p95-choice-trigger[aria-expanded="true"]::after { transform: rotate(180deg); }
.p95-choice-popup { inset-block-start: calc(100% + var(--p95-space-1)); inset-inline: 0; min-inline-size: 0; max-block-size: calc(var(--p95-control-height) * 6); margin: 0; overflow-y: auto; list-style: none; background: var(--p95-color-paper); }
.p95-choice-popup > :is(.p95-choice-option, .p95-check) { display: flex; align-items: center; gap: var(--p95-space-2); min-block-size: var(--p95-control-height); cursor: pointer; }
.p95-choice-option::before { content: ""; inline-size: var(--p95-space-4); flex-shrink: 0; }
.p95-choice-option[aria-selected="true"]::before { content: "✓"; }
.p95-choice-popup > .p95-choice-option[data-active="true"] { color: var(--p95-color-on-selection); background: var(--p95-color-selection); }
.p95-choice-popup > .p95-choice-option[aria-disabled="true"], .p95-choice-popup > .p95-check:has(:disabled) { color: var(--p95-color-text-disabled); background: none; cursor: not-allowed; }
.p95-choice-chips { display: flex; flex-wrap: wrap; gap: var(--p95-space-2); margin: 0; padding: 0; list-style: none; }
.p95-choice-chip { min-block-size: var(--p95-icon-size); padding: 0 var(--p95-space-2); font-size: var(--p95-text-small); }
.p95-check, :where(label:has(input:is([type="checkbox"], [type="radio"])):not(.p95-button)) { display: flex; align-items: center; gap: var(--p95-space-2); min-block-size: var(--p95-control-height); cursor: pointer; }
:where(label:has(input:is([type="checkbox"], [type="radio"])):not(.p95-button)) { display: inline-flex; }
.p95-check input, :where(input[type="checkbox"], input[type="radio"]) { inline-size: var(--p95-space-4); block-size: var(--p95-space-4); margin: var(--p95-space-1); flex-shrink: 0; }
:where(input:is([type="checkbox"], [type="radio"]):enabled:not(label input, .p95-check input)) { min-inline-size: var(--p95-icon-size); min-block-size: var(--p95-icon-size); }
.p95-check input:disabled, :where(input[type="checkbox"]:disabled, input[type="radio"]:disabled) { cursor: not-allowed; }
:where(fieldset) { min-inline-size: 0; margin: 0; padding: var(--p95-space-4); border: var(--p95-line) solid var(--p95-color-ink); border-radius: var(--p95-radius-window); background: var(--p95-color-surface); }
:where(legend) { position: relative; padding-inline: var(--p95-space-2); background: inherit; }
:where(input[type="range"]) { inline-size: 100%; min-block-size: var(--p95-control-height); margin-inline: 0; }
.p95-badge { display: inline-block; padding: 0 var(--p95-space-2); border: var(--p95-line) solid currentColor; border-radius: var(--p95-radius-control); font-size: var(--p95-text-small); }
.p95-alert { padding: var(--p95-space-3) var(--p95-space-4); border: var(--p95-line) solid currentColor; border-inline-start-width: var(--p95-space-1); }
.p95-success { color: var(--p95-color-success); background: var(--p95-color-success-surface); }
.p95-warning { color: var(--p95-color-warning); background: var(--p95-color-warning-surface); }
.p95-danger { color: var(--p95-color-danger); background: var(--p95-color-danger-surface); }
.p95-info { color: var(--p95-color-info); background: var(--p95-color-info-surface); }
.p95-progress, :where(progress) { inline-size: 100%; block-size: var(--p95-space-5); border: var(--p95-line) solid var(--p95-color-ink); background: var(--p95-color-paper); accent-color: var(--p95-color-accent); }
.p95-progress::-webkit-progress-bar, :where(progress)::-webkit-progress-bar { background: var(--p95-color-paper); box-shadow: var(--p95-shadow-inset); }
.p95-progress::-webkit-progress-value, :where(progress)::-webkit-progress-value { background: var(--p95-color-accent); }
.p95-progress::-moz-progress-bar, :where(progress)::-moz-progress-bar { background: var(--p95-color-accent); }
.p95-skeleton { min-block-size: var(--p95-space-4); background: var(--p95-color-surface-hover); }
.p95-empty { display: grid; justify-items: center; gap: var(--p95-space-3); padding: var(--p95-space-6); text-align: center; border: var(--p95-line) dashed var(--p95-color-ink); }
.p95-table-scroll { max-inline-size: 100%; overflow-x: auto; }
.p95-table, :where(table) { inline-size: 100%; border-collapse: separate; border-spacing: 0; background: var(--p95-color-paper); text-align: start; }
.p95-table caption, :where(caption) { padding: var(--p95-space-2); text-align: start; color: var(--p95-color-text-muted); }
.p95-table :is(th, td), :where(th, td) { padding: var(--p95-space-2) var(--p95-space-3); border: var(--p95-line) solid var(--p95-color-edge-shadow); text-align: start; overflow-wrap: anywhere; }
.p95-table th, :where(th) { background-color: var(--p95-color-surface); font-weight: var(--p95-weight-normal); }
.p95-table tbody tr:hover, :where(tbody tr:hover) { background: var(--p95-color-surface-hover); }
.p95-dialog, :where(dialog) { max-inline-size: min(var(--p95-dialog-width), calc(100% - var(--p95-space-6))); color: var(--p95-color-text); }
.p95-dialog::backdrop, :where(dialog)::backdrop { background: var(--p95-color-backdrop); opacity: var(--p95-backdrop-opacity); }

.p95-diagram { margin: 0; overflow-wrap: anywhere; }
.p95-diagram > figcaption { display: grid; gap: var(--p95-space-2); }
.p95-diagram h4 { font-size: var(--p95-text-large); }
.p95-flow { display: grid; justify-items: center; }
.p95-flow-node { inline-size: min(100%, var(--p95-field-width)); text-align: center; }
.p95-flow-arrow { display: block; color: var(--p95-color-ink); font-size: var(--p95-text-title); line-height: var(--p95-leading-tight); text-align: center; }
.p95-flow-arrow::before { content: "↓"; }
.p95-flow-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--p95-space-5); inline-size: 100%; }
.p95-flow-branch { position: relative; display: grid; justify-items: center; align-content: start; gap: var(--p95-space-2); min-inline-size: 0; padding-block-start: var(--p95-space-3); }
.p95-flow-branch::before { content: ""; position: absolute; inset-block-start: 0; block-size: var(--p95-space-4); inline-size: calc(50% + var(--p95-space-3)); border-block-start: var(--p95-line-strong) solid var(--p95-color-ink); }
.p95-flow-branch:first-child::before { inset-inline-start: 50%; border-inline-start: var(--p95-line-strong) solid var(--p95-color-ink); }
.p95-flow-branch:last-child::before { inset-inline-end: 50%; border-inline-end: var(--p95-line-strong) solid var(--p95-color-ink); }
.p95-flow-label { text-align: center; }
.p95-sequence { display: grid; gap: var(--p95-space-4); margin: 0; padding-inline-start: var(--p95-space-5); }
.p95-sequence > li::marker { font-size: var(--p95-text-large); }

/* Add .p95-prose to the HTML emitted by a Markdown renderer. No parser is included. */
.p95-prose { max-inline-size: var(--p95-reading-width); overflow-wrap: anywhere; }
.p95-prose > * + * { margin-block-start: var(--p95-space-4); }
.p95-prose :is(h1, h2, h3, h4, h5, h6) { margin-block: var(--p95-space-6) var(--p95-space-3); scroll-margin-block-start: var(--p95-space-5); }
.p95-prose > :first-child { margin-block-start: 0; }
.p95-prose h1 { font-size: var(--p95-text-heading); }
.p95-prose h2 { font-size: var(--p95-text-title); border-block-end: var(--p95-line) solid var(--p95-color-edge-shadow); padding-block-end: var(--p95-space-2); }
.p95-prose h3 { font-size: var(--p95-text-large); }
.p95-prose h4, :where(h4) { font-size: var(--p95-text-body); font-weight: var(--p95-weight-strong); }
.p95-prose h5, :where(h5) { font-size: var(--p95-text-body); text-decoration: underline; text-underline-offset: var(--p95-space-1); }
.p95-prose h6, :where(h6) { font-size: var(--p95-text-small); font-weight: var(--p95-weight-strong); }
.p95-prose :is(ul, ol), :where(ul, ol) { padding-inline-start: var(--p95-space-5); }
.p95-prose li + li { margin-block-start: var(--p95-space-1); }
.p95-prose li > :is(ul, ol, p) { margin-block: var(--p95-space-2); }
.p95-prose .task-list-item { list-style: none; }
.p95-prose input[type="checkbox"] { margin-inline: calc(-1 * var(--p95-space-5)) var(--p95-space-2); }
.p95-prose blockquote, :where(blockquote) { margin-inline: 0; padding: var(--p95-space-3) var(--p95-space-4); border-inline-start: var(--p95-space-1) solid var(--p95-color-edge-shadow); background: var(--p95-color-surface); }
.p95-prose blockquote > * + * { margin-block-start: var(--p95-space-2); }
.p95-prose :is(code, pre, kbd, samp), :where(code, pre, kbd, samp) { font-family: var(--p95-font-code); font-size: var(--p95-text-small); }
:where(.p95-prose :not(pre) > code, :not(pre) > code) { padding: 0 var(--p95-space-1); border: var(--p95-line) solid var(--p95-color-edge-shadow); background: var(--p95-inline-code-surface, var(--p95-color-surface)); box-decoration-break: clone; }
.p95-prose pre, :where(pre) { overflow-x: auto; max-inline-size: 100%; padding: var(--p95-space-4); border: var(--p95-line) solid var(--p95-color-ink); box-shadow: var(--p95-shadow-inset); background: var(--p95-color-surface); white-space: pre; overflow-wrap: normal; }
.p95-prose pre code, :where(pre code) { font-size: inherit; }
/* Reading-code surfaces must not break the ink/surface pair of their owner. */
:is(button, .p95-button, .p95-titlebar, .p95-menu-list, .p95-badge, .p95-alert, .p95-success, .p95-warning, .p95-danger, .p95-info, kbd, mark, [aria-selected="true"], [aria-current]) {
  --p95-inline-code-surface: transparent;
}
.p95-prose kbd, :where(kbd) { padding: var(--p95-space-1); border: var(--p95-line) solid var(--p95-color-ink); background: var(--p95-color-surface); box-shadow: var(--p95-shadow-raised); }
.p95-prose hr, :where(hr) { margin-block: var(--p95-space-5); border: 0; border-block-start: var(--p95-line) dashed var(--p95-color-ink); }
.p95-prose table { display: block; max-inline-size: 100%; overflow-x: auto; border-collapse: separate; border-spacing: 0; }
.p95-prose :is(th, td) { padding: var(--p95-space-2) var(--p95-space-3); border: var(--p95-line) solid var(--p95-color-edge-shadow); text-align: start; }
.p95-prose th { background-color: var(--p95-color-surface); }
.p95-prose figure, :where(figure) { margin-inline: 0; }
.p95-prose figcaption, :where(figcaption) { margin-block-start: var(--p95-space-2); color: var(--p95-color-text-muted); font-size: var(--p95-text-small); }
.p95-prose :is(img, video, svg), :where(img, video, svg) { max-inline-size: 100%; block-size: auto; }
.p95-prose dt, :where(dt) { font-weight: var(--p95-weight-strong); }
.p95-prose dd, :where(dd) { margin-inline-start: var(--p95-space-5); }
.p95-prose :is(sup, sub), :where(sup, sub) { font-size: var(--p95-text-small); }
.p95-prose mark, :where(mark) { color: var(--p95-color-warning); background: var(--p95-color-warning-surface); }
.p95-prose :is(details, .footnotes), :where(details:not(.p95-menu)) { padding: var(--p95-space-3); border: var(--p95-line) solid var(--p95-color-edge-shadow); }
.p95-prose summary, :where(summary) { min-block-size: var(--p95-control-height); cursor: pointer; }
.p95-prose :is(.token.comment, .token.punctuation) { color: var(--p95-color-text-muted); }
.p95-prose :is(.token.keyword, .token.function) { color: var(--p95-color-link); }
.p95-prose .token.string { color: var(--p95-color-success); }

/* Tiling preserves stroke spacing in frames smaller than the source drawing. */
:is(.p95-window, .p95-panel, .p95-button, .p95-inset, .p95-input, .p95-menu-list, .p95-progress, .p95-empty, .p95-alert, .p95-badge, .p95-sketch), .p95-prose :is(pre, kbd, details, .footnotes), :where(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="color"], [type="file"], [type="image"], [type="button"], [type="submit"], [type="reset"]), textarea, select), :where(fieldset, progress, dialog, pre, kbd, details:not(.p95-menu)) {
  border: var(--p95-line-strong) solid transparent;
  border-image: var(--p95-frame-image) 12 / var(--p95-sketch-width) / var(--p95-sketch-outset) repeat;
  background-clip: padding-box;
}
:is(.p95-button, .p95-choice-trigger) { border-image: var(--p95-button-frame-image) 8 / var(--p95-button-sketch-width) / var(--p95-button-sketch-outset) stretch; }
.p95-input:disabled, :where(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="color"], [type="file"], [type="image"], [type="button"], [type="submit"], [type="reset"]), textarea, select):where(:disabled) { color: var(--p95-color-text-disabled); background: var(--p95-color-surface); border-style: dashed; cursor: not-allowed; }
.p95-input[aria-invalid="true"], :where(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="color"], [type="file"], [type="image"], [type="button"], [type="submit"], [type="reset"]), textarea, select):where([aria-invalid="true"]) { border: var(--p95-line-strong) solid var(--p95-color-danger); border-image: var(--p95-frame-danger-image) 12 / var(--p95-sketch-width) / var(--p95-sketch-outset) repeat; }
:is(.p95-toolbar, .p95-tabs), .p95-table :is(th, td), .p95-prose :is(th, td, h2, hr), :where(th, td, hr) {
  border: 0;
  padding-block-end: var(--p95-space-2);
  background-image: var(--p95-rule-image);
  background-position: bottom;
  background-size: 100% var(--p95-space-2);
  background-repeat: no-repeat;
}

@media (max-width: 1024px) {
  .p95-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--p95-space-3); }
}
/* The shared compact breakpoint is 640px; CSS variables cannot drive media queries. */
@media (max-width: 640px) {
  :where(.p95, :root, :scope) { --p95-panel-padding: var(--p95-space-4); --p95-section-gap: var(--p95-space-5); --p95-text-display: 32px; }
  .p95-filter-row { grid-template-columns: minmax(0, 1fr); }
  .p95-flow-branches { grid-template-columns: minmax(0, 1fr); gap: var(--p95-space-4); }
  .p95-flow-branch { padding-block-start: 0; padding-inline-start: var(--p95-space-3); border-inline-start: var(--p95-line-strong) solid var(--p95-color-ink); }
  .p95-flow-branch::before, .p95-flow-branch .p95-flow-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  :where(:scope, *), :where(:scope, *)::before, :where(:scope, *)::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  :where(.p95, :root, :scope) { scrollbar-color: auto; }
  .p95-titlebar::before { background: Canvas; clip-path: none; }
  .p95-titlebar { color: CanvasText; }
  :where(:focus-visible) { outline: 2px solid Highlight; }
  .p95-choice-popup > .p95-choice-option[data-active="true"] { color: HighlightText; background: Highlight; forced-color-adjust: none; }
  :is(.p95-window, .p95-panel, .p95-button, .p95-inset, .p95-input, .p95-menu-list, .p95-progress, .p95-empty, .p95-alert, .p95-badge, .p95-sketch), .p95-input[aria-invalid="true"], .p95-prose :is(pre, kbd, details, .footnotes), :where(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="color"], [type="file"], [type="image"], [type="button"], [type="submit"], [type="reset"]), textarea, select), :where(fieldset, progress, dialog, pre, kbd, details:not(.p95-menu)) { border-image: none; border-color: ButtonText; }
  :is(.p95-toolbar, .p95-tabs), .p95-table :is(th, td), .p95-prose :is(th, td, h2, hr), :where(th, td, hr) { background-image: none; border-block-end: var(--p95-line) solid CanvasText; }
}
@media print {
  :where(.p95, :root, :scope) { color-scheme: light; background: white; color: black; }
  .p95-prose { max-inline-size: none; }
  .p95-window, .p95-panel { box-shadow: none; }
  .p95-prose pre, :where(pre) { white-space: pre-wrap; }
}
