:root {
  --blue: #0b5cab;
  --blue-dark: #123f78;
  --blue-soft: #eaf3ff;
  --text: #1f2937;
  --muted: #667085;
  --line: #d9e1ea;
  --bg: #f4f7fb;
  --card: #fff;
  --danger: #c62828;
  --success: #147d55;
  --shadow: 0 10px 30px rgba(20, 43, 77, 0.08);
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.55 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
body.modal-open {
  overflow: hidden;
}
a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
.topbar {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100vw - 1320px) / 2));
  position: sticky;
  top: 0;
  z-index: 80;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
}
.brandmark,
.login-logo {
  width: 32px;
  height: 32px;
  /* border-radius: 11px;
  background: linear-gradient(135deg, #0b65b9, #123f78); */
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  object-fit: contain;
  box-sizing: border-box;
}
.brand strong {
  display: block;
  font-size: 14px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.topbar nav {
  display: flex;
  gap: 5px;
}
.topbar nav a {
  padding: 9px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: #475467;
  font-weight: 650;
}
.topbar nav a:hover {
  background: #f1f5f9;
  color: var(--blue);
}
.container {
  width: min(1320px, calc(100% - 32px));
  margin: 26px auto 50px;
}
.hero {
  border-radius: 20px;
  padding: 30px 32px;
  color: #fff;
  background: linear-gradient(135deg, #0c5fab, #143e76);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.hero h1,
.admin-head h1 {
  margin: 4px 0 7px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hero p,
.admin-head p {
  margin: 0;
  color: #dbeafe;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: inherit;
  opacity: 0.82;
}
.card,
.sbml-card,
.sbml-admin-card,
.stat-card,
.login-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 5px 20px rgba(15, 36, 64, 0.045);
}
.tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: #f0f4f8;
  border-bottom: 1px solid var(--line);
}
.tab {
  flex: 1;
  text-decoration: none;
  border-radius: 11px;
  padding: 13px 16px;
  color: #52606d;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tab:hover {
  background: #e6eef7;
}
.tab.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(24, 59, 96, 0.08);
}
.tab-kicker {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.tab strong {
  font-size: 15px;
}
.tab-description {
  padding: 13px 17px;
  color: #475467;
}
.tab-shell {
  overflow: hidden;
  margin-bottom: 22px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 28px 2px 12px;
}
.section-title h2,
.section-heading h2 {
  margin: 2px 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.section-title p,
.section-heading p {
  margin: 0;
  color: var(--muted);
}
/* SBML public */
.sbml-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.sbml-card {
  padding: 20px;
  min-width: 0;
}
.public-sbml-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sbml-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sbml-card-head h3 {
  margin: 3px 0 0;
  font-size: 20px;
  color: #172b4d;
}
.ob-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #0b5cab;
  font-weight: 850;
  font-size: 12px;
}
.sbml-desc {
  margin: 0;
  color: var(--muted);
}
.sbml-rates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 3px;
}
.sbml-rate {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "role unit" "amount unit";
  align-items: center;
  column-gap: 10px;
}
.sbml-rate span {
  grid-area: role;
  display: block;
  color: #667085;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sbml-rate strong {
  grid-area: amount;
  display: block;
  font-size: 15px;
  color: #172b4d;
  white-space: nowrap;
}
.sbml-rate small {
  grid-area: unit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef4fa;
  color: #41617d;
  font-size: 10px;
  font-weight: 800;
}
.source-mini {
  margin-top: 2px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: #667085;
  display: flex;
  gap: 6px;
  line-height: 1.45;
}
.source-mini span {
  font-weight: 800;
  color: #475467;
  flex: none;
}
/* filters and tables */
.filter-card {
  padding: 18px;
  margin-bottom: 16px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.filter-grid {
  display: grid;
  grid-template-columns:
    minmax(280px, 2fr) minmax(170px, 1fr) minmax(190px, 1fr)
    auto;
  gap: 12px;
  align-items: end;
}
.filter-field,
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-field > span,
.field > span {
  font-size: 12px;
  font-weight: 750;
  color: #475467;
}
.input {
  width: 100%;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  outline: none;
  color: var(--text);
}
.textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
  min-height: 74px;
}
.input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.filter-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  white-space: nowrap;
}
.filter-summary strong {
  font-size: 20px;
}
.filter-summary span {
  color: var(--muted);
}
.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  line-height: 1;
}
.btn.primary {
  background: var(--blue);
  color: #fff;
}
.btn.primary:hover {
  background: #084f99;
}
.btn.secondary {
  background: #eef4fa;
  color: #184b7f;
  border: 1px solid #d2e0ee;
}
.btn.secondary:hover {
  background: #e2edf8;
}
.btn.ghost {
  background: transparent;
  color: #475467;
  border: 1px solid var(--line);
}
.btn.danger {
  background: #c62828;
  color: #fff;
}
.btn.wide {
  width: 100%;
}
.small-btn {
  padding: 7px 10px;
  font-size: 12px;
}
/* custom dropdown */
.custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
}
.select-trigger {
  height: 42px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #344054;
  outline: none;
}
.select-trigger:hover {
  border-color: #94a3b8;
}
.custom-select.open .select-trigger {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.select-chevron {
  color: #667085;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.15s;
}
.custom-select.open .select-chevron {
  transform: rotate(180deg);
}
.select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  padding: 6px;
  background: #fff;
  border: 1px solid #d5dde7;
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.16);
  z-index: 300;
  display: none;
  max-height: 260px;
  overflow: auto;
}
.custom-select.open .select-menu {
  display: block;
}
.select-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  text-align: left;
  padding: 9px 10px;
  cursor: pointer;
  color: #344054;
}
.select-menu button:hover {
  background: #f1f5f9;
}
.select-menu button.selected {
  background: #e8f2ff;
  color: #0757a4;
  font-weight: 750;
}
.custom-select.compact .select-trigger {
  height: 40px;
  font-size: 12px;
}
.custom-select.compact .select-menu {
  font-size: 12px;
}
.table-card {
  padding: 18px;
  overflow: hidden;
}
.tablewrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1050px;
}
.table th {
  background: #f6f8fb;
  color: #475467;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
}
.table th,
.table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover {
  background: #fbfdff;
}
.activity-col {
  min-width: 290px;
}
.role-col {
  min-width: 145px;
}
.role-rate-cell {
  min-width: 145px;
}
.public-rate {
  font-weight: 800;
  color: #172b4d;
  white-space: nowrap;
}
.unit-chip {
  display: inline-flex;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef4fa;
  color: #41617d;
  font-size: 10px;
  font-weight: 750;
}
.source-cell {
  min-width: 250px;
  color: #52606d;
}
.source-note {
  margin-top: 4px;
  font-size: 11px;
}
.dash {
  color: #98a2b3;
}
.empty {
  padding: 50px !important;
  text-align: center;
}
.empty-icon {
  font-size: 28px;
  color: #98a2b3;
}
.empty strong,
.empty span {
  display: block;
}
.empty span {
  color: var(--muted);
  margin-top: 3px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
}
.pagination button {
  min-width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #475467;
  cursor: pointer;
  font-weight: 700;
}
.pagination button:hover:not(:disabled),
.pagination button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination .dots {
  padding: 0 3px;
  color: #98a2b3;
}
.table-meta {
  font-size: 12px;
  color: var(--muted);
}
footer {
  text-align: center;
  color: #98a2b3;
  font-size: 11px;
  padding: 20px;
}
/* admin */
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.admin-head h1 {
  color: #172b4d;
}
.admin-head p {
  color: var(--muted);
}
.head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-tabs {
  margin-bottom: 16px;
}
.sbml-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.sbml-admin-card {
  padding: 18px;
  min-width: 0;
}
.sbml-admin-card .sbml-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}
.sbml-admin-card h3 {
  margin: 3px 0 4px;
  font-size: 18px;
}
.sbml-admin-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.sbml-admin-rates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 13px 0;
}
.sbml-admin-rate {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
}
.sbml-admin-rate span,
.sbml-admin-rate strong {
  display: block;
}
.sbml-admin-rate span {
  font-size: 10px;
  color: #667085;
}
.sbml-admin-rate strong {
  font-size: 14px;
  color: #172b4d;
  margin-top: 2px;
}
.admin-filter {
  padding: 16px;
}
.bulk-toolbar {
  display: none;
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bulk-toolbar.visible {
  display: flex;
}
.bulk-toolbar div {
  display: flex;
  gap: 9px;
  align-items: baseline;
  flex-wrap: wrap;
}
.bulk-toolbar span {
  color: #55708b;
  font-size: 12px;
}
.check-col {
  width: 42px;
}
.admin-table {
  min-width: 1200px;
}
.admin-rate-cell strong {
  display: block;
  white-space: nowrap;
  color: #172b4d;
}
.admin-rate-cell span {
  font-size: 10px;
  color: #667085;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 2px 6px;
  display: inline-block;
  margin-top: 3px;
}
.actions {
  white-space: nowrap;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  color: #2b5c8f;
}
.icon-btn:hover {
  background: #eff6ff;
}
.icon-btn.danger {
  color: var(--danger);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}
.stat-card {
  padding: 18px;
}
.stat-card span,
.stat-card small {
  display: block;
  color: var(--muted);
}
.stat-card strong {
  display: block;
  font-size: 30px;
  color: #173e70;
  line-height: 1.2;
  margin: 5px 0;
}
.info-panel {
  padding: 22px;
}
.info-panel h2 {
  margin: 0 0 6px;
}
.info-panel p {
  color: var(--muted);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.feature-grid div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
}
.feature-grid b,
.feature-grid span {
  display: block;
}
.feature-grid span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
/* modal and forms */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.modal.open {
  display: flex;
}
.modal-dialog {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.28);
  width: min(620px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-xl {
  width: min(1160px, 100%);
}
.modal-lg {
  width: min(900px, 100%);
}
.modal-md {
  width: min(700px, 100%);
}
.modal-sm {
  width: min(460px, 100%);
}
.modal-header {
  flex: none;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  background: #fff;
}
.modal-header h2 {
  margin: 2px 0 3px;
  color: #172b4d;
}
.modal-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  background: #0b5cab;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
}
.modal-body {
  padding: 22px 24px;
  overflow: auto;
}
.modal-footer {
  flex: none;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #fff;
}
.form-grid {
  display: grid;
  gap: 14px;
}
.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}
.rate-section {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.rate-section-title {
  margin-bottom: 14px;
}
.rate-section-title h3 {
  margin: 0;
  color: #172b4d;
}
.rate-section-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.role-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.role-input-card {
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f9fbfd);
  padding: 14px;
  box-shadow: 0 3px 10px rgba(15, 35, 60, 0.035);
  min-width: 0;
}
.role-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  margin-bottom: 11px;
}
.role-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #eaf3ff;
  color: #0b5cab;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  flex: none;
}
.role-title strong {
  font-size: 13px;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}
