body.service-description-open { overflow: hidden; }
.nails-service-dialog { box-sizing: border-box; width: min(580px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 12px; color: #0d1535; background: #fff; box-shadow: 0 18px 60px rgba(13,21,53,.26); font: 16px/1.6 "Segoe UI", system-ui, sans-serif; overflow: hidden; }
.nails-service-dialog[open] { display: flex; flex-direction: column; }
.nails-service-dialog::backdrop { background: rgba(13,21,53,.48); }
.nails-service-dialog header { padding: 24px 28px 20px; background: #edf4ff; border-bottom: 1px solid #c8d9ef; }
.nails-service-dialog h2 { margin: 0; font: inherit; font-weight: 700; font-size: 23px; line-height: 1.35; overflow-wrap: anywhere; }
.nails-service-dialog .service-preview-label { margin: 8px 0 0; font-size: 14px; color: #405774; }
.service-description-body { padding: 24px 28px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #90afd6 #f1f6ff; }
.service-description-body p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.nails-service-dialog footer { display: flex; gap: 12px; padding: 20px 28px 24px; border-top: 1px solid #d8e4f3; }
.nails-service-dialog button, .nails-theme .description-editor-actions button { display: inline-flex; align-items: center; justify-content: center; flex: 1; min-height: 48px; margin: 0; padding: 11px 16px; border: 1px solid #005ed8; border-radius: 6px; background: #fff; color: #0055bf; font: 600 16px/1.4 "Segoe UI", system-ui, sans-serif; text-align: center; cursor: pointer; transition: background-color .15s, color .15s; }
.nails-service-dialog .service-description-continue, .nails-theme .description-editor-actions .primary { background: #005ed8; color: #fff; }
.nails-service-dialog button:hover, .nails-theme .description-editor-actions button:not(:disabled):hover { background: #0047a6; color: #fff; }
.nails-service-dialog button:focus-visible, .service-descriptions-workspace :is(button,textarea):focus-visible { outline: 3px solid #005ed8; outline-offset: 3px; }
.nails-service-dialog ::selection, .service-descriptions-workspace ::selection { background: #c9dfff; color: #0d1535; }
.service-descriptions-workspace { margin-top: 28px; }
.service-descriptions-workspace > h2 { margin: 0 0 12px; }
.description-intro { max-width: 72ch; margin: 0 0 28px; color: #405774; line-height: 1.6; }
.service-descriptions-layout { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.5fr); align-items: start; gap: 32px; }
.description-service-group { margin-bottom: 24px; }
.description-service-group h3 { font-size: 16px; margin: 0 0 12px; color: #405774; }
.nails-theme .description-service-group button { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 100%; min-height: 68px; margin: 0 0 8px; padding: 12px 16px; border: 1px solid #b5cfee; border-radius: 6px; background: #fff; color: #0d1535; text-align: left; white-space: normal; font: inherit; line-height: 1.45; cursor: pointer; transition: background-color .15s; }
.description-service-group button span { font-weight: 600; overflow-wrap: anywhere; }
.description-service-group button small { color: #405774; font-size: 13px; margin-top: 3px; }
.nails-theme .description-service-group button[aria-pressed="true"] { background: #e3efff; border-color: #005ed8; }
.nails-theme .description-service-group button:hover { background: #d3e5ff; }
.description-editor { padding: 24px; border: 1px solid #b5cfee; border-radius: 8px; background: #fff; min-width: 0; }
.description-editor h3 { margin: 0 0 24px; font-size: 21px; line-height: 1.35; overflow-wrap: anywhere; }
.description-editor label { display: block; font-weight: 600; margin-bottom: 10px; }
.nails-theme .description-editor textarea { box-sizing: border-box; width: 100%; min-height: 220px; margin: 0; padding: 14px; border: 1px solid #90afd6; border-radius: 6px; color: #0d1535; background: #fff; resize: vertical; font: inherit; font-size: 16px; line-height: 1.6; caret-color: #005ed8; }
.description-editor-help { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 10px 0 24px; color: #405774; font-size: 13px; line-height: 1.5; }
.description-editor-help p { flex: 1; min-width: 170px; margin: 0; }
#description-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.description-editor-actions { display: flex; gap: 12px; }
.nails-theme .description-editor-actions button:disabled { background: #e8eef6; border-color: #cbd7e6; color: #53657b; cursor: default; }
.description-feedback { min-height: 24px; margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: #235a40; }
.description-feedback.is-error { color: #9c2635; }
@media (max-width: 700px) {
  .service-descriptions-layout { grid-template-columns: 1fr; gap: 12px; }
  .description-service-list { max-height: 260px; overflow-y: auto; scrollbar-color: #90afd6 #f1f6ff; padding: 3px 6px 3px 3px; }
  .description-editor { padding: 20px; }
  .description-editor-actions { flex-direction: column; }
  .nails-service-dialog header { padding: 20px; }
  .nails-service-dialog h2 { font-size: 21px; }
  .service-description-body { padding: 20px; }
  .nails-service-dialog footer { padding: 16px 20px 20px; flex-direction: column; }
  .nails-service-dialog button { flex: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .nails-service-dialog button, .service-descriptions-workspace button { transition: none; } }

body.nails-theme #app .nails-staff-mode:has([data-services-mode="descriptions"]) { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media (max-width: 700px) { body.nails-theme #app .nails-staff-mode:has([data-services-mode="descriptions"]) { grid-template-columns: repeat(2,minmax(0,1fr)); } }
