:root {
  color: #1d1d20;
  font-synthesis: none;
  text-rendering: optimizelegibility;
  --ink: #1d1d20;
  --muted: #747477;
  --line: #deded7;
  --paper: #fbfbf8;
  --surface: #fff;
  --accent: #7867e6;
  --accent-dark: #5948c9;
  --accent-soft: #eeebff;
  --green: #2e9872;
  --orange: #dc814d;
  --shadow: 0 18px 50px #201f1c12;
  background: #f2f2ec;
  font-family:
    Pretendard,
    Noto Sans KR,
    Apple SD Gothic Neo,
    Inter,
    system-ui,
    sans-serif;
}

/* Shared creative context and VM postproduction */
.workflow-panel {
  background: linear-gradient(135deg, #fff 0%, #f7f5ff 100%);
  border: 1px solid #ddd7fb;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(73, 55, 145, .08);
  margin-bottom: 16px;
  padding: 16px;
}
.workflow-panel-head,
.workflow-actions,
.workflow-compose,
.automation-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.workflow-panel-head strong { display: block; font-size: 15px; }
.workflow-panel-head small { color: #777281; display: block; margin-top: 3px; max-width: 700px; }
.mode-button {
  background: #eeeafc;
  border: 0;
  border-radius: 9px;
  color: #756a92;
  cursor: pointer;
  font-weight: 750;
  padding: 9px 13px;
}
.mode-button.active { background: #7562dd; color: #fff; }
.shorts-mode-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  display: grid;
}
.shorts-mode-picker > button {
  color: #655f70;
  text-align: left;
  background: #fff;
  border: 1px solid #ded9e8;
  border-radius: 12px;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 13px 14px;
  display: flex;
}
.shorts-mode-picker > button:hover:not(:disabled) {
  border-color: #a99be8;
}
.shorts-mode-picker > button.active {
  color: #5f4bc5;
  background: #f2efff;
  border-color: #806bde;
  box-shadow: 0 0 0 2px #806bde14;
}
.shorts-mode-picker > button > span {
  flex: 1;
  min-width: 0;
}
.shorts-mode-picker strong,
.shorts-mode-picker small {
  display: block;
}
.shorts-mode-picker strong {
  font-size: 12px;
}
.shorts-mode-picker small {
  color: #8b8592;
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.4;
}
.shorts-mode-picker b {
  color: #7562cd;
  background: #ece7ff;
  border-radius: 999px;
  flex: none;
  padding: 5px 7px;
  font-size: 8px;
}
.shorts-mode-picker > button:disabled {
  cursor: not-allowed;
  opacity: .6;
}
.workflow-compose { align-items: stretch; margin-top: 13px; }
.workflow-compose textarea {
  background: #fff;
  border: 1px solid #dcd8e8;
  border-radius: 11px;
  flex: 1;
  min-height: 66px;
  padding: 12px;
  resize: vertical;
}
.automation-progress { margin-top: 12px; }
.automation-progress span { color: #6d58cf; font-weight: 800; }
.automation-progress > i { background: #e8e3fb; border-radius: 999px; display: block; height: 7px; margin-top: 7px; overflow: hidden; }
.automation-progress > i > b { background: linear-gradient(90deg, #856ee8, #b26ff1); display: block; height: 100%; transition: width .4s ease; }
.workflow-error { color: #c83246; font-weight: 700; margin: 10px 0 0; }
.postprocess-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.postprocess-layout select { border: 1px solid #ddd9e5; border-radius: 10px; margin: 14px 0 10px; padding: 11px; width: 100%; }
.postprocess-preview { background: #111; border-radius: 12px; max-height: 360px; width: 100%; }
.postprocess-audio-options { background: #f7f5fb; border: 1px solid #e5e0ef; border-radius: 12px; display: grid; gap: 11px; margin: 12px 0; padding: 13px; }
.postprocess-audio-options label { display: grid; gap: 6px; }
.postprocess-audio-options label > span { color: #5f5868; font-size: 11px; font-weight: 800; }
.postprocess-audio-options select { background: #fff; margin: 0; }
.postprocess-audio-options small { color: #7b7483; line-height: 1.5; }
.audio-volume-control input { accent-color: var(--accent); width: 100%; }
.audio-volume-control b { color: var(--accent-dark); }
.caption-plan-list { display: grid; gap: 8px; margin: 14px 0; }
.caption-plan-list > div { align-items: center; background: #f6f4fb; border-radius: 9px; display: grid; gap: 10px; grid-template-columns: 90px 1fr; padding: 10px; }
.caption-plan-list time { color: #7562c8; font-size: 12px; font-weight: 800; }
.caption-plan-heading { align-items: center; display: flex; justify-content: space-between; gap: 12px; }
.caption-plan-heading h2 { margin-bottom: 3px; }
.caption-plan-heading small { color: #817b88; }
.caption-plan-list.editable > div { align-items: start; grid-template-columns: 78px minmax(0, 1fr); }
.caption-plan-list.editable label { display: grid; gap: 5px; }
.caption-plan-list.editable label:last-child { grid-column: 2; }
.caption-plan-list.editable label > span { color: #716a78; font-size: 10px; font-weight: 800; }
.caption-plan-list.editable textarea { border: 1px solid #dcd6e8; border-radius: 8px; font: inherit; line-height: 1.45; min-height: 54px; padding: 8px 10px; resize: vertical; width: 100%; }
.caption-plan-list.editable textarea:focus { border-color: #826be4; box-shadow: 0 0 0 3px #826be41a; outline: none; }
@media (max-width: 900px) {
  .postprocess-layout { grid-template-columns: 1fr; }
  .workflow-panel-head, .workflow-compose { align-items: stretch; flex-direction: column; }
  .workflow-actions { flex-wrap: wrap; justify-content: flex-start; }
  .shorts-mode-picker { grid-template-columns: 1fr; }
  .media-stage-nav { padding: 0 10px; }
  .media-stage-nav button { padding-left: 9px; padding-right: 9px; }
  .media-stage-nav .new-shorts-button { display: none; }
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}
body {
  min-height: 100vh;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
svg {
  flex: none;
}
.eyebrow {
  color: #8a878f;
  letter-spacing: 0.17em;
  font-size: 10px;
  font-weight: 800;
}
.eyebrow.light {
  color: #ffffffb8;
  letter-spacing: 0.05em;
  font-size: 14px;
}
.muted {
  color: var(--muted);
  line-height: 1.65;
}
.brand-mark {
  background: var(--accent);
  color: #fff;
  border-radius: 14px 5px;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  font-family: Georgia, serif;
  font-size: 27px;
  font-style: italic;
  font-weight: 700;
  display: inline-flex;
}
.brand-mark.small {
  border-radius: 10px 3px;
  width: 36px;
  height: 36px;
  font-size: 21px;
}
.button {
  border: 0;
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 750;
  transition: all 0.18s;
  display: inline-flex;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.button:disabled {
  cursor: wait;
  opacity: 0.58;
}
.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px #7867e638;
}
.button.primary:hover:not(:disabled) {
  background: var(--accent-dark);
}
.button.secondary {
  color: #fff;
  background: #26252a;
}
.button.ghost {
  color: #48474c;
  background: #f3f3ef;
}
.button.tiny {
  min-height: 32px;
  padding: 0 11px;
}
.icon-button {
  border: 1px solid var(--line);
  color: #67666c;
  background: #fff;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  display: inline-flex;
}
.icon-button:hover {
  color: var(--accent);
}
.splash {
  color: var(--muted);
  background: #f5f5ef;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 100vh;
  display: flex;
}
.splash-line {
  background: #e0dfda;
  width: 180px;
  height: 2px;
  position: relative;
  overflow: hidden;
}
.splash-line:after {
  background: var(--accent);
  content: "";
  width: 40%;
  height: 100%;
  animation: 1.4s infinite loading;
  position: absolute;
  left: -40%;
}
.splash p {
  font-size: 13px;
}
@keyframes loading {
  to {
    left: 110%;
  }
}
.login-page {
  grid-template-columns: minmax(480px, 1.05fr) minmax(430px, 0.95fr);
  min-height: 100vh;
  display: grid;
}
.operator-mode-button {
  color: #5e5c63;
  z-index: 10;
  background: #fff;
  border: 1px solid #d9d8d2;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 13px;
  font-size: 10px;
  font-weight: 750;
  display: flex;
  position: fixed;
  top: 24px;
  right: 28px;
}
.operator-mode-button:hover {
  color: var(--accent);
  border-color: #9c91e9;
}
.operator-mode-button.student-mode {
  color: #fff;
  background: #28272d;
  border-color: #28272d;
}
.login-story {
  color: #fff;
  background: #202027;
  flex-direction: column;
  min-height: 100vh;
  padding: 47px 64px 50px;
  display: flex;
  position: relative;
  overflow: hidden;
}
.login-brand {
  letter-spacing: 0.15em;
  z-index: 2;
  align-items: center;
  gap: 13px;
  font-size: 13px;
  font-weight: 850;
  display: flex;
  position: relative;
}
.story-copy {
  z-index: 2;
  margin: auto 0 68px;
  position: relative;
}
.story-copy h1 {
  letter-spacing: -0.055em;
  margin: 24px 0 28px;
  font-size: clamp(45px, 5vw, 75px);
  font-weight: 350;
  line-height: 1.08;
}
.story-copy h1 em {
  color: #afa5ff;
  font-family: Georgia, serif;
  font-weight: 400;
}
.story-copy > p:last-child {
  color: #fff9;
  font-size: 15px;
  line-height: 1.8;
}
.story-flow {
  z-index: 2;
  align-items: center;
  gap: 17px;
  display: flex;
  position: relative;
}
.story-flow > div {
  color: #ffffffc7;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  display: flex;
}
.story-flow > i {
  background: #ffffff26;
  width: 32px;
  height: 1px;
}
.orb {
  filter: blur(2px);
  border-radius: 50%;
  position: absolute;
}
.orb-one {
  opacity: 0.35;
  background: radial-gradient(
    circle at 35% 30%,
    #a48cff,
    #5f50ba 46%,
    #0000 70%
  );
  width: 470px;
  height: 470px;
  top: 20%;
  right: -205px;
}
.orb-two {
  border: 1px solid #ffffff14;
  width: 500px;
  height: 500px;
  bottom: -230px;
  left: 16%;
}
.login-panel {
  background: #f6f6f1;
  justify-content: center;
  align-items: center;
  padding: 45px;
  display: flex;
}
.login-panel-stack,
.login-card {
  width: 100%;
  max-width: 390px;
}
.entry-icon {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 11px;
  justify-content: center;
  align-items: center;
  width: 47px;
  height: 47px;
  margin-bottom: 22px;
  display: flex;
}
.entry-icon.operator {
  color: #35343a;
  background: #ecebe7;
}
.login-card h2 {
  letter-spacing: -0.04em;
  margin: 11px 0 12px;
  font-size: 35px;
}
.login-card form,
.password-modal form,
.student-modal form {
  flex-direction: column;
  gap: 17px;
  margin-top: 34px;
  display: flex;
}
label {
  color: #4b4a4e;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 730;
  display: flex;
}
input,
textarea,
select {
  color: var(--ink);
  background: #fff;
  border: 1px solid #d9d9d3;
  border-radius: 8px;
  outline: none;
  transition:
    border 0.18s,
    box-shadow 0.18s;
}
input {
  height: 48px;
  padding: 0 14px;
}
select {
  height: 46px;
  padding: 0 37px 0 13px;
}
textarea {
  resize: vertical;
  padding: 15px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #9b8ff0;
  box-shadow: 0 0 0 3px #7867e61a;
}
.login-submit {
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  padding: 0 17px 0 20px;
}
.login-help {
  color: #98979a;
  text-align: center;
  margin-top: 24px;
  font-size: 11px;
}
.survey-link-button {
  color: #5c4dba;
  background: #fff;
  border: 1px solid #ddd9fa;
  border-radius: 10px;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  margin-top: 18px;
  padding: 10px 14px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
  display: flex;
}
.survey-link-button:hover {
  border-color: #9c91e9;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px #5c4dba1f;
}
.survey-link-button > span {
  flex-direction: column;
  flex: 1;
  gap: 3px;
  display: flex;
}
.survey-link-button strong {
  color: #50449d;
  font-size: 12px;
}
.survey-link-button small {
  color: #9690ad;
  font-size: 9px;
}
.app-shell {
  background: #f3f3ee;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}
.sidebar {
  color: #fff;
  z-index: 30;
  background: #202026;
  flex-direction: column;
  width: 235px;
  height: 100vh;
  padding: 28px 18px 19px;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
}
.side-brand {
  align-items: center;
  gap: 11px;
  padding: 0 9px 27px;
  display: flex;
}
.side-brand div {
  flex-direction: column;
  gap: 3px;
  display: flex;
}
.side-brand strong {
  letter-spacing: 0.13em;
  font-size: 12px;
}
.side-brand small {
  color: #ffffff9e;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.35;
}
.sidebar nav {
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  overflow: hidden;
  display: flex;
}
.workgroup-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 18px 8px 7px 12px;
}
.workgroup-heading p {
  color: #ffffff56;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
  margin: 0;
}
.workgroup-heading button {
  background: #ffffff12;
  border: 0;
  border-radius: 6px;
  color: #d9d4ff;
  cursor: pointer;
  font-size: 17px;
  height: 25px;
  width: 28px;
}
.workgroup-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: calc(100vh - 390px);
  overflow-y: auto;
  padding-right: 2px;
}
.media-submenu { display: grid; gap: 3px; margin: 3px 0 9px 29px; }
.media-submenu button { background: transparent; border: 0; border-left: 2px solid #ffffff14; color: #ffffff8a; cursor: pointer; font-size: 11px; padding: 7px 12px; text-align: left; }
.media-submenu button:hover, .media-submenu button.active { border-left-color: #9d8cff; color: #fff; }
.workgroup-row { align-items: center; display: flex; gap: 3px; }
.workgroup-row .workgroup-item { flex: 1; min-width: 0; }
.workgroup-delete { background: transparent; border: 0; border-radius: 7px; color: #ffffff4d; cursor: pointer; flex: 0 0 25px; height: 25px; opacity: 0; }
.workgroup-row:hover .workgroup-delete, .workgroup-delete:focus { opacity: 1; }
.workgroup-delete:hover { background: #ff52601f; color: #ff8992; }
.shorts-heading { margin-top: 12px; }
.workgroup-item {
  align-items: flex-start;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #ffffffa0;
  cursor: pointer;
  display: flex;
  gap: 9px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}
.workgroup-item:hover { background: #ffffff0b; color: #fff; }
.workgroup-item.active { background: #ffffff14; color: #fff; }
.workgroup-item > i { background: #8d7cef; border-radius: 50%; flex: 0 0 auto; height: 7px; margin-top: 5px; width: 7px; }
.workgroup-item > span { min-width: 0; }
.workgroup-item strong,
.workgroup-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workgroup-item strong { font-size: 11px; }
.workgroup-item small { color: #ffffff62; font-size: 9px; margin-top: 3px; }
.media-stage-nav {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e7e5df;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  overflow-x: auto;
  padding: 0 28px;
}
.media-stage-nav > div { display: flex; min-width: max-content; }
.media-stage-nav button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #8a8790;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  padding: 15px 13px 12px;
}
.media-stage-nav button.active { border-bottom-color: #7461d8; color: #5948b6; }
.media-stage-nav .new-shorts-button {
  background: #f0edff;
  border: 0;
  border-radius: 8px;
  color: #6552c7;
  flex: 0 0 auto;
  padding: 8px 12px;
}
.shorts-studio-card {
  background: linear-gradient(140deg, #25212f, #443579);
  border-radius: 16px;
  color: #fff;
  margin-top: 16px;
  padding: 25px;
}
.shorts-studio-card > div:first-child { display: flex; flex-wrap: wrap; gap: 7px; }
.shorts-studio-card > div:first-child span { background: #ffffff16; border: 1px solid #ffffff20; border-radius: 999px; font-size: 10px; padding: 6px 9px; }
.shorts-studio-card h2 { font-size: 23px; margin: 18px 0 7px; }
.shorts-studio-card p { color: #ffffffb5; line-height: 1.65; max-width: 720px; }
.shorts-result { align-items: flex-start; display: flex; gap: 16px; margin-top: 18px; }
.shorts-result video { background: #000; border-radius: 12px; max-height: 480px; width: min(250px, 100%); }
.shorts-result-actions { align-items: flex-start; display: flex; flex-direction: column; gap: 12px; }
.shorts-share-toggle { align-items: center; background: #ffffff12; border: 1px solid #ffffff2b; border-radius: 10px; color: #fff; cursor: pointer; display: flex; font-size: 12px; gap: 8px; padding: 11px 13px; }
.shorts-share-toggle input { accent-color: #9a85ff; }
.shorts-share-toggle:has(input:disabled) { cursor: wait; opacity: .65; }
.sidebar nav > p {
  color: #ffffff47;
  letter-spacing: 0.18em;
  margin: 19px 12px 7px;
  font-size: 8px;
  font-weight: 800;
}
.side-button {
  color: #ffffff8c;
  text-align: left;
  background: 0 0;
  border: 0;
  border-radius: 7px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 650;
  transition: all 0.18s;
  display: flex;
}
.side-button span {
  flex: 1;
}
.side-button svg {
  width: 18px;
  height: 18px;
}
.side-button:hover {
  color: #fff;
  background: #ffffff0d;
}
.side-button.active {
  color: #fff;
  background: #7666df;
}
.policy-note,
.admin-security {
  color: #a99ff2;
  background: #ffffff0d;
  border: 1px solid #ffffff0f;
  border-radius: 8px;
  align-items: flex-start;
  gap: 9px;
  margin: auto 3px 12px;
  padding: 12px;
  display: flex;
}
.policy-note div,
.admin-security span {
  flex-direction: column;
  gap: 4px;
  display: flex;
}
.policy-note strong,
.admin-security strong {
  color: #ffffffc2;
  font-size: 10px;
}
.policy-note span,
.admin-security small {
  color: #fff6;
  font-size: 9px;
  line-height: 1.45;
}
.profile-card {
  color: #fff;
  text-align: left;
  background: 0 0;
  border: 0;
  border-top: 1px solid #ffffff14;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 16px 7px 0;
  display: flex;
}
.profile-card > span:nth-child(2) {
  flex-direction: column;
  flex: 1;
  gap: 3px;
  display: flex;
}
.profile-card strong {
  font-size: 11px;
}
.profile-card small {
  color: #ffffff57;
  font-size: 9px;
}
.profile-card > svg {
  color: #ffffff57;
}
.avatar {
  background: #4d485f;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 11px;
  display: flex;
}
.avatar.admin {
  background: #6859cb;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
  z-index: 20;
  background: #f9f9f6e8;
  border-bottom: 1px solid #e1e0da;
  justify-content: space-between;
  align-items: center;
  height: 82px;
  padding: 0 34px;
  display: flex;
  position: sticky;
  top: 0;
}
.topbar h1 {
  letter-spacing: -0.035em;
  margin-top: 5px;
  font-size: 21px;
}
.topbar-right {
  align-items: center;
  gap: 10px;
  display: flex;
}
.working-pill,
.live-indicator {
  border: 1px solid var(--line);
  color: #67656d;
  background: #fff;
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}
.working-pill i,
.live-indicator i {
  background: #52ae84;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  animation: 1.5s infinite pulse;
}
@keyframes pulse {
  50% {
    opacity: 0.5;
    box-shadow: 0 0 0 5px #52ae8400;
  }
}
.mini-user {
  color: #5a595e;
  align-items: center;
  gap: 7px;
  margin-left: 3px;
  font-size: 11px;
  font-weight: 650;
  display: flex;
}
.mobile-menu-button,
.mobile-bottom-nav,
.menu-scrim {
  display: none;
}
.prompt-guide-banner {
  background: linear-gradient(110deg, #efedff, #f7f5ff);
  border: 1px solid #ded9ff;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 50px);
  max-width: 1180px;
  margin: 18px auto -6px;
  padding: 12px 14px;
  display: flex;
}
.prompt-guide-banner > div {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}
.prompt-guide-banner > div > span {
  color: var(--accent);
  background: #fff;
  border-radius: 7px;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  display: flex;
}
.prompt-guide-banner p {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}
.prompt-guide-banner strong {
  color: #544d79;
  letter-spacing: -0.02em;
  font-size: 14px;
}
.prompt-guide-banner small {
  color: #8b86a1;
  font-size: 9px;
  line-height: 1.45;
}
.prompt-guide-banner > a {
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  flex: none;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 13px;
  font-size: 10px;
  font-weight: 750;
  display: flex;
}
.prompt-guide-banner > a:hover {
  background: var(--accent-dark);
}
.prompt-studio-page {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  display: grid;
}
.prompt-result-card {
  min-width: 0;
}
.generated-prompt-box {
  min-height: 240px;
}
.prompt-result-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  display: flex;
}
.studio-main-layout {
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 18px;
  display: grid;
}
.studio-main-layout.basic-chat-layout {
  grid-template-columns: minmax(0, 1fr);
}
.basic-ai-page {
  background: var(--paper);
  border: 1px solid #e0ded8;
  border-radius: 14px;
  flex-direction: column;
  max-width: 980px;
  min-height: calc(100vh - 150px);
  margin: 24px auto 35px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 12px 34px #29273b0a;
}
.basic-ai-header {
  border-bottom: 1px solid #ebe8e2;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 19px 22px;
  display: flex;
}
.basic-ai-header > div {
  align-items: center;
  gap: 12px;
  display: flex;
}
.basic-ai-header > div > span {
  color: var(--accent);
  background: #efecff;
  border-radius: 10px;
  place-items: center;
  width: 40px;
  height: 40px;
  display: grid;
}
.basic-ai-header h2 {
  color: #343139;
  margin-bottom: 4px;
  font-size: 16px;
}
.basic-ai-header p {
  color: #969198;
  font-size: 10px;
}
.basic-ai-messages {
  background: #f8f7f4;
  flex: 1;
  min-height: 400px;
  max-height: calc(100vh - 340px);
  padding: 24px;
  overflow-y: auto;
}
.basic-ai-message {
  align-items: flex-start;
  gap: 10px;
  max-width: 82%;
  margin-bottom: 15px;
  display: flex;
}
.basic-ai-message.user {
  flex-direction: row-reverse;
  margin-left: auto;
}
.basic-ai-message > span {
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 31px;
  height: 31px;
  font-size: 9px;
  font-weight: 800;
  display: grid;
}
.basic-ai-message.user > span {
  color: #6751c8;
  background: #e9e5fb;
}
.basic-ai-message p {
  color: #454149;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid #e6e3dd;
  border-radius: 4px 12px 12px;
  margin: 0;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.7;
}
.basic-ai-message.user p {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  border-radius: 12px 4px 12px 12px;
}
.basic-ai-message.waiting p {
  color: #8f8997;
}
.basic-ai-empty {
  color: #a19ca5;
  text-align: center;
  place-content: center;
  min-height: 390px;
  display: grid;
}
.basic-ai-empty svg {
  color: #b7afe9;
  margin: 0 auto 12px;
}
.basic-ai-empty h3 {
  color: #69646d;
  margin-bottom: 7px;
  font-size: 14px;
}
.basic-ai-empty p {
  font-size: 10px;
}
.basic-ai-composer {
  border-top: 1px solid #e8e5df;
  padding: 16px 20px 18px;
}
.basic-ai-composer textarea {
  resize: none;
  border: 1px solid #dcd8d2;
  border-radius: 10px;
  outline: 0;
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 12px;
  line-height: 1.6;
}
.basic-ai-composer textarea:focus {
  border-color: #9c8cea;
  box-shadow: 0 0 0 3px #7662dd12;
}
.basic-ai-composer footer {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
  display: flex;
}
.basic-ai-composer footer span {
  color: #9b969d;
  font-size: 9px;
}
.vibe-coding-page {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
  max-width: 1230px;
  margin: 24px auto;
  padding: 0 25px 35px;
  display: grid;
}
.vibe-request-card {
  min-width: 0;
}
.vibe-result-card {
  background: var(--paper);
  border: 1px solid #e0e0da;
  border-radius: 12px;
  flex-direction: column;
  min-height: 620px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 10px 32px #28272208;
}
.vibe-result-toolbar {
  border-bottom: 1px solid #e6e4df;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  display: flex;
}
.vibe-result-toolbar h2 {
  color: #353239;
  margin-top: 4px;
  font-size: 16px;
}
.vibe-tabs {
  align-items: center;
  gap: 5px;
  display: flex;
}
.vibe-tabs > button:not(.button) {
  color: #8a878d;
  background: #f1f0ec;
  border: 0;
  border-radius: 6px;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  font-size: 10px;
  display: flex;
}
.vibe-tabs > button.active {
  color: var(--accent);
  background: #eeebff;
  font-weight: 750;
}
.vibe-canvas {
  background: #f6f5f1;
  flex: 1;
  min-height: 0;
  padding: 14px;
  display: flex;
}
.vibe-canvas iframe {
  background: #fff;
  border: 1px solid #e4e1db;
  border-radius: 7px;
  width: 100%;
  height: 100%;
  min-height: 520px;
}
.vibe-canvas pre {
  color: #e7e3f5;
  white-space: pre-wrap;
  background: #24232a;
  border-radius: 7px;
  flex: 1;
  min-height: 520px;
  margin: 0;
  padding: 18px;
  font:
    11px/1.6 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  overflow: auto;
}
.vibe-empty {
  color: #aaa5a0;
  text-align: center;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  display: flex;
}
.vibe-empty svg {
  color: #bbb4e8;
  margin-bottom: 12px;
}
.vibe-empty h3 {
  color: #716d77;
  margin-bottom: 5px;
  font-size: 14px;
}
.vibe-empty p {
  font-size: 10px;
}
.studio-main-content {
  min-width: 0;
}
.studio-chat {
  background: #fff;
  border: 1px solid #e4e2dc;
  border-radius: 12px;
  flex-direction: column;
  height: min(680px, 100vh - 150px);
  min-height: 420px;
  display: flex;
  position: sticky;
  top: 20px;
  overflow: hidden;
}
.studio-chat > header {
  border-bottom: 1px solid #eeeae3;
  padding: 15px;
}
.studio-chat > header > div {
  align-items: center;
  gap: 9px;
  display: flex;
}
.studio-chat > header svg {
  color: var(--accent);
}
.studio-chat > header div div {
  flex-direction: column;
  gap: 3px;
  display: flex;
}
.studio-chat > header strong {
  color: #37353a;
  font-size: 12px;
}
.studio-chat > header small {
  color: #aaa6a2;
  font-size: 9px;
}
.studio-chat-messages {
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 14px;
  display: flex;
  overflow-y: auto;
}
.chat-message {
  align-self: flex-start;
  max-width: 88%;
  position: relative;
}
.chat-message.mine {
  text-align: right;
  align-self: flex-end;
}
.chat-message small {
  color: #8f8985;
  margin-bottom: 3px;
  font-size: 9px;
  display: block;
}
.chat-message p {
  color: #48454a;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f2f0ec;
  border-radius: 4px 12px 12px;
  margin: 0;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.5;
}
.chat-message.mine p {
  color: #504191;
  background: #eeeafd;
  border-radius: 12px 4px 12px 12px;
}
.chat-message time {
  color: #b2ada8;
  margin-top: 3px;
  font-size: 8px;
  display: block;
}
.chat-empty {
  color: #aaa5a0;
  text-align: center;
  margin: auto;
  font-size: 10px;
}
.studio-chat-form {
  border-top: 1px solid #eeeae3;
  gap: 7px;
  padding: 10px;
  display: flex;
}
.studio-chat-form input {
  background: #faf9f6;
  border: 1px solid #e4e1db;
  border-radius: 8px;
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  font-size: 11px;
}
.studio-chat-form button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 34px;
  display: flex;
}
.studio-chat-form button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.i2i-picker {
  background: #f7f6f2;
  border: 1px dashed #d5d1c9;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  display: flex;
}
.i2i-picker > div {
  flex-direction: column;
  flex: 1;
  gap: 3px;
  min-width: 0;
  display: flex;
}
.i2i-picker strong {
  color: #55515a;
  font-size: 11px;
}
.i2i-picker small {
  color: #99939b;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  overflow: hidden;
}
.i2i-picker .button {
  flex: none;
  min-height: 34px;
}
.i2i-clear {
  color: #aaa4ad;
  background: 0 0;
  border: 0;
  align-items: center;
  padding: 4px;
  display: flex;
}
.asset-share-toggle {
  color: #77727b;
  border-top: 1px solid #efede8;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 8px 10px 0;
  font-size: 9px;
  display: flex;
}
.asset-share-toggle input {
  accent-color: var(--accent);
}
.shared-gallery .library-toolbar {
  border-bottom: 1px solid #ece9e3;
  padding-bottom: 14px;
}
.shared-gallery .library-toolbar h2 {
  color: #353239;
  margin-top: 4px;
  font-size: 18px;
}
.shared-count {
  color: #99939a;
  font-size: 10px;
}
.shared-asset-wrap {
  min-width: 0;
}
.shared-author {
  color: #77717a;
  padding: 6px 4px 0;
  font-size: 9px;
  display: block;
}
.admin-deleted-row {
  color: #b56542;
  background: #fff4ee;
  justify-content: space-between;
  align-items: center;
  padding: 7px 9px;
  font-size: 9px;
  display: flex;
}
.bulk-actions {
  color: #5e50a6;
  background: #f1efff;
  border: 1px solid #ded8ff;
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  margin: 12px 0;
  padding: 8px 10px;
  display: flex;
}
.bulk-actions > span {
  margin-right: auto;
  font-size: 10px;
  font-weight: 750;
}
.bulk-clear {
  color: #8c84ad;
  background: 0 0;
  border: 0;
  font-size: 9px;
}
.button.danger {
  color: #b75e43;
  background: #fff0eb;
  border-color: #ffd9cc;
}
.asset-select-toggle {
  z-index: 2;
  background: #fff;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 27px;
  height: 27px;
  display: flex;
  position: absolute;
  top: 8px;
  right: 8px;
  box-shadow: 0 2px 8px #1e1c191f;
}
.asset-select-toggle input {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}
.asset-delete-row {
  color: #ae6b58;
  background: 0 0;
  border: 0;
  align-items: center;
  gap: 4px;
  margin: 4px 9px 0;
  padding: 3px 0;
  font-size: 9px;
  display: flex;
}
.studio-page {
  grid-template-columns: minmax(480px, 1.1fr) minmax(360px, 0.9fr);
  gap: 22px;
  max-width: 1230px;
  margin: 24px auto;
  padding: 0 25px 35px;
  display: grid;
}
.composer-card,
.result-card,
.admin-card {
  background: var(--paper);
  border: 1px solid #e0e0da;
  border-radius: 12px;
  padding: 27px;
  box-shadow: 0 10px 32px #28272208;
}
.section-heading {
  align-items: flex-start;
  gap: 13px;
  display: flex;
}
.section-heading.compact {
  align-items: center;
}
.section-heading h2 {
  letter-spacing: -0.025em;
  margin-bottom: 5px;
  font-size: 16px;
}
.section-heading p {
  color: #89878b;
  font-size: 10px;
  line-height: 1.45;
}
.step-number {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 5px;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 29px;
  height: 29px;
  font-family: Georgia, serif;
  font-size: 11px;
  display: flex;
}
.prompt-box {
  background: #fff;
  border-color: #dcdcd6;
  width: 100%;
  font-size: 13px;
  line-height: 1.65;
}
.image-prompt {
  min-height: 190px;
  margin-top: 21px;
}
.prompt-footer {
  color: #9a989d;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 9px;
  display: flex;
}
.prompt-footer b {
  margin-left: auto;
  font-weight: 500;
}
.settings-grid {
  border-top: 1px solid #e5e4df;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  margin-top: 23px;
  padding-top: 22px;
  display: grid;
}
.field-title {
  margin-bottom: 9px;
  display: block;
}
.segment,
.mini-segment {
  background: #ecece7;
  border-radius: 7px;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  display: grid;
}
.segment button,
.mini-segment button {
  color: #77767a;
  background: 0 0;
  border: 0;
  border-radius: 5px;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 40px;
  font-size: 11px;
  font-weight: 720;
  display: flex;
}
.segment button small {
  color: #aaa8ac;
  font-size: 8px;
  font-weight: 500;
}
.segment button.active,
.mini-segment button.active {
  color: var(--accent);
  background: #fff;
  box-shadow: 0 2px 7px #1e1d1914;
}
.resolution-segment {
  grid-template-columns: repeat(3, 1fr);
}
.resolution-segment button {
  gap: 3px;
  min-width: 0;
}
.resolution-segment button > span {
  font-size: 10px;
  font-weight: 800;
}
.resolution-segment button > small {
  color: #aaa8ad;
  white-space: nowrap;
  align-items: center;
  gap: 2px;
  font-size: 7px;
  display: flex;
}
.resolution-segment button:disabled {
  color: #aaa8ad;
  cursor: not-allowed;
  opacity: 0.72;
  background: #e3e2de;
}
.resolution-segment button:disabled > small {
  color: #99969e;
}
.settings-grid select {
  width: 100%;
}
.generate-button {
  width: 100%;
  min-height: 49px;
  margin-top: 25px;
}
.unlimited-note {
  color: #aaa8ad;
  text-align: center;
  margin-top: 10px;
  font-size: 9px;
  line-height: 1.5;
}
.result-card {
  min-height: 530px;
}
.result-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  display: flex;
}
.result-header h2 {
  margin-top: 5px;
  font-size: 16px;
}
.empty-result {
  color: #96959a;
  text-align: center;
  background: #f0f0eb;
  border: 1px dashed #d9d8d2;
  border-radius: 9px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 280px;
  display: flex;
}
.empty-result > span {
  color: #8a87a0;
  background: #e7e6e1;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  display: flex;
}
.empty-result h3 {
  color: #626167;
  font-size: 13px;
}
.empty-result p {
  max-width: 240px;
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.5;
}
.latest-result img,
.latest-result video {
  object-fit: contain;
  background: #e9e9e5;
  border-radius: 8px;
  width: 100%;
  height: 310px;
  display: block;
}
.image-preview-trigger {
  cursor: zoom-in;
  position: relative;
}
.latest-image-trigger {
  background: 0 0;
  border: 0;
  border-radius: 8px;
  width: 100%;
  padding: 0;
  display: block;
}
.image-preview-trigger:focus-visible {
  outline-offset: 3px;
  outline: 3px solid #7b69e76b;
}
.preview-hint {
  color: #fff;
  background: #18171cc2;
  border: 1px solid #ffffff2e;
  border-radius: 6px;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  font-size: 9px;
  font-weight: 750;
  transition: all 0.18s;
  display: flex;
  position: absolute;
  bottom: 10px;
  right: 10px;
}
.image-preview-trigger:hover .preview-hint {
  background: var(--accent);
  transform: translateY(-2px);
}
.result-meta {
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  display: flex;
}
.result-meta > span:not(.status-badge) {
  color: #939196;
  font-size: 9px;
  font-weight: 750;
}
.result-meta a {
  color: var(--accent);
  align-items: center;
  gap: 5px;
  margin-left: auto;
  font-size: 10px;
  font-weight: 750;
  display: flex;
}
.status-badge {
  color: #77757b;
  white-space: nowrap;
  background: #eeeeea;
  border-radius: 99px;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  font-size: 8px;
  font-weight: 750;
  display: inline-flex;
}
.status-badge i {
  background: currentColor;
  border-radius: 50%;
  width: 5px;
  height: 5px;
}
.status-badge.completed {
  color: #278261;
  background: #e3f3eb;
}
.status-badge.processing,
.status-badge.submitting,
.status-badge.downloading {
  color: var(--accent);
  background: #eeebff;
}
.status-badge.failed {
  color: #c75e4f;
  background: #fee9e5;
}
.job-progress {
  text-align: center;
  background: #f0f0eb;
  border-radius: 9px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 280px;
  padding: 30px;
  display: flex;
}
.progress-visual {
  border: 1px solid #d7d5de;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 13px;
  display: flex;
}
.progress-visual > span {
  border: 2px solid #d7d2f5;
  border-top-color: var(--accent);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  animation: 1.2s linear infinite spin;
}
.job-progress h3 {
  margin: 11px 0 6px;
  font-size: 13px;
}
.job-progress p {
  color: #8e8c91;
  max-width: 280px;
  font-size: 10px;
  line-height: 1.45;
}
.job-progress.failed .progress-visual {
  border-color: #edc8c0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.activity-list {
  border-top: 1px solid #e4e3de;
  margin-top: 20px;
  padding-top: 17px;
}
.activity-list > h3 {
  color: #77757b;
  margin-bottom: 8px;
  font-size: 10px;
}
.activity-list > div {
  border-bottom: 1px solid #ebebe6;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  display: flex;
}
.activity-list > div:last-child {
  border: 0;
}
.activity-icon {
  color: #77727f;
  background: #eceae5;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  display: flex;
}
.activity-list p {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}
.activity-list p strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  overflow: hidden;
}
.activity-list p small {
  color: #aaa8ac;
  margin-top: 2px;
  font-size: 8px;
}
.video-layout {
  grid-template-columns: minmax(550px, 1.16fr) minmax(335px, 0.84fr);
  gap: 22px;
  max-width: 1230px;
  margin: 24px auto;
  padding: 0 25px 40px;
  display: grid;
}
.video-composer {
  padding: 27px;
}
.count-pill {
  color: #76747a;
  background: #efeee9;
  border-radius: 99px;
  margin-left: auto;
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 750;
}
.reference-strip {
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 17px;
  display: grid;
}
.reference-thumb {
  aspect-ratio: 1;
  background: #e8e8e3;
  border: 2px solid #0000;
  border-radius: 7px;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.reference-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.reference-thumb.selected {
  border-color: var(--accent);
}
.reference-thumb span {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 19px;
  height: 19px;
  font-size: 8px;
  font-weight: 800;
  display: flex;
  position: absolute;
  top: 4px;
  right: 4px;
}
.reference-empty {
  color: #8b8990;
  background: #efefea;
  border-radius: 7px;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 18px;
  font-size: 10px;
  display: flex;
}
.alias-list {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  display: flex;
}
.alias-list > div {
  background: #efeee9;
  border-radius: 6px;
  align-items: center;
  height: 31px;
  display: flex;
  overflow: hidden;
}
.alias-list span {
  color: #77747c;
  background: #e3e1dc;
  height: 100%;
  padding: 10px 7px;
  font-size: 8px;
}
.alias-list strong {
  color: var(--accent);
  margin-left: 7px;
  font-size: 10px;
}
.alias-list input {
  box-shadow: none;
  background: 0 0;
  border: 0;
  border-radius: 0;
  width: 58px;
  height: 28px;
  padding: 0 5px 0 1px;
  font-size: 9px;
  font-weight: 700;
}
.alias-list button {
  color: #99969d;
  background: 0 0;
  border: 0;
  padding: 6px;
  display: flex;
}
.second-step {
  border-top: 1px solid #e2e1dc;
  margin-top: 23px;
  padding-top: 22px;
}
.prompt-shell {
  position: relative;
}
.video-prompt {
  min-height: 140px;
  margin-top: 16px;
  padding-bottom: 46px;
}
.mention-row {
  gap: 5px;
  max-width: calc(100% - 20px);
  display: flex;
  position: absolute;
  bottom: 10px;
  left: 10px;
  overflow-x: auto;
}
.mention-row button {
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
  border: 0;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 8px;
  font-weight: 750;
}
.safety-note {
  color: #9a7b59;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 9px;
  display: flex;
}
.prompt-limit-note {
  color: #929097;
  text-align: right;
  margin-top: 5px;
  font-size: 8px;
}
.model-cards {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 16px;
  display: grid;
}
.model-cards button {
  text-align: left;
  background: #f1f0eb;
  border: 1px solid #dfded9;
  border-radius: 7px;
  flex-direction: column;
  gap: 4px;
  min-height: 61px;
  padding: 12px;
  display: flex;
  position: relative;
}
.model-cards button strong {
  color: #47464a;
  font-family: Georgia, serif;
  font-size: 13px;
}
.model-cards button small {
  color: #969499;
  font-size: 8px;
}
.model-cards button.active {
  background: var(--accent-soft);
  border-color: #9d90ec;
  box-shadow: inset 0 0 0 1px #9d90ec;
}
.model-cards button.active strong {
  color: var(--accent-dark);
}
.model-cards button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.48;
}
.model-cards button:disabled .recommended {
  display: none;
}
.recommended {
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  padding: 3px 5px;
  font-size: 7px;
  position: absolute;
  top: -7px;
  right: 5px;
}
.video-settings-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-top: 18px;
  display: grid;
}
.video-settings-grid > label {
  justify-content: space-between;
}
.mini-segment {
  margin-top: 1px;
}
.mini-segment button {
  min-height: 34px;
}
.duration-control strong {
  color: var(--accent);
  margin-top: -22px;
  margin-left: auto;
}
.duration-control input {
  accent-color: var(--accent);
  box-shadow: none;
  background: 0 0;
  border: 0;
  width: 100%;
  height: 22px;
  padding: 0;
}
.duration-control > span {
  color: #aaa8ad;
  justify-content: space-between;
  font-size: 7px;
  display: flex;
}
.duration-control i {
  font-style: normal;
}
.audio-toggle {
  align-items: flex-start;
}
.audio-toggle button {
  background: #d9d8d3;
  border: 0;
  border-radius: 99px;
  width: 42px;
  height: 24px;
  margin-top: 6px;
  padding: 3px;
  transition: all 0.2s;
}
.audio-toggle button i {
  background: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  transition: all 0.2s;
  display: block;
}
.audio-toggle button.on {
  background: var(--accent);
}
.audio-toggle button.on i {
  transform: translate(18px);
}
.video-button {
  background: #29282d !important;
  box-shadow: 0 8px 18px #19181c29 !important;
}
.sticky-result {
  position: sticky;
  top: 106px;
}
.library-page,
.admin-page {
  max-width: 1230px;
  margin: 24px auto;
  padding: 0 25px 40px;
}
.library-toolbar {
  justify-content: space-between;
  align-items: center;
  display: flex;
}
.filter-tabs {
  background: #e7e7e2;
  border-radius: 8px;
  gap: 2px;
  padding: 3px;
  display: flex;
}
.filter-tabs button {
  color: #77757b;
  background: 0 0;
  border: 0;
  border-radius: 6px;
  min-width: 65px;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 700;
}
.filter-tabs button.active {
  color: var(--accent);
  background: #fff;
  box-shadow: 0 2px 8px #1e1e1912;
}
.library-summary {
  color: #77757a;
  align-items: center;
  gap: 7px;
  margin: 22px 0 13px;
  font-size: 11px;
  display: flex;
}
.library-summary small {
  color: #aaa8ad;
  margin-left: auto;
  font-size: 9px;
}
.asset-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  display: grid;
}
.asset-card {
  background: var(--paper);
  border: 1px solid #dfded9;
  border-radius: 9px;
  transition: all 0.2s;
  overflow: hidden;
}
.asset-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.asset-media {
  aspect-ratio: 4/3;
  background: #e7e7e2;
  position: relative;
  overflow: hidden;
}
.asset-media img,
.asset-media video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.asset-preview-trigger {
  background: 0 0;
  border: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  display: block;
}
.asset-preview-trigger .preview-hint {
  opacity: 0;
  bottom: 7px;
  right: 7px;
}
.asset-preview-trigger:hover .preview-hint,
.asset-preview-trigger:focus-visible .preview-hint {
  opacity: 1;
}
.asset-media > span {
  color: #fff;
  letter-spacing: 0.08em;
  background: #1e1d22b8;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 7px;
  font-weight: 800;
  position: absolute;
  bottom: 7px;
  left: 7px;
}
.asset-info {
  align-items: center;
  gap: 8px;
  padding: 12px;
  display: flex;
}
.asset-info > div {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}
.asset-info strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  overflow: hidden;
}
.asset-info small {
  color: #aaa8ac;
  margin-top: 4px;
  font-size: 8px;
}
.asset-info a {
  color: #77747c;
  border: 1px solid #e0dfda;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  display: flex;
}
.admin-media-page {
  min-width: 0;
}
.admin-mobile-nav {
  display: none;
}
.admin-media-shortcut {
  color: #5f4cc2;
  background: #eeeafd;
  border: 1px solid #d8d0ff;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 10px;
  font-weight: 750;
  display: inline-flex;
}
.admin-media-shortcut:hover {
  background: #e5defd;
}
.admin-media-toolbar {
  border-bottom: 1px solid #e7e6e1;
  justify-content: space-between;
  align-items: center;
  margin: 19px 0 15px;
  padding-bottom: 12px;
  display: flex;
}
.admin-media-toolbar > span {
  color: #aaa8ad;
  font-size: 9px;
}
.admin-media-student-filter {
  align-items: center;
  gap: 8px;
  margin-left: auto;
  display: flex;
}
.admin-media-student-filter label {
  color: #8b8990;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 750;
}
.admin-media-student-filter select {
  min-width: 150px;
  height: 34px;
  padding: 0 10px;
}
.admin-asset-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.admin-media-page .asset-media video {
  object-fit: contain;
  background: #202025;
}
.admin-asset-info small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.media-pagination {
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  display: flex;
}
.media-pagination-pages {
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  display: flex;
}
.media-pagination button {
  color: #77747c;
  cursor: pointer;
  background: #f0efeb;
  border: 1px solid #deddd7;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  min-width: 31px;
  height: 31px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 750;
  display: inline-flex;
}
.media-pagination button:hover:not(:disabled) {
  color: var(--accent);
  border-color: #b9aef3;
}
.media-pagination button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.media-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.media-pagination .media-pagination-arrow {
  background: #fff;
}
.vm-video-page {
  min-width: 0;
}
.vm-video-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 14px;
  display: grid;
}
.vm-video-summary span {
  color: #85828a;
  background: #f6f5f1;
  border: 1px solid #e7e5df;
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 9px;
}
.vm-video-summary strong {
  color: #39363e;
  margin-bottom: 3px;
  font-size: 16px;
  display: block;
}
.vm-video-toolbar {
  grid-template-columns: minmax(170px, 0.35fr) minmax(220px, 1fr) auto;
  gap: 8px;
  margin: 14px 0;
  display: grid;
}
.vm-video-toolbar select,
.vm-video-toolbar input {
  width: 100%;
  height: 38px;
  font-size: 10px;
}
.vm-select-page {
  color: #716d77;
  align-items: center;
  gap: 7px;
  margin: 8px 0 13px;
  font-size: 9px;
  display: inline-flex;
}
.vm-select-page input {
  accent-color: var(--accent);
}
.vm-video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  display: grid;
}
.vm-video-card {
  min-width: 0;
  background: #faf9f6;
  border: 1px solid #e3e1dc;
  border-radius: 11px;
  overflow: hidden;
}
.vm-video-card.locked {
  background: #f6f5f3;
}
.vm-video-player {
  aspect-ratio: 16 / 9;
  background: #202025;
  position: relative;
}
.vm-video-player video {
  object-fit: contain;
  width: 100%;
  height: 100%;
  display: block;
}
.vm-lock-badge {
  color: #706d75;
  background: #ffffffeb;
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 8px;
  font-weight: 750;
  position: absolute;
  top: 9px;
  left: 9px;
}
.vm-video-info {
  min-width: 0;
  padding: 12px;
}
.vm-video-info strong,
.vm-video-info span,
.vm-video-info small,
.vm-video-info code {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  display: block;
}
.vm-video-info strong {
  color: #3f3c44;
  font-size: 11px;
}
.vm-video-info span {
  color: #6550c6;
  margin-top: 5px;
  font-size: 8px;
  font-weight: 700;
}
.vm-video-info small {
  color: #96939a;
  margin-top: 5px;
  font-size: 8px;
}
.vm-video-info code {
  color: #88858c;
  background: #efeee9;
  border-radius: 5px;
  margin-top: 8px;
  padding: 6px 7px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
}
.vm-video-info .vm-locked-reason {
  color: #a16d5b;
}
.media-loading {
  min-height: 230px;
}
.media-empty {
  min-height: 250px;
}
.library-empty {
  color: #99979c;
  border: 1px dashed #d5d4ce;
  border-radius: 11px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 430px;
  margin-top: 20px;
  display: flex;
}
.library-empty h2 {
  color: #5c5b60;
  margin: 15px 0 7px;
  font-size: 17px;
}
.library-empty p {
  margin-bottom: 20px;
  font-size: 10px;
}
.modal-backdrop {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 100;
  background: #1414179e;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
  position: fixed;
  inset: 0;
}
.modal {
  background: #fafaf7;
  border: 1px solid #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 430px;
  padding: 32px;
  position: relative;
  box-shadow: 0 30px 80px #0000004d;
}
.modal h2 {
  letter-spacing: -0.04em;
  margin: 9px 0;
  font-size: 24px;
}
.modal-icon {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  display: flex;
}
.modal-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  display: flex;
}
.form-error {
  color: #c35347;
  font-size: 10px;
}
.modal-close {
  color: #8d8b91;
  background: 0 0;
  border: 0;
  padding: 5px;
  position: absolute;
  top: 17px;
  right: 18px;
}
.student-modal form .button {
  margin-top: 7px;
}
.image-preview-backdrop {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 200;
  background: #0a0a0dd6;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
  position: fixed;
  inset: 0;
}
.image-preview-dialog {
  color: #fff;
  background: #1b1a1f;
  border: 1px solid #ffffff1f;
  border-radius: 14px;
  flex-direction: column;
  width: 100%;
  max-width: 1180px;
  max-height: calc(100vh - 40px);
  display: flex;
  overflow: hidden;
  box-shadow: 0 35px 100px #0000008c;
}
.image-preview-header {
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 17px 19px;
  display: flex;
}
.image-preview-header > div {
  min-width: 0;
}
.image-preview-header .eyebrow {
  color: #aaa0e8;
}
.image-preview-header h2 {
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
  font-size: 15px;
  overflow: hidden;
}
.image-preview-header button {
  color: #fff;
  background: #ffffff17;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 39px;
  height: 39px;
  display: flex;
}
.image-preview-stage {
  background: #0e0e11;
  flex: 1;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 16px;
  display: flex;
  overflow: auto;
}
.image-preview-stage img {
  object-fit: contain;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 185px);
  display: block;
}
.image-preview-footer {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 58px;
  padding: 12px 19px;
  display: flex;
}
.image-preview-footer > span {
  color: #aaa8b0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  overflow: hidden;
}
.image-preview-footer a {
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 35px;
  padding: 0 13px;
  font-size: 10px;
  font-weight: 750;
  display: flex;
}
.toast {
  color: #fff;
  z-index: 150;
  background: #28272c;
  border: 1px solid #ffffff1a;
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 32px);
  padding: 13px 17px;
  font-size: 11px;
  animation: 0.25s toast-in;
  display: flex;
  position: fixed;
  bottom: 23px;
  left: 50%;
  transform: translate(-50%);
  box-shadow: 0 15px 35px #00000038;
}
.toast svg {
  color: #72d0a5;
}
.toast-error svg {
  color: #ff8a7a;
}
@keyframes toast-in {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}
.admin-sidebar {
  background: #1d1d22;
}
.admin-security {
  margin-top: auto;
}
.admin-workspace {
  background: #f1f1ec;
}
.admin-page {
  flex-direction: column;
  gap: 18px;
  display: flex;
}
.metric-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  display: grid;
}
.metric-card {
  background: var(--paper);
  border: 1px solid #dfded8;
  border-radius: 10px;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 19px;
  display: flex;
}
.metric-icon {
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  width: 43px;
  height: 43px;
  display: flex;
}
.metric-icon svg {
  width: 20px;
  height: 20px;
}
.metric-icon.violet {
  color: #7665df;
  background: #eae6ff;
}
.metric-icon.blue {
  color: #4c83ad;
  background: #e2eef8;
}
.metric-icon.orange {
  color: #cf7543;
  background: #f9e9df;
}
.metric-icon.green {
  color: #3a9471;
  background: #e1f1e9;
}
.metric-card > div {
  grid-template-columns: auto auto;
  display: grid;
}
.metric-card p {
  color: #7f7d83;
  grid-column: 1/3;
  font-size: 9px;
}
.metric-card strong {
  margin-top: 3px;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 500;
}
.metric-card small {
  color: #aaa8ad;
  align-self: end;
  margin: 0 0 4px 7px;
  font-size: 8px;
}
.admin-two-column {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  display: grid;
}
.admin-card {
  padding: 23px;
}
.card-header {
  align-items: center;
  gap: 11px;
  display: flex;
}
.card-header > span {
  color: #77727e;
  background: #efeee9;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  display: flex;
}
.card-header svg {
  width: 17px;
  height: 17px;
}
.card-header h2 {
  margin-top: 4px;
  font-size: 15px;
}
.provider-budget {
  border-top: 1px solid #e7e6e1;
  margin-top: 18px;
  padding-top: 17px;
}
.provider-budget-head,
.provider-budget-head > span {
  justify-content: space-between;
  align-items: center;
  display: flex;
}
.provider-budget-head > span {
  gap: 7px;
  font-size: 10px;
}
.provider-budget-head > span > i {
  border-radius: 3px;
  width: 8px;
  height: 8px;
}
.provider-budget-head i.violet {
  background: var(--accent);
}
.provider-budget-head i.orange {
  background: var(--orange);
}
.connection {
  color: #a29fa5;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  display: inline-flex;
}
.connection > i {
  background: #b8b6ba;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}
.connection.connected {
  color: #3a8e6d;
}
.connection.connected > i {
  background: #45a47b;
}
.budget-numbers {
  align-items: baseline;
  gap: 5px;
  margin: 10px 0 7px;
  display: flex;
}
.budget-numbers strong {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}
.budget-numbers span {
  color: #97959a;
  font-size: 8px;
}
.progress-track {
  background: #e4e3de;
  border-radius: 99px;
  height: 5px;
  overflow: hidden;
}
.progress-track i {
  background: var(--accent);
  height: 100%;
  display: block;
}
.progress-track.orange i {
  background: var(--orange);
}
.provider-budget > p {
  color: #aaa8ad;
  margin-top: 7px;
  font-size: 8px;
}
.estimate-disclaimer,
.settings-intro {
  color: #969499;
  margin-top: 17px;
  font-size: 9px;
  line-height: 1.55;
}
.disk-figure {
  align-items: baseline;
  gap: 6px;
  margin: 26px 0 9px;
  display: flex;
}
.disk-figure strong {
  font-family: Georgia, serif;
  font-size: 35px;
  font-weight: 500;
}
.disk-figure span {
  color: #969499;
  font-size: 9px;
}
.storage-meta {
  color: #99969d;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 8px;
  display: flex;
}
.storage-meta > span {
  align-items: center;
  gap: 5px;
  display: flex;
}
.connection-list {
  border-top: 1px solid #e3e2dd;
  flex-direction: column;
  gap: 10px;
  margin-top: 19px;
  padding-top: 15px;
  display: flex;
}
.warning-banner {
  color: #b6693f;
  background: #fff1e8;
  border-radius: 6px;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 9px;
  font-size: 9px;
  display: flex;
}
.recent-table {
  overflow: hidden;
}
.recent-table .card-header {
  margin-bottom: 17px;
}
.job-table,
.student-table {
  margin-top: 17px;
  overflow-x: auto;
}
.table-head,
.table-row {
  align-items: center;
  min-width: 850px;
  display: grid;
}
.job-table .table-head,
.job-table .table-row {
  grid-template-columns: minmax(245px, 2fr) 100px 160px 80px 85px minmax(180px, 1.5fr) 35px;
}
.student-table .table-head,
.student-table .table-row {
  grid-template-columns: 1.3fr 1fr 0.9fr 0.7fr 100px;
  min-width: 700px;
}
.table-head {
  color: #aaa8ad;
  border-bottom: 1px solid #deddd8;
  padding: 7px 8px 10px;
  font-size: 8px;
}
.table-row {
  color: #747278;
  border-bottom: 1px solid #e9e8e3;
  min-height: 54px;
  padding: 8px;
  font-size: 9px;
}
.table-row:last-child {
  border-bottom: 0;
}
.job-kind-cell {
  align-items: center;
  gap: 9px;
  min-width: 0;
  display: flex;
}
.job-kind-cell > i {
  color: #77747c;
  background: #ecebe6;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 31px;
  height: 31px;
  display: flex;
}
.job-kind-cell svg {
  width: 15px;
  height: 15px;
}
.job-kind-cell > span {
  flex-direction: column;
  min-width: 0;
  display: flex;
}
.job-kind-cell strong {
  color: #3f3e42;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
  font-size: 9px;
  overflow: hidden;
}
.job-kind-cell small {
  color: #aaa8ad;
  margin-top: 3px;
  font-size: 7px;
}
.job-error-cell {
  color: #b34b4b;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
  min-width: 0;
}
.job-kind-cell .job-error-reason {
  color: #b34b4b;
  line-height: 1.45;
  max-width: 290px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.admin-status,
.account-status {
  color: #89878d;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  display: flex;
}
.admin-status i,
.account-status i {
  background: currentColor;
  border-radius: 50%;
  width: 5px;
  height: 5px;
}
.admin-status.completed,
.account-status.active {
  color: #2d8c69;
}
.admin-status.processing,
.admin-status.submitting,
.admin-status.downloading {
  color: var(--accent);
}
.admin-status.failed {
  color: #c65b4d;
}
.table-empty {
  color: #99979c;
  justify-content: center;
  align-items: center;
  min-height: 150px;
  font-size: 10px;
  display: flex;
}
.card-title-row {
  justify-content: space-between;
  align-items: center;
  display: flex;
}
.policy-banner {
  color: var(--accent);
  background: #efedff;
  border: 1px solid #ded9ff;
  border-radius: 7px;
  align-items: center;
  gap: 8px;
  margin: 20px 0 6px;
  padding: 11px 13px;
  font-size: 9px;
  display: flex;
}
.policy-banner span {
  color: #696575;
}
.policy-banner strong {
  color: #52469c;
}
.person-cell {
  align-items: center;
  gap: 8px;
  display: flex;
}
.person-cell i {
  color: #6758c2;
  background: #eae7fc;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  font-style: normal;
  display: flex;
}
.person-cell strong {
  color: #454348;
}
.settings-grid-page {
  grid-template-columns: 1fr 1fr;
  display: grid;
}
.policy-settings-card {
  grid-column: 1/-1;
}
.credential-form,
.budget-form {
  flex-direction: column;
  gap: 16px;
  margin-top: 23px;
  display: flex;
}
.credential-form label {
  position: relative;
}
.key-status {
  color: #aaa8ad;
  font-size: 8px;
  font-weight: 600;
  position: absolute;
  top: 2px;
  right: 0;
}
.key-status.connected {
  color: #368b68;
  align-items: center;
  gap: 3px;
  display: flex;
}
.budget-form .split-fields {
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  display: grid;
}
.cost-source-box {
  color: #858389;
  background: #efeee9;
  border-radius: 7px;
  margin-top: 17px;
  padding: 12px;
  font-size: 8px;
  line-height: 1.55;
}
.cost-source-box strong {
  color: #5f5d63;
  margin-bottom: 5px;
  font-size: 9px;
  display: block;
}
.policy-preview {
  background: #efedff;
  border-radius: 7px;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  display: flex;
}
.policy-preview span {
  color: #8c88a1;
  font-size: 8px;
}
.policy-preview strong {
  color: #55499d;
  font-size: 11px;
}
.policy-preview small {
  color: #7d7895;
  font-size: 8px;
  line-height: 1.45;
}
.resolution-policy {
  border-top: 1px solid #e6e4df;
  padding-top: 16px;
}
.resolution-policy-heading {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
  display: flex;
}
.resolution-policy-heading > span {
  color: #5a585e;
  font-size: 10px;
  font-weight: 750;
}
.resolution-policy-heading > small {
  color: #aaa8ad;
  font-size: 8px;
}
.resolution-policy-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  display: grid;
}
.resolution-policy-item {
  color: #77747d;
  text-align: left;
  background: #efeee9;
  border: 1px solid #dfded8;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  padding: 10px 12px;
  display: flex;
}
button.resolution-policy-item {
  cursor: pointer;
}
.resolution-policy-item > span {
  flex-direction: column;
  gap: 3px;
  display: flex;
}
.resolution-policy-item strong {
  color: #4f4d53;
  font-family: Georgia, serif;
  font-size: 13px;
}
.resolution-policy-item small {
  color: #99979d;
  font-size: 7px;
}
.resolution-policy-item b {
  color: #8e8b94;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  display: flex;
}
.resolution-policy-item.always-enabled,
.resolution-policy-item.enabled {
  background: #eeebff;
  border-color: #cfc8f6;
}
.resolution-policy-item.always-enabled b,
.resolution-policy-item.enabled b {
  color: var(--accent);
}
.resolution-policy-item.enabled {
  box-shadow: inset 0 0 0 1px #7765df29;
}
.live-indicator {
  color: #438568;
}
.admin-loading {
  color: #89878d;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 500px;
  display: flex;
}
.spin {
  animation: 1s linear infinite spin;
}
@media (width<=1100px) {
  .studio-page,
  .video-layout {
    grid-template-columns: 1fr;
    max-width: 780px;
  }
  .result-card {
    min-height: auto;
  }
  .sticky-result {
    position: static;
  }
  .asset-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .settings-grid-page {
    grid-template-columns: 1fr;
  }
  .vm-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (width<=820px) {
  .login-page {
    grid-template-columns: 1fr;
  }
  .operator-mode-button {
    top: 18px;
    right: 18px;
  }
  .login-story {
    min-height: 42vh;
    padding: 28px;
  }
  .story-copy {
    margin: 55px 0 30px;
  }
  .story-copy h1 {
    margin: 15px 0;
    font-size: 40px;
  }
  .story-flow {
    display: none;
  }
  .login-panel {
    min-height: 58vh;
    padding: 38px 24px;
  }
  .app-shell {
    padding-bottom: 66px;
    display: block;
  }
  .sidebar {
    width: 82%;
    max-width: 260px;
    height: 100%;
    transition: all 0.24s;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-102%);
  }
  .sidebar.open {
    transform: translate(0);
  }
  .admin-sidebar {
    width: 205px;
    transform: none;
  }
  .admin-shell {
    grid-template-columns: 205px minmax(0, 1fr);
    padding-bottom: 0;
    display: grid;
  }
  .menu-scrim {
    z-index: 29;
    background: #00000073;
    border: 0;
    display: block;
    position: fixed;
    inset: 0;
  }
  .mobile-menu-button {
    display: inline-flex;
  }
  .topbar {
    height: 74px;
    padding: 0 18px;
  }
  .topbar > div:first-of-type {
    flex: 1;
    margin-left: 10px;
  }
  .topbar h1 {
    font-size: 18px;
  }
  .mini-user,
  .topbar .working-pill {
    display: none;
  }
  .mobile-bottom-nav {
    padding: 7px 12px env(safe-area-inset-bottom);
    z-index: 28;
    background: #1f1f24f5;
    grid-template-columns: repeat(5, 1fr);
    display: grid;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .mobile-bottom-nav .side-button {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    padding: 4px;
    font-size: 8px;
  }
  .mobile-bottom-nav .side-button span {
    flex: 0;
  }
  .mobile-bottom-nav .side-button.active {
    color: #a99cff;
    background: 0 0;
  }
  .asset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-two-column {
    grid-template-columns: 1fr;
  }
  .admin-page {
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (width<=600px) {
  .login-story {
    min-height: 36vh;
    padding: 23px;
  }
  .login-brand .brand-mark {
    width: 38px;
    height: 38px;
  }
  .story-copy {
    margin: 40px 0 15px;
  }
  .story-copy h1 {
    font-size: 32px;
  }
  .story-copy > p:last-child {
    display: none;
  }
  .login-panel {
    min-height: 64vh;
  }
  .studio-page,
  .video-layout,
  .library-page {
    margin-top: 14px;
    padding: 0 12px 24px;
  }
  .studio-main-layout {
    display: block;
  }
  .basic-ai-page {
    min-height: calc(100vh - 150px);
    margin: 14px 12px 24px;
  }
  .basic-ai-header {
    align-items: flex-start;
    padding: 15px;
  }
  .basic-ai-header p {
    display: none;
  }
  .basic-ai-messages {
    max-height: none;
    padding: 15px;
  }
  .basic-ai-message {
    max-width: 94%;
  }
  .basic-ai-composer {
    padding: 12px;
  }
  .studio-chat {
    height: 420px;
    min-height: 360px;
    margin: 0 12px 24px;
    position: static;
  }
  .prompt-studio-page {
    display: block;
  }
  .prompt-studio-page > section + section {
    margin-top: 12px;
  }
  .vibe-coding-page {
    margin-top: 14px;
    padding: 0 12px 24px;
    display: block;
  }
  .vibe-result-card {
    min-height: 520px;
    margin-top: 12px;
  }
  .vibe-result-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 17px;
  }
  .vibe-canvas iframe,
  .vibe-canvas pre {
    min-height: 420px;
  }
  .bulk-actions {
    flex-wrap: wrap;
    align-items: stretch;
  }
  .prompt-guide-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: auto;
    margin: 12px 12px 0;
    padding: 11px;
  }
  .prompt-guide-banner > a {
    justify-content: center;
  }
  .composer-card,
  .result-card,
  .admin-card {
    border-radius: 10px;
    padding: 19px;
  }
  .settings-grid,
  .video-settings-grid {
    grid-template-columns: 1fr;
  }
  .reference-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .model-cards button {
    padding: 9px;
  }
  .model-cards button small {
    line-height: 1.25;
  }
  .latest-result img,
  .latest-result video {
    height: 260px;
  }
  .asset-preview-trigger .preview-hint {
    opacity: 1;
  }
  .library-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .library-summary small {
    display: none;
  }
  .asset-grid {
    gap: 9px;
  }
  .admin-media-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .admin-media-student-filter {
    width: 100%;
    margin-left: 0;
  }
  .admin-media-student-filter select {
    flex: 1;
    min-width: 0;
  }
  .asset-info {
    padding: 9px;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .admin-shell {
    display: block;
  }
  .admin-sidebar {
    display: none;
  }
  .admin-mobile-nav {
    background: #fff;
    border-bottom: 1px solid #e7e6e1;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    padding: 8px 10px;
    display: grid;
  }
  .admin-mobile-nav button {
    color: #8b8990;
    background: 0 0;
    border: 0;
    border-radius: 8px;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 7px 2px;
    font-size: 9px;
    display: flex;
  }
  .admin-mobile-nav button.active {
    color: #6550c6;
    background: #eeeafd;
    font-weight: 750;
  }
  .admin-workspace .topbar {
    padding: 0 15px;
  }
  .admin-media-shortcut {
    justify-content: center;
    gap: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 0;
  }
  .admin-page {
    padding: 0 10px 30px;
  }
  .settings-grid-page {
    display: flex;
  }
  .vm-video-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vm-video-toolbar {
    grid-template-columns: 1fr;
  }
  .vm-video-grid {
    grid-template-columns: 1fr;
  }
  .card-title-row {
    align-items: flex-start;
    gap: 12px;
  }
  .card-title-row .button {
    padding: 0 11px;
    font-size: 10px;
  }
  .budget-form .split-fields {
    grid-template-columns: 1fr;
  }
  .resolution-policy-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .resolution-policy-grid {
    grid-template-columns: 1fr;
  }
  .desktop-only {
    display: none;
  }
  .image-preview-backdrop {
    padding: 8px;
  }
  .image-preview-dialog {
    border-radius: 10px;
    max-height: calc(100vh - 16px);
  }
  .image-preview-header {
    padding: 13px 14px;
  }
  .image-preview-stage {
    padding: 8px;
  }
  .image-preview-stage img {
    max-height: calc(100vh - 172px);
  }
  .image-preview-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    padding: 11px 14px 14px;
  }
  .image-preview-footer a {
    justify-content: center;
  }
}
