﻿:root {
  color-scheme: dark;
  --bg: #0b0f1a;
  --surface: #121827;
  --surface-2: #192235;
  --surface-3: #222d43;
  --text: #f8fafc;
  --muted: #a9b4c5;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #d9b66f;
  --accent-2: #f4d58f;
  --green: #31d27c;
  --red: #ff4d5f;
  --white-slot: #f7f8fb;
  --dark: #0d1322;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --accent-soft: rgba(217, 182, 111, 0.16);
  --accent-ring: rgba(217, 182, 111, 0.15);
  --accent-shadow: 0 16px 40px rgba(217, 182, 111, 0.24);
  --client-cover-image: none;
  --admin-cover-image: none;
}

body[data-theme="clean-light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --surface-3: #e4eaf2;
  --text: #131b2e;
  --muted: #617086;
  --line: rgba(19, 27, 46, 0.13);
  --accent: #1264ff;
  --accent-2: #4c8bff;
  --dark: #ffffff;
  --shadow: 0 22px 60px rgba(30, 45, 75, 0.15);
}

body[data-theme="color-pro"] {
  --bg: #07121d;
  --surface: #102033;
  --surface-2: #162b44;
  --surface-3: #203855;
  --accent: #22c55e;
  --accent-2: #38bdf8;
}

body[data-theme="lk-hair-studio"] {
  color-scheme: light;
  --bg: #f4f0ff;
  --surface: #ffffff;
  --surface-2: #faf7ff;
  --surface-3: #efe9ff;
  --text: #25153d;
  --muted: #7f72a1;
  --line: rgba(109, 25, 194, 0.15);
  --accent: #6d19c2;
  --accent-2: #ccccff;
  --dark: #ffffff;
  --shadow: 0 28px 70px rgba(81, 40, 133, 0.16);
  --accent-soft: rgba(109, 25, 194, 0.11);
  --accent-ring: rgba(109, 25, 194, 0.15);
  --accent-shadow: 0 18px 38px rgba(109, 25, 194, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.18), transparent 34%),
    linear-gradient(180deg, #090d16, var(--bg));
  color: var(--text);
  font-family: var(--font-body);
}

body::before { content: none; }

body[data-theme="lk-hair-studio"] {
  background:
    radial-gradient(circle at top right, rgba(204, 204, 255, 0.82), transparent 30%),
    linear-gradient(180deg, #faf7ff 0%, #f0e9ff 52%, #f7f3ff 100%);
}

body[data-theme="lk-hair-studio"] .section-block,
body[data-theme="lk-hair-studio"] .booking-preview,
body[data-theme="lk-hair-studio"] .hero-content,
body[data-theme="lk-hair-studio"] .admin-hero-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,247,255,0.9));
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

[hidden] {
  display: none !important;
}

.site-shell {
  position: relative;
  width: min(100%, 1160px);
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 14px 36px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 76px;
  padding: 10px 0;
  background: rgba(11,15,26,0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand-symbol {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #10131f;
  font-size: .7rem;
  letter-spacing: 0;
  font-weight: 950;
  box-shadow: var(--accent-shadow);
}

.brand strong, .brand small { display: block; }
.brand strong { line-height: 1.1; }
.brand small { color: var(--muted); font-size: 0.78rem; margin-top: 2px; }

.site-nav {
  display: flex;
  gap: 8px;
  margin-left: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.045);
  overflow-x: auto;
}

.site-nav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}
.site-nav a:hover { background: var(--accent-soft); color: var(--text); }

.client-cover {
  min-height: calc(100vh - 20px);
  display: grid;
  place-items: center;
  padding: 18px 0 22px;
}

.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;
}

.cover-frame {
  width: min(100%, 430px);
  aspect-ratio: 9 / 16;
  min-height: min(760px, calc(100vh - 44px));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02)),
    linear-gradient(145deg, rgba(255,255,255,0.085), rgba(255,255,255,0.028));
  box-shadow: var(--shadow);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.cover-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 8, 31, 0.04), rgba(17, 8, 31, 0.24)),
    var(--client-cover-image) center bottom / cover no-repeat;
  opacity: 1;
  pointer-events: none;
}

