:root {
  --bg: #f6f7f4;
  --bg-soft: #fbfcfa;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-muted: #eef3f1;
  --surface-tint: #f3f7f6;
  --line: rgba(43, 86, 114, 0.14);
  --line-strong: rgba(43, 86, 114, 0.24);
  --text: #223645;
  --text-soft: #516573;
  --text-faint: #738694;
  --teal: #10a086;
  --teal-deep: #0a7c68;
  --blue: #2b5672;
  --blue-soft: #dce7ee;
  --gold: #eff4bf;
  --danger: #df3131;
  --danger-deep: #b72828;
  --shadow: 0 24px 60px rgba(32, 54, 66, 0.09);
  --shadow-soft: 0 16px 32px rgba(32, 54, 66, 0.06);
  --radius: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(95, 186, 167, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(43, 86, 114, 0.10), transparent 28%),
    linear-gradient(180deg, #f9faf7 0%, #f3f5f2 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body {
  line-height: 1.5;
  letter-spacing: -0.01em;
}

button, input, select, textarea {
  font: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(16px);
  pointer-events: none;
  opacity: 0.75;
}

.bg-orb-a {
  top: -120px;
  left: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(16, 160, 134, 0.18), rgba(16, 160, 134, 0));
}

.bg-orb-b {
  right: -120px;
  bottom: 40px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(43, 86, 114, 0.14), rgba(43, 86, 114, 0));
}

.env-banner {
  width: min(1380px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(223, 49, 49, 0.12), rgba(255, 128, 68, 0.12));
  border: 1px solid rgba(223, 49, 49, 0.18);
  color: #8f2b2b;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-soft);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 20px auto 0;
  width: min(1380px, calc(100% - 32px));
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  border-radius: 22px;
}

.brand-wrap,
.auth-area,
.row,
.subpanel-head,
.panel-header.split,
.toolbar-row,
.between-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(16, 160, 134, 0.16), rgba(43, 86, 114, 0.08));
  border: 1px solid rgba(16, 160, 134, 0.14);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.eyebrow,
.panel-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-deep);
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue);
}

.auth-area {
  justify-content: flex-end;
}

.env-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.env-badge.production {
  background: rgba(43, 86, 114, 0.08);
  border: 1px solid rgba(43, 86, 114, 0.14);
  color: var(--blue);
}

.env-badge.staging {
  background: rgba(223, 49, 49, 0.12);
  border: 1px solid rgba(223, 49, 49, 0.18);
  color: var(--danger-deep);
}

html[data-env="staging"] .topbar {
  border-color: rgba(223, 49, 49, 0.18);
}

html[data-env="staging"] .brand-mark {
  background: linear-gradient(160deg, rgba(223, 49, 49, 0.12), rgba(255, 128, 68, 0.10));
  border-color: rgba(223, 49, 49, 0.16);
}

.auth-area #authEmail {
  color: var(--text-soft);
  font-weight: 600;
}

.layout {
  width: min(1380px, calc(100% - 32px));
  margin: 24px auto 0;
  padding-bottom: 28px;
}

.auth-card,
.tabview,
.sidebar-card,
.toolbar-card,
.detail-panel,
.ghost-panel,
.subpanel,
.card,
.list,
.filetree,
.modal {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.auth-card {
  max-width: 720px;
  margin: 60px auto;
  padding: 34px;
  border-radius: 30px;
}

.auth-card h1,
.tabview h2,
.tabview h3,
.tabview h4,
.sidebar-card h2 {
  margin: 6px 0 0;
  font-family: "Avenir Next", "Avenir", "Segoe UI", sans-serif;
  line-height: 1.1;
  color: var(--blue);
}

.auth-card h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  max-width: 12ch;
}

