/* Copyright © 2026 MELDIX. TrioSoft. All rights reserved. */
/* ==========================================================================
   TrioSoft OS — system shell: wallpaper, menu bar, start menu, dock, windows,
   controls and every shared component rendered by the public scripts.
   Requires /os/os-tokens.css.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--os-bar-h) + 24px); overflow-x: clip; background: var(--os-wall); }
html.theme-is-changing *, html.theme-is-changing *::before, html.theme-is-changing *::after { transition: none !important; transition-delay: 0s !important; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--os-ink);
  background: var(--os-wall);
  font-family: var(--os-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
body.os-page { padding: var(--os-bar-h) 0 calc(var(--os-dock-h) + 40px); overflow-x: clip !important; }

/* ---------- wallpaper ---------- */
body.os-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(48vw 42vw at 88% 4%, var(--os-wall-b), transparent 62%),
    radial-gradient(44vw 40vw at 4% 26%, var(--os-wall-a), transparent 64%),
    radial-gradient(52vw 42vw at 60% 104%, var(--os-wall-c), transparent 64%),
    var(--os-wall);
}
body.os-page::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: radial-gradient(rgba(60, 40, 20, .09) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .25));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .25));
}
html[data-theme="dark"] body.os-page::after { background-image: radial-gradient(rgba(255, 240, 220, .07) 1px, transparent 1.3px); }

::selection { background: rgba(var(--os-accent-rgb), .3); }
a { color: inherit; text-decoration: none; }
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4 { margin: 0; color: var(--os-ink); font-family: var(--os-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code, kbd, pre { font-family: var(--os-mono); }
.hidden, [hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--os-accent); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: var(--os-line-2) transparent; }
.ui-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.brand-icon { width: 17px; height: 17px; fill: currentColor; flex: none; }
.legacy-glow-toggle, #themeGlowButton, .ambient { display: none !important; }
.section-shell { width: min(var(--os-content), calc(100% - var(--os-gutter) * 2)); margin-inline: auto; }

/* ---------- micro label: mono caption with a tile bullet ---------- */
.section-kicker, .os-kicker, .reviews-eyebrow, .eyebrow, .top-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--os-ink-3);
  font-family: var(--os-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.2;
}
.section-kicker::before, .os-kicker::before, .reviews-eyebrow::before {
  content: '';
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--os-coral) 0 33%, var(--os-violet) 33% 66%, var(--os-mint) 66%);
}

/* ---------- announcement & maintenance (system banners under the menu bar) ---------- */
.announcement-bar, .maintenance-banner, .ts-global-notice {
  position: relative;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px auto 0;
  width: min(var(--os-content), calc(100% - var(--os-gutter) * 2));
  padding: 10px 16px;
  border-radius: var(--os-r-md);
  color: var(--os-ink);
  background: var(--os-chrome);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--os-soft-shadow), inset 0 0 0 1px var(--os-line);
  font-size: 14px;
  font-weight: 500;
}
.announcement-bar::before, .maintenance-banner::before, .ts-global-notice::before { content: ''; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--os-violet); }
.announcement-bar.warning::before, .maintenance-banner::before, .ts-global-notice.warning::before { background: var(--os-amber); }
.announcement-bar.success::before { background: var(--os-mint); }
.announcement-bar.danger::before { background: var(--os-coral); }
.announcement-bar a { padding: 4px 10px; border-radius: var(--os-r-sm); color: #fff; background: var(--os-accent); font-size: 13px; font-weight: 600; }
.ts-global-notices { display: grid; gap: 6px; }

/* ============================== MENU BAR ============================== */
.site-header.os-menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 4px;
  width: auto;
  height: var(--os-bar-h);
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0 8px 0 6px;
  color: var(--os-ink);
  background: var(--os-chrome);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  backdrop-filter: blur(26px) saturate(190%);
  box-shadow: inset 0 -1px 0 var(--os-line);
  font-size: 13.5px;
}
.os-start {
  display: grid;
  place-items: center;
  width: 36px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  transition: background .2s;
}
.os-start img { width: 20px; height: 20px; transition: transform .5s var(--os-spring); }
.os-start:hover, .os-start[aria-expanded="true"] { background: var(--os-hover-2); }
.os-start:hover img { transform: rotate(-10deg) scale(1.12); }
.os-menubar .brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 0 8px; flex: none; }
.os-menubar .brand-logo { display: none; }
.os-menubar .brand-copy { display: flex; align-items: baseline; gap: 8px; }
.os-menubar .brand-copy strong { font-family: var(--os-display); font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.os-menubar .brand-copy small { display: none; }
.os-menubar .main-nav { display: flex; align-items: center; gap: 0; min-width: 0; overflow: hidden; }
.os-menubar .main-nav a {
  position: relative;
  padding: 4px 10px;
  border-radius: 7px;
  color: var(--os-ink);
  font-size: 13.5px;
  font-weight: 450;
  white-space: nowrap;
  transition: background .15s;
}
.os-menubar .main-nav a:hover { background: var(--os-hover-2); }
.os-menubar .main-nav a.is-current { font-weight: 650; }
.os-menubar .main-nav a.is-current::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 14px; height: 3px; margin-left: -7px; border-radius: 3px; background: var(--os-accent); }
.os-menubar .header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.os-clock { min-width: 108px; padding: 4px 8px; border-radius: 7px; font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; white-space: nowrap; cursor: default; }
.os-clock:hover { background: var(--os-hover-2); }
.os-menubar .icon-button, .os-menubar .mobile-menu-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: var(--os-ink);
  background: transparent;
}
.os-menubar .icon-button:hover, .os-menubar .mobile-menu-button:hover { background: var(--os-hover-2); }
.os-menubar .ui-icon { width: 16px; height: 16px; }
.os-menubar .header-link {
  min-height: 26px !important;
  height: 26px;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--os-ink) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}
