* {
  box-sizing: border-box;
}

:root {
  --bg: #eef0f2;
  --bg-soft: #f7f7f5;
  --surface: #ffffff;
  --surface-muted: #f4f1ec;
  --surface-warm: #fbfaf7;
  --ink: #151719;
  --ink-muted: #5d636b;
  --ink-soft: #8a9098;
  --line: #d9d6cf;
  --line-strong: #c8c3b8;
  --charcoal: #202427;
  --charcoal-deep: #111416;
  --charcoal-soft: #30363a;
  --wine: #7f1d2d;
  --wine-dark: #5f1521;
  --wine-soft: #f5e7e9;
  --blue: #2563a8;
  --blue-soft: #e5edf7;
  --green: #2f7d50;
  --green-soft: #e5f2ea;
  --amber: #a8641d;
  --amber-soft: #f7ead9;
  --red: #b42332;
  --red-soft: #f8e4e7;
  --shadow: 0 18px 48px rgba(22, 24, 27, 0.1);
  --shadow-tight: 0 10px 24px rgba(22, 24, 27, 0.08);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --max: 1180px;
  --font: "Archivo", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(238, 240, 242, 0.96)),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: var(--wine);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  max-width: min(420px, calc(100vw - 32px));
  transform: translate(-50%, 18px);
  padding: 12px 16px;
  border: 1px solid rgba(32, 36, 39, 0.12);
  border-radius: var(--radius);
  background: rgba(32, 36, 39, 0.94);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.login-page {
  display: none;
  min-height: 100vh;
  padding: 32px;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(17, 20, 22, 0.96) 0%, rgba(17, 20, 22, 0.88) 42%, rgba(238, 240, 242, 0.94) 42%, rgba(238, 240, 242, 1) 100%),
    var(--bg);
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.32;
}

.login-layout {
  width: min(1060px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(17, 20, 22, 0.2);
  background: var(--surface);
}

.left-slogan {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 54px;
  background:
    linear-gradient(180deg, rgba(17, 20, 22, 0.08), rgba(17, 20, 22, 0.78)),
    linear-gradient(135deg, #202427, #111416);
  color: #fff;
}

.left-slogan::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  pointer-events: none;
}

.logo {
  position: absolute;
  top: 54px;
  left: 54px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-kicker,
.login-card-kicker,
.section-kicker,
.user-kicker,
.library-toolbar-title,
.reviewing-toolbar-title,
.reviewing-hero-kicker,
.upload-panel-tag,
.stat-chip,
.workspace-badge,
.library-empty-kicker,
.reviewing-empty-kicker {
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-kicker {
  color: #e3d9cc;
}

.slogan {
  position: relative;
  z-index: 1;
  max-width: 520px;
  color: #fff;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  line-height: 0.98;
}

.sub-slogan {
  position: relative;
  z-index: 1;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.7;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 48px;
  background: var(--surface-warm);
}

.login-title {
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
}

.input-group,
.form-group {
  display: grid;
  gap: 8px;
}

.input-group label,
.form-group label,
.appeal-reason-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.input-group input,
.form-group input,
.form-group select,
.form-group textarea,
.appeal-reason-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 12px 13px;
  box-shadow: 0 1px 0 rgba(17, 20, 22, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-group textarea,
.appeal-reason-input {
  min-height: 124px;
  resize: vertical;
}

.input-group input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.appeal-reason-input:focus {
  border-color: rgba(127, 29, 45, 0.72);
  box-shadow: 0 0 0 3px rgba(127, 29, 45, 0.1);
}

.login-agreement,
.agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 13px;
}

.login-agreement input,
.agreement input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--wine);
}

.login-btn,
.submit-btn,
.upload-btn,
.reviewing-btn,
.logout-btn,
.back-btn,
.action-btn,
.modal-btn,
.category-btn,
.status-filter-btn,
.overview-primary-btn,
.overview-secondary-btn,
.primary-action,
.secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.login-btn,
.submit-btn,
.overview-primary-btn,
.btn-confirm,
.action-btn.up {
  background: var(--wine);
  color: #fff;
  box-shadow: 0 12px 24px rgba(127, 29, 45, 0.16);
}

.login-btn:hover,
.submit-btn:hover,
.overview-primary-btn:hover,
.btn-confirm:hover,
.action-btn.up:hover {
  background: var(--wine-dark);
  transform: translateY(-1px);
}

.overview-secondary-btn,
.logout-btn,
.back-btn,
.category-btn,
.status-filter-btn,
.btn-cancel,
.action-btn,
.reason-btn,
.appeal-btn {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.overview-secondary-btn:hover,
.logout-btn:hover,
.back-btn:hover,
.category-btn:hover,
.status-filter-btn:hover,
.btn-cancel:hover,
.action-btn:hover,
.reason-btn:hover,
.appeal-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.btn-danger,
.action-btn.del {
  border-color: rgba(180, 35, 50, 0.2);
  background: var(--red-soft);
  color: var(--red);
}

.btn-danger:hover,
.action-btn.del:hover {
  border-color: rgba(180, 35, 50, 0.42);
  background: #f2cfd4;
}

.action-btn.down {
  border-color: rgba(168, 100, 29, 0.24);
  background: var(--amber-soft);
  color: var(--amber);
}

.dashboard,
.movie-list,
.reviewing-list,
.upload-page {
  display: none;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(32, 36, 39, 0.055) 1px, transparent 1px),
    var(--bg);
  background-size: 88px 88px;
}

.workspace-chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 16px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--charcoal-deep);
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 20, 22, 0.12);
}

