/**
 * Color Variables (LESS — para uso en mixins/legacy).
 * Las variables modernas viven en :root como CSS vars (ver layout.less).
 */
/**
 * This file is for overriding some default bootstrap styles.
 *
 * > NOTE THAT THIS FILE AFFECTS GLOBAL STYLES.
 */
* {
  box-sizing: border-box;
}
img {
  display: block;
}
.btn,
[type='button'] {
  -webkit-appearance: none;
}
.btn:focus,
.btn.focus,
.btn:focus-visible {
  box-shadow: none;
  outline: 0;
}
button,
[type='button'],
[type='submit'] {
  -webkit-tap-highlight-color: transparent;
}
h1 > a:not(.btn),
h2 > a:not(.btn),
h3 > a:not(.btn),
h4 > a:not(.btn),
h5 > a:not(.btn),
h6 > a:not(.btn),
p > a:not(.btn),
li > a:not(.btn),
blockquote > a:not(.btn),
label > a:not(.btn),
h1 small > a:not(.btn),
h2 small > a:not(.btn),
h3 small > a:not(.btn),
h4 small > a:not(.btn),
h5 small > a:not(.btn),
h6 small > a:not(.btn),
p small > a:not(.btn),
li small > a:not(.btn),
blockquote small > a:not(.btn),
label small > a:not(.btn) {
  color: #2b1a40;
  border-bottom: 1px solid #0a0a0a;
}
h1 > a:not(.btn):hover,
h2 > a:not(.btn):hover,
h3 > a:not(.btn):hover,
h4 > a:not(.btn):hover,
h5 > a:not(.btn):hover,
h6 > a:not(.btn):hover,
p > a:not(.btn):hover,
li > a:not(.btn):hover,
blockquote > a:not(.btn):hover,
label > a:not(.btn):hover,
h1 small > a:not(.btn):hover,
h2 small > a:not(.btn):hover,
h3 small > a:not(.btn):hover,
h4 small > a:not(.btn):hover,
h5 small > a:not(.btn):hover,
h6 small > a:not(.btn):hover,
p small > a:not(.btn):hover,
li small > a:not(.btn):hover,
blockquote small > a:not(.btn):hover,
label small > a:not(.btn):hover {
  text-decoration: none;
  color: #0a0a0a;
}
blockquote {
  border-left: 3px solid #e7e5e4;
  padding-left: 20px;
}
.modal-backdrop {
  background-color: #fff;
}
.modal-backdrop.show {
  opacity: 0.95;
}
.modal {
  -webkit-overflow-scrolling: touch;
}
.modal .petticoat {
  position: fixed;
  width: 100%;
  height: 75px;
  z-index: 50;
  left: 0px;
  top: 0px;
  background-color: #fff;
}
.modal .modal-dialog {
  z-index: 100;
  position: relative;
  max-width: 700px;
}
.modal .modal-content {
  max-width: 700px;
  border-radius: 0px;
  border-color: #fff;
  padding-top: 50px;
  padding-bottom: 50px;
  padding-left: 25px;
  padding-right: 25px;
}
.modal .modal-content .modal-header {
  border-bottom: none;
  display: block;
  position: relative;
  text-align: center;
  padding-bottom: 0px;
  padding-left: 0px;
  padding-right: 0px;
  padding-top: 0px;
}
.modal .modal-content .modal-header .modal-close-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  width: 32px;
  height: 32px;
  padding: 6px;
  position: absolute;
  right: -5px;
  top: -5px;
  background-image: url('/images/icon-close.png');
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
}
.modal .modal-content .modal-header .modal-close-button:focus {
  outline: none;
}
.modal .modal-content .modal-header .modal-close-button:hover {
  opacity: 1;
}
.modal .modal-content .modal-header .modal-title {
  font-weight: 700;
}
.modal .modal-content .modal-header .modal-intro {
  margin-left: auto;
  margin-right: auto;
  color: #57534e;
  margin-bottom: 20px;
}
.modal .modal-content .modal-header hr {
  margin-top: 25px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  width: 100px;
  height: 2px;
  border-top: 2px solid #2b1a40;
}
.modal .modal-content .modal-body {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 0px;
  padding-right: 0px;
}
.modal .modal-content .modal-body .section-heading {
  margin-top: 25px;
  padding-bottom: 10px;
  margin-bottom: 25px;
  border-bottom: 1px solid #e7e5e4;
}
.modal .modal-content .modal-footer {
  padding-top: 25px;
  padding-bottom: 0px;
  padding-left: 0px;
  padding-right: 0px;
  border-top: 1px solid #e7e5e4;
  margin-top: 10px;
}
.modal .modal-content .modal-footer.no-border {
  border-top: 0px;
  padding-top: 10px;
  margin-top: 0px;
}
@media screen and (max-width: 600px) {
  .modal .modal-content .modal-header .modal-close-button {
    right: -20px;
    top: -45px;
  }
}
.iti {
  position: relative;
  display: inline-block;
}
.iti * {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}
.iti__hide {
  display: none;
}
.iti__v-hide {
  visibility: hidden;
}
.iti input,
.iti input[type=text],
.iti input[type=tel] {
  position: relative;
  z-index: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-right: 36px;
  margin-right: 0;
}
.iti__flag-container {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  padding: 1px;
}
.iti__selected-flag {
  z-index: 1;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 6px 0 8px;
}
.iti__arrow {
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #555;
}
.iti__arrow--up {
  border-top: none;
  border-bottom: 4px solid #555;
}
.iti__country-list {
  position: absolute;
  z-index: 2;
  list-style: none;
  text-align: left;
  padding: 0;
  margin: 0 0 0 -1px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
  background-color: white;
  border: 1px solid #CCC;
  white-space: nowrap;
  max-height: 200px;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}
