:root {
  --bg: #ffffff;
  --ink: #222013;
  --accent: #1d97f5;
  --card: #ffffff;
  --border: #bcd0e3;
  --soft: #bcd0e3;
}

* { box-sizing: border-box; }

:root {
  --nav-border: #ebeced;
}

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

body {
  font-family: Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  margin-top: 0;
}

body::before {
  display: none;
}

main {
  position: relative;
  z-index: 2;
}

main {
  display: flex;
  flex-direction: column;
  padding: 0 16px 16px;
  flex: 1;
}

.card {
  width: 100%;
  background: var(--card);
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 20px;
  flex: 1;
  min-height: 0;
}

h1 {
  margin: 0 0 16px;
  font-size: 28px;
  letter-spacing: 0.5px;
  background: transparent;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 3px;
  width: calc(100% + 32px);
  box-shadow: none;
  margin-left: -16px;
  margin-right: -16px;
  border-radius: 0;
}

.banner-with-actions {
  background: transparent;
}


.site-brand {
  display: none;
}

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 12px 16px;
  box-sizing: border-box;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  border: none;
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-brand {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.nav-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.nav-brand .brand-restaurant {
  color: #ff1500;
  font-weight: 800;
}

.nav-brand .brand-toolkit {
  color: #222013;
  font-weight: 700;
}

.nav-brand .tm {
  font-size: 12px;
  vertical-align: super;
  margin-left: 2px;
  color: #222013;
}

.nav-actions {
  display: inline-flex;
  gap: 0;
  align-self: stretch;
}

.nav-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid #b5d3e8;
  border-radius: 999px;
  margin-right: 10px;
  margin-left: -20px;
}

.nav-search img {
  width: 16px;
  height: 16px;
}

