/* ============================================================
   Catalyst live demo — app-window chrome, editor, and views.
   Ported verbatim from catalyst-website/css/site.css (448-1510).
   The app tokens below scope the dark app UI to .app-window so
   the surrounding page stays light.
   ============================================================ */
/* App-surface tokens. In the old site these lived on :root and the theme
   engine re-skinned the whole page. Here they're scoped to .mock, so the
   eight presets restyle the demo window only — the page keeps its own
   light/dark. demo.js writes the same custom props inline on .mock. */
.mock {
  --bg: #000000;
  --bg-1: #060608;
  --surface: #0e0e11;
  --surface-2: #151519;
  --surface-3: #1c1c21;
  --surface-4: #25252c;
  --border: #1f1f24;
  --border-2: #2c2c33;
  --border-strong: #3a3a43;
  --text: #f5f5f7;
  --text-2: #9b9ba6;
  --text-3: #62626c;
  --text-4: #3f3f47;
  --on: #ffffff;
  --on-ink: #000000; /* text/marks sitting on an --on fill; demo.js recomputes it */
  --on-soft: rgba(255, 255, 255, 0.08);
  --on-softer: rgba(255, 255, 255, 0.04);
  --danger: #ff5460;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  --ed-bg: #08080a;
  --ed-fg: #e9e9ee;
  --ed-ln: #34343b;
  --ed-cursor: #ffffff;
  --ed-sel: rgba(255, 255, 255, 0.12);
  --tk-com: #5a5a63;
  --tk-key: #ffffff;
  --tk-str: #b7b7c0;
  --tk-num: #8c8c95;
  --tk-fn: #d6d6dc;
  color: var(--text);
}

/* ============================================================
   App-window chrome (shared by hero + demo)
   ============================================================ */
.mock {
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: var(--ed-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease);
}
/* ----- faithful app titlebar (mirrors the real GUI) ----- */
.aw-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 8px 0 14px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
}
.aw-tb-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.aw-tb-left .logo {
  color: var(--on);
  display: flex;
  filter: drop-shadow(0 0 3px var(--on));
}
.aw-name {
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.aw-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  border-radius: 5px;
  padding: 2px 5px;
}
.aw-tb-center {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.aw-tb-right {
  display: flex;
  gap: 2px;
}
/* hero demo has no center session box — keep window controls at the edge */
#heroDemo .aw-tb-right {
  margin-left: auto;
}
.aw-win {
  width: 30px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--text-3);
  border-radius: 7px;
  background: none;
  border: 0;
  cursor: default;
  transition: background 0.15s var(--ease), color 0.15s;
}
.aw-win svg {
  width: 11px;
  height: 11px;
  display: block; /* kill the inline baseline gap so it centers in the hover box */
}
.aw-win:hover {
  background: var(--surface-2);
  color: var(--text);
}
.aw-win.close:hover {
  background: var(--danger);
  color: #fff;
}

/* ----- session selector (centered) ----- */
.aw-account-wrap {
  position: relative;
}
.aw-account {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  max-width: 240px;
  padding: 0 10px 0 5px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.aw-account:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.aw-account .chev {
  width: 14px;
  height: 14px;
  color: var(--text-3);
  transition: transform 0.22s var(--ease);
}
.aw-account-wrap.open .aw-account .chev {
  transform: rotate(180deg);
}
.aw-avatar {
  position: relative;
  overflow: hidden;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--bg);
  background: linear-gradient(150deg, var(--on), var(--text-2));
  flex: 0 0 auto;
}
.aw-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* No selection: quiet outlined circle with a person glyph, not a blob. */
.aw-avatar.empty {
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  color: var(--text-3);
}
/* glyph (14px, even) centers on a whole-pixel gap in the 22px circle so it
   doesn't drift on resize; nudge up 1px (whole px) for optical centering */
