:root {
  color: #eaf1ec;
  background: #111713;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #111713;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid #b6ff80;
  outline-offset: 3px;
}

.sample-banner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 9px 20px;
  background: #b6ff80;
  color: #152018;
  font-size: 13px;
  font-weight: 700;
}

.sample-banner a {
  color: inherit;
  font-weight: 900;
  text-underline-offset: 3px;
}

.app-shell {
  width: min(1440px, 100%);
  min-height: calc(100vh - 44px);
  margin: 0 auto;
  background: #f3f5f2;
  color: #17221b;
}

.app-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 30px;
  border-bottom: 1px solid #d9dfda;
  background: #fff;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #17221b;
  text-decoration: none;
}

.app-brand > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #193525;
  color: #b6ff80;
  font-weight: 950;
}

.app-brand strong {
  font-size: 19px;
}

.business-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.business-switcher > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7eee8;
  color: #335040;
  font-size: 12px;
  font-weight: 900;
}

.business-switcher div {
  display: grid;
  gap: 2px;
}

.business-switcher strong {
  font-size: 13px;
}

.business-switcher small {
  color: #728078;
  font-size: 11px;
  font-weight: 700;
}

main {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: minmax(310px, 0.68fr) minmax(500px, 1.32fr);
}

.inbox-panel {
  padding: 34px 28px;
  border-right: 1px solid #d9dfda;
  background: #f7f8f6;
}

.panel-heading,
.reply-header,
.draft-heading,
.reply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading {
  margin-bottom: 22px;
}

.panel-heading p,
.channel,
.request-card span,
.draft-heading span {
  margin: 0 0 5px;
  color: #688071;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-heading h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
}

.lead-count {
  padding: 7px 10px;
  border-radius: 999px;
  background: #e6f8dc;
  color: #326143;
  font-size: 12px;
  font-weight: 850;
}

.lead-list {
  display: grid;
  gap: 9px;
}

.lead-card {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #1b2b21;
  text-align: left;
}

.lead-card:hover {
  background: #fff;
}

.lead-card.selected {
  border-color: #cfd8d1;
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 54, 38, 0.08);
}

.lead-card.unread::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48a861;
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dde9df;
  color: #31523d;
  font-size: 12px;
  font-weight: 900;
}

.lead-card-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.lead-card-copy strong,
.lead-card-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-card-copy strong {
  font-size: 14px;
}

.lead-card-copy small,
.lead-time {
  color: #718077;
  font-size: 11px;
  font-weight: 700;
}

.lead-time {
  align-self: end;
}

.reply-panel {
  padding: 42px clamp(30px, 6vw, 82px);
  background: #fff;
}

.reply-header {
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid #e0e5e1;
}

.channel {
  color: #428252;
}

.reply-header h2 {
  margin: 0 0 7px;
  font-size: 34px;
  line-height: 1;
}

.lead-meta {
  margin: 0;
  color: #748078;
  font-size: 13px;
  font-weight: 700;
}

.status-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff2c7;
  color: #785d16;
  font-size: 11px;
  font-weight: 900;
}

.status-pill.approved {
  background: #dff5d5;
  color: #2b6540;
}

.request-card {
  margin: 28px 0;
  padding: 20px;
  border-left: 3px solid #9dde77;
  background: #f2f6f1;
}

.request-card p {
  margin: 0;
  color: #314238;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 650;
}

.draft-heading {
  margin-bottom: 10px;
}

.draft-heading div {
  display: grid;
  gap: 2px;
}

.draft-heading span {
  margin: 0;
  color: #2d4235;
}

.draft-heading small {
  color: #829087;
  font-size: 11px;
  font-weight: 700;
}

.quiet-button {
  border: 0;
  background: transparent;
  color: #48705a;
  font-size: 12px;
  font-weight: 850;
}

#draft-reply {
  width: 100%;
  min-height: 210px;
  resize: vertical;
  padding: 18px;
  border: 1px solid #ccd6ce;
  border-radius: 10px;
  background: #fbfcfb;
  color: #203027;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
}

#draft-reply:focus {
  border-color: #69a878;
  background: #fff;
  outline: 3px solid rgba(98, 169, 114, 0.18);
}

.reply-actions {
  margin-top: 16px;
}

.reply-actions p {
  margin: 0;
  color: #87928b;
  font-size: 11px;
  font-weight: 700;
}

.keyboard-key {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-right: 4px;
  place-items: center;
  border: 1px solid #d4dbd6;
  border-radius: 5px;
  background: #f4f6f4;
  color: #53645a;
  font-size: 11px;
}

.approve-button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #1f3929;
  border-radius: 9px;
  background: #1f3929;
  color: #fff;
  font-weight: 850;
}

.approve-button:hover:not(:disabled) {
  background: #2b4d37;
}

.approve-button:disabled {
  border-color: #bcdcb0;
  background: #dff5d5;
  color: #2b6540;
  cursor: default;
}

.approval-message {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #e9f8e2;
  color: #315d3e;
  font-size: 13px;
  font-weight: 750;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  main {
    grid-template-columns: 1fr;
  }

  .inbox-panel {
    border-right: 0;
    border-bottom: 1px solid #d9dfda;
  }

  .lead-list {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .reply-panel {
    padding: 34px 28px;
  }
}

@media (max-width: 560px) {
  .sample-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .business-switcher div {
    display: none;
  }

  .app-header,
  .inbox-panel,
  .reply-panel {
    padding-inline: 18px;
  }

  .reply-header {
    gap: 12px;
  }

  .reply-header h2 {
    font-size: 29px;
  }

  .reply-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .approve-button {
    width: 100%;
  }
}
