/*!
 * bootstra-irix v0.1.0
 * A Bootstrap 5 theme inspired by the Indigo Magic desktop of early-90s
 * Silicon Graphics workstations: bevelled Motif chrome, italic menus,
 * thumbwheels, drop pockets, pink path fields and teal icon views.
 * Load AFTER bootstrap.min.css. MIT License.
 * Not affiliated with Silicon Graphics or HPE. IRIX is a trademark of its owner.
 */

/* ======================================================================
   1. Tokens and colour schemes
   ====================================================================== */
:root {
  /* IndigoMagic — the default lavender-blue scheme */
  --ix-desk: #50709c;
  --ix-chrome: #8a96b8;      /* window frames, panels, buttons */
  --ix-light: #c4cce4;       /* bevel highlight */
  --ix-light2: #a9b3d0;
  --ix-dark: #5a6488;        /* bevel shadow */
  --ix-darker: #262c40;      /* outlines */
  --ix-title: #7d8ab0;       /* inactive title bar */
  --ix-title-active: #9aa6cc;
  --ix-title-text: #10131c;
  --ix-text: #10131c;
  --ix-text-muted: #39405a;
  --ix-field: #d6a7aa;       /* editable text fields: SGI pink */
  --ix-field-text: #1d1416;
  --ix-view-teal: #6fae9f;   /* directory view: light grey-green */
  --ix-view-cadet: #5f8fae;  /* shelves, drop pockets */
  --ix-view-navajo: #ded3b4; /* search results */
  --ix-view-catalog: #4c8fae;
  --ix-view-text: #0d1414;
  --ix-sel: #283a7a;
  --ix-sel-text: #ffffff;
  --ix-toggle: #f2d64b;      /* radio fill, focus, highlights */
  --ix-check: #d4231b;       /* check marks, record */
  --ix-label: #d8d8d8;       /* desktop icon labels */
  --ix-term-bg: #0a1260;
  --ix-term-text: #dfe4ff;
  --ix-term-hi: #f4e400;
  --ix-meter-bg: #0b0b0b;
  --ix-ok: #24d924;
  --ix-info: #2b3fd1;
  --ix-warn: #e8b31c;
  --ix-bad: #d11d1d;

  --ix-font: "Helvetica", "Arimo", "Liberation Sans", "Arial", sans-serif;
  --ix-mono: "Screen", "Cousine", "Courier New", monospace;
  --ix-fs: 13px;
  --ix-icon-size: 48px;

  color-scheme: light;
}

[data-scheme="indigo"] {
  --ix-desk: #50709c; --ix-chrome: #8a96b8; --ix-light: #c4cce4; --ix-light2: #a9b3d0;
  --ix-dark: #5a6488; --ix-darker: #262c40; --ix-title: #7d8ab0; --ix-title-active: #9aa6cc;
  --ix-title-text: #10131c; --ix-text: #10131c; --ix-text-muted: #39405a;
  --ix-field: #d6a7aa; --ix-field-text: #1d1416; --ix-view-teal: #6fae9f; --ix-view-cadet: #5f8fae;
  --ix-view-navajo: #ded3b4; --ix-view-catalog: #4c8fae; --ix-view-text: #0d1414;
  --ix-sel: #283a7a; --ix-sel-text: #fff; --ix-label: #d8d8d8; color-scheme: light;
}
/* KeyWest — the neutral grey of later 6.x desktops */
[data-scheme="keywest"] {
  --ix-desk: #5b77a6; --ix-chrome: #c0c0c0; --ix-light: #f0f0f0; --ix-light2: #dadada;
  --ix-dark: #868686; --ix-darker: #2a2a2a; --ix-title: #b4b4b4; --ix-title-active: #d4d4d4;
  --ix-title-text: #111; --ix-text: #111; --ix-text-muted: #4a4a4a;
  --ix-field: #dcb6b6; --ix-view-teal: #9cc4bb; --ix-view-cadet: #6e9ab8; --ix-view-catalog: #6a8fc4;
  --ix-view-navajo: #e6dcc0; --ix-sel: #3a3a7a;
  --ix-field-text: #1d1416; --ix-view-text: #0d1414; --ix-sel-text: #fff; --ix-label: #d8d8d8; color-scheme: light;
}
/* Pacific — sea-green chrome */
[data-scheme="pacific"] {
  --ix-desk: #2e5c66; --ix-chrome: #7ea8a4; --ix-light: #bfdcd8; --ix-light2: #a3c8c4;
  --ix-dark: #4f7672; --ix-darker: #182a28; --ix-title: #6f9894; --ix-title-active: #93bcb8;
  --ix-title-text: #0b1716; --ix-text: #0b1716; --ix-text-muted: #2c4644;
  --ix-field: #dcb0a4; --ix-view-teal: #a7c9a0; --ix-view-cadet: #4f8aa0; --ix-view-catalog: #3f7f95;
  --ix-view-navajo: #e2d6b2; --ix-sel: #1d4b58;
  --ix-field-text: #1d1416; --ix-view-text: #0d1414; --ix-sel-text: #fff; --ix-label: #d8d8d8; color-scheme: light;
}
/* Mendocino — warm clay and olive */
[data-scheme="mendocino"] {
  --ix-desk: #5c5440; --ix-chrome: #b4a68a; --ix-light: #e4d9c2; --ix-light2: #cfc2a8;
  --ix-dark: #7d715a; --ix-darker: #2d271c; --ix-title: #a4967a; --ix-title-active: #c6b896;
  --ix-title-text: #1c170e; --ix-text: #1c170e; --ix-text-muted: #4b4232;
  --ix-field: #d9a99a; --ix-view-teal: #a9b98e; --ix-view-cadet: #7c8f6a; --ix-view-catalog: #6f8a74;
  --ix-view-navajo: #eadfc2; --ix-sel: #5a3a22;
  --ix-field-text: #1d1416; --ix-view-text: #0d1414; --ix-sel-text: #fff; --ix-label: #d8d8d8; color-scheme: light;
}
/* Potrero — dark chrome, khaki title bars, violet catalog. Also the dark-mode default. */
[data-scheme="potrero"],
:root[data-theme="dark"]:not([data-scheme]) {
  --ix-desk: #1d2130; --ix-chrome: #48484e; --ix-light: #78787f; --ix-light2: #626268;
  --ix-dark: #2b2b2f; --ix-darker: #0c0c0e; --ix-title: #b9b49a; --ix-title-active: #d7d2b8;
  --ix-title-text: #121210; --ix-text: #ecebe6; --ix-text-muted: #b5b4ad;
  --ix-field: #b98d93; --ix-field-text: #140d0e;
  --ix-view-teal: #3f6e66; --ix-view-cadet: #3b5c7a; --ix-view-catalog: #57578a;
  --ix-view-navajo: #5f5848; --ix-view-text: #f1efe6; --ix-sel: #c9c3a2; --ix-sel-text: #121210;
  --ix-label: #b9b49a;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-scheme]) {
    --ix-desk: #1d2130; --ix-chrome: #48484e; --ix-light: #78787f; --ix-light2: #626268;
    --ix-dark: #2b2b2f; --ix-darker: #0c0c0e; --ix-title: #b9b49a; --ix-title-active: #d7d2b8;
    --ix-title-text: #121210; --ix-text: #ecebe6; --ix-text-muted: #b5b4ad;
    --ix-field: #b98d93; --ix-field-text: #140d0e;
    --ix-view-teal: #3f6e66; --ix-view-cadet: #3b5c7a; --ix-view-catalog: #57578a;
    --ix-view-navajo: #5f5848; --ix-view-text: #f1efe6; --ix-sel: #c9c3a2; --ix-sel-text: #121210;
    --ix-label: #b9b49a;
    color-scheme: dark;
  }
}

