/* ==========================================================================
   PerosekResize Tool – Social Media Resizer
   --------------------------------------------------------------------------
   1. Fonty            5. Úvod (hero)          9. Pracovní plocha – krok 3
   2. Design tokeny    6. Panely a hlavičky   10. Patička
   3. Základ           7. Krok 1              11. Oznámení a stavy
   4. Hlavička         8. Krok 2              12. Responzivita
   ========================================================================== */

/* 1. Fonty (lokálně, bez externích požadavků) ----------------------------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Design tokeny -------------------------------------------------------- */
:root {
  /* písma */
  --f-display: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-text: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* pozadí */
  --bg: #0a0c1c;
  --bg-top: #080a17;

  /* text */
  --t-100: #f5f6ff;   /* hlavní */
  --t-200: #dcdeec;   /* názvy řádků */
  --t-300: #d9d8ed;   /* aktivní krok */
  --t-400: #8589a2;   /* popisy */
  --t-500: #7b7f98;   /* drobné nadpisky */
  --t-600: #686b84;
  --t-700: #565a72;
  --t-800: #41445e;

  /* akcenty */
  --accent: #8a69f5;          /* fialová */
  --accent-rgb: 138, 105, 245;
  --accent-soft: #a48aff;
  --accent-icon: #9e89f2;
  --accent-value: #b9a8f2;
  --pink: #e85aad;
  --pink-rgb: 232, 90, 173;
  --pink-soft: #eb8bc8;
  --ok: #6bd6b8;
  --ok-rgb: 107, 214, 184;
  --danger: #ff7a8c;
  --danger-rgb: 255, 122, 140;
  --warn: #f5c26b;

  /* obrysy */
  --stroke: rgba(255, 255, 255, .10);
  --stroke-soft: rgba(255, 255, 255, .08);

  /* poloměry */
  --r-panel: 20px;
  --r-stage: 18px;
  --r-tile: 12px;
  --r-row: 12px;

  /* stage */
  --stage-light: #2e303f;
  --stage-dark: #0a0d1d;
  --frame-bg: #15172b;
}

/* 3. Základ --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: #090b19;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  color: var(--t-100);
  font-family: var(--f-text);
  font-size: 12px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Pozadí z návrhu: tmavý základ + měkké světelné skvrny
     (fialová vlevo, růžová vpravo, modrofialová záře uprostřed nahoře). */
  background:
    radial-gradient(ellipse 183px 249px at calc(100% - 24px) 291px, rgba(41, 24, 56, .70) 45%, rgba(41, 24, 56, 0) 100%),
    radial-gradient(ellipse 195px 275px at 30px 509px, rgba(35, 28, 96, .41) 45%, rgba(35, 28, 96, 0) 100%),
    radial-gradient(ellipse 514px 648px at 50% 416px, rgba(23, 24, 59, .63) 40%, rgba(23, 24, 59, 0) 100%),
    radial-gradient(ellipse 1737px 787px at 72.4% 391px, rgb(12, 15, 34) 30%, rgba(12, 15, 34, 0) 100%),
    radial-gradient(ellipse 2882px 698px at -495px 922px, rgba(76, 98, 207, .06) 30%, rgba(76, 98, 207, 0) 100%),
    linear-gradient(180deg, #080a17 0, #090b19 1304px),
    #090b19;
}

h1, h2, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

.noscript {
  margin: 0; padding: 14px 20px;
  background: #3a1d2c; color: #ffd5de; text-align: center; font-size: 13px;
}

.shell {
  width: min(1500px, calc(100% - 64px));
  margin-inline: auto;
}

/* 4. Hlavička ------------------------------------------------------------- */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 16px;
  height: 80px;
  border-bottom: 1px solid var(--stroke-soft);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  border-radius: 12px;
}
.brand__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 20px;
  background: linear-gradient(135deg, #a07cfd 0%, #795bee 100%);
  box-shadow: 0 6px 20px -4px rgba(var(--accent-rgb), .55), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.brand__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -.012em;
  color: var(--t-100);
}
.brand__name span { color: var(--accent-soft); }