.iti__country-list--dropup {
  bottom: 100%;
  margin-bottom: -1px;
}
@media (max-width: 500px) {
  .iti__country-list {
    white-space: normal;
  }
}
.iti__flag-box {
  display: inline-block;
  width: 20px;
}
.iti__divider {
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid #CCC;
}
.iti__country {
  padding: 5px 10px;
  outline: none;
}
.iti__dial-code {
  color: #999;
}
.iti__country.iti__highlight {
  background-color: rgba(0, 0, 0, 0.05);
}
.iti__flag-box,
.iti__country-name,
.iti__dial-code {
  vertical-align: middle;
}
.iti__flag-box,
.iti__country-name {
  margin-right: 6px;
}
.iti--allow-dropdown input,
.iti--allow-dropdown input[type=text],
.iti--allow-dropdown input[type=tel],
.iti--separate-dial-code input,
.iti--separate-dial-code input[type=text],
.iti--separate-dial-code input[type=tel] {
  padding-right: 6px;
  padding-left: 52px;
  margin-left: 0;
}
.iti--allow-dropdown .iti__flag-container,
.iti--separate-dial-code .iti__flag-container {
  right: auto;
  left: 0;
}
.iti--allow-dropdown .iti__flag-container:hover {
  cursor: pointer;
}
.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
  background-color: rgba(0, 0, 0, 0.05);
}
.iti--allow-dropdown input[disabled] + .iti__flag-container:hover,
.iti--allow-dropdown input[readonly] + .iti__flag-container:hover {
  cursor: default;
}
.iti--allow-dropdown input[disabled] + .iti__flag-container:hover .iti__selected-flag,
.iti--allow-dropdown input[readonly] + .iti__flag-container:hover .iti__selected-flag {
  background-color: transparent;
}
.iti--separate-dial-code .iti__selected-flag {
  background-color: rgba(0, 0, 0, 0.05);
}
.iti--separate-dial-code .iti__selected-dial-code {
  margin-left: 6px;
}
.iti--container {
  position: absolute;
  top: -1000px;
  left: -1000px;
  z-index: 1060;
  padding: 1px;
}
.iti--container:hover {
  cursor: pointer;
}
.iti-mobile .iti--container {
  top: 30px;
  bottom: 30px;
  left: 30px;
  right: 30px;
  position: fixed;
}
.iti-mobile .iti__country-list {
  max-height: 100%;
  width: 100%;
}
.iti-mobile .iti__country {
  padding: 10px 10px;
  line-height: 1.5em;
}
.iti__flag {
  width: 20px;
}
.iti__flag.iti__be {
  width: 18px;
}
.iti__flag.iti__ch {
  width: 15px;
}
.iti__flag.iti__mc {
  width: 19px;
}
.iti__flag.iti__ne {
  width: 18px;
}
.iti__flag.iti__np {
  width: 13px;
}
.iti__flag.iti__va {
  width: 15px;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {
    background-size: 5652px 15px;
  }
}
.iti__flag.iti__ac {
  height: 10px;
  background-position: 0px 0px;
}
.iti__flag.iti__ad {
  height: 14px;
  background-position: -22px 0px;
}
.iti__flag.iti__ae {
  height: 10px;
  background-position: -44px 0px;
}
.iti__flag.iti__af {
  height: 14px;
  background-position: -66px 0px;
}
.iti__flag.iti__ag {
  height: 14px;
  background-position: -88px 0px;
}
.iti__flag.iti__ai {
  height: 10px;
  background-position: -110px 0px;
}
.iti__flag.iti__al {
  height: 15px;
  background-position: -132px 0px;
}
.iti__flag.iti__am {
  height: 10px;
  background-position: -154px 0px;
}
.iti__flag.iti__ao {
  height: 14px;
  background-position: -176px 0px;
}
.iti__flag.iti__aq {
  height: 14px;
  background-position: -198px 0px;
}
.iti__flag.iti__ar {
  height: 13px;
  background-position: -220px 0px;
}
.iti__flag.iti__as {
  height: 10px;
  background-position: -242px 0px;
}
.iti__flag.iti__at {
  height: 14px;
  background-position: -264px 0px;
}
.iti__flag.iti__au {
  height: 10px;
  background-position: -286px 0px;
}
.iti__flag.iti__aw {
  height: 14px;
  background-position: -308px 0px;
}
.iti__flag.iti__ax {
  height: 13px;
  background-position: -330px 0px;
}
.iti__flag.iti__az {
  height: 10px;
  background-position: -352px 0px;
}
.iti__flag.iti__ba {
  height: 10px;
  background-position: -374px 0px;
}
.iti__flag.iti__bb {
  height: 14px;
  background-position: -396px 0px;
}
.iti__flag.iti__bd {
  height: 12px;
  background-position: -418px 0px;
}
.iti__flag.iti__be {
  height: 15px;
  background-position: -440px 0px;
}
.iti__flag.iti__bf {
  height: 14px;
  background-position: -460px 0px;
}
.iti__flag.iti__bg {
  height: 12px;
  background-position: -482px 0px;
}
.iti__flag.iti__bh {
  height: 12px;
  background-position: -504px 0px;
}
.iti__flag.iti__bi {
  height: 12px;
  background-position: -526px 0px;
}
.iti__flag.iti__bj {
  height: 14px;
  background-position: -548px 0px;
}
.iti__flag.iti__bl {
  height: 14px;
  background-position: -570px 0px;
}
.iti__flag.iti__bm {
  height: 10px;
  background-position: -592px 0px;
}
.iti__flag.iti__bn {
  height: 10px;
  background-position: -614px 0px;
}
.iti__flag.iti__bo {
  height: 14px;
  background-position: -636px 0px;
}
.iti__flag.iti__bq {
  height: 14px;
  background-position: -658px 0px;
}
.iti__flag.iti__br {
  height: 14px;
  background-position: -680px 0px;
}
.iti__flag.iti__bs {
  height: 10px;
  background-position: -702px 0px;
}
.iti__flag.iti__bt {
  height: 14px;
  background-position: -724px 0px;
}
.iti__flag.iti__bv {
  height: 15px;
  background-position: -746px 0px;
}
.iti__flag.iti__bw {
  height: 14px;
  background-position: -768px 0px;
}
.iti__flag.iti__by {
  height: 10px;
  background-position: -790px 0px;
}
.iti__flag.iti__bz {
  height: 14px;
  background-position: -812px 0px;
}
.iti__flag.iti__ca {
  height: 10px;
  background-position: -834px 0px;
}
.iti__flag.iti__cc {
  height: 10px;
  background-position: -856px 0px;
}
.iti__flag.iti__cd {
  height: 15px;
  background-position: -878px 0px;
}
.iti__flag.iti__cf {
  height: 14px;
  background-position: -900px 0px;
}
.iti__flag.iti__cg {
  height: 14px;
  background-position: -922px 0px;
}
.iti__flag.iti__ch {
  height: 15px;
  background-position: -944px 0px;
}
.iti__flag.iti__ci {
  height: 14px;
  background-position: -961px 0px;
}
.iti__flag.iti__ck {
  height: 10px;
  background-position: -983px 0px;
}
.iti__flag.iti__cl {
  height: 14px;
  background-position: -1005px 0px;
}
.iti__flag.iti__cm {
  height: 14px;
  background-position: -1027px 0px;
}
.iti__flag.iti__cn {
  height: 14px;
  background-position: -1049px 0px;
}
.iti__flag.iti__co {
  height: 14px;
  background-position: -1071px 0px;
}
.iti__flag.iti__cp {
  height: 14px;
  background-position: -1093px 0px;
}
.iti__flag.iti__cr {
  height: 12px;
  background-position: -1115px 0px;
}
.iti__flag.iti__cu {
  height: 10px;
  background-position: -1137px 0px;
}
.iti__flag.iti__cv {
  height: 12px;
  background-position: -1159px 0px;
}
.iti__flag.iti__cw {
  height: 14px;
  background-position: -1181px 0px;
}
.iti__flag.iti__cx {
  height: 10px;
  background-position: -1203px 0px;
}
.iti__flag.iti__cy {
  height: 14px;
  background-position: -1225px 0px;
}
.iti__flag.iti__cz {
  height: 14px;
  background-position: -1247px 0px;
}
.iti__flag.iti__de {
  height: 12px;
  background-position: -1269px 0px;
}
.iti__flag.iti__dg {
  height: 10px;
  background-position: -1291px 0px;
}
.iti__flag.iti__dj {
  height: 14px;
  background-position: -1313px 0px;
}
.iti__flag.iti__dk {
  height: 15px;
  background-position: -1335px 0px;
}
.iti__flag.iti__dm {
  height: 10px;
  background-position: -1357px 0px;
}
.iti__flag.iti__do {
  height: 14px;
  background-position: -1379px 0px;
}
.iti__flag.iti__dz {
  height: 14px;
  background-position: -1401px 0px;
}
.iti__flag.iti__ea {
  height: 14px;
  background-position: -1423px 0px;
}
.iti__flag.iti__ec {
  height: 14px;
  background-position: -1445px 0px;
}
.iti__flag.iti__ee {
  height: 13px;
  background-position: -1467px 0px;
}
.iti__flag.iti__eg {
  height: 14px;
  background-position: -1489px 0px;
}
.iti__flag.iti__eh {
  height: 10px;
  background-position: -1511px 0px;
}
.iti__flag.iti__er {
  height: 10px;
  background-position: -1533px 0px;
}
.iti__flag.iti__es {
  height: 14px;
  background-position: -1555px 0px;
}
.iti__flag.iti__et {
  height: 10px;
  background-position: -1577px 0px;
}
.iti__flag.iti__eu {
  height: 14px;
  background-position: -1599px 0px;
}
.iti__flag.iti__fi {
  height: 12px;
  background-position: -1621px 0px;
}
.iti__flag.iti__fj {
  height: 10px;
  background-position: -1643px 0px;
}
.iti__flag.iti__fk {
  height: 10px;
  background-position: -1665px 0px;
}
.iti__flag.iti__fm {
  height: 11px;
  background-position: -1687px 0px;
}
.iti__flag.iti__fo {
  height: 15px;
  background-position: -1709px 0px;
}
.iti__flag.iti__fr {
  height: 14px;
  background-position: -1731px 0px;
}
.iti__flag.iti__ga {
  height: 15px;
  background-position: -1753px 0px;
}
.iti__flag.iti__gb {
  height: 10px;
  background-position: -1775px 0px;
}
.iti__flag.iti__gd {
  height: 12px;
  background-position: -1797px 0px;
}
.iti__flag.iti__ge {
  height: 14px;
  background-position: -1819px 0px;
}
.iti__flag.iti__gf {
  height: 14px;
  background-position: -1841px 0px;
}
.iti__flag.iti__gg {
  height: 14px;
  background-position: -1863px 0px;
}
.iti__flag.iti__gh {
  height: 14px;
  background-position: -1885px 0px;
}
.iti__flag.iti__gi {
  height: 10px;
  background-position: -1907px 0px;
}
.iti__flag.iti__gl {
  height: 14px;
  background-position: -1929px 0px;
}
.iti__flag.iti__gm {
  height: 14px;
  background-position: -1951px 0px;
}
.iti__flag.iti__gn {
  height: 14px;
  background-position: -1973px 0px;
}
.iti__flag.iti__gp {
  height: 14px;
  background-position: -1995px 0px;
}
.iti__flag.iti__gq {
  height: 14px;
  background-position: -2017px 0px;
}
.iti__flag.iti__gr {
  height: 14px;
  background-position: -2039px 0px;
}
.iti__flag.iti__gs {
  height: 10px;
  background-position: -2061px 0px;
}
.iti__flag.iti__gt {
  height: 13px;
  background-position: -2083px 0px;
}
.iti__flag.iti__gu {
  height: 11px;
  background-position: -2105px 0px;
}
.iti__flag.iti__gw {
  height: 10px;
  background-position: -2127px 0px;
}
.iti__flag.iti__gy {
  height: 12px;
  background-position: -2149px 0px;
}
.iti__flag.iti__hk {
  height: 14px;
  background-position: -2171px 0px;
}
.iti__flag.iti__hm {
  height: 10px;
  background-position: -2193px 0px;
}
.iti__flag.iti__hn {
  height: 10px;
  background-position: -2215px 0px;
}
.iti__flag.iti__hr {
  height: 10px;
  background-position: -2237px 0px;
}
.iti__flag.iti__ht {
  height: 12px;
  background-position: -2259px 0px;
}
.iti__flag.iti__hu {
  height: 10px;
  background-position: -2281px 0px;
}
.iti__flag.iti__ic {
  height: 14px;
  background-position: -2303px 0px;
}
.iti__flag.iti__id {
  height: 14px;
  background-position: -2325px 0px;
}
.iti__flag.iti__ie {
  height: 10px;
  background-position: -2347px 0px;
}
.iti__flag.iti__il {
  height: 15px;
  background-position: -2369px 0px;
}
.iti__flag.iti__im {
  height: 10px;
  background-position: -2391px 0px;
}
.iti__flag.iti__in {
  height: 14px;
  background-position: -2413px 0px;
}
.iti__flag.iti__io {
  height: 10px;
  background-position: -2435px 0px;
}
.iti__flag.iti__iq {
  height: 14px;
  background-position: -2457px 0px;
}
.iti__flag.iti__ir {
  height: 12px;
  background-position: -2479px 0px;
}
.iti__flag.iti__is {
  height: 15px;
  background-position: -2501px 0px;
}
.iti__flag.iti__it {
  height: 14px;
  background-position: -2523px 0px;
}
.iti__flag.iti__je {
  height: 12px;
  background-position: -2545px 0px;
}
.iti__flag.iti__jm {
  height: 10px;
  background-position: -2567px 0px;
}
.iti__flag.iti__jo {
  height: 10px;
  background-position: -2589px 0px;
}
.iti__flag.iti__jp {
  height: 14px;
  background-position: -2611px 0px;
}
.iti__flag.iti__ke {
  height: 14px;
  background-position: -2633px 0px;
}
.iti__flag.iti__kg {
  height: 12px;
  background-position: -2655px 0px;
}
.iti__flag.iti__kh {
  height: 13px;
  background-position: -2677px 0px;
}
.iti__flag.iti__ki {
  height: 10px;
  background-position: -2699px 0px;
}
.iti__flag.iti__km {
  height: 12px;
  background-position: -2721px 0px;
}
.iti__flag.iti__kn {
  height: 14px;
  background-position: -2743px 0px;
}
.iti__flag.iti__kp {
  height: 10px;
  background-position: -2765px 0px;
}
.iti__flag.iti__kr {
  height: 14px;
  background-position: -2787px 0px;
}
.iti__flag.iti__kw {
  height: 10px;
  background-position: -2809px 0px;
}
.iti__flag.iti__ky {
  height: 10px;
  background-position: -2831px 0px;
}
.iti__flag.iti__kz {
  height: 10px;
  background-position: -2853px 0px;
}
.iti__flag.iti__la {
  height: 14px;
  background-position: -2875px 0px;
}
.iti__flag.iti__lb {
  height: 14px;
  background-position: -2897px 0px;
}
.iti__flag.iti__lc {
  height: 10px;
  background-position: -2919px 0px;
}
.iti__flag.iti__li {
  height: 12px;
  background-position: -2941px 0px;
}
.iti__flag.iti__lk {
  height: 10px;
  background-position: -2963px 0px;
}
.iti__flag.iti__lr {
  height: 11px;
  background-position: -2985px 0px;
}
.iti__flag.iti__ls {
  height: 14px;
  background-position: -3007px 0px;
}
.iti__flag.iti__lt {
  height: 12px;
  background-position: -3029px 0px;
}
.iti__flag.iti__lu {
  height: 12px;
  background-position: -3051px 0px;
}
.iti__flag.iti__lv {
  height: 10px;
  background-position: -3073px 0px;
}
.iti__flag.iti__ly {
  height: 10px;
  background-position: -3095px 0px;
}
.iti__flag.iti__ma {
  height: 14px;
  background-position: -3117px 0px;
}
.iti__flag.iti__mc {
  height: 15px;
  background-position: -3139px 0px;
}
.iti__flag.iti__md {
  height: 10px;
  background-position: -3160px 0px;
}
.iti__flag.iti__me {
  height: 10px;
  background-position: -3182px 0px;
}
.iti__flag.iti__mf {
  height: 14px;
  background-position: -3204px 0px;
}
.iti__flag.iti__mg {
  height: 14px;
  background-position: -3226px 0px;
}
.iti__flag.iti__mh {
  height: 11px;
  background-position: -3248px 0px;
}
.iti__flag.iti__mk {
  height: 10px;
  background-position: -3270px 0px;
}
.iti__flag.iti__ml {
  height: 14px;
  background-position: -3292px 0px;
}
.iti__flag.iti__mm {
  height: 14px;
  background-position: -3314px 0px;
}
.iti__flag.iti__mn {
  height: 10px;
  background-position: -3336px 0px;
}
.iti__flag.iti__mo {
  height: 14px;
  background-position: -3358px 0px;
}
.iti__flag.iti__mp {
  height: 10px;
  background-position: -3380px 0px;
}
.iti__flag.iti__mq {
  height: 14px;
  background-position: -3402px 0px;
}
.iti__flag.iti__mr {
  height: 14px;
  background-position: -3424px 0px;
}
.iti__flag.iti__ms {
  height: 10px;
  background-position: -3446px 0px;
}
.iti__flag.iti__mt {
  height: 14px;
  background-position: -3468px 0px;
}
.iti__flag.iti__mu {
  height: 14px;
  background-position: -3490px 0px;
}
.iti__flag.iti__mv {
  height: 14px;
  background-position: -3512px 0px;
}
.iti__flag.iti__mw {
  height: 14px;
  background-position: -3534px 0px;
}
.iti__flag.iti__mx {
  height: 12px;
  background-position: -3556px 0px;
}
.iti__flag.iti__my {
  height: 10px;
  background-position: -3578px 0px;
}
.iti__flag.iti__mz {
  height: 14px;
  background-position: -3600px 0px;
}
.iti__flag.iti__na {
  height: 14px;
  background-position: -3622px 0px;
}
.iti__flag.iti__nc {
  height: 10px;
  background-position: -3644px 0px;
}
.iti__flag.iti__ne {
  height: 15px;
  background-position: -3666px 0px;
}
.iti__flag.iti__nf {
  height: 10px;
  background-position: -3686px 0px;
}
.iti__flag.iti__ng {
  height: 10px;
  background-position: -3708px 0px;
}
.iti__flag.iti__ni {
  height: 12px;
  background-position: -3730px 0px;
}
.iti__flag.iti__nl {
  height: 14px;
  background-position: -3752px 0px;
}
.iti__flag.iti__no {
  height: 15px;
  background-position: -3774px 0px;
}
.iti__flag.iti__np {
  height: 15px;
  background-position: -3796px 0px;
}
.iti__flag.iti__nr {
  height: 10px;
  background-position: -3811px 0px;
}
.iti__flag.iti__nu {
  height: 10px;
  background-position: -3833px 0px;
}
.iti__flag.iti__nz {
  height: 10px;
  background-position: -3855px 0px;
}
.iti__flag.iti__om {
  height: 10px;
  background-position: -3877px 0px;
}
.iti__flag.iti__pa {
  height: 14px;
  background-position: -3899px 0px;
}
.iti__flag.iti__pe {
  height: 14px;
  background-position: -3921px 0px;
}
.iti__flag.iti__pf {
  height: 14px;
  background-position: -3943px 0px;
}
.iti__flag.iti__pg {
  height: 15px;
  background-position: -3965px 0px;
}
.iti__flag.iti__ph {
  height: 10px;
  background-position: -3987px 0px;
}
.iti__flag.iti__pk {
  height: 14px;
  background-position: -4009px 0px;
}
.iti__flag.iti__pl {
  height: 13px;
  background-position: -4031px 0px;
}
.iti__flag.iti__pm {
  height: 14px;
  background-position: -4053px 0px;
}
.iti__flag.iti__pn {
  height: 10px;
  background-position: -4075px 0px;
}
.iti__flag.iti__pr {
  height: 14px;
  background-position: -4097px 0px;
}
.iti__flag.iti__ps {
  height: 10px;
  background-position: -4119px 0px;
}
.iti__flag.iti__pt {
  height: 14px;
  background-position: -4141px 0px;
}
.iti__flag.iti__pw {
  height: 13px;
  background-position: -4163px 0px;
}
.iti__flag.iti__py {
  height: 11px;
  background-position: -4185px 0px;
}
.iti__flag.iti__qa {
  height: 8px;
  background-position: -4207px 0px;
}
.iti__flag.iti__re {
  height: 14px;
  background-position: -4229px 0px;
}
.iti__flag.iti__ro {
  height: 14px;
  background-position: -4251px 0px;
}
.iti__flag.iti__rs {
  height: 14px;
  background-position: -4273px 0px;
}
.iti__flag.iti__ru {
  height: 14px;
  background-position: -4295px 0px;
}
.iti__flag.iti__rw {
  height: 14px;
  background-position: -4317px 0px;
}
.iti__flag.iti__sa {
  height: 14px;
  background-position: -4339px 0px;
}
.iti__flag.iti__sb {
  height: 10px;
  background-position: -4361px 0px;
}
.iti__flag.iti__sc {
  height: 10px;
  background-position: -4383px 0px;
}
.iti__flag.iti__sd {
  height: 10px;
  background-position: -4405px 0px;
}
.iti__flag.iti__se {
  height: 13px;
  background-position: -4427px 0px;
}
.iti__flag.iti__sg {
  height: 14px;
  background-position: -4449px 0px;
}
.iti__flag.iti__sh {
  height: 10px;
  background-position: -4471px 0px;
}
.iti__flag.iti__si {
  height: 10px;
  background-position: -4493px 0px;
}
.iti__flag.iti__sj {
  height: 15px;
  background-position: -4515px 0px;
}
.iti__flag.iti__sk {
  height: 14px;
  background-position: -4537px 0px;
}
.iti__flag.iti__sl {
  height: 14px;
  background-position: -4559px 0px;
}
.iti__flag.iti__sm {
  height: 15px;
  background-position: -4581px 0px;
}
.iti__flag.iti__sn {
  height: 14px;
  background-position: -4603px 0px;
}
.iti__flag.iti__so {
  height: 14px;
  background-position: -4625px 0px;
}
.iti__flag.iti__sr {
  height: 14px;
  background-position: -4647px 0px;
}
.iti__flag.iti__ss {
  height: 10px;
  background-position: -4669px 0px;
}
.iti__flag.iti__st {
  height: 10px;
  background-position: -4691px 0px;
}
.iti__flag.iti__sv {
  height: 12px;
  background-position: -4713px 0px;
}
.iti__flag.iti__sx {
  height: 14px;
  background-position: -4735px 0px;
}
.iti__flag.iti__sy {
  height: 14px;
  background-position: -4757px 0px;
}
.iti__flag.iti__sz {
  height: 14px;
  background-position: -4779px 0px;
}
.iti__flag.iti__ta {
  height: 10px;
  background-position: -4801px 0px;
}
.iti__flag.iti__tc {
  height: 10px;
  background-position: -4823px 0px;
}
.iti__flag.iti__td {
  height: 14px;
  background-position: -4845px 0px;
}
.iti__flag.iti__tf {
  height: 14px;
  background-position: -4867px 0px;
}
.iti__flag.iti__tg {
  height: 13px;
  background-position: -4889px 0px;
}
.iti__flag.iti__th {
  height: 14px;
  background-position: -4911px 0px;
}
.iti__flag.iti__tj {
  height: 10px;
  background-position: -4933px 0px;
}
.iti__flag.iti__tk {
  height: 10px;
  background-position: -4955px 0px;
}
.iti__flag.iti__tl {
  height: 10px;
  background-position: -4977px 0px;
}
.iti__flag.iti__tm {
  height: 14px;
  background-position: -4999px 0px;
}
.iti__flag.iti__tn {
  height: 14px;
  background-position: -5021px 0px;
}
.iti__flag.iti__to {
  height: 10px;
  background-position: -5043px 0px;
}
.iti__flag.iti__tr {
  height: 14px;
  background-position: -5065px 0px;
}
.iti__flag.iti__tt {
  height: 12px;
  background-position: -5087px 0px;
}
.iti__flag.iti__tv {
  height: 10px;
  background-position: -5109px 0px;
}
.iti__flag.iti__tw {
  height: 14px;
  background-position: -5131px 0px;
}
.iti__flag.iti__tz {
  height: 14px;
  background-position: -5153px 0px;
}
.iti__flag.iti__ua {
  height: 14px;
  background-position: -5175px 0px;
}
.iti__flag.iti__ug {
  height: 14px;
  background-position: -5197px 0px;
}
.iti__flag.iti__um {
  height: 11px;
  background-position: -5219px 0px;
}
.iti__flag.iti__un {
  height: 14px;
  background-position: -5241px 0px;
}
.iti__flag.iti__us {
  height: 11px;
  background-position: -5263px 0px;
}
.iti__flag.iti__uy {
  height: 14px;
  background-position: -5285px 0px;
}
.iti__flag.iti__uz {
  height: 10px;
  background-position: -5307px 0px;
}
.iti__flag.iti__va {
  height: 15px;
  background-position: -5329px 0px;
}
.iti__flag.iti__vc {
  height: 14px;
  background-position: -5346px 0px;
}
.iti__flag.iti__ve {
  height: 14px;
  background-position: -5368px 0px;
}
.iti__flag.iti__vg {
  height: 10px;
  background-position: -5390px 0px;
}
.iti__flag.iti__vi {
  height: 14px;
  background-position: -5412px 0px;
}
.iti__flag.iti__vn {
  height: 14px;
  background-position: -5434px 0px;
}
.iti__flag.iti__vu {
  height: 12px;
  background-position: -5456px 0px;
}
.iti__flag.iti__wf {
  height: 14px;
  background-position: -5478px 0px;
}
.iti__flag.iti__ws {
  height: 10px;
  background-position: -5500px 0px;
}
.iti__flag.iti__xk {
  height: 15px;
  background-position: -5522px 0px;
}
.iti__flag.iti__ye {
  height: 14px;
  background-position: -5544px 0px;
}
.iti__flag.iti__yt {
  height: 14px;
  background-position: -5566px 0px;
}
.iti__flag.iti__za {
  height: 14px;
  background-position: -5588px 0px;
}
.iti__flag.iti__zm {
  height: 14px;
  background-position: -5610px 0px;
}
.iti__flag.iti__zw {
  height: 10px;
  background-position: -5632px 0px;
}
.iti__flag {
  height: 15px;
  box-shadow: 0px 0px 1px 0px #888;
  background-image: url("../img/flags.png");
  background-repeat: no-repeat;
  background-color: #DBDBDB;
  background-position: 20px 0;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {
    background-image: url("../img/flags@2x.png");
  }
}
.iti__flag.iti__np {
  background-color: transparent;
}
[v-cloak] {
  display: none;
}
*,
*::after,
*::before {
  border: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --brand-pink: #e0356c;
  --brand-pink-soft: #fde0eb;
  --brand-purple: #7d52bd;
  --brand-purple-soft: #ece1f8;
  --brand-cyan: #29b6e5;
  --brand-cyan-soft: #dbf2fb;
  --brand-gradient: linear-gradient(90deg, #e0356c 0%, #7d52bd 55%, #29b6e5 100%);
  --brand-gradient-soft: linear-gradient(90deg, #fde0eb 0%, #ece1f8 55%, #dbf2fb 100%);
  --primary-color: #5b2f8b;
  --primary-700: #3d1e5e;
  --primary-500: #5b2f8b;
  --primary-300: #8059b5;
  --secondary-color: #111827;
  --tertiary-color: #373737;
  --bg: #faf7fc;
  --surface: #ffffff;
  --surface-2: #f4f0f9;
  --surface-sunken: #ebe5f2;
  --border: #e7e1ec;
  --border-strong: #d4ccdd;
  --border-subtle: #f0ebf5;
  --text: #0a0a0a;
  --text-muted: #57534e;
  --text-subtle: #a8a29e;
  --accent: var(--brand-pink);
  --accent-fg: #ffffff;
  --accent-soft: var(--brand-pink-soft);
  --success: #16a34a;
  --success-soft: #dcfce7;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --info: var(--brand-cyan);
  --info-soft: var(--brand-cyan-soft);
  --ring: rgba(125, 82, 189, 0.35);
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 14px;
  --shadow-1: 0 1px 2px rgba(15, 13, 20, 0.04);
  --shadow-2: 0 1px 3px rgba(15, 13, 20, 0.06), 0 1px 2px rgba(15, 13, 20, 0.04);
  --shadow-pop: 0 4px 14px rgba(15, 13, 20, 0.08), 0 2px 4px rgba(15, 13, 20, 0.04);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --d-fast: 120ms;
  --d-base: 180ms;
  --d-slow: 280ms;
  --font-sans: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}
html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  line-height: 1.5;
  min-height: 100%;
  margin: 0;
  text-rendering: optimizeLegibility;
}
::selection {
  background: var(--brand-pink);
  color: #fff;
}
main {
  padding: .75rem 1rem;
  padding-left: 5rem;
}
main.top-submenu {
  padding-top: 3rem;
}
main.no-padding {
  padding: 1rem;
}
a {
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: color var(--d-fast) var(--ease);
}
a:hover {
  color: var(--primary-700) !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.2;
}
h1 {
  font-size: 1.875rem;
  font-weight: 600;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1.0625rem;
}
p {
  margin: 0;
}
code,
pre,
.mono {
  font-family: var(--font-mono);
  font-feature-settings: 'ss01';
}
[data-numeric],
.tabular-nums {
  font-feature-settings: 'tnum' on;
  font-variant-numeric: tabular-nums;
}
hr {
  background: var(--border);
  border: 0;
  height: 1px;
  margin: 1rem 0;
}
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  transition: background-color var(--d-fast) var(--ease);
}
details[open] {
  background: var(--surface-2);
}
details summary {
  color: var(--text);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 500;
  list-style: none;
  user-select: none;
}
details summary::-webkit-details-marker {
  display: none;
}
details summary::before {
  color: var(--text-muted);
  content: '▸';
  display: inline-block;
  font-size: .8em;
  margin-right: .5rem;
  transition: transform var(--d-fast) var(--ease);
}
details[open] > summary::before {
  transform: rotate(90deg);
}
[data-title]:after {
  background-color: #fff;
  border-radius: 0.3rem;
  box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.2);
  content: attr(data-title);
  color: #000;
  font-family: Roboto, "Helvetica Neue", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  left: 50%;
  max-width: 200px;
  opacity: 0;
  overflow: hidden;
  padding: 0.6rem;
  pointer-events: none;
  position: absolute;
  top: calc(100.3%);
  transform: translateX(-50%);
  transition: 0.3s ease all;
  visibility: visible;
  white-space: pre-wrap;
  width: max-content;
  z-index: 99999;
}
[data-title]:hover:after {
  opacity: 1;
  visibility: visible;
}
[data-title] {
  position: relative;
}
[data-center]:after {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}
[data-top]:after {
  top: 0 !important;
  transform: translate(-50%, -100%) !important;
}
[data-left]:after {
  left: -0.3rem !important;
  top: 50% !important;
  transform: translate(-100%, -50%) !important;
}
.file-load {
  background-color: #fff;
  border: dotted .15rem #ccc;
  border-radius: .3rem;
  cursor: pointer;
  font-size: .8rem;
  margin: 0;
  padding: .3rem 1rem;
  position: relative;
  text-align: center;
}
.file-load::before {
  align-items: center;
  border-radius: .3rem;
  content: attr(alt-content);
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}
.file-load::after {
  background-color: limegreen;
  border-radius: .3rem;
  content: '';
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transition: width 0.3s ease;
  width: var(--progress-width, 0);
  z-index: 0;
}
.loader {
  align-items: center;
  display: inline-flex;
  gap: .6rem;
  justify-content: center;
}
.loader::before {
  animation: spin 1s linear infinite;
  border: .1rem solid #ccc;
  border-radius: 50%;
  border-top: 0.1rem solid var(--primary-color);
  content: '';
  display: inline-block;
  height: 1.3rem;
  margin: 0 auto;
  width: 1.3rem;
}
.spin {
  animation: spin 1s linear infinite;
}
.iti__flag {
  background-image: url("path/to/flags.png");
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {
    background-image: url("path/to/flags@2x.png");
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.submenu {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  height: 2.75rem;
  left: 0;
  overflow: hidden;
  padding-left: 3.5rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 8;
}
.submenu ul {
  align-items: center;
  display: -webkit-inline-box;
  height: 100%;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  overflow: hidden;
  overflow-x: auto;
  scrollbar-width: thin;
  width: 100%;
}
.submenu ul li {
  height: 100%;
}
.submenu ul li .link {
  align-items: center;
  background-color: transparent;
  border: 0 !important;
  color: var(--text-muted) !important;
  cursor: pointer;
  display: flex;
  font-size: .82rem;
  font-weight: 500;
  gap: .55rem;
  height: 100%;
  justify-content: center;
  outline: none;
  padding: 0 1rem;
  position: relative;
  transition: color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease);
  white-space: nowrap;
}
.submenu ul li .link:hover {
  background-color: var(--surface-2);
  color: var(--text) !important;
}
.submenu ul li .link.active {
  background-color: transparent;
  color: var(--primary-color) !important;
  pointer-events: none;
}
.submenu ul li .link.active::after {
  background: var(--primary-color);
  border-radius: 2px 2px 0 0;
  bottom: 0;
  content: '';
  height: 2px;
  left: .8rem;
  position: absolute;
  right: .8rem;
}
.submenu ul li .link i {
  align-items: center;
  display: flex;
  font-size: .85em;
  justify-content: center;
  width: 1.1rem;
}
.action-title {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.action-title h1,
.action-title h2,
.action-title h3 {
  margin: 0;
}
.action-title > p {
  color: var(--text-muted);
  font-size: .875rem;
}
.badge {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  display: inline-flex;
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 500;
  gap: .3rem;
  letter-spacing: .02em;
  margin-left: .5rem;
  padding: .15rem .55rem;
  text-transform: uppercase;
  vertical-align: middle;
}
.badge.badge-soft {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: 0;
  text-transform: none;
}
.badge.badge-warn {
  background: var(--warn-soft);
  border-color: rgba(217, 119, 6, 0.25);
  color: #92400e;
}
.badge.badge-success {
  background: var(--success-soft);
  border-color: rgba(22, 163, 74, 0.25);
  color: #14532d;
}
.badge.badge-danger {
  background: var(--danger-soft);
  border-color: rgba(220, 38, 38, 0.25);
  color: #991b1b;
}
.badge.badge-info {
  background: var(--info-soft);
  border-color: rgba(37, 99, 235, 0.25);
  color: #1e3a8a;
}
.badge.badge-accent {
  background: var(--accent-soft);
  border-color: rgba(132, 204, 22, 0.25);
  color: var(--accent-fg);
}
.empty-state {
  align-items: center;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 3rem 1.5rem;
  text-align: center;
}
.empty-state .empty-state-icon {
  align-items: center;
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--primary-color);
  display: flex;
  font-size: 1.15rem;
  height: 2.85rem;
  justify-content: center;
  margin-bottom: .35rem;
  width: 2.85rem;
}
.empty-state h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.empty-state p {
  color: var(--text-muted);
  font-size: .85rem;
  margin: 0;
  max-width: 28rem;
}
.empty-state.is-error .empty-state-icon {
  background: var(--danger-soft);
  color: var(--danger);
}
.empty-state.is-loading .empty-state-icon {
  animation: spin 1s linear infinite;
}
.entity-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .entity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1180px) {
  .entity-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.entity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.entity-card::before {
  background: var(--entity-accent, var(--primary-color));
  content: '';
  height: 3px;
  inset: 0 0 auto 0;
  position: absolute;
}
.entity-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2, 0 6px 18px rgba(0, 0, 0, 0.06));
  transform: translateY(-1px);
}
.entity-card.is-disabled {
  opacity: .65;
}
.entity-card.is-disabled .entity-card-title {
  color: var(--text-muted);
}
.entity-card.is-disabled::before {
  filter: grayscale(1);
}
.entity-card-head {
  align-items: flex-start;
  display: flex;
  gap: .75rem;
  padding: 1rem 1rem 0;
}
.entity-card-icon {
  align-items: center;
  background: var(--entity-accent-soft, var(--surface-2));
  border-radius: var(--r-md);
  color: var(--entity-accent, var(--primary-color));
  display: flex;
  flex-shrink: 0;
  font-size: 1.05rem;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}
