:root {
  --bg: #eef3f8;
  --card: #ffffff;
  --card-soft: #f8fbff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbe5ef;
  --brand: #0f766e;
  --brand2: #0891b2;
  --dark: #071320;
  --red: #dc2626;
  --green: #16a34a;
  --orange: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, .18), transparent 30%),
    linear-gradient(180deg, #f8fbff, var(--bg));
}

.hidden {
  display: none !important;
}

label {
  display: block;
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #5eead4;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .13);
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
}

.btn.light {
  background: #e8eef6;
  color: #0f172a;
}

.btn.red {
  background: var(--red);
  color: #fff;
}

.btn.full {
  width: 100%;
  margin-top: 14px;
}

button {
  border: 0;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.actions.no-margin {
  margin-top: 0;
}

.msg.error,
.error,
.danger {
  color: var(--red);
  font-weight: 800;
}

.ok {
  color: var(--green);
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at top left, #14b8a6, #0f172a 55%, #020617);
}

.login-card {
  width: min(440px, 100%);
  background: #fff;
  padding: 30px;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.login-logo,
.brand-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 18px;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
}

.login-card h1 {
  margin: 18px 0 6px;
}

.login-card p {
  color: var(--muted);
}

.login-help {
  margin-top: 14px;
  padding: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  color: var(--muted);
  font-size: 13px;
}

.app {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 270px;
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 18px;
  background: linear-gradient(180deg, #061522, #071320);
  color: #fff;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 6px 0 24px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 15px;
}

.brand span {
  display: block;
  font-size: 12px;
  color: #99f6e4;
  margin-top: 2px;
}

.nav,
.logout {
  width: 100%;
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 800;
  text-align: left;
  color: #dbeafe;
  background: transparent;
  cursor: pointer;
  margin: 3px 0;
}

.nav.active,
.nav:hover {
  background: rgba(255, 255, 255, .10);
  color: #fff;
}

.logout {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #f8fafc;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .10);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
  }

  .sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .10);
  }

  .logout:hover {
    color: #fff;
    background: rgba(220, 38, 38, .22);
    border-color: rgba(248, 113, 113, .38);
    transform: translateY(-1px);
  }

  .logout-icon {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    color: #fecaca;
    background: rgba(220, 38, 38, .24);
    font-size: 18px;
    line-height: 1;
  }

