/* Network Hub website - replicas of the two in-game menus (menu.js builds the DOM).
   Every size here is the Roblox pixel value from the libraries themselves:
     .ob  Obsidian (Vendor/Obsidian/Library.lua) - the hub's games. Font: Enum.Font.Code = Inconsolata.
     .li  the Linoria fork in Network Games/network_*.lua - the standalone games. Font: Enum.Font.RobotoMono,
          which Roblox draws at 0.833 x TextSize (measured: "settings" at TextSize 16 is 64 px wide). */

@font-face { font-family: "RbxRobotoMono"; src: url(fonts/robotomono.ttf) format("truetype"); font-display: swap; }

.nh-menu, .nh-menu * { box-sizing: border-box; }
.nh-menu { position: relative; flex: none; text-align: left; user-select: none; -webkit-user-select: none; font-synthesis: none; -webkit-font-smoothing: antialiased; }
.nh-menu [hidden] { display: none !important; }
:where(.nh-menu) button { margin: 0; font: inherit; color: inherit; text-align: inherit; cursor: inherit; -webkit-tap-highlight-color: transparent; }
.nh-menu button:focus-visible, .nh-menu [tabindex]:focus-visible { outline: 1px dashed currentColor; outline-offset: 1px; border-radius: 2px; }
:where(.nh-menu) input { margin: 0; cursor: text; }
:where(.nh-menu) svg { display: block; flex: none; }