.entity-card-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
}
.entity-card-title {
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.entity-card-kicker {
  color: var(--entity-accent, var(--primary-color));
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-top: .1rem;
  text-transform: uppercase;
}
.entity-card-status {
  flex-shrink: 0;
}
.entity-card-desc {
  color: var(--text-muted);
  -webkit-box-orient: vertical;
  display: -webkit-box;
  font-size: .82rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.5;
  margin: .65rem 1rem 0;
  min-height: 2.4em;
  overflow: hidden;
}
.entity-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .75rem 1rem 0;
}
.entity-card-meta .meta-pill {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-muted);
  display: inline-flex;
  font-size: .7rem;
  font-weight: 500;
  gap: .3rem;
  line-height: 1;
  max-width: 100%;
  padding: .25rem .55rem;
}
.entity-card-meta .meta-pill i {
  font-size: .65rem;
  opacity: .85;
}
.entity-card-meta .meta-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.entity-card-actions {
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding: .55rem .65rem;
}
.entity-card.is-database {
  --entity-accent: #3b82f6;
  --entity-accent-soft: #dbeafe;
}
.entity-card.is-document {
  --entity-accent: #f59e0b;
  --entity-accent-soft: #fef3c7;
}
.entity-card.is-api {
  --entity-accent: #10b981;
  --entity-accent-soft: #d1fae5;
}
.entity-card.is-documents {
  --entity-accent: #8b5cf6;
  --entity-accent-soft: #ede9fe;
}
.entity-card.is-literal {
  --entity-accent: #ec4899;
  --entity-accent-soft: #fce7f3;
}
.entity-card.is-action {
  --entity-accent: #f97316;
  --entity-accent-soft: #ffedd5;
}
.entity-card.is-context {
  --entity-accent: #0ea5e9;
  --entity-accent-soft: #e0f2fe;
}
.entity-card.is-library {
  --entity-accent: #7d52bd;
  --entity-accent-soft: #ece1f8;
}
.entity-card.is-capture {
  --entity-accent: #f43f5e;
  --entity-accent-soft: #ffe4e6;
}
.action-preview {
  background: #efeae2;
  border-radius: var(--r-md);
  margin: .75rem 1rem 0;
  padding: .65rem;
}
.action-preview-bubble {
  background: #fff;
  border-radius: .55rem;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  font-size: .8rem;
  gap: .25rem;
  padding: .55rem .65rem .4rem;
  position: relative;
}
.action-preview-bubble::before {
  border-color: transparent #fff transparent transparent;
  border-style: solid;
  border-width: 0 8px 8px 0;
  content: '';
  height: 0;
  left: -6px;
  position: absolute;
  top: 0;
  width: 0;
}
.action-preview-bubble .action-preview-header {
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.action-preview-bubble .action-preview-body {
  color: var(--text);
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.action-preview-bubble .action-preview-footer {
  color: var(--text-muted);
  font-size: .68rem;
  font-style: italic;
  line-height: 1.3;
}
.action-preview-bubble .action-preview-empty {
  color: var(--text-subtle);
  font-size: .72rem;
  font-style: italic;
  text-align: center;
  padding: .35rem 0;
}
.action-preview-cta {
  align-items: center;
  background: var(--surface-2);
  border-top: 1px solid var(--border-subtle);
  border-radius: 0 0 .55rem .55rem;
  color: var(--primary-color);
  display: flex;
  font-size: .78rem;
  font-weight: 600;
  gap: .35rem;
  justify-content: center;
  margin: 0.35rem -0.65rem -0.4rem;
  padding: .45rem;
}
.action-preview-cta i {
  font-size: .7rem;
}
.action-preview-items {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin-top: .35rem;
}
.action-preview-items .action-preview-item {
  background: var(--surface-2);
  border-radius: .3rem;
  color: var(--text-muted);
  font-size: .7rem;
  padding: .25rem .4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.action-preview-items .action-preview-item strong {
  color: var(--text);
  margin-right: .3rem;
}
.action-preview-items .action-preview-item-more {
  color: var(--text-subtle);
  font-size: .68rem;
  font-style: italic;
  padding: .15rem .4rem;
}
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.section-card::before {
  background: var(--brand-gradient);
  content: '';
  height: 3px;
  inset: 0 0 auto 0;
  position: absolute;
}
.section-card-header {
  border-bottom: 1px solid var(--border);
  margin: -0.25rem 0 1.25rem;
  padding-bottom: 1rem;
}
.section-card-header h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
.section-card-header p {
  color: var(--text-muted);
  font-size: .82rem;
  margin: .15rem 0 0;
}
.page-header {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: .85rem;
}
.page-header .page-kicker {
  color: var(--text-subtle);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  margin: 0;
  text-transform: uppercase;
}
.page-header .page-title {
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}
.page-header .page-subtitle {
  color: var(--text-muted);
  font-size: .9rem;
  margin: 0;
}
.page-header.page-header-row {
  align-items: flex-start;
  flex-direction: column;
  gap: .85rem;
}
.page-header.page-header-row > div {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
@media screen and (min-width: 640px) {
  .page-header.page-header-row {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
}
.modal-actions {
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
  margin: 1.25rem -1.25rem;
  padding: .85rem 1.25rem;
}
.modal-actions:last-child {
  bottom: -1.25rem;
  margin-bottom: -1.25rem;
  position: sticky;
  z-index: 2;
}
@media screen and (min-width: 768px) {
  .modal-actions {
    margin: 1.5rem -1.5rem;
    padding: .95rem 1.5rem;
  }
  .modal-actions:last-child {
    bottom: -1.5rem;
    margin-bottom: -1.5rem;
  }
}
.form-stepper {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  margin: -1.25rem -1.25rem 1.25rem;
  overflow-x: auto;
  padding: .75rem 1.25rem;
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-width: thin;
}
.form-stepper::-webkit-scrollbar {
  height: 4px;
}
.form-stepper::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 2px;
}
.form-stepper ol {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: .35rem;
  list-style: none;
  margin: 0;
  min-width: max-content;
  padding: 0;
}
.form-stepper li {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  font-size: .78rem;
  font-weight: 500;
  gap: .45rem;
  padding: .25rem .8rem .25rem .3rem;
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
  white-space: nowrap;
}
.form-stepper li:hover:not(.is-active) {
  background: var(--surface);
  color: var(--text);
}
.form-stepper li.is-active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.form-stepper li.is-done:not(.is-active) {
  color: var(--text);
}
.form-stepper-num {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  display: flex;
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 600;
  height: 1.4rem;
  justify-content: center;
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
  width: 1.4rem;
}
.form-stepper li.is-active .form-stepper-num {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.form-stepper li.is-done:not(.is-active) .form-stepper-num {
  background: var(--accent-soft);
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.form-steps-body > .form-section {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
@media (min-width: 768px) {
  .form-stepper {
    margin: -1.5rem -1.5rem 1.5rem;
    padding: .85rem 1.5rem;
  }
}
.option-picker {
  display: grid;
  gap: .65rem;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) {
  .option-picker {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 820px) {
  .option-picker {
    grid-template-columns: repeat(3, 1fr);
  }
}
.option-pick-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex;
  font-family: var(--font-sans);
  gap: .75rem;
  padding: .75rem .85rem;
  position: relative;
  text-align: left;
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease), transform var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease);
  width: 100%;
}
.option-pick-card:hover:not(.is-active):not(:disabled) {
  border-color: var(--primary-color);
  transform: translateY(-1px);
}
.option-pick-card:active:not(:disabled) {
  transform: translateY(0);
}
.option-pick-card.is-active {
  background: var(--accent-soft);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--ring);
}
.option-pick-card.is-active .option-pick-icon {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.option-pick-card.is-active .option-pick-info strong {
  color: var(--primary-color);
}
.option-pick-card:disabled {
  cursor: not-allowed;
  opacity: .5;
}
.option-pick-card.is-active:disabled {
  cursor: not-allowed;
  opacity: 1;
}
.option-pick-icon {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--primary-color);
  display: flex;
  flex-shrink: 0;
  font-size: 1rem;
  height: 2.4rem;
  justify-content: center;
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
  width: 2.4rem;
}
.option-pick-info {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.option-pick-info strong {
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color var(--d-fast) var(--ease);
}
.option-pick-info small {
  color: var(--text-muted);
  font-size: .72rem;
  line-height: 1.4;
}
.form-section {
  border-top: 1px solid var(--border);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}
.form-section:first-child,
.form-section.is-first {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.form-section > header {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin-bottom: .85rem;
}
.form-section > header h4 {
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
  margin: 0;
}
.form-section > header p {
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.45;
  margin: 0;
}
.form-section > .ajax-form {
  padding: 0;
}
.form-section > .content-table {
  margin-top: .85rem;
}
.navbar {
  display: initial;
  height: 100vh;
  inset: 0;
  padding: 0;
  position: fixed;
  width: 100%;
  z-index: 10;
}
.navbar .background {
  background-color: rgba(0, 0, 0, 0.15);
  inset: 0;
  position: absolute;
  z-index: 1;
}
.navbar nav {
  background-color: var(--primary-color);
  box-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, 0.5);
  height: 100%;
  left: 0;
  max-width: 18rem;
  padding-top: 4rem;
  position: absolute;
  top: 0;
  width: 90%;
  z-index: 2;
}
.navbar nav ul {
  height: 100%;
  list-style: none;
  overflow: hidden;
  overflow-y: auto;
  padding: 1rem .6rem;
}
.navbar nav ul li {
  margin-bottom: .3rem;
}
.navbar nav ul li a {
  align-items: center;
  border-bottom: none !important;
  border-radius: .3rem;
  color: #fff !important;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  padding: .6rem;
  transition: .3s;
  width: calc(16.8rem);
}
.navbar nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}
.navbar nav ul li a.active {
  background-color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}
.navbar nav ul li a i {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 1.6rem;
}
.navbar nav ul li.admin {
  margin-top: 2rem;
  padding: 0 .6rem;
}
.navbar nav ul li.admin hr {
  margin-top: .3rem;
}
.navbar nav ul li.admin span {
  color: #ccc;
  display: block;
  font-size: .8rem;
}
.navbar nav .hidden {
  background-color: #000;
  border-bottom-left-radius: .3rem;
  color: #fff;
  cursor: pointer;
  font-size: .8rem;
  padding: .3rem .6rem;
  position: absolute;
  right: 0;
  top: 0;
}
.navbar.icons {
  width: 4rem;
}
.navbar.icons .background {
  display: none;
}
.navbar.icons nav {
  width: 3.3rem;
}
.navbar.icons nav ul li.admin span {
  opacity: 0;
}
.navbar.icons nav .hidden {
  border-radius: 0 0 .3rem 0;
  left: 100%;
  right: initial;
}
.navbar > aside {
  padding: .5rem;
}
.navbar > aside img {
  position: relative;
  width: 2.5rem;
  z-index: 3;
}
.ajax-form {
  background: transparent;
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  position: relative;
}
.ajax-form article {
  align-content: baseline;
  display: grid;
  gap: .375rem;
}
.ajax-form article aside.input-button {
  display: grid;
  grid-gap: 1rem;
}
.ajax-form article aside div {
  display: grid;
  height: 100%;
  grid-template-columns: repeat(2, 1fr);
}
.ajax-form article aside div .start {
  border-right-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.ajax-form article aside div .end {
  border-left-width: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.ajax-form article label {
  color: var(--text);
  font-size: .8rem;
  font-weight: 500;
  margin: 0;
  padding: 0;
}
.ajax-form article label span {
  color: var(--text-subtle);
  display: block;
  font-size: .72rem;
  font-weight: 400;
  margin-top: .15rem;
}
.ajax-form article textarea,
.ajax-form article input,
.ajax-form article select {
  appearance: none;
  background-color: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: .875rem;
  min-height: 2.4rem;
  outline: none;
  padding: .55rem .75rem;
  text-overflow: ellipsis;
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease);
  width: 100%;
}
.ajax-form article textarea::placeholder,
.ajax-form article input::placeholder,
.ajax-form article select::placeholder {
  color: var(--text-subtle);
}
.ajax-form article textarea:hover:not(:focus):not(:disabled),
.ajax-form article input:hover:not(:focus):not(:disabled),
.ajax-form article select:hover:not(:focus):not(:disabled) {
  border-color: var(--border-strong) !important;
}
.ajax-form article textarea:focus,
.ajax-form article input:focus,
.ajax-form article select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px var(--ring);
}
.ajax-form article textarea:disabled,
.ajax-form article input:disabled,
.ajax-form article select:disabled {
  background-color: var(--surface-2);
  color: var(--text-muted);
  cursor: not-allowed;
}
.ajax-form article textarea option,
.ajax-form article input option,
.ajax-form article select option {
  background-color: var(--surface);
  color: var(--text);
}
.ajax-form article select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%2357534e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E");
  background-position: right .65rem center;
  background-repeat: no-repeat;
  background-size: 12px;
  padding-right: 2rem;
}
.ajax-form article textarea {
  line-height: 1.5;
  min-height: 6rem;
  max-height: 30rem;
  padding: .65rem .75rem;
  resize: vertical;
}
.ajax-form article .hidden {
  display: none;
}
.ajax-form article .checkbox {
  margin: .35rem 0;
}
.ajax-form article input:checked ~ .checkbox {
  background-color: var(--primary-color);
}
.ajax-form article input:checked ~ .checkbox::before {
  background-color: #fff;
  left: calc(1.4rem);
}
.ajax-form article .eye-button {
  align-items: center;
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  font-size: .9rem;
  height: 100%;
  justify-content: center;
  margin-left: .3rem;
  right: 0;
  top: 0;
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
  width: 2.5rem;
}
.ajax-form article .eye-button:hover {
  background-color: var(--surface);
  color: var(--text);
}
.ajax-form p {
  color: var(--text-muted);
  font-size: .82rem;
  margin: 0;
}
.ajax-form .column {
  grid-column: 1 / -1;
}
.checkbox {
  background-color: var(--border);
  border-radius: 999px;
  cursor: pointer;
  display: inline-block;
  height: 1.25rem;
  position: relative;
  transition: background-color var(--d-base) var(--ease);
  width: 2.5rem;
}
.checkbox::before {
  background-color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-1);
  content: '';
  display: block;
  height: .95rem;
  left: .15rem;
  position: absolute;
  top: .15rem;
  transition: left var(--d-base) var(--ease);
  width: .95rem;
}
.checkbox.checked {
  background-color: var(--primary-color);
}
.checkbox.checked::before {
  left: calc(1.4rem);
}
.content-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  max-height: 30rem;
  overflow: auto;
}
.content-table .table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: .85rem;
  margin: 0;
}
.content-table .table .custom-thead {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  position: sticky;
  top: 0;
  z-index: 1;
}
.content-table .table .custom-thead th {
  border: 0;
  border-bottom: 1px solid var(--border);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .65rem .85rem;
  text-transform: uppercase;
  white-space: nowrap;
}
.content-table .table .truncate {
  max-width: 4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content-table .table td {
  border-top: 1px solid var(--border-subtle);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  padding: .65rem .85rem;
  vertical-align: middle;
  white-space: nowrap;
}
.content-table .table td input,
.content-table .table td select {
  background: transparent;
  margin: 0 .1rem;
  outline: none;
  padding: 0 .3rem;
}
.content-table .table td input:focus,
.content-table .table td select:focus {
  border-bottom: 0.1rem solid var(--primary-color);
}
.content-table .table td .buttons-move {
  align-items: center;
  display: flex;
  gap: .3rem;
  flex-direction: column;
  justify-content: center;
  transform: translateY(-0.3rem);
}
.content-table .table td .buttons-move span {
  border: .15rem solid #000;
  border-bottom: none;
  border-left: none;
  cursor: pointer;
  height: .6rem;
  transition: .3s;
  width: .6rem;
}
.content-table .table td .buttons-move span:hover {
  border-color: #555;
}
.content-table .table td .buttons-move span:nth-child(1) {
  transform: rotate(-45deg);
}
.content-table .table td .buttons-move span:nth-child(2) {
  transform: rotate(135deg);
}
.content-table .table td .td-extra {
  color: #555;
  display: block;
  font-size: .85rem;
  white-space: break-spaces;
}
.content-table .table td .dollar::before {
  content: '$';
  display: inline-block;
  margin-right: .3rem;
}
.content-table .table td .input {
  background: transparent;
  border: none;
  border-bottom: 0.05rem solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  outline: none;
  width: 8rem;
}
.content-table .table td .td-loader {
  left: 0;
  position: absolute;
  top: .6rem;
}
.edit {
  align-items: center;
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: .75rem;
  height: 1.75rem;
  justify-content: center;
  margin-left: .3rem;
  padding: 0 .55rem;
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
  width: 1.75rem;
}
.edit:hover {
  background-color: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.tabs {
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  overflow: hidden;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tabs .tab {
  background-color: transparent;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: -1px;
  max-width: 14rem;
  min-width: auto;
  overflow: hidden;
  padding: .6rem 1rem;
  text-align: center;
  text-overflow: ellipsis;
  transition: color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
  white-space: nowrap;
}
.tabs .tab:hover {
  color: var(--text);
}
.tabs .tab.active {
  background-color: transparent;
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
  pointer-events: none;
}
.message-not-found {
  color: var(--text-subtle);
  font-size: .95rem;
  font-weight: 400;
  margin: 2rem 0;
  text-align: center;
}
.cards {
  display: grid;
  grid-gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.cards .card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 1.1rem 1.25rem;
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.cards .card:hover {
  border-color: var(--border-strong);
}
.cards .card .card-p-big {
  color: var(--text);
  font-feature-settings: 'tnum' on;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  text-align: left;
}
.cards .card .card-title {
  color: var(--text-muted);
  display: flex;
  font-size: .78rem;
  font-weight: 500;
  gap: .5rem;
  justify-content: flex-start;
  letter-spacing: .02em;
  margin: 0 0 .35rem;
  text-align: left;
  text-transform: uppercase;
}
.actions-sticky {
  background: linear-gradient(to top, var(--surface) 70%, rgba(255, 255, 255, 0));
  bottom: 1rem;
  justify-self: end;
  padding-top: .85rem;
  position: sticky;
  z-index: 1;
}
.stepper .steps {
  margin-bottom: 2rem;
  overflow: hidden;
  overflow-x: auto;
}
.stepper .steps .steps-content {
  display: inline-flex;
  gap: 3rem;
  padding-bottom: 1.3rem;
  position: relative;
}
.stepper .steps .steps-content .step-id {
  align-items: center;
  background-color: #000;
  border: .2rem solid #fff;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: .9rem;
  font-weight: 600;
  height: 3rem;
  justify-content: center;
  position: relative;
  transition: .3s;
  width: 3rem;
}
.stepper .steps .steps-content .step-id:active {
  transform: scale(0.9);
}
.stepper .steps .steps-content .step-id.active {
  pointer-events: none;
  background-color: #606060;
}
.stepper .steps .steps-content .step-id::after {
  top: 2.8rem;
  color: #fff;
  content: attr(data-step);
  font-size: .6rem;
  font-weight: 100;
  line-height: 1.1;
  position: absolute;
  text-align: center;
  word-break: break-all;
}
.stepper .steps .steps-content::after {
  background-color: #000;
  content: "";
  height: .1rem;
  left: 50%;
  position: absolute;
  top: 1.6rem;
  transform: translateX(-50%);
  width: calc(98%);
  z-index: -1;
}
.stepper .step-body {
  animation: fadeIn 0.5s ease-in-out forwards;
  opacity: 0;
}
.error-text {
  animation: slideDown 0.5s ease-in-out forwards;
  animation-delay: 3s;
  background-color: var(--danger);
  border-radius: var(--r-md);
  bottom: 2rem;
  box-shadow: var(--shadow-pop);
  color: #fff;
  font-size: .85rem !important;
  font-weight: 500;
  left: 50%;
  max-width: 25rem;
  padding: .65rem 1rem;
  position: fixed;
  text-align: center;
  transform: translateX(-50%);
  width: 90%;
  z-index: 11;
}
#alert {
  align-items: flex-start;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--info);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  color: var(--text);
  display: inline-flex;
  font-size: .85rem;
  font-weight: 500;
  gap: .65rem;
  justify-content: space-between;
  line-height: 1.45;
  max-width: 22rem;
  opacity: 0;
  padding: .85rem 1rem;
  pointer-events: none;
  position: fixed;
  right: 1rem;
  top: 1rem;
  visibility: hidden;
  width: 90%;
  z-index: 12;
}
#alert.alert-view {
  opacity: 1;
  transition: opacity 0.15s var(--ease);
  visibility: visible;
}
#alert.alert-animation {
  animation: slideRight 0.5s ease-in-out forwards;
}
#alert.alert-error {
  border-left-color: var(--danger);
  color: var(--text);
}
#alert span {
  white-space: pre-wrap;
}
.point,
.point-active {
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  height: 1rem;
  width: 1rem;
}
.point-active {
  background-color: blue;
}
.playground {
  display: grid;
  grid-gap: 1rem;
  grid-template-areas: "code" "textarea" "message";
  grid-template-columns: 1fr;
}
.code {
  background-color: #0c0a14;
  border: 1px solid #1f1230;
  border-radius: var(--r-md);
  color: #d4d4d8;
  display: block;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.55;
  max-height: 20rem;
  overflow: auto;
  padding: .9rem 1rem;
  white-space: pre-wrap;
  word-break: break-all;
}
.message {
  background: var(--primary-color);
  border-radius: 1.25rem;
  border-bottom-right-radius: .25rem;
  color: #fff;
  font-size: .85rem;
  line-height: 1.5;
  max-height: 20rem;
  overflow: auto;
  padding: 1.1rem 1.25rem;
  position: relative;
  white-space: break-spaces;
  word-break: break-word;
}
.tokens {
  color: var(--text-subtle);
  display: grid;
}
.tokens span {
  line-height: 1.2rem;
}
.tokens .token {
  color: var(--text);
  font-feature-settings: 'tnum' on;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-align: right;
}
.loading {
  align-items: center;
  background-color: rgba(15, 13, 20, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 9999;
}
@keyframes slideRight {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(2rem);
  }
}
@keyframes slideDown {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(2rem);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 0 0.8rem rgba(0, 255, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.3);
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
@media screen and (min-width: 480px) {
  .ajax-form aside {
    flex-direction: row;
  }
}
@media screen and (min-width: 768px) {
  .action-title {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
  .ajax-form .textareas {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
  }
  .ajax-form .adviser-form {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width: 1024px) {
  main {
    padding: 1rem 2rem;
    padding-left: 20rem;
  }
  main.top-submenu {
    padding-top: 3.5rem;
  }
  main.no-padding {
    padding: 1.5rem 2rem;
  }
  .submenu {
    height: 3rem;
    padding-left: 18.5rem;
    padding-right: .5rem;
    top: 0;
  }
  .submenu ul::-webkit-scrollbar {
    height: .4rem;
    width: .4rem;
  }
  .submenu ul::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border: 0;
  }
  .submenu ul::-webkit-scrollbar-track {
    background: #fff;
  }
  .ajax-form article aside.input-button {
    grid-template-columns: 1fr auto;
  }
  .navbar,
  .navbar.icons {
    width: 20rem;
  }
  .navbar .background,
  .navbar.icons .background {
    display: none;
  }
  .navbar nav,
  .navbar.icons nav {
    padding-top: 8rem;
    width: 18rem;
  }
  .navbar nav ul li.admin span,
  .navbar.icons nav ul li.admin span {
    opacity: 1;
  }
  .navbar nav ul::-webkit-scrollbar,
  .navbar.icons nav ul::-webkit-scrollbar {
    height: .8rem;
    width: .8rem;
  }
  .navbar nav ul::-webkit-scrollbar-thumb,
  .navbar.icons nav ul::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border: 0.2rem solid var(--primary-color);
    opacity: 0.8;
  }
  .navbar nav ul::-webkit-scrollbar-track,
  .navbar.icons nav ul::-webkit-scrollbar-track {
    background: var(--primary-color);
  }
  .navbar nav .hidden,
  .navbar.icons nav .hidden {
    display: none;
  }
  .navbar > aside,
  .navbar.icons > aside {
    padding: 1rem;
    width: 18rem;
  }
  .navbar > aside img,
  .navbar.icons > aside img {
    margin: 0 auto;
    width: 14rem;
  }
  .playground {
    grid-gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "textarea textarea" "code message";
  }
  ::-webkit-scrollbar {
    height: .8rem;
    width: .8rem;
  }
  ::-webkit-scrollbar-thumb {
    background: #555;
    border: .2rem solid #fff;
    opacity: 0.8;
  }
  ::-webkit-scrollbar-track {
    background: #fff;
  }
}
@view-transition {
  navigation: auto;
}
/* Dashboard */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.dashboard-header h2 {
  color: var(--secondary-color);
}
.dashboard-header .subtitle {
  color: #666;
  font-size: .9rem;
}
/* Dashboard nav pills theme */
.nav.nav-pills .nav-link {
  color: var(--tertiary-color) !important;
}
.nav.nav-pills .nav-link.active {
  background: var(--primary-color) !important;
  color: #fff !important;
}
.stat-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}
.stat-icon {
  align-items: center;
  background: rgba(43, 26, 64, 0.1);
  border-radius: .5rem;
  color: var(--primary-color);
  display: inline-flex;
  font-size: 1.25rem;
  height: 2.5rem;
  justify-content: center;
  margin-right: .75rem;
  width: 2.5rem;
}
/**
 * <ajax-button>
 *
 * App-wide styles for our ajax buttons.
 */
