:root {
  --bg: #f6f1e9;
  --bg-soft: #efe7db;
  --surface: #fffcf7;
  --surface-2: #f6eee3;
  --border: #e2d5c5;
  --border-strong: #d3c1ac;
  --text: #2e2721;
  --muted: #7d6d5e;
  --accent: #7a5230;
  --accent-dark: #5e3d21;
  --accent-soft: #eadccb;
  --green: #3f7d58;
  --green-soft: #e2f0e7;
  --amber: #a1701d;
  --amber-soft: #f7ecd5;
  --red: #a2453b;
  --red-soft: #f6e2df;
  --shadow: 0 14px 34px rgba(74, 53, 39, 0.1);
  --shadow-soft: 0 4px 14px rgba(74, 53, 39, 0.07);
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: 0.01em;
}

a {
  color: var(--accent-dark);
}

[hidden] {
  display: none !important;
}

.muted {
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff8ef;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-dark);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--accent-dark);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-2);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(122, 82, 48, 0.08);
  color: var(--accent-dark);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: #8a382f;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.icon-btn:hover {
  background: rgba(122, 82, 48, 0.09);
  color: var(--accent-dark);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* ---------- Login ---------- */

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 50% -10%, #fbf6ee 0%, rgba(251, 246, 238, 0) 60%),
    linear-gradient(180deg, #f7f2ea 0%, #efe6d9 100%);
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: min(400px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 36px 32px 30px;
  text-align: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--accent);
  color: #fdf7ee;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.login-card .brand-mark {
  width: 62px;
  height: 62px;
  font-size: 24px;
  margin-bottom: 18px;
}

.login-title {
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-subtitle {
  margin: 8px 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.login-form {
  text-align: left;
}

.login-footnote {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122, 82, 48, 0.14);
}

input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 84px;
}

.alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 14px;
}

.alert-error {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid #ecc9c4;
}

.alert-info {
  background: var(--surface-2);
  color: var(--accent-dark);
  border: 1px solid var(--border);
}

