@font-face {
  font-family: "Noto Sans SC";
  src: url("/assets/fonts/NotoSansSC-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #172a4a;
  --ink-soft: #52617a;
  --muted: #74839d;
  --blue: #2868f5;
  --blue-deep: #174bcf;
  --cyan: #20b8ca;
  --cyan-soft: #e9fbfd;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --line: rgba(194, 210, 232, 0.82);
  --soft: #edf4ff;
  --danger: #ea4c60;
  --success: #17a783;
  --warning: #db8a22;
  --shadow: 0 22px 70px rgba(36, 76, 137, 0.12);
  --blue-shadow: 0 16px 38px rgba(36, 100, 242, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.98), transparent 31rem),
    radial-gradient(circle at 82% 7%, rgba(72, 207, 220, 0.16), transparent 28rem),
    linear-gradient(135deg, #f8fbff 0%, #e9f4ff 54%, #f7fbff 100%);
}

button,
input {
  font: inherit;
}

button,
a,
summary,
label[for] {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

.kicker,
.section-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.form-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #d83d53;
  font-size: 13px;
  line-height: 1.45;
}

.form-success {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--success);
  font-size: 13px;
  line-height: 1.45;
}

/* Login */

.login-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.72fr);
  gap: clamp(30px, 5vw, 80px);
  padding: clamp(28px, 4.3vw, 68px);
  overflow: hidden;
  isolation: isolate;
}

.login-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.login-atmosphere::before,
.login-atmosphere::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  transform: rotate(-11deg);
}

.login-atmosphere::before {
  width: 77vw;
  height: 28vw;
  left: -22vw;
  top: 14vh;
}

.login-atmosphere::after {
  width: 66vw;
  height: 23vw;
  left: 20vw;
  top: 3vh;
  opacity: 0.68;
}

.login-atmosphere i {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.login-atmosphere i:nth-child(1) {
  width: 10px;
  height: 10px;
  left: 9%;
  top: 18%;
  background: rgba(36, 100, 242, 0.35);
  box-shadow: 0 0 28px rgba(36, 100, 242, 0.55);
}

.login-atmosphere i:nth-child(2) {
  width: 7px;
  height: 7px;
  left: 47%;
  bottom: 16%;
  background: rgba(32, 184, 202, 0.52);
  box-shadow: 0 0 24px rgba(32, 184, 202, 0.7);
}

.login-atmosphere i:nth-child(3) {
  width: 12px;
  height: 12px;
  right: 8%;
  top: 12%;
  background: rgba(36, 100, 242, 0.22);
  box-shadow: 0 0 34px rgba(36, 100, 242, 0.45);
}

.login-story {
  min-width: 0;
  display: flex;
  flex-direction: column;
  animation: rise-in 0.65s ease both;
}

.login-brand {
  display: block;
  width: clamp(230px, 29vw, 440px);
  height: auto;
  object-fit: contain;
}

.login-copy {
  max-width: 720px;
  margin: clamp(76px, 12vh, 150px) 0 0 clamp(0px, 5vw, 82px);
}

.login-copy h1 {
  margin: 14px 0 22px;
  color: #152a4d;
  font-size: clamp(42px, 5vw, 74px);
  font-weight: 830;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.login-copy > p:last-child {
  max-width: 620px;
  margin: 0;
  color: #5f708d;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.85;
}

.login-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  animation: rise-in 0.7s 0.08s ease both;
}

.login-card {
  width: min(100%, 540px);
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 90px rgba(36, 76, 137, 0.18);
  backdrop-filter: blur(26px);
}

.login-card-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 34px rgba(36, 100, 242, 0.25);
}

.login-card-mark svg {
  width: 35px;
  height: 35px;
}

.login-card-heading {
  text-align: center;
}

.login-card-heading p {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.login-card-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 2.3vw, 34px);
  line-height: 1.3;
}

.login-card-heading span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.login-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  margin-top: 34px;
  padding: 0 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(42, 81, 138, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.login-field:focus-within {
  border-color: rgba(36, 100, 242, 0.48);
  box-shadow: 0 8px 22px rgba(42, 81, 138, 0.08);
}

.login-field > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #8190a8;
}

.login-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #263a5d;
  background: transparent;
  font-size: 16px;
}

.login-field input::placeholder {
  color: #98a5b8;
}

.field-action {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 0;
  border-radius: 10px;
  color: #72819a;
  background: transparent;
}

.field-action:hover {
  color: var(--blue);
  background: rgba(36, 100, 242, 0.08);
}

.field-action svg {
  width: 21px;
  height: 21px;
}

.login-button,
.primary-action,
.download-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep) 48%, var(--cyan));
  box-shadow: var(--blue-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-button:hover,
.primary-action:hover:not(:disabled),
.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(36, 100, 242, 0.31);
  filter: saturate(1.06);
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 62px;
  margin-top: 18px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
}

.login-button svg {
  width: 23px;
  height: 23px;
  transition: transform 0.2s ease;
}

.login-button:hover svg {
  transform: translateX(4px);
}

.login-policy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: #8b98ab;
  font-size: 13px;
}

.login-policy svg {
  width: 19px;
  height: 19px;
  color: var(--success);
}

/* Workspace */

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
}

.app-sidebar,
.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.app-sidebar {
  position: sticky;
  top: 22px;
  height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  border-radius: 22px;
}

.sidebar-brand {
  display: block;
  padding: 4px 6px 22px;
  border-bottom: 1px solid rgba(124, 139, 166, 0.18);
  color: inherit;
  text-decoration: none;
}

.sidebar-brand img {
  display: block;
  width: 112%;
  max-width: none;
  height: auto;
  margin-left: -6%;
}

.sidebar-brand span {
  display: block;
  margin-top: 11px;
  color: #667692;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  color: #586984;
  text-decoration: none;
  font-weight: 750;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(36, 100, 242, 0.21);
  transform: translateX(2px);
}

.sidebar-nav svg,
.logout-button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

.sidebar-foot {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.service-health {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(23, 167, 131, 0.14);
  border-radius: 13px;
  background: rgba(23, 167, 131, 0.06);
}

.service-health > i,
.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #20bd91;
  box-shadow: 0 0 0 5px rgba(32, 189, 145, 0.12);
  animation: pulse 2.1s ease-in-out infinite;
}

.service-health strong,
.service-health small {
  display: block;
}