[parasails-component="ajax-button"] {
  align-items: center;
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: var(--r-md);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  gap: .5rem;
  justify-content: center;
  letter-spacing: -0.005em;
  line-height: 1;
  min-height: 2.4rem;
  padding: 0 1rem;
  transition: background-color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
[parasails-component="ajax-button"]:hover:not(:disabled):not(.syncing) {
  background-color: var(--primary-700);
  border-color: var(--primary-700);
}
[parasails-component="ajax-button"]:active:not(:disabled) {
  transform: translateY(0.5px);
}
[parasails-component="ajax-button"]:focus-visible {
  box-shadow: 0 0 0 3px var(--ring);
  outline: 0;
}
[parasails-component="ajax-button"]:disabled,
[parasails-component="ajax-button"][disabled] {
  cursor: not-allowed;
  opacity: .5;
  pointer-events: none;
}
[parasails-component="ajax-button"].secondary {
  background-color: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
[parasails-component="ajax-button"].secondary:hover:not(:disabled):not(.syncing) {
  background-color: var(--surface-2);
  border-color: var(--text-subtle);
}
[parasails-component="ajax-button"].secondary .button-loader,
[parasails-component="ajax-button"].secondary .button-loading {
  display: inline-block;
  margin: auto;
  display: none;
}
[parasails-component="ajax-button"].secondary .button-loader .loading-dot,
[parasails-component="ajax-button"].secondary .button-loading .loading-dot {
  border-radius: 50%;
  background-color: var(--primary-color);
  float: left;
  opacity: 0;
  width: 16px;
  height: 16px;
  margin: 5px;
  -moz-animation-name: fade-in;
  -webkit-animation-name: fade-in;
  -ms-animation-name: fade-in;
  -o-animation-name: fade-in;
  animation-name: fade-in;
  -moz-animation-duration: 1s;
  -webkit-animation-duration: 1s;
  -ms-animation-duration: 1s;
  -o-animation-duration: 1s;
  animation-duration: 1s;
  -moz-animation-iteration-count: infinite;
  -webkit-animation-iteration-count: infinite;
  -ms-animation-iteration-count: infinite;
  -o-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -moz-animation-direction: linear;
  -webkit-animation-direction: linear;
  -ms-animation-direction: linear;
  -o-animation-direction: linear;
  animation-direction: linear;
}
@-webkit-keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-moz-keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-o-keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
[parasails-component="ajax-button"].secondary .button-loader .loading-dot.dot1,
[parasails-component="ajax-button"].secondary .button-loading .loading-dot.dot1 {
  -moz-animation-delay: 0.25s;
  -webkit-animation-delay: 0.25s;
  -ms-animation-delay: 0.25s;
  -o-animation-delay: 0.25s;
  animation-delay: 0.25s;
}
[parasails-component="ajax-button"].secondary .button-loader .loading-dot.dot2,
[parasails-component="ajax-button"].secondary .button-loading .loading-dot.dot2 {
  -moz-animation-delay: 0.5s;
  -webkit-animation-delay: 0.5s;
  -ms-animation-delay: 0.5s;
  -o-animation-delay: 0.5s;
  animation-delay: 0.5s;
}
[parasails-component="ajax-button"].secondary .button-loader .loading-dot.dot3,
[parasails-component="ajax-button"].secondary .button-loading .loading-dot.dot3 {
  -moz-animation-delay: 0.75s;
  -webkit-animation-delay: 0.75s;
  -ms-animation-delay: 0.75s;
  -o-animation-delay: 0.75s;
  animation-delay: 0.75s;
}
[parasails-component="ajax-button"].secondary .button-loader .loading-dot.dot4,
[parasails-component="ajax-button"].secondary .button-loading .loading-dot.dot4 {
  -moz-animation-delay: 1s;
  -webkit-animation-delay: 1s;
  -ms-animation-delay: 1s;
  -o-animation-delay: 1s;
  animation-delay: 1s;
}
[parasails-component="ajax-button"].secondary .button-loader .loading-dot,
[parasails-component="ajax-button"].secondary .button-loading .loading-dot {
  display: inline;
  height: 6px;
  margin: 0 2px;
  width: 6px;
}
[parasails-component="ajax-button"].tertiary {
  background-color: transparent;
  border-color: transparent;
  color: var(--text-muted);
}
[parasails-component="ajax-button"].tertiary:hover:not(:disabled):not(.syncing) {
  background-color: var(--surface-2);
  color: var(--text);
}
[parasails-component="ajax-button"].tertiary .button-loader,
[parasails-component="ajax-button"].tertiary .button-loading {
  display: inline-block;
  margin: auto;
  display: none;
}
[parasails-component="ajax-button"].tertiary .button-loader .loading-dot,
[parasails-component="ajax-button"].tertiary .button-loading .loading-dot {
  border-radius: 50%;
  background-color: var(--primary-color);
  float: left;
  opacity: 0;
  width: 16px;
  height: 16px;
  margin: 5px;
  -moz-animation-name: fade-in;
  -webkit-animation-name: fade-in;
  -ms-animation-name: fade-in;
  -o-animation-name: fade-in;
  animation-name: fade-in;
  -moz-animation-duration: 1s;
  -webkit-animation-duration: 1s;
  -ms-animation-duration: 1s;
  -o-animation-duration: 1s;
  animation-duration: 1s;
  -moz-animation-iteration-count: infinite;
  -webkit-animation-iteration-count: infinite;
  -ms-animation-iteration-count: infinite;
  -o-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -moz-animation-direction: linear;
  -webkit-animation-direction: linear;
  -ms-animation-direction: linear;
  -o-animation-direction: linear;
  animation-direction: linear;
}
@-webkit-keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-moz-keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-o-keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
[parasails-component="ajax-button"].tertiary .button-loader .loading-dot.dot1,
[parasails-component="ajax-button"].tertiary .button-loading .loading-dot.dot1 {
  -moz-animation-delay: 0.25s;
  -webkit-animation-delay: 0.25s;
  -ms-animation-delay: 0.25s;
  -o-animation-delay: 0.25s;
  animation-delay: 0.25s;
}
[parasails-component="ajax-button"].tertiary .button-loader .loading-dot.dot2,
[parasails-component="ajax-button"].tertiary .button-loading .loading-dot.dot2 {
  -moz-animation-delay: 0.5s;
  -webkit-animation-delay: 0.5s;
  -ms-animation-delay: 0.5s;
  -o-animation-delay: 0.5s;
  animation-delay: 0.5s;
}
[parasails-component="ajax-button"].tertiary .button-loader .loading-dot.dot3,
[parasails-component="ajax-button"].tertiary .button-loading .loading-dot.dot3 {
  -moz-animation-delay: 0.75s;
  -webkit-animation-delay: 0.75s;
  -ms-animation-delay: 0.75s;
  -o-animation-delay: 0.75s;
  animation-delay: 0.75s;
}
[parasails-component="ajax-button"].tertiary .button-loader .loading-dot.dot4,
[parasails-component="ajax-button"].tertiary .button-loading .loading-dot.dot4 {
  -moz-animation-delay: 1s;
  -webkit-animation-delay: 1s;
  -ms-animation-delay: 1s;
  -o-animation-delay: 1s;
  animation-delay: 1s;
}
[parasails-component="ajax-button"].tertiary .button-loader .loading-dot,
[parasails-component="ajax-button"].tertiary .button-loading .loading-dot {
  display: inline;
  height: 6px;
  margin: 0 2px;
  width: 6px;
}
[parasails-component="ajax-button"].danger {
  background-color: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
[parasails-component="ajax-button"].danger:hover:not(:disabled):not(.syncing) {
  background-color: #b91c1c;
  border-color: #b91c1c;
}
[parasails-component="ajax-button"].accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
}
[parasails-component="ajax-button"].accent:hover:not(:disabled):not(.syncing) {
  background-color: #65a30d;
  border-color: #65a30d;
}
[parasails-component="ajax-button"] .button-loader,
[parasails-component="ajax-button"] .button-loading {
  display: inline-block;
  margin: auto;
  display: none;
}
[parasails-component="ajax-button"] .button-loader .loading-dot,
[parasails-component="ajax-button"] .button-loading .loading-dot {
  border-radius: 50%;
  background-color: #fff;
  float: left;
  opacity: 0;
  width: 16px;
  height: 16px;
  margin: 5px;
  -moz-animation-name: fade-in;
  -webkit-animation-name: fade-in;
  -ms-animation-name: fade-in;
  -o-animation-name: fade-in;
  animation-name: fade-in;
  -moz-animation-duration: 1s;
  -webkit-animation-duration: 1s;
  -ms-animation-duration: 1s;
  -o-animation-duration: 1s;
  animation-duration: 1s;
  -moz-animation-iteration-count: infinite;
  -webkit-animation-iteration-count: infinite;
  -ms-animation-iteration-count: infinite;
  -o-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -moz-animation-direction: linear;
  -webkit-animation-direction: linear;
  -ms-animation-direction: linear;
  -o-animation-direction: linear;
  animation-direction: linear;
}
@-webkit-keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-moz-keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-o-keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
[parasails-component="ajax-button"] .button-loader .loading-dot.dot1,
[parasails-component="ajax-button"] .button-loading .loading-dot.dot1 {
  -moz-animation-delay: 0.25s;
  -webkit-animation-delay: 0.25s;
  -ms-animation-delay: 0.25s;
  -o-animation-delay: 0.25s;
  animation-delay: 0.25s;
}
[parasails-component="ajax-button"] .button-loader .loading-dot.dot2,
[parasails-component="ajax-button"] .button-loading .loading-dot.dot2 {
  -moz-animation-delay: 0.5s;
  -webkit-animation-delay: 0.5s;
  -ms-animation-delay: 0.5s;
  -o-animation-delay: 0.5s;
  animation-delay: 0.5s;
}
[parasails-component="ajax-button"] .button-loader .loading-dot.dot3,
[parasails-component="ajax-button"] .button-loading .loading-dot.dot3 {
  -moz-animation-delay: 0.75s;
  -webkit-animation-delay: 0.75s;
  -ms-animation-delay: 0.75s;
  -o-animation-delay: 0.75s;
  animation-delay: 0.75s;
}
[parasails-component="ajax-button"] .button-loader .loading-dot.dot4,
[parasails-component="ajax-button"] .button-loading .loading-dot.dot4 {
  -moz-animation-delay: 1s;
  -webkit-animation-delay: 1s;
  -ms-animation-delay: 1s;
  -o-animation-delay: 1s;
  animation-delay: 1s;
}
[parasails-component="ajax-button"] .button-loader .loading-dot,
[parasails-component="ajax-button"] .button-loading .loading-dot {
  display: inline;
  height: 6px;
  margin: 0 2px;
  width: 6px;
}
[parasails-component="ajax-button"].syncing {
  pointer-events: none;
}
[parasails-component="ajax-button"].syncing .button-loader,
[parasails-component="ajax-button"].syncing .button-loading {
  display: inline-block;
}
[parasails-component="ajax-button"].syncing .button-text {
  display: none;
}
.dynamic-form .df-required {
  color: var(--danger);
  display: inline !important;
  font-size: inherit;
  margin: 0 0 0 .15rem;
}
.dynamic-form .df-help {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary-color);
  border-radius: var(--r-md);
  padding: .65rem .85rem;
}
.dynamic-form .df-help p {
  color: var(--text);
  font-size: .85rem;
  margin: 0;
}
.dynamic-form .df-help small {
  color: var(--text-muted);
  display: block;
  font-size: .75rem;
  margin-top: .25rem;
}
.dynamic-form .df-help .df-help-code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: .72rem;
  line-height: 1.45;
  margin: .5rem 0 0;
  max-height: 18rem;
  overflow: auto;
  padding: .55rem .7rem;
  white-space: pre;
}
.dynamic-form .df-boolean {
  align-items: center;
  display: flex;
  flex-direction: row !important;
  gap: .85rem;
  justify-content: space-between;
}
.dynamic-form .df-boolean > label:first-child {
  flex: 1;
  font-size: .85rem;
}
.dynamic-form .df-oauth [parasails-component="ajax-button"] {
  align-self: flex-start;
  min-width: 12rem;
}
.dynamic-form .df-secret-wrap {
  align-items: stretch;
  display: flex !important;
  grid-template-columns: none !important;
  gap: .35rem;
}
.dynamic-form .df-secret-wrap input {
  flex: 1;
}
.dynamic-form .df-secret-wrap .eye-button {
  align-items: center;
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  font-size: .9rem;
  height: 2.4rem;
  justify-content: center;
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
  width: 2.5rem;
}
.dynamic-form .df-secret-wrap .eye-button:hover:not(:disabled) {
  background-color: var(--surface);
  color: var(--text);
}
.dynamic-form .df-secret-wrap .eye-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}
.dynamic-form .df-empty {
  color: var(--text-muted);
  font-size: .85rem;
  grid-column: -1;
  margin: 0;
  padding: 1rem;
  text-align: center;
}
.custom-modal {
  align-items: center;
  display: grid;
  height: 100vh;
  inset: 0;
  justify-items: center;
  position: fixed;
  width: 100vw;
  z-index: 11;
}
.custom-modal .custom-modal-background {
  background-color: rgba(15, 13, 20, 0.35);
  backdrop-filter: blur(3px);
  inset: 0;
  position: absolute;
  z-index: 0;
}
.custom-modal .custom-modal-container {
  animation: modalIn 0.22s var(--ease) forwards;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 92%;
  z-index: 1;
}
.custom-modal .custom-modal-header {
  align-items: flex-start;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex: 0 0 auto;
  gap: .75rem;
  justify-content: space-between;
  padding: .95rem 1.1rem .95rem 1.25rem;
  position: relative;
}
.custom-modal .custom-modal-header h3 {
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 0;
  padding: 0;
}
.custom-modal .custom-modal-header button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .85rem;
  height: 2rem;
  justify-content: center;
  outline: none;
  padding: 0;
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
  width: 2rem;
}
.custom-modal .custom-modal-header button:hover {
  background-color: var(--surface-2);
  color: var(--text);
}
.custom-modal .custom-modal-header button:active {
  transform: scale(0.95);
}
.custom-modal .custom-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem;
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-width: thin;
}
.custom-modal .custom-modal-body::-webkit-scrollbar {
  width: 6px;
}
.custom-modal .custom-modal-body::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}
.custom-modal .custom-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--text-subtle);
}
.log-description-background {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 13, 20, 0.5);
  align-content: center;
  z-index: 1;
  backdrop-filter: blur(4px);
}
.log-description-background .log-description-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  max-height: 90%;
  overflow: hidden;
  overflow-y: auto;
  padding: 1.25rem;
  width: 92%;
  position: relative;
  margin: auto;
}
.log-description-background .log-description-modal .log-description-header {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  margin-bottom: .85rem;
  padding-bottom: .65rem;
}
.log-description-background .log-description-modal .log-description-header h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.log-description-background .log-description-modal .log-description-content {
  color: var(--text);
  font-size: .875rem;
  line-height: 1.55;
}
.log-description-background .log-description-modal .log-description-content p {
  margin: 0;
  white-space: pre-wrap;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media screen and (min-width: 768px) {
  .custom-modal .custom-modal-container {
    max-width: 36rem;
  }
  .custom-modal .custom-modal-header {
    padding: 1.05rem 1.25rem 1.05rem 1.5rem;
  }
  .custom-modal .custom-modal-header h3 {
    font-size: 1.125rem;
  }
  .custom-modal .custom-modal-body {
    padding: 1.5rem;
  }
}
.pagination {
  align-items: center;
  display: flex;
  font-size: .82rem;
  gap: .35rem;
  justify-content: end;
}
.pagination button {
  align-items: center;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: .82rem;
  height: 2rem;
  justify-content: center;
  min-width: 2rem;
  outline: none;
  padding: 0 .65rem;
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
.pagination button:hover:not(:disabled) {
  background-color: var(--surface-2);
  color: var(--text);
}
.pagination button:disabled {
  cursor: not-allowed;
  opacity: .4;
  pointer-events: none;
}
.pagination select {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: .82rem;
  height: 2rem;
  outline: none;
  padding: 0 1.75rem 0 .65rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%2357534e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E");
  background-position: right .55rem center;
  background-repeat: no-repeat;
  background-size: 12px;
  appearance: none;
}
.pagination select:hover {
  border-color: var(--border-strong);
}
.pagination span.pages {
  color: var(--text-muted);
  font-feature-settings: 'tnum' on;
  font-size: .8rem;
  padding: 0 .35rem;
}
.pw-root {
  font-family: var(--font-sans);
}
.pw-root .pw-fab {
  align-items: center;
  background: var(--primary-color);
  border: 0;
  border-radius: 50%;
  bottom: 1.25rem;
  box-shadow: var(--shadow-pop);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 1.1rem;
  height: 3rem;
  justify-content: center;
  position: fixed;
  right: 1.25rem;
  transition: background-color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
  width: 3rem;
  z-index: 9000;
}
.pw-root .pw-fab:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}
.pw-root .pw-fab:active {
  transform: translateY(0);
}
.pw-root .pw-fab.has-new::after {
  animation: pwPulse 1.5s ease-in-out 2;
  background: var(--accent);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  content: '';
  height: .65rem;
  position: absolute;
  right: .15rem;
  top: .15rem;
  width: .65rem;
}
.pw-root.is-open .pw-fab {
  background: var(--primary-700);
}
.pw-root .pw-panel {
  animation: pwPanelIn 0.15s var(--ease);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  bottom: 5rem;
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
  height: 32rem;
  max-height: calc(93.5vh);
  overflow: hidden;
  position: fixed;
  right: 1.25rem;
  width: 23rem;
  z-index: 9001;
}
.pw-root.is-fullscreen .pw-panel {
  border-radius: 0;
  bottom: 0;
  height: 100vh;
  max-height: 100vh;
  right: 0;
  top: 0;
  width: 100vw;
}
.pw-root .pw-header {
  align-items: center;
  background: var(--primary-color);
  color: #fff;
  cursor: grab;
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  padding: .65rem .85rem;
  user-select: none;
}
.pw-root .pw-header:active {
  cursor: grabbing;
}
.pw-root .pw-drag-handle {
  color: rgba(255, 255, 255, 0.5);
  font-size: .8rem;
  margin-right: .15rem;
}
.pw-root .pw-panel.is-dragging {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  cursor: grabbing;
  transition: none;
}
.pw-root.is-fullscreen .pw-header {
  cursor: default;
}
.pw-root.is-fullscreen .pw-drag-handle {
  display: none;
}
.pw-root .pw-title {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: .9rem;
  font-weight: 600;
  gap: .55rem;
}
.pw-root .pw-title i.fa-flask {
  font-size: .85rem;
}
.pw-root .pw-status {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: inline-block;
  height: .5rem;
  width: .5rem;
}
.pw-root .pw-status.is-on {
  animation: pwPulse 2s infinite;
  background: var(--accent);
}
.pw-root .pw-header-actions {
  display: inline-flex;
  gap: .15rem;
}
.pw-root .pw-icon-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: inline-flex;
  height: 1.85rem;
  justify-content: center;
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
  width: 1.85rem;
}
.pw-root .pw-icon-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.pw-root .pw-icon-btn:disabled {
  cursor: not-allowed;
  opacity: .5;
}
.pw-root .pw-icon-btn i {
  font-size: .8rem;
}
.pw-root .pw-thread {
  background: var(--bg);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: .65rem;
  min-height: 0;
  overflow-y: auto;
  padding: .85rem;
  scrollbar-width: thin;
}
.pw-root .pw-empty {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin: auto;
  padding: 1rem;
  text-align: center;
}
.pw-root .pw-empty .pw-empty-icon {
  align-items: center;
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--primary-color);
  display: flex;
  font-size: 1rem;
  height: 2.4rem;
  justify-content: center;
  margin-bottom: .15rem;
  width: 2.4rem;
}
.pw-root .pw-empty .pw-empty-icon.pw-empty-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.pw-root .pw-empty strong {
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
}
.pw-root .pw-empty p {
  color: var(--text-muted);
  font-size: .8rem;
  line-height: 1.4;
  margin: 0;
}
.pw-root .pw-empty .pw-link {
  color: var(--primary-color) !important;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pw-root .pw-empty .pw-link:hover {
  color: var(--primary-700) !important;
}
.pw-root .pw-row {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  max-width: 85%;
}
.pw-root .pw-row.is-user {
  align-items: flex-end;
  align-self: flex-end;
}
.pw-root .pw-row.is-bot {
  align-items: flex-start;
  align-self: flex-start;
}
.pw-root .pw-bubble {
  border-radius: var(--r-md);
  font-size: .82rem;
  line-height: 1.45;
  padding: .55rem .75rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.pw-root .pw-row.is-user .pw-bubble {
  background: var(--primary-color);
  border-bottom-right-radius: 2px;
  color: #fff;
}
.pw-root .pw-row.is-bot .pw-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 2px;
  color: var(--text);
}
.pw-root .pw-file a {
  color: inherit !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pw-root .pw-time {
  color: var(--text-subtle);
  font-feature-settings: 'tnum' on;
  font-size: .65rem;
}
.pw-root .pw-typing {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  border-bottom-left-radius: 2px;
  display: inline-flex;
  gap: .2rem;
  padding: .55rem .75rem;
}
.pw-root .pw-typing span {
  animation: pwDot 1.2s infinite ease-in-out;
  background: var(--text-subtle);
  border-radius: 50%;
  display: inline-block;
  height: .3rem;
  width: .3rem;
}
.pw-root .pw-typing span:nth-child(2) {
  animation-delay: .2s;
}
.pw-root .pw-typing span:nth-child(3) {
  animation-delay: .4s;
}
.pw-root .pw-file-bubble {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
.pw-root .pw-file-image {
  border-radius: var(--r-md);
  display: block;
  max-height: 14rem;
  max-width: 100%;
  object-fit: cover;
}
.pw-root .pw-file-audio {
  border-radius: var(--r-md);
  height: 2.25rem;
  max-width: 16rem;
}
.pw-root .pw-file-link {
  align-items: center;
  color: inherit !important;
  display: inline-flex;
  gap: .35rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pw-root .pw-pending {
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text);
  display: flex;
  flex-shrink: 0;
  font-size: .78rem;
  gap: .55rem;
  padding: .5rem .75rem;
}
.pw-root .pw-pending img {
  border-radius: var(--r-sm);
  height: 1.85rem;
  object-fit: cover;
  width: 1.85rem;
}
.pw-root .pw-pending > i {
  color: var(--text-muted);
  font-size: .9rem;
}
.pw-root .pw-pending .pw-pending-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pw-root .pw-pending .pw-pending-clear {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  height: 1.4rem;
  justify-content: center;
  width: 1.4rem;
}
.pw-root .pw-pending .pw-pending-clear:hover {
  background: var(--surface-2);
  color: var(--text);
}
.pw-root .pw-recording {
  align-items: center;
  background: var(--danger-soft);
  border-top: 1px solid rgba(220, 38, 38, 0.2);
  color: #991b1b;
  display: flex;
  flex-shrink: 0;
  font-size: .78rem;
  font-weight: 500;
  gap: .55rem;
  padding: .55rem .75rem;
}
.pw-root .pw-recording .pw-recording-dot {
  animation: pwPulseRec 1s infinite;
  background: var(--danger);
  border-radius: 50%;
  display: inline-block;
  height: .55rem;
  width: .55rem;
}
.pw-root .pw-recording .pw-recording-time {
  font-feature-settings: 'tnum' on;
  margin-left: auto;
}
.pw-root .pw-recording .pw-recording-stop {
  align-items: center;
  background: var(--danger);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 1.65rem;
  justify-content: center;
  width: 1.65rem;
}
.pw-root .pw-recording .pw-recording-stop:hover {
  background: #b91c1c;
}
@keyframes pwPulseRec {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: .6;
    transform: scale(0.85);
  }
}
.pw-root .pw-input-actions {
  display: inline-flex;
  flex-shrink: 0;
  gap: .15rem;
}
.pw-root .pw-attach-btn {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  font-size: .8rem;
  height: 2.4rem;
  justify-content: center;
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
  width: 2.4rem;
}
.pw-root .pw-attach-btn:hover:not(:disabled) {
  background: var(--surface);
  color: var(--primary-color);
}
.pw-root .pw-attach-btn:disabled {
  cursor: not-allowed;
  opacity: .4;
}
.pw-root .pw-attach-btn.is-recording {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.pw-root .pw-input {
  align-items: flex-end;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  flex-shrink: 0;
  gap: .5rem;
  padding: .55rem .65rem;
}
.pw-root .pw-input textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  flex: 1;
  font-family: inherit;
  font-size: .82rem;
  line-height: 1.4;
  padding: .45rem .6rem;
  resize: none;
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.pw-root .pw-input textarea::placeholder {
  color: var(--text-subtle);
}
.pw-root .pw-input textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--ring);
  outline: none;
}
.pw-root .pw-input textarea:disabled {
  background: var(--surface-2);
}
.pw-root .pw-input .pw-send {
  align-items: center;
  align-self: flex-end;
  background: var(--primary-color);
  border: 0;
  border-radius: var(--r-md);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  font-size: .85rem;
  height: 2.4rem;
  justify-content: center;
  transition: background-color var(--d-fast) var(--ease);
  width: 2.4rem;
}
.pw-root .pw-input .pw-send:hover:not(:disabled) {
  background: var(--primary-700);
}
.pw-root .pw-input .pw-send:disabled {
  cursor: not-allowed;
  opacity: .45;
}
@keyframes pwPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes pwPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(132, 204, 22, 0.55);
  }
  50% {
    box-shadow: 0 0 0 0.35rem rgba(132, 204, 22, 0);
  }
}
@keyframes pwDot {
  0%,
  60%,
  100% {
    opacity: .35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@media (max-width: 600px) {
  .pw-root .pw-fab {
    bottom: 1rem;
    right: 1rem;
  }
  .pw-root .pw-panel {
    bottom: 4.5rem;
    height: calc(94vh);
    max-height: calc(94vh);
    right: .65rem;
    width: calc(98.7vw);
  }
}
.search {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
  position: sticky;
  top: 60px;
}
.search .content_search {
  display: inline-block;
  position: relative;
  text-align: right;
  width: 100%;
}
.search .content_search input {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
  height: 2.4rem;
  max-width: 25rem;
  outline: none;
  padding: 0 .85rem;
  padding-right: 2.75rem;
  text-overflow: ellipsis;
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
  width: 100%;
}
.search .content_search input::placeholder {
  color: var(--text-subtle);
}
.search .content_search input:hover:not(:focus) {
  border-color: var(--border-strong);
}
.search .content_search input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--ring);
}
.search .content_search button {
  align-items: center;
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 2.4rem;
  justify-content: center;
  outline: none;
  position: absolute;
  top: 0;
  right: 0;
  transition: background-color var(--d-fast) var(--ease);
  width: 2.4rem;
}
.search .content_search button:hover {
  background-color: var(--primary-700);
  border-color: var(--primary-700);
}
.template {
  background-color: #fff;
  display: grid;
  grid-template-columns: 30rem 1fr;
  inset: 0;
  padding: 1rem;
  position: fixed;
  z-index: 10;
}
.template .content {
  height: calc(98vh);
  padding: 1rem 2rem;
}
.template .content .editable-container {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.template .content .editable-container .actions {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
}
.template .content .editable-container .editable-area {
  box-sizing: border-box;
  color: dimgray;
  font-size: 1.6rem;
  height: 100%;
  line-height: 1.5;
  outline: none;
  overflow: hidden;
  overflow-y: auto;
  resize: none;
  white-space: pre-wrap;
}
.template .content .editable-container .editable-area:empty::before {
  content: attr(placeholder);
  color: #ccc;
  font-style: italic;
}
.template .content .editable-container .editable-area .highlighted {
  background-color: #ffff99;
  font-weight: bold;
  padding: 0.2rem;
  border-radius: 3px;
}
.template .content .editable-container .template-help {
  background: #f7f7fa;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #555;
}
.template .content .editable-container .template-help ul {
  margin: 0;
  padding-left: 1.2rem;
}
.template .content .editable-container .template-help ul li {
  margin-bottom: .5rem;
}
.template .content .editable-container .template-help ul code {
  background: #f0f0f0;
  border-radius: 3px;
  padding: 0 .3rem;
  font-family: monospace;
}
.template .content .editable-container .template-textarea {
  width: 100%;
  height: 40vh;
  min-height: 20rem;
  max-height: 60vh;
  resize: vertical;
  font-size: 1.5rem;
  font-family: 'Fira Mono', 'Consolas', monospace;
  color: #333;
  background: #f9f9fc;
  border: 1.5px solid #d0d0e0;
  border-radius: 6px;
  padding: 1.2rem;
  box-sizing: border-box;
  margin-bottom: 1.5rem;
  transition: border 0.2s;
}
.template .content .editable-container .template-textarea:focus {
  border: 1.5px solid #007bff;
  outline: none;
  background: #fff;
}
.template .content #preview-output {
  white-space: pre-wrap;
  /* Permite saltos de línea */
  font-family: Arial, sans-serif;
  font-size: 1rem;
  color: #333;
}
.template .structure {
  border-right: .2rem solid #ccc;
  overflow: hidden;
  overflow-y: auto;
  padding: 1rem;
}
.template .structure ul {
  list-style: none;
}
.template .structure > ul {
  list-style-type: none;
  padding-left: 0;
}
.template .structure > ul li {
  margin-left: .3rem;
  margin-bottom: .6rem;
}
.template .structure > ul li ul {
  margin-bottom: 1rem;
  margin-left: .3rem;
  border-left: .1rem solid #ccc;
  padding: .3rem 0 .3rem .3rem;
  position: relative;
}
.template .structure > ul li ul:before,
.template .structure > ul li ul:after {
  border-top: .1rem solid #ccc;
  content: '';
  display: block;
  left: 0;
  position: absolute;
  width: .3rem;
}
.template .structure > ul li ul:before {
  top: 0;
}
.template .structure > ul li ul:after {
  bottom: 0;
}
.template .structure .property {
  color: #007bff;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
}
.template .structure .value {
  color: var(-tertiary-color);
}
.template .structure .json-viewer {
  background: #222;
  color: #e6e6e6;
  font-family: 'Fira Mono', 'Consolas', monospace;
  font-size: 1.3rem;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  max-height: 70vh;
  margin-top: 1rem;
  white-space: pre;
}
.template .structure .template-consumer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  margin-top: 1rem;
  background: #f7f7fa;
  border: 1px dashed #d0d0e0;
  border-radius: 6px;
}
.template .structure .template-consumer .template-consumer-empty {
  color: #666;
  font-size: 1.3rem;
  margin: 0;
  text-align: center;
}
.template .structure .structure-help {
  background: #f7f7fa;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #444;
}
.template .structure .structure-help h4 {
  margin: 0 0 .5rem 0;
  font-size: 1.4rem;
  color: #007bff;
}
.template .structure .structure-help .example-property {
  background: #e6f7ff;
  color: #007bff;
  padding: 0 .3rem;
  border-radius: 3px;
  font-family: monospace;
}
.template .structure .structure-help .example-loop,
.template .structure .structure-help .example-if {
  background: #fffbe6;
  color: #b8860b;
  padding: 0 .3rem;
  border-radius: 3px;
  font-family: monospace;
}
#account {
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  max-width: 42rem;
}
#account .account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}
#account .account-card::before {
  background: var(--brand-gradient);
  content: '';
  height: 3px;
  inset: 0 0 auto 0;
  position: absolute;
}
#account .account-card-header {
  border-bottom: 1px solid var(--border);
  margin: -0.25rem 0 1.25rem;
  padding-bottom: 1rem;
}
#account .account-card-header h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
#account .account-card-header p {
  color: var(--text-muted);
  font-size: .82rem;
  margin: .15rem 0 0;
}
#account .account-form {
  gap: 1rem;
}
#account .account-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
  margin-top: .35rem;
}
#account .account-actions [parasails-component="ajax-button"] {
  min-width: 8rem;
}
#admin-adapters .adapter-cell {
  align-items: center;
  display: flex;
  gap: .85rem;
}
#admin-adapters .adapter-cell strong {
  color: var(--text);
  display: block;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