.cover-frame::after {
  content: "";
  position: absolute;
  inset: auto -24% -18% auto;
  width: 78%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 68%);
  pointer-events: none;
}

.client-cover-menu-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 14px;
  background: rgba(16, 11, 24, 0.28);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(17, 8, 31, 0.2);
}

.client-cover-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #ffffff;
}

.client-cover-menu {
  position: absolute;
  top: 72px;
  right: 18px;
  z-index: 2;
  display: grid;
  gap: 8px;
  min-width: 156px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 16px;
  background: rgba(16, 11, 24, 0.5);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 40px rgba(17, 8, 31, 0.18);
}

.client-cover-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.client-cover-menu a:hover {
  background: rgba(255,255,255,0.14);
}

.cover-brand {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 22px;
  min-height: 100%;
}

.cover-copy {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 280px;
}

.cover-logo {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #10131f;
  font-weight: 950;
  letter-spacing: 0;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(37, 21, 61, 0.18);
}

.cover-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-logo.has-image {
  background: rgba(255,255,255,0.74);
  padding: 0;
}

.cover-logo.has-image #cover-logo-fallback {
  display: none;
}

.cover-frame h1 {
  margin: 0;
  font-size: clamp(2.4rem, 10vw, 4.6rem);
  line-height: .92;
  font-family: var(--font-display);
  max-width: 8ch;
  color: #ffffff;
  text-shadow: 0 12px 32px rgba(17, 7, 27, 0.42);
}

.cover-frame p {
  max-width: 22rem;
  margin: 0;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
}

body[data-theme="lk-hair-studio"] .section-block {
  backdrop-filter: blur(18px);
}

body[data-theme="lk-hair-studio"] .service-photo-card,
body[data-theme="lk-hair-studio"] .date-picker-card,
body[data-theme="lk-hair-studio"] .chosen-slot-card,
body[data-theme="lk-hair-studio"] .reservation-card,
body[data-theme="lk-hair-studio"] .client-admin-card,
body[data-theme="lk-hair-studio"] .empty-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,240,255,0.92));
}

body[data-theme="lk-hair-studio"] .service-card-body strong,
body[data-theme="lk-hair-studio"] .final-booking-card h2,
body[data-theme="lk-hair-studio"] .section-heading h2 {
  font-family: var(--font-display);
}

body[data-theme="lk-hair-studio"] .secondary-button,
body[data-theme="lk-hair-studio"] .ghost-icon,
body[data-theme="lk-hair-studio"] .select-trigger,
body[data-theme="lk-hair-studio"] .field input {
  background: rgba(255,255,255,0.88);
}

body[data-theme="lk-hair-studio"] .primary-button,
body[data-theme="lk-hair-studio"] .secondary-button,
body[data-theme="lk-hair-studio"] .ghost-icon,
body[data-theme="lk-hair-studio"] .mini-button,
body[data-theme="lk-hair-studio"] .mini-toggle,
body[data-theme="lk-hair-studio"] .section-launch-button,
body[data-theme="lk-hair-studio"] .danger-button,
body[data-theme="lk-hair-studio"] .list-more-button {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: none;
}

body[data-theme="lk-hair-studio"] .primary-button:hover,
body[data-theme="lk-hair-studio"] .secondary-button:hover,
body[data-theme="lk-hair-studio"] .ghost-icon:hover,
body[data-theme="lk-hair-studio"] .mini-button:hover,
body[data-theme="lk-hair-studio"] .mini-toggle:hover,
body[data-theme="lk-hair-studio"] .section-launch-button:hover,
body[data-theme="lk-hair-studio"] .danger-button:hover,
body[data-theme="lk-hair-studio"] .list-more-button:hover {
  background: #5b12a8;
  color: #ffffff;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  padding: 28px 0 16px;
}

.hero-content, .booking-preview, .section-block, .admin-hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.028));
  box-shadow: var(--shadow);
  animation: rise-in 0.45s ease both;
}

.hero-content {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 5vw, 54px);
  overflow: hidden;
}