/* ---------- App shell ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 68px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark.small {
  width: 40px;
  height: 40px;
  font-size: 16px;
  border-radius: 11px;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
  margin-right: 8px;
  max-width: 220px;
}

.user-chip strong {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.user-chip span {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 22px 60px;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-soft);
}

.stat-notsubmitted::after {
  background: #d9b48f;
}

.stat-sber::after {
  background: #9fc4ad;
}

.stat-vtb::after {
  background: #b9cfc0;
}

.stat-both::after {
  background: #88a893;
}

.stat-submitted::after {
  background: #b9cfc0;
}

.stat-review::after {
  background: #e4c894;
}

.stat-approved::after {
  background: #9fc4ad;
}

.stat-rejected::after {
  background: #d9a49d;
}

.stat-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 30px;
  font-weight: 650;
  line-height: 1;
}

.stats-note {
  margin: 6px 2px 0;
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- Panels ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  margin-top: 18px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.toolbar .search-wrap {
  position: relative;
  flex: 1 1 240px;
  min-width: 200px;
}

.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--muted);
  pointer-events: none;
}

.search-wrap input {
  padding-left: 36px;
}

.toolbar select {
  flex: 0 1 190px;
  width: auto;
  min-width: 150px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.panel-actions .btn-primary {
  margin-right: auto;
}

.table-panel {
  padding: 0;
  overflow: hidden;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

#table-count {
  font-weight: 600;
  color: var(--text);
}

.table-scroll {
  overflow-x: auto;
}

.clients-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 940px;
}

.clients-table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 650;
  padding: 12px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.clients-table td {
  padding: 12px 12px;
  border-bottom: 1px solid #f0e7dc;
  vertical-align: top;
}

.clients-table tbody tr:hover {
  background: #fdf8f1;
}

.clients-table tbody tr:last-child td {
  border-bottom: 0;
}

.clients-table tr.group-row td {
  background: var(--surface-2);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.clients-table tr.group-row:hover {
  background: var(--surface-2);
}

.name-main {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.name-sub {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.name-comment {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.cell-text {
  max-width: 240px;
  overflow-wrap: anywhere;
}

.comment-text {
  max-width: 260px;
  color: #4c4138;
  font-size: 14px;
}

.quick-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.quick-check input {
  width: 19px;
  height: 19px;
  cursor: pointer;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge-neutral {
  background: #efe9e1;
  color: #6a5a4b;
}

.badge-review {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge-approved {
  background: var(--green-soft);
  color: var(--green);
}

.badge-rejected {
  background: var(--red-soft);
  color: var(--red);
}

.badge-yes {
  background: var(--green-soft);
  color: var(--green);
}

.badge-no {
  background: #efe9e1;
  color: #6a5a4b;
}

.row-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}

.row-comment {
  padding: 5px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-dark);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.row-comment:hover {
  background: var(--surface-2);
}

.bank-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  user-select: none;
}

.bank-switch .bank-name {
  min-width: 26px;
}

.bank-switch input,
.switch-line input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #d8cec1;
  transition: background-color 0.15s ease;
  flex: 0 0 auto;
}

.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(46, 39, 33, 0.3);
  transition: transform 0.15s ease;
}

.bank-switch input:checked + .switch-track,
.switch-line input:checked + .switch-track {
  background: var(--green);
}

.bank-switch input:checked + .switch-track .switch-knob,
.switch-line input:checked + .switch-track .switch-knob {
  transform: translateX(16px);
}

.bank-state {
  min-width: 62px;
}

.bank-switch.is-on .bank-state {
  color: var(--green);
}

.bank-switch:not(.is-on) .bank-state {
  color: var(--red);
}

.switch-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  cursor: pointer;
  font-weight: 600;
}

.switch-state {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

.switch-line input:checked ~ .switch-state {
  color: var(--green);
}

.empty-state {
  padding: 56px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state p {
  margin: 0 0 16px;
  font-size: 15px;
}

/* ---------- Modals ---------- */

dialog.modal {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(660px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--surface);
  color: var(--text);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(46, 39, 33, 0.35);
}

dialog.modal::backdrop {
  background: rgba(46, 39, 33, 0.45);
  backdrop-filter: blur(2px);
}

dialog.modal-wide {
  width: min(800px, calc(100vw - 28px));
}

dialog.modal-xwide {
  width: min(1120px, calc(100vw - 28px));
}

dialog.modal-small {
  width: min(440px, calc(100vw - 28px));
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 {
  font-size: 18px;
}

.modal-body {
  padding: 18px 20px 20px;
}

.modal-text {
  padding: 0 20px;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px 20px;
}

.modal-actions.bordered {
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  padding: 18px 20px;
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.field-inline {
  display: flex;
  gap: 8px;
}

.field-inline input {
  flex: 1;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 26px;
}

.checkbox-line label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}

.checkbox-hint {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  font-weight: 400;
}

.import-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.file-pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-pick .btn {
  cursor: pointer;
}

.link {
  color: var(--accent-dark);
  text-decoration: underline;
  font-size: 14px;
}

.import-summary {
  margin: 0 20px 12px;
  font-weight: 600;
}

.import-summary .warn {
  color: var(--amber);
}

.import-summary .bad {
  color: var(--red);
}

.import-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  font-size: 13.5px;
}

.import-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 9px 10px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.import-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #f0e7dc;
  vertical-align: top;
}

.import-table tr.row-invalid {
  background: #fdf3f2;
}

.import-table tr.row-duplicate {
  background: #fdf8ec;
}

.issue-text {
  color: var(--red);
  max-width: 240px;
}

.issue-text .warn {
  color: var(--amber);
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.users-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 9px 10px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.users-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #f0e7dc;
  vertical-align: middle;
}

.user-cell {
  display: flex;
  flex-direction: column;
}

.user-cell small {
  color: var(--muted);
}

