/* Sodtrack palette, verified against sodtrack.com on 2026-11-06.
   Action shades retain the teal hue with stronger contrast for small controls. */
:root {
  --ink: #283331;
  --muted: #5c726f;
  --brand-dark: #283331;
  --brand-dark-alt: #304d48;
  --accent: #01a797;
  --accent-light: #79eedd;
  --accent-pale: #d8f3ed;
  --action: #00786d;
  --action-hover: #00685e;
  --line: #e5e9e8;
  --bg: #f4f7f6;
  --green: #187e65;
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--bg)
}
button,input {
  font:inherit
}
button,a,input {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer;
  border:0
}
button:disabled {
  cursor:wait;
  opacity:.55
}
a {
  color:var(--action);
  text-decoration:none
}
button:focus-visible,a:focus-visible,input:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:3px
}
[hidden] {
  display:none!important
}
.brand {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:25px;
  letter-spacing:-1px;
  font-weight:750;
  color:inherit
}
.brand-icon {
  background:var(--accent);
  color:#fff;
  width:29px;
  height:31px;
  display:grid;
  place-items:center;
  border-radius:9px;
  font-size:25px;
  font-style:italic;
  line-height:1
}
.brand-dot {
  color:var(--accent);
  margin-left:-7px
}
.eyebrow {
  font-size:11px;
  letter-spacing:1.7px;
  font-weight:700
}
.muted {
  color:var(--muted)
}
h1,h2,h3,p {
  margin-top:0
}
h1 {
  font-size:32px;
  letter-spacing:-1px;
  line-height:1.25;
  margin-bottom:10px
}
h2 {
  font-size:17px;
  letter-spacing:-.3px
}
p {
  color:var(--muted)
}
.login-shell {
  min-height:100vh;
  display:grid;
  grid-template-columns:1fr 1fr;
  background:#fff
}
.login-brand {
  padding:54px 10%;
  background:var(--brand-dark);
  color:white;
  display:flex;
  flex-direction:column;
  justify-content:center;
  position:relative;
  overflow:hidden;
  min-height:650px
}
.login-brand .brand {
  position:absolute;
  top:50px
}
.login-brand .eyebrow {
  color:var(--accent-light);
  margin-top:90px
}
.login-brand h1 {
  font-size:clamp(34px,3.6vw,57px);
  letter-spacing:-2px;
  line-height:1.13;
  margin:22px 0
}
.login-brand p {
  max-width:370px;
  color:#d0dfdb;
  font-size:16px;
  line-height:1.8
}
.login-foot {
  position:absolute;
  bottom:40px;
  font-size:12px;
  color:#a6c2bb
}
.login-decoration {
  height:95px;
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:24px
}
.login-decoration span {
  width:6px;
  border-radius:9px;
  background:var(--accent);
  height:20px;
  opacity:.6
}
.login-decoration span:nth-child(3n) {
  height:65px
}
.login-decoration span:nth-child(4n) {
  height:85px;
  opacity:1
}
.login-decoration span:nth-child(2n) {
  height:42px
}
.login-card {
  width:min(410px,80%);
  margin:auto;
  padding:70px 0
}
.mini-label {
  font-size:11px;
  letter-spacing:1.6px;
  color:var(--action);
  font-weight:700;
  margin-bottom:18px
}
.login-card h2 {
  font-size:29px;
  letter-spacing:-.8px;
  margin-bottom:12px
}
.login-card p {
  line-height:1.8;
  margin-bottom:29px
}
.login-card label,.access-form label {
  display:block;
  font-size:12px;
  font-weight:650;
  margin-bottom:9px
}
input {
  width:100%;
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px 14px;
  background:white;
  color:var(--ink)
}
input::placeholder {
  color:var(--muted)
}
.primary {
  background:var(--action);
  color:white;
  padding:13px 18px;
  border-radius:8px;
  font-weight:600;
  transition:background .15s
}
.primary:hover {
  background:var(--action-hover)
}
.wide {
  width:100%;
  margin-top:18px
}
.primary span {
  float:right
}
.login-note {
  border-top:1px solid var(--line);
  padding-top:23px;
  margin-top:25px;
  color:var(--muted);
  font-size:12px
}
.login-note>span:last-child {
  font-size:11px;
  color:var(--muted)
}
.form-status {
  font-size:13px;
  min-height:20px;
  margin:15px 0;
  color:var(--muted)
}
.error {
  color:#b73f48!important
}
.workspace {
  display:flex;
  min-height:100vh
}
.sidebar {
  width:238px;
  position:fixed;
  inset:0 auto 0 0;
  background:#fff;
  border-right:1px solid var(--line);
  padding:29px 20px;
  display:flex;
  flex-direction:column;
  z-index:10
}
.sidebar .brand {
  font-size:23px;
  margin:0 13px 44px
}
.sidebar-label {
  font-size:9px;
  font-weight:700;
  letter-spacing:1.5px;
  color:var(--muted);
  margin:0 13px 12px
}
.nav-item {
  width:100%;
  text-align:left;
  border-radius:8px;
  padding:11px 13px;
  margin-bottom:5px;
  background:transparent;
  color:var(--muted);
  font-size:13px
}
.nav-item span {
  margin-right:8px;
  font-size:17px
}
.nav-item.selected {
  background:var(--accent-pale);
  color:var(--action);
  font-weight:650
}
.nav-item:hover {
  background:var(--bg)
}
.bot-label {
  margin-top:34px
}
.bot-button {
  display:flex;
  gap:10px;
  align-items:center;
  width:100%;
  background:white;
  padding:10px 13px;
  margin-bottom:5px;
  text-align:left;
  color:var(--muted);
  border-radius:8px;
  font-size:12px
}
.bot-button:before {
  content:"";
  width:7px;
  height:7px;
  border:1.5px solid var(--muted);
  border-radius:50%
}
.bot-button.active {
  color:var(--ink);
  background:var(--bg);
  font-weight:650
}
.bot-button.active:before {
  background:var(--accent);
  border-color:var(--accent)
}
.sidebar-bottom {
  margin-top:auto;
  padding:22px 3px 0;
  display:flex;
  gap:9px;
  align-items:center;
  border-top:1px solid var(--line)
}
.avatar {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  background:var(--accent-pale);
  color:var(--action);
  border-radius:50%;
  font-size:12px;
  font-weight:700
}
.account {
  min-width:0;
  flex:1;
  font-size:11px
}
.account strong {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:11px
}
.account span {
  color:var(--muted);
  font-size:10px
}
.icon-button {
  background:transparent;
  color:var(--muted);
  font-size:23px;
  padding:2px 7px;
  border-radius:6px
}
.icon-button:hover {
  background:var(--bg)
}
.main {
  margin-left:238px;
  flex:1;
  padding:0 42px 35px;
  min-width:0
}
.topbar {
  height:79px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--muted);
  font-size:11px
}
.private-label {
  display:flex;
  gap:7px;
  align-items:center
}
.private-label i {
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--accent)
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:37px 0 25px
}
.page-heading .eyebrow {
  margin-bottom:9px;
  font-size:10px
}
.page-heading h1 {
  font-size:30px;
  margin-bottom:8px
}
.page-heading p {
  margin:0;
  font-size:12px
}
.secondary {
  border:1px solid var(--line);
  background:white;
  padding:8px 14px;
  border-radius:7px;
  font-size:12px;
  color:var(--muted)
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:17px;
  margin-bottom:26px
}
.metric {
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  padding:20px 22px
}
.metric-label {
  font-size:11px;
  color:var(--muted);
  display:flex;
  justify-content:space-between
}
.metric strong {
  font-size:28px;
  font-weight:650;
  letter-spacing:-1px;
  display:block;
  margin-top:12px;
  line-height:1.2
}
.metric small {
  font-size:10px;
  color:var(--muted);
  display:block;
  margin-top:8px
}
.metric-symbol {
  color:var(--accent)
}
.table-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden
}
.table-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:23px 24px;
  border-bottom:1px solid var(--line);
  gap:16px
}
.table-header h2 {
  font-size:14px;
  margin:0
}
.table-header>div>span {
  font-size:10px;
  color:var(--muted);
  display:block;
  margin-top:4px
}
.search {
  display:flex;
  align-items:center;
  border:1px solid var(--line);
  border-radius:6px;
  padding-left:10px;
  gap:3px;
  color:var(--muted)
}
.search input {
  border:0;
  background:transparent;
  padding:8px;
  width:220px;
  font-size:11px
}
.table-scroll {
  overflow:auto
}
table {
  border-collapse:collapse;
  width:100%;
  white-space:nowrap
}
th {
  background:#fbfcfc;
  color:var(--muted);
  font-weight:650;
  font-size:9px;
  letter-spacing:.8px;
  text-align:left;
  padding:13px 20px
}
td {
  padding:17px 20px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:11px
}
td:first-child {
  max-width:290px;
  white-space:normal;
  min-width:180px
}
td strong {
  font-size:12px;
  font-weight:600;
  color:var(--ink);
  display:block;
  line-height:1.5
}
td small {
  font-size:9px;
  color:var(--muted);
  display:block;
  margin-top:3px
}
tbody tr {
  cursor:pointer
}
tbody tr:hover {
  background:#f0f9f6
}
.badge {
  display:inline-flex;
  padding:4px 8px;
  border-radius:5px;
  background:var(--bg);
  color:var(--muted);
  font-size:9px;
  white-space:nowrap
}
.badge.success {
  background:#eaf6ef;
  color:#34836a
}
.badge.failure {
  background:#fff1ed;
  color:#b87963
}
.lead {
  color:var(--action);
  font-weight:600
}
.open-call {
  background:transparent;
  color:var(--action);
  font-size:17px;
  padding:3px 8px
}
.table-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 23px;
  border-top:1px solid var(--line);
  font-size:10px;
  color:var(--muted);
  min-height:50px
}
.text-button {
  background:transparent;
  color:var(--action);
  font-size:12px;
  padding:8px
}
.archive-note {
  font-size:10px;
  color:var(--muted);
  margin:17px 0
}
.empty {
  text-align:center;
  padding:60px 20px
}
.empty>div {
  font-size:35px;
  color:var(--accent)
}
.empty h3 {
  font-size:15px;
  margin:12px 0 7px
}
.empty p {
  font-size:12px
}
.access-grid {
  display:grid;
  grid-template-columns:minmax(320px,1fr) 350px;
  gap:25px
}
.access-form {
  padding:25px;
  align-self:start
}
.access-form>p {
  font-size:12px;
  line-height:1.7
}
.access-form h2 {
  margin-bottom:12px
}
.access-form fieldset {
  border:0;
  padding:0;
  margin:22px 0 0
}
.access-form legend {
  font-size:12px;
  font-weight:650;
  margin-bottom:10px
}
.check {
  display:flex!important;
  align-items:center;
  gap:10px;
  padding:10px 0;
  font-size:12px!important;
  font-weight:400!important
}
.check input {
  width:16px;
  height:16px;
  accent-color:var(--action)
}
.person {
  padding:20px 24px;
  border-bottom:1px solid var(--line)
}
.person:last-child {
  border:0
}
.person-head {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center
}
.person strong {
  font-size:12px
}
.person p {
  font-size:11px;
  margin:6px 0 0
}
.person .actions {
  margin-top:8px
}
.person .actions button {
  font-size:10px;
  padding:4px 9px 4px 0
}
.revoke {
  color:#ad5960
}
.detail-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding:24px 28px
}
.detail-top h2 {
  font-size:20px;
  margin:7px 0 0
}
dialog {
  padding:0;
  border:0;
  border-radius:14px;
  width:min(820px,calc(100vw - 30px));
  max-height:90vh;
  box-shadow:0 20px 100px #28333135;
  color:var(--ink)
}
dialog::backdrop {
  background:#28333175;
  backdrop-filter:blur(3px)
}
#detail-content {
  padding:24px 28px
}
.detail-meta {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:11px;
  margin-bottom:20px
}
.audio-card {
  background:#edf8f4;
  border-radius:9px;
  padding:20px;
  margin:18px 0 26px
}
.audio-card h3 {
  font-size:12px;
  margin-bottom:12px
}
audio {
  width:100%;
  height:38px;
  accent-color:var(--action)
}
.detail-stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-bottom:25px
}
.detail-stats>div {
  border:1px solid var(--line);
  padding:13px;
  border-radius:7px
}
.detail-stats small {
  font-size:9px;
  color:var(--muted);
  display:block
}
.detail-stats strong {
  font-size:15px;
  display:block;
  margin-top:5px
}
.section-label {
  font-size:12px;
  margin:24px 0 12px
}
.summary {
  font-size:12px;
  line-height:1.8;
  color:var(--muted);
  white-space:pre-wrap
}
.turn {
  display:grid;
  grid-template-columns:66px 1fr;
  gap:12px;
  padding:13px 0;
  border-bottom:1px solid var(--line)
}
.turn-speaker {
  font-size:10px;
  font-weight:650;
  color:var(--action)
}
.turn-speaker small {
  display:block;
  color:var(--muted);
  font-size:9px;
  font-weight:400;
  margin-top:2px
}
.turn.user .turn-speaker {
  color:var(--brand-dark-alt)
}
.turn p {
  font-size:12px;
  line-height:1.8;
  margin:0;
  color:var(--brand-dark-alt);
  white-space:pre-wrap
}
.detail-id {
  font-family:monospace;
  font-size:10px;
  color:var(--muted);
  margin-top:25px;
  overflow-wrap:anywhere
}
#toast {
  position:fixed;
  bottom:25px;
  right:25px;
  z-index:100;
  padding:13px 20px;
  border-radius:8px;
  background:var(--brand-dark);
  color:white;
  box-shadow:0 5px 20px #28333122;
  font-size:13px
}
@media(max-width:1100px) {
  .main {
    padding:0 24px 25px
  }
  .sidebar {
    width:210px
  }
  .main {
    margin-left:210px
  }
  .metrics {
    gap:10px
  }
  .metric {
    padding:16px
  }
  .access-grid {
    grid-template-columns:1fr
  }
  .access-form {
    max-width:500px
  }
  .search input {
    width:180px
  }
}
@media(max-width:760px) {
  .login-shell {
    grid-template-columns:1fr
  }
  .login-brand {
    min-height:220px;
    padding:30px 8%;
    justify-content:flex-start
  }
  .login-brand .brand {
    position:static;
    margin-bottom:30px
  }
  .login-brand .eyebrow {
    margin:0
  }
  .login-brand h1 {
    font-size:30px;
    margin:14px 0
  }
  .login-brand p,.login-decoration,.login-foot {
    display:none
  }
  .login-card {
    padding:45px 0;
    width:84%
  }
  .sidebar {
    width:100%;
    height:auto;
    position:static;
    padding:15px;
    display:block;
    border-bottom:1px solid var(--line)
  }
  .workspace {
    display:block
  }
  .sidebar .brand {
    margin:0 0 15px;
    font-size:20px
  }
  .sidebar-label,.sidebar-bottom,.bot-label {
    display:none
  }
  .nav-item {
    width:auto;
    margin-right:7px;
    padding:8px 12px;
    display:inline-flex
  }
  .bot-button {
    display:inline-flex;
    width:auto;
    font-size:11px;
    padding:8px 12px
  }
  #bot-nav {
    display:inline
  }
  .main {
    margin:0;
    padding:0 16px 20px
  }
  .topbar {
    height:54px
  }
  .private-label {
    font-size:9px
  }
  .page-heading {
    padding:27px 0 22px
  }
  .page-heading h1 {
    font-size:26px
  }
  .page-heading p {
    font-size:11px
  }
  .metrics {
    grid-template-columns:repeat(2,1fr)
  }
  .metric strong {
    font-size:25px
  }
  .table-header {
    align-items:start;
    flex-direction:column;
    padding:17px
  }
  .search {
    width:100%
  }
  .search input {
    width:100%
  }
  .table-footer {
    padding:12px;
    font-size:9px;
    gap:10px
  }
  .detail-stats {
    grid-template-columns:repeat(2,1fr)
  }
  #detail-content,.detail-top {
    padding:20px
  }
  .access-grid {
    grid-template-columns:1fr
  }
  .access-form {
    max-width:none
  }
}
@media(max-width:760px) {
  .sidebar {
    position:relative
  }
  .sidebar-bottom {
    display:flex;
    position:absolute;
    top:14px;
    right:14px;
    margin:0;
    padding:0;
    border:0
  }
  .sidebar-bottom .avatar,.sidebar-bottom .account {
    display:none
  }
}

