/* 유즈킷 — 이미지 규격 변환기
   외부 요청 없이 동작하는 자체 완결형 스타일시트 */

:root {
  --bg: #f5f7fc;
  --bg-soft: #eef1f9;
  --card: #ffffff;
  --ink: #141b2d;
  --ink-2: #38415a;
  --muted: #68718a;
  --line: #e2e6f0;
  --line-strong: #cdd4e4;
  --brand: #3b5bfd;
  --brand-dark: #2b45d6;
  --brand-soft: #eef1ff;
  --ok: #0a8f52;
  --warn: #b45309;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 14px 32px -18px rgba(16, 24, 40, .28);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
          "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

/* hidden 속성은 display 규칙에 밀리므로 강제한다 (progress/queue 등 flex·grid 요소) */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
h2 { font-size: clamp(1.28rem, 2.6vw, 1.7rem); margin-top: 0; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
kbd {
  border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 5px; background: #fff; color: var(--ink-2);
}
img { max-width: 100%; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px;
  border-radius: 0 0 10px 0; z-index: 100;
}
.skip:focus { left: 0; }
.tiny { font-size: .8rem; line-height: 1.55; }
.muted { color: var(--muted); }
.h3 { font-size: 1.05rem; margin: 0; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt strong { font-size: 1rem; letter-spacing: -.02em; }
.brand-txt span { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.head-nav { display: flex; gap: 18px; margin-left: auto; }
.head-nav a { color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.head-nav a:hover { color: var(--brand); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-size: .93rem; font-weight: 700;
  padding: 10px 16px; border-radius: 10px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  transition: transform .06s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: transparent;
  box-shadow: 0 8px 18px -10px rgba(59, 91, 253, .85);
}
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-soft { --btn-bg: var(--brand-soft); --btn-fg: var(--brand-dark); --btn-bd: #dfe4ff; }
.btn-soft:hover:not(:disabled) { background: #e5eaff; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink-2); --btn-bd: transparent; }
.btn-ghost:hover:not(:disabled) { background: rgba(20, 27, 45, .06); }
.btn-sm { padding: 7px 12px; font-size: .84rem; border-radius: 9px; }
.btn-lg { padding: 14px 20px; font-size: 1rem; }
.btn-block { width: 100%; }
.link-btn {
  background: none; border: 0; padding: 0; font: inherit; font-size: .84rem;
  color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--brand); }

/* ---------- hero ---------- */
.hero { padding: 44px 0 26px; }
.eyebrow {
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 10px;
}
.h1-sub {
  display: block; margin-top: 8px; font-size: .5em; font-weight: 600;
  letter-spacing: -.01em; color: var(--muted);
}
.lead { max-width: 760px; font-size: 1.04rem; color: var(--ink-2); }
.lead strong { color: var(--ink); }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.hero-badges li {
  font-size: .8rem; font-weight: 700; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}
.hero-badges li::before { content: "✓"; color: var(--ok); margin-right: 6px; font-weight: 800; }

/* ---------- tool ---------- */
.tool { padding-bottom: 10px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 20px; align-items: start; }
.tool-main { min-width: 0; }

.dropzone {
  background: var(--card); border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  padding: 34px 22px; text-align: center; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-sm);
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--brand); background: #fbfcff; outline: none; }
.dropzone.is-drag { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px rgba(59, 91, 253, .12); }
.dz-icon { color: var(--brand); margin-bottom: 6px; }
.dz-title { font-size: 1.1rem; font-weight: 800; margin: 0 0 4px; }
.dz-sub { color: var(--muted); font-size: .85rem; margin: 0 0 16px; }
.dz-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.queue-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 14px; margin-top: 12px; box-shadow: var(--shadow-sm);
}
.queue-info { display: flex; align-items: baseline; gap: 8px; font-size: .9rem; }
.queue-info span { color: var(--muted); font-size: .82rem; }
.queue-actions { display: flex; gap: 6px; }

.progress-wrap {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-top: 12px; display: grid;
  grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center;
  box-shadow: var(--shadow-sm);
}
.progress-head { display: flex; justify-content: space-between; font-size: .86rem; font-weight: 700; }
.progress-head span:last-child { color: var(--brand); font-variant-numeric: tabular-nums; }
.progress { grid-column: 1; height: 8px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), #7b5cff); transition: width .25s ease; }
.progress-wrap .btn { grid-row: 1 / span 2; grid-column: 2; }

.results-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin: 22px 0 10px; flex-wrap: wrap;
}
.results-head .muted { font-weight: 600; font-size: .84rem; }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.result {
  display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; box-shadow: var(--shadow-sm);
}
.result.is-error { border-color: #f3c9c9; background: #fff8f8; }
.result-thumb {
  width: 60px; height: 60px; border-radius: 8px; object-fit: cover;
  background: var(--bg-soft) repeating-conic-gradient(#eef1f9 0 25%, #fff 0 50%) 50% / 12px 12px;
  border: 1px solid var(--line);
}
.result-thumb-err {
  display: flex; align-items: center; justify-content: center;
  color: #d05a4f; font-weight: 800; font-size: 1.1rem; background: #fff2f1;
}
.result-name {
  font-size: .88rem; font-weight: 700; margin: 0 0 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.result-meta { font-size: .78rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.result-meta b { color: var(--ok); font-weight: 700; }
.result-meta .warn { color: var(--warn); font-weight: 700; }
.result-acts { display: flex; gap: 6px; }

.empty-state { margin-top: 22px; text-align: center; }
.spec-preview {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow-sm);
}
.sp-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  font-size: .82rem; color: var(--muted); padding: 5px 8px; border-radius: 8px; background: var(--bg);
}
.sp-row b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- panel ---------- */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); position: sticky; top: 78px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.field { border: 0; padding: 0; margin: 0 0 18px; }
.field > legend {
  padding: 0; font-size: .8rem; font-weight: 800; color: var(--ink-2);
  letter-spacing: .01em; margin-bottom: 8px;
}
.legend-val {
  font-weight: 700; color: var(--brand); background: var(--brand-soft);
  border-radius: 6px; padding: 1px 7px; font-variant-numeric: tabular-nums;
}
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.preset {
  text-align: left; font: inherit; cursor: pointer; font-size: .82rem; font-weight: 700;
  background: #fff; color: var(--ink-2); border: 1px solid var(--line);
  border-radius: 9px; padding: 7px 9px; line-height: 1.3;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.preset span { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); margin-top: 1px; }
.preset:hover { border-color: var(--line-strong); background: #fbfcff; }
.preset.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); box-shadow: inset 0 0 0 1px var(--brand); }
.preset.is-active span { color: var(--brand); }
.custom-size { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.custom-size label { font-size: .76rem; font-weight: 700; color: var(--muted); }
.custom-size input { margin-top: 3px; }

input[type="text"], input[type="number"], select {
  width: 100%; font: inherit; font-size: .88rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 8px 10px; transition: border-color .12s ease, box-shadow .12s ease;
}
input[type="text"]:focus, input[type="number"]:focus, select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59, 91, 253, .14);
}
input[type="color"] {
  width: 34px; height: 30px; padding: 0; border: 1px solid var(--line-strong);
  border-radius: 7px; background: #fff; cursor: pointer;
}
input[type="range"] { width: 100%; accent-color: var(--brand); margin: 2px 0 0; }
.row-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--bg-soft); border-radius: 10px; padding: 3px; }
.seg button {
  font: inherit; font-size: .8rem; font-weight: 700; color: var(--ink-2);
  background: transparent; border: 0; border-radius: 8px; padding: 7px 4px; cursor: pointer;
}
.seg button.is-active { background: #fff; color: var(--brand-dark); box-shadow: var(--shadow-sm); }

.help { font-size: .74rem; color: var(--muted); margin: 7px 0 0; line-height: 1.5; }
.help code { background: var(--bg); border-radius: 4px; padding: 0 4px; }
.range-scale { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted); margin-top: 2px; }
.bg-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; font-size: .78rem; font-weight: 700; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; cursor: pointer; }
.check input { accent-color: var(--brand); }