.hero-content::before {
  content: "";
  width: 132px;
  height: 4px;
  margin-bottom: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.eyebrow, .preview-label {
  margin: 0 0 6px;
  color: var(--accent-2);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 700; }
.hero-content h1, .admin-hero-panel h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2.7rem, 8vw, 6rem);
  line-height: 0.88;
  letter-spacing: 0;
}
.hero-content p, .booking-preview p, .admin-hero-panel p, .section-heading span {
  color: var(--muted);
  line-height: 1.55;
}
.hero-content p { max-width: 44rem; font-size: 1.05rem; }

.hero-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.text-link { color: var(--accent-2); font-weight: 900; text-decoration: none; }

.booking-preview {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 24px;
  background:
    linear-gradient(160deg, var(--accent-soft), rgba(255,255,255,0.04)),
    var(--surface);
}
.booking-preview strong { font-size: 1.7rem; line-height: 1.1; }

.mini-stats { display: grid; gap: 8px; margin-top: 12px; }
.mini-stats span, .schedule-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.055);
  color: var(--muted);
  font-weight: 800;
}
.mini-stats strong { color: var(--accent-2); font-size: 1rem; }

.section-block {
  margin: 14px 0;
  padding: clamp(16px, 3vw, 22px);
  background: rgba(18,24,39,0.92);
  backdrop-filter: blur(18px);
}

.section-heading { margin-bottom: 16px; }
.section-heading h2 { margin-bottom: 6px; font-size: clamp(1.45rem, 3vw, 2.15rem); letter-spacing: 0; }
.row-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.row-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.service-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-photo-card {
  display: grid;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.service-photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
  background: var(--surface-3);
}
.service-card-body { display: grid; gap: 7px; padding: 14px; }
.service-card-body strong { font-size: 1.05rem; }
.service-card-body small { color: var(--muted); line-height: 1.4; }
.service-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.service-card-footer b { color: var(--accent-2); }
.service-card-footer em { color: var(--muted); font-style: normal; font-weight: 850; }
.service-photo-card:hover, .service-photo-card.is-selected { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.static-card { cursor: default; }
.static-card:hover { transform: none; }

.booking-section {
  position: relative;
  z-index: 8;
  overflow: visible;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  gap: 14px;
}
.date-picker-card, .chosen-slot-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.date-picker-card { display: grid; gap: 12px; }
.chosen-slot-card { display: grid; align-content: center; gap: 10px; }
.chosen-slot-card span, .field span { color: var(--muted); font-size: .82rem; font-weight: 900; }
.chosen-slot-card strong { font-size: 1.25rem; }

.stacked-control { position: relative; display: grid; gap: 7px; }
.stacked-control > span { color: var(--muted); font-size: .8rem; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--dark);
  cursor: pointer;
}
.dropdown-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 80;
  display: grid;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111827;
  box-shadow: var(--shadow);
}
.dropdown-option {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  padding: 8px 10px;
}
.dropdown-option:hover, .dropdown-option.is-active { background: var(--accent-soft); }
.dropdown-option:disabled { opacity: .35; cursor: not-allowed; }
.days-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.day-option { text-align: center; }
.day-option strong, .day-option span { display: block; }
.day-option span { color: var(--muted); font-size: .75rem; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 7px; }
.field input, .status-select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 13px;
  outline: none;
}
.field input:focus, .status-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }

.primary-button, .secondary-button, .ghost-icon, .mini-button, .mini-toggle {
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 950;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-button, .secondary-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; }
.primary-button { background: var(--accent); color: #ffffff; box-shadow: none; }
.secondary-button { background: var(--accent); color: #ffffff; border: 1px solid var(--accent); }
.ghost-icon { width: 42px; height: 42px; display: grid; place-items: center; background: var(--accent); color: #ffffff; border: 1px solid var(--accent); font-size: 1.35rem; }
.primary-button:hover, .secondary-button:hover, .ghost-icon:hover { transform: translateY(-1px); }
.header-button { flex: 0 0 auto; min-height: 42px; }

.final-booking-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.final-booking-card strong,
.final-booking-card span {
  display: block;
}

.final-booking-card strong {
  margin-top: 8px;
  font-size: 1.2rem;
}

.final-booking-card span {
  margin-top: 4px;
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(3,6,12,.72);
  backdrop-filter: blur(12px);
}
.schedule-modal {
  width: min(100%, 980px);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #111827;
  box-shadow: 0 30px 100px rgba(0,0,0,.58);
}
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-header h2 { margin-bottom: 0; font-size: clamp(1.5rem, 4vw, 2.4rem); }
.schedule-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.schedule-legend i { width: 13px; height: 13px; border-radius: 999px; display: inline-block; }
.legend-free { background: var(--white-slot); }
.legend-busy { background: var(--red); }
.legend-selected { background: var(--green); }

.week-schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(86px, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: #0d1322;
}
.week-day-column header { text-align: center; margin-bottom: 8px; }
.week-day-column header strong { display: block; font-size: 1.6rem; line-height: 1; }
.week-day-column header span { color: var(--muted); font-weight: 950; }
.time-grid { display: grid; gap: 8px; }
.time-grid p { margin: 0; color: var(--muted); font-size: .82rem; text-align: center; }
.time-button, .admin-time-button {
  width: 100%;
  min-height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.35);
  font-weight: 950;
  cursor: pointer;
}
.time-button.is-free { background: var(--white-slot); color: #111827; }
.time-button.is-busy { background: var(--red); color: #fff; opacity: .82; cursor: not-allowed; }
.time-button.is-selected { background: var(--green); color: #07120c; border-color: #8cffba; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

body[data-theme="lk-hair-studio"] .modal-backdrop {
  background: rgba(37, 21, 61, 0.28);
  backdrop-filter: blur(10px);
}

body[data-theme="lk-hair-studio"] .schedule-modal {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,247,255,0.96));
  border-color: rgba(109, 25, 194, 0.18);
  box-shadow: 0 30px 80px rgba(81, 40, 133, 0.18);
}

body[data-theme="lk-hair-studio"] .schedule-modal .eyebrow {
  color: var(--accent);
}

body[data-theme="lk-hair-studio"] .schedule-modal h2,
body[data-theme="lk-hair-studio"] .week-day-column header strong {
  color: var(--text);
}

body[data-theme="lk-hair-studio"] .schedule-legend span {
  background: rgba(109, 25, 194, 0.06);
  color: var(--muted);
  border-color: rgba(109, 25, 194, 0.14);
}

body[data-theme="lk-hair-studio"] .legend-selected {
  background: var(--accent);
}

body[data-theme="lk-hair-studio"] .week-schedule-grid {
  background: rgba(109, 25, 194, 0.055);
  border: 1px solid rgba(109, 25, 194, 0.09);
}

body[data-theme="lk-hair-studio"] .week-day-column header span {
  color: var(--muted);
}

body[data-theme="lk-hair-studio"] .time-button {
  border-color: rgba(109, 25, 194, 0.16);
}

body[data-theme="lk-hair-studio"] .time-button.is-free {
  background: #ffffff;
  color: var(--text);
}

body[data-theme="lk-hair-studio"] .time-button.is-busy {
  background: #ef5b78;
  color: #ffffff;
}

body[data-theme="lk-hair-studio"] .time-button.is-selected {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.admin-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr);
  gap: 18px;
  align-items: end;
  padding: clamp(20px, 4vw, 34px);
  margin: 20px 0 14px;
}
.admin-hero-panel h1 { font-size: clamp(2rem, 6vw, 4.4rem); }
.admin-summary-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.admin-summary-cards article { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.admin-summary-cards span { color: var(--muted); font-size: .8rem; font-weight: 850; }
.admin-summary-cards strong { display: block; color: var(--accent-2); font-size: 2rem; }

body[data-theme="lk-hair-studio"] .admin-hero-panel {
  position: relative;
  overflow: hidden;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(37,21,61,0.08)),
    var(--admin-cover-image) center center / cover no-repeat;
  min-height: min(760px, calc(100vh - 68px));
  padding: 0;
}

body[data-theme="lk-hair-studio"] .admin-hero-panel::after {
  content: none;
}

body[data-theme="lk-hair-studio"] .admin-hero-panel > * {
  position: relative;
  z-index: 1;
}

body[data-theme="lk-hair-studio"] .admin-hero-panel > .sr-only {
  position: absolute;
}

body[data-theme="lk-hair-studio"] .admin-body .site-header {
  min-height: 58px;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 2px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-theme="lk-hair-studio"] .admin-body .brand {
  display: none;
}

.admin-center-logo {
  display: none;
}

body[data-theme="lk-hair-studio"] .admin-center-logo {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  z-index: 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(109, 25, 194, 0.12);
  box-shadow: 0 12px 28px rgba(81, 40, 133, 0.12);
  overflow: hidden;
  text-decoration: none;
}

body[data-theme="lk-hair-studio"] .admin-center-logo img,
body[data-theme="lk-hair-studio"] .admin-center-logo span {
  width: 100%;
  height: 100%;
}

body[data-theme="lk-hair-studio"] .admin-center-logo img {
  object-fit: cover;
  display: block;
}

body[data-theme="lk-hair-studio"] .admin-center-logo span {
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0;
}

body[data-theme="lk-hair-studio"] .admin-body .brand-symbol {
  background: #b58dff;
  color: #25153d;
}

body[data-theme="lk-hair-studio"] .admin-body .admin-menu {
  top: calc(100% + 6px);
  background: rgba(255,255,255,0.98);
  border-color: rgba(109, 25, 194, 0.12);
  box-shadow: 0 18px 40px rgba(81, 40, 133, 0.14);
}

body[data-theme="lk-hair-studio"] .admin-body .admin-menu a {
  border-radius: 10px;
  color: var(--text);
}

body[data-theme="lk-hair-studio"] .admin-body .admin-menu a:hover {
  background: rgba(109, 25, 194, 0.08);
  color: var(--accent);
}

body[data-theme="lk-hair-studio"] .admin-body .menu-toggle {
  position: relative;
  z-index: 4;
  background: rgba(255,255,255,0.92);
  border-color: rgba(109, 25, 194, 0.18);
  box-shadow: 0 10px 24px rgba(81, 40, 133, 0.1);
}

body[data-theme="lk-hair-studio"] .admin-body .menu-toggle span {
  background: var(--accent);
}

.reservation-list { display: grid; gap: 10px; }

.list-more-button {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.055);
  color: var(--accent-2);
  font-weight: 950;
  cursor: pointer;
}

.list-more-button:hover {
  background: var(--accent-soft);
}
.reservation-card, .empty-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.reservation-date { display: block; color: var(--accent-2); font-weight: 950; margin-bottom: 4px; }
.reservation-card small, .empty-card span { display: block; color: var(--muted); margin-top: 4px; }
.reservation-actions { display: flex; align-items: center; gap: 8px; }
.status-select { min-height: 42px; min-width: 145px; }
.mini-button { min-height: 42px; padding: 0 12px; }

.admin-section-launcher {
  display: grid;
  gap: 14px;
}

.admin-section-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.section-launch-button {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
}

.section-launch-button.is-active,
#admin-menu a.is-active {
  background: #5b12a8;
  color: #ffffff;
  border-color: var(--accent);
}

