@font-face {
  font-family: "NeueCorp";
  src: url("./public/fonts/PPNeueCorp-Condensed.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "InterTight";
  src: url("./public/fonts/InterTight-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --gray: #98999a;
  --line: #292a2b;
  --accent: #ff4300;
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  margin: 0;
  background: #000;
}

body {
  color: #fff;
  font-family: "InterTight", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

body.is-cv-open { overflow: hidden; }

.cv-modal {
  width: min(1120px, calc(100vw - 48px));
  height: min(900px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid #303134;
  border-radius: 28px;
  background: #121315;
  color: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
}

.cv-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.cv-modal__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}

.cv-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px 18px 24px;
  border-bottom: 1px solid #303134;
}

.cv-modal__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--gray);
  font-size: 12px;
  line-height: 1;
}

.cv-modal__header h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 500;
}

.cv-modal__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cv-modal__download,
.cv-modal__close {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.cv-modal__download {
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
}

.cv-modal__close {
  width: 44px;
  padding: 0 0 3px;
  border: 1px solid #3a3b3e;
  border-radius: 50%;
  background: #222326;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.cv-modal__download:hover { background: #e83d00; }
.cv-modal__close:hover { background: #2d2e31; }

.cv-modal__viewer {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #e7e7e7;
}

.cv-modal__fallback {
  margin: 0;
  padding: 10px 20px;
  color: var(--gray);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.cv-modal__fallback a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portfolio {
  display: grid;
  grid-template-columns: 30% 70%;
  min-height: 100vh;
  background: #000;
}

.portrait {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  background: url("./public/portrait.jpg") center 28% / cover no-repeat;
  overflow: hidden;
}

.portrait__project {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.28s ease, transform 0.5s ease;
}

.portrait__mobile-photo { display: none; }

.portrait.is-project-hover .portrait__project {
  opacity: 1;
  transform: scale(1);
}

.portrait__shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.04) 64%, rgba(0, 0, 0, 0.78) 100%);
}

.intro {
  position: absolute;
  z-index: 2;
  right: clamp(28px, 3vw, 58px);
  bottom: clamp(36px, 6.2vw, 102px);
  left: clamp(28px, 3vw, 58px);
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.28s ease;
}

.portrait.is-project-hover .intro {
  opacity: 0;
  transform: translateY(12px);
}

.intro h1 {
  max-width: 650px;
  margin: 0 0 28px;
  font-family: "NeueCorp", Arial, sans-serif;
  font-size: 54px;
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-wrap: balance;
}

.intro h1 em { font-style: italic; }

.intro p {
  max-width: 620px;
  margin: 0;
  font-size: 21px;
  line-height: 1.36;
  font-weight: 500;
  text-wrap: pretty;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 100vh;
  padding: clamp(42px, 2vw, 76px) clamp(36px, 2.2vw, 62px) clamp(28px, 2.8vw, 42px);
  background: #000;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(210px, 0.9fr) auto;
  gap: clamp(28px, 3.1vw, 60px);
  align-items: start;
}

.topbar h2 {
  margin: 0 0 24px;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 500;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 16px;
  line-height: 1.5;
}

.contact-link,
.other-link-mask {
  display: inline-block;
  overflow: hidden;
}

.contacts a,
.other-link-mask a {
  position: relative;
  display: block;
  transition: transform 0.3s;
  will-change: transform;
}

.contacts a::before,
.other-link-mask a::before {
  position: absolute;
  top: 100%;
  left: 0;
  color: #98999a;
  content: " " attr(data-content);
  transform: translate3d(0, 0, 0);
  white-space: nowrap;
}

.contacts a:hover,
.other-link-mask a:hover {
  opacity: 1;
  transform: translateY(-100%);
}

.other-links {
  display: grid;
  gap: 12px;
  font-size: 16px;
}

.habr,
.views,
.actions,
.telegram {
  display: flex;
  align-items: center;
}

.habr { gap: 7px; }

.views {
  gap: 3px;
  color: var(--gray);
  white-space: nowrap;
}

.views img {
  width: 20px;
  height: 20px;
}

.topbar a { transition: opacity 0.2s ease; }
.topbar a:hover { opacity: 0.68; }
.topbar .contacts a,
.topbar .other-link-mask a { transition: transform 0.3s; }
.topbar .contacts a:hover,
.topbar .other-link-mask a:hover,
.topbar .telegram:hover { opacity: 1; }

.actions { gap: 16px; }

.cv {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  font-size: 15px;
}

.telegram {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  min-width: 138px;
  padding: 0 20px;
  border-radius: 30px;
  background: var(--accent);
  font-size: 15px;
  transition: color 0.34s ease, opacity 0.2s ease;
}

.telegram::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translate(50%, -50%) scale(1);
  transition: transform 0.52s cubic-bezier(0.65, 0, 0.2, 1);
  will-change: transform;
}