/* ============================== Obsidian ============================== */
.ob {
  --bg: #0f0f0f; --main: #191919; --accent: #7d55ff; --outline: #282828; --font: #ffffff; --red: #ff3232;
  --top: #0d0d0d; --content: #111111; --foot: #171717; --ph: #808080;
  width: 720px;
  height: 600px;
  border-radius: 4px;
  background: var(--top);
  box-shadow: 0 0 0 1px var(--outline), 0 0 0 1.5px #000;
  color: var(--font);
  font: 400 14px/14px "RbxCode", "Inconsolata", ui-monospace, monospace;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cpath d='M4 0h3v11H4zM0 4h11v3H0z'/%3E%3Cpath fill='%23fff' d='M5 1h1v9H5zM1 5h9v1H1z'/%3E%3C/svg%3E") 5 5, crosshair;
}
.ob .t15 { font-size: 15px; line-height: 15px; letter-spacing: .5px; }
/* frame lines: row 48 under the top bar, x = 216 sidebar edge (through the top bar), row 579 over the footer */
.ob::before { content: ""; position: absolute; left: 216px; top: 0; width: 1px; height: 579px; background: var(--outline); z-index: 2; }
.ob-top { position: absolute; left: 0; top: 0; width: 100%; height: 49px; border-bottom: 1px solid var(--outline); }
.ob-brand { position: absolute; left: 0; top: 0; width: 216px; height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ob-logo { display: block; width: 70px; height: 50px; flex: none; }
.ob-logo img { display: block; width: 70px; height: 50px; }
.ob-title { font-size: 20px; line-height: 20px; white-space: nowrap; }
.ob-move { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; color: var(--outline); }
.ob-body { position: absolute; left: 0; top: 49px; width: 100%; height: 530px; display: flex; }
.ob-side { width: 216px; height: 100%; flex: none; overflow-y: auto; background: var(--bg); scrollbar-width: none; }
.ob-side::-webkit-scrollbar, .ob-col::-webkit-scrollbar { display: none; }
.ob-tab { display: flex; align-items: center; gap: 12px; width: 216px; height: 40px; padding: 11px 12px; border: 0; border-radius: 0; background: transparent; font-size: 16px; line-height: 18px; white-space: nowrap; }
.ob-tab-icon { width: 18px; height: 18px; color: var(--accent); }
.ob-tab > * { opacity: .5; transition: opacity .1s ease-out; }
.ob-tab:hover > * { opacity: .75; }
.ob-tab.is-on { background: var(--main); }
.ob-tab.is-on > * { opacity: 1; }
.ob-tab-text { overflow: hidden; text-overflow: ellipsis; }
.ob-main { position: relative; width: 503px; height: 100%; margin-left: 1px; padding: 0 6px; background: var(--content); }
.ob-page { display: flex; gap: 6px; height: 100%; }
.ob-col { width: calc(50% - 3px); height: 100%; overflow-y: auto; padding: 8px 2px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.ob-foot { position: absolute; left: 0; bottom: 0; width: 100%; height: 20px; border-radius: 0 0 4px 4px; background: var(--foot); }
.ob-foot-text { position: absolute; inset: 0; color: color-mix(in srgb, var(--font) 50%, transparent); font-size: 14px; line-height: 20px; text-align: center; white-space: nowrap; }
.ob-grip { position: absolute; right: 3px; bottom: 2px; width: 16px; height: 16px; color: color-mix(in srgb, var(--font) 50%, transparent); }

/* groupbox: 34 px header, 1 px line, 7 px padding, 8 px between elements */
.ob-box { position: relative; flex: none; border-radius: 4px; background: var(--bg); box-shadow: 0 0 0 1px var(--outline), 0 0 0 1.5px #000; }
.ob-box-head { display: flex; align-items: center; width: 100%; height: 35px; padding: 0 0 0 12px; border: 0; border-bottom: 1px solid var(--outline); background: transparent; font-size: 15px; line-height: 15px; letter-spacing: .5px; }
.ob-box-icon { width: 22px; height: 22px; margin: 0 8px 0 -6px; color: var(--accent); }
.ob-box-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.ob-box-chev { width: 22px; height: 22px; margin-right: 6px; padding: 3px; color: #fff; transform: rotate(180deg); }
.ob-box.is-collapsed .ob-box-head { height: 34px; border-bottom: 0; }
.ob-box.is-collapsed .ob-box-chev { transform: none; }
.ob-box.is-collapsed > .ob-box-body { display: none; }
.ob-box-body, .ob-deps { display: flex; flex-direction: column; gap: 8px; }
.ob-box-body { padding: 7px; }
.ob-tb-tabs { display: flex; height: 34px; }
.ob-tb-tab { flex: 1 1 0; min-width: 0; height: 34px; border: 0; border-bottom: 1px solid var(--outline); background: var(--main); font-size: 15px; line-height: 15px; letter-spacing: .5px; text-align: center; color: color-mix(in srgb, var(--font) 50%, transparent); }
.ob-tb-tab:first-child { border-top-left-radius: 4px; }
.ob-tb-tab:last-child { border-top-right-radius: 4px; }
.ob-tb-tab.is-on { border-bottom-color: transparent; background: transparent; color: var(--font); }
.ob-tabbox > .ob-box-body { padding-top: 7px; }
.ob-tb-tab { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ob-tb-icon { color: var(--accent); }

/* rows */
.ob-row { display: flex; align-items: center; min-height: 18px; }
.ob-text { flex: 1; min-width: 0; overflow: visible; white-space: nowrap; }
.ob-addons { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; flex: none; }
.ob-addons:empty { display: none; }
.ob-gate { display: inline-block; width: 11px; height: 11px; margin: 0 0 1px 5px; vertical-align: middle; color: #f5c451; }

/* toggle: label at 60 % when off; 32 x 18 switch, 14 px knob */
.ob-toggle { height: 18px; }
.ob-toggle .ob-text { color: color-mix(in srgb, var(--font) 60%, transparent); transition: color .1s ease-out; }
.ob-toggle.is-on .ob-text { color: var(--font); }
.ob-toggle.is-risky .ob-text { color: var(--red); }
.ob-toggle .ob-addons { margin-right: 8px; }
.ob-switch { position: relative; width: 32px; height: 18px; flex: none; border-radius: 9px; background: var(--main); box-shadow: 0 0 0 1px var(--outline); }
.ob-switch i { position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--font); transition: left .1s ease-out; }
.ob-toggle.is-on .ob-switch { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ob-toggle.is-on .ob-switch i { left: 16px; }
.ob-check { display: grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; flex: none; border-radius: 2px; background: var(--main); box-shadow: 0 0 0 1px var(--outline); }
.ob-check svg { width: 14px; height: 14px; opacity: 0; transition: opacity .1s; }
.ob-toggle.is-on .ob-check svg { opacity: 1; }
.ob-toggle.is-disabled .ob-text { color: color-mix(in srgb, var(--font) 20%, transparent); }
.ob-toggle.is-disabled .ob-switch { opacity: .25; }
.ob-toggle.is-disabled .ob-switch i { background: var(--ph); }

/* slider: label, 4 px, 15 px bar; compact = bar only with "Text: value" */
.ob-slider { display: flex; flex-direction: column; gap: 4px; }
.ob-lbl { height: 14px; font-size: 14px; line-height: 14px; white-space: nowrap; overflow: hidden; }
.ob-bar { position: relative; height: 15px; border-radius: 2px; background: var(--main); box-shadow: 0 0 0 1px var(--outline); touch-action: none; }
.ob-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--accent); }
.ob-bar-text { position: absolute; inset: 0; line-height: 15px; text-align: center; white-space: nowrap; text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000, 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000; }
.ob-slider.is-disabled .ob-bar-text { opacity: .2; }
.ob-slider.is-disabled .ob-fill { background: var(--outline); }

/* fields: dropdown box, input box, button, key chip - 21 px, #191919, radius 2, 1 px stroke */
.ob-dd, .ob-input { display: flex; flex-direction: column; gap: 4px; }
.ob-field { display: flex; align-items: center; width: 100%; height: 21px; border: 0; border-radius: 2px; background: var(--main); box-shadow: 0 0 0 1px var(--outline); color: var(--font); font-size: 14px; line-height: 14px; }
.ob-dd-box { justify-content: space-between; gap: 4px; padding: 0 4px 0 8px; }
.ob-dd-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.ob-chev { width: 16px; height: 16px; opacity: .5; }
.ob-dd-box.is-open { border-radius: 2px 2px 0 0; }
.ob-dd-box.is-open .ob-chev { opacity: 1; transform: rotate(180deg); }
.ob-dd-search { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--font); font: inherit; outline: 0; }
.ob-dd-search::placeholder { color: var(--ph); opacity: 1; }
.ob-list.is-up { border-radius: 2px 2px 0 0; }
.ob-list { position: absolute; z-index: 10; max-height: 168px; overflow-y: auto; border-radius: 0 0 2px 2px; background: var(--bg); box-shadow: 0 0 0 1px var(--outline); scrollbar-width: thin; scrollbar-color: var(--outline) transparent; }
.ob-opt { display: flex; align-items: center; width: 100%; height: 21px; padding: 0 7px; border: 0; background: transparent; color: color-mix(in srgb, var(--font) 50%, transparent); font-size: 14px; line-height: 14px; white-space: nowrap; overflow: hidden; }
.ob-opt.is-on { background: var(--main); color: var(--font); }
.ob-opt.is-empty { color: var(--ph); font-style: italic; }
.ob-input .ob-field { padding: 4px 8px 3px; outline: 0; font-family: inherit; }
.ob-input .ob-field::placeholder { color: var(--ph); opacity: 1; }
.ob-btns { display: flex; gap: 9px; }
.ob-btn { flex: 1 1 0; min-width: 0; height: 21px; padding: 0 4px; border: 0; border-radius: 2px; background: var(--main); box-shadow: 0 0 0 1px var(--outline); color: color-mix(in srgb, var(--font) 60%, transparent); font-size: 14px; line-height: 14px; text-align: center; white-space: nowrap; overflow: hidden; transition: color .1s ease-out; }
.ob-btn:hover { color: var(--font); }
.ob-btn.is-risky { color: var(--red); }
.ob-btn.is-armed { color: var(--accent); }
.ob-btn:disabled { background: var(--bg); color: color-mix(in srgb, var(--font) 20%, transparent); }
.ob-label { min-height: 18px; }
.ob-label.is-wrap .ob-text { white-space: pre-line; line-height: 14px; padding: 2px 0; }
.ob-divider { position: relative; height: 6px; }
.ob-divider::before { content: ""; position: absolute; left: -1px; right: -1px; top: 1px; height: 4px; background: var(--main); border: 1px solid var(--outline); }
.ob-kp { min-width: 16px; height: 18px; padding: 0 4.5px; border: 0; border-radius: 2px; background: var(--main); box-shadow: 0 0 0 1px var(--outline); font-size: 14px; line-height: 18px; text-align: center; white-space: nowrap; }
.ob-kp.is-picking { width: 29px; padding: 0; }
.ob-cp { width: 18px; height: 18px; flex: none; padding: 0; border: 0; border-radius: 2px; background: var(--c, #fff); box-shadow: 0 0 0 1px var(--cs, #808080); }
.ob-panel { display: grid; place-items: center; min-height: 60px; border-radius: 2px; background: var(--main); box-shadow: 0 0 0 1px var(--outline); color: var(--ph); text-align: center; }
.ob-panel-help { padding: 8px; line-height: 16px; }

/* colour picker popup: 234 wide, 200 x 200 SV square, 16 px hue strip */
.ob-cpop { position: absolute; z-index: 12; width: 234px; padding: 6px; border-radius: 0 4px 4px 4px; background: var(--bg); box-shadow: 0 0 0 1px var(--outline), 0 0 0 1.5px #000; }
.ob-cpop-title { display: none; }
.ob-cpop-area { display: flex; gap: 6px; }
.ob-sv { position: relative; width: 200px; height: 200px; background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--hue, red)); touch-action: none; }
.ob-sv i { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #000; pointer-events: none; }
.ob-hue { position: relative; width: 16px; height: 200px; background: linear-gradient(red, #ff0, lime, cyan, blue, #f0f, red); touch-action: none; }
.ob-hue i { position: absolute; left: 0; right: 0; height: 1px; background: #fff; pointer-events: none; }
.ob-cpop-fields { display: flex; gap: 8px; margin-top: 6px; }
.ob-hex { flex: 1 1 0; min-width: 0; height: 20px; padding: 0 4px; text-align: center; outline: 0; font-family: inherit; }

/* tooltip, notifications */
.ob-tip { position: absolute; z-index: 20; max-width: 300px; padding: 2px 4px; border-radius: 2px; background: var(--bg); box-shadow: 0 0 0 1px var(--outline); font-size: 14px; line-height: 14px; text-align: center; white-space: pre-line; pointer-events: none; }
.ob-notifs, .li-notifs { position: absolute; z-index: 30; display: flex; flex-direction: column; pointer-events: none; }
.ob-notifs { top: 6px; right: 6px; width: min(300px, calc(100% - 12px)); align-items: flex-end; gap: 8px; }
.ob-notif {
  max-width: 100%;
  padding: 8px;
  border-radius: 4px;
  background: var(--main, #191919);
  box-shadow: 0 0 0 1px var(--outline, #282828), 0 0 0 1.5px #000;
  color: var(--font, #fff);
  font: 400 14px/14px "RbxCode", "Inconsolata", ui-monospace, monospace;
  animation: obIn .25s ease-out both;
}
.ob-notif.is-out { animation: obOut .25s ease-in both; }
.ob-notif-title { font-size: 15px; line-height: 15px; letter-spacing: .5px; }
.ob-notif-text { margin-top: 4px; max-width: 276px; line-height: 15px; white-space: normal; }
.ob-notif-title + .ob-notif-text { margin-top: 4px; }
.ob-notif-timer { position: relative; height: 4px; margin-top: 7px; background: var(--bg, #0f0f0f); box-shadow: 0 0 0 1px var(--outline, #282828); }
.ob-notif-timer i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--accent, #7d55ff); animation: obTimer linear both; }
@keyframes obIn { from { transform: translateX(calc(100% + 8px)); } to { transform: none; } }
@keyframes obOut { to { transform: translateX(calc(100% + 8px)); } }
@keyframes obTimer { to { width: 0; } }

/* ============================== Linoria fork ============================== */
.li {
  --font: #ffffff; --main: #181818; --bg: #141414; --accent: #4777b6; --accent-d: #2f4f79; --outline: #1f1f1f; --risk: #e50000;
  --dim: #aaaaaa; --ph: #bebebe;
  --stroke: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000, 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000;
  width: 551px;
  height: 650px;
  padding-left: 1px;
  background: #000;
  color: var(--font);
  font: 400 11.667px/14px "RbxRobotoMono", "Roboto Mono", ui-monospace, monospace;
  text-shadow: var(--stroke);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19'%3E%3Cpath d='M0 0l18 7-7 4-4 7z'/%3E%3Cpath fill='%234777b6' d='M2.2 2.2l12.6 4.9-5 2.8-2.8 5z'/%3E%3C/svg%3E") 0 0, default;
}
.li .t13 { font-size: 10.833px; letter-spacing: -.5px; }
.li .t16 { font-size: 13.333px; line-height: 16px; }
.li-in { position: relative; width: 550px; height: 650px; background: var(--main); box-shadow: inset 0 0 0 1px var(--outline); }
.li-head { position: absolute; left: 0; top: 0; width: 100%; height: 25px; }
.li-title { position: absolute; inset: 0; font-size: 15px; line-height: 25px; text-align: center; white-space: nowrap; }
.li-ver { position: absolute; right: 8px; top: 0; color: var(--accent); font-size: 13.333px; line-height: 25px; white-space: nowrap; }
.li-grip { position: absolute; right: 0; bottom: 0; width: 25px; height: 25px; border-top-left-radius: 25px; background: color-mix(in srgb, var(--accent) 50%, transparent); z-index: 2; }
.li-frame { position: absolute; left: 8px; top: 25px; width: 534px; height: 617px; background: var(--bg); box-shadow: 0 0 0 1px var(--outline), inset 0 0 0 1px #000; }
.li-tabs { position: absolute; left: 8px; top: 9px; width: 508px; height: 21px; display: flex; gap: 8px; overflow: visible; }
.li-tab { position: relative; flex: none; height: 21px; padding: 0 6px; border: 0; background: var(--bg); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--outline); color: var(--dim); font-size: 13.333px; line-height: 20px; text-align: center; white-space: nowrap; }
.li-tabs.is-fresh .li-tab { color: var(--font); }
.li-tab.is-on { background: var(--main); color: var(--font); z-index: 4; }
.li-tab.is-on::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--accent); }
.li-pages { position: absolute; left: 8px; top: 38px; width: 518px; height: 570px; background: var(--main); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--outline); z-index: 3; }
.li-page { position: absolute; inset: 0; }
.li-col { position: absolute; top: 7px; width: 249px; height: 556px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none; }
.li-col::-webkit-scrollbar { display: none; }
.li-col:first-child { left: 7px; }
.li-col:last-child { left: 264px; }

/* groupbox: black ring, 2 px accent bar, centred 14 px title, items 239 wide from x 5 */
.li-box { position: relative; flex: none; width: 249px; padding: 21px 5px 3px; background: var(--bg); box-shadow: inset 0 0 0 1px #000; }
.li-box::before { content: ""; position: absolute; left: 1px; top: 1px; width: 247px; height: 2px; background: var(--accent); }
.li-box-head { position: absolute; left: 5px; top: 3px; width: 247px; height: 18px; line-height: 18px; text-align: center; white-space: nowrap; overflow: hidden; }
.li-box-body { padding-top: 3px; }
.li-tabbox::before { display: none; }
.li-tb-tabs { position: absolute; left: 1px; top: 1px; width: 247px; height: 18px; display: flex; }
.li-tb-tab { position: relative; flex: 1 1 0; min-width: 0; height: 18px; border: 0; background: var(--main); box-shadow: 0 0 0 1px #000; line-height: 18px; text-align: center; white-space: nowrap; overflow: hidden; }
.li-tb-tab.is-on { background: var(--bg); }
.li-tb-tab.is-on::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--accent); }
.li-tb-tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--bg); }

/* elements: each adds its box height plus its own spacer, like the library's AddBlank */
.li-row { display: flex; align-items: flex-start; }
.li-text { flex: 1; min-width: 0; overflow: visible; white-space: nowrap; }
.li-addons { position: relative; z-index: 1; display: flex; gap: 4px; flex: none; margin-right: 4px; }
.li-addons:empty { display: none; }
.li-gate { display: inline-block; width: 10px; height: 10px; margin-left: 5px; vertical-align: -1px; color: #f5c451; filter: drop-shadow(0 0 1px #000); }
.li-toggle { height: 13px; margin-bottom: 7px; line-height: 13px; }
.li-check { width: 13px; height: 13px; margin-right: 6px; flex: none; background: var(--main); box-shadow: inset 0 0 0 1px var(--outline), 0 0 0 1px #000; }
.li-toggle.is-on .li-check { background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-d), 0 0 0 1px #000; }
.li-toggle.is-risky .li-text { color: var(--risk); }
.li-slider { margin-bottom: 6px; }
.li-slider .li-lbl { height: 10px; margin-bottom: 3px; line-height: 8px; }
.li-lbl { white-space: nowrap; overflow: visible; }
.li-bar { position: relative; height: 13px; background: var(--main); box-shadow: inset 0 0 0 1px var(--outline), 0 0 0 1px #000; touch-action: none; }
.li-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); box-shadow: 0 0 0 1px var(--accent-d); transition: width .2s cubic-bezier(.25, .46, .45, .94); }
.li-bar-text { position: absolute; inset: 0; line-height: 13px; text-align: center; white-space: nowrap; }
.li-dd { margin-bottom: 5px; }
.li-dd .li-lbl { height: 10px; margin-bottom: 3px; line-height: 8px; }
.li-field { display: flex; align-items: center; width: 100%; height: 20px; border: 0; border-radius: 0; background: linear-gradient(var(--main), var(--bg)); box-shadow: inset 0 0 0 1px var(--outline), 0 0 0 1px #000; color: var(--font); font-size: 11.667px; line-height: 14px; }
.li-dd-box { position: relative; padding: 0 22px 0 5px; }
.li-dd-text { min-width: 0; max-width: 217px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-arrow { position: absolute; right: 4px; top: 3px; width: 14px; height: 14px; font: 700 12px/14px Montserrat, "Segoe UI", Arial, Helvetica, sans-serif; text-align: center; transition: transform .22s ease-out; }
.li-dd-box.is-open .li-arrow { transform: rotate(90deg); }
.li-list { position: absolute; z-index: 20; max-height: 161px; overflow-y: auto; background: var(--main); box-shadow: 0 0 0 1px #000; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.li-search { display: block; width: 100%; height: 21px; padding: 0 6px; border: 0; border-bottom: 1px solid var(--outline); background: var(--main); color: var(--font); font: inherit; text-shadow: none; outline: 0; }
.li-search::placeholder { color: var(--ph); opacity: 1; }
.li-opt { display: flex; align-items: center; width: 100%; height: 20px; padding: 0 6px; border: 0; border-bottom: 1px solid var(--outline); background: transparent; white-space: nowrap; overflow: hidden; }
.li-opt.is-on { color: var(--accent); }
.li-opt.is-empty { color: var(--dim); }
.li-input { display: block; margin-bottom: 5px; }
.li-input .li-lbl { display: block; height: 15px; margin-bottom: 1px; line-height: 15px; }
.li-input .li-field { padding: 0 7px; outline: 0; font-family: inherit; text-shadow: none; }
.li-input .li-field::placeholder { color: var(--ph); opacity: 1; }
.li-btns { display: flex; gap: 3px; margin-bottom: 5px; }
.li-btn { flex: 1 1 0; min-width: 0; height: 20px; padding: 0 4px; border: 0; background: linear-gradient(var(--main), var(--bg)); box-shadow: inset 0 0 0 1px var(--outline), 0 0 0 1px #000; line-height: 20px; text-align: center; white-space: nowrap; overflow: hidden; }
.li-btns .li-btn:first-child:not(:last-child) { flex-basis: 119.5px; flex-grow: 0; }
.li-btn.is-armed { color: var(--accent); }
.li-btn:hover, .li-field:hover, .li-dd-box:hover { box-shadow: inset 0 0 0 1px var(--outline), 0 0 0 1px var(--outline); }
.li-slider:hover .li-bar { box-shadow: inset 0 0 0 1px var(--outline), 0 0 0 1px var(--accent); }
.li-label { min-height: 15px; margin-bottom: 5px; line-height: 15px; }
.li-label.is-wrap .li-text, .li-info { white-space: pre-line; overflow-wrap: anywhere; }
.li-info { margin-bottom: 5px; line-height: 14px; }
.li-divider { height: 5px; margin: 2px 0 9px; background: var(--main); box-shadow: inset 0 1px var(--outline), inset 0 -1px var(--outline), 0 -1px #000, 0 1px #000; }
.li-kp { min-width: 28px; height: 15px; padding: 0 3px; border: 0; background: var(--bg); box-shadow: inset 0 0 0 1px var(--outline), 0 0 0 1px #000; font-size: 10.833px; line-height: 15px; letter-spacing: -.5px; text-align: center; white-space: nowrap; overflow: hidden; }
.li-kp.is-clip { max-width: 28px; text-overflow: clip; }
.li-kp.is-picking { min-width: 28px; }
.li-cp { width: 28px; height: 14px; padding: 0; border: 0; background: var(--c, #fff); box-shadow: inset 0 0 0 1px var(--cs, #555), 0 0 0 1px #000; }
.li-panel { position: relative; margin-bottom: 5px; padding: 3px 4px 1px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--outline), 0 0 0 1px #000; }
.li-panel-row { display: flex; align-items: flex-start; gap: 6px; min-height: 14px; margin-bottom: 2px; line-height: 14px; }
.li-panel-row.is-wrap .li-panel-text { white-space: pre-line; overflow-wrap: anywhere; }
.li-panel-help { margin-bottom: 2px; line-height: 14px; white-space: pre-line; }
.li-ph .li-panel-help { color: var(--dim); }
.li-panel-num { flex: none; min-width: 14px; }
.li-panel-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.li-panel-chips { display: flex; gap: 3px; flex: none; }
.li-panel-btn { display: inline-grid; place-items: center; min-width: 18px; height: 14px; padding: 0 5px; flex: none; background: var(--main); box-shadow: inset 0 0 0 1px var(--outline), 0 0 0 1px #000; font-size: 10.833px; line-height: 14px; letter-spacing: -.5px; }
.li-panel-btn:hover { box-shadow: inset 0 0 0 1px var(--outline), 0 0 0 1px var(--accent); }

/* colour picker popup: 230 x 253, 2 px accent bar, 200 x 200 square, 15 px hue bar */
.li-cpop { position: absolute; z-index: 21; width: 230px; padding: 25px 4px 5px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--outline), 0 0 0 1px #000; }
.li-cpop::before { content: ""; position: absolute; left: 1px; right: 1px; top: 1px; height: 2px; background: var(--accent); }
.li-cpop-title { position: absolute; left: 5px; top: 5px; line-height: 14px; }
.li-cpop-area { display: flex; gap: 4px; }
.li-sv { position: relative; width: 200px; height: 200px; background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--hue, red)); touch-action: none; }
.li-sv i { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #000; pointer-events: none; }
.li-hue { position: relative; width: 15px; height: 200px; background: linear-gradient(red, #ff0, lime, cyan, blue, #f0f, red); touch-action: none; }
.li-hue i { position: absolute; left: -1px; right: -1px; height: 2px; margin-top: -1px; background: #fff; box-shadow: 0 0 0 1px #000; pointer-events: none; }
.li-cpop-fields { display: flex; gap: 4px; margin-top: 3px; }
.li-hex { flex: 1 1 0; min-width: 0; padding: 0 5px; outline: 0; font-family: inherit; text-shadow: none; text-align: center; }

/* tooltip, notifications */
.li-tip { position: absolute; z-index: 100; max-width: 46ch; padding: 1px 3px 3px; background: var(--main); box-shadow: 0 0 0 1px var(--outline); line-height: 14px; white-space: pre-line; pointer-events: none; }
.li-notifs { top: 3%; right: 1%; align-items: flex-end; gap: 4px; }
.li-notif {
  position: relative;
  max-width: 100%;
  padding: 3px 6px 6px 5px;
  background: linear-gradient(#181818, #101010);
  box-shadow: inset 0 0 0 1px #1f1f1f, 0 0 0 1px #000;
  color: #fff;
  font: 400 11.667px/14px "RbxRobotoMono", "Roboto Mono", ui-monospace, monospace;
  text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000;
  white-space: nowrap;
  animation: liIn .4s ease-out both;
}
.li-notif.is-out { animation: liOut .4s ease-in both; }
.li-notif::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent, #4777b6); }
.li-notif-timer { display: none; }
@keyframes liIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes liOut { to { clip-path: inset(0 100% 0 0); } }

@media (prefers-reduced-motion: reduce) {
  .nh-menu *, .ob-notif, .li-notif { transition: none !important; animation-duration: 1ms !important; }
}
