﻿/* CROON account app styles. Ported from NextJS vercel/web globals.css (custom classes only; Tailwind imports/theme stripped). Scoped to /app and /login via this stylesheet. */

/* Minimal preflight replacement (Tailwind preflight is not available on static Pages). */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }

@layer base {
  * {
    letter-spacing: -0.02em;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    line-height: 1.8;
    background-color: hsl(0 0% 4%);
    color: hsl(0 0% 98%);
  }

  :root {
    --background: 0 0% 4%;
    --foreground: 0 0% 98%;
    --card: 0 0% 11%;
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 11%;
    --popover-foreground: 0 0% 98%;
    --primary: 30 100% 50%;
    --primary-foreground: 0 0% 0%;
    --secondary: 0 0% 15%;
    --secondary-foreground: 0 0% 85%;
    --muted: 0 0% 15%;
    --muted-foreground: 0 0% 60%;
    --accent: 30 100% 50%;
    --accent-foreground: 0 0% 0%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 100%;
    --border: 0 0% 16%;
    --input: 0 0% 16%;
    --ring: 30 100% 50%;
    --radius: 0.5rem;
    --bar-text: #fafafa;
    --bar-muted: #71717a;
    --bar-muted-2: #52525b;
    --bar-muted-3: #a1a1aa;
    --bar-panel: rgba(42, 42, 48, 0.95);
    --bar-line: rgba(255, 255, 255, 0.12);
    --bar-line-soft: rgba(255, 255, 255, 0.06);
    --bar-tooltip: rgba(9, 9, 11, 0.97);
  }
}

@property --bar-beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Particle flow animations */
@keyframes flowRight {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(160px);
    opacity: 0;
  }
}

@keyframes coreGlow {
  0%,
  100% {
    box-shadow:
      0 0 20px rgba(59, 130, 246, 0.5),
      0 0 40px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow:
      0 0 30px rgba(59, 130, 246, 0.7),
      0 0 60px rgba(59, 130, 246, 0.4);
  }
}

@keyframes rippleOut {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes bar-beam-rotate {
  from {
    --bar-beam-angle: 0deg;
  }
  to {
    --bar-beam-angle: 360deg;
  }
}

@keyframes bar-pulse {
  0%,
  100% {
    border-color: rgba(255, 153, 0, 0.3);
  }
  50% {
    border-color: #ff9900;
  }
}

@keyframes processing-card-pulse {
  0%,
  100% {
    border-color: rgba(255, 153, 0, 0.3);
  }
  50% {
    border-color: #ff9900;
  }
}

@keyframes arrowPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}

@keyframes brandFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brandPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(255, 153, 0, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 153, 0, 0.6));
  }
}

@keyframes color-fill {
  0% {
    clip-path: inset(100% 0 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

.animate-brand-fade-in {
  animation: brandFadeIn 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-brand-pulse {
  animation: brandPulse 2.6s ease-in-out infinite;
}

.animate-color-fill {
  animation: color-fill 2s ease-in-out infinite alternate;
}

.animate-brand-mark {
  animation:
    brandFadeIn 700ms cubic-bezier(0.16, 1, 0.3, 1) both,
    brandPulse 2.6s ease-in-out 700ms infinite;
}

.job-page-shell {
  --job-page-accent: #ff9900;
  --job-page-accent-hover: #e68a00;
  --job-page-surface: rgba(255, 255, 255, 0.025);
  --job-page-border: rgba(255, 255, 255, 0.07);
  --job-page-border-subtle: rgba(255, 255, 255, 0.04);
  min-height: 100vh;
  background: #0c0c0f;
  color: #fafafa;
}

.job-page-shell-embedded {
  min-height: auto;
  background: transparent;
}

.job-page-shell-embedded .job-page-content {
  height: auto;
  min-height: calc(100vh - 160px);
  overflow-y: visible;
}

.job-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 6px 20px;
  border-bottom: 1px solid var(--job-page-border-subtle);
  background: #0c0c0f;
}

.job-page-header-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.job-page-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.job-page-brand-logo {
  height: 24px;
  width: auto;
}

.job-page-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #fafafa;
}

.job-page-title.is-editable {
  cursor: pointer;
}

.job-page-title.is-editable:focus-visible {
  outline: 1px solid rgba(255, 153, 0, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

.job-page-title-edit-icon {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 150ms ease;
  color: #71717a;
}

.job-page-title.is-editable:hover .job-page-title-edit-icon,
.job-page-title.is-editable:focus-visible .job-page-title-edit-icon {
  opacity: 1;
}

.job-page-title-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-page-title-input {
  margin: 0;
  width: 100%;
  max-width: 100%;
  padding: 0 0 1px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #fafafa;
  font-size: 20px;
  font-weight: 600;
  outline: none;
}

.job-page-title-input:focus {
  border-bottom-color: rgba(255, 153, 0, 0.65);
}

.job-page-below-video-title {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 4px 0 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.job-page-below-video-title .job-page-title,
.job-page-below-video-title .job-page-title-input {
  flex: 1 1 auto;
  min-width: 0;
}

.job-page-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.job-page-player-row.no-transcript + .job-page-below-video-title {
  max-width: calc(100% - 352px);
  margin: 0 auto;
}

.job-page-below-video-title .job-page-title,
.job-page-below-video-title .job-page-title-input {
  width: 100%;
  max-width: 100%;
}

.job-page-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.job-page-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  margin: 0 0 8px;
}

.job-page-actions-spacer {
  flex: 1 1 auto;
}

.job-page-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #fafafa;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: background 150ms;
}

.job-page-create-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.job-page-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #71717a;
  font-size: 12px;
  margin-right: 8px;
  white-space: nowrap;
}

.job-page-btn,
.job-page-icon-btn,
.job-page-inline-notice-link,
.transcript-panel-action,
.transcript-panel-toggle {
  border: 1px solid var(--job-page-border);
  background: transparent;
  color: #d4d4d8;
  transition: color 150ms, background 150ms, border-color 150ms;
}

.job-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
}

.job-page-btn svg,
.job-page-views svg {
  flex-shrink: 0;
}

.job-page-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.job-page-btn:hover,
.job-page-icon-btn:hover,
.job-page-inline-notice-link:hover,
.transcript-panel-action:hover,
.transcript-panel-toggle:hover {
  color: #fafafa;
  border-color: rgba(255, 153, 0, 0.28);
  background: rgba(255, 153, 0, 0.08);
}

.job-page-btn:disabled,
.job-page-icon-btn:disabled,
.job-page-inline-notice-link:disabled,
.transcript-panel-action:disabled,
.transcript-panel-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.job-page-icon-btn.is-active {
  color: #fafafa;
  border-color: rgba(255, 153, 0, 0.28);
  background: rgba(255, 153, 0, 0.08);
}

.job-page-btn-primary {
  background: var(--job-page-accent);
  color: #000;
  border-color: var(--job-page-accent);
  font-weight: 700;
}

.job-page-btn-primary:hover {
  background: var(--job-page-accent-hover);
  color: #000;
  border-color: var(--job-page-accent-hover);
}

.job-page-btn-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--job-page-accent);
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.12);
}

.job-page-more-wrap {
  position: relative;
  flex-shrink: 0;
}

.job-page-save-wrap {
  position: relative;
}

.job-page-save-wrap .card-dropdown {
  right: 0;
  min-width: 160px;
}

.job-page-more-wrap .card-dropdown {
  right: 0;
}

.job-page-more-btn {
  justify-content: center;
}

.job-page-content {
  overflow-y: auto;
  height: calc(100vh - 48px);
  height: calc(100dvh - 48px);
  position: relative;
}

.job-page-edge-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 15, 0.85);
  border: 1px solid var(--job-page-border);
  color: #a1a1aa;
  text-decoration: none;
  transition: color 150ms, background 150ms, border-color 150ms;
}

.job-page-edge-nav:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.job-page-edge-nav-prev {
  left: 12px;
}

.job-page-edge-nav-next {
  right: 12px;
}

.job-page-video-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 20px 16px;
}

.job-page-video-stack {
  --job-page-transcript-space: 380px;
  width: 100%;
  max-width: calc((100vh - 180px) * 16 / 9 + var(--job-page-transcript-space));
  max-width: calc((100dvh - 180px) * 16 / 9 + var(--job-page-transcript-space));
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-page-video-stack:has(.job-page-player-row.no-transcript) {
  --job-page-transcript-space: 0px;
  max-width: calc((100vh - 180px) * 16 / 9);
  max-width: calc((100dvh - 180px) * 16 / 9);
}

.job-page-video-stack:has(.job-page-player-row.no-transcript)
  .job-page-player-row.no-transcript
  + .job-page-below-video-title {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.job-page-player-row {
  position: relative;
  min-width: 0;
  padding-right: var(--job-page-transcript-space);
}

.job-page-player-row.no-transcript {
  padding-right: 0;
}

.job-page-transcript-open-btn {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--job-page-border);
  background: rgba(255, 255, 255, 0.04);
  color: #71717a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 150ms, background 150ms;
}

.job-page-transcript-open-btn:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.08);
}

.job-page-left-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  gap: 8px;
}

.job-page-player-row.no-transcript .job-page-left-col {
  max-width: calc(100% - var(--job-page-transcript-space));
  margin: 0 auto;
  width: auto;
}


/* Custom scrollbar (black track, white thumb) */
html {
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

html::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.job-page-content::-webkit-scrollbar,
.transcript-panel-body::-webkit-scrollbar {
  width: 8px;
}

.job-page-content::-webkit-scrollbar-track,
.transcript-panel-body::-webkit-scrollbar-track {
  background: #111114;
}

.job-page-content::-webkit-scrollbar-thumb,
.transcript-panel-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.job-page-content::-webkit-scrollbar-thumb:hover,
.transcript-panel-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.job-page-video-frame {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 64px -16px rgba(0, 0, 0, 0.7);
}

.job-page-video,
.job-page-video-loading {
  width: 100%;
  display: block;
  background: #000;
  border-radius: 10px;
}

.job-page-video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.job-page-plyr-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.job-page-plyr-wrap .plyr {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.job-page-plyr-wrap .plyr--video {
  --plyr-color-main: #ff9900;
  --plyr-video-control-color: #fff;
  --plyr-video-control-color-hover: #ff9900;
  --plyr-video-control-background-hover: rgba(255, 255, 255, 0.16);
  --plyr-video-background: #000;
  --plyr-range-thumb-background: #ffffff;
  --plyr-range-thumb-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --plyr-font-size-base: 16px;
  --plyr-font-size-small: 14px;
  --plyr-font-size-medium: 18px;
  --plyr-font-size-large: 22px;
  --plyr-font-size-xlarge: 26px;
  --plyr-font-size-captions-small: 18px;
  --plyr-font-size-captions-base: 22px;
  --plyr-font-size-captions-medium: 26px;
  --plyr-font-size-captions-large: 32px;
  --plyr-captions-background: rgba(0, 0, 0, 0.78);
  --plyr-captions-text-color: #fff;
}

.job-page-plyr-wrap .plyr__captions {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 400;
  padding: 10px 14px;
}
.job-page-plyr-wrap .plyr--fullscreen-active .plyr__captions {
  font-size: 38px;
}
.job-page-plyr-wrap .plyr__caption {
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 2px 10px;
  margin: 0;
  border-radius: 4px;
  line-height: 1.2;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.job-page-plyr-wrap .plyr__caption + .plyr__caption {
  margin-top: 2px;
}

.job-page-plyr-wrap .plyr--video .plyr__controls {
  padding: 28px 16px 12px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.6) 55%,
    transparent 100%
  );
}

.job-page-video-loading {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Job detail skeleton */
.job-page-video-skeleton {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(63, 63, 70, 0.6), rgba(24, 24, 27, 0.92));
  animation: skeleton-shimmer 1.5s ease-in-out infinite alternate;
}


.job-page-loading-logo {
  width: 32px;
  height: 32px;
  animation: pulse-logo 1.5s ease-in-out infinite;
}

.job-page-loading-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.job-page-transcript-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.job-page-transcript-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  animation: skeleton-shimmer 1.5s ease-in-out infinite alternate;
}

@keyframes skeleton-shimmer {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

@keyframes pulse-logo {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.job-page-action-bar {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
}

.job-page-action-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-page-action-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.job-page-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms, color 150ms;
  white-space: nowrap;
}

.job-page-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fafafa;
}

.job-page-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.job-page-action-btn svg {
  flex-shrink: 0;
}

.job-page-frame-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  min-height: 36px;
}

.job-page-frame-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.job-page-frame-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.job-page-expiry-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}

.job-page-expiry-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.job-page-expiry-banner .job-page-expiry-title {
  color: rgba(255, 255, 255, 0.95);
}

.job-page-expiry-banner::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.job-page-expiry-banner.warn::before {
  background: #f59e0b;
}

.job-page-expiry-banner.urgent::before,
.job-page-expiry-banner.expired::before {
  background: #f87171;
}

.job-page-expiry-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.job-page-expiry-subtitle {
  margin: 4px 0 0;
  color: rgba(250, 250, 250, 0.64);
  font-size: 12px;
  line-height: 1.4;
}

.job-page-expired-panel {
  padding: 24px;
  border: 1px solid rgba(248, 113, 113, 0.24);
  border-radius: 20px;
  background: rgba(127, 29, 29, 0.16);
  text-align: center;
}

.job-page-expired-title {
  margin: 0;
  color: #fecaca;
  font-size: 18px;
  font-weight: 600;
}

.job-page-expired-copy {
  margin: 8px 0 0;
  color: rgba(254, 202, 202, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.job-page-revival-list {
  margin: 16px auto 0;
  padding-left: 20px;
  max-width: 360px;
  color: rgba(254, 202, 202, 0.86);
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
}

.job-page-revival-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.job-page-revival-primary,
.job-page-revival-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  transition: background 150ms, border-color 150ms, color 150ms;
}

.job-page-revival-primary {
  border: 1px solid #ff9900;
  background: #ff9900;
  color: #09090b;
}

.job-page-revival-primary:hover {
  background: #ffad33;
  border-color: #ffad33;
}

.job-page-revival-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
}

.job-page-revival-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

.job-page-action-skeleton {
  width: 80px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(63, 63, 70, 0.6), rgba(24, 24, 27, 0.92));
  animation: skeleton-shimmer 1.5s ease-in-out infinite alternate;
}

.job-page-action-btn-primary {
  background: var(--job-page-accent);
  color: #000;
  font-weight: 700;
}

.job-page-action-btn-primary:hover {
  background: var(--job-page-accent-hover);
  color: #000;
}

.job-page-up-next {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-top: 8px;
}

.job-page-up-next-title {
  font-size: 15px;
  font-weight: 600;
  color: #fafafa;
  margin: 0 0 14px;
}

.job-page-up-next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.job-page-up-next-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  border-radius: 10px;
  padding: 6px;
  transition: background 150ms;
}

.job-page-up-next-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.job-page-up-next-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #18181b;
}

.job-page-up-next-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-page-up-next-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71717a;
}

.job-page-up-next-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fafafa;
  font-size: 11px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.3;
}

.job-page-up-next-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 2px;
  min-width: 0;
}

.job-page-up-next-name {
  font-size: 13px;
  font-weight: 500;
  color: #e4e4e7;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-page-up-next-card:hover .job-page-up-next-name {
  color: #fafafa;
}

.job-page-up-next-meta {
  font-size: 12px;
  color: #71717a;
  line-height: 1.3;
}

.job-page-inline-notice {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 153, 0, 0.2);
  background: rgba(255, 153, 0, 0.05);
}

.job-page-share-cta {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.job-page-inline-notice-error {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.job-page-inline-notice-text {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e4e4e7;
  font-size: 13px;
  line-height: 1.5;
}

.job-page-inline-notice-error .job-page-inline-notice-text {
  color: #fca5a5;
}

.job-page-inline-notice-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.job-page-transcript-col {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 368px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--job-page-border);
  border-radius: 10px;
}


.transcript-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--job-page-border-subtle);
}

.transcript-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: #fafafa;
}

.transcript-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.transcript-panel-action {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--job-page-border);
  background: transparent;
  color: #71717a;
}

.transcript-panel-action:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.05);
}

.transcript-panel-toggle {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--job-page-border);
  background: transparent;
  color: #71717a;
}

.transcript-panel-toggle:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.05);
}

.transcript-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin: 8px 10px;
  border: 1px solid var(--job-page-border-subtle);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.transcript-search-icon {
  flex-shrink: 0;
  color: #52525b;
}

.transcript-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fafafa;
  font-size: 12px;
  outline: none;
}

.transcript-search-input::placeholder {
  color: #52525b;
}

.transcript-search-count {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--job-page-accent);
  font-weight: 600;
}

.transcript-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 8px 12px;
}

.transcript-panel-empty {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #71717a;
  font-size: 13px;
  text-align: center;
}

.transcript-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding: 10px 10px 10px 8px;
  border-left: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 150ms, color 150ms, border-color 150ms;
}

.transcript-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.transcript-row.is-active {
  background: rgba(255, 153, 0, 0.08);
  border-left-color: #FF9900;
}

.transcript-row-time {
  color: #8b8b94;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  line-height: 1.5;
}

.transcript-row.is-active .transcript-row-time {
  color: #FF9900;
}

.transcript-row-text {
  min-width: 0;
  color: #e4e4e7;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}

.transcript-highlight {
  background: rgba(255, 153, 0, 0.25);
  color: var(--job-page-accent);
  border-radius: 2px;
  padding: 0 1px;
}

.job-page-loading-spinner {
  color: var(--job-page-accent);
}

.job-page-progress {
  background: rgba(255, 153, 0, 0.16);
}

.job-page-progress > div {
  background: var(--job-page-accent);
}

.transcript-reopen-btn {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid var(--job-page-border);
  border-radius: 8px;
  background: rgba(12, 12, 15, 0.92);
  color: #71717a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: color 150ms, background 150ms;
}

.transcript-reopen-btn:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  .job-page-header {
    padding: 6px 16px;
  }

  .job-page-header-right {
    gap: 6px;
  }

  .job-page-content {
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
  }

  .job-page-video-col {
    padding: 18px 20px;
  }

  .job-page-video-stack {
    --job-page-transcript-space: 312px;
  }

  .job-page-transcript-col {
    width: 300px;
  }
}

