/* ===========================================
   Microteaching-Bibliothek
   Baut auf /style.css (pf-tool-main / pf-tool-frame) auf.
   =========================================== */

.mtl-body {
  --mtl-primary: #3b22a3;
  --mtl-primary-dark: #2a1880;
  --mtl-primary-soft: #f3f0fb;
  --mtl-primary-line: #ded8ee;
  --mtl-accent: #ffd45a;
  --mtl-accent-dark: #f4c542;
  --mtl-ink: #17254d;
  --mtl-muted: #5b6380;
  --mtl-line: #e4e2ec;
  --mtl-bg: #f7f7fb;
  --mtl-ok: #1f7a4d;
  --mtl-error: #b00020;
  --mtl-radius: 14px;
  --mtl-shadow: 0 1px 2px rgba(23, 37, 77, 0.06), 0 6px 20px rgba(23, 37, 77, 0.06);
  --mtl-shadow-hover: 0 2px 4px rgba(23, 37, 77, 0.08), 0 14px 34px rgba(23, 37, 77, 0.14);
  --mtl-focus: 0 0 0 3px rgba(59, 34, 163, 0.3);
}

.mtl-main.pf-tool-main { max-width: 1320px; }
.pf-tool-frame.mtl-frame { max-width: none; padding: 0; background: transparent; box-shadow: none; }
.mtl-frame, .mtl-frame *, .mtl-dialog, .mtl-dialog *, .mtl-viewer, .mtl-viewer * { box-sizing: border-box; }
.mtl-dialog .mtl-seg { justify-self: start; }
.mtl-frame { color: var(--mtl-ink); }
.mtl-frame [hidden], .mtl-viewer [hidden], .mtl-dialog [hidden] { display: none !important; }

.mtl-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.mtl-icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kopf ---------- */
.mtl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: stretch;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 22px;
  background:
    radial-gradient(900px 300px at 100% 0%, rgba(255, 212, 90, 0.22), transparent 60%),
    linear-gradient(135deg, #3b22a3 0%, #2a1880 55%, #1c1460 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(42, 24, 128, 0.25);
  position: relative;
  overflow: hidden;
}
.mtl-hero::after {
  /* dezente Wellen */
  content: "";
  position: absolute; inset: auto -10% -60px -10%;
  height: 140px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.mtl-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 10px; padding: 5px 12px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #ffe8a3;
}
.mtl-hero h1, .pf-tool-frame .mtl-hero h1:first-of-type {
  margin: 0 0 10px; color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; font-weight: 800;
}
.mtl-hero-text { margin: 0; max-width: 60ch; color: rgba(255, 255, 255, 0.86); font-size: 1.05rem; line-height: 1.6; }
.mtl-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; padding: 0; list-style: none; }
.mtl-stats li { display: flex; flex-direction: column; }
.mtl-stats strong { font-size: 1.6rem; line-height: 1.1; color: var(--mtl-accent); }
.mtl-stats span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }

.mtl-account {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}
.mtl-account-title { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; font-size: 1.02rem; }
.mtl-account p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: rgba(255, 255, 255, 0.82); }
.mtl-account-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mtl-account a.mtl-link { color: #ffe8a3; font-weight: 600; font-size: 0.9rem; }

/* ---------- Buttons ---------- */
.mtl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--mtl-primary);
  border-radius: 999px;
  background: var(--mtl-primary);
  color: #fff;
  font: inherit; font-size: 0.93rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.mtl-btn:hover { background: var(--mtl-primary-dark); border-color: var(--mtl-primary-dark); color: #fff; }
.mtl-btn:active { transform: translateY(1px); }
.mtl-btn:focus-visible { outline: none; box-shadow: var(--mtl-focus); }
.mtl-btn--accent { background: var(--mtl-accent); border-color: var(--mtl-accent); color: var(--mtl-ink); }
.mtl-btn--accent:hover { background: #ffe18a; border-color: #ffe18a; color: var(--mtl-ink); }
.mtl-btn--ghost { background: #fff; color: var(--mtl-primary); border-color: var(--mtl-primary-line); }
.mtl-btn--ghost:hover { background: var(--mtl-primary-soft); border-color: var(--mtl-primary); color: var(--mtl-primary); }
.mtl-btn--quiet { background: transparent; border-color: transparent; color: var(--mtl-muted); padding-inline: 10px; }
.mtl-btn--quiet:hover { background: var(--mtl-primary-soft); border-color: transparent; color: var(--mtl-primary); }
.mtl-btn--small { padding: 7px 13px; font-size: 0.85rem; }
.mtl-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.mtl-btn--icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; }

/* ---------- Filter ---------- */
.mtl-toolbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center;
  margin: 22px 0 8px; padding: 12px;
  border: 1px solid var(--mtl-line);
  border-radius: var(--mtl-radius);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: var(--mtl-shadow);
}
.mtl-search { position: relative; flex: 1 1 260px; min-width: 0; }
.mtl-search .mtl-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--mtl-muted); pointer-events: none; }
.mtl-input, .mtl-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfcbe0;
  border-radius: 10px;
  background: #fff;
  color: var(--mtl-ink);
  font: inherit; font-size: 0.93rem;
}
.mtl-search .mtl-input { padding-left: 38px; }
.mtl-input:focus, .mtl-select:focus { outline: none; border-color: var(--mtl-primary); box-shadow: var(--mtl-focus); }
.mtl-select { width: auto; max-width: 100%; padding-right: 30px; cursor: pointer; }
.mtl-toolbar .mtl-select { flex: 0 1 200px; }

