:is(.service-drawer, .equipment-create-drawer, .material-drawer) {
  width: min(100%, 640px);
  background: linear-gradient(140deg, #fff 35%, #f4f8fe);
  color: var(--crm-ink);
}
:is(.service-drawer, .equipment-create-drawer, .material-drawer)::backdrop { background: rgb(35 37 70 / 36%); backdrop-filter: blur(2px); }
:is(.service-drawer, .equipment-create-drawer, .material-drawer) :is(.drawer-head, .drawer-body, .drawer-footer) { padding: 16px 22px; border-color: var(--crm-border); }
:is(.service-drawer, .equipment-create-drawer, .material-drawer) :is(.drawer-head, .drawer-footer) { background: var(--crm-surface); }
:is(.service-drawer, .equipment-create-drawer, .material-drawer) .drawer-head h2 { margin: 0; font-size: 22px; }
:is(.service-drawer, .equipment-create-drawer, .material-drawer) .drawer-head .icon { width: 18px; height: 18px; }
:is(.service-drawer, .equipment-create-drawer, .material-drawer) .drawer-head .icon-button { padding: 0; width: 36px; min-height: 36px; }
:is(.service-drawer, .equipment-create-drawer, .material-drawer) .drawer-footer .button { min-height: 40px; }
:is(.service-drawer, .equipment-create-drawer, .material-drawer) .drawer-footer .primary { background: var(--crm-gradient); }
:is(.service-form, .material-form) { display: grid; gap: 16px; }
.service-form [data-service-suggestions]:empty { display: none; }
.material-form [data-material-suggestions]:empty { display: none; }
:is(.service-form, .material-form) :is(.field input, .field select, .field textarea) { border-radius: 9px; }
:is(.service-form, .material-form) .field :is(input, select) { min-height: 40px; }
.service-drawer-notes > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #eceafa;
  color: var(--crm-indigo);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.service-drawer-notes > summary::-webkit-details-marker { display: none; }
.service-drawer-notes > summary .icon { width: 18px; height: 18px; }
.service-drawer-notes[open] .field { margin-top: 8px; }

.service-category-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.service-category-picker legend, .service-examples > span {
  display: block;
  margin-bottom: 7px;
  color: var(--crm-ink);
  font-size: 14px;
  font-weight: 650;
}
.service-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.service-category-option { position: relative; display: flex; min-width: 0; cursor: pointer; }
.service-category-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.service-category-option > span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--crm-border);
  border-radius: 9px;
  background: var(--crm-surface);
  color: var(--crm-ink);
  font-size: 14px;
  line-height: 1.3;
}
.service-category-option strong { font-weight: 650; overflow-wrap: anywhere; }
.service-category-option .icon { width: 18px; height: 18px; }
.service-category-mark {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid #a5acc8;
  border-radius: 50%;
}
.service-category-mark .icon { display: none; width: 12px; height: 12px; }
.service-category-option input:checked + span {
  border-color: var(--crm-indigo);
  background: linear-gradient(115deg, #efe9ff, #eef6ff);
}
.service-category-option input:checked + span .service-category-mark { border-color: var(--crm-indigo); background: var(--crm-gradient); color: #fff; }
.service-category-option input:checked + span .service-category-mark .icon { display: block; }
.service-category-option input:disabled + span { cursor: default; }
.service-category-option input:not(:disabled) + span:hover { border-color: var(--crm-indigo); }
.service-category-option input:focus-visible + span,
.service-example:focus-visible, :is(.service-drawer, .equipment-create-drawer, .material-drawer) summary:focus-visible {
  outline: 2px solid var(--crm-indigo);
  outline-offset: 2px;
}
.service-example-list { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.service-example {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  padding: 5px 10px;
  border: 1px solid var(--crm-border);
  border-radius: 8px;
  background: var(--crm-surface);
  color: var(--crm-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.service-example:is(:hover, [aria-pressed="true"]) { border-color: var(--crm-indigo); background: #efebff; color: var(--crm-indigo); }
.service-example .icon { display: none; width: 14px; height: 14px; }
.service-example[aria-pressed="true"] .icon { display: block; }
.cq-quick-add > :is(.service-category-picker, [data-service-suggestions]:not(:empty)) { margin-bottom: 10px; }
.cq-quick-add .service-example:disabled { opacity: .55; cursor: default; }

@media (max-width: 440px) {
  :is(.service-drawer, .equipment-create-drawer, .material-drawer) :is(.drawer-head, .drawer-body, .drawer-footer) { padding-inline: 14px; }
  .service-category-option > span { gap: 6px; padding-inline: 7px; font-size: 13px; }
  .service-category-option .icon { width: 16px; height: 16px; }
  .service-category-mark .icon { width: 11px; height: 11px; }
}