@media (max-width: 768px) {
  .job-page-header {
    gap: 8px;
    padding: 6px 12px;
  }

  .job-page-header-right {
    gap: 6px;
  }

  .job-page-video-col {
    padding: 16px;
  }

  .job-page-player-row {
    padding-right: 0;
  }

  .job-page-left-col {
    width: 100%;
    max-width: none;
  }

  .job-page-player-row.no-transcript .job-page-left-col {
    max-width: none;
    margin: 0;
  }

  .job-page-below-video-title,
  .job-page-player-row.no-transcript + .job-page-below-video-title {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .job-page-transcript-col {
    position: static;
    width: auto;
    max-height: 300px;
    margin-top: 12px;
  }

  .job-page-video-stack,
  .job-page-video-frame,
  .job-page-inline-notice,
  .job-page-share-cta {
    max-width: none;
  }

  .job-page-video-stack:has(.job-page-player-row.no-transcript) {
    max-width: none;
  }

  .job-page-inline-notice {
    flex-wrap: wrap;
  }

  .job-page-action-bar {
    flex-wrap: wrap;
  }

  .job-page-actions-row {
    flex-wrap: wrap;
  }

  .job-page-action-btn span {
    display: none;
  }

  .job-page-action-btn {
    padding: 0 12px;
  }
}

.animate-flow-right {
  animation: flowRight 2.5s ease-in-out infinite;
}

.animate-core-glow {
  animation: coreGlow 2s ease-in-out infinite;
}

.animate-ripple {
  animation: rippleOut 2s ease-out infinite;
}

.animate-arrow-pulse {
  animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes equalize {
  0%, 100% {
    transform: scaleY(0.65);
    opacity: 0.55;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes beamDrift {
  0%, 100% {
    transform: rotate(14deg) translate3d(0, 0, 0);
    opacity: 0.28;
  }
  50% {
    transform: rotate(18deg) translate3d(24px, -12px, 0);
    opacity: 0.42;
  }
}

@keyframes flowConnector {
  0% {
    transform: translate3d(0, -50%, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate3d(64px, -50%, 0);
    opacity: 0;
  }
}

.reveal-section {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hover-lift {
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
  border-color: rgba(255, 255, 255, 0.16);
}

.equalizer-bar {
  transform-origin: bottom;
  animation: equalize 1.35s ease-in-out infinite;
}

.animate-flow-connector {
  animation: flowConnector 2.2s ease-in-out infinite;
}

.landing-beam {
  position: absolute;
  width: min(54vw, 560px);
  height: 150px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(34, 211, 238, 0.34) 45%, rgba(255, 255, 255, 0.08) 100%);
  filter: blur(22px);
  opacity: 0.3;
  pointer-events: none;
  transform: rotate(14deg);
  animation: beamDrift 10s ease-in-out infinite;
}

.landing-beam-secondary {
  background: linear-gradient(90deg, transparent 0%, rgba(244, 114, 182, 0.26) 45%, rgba(255, 255, 255, 0.07) 100%);
  animation-delay: 2.4s;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-flow-right,
  .animate-flow-connector,
  .animate-core-glow,
  .animate-ripple,
  .animate-arrow-pulse,
  .animate-brand-fade-in,
  .animate-brand-pulse,
  .animate-brand-mark,
  .equalizer-bar,
  .landing-beam {
    animation: none;
  }

  .bar,
  .bar-preview::after,
  .bar-embed::after,
  .bar-composer::before,
  .bar.is-loading::before,
  .project-thumb-wrap.is-processing {
    animation: none !important;
  }

  .reveal-section,
  .reveal-section.is-visible,
  .hover-lift,
  .hover-lift:hover {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
  }
}

.app-shell {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  background: #09090b;
  color: #fafafa;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 60px;
  height: 100vh;
  padding: 12px 8px;
  background: #09090b;
  overflow: visible;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: width 200ms ease, padding 200ms ease;
}

.sidebar.expanded {
  width: 220px;
  padding: 12px;
}

.sidebar.sidebar-mobile {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.sidebar.sidebar-mobile.expanded {
  width: 100%;
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 2px 0;
  margin-bottom: 10px;
}

.sidebar.expanded .sidebar-brand-row,
.sidebar.sidebar-mobile .sidebar-brand-row {
  justify-content: space-between;
}

.sidebar-brand-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sidebar-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-brand-logo {
  height: 28px;
  width: auto;
  opacity: 0;
  transition: opacity 200ms;
}

.sidebar.expanded .sidebar-brand-logo {
  opacity: 1;
}

.sidebar-brand-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  padding: 0;
}

.sidebar-brand-toggle-default,
.sidebar-brand-toggle-hover {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.sidebar-brand-toggle-hover {
  display: none;
}

.sidebar-brand-text {
  font-family: var(--font-inter), Inter, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fafafa;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 200ms;
  position: relative;
  display: inline-block;
  padding-bottom: 1px;
}

.sidebar-brand-text::after {
  display: none;
}

.sidebar.expanded .sidebar-brand-text {
  opacity: 1;
}

.sidebar-toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-icon,
.profile-button,
.toolbar-icon,
.menu-action,
.sidebar-nav-item,
.tab-button,
.toggle-pill {
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease,
    opacity 150ms ease;
}

.nav-icon,
.toolbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fafafa;
  background: transparent;
  cursor: pointer;
}

.nav-icon:hover,
.toolbar-icon:hover,
.menu-action:hover,
.sidebar-nav-item:hover {
  background: rgba(39, 39, 42, 0.70);
  border-color: #303033;
}

.menu-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fafafa;
  background: transparent;
}

.sidebar-toggle {
  flex-shrink: 0;
}

.sidebar-toggle-icon {
  transition: transform 150ms ease;
}

.sidebar-toggle-icon.is-rotated {
  transform: rotate(180deg);
}

.sidebar-brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(250, 250, 250, 0.8);
  white-space: nowrap;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-spacer-top {
  flex: 0 0 40px;
}


.sidebar-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 62px;
  padding: 6px 0;
  margin: 0 auto 8px;
  border: 1px solid #27272a;
  border-radius: 8px;
  background: #09090b;
  color: #fafafa;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.sidebar.expanded .sidebar-user,
.sidebar.sidebar-mobile .sidebar-user,
.sidebar-user.expanded {
  flex-direction: row;
  justify-content: flex-start;
  width: auto;
  align-self: stretch;
  min-height: 44px;
  height: auto;
  padding: 10px 12px;
  margin-inline: 0;
  gap: 10px;
}

.sidebar-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fafafa;
  flex-shrink: 0;
  object-fit: cover;
}

.sidebar-user-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-chevron {
  width: 16px;
  height: 16px;
  color: #a1a1aa;
  flex-shrink: 0;
  margin-left: auto;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 6px 4px;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  color: #52525b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 8px 4px;
  white-space: nowrap;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar.expanded .sidebar-nav {
  gap: 6px;
}

.sidebar-nav-divider {
  width: 28px;
  height: 1px;
  margin: 4px auto;
  background: rgba(255, 255, 255, 0.10);
}

.sidebar.expanded .sidebar-nav-divider,
.sidebar.sidebar-mobile .sidebar-nav-divider {
  width: 100%;
  margin: 6px 0;
}

.language-toggle {
  margin: 0 auto;
}

.sidebar.expanded .language-toggle,
.sidebar.sidebar-mobile .language-toggle {
  margin: 0;
}

.language-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #71717a;
}

.language-toggle-label .is-active {
  color: #fafafa;
}

.language-toggle-separator {
  color: #52525b;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #fafafa;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.sidebar.expanded .sidebar-nav-item,
.sidebar.sidebar-mobile .sidebar-nav-item {
  width: 100%;
  margin: 0;
  padding: 0 10px;
  justify-content: flex-start;
}

.menu-action.active,
.sidebar-nav-item.active {
  background: rgba(39, 39, 42, 0.80);
  border-color: #303033;
}

.sidebar-nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-nav-label {
  white-space: nowrap;
}

.sidebar-nav-label-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}

.sidebar-plan-badge {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #b4b4be;
  background: rgba(255, 255, 255, 0.06);
  width: fit-content;
}

.sidebar-user-wrap {
  position: relative;
  width: 100%;
}


.sidebar-user-item {
  position: relative;
  z-index: 41;
  height: auto;
  min-height: 40px;
  padding: 8px 0;
  overflow: visible;
}

.sidebar.expanded .sidebar-user-item,
.sidebar.sidebar-mobile .sidebar-user-item {
  padding: 8px 10px;
}

.sidebar-user-avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-user-avatar-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fafafa;
  flex-shrink: 0;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sidebar-user-name-text {
  font-size: 13px;
  font-weight: 500;
  color: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #ffffff;
  color: #18181b;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  z-index: 40;
  padding: 6px 0;
  overflow: hidden;
}


.sidebar:not(.expanded) .sidebar-toggle-row,
.sidebar:not(.expanded) .sidebar-user {
  justify-content: center;
}

.sidebar:not(.expanded) .sidebar-nav-item {
  justify-content: center;
  padding: 0;
}

.sidebar:not(.expanded) .language-toggle.is-collapsed {
  justify-content: center;
  padding: 0;
}

.sidebar:not(.expanded) .sidebar-user-item {
  justify-content: center;
  padding: 0;
}

.sidebar:not(.expanded) .sidebar-divider {
  margin-inline: 0;
}

.main-column {
  position: relative;
  min-height: 100vh;
  padding-left: 60px;
  background: #09090b;
  transition: padding-left 200ms ease;
}

.main-column.sidebar-expanded {
  padding-left: 220px;
}

.main-column.is-full {
  padding-left: 0;
  background: #09090b;
  color: #fafafa;
}

.topbar {
  position: fixed;
  top: 0;
  left: 60px;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 12px 24px;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: left 200ms ease;
}

.topbar.sidebar-expanded {
  left: 220px;
}

.topbar.is-full {
  left: 0;
  display: none;
}

.topbar.is-full + .scroll-panel {
  padding-top: 0;
}

.topbar-sidebar-toggle {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color 150ms, background 150ms;
}

.topbar-sidebar-toggle:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.05);
}

.topbar.sidebar-expanded .topbar-sidebar-toggle {
  display: none;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.topbar-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  color: rgba(250, 250, 250, 0.82);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.topbar-bell {
  flex-shrink: 0;
}

.topbar-notification-wrap {
  position: relative;
  display: flex;
  flex-shrink: 0;
}

.topbar-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: rgba(250, 250, 250, 0.7);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
  flex-shrink: 0;
}

.topbar-bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 2px solid #18181b;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.topbar-bell-btn:hover,
.topbar-bell-btn:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #fafafa;
  outline: none;
}

.topbar-notification-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 45;
  width: 320px;
  max-height: min(70vh, 600px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #0a0a0a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  color: #fafafa;
}

.topbar-notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 600;
}

.topbar-notification-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 153, 0, 0.12);
  color: #ff9900;
  font-size: 11px;
  font-weight: 700;
}

.topbar-notification-list {
  padding: 0;
}

.topbar-notification-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: inherit;
  text-decoration: none;
}

.topbar-notification-item:last-child {
  border-bottom: 0;
}

.topbar-notification-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.topbar-notification-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.topbar-notification-icon.is-completed {
  color: #22c55e;
}

.topbar-notification-icon.is-failed {
  color: #ef4444;
}

.topbar-notification-icon.is-warn {
  color: #f59e0b;
}

.topbar-notification-text {
  flex: 1;
  min-width: 0;
}

.topbar-notification-title,
.topbar-notification-time {
  display: block;
}

.topbar-notification-title {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-notification-time {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1.35;
}

.topbar-notification-empty {
  padding: 24px 14px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  text-align: center;
}

.topbar-credit-popover-wrap {
  display: flex;
}

.topbar-credits {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  color: #fafafa;
  cursor: pointer;
}

.topbar-credits:hover,
.topbar-credits:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.topbar-credits svg {
  flex-shrink: 0;
}

.topbar-credit-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 45;
  width: 260px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #0a0a0a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  color: #fafafa;
}

.topbar-credit-popover-header,
.topbar-credit-popover-balance {
  display: flex;
  align-items: center;
}

.topbar-credit-popover-header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.topbar-credit-popover-plan {
  font-size: 14px;
  font-weight: 700;
}

.topbar-credit-popover-active {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
}

.topbar-credit-popover-balance {
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
}

.topbar-credit-popover-reset {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.4;
}

.topbar-credit-popover-add {
  width: 100%;
  margin-top: 14px;
}

.topbar-credit-popover-link {
  display: block;
  margin-top: 12px;
  color: #ff9900;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.topbar-credit-popover-link:hover {
  text-decoration: underline;
}

.topbar-credit-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.topbar-pricing-caption {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.48);
  white-space: nowrap;
}

.topbar-add-credits {
  white-space: nowrap;
}

.trial-plan-banner-wrap {
  padding: 0;
  text-align: center;
}

.trial-plan-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.5;
  vertical-align: top;
}

.trial-plan-banner-copy {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trial-plan-banner svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.trial-plan-banner-link {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.trial-plan-banner-link:hover {
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.topbar-user-menu-wrap {
  position: relative;
}

.topbar-user-btn {
  position: relative;
  z-index: 41;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 150ms;
}

.topbar-user-btn:hover {
  opacity: 0.8;
}

.topbar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fafafa;
}


.topbar-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: #ffffff;
  color: #18181b;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  z-index: 40;
  padding: 6px 0;
  overflow: hidden;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #27272a;
  border-radius: 8px;
  background: #27272a;
  color: #fafafa;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.secondary-btn:hover {
  background: #3f3f46;
}

.scroll-panel {
  position: relative;
  height: 100vh;
  padding-top: 60px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.scroll-panel::-webkit-scrollbar {
  width: 6px;
}

.scroll-panel::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.scroll-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.main-inner {
  position: relative;
  min-height: calc(100vh - 60px);
  padding: 16px 24px 44px;
}

.main-inner.is-full {
  min-height: 100vh;
  padding: 0;
  background: #09090b;
  color: #fafafa;
}


@keyframes settings-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.settings-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 0 48px;
  color: #fafafa;
}

.settings-header {
  margin-bottom: 24px;
}

.settings-title {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fafafa;
}

.settings-subtitle {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
}

.settings-list {
  display: flex;
  flex-direction: column;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.settings-row-label {
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 500;
  color: #fafafa;
}

.settings-row-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.settings-select {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
  font-size: 14px;
  cursor: pointer;
}

.settings-select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.settings-action-btn,
.settings-danger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.settings-action-btn:hover:not(:disabled),
.settings-danger-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.settings-action-btn:disabled,
.settings-danger-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.settings-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.settings-spinner {
  animation: settings-spin 0.8s linear infinite;
}

.settings-confirm-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-confirm-text {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.settings-cancel-btn,
.settings-confirm-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.settings-cancel-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #fafafa;
}

.settings-confirm-delete {
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
  color: #fda4af;
}

.settings-cancel-btn:disabled,
.settings-confirm-delete:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .settings-page {
    padding: 16px 16px 32px;
  }

  .settings-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .settings-confirm-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

.subscription-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 0 48px;
  color: #fafafa;
}

.subscription-header {
  margin-bottom: 28px;
}

.subscription-title {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fafafa;
}

.subscription-subtitle {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
}

.subscription-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.subscription-stat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.subscription-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.subscription-stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.subscription-stat-value {
  font-size: 14px;
  font-weight: 500;
  color: #fafafa;
}

.subscription-stat-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.subscription-credit-meters {
  display: grid;
  gap: 16px;
}

.subscription-credit-meter {
  display: grid;
  gap: 7px;
}

.subscription-meter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.subscription-meter-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscription-stat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.subscription-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.subscription-progress-bar {
  height: 100%;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  transition: width 200ms ease;
}

.subscription-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.subscription-secondary-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.subscription-secondary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.subscription-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  background: #ff9900;
  color: #18181b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.auto-recharge-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 16px;
}

.auto-recharge-notice-title,
.auto-recharge-section-label {
  font-size: 13px;
  font-weight: 600;
  color: #fafafa;
}

.auto-recharge-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auto-recharge-help {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.auto-recharge-tax {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.auto-recharge-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.auto-recharge-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auto-recharge-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.auto-recharge-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.auto-recharge-input:focus-within {
  border-color: rgba(255, 255, 255, 0.32);
}

.auto-recharge-input-prefix {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.auto-recharge-input-field {
  width: 100%;
  background: transparent;
  border: 0;
  color: #fafafa;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  outline: none;
  appearance: textfield;
}

.auto-recharge-input-field::-webkit-outer-spin-button,
.auto-recharge-input-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.auto-recharge-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 36px;
  height: 20px;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background-color 150ms ease;
}

.auto-recharge-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auto-recharge-toggle.is-on {
  background: #ff9900;
}

.auto-recharge-toggle-thumb {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fafafa;
  transition: transform 150ms ease;
}

.auto-recharge-toggle.is-on .auto-recharge-toggle-thumb {
  transform: translateX(16px);
}

.auto-recharge-add-btn,
.auto-recharge-cancel-btn,
.auto-recharge-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.auto-recharge-add-btn,
.auto-recharge-cancel-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
}

.auto-recharge-add-btn {
  flex-shrink: 0;
  padding: 0 10px;
}

.auto-recharge-cancel-btn {
  padding: 0 12px;
}

.auto-recharge-add-btn:hover,
.auto-recharge-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.auto-recharge-save-btn {
  min-width: 72px;
  padding: 0 14px;
  border: 0;
  background: #ff9900;
  color: #18181b;
  font-weight: 600;
}

.auto-recharge-save-btn:hover:not(:disabled) {
  background: #ffad33;
}

.auto-recharge-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auto-recharge-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 24px;
}

@media (max-width: 520px) {
  .auto-recharge-notice,
  .auto-recharge-label-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .auto-recharge-hint {
    white-space: normal;
  }
}

.subscription-primary-btn:hover:not(:disabled) {
  background: #ffad33;
}

.subscription-primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.subscription-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.subscription-billing-toggle button {
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.subscription-billing-toggle button.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fafafa;
}

.subscription-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.subscription-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.subscription-plan-card.is-featured {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.subscription-plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #ff9900;
  color: #18181b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.subscription-plan-name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fafafa;
}