.telegram__label,
.telegram__arrow {
  position: relative;
  z-index: 1;
}

.telegram__arrow {
  color: #000;
  font-size: 24px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-7px);
  transition: opacity 0.2s ease 0.12s, transform 0.3s ease 0.08s;
}

.telegram:hover {
  color: #000;
  opacity: 1;
}

.telegram:hover::before {
  transform: translate(50%, -50%) scale(42);
}

.telegram:hover .telegram__arrow {
  opacity: 1;
  transform: translateX(0);
}

.works { margin-top: clamp(90px, 14vh, 180px); }

.works__head,
.work-row {
  display: grid;
  grid-template-columns: 25% 23% 27% 25%;
}

.works__head {
  padding-bottom: 21px;
  color: var(--gray);
  font-size: 19px;
  line-height: 1.15;
  font-weight: 500;
}

.work-row {
  position: relative;
  padding: 15px 0 15px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.work-row:first-child { border-top: 1px solid var(--line); }

.work-row:hover { background: #111; }

.work-cell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding-right: 18px;
}

.work-cell strong {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
}

.work-cell small {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
}

.work-cell--result { padding-right: 0; }

.work-media,
.work-title-card,
.work-card-tags,
.hero-contact,
.mobile-footer {
  display: none;
}

.project-cursor {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0;
  background: #151515;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.14s ease, transform 0.18s ease;
  will-change: left, top, transform;
}

.project-cursor.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-cursor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-cursor.is-locked img {
  filter: blur(10px) brightness(0.64);
  transform: scale(1.16);
}

.cursor-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  background: rgba(30, 30, 30, 0.55);
  backdrop-filter: blur(5px);
  transform: translate(-50%, -50%);
}

.project-cursor.is-locked .cursor-lock { display: block; }

.cursor-lock::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  background: url("./public/lock.svg") center / contain no-repeat;
  transform: translate(-50%, -50%);
}

.cursor-lock::after {
  content: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1201px) {
  .work-row { cursor: pointer; }
}

@media (min-width: 1201px) and (max-width: 1380px) {
  .content { padding-right: 38px; padding-left: 38px; }
  .topbar { grid-template-columns: 1fr 1fr; }
  .actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-top: 86px;
  }
  .intro h1 { font-size: 46px; }
}

@media (min-width: 1201px) {
  .intro__title-main,
  .intro h1 em {
    display: block;
    white-space: nowrap;
  }
}

