/* ============================================================
   COMPONENTS — the shared kit used by the tool workspace.
   Buttons and fields follow the GI Tool Kit shapes (12px
   buttons, 8px inputs). Nothing here knows about PDFs.
   ============================================================ */

/* ---------- Buttons ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-md);
  font-family: var(--sans); font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; user-select: none;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { pointer-events: none; opacity: 0.45; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* Brand fill + white text: the primary role, identical to .gi-btn-primary. */
.btn-accent { background: var(--brand); color: #fff; }
.btn-accent:hover { background: var(--brand-hover); }
.btn-accent:active { background: var(--brand-active); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--sunken); color: var(--text); }
.btn-danger { background: transparent; color: var(--muted); }
.btn-danger:hover { background: var(--error-bg); color: var(--error); }

.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-lg svg { width: 17px; height: 17px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 36px; }
.btn-block { width: 100%; }

.spin { animation: spin 720ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Section shell (form / workspace cards) ---------- */

.section {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--r-lg); box-shadow: var(--sh-xs);
}
.section-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  border-bottom: 1px solid var(--border-subtle); padding: 14px 16px;
}
@media (min-width: 640px) { .section-head { padding: 16px 20px; } }
.section-head h3 { font-size: 14.5px; line-height: 20px; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.section-head p { margin-top: 3px; font-size: 12.5px; line-height: 18px; color: var(--muted); }
.section-head .aside { flex: none; font-size: 12.5px; color: var(--muted); }
.section-body { padding: 16px; }
@media (min-width: 640px) { .section-body { padding: 20px; } }
.section-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--border-subtle); padding: 14px 16px; background: var(--sunken);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
@media (min-width: 640px) { .section-foot { padding: 14px 20px; } }

/* ---------- Form primitives ---------- */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-2); }
.hint { font-size: 12.5px; line-height: 18px; color: var(--muted); }
.err { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; line-height: 18px; color: var(--error); }
.err svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }

.control {
  width: 100%; height: 40px; padding: 0 12px;
  font-family: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
@media (min-width: 640px) { .control { font-size: 14px; } }
.control::placeholder { color: var(--faint); }
.control:hover { border-color: var(--text); }
.control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.control[aria-invalid="true"] { border-color: var(--error); }
.control[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(210, 20, 50, 0.22); }
.control.mono { font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.01em; }
textarea.control { height: auto; min-height: 62px; padding: 10px 12px; line-height: 22px; resize: vertical; }

/* ---------- Alerts ---------- */

.alert { display: flex; align-items: flex-start; gap: 10px; border: 1px solid; border-radius: var(--r-md); padding: 12px 14px; }
.alert > svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.alert b { display: block; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text); }
.alert p { margin-top: 3px; font-size: 12.5px; line-height: 19px; color: var(--text-2); }
.alert p + p { margin-top: 6px; }
.alert-info { border-color: var(--info-border); background: var(--info-bg); } .alert-info > svg { color: var(--info); }
.alert-warning { border-color: var(--warning-border); background: var(--warning-bg); } .alert-warning > svg { color: var(--warning); }
.alert-error { border-color: var(--error-border); background: var(--error-bg); } .alert-error > svg { color: var(--error); }
.alert-success { border-color: var(--success-border); background: var(--success-bg); } .alert-success > svg { color: var(--success); }
.alert-quiet { border-color: var(--border); background: var(--sunken); } .alert-quiet > svg { color: var(--muted); }

/* ---------- Dropzone ---------- */

