/* Shared account pages, designed for touch screens first. */
.inner-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.inner-header {
  min-height: 86px;
  margin: 0 auto;
  width: min(100% - 80px, 1244px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.inner-header-actions {
  display: flex;
  align-items: center;
  gap: 27px;
  min-width: 0;
}
.back-home {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.inner-footer {
  width: min(100% - 80px, 1244px);
  margin: auto auto 0;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}
.inner-footer > span:first-child {
  color: var(--ink);
  font-weight: 500;
}
.small-label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.auth-main {
  flex: 1;
  width: 100%;
  padding: 55px 24px 45px;
}
.auth-intro {
  text-align: center;
}
.auth-intro h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  margin: 13px 0 12px;
}
.auth-intro > p:last-child {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}
.auth-card {
  width: 100%;
  max-width: 432px;
  margin: 30px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 28px 30px;
}
.auth-progress {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0 0 28px;
  padding: 0 0 23px;
  border-bottom: 1px solid #e9edf1;
}
.auth-progress li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #8c95a1;
}
.auth-progress li > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: #f0f3f5;
  border-radius: 50%;
  font-size: 11px;
}
.auth-progress .current {
  color: var(--ink);
  font-weight: 500;
}
.auth-progress .current > span {
  background: #dce5e0;
  color: #426050;
}
.auth-progress .complete > span {
  color: #50705c;
  background: #edf2ee;
}
.auth-card h2 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.5px;
}
.form-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 10px 0 25px;
}
.auth-card label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 9px;
}
.auth-card input:not([type="hidden"]) {
  width: 100%;
  height: 51px;
  background: #fcfcfd;
  border: 1px solid #cdd5dd;
  border-radius: 6px;
  color: var(--ink);
  font: 16px var(--sans);
  padding: 12px 14px;
  outline-offset: 3px;
}
.auth-card input::placeholder {
  color: #a4adb8;
}
.auth-card input:focus-visible {
  outline: 2px solid #90a596;
  border-color: #90a596;
}
.auth-card input[aria-invalid="true"] {
  border-color: #b66c62;
}
.auth-card .code-input {
  font-size: 24px;
  text-align: center;
  letter-spacing: 0.38em;
  padding-left: calc(14px + 0.38em);
  font-variant-numeric: tabular-nums;
}
.form-submit {
  width: 100%;
  min-height: 49px;
  justify-content: space-between;
  margin-top: 19px;
  font-size: 14px;
}
.form-footnote {
  margin-top: 19px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}