#admin-adapters .adapter-cell small {
  color: var(--text-muted);
  display: block;
  font-size: .75rem;
  margin-top: .15rem;
}
#admin-adapters .adapter-icon {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--primary-color);
  display: flex;
  flex-shrink: 0;
  font-size: .95rem;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}
#admin-adapters .adapter-builtin-notice {
  align-items: flex-start;
  background: var(--info-soft);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--r-md);
  color: #1e3a8a;
  display: flex;
  font-size: .85rem;
  gap: .55rem;
  line-height: 1.45;
  margin-bottom: 1rem;
  padding: .65rem .85rem;
}
#admin-adapters .adapter-builtin-notice i {
  font-size: 1rem;
  margin-top: .1rem;
}
#admin-adapters .adapter-builtin-notice code {
  background: rgba(255, 255, 255, 0.55);
}
#admin-adapters .adapter-section-title {
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 1.25rem 0 .25rem;
}
#admin-adapters .adapter-section-desc {
  color: var(--text-muted);
  font-size: .78rem;
  margin: 0 0 .85rem;
}
#admin-adapters .adapter-field-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: .65rem;
  padding: .85rem;
}
#admin-adapters .adapter-field-head {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  margin-bottom: .85rem;
  padding-bottom: .55rem;
}
#admin-adapters .adapter-field-head strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .85rem;
}
#admin-users .admin-users-cards {
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}
#admin-users .admin-user-card {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
#admin-users .admin-user-card hr {
  background: var(--border);
  border: 0;
  height: 1px;
  margin: .15rem 0;
}
#admin-users .admin-user-card-head .card-title {
  margin: 0 0 .15rem;
}
#admin-users .admin-user-name {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 0;
}
#admin-users .admin-user-trade {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: .82rem;
  gap: .35rem;
  margin: .25rem 0 0;
}
#admin-users .admin-user-trade i {
  color: var(--text-subtle);
}
#admin-users .admin-user-meta {
  display: grid;
  gap: .65rem;
  grid-template-columns: 1fr;
  margin: 0;
}
#admin-users .admin-user-meta > div {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
#admin-users .admin-user-meta dt {
  color: var(--text-subtle);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#admin-users .admin-user-meta dd {
  color: var(--text);
  font-size: .9rem;
  margin: 0;
}
#admin-users .admin-user-meta dd i {
  color: var(--text-muted);
  margin-right: .25rem;
}
#admin-users .admin-user-chats {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
#admin-users .admin-user-chats li {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  display: grid;
  gap: .25rem .85rem;
  grid-template-columns: 1fr;
  padding: .65rem .85rem;
}
#admin-users .admin-user-chats .admin-user-chats-label {
  color: var(--text-subtle);
  display: block;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .08em;
  margin-bottom: .15rem;
  text-transform: uppercase;
}
#admin-users .admin-user-empty {
  color: var(--text-subtle);
  font-size: .85rem;
  margin: 0;
  text-align: center;
}
@media screen and (min-width: 640px) {
  #admin-users .admin-user-meta {
    grid-template-columns: repeat(3, 1fr);
  }
  #admin-users .admin-user-chats li {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.auth-page {
  align-items: center;
  background: var(--bg);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  position: relative;
}
.auth-page::before {
  background: radial-gradient(circle at 15% 25%, rgba(43, 26, 64, 0.04), transparent 35%), radial-gradient(circle at 85% 80%, rgba(132, 204, 22, 0.035), transparent 40%);
  content: '';
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 26rem;
  padding: 2rem;
  position: relative;
  width: 100%;
  z-index: 1;
}
.auth-brand {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  text-align: center;
}
.auth-brand img {
  width: 12rem;
  height: 4rem;
  max-width: 100%;
  object-fit: contain;
}
.auth-brand .auth-kicker {
  color: var(--text-subtle);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  margin: .85rem 0 0;
  text-transform: uppercase;
}
.auth-brand h1 {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: .15rem 0 0;
}
.auth-brand p {
  color: var(--text-muted);
  font-size: .85rem;
  margin: 0;
}
.auth-form {
  display: grid;
  gap: .85rem;
  margin: 0;
}
.auth-form .auth-form-actions {
  display: grid;
  margin-top: .35rem;
}
.auth-form .auth-form-actions [parasails-component="ajax-button"] {
  width: 100%;
}
.auth-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .82rem;
  margin: 0;
  padding-top: 1rem;
  text-align: center;
}
.auth-footer a {
  color: var(--primary-color) !important;
  font-weight: 500;
  margin-left: .25rem;
}
.auth-footer a:hover {
  color: var(--primary-700) !important;
}
@media screen and (min-width: 480px) {
  .auth-card {
    padding: 2.25rem 2.5rem;
  }
}
#capture-actions .delete {
  align-items: center;
  background-color: red;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: .85rem;
  height: 1.6rem;
  justify-content: center;
  opacity: .6;
  position: absolute;
  right: .6rem;
  top: .6rem;
  transition: .3s;
  width: 1.6rem;
}
#capture-actions .delete:hover {
  opacity: .9;
}
#config .config-layout {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
#config .config-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
#config .config-nav ul {
  list-style: none;
  margin: 0;
  padding: .35rem;
}
#config .config-nav-item {
  align-items: flex-start;
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex;
  gap: .65rem;
  padding: .55rem .65rem;
  position: relative;
  transition: background var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
  user-select: none;
}
#config .config-nav-item:hover {
  background: var(--surface-2);
}
#config .config-nav-item.active {
  background: var(--surface-2);
}
#config .config-nav-item.active .config-nav-icon {
  color: var(--primary-color);
}
#config .config-nav-item.active .config-nav-title {
  color: var(--primary-color);
  font-weight: 600;
}
#config .config-nav-item.active::before {
  background: var(--primary-color);
  border-radius: 0 2px 2px 0;
  bottom: 25%;
  content: '';
  left: 0;
  position: absolute;
  top: 25%;
  width: 2px;
}
#config .config-nav-icon {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex-shrink: 0;
  font-size: .82rem;
  height: 1.4rem;
  justify-content: center;
  margin-top: .1rem;
  width: 1.4rem;
}
#config .config-nav-text {
  flex: 1;
  min-width: 0;
}
#config .config-nav-title {
  color: var(--text);
  display: block;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
