Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

24.1 KB
Raw Blame
/*
 * LibreGet shell — window chrome in the macOS idiom.
 *
 *   ┌──────────────┬────────────────────────────────────────────┐
 *   │ ●●●          │  Title            [segmented]   [⌕ search]  │  ← titlebar/toolbar (glass)
 *   │ sidebar      │ ┌──────────────────────────────────────────┐│
 *   │ (glass over  │ │  content pane (opaque, rounded, inset)   ││
 *   │  window bg)  │ │                                          ││
 *   │              │ └──────────────────────────────────────────┘│
 *   └──────────────┴────────────────────────────────────────────┘
 *
 * The sidebar and toolbar are chrome and sit on the window material; the
 * content pane is the one opaque, elevated surface. Everything inside the
 * pane uses the grouped-list primitives, never a second shadowed card.
 */

[data-shell="mac"] {
  --sidebar-width: 224px;
  --titlebar-height: 44px;
  --toolbar-height: 44px;
  --inspector-width: 320px;
  --pane-inset: 8px;
  --pane-radius: var(--radius-lg);
}

[data-platform="macos"] {
  --titlebar-height: 52px;
}

/* ---------- Titlebar / toolbar ---------- */

.mac-titlebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  height: var(--titlebar-height);
  margin-inline-end: var(--pane-inset);
  padding: 0 var(--space-4);
  background: transparent;
  flex-shrink: 0;
  user-select: none;
  /* drag is `data-tauri-drag-region` in markup; WKWebView ignores -webkit-app-region */
}

.mac-titlebar-leading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.mac-titlebar-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: var(--track-snug);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-titlebar-title--quiet {
  color: var(--text-dim);
  font-weight: 500;
}

.mac-titlebar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.mac-titlebar-center .segmented-btn {
  height: 28px;
  min-width: 28px;
}

.mac-titlebar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  min-width: 0;
}

.mac-toolbar-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.mac-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  min-width: 28px;
  padding: 0 var(--space-2);
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

@media (hover: hover) {
  .mac-toolbar-btn:hover:not(:disabled) {
    background: var(--fill-2);
    color: var(--text);
  }
}

.mac-toolbar-btn:active:not(:disabled) {
  background: var(--fill-3);
}

.mac-toolbar-btn.active,
.mac-toolbar-btn[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent-hi);
}

.mac-toolbar-btn.prominent {
  background: var(--cta);
  color: var(--on-cta);
  padding: 0 var(--space-3);
}

@media (hover: hover) {
  .mac-toolbar-btn.prominent:hover:not(:disabled) {
    background: var(--cta-hover);
    color: var(--on-cta);
  }
}

.mac-toolbar-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.mac-toolbar-btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.mac-toolbar-sep {
  width: var(--hairline);
  height: 16px;
  margin: 0 var(--space-1);
  background: var(--separator);
}

.mac-search-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  min-width: 180px;
  padding: 0 6px 0 9px;
  background: var(--control-bg);
  color: var(--text-dim);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 var(--hairline) var(--content-border);
  cursor: text;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.mac-search-glyph {
  flex-shrink: 0;
  opacity: 0.8;
}

.mac-search-label {
  flex: 1;
  text-align: start;
  font-size: var(--text-base);
  font-weight: 400;
}

.mac-search-field .kbd {
  margin-inline-start: auto;
}

@media (hover: hover) {
  .mac-search-field:hover {
    color: var(--text-muted);
    background: var(--control-bg-hover);
  }
}

.mac-search-field:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

@media (max-width: 980px) {
  .mac-titlebar-center {
    display: none;
  }

  .mac-search-field {
    min-width: 28px;
    width: 28px;
    padding: 0;
    justify-content: center;
  }

  .mac-search-glyph {
    width: 12px;
    height: 12px;
  }

  .mac-search-label,
  .mac-search-field .kbd {
    display: none;
  }
}

/* Windows and Linux keep the native title bar: `titleBarStyle: Overlay` is
   macOS-only in tauri-runtime-wry, so the OS draws its own bar with the
   window controls *above* the webview. Nothing overlaps our toolbar there. */
[data-platform="other"] .mac-source-list-drag {
  height: var(--space-3);
}

/* ---------- Sidebar (source list) ---------- */