.subscription-plan-mode-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  align-self: flex-start;
}

.subscription-plan-mode-toggle button {
  height: 24px;
  padding: 0 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.subscription-plan-mode-toggle button.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fafafa;
}

.subscription-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.subscription-plan-price-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fafafa;
}

.subscription-plan-price-period {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.subscription-plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #fafafa;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.subscription-plan-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}

.subscription-plan-btn-primary {
  background: #ff9900;
  border-color: #ff9900;
  color: #18181b;
}

.subscription-plan-btn-primary:hover:not(:disabled) {
  background: #ffad33;
  border-color: #ffad33;
}

.subscription-plan-btn-current {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  cursor: default;
}

.subscription-plan-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subscription-plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.subscription-plan-feature.is-disabled {
  color: rgba(255, 255, 255, 0.35);
}

.subscription-plan-feature svg {
  margin-top: 3px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
}

.subscription-plan-feature.is-disabled svg {
  color: rgba(255, 255, 255, 0.3);
}

.subscription-plan-feature.is-plus {
  font-weight: 500;
  color: #fafafa;
}

.subscription-plan-feature.is-plus svg {
  color: #ff9900;
}

@media (max-width: 1024px) {
  .subscription-stats {
    grid-template-columns: 1fr;
  }

  .subscription-plans {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .subscription-page {
    padding: 16px 16px 32px;
  }
}

/* 笏笏 Analytics Page 笏笏 */

.analytics-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 0 40px;
  color: #fafafa;
}

.analytics-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.analytics-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #ffb84d;
}

.analytics-title {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0;
  color: #fafafa;
}

.analytics-subtitle {
  max-width: 620px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.58);
}

.analytics-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.analytics-stat-card,
.analytics-panel {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.analytics-stat-card {
  display: flex;
  min-height: 144px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
}

.analytics-stat-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffb84d;
}

.analytics-stat-label {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.52);
}

.analytics-stat-value {
  font-size: 26px;
  font-weight: 650;
  line-height: 1.05;
  color: #fafafa;
}

.analytics-stat-date {
  font-size: 20px;
  line-height: 1.25;
}

.analytics-stat-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

.analytics-balance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.analytics-panel {
  padding: 18px;
}

.analytics-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.analytics-panel-header h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 650;
  color: #fafafa;
}

.analytics-panel-header p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.52);
}

.analytics-panel-header svg {
  color: rgba(255, 255, 255, 0.42);
  flex-shrink: 0;
}

.analytics-bucket-stack {
  display: flex;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.analytics-bucket-fill {
  min-width: 0;
  height: 100%;
}

.analytics-bucket-fill.is-monthly,
.analytics-dot.is-monthly {
  background: #ff9900;
}

.analytics-bucket-fill.is-rollover,
.analytics-dot.is-rollover {
  background: #60a5fa;
}

.analytics-bucket-fill.is-topup,
.analytics-dot.is-topup {
  background: #34d399;
}

.analytics-bucket-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.analytics-bucket-list div,
.analytics-note-list div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.analytics-bucket-list div {
  align-items: flex-start;
  flex-direction: column;
  border-bottom: none;
}

.analytics-bucket-list span,
.analytics-note-list span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.54);
}

.analytics-bucket-list strong,
.analytics-note-list strong {
  font-size: 14px;
  font-weight: 600;
  color: #fafafa;
}

.analytics-dot {
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.analytics-usage-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(18px, 1fr));
  gap: 6px;
  min-height: 176px;
  align-items: end;
}

.analytics-usage-day {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.analytics-usage-bar-track {
  display: flex;
  width: 100%;
  height: 128px;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
}

.analytics-usage-bar {
  display: block;
  width: 100%;
  border-radius: 7px 7px 0 0;
  background: #ff9900;
}

.analytics-usage-day span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.analytics-source-list,
.analytics-note-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analytics-source-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.analytics-source-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.analytics-source-meta span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.analytics-source-meta strong {
  font-size: 13px;
  color: #fafafa;
}

.analytics-source-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.analytics-source-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.analytics-note-list div:last-child {
  border-bottom: none;
}

.analytics-ledger-panel {
  margin-top: 12px;
}

.analytics-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
}

.analytics-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

.analytics-table th {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.analytics-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
  color: #fafafa;
}

.analytics-table tr:last-child td {
  border-bottom: none;
}

.analytics-table-time {
  color: rgba(255, 255, 255, 0.62) !important;
  white-space: nowrap;
}

.analytics-event-detail {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.analytics-event-detail strong,
.analytics-event-link {
  overflow: hidden;
  color: #fafafa;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-event-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.analytics-event-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.analytics-event-title strong,
.analytics-event-title small {
  display: block;
}

.analytics-event-title strong {
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 600;
  color: #fafafa;
}

.analytics-event-title small {
  max-width: 420px;
  overflow: hidden;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-event-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.analytics-event-icon.is-in {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

.analytics-event-icon.is-out {
  background: rgba(251, 146, 60, 0.12);
  color: #fdba74;
}

.analytics-event-icon.is-neutral {
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
}

.analytics-event-icon.is-scheduled {
  background: rgba(250, 250, 250, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.analytics-source-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.analytics-credit-delta {
  display: block;
  margin-bottom: 0;
  font-weight: 650;
  color: #fafafa;
  white-space: nowrap;
}

.analytics-credit-delta.is-in {
  color: #86efac;
}

.analytics-credit-delta.is-out {
  color: #fdba74;
}

.analytics-credit-delta.is-scheduled,
.analytics-credit-delta.is-neutral {
  color: rgba(255, 255, 255, 0.78);
}

.analytics-direction-label,
.analytics-table-muted {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
}

.analytics-job-link {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.analytics-job-link:hover {
  color: #fafafa;
}

.analytics-empty {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.analytics-empty.is-compact {
  min-height: 80px;
}

@media (max-width: 1080px) {
  .analytics-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-balance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .analytics-page {
    padding: 16px 16px 32px;
  }

  .analytics-header {
    flex-direction: column;
  }

  .analytics-stat-grid {
    grid-template-columns: 1fr;
  }

  .analytics-bucket-list {
    grid-template-columns: 1fr;
  }
}

.analytics-eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.analytics-proof-panel {
  padding: 28px 30px 22px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.analytics-proof-header,
.analytics-controls,
.analytics-filter-row,
.analytics-proof-footer,
.analytics-ledger-header,
.analytics-pagination,
.analytics-ledger-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.analytics-proof-header {
  align-items: flex-start;
  margin-bottom: 24px;
}

.analytics-proof-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.25;
  color: #fafafa;
}

.analytics-proof-title-block {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
}

.analytics-proof-header p {
  max-width: 680px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.52);
}

.analytics-proof-total {
  display: flex;
  min-width: 148px;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.analytics-proof-total span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

.analytics-proof-total strong {
  font-size: 24px;
  font-weight: 650;
  line-height: 1;
  color: #fafafa;
}

.analytics-controls {
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.analytics-segment {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.analytics-segment button,
.analytics-clear-filter,
.analytics-pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    opacity 150ms ease;
}

.analytics-segment button {
  height: 30px;
  padding: 0 10px;
}

.analytics-segment button:hover,
.analytics-clear-filter:hover,
.analytics-pagination button:hover:not(:disabled) {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.06);
}

.analytics-segment button.active {
  color: #18181b;
  background: #fafafa;
}

.analytics-filter-row {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.analytics-select {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.analytics-select span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
}

.analytics-select select {
  min-width: 86px;
  border: 0;
  outline: none;
  background: transparent;
  color: #fafafa;
  font-size: 12px;
  font-weight: 600;
}

.analytics-select option {
  color: #18181b;
}

.analytics-proof-chart {
  display: block;
  min-height: 252px;
  padding: 0;
  overflow-x: auto;
}

.analytics-line-chart {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 22px;
  min-width: 680px;
}

.analytics-line-y-axis {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  height: 220px;
  padding: 3px 0 22px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  text-align: right;
}

.analytics-line-y-axis span:nth-child(1) {
  align-self: start;
}

.analytics-line-y-axis span:nth-child(2) {
  align-self: center;
}

.analytics-line-y-axis span:nth-child(3) {
  align-self: end;
}

.analytics-line-plot {
  min-width: 0;
}

.analytics-line-svg {
  display: block;
  width: 100%;
  height: 220px;
}

.analytics-line-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.4;
  vector-effect: non-scaling-stroke;
}

.analytics-line-area {
  fill: rgba(255, 255, 255, 0.055);
}

.analytics-line-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.analytics-line-labels {
  display: grid;
  grid-template-columns: repeat(var(--analytics-point-count, 14), minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
}

.analytics-line-labels span {
  overflow: hidden;
  min-height: 14px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.analytics-chart-column {
  display: grid;
  grid-template-rows: 92px 1px 92px 28px;
  min-width: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.analytics-chart-column:hover,
.analytics-chart-column.active {
  color: #fafafa;
}

.analytics-chart-positive,
.analytics-chart-negative {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
}

.analytics-chart-negative {
  align-items: flex-start;
}

.analytics-chart-positive > span,
.analytics-chart-negative > span {
  display: block;
  width: 100%;
  max-width: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
}

.analytics-chart-column.active .analytics-chart-positive > span,
.analytics-chart-column.active .analytics-chart-negative > span,
.analytics-chart-column:hover .analytics-chart-positive > span,
.analytics-chart-column:hover .analytics-chart-negative > span {
  background: #fafafa;
}

.analytics-chart-zero {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.analytics-chart-label {
  align-self: end;
  overflow: hidden;
  padding-top: 8px;
  font-size: 10px;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.analytics-proof-footer,
.analytics-ledger-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.52);
}

.analytics-proof-footer span,
.analytics-clear-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.analytics-clear-filter {
  height: 30px;
  padding: 0 10px;
  border-color: rgba(255, 255, 255, 0.08);
}

.analytics-stat-icon,
.analytics-panel-header svg,
.analytics-event-icon,
.analytics-event-icon.is-in,
.analytics-event-icon.is-out,
.analytics-event-icon.is-neutral,
.analytics-event-icon.is-scheduled {
  color: rgba(255, 255, 255, 0.72);
}

.analytics-stat-icon,
.analytics-event-icon,
.analytics-event-icon.is-in,
.analytics-event-icon.is-out,
.analytics-event-icon.is-neutral,
.analytics-event-icon.is-scheduled {
  background: rgba(255, 255, 255, 0.06);
}

.analytics-bucket-fill.is-monthly,
.analytics-bucket-fill.is-rollover,
.analytics-bucket-fill.is-topup,
.analytics-usage-bar,
.analytics-source-track span {
  background: rgba(255, 255, 255, 0.72);
}

.analytics-dot.is-monthly,
.analytics-dot.is-rollover,
.analytics-dot.is-topup {
  background: rgba(255, 255, 255, 0.72);
}

.analytics-credit-delta,
.analytics-credit-delta.is-in,
.analytics-credit-delta.is-out,
.analytics-credit-delta.is-scheduled,
.analytics-credit-delta.is-neutral {
  color: #fafafa;
}

.analytics-bucket-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analytics-bucket-list div {
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.analytics-ledger-header {
  align-items: flex-start;
}

.analytics-pagination {
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 8px;
}

.analytics-pagination button {
  width: 30px;
  height: 30px;
  border-color: rgba(255, 255, 255, 0.08);
}

.analytics-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.analytics-pagination span {
  min-width: 48px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
}

.analytics-table {
  table-layout: fixed;
}

.analytics-col-time,
.analytics-table th:nth-child(1),
.analytics-table td:nth-child(1) {
  width: 150px;
}

.analytics-col-detail {
  width: auto;
}

.analytics-table th:nth-child(2),
.analytics-table td:nth-child(2) {
  width: auto;
}

.analytics-col-kind,
.analytics-table th:nth-child(3),
.analytics-table td:nth-child(3) {
  width: 118px;
}

.analytics-col-credits,
.analytics-table th:nth-child(4),
.analytics-table td:nth-child(4) {
  width: 124px;
}

.analytics-table-muted {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 1080px) {
  .analytics-controls {
    flex-direction: column;
  }

  .analytics-filter-row {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .analytics-proof-header,
  .analytics-proof-footer,
  .analytics-ledger-header,
  .analytics-ledger-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-proof-total {
    width: 100%;
    align-items: flex-start;
  }

  .analytics-segment,
  .analytics-filter-row,
  .analytics-select {
    width: 100%;
  }

  .analytics-segment button {
    flex: 1 1 calc(50% - 4px);
  }

  .analytics-filter-row {
    gap: 8px;
  }

  .analytics-select {
    justify-content: space-between;
  }

  .analytics-proof-chart {
    min-height: 220px;
  }

  .analytics-controls {
    padding-left: 0;
  }

  .analytics-bucket-list {
    grid-template-columns: 1fr;
  }
}

.bar-title {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.bar {
  position: relative;
  z-index: 1;
  height: 56px;
  padding: 6px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  background: var(--bar-panel);
  border: 1px solid var(--bar-line);
  border-radius: 999px;
  transition: border-color 160ms ease, box-shadow 400ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
}

/* CTA inside .bar should fill the bar inner height so left/right & top/bottom
   inset feel balanced (otherwise CTA looks vertically thin vs. its horizontal padding). */
.bar > .cta {
  align-self: stretch;
  height: auto;
}

.bar-input-wrap {
  position: relative;
  border-radius: 999px;
}

.bar-input-wrap.has-preview,
.bar-input-wrap.has-embed {
  border-radius: 999px;
}

.bar.is-loading {
  overflow: hidden;
  isolation: isolate;
  border-color: transparent;
  box-shadow: none;
  animation: none;
}

.bar.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--bar-beam-angle),
    transparent 0%,
    transparent 70%,
    #ff9900 85%,
    transparent 100%
  );
  animation: bar-beam-rotate 2s linear infinite;
  z-index: 3;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.bar:focus-within {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  animation: none;
}

.bar.is-loading:focus-within {
  border-color: transparent;
  box-shadow: none;
  animation: none;
}

/* Bar Composer (bar + preview container) */
.bar-composer {
  position: relative;
  z-index: 10;
  max-width: 760px;
  margin: 0 auto;
}

.bar-composer::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  max-width: 140%;
  height: 450px;
  background: radial-gradient(
    ellipse 65% 50% at 50% 55%,
    rgba(255, 153, 0, 0.12) 0%,
    rgba(255, 140, 0, 0.06) 25%,
    rgba(255, 120, 0, 0.02) 45%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
  animation: glow-sway 12s ease-in-out infinite;
}

@keyframes glow-sway {
  0%, 100% {
    transform: translateX(-50%) scale(1) translateY(0px);
    opacity: 1;
  }
  25% {
    transform: translateX(-48%) scale(1.05) translateY(-6px);
    opacity: 0.85;
  }
  50% {
    transform: translateX(-52%) scale(0.97) translateY(4px);
    opacity: 1.1;
  }
  75% {
    transform: translateX(-49%) scale(1.03) translateY(-3px);
    opacity: 0.9;
  }
}

/* preview 縺後≠繧区凾縺ｧ繧・bar 縺ｯ pill 縺ｮ縺ｾ縺ｾ縲｝review 縺ｯ迢ｬ遶九き繝ｼ繝峨→縺励※荳九↓驟咲ｽｮ */
.bar-composer.has-preview .bar,
.bar-composer.has-embed .bar {
  border-radius: 999px;
  box-shadow: none;
  animation: none;
}

/* Bar Preview (metadata card, 迢ｬ遶九＠縺滉ｸｸ隗偵き繝ｼ繝・ */
.bar-preview {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 14px;
  margin-top: 8px;
  background: var(--bar-panel);
  border: 1px solid var(--bar-line);
  border-radius: 20px;
}

.bar-preview::after {
  content: "";
  display: none;
}

.bar-preview-thumb-wrap {
  position: relative;
  width: 120px;
  flex-shrink: 0;
}

.bar-preview-thumb-wrap img {
  width: 120px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #111114;
  display: block;
}

.bar-preview-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 160ms ease;
}

.bar-preview-thumb-wrap:hover .bar-preview-play {
  opacity: 1;
}

.bar-preview-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bar-preview-title {
  margin: 0;
  color: #fafafa;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bar-preview-meta {
  margin: 4px 0 0;
  color: rgba(250, 250, 250, 0.5);
  font-size: 12px;
  line-height: 1.5;
}

/* Upload chip inside bar */
.upload-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 13px;
  color: #e4e4e7;
  max-width: 100%;
  overflow: hidden;
}

.upload-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.upload-chip-progress {
  color: #a1a1aa;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.upload-chip-done {
  color: #32d399;
  flex-shrink: 0;
}

.upload-chip-clear {
  background: none;
  border: none;
  color: #71717a;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  flex-shrink: 0;
  transition: color 140ms;
}

.upload-chip-clear:hover {
  color: #e4e4e7;
}

/* Language multi-select */
.lang-multi-wrap {
  position: relative;
}

.lang-multi-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  font-size: 13px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.lang-multi-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* URL 繝舌・ (.bar) 蜀・・ lang 繝医Μ繧ｬ繝ｼ 窶・蟷ｳ蟶ｸ縺ｯ騾乗・縲”over/active 縺ｧ荳ｸ pill 縺檎樟繧後ｋ */
.bar .lang-multi-trigger {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
}

.bar .lang-multi-trigger:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: transparent;
}

.bar .lang-multi-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
  border-color: transparent;
}

.bar .lang-multi-trigger svg {
  width: 12px;
  height: 12px;
}

.lang-multi-trigger svg {
  opacity: 0.6;
  transition: transform 150ms ease;
}

.lang-multi-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.lang-multi-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  z-index: 100;
  min-width: 160px;
  width: max-content;
  max-width: min(280px, calc(100vw - 32px));
  max-height: 320px;
  overflow-y: auto;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.lang-multi-header {
  padding: 10px 12px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 153, 0, 0.85);
  text-transform: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.lang-multi-dropdown::-webkit-scrollbar {
  width: 6px;
}

.lang-multi-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.lang-multi-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.lang-multi-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lang-multi-option {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: #e4e4e7;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background 100ms ease;
}

.lang-multi-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-multi-option.is-selected {
  background: rgba(255, 153, 0, 0.08);
  color: #ffffff;
}

.lang-multi-option.is-selected::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2214%22 height=%2214%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23ff9900%22 stroke-width=%223%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpolyline points=%2220 6 9 17 4 12%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.lang-check-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.lang-multi-option .lang-check-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 10px;
  transition: all 150ms ease;
}

.lang-multi-option .lang-check-box svg {
  opacity: 0;
  transition: opacity 120ms ease;
}

.lang-check-input:checked + .lang-check-box {
  border-color: rgba(255, 153, 0, 0.6);
  background: #ff9900;
  color: #000;
}

.lang-check-input:checked + .lang-check-box svg {
  opacity: 1;
}

.lang-multi-option.is-single .lang-check-box {
  display: none;
}

/* Bar Embed (YouTube iframe) */
.bar-embed {
  position: relative;
  background: #000;
  border: 1px solid var(--bar-line);
  border-top: none;
  border-radius: 0 0 20px 20px;
  overflow: visible;
}

.bar-embed::after {
  content: "";
  position: absolute;
  top: -56px;
  left: -1px;
  right: -1px;
  bottom: 0;
  border-radius: 12px 12px 20px 20px;
  box-shadow: none;
  pointer-events: none;
  z-index: -1;
}

.bar-embed-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bar-embed-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.bar-embed-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

.upload-wrap,
.input-wrap,
.lang-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: -4px;
  min-width: 0;
}

.upload-wrap {
  flex-shrink: 0;
  margin-right: 0;
}

.bar-or {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font: 500 14px/1 "Inter", sans-serif;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  user-select: none;
}

@media (max-width: 720px) {
  .bar-or {
    font-size: 13px;
  }
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fafafa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease;
}

.upload-wrap:hover .icon-btn,
.icon-btn:hover,
.icon-btn:focus-visible {
  color: var(--bar-text);
  outline: none;
}

.bar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.bar-row .bar {
  flex: 0 1 560px;
  min-width: 0;
  max-width: 560px;
}

.bar-row.bar-row-solo .bar {
  flex: 1 1 auto;
  max-width: 100%;
}

.bar-url-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.upload-btn {
  height: 56px;
  padding: 0 22px 0 18px;
  border: 1px solid var(--bar-line);
  border-radius: 999px;
  background: var(--bar-panel);
  color: var(--bar-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: 500 15px/1 "Inter", sans-serif;
  letter-spacing: -0.01em;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 140ms ease, border-color 160ms ease, color 140ms ease;
  flex-shrink: 0;
}

.upload-btn:hover,
.upload-btn:focus-visible {
  background: var(--bar-panel);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--bar-text);
  outline: none;
}

.upload-btn-label {
  display: inline;
}

@media (max-width: 720px) {
  .bar-row {
    flex-direction: column;
    gap: 10px;
  }
  .bar-row .bar {
    width: 100%;
  }
  .upload-btn {
    width: auto;
    height: 48px;
    padding: 0 18px;
  }
}

.divider {
  display: none;
}

.input-wrap {
  flex: 1;
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
}

.url-input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--bar-text);
  font: 400 15px/1.2 "Inter", sans-serif;
  padding: 0;
  position: relative;
  z-index: 1;
}

.url-input:focus {
  outline: none;
}

.animated-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  color: var(--bar-muted-2);
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.animated-placeholder strong {
  color: var(--bar-muted-3);
  font-weight: 600;
}

.animated-placeholder.is-fading,
.animated-placeholder.is-hidden {
  opacity: 0;
}

.lang-wrap {
  position: relative;
  margin-left: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.select-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e4e4e7;
  padding: 8px 12px;
  font: 500 14px/1 inherit;
  cursor: pointer;
  transition: background-color 140ms ease;
  white-space: nowrap;
}

.lang-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-trigger-text {
  color: #fafafa;
}

.lang-dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: #1c1c20;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 4px;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.lang-dropdown-item {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  padding: 8px 12px;
  font: 500 13px/1 inherit;
  cursor: pointer;
  text-align: left;
  transition: background-color 100ms ease, color 100ms ease;
}

.lang-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fafafa;
}

.lang-dropdown-item.is-active {
  color: #ff9900;
}

.select-shell::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  color: inherit;
  pointer-events: none;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  color-scheme: dark;
  padding: 8px 30px 8px 14px;
  font: 500 14px/1 var(--font-inter), var(--font-dm-sans), sans-serif;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.lang-select option {
  background: #18181b;
  color: #fafafa;
  color-scheme: dark;
}

.lang-wrap:hover .lang-select,
.lang-select:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--bar-text);
  outline: none;
}