#config .config-nav-desc {
  color: var(--text-subtle);
  display: block;
  font-size: .72rem;
  line-height: 1.35;
  margin-top: .15rem;
}
#config .config-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  min-width: 0;
  padding: 1.25rem;
}
#config .config-content-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: .85rem;
  margin: -0.25rem 0 1.25rem;
  padding-bottom: 1rem;
}
#config .config-content-icon {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--primary-color);
  display: flex;
  flex-shrink: 0;
  font-size: 1rem;
  height: 2.4rem;
  justify-content: center;
  width: 2.4rem;
}
#config .config-content-title {
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
#config .config-content-desc {
  color: var(--text-muted);
  font-size: .82rem;
  margin: .15rem 0 0;
}
#config .section-title {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: .72rem;
  font-weight: 500;
  gap: .55rem;
  letter-spacing: .08em;
  margin: 0.25rem 0 -0.25rem;
  padding: 0;
  text-transform: uppercase;
}
#config .section-title::after {
  background: var(--border);
  content: '';
  flex: 1;
  height: 1px;
  margin-left: .15rem;
}
#config .section-title i {
  color: var(--primary-color);
  font-size: .85em;
}
#config hr.column {
  background: var(--border);
  border: 0;
  height: 1px;
  margin: .85rem 0 .25rem;
}
#config code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .8em;
  padding: .05rem .35rem;
}
#config .locked {
  display: grid;
  grid-gap: 1rem;
}
#config .locked-select {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 100%;
}
#config .locked-select .start {
  border-bottom-right-radius: 0 !important;
  border-right-width: 0 !important;
  border-top-right-radius: 0 !important;
}
#config .locked-select .end {
  border-bottom-left-radius: 0 !important;
  border-left-width: 0 !important;
  border-top-left-radius: 0 !important;
}
#config .subsection-title {
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0.35rem 0 -0.35rem;
}
#config .input-with-eye {
  align-items: stretch;
  display: flex !important;
  grid-template-columns: none !important;
}
#config .input-with-eye > div {
  display: flex !important;
  grid-template-columns: none !important;
}
#config .input-with-eye input {
  flex: 1;
}
#config .tokens-meta {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-end;
  margin-top: .5rem;
}
#config .tokens {
  color: var(--text-subtle);
  display: grid;
  margin: 0;
}
#config .tokens span {
  font-size: .68rem;
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
}
#config .tokens .token {
  color: var(--text);
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' on;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-top: .1rem;
  text-align: right;
  text-transform: none;
}
#config .actions-sticky {
  background: linear-gradient(to top, var(--bg) 70%, rgba(250, 250, 249, 0));
  bottom: 1rem;
  grid-column: 1 / -1;
  justify-self: end;
  padding-top: .75rem;
  position: sticky;
}
@media (max-width: 900px) {
  #config .config-nav ul {
    display: flex;
    gap: .25rem;
    list-style: none;
    margin: 0;
    overflow-x: auto;
    padding: .35rem;
    scrollbar-width: thin;
    width: 100%;
  }
  #config .config-nav-item {
    align-items: center;
    flex-direction: column;
    gap: .35rem;
    min-width: 6.5rem;
    padding: .55rem .35rem;
    text-align: center;
  }
  #config .config-nav-item.active::before {
    bottom: 0;
    height: 2px;
    left: .5rem;
    right: .5rem;
    top: auto;
    width: auto;
  }
  #config .config-nav-desc {
    display: none;
  }
}
@media screen and (min-width: 901px) {
  #config .config-layout {
    grid-template-columns: 18rem 1fr;
    gap: 1.25rem;
  }
  #config .config-nav {
    max-height: calc(94vh);
    overflow-y: auto;
    position: sticky;
    top: 5rem;
  }
  #config .config-content {
    padding: 1.5rem;
  }
}
@media screen and (min-width: 1024px) {
  #config .config-layout {
    grid-template-columns: 19rem 1fr;
  }
}
.connect-card,
.connected-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 1.75rem;
  text-align: left;
}
.connect-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  text-align: center;
}
.connect-card .connect-icon {
  align-items: center;
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--primary-color);
  display: flex;
  font-size: 1.4rem;
  height: 3.25rem;
  justify-content: center;
  margin-bottom: .35rem;
  width: 3.25rem;
}
.connect-card h3 {
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
.connect-card > p {
  color: var(--text-muted);
  font-size: .9rem;
  margin: 0;
  max-width: 32rem;
}
.connect-card .connect-form {
  display: grid;
  gap: .85rem;
  margin-top: .35rem;
  text-align: left;
  width: 100%;
  max-width: 26rem;
}
.connect-card .connect-form .form-group {
  display: grid;
  gap: .35rem;
}
.connect-card .connect-form .form-group label {
  color: var(--text);
  font-size: .8rem;
  font-weight: 500;
}
.connect-card .connect-form .form-group input {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
  padding: .55rem .75rem;
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.connect-card .connect-form .form-group input::placeholder {
  color: var(--text-subtle);
}
.connect-card .connect-form .form-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--ring);
  outline: none;
}
.connect-card [parasails-component="ajax-button"] {
  margin-top: .25rem;
  min-width: 14rem;
}
.connected-card .connected-section-title {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  margin: 0 0 .85rem;
  padding-bottom: .55rem;
  position: relative;
  text-transform: uppercase;
}
.connected-card .connected-section-title::after {
  background: var(--border);
  bottom: 0;
  content: '';
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
}
.connected-card .connected-info {
  display: grid;
  gap: 0;
  margin-bottom: 1.25rem;
}
.connected-card .connected-field {
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .65rem 0;
}
.connected-card .connected-field:last-child {
  border-bottom: 0;
}
.connected-card .connected-field label {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: .82rem;
  font-weight: 500;
  margin: 0;
}
.connected-card .connected-field span {
  color: var(--text);
  font-size: .875rem;
  text-align: right;
  word-break: break-word;
}
.connected-card .connected-field .validated {
  align-items: center;
  color: var(--success);
  display: inline-flex;
  font-weight: 600;
  gap: .35rem;
}
.connected-card .connected-field .validated::before {
  background: currentColor;
  border-radius: 50%;
  content: '';
  height: .4rem;
  width: .4rem;
}
.connected-card .connected-field .not-validated {
  align-items: center;
  color: var(--warn);
  display: inline-flex;
  font-weight: 500;
  gap: .35rem;
}
.connected-card .connected-field .not-validated::before {
  background: currentColor;
  border-radius: 50%;
  content: '';
  height: .4rem;
  width: .4rem;
}
.connected-card .connected-organization {
  margin-top: 1.5rem;
}
.connected-card .connected-actions {
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}
.connected-card .pdf-link {
  align-items: center;
  color: var(--primary-color) !important;
  display: inline-flex;
  font-weight: 500;
  gap: .35rem;
  text-decoration: none;
}
.connected-card .pdf-link:hover {
  color: var(--primary-700) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#pap .pap-summary {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
}
#pap .pap-summary-left {
  align-items: center;
  display: flex;
  gap: .85rem;
  min-width: 0;
}
#pap .pap-summary-avatar {
  align-items: center;
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--text-muted);
  display: inline-flex;
  flex-shrink: 0;
  height: 2.75rem;
  justify-content: center;
  overflow: hidden;
  width: 2.75rem;
}
#pap .pap-summary-avatar i {
  font-size: 1.5rem;
}
#pap .pap-summary-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
#pap .pap-summary-avatar.is-large {
  height: 4rem;
  width: 4rem;
}
#pap .pap-summary-avatar.is-large i {
  font-size: 2.2rem;
}
#pap .pap-summary-meta {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
#pap .pap-summary-meta strong {
  color: var(--text);
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#pap .pap-summary-meta small {
  color: var(--text-muted);
  font-size: .78rem;
}
#pap .pap-summary-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .65rem;
  font-weight: 700;
  gap: .3rem;
  letter-spacing: .03em;
  margin-top: .35rem;
  padding: .15rem .5rem;
  text-transform: uppercase;
  width: fit-content;
}
#pap .pap-summary-badge i {
  font-size: .45rem;
}
#pap .pap-summary-badge.is-on {
  background: #dcfce7;
  color: #166534;
}
#pap .pap-summary-badge.is-off {
  background: var(--surface-2);
  color: var(--text-subtle);
}
#pap .pap-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
#pap .pap-tabs {
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: .15rem;
  margin: 1.25rem 0 1rem;
}
#pap .pap-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 500;
  gap: .4rem;
  margin-bottom: -1px;
  padding: .65rem .9rem;
}
#pap .pap-tabs button:hover {
  color: var(--text);
}
#pap .pap-tabs button.is-active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}
#pap .pap-section {
  margin-top: 0;
}
#pap .pap-filters {
  align-items: end;
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  padding: 0;
}
#pap .pap-skeleton {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: 1rem;
}
#pap .pap-skeleton .skeleton-row {
  animation: pap-shimmer 1.4s linear infinite;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--border) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  border-radius: var(--r-sm);
  height: 2.75rem;
}
@keyframes pap-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
#pap .pap-tx-summary {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  margin: 1rem 0;
}
#pap .pap-tx-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .65rem .85rem;
}
#pap .pap-tx-stat small {
  color: var(--text-muted);
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
#pap .pap-tx-stat strong {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 1rem;
  font-weight: 700;
  margin-top: .15rem;
}
#pap .pap-tx-stat.is-in strong {
  color: #166534;
}
#pap .pap-tx-stat.is-out strong {
  color: #b91c1c;
}
#pap .pap-tx-stat.is-net strong {
  color: var(--primary-color);
}
#pap .pap-status-pill {
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .15rem .55rem;
  text-transform: uppercase;
}
#pap .pap-status-pill.is-ok {
  background: #dcfce7;
  color: #166534;
}
#pap .pap-status-pill.is-error {
  background: #fee2e2;
  color: #b91c1c;
}
#pap .pap-status-pill.is-pending {
  background: #fef3c7;
  color: #92400e;
}
#pap .pap-tx-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}
#pap .pap-tx-item {
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: .85rem;
  padding: .75rem .9rem;
}
#pap .pap-tx-item:last-child {
  border-bottom: 0;
}
#pap .pap-tx-icon {
  align-items: center;
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--text-muted);
  display: inline-flex;
  flex-shrink: 0;
  height: 2.1rem;
  justify-content: center;
  width: 2.1rem;
}
#pap .pap-tx-icon i {
  font-size: .8rem;
}
#pap .pap-tx-icon.is-in {
  background: #dcfce7;
  color: #166534;
}
#pap .pap-tx-icon.is-out {
  background: #fee2e2;
  color: #b91c1c;
}
#pap .pap-tx-body {
  flex: 1;
  min-width: 0;
}
#pap .pap-tx-line {
  align-items: baseline;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
}
#pap .pap-tx-line strong {
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#pap .pap-tx-line .is-in {
  color: #166534;
  font-weight: 600;
}
#pap .pap-tx-line .is-out {
  color: #b91c1c;
  font-weight: 600;
}
#pap .pap-tx-sub {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: .72rem;
  gap: .65rem;
  margin-top: .2rem;
}
#pap .pap-tx-sub i {
  font-size: .65rem;
}
#pap .pap-pagination {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: .8rem;
  gap: .75rem;
  justify-content: center;
  margin-top: 1rem;
}
#pap .pap-pagination button {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  height: 2rem;
  width: 2rem;
}
#pap .pap-pagination button:hover:not(:disabled) {
  background: var(--border);
}
#pap .pap-pagination button:disabled {
  opacity: .4;
  cursor: not-allowed;
}
#pap .pap-response {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-mono, monospace);
  font-size: .75rem;
  margin-top: 1rem;
  max-height: 18rem;
  overflow: auto;
  padding: .75rem;
  white-space: pre-wrap;
  word-break: break-all;
}
#pap .pap-result-card {
  background: var(--surface);
  border: 1px solid #86efac;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  margin-top: 1.25rem;
  overflow: hidden;
}
#pap .pap-result-head {
  align-items: center;
  background: #f0fdf4;
  border-bottom: 1px solid #86efac;
  display: flex;
  gap: .75rem;
  padding: .85rem 1rem;
}
#pap .pap-result-head > div {
  flex: 1;
  min-width: 0;
}
#pap .pap-result-head strong {
  color: var(--text);
  display: block;
  font-size: .95rem;
}
#pap .pap-result-head small {
  color: var(--text-muted);
  display: block;
  font-size: .75rem;
  margin-top: .1rem;
}
#pap .pap-result-icon {
  align-items: center;
  background: #dcfce7;
  border-radius: 999px;
  color: #166534;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 1.25rem;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}
#pap .pap-result-amount {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem;
  text-align: center;
}
#pap .pap-result-amount small {
  color: var(--text-muted);
  display: block;
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
#pap .pap-result-amount strong {
  color: var(--text);
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: .25rem;
}
#pap .pap-result-amount span {
  color: var(--text-muted);
  display: block;
  font-size: .75rem;
  margin-top: .25rem;
}
#pap .pap-result-list {
  display: grid;
  gap: .55rem .85rem;
  grid-template-columns: max-content 1fr;
  margin: 0;
  padding: .85rem 1rem;
}
#pap .pap-result-list > div {
  display: contents;
}
#pap .pap-result-list dt {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
}
#pap .pap-result-list dd {
  color: var(--text);
  font-size: .85rem;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}
#pap .pap-result-list dd code {
  background: var(--surface-2);
  border-radius: 3px;
  font-size: .75rem;
  padding: .1rem .35rem;
}
#pap .pap-result-actions {
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
  padding: .65rem 1rem;
}
#pap .pap-otp-card {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--r-sm);
  color: #78350f;
  margin-top: 1rem;
  padding: .85rem 1rem;
}
#pap .pap-otp-card h5 {
  align-items: center;
  display: flex;
  font-size: .9rem;
  gap: .35rem;
  margin: 0 0 .25rem;
}
#pap .pap-profile-head {
  align-items: center;
  display: flex;
  gap: .85rem;
  margin-bottom: 1rem;
}
#pap .pap-profile-head strong {
  display: block;
  font-size: 1.05rem;
}
#pap .pap-profile-head small {
  color: var(--text-muted);
  display: block;
}
#pap .pap-profile-list {
  display: grid;
  gap: .35rem .85rem;
  grid-template-columns: max-content 1fr;
  margin: 0;
}
#pap .pap-profile-list > div {
  display: contents;
}
#pap .pap-profile-list dt {
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
}
#pap .pap-profile-list dd {
  color: var(--text);
  font-size: .9rem;
  margin: 0;
}
#pap .pap-profile-org {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
}
#pap .pap-profile-org h6 {
  color: var(--text-muted);
  font-size: .7rem;
  letter-spacing: .04em;
  margin: 0 0 .55rem;
  text-transform: uppercase;
}
#consumed {
  display: grid;
  gap: 1.25rem;
}
#consumed .usage-meta {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .82rem;
  gap: .5rem;
  margin: 0;
}
#consumed .usage-badge {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  gap: .35rem;
  letter-spacing: .01em;
  padding: .25rem .65rem;
}
#consumed .usage-badge.free {
  background: var(--accent-soft);
  border-color: rgba(132, 204, 22, 0.25);
  color: var(--accent-fg);
  font-family: var(--font-sans);
}
#consumed .usage-section {
  display: grid;
  gap: .65rem;
}
#consumed .usage-section-title {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: .72rem;
  font-weight: 500;
  gap: .55rem;
  letter-spacing: .08em;
  margin: 0;
  padding-bottom: 0;
  text-transform: uppercase;
}
#consumed .usage-section-title::after {
  background: var(--border);
  content: '';
  flex: 1;
  height: 1px;
  margin-left: .15rem;
}
#consumed .usage-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
#consumed .usage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 1.1rem 1.25rem;
  transition: border-color var(--d-fast) var(--ease);
}
#consumed .usage-card:hover {
  border-color: var(--border-strong);
}
#consumed .usage-card .usage-card-label {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  margin: 0 0 .5rem;
  text-transform: uppercase;
}
#consumed .usage-card .usage-card-value {
  color: var(--text);
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' on, 'ss01';
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
#consumed .usage-card .usage-card-sub {
  color: var(--text-muted);
  font-size: .78rem;
  margin: .4rem 0 0;
}
#consumed .usage-card.highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-700));
  border: 1px solid var(--primary-700);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
  position: relative;
}
#consumed .usage-card.highlight::before {
  background: radial-gradient(circle at top right, rgba(132, 204, 22, 0.18), transparent 60%);
  border-radius: inherit;
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}
#consumed .usage-card.highlight .usage-card-label,
#consumed .usage-card.highlight .usage-card-value,
#consumed .usage-card.highlight .usage-card-sub {
  color: #fff;
  position: relative;
}
#consumed .usage-card.highlight .usage-card-label {
  color: rgba(255, 255, 255, 0.7);
}
#consumed .usage-card.highlight .usage-card-sub {
  color: rgba(255, 255, 255, 0.65);
}
#consumed .usage-empty {
  align-items: center;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  font-size: .9rem;
  gap: .5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
