/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.19_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.19_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/styles.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #172026;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-2: #f9fafb;
  --border: #d9e1e7;
  --border-strong: #c7d0d8;
  --text: #172026;
  --muted: #60707c;
  --accent: #1456d9;
  --accent-strong: #0d3f9f;
  --success: #0f7a4f;
  --danger: #b42318;
  --warning: #a15c00;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
p { color: #3c4a54; line-height: 1.55; }
small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }

.loginScreen, .bootScreen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}
.loginPanel {
  width: min(420px, 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 28px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}
.loginPanel h1 { font-size: 30px; }

.appFrame {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}
.sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--border);
  background: #ffffff;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.brandBlock { display: flex; gap: 12px; align-items: center; }
.brandBlock strong { display: block; font-size: 18px; }
.brandBlock span { display: block; color: var(--muted); font-size: 13px; }
.brandMark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #172026;
  color: #fff;
  font-weight: 800;
}
.navList { display: grid; grid-gap: 4px; gap: 4px; }
.navList a {
  border-radius: 7px;
  color: #344450;
  padding: 10px 12px;
  font-weight: 650;
}
.navList a.active, .navList a:hover { background: #edf3ff; color: var(--accent-strong); text-decoration: none; }
.contentArea { min-width: 0; padding: 28px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.topbar h1 { margin-top: 4px; font-size: 30px; line-height: 1.15; }
.userBox {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}
.userBox strong, .userBox span { display: block; }
.userBox span { color: var(--muted); font-size: 12px; }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eaf7ef;
  color: #0f6b45;
  font-weight: 800;
}

.pageStack { display: grid; grid-gap: 18px; gap: 18px; }
.card, .metric, .summaryPanel, .todoPanel, .toolbarRow {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}
.card { overflow: hidden; }
.cardHeader {
  min-height: 58px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cardHeader h2 { font-size: 18px; line-height: 1.25; }
.metricGrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-gap: 14px; gap: 14px; }
.metric { padding: 16px; }
.metric span { color: var(--muted); font-size: 13px; font-weight: 700; }
.metric strong { display: block; margin-top: 8px; font-size: 26px; line-height: 1; }
.metric.danger strong { color: var(--danger); }
.gridTwo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 18px; gap: 18px; }

.formGrid {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}
.formGrid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.storyForm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
label { display: grid; grid-gap: 7px; gap: 7px; color: #344450; font-size: 13px; font-weight: 750; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 10px 11px;
  outline: none;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 86, 217, 0.12); }
.wideField { grid-column: 1 / -1; }
.formActions { display: flex; align-items: flex-end; gap: 10px; grid-column: 1 / -1; }
.checkLabel { display: flex; flex-direction: row; align-items: center; gap: 8px; align-self: end; }
.checkLabel input { width: auto; }

.button {
  border: 1px solid transparent;
  border-radius: 7px;
  min-height: 38px;
  padding: 8px 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-strong); }