.email-value {
  display: block;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
  margin-top: 4px;
}
.form-error {
  color: #9f5149;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 11px;
}
.demo-hint {
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.75;
  background: #eff3f0;
  color: #607367;
  margin-top: 18px;
}
.demo-hint strong {
  letter-spacing: 0.08em;
  color: #3f5949;
}
.change-email {
  display: block;
  width: fit-content;
  margin: 15px auto -5px;
  padding: 10px;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #bcc5ce;
}
.auth-reassurance {
  max-width: 365px;
  margin: 20px auto 0;
  color: #89929e;
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}
.user-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.user-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #dce5e0;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
  color: #496352;
}
.user-email {
  font-size: 12px;
  max-width: 225px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logout-form button {
  border: 0;
  background: none;
  min-height: 44px;
  padding: 8px 0 8px 10px;
  font-size: 12px;
}
.logout-form button:hover {
  color: #567361;
}
.account-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 43px;
  width: min(100% - 80px, 1244px);
  margin: 35px auto 50px;
  flex: 1;
}
.account-sidebar {
  padding-right: 24px;
  border-right: 1px solid var(--line);
}
.account-sidebar > .small-label {
  margin: 7px 12px 20px;
}
.account-nav-current {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding: 11px 12px;
  border-radius: 7px;
  background: #e0e7e3;
  font-size: 13px;
  font-weight: 500;
}
.account-nav-current > span {
  margin-left: auto;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  background: #ffffff80;
  color: #617768;
}
.account-content {
  min-width: 0;
}
.account-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 25px;
  margin: 4px 0 30px;
}
.account-heading h1 {
  font-size: 30px;
  letter-spacing: -0.9px;
  line-height: 1.3;
}
.account-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 9px;
}
.create-bot-button {
  min-height: 44px;
  font-size: 12px;
  gap: 7px;
  background: #e4e8eb;
  color: #8a939e;
  white-space: nowrap;
  padding: 10px 17px;
}
.create-bot-button > span {
  font-size: 19px;
  line-height: 1;
}
.bots-panel {
  border: 1px solid #d7dfe6;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.bots-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 21px 24px;
}
.bots-panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
}
.bots-panel-heading h2 > span {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef1f4;
  color: #7e8996;
}
.soon-label {
  font-size: 10px;
  color: #7d8995;
}
.bots-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.bot-name-col {
  width: 44%;
}
.bot-status-col {
  width: 26%;
}
.bot-balance-col {
  width: 30%;
}
.bots-table th {
  background: #f6f8f9;
  text-align: left;
  padding: 14px 24px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  border-top: 1px solid #e8ecf0;
  border-bottom: 1px solid #e8ecf0;
  vertical-align: top;
}
.bots-table th:last-child {
  text-align: right;
}
.column-note {
  display: block;
  color: #8b95a1;
  font-size: 10px;
  font-weight: 400;
}
.empty-cell {
  padding: 0;
}
.empty-state {
  padding: 59px 24px 65px;
  text-align: center;
}
.empty-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #edf2ef;
  color: #839b8b;
  margin: 0 auto 20px;
}
.empty-state h3 {
  font-size: 17px;
  font-weight: 500;
}
.empty-state p {
  max-width: 355px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 11px auto 17px;
}
.empty-note {
  font-size: 10px;
  color: #829188;
  border: 1px solid #e4ebe6;
  border-radius: 5px;
  display: inline-block;
  padding: 7px 11px;
}
.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;
}
.error-card h1 {
  font-size: 26px;
  letter-spacing: -0.7px;
}
@media (max-width: 950px) {
  .inner-header,
  .inner-footer,
  .account-layout {
    width: calc(100% - 48px);
  }
  .account-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 25px;
  }
  .account-sidebar {
    padding-right: 17px;
  }
  .account-heading {
    flex-wrap: wrap;
    gap: 17px;
  }
  .bots-table th {
    padding: 13px 15px;
  }
  .inner-header-actions {
    gap: 20px;
  }
}
@media (max-width: 700px) {
  .inner-header {
    min-height: 73px;
  }
  .inner-header .wordmark {
    font-size: 24px;
  }
  .inner-header-actions {
    gap: 17px;
  }
  .user-email {
    display: none;
  }
  .user-avatar {
    height: 29px;
    width: 29px;
  }
  .account-layout {
    display: block;
    margin-top: 18px;
  }
  .account-sidebar {
    padding: 0 0 21px;
    border: 0;
  }
  .account-sidebar > .small-label {
    display: none;
  }
  .account-nav-current {
    width: fit-content;
    min-width: 160px;
    font-size: 12px;
  }
  .account-heading {
    margin: 9px 0 22px;
  }
  .account-heading h1 {
    font-size: 28px;
  }
  .account-heading p {
    max-width: 300px;
  }
  .auth-main {
    padding-top: 38px;
  }
  .auth-intro h1 {
    font-size: 30px;
  }
  .auth-intro > p:last-child {
    font-size: 12px;
  }
}
@media (max-width: 420px) {
  .inner-header,
  .inner-footer,
  .account-layout {
    width: calc(100% - 32px);
  }
  .inner-header-actions {
    gap: 12px;
  }
  .inner-header .wordmark {
    font-size: 23px;
  }
  .back-home {
    font-size: 10px;
    gap: 6px;
  }
  .inner-footer {
    font-size: 9px;
    padding: 20px 0;
  }
  .auth-main {
    padding: 30px 16px;
  }
  .auth-intro h1 {
    font-size: 27px;
  }
  .auth-card {
    padding: 23px 21px;
    margin-top: 24px;
  }
  .auth-progress {
    gap: 25px;
    margin-bottom: 23px;
    padding-bottom: 20px;
  }
  .auth-card h2 {
    font-size: 20px;
  }
  .auth-progress li {
    font-size: 10px;
  }
  .form-description {
    font-size: 11px;
  }
  .auth-reassurance {
    font-size: 10px;
    padding: 0 8px;
  }
  .logout-form button {
    font-size: 11px;
  }
  .account-heading {
    display: block;
  }
  .create-bot-button {
    margin-top: 18px;
    width: 100%;
    min-height: 46px;
    font-size: 13px;
  }
  .bots-panel-heading {
    padding: 18px 14px;
  }
  .bots-panel-heading h2 {
    font-size: 13px;
  }
  .soon-label {
    font-size: 9px;
  }
  .bot-name-col {
    width: 37%;
  }
  .bot-status-col {
    width: 29%;
  }
  .bot-balance-col {
    width: 34%;
  }
  .bots-table th {
    font-size: 10px;
    padding: 12px 10px;
  }
  .column-note {
    font-size: 9px;
  }
  .empty-state {
    padding: 43px 16px 47px;
  }
  .empty-state h3 {
    font-size: 16px;
  }
  .empty-state p {
    font-size: 11px;
  }
}

body.auth-modal-open {
  overflow: hidden;
}
.auth-dialog {
  width: min(432px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 44px 0 0;
  border-radius: 14px;
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.auth-dialog .auth-card {
  border: 0;
  border-radius: 0;
  margin: 0;
  padding-top: 8px;
}
.auth-dialog .auth-card h2 {
  margin: 0;
}
.auth-dialog > .auth-loading {
  margin: 0;
  padding: 16px 24px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.auth-dialog > .form-error {
  margin: 0 24px 20px;
}
.auth-dialog > .change-email {
  margin-bottom: 20px;
  border: 0;
  background: none;
}
.auth-dialog [hidden] {
  display: none;
}
.auth-dialog .form-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