.service-health strong {
  color: #2c5a55;
  font-size: 13px;
}

.service-health small {
  margin-top: 2px;
  color: #72908b;
  font-size: 11px;
}

.logout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #697993;
  background: rgba(255, 255, 255, 0.58);
  font-weight: 720;
}

.logout-button:hover {
  color: #d83d53;
  border-color: rgba(234, 76, 96, 0.3);
  background: rgba(234, 76, 96, 0.06);
}

.app-main {
  min-width: 0;
  min-height: calc(100vh - 44px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 18px;
  animation: rise-in 0.55s ease both;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 4px 2px;
}

.app-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.15;
}

.app-header > div:first-child > span {
  display: block;
  margin-top: 7px;
  color: #667692;
  line-height: 1.6;
}

.app-page {
  min-width: 0;
}

.upload-page {
  width: 100%;
  align-self: start;
}

.upload-page .upload-card {
  height: auto;
}

.tasks-page {
  width: min(100%, 1320px);
  height: 100%;
  min-height: 0;
  justify-self: center;
}

.app-shell.tasks-active .app-header {
  width: min(100%, 1320px);
  justify-self: center;
}

.ledger-page {
  width: min(100%, 1320px);
  align-self: start;
  justify-self: center;
}

.app-shell.ledger-active .app-header {
  width: min(100%, 1320px);
  justify-self: center;
}

.ledger-card {
  min-height: min(650px, calc(100vh - 210px));
}

.ledger-heading {
  align-items: flex-start;
}

.ledger-heading h2 { margin: 0; }

.ledger-heading span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.ledger-table-wrap { overflow-x: auto; }

.ledger-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-size: 13px;
}

.ledger-table th {
  padding: 0 12px 5px;
  color: #8492a8;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.ledger-table td {
  padding: 12px;
  color: #405574;
  background: rgba(246, 250, 255, 0.82);
  border-top: 1px solid rgba(202, 215, 235, 0.8);
  border-bottom: 1px solid rgba(202, 215, 235, 0.8);
}

.ledger-table td:first-child { border-left: 1px solid rgba(202, 215, 235, 0.8); border-radius: 11px 0 0 11px; }
.ledger-table td:last-child { border-right: 1px solid rgba(202, 215, 235, 0.8); border-radius: 0 11px 11px 0; }
.ledger-empty { height: 230px; text-align: center; color: var(--muted) !important; }
.ledger-type { display: inline-block; padding: 4px 8px; border-radius: 999px; color: var(--blue); background: rgba(40, 104, 245, 0.09); font-size: 11px; font-weight: 800; }
.ledger-type.task-consume { color: #087a74; background: rgba(23, 167, 131, 0.12); }
.ledger-type.task-release, .ledger-type.upload-timeout-release { color: #a46b13; background: rgba(219, 138, 34, 0.12); }
.ledger-delta { font-weight: 850; white-space: nowrap; }
.ledger-delta.positive { color: var(--success); }
.ledger-delta.negative { color: var(--blue-deep); }
.ledger-reference strong, .ledger-reference small { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger-reference strong { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.ledger-reference small { margin-top: 3px; color: var(--muted); }

.task-workspace {
  display: grid;
  grid-template-columns: minmax(350px, 0.76fr) minmax(520px, 1.24fr);
  gap: 18px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.task-workspace .task-list-card,
.task-workspace .job-card {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.task-workspace .section-heading {
  margin-bottom: 16px;
}

.task-workspace .task-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.task-workspace .task-row-stat {
  display: none;
}

.task-workspace .idle-status {
  min-height: 0;
  flex: 1;
  text-align: center;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 176px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 30px rgba(42, 81, 138, 0.07);
}

.header-status strong,
.header-status small {
  display: block;
}

.header-status strong {
  color: #3a4f70;
  font-size: 13px;
}

.header-status small {
  margin-top: 1px;
  color: var(--success);
  font-size: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.glass-card {
  border-radius: 22px;
  padding: 24px;
}

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

.section-heading h2,
.workflow-card h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.3;
}

.section-heading > div > span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
}

.section-heading > div > .upload-warning {
  color: #f50000;
}

.upload-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.parameter-settings-button,
.parameter-unlock-form button svg,
.parameter-editor-footer button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.parameter-settings-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(36, 100, 242, 0.22);
  border-radius: 50%;
  color: var(--blue);
  background: rgba(36, 100, 242, 0.07);
  cursor: pointer;
}

.parameter-settings-button:hover,
.parameter-settings-button:focus-visible {
  border-color: var(--blue);
  background: rgba(36, 100, 242, 0.14);
}

.limit-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(36, 100, 242, 0.09);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.limit-pill svg {
  width: 18px;
  height: 18px;
}

.accessory-profile-selector {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(32, 184, 202, 0.36);
  border-radius: 18px;
  background:
    linear-gradient(118deg, rgba(232, 251, 253, 0.95), rgba(241, 247, 255, 0.88)),
    rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9), 0 12px 30px rgba(33, 125, 169, 0.08);
}

.accessory-profile-selector legend {
  padding: 0;
  color: #244463;
  font-size: 17px;
  font-weight: 850;
}

.accessory-profile-selector legend .section-kicker {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
}

.accessory-profile-selector > p {
  margin: 5px 0 13px;
  color: #627893;
  font-size: 12px;
  line-height: 1.55;
}

.accessory-profile-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.accessory-profile-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid rgba(177, 202, 225, 0.86);
  border-radius: 13px;
  color: #45607c;
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.accessory-profile-option:hover {
  transform: translateY(-1px);
  border-color: rgba(40, 104, 245, 0.52);
  box-shadow: 0 9px 20px rgba(40, 104, 245, 0.1);
}

.accessory-profile-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.accessory-profile-indicator {
  width: 18px;
  height: 18px;
  border: 2px solid #9cb2ca;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff;
}

.accessory-profile-option strong,
.accessory-profile-option small {
  display: block;
}

.accessory-profile-option strong {
  color: #274362;
  font-size: 15px;
}

.accessory-profile-option small {
  margin-top: 3px;
  color: #6f849c;
  font-size: 12px;
  line-height: 1.4;
}

.accessory-profile-option:has(input:checked) {
  border-color: var(--blue);
  background: linear-gradient(135deg, rgba(230, 239, 255, 0.98), rgba(246, 252, 255, 0.98));
  box-shadow: 0 10px 22px rgba(40, 104, 245, 0.14);
}

.accessory-profile-option:has(input:checked) .accessory-profile-indicator {
  border-color: var(--blue);
  background: var(--blue);
}

.accessory-profile-option-zhisu {
  border: 2px solid #159e9b;
  background:
    linear-gradient(135deg, rgba(222, 250, 247, 0.98), rgba(237, 249, 255, 0.98));
  box-shadow: 0 10px 24px rgba(18, 153, 149, 0.14);
}

.accessory-profile-option-zhisu:has(input:checked) {
  border-color: #087a74;
  background: linear-gradient(135deg, rgba(203, 247, 241, 0.99), rgba(229, 247, 255, 0.99));
  box-shadow: 0 12px 28px rgba(8, 122, 116, 0.22);
}

.accessory-profile-option-zhisu:has(input:checked) .accessory-profile-indicator {
  border-color: #129995;
  background: #129995;
}

.accessory-profile-option em {
  position: absolute;
  top: 8px;
  right: 9px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #087a74;
  background: rgba(29, 179, 165, 0.13);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.accessory-profile-option input:focus-visible + .accessory-profile-indicator {
  outline: 3px solid rgba(40, 104, 245, 0.3);
  outline-offset: 3px;
}

.accessory-profile-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.64;
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 30px;
  border: 1px dashed rgba(36, 100, 242, 0.46);
  border-radius: 18px;
  color: #52617a;
  background:
    radial-gradient(circle at center, rgba(36, 100, 242, 0.075), transparent 64%),
    rgba(255, 255, 255, 0.56);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: rgba(36, 100, 242, 0.82);
  background:
    radial-gradient(circle at center, rgba(36, 100, 242, 0.11), transparent 66%),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 44px rgba(36, 100, 242, 0.13);
  transform: translateY(-2px);
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 34px rgba(36, 100, 242, 0.24);
}

.drop-icon svg {
  width: 34px;
  height: 34px;
}

.drop-zone > strong {
  color: var(--ink);
  font-size: 20px;
}

.drop-zone > span:not(.drop-icon) {
  margin-top: 8px;
  color: var(--muted);
}

.drop-zone > em {
  margin-top: 9px;
  color: #9aa6ba;
  font-size: 13px;
  font-style: normal;
}

.pending-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.algorithm-profile {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(32, 184, 202, 0.27);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(233, 251, 253, 0.82), rgba(255, 255, 255, 0.72));
}

.algorithm-profile-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.algorithm-profile-heading h3 {
  margin: 4px 0;
  color: #234263;
  font-size: 17px;
}

.algorithm-profile-heading span {
  color: var(--muted);
  font-size: 12px;
}

.algorithm-profile-heading > strong {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #087a8d;
  background: rgba(32, 184, 202, 0.13);
  font-size: 12px;
}

.algorithm-profile-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.parameter-unlock-button,
.parameter-lock-button,
.parameter-unlock-form button,
.parameter-editor-footer button {
  border: 0;
  border-radius: 9px;
  padding: 8px 11px;
  color: #fff;
  background: #1d79d5;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.parameter-lock-button {
  color: #244463;
  background: rgba(36, 68, 99, 0.09);
}

.parameter-unlock-button:disabled,
.parameter-unlock-form button:disabled,
.parameter-editor-footer button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.parameter-unlock-form {
  display: grid;
  grid-template-columns: minmax(180px, 280px) auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 11px;
  border: 1px solid rgba(43, 118, 213, 0.22);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.7);
  color: #45627f;
  font-size: 12px;
  font-weight: 750;
}

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

.parameter-unlock-form input,
.parameter-number input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(132, 166, 197, 0.62);
  border-radius: 8px;
  padding: 7px 8px;
  outline: none;
  color: #244463;
  background: #fff;
  font: inherit;
}