.user-bar-main,
.user-bar-side {
  display: flex;
  align-items: center;
  gap: 14px;
}

.workspace-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.workspace-nav-btn {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.workspace-nav-btn:hover,
.workspace-nav-btn.active {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.user-avatar {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #fff;
}

.user-name {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.user-email {
  max-width: min(48vw, 420px);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-kicker,
.workspace-badge {
  color: rgba(255, 255, 255, 0.58);
}

.workspace-badge {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.055);
}

.logout-btn {
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.dashboard-shell,
.library-shell,
.violation-shell,
.reviewing-shell,
.upload-shell {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.overview-hero,
.library-hero,
.violation-hero,
.reviewing-hero,
.upload-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-tight);
}

.overview-copy,
.library-hero-main,
.violation-hero-main,
.reviewing-hero-main,
.upload-hero-main {
  display: grid;
  gap: 8px;
}

.page-title {
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.02;
}

.overview-note {
  max-width: 680px;
  color: var(--ink-muted);
  font-size: 15px;
}

.overview-actions-panel {
  display: grid;
  gap: 12px;
  min-width: 280px;
  justify-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-warm);
}

.overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stats,
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-tight);
}

.stat-card.has-arrow {
  cursor: pointer;
}

.stat-card.has-arrow:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.stat-card-feature {
  grid-column: span 2;
  background: linear-gradient(135deg, #fff, #f8f2f0);
}

.stat-card-alert {
  grid-column: span 2;
  border-color: rgba(180, 35, 50, 0.2);
  background: linear-gradient(135deg, #fff, var(--red-soft));
}

.stat-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.stat-label {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 800;
}

.stat-num {
  color: var(--ink);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.stat-chip {
  color: var(--wine);
  white-space: nowrap;
}

.stat-chip-alert {
  color: var(--red);
}

.back-btn {
  width: fit-content;
  min-height: 36px;
  padding: 0 12px;
}

.library-toolbar,
.reviewing-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.movie-categories,
.review-status-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-btn,
.status-filter-btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.category-btn.active,
.status-filter-btn.active {
  border-color: rgba(127, 29, 45, 0.24);
  background: var(--wine-soft);
  color: var(--wine);
}

.library-list,
.violation-library,
.reviewing-library {
  display: grid;
  gap: 10px;
}

.list-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  min-height: 130px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(22, 24, 27, 0.05);
}

.violation-library .list-item {
  border-color: rgba(180, 35, 50, 0.22);
}

.movie-cover {
  width: 112px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface-muted);
  object-fit: cover;
}

.movie-info {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.movie-info-top,
.movie-data,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--ink-muted);
  font-size: 13px;
}