.fixed-unit {
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #087443;
  font-weight: 800;
  flex: none;
}
.money-input {
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  background: #fff;
  overflow: hidden;
  margin-bottom: 9px;
}
.money-input:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.money-input > span {
  height: 100%;
  min-width: 43px;
  display: grid;
  place-items: center;
  padding: 0 9px;
  color: #667085;
  background: #f7f9fc;
  border-right: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 800;
}
.money-input input {
  border: 0 !important;
  outline: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 11px;
  text-align: right;
  font-weight: 750;
  color: #172b4d;
  background: #fff;
}
.money-input.large {
  height: 44px;
}
.sbml-role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.upload-box {
  border: 1.5px dashed #9db5cf;
  background: #f8fbff;
  border-radius: 14px;
  padding: 25px;
  text-align: center;
}
.upload-icon {
  font-size: 16px;
  font-weight: 900;
  color: #0b5cab;
  margin-bottom: 10px;
}
.upload-box input[type="file"] {
  width: 100%;
}
.status-chip {
  display: inline-flex;
  padding: 3px 8px;
  background: #eef4fa;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
}
.notice {
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 12px;
}
.notice.warn {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.notice.info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.login-card {
  width: min(420px, 100%);
  margin: 70px auto;
  padding: 28px;
}
.login-logo {
  margin-bottom: 15px;
}
.login-card h1 {
  margin: 0 0 5px;
}
.login-card p {
  margin: 0 0 22px;
  color: var(--muted);
}
.login-card form {
  display: grid;
  gap: 14px;
}
@media (max-width: 1050px) {
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .filter-summary {
    grid-column: 1/-1;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .role-input-grid,
  .sbml-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sbml-grid,
  .sbml-admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .head-actions {
    width: 100%;
  }
}
@media (max-width: 650px) {
  .container {
    width: min(100% - 20px, 1320px);
    margin-top: 15px;
  }
  .topbar {
    padding: 0 10px;
  }
  .topbar nav a {
    padding: 7px;
    font-size: 12px;
  }
  .brand small {
    display: none;
  }
  .hero {
    padding: 22px;
  }
  .hero h1,
  .admin-head h1 {
    font-size: 24px;
  }
  .tabs {
    flex-direction: column;
  }
  .filter-grid,
  .form-grid.two,
  .role-input-grid,
  .sbml-role-grid,
  .sbml-rates,
  .sbml-admin-rates {
    grid-template-columns: 1fr;
  }
  .stats,
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .head-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .head-actions .btn {
    width: 100%;
  }
  .modal {
    padding: 8px;
  }
  .modal-dialog {
    max-height: 96vh;
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .sbml-card {
    padding: 16px;
  }
  .public-sbml-card {
    gap: 10px;
  }
}

/* V6 polish */
.lucide-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex: none;
  stroke: currentColor;
}
.select-chevron {
  display: grid;
  place-items: center;
  color: #667085;
  transition: transform 0.18s ease;
}
.custom-select.open .select-chevron {
  transform: rotate(180deg);
}
.sbml-grid {
  align-items: stretch;
}
.public-sbml-card {
  min-height: 100%;
}
.sbml-rate {
  min-height: 66px;
}
.sbml-rate strong {
  font-size: 15px;
}
.source-mini {
  word-break: break-word;
}
.admin-head {
  padding-bottom: 4px;
}
.admin-tabs .tabs {
  background: #f7f9fc;
}
.admin-filter {
  margin-top: 4px;
}
.admin-filter .filter-grid {
  grid-template-columns:
    minmax(280px, 2fr) minmax(190px, 1fr) minmax(210px, 1fr)
    auto;
}
.admin-table th,
.admin-table td {
  white-space: normal;
}
.admin-table .activity-col {
  min-width: 280px;
}
.admin-rate-cell {
  min-width: 135px;
}
.admin-rate-cell strong {
  font-size: 13px;
}
.admin-rate-cell span {
  font-size: 10px;
}
.modal-form {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}
.modal-form .modal-body {
  min-height: 0;
  flex: 1;
}
.modal-form .modal-footer {
  flex: none;
}
.modal-xl {
  max-width: 1180px;
}
.modal-lg {
  max-width: 940px;
}
.modal-body {
  scrollbar-width: thin;
}
.rate-section {
  padding-bottom: 2px;
}
.role-input-grid {
  align-items: stretch;
}
.role-input-card {
  display: flex;
  flex-direction: column;
}
.role-input-card .money-input {
  flex: none;
}
.role-input-card .custom-select {
  margin-top: auto;
}
.money-input input {
  font-variant-numeric: tabular-nums;
}
.field small {
  font-size: 11px;
  color: var(--muted);
}
.setup-shell {
  min-height: calc(100vh - 170px);
  display: grid;
  place-items: center;
  padding: 20px 0;
}
.setup-card {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 30px;
}
.setup-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 24px;
}
.setup-brand .brandmark {
  width: 44px;
  height: 44px;
}
.setup-brand strong,
.setup-brand small {
  display: block;
}
.setup-brand small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.setup-card h1 {
  margin: 6px 0 7px;
  font-size: 28px;
  color: #172b4d;
  letter-spacing: -0.03em;
}
.setup-lead {
  margin: 0 0 18px;
  color: var(--muted);
}
.setup-form {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}
.setup-form .btn {
  height: 44px;
  margin-top: 2px;
}
@media (max-width: 1050px) {
  .admin-filter .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .role-input-grid,
  .sbml-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .setup-card {
    padding: 22px;
    border-radius: 18px;
  }
  .setup-shell {
    min-height: auto;
  }
  .admin-filter .filter-grid {
    grid-template-columns: 1fr;
  }
  .role-input-grid,
  .sbml-role-grid {
    grid-template-columns: 1fr;
  }
  .modal-dialog {
    max-height: calc(100vh - 16px);
  }
  .modal-form .modal-body {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .modal-footer {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .sbml-rates {
    grid-template-columns: 1fr;
  }
}

/* Import preview */
.flash {
  margin: 0 0 16px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.flash.success {
  background: #ecfdf3;
  border-color: #a7f3d0;
  color: #047857;
}
.flash.info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.flash.danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.preview-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.preview-summary > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  background: #f8fafc;
}
.preview-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}
.preview-summary strong {
  font-size: 20px;
  color: #172b4d;
}
.preview-errors {
  margin: 8px 0 4px 18px;
  padding: 0;
}
.preview-errors li {
  margin: 3px 0;
}
.import-preview-wrap {
  max-height: 52vh;
  overflow: auto;
}
.import-preview-table {
  min-width: 1100px;
}
.import-preview-table th {
  position: sticky;
  top: 0;
  z-index: 3;
}
.preview-rate-list {
  display: grid;
  gap: 4px;
  min-width: 250px;
}
.preview-rate-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}
.preview-rate-list b {
  color: #344054;
}
.preview-rate-list span {
  color: #172b4d;
  font-weight: 700;
  white-space: nowrap;
}
.status-new {
  background: #ecfdf3;
  color: #047857;
}
.status-update {
  background: #eff6ff;
  color: #1d4ed8;
}
.text-danger {
  color: #b42318 !important;
}
.text-success {
  color: #047857 !important;
}
.modal-footer form {
  display: flex;
  gap: 8px;
}
.modal-footer button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 720px) {
  .preview-summary {
    grid-template-columns: 1fr;
  }
  .import-preview-wrap {
    max-height: 48vh;
  }
}