.parameter-unlock-form input:focus,
.parameter-number input:focus {
  border-color: #1d79d5;
  box-shadow: 0 0 0 3px rgba(29, 121, 213, 0.13);
}

.parameter-number input {
  padding: 4px 6px;
  font-size: 13px;
}

.algorithm-profile-summary {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 4px;
  overflow-x: auto;
  color: var(--muted);
  font-size: 13px;
}

.parameter-group {
  --group-accent: #168397;
  --group-border: rgba(149, 213, 226, 0.56);
  --group-surface-start: rgba(234, 251, 253, 0.8);
  --group-surface-end: rgba(255, 255, 255, 0.62);
  --group-field-border: rgba(183, 216, 229, 0.74);
  --group-field-surface: rgba(255, 255, 255, 0.64);
  box-sizing: border-box;
  width: 204px;
  min-width: 204px;
  flex: 0 0 204px;
  padding: 8px;
  border: 1px solid var(--group-border);
  border-radius: 12px;
  background: linear-gradient(120deg, var(--group-surface-start), var(--group-surface-end));
}

.parameter-group--mold {
  --group-accent: #2b71b5;
  --group-border: rgba(72, 151, 219, 0.58);
  --group-surface-start: rgba(230, 243, 255, 0.9);
  --group-surface-end: rgba(251, 254, 255, 0.72);
  --group-field-border: rgba(143, 193, 232, 0.68);
  --group-field-surface: rgba(248, 252, 255, 0.86);
}

.parameter-group--fit {
  --group-accent: #7053ae;
  --group-border: rgba(151, 121, 207, 0.56);
  --group-surface-start: rgba(244, 237, 255, 0.9);
  --group-surface-end: rgba(254, 252, 255, 0.72);
  --group-field-border: rgba(190, 169, 229, 0.68);
  --group-field-surface: rgba(253, 250, 255, 0.88);
}

.parameter-group--water {
  --group-accent: #087f91;
  --group-border: rgba(66, 181, 193, 0.62);
  --group-surface-start: rgba(224, 249, 250, 0.94);
  --group-surface-end: rgba(250, 255, 255, 0.76);
  --group-field-border: rgba(133, 209, 215, 0.72);
  --group-field-surface: rgba(247, 254, 254, 0.9);
}

.parameter-group--overflow {
  --group-accent: #b66c16;
  --group-border: rgba(224, 159, 74, 0.62);
  --group-surface-start: rgba(255, 246, 226, 0.94);
  --group-surface-end: rgba(255, 253, 248, 0.76);
  --group-field-border: rgba(237, 190, 125, 0.72);
  --group-field-surface: rgba(255, 252, 246, 0.9);
}