.cta {
  height: 40px;
  min-width: 136px;
  padding: 0 20px;
  margin-left: 8px;
  border: 0;
  border-radius: 999px;
  background: #ff9900;
  color: #000;
  cursor: pointer;
  box-shadow: none;
  transition: transform 100ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.cta-text .cta-label {
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.cta:hover {
  transform: scale(1.02);
}

.cta:active {
  transform: scale(0.99);
}

.cta:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
  pointer-events: none;
}

.lang-wrap-label {
  position: absolute;
  top: -14px;
  left: 12px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
  pointer-events: none;
}

.tooltip {
  position: absolute;
  top: calc(100% + 4px);
  background: #ffffff;
  color: #18181b;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
  z-index: 100;
  text-align: left;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.upload-wrap .tooltip {
  left: -8px;
  width: min(320px, calc(100vw - 32px));
}

.upload-wrap.is-upload-button .tooltip {
  left: 50%;
  transform: translate(-50%, -4px);
}

/* 繧ｸ繝ｧ繝冶ｩｳ邏ｰ縺ｮ謚慕ｨｿ/蜈ｱ譛峨・繧ｿ繝ｳ縺ｮ tooltip 蜈ｱ騾壹Ξ繧､繧｢繧ｦ繝・*/
.job-page-post-wrap,
.job-page-share-btn-wrap {
  position: relative;
  display: inline-flex;
}

.job-page-post-wrap .tooltip,
.job-page-share-btn-wrap .tooltip {
  left: 50%;
  transform: translate(-50%, -4px);
  width: max-content;
  max-width: min(280px, calc(100vw - 32px));
}

.input-wrap .tooltip {
  left: 0;
  width: max-content;
  max-width: min(360px, calc(100vw - 32px));
}

.lang-wrap .tooltip {
  right: 0;
  width: max-content;
  max-width: min(220px, calc(100vw - 32px));
  white-space: nowrap;
}

.upload-wrap:hover .tooltip,
.upload-wrap:focus-within .tooltip,
.input-wrap:hover .tooltip,
.input-wrap:focus-within .tooltip,
.lang-wrap:hover .tooltip,
.lang-wrap:focus-within .tooltip,
.bar:hover .input-wrap .tooltip,
.bar:focus-within .input-wrap .tooltip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.upload-wrap.is-upload-button:hover .tooltip,
.upload-wrap.is-upload-button:focus-within .tooltip {
  transform: translate(-50%, 0);
}

.job-page-post-wrap:hover .tooltip,
.job-page-post-wrap:focus-within .tooltip,
.job-page-share-btn-wrap:hover .tooltip,
.job-page-share-btn-wrap:focus-within .tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.bar.is-loading .tooltip {
  opacity: 0 !important;
  transform: translateY(-4px) !important;
  pointer-events: none;
}

.bar .tooltip,
.bar-row .upload-wrap .tooltip {
  top: calc(100% + 8px);
  bottom: auto;
  transform: translateY(-4px);
  background: #ffffff;
  color: #18181b;
  border-color: #e4e4e7;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bar-row .upload-wrap .tooltip .tooltip-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.bar-row .upload-wrap .tooltip .tooltip-text,
.bar-row .upload-wrap .tooltip .chip {
  color: rgba(255, 255, 255, 0.92);
}

.bar .tooltip .tooltip-label {
  color: #71717a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.bar .tooltip .tooltip-text {
  color: #3f3f46;
  line-height: 1.55;
}

.bar .tooltip .tooltip-note {
  color: #71717a;
}

.bar .tooltip .chip-row,
.bar-row .upload-wrap .tooltip .chip-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.bar .tooltip .chip,
.bar-row .upload-wrap .tooltip .chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  padding: 0;
  border: 0;
  color: #18181b;
  font-size: 13px;
  font-weight: 500;
}

.bar .tooltip .chip.muted,
.bar-row .upload-wrap .tooltip .chip.muted {
  color: rgba(255, 255, 255, 0.5);
}

.bar .tooltip .chip-icon,
.bar-row .upload-wrap .tooltip .chip-icon {
  width: 14px;
  height: 14px;
  opacity: 0.82;
}

/* LP variant 窶・landing-page URL bar (.bar-row) uses dark tooltip on dark bg.
   Placed after all .bar .tooltip child rules so LP overrides win via source order. */
.bar-row .bar .tooltip,
.bar-row .upload-wrap .tooltip {
  background: rgba(20, 20, 22, 0.92);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}

.bar-row .bar .tooltip .tooltip-label,
.bar-row .upload-wrap .tooltip .tooltip-label {
  color: rgba(255, 255, 255, 0.55);
}

.bar-row .bar .tooltip .tooltip-text,
.bar-row .upload-wrap .tooltip .tooltip-text,
.bar-row .bar .tooltip .chip,
.bar-row .upload-wrap .tooltip .chip {
  color: rgba(255, 255, 255, 0.92);
}

.bar-row .bar .tooltip .tooltip-note,
.bar-row .upload-wrap .tooltip .tooltip-note,
.bar-row .bar .tooltip .chip.muted,
.bar-row .upload-wrap .tooltip .chip.muted {
  color: rgba(255, 255, 255, 0.5);
}

.bar .tooltip .tooltip-block + .tooltip-block,
.bar-row .upload-wrap .tooltip .tooltip-block + .tooltip-block {
  margin-top: 12px;
}

.bar .tooltip strong,
.bar .tooltip b,
.bar-row .upload-wrap .tooltip strong,
.bar-row .upload-wrap .tooltip b {
  color: inherit;
  font-weight: 600;
}

.bar .upload-wrap:hover .tooltip,
.bar .upload-wrap:focus-within .tooltip,
.bar .input-wrap:hover .tooltip,
.bar .input-wrap:focus-within .tooltip,
.bar .lang-wrap:hover .tooltip,
.bar .lang-wrap:focus-within .tooltip {
  transform: translateY(0);
}

.tooltip-block + .tooltip-block {
  margin-top: 10px;
}

.tooltip-label {
  margin-bottom: 6px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #71717a;
}

.chip-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chip-row.compact {
  gap: 8px;
}

.chip {
  font-size: 13px;
  color: #18181b;
  font-weight: 500;
}

.chip.muted {
  color: #71717a;
  font-weight: 400;
}

.tooltip-text {
  font-size: 12px;
  line-height: 1.55;
  color: #3f3f46;
}

.tooltip-text strong {
  font-size: 12px;
  color: #18181b;
  font-weight: 600;
}

.tooltip-text .medium {
  font-weight: 500;
}

.tooltip-note {
  color: #71717a;
}

.hint-link {
  position: relative;
  z-index: 0;
  display: inline-block;
  font-size: 14px;
  color: #666;
  text-decoration: none;
}

.hint-link-wrap {
  margin-top: 10px;
  padding-right: 24px;
  text-align: right;
}

.hint-link:hover {
  color: #f59e0b;
  border-color: #f59e0b;
}

.feature-slab {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  padding: 0 12px;
}

@media (max-width: 1100px) {
  .feature-slab {
    flex-wrap: wrap;
    gap: 10px 14px;
  }
}

@media (max-width: 768px) {
  .feature-slab {
    display: none;
  }
}

.slab-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: help;
  flex: 0 0 auto;
  min-width: 84px;
  transition: background 160ms ease;
}

.slab-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.slab-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #18181b;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 10px 14px;
  width: max-content;
  max-width: 320px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
  z-index: 20;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.slab-item:hover .slab-tooltip {
  opacity: 1;
}

.slab-tooltip-title {
  font-size: 13px;
  font-weight: 700;
  color: #18181b;
  margin-bottom: 6px;
}

.slab-tooltip-body {
  font-size: 12px;
  color: #3f3f46;
  line-height: 1.6;
}

.slab-tooltip-body strong {
  color: #18181b;
  font-weight: 600;
}

.workflow-step-body {
  margin-left: 80px;
}

.workflow-feature-slab {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  max-width: 420px;
}

.workflow-feature-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  justify-content: flex-start;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.78);
  cursor: help;
  outline: none;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.workflow-feature-item:hover,
.workflow-feature-item:focus-visible {
  border-color: rgba(255, 153, 0, 0.32);
  background: rgba(255, 153, 0, 0.08);
  color: #ffffff;
}

.workflow-feature-icon {
  width: 15px;
  height: 15px;
  color: #ff9900;
  flex: 0 0 auto;
}

.workflow-feature-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.workflow-feature-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  z-index: 50;
  width: max-content;
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #f4f4f5;
  color: #18181b;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.workflow-feature-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 10px;
  height: 10px;
  background: #f4f4f5;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translate(-50%, 5px) rotate(45deg);
}

.workflow-feature-item:hover .workflow-feature-tooltip,
.workflow-feature-item:focus-visible .workflow-feature-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.workflow-feature-tooltip-title {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.workflow-feature-tooltip-body {
  color: #3f3f46;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .workflow-step-body {
    margin-left: 0;
  }

  .workflow-feature-slab {
    max-width: none;
  }

  .workflow-feature-tooltip {
    left: 0;
    max-width: min(280px, calc(100vw - 40px));
    transform: translate(0, 4px);
  }

  .workflow-feature-tooltip::after {
    left: 20px;
  }

  .workflow-feature-item:hover .workflow-feature-tooltip,
  .workflow-feature-item:focus-visible .workflow-feature-tooltip {
    transform: translate(0, 0);
  }
}

.plan-restriction-tooltip-wrap {
  position: relative;
  display: flex;
  min-width: 0;
}

.bar > .plan-restriction-tooltip-wrap:has(.input-wrap) {
  flex: 1;
}

.bar > .plan-restriction-tooltip-wrap:has(.upload-wrap) {
  flex: 0 0 auto;
}

.plan-restriction-info {
  position: absolute;
  right: 10px;
  top: -8px;
  z-index: 40;
  display: inline-flex;
  height: 18px;
  width: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.92);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1;
}

.plan-restriction-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 80;
  width: min(340px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(9, 9, 11, 0.98);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.82);
}

.plan-restriction-tooltip-text {
  display: grid;
  gap: 4px;
  font-size: 12px;
  line-height: 1.55;
}

.plan-restriction-tooltip-link {
  display: inline-flex;
  margin-top: 10px;
  color: #ff9900;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

/* Share Dialog */
.share-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 150ms ease;
}

.share-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  color: #fafafa;
  animation: slideUp 200ms ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.share-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 150ms, background 150ms;
}

.share-dialog-close:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.08);
}

.share-dialog-close svg {
  width: 18px;
  height: 18px;
}

.share-dialog-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.share-dialog-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 20px;
}

.share-dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.share-dialog-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 150ms, opacity 150ms;
}

.share-dialog-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fafafa;
}

.share-dialog-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.share-dialog-btn-primary {
  background: #ff9900;
  color: #000;
}

.share-dialog-btn-primary:hover {
  background: #ffad33;
}

.share-dialog-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.share-dialog-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.share-dialog-link-url {
  flex: 1;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-dialog-link-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 6px;
  color: #fafafa;
  cursor: pointer;
  transition: background 150ms, color 150ms, opacity 150ms;
}

.share-dialog-link-copy:hover {
  background: rgba(255, 255, 255, 0.16);
}

.share-dialog-link-copy.is-copied {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.share-dialog-link-copy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.share-dialog-link-copy svg {
  width: 14px;
  height: 14px;
}

.share-dialog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .share-dialog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.share-dialog-option {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: #fafafa;
  cursor: pointer;
  transition: background 150ms, border-color 150ms, opacity 150ms;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.share-dialog-option svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.share-dialog-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.share-dialog-option.is-copied {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.share-dialog-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.share-dialog-option svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.share-dialog-option-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.share-dialog-option-label {
  display: block;
}


.share-dialog-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 16px 0;
}


.share-dialog-danger {
  background: none;
  border: none;
  color: rgba(255, 100, 100, 0.8);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  transition: color 150ms, opacity 150ms;
}

.share-dialog-danger:hover {
  color: rgb(255, 100, 100);
}

.share-dialog-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slab-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.slab-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(250, 250, 250, 0.66);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.projects-section {
  width: 100%;
  margin-top: 38px;
}

.project-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.project-filter-groups {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
}

.project-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.project-tab {
  border: 0;
  background: transparent;
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  height: 32px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.project-tab.active {
  color: #fafafa;
}

.project-tab:hover {
  background: rgba(39, 39, 42, 0.36);
}

.job-table-wrap {
  width: 100%;
}

.job-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.job-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: #aaa;
  padding: 12px 16px;
  border-bottom: 1px solid #181818;
}

.job-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}

.job-table-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.job-table th.sortable:hover,
.job-table th.sortable:focus-visible {
  color: #fafafa;
}

.job-table-sort-button:focus-visible {
  outline: none;
  color: #fafafa;
}

.job-table th.sortable:hover .sort-indicator,
.job-table th.sortable:focus-visible .sort-indicator,
.job-table-sort-button:focus-visible .sort-indicator {
  color: #a1a1aa;
  opacity: 1;
}

.job-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #111;
  font-size: 14px;
  color: #fafafa;
  vertical-align: middle;
}

.job-table-row {
  transition: background 0.1s;
  cursor: pointer;
}

.job-table-row:not(.is-clickable) {
  cursor: default;
}

.job-table-row:hover {
  background: #111;
}

.job-table-row.is-clickable:focus-visible {
  outline: 2px solid #27272a;
  outline-offset: -2px;
  background: #111;
}

.job-table-row.is-processing > td:first-child {
  border-left: 2px solid #ff9900;
  animation: table-row-glow 2s ease-in-out infinite;
}

