.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  animation: fadeIn 0.15s ease;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  width: min(420px, 94vw);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
}

.icon { font-size: 30px; }

.title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-3);
}

.bundleName {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--surface2);
  padding: 8px 12px;
  border-radius: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.3px;
}

.presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.preset {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.15s;
}
.preset:hover {
  border-color: var(--bcolor, var(--border2));
  color: var(--text);
}
.preset.presetActive {
  background: color-mix(in srgb, var(--bcolor, var(--blue)) 15%, transparent);
  border-color: var(--bcolor, var(--blue));
  color: var(--bcolor, var(--blue));
}

.customRow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input {
  width: 90px;
  padding: 8px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
  font-family: var(--mono);
  font-weight: 700;
  text-align: center;
  transition: border-color 0.15s;
  outline: none;
}
.input:focus { border-color: var(--blue); }

.unit {
  font-size: 13px;
  color: var(--text-3);
}

.hint {
  font-size: 12px;
  color: var(--text-3);
  font-style: italic;
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
}

.cancelBtn {
  padding: 8px 18px;
  background: var(--surface3);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 0.15s;
}
.cancelBtn:hover { background: var(--border); color: var(--text); }

.startBtn {
  padding: 8px 22px;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.startBtn:hover:not(:disabled) { opacity: 0.88; transform: scale(1.03); }
.startBtn:active:not(:disabled) { transform: scale(0.97); }
.startBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(1);
}