.drop {
  position: relative; display: block; width: 100%;
  border: 1.5px dashed var(--border-strong); background: var(--sunken);
  border-radius: var(--r-lg); text-align: center; cursor: pointer;
  padding: 40px 20px;
  transition: border-color var(--dur), background-color var(--dur), box-shadow var(--dur);
}
@media (min-width: 768px) { .drop { padding: 56px 32px; } }
.drop:hover { border-color: var(--faint); background: #f2f2f4; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop.compact { padding: 22px 20px; }

/* Dragging: border, background AND an explicit message change — never colour alone. */
.drop[data-drag="1"] {
  border-color: var(--brand); border-style: solid; background: var(--brand-soft);
  box-shadow: 0 0 0 4px var(--brand-ring);
}
.drop[data-drag="1"] .drop-icon { border-color: var(--brand-soft-border); background: var(--surface); color: var(--brand); }
.drop[data-drag="1"] .drop-idle { display: none; }
.drop .drop-active { display: none; }
.drop[data-drag="1"] .drop-active { display: block; }

.drop.is-error { border-color: var(--error); background: var(--error-bg); }
.drop.is-error .drop-icon { color: var(--error); border-color: var(--error-border); }

.drop-icon {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  margin: 0 auto 16px; border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; color: var(--muted); box-shadow: var(--sh-xs);
  transition: color var(--dur), border-color var(--dur), background-color var(--dur);
}
.drop-icon svg { width: 22px; height: 22px; }
.drop.compact .drop-icon { width: 40px; height: 40px; margin-bottom: 12px; }
.drop.compact .drop-icon svg { width: 18px; height: 18px; }
.drop b { display: block; font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.drop.compact b { font-size: 14.5px; }
.drop .or { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.drop .or u { text-decoration: none; font-weight: 600; color: var(--brand); text-underline-offset: 3px; }
.drop:hover .or u, .drop:focus-within .or u { text-decoration: underline; }
.drop small { display: block; margin-top: 14px; font-size: 12.5px; color: var(--faint); }
.drop:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }

/* ---------- File list ---------- */

.files { display: flex; flex-direction: column; gap: 8px; }
.file {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--r-md); padding: 10px 10px 10px 12px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast), opacity var(--dur);
}
.file:hover { border-color: var(--border-strong); box-shadow: var(--sh-xs); }
.file[data-dragging="1"] { opacity: 0.4; }
.file[data-dropbefore="1"] { box-shadow: 0 -2px 0 0 var(--brand); }
.file[data-dropafter="1"] { box-shadow: 0 2px 0 0 var(--brand); }
.file.is-error { border-color: var(--error-border); background: var(--error-bg); }
@media (prefers-reduced-motion: no-preference) {
  .file.enter { animation: file-in 240ms var(--ease); }
}
@keyframes file-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.file-grip {
  display: none; align-items: center; justify-content: center; flex: none;
  width: 22px; height: 32px; margin-left: -4px; color: var(--faint); cursor: grab;
  background: transparent; border: 0; padding: 0; border-radius: var(--r-sm);
}
@media (min-width: 640px) { .file-grip { display: flex; } }
.file-grip:hover { color: var(--text-2); }
.file-grip:active { cursor: grabbing; }
.file-grip svg { width: 15px; height: 15px; pointer-events: none; }

.file-idx {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 24px; height: 24px; border-radius: 999px; background: var(--sunken);
  border: 1px solid var(--border); font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--muted);
}
.file-thumb {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 42px; border: 1px solid var(--border); border-radius: 4px;
  background: var(--surface); color: var(--brand); overflow: hidden;
}
.file-thumb svg { width: 17px; height: 17px; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }

.file-meta { flex: 1; min-width: 0; }
.file-meta b {
  display: block; font-size: 13.5px; line-height: 19px; font-weight: 500; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-meta small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.file-meta small .sep { color: var(--border-strong); }
.file-meta small .bad { color: var(--error); font-weight: 500; }
.file-acts { display: flex; align-items: center; gap: 2px; flex: none; }
.file-acts .btn-icon.btn-sm { color: var(--faint); }
.file-acts .btn-icon.btn-sm:hover { color: var(--text); }

.file-add {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: 1.5px dashed var(--border-strong); background: transparent; cursor: pointer;
  border-radius: var(--r-md); padding: 12px; margin-top: 4px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  position: relative; transition: border-color var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast);
}
.file-add:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-active); }
.file-add svg { width: 15px; height: 15px; }
.file-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Summary bar ---------- */

.summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-size: 13px; color: var(--muted);
}
.summary b { font-size: 13.5px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.summary .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--border-strong); }

/* ---------- Choice cards (compression levels, split modes) ---------- */

