.service-picker {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(130px, .7fr) minmax(190px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #d9e5ef;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7fbff 0%, #eef7f4 100%);
}

.service-picker strong { display: block; color: #102a43; font-size: 1rem; }
.service-picker p { margin: 4px 0 0; font-size: .84rem; color: #627d98; }
.picker-kicker { display: block; margin-bottom: 3px; color: #0c7b68; font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.item-category-label { display: inline-block; margin-left: 8px; color: #0c7b68; font-size: .73rem; font-weight: 600; }

.catalog-panel { margin-top: 18px; padding: 20px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.catalog-head,
.catalog-row { display: grid; grid-template-columns: 1fr 100px 1.5fr 90px 120px 38px; gap: 10px; align-items: end; }
.catalog-head { padding: 0 4px 8px; color: #627d98; font-size: .75rem; font-weight: 700; }
.catalog-list { display: grid; gap: 10px; }
.catalog-row { padding: 10px; border: 1px solid #e6edf3; border-radius: 12px; background: #f9fbfd; }
.catalog-row label { margin: 0; }
.catalog-row input { width: 100%; }
.remove-catalog { width: 38px; height: 39px; padding: 0; border: 1px solid #f1c6c6; border-radius: 9px; color: #b42318; background: #fff5f5; cursor: pointer; }

.logo-settings { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; margin-bottom: 20px; padding: 16px; border: 1px solid #d9e5ef; border-radius: 14px; background: #f7fafc; }
.logo-preview { width: 112px; height: 92px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #9fb3c8; border-radius: 12px; background: #fff; color: #102a43; font-size: 25px; font-weight: 800; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.logo-controls strong { color: #102a43; }
.logo-controls p { margin: 3px 0 10px; color: #627d98; font-size: .76rem; line-height: 1.5; }
.logo-controls input[type="file"] { padding: 8px; background: #fff; }
.logo-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }

.customer-schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.schedule-picker-box { display: grid; gap: 10px; padding: 14px; border: 1px solid #d9e5ef; border-radius: 13px; background: #f7fafc; }
.schedule-fields { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10px; }
.schedule-fields input { min-height: 43px; cursor: pointer; color-scheme: light; }
.schedule-fields select { min-height: 43px; cursor: pointer; font-variant-numeric: tabular-nums; }
.schedule-fields label small { color: #0c7b68; font-size: .68rem; font-weight: 700; }
.schedule-shortcuts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.schedule-shortcuts span { margin-right: 2px; color: #627d98; font-size: .72rem; font-weight: 700; }
.schedule-shortcuts button { padding: 5px 9px; border: 1px solid #c7d7e5; border-radius: 20px; background: #fff; color: #315d85; font-size: .72rem; font-weight: 700; }
.schedule-shortcuts button:hover { border-color: #2680c2; background: #eaf4fb; }
.appointment-line { display: inline-block; margin: 8px 0 0; padding: 6px 9px; border-radius: 8px; background: #eef7f4; color: #0c7b68; font-size: .78rem; font-weight: 600; }
.apply-conditions { margin: -4px 0 14px 41px; }

.condition-panel { margin-top: 18px; }
.condition-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.condition-card { display: grid; gap: 11px; padding: 16px; border: 1px solid #d9e5ef; border-radius: 14px; background: linear-gradient(145deg, #fff, #f7fafc); }
.condition-card textarea { min-height: 70px; }
.condition-card-head { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.remove-template { height: 42px; padding: 0 12px; border: 1px solid #f1c6c6; border-radius: 9px; color: #b42318; background: #fff5f5; }
.settings-save-button { min-height: 50px; align-self: start; }
.autosave-hint { color: #0c7b68; font-size: .66rem; font-weight: 700; }

@media (max-width: 1050px) {
  .service-picker { grid-template-columns: 1fr 1fr; }
  .service-picker > div:first-child { grid-column: 1 / -1; }
  .catalog-head { display: none; }
  .catalog-row { grid-template-columns: 1fr 90px 1.3fr 75px 100px 38px; }
}

@media (max-width: 760px) {
  .item-row label:first-of-type { grid-column: 1 / -1; }
  .catalog-row { grid-template-columns: 1fr 1fr; }
  .catalog-row label:nth-of-type(3) { grid-column: 1 / -1; }
  .remove-catalog { height: 39px; }
  .customer-schedule-grid { grid-template-columns: 1fr; }
  .apply-conditions { margin-left: 0; width: 100%; }
  .condition-list { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .service-picker { grid-template-columns: 1fr; }
  .service-picker > div:first-child { grid-column: auto; }
  .service-picker .btn { width: 100%; }
  .catalog-row { grid-template-columns: 1fr; }
  .logo-settings { grid-template-columns: 1fr; }
  .logo-preview { width: 100%; }
  .schedule-fields { grid-template-columns: 1fr; }
}
