:root {
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #2a3547;
  background: #f8fafc;
  font-size: 14px;
  font-synthesis: none;
  --primary: #5d87ff;
  --muted: #697586;
  --line: #edf1f5;
  --shadow: 0 2px 14px #24365b07;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #91b0ff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1.3;
}
h2 {
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 14px;
}
p {
  color: var(--muted);
  line-height: 1.7;
}
small {
  font-size: 12px;
  color: var(--muted);
}
svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 37px;
  background: var(--primary);
  color: white;
  border-radius: 10px 10px 10px 3px;
}
.brand-suffix {
  font-size: 12px;
  color: #8993a4;
  letter-spacing: 0;
  align-self: flex-end;
  margin-bottom: 4px;
}
.sidebar {
  width: 260px;
  position: fixed;
  inset: 0 auto 0 0;
  background: white;
  border-right: 1px solid var(--line);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar .brand {
  margin-bottom: 50px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.1px;
  font-weight: 700;
  margin: 0 14px 15px;
  color: #768195;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: 8px;
  margin: 5px 0;
  color: #505c70;
  font-size: 13px;
  transition: background 0.15s;
}
.nav-item:hover {
  background: #f0f5ff;
}
.nav-item.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 10px #5d87ff26;
}
.nav-count {
  margin-left: auto;
  background: #ffffff33;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 11px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 32px;
}
.pilot-note {
  padding: 13px 10px;
  background: #ecf2ff;
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 9px;
}
.pilot-note strong {
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #e0eaff;
  color: #5274d4;
  font-weight: 700;
  border-radius: 50%;
}
.avatar.small {
  width: 35px;
  height: 35px;
  font-size: 14px;
}
.avatar.big {
  width: 76px;
  height: 76px;
  font-size: 29px;
}
.logout {
  font-size: 12px !important;
  color: var(--muted) !important;
  margin-top: 15px;
  width: 100%;
  justify-content: flex-start !important;
  background: white !important;
}
.workspace {
  margin-left: 260px;
}
.topbar {
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  background: white;
  border-bottom: 1px solid #f1f4f8;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.breadcrumb {
  font-size: 12px;
  color: #7d8796;
}
.breadcrumb span {
  padding: 0 13px;
  color: #b7bec8;
}
.breadcrumb strong {
  font-weight: 500;
  color: #49576c;
}
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 550;
  white-space: nowrap;
}
.blue {
  background: #ecf2ff;
  color: #527de7;
}
.cyan {
  background: #e8f7ff;
  color: #39a9df;
}
.lilac {
  background: #f2edff;
  color: #9467d6;
}
.green {
  background: #e6f7f2;
  color: #18886b;
}
.amber {
  background: #fff4e5;
  color: #ae7325;
}
.red {
  background: #fceceb;
  color: #bd554e;
}
.neutral {
  background: #f0f3f7;
  color: #738096;
}
.white {
  background: #ffffffb3;
  color: #5779d5;
  font-size: 10px;
  letter-spacing: 0.7px;
}
main {
  max-width: 1540px;
  margin: 0 auto;
  padding: 30px 38px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.eyebrow {
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #8091ad;
  margin-bottom: 9px;
}
.page-heading p:not(.eyebrow) {
  font-size: 13px;
  margin-top: 6px;
}
.button {
  border: 0;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  white-space: nowrap;
}
.button svg {
  width: 17px;
  height: 17px;
}
.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 3px 5px #5d87ff16;
}
.primary:hover {
  background: #4976f3;
}
.secondary {
  background: white;
  border: 1px solid #e0e6ee;
  color: #58667c;
}
.secondary:hover {
  background: #f0f5ff;
}
.button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #f4f7fb;
  border: 0;
  border-radius: 8px;
  color: #5b6880;
}
.menu {
  display: none;
}
.sync-line {
  font-size: 10px;
  min-height: 35px;
  padding-top: 12px;
  color: #939dae;
}
.view {
  display: grid;
  gap: 24px;
}
.card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid #edf1f566;
  min-width: 0;
}
.welcome {
  background: #eaf1ff;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 27px 35px;
  overflow: hidden;
  min-height: 230px;
  position: relative;
}
.welcome h2 {
  font-size: 25px;
  margin: 11px 0 5px;
  color: #35466c;
  letter-spacing: -0.8px;
}
.welcome p {
  font-size: 12px;
  color: #6b7b99;
}
.welcome .button {
  margin-top: 20px;
}
.agent-orbit {
  width: 35%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  font-size: 11px;
  color: #7487b0;
}
.orbit {
  height: 150px;
  width: 150px;
  border: 1px solid #d3e1ff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.orbit:before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px dashed #cfddfd;
  border-radius: 50%;
}
.orbit .avatar {
  background: #5d87ff;
  color: white;
  width: 80px;
  height: 80px;
  box-shadow: 0 8px 18px #5d87ff33;
  font-size: 32px;
  z-index: 1;
}
.orbit-dot {
  position: absolute;
  top: 15px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: #91cffa;
  border: 3px solid #eaf1ff;
  border-radius: 50%;
}
.orbit-wave {
  position: absolute;
  bottom: 8px;
  right: 0;
  background: white;
  color: #5d87ff;
  padding: 9px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
  box-shadow: 0 5px 15px #38538a0c;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.metric {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 23px;
  min-height: 157px;
  justify-content: center;
}
.metric > span:not(.metric-icon) {
  font-size: 12px;
  color: #6f7a8c;
  padding-right: 44px;
}
.metric > strong {
  font-size: 27px;
  letter-spacing: -0.9px;
  margin: 12px 0 8px;
  font-weight: 650;
}
.metric small {
  font-size: 10px;
  line-height: 1.6;
}
.metric-icon {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.metric > .metric-icon {
  position: absolute;
  right: 21px;
  top: 20px;
}
.metric-icon.compact {
  height: 35px;
  width: 35px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.card-heading p {
  font-size: 11px;
  margin-top: 4px;
}
.card-heading h2 {
  font-size: 16px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5d87ff;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}
.text-link svg {
  width: 15px;
  height: 15px;
}
.number {
  display: block;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin-bottom: 5px;
}
.agent-summary > p {
  font-size: 11px;
  margin-bottom: 18px;
}
.config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.config-row > span:first-child {
  color: var(--muted);
}
.config-row strong {
  font-weight: 550;
  text-align: right;
  overflow-wrap: anywhere;
}
.agent-summary .text-link {
  margin-top: 20px;
}
.chart {
  height: 220px;
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 18px 0 0;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 49px,
    #f1f4f8 50px,
    #f1f4f8 51px
  );
  border-bottom: 1px solid var(--line);
}
.chart-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  position: relative;
}
.chart-bar {
  background: #7297ff;
  width: 30px;
  max-width: 80%;
  border-radius: 5px 5px 0 0;
  min-height: 2px;
  transition: height 0.25s;
}
.chart-column:last-child .chart-bar {
  background: #5d87ff;
}
.chart-value {
  font-size: 11px;
  font-weight: 600;
  color: #7e96c7;
}
.chart-day {
  font-size: 10px;
  color: #8792a3;
  background: white;
  padding: 10px 0;
  width: 100%;
  text-align: center;
}
.table-scroll {
  overflow-x: auto;
  margin: 0 -6px;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 12px;
}
th {
  text-align: left;
  padding: 10px 8px 15px;
  font-size: 10px;
  font-weight: 600;
  color: #7c8798;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 8px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
.call-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.call-cell .metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.call-cell svg {
  width: 15px;
  height: 15px;
}
.cell-primary {
  font-size: 12px;
  font-weight: 550;
}
.cell-secondary {
  font-size: 10px;
  color: #8791a2;
  margin-top: 5px;
}
.detail-button {
  background: #f0f5ff;
  border: 0;
  border-radius: 7px;
  padding: 8px;
  color: #5d87ff;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.detail-button svg {
  width: 14px;
  height: 14px;
}
.empty {
  padding: 35px !important;
  text-align: center;
  color: #919aab;
  font-size: 12px;
}
.filter-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #7a8798;
}
select {
  background: white;
  border: 1px solid #e3e8ef;
  color: #58677d;
  border-radius: 7px;
  padding: 8px;
  font-size: 11px;
}
.agent-profile {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 25px;
}
.agent-profile h2 {
  font-size: 24px;
}
.agent-profile p {
  font-size: 12px;
  margin: 2px 0 8px;
}
.agent-profile .big {
  background: #eef3ff;
}
.tool-card {
  display: flex;
  gap: 15px;
  margin: 24px 0;
}
.tool-card p {
  font-size: 12px;
  margin-top: 5px;
}
.notice {
  padding: 18px 20px;
  background: #eef5ff;
  color: #637ba8;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 9px;
}
.cost-notice {
  background: #fff6e8;
  color: #94723e;
}
.ticket {
  padding: 17px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.ticket:last-child {
  border: 0;
}
.ticket p {
  font-size: 12px;
  margin-top: 5px;
}
.ticket small {
  font-size: 10px;
}
.error-banner {
  margin-top: 18px;
  padding: 14px;
  background: #ffebe8;
  color: #b44d42;
  border-radius: 8px;
}
.error {
  color: #bf5c50;
  font-size: 12px;
  min-height: 20px;
}
footer {
  padding: 32px 0 4px;
  display: flex;
  justify-content: space-between;
  color: #8c97a8;
  font-size: 10px;
}
dialog {
  width: min(750px, calc(100% - 32px));
  max-height: 88vh;
  padding: 0;
  border: 0;
  border-radius: 15px;
  box-shadow: 0 20px 80px #26354b33;
  color: inherit;
}
dialog::backdrop {
  background: #25365566;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.dialog-header .eyebrow {
  margin-bottom: 5px;
}
.dialog-body {
  padding: 26px;
}
.dialog-body h3 {
  margin: 24px 0 13px;
}
.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.detail-metric {
  background: #f5f8fe;
  border-radius: 9px;
  padding: 15px;
}
.detail-metric small {
  display: block;
  font-size: 10px;
}
.detail-metric strong {
  display: block;
  font-size: 15px;
  margin-top: 8px;
}
.message {
  max-width: 88%;
  padding: 12px 15px;
  border-radius: 12px;
  margin: 10px 0;
  background: #f4f6fa;
}
.message.user {
  margin-left: auto;
  background: #edf3ff;
}
.message small {
  display: block;
  font-size: 10px;
  color: #8390a7;
  margin-bottom: 5px;
}
.message p {
  font-size: 12px;
  color: #475671;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  background: #f6f8fc;
  padding: 16px;
  border-radius: 8px;
  max-height: 300px;
  overflow: auto;
}
details {
  margin-top: 22px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: #6885c6;
}
.loading {
  padding: 30px;
  text-align: center;
  color: #8693a7;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: white;
}
.login-art {
  background: #edf3ff;
  padding: 36px 45px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-story {
  margin: auto 0;
  padding: 70px 20px;
}
.login-story h1 {
  font-size: 38px;
  letter-spacing: -1.5px;
  line-height: 1.4;
  color: #35466b;
}
.login-story p {
  margin-top: 20px;
  font-size: 14px;
  color: #7485a3;
}
.login-foot {
  font-size: 11px;
  color: #8395b5;
}
.voice-art {
  height: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 55px;
}
.voice-art span {
  height: 20px;
  width: 9px;
  border-radius: 10px;
  background: #5d87ff4d;
}
.voice-art span:nth-child(3n) {
  height: 60px;
  background: #5d87ff;
}
.voice-art span:nth-child(4n) {
  height: 85px;
  background: #7da7ff;
}
.voice-art span:nth-child(2n) {
  height: 40px;
  background: #9dbaff;
}
.voice-art span:nth-child(7) {
  height: 95px;
  background: #5d87ff;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-form {
  width: 100%;
  max-width: 340px;
}
.login-form h2 {
  font-size: 26px;
  margin: 20px 0 10px;
  letter-spacing: -0.8px;
}
.login-form > p {
  font-size: 12px;
}
.login-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 32px 0 10px;
}
.login-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dce3ed;
  border-radius: 7px;
  background: white;
  color: #334155;
  font-size: 13px;
}
.login-form .button {
  width: 100%;
  margin-top: 20px;
  padding: 13px;
}
.login-form .error {
  margin-top: 14px;
}
.login-form > small {
  font-size: 10px;
}
.scrim {
  display: none;
}
@media (min-width: 1500px) {
  .welcome {
    min-height: 245px;
  }
  .chart {
    height: 230px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 225px;
    padding: 28px 16px;
  }
  .brand {
    font-size: 20px;
  }
  .workspace {
    margin-left: 225px;
  }
  main {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .metrics {
    gap: 16px;
  }
  .two-columns {
    gap: 16px;
    grid-template-columns: 1.3fr 1fr;
  }
  .metric {
    padding: 20px;
  }
  .metric > strong {
    font-size: 24px;
  }
  .metric > .metric-icon {
    width: 32px;
    height: 32px;
    right: 15px;
  }
  .card {
    padding: 22px;
  }
  .number {
    font-size: 21px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    margin-left: 0;
  }
  .menu {
    display: grid;
  }
  .scrim:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: #28395455;
    border: 0;
    z-index: 19;
  }
  .login-art {
    padding: 30px;
  }
  .login-story {
    padding: 45px 0;
  }
  .login-story h1 {
    font-size: 31px;
  }
}
@media (max-width: 620px) {
  main {
    padding: 22px 16px;
  }
  .topbar {
    padding: 0 16px;
    height: 68px;
  }
  .topbar-left {
    gap: 10px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb span {
    padding: 0 6px;
  }
  .topbar-right {
    gap: 8px;
  }
  .topbar-right .tag {
    display: none;
  }
  h1 {
    font-size: 24px;
  }
  .eyebrow {
    font-size: 9px !important;
  }
  .page-heading {
    align-items: center;
  }
  .page-heading p:not(.eyebrow) {
    font-size: 11px;
    max-width: 190px;
  }
  .page-heading .button {
    padding: 9px 10px;
    font-size: 11px;
  }
  .view {
    gap: 16px;
  }
  .welcome {
    min-height: 210px;
    padding: 22px;
  }
  .welcome h2 {
    font-size: 21px;
    max-width: 190px;
  }
  .welcome p {
    font-size: 11px;
  }
  .welcome .tag {
    font-size: 9px;
  }
  .agent-orbit {
    width: 85px;
    align-self: center;
  }
  .orbit {
    width: 85px;
    height: 85px;
  }
  .orbit .avatar {
    width: 55px;
    height: 55px;
    font-size: 23px;
  }
  .orbit-wave {
    padding: 5px;
    bottom: -10px;
    right: -5px;
  }
  .orbit-wave svg {
    width: 17px;
  }
  .agent-orbit > span {
    display: none;
  }
  .metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .metric {
    min-height: 115px;
    padding: 19px 22px;
  }
  .metric > strong {
    font-size: 26px;
    margin: 7px 0;
  }
  .metric > .metric-icon {
    top: 24px;
    right: 23px;
    width: 44px;
    height: 44px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  .card-heading {
    align-items: flex-start;
  }
  .card-heading h2 {
    font-size: 15px;
  }
  .card-heading p {
    font-size: 10px;
  }
  .text-link {
    font-size: 10px;
  }
  .filter-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .number {
    font-size: 25px;
  }
  .chart {
    height: 195px;
  }
  .detail-metrics {
    grid-template-columns: 1fr;
  }
  .dialog-header,
  .dialog-body {
    padding: 20px;
  }
  .dialog-header h2 {
    font-size: 16px;
  }
  .ticket {
    align-items: flex-start;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: 180px;
    padding: 25px;
  }
  .login-story {
    padding: 28px 0 0;
  }
  .login-story h1 {
    font-size: 25px;
    line-height: 1.3;
  }
  .login-story h1 br {
    display: none;
  }
  .login-story .eyebrow,
  .login-story p,
  .voice-art,
  .login-foot {
    display: none;
  }
  .login-form-wrap {
    padding: 36px 25px;
    align-items: start;
  }
  .login-form h2 {
    font-size: 24px;
  }
  footer {
    gap: 15px;
    line-height: 1.7;
    font-size: 9px;
  }
  footer span {
    text-align: right;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Agent management and period analytics. */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f5f8ff;
  padding: 25px;
}
.auth-page .login-form {
  background: white;
  padding: 38px;
  border-radius: 14px;
  max-width: 400px;
  box-shadow: var(--shadow);
}
.auth-page .brand {
  margin-bottom: 36px;
}
.auth-page label {
  margin-top: 0;
}
.auth-page .error:empty {
  display: none;
}
.topbar-left > #page-title {
  font-size: 16px;
  font-weight: 600;
}
.sync-text {
  color: #8994a5;
  font-size: 10px;
}
.sidebar .brand {
  margin-bottom: 40px;
}
.number-info {
  background: #edf3ff;
  border-radius: 10px;
  padding: 15px;
}
.number-info small {
  font-size: 10px;
  display: block;
}
.number-info a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin: 8px 0;
}
.number-info > span {
  font-size: 11px;
  color: #6a7da7;
}
.filters {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filters label {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #6c7b90;
}
.filters input,
.filters select {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  color: #344761;
  border: 1px solid #dce3ed;
  border-radius: 6px;
  background: white;
  font-size: 12px;
}
.filters button {
  height: 35px;
}
.metrics.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.four .metric {
  padding: 20px;
  min-height: 142px;
}
.four .metric > strong {
  font-size: 24px;
}
.four .metric-icon {
  width: 29px;
  height: 29px;
  right: 14px;
  top: 16px;
}
.four .metric-icon svg {
  width: 16px;
}
.small-note {
  font-size: 11px;
  line-height: 1.7;
  color: #7b8799;
}
.chart-scroll {
  overflow-x: auto;
}
.chart {
  gap: 8px;
}
.chart-column {
  min-width: 30px;
}
.chart-day {
  white-space: nowrap;
  font-size: 9px;
}
.chart-value {
  font-size: 10px;
}
.section-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.section-actions h1 {
  font-size: 23px;
  margin-top: 5px;
}
.agent-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.agent-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.agent-card-head {
  display: flex;
  gap: 13px;
  align-items: center;
}
.agent-card-head .avatar {
  width: 45px;
  height: 45px;
  font-size: 19px;
}
.agent-card h2 {
  font-size: 17px;
}
.agent-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.agent-card-stats small {
  font-size: 10px;
  display: block;
}
.agent-card-stats strong {
  display: block;
  font-size: 16px;
  margin-top: 7px;
  font-weight: 600;
}
.agent-card .button {
  width: 100%;
  margin-top: auto;
}
.agent-card .tag {
  align-self: flex-start;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
#agent-form label,
#new-agent-form label {
  font-size: 12px;
  color: #5b6b81;
  display: block;
}
#agent-form input:not([type="radio"]),
#agent-form textarea,
#new-agent-form input,
#new-agent-form select {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #dce3ed;
  border-radius: 7px;
  background: white;
  color: #324560;
  margin-top: 9px;
  line-height: 1.5;
}
#agent-form textarea {
  resize: vertical;
}
.model-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: #8490a2;
  padding-top: 5px;
}
.voice-heading {
  margin-top: 28px;
}
.voice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.voice-option {
  border: 1px solid #e0e6ef;
  border-radius: 9px;
  padding: 13px;
  min-width: 0;
}
.voice-option.selected {
  border-color: #5d87ff;
  background: #f2f6ff;
  box-shadow: 0 0 0 1px #5d87ff;
}
.voice-choice {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: #334c75 !important;
  font-weight: 600;
  cursor: pointer;
}
.voice-choice input {
  accent-color: #5d87ff;
}
.voice-play {
  border: 0;
  background: #eaf1ff;
  color: #507be6;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 10px;
  display: flex;
  gap: 6px;
  margin-top: 12px;
  align-items: center;
}
.voice-play.playing {
  background: #5d87ff;
  color: white;
}
.voice-play:disabled {
  opacity: 0.5;
}
.voice-option small {
  display: block;
  font-size: 9px;
  margin-top: 7px;
}
.instructions-label {
  margin-top: 26px;
}
.form-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.form-actions .small-note {
  max-width: 70%;
}
.table-filters {
  display: flex;
  gap: 13px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 11px;
  color: #7b8799;
  margin-top: 18px;
}
.pagination .button {
  padding: 7px 10px;
  font-size: 11px;
}
.pagination .button:disabled {
  cursor: default;
  opacity: 0.4;
}
.call-table td {
  padding: 15px 8px;
}
.call-table .cell-secondary {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.call-table .detail-button {
  white-space: nowrap;
}
.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  margin-bottom: 22px;
}
.detail-facts .config-row {
  font-size: 11px;
}
.detail-facts strong {
  max-width: 70%;
}
.duration-note {
  display: block;
  color: #9b8a6a;
  font-size: 9px;
  margin-top: 5px;
}
.token-table {
  font-size: 11px;
}
.token-table th {
  white-space: normal;
}
.detail-downloads {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.dialog-body .notice {
  font-size: 11px;
}
.transcript-text {
  white-space: pre-wrap;
}
.view.loading-view {
  opacity: 0.5;
  pointer-events: none;
}
#notice {
  margin-bottom: 20px;
}
#new-agent-dialog {
  max-width: 490px;
}
#new-agent-form > label {
  margin-top: 20px;
}
.transcript-time {
  font-size: 10px;
  color: #8a97a9;
}
.detail-metrics {
  margin-bottom: 20px;
}
.empty-state {
  padding: 28px;
  text-align: center;
  color: #8390a3;
}
.error:empty {
  display: none;
}
@media (max-width: 1200px) {
  .metrics.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .voice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .agent-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .voice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .agent-cards {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    gap: 12px;
  }
  .filters label {
    min-width: calc(50% - 12px);
  }
  .filters button {
    width: 100%;
  }
  .sync-text {
    display: none;
  }
  .detail-facts {
    grid-template-columns: 1fr;
  }
  .table-filters {
    flex-wrap: wrap;
  }
  .card-heading:has(.table-filters) {
    flex-direction: column;
  }
  .metrics.four {
    gap: 12px;
  }
  .four .metric {
    min-height: 122px;
    padding: 16px;
  }
  .four .metric > strong {
    font-size: 21px;
    margin-top: 12px;
  }
  .four .metric-icon {
    display: none;
  }
  .four .metric > span:not(.metric-icon) {
    padding-right: 0;
    font-size: 11px;
  }
  .four .metric small {
    font-size: 9px;
  }
  .topbar-right {
    gap: 0;
  }
  .topbar-left > #page-title {
    font-size: 14px;
  }
  .section-actions h1 {
    font-size: 20px;
  }
  .form-actions {
    align-items: flex-end;
  }
  .form-actions .small-note {
    max-width: 55%;
  }
  .card-heading.voice-heading {
    flex-wrap: wrap;
  }
  .pagination {
    gap: 7px;
    font-size: 10px;
  }
  .chart-column {
    min-width: 28px;
  }
  main {
    padding-top: 20px;
  }
}