/* stepper */
.stepper { justify-self: center; display: flex; align-items: center; }
.step { display: flex; align-items: center; gap: 8px; }
.step__dot {
  width: 25px; height: 25px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  font-weight: 600;
  font-size: 10px;
  line-height: 1;
  color: #757991;
  transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
.step__label {
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .02em;
  color: #757991;
  transition: color .25s;
}
.step.is-on .step__dot {
  background: rgb(37, 34, 76);
  border-color: #8b6df4;
  color: #fff;
}
.step.is-on .step__label { color: var(--t-300); }
.step__line {
  width: 42px; height: 1px;
  margin: 0 14px 0 15px;
  background: rgba(255, 255, 255, .125);
}
.step:last-child { margin-right: 0; }

.btn-ghost {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 2px 0 6px;
  border: 0; border-radius: 8px;
  background: none;
  font-size: 12px; line-height: 1; letter-spacing: .01em;
  color: #82869e;
  transition: color .2s;
}
.btn-ghost .icon { font-size: 13px; }
.btn-ghost:hover { color: var(--t-100); }
.btn-ghost:active .icon { transform: rotate(-60deg); }
.btn-ghost .icon { transition: transform .25s; }

/* 5. Úvod (hero) ---------------------------------------------------------- */
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 43px 0 35px;
}
.eyebrow {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #9b82f5;
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 52px;
  line-height: 55px;
  letter-spacing: -.0435em;
  color: var(--t-100);
}
.grad {
  display: inline-block;
  padding-bottom: .08em; margin-bottom: -.08em; /* nezařízne podtržení písmen g/p */
  background: linear-gradient(90deg, #bda8fe 0%, #f08ec6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__desc {
  max-width: 325px;
  padding-bottom: 2px;
  font-size: 13px;
  line-height: 22px;
  color: var(--t-400);
}

/* 6. Panely a hlavičky ---------------------------------------------------- */
.workspace {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: start;
}

.panel {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-panel);
  /* jemně indigový přechod z návrhu (indigo-400, diagonálně slábne) */
  background: linear-gradient(136deg, rgba(129, 140, 248, .115) 0%, rgba(129, 140, 248, .013) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 26px 60px -34px rgba(0, 0, 0, .65);
}
.panel--export { background: linear-gradient(130deg, rgba(129, 140, 248, .096) 0%, rgba(129, 140, 248, .018) 100%); }

.panel--source { padding-bottom: 7px; } /* v návrhu seznam formátů téměř dosahuje ke spodní hraně */
.head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tile {
  flex: none;
  width: 37px; height: 37px;
  display: grid; place-items: center;
  border-radius: var(--r-tile);
  border: 1px solid rgba(var(--accent-rgb), .32);
  background: rgba(var(--accent-rgb), .14);
  color: var(--accent-icon);
}
.tile .icon { width: 27px; height: 27px; stroke-width: 1.45; }
.soft { opacity: .55; stroke-width: 1.2; } /* v <symbol> platí selektor původního prvku */
.tile--pink {
  border-color: rgba(var(--pink-rgb), .3);
  background: rgba(var(--pink-rgb), .13);
  color: var(--pink-soft);
}
.kicker {
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 9px;
  line-height: 11px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--t-500);
}
.head h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0;
  color: var(--t-100);
}

/* 7. Krok 1 – nahrání a formáty ------------------------------------------- */
.dropzone {
  position: relative;
  height: 131px;
  margin-top: 19px;
  border-radius: 16px;
  background: rgba(var(--accent-rgb), .05);
  transition: background-color .2s, box-shadow .2s;
}
/* čárkované ohraničení 2:1 jako v návrhu */
.dropzone::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect x='.65' y='.65' width='calc(100%25 - 1.3px)' height='calc(100%25 - 1.3px)' rx='15.4' ry='15.4' fill='none' stroke='%238a69f5' stroke-opacity='.36' stroke-width='1.3' stroke-dasharray='2 1'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transition: opacity .2s;
}
.dropzone__btn {
  position: absolute; inset: 0;
  width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 19.5px 12px 0;
  border: 0; border-radius: inherit;
  background: none;
  text-align: center;
}
.dropzone__icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: rgb(43, 39, 86);
  color: #b39cff;
  font-size: 16px;
  transition: transform .25s, background-color .2s;
}
.dropzone__title {
  font-weight: 600;
  font-size: 11.3px;
  line-height: 14px;
  color: var(--t-100);
}
.dropzone__sub {
  margin-top: 3px;
  font-size: 9px;
  line-height: 14px;
  color: #747892;
}
.dropzone__hint {
  margin-top: 8px;
  font-size: 8px;
  line-height: 12px;
  letter-spacing: 0;
  color: #4c4f69;
}
@media (hover: hover) {
  .dropzone:hover { background: rgba(var(--accent-rgb), .08); }
  .dropzone:hover .dropzone__icon { transform: translateY(-2px); background: rgb(52, 46, 102); }
}
.dropzone__btn:focus-visible { outline-offset: -3px; }
.dropzone.is-dragover { background: rgba(var(--accent-rgb), .16); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .22); }
.dropzone.is-dragover::before { opacity: 0; }
.dropzone.is-dragover { box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb), .8), 0 0 0 3px rgba(var(--accent-rgb), .18); }
.dropzone.is-dragover .dropzone__icon { transform: translateY(-3px) scale(1.06); background: rgb(70, 58, 140); }
.dropzone.is-error { background: rgba(var(--danger-rgb), .06); }
.dropzone.is-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect x='.65' y='.65' width='calc(100%25 - 1.3px)' height='calc(100%25 - 1.3px)' rx='15.4' ry='15.4' fill='none' stroke='%23ff7a8c' stroke-opacity='.6' stroke-width='1.3' stroke-dasharray='2 1'/%3E%3C/svg%3E");
}
.dropzone.is-error .dropzone__hint { color: var(--danger); font-size: 9px; line-height: 12px; letter-spacing: 0; }
.dropzone.is-busy .dropzone__icon { background: rgb(43, 39, 86); }
.dropzone.is-busy .dropzone__icon .icon { opacity: 0; }
.dropzone.is-busy .dropzone__icon::after {
  content: ''; position: absolute;
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(179, 156, 255, .3); border-top-color: #b39cff;
  animation: spin .8s linear infinite;
}
.dropzone__icon { position: relative; }