.button.secondary { background: #fff; color: #26343f; border-color: var(--border-strong); }
.button.secondary:hover { background: #f7f9fb; }
.button.danger { background: #fff; color: var(--danger); border-color: #f0b8b2; }
.button.danger:hover { background: #fff5f4; }

.tableWrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0; background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
.rowActions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.rowActions.verticalActions { flex-direction: column; align-items: stretch; min-width: 132px; }
.wrapActions { flex-wrap: wrap; justify-content: flex-start; }
.errorCell { max-width: 280px; color: var(--danger); }

.statusBadge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 850;
  background: #eef2f5;
  color: #344450;
}
.status-success, .status-safe, .status-ready, .status-completed, .status-active, .status-ok, .status-pass, .status-idle { background: #e9f8ef; color: var(--success); }
.status-danger, .status-failed, .status-blocked, .status-cancelled, .status-inactive, .status-offline { background: #fff0ef; color: var(--danger); }
.status-warning, .status-retryable, .status-processing, .status-rendering, .status-ai_processing, .status-pending, .status-busy, .status-needs_cleanup { background: #fff7e6; color: var(--warning); }
.status-neutral { background: #eef2f5; color: #344450; }

.stateBox {
  margin: 18px;
  min-height: 110px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: #fbfcfd;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  grid-gap: 8px;
  gap: 8px;
}
.stateBox strong { color: var(--text); }
.stateError { border-color: #f0b8b2; background: #fff8f7; color: var(--danger); }
.todoPanel {
  padding: 14px 16px;
  background: #fffaf0;
  border-color: #f4d58d;
}
.todoPanel strong { display: block; color: #7a4300; margin-bottom: 4px; }
.todoPanel p { color: #69440d; }
.toolbarRow {
  padding: 14px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbarRow label { min-width: 220px; }

.errorList { display: grid; grid-gap: 10px; gap: 10px; padding: 16px; }
.errorItem { border: 1px solid var(--border); border-radius: 8px; padding: 12px; display: grid; grid-gap: 5px; gap: 5px; }
.errorItem span { color: var(--danger); }
.inlineError { color: var(--danger); background: #fff5f4; border: 1px solid #f0b8b2; border-radius: 7px; padding: 10px; }
.metaLine { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; }
.metaLine span { border-right: 1px solid var(--border); padding-right: 10px; }

.storyList { display: grid; }
.storyRow { padding: 18px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-gap: 18px; gap: 18px; }
.storyRow:last-child { border-bottom: 0; }
.storyMain { display: grid; grid-gap: 11px; gap: 11px; min-width: 0; }
.storyTitleLine { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.storyTitleLine h3 { font-size: 17px; line-height: 1.3; }
.variantGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 10px; gap: 10px; }
.variantBox { border: 1px solid var(--border); border-radius: 8px; background: #fbfcfd; padding: 10px; }
.variantBox summary { cursor: pointer; font-weight: 800; }
.variantBody { display: grid; grid-gap: 8px; gap: 8px; padding-top: 10px; }
.variantBody p { max-height: 180px; overflow: auto; }

.createVideoGrid { padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 16px; gap: 16px; }
.summaryPanel { padding: 16px; display: grid; grid-gap: 14px; gap: 14px; }
.summaryPanel h3 { font-size: 16px; }
dl { margin: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-gap: 8px 14px; gap: 8px 14px; }
dt { color: var(--muted); font-weight: 800; }
dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.mutedPanel { background: #fbfcfd; }

.progressCell { display: grid; grid-gap: 5px; gap: 5px; min-width: 120px; }
.progressTrack { height: 8px; border-radius: 999px; background: #e4eaf0; overflow: hidden; }
.progressTrack span { display: block; height: 100%; background: var(--accent); }

.videoGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 16px; gap: 16px; padding: 16px; }
.videoItem { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.mediaPlaceholder { aspect-ratio: 16 / 9; background: #202932; color: #fff; display: grid; place-items: center; align-content: center; grid-gap: 8px; gap: 8px; text-align: center; padding: 18px; }
.mediaPlaceholder span { color: #c8d2dc; overflow-wrap: anywhere; max-width: 100%; }
.videoBody { padding: 14px; display: grid; grid-gap: 12px; gap: 12px; }
.videoBody dl { grid-template-columns: 110px minmax(0, 1fr); }

.settingsList { display: grid; }
.settingsRow { min-height: 48px; padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.settingsRow:last-child { border-bottom: 0; }
.settingsRow span { color: var(--muted); font-weight: 750; }
.settingsRow strong { text-align: right; overflow-wrap: anywhere; }

.toastStack { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; grid-gap: 10px; gap: 10px; width: min(380px, calc(100vw - 36px)); }
.toast { border-radius: 8px; padding: 12px 14px; background: #172026; color: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2); font-weight: 700; }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: #172026; }

@media (max-width: 1180px) {
  .metricGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .formGrid, .storyForm, .formGrid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .videoGrid, .gridTwo, .createVideoGrid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .appFrame { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .navList { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contentArea { padding: 18px; }
  .topbar, .userBox { align-items: flex-start; flex-direction: column; }
  .metricGrid, .formGrid, .storyForm, .formGrid.compact, .variantGrid { grid-template-columns: 1fr; }
  .storyRow { grid-template-columns: 1fr; }
  dl { grid-template-columns: 1fr; }
}


.tableVideoPreview {
  width: 150px;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 7px;
  background: #202932;
}
.videoPreview {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #202932;
}
.audioPreview {
  width: 240px;
  max-width: 100%;
}
.imagePreview {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