.choices { display: grid; gap: 10px; }
@media (min-width: 700px) { .choices.c3 { grid-template-columns: repeat(3, 1fr); } }
.choice {
  position: relative; display: flex; flex-direction: column; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface);
  border-radius: var(--r-md); padding: 14px;
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.choice:hover { border-color: var(--faint); background: var(--sunken); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.choice[data-on="1"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.choice-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.choice-title { font-size: 13.5px; line-height: 18px; font-weight: 600; color: var(--text); }
.choice[data-on="1"] .choice-title { color: var(--brand-active); }
.choice-desc { margin-top: 4px; font-size: 12.5px; line-height: 17px; color: var(--muted); }
.choice-tag {
  display: inline-block; margin-top: 10px; border: 1px solid var(--border);
  background: var(--sunken); border-radius: 999px; padding: 2px 8px;
  font-size: 11px; font-weight: 500; color: var(--muted);
}
.choice[data-on="1"] .choice-tag { border-color: var(--brand-soft-border); background: var(--surface); color: var(--brand-active); }
.choice-dot {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 17px; height: 17px; margin-top: 1px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: transparent;
}
.choice[data-on="1"] .choice-dot { border-color: var(--brand); background: var(--brand); color: #fff; }
.choice-dot svg { width: 10px; height: 10px; }

/* ---------- Page thumbnails ---------- */

.pagegrid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}
@media (max-width: 520px) { .pagegrid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; } }

.pagecard {
  position: relative; display: flex; flex-direction: column; align-items: stretch;
  border: 0; padding: 0; background: transparent; cursor: pointer; text-align: center;
}
.pagecard .sheet {
  position: relative; aspect-ratio: 1 / 1.414; width: 100%; overflow: hidden;
  border: 1px solid var(--border-strong); border-radius: 5px; background: #fff;
  box-shadow: var(--sh-xs);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
}
.pagecard:hover .sheet { border-color: var(--faint); transform: translateY(-2px); box-shadow: var(--sh-md); }
.pagecard .sheet img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pagecard .sheet .skel {
  position: absolute; inset: 0; background: linear-gradient(100deg, #f2f2f4 30%, #e9e9ec 45%, #f2f2f4 60%);
  background-size: 300% 100%; animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .pagecard .sheet .skel { animation: none; } }

.pagecard .tick {
  position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; border-radius: 5px;
  border: 1.5px solid var(--border-strong); background: rgba(255, 255, 255, 0.94);
  display: flex; align-items: center; justify-content: center; color: transparent;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.pagecard .tick svg { width: 12px; height: 12px; }
.pagecard .no { font-size: 11.5px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); margin-top: 6px; }

.pagecard[aria-checked="true"] .sheet { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.pagecard[aria-checked="true"] .tick { border-color: var(--brand); background: var(--brand); color: #fff; }
.pagecard[aria-checked="true"] .no { color: var(--brand-active); font-weight: 600; }
.pagecard:focus-visible { outline: none; }
.pagecard:focus-visible .sheet { outline: 2px solid var(--brand); outline-offset: 3px; }

.pagebar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.pagebar .acts { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Progress ---------- */

.progress {
  height: 6px; width: 100%; border-radius: 999px; background: var(--border);
  overflow: hidden;
}
.progress > i {
  display: block; height: 100%; border-radius: 999px; background: var(--brand);
  transition: width 260ms var(--ease);
}
.progress[data-indeterminate="1"] > i { width: 38% !important; animation: slide 1.15s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -38%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .progress[data-indeterminate="1"] > i { animation: none; width: 100% !important; opacity: 0.5; } }

/* ---------- Status panels: empty / processing / success / error ---------- */

.panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 44px 24px;
}
@media (min-width: 768px) { .panel { padding: 56px 32px; } }
.panel-icon {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  margin-bottom: 18px; border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; color: var(--faint); box-shadow: var(--sh-xs);
}
.panel-icon svg { width: 22px; height: 22px; }
.panel-icon.ok { border-color: var(--success-border); background: var(--success-bg); color: var(--success); }
.panel-icon.bad { border-color: var(--error-border); background: var(--error-bg); color: var(--error); }
@media (prefers-reduced-motion: no-preference) {
  .panel-icon.ok { animation: pop 320ms var(--ease); }
}
@keyframes pop { from { transform: scale(0.86); opacity: 0; } to { transform: none; opacity: 1; } }
.panel h3 { font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
@media (min-width: 768px) { .panel h3 { font-size: 22px; line-height: 28px; } }
.panel > p { margin-top: 8px; max-width: 46ch; font-size: 14px; line-height: 22px; color: var(--muted); }
.panel-acts { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.panel-progress { margin-top: 24px; width: 100%; max-width: 380px; }
.panel-progress .lbl {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 8px; font-size: 12.5px; color: var(--muted);
}
.panel-progress .lbl b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-2); }

/* Result metric strip: 3 files → 1 PDF, 8.4 MB → 2.3 MB */
.metrics {
  margin-top: 24px; display: flex; align-items: stretch; justify-content: center;
  border: 1px solid var(--border); background: var(--sunken); border-radius: var(--r-lg);
  overflow: hidden; max-width: 460px; width: 100%;
}
.metric { flex: 1; padding: 16px 12px; min-width: 0; }
.metric + .metric { border-left: 1px solid var(--border); }
.metric span { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.metric b {
  display: block; margin-top: 6px; font-size: 20px; line-height: 24px; font-weight: 600;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text);
}
.metric.hi b { color: var(--success); }
.metric-arrow {
  display: flex; align-items: center; justify-content: center; flex: none; width: 40px;
  color: var(--faint); border-left: 1px solid var(--border);
}
.metric-arrow svg { width: 16px; height: 16px; }

/* Output file rows */
.outputs { margin-top: 22px; width: 100%; max-width: 520px; text-align: left; }
.outputs-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
}
.outputs .scrollbox { max-height: 244px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; }

/* ---------- Tips ---------- */

.tips { display: grid; gap: 12px; }
@media (min-width: 700px) { .tips { grid-template-columns: repeat(3, 1fr); } }
.tip { border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-md); padding: 14px 16px; }
.tip b { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.tip b svg { width: 15px; height: 15px; color: var(--brand); flex: none; }
.tip p { margin-top: 6px; font-size: 12.5px; line-height: 19px; color: var(--muted); }

/* ---------- Toasts ---------- */

.toasts {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom)); pointer-events: none;
}
@media (min-width: 640px) { .toasts { left: auto; right: 24px; bottom: 24px; align-items: flex-end; padding: 0; } }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 12px;
  width: 100%; max-width: 420px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-lg);
  padding: 12px 12px 12px 0; box-shadow: var(--sh-md);
  animation: toast-in var(--dur) var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.toast .bar { width: 4px; align-self: stretch; flex: none; }