@media (min-width: 1440px) {
  .container { width: min(1500px, calc(100% - 64px)); }
  .hero { padding: 44px 48px; border-radius: 22px; }
  .card, .sbml-card, .sbml-admin-card { padding: 28px 32px; }
  .tab-shell { padding: 0; }
  .table-card { padding: 26px 30px; }
  .table th, .table td { padding: 14px 16px; }
  .filter-grid { gap: 18px; }
}
@media (min-width: 1800px) {
  .container { width: min(1680px, calc(100% - 96px)); }
  .hero { padding: 54px 64px; }
  .card, .sbml-card, .sbml-admin-card { padding: 34px 40px; }
  .table-card { padding: 32px 38px; }
  .table th, .table td { padding: 16px 18px; }
}
.log-filter-grid { grid-template-columns: minmax(0,2fr) minmax(240px,1fr) minmax(120px,.5fr); }
.log-filter-card .section-heading p { margin: 4px 0 0; }


/* Public hero actions */
.hero-public-content{max-width:900px}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.hero-actions .btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.btn.light{background:#fff;color:var(--blue);border:1px solid rgba(255,255,255,.55);box-shadow:0 4px 12px rgba(0,0,0,.08)}
.btn.hero-secondary{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.28)}
.btn.hero-secondary:hover{background:rgba(255,255,255,.2)}

