:root {
  --bg-page: #fff8f1;
  --bg-card: #fffdf9;
  --bg-soft: #faf4ee;
  --bg-accent-soft: #ffe7d6;
  --primary: #fc6c13;
  --primary-hover: #e85f0c;
  --primary-soft: #f6d7bf;
  --text-main: #2f2925;
  --text-secondary: #7a6f68;
  --text-muted: #9b8e85;
  --border: #e9dccf;
  --border-strong: #dec9b7;
  --danger: #d95f55;
  --danger-soft: #fbe9e6;
  --success-soft: #eaf5ec;
  --info-soft: #edf3fa;
  --brand-deep: #e85f0c;
  --owner-icon: #a65f32;
  --intent-high-soft: #fff0c8;
  --intent-medium-soft: #ffeaf2;
  --intent-low-soft: #e8f6ed;
  --staff-soft: #edf5ed;
  --bg: var(--bg-page);
  --surface: var(--bg-card);
  --text: var(--text-main);
  --muted: var(--text-secondary);
  --accent: var(--primary);
  --accent-dark: var(--primary-hover);
  --soft: var(--bg-soft);
  --success: #4e8763;
  --shadow: 0 6px 20px rgba(91, 63, 44, 0.06);
  --shadow-hover: 0 10px 26px rgba(91, 63, 44, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid rgba(233, 220, 207, 0.86);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 20px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 42px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.1;
  font-weight: 750;
}

.brand-lockup p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 14px;
  background: var(--bg-soft);
}

.language-button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--owner-icon);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.language-button:hover {
  background: var(--bg-accent-soft);
  box-shadow: 0 4px 12px rgba(91, 63, 44, 0.09);
  transform: translateY(-1px);
}

.tab-button,
.action-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 9px 12px;
  min-height: 44px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.tab-button.active,
.action-button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 5px 12px rgba(252, 108, 19, 0.20);
}

.tab-button:hover,
.action-button:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.tab-button:not(.active):hover,
.action-button:not(.primary):not(.danger):hover {
  background: var(--bg-accent-soft);
}

.tab-button:focus-visible,
.action-button:focus-visible,
.language-button:focus-visible,
.icon-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(252, 108, 19, 0.20);
}

.action-button.primary:hover {
  background: var(--primary-hover);
}

.tab-count {
  display: inline-block;
  min-width: 18px;
  margin-left: 4px;
  color: inherit;
  font-size: 12px;
  opacity: 0.8;
}

.action-button.danger {
  color: var(--danger);
  border-color: #efc9c4;
  background: var(--danger-soft);
}

.action-button.danger:hover {
  border-color: var(--danger);
  background: #f8deda;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 20px 56px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.follow-section + .follow-section {
  margin-top: 40px;
}

.section-heading {
  margin-bottom: 16px;
}

h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}

.customer-group + .customer-group {
  margin-top: 30px;
}

#previous-list.card-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

#previous-list .customer-group {
  width: 100%;
  min-width: 0;
}

#previous-list .group-cards.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 12px;
}

.group-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.group-heading span {
  color: var(--text-muted);
  font-size: 12px;
}

.timing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg-soft);
}

.timing-grid strong {
  display: block;
  color: var(--text);
  overflow-wrap: anywhere;
}

.customer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.customer-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.compact-card-header {
  display: block;
}

.card-title-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.sequence-number {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.intent-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #fff4da;
  font-size: 21px;
  line-height: 1;
}

.intent-high .intent-icon { background: var(--intent-high-soft); }
.intent-medium .intent-icon { background: var(--intent-medium-soft); }
.intent-low .intent-icon { background: var(--intent-low-soft); }

.group-icon {
  width: 28px;
  flex: 0 0 28px;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
}

.customer-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  overflow-wrap: anywhere;
  min-width: 0;
}

.customer-phone {
  margin: 2px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.customer-phone-button {
  display: block;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.customer-phone-button:hover {
  color: var(--primary);
  text-decoration: underline;
}

.customer-phone-button:focus-visible {
  outline: 0;
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(252, 108, 19, 0.12);
}

.suggestion {
  background: var(--bg-accent-soft);
  border: 1px solid var(--primary-soft);
  border-radius: 12px;
  padding: 13px 14px;
  margin: 16px 0;
}

.suggestion h3,
.info-block h3 {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}

.suggestion p,
.info-block p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.assigned-block {
  background: var(--bg-soft);
}

.assigned-block h3 {
  color: var(--owner-icon);
}

.assigned-name {
  font-size: 16px;
  font-weight: 700;
}

.support-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px !important;
  font-size: 13px;
}

.support-line:last-child {
  margin-bottom: 0 !important;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.info-block {
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--bg-card);
}

.detail-row + .detail-row {
  margin-top: 8px;
}

.detail-row span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
}

