/* [project]/src/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-font-weight: initial;
      --tw-ease: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: var(--font-sans);
    --font-mono: var(--font-mono);
    --color-red-500: #fb2c36;
    --color-green-600: #00a544;
    --color-blue-600: #155dfc;
    --spacing: .25rem;
    --text-sm: .875rem;
    --text-sm--line-height: calc(1.25 / .875);
    --font-weight-medium: 500;
    --radius-sm: .25rem;
    --radius-md: .375rem;
    --radius-lg: .5rem;
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }

  @supports (color: lab(0% 0 0)) {
    :root, :host {
      --color-red-500: lab(55.4814% 75.0732 48.8528);
      --color-green-600: lab(59.0978% -58.6621 41.2579);
      --color-blue-600: lab(44.0605% 29.0279 -86.0352);
    }
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .collapse {
    visibility: collapse;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .sticky {
    position: sticky;
  }

  .start {
    inset-inline-start: var(--spacing);
  }

  .block {
    display: block;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline-flex {
    display: inline-flex;
  }

  .table {
    display: table;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .items-center {
    align-items: center;
  }

  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }

  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .text-center {
    text-align: center;
  }

  .font-mono {
    font-family: var(--font-mono);
  }

  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }

  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }

  .text-blue-600 {
    color: var(--color-blue-600);
  }

  .text-green-600 {
    color: var(--color-green-600);
  }

  .text-red-500 {
    color: var(--color-red-500);
  }

  .uppercase {
    text-transform: uppercase;
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .ease-in-out {
    --tw-ease: var(--ease-in-out);
    transition-timing-function: var(--ease-in-out);
  }
}

:root {
  --bg-primary: #0b0f1a;
  --bg-secondary: #111827;
  --bg-card: #1a2035;
  --bg-card-hover: #1f2847;
  --bg-surface: #ffffff0a;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-glow: #6366f140;
  --accent-light: #818cf8;
  --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  --border: #ffffff14;
  --border-hover: #ffffff26;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 24px #0000004d;
  --shadow-glow: 0 0 30px var(--accent-glow);
  --sidebar-width: 260px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.6;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  z-index: 50;
  flex-direction: column;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
}

.sidebar-logo {
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 12px;
  padding: 24px;
  display: flex;
}

.sidebar-logo h1 {
  background: var(--accent-gradient);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 18px;
  font-weight: 700;
}

.sidebar-logo .logo-icon {
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  display: flex;
}

.sidebar-nav {
  flex-direction: column;
  flex: 1;
  gap: 4px;
  padding: 16px 12px;
  display: flex;
}

.sidebar-nav a {
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  display: flex;
}

.sidebar-nav a:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.sidebar-nav a.active {
  background: var(--accent-glow);
  color: var(--accent-light);
}

.sidebar-nav .nav-icon {
  text-align: center;
  width: 22px;
  font-size: 18px;
}

.sidebar-nav .nav-divider {
  background: var(--border);
  height: 1px;
  margin: 12px 16px;
}

.sidebar-nav .nav-group-title {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s;
  display: flex;
}

.sidebar-nav .nav-group-title:hover {
  color: var(--text-primary);
}

.sidebar-nav .nav-group-title.active {
  color: var(--accent);
}

.sidebar-nav .nav-arrow {
  opacity: .6;
  margin-left: auto;
  font-size: 10px;
}

.sidebar-nav .nav-submenu {
  padding-left: 8px;
}

.sidebar-nav .nav-submenu a {
  padding: 10px 16px 10px 40px;
  font-size: 14px;
}

.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: 32px;
}

.page-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
  display: flex;
}

.page-header h1, .page-header h2 {
  letter-spacing: -.02em;
  font-size: 28px;
  font-weight: 700;
}

.page-header p, .page-subtitle {
  color: var(--text-secondary);
  margin-top: 4px;
  font-size: 15px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .25s;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.card-grid {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  display: grid;
}

.stats-row {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
  display: grid;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: center;
  gap: 16px;
  padding: 20px;
  display: flex;
}

.stat-icon {
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  font-size: 22px;
  display: flex;
}

.stat-info .stat-value {
  letter-spacing: -.02em;
  font-size: 28px;
  font-weight: 700;
}

.stat-info .stat-label {
  color: var(--text-secondary);
  margin-top: 2px;
  font-size: 13px;
}

.badge {
  text-transform: uppercase;
  letter-spacing: .03em;
  border-radius: 20px;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
}

button.badge {
  appearance: none;
  border: 1px solid #0000;
  line-height: 1;
}

.badge-green {
  color: #10b981;
  cursor: pointer;
  background: #10b98126;
  transition: transform .15s, background .15s, box-shadow .15s, border-color .15s;
}

.badge-green:hover {
  background: #10b98140;
  border-color: #10b9818c;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px #10b9812e;
}

.badge-red {
  cursor: pointer;
  border-color: #ef444473;
  transition: transform .15s, background .15s, box-shadow .15s, border-color .15s;
  color: #fff !important;
  background: #ef444438 !important;
}

.badge-red:hover {
  border-color: #ef4444bf;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px #ef444438;
  background: #ef444452 !important;
}

.badge-queued {
  color: #94a3b8;
  background: #94a3b826;
}

.badge-analyzing, .badge-scripting {
  color: #60a5fa;
  background: #3b82f626;
}

.badge-imaging, .badge-prompting, .badge-voiceover {
  color: #a78bfa;
  background: #8b5cf626;
}

.badge-generating {
  color: #fbbf24;
  background: #f59e0b26;
}

.badge-composing {
  color: #f472b6;
  background: #ec489926;
}

.badge-completed {
  color: #34d399;
  background: #10b98126;
}

.badge-failed {
  color: #f87171;
  background: #ef444426;
}

.badge-success {
  color: #34d399;
  background: #10b98126;
}

.badge-gray, .badge-pending {
  color: #94a3b8;
  background: #94a3b826;
}

.badge-image_ready {
  color: #a78bfa;
  background: #8b5cf626;
}

.badge-generating_image, .badge-generating_prompt {
  color: #60a5fa;
  background: #3b82f626;
  animation: 1.5s ease-in-out infinite badge-pulse;
}

.badge-generating_video {
  color: #fbbf24;
  background: #f59e0b33;
  animation: 1.5s ease-in-out infinite badge-pulse;
}

.badge-generating_audio {
  color: #a78bfa;
  background: #8b5cf626;
  animation: 1.5s ease-in-out infinite badge-pulse;
}

@keyframes badge-pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

.shot-card.is-generating {
  border-color: #f59e0b66;
  box-shadow: 0 0 20px #f59e0b1a;
}

.shot-card.is-generating .shot-preview:after {
  content: "";
  background: linear-gradient(90deg, #0000 0%, #f59e0b14 50%, #0000 100%);
  animation: 2s ease-in-out infinite shimmer;
  position: absolute;
  inset: 0;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.progress-bar {
  background: var(--bg-surface);
  border-radius: 3px;
  width: 100%;
  height: 6px;
  overflow: hidden;
}

.progress-fill {
  background: var(--accent-gradient);
  border-radius: 3px;
  height: 100%;
  transition: width .5s;
}

.btn {
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  display: inline-flex;
}

.btn-primary {
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
  border: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  display: inline-flex;
}

.btn-primary:hover {
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  display: inline-flex;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.btn-danger {
  color: #f87171;
  background: #ef444426;
  border: 1px solid #ef444433;
}

.btn-danger:hover {
  background: #ef444440;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-warning {
  color: #fbbf24;
  background: #f59e0b26;
  border: 1px solid #f59e0b40;
}

.btn-warning:hover {
  background: #f59e0b40;
  border-color: #f59e0b66;
}

.btn-success {
  color: #34d399;
  background: #10b98126;
  border: 1px solid #10b98140;
}

.btn-success:hover {
  background: #10b98140;
  border-color: #10b98166;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  display: block;
}

.form-input, .form-select, .form-textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 100%;
  color: var(--text-primary);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.table-container {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th {
  text-align: left;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
}

td {
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  font-size: 14px;
}

tr:hover td {
  background: var(--bg-surface);
}

.task-card {
  cursor: pointer;
}

.task-card:hover {
  box-shadow: var(--shadow-glow);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.task-card .task-title {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
}

.task-card .task-meta {
  color: var(--text-secondary);
  font-size: 13px;
}

.task-card .task-footer {
  border-top: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  display: flex;
}

.shot-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  display: grid;
}

.shot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .25s;
  overflow: hidden;
}

.shot-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.shot-card .shot-preview {
  aspect-ratio: 16 / 9;
  background: var(--bg-primary);
  color: var(--text-muted);
  justify-content: center;
  align-items: center;
  font-size: 32px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.shot-card .shot-preview img, .shot-card .shot-preview video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.shot-card .shot-info {
  padding: 14px;
}

.shot-card .shot-number {
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 12px;
  font-weight: 700;
}

.detail-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  padding: 24px;
}

.detail-section h3 {
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
}

.detail-section .kv-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  display: grid;
}

.kv-item .kv-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
  font-size: 12px;
}

.kv-item .kv-value {
  font-size: 14px;
  font-weight: 500;
}

.video-player-container {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #000;
  margin-bottom: 24px;
  overflow: hidden;
}

.video-player-container video {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.spinner {
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: .8s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-center {
  min-height: 200px;
  color: var(--text-secondary);
  justify-content: center;
  align-items: center;
  gap: 12px;
  display: flex;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 64px 24px;
}

.empty-state .empty-icon {
  margin-bottom: 16px;
  font-size: 48px;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: .3s ease-out fade-in;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

.chip {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 20px;
  margin: 2px;
  padding: 3px 10px;
  font-size: 12px;
  display: inline-block;
}

.pipeline-stages {
  gap: 4px;
  margin: 20px 0;
  display: flex;
}

.pipeline-stage {
  background: var(--bg-surface);
  border-radius: 2px;
  flex: 1;
  height: 4px;
  position: relative;
  overflow: hidden;
}

.pipeline-stage.active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.pipeline-stage.done {
  background: var(--success);
}

.pipeline-stage.error {
  background: var(--error);
}

.task-topbar {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  display: flex;
}

.task-tabs {
  border-bottom: 2px solid var(--border);
  gap: 0;
  display: flex;
}

.task-tab {
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  margin-bottom: -2px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  transition: all .2s;
}

.task-tab:hover {
  color: var(--text-primary);
}

.task-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.task-search-bar {
  align-items: center;
  gap: 12px;
  display: flex;
}

.search-input-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  align-items: center;
  gap: 8px;
  min-width: 220px;
  padding: 8px 14px;
  transition: border-color .2s;
  display: flex;
}

.search-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input {
  color: var(--text-primary);
  background: none;
  border: none;
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.video-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
  gap: 24px;
  display: grid;
}

.video-card-link {
  color: inherit;
  min-width: 0;
  text-decoration: none;
  display: block;
}

.video-card {
  border-radius: var(--radius);
  cursor: pointer;
  min-width: 0;
  transition: all .25s;
  overflow: hidden;
}

.video-card:hover {
  transform: translateY(-3px);
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.video-card-thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.video-card-thumb video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.thumb-placeholder {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  justify-content: center;
  align-items: center;
  display: flex;
}

.play-overlay {
  opacity: 0;
  pointer-events: none;
  justify-content: center;
  align-items: center;
  transition: opacity .2s;
  display: flex;
  position: absolute;
  inset: 0;
}

.play-btn {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #0000008c;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding-left: 3px;
  display: flex;
}

.progress-overlay {
  padding: 6px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.progress-overlay-bar {
  background: #00000080;
  border-radius: 2px;
  width: 100%;
  height: 3px;
  overflow: hidden;
}

.progress-overlay-fill {
  background: var(--accent);
  height: 100%;
  box-shadow: 0 0 8px var(--accent-glow);
  border-radius: 2px;
  transition: width .5s;
}

.video-card-info {
  padding: 10px 4px 4px;
}

.video-card-title {
  color: var(--text-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
}

.video-card-meta {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.video-card-status {
  font-size: 12px;
  font-weight: 500;
}

.video-card-date {
  color: var(--text-muted);
  font-size: 12px;
}

.auth-page {
  background: var(--bg-primary);
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  display: flex;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  padding: 40px;
  box-shadow: 0 8px 32px #0000004d;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  margin-bottom: 12px;
  font-size: 48px;
}

.auth-header h1 {
  color: var(--text-primary);
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.auth-header p {
  color: var(--text-muted);
  margin: 0;
  font-size: 14px;
}

.auth-form {
  flex-direction: column;
  gap: 18px;
  display: flex;
}

.auth-form .form-group {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.auth-form label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.auth-form input {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s;
}

.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

.auth-error {
  border-radius: var(--radius-sm);
  color: var(--error);
  background: #ef44441a;
  border: 1px solid #ef44444d;
  padding: 10px 14px;
  font-size: 13px;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
}

.auth-footer {
  text-align: center;
  color: var(--text-muted);
  margin-top: 24px;
  font-size: 13px;
}

.auth-footer a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.password-strength {
  margin-top: 4px;
  font-size: 12px;
}

.password-strength.strong {
  color: var(--success);
}

.password-strength.weak {
  color: var(--error);
}

.sidebar-user {
  border-top: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  display: flex;
}

.sidebar-user-info {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.sidebar-avatar {
  background: linear-gradient(135deg, var(--accent), #a855f7);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
}

.sidebar-user-detail {
  min-width: 0;
}

.sidebar-username {
  color: var(--text-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}

.sidebar-userrole {
  color: var(--text-muted);
  font-size: 11px;
}

.sidebar-logout {
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  flex-shrink: 0;
  padding: 6px;
  transition: all .2s;
}

.sidebar-logout:hover {
  color: var(--error);
  background: #ef44441a;
}

.admin-stats-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  display: grid;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 20px;
}

.admin-stat-value {
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 28px;
  font-weight: 700;
}

.admin-stat-label {
  color: var(--text-muted);
  font-size: 13px;
}

.admin-toolbar {
  gap: 12px;
  margin-bottom: 20px;
  display: flex;
}

.admin-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
}

.admin-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.admin-table thead {
  background: var(--bg-secondary);
}

.admin-table th {
  text-align: left;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
}

.col-align-right {
  text-align: right !important;
}

.col-align-center {
  text-align: center !important;
}

.admin-table td {
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 16px;
}

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

.admin-table tr:hover {
  background: #ffffff05;
}

.admin-user-cell {
  align-items: center;
  gap: 10px;
  display: flex;
}

.admin-avatar {
  background: linear-gradient(135deg, var(--accent), #a855f7);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
}

.admin-role-badge {
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
}

.admin-role-badge.admin {
  color: #a855f7;
  background: #a855f726;
}

.admin-role-badge.user {
  color: #60a5fa;
  background: #60a5fa26;
}

.admin-status-dot {
  align-items: center;
  gap: 6px;
  font-size: 12px;
  display: flex;
}

.admin-status-dot:before {
  content: "";
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.admin-status-dot.active:before {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.admin-status-dot.inactive:before {
  background: var(--error);
}

.admin-date {
  color: var(--text-muted);
  font-size: 13px;
}

.admin-actions {
  gap: 6px;
  display: flex;
}

.apikey-table-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow-x: auto;
}

.apikey-table {
  border-collapse: collapse;
  width: 100%;
}

.apikey-table th {
  text-align: left;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
}

.apikey-table td {
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  padding: 14px 16px;
  font-size: 14px;
}

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

.apikey-table tr:hover td {
  background: var(--bg-surface);
}

.apikey-table tr.row-disabled td {
  opacity: .5;
}

.key-name {
  color: var(--text-primary);
  font-weight: 600;
}

.key-prefix {
  font-family: var(--font-mono);
  background: var(--bg-surface);
  color: var(--accent-light);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 13px;
}

.scope-tags {
  flex-wrap: wrap;
  gap: 4px;
  display: flex;
}

.scope-tag {
  color: var(--accent-light);
  white-space: nowrap;
  background: #6366f11f;
  border: 1px solid #6366f133;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  display: inline-block;
}

.status-badge {
  border-radius: 20px;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
}

.status-badge.status-active {
  color: #34d399;
  background: #10b98126;
}

.status-badge.status-inactive {
  color: #f87171;
  background: #ef444426;
}

.col-date {
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 13px;
}

.col-name {
  min-width: 120px;
}

.action-buttons {
  gap: 6px;
  display: flex;
}

.btn-sm {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  transition: all .2s;
}

.btn-sm.btn-warning {
  color: #fbbf24;
  background: #f59e0b26;
}

.btn-sm.btn-warning:hover {
  background: #f59e0b40;
}

.btn-sm.btn-success {
  color: #34d399;
  background: #10b98126;
}

.btn-sm.btn-success:hover {
  background: #10b98140;
}

.btn-sm.btn-danger {
  color: #f87171;
  background: #ef444426;
}

.btn-sm.btn-danger:hover {
  background: #ef444440;
}

.modal-overlay {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 1000;
  background: #0009;
  justify-content: center;
  align-items: center;
  animation: .15s ease-out fade-in;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 480px;
  max-width: 90vw;
  max-height: 85vh;
  padding: 28px;
  overflow-y: auto;
  box-shadow: 0 24px 48px #0006;
}

.modal-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  display: flex;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 18px;
  transition: all .2s;
}

.modal-close:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.billing-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 580px;
  max-width: 95vw;
  max-height: 90vh;
  animation: .25s ease-out modal-slide-up;
  overflow: hidden;
  box-shadow: 0 0 0 1px #ffffff0d, 0 20px 50px -12px #00000080, 0 0 100px -20px #6366f126;
}

@keyframes modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px)scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.billing-modal .modal-header {
  border-bottom: none;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0;
  padding: 28px 28px 0;
  display: flex;
}

.modal-title-wrapper {
  align-items: center;
  gap: 16px;
  display: flex;
}

.modal-icon {
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  display: flex;
  box-shadow: 0 4px 12px #6366f14d;
}

.modal-title-wrapper h3 {
  color: var(--text-primary);
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.modal-subtitle {
  color: var(--text-muted);
  margin: 4px 0 0;
  font-size: 13px;
}

.billing-modal .modal-close {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  transition: all .2s;
  display: flex;
}

.billing-modal .modal-close:hover {
  color: #ef4444;
  background: #fee2e2;
  border-color: #fecaca;
}

.billing-modal .modal-body {
  max-height: calc(90vh - 180px);
  padding: 28px 28px 32px;
  overflow-y: auto;
}

.form-section {
  margin-bottom: 32px;
}

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

.form-section-title {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.section-dot {
  background: #6366f1;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.billing-modal .form-row {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  display: grid;
}

.billing-modal .form-group {
  margin-bottom: 20px;
}

.billing-modal .form-group:last-child {
  margin-bottom: 0;
}

.billing-modal .form-group:has(.checkbox-label) {
  margin-top: 8px;
  padding-top: 4px;
}

.billing-modal .form-group label {
  color: var(--text-secondary);
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
}

.label-icon {
  font-size: 14px;
}

.billing-modal .form-group input, .billing-modal .form-group select, .billing-modal .form-group textarea {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  width: 100%;
  color: var(--text-primary);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  transition: all .2s;
}

.billing-modal .form-group input:focus, .billing-modal .form-group select:focus, .billing-modal .form-group textarea:focus {
  border-color: #6366f1;
  outline: none;
  box-shadow: 0 0 0 3px #6366f126;
}

.billing-modal .form-group input::placeholder, .billing-modal .form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: .6;
}

.billing-modal select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  padding-right: 40px;
}

.billing-modal select option {
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 12px;
}

.checkbox-label {
  cursor: pointer;
  color: var(--text-secondary);
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
  display: flex;
}

.checkbox-label input[type="checkbox"] {
  accent-color: #6366f1;
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.input-with-prefix {
  align-items: center;
  display: flex;
  position: relative;
}

.input-prefix {
  color: var(--text-muted);
  pointer-events: none;
  font-size: 16px;
  position: absolute;
  left: 14px;
}

.billing-modal .input-with-prefix input {
  padding-left: 40px;
}

.billing-type-selector {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  display: grid;
}

.billing-type-option {
  cursor: pointer;
}

.billing-type-option input {
  display: none;
}

.billing-type-content {
  border: 2px solid var(--border);
  background: var(--bg-surface);
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  transition: all .2s;
  display: flex;
}

.billing-type-option:hover .billing-type-content {
  border-color: #a5b4fc;
}

.billing-type-option.active .billing-type-content {
  background: linear-gradient(135deg, #6366f114 0%, #8b5cf614 100%);
  border-color: #6366f1;
  box-shadow: 0 0 0 3px #6366f126;
}

.billing-type-icon {
  font-size: 24px;
}

.billing-type-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.billing-type-desc {
  color: var(--text-muted);
  margin-top: 2px;
  font-size: 12px;
}

.shot-range-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.shot-range-hint {
  color: var(--text-muted);
  border-top: 1px dashed var(--border);
  margin: 12px 0 0;
  padding-top: 12px;
  font-size: 12px;
}

.billing-modal .modal-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px 28px;
  display: flex;
}

.billing-modal .btn {
  cursor: pointer;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  display: inline-flex;
}

.billing-modal .btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  box-shadow: 0 4px 12px #6366f14d;
}

.billing-modal .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px #6366f166;
}

.billing-modal .btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.billing-modal .btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.billing-modal .btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--text-muted);
}

.user-info-card {
  background: linear-gradient(135deg, #6366f114 0%, #8b5cf614 100%);
  border: 1px solid #6366f133;
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  display: flex;
}

.user-info-avatar {
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
}

.user-info-detail {
  flex: 1;
  min-width: 0;
}

.user-info-name {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

.user-info-email {
  color: var(--text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}

.user-info-balance {
  border-left: 1px solid var(--border);
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding-left: 12px;
  display: flex;
}

.balance-label {
  color: var(--text-muted);
  font-size: 11px;
}

.balance-value {
  color: #10b981;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
}

.input-hint {
  color: var(--text-secondary);
  margin-top: 6px;
  font-size: 13px;
}

.input-hint strong {
  color: #10b981;
}

.btn-spinner {
  border: 2px solid #ffffff4d;
  border-top-color: #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: .8s linear infinite spin;
}

.modal-actions {
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  display: flex;
}

.scope-grid {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.scope-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 20px;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  transition: all .2s;
  display: inline-flex;
}

.scope-chip input[type="checkbox"] {
  display: none;
}

.scope-chip:hover {
  border-color: var(--border-hover);
}

.scope-chip.active {
  border-color: var(--accent);
  color: var(--accent-light);
  background: #6366f126;
}

.apikey-secret-modal {
  width: 560px;
}

.apikey-secret-warning {
  border-radius: var(--radius-sm);
  color: #fbbf24;
  background: #f59e0b1a;
  border: 1px solid #f59e0b33;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 16px;
  font-size: 13px;
  display: flex;
}

.apikey-secret-box {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  display: flex;
}

.apikey-secret-code {
  font-family: var(--font-mono);
  color: var(--accent-light);
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
  flex: 1;
  font-size: 13px;
}

.btn-copy {
  background: var(--accent-gradient);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
}

.btn-copy:hover {
  box-shadow: 0 2px 12px var(--accent-glow);
  transform: translateY(-1px);
}

.apikey-secret-info {
  color: var(--text-secondary);
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  display: flex;
}

.apikey-secret-info strong {
  color: var(--text-primary);
}

.loading-state {
  min-height: 200px;
  color: var(--text-secondary);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  display: flex;
}

.loading-spinner {
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: .8s linear infinite spin;
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-font-weight {
  syntax: "*";
  inherits: false
}

@property --tw-ease {
  syntax: "*";
  inherits: false
}

/*# sourceMappingURL=src_app_globals_91e4631d.css.map*/