/* Bootstrap variable bridge */
:root, [data-scheme] {
  /* Bevel recipes */
  --ix-raise: inset 1px 1px 0 var(--ix-light), inset -1px -1px 0 var(--ix-dark);
  --ix-raise2: inset 1px 1px 0 var(--ix-light), inset -1px -1px 0 var(--ix-darker), inset 2px 2px 0 var(--ix-light2), inset -2px -2px 0 var(--ix-dark);
  --ix-sink: inset 1px 1px 0 var(--ix-dark), inset -1px -1px 0 var(--ix-light);
  --ix-sink2: inset 1px 1px 0 var(--ix-darker), inset -1px -1px 0 var(--ix-light), inset 2px 2px 0 var(--ix-dark), inset -2px -2px 0 var(--ix-light2);
  --bs-body-font-family: var(--ix-font);
  --bs-body-font-size: var(--ix-fs);
  --bs-body-color: var(--ix-text);
  --bs-body-bg: var(--ix-desk);
  --bs-border-color: var(--ix-darker);
  --bs-border-radius: 0; --bs-border-radius-sm: 0; --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0; --bs-border-radius-xxl: 0; --bs-border-radius-pill: 0;
  --bs-link-color: var(--ix-sel); --bs-link-hover-color: var(--ix-darker);
  --bs-emphasis-color: var(--ix-text);
  --bs-secondary-color: var(--ix-text-muted);
  --bs-focus-ring-color: var(--ix-toggle);
  --bs-box-shadow: none; --bs-box-shadow-sm: none; --bs-box-shadow-lg: none;
}

/* ======================================================================
   2. Base / desktop
   ====================================================================== */
.ix-desktop {
  background: var(--ix-desk);
  color: var(--ix-text);
  font-family: var(--ix-font);
  font-size: var(--ix-fs);
  min-height: 100%;
  -webkit-font-smoothing: none;
}
.ix-desktop--pattern {
  background-image:
    repeating-linear-gradient(45deg, rgb(255 255 255 / .05) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgb(0 0 0 / .06) 0 2px, transparent 2px 6px);
}
::selection { background: var(--ix-sel); color: var(--ix-sel-text); }
:focus-visible { outline: 1px dotted var(--ix-toggle) !important; outline-offset: 1px; }

/* Scrollbars: bevelled Motif look */
.ix-desktop, .ix-scroll { scrollbar-color: var(--ix-chrome) var(--ix-dark); }
.ix-scroll::-webkit-scrollbar, .ix-desktop ::-webkit-scrollbar { width: 16px; height: 16px; }
.ix-scroll::-webkit-scrollbar-track, .ix-desktop ::-webkit-scrollbar-track { background: var(--ix-dark); box-shadow: inset 1px 1px 0 var(--ix-darker); }
.ix-scroll::-webkit-scrollbar-thumb, .ix-desktop ::-webkit-scrollbar-thumb { background: var(--ix-chrome); box-shadow: var(--ix-raise2); }

/* ======================================================================
   3. Windows
   ====================================================================== */
.ix-window {
  position: relative;
  background: var(--ix-chrome);
  color: var(--ix-text);
  border: 1px solid var(--ix-darker);
  box-shadow: var(--ix-raise2);
  padding: 5px;
  display: flex; flex-direction: column;
  min-width: 0;
}
.ix-window + .ix-window { margin-top: 1rem; }
.ix-window.is-dragging { opacity: .92; }
.ix-window.is-max {
  position: fixed !important; inset: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px) 0;
  transform: none !important; z-index: 1080; margin: 0 !important;
}
.ix-window.is-shaded > :not(.ix-titlebar) { display: none !important; }

.ix-titlebar {
  display: flex; align-items: center; gap: 4px;
  min-height: 24px; padding: 2px;
  background: var(--ix-title);
  box-shadow: var(--ix-sink);
  color: var(--ix-title-text);
  user-select: none;
}
.ix-window.is-active > .ix-titlebar { background: var(--ix-title-active); }
.ix-title {
  flex: 1 1 auto; min-width: 0;
  font-style: italic; font-weight: 700; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 4px;
}
[data-ix-drag] > .ix-titlebar { cursor: move; }

/* Title-bar buttons: window menu (▬), iconify (▫), maximize (□) */
.ix-tbtn {
  flex: 0 0 auto; width: 20px; height: 20px; padding: 0;
  border: 0; background: var(--ix-chrome); box-shadow: var(--ix-raise);
  display: inline-grid; place-items: center; cursor: pointer;
}
.ix-tbtn:active { box-shadow: var(--ix-sink); }
.ix-tbtn::before { content: ""; display: block; box-shadow: var(--ix-raise); background: var(--ix-chrome); border: 1px solid var(--ix-darker); }
.ix-tbtn--menu::before { width: 12px; height: 4px; }
.ix-tbtn--min::before { width: 5px; height: 5px; }
.ix-tbtn--max::before { width: 12px; height: 12px; }

/* Menu bar: italic, bold, underlined mnemonics */
.ix-menubar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px;
  padding: 3px 4px; margin-top: 4px;
  box-shadow: var(--ix-raise);
}
.ix-menubar > a, .ix-menubar > button, .ix-menubar .ix-menu-item {
  font-style: italic; font-weight: 700; color: var(--ix-text);
  text-decoration: none; background: none; border: 0;
  padding: 2px 8px; line-height: 1.3;
}
.ix-menubar > a:hover, .ix-menubar > button:hover, .ix-menubar .show > .ix-menu-item,
.ix-menubar .ix-menu-item.show { box-shadow: var(--ix-raise); background: var(--ix-light2); }
.ix-menubar u, .ix-mn { text-decoration: underline; text-underline-offset: 2px; }
.ix-menubar .ix-menu-help { margin-left: auto; }

.ix-window-body { padding: 6px 4px 2px; flex: 1 1 auto; min-width: 0; }
.ix-statusline { font-size: 12px; padding: 4px 4px 0; color: var(--ix-text-muted); }