.latest-caller {
  font-weight: 700;
  margin-bottom: 4px !important;
}

.deadline {
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid #f0d3ba;
  border-radius: 999px;
  background: #fff1df;
  color: #9d672d;
  font-weight: 700;
}

.deadline-overdue {
  border-color: #f0c9c4;
  background: var(--danger-soft);
  color: #c64c42;
}

.deadline-today {
  border-color: #f0d0aa;
  background: var(--primary-soft);
  color: #b95d2e;
}

.deadline-tomorrow {
  border-color: #f1d8b7;
  background: #fff1df;
  color: #9d672d;
}

.deadline-future,
.deadline-neutral {
  border-color: var(--border);
  background: #f5f1ed;
  color: var(--text-secondary);
}

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

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.follow-form,
.stop-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.scan-notes-panel {
  display: grid;
  gap: 8px;
}

.scan-notes-panel > .action-button {
  justify-self: start;
}

.scan-notes-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.scan-notes-status.error {
  color: var(--danger);
}

.ocr-lines {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
}

.ocr-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ocr-line:hover,
.ocr-line.selected {
  border-color: var(--primary);
}

.ocr-line.selected {
  background: var(--bg-accent-soft);
}

.ocr-line-check {
  width: 18px;
  flex: 0 0 18px;
  color: var(--primary);
  font-weight: 700;
}

.ocr-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.field {
  display: grid;
  gap: 5px;
}

.field span {
  font-size: 13px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  min-height: 44px;
  font-size: 16px;
  background: var(--bg-card);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(252, 108, 19, 0.12);
}

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

.filters {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filters input[type="search"] {
  max-width: 360px;
  height: 44px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  max-width: 360px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-muted);
}

.search-field span {
  font-size: 22px;
  line-height: 1;
}

.search-field input {
  max-width: none !important;
  height: 40px;
  min-height: 40px;
  border: 0;
  outline: 0;
  padding-left: 0;
  background: transparent;
}

.search-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(252, 108, 19, 0.12);
}

.intent-filter {
  min-width: 145px;
}

.filter-field > span {
  color: var(--text-secondary);
  font-size: 12px;
}

.filter-field {
  display: grid;
  gap: 4px;
  min-width: 145px;
}

.filter-field select,
.filter-field input[type="date"] {
  height: 40px;
  min-height: 40px;
  padding: 7px 9px;
  font-size: 14px;
}

.custom-date-filters {
  display: flex;
  gap: 10px;
}

.filter-reset {
  height: 40px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
}

.filter-reset:hover {
  background: var(--bg-accent-soft);
  border-color: var(--primary-soft);
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  min-height: 40px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13px;
}

.checkbox-row input {
  width: auto;
}