/* Global filters and server-side result pagination. */
.conversation-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 155px 155px auto;
  gap: 14px;
  align-items: start;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.conversation-filters > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.conversation-filters input {
  padding: 9px 11px;
  height: 39px;
  font-size: 12px;
  min-width: 0;
}
.filter-hint {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
}
.filter-actions { display: flex; gap: 8px; padding-top: 24px; }
.filter-actions button { padding: 9px 13px; font-size: 11px; white-space: nowrap; }
.pagination-footer { gap: 18px; flex-wrap: wrap; }
.page-summary { display: flex; flex-direction: column; gap: 4px; }
#page-range { color: var(--ink); font-size: 11px; }
.pagination-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pagination-controls label { display: flex; gap: 7px; align-items: center; }
.pagination-controls select {
  background: white; color: var(--ink); font: inherit; font-size: 11px;
  border: 1px solid var(--line); border-radius: 6px; padding: 7px;
}
.pagination-controls .secondary { font-size: 11px; padding: 7px 10px; }
#page-label { color: var(--ink); padding: 0 5px; font-size: 11px; }
.reference-cell span { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; font-family: monospace; font-size: 10px; }
.detail-reference { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; margin: 20px 0 0; }
@media(max-width:1100px) {
  .conversation-filters { grid-template-columns: minmax(200px, 1fr) 140px 140px; }
  .filter-actions { grid-column: 1 / -1; padding-top: 0; }
}
@media(max-width:760px) {
  .conversation-filters { padding: 17px; grid-template-columns: 1fr 1fr; gap: 12px; }
  .filter-search { grid-column: 1 / -1; }
  .pagination-controls { gap: 7px; }
  .pagination-controls label { width: 100%; }
  .pagination-footer { align-items: flex-start; }
}