.movie-title {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.movie-genre-pill,
.review-bucket-pill,
.movie-availability {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.movie-genre-pill,
.review-bucket-pill {
  background: var(--surface-muted);
  color: var(--ink-muted);
}

.movie-availability-live {
  background: var(--green-soft);
  color: var(--green);
}

.movie-availability-offline {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-wrapper,
.action-group,
.reason-group {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.action-group {
  flex-wrap: wrap;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-processing {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-reviewing {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-approved {
  background: var(--green-soft);
  color: var(--green);
}

.status-rejected {
  background: var(--red-soft);
  color: var(--red);
}

.action-btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.violation-reason {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-left: 3px solid var(--red);
  border-radius: var(--radius-xs);
  background: var(--red-soft);
}

.violation-reason-label {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.violation-reason-text {
  color: #6d1e27;
  font-size: 13px;
}

.appeal-status-note,
.appeal-result-note {
  display: block;
  margin-top: 5px;
}

.library-empty-state,
.reviewing-empty-state {
  display: grid;
  gap: 6px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.library-empty-title,
.reviewing-empty-title {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.library-empty-copy,
.reviewing-empty-copy {
  margin: 0;
  color: var(--ink-muted);
}

.reviewing-hero {
  align-items: stretch;
}

.reviewing-hero-side {
  width: min(390px, 100%);
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(168, 100, 29, 0.24);
  border-radius: var(--radius);
  background: var(--amber-soft);
}

.review-deletion-warning {
  display: grid;
  gap: 8px;
  color: #6f4215;
  font-size: 13px;
}

.review-deletion-warning p {
  margin: 0;
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}

.upload-main-panel,
.upload-side-panel,
.upload-warning-panel {
  min-width: 0;
}

.upload-main-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-tight);
}

.upload-field-grid,
.upload-assets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.journey-input {
  min-height: 112px;
}

.char-counter {
  justify-self: end;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.upload-asset-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-warm);
}

.upload-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.upload-panel-tag {
  color: var(--ink-soft);
}

.upload-file-btn {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.upload-file-btn:hover {
  border-color: rgba(127, 29, 45, 0.42);
  background: #fdf9f9;
}

.upload-file-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-file-btn-compact {
  min-height: 190px;
}

.upload-file-title {
  color: var(--ink);
  font-weight: 800;
}

.upload-hint {
  max-width: 420px;
  color: var(--ink-muted);
  font-size: 12px;
}

.upload-preview {
  display: none;
  width: 100%;
  max-height: 210px;
  border-radius: var(--radius-xs);
  object-fit: cover;
}

.upload-preview.is-visible {
  display: block;
}

.upload-file-btn.has-preview {
  align-content: start;
}

.upload-file-btn.has-preview .upload-file-title,
.upload-file-btn.has-preview .upload-hint {
  display: none;
}

.upload-file-name {
  display: none;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-file-name.is-visible {
  display: block;
}

.upload-progress {
  display: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}

.upload-progress.is-visible {
  display: block;
}

.upload-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wine), #b44a5a);
  transition: width 0.18s ease;
}

.upload-agreement-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-warm);
}

.upload-submit-btn {
  justify-self: start;
  min-width: 190px;
}

.upload-warning-panel {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(180, 35, 50, 0.2);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-tight);
}

.upload-warning-title {
  color: var(--red);
  font-weight: 800;
}

.upload-warning-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-muted);
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(17, 20, 22, 0.46);
}

.modal-content {
  width: min(480px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(17, 20, 22, 0.28);
  padding: 22px;
}

.appeal-modal-content {
  width: min(620px, 100%);
}

.modal-title {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.modal-body {
  margin-top: 12px;
  color: var(--ink-muted);
}

.modal-body p {
  margin: 0 0 10px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.modal-btn {
  min-width: 96px;
}

.success-modal-content {
  border-color: rgba(47, 125, 80, 0.24);
}

.success-modal-footer {
  justify-content: center;
}

.appeal-film-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.appeal-film-summary > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-warm);
}

.appeal-film-summary span,
.appeal-help-text {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
}

.appeal-film-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.appeal-help-text {
  margin-top: 8px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(238, 240, 242, 0.74);
  backdrop-filter: blur(5px);
}

.loading-overlay.show {
  display: flex;
}

.loading-box {
  width: min(430px, 100%);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--surface-muted);
  border-top-color: var(--wine);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-main {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.loading-text {
  color: var(--ink);
  font-weight: 800;
}

.loading-upload-panel {
  display: none;
  gap: 8px;
}

.loading-overlay.is-uploading .loading-upload-panel {
  display: grid;
}

.loading-upload-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 13px;
}

.loading-upload-track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}

.loading-upload-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wine), #b44a5a);
  transition: width 0.18s ease;
}