.mac-source-list {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  transition:
    width 200ms var(--ease-out),
    min-width 200ms var(--ease-out);
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 0 var(--space-2) var(--space-2);
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  position: relative;
  scrollbar-width: none;
}

.mac-source-list::-webkit-scrollbar {
  display: none;
}

.mac-source-list-drag {
  display: block;
  flex-shrink: 0;
  height: var(--titlebar-height);
  margin: 0 calc(var(--space-2) * -1) var(--space-1);
}

.mac-nav-section {
  margin-bottom: var(--space-4);
}

.mac-nav-section:last-child {
  margin-bottom: 0;
}

.mac-nav-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-2) var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-dim);
  min-height: 20px;
}

.mac-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 var(--space-2) 0 6px;
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: var(--text-base);
  font-weight: 450;
  text-decoration: none;
  position: relative;
  transition: background var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .mac-nav-item:hover:not(.active) {
    background: var(--fill-1);
  }
}

.mac-nav-item:active:not(.active) {
  background: var(--fill-2);
}

.mac-nav-item.active {
  background: var(--sidebar-highlight);
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 0 0 var(--hairline) color-mix(in srgb, var(--secondary) 6%, transparent);
}

.mac-nav-item:focus-visible {
  outline: var(--focus-ring);
  outline-offset: -2px;
}

.mac-nav-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mac-nav-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  color: var(--text-muted);
  background: var(--fill-2);
  border-radius: var(--radius-full);
  font-variant-numeric: tabular-nums;
}

.mac-nav-badge.live {
  color: var(--on-accent);
  background: var(--accent);
}

.mac-nav-badge.update-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0 6px;
}

.mac-plugins-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  border-radius: var(--radius-xs);
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.mac-nav-section:hover .mac-plugins-toggle,
.mac-plugins-toggle:focus-visible,
.mac-plugins-toggle[aria-expanded="false"] {
  opacity: 1;
}

@media (hover: hover) {
  .mac-plugins-toggle:hover {
    background: var(--fill-2);
    color: var(--text);
  }
}

.mac-source-list-footer {
  margin-top: auto;
  padding-top: var(--space-3);
}

[data-shell="mac"][data-sidebar="collapsed"],
[data-sidebar="collapsed"] {
  --sidebar-width: 64px;
}

[data-sidebar="collapsed"] .mac-nav-label,
[data-sidebar="collapsed"] .mac-nav-badge,
[data-sidebar="collapsed"] .mac-plugins-toggle {
  display: none;
}

[data-sidebar="collapsed"] .mac-nav-section-header {
  font-size: 0;
  min-height: 0;
  height: 1px;
  width: 24px;
  margin: 0 auto var(--space-2);
  padding: 0;
  background: var(--separator, var(--content-border));
}

[data-sidebar="collapsed"] .mac-nav-section-header > * {
  display: none;
}

[data-sidebar="collapsed"] .mac-nav-item {
  justify-content: center;
  padding: 0;
  height: 44px;
}

[data-sidebar="collapsed"] .mac-nav-item:has(.mac-nav-badge.live)::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--sidebar-bg, var(--bg));
}

/* Narrow windows: icon-only rail */
@media (max-width: 860px) {
  [data-shell="mac"] {
    --sidebar-width: 64px;
  }

  .mac-nav-label,
  .mac-nav-section-header,
  .mac-nav-badge,
  .mac-plugins-toggle {
    display: none;
  }

  .mac-nav-item {
    justify-content: center;
    padding: 0;
    height: 36px;
  }

  .mac-nav-item :global(.nav-tile) {
    --tile-size: 26px;
  }

  .mac-nav-item :global(.nav-penguin) {
    --icon-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mac-source-list {
    transition: none;
  }
}

/* ---------- Content pane ---------- */

.mac-pane {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--pane-bg);
  border-radius: var(--pane-radius);
  box-shadow:
    inset 0 0 0 var(--hairline) var(--content-border),
    inset 0 1px 0 color-mix(in srgb, var(--secondary) 5%, transparent),
    0 1px 2px rgba(var(--shadow-ink), var(--elev-alpha-1));
  margin-block: 0 var(--pane-inset);
  margin-inline: 0 var(--pane-inset);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

/* Plugin surfaces expect to be flex children of a column that fills the pane
   (`flex: 1; min-height: 0`), so this wrapper is a flex column, not a block. */
.mac-pane-scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateZ(0);
  will-change: scroll-position;
}