@keyframes table-row-glow {
  0%, 100% { border-left-color: rgba(255, 153, 0, 0.35); }
  50%      { border-left-color: #ff9900; }
}

.job-table-video {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.job-table-video-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.job-table-thumb {
  width: 80px;
  height: 45px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #151515;
}

.job-table-thumb-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.job-table-thumb-provider {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.06em;
}

.job-table-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-table-title-link {
  color: inherit;
  text-decoration: none;
}

.job-table-status-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.job-quota-action-btn {
  width: fit-content;
  border: 1px solid rgba(255, 153, 0, 0.6);
  border-radius: 6px;
  background: #ff9900;
  color: #18181b;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.job-quota-action-btn:hover {
  border-color: rgba(255, 153, 0, 0.8);
  background: #ffad33;
}

.job-table-quota-action {
  margin-top: 2px;
}

.job-table-expiry {
  font-size: 11px;
}

.job-table-status {
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
}

.job-table-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.job-table-status-completed::before {
  background: #34d399;
}

.job-table-status-completed {
  color: #34d399;
  background: none;
}

.job-table-status-failed::before,
.job-table-status-cancelled::before {
  background: #f87171;
}

.job-table-status-failed,
.job-table-status-cancelled {
  color: #f87171;
  background: none;
}

.job-table-status-quota-exceeded::before {
  background: #f59e0b;
}

.job-table-status-quota-exceeded {
  color: #f59e0b;
  background: none;
}

.job-table-status-processing::before,
.job-table-status-pending::before {
  background: #f59e0b;
}

.job-table-status-processing,
.job-table-status-pending {
  color: #f59e0b;
  background: none;
}

.job-table-source {
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.job-table-lang {
  font-size: 14px;
  color: #ccc;
}

.job-table-time-mono {
  font-family: "SF Mono", "Fira Code", ui-monospace, monospace;
  font-size: 13px;
  color: #ccc;
}

.job-table-time {
  font-size: 14px;
  color: #ccc;
}

.job-table-actions-cell {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.job-table-actions {
  color: #444;
  cursor: pointer;
  font-size: 16px;
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
}

.job-table-actions:hover {
  color: #999;
  background: #1a1a1a;
}

.job-table-actions.card-menu-btn {
  width: auto;
  height: auto;
  color: #444;
  padding: 4px 8px;
  border-radius: 4px;
}

.job-table-actions.card-menu-btn:hover {
  color: #999;
  background: #1a1a1a;
}

.job-table-progress {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 80px;
}

.job-table-progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #1b1b1b;
  overflow: hidden;
}

.job-table-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.job-table-progress-text {
  font-size: 10px;
  color: #666;
  white-space: nowrap;
}

.job-table-row-skeleton {
  cursor: default;
}

.job-table-row-skeleton:hover {
  background: transparent;
}

.job-table-skeleton-block {
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.job-table-row-skeleton .job-table-thumb {
  background: linear-gradient(
    135deg,
    rgba(63, 63, 70, 0.6),
    rgba(24, 24, 27, 0.92)
  );
}

.job-table-skeleton-title {
  height: 12px;
}

.job-table-skeleton-subtitle {
  height: 10px;
}

.job-table-skeleton-pill {
  width: 72px;
  height: 22px;
  border-radius: 6px;
}

.job-table-skeleton-text {
  width: 56px;
  height: 10px;
}

.job-table-skeleton-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  margin-left: auto;
}

.sort-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  min-width: 10px;
  font-size: 10px;
  color: #52525b;
  opacity: 0.6;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.sort-indicator.active {
  color: #fafafa;
  opacity: 1;
}

@media (max-width: 900px) {
  .job-table-wrap {
    overflow-x: auto;
  }

  .job-table {
    min-width: 760px;
  }
}

@media (max-width: 760px) {
  .project-tabs {
    width: 100%;
  }

  .job-table th,
  .job-table td {
    padding: 10px 12px;
  }
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  flex-shrink: 0;
}

.view-toggle-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #71717a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.view-toggle-btn:hover {
  color: #a1a1aa;
}

.view-toggle-btn.active {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.08);
}

.search-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 220px;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  background: rgba(39, 39, 42, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  transition:
    background 150ms ease,
    border-color 150ms ease;
}

.search-bar:hover,
.search-bar:focus-within {
  background: rgba(39, 39, 42, 0.48);
}

.search-bar:focus-within {
  border-color: rgba(255, 255, 255, 0.14);
}

.search-bar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #71717a;
  flex-shrink: 0;
}

.search-bar-icon svg,
.search-bar-clear svg {
  width: 16px;
  height: 16px;
}

.search-bar-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 8px;
  border: none;
  background: transparent;
  color: #fafafa;
  font-size: 13px;
  outline: none;
}

.search-bar-input::placeholder {
  color: #71717a;
  font-size: 13px;
}

.search-bar-input::-webkit-search-cancel-button {
  display: none;
}

.search-bar-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.search-bar-clear:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fafafa;
}

.search-indicator {
  margin-bottom: 12px;
  color: #a1a1aa;
  font-size: 14px;
  font-weight: 500;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.storage-copy {
  color: #a1a1aa;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: #27272a;
  color: #fafafa;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.toggle-pill:hover {
  background: #3f3f46;
}

.toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a1a1aa;
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease;
  flex-shrink: 0;
}

.toggle-pill[data-on="true"] .toggle-dot {
  background: #e2b714;
  box-shadow: 0 0 0 4px rgba(226, 183, 20, 0.18);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 976px;
}

.project-grid.list-view {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.project-grid.list-view .project-card {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.project-grid.list-view .project-thumb-wrap {
  width: 160px;
  flex-shrink: 0;
}

.project-grid.list-view .project-copy {
  flex: 1;
  padding-top: 4px;
}

.project-grid.list-view .project-title {
  font-size: 14px;
}

.project-grid.list-view .project-meta {
  font-size: 12px;
}

.card-link {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  -webkit-user-drag: none;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.project-thumb-wrap {
  position: relative;
  border: 1px solid #27272a;
  border-radius: 12px;
  overflow: clip;
  background: #111114;
}

.project-thumb-wrap.is-processing {
  position: relative;
  overflow: visible;
  border-color: transparent;
  isolation: isolate;
}

.project-thumb-wrap.is-processing::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: conic-gradient(
    from var(--bar-beam-angle),
    transparent 0%,
    transparent 70%,
    #ff9900 85%,
    transparent 100%
  );
  animation: bar-beam-rotate 2s linear infinite;
  z-index: -1;
}

.project-thumb-wrap.is-processing::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #111114;
  z-index: -1;
}

.project-thumb-wrap.is-processing > * {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.thumb-layout {
  position: absolute;
  inset: 0;
  padding: 10px 12px;
}

.thumb-kicker {
  display: inline-block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thumb-headline {
  margin-top: 8px;
  max-width: 64%;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.thumb-headline.big {
  font-size: 16px;
}

.thumb-accent {
  display: block;
  color: #5dfc9a;
}

.thumb-figure {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background:
    radial-gradient(
      circle at 50% 28%,
      rgba(255, 235, 208, 0.98),
      rgba(225, 160, 118, 0.92) 38%,
      rgba(71, 46, 32, 0.95) 70%,
      rgba(0, 0, 0, 0) 71%
    ),
    radial-gradient(
      circle at 50% 110%,
      rgba(255, 255, 255, 0.32),
      transparent 40%
    );
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.28);
  opacity: 0.92;
}

.thumb-figure.square {
  border-radius: 18px;
  width: 78px;
  height: 84px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(
      circle at 52% 26%,
      rgba(255, 231, 204, 0.98),
      rgba(211, 154, 112, 0.94) 34%,
      rgba(37, 30, 24, 0.92) 70%,
      rgba(0, 0, 0, 0) 71%
    ),
    linear-gradient(180deg, #1e2736, #0b0d14 60%);
}

.thumb-lines {
  position: absolute;
  left: 12px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 50%;
}

.thumb-lines span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.thumb-lines span:nth-child(1) {
  width: 88%;
}

.thumb-lines span:nth-child(2) {
  width: 64%;
}

.thumb-lines span:nth-child(3) {
  width: 76%;
}

.card-badges {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 9px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fafafa;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}

.card-sample-overlay {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 3;
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.45);
}

.card-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fafafa;
  font-size: 11px;
  font-weight: 600;
  font-family: "SF Mono", "Fira Code", ui-monospace, monospace;
  z-index: 2;
}

.progress-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #32d399;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 5;
}

.project-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  min-width: 0;
}

.project-copy-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

.project-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  flex: 1;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: #fafafa;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.project-meta {
  color: rgba(250, 250, 250, 0.5);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.project-expiry {
  color: rgba(250, 250, 250, 0.58);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.project-expiry.expiry-warn {
  color: #f59e0b;
}

.project-expiry.expiry-urgent {
  color: #f87171;
}

.project-expiry.expiry-expired {
  color: rgba(250, 250, 250, 0.48);
}

.project-expiry-hint {
  display: block;
  margin-top: 2px;
  color: rgba(250, 250, 250, 0.42);
  font-size: 11px;
  font-weight: 400;
}

.job-table-expiry.project-expiry {
  font-size: 11px;
}

.progress-pill-icon {
  flex-shrink: 0;
  color: #32d399;
}

.card-menu-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #71717a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
}

.card-menu-btn:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.08);
}

.card-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  z-index: 41;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease 80ms;
}

.card-menu-wrap {
  position: relative;
}

.card-menu-wrap:hover > .card-dropdown,
.job-page-more-wrap:hover > .card-dropdown,
.job-page-save-wrap:hover > .card-dropdown {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0ms;
}

.card-menu-wrap:hover > .card-menu-btn {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.08);
}

.card-dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.card-dropdown > :first-child {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.card-dropdown > :last-child {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.card-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: #18181b;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.card-dropdown-item:hover {
  background: #f4f4f5;
}

.card-dropdown-item.danger {
  color: #ef4444;
}

.card-dropdown-item.danger:hover {
  background: #fef2f2;
}

.card-dropdown-divider {
  height: 1px;
  background: #e4e4e7;
  margin: 4px 0;
}

.card-dropdown-submenu-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  color: #18181b;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.card-dropdown-submenu-trigger:hover {
  background: #f4f4f5;
}

.card-dropdown-submenu {
  position: absolute;
  right: calc(100% - 6px);
  left: auto;
  top: -1px;
  min-width: 280px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  z-index: 42;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease 80ms;
}

.card-dropdown-submenu,
.card-dropdown-submenu * {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  cursor: text !important;
  -webkit-user-drag: none;
}

.card-dropdown-submenu::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  width: 20px;
  height: 100%;
}

.card-dropdown-submenu-trigger:hover > .card-dropdown-submenu,
.card-dropdown-submenu:hover {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0ms;
}

/* Flipped menu: submenu opens to the right (dropdown position handled by JS transform) */
.card-dropdown-flipped .card-dropdown-submenu {
  right: auto;
  left: calc(100% - 6px);
}

.card-dropdown-flipped .card-dropdown-submenu::before {
  left: auto;
  right: 100%;
}

.card-submenu-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: flex-start;
  column-gap: 12px;
  padding: 4px 0;
  font-size: 12px;
  color: #3f3f46;
}

.card-submenu-label {
  color: #71717a;
  font-weight: 500;
  flex-shrink: 0;
}

.card-submenu-value {
  display: block;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}

.card-submenu-url {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
  color: #3b82f6;
}

.theme-green {
  background:
    radial-gradient(
      circle at 20% 28%,
      rgba(145, 255, 92, 0.22),
      transparent 18%
    ),
    radial-gradient(
      circle at 70% 22%,
      rgba(255, 219, 77, 0.12),
      transparent 22%
    ),
    linear-gradient(135deg, #183213, #1f3116 34%, #273f22 58%, #121212 100%);
}

.theme-blue {
  background:
    linear-gradient(135deg, rgba(86, 197, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #123a68, #1664b8 48%, #0e1525 100%);
}

.theme-podcast {
  background:
    radial-gradient(
      circle at 18% 24%,
      rgba(0, 255, 140, 0.26),
      transparent 18%
    ),
    linear-gradient(135deg, #06070a, #11131a 30%, #222733 58%, #120f11 100%);
}

.mobile-toggle {
  display: none;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 34;
  background: rgba(0, 0, 0, 0.52);
}

.mobile-menu-panel {
  position: fixed;
  top: 12px;
  left: 12px;
  bottom: 12px;
  z-index: 35;
  width: 220px;
}

.composer-feedback {
  width: min(100%, 720px);
  margin: 12px auto 0;
}

.metadata-preview {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(24, 24, 27, 0.88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
}

.metadata-preview img {
  width: 160px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: #111114;
  flex-shrink: 0;
}

.metadata-preview .project-thumb {
  width: 160px;
  flex-shrink: 0;
  border-radius: 10px;
}

.metadata-copy {
  min-width: 0;
}

.metadata-title {
  margin: 0;
  color: #fafafa;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.metadata-meta {
  margin-top: 6px;
  color: rgba(250, 250, 250, 0.64);
  font-size: 12px;
  line-height: 1.5;
}

.composer-message {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(24, 24, 27, 0.88);
  color: rgba(250, 250, 250, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.composer-message.error {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.85);
}

.upload-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upload-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(180deg, #f3cb42, #e2b714);
}

.upload-progress-copy {
  color: rgba(250, 250, 250, 0.64);
  font-size: 12px;
  text-align: right;
}

.project-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 176px;
  padding: 24px;
  border: 1px dashed #27272a;
  border-radius: 12px;
  background: rgba(17, 17, 20, 0.72);
  color: rgba(250, 250, 250, 0.5);
  font-size: 14px;
  text-align: center;
}

.project-skeleton {
  display: flex;
  flex-direction: column;
}

.project-skeleton-thumb {
  aspect-ratio: 16 / 9;
  border: 1px solid #27272a;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(63, 63, 70, 0.6),
    rgba(24, 24, 27, 0.92)
  );
}

.project-skeleton-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.project-skeleton-lines span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.project-thumb-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-state-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 12px;
}

.card-expired-overlay .card-expired-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card-expired-overlay .card-expired-revive {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ff9900;
  color: #18181b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  border: 0;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.card-expired-overlay .card-expired-revive:hover {
  background: #ffad33;
}

.card-quota-overlay .card-quota-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card-quota-overlay .card-quota-action {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ff9900;
  color: #18181b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  border: 0;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.card-quota-overlay .card-quota-action:hover {
  background: #ffad33;
}

.card-expiry-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.card-expiry-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.card-expiry-badge.expiry-warn::before {
  background: #f59e0b;
}

.card-expiry-badge.expiry-urgent::before,
.card-expiry-badge.expiry-expired::before {
  background: #f87171;
}

.job-table-expiry-sample {
  background: rgba(0, 0, 0, 0.7);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.45);
}

@media (max-width: 1180px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .sidebar.sidebar-mobile {
    display: flex;
  }

  .main-column,
  .main-column.sidebar-expanded,
  .main-column.is-full {
    padding-left: 0;
  }

  .topbar,
  .topbar.sidebar-expanded,
  .topbar.is-full {
    left: 0;
    padding: 12px 16px;
  }

  .topbar.sidebar-expanded .topbar-sidebar-toggle {
    display: inline-flex;
  }

  .topbar-brand {
    display: inline-flex;
  }

  .topbar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
  }

  .trial-plan-banner-wrap {
    padding: 0 12px;
  }

  .scroll-panel {
    height: auto;
    min-height: 100vh;
  }

  .main-inner {
    padding: 16px 16px 32px;
  }

  .main-inner.is-full {
    padding: 0;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .topbar-add-credits {
    padding-inline: 12px;
  }

  .project-toolbar,
  .toolbar-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .search-bar {
    flex: 1;
    width: auto;
    min-width: 120px;
  }

  .view-toggle {
    align-self: flex-end;
  }

  .metadata-preview {
    flex-direction: column;
  }

  .metadata-preview img {
    width: 100%;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-grid.list-view .project-card {
    flex-direction: column;
  }

  .project-grid.list-view .project-thumb-wrap {
    width: 100%;
  }

  .project-grid.list-view .project-copy {
    padding-top: 8px;
  }
}

@media (max-width: 760px) {
  .bar {
    height: 56px;
    padding: 6px;
    border-radius: 999px;
    flex-wrap: nowrap;
    gap: 0;
  }

  .divider {
    display: none;
  }

  .input-wrap {
    order: 0;
    width: auto;
    height: 44px;
  }

  .lang-wrap {
    order: 0;
    margin-left: 6px;
  }

  .bar-preview-thumb-wrap {
    display: none;
  }

  .cta {
    order: 0;
    width: auto;
    margin-left: 4px;
    padding-inline: 14px;
  }

  .bar .lang-multi-trigger {
    padding-inline: 10px;
    font-size: 13px;
    gap: 6px;
  }

  .input-wrap .tooltip,
  .upload-wrap .tooltip,
  .lang-wrap .tooltip {
    left: 0;
    right: auto;
    width: min(100%, calc(100vw - 48px));
    min-width: 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 20px 16px !important;
  max-width: none !important;
}

@supports not (background: conic-gradient(red, blue)) {
  .bar.is-loading {
    border: 1px solid #ff9900;
    animation: bar-pulse 1.5s ease-in-out infinite;
  }

  .project-thumb-wrap.is-processing {
    border-color: #32d399;
    animation: processing-card-pulse 1.5s ease-in-out infinite;
  }
}

/* 笏笏 Connections Page 笏笏 */

.connections-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 16px;
}

.connections-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f4f4f5;
  margin-bottom: 4px;
}

.connections-desc {
  color: #a1a1aa;
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.connection-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 1 / 1;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #f4f4f5;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  font-family: inherit;
  text-align: center;
}

.connection-tile:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}

.connection-tile:active:not(:disabled) {
  transform: scale(0.98);
}

.connection-tile:disabled {
  cursor: default;
}

.connection-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.85);
}

.connection-tile-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #f4f4f5;
}

.connection-tile-status {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.connection-tile.is-connected::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.connection-tile.is-connected .connection-tile-status {
  color: rgba(255, 255, 255, 0.7);
}

.connection-tile.is-reauth::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18);
}

.connection-tile.is-reauth .connection-tile-status {
  color: #fbbf24;
}

.connection-tile.is-coming-soon {
  opacity: 0.45;
  cursor: default;
}