#consumed .usage-empty .empty-icon {
  align-items: center;
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--primary-color);
  display: flex;
  font-size: 1.1rem;
  height: 2.75rem;
  justify-content: center;
  margin-bottom: .35rem;
  width: 2.75rem;
}
#consumed .usage-empty h4 {
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  margin: 0;
}
#consumed .usage-empty p {
  color: var(--text-muted);
  font-size: .82rem;
  margin: 0;
  max-width: 28rem;
}
#consumed .usage-empty a {
  color: var(--primary-color) !important;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#consumed .usage-empty a:hover {
  color: var(--primary-700) !important;
}
#consumed .usage-empty.is-error .empty-icon {
  background: var(--danger-soft);
  color: var(--danger);
}
#consumed .usage-empty.is-loading .empty-icon {
  animation: spin 1s linear infinite;
}
#consumed .activity-section {
  display: grid;
  gap: .85rem;
}
#consumed .activity-header {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
#consumed .activity-header .activity-sub {
  color: var(--text-muted);
  font-size: .8rem;
  margin: .15rem 0 0;
}
#consumed .activity-month-picker {
  align-items: center;
  display: inline-flex;
  gap: .5rem;
}
#consumed .activity-month-picker label {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  margin: 0;
  text-transform: uppercase;
}
#consumed .activity-month-picker select {
  appearance: none;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%2357534e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E");
  background-position: right .55rem center;
  background-repeat: no-repeat;
  background-size: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: .85rem;
  height: 2.2rem;
  padding: 0 1.85rem 0 .75rem;
  transition: border-color var(--d-fast) var(--ease);
}
#consumed .activity-month-picker select:hover {
  border-color: var(--border-strong);
}
#consumed .activity-month-picker select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--ring);
  outline: none;
}
#consumed .activity-month-picker select:disabled {
  opacity: .55;
  cursor: not-allowed;
}
#consumed .activity-models-wrap {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
#consumed .activity-models-title {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  margin: .5rem 0 0;
  text-transform: uppercase;
}
#consumed .activity-model {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
#consumed .activity-model strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
}
#consumed .activity-model small {
  color: var(--text-subtle);
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
#consumed .content-table .num {
  text-align: right;
}
#consumed .content-table .cost-cell {
  color: var(--text);
  font-weight: 600;
}
#consumed .activity-footnote {
  color: var(--text-muted);
  font-size: .78rem;
  margin: 0;
}
#consumed .activity-footnote i {
  color: var(--warn);
  margin-right: .25rem;
}
@media screen and (min-width: 640px) {
  #consumed .activity-header {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
}
#consumed .usage-actions {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  margin-top: .25rem;
}
#consumed .usage-actions a {
  align-items: center;
  color: var(--text-muted) !important;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 500;
  gap: .35rem;
  transition: color var(--d-fast) var(--ease);
}
#consumed .usage-actions a:hover {
  color: var(--primary-color) !important;
}
#consumed .usage-actions a i {
  font-size: .75em;
}
#dashboard {
  display: grid;
  gap: 1.5rem;
}
#dashboard .page-header {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: .25rem;
}
#dashboard .page-kicker {
  color: var(--text-subtle);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#dashboard .page-title {
  color: var(--text);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}
#dashboard .page-subtitle {
  color: var(--text-muted);
  font-size: .9rem;
  margin: 0;
}
#dashboard .filters-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
#dashboard .filters-card-header {
  border-bottom: 1px solid var(--border);
  padding: .9rem 1.25rem;
}
#dashboard .filters-card-header h3 {
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
}
#dashboard .filters-card-header p {
  color: var(--text-muted);
  font-size: .8rem;
  margin: .15rem 0 0;
}
#dashboard .filters-form {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  padding: 1.1rem 1.25rem;
}
#dashboard .filters-form .filter-toggle {
  align-items: center;
  display: flex;
  flex-direction: row !important;
  gap: .85rem;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding: .65rem .85rem;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
}
#dashboard .filters-form .filter-toggle > label:first-child {
  flex: 1;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.35;
}
#dashboard .filters-form .filter-toggle > label:first-child span {
  color: var(--text-subtle);
  font-size: .72rem;
  font-weight: 400;
  margin-top: .1rem;
}
#dashboard .filters-form .filter-action {
  align-self: end;
}
#dashboard .btn-search {
  align-items: center;
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: var(--r-md);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  gap: .55rem;
  height: 2.4rem;
  justify-content: center;
  letter-spacing: -0.005em;
  padding: 0 1rem;
  transition: background-color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
  width: 100%;
}
#dashboard .btn-search:hover:not(:disabled) {
  background-color: var(--primary-700);
  border-color: var(--primary-700);
}
#dashboard .btn-search:active:not(:disabled) {
  transform: translateY(0.5px);
}
#dashboard .btn-search:disabled {
  cursor: not-allowed;
  opacity: .5;
  pointer-events: none;
}
#dashboard .btn-search i {
  font-size: .85em;
}
#dashboard .metrics-row {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
#dashboard .metric-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
#dashboard .metric-card .card-p-big {
  color: var(--text);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}
#dashboard .metric-card .metric-meta {
  align-items: center;
  color: var(--text-subtle);
  display: flex;
  font-size: .78rem;
  gap: .5rem;
  margin: .1rem 0 0;
}
#dashboard .metric-card .metric-meta .dot {
  background: var(--text-subtle);
  border-radius: 50%;
  display: inline-block;
  height: 3px;
  opacity: .55;
  width: 3px;
}
#dashboard .skeleton-text {
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--border) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  border-radius: var(--r-sm);
  display: inline-block;
  height: 2.1rem;
  width: 4rem;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
#dashboard .chart-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
#dashboard .chart-header {
  border-bottom: 1px solid var(--border);
  padding: .9rem 1.25rem;
}
#dashboard .chart-header h3 {
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  margin: 0;
}
#dashboard .chart-header .chart-subtitle {
  color: var(--text-muted);
  font-feature-settings: 'tnum' on;
  font-size: .78rem;
  margin: .15rem 0 0;
}
#dashboard .chart-canvas-wrap {
  height: 22rem;
  padding: 1rem 1.25rem;
  position: relative;
}
#dashboard .chart-canvas-wrap canvas {
  max-height: 100%;
}
#dashboard .tabs {
  margin-bottom: 0;
}
@media screen and (min-width: 768px) {
  #dashboard .filters-form .filter-toggle {
    grid-column: 1 / -1;
  }
}
@media screen and (min-width: 1024px) {
  #dashboard {
    gap: 1.75rem;
  }
  #dashboard .chart-canvas-wrap {
    height: 26rem;
  }
}
#forms .properties {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 1rem 0;
}
#forms .properties span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: .25rem .65rem;
  text-align: center;
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
  user-select: none;
}
#forms .properties span:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
#forms .properties span.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
#forms .properties span:active {
  transform: scale(0.97);
}
#forms .property-name {
  color: var(--text);
  display: block;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .25rem;
}
#forms .property-flag {
  align-items: center;
  color: var(--text-muted);
  display: inline-flex;
  font-size: .72rem;
  gap: .35rem;
  margin-right: .65rem;
}
#forms .property-flag i {
  color: var(--text-subtle);
  font-size: .85em;
}
#forms .property-flag::before {
  content: none;
}
#forms .form-row-pair {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  #forms .form-row-pair {
    grid-template-columns: 1fr 1fr;
  }
}
#forms .form-row-pair > article {
  display: grid;
  gap: .375rem;
}
.page-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
#instances .picker-intro {
  color: var(--text-muted);
  font-size: .85rem;
  margin: 0 0 1rem;
}
#instances .picker-legacy-link {
  color: var(--text-subtle);
  font-size: .8rem;
  margin: 1rem 0 0;
  text-align: center;
}
#instances .picker-legacy-link a {
  color: var(--text-muted) !important;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#instances .picker-legacy-link a:hover {
  color: var(--primary-color) !important;
}
#instances .adapter-picker {
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) {
  #instances .adapter-picker {
    grid-template-columns: repeat(2, 1fr);
  }
}
#instances .adapter-pick-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex;
  gap: .85rem;
  padding: .85rem 1rem;
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
#instances .adapter-pick-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--ring);
  transform: translateY(-1px);
}
#instances .adapter-pick-card:active {
  transform: translateY(0);
}
#instances .adapter-pick-icon {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--primary-color);
  display: flex;
  flex-shrink: 0;
  font-size: 1rem;
  height: 2.4rem;
  justify-content: center;
  width: 2.4rem;
}
#instances .adapter-pick-info {
  min-width: 0;
}
#instances .adapter-pick-info strong {
  color: var(--text);
  display: block;
  font-size: .9rem;
  font-weight: 600;
}
#instances .adapter-pick-info small {
  color: var(--text-muted);
  display: block;
  font-size: .75rem;
  margin-top: .15rem;
}
#instances .adapter-form-head {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  gap: .85rem;
  margin-bottom: 1rem;
  padding: .65rem .85rem;
}
#instances .adapter-form-head > div {
  flex: 1;
  min-width: 0;
}
#instances .adapter-form-head strong {
  color: var(--text);
  display: block;
  font-size: .85rem;
  font-weight: 600;
}
#instances .adapter-form-head small {
  color: var(--text-muted);
  display: block;
  font-size: .72rem;
  margin-top: .1rem;
}
.list-toolbar {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-bottom: 1rem;
}
.list-toolbar .list-filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 1rem 1.25rem;
}
.list-toolbar .list-filters .ajax-form {
  gap: .85rem;
}
.list-toolbar .list-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.row-actions {
  align-items: center;
  display: inline-flex;
  gap: .15rem;
  white-space: nowrap;
}
.row-actions > div {
  display: inline-flex;
}
.row-actions [parasails-component="ajax-button"].tertiary {
  min-height: 2rem;
  padding: 0 .55rem;
  font-size: .82rem;
}
.platform-cell {
  align-items: center;
  display: inline-flex;
  font-size: .82rem;
  gap: .4rem;
}
.platform-cell i {
  color: var(--text-muted);
  font-size: .9em;
}
.status-dot {
  font-size: .55rem !important;
}
.status-dot.is-on {
  color: var(--success) !important;
}
.status-dot.is-off {
  color: var(--danger) !important;
}
.row-action-toggle {
  align-items: center;
  display: inline-flex;
  height: 2rem;
  padding: 0 .35rem;
}
.content-table tr.is-disabled td {
  color: var(--text-subtle) !important;
  text-decoration: line-through;
  text-decoration-color: var(--border-strong);
  text-decoration-thickness: 1px;
}
.empty-row {
  color: var(--text-muted);
  font-size: .85rem;
  padding: 2.5rem 1rem !important;
  text-align: center;
}
#list .delete {
  align-items: center;
  background-color: var(--danger);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: .8rem;
  height: 1.6rem;
  justify-content: center;
  opacity: .85;
  position: absolute;
  right: .6rem;
  top: .6rem;
  transition: opacity var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
  width: 1.6rem;
}
#list .delete:hover {
  opacity: 1;
  transform: scale(1.05);
}
.chat-thread {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 28rem;
  overflow-y: auto;
  padding: 1rem;
}
.chat-row {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.chat-row.chat-user {
  align-items: flex-end;
}
.chat-row.chat-assistant,
.chat-row.chat-ia {
  align-items: flex-start;
}
.chat-label {
  align-items: center;
  display: inline-flex;
  font-size: .68rem;
  font-weight: 500;
  gap: .35rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.chat-label::before {
  background: currentColor;
  border-radius: 50%;
  content: '';
  display: inline-block;
  height: .35rem;
  width: .35rem;
}
.chat-bubble {
  border-radius: var(--r-md);
  font-size: .875rem;
  line-height: 1.5;
  max-width: 80%;
  padding: .65rem .9rem;
  white-space: pre-line;
  word-break: break-word;
}
.chat-row.chat-user .chat-label {
  color: var(--info);
}
.chat-row.chat-user .chat-bubble {
  background: var(--info-soft);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-bottom-right-radius: 2px;
  color: #1e3a8a;
}
.chat-row.chat-assistant .chat-label {
  color: var(--success);
}
.chat-row.chat-assistant .chat-bubble {
  background: var(--success-soft);
  border: 1px solid rgba(22, 163, 74, 0.15);
  border-bottom-left-radius: 2px;
  color: #14532d;
}
.chat-row.chat-ia .chat-label {
  color: var(--warn);
}
.chat-row.chat-ia .chat-bubble {
  background: transparent;
  border: 1px dashed var(--warn);
  color: #78350f;
}
.chat-row .chat-time {
  color: var(--text-subtle);
  font-feature-settings: 'tnum' on;
  font-size: .68rem;
  margin-top: .15rem;
}
.chat-thread-footer {
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  font-size: .82rem;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
}
.chat-load-more {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.chat-thread-empty {
  color: var(--text-muted);
  font-size: .9rem;
  padding: 2rem 0;
  text-align: center;
}
.advisers-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}
.adviser-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.adviser-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}
.adviser-card-head {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: .65rem;
  padding: .9rem 1rem;
}
.adviser-avatar {
  align-items: center;
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--text-muted);
  display: inline-flex;
  flex-shrink: 0;
  height: 2.4rem;
  justify-content: center;
  width: 2.4rem;
}
.adviser-avatar i {
  font-size: 1rem;
}
.adviser-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.adviser-meta strong {
  color: var(--text);
  font-size: .95rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adviser-meta small {
  color: var(--text-muted);
  font-size: .72rem;
  margin-top: .15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adviser-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 600;
  gap: .3rem;
  padding: .25rem .55rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.adviser-status i {
  font-size: .5rem;
}
.adviser-status.is-on {
  background: #dcfce7;
  color: #166534;
}
.adviser-status.is-off {
  background: var(--surface-2);
  color: var(--text-subtle);
}
.adviser-card-body {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: .85rem 1rem;
}
.adviser-row {
  align-items: center;
  color: var(--text);
  display: flex;
  font-size: .82rem;
  gap: .55rem;
}
.adviser-row i {
  color: var(--text-muted);
  width: 1rem;
  text-align: center;
}
.adviser-row em {
  color: var(--text-subtle);
  font-style: normal;
  padding: 0 .15rem;
}
.adviser-card-actions {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  padding: .55rem .75rem;
}
.context-chat-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}
.context-chat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.context-chat-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}
.context-chat-card-head {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: .65rem;
  padding: .9rem 1rem;
}
.context-chat-avatar {
  align-items: center;
  background: #ede9fe;
  border-radius: 999px;
  color: #6d28d9;
  display: inline-flex;
  flex-shrink: 0;
  height: 2.4rem;
  justify-content: center;
  width: 2.4rem;
}
.context-chat-avatar i {
  font-size: 1rem;
}
.context-chat-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.context-chat-meta strong {
  color: var(--text);
  font-size: .95rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.context-chat-meta small {
  align-items: center;
  color: var(--text-muted);
  display: inline-flex;
  font-size: .72rem;
  gap: .3rem;
  margin-top: .15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.context-chat-meta small i {
  font-size: .65rem;
}
.context-chat-card-body {
  padding: .85rem 1rem;
}
.context-chat-tag {
  align-items: center;
  background: #f5f3ff;
  border: 1px solid #e9d5ff;
  border-radius: 999px;
  color: #5b21b6;
  display: inline-flex;
  font-size: .75rem;
  font-weight: 500;
  gap: .35rem;
  padding: .25rem .6rem;
}
.context-chat-tag i {
  font-size: .7rem;
}
.context-chat-card-actions {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  padding: .55rem .75rem;
}
.answer-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}
.answer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.answer-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}
.answer-card-head {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: .65rem;
  padding: .9rem 1rem;
}
.answer-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.answer-meta strong {
  color: var(--text);
  font-size: .95rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.answer-meta small {
  align-items: center;
  color: var(--text-muted);
  display: inline-flex;
  font-size: .72rem;
  gap: .3rem;
  margin-top: .15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.answer-meta small i {
  font-size: .65rem;
}
.answer-card-actions {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  padding: .55rem .75rem;
}
.answer-avatar {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex-shrink: 0;
  height: 2.4rem;
  justify-content: center;
  width: 2.4rem;
  background: #dcfce7;
  color: #166534;
}
.answer-avatar i {
  font-size: 1rem;
}
.answer-status {
  align-items: center;
  background: #dcfce7;
  border-radius: 999px;
  color: #166534;
  display: inline-flex;
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 600;
  gap: .3rem;
  letter-spacing: .02em;
  padding: .25rem .55rem;
  text-transform: uppercase;
}
.answer-status i {
  font-size: .5rem;
}
.locked-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
}
.locked-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.locked-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}
.locked-card.is-expired {
  opacity: .75;
}
.locked-card-head {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: .65rem;
  padding: .9rem 1rem;
}
.locked-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.locked-meta strong {
  color: var(--text);
  font-size: .95rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.locked-meta small {
  align-items: center;
  color: var(--text-muted);
  display: inline-flex;
  font-size: .72rem;
  gap: .3rem;
  margin-top: .15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.locked-meta small i {
  font-size: .65rem;
}
.locked-card-actions {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  padding: .55rem .75rem;
}
.locked-avatar {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex-shrink: 0;
  height: 2.4rem;
  justify-content: center;
  width: 2.4rem;
  background: #fee2e2;
  color: #b91c1c;
}
.locked-avatar i {
  font-size: 1rem;
}
.locked-status {
  align-items: center;
  background: #fee2e2;
  border-radius: 999px;
  color: #b91c1c;
  display: inline-flex;
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 600;
  gap: .3rem;
  letter-spacing: .02em;
  padding: .25rem .55rem;
  text-transform: uppercase;
}
.locked-status i {
  font-size: .5rem;
}
.locked-status.is-expired {
  background: var(--surface-2);
  color: var(--text-subtle);
}
.locked-card-body {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: .75rem 1rem;
}
.locked-row {
  align-items: center;
  color: var(--text);
  display: flex;
  font-size: .82rem;
  gap: .55rem;
}
.locked-row i {
  color: var(--text-muted);
  width: 1rem;
  text-align: center;
}
#messages .delete {
  align-items: center;
  background-color: red;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: .85rem;
  height: 1.6rem;
  justify-content: center;
  opacity: .6;
  position: absolute;
  right: .6rem;
  top: .6rem;
  transition: .3s;
  width: 1.6rem;
}
#messages .delete:hover {
  opacity: .9;
}
#messages .messages-title {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media screen and (min-width: 768px) {
  #messages .messages-title {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
}
#webhook .webhook-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
  margin-top: .5rem;
}
#webhook .webhook-modal-section {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  margin: 1.25rem 0 .65rem;
  text-transform: uppercase;
}
#webhook .webhook-modal-section:first-of-type {
  margin-top: 0;
}
#webhook .webhook-event-desc {
  color: var(--text-subtle);
  display: block;
  font-size: .75rem;
  margin-top: .15rem;
}
#api .api-token-name,
#api .api-token-name-edit {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
}
#api .input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .85rem;
  height: 1.85rem;
  padding: 0 .55rem;
  transition: border-color var(--d-fast) var(--ease);
}
#api .input:focus {
  border-color: var(--primary-color);
  outline: none;
}
#api code {
  font-size: .8rem;
}
#documents .documents-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
  margin-top: .35rem;
}
#library .library-config-actions {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin-top: .35rem;
}
#events .page-header.page-header-row .page-title {
  font-size: 1.25rem;
}
#events .events-skeleton {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
#events .skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.25rem;
}
#events .skeleton-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: .35rem;
}
#events .skeleton-rows {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
#events .skeleton {
  animation: events-shimmer 1.4s linear infinite;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--border) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  border-radius: var(--r-sm);
  display: block;
}
#events .skeleton-title {
  height: 1.4rem;
  width: 30%;
}
#events .skeleton-text {
  height: .9rem;
}
#events .skeleton-field {
  height: 2.6rem;
}
#events .skeleton-row {
  height: 3rem;
}
@keyframes events-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
#playground {
  display: grid;
  gap: 1rem;
  height: calc(94vh);
}
#playground .playground-status {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  display: inline-flex;
  font-size: .75rem;
  font-weight: 500;
  gap: .35rem;
  padding: .25rem .65rem;
}
#playground .playground-status i {
  color: var(--text-subtle);
  font-size: .55rem;
}
#playground .playground-status.is-on i {
  color: var(--success);
}
#playground .playground-status.is-off i {
  color: var(--danger);
}
#playground .playground-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
#playground .playground-thread {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem;
  scrollbar-width: thin;
}
#playground .playground-empty {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: auto;
  text-align: center;
}
#playground .playground-empty .empty-state-icon {
  align-items: center;
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--primary-color);
  display: flex;
  font-size: 1.15rem;
  height: 2.85rem;
  justify-content: center;
  margin-bottom: .35rem;
  width: 2.85rem;
}
#playground .playground-empty h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
#playground .playground-empty p {
  color: var(--text-muted);
  font-size: .85rem;
  margin: 0;
  max-width: 28rem;
}
#playground .playground-row {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  max-width: 75%;
}
#playground .playground-row.is-user {
  align-self: flex-end;
  align-items: flex-end;
}
#playground .playground-row.is-bot {
  align-self: flex-start;
  align-items: flex-start;
}
#playground .playground-label {
  color: var(--text-subtle);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
