:root {
  --ink: #172329;
  --muted: #718087;
  --line: #dfe7e5;
  --paper: #f5f7f4;
  --card: #fff;
  --green: #1f765d;
  --green-dark: #155943;
  --mint: #dcece5;
  --orange: #e08b45;
  --red: #c85f58;
  --shadow: 0 18px 50px rgba(33, 54, 46, 0.09);
}

.text-link {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.called-at strong,
.called-at small {
  display: block;
  white-space: nowrap;
}
.called-at strong {
  font-size: 11px;
}
.called-at small {
  color: var(--muted);
  margin-top: 3px;
}
.response-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--green);
  border-radius: 7px;
  padding: 6px 9px;
  font-weight: 700;
  font-size: 10px;
  white-space: nowrap;
}
.response-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.swal2-popup {
  border-radius: 16px;
  font-family: "DM Sans", sans-serif;
}
.swal2-title {
  color: var(--ink);
  font:
    800 21px "Manrope",
    sans-serif;
}
.swal-response-meta {
  color: var(--muted);
  font-size: 11px;
  text-align: left;
  margin: 0 0 10px;
}
.response-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px 34px;
  gap: 7px;
  align-items: center;
  margin-bottom: 9px;
}
.response-search input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  font:
    11px "DM Sans",
    sans-serif;
  outline: none;
}
.response-search input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 118, 93, 0.1);
}
.response-search button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--green);
  font-weight: 800;
  cursor: pointer;
}
.response-search button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.response-match-count {
  min-width: 65px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
  white-space: nowrap;
}
.swal-response-content {
  max-height: 55vh;
  overflow: auto;
  background: #172329;
  color: #dcece5;
  border-radius: 10px;
  padding: 16px;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.6 monospace;
}
.swal-response-content mark {
  border-radius: 2px;
  background: #f5d76e;
  color: #172329;
  padding: 0 1px;
}
.swal-response-content mark.active {
  background: #ff8b5c;
  outline: 2px solid white;
}
.truncated-note {
  color: var(--orange);
  font-size: 11px;
  margin-bottom: 0;
}
.history-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 5px 0 25px;
}
.history-hero h1 {
  font: 800 30px "Manrope";
  letter-spacing: -1px;
  margin: 6px 0;
}
.history-hero p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.history-total {
  text-align: right;
}
.history-total strong,
.history-total span {
  display: block;
}
.history-total strong {
  font: 800 30px "Manrope";
  color: var(--green);
}
.history-total span {
  color: var(--muted);
  font-size: 11px;
}
.filter-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(5, minmax(110px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}
.email-filter-panel {
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(110px, 1fr)) auto;
}
.email-recipient strong,
.email-recipient small {
  display: block;
}
.email-recipient strong {
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.5;
}
.email-recipient small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
  text-transform: capitalize;
}
.email-detail-list {
  text-align: left;
}
.email-detail-list p {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #edf1ef;
  font-size: 12px;
}
.email-detail-list strong {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.email-detail-list span {
  overflow-wrap: anywhere;
}
.filter-panel label {
  margin: 0 0 6px;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.filter-panel input,
.filter-panel select {
  padding: 10px;
  font-size: 11px;
}
.filter-actions {
  display: flex;
  gap: 7px;
}
.filter-button,
.secondary-button {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.filter-button {
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
}
.secondary-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
}
.history-list {
  margin-top: 16px;
}
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 3px 9px;
}
.list-toolbar p,
.pagination p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.per-page {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.per-page select {
  width: 70px;
  padding: 7px;
  background: white;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.page-buttons {
  display: flex;
  gap: 5px;
}
.page-buttons button {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.page-buttons button.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.page-buttons button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 1200px) {
  .filter-panel {
    grid-template-columns: repeat(3, 1fr);
  }
  .filter-actions {
    grid-column: span 3;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }
  .filter-search,
  .filter-actions {
    grid-column: span 2;
  }
  .history-hero {
    align-items: flex-start;
  }
  .history-total {
    display: none;
  }
  .pagination {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }
  .page-buttons {
    flex-wrap: wrap;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}
dashboard-sidebar,
dashboard-header,
dashboard-footer {
  display: block;
}
.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 38px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.dashboard-footer strong {
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.hidden {
  display: none !important;
}
.auth-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}
.loading-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}
.loading-brand p {
  margin: 0;
}
.loading-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #d5e2dd;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: session-spin 0.7s linear infinite;
}
@keyframes session-spin {
  to {
    transform: rotate(360deg);
  }
}
.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}
.ambient-one {
  width: 460px;
  height: 460px;
  background: rgba(187, 222, 207, 0.38);
  top: -220px;
  right: -100px;
}
.ambient-two {
  width: 340px;
  height: 340px;
  background: rgba(238, 206, 164, 0.24);
  bottom: -200px;
  left: -80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font:
    800 20px "Manrope",
    sans-serif;
  letter-spacing: -0.6px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  background: var(--green);
  box-shadow: 0 7px 18px rgba(31, 118, 93, 0.24);
}
.brand-mark i {
  display: block;
  width: 4px;
  border-radius: 4px;
  background: white;
  transform: rotate(20deg);
}
.brand-mark i:nth-child(1) {
  height: 10px;
  opacity: 0.7;
}
.brand-mark i:nth-child(2) {
  height: 17px;
}
.brand-mark i:nth-child(3) {
  height: 13px;
  opacity: 0.85;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  position: relative;
  z-index: 1;
}
.login-card {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 38px 40px 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.login-copy {
  margin: 54px 0 32px;
}
.eyebrow,
.header-kicker {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--green);
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
.login-copy h1 {
  font: 800 34px/1.15 "Manrope";
  letter-spacing: -1.2px;
  margin: 8px 0 10px;
}
.login-copy p {
  color: var(--muted);
  line-height: 1.55;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 18px 0 8px;
}
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfcfb;
  color: var(--ink);
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
  transition: 0.2s;
}
input:focus,
select:focus {
  border-color: #77aa98;
  box-shadow: 0 0 0 3px rgba(65, 137, 111, 0.12);
  background: white;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 46px;
}
.icon-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 30px;
  height: 30px;
}
.icon-button:before {
  content: "◉";
  font-size: 15px;
}
.form-error {
  color: var(--red);
  font-size: 13px;
  min-height: 18px;
  margin: 9px 0 0;
}
.primary-button {
  width: 100%;
  border: 0;
  background: var(--green);
  color: white;
  padding: 13px 16px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(31, 118, 93, 0.18);
  transition: 0.2s;
}
.primary-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}
.primary-button:disabled {
  opacity: 0.65;
  transform: none;
}
.secure-note {
  margin: 26px 0 0;
  text-align: center;
  color: #8a9695;
  font-size: 11px;
}
.secure-note span {
  color: var(--green);
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  position: relative;
  z-index: 1;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #f9faf8;
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.sidebar .brand {
  margin: 0 10px 46px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar nav a {
  text-decoration: none;
  color: #6c797a;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
}
.sidebar nav a.active,
.sidebar nav a:hover {
  background: var(--mint);
  color: var(--green-dark);
}
.nav-icon {
  font-size: 20px;
  width: 22px;
  text-align: center;
}
.sidebar-foot {
  margin-top: auto;
  display: grid;
  grid-template-columns: 38px 1fr 28px;
  gap: 10px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #d9ab7c;
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.sidebar-foot strong,
.sidebar-foot small {
  display: block;
}
.sidebar-foot strong {
  font-size: 13px;
}
.sidebar-foot small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.logout-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 19px;
}
.content-shell {
  grid-column: 2;
  min-width: 0;
}
.content-shell > dashboard-header {
  position: sticky;
  top: 0;
  z-index: 30;
}
.content-shell header {
  height: 91px;
  padding: 0 38px;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  backdrop-filter: blur(14px);
}
.content-shell header h2 {
  font: 700 20px "Manrope";
  margin: 2px 0 0;
  letter-spacing: -0.5px;
}
.header-title {
  min-width: 0;
}
.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.header-status i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #49a984;
  box-shadow: 0 0 0 3px rgba(73, 169, 132, 0.11);
}
.header-status span:first-of-type {
  color: var(--green);
  font-weight: 700;
}
.header-status b {
  color: #b2bdb9;
  font-weight: 400;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.timezone-picker {
  position: relative;
}
.timezone-trigger {
  width: 310px;
  height: 42px;
  min-height: 42px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 8px;
  padding: 3px 9px;
  border: 1px solid #dfe8e4;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 2px 8px rgba(37, 55, 49, 0.035);
}
.timezone-trigger:hover {
  border-color: #b8cdc5;
  background: #fbfdfc;
}
.timezone-trigger:focus-visible {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 118, 93, 0.1);
}
.timezone-picker.open .timezone-trigger {
  border-color: #b8cdc5;
  box-shadow: none;
}
.timezone-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f0f6f3;
  color: var(--green);
}
.timezone-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.timezone-selection {
  min-width: 0;
}
.timezone-selection strong,
.timezone-selection time,
.timezone-kicker {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timezone-selection strong {
  font:
    600 9px/1.1 "DM Sans",
    sans-serif;
}
.timezone-kicker {
  margin-bottom: 1px;
  color: var(--green);
  font-size: 7px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.timezone-clock {
  margin-top: 1px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.05;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.timezone-chevron {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}
.timezone-picker.open .timezone-chevron {
  transform: rotate(180deg);
}
.timezone-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 20;
  width: 360px;
  padding: 10px;
  border: 1px solid #dfe8e4;
  border-radius: 14px;
  background: white;
  box-shadow: 0 18px 45px rgba(28, 46, 40, 0.16);
}
.timezone-search-wrap {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf9;
  color: var(--muted);
}
.timezone-search-wrap > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.timezone-search-wrap:focus-within {
  border-color: var(--green);
  background: white;
  box-shadow: 0 0 0 3px rgba(31, 118, 93, 0.08);
}
.timezone-search-wrap input {
  width: 100%;
  height: auto;
  padding: 0;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink);
  font:
    500 12px "DM Sans",
    sans-serif;
}
.timezone-search-wrap input::-webkit-search-cancel-button {
  opacity: 0.55;
}
.timezone-panel-heading {
  display: flex;
  justify-content: space-between;
  padding: 13px 6px 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.timezone-panel-heading small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.timezone-options {
  max-height: 286px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 3px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: #c7d5d0 transparent;
}
.timezone-options::-webkit-scrollbar {
  width: 6px;
}
.timezone-options::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: #c7d5d0;
}
.timezone-option {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.timezone-option:hover,
.timezone-option:focus-visible {
  outline: 0;
  background: #f3f8f5;
}
.timezone-option[aria-selected="true"] {
  background: #eaf5f0;
  color: var(--green);
  font-weight: 700;
}
.timezone-option-check {
  color: transparent;
  font-size: 12px;
  font-weight: 800;
}
.timezone-option[aria-selected="true"] .timezone-option-check {
  color: var(--green);
}
.timezone-option-copy {
  min-width: 0;
}
.timezone-option-copy strong,
.timezone-option-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timezone-option-copy strong {
  font-size: 12px;
  font-weight: 600;
}
.timezone-option-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}
.timezone-option-offset {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.timezone-empty {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
}
.timezone-empty strong {
  color: var(--ink);
  font-size: 12px;
}
.timezone-empty span {
  margin-top: 4px;
  font-size: 10px;
}
.refresh-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 9px;
  padding: 8px 12px;
}
.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 20px;
}
.dashboard-main {
  max-width: 1450px;
  margin: 0 auto;
  padding: 30px 38px 60px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 19px 20px;
  box-shadow: 0 5px 20px rgba(37, 55, 49, 0.03);
}
.stat-card .top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--mint);
  display: grid;
  place-items: center;
  color: var(--green);
}
.stat-card strong {
  display: block;
  font: 800 26px "Manrope";
  margin-top: 13px;
  letter-spacing: -1px;
}
.stat-card small {
  color: #8a9695;
  font-size: 11px;
}
.section-block {
  margin-top: 32px;
  scroll-margin-top: 110px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-heading h3 {
  font: 800 22px "Manrope";
  letter-spacing: -0.7px;
  margin: 4px 0 0;
}
.section-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 3px;
}
.api-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.api-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: 0.2s;
}
.api-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.api-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green);
  opacity: 0;
  transition: 0.2s;
}
.api-card:hover:before {
  opacity: 1;
}
.api-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.api-symbol {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: var(--mint);
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 800;
  font-size: 18px;
}
.status-dot {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 99px;
}
.status-dot.success {
  color: var(--green);
  background: #edf7f2;
}
.status-dot.failed {
  color: var(--red);
  background: #fbeeed;
}
.status-dot.never {
  color: #7b8787;
  background: #eff2f1;
}
.api-card h4 {
  margin: 18px 0 5px;
  font: 700 15px "Manrope";
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.endpoint {
  color: var(--muted);
  font: 500 11px/1.4 monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cron-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding: 10px 11px;
  border: 1px solid #e3ece8;
  border-radius: 10px;
  background: #f7faf8;
}
.cron-summary div {
  min-width: 0;
}
.cron-summary span,
.condition-summary > span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.65px;
  text-transform: uppercase;
}
.cron-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 11px;
}
.cron-summary code,
.cron-unset {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid #d8e5df;
  border-radius: 6px;
  background: white;
  color: var(--green);
  font: 600 9px monospace;
  white-space: nowrap;
}
.cron-summary .cron-unset {
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.condition-summary {
  margin-top: 13px;
}
.condition-summary p {
  margin: 5px 0 0;
  color: #596a68;
  font-size: 10px;
  line-height: 1.55;
}
.api-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf1ef;
  color: var(--muted);
  font-size: 11px;
}
.method {
  font-weight: 800;
  color: var(--green);
}
.run-button {
  border: 0;
  color: var(--green);
  background: transparent;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 0;
}
.run-button:hover {
  color: var(--green-dark);
}
.run-button:disabled {
  color: #aab4b1;
  cursor: wait;
}
.history-section {
  margin-top: 44px;
}
.history-controls select {
  min-width: 145px;
  padding: 9px 12px;
  background: white;
  font-size: 12px;
}
.table-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.table-wrap th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 9px;
  color: #8b9694;
  padding: 12px 18px;
  background: #fafbf9;
  border-bottom: 1px solid var(--line);
}
.table-wrap td {
  padding: 14px 18px;
  border-bottom: 1px solid #edf1ef;
  font-size: 12px;
}
.table-wrap tr:last-child td {
  border-bottom: 0;
}
.table-api strong {
  display: block;
  font-size: 12px;
}
.table-api small {
  color: var(--muted);
  font: 10px monospace;
}
.pill {
  padding: 4px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
}
.pill.success {
  background: #e8f5ef;
  color: var(--green);
}
.pill.sent {
  background: #e8f5ef;
  color: var(--green);
}
.pill.failed {
  background: #fbeeed;
  color: var(--red);
}
.source {
  color: var(--muted);
  text-transform: capitalize;
}
.rerun {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
}
.empty-state {
  text-align: center;
  padding: 55px 20px;
  color: var(--muted);
}
.empty-state span {
  font-size: 28px;
  color: var(--green);
}
.empty-state h4 {
  margin: 8px 0 4px;
  color: var(--ink);
}
.empty-state p {
  font-size: 12px;
}
.toastify {
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 13px;
  padding: 13px 17px;
}
.toast-close {
  margin-left: 14px;
  padding: 0 0 0 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 20px;
  line-height: 16px;
  opacity: 0.85;
}
.toast-close:hover,
.toast-close:focus {
  opacity: 1;
}
@media (max-width: 1250px) {
  .timezone-clock {
    display: none;
  }
  .timezone-trigger {
    width: 235px;
    grid-template-columns: 26px minmax(0, 1fr) 12px;
  }
}
@media (max-width: 1050px) {
  .api-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: 0.25s;
    box-shadow: var(--shadow);
  }
  .sidebar.open {
    transform: none;
  }
  .content-shell {
    display: block;
  }
  .content-shell header {
    height: 78px;
    padding: 0 18px;
  }
  .menu-button {
    display: block;
  }
  .header-kicker,
  .refresh-button span {
    display: none;
  }
  .timezone-trigger {
    width: min(220px, 36vw);
  }
  .dashboard-main {
    padding: 22px 18px 45px;
  }
  .api-grid {
    grid-template-columns: 1fr;
  }
  .section-heading > p {
    display: none;
  }
  .login-card {
    padding: 30px 25px;
  }
  .login-copy {
    margin-top: 42px;
  }
  .stat-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-card strong {
    font-size: 22px;
  }
  .dashboard-footer {
    margin-inline: 18px;
    padding-bottom: 22px;
  }
}