.admin-section-panel .section-close-button {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.admin-week-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-day-card { padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); min-width: 0; }
.admin-day-card.is-closed { opacity: .68; }
.admin-day-card header { display: grid; gap: 8px; margin-bottom: 10px; }
.admin-day-card header strong, .admin-day-card header span { display: block; }
.admin-day-card header span { color: var(--muted); font-size: .75rem; }
.mini-toggle { min-height: 34px; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--text); }
.admin-time-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-time-list p { color: var(--muted); font-size: .8rem; }
.admin-time-button { min-height: 32px; font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-time-button.is-open { background: var(--white-slot); color: #111827; }
.admin-time-button.is-blocked { background: var(--red); color: #fff; }
.admin-time-button.is-reserved { background: var(--green); color: #07120c; }
.compact-gallery .service-photo-card img {
  aspect-ratio: 1 / 1;
  height: auto;
}

.attendance-card {
  grid-column: span 2;
}

.attendance-list {
  display: grid;
  gap: 8px;
}

.attendance-row {
  display: grid;
  grid-template-columns: 46px minmax(92px, 1fr) auto minmax(92px, 1fr) 96px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
}

.attendance-row > strong {
  color: var(--accent-2);
}

.attendance-select {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--text);
  padding: 0 8px;
}

.year-select-wrap,
.month-select-wrap {
  position: relative;
}

.year-dropdown,
.month-dropdown {
  min-width: 210px;
}

body[data-theme="lk-hair-studio"] .dropdown-panel,
body[data-theme="lk-hair-studio"] .year-dropdown,
body[data-theme="lk-hair-studio"] .month-dropdown {
  background: #ffffff;
  color: var(--text);
}

body[data-theme="lk-hair-studio"] .dropdown-option {
  color: var(--text);
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.settings-card h3 {
  margin: 0 0 6px;
}

.settings-card p {
  color: var(--muted);
  line-height: 1.45;
}

.calendar-settings-card {
  grid-column: span 2;
}

.settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}


.date-config-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

#interval-settings .toggle-chip:not(.is-on) {
  background: rgba(255,255,255,.07);
  color: var(--muted);
}
.compact-select {
  min-width: 170px;
  width: auto;
}

.toggle-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toggle-chip,
.calendar-day {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 950;
}

.toggle-chip {
  min-height: 38px;
  padding: 0 12px;
}

.toggle-chip.is-on {
  background: var(--white-slot);
  color: #111827;
}

.toggle-chip.is-off,
.calendar-day.is-blocked {
  background: var(--red);
  color: #fff;
}

.month-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-day {
  min-height: 58px;
  display: grid;
  place-items: center;
  background: var(--white-slot);
  color: #111827;
}

.calendar-day strong,
.calendar-day span {
  display: block;
}

.calendar-day span {
  font-size: .72rem;
  opacity: .8;
}


.client-count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: var(--accent-2);
  font-weight: 950;
}


.manual-client-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.045);
}

