:root {
  --bg: #07131f;
  --bg-secondary: rgba(9, 25, 39, 0.88);
  --panel: rgba(14, 31, 48, 0.72);
  --panel-strong: rgba(16, 34, 52, 0.95);
  --border: rgba(162, 201, 255, 0.16);
  --text: #ecf3fb;
  --muted: #9db1c4;
  --accent: #ff7a18;
  --accent-secondary: #34d3e5;
  --accent-tertiary: #ffe082;
  --danger: #ff6b78;
  --success: #41d392;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 11px;
  --max-width: 1480px;
}

body[data-theme="light"] {
  --bg: #eef4f8;
  --bg-secondary: rgba(255, 255, 255, 0.9);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --border: rgba(46, 81, 116, 0.18);
  --text: #152232;
  --muted: #607286;
  --accent: #f06f1c;
  --accent-secondary: #0c8ea1;
  --accent-tertiary: #8a5600;
  --danger: #c93649;
  --success: #177f52;
  --shadow: 0 16px 42px rgba(28, 50, 74, 0.12);
}

* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html.modal-open,
body.modal-open {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Vazirmatn", sans-serif;
  font-size: 15px;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 24, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(52, 211, 229, 0.22), transparent 28%),
    linear-gradient(135deg, #050b13 0%, #07131f 45%, #091a28 100%);
  overflow-x: hidden;
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at top left, rgba(240, 111, 28, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(12, 142, 161, 0.14), transparent 28%),
    linear-gradient(135deg, #f7fafc 0%, #edf4f8 55%, #e6f1f5 100%);
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 80%);
  pointer-events: none;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite;
}

.ambient-one {
  width: 240px;
  height: 240px;
  top: 5rem;
  right: 8rem;
  background: rgba(255, 122, 24, 0.36);
}

.ambient-two {
  width: 320px;
  height: 320px;
  bottom: 2rem;
  left: 4rem;
  background: rgba(52, 211, 229, 0.22);
  animation-delay: -4s;
}

.ambient-three {
  width: 180px;
  height: 180px;
  bottom: 16rem;
  right: 36%;
  background: rgba(255, 224, 130, 0.2);
  animation-delay: -9s;
}

.page-shell {
  width: min(calc(100% - 1rem), var(--max-width));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  position: relative;
  z-index: 1;
}

.card {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar,
.dashboard-header {
  position: sticky;
  top: 0.75rem;
  z-index: 5;
  margin-bottom: 0.75rem;
}

.dashboard-header {
  direction: ltr;
  min-height: 9.7rem;
  max-height: 11.25rem;
  padding: 1.25rem 1.55rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  position: sticky;
  background:
    radial-gradient(circle at 86% 42%, rgba(45, 212, 199, 0.12), transparent 24%),
    linear-gradient(135deg, #081724, #102438);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.dashboard-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #2dd4bf, #3b82f6, #8b5cf6);
  opacity: 0.92;
}

.header-brand,
.header-brand-area {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  min-width: 0;
  flex: 1 1 auto;
  direction: ltr;
}

.header-title-block,
.header-title-area {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: right;
  gap: 0.75rem;
  min-width: 0;
  direction: rtl;
}

.header-title {
  width: 100%;
  margin: 0;
  color: #f4f8ff;
  font-size: clamp(1.38rem, 1.95vw, 2.05rem);
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
  text-align: right;
}

.header-module-cards,
.header-modules {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  direction: rtl;
  width: 100%;
}

.header-module-card,
.header-action-button,
.header-main-icon,
.header-account-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-module-card {
  min-width: 7.15rem;
  height: 4.35rem;
  padding: 0.58rem 0.75rem;
  border-radius: 1.05rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  text-align: center;
}

.header-module-icon,
.header-action-icon {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
}

.header-module-icon svg,
.header-action-icon svg,
.account-avatar svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.module-file {
  color: #38bdf8;
}

.module-update {
  color: #8b5cf6;
}

.module-support {
  color: #2dd4bf;
}

.header-module-label {
  color: #b7c7d8;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}

.header-grid-icon,
.header-main-icon {
  order: 2;
  width: 5.1rem;
  height: 5.1rem;
  border-radius: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-main-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1.05rem);
  grid-template-rows: repeat(2, 1.05rem);
  gap: 0.38rem;
}

.header-main-icon-grid span {
  border-radius: 0.32rem;
  background: linear-gradient(135deg, #22d3ee, #8b5cf6);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.28);
}

.header-controls,
.header-actions-area {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-shrink: 0;
  direction: ltr;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-account-card {
  min-width: 13rem;
  height: 4.7rem;
  border-radius: 1.15rem;
  padding: 0.68rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  direction: rtl;
}

.account-avatar {
  width: 3.05rem;
  height: 3.05rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2dd4bf;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.32), transparent 34%), rgba(45, 212, 191, 0.16);
  border: 1px solid rgba(45, 212, 191, 0.42);
}

.account-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.account-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.account-status-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: #41d392;
  box-shadow: 0 0 0 4px rgba(65, 211, 146, 0.12);
}

.account-copy strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.header-divider {
  width: 1px;
  height: 3.9rem;
  background: rgba(255, 255, 255, 0.16);
}

.header-action-button {
  width: 5.15rem;
  height: 4.7rem;
  border-radius: 1.05rem;
  padding: 0.55rem 0.45rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  color: #dce9f8;
  font-weight: 850;
  font-size: 0.78rem;
  direction: rtl;
}

.header-action-button:hover {
  border-color: rgba(52, 211, 229, 0.28);
  background: rgba(255, 255, 255, 0.085);
  color: #fff;
}

.theme-toggle.header-action-button::before {
  content: "☾";
  color: #f8fafc;
  font-size: 1.7rem;
  line-height: 1;
}

body[data-theme="light"] .theme-toggle.header-action-button::before {
  content: "☼";
  color: #334155;
}

.header-action-password .header-action-icon {
  color: #8aa7ff;
}

.header-action-logout .header-action-icon {
  color: #ff6b4a;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-xl);
}

.hero.hero-stats-only {
  grid-template-columns: 1fr;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

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

.eyebrow {
  display: none;
}

.hero h1,
.section-head h2 {
  margin: 0;
  line-height: 1.15;
}

.hero h1 {
  font-family: "Lalezar", cursive;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 400;
}

.lead {
  margin: 0.55rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-badges span,
.file-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.76rem;
}

.hero-metrics,
.stats-grid {
  display: grid;
  gap: 1.1rem;
  width: 100%;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, 28rem);
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  min-height: calc(100vh - 3rem);
}

.auth-shell .auth-card + .auth-card {
  display: none;
}

body.auth-screen .topbar,
body.auth-screen .hero {
  display: none;
}

body.auth-screen .page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem 0;
}

body.auth-screen .auth-shell > .auth-card:first-child .support-text {
  display: none;
}

body.register-wizard-open .auth-shell::before {
  position: fixed;
  inset: 0;
  z-index: 19;
  content: "";
  background: rgba(3, 9, 15, 0.62);
  backdrop-filter: blur(6px);
}

body.register-wizard-open .auth-shell .auth-card + .auth-card {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 20;
  display: block;
  width: min(calc(100% - 2rem), 34rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  transform: translate(-50%, -50%);
}

.auth-register-open {
  justify-self: stretch;
}

.metric-panel,
.stat-card {
  position: relative;
  min-height: 7.6rem;
  padding: 1.05rem 1.2rem;
  border-radius: 1.35rem;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 24%, rgba(45, 212, 199, 0.1), transparent 32%),
    linear-gradient(135deg, rgba(12, 31, 47, 0.92), rgba(9, 22, 34, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 42px rgba(0, 0, 0, 0.26);
  direction: rtl;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 1.1rem;
  top: 1rem;
  width: 4.2rem;
  height: 3.2rem;
  opacity: 0.14;
  background-image: radial-gradient(circle, var(--stat-accent) 1px, transparent 1.5px);
  background-size: 0.5rem 0.5rem;
  pointer-events: none;
}

.stat-card-files {
  --stat-accent: #38bdf8;
}

.stat-card-storage {
  --stat-accent: #2dd4bf;
}

.stat-card-last-upload {
  --stat-accent: #8b5cf6;
}

.stat-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  gap: 0.34rem;
  min-width: 0;
  padding-bottom: 0;
  z-index: 1;
}

.stat-title {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.stat-value-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.stat-value {
  display: block;
  margin: 0;
  color: #f4f8ff;
  font-size: clamp(1.38rem, 2vw, 1.92rem);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.stat-card-last-upload .stat-value {
  font-size: clamp(1.08rem, 1.45vw, 1.42rem);
  line-height: 1.45;
  max-width: 13rem;
  white-space: normal;
}

.stat-unit {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.stat-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
  max-width: 72%;
}

.stat-icon {
  width: 4.05rem;
  height: 4.05rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  z-index: 1;
  color: var(--stat-accent);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.22),
    0 0 34px color-mix(in srgb, var(--stat-accent) 18%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.stat-icon svg {
  width: 1.85rem;
  height: 1.85rem;
  fill: currentColor;
}

.stat-sparkline {
  position: absolute;
  left: 1.55rem;
  right: auto;
  bottom: 0.9rem;
  width: 7.15rem;
  height: 1.75rem;
  opacity: 0.34;
  pointer-events: none;
  z-index: 0;
}

.stat-sparkline path {
  stroke: var(--stat-accent);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
}

.metric-panel span,
.metric-panel small,
.tips-grid p,
.queue-size,
.queue-status,
.file-date,
.file-meta,
.library-state {
  color: var(--muted);
}

.metric-panel .stat-icon {
  color: var(--stat-accent);
}

.metric-panel .stat-value {
  color: #f4f8ff;
}

.workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 1.15rem;
}

.workspace-tabs {
  position: sticky;
  top: 5.5rem;
  z-index: 4;
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  min-height: 4.65rem;
  padding: 0.58rem;
  overflow-x: auto;
  border-radius: 1.45rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(135deg, rgba(12, 31, 47, 0.88), rgba(8, 20, 32, 0.84));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 36px rgba(0, 0, 0, 0.24);
}

.workspace-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  color: #9fb3c7;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.workspace-tab:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block: 0.75rem;
  inset-inline-end: 0;
  width: 1px;
  opacity: 0.35;
  background: rgba(255, 255, 255, 0.12);
}

.workspace-tab:hover {
  transform: translateY(-1px);
  background: rgba(45, 212, 199, 0.06);
  color: #f4f8ff;
}

.workspace-tab.active {
  background:
    radial-gradient(circle at 70% 20%, rgba(45, 212, 199, 0.2), transparent 33%),
    rgba(45, 212, 199, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 26px rgba(45, 212, 199, 0.14);
  color: #f4f8ff;
}

.workspace-tab.active::before {
  content: "";
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 0.28rem;
  width: min(6.4rem, calc(100% - 2.4rem));
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #2dd4bf, #38bdf8);
}

.workspace-tab:focus-visible {
  outline: 3px solid rgba(52, 211, 229, 0.42);
  outline-offset: 3px;
}

.dashboard-tab-icon {
  width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #38bdf8;
}

.dashboard-tab-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-tab[data-workspace-tab="files"] .dashboard-tab-icon,
.workspace-tab[data-workspace-tab="support"] .dashboard-tab-icon {
  color: #2dd4bf;
}

.workspace-tab[data-workspace-tab="updates"] .dashboard-tab-icon {
  color: #60a5fa;
}

.workspace-tab[data-workspace-tab="user_access"] .dashboard-tab-icon {
  color: #cbd5e1;
}

.dashboard-tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
  line-height: 1.3;
}

.workspace-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.55rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: rgba(45, 212, 199, 0.1);
  color: #5eead4;
  font-size: 0.74rem;
  font-weight: 900;
}

.workspace-tab-panel {
  display: grid;
  gap: 1rem;
}

.workspace-tab-panel[hidden] {
  display: none !important;
}

#workspace-files-upload,
#workspace-files-library {
  grid-column: 1 / -1;
}

.panel-wide {
  grid-column: 1 / -1;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 1.1rem;
}

.section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.section-head h2 {
  font-size: 1.35rem;
}

.auth-head {
  margin-bottom: 0.8rem;
}

