.page { animation: pageIn .8s var(--ease) both; }
.page.leaving { animation: pageOut .4s ease forwards; }
@keyframes pageIn { from { opacity: 0; } }
@keyframes pageOut { to { opacity: 0; } }

.back { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 14px; color: var(--muted); transition: color .3s; }
.back svg { transition: translate .5s var(--ease); }
.back:hover { color: var(--text); }
.back:hover svg { translate: -3px 0; }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 110px 16px 60px; }
.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 36px 32px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(21, 17, 20, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8);
}
.auth-card.shake { animation: shake .5s var(--ease); }
@keyframes shake { 20% { translate: -8px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 2px 0; } }
.auth-logo { width: 42px; height: 42px; object-fit: contain; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-tabs { position: relative; display: flex; padding: 3px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.auth-tab { position: relative; z-index: 1; height: 30px; padding: 0 14px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted); transition: color .35s; }
.auth-tab:hover, .auth-tab.active { color: var(--text); }
.auth-tab-ind { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 7px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2); transition: translate .55s var(--ease), width .55s var(--ease); }
.auth-card.sizing { overflow: hidden; transition: height .55s var(--ease); }
.auth-pane > * { animation: fade .5s var(--ease) both; }
.auth-pane > :nth-child(2) { animation-delay: 40ms; }
.auth-pane > :nth-child(3) { animation-delay: 80ms; }
.auth-pane > :nth-child(n+4) { animation-delay: 120ms; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field-pair .input { min-width: 0; }
.auth-pane .field-pair .field { margin-top: 18px; }
.field-pair .input input { padding-left: 14px; }
.field-pair .input > svg + input { padding-left: 10px; }
.field-hint { font-size: 12px; color: var(--muted); margin: 2px 0 20px; }
#regKey { text-transform: uppercase; letter-spacing: 0.04em; }
#regKey::placeholder { text-transform: none; }
.auth-card h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; margin-top: 22px; line-height: 1.2; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }

.field { display: grid; gap: 7px; margin-top: 18px; }
.field:first-of-type { margin-top: 28px; }
.field label { font-size: 13px; color: var(--muted); }
.field-top { display: flex; justify-content: space-between; align-items: center; }
.link-muted { font-size: 13px; color: var(--muted); transition: color .3s; }
.link-muted:hover { color: var(--text); }
button.link-muted { background: none; border: none; cursor: pointer; padding: 0; font: inherit; }
.btn-xs { font-size: 11.5px; }

.input {
  display: flex;
  align-items: center;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.input:hover { border-color: rgba(255, 255, 255, 0.2); }
.input:focus-within { border-color: rgba(255, 90, 120, 0.55); box-shadow: 0 0 0 4px rgba(255, 90, 120, 0.08); background: rgba(0, 0, 0, 0.35); }
.input > svg { margin-left: 14px; color: var(--muted); transition: color .3s; }
.input:focus-within > svg { color: var(--accent); }
.input input { flex: 1; min-width: 0; height: 100%; padding: 0 14px 0 10px; background: none; border: 0; outline: none; font-size: 14px; }
.input input::placeholder { color: rgba(255, 255, 255, 0.25); }
.input input:-webkit-autofill { -webkit-text-fill-color: var(--text); transition: background-color 99999s; caret-color: var(--text); }
.eye { width: 42px; height: 100%; display: grid; place-items: center; color: var(--muted); transition: color .3s; }
.eye:hover { color: var(--text); }
.eye .slash { opacity: 0; transition: opacity .3s; }
.eye.on .slash { opacity: 1; }

.auth-row { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 20px; }
.check { position: relative; display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.check .box::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; rotate: -45deg; translate: 0 -1px; scale: 0; transition: scale .4s var(--ease); }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .box::after { scale: 1; }
.check input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(255, 90, 120, 0.3); }

.auth-error { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--ease), opacity .3s; }
.auth-error > div { min-height: 0; overflow: hidden; }
.auth-error p { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 16px; border-radius: 9px; font-size: 13px; color: #ff8aa0; background: rgba(255, 90, 120, 0.08); border: 1px solid rgba(255, 90, 120, 0.2); }
.auth-error.show { grid-template-rows: 1fr; opacity: 1; }

.btn .btn-label, .btn .arr { transition: opacity .25s, translate .5s var(--ease); }
.btn .spinner { position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; opacity: 0; animation: spin .75s linear infinite; transition: opacity .25s; }
.btn.loading { pointer-events: none; }
.btn.loading .btn-label, .btn.loading .arr { opacity: 0; }
.btn.loading .spinner { opacity: 1; }
@keyframes spin { to { rotate: 360deg; } }

.auth-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 22px; }
.auth-foot a { color: var(--text); border-bottom: 1px solid var(--line-2); transition: border-color .3s, color .3s; }
.auth-foot a:hover { color: var(--accent); border-color: var(--accent); }

.panel-nav .nav-inner { max-width: 1040px; }
.pn-left, .pn-right { display: flex; align-items: center; gap: 10px; }
.pn-tag { font-size: 13px; color: var(--muted); padding-left: 14px; margin-left: 4px; border-left: 1px solid var(--line-2); line-height: 18px; }