.aw-avatar.empty svg {
  transform: translate(-0.5px, -1px);
}
.aw-acc-summary {
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aw-acc-menu {
  position: absolute;
  top: 38px;
  left: 50%;
  width: 296px;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 30;
  overflow: hidden;
}
.aw-acc-menu[hidden] {
  display: none;
}
.aw-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-bottom: 1px solid var(--border);
  font-weight: 650;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-3);
}
.aw-acc-head .h-actions {
  display: flex;
  gap: 6px;
}
.aw-icon-btn {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.aw-icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.aw-icon-btn svg {
  width: 14px;
  height: 14px;
}
.aw-acc-list {
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.aw-sess {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.16s var(--ease);
}
.aw-sess:hover {
  background: var(--on-softer);
}
.aw-sess.selected {
  background: var(--on-soft);
}
.aw-sess .s-main {
  flex: 1;
  min-width: 0;
}
.aw-sess .s-name {
  font-size: 13px;
  font-weight: 560;
}
.aw-sess .s-sub {
  font-size: 10.5px;
  color: var(--text-3);
}
.aw-check {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  background: transparent;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.aw-check svg {
  width: 11px;
  height: 11px;
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}
.aw-sess.selected .aw-check {
  background: var(--on);
  border-color: var(--on);
}
.aw-sess.selected .aw-check svg {
  opacity: 1;
}
.aw-check svg path {
  fill: none;
  stroke: var(--bg);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.aw-acc-foot {
  display: flex;
  gap: 7px;
  padding: 11px 13px;
  border-top: 1px solid var(--border);
}

/* tabs (interactive) */
.mock-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 10px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.mock-tabs::-webkit-scrollbar {
  display: none;
}
.mock-tabs .tab {
  font-size: 12px;
  color: var(--text-3);
  padding: 7px 14px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  border-bottom: none;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.mock-tabs .tab:hover {
  color: var(--text-2);
}
.mock-tabs .tab.active {
  color: var(--text);
  background: var(--ed-bg);
  border-color: var(--border);
}

/* ============================================================
   Live editor (textarea over highlighted <pre>)
   ============================================================ */
.ed {
  display: flex;
  background: var(--ed-bg);
  height: 300px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  transition: background 0.5s var(--ease);
}
.ed-gutter {
  flex: 0 0 auto;
  min-width: 44px;
  padding: 14px 10px 14px 16px;
  text-align: right;
  color: var(--ed-ln);
  background: var(--ed-bg);
  overflow: hidden;
  user-select: none;
  white-space: pre;
}
.ed-area {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}
.ed-hl,
.ed-input {
  margin: 0;
  border: 0;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0;
  tab-size: 2;
  white-space: pre;
  word-wrap: normal;
  overflow-wrap: normal;
}
.ed-hl {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  color: var(--ed-fg);
}
.ed-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  color: transparent;
  caret-color: var(--ed-cursor);
  resize: none;
  outline: none;
  overflow: auto;
}
.ed-input::selection {
  background: var(--ed-sel);
}
.ed-input::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.ed-input::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 6px;
  border: 2px solid var(--ed-bg);
}
.tk-com {
  color: var(--tk-com);
  font-style: italic;
}
.tk-key {
  color: var(--tk-key);
}
.tk-str {
  color: var(--tk-str);
}
.tk-num {
  color: var(--tk-num);
}
.tk-fn {
  color: var(--tk-fn);
}

/* hero editor: fixed height so switching tabs never resizes the page */
#heroDemo .ed {
  height: 286px;
  flex: 0 0 auto;
}

/* ============================================================
   Live demo section — faithful app window
   ============================================================ */
.app-window {
  background: var(--bg);
}

/* shell = sidebar + content */
.aw-shell {
  display: flex;
  height: 372px;
  min-height: 0;
}
.aw-sidebar {
  width: 168px;
  flex: 0 0 168px;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  gap: 2px;
}
.aw-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 540;
  text-align: left;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s;
}
.aw-nav::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 17px;
  border-radius: 0 3px 3px 0;
  background: var(--on);
  transform: translateY(-50%) scaleY(0);
  transition: transform 0.24s var(--ease-spring);
}
.aw-nav svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transition: color 0.16s;
}
.aw-nav:hover {
  background: var(--on-softer);
  color: var(--text);
}
.aw-nav.active {
  background: var(--surface-2);
  color: var(--text);
}
.aw-nav.active::before {
  transform: translateY(-50%) scaleY(1);
}
.aw-nav.active svg {
  color: var(--text);
}
.aw-side-foot {
  margin-top: auto;
  padding-top: 6px;
}
.aw-attach {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s;
}
.aw-attach .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-4);
  flex: 0 0 8px;
  transition: background 0.2s;
}
.aw-attach.attached {
  color: var(--text);
  border-color: var(--border-strong);
}
.aw-attach.attached .dot {
  background: var(--on);
}