.panel-copy,
.muted,
.info-note,
.footer {
  color: var(--text-faint);
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.field-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-block label,
.field-inline label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

input,
textarea,
.select {
  width: 100%;
  min-height: 48px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

textarea {
  min-height: 240px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, Monaco, monospace;
  line-height: 1.55;
}

input:focus,
textarea:focus,
.select:focus {
  border-color: rgba(16, 160, 134, 0.4);
  box-shadow: 0 0 0 4px rgba(16, 160, 134, 0.12);
}

textarea[readonly] {
  background: rgba(243, 247, 246, 0.86);
  color: #5a6975;
}

.btn {
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  box-shadow: 0 6px 16px rgba(43, 86, 114, 0.06);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(43, 86, 114, 0.2);
  box-shadow: 0 12px 22px rgba(43, 86, 114, 0.1);
}

.btn.small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.btn.primary {
  background: linear-gradient(135deg, var(--teal), #5fbaa7);
  border-color: transparent;
  color: white;
  box-shadow: 0 16px 30px rgba(16, 160, 134, 0.22);
}

.btn.primary:hover {
  box-shadow: 0 18px 34px rgba(16, 160, 134, 0.28);
}

.btn.danger {
  background: linear-gradient(135deg, #f05a5a, var(--danger));
  border-color: transparent;
  color: white;
  box-shadow: 0 14px 26px rgba(223, 49, 49, 0.18);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-actions {
  margin-top: 18px;
}

.auth-message {
  margin-top: 14px;
  min-height: 24px;
}

.dashboard-frame {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card,
.tabview,
.toolbar-card,
.detail-panel,
.ghost-panel,
.subpanel,
.card,
.list,
.filetree {
  border-radius: var(--radius);
}

.sidebar-card {
  padding: 20px;
}

.side-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-soft);
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(43, 86, 114, 0.08);
  color: var(--blue);
  font-size: 0.9rem;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue);
  border-color: rgba(43, 86, 114, 0.12);
}

.tab.active {
  background: linear-gradient(135deg, rgba(16, 160, 134, 0.12), rgba(43, 86, 114, 0.08));
  color: var(--blue);
  border-color: rgba(16, 160, 134, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tab[data-tab="dashboard"]:not(.active) {
  background: linear-gradient(135deg, rgba(43, 86, 114, 0.96), rgba(67, 108, 137, 0.94));
  color: #ffffff;
  border-color: rgba(43, 86, 114, 0.72);
  box-shadow: 0 12px 26px rgba(43, 86, 114, 0.18);
}

.tab[data-tab="dashboard"]:not(.active) span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.tab.active span {
  background: rgba(16, 160, 134, 0.14);
  color: var(--teal-deep);
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tabview {
  display: none;
  padding: 26px;
}

.hero-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(251,252,250,0.9) 100%),
    linear-gradient(135deg, rgba(95,186,167,0.08), rgba(43,86,114,0.02));
}

.panel-header {
  margin-bottom: 18px;
}

.panel-header.split {
  justify-content: space-between;
  align-items: flex-start;
}

.panel-header.compact {
  margin-bottom: 14px;
}

.action-row {
  justify-content: flex-end;
}

.back-dashboard-btn {
  background: rgba(43, 86, 114, 0.08);
  border-color: rgba(43, 86, 114, 0.14);
  color: var(--blue);
}

.back-dashboard-btn:hover {
  border-color: rgba(43, 86, 114, 0.24);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(247,250,248,0.86));
}

.card.clickable {
  cursor: pointer;
}

.card.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(32, 54, 66, 0.12);
}

.card .metric {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--blue);
}

.card .metric.metric-loading {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.spinner {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 3px solid rgba(43, 86, 114, 0.16);
  border-top-color: var(--teal);
  animation: pk-spin 0.8s linear infinite;
}

@keyframes pk-spin {
  to { transform: rotate(360deg); }
}

.card .label {
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 0.92rem;
}

.info-banner,
.info-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(239, 244, 191, 0.42);
  border: 1px solid rgba(43, 86, 114, 0.08);
}

.toolbar-card,
.detail-panel,
.ghost-panel,
.subpanel {
  padding: 18px;
}

.toolbar-row {
  justify-content: space-between;
}

.toolbar-row input {
  flex: 1 1 260px;
}

.between-row {
  justify-content: space-between;
  margin-top: 12px;
}

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

.stack-gap {
  margin-top: 16px;
}

.report-filter-row {
  margin-top: 12px;
  gap: 10px;
}

.report-filter {
  border-radius: 16px;
  padding-right: 10px;
}

.report-filter.active {
  background: linear-gradient(135deg, rgba(16, 160, 134, 0.14), rgba(43, 86, 114, 0.08));
  border-color: rgba(16, 160, 134, 0.18);
  color: var(--blue);
}

.offer-filter.active {
  background: linear-gradient(135deg, rgba(16, 160, 134, 0.14), rgba(43, 86, 114, 0.08));
  border-color: rgba(16, 160, 134, 0.18);
  color: var(--blue);
}

.report-filter .badge {
  margin-left: 4px;
}

.detail-panel {
  margin-top: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.subpanel {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(43, 86, 114, 0.08);
  box-shadow: none;
}

.subpanel-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.filetree {
  min-height: 180px;
  max-height: 380px;
  overflow: auto;
  padding: 14px;
  background: rgba(243, 247, 246, 0.72);
  border: 1px dashed rgba(43, 86, 114, 0.18);
  box-shadow: none;
}

.inline-check {
  margin-top: 14px;
}

.list {
  overflow: visible;
  border: 1px solid rgba(43, 86, 114, 0.08);
  position: relative;
}

.list .rowi {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  align-items: center;
  border-bottom: 1px solid rgba(43, 86, 114, 0.08);
  background: rgba(255, 255, 255, 0.46);
}

.list .rowi:last-child {
  border-bottom: none;
}

.list .rowi:nth-child(even):not(.header) {
  background: rgba(243, 247, 246, 0.65);
}

.list .rowi.user-row {
  grid-template-columns: 32px 1.1fr 1.4fr 0.95fr auto;
}

.list .rowi.user-row.header {
  font-weight: 800;
  background: linear-gradient(180deg, rgba(43, 86, 114, 0.08), rgba(43, 86, 114, 0.04));
  color: var(--blue);
}

.list .rowi.user-row.admin {
  background: rgba(239, 244, 191, 0.3);
}

.list .rowi.user-row.active {
  outline: 1px solid rgba(16, 160, 134, 0.26);
  background: rgba(16, 160, 134, 0.08);
}

.list .rowi.user-row .col-checkbox,
.list .rowi.user-row .col-actions {
  display: flex;
  align-items: center;
}

.list .rowi.user-row .col-actions {
  justify-content: flex-end;
}

.list .rowi.user-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
}

.list .rowi.partner-row {
  grid-template-columns: 82px 1fr auto;
}

.list .rowi.report-row {
  grid-template-columns: minmax(160px, 1fr) 120px 140px minmax(180px, 1.1fr) minmax(180px, 1.1fr) auto;
  align-items: start;
}

.list .rowi.offer-row {
  grid-template-columns: minmax(200px, 1.2fr) 120px minmax(160px, 1fr) minmax(220px, 1.1fr) auto;
  align-items: start;
}

.list .rowi.offer-row.header {
  font-weight: 800;
  background: linear-gradient(180deg, rgba(43, 86, 114, 0.08), rgba(43, 86, 114, 0.04));
  color: var(--blue);
}

.offer-actions {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 56px;
}

.kebab-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(43, 86, 114, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(43, 86, 114, 0.08);
}

.kebab-btn:hover {
  border-color: rgba(43, 86, 114, 0.22);
  box-shadow: 0 12px 20px rgba(43, 86, 114, 0.12);
}

.action-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(43, 86, 114, 0.12);
  box-shadow: 0 18px 34px rgba(32, 54, 66, 0.16);
  z-index: 12;
}

