.pbs-card {
  box-sizing: border-box;
  width: min(1400px, calc(100vw - 320px));
  margin: 0 0 16px;
  padding: 18px;
  color: var(--text-primary, #f5f5f5);
  background: var(--bg-secondary, #121212);
  border: 1px solid var(--border, #303036);
  border-radius: 12px;
}
.pbs-head, .pbs-footer, .pbs-actions { display: flex; align-items: center; }
.pbs-head { justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.pbs-head h2 { margin: 0 0 4px; font-size: 17px; }
.pbs-head p { margin: 0; color: var(--text-secondary, #9b9ba4); font-size: 12px; }
.pbs-switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 12px; font-weight: 600; }
.pbs-switch input { position: absolute; opacity: 0; pointer-events: none; }
.pbs-switch-ui { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #3b3b42; transition: background .18s; }
.pbs-switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s; }
.pbs-switch input:checked + .pbs-switch-ui { background: var(--accent, #7c5cff); }
.pbs-switch input:checked + .pbs-switch-ui::after { transform: translateX(18px); }
.pbs-switch input:focus-visible + .pbs-switch-ui { outline: 2px solid var(--accent, #7c5cff); outline-offset: 2px; }
.pbs-grid { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 12px; }
.pbs-field { display: flex; flex-direction: column; gap: 6px; color: var(--text-secondary, #9b9ba4); font-size: 11px; font-weight: 600; }
.pbs-field select, .pbs-field input { box-sizing: border-box; width: 100%; min-height: 38px; padding: 8px 10px; color: var(--text-primary, #f5f5f5); background: var(--bg-tertiary, #1c1c20); border: 1px solid var(--border, #34343b); border-radius: 7px; font: inherit; font-size: 13px; outline: none; }
.pbs-field select:focus, .pbs-field input:focus { border-color: var(--accent, #7c5cff); }
.pbs-field small { color: var(--text-muted, #74747e); font-weight: 400; }
.pbs-money-input { position: relative; }
.pbs-money-input input { padding-right: 32px; }
.pbs-money-input span { position: absolute; right: 11px; top: 10px; color: var(--text-muted, #74747e); }
.pbs-footer { justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border, #303036); }
.pbs-estimate { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.pbs-estimate span { color: var(--text-secondary, #9b9ba4); font-size: 11px; }
.pbs-actions { gap: 10px; }
.pbs-status { max-width: 260px; color: var(--text-secondary, #9b9ba4); font-size: 11px; }
.pbs-status.is-ok { color: #35c979; }
.pbs-status.is-error { color: #ff5c64; }
.pbs-save { min-height: 38px; padding: 0 18px; border: 0; border-radius: 7px; color: #111; background: #f2f2f2; font-size: 12px; font-weight: 700; cursor: pointer; }
.pbs-save:hover { filter: brightness(1.08); }
.pbs-save:disabled { cursor: wait; opacity: .65; }
@media (max-width: 760px) {
  .pbs-card { width: calc(100vw - 28px); padding: 14px; }
  .pbs-head, .pbs-footer { align-items: flex-start; flex-direction: column; }
  .pbs-grid { grid-template-columns: 1fr; width: 100%; }
  .pbs-actions { justify-content: space-between; width: 100%; }
  .pbs-save { min-width: 120px; margin-left: auto; }
}
