/* =========================================================
   Алиса Шишенко — фотограф
   Кастомная тема поверх Bootstrap 5.3.3
   ========================================================= */

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/InterTight-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/InterTight-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0e0f0e;
  --panel: #141514;
  --text: #f0efeb;
  --muted: #b2b2aa;
  --line: #292a27;
  --accent: #c5bca8;
  --soft: #8f9088;

  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-body-font-family: "Inter Tight", Arial, sans-serif;
  --bs-body-font-size: 16px;
  --bs-body-line-height: 1.6;
  --bs-border-color: var(--line);
  --bs-border-color-translucent: var(--line);
  --bs-link-color: var(--text);
  --bs-link-hover-color: var(--accent);
  --bs-emphasis-color: var(--text);
  --bs-secondary-color: var(--muted);
  --bs-tertiary-bg: var(--panel);
  --bs-focus-ring-color: rgba(197, 188, 168, .28);
  --bs-focus-ring-width: 1px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

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

img {
  max-width: 100%;
}

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.1;
  margin: 0;
}

h1 i, h2 i {
  font-style: italic;
  font-weight: inherit;
  color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

main {
  padding-top: 82px;
}

/* ---------- шапка ---------- */

.site-nav {
  min-height: 82px;
  padding: 0;
  background: rgba(14, 15, 14, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-nav .container {
  min-height: 82px;
  align-items: center;
}

.site-nav .navbar-nav {
  gap: clamp(6px, 1.6vw, 24px);
}

.site-nav .nav-link {
  color: var(--text);
  font-size: 15px;
  padding: 8px 4px;
  transition: color .2s;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--accent);
}

.navbar-toggler {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text);
}

/* ---------- общие блоки ---------- */

.section {
  padding: 76px 0;
}

.page-intro {
  padding: 64px 0 40px;
}

.page-intro h1 {
  font-size: clamp(42px, 5vw, 66px);
}

.dot {
  color: var(--accent);
}

.page-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section-heading {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
}

.under-link {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid #68685f;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}

.under-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.under-link span {
  margin-left: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 20px;
  background: var(--text);
  border: 1px solid var(--text);
  color: var(--bg);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.button:hover {
  background: transparent;
  color: var(--text);
}

.button span {
  font-size: 17px;
}

.round-link {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #68685f;
  border-radius: 50%;
  color: var(--text);
  font-size: 30px;
  transition: background .2s, color .2s, border-color .2s;
}

.round-link:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ---------- плейсхолдеры фотографий ---------- */

.photo-placeholder {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-width: 0;
  background: #20211f;
  border: 1px solid rgba(255, 255, 255, .04);
  color: var(--muted);
}

.photo-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 75%;
  height: 115%;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  transform: rotate(-28deg);
}

.photo-placeholder::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 130%;
  height: 1px;
  background: rgba(255, 255, 255, .1);
  transform: rotate(-39deg);
}

.photo-initials {
  margin-top: 8px;
  color: rgba(241, 240, 236, .17);
  font: 400 clamp(38px, 4.6vw, 70px)/1 "Inter Tight", Arial, sans-serif;
  letter-spacing: -.09em;
}

.p1 { background: linear-gradient(145deg, #302e2a, #171918 54%, #393328); }
.p2 { background: linear-gradient(140deg, #242725, #3b3832 54%, #191a19); }
.p3 { background: linear-gradient(140deg, #1e2425, #353a35 55%, #171817); }
.p4 { background: linear-gradient(145deg, #302925, #1c1b1a 54%, #3d342b); }
.p5 { background: linear-gradient(145deg, #292821, #171918 52%, #363126); }
.p6 { background: linear-gradient(145deg, #222725, #3b3a33 52%, #171817); }

/* ---------- главный экран ---------- */

.hero {
  position: relative;
  height: calc(100svh - 82px);
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
  background: #101110;
}

.hero-slides,
.hero-slide,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  background-image: var(--slide-image);
  background-position: center 38%;
  background-size: cover;
  transform: scale(1.025);
  transition: opacity 1.1s ease, transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-shade {
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .18) 37%, rgba(0, 0, 0, .08) 68%, rgba(0, 0, 0, .2) 100%);
}

.hero-bottom {
  position: absolute;
  inset: auto 0 clamp(24px, 4.5vh, 54px);
  color: #fff;
}

.hero-bottom .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.hero-name h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 4.1vw, 58px);
  font-weight: 500;
  line-height: 1.1;
}

.hero-name p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 18px;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  font-size: 14px;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  background: rgba(0, 0, 0, .16);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}

.hero-controls button:hover {
  background: rgba(255, 255, 255, .18);
}

.hero-counter {
  min-width: 50px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- карточки направлений ---------- */

.category-card {
  display: block;
  height: 100%;
}

.category-card .photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  transition: filter .25s;
}

.category-card:hover .photo-placeholder {
  filter: brightness(1.12);
}

.category-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.category-caption .arrow {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 18px;
  transition: transform .2s;
}

.category-card:hover .arrow {
  transform: translate(3px, -3px);
}

/* ---------- блок «обо мне» ---------- */

.about-strip {
  padding: 76px 0;
  background: var(--panel);
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
}

.about-copy {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

/* ---------- CTA ---------- */

.cta-strip {
  padding-top: 76px;
  padding-bottom: 90px;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-row h2 {
  font-size: clamp(48px, 7.4vw, 92px);
  line-height: 1.02;
}

/* ---------- галереи ---------- */

.gallery-section {
  padding-top: 0;
}

/* «Живая» кладка: каждый кадр сохраняет свои пропорции,
   колонки выравниваются по высоте как в Lightroom/Unsplash. */
.gallery-masonry {
  columns: 4;
  column-gap: 14px;
}

.gallery-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 14px;
}

.gallery-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 6px;
  transition: filter .2s, transform .25s ease;
}

.gallery-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Режимы отображения одного кадра (задаётся в админке) */
.gallery-photo.fit-cover,
.gallery-photo.fit-contain {
  aspect-ratio: 4 / 3;
}

.gallery-photo.fit-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-photo.fit-contain {
  background: var(--panel);
}

.gallery-photo.fit-contain img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-photo.photo-placeholder {
  aspect-ratio: 4 / 5;
}

.gallery-photo:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

@media (max-width: 1199.98px) {
  .gallery-masonry { columns: 3; }
}

@media (max-width: 767.98px) {
  .gallery-masonry { columns: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
}

@media (max-width: 479.98px) {
  .gallery-masonry { columns: 1; }
}

.placeholder-note {
  margin: 26px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- просмотрщик ---------- */

.viewer-modal .modal-dialog {
  max-width: 960px;
  margin: 12px auto;
  min-height: calc(100% - 24px);
  width: calc(100% - 24px);
}

.viewer-modal .modal-content {
  background: #171817;
  border: 1px solid #45463f;
  border-radius: 0;
  color: var(--text);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
}

.viewer-modal .modal-body {
  padding: 8px 12px 14px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.viewer-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-bottom: 8px;
}

.viewer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  opacity: .8;
}

.viewer-action:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  opacity: 1;
}

.viewer-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.viewer-action svg {
  display: block;
  width: 18px;
  height: 18px;
}

.viewer-close { width: 34px; padding: 6px; }
.viewer-download[hidden] { display: none; }

.viewer-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(72vh, 720px);
  height: min(72dvh, 720px);
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.viewer-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  border-radius: 6px;
  transform-origin: center;
  -webkit-user-drag: none;
  will-change: transform;
}

.viewer-caption {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -.02em;
  flex-shrink: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ---------- услуги ---------- */

.service-list {
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.service-num {
  color: var(--accent);
  font-size: 13px;
}

.service-item h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
}

.service-item p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.service-price {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(197, 188, 168, .32);
  border-radius: 2px;
  background: rgba(197, 188, 168, .12);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}

.service-deadline {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.service-link {
  color: var(--accent);
  font-size: 14px;
  white-space: nowrap;
}

.service-link:hover {
  color: var(--text);
}

/* ---------- контакты ---------- */

.contact-page {
  padding-top: 0;
}

.contact-info h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 36px);
}

.contact-channel {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  font-size: 16px;
  transition: border-color .2s, background .2s;
}

.contact-link:hover {
  border-color: var(--accent);
  background: rgba(197, 188, 168, .06);
}

.contact-link .channel-icon {
  color: var(--accent);
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.contact-link .channel-text {
  flex: 1 1 auto;
}

.contact-link small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .02em;
}

.contact-link .arrow {
  color: var(--accent);
  font-size: 18px;
}

.placeholder-note {
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- форма ---------- */

.contact-form .form-label {
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--text);
}

.contact-form .form-label:not(:first-child) {
  margin-top: 20px;
}

.contact-form .form-control,
.contact-form .form-select {
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid #4b4c46;
  border-radius: 0;
  background-color: transparent;
  color: var(--text);
  font-size: 15px;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--accent);
  background-color: transparent;
  color: var(--text);
  box-shadow: none;
}

.contact-form .form-control::placeholder {
  color: var(--muted);
}

.contact-form .form-select option {
  background: var(--bg);
}

.contact-form textarea.form-control {
  resize: vertical;
}

.contact-form .button {
  align-self: flex-start;
  margin-top: 24px;
}

.form-status {
  margin: 18px 0 0;
  color: var(--accent);
  font-size: 14px;
}

.form-status textarea {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-family: var(--bs-body-font-family);
  font-size: 14px;
  resize: vertical;
}

.form-status .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

/* ---------- футер ---------- */

.site-footer {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  background: #131413;
}

.footer-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 24px;
}

.footer-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social a {
  display: flex;
  color: var(--accent);
  opacity: .78;
  transition: opacity .2s;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-social svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* ---------- адаптив ---------- */

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-basis: auto;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    padding: 12px 20px 20px;
    border-top: 1px solid var(--line);
    background: rgba(14, 15, 14, .98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    z-index: 1001;
  }

  .site-nav .navbar-nav {
    gap: 0;
  }

  .site-nav .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .site-nav .nav-item:last-child .nav-link {
    border-bottom: 0;
  }

  .service-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .service-link {
    grid-column: 2;
    margin-top: 4px;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 56px 0;
  }

  .page-intro {
    padding: 46px 0 30px;
  }

  .page-intro h1 {
    font-size: clamp(38px, 10vw, 54px);
  }

  .page-lead {
    margin-top: 16px;
    font-size: 15px;
  }

  .about-strip {
    padding: 56px 0;
  }

  .about-copy {
    margin-top: 20px;
    font-size: 15px;
  }

  .cta-strip {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .cta-row h2 {
    font-size: clamp(40px, 11vw, 58px);
  }

  .round-link {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .category-caption {
    font-size: 13px;
  }

  .photo-initials {
    font-size: clamp(34px, 9vw, 52px);
  }

  .contact-form .button {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  html {
    scroll-padding-top: 72px;
  }

  .site-nav,
  .site-nav .container {
    min-height: 72px;
  }

  .site-nav .navbar-collapse {
    max-height: calc(100dvh - 72px);
    padding: 10px 18px 16px;
  }

  main {
    padding-top: 72px;
  }

  .hero {
    height: calc(100svh - 72px);
    min-height: 500px;
    max-height: none;
  }

  .hero-slide {
    background-position: center center;
  }

  .hero-bottom {
    inset: auto 0 22px;
  }

  .hero-name h1 {
    font-size: clamp(29px, 8vw, 42px);
  }

  .hero-name p {
    margin-top: 5px;
    font-size: 16px;
  }

  .hero-controls {
    gap: 8px;
  }

  .hero-controls button {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .hero-counter {
    min-width: 44px;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .section-heading {
    font-size: 38px;
  }

  .footer-copy {
    font-size: 12px;
  }

  .footer-social {
    gap: 14px;
  }

  .footer-social img {
    width: 22px;
    height: 22px;
  }

  .viewer-modal .modal-body {
    padding: 6px 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- дополнения для внутренних страниц ---------- */

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.mini-cta {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.mini-cta h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
}

.placeholder-note code {
  color: var(--accent);
  font-size: .95em;
}

/* ---------- прижатый к низу футер ---------- */

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

main {
  flex: 1 0 auto;
}

.site-footer {
  margin-top: auto;
}

/* =========================================================
   Режим быстрого редактирования (только в админке)
   ========================================================= */

body.cms-edit-mode {
  padding-bottom: 74px;
}

.cms-edit-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: #141514;
  border: 1px solid #2a2b27;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  max-width: calc(100vw - 24px);
}

.cms-edit-hint {
  color: #b2b2aa;
  font-size: 13px;
  white-space: nowrap;
}

.cms-edit-status { color: #c5bca8; font-size: 13px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cms-edit-status.is-ok { color: #86b98a; }
.cms-edit-status.is-error { color: #d86969; }

.cms-btn {
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid #c5bca8;
  border-radius: 9px;
  background: #c5bca8;
  color: #141310;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.cms-btn-ghost { background: transparent; color: #c5bca8; }

@media (max-width: 640px) {
  .cms-edit-bar { gap: 10px; padding: 9px 12px; right: 12px; left: auto; transform: none; }
  .cms-edit-hint { display: none; }
  .cms-edit-status { max-width: 120px; }
}

#cmsMain [contenteditable="true"] {
  outline: 3px solid rgba(197, 188, 168, .75);
  outline-offset: 3px;
  border-radius: 3px;
  min-width: 1em;
}

#cmsMain .cms-editing { cursor: text; }

#cmsMain .cms-dynamic:hover {
  outline: 2px dashed rgba(197, 188, 168, .55);
  outline-offset: 3px;
  border-radius: 4px;
}

#cmsMain .cms-dynamic { cursor: default; }