.manual-client-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.client-admin-list,
.promo-client-list {
  display: grid;
  gap: 10px;
}

.client-admin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.promo-client-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.promo-client-info {
  min-width: 0;
}

.promo-send-button {
  min-width: 86px;
}

.client-admin-card strong,
.client-admin-card small,
.client-admin-card span,
.promo-client-info strong,
.promo-client-info small {
  display: block;
}

.client-admin-card small,
.client-admin-card span,
.promo-client-info small {
  color: var(--muted);
  margin-top: 4px;
}

.client-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.danger-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.danger-button:hover {
  background: #5b12a8;
}

.promo-tool {
  display: grid;
  gap: 14px;
}

.promo-field textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  padding: 12px;
  resize: vertical;
  outline: none;
}

.promo-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.error-state p { color: var(--muted); }

@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }


@media (max-width: 980px) {
  .landing-hero,
  .booking-layout,
  .admin-hero-panel,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .service-gallery,
  .admin-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-section-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attendance-card,
  .calendar-settings-card {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: 100%;
    padding: 10px 10px 28px;
  }

  .site-header {
    min-height: 64px;
    gap: 10px;
    padding: 8px 0;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 58px);
  }

  .brand-symbol {
    width: 44px;
    height: 44px;
    font-size: .62rem;
  }

  .brand strong {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  .client-body .site-header {
    justify-content: center;
    flex-wrap: wrap;
  }

  .client-body .site-nav {
    order: 2;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    justify-content: center;
    overflow: hidden;
  }

  .client-body .brand,
  .client-body #install-button {
    order: 1;
  }

  .admin-body .site-header {
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .menu-toggle {
    display: grid;
    flex: 0 0 auto;
  }

  .admin-body .admin-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: 90;
    display: none;
    width: min(280px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    margin-left: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #111827;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .admin-body .admin-menu.is-open {
    display: grid;
  }

  .admin-body .admin-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .client-cover {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 10px 0 18px;
  }

  .cover-frame {
    width: calc(100vw - 20px);
    min-height: calc(100vh - 24px);
    padding: 18px;
    border-radius: 18px;
  }

  .client-cover-menu-toggle {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .client-cover-menu {
    top: 66px;
    right: 14px;
    min-width: 148px;
  }

  .cover-logo {
    width: 82px;
    height: 82px;
    border-radius: 18px;
  }

  .hero-content {
    min-height: 280px;
    padding: 22px 16px;
    text-align: center;
    align-items: center;
  }

  .hero-content::before {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content h1,
  .admin-hero-panel h1 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
    line-height: .98;
  }

  .hero-content p,
  .admin-hero-panel p,
  .section-heading span {
    font-size: .95rem;
  }

  .hero-actions-row,
  .final-booking-card,
  .reservation-card,
  .client-admin-card,
  .manual-client-form,
  .settings-card-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions-row,
  .client-body .hero-actions-row {
    justify-content: stretch;
    width: 100%;
  }

  .hero-actions-row .secondary-button,
  .hero-actions-row .text-link,
  .final-booking-card .primary-button,
  .reservation-actions .secondary-button,
  .client-card-actions .secondary-button,
  .client-card-actions .danger-button,
  .manual-client-actions .primary-button,
  .manual-client-actions .secondary-button {
    width: 100%;
  }

  .section-block {
    margin: 10px 0;
    padding: 14px;
  }

  .section-heading {
    margin-bottom: 12px;
  }

  .row-heading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .row-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .service-gallery,
  .field-grid,
  .booking-layout,
  .settings-grid,
  .admin-week-grid {
    grid-template-columns: 1fr;
  }

  .admin-section-buttons {
    grid-template-columns: 1fr;
  }

  .service-photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
  background: var(--surface-3);
}

  .date-picker-card,
  .chosen-slot-card,
  .settings-card,
  .reservation-card,
  .client-admin-card,
  .empty-card {
    padding: 12px;
  }

  .dropdown-panel {
    position: static;
    max-width: 100%;
    margin-top: 6px;
  }

  .days-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .modal-backdrop {
    align-items: start;
    place-items: start center;
    padding: 8px;
    overflow: auto;
  }

  .schedule-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 12px;
    border-radius: 14px;
  }

  .modal-header h2 {
    font-size: 1.55rem;
  }

  .schedule-legend {
    display: grid;
    grid-template-columns: 1fr;
  }

  .week-schedule-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
    padding: 10px;
    border-radius: 12px;
  }

  .week-day-column {
    min-width: 0;
  }

  .week-day-column header strong {
    font-size: 1.18rem;
  }

  .week-day-column header span {
    font-size: .7rem;
  }

  .time-grid {
    gap: 4px;
  }

  .time-button {
    min-height: 24px;
    padding: 0 2px;
    font-size: .72rem;
  }

  .modal-actions,
  .reservation-actions,
  .manual-client-actions,
  .client-card-actions,
  .date-config-controls {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .status-select,
  .compact-select,
  .date-config-controls .select-trigger {
    width: 100%;
    min-width: 0;
  }

  .admin-time-list {
    grid-template-columns: 1fr;
  }

  .admin-summary-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-summary-cards article {
    padding: 10px;
  }

  .admin-summary-cards strong {
    font-size: 1.55rem;
  }

  .attendance-row {
    grid-template-columns: 40px minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 7px;
  }

  .attendance-row .toggle-chip {
    grid-column: 1 / -1;
    width: 100%;
  }

  .attendance-select {
    min-width: 0;
    padding-inline: 6px;
  }

  .month-calendar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .calendar-day {
    min-height: 52px;
  }

  .promo-client-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .promo-send-button {
    min-width: 74px;
    padding-inline: 10px;
  }
}