.connection-tile.is-coming-soon:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.connection-tile-account {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-tile-youtube {
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 16px 12px;
  justify-content: center;
  gap: 7px;
  cursor: default;
}

.connection-tile-youtube:active {
  transform: none;
}

.connection-tile-youtube .connection-tile-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 9999px;
  letter-spacing: 0;
  line-height: 1.2;
}

.connection-tile-youtube.is-video-only .connection-tile-status {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
}

.connection-tile-youtube.is-caption-ready .connection-tile-status {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

.connection-youtube-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.connection-youtube-action,
.connection-youtube-disconnect {
  width: auto;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f4f4f5;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.connection-youtube-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 8px 14px;
  border-color: rgba(245, 158, 11, 0.72);
  background: #f59e0b;
  color: #09090b;
  text-align: center;
}

.connection-youtube-action:hover:not(:disabled),
.connection-youtube-disconnect:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
}

.connection-youtube-action.is-caption {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
}

.connection-youtube-action:hover:not(:disabled) {
  border-color: rgba(251, 191, 36, 0.82);
  background: #fbbf24;
  color: #09090b;
}

.connection-youtube-action.is-caption:hover:not(:disabled) {
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
}

.connection-youtube-action span {
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
}

.connection-youtube-disconnect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}

.connection-tile-youtube.is-connected .connection-youtube-action,
.connection-tile-youtube.is-connected .connection-youtube-disconnect {
  width: min(100%, 140px);
}

@media (max-width: 640px) {
  .connections-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .connection-tile {
    padding: 12px 8px;
  }
}

.connection-auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.connection-auth-dialog {
  position: relative;
  width: min(100%, 380px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #18181b;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}

.connection-auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
}

.connection-auth-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f5;
}

.connection-auth-close svg {
  width: 16px;
  height: 16px;
}

.connection-auth-title {
  margin: 0;
  color: #f4f4f5;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.35;
}

.connection-auth-description {
  margin: 8px 28px 16px 0;
  color: #a1a1aa;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.connection-auth-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  background: #09090b;
}

.connection-auth-segment {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.2;
  padding: 0 10px;
  text-align: center;
}

.connection-auth-segment.active {
  background: rgba(255, 255, 255, 0.13);
  color: #f4f4f5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.connection-auth-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 12px;
  border: 1px solid rgba(245, 158, 11, 0.72);
  border-radius: 8px;
  background: #f59e0b;
  color: #09090b;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
}

.connection-auth-primary:hover {
  border-color: rgba(251, 191, 36, 0.82);
  background: #fbbf24;
}

.connection-disconnect-dialog {
  width: min(100%, 360px);
}

.connection-disconnect-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.connection-disconnect-secondary,
.connection-disconnect-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}

.connection-disconnect-secondary {
  border: 1px solid #3f3f46;
  background: transparent;
  color: #f4f4f5;
}

.connection-disconnect-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
}

.connection-disconnect-danger {
  border: 1px solid rgba(239, 68, 68, 0.48);
  background: rgba(239, 68, 68, 0.13);
  color: #fecaca;
}

.connection-disconnect-danger:hover:not(:disabled) {
  border-color: rgba(248, 113, 113, 0.72);
  background: rgba(239, 68, 68, 0.2);
  color: #fee2e2;
}

.connection-disconnect-secondary:disabled,
.connection-disconnect-danger:disabled {
  cursor: default;
  opacity: 0.64;
}

.sub-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  padding: 24px;
  color: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.sub-section-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.free-limits-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.free-limits-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.free-limit-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.free-limit-label {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  line-height: 1.4;
}

.free-limit-value {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.sub-upgrade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 9999px;
  background: #ff9900;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease;
}

.sub-upgrade-btn:hover {
  background: #ffad33;
}

@media (max-width: 1024px) {
  .free-limits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sub-section {
    padding: 20px;
  }

  .free-limits-grid {
    grid-template-columns: 1fr;
  }

  .sub-upgrade-btn {
    width: 100%;
  }
}

/* 笏笏 Post Dialog 笏笏 */

.post-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.post-dialog {
  position: relative;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 14px;
  padding: 22px;
  width: 100%;
  max-width: 440px;
  max-height: 86vh;
  overflow-y: auto;
}

.post-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.post-dialog-close:hover {
  color: #f4f4f5;
  background: #27272a;
}

.post-dialog-close svg {
  width: 16px;
  height: 16px;
}

.post-dialog-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f4f4f5;
  margin: 0 32px 18px 0;
}

.post-dialog-loading {
  text-align: center;
  color: #71717a;
  padding: 24px;
}

.post-dialog-reauth-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.post-dialog-reauth-copy h3 {
  margin: 0;
  font-size: 0.9375rem;
  color: #f4f4f5;
}

.post-dialog-reauth-copy p {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: #e4e4e7;
}

.post-dialog-reauth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9999px;
  background: #f59e0b;
  color: #18181b;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.post-dialog-reauth-link:hover {
  background: #fbbf24;
}

.post-dialog-empty {
  text-align: center;
  padding: 24px;
}

.post-dialog-empty p {
  color: #a1a1aa;
  margin-bottom: 12px;
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.post-dialog-link {
  color: #3b82f6;
  font-size: 0.875rem;
  text-decoration: none;
}

.post-dialog-link:hover {
  text-decoration: underline;
}

.post-dialog-empty-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.post-dialog-empty-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.post-dialog-empty-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 8px 12px;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  background: #09090b;
  color: #f4f4f5;
  text-align: center;
  text-decoration: none;
}

.post-dialog-empty-option.is-caption {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
}

.post-dialog-empty-option span {
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.35;
}

.post-dialog-connect-panel {
  width: min(100%, 340px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 10px auto 0;
}

.post-dialog-connect-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  background: #09090b;
}

.post-dialog-connect-segment {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.2;
  padding: 0 10px;
  text-align: center;
}

.post-dialog-connect-segment.active {
  background: rgba(255, 255, 255, 0.13);
  color: #f4f4f5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.post-dialog-connect-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: #f59e0b;
  color: #09090b;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease;
}

.post-dialog-connect-primary:hover {
  background: #fbbf24;
}

.post-dialog-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: rgba(255, 153, 0, 0.92);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.post-dialog-empty-btn:hover {
  background: #ffad33;
}

.post-dialog-providers {
  margin-bottom: 14px;
}

.post-dialog-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a1a1aa;
  margin-bottom: 6px;
}

.post-dialog-destination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.post-dialog-destination .post-dialog-label {
  margin: 0;
}

.post-dialog-destination-pill {
  min-width: 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #f4f4f5;
  font-size: 0.875rem;
  font-weight: 650;
}

.post-dialog-destination-pill.needs-reauth {
  border-color: rgba(245, 158, 11, 0.42);
}

.post-dialog-provider-buttons {
  display: flex;
  gap: 8px;
}

.post-dialog-provider-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  text-align: center;
}

.post-dialog-provider-btn.active {
  border-color: #f4f4f5;
  color: #f4f4f5;
}

.post-dialog-provider-btn:hover {
  border-color: #71717a;
}

.post-dialog-provider-btn.needs-reauth {
  border-color: rgba(255, 255, 255, 0.14);
  color: #f4f4f5;
}

.post-dialog-provider-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.6875rem;
  line-height: 1.2;
}

.post-dialog-provider-account {
  display: block;
  font-size: 0.6875rem;
  color: #71717a;
  margin-top: 2px;
}

.post-dialog-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.post-dialog-field-group .post-dialog-label {
  margin-bottom: 6px;
}

.post-dialog-mode-block {
  margin-bottom: 2px;
}

.post-dialog-mode-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.post-dialog-mode-label-row .post-dialog-label {
  margin: 0;
}

.post-dialog-youtube-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  background: #09090b;
}

.post-dialog-youtube-mode {
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.post-dialog-youtube-mode:hover {
  background: rgba(255, 255, 255, 0.06);
}

.post-dialog-youtube-mode.active {
  background: rgba(255, 255, 255, 0.13);
  color: #f4f4f5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.post-dialog-youtube-mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 6px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.post-dialog-youtube-mode-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.post-dialog-caption-permission {
  margin: 8px 0 0;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .post-dialog-youtube-modes,
  .post-dialog-connect-segmented {
    grid-template-columns: 1fr;
  }
}

.post-dialog-input,
.post-dialog-textarea,
.post-dialog-select {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.875rem;
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 8px;
  color: #f4f4f5;
  outline: none;
  transition: border-color 0.15s;
}

.post-dialog-input:focus,
.post-dialog-textarea:focus,
.post-dialog-select:focus {
  border-color: #3f3f46;
}

.post-dialog-textarea {
  resize: vertical;
  min-height: 60px;
}

.post-dialog-select {
  cursor: pointer;
  appearance: none;
}

.post-dialog-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: #f4f4f5;
  color: #18181b;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
}

.post-dialog-submit:hover:not(:disabled) {
  background: #e4e4e7;
}

.post-dialog-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.post-dialog-progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-dialog-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.post-dialog-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  transition: width 0.3s ease;
}

.post-dialog-progress-text {
  margin: 0;
  font-size: 0.875rem;
  color: #f4f4f5;
}

.post-dialog-progress-warning {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.post-dialog-progress-link {
  color: #60a5fa;
  font-size: 0.875rem;
  text-decoration: none;
}

.post-dialog-progress-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .post-dialog-reauth-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== Step 1 Hero Animation ===== */
.workflow-animation-frame {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  height: clamp(360px, 38vw, 440px);
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: none;
}

.step1-scene {
  position: relative;
  height: 100%;
  background: transparent;
  overflow: hidden;
  z-index: 1;
}

.step1-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  background: #1a1a1f;
  overflow: visible;
  z-index: 10;
  will-change: top, opacity;
}

.step1-card.step1-card-vertical {
  width: 90px;
  aspect-ratio: 9 / 16;
  transform: translate(-50%, -12px);
}

.step1-card-beam {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  overflow: hidden;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  isolation: isolate;
}

.step1-card-beam.active {
  opacity: 1;
}

.step1-card-beam::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  left: 50%;
  top: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 60%,
    rgba(255, 153, 0, 0.5) 75%,
    #ff9900 87%,
    rgba(255, 153, 0, 0.5) 95%,
    transparent 100%
  );
  animation: step1-beam-rotate 1.2s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.step1-card-beam::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  background: #1a1a1f;
  z-index: 0;
  pointer-events: none;
}

.step1-card-thumb {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: #000;
  overflow: hidden;
  z-index: 1;
}

.step1-card-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 30%, transparent 60%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

.step1-provider-icon {
  position: absolute;
  top: auto;
  bottom: 8px;
  left: 8px;
  transform: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  z-index: 11;
  border: 1px solid transparent;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
}

.step1-provider-icon-youtube {
  background: #ff0000;
}

.step1-provider-icon-tiktok,
.step1-provider-icon-x {
  border-color: rgba(255, 255, 255, 0.18);
  background: #000;
}

.step1-provider-icon-file {
  border-color: rgba(255, 255, 255, 0.18);
}

.step1-flag-badge {
  position: absolute;
  top: -16px;
  right: auto;
  bottom: auto;
  left: 50%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
  z-index: 10;
}

.step1-flag-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.step1-lang-code {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


.step1-url-bar {
  position: absolute;
  left: 50%;
  top: calc(50% + 5px);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  height: 38px;
  background: rgba(42, 42, 48, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  gap: 6px;
  width: 85%;
  max-width: 380px;
  backdrop-filter: blur(12px);
  z-index: 20;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.step1-url-bar > * {
  position: relative;
  z-index: 1;
}

.step1-url-bar.step1-loading::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  left: 50%;
  top: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 60%,
    rgba(255, 153, 0, 0.5) 75%,
    #ff9900 87%,
    rgba(255, 153, 0, 0.5) 95%,
    transparent 100%
  );
  animation: step1-beam-rotate 1.2s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.step1-url-bar.step1-loading::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: rgba(42, 42, 48, 0.95);
  z-index: 0;
  pointer-events: none;
}

@keyframes step1-beam-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.step1-url-text {
  flex: 1;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}

.step1-url-text strong {
  color: #fff;
  font-weight: 600;
}

.step1-url-file-emoji {
  margin-right: 6px;
  font-size: 14px;
  vertical-align: -1px;
  opacity: 0.95;
}

.step1-url-file-name {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.step1-url-lang {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

.step1-lbl {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.3);
}

.step1-cta {
  background: #ff9900;
  color: #000;
  padding: 0 12px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.step1-cta.step1-pulse {
  animation: step1-cta-pulse 0.28s ease;
}

@keyframes step1-cta-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 153, 0, 0); }
  50% { transform: scale(1.08); box-shadow: 0 0 24px rgba(255, 153, 0, 0.7); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 153, 0, 0); }
}

.step1-pointer-hand {
  position: absolute;
  left: calc(50% + min(42.5%, 190px) - 16px);
  top: calc(50% + 9px);
  width: 32px;
  height: 32px;
  z-index: 30;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  pointer-events: none;
  transition: transform 0.24s ease;
}

.step1-pointer-hand.step1-press {
  transform: translate(-50%, -50%) scale(0.85);
}

.step1-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  z-index: 30;
  pointer-events: none;
}

.step1-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease;
}

.step1-dot.active {
  background: #ff9900;
}

/* 笏笏 Step 2 Animation 笏笏 */
/*
  All animations share one 11s linear loop on .step2-scene
  (--s2-loop). Each element's keyframes encode its in/out frame range,
  conceptually identical to Remotion's <Sequence from durationInFrames>
  + interpolate(frame, [a,b], [c,d]). Lifts 1:1 to a Remotion
  <Composition fps={60} durationInFrames={660}> if added later.
*/

.step2-scene {
  /*
    11s loop, split into sequential phases so only one focal area
    moves at a time after playback:
      0%   窶・4%   intro (card-in)
      4%   窶・46%  P1 "play"      竊・video panel + synced captions
      46%  窶・60%  P2 "save"      竊・save chip + video/caption files
      60%  窶・74%  P3 "share"     竊・share chip + URL pill
      74%  窶・94%  P4 "post"      竊・YouTube chip + badge/check
      94%  窶・100% outro (card-out)
  */
  --s2-loop: 11s;
  position: relative;
  height: 100%;
  background: transparent;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
}

.s2-stack {
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  isolation: isolate;
}

/* 笏笏 Outer card: abstracted job-detail page 笏笏 */
.s2-card {
  position: relative;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px);
  animation: s2-card-in var(--s2-loop) linear infinite;
}
@keyframes s2-card-in {
  0%   { opacity: 0; transform: translateY(8px); }
  6%   { opacity: 1; transform: translateY(0); }
  92%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}

.s2-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 10px;
}
.s2-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.s2-jobid {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.24);
  letter-spacing: 0.02em;
}

/* 笏笏 Stage: video + captions 笏笏 */
.s2-stage {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.s2-video,
.s2-captions {
  min-width: 0; /* let grid items honor their column width */
}

.s2-video {
  position: relative;
  min-height: 132px;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 153, 0, 0.10), transparent 60%),
    linear-gradient(180deg, #14141a, #08080b);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: grid;
  place-items: center;
  animation: s2-video-focus var(--s2-loop) linear infinite;
}

@keyframes s2-video-focus {
  0%, 3.8%, 46.8%, 100% {
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
  }
  4.5%, 44.5% {
    border-color: rgba(255, 153, 0, 0.30);
    box-shadow: 0 0 0 1px rgba(255, 153, 0, 0.10), 0 0 18px rgba(255, 153, 0, 0.16);
  }
}

.s2-video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.s2-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, transparent 30%, transparent 45%, rgba(0, 0, 0, 0.92) 100%),
    radial-gradient(ellipse at 50% 40%, rgba(255, 153, 0, 0.10), transparent 65%);
  z-index: 1;
  pointer-events: none;
}

.s2-caption-overlay {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 30px;
  display: grid;
  place-items: center;
  z-index: 3;
  pointer-events: none;
  text-align: center;
}

.s2-caption-overlay-line {
  grid-area: 1 / 1;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 600;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 6px rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-break: anywhere;
}

.s2-caption-overlay-1 { animation: s2-overlay-cap-1 var(--s2-loop) linear infinite; }
.s2-caption-overlay-2 { animation: s2-overlay-cap-2 var(--s2-loop) linear infinite; }
.s2-caption-overlay-3 { animation: s2-overlay-cap-3 var(--s2-loop) linear infinite; }

@keyframes s2-overlay-cap-1 {
  0%, 7.5%  { opacity: 0; }
  8.2%      { opacity: 1; }
  17%       { opacity: 1; }
  18%       { opacity: 0; }
  100%      { opacity: 0; }
}
@keyframes s2-overlay-cap-2 {
  0%, 18% { opacity: 0; }
  19%     { opacity: 1; }
  29%     { opacity: 1; }
  30%     { opacity: 0; }
  100%      { opacity: 0; }
}
@keyframes s2-overlay-cap-3 {
  0%, 30% { opacity: 0; }
  31%     { opacity: 1; }
  43%     { opacity: 1; }
  44%     { opacity: 0; }
  100%      { opacity: 0; }
}

.s2-play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 4;
  animation: s2-play-overlay var(--s2-loop) linear infinite;
}
.s2-play-overlay svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 0 12px rgba(255, 153, 0, 0.4));
  transform: translateX(1px);
}
.s2-play-overlay::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(2px);
  z-index: -1;
}
@keyframes s2-play-overlay {
  0%, 3.8% { opacity: 0; transform: scale(0.92); }
  4.5%     { opacity: 1; transform: scale(1); }
  8%       { opacity: 1; transform: scale(1); }
  10.5%    { opacity: 0; transform: scale(1.35); }
  100%     { opacity: 0; transform: scale(1.35); }
}