.divider {
  display: flex; align-items: center; gap: 10px;
  height: 14px;
  margin-top: 21px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255, 255, 255, .05);
}
.divider span {
  font-weight: 600;
  font-size: 8px;
  line-height: 1;
  letter-spacing: .075em;
  text-transform: uppercase;
  color: var(--t-700);
}

.formats { display: grid; gap: 6px; margin-top: 10.5px; }

.format {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 13px;
  align-items: center;
  column-gap: 10px;
  height: 48px;
  padding: 0 12px 0 10px;
  border: 1px solid transparent;
  border-radius: var(--r-row);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.format__icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  font-size: 14px;
}
.format__icon .icon { font-size: 14px; }
.format__icon .icon--fill { font-size: 13px; }
/* velikosti značek podle návrhu */
.format__icon--ig-post .icon, .format__icon--ig-story .icon { font-size: 17px; }
.format__icon--facebook .icon { font-size: 15.5px; transform: translateY(-.5px); }
.format__icon--linkedin .icon { font-size: 17px; transform: translateY(-.5px); }
.format__icon--x .icon { font-size: 12px; transform: translateY(-.5px); }
.format__icon--tiktok .icon { font-size: 13px; }
.format__icon--youtube .icon { font-size: 14px; transform: translateY(-.5px); }
.format__icon--ig-post { color: #e85aad; }
.format__icon--ig-story { color: #b45df2; }
.format__icon--facebook { color: #5287f8; }
.format__icon--linkedin { color: #55a9ed; }
.format__icon--x { color: #dadce6; }
.format__icon--tiktok { color: #63e8e1; }
.format__icon--youtube { color: #ff5b69; }
.format__icon--custom { color: var(--accent-icon); }
.format__text { display: grid; gap: 2px; min-width: 0; }
.format__name {
  font-weight: 600;
  font-size: 10px;
  line-height: 13px;
  color: var(--t-200);
  white-space: nowrap;
}
.format__sub {
  font-size: 8px;
  line-height: 11px;
  color: #656882;
  white-space: nowrap;
}
.format__dims {
  font-size: 8px;
  line-height: 1;
  letter-spacing: .01em;
  color: #777b92;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.format__radio {
  position: relative;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .28);
  transition: border-color .2s;
}
.format__radio::after {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%;
  background: #9a7af1;
  transform: scale(0);
  transition: transform .2s cubic-bezier(.3, 1.5, .5, 1);
}
@media (hover: hover) {
  .format:hover { background: rgba(255, 255, 255, .03); }
  .format:hover .format__radio { border-color: rgba(255, 255, 255, .45); }
}
.format.is-selected {
  border-color: rgba(167, 139, 250, .38);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .17), rgba(var(--accent-rgb), .05));
}
.format.is-selected .format__radio { border-color: #9a7af1; }
.format.is-selected .format__radio::after { transform: scale(1); }
.format:has(.format__input:focus-visible) { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

/* 8. Krok 2 – úprava ořezu ------------------------------------------------ */
.editor { min-width: 0; }
.editor__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 3px 6px 0 6px;
  min-height: 54px;
  margin-bottom: 0;
  align-items: flex-start;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 25px; padding: 0 9px 0 9px;
  margin-top: 6px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ok-rgb), .2);
  background: rgba(52, 211, 153, .075);
  font-weight: 700;
  font-size: 8px;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ok);
  white-space: nowrap;
}
.pill__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 6px rgba(110, 231, 183, .75);
  animation: pulse 2.4s ease-in-out infinite;
}
body[data-state="empty"] .pill { opacity: .55; }
body[data-state="empty"] .pill__dot { animation: none; background: #5c6f6a; box-shadow: none; }

/* stage */
.stage {
  position: relative;
  height: 479px;
  display: flex; flex-direction: column;
  padding: 34px 32px 36px;
  border-radius: var(--r-stage);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04);
  background:
    linear-gradient(to bottom right, var(--stage-light) 25%, transparent 25.15%),
    linear-gradient(to bottom left, var(--stage-light) 25%, transparent 25.15%),
    linear-gradient(to top right, var(--stage-light) 25%, transparent 25.15%),
    linear-gradient(to top left, var(--stage-light) 25%, transparent 25.15%),
    var(--stage-dark);
}
.stage__area {
  position: relative;
  flex: 1; min-height: 0;
  display: grid; place-items: center;
}
.stage__hint {
  flex: none;
  margin-top: 16px;
  text-align: center;
  font-size: 10px;
  line-height: 12px;
  color: #6c7088;
}

/* ořezový rámeček */
.frame {
  --fw: 380px; --fh: 380px;
  position: relative;
  width: var(--fw); height: var(--fh);
  background: var(--frame-bg);
  /* měkký stín + jemná záře z návrhu */
  box-shadow: 0 24px 60px rgba(8, 10, 28, .6), 0 0 60px rgba(129, 140, 248, .12);
  touch-action: none;
  user-select: none; -webkit-user-select: none;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
.frame.is-dragging { cursor: grabbing; }
.frame:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 5px; }
.frame__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.frame::after { /* tenký světlý obrys */
  content: ''; position: absolute; inset: 0; z-index: 3;
  border: 1px solid rgba(255, 255, 255, .78);
  pointer-events: none;
}
.frame__grid {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  --g: rgba(255, 255, 255, .26);
  background:
    linear-gradient(var(--g), var(--g)) 33.333% 0 / 1px 100% no-repeat,
    linear-gradient(var(--g), var(--g)) 66.666% 0 / 1px 100% no-repeat,
    linear-gradient(var(--g), var(--g)) 0 33.333% / 100% 1px no-repeat,
    linear-gradient(var(--g), var(--g)) 0 66.666% / 100% 1px no-repeat;
}
.frame__corner {
  position: absolute; z-index: 4; pointer-events: none;
  width: 16px; height: 16px;
  --c: var(--t-100);
}
.frame__corner--tl { top: 0; left: 0; border-top: 3px solid var(--c); border-left: 3px solid var(--c); }
.frame__corner--tr { top: 0; right: 0; border-top: 3px solid var(--c); border-right: 3px solid var(--c); }
.frame__corner--bl { bottom: 0; left: 0; border-bottom: 3px solid var(--c); border-left: 3px solid var(--c); }
.frame__corner--br { bottom: 0; right: 0; border-bottom: 3px solid var(--c); border-right: 3px solid var(--c); }
.frame__badge {
  position: absolute; z-index: 5; left: 50%; bottom: 10px;
  transform: translateX(-50%);
  height: 19px; padding: 0 8px;
  display: inline-flex; align-items: center;
  border-radius: 7px;
  background: rgba(18, 16, 33, .93);
  font-weight: 500;
  font-size: 7px;
  line-height: 1;
  letter-spacing: .01em;
  color: #adadba;
  white-space: nowrap;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

/* prázdný stav rámečku */
.frame__empty, .frame__loading { display: none; }
.frame.is-empty { background: rgba(10, 13, 29, .55); box-shadow: none; cursor: pointer; touch-action: auto; }
.frame.is-empty .frame__canvas,
.frame.is-empty .frame__grid,
.frame.is-empty .frame__corner,
.frame.is-empty .frame__badge { display: none; }
.frame.is-empty::after { border: 1.5px dashed rgba(255, 255, 255, .24); inset: 0; }
.frame.is-empty .frame__empty {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  padding: 14px;
  width: 100%;
  border: 0; background: none; text-align: center;
  transition: background-color .2s;
}
.frame__empty-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgb(43, 39, 86);
  color: #b39cff;
  font-size: 17px;
  transition: transform .25s;
}
.frame__empty-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px; line-height: 17px;
  color: var(--t-100);
}
.frame__empty-sub {
  margin-top: 4px;
  max-width: 250px;
  font-size: 10px; line-height: 14px;
  color: var(--t-500);
}
@media (hover: hover) {
  .frame.is-empty:hover .frame__empty { background: rgba(var(--accent-rgb), .07); }
  .frame.is-empty:hover .frame__empty-icon { transform: translateY(-2px); }
}
.frame.is-dragover::after { border: 1.5px dashed rgba(var(--accent-rgb), .95); }
.frame.is-dragover .frame__empty { background: rgba(var(--accent-rgb), .14); }
.frame__empty:focus-visible { outline-offset: -4px; }