@media (max-width: 420px) {
  .site-shell {
    padding-inline: 8px;
  }

  .brand strong {
    max-width: 150px;
  }

  .hero-content h1,
  .admin-hero-panel h1 {
    font-size: clamp(1.9rem, 11vw, 2.7rem);
  }

  .week-schedule-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .month-calendar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-summary-cards {
    grid-template-columns: 1fr;
  }
}

/* FINAL ADMIN MENU */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.065);
  cursor: pointer;
  place-items: center;
  gap: 4px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
}

.admin-body .site-header {
  position: relative;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
}

.admin-body .menu-toggle {
  display: grid;
  flex: 0 0 auto;
  margin-left: auto;
}

.admin-body .admin-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  display: none;
  width: min(280px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  margin-left: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111827;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-body .admin-menu.is-open {
  display: grid;
}

.admin-body .admin-menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.location-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.location-card h2 {
  margin-bottom: 0;
}

.client-body .site-header {
  display: none;
}

body[data-theme="lk-hair-studio"].admin-body .site-header {
  min-height: 58px;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 6px 2px 2px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-theme="lk-hair-studio"].admin-body .brand {
  display: none;
}

body[data-theme="lk-hair-studio"].admin-body .admin-center-logo {
  position: absolute;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  z-index: 3;
  width: 74px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  text-decoration: none;
}

body[data-theme="lk-hair-studio"].admin-body .admin-center-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

body[data-theme="lk-hair-studio"].admin-body .admin-center-logo span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--text);
  font-weight: 900;
}