.mac-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
  min-width: 0;
}

.mac-content--home {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mac-content--pane {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* A page inside the pane: 20pt margins, readable measure by default */
.page {
  padding: var(--space-5) var(--space-6) var(--space-7);
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.page-wide {
  max-width: none;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.page-head .page-title {
  margin: 0;
}

.page-lede {
  font-size: var(--text-base);
  line-height: var(--leading-base);
  color: var(--text-dim);
  max-width: 60ch;
  margin-top: var(--space-1);
}

/* ---------- Inspector (trailing pane) ---------- */

.mac-inspector {
  width: var(--inspector-width);
  min-width: var(--inspector-width);
  background: var(--surface);
  overflow-y: auto;
  padding: var(--space-4);
  flex-shrink: 0;
  border-left: var(--hairline) solid var(--separator);
}

/* ---------- Command palette (Spotlight-style) ---------- */

.mac-command-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 24%, transparent);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16vh;
  animation: fade-in var(--duration-fast) var(--ease-out);
}

.mac-command-palette {
  width: min(600px, calc(100vw - 48px));
  background: var(--material-thick);
  backdrop-filter: var(--material-blur);
  -webkit-backdrop-filter: var(--material-blur);
  border-radius: var(--radius-xl);
  box-shadow: var(--elev-3);
  overflow: hidden;
  animation: pop-in var(--duration-base) var(--ease-spring);
  transform-origin: top center;
}

.mac-command-input-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 52px;
  padding: 0 var(--space-4);
  border-bottom: var(--hairline) solid var(--separator);
}

.mac-command-input-row > svg {
  color: var(--text-dim);
  flex-shrink: 0;
}

.mac-command-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text);
  outline: none;
}

.mac-command-input::placeholder {
  color: var(--text-dim);
}

.mac-command-input::-webkit-search-cancel-button {
  display: none;
}

.mac-command-list {
  max-height: 360px;
  overflow-y: auto;
  padding: var(--space-2);
}

.mac-command-group {
  padding: var(--space-2) var(--space-2) var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-dim);
}

.mac-command-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  height: 36px;
  padding: 0 var(--space-3);
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: var(--text-base);
  text-align: left;
  cursor: pointer;
}

.mac-command-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--fill-2);
  color: var(--text-muted);
  flex-shrink: 0;
}

.mac-command-item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mac-command-item-group {
  font-size: var(--text-xs);
  color: var(--text-dim);
}

.mac-command-item.selected {
  background: var(--accent);
  color: var(--on-accent);
}

.mac-command-item.selected .mac-command-item-group,
.mac-command-item.selected .mac-command-item-icon {
  color: inherit;
  background: color-mix(in srgb, var(--on-accent) 12%, transparent);
}

.mac-command-empty {
  padding: var(--space-6) var(--space-4);
  text-align: center;
  color: var(--text-dim);
  font-size: var(--text-base);
}

.mac-command-footer {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-dim);
  border-top: var(--hairline) solid var(--separator);
}

.mac-command-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.96) translateY(-6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- Settings shell (System Settings) ---------- */

.settings-mac {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0;
}

.settings-mac-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.settings-mac-sidebar {
  width: 208px;
  flex-shrink: 0;
  padding: var(--space-3) var(--space-2);
  background: var(--surface-mut);
  border-right: var(--hairline) solid var(--separator);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.settings-mac-cat {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  height: 30px;
  padding: 0 var(--space-2);
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--text);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

@media (hover: hover) {
  .settings-mac-cat:hover:not(.active) {
    background: var(--fill-1);
  }
}

.settings-mac-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  flex-shrink: 0;
}

.settings-mac-cat-icon svg {
  width: 13px;
  height: 13px;
}

.settings-cat-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.settings-mac-cat-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-mac-cat.search-match {
  color: var(--text);
}

.settings-cat-match-count {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hi);
}

.settings-mac-cat.active {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}

.settings-mac-cat.active .settings-mac-cat-icon {
  background: transparent;
  color: inherit;
}