.os-menubar .header-link:hover { background: var(--os-hover-2) !important; }
.mobile-menu-button { display: none !important; }
.theme-toggle { position: relative; }
.theme-toggle .ui-icon { position: absolute; inset: 0; margin: auto; transition: opacity .3s var(--os-ease), transform .45s var(--os-spring); }
.theme-toggle .theme-icon-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
html[data-theme="dark"] .theme-toggle .theme-icon-sun { opacity: 1; transform: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
.floating-theme-toggle { position: fixed !important; right: 16px; top: calc(var(--os-bar-h) + 10px); z-index: 800; width: 36px; height: 36px; border: 0; border-radius: 10px; color: var(--os-ink); background: var(--os-chrome); box-shadow: var(--os-soft-shadow); }

/* global search trigger in the menu bar */
.os-menubar .global-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  color: var(--os-ink);
  background: transparent;
  font-size: 13px;
}
.os-menubar .global-search-trigger:hover { background: var(--os-hover-2); }
.os-menubar .global-search-trigger span { display: none; }
.os-menubar .global-search-trigger kbd { padding: 1px 5px; border: 1px solid var(--os-line-2); border-radius: 5px; color: var(--os-ink-3); font-size: 10.5px; }

/* ============================== START MENU ============================== */
.os-start-menu {
  position: fixed;
  top: calc(var(--os-bar-h) + 6px);
  left: 6px;
  z-index: 950;
  display: grid;
  gap: 12px;
  width: min(380px, calc(100vw - 12px));
  padding: 14px;
  border-radius: var(--os-r-lg);
  background: var(--os-chrome);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  backdrop-filter: blur(30px) saturate(190%);
  box-shadow: var(--os-pop-shadow);
  transform-origin: top left;
  animation: os-pop .28s var(--os-out);
}
.os-start-head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; border-bottom: 1px solid var(--os-line); }
.os-start-head img { width: 42px; height: 42px; }
.os-start-head strong { display: block; font-family: var(--os-display); font-size: 17px; }
.os-start-head small { color: var(--os-ink-3); font-size: 12.5px; }
.os-start-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.os-start-app { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: var(--os-r-md); font-size: 12px; text-align: center; transition: background .15s; }
.os-start-app:hover { background: var(--os-hover-2); }
.os-start-list { display: grid; gap: 1px; }
.os-start-list a { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.os-start-list a:hover { color: #fff; background: var(--os-accent); }
.os-start-foot { display: flex; gap: 6px; padding-top: 10px; border-top: 1px solid var(--os-line); }
.os-start-foot > * { flex: 1; }

/* the colourful app tile used by the dock, start menu and desktop */
.os-tile {
  --tile: var(--os-violet);
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tile) 70%, white), var(--tile) 55%, color-mix(in srgb, var(--tile) 82%, black));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 6px 14px -6px color-mix(in srgb, var(--tile) 70%, black);
  flex: none;
}
.os-tile .ui-icon { width: 22px; height: 22px; stroke-width: 2; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)); }
.os-tile img { width: 100%; height: 100%; object-fit: cover; }
.os-tile.is-image { background: var(--os-window); }
.os-tile[data-tone="coral"] { --tile: var(--os-coral); }
.os-tile[data-tone="mint"] { --tile: var(--os-mint); }
.os-tile[data-tone="amber"] { --tile: var(--os-amber); }
.os-tile[data-tone="ink"] { --tile: #3b3540; }
.os-tile[data-tone="sky"] { --tile: #2f9bff; }
.os-tile[data-tone="rose"] { --tile: #ff4f8b; }

/* ============================== DOCK ============================== */
.os-dock {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 880;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: calc(100vw - 24px);
  height: 66px;
  padding: 8px 10px;
  translate: -50% 0;
  border-radius: 22px;
  background: var(--os-chrome);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  box-shadow: var(--os-pop-shadow);
  animation: os-dock-in .8s .2s var(--os-out) both;
}
.os-dock-item {
  --s: 1;
  position: relative;
  display: grid;
  justify-items: center;
  width: calc(48px * var(--s));
  padding: 0;
  border: 0;
  background: none;
  transition: width .18s var(--os-ease);
}
.os-dock-item .os-tile { width: calc(48px * var(--s)); height: calc(48px * var(--s)); border-radius: calc(13px * var(--s)); transform-origin: bottom center; transition: width .18s var(--os-ease), height .18s var(--os-ease), transform .3s var(--os-spring); }
.os-dock-item .os-tile .ui-icon { width: calc(24px * var(--s)); height: calc(24px * var(--s)); }
.os-dock-item:active .os-tile { transform: translateY(2px) scale(.94); }
.os-dock-item.is-bouncing .os-tile { animation: os-bounce .7s var(--os-ease); }
.os-dock-label {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  padding: 5px 10px;
  translate: -50% 4px;
  border-radius: 8px;
  color: var(--os-ink);
  background: var(--os-chrome-solid);
  box-shadow: var(--os-soft-shadow), inset 0 0 0 1px var(--os-line);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, translate .2s var(--os-out);
}
.os-dock-item:hover .os-dock-label, .os-dock-item:focus-visible .os-dock-label { opacity: 1; translate: -50% 0; }
.os-dock-item.is-current::after { content: ''; position: absolute; bottom: -6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--os-ink); }
.os-dock-sep { align-self: center; width: 1px; height: 40px; margin: 0 4px; background: var(--os-line-2); }

/* ============================== WINDOWS ============================== */
.os-window {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--os-r-win);
  background: var(--os-window);
  box-shadow: var(--os-win-shadow);
  transition: box-shadow .3s var(--os-ease), transform .45s var(--os-out);
}
.os-window.is-focused { z-index: 5; }
.os-titlebar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--os-line);
  border-radius: var(--os-r-win) var(--os-r-win) 0 0;
  background: linear-gradient(180deg, var(--os-pane), color-mix(in srgb, var(--os-pane) 70%, var(--os-window)));
  user-select: none;
}
.os-window.is-draggable .os-titlebar { cursor: grab; }
.os-window.is-dragging { transition: none; box-shadow: var(--os-pop-shadow); }
.os-window.is-dragging .os-titlebar { cursor: grabbing; }
.os-lights { display: flex; gap: 8px; }
.os-light {
  position: relative;
  width: 13px;
  height: 13px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--light, var(--os-coral));
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18);
}
.os-light:nth-child(2) { --light: var(--os-violet); }
.os-light:nth-child(3) { --light: var(--os-mint); }
.os-light::after { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(0, 0, 0, .55); font: 700 10px/1 var(--os-ui); opacity: 0; transition: opacity .12s; }
.os-light[data-os-action="close"]::after { content: '×'; font-size: 12px; }
.os-light[data-os-action="min"]::after { content: '–'; }
.os-light[data-os-action="max"]::after { content: '+'; }
.os-lights:hover .os-light::after { opacity: 1; }
.os-title { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; color: var(--os-ink-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-title .ui-icon { width: 15px; height: 15px; color: var(--os-ink-3); }
.os-title-tools { display: flex; justify-content: flex-end; gap: 6px; min-width: 0; color: var(--os-ink-3); font-size: 12.5px; }
.os-window-body { position: relative; min-width: 0; padding: clamp(18px, 2.4vw, 28px); }
.os-window-body.flush { padding: 0; }
.os-statusbar { display: flex; justify-content: space-between; gap: 12px; padding: 7px 14px; border-top: 1px solid var(--os-line); border-radius: 0 0 var(--os-r-win) var(--os-r-win); color: var(--os-ink-3); background: var(--os-pane); font-size: 12px; }
/* states driven by os.js */
.os-window.is-shaded > :not(.os-titlebar) { display: none !important; }
.os-window.is-shaded .os-titlebar { border-bottom: 0; border-radius: var(--os-r-win); }
.os-window.is-closed { display: none !important; }
.os-window.is-max { position: fixed !important; inset: calc(var(--os-bar-h) + 10px) 10px calc(var(--os-dock-h) + 22px) !important; z-index: 860 !important; width: auto !important; max-width: none !important; margin: 0 !important; overflow: auto; animation: os-pop .3s var(--os-out); }
.os-window.is-max .os-titlebar { position: sticky; top: 0; z-index: 3; }
.os-reopen-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.os-reopen-bar:empty { display: none; }
.os-reopen { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 0; border-radius: var(--os-pill); color: var(--os-ink); background: var(--os-chrome); box-shadow: var(--os-soft-shadow), inset 0 0 0 1px var(--os-line); font-size: 13px; font-weight: 500; }
.os-reopen::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--os-mint); }