.offer-actions.open .action-menu {
  display: flex;
}

.action-menu-item {
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.action-menu-item:hover {
  background: rgba(43, 86, 114, 0.06);
}

.action-menu-item.primary {
  color: var(--teal-deep);
}

.action-menu-item.danger {
  color: var(--danger-deep);
}

.list .rowi.report-row.header {
  font-weight: 800;
  background: linear-gradient(180deg, rgba(43, 86, 114, 0.08), rgba(43, 86, 114, 0.04));
  color: var(--blue);
}

.report-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-title {
  font-weight: 700;
  color: var(--text);
}

.report-subline {
  font-size: 0.9rem;
  color: var(--text-faint);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-pill.open {
  background: rgba(16, 160, 134, 0.12);
  color: var(--teal-deep);
}

.status-pill.closed {
  background: rgba(43, 86, 114, 0.10);
  color: var(--blue);
}

.status-pill.resolved {
  background: rgba(239, 244, 191, 0.78);
  color: #5b6527;
}

.status-pill.deleted {
  background: rgba(223, 49, 49, 0.12);
  color: var(--danger-deep);
}

.status-pill.draft {
  background: rgba(43, 86, 114, 0.10);
  color: var(--blue);
}

.status-pill.pending_review {
  background: rgba(255, 128, 68, 0.14);
  color: #b25522;
}

.status-pill.approved {
  background: rgba(16, 160, 134, 0.14);
  color: var(--teal-deep);
}

.status-pill.active {
  background: rgba(16, 160, 134, 0.20);
  color: #086b5a;
}

.status-pill.paused {
  background: rgba(239, 244, 191, 0.78);
  color: #5b6527;
}

.status-pill.rejected {
  background: rgba(223, 49, 49, 0.12);
  color: var(--danger-deep);
}

.status-pill.archived,
.status-pill.expired {
  background: rgba(80, 96, 106, 0.12);
  color: #55656f;
}

.report-source {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
}

.thumb-box {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  border: 1px solid rgba(43, 86, 114, 0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(238,243,241,0.8));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(43, 86, 114, 0.08);
  border: 1px solid rgba(43, 86, 114, 0.12);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.badge.admin {
  background: rgba(239, 244, 191, 0.72);
  border-color: rgba(43, 86, 114, 0.08);
  color: #556024;
}

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

hr {
  border: 0;
  height: 1px;
  background: rgba(43, 86, 114, 0.08);
  margin: 20px 0;
}

a {
  color: var(--teal-deep);
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  text-decoration: underline;
}

.footer {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 28px;
  font-size: 0.9rem;
  text-align: center;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(34, 54, 69, 0.24);
  backdrop-filter: blur(12px);
}

.modal {
  width: min(680px, 100%);
  border-radius: 28px;
  overflow: hidden;
}

.modal .modal-header,
.modal .modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
}

.modal .modal-header {
  border-bottom: 1px solid rgba(43, 86, 114, 0.08);
}

.modal .modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue);
}

