:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #252829;
  background: #fafbfa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: #59665e; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #749a83; outline-offset: 3px; }

.auth-main {
  width: min(100% - 48px, 360px);
  margin: 0 auto;
  padding: clamp(64px, 15vh, 144px) 0 56px;
}
.brand {
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .18em;
  text-decoration: none;
}
h1 { margin: 46px 0 12px; font-size: 28px; font-weight: 600; line-height: 1.25; letter-spacing: -.025em; }
.intro { margin: 0 0 30px; color: #626b66; font-size: 14px; line-height: 1.6; }
form { display: flex; flex-direction: column; }
label { margin: 18px 0 8px; font-size: 14px; font-weight: 500; }
form label:first-child { margin-top: 0; }
input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd1cc;
  border-radius: 6px;
  background: #fff;
  color: #252829;
  font-size: 16px;
}
input:focus { border-color: #506b5a; }
button {
  min-height: 46px;
  margin: 26px 0 0;
  padding: 10px 18px;
  border: 1px solid #273b2e;
  border-radius: 6px;
  background: #273b2e;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
button:hover:not(:disabled) { background: #3a5242; }
.field-help { margin: 9px 0 0; color: #626b66; font-size: 12px; line-height: 1.6; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 24px; font-size: 13px; }
.single-link { justify-content: flex-start; }
.feedback { margin: 0 0 24px; padding: 12px 14px; border-radius: 6px; background: #edf2ee; color: #334d3c; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.feedback.error { background: #f8eded; color: #922f2c; }
.email-help { margin-top: 32px; color: #626b66; font-size: 12px; line-height: 1.6; }
.email-help p { margin-bottom: 4px; }
.link-button { min-height: 32px; margin: 0; padding: 4px 0; border: 0; background: transparent; color: #334d3c; text-align: left; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.link-button:hover:not(:disabled) { background: transparent; color: #172b1e; }
.account-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1088px; margin: 0 auto; padding: 28px 32px; border-bottom: 1px solid #e2e7e3; }
.secondary-button { min-height: 38px; margin: 0; padding: 8px 16px; border-color: #cbd1cc; background: transparent; color: #252829; }
.secondary-button:hover:not(:disabled) { background: #edf2ee; }
.account-main { max-width: 1088px; margin: 0 auto; padding: 0 32px 64px; }
.account-main h1 { margin-top: 40px; }
.account-name { margin: 22px 0 8px; font-size: 16px; }
.account-email { margin: 0; color: #626b66; font-size: 14px; overflow-wrap: anywhere; }
.account-main .feedback { width: min(100%, 440px); margin-top: 22px; }
.portal-content { margin-top: 42px; }
h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.count-note, .muted { color: #626b66; font-size: 13px; line-height: 1.6; }
.count-note { margin: 0; }
.filter-row { display: flex; align-items: center; gap: 14px; margin: 28px 0 22px; }
.filter-row label { margin: 0; white-space: nowrap; }
select { min-height: 40px; max-width: 420px; width: 100%; padding: 8px 32px 8px 12px; border: 1px solid #cbd1cc; border-radius: 6px; background: #fff; color: #252829; font: inherit; font-size: 14px; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.data-table th { padding: 12px 14px; border-bottom: 1px solid #cbd1cc; color: #626b66; font-weight: 500; white-space: nowrap; }
.data-table td { padding: 14px; border-bottom: 1px solid #e2e7e3; vertical-align: top; overflow-wrap: anywhere; }
.data-table th:first-child, .data-table td:first-child { padding-left: 0; }
.data-table th:last-child, .data-table td:last-child { padding-right: 0; }
.nowrap { white-space: nowrap; }
.preserve-lines { white-space: pre-line; }
.data-table .link-button { margin: -5px 0; }
.empty-state { padding: 32px 0; color: #626b66; font-size: 14px; line-height: 1.6; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; font-size: 12px; color: #626b66; }
.call-detail { margin-top: 36px; padding-top: 28px; border-top: 1px solid #cbd1cc; scroll-margin-top: 24px; }
.call-summary { max-width: 760px; padding: 16px; border-radius: 6px; background: #edf2ee; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.transcript { max-width: 760px; margin: 24px 0 0; padding: 0; list-style: none; }
.transcript li { padding: 18px 0; border-bottom: 1px solid #e2e7e3; }
.turn-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.turn-time { color: #626b66; font-size: 12px; font-weight: 400; }
.turn-status { color: #8c5c27; font-size: 12px; font-weight: 500; }
.turn-text { margin: 0; font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.overview-counts { display: flex; flex-wrap: wrap; gap: 48px; margin-bottom: 30px; }
.overview-counts p { margin: 0; color: #626b66; font-size: 13px; }
.overview-counts span { display: block; margin-bottom: 8px; color: #252829; font-size: 28px; font-weight: 600; }
.portal-tabs { display: flex; gap: 24px; margin: 30px 0 24px; border-bottom: 1px solid #e2e7e3; }
.portal-tabs button { min-height: 40px; margin: 0; padding: 8px 0 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #626b66; }
.portal-tabs button[aria-selected="true"] { border-bottom-color: #273b2e; color: #273b2e; }
.portal-tabs button:hover { background: transparent; color: #273b2e; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 480px) {
  .account-header { padding: 22px 24px; }
  .account-main { padding-right: 24px; padding-left: 24px; }
  .overview-counts { gap: 30px; }
  .pagination { gap: 10px; }
  .pagination .secondary-button { padding: 8px 12px; }
}