/* Spectrum: playback only; disappears before the subtitle-review phase. */
.s2-spectrum {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  height: 18px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
  mix-blend-mode: screen;
}
.s2-spectrum span {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 153, 0, 0.75);
  transform-origin: bottom;
  animation:
    s2-spectrum-envelope var(--s2-loop) linear infinite,
    s2-bar-dance 0.7s ease-in-out infinite alternate;
}
.s2-spectrum span:nth-child(1) { animation-delay: 0s, 0.00s; }
.s2-spectrum span:nth-child(2) { animation-delay: 0s, -0.18s; }
.s2-spectrum span:nth-child(3) { animation-delay: 0s, -0.35s; }
.s2-spectrum span:nth-child(4) { animation-delay: 0s, -0.10s; }
.s2-spectrum span:nth-child(5) { animation-delay: 0s, -0.52s; }
.s2-spectrum span:nth-child(6) { animation-delay: 0s, -0.28s; }
@keyframes s2-spectrum-envelope {
  0%, 7.5% { opacity: 0; }
  9%       { opacity: 1; }
  44.5%    { opacity: 1; }
  46%      { opacity: 0; }
  100%     { opacity: 0; }
}
@keyframes s2-bar-dance {
  0%   { transform: scaleY(1); }
  50%  { transform: scaleY(5); }
  100% { transform: scaleY(2); }
}

.s2-progress {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  z-index: 3;
}
.s2-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff9900, #ffb84d);
  border-radius: 2px;
  animation: s2-progress-fill var(--s2-loop) linear infinite;
}
@keyframes s2-progress-fill {
  0%, 6%  { width: 0%; opacity: 1; }
  45%      { width: 100%; opacity: 1; }
  46.2%    { width: 100%; opacity: 0; }
  47%, 100% { width: 0%; opacity: 0; }
}

/* 笏笏 Captions panel 笏笏 */
.s2-captions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: s2-captions-focus var(--s2-loop) linear infinite;
}

@keyframes s2-captions-focus {
  0%, 3.8%, 46.8%, 100% {
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
  }
  4.5%, 44.5% {
    border-color: rgba(255, 153, 0, 0.30);
    box-shadow: 0 0 0 1px rgba(255, 153, 0, 0.08), 0 0 16px rgba(255, 153, 0, 0.12);
  }
}
.s2-cap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.s2-cap-tag {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 153, 0, 0.14);
  color: rgba(255, 153, 0, 0.8);
  font-size: 8px;
}

.s2-cap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 6px;
  background: transparent;
  transition: none;
}
.s2-cap-ts {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.32);
  min-width: 22px;
  flex: none;
}
.s2-cap-bar {
  flex: 1;
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.s2-cap-text {
  flex: 1;
  min-width: 0;
  font-size: 9.5px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

/* Caption rows sync with the subtitles rendered inside the video. */
.s2-cap-1 { animation: s2-cap-1 var(--s2-loop) linear infinite; }
.s2-cap-2 { animation: s2-cap-2 var(--s2-loop) linear infinite; }
.s2-cap-3 { animation: s2-cap-3 var(--s2-loop) linear infinite; }

@keyframes s2-cap-1 {
  0%, 7.5% { background: transparent; }
  8.2%     { background: rgba(255, 153, 0, 0.18); }
  12.5%    { background: rgba(255, 153, 0, 0.10); }
  17%      { background: rgba(255, 153, 0, 0.18); }
  18%      { background: transparent; }
  100%    { background: transparent; }
}
@keyframes s2-cap-2 {
  0%, 18% { background: transparent; }
  19%     { background: rgba(255, 153, 0, 0.18); }
  24%     { background: rgba(255, 153, 0, 0.10); }
  29%     { background: rgba(255, 153, 0, 0.18); }
  30%     { background: transparent; }
  100%      { background: transparent; }
}
@keyframes s2-cap-3 {
  0%, 30% { background: transparent; }
  31%     { background: rgba(255, 153, 0, 0.18); }
  37%     { background: rgba(255, 153, 0, 0.10); }
  43%     { background: rgba(255, 153, 0, 0.18); }
  44%     { background: transparent; }
  100%      { background: transparent; }
}

.s2-cap-1 .s2-cap-text { animation: s2-text-color-1 var(--s2-loop) linear infinite; }
.s2-cap-2 .s2-cap-text { animation: s2-text-color-2 var(--s2-loop) linear infinite; }
.s2-cap-3 .s2-cap-text { animation: s2-text-color-3 var(--s2-loop) linear infinite; }
@keyframes s2-text-color-1 {
  0%, 7.5% { color: rgba(255, 255, 255, 0.4); }
  8.2%     { color: rgba(255, 255, 255, 0.95); }
  17%      { color: rgba(255, 255, 255, 0.95); }
  18%      { color: rgba(255, 255, 255, 0.4); }
  100%    { color: rgba(255, 255, 255, 0.4); }
}
@keyframes s2-text-color-2 {
  0%, 18% { color: rgba(255, 255, 255, 0.4); }
  19%     { color: rgba(255, 255, 255, 0.95); }
  29%     { color: rgba(255, 255, 255, 0.95); }
  30%     { color: rgba(255, 255, 255, 0.4); }
  100%      { color: rgba(255, 255, 255, 0.4); }
}
@keyframes s2-text-color-3 {
  0%, 30% { color: rgba(255, 255, 255, 0.4); }
  31%     { color: rgba(255, 255, 255, 0.95); }
  43%     { color: rgba(255, 255, 255, 0.95); }
  44%     { color: rgba(255, 255, 255, 0.4); }
  100%      { color: rgba(255, 255, 255, 0.4); }
}

/* 笏笏 Action rail 笏笏 */
.s2-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 12px;
}
.s2-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 600;
}
.s2-chip svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.s2-chip-yt svg {
  fill: currentColor;
  stroke: none;
}

.s2-chip-save  { animation: s2-chip-pulse-save  var(--s2-loop) linear infinite; }
.s2-chip-share { animation: s2-chip-pulse-share var(--s2-loop) linear infinite; }
.s2-chip-yt    { animation: s2-chip-pulse-yt    var(--s2-loop) linear infinite; }

@keyframes s2-chip-pulse-save {
  0%, 46% {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    box-shadow: none;
  }
  47.6% {
    background: rgba(255, 153, 0, 0.18);
    border-color: rgba(255, 153, 0, 0.55);
    color: #ffd6a0;
    box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.10), 0 0 18px rgba(255, 153, 0, 0.28);
  }
  52% {
    background: rgba(255, 153, 0, 0.10);
    border-color: rgba(255, 153, 0, 0.35);
    color: rgba(255, 214, 160, 0.9);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.06);
  }
  58.5% {
    background: rgba(255, 153, 0, 0.06);
    border-color: rgba(255, 153, 0, 0.18);
    color: rgba(255, 214, 160, 0.78);
    box-shadow: none;
  }
  60%, 100% {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    box-shadow: none;
  }
}
@keyframes s2-chip-pulse-share {
  0%, 59% {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    box-shadow: none;
  }
  60.5% {
    background: rgba(255, 153, 0, 0.18);
    border-color: rgba(255, 153, 0, 0.55);
    color: #ffd6a0;
    box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.10), 0 0 18px rgba(255, 153, 0, 0.28);
  }
  62% {
    background: rgba(255, 153, 0, 0.10);
    border-color: rgba(255, 153, 0, 0.35);
    color: rgba(255, 214, 160, 0.9);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.06);
  }
  72.5% {
    background: rgba(255, 153, 0, 0.06);
    border-color: rgba(255, 153, 0, 0.18);
    color: rgba(255, 214, 160, 0.78);
    box-shadow: none;
  }
  74%, 100% {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    box-shadow: none;
  }
}
@keyframes s2-chip-pulse-yt {
  0%, 73% {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    box-shadow: none;
  }
  74.5% {
    background: rgba(229, 57, 57, 0.18);
    border-color: rgba(229, 57, 57, 0.55);
    color: #ffd0d0;
    box-shadow: 0 0 0 4px rgba(229, 57, 57, 0.10), 0 0 18px rgba(229, 57, 57, 0.28);
  }
  80% {
    background: rgba(229, 57, 57, 0.10);
    border-color: rgba(229, 57, 57, 0.35);
    color: rgba(255, 208, 208, 0.9);
    box-shadow: 0 0 0 2px rgba(229, 57, 57, 0.06);
  }
  88% {
    background: rgba(229, 57, 57, 0.06);
    border-color: rgba(229, 57, 57, 0.18);
    color: rgba(255, 208, 208, 0.78);
    box-shadow: none;
  }
  94%, 100% {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    box-shadow: none;
  }
}

/* 笏笏 Result row (destinations) 笏笏 */
.s2-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  min-height: 56px;
}
.s2-result {
  position: relative;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
}

.s2-result-save { animation: s2-slot-active-save var(--s2-loop) linear infinite; }
@keyframes s2-slot-active-save {
  0%, 47% { border-color: transparent; background: transparent; }
  48.5%   { border-color: transparent; background: transparent; }
  58.5%   { border-color: transparent; background: transparent; }
  60%, 100% { border-color: transparent; background: transparent; }
}
.s2-tile {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px;
  opacity: 0;
  transform: translateY(-12px) scale(0.85);
}
.s2-tile svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.s2-tile-video svg path:nth-child(3) {
  fill: rgba(255, 153, 0, 0.82);
  stroke: none;
}
.s2-tile-format {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 153, 0, 0.78);
  line-height: 1;
}
.s2-tile::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255, 153, 0, 0.12), transparent 45%);
  pointer-events: none;
}
.s2-tile-1 { animation: s2-tile-drop var(--s2-loop) linear infinite; }
.s2-tile-2 { animation: s2-tile-drop-2 var(--s2-loop) linear infinite; }
@keyframes s2-tile-drop {
  0%, 47.5% { opacity: 0; transform: translateY(-14px) scale(0.84); }
  49%       { opacity: 1; transform: translateY(-6px) scale(0.96); }
  52%       { opacity: 1; transform: translateY(0) scale(1); }
  58.2%     { opacity: 1; transform: translateY(0) scale(1); }
  60%       { opacity: 0; transform: translateY(8px) scale(0.94); }
  100%      { opacity: 0; transform: translateY(8px) scale(0.94); }
}
@keyframes s2-tile-drop-2 {
  0%, 49% { opacity: 0; transform: translateY(-14px) scale(0.84); }
  51%     { opacity: 1; transform: translateY(-6px) scale(0.96); }
  54%     { opacity: 1; transform: translateY(0) scale(1); }
  58.2%   { opacity: 1; transform: translateY(0) scale(1); }
  60%     { opacity: 0; transform: translateY(8px) scale(0.94); }
  100%    { opacity: 0; transform: translateY(8px) scale(0.94); }
}

.s2-result-share { animation: s2-slot-active-share var(--s2-loop) linear infinite; }
@keyframes s2-slot-active-share {
  0%, 60% { border-color: transparent; background: transparent; }
  61.5%   { border-color: transparent; background: transparent; }
  72%     { border-color: transparent; background: transparent; }
  74%, 100% { border-color: transparent; background: transparent; }
}
.s2-link-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 153, 0, 0.10);
  border: 1px solid rgba(255, 153, 0, 0.35);
  color: #ffd6a0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.7);
  transform-origin: center;
  animation: s2-link-grow var(--s2-loop) linear infinite;
}
.s2-link-pill svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
@keyframes s2-link-grow {
  0%, 60.5% { opacity: 0; transform: scale(0.72); }
  62%       { opacity: 0.7; transform: scale(0.94); }
  66%       { opacity: 1; transform: scale(1.04); }
  71.8%     { opacity: 1; transform: scale(1); }
  74%       { opacity: 0; transform: scale(0.94); }
  100%      { opacity: 0; transform: scale(0.94); }
}

.s2-result-yt { animation: s2-slot-active-yt var(--s2-loop) linear infinite; }
@keyframes s2-slot-active-yt {
  0%, 74% { border-color: transparent; background: transparent; }
  75.5%   { border-color: transparent; background: transparent; }
  91.5%   { border-color: transparent; background: transparent; }
  94%, 100% { border-color: transparent; background: transparent; }
}
.s2-yt-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  animation: s2-yt-pop var(--s2-loop) linear infinite;
}
.s2-yt-badge > svg {
  width: 32px;
  height: 22px;
  flex: none;
}
.s2-yt-badge > svg path { fill: #e53939; }
.s2-yt-badge > svg polygon { fill: #fff; }
.s2-yt-check {
  position: absolute;
  bottom: -4px;
  right: -8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px rgba(10, 10, 13, 1);
  opacity: 0;
  transform: scale(0.4);
  animation: s2-yt-check var(--s2-loop) linear infinite;
}
.s2-yt-check svg {
  width: 9px;
  height: 9px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes s2-yt-pop {
  0%, 74.5% { opacity: 0; transform: scale(0.7); }
  76%       { opacity: 1; transform: scale(1.1); }
  79%       { opacity: 1; transform: scale(1); }
  92%       { opacity: 1; transform: scale(1); }
  94%       { opacity: 0; transform: scale(0.94); }
  100%      { opacity: 0; transform: scale(0.94); }
}
@keyframes s2-yt-check {
  0%, 81% { opacity: 0; transform: scale(0.4); }
  83%     { opacity: 1; transform: scale(1.25); }
  86%     { opacity: 1; transform: scale(1); }
  92%     { opacity: 1; transform: scale(1); }
  94%     { opacity: 0; transform: scale(0.9); }
  100%    { opacity: 0; transform: scale(0.9); }
}

/* Respect reduced motion: hold steady at a representative final state */
@media (prefers-reduced-motion: reduce) {
  .s2-card,
  .s2-video,
  .s2-captions,
  .s2-play-overlay,
  .s2-spectrum span,
  .s2-progress span,
  .s2-cap-1, .s2-cap-2, .s2-cap-3,
  .s2-cap-1 .s2-cap-text, .s2-cap-2 .s2-cap-text, .s2-cap-3 .s2-cap-text,
  .s2-caption-overlay-1, .s2-caption-overlay-2, .s2-caption-overlay-3,
  .s2-chip-save, .s2-chip-share, .s2-chip-yt,
  .s2-tile-1, .s2-tile-2,
  .s2-link-pill,
  .s2-yt-badge, .s2-yt-check,
  .s2-result-save, .s2-result-share, .s2-result-yt {
    animation: none !important;
  }
  .s2-card { opacity: 1; transform: none; }
  .s2-play-overlay { opacity: 0; }
  .s2-progress span { width: 100%; }
  .s2-tile-1, .s2-tile-2 { opacity: 1; transform: none; }
  .s2-link-pill { opacity: 1; transform: none; }
  .s2-yt-badge { opacity: 1; transform: none; }
  .s2-yt-check { opacity: 1; transform: none; }
  .s2-cap-3 { background: rgba(255, 153, 0, 0.10); }
  .s2-cap-3 .s2-cap-text { color: rgba(255, 255, 255, 0.95); }
  .s2-caption-overlay-1, .s2-caption-overlay-2 { opacity: 0; }
  .s2-caption-overlay-3 { opacity: 1; }
}


@media (max-width: 640px) {
  .workflow-step-stack {
    gap: 112px;
  }

  .workflow-step-panel {
    border-radius: 22px;
    padding: 12px;
  }

  .workflow-step-panel::after {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .workflow-step-head {
    gap: 12px;
    padding: 4px 2px 14px;
  }

  .workflow-step-index {
    width: 56px;
    height: 56px;
    border-radius: 17px;
    font-size: 21px;
  }

  .workflow-step-title {
    font-size: 25px;
  }

  .workflow-step-desc {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.7;
  }

  .workflow-step-visual {
    border-radius: 16px;
  }

  .workflow-step-visual .step1-scene,
  .workflow-step-visual .step2-scene {
    border-radius: 16px;
  }

  .workflow-visual-primary .step1-scene {
    height: 360px;
  }

  .workflow-visual-primary .step1-card {
    width: 174px;
  }

  .workflow-visual-primary .step1-card.step1-card-vertical {
    width: 78px;
  }

  .workflow-visual-primary .step1-url-bar {
    width: 88%;
    height: 40px;
    max-width: 380px;
    padding: 4px 4px 4px 12px;
    gap: 5px;
  }

  .workflow-visual-primary .step1-url-text {
    font-size: 10px;
  }

  .workflow-visual-primary .step1-url-file-emoji {
    font-size: 13px;
  }

  .workflow-visual-primary .step1-url-lang {
    font-size: 9px;
  }

  .workflow-visual-primary .step1-lbl {
    display: none;
  }

  .workflow-visual-primary .step1-cta {
    height: 32px;
    padding: 0 12px;
    font-size: 10px;
  }

  .workflow-visual-primary .step1-pointer-hand {
    left: calc(50% + min(44%, 190px) - 16px);
    width: 32px;
    height: 32px;
  }

  .workflow-visual-secondary .step2-scene {
    height: clamp(360px, 50vh, 420px);
    padding: 12px;
  }

  .workflow-visual-secondary .s2-stack {
    width: min(360px, 100%);
    gap: 10px;
  }

  .workflow-visual-secondary .s2-card {
    padding: 10px;
  }

  .workflow-visual-secondary .s2-stage {
    gap: 8px;
  }

  .workflow-visual-secondary .s2-rail {
    padding-top: 8px;
  }

  .workflow-visual-secondary .s2-chip {
    height: 28px;
    font-size: 10px;
    border-radius: 8px;
  }

  .workflow-visual-secondary .s2-chip svg {
    width: 11px;
    height: 11px;
  }

  .workflow-visual-secondary .s2-results {
    min-height: 48px;
  }

  .workflow-visual-secondary .s2-tile {
    width: 30px;
    height: 36px;
  }

  .workflow-visual-secondary .s2-tile span {
    font-size: 6.5px;
  }

  .workflow-visual-secondary .s2-link-pill {
    font-size: 8px;
    padding: 3px 6px;
  }

  .workflow-visual-secondary .s2-link-pill svg {
    width: 9px;
    height: 9px;
  }

  .workflow-visual-secondary .s2-yt-badge > svg {
    width: 26px;
    height: 18px;
  }

  .workflow-visual-secondary .s2-caption-overlay {
    bottom: 26px;
    left: 4px;
    right: 4px;
  }

  .workflow-visual-secondary .s2-caption-overlay-line {
    font-size: 8.5px;
    padding: 2px 5px;
  }

  .workflow-visual-secondary .s2-cap-text {
    font-size: 9px;
  }

  .workflow-visual-secondary .s2-cap-ts {
    font-size: 8px;
    min-width: 20px;
  }
}

/* 笏笏 Developer Page 笏笏 */

.developer-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 0 32px;
  color: #fafafa;
}

.developer-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 0;
  border: none;
  background: transparent;
}

.developer-overview-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  align-items: start;
}

@media (max-width: 640px) {
  .developer-overview-row {
    grid-template-columns: 1fr;
  }
}

.developer-overview-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.developer-overview-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.developer-overview-card-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.developer-overview-card-icon {
  color: rgba(255, 255, 255, 0.35);
}

.developer-overview-card-value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fafafa;
  line-height: 1.1;
}