.parameter-group--release {
  --group-accent: #b34e5d;
  --group-border: rgba(220, 123, 140, 0.6);
  --group-surface-start: rgba(255, 237, 241, 0.92);
  --group-surface-end: rgba(255, 252, 253, 0.76);
  --group-field-border: rgba(235, 167, 180, 0.72);
  --group-field-surface: rgba(255, 250, 251, 0.9);
}

.parameter-group--rod {
  --group-accent: #177d62;
  --group-border: rgba(72, 170, 137, 0.62);
  --group-surface-start: rgba(230, 249, 240, 0.94);
  --group-surface-end: rgba(251, 255, 253, 0.76);
  --group-field-border: rgba(138, 206, 181, 0.72);
  --group-field-surface: rgba(248, 255, 251, 0.9);
}

.parameter-stack {
  display: grid;
  width: 204px;
  min-width: 204px;
  flex: 0 0 204px;
  align-content: start;
  gap: 8px;
}

.parameter-stack .parameter-group {
  width: 100%;
  min-width: 0;
}

.parameter-group--rod {
  width: 416px;
  min-width: 416px;
  flex-basis: 416px;
}

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

.parameter-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.parameter-group-heading > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
}

.parameter-group-heading strong {
  color: var(--group-accent);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.parameter-group-heading small {
  overflow: hidden;
  color: #7890a5;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parameter-group-heading > span {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--group-accent);
  background: color-mix(in srgb, var(--group-accent) 12%, transparent);
  font-size: 10px;
  font-weight: 800;
}

.parameter-group-toggle {
  flex: 0 0 auto;
  gap: 5px;
}

.parameter-group-toggle b {
  min-width: 24px;
  color: var(--group-accent);
  font-size: 11px;
}

.parameter-group.is-disabled {
  border-color: rgba(177, 191, 204, 0.6);
  background: linear-gradient(120deg, rgba(241, 244, 247, 0.92), rgba(248, 250, 252, 0.76));
}

.parameter-group:not(.is-disabled) .parameter-field:not(.is-derived) {
  border-color: var(--group-field-border);
  background: var(--group-field-surface);
}

.parameter-group:not(.is-disabled) .parameter-field:not(.is-derived) .parameter-number input,
.parameter-group:not(.is-disabled) .parameter-field:not(.is-derived) .parameter-number select {
  border-color: color-mix(in srgb, var(--group-accent) 36%, white);
}

.parameter-group:not(.is-disabled) .parameter-toggle input:checked {
  background: var(--group-accent);
}

.parameter-group.is-disabled .parameter-group-heading strong,
.parameter-group.is-disabled .parameter-group-heading small,
.parameter-group.is-disabled .parameter-group-toggle b {
  color: #8a98a8;
}

.parameter-group.is-disabled .parameter-field {
  border-color: rgba(201, 210, 219, 0.72);
  background: rgba(240, 244, 247, 0.72);
}

.parameter-group.is-disabled .parameter-field > span:first-child,
.parameter-group.is-disabled .parameter-field small,
.parameter-group.is-disabled .parameter-number em {
  color: #9aa7b5;
}

.parameter-group.is-disabled .parameter-number input:disabled,
.parameter-group.is-disabled .parameter-number input[readonly],
.parameter-group.is-disabled .parameter-number select:disabled {
  color: #8d9baa;
  border-color: rgba(186, 198, 209, 0.72);
  background: rgba(226, 232, 237, 0.78);
  cursor: not-allowed;
}

.parameter-group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.algorithm-profile-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(183, 216, 229, 0.74);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.64);
}

.algorithm-profile-summary span {
  color: #6b819a;
  font-size: 11px;
}

.algorithm-profile-summary strong {
  color: #244463;
  font-size: 12px;
  line-height: 1.45;
}

.algorithm-profile-summary small {
  color: #7288a0;
  font-size: 10px;
}

.algorithm-profile-editor {
  margin-top: 10px;
}

.algorithm-profile-editor .algorithm-profile-summary {
  margin-top: 0;
}

.parameter-field {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(183, 216, 229, 0.74);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.64);
}

.parameter-field > span:first-child {
  color: #6b819a;
  font-size: 10px;
}

.parameter-number {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
}

.parameter-number em {
  width: 18px;
  color: #6b819a;
  font-size: 11px;
  font-style: normal;
}

.parameter-field.is-derived {
  border-color: rgba(32, 175, 166, 0.38);
  background: rgba(227, 248, 246, 0.86);
}

.parameter-field.is-derived > span:first-child,
.parameter-field.is-derived .parameter-number em {
  color: #087d78;
}

.parameter-field.is-derived .parameter-number input {
  color: #087d78;
  border-color: rgba(25, 162, 154, 0.48);
  background: rgba(239, 255, 253, 0.92);
  font-weight: 700;
}

.parameter-field small {
  font-size: 9px;
  line-height: 1.25;
}

.parameter-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
}

.parameter-toggle input {
  appearance: none;
  width: 32px;
  height: 18px;
  margin: 0;
  border-radius: 999px;
  background: #b2c1d0;
  cursor: pointer;
}

.parameter-toggle input::after {
  display: block;
  width: 14px;
  height: 14px;
  margin: 2px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 0.16s ease;
}

