/* AudioGhost Cloud shell: drawn with the app's own tokens, so it follows its light and dark themes. */

/* The desktop app's parts that have no place in the cloud: the PC's setup card (GPU, model downloads),
   the GPU status chip (the minutes chip takes its place), and batches (not in the cloud yet). */
section[aria-labelledby="setup-heading"],
button[aria-label^="System status"],
button[title="Separate the same sounds from more files, with this mix"] {
  display: none !important;
}

.agc-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
  background: var(--bg, #0d0e11);
  color: var(--text-1, #eceef2);
  font-family: var(--font-ui, Inter, system-ui, sans-serif);
}
.agc-overlay.agc-soft { background: rgba(5, 6, 8, 0.6); }
.agc-card {
  width: min(440px, 100%);
  padding: 32px;
  border: 1px solid var(--border, #272b34);
  border-radius: var(--radius-xl, 12px);
  background: var(--surface-2, #14161b);
  box-shadow: var(--shadow-dialog, 0 24px 64px rgba(0, 0, 0, 0.55));
}
.agc-small-card { width: min(400px, 100%); padding: 24px; }
.agc-brand { display: flex; align-items: center; gap: 10px; font: 600 15px/1 var(--font-display, var(--font-ui, sans-serif)); letter-spacing: 0.01em; }
.agc-mark { width: 22px; height: 22px; border-radius: 6px; background: url("/favicon.ico") center / cover no-repeat, var(--accent, #6a5ae0); }
.agc-cloud { color: var(--accent-text, #b3a7ff); }
.agc-card h1 { margin: 22px 0 8px; font: 600 24px/1.25 var(--font-display, var(--font-ui, sans-serif)); text-wrap: balance; }
.agc-card h2 { margin: 0 0 10px; font: 600 18px/1.3 var(--font-display, var(--font-ui, sans-serif)); }
.agc-card p { margin: 0 0 12px; color: var(--text-2, #b4bac6); font-size: 14px; line-height: 1.55; }
.agc-lede { margin-bottom: 22px !important; }
.agc-form { display: grid; gap: 8px; }
.agc-form label { font-size: 13px; color: var(--text-2, #b4bac6); }
.agc-form input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border-strong, #343944);
  border-radius: var(--radius-m, 8px);
  background: var(--bg-sunken, #0b0c0f);
  color: var(--text-1, #eceef2);
  font: inherit;
  font-size: 15px;
}
.agc-form input:focus { outline: none; box-shadow: var(--focus, 0 0 0 2px #0d0e11, 0 0 0 4px #8b7cf6); }
.agc-primary, .agc-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-m, 8px);
  font: 600 14px/1 var(--font-ui, sans-serif);
  cursor: pointer;
  text-decoration: none;
}
.agc-primary { border: 0; background: var(--accent, #6a5ae0); color: var(--text-on-accent, #fff); }
.agc-primary:hover { background: var(--accent-hover, #5b4bd6); }
.agc-primary:disabled { opacity: 0.6; cursor: default; }
.agc-secondary { width: 100%; margin-top: 10px; border: 1px solid var(--border-strong, #343944); background: transparent; color: var(--text-1, #eceef2); }
.agc-secondary:hover { background: var(--surface-3, #1b1e25); }
.agc-status { min-height: 1.4em; margin-top: 12px !important; color: var(--text-1, #eceef2) !important; }
.agc-note { font-size: 13px !important; color: var(--text-3, #8c93a1) !important; }
.agc-note a, .agc-card a:not(.agc-secondary) { color: var(--accent-text, #b3a7ff); }
.agc-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.agc-muted { color: var(--text-3, #8c93a1); }
.agc-small { font-size: 12.5px !important; }
.agc-plus { color: var(--success, #34c38f); }

.agc-chip {
  position: absolute;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border, #272b34);
  border-radius: 999px;
  background: var(--surface-2, #14161b);
  color: var(--text-1, #eceef2);
  font: 500 13px/1 var(--font-ui, sans-serif);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
}
.agc-chip:hover { border-color: var(--border-strong, #343944); }
.agc-chip:focus-visible { outline: none; box-shadow: var(--focus, 0 0 0 2px #0d0e11, 0 0 0 4px #8b7cf6); }
.agc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-strong, #8b7cf6); }
.agc-menu {
  position: absolute;
  z-index: 31;
  width: 280px;
  padding: 8px;
  border: 1px solid var(--border, #272b34);
  border-radius: var(--radius-l, 10px);
  background: var(--surface-2, #14161b);
  color: var(--text-1, #eceef2);
  box-shadow: var(--shadow-dialog, 0 24px 64px rgba(0, 0, 0, 0.55));
  font: 14px/1.45 var(--font-ui, sans-serif);
}
.agc-menu-head { padding: 8px 8px 10px; border-bottom: 1px solid var(--border-faint, #1f232b); }
.agc-menu-head strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.agc-usage { margin: 6px 0; padding: 0 8px; list-style: none; font-size: 13px; }
.agc-usage li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.agc-usage li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agc-usage li span:last-child { font-variant-numeric: tabular-nums; }
.agc-menu p { margin: 6px 8px; }
.agc-menu button {
  display: block;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: var(--radius-s, 6px);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.agc-menu button:hover, .agc-menu button:focus-visible { outline: none; background: var(--surface-3, #1b1e25); }
.agc-plans { display: grid; gap: 8px; margin: 4px 0 14px; }
.agc-plan {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong, #343944);
  border-radius: var(--radius-m, 8px);
  background: var(--surface-1, #111317);
  color: var(--text-1, #eceef2);
  font: 500 14px/1.2 var(--font-ui, sans-serif);
  text-align: left;
  cursor: pointer;
}
.agc-plan:hover { border-color: var(--accent-strong, #8b7cf6); background: var(--accent-soft, rgba(106, 90, 224, 0.2)); }
.agc-plan:focus-visible { outline: none; box-shadow: var(--focus, 0 0 0 2px #0d0e11, 0 0 0 4px #8b7cf6); }
.agc-plan-name { font-weight: 600; }
.agc-plan-minutes { color: var(--text-2, #b4bac6); font-variant-numeric: tabular-nums; }
.agc-plan-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.agc-ghost {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-strong, #343944);
  border-radius: var(--radius-m, 8px);
  background: transparent;
  color: var(--text-1, #eceef2);
  font: 500 14px/1 var(--font-ui, sans-serif);
  cursor: pointer;
}
.agc-ghost:hover { background: var(--surface-3, #1b1e25); }
.agc-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1001;
  max-width: min(480px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid var(--border-strong, #343944);
  border-radius: var(--radius-l, 10px);
  background: var(--surface-3, #1b1e25);
  color: var(--text-1, #eceef2);
  box-shadow: var(--shadow-dialog, 0 24px 64px rgba(0, 0, 0, 0.55));
  font: 14px/1.45 var(--font-ui, sans-serif);
  transform: translateX(-50%);
}
@media (max-width: 640px) {
  .agc-card { padding: 24px; }
  .agc-chip { height: 28px; padding: 0 10px; font-size: 12px; }
}
