:root {
  --bg-start: #0816ff;
  --bg-end: #6600c4;
  --surface: rgba(255, 255, 255, 0.12);
  --surface-strong: rgba(255, 255, 255, 0.18);
  --surface-muted: rgba(237, 238, 255, 0.08);
  --card: #f8f8ff;
  --card-muted: rgba(248, 248, 255, 0.9);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.72);
  --ink: #0f14a8;
  --ink-soft: rgba(15, 20, 168, 0.64);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.28);
  --success: #7af1c1;
  --warning: #ffe486;
  --danger: #ff8aaf;
  --shadow: 0 28px 90px rgba(12, 4, 57, 0.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --sidebar-width: 84px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Inter Tight", sans-serif;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  color: var(--text);
  overflow-x: hidden;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

a {
  color: inherit;
}

#app {
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  max-width: 1680px;
  margin: 0 auto;
}

.brand-logo {
  display: block;
  max-width: 300px;
  width: 100%;
  height: auto;
}

.brand-logo-compact {
  width: 58px;
  max-width: 58px;
}

.sidebar {
  position: relative;
  padding: 24px 14px;
  border-right: 1px solid var(--line);
  background: transparent;
}

.sidebar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.sidebar-brand {
  padding: 0;
}

.sidebar-copy h1,
.sidebar-copy h2,
.hero-title,
.section-title,
.metric-value,
.step-chip,
.immersive-title,
.login-card h2,
.notice-title,
.upload-title,
.success-title {
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0;
}

.sidebar-copy h1,
.sidebar-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 2.3vw, 3.1rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.sidebar-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.sidebar-copy p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.58;
  max-width: 18rem;
}

.status-pill {
  align-self: flex-start;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.nav-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 12px;
  text-align: center;
  background: transparent;
  color: var(--text-soft);
  font-weight: 700;
  transition: 180ms ease;
}

.nav-button::before {
  display: none;
}

.nav-button:hover,
.nav-button.active {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text);
}

.nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.support-card {
  margin-top: 6px;
  padding: 18px 0 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.support-card h3,
.table-card h3,
.panel-card h3,
.notice-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.support-card p,
.support-card li,
.panel-card p,
.notice-card p,
.meta-label,
.metric-label,
.table-head,
.table-cell-soft,
.empty-state p,
.upload-help,
.helper-copy {
  color: var(--text-soft);
}

.support-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.support-list li {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 8px;
}

.main-panel {
  padding: 32px 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.topbar-copy h2,
.hero-title,
.section-title,
.immersive-title,
.upload-title,
.success-title,
.notice-title {
  margin: 0;
}

.topbar-copy h2 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.topbar-copy p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  max-width: 52rem;
}

.dashboard-banner-logo {
  display: block;
  width: min(360px, 62vw);
  height: auto;
}

.topbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:active,
.icon-button:active,
.nav-button:active,
.text-action:active {
  transform: translateY(0) scale(0.98);
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.dashboard-greeting {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 2px 0 4px;
  animation: pageIn 420ms ease both;
}

.dashboard-greeting h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2rem, 3vw, 4rem);
  line-height: 0.92;
}