.parameter-toggle input:checked { background: #1d79d5; }
.parameter-toggle input:checked::after { transform: translateX(14px); }
.parameter-toggle input:disabled { cursor: default; opacity: 0.62; }
.parameter-toggle b { color: #244463; font-size: 12px; }

.parameter-editor-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: #647b94;
  font-size: 12px;
}

.parameter-editor-footer > span { flex: 1 1 auto; }

.parameter-editor-error {
  min-width: 0;
  margin: 0;
  color: #bd3440;
  font-size: 12px;
}

.pending-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.pending-heading h3 {
  margin: 0;
  color: #2a3f61;
  font-size: 17px;
}

.pending-heading p {
  margin: 4px 0 0;
  color: #8290a6;
  font-size: 13px;
}

.file-counter {
  min-width: 58px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--soft);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.selected-files {
  display: grid;
  gap: 9px;
  max-height: 255px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bccbea transparent;
}

.empty-list {
  display: grid;
  align-content: center;
  justify-items: center;
  place-items: center;
  min-height: 94px;
  border: 1px dashed #cdd8e9;
  border-radius: 12px;
  color: #8a98ae;
  text-align: center;
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 13px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(32, 168, 150, 0.16);
  opacity: 0.86;
}

.empty-list span {
  font-weight: 760;
}

.empty-list p {
  margin: 3px 0 0;
  font-size: 12px;
}

.selected-file,
.job-file {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(202, 215, 235, 0.78);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.selected-file:hover,
.job-file:hover {
  border-color: rgba(36, 100, 242, 0.28);
  transform: translateY(-1px);
}

.file-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  color: var(--blue);
  background: rgba(36, 100, 242, 0.09);
  font-size: 11px;
  font-weight: 900;
}

.file-copy {
  min-width: 0;
  flex: 1;
}

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

.file-copy strong {
  color: #314665;
  font-size: 14px;
}

.file-copy small {
  margin-top: 3px;
  color: #8996aa;
  font-size: 12px;
}

/* Quality warnings for one file. The job completed, so these are notes to
   read before printing rather than an error state; they wrap instead of
   truncating because a warning that is cut off cannot be acted on. */
.file-warnings {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.file-warnings li {
  color: #d0342c;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.file-warnings li + li {
  margin-top: 2px;
}

.file-warnings li::before {
  content: "⚠ ";
}

.remove-file,
.item-download {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 9px;
  color: #8592a5;
  background: transparent;
}

.remove-file:hover {
  color: #d83d53;
  background: rgba(234, 76, 96, 0.08);
}

.remove-file svg,
.item-download svg {
  width: 18px;
  height: 18px;
}

.server-parameter-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  min-height: 70px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(36, 100, 242, 0.06), rgba(32, 184, 202, 0.06)),
    rgba(255, 255, 255, 0.62);
}

.server-parameter-note strong,
.server-parameter-note small {
  display: block;
}

.server-parameter-note strong {
  color: #314665;
}

.server-parameter-note small {
  margin-top: 3px;
  color: #8996aa;
  font-size: 12px;
}

.server-parameter-note em {
  padding: 5px 8px;
  border-radius: 8px;
  color: #168da0;
  background: rgba(32, 184, 202, 0.1);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.advanced-settings {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.advanced-settings summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 70px;
  padding: 12px 16px;
  list-style: none;
  cursor: pointer;
}

.advanced-settings summary::-webkit-details-marker {
  display: none;
}

.settings-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--blue);
  background: rgba(36, 100, 242, 0.09);
}

.settings-icon svg {
  width: 23px;
  height: 23px;
}

.advanced-settings summary strong,
.advanced-settings summary small {
  display: block;
}

.advanced-settings summary strong {
  color: #314665;
}

.advanced-settings summary small {
  margin-top: 3px;
  color: #8996aa;
  font-size: 12px;
}

.advanced-settings .chevron {
  width: 20px;
  height: 20px;
  color: #7d8ba1;
  transition: transform 0.2s ease;
}

.advanced-settings[open] .chevron {
  transform: rotate(180deg);
}

.parameter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 16px 16px;
  border-top: 1px solid rgba(202, 215, 235, 0.7);
}

.parameter-grid > label:not(.switch-row) {
  display: grid;
  gap: 7px;
}

.parameter-grid label > span {
  color: #667692;
  font-size: 12px;
  font-weight: 720;
}

.parameter-grid label > span b {
  color: #a0aabd;
  font-weight: 600;
}

.parameter-grid input[type="number"] {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid #d6e0ee;
  border-radius: 10px;
  outline: 0;
  color: #2c4263;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.parameter-grid input[type="number"]:focus {
  border-color: rgba(36, 100, 242, 0.58);
  box-shadow: 0 0 0 3px rgba(36, 100, 242, 0.09);
}

.switch-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid #d6e0ee;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}

.switch-row span strong,
.switch-row span small {
  display: block;
}

.switch-row span strong {
  color: #415575;
  font-size: 13px;
}

.switch-row span small {
  margin-top: 2px;
  color: #929eb1;
  font-size: 11px;
}

.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-row > i {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
  border-radius: 999px;
  background: #c8d2e1;
  transition: background 0.2s ease;
}

.switch-row > i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(38, 58, 91, 0.22);
  transition: transform 0.2s ease;
}

.switch-row input:checked + i {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.switch-row input:checked + i::after {
  transform: translateX(20px);
}

.upload-actions {
  margin-top: 18px;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  min-height: 62px;
  border-radius: 14px;
  font-weight: 800;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
  filter: grayscale(0.15);
}

.primary-action > svg {
  width: 25px;
  height: 25px;
  transition: transform 0.2s ease;
}

.primary-action:hover:not(:disabled) > svg {
  transform: translateX(4px);
}

.primary-action > span {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
}

.primary-action small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.side-stack {
  display: grid;
  gap: 22px;
}

.workflow-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(32, 184, 202, 0.14), transparent 15rem),
    var(--surface);
}

.workflow-mark,
.policy-icon {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 30px rgba(36, 100, 242, 0.23);
}

.workflow-mark {
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 17px;
}

.workflow-mark svg {
  width: 32px;
  height: 32px;
}

.workflow-card h2 {
  margin-top: 6px;
}

.workflow-card ol {
  position: relative;
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-card ol::before {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 17px;
  width: 1px;
  background: linear-gradient(var(--blue), var(--cyan));
  opacity: 0.28;
}

.workflow-card li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 0;
}

.workflow-card li > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border: 4px solid #f6faff;
  border-radius: 50%;
  color: var(--blue);
  background: #e8f0ff;
  font-size: 10px;
  font-weight: 900;
}

.workflow-card li:nth-child(2) > span {
  color: #178ca5;
  background: #e4f8fa;
}

.workflow-card li:nth-child(3) > span {
  color: #148d70;
  background: #e7f8f2;
}

.workflow-card li strong,
.workflow-card li small {
  display: block;
}

.workflow-card li strong {
  color: #3b4f6f;
  font-size: 14px;
}

.workflow-card li small {
  margin-top: 3px;
  color: #8a97aa;
  font-size: 11px;
}

.policy-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(36, 100, 242, 0.07), rgba(32, 184, 202, 0.08)),
    var(--surface);
}

.policy-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
}

.policy-icon svg {
  width: 25px;
  height: 25px;
}

.policy-card strong {
  color: #324767;
}

.policy-card p {
  margin: 6px 0 0;
  color: #74839d;
  font-size: 13px;
  line-height: 1.65;
}

