@media (max-width: 1420px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-panel {
    order: 2;
  }
}

.brand-logo img {
  position: static;
  width: 72px;
  height: 55px;
  object-fit: contain;
}

.brand-logo {
  width: 76px;
  height: 58px;
  flex-basis: 76px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.role-switch { cursor: default; }
.role-switch select { border: 0; padding: 0 20px 0 0; color: var(--muted); background: transparent; font-size: 11px; outline: none; }
.action-box { padding: 14px; border: 1px solid #cbe6f3; border-radius: 10px; background: #f3f9fd; }
.action-box h3 { margin: 0 0 10px; }
.action-box label { display: flex; flex-direction: column; gap: 6px; margin: 9px 0; color: var(--text); font-size: 12px; font-weight: 600; }
.action-box input, .action-box textarea, .action-box select { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 9px 10px; color: var(--ink); }
.action-box textarea { min-height: 72px; resize: vertical; }
.action-box .action-row { display: flex; gap: 8px; margin-top: 12px; }
.action-box .button { flex: 1; }
.action-box .danger-action { border-color: #efc2c7; color: var(--danger); background: #fff; }
[hidden] { display: none !important; }
.owner>span { display: flex; flex-direction: column; gap: 1px; }
.owner>span small { color: var(--muted); font-size: 10px; }
.reassign-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid #cbe6f3; }
.people-modal { width: 900px; max-height: 88vh; display: flex; flex-direction: column; }
.people-modal:not(.open) { display: none; }
.people-body { overflow: auto; padding: 18px 22px; }
.people-body section+section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.people-body h3 { margin: 0 0 5px; }
.muted-copy { margin: 0 0 13px; color: var(--muted); font-size: 12px; }
.default-list { display: grid; gap: 8px; }
.default-row { display: grid; grid-template-columns: minmax(170px,1fr) minmax(220px,1.2fr) 72px; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; }
.default-row>span { display: flex; flex-direction: column; gap: 2px; }
.default-row small { color: var(--muted); font-size: 10px; }
.default-row select { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; background: #fff; }
.people-table { overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
.people-table table { min-width: 620px; }
.people-table td { height: 48px; }
.people-table td:first-child { display: flex; flex-direction: column; gap: 2px; }
.people-table td small { color: var(--muted); font-size: 10px; }
.people-table td:nth-child(4) { min-width: 150px; }
.people-table td:nth-child(4)>strong,.people-table td:nth-child(4)>small { display: block; }
.people-table td:nth-child(5) { min-width: 220px; }
.account-provision { display: flex; align-items: center; gap: 7px; }
.account-provision input { width: 125px; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; }
.temporary-credential { margin-bottom: 18px; padding: 14px; border: 1px solid #efcf8f; border-radius: 10px; background: #fff8e8; }
.temporary-credential[hidden] { display: none; }
.temporary-credential strong,.temporary-credential p { display: block; margin: 0 0 7px; }
.temporary-credential p { color: var(--text); font-size: 12px; }
.temporary-credential code { display: inline-block; margin-right: 10px; padding: 9px 11px; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; user-select: all; }
#userManagerForm { grid-template-columns: 1fr 1fr 1fr 1fr auto; align-items: end; padding: 15px 0 0; }
#userManagerForm .button { margin-bottom: 0; }
.empty-state { padding: 44px 20px; text-align: center; color: var(--muted); }
.status.ready, .status.done { background: #e8f7f3; color: #24786c; }
.status.waiting, .status.image { background: #eef2f6; color: #50657a; }
.toast.error > span { background: var(--danger); }