.dashboard-greeting p {
  margin: 0;
  max-width: 44rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.greeting-eyebrow {
  margin: 0 0 10px !important;
  color: var(--text) !important;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.row-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.text-action {
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.text-action:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.text-action.danger {
  color: #ffe2eb;
  border-color: rgba(255, 138, 175, 0.22);
}

.text-action.danger:hover {
  background: rgba(255, 138, 175, 0.16);
}

.row-note {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.environment-badge {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.button-danger {
  background: rgba(255, 138, 175, 0.16);
  color: #fff3f8;
  border: 1px solid rgba(255, 138, 175, 0.26);
}

.button[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.banner {
  padding: 18px 0 20px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.banner strong {
  display: block;
  margin-bottom: 4px;
}

.hero-grid,
.metric-grid,
.content-grid,
.immersive-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.82fr);
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  animation: pageIn 420ms ease both;
}

.delivery-console,
.status-panel {
  min-width: 0;
}

.delivery-console {
  padding-top: 4px;
}

.status-panel {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.immersive-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: start;
}

.hero-card,
.metric-card,
.table-card,
.panel-card,
.login-card,
.notice-card,
.upload-zone,
.queue-card,
.preview-card,
.wizard-card {
  border-radius: 0;
  box-shadow: none;
}

.hero-card,
.metric-card,
.table-card,
.panel-card,
.queue-card,
.wizard-card {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  backdrop-filter: none;
}

.hero-card {
  padding: 28px 0 22px;
  display: grid;
  gap: 20px;
  overflow: hidden;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.62);
}

.hero-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-title {
  font-size: clamp(2.1rem, 2.7vw, 3.55rem);
  line-height: 0.94;
  max-width: 12ch;
}

.hero-subtitle {
  margin: 0;
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.62;
}

.hero-feature-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-note {
  display: grid;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-note strong {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-note span {
  color: var(--text-soft);
  line-height: 1.55;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.84rem;
  font-weight: 700;
}

.metric-card {
  padding: 20px 0 0;
}

.metric-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.metric-value {
  font-size: clamp(2rem, 2.2vw, 2.6rem);
  line-height: 0.95;
  margin: 0;
}

.metric-foot {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.table-card,
.panel-card,
.wizard-card,
.queue-card {
  padding: 24px 0 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.16rem;
  line-height: 1.1;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 12px;
}

.table tbody tr {
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.58);
}

.table tbody tr:focus-within {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.76);
}

.table tbody td {
  padding: 18px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.table tbody td:first-child {
  padding-left: 12px;
}

.table tbody td:last-child {
  padding-right: 12px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 8px;
}

.status-value {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.status-draft {
  background: rgba(255, 255, 255, 0.7);
}

.status-submitted {
  background: #72f1bf;
}

.status-processing {
  background: #8ed0ff;
}

.status-completed {
  background: #aef28e;
}

.status-rejected {
  background: #ff8faf;
}

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

.panel-item {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.panel-item strong {
  text-align: right;
  max-width: 16rem;
  overflow-wrap: anywhere;
}

.snapshot-card .panel-list {
  gap: 0;
}

.sidebar-footer .button {
  width: 100%;
}

.status-summary {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.status-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-summary-item strong {
  font-family: "Unbounded", sans-serif;
  font-size: 1.35rem;
}

.account-summary {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.account-summary > div {
  display: grid;
  gap: 6px;
}

.account-summary strong {
  overflow-wrap: anywhere;
}

.login-view,
.loading-view,
.complete-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.2fr);
}

.complete-view-single {
  grid-template-columns: 1fr;
  place-items: center;
}

.complete-view-single .complete-showcase {
  width: min(980px, 100%);
  align-items: center;
  text-align: center;
}

.auth-showcase,
.loading-showcase,
.complete-showcase {
  padding: 42px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.showcase-copy {
  max-width: 24rem;
}

.showcase-copy h1 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.showcase-copy p {
  margin: 16px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.login-panel,
.loading-panel,
.complete-panel {
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card,
.notice-card,
.preview-card {
  background: transparent;
  color: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.login-card {
  width: min(560px, 100%);
  padding: 34px 32px;
  border: 0;
  border-radius: 28px;
  background: rgba(248, 248, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(12, 4, 57, 0.28);
}

.login-card h2 {
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 0.94;
  margin: 0 0 22px;
  color: var(--ink);
}

.login-card p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  line-height: 1.58;
}

.login-card .field label {
  color: var(--ink);
}

.login-card .field input {
  border-color: rgba(15, 20, 168, 0.12);
  background: rgba(234, 236, 255, 0.86);
  color: var(--ink);
}

.login-card .field input:focus {
  border-color: rgba(15, 20, 168, 0.34);
  box-shadow: 0 0 0 4px rgba(56, 63, 255, 0.12);
}

.login-card .button-primary {
  background: linear-gradient(135deg, rgba(17, 23, 230, 0.95), rgba(95, 16, 198, 0.92));
  color: #ffffff;
  border-color: rgba(15, 20, 168, 0.18);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 10px;
}

.field label,
.field-legend {
  font-weight: 800;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 18px;
  padding: 15px 16px;
  outline: none;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.9) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 50%, transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  background-position:
    calc(100% - 22px) 52%,
    calc(100% - 15px) 52%,
    0 0;
  background-size:
    7px 7px,
    7px 7px,
    100% 100%;
  background-repeat: no-repeat;
  padding-right: 44px;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.field select:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
  background-color: rgba(255, 255, 255, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.field select option {
  color: #ffffff;
  background: #321099;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.auth-error,
.error-copy {
  color: #ffd5e4;
  font-weight: 700;
}

.helper-copy strong {
  color: var(--text);
}

.immersive-view {
  display: grid;
  gap: 20px;
  animation: pageIn 420ms ease both;
}

.content-grid,
.login-view,
.loading-view,
.complete-view {
  animation: pageIn 420ms ease both;
}

.step-rail {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.step-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-soft);
  font-size: 0.84rem;
}

.step-chip.active,
.step-chip.done {
  color: var(--text);
}

.step-chip.active {
  background: rgba(255, 255, 255, 0.18);
}

.step-chip.done {
  background: rgba(122, 241, 193, 0.18);
  border-color: rgba(122, 241, 193, 0.32);
}

.wizard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.wizard-header-copy {
  max-width: 42rem;
}

.immersive-title {
  font-size: clamp(2.3rem, 3.6vw, 4.2rem);
  line-height: 0.92;
}

.wizard-header-copy p {
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.wizard-card {
  padding: 24px;
}

.wizard-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wizard-fields .field.span-2 {
  grid-column: 1 / -1;
}

.preview-card {
  padding: 24px 0 0;
  min-height: 100%;
}

.preview-card h3 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.6rem);
  line-height: 0.95;
}

.preview-card p {
  margin: 8px 0 22px;
  color: var(--text-soft);
}

.preview-frame {
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: var(--text-soft);
}

.preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-meta {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.preview-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.notice-card {
  padding: 28px 0 0;
}

.notice-title {
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.notice-card h3 {
  margin-top: 0;
}

.notice-body {
  display: grid;
  gap: 16px;
  color: var(--text);
  line-height: 1.55;
}

.notice-body a {
  color: var(--text);
  font-weight: 800;
}

.confirm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--text);
}

.confirm-row input {
  width: 18px;
  height: 18px;
}

.upload-panel {
  display: grid;
  gap: 18px;
}

.upload-zone {
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: left;
}

.upload-zone.dragover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.upload-zone-inner {
  width: min(420px, 100%);
}

.folder-icon {
  width: 60px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.22));
  margin-bottom: 22px;
  position: relative;
}

.folder-icon::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 22px;
  height: 12px;
  border-radius: 10px 10px 0 0;
  background: rgba(255, 255, 255, 0.5);
}

.upload-title {
  font-size: clamp(2rem, 3.1vw, 3.8rem);
  line-height: 0.94;
}

.upload-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.queue-list {
  display: grid;
  gap: 14px;
}

.queue-item {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 120px 140px auto;
  align-items: center;
  gap: 12px;
}

.queue-file {
  min-width: 0;
}

.queue-file strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.queue-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6ea5ff, #94a6ff 65%, #ffffff);
}

.progress-hero {
  display: grid;
  gap: 18px;
}

.progress-copy h2,
.success-copy h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  line-height: 0.92;
}

.progress-copy p,
.success-copy p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.hero-progress {
  height: 18px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.hero-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(122, 241, 193, 0.55), rgba(255, 255, 255, 0.95));
}

.progress-scale {
  display: flex;
  justify-content: space-between;
  color: var(--text-soft);
}

.success-card {
  width: min(760px, 100%);
  padding: 40px 0 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  text-align: center;
}

.success-title {
  font-size: clamp(3rem, 5vw, 5.8rem);
  line-height: 0.92;
}

.success-subtitle {
  margin: 14px auto 26px;
  max-width: 32rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.spinner-shell {
  width: 184px;
  height: 184px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.spinner {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  border: 7px solid rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 1);
  animation: spin 1s linear infinite;
}

.loading-layout {
  display: grid;
  align-items: center;
  width: min(1040px, 100%);
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 40px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-value {
  color: var(--text);
}

.empty-state {
  padding: 28px 0 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(8px);
  }

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

@media (max-width: 1180px) {
  .app-shell,
  .login-view,
  .loading-view,
  .complete-view,
  .hero-grid,
  .console-grid,
  .content-grid,
  .immersive-grid,
  .loading-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
  }

  .sidebar-inner {
    flex-direction: row;
    justify-content: space-between;
    height: auto;
    gap: 14px;
  }

  .nav-stack {
    flex-direction: row;
    justify-content: center;
    width: auto;
  }

  .sidebar-footer {
    margin-top: 0;
    padding-top: 0;
  }

  .status-panel {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 24px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #app,
  .app-shell {
    min-height: 100vh;
    border-radius: 0;
  }

  .main-panel,
  .sidebar,
  .auth-showcase,
  .login-panel,
  .loading-showcase,
  .loading-panel,
  .complete-showcase,
  .complete-panel {
    padding: 22px;
  }

  .metric-grid,
  .wizard-fields {
    grid-template-columns: 1fr;
  }

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

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table thead {
    display: none;
  }

  .table tbody td {
    display: grid;
    grid-template-columns: minmax(92px, 0.45fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 8px 0;
    border-top: 0;
  }

  .table tbody tr {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .table tbody td::before {
    content: attr(data-label);
    color: var(--text-soft);
    font-weight: 700;
  }

  .wizard-header,
  .hero-row,
  .hero-feature-row,
  .topbar,
  .section-head,
  .dashboard-greeting {
    flex-direction: column;
    align-items: flex-start;
  }

  .showcase-copy h1,
  .sidebar-copy h1,
  .sidebar-copy h2,
  .success-title,
  .progress-copy h2,
  .notice-title,
  .upload-title,
  .immersive-title,
  .login-card h2 {
    letter-spacing: 0;
  }
}