.job-card {
  scroll-margin-top: 22px;
}

.job-heading {
  align-items: center;
}

.job-code {
  padding: 7px 11px;
  border: 1px solid rgba(36, 100, 242, 0.18);
  border-radius: 9px;
  color: var(--blue);
  background: rgba(36, 100, 242, 0.07);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.idle-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 190px;
  padding: 28px;
  border: 1px dashed #cbd7e8;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.46);
}

.idle-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(36, 100, 242, 0.08);
}

.idle-visual > i {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(36, 100, 242, 0.18);
  border-radius: 50%;
  animation: orbit 8s linear infinite;
}

.idle-visual > i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(32, 184, 202, 0.65);
}

.idle-visual svg {
  width: 39px;
  height: 39px;
}

.idle-status strong {
  color: #3b4f70;
  font-size: 18px;
}

.idle-status p {
  margin: 6px 0 0;
  color: #8492a7;
}

.job-status {
  display: grid;
  gap: 18px;
}

.progress-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.state-label {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.progress-summary strong {
  display: block;
  max-width: min(62vw, 720px);
  overflow-wrap: anywhere;
  color: #314665;
  font-size: 18px;
}

.progress-summary b {
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8f4;
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 16px rgba(36, 100, 242, 0.28);
  transition: width 0.45s ease;
}

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

.job-stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.62);
}

.job-stat span,
.job-stat strong {
  display: block;
}

.job-stat span {
  color: #8693a7;
  font-size: 12px;
}

.job-stat strong {
  margin-top: 5px;
  color: #2f4464;
  font-size: 24px;
}

.result-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 3px;
}

.result-list-heading span {
  color: #364b6b;
  font-weight: 800;
}

.result-list-heading small {
  color: #8a97aa;
}

.job-files {
  display: grid;
  gap: 9px;
}

.job-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #5e708a;
  background: #edf2f8;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-badge.processing,
.status-badge.running,
.status-badge.queued {
  color: var(--blue);
  background: rgba(36, 100, 242, 0.09);
}

.status-badge.succeeded {
  color: #118167;
  background: rgba(23, 167, 131, 0.11);
}

.status-badge.failed {
  color: #d13b50;
  background: rgba(234, 76, 96, 0.1);
}

.item-download {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 8px 18px rgba(36, 100, 242, 0.19);
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}

.download-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}

.download-button svg,
.danger-button svg {
  width: 19px;
  height: 19px;
}

.danger-button {
  border: 1px solid rgba(234, 76, 96, 0.27);
  color: #d83d53;
  background: rgba(234, 76, 96, 0.06);
}

.danger-button:hover:not(:disabled) {
  background: rgba(234, 76, 96, 0.11);
}

.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 8px 10px;
  color: #93a0b2;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  max-width: min(460px, calc(100vw - 32px));
  padding: 14px 20px;
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 42, 74, 0.95);
  box-shadow: 0 14px 38px rgba(16, 35, 67, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

/* Immediate loading account, points and task experience */

.boot-view {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  padding: 24px;
  color: var(--ink);
  text-align: center;
}

.boot-view strong {
  margin-top: 8px;
  font-size: 19px;
}

.boot-view small {
  color: var(--muted);
}

.boot-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: var(--blue-shadow);
  animation: boot-pulse 1.7s ease-in-out infinite;
}