.empty-state {
  margin: 12px 0 0;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 18px;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 340px;
  background: var(--success);
  color: white;
  padding: 12px 14px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  z-index: 20;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(47, 41, 37, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  width: min(720px, 100%);
  max-height: 86vh;
  background: var(--bg-card);
  border-radius: 14px;
  box-shadow: 0 20px 55px rgba(91, 63, 44, 0.20);
  display: flex;
  flex-direction: column;
}

.chat-details-modal {
  width: min(900px, 92vw);
  max-height: 88vh;
  border-radius: 16px;
}

.compact-modal {
  width: min(520px, 100%);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}

.modal-header p {
  margin: 4px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 6px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-content {
  padding: 18px 20px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #d8c4b5 transparent;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  flex: 0 0 auto;
}

.modal-form {
  display: grid;
  gap: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.call-confirm-content > p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
}

.modal-section + .modal-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.modal-section h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.customer-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.summary-intent,
.summary-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.summary-intent {
  grid-column: 1 / -1;
}

.summary-intent-icon {
  width: 28px;
  flex: 0 0 28px;
  font-size: 22px;
  text-align: center;
}

.summary-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.customer-summary strong,
.modal-footer strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.follow-up-entry {
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.follow-up-entry + .follow-up-entry {
  margin-top: 10px;
}

.follow-up-entry strong,
.follow-up-entry time {
  display: block;
}

.follow-up-entry time {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.follow-up-entry p {
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.compact-empty {
  margin: 0;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: 10px;
  text-align: left;
}

.chat-entry {
  max-width: 78%;
  margin-top: 10px;
}

.chat-entry-customer,
.chat-entry-feta,
.chat-entry-unknown {
  margin-right: auto;
}

.chat-entry-human {
  margin-left: auto;
}

.chat-entry-system {
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.chat-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 4px 4px;
  color: var(--muted);
  font-size: 12px;
}

.chat-meta strong {
  color: var(--text);
  font-weight: 600;
}

.chat-meta time {
  font-size: 12px;
}

.chat-bubble {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  line-height: 1.5;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-entry-customer .chat-bubble { background: #f4f0ec; }
.chat-entry-feta .chat-bubble { background: #fff0e4; }
.chat-entry-human .chat-bubble { background: var(--staff-soft); }

.chat-entry-system .chat-meta { justify-content: center; }
.chat-entry-system .chat-meta strong,
.chat-entry-system .chat-bubble {
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.chat-stop-form {
  display: grid;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
}

.stop-confirm {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.stop-form-title {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
}

.stop-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.chat-stop-form .field { min-width: 220px; }
.chat-stop-form textarea {
  min-height: 44px;
  max-height: 80px;
}

@media (min-width: 561px) and (max-width: 900px) {
  #previous-list .group-cards.card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ocr-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ocr-actions .action-button {
    width: 100%;
  }

  .topbar {
    box-shadow: 0 3px 12px rgba(91, 63, 44, 0.08);
  }

  .topbar-inner,
  .page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar-inner {
    display: block;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  h1 {
    margin-bottom: 10px;
    font-size: 23px;
  }

  .brand-mark {
    width: 42px;
    height: 38px;
  }

  .tabs {
    margin-top: 13px;
    width: 100%;
  }

  .language-button {
    position: absolute;
    top: 12px;
    right: 14px;
  }

  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .tab-button {
    width: 100%;
    min-height: 46px;
    padding: 8px 10px;
    line-height: 1.2;
  }

  .page {
    padding-top: 18px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }

  #previous-list .group-cards.card-grid {
    grid-template-columns: 1fr;
  }

  .customer-card {
    width: 100%;
    padding: 14px;
  }

  .filters {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
  }

  .intent-filter,
  .filter-field,
  .custom-date-filters,
  .filter-reset {
    width: 100%;
  }

  .custom-date-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .filter-field select,
  .filter-field input[type="date"],
  .filter-reset,
  .checkbox-row {
    height: 46px;
    min-height: 46px;
  }

  .filters input[type="search"] {
    width: 100%;
    max-width: none;
    height: 46px;
    font-size: 16px;
  }

  .search-field {
    width: 100%;
    max-width: none;
    height: 46px;
  }

  .search-field input {
    height: 44px;
    min-height: 44px;
  }

  .checkbox-row {
    min-height: 44px;
  }

  .card-header {
    align-items: flex-start;
    gap: 8px;
  }

  .customer-name {
    font-size: 17px;
  }

  .suggestion {
    margin: 14px 0;
  }

  .card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .action-button {
    width: 100%;
    min-height: 46px;
    padding: 9px 10px;
  }

  .follow-form,
  .stop-form {
    gap: 12px;
  }

  .follow-form .card-actions,
  .stop-form .card-actions {
    grid-template-columns: 1fr;
  }

  input,
  select,
  textarea {
    width: 100%;
  }

  .modal-backdrop {
    align-items: flex-start;
    padding: 7vh 3vw;
  }

  .modal {
    width: 94vw;
    max-height: 85vh;
  }

  .chat-details-modal {
    width: calc(100vw - 24px);
    max-height: 92vh;
    border-radius: 14px;
  }

  .modal-header {
    padding: 14px;
  }

  .modal-content {
    padding: 14px;
    overflow-y: auto;
  }

  .modal-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .stop-confirm,
  .stop-form-actions {
    width: 100%;
  }

  .stop-confirm > .action-button,
  .stop-form-actions .action-button {
    width: 100%;
  }

  .chat-stop-form,
  .chat-stop-form .field,
  .chat-stop-form .action-button {
    width: 100%;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .customer-summary {
    grid-template-columns: 1fr;
  }

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

  .summary-intent {
    grid-column: auto;
  }

  .chat-entry {
    max-width: 88%;
  }
}

@media (max-width: 430px) {
  .topbar-inner,
  .page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .tabs {
    gap: 6px;
  }

  .tab-button {
    font-size: 14px;
  }

  .customer-card {
    padding: 12px;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .toast {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
}

@media (max-width: 360px) {
  .topbar-inner,
  .page {
    padding-left: 8px;
    padding-right: 8px;
  }

  h1 {
    font-size: 18px;
  }

  .tab-button {
    font-size: 13px;
  }
}
