/* Structural layout. Appearance is defined in style.css. */

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button,
.button {
  padding: 11px 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.shell {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  padding: 30px 18px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 242px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 36px;
}
.brandmark {
  width: 30px;
  height: 32px;
  display: grid;
  place-items: center;
}
.navlabel,
.eyebrow {
  text-transform: uppercase;
}
.navlabel {
  padding: 13px;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav button {
  justify-content: flex-start;
  padding: 11px 13px;
}
.nav svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.6;
}
.sidebarfooter {
  margin-top: auto;
  padding: 18px 10px 0;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 9px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.status:before {
  content: "";
  width: 6px;
  height: 6px;
}
.content {
  padding: 38px 40px;
  max-width: 1500px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.heading h1 {
  margin: 10px 0;
}
.heading p,
.sub {
  line-height: 1.65;
  margin: 6px 0;
}
.hero {
  padding: 28px 30px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}
.hero h2 {
  margin: 10px 0;
}
.hero p {
  max-width: 520px;
  line-height: 1.7;
}
.orb {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  transform: rotate(25deg);
  display: grid;
  place-items: center;
}
.orb span {
  transform: rotate(-25deg);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.metric,
.card {
  padding: 22px;
}
.metric label {
  display: block;
  margin-bottom: 20px;
}
.metric small {
  display: block;
  margin-top: 12px;
}
.columns {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
}
.card h2 {
  margin: 0 0 7px;
}
.card p {
  line-height: 1.65;
}
.sectionhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.tag {
  padding: 5px 8px;
  white-space: nowrap;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  line-height: 1.7;
}
.empty strong {
  display: block;
  margin-bottom: 8px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.agentcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}
.agentcard h2 {
  margin: 4px 0;
}
.agentcard p {
  margin: 0;
  flex: 1;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.actions button {
  padding: 9px 12px;
}
.letter {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
}
.list {
  display: grid;
  gap: 10px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px;
}
.row small {
  display: block;
  margin-top: 5px;
}
.listrow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-block: 14px;
  min-width: 0;
}
.listrow + .listrow {
  border-top: 1px solid var(--line);
}
.listrow > div {
  flex: 1 1 220px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.listrow > div > strong,
.listrow > div > small {
  display: block;
}
.listrow > div > small {
  margin-top: 5px;
  line-height: 1.5;
}
.listrow > button {
  flex: 0 0 auto;
  max-width: 100%;
}
[data-inbox-console] .card > button,
[data-social-console] .card > button {
  margin: 4px 8px 4px 0;
}
.notice {
  padding: 16px 20px;
  line-height: 1.8;
  margin-bottom: 22px;
}
.checklist {
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  line-height: 1.6;
}
.checknum {
  padding-top: 2px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.authstory {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 55px 60px;
}
.authstory .brand {
  margin: 0;
}
.authstory h1 {
  line-height: 1.08;
  max-width: 550px;
}
.authstory p {
  line-height: 1.8;
  max-width: 420px;
}
.authbox {
  max-width: 440px;
  width: 100%;
  padding: 40px;
  align-self: center;
  justify-self: center;
}
.authbox .sub {
  margin-bottom: 28px;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
input,
textarea,
select {
  width: 100%;
  padding: 12px 13px;
}
textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}
input[type="checkbox"] {
  width: auto;
}
.full {
  width: 100%;
}
.hint {
  line-height: 1.7;
}
.error {
  line-height: 1.6;
  min-height: 20px;
}
.loading {
  padding: 50px;
  text-align: center;
}
dialog {
  padding: 28px;
  width: min(560px, calc(100vw - 30px));
  max-height: 90vh;
}
dialog h2 {
  margin-top: 0;
}
dialog .close {
  float: right;
  padding: 5px 10px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  padding: 14px 20px;
  display: none;
  max-width: 90vw;
}
.chatlayout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
  min-height: 520px;
}
.threads {
  padding: 15px;
}
.thread {
  width: 100%;
  display: block;
  text-align: left;
  margin-bottom: 8px;
}
.thread small {
  display: block;
  margin-top: 5px;
}
.chatpane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chathead {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.chatmessages {
  padding: 20px;
  flex: 1;
  max-height: 500px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bubble {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
  padding: 14px 18px;
  max-width: 88%;
}
.bubble.user {
  align-self: flex-end;
}
.bubble small {
  display: block;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.composer {
  padding: 16px;
  display: flex;
  gap: 10px;
}
.composer input {
  min-width: 0;
}
.mobilemenu {
  display: none;
}
pre {
  overflow: auto;
  padding: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chart {
  height: 150px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding: 20px 0;
}
.barcol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}
.bar {
  min-height: 2px;
  width: 65%;
}
.separator {
  margin: 24px 0;
}
@media (min-width: 1500px) {
  .content {
    padding: 45px 55px;
  }
}
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content {
    padding: 28px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 28px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    width: 100%;
  }
  .topbar {
    height: 65px;
    padding: 0 20px;
  }
  .mobilemenu {
    display: inline-flex;
    padding: 7px 10px;
  }
  .content {
    padding: 24px 16px;
  }
  .heading {
    align-items: flex-start;
    gap: 12px;
  }
  .heading > .primary {
    padding: 10px 12px;
    flex-shrink: 0;
  }
  .hero {
    padding: 22px;
    gap: 10px;
  }
  .orb {
    width: 65px;
    height: 65px;
  }
  .metric {
    padding: 19px 15px;
  }
  .metrics {
    gap: 10px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 19px;
  }
  .auth {
    display: block;
  }
  .authstory {
    padding: 25px;
  }
  .authstory h1 {
    margin: 35px 0 12px;
  }
  .authstory > small,
  .authstory p {
    display: none;
  }
  .authbox {
    padding: 24px;
    margin: auto;
  }
  .chatlayout {
    grid-template-columns: 1fr;
  }
  .threads {
    max-height: 150px;
    overflow: auto;
  }
  .chatmessages {
    min-height: 260px;
    max-height: 420px;
  }
  .chathead .actions button {
    padding: 7px;
  }
  .row {
    align-items: flex-start;
  }
  .bubble {
    max-width: 95%;
  }
  .composer {
    padding: 12px;
  }
  .composer button {
    padding: 10px;
  }
  dialog {
    padding: 20px;
  }
  .actions {
    gap: 7px;
  }
}
[hidden] {
  display: none !important;
}
.agent-editor {
  width: min(880px, calc(100vw - 30px));
  padding: 30px;
}
.editor-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 24px 0;
}
.editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.agent-preview {
  padding: 20px;
  min-height: 270px;
  margin-bottom: 20px;
}
.preview-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
}
.preview-head small {
  display: block;
  margin-top: 5px;
}
.preview-message {
  padding: 17px;
  margin: 25px 0;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.preview-head > .status {
  margin-left: auto;
}
@media (max-width: 640px) {
  .agent-editor {
    padding: 20px;
  }
  .editor-tabs {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .editor-footer {
    flex-wrap: wrap;
  }
  .editor-tabs button {
    padding: 10px 5px;
  }
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.toolbar input {
  flex: 2;
}
.toolbar select {
  flex: 1;
}
.toolbar button {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input {
    flex-basis: 100%;
  }
  .toolbar select {
    min-width: 0;
  }
  .heading > .actions {
    justify-content: flex-end;
  }
}
.row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.row .actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.voice-lab {
  margin-top: 24px;
}
.voice-lab form {
  margin: 22px 0;
}
.voice-lab audio {
  width: 100%;
  max-width: 500px;
}
@media (max-width: 640px) {
  .row {
    flex-wrap: wrap;
  }
  .row .actions {
    width: 100%;
    justify-content: flex-start;
  }
  button {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
#qr-image {
  display: block;
  width: min(300px, 100%);
  height: auto;
  margin: 20px auto;
}
#qr-image[hidden] {
  display: none;
}
#qr-enable {
  margin: 20px 0;
}
.navclose {
  margin: 0 0 12px auto;
}
@media (max-width: 760px) {
  .sidebar {
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
  .sidebar .navclose {
    display: flex;
  }
}
.sidebar .brand,
.sidebar .sidebarfooter,
.sidebar .navclose {
  flex-shrink: 0;
}
.sidebar .nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
  scrollbar-width: thin;
}

[data-reconciliation-console] {
  min-width: 0;
}
[data-reconciliation-console] .listrow > div {
  min-width: 0;
}
.reconciliation-id {
  overflow-wrap: anywhere;
  word-break: break-word;
}