/* Fixed application frame; only the central workspace scrolls. */
html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
#app {
  height: 100dvh;
  overflow: hidden;
}
.auth-page {
  height: 100dvh;
  overflow: auto;
}
.workspace {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.topbar {
  height: 68px;
  min-height: 68px;
  flex-shrink: 0;
  padding: 0 28px;
  z-index: 10;
}
main {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px 28px 32px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.sidebar {
  height: 100dvh;
  overflow: hidden;
}
.sidebar nav {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sidebar .brand,
.sidebar-bottom {
  flex-shrink: 0;
}
.card {
  padding: 20px;
  margin-bottom: 18px;
}
.filters {
  padding: 14px 18px;
  gap: 12px;
  align-items: end;
}
.filters label {
  flex: 0 1 auto;
  min-width: 150px;
  gap: 5px;
}
.filters .agent-filter-label {
  min-width: 180px;
}
.filters button {
  margin-top: 0;
}
.filters label:has(#date-range) {
  min-width: 240px;
}
.filters > button {
  margin-left: auto;
}
.metrics {
  gap: 14px;
  margin-bottom: 18px;
}
.four .metric {
  min-height: 114px;
  padding: 18px;
}
.four .metric > strong {
  font-size: 27px;
  margin: 8px 0 4px;
}
.four .metric-icon {
  width: 34px;
  height: 34px;
  top: 16px;
  right: 16px;
}
.section-actions {
  margin-bottom: 14px;
}
h1 {
  font-size: 24px;
}
.form-grid {
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 24px;
  align-items: center;
}
.model-info {
  font-size: 12px;
  gap: 5px;
}
.form-actions {
  margin-top: 16px;
}
.field-caption {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.app-select {
  display: block;
  position: relative;
  min-width: 0;
}
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
  color: #2a3547;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.select-trigger > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.select-trigger:hover:not(:disabled) {
  border-color: #a7bcf6;
  background: #fbfcff;
}
.select-trigger[aria-expanded="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #5d87ff14;
}
.select-trigger:disabled {
  opacity: 0.55;
  cursor: default;
}
.select-chevron {
  color: #8190a6;
  font-size: 16px;
  line-height: 1;
}
.select-popup {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  box-shadow: 0 10px 35px #23345324;
  overflow: auto;
  overscroll-behavior: contain;
  color: #2a3547;
  background: white;
}
.select-popup::backdrop {
  background: transparent;
}
.select-option {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
}
.select-option:hover,
.select-option.focused {
  background: #f0f5ff;
}
.select-option[aria-selected="true"] {
  color: #375dcc;
  font-weight: 650;
  background: #edf3ff;
}
.select-option[aria-selected="true"]::after {
  content: "✓";
  margin-left: auto;
}
.select-option[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}
.filter-label .app-select {
  min-width: 140px;
}
#date-dialog {
  width: min(640px, calc(100vw - 28px));
}
#date-dialog .dialog-body {
  padding: 20px;
}
.range-values {
  display: flex;
  align-items: center;
  gap: 10px;
}
.range-values button {
  border: 1px solid #e0e6ee;
  padding: 10px 12px;
  border-radius: 8px;
  background: white;
  flex: 1;
  color: #536174;
  font-size: 12px;
}
.range-values button.active {
  border-color: var(--primary);
  background: #f0f5ff;
  color: #345cc6;
}
.calendar-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0 4px;
}
#calendar-months {
  text-transform: capitalize;
  font-weight: 600;
  font-size: 13px;
}
.calendars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.calendar-month h3 {
  text-align: center;
  margin: 8px 0 14px;
  text-transform: capitalize;
  font-size: 12px;
  color: var(--muted);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.weekday {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 4px;
}
.calendar-day {
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #2a3547;
  background: white;
  font-size: 12px;
}
.calendar-day:hover,
.calendar-day.in-range {
  background: #edf3ff;
  color: #345cc6;
}
.calendar-day[aria-current="date"] {
  box-shadow: inset 0 0 0 1px #b8caff;
}
.calendar-day[aria-pressed="true"] {
  background: var(--primary);
  color: white;
}
#date-dialog .form-actions {
  justify-content: flex-end;
}
.voice-selector {
  margin: 20px 0 0;
}
.voice-current {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
}
.voice-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #5378dc;
  background: #edf3ff;
  flex-shrink: 0;
}
.voice-current > div {
  flex: 1;
  min-width: 0;
}
.voice-current strong {
  font-size: 14px;
}
.voice-current small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.voice-current .button {
  font-size: 12px;
  padding: 8px 12px;
  min-height: 36px;
}
.voice-play {
  white-space: nowrap;
}
#voice-browser {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #fcfdff;
}
.voice-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
}
.voice-toolbar input {
  min-width: 0;
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  font-size: 13px;
}
.voice-toolbar .text-link {
  background: none;
  border: 0;
  font-size: 12px;
  padding: 4px;
}
.voice-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.voice-filters label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}
.voice-results-line {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin: 14px 0 8px;
}
.voice-grid {
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  max-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 2px;
}
.voice-option {
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  background: white;
  min-width: 0;
}
.voice-choice {
  flex: 1;
  min-width: 0;
  gap: 8px;
  align-items: center;
}
.voice-choice strong {
  font-size: 12px;
}
.voice-choice small {
  display: block;
  line-height: 1.4;
  font-size: 10px;
  margin-top: 3px;
}
.voice-choice input {
  flex-shrink: 0;
}
.voice-option .voice-play {
  font-size: 11px;
  padding: 6px 8px;
}
.settings-details {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
}
.settings-details summary,
.voice-help summary {
  cursor: pointer;
  color: #536174;
  font-size: 12px;
  font-weight: 550;
}
.settings-details[open] summary {
  margin-bottom: 14px;
}
.voice-help {
  margin-top: 12px;
}
.voice-help summary {
  font-size: 11px;
  color: var(--muted);
}
.voice-help p {
  margin-top: 8px;
  font-size: 11px;
}
.detail-highlights {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.call-table th:nth-child(5),
.call-table td:nth-child(5),
.call-table th:nth-child(7),
.call-table td:nth-child(7) {
  display: none;
}
.call-table .cell-secondary {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
summary:focus-visible {
  outline: 3px solid #91b0ff;
  outline-offset: 3px;
  border-radius: 4px;
}
@media (min-width: 1500px) {
  main {
    padding-left: 36px;
    padding-right: 36px;
  }
}
@media (max-width: 1100px) {
  .filters label {
    flex: 1;
  }
  .filters > button {
    margin-left: 0;
  }
  .voice-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .workspace {
    margin-left: 0;
  }
  main {
    padding: 18px 20px 28px;
  }
  .topbar {
    padding: 0 20px;
  }
}
@media (max-width: 620px) {
  main {
    padding: 14px 12px 24px;
  }
  .topbar {
    height: 60px;
    min-height: 60px;
    padding: 0 14px;
  }
  .card {
    padding: 15px;
    margin-bottom: 14px;
  }
  .filters {
    gap: 10px;
  }
  .filters label {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }
  .filters .agent-filter-label {
    min-width: 0;
  }
  .filters label:has(#date-range) {
    flex: 1 1 100%;
    min-width: 0;
    order: 2;
  }
  .filters > button {
    order: 3;
    width: 100%;
  }
  .filters label button {
    width: 100%;
  }
  .four .metric {
    min-height: 100px;
    padding: 14px;
  }
  .four .metric > strong {
    font-size: 24px;
  }
  .four .metric > .metric-icon {
    display: none;
  }
  .metrics {
    gap: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .model-info {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 12px;
  }
  .voice-current {
    flex-wrap: wrap;
    gap: 10px;
  }
  .voice-current > div {
    flex-basis: calc(100% - 50px);
  }
  .voice-current .voice-play {
    flex: 1;
  }
  .voice-current .button {
    flex: 1;
  }
  #voice-browser {
    padding: 10px;
  }
  .voice-filters {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .voice-filters label {
    grid-template-columns: 100px 1fr;
    align-items: center;
  }
  .calendars {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .calendar-month:nth-child(2) {
    display: none;
  }
  #date-dialog .dialog-body {
    padding: 16px;
  }
  .range-values {
    gap: 5px;
  }
  .range-values button {
    padding: 10px 6px;
    font-size: 11px;
  }
  .calendar-day {
    max-height: 42px;
    aspect-ratio: 1.2;
  }
  .detail-highlights {
    gap: 10px;
  }
  .table-filters {
    gap: 8px;
    width: 100%;
  }
  .table-filters .filter-label {
    flex: 1;
    min-width: 0;
  }
  .filter-label .app-select {
    min-width: 0;
  }
}

.view {
  gap: 18px;
}
.view > .card,
.view > .metrics,
.metrics > .card,
.view > .section-actions {
  margin-bottom: 0;
}
@media (max-width: 620px) {
  .view {
    gap: 14px;
  }
  .voice-filters label {
    display: grid;
  }
  .detail-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .calendar-month:first-child h3 {
    display: none;
  }
}
.metrics.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.five .metric {
  min-height: 115px;
  padding: 16px;
}
.five .metric > strong {
  font-size: 23px;
  margin: 10px 0 6px;
}
.five .metric > .metric-icon {
  display: none;
}
.five .metric > span:not(.metric-icon) {
  padding-right: 0;
}
.metrics.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metrics.three .metric {
  min-height: 122px;
}
.metrics.three .metric > strong {
  font-size: 24px;
}
.agent-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.connections-scope {
  display: flex;
  align-items: end;
  gap: 20px;
}
.connections-scope label {
  display: grid;
  gap: 6px;
  width: 260px;
  font-size: 12px;
  color: var(--muted);
}
.connections-scope a {
  padding-bottom: 10px;
}
.connection-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.connection-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.connection-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.connection-card h2 {
  font-size: 16px;
}
.connection-card p {
  font-size: 12px;
}
.connection-card .connection-actions {
  margin-top: auto;
}
.connection-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.connection-actions .text-link {
  background: none;
  border: 0;
}
.connection-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 38px;
}
.connection-empty h2 {
  font-size: 17px;
  margin-bottom: 5px;
}
.builtin-connections {
  margin-top: 18px;
}
.builtin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.builtin-row small,
.connection-event small {
  display: block;
  margin-top: 5px;
}
.builtin-row input,
.toggle-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.connection-event {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.connection-event > div {
  flex: 1;
}
#connection-dialog {
  width: min(650px, calc(100vw - 28px));
}
.connection-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.connection-fields label,
#connection-dialog details label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.connection-fields .full-width {
  grid-column: 1/-1;
}
.connection-fields input,
.connection-fields textarea,
#connection-dialog details textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  color: #2a3547;
  font: inherit;
  resize: vertical;
}
#connection-dialog details label {
  margin-top: 14px;
}
#connection-dialog .toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin: 18px 0 12px;
}
#connection-dialog .form-actions {
  justify-content: flex-end;
}
#connection-dialog .small-note {
  font-size: 11px;
}
@media (max-width: 1200px) {
  .metrics.five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .five .metric > strong {
    font-size: 23px;
  }
}
@media (max-width: 620px) {
  .metrics.five,
  .metrics.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metrics.five .metric:last-child {
    grid-column: 1/-1;
  }
  .five .metric {
    min-height: 105px;
    padding: 14px;
  }
  .metrics.three .metric > strong {
    font-size: 21px;
  }
  .connection-cards,
  .connection-fields {
    grid-template-columns: 1fr;
  }
  .connections-scope {
    gap: 12px;
  }
  .connections-scope label {
    width: auto;
    min-width: 0;
    flex: 1;
  }
  .connections-scope a {
    font-size: 11px;
    white-space: nowrap;
  }
}