.wm-grid-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; margin-top: 8px; align-items: start; }
.wm-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
  background: var(--bg-soft); border-radius: 9px; padding: 3px;
}
.wm-grid button {
  aspect-ratio: 1;
  min-height: 26px; /* aspect-ratio 미지원 브라우저 대비 */ border: 0; border-radius: 6px; background: transparent; cursor: pointer;
  position: relative; padding: 0;
}
.wm-grid button::after {
  content: ""; position: absolute; inset: 38%; border-radius: 50%;
  background: var(--line-strong); transition: background .12s ease;
}
.wm-grid button:hover::after { background: var(--muted); }
.wm-grid button.is-active { background: #fff; box-shadow: var(--shadow-sm); }
.wm-grid button.is-active::after { background: var(--brand); }
.wm-tuning { display: grid; gap: 6px; }
.wm-tuning label { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; }
.wm-tuning .color-line { grid-template-columns: 42px auto; }
.logo-pick { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.logo-pick .btn { flex: 0 0 auto; }

/* ---------- 출력 형식 · 변형 · PDF/SVG 옵션 ---------- */
.seg-2 { grid-template-columns: repeat(2, 1fr); }
.preset-wrap { margin-top: 10px; }
.percent-wrap { margin-top: 10px; }
.pct-line { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.pct-line input { width: 84px; }
.quick-row { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.quick-row button, .chip {
  font: inherit; font-size: .76rem; font-weight: 700; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; cursor: pointer;
}
.quick-row button:hover, .chip:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.select-line {
  display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; color: var(--muted); margin-top: 8px;
}
.select-line select { font-weight: 600; }
.rot-row { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 4px; }
.rot-row button {
  font: inherit; font-size: .78rem; font-weight: 700; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 4px; cursor: pointer;
}
.rot-row button:hover { border-color: var(--brand); color: var(--brand-dark); }
.rot-row button.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.rot-row .rot-reset { color: var(--muted); border-style: dashed; }
.rot-row .rot-reset:disabled { opacity: .45; cursor: default; }
.range-line { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); margin-top: 8px; }
.range-line .legend-val { margin-left: 4px; }
.result-thumb-doc {
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: var(--brand-dark);
  background: var(--brand-soft); border: 1px solid #dfe4ff;
}

.privacy-note { font-size: .74rem; color: var(--muted); text-align: center; margin: 10px 0 0; line-height: 1.5; }

/* ---------- ads ---------- */
.ad-slot {
  margin: 26px auto; min-height: 96px; display: flex; align-items: center; justify-content: center;
  position: relative; background: #fff; border: 1px dashed var(--line-strong); border-radius: 12px;
  color: var(--muted); font-size: .74rem;
}
.ad-slot .ad-label {
  position: absolute; top: 6px; left: 8px; font-size: .62rem; letter-spacing: .08em;
  text-transform: uppercase; color: #9aa2b6;
}
.ad-slot > .ad-label:only-child::after { content: " 영역"; opacity: .5; }

/* ---------- sections ---------- */
.section { padding: 34px 0; }
.section-lead { max-width: 800px; color: var(--ink-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps-4 { grid-template-columns: repeat(2, 1fr); }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.step p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px; margin-bottom: 10px;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: .85rem;
}
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hub-badge { display: inline-block; margin-bottom: 7px; padding: 2px 8px; border-radius: 999px;
  background: #eef1ff; color: #2b45d6; font-size: .68rem; font-weight: 800; letter-spacing: .02em; }
.mini-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.mini-card p { margin: 0; font-size: .9rem; color: var(--ink-2); }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: .87rem; min-width: 640px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); font-size: .78rem; color: var(--ink-2); letter-spacing: .01em; white-space: nowrap; }
tbody th { font-weight: 700; color: var(--ink); width: 22%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcff; }
td b { color: var(--brand-dark); }

.faq { display: grid; gap: 8px; max-width: 900px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 16px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: .93rem; padding: 13px 0;
  list-style: none; position: relative; padding-right: 26px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  color: var(--brand); font-size: 1.2rem; font-weight: 700; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { font-size: .89rem; color: var(--ink-2); margin: 0 0 14px; }

.pro-box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(120deg, #f0f3ff, #f7f4ff 60%, #ffffff);
  border: 1px solid #dfe4ff; border-radius: var(--radius); padding: 24px;
}
.pro-box h2 { margin-bottom: 6px; }
.pro-box p { margin: 0; max-width: 620px; font-size: .9rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: #fff; margin-top: 30px; padding: 26px 0 34px; }
.foot-in { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.foot-in nav { display: flex; gap: 16px; font-size: .85rem; }
.brand-foot { margin-bottom: 6px; }
.site-foot p { margin: 0; }

/* ---------- 문서 페이지 (privacy / terms) ---------- */
.doc { max-width: 860px; margin: 0 auto; padding: 36px 20px 46px; }
.doc h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 6px; }
.doc h2 { font-size: 1.12rem; margin: 30px 0 8px; padding-top: 4px; }
.doc p, .doc li { font-size: .93rem; color: var(--ink-2); }
.doc ul { padding-left: 20px; margin: 0 0 1em; }
.doc li { margin-bottom: 5px; }
.doc code { background: var(--bg-soft); border-radius: 4px; padding: 1px 5px; }
.doc .callout {
  background: var(--brand-soft); border: 1px solid #dfe4ff; border-radius: 12px;
  padding: 14px 16px; font-size: .9rem; color: var(--brand-dark); margin: 18px 0 8px;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .tool-grid { grid-template-columns: 1fr; }
  .panel { position: static; order: -1; }
  .steps, .cards-3 { grid-template-columns: 1fr; }
  .head-nav { display: none; }
  .head-cta { margin-left: auto; }
  .pro-box { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .hero { padding: 26px 0 16px; }
  .dropzone { padding: 26px 14px; }
  .result { grid-template-columns: 48px minmax(0, 1fr); }
  .result-thumb { width: 48px; height: 48px; }
  .result-acts { grid-column: 1 / -1; justify-content: flex-end; }
  .presets { grid-template-columns: 1fr 1fr; }
  .rot-row { grid-template-columns: repeat(4, 1fr); }
  .rot-row .rot-reset { grid-column: 1 / -1; }
  .wm-grid-row { grid-template-columns: 1fr; }
  .wm-grid { width: 120px; }
  .queue-bar { flex-direction: column; align-items: stretch; }
  .queue-actions { justify-content: flex-end; }
  th, td { padding: 9px 10px; }
}

/* ---------- print ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