#playground .playground-bubble {
  border-radius: var(--r-md);
  font-size: .875rem;
  line-height: 1.5;
  padding: .65rem .9rem;
  white-space: pre-wrap;
  word-break: break-word;
}
#playground .playground-row.is-user .playground-bubble {
  background: var(--primary-color);
  border-bottom-right-radius: 2px;
  color: #fff;
}
#playground .playground-row.is-bot .playground-bubble {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 2px;
  color: var(--text);
}
#playground .file-bubble a {
  color: inherit !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#playground .file-bubble a:hover {
  color: inherit !important;
}
#playground .playground-time {
  color: var(--text-subtle);
  font-feature-settings: 'tnum' on;
  font-size: .68rem;
}
#playground .playground-typing {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  border-bottom-left-radius: 2px;
  display: inline-flex;
  gap: .25rem;
  padding: .65rem .9rem;
}
#playground .playground-typing span {
  animation: playgroundDot 1.2s infinite ease-in-out;
  background: var(--text-subtle);
  border-radius: 50%;
  display: inline-block;
  height: .35rem;
  width: .35rem;
}
#playground .playground-typing span:nth-child(2) {
  animation-delay: .2s;
}
#playground .playground-typing span:nth-child(3) {
  animation-delay: .4s;
}
@keyframes playgroundDot {
  0%,
  60%,
  100% {
    opacity: .35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
#playground .playground-input {
  align-items: stretch;
  border-top: 1px solid var(--border);
  display: flex;
  flex-shrink: 0;
  gap: .65rem;
  padding: .85rem 1rem;
}
#playground .playground-input textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  flex: 1;
  font-family: inherit;
  font-size: .875rem;
  line-height: 1.5;
  padding: .55rem .75rem;
  resize: none;
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
#playground .playground-input textarea::placeholder {
  color: var(--text-subtle);
}
#playground .playground-input textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--ring);
  outline: none;
}
#playground .playground-input textarea:disabled {
  background: var(--surface-2);
  color: var(--text-muted);
}
#users {
  display: flex;
  flex-direction: column;
  height: calc(98.5vh);
  overflow: hidden;
}
#users .chats-page-header {
  flex-shrink: 0;
  margin-bottom: 1rem;
}
#users .chats-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 22rem 1fr;
  min-height: 0;
  overflow: hidden;
}
#users .chats-list {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
#users .chats-list .chats-list-filters {
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: .75rem;
  padding: .85rem .9rem;
}
#users .chats-list .chats-list-filters .chats-search-wrap .search {
  margin: 0;
  position: static;
  top: auto;
  width: 100%;
}
#users .chats-list .chats-list-filters .chats-search-wrap .search .content_search {
  text-align: left;
  width: 100%;
}
#users .chats-list .chats-list-filters .chats-search-wrap .search .content_search input {
  max-width: none;
}
#users .chats-list .chats-list-filters .chats-dates {
  gap: .6rem !important;
}
#users .chats-list .chats-list-filters .chats-dates article {
  align-content: baseline;
  display: grid;
  gap: .25rem;
}
#users .chats-list .chats-list-filters .chats-dates article label {
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
#users .chats-list .chats-list-filters .chats-dates article label span {
  display: none;
}
#users .chats-list .chats-list-filters .chats-dates article input {
  font-size: .8rem;
  min-height: 2.2rem;
  padding: .4rem .55rem;
}
#users .chats-list .chats-instance-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: .4rem;
  margin: 0 -0.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: .15rem .25rem .4rem;
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-width: thin;
}
#users .chats-list .chats-instance-chips::-webkit-scrollbar {
  height: 4px;
}
#users .chats-list .chats-instance-chips::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 2px;
}
#users .chats-list .chats-instance-chip {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 500;
  gap: .35rem;
  max-width: 9rem;
  padding: .3rem .65rem .3rem .35rem;
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
#users .chats-list .chats-instance-chip i {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary-color);
  display: flex;
  flex-shrink: 0;
  font-size: .7rem;
  height: 1.5rem;
  justify-content: center;
  width: 1.5rem;
}
#users .chats-list .chats-instance-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#users .chats-list .chats-instance-chip:hover:not(.is-active) {
  background: var(--surface);
  color: var(--text);
}
#users .chats-list .chats-instance-chip.is-active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
#users .chats-list .chats-instance-chip.is-active i {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
#users .chats-list .chats-list-empty {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}
#users .chats-list .chats-list-empty i {
  font-size: 1.5rem;
  opacity: .5;
}
#users .chats-list .chats-list-empty p {
  font-size: .85rem;
  margin: 0;
}
#users .chats-list .chats-list-items {
  flex: 1 1 auto;
  list-style: none;
  margin: 0;
  overflow-y: auto;
  padding: .35rem 0;
}
#users .chats-list .chats-list-items li {
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  gap: .7rem;
  padding: .65rem .85rem;
  transition: background-color 0.12s;
}
#users .chats-list .chats-list-items li:hover {
  background: var(--surface-2);
}
#users .chats-list .chats-list-items li.is-active {
  background: var(--accent-soft);
  border-left: 3px solid var(--primary-color);
  padding-left: calc(-2.15rem);
}
#users .chats-list .chats-list-avatar {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary-color);
  display: flex;
  flex-shrink: 0;
  font-size: 1rem;
  height: 2.4rem;
  justify-content: center;
  width: 2.4rem;
}
#users .chats-list .chats-list-body {
  flex: 1 1 auto;
  min-width: 0;
}
#users .chats-list .chats-list-title {
  align-items: center;
  display: flex;
  gap: .35rem;
  justify-content: space-between;
}
#users .chats-list .chats-list-title strong {
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#users .chats-list .chats-list-title small {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: .68rem;
}
#users .chats-list .chats-list-subtitle {
  color: var(--text-muted);
  font-size: .72rem;
  margin-top: .1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#users .chats-list .chats-list-subtitle .chats-list-id {
  color: var(--text-subtle);
}
#users .chats-list .chats-list-subtitle .chats-list-pending {
  align-items: center;
  background: #fef3c7;
  border-radius: 999px;
  color: #92400e;
  display: inline-flex;
  font-size: .65rem;
  font-weight: 600;
  gap: .25rem;
  margin-left: .35rem;
  padding: .1rem .4rem;
}
#users .chats-list .chats-list-subtitle .chats-list-pending i {
  font-size: .55rem;
}
#users .chats-list .chats-list-subtitle .chats-list-unread {
  align-items: center;
  background: #dbeafe;
  border-radius: 999px;
  color: #1e3a8a;
  display: inline-flex;
  font-size: .65rem;
  font-weight: 700;
  justify-content: center;
  margin-left: auto;
  min-width: 1.25rem;
  padding: .1rem .35rem;
}
#users .chats-list .chats-list-subtitle .chats-list-unread.is-user {
  background: #2563eb;
  color: #fff;
}
#users .chats-list .chats-list-subtitle .chats-list-unread.is-ia {
  background: #16a34a;
  color: #fff;
}
#users .chats-list .chats-list-last {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: .72rem;
  gap: .3rem;
  margin-top: .15rem;
  overflow: hidden;
}
#users .chats-list .chats-list-last i {
  color: var(--text-subtle);
  font-size: .6rem;
  flex-shrink: 0;
}
#users .chats-list .chats-list-last span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#users .chats-list .pagination {
  border-top: 1px solid var(--border);
  padding: .55rem;
}
#users .chats-conversation {
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
#users .chats-conversation-empty {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: .85rem;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
#users .chats-conversation-empty .empty-state-icon {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary-color);
  display: flex;
  font-size: 1.75rem;
  height: 4rem;
  justify-content: center;
  width: 4rem;
}
#users .chats-conversation-empty h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
#users .chats-conversation-empty p {
  font-size: .85rem;
  margin: 0;
  max-width: 22rem;
}
#users .chats-conversation-header {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-shrink: 0;
  gap: .65rem;
  padding: .75rem 1rem;
}
#users .chats-back-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  font-size: .9rem;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}
#users .chats-back-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}
#users .chats-conversation-avatar {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary-color);
  display: flex;
  flex-shrink: 0;
  font-size: 1rem;
  height: 2.4rem;
  justify-content: center;
  width: 2.4rem;
}
#users .chats-conversation-meta {
  flex: 1 1 auto;
  min-width: 0;
}
#users .chats-conversation-meta strong {
  color: var(--text);
  display: block;
  font-size: .9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#users .chats-conversation-meta small {
  color: var(--text-muted);
  display: block;
  font-size: .72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#users .chats-conversation-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: .35rem;
}
#users .chats-window-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .7rem;
  font-weight: 500;
  gap: .35rem;
  padding: .25rem .55rem;
}
#users .chats-window-badge i {
  font-size: .55rem;
}
#users .chats-window-badge.is-open {
  background: #d1fae5;
  color: #047857;
}
#users .chats-window-badge.is-closed {
  background: #fee2e2;
  color: #b91c1c;
}
#users .chats-icon-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: .85rem;
  height: 2rem;
  justify-content: center;
  width: 2rem;
  transition: background-color 0.12s, color 0.12s;
}
#users .chats-icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}
#users .chats-thread {
  background-image: linear-gradient(180deg, var(--surface-2) 0%, #f0ebf5 100%);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: .35rem;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}
#users .chats-thread-empty {
  color: var(--text-muted);
  font-size: .85rem;
  margin: auto;
  padding: 2rem;
  text-align: center;
}
#users .chats-loader {
  color: var(--text-muted);
  font-size: .75rem;
  padding: .5rem 0;
  text-align: center;
}
#users .chats-loader.is-end {
  color: var(--text-subtle);
  font-style: italic;
}
#users .chats-bubble-row {
  display: flex;
  flex-direction: column;
  max-width: 70%;
}
#users .chats-bubble-row.is-user {
  align-self: flex-start;
}
#users .chats-bubble-row.is-op {
  align-self: flex-end;
  align-items: flex-end;
}
#users .chats-bubble-row .chats-bubble {
  border-radius: .85rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  font-size: .88rem;
  line-height: 1.45;
  padding: .6rem .85rem;
  word-wrap: break-word;
}
#users .chats-bubble-row .chats-bubble-text {
  margin: 0;
  white-space: pre-wrap;
}
#users .chats-bubble-row .chats-bubble-text:not(:first-child) {
  margin-top: .4rem;
}
#users .chats-bubble-row .chats-bubble-attachment:not(:first-child) {
  margin-top: .35rem;
}
#users .chats-bubble-row .chats-bubble-attachment img {
  border-radius: var(--r-sm);
  cursor: zoom-in;
  display: block;
  max-height: 14rem;
  max-width: 100%;
  object-fit: cover;
}
#users .chats-bubble-row .chats-bubble-attachment audio,
#users .chats-bubble-row .chats-bubble-attachment video {
  display: block;
  max-width: 100%;
}
#users .chats-bubble-row .chats-bubble-file {
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border: 0;
  border-radius: var(--r-sm);
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  gap: .4rem;
  font-family: inherit;
  font-size: .78rem;
  padding: .3rem .55rem;
  text-decoration: none;
}
#users .chats-bubble-row .chats-bubble-file:hover {
  background: rgba(0, 0, 0, 0.1);
}
#users .chats-bubble-row .chats-bubble-tag {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .6rem;
  font-weight: 600;
  gap: .25rem;
  letter-spacing: .03em;
  margin-bottom: .25rem;
  padding: .1rem .45rem;
  text-transform: uppercase;
  width: fit-content;
}
#users .chats-bubble-row .chats-bubble-tag i {
  font-size: .5rem;
}
#users .chats-bubble-row .chats-bubble-tag.is-comment {
  background: #fef3c7;
  color: #92400e;
}
#users .chats-bubble-row .chats-bubble-tag.is-comment-reply {
  background: #dbeafe;
  color: #1e3a8a;
}
#users .chats-bubble-row .chats-bubble-tag.is-private-reply {
  background: #ede9fe;
  color: #5b21b6;
}
#users .chats-bubble-row .chats-bubble-time {
  color: var(--text-subtle);
  font-size: .65rem;
  margin: .2rem .55rem 0;
}
#users .chats-bubble-row.is-user .chats-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: .2rem;
  color: var(--text);
}
#users .chats-bubble-row.is-op .chats-bubble {
  background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
  border: 1px solid #86efac;
  border-bottom-right-radius: .2rem;
  color: #052e16;
}
#users .chats-bubble-row.is-op .chats-bubble-time {
  color: #16a34a;
  text-align: right;
}
#users .chats-comment-banner {
  align-items: center;
  background: #fffbeb;
  border-top: 1px solid #fcd34d;
  color: #78350f;
  display: flex;
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 600;
  gap: .4rem;
  letter-spacing: .02em;
  padding: .5rem 1rem;
  text-transform: uppercase;
}
#users .chats-comment-banner i {
  font-size: .7rem;
}
#users .chats-comment-composer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: .65rem;
  padding: .75rem 1rem;
}
#users .chats-comment-composer article {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
#users .chats-comment-composer article label {
  align-items: center;
  color: var(--text);
  display: flex;
  font-size: .72rem;
  font-weight: 600;
  gap: .35rem;
  margin: 0;
}
#users .chats-comment-composer article label i {
  color: var(--text-muted);
}
#users .chats-comment-composer article small.chats-comment-disabled {
  color: var(--text-subtle);
  font-size: .65rem;
  font-weight: 500;
  margin-left: auto;
}
#users .chats-comment-composer article textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .85rem;
  padding: .5rem .65rem;
  resize: vertical;
}
#users .chats-comment-composer article textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--ring);
  outline: none;
}
#users .chats-comment-composer article textarea:disabled {
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: not-allowed;
}
#users .chats-comment-actions {
  display: flex;
  justify-content: flex-end;
}
#users .chats-comment-actions .chats-send-btn {
  align-items: center;
  background: var(--primary-color);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  gap: .4rem;
  padding: .5rem 1rem;
}
#users .chats-comment-actions .chats-send-btn:hover:not(:disabled) {
  background: var(--primary-700);
}
#users .chats-comment-actions .chats-send-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
#users .chats-preview-wrap {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .5rem 0;
}
#users .chats-preview-wrap img {
  border-radius: var(--r-sm);
  max-height: 70vh;
  max-width: 100%;
  object-fit: contain;
}
#users .chats-preview-wrap audio {
  width: 100%;
}
#users .chats-preview-wrap video {
  max-height: 70vh;
  max-width: 100%;
}
#users .chats-preview-wrap iframe {
  border: 0;
  height: 70vh;
  width: 100%;
}
#users .chats-pending-file {
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  flex-shrink: 0;
  gap: .65rem;
  padding: .55rem 1rem;
}
#users .chats-pending-file img {
  border-radius: var(--r-sm);
  height: 2.5rem;
  object-fit: cover;
  width: 2.5rem;
}
#users .chats-pending-file > i {
  background: var(--surface-2);
  border-radius: var(--r-sm);
  color: var(--primary-color);
  font-size: 1rem;
  padding: .65rem;
}
#users .chats-pending-file span {
  color: var(--text);
  flex: 1 1 auto;
  font-size: .8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#users .chats-pending-file button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  height: 1.8rem;
  justify-content: center;
  width: 1.8rem;
}
#users .chats-pending-file button:hover {
  background: var(--surface-2);
  color: var(--text);
}
#users .chats-recording {
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--danger);
  display: flex;
  flex-shrink: 0;
  gap: .65rem;
  padding: .65rem 1rem;
}
#users .chats-recording .chats-recording-dot {
  animation: chatsRecPulse 1s ease-in-out infinite;
  background: var(--danger);
  border-radius: 50%;
  display: inline-block;
  height: .7rem;
  width: .7rem;
}
#users .chats-recording .chats-recording-time {
  color: var(--text-muted);
  font-family: var(--font-mono, monospace);
  font-size: .8rem;
  margin-left: auto;
}
#users .chats-recording button {
  align-items: center;
  background: var(--danger);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: .75rem;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}
@keyframes chatsRecPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: .35;
  }
}
#users .chats-composer {
  align-items: flex-end;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  flex-shrink: 0;
  gap: .35rem;
  padding: .6rem .75rem;
}
#users .chats-composer textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  flex: 1 1 auto;
  font-family: var(--font-sans);
  font-size: .9rem;
  line-height: 1.4;
  max-height: 8rem;
  min-height: 2.4rem;
  padding: .55rem .75rem;
  resize: none;
}
#users .chats-composer textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--ring);
  outline: 0;
}
#users .chats-composer textarea:disabled {
  cursor: not-allowed;
  opacity: .6;
}
#users .chats-attach-btn,
#users .chats-send-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-size: .95rem;
  height: 2.4rem;
  justify-content: center;
  transition: background-color 0.12s, color 0.12s;
  width: 2.4rem;
}
#users .chats-attach-btn:hover:not(:disabled),
#users .chats-send-btn:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--text);
}
#users .chats-attach-btn:disabled,
#users .chats-send-btn:disabled {
  cursor: not-allowed;
  opacity: .4;
}
#users .chats-attach-btn.is-recording,
#users .chats-send-btn.is-recording {
  background: var(--danger);
  color: #fff;
}
#users .chats-send-btn {
  background: var(--primary-color);
  color: #fff;
}
#users .chats-send-btn:hover:not(:disabled) {
  background: var(--primary-700);
  color: #fff;
}
#users .chats-composer-hint {
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  flex-shrink: 0;
  font-size: .72rem;
  gap: .4rem;
  line-height: 1.35;
  margin: 0;
  padding: .45rem 1rem;
}
#users .chats-composer-hint i {
  color: var(--primary-color);
  flex-shrink: 0;
}
#users .chats-composer-hint a {
  color: var(--primary-color);
  text-decoration: underline;
}
#users .chats-closed-notice {
  align-items: center;
  background: #fff7ed;
  border-top: 1px solid #fed7aa;
  color: #9a3412;
  display: flex;
  flex-shrink: 0;
  gap: .65rem;
  padding: .85rem 1rem;
}
#users .chats-closed-notice i {
  color: #ea580c;
  font-size: 1.1rem;
}
#users .chats-closed-notice p {
  font-size: .8rem;
  line-height: 1.4;
  margin: 0;
}
@media (max-width: 900px) {
  #users .chats-shell {
    grid-template-columns: 1fr;
  }
  #users.is-mobile-chat-open .chats-list.is-hidden-mobile {
    display: none;
  }
  #users .chats-list {
    border-right: 0;
  }
  #users .chats-conversation {
    display: none;
  }
  #users .chats-conversation.is-active-mobile {
    display: flex;
  }
  #users .chats-back-btn {
    display: inline-flex;
  }
}
.chats-templates-only {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  text-align: center;
}
.chats-templates-only i {
  font-size: 1.25rem;
  color: var(--warning, #c98a00);
}
.chats-templates-only p {
  margin: 0;
  max-width: 32rem;
}
.chats-templates-only .chats-templates-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--r-md);
  background: var(--accent, #6c5ce7);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}
.chats-templates-only .chats-templates-cta:hover {
  filter: brightness(0.95);
}
.templates-modal .templates-loading,
.templates-modal .templates-error,
.templates-modal .templates-empty {
  padding: 1rem;
  color: var(--text-2);
  text-align: center;
}
.templates-modal .templates-error {
  color: var(--danger, #c0392b);
}
.templates-modal .templates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 28rem;
  overflow-y: auto;
}
.templates-modal .templates-list li {
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
}
.templates-modal .templates-list li:hover {
  background: var(--surface-hover, rgba(0, 0, 0, 0.03));
}
.templates-modal .templates-list-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.templates-modal .templates-tag {
  font-size: 0.7rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-2, #eee);
  color: var(--text-2);
}
.templates-modal .templates-tag.is-cat {
  background: rgba(108, 92, 231, 0.15);
  color: var(--accent, #6c5ce7);
}
.templates-modal .templates-list-preview {
  color: var(--text-2);
  white-space: pre-line;
  display: block;
  line-height: 1.4;
}
.templates-modal .templates-edit {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.templates-modal .templates-edit-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.templates-modal .templates-edit-header div {
  display: flex;
  flex-direction: column;
}
.templates-modal .templates-edit-header small {
  color: var(--text-2);
  font-size: 0.75rem;
}
.templates-modal .templates-back {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--text-2);
}
.templates-modal .templates-back:hover {
  background: var(--surface-hover, rgba(0, 0, 0, 0.03));
}
.templates-modal article label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-2);
}
.templates-modal article input {
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-1);
}
.templates-modal .templates-required {
  color: var(--danger, #c0392b);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: lowercase;
  margin-left: 0.25rem;
}
.templates-modal .templates-preview {
  padding: 0.75rem;
  background: var(--surface-2, #f7f7f9);
  border-radius: var(--r-md);
  border: 1px dashed var(--border);
}
.templates-modal .templates-preview .templates-preview-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
  display: block;
  margin-bottom: 0.5rem;
}
.templates-modal .templates-preview pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9rem;
}
.templates-modal .templates-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.templates-modal .templates-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--r-md);
  border: 0;
  cursor: pointer;
  font-weight: 600;
  background: var(--accent, #6c5ce7);
  color: #fff;
}
.templates-modal .templates-actions button.secondary {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border);
}
.templates-modal .templates-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