/* content area + views */
.aw-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.aw-view {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0; /* override the global `section` padding leaking in */
  display: flex;
  flex-direction: column;
}
.aw-view[hidden] {
  display: none;
}
.aw-view.panel {
  padding: 18px 20px;
  gap: 14px;
  overflow-y: auto;
}
.aw-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.aw-view-head h3 {
  font-size: 15px;
  font-weight: 650;
}
.aw-muted {
  color: var(--text-3);
  font-size: 12.5px;
}

/* editor view */
.aw-view[data-panel="editor"] {
  justify-content: flex-start;
}
.app-window [data-panel="editor"] .mock-tabs {
  flex: 0 0 auto;
}
.app-window .ed {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
}
.app-window .aw-toolbar,
.app-window .aw-console {
  flex: 0 0 auto;
}
.aw-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.aw-sp {
  flex: 1;
}
.awbtn {
  height: 33px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s, transform 0.08s;
}
.awbtn:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
}
.awbtn:active {
  transform: scale(0.97);
}
.awbtn.primary {
  background: var(--on);
  border-color: var(--on);
  color: var(--on-ink);
}
.awbtn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}
.awbtn.ghost:hover {
  background: var(--on-softer);
  color: var(--text);
}
.awbtn.aw-xs {
  height: 27px;
  padding: 0 11px;
  font-size: 11px;
}

/* Execute is the only labelled action; the four utilities sit in one segmented
   block and Console reads as a toggle — mirrors the app's editor toolbar. */
.aw-run {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px 0 13px;
}
.aw-run .run-glyph {
  flex: none;
}
.aw-kbd {
  font: inherit;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.5px;
  opacity: 0.55;
}

.aw-btn-group {
  display: flex;
  align-items: stretch;
  height: 33px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
}
/* Per-segment radii instead of overflow:hidden — hidden would clip the
   [data-tip] tooltips. */
.aw-icon-act {
  position: relative;
  width: 36px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--text-2);
  border-left: 1px solid var(--border-2);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s;
}
.aw-icon-act:first-child {
  border-left: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.aw-icon-act:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.aw-icon-act:hover {
  background: var(--surface-3);
  color: var(--text);
}
.aw-icon-act:active {
  background: var(--surface-4);
}

.app-window [data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--surface-4);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.14s var(--ease), transform 0.14s var(--ease);
}
.app-window [data-tip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.aw-console-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.aw-console-toggle .chev {
  color: var(--text-3);
  margin-left: 2px;
  transition: transform 0.22s var(--ease);
}
.aw-console-toggle.open {
  background: var(--on-softer);
  color: var(--text);
}
.aw-console-toggle.open .chev {
  transform: rotate(180deg);
}

/* console */
.aw-console {
  border-top: 1px solid var(--border);
  background: var(--bg);
  max-height: 132px;
  display: flex;
  flex-direction: column;
}
.aw-console[hidden] {
  display: none;
}
.aw-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.aw-console-tabs {
  display: flex;
  gap: 2px;
}
.aw-console-tab {
  position: relative;
  padding: 8px 10px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-3);
  font: inherit;
  font-size: 11.5px;
  font-weight: 550;
  cursor: pointer;
  transition: color 0.15s var(--ease);
}
.aw-console-tab:hover {
  color: var(--text-2);
}
.aw-console-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}
.aw-console-body {
  flex: 1;
  padding: 8px 12px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
}
.aw-console-body[hidden] {
  display: none;
}
.aw-console-body:empty::before {
  content: attr(data-empty);
  color: var(--text-4);
}
.aw-console-body .cl {
  white-space: pre-wrap;
}
.aw-console-body .cl .ts {
  color: var(--text-4);
  margin-right: 8px;
}
.aw-console-body .ok {
  color: #43d17a;
}
.aw-console-body .exec {
  color: var(--on);
}
.aw-console-body .warn {
  color: #f0b35e;
}