.modal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
}

.modal .modal-body .row {
  align-items: stretch;
}

.modal .modal-footer {
  justify-content: flex-end;
  border-top: 1px solid rgba(43, 86, 114, 0.08);
}

.modal .close-x {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-soft);
  transition: background 0.18s ease, color 0.18s ease;
}

.modal .close-x:hover {
  background: rgba(43, 86, 114, 0.08);
  color: var(--blue);
}

@media (max-width: 1080px) {
  .dashboard-frame {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .side-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar,
  .layout,
  .footer {
    width: min(100%, calc(100% - 20px));
  }

  .auth-card,
  .tabview,
  .toolbar-card,
  .detail-panel,
  .ghost-panel,
  .sidebar-card,
  .subpanel {
    padding: 20px;
  }

  .auth-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .list .rowi.user-row {
    grid-template-columns: 28px 1fr 1.1fr auto;
  }

  .list .rowi.user-row .col-created {
    display: none;
  }

  .list .rowi.partner-row {
    grid-template-columns: 62px 1fr;
  }

  .list .rowi.report-row {
    grid-template-columns: 1fr;
  }

  .list .rowi.report-row > div {
    min-width: 0;
  }

  .list .rowi.partner-row > :last-child {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .brand-wrap,
  .auth-area,
  .panel-header.split,
  .between-row {
    align-items: flex-start;
  }

  .auth-area {
    width: 100%;
    justify-content: space-between;
  }

  .tabview {
    padding: 18px;
  }

  .cards,
  .side-tabs {
    grid-template-columns: 1fr;
  }

  .action-row,
  .toolbar-row,
  .row {
    width: 100%;
  }

  .action-row .btn,
  .toolbar-row .btn,
  .toolbar-row input,
  .select {
    width: 100%;
  }
}