.boot-mark svg {
  width: 38px;
  height: 38px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 28px;
  padding: 5px;
  border: 1px solid rgba(194, 210, 232, 0.7);
  border-radius: 13px;
  background: rgba(232, 241, 254, 0.7);
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  color: #718099;
  background: transparent;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-tabs button:hover {
  color: var(--blue);
}

.auth-tabs button.active {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 20px rgba(36, 76, 137, 0.1);
}

.auth-form {
  margin-top: 18px;
}

.auth-fields {
  display: grid;
  gap: 13px;
}

.auth-fields .login-field {
  margin-top: 0;
}

.account-summary {
  display: grid;
  grid-template-columns: minmax(96px, auto) auto auto;
  align-items: stretch;
  gap: 6px;
  width: fit-content;
  max-width: min(100%, 360px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px rgba(42, 81, 138, 0.08);
  backdrop-filter: blur(18px);
}

.account-copy,
.wallet-summary {
  min-width: 0;
  display: grid;
  align-content: center;
  padding: 3px 8px;
}

.account-copy span,
.wallet-summary span,
.wallet-summary small {
  color: #8795a9;
  font-size: 11px;
}

.account-copy strong {
  overflow: hidden;
  margin-top: 2px;
  color: #334968;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-summary {
  min-width: 82px;
  border-left: 1px solid rgba(194, 210, 232, 0.75);
}

.wallet-summary strong {
  color: var(--blue);
  font-size: 20px;
  line-height: 1.05;
}

.wallet-summary small {
  margin-top: 3px;
}

.redeem-button,
.secondary-button,
.load-more-button {
  border: 1px solid rgba(36, 100, 242, 0.2);
  border-radius: 11px;
  color: var(--blue);
  background: rgba(36, 100, 242, 0.08);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.redeem-button {
  min-width: 78px;
  padding: 0 10px;
  font-size: 13px;
}

.redeem-button:hover,
.secondary-button:hover,
.load-more-button:hover {
  border-color: rgba(36, 100, 242, 0.36);
  background: rgba(36, 100, 242, 0.13);
  transform: translateY(-1px);
}

.billing-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.billing-summary > div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(194, 210, 232, 0.82);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.billing-summary span,
.billing-summary strong,
.billing-summary small {
  display: block;
}

.billing-summary span {
  color: #8795a9;
  font-size: 11px;
}

.billing-summary strong {
  margin-top: 4px;
  overflow: hidden;
  color: #344968;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-summary > div:nth-child(3) strong {
  color: var(--blue);
}

.billing-summary small {
  margin-top: 2px;
  color: var(--success);
  font-size: 11px;
}

.insufficient-points {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(219, 138, 34, 0.28);
  border-radius: 11px;
  color: #9c641b;
  background: rgba(255, 244, 223, 0.78);
  font-size: 13px;
}

.insufficient-points button {
  flex: 0 0 auto;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 850;
}

.primary-action b {
  font-size: inherit;
}

.task-list-card {
  scroll-margin-top: 22px;
}

.task-list-heading {
  align-items: center;
}

.secondary-button {
  min-height: 40px;
  padding: 0 15px;
}

.secondary-button:disabled,
.load-more-button:disabled,
.redeem-button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.task-list {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bccbea transparent;
}

.task-list > .empty-list {
  height: 100%;
  min-height: 240px;
}

.task-list.is-empty {
  grid-template-rows: minmax(0, 1fr);
}

.task-list.is-empty > .empty-list {
  height: auto;
  min-height: 0;
}

.task-workspace .job-status {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}

.task-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(170px, 1.5fr) repeat(3, minmax(86px, 0.55fr)) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(202, 215, 235, 0.8);
  border-radius: 13px;
  color: inherit;
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.task-row:hover,
.task-row.active {
  border-color: rgba(36, 100, 242, 0.34);
  background: rgba(244, 249, 255, 0.92);
  transform: translateY(-1px);
}

.task-row.active {
  box-shadow: inset 3px 0 0 var(--blue);
}

.task-row-main,
.task-row-stat {
  min-width: 0;
}

.task-row-main strong,
.task-row-main small,
.task-row-stat span,
.task-row-stat strong {
  display: block;
}

.task-row-main strong {
  overflow: hidden;
  color: #314665;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-row-main small,
.task-row-stat span {
  color: #8a97aa;
  font-size: 11px;
}

.task-row-main small {
  margin-top: 4px;
}

.task-row-stat strong {
  margin-top: 3px;
  color: #405574;
  font-size: 14px;
}

.task-row-arrow {
  width: 20px;
  height: 20px;
  color: #8a99ae;
}

.load-more-button {
  display: block;
  min-height: 40px;
  margin: 14px auto 0;
  padding: 0 22px;
}

.task-pagination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(202, 215, 235, 0.62);
}

.task-page-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(36, 100, 242, 0.18);
  border-radius: 9px;
  color: var(--blue);
  background: rgba(36, 100, 242, 0.06);
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.task-page-button:hover:not(:disabled) {
  border-color: rgba(36, 100, 242, 0.35);
  background: rgba(36, 100, 242, 0.12);
  transform: translateY(-1px);
}

.task-page-button:disabled {
  cursor: default;
  color: #a4b0c3;
  background: rgba(219, 227, 240, 0.52);
  opacity: 0.72;
}

.task-page-indicator {
  min-width: 0;
  overflow: hidden;
  color: #7889a1;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-stats {
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
}

.job-billing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(36, 100, 242, 0.16);
  border-radius: 13px;
  background: rgba(36, 100, 242, 0.055);
}

.job-billing > div {
  min-width: 0;
  padding: 2px 8px;
  border-right: 1px solid rgba(36, 100, 242, 0.13);
}

.job-billing > div:last-child {
  border-right: 0;
}

.job-billing span,
.job-billing strong {
  display: block;
}

.job-billing span {
  color: #7e8ca2;
  font-size: 11px;
}

.job-billing strong {
  margin-top: 3px;
  color: #334968;
  font-size: 16px;
}

.billing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #65758d;
  background: #eef2f7;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.billing-badge.charged,
.billing-badge.settled {
  color: #0f7c62;
  background: rgba(23, 167, 131, 0.11);
}

.billing-badge.released,
.billing-badge.no_charge,
.billing-badge.no-charge,
.billing-badge.failed {
  color: #67778f;
  background: rgba(116, 131, 157, 0.11);
}

.billing-badge.reserved,
.billing-badge.pending {
  color: var(--warning);
  background: rgba(219, 138, 34, 0.11);
}

.job-file-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.redeem-dialog {
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: transparent;
  box-shadow: 0 30px 100px rgba(22, 52, 99, 0.28);
}

.redeem-dialog::backdrop {
  background: rgba(17, 35, 66, 0.42);
  backdrop-filter: blur(7px);
}

.redeem-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: inherit;
  background:
    radial-gradient(circle at 92% 5%, rgba(32, 184, 202, 0.12), transparent 17rem),
    rgba(255, 255, 255, 0.96);
}

.dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  color: #7e8ba0;
  background: rgba(230, 238, 249, 0.7);
}

.dialog-close:hover {
  color: var(--blue);
  background: rgba(36, 100, 242, 0.1);
}

.dialog-close svg {
  width: 18px;
  height: 18px;
}

.redeem-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: var(--blue-shadow);
}

.redeem-mark svg {
  width: 31px;
  height: 31px;
}

.redeem-card h2 {
  margin: 6px 0 0;
  font-size: 25px;
}

.redeem-field {
  display: block;
  margin-top: 22px;
}

.redeem-field span,
.redeem-hint {
  display: block;
}

.redeem-field span {
  margin-bottom: 8px;
  color: #435776;
  font-size: 13px;
  font-weight: 800;
}