/* Kuis Harian */
.daily-hero{display:grid;grid-template-columns:1fr auto;gap:32px;align-items:center;margin:24px 0;padding:38px 42px;border-radius:24px;background:linear-gradient(135deg,#0b65b9,#123f78);color:#fff;box-shadow:var(--shadow)}
.daily-hero h1{margin:6px 0 10px;font-size:clamp(30px,3.5vw,48px);line-height:1.08;letter-spacing:-.035em}
.daily-hero p{margin:0;max-width:760px;opacity:.9;font-size:15px}
.daily-date{padding:10px 14px;border:1px solid rgba(255,255,255,.24);border-radius:12px;background:rgba(255,255,255,.1);font-weight:800;font-size:15px;white-space:nowrap}
.daily-card{width:100%;max-width:none;margin:0 0 24px;padding:28px 32px}
.quiz-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-bottom:20px;margin-bottom:2px;border-bottom:1px solid var(--line)}
.quiz-head h2{margin:5px 0 2px;font-size:24px}.quiz-subtitle{display:block;color:var(--muted);font-size:13px}
.quiz-head #timer{font-variant-numeric:tabular-nums;font-weight:850;font-size:20px;color:var(--blue);padding:9px 13px;background:var(--blue-soft);border-radius:12px;min-width:76px;text-align:center}
.quiz-question{display:flex;gap:18px;padding:24px 0;border-bottom:1px solid #edf1f5}
.qno{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#eaf3ff;color:#0b65b9;font-weight:900;flex:none}
.qbody{flex:1;min-width:0}.qbody h3{margin:0 0 7px;line-height:1.5;font-size:16px}.qbody small{color:var(--muted)}
.quiz-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}
.quiz-options label{cursor:pointer;display:block}.quiz-options input{position:absolute;opacity:0;pointer-events:none}
.quiz-options span{display:flex;align-items:center;justify-content:center;min-height:50px;padding:12px 14px;border:1px solid #d6dee8;border-radius:13px;background:#fff;font-weight:750;transition:all .15s ease}
.quiz-options label:hover span{border-color:#8db8e5;background:#f7fbff;transform:translateY(-1px)}
.quiz-options input:focus-visible+span{outline:3px solid rgba(11,101,185,.18)}
.quiz-options input:checked+span{border-color:#0b65b9;background:#eef6ff;color:#0b5cab;box-shadow:0 0 0 2px rgba(11,101,185,.10)}
.daily-card .wide{margin-top:24px;min-height:48px}
.daily-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);gap:24px;margin-top:24px}
.daily-grid>.card{padding:24px}
.leader-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #edf1f5}
.leader-row:last-child{border-bottom:0}.leader-row span{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leader-row small{color:var(--muted);white-space:nowrap}
.stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.stat-grid>div{padding:17px;border:1px solid var(--line);border-radius:14px;background:#f8fafc}.stat-grid b{display:block;font-size:25px;color:#172b4d}.stat-grid small{color:var(--muted)}
.daily-result{padding:42px 28px;text-align:center;max-width:720px;margin:24px auto}.result-score{font-size:64px;line-height:1;font-weight:900;color:var(--blue)}
.hall-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.hall-item{padding:20px;border:1px solid var(--line);border-radius:16px;background:#fbfcfe}.hall-item span,.hall-item small{display:block;color:var(--muted)}.hall-item b{display:block;font-size:18px;margin:8px 0}.hall-item strong{font-size:28px;color:var(--blue)}
@media(max-width:900px){.quiz-options{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-grid{grid-template-columns:1fr}.hall-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.daily-hero{display:block;padding:28px 24px}.daily-date{display:inline-flex;margin-top:18px}.daily-card{padding:22px 18px}.quiz-head{align-items:flex-start}.quiz-question{gap:12px}.quiz-options{grid-template-columns:1fr}.hall-grid{grid-template-columns:1fr}.leader-row{grid-template-columns:34px minmax(0,1fr) auto}.leader-row small{grid-column:2/4}.hero-actions{flex-direction:column;align-items:stretch}.hero-actions .btn{width:100%}}
@media(min-width:1440px){.daily-hero,.daily-card,.daily-grid{max-width:1500px;margin-left:auto;margin-right:auto}.daily-card{padding:34px 42px}.daily-grid{grid-template-columns:minmax(0,1.25fr) minmax(380px,.75fr)}}

/* Kuis Harian — status/context and locked-session feedback */
.quiz-lock-notice{margin:0 0 18px;border-left:4px solid var(--blue);background:#eef6ff}
.quiz-context{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:9px}
.quiz-status,.quiz-role{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:800}
.quiz-status{background:#edf3fb;color:#244a73;border:1px solid #d7e3f1}
.quiz-status.nonpns{background:#eef8f1;color:#1d6a3a;border-color:#cfe8d8}
.quiz-status.pns{background:#fff6e8;color:#8a5410;border-color:#f0dbb5}
.quiz-role{background:#f7f9fc;color:#4b5a6c;border:1px solid #e1e7ef}


/* V26 — Daily Dose card consistency and spacing */
.daily-grid {
  align-items: stretch;
  margin-bottom: 24px;
}
.daily-grid > .card {
  margin: 0;
  min-width: 0;
  min-height: 340px;
  height: 100%;
  box-sizing: border-box;
}
.daily-grid > .card .section-title {
  margin-bottom: 18px;
}
.daily-grid + .card {
  margin-top: 24px;
  margin-bottom: 24px;
  box-sizing: border-box;
}
.hall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.hall-item {
  min-width: 0;
  min-height: 150px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hall-item strong {
  margin-top: 4px;
}
.daily-grid .stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .daily-grid > .card { min-height: 0; height: auto; }
  .hall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .daily-grid > .card { min-height: 0; }
  .hall-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1440px) {
  .daily-grid + .card { max-width: 1500px; margin-left: auto; margin-right: auto; }
}