/* page stage: inner pages live in one big app window */
.os-stage { width: min(calc(var(--os-content) + 40px), calc(100% - var(--os-gutter) * 2)); margin: 22px auto 0; }
.os-app-window { animation: os-open .55s var(--os-out) both; }
.os-app-window > .os-window-body { padding: 0; }

/* ============================== BUTTONS ============================== */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--os-spring), box-shadow .2s var(--os-ease), background .2s var(--os-ease), color .2s;
}
.button:active { transform: translateY(1px) scale(.98); }
.button:disabled, .button[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.button-primary, .button.primary {
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--os-accent) 82%, white), var(--os-accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .12), 0 8px 18px -8px rgba(var(--os-accent-rgb), .8);
}
.button-primary:hover, .button.primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .15), 0 12px 24px -8px rgba(var(--os-accent-rgb), .9); transform: translateY(-1px); }
.button-secondary {
  color: var(--os-ink);
  background: var(--os-window);
  box-shadow: inset 0 0 0 1px var(--os-line-2), 0 1px 2px rgba(0, 0, 0, .06);
}
.button-secondary:hover { background: var(--os-pane); }
.button-ghost { color: var(--os-ink-2); background: transparent; box-shadow: inset 0 0 0 1px var(--os-line); }
.button-ghost:hover { color: var(--os-ink); background: var(--os-hover); }
.button-danger { color: #fff; background: linear-gradient(180deg, #ff6b50, var(--os-danger)); }
.button-small { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; }
.button-wide { width: 100%; }
.button .ui-icon { width: 16px; height: 16px; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; color: var(--os-ink-2); background: transparent; }
.icon-button:hover { color: var(--os-ink); background: var(--os-hover-2); }

/* ============================== FORMS ============================== */
label > span:first-child:not(.ui-icon) { display: block; margin-bottom: 6px; color: var(--os-ink-2); font-size: 13px; font-weight: 600; }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), textarea, select) {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  border: 0;
  border-radius: 10px;
  outline: none;
  color: var(--os-ink);
  background: var(--os-field);
  box-shadow: inset 0 0 0 1px var(--os-line-2), inset 0 1px 2px rgba(0, 0, 0, .05);
  font-size: 15px;
  transition: box-shadow .15s;
}
:where(input, textarea, select):focus { box-shadow: inset 0 0 0 1.5px var(--os-accent), 0 0 0 4px rgba(var(--os-accent-rgb), .18); }
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
/* Unified form controls: site-shell grows these textareas with their content */
textarea[data-ts-autosize="true"] { min-height: 46px; overflow-y: hidden; resize: none; }
input::placeholder, textarea::placeholder { color: var(--os-ink-3); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--os-accent); width: 17px; height: 17px; }
:where(select) { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14'%3E%3Cpath d='M1.5 5L5 1.5 8.5 5M1.5 9L5 12.5 8.5 9' fill='none' stroke='%23978b7f' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-result { min-height: 20px; color: var(--os-ink-2); font-size: 14px; }
.form-result.success { color: var(--os-success); }
.form-result.error { color: var(--os-danger); }
.search-box { position: relative; display: flex; align-items: center; }
.search-box > .ui-icon { position: absolute; left: 13px; color: var(--os-ink-3); pointer-events: none; }
.search-box input { padding-left: 40px !important; }

/* custom select (site-shell) → OS pop-up button */
.ts-native-select { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; }
.ts-custom-select { position: relative; width: 100%; }
.ts-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px 0 13px;
  border: 0;
  border-radius: 10px;
  color: var(--os-ink);
  background: var(--os-window);
  box-shadow: inset 0 0 0 1px var(--os-line-2), 0 1px 2px rgba(0, 0, 0, .05);
  text-align: left;
  font-size: 15px;
}
.ts-select-trigger::after { content: ''; width: 18px; height: 18px; flex: none; border-radius: 5px; background: var(--os-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='12' viewBox='0 0 10 12'%3E%3Cpath d='M2 4.5L5 1.5 8 4.5M2 7.5L5 10.5 8 7.5' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat; }
.ts-custom-select.open .ts-select-trigger { box-shadow: inset 0 0 0 1.5px var(--os-accent), 0 0 0 4px rgba(var(--os-accent-rgb), .18); }
.ts-select-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ts-select-menu { position: fixed; z-index: 1200; display: grid; gap: 1px; padding: 5px; overflow: auto; border-radius: 12px; background: var(--os-chrome); -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%); box-shadow: var(--os-pop-shadow); animation: os-pop .18s var(--os-out); }
.ts-select-option { display: block; width: 100%; padding: 7px 10px 7px 26px; border: 0; border-radius: 7px; color: var(--os-ink); background: transparent; text-align: left; font-size: 14px; position: relative; }
.ts-select-option:hover, .ts-select-option:focus-visible { color: #fff; background: var(--os-accent); outline: none; }
.ts-select-option.active::before { content: '✓'; position: absolute; left: 9px; font-weight: 700; }
@media (max-width: 680px) { .ts-select-menu { left: 8px !important; right: 8px !important; bottom: 8px !important; top: auto !important; width: auto !important; max-height: 60vh !important; border-radius: 18px; } }

/* ============================== BADGES ============================== */
.badge, .tag { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 0 8px; border-radius: 6px; color: var(--os-ink-2); background: var(--os-hover-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-green, .badge.released, .badge.stable { color: color-mix(in srgb, var(--os-success) 80%, black); background: rgba(var(--os-mint-rgb), .16); }
html[data-theme="dark"] :is(.badge-green, .badge.released, .badge.stable) { color: #4be3bb; }
.badge-purple, .badge-blue, .badge.beta { color: var(--os-accent); background: rgba(var(--os-violet-rgb), .13); }
.badge-orange, .badge.alpha, .badge.development { color: #b8670a; background: rgba(255, 178, 63, .2); }
html[data-theme="dark"] :is(.badge-orange, .badge.alpha, .badge.development) { color: var(--os-amber); }
.badge-red, .badge.archived { color: var(--os-danger); background: rgba(var(--os-coral-rgb), .14); }
.tag { font-family: var(--os-mono); font-weight: 500; font-size: 11px; color: var(--os-ink-3); background: transparent; box-shadow: inset 0 0 0 1px var(--os-line); }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; color: var(--os-ink-2); background: transparent; box-shadow: inset 0 0 0 1px var(--os-line); font-size: 13.5px; font-weight: 500; transition: background .15s; }
.filter-chip:hover { background: var(--os-hover); }
.filter-chip.active { color: #fff; background: var(--os-accent); box-shadow: none; }
.vt-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; color: var(--os-ink-2); background: var(--os-hover); font-size: 12px; font-weight: 600; }
.vt-badge .ui-icon { width: 14px; height: 14px; }
.vt-badge.clean { color: var(--os-success); }
.vt-badge.warning, .vt-badge.suspicious { color: var(--os-warning); }
.vt-badge.danger, .vt-badge.malicious { color: var(--os-danger); }

/* ============================== MISC STATES ============================== */
.skeleton-card { position: relative; min-height: 120px; overflow: hidden; border-radius: var(--os-r-md); background: var(--os-hover); }
.skeleton-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, var(--os-hover-2) 50%, transparent 80%); transform: translateX(-100%); animation: os-shimmer 1.4s infinite; }
.empty-state, .news-empty-state { display: grid; justify-items: center; gap: 8px; padding: 44px 20px; color: var(--os-ink-2); text-align: center; grid-column: 1 / -1; }
.empty-state h3, .news-empty-state h3 { font-size: 17px; }
.empty-icon, .news-empty-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: #fff; background: linear-gradient(160deg, color-mix(in srgb, var(--os-violet) 70%, white), var(--os-violet)); }

/* section heading inside windows */
.section-heading { display: grid; gap: 8px; margin-bottom: 20px; }
.section-heading h2, .section-heading h3 { font-size: clamp(22px, 2.4vw, 30px); }
.section-heading p { max-width: 640px; color: var(--os-ink-2); }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.split-heading > div { display: grid; gap: 8px; }

/* ============================== FOOTER → system strip ============================== */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  width: min(calc(var(--os-content) + 40px), calc(100% - var(--os-gutter) * 2));
  margin: 36px auto 0;
  padding: 14px 18px;
  border-radius: var(--os-r-md);
  color: var(--os-ink-2);
  background: var(--os-chrome);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px var(--os-line);
  font-size: 13px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 26px; height: 26px; object-fit: contain; }
.footer-brand strong { font-family: var(--os-display); font-size: 14px; }
.footer-brand p { display: none; }
.footer-links, .footer-social-links { display: flex; flex-wrap: wrap; gap: 2px; }
.footer-links a, .footer-social-links a { padding: 4px 8px; border-radius: 6px; }
.footer-links a:hover, .footer-social-links a:hover { color: var(--os-ink); background: var(--os-hover-2); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-left: auto; color: var(--os-ink-3); font-family: var(--os-mono); font-size: 11.5px; }
.footer-bottom a:hover { color: var(--os-accent); }
.ts-copyright-footer { padding: 16px; color: var(--os-ink-3); font-family: var(--os-mono); font-size: 11.5px; text-align: center; }

/* ============================== TOAST → system notification ============================== */
.toast {
  position: fixed;
  top: calc(var(--os-bar-h) + 10px);
  right: 12px;
  z-index: 3000;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(360px, calc(100% - 24px));
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--os-ink);
  background: var(--os-chrome);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  backdrop-filter: blur(30px) saturate(190%);
  box-shadow: var(--os-pop-shadow);
  font-size: 14px;
  font-weight: 500;
  animation: os-notify .5s var(--os-out);
}
.toast::before { content: ''; width: 34px; height: 34px; border-radius: 9px; background: url('/os/brand/trio-mark.svg') center / 24px no-repeat, var(--os-window); box-shadow: inset 0 0 0 1px var(--os-line); }