.redeem-field input {
  width: 100%;
  min-height: 60px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(20px, 5vw, 27px);
  font-weight: 850;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.redeem-field input:focus {
  border-color: rgba(36, 100, 242, 0.62);
  box-shadow: 0 0 0 4px rgba(36, 100, 242, 0.1);
}

.redeem-hint {
  margin-top: 7px;
  color: #8a97aa;
  font-size: 12px;
}

.redeem-submit {
  margin-top: 20px;
  border: 1px solid rgba(36, 100, 242, 0.22);
  color: #245ddd;
  background: #eef4ff;
  box-shadow: none;
}

.redeem-submit:hover:not(:disabled) {
  border-color: rgba(36, 100, 242, 0.34);
  background: #e4edff;
  box-shadow: 0 8px 22px rgba(36, 100, 242, 0.1);
  filter: none;
  transform: translateY(-1px);
}

.redeem-submit:disabled {
  cursor: wait;
  opacity: 0.58;
  box-shadow: none;
}

.redeem-success {
  margin: 12px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(23, 167, 131, 0.2);
  border-radius: 10px;
  color: #117a63;
  background: rgba(23, 167, 131, 0.08);
  font-size: 13px;
  line-height: 1.55;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(36, 100, 242, 0.25);
  outline-offset: 2px;
}

.login-field input:focus-visible {
  outline: 0;
}

@keyframes boot-pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.025); }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(32, 189, 145, 0.12);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(32, 189, 145, 0.04);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1120px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: auto;
  }

  .login-copy {
    max-width: 800px;
    margin: 56px 0 0;
  }

  .login-copy h1 br {
    display: none;
  }

  .login-panel {
    place-items: start center;
  }

  .task-workspace {
    grid-template-columns: 1fr;
    height: auto;
  }

  .tasks-page {
    height: auto;
    align-self: start;
  }

  .task-workspace .task-list-card,
  .task-workspace .job-card {
    height: auto;
  }

  .task-workspace .idle-status,
  .task-list > .empty-list {
    min-height: 220px;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .app-sidebar {
    position: relative;
    top: 0;
    z-index: 5;
    height: auto;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 14px 24px;
    padding: 16px;
  }

  .sidebar-brand {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    border-bottom: 0;
  }

  .sidebar-brand img {
    max-width: 180px;
  }

  .sidebar-brand span {
    display: none;
  }

  .sidebar-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .sidebar-nav a {
    justify-content: center;
  }

  .sidebar-foot {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    margin-top: 0;
  }

  .service-health {
    display: none;
  }

  .logout-button {
    padding: 0 14px;
  }

  .upload-page {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .login-screen {
    gap: 28px;
    padding: 22px 16px 36px;
  }

  .login-brand {
    width: min(350px, 88vw);
  }

  .login-copy {
    margin-top: 44px;
  }

  .login-copy h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .login-card {
    padding: 30px 20px;
    border-radius: 21px;
  }

  .app-header {
    align-items: flex-start;
  }

  .header-status {
    min-width: auto;
    padding: 11px 13px;
  }

  .header-status div {
    display: none;
  }

  .glass-card {
    padding: 18px;
    border-radius: 18px;
  }

  .section-heading {
    display: grid;
  }

  .section-heading .limit-pill {
    justify-self: start;
  }

  .upload-heading-actions {
    justify-content: flex-start;
  }

  .drop-zone {
    min-height: 220px;
    padding: 24px 14px;
  }

  .accessory-profile-options {
    grid-template-columns: 1fr;
  }

  .algorithm-profile-heading,
  .parameter-editor-footer {
    display: grid;
  }

  .algorithm-profile-actions {
    justify-content: flex-start;
  }

  .parameter-unlock-form {
    grid-template-columns: 1fr;
  }

  .drop-zone > strong {
    font-size: 17px;
  }

  .pending-heading p {
    display: none;
  }

  .parameter-grid {
    grid-template-columns: 1fr;
  }

  .server-parameter-note {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .server-parameter-note em {
    display: none;
  }

  .primary-action > span {
    display: grid;
    gap: 1px;
    text-align: left;
  }

  .primary-action small {
    order: 2;
  }

  .side-stack {
    grid-template-columns: 1fr;
  }

  .job-heading {
    display: flex;
  }

  .idle-status {
    display: grid;
    text-align: center;
  }

  .idle-visual {
    margin: 0 auto;
  }

  .job-stats {
    gap: 7px;
  }

  .job-stat {
    padding: 11px;
  }

  .job-stat strong {
    font-size: 20px;
  }

  .result-list-heading small {
    display: none;
  }

  .job-file {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .job-file .file-copy {
    width: calc(100% - 50px);
  }

  .job-file-actions {
    width: 100%;
    justify-content: flex-end;
    padding-left: 46px;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .app-footer {
    display: grid;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .app-shell {
    gap: 14px;
    padding: 10px;
  }

  .app-sidebar {
    grid-template-columns: 1fr auto;
    padding: 13px;
    border-radius: 17px;
  }

  .sidebar-brand img {
    max-width: 150px;
  }

  .sidebar-nav {
    gap: 6px;
  }

  .sidebar-nav a {
    min-height: 45px;
    gap: 7px;
    padding: 0 8px;
    font-size: 12px;
  }

  .sidebar-nav svg {
    display: none;
  }

  .logout-button {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .app-main {
    gap: 14px;
  }

  .app-header {
    padding: 8px 3px 2px;
  }

  .app-header h1 {
    font-size: 29px;
  }

  .app-header > div:first-child > span {
    font-size: 13px;
  }

  .header-status {
    display: none;
  }

  .section-heading h2,
  .workflow-card h2 {
    font-size: 20px;
  }

  .drop-icon {
    width: 56px;
    height: 56px;
  }

  .job-heading {
    align-items: flex-start;
  }

  .job-heading > div > span {
    display: none;
  }

  .progress-summary b {
    font-size: 29px;
  }
}

@media (max-width: 1180px) {
  .app-header {
    align-items: flex-start;
  }

  .account-summary {
    grid-template-columns: minmax(100px, 1fr) auto;
    width: min(100%, 300px);
  }

  .redeem-button {
    grid-column: 1 / -1;
    min-height: 38px;
  }

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

@media (max-width: 980px) {
  .app-header {
    display: grid;
  }

  .account-summary {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(120px, 1fr) auto auto;
  }

  .redeem-button {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .task-row {
    grid-template-columns: minmax(150px, 1fr) repeat(2, minmax(75px, auto)) auto;
  }

  .task-row-stat:nth-of-type(3) {
    display: none;
  }

  .job-billing {
    grid-template-columns: 1fr;
  }

  .job-billing > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(36, 100, 242, 0.12);
  }

  .job-billing > div:last-child {
    border-bottom: 0;
  }

  .job-billing strong {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .algorithm-profile-summary {
    grid-template-columns: 1fr;
  }

  .parameter-group:last-child {
    grid-column: auto;
  }

  .parameter-group-heading small {
    display: none;
  }

  .account-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .account-copy {
    grid-column: 1 / -1;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(194, 210, 232, 0.75);
  }

  .wallet-summary {
    border-left: 0;
  }

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

  .task-list-heading {
    display: grid;
  }

  .task-list-heading .secondary-button {
    justify-self: start;
  }

  .task-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
  }

  .task-row-stat {
    display: none;
  }

  .task-row .status-badge {
    justify-self: end;
  }

  .task-row-arrow {
    display: none;
  }
}

@media (max-width: 500px) {
  .account-summary {
    padding: 6px;
  }

  .wallet-summary strong {
    font-size: 21px;
  }

  .redeem-button {
    min-width: 86px;
    padding: 0 10px;
    font-size: 12px;
  }

  .billing-summary {
    gap: 7px;
  }

  .billing-summary > div {
    padding: 11px;
  }

  .insufficient-points {
    align-items: flex-start;
  }

  .redeem-card {
    padding: 28px 20px 24px;
  }

  .redeem-field input {
    font-size: 20px;
    letter-spacing: 0.04em;
  }
}