/* Full history responsive layout */
.filter-panel > div,
.history-list,
.list-toolbar,
.table-wrap {
  min-width: 0;
}
.filter-panel input,
.filter-panel select {
  min-width: 0;
  max-width: 100%;
}
.history-list .table-wrap {
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 720px) {
  .content-shell header > div:nth-child(2) {
    min-width: 0;
    flex: 1;
    margin: 0 10px;
  }
  .content-shell header h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
  }
  .header-actions {
    flex: 0 0 auto;
  }
  .history-hero {
    margin-bottom: 18px;
  }
  .history-hero h1 {
    font-size: 26px;
  }
  .history-hero p {
    line-height: 1.5;
  }
  .filter-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 14px;
  }
  .list-toolbar {
    gap: 12px;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .content-shell header > div:nth-child(2) {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .timezone-trigger {
    width: min(230px, calc(100vw - 118px));
  }
  .timezone-panel {
    position: fixed;
    top: 70px;
    right: 10px;
    left: 10px;
    width: auto;
  }
  .timezone-options {
    max-height: min(55vh, 360px);
  }
  .dashboard-main {
    padding-inline: 12px;
  }
  .filter-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .filter-search,
  .filter-actions {
    grid-column: 1;
  }
  .filter-actions button {
    flex: 1;
  }
  .history-list .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .history-list table,
  .history-list tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .history-list thead {
    display: none;
  }
  .history-list tbody {
    display: grid;
    gap: 12px;
  }
  .history-list tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 8px;
    background: white;
  }
  .history-list .table-wrap td {
    min-width: 0;
    padding: 9px;
    border: 0;
  }
  .history-list .table-wrap td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: #8b9694;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }
  .history-list .table-api {
    grid-column: 1 / -1;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1ef;
  }
  .history-list .table-api small {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .history-list .response-button,
  .history-list .rerun {
    width: 100%;
    min-height: 34px;
  }
  .pagination {
    width: 100%;
  }
  .page-buttons {
    width: 100%;
  }
  .page-buttons button {
    flex: 1 1 32px;
  }
  .swal2-popup {
    width: calc(100% - 20px) !important;
    padding: 16px;
  }
  .swal-response-content {
    max-height: 48vh;
    font-size: 10px;
  }
}

/* API performance analytics */
.last-updated {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.performance-panel {
  margin: 8px 0 42px;
}
.performance-heading {
  margin-bottom: 16px;
}
.chart-card {
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px 12px;
  box-shadow: 0 5px 20px rgba(37, 55, 49, 0.03);
}
.chart-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}
.chart-summary strong,
.chart-summary small {
  display: block;
}
.chart-summary strong {
  font: 700 14px "Manrope";
}
.chart-summary small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.chart-legend {
  display: flex;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 9px;
}
.chart-interaction-hint {
  white-space: nowrap;
}
.duration-chart {
  position: relative;
  width: 100%;
  height: 310px;
  min-height: 310px;
}
.duration-chart canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.duration-chart canvas.hidden {
  display: none !important;
}
.chart-empty {
  min-height: 255px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.chart-empty span {
  color: var(--green);
  font-size: 28px;
}
.chart-empty strong {
  color: var(--ink);
  font-size: 13px;
  margin: 8px 0 4px;
}
.chart-empty small {
  font-size: 10px;
}
.api-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.metric-card {
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px 16px;
}
.metric-card > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  column-gap: 7px;
  align-items: center;
}
.metric-card > div strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.metric-card > div small {
  grid-column: 2;
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}
.metric-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  grid-row: 1 / 3;
}
.metric-card dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #edf1ef;
}
.metric-card dl div {
  min-width: 0;
}
.metric-card dt {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.metric-card dd {
  margin: 4px 0 0;
  font: 700 12px "Manrope";
  white-space: nowrap;
}
.metric-warning {
  color: var(--red);
}

@media (max-width: 1050px) {
  .api-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .last-updated {
    display: none;
  }
  .performance-heading {
    align-items: flex-start;
  }
  .chart-summary {
    flex-direction: column;
  }
  .chart-legend {
    justify-content: flex-start;
  }
  .api-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .chart-card {
    padding: 15px 12px 10px;
  }
  .duration-chart {
    height: 280px;
    min-height: 280px;
  }
  .chart-interaction-hint {
    display: none;
  }
  .metric-card dl {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 12px;
  }
}