/* ============================== SPOTLIGHT (global search) ============================== */
.global-search-overlay { position: fixed; inset: 0; z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 16vh 14px 14px; background: rgba(20, 14, 10, .18); }
html[data-theme="dark"] .global-search-overlay { background: rgba(0, 0, 0, .35); }
.global-search-overlay.open { display: flex; animation: os-fade .2s; }
.global-search-dialog { width: min(640px, 100%); overflow: hidden; border-radius: 18px; background: var(--os-chrome); -webkit-backdrop-filter: blur(36px) saturate(190%); backdrop-filter: blur(36px) saturate(190%); box-shadow: var(--os-pop-shadow); animation: os-pop .28s var(--os-out); }
.global-search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 16px; }
.global-search-input-wrap > .ui-icon { width: 22px; height: 22px; color: var(--os-ink-2); }
.global-search-input { flex: 1; min-height: 54px !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 22px !important; font-weight: 400; }
.global-search-close { padding: 4px 8px; border: 0; border-radius: 6px; color: var(--os-ink-3); background: var(--os-hover-2); font-size: 11px; }
.global-search-results { max-height: min(52vh, 480px); padding: 6px; overflow: auto; border-top: 1px solid var(--os-line); }
.global-search-results:empty { display: none; }
.global-search-group-title { padding: 8px 10px 4px; color: var(--os-ink-3); font-size: 12px; font-weight: 600; }
.global-search-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; }
.global-search-item.active, .global-search-item:hover { color: #fff; background: var(--os-accent); }
.global-search-item.active *, .global-search-item:hover * { color: #fff !important; }
.global-search-item-icon { display: grid; place-items: center; width: 32px; height: 32px; overflow: hidden; border-radius: 8px; color: var(--os-accent); background: var(--os-window); flex: none; }
.global-search-item-icon img { width: 100%; height: 100%; object-fit: cover; }
.global-search-item-copy { display: grid; flex: 1; min-width: 0; }
.global-search-item-copy strong { font-size: 14.5px; font-weight: 600; }
.global-search-item-copy small, .global-search-item-copy span { overflow: hidden; color: var(--os-ink-3); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.global-search-empty { padding: 30px; color: var(--os-ink-3); text-align: center; }
.global-search-command-hint { margin: 0 10px 8px; color: var(--os-ink-3); font-size: 12px; }
.global-search-command-hint b { color: var(--os-accent); }
.global-search-footer { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--os-line); color: var(--os-ink-3); font-size: 11.5px; }
.global-search-footer kbd { padding: 1px 5px; border-radius: 4px; background: var(--os-hover-2); font-size: 10.5px; }

/* ============================== MENU-BAR DROPDOWNS ============================== */
.ts-profile-wrap, .ts-notification-wrap { position: relative; }
.ts-profile-trigger { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 2px; border: 0; border-radius: 7px; color: var(--os-ink); background: transparent; font-size: 13.5px; font-weight: 500; }
.ts-profile-trigger:hover { background: var(--os-hover-2); }
.ts-profile-avatar, .ts-profile-menu-avatar, .ts-welcome-avatar { display: grid; place-items: center; width: 24px; height: 24px; overflow: hidden; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--os-coral), var(--os-violet)); font-size: 11px; font-weight: 700; flex: none; }
.ts-profile-avatar img, .ts-profile-menu-avatar img, .ts-welcome-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ts-profile-menu, .ts-notification-popover { position: fixed; top: calc(var(--os-bar-h) + 6px); right: 6px; z-index: 950; width: 290px; padding: 6px; border-radius: 14px; background: var(--os-chrome); -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%); box-shadow: var(--os-pop-shadow); animation: os-pop .2s var(--os-out); transform-origin: top right; }
.ts-notification-popover { width: 360px; }
.ts-profile-menu-user { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--os-line); }
.ts-profile-menu-user .ts-profile-menu-avatar { width: 40px; height: 40px; font-size: 15px; }
.ts-profile-menu-user strong { display: block; font-size: 14.5px; }
.ts-profile-menu-user small { color: var(--os-ink-3); font-size: 12.5px; }
.ts-profile-menu-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 7px; color: var(--os-ink); background: transparent; font-size: 14px; text-align: left; }
.ts-profile-menu-row:hover { color: #fff; background: var(--os-accent); }
.ts-notification-button { position: relative; }
.ts-notification-button b, .ts-notification-button .badge-dot { position: absolute; top: 4px; right: 5px; min-width: 7px; height: 7px; border-radius: 7px; background: var(--os-coral); font-size: 0; }
.ts-notification-list { display: grid; gap: 4px; max-height: 420px; overflow: auto; }
.ts-notification-item { display: grid; gap: 2px; padding: 10px 12px; border-radius: 11px; color: var(--os-ink-2); background: var(--os-window); font-size: 13.5px; box-shadow: inset 0 0 0 1px var(--os-line); }
.ts-notification-item strong { color: var(--os-ink); font-size: 14px; }
.ts-notification-item:not(.read) { box-shadow: inset 3px 0 0 var(--os-violet), inset 0 0 0 1px var(--os-line); }
.ts-notification-empty { padding: 26px 14px; color: var(--os-ink-3); text-align: center; font-size: 13.5px; }
.pwa-install-button { color: var(--os-accent) !important; }

/* welcome popup → system alert */
.ts-welcome-popup { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 16px; }
.ts-welcome-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(20, 14, 10, .25); cursor: default; animation: os-fade .25s; }
.ts-welcome-card { position: relative; width: min(420px, 100%); padding: 24px; border-radius: 20px; background: var(--os-chrome); -webkit-backdrop-filter: blur(36px) saturate(190%); backdrop-filter: blur(36px) saturate(190%); box-shadow: var(--os-pop-shadow); text-align: center; animation: os-pop .35s var(--os-out); }
.ts-welcome-head { display: flex; flex-direction: column-reverse; align-items: center; gap: 12px; margin-bottom: 18px; }
.ts-welcome-head h2 { margin: 6px 0; font-size: 20px; }
.ts-welcome-head p { color: var(--os-ink-2); font-size: 14px; }
.ts-welcome-avatar { width: 64px; height: 64px; font-size: 24px; border-radius: 20px; }
.personal-home-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.personal-home-stats a { display: grid; gap: 1px; padding: 10px 6px; border-radius: 11px; background: var(--os-window); box-shadow: inset 0 0 0 1px var(--os-line); }
.personal-home-stats a:hover { box-shadow: inset 0 0 0 1.5px var(--os-accent); }
.personal-home-stats b { font-family: var(--os-display); font-size: 17px; }
.personal-home-stats span { color: var(--os-ink-3); font-size: 11px; }
.personal-home-apps { display: grid; gap: 4px; margin-top: 10px; text-align: left; }
.personal-home-apps a { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 9px; }
.personal-home-apps a:hover { background: var(--os-hover-2); }
.personal-home-apps img, .personal-home-apps a > span { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.personal-home-apps small { display: block; color: var(--os-ink-3); font-size: 12px; }
.ts-welcome-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.ts-welcome-close { position: absolute; top: 12px; left: 12px; width: 13px; height: 13px; padding: 0; border: 0; border-radius: 50%; color: transparent; background: var(--os-coral); }
.ts-welcome-close .ui-icon { display: none; }
.ts-welcome-popup.leaving { opacity: 0; transition: opacity .25s; }

/* ============================== ASSISTANT → chat app ============================== */
.arsyusha-root { position: fixed; right: 16px; bottom: calc(var(--os-dock-h) + 26px); z-index: 870; }
.arsyusha-root.left { right: auto; left: 16px; }
.arsyusha-launcher { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: var(--os-window); box-shadow: var(--os-pop-shadow); transition: transform .35s var(--os-spring); }
.arsyusha-launcher:hover { transform: translateY(-3px); }
.arsyusha-launcher img { width: 100%; height: 100%; object-fit: cover; }
.arsyusha-panel { position: absolute; right: 0; bottom: 64px; display: flex; flex-direction: column; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 200px)); overflow: hidden; border-radius: var(--os-r-win); background: var(--os-window); box-shadow: var(--os-pop-shadow); transform-origin: bottom right; animation: os-pop .3s var(--os-out); }
.arsyusha-root.left .arsyusha-panel { right: auto; left: 0; }
.arsyusha-head { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-bottom: 1px solid var(--os-line); background: var(--os-pane); }
.arsyusha-avatar { width: 34px; height: 34px; overflow: hidden; border-radius: 10px; flex: none; }
.arsyusha-avatar img { width: 100%; height: 100%; object-fit: cover; }
.arsyusha-head-copy { flex: 1; min-width: 0; }
.arsyusha-head-copy strong { display: block; font-size: 14.5px; }
.arsyusha-status { color: var(--os-success); font-size: 12px; }
.arsyusha-head-actions { display: flex; gap: 2px; }
.arsyusha-icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; color: var(--os-ink-3); background: transparent; }
.arsyusha-icon-btn:hover { color: var(--os-ink); background: var(--os-hover-2); }
.arsyusha-messages { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px; overflow: auto; background: var(--os-window); }
.arsyusha-message { max-width: 86%; padding: 9px 13px; border-radius: 18px 18px 18px 6px; color: var(--os-ink); background: var(--os-pane-2); font-size: 14.5px; line-height: 1.5; }
.arsyusha-message.user { align-self: flex-end; border-radius: 18px 18px 6px 18px; color: #fff; background: var(--os-accent); }
.arsyusha-message a { color: var(--os-accent); text-decoration: underline; }
.arsyusha-message.user a { color: #fff; }
.arsyusha-time { display: block; margin-top: 3px; color: var(--os-ink-3); font-size: 11px; }
.arsyusha-message.user .arsyusha-time { color: rgba(255, 255, 255, .7); }
.arsyusha-markdown ul, .arsyusha-markdown ol { padding-left: 18px; }
.arsyusha-markdown code { padding: 1px 5px; border-radius: 5px; background: var(--os-hover-2); font-size: 13px; }
.arsyusha-markdown pre { padding: 10px; overflow: auto; border-radius: 10px; background: var(--os-hover-2); }
.arsyusha-table-wrap { overflow: auto; }
.arsyusha-typing { display: inline-flex; gap: 4px; padding: 11px 13px; border-radius: 18px; background: var(--os-pane-2); }
.arsyusha-typing span, .arsyusha-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--os-ink-3); animation: os-dots 1.2s infinite; }
.arsyusha-typing :nth-child(2) { animation-delay: .15s; }
.arsyusha-typing :nth-child(3) { animation-delay: .3s; }
.arsyusha-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; background: var(--os-window); }
.arsyusha-suggestion { padding: 6px 11px; border: 0; border-radius: var(--os-pill); color: var(--os-accent); background: rgba(var(--os-accent-rgb), .1); font-size: 13px; font-weight: 500; }
.arsyusha-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--os-line); background: var(--os-pane); }
.arsyusha-input { min-height: 40px !important; max-height: 130px; padding: 9px 14px !important; resize: none; border-radius: 20px !important; font-size: 14.5px !important; }
.arsyusha-send { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #fff; background: var(--os-accent); flex: none; }
.arsyusha-send:disabled { opacity: .4; }
.task-item { display: flex; gap: 8px; list-style: none; }

/* ============================== BOOT SCREEN (site loader) ============================== */
.ts-site-loader { position: fixed; inset: 0; z-index: 5000; display: none; place-items: center; background: #0f0d12; color: #f5efe8; }
html.ts-site-loading .ts-site-loader { display: grid; }
html.ts-site-loading body { overflow: hidden; }
.ts-site-loader.is-leaving { opacity: 0; transition: opacity .5s var(--os-ease); }
.ts-loader-card { display: grid; justify-items: center; gap: 12px; width: min(300px, calc(100% - 40px)); text-align: center; }
.ts-loader-orbit { display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 12px; }
.ts-loader-ring, .ts-loader-dot { display: none; }
.ts-loader-logo-shell { display: grid; place-items: center; width: 92px; height: 92px; animation: os-breathe 1.8s var(--os-ease) infinite; }
.ts-loader-logo { width: 92px; height: 92px; object-fit: contain; }
.ts-loader-eyebrow { color: #82786f; font-family: var(--os-mono); font-size: 11px; letter-spacing: .2em; }
.ts-loader-title { color: #f5efe8; font-size: 20px; }
.ts-loader-subtitle { color: #a99e93; font-size: 13.5px; }
.ts-loader-progress { position: relative; display: block; width: 180px; height: 5px; margin-top: 14px; overflow: hidden; border-radius: 5px; background: rgba(255, 240, 225, .12); }
.ts-loader-progress-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--os-coral), var(--os-violet), var(--os-mint)); transition: width .3s var(--os-ease); }
.ts-loader-progress-meta { display: flex; justify-content: space-between; width: 180px; color: #82786f; font-family: var(--os-mono); font-size: 10.5px; }
.ts-loader-status { color: #82786f; font-family: var(--os-mono); font-size: 11px; }
.ts-loader-stage-dots { display: flex; gap: 5px; }
.ts-loader-stage-dots > * { width: 5px; height: 5px; border-radius: 2px; background: rgba(255, 240, 225, .15); }
.ts-loader-stage-dots > .is-active, .ts-loader-stage-dots > .is-complete { background: var(--os-mint); }

/* ============================== MOTION ============================== */
.os-reveal { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .7s var(--os-out), transform .8s var(--os-out); transition-delay: var(--os-delay, 0s); }
.os-reveal.os-in { opacity: 1; transform: none; }
@keyframes os-pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
@keyframes os-open { from { opacity: 0; transform: scale(.97) translateY(14px); } }
@keyframes os-fade { from { opacity: 0; } }
@keyframes os-notify { from { opacity: 0; transform: translateX(30px); } }
@keyframes os-shimmer { to { transform: translateX(100%); } }
@keyframes os-dots { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
@keyframes os-bounce { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-16px); } 55% { transform: translateY(0); } 72% { transform: translateY(-6px); } }
@keyframes os-dock-in { from { opacity: 0; transform: translateY(40px); } }
@keyframes os-breathe { 50% { transform: scale(1.06); } }
@keyframes os-float { 50% { transform: translateY(-6px); } }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1100px) {
  .os-menubar .main-nav a { padding: 4px 7px; font-size: 13px; }
  .os-clock { min-width: 0; }
  .os-clock .os-clock-date { display: none; }
}
@media (max-width: 900px) {
  :root { --os-dock-h: 64px; }
  .os-menubar .main-nav { display: none; }
  .site-header.os-menubar.menu-open .main-nav {
    position: fixed;
    top: calc(var(--os-bar-h) + 6px);
    left: 6px;
    right: 6px;
    display: grid;
    gap: 2px;
    padding: 6px;
    border-radius: 16px;
    background: var(--os-chrome-solid);
    box-shadow: var(--os-pop-shadow);
    animation: os-pop .2s var(--os-out);
  }
  .site-header.os-menubar.menu-open .main-nav a { padding: 11px 12px; font-size: 15px; }
  .mobile-menu-button { display: inline-grid !important; }
  .os-dock { left: 8px; right: 8px; bottom: 8px; justify-content: space-around; translate: none; height: 60px; padding: 6px; border-radius: 20px; }
  .os-dock-item { width: 46px !important; }
  .os-dock-item .os-tile { width: 42px !important; height: 42px !important; border-radius: 12px !important; }
  .os-dock-label { display: none; }
  .os-dock [data-dock-app], .os-dock .os-dock-sep { display: none; }
}
@media (max-width: 720px) {
  :root { --os-bar-h: 44px; }
  .os-clock { display: none; }
  .os-menubar .header-link span { display: none; }
  .os-menubar .brand { padding: 0 4px; }
  .os-menubar .global-search-trigger kbd { display: none; }
  .os-menubar .ts-profile-trigger { padding: 0 2px; font-size: 0 !important; gap: 0; }
  .os-menubar .ts-profile-trigger > :not(.ts-profile-avatar) { display: none !important; }
  .os-menubar .header-actions { gap: 0; min-width: 0; }
  .os-dock [data-dock-optional] { display: none; }
  .form-grid.two-columns { grid-template-columns: 1fr; }
  .split-heading { flex-direction: column; align-items: flex-start; }
  .os-titlebar { grid-template-columns: auto 1fr; }
  .os-title { justify-content: flex-start; }
  .os-title-tools { display: none; }
  .ts-profile-trigger > span:not(.ts-profile-avatar) { display: none; }
  .ts-notification-popover, .ts-profile-menu { left: 6px; right: 6px; width: auto; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .footer-bottom { margin-left: 0; }
  .personal-home-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .os-reveal { opacity: 1; transform: none; }
}
body.animations-off *, body.animations-off *::before, body.animations-off *::after { animation: none !important; transition: none !important; }
body.animations-off .os-reveal { opacity: 1; transform: none; }
