/* ============================================================
   سيرتي — Seerati
   ============================================================ */

@font-face {
  font-family: 'PlexArabic';
  src: url('../fonts/IBMPlexSansArabic-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'PlexArabic';
  src: url('../fonts/IBMPlexSansArabic-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'PlexArabic';
  src: url('../fonts/IBMPlexSansArabic-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'PlexArabic';
  src: url('../fonts/IBMPlexSansArabic-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --font: 'PlexArabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --bg: #f3f5f8;
  --card: #ffffff;
  --line: #e4e9f0;
  --line-strong: #ccd6e2;
  --ink: #0d1b2a;
  --ink-2: #33475b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --primary: #16324f;
  --primary-hover: #1d4368;
  --primary-soft: #eaf0f6;
  --wa: #1faa59;
  --wa-hover: #17914b;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06);
  --shadow-md: 0 8px 24px -14px rgba(13, 27, 42, .35);
  --shadow-sheet: 0 18px 50px -22px rgba(13, 27, 42, .45), 0 2px 6px rgba(13, 27, 42, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(14px, 3vw, 32px);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 21px; height: 21px; }

.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.brand-text small { font-size: 11.5px; color: var(--muted); font-weight: 500; }

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

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .06s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-icon { display: inline-flex; }
.btn-icon svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(13, 27, 42, .18);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { opacity: .6; cursor: progress; }

.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }

.ghost-btn {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.ghost-btn:hover { background: #f8fafc; }

.btn-wa {
  background: var(--wa);
  color: #fff;
  width: 100%;
  padding: 12px 18px;
  box-shadow: 0 1px 2px rgba(13, 27, 42, .18);
}
.btn-wa:hover { background: var(--wa-hover); }

/* ---------- hero ---------- */

.hero {
  padding: clamp(22px, 4vw, 40px) clamp(14px, 3vw, 32px) 0;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.hero-copy h1 {
  font-size: clamp(22px, 3.2vw, 31px);
  font-weight: 700;
  letter-spacing: -.4px;
  line-height: 1.25;
}
.hero-copy p {
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 16px);
  max-width: 62ch;
}
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips li {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: var(--shadow-sm);
}
.hero-chips li::before {
  content: "✓";
  color: var(--wa);
  font-weight: 700;
  margin-inline-end: 6px;
}

/* ---------- workspace ---------- */

.workspace {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 20px clamp(14px, 3vw, 32px) 40px;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(360px, .92fr) minmax(0, 1.08fr);
  align-items: start;
}

.pane-form { display: grid; gap: 16px; min-width: 0; }

.mobile-tabs { display: none; }

/* ---------- form cards ---------- */

#cvForm { display: grid; gap: 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card > summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 15px;
  user-select: none;
}
.card > summary::-webkit-details-marker { display: none; }
.card > summary .chev {
  margin-inline-start: auto;
  width: 18px; height: 18px;
  color: var(--muted-2);
  transition: transform .18s ease;
}
.card[open] > summary .chev { transform: rotate(180deg); }
.card[open] > summary { border-bottom: 1px solid var(--line); }
.card[open] { box-shadow: var(--shadow-md); }

.card-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.card-icon svg { width: 17px; height: 17px; }

.card-hint {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
  margin-inline-start: 6px;
}

.card-body { padding: 16px; display: grid; gap: 14px; }

.field { display: grid; gap: 6px; min-width: 0; }
.field > label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted-2); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea, select {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
input::placeholder, textarea::placeholder { color: #a9b5c4; }
input:focus, textarea:focus, select:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 50, 79, .12);
}
textarea { resize: vertical; min-height: 84px; line-height: 1.6; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2 .span2 { grid-column: 1 / -1; }

/* repeatable items */

.items { display: grid; gap: 12px; }

.item {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafbfd;
  padding: 12px;
  display: grid;
  gap: 11px;
}
.item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.item-head .grow { flex: 1; }
.icon-btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 8px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink-2);
  padding: 0;
}
.icon-btn:hover { background: #f1f5f9; }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn.danger:hover { color: #b42318; border-color: #f3c3bd; background: #fef3f2; }
.icon-btn:disabled { opacity: .4; cursor: default; }

.add-btn {
  border: 1px dashed var(--line-strong);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.add-btn:hover { background: var(--primary-soft); border-color: var(--primary); }
.add-btn svg { width: 16px; height: 16px; }

.check-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.check-row input { width: 17px; height: 17px; accent-color: var(--primary); }

/* chips */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid #d7e3ef;
  border-radius: 999px;
  padding: 5px 8px 5px 12px;
  font-size: 13px;
  font-weight: 500;
}
.chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #6b8199;
  font-size: 15px;
  line-height: 1;
  padding: 0 2px;
}
.chip button:hover { color: #b42318; }

.chip-input { display: flex; gap: 8px; }
.chip-input input { flex: 1; }
.chip-input button { flex: 0 0 auto; }

/* design controls */

.tpl-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tpl {
  border: 1.5px solid var(--line-strong);
  background: #fff;
  border-radius: 12px;
  padding: 9px 8px 8px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  justify-items: center;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.tpl[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 50, 79, .1); }
.tpl-name { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

.tpl-mini {
  width: 100%;
  height: 62px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e8edf3;
  padding: 7px;
  display: grid;
  gap: 4px;
  overflow: hidden;
}
.tpl-mini i { display: block; background: #dfe6ee; border-radius: 2px; height: 4px; }
.tpl-mini .l { width: 100%; }
.tpl-mini .m { width: 70%; }
.tpl-mini .s { width: 45%; }
.tpl-mini .acc { background: #9fb3c8; }

.tpl-mini-classic { justify-items: center; }
.tpl-mini-classic i { justify-self: center; }
.tpl-mini-classic .title { height: 7px; width: 62%; background: #33475b; }
.tpl-mini-modern { padding: 0; gap: 3px; }
.tpl-mini-modern .band { height: 20px; border-radius: 5px 5px 0 0; background: #16324f; width: 100%; }
.tpl-mini-modern .inner { padding: 4px 6px; display: grid; gap: 3px; }
.tpl-mini-minimal .title { height: 6px; width: 55%; background: #33475b; }
.tpl-mini-minimal .rule { height: 2px; width: 22%; background: #16324f; }

.swatches { display: flex; gap: 9px; flex-wrap: wrap; }
.swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--line-strong);
  cursor: pointer;
  padding: 0;
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--primary); }

.seg { display: inline-flex; background: #eef2f7; border-radius: 11px; padding: 3px; gap: 3px; }
.seg button {
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.design-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.design-label { font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* data actions */

.data-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.data-actions .btn, .data-actions .ghost-btn { flex: 1 1 auto; }
.save-note { font-size: 12.5px; color: var(--muted-2); }

/* ---------- preview ---------- */

.pane-preview {
  position: sticky;
  top: 72px;
  background: #e9edf3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 92px);
  overflow: hidden;
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .75);
  border-bottom: 1px solid var(--line);
}
.preview-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.preview-pages { font-size: 12.5px; color: var(--muted); margin-inline-end: auto; }
.preview-bar .btn { margin-inline-start: auto; }

.sheet-wrap {
  overflow: auto;
  padding: 16px;
  flex: 1;
  scrollbar-width: thin;
}
.sheet-holder { position: relative; margin: 0 auto; }
.sheet {
  position: absolute;
  top: 0;
  left: 0;
  width: 794px;
  min-height: 1123px;
  background: #fff;
  box-shadow: var(--shadow-sheet);
  transform-origin: top left;
  background-image: repeating-linear-gradient(to bottom, transparent 0 1122px, #eef1f5 1122px 1123px);
}

/* ---------- the CV itself ---------- */

.cv {
  --accent: #1f3a5f;
  font-family: var(--font);
  color: #111827;
  font-size: 12.4px;
  line-height: 1.5;
  padding-bottom: 64px;
}
.cv-head { padding: 64px 64px 0; }
.cv-body { padding: 0 64px; }

.cv h1 {
  font-size: 33px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.3px;
}
.cv .cv-role { font-size: 15.3px; font-weight: 600; margin-top: 3px; }
.cv .cv-contact {
  margin-top: 12px;
  font-size: 12.3px;
  color: #4b5563;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
}
.cv .cv-contact span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.cv .cv-contact span:not(:last-child)::after { content: "•"; color: #cbd5e1; }

.cv-sec { margin-top: 14px; }
.cv-sec h2 { font-size: 14px; font-weight: 700; }
.cv-sec p { margin-top: 3px; color: #374151; }
.cv-sec ul { margin-top: 3px; padding-inline-start: 16px; list-style: disc; }
.cv-sec li { color: #374151; margin-top: 1px; }
.cv-sec li::marker { color: var(--accent); }

.cv-item { margin-top: 7px; }
.cv-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.cv-item-title { font-weight: 700; font-size: 13.6px; }
.cv-item-date { font-size: 12.1px; white-space: nowrap; }
.cv-item-sub { font-size: 12.1px; color: #4b5563; margin-top: 1px; }

.cv-empty { color: #b6c1cf; }

/* classic */
.cv.tpl-classic .cv-head { text-align: center; padding-bottom: 14px; border-bottom: 1.6px solid var(--accent); position: relative; }
.cv.tpl-classic .cv-head::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -4.6px;
  height: 1px;
  background: #d1d5db;
}
.cv.tpl-classic .cv-role { color: var(--accent); }
.cv.tpl-classic .cv-contact { justify-content: center; }
.cv.tpl-classic .cv-body { padding-top: 4px; }
.cv.tpl-classic .cv-sec h2 {
  color: var(--accent);
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 3px;
}
.cv.tpl-classic .cv-item-date { color: var(--accent); }

/* modern */
.cv.tpl-modern { padding-bottom: 0; }
.cv.tpl-modern .cv-head {
  background: var(--accent);
  color: #fff;
  padding: 44px 46px 36px;
  border-bottom: 3px solid var(--accent);
}
.cv.tpl-modern .cv-role { color: #e6eef7; }
.cv.tpl-modern .cv-contact { color: #dbe6f2; }
.cv.tpl-modern .cv-contact span:not(:last-child)::after { color: rgba(255, 255, 255, .45); }
.cv.tpl-modern .cv-body { padding: 20px 46px 46px; }
.cv.tpl-modern .cv-sec h2 { color: var(--accent); position: relative; padding-bottom: 6px; }
.cv.tpl-modern .cv-sec h2::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 26px;
  height: 1.8px;
  background: var(--accent);
}
.cv.tpl-modern .cv-sec h2::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: #e5e7eb;
}
.cv.tpl-modern .cv-item-date { color: var(--accent); }

/* minimal */
.cv.tpl-minimal h1 { font-size: 32px; }
.cv.tpl-minimal .cv-head { padding-bottom: 0; }
.cv.tpl-minimal .cv-role { color: #6b7280; font-weight: 400; font-size: 14.5px; }
.cv.tpl-minimal .cv-contact { color: #6b7280; font-size: 12px; }
.cv.tpl-minimal .cv-contact span:not(:last-child)::after { content: "·"; color: #d1d5db; }
.cv.tpl-minimal .cv-rule { width: 58px; height: 2.4px; background: var(--accent); margin-top: 14px; }
.cv.tpl-minimal .cv-body { padding-top: 6px; }
.cv.tpl-minimal .cv-sec h2 {
  font-size: 12.4px;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.cv.tpl-minimal .cv-sec ul { list-style: none; padding-inline-start: 0; }
.cv.tpl-minimal .cv-sec li { position: relative; padding-inline-start: 14px; }
.cv.tpl-minimal .cv-sec li::before {
  content: "–";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
}
.cv.tpl-minimal .cv-item-date { color: #6b7280; }

.cv[dir="rtl"] .cv-sec h2 { letter-spacing: normal; }

/* ---------- service card ---------- */

.service {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #d9e3ee;
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--wa), #0f766e);
}
.service-badge {
  justify-self: start;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #0f6b3d;
  background: #e7f7ee;
  border: 1px solid #bfe8d2;
  border-radius: 999px;
  padding: 3px 10px;
}
.service h3 { font-size: 17px; font-weight: 700; }
.service p { font-size: 13.5px; color: var(--muted); }
.service-note { font-size: 11.5px; color: var(--muted-2); }

/* ---------- footer ---------- */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 20px clamp(14px, 3vw, 32px) 30px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.mobile-download { display: none; }

/* ---------- toast / overlay ---------- */

.toast {
  position: fixed;
  inset-inline: 0;
  bottom: 22px;
  margin: 0 auto;
  width: max-content;
  max-width: 92vw;
  background: #0d1b2a;
  color: #fff;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 11px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translateY(0); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, .38);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 70;
}
.overlay[hidden] { display: none; }
.overlay-card {
  background: #fff;
  border-radius: 16px;
  padding: 26px 30px;
  display: grid;
  justify-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  color: var(--ink-2);
}
.spinner {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .pane-preview {
    position: static;
    max-height: none;
    display: none;
  }
  .workspace[data-tab="preview"] .pane-preview { display: flex; }
  .workspace[data-tab="preview"] .pane-form { display: none; }
  .mobile-tabs {
    display: flex;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    position: sticky;
    top: 62px;
    z-index: 20;
    box-shadow: var(--shadow-sm);
  }
  .tab {
    flex: 1;
    border: 0;
    background: transparent;
    border-radius: 9px;
    padding: 9px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
  }
  .tab.is-active { background: var(--primary); color: #fff; }
  .sheet-wrap { padding: 12px; }
  .mobile-download {
    display: block;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    z-index: 45;
  }
  .pane-form { padding-bottom: 74px; }
  .preview-bar .btn { display: none; }
  .toast { bottom: 84px; }
}

@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .grid-2 { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .top-actions .btn span:not(.btn-icon) { display: none; }
  .top-actions .btn { padding: 9px 12px; }
  .hero { gap: 12px; }
  .tpl-row { gap: 8px; }
  .card-body { padding: 14px 13px; }
  .card > summary { padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