.user-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-section {
  padding: 16px 20px 4px;
}

.admin-section h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 4px;
}

.admin-section .form-grid {
  padding: 12px 0 0;
}

.created-user {
  margin: 8px 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  border: 1px solid #cfe4d7;
  font-size: 14px;
}

.created-user code {
  display: inline-block;
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13.5px;
  margin: 2px 0;
  user-select: all;
}

/* ---------- Toasts ---------- */

.toast-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 36px));
}

.toast {
  background: var(--text);
  color: #fdf8f1;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: toast-in 0.18s ease-out;
}

.toast.toast-error {
  background: var(--red);
}

.toast.toast-warn {
  background: var(--amber);
}

.toast.toast-ok {
  background: var(--green);
}

.toast.is-leaving {
  opacity: 0;
  transition: opacity 0.25s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar-inner {
    padding: 10px 16px;
  }
  .page {
    padding: 18px 14px 50px;
  }
  .brand-sub {
    display: none;
  }
  .brand-title {
    letter-spacing: 0.08em;
    font-size: 13px;
  }
  .user-chip {
    display: none;
  }
  .toolbar select {
    flex: 1 1 160px;
  }
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat {
    padding: 13px 14px;
  }
  .stat-value {
    font-size: 25px;
  }
  .panel {
    padding: 13px;
  }
  .panel-actions .btn {
    flex: 1 1 auto;
  }
  .table-scroll {
    overflow: visible;
  }
  .clients-table {
    min-width: 0;
    display: block;
  }
  .clients-table thead {
    display: none;
  }
  .clients-table tbody {
    display: block;
  }
  .clients-table tr.group-row {
    display: block;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 13px;
    margin: 10px;
    padding: 10px 14px;
  }
  .clients-table tr.group-row td {
    display: block;
    text-align: left;
    border: 0;
    padding: 0;
    background: transparent;
  }
  .clients-table tr.group-row td::before {
    display: none;
  }
  .clients-table tr {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 12px 14px;
    margin: 10px;
  }
  .clients-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 6px 0;
    border-bottom: 1px dashed #f0e7dc;
    max-width: none;
  }
  .clients-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .clients-table td::before {
    content: attr(data-label);
    flex: 0 0 40%;
    color: var(--muted);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 650;
    padding-top: 2px;
  }
  .clients-table td.td-name {
    display: block;
    font-size: 16px;
    padding-top: 0;
  }
  .clients-table td.td-name::before {
    display: none;
  }
  .clients-table td.td-actions {
    justify-content: flex-end;
    padding-top: 10px;
  }
  .clients-table td.td-actions::before {
    content: "Действия";
  }
  .cell-text,
  .comment-text {
    max-width: 58%;
    text-align: right;
  }
  .row-actions {
    justify-content: flex-end;
  }
  .form-grid {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }
  .form-grid .span-2 {
    grid-column: auto;
  }
  .checkbox-line {
    padding-top: 0;
  }
  .modal-actions {
    padding: 14px 16px 18px;
  }
  .modal-actions .btn {
    flex: 1 1 auto;
  }
  .modal-head {
    padding: 15px 16px 12px;
  }
  .import-top {
    padding: 14px 16px;
  }
  .import-summary {
    margin: 0 16px 10px;
  }
  .admin-section {
    padding: 14px 16px 2px;
  }
}

@media (max-width: 700px) {
  .topbar-inner {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .brand {
    flex: 1 1 100%;
  }
  .brand-title {
    white-space: normal;
    font-size: 13px;
    letter-spacing: 0.06em;
  }
  .topbar-actions {
    flex: 1 1 100%;
    justify-content: flex-end;
    border-top: 1px dashed var(--border);
    padding-top: 8px;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand-title {
    font-size: 12px;
    letter-spacing: 0.05em;
  }
  .topbar-actions .btn {
    padding: 8px 10px;
    font-size: 13px;
  }
  .login-card {
    padding: 28px 22px 24px;
  }
}