body[data-theme="lk-hair-studio"].admin-body .menu-toggle {
  position: relative;
  z-index: 4;
  background: rgba(255,255,255,0.96);
  border-color: rgba(109, 25, 194, 0.18);
  box-shadow: 0 10px 24px rgba(81, 40, 133, 0.1);
}

body[data-theme="lk-hair-studio"].admin-body .menu-toggle span {
  background: var(--accent);
}

body[data-theme="lk-hair-studio"].admin-body .admin-menu {
  top: calc(100% + 6px);
  background: rgba(255,255,255,0.99);
  border-color: rgba(109, 25, 194, 0.12);
  box-shadow: 0 18px 40px rgba(81, 40, 133, 0.14);
}

body[data-theme="lk-hair-studio"].admin-body .admin-menu a {
  min-height: 44px;
  border-radius: 10px;
  color: var(--text);
}

body[data-theme="lk-hair-studio"].admin-body .admin-menu a:hover,
body[data-theme="lk-hair-studio"].admin-body #admin-menu a.is-active {
  background: rgba(109, 25, 194, 0.08);
  color: var(--accent);
}

body[data-theme="lk-hair-studio"].admin-body .admin-hero-panel {
  width: 100%;
  border-radius: 18px;
  margin-top: 6px;
}

@media (max-width: 680px) {
  body[data-theme="lk-hair-studio"].admin-body .site-header {
    min-height: 54px;
    padding-top: 2px;
  }

  body[data-theme="lk-hair-studio"].admin-body .admin-hero-panel {
    min-height: calc(100vh - 74px);
    border-radius: 18px;
  }

  .location-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .location-card .secondary-button {
    width: 100%;
  }
}

.service-editor-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.045);
}

.service-editor-head,
.service-editor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-editor-head h3 {
  margin: 0;
}

.service-editor-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.service-form {
  display: grid;
  gap: 12px;
}

.service-form-feedback {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
}

.service-form-feedback.is-success {
  background: rgba(49, 210, 124, 0.12);
  color: #17874b;
  border: 1px solid rgba(49, 210, 124, 0.24);
}

.service-form-feedback.is-error {
  background: rgba(255, 77, 95, 0.1);
  color: #c53249;
  border: 1px solid rgba(255, 77, 95, 0.22);
}

.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  padding: 12px;
  resize: vertical;
  outline: none;
}

.service-switches {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}

.service-switches label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-editor-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.service-editor-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.service-editor-item img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface-3);
}

.service-editor-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.service-editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.is-muted {
  opacity: .55;
}

@media (max-width: 680px) {
  .service-editor-layout,
  .service-editor-item {
    grid-template-columns: 1fr;
    display: grid;
  }

  .service-editor-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .service-editor-actions .mini-button {
    width: 100%;
  }
}