/* ======================================================================
   4. Directory / catalog views
   ====================================================================== */
.ix-viewframe { display: flex; gap: 4px; margin-top: 4px; min-height: 0; }
.ix-vtools {
  flex: 0 0 22px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 2px 0; box-shadow: var(--ix-sink); background: var(--ix-chrome);
}
.ix-vbtn {
  width: 18px; height: 18px; padding: 0; border: 0;
  background: var(--ix-chrome) center / 12px 12px no-repeat; box-shadow: var(--ix-raise);
}
.ix-vbtn.active, .ix-vbtn:active { box-shadow: var(--ix-sink); background-color: var(--ix-view-cadet); }
.ix-vbtn--icons { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 1h6v10H3z' fill='%23eee' stroke='%23222'/%3E%3Cpath d='M4 3h4M4 5h4' stroke='%23222'/%3E%3C/svg%3E"); }
.ix-vbtn--list { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 2h10M1 5h10M1 8h10M1 11h10' stroke='%23222'/%3E%3C/svg%3E"); }
.ix-vbtn--grid { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 2h4M7 2h4M1 5h4M7 5h4M1 8h4M7 8h4M1 11h4M7 11h4' stroke='%23222'/%3E%3C/svg%3E"); }
.ix-vbtn--face { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='5' fill='%23eee' stroke='%23222'/%3E%3Cpath d='M4 5h0M8 5h0' stroke='%23222' stroke-width='2'/%3E%3Cpath d='M3.5 8q2.5 2 5 0' fill='none' stroke='%23222'/%3E%3C/svg%3E"); }
.ix-vbtn--stop { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3h6v6H3z' fill='%23222'/%3E%3C/svg%3E"); }
.ix-vtools .ix-thumbwheel { margin-top: auto; }

.ix-view {
  flex: 1 1 auto; min-width: 0; min-height: 120px;
  color: var(--ix-view-text);
  box-shadow: var(--ix-sink2);
  padding: 10px 8px;
  overflow: auto;
}
.ix-view--teal { background: var(--ix-view-teal); }
.ix-view--cadet { background: var(--ix-view-cadet); }
.ix-view--navajo { background: var(--ix-view-navajo); }
.ix-view--catalog { background: var(--ix-view-catalog); }
.ix-view--chrome { background: var(--ix-chrome); color: var(--ix-text); }

.ix-icons {
  display: grid; gap: 10px 6px;
  grid-template-columns: repeat(auto-fill, minmax(calc(var(--ix-icon-size) + 46px), 1fr));
  list-style: none; margin: 0; padding: 0;
}
.ix-icon {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center; color: inherit; text-decoration: none;
  background: none; border: 0; padding: 2px; cursor: default; font: inherit;
  width: 100%;
}
.ix-icon > i, .ix-icon-img {
  display: block; width: var(--ix-icon-size); height: var(--ix-icon-size);
  background-position: center; background-size: contain; background-repeat: no-repeat;
}
.ix-icon > span { padding: 0 3px; line-height: 1.25; word-break: break-word; }
.ix-icon:hover > span { text-decoration: underline; }
.ix-icon.is-selected > span, .ix-icon:focus-visible > span { background: var(--ix-sel); color: var(--ix-sel-text); }
.ix-icon.is-selected > i { filter: brightness(.82) saturate(1.3); }
.ix-icons--list { grid-template-columns: 1fr; gap: 0; --ix-icon-size: 20px; }
.ix-icons--list .ix-icon { flex-direction: row; text-align: left; gap: 8px; }
.ix-icons--list .ix-icon > small { margin-left: auto; opacity: .75; font-family: var(--ix-mono); }

/* Icon set (isometric, Indigo-Magic flavoured, drawn from scratch) */
.ix-ico-folder { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M8 38 26 45 44 36 26 30Z' fill='%23000' fill-opacity='.28'/%3E%3Cpath d='M10 15 14 13 17 14 29 9 29 33 10 41Z' fill='%23c9c3aa' stroke='%23222'/%3E%3Cpath d='M13 18 32 11 32 35 13 42Z' fill='%23f2eedc' stroke='%23222'/%3E%3Cpath d='M15 19.5 30.5 13.5' stroke='%23fff'/%3E%3C/svg%3E"); }
.ix-ico-folder-open { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M8 38 26 45 44 36 26 30Z' fill='%23000' fill-opacity='.28'/%3E%3Cpath d='M10 15 14 13 17 14 29 9 29 33 10 41Z' fill='%23c9c3aa' stroke='%23222'/%3E%3Cpath d='M8 26 30 17 38 31 16 41Z' fill='%23f2eedc' stroke='%23222'/%3E%3C/svg%3E"); }
.ix-ico-file { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M7 37 24 44 42 36 25 29Z' fill='%23000' fill-opacity='.28'/%3E%3Cpath d='M14 10 27 4 31 6 31 30 14 37Z' fill='%23fff' stroke='%23222'/%3E%3Cpath d='M27 4 27 8 31 6Z' fill='%23bbb' stroke='%23222'/%3E%3Cpath d='M17 16 28 11M17 20 28 15M17 24 28 19M17 28 24 25' stroke='%237a8090'/%3E%3C/svg%3E"); }
.ix-ico-terminal { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M6 37 24 45 43 36 26 29Z' fill='%23000' fill-opacity='.28'/%3E%3Cpath d='M8 33 23 40 39 32 25 26Z' fill='%23d4d4d4' stroke='%23222'/%3E%3Cpath d='M14 10 29 4 29 27 14 33Z' fill='%23e9e9e9' stroke='%23222'/%3E%3Cpath d='M29 4 33 6 33 29 29 27Z' fill='%23949494' stroke='%23222'/%3E%3Cpath d='M16.5 15 26.5 10.8 26.5 24.5 16.5 28.7Z' fill='%23464646'/%3E%3Cpath d='M17 12.6 26 8.8' stroke='%23464646' stroke-width='2'/%3E%3C/svg%3E"); }
.ix-ico-app { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M6 37 24 45 43 36 26 29Z' fill='%23000' fill-opacity='.28'/%3E%3Cpath d='M8 33 23 40 39 32 25 26Z' fill='%23d4d4d4' stroke='%23222'/%3E%3Cpath d='M15 15 24 10.5 33 15 24 19.5Z' fill='%23ffd23a' stroke='%23222'/%3E%3Cpath d='M15 15 24 19.5 24 31 15 26.5Z' fill='%23d43a3a' stroke='%23222'/%3E%3Cpath d='M24 19.5 33 15 33 26.5 24 31Z' fill='%233a5ad4' stroke='%23222'/%3E%3C/svg%3E"); }
.ix-ico-media { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M6 37 24 45 43 36 26 29Z' fill='%23000' fill-opacity='.28'/%3E%3Cpath d='M8 33 23 40 39 32 25 26Z' fill='%23d4d4d4' stroke='%23222'/%3E%3Cpath d='M13 12 27 6 27 25 13 31Z' fill='%23f6f6f6' stroke='%23222'/%3E%3Cpath d='M15 16 25 11.8 25 22 15 26.2Z' fill='%23c22fa8'/%3E%3Ccircle cx='31' cy='20' r='6' fill='%2342c0e0' stroke='%23222'/%3E%3Ccircle cx='31' cy='20' r='1.5' fill='%23222'/%3E%3C/svg%3E"); }
.ix-ico-dumpster { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M6 38 26 45 44 36 26 31Z' fill='%23000' fill-opacity='.28'/%3E%3Cpath d='M10 20 26 26 26 41 10 35Z' fill='%23c9cfc9' stroke='%23222'/%3E%3Cpath d='M26 26 39 20 39 35 26 41Z' fill='%23838d83' stroke='%23222'/%3E%3Cpath d='M10 20 23 14 39 20 26 26Z' fill='%234fa8a0' stroke='%23222'/%3E%3Cpath d='M10 20 14 9 29 3 23 14Z' fill='%23e5e8e5' stroke='%23222'/%3E%3Cpath d='M15 31h7' stroke='%23222'/%3E%3C/svg%3E"); }
.ix-ico-cdrom { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M6 37 24 45 43 36 26 29Z' fill='%23000' fill-opacity='.28'/%3E%3Cpath d='M8 28 25 21 40 27 23 35Z' fill='%23e2e2e2' stroke='%23222'/%3E%3Cpath d='M8 28 23 35 23 40 8 33Z' fill='%23a8a8a8' stroke='%23222'/%3E%3Cpath d='M23 35 40 27 40 32 23 40Z' fill='%23787878' stroke='%23222'/%3E%3Cellipse cx='24' cy='16' rx='11' ry='6' fill='%23d8e8f0' stroke='%23222'/%3E%3Cellipse cx='24' cy='16' rx='2.5' ry='1.4' fill='%23222'/%3E%3C/svg%3E"); }
.ix-ico-mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M6 37 24 45 43 36 26 29Z' fill='%23000' fill-opacity='.28'/%3E%3Cpath d='M8 22 32 12 40 30 16 40Z' fill='%23f4f4f0' stroke='%23222'/%3E%3Cpath d='M8 22 26 28 32 12' fill='none' stroke='%23222'/%3E%3C/svg%3E"); }
.ix-ico-clock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M6 37 24 45 43 36 26 29Z' fill='%23000' fill-opacity='.28'/%3E%3Cpath d='M12 8 30 2 30 28 12 34Z' fill='%23383848' stroke='%23222'/%3E%3Cpath d='M30 2 34 4 34 30 30 28Z' fill='%23666' stroke='%23222'/%3E%3Cpath d='M21 18 21 9M21 18 27 20' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); }

/* ======================================================================
   5. Thumbwheel (the signature control)
   ====================================================================== */
.ix-thumbwheel {
  --ix-wheel-pos: 0px;
  position: relative; flex: 0 0 auto;
  width: 16px; height: 118px; padding: 3px;
  background: var(--ix-chrome); box-shadow: var(--ix-sink2);
  cursor: ns-resize; touch-action: none; outline-offset: 2px;
}
.ix-thumbwheel::before {
  content: ""; position: absolute; inset: 3px;
  background:
    linear-gradient(to bottom, rgb(0 0 0 / .65), transparent 22%, transparent 78%, rgb(0 0 0 / .65)),
    repeating-linear-gradient(to bottom, var(--ix-light) 0 1px, var(--ix-chrome) 1px 4px, var(--ix-darker) 4px 5px, var(--ix-dark) 5px 7px);
  background-position: 0 0, 0 var(--ix-wheel-pos);
  box-shadow: inset 0 0 0 1px var(--ix-darker);
}
.ix-thumbwheel--h { width: 118px; height: 16px; cursor: ew-resize; }
.ix-thumbwheel--h::before {
  background:
    linear-gradient(to right, rgb(0 0 0 / .65), transparent 22%, transparent 78%, rgb(0 0 0 / .65)),
    repeating-linear-gradient(to right, var(--ix-light) 0 1px, var(--ix-chrome) 1px 4px, var(--ix-darker) 4px 5px, var(--ix-dark) 5px 7px);
  background-position: 0 0, var(--ix-wheel-pos) 0;
}

/* ======================================================================
   6. Path bar, drop pocket, refresh
   ====================================================================== */
.ix-pathbar { display: flex; gap: 4px; align-items: stretch; margin-top: 4px; }
.ix-droppocket {
  flex: 0 0 40px; height: 40px; padding: 3px;
  background: var(--ix-view-cadet); box-shadow: var(--ix-sink2);
  display: grid; place-items: center; border: 0;
}
.ix-droppocket > i { width: 32px; height: 32px; display: block; background-position: center; background-size: contain; background-repeat: no-repeat; }
.ix-path { flex: 1 1 auto; min-width: 0; position: relative; padding-top: 7px; }
.ix-path::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: var(--ix-chrome); box-shadow: var(--ix-sink);
}
.ix-path::after {
  content: ""; position: absolute; left: 2px; top: 1px; width: var(--ix-path-depth, 12%); height: 4px;
  background: repeating-linear-gradient(to right, var(--ix-darker) 0 1px, var(--ix-light) 1px 2px, transparent 2px 14px);
}
.ix-path .form-control { height: 100%; font-family: var(--ix-font); }
.ix-refresh {
  flex: 0 0 40px; border: 0; background: var(--ix-chrome); box-shadow: var(--ix-raise2);
  display: grid; place-items: center; padding: 0;
}
.ix-refresh::before {
  content: ""; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 10a7 7 0 0 1 12.5-3.5L15 9h7V2l-2.5 2.5A10 10 0 0 0 2 10z' fill='%23111'/%3E%3Cpath d='M19 14a7 7 0 0 1-12.5 3.5L9 15H2v7l2.5-2.5A10 10 0 0 0 22 14z' fill='%23111'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ix-refresh:active { box-shadow: var(--ix-sink2); }

/* ======================================================================
   7. Bottom catalog tabs (slanted) — use with .nav.ix-tabs
   ====================================================================== */
.ix-tabs {
  display: flex; flex-wrap: nowrap; gap: 0; overflow-x: auto;
  padding: 0 4px 2px 8px; margin: 0; list-style: none; border: 0 !important;
  scrollbar-width: none;
}
.ix-tabs::-webkit-scrollbar { display: none; }
.ix-tabs::after {
  content: ""; flex: 0 0 34px; margin-left: 2px;
  background: repeating-linear-gradient(115deg, transparent 0 4px, var(--ix-darker) 4px 5px, var(--ix-light) 5px 6px, transparent 6px 8px);
}
.ix-tabs .nav-link, .ix-tab {
  position: relative; flex: 0 0 auto; margin-left: -6px;
  padding: 3px 16px 4px; border: 0 !important; border-radius: 0 !important;
  font-weight: 700; color: var(--ix-text) !important; white-space: nowrap;
  background: var(--ix-darker) !important;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 9px 100%);
  isolation: isolate;
}
.ix-tabs .nav-link::before, .ix-tab::before {
  content: ""; position: absolute; inset: 0 1px 1px; z-index: -1;
  background: linear-gradient(to bottom, var(--ix-chrome), var(--ix-chrome) 70%, var(--ix-light2));
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 9px 100%);
}
.ix-tabs .nav-link.active, .ix-tab.active { z-index: 2; }
.ix-tabs .nav-link.active::before, .ix-tab.active::before { background: var(--tab-face, var(--ix-view-catalog)); }
.ix-tabs--teal { --tab-face: var(--ix-view-teal); }
.ix-tabs--navajo { --tab-face: var(--ix-view-navajo); }
.ix-tabs .nav-item:first-child .nav-link { margin-left: 0; }

/* ======================================================================
   8. Toolchest + desktop icons
   ====================================================================== */
.ix-toolchest {
  width: 150px; background: var(--ix-chrome);
  border: 1px solid var(--ix-darker); box-shadow: var(--ix-raise2); padding: 3px;
}
.ix-toolchest-title { font-style: italic; font-weight: 700; padding: 1px 6px; background: var(--ix-title-active); box-shadow: var(--ix-sink); }
.ix-toolchest .dropdown-toggle, .ix-toolchest-item {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  margin-top: 2px; padding: 3px 6px; border: 0; background: var(--ix-chrome); box-shadow: var(--ix-raise);
  font-style: italic; font-weight: 700; color: var(--ix-text); text-align: left;
}
.ix-toolchest .dropdown-toggle::after, .ix-toolchest-item::after {
  content: ""; border: 1px solid var(--ix-darker); width: 9px; height: 13px; margin: 0;
  background: var(--ix-chrome); box-shadow: var(--ix-raise); vertical-align: 0;
}
.ix-toolchest .dropdown-toggle.show { box-shadow: var(--ix-sink); }
.ix-toolchest .dropdown-menu { margin-left: 4px !important; }

.ix-desk-icon {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  width: 92px; text-decoration: none; color: var(--ix-darker); background: none; border: 0; padding: 0;
}
.ix-desk-icon > i { width: 52px; height: 52px; display: block; background-position: center; background-size: contain; background-repeat: no-repeat; }
.ix-desk-icon > span { background: var(--ix-label); padding: 0 4px; font-size: 13px; color: #111; }
.ix-desk-icon.is-selected > span, .ix-desk-icon:focus-visible > span { background: var(--ix-sel); color: var(--ix-sel-text); }

/* ======================================================================
   9. Buttons
   ====================================================================== */
.btn {
  --bs-btn-padding-x: 14px; --bs-btn-padding-y: 3px;
  --bs-btn-font-size: var(--ix-fs); --bs-btn-font-weight: 400;
  --bs-btn-color: var(--ix-text); --bs-btn-bg: var(--ix-chrome);
  --bs-btn-border-width: 0; --bs-btn-hover-color: var(--ix-text); --bs-btn-hover-bg: var(--ix-chrome);
  --bs-btn-active-color: var(--ix-text); --bs-btn-active-bg: var(--ix-chrome);
  --bs-btn-disabled-color: var(--ix-light); --bs-btn-disabled-bg: var(--ix-chrome); --bs-btn-disabled-opacity: 1;
  --bs-btn-focus-box-shadow: none;
  border-radius: 0; min-width: 72px;
  box-shadow: var(--ix-raise2); line-height: 1.5;
}
.btn:hover { background-color: var(--ix-light2); }
.btn:active, .btn.active, .btn-check:checked + .btn { box-shadow: var(--ix-sink2) !important; background-color: var(--ix-dark) !important; }
.btn:disabled, .btn.disabled { text-shadow: 1px 1px 0 var(--ix-light2); color: var(--ix-dark); }
/* Default (Enter) button: extra sunken ring, the Motif way */
.btn-primary, .btn-default {
  outline: 1px solid var(--ix-darker); outline-offset: 2px; margin: 3px;
  font-weight: 700;
}
.btn-danger { --bs-btn-color: #fff; --bs-btn-bg: #a8312c; --bs-btn-hover-bg: #c03a34; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #7e2420; }
.btn-success { --bs-btn-color: #0b1a0b; --bs-btn-bg: #6fb86a; --bs-btn-hover-bg: #84cc7f; --bs-btn-hover-color: #0b1a0b; }
.btn-warning { --bs-btn-color: #1a1404; --bs-btn-bg: var(--ix-toggle); --bs-btn-hover-bg: #f7e27a; --bs-btn-hover-color: #1a1404; }
.btn-sm { --bs-btn-padding-x: 8px; --bs-btn-padding-y: 1px; min-width: 0; }
.btn-lg { --bs-btn-padding-x: 22px; --bs-btn-padding-y: 6px; --bs-btn-font-size: 15px; }
.btn-link { box-shadow: none; min-width: 0; color: var(--ix-sel); text-decoration: underline; }
.btn-close { filter: none; opacity: 1; background-color: var(--ix-chrome); box-shadow: var(--ix-raise); border-radius: 0; }
.ix-btnrow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-evenly; padding: 8px 0 2px; }
.btn-group > .btn { margin: 0; outline: 0; }

/* Icon tool buttons (media transport, etc.) */
.ix-iconbtn {
  width: 26px; height: 24px; padding: 0; border: 0; display: inline-grid; place-items: center;
  background: var(--ix-chrome); box-shadow: var(--ix-raise2); color: var(--ix-text); font-size: 11px;
}
.ix-iconbtn:active, .ix-iconbtn.active { box-shadow: var(--ix-sink2); }
.ix-iconbtn--rec::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ix-check); box-shadow: inset 0 0 0 1px #000; }

/* ======================================================================
   10. Forms
   ====================================================================== */
.form-label, .col-form-label { font-weight: 700; margin-bottom: 2px; }
.form-text { color: var(--ix-text-muted); font-size: 12px; }
.form-control {
  font-size: var(--ix-fs); color: var(--ix-field-text); background-color: var(--ix-field);
  border: 0; border-radius: 0; box-shadow: var(--ix-sink2); padding: 4px 6px;
}
.form-control:focus { color: var(--ix-field-text); background-color: var(--ix-field); box-shadow: var(--ix-sink2), inset 0 0 0 3px var(--ix-toggle); }
.form-control::placeholder { color: color-mix(in srgb, var(--ix-field-text) 55%, transparent); font-style: italic; }
.form-control:disabled, .form-control[readonly] { background-color: var(--ix-chrome); color: var(--ix-text); }
.form-control-plaintext { color: var(--ix-text); }
textarea.form-control { font-family: var(--ix-mono); }

/* Option menu: raised button with the little dash indicator */
.form-select {
  font-size: var(--ix-fs); font-style: italic; color: var(--ix-text);
  background-color: var(--ix-chrome);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'%3E%3Crect x='.5' y='1.5' width='15' height='5' fill='%23d0d0d0' stroke='%23111'/%3E%3Cpath d='M1.5 2.5h13' stroke='%23fff'/%3E%3C/svg%3E");
  background-size: 16px 8px; background-position: right 8px center;
  border: 0; border-radius: 0; box-shadow: var(--ix-raise2); padding: 3px 34px 3px 10px;
}
.form-select:focus { box-shadow: var(--ix-raise2), 0 0 0 1px var(--ix-toggle); }
.form-select option { font-style: normal; background: var(--ix-chrome); color: var(--ix-text); }

/* Check box: sunken square, red tick. Radio: Motif diamond. */
.form-check-input {
  width: 15px; height: 15px; margin-top: .15em;
  border: 0; border-radius: 0 !important;
  background-color: var(--ix-chrome); box-shadow: var(--ix-sink2);
}
.form-check-input:focus { box-shadow: var(--ix-sink2), 0 0 0 1px var(--ix-toggle); border: 0; }
.form-check-input:checked { background-color: var(--ix-light); }
.form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5 6.5 13 15 1' fill='none' stroke='%23d4231b' stroke-width='3'/%3E%3C/svg%3E");
  background-size: 13px; background-position: 2px 0;
}
.form-check-input[type="radio"] { transform: rotate(45deg) scale(.86); margin-right: 2px; }
.form-check-input:checked[type="radio"] { background-image: none; background-color: var(--ix-toggle); box-shadow: inset 1px 1px 0 var(--ix-darker), inset -1px -1px 0 var(--ix-light), inset 2px 2px 0 var(--ix-dark); }
.form-check-label { cursor: pointer; }
.form-switch .form-check-input { width: 32px; transform: none; background-image: none; position: relative; }
.form-switch .form-check-input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 11px;
  background: var(--ix-chrome); box-shadow: var(--ix-raise2); transition: left .1s steps(2);
}
.form-switch .form-check-input:checked { background-color: var(--ix-ok); background-image: none; }
.form-switch .form-check-input:checked::after { left: 17px; }
@media (prefers-reduced-motion: reduce) { .form-switch .form-check-input::after { transition: none; } }

/* Range: Motif scale with bevelled thumb */
.form-range { height: 20px; }
.form-range::-webkit-slider-runnable-track { height: 8px; background: var(--ix-dark); border-radius: 0; box-shadow: inset 1px 1px 0 var(--ix-darker), inset -1px -1px 0 var(--ix-light); }
.form-range::-moz-range-track { height: 8px; background: var(--ix-dark); border-radius: 0; box-shadow: inset 1px 1px 0 var(--ix-darker), inset -1px -1px 0 var(--ix-light); }
.form-range::-webkit-slider-thumb { width: 28px; height: 18px; margin-top: -5px; border-radius: 0; background: var(--ix-chrome); box-shadow: var(--ix-raise2), inset 13px 0 0 -12px var(--ix-darker); }
.form-range::-moz-range-thumb { width: 28px; height: 18px; border-radius: 0; border: 0; background: var(--ix-chrome); box-shadow: var(--ix-raise2), inset 13px 0 0 -12px var(--ix-darker); }
.form-range:focus::-webkit-slider-thumb { box-shadow: var(--ix-raise2), 0 0 0 1px var(--ix-toggle); }
.ix-vrange { writing-mode: vertical-lr; direction: rtl; width: 20px; height: 120px; }

.input-group-text { background: var(--ix-chrome); color: var(--ix-text); border: 0; border-radius: 0; box-shadow: var(--ix-raise); font-style: italic; }

/* Labelled group frame (Motif etched frame) */
.ix-frame {
  position: relative; margin: 14px 0 8px; padding: 14px 10px 10px;
  box-shadow: inset 1px 1px 0 var(--ix-dark), inset -1px -1px 0 var(--ix-light), inset 2px 2px 0 var(--ix-light), inset -2px -2px 0 var(--ix-dark);
}
.ix-frame > legend, .ix-frame-label {
  position: absolute; top: -9px; left: 10px; float: none; width: auto;
  font-size: var(--ix-fs); font-weight: 700; padding: 0 4px; margin: 0; background: var(--ix-chrome);
}

/* ======================================================================
   11. Bootstrap components
   ====================================================================== */
.card {
  --bs-card-bg: var(--ix-chrome); --bs-card-color: var(--ix-text); --bs-card-border-width: 0;
  --bs-card-cap-bg: var(--ix-title); --bs-card-cap-color: var(--ix-title-text);
  border: 1px solid var(--ix-darker); box-shadow: var(--ix-raise2); padding: 4px;
}
.card-header { font-style: italic; font-weight: 700; box-shadow: var(--ix-sink); padding: 3px 8px; }
.card-footer { background: transparent; border-top: 0; box-shadow: inset 0 1px 0 var(--ix-dark), inset 0 2px 0 var(--ix-light); }
.card-title { font-weight: 700; }

.dropdown-menu {
  --bs-dropdown-bg: var(--ix-chrome); --bs-dropdown-color: var(--ix-text); --bs-dropdown-border-width: 0;
  --bs-dropdown-link-color: var(--ix-text); --bs-dropdown-link-hover-bg: var(--ix-light2); --bs-dropdown-link-hover-color: var(--ix-text);
  --bs-dropdown-link-active-bg: var(--ix-sel); --bs-dropdown-link-active-color: var(--ix-sel-text);
  --bs-dropdown-padding-y: 3px; --bs-dropdown-item-padding-y: 2px; --bs-dropdown-font-size: var(--ix-fs);
  --bs-dropdown-divider-bg: var(--ix-dark);
  border: 1px solid var(--ix-darker); box-shadow: var(--ix-raise2), 4px 4px 0 rgb(0 0 0 / .35);
  min-width: 11rem;
}
.dropdown-item { font-style: italic; font-weight: 700; display: flex; justify-content: space-between; gap: 2rem; }
.dropdown-item:hover { box-shadow: var(--ix-raise); }
.dropdown-item kbd { all: unset; font-style: normal; font-weight: 400; opacity: .8; }
.dropdown-divider { border-top: 1px solid var(--ix-dark); box-shadow: 0 1px 0 var(--ix-light); }
.dropdown-header { color: var(--ix-text-muted); font-style: italic; }

.table {
  --bs-table-bg: var(--ix-view-navajo); --bs-table-color: var(--ix-view-text);
  --bs-table-border-color: color-mix(in srgb, var(--ix-view-text) 18%, transparent);
  --bs-table-striped-bg: color-mix(in srgb, var(--ix-view-text) 6%, transparent);
  --bs-table-hover-bg: color-mix(in srgb, var(--ix-sel) 22%, transparent);
  --bs-table-active-bg: var(--ix-sel); --bs-table-active-color: var(--ix-sel-text);
  font-size: var(--ix-fs); margin-bottom: 0;
}
.table > thead th { background: var(--ix-chrome); color: var(--ix-text); font-style: italic; box-shadow: var(--ix-raise); border-bottom: 0; white-space: nowrap; }
.table td.num, .table th.num { text-align: right; font-family: var(--ix-mono); }
.ix-table-wrap { box-shadow: var(--ix-sink2); padding: 2px; overflow-x: auto; background: var(--ix-view-navajo); }

.list-group {
  --bs-list-group-bg: transparent; --bs-list-group-color: inherit; --bs-list-group-border-width: 0;
  --bs-list-group-action-hover-bg: color-mix(in srgb, var(--ix-sel) 22%, transparent); --bs-list-group-action-hover-color: inherit;
  --bs-list-group-active-bg: var(--ix-sel); --bs-list-group-active-color: var(--ix-sel-text);
  --bs-list-group-item-padding-y: 2px; --bs-list-group-item-padding-x: 6px;
}
.ix-list { background: var(--ix-view-navajo); color: var(--ix-view-text); box-shadow: var(--ix-sink2); padding: 3px; max-height: 220px; overflow: auto; }

.progress, .ix-meter {
  --bs-progress-height: 16px; --bs-progress-bg: var(--ix-meter-bg); --bs-progress-bar-bg: var(--ix-ok);
  --bs-progress-border-radius: 0; --bs-progress-font-size: 11px; --bs-progress-bar-color: #000;
  box-shadow: inset 0 0 0 1px var(--ix-darker), var(--ix-sink2); padding: 2px;
}
.progress-bar { transition: width .25s steps(4); }
.progress-bar.bg-info { background-color: var(--ix-info) !important; color: #fff; }
.progress-bar.bg-danger { background-color: var(--ix-bad) !important; }
.progress-bar.bg-warning { background-color: var(--ix-warn) !important; }
.progress-bar.bg-success { background-color: var(--ix-ok) !important; }
@media (prefers-reduced-motion: reduce) { .progress-bar { transition: none; } }

.badge { border-radius: 0; font-weight: 700; font-size: 11px; box-shadow: var(--ix-raise); color: #111; background: var(--ix-light2); padding: 3px 6px; }
.badge.text-bg-primary { background: var(--ix-sel) !important; color: var(--ix-sel-text) !important; }
.badge.text-bg-danger { background: var(--ix-bad) !important; color: #fff !important; }
.badge.text-bg-success { background: var(--ix-ok) !important; color: #031 !important; }
.badge.text-bg-warning { background: var(--ix-toggle) !important; color: #221 !important; }

/* Alerts render as IRIX notifier dialogs with a glyph */
.alert {
  --bs-alert-bg: var(--ix-chrome); --bs-alert-color: var(--ix-text); --bs-alert-border-color: var(--ix-darker);
  --bs-alert-padding-y: 10px; --bs-alert-padding-x: 12px;
  border-radius: 0; box-shadow: var(--ix-raise2);
  display: flex; gap: 12px; align-items: flex-start;
}
.alert::before {
  content: "i"; flex: 0 0 34px; height: 34px; display: grid; place-items: center;
  font: italic 700 22px/1 Georgia, serif; color: #fff; background: var(--ix-info);
  border-radius: 50%; box-shadow: inset -2px -2px 0 rgb(0 0 0 / .35), inset 2px 2px 0 rgb(255 255 255 / .35);
}
.alert-warning::before { content: "!"; font-family: var(--ix-font); background: var(--ix-warn); color: #111; border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-top: 8px; box-shadow: none; }
.alert-danger::before { content: "\00d7"; font-family: var(--ix-font); font-style: normal; background: var(--ix-bad); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); border-radius: 0; box-shadow: none; }
.alert-success::before { content: "\2713"; font-family: var(--ix-font); font-style: normal; background: #2e8a2e; }
.alert-heading { font-size: 14px; font-weight: 700; }
.alert .alert-link { color: var(--ix-sel); }

.modal {
  --bs-modal-bg: var(--ix-chrome); --bs-modal-color: var(--ix-text); --bs-modal-border-width: 1px;
  --bs-modal-border-color: var(--ix-darker); --bs-modal-border-radius: 0; --bs-modal-header-border-width: 0;
  --bs-modal-footer-border-width: 0; --bs-modal-header-padding: 3px 4px; --bs-modal-padding: 12px;
}
.modal-content { box-shadow: var(--ix-raise2), 6px 6px 0 rgb(0 0 0 / .35); padding: 5px; }
.modal-header { background: var(--ix-title-active); color: var(--ix-title-text); box-shadow: var(--ix-sink); }
.modal-title { font-style: italic; font-weight: 700; font-size: 13px; }
.modal-footer { justify-content: space-evenly; box-shadow: inset 0 1px 0 var(--ix-dark), inset 0 2px 0 var(--ix-light); }
.modal-backdrop { --bs-backdrop-bg: #000; --bs-backdrop-opacity: .3; }

.nav-tabs:not(.ix-tabs) {
  --bs-nav-tabs-border-color: var(--ix-darker); --bs-nav-tabs-link-active-bg: var(--ix-chrome); --bs-nav-tabs-link-active-color: var(--ix-text);
  --bs-nav-link-color: var(--ix-text); --bs-nav-link-hover-color: var(--ix-text);
}
.nav-tabs:not(.ix-tabs) .nav-link { box-shadow: var(--ix-raise); background: var(--ix-light2); font-style: italic; font-weight: 700; margin-right: 2px; }
.nav-tabs:not(.ix-tabs) .nav-link.active { background: var(--ix-chrome); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--ix-sel); --bs-nav-link-color: var(--ix-text); }

.pagination {
  --bs-pagination-bg: var(--ix-chrome); --bs-pagination-color: var(--ix-text); --bs-pagination-border-width: 0;
  --bs-pagination-hover-bg: var(--ix-light2); --bs-pagination-hover-color: var(--ix-text);
  --bs-pagination-active-bg: var(--ix-sel); --bs-pagination-active-color: var(--ix-sel-text);
  --bs-pagination-focus-box-shadow: none; gap: 3px;
}
.page-link { box-shadow: var(--ix-raise2); font-weight: 700; }
.page-item.active .page-link { box-shadow: var(--ix-sink2); }

.tooltip { --bs-tooltip-bg: #f6eeb8; --bs-tooltip-color: #111; --bs-tooltip-border-radius: 0; --bs-tooltip-opacity: 1; font-family: var(--ix-font); }
.tooltip-inner { border: 1px solid #111; }
.toast { --bs-toast-bg: var(--ix-chrome); --bs-toast-color: var(--ix-text); --bs-toast-border-color: var(--ix-darker); --bs-toast-header-bg: var(--ix-title-active); --bs-toast-header-color: var(--ix-title-text); --bs-toast-border-radius: 0; box-shadow: var(--ix-raise2); }
.toast-header { font-style: italic; font-weight: 700; }

hr, .ix-sep { border: 0; height: 2px; opacity: 1; margin: 8px 0; background: none; box-shadow: inset 0 1px 0 var(--ix-dark), inset 0 -1px 0 var(--ix-light); }
code, kbd, pre, samp { font-family: var(--ix-mono); }
code { color: inherit; background: color-mix(in srgb, var(--ix-darker) 14%, transparent); padding: 0 3px; }

/* ======================================================================
   12. Apps: terminal, clock, osview meters, panels
   ====================================================================== */
.ix-term {
  background: var(--ix-term-bg); color: var(--ix-term-text);
  font: 13px/1.35 var(--ix-mono); padding: 6px 8px; margin: 0;
  box-shadow: var(--ix-sink2); white-space: pre; overflow: auto; min-height: 140px;
}
.ix-term .hi { background: var(--ix-term-hi); color: #000; display: inline-block; min-width: 100%; }
.ix-term .cur { display: inline-block; width: .6em; height: 1.1em; vertical-align: -2px; background: var(--ix-term-text); animation: ix-blink 1s steps(1) infinite; }
@keyframes ix-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ix-term .cur { animation: none; } }

.ix-clock { width: 112px; aspect-ratio: 1; background: var(--ix-chrome); padding: 6px; box-shadow: var(--ix-raise2); border: 1px solid var(--ix-darker); }
.ix-clock svg { display: block; width: 100%; height: 100%; background: #2a2b34; box-shadow: var(--ix-sink2); }

.ix-osview { display: grid; gap: 4px; }
.ix-osview-label { font-weight: 700; font-style: italic; font-size: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.ix-osview-label b { font-weight: 700; font-style: normal; }
.ix-osview .progress { --bs-progress-height: 22px; }

.ix-vu { display: flex; gap: 6px; align-items: flex-end; height: 120px; padding: 4px; background: var(--ix-chrome); box-shadow: var(--ix-sink2); }
.ix-vu-bar { width: 12px; height: 100%; position: relative; background: var(--ix-meter-bg); box-shadow: inset 0 0 0 1px var(--ix-darker); }
.ix-vu-bar::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 2px; height: calc(var(--level, 0) * 1% - 4px);
  background: linear-gradient(to top, var(--ix-ok) 0 65%, var(--ix-toggle) 65% 85%, var(--ix-bad) 85%) bottom / 100% 112px;
  -webkit-mask: repeating-linear-gradient(to top, #000 0 3px, transparent 3px 4px);
          mask: repeating-linear-gradient(to top, #000 0 3px, transparent 3px 4px);
}

/* Utility */
.ix-raised { box-shadow: var(--ix-raise2); background: var(--ix-chrome); }
.ix-sunken { box-shadow: var(--ix-sink2); }
.ix-italic-bold { font-style: italic; font-weight: 700; }
.ix-mono { font-family: var(--ix-mono); }
.text-ix-muted { color: var(--ix-text-muted) !important; }

@media (max-width: 575.98px) {
  :root { --ix-fs: 14px; --ix-icon-size: 40px; }
  .ix-window { padding: 4px; }
  .ix-thumbwheel:not(.ix-thumbwheel--h) { height: 90px; }
}
.progress-stacked > .progress { box-shadow: none; padding: 0; }
.ix-icons:not(.ix-icons--list) .ix-icon > small { display: none; }
.ix-osview-key { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 400; }
.ix-osview-key::before { content: ""; width: 10px; height: 10px; background: var(--k, var(--ix-ok)); box-shadow: inset 0 0 0 1px #000; }
/* Reset UA button colour (iOS paints buttons blue) without outranking Bootstrap */
:where(.ix-desktop) button { color: inherit; }

/* Compact (column) icon view */
.ix-icons--compact { --ix-icon-size: 22px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 10px; }
.ix-icons--compact .ix-icon { flex-direction: row; text-align: left; gap: 6px; }
.ix-icon[hidden] { display: none !important; }

/* Find-an-icon bar inside a view */
.ix-findbar {
  position: sticky; top: -10px; z-index: 2; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: -10px -8px 10px; padding: 4px 6px; background: var(--ix-chrome); color: var(--ix-text); box-shadow: var(--ix-raise);
}
.ix-findbar label { font-style: italic; font-weight: 700; }
.ix-findbar .form-control { flex: 1 1 140px; max-width: 260px; padding: 2px 6px; }
.ix-findbar-count { font-size: 12px; color: var(--ix-text-muted); }

/* Vertical tool buttons need a pressed state you can see */
.ix-vbtn { cursor: pointer; }
.ix-vbtn[data-ix-find].active { background-color: var(--ix-toggle); }

/* Dropdowns always float above neighbouring windows */
.ix-window .dropdown-menu, [data-ix-layer] .dropdown-menu { z-index: 1050; }

.ix-ico-printer { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M6 37 24 45 43 36 26 29Z' fill='%23000' fill-opacity='.28'/%3E%3Cpath d='M15 14 29 8 33 10 19 16Z' fill='%23fff' stroke='%23222'/%3E%3Cpath d='M15 14 19 16 19 22 15 20Z' fill='%23fff' stroke='%23222'/%3E%3Cpath d='M8 22 26 15 40 21 22 29Z' fill='%23e0e0e0' stroke='%23222'/%3E%3Cpath d='M8 22 22 29 22 38 8 31Z' fill='%23b4b4b4' stroke='%23222'/%3E%3Cpath d='M22 29 40 21 40 30 22 38Z' fill='%23848484' stroke='%23222'/%3E%3Cpath d='M11 28 19 32' stroke='%2333c' stroke-width='2'/%3E%3C/svg%3E"); }
.ix-ico-disk { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M6 37 24 45 43 36 26 29Z' fill='%23000' fill-opacity='.28'/%3E%3Cpath d='M8 22 26 15 40 21 22 28Z' fill='%23d8d8d8' stroke='%23222'/%3E%3Cpath d='M8 22 22 28 22 37 8 31Z' fill='%23a0a0a0' stroke='%23222'/%3E%3Cpath d='M22 28 40 21 40 30 22 37Z' fill='%23707070' stroke='%23222'/%3E%3Cpath d='M11 27 18 30' stroke='%2322dd22' stroke-width='2'/%3E%3C/svg%3E"); }