.mtl-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--mtl-bg); border: 1px solid var(--mtl-line); }
.mtl-seg button {
  border: 0; background: transparent; color: var(--mtl-muted);
  padding: 6px 12px; border-radius: 999px;
  font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.mtl-seg button[aria-pressed="true"] { background: var(--mtl-primary); color: #fff; box-shadow: 0 2px 6px rgba(59, 34, 163, 0.3); }
.mtl-seg button:focus-visible { outline: none; box-shadow: var(--mtl-focus); }

.mtl-resultbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 14px 2px 14px; color: var(--mtl-muted); font-size: 0.9rem; }
.mtl-resultbar strong { color: var(--mtl-ink); }

/* ---------- Karten ---------- */
.mtl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.mtl-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--mtl-line);
  border-radius: var(--mtl-radius);
  background: #fff;
  box-shadow: var(--mtl-shadow);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.mtl-card:hover { transform: translateY(-3px); box-shadow: var(--mtl-shadow-hover); border-color: var(--mtl-primary-line); }

.mtl-thumb {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0; border: 0; margin: 0;
  background: linear-gradient(135deg, #eeeaf9, #f8f6fd);
  cursor: pointer; overflow: hidden;
  border-bottom: 1px solid var(--mtl-line);
}
.mtl-thumb:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--mtl-primary); }
.mtl-thumb .mtl-slide { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.mtl-thumb-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 6px;
  color: var(--mtl-primary); font-weight: 800; letter-spacing: 0.06em;
}
.mtl-thumb-fallback .mtl-icon { width: 44px; height: 44px; stroke-width: 1.5; opacity: 0.85; }
.mtl-thumb-fallback span { font-size: 0.8rem; }
.mtl-thumb--video { background: linear-gradient(135deg, #1c1460, #3b22a3); }
.mtl-thumb--video .mtl-thumb-fallback { color: #fff; }
.mtl-thumb--video .mtl-thumb-fallback .mtl-icon { width: 54px; height: 54px; padding: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); fill: currentColor; stroke: none; }
.mtl-thumb-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(28, 20, 96, 0.45); color: #fff; opacity: 0; transition: opacity 0.18s ease;
}
.mtl-thumb-overlay span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.95); color: var(--mtl-primary); font-weight: 700; font-size: 0.9rem; }
.mtl-thumb:hover .mtl-thumb-overlay, .mtl-thumb:focus-visible .mtl-thumb-overlay { opacity: 1; }
.mtl-badges { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; gap: 6px; pointer-events: none; }
.mtl-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.94); color: var(--mtl-ink);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.mtl-badge--type { background: var(--mtl-primary); color: #fff; }
.mtl-badge--count { margin-left: auto; font-weight: 700; letter-spacing: 0; }

.mtl-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 16px; }
.mtl-crumb { margin: 0; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--mtl-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtl-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; color: var(--mtl-ink); }
.mtl-topic { margin: 0; font-size: 0.88rem; color: var(--mtl-muted); line-height: 1.4; }
.mtl-desc { margin: 2px 0 0; font-size: 0.88rem; color: #3f4766; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mtl-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.mtl-tag { padding: 2px 9px; border-radius: 999px; background: var(--mtl-primary-soft); color: var(--mtl-primary); font-size: 0.75rem; font-weight: 600; }
.mtl-card-meta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; font-size: 0.84rem; color: var(--mtl-muted); }
.mtl-avatar {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--mtl-accent); color: var(--mtl-ink);
  font-size: 0.72rem; font-weight: 800;
}
.mtl-card-meta .mtl-author { font-weight: 600; color: var(--mtl-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtl-card-meta time { margin-left: auto; white-space: nowrap; }
.mtl-card-actions { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--mtl-line); margin-top: 10px; }
.mtl-card-actions .mtl-btn { flex: 1 1 auto; }

.mtl-empty { grid-column: 1 / -1; padding: 50px 20px; text-align: center; color: var(--mtl-muted); border: 2px dashed var(--mtl-line); border-radius: var(--mtl-radius); background: #fff; }
.mtl-empty strong { display: block; font-size: 1.1rem; color: var(--mtl-ink); margin-bottom: 6px; }
.mtl-skeleton { aspect-ratio: 4 / 5; border-radius: var(--mtl-radius); background: linear-gradient(90deg, #f1eff7 0%, #f8f7fc 50%, #f1eff7 100%); background-size: 200% 100%; animation: mtl-shimmer 1.3s linear infinite; }
@keyframes mtl-shimmer { to { background-position: -200% 0; } }

/* ---------- Folie (Vorschau-Renderer) ---------- */
.mtl-slide {
  position: relative;
  width: 100%;
  container-type: inline-size;
  overflow: hidden;
  background: #fff;
  user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none;
  line-height: 1.2;
  color: #000;
  font-family: Calibri, Carlito, "Segoe UI", system-ui, sans-serif;
  text-align: left;
}
.mtl-slide img { -webkit-user-drag: none; user-select: none; pointer-events: none; max-width: none; }
.mtl-slide .el { position: absolute; }
.mtl-slide .img { overflow: hidden; }
.mtl-slide .img > img { position: absolute; display: block; }
.mtl-slide .tx { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: visible; }
.mtl-slide .tx.ctr { justify-content: center; }
.mtl-slide .tx.b { justify-content: flex-end; }
.mtl-slide .pa { margin: 0; white-space: pre-wrap; overflow-wrap: break-word; }
.mtl-slide .pa.nw { white-space: pre; }
.mtl-slide .bu { display: inline-block; text-indent: 0; }
.mtl-slide .sup { vertical-align: super; font-size: 0.66em; }
.mtl-slide .sub { vertical-align: sub; font-size: 0.66em; }
.mtl-slide svg.ln { position: absolute; overflow: visible; }
.mtl-slide .tbl { display: grid; overflow: hidden; }
.mtl-slide .tbl > div { position: relative; border: 0.08cqw solid rgba(255, 255, 255, 0.9); min-height: 0; }
.mtl-slide .tbl > div .tx { position: relative; inset: auto; height: 100%; }
.mtl-slide .chart { display: grid; place-items: center; border: 0.2cqw dashed #b8b3cc; border-radius: 1cqw; color: #7a7394; font-size: 2cqw; background: rgba(243, 240, 251, 0.6); }

/* ---------- Viewer ---------- */
.mtl-viewer {
  width: min(1400px, 100vw); max-width: 100vw;
  height: 100vh; max-height: 100vh; height: 100dvh; max-height: 100dvh;
  margin: 0 auto; padding: 0; border: 0;
  background: #120d3a; color: #fff;
}
.mtl-viewer::backdrop { background: rgba(10, 6, 36, 0.86); }
.mtl-viewer[open] { display: flex; flex-direction: column; }
.mtl-vhead { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mtl-vtitle { flex: 1; min-width: 0; }
.mtl-vtitle h2 { margin: 0; font-size: 1.05rem; line-height: 1.3; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; padding: 0; }
.mtl-vtitle p { margin: 2px 0 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtl-vactions { display: flex; align-items: center; gap: 8px; }
.mtl-viewer .mtl-btn--ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.mtl-viewer .mtl-btn--ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.mtl-vstage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 18px 70px; }
.mtl-vslide { width: 100%; max-height: 100%; display: grid; place-items: center; }
.mtl-vslide .mtl-slide { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); border-radius: 6px; }
.mtl-vnav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.mtl-vnav:hover { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.3); }
.mtl-vnav[disabled] { opacity: 0.25; }
.mtl-vnav--prev { left: 14px; }
.mtl-vnav--next { right: 14px; }
.mtl-vstatus { color: rgba(255, 255, 255, 0.75); text-align: center; padding: 20px; }
.mtl-vfoot { display: flex; align-items: center; gap: 14px; padding: 8px 16px 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.mtl-vcount { flex: none; min-width: 64px; font-variant-numeric: tabular-nums; font-weight: 700; color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; }
.mtl-strip { flex: 1; display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.3) transparent; }
.mtl-strip button {
  flex: none; width: 112px; padding: 0; border: 2px solid transparent; border-radius: 5px;
  background: rgba(255, 255, 255, 0.08); cursor: pointer; overflow: hidden; opacity: 0.6;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.mtl-strip button:hover { opacity: 0.9; }
.mtl-strip button[aria-current="true"] { border-color: var(--mtl-accent); opacity: 1; }
.mtl-strip button:focus-visible { outline: none; border-color: #fff; }
.mtl-strip .mtl-slide { pointer-events: none; }
.mtl-vnote { flex: none; max-width: 240px; font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); line-height: 1.35; }

/* ---------- Upload-Dialog ---------- */
.mtl-dialog {
  width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 18px;
  box-shadow: 0 24px 70px rgba(23, 37, 77, 0.35);
  color: var(--mtl-ink);
}
.mtl-dialog::backdrop { background: rgba(23, 20, 60, 0.5); }
.mtl-dialog form { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.mtl-dhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--mtl-line); }
.mtl-dhead h2 { margin: 0; font-size: 1.2rem; color: var(--mtl-primary); border: 0; padding: 0; }
.mtl-dbody { display: grid; gap: 14px; padding: 18px 22px; overflow-y: auto; }
.mtl-dfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--mtl-line); background: var(--mtl-bg); }
.mtl-dfoot .mtl-status { margin-right: auto; font-size: 0.88rem; color: var(--mtl-muted); }
.mtl-dfoot .mtl-status.is-error { color: var(--mtl-error); font-weight: 600; }
.mtl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.mtl-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mtl-field > span, .mtl-fieldset legend { font-weight: 600; font-size: 0.88rem; color: #333a55; }
.mtl-field .mtl-select { width: 100%; }
.mtl-hint { font-size: 0.8rem; color: var(--mtl-muted); }
textarea.mtl-input { resize: vertical; min-height: 76px; line-height: 1.45; }
.mtl-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.mtl-fieldset legend { padding: 0; margin-bottom: 6px; }
.mtl-drop {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border: 2px dashed #cfcbe0; border-radius: 12px; background: var(--mtl-bg);
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.mtl-drop:hover, .mtl-drop.is-over { border-color: var(--mtl-primary); background: var(--mtl-primary-soft); }
.mtl-drop .mtl-icon { width: 28px; height: 28px; color: var(--mtl-primary); }
.mtl-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mtl-drop strong { display: block; font-size: 0.92rem; }
.mtl-drop small { color: var(--mtl-muted); }
.mtl-or { display: flex; align-items: center; gap: 10px; color: var(--mtl-muted); font-size: 0.8rem; }
.mtl-or::before, .mtl-or::after { content: ""; flex: 1; height: 1px; background: var(--mtl-line); }

.mtl-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 1000;
  transform: translate(-50%, 10px);
  padding: 11px 18px; border-radius: 12px;
  background: var(--mtl-ink); color: #fff; font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.mtl-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .mtl-hero { grid-template-columns: 1fr; }
  .mtl-toolbar { position: static; }
  .mtl-toolbar .mtl-select { flex: 1 1 160px; }
}
@media (max-width: 700px) {
  .mtl-vstage { padding: 10px 6px 60px; }
  .mtl-vnav { top: auto; bottom: 8px; transform: none; }
  .mtl-vnav--prev { left: calc(50% - 52px); }
  .mtl-vnav--next { right: calc(50% - 52px); }
  .mtl-vnote { display: none; }
  .mtl-strip button { width: 84px; }
  .mtl-vactions .mtl-btn span { display: none; }
  .mtl-vactions .mtl-btn:not(.mtl-btn--icon) { padding: 10px 12px; }
}
@media (max-width: 600px) {
  .mtl-main.pf-tool-main { padding: 12px 10px; }
  .mtl-hero { border-radius: 16px; }
  .mtl-grid { grid-template-columns: 1fr; }
  .mtl-seg { width: 100%; justify-content: space-between; }
  .mtl-seg button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .mtl-card, .mtl-thumb-overlay, .mtl-btn, .mtl-toast { transition: none; }
  .mtl-card:hover { transform: none; }
  .mtl-skeleton { animation: none; }
}