/* statusbar */
.aw-status {
  height: 26px;
  flex: 0 0 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-2);
}
.aw-status .st-attach {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.aw-status .st-attach .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--surface-4);
}
.aw-status .st-attach.attached {
  color: var(--text);
}
.aw-status .st-attach.attached .dot {
  background: var(--on);
}
.aw-status .st-ready {
  color: var(--text);
  font-weight: 600;
}
.aw-status .st-ver {
  color: var(--text-4);
}

/* themes view — big square preset cards */
.aw-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.aw-theme-card {
  text-align: left;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s;
}
.aw-theme-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.aw-theme-card.active {
  border-color: var(--on);
  box-shadow: 0 0 0 1px var(--on), 0 8px 24px rgba(0, 0, 0, 0.5);
}
.aw-theme-prev {
  height: 62px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}
.aw-theme-prev .ln {
  height: 5px;
  border-radius: 3px;
}
.aw-theme-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-top: 1px solid var(--border);
}
.aw-theme-name {
  font-size: 12px;
  font-weight: 600;
}
.aw-theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* simple placeholder list rows (hub / autoload / scripts) */
.aw-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.aw-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.aw-row .r-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--text-2);
  flex: 0 0 auto;
}
.aw-row .r-ico svg {
  width: 16px;
  height: 16px;
}
.aw-row .r-main {
  flex: 1;
  min-width: 0;
}
.aw-row .r-title {
  font-size: 13px;
  font-weight: 560;
}
.aw-row .r-sub {
  font-size: 11px;
  color: var(--text-3);
}
.aw-row .awbtn {
  height: 28px;
  padding: 0 12px;
}

/* ----- script hub cards (New / Trending) ----- */
.aw-hub-sec {
  margin-bottom: 18px;
}
.aw-hub-head {
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  margin: 4px 0 10px;
}
.aw-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.aw-hub-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.aw-hub-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.aw-hub-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  color: var(--text-4);
}
.aw-hub-ph svg {
  width: 38%;
  height: 38%;
}
.aw-hub-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aw-hub-badges {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.aw-hub-badge {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 10, 12, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.aw-hub-badge.ver {
  color: #6ee7a8;
}
.aw-hub-badge.key {
  color: #ffd27a;
}
.aw-hub-game {
  font-size: 10.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aw-hub-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aw-hub-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: auto;
}
.aw-hub-meta svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

/* settings view — panels, switches, slider */
.aw-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.aw-panel h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.aw-set-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.aw-set-row:last-child {
  border-bottom: none;
}
.aw-set-row > label {
  flex: 1;
  font-weight: 550;
  font-size: 13px;
  color: var(--text);
}
.aw-set-sub {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 11px;
  color: var(--text-3);
}
.aw-hotkey {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  padding: 5px 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.aw-set-value {
  width: 26px;
  text-align: right;
  color: var(--text-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.aw-license-time {
  font-weight: 650;
  color: var(--on);
  font-size: 13px;
}
.aw-license-hwid {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}
.aw-switch {
  width: 44px;
  height: 25px;
  flex: 0 0 44px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface-3);
  position: relative;
  cursor: pointer;
  transition: background 0.22s var(--ease), border-color 0.22s;
}
.aw-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--text-2);
  transition: transform 0.28s var(--ease-spring), background 0.22s;
}
.aw-switch.on {
  background: var(--on);
  border-color: var(--on);
}
.aw-switch.on::after {
  transform: translateX(19px);
  background: var(--on-ink);
}
.aw-slider {
  position: relative;
  flex: 1;
  max-width: 200px;
  height: 26px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.aw-slider-track {
  position: relative;
  width: 100%;
  height: 4px;
  background: var(--surface-4);
  border-radius: 99px;
}
.aw-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--on);
  border-radius: 99px;
}
.aw-slider-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.7);
  transition: transform 0.16s var(--ease-spring);
}
.aw-slider:hover .aw-slider-thumb,
.aw-slider.grabbing .aw-slider-thumb {
  transform: translate(-50%, -50%) scale(1.25);
}