@media (max-width: 1200px) {
  html { scroll-behavior: smooth; }

  .portfolio {
    position: relative;
    display: block;
    min-height: 0;
  }

  .portrait {
    min-height: 760px;
    height: 100svh;
    background: #000;
  }

  .portrait::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 0;
    width: clamp(300px, 31vw, 362px);
    height: auto;
    background: #fff url("./public/portrait-bw.png") center top / auto 100% no-repeat;
  }

  .portrait__project { display: none; }

  .portrait__shade {
    z-index: 1;
    background: linear-gradient(90deg, transparent 0, transparent 17%, rgba(0, 0, 0, 0.08) 22%, #000 25%);
  }

  .intro {
    right: 34px;
    bottom: clamp(86px, 13vh, 145px);
    left: clamp(340px, 35vw, 410px);
  }

  .intro h1 {
    max-width: 920px;
    margin-bottom: 32px;
    background: linear-gradient(0.065turn, rgba(114, 118, 126, 1) 0%, rgba(255, 255, 255, 1) 48%);
    background-clip: text;
    color: transparent;
    font-size: clamp(42px, 4.4vw, 52px);
    line-height: 0.96;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .intro p {
    max-width: 620px;
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-contact {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 42px;
    padding: 17px 28px;
    border: 1px solid rgba(255, 67, 0, 0.35);
    border-radius: 999px;
    background: rgba(255, 67, 0, 0.18);
    color: #ff4300;
    font-size: 18px;
    font-weight: 500;
  }

  .hero-contact__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 auto;
  }

  .hero-contact__icon img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .content {
    display: block;
    min-height: 0;
    padding: 42px 28px 0;
  }

  .topbar { display: block; }
  .topbar > .contacts,
  .topbar > .other { display: none; }

  .actions {
    position: absolute;
    z-index: 5;
    top: 34px;
    right: 34px;
    margin: 0;
  }

  .actions .telegram { display: none; }
  .cv { width: 69px; height: 69px; }

  .works { margin: 0; }
  .works__head { display: none; }

  .works__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }

  .work-row,
  .work-row:first-child {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    min-width: 0;
    padding: 6px 6px 22px;
    border: 1px solid #25272a;
    border-radius: 30px;
    background: #121315;
  }

  .work-row:hover { background: #121315; }

  .work-media {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    border-radius: 25px;
    background: #0c0d0e;
  }

  .work-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(calc(var(--image-x, 0) * 1%), calc(var(--image-y, 0) * 1%)) scale(var(--image-scale, 1));
    transform-origin: center;
  }

  .work-media { aspect-ratio: 16 / 18; }

  .work-media__lock {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(5px);
  }

  .work-media__lock::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    background: url("./public/lock.svg") center / contain no-repeat;
    transform: translate(-50%, -50%);
  }

  .work-media__lock::after {
    content: none;
  }

  .work-cell {
    gap: 7px;
    padding: 0 22px;
  }

  .work-cell strong { font-size: 19px; }

  .work-cell--title {
    order: 1;
    margin-top: 25px;
  }

  .work-title-desktop,
  .work-cell--title small,
  .work-cell--domain,
  .work-cell--result { display: none; }

  .work-title-card {
    display: block;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 500;
  }

  .work-cell--company {
    order: 2;
    margin-top: 21px;
  }

  .work-cell--company strong {
    font-size: 20px;
    line-height: 1.2;
  }

  .work-cell--company small {
    font-size: 16px;
    line-height: 1.25;
  }

  .work-card-tags {
    display: flex;
    order: 3;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 21px;
    padding: 0 22px;
  }

  .work-card-tags span {
    padding: 10px 15px;
    border-radius: 14px;
    background: #25272a;
    font-size: 12px;
    line-height: 1;
  }

  .project-cursor { display: none; }

  .mobile-footer {
    display: block;
    padding: 70px 28px 26px;
    background: #000;
  }

  .mobile-contacts {
    position: relative;
    overflow: hidden;
    padding: 48px 34px 34px;
    border: 1px solid #292b2e;
    border-radius: 48px;
    background:
      radial-gradient(circle at 100% 100%, rgba(255, 67, 0, 0.72), transparent 37%),
      #121315;
  }

  .mobile-contacts h2 {
    margin: 0 0 42px;
    font-family: "NeueCorp", Arial, sans-serif;
    font-size: 66px;
    line-height: 0.9;
    font-weight: 400;
  }

  .mobile-contacts__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
  }

  .mobile-contacts__grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
    padding: 17px 0;
    border-bottom: 1px solid #343638;
  }

  .mobile-contacts__grid strong {
    overflow: hidden;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
    text-overflow: ellipsis;
  }

  .mobile-contacts__grid span {
    color: #98999a;
    font-size: 19px;
  }

  .mobile-contacts__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
  }

  .mobile-contacts__actions a {
    display: grid;
    min-height: 72px;
    place-items: center;
    border-radius: 999px;
    font-size: 22px;
  }

  .mobile-resume {
    border: 1px solid #333538;
    background: rgba(255, 255, 255, 0.04);
  }

  .mobile-telegram { background: #ff4300; }

  .copyright {
    margin: 36px 0 0;
    color: #98999a;
    text-align: center;
    font-size: 16px;
  }
}