.frame__loading {
  position: absolute; inset: 0; z-index: 7;
  align-items: center; justify-content: center; flex-direction: column; gap: 12px;
  background: rgba(10, 13, 29, .82);
  font-size: 11px; color: var(--t-300);
}
.frame__loading:not([hidden]) { display: flex; }

.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .15);
  border-top-color: var(--accent-soft);
  animation: spin .8s linear infinite;
}

/* ovládání ořezu */
.controls {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 17px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-stage);
  background: linear-gradient(176deg, rgba(129, 140, 248, .098) 0%, rgba(129, 140, 248, .035) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: opacity .25s;
}
.slider { flex: 1 1 0; min-width: 0; }
.slider__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  height: 12px;
  font-size: 8px; line-height: 12px;
}
.slider__row label { color: #7c8095; }
.slider__row output {
  font-weight: 700;
  color: #b3a4ec;
  font-variant-numeric: tabular-nums;
}
.slider input[type="range"] {
  --p: 0%;
  display: block;
  width: 100%; height: 20px;
  margin: 13px 0 0;
  padding: 0;
  background: none;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
  touch-action: pan-y;
}
.slider input[type="range"]::-webkit-slider-runnable-track {
  height: 3px; border-radius: 3px;
  background: linear-gradient(to right, #8c6de8 var(--p), rgba(255, 255, 255, .15) var(--p));
}
.slider input[type="range"]::-moz-range-track {
  height: 3px; border-radius: 3px;
  background: linear-gradient(to right, #8c6de8 var(--p), rgba(255, 255, 255, .15) var(--p));
}
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 11px; height: 11px; margin-top: -4px;
  border-radius: 50%;
  border: 0;
  background: #b9a4ff;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .22), 0 1px 4px rgba(0, 0, 0, .5);
  transition: box-shadow .2s, transform .2s;
}
.slider input[type="range"]::-moz-range-thumb {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 0;
  background: #b9a4ff;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .22), 0 1px 4px rgba(0, 0, 0, .5);
}
.slider input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .3), 0 1px 4px rgba(0, 0, 0, .5); }
.slider input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .36), 0 1px 4px rgba(0, 0, 0, .5); }
.slider input[type="range"]:focus-visible { outline: none; }
.slider input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .4); }
.slider input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .4); }
.slider input[type="range"]:disabled { cursor: not-allowed; }
.slider input[type="range"]:disabled::-webkit-slider-runnable-track { background: rgba(255, 255, 255, .1); }
.slider input[type="range"]:disabled::-moz-range-track { background: rgba(255, 255, 255, .1); }
.slider input[type="range"]:disabled::-webkit-slider-thumb { opacity: 0; }
.slider input[type="range"]:disabled::-moz-range-thumb { opacity: 0; }
body[data-state="empty"] .slider__row,
body[data-state="loading"] .slider__row { opacity: .55; }