.main {
  flex: 1;
  padding: 26px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.topbar h1 {
  margin: 0;
  font-size: 27px;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
}

.clock {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

.page-head,
.panel,
.kpi-card {
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.page-head {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.page-head h2,
.panel h3 {
  margin: 0;
}

.page-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.panel {
  padding: 18px;
  margin: 16px 0;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.form-grid,
.filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}

.filter-row.report-filter {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.full-col {
  grid-column: 1 / -1;
}

.small-select {
  min-width: 260px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 13px;
  margin: 14px 0;
}

.kpi-card {
  padding: 15px;
  min-height: 96px;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #14b8a6, #2563eb);
}

.kpi-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.kpi-card strong {
  display: block;
  font-size: 22px;
  margin-top: 7px;
}

.kpi-card small {
  color: var(--muted);
  display: block;
  margin-top: 7px;
}

.kpi-card.danger-card {
  border-color: #fecaca;
  background: #fff7f7;
}

.kpi-card.wide {
  grid-column: span 2;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  margin-top: 10px;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f1f5f9;
  text-transform: uppercase;
  font-size: 11px;
  color: #334155;
}

tr:last-child td {
  border-bottom: 0;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tfoot td {
  background: #e2e8f0;
  font-weight: 900;
}

td input,
td select,
td textarea {
  padding: 8px;
  border-radius: 10px;
}

.progress {
  height: 13px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.progress > div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #14b8a6, #0891b2);
}

.progress.danger > div {
  background: linear-gradient(90deg, #f59e0b, #dc2626);
}

.badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
}

.badge.approved,
.badge.admin {
  background: #dcfce7;
  color: #166534;
}

.badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.badge.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.badge.user {
  background: #dbeafe;
  color: #1e40af;
}

.click-row {
  cursor: pointer;
}

.click-row:hover {
  background: #ecfeff;
}

.day {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0;
  background: #fff;
}

.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-tab {
  border-radius: 12px;
  padding: 9px 13px;
  font-weight: 900;
  cursor: pointer;
  background: #e8eef6;
  color: #0f172a;
}

.report-tab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
}

.report-part {
  display: none;
}

.report-part.active {
  display: block;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  background: #0f172a;
  color: #fff;
  padding: 13px 16px;
  border-radius: 14px;
  box-shadow: 0 15px 45px rgba(0,0,0,.22);
  opacity: 0;
  transform: translateY(12px);
  transition: .2s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kpi-card.wide {
    grid-column: span 2;
  }

  .page-head {
    display: block;
  }

  .form-grid,
  .filter-row,
  .filter-row.report-filter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app {
    display: block;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
  }

  .main {
    padding: 14px;
  }

  .topbar {
    display: block;
  }

  .clock {
    margin-top: 12px;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .kpi-card.wide {
    grid-column: auto;
  }

  table {
    white-space: nowrap;
  }
}

.toast.danger-toast {
  background: #dc2626;
  color: #fff;
}

.toast.success-toast {
  background: #16a34a;
  color: #fff;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.62);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-box {
  width: min(920px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.modal-head h3 {
  margin: 0;
  font-size: 22px;
}

.modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.modal.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.65);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-box {
  width: min(920px, 100%);
  background: #ffffff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.modal-head h3 {
  margin: 0;
  font-size: 22px;
}

.modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.kpi-card.clickable {
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.kpi-card.clickable:hover {
  transform: translateY(-3px);
  border-color: #14b8a6;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
}

.kpi-card.clickable small {
  color: #0f766e;
  font-weight: 900;
}

.kpi-card.clickable:active {
  transform: translateY(0);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.shot-card {
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 10px;
}

.shot-card img {
  width: 100%;
  height: 135px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
}

.shot-card img:hover {
  transform: scale(1.02);
}

.shot-card span,
.shot-card small {
  color: #64748b;
}

.agent-user-block {
  margin-bottom: 22px;
}

.agent-user-block h3 {
  margin: 12px 0;
  color: #0f172a;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.shot-card {
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.shot-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  background: #fff;
}

.shot-card img:hover {
  transform: scale(1.02);
}

.shot-info {
  margin-top: 8px;
  line-height: 1.35;
}

.shot-info span,
.shot-info small {
  color: #64748b;
}

.panel-soft {
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.manager-card {
  background: white;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.manager-card h4 {
  margin: 0 0 4px;
}

.manager-card p {
  margin: 0 0 10px;
  color: #64748b;
}

.manager-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.manager-card li {
  margin-bottom: 6px;
}

.manager-card small {
  display: block;
  color: #64748b;
}

.clickable-manager {
  cursor: pointer;
  transition: 0.2s ease;
}

.clickable-manager:hover {
  transform: translateY(-2px);
  border-color: #0f8f8f;
  box-shadow: 0 10px 24px rgba(15, 143, 143, 0.16);
}

/* LOGIN / APP VISIBILITY FIX */
.hidden {
  display: none !important;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

/* Login screen par app sections bilkul hide */
body:not(.logged-in) .tab,
body:not(.logged-in) .sidebar,
body:not(.logged-in) .app-sidebar,
body:not(.logged-in) .layout,
body:not(.logged-in) .app-layout,
body:not(.logged-in) .topbar,
body:not(.logged-in) .page-head {
  display: none !important;
}

/* Login screen par only login box show */
body.logged-in #login,
body.logged-in .login-wrap,
body.logged-in .login-page {
  display: none !important;
}

/* LOGIN / APP VISIBILITY FIX */
.hidden {
  display: none !important;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

/* Login screen par full app hidden */
body:not(.logged-in) #app {
  display: none !important;
}

/* Logged in pachhi login screen hidden */
body.logged-in #loginScreen,
body.logged-in .login-page {
  display: none !important;
}

/* Agent Dashboard Premium UI */
.agent-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #062033, #0f8f8f);
  color: white;
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.agent-hero h2 {
  margin: 8px 0;
  font-size: 28px;
}

.agent-hero p {
  margin: 0;
  color: rgba(255,255,255,0.82);
}

.agent-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.agent-live-box {
  min-width: 240px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 14px;
}

.agent-live-box b,
.agent-live-box small {
  display: block;
}

.agent-live-box small {
  margin-top: 5px;
  color: rgba(255,255,255,0.78);
}

.agent-filter-card {
  position: sticky;
  top: 10px;
  z-index: 5;
}

.agent-filter-row {
  display: grid;
  grid-template-columns: 150px 190px 190px 190px 220px 1fr 220px;
  align-items: end;
  gap: 12px;
}

.agent-load-btn {
  height: 42px;
}

.agent-kpi-grid {
  margin-top: 14px;
}

.agent-kpi-card {
  border-top: 4px solid #0f8f8f;
  transition: 0.2s ease;
}

.agent-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.agent-panel {
  margin-top: 16px;
}

.muted {
  color: #64748b;
  margin: 4px 0 0;
}

.agent-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.agent-section-head h3 {
  margin: 0;
}

.agent-section-head p {
  margin: 4px 0 0;
  color: #64748b;
}

.agent-chip {
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 12px;
}

.empty-state {
  padding: 18px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: #64748b;
}

.agent-table th {
  background: #f1f5f9;
  position: sticky;
  top: 0;
  z-index: 1;
}

.agent-shot-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.agent-shot-card img {
  height: 165px;
}

@media (max-width: 1200px) {
  .agent-filter-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .agent-load-btn {
    grid-column: span 2;
  }

  .agent-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .agent-live-box {
    width: 100%;
  }
}

/* Compact Agent Dashboard */
.agent-table-scroll {
  max-height: 520px;
  overflow: auto;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
}

.agent-table-scroll table {
  margin: 0;
}

.agent-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f1f5f9;
}

.agent-shot-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.agent-shot-card img {
  height: 135px;
  object-fit: cover;
}

.agent-shot-card {
  padding: 10px;
}

.agent-shot-card .shot-info {
  font-size: 12px;
  line-height: 1.35;
}

.agent-panel {
  margin-top: 14px;
}

.agent-user-block {
  margin-top: 8px;
}

.agent-section-head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: white;
  padding: 8px 0;
}

/* Clear screenshot preview without changing actual file size */
.agent-shot-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
}

.agent-shot-card img {
  width: 100%;
  height: 210px !important;
  object-fit: contain !important;
  background: #0f172a;
}

.agent-report-html {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #ffffff;
  overflow: auto;
  max-height: 600px;
}

.agent-report-html table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  font-size: 13px;
}

.agent-report-html th,
.agent-report-html td {
  border: 1px solid #cbd5e1;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.agent-report-html th {
  background: #e2e8f0;
  font-weight: 800;
}

.screenshot-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.screenshot-thumb img {
  display: block;
  width: 100%;
}

body.viewer-open {
  overflow: hidden;
}

.screenshot-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 14px;
  padding: 24px;
  background: rgba(2, 6, 23, .94);
}

.screenshot-viewer.show {
  display: grid;
}

.screenshot-stage {
  min-width: 0;
  width: 100%;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: auto;
}

.screenshot-stage img {
  max-width: 100%;
  max-height: calc(100vh - 125px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  cursor: zoom-in;
  transition: width .2s ease;
}

.screenshot-stage.zoomed {
  align-items: flex-start;
}

.screenshot-stage img.zoomed {
  width: 200%;
  max-width: none;
  max-height: none;
  object-fit: initial;
  cursor: zoom-out;
}

.screenshot-viewer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  color: #fff;
  text-align: center;
}

.screenshot-nav,
.screenshot-close {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  cursor: pointer;
}

.screenshot-nav {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 44px;
  line-height: 1;
}

.screenshot-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 30px;
}

.screenshot-nav:hover,
.screenshot-close:hover {
  background: #0891b2;
}

@media (max-width: 700px) {
  .screenshot-viewer {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 6px;
    padding: 14px 6px;
  }

  .screenshot-nav {
    width: 42px;
    height: 52px;
    border-radius: 10px;
    font-size: 34px;
  }
}

.access-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: center;
  margin-top: 10px;
}

.access-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.access-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  accent-color: #0f9aaa;
}