.support-text,
.inline-note {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field span {
  color: var(--muted);
  font-size: 0.82rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.form-field textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #7e92a7;
}

.inline-note {
  margin-top: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.primary-button,
.ghost-button,
.filter-chip {
  border: 0;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
  word-break: keep-all;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.primary-button {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff9352);
  color: #181818;
  font-weight: 800;
  font-size: 0.88rem;
}

.theme-toggle {
  min-width: 5.5rem;
}

.auth-theme-toggle {
  min-width: 6rem;
}

.primary-button:hover,
.ghost-button:hover,
.filter-chip:hover {
  transform: translateY(-2px);
}

.dropzone {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 13.5rem;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1.5px dashed rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at center, rgba(255, 122, 24, 0.12), transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: rgba(52, 211, 229, 0.8);
  transform: translateY(-3px);
}

.dropzone-kicker {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(52, 211, 229, 0.12);
  color: var(--accent-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.dropzone strong {
  display: block;
  margin: 0.7rem 0 0.45rem;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
}

.dropzone p {
  max-width: 24rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.9rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.tips-grid article,
.queue-item,
.file-card {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tips-grid article {
  padding: 0.8rem;
}

.tips-grid span {
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
}

.upload-queue {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.queue-item {
  padding: 0.75rem 0.85rem;
}

.queue-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.queue-side {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.queue-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.queue-description-input {
  width: 100%;
  min-height: 2.25rem;
  margin: 0 0 0.55rem;
  padding: 0 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
}

.queue-description-input::placeholder {
  color: var(--muted);
}

.queue-description-input:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.queue-name {
  display: block;
  margin-bottom: 0.15rem;
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
  word-break: break-word;
  font-size: 0.9rem;
}

.queue-size {
  direction: rtl;
  unicode-bidi: isolate;
}

.queue-speed {
  font-size: 0.76rem;
  color: var(--muted);
}

.queue-eta {
  font-size: 0.76rem;
  color: var(--muted);
}

.queue-toggle,
.queue-cancel {
  min-height: 2rem;
  height: 2rem;
  padding: 0 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.queue-toggle:hover,
.queue-cancel:hover {
  border-color: rgba(52, 211, 229, 0.32);
  background: rgba(52, 211, 229, 0.12);
  color: var(--text);
}

.queue-cancel {
  border-color: rgba(255, 107, 120, 0.18);
  background: rgba(255, 107, 120, 0.1);
  color: #ffd6db;
}

.queue-cancel:hover {
  border-color: rgba(255, 107, 120, 0.34);
  background: rgba(255, 107, 120, 0.16);
  color: #ffe6ea;
}

.queue-item[data-status="success"] .queue-cancel,
.queue-item[data-status="canceled"] .queue-cancel {
  display: none;
}

.progress-track {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #22d3ee);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.32);
  transition: width 180ms ease;
}

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

.library-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.55rem;
}

.search-box {
  display: block;
  min-width: min(100%, 18rem);
}

.page-size-control {
  min-width: 9.5rem;
  position: relative;
}

.page-size-control span {
  position: absolute;
  inset-block-start: -1.35rem;
  inset-inline-start: 0.75rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: nowrap;
}

.page-size-control select {
  min-height: 2.85rem;
  padding-block: 0.54rem;
}

.search-box input {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.search-box input::placeholder {
  color: #7e92a7;
}

.search-box select,
.file-folder-field select,
.file-folder-cell .file-folder-select,
.upload-folder-row select,
.folder-create-form input {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.search-box select option,
.file-folder-field select option,
.file-folder-cell .file-folder-select option,
.upload-folder-row select option,
.form-field select option {
  color: #102436;
  background: #f1f5f9;
}

#update-file-id,
#update-file-id option {
  unicode-bidi: plaintext;
}

.update-file-field {
  position: relative;
}

.native-file-select {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.update-file-picker {
  position: relative;
}

.update-file-picker-button {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.55rem 0.68rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(52, 211, 229, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(12, 29, 45, 0.82);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.update-file-picker-button:hover,
.update-file-picker.is-open .update-file-picker-button {
  border-color: rgba(52, 211, 229, 0.62);
  box-shadow: 0 0 0 3px rgba(52, 211, 229, 0.08);
}

.update-file-picker-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.update-file-picker-label,
.update-file-picker-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
}

.update-file-picker-label {
  color: var(--muted);
  font-size: 0.86rem;
}

.update-file-picker.has-selection .update-file-picker-label {
  color: var(--text);
}

.update-file-name-chip,
.update-file-ext-badge,
.update-file-size-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: nowrap;
}

.update-file-name-chip {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-start;
  padding: 0.34rem 0.55rem;
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(65, 211, 146, 0.17);
  border: 1px solid rgba(65, 211, 146, 0.32);
  color: #dfffee;
  font-weight: 700;
}

.update-file-meta-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.42rem;
  flex: 0 0 auto;
}

.update-file-ext-badge {
  padding: 0.3rem 0.5rem;
  direction: ltr;
  unicode-bidi: isolate;
  background: rgba(255, 224, 130, 0.15);
  border: 1px solid rgba(255, 224, 130, 0.28);
  color: #ffe9a6;
  font-weight: 800;
}

.update-file-size-badge {
  padding: 0.3rem 0.58rem;
  direction: rtl;
  unicode-bidi: isolate;
  background: rgba(52, 211, 229, 0.14);
  border: 1px solid rgba(52, 211, 229, 0.28);
  color: #bff7ff;
}

.update-file-picker-menu {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 0.42rem);
  z-index: 65;
  display: grid;
  gap: 0.36rem;
  max-height: min(22rem, 42vh);
  padding: 0.48rem;
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(52, 211, 229, 0.22);
  background: rgba(9, 23, 36, 0.98);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

.update-file-picker-menu[hidden] {
  display: none;
}

.update-file-picker-option {
  min-height: 3.1rem;
  padding: 0.44rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: inherit;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.update-file-picker-option:hover,
.update-file-picker-option.is-selected {
  border-color: rgba(65, 211, 146, 0.5);
  background: rgba(65, 211, 146, 0.09);
}

.update-file-picker-option.is-selected {
  box-shadow: inset 0 0 0 1px rgba(65, 211, 146, 0.18);
}

body[data-theme="light"] .form-field input,
body[data-theme="light"] .form-field select,
body[data-theme="light"] .form-field textarea,
body[data-theme="light"] .search-box input,
body[data-theme="light"] .search-box select,
body[data-theme="light"] .file-folder-field select,
body[data-theme="light"] .file-folder-cell .file-folder-select,
body[data-theme="light"] .upload-folder-row select,
body[data-theme="light"] .folder-create-form input,
body[data-theme="light"] .file-description-input,
body[data-theme="light"] .support-import-form input[type="file"] {
  border-color: rgba(46, 81, 116, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

body[data-theme="light"] .update-file-picker-button {
  border-color: rgba(12, 142, 161, 0.28);
  background: rgba(255, 255, 255, 0.86);
}

body[data-theme="light"] .update-file-picker-menu {
  border-color: rgba(12, 142, 161, 0.2);
  background: rgba(248, 252, 255, 0.98);
  box-shadow: 0 18px 44px rgba(28, 50, 74, 0.14);
}

body[data-theme="light"] .update-file-picker-option {
  border-color: rgba(46, 81, 116, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .update-file-picker-option:hover,
body[data-theme="light"] .update-file-picker-option.is-selected {
  border-color: rgba(23, 127, 82, 0.38);
  background: rgba(23, 127, 82, 0.08);
}

body[data-theme="light"] .update-file-name-chip {
  background: rgba(23, 127, 82, 0.1);
  border-color: rgba(23, 127, 82, 0.22);
  color: #0f5d3c;
}

body[data-theme="light"] .update-file-ext-badge {
  background: rgba(138, 86, 0, 0.09);
  border-color: rgba(138, 86, 0, 0.2);
  color: #6a4100;
}

body[data-theme="light"] .update-file-size-badge {
  background: rgba(12, 142, 161, 0.09);
  border-color: rgba(12, 142, 161, 0.22);
  color: #075d6b;
}

.search-box select option:checked,
.file-folder-field select option:checked,
.file-folder-cell .file-folder-select option:checked,
.upload-folder-row select option:checked,
.form-field select option:checked {
  color: #f5f9ff;
  background: #1f4c70;
}

.upload-folder-row {
  margin-bottom: 0.8rem;
}

.folder-filter-box {
  min-width: min(100%, 12rem);
}

.folder-create-form {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
}

.folder-create-form input {
  min-width: min(100%, 12rem);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
}

.pagination-bar:empty {
  display: none;
}

.pagination-info {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.pagination-button {
  min-width: 2.35rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  white-space: nowrap;
  word-break: keep-all;
}

.pagination-button.active {
  border-color: rgba(255, 122, 24, 0.72);
  background: rgba(255, 122, 24, 0.2);
  color: #fff3e8;
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.filter-chip {
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.8rem;
}

.filter-chip.active {
  background: rgba(255, 122, 24, 0.16);
  color: var(--accent-tertiary);
}

.library-state {
  padding: 0.75rem 0;
  font-size: 0.9rem;
}

.archive-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: auto;
  padding: 1rem;
  direction: rtl;
}

.archive-header {
  display: flex;
  justify-content: flex-start;
  align-items: start;
  margin-bottom: 0;
  text-align: right;
}

.archive-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  width: 100%;
  min-width: 0;
  text-align: right;
}

.archive-title-group h2 {
  margin: 0;
}

.archive-count {
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: right;
}

.archive-toolbar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  direction: rtl;
}

.archive-toolbar {
  order: 1;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.65rem;
  flex: 1 1 34rem;
  min-width: 0;
  direction: rtl;
}

.archive-toolbar .search-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  min-width: min(100%, 13rem);
}

.archive-toolbar .search-box:first-child {
  flex: 1 1 18rem;
}

.archive-toolbar .folder-filter-box,
.archive-toolbar .page-size-control {
  flex: 0 1 10.5rem;
}

.archive-toolbar .page-size-control span {
  position: static;
  display: block;
  min-height: 0.75rem;
  margin-bottom: 0;
  font-size: 0.74rem;
  line-height: 1;
}

.archive-toolbar .page-size-control select,
.archive-toolbar .search-box input,
.archive-toolbar .search-box select {
  height: 2.75rem;
  min-height: 2.75rem;
  padding-block: 0.54rem;
}

.archive-type-tabs {
  justify-content: flex-start;
  margin-bottom: 0;
  direction: rtl;
  width: 100%;
}

.archive-folder-action {
  order: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-inline-start: auto;
  min-width: 0;
  align-self: flex-end;
}

.create-folder-toggle,
.create-folder-submit,
.create-folder-cancel {
  min-height: 2.75rem;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  cursor: pointer;
  white-space: nowrap;
}

.create-folder-toggle {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.create-folder-toggle:hover {
  border-color: rgba(52, 211, 229, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.create-folder-toggle.active {
  border-color: rgba(52, 211, 229, 0.36);
  background: rgba(52, 211, 229, 0.12);
  color: #c6f7ff;
}

.create-folder-panel {
  flex: 1 1 22rem;
  min-width: min(100%, 22rem);
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(52, 211, 229, 0.16);
  background: rgba(255, 255, 255, 0.035);
}

.create-folder-panel[hidden] {
  display: none !important;
}

.create-folder-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.create-folder-input {
  flex: 1 1 13rem;
  min-width: min(100%, 13rem);
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
}

.archive-table-wrapper {
  margin-top: 0.25rem;
}

.archive-card .bulk-actions {
  margin-bottom: 0;
}

.archive-panel {
  position: relative;
  gap: 1rem;
  padding: 1.3rem;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    radial-gradient(circle at 9% 8%, rgba(45, 212, 199, 0.08), transparent 24%),
    linear-gradient(135deg, rgba(12, 31, 47, 0.88), rgba(8, 20, 32, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 42px rgba(0, 0, 0, 0.22);
}

.archive-panel::before {
  content: "";
  position: absolute;
  inset-inline-start: 1.45rem;
  top: 1.2rem;
  width: 4.6rem;
  height: 4.2rem;
  opacity: 0.13;
  background-image: radial-gradient(circle, #2dd4bf 1px, transparent 1.5px);
  background-size: 0.48rem 0.48rem;
  pointer-events: none;
}

.archive-panel-header {
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: flex-start;
}

.archive-panel-title-group {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
}

.archive-panel-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #2dd4bf;
  background:
    radial-gradient(circle at 34% 28%, rgba(45, 212, 199, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(45, 212, 199, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 28px rgba(45, 212, 199, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.archive-panel-icon svg {
  width: 2.15rem;
  height: 2.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.archive-panel-title-copy {
  min-width: 0;
  text-align: right;
}

.archive-panel-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.28rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.25;
}

.archive-panel-subtitle {
  margin-top: 0.28rem;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.65;
}

.archive-toolbar-row {
  position: relative;
  z-index: 1;
}

.archive-toolbar-controls {
  align-items: flex-end;
  gap: 0.75rem;
}

.archive-toolbar .archive-search {
  position: relative;
  flex: 1 1 22rem;
  min-width: min(100%, 18rem);
}

.archive-toolbar .archive-filter,
.archive-toolbar .archive-rows-select {
  flex: 0 1 11.5rem;
  min-width: min(100%, 10.75rem);
}

.archive-toolbar .search-box span {
  position: static;
  display: block;
  min-height: 0.85rem;
  margin-bottom: 0.28rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.archive-toolbar .archive-search::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  bottom: 0.78rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: #7e92a7;
  pointer-events: none;
}

.archive-toolbar .archive-search::after {
  content: "";
  position: absolute;
  left: 0.78rem;
  bottom: 0.7rem;
  width: 0.48rem;
  height: 2px;
  border-radius: 999px;
  background: #7e92a7;
  transform: rotate(-45deg);
  pointer-events: none;
}

.archive-toolbar .archive-search input {
  padding-left: 2.55rem;
}

.archive-toolbar .page-size-control select,
.archive-toolbar .search-box input,
.archive-toolbar .search-box select,
.archive-create-folder-button {
  min-height: 2.9rem;
  height: 2.9rem;
  border-radius: 0.9rem;
}

.archive-toolbar .search-box input,
.archive-toolbar .search-box select {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.archive-create-folder-button {
  padding: 0 1.15rem;
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, rgba(45, 212, 199, 0.92), rgba(14, 165, 163, 0.82));
  color: #052a2d;
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 12px 24px rgba(20, 184, 166, 0.18);
}

.create-folder-plus {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.28);
  color: currentColor;
  font-weight: 900;
}

.archive-type-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.archive-type-card {
  position: relative;
  min-height: 3.5rem;
  padding: 0.62rem 0.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.archive-type-card:hover {
  border-color: rgba(45, 212, 199, 0.24);
  background: rgba(45, 212, 199, 0.055);
  color: var(--text);
}

.archive-type-card.active {
  border-color: rgba(45, 212, 199, 0.28);
  background:
    radial-gradient(circle at 75% 20%, rgba(45, 212, 199, 0.2), transparent 35%),
    rgba(45, 212, 199, 0.1);
  color: #f4f8ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(45, 212, 199, 0.12);
}

.archive-type-card.active::after {
  content: "";
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 0.22rem;
  width: min(5.2rem, calc(100% - 1.8rem));
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2dd4bf, #38bdf8);
  transform: translateX(-50%);
}

.archive-type-icon {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #2dd4bf;
}

.archive-type-card[data-filter="image"] .archive-type-icon {
  color: #a78bfa;
}

.archive-type-card[data-filter="video"] .archive-type-icon {
  color: #38bdf8;
}

.archive-type-card[data-filter="document"] .archive-type-icon {
  color: #34d399;
}

.archive-type-card[data-filter="archive"] .archive-type-icon {
  color: #fb923c;
}

.archive-type-card[data-filter="other"] .archive-type-icon {
  color: #94a3b8;
}

.archive-type-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.archive-type-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.35;
}

.archive-table-shell {
  position: relative;
  z-index: 1;
  margin-top: 0;
  border-radius: 1.1rem;
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(7, 20, 32, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 30px rgba(0, 0, 0, 0.12);
}

.archive-card .pagination-bar {
  position: relative;
  z-index: 1;
  margin-top: 0;
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.archive-card .pagination-button {
  border-radius: 0.6rem;
}

.archive-card .pagination-button.active {
  border-color: rgba(45, 212, 199, 0.42);
  background: linear-gradient(135deg, rgba(45, 212, 199, 0.72), rgba(56, 189, 248, 0.5));
  color: #052a2d;
}

.action-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  direction: rtl;
}

.upload-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  width: 100%;
}

.upload-copy {
  display: flex;
  flex: 1 1 28rem;
  min-width: min(100%, 18rem);
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: right;
}

.upload-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.35;
}

.upload-copy strong {
  font-size: 0.98rem;
  line-height: 1.6;
}

.upload-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.86rem;
}

.upload-card-folder-row {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
  width: 100%;
}

.upload-card-folder-row .form-field {
  flex: 1 1 18rem;
  max-width: 24rem;
  margin: 0;
}

.upload-start-queued {
  min-height: 2.75rem;
  height: 2.75rem;
  padding: 0 1.15rem;
}

.upload-dropzone-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 8rem;
  padding: 1.25rem 1.35rem;
  border-radius: 1.1rem;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.upload-dropzone-preview:hover,
.upload-dropzone-preview.dragover {
  border-color: rgba(52, 211, 229, 0.56);
  background:
    linear-gradient(180deg, rgba(52, 211, 229, 0.075), rgba(255, 255, 255, 0.025));
  transform: translateY(-1px);
}

.upload-dropzone-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.upload-panel {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    radial-gradient(circle at 90% 16%, rgba(45, 212, 199, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(12, 31, 47, 0.92), rgba(8, 20, 32, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 42px rgba(0, 0, 0, 0.26);
}

.upload-panel .upload-panel-inner {
  gap: 1.05rem;
  margin: 0;
  padding: 1.3rem;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
}

.upload-panel-header {
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.upload-title-group {
  display: flex;
  flex: 1 1 28rem;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  min-width: min(100%, 18rem);
  text-align: right;
}

.upload-panel-icon,
.upload-dropzone-icon,
.upload-floating-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2dd4bf;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.upload-panel-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1.15rem;
  flex: 0 0 auto;
}

.upload-panel-icon svg,
.upload-dropzone-icon svg,
.upload-floating-file-icon svg,
.upload-start-icon svg,
.queue-file-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-panel-icon svg {
  width: 2.2rem;
  height: 2.2rem;
}

.upload-title-copy {
  min-width: 0;
}

.upload-panel .upload-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  font-weight: 900;
  line-height: 1.3;
}

.upload-subtitle {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.upload-folder-select-group {
  flex: 0 1 16rem;
  min-width: min(100%, 15rem);
  width: auto;
}

.upload-folder-select-group .form-field {
  max-width: none;
  width: 100%;
  margin: 0;
}

.upload-folder-select-group .form-field > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.upload-folder-select-group select {
  min-height: 2.9rem;
  height: 2.9rem;
  border-radius: 0.9rem;
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.upload-dropzone {
  position: relative;
  min-height: 10rem;
  padding: 1.35rem;
  border-radius: 1.35rem;
  border: 1px dashed rgba(45, 212, 199, 0.55);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(45, 212, 199, 0.08), transparent 48%),
    rgba(255, 255, 255, 0.025);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: #2dd4bf;
  background:
    radial-gradient(circle at 50% 50%, rgba(45, 212, 199, 0.16), transparent 48%),
    rgba(45, 212, 199, 0.055);
  box-shadow: 0 0 0 4px rgba(45, 212, 199, 0.08);
  transform: translateY(-1px);
}

.upload-dropzone:focus-visible {
  outline: 3px solid rgba(45, 212, 199, 0.36);
  outline-offset: 3px;
}

.upload-dropzone-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.upload-dropzone-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #2dd4bf;
  background: rgba(45, 212, 199, 0.12);
  border: 1px solid rgba(45, 212, 199, 0.24);
}

.upload-dropzone-icon svg {
  width: 1.9rem;
  height: 1.9rem;
}

.upload-dropzone svg {
  display: block;
  max-width: 100%;
  max-height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-dropzone svg path {
  fill: none;
}

.upload-panel .upload-dropzone-title {
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 900;
  line-height: 1.4;
}

.upload-dropzone-hint {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.upload-floating-file-icon {
  position: absolute;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 0.95rem;
  opacity: 0.86;
  pointer-events: none;
}

.upload-floating-file-icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.upload-floating-file-icon-video {
  top: 1.8rem;
  right: 8.5%;
  color: #a78bfa;
}

.upload-floating-file-icon-doc {
  bottom: 2rem;
  right: 13.5%;
  color: #34d399;
}

.upload-floating-file-icon-zip {
  bottom: 2.25rem;
  left: 18%;
  color: #fb923c;
}

.upload-floating-file-icon-image {
  top: 1.5rem;
  left: 11%;
  color: #38bdf8;
}

.upload-queue-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.upload-queue-section[hidden] {
  display: none !important;
}

.upload-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.upload-queue-title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.4;
}

.upload-queue-count {
  min-width: 2.1rem;
  height: 1.55rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 212, 199, 0.12);
  color: #5eead4;
  font-size: 0.74rem;
  font-weight: 900;
}

.upload-queue-table-shell {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  overflow-x: auto;
  overflow-y: visible;
  background: rgba(7, 20, 32, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.upload-queue-table-head,
.upload-queue-row {
  display: grid;
  grid-template-columns: minmax(15rem, 1.35fr) minmax(13rem, 1fr) minmax(9rem, 0.58fr) minmax(14rem, 0.85fr) minmax(7.5rem, 0.45fr);
  min-width: 66rem;
}

.upload-queue-table-head {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(10, 28, 43, 0.92);
  color: #9fb3c7;
  font-size: 0.76rem;
  font-weight: 850;
}

.upload-queue-table-head span,
.upload-queue-row > div {
  padding: 0.5rem 0.75rem;
  border-inline-start: 1px solid rgba(148, 163, 184, 0.1);
  min-width: 0;
}

.upload-queue-table-head span:last-child,
.upload-queue-row > div:last-of-type {
  border-inline-start: 0;
}

.upload-queue {
  display: grid;
  gap: 0;
  margin: 0;
}

.upload-queue-row {
  position: relative;
  align-items: center;
  min-height: 4rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.015);
}

.upload-queue-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.026);
}

.upload-queue-row:last-child {
  border-bottom: 0;
}

.queue-file-cell,
.queue-status-cell,
.queue-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.upload-queue-row .queue-actions {
  justify-content: center;
  gap: 0.35rem;
}

.upload-queue-row .queue-toggle,
.upload-queue-row .queue-cancel {
  min-height: 2rem;
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.74rem;
}

.upload-queue-row .queue-cancel {
  border: 1px solid rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.queue-file-cell {
  justify-content: flex-start;
}

.queue-file-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #38bdf8;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.queue-file-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.queue-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.queue-size-inline {
  display: none;
}

.queue-description-cell {
  min-width: 0;
}

.upload-description-input {
  width: 100%;
  min-height: 2.25rem;
  height: 2.25rem;
  margin: 0;
  border-radius: 0.75rem;
}

.queue-size-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.queue-status-cell {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
  overflow: hidden;
}

.upload-status-main {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.upload-status-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
  white-space: normal;
}

.queue-size,
.queue-speed,
.queue-eta {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.upload-status-badge {
  min-width: 4.75rem;
  height: 1.75rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 184, 166, 0.12);
  color: #5eead4;
  font-size: 0.74rem;
  font-weight: 900;
}

.upload-percent-badge {
  height: 1.55rem;
  min-width: 2.75rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #dbeafe;
  font-size: 0.72rem;
  font-weight: 900;
}

.upload-percent-badge[hidden] {
  display: none;
}

.queue-item[data-status="pending"] .upload-status-badge {
  background: rgba(20, 184, 166, 0.12);
  color: #5eead4;
}

.queue-item[data-status="uploading"] .upload-status-badge {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
}

.queue-item[data-status="paused"] .upload-status-badge {
  background: rgba(245, 158, 11, 0.13);
  color: #fbbf24;
}

.queue-item[data-status="success"] .upload-status-badge {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.queue-item[data-status="error"] .upload-status-badge,
.queue-item[data-status="canceled"] .upload-status-badge {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.upload-queue-row .progress-track {
  grid-column: 1 / -1;
  height: 0.48rem;
  margin: 0.1rem 0.8rem 0.55rem;
  padding: 0;
  border-inline-start: 0;
}

body[data-theme="light"] .progress-track {
  background: rgba(148, 163, 184, 0.22);
}

body[data-theme="light"] .progress-bar {
  background: linear-gradient(90deg, #0d9488, #0891b2);
  box-shadow: 0 0 12px rgba(8, 145, 178, 0.22);
}

.upload-queue-row[data-status="pending"] .progress-track,
.upload-queue-row[data-status="success"] .progress-track,
.upload-queue-row[data-status="error"] .progress-track,
.upload-queue-row[data-status="canceled"] .progress-track {
  display: none;
}

.upload-queue-row[data-status="pending"] .upload-status-meta {
  display: none;
}

.upload-queue-row[data-status="success"] .upload-status-meta,
.upload-queue-row[data-status="error"] .upload-status-meta,
.upload-queue-row[data-status="canceled"] .upload-status-meta {
  display: none;
}

.upload-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.upload-summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.upload-start-button {
  min-width: 14rem;
  min-height: 3rem;
  height: 3rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #14b8a6, #22d3ee);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.22);
}

.upload-start-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.upload-start-icon {
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.update-shell {
  display: grid;
  grid-template-columns: minmax(290px, 0.82fr) minmax(0, 1.18fr);
  gap: 1rem;
  margin-top: 1rem;
}

.update-shell-wide {
  grid-template-columns: 1fr;
}

.update-form {
  align-content: start;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.toggle-field {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.toggle-field input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.update-browser {
  min-height: 100%;
}

.update-list-shell {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(6, 18, 30, 0.34);
  overflow: auto;
}

.update-list-head,
.update-release-row {
  display: grid;
  grid-template-columns: 3rem minmax(14rem, 1fr) minmax(9rem, 0.58fr) minmax(18rem, 1.15fr) minmax(12rem, 0.72fr) minmax(8rem, 0.48fr) minmax(24rem, 1.35fr);
  min-width: 88rem;
}

.update-list-head {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 25, 39, 0.96);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.update-list-head span {
  min-width: 0;
  padding: 0.62rem 0.75rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.07);
  white-space: nowrap;
}

.update-list-head span:last-child {
  border-inline-start: 0;
}

.updates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.update-release-row {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.018);
  transition: background-color 180ms ease;
}

.update-release-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.032);
}

.update-release-row:last-child {
  border-bottom: 0;
}

.update-release-row:hover {
  background: rgba(52, 211, 229, 0.08);
}

.update-release-cell {
  min-width: 0;
  min-height: 100%;
  padding: 0.58rem 0.75rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  word-break: break-word;
}

.update-release-cell:last-child {
  border-inline-start: 0;
}

.update-app-cell {
  display: grid;
  gap: 0.16rem;
}

.update-app-cell strong {
  color: var(--text);
  font-size: 0.9rem;
}

.update-file-cell {
  display: grid;
  gap: 0.18rem;
}

.update-release-file-name {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
  color: var(--text);
  word-break: break-word;
}

.update-release-file-size {
  direction: rtl;
  unicode-bidi: isolate;
  color: var(--muted);
  text-align: right;
}

.update-release-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  align-items: center;
}

.update-release-actions .ghost-button,
.file-action-buttons .ghost-button,
.support-license-card-actions .ghost-button {
  flex: 0 0 auto;
  white-space: nowrap;
  word-break: keep-all;
}

.update-card {
  padding: 0.9rem;
}

.update-card-head,
.update-links,
.update-history-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}

.update-card-head {
  margin-bottom: 0.7rem;
}

.update-app-label,
.update-meta,
.update-history-empty,
.update-history-item small {
  color: var(--muted);
}

.update-app-name {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  word-break: break-word;
}

.update-current-version {
  white-space: nowrap;
}

.update-meta {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
}

.update-links {
  margin-bottom: 0.8rem;
}

.update-links .ghost-button {
  flex: 1 1 12rem;
}

.update-history {
  display: grid;
  gap: 0.55rem;
}

.update-history-item {
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}

.update-history-item strong {
  font-size: 0.84rem;
}

.update-history-empty {
  font-size: 0.82rem;
}

.support-license-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.support-license-form {
  align-content: start;
}

.support-license-search-tools {
  display: grid;
  grid-template-columns: minmax(11rem, 0.5fr) minmax(9.5rem, 0.3fr) minmax(0, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.support-import-tools,
.support-import-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.support-import-tools {
  margin-bottom: 0.75rem;
}

.support-import-form {
  flex: 1 1 24rem;
}

.support-import-form input[type="file"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.62rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 107, 120, 0.18);
  background: rgba(255, 107, 120, 0.08);
}

.bulk-count {
  color: var(--muted);
  font-size: 0.82rem;
}

.support-license-search-field select {
  width: 100%;
}

.support-modules-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.support-module-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.5rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
}

.support-module-item input[type="checkbox"] {
  inline-size: 0.95rem;
  block-size: 0.95rem;
}

.support-module-item span {
  font-size: 0.8rem;
  line-height: 1.35;
  word-break: break-word;
}

.support-license-actions,
.support-license-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.support-license-actions {
  justify-content: flex-start;
}

.support-list-shell {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(6, 18, 30, 0.34);
  overflow: auto;
}

.support-list-head,
.support-license-row {
  display: grid;
  grid-template-columns: 3rem minmax(16rem, 1.2fr) minmax(15rem, 1fr) minmax(11rem, 0.72fr) minmax(14rem, 0.95fr) minmax(13rem, 0.82fr) minmax(10rem, 0.68fr);
  gap: 0;
  min-width: 84rem;
}

.support-list-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 25, 39, 0.96);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

body[data-theme="light"] .support-list-head,
body[data-theme="light"] .file-list-head,
body[data-theme="light"] .update-list-head {
  background: rgba(244, 249, 252, 0.96);
}

body[data-theme="light"] .support-list-shell,
body[data-theme="light"] .file-list-shell,
body[data-theme="light"] .update-list-shell {
  border-color: rgba(83, 111, 140, 0.22);
  background: rgba(255, 255, 255, 0.66);
}

body[data-theme="light"] .support-list-head,
body[data-theme="light"] .file-list-head,
body[data-theme="light"] .update-list-head {
  border-bottom-color: rgba(83, 111, 140, 0.22);
}

body[data-theme="light"] .support-list-head span,
body[data-theme="light"] .file-list-head span,
body[data-theme="light"] .update-list-head span,
body[data-theme="light"] .support-license-cell,
body[data-theme="light"] .file-row-cell,
body[data-theme="light"] .update-release-cell {
  border-inline-start-color: rgba(83, 111, 140, 0.18);
}

body[data-theme="light"] .support-license-row,
body[data-theme="light"] .file-row,
body[data-theme="light"] .update-release-row {
  border-bottom: 1px solid rgba(83, 111, 140, 0.18);
  background: rgba(255, 255, 255, 0.76);
}

body[data-theme="light"] .support-license-row:nth-child(even),
body[data-theme="light"] .file-row:nth-child(even),
body[data-theme="light"] .update-release-row:nth-child(even) {
  background: rgba(247, 251, 253, 0.94);
}

body[data-theme="light"] .support-license-row:hover,
body[data-theme="light"] .file-row:hover,
body[data-theme="light"] .update-release-row:hover {
  background: rgba(232, 244, 249, 0.96);
}

body[data-theme="light"] .support-license-row.is-selected,
body[data-theme="light"] .file-row.is-selected,
body[data-theme="light"] .update-release-row.is-selected {
  background: rgba(255, 122, 24, 0.13);
}

body[data-theme="light"] input[type="checkbox"] {
  accent-color: #f06f1c;
}

body[data-theme="light"] .workspace-tabs {
  border-color: rgba(148, 163, 184, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 252, 255, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 16px 36px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .workspace-tab {
  color: #4a6075;
}

body[data-theme="light"] .workspace-tab:hover {
  background: rgba(14, 165, 163, 0.05);
  color: #173047;
}

body[data-theme="light"] .workspace-tab.active {
  background:
    radial-gradient(circle at 70% 20%, rgba(45, 212, 199, 0.22), transparent 33%),
    rgba(45, 212, 199, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 26px rgba(45, 212, 199, 0.16);
  color: #102033;
}

body[data-theme="light"] .workspace-tab-count {
  background: rgba(14, 165, 163, 0.08);
  color: #0f766e;
}

body[data-theme="light"] .workspace-tab:not(:last-child)::after {
  background: rgba(100, 116, 139, 0.24);
}

body[data-theme="light"] .workspace-tab[data-workspace-tab="user_access"] .dashboard-tab-icon {
  color: #64748b;
}

body[data-theme="light"] .dashboard-header {
  background:
    radial-gradient(circle at 88% 35%, rgba(45, 212, 199, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.92));
  border-color: rgba(148, 163, 184, 0.26);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
}

body[data-theme="light"] .header-module-card,
body[data-theme="light"] .header-action-button,
body[data-theme="light"] .header-main-icon,
body[data-theme="light"] .header-account-card {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(148, 163, 184, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 24px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .header-title {
  color: #102033;
}

body[data-theme="light"] .header-module-label,
body[data-theme="light"] .header-action-button {
  color: #4a6075;
}

body[data-theme="light"] .header-action-button:hover {
  border-color: rgba(12, 142, 161, 0.24);
  background: rgba(255, 255, 255, 0.82);
  color: #102033;
}

body[data-theme="light"] .header-divider {
  background: rgba(100, 116, 139, 0.28);
}

body[data-theme="light"] .account-avatar {
  color: #0c8ea1;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.8), transparent 34%), rgba(12, 142, 161, 0.1);
  border-color: rgba(12, 142, 161, 0.28);
}

body[data-theme="light"] .account-copy strong {
  color: #102033;
}

body[data-theme="light"] .hero-badges span,
body[data-theme="light"] .file-category,
body[data-theme="light"] .update-current-version {
  background: rgba(12, 142, 161, 0.1);
  border: 1px solid rgba(12, 142, 161, 0.18);
  color: #075d6b;
}

body[data-theme="light"] .pagination-bar {
  border-color: rgba(83, 111, 140, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .pagination-button {
  border-color: rgba(83, 111, 140, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: #42586d;
}

body[data-theme="light"] .pagination-button.active {
  border-color: rgba(240, 111, 28, 0.62);
  background: rgba(255, 122, 24, 0.16);
  color: #8a3d00;
}

body[data-theme="light"] .filter-chip.active {
  background: rgba(240, 111, 28, 0.12);
  color: #8a3d00;
}

body[data-theme="light"] .archive-card {
  background: rgba(255, 255, 255, 0.82);
}

body[data-theme="light"] .archive-panel {
  border-color: rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(circle at 9% 8%, rgba(45, 212, 199, 0.08), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 255, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 40px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .archive-panel-title {
  color: #102033;
}

body[data-theme="light"] .archive-panel-icon {
  color: #0eaaa5;
  border-color: rgba(14, 165, 163, 0.18);
  background:
    radial-gradient(circle at 34% 28%, rgba(45, 212, 199, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 28px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .archive-count {
  color: #607286;
}

body[data-theme="light"] .archive-toolbar .search-box span {
  color: #607286;
}

body[data-theme="light"] .archive-toolbar .search-box input,
body[data-theme="light"] .archive-toolbar .search-box select {
  border-color: rgba(83, 111, 140, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: #102033;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(15, 23, 42, 0.04);
}

body[data-theme="light"] .archive-toolbar .archive-search::before {
  color: #607286;
}

body[data-theme="light"] .archive-toolbar .archive-search::after {
  background: #607286;
}

body[data-theme="light"] .create-folder-toggle {
  border-color: #d6e2ec;
  background: #f6fafc;
  color: #1f3a4d;
  box-shadow: 0 1px 2px rgba(28, 50, 74, 0.06);
}

body[data-theme="light"] .create-folder-toggle:hover {
  border-color: #bfdae7;
  background: #eef7fb;
  color: #173348;
}

body[data-theme="light"] .create-folder-toggle.active {
  border-color: rgba(12, 142, 161, 0.24);
  background: rgba(12, 142, 161, 0.1);
  color: #075d6b;
}

body[data-theme="light"] .archive-create-folder-button {
  border-color: rgba(14, 165, 163, 0.18);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.94), rgba(14, 165, 163, 0.84));
  color: #f8fffd;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 12px 24px rgba(20, 184, 166, 0.16);
}

body[data-theme="light"] .create-folder-panel {
  border-color: rgba(12, 142, 161, 0.16);
  background: rgba(248, 252, 255, 0.82);
}

body[data-theme="light"] .create-folder-input {
  border-color: rgba(46, 81, 116, 0.16);
  background: rgba(255, 255, 255, 0.86);
}

body[data-theme="light"] .archive-type-card {
  border-color: rgba(83, 111, 140, 0.16);
  background: rgba(255, 255, 255, 0.64);
  color: #536f8c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(15, 23, 42, 0.04);
}

body[data-theme="light"] .archive-type-card:hover {
  border-color: rgba(14, 165, 163, 0.2);
  background: rgba(238, 247, 251, 0.9);
  color: #102033;
}

body[data-theme="light"] .archive-type-card.active {
  border-color: rgba(14, 165, 163, 0.22);
  background:
    radial-gradient(circle at 75% 20%, rgba(45, 212, 199, 0.22), transparent 35%),
    rgba(45, 212, 199, 0.12);
  color: #102033;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 24px rgba(45, 212, 199, 0.13);
}

body[data-theme="light"] .archive-table-shell {
  border-color: rgba(83, 111, 140, 0.18);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 30px rgba(15, 23, 42, 0.06);
}

body[data-theme="light"] .archive-table-wrapper .file-list-head {
  background: rgba(244, 249, 252, 0.96);
  color: #607286;
}

body[data-theme="light"] .archive-card .pagination-bar {
  border-color: rgba(83, 111, 140, 0.16);
  background: rgba(255, 255, 255, 0.66);
}

body[data-theme="light"] .archive-card .pagination-button.active {
  border-color: rgba(14, 165, 163, 0.28);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.86), rgba(56, 189, 248, 0.46));
  color: #073a3c;
}

body[data-theme="light"] .row-action-dropdown {
  border-color: rgba(83, 111, 140, 0.18);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 30px rgba(28, 50, 74, 0.16);
}

body[data-theme="light"] .row-action-dropdown .row-action-danger {
  color: #a82437;
  background: rgba(201, 54, 73, 0.11);
}

body[data-theme="light"] .file-list-shell .ghost-button,
body[data-theme="light"] .support-list-shell .ghost-button,
body[data-theme="light"] .update-list-shell .ghost-button {
  border: 1px solid rgba(83, 111, 140, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #1f3a4d;
}

body[data-theme="light"] .file-list-shell .ghost-button:hover,
body[data-theme="light"] .support-list-shell .ghost-button:hover,
body[data-theme="light"] .update-list-shell .ghost-button:hover {
  border-color: rgba(12, 142, 161, 0.26);
  background: rgba(238, 247, 251, 0.92);
  color: #173348;
}

body[data-theme="light"] .file-list-shell .ghost-button.danger,
body[data-theme="light"] .support-list-shell .ghost-button.danger,
body[data-theme="light"] .update-list-shell .ghost-button.danger {
  border-color: rgba(201, 54, 73, 0.22);
  background: rgba(201, 54, 73, 0.1);
  color: #9f1f32;
}

body[data-theme="light"] .upload-card .action-panel {
  border-color: rgba(83, 111, 140, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .upload-panel {
  border-color: rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(circle at 90% 16%, rgba(45, 212, 199, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 255, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 42px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .upload-panel .upload-panel-inner {
  background: transparent;
}

body[data-theme="light"] .upload-panel .upload-title {
  color: #102033;
}

body[data-theme="light"] .upload-panel-icon,
body[data-theme="light"] .upload-dropzone-icon,
body[data-theme="light"] .upload-floating-file-icon,
body[data-theme="light"] .queue-file-icon {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 22px rgba(15, 23, 42, 0.06);
}

body[data-theme="light"] .upload-folder-select-group select,
body[data-theme="light"] .upload-description-input {
  border-color: rgba(83, 111, 140, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: #102033;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(15, 23, 42, 0.04);
}

body[data-theme="light"] .upload-dropzone-preview {
  border-color: #b9dce3;
  background: #f6fafc;
}

body[data-theme="light"] .upload-dropzone {
  border-color: rgba(14, 165, 163, 0.42);
  background:
    radial-gradient(circle at 50% 50%, rgba(45, 212, 199, 0.08), transparent 46%),
    rgba(240, 253, 250, 0.32);
}

body[data-theme="light"] .upload-dropzone-preview:hover,
body[data-theme="light"] .upload-dropzone-preview.dragover {
  border-color: #7fc9d3;
  background: #eefafa;
}

body[data-theme="light"] .upload-dropzone:hover,
body[data-theme="light"] .upload-dropzone.dragover {
  border-color: #14b8a6;
  background:
    radial-gradient(circle at 50% 50%, rgba(45, 212, 199, 0.16), transparent 48%),
    rgba(240, 253, 250, 0.62);
}

body[data-theme="light"] .upload-dropzone-title {
  color: #1f3a4d;
}

body[data-theme="light"] .upload-dropzone-hint,
body[data-theme="light"] .upload-subtitle,
body[data-theme="light"] .upload-summary,
body[data-theme="light"] .upload-folder-select-group .form-field > span {
  color: #607286;
}

body[data-theme="light"] .upload-queue-count {
  background: rgba(14, 165, 163, 0.1);
  color: #0f766e;
}

body[data-theme="light"] .upload-queue-table-shell {
  border-color: rgba(83, 111, 140, 0.18);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 30px rgba(15, 23, 42, 0.06);
}

body[data-theme="light"] .upload-queue-table-head {
  border-bottom-color: rgba(83, 111, 140, 0.18);
  background: rgba(244, 249, 252, 0.96);
  color: #607286;
}

body[data-theme="light"] .upload-queue-table-head span,
body[data-theme="light"] .upload-queue-row > div {
  border-inline-start-color: rgba(83, 111, 140, 0.16);
}

body[data-theme="light"] .upload-queue-row {
  border-bottom-color: rgba(83, 111, 140, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .upload-queue-row:nth-child(even) {
  background: rgba(247, 251, 253, 0.9);
}

body[data-theme="light"] .queue-item[data-status="pending"] .upload-status-badge {
  background: rgba(20, 184, 166, 0.1);
  color: #0f766e;
}

body[data-theme="light"] .queue-item[data-status="uploading"] .upload-status-badge {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

body[data-theme="light"] .queue-item[data-status="paused"] .upload-status-badge {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

body[data-theme="light"] .upload-percent-badge {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
}

body[data-theme="light"] .queue-item[data-status="success"] .upload-status-badge {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
}

body[data-theme="light"] .queue-item[data-status="error"] .upload-status-badge,
body[data-theme="light"] .queue-item[data-status="canceled"] .upload-status-badge {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

body[data-theme="light"] .upload-queue-row .queue-cancel {
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

body[data-theme="light"] .upload-queue-row .queue-cancel:hover {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.13);
  color: #b91c1c;
}

body[data-theme="light"] .upload-start-button {
  background: linear-gradient(135deg, #14b8a6, #22d3ee);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(20, 184, 166, 0.25);
}

body[data-theme="light"] .permission-item,
body[data-theme="light"] .queue-item,
body[data-theme="light"] .metric-panel,
body[data-theme="light"] .inline-note,
body[data-theme="light"] .bulk-actions {
  border-color: rgba(83, 111, 140, 0.18);
}

body[data-theme="light"] .stat-card {
  background:
    radial-gradient(circle at 16% 24%, rgba(45, 212, 199, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 252, 255, 0.86));
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 40px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .metric-panel .stat-value {
  color: #102033;
}

body[data-theme="light"] .stat-title,
body[data-theme="light"] .stat-unit,
body[data-theme="light"] .stat-helper {
  color: #607286;
}

body[data-theme="light"] .stat-icon {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 28px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .queue-description-input {
  border-color: rgba(46, 81, 116, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: #152232;
}

body[data-theme="light"] .queue-description-input::placeholder {
  color: #7b8da0;
}

body[data-theme="light"] .queue-toggle {
  border-color: rgba(12, 142, 161, 0.22);
  background: rgba(12, 142, 161, 0.08);
  color: #075d6b;
  box-shadow: 0 1px 2px rgba(28, 50, 74, 0.06);
}

body[data-theme="light"] .queue-toggle:hover {
  border-color: rgba(12, 142, 161, 0.34);
  background: rgba(12, 142, 161, 0.13);
  color: #064f5b;
}

body[data-theme="light"] .queue-cancel {
  border-color: rgba(201, 54, 73, 0.24);
  background: rgba(201, 54, 73, 0.1);
  color: #9f1f32;
  box-shadow: 0 1px 2px rgba(28, 50, 74, 0.06);
}

body[data-theme="light"] .queue-cancel:hover {
  border-color: rgba(201, 54, 73, 0.36);
  background: rgba(201, 54, 73, 0.16);
  color: #7f1425;
}

body[data-theme="light"] .bulk-actions {
  border-color: rgba(201, 54, 73, 0.24);
  background: rgba(201, 54, 73, 0.08);
  color: #34495e;
}

body[data-theme="light"] .bulk-count {
  color: #42586d;
}

body[data-theme="light"] .ghost-button.danger,
body[data-theme="light"] .bulk-actions .ghost-button.danger {
  border: 1px solid rgba(201, 54, 73, 0.22);
  background: rgba(201, 54, 73, 0.12);
  color: #9f1f32;
}

body[data-theme="light"] .ghost-button.danger:hover,
body[data-theme="light"] .bulk-actions .ghost-button.danger:hover {
  border-color: rgba(201, 54, 73, 0.34);
  background: rgba(201, 54, 73, 0.18);
  color: #7f1425;
}

body[data-theme="light"] .customer-validity-secondary-action {
  border-color: rgba(12, 142, 161, 0.26);
  background: rgba(12, 142, 161, 0.08);
  color: #145064;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 22px rgba(28, 50, 74, 0.08);
}

body[data-theme="light"] .customer-validity-secondary-action:hover {
  border-color: rgba(12, 142, 161, 0.38);
  background: rgba(12, 142, 161, 0.14);
  color: #0f3f52;
}

body[data-theme="light"] .customer-excel-import-card {
  background:
    radial-gradient(circle at 92% 20%, rgba(20, 184, 166, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 255, 0.88));
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px rgba(15, 23, 42, 0.07);
}

body[data-theme="light"] .customer-excel-import-icon {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.2);
}

body[data-theme="light"] .customer-excel-import-hint {
  color: #0f766e;
}

body[data-theme="light"] .customer-excel-selected-file {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(148, 163, 184, 0.24);
  color: #0f172a;
}

body[data-theme="light"] .customer-excel-selected-file.has-file {
  border-color: rgba(20, 184, 166, 0.26);
}

body[data-theme="light"] .customer-excel-clear-button {
  color: #9f1f32;
  background: rgba(201, 54, 73, 0.1);
  border-color: rgba(201, 54, 73, 0.2);
}

body[data-theme="light"] .ghost-button:disabled,
body[data-theme="light"] .primary-button:disabled,
body[data-theme="light"] button:disabled {
  opacity: 1;
  color: #8ea0b2;
  background: rgba(231, 238, 244, 0.82);
  border-color: rgba(83, 111, 140, 0.14);
  box-shadow: none;
  cursor: not-allowed;
}

.support-list-head span {
  min-width: 0;
  padding: 0.62rem 0.75rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.07);
  white-space: nowrap;
}

.support-list-head span:last-child {
  border-inline-start: 0;
}

.support-licenses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
}

.support-license-row {
  align-items: start;
  padding: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.018);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 180ms ease;
}

.support-license-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.032);
}

.support-license-row:last-child {
  border-bottom: 0;
}

.support-license-row:hover {
  background: rgba(52, 211, 229, 0.08);
}

.support-license-row.is-selected,
.file-row.is-selected,
.update-release-row.is-selected {
  background: rgba(255, 122, 24, 0.11);
}

.support-license-company,
.support-license-ids,
.support-license-check,
.support-license-modules,
.support-license-notes,
.support-license-expire-date {
  color: var(--muted);
}

.support-license-database {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
}

.support-license-cell {
  min-width: 0;
  min-height: 100%;
  padding: 0.58rem 0.75rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.06);
}

.support-license-cell:last-child {
  border-inline-start: 0;
}

.support-license-company,
.support-license-ids,
.support-license-check,
.support-license-modules,
.support-license-notes {
  font-size: 0.8rem;
  line-height: 1.55;
  word-break: break-word;
}

.support-license-notes,
.support-license-modules {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.support-license-ids,
.support-license-check {
  display: grid;
  gap: 0.25rem;
}

.support-license-expire {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.support-license-status[data-status="active"] {
  color: #bfffe2;
  background: rgba(65, 211, 146, 0.16);
}

.support-license-status[data-status="expired"],
.support-license-status[data-status="inactive"] {
  color: #ffd6db;
  background: rgba(255, 107, 120, 0.14);
}

body[data-theme="light"] .support-license-status[data-status="active"] {
  color: #0f6b45;
  background: rgba(23, 127, 82, 0.14);
  border: 1px solid rgba(23, 127, 82, 0.16);
}

body[data-theme="light"] .support-license-status[data-status="expired"],
body[data-theme="light"] .support-license-status[data-status="inactive"] {
  color: #a82437;
  background: rgba(201, 54, 73, 0.12);
  border: 1px solid rgba(201, 54, 73, 0.15);
}

.customer-validity-panel {
  direction: rtl;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 16%, rgba(45, 212, 199, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(12, 31, 47, 0.92), rgba(8, 20, 32, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 42px rgba(0, 0, 0, 0.26);
}

.customer-validity-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.customer-validity-title-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: right;
  min-width: 0;
  flex: 1 1 26rem;
}

.customer-validity-icon,
.customer-validity-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #5eead4;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.18);
}

.customer-validity-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1.15rem;
}

.customer-validity-icon svg,
.customer-validity-modal-icon svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-validity-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.35;
}

.customer-validity-subtitle,
.customer-validity-helper {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.85;
}

.customer-validity-helper {
  font-size: 0.76rem;
}

.customer-validity-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}

.customer-validity-primary-action,
.customer-validity-secondary-action,
.customer-validity-import-tools .primary-button {
  min-height: 2.75rem;
  border-radius: 0.95rem;
  font-weight: 900;
}

.customer-validity-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(45, 212, 199, 0.22);
  background: rgba(45, 212, 199, 0.08);
  color: #dffcff;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(45, 212, 199, 0.08);
}

.customer-validity-secondary-action:hover {
  border-color: rgba(45, 212, 199, 0.36);
  background: rgba(45, 212, 199, 0.14);
  color: #ffffff;
}

.customer-excel-import-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  direction: rtl;
  display: grid;
  grid-template-columns: minmax(17.5rem, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem;
  border-radius: 1.35rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 20%, rgba(45, 212, 199, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(12, 31, 47, 0.88), rgba(8, 20, 32, 0.8));
  border: 1px solid rgba(45, 212, 199, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 16px 34px rgba(0, 0, 0, 0.2);
}

.customer-excel-import-info {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.customer-excel-import-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #5eead4;
  background: rgba(45, 212, 199, 0.11);
  border: 1px solid rgba(45, 212, 199, 0.24);
}

.customer-excel-import-icon svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-excel-import-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: right;
}

.customer-excel-import-copy h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.4;
}

.customer-excel-import-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

.customer-excel-import-hint {
  color: #8ee8df;
  font-size: 0.76rem;
  line-height: 1.7;
}

.customer-excel-import-controls {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.62rem;
  flex-wrap: wrap;
}

.customer-excel-native-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.customer-excel-file-button,
.customer-excel-import-button,
.customer-excel-template-button,
.customer-excel-clear-button {
  min-height: 2.75rem;
  border-radius: 0.9rem;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-weight: 850;
  cursor: pointer;
}

.customer-excel-selected-file {
  min-height: 2.75rem;
  max-width: 17.5rem;
  min-width: 11.25rem;
  border-radius: 0.9rem;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  direction: ltr;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(226, 232, 240, 0.92);
}

.customer-excel-selected-file.has-file {
  border-color: rgba(45, 212, 199, 0.25);
  color: var(--text);
}

.customer-excel-clear-button {
  width: 2.35rem;
  min-width: 2.35rem;
  padding: 0;
  color: #ffd6db;
  background: rgba(255, 107, 120, 0.12);
  border: 1px solid rgba(255, 107, 120, 0.18);
  font-size: 1.1rem;
}

.customer-excel-file-button:focus-visible,
.customer-excel-import-button:focus-visible,
.customer-excel-template-button:focus-visible,
.customer-excel-clear-button:focus-visible {
  outline: 3px solid rgba(45, 212, 199, 0.35);
  outline-offset: 3px;
}

.customer-validity-summary,
.customer-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.customer-validity-summary-card,
.customer-summary-card {
  position: relative;
  min-width: 0;
  min-height: 6.5rem;
  border-radius: 1.1rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  text-align: right;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.customer-summary-card:hover {
  transform: translateY(-1px);
}

.customer-summary-card:focus-visible {
  outline: 3px solid rgba(45, 212, 199, 0.35);
  outline-offset: 3px;
}

.customer-summary-card.is-active {
  border-color: rgba(45, 212, 199, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 30px rgba(45, 212, 199, 0.14);
}

.customer-summary-card.is-active::after {
  content: "";
  position: absolute;
  height: 3px;
  width: min(5rem, calc(100% - 2rem));
  border-radius: 999px;
  bottom: 0.5rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #2dd4bf, #38bdf8);
}

.customer-summary-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.customer-summary-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-summary-icon.is-total {
  color: #93c5fd;
}

.customer-summary-icon.is-active-icon {
  color: #5eead4;
}

.customer-summary-icon.is-inactive {
  color: #cbd5e1;
}

.customer-summary-icon.is-near {
  color: #fbbf24;
}

.customer-summary-icon.is-expired {
  color: #fca5a5;
}

.customer-summary-icon.is-view-only {
  color: #c4b5fd;
}

.customer-summary-icon.is-demo {
  color: #a5b4fc;
}

.customer-summary-icon.is-internal-test {
  color: #fdba74;
}

.customer-summary-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.customer-summary-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.customer-summary-value {
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 900;
}

.customer-summary-helper {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.customer-validity-import-tools,
.customer-validity-toolbar {
  max-width: 100%;
  min-width: 0;
  border-radius: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.customer-validity-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.customer-validity-toolbar .search-box {
  min-height: 2.75rem;
}

.customer-validity-table-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
  border-radius: 1.15rem;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.customer-validity-panel .support-license-shell,
.customer-validity-panel .support-license-browser,
.customer-validity-panel .support-import-form {
  min-width: 0;
  max-width: 100%;
}

.customer-validity-panel .support-import-form {
  flex: 1 1 18rem;
}

.customer-validity-panel .support-import-form input[type="file"] {
  min-width: 0;
  max-width: 100%;
}

.customer-validity-panel .support-import-form input[type="file"]::file-selector-button {
  margin-inline-end: 0.65rem;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(45, 212, 199, 0.14);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.customer-validity-panel .support-list-head,
.customer-validity-panel .support-license-row {
  grid-template-columns:
    2.75rem
    minmax(0, 1.25fr)
    minmax(0, 1fr)
    minmax(0, 0.72fr)
    minmax(0, 0.64fr)
    minmax(0, 1.35fr)
    minmax(0, 0.8fr)
    minmax(0, 0.64fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.customer-validity-panel .support-list-head {
  background: rgba(255, 255, 255, 0.035);
  font-weight: 900;
}

.customer-validity-panel .support-license-cell,
.customer-validity-panel .support-list-head span {
  min-width: 0;
  max-width: 100%;
  padding: 0.78rem 0.72rem;
  overflow-wrap: anywhere;
  word-break: normal;
}

.customer-validity-panel .support-license-row {
  min-height: 4.5rem;
  height: auto;
  align-items: stretch;
}

.support-license-status-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.support-license-status,
.support-license-view-only,
.customer-module-chip {
  min-height: 1.75rem;
  padding: 0 0.62rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.support-license-view-only {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.13);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.support-license-expire-date {
  display: grid;
  gap: 0.25rem;
}

.support-license-expire-date strong {
  color: var(--text);
  font-size: 0.9rem;
}

.support-license-expire-hint {
  font-size: 0.74rem;
  font-weight: 900;
}

.support-license-expire-hint.is-valid {
  color: #86efac;
}

.support-license-expire-hint.is-near {
  color: #fdba74;
}

.support-license-expire-hint.is-expired {
  color: #fca5a5;
}

.support-license-expire-hint.is-none {
  color: var(--muted);
}

.support-license-modules {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  flex-wrap: wrap;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
}

.customer-module-chip {
  max-width: 100%;
  color: #99f6e4;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.22);
  white-space: normal;
  text-align: center;
  line-height: 1.45;
}

.customer-module-chip.is-empty {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.16);
}

.customer-validity-panel .support-license-main,
.customer-validity-panel .support-license-ids,
.customer-validity-panel .support-license-check {
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-validity-panel .support-license-company,
.customer-validity-panel .support-license-database,
.customer-validity-panel .support-license-ids div,
.customer-validity-panel .support-license-check div {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.support-record-type-badge {
  width: fit-content;
  max-width: 100%;
  min-height: 1.65rem;
  margin-top: 0.35rem;
  padding: 0 0.58rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.support-record-type-badge[data-record-type="real"] {
  color: #99f6e4;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.22);
}

.support-record-type-badge[data-record-type="demo"] {
  color: #c4b5fd;
  background: rgba(99, 102, 241, 0.13);
  border: 1px solid rgba(99, 102, 241, 0.22);
}

.support-record-type-badge[data-record-type="internal_test"] {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.13);
  border: 1px solid rgba(249, 115, 22, 0.22);
}

.customer-validity-panel .support-license-card-actions {
  max-width: 100%;
  overflow: visible;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.customer-validity-panel .support-license-card-actions .ghost-button {
  min-height: 2.1rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.customer-validity-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overscroll-behavior: contain;
}

.customer-validity-modal {
  direction: rtl;
  width: min(54rem, calc(100vw - 3rem));
  max-height: calc(100dvh - 3rem);
  min-height: 0;
  padding: 0;
  border-radius: 1.65rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: start;
  background:
    radial-gradient(circle at 88% 14%, rgba(45, 212, 199, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(12, 31, 47, 0.96), rgba(8, 20, 32, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 80px rgba(0, 0, 0, 0.46);
}

.customer-validity-modal-header {
  flex: 0 0 auto;
  margin: 0;
  padding: 1.35rem 1.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.customer-validity-modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-inline-start: 3rem;
}

.customer-validity-modal-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.9rem;
}

.customer-validity-modal-subtitle {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.customer-validity-modal-form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.customer-validity-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.customer-validity-form-section {
  border-radius: 1.25rem;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.customer-validity-form-section h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
}

.customer-validity-section-hint {
  display: block;
  margin: -0.3rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.customer-validity-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.customer-validity-state-grid {
  align-items: end;
}

.customer-validity-modal-footer {
  flex: 0 0 auto;
  margin: 0;
  padding: 1rem 1.75rem 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.customer-validity-modal-footer .primary-button,
.customer-validity-modal-footer .ghost-button {
  min-height: 2.65rem;
  border-radius: 0.9rem;
  font-weight: 900;
}

.customer-validity-modal .form-field input,
.customer-validity-modal .form-field textarea {
  border-radius: 0.85rem;
}

.customer-validity-modal .support-modules-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-validity-modal .support-module-item {
  min-height: 2.7rem;
  border-radius: 0.85rem;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.customer-validity-modal .support-module-item.is-selected {
  border-color: rgba(20, 184, 166, 0.42);
  background: rgba(20, 184, 166, 0.12);
}

.customer-record-info-strip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(45, 212, 199, 0.16);
  background: rgba(45, 212, 199, 0.065);
  color: var(--muted);
}

.customer-record-info-strip span {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #5eead4;
  background: rgba(45, 212, 199, 0.12);
  font-weight: 900;
  font-family: serif;
}

.customer-record-info-strip p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.8;
}

.customer-record-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.customer-record-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.customer-record-form-field {
  min-width: 0;
}

.customer-record-form-field.is-full {
  grid-column: 1 / -1;
}

.customer-record-native-select {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.record-type-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.record-type-segmented button {
  min-height: 2.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.record-type-segmented button:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 199, 0.28);
  background: rgba(45, 212, 199, 0.08);
}

.record-type-segmented button.is-active {
  color: #ffffff;
  border-color: rgba(45, 212, 199, 0.55);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.92), rgba(6, 182, 212, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 26px rgba(20, 184, 166, 0.18);
}

.record-type-helper {
  margin: 0.45rem 0 0;
}

.customer-toggle-card {
  min-height: 4.9rem;
  border-radius: 1.05rem;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.customer-toggle-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.customer-toggle-card.is-selected {
  border-color: rgba(45, 212, 199, 0.42);
  background: rgba(45, 212, 199, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.customer-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: right;
  min-width: 0;
}

.customer-toggle-copy strong {
  font-weight: 900;
}

.customer-toggle-copy small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.6;
}

.customer-toggle-visual {
  width: 3rem;
  height: 1.55rem;
  border-radius: 999px;
  position: relative;
  flex: 0 0 auto;
  background: rgba(148, 163, 184, 0.24);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.customer-toggle-visual::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.18rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: #e2e8f0;
  transform: translateY(-50%);
  transition: transform 160ms ease, background-color 160ms ease;
}

.customer-toggle-card.is-selected .customer-toggle-visual {
  background: rgba(20, 184, 166, 0.58);
  border-color: rgba(45, 212, 199, 0.38);
}

.customer-toggle-card.is-selected .customer-toggle-visual::after {
  background: #ffffff;
  transform: translate(-1.35rem, -50%);
}

.customer-module-toolbar {
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.customer-module-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.customer-module-count {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.7rem;
  border-radius: 999px;
  color: #8ee8df;
  background: rgba(45, 212, 199, 0.08);
  border: 1px solid rgba(45, 212, 199, 0.14);
  font-size: 0.74rem;
  font-weight: 850;
}

.customer-validity-modal .support-modules-list {
  gap: 0.62rem;
}

.customer-validity-modal .module-select-card {
  min-height: 3.15rem;
  border-radius: 0.95rem;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.module-select-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.module-select-label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-select-check {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: transparent;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.74rem;
  font-weight: 900;
}

.module-select-card.is-selected .module-select-check {
  color: #073b3f;
  background: #5eead4;
  border-color: rgba(94, 234, 212, 0.55);
}

.customer-validity-modal button:focus-visible,
.customer-validity-modal input:focus-visible,
.customer-validity-modal textarea:focus-visible,
.customer-validity-modal select:focus-visible,
.module-select-card:focus-within,
.customer-toggle-card:focus-within {
  outline: 3px solid rgba(45, 212, 199, 0.35);
  outline-offset: 3px;
}

body[data-theme="light"] .customer-validity-panel {
  background:
    radial-gradient(circle at 90% 16%, rgba(45, 212, 199, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 255, 0.86));
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 42px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .customer-validity-icon,
body[data-theme="light"] .customer-validity-modal-icon,
body[data-theme="light"] .customer-validity-summary-card,
body[data-theme="light"] .customer-summary-icon,
body[data-theme="light"] .customer-validity-import-tools,
body[data-theme="light"] .customer-validity-toolbar,
body[data-theme="light"] .customer-validity-table-shell,
body[data-theme="light"] .customer-validity-form-section {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 22px rgba(15, 23, 42, 0.06);
}

body[data-theme="light"] .customer-record-info-strip {
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.18);
  color: #486174;
}

body[data-theme="light"] .customer-record-info-strip span,
body[data-theme="light"] .customer-module-count {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.18);
}

body[data-theme="light"] .record-type-segmented button {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(148, 163, 184, 0.22);
  color: #1e293b;
}

body[data-theme="light"] .record-type-segmented button.is-active {
  color: #ffffff;
  border-color: rgba(20, 184, 166, 0.48);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.9), rgba(14, 165, 233, 0.76));
}

body[data-theme="light"] .customer-toggle-card,
body[data-theme="light"] .customer-validity-modal .module-select-card {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(148, 163, 184, 0.2);
}

body[data-theme="light"] .customer-toggle-card.is-selected,
body[data-theme="light"] .customer-validity-modal .module-select-card.is-selected {
  border-color: rgba(20, 184, 166, 0.36);
  background: rgba(20, 184, 166, 0.1);
}

body[data-theme="light"] .module-select-check {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(148, 163, 184, 0.26);
}

body[data-theme="light"] .support-license-view-only {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.16);
}

body[data-theme="light"] .customer-module-chip {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.2);
}

body[data-theme="light"] .customer-validity-panel .support-import-form input[type="file"]::file-selector-button {
  background: rgba(20, 184, 166, 0.1);
  color: #0f766e;
}

body[data-theme="light"] .support-record-type-badge[data-record-type="real"] {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.2);
}

body[data-theme="light"] .support-record-type-badge[data-record-type="demo"] {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.09);
  border-color: rgba(99, 102, 241, 0.18);
}

body[data-theme="light"] .support-record-type-badge[data-record-type="internal_test"] {
  color: #c2410c;
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.2);
}

body[data-theme="light"] .customer-validity-modal-overlay {
  background: rgba(15, 23, 42, 0.22);
}

body[data-theme="light"] .customer-validity-modal {
  background:
    radial-gradient(circle at 88% 14%, rgba(45, 212, 199, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.9));
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 24px 70px rgba(15, 23, 42, 0.22);
}

@media (max-width: 1200px) {
  .customer-excel-import-card {
    grid-template-columns: 1fr;
  }

  .customer-excel-import-controls {
    justify-content: flex-start;
  }

  .customer-validity-modal .support-modules-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .customer-validity-modal .support-modules-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .customer-validity-actions,
  .customer-validity-import-tools {
    width: 100%;
  }

  .customer-validity-actions .primary-button,
  .customer-validity-actions .ghost-button,
  .customer-validity-import-tools .primary-button {
    flex: 1 1 10rem;
  }

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

  .customer-validity-toolbar {
    align-items: stretch;
  }

  .customer-validity-toolbar .search-box {
    flex: 1 1 14rem;
  }

  .customer-validity-table-shell {
    overflow-x: auto;
    overflow-y: visible;
  }

  .customer-validity-panel .support-list-head,
  .customer-validity-panel .support-license-row {
    min-width: 57.5rem;
  }

  .customer-validity-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .customer-excel-import-card {
    padding: 1rem;
    border-radius: 1.25rem;
  }

  .customer-excel-import-info {
    align-items: flex-start;
  }

  .customer-excel-import-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .customer-excel-file-button,
  .customer-excel-import-button,
  .customer-excel-template-button,
  .customer-excel-selected-file {
    width: 100%;
    max-width: 100%;
  }

  .customer-excel-selected-file {
    justify-content: center;
    text-align: center;
  }

  .customer-excel-clear-button {
    align-self: center;
  }

  .customer-validity-modal-overlay {
    padding: 0.75rem;
    align-items: flex-start;
  }

  .customer-validity-modal {
    width: 100%;
    max-height: calc(100dvh - 1.5rem);
    border-radius: 1.25rem;
  }

  .customer-validity-modal-header {
    padding: 1.15rem 1.1rem 0.85rem;
  }

  .customer-validity-modal-title-group {
    align-items: flex-start;
    padding-inline-start: 2.6rem;
  }

  .customer-validity-modal-body {
    padding: 1rem 1.1rem;
  }

  .customer-validity-form-grid,
  .customer-validity-state-grid {
    grid-template-columns: 1fr;
  }

  .record-type-segmented {
    grid-template-columns: 1fr;
  }

  .customer-module-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-module-actions {
    width: 100%;
  }

  .customer-validity-modal-footer {
    padding: 0.85rem 1.1rem 1.1rem;
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .customer-validity-modal-footer button {
    width: 100%;
  }

  .customer-validity-modal .support-modules-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .customer-validity-panel {
    padding: 1.1rem;
    border-radius: 1.25rem;
  }

  .customer-validity-title-group {
    align-items: flex-start;
  }

  .customer-validity-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
  }

  .customer-validity-title {
    font-size: 1.28rem;
  }

  .customer-validity-summary {
    grid-template-columns: 1fr;
  }

  .customer-validity-toolbar input,
  .customer-validity-toolbar select,
  .customer-validity-toolbar button,
  .customer-validity-import-tools input,
  .customer-validity-import-tools button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .customer-record-info-strip {
    align-items: flex-start;
  }

  .customer-validity-modal .support-modules-list {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 760px) and (min-width: 721px) {
  .customer-validity-modal-overlay {
    padding: 0.75rem 1.5rem;
  }

  .customer-validity-modal {
    max-height: calc(100dvh - 1.5rem);
  }

  .customer-validity-modal-header {
    padding: 1rem 1.5rem 0.65rem;
  }

  .customer-validity-modal-body {
    padding: 0.75rem 1.5rem;
    gap: 0.62rem;
  }

  .customer-validity-form-section {
    padding: 0.72rem;
  }

  .customer-validity-modal-footer {
    padding: 0.75rem 1.5rem 0.85rem;
  }
}

.user-access-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.user-access-browser,
.user-access-form {
  align-content: start;
}

.permission-list {
  display: grid;
  gap: 0.55rem;
}

.permission-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.permission-item small {
  color: var(--muted);
  font-size: 0.75rem;
}

.permission-item input[type="checkbox"] {
  inline-size: 1.05rem;
  block-size: 1.05rem;
}

.account-security-form {
  max-width: 34rem;
  margin-top: 0.8rem;
}

.file-list-shell {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(6, 18, 30, 0.34);
  overflow-x: auto;
  overflow-y: visible;
}

.file-list-head,
.file-row {
  display: grid;
  grid-template-columns: 3rem minmax(20rem, 1.45fr) minmax(7rem, 0.48fr) minmax(10rem, 0.65fr) minmax(11rem, 0.68fr) minmax(32rem, 2fr);
  gap: 0;
  min-width: 86rem;
}

.archive-table-wrapper .file-list-head,
.archive-table-wrapper .file-row {
  grid-template-columns: 3rem minmax(18rem, 1.6fr) minmax(7rem, 0.5fr) minmax(10rem, 0.7fr) minmax(11rem, 0.75fr) minmax(24rem, 1.65fr);
  min-width: 76rem;
}

.file-list-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 25, 39, 0.96);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.archive-table-wrapper .file-list-head {
  background: rgba(10, 28, 43, 0.92);
  color: #9fb3c7;
  font-size: 0.78rem;
  font-weight: 850;
}

.file-list-head span {
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.07);
  white-space: nowrap;
}

.archive-table-wrapper .file-list-head span {
  padding: 0.62rem 0.8rem;
}

.selection-column,
.selection-cell {
  display: grid;
  place-items: center;
}

.selection-column input,
.selection-cell input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.sortable-header {
  cursor: pointer;
  user-select: none;
}

.sortable-header::after {
  content: "↕";
  display: inline-block;
  margin-inline-start: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.sortable-header[data-sort-direction="asc"]::after {
  content: "↑";
  color: var(--accent-tertiary);
}

.sortable-header[data-sort-direction="desc"]::after {
  content: "↓";
  color: var(--accent-tertiary);
}

.file-list-head span:last-child {
  border-inline-start: 0;
}

.file-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
}

.file-row {
  align-items: stretch;
  padding: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.018);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 180ms ease;
}

.archive-table-wrapper .file-row {
  min-height: 3.65rem;
  background: rgba(255, 255, 255, 0.015);
}

.file-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.032);
}

.archive-table-wrapper .file-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.026);
}

.file-row:last-child {
  border-bottom: 0;
}

.file-row:hover {
  background: rgba(52, 211, 229, 0.08);
}

.archive-table-wrapper .file-row:hover {
  background: rgba(45, 212, 199, 0.07);
}

.file-row-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: auto;
  padding: 0.5rem 0.75rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.06);
}

.archive-table-wrapper .file-row-cell {
  padding: 0.58rem 0.8rem;
}

.file-row-cell:last-child {
  border-inline-start: 0;
}

.file-main-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  align-items: center;
  margin-bottom: 0.16rem;
}

.file-main-cell {
  display: block;
}

.file-main-cell .file-category {
  min-height: 1.45rem;
  padding: 0.16rem 0.48rem;
  font-size: 0.68rem;
  line-height: 1.2;
}

.file-name {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 800;
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
  word-break: break-word;
}

.file-description-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
  word-break: break-word;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.file-description-edit {
  display: flex;
  gap: 0.34rem;
  margin-top: 0;
}

.file-inline-description {
  flex: 1 1 15rem;
  min-width: 13rem;
  margin-top: 0;
}

.file-description-input {
  width: 100%;
  min-width: 0;
  height: 2.125rem;
  min-height: 2.125rem;
  padding: 0 0.62rem;
  border-radius: 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.76rem;
}

.file-description-input::placeholder {
  color: #7e92a7;
}

.file-description-save {
  min-height: 2rem;
  height: 2rem;
  white-space: nowrap;
}

.file-mime {
  display: none;
  margin-top: 0.18rem;
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
  word-break: break-all;
}

.file-size,
.file-date {
  unicode-bidi: isolate;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
  padding-top: 0;
}

.file-size {
  direction: rtl;
}

.file-folder-cell .file-folder-select {
  width: 100%;
  height: 2.125rem;
  min-height: 2.125rem;
  padding: 0 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 0.76rem;
}

.file-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.36rem;
  justify-content: flex-start;
  align-items: center;
}

.file-action-buttons {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 0.32rem;
  align-items: center;
}

.file-actions .ghost-button {
  min-height: 2rem;
  height: 2rem;
  padding: 0 0.58rem;
  font-size: 0.72rem;
}

.row-action-menu {
  position: relative;
  display: inline-flex;
}

.row-action-menu-button {
  min-width: 2rem;
  padding-inline: 0.5rem !important;
  font-size: 1rem !important;
  line-height: 1;
}

.row-action-dropdown {
  position: absolute;
  top: calc(100% + 0.38rem);
  inset-inline-start: 0;
  z-index: 55;
  min-width: 7.5rem;
  padding: 0.38rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 23, 35, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.row-action-dropdown[hidden] {
  display: none !important;
}

.row-action-dropdown .row-action-danger {
  width: 100%;
  justify-content: center;
  color: #ffd6db;
  background: rgba(255, 107, 120, 0.13);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}

.ghost-button.danger {
  color: #ffd6db;
  background: rgba(255, 107, 120, 0.12);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 130%);
  visibility: hidden;
  opacity: 0;
  min-width: min(calc(100% - 2rem), 18rem);
  max-width: min(calc(100% - 2rem), 38rem);
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  background: rgba(7, 18, 29, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f9ff;
  direction: rtl;
  line-height: 1.7;
  overflow-wrap: anywhere;
  text-align: center;
  transition: transform 220ms ease, opacity 220ms ease, visibility 220ms ease;
  z-index: 2000;
  font-size: 0.88rem;
}

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

body[data-theme="light"] .toast {
  border-color: rgba(83, 111, 140, 0.22);
  background: rgba(255, 255, 255, 0.96);
  color: #152232;
  box-shadow: 0 16px 38px rgba(28, 50, 74, 0.18);
}

.upload-complete-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(3, 9, 15, 0.62);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  z-index: 20;
}

.upload-complete-card {
  width: min(100%, 28rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 23, 35, 0.95);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.1rem;
  text-align: center;
}

body[data-theme="light"] .upload-complete-modal {
  background: rgba(19, 33, 47, 0.3);
}

body[data-theme="light"] .upload-complete-card,
body[data-theme="light"] .action-modal-card {
  border-color: rgba(83, 111, 140, 0.18);
  background: rgba(255, 255, 255, 0.98);
  color: #152232;
  box-shadow: 0 18px 46px rgba(28, 50, 74, 0.18);
}

.upload-complete-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
}

.upload-complete-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.action-modal-card {
  width: min(100%, 52rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  text-align: start;
}

.upload-modal-card {
  width: min(100%, 50rem);
}

.update-modal-card {
  width: min(100%, 42rem);
}

.support-modal-card {
  width: min(100%, 58rem);
}

.modal-head,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.modal-head {
  margin-bottom: 0.85rem;
}

.modal-head h3 {
  margin: 0;
  font-size: 1.18rem;
}

.modal-body {
  display: grid;
  gap: 0.85rem;
}

.modal-footer {
  margin-top: 1rem;
  justify-content: flex-start;
}

.action-modal-card .form-grid {
  margin-top: 0.4rem;
}

.action-modal-card .dropzone {
  min-height: 13rem;
}

.action-modal-card .upload-queue {
  max-height: 18rem;
  overflow: auto;
}

.password-change-card {
  width: min(100%, 31rem);
  text-align: start;
}

.password-change-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.password-change-head h3 {
  margin: 0;
  font-size: 1.18rem;
}

.password-change-card .support-text {
  margin: 0;
}

.password-change-card .account-security-form {
  max-width: none;
}

.modal-close-button {
  width: 2.35rem;
  min-height: 2.35rem;
  padding: 0;
  border-radius: 999px;
  font-size: 1.2rem;
  line-height: 1;
}

.reveal {
  animation: appear 700ms ease both;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 14px, 0) scale(1.08);
  }
}

@media (max-width: 1080px) {
  .hero,
  .auth-shell,
  .workspace,
  .update-shell,
  .support-license-shell,
  .user-access-shell,
  .tips-grid,
  .file-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 0.7rem;
  }

  .topbar,
  .hero,
  .panel {
    padding: 0.95rem;
  }

  .workspace-tabs {
    position: static;
    margin-inline: -0.2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    min-height: auto;
    padding: 0.5rem;
    border-radius: var(--radius-md);
  }

  .workspace-tab {
    min-height: 3rem;
    padding-inline: 0.62rem;
    gap: 0.45rem;
    border-radius: 0.9rem;
  }

  .workspace-tab:not(:last-child)::after {
    display: none;
  }

  .dashboard-tab-icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .dashboard-tab-label {
    font-size: 0.82rem;
  }

  .workspace-tab-count {
    min-width: 1.45rem;
    height: 1.35rem;
    padding-inline: 0.38rem;
    font-size: 0.68rem;
  }

  .topbar,
  .section-head,
  .queue-meta,
  .queue-side,
  .library-head,
  .file-actions,
  .update-card-head,
  .support-license-card-actions,
  .modal-footer,
  .support-import-tools,
  .support-import-form,
  .update-links,
  .permission-item,
  .update-history-item {
    flex-direction: column;
    align-items: stretch;
  }

  .account-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .account-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .library-tools,
  .support-license-search-tools {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .archive-card {
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .archive-header {
    gap: 0.65rem;
  }

  .archive-title-group {
    align-items: flex-start;
  }

  .archive-count {
    text-align: right;
  }

  .archive-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    flex-basis: 100%;
  }

  .archive-toolbar .search-box,
  .archive-toolbar .search-box:first-child,
  .archive-toolbar .folder-filter-box,
  .archive-toolbar .page-size-control {
    flex: none;
    min-width: 0;
  }

  .archive-folder-action,
  .create-folder-panel,
  .create-folder-form {
    width: 100%;
  }

  .archive-folder-action {
    justify-content: flex-start;
    margin-inline-start: 0;
  }

  .create-folder-toggle,
  .create-folder-submit,
  .create-folder-cancel {
    width: auto;
  }

  .archive-type-tabs {
    gap: 0.4rem;
  }

  .archive-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .archive-type-card {
    min-height: 3.1rem;
    padding-inline: 0.65rem;
  }

  .archive-panel-title-group {
    align-items: flex-start;
  }

  .archive-panel-icon {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 0.95rem;
  }

  .search-box {
    min-width: 0;
  }

  .page-size-control span {
    position: static;
    display: block;
    margin-bottom: 0.28rem;
  }

  .upload-card-header {
    align-items: stretch;
  }

  .upload-panel-header {
    align-items: stretch;
  }

  .upload-title-group {
    flex-basis: 100%;
  }

  .upload-folder-select-group {
    flex-basis: 100%;
    width: 100%;
  }

  .upload-dropzone-preview {
    min-height: 7rem;
    padding: 1rem;
  }

  .upload-dropzone {
    min-height: 8.8rem;
  }

  .upload-floating-file-icon {
    width: 2.45rem;
    height: 2.45rem;
  }

  .upload-floating-file-icon-video,
  .upload-floating-file-icon-doc {
    right: 1rem;
  }

  .upload-floating-file-icon-image,
  .upload-floating-file-icon-zip {
    left: 1rem;
  }

  .upload-panel-footer {
    align-items: stretch;
  }

  .upload-start-button {
    width: 100%;
  }

  .upload-queue-table-shell {
    overflow-x: auto;
  }

  .pagination-bar,
  .pagination-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ghost-button,
  .primary-button {
    width: 100%;
  }

  .create-folder-toggle,
  .create-folder-submit,
  .create-folder-cancel {
    width: auto;
  }
}

.file-list-shell .ghost-button,
.support-list-shell .ghost-button,
.update-list-shell .ghost-button {
  width: auto;
}

.file-list-shell .file-actions,
.support-list-shell .support-license-card-actions,
.update-list-shell .update-release-actions {
  flex-direction: row;
  align-items: center;
}

.release-panel {
  direction: rtl;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    radial-gradient(circle at 90% 16%, rgba(45, 212, 199, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(12, 31, 47, 0.92), rgba(8, 20, 32, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 42px rgba(0, 0, 0, 0.26);
}

.release-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.release-title-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: right;
  min-width: 0;
}

.release-panel-icon,
.release-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #26d6e3;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.release-panel-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1.15rem;
}

.release-panel-icon svg,
.release-modal-icon svg,
.update-release-file-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.release-panel-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.35;
  color: var(--text);
}

.release-panel-subtitle {
  max-width: 48rem;
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.9;
  color: var(--muted);
}

.release-new-button {
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #fb923c);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.2);
}

.release-list-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}

.release-state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
  font-weight: 800;
}

.release-table-shell {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border-radius: 1.15rem;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 30px rgba(0, 0, 0, 0.18);
}

.release-panel .update-list-head {
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.release-panel .update-list-head span,
.release-panel .update-release-cell {
  padding: 0.8rem 0.9rem;
}

.release-panel .update-release-row {
  min-height: 4rem;
}

.release-panel .update-app-cell strong {
  font-size: 0.92rem;
  font-weight: 900;
}

.release-panel .update-current-version {
  min-height: 1.85rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  font-weight: 900;
}

.release-panel .update-file-cell {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.update-release-file-icon {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.11);
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.update-release-file-text {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.release-panel .update-release-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
  font-weight: 900;
}

.release-panel .update-release-file-size {
  font-size: 0.76rem;
  white-space: nowrap;
}

.update-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.update-status-badge.is-required {
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: #fdba74;
}

.update-status-badge.is-optional {
  background: rgba(45, 212, 199, 0.12);
  border: 1px solid rgba(45, 212, 199, 0.22);
  color: #5eead4;
}

.release-panel .update-release-actions {
  justify-content: center;
  gap: 0.38rem;
  flex-wrap: nowrap;
  position: relative;
  overflow: visible;
}

.release-action-button {
  min-height: 2.15rem;
  padding: 0 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.release-delete-button {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

.release-action-menu {
  z-index: 90;
}

.release-action-menu-button {
  min-width: 2.15rem;
  width: 2.15rem;
  height: 2.15rem;
  min-height: 2.15rem;
  padding: 0 !important;
  letter-spacing: 0;
  font-weight: 900;
}

.release-action-dropdown {
  inset-inline-start: 0;
  z-index: 120;
  min-width: 9rem;
  display: grid;
  gap: 0.35rem;
}

.release-menu-action {
  width: 100%;
  min-height: 2.15rem;
  justify-content: center;
  border-radius: 0.72rem;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.release-menu-action.release-delete-button {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

.release-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.release-modal {
  direction: rtl;
  width: min(42.5rem, calc(100vw - 3rem));
  max-height: calc(100dvh - 3rem);
  min-height: 0;
  padding: 0;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  text-align: start;
  background:
    radial-gradient(circle at 88% 14%, rgba(45, 212, 199, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(12, 31, 47, 0.96), rgba(8, 20, 32, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 80px rgba(0, 0, 0, 0.46);
}

.release-modal-header {
  flex: 0 0 auto;
  margin: 0;
  padding: 1.5rem 1.5rem 1rem;
}

.release-modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-inline-start: 3rem;
  text-align: right;
}

.release-modal-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.9rem;
}

.release-modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.3;
}

.release-modal-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.release-modal-close {
  position: absolute;
  inset-block-start: 1.1rem;
  inset-inline-start: 1.1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.release-modal-form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.release-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 1.5rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.release-field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.release-field-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: right;
}

.release-modal .form-field input,
.release-modal .form-field textarea,
.release-file-button {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 26px rgba(0, 0, 0, 0.18);
}

.release-modal .form-field input {
  min-height: 2.75rem;
  padding: 0 0.9rem;
}

.release-modal .form-field textarea {
  min-height: 7.25rem;
  padding: 0.85rem;
  resize: vertical;
}

.release-modal .form-field input:focus,
.release-modal .form-field textarea:focus,
.release-file-button:focus {
  outline: none;
  border-color: rgba(45, 212, 199, 0.72);
  box-shadow:
    0 0 0 4px rgba(45, 212, 199, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.release-file-picker {
  border-radius: 1rem;
}

.release-file-button {
  min-height: 4.85rem;
  padding: 0.85rem;
  border-style: dashed;
  border-color: rgba(45, 212, 199, 0.45);
}

.release-checkbox-row {
  min-height: 2.25rem;
  justify-content: flex-start;
  font-weight: 800;
}

.release-modal-footer {
  flex: 0 0 auto;
  margin: 0;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.release-submit-button,
.release-cancel-button {
  border-radius: 0.9rem;
  font-weight: 900;
}

.release-submit-button {
  min-width: 10rem;
  min-height: 2.85rem;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.22);
}

.release-cancel-button {
  min-width: 6.25rem;
  min-height: 2.65rem;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

body[data-theme="light"] .release-panel {
  border-color: rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(circle at 90% 16%, rgba(45, 212, 199, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 255, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 42px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .release-panel-icon,
body[data-theme="light"] .release-modal-icon,
body[data-theme="light"] .release-table-shell,
body[data-theme="light"] .release-state-pill,
body[data-theme="light"] .release-action-button {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 22px rgba(15, 23, 42, 0.06);
}

body[data-theme="light"] .release-panel .update-list-head {
  background: rgba(241, 247, 251, 0.74);
}

body[data-theme="light"] .update-status-badge.is-required {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.24);
  color: #c2410c;
}

body[data-theme="light"] .update-status-badge.is-optional {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.2);
  color: #0f766e;
}

body[data-theme="light"] .release-delete-button {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.18);
}

body[data-theme="light"] .release-menu-action.release-delete-button {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.18);
}

body[data-theme="light"] .release-modal-overlay {
  background: rgba(15, 23, 42, 0.22);
}

body[data-theme="light"] .release-modal {
  border-color: rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(circle at 88% 14%, rgba(45, 212, 199, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 24px 70px rgba(15, 23, 42, 0.22);
}

body[data-theme="light"] .release-modal-close,
body[data-theme="light"] .release-modal .form-field input,
body[data-theme="light"] .release-modal .form-field textarea,
body[data-theme="light"] .release-file-button,
body[data-theme="light"] .release-cancel-button {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(148, 163, 184, 0.24);
  color: #152232;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(15, 23, 42, 0.06);
}

body[data-theme="light"] .release-modal-footer {
  border-top-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="light"] .release-new-button,
body[data-theme="light"] .release-submit-button {
  color: #fff;
}

@media (max-width: 900px) {
  .release-panel-header {
    align-items: stretch;
  }

  .release-new-button {
    width: 100%;
  }

  .release-table-shell {
    overflow-x: auto;
  }

  .release-panel .update-list-head,
  .release-panel .update-release-row {
    min-width: 53.75rem;
  }
}

.archive-table-shell,
.release-table-shell {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

.archive-table-shell .file-grid,
.release-table-shell .updates-grid {
  width: max-content;
  min-width: 100%;
}

.archive-table-shell .file-list-head,
.archive-table-shell .file-row {
  display: grid;
  grid-template-columns: 3rem minmax(18rem, 1.6fr) minmax(7rem, 0.5fr) minmax(10rem, 0.7fr) minmax(11rem, 0.75fr) minmax(24rem, 1.65fr);
  min-width: 76rem;
}

.release-table-shell .update-list-head,
.release-table-shell .update-release-row {
  display: grid;
  grid-template-columns: 3rem minmax(14rem, 1fr) minmax(9rem, 0.58fr) minmax(18rem, 1.15fr) minmax(12rem, 0.72fr) minmax(8rem, 0.48fr) minmax(18rem, 1.1fr);
  min-width: 82rem;
}

@media (max-width: 1080px) {
  .archive-table-shell .file-grid,
  .release-table-shell .updates-grid {
    grid-template-columns: none;
  }
}

@media (max-width: 720px) {
  .release-modal-overlay {
    align-items: flex-start;
    padding: 0.75rem;
    overflow: hidden;
  }

  .release-modal {
    width: 100%;
    max-height: calc(100dvh - 1.5rem);
    border-radius: 1.25rem;
  }

  .release-modal-header {
    padding: 1.25rem 1.1rem 0.9rem;
  }

  .release-modal-title-group {
    align-items: flex-start;
    padding-inline-start: 2.6rem;
  }

  .release-modal-title {
    font-size: 1.3rem;
  }

  .release-modal-body {
    padding: 0 1.1rem 1rem;
    gap: 0.75rem;
  }

  .release-modal-footer {
    padding: 0.85rem 1.1rem 1.1rem;
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .release-submit-button,
  .release-cancel-button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .release-panel {
    padding: 1.1rem;
    border-radius: 1.25rem;
  }

  .release-title-group {
    align-items: flex-start;
  }

  .release-panel-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
  }

  .release-panel-title {
    font-size: 1.35rem;
  }

  .release-panel-subtitle {
    font-size: 0.78rem;
  }
}

.release-modal .form-field input {
  min-height: 2.75rem;
}

@media (max-height: 760px) and (min-width: 721px) {
  .release-modal-overlay {
    align-items: center;
    padding: 0.75rem 1.5rem;
  }

  .release-modal {
    max-height: calc(100dvh - 1.5rem);
  }

  .release-modal-header {
    padding: 1rem 1.5rem 0.65rem;
  }

  .release-modal-body {
    padding: 0 1.5rem 0.75rem;
    gap: 0.62rem;
  }

  .release-modal .form-field input {
    min-height: 2.5rem;
  }

  .release-file-button {
    min-height: 3.75rem;
    padding: 0.62rem 0.85rem;
  }

  .release-modal .form-field textarea {
    min-height: 5.1rem;
  }

  .release-modal-footer {
    padding: 0.75rem 1.5rem 0.85rem;
  }
}

@media (max-width: 1180px) {
  .dashboard-header {
    min-height: auto;
    max-height: none;
    align-items: stretch;
    flex-direction: column-reverse;
    padding: 1.1rem;
  }

  .header-brand-area,
  .header-actions-area {
    width: 100%;
    justify-content: space-between;
  }

  .header-title {
    white-space: normal;
    font-size: 1.5rem;
  }

  .header-modules {
    flex-wrap: wrap;
  }

  .hero.hero-stats-only .hero-metrics,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .dashboard-header {
    padding: 0.95rem;
    border-radius: var(--radius-lg);
    gap: 0.95rem;
  }

  .header-brand-area {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .header-main-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
  }

  .header-main-icon-grid {
    grid-template-columns: repeat(2, 0.82rem);
    grid-template-rows: repeat(2, 0.82rem);
    gap: 0.28rem;
  }

  .header-title-area {
    gap: 0.65rem;
  }

  .header-title {
    font-size: 1.22rem;
  }

  .header-module-card {
    min-width: 6.1rem;
    height: 4rem;
    padding: 0.5rem 0.6rem;
  }

  .header-actions-area {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .header-account-card {
    width: 100%;
    min-width: 0;
  }

  .header-divider {
    display: none;
  }

  .account-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .header-action-button {
    width: 100%;
    height: 4rem;
  }

  .hero.hero-stats-only .hero-metrics,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 7.5rem;
    padding: 1rem;
  }

  .stat-icon {
    width: 3.8rem;
    height: 3.8rem;
  }

  .stat-sparkline {
    left: 1.15rem;
    width: 6.8rem;
  }
}

/*
 * Customer validity wizard scroll isolation
 *
 * This block intentionally lives after the shared action-modal rules. The
 * wizard owns a single scroll container (.customer-validity-modal-body);
 * allowing the overlay or card to scroll as well makes focused controls move
 * the whole dialog to its end.
 */
#support-license-modal.customer-validity-modal-overlay {
  display: flex;
  overflow: hidden;
  z-index: 1000;
}

#support-license-modal .customer-validity-modal {
  width: min(54rem, calc(100vw - 3rem));
  max-height: calc(100dvh - 3rem);
  overflow: hidden;
}

#support-license-modal .customer-validity-modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  overflow-anchor: none;
}

#support-license-modal .customer-toggle-card,
#support-license-modal .module-select-card {
  position: relative;
}

#support-license-modal .customer-toggle-card input,
#support-license-modal .module-select-card input {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: 50%;
  inline-size: 1px;
  block-size: 1px;
  margin: 0;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  #support-license-modal.customer-validity-modal-overlay {
    align-items: flex-start;
    padding: 0.75rem;
  }

  #support-license-modal .customer-validity-modal {
    width: 100%;
    max-height: calc(100dvh - 1.5rem);
  }
}