.developer-overview-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.developer-overview-card-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.developer-overview-card-action-primary {
  border: 0;
  background: #ff9900;
  color: #18181b;
  font-weight: 600;
}

.developer-overview-card-action-primary:hover {
  background: #ffad33;
  border-color: transparent;
}

.developer-credit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.developer-credit-bar-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.developer-credit-bar-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.developer-credit-bar-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 600;
  color: #fafafa;
}

.developer-credit-bar-value svg {
  color: #ff9900;
  flex-shrink: 0;
}

.developer-title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fafafa;
}

.developer-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 6px;
}

.developer-header-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: color 150ms ease;
  white-space: nowrap;
}

.developer-header-link:hover {
  color: #fafafa;
}

.developer-header-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #fafafa;
  font-size: 13px;
  font-weight: 600;
}

.developer-header-credit svg {
  color: #ff9900;
}

.developer-header-add-credits {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #ff9900;
  color: #18181b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.developer-header-add-credits:hover {
  background: #ffad33;
}

.developer-page-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.developer-page-tab {
  position: relative;
  height: 38px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 150ms ease;
}

.developer-page-tab:hover {
  color: rgba(255, 255, 255, 0.85);
}

.developer-page-tab.active {
  color: #fafafa;
}

.developer-page-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #fafafa;
  border-radius: 2px;
}

.developer-section {
  margin-bottom: 24px;
  padding: 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.developer-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.developer-section-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #fafafa;
}

.developer-section-description {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.developer-primary-btn,
.developer-secondary-btn,
.developer-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    opacity 150ms ease;
}

.developer-primary-btn {
  background: #fafafa;
  color: #18181b;
}

.developer-primary-btn:hover:not(:disabled) {
  background: rgba(250, 250, 250, 0.85);
}

.developer-primary-btn-orange {
  background: #ff9900;
  color: #18181b;
}

.developer-primary-btn-orange:hover:not(:disabled) {
  background: #ffad33;
}

.developer-secondary-btn,
.developer-copy-btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
}

.developer-secondary-btn:hover:not(:disabled),
.developer-copy-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.developer-primary-btn:disabled,
.developer-secondary-btn:disabled,
.developer-copy-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.developer-revoke-btn {
  color: #fda4af;
}

.developer-revoke-btn:hover:not(:disabled) {
  border-color: rgba(244, 63, 94, 0.35);
  color: #fecdd3;
}

.developer-loading,
.developer-empty-state {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.developer-error-state {
  border-color: rgba(248, 113, 113, 0.3);
  color: #fda4af;
}

.developer-spinner,
.developer-button-spinner {
  animation: settings-spin 1s linear infinite;
}

.developer-lock-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.developer-lock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 153, 0, 0.16);
  color: #ffb84d;
  flex-shrink: 0;
}

.developer-lock-copy {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.developer-lock-title {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.developer-key-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.developer-key-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: transparent;
  transition:
    border-color 150ms ease,
    opacity 150ms ease,
    background-color 150ms ease;
}

.developer-key-card:last-child {
  border-bottom: none;
}

.developer-key-revoked {
  opacity: 0.5;
  background: transparent;
}

.developer-key-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}

.developer-key-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.developer-key-name {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 500;
  color: #fafafa;
}

.developer-key-id {
  display: inline-block;
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    Menlo,
    monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  word-break: break-all;
}

.developer-key-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 600;
  color: #d4d4d8;
  white-space: nowrap;
}

.developer-key-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 260px;
  gap: 16px;
}

.developer-key-meta-item {
  padding-top: 0;
  border-top: none;
}

.developer-key-meta-item dt {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #71717a;
}

.developer-key-meta-item dd {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.74);
}

.developer-keys-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow-x: clip;
  overflow-y: visible;
}

.developer-keys-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13px;
}

.developer-keys-table thead th {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: left;
}

.developer-keys-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #fafafa;
  vertical-align: middle;
}

.developer-keys-table tbody tr:last-child td {
  border-bottom: none;
}

.developer-keys-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.developer-keys-table-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.developer-keys-name {
  font-weight: 500;
  color: #fafafa;
}

.developer-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.developer-icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fafafa;
  border-color: rgba(255, 255, 255, 0.16);
}

.developer-icon-btn-danger:hover {
  color: #fda4af;
  border-color: rgba(248, 113, 113, 0.4);
}

.developer-keys-table .developer-key-id {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.developer-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 36px;
  height: 20px;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background-color 150ms ease;
}

.developer-toggle.is-on {
  background: #ff9900;
}

.developer-toggle-thumb {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fafafa;
  transition: transform 150ms ease;
}

.developer-toggle.is-on .developer-toggle-thumb {
  transform: translateX(16px);
}

.developer-keys-menu-wrap {
  position: relative;
  display: inline-block;
}

.developer-keys-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 140px;
  z-index: 50;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #18181b;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.developer-keys-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fafafa;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.developer-keys-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.developer-keys-menu-item.is-danger {
  color: #fda4af;
}

.developer-keys-menu-item.is-danger:hover {
  background: rgba(248, 113, 113, 0.08);
}

.api-doc {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.api-doc-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.api-doc-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.api-doc-method {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08);
  color: #fafafa;
}

.api-doc-method.method-post {
  background: rgba(255, 153, 0, 0.18);
  color: #ffb84d;
}

.api-doc-method.method-get {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}

.api-doc-method.method-put,
.api-doc-method.method-patch {
  background: rgba(74, 222, 128, 0.16);
  color: #86efac;
}

.api-doc-method.method-delete {
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
}

.api-doc-path {
  font-family: ui-monospace, monospace;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.api-doc-summary {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.api-doc-error-title {
  font-size: 16px;
  color: #fafafa;
}

.api-doc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .api-doc-body {
    grid-template-columns: 1fr;
  }
}

.api-doc-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.api-doc-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.api-doc-block-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.api-doc-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.api-doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.api-doc-table th,
.api-doc-table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.api-doc-table tr:last-child td {
  border-bottom: 0;
}

.api-doc-table th {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.api-doc-table code,
.api-doc-content-types code,
.api-doc-response-row code {
  font-family: ui-monospace, monospace;
  color: #fafafa;
}

.api-doc-request-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.api-doc-content-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.api-doc-content-types code {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
}

.api-doc-code {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.api-code-block {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.api-code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.api-code-block-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.api-code-block-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.api-code-block-copy:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fafafa;
}

.api-code-block pre {
  margin: 0;
  padding: 12px;
  font-size: 12px;
  line-height: 1.55;
  color: #fafafa;
  font-family: ui-monospace, monospace;
  overflow-x: auto;
}

.api-doc-response-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.api-doc-response-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.api-doc-response-row:last-child {
  border-bottom: 0;
}

.developer-dialog-content,
.developer-alert-content {
  max-width: 560px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #09090b;
  padding: 0;
  color: #fafafa;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.55);
}

.developer-dialog-header {
  padding: 24px 24px 0;
  text-align: left;
}

.developer-dialog-title,
.developer-alert-title {
  font-size: 22px;
  font-weight: 600;
  color: #fafafa;
}

.developer-dialog-description,
.developer-alert-description {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #a1a1aa;
}

.developer-dialog-body {
  padding: 20px 24px 24px;
}

.developer-form-field {
  display: block;
}

.developer-form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #d4d4d8;
}

.developer-form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #27272a;
  border-radius: 12px;
  background: #050506;
  color: #fafafa;
  font-size: 14px;
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.developer-form-input:focus {
  border-color: rgba(255, 153, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.14);
}

.developer-form-help {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #71717a;
}

.developer-form-error {
  margin-top: 12px;
  font-size: 13px;
  color: #fda4af;
}

.developer-dialog-actions,
.developer-alert-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.developer-secret-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.developer-secret-copy {
  min-width: 0;
}

.developer-secret-label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.developer-secret-value {
  display: block;
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    Menlo,
    monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #fafafa;
  word-break: break-all;
}

.developer-alert-content {
  padding: 24px;
}

.developer-alert-cancel {
  border-color: #27272a;
  background: #111113;
  color: #fafafa;
}

.developer-alert-cancel:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
}

.developer-alert-revoke {
  background: #ef4444;
  color: #fff;
}

.developer-alert-revoke:hover:not(:disabled) {
  background: #f87171;
}

@media (max-width: 768px) {
  .developer-page {
    padding-top: 8px;
    padding-bottom: 40px;
  }

  .developer-section {
    padding: 0;
  }

  .developer-credit-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .developer-section-header,
  .developer-page-header,
  .developer-key-header,
  .developer-secret-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .developer-key-card {
    align-items: stretch;
    flex-direction: column;
  }

  .developer-primary-btn,
  .developer-secondary-btn,
  .developer-copy-btn,
  .developer-alert-cancel,
  .developer-alert-revoke {
    width: 100%;
  }

  .developer-key-meta {
    grid-template-columns: 1fr;
  }

  .developer-keys-table .developer-secondary-btn {
    width: auto;
  }

  .developer-dialog-actions,
  .developer-alert-actions {
    flex-direction: column-reverse;
  }
}

.developer-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.developer-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #27272a;
  border-radius: 999px;
  background: #111113;
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 600;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.developer-tab:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fafafa;
}

.developer-tab-active {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
  color: #fafafa;
}

.job-page-post-wrap {
  position: relative;
}

.job-page-post-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  width: 280px;
  padding: 12px 14px;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.job-page-post-wrap.is-trial:hover .job-page-post-tooltip,
.job-page-post-wrap.is-trial:focus-within .job-page-post-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.job-page-post-tooltip-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 4px;
}

.job-page-post-tooltip-body {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.job-page-post-tooltip-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-page-post-tooltip-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #ff9900;
  color: #18181b;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.job-page-post-tooltip-primary:hover {
  background: #ffad33;
}

.job-page-post-tooltip-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background-color 150ms ease;
}

.job-page-post-tooltip-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.job-page-sample-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.45);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.bar-input-area {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.job-page-share-group {
  display: contents;
}

.subscription-cancel-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.subscription-cancel-content {
  flex: 1 1 auto;
  min-width: 280px;
}

.subscription-cancel-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 8px;
}

.subscription-cancel-text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  max-width: 560px;
}

.subscription-cancel-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 120ms ease;
}

.subscription-cancel-btn:hover:not(:disabled) {
  border-color: rgba(239, 68, 68, 0.4);
  color: rgba(239, 68, 68, 0.95);
  background: rgba(239, 68, 68, 0.06);
}

.subscription-cancel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.settings-plan-menu {
  position: relative;
  display: inline-flex;
}

.settings-plan-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: rgba(20, 20, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-plan-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease;
}

.settings-plan-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.settings-plan-menu-item.is-danger {
  color: rgba(239, 68, 68, 0.95);
}

.settings-plan-menu-item.is-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.subscription-plan-badge-current {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.subscription-plan-btn-cancel {
  border-color: rgba(239, 68, 68, 0.4);
  color: rgba(239, 68, 68, 0.95);
  background: transparent;
}

.subscription-plan-btn-cancel:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.6);
}

.connections-card-skeleton {
  min-height: 140px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: connections-skel-pulse 1.4s ease-in-out infinite;
}

@keyframes connections-skel-pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.9;
  }
}

.settings-skeleton-line,
.settings-skeleton-action,
.subscription-skeleton-card,
.subscription-skeleton-toggle,
.subscription-plan-card-skeleton {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: connections-skel-pulse 1.4s ease-in-out infinite;
}

.settings-skeleton-line {
  height: 14px;
  border-radius: 999px;
}

.settings-skeleton-label {
  width: min(180px, 55%);
  margin-bottom: 8px;
}

.settings-skeleton-value {
  width: min(300px, 80%);
}

.settings-skeleton-action {
  width: 112px;
  height: 36px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.subscription-skeleton-card {
  min-height: 118px;
}

.subscription-skeleton-toggle {
  width: 180px;
  height: 40px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.subscription-plan-card-skeleton {
  min-height: 360px;
}

.history-ledger-panel {
  margin-top: 0;
}

.history-table {
  min-width: 760px;
}

.history-col-source {
  width: 40%;
}

.history-col-artifact {
  width: 16%;
}

.history-col-time {
  width: 17%;
}

.history-col-status {
  width: 11%;
}

.history-source-cell {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.history-source-cell strong {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.history-source-cell a {
  overflow: hidden;
  color: #93c5fd;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-source-cell span {
  color: #94a3b8;
  font-size: 12px;
}

.history-artifact-link,
.history-artifact-empty,
.history-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.history-artifact-link {
  border: 1px solid rgba(251, 146, 60, 0.45);
  background: rgba(251, 146, 60, 0.1);
  color: #fed7aa;
  text-decoration: none;
}

.history-artifact-link:hover {
  border-color: rgba(251, 146, 60, 0.8);
  background: rgba(251, 146, 60, 0.16);
}

.history-artifact-empty {
  color: #64748b;
}

.history-status {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
}

.history-status.is-completed {
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.1);
  color: #5eead4;
}

.history-status.is-processing {
  border-color: rgba(251, 146, 60, 0.35);
  background: rgba(251, 146, 60, 0.1);
  color: #fdba74;
}

.history-status.is-failed {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}

.history-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 24%),
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.045), transparent 0.5px),
    radial-gradient(circle at 50% 18%, rgba(245, 158, 11, 0.055), transparent 34%),
    #050608;
  background-size: auto, 18px 18px, auto, auto;
}

.login-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: min(400px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
}

.login-brand {
  position: absolute;
  top: calc(50% - 296px);
  left: 50%;
  transform: translateX(-50%);
}

.login-brand img {
  width: 190px;
  height: auto;
}

.login-panel {
  display: grid;
  align-content: start;
  justify-items: center;
  width: 100%;
  transform: translateY(36px);
}

.login-panel h1 {
  margin: 0;
  color: #f8fafc;
  font-size: 22px;
  line-height: 1.2;
  text-align: center;
}

.login-panel-heading {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.mini-kicker {
  color: #f59e0b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.muted-copy {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.75;
}

#clerkSignIn {
  width: 100%;
  min-height: 390px;
}

.login-auth-loading #clerkSignIn {
  visibility: hidden;
}

#clerkSignIn:empty {
  min-height: 390px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(17, 18, 20, 0.84);
}

#clerkSignIn .cl-rootBox {
  width: 100%;
}

#clerkSignIn .cl-cardBox,
#clerkSignIn .cl-card {
  width: 100%;
}

.croon-clerk-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 22, 26, 0.98), rgba(13, 13, 16, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

#clerkSignIn .cl-footerItem {
  display: none !important;
}

.croon-clerk-title {
  color: #f8fafc;
  font-size: 28px !important;
  font-weight: 900 !important;
  line-height: 1.18;
}

.croon-clerk-subtitle {
  display: none !important;
}

.croon-clerk-social-button {
  border-color: rgba(148, 163, 184, 0.18);
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  color: #111827 !important;
  min-height: 46px;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.croon-clerk-social-button:hover,
.croon-clerk-social-button:focus,
.croon-clerk-social-button:focus-visible,
.croon-clerk-social-button:active {
  border-color: rgba(148, 163, 184, 0.26) !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.croon-clerk-social-button :where(span),
.croon-clerk-social-button:hover :where(span),
.croon-clerk-social-button:focus :where(span),
.croon-clerk-social-button:focus-visible :where(span),
.croon-clerk-social-button:active :where(span) {
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.croon-clerk-primary-button {
  color: #060607;
  background: #ff9900 !important;
  background-color: #ff9900 !important;
  background-image: none !important;
  border-color: #ff9900 !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  min-height: 50px;
  font-size: 16px !important;
  font-weight: 900 !important;
}

.croon-clerk-primary-button::before,
.croon-clerk-primary-button::after {
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  content: none !important;
}

.croon-clerk-link {
  color: #fbbf24;
  font-weight: 900;
}

#clerkSignIn .cl-formFieldLabel {
  color: #f8fafc;
  font-size: 15px !important;
  font-weight: 900 !important;
}

#clerkSignIn .cl-formFieldInput {
  min-height: 48px;
  border-color: rgba(255, 255, 255, 0.11);
  background: #242428;
  color: #f8fafc;
  font-size: 15px !important;
  font-weight: 700 !important;
}

#clerkSignIn .cl-dividerText {
  color: #d1d5db;
  font-size: 15px !important;
  font-weight: 800 !important;
}

#clerkSignIn .cl-footerActionText {
  color: #cbd5e1;
  font-size: 14px !important;
  font-weight: 800 !important;
}

#clerkSignIn .cl-footerActionLink {
  font-size: 14px !important;
  font-weight: 900 !important;
}

.login-footer {
  position: absolute;
  top: calc(50% + 292px);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 16px;
  justify-items: center;
  width: max-content;
  color: #6b7280;
  font-size: 13px;
}

@media (max-width: 460px) {
  .login-shell {
    width: min(400px, calc(100% - 24px));
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .login-brand {
    top: calc(50% - 324px);
  }

  .login-brand img {
    width: min(214px, 72vw);
  }

  #clerkSignIn {
    width: 100%;
  }

  .login-footer {
    top: calc(50% + 292px);
  }
}

.login-footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.login-footer a {
  color: #7b8190;
  text-decoration: none;
}

.login-footer a:hover {
  color: #e5e7eb;
}

.login-footer small {
  color: #6b7280;
  font-size: 13px;
}

.signed-in-panel {
  display: grid;
  gap: 14px;
}

.clerk-user-button {
  min-height: 36px;
}

.access-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.access-primary-action,
.access-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.access-primary-action {
  background: #f59e0b;
  color: #111827;
}

.access-secondary-action {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.08);
  color: #e2e8f0;
}

.account-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.account-actions-row .account-button {
  width: fit-content;
}

.account-button {
  font-family: inherit;
  cursor: pointer;
}

.account-message {
  min-height: 20px;
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.account-message.is-error {
  color: #fca5a5;
}