.nav-search input {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  width: 160px;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.nav-actions .btn {
  height: auto;
  align-self: stretch;
  padding: 0 12px;
  background: var(--accent);
  border: none;
  border-left: 1px solid #b5d3e8;
  box-shadow: none;
  color: #fff;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
}

body:not(.login-page) main {
  padding-top: 72px;
}

.nav-actions .btn .btn-icon {
  filter: none;
}

.nav-actions .btn:last-child {
  border-right: 1px solid #b5d3e8;
}

.nav-actions .btn:hover {
  background: #167fd0;
}

.nav-logo {
  height: 32px;
  width: auto;
  display: block;
}

body:not(.login-page) h1 {
  margin-bottom: -4px;
}

h1.banner-with-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.banner-action {
  padding: 8px 12px;
  font-size: 14px;
  white-space: nowrap;
}

.banner-action.btn-ghost {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.banner-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.banner-page-title {
  font-size: 24px;
  font-weight: 700;
}

.brand-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.brand-title .brand-restaurant {
  color: #ff1500;
}

.brand-title .brand-toolkit {
  font-weight: 400;
}

.brand-title .tm {
  font-size: 12px;
  vertical-align: super;
  margin-left: 2px;
}

.site-brand .tm {
  position: relative;
  top: -0.9em;
}

.site-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 6px 0 8px;
}

.banner-actions {
  display: flex;
  gap: 10px;
}

.banner-actions .btn {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.login-card .top-actions {
  justify-content: center;
}

.mobile-only {
  display: none;
}

p {
  margin: 6px 0 0;
  line-height: 1.4;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.upload-row {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.upload-row input[type="file"] {
  flex: 0 1 auto;
}

.upload-row .header-toggle {
  margin: 0 10px 0 0;
  transform: none;
}

.upload-row .auto-download-toggle {
  margin-left: auto;
  margin-right: 0;
  transform: none;
  margin-top: -4px;
}

.upload-row .auto-download-toggle span {
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e6f3ee;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
}

button, input[type="file"] {
  font: inherit;
}

input[type="file"] {
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: #ffffff;
  height: 40px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d93b3b;
  position: relative;
  cursor: pointer;
  border: 2px solid rgba(0, 0, 0, 0.1);
  transition: background 120ms ease, border-color 120ms ease;
}

input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 120ms ease;
}

input[type="checkbox"]:checked {
  background: #2bb673;
  border-color: rgba(0, 0, 0, 0.12);
}

input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}

.btn {
  border: 0;
  padding: 10px 16px;
  border-radius: 3px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 6px 16px rgba(27, 91, 80, 0.25);
  text-decoration: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-btn span {
  font-size: 14px;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

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

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.file-name {
  font-family: "Courier New", monospace;
  background: var(--soft);
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px dashed var(--border);
}

.file-list {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.status {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.header-toggle {
  margin-top: 0;
}

.drop-zone {
  margin-top: 12px;
  margin-bottom: 6px;
  padding: 22px;
  border: 2px dashed var(--border);
  border-radius: 16px;
  background: #f2f6fb;
  text-align: center;
  font-weight: 700;
  color: #4b3b1d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-zone__icon {
  width: 48px;
  height: 48px;
}

.drop-inner {
  border: none;
  border-radius: 14px;
  padding: 26px 16px;
  background: #f7f9fc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.drop-or {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #5a6b80;
  font-weight: 700;
}

.drop-or::before,
.drop-or::after {
  content: "";
  display: inline-block;
  width: 60px;
  height: 1px;
  background: #c7d3e5;
}

.upload-area {
  margin-top: 12px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
}

.upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.upload-header .mapping-concept {
  margin-top: 0;
  align-items: center;
  transform: translateY(10px);
}

.upload-header .mapping-concept span {
  font-size: 18px;
  font-weight: 700;
}

.upload-header .mapping-concept select {
  margin-left: 8px;
  transform: translateY(-5px);
}

.upload-section {
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: #f5f5f5;
  margin-top: 16px;
  margin-bottom: 28px;
}

.drop-zone--active {
  background: #e6f3ee;
  border-color: var(--accent);
  color: var(--accent);
}

.section-title {
  margin-top: 24px;
  font-size: 18px;
}

.mapping-section .section-title {
  margin-top: 16px;
}

.mapping-section .section-title:first-child {
  margin-top: 0;
}

.mapping-panel {
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.mapping-banner {
  background: var(--soft);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
}

.mapping-search {
  margin: 6px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.add-fields-row {
  display: flex;
  gap: 30px;
  flex-wrap: nowrap;
  align-items: center;
}

.add-fields-row input,
.add-fields-row select,
.add-fields-row .btn {
  height: 40px;
}

.add-fields-row .icon-btn {
  padding: 0 16px;
  align-items: center;
  align-self: center;
}

.add-fields-row .add-update-btn {
  margin-top: 30px;
}

.mapping-search input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  width: 240px;
}

.checkbox-wrapper-24 {
  display: inline-flex;
  align-items: center;
  margin-right: 0;
}

.checkbox-wrapper-24 label {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}

.checkbox-wrapper-24 label span {
  display: inline-block;
  position: relative;
  background-color: transparent;
  width: 22px;
  height: 22px;
  transform-origin: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0;
  transition: background-color 150ms 200ms, transform 350ms cubic-bezier(0.78, -1.22, 0.17, 1.89);
}

.bulk-check-cell {
  padding-right: 10px;
}

.checkbox-wrapper-24 label span:before {
  content: "";
  width: 0px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  position: absolute;
  transform: rotate(45deg);
  top: 11px;
  left: 7px;
  transition: width 50ms ease 50ms;
  transform-origin: 0% 0%;
}

.checkbox-wrapper-24 label span:after {
  content: "";
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  position: absolute;
  transform: rotate(305deg);
  top: 13px;
  left: 8px;
  transition: width 50ms ease;
  transform-origin: 0% 0%;
}

.checkbox-wrapper-24 label:hover span:before {
  width: 5px;
  transition: width 100ms ease;
}

.checkbox-wrapper-24 label:hover span:after {
  width: 10px;
  transition: width 150ms ease 100ms;
}

.checkbox-wrapper-24 input[type=checkbox] {
  display: none;
}

.checkbox-wrapper-24 input[type=checkbox]:checked + label span {
  background-color: var(--accent);
  transform: scale(1.1);
}

.checkbox-wrapper-24 input[type=checkbox]:checked + label span:after,
.checkbox-wrapper-24 input[type=checkbox]:checked + label span:before {
  width: 0;
}

.defaults-section {
  margin-top: 28px;
}

.default-concept-row {
  margin-top: 24px;
}

.defaults-panel {
  background: var(--soft);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px;
}

.bulk-textarea {
  width: 100%;
  min-height: 220px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
}

.defaults-row input:not([type="checkbox"]) {
  min-width: 180px;
}

.defaults-row > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.mapping-banner .btn {
  min-width: 180px;
  justify-content: center;
}

.mapping-section {
  margin-top: 28px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: #f5f5f5;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 16px;
  gap: 8px;
}

.toggle-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.admin-section {
  margin-top: 18px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: #f5f5f5;
}

.admin-section .section-title {
  margin-top: 0;
}

.mapping-concept {
  margin-bottom: 8px;
  align-items: center;
  gap: 10px;
}

.mapping-concept select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.header-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-toggle input[type="checkbox"] {
  margin: 0;
}

.header-toggle span {
  position: relative;
  top: -5px;
  left: 5px;
}

.mapping-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}

.mapping-row .btn + .btn {
  margin-left: 8px;
}

.admin-table .btn + .btn,
.table-wrap .btn + .btn {
  margin-left: 10px;
}

.mapping-row input:not([type="checkbox"]) {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  min-width: 180px;
}

select,
.mapping-row select {
  height: 40px;
  padding: 8px 42px 8px 14px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background-color: var(--accent);
  color: #ffffff;
  min-width: 180px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #ffffff 50%),
    linear-gradient(135deg, #ffffff 50%, transparent 50%),
    linear-gradient(to right, rgba(255,255,255,0.25), rgba(255,255,255,0.25));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 36px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 60%;
  background-repeat: no-repeat;
}

select:focus {
  outline: 2px solid rgba(87, 144, 201, 0.35);
  outline-offset: 1px;
}

select option {
  background: var(--accent);
  color: #ffffff;
}

.defaults-row {
  align-items: flex-end;
}

.defaults-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.defaults-spacer {
  height: 0;
}

.defaults-row .btn {
  align-self: flex-end;
}

.wide-input {
  width: 260px;
  height: 40px;
}

.table-wrap {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  -webkit-overflow-scrolling: touch;
}

.client-users-wrap {
  margin-bottom: 12px;
}

.admin-users {
  background: #f5f5f5;
  padding: 8px;
}

.concept-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  max-height: 140px;
  overflow: auto;
  padding-right: 6px;
}

.concept-checkboxes label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-table th:nth-child(3),
.admin-table td:nth-child(3) {
  width: 200px;
}

.admin-table th:nth-child(4),
.admin-table td:nth-child(4) {
  width: 220px;
}

.client-select {
  width: 180px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  background-image:
    linear-gradient(45deg, transparent 50%, #234870 50%),
    linear-gradient(135deg, #234870 50%, transparent 50%),
    linear-gradient(to right, rgba(0,0,0,0.08), rgba(0,0,0,0.08));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 36px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 60%;
  background-repeat: no-repeat;
}

.concept-button-wrap {
  display: flex;
  justify-content: flex-start;
}

.concept-modal .modal {
  width: min(640px, 92vw);
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 16px;
  max-height: 360px;
  overflow: auto;
  padding: 6px 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 12px;
}

.concept-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f2f6fb;
}

.concept-select-all {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.concept-select-all span {
  margin-left: 2px;
}

#user-filter-modal .concept-select-all {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
}

#user-filter-modal .concept-select-all span {
  margin-left: 0;
}

#user-filter-modal select {
  width: 100%;
}

.concept-added {
  font-size: 13px;
  color: #234870;
  min-height: 18px;
}

.spacer-40 {
  height: 40px;
}

.client-list {
  display: grid;
  gap: 6px;
  max-height: 200px;
  overflow: auto;
  padding: 6px 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 10px;
}

.client-item {
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--soft);
  cursor: pointer;
}

.concept-list-item {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.client-details h4 {
  margin: 8px 0 6px;
}

.client-users {
  margin-top: 8px;
  font-size: 13px;
}

.client-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.client-fields label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 14px;
  margin-bottom: 6px;
}

.client-fields label span {
  display: block;
}

.client-fields input,
.client-fields select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  width: 100%;
}

.admin-grid select,
.client-fields select,
.client-select {
  color: #222013;
  background-color: #ffffff;
  background-image: none;
  appearance: auto;
}

.client-user-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px 12px;
  padding: 6px 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
}

.modal-title {
  margin: 0 0 12px;
}

.modal-actions {
  margin-bottom: 12px;
}

.modal-close {
  margin-top: 12px;
  justify-content: flex-start;
}

.modal-close-right {
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.modal-close-actions {
  display: inline-flex;
  gap: 12px;
}

.mapping-panel .table-wrap {
  margin-top: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mapping-panel table {
  table-layout: fixed;
}

.mapping-panel th:nth-child(1),
.mapping-panel td:nth-child(1) {
  width: 32%;
}

.mapping-panel th:nth-child(2),
.mapping-panel td:nth-child(2) {
  width: 22%;
}

.mapping-panel th:nth-child(3),
.mapping-panel td:nth-child(3) {
  width: 26%;
}

.mapping-panel th:nth-child(4),
.mapping-panel td:nth-child(4) {
  width: 20%;
}

.mapping-panel table.tracking-compact th:nth-child(1),
.mapping-panel table.tracking-compact td:nth-child(1) {
  width: 28%;
}

.mapping-panel table.tracking-compact th:nth-child(2),
.mapping-panel table.tracking-compact td:nth-child(2) {
  width: 18%;
}

.mapping-panel table.tracking-compact th:nth-child(3),
.mapping-panel table.tracking-compact td:nth-child(3) {
  width: 20%;
}

.mapping-panel table.tracking-compact th:nth-child(4),
.mapping-panel table.tracking-compact td:nth-child(4) {
  width: 16%;
}

.mapping-panel table.tracking-compact th:nth-child(5),
.mapping-panel table.tracking-compact td:nth-child(5) {
  width: 18%;
}

.mapping-panel th {
  background: var(--soft);
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.mapping-panel td input {
  width: 100%;
  min-width: 0;
}

.mapping-panel td:last-child {
  white-space: nowrap;
}

.mapping-panel td:last-child .btn {
  padding: 8px 12px;
}

.mapping-panel td:last-child .btn + .btn {
  margin-left: 8px;
}

th {
  background: var(--soft);
  position: sticky;
  top: 0;
}

.btn-secondary {
  background: var(--accent);
}

.btn-ghost {
  background: var(--soft);
  color: #234870;
  box-shadow: none;
}

.tool-category {
  margin-top: 18px;
}

.tool-categories {
  display: grid;
  gap: 18px;
}

.tool-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, 240px);
  column-gap: 20px;
  row-gap: 20px;
  justify-items: start;
}

.tool-btn {
  display: grid;
  place-items: center;
  text-decoration: none;
  background: var(--soft);
  color: #234870;
  border: 2px solid var(--border);
  border-radius: 14px;
  width: min(25vw, 240px);
  aspect-ratio: 1 / 1;
  font-weight: 700;
  text-align: center;
  padding: 12px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.tool-btn--admin,
.tool-btn--convert {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.tool-btn__icon {
  width: 48px;
  height: 48px;
}

.tool-btn__label {
  display: inline-block;
}

.tool-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

@media (min-width: 900px) {
  main {
    padding: 24px;
  }
}

@media (max-width: 700px) {
  input[type="file"] {
    width: 100%;
  }

  h1.banner-with-actions .banner-actions {
    display: none;
  }

  .mobile-only {
    display: flex;
    justify-content: flex-start;
  }

  .mapping-banner .mapping-row {
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    gap: 8px;
  }

  .mapping-banner .mapping-row .btn {
    margin-left: 0;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-btn {
    width: 100%;
    aspect-ratio: auto;
    padding: 18px 14px;
  }

  .tool-btn--admin,
  .tool-btn--convert {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .tool-btn__icon {
    width: 28px;
    height: 28px;
  }

  .table-wrap td:last-child {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    padding-right: 12px;
  }

  .table-wrap td:last-child .btn {
    width: 100%;
    margin-left: 0;
    box-sizing: border-box;
  }

  .mapping-panel table {
    table-layout: auto;
  }

  .mapping-panel th,
  .mapping-panel td {
    padding-left: 6px;
    padding-right: 6px;
  }

  .mapping-panel td:last-child {
    min-width: 140px;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 21, 12, 0.5);
  display: grid;
  place-items: center;
  z-index: 1000;
}

.modal {
  width: min(520px, 90vw);
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal h3 {
  margin: 0 0 6px;
}

.account-modal .modal {
  width: min(560px, 92vw);
}

.account-row {
  display: grid;
  gap: 6px;
}

.account-label {
  font-weight: 700;
}

.account-value {
  font-size: 14px;
}

.account-list {
  font-size: 14px;
}

.account-ul {
  margin: 0;
  padding-left: 18px;
}

.account-reset h4 {
  margin: 0 0 8px;
}

.account-section {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.account-reset h4 {
  margin: 0 0 10px;
}

.password-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.password-field input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.password-toggle {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.password-toggle img {
  width: 20px;
  height: 20px;
}

.account-toast {
  margin-top: 12px;
  background: #2bb673;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}

.account-toast.error {
  background: #d9534f;
}

.account-toast.show {
  display: block;
}

.site-footer {
  text-align: center;
  padding: 12px 16px 20px;
  font-size: 12px;
  color: #4b5f74;
  background: #ebeced;
}


.loader-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  z-index: 9999;
  pointer-events: none;
}

.loader,
.loader:before,
.loader:after {
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  animation-fill-mode: both;
  animation: bblFadInOut 1.8s infinite ease-in-out;
}
.loader {
  color: #FFF;
  font-size: 7px;
  position: relative;
  text-indent: -9999em;
  transform: translateZ(0);
  animation-delay: -0.16s;
}
.loader:before,
.loader:after {
  content: '';
  position: absolute;
  top: 0;
}
.loader:before {
  left: -3.5em;
  animation-delay: -0.32s;
}
.loader:after {
  left: 3.5em;
}

@keyframes bblFadInOut {
  0%, 80%, 100% { box-shadow: 0 2.5em 0 -1.3em }
  40% { box-shadow: 0 2.5em 0 0 }
}
.mapping-panel table td {
  padding: 10px 12px;
}

.mapping-panel table.bulk-on td {
  padding: 6px 8px;
}

.mapping-panel table.tracking-compact td {
  padding: 6px 8px;
}

.mapping-panel table.bulk-on td:first-child {
  padding-right: 4px;
  width: 36px;
}

.mapping-panel table.bulk-on th:first-child {
  width: 36px;
}

.mapping-panel table.bulk-on td:nth-child(2) {
  padding-left: 4px;
}