.toast .ico {
  display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none;
  margin-top: 2px; border-radius: 999px;
}
.toast .ico svg { width: 14px; height: 14px; }
.toast .body { flex: 1; min-width: 0; }
.toast b { display: block; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--text); }
.toast small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 18px; color: var(--muted); }
.toast .x { flex: none; margin-top: 2px; padding: 4px; border: 0; background: transparent; cursor: pointer; border-radius: var(--r-sm); color: var(--faint); }
.toast .x:hover { background: var(--sunken); color: var(--text); }
.toast .x svg { width: 14px; height: 14px; display: block; }
.t-success .bar { background: var(--success); } .t-success .ico { background: var(--success-bg); color: var(--success); }
.t-error .bar { background: var(--error); } .t-error .ico { background: var(--error-bg); color: var(--error); }
.t-info .bar { background: var(--info); } .t-info .ico { background: var(--info-bg); color: var(--info); }

/* ---------- Modal / confirmation ---------- */

.modal-back {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(18, 18, 24, 0.42);
  animation: fade var(--dur) var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 440px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: 22px;
  animation: modal-in var(--dur) var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal-icon {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 999px; border: 1px solid var(--warning-border); background: var(--warning-bg); color: var(--warning);
}
.modal-icon svg { width: 19px; height: 19px; }
.modal h2 { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.modal p { margin-top: 8px; font-size: 13.5px; line-height: 21px; color: var(--muted); }
.modal-acts { margin-top: 22px; display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 460px) { .modal-acts { flex-direction: column-reverse; } .modal-acts .btn { width: 100%; } }