.settings-mac-cat:focus-visible {
  outline: var(--focus-ring);
  outline-offset: -2px;
}

.settings-mac-nav-group {
  margin-bottom: var(--space-3);
}

.settings-mac-nav-group:last-child {
  margin-bottom: 0;
}

.settings-mac-nav-group .mac-nav-section-header {
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

.settings-mac-content {
  flex: 1;
  min-width: 0;
  padding: var(--space-5) var(--space-6) var(--space-7);
  overflow-y: auto;
}

.settings-mac-content > * {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.settings-hero {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: var(--hairline) solid var(--separator);
}

.settings-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

.settings-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.settings-identity h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--leading-xl);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  margin: 0;
  color: var(--text);
}

.settings-subtitle {
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  color: var(--text-muted);
  margin: 0;
}


/* ---------- Downloads shell ---------- */

.downloads-mac.downloads-page {
  max-width: none;
  margin: 0;
  padding: var(--space-4) var(--space-5) var(--space-6);
  gap: var(--space-3);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.downloads-mac .downloads-header {
  gap: var(--space-3);
}

.downloads-mac .downloads-stats {
  font-size: var(--text-sm);
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.downloads-mac .filter-pills {
  width: fit-content;
  max-width: 100%;
}

.downloads-mac-empty {
  flex: 1;
  min-height: 0;
  padding: var(--space-6) var(--space-4);
  gap: var(--space-4);
}

.downloads-mac .downloads-empty {
  min-height: 0;
  flex: 1;
  padding: var(--space-6) 0;
}

.downloads-table-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 var(--hairline) var(--content-border);
}

.downloads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.downloads-table th {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  font-weight: 600;
  color: var(--text-dim);
  font-size: var(--text-xs);
  border-bottom: var(--hairline) solid var(--separator);
}

.downloads-table td {
  padding: var(--space-2) var(--space-3);
  color: var(--text);
  vertical-align: middle;
  border-bottom: var(--hairline) solid var(--separator);
}

.downloads-table tr:last-child td {
  border-bottom: none;
}

@media (hover: hover) {
  .downloads-table tbody tr:hover {
    background: var(--fill-1);
  }
}

/* ---------- Home ---------- */

.home-mac {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  flex: 1;
  min-height: 0;
  padding: var(--space-3) var(--space-5) var(--space-3);
}

.home-mac--stage {
  padding: 0;
  gap: 0;
}

.home-mac {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.home-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.home-backdrop::before {
  content: "";
  position: absolute;
  left: 50%;
  top: clamp(28px, 17vh, 190px);
  width: min(820px, 110%);
  aspect-ratio: 1.5;
  transform: translate(-50%, -38%);
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 17%, transparent), transparent 72%);
}

.home-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 55% 42% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 42% at 50% 30%, #000 20%, transparent 75%);
}

.home-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: clamp(28px, 17vh, 190px) 20px 48px;
  overflow-x: hidden;
  overflow-y: auto;
  isolation: isolate;
}

.home-stage-inner {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.home-stage-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  display: flex;
  justify-content: center;
  transition: filter var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out);
}

.home-stage-hero--detecting {
  filter: blur(6px);
  opacity: 0.78;
}

/* one warm light behind the mascot — handled by home-backdrop to match OmniGet */
.home-stage-hero::before {
  display: none;
}

.home-secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) var(--space-2);
}

.home-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.home-secondary-link > svg {
  color: var(--text-dim);
  flex-shrink: 0;
}

@media (hover: hover) {
  .home-secondary-link:hover {
    color: var(--text);
    background: var(--fill-1);
  }
}

.home-secondary-link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.home-mac-workspace {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 0;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  background: transparent;
  padding: var(--space-4) var(--space-5) var(--space-3);
}

.home-mac-hero {
  flex-shrink: 0;
  width: 100%;
  max-width: 620px;
  padding: 0 0 var(--space-3);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: transparent;
  overflow: visible;
}

.home-mac-main {
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.home-secondary--start {
  justify-content: flex-start;
  margin-bottom: var(--space-1);
}

.stats-line {
  align-self: center;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  text-decoration: none;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.stats-line:hover {
  color: var(--text-muted);
  background: var(--fill-1);
}