body[data-page="panel"] { min-height: 100vh; display: flex; flex-direction: column; }
.panel { flex: 1; padding-block: 92px 28px; }
.panel-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-inline: 24px; }

.p-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.p-head h1 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.p-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.p-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.p-grid > .card { display: flex; flex-direction: column; }
.s5 { grid-column: span 5; }
.s7 { grid-column: span 7; }

.card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(21, 17, 20, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .4s var(--ease);
}
.card:hover { border-color: var(--line-2); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card-h h3 { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; }
.card-h h3 svg { width: 15px; height: 15px; color: var(--accent); }
.meta { font-size: 12px; color: var(--muted); white-space: nowrap; }


.lic-plan { font-size: 13px; color: var(--muted); }
.lic-big { display: flex; align-items: baseline; gap: 8px; margin-top: 0; font-size: 36px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.lic-big small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }

.meter { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ff8ea3); transform-origin: left; animation: growX 1.5s var(--ease) .5s both; }
.meter-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
@keyframes growX { from { transform: scaleX(0); } }

.kv { list-style: none; margin-top: 12px; border-top: 1px solid var(--line); }
.kv li { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 33px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.kv li:last-child { border-bottom: 0; }
.kv li > span:first-child { color: var(--muted); white-space: nowrap; }
.kv .v { display: flex; align-items: center; gap: 6px; font-weight: 500; text-align: right; min-width: 0; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; letter-spacing: 0.02em; white-space: nowrap; }

.icon-btn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: var(--muted); border: 1px solid var(--line); transition: color .3s, border-color .3s, background .3s, scale .25s var(--ease); }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); }
.icon-btn:active { scale: .9; }
.icon-btn:disabled { opacity: .35; pointer-events: none; }
.icon-btn svg { width: 14px; height: 14px; }

.card-actions { display: flex; gap: 10px; margin-top: 12px; }
.card-actions .btn { flex: 1; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-self: stretch; }
.tile { display: flex; flex-direction: column; padding: 16px 18px; }
.tile-l { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.tile-l svg { width: 14px; height: 14px; }
.tile-v { margin-top: auto; padding-top: 18px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile-s { font-size: 12px; color: var(--muted); margin-top: 4px; }
.up { color: #4fe0a2; }
.dim { color: var(--muted); font-weight: 400; }

.kv.flush { margin-top: 0; border-top: 0; margin-bottom: 10px; }
.hwid-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.btn.danger { border-color: rgba(255, 90, 120, 0.55); color: var(--accent); }
.btn.btn-sm:disabled { opacity: .45; pointer-events: none; }

.table-wrap { flex: 1; overflow-x: auto; margin: 0 -20px -6px; padding: 0 20px 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.15) transparent; }
table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 12.5px; }
th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 0 12px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { height: 34px; padding: 0 12px 0 0; border-bottom: 1px solid var(--line); white-space: nowrap; transition: color .3s; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { animation: fade .5s var(--ease) both; }
th.r, td.r { text-align: right; padding-right: 0; }
td .dim { font-size: 12px; }
.ip { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.ip .mono { min-width: 108px; text-align: right; }
.ip .icon-btn { width: 24px; height: 24px; }
.ip .icon-btn svg { width: 13px; height: 13px; }
.ver-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 500; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.ver-tag.cur { color: var(--accent); background: rgba(255, 90, 120, 0.08); border-color: rgba(255, 90, 120, 0.22); }

.panel + .footer { padding-block: 16px; }
.panel + .footer .footer-inner { max-width: 1040px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 11px;
  font-size: 13px;
  background: rgba(30, 23, 27, 0.92);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  translate: -50% 16px;
  pointer-events: none;
  transition: opacity .35s, translate .6s var(--ease);
}
.toast svg { color: var(--accent); stroke-width: 2.4; }
.toast.show { opacity: 1; translate: -50% 0; }

.page.booting .panel, .page.booting .footer { opacity: 0; }
.panel, .footer { transition: opacity .4s ease; }

.state-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 500; color: #4fe0a2; background: rgba(79, 224, 162, 0.08); border: 1px solid rgba(79, 224, 162, 0.22); }
.state-tag.bad { color: var(--accent); background: rgba(255, 90, 120, 0.08); border-color: rgba(255, 90, 120, 0.22); }

.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.seg button { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; color: var(--muted); transition: color .3s, background .3s; }
.seg button svg { width: 12px; height: 12px; }
.seg button:hover { color: var(--text); }
.seg button.active { color: var(--text); background: rgba(255, 90, 120, 0.14); }
.seg button:disabled { pointer-events: none; }
.cfg-table { min-width: 440px; }
.cfg-name { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; font-weight: 500; }
.cfg-code { display: inline-flex; align-items: center; gap: 6px; }
.cfg-code .icon-btn { width: 24px; height: 24px; }
.cfg-code .icon-btn svg { width: 13px; height: 13px; }
td .icon-btn.danger { color: var(--accent); border-color: rgba(255, 90, 120, 0.55); background: rgba(255, 90, 120, 0.08); }
.empty-row td { height: auto; padding: 14px 0 6px; color: var(--muted); white-space: normal; }

.mini-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.mini-form[hidden] { display: none; }
.mini-form > label { font-size: 12.5px; color: var(--muted); }
.mini-row { display: flex; gap: 8px; }
.mini-row .input { flex: 1; min-width: 0; }
.input.sm { height: 34px; border-radius: 8px; }
.input.sm input { padding: 0 11px; font-size: 13px; }
#nick { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

.toast.err svg { color: #ff8aa0; }

@media (max-width: 1000px) {
  .s5, .s7 { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .pn-tag { display: none; }
  .panel { padding-block: 104px 70px; }
}

@media (max-width: 560px) {
  .panel-wrap { padding-inline: 16px; }
  .card { padding: 18px; }
  .table-wrap { margin-inline: -18px; padding-inline: 18px; }
  .tiles { gap: 12px; }
  .tile { padding: 16px; }
  .tile-v { font-size: 24px; padding-top: 16px; }
  .lic-big { font-size: 46px; }
  .p-actions { width: 100%; }
  .p-actions .btn { flex: 1; }
  .card-actions { flex-direction: column; }
  .card-actions .btn { flex: none; }
  .hide-sm { display: none; }
  .mini-row { flex-direction: column; }
  .kv .v { font-size: 12.5px; }
  .auth-card { padding: 28px 22px 24px; }
}
.btn.disabled { opacity: .45; pointer-events: none; }
.cfg-table td.r:not(:last-child), .cfg-table th.r:not(:last-child) { padding-right: 18px; }

.modal-ov {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 6, 7, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.modal-ov.show { opacity: 1; pointer-events: auto; }
.modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  gap: 16px;
  scale: .96;
  transition: scale .25s var(--ease);
}
.modal-ov.show .modal-card { scale: 1; }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-h h3 { font-size: 16px; font-weight: 600; }
.modal-sub { font-size: 13px; color: var(--muted); margin-top: -8px; }
.modal-hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.field { display: grid; gap: 7px; }
.field > label { font-size: 12.5px; color: var(--muted); }
.icon-pick { display: flex; align-items: center; gap: 14px; }
.icon-pick-pv {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  color: var(--muted);
  overflow: hidden;
}
.icon-pick-pv svg { width: 20px; height: 20px; }
.icon-pick-pv img { width: 100%; height: 100%; object-fit: contain; }
.icon-pick-r { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.icon-pick-r .modal-hint { width: 100%; margin-top: 2px; }

.pump-val-box {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pump-step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: all .2s;
  padding: 0;
  user-select: none;
}
.pump-step-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-2);
}
.pump-step-btn:active {
  transform: scale(0.92);
}

.pump-val {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  transition: all .2s ease;
}
.pump-val.active {
  color: var(--accent);
  background: rgba(255, 90, 120, 0.12);
  border-color: rgba(255, 90, 120, 0.3);
}

.pump-val-input {
  width: 52px;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: inherit;
  text-align: center;
  padding: 0;
  margin: 0;
  -moz-appearance: textfield;
}
.pump-val-input::-webkit-outer-spin-button,
.pump-val-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pump-val-input:focus {
  color: #fff;
}

.pump-slider-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 1px;
}

.pump-slider-wrap input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: background .2s;
}

.pump-slider-wrap input[type="range"]:hover {
  background: rgba(255, 255, 255, 0.16);
}

.pump-slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 90, 120, 0.6);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.pump-slider-wrap input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 0 16px rgba(255, 90, 120, 0.85);
}

.pump-slider-wrap input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 90, 120, 0.6);
  cursor: pointer;
}

.pump-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pump-meta .modal-hint { margin-top: 0; }

.pump-chips {
  display: flex;
  gap: 6px;
}

.pump-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  cursor: pointer;
  transition: all .2s;
}

.pump-chip:hover {
  color: var(--text);
  border-color: var(--line-2);
}

.pump-chip.active {
  background: rgba(255, 90, 120, 0.14);
  border-color: rgba(255, 90, 120, 0.35);
  color: var(--text);
}

.dl-progress-box {
  display: grid;
  gap: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 4px;
  animation: fade .3s var(--ease) both;
}

.dl-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 500;
}

.dl-progress-status {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dl-progress-pct {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.dl-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.dl-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff5a78, #ff8da3);
  border-radius: 4px;
  transition: width .15s ease-out;
  box-shadow: 0 0 10px rgba(255, 90, 120, 0.5);
}

.dl-progress-bar.indeterminate {
  width: 40% !important;
  animation: dlIndeterminate 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes dlIndeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

.dl-progress-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dl-progress-spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 90, 120, 0.25);
  border-top-color: var(--accent);
  animation: spin .7s linear infinite;
  display: inline-block;
}

@media (max-width: 560px) {
  .modal-card { padding: 20px 18px; }
}