.btn-reset {
  flex: none;
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; margin-top: 14px; padding: 0 5px 0 5px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  font-size: 8px; line-height: 1; letter-spacing: .01em;
  color: #9094aa;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-reset .icon { font-size: 9px; transition: transform .35s; }
@media (hover: hover) {
  .btn-reset:not(:disabled):hover { background: rgba(255, 255, 255, .07); color: var(--t-100); border-color: rgba(255, 255, 255, .18); }
  .btn-reset:not(:disabled):hover .icon { transform: rotate(-90deg); }
}
.btn-reset:disabled { opacity: .45; }

/* 9. Krok 3 – export ------------------------------------------------------ */
.thumb {
  position: relative;
  height: 136px;
  margin-top: 21px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(0, 0, 0, .12);
  overflow: hidden;
  display: grid; place-items: center;
}
/* plátno je mimo tok, aby jeho velikost neovlivňovala výšku rámečku (jinak by se rozvržení měnilo podle historie) */
.thumb__canvas { display: none; position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; }
.thumb.has-image .thumb__canvas { display: block; }
.thumb__empty {
  padding: 0 28px;
  text-align: center;
  font-size: 9px; line-height: 13px;
  color: var(--t-700);
}
.thumb.has-image .thumb__empty { display: none; }
.thumb__chip {
  position: absolute; left: 10px; bottom: 8px;
  height: 14px; padding: 0 7px;
  display: inline-flex; align-items: center;
  border-radius: 5px;
  background: rgba(14, 12, 30, .8);
  font-weight: 500;
  font-size: 7px; line-height: 1;
  color: #e4e4ee;
  max-width: calc(100% - 20px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.note {
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 10px;
  font-size: 9px; line-height: 12px;
  color: var(--warn);
}
.note[hidden] { display: none; }
.note .icon { font-size: 11px; margin-top: 0; }

.dims {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 24px;
  margin-top: 13px;
}
.dims__label { font-size: 9px; line-height: 14px; color: #6d7188; white-space: nowrap; }
.dims__fields { display: flex; align-items: center; gap: 5px; }
.dims__input {
  width: 45px; height: 24px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  background: rgba(255, 255, 255, .04);
  text-align: center;
  font-weight: 700;
  font-size: 11px; line-height: 1;
  color: var(--accent-value);
  font-variant-numeric: tabular-nums;
  transition: border-color .2s, background-color .2s;
}
.dims__input:hover { border-color: rgba(255, 255, 255, .2); }
.dims__input:focus { outline: none; border-color: rgba(var(--accent-rgb), .8); background: rgba(var(--accent-rgb), .12); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.dims__input.is-invalid { border-color: rgba(var(--danger-rgb), .8); color: var(--danger); }
.dims__x, .dims__unit { font-weight: 700; font-size: 11px; line-height: 1; color: var(--accent-value); }
.dims__x { opacity: .85; }
.dims__unit { margin-left: 1px; }
.dims__lock {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  margin-left: 2px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  color: #6d7188;
  font-size: 12px;
  transition: color .2s, background-color .2s, border-color .2s;
}
.dims__lock .icon--unlock { display: none; }
.dims__lock[aria-pressed="false"] .icon--lock { display: none; }
.dims__lock[aria-pressed="false"] .icon--unlock { display: block; }
.dims__lock[aria-pressed="true"] { color: var(--accent-soft); background: rgba(var(--accent-rgb), .14); border-color: rgba(var(--accent-rgb), .3); }
@media (hover: hover) { .dims__lock:hover { color: var(--t-100); border-color: rgba(255, 255, 255, .18); } }

.ratios { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.ratio {
  height: 22px; padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 7px;
  background: rgba(255, 255, 255, .03);
  font-weight: 600;
  font-size: 9px; line-height: 1;
  letter-spacing: .02em;
  color: #7e8299;
  font-variant-numeric: tabular-nums;
  transition: color .2s, background-color .2s, border-color .2s;
}
@media (hover: hover) { .ratio:hover { color: var(--t-100); border-color: rgba(255, 255, 255, .2); } }
.ratio[aria-pressed="true"] {
  color: var(--t-100);
  background: rgba(var(--accent-rgb), .16);
  border-color: rgba(167, 139, 250, .42);
}

.label {
  margin-top: 18px;
  font-weight: 700;
  font-size: 8px; line-height: 10px;
  letter-spacing: .075em;
  text-transform: uppercase;
  color: #64677e;
}

.seg {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 9px; padding: 3px;
  border: 1px solid rgba(255, 255, 255, .03);
  border-radius: 14px;
  background: rgba(0, 0, 0, .3);
}
.seg__item {
  position: relative;
  height: 46px;
  display: grid; align-content: center; justify-items: center; gap: 4px;
  padding: 0 2px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  text-align: center;
  transition: background-color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.seg__title { font-weight: 700; font-size: 9px; line-height: 12px; color: #74778d; transition: color .2s; }
.seg__sub { font-size: 7px; line-height: 10px; color: #5f6274; white-space: nowrap; transition: color .2s; }
@media (hover: hover) { .seg__item:hover .seg__title { color: var(--t-200); } }
.seg__item.is-selected {
  background: rgba(var(--accent-rgb), .15);
  border-color: rgba(150, 120, 245, .45);
}
.seg__item.is-selected .seg__title { color: #fff; }
.seg__item.is-selected .seg__sub { color: #686b88; }
.seg__item.is-disabled { opacity: .4; cursor: not-allowed; }
.seg__item:has(input:focus-visible) { outline: 2px solid var(--accent-soft); outline-offset: 1px; }

.cta {
  position: relative;
  width: 100%; height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 11px;
  margin-top: 18px; padding: 0 16px;
  border: 0; border-radius: 15px;
  background: linear-gradient(118deg, #7459ec 0%, #a45bd6 50%, #e4629f 100%);
  box-shadow: 0 10px 28px -6px rgba(var(--accent-rgb), .5), inset 0 1px 0 rgba(255, 255, 255, .18);
  color: var(--t-100);
  text-align: left;
  transition: transform .2s, box-shadow .2s, filter .2s, opacity .2s;
}
.cta__icon { font-size: 16px; }
.cta__text { display: grid; gap: 4px; }
.cta__title { font-weight: 700; font-size: 11px; line-height: 14px; color: var(--t-100); letter-spacing: .005em; }
.cta__sub { font-size: 7px; line-height: 10px; color: rgba(255, 255, 255, .66); font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .cta:not(:disabled):hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 14px 34px -8px rgba(var(--accent-rgb), .6), inset 0 1px 0 rgba(255, 255, 255, .22); }
}
.cta:not(:disabled):active { transform: translateY(0); filter: brightness(.97); }
.cta:disabled { opacity: .4; box-shadow: none; filter: saturate(.55); }
.cta:focus-visible { outline-offset: 3px; }
.spinner--cta { display: none; position: absolute; right: 18px; width: 18px; height: 18px; border-width: 2px; border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
.cta.is-busy { pointer-events: none; }
.cta.is-busy .spinner--cta { display: block; }
.cta.is-busy .cta__icon { opacity: .35; }

.privacy {
  margin-top: 14px;
  display: grid; gap: 2px; justify-items: center;
  text-align: center;
  font-size: 7px; line-height: 11px;
  color: #5a5e75;
}
.privacy .icon { font-size: 8px; margin-right: 3px; vertical-align: -1px; color: #62c7aa; stroke-width: 2.4; }

/* 10. Patička ------------------------------------------------------------- */
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 34px;
  padding: 24px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, .04);
  font-size: 8px; line-height: 12px; color: #4d5166;
}
.footer__brand { justify-self: start; font-family: var(--f-display); font-weight: 600; font-size: 11px; color: #7e769d; letter-spacing: .005em; }
.footer__meta { justify-self: end; }

/* 11. Oznámení a stavy ---------------------------------------------------- */
.toasts {
  position: fixed; z-index: 50;
  left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(440px, calc(100% - 32px));
  display: flex; flex-direction: column-reverse; gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px 11px 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 13px;
  background: rgba(22, 24, 50, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7);
  font-size: 12px; line-height: 17px;
  color: var(--t-100);
  animation: toast-in .28s cubic-bezier(.2, .9, .3, 1.2) both;
}
.toast.is-leaving { animation: toast-out .22s ease-in both; }
.toast__icon { flex: none; margin-top: 2px; font-size: 15px; color: var(--accent-soft); }
.toast--ok .toast__icon { color: var(--ok); }
.toast--error { border-color: rgba(var(--danger-rgb), .38); background: rgba(48, 22, 38, .95); }
.toast--error .toast__icon { color: var(--danger); }
.toast--warn .toast__icon { color: var(--warn); }
.toast__body { flex: 1; min-width: 0; }
.toast__title { font-weight: 700; }
.toast__text { color: #b9bcd2; }
.toast__close {
  flex: none; width: 22px; height: 22px; margin: -2px -3px 0 0;
  display: grid; place-items: center;
  border: 0; border-radius: 6px; background: none;
  color: #8a8ea4; font-size: 13px;
}
.toast__close:hover { color: var(--t-100); background: rgba(255, 255, 255, .08); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* 12. Responzivita -------------------------------------------------------- */

/* menší notebooky: užší prostřední sloupec */
@media (max-width: 1239px) {
  .shell { width: calc(100% - 48px); }
  .hero__desc { max-width: 300px; }
}

/* tablet: kroky pod sebou */
@media (max-width: 1119px) {
  /* celá stránka (hlavička, obsah i patička) tvoří jeden vycentrovaný sloupec */
  .shell { width: min(840px, calc(100% - 48px)); }
  .step__line { width: 28px; margin: 0 10px 0 11px; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  .panel--source { padding-bottom: 22px; }
  .panel--source .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; }
  .panel--source .dropzone { height: 140px; }

  .editor__head { padding-top: 0; }
  .stage { height: 500px; }

  .panel--export {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 28px;
    align-items: start;
  }
  .panel--export > .head { grid-column: 1 / -1; }
  .panel--export .thumb { grid-column: 1; grid-row: 2 / span 7; align-self: stretch; margin-top: 21px; min-height: 220px; }
  .panel--export .note, .panel--export .dims, .panel--export .ratios, .panel--export .label, .panel--export .seg, .panel--export .cta, .panel--export .privacy { grid-column: 2; }
  .panel--export .dims { margin-top: 21px; }
}

/* tablet na výšku: úvod pod sebou */
@media (max-width: 800px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero__desc { max-width: 440px; padding: 0; }
}

/* mobil */
@media (max-width: 719px) {
  .shell { width: calc(100% - 32px); }

  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand restart" "stepper stepper";
    height: auto;
    row-gap: 16px;
    padding: 14px 0 16px;
  }
  .brand { grid-area: brand; gap: 11px; }
  .brand__mark { width: 34px; height: 34px; border-radius: 10px; font-size: 19px; }
  .brand__name { font-size: 18px; }
  .btn-ghost { grid-area: restart; height: 36px; padding: 0 4px 0 8px; font-size: 12px; }
  .stepper { grid-area: stepper; justify-self: stretch; justify-content: space-between; }
  .step { gap: 8px; }
  .step__line { flex: 1; width: auto; min-width: 12px; margin: 0 10px; }
  .step__label { font-size: 11px; }

  .hero { flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px 0 24px; }
  .eyebrow { font-size: 10px; margin-bottom: 9px; }
  .hero__title { font-size: 34px; line-height: 37px; }
  .hero__desc { max-width: 420px; padding: 0; font-size: 13px; line-height: 21px; }

  .workspace { gap: 16px; }
  .panel { padding: 18px; border-radius: 18px; }
  .panel--source .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .format {
    height: auto; min-height: 64px;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas: "icon text" "icon dims";
    row-gap: 1px; column-gap: 9px;
    padding: 9px 9px 9px 9px;
    align-content: center;
  }
  .format__icon { grid-area: icon; align-self: start; margin-top: 2px; }
  .format__text { grid-area: text; }
  .format__dims { grid-area: dims; font-size: 9px; align-self: start; }
  .format__radio { display: none; }
  .format__name { font-size: 11px; }
  .format__sub { font-size: 10px; }

  .dropzone { height: 140px; }
  .dropzone__title { font-size: 12px; }
  .dropzone__sub { font-size: 11px; }
  .dropzone__hint { font-size: 9px; }

  .editor__head { min-height: 0; padding: 0 2px; margin-bottom: 12px; align-items: center; }
  .pill { margin-top: 0; }

  .stage { height: auto; padding: 18px 14px 14px; border-radius: 16px; }
  .stage__area { flex: none; height: clamp(300px, 92vw, 460px); }
  .stage__hint { margin-top: 12px; font-size: 11px; line-height: 14px; }
  .frame__badge { font-size: 9px; height: 20px; }

  .controls { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; border-radius: 16px; }
  .slider__row { height: 14px; font-size: 11px; line-height: 14px; }
  .slider input[type="range"] { height: 28px; margin-top: 6px; }
  .btn-reset { align-self: flex-end; margin-top: 2px; height: 36px; font-size: 11px; padding: 0 14px 0 12px; }

  .panel--export { display: block; }
  .panel--export .thumb { height: 190px; min-height: 0; margin-top: 18px; }
  .dims { margin-top: 16px; }
  .dims__label { font-size: 11px; }
  .dims__input { height: 32px; width: 54px; font-size: 13px; border-radius: 8px; }
  .dims__x, .dims__unit { font-size: 13px; }
  .dims__lock { width: 32px; height: 32px; font-size: 14px; }
  .ratio { height: 30px; padding: 0 11px; font-size: 11px; border-radius: 8px; }
  .label { font-size: 9px; line-height: 11px; margin-top: 20px; }
  .seg__item { height: 54px; }
  .seg__title { font-size: 12px; line-height: 14px; }
  .seg__sub { font-size: 9px; line-height: 11px; }
  .cta { height: 58px; border-radius: 16px; }
  .cta__title { font-size: 14px; line-height: 16px; }
  .cta__sub { font-size: 10px; line-height: 12px; }
  .privacy { font-size: 10px; line-height: 14px; }

  .footer { grid-template-columns: 1fr; justify-items: center; gap: 8px; text-align: center; padding: 22px 0 28px; margin-top: 28px; font-size: 10px; line-height: 14px; }
  .footer__brand, .footer__meta { justify-self: center; }
  .footer__brand { font-size: 12px; }

  .toasts { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 380px) {
  .hero__title { font-size: 30px; line-height: 33px; }
  .panel--source .formats { grid-template-columns: minmax(0, 1fr); }
  .step__label { display: none; }
  .step.is-current .step__label { display: inline; }
}

/* dotyková zařízení (tablet): větší cíle pro prsty i v širším než mobilním rozvržení */
@media (pointer: coarse) {
  .btn-reset, .btn-ghost { height: 36px; }
  .toast__close { width: 28px; height: 28px; }
}
@media (pointer: coarse) and (min-width: 720px) {
  .slider input[type="range"] { height: 28px; margin-top: 9px; }
}
@media (pointer: coarse) and (max-width: 1119px) {
  .dims__input { height: 32px; width: 54px; font-size: 13px; border-radius: 8px; }
  .dims__x, .dims__unit { font-size: 13px; }
  .dims__lock { width: 32px; height: 32px; font-size: 14px; }
  .ratio { height: 30px; padding: 0 11px; font-size: 11px; border-radius: 8px; }
}

@media (forced-colors: active) {
  .format.is-selected, .seg__item.is-selected { outline: 2px solid Highlight; }
}