@media (max-width: 720px) {
  .cv-modal {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .cv-modal__header {
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .cv-modal__eyebrow { display: none; }
  .cv-modal__header h2 { font-size: 16px; }
  .cv-modal__actions { gap: 8px; }
  .cv-modal__download { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .cv-modal__close { width: 40px; min-height: 40px; }
  .cv-modal__fallback { padding: 8px 14px; font-size: 11px; }

  .portrait {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    background: #000;
  }

  .portrait::after { display: none; }

  .portrait__mobile-photo {
    display: block;
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    background: #111;
  }

  .portrait__mobile-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .portrait__shade { display: none; }

  .intro {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    padding: 34px 22px 68px;
  }

  .intro h1 {
    margin-bottom: 24px;
    font-size: clamp(39px, 10vw, 52px);
  }

  .intro p { font-size: 14px; }

  .hero-contact {
    gap: 13px;
    margin-top: 30px;
    padding: 13px 20px;
    font-size: 16px;
  }

  .hero-contact__icon { width: 36px; height: 36px; }

  .actions { top: 22px; right: 22px; }
  .cv { width: 48px; height: 48px; }

  .content { padding: 30px 15px 0; }
  .works__body { grid-template-columns: 1fr; gap: 16px; }

  .work-title-card { font-size: 19px; }
  .work-cell--company strong { font-size: 16px; }
  .work-cell--company small { font-size: 15px; }

  .mobile-footer { padding: 54px 14px 24px; }

  .mobile-contacts {
    padding: 42px 24px 24px;
    border-radius: 38px;
  }

  .mobile-contacts h2 {
    margin-bottom: 34px;
    font-size: 54px;
  }

  .mobile-contacts__grid,
  .mobile-contacts__actions { grid-template-columns: 1fr; }

  .mobile-contacts__grid a { padding: 16px 0; }
  .mobile-contacts__grid strong { font-size: 18px; }
  .mobile-contacts__grid span { font-size: 17px; }

  .mobile-contacts__actions {
    gap: 14px;
    margin-top: 38px;
  }

  .mobile-contacts__actions a { min-height: 68px; font-size: 20px; }
}

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

/* Image editor. This layer exists only on /admin and does not affect the public page. */
.image-editor {
  position: fixed;
  z-index: 2000;
  inset: 0 0 0 auto;
  overflow-y: auto;
  width: min(420px, 100vw);
  padding: 24px;
  border-left: 1px solid #303134;
  background: #121315;
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.62);
  color: #f5f5f5;
}

.image-editor__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.image-editor__header small {
  display: block;
  margin-bottom: 7px;
  color: #9b9c9e;
  font-size: 13px;
}

.image-editor__header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 500;
}

.image-editor__close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #393a3d;
  border-radius: 12px;
  background: #1d1e20;
  font-size: 25px;
  line-height: 1;
}

.image-editor__projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.image-editor__project {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px;
  border: 1px solid #303134;
  border-radius: 12px;
  background: #1a1b1d;
  color: #d7d8da;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.image-editor__project:hover { border-color: #55575a; }

.image-editor__project.is-active {
  border-color: var(--accent);
  background: rgba(255, 67, 0, 0.1);
  color: #fff;
}

.image-editor__project img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.image-editor__project span {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-editor__stage-wrap {
  padding: 10px;
  border: 1px solid #303134;
  border-radius: 18px;
  background: #0c0d0e;
}

.image-editor__stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2 / 3;
  max-height: 47vh;
  margin: 0 auto;
  border-radius: 12px;
  background: #090a0b;
  cursor: grab;
  touch-action: none;
}

.image-editor__stage:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.image-editor__stage.is-dragging { cursor: grabbing; }

.image-editor__stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(calc(var(--image-x, 0) * 1%), calc(var(--image-y, 0) * 1%)) scale(var(--image-scale, 1));
  transform-origin: center;
  pointer-events: none;
  user-select: none;
}

.image-editor__stage-wrap p {
  margin: 10px 3px 1px;
  color: #929396;
  font-size: 12px;
  line-height: 1.35;
}

.image-editor__controls {
  display: grid;
  gap: 17px;
  margin-top: 22px;
}

.image-editor__controls label { display: grid; gap: 9px; }

.image-editor__controls label > span {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

.image-editor__controls output {
  color: #9b9c9e;
  font-variant-numeric: tabular-nums;
}

.image-editor input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.image-editor__actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  margin-top: 24px;
}

.image-editor__actions button {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #3a3b3e;
  border-radius: 12px;
  background: #222326;
  color: #fff;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.image-editor__actions button:hover { background: #2b2c2f; }
.image-editor__actions button:active { transform: translateY(1px); }

.image-editor__status {
  min-height: 18px;
  margin: 13px 0 0;
  color: #9b9c9e;
  font-size: 12px;
}

@media (min-width: 901px) {
  .is-image-editor .portfolio,
  .is-image-editor .mobile-footer {
    margin-right: 420px;
  }
}

@media (max-width: 900px) {
  .image-editor { border-left: 0; }
}