#view-operations { display: grid; gap: 18px; }
#view-operations[hidden] { display: none; }
#operations-metrics { grid-template-columns: repeat(4, minmax(0,1fr)); }
#operations-metrics .metric { display: grid; gap: 8px; }
#operations-metrics strong { font-size: 17px; }
#view-operations form { display: grid; gap: 14px; max-width: 600px; }
#view-operations label { display: flex; gap: 9px; align-items: center; }
#view-operations input[type=checkbox] { width: auto; }
#view-operations h2 { margin-bottom: 16px; }
@media (max-width: 700px) { #operations-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }

#operations-metrics .metric { min-height: 90px; padding: 18px; align-content: center; }
.numbers-list{display:grid;gap:20px}.number-card .config-row{padding:10px 0}.check-label{display:flex!important;align-items:center;gap:9px;padding:10px 0}.check-label input{width:auto!important;flex:0 0 auto}.settings-details>label,.dialog-body>label{display:flex;flex-direction:column;gap:7px;margin:12px 0}.settings-details>button{margin:8px 8px 8px 0}.knowledge-item{padding:14px;border:1px solid var(--border,#e5eaf2);border-radius:10px;margin:12px 0}.number-card .form-actions{flex-wrap:wrap;justify-content:flex-start}.dialog-body pre{white-space:pre-wrap;max-height:240px;overflow:auto}.connection-fields input[type=checkbox]{width:auto}.settings-details textarea{width:100%;resize:vertical;min-height:64px}#agent-instructions{min-height:220px;font:inherit;line-height:1.6}#view-numbers ol{padding-left:22px;line-height:1.9}