.loading-upload-hint {
  color: var(--ink-soft);
  font-size: 12px;
}

@media (max-width: 1080px) {
  .login-page {
    background: var(--charcoal-deep);
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .left-slogan {
    min-height: 360px;
  }

  .overview-hero,
  .reviewing-hero,
  .upload-layout {
    grid-template-columns: 1fr;
  }

  .overview-actions-panel,
  .reviewing-hero-side {
    width: 100%;
    min-width: 0;
  }

  .stats,
  .dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-card-feature,
  .stat-card-alert {
    grid-column: span 1;
  }

  .upload-warning-panel {
    position: static;
  }

  .workspace-chrome {
    flex-wrap: wrap;
  }

  .workspace-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .login-page {
    padding: 16px;
  }

  .login-layout {
    min-height: 0;
  }

  .left-slogan,
  .login-card {
    padding: 28px;
  }

  .left-slogan {
    min-height: 300px;
  }

  .left-slogan::before,
  .logo {
    display: none;
  }

  .workspace-chrome {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .user-bar-main,
  .user-bar-side,
  .workspace-nav {
    width: 100%;
  }

  .user-bar-side {
    justify-content: space-between;
  }

  .workspace-badge {
    display: none;
  }

  .dashboard-shell,
  .library-shell,
  .violation-shell,
  .reviewing-shell,
  .upload-shell {
    width: calc(100vw - 24px);
    padding: 18px 0 34px;
  }

  .overview-hero,
  .library-hero,
  .violation-hero,
  .reviewing-hero,
  .upload-hero,
  .upload-main-panel {
    padding: 18px;
    border-radius: var(--radius);
  }

  .page-title {
    font-size: 31px;
  }

  .stats,
  .dashboard-stats,
  .upload-field-grid,
  .upload-assets-grid,
  .appeal-film-summary {
    grid-template-columns: 1fr;
  }

  .library-toolbar,
  .reviewing-toolbar {
    grid-template-columns: 1fr;
  }

  .list-item {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
  }

  .movie-cover {
    width: 92px;
  }

  .status-wrapper,
  .action-group,
  .reason-group {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .action-group,
  .overview-actions {
    width: 100%;
  }

  .action-btn,
  .overview-actions > button,
  .upload-submit-btn,
  .modal-btn {
    flex: 1;
  }

  .modal-footer {
    flex-direction: column-reverse;
  }

  .modal-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .left-slogan,
  .login-card {
    padding: 22px;
  }

  .slogan {
    font-size: 32px;
  }

  .list-item {
    grid-template-columns: 1fr;
  }

  .movie-cover {
    width: 100%;
  }
}
