/* Merged base styles from /css/touchgrass.css and app styles */

/* ===== grid.css ===== */

/* ============================================ */

/* This file has a mobile-to-desktop breakpoint */

/* ============================================ */

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.clear {
  clear: both;
  display: block;
  overflow: hidden;
  visibility: hidden;
  width: 0;
  height: 0;
}

.muted {
  opacity: 0.6;
  font-size: 0.9rem;
}

.grid-container:before, .mobile-grid-5:before, .mobile-grid-10:before, .mobile-grid-15:before, .mobile-grid-20:before, .mobile-grid-25:before, .mobile-grid-30:before, .mobile-grid-35:before, .mobile-grid-40:before, .mobile-grid-45:before, .mobile-grid-50:before, .mobile-grid-55:before, .mobile-grid-60:before, .mobile-grid-65:before, .mobile-grid-70:before, .mobile-grid-75:before, .mobile-grid-80:before, .mobile-grid-85:before, .mobile-grid-90:before, .mobile-grid-95:before, .mobile-grid-100:before, .mobile-grid-33:before, .mobile-grid-66:before, .tablet-grid-5:before, .tablet-grid-10:before, .tablet-grid-15:before, .tablet-grid-20:before, .tablet-grid-25:before, .tablet-grid-30:before, .tablet-grid-35:before, .tablet-grid-40:before, .tablet-grid-45:before, .tablet-grid-50:before, .tablet-grid-55:before, .tablet-grid-60:before, .tablet-grid-65:before, .tablet-grid-70:before, .tablet-grid-75:before, .tablet-grid-80:before, .tablet-grid-85:before, .tablet-grid-90:before, .tablet-grid-95:before, .tablet-grid-100:before, .tablet-grid-33:before, .tablet-grid-66:before, .grid-5:before, .grid-10:before, .grid-15:before, .grid-20:before, .grid-25:before, .grid-30:before, .grid-35:before, .grid-40:before, .grid-45:before, .grid-50:before, .grid-55:before, .grid-60:before, .grid-65:before, .grid-70:before, .grid-75:before, .grid-80:before, .grid-85:before, .grid-90:before, .grid-95:before, .grid-100:before, .grid-33:before, .grid-66:before, .grid-offset:before, .clearfix:before, .grid-container:after, .mobile-grid-5:after, .mobile-grid-10:after, .mobile-grid-15:after, .mobile-grid-20:after, .mobile-grid-25:after, .mobile-grid-30:after, .mobile-grid-35:after, .mobile-grid-40:after, .mobile-grid-45:after, .mobile-grid-50:after, .mobile-grid-55:after, .mobile-grid-60:after, .mobile-grid-65:after, .mobile-grid-70:after, .mobile-grid-75:after, .mobile-grid-80:after, .mobile-grid-85:after, .mobile-grid-90:after, .mobile-grid-95:after, .mobile-grid-100:after, .mobile-grid-33:after, .mobile-grid-66:after, .tablet-grid-5:after, .tablet-grid-10:after, .tablet-grid-15:after, .tablet-grid-20:after, .tablet-grid-25:after, .tablet-grid-30:after, .tablet-grid-35:after, .tablet-grid-40:after, .tablet-grid-45:after, .tablet-grid-50:after, .tablet-grid-55:after, .tablet-grid-60:after, .tablet-grid-65:after, .tablet-grid-70:after, .tablet-grid-75:after, .tablet-grid-80:after, .tablet-grid-85:after, .tablet-grid-90:after, .tablet-grid-95:after, .tablet-grid-100:after, .tablet-grid-33:after, .tablet-grid-66:after, .grid-5:after, .grid-10:after, .grid-15:after, .grid-20:after, .grid-25:after, .grid-30:after, .grid-35:after, .grid-40:after, .grid-45:after, .grid-50:after, .grid-55:after, .grid-60:after, .grid-65:after, .grid-70:after, .grid-75:after, .grid-80:after, .grid-85:after, .grid-90:after, .grid-95:after, .grid-100:after, .grid-33:after, .grid-66:after, .grid-offset:after, .clearfix:after {
  content: ".";
  display: block;
  overflow: hidden;
  visibility: hidden;
  font-size: 0;
  line-height: 0;
  width: 0;
  height: 0;
}

.grid-container:after, .mobile-grid-5:after, .mobile-grid-10:after, .mobile-grid-15:after, .mobile-grid-20:after, .mobile-grid-25:after, .mobile-grid-30:after, .mobile-grid-35:after, .mobile-grid-40:after, .mobile-grid-45:after, .mobile-grid-50:after, .mobile-grid-55:after, .mobile-grid-60:after, .mobile-grid-65:after, .mobile-grid-70:after, .mobile-grid-75:after, .mobile-grid-80:after, .mobile-grid-85:after, .mobile-grid-90:after, .mobile-grid-95:after, .mobile-grid-100:after, .mobile-grid-33:after, .mobile-grid-66:after, .tablet-grid-5:after, .tablet-grid-10:after, .tablet-grid-15:after, .tablet-grid-20:after, .tablet-grid-25:after, .tablet-grid-30:after, .tablet-grid-35:after, .tablet-grid-40:after, .tablet-grid-45:after, .tablet-grid-50:after, .tablet-grid-55:after, .tablet-grid-60:after, .tablet-grid-65:after, .tablet-grid-70:after, .tablet-grid-75:after, .tablet-grid-80:after, .tablet-grid-85:after, .tablet-grid-90:after, .tablet-grid-95:after, .tablet-grid-100:after, .tablet-grid-33:after, .tablet-grid-66:after, .grid-5:after, .grid-10:after, .grid-15:after, .grid-20:after, .grid-25:after, .grid-30:after, .grid-35:after, .grid-40:after, .grid-45:after, .grid-50:after, .grid-55:after, .grid-60:after, .grid-65:after, .grid-70:after, .grid-75:after, .grid-80:after, .grid-85:after, .grid-90:after, .grid-95:after, .grid-100:after, .grid-33:after, .grid-66:after, .grid-offset:after, .clearfix:after {
  clear: both;
}

.grid-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1440px;
  padding-left: 10px;
  padding-right: 10px;
}

.mobile-grid-5, .mobile-grid-10, .mobile-grid-15, .mobile-grid-20, .mobile-grid-25, .mobile-grid-30, .mobile-grid-35, .mobile-grid-40, .mobile-grid-45, .mobile-grid-50, .mobile-grid-55, .mobile-grid-60, .mobile-grid-65, .mobile-grid-70, .mobile-grid-75, .mobile-grid-80, .mobile-grid-85, .mobile-grid-90, .mobile-grid-95, .mobile-grid-100, .mobile-grid-33, .mobile-grid-66, .tablet-grid-5, .tablet-grid-10, .tablet-grid-15, .tablet-grid-20, .tablet-grid-25, .tablet-grid-30, .tablet-grid-35, .tablet-grid-40, .tablet-grid-45, .tablet-grid-50, .tablet-grid-55, .tablet-grid-60, .tablet-grid-65, .tablet-grid-70, .tablet-grid-75, .tablet-grid-80, .tablet-grid-85, .tablet-grid-90, .tablet-grid-95, .tablet-grid-100, .tablet-grid-33, .tablet-grid-66, .grid-5, .grid-10, .grid-15, .grid-20, .grid-25, .grid-30, .grid-35, .grid-40, .grid-45, .grid-50, .grid-55, .grid-60, .grid-65, .grid-70, .grid-75, .grid-80, .grid-85, .grid-90, .grid-95, .grid-100, .grid-33, .grid-66 {
  box-sizing: border-box;
  padding-left: 10px;
  padding-right: 10px;
}

.grid-parent {
  padding-left: 0;
  padding-right: 0;
}

.grid-offset {
  clear: both;
  margin-left: -10px;
  margin-right: -10px;
}

@media (max-width: 767px) {
  .mobile-push-5, .mobile-pull-5, .mobile-push-10, .mobile-pull-10, .mobile-push-15, .mobile-pull-15, .mobile-push-20, .mobile-pull-20, .mobile-push-25, .mobile-pull-25, .mobile-push-30, .mobile-pull-30, .mobile-push-35, .mobile-pull-35, .mobile-push-40, .mobile-pull-40, .mobile-push-45, .mobile-pull-45, .mobile-push-50, .mobile-pull-50, .mobile-push-55, .mobile-pull-55, .mobile-push-60, .mobile-pull-60, .mobile-push-65, .mobile-pull-65, .mobile-push-70, .mobile-pull-70, .mobile-push-75, .mobile-pull-75, .mobile-push-80, .mobile-pull-80, .mobile-push-85, .mobile-pull-85, .mobile-push-90, .mobile-pull-90, .mobile-push-95, .mobile-pull-95, .mobile-push-33, .mobile-pull-33, .mobile-push-66, .mobile-pull-66 {
    position: relative;
  }

  .hide-on-mobile {
    display: none !important;
  }

  .mobile-grid-5 {
    float: left;
    width: 5%;
  }

  .mobile-prefix-5 {
    margin-left: 5%;
  }

  .mobile-suffix-5 {
    margin-right: 5%;
  }

  .mobile-push-5 {
    left: 5%;
  }

  .mobile-pull-5 {
    left: -5%;
  }

  .mobile-grid-10 {
    float: left;
    width: 10%;
  }

  .mobile-prefix-10 {
    margin-left: 10%;
  }

  .mobile-suffix-10 {
    margin-right: 10%;
  }

  .mobile-push-10 {
    left: 10%;
  }

  .mobile-pull-10 {
    left: -10%;
  }

  .mobile-grid-15 {
    float: left;
    width: 15%;
  }

  .mobile-prefix-15 {
    margin-left: 15%;
  }

  .mobile-suffix-15 {
    margin-right: 15%;
  }

  .mobile-push-15 {
    left: 15%;
  }

  .mobile-pull-15 {
    left: -15%;
  }

  .mobile-grid-20 {
    float: left;
    width: 20%;
  }

  .mobile-prefix-20 {
    margin-left: 20%;
  }

  .mobile-suffix-20 {
    margin-right: 20%;
  }

  .mobile-push-20 {
    left: 20%;
  }

  .mobile-pull-20 {
    left: -20%;
  }

  .mobile-grid-25 {
    float: left;
    width: 25%;
  }

  .mobile-prefix-25 {
    margin-left: 25%;
  }

  .mobile-suffix-25 {
    margin-right: 25%;
  }

  .mobile-push-25 {
    left: 25%;
  }

  .mobile-pull-25 {
    left: -25%;
  }

  .mobile-grid-30 {
    float: left;
    width: 30%;
  }

  .mobile-prefix-30 {
    margin-left: 30%;
  }

  .mobile-suffix-30 {
    margin-right: 30%;
  }

  .mobile-push-30 {
    left: 30%;
  }

  .mobile-pull-30 {
    left: -30%;
  }

  .mobile-grid-35 {
    float: left;
    width: 35%;
  }

  .mobile-prefix-35 {
    margin-left: 35%;
  }

  .mobile-suffix-35 {
    margin-right: 35%;
  }

  .mobile-push-35 {
    left: 35%;
  }

  .mobile-pull-35 {
    left: -35%;
  }

  .mobile-grid-40 {
    float: left;
    width: 40%;
  }

  .mobile-prefix-40 {
    margin-left: 40%;
  }

  .mobile-suffix-40 {
    margin-right: 40%;
  }

  .mobile-push-40 {
    left: 40%;
  }

  .mobile-pull-40 {
    left: -40%;
  }

  .mobile-grid-45 {
    float: left;
    width: 45%;
  }

  .mobile-prefix-45 {
    margin-left: 45%;
  }

  .mobile-suffix-45 {
    margin-right: 45%;
  }

  .mobile-push-45 {
    left: 45%;
  }

  .mobile-pull-45 {
    left: -45%;
  }

  .mobile-grid-50 {
    float: left;
    width: 50%;
  }

  .mobile-prefix-50 {
    margin-left: 50%;
  }

  .mobile-suffix-50 {
    margin-right: 50%;
  }

  .mobile-push-50 {
    left: 50%;
  }

  .mobile-pull-50 {
    left: -50%;
  }

  .mobile-grid-55 {
    float: left;
    width: 55%;
  }

  .mobile-prefix-55 {
    margin-left: 55%;
  }

  .mobile-suffix-55 {
    margin-right: 55%;
  }

  .mobile-push-55 {
    left: 55%;
  }

  .mobile-pull-55 {
    left: -55%;
  }

  .mobile-grid-60 {
    float: left;
    width: 60%;
  }

  .mobile-prefix-60 {
    margin-left: 60%;
  }

  .mobile-suffix-60 {
    margin-right: 60%;
  }

  .mobile-push-60 {
    left: 60%;
  }

  .mobile-pull-60 {
    left: -60%;
  }

  .mobile-grid-65 {
    float: left;
    width: 65%;
  }

  .mobile-prefix-65 {
    margin-left: 65%;
  }

  .mobile-suffix-65 {
    margin-right: 65%;
  }

  .mobile-push-65 {
    left: 65%;
  }

  .mobile-pull-65 {
    left: -65%;
  }

  .mobile-grid-70 {
    float: left;
    width: 70%;
  }

  .mobile-prefix-70 {
    margin-left: 70%;
  }

  .mobile-suffix-70 {
    margin-right: 70%;
  }

  .mobile-push-70 {
    left: 70%;
  }

  .mobile-pull-70 {
    left: -70%;
  }

  .mobile-grid-75 {
    float: left;
    width: 75%;
  }

  .mobile-prefix-75 {
    margin-left: 75%;
  }

  .mobile-suffix-75 {
    margin-right: 75%;
  }

  .mobile-push-75 {
    left: 75%;
  }

  .mobile-pull-75 {
    left: -75%;
  }

  .mobile-grid-80 {
    float: left;
    width: 80%;
  }

  .mobile-prefix-80 {
    margin-left: 80%;
  }

  .mobile-suffix-80 {
    margin-right: 80%;
  }

  .mobile-push-80 {
    left: 80%;
  }

  .mobile-pull-80 {
    left: -80%;
  }

  .mobile-grid-85 {
    float: left;
    width: 85%;
  }

  .mobile-prefix-85 {
    margin-left: 85%;
  }

  .mobile-suffix-85 {
    margin-right: 85%;
  }

  .mobile-push-85 {
    left: 85%;
  }

  .mobile-pull-85 {
    left: -85%;
  }

  .mobile-grid-90 {
    float: left;
    width: 90%;
  }

  .mobile-prefix-90 {
    margin-left: 90%;
  }

  .mobile-suffix-90 {
    margin-right: 90%;
  }

  .mobile-push-90 {
    left: 90%;
  }

  .mobile-pull-90 {
    left: -90%;
  }

  .mobile-grid-95 {
    float: left;
    width: 95%;
  }

  .mobile-prefix-95 {
    margin-left: 95%;
  }

  .mobile-suffix-95 {
    margin-right: 95%;
  }

  .mobile-push-95 {
    left: 95%;
  }

  .mobile-pull-95 {
    left: -95%;
  }

  .mobile-grid-33 {
    float: left;
    width: 33.33333%;
  }

  .mobile-prefix-33 {
    margin-left: 33.33333%;
  }

  .mobile-suffix-33 {
    margin-right: 33.33333%;
  }

  .mobile-push-33 {
    left: 33.33333%;
  }

  .mobile-pull-33 {
    left: -33.33333%;
  }

  .mobile-grid-66 {
    float: left;
    width: 66.66667%;
  }

  .mobile-prefix-66 {
    margin-left: 66.66667%;
  }

  .mobile-suffix-66 {
    margin-right: 66.66667%;
  }

  .mobile-push-66 {
    left: 66.66667%;
  }

  .mobile-pull-66 {
    left: -66.66667%;
  }

  .mobile-grid-100 {
    clear: both;
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .tablet-push-5, .tablet-pull-5, .tablet-push-10, .tablet-pull-10, .tablet-push-15, .tablet-pull-15, .tablet-push-20, .tablet-pull-20, .tablet-push-25, .tablet-pull-25, .tablet-push-30, .tablet-pull-30, .tablet-push-35, .tablet-pull-35, .tablet-push-40, .tablet-pull-40, .tablet-push-45, .tablet-pull-45, .tablet-push-50, .tablet-pull-50, .tablet-push-55, .tablet-pull-55, .tablet-push-60, .tablet-pull-60, .tablet-push-65, .tablet-pull-65, .tablet-push-70, .tablet-pull-70, .tablet-push-75, .tablet-pull-75, .tablet-push-80, .tablet-pull-80, .tablet-push-85, .tablet-pull-85, .tablet-push-90, .tablet-pull-90, .tablet-push-95, .tablet-pull-95, .tablet-push-33, .tablet-pull-33, .tablet-push-66, .tablet-pull-66 {
    position: relative;
  }

  .hide-on-tablet {
    display: none !important;
  }

  .tablet-grid-5 {
    float: left;
    width: 5%;
  }

  .tablet-prefix-5 {
    margin-left: 5%;
  }

  .tablet-suffix-5 {
    margin-right: 5%;
  }

  .tablet-push-5 {
    left: 5%;
  }

  .tablet-pull-5 {
    left: -5%;
  }

  .tablet-grid-10 {
    float: left;
    width: 10%;
  }

  .tablet-prefix-10 {
    margin-left: 10%;
  }

  .tablet-suffix-10 {
    margin-right: 10%;
  }

  .tablet-push-10 {
    left: 10%;
  }

  .tablet-pull-10 {
    left: -10%;
  }

  .tablet-grid-15 {
    float: left;
    width: 15%;
  }

  .tablet-prefix-15 {
    margin-left: 15%;
  }

  .tablet-suffix-15 {
    margin-right: 15%;
  }

  .tablet-push-15 {
    left: 15%;
  }

  .tablet-pull-15 {
    left: -15%;
  }

  .tablet-grid-20 {
    float: left;
    width: 20%;
  }

  .tablet-prefix-20 {
    margin-left: 20%;
  }

  .tablet-suffix-20 {
    margin-right: 20%;
  }

  .tablet-push-20 {
    left: 20%;
  }

  .tablet-pull-20 {
    left: -20%;
  }

  .tablet-grid-25 {
    float: left;
    width: 25%;
  }

  .tablet-prefix-25 {
    margin-left: 25%;
  }

  .tablet-suffix-25 {
    margin-right: 25%;
  }

  .tablet-push-25 {
    left: 25%;
  }

  .tablet-pull-25 {
    left: -25%;
  }

  .tablet-grid-30 {
    float: left;
    width: 30%;
  }

  .tablet-prefix-30 {
    margin-left: 30%;
  }

  .tablet-suffix-30 {
    margin-right: 30%;
  }

  .tablet-push-30 {
    left: 30%;
  }

  .tablet-pull-30 {
    left: -30%;
  }

  .tablet-grid-35 {
    float: left;
    width: 35%;
  }

  .tablet-prefix-35 {
    margin-left: 35%;
  }

  .tablet-suffix-35 {
    margin-right: 35%;
  }

  .tablet-push-35 {
    left: 35%;
  }

  .tablet-pull-35 {
    left: -35%;
  }

  .tablet-grid-40 {
    float: left;
    width: 40%;
  }

  .tablet-prefix-40 {
    margin-left: 40%;
  }

  .tablet-suffix-40 {
    margin-right: 40%;
  }

  .tablet-push-40 {
    left: 40%;
  }

  .tablet-pull-40 {
    left: -40%;
  }

  .tablet-grid-45 {
    float: left;
    width: 45%;
  }

  .tablet-prefix-45 {
    margin-left: 45%;
  }

  .tablet-suffix-45 {
    margin-right: 45%;
  }

  .tablet-push-45 {
    left: 45%;
  }

  .tablet-pull-45 {
    left: -45%;
  }

  .tablet-grid-50 {
    float: left;
    width: 50%;
  }

  .tablet-prefix-50 {
    margin-left: 50%;
  }

  .tablet-suffix-50 {
    margin-right: 50%;
  }

  .tablet-push-50 {
    left: 50%;
  }

  .tablet-pull-50 {
    left: -50%;
  }

  .tablet-grid-55 {
    float: left;
    width: 55%;
  }

  .tablet-prefix-55 {
    margin-left: 55%;
  }

  .tablet-suffix-55 {
    margin-right: 55%;
  }

  .tablet-push-55 {
    left: 55%;
  }

  .tablet-pull-55 {
    left: -55%;
  }

  .tablet-grid-60 {
    float: left;
    width: 60%;
  }

  .tablet-prefix-60 {
    margin-left: 60%;
  }

  .tablet-suffix-60 {
    margin-right: 60%;
  }

  .tablet-push-60 {
    left: 60%;
  }

  .tablet-pull-60 {
    left: -60%;
  }

  .tablet-grid-65 {
    float: left;
    width: 65%;
  }

  .tablet-prefix-65 {
    margin-left: 65%;
  }

  .tablet-suffix-65 {
    margin-right: 65%;
  }

  .tablet-push-65 {
    left: 65%;
  }

  .tablet-pull-65 {
    left: -65%;
  }

  .tablet-grid-70 {
    float: left;
    width: 70%;
  }

  .tablet-prefix-70 {
    margin-left: 70%;
  }

  .tablet-suffix-70 {
    margin-right: 70%;
  }

  .tablet-push-70 {
    left: 70%;
  }

  .tablet-pull-70 {
    left: -70%;
  }

  .tablet-grid-75 {
    float: left;
    width: 75%;
  }

  .tablet-prefix-75 {
    margin-left: 75%;
  }

  .tablet-suffix-75 {
    margin-right: 75%;
  }

  .tablet-push-75 {
    left: 75%;
  }

  .tablet-pull-75 {
    left: -75%;
  }

  .tablet-grid-80 {
    float: left;
    width: 80%;
  }

  .tablet-prefix-80 {
    margin-left: 80%;
  }

  .tablet-suffix-80 {
    margin-right: 80%;
  }

  .tablet-push-80 {
    left: 80%;
  }

  .tablet-pull-80 {
    left: -80%;
  }

  .tablet-grid-85 {
    float: left;
    width: 85%;
  }

  .tablet-prefix-85 {
    margin-left: 85%;
  }

  .tablet-suffix-85 {
    margin-right: 85%;
  }

  .tablet-push-85 {
    left: 85%;
  }

  .tablet-pull-85 {
    left: -85%;
  }

  .tablet-grid-90 {
    float: left;
    width: 90%;
  }

  .tablet-prefix-90 {
    margin-left: 90%;
  }

  .tablet-suffix-90 {
    margin-right: 90%;
  }

  .tablet-push-90 {
    left: 90%;
  }

  .tablet-pull-90 {
    left: -90%;
  }

  .tablet-grid-95 {
    float: left;
    width: 95%;
  }

  .tablet-prefix-95 {
    margin-left: 95%;
  }

  .tablet-suffix-95 {
    margin-right: 95%;
  }

  .tablet-push-95 {
    left: 95%;
  }

  .tablet-pull-95 {
    left: -95%;
  }

  .tablet-grid-33 {
    float: left;
    width: 33.33333%;
  }

  .tablet-prefix-33 {
    margin-left: 33.33333%;
  }

  .tablet-suffix-33 {
    margin-right: 33.33333%;
  }

  .tablet-push-33 {
    left: 33.33333%;
  }

  .tablet-pull-33 {
    left: -33.33333%;
  }

  .tablet-grid-66 {
    float: left;
    width: 66.66667%;
  }

  .tablet-prefix-66 {
    margin-left: 66.66667%;
  }

  .tablet-suffix-66 {
    margin-right: 66.66667%;
  }

  .tablet-push-66 {
    left: 66.66667%;
  }

  .tablet-pull-66 {
    left: -66.66667%;
  }

  .tablet-grid-100 {
    clear: both;
    width: 100%;
  }
}

@media (min-width: 1025px) {
  .push-5, .pull-5, .push-10, .pull-10, .push-15, .pull-15, .push-20, .pull-20, .push-25, .pull-25, .push-30, .pull-30, .push-35, .pull-35, .push-40, .pull-40, .push-45, .pull-45, .push-50, .pull-50, .push-55, .pull-55, .push-60, .pull-60, .push-65, .pull-65, .push-70, .pull-70, .push-75, .pull-75, .push-80, .pull-80, .push-85, .pull-85, .push-90, .pull-90, .push-95, .pull-95, .push-33, .pull-33, .push-66, .pull-66 {
    position: relative;
  }

  .hide-on-desktop {
    display: none !important;
  }

  .grid-5 {
    float: left;
    width: 5%;
  }

  .prefix-5 {
    margin-left: 5%;
  }

  .suffix-5 {
    margin-right: 5%;
  }

  .push-5 {
    left: 5%;
  }

  .pull-5 {
    left: -5%;
  }

  .grid-10 {
    float: left;
    width: 10%;
  }

  .prefix-10 {
    margin-left: 10%;
  }

  .suffix-10 {
    margin-right: 10%;
  }

  .push-10 {
    left: 10%;
  }

  .pull-10 {
    left: -10%;
  }

  .grid-15 {
    float: left;
    width: 15%;
  }

  .prefix-15 {
    margin-left: 15%;
  }

  .suffix-15 {
    margin-right: 15%;
  }

  .push-15 {
    left: 15%;
  }

  .pull-15 {
    left: -15%;
  }

  .grid-20 {
    float: left;
    width: 20%;
  }

  .prefix-20 {
    margin-left: 20%;
  }

  .suffix-20 {
    margin-right: 20%;
  }

  .push-20 {
    left: 20%;
  }

  .pull-20 {
    left: -20%;
  }

  .grid-25 {
    float: left;
    width: 25%;
  }

  .prefix-25 {
    margin-left: 25%;
  }

  .suffix-25 {
    margin-right: 25%;
  }

  .push-25 {
    left: 25%;
  }

  .pull-25 {
    left: -25%;
  }

  .grid-30 {
    float: left;
    width: 30%;
  }

  .prefix-30 {
    margin-left: 30%;
  }

  .suffix-30 {
    margin-right: 30%;
  }

  .push-30 {
    left: 30%;
  }

  .pull-30 {
    left: -30%;
  }

  .grid-35 {
    float: left;
    width: 35%;
  }

  .prefix-35 {
    margin-left: 35%;
  }

  .suffix-35 {
    margin-right: 35%;
  }

  .push-35 {
    left: 35%;
  }

  .pull-35 {
    left: -35%;
  }

  .grid-40 {
    float: left;
    width: 40%;
  }

  .prefix-40 {
    margin-left: 40%;
  }

  .suffix-40 {
    margin-right: 40%;
  }

  .push-40 {
    left: 40%;
  }

  .pull-40 {
    left: -40%;
  }

  .grid-45 {
    float: left;
    width: 45%;
  }

  .prefix-45 {
    margin-left: 45%;
  }

  .suffix-45 {
    margin-right: 45%;
  }

  .push-45 {
    left: 45%;
  }

  .pull-45 {
    left: -45%;
  }

  .grid-50 {
    float: left;
    width: 50%;
  }

  .prefix-50 {
    margin-left: 50%;
  }

  .suffix-50 {
    margin-right: 50%;
  }

  .push-50 {
    left: 50%;
  }

  .pull-50 {
    left: -50%;
  }

  .grid-55 {
    float: left;
    width: 55%;
  }

  .prefix-55 {
    margin-left: 55%;
  }

  .suffix-55 {
    margin-right: 55%;
  }

  .push-55 {
    left: 55%;
  }

  .pull-55 {
    left: -55%;
  }

  .grid-60 {
    float: left;
    width: 60%;
  }

  .prefix-60 {
    margin-left: 60%;
  }

  .suffix-60 {
    margin-right: 60%;
  }

  .push-60 {
    left: 60%;
  }

  .pull-60 {
    left: -60%;
  }

  .grid-65 {
    float: left;
    width: 65%;
  }

  .prefix-65 {
    margin-left: 65%;
  }

  .suffix-65 {
    margin-right: 65%;
  }

  .push-65 {
    left: 65%;
  }

  .pull-65 {
    left: -65%;
  }

  .grid-70 {
    float: left;
    width: 70%;
  }

  .prefix-70 {
    margin-left: 70%;
  }

  .suffix-70 {
    margin-right: 70%;
  }

  .push-70 {
    left: 70%;
  }

  .pull-70 {
    left: -70%;
  }

  .grid-75 {
    float: left;
    width: 75%;
  }

  .prefix-75 {
    margin-left: 75%;
  }

  .suffix-75 {
    margin-right: 75%;
  }

  .push-75 {
    left: 75%;
  }

  .pull-75 {
    left: -75%;
  }

  .grid-80 {
    float: left;
    width: 80%;
  }

  .prefix-80 {
    margin-left: 80%;
  }

  .suffix-80 {
    margin-right: 80%;
  }

  .push-80 {
    left: 80%;
  }

  .pull-80 {
    left: -80%;
  }

  .grid-85 {
    float: left;
    width: 85%;
  }

  .prefix-85 {
    margin-left: 85%;
  }

  .suffix-85 {
    margin-right: 85%;
  }

  .push-85 {
    left: 85%;
  }

  .pull-85 {
    left: -85%;
  }

  .grid-90 {
    float: left;
    width: 90%;
  }

  .prefix-90 {
    margin-left: 90%;
  }

  .suffix-90 {
    margin-right: 90%;
  }

  .push-90 {
    left: 90%;
  }

  .pull-90 {
    left: -90%;
  }

  .grid-95 {
    float: left;
    width: 95%;
  }

  .prefix-95 {
    margin-left: 95%;
  }

  .suffix-95 {
    margin-right: 95%;
  }

  .push-95 {
    left: 95%;
  }

  .pull-95 {
    left: -95%;
  }

  .grid-33 {
    float: left;
    width: 33.33333%;
  }

  .prefix-33 {
    margin-left: 33.33333%;
  }

  .suffix-33 {
    margin-right: 33.33333%;
  }

  .push-33 {
    left: 33.33333%;
  }

  .pull-33 {
    left: -33.33333%;
  }

  .grid-66 {
    float: left;
    width: 66.66667%;
  }

  .prefix-66 {
    margin-left: 66.66667%;
  }

  .suffix-66 {
    margin-right: 66.66667%;
  }

  .push-66 {
    left: 66.66667%;
  }

  .pull-66 {
    left: -66.66667%;
  }

  .grid-100 {
    clear: both;
    width: 100%;
  }
}

/* ===== basic.css ===== */

@import url(https://fonts.bunny.net/css?family=albert-sans:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i|alegreya-sans:100,100i,300,300i,400,400i,500,500i,700,700i,800,800i,900,900i|montserrat-alternates:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i|quicksand:300,400,500,600,700);

/* COLORS */

:root {
  --forest-green: #546A50;
  --sage-green: #6c8f65;
  --off-white: #F0F1EB;
  --salmon: #C26752;
  --terracotta: #A65436;
  --charcoal: #3C4A4E;
  --slate-blue: #495867;
  --dusty-blue: #6C7A89;
  --sage-green-dark: #587552;
  --app-bg-top: #f3f1e8;
  --app-bg-bottom: #f3f1e8;
  --app-line: rgba(84, 106, 80, 0.16);
  --app-accent: var(--sage-green);
  --app-accent-strong: #546a50;
  --app-accent-soft: rgba(84, 106, 80, 0.14);
  --app-shadow: none;
  --app-card-bg: rgba(255, 255, 255, 0.72);
  --app-card-radius: 2rem;
  --app-control-radius: 1.25rem;
  --app-text: #333333;
  --app-muted-text: rgba(51, 51, 51, 0.72);
  --app-input-border: #cfcfcf;
  --tg-safe-area-top: env(safe-area-inset-top, 0px);
}

/* FONTS */

body {
  font-family: "Alegreya Sans", "Segoe UI", sans-serif;
  background-color: #f0f1eb;
  color: #333;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: "Albert Sans", "Segoe UI", sans-serif;
  color: #222;
}

em {
  font-style: italic;
}

/* SIZING */

html {
  font-size: 18px;
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.75rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

h5 {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

h6 {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

small {
  font-size: 0.875rem;
  line-height: 1.5;
}

button, input, textarea {
  font-size: 1rem;
  line-height: 1.4;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem;
}

ul, ol {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

blockquote {
  font-size: 1.25rem;
  line-height: 1.7;
  font-style: italic;
  border-left: 4px solid #ccc;
  padding-left: 1rem;
  margin: 1rem 0;
}

a:link, a:visited {
  color: darkolivegreen;
}

a:hover, a:active {
  color: darkgreen;
}

/* STRUCTURE */

main {
  padding: 4rem;
  z-index: 100;
  position: relative;
}

footer {
  width: 100%;
  padding-top: 1rem;
}

.footer-container {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,.1);
  margin-bottom: 2rem;
}

strong {
  font-weight: 600;
}

hr {
  height: 1px;
  border: none;
  background-color: rgba(0,0,0,.1);
}

.pill {
  display: inline-block;
  background-color: var(--off-white);
  padding: .5rem 1rem;
  margin-right: 1.5rem;
  margin-left: -.5rem;
  border-radius: 3rem;
  margin-bottom: 1rem;
}

/* FORMS */

.input-field {
  border-radius: 1.25rem;
  background-color: #ffffff;
  border: 0.125rem solid black;
  display: block;
  width: calc(100% - 2rem);
  padding: 0.625rem 1rem;
  height: 1.25rem;
  font-family: Montserrat, "Segoe UI", sans-serif !important;
  font-size: 1rem !important;
}

.submit-button {
  border-radius: 1.25rem;
  background-color: #546a50;
  color: #fff !important;
  width: 100%;
  display: block;
  margin-top: 1.5rem;
  border: none;
  padding: 0.7rem 0;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.link-button {
  background: none;
  color: var(--charcoal);
  display: block;
  width: auto;
  font-size: .9rem;
  opacity: .8;
  margin: auto;
  margin-top: 0;
  border: none;
  padding: 0.7rem 0;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.like-btn {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid #cc0000;
  color: #cc0000;
  padding: .3rem 1rem .3rem .7rem;
  font-size: 1rem;
  line-height: 1rem;
  border-radius: 5rem;
  cursor: pointer;
  margin-right: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-bottom: 5px;
}

.like-btn:hover {
  background-color: #cc0000;
  color: #fff;
}

.recommend-btn {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid #007ACC;
  color: #007ACC;
  padding: .3rem 1rem .3rem .7rem;
  font-size: 1rem;
  line-height: 1rem;
  border-radius: 5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-bottom: 5px;
}

.recommend-btn:hover {
  background-color: #007ACC;
  color: #fff;
}

.tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
  text-align: center;
  font-size: 14px;
  pointer-events: none;
  z-index: 1000000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.2s ease;
  font-family: serif;
}

.tooltip-subtle {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 8px 12px;
  border-radius: 20px;
  white-space: nowrap;
  text-align: center;
  font-size: 14px;
  pointer-events: none;
  z-index: 1000000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.4s 0.4s ease;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.cta-buttons button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f0f1eb;
  color: #333;
  border: 2px solid #ccc;
  border-radius: 5rem;
  padding: 0.3rem 1rem 0.3rem 0.7rem;
  font-size: 1rem;
  line-height: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-buttons button i {
  margin-right: 0.5rem;
}

.cta-buttons button:hover {
  background-color: #ccc;
  color: #fff;
}

.cta-buttons button:active {
  background-color: #1e7e34;
  transform: translateY(0);
}

.review-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.review-textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  resize: vertical;
  min-height: 100px;
}

.expand-button {
  background-color: #007ACC;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
}

.expand-button:hover {
  background-color: #005f99;
}

.rating-stars {
  position: relative;
  display: flex;
  gap: 0.2rem;
  margin-top: 0.5rem;
  z-index: 10;
}

.rating-stars > .star-wrapper {
  font-size: 1.5rem;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.filled-stars {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  gap: 0.2rem;
  z-index: 5;
}

.filled-stars > .star-wrapper {
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* MENU */

header {
  width: 100%;
  height: 4rem;
  background-color: #546a50;
}

.app-article-editor__header {
  background: none !important;
}

.header-container {
  position: relative;
  height: 4rem;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
}

.profile-picture {
  margin-left: .3rem;
  margin-top: -.2rem;
}

.logo-title {
  text-align: center;
}

.centered-logo {
  position: absolute;
  left: 50%;
  width: 3.5rem;
  text-align: center;
  margin-left: -1.75rem;
}

.logo {
  width: 3rem;
  margin-top: .5rem;
}

.touch-grass-title {
  position: absolute;
  margin-top: 1rem;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.touch-grass-title h1 {
  margin: 0;
  display: inline-block;
  font-weight: 500;
  font-size: 2.3rem;
  color: #000;
}

.settings-icon {
  height: 30px;
  width: 30px;
}

.header-icon {
  height: 1.7rem;
  cursor: pointer;
}

.pfp-icon {
  height: 2.2rem;
  width: 2.2rem;
  border: 2px solid #fff;
  border-radius: 50%;
  margin-top: 0px;
  margin-right: -5px;
}

.header-icons {
  position: absolute;
  top: .5rem;
  right: .7rem;
  height: 2rem;
  background-color: rgba(255,255,255,.2);
  padding: .5rem .7rem .5rem 1rem;
  border-radius: 2rem;
}

/* BENTO BOXES */

.bento {
  padding: 1.5rem 2rem;
  border-radius: 2rem;
  position: relative;
  margin-bottom: 20px;
}

.bento h1, .bento h2, .bento h3, .bento h4 {
  font-weight: 500;
  margin-bottom: 2rem;
}

.bento-dark {
  background-color: #546a50;
  color: #fff !important;
}

.bento-dark label {
  color: #fff !important;
}

.bento-dark h1, .bento-dark h2, .bento-dark h3, .bento-dark h4, .bento-dark p, .bento-dark a {
  color: #fff !important;
}

.bento ul {
  margin: 0;
  padding: 0;
  width: calc(100% + 2rem);
  margin-left: -1rem;
}

.bento li {
  width: 100%;
  list-style-type: none;
  font-weight: 600;
}

.bento-dark li {
  background-color: rgba(255,255,255,.9);
  color: #333;
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.bento-light {
  background-color: rgba(255,255,255,.7);
  color: #333;
}

.bento-light ul {
  margin-bottom: -1rem;
}

.bento-light li {
  background-color: rgba(84, 106, 80, 0.25);
  color: #333;
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.bento-light .edit-icon, .bento-transparent .edit-icon {
  background-color: rgba(84, 106, 80, 0.25);
  box-shadow: none;
}

.bento-transparent {
  background-color: rgba(255, 255, 255, 0.5);
  color: #333;
}

.bento-transparent li {
  background-color: rgba(0, 0, 0, 0.1);
  color: #333;
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

@media (max-width: 768px) {
  .bento {
    padding: 1.5rem 1.5rem;
  }

  .bento ul {
    width: calc(100% + 1rem);
    margin-left: -.5rem;
  }

  .bento-light ul {
    margin-bottom: -1.5rem;
  }
}

/* ===== menu.css ===== */

.header-icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.header-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-icon-button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.notification-count {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.notification-count[hidden] {
  display: none;
}

.notification-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
  width: min(320px, 80vw);
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  padding: 0.75rem;
  z-index: 2402;
  color: #222;
}

.notification-menu__header {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.notification-menu__section {
  margin-bottom: 0.75rem;
}

.notification-menu__section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #777;
  margin-bottom: 0.4rem;
}

.notification-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notification-menu__item {
  margin-bottom: 0.35rem;
}

.notification-menu__item a {
  color: #222;
  text-decoration: none;
  font-size: 0.9rem;
}

.notification-menu__item a:hover {
  text-decoration: underline;
}

.notification-menu__empty {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.notification-menu__link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  text-decoration: none;
  color: #2a6dff;
}

.notification-menu__link:hover {
  text-decoration: underline;
}

/* ===== social.css ===== */

/* Touchgrass social feature styles */

.tg-skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: #2b6cb0;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  z-index: 1000;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(43, 108, 176, 0.25);
}

.tg-skip-link:focus, .tg-skip-link:active {
  left: 1rem;
  top: 1rem;
}

/* Profile layout selector ------------------------------------------------ */

.tg-profile-layout-settings {
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.08);
  margin: 2.5rem auto;
  padding: 2.5rem;
  max-width: 960px;
}

.tg-profile-layout-settings__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tg-profile-layout-settings__header h2 {
  font-size: 1.6rem;
  margin: 0;
}

.tg-profile-layout-settings__header p {
  margin: 0;
  color: #4a5568;
}

.tg-profile-layout-settings__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.tg-layout-chip {
  align-items: flex-start;
  background: #f7fafc;
  border: 2px solid transparent;
  border-radius: 1rem;
  color: #2d3748;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.4rem;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tg-layout-chip:hover, .tg-layout-chip:focus {
  border-color: #63b3ed;
  box-shadow: 0 10px 24px rgba(99, 179, 237, 0.25);
  outline: none;
}

.tg-layout-chip.is-active {
  background: #ebf8ff;
  border-color: #2b6cb0;
  box-shadow: 0 14px 30px rgba(43, 108, 176, 0.2);
}

.tg-layout-chip__title {
  font-weight: 600;
}

.tg-layout-chip__hint {
  color: #4a5568;
  font-size: 0.95rem;
}

/* Layout variants -------------------------------------------------------- */

.tg-profile-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tg-profile-layout[data-layout="segmented"] .profile-main > section, .tg-profile-layout[data-layout="segmented"] .profile-main > div {
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(18, 38, 63, 0.08);
  padding: 2rem;
}

.tg-profile-layout[data-layout="segmented"] .profile-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tg-profile-layout[data-layout="showcase"] .profile-main {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tg-profile-layout[data-layout="showcase"] #upto-section, .tg-profile-layout[data-layout="showcase"] #upto-books-section, .tg-profile-layout[data-layout="showcase"] #upto-movies-section, .tg-profile-layout[data-layout="showcase"] #upto-albums-section {
  grid-column: 1 / -1;
}

.tg-profile-layout[data-layout="showcase"] #upto-section .upto-options, .tg-profile-layout[data-layout="showcase"] #upto-books-section .upto-options, .tg-profile-layout[data-layout="showcase"] #upto-movies-section .upto-options, .tg-profile-layout[data-layout="showcase"] #upto-albums-section .upto-options {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tg-profile-layout[data-layout="showcase"] #upto-section .upto-category, .tg-profile-layout[data-layout="showcase"] #upto-books-section .upto-category, .tg-profile-layout[data-layout="showcase"] #upto-movies-section .upto-category, .tg-profile-layout[data-layout="showcase"] #upto-albums-section .upto-category {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1.1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
  padding: 1.5rem;
}

/* Media picker ----------------------------------------------------------- */

.tg-media-picker {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 480px;
}

.tg-media-picker__header h2 {
  margin: 0;
}

.tg-media-picker__header p {
  margin: 0.5rem 0 0 0;
  color: #4a5568;
}

.tg-media-picker__body {
  display: grid;
  gap: 1.5rem;
}

.tg-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.tg-section-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.tg-section-header p {
  margin: 0;
  color: #4a5568;
}

.tg-section-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tg-media-chip-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tg-media-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-media-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.tg-media-chip__art {
  width: 64px;
  height: 64px;
  border-radius: 0.75rem;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.tg-media-chip__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tg-media-chip__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.tg-media-chip__subtitle {
  margin: 0;
  color: #4a5568;
}

.tg-media-chip__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #4a5568;
}

.tg-media-chip__meta span:not(:first-child)::before {
  content: "•";
  margin-right: 0.35rem;
  color: #cbd5f5;
}

.tg-media-chip__link {
  font-size: 0.85rem;
  color: #2b6cb0;
  text-decoration: none;
}

.tg-media-chip__link:hover, .tg-media-chip__link:focus {
  text-decoration: underline;
}

.tg-media-chip__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tg-media-badge {
  background: #edf2f7;
  border-radius: 999px;
  color: #2d3748;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  text-transform: capitalize;
}

.tg-media-badge--liked {
  background: rgba(236, 201, 75, 0.2);
  color: #b7791f;
}

.tg-media-badge--recommended {
  background: rgba(72, 187, 120, 0.2);
  color: #2f855a;
}

.tg-media-badge--reminder {
  background: rgba(99, 179, 237, 0.2);
  color: #2b6cb0;
}

.tg-media-badge--visibility {
  background: rgba(203, 213, 224, 0.4);
  color: #4a5568;
}

.tg-post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tg-post-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.tg-post-card__content {
  margin: 0;
  line-height: 1.55;
  color: #2d3748;
}

.tg-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #4a5568;
}

.tg-post-card__badge {
  background: #edf2f7;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-weight: 600;
  font-size: 0.75rem;
}

.tg-post-card__badge--muted {
  background: #f7fafc;
  color: #718096;
}

.tg-photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.tg-photo-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tg-photo-card img, .tg-photo-card__placeholder {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.tg-photo-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf2f7;
  color: #4a5568;
  font-weight: 600;
}

.tg-photo-card__caption {
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  color: #4a5568;
  font-size: 0.9rem;
}

.tg-goal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tg-goal {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tg-goal__title {
  font-weight: 600;
  margin: 0;
}

.tg-goal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #4a5568;
}

.tg-goal__progress {
  background: rgba(56, 189, 248, 0.15);
  border-radius: 999px;
  color: #0c4a6e;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
}

.tg-goal__summary {
  margin: 0;
  color: #4a5568;
  font-size: 0.9rem;
}

.tg-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tg-tablist__tab {
  background: #edf2f7;
  border: none;
  border-radius: 999px;
  color: #2d3748;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.55rem 1.2rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.tg-tablist__tab.is-active {
  background: #2b6cb0;
  color: #fff;
}

/* Friendship hub --------------------------------------------------------- */

.tg-friends-hub {
  margin: 0 auto;
  max-width: 1100px;
  padding: 3rem 1.5rem 4rem;
}

.tg-friends-hub__intro {
  align-items: flex-start;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 2.25rem 2.5rem;
}

.tg-friends-hub__intro h1 {
  font-size: 2rem;
  margin: 0;
}

.tg-friends-hub__intro p {
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.tg-friends-hub__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tg-pill-button {
  align-items: center;
  background: #2b6cb0;
  border: none;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 600;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.tg-pill-button:hover, .tg-pill-button:focus {
  background: #24569b;
  box-shadow: 0 12px 28px rgba(36, 86, 155, 0.25);
  outline: none;
}

.tg-pill-button--secondary {
  background: #edf2f7;
  color: #1a202c;
}

.tg-pill-button--secondary:hover, .tg-pill-button--secondary:focus {
  background: #dce6f2;
  box-shadow: none;
}

.tg-friends-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tg-friends-card {
  background: #ffffff;
  border-radius: 1.35rem;
  box-shadow: 0 18px 40px rgba(18, 38, 63, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.8rem 1.9rem;
}

.tg-friends-card__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.tg-friends-card__header h2 {
  font-size: 1.25rem;
  margin: 0;
}

.tg-friends-card__header span {
  color: #718096;
  font-size: 0.9rem;
}

.tg-friends-card__list, .tg-friends-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tg-friends-card__list-item {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.tg-circle-list-item {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.tg-circle-list-item__body {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.tg-circle-drag-handle {
  align-items: center;
  background: #edf2f7;
  border-radius: 0.75rem;
  color: #4a5568;
  cursor: grab;
  display: inline-flex;
  height: 1.8rem;
  justify-content: center;
  width: 1.8rem;
}

.tg-circle-list-item.is-dragging {
  opacity: 0.6;
}

.tg-circle-list-item.is-drag-over {
  box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.35) inset;
}

.tg-friends-card__list-item button, .tg-friends-card__list-item a {
  font-size: 0.85rem;
}

.tg-friends-card__empty {
  color: #718096;
  font-size: 0.92rem;
}

.tg-friends-chip {
  align-items: center;
  background: #ebf4ff;
  border-radius: 999px;
  color: #1a365d;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  text-transform: uppercase;
}

.tg-friends-tablist {
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.tg-friends-tablist__tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #4a5568;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tg-friends-tablist__tab.is-active {
  border-color: #2b6cb0;
  color: #2b6cb0;
}

.tg-friends-actor {
  align-items: center;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 40px auto;
}

.tg-friends-actor__avatar {
  background: linear-gradient(135deg, #c3dafe, #a3bffa);
  border-radius: 50%;
  height: 40px;
  overflow: hidden;
  width: 40px;
}

.tg-friends-actor__avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tg-friends-actor__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.tg-friends-actor__name {
  font-weight: 600;
}

.tg-friends-actor__name-link {
  color: inherit;
  text-decoration: none;
}

.tg-friends-actor__name-link:hover, .tg-friends-actor__name-link:focus {
  text-decoration: underline;
}

.tg-friends-actor__handle {
  color: #718096;
  font-size: 0.85rem;
}

.tg-friends-actor__notice {
  color: #4a5568;
  font-size: 0.78rem;
  line-height: 1.3;
}

.tg-friends-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tg-icon-button {
  align-items: center;
  background: #edf2f7;
  border: none;
  border-radius: 999px;
  color: #1a202c;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.85rem;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.tg-icon-button:hover, .tg-icon-button:focus {
  background: #dce6f2;
  color: #1a202c;
  outline: none;
}

.tg-icon-button--danger {
  background: #fed7d7;
  color: #822727;
}

.tg-icon-button--danger:hover, .tg-icon-button--danger:focus {
  background: #feb2b2;
}

.tg-friends-section {
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 18px 40px rgba(18, 38, 63, 0.08);
  margin-top: 2.5rem;
  padding: 2.25rem 2.5rem;
}

.tg-friends-section h2 {
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
}

.tg-friends-remote__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tg-friends-remote__panel {
  background: #f7fafc;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.tg-friends-remote__panel h3 {
  font-size: 1.15rem;
  margin: 0;
}

.tg-friends-hint {
  color: #4a5568;
  font-size: 0.9rem;
  margin: 0;
}

.tg-friends-feed {
  background: #f7fafc;
  border-radius: 1rem;
  margin-top: 1rem;
  max-height: 420px;
  overflow: auto;
  padding: 1rem;
}

.tg-friends-feed__item {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 0;
}

.tg-friends-feed__item:last-child {
  border-bottom: none;
}

.tg-friends-feed__meta {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.tg-friends-feed__meta strong {
  font-size: 0.95rem;
}

.tg-friends-feed__content {
  color: #2d3748;
  font-size: 0.95rem;
}

.tg-status-pill {
  background: #e6fffa;
  border-radius: 999px;
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  text-transform: uppercase;
}

.tg-status-pill--pending {
  background: #fffaf0;
  color: #c05621;
}

.tg-status-pill--quiet {
  background: #edf2f7;
  color: #4a5568;
}

.tg-circles-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tg-circles-filter button {
  background: #edf2f7;
  border: none;
  border-radius: 999px;
  color: #1a202c;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
}

.tg-circles-filter button.is-active {
  background: #2b6cb0;
  color: #fff;
}

.tg-modal {
  align-items: center;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 2rem;
  position: fixed;
  z-index: 10000;
}

.tg-modal.is-active {
  display: flex;
}

.tg-modal__dialog {
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  max-height: calc(100vh - 4rem);
  overflow: auto;
  padding: 2rem;
  position: relative;
  width: min(720px, 100%);
}

.tg-modal__close {
  background: transparent;
  border: none;
  color: #4a5568;
  cursor: pointer;
  font-size: 1.8rem;
  position: absolute;
  right: 1.25rem;
  top: 1.1rem;
}

.tg-circle-editor {
  display: grid;
  gap: 1.75rem;
}

.tg-circle-editor__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tg-circle-editor__header h2 {
  margin: 0;
}

.tg-circle-editor__body {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tg-circle-editor__toolbar {
  align-items: center;
  background: #ffffff;
  border-radius: 0.9rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
}

.tg-circle-editor__toolbar p {
  margin: 0;
}

.tg-circle-editor__list {
  background: #f7fafc;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
}

.tg-circle-editor__list h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.tg-circle-editor__item {
  align-items: center;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
}

.tg-circle-editor__item.is-selected {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.tg-circle-editor__item button {
  font-size: 0.85rem;
}

.tg-circle-editor__empty {
  color: #718096;
  font-size: 0.9rem;
}

.tg-circle-editor__form {
  display: grid;
  gap: 1rem;
}

.tg-circle-editor__form label {
  color: #4a5568;
  font-size: 0.9rem;
  font-weight: 600;
}

.tg-circle-editor__form input, .tg-circle-editor__form textarea, .tg-circle-editor__form select {
  border: 1px solid #cbd5e0;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  padding: 0.6rem 0.85rem;
  width: 100%;
}

.tg-circle-editor__form textarea {
  min-height: 90px;
  resize: vertical;
}

.tg-circle-editor__select {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  position: relative;
  width: 100%;
}

.tg-circle-editor__select input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tg-circle-editor__select-indicator {
  align-items: center;
  border: 2px solid #cbd5e0;
  border-radius: 0.45rem;
  display: inline-flex;
  height: 1.1rem;
  justify-content: center;
  transition: all 0.2s ease;
  width: 1.1rem;
}

.tg-circle-editor__item.is-selected .tg-circle-editor__select-indicator {
  background: #2b6cb0;
  border-color: #2b6cb0;
}

.tg-circle-editor__item.is-selected .tg-circle-editor__select-indicator::after {
  background: #ffffff;
  border-radius: 0.2rem;
  content: "";
  height: 0.55rem;
  width: 0.55rem;
}

.tg-circle-editor__select-label {
  color: #2d3748;
  flex: 1;
}

.tg-contact-sync {
  display: grid;
  gap: 1.5rem;
}

.tg-contact-sync__stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tg-contact-sync__step {
  align-items: center;
  background: #edf2f7;
  border-radius: 999px;
  color: #4a5568;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
}

.tg-contact-sync__step.is-active {
  background: #2b6cb0;
  color: #fff;
}

.tg-contact-sync__upload {
  align-items: center;
  border: 2px dashed #cbd5e0;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 2.25rem 1.5rem;
  text-align: center;
}

.tg-contact-sync__upload button {
  font-size: 0.95rem;
}

.tg-contact-sync__handles {
  background: #f7fafc;
  border-radius: 1rem;
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.tg-contact-sync__handles textarea {
  border: 1px solid #cbd5e0;
  border-radius: 0.75rem;
  font-family: inherit;
  min-height: 120px;
  padding: 0.75rem 1rem;
  resize: vertical;
}

.tg-contact-sync__handles .tg-friends-actions {
  justify-content: flex-start;
}

.tg-contact-sync__summary {
  background: #f7fafc;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
}

.tg-contact-sync__summary strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.tg-contact-sync__matches {
  display: grid;
  gap: 0.75rem;
}

.tg-contact-sync__match {
  align-items: center;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.tg-quiet-note {
  color: #a0aec0;
  font-size: 0.85rem;
}

.tg-feed-toggle {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tg-feed-toggle button {
  background: #edf2f7;
  border: none;
  border-radius: 999px;
  color: #1a202c;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
}

.tg-feed-toggle button.is-active {
  background: #2b6cb0;
  color: #fff;
}

.tg-account-settings {
  margin: 0 auto;
  max-width: 960px;
  padding: 3rem 2rem 4rem;
  display: grid;
  gap: 2rem;
}

.tg-account-settings__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tg-account-settings__header p {
  color: #4a5568;
  margin: 0;
}

.tg-account-grid {
  display: grid;
  gap: 1.5rem;
}

.tg-account-audit__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.tg-account-audit__item {
  background: #ffffff;
  border-radius: 0.9rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1.1rem;
}

.tg-account-audit__row {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.tg-account-audit__event {
  color: #2d3748;
  font-weight: 600;
}

.tg-account-audit__item time {
  color: #718096;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .tg-friends-hub {
    padding: 2.5rem 1rem 3rem;
  }

  .tg-friends-hub__intro {
    padding: 1.75rem 1.5rem;
  }

  .tg-modal__dialog {
    padding: 1.5rem;
  }

  .tg-account-settings {
    padding: 2.5rem 1rem 3rem;
  }

  .tg-account-audit__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.tg-media-picker__panel {
  display: none;
}

.tg-media-picker__panel.is-active {
  display: block;
}

.tg-media-picker__form {
  display: grid;
  gap: 1rem;
}

.tg-media-picker__actions {
  display: flex;
  justify-content: flex-end;
}

.tg-media-picker__placeholder {
  color: #4a5568;
  margin: 0;
}

.tg-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tg-field__label {
  color: #2d3748;
  font-weight: 600;
}

.tg-field input, .tg-field textarea, .tg-field select {
  border: 1px solid #cbd5e0;
  border-radius: 0.75rem;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  width: 100%;
}

.tg-field textarea {
  min-height: 120px;
  resize: vertical;
}

.tg-media-picker__suggestions {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.15);
  list-style: none;
  margin: 0;
  max-height: 220px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.tg-media-picker__suggestions li {
  cursor: pointer;
  padding: 0.65rem 1rem;
}

.tg-media-picker__suggestions li:hover, .tg-media-picker__suggestions li:focus {
  background: #ebf8ff;
}

.tg-media-picker__footer {
  align-items: center;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1rem;
}

.tg-media-picker__toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tg-toggle-btn {
  align-items: center;
  background: #edf2f7;
  border: none;
  border-radius: 999px;
  color: #2d3748;
  cursor: pointer;
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.tg-toggle-btn[aria-pressed="true"] {
  background: #2b6cb0;
  color: #ffffff;
}

.tg-media-picker__visibility label {
  color: #4a5568;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.tg-media-picker__visibility select {
  border: 1px solid #cbd5e0;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
}

.tg-media-picker__status {
  color: #2d3748;
  font-size: 0.95rem;
  min-height: 1.2rem;
}

/* Media detail modal ----------------------------------------------------- */

.tg-media-detail {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(140px, 180px) 1fr;
}

.tg-media-detail__cover img {
  border-radius: 1rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2);
  width: 100%;
}

.tg-media-detail__meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tg-media-detail__actions {
  display: flex;
  gap: 0.75rem;
}

.tg-media-detail__actions .like-btn, .tg-media-detail__actions .recommend-btn {
  align-items: center;
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
}

.tg-media-detail__visibility {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tg-media-detail__visibility select {
  border: 1px solid #cbd5e0;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
}

.tg-media-detail__body {
  display: grid;
  gap: 1.5rem;
  grid-column: 1 / -1;
}

.tg-media-detail__review-display {
  background: #f7fafc;
  border-radius: 1rem;
  padding: 1.25rem;
}

.tg-media-detail__review-display p {
  margin: 0;
  white-space: pre-wrap;
}

.tg-media-detail__meta-row {
  color: #4a5568;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.tg-review-form {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.tg-review-form__row {
  display: grid;
  gap: 0.75rem;
}

.tg-review-form__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.tg-rating-slider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tg-rating-slider output {
  font-weight: 600;
}

@media (max-width: 768px) {
  .tg-profile-layout-settings {
    padding: 1.8rem;
  }

  .tg-media-detail {
    grid-template-columns: 1fr;
  }

  .tg-media-detail__cover img {
    margin: 0 auto;
    max-width: 220px;
  }

  .tg-profile-layout[data-layout="showcase"] #upto-section .upto-options, .tg-profile-layout[data-layout="showcase"] #upto-books-section .upto-options, .tg-profile-layout[data-layout="showcase"] #upto-movies-section .upto-options, .tg-profile-layout[data-layout="showcase"] #upto-albums-section .upto-options {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* Stream layout ---------------------------------------------------------- */

.tg-stream {
  background: #f1f5f9;
  min-height: 100vh;
}

.tg-card {
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.tg-stream__layout {
  margin: 0 auto;
  max-width: 1200px;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 1100px) {
  .tg-stream__layout {
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
    align-items: start;
  }
}

.tg-stream__primary {
  display: grid;
  gap: 1.75rem;
}

.tg-stream__sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

@media (max-width: 1099px) {
  .tg-stream__sidebar {
    position: static;
  }
}

/* Composer --------------------------------------------------------------- */

.tg-stream-composer__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.tg-stream-composer__title {
  font-size: 1.75rem;
  margin: 0;
}

.tg-stream-composer__hint {
  margin: 0.35rem 0 0 0;
  color: #4a5568;
  max-width: 38ch;
}

.tg-stream-composer__break {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #1f2937;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-stream-composer__break:hover, .tg-stream-composer__break:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.26);
  outline: none;
}

.tg-stream-composer__form {
  display: grid;
  gap: 1.5rem;
}

.tg-stream-composer__tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tg-stream-composer__tab {
  background: #e2e8f0;
  border: none;
  border-radius: 0.75rem;
  color: #1f2937;
  cursor: pointer;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tg-stream-composer__tab.is-active {
  background: #1d4ed8;
  color: #ffffff;
  transform: translateY(-1px);
}

.tg-stream-composer__field {
  display: grid;
  gap: 0.5rem;
}

.tg-stream-composer__field-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}

.tg-stream-composer__field textarea {
  border: 1px solid #cbd5e0;
  border-radius: 1rem;
  min-height: 140px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  resize: vertical;
}

.tg-stream-composer__photo {
  background: #f7fafc;
  border: 1px dashed #cbd5e0;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
}

.tg-stream-composer__photo-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #2d3748;
}

.tg-stream-composer__photo-input input[type="file"] {
  font-size: 0.95rem;
}

.tg-stream-composer__photo-input small {
  color: #4a5568;
}

.tg-stream-composer__photo-preview {
  align-items: center;
  background: #ffffff;
  border-radius: 0.85rem;
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.6);
  display: flex;
  gap: 1rem;
  padding: 0.85rem;
}

.tg-stream-composer__photo-preview img {
  border-radius: 0.75rem;
  max-height: 140px;
  object-fit: cover;
}

.tg-stream-composer__photo-remove {
  background: #edf2f7;
  border: 1px solid #cbd5e0;
  border-radius: 999px;
  color: #2d3748;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.tg-stream-composer__photo-remove:hover, .tg-stream-composer__photo-remove:focus {
  background: #e2e8f0;
  color: #1a202c;
}

.tg-stream-composer__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-end;
}

.tg-stream-composer__visibility select {
  border: 1px solid #cbd5e0;
  border-radius: 0.8rem;
  padding: 0.55rem 1.25rem;
  min-width: 170px;
}

.tg-stream-composer__federate {
  background: #f8fafc;
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  max-width: 240px;
}

.tg-stream-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

.tg-stream-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.tg-stream-toggle__hint {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: #475569;
}

.tg-stream-composer__actions {
  margin-left: auto;
  display: flex;
  gap: 0.75rem;
}

.tg-stream-composer__submit {
  background: #2563eb;
  border: none;
  color: #ffffff;
  border-radius: 0.9rem;
  padding: 0.65rem 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tg-stream-composer__submit:hover, .tg-stream-composer__submit:focus {
  background: #1d4ed8;
  outline: none;
}

.tg-stream-composer__cancel {
  background: transparent;
  border: 1px solid #94a3b8;
  color: #475569;
  border-radius: 0.9rem;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
}

.tg-stream-composer__circles {
  display: grid;
  gap: 0.6rem;
}

.tg-stream-composer__circle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tg-stream-composer__circle-list label {
  background: #e2e8f0;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

.tg-stream-composer__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  color: #475569;
  font-size: 0.9rem;
}

/* Feed ------------------------------------------------------------------- */

.tg-stream-feed__filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.tg-stream-feed__metrics {
  color: #4a5568;
  font-size: 0.85rem;
  margin-left: auto;
  padding-left: 1rem;
}

.tg-stream .menu-tabs__item {
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  border: none;
  background: #e2e8f0;
  color: #334155;
  cursor: pointer;
  font-weight: 600;
}

.tg-stream .menu-tabs__item.is-active {
  background: #0f172a;
  color: #f8fafc;
}

.tg-stream-feed__list {
  display: grid;
  gap: 1.25rem;
}

.tg-stream-post {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  background: #ffffff;
  display: grid;
  gap: 0.65rem;
}

.tg-stream-post--longform {
  border-left: 5px solid #1d4ed8;
}

.tg-stream-post--photo {
  border-left: 5px solid #059669;
}

.tg-stream-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: #475569;
  align-items: center;
}

.tg-stream-post__author {
  font-weight: 600;
  color: #1f2937;
}

.tg-stream-post__badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tg-stream-badge {
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e0e7ff;
  color: #3730a3;
}

.tg-stream-badge--local {
  background: #dcfce7;
  color: #166534;
}

.tg-stream-post__body {
  font-size: 1rem;
  color: #1e293b;
  line-height: 1.55;
}

.tg-stream-post__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tg-stream-post__media {
  margin: 0.75rem 0;
  overflow: hidden;
  border-radius: 1rem;
  background: #000000;
}

.tg-stream-post__media img {
  display: block;
  width: 100%;
  height: auto;
}

.tg-stream-post__delivery {
  border-top: 1px solid #e2e8f0;
  color: #4a5568;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.tg-stream-post__delivery[data-status="failed"] {
  color: #c53030;
}

.tg-stream-post__delivery[data-status="retrying"] {
  color: #dd6b20;
}

.tg-stream-post__delivery[data-status="pending"] {
  color: #2b6cb0;
}

.tg-stream-post__actions button {
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.tg-stream-post__actions button:hover, .tg-stream-post__actions button:focus {
  background: #f8fafc;
  outline: none;
}

.tg-stream-feed__list > .tg-stream-feed__empty {
  text-align: center;
  color: #475569;
  padding: 1.5rem 0;
  font-size: 0.95rem;
}

/* Mindful break ---------------------------------------------------------- */

.tg-stream-mindful__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tg-stream-mindful__header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.tg-stream-mindful__dismiss {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  color: #475569;
}

.tg-stream-mindful__body {
  display: grid;
  gap: 1rem;
}

.tg-stream-mindful__idea {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
}

.tg-stream-mindful__idea h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #0f172a;
}

.tg-stream-mindful__idea p {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
}

.tg-stream-mindful__placeholder {
  margin: 0;
  color: #64748b;
}

.tg-stream-feed__pagination {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.tg-stream-feed__page-btn, .tg-feed-panel__page-btn, .tg-user-post__page-btn {
  align-items: center;
  background: #edf2f7;
  border: 1px solid #cbd5e0;
  border-radius: 999px;
  color: #2d3748;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  height: 2.5rem;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.35rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-stream-feed__page-btn:disabled, .tg-feed-panel__page-btn:disabled, .tg-user-post__page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.tg-stream-feed__page-btn:hover:not(:disabled), .tg-stream-feed__page-btn:focus:not(:disabled), .tg-feed-panel__page-btn:hover:not(:disabled), .tg-feed-panel__page-btn:focus:not(:disabled), .tg-user-post__page-btn:hover:not(:disabled), .tg-user-post__page-btn:focus:not(:disabled) {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #1a202c;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.tg-stream-feed__page-info, .tg-feed-panel__page-info, .tg-user-post__page-info {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  color: #4a5568;
  display: inline-flex;
  font-size: 0.9rem;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
}

.tg-pagination-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transform: translateY(-1px);
}

.tg-pagination-page-label {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tg-pagination-page-value {
  color: #1e293b;
  font-size: 1rem;
  font-weight: 700;
}

/* Article editor spacing */
.app-article-editor__bento-card {
  margin-top: 1rem;
}

.tg-pagination-page-total {
  color: #64748b;
  font-weight: 600;
}

.post-item .badge {
  display: inline-block;
  background: #e2e8f0;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #334155;
}

/* Feed & composer --------------------------------------------------------- */

/* Feed page layout & background ------------------------------------------ */

body.tg-feed {
  background: #F5F2ED;
}

.tg-feed__layout {
  display: grid;
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 1100px;
  padding: 0 1.25rem;
}

.tg-feed__main {
  background: transparent;
}

/* Remove card styling from feed panel container */

.tg-card.tg-feed-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Composer card styling */

.tg-card.tg-composer {
  position: relative;
  background: #ffffff;
  border: none;
  border-radius: 1.4rem;
  box-shadow: none;
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  z-index: 1850;
}

.edit-indicator {
  display: block;
  min-height: 1.2rem;
  margin-bottom: 0.35rem;
  text-align: right;
  font-size: 0.85rem;
  color: #6a7367;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.tg-composer__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.tg-composer__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.tg-composer__header h2 {
  margin: 0;
  color: #243426;
}

.tg-composer__header p {
  margin: 0.25rem 0 0;
  color: #778176;
}

.tg-composer__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tg-composer__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(84, 106, 80, 0.12);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: rgba(255, 255, 255, 0.64);
  color: #546650;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tg-composer__tab:hover, .tg-composer__tab:focus-visible {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(84, 106, 80, 0.2);
  transform: translateY(-1px);
}

.tg-composer__tab.is-active {
  background: #6c8f65;
  border-color: #587552;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(84, 106, 80, 0.18);
}

.tg-composer__field {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  min-width: 0;
}

.tg-composer__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4e6252;
}

.tg-composer__hint {
  margin: 0.25rem 0 0;
  color: #6a7367;
  font-size: 0.82rem;
}

.tg-composer__form textarea.input-field {
  min-height: 7.25rem;
  resize: vertical;
  margin-bottom: 0;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(84, 106, 80, 0.14);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 18px rgba(61, 73, 55, 0.04);
  color: #253728;
  line-height: 1.6;
}

.tg-composer__form textarea.input-field:focus, .tg-composer__visibility .input-field:focus {
  border-color: rgba(84, 106, 80, 0.3);
  box-shadow: 0 0 0 4px rgba(108, 143, 101, 0.12);
  outline: none;
}

.tg-composer__form textarea.input-field::placeholder {
  color: #7d8777;
}

.tg-composer__media-preview {
  margin: 0;
  position: relative;
  z-index: 1;
}

.tg-composer__media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.tg-composer__media-grid img {
  width: 100%;
  border-radius: 0.9rem;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.tg-composer__media-clear {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 0.85rem;
}

.tg-composer__media-clear:hover {
  color: #334155;
}



.tg-composer__visibility {
  min-width: 0;
}

.tg-composer__visibility, .tg-composer__media, .tg-composer__circles, .tg-composer__federate, .tg-selected-circles {
  position: relative;
  z-index: 1;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.tg-composer__visibility .input-field {
  margin: 0;
  border-radius: 0.95rem;
  border: 1px solid rgba(84, 106, 80, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.tg-composer__media {
  display: grid;
  gap: 0.45rem;
}

.tg-composer__media-input {
  gap: 0.35rem;
}

.tg-composer__media-input span {
  font-weight: 600;
  color: #243426;
}

.tg-composer__media-input small {
  color: #647067;
}

.tg-composer__media-label {
  font-size: 0;
  font-weight: 500;
}

.tg-composer__media-label i, .tg-composer__icon-button i {
  width: 1.2rem;
  height: 1.2rem;
}

.tg-composer__media-input:hover .tg-composer__media-label {
  background: #f1f5f9;
  border-color: #cbd5e0;
}

.tg-composer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.tg-composer__actions .submit-button {
  min-width: 8.5rem;
  border-radius: 999px;
  box-shadow: 0 12px 22px rgba(84, 106, 80, 0.2);
}

.tg-composer__actions .button {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(84, 106, 80, 0.12);
  color: #475748;
}

.tg-composer__icon-button {
  min-width: 2.7rem;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(84, 106, 80, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  vertical-align: middle;
  text-decoration: none;
}

.tg-composer__button-group {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.tg-composer__toggle, .tg-composer__federate-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  font-size: 0.85rem;
  color: #475748;
  cursor: pointer;
}

.tg-composer__toggle input[type="checkbox"], .tg-composer__federate-toggle input[type="checkbox"] {
  cursor: pointer;
  accent-color: #6c8f65;
}

.tg-composer__toggle span, .tg-composer__federate-toggle span {
  cursor: pointer;
}

/* General card styling for other components */

.tg-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

/* Feed layout responsiveness */

.tg-feed__layout.has-sidebar {
  grid-template-columns: minmax(0, 1fr) 320px;
}

@media (max-width: 980px) {
  .tg-feed__layout.has-sidebar {
    grid-template-columns: 1fr;
  }
}

.tg-feed__header {
  margin-bottom: 1.25rem;
}

.tg-feed__header h1 {
  margin-bottom: 0.25rem;
}

.tg-composer__circle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.tg-feed-panel__filters {
  margin-bottom: 1rem;
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  box-shadow: none;
}

.tg-feed-panel__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
}

.tg-feed-panel__empty {
  color: #64748b;
  font-style: italic;
  padding: 2rem;
}

.tg-feed-post__meta, .tg-user-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 0.75rem;
}

.tg-feed-post__author {
  font-weight: 600;
  color: #1f2937;
}

.tg-feed-post__author-link {
  color: inherit;
  text-decoration: none;
}

.tg-feed-post__author-link:hover, .tg-feed-post__author-link:focus-visible {
  text-decoration: underline;
}

.tg-feed-post__server-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.tg-post-author-avatar-link {
  display: contents;
}

.tg-post-author-avatar-link:focus-visible .note-profile-pic, .tg-post-author-avatar-link:focus-visible .tg-note-profile-pic {
  outline: 2px solid var(--forest-green);
  outline-offset: 3px;
}

.tg-feed-post__badges, .tg-user-post__badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tg-feed-badge, .tg-user-post__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
}

.tg-feed-post__body, .tg-user-post__body {
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
}

.tg-feed-post__media, .tg-user-post__media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.tg-feed-post__media.is-grid, .tg-user-post__media.is-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.16rem;
  background: #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
}

.tg-feed-post__media.is-grid[data-media-count="2"], .tg-user-post__media.is-grid[data-media-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-feed-post__media.is-grid[data-media-count="4"], .tg-user-post__media.is-grid[data-media-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-feed-post__media img, .tg-user-post__media img {
  width: 100%;
  border-radius: 0.9rem;
}

.tg-feed-post__media img {
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.tg-user-post__media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 42rem);
  margin: 0 auto;
  object-fit: contain;
}

.tg-user-post__media.is-grid img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-height: none;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.tg-user-post__media-author-link {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.25);
  z-index: 2;
}

.tg-user-post__media-author-avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.tg-feed-post__actions, .tg-user-post__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tg-feed-panel__pagination, .tg-user-post__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.tg-user-post__pagination {
  max-width: 100%;
}

@media (max-width: 640px) {
  .tg-feed-panel__pagination, .tg-user-post__pagination, .tg-stream-feed__pagination {
    gap: 0.55rem;
  }

  .tg-stream-feed__page-btn, .tg-feed-panel__page-btn, .tg-user-post__page-btn {
    height: 2.3rem;
    min-width: 2.3rem;
  }

  .tg-stream-feed__page-info, .tg-feed-panel__page-info, .tg-user-post__page-info {
    padding: 0.35rem 0.7rem;
  }
}

.tg-profile-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tg-profile-card__self {
  font-size: 0.9rem;
  color: #64748b;
}

.tg-profile-posts__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0rem;
}

.tg-profile-posts__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.tg-profile-posts__filter {
  appearance: none;
  border: 1px solid rgba(27, 67, 50, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: #244034;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tg-profile-posts__filter:hover, .tg-profile-posts__filter:focus-visible {
  background: #f2f7f3;
  border-color: rgba(27, 67, 50, 0.2);
  color: #1d352b;
  transform: translateY(-1px);
}

.tg-profile-posts__filter.is-active {
  background: var(--forest-green);
  border-color: var(--forest-green);
  color: #fff;
}

.tg-profile-posts--plain {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

[data-posts][data-profile-posts="1"], [data-feed-list][data-profile-posts="1"] {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

[data-posts][data-profile-posts="1"].is-profile-grid, [data-feed-list][data-profile-posts="1"].is-profile-grid {
  --tg-raster-gap: 0.12rem;
  --tg-profile-grid-radius: var(--app-card-radius, 2rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--tg-raster-gap);
  padding: var(--tg-raster-gap);
}

[data-posts][data-profile-posts="1"].is-profile-grid > .tg-profile-grid-post, [data-feed-list][data-profile-posts="1"].is-profile-grid > .tg-profile-grid-post {
  border-radius: 0;
}

[data-posts][data-profile-posts="1"].is-profile-grid > .tg-profile-grid-post:first-child, [data-feed-list][data-profile-posts="1"].is-profile-grid > .tg-profile-grid-post:first-child {
  border-top-left-radius: var(--tg-profile-grid-radius);
}

[data-posts][data-profile-posts="1"].is-profile-grid > .tg-profile-grid-post:nth-child(3), [data-posts][data-profile-posts="1"].is-profile-grid > .tg-profile-grid-post:last-child:nth-child(-n + 3), [data-feed-list][data-profile-posts="1"].is-profile-grid > .tg-profile-grid-post:nth-child(3), [data-feed-list][data-profile-posts="1"].is-profile-grid > .tg-profile-grid-post:last-child:nth-child(-n + 3) {
  border-top-right-radius: var(--tg-profile-grid-radius);
}

[data-posts][data-profile-posts="1"].is-profile-grid > .tg-profile-grid-post:nth-child(3n + 1):nth-last-child(-n + 3), [data-feed-list][data-profile-posts="1"].is-profile-grid > .tg-profile-grid-post:nth-child(3n + 1):nth-last-child(-n + 3) {
  border-bottom-left-radius: var(--tg-profile-grid-radius);
}

[data-posts][data-profile-posts="1"].is-profile-grid > .tg-profile-grid-post:last-of-type:nth-last-of-type(-n + 3), [data-feed-list][data-profile-posts="1"].is-profile-grid > .tg-profile-grid-post:last-of-type:nth-last-of-type(-n + 3) {
  border-bottom-right-radius: var(--tg-profile-grid-radius);
}

[data-posts][data-profile-posts="1"].is-profile-grid .tg-user-post__pagination, [data-feed-list][data-profile-posts="1"].is-profile-grid .tg-feed-panel__pagination {
  grid-column: 1 / -1;
}

[data-posts][data-profile-posts="1"].is-profile-gallery, [data-feed-list][data-profile-posts="1"].is-profile-gallery {
  gap: 1.4rem;
}

[data-posts][data-profile-posts="1"].is-profile-longform, [data-feed-list][data-profile-posts="1"].is-profile-longform {
  gap: 1.5rem;
}

[data-posts][data-profile-posts="1"] > [data-longform-post] {
  transition: opacity 1.4s ease, filter 1.4s ease, transform 1.4s ease;
}

[data-posts][data-profile-posts="1"].is-reading-longform > [data-longform-post]:not(.is-reading-focus) {
  opacity: 0.14;
  filter: saturate(0.65);
  pointer-events: none;
}

body.tg-reading-longform .app-shell-header, body.tg-reading-longform .header-picture, body.tg-reading-longform .profile-main__info-column, body.tg-reading-longform .tg-profile-posts__filters {
  opacity: 0.08;
  pointer-events: none;
}

.app-shell-header, .header-picture, .profile-main__info-column, .tg-profile-posts__filters {
  transition: opacity 1.6s ease;
}

.tg-profile-posts__empty {
  margin: 0;
  padding: 1.1rem 0;
  color: #64748b;
  font-style: italic;
}

.tg-profile-gallery-day {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tg-profile-gallery-day__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
}

.tg-profile-gallery-day__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.28rem;
}

.tg-profile-gallery-thumb {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  border-radius: 0.45rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.tg-profile-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 120ms ease;
}

.tg-profile-gallery-thumb:hover img,
.tg-profile-gallery-thumb:focus-visible img {
  transform: scale(1.03);
}

.tg-profile-post__admin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tg-profile-short-post {
  margin-top: 2.5rem;
  padding-bottom: 0.85rem;
}

.tg-profile-short-post .note-profile-pic {
  width: 4.5rem;
  height: 4.5rem;
  top: calc(-2.25rem - 3px);
}

.tg-profile-short-post .note-circle-1 {
  left: 7.45rem;
}

.tg-profile-short-post .note-circle-1-info {
  left: 8.3rem;
}

.tg-profile-grid-post {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  min-height: 0;
}

.tg-profile-grid-post__trigger {
  position: relative;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
  outline: none;
}

.tg-profile-grid-post__media, .tg-profile-grid-post__media img, .tg-profile-grid-post__media__placeholder {
  width: 100%;
  height: 100%;
}

.tg-profile-grid-post__media {
  min-height: 0;
  height: 100%;
}

.tg-profile-grid-post__media img, .tg-profile-grid-post__media__placeholder {
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

@media (max-width: 768px) {
  [data-posts][data-profile-posts="1"].is-profile-grid, [data-feed-list][data-profile-posts="1"].is-profile-grid {
    margin-left: -1.13rem;
    margin-right: -1.13rem;
  }
}

.tg-profile-grid-post__media__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #475569;
  font-weight: 600;
}

.tg-profile-grid-post__count {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 1.8rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
}

.tg-feed-grid-author {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.16);
  z-index: 3;
}

.tg-feed-grid-author__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tg-feed-profile-post .tg-profile-grid-post__count {
  right: 0.55rem;
  left: auto;
}

.tg-profile-grid-post__footer {
  padding: 0.9rem 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
}

.tg-profile-grid-post__footer strong {
  display: block;
  font-size: 0.78rem;
}

.tg-profile-grid-post__footer p {
  margin: 0.35rem 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tg-profile-grid-post .tg-profile-post__admin {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  margin-top: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.tg-profile-grid-post:hover .tg-profile-post__admin, .tg-profile-grid-post:focus-within .tg-profile-post__admin {
  opacity: 1;
}

.tg-profile-grid-post .tg-user-post__menu-button {
  background: rgba(255, 255, 255, 0.88);
  width: 2rem;
  height: 2rem;
  min-height: 2rem;
}

.tg-profile-media-lightbox {
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(15, 23, 42, 0.88);
  z-index: 11000;
}

.tg-profile-media-lightbox__dialog {
  position: relative;
  display: block;
  width: min(100vw, 1200px);
  max-height: 100vh;
  padding: 0.5rem 0;
  border-radius: 0;
  background: #111827;
  color: #f8fafc;
  box-shadow: none;
}

.tg-profile-media-lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  width: 100%;
  padding: 0;
}

.tg-profile-media-lightbox__image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 7.5rem);
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: #020617;
}

.tg-profile-media-lightbox__caption {
  margin: 0;
  max-width: 46rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1.5;
}

.tg-profile-media-lightbox__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 1rem;
}

.tg-profile-media-lightbox__dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(148, 163, 184, 0.7);
  cursor: pointer;
}

.tg-profile-media-lightbox__dot.is-active {
  width: 0.7rem;
  background: #f8fafc;
}

.tg-profile-media-lightbox__close {
  appearance: none;
  border: 1px solid rgba(248, 250, 252, 0.22);
  background: #0f172a;
  color: #f8fafc;
  cursor: pointer;
}

.tg-profile-media-lightbox__close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px #111827, 0 6px 18px rgba(0, 0, 0, 0.35);
}

.tg-profile-media-lightbox__dot:hover, .tg-profile-media-lightbox__dot:focus-visible {
  background: #e2e8f0;
}

.tg-profile-media-lightbox__close:hover, .tg-profile-media-lightbox__close:focus-visible {
  background: #1e293b;
  border-color: rgba(248, 250, 252, 0.38);
  box-shadow: 0 0 0 3px #111827, 0 0 0 5px rgba(248, 250, 252, 0.72), 0 6px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 720px) {
  .tg-profile-media-lightbox__dialog {
    padding-top: 0.35rem;
  }
}

.tg-profile-album-post {
  position: relative;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.tg-profile-album-post__trigger {
  cursor: zoom-in;
  outline: none;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
}

.tg-profile-album-post__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem;
  background: #f1f5f9;
}

.tg-profile-album-post__media img, .tg-profile-album-post__media__mini-grid, .tg-profile-album-post__media__placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.tg-profile-album-post__media__mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.12rem;
  overflow: hidden;
}

.tg-profile-album-post__media__mini-grid img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.tg-profile-album-post__media__mini-grid-tile {
  position: relative;
}

.tg-profile-album-post__media__more-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.56);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.tg-profile-album-post__media__placeholder {
  grid-column: 1 / -1;
  min-height: 14rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-weight: 600;
}

.tg-profile-album-post__body {
  padding: 1.15rem 1.2rem 1.25rem;
}

.tg-profile-album-post__body .tg-post-card__content {
  margin-bottom: 0;
}

.tg-profile-album-post__body .tg-post-social {
  margin: 1.8rem -1.2rem -1.25rem;
  padding-bottom: 1rem;
  border-radius: 0 0 1rem 1rem;
}

.tg-profile-album-post .tg-profile-post__admin {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  margin-top: 0;
  z-index: 2;
}

.tg-profile-essay-post {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1.75rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  padding: 1.5rem 1.7rem;
}

.tg-profile-essay-post__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tg-profile-essay-post__author {
  font-size: 1rem;
  color: #1f2937;
}

.tg-profile-essay-post__meta {
  color: #64748b;
  font-size: 0.92rem;
}

.tg-profile-essay-post__body {
  max-width: 44rem;
}

.tg-profile-essay-post__body p {
  margin: 0 0 1rem;
  color: #24303f;
  font-size: 1.03rem;
  line-height: 1.8;
}

.tg-profile-essay-post__body p:first-child {
  font-size: 1.12rem;
}

.tg-profile-essay-post__footer {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.tg-post-social {
  position: relative;
  margin: 1.8rem -2rem -0.5rem;
  padding: 1rem 1rem 1rem 1rem;
  border-radius: 0 0 1.35rem 1.35rem;
  background: #f3f1e844;
  border-top: 1px solid #f3f1e8aa;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: visible;
}

.tg-post-social.has-like-row {
  padding-top: 1.85rem;
}

.tg-post-social__like-row {
  position: absolute;
  top: 0;
  left: 1.4rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.08rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  z-index: 3;
}

.tg-post-social__like-button {
  appearance: none;
  width: 2rem;
  height: 2rem;
  min-height: 2rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #7f8c74;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 0;
  padding: 0;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  align-self: center;
}

.tg-post-social__like-button:hover, .tg-post-social__like-button:focus-visible {
  background: rgba(84, 106, 80, 0.1);
  color: #546a50;
  outline: none;
}

.tg-post-social__like-button.is-liked {
  background: rgba(194, 103, 82, 0.16);
  color: #a65436;
}

.tg-post-social__likers {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.1rem;
}

.tg-post-social__liker {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin-left: -0.2rem;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(84, 106, 80, 0.1);
}

.tg-post-social__liker:first-child {
  margin-left: 0;
}

.tg-post-social__liker-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.tg-post-social__comments {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tg-post-social__comment-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tg-post-social__comment-list:empty {
  display: none;
}

.tg-post-social__empty {
  margin: 0;
  color: #5f6f61;
  font-size: 0.92rem;
}

.tg-post-comment-composer, .tg-post-comment {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.tg-post-comment-composer__avatar, .tg-post-comment__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.88);
}

.tg-post-comment-composer__body, .tg-post-comment__body {
  min-width: 0;
}

.tg-post-comment-composer__body {
  position: relative;
}

.tg-post-comment-composer__textarea, .tg-composer--profile-shell .tg-post-comment-composer__textarea {
  width: 100%;
  min-height: 4rem !important;
  resize: none;
  overflow: hidden;
  border-radius: 0 0 1.35rem 1.35rem;
  padding: 0.5rem 3rem 0.5rem 0.95rem;
  margin-right: 0.7rem;
  margin-bottom: 0rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #24303f;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.tg-post-comment-composer:focus-within .tg-post-comment-composer__textarea, .tg-post-comment-composer.is-filled .tg-post-comment-composer__textarea, .tg-composer__form:focus-within .tg-post-comment-composer__textarea, .tg-composer__form.is-filled .tg-post-comment-composer__textarea {
  border-color: rgba(84, 106, 80, 0.34);
  box-shadow: 0 0 0 3px rgba(108, 143, 101, 0.15);
  background: #fff;
}

.app-shell-body .tg-composer__form textarea.input-field:focus, .app-shell-body .tg-composer__form:focus-within .tg-post-comment-composer__textarea, .app-shell-body .tg-post-comment-composer:focus-within .tg-post-comment-composer__textarea {
  border-color: rgba(84, 106, 80, 0.34);
  box-shadow: 0 0 0 3px rgba(108, 143, 101, 0.15);
  background: #fff;
  outline: none;
}

.tg-post-comment-composer__textarea:focus {
  outline: none;
}

.tg-composer--profile-shell .tg-composer__form {
  gap: 0.35rem;
}

.tg-post-comment-composer__submit {
  appearance: none;
  position: absolute;
  right: 0.2rem;
  bottom: -0.4rem;
  width: 1.95rem;
  height: 1.95rem;
  border: none;
  border-radius: 999px;
  background: #546a50;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(84, 106, 80, 0.18);
  opacity: 0.42;
  transform: translateX(-0.28rem) translateY(-50%);
  transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.tg-post-comment-composer__submit:hover, .tg-post-comment-composer__submit:focus-visible {
  background: #45574099;
  outline: none;
}

.tg-post-comment-composer.is-filled .tg-post-comment-composer__submit, .tg-composer__form.is-filled .tg-post-comment-composer__submit {
  opacity: 1;
  transform: translateX(-0.28rem) translateY(-2rem);
  box-shadow: 0 12px 20px rgba(84, 106, 80, 0.22);
}

.tg-post-comment-composer__submit:disabled {
  cursor: default;
  opacity: 0.42;
  transform: translateX(-0.28rem) translateY(-50%);
  box-shadow: none;
}

.tg-post-comment {
  padding: 0.85rem 0 0;
  margin-bottom: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
}

.tg-post-comment:first-child {
  margin-top: 0.75rem;
  padding-top: 0.15rem;
  border-top: none;
}

.tg-post-comment:last-child {
  margin-bottom: 0;
}

.tg-post-comment__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: #66756a;
  font-size: 0.88rem;
}

.tg-post-comment__meta strong {
  color: #24303f;
}

.tg-post-comment__avatar-link, .tg-post-comment__author-link {
  color: inherit;
  text-decoration: none;
}

.tg-post-comment__avatar-link:hover, .tg-post-comment__author-link:hover {
  text-decoration: underline;
}

.tg-post-comment__content {
  margin-top: 0.28rem;
  color: #24303f;
  line-height: 1.3;
}

.tg-inline-tooltip {
  position: relative;
}

.tg-inline-tooltip::after {
  content: attr(data-tooltip-text);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  transform: translate(-50%, 0.3rem);
  max-width: min(18rem, 70vw);
  padding: 0.38rem 0.55rem;
  border-radius: 0.65rem;
  background: rgba(36, 48, 63, 0.94);
  color: #fff;
  font-size: 0.76rem;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 12;
}

.tg-inline-tooltip:hover::after, .tg-inline-tooltip:focus-visible::after, .tg-inline-tooltip[data-tooltip-open="1"]::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tg-profile-circles__detail {
  margin-top: 0.75rem;
}

@media (max-width: 900px) {
  .tg-composer__actions {
    justify-content: flex-start;
  }

  .tg-composer__toggle, .tg-composer__federate-toggle {
    margin-left: 0;
  }

  .tg-post-comment-composer, .tg-post-comment {
    grid-template-columns: 2.45rem minmax(0, 1fr);
  }

  .tg-post-comment-composer__avatar, .tg-post-comment__avatar {
    width: 2.45rem;
    height: 2.45rem;
  }

  .tg-post-social {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }

  .tg-post-social__like-row {
    left: 2.5rem;
  }
}

.tg-composer--profile-shell .edit-indicator {
  min-height: 0;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .tg-composer--profile {
    margin-top: 0.15rem;
  }

  .tg-card.tg-composer {
    padding: 1rem;
  }

  .tg-composer--profile .tg-composer__actions, .tg-composer--profile .tg-composer__media-preview {
    opacity: 0;
    transform: translateY(-0.45rem);
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    margin: 0;
    transition: opacity 0.24s ease, transform 0.28s ease, max-height 0.32s ease, margin 0.28s ease, padding 0.28s ease;
  }

  .tg-composer--profile.is-expanded .tg-composer__controls, .tg-composer--profile.is-expanded .tg-selected-circles, .tg-composer--profile.is-expanded .tg-composer__actions, .tg-composer--profile.is-expanded .tg-composer__media-preview {
    opacity: 1;
    transform: translateY(0);
    max-height: 24rem;
    overflow: visible;
    pointer-events: auto;
  }

  .tg-composer__tabs {
    gap: 0.45rem;
  }

  .tg-composer__tab {
    width: 100%;
  }

  .tg-composer__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tg-composer__actions .submit-button, .tg-composer__actions .button {
    width: 100%;
  }

  .tg-post-social {
    margin-top: 1.15rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .tg-post-social__like-row {
    left: 1.5rem;
  }

  .tg-inline-tooltip::after {
    white-space: normal;
  }
}

/* Visibility pills UI ---------------------------------------------------- */

.tg-visibility-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
  margin-top: 0;
}

.tg-visibility-pill, .tg-circle-pill {
  width: 2.55rem;
  height: 2.55rem;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0;
  font-size: 0;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tg-visibility-pill:hover, .tg-visibility-pill:focus-visible, .tg-circle-pill:hover, .tg-circle-pill:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(34, 51, 40, 0.14);
}

.tg-visibility-pill--public {
  --tg-visibility-color: hsl(150 48% 28%);
  --tg-visibility-bg: hsla(150 60% 35% / 0.24);
  background: var(--tg-visibility-bg);
  color: var(--tg-visibility-color);
  opacity: 0.58;
}

.tg-visibility-pill--friends {
  --tg-visibility-color: hsl(205 52% 30%);
  --tg-visibility-bg: hsla(205 62% 38% / 0.22);
  background: var(--tg-visibility-bg);
  color: var(--tg-visibility-color);
  opacity: 0.58;
}

.tg-visibility-pill i, .tg-visibility-pill__icon, .tg-circle-pill svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.tg-visibility-pill.is-active {
  opacity: 1;
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(36, 52, 38, 0.18), 0 8px 16px rgba(34, 51, 40, 0.16);
}

.tg-circle-pill {
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--tg-circle-bg);
  color: var(--tg-circle-color);
  box-shadow: none;
  opacity: 0.48;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.tg-circle-pill svg {
  width: 1.1rem;
  height: 1.1rem;
}

.tg-circle-pill.is-active, .tg-circle-pill:hover, .tg-circle-pill:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.tg-circle-pill.is-active {
  box-shadow: 0 0 0 2px rgba(36, 52, 38, 0.14);
}

.tg-circle-pills.is-dimmed .tg-circle-pill:not(.is-active) {
  opacity: 0.26;
  transform: none;
  box-shadow: none;
}

.tg-visibility-pill:focus, .tg-circle-pill:focus-visible {
  outline: 2px solid #6c8f65;
  outline-offset: 2px;
}

.tg-circle-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

/* Note card UI (from weights/run) ---------------------------------------- */

.note-container, .tg-note-container {
  position: relative;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  margin-top: 4rem;
}

.note-profile-pic, .tg-note-profile-pic {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: calc(-3rem - 3px);
  left: 2rem;
  border: 3px solid white;
  background: #fff;
}

.note-circle-1 {
  --note-visibility-color: var(--forest-green);
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: calc(-0.95rem - 3px);
  left: 8.95rem;
  border: 3px solid white;
  background-color: var(--note-visibility-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: help;
}

.note-circle-1--private, .note-circle-1-info--private {
  --note-visibility-color: var(--terracotta);
}

.note-circle-1--friends, .note-circle-1-info--friends {
  --note-visibility-color: var(--dusty-blue);
}

.note-circle-1--public, .note-circle-1-info--public {
  --note-visibility-color: var(--forest-green);
}

.note-circle-1--circles, .note-circle-1-info--circles {
  background-color: var(--tg-circle-bg);
  color: var(--tg-circle-color);
}

.note-circle-1--circles .note-circle-icon {
  color: var(--tg-circle-color);
  opacity: 1;
}

.note-circle-1--circles .note-circle-icon svg path {
  fill: currentColor;
}

.note-circle-1--circles.note-circle-1--multi {
  background: transparent;
  border-color: transparent;
  width: auto;
}

.note-circle-1-info {
  z-index: 999;
  min-height: 1.9rem;
  border-radius: 10rem;
  position: absolute;
  top: calc(-0.95rem - 3px);
  left: 9.8rem;
  background-color: var(--note-visibility-color);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  white-space: nowrap;
  width: max-content;
  max-width: 0;
  padding: 0;
  opacity: 0;
  border: 3px solid white;
  box-sizing: border-box;
  transition: max-width 0.3s ease, padding 0.3s ease, left 0.3s ease, opacity 0.2s ease;
}

.note-circle-1-info.note-circle-1-info--circles {
  background-color: var(--tg-circle-bg);
  color: var(--tg-circle-color);
}

.note-circle-1:hover + .note-circle-1-info, .note-circle-1:focus + .note-circle-1-info {
  z-index: 1101;
  max-width: calc(100vw - 6rem);
  padding: 0.15rem 0.65rem;
  opacity: 1;
  left: 11.1rem;
  border: 3px solid white;
}

.note-circle-1-content {
  color: #fff;
  font-weight: 600;
  font-size: 0.76rem;
  line-height: 1.2;
}

.note-circle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.note-circle-icon svg, .note-circle-icon i {
  display: block;
  width: 20px;
  height: 20px;
}

.note-circle-1-info--circles .note-circle-1-content {
  color: var(--tg-circle-color);
}

.note-circle-icon--list {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0;
}

.note-circle-icon--item {
  display: inline-flex;
  align-items: center;
  background: var(--tg-circle-bg);
  border-radius: 50%;
  color: var(--tg-circle-color);
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 3px solid white;
}

.note-circle-icon--item svg {
  width: 16px;
  height: 16px;
}

.note-circle-icon--item svg path {
  fill: currentColor;
}

.note-header, .tg-note-header {
  margin-left: 7rem;
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.35rem;
  row-gap: 0.1rem;
}

.note-header strong, .tg-note-header strong {
  font-weight: bold;
}

.note-header small, .note-header time, .tg-note-header small, .tg-note-header time {
  opacity: 0.6;
}

.tg-note-header__separator {
  opacity: 0.55;
}

.note-content, .tg-note-content {
  margin-left: 0rem;
  margin-top: 2rem;
}

.note-content p, .tg-note-content p {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.tg-note-content .tg-feed-longform-stub {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.tg-note-content .tg-feed-longform-stub.is-expanded {
  display: block;
  -webkit-line-clamp: initial;
  line-clamp: initial;
  overflow: visible;
}

.tg-feed-longform-read-more {
  display: inline-block;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.tg-feed-longform-read-more:hover, .tg-feed-longform-read-more:focus-visible {
  text-decoration: underline;
}

.note-content small .pill, .tg-note-badges .pill {
  display: inline-block;
  margin-right: 0rem;
}

.tg-feed-post__menu, .tg-user-post__menu {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
}

.tg-user-post__menu {
  top: 0.95rem;
}

.tg-feed-post__menu-button, .tg-user-post__menu-button {
  border: none;
  background: transparent;
  color: #6b7280;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  font-size: 1.15rem;
}

.tg-feed-post__menu-button:hover, .tg-feed-post__menu-button:focus-visible, .tg-user-post__menu-button:hover, .tg-user-post__menu-button:focus-visible {
  background: #f3f4f6;
  color: #111827;
}

.tg-feed-post__menu-list, .tg-user-post__menu-list {
  position: absolute;
  top: 2rem;
  right: 0;
  min-width: 9rem;
  padding: 0.25rem;
  border-radius: 0.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.tg-feed-post__menu-item, .tg-user-post__menu-item {
  width: 100%;
  border: none;
  border-radius: 0.4rem;
  padding: 0.5rem 0.65rem;
  background: transparent;
  text-align: left;
  font-size: 0.85rem;
  cursor: pointer;
  color: #111827;
}

.tg-feed-post__menu-item:hover, .tg-feed-post__menu-item:focus-visible, .tg-user-post__menu-item:hover, .tg-user-post__menu-item:focus-visible {
  background: #f9fafb;
}

.tg-feed-post__menu-item.is-danger, .tg-user-post__menu-item.is-danger {
  color: #b91c1c;
}

.tg-post-edit-card {
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.14);
}

.tg-post-edit-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tg-post-edit-card__header h2 {
  margin: 0;
  color: #243426;
}

.tg-post-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tg-post-edit-status {
  margin: 0;
  min-height: 1.2rem;
  color: #6a7367;
  font-size: 0.9rem;
  text-align: right;
}

.tg-post-edit-media {
  padding: 0.85rem 0.95rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(84, 106, 80, 0.1);
}

.tg-post-edit-media .tg-user-post__media {
  margin-bottom: 0;
}

.tg-post-edit-federate, .tg-post-edit-circles {
  padding: 0.85rem 0.95rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(84, 106, 80, 0.1);
}

.tg-post-edit-circle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.tg-post-edit-circle-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: #f8f9fa;
  border: 1px solid #d9e2d1;
  color: #334155;
  cursor: pointer;
}

.tg-post-edit-circle-option input {
  accent-color: #6c8f65;
}

.tg-post-edit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.tg-post-edit-actions .submit-button, .tg-post-edit-actions .button {
  border-radius: 999px;
}

.tg-post-edit-delete {
  margin-left: auto;
}

@media (max-width: 640px) {
  .tg-post-edit-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tg-post-edit-delete {
    margin-left: 0;
  }
}

.tg-note-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tg-note-badges .pill {
  display: inline-block;
  background: #f1f1f1;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 0.7rem;
  line-height: 1.2;
  color: inherit;
  text-decoration: none;
}

.tg-note-badges .pill:hover, .tg-note-badges .pill:focus {
  text-decoration: none;
}

.tg-user-post__badge {
  text-decoration: none;
}

.tg-user-post__badge:hover, .tg-user-post__badge:focus {
  text-decoration: none;
}

.tg-feed-post__media {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.tg-feed-post__actions {
  margin-top: 0.75rem;
  margin-left: -0.5rem;
}

@media (max-width: 768px) {
  .note-header, .tg-note-header {
    margin-left: 8rem;
    margin-top: 0.5rem;
    column-gap: 0.25rem;
  }

  .note-content, .tg-note-content {
    margin-left: 0;
    margin-top: 2rem;
  }

  .tg-feed-post__actions {
    margin-left: 0.5rem;
  }
}

@media (max-width: 768px) {
  .note-header, .tg-note-header {
    margin-left: 8rem;
    margin-top: 0.5rem;
    column-gap: 0.25rem;
  }

  .note-content, .tg-note-content {
    margin-left: 0;
    margin-top: 2rem;
  }
}

/* Feed post with note card style ----------------------------------------- */

.tg-feed-post--note {
  position: relative;
  padding-top: 4rem;
  margin-top: 4rem;
}

.tg-feed-post--note .tg-feed-post__meta {
  margin-left: 7rem;
}

.tg-feed-post--note .tg-feed-post__body {
  margin-left: -0.5rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .tg-feed-post--note .tg-feed-post__meta {
    margin-left: 8rem;
  }

  .tg-feed-post--note .tg-feed-post__body {
    margin-left: 0.5rem;
  }
}

.tg-review-media {
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.9rem;
}

.tg-review-media__art {
  flex: 0 0 84px;
}

.tg-review-media__cover {
  background: #e2e8f0;
  border-radius: 0.85rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  display: block;
  height: 126px;
  object-fit: cover;
  width: 84px;
}

.tg-review-media__cover--placeholder {
  align-items: center;
  color: #475569;
  display: flex;
  font-size: 0.82rem;
  font-weight: 700;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
  text-transform: uppercase;
}

.tg-review-media__details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.tg-review-media__title {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.tg-review-media__subtitle {
  color: #475569;
  line-height: 1.45;
}

.tg-review-media__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tg-review-media__pill {
  background: rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
}

.tg-review-media__rating {
  align-items: center;
  color: #475569;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tg-review-media__stars {
  display: inline-flex;
  gap: 0.08rem;
}

.tg-review-media__star {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1;
}

.tg-review-media__star.is-filled {
  color: #f59e0b;
}

.tg-review-media__rating-label {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .tg-review-media {
    padding: 0.8rem;
  }

  .tg-review-media__art {
    flex-basis: 72px;
  }

  .tg-review-media__cover {
    height: 108px;
    width: 72px;
  }
}

/* ===== profile.css ===== */

/* =======================================================
   Profile Page Specific Styles
   - Contains all styles exclusive to the profile page.
   - General styles are in a separate CSS file.
   ======================================================= */

/* -------------------------------------------------------
   1. Profile Layout
------------------------------------------------------- */

.profile-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.profile-main {
  margin-top: 5rem;
  margin-bottom: 4rem;
}

.profile-main--app-wide {
  position: relative;
  isolation: isolate;
}

.tg-upto-overlay-host {
  position: relative;
  isolation: isolate;
}

.profile-main--app-wide > .grid-container {
  width: min(1440px, 100%);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  z-index: 5000;
  padding: 0;
  max-width: none;
}

.profile-main .tg-card.tg-composer {
  background: rgba(255,255,255,.7);
  padding: 1rem 1.35rem;
}


.profile-main .tg-profile-posts--plain {
  margin-top: 1.25rem;
}

.profile-main--readonly .profile-main__upto-column--readonly {
  --tg-profile-post-title-top: calc(1.25rem + 4rem + 1rem + 0.5rem);
  --tg-upto-card-title-inset: 1.5rem;
  --tg-upto-title-visual-compensation: 1.125rem;
  padding-top: calc(
        var(--tg-profile-post-title-top) -
        var(--tg-upto-card-title-inset) -
        var(--tg-upto-title-visual-compensation)
    );
}

.profile-main--readonly .profile-main__posts-column--full {
  float: none;
  margin-left: auto;
  margin-right: auto;
}

.profile-main--readonly .tg-upto-card .upto-options h4 {
  margin-top: 0;
  line-height: 1.15;
}
.app-home-link-card {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}
@media (max-width: 768px) {
  .profile-main {
    margin-top: 2rem;
    margin-bottom: 3rem;
  }

  .profile-links {
    margin-top: 1.1rem;
  }

  .profile-main--app-wide > .grid-container {
    width: 100% !important;
    display: flex;
    flex-direction: column;
  }

  .profile-main--app-wide > .grid-container > .profile-main__column {
    float: none;
    width: 100%;
  }

  .profile-main__posts-column {
    order: 1;
  }

  .profile-main__upto-column {
    order: 2;
  }

  .profile-main--readonly .profile-main__upto-column--readonly {
    padding-top: 0;
  }

  .profile-main__spacer-column {
    order: 3;
  }
}

/* -------------------------------------------------------
   2. Header Section
------------------------------------------------------- */

/* Header picture background */

.header-picture {
  width: 100%;
  height: 20rem;
  background-size: cover;
  background-position: center center;
  background-color: #eee;
  background-image: url("https://touchgrass.network/cdn/img/profile-header/placeholder.jpg");
  opacity: 1;
  position: relative;
  z-index: 1;
}

/* Dark overlay on header picture */

.header-picture::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* -------------------------------------------------------
   3. Profile Picture & Username
------------------------------------------------------- */

/* Profile picture with drop shadow and brightness */

.profile-picture {
  width: 14rem;
  height: 14rem;
  position: absolute;
  top: 13rem;
  left: calc(50% - 7rem - 4px);
  border: none;
  border-radius: 50%;
  background-size: cover;
  background-position: center center;
  background-color: #ccc;
  background-image: url("https://touchgrass.network/cdn/img/pfp/placeholder.jpg");
  filter: drop-shadow(0px 0px 40px rgba(0,0,0,0.3));
  z-index: 1800;
}

/* Overlay effect on profile picture */

.profile-picture::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 100%;
  cursor: pointer;
}

/* Username overlay on header */

.header-username {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 8rem;
  color: #fff;
  font-size: 3rem;
  z-index: 2000;
  font-weight: 200;
}

.header-username .profile-handle {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0.35rem;
  opacity: 0.85;
}

.profile-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.profile-readonly #intro-display {
  cursor: default;
}

/* -------------------------------------------------------
   Friend Button Positioning & Base Styling
------------------------------------------------------- */

.profile-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
  padding-right: 0.5rem;
}

.profile-actions .friend-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fff;
  color: #666;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.profile-actions .friend-btn:hover:not(:disabled) {
  border-color: #ccc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-actions .friend-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Different states with subtle colors */

/* Loading state */

.friend-btn[data-state="loading"] {
  color: #999;
}

/* Add friend state (none/declined/cancelled) */

.friend-btn[data-action="request"] {
  background: #546a50;
  border-color: #546a50;
  color: white;
}

.friend-btn[data-action="request"]:hover:not(:disabled) {
  background: #455740;
  border-color: #455740;
}

/* Pending outgoing request - cancel available */

.friend-btn[data-action="cancel"] {
  background: #fff;
  border-color: #f59e0b;
  color: #f59e0b;
}

.friend-btn[data-action="cancel"]:hover:not(:disabled) {
  background: #fffbeb;
  border-color: #d97706;
  color: #d97706;
}

/* Incoming request - accept/decline */

.friend-btn[data-action="incoming"] {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.friend-btn[data-action="incoming"]:hover:not(:disabled) {
  background: #059669;
  border-color: #059669;
}

/* Already friends - unfriend available */

.friend-btn[data-action="unfriend"] {
  background: #fff;
  border-color: #ddd;
  color: #666;
}

.friend-btn[data-action="unfriend"]:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #ef4444;
  color: #ef4444;
}

/* Edit icon for header picture */

.header-picture-edit-icon {
  top: 18.5rem !important;
  right: 1rem !important;
  left: auto !important;
  z-index: 2600;
  pointer-events: auto;
  cursor: pointer;
}

/* Settings icon next to header picture edit icon */

.header-settings-icon {
  top: 18.5rem !important;
  right: 4.3rem !important;
  left: auto !important;
  z-index: 2600;
  pointer-events: auto;
  cursor: pointer;
}

/* Generic edit icon (used for profile picture or elsewhere) */

.edit-icon {
  text-decoration: none;
  display: block;
  background-color: #fff;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  position: absolute;
  opacity: 1;
  top: 10.5rem;
  left: 10.5rem;
  z-index: 1000;
  text-align: center;
  line-height: 1.7rem;
  font-size: 3rem;
  cursor: pointer;
  box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.1);
}

.edit-icon i {
  font-size: 1.5rem;
  line-height: 2.8rem;
  color: #000;
}

/* -------------------------------------------------------
   4. Popups & Modal Overlays
------------------------------------------------------- */

/* General popup overlay */

.popup {
  position: fixed;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  font-family: "Arial", sans-serif;
}

/* Popup content container */

.popup-content {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  width: 40rem;
  top: 15rem;
  left: calc(50% - 20rem);
  animation: popupIn 0.3s ease forwards;
}

/* Popup animation */

@keyframes popupIn {
    from {
        opacity: 0;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(-10%);
    }
}

.app-home-composer-panel {
  padding: 1rem;
}

/* Close button for popups */

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}

/* Profile popup overlay */

.profile-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  width: 100vw;
  min-height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9000;
  cursor: pointer;
  overflow: hidden;
  left: 0;
  right: 0;
}

/* Profile popup content */

.profile-popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(800px, 90vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive image in profile popup */

.profile-popup-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 85vh;
  display: block;
  margin: auto;
}

/* Profile picture cropper overlay */

.profile-cropper-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9500;
}

.profile-cropper-overlay.profile-cropper-visible {
  display: flex;
}

.profile-cropper-content {
  width: min(480px, 92vw);
  max-width: 520px;
  border-radius: 18px;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  position: relative;
  text-align: center;
}

.profile-cropper-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #444;
}

.profile-cropper-subtitle {
  margin: 0.25rem 0 1rem;
  color: #555;
  font-size: 0.95rem;
}

.profile-cropper-box {
  width: min(360px, 80vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #f6f6f6;
  overflow: hidden;
  position: relative;
  cursor: grab;
  touch-action: none;
}

.profile-cropper-box.dragging {
  cursor: grabbing;
}

.profile-cropper-box img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  max-height: none;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}

.profile-cropper-guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: calc(100% / 3) calc(100% / 3);
  mix-blend-mode: lighten;
}

.profile-cropper-zoom {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #666;
  margin-bottom: 0.4rem;
}

.profile-cropper-zoom input[type="range"] {
  width: 100%;
  margin-top: 0.35rem;
  accent-color: #111;
}

.profile-cropper-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.profile-cropper-button {
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.profile-cropper-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.profile-cropper-cancel:hover {
  background: #f5f5f5;
}

.profile-cropper-confirm {
  background: #111;
  color: #fff;
  border-color: #111;
}

.profile-cropper-confirm:hover {
  background: #000;
}

@media (max-width: 480px) {
  .profile-cropper-content {
    padding: 1.25rem;
  }

  .profile-cropper-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-cropper-button {
    width: 100%;
    text-align: center;
  }
}

/* Close button for profile popup */

.profile-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #333;
  transition: background-color 0.2s;
  z-index: 9001;
  -webkit-tap-highlight-color: transparent;
}

/* -------------------------------------------------------
   5. Form Elements & Error Messages
------------------------------------------------------- */

form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-bottom: 10px;
  color: #333;
}

form input[type="file"] {
  margin-bottom: 20px;
}

.error-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ff4444;
  color: white;
  padding: 1rem 2rem;
  border-radius: 4px;
  z-index: 10000;
  max-width: 80%;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  white-space: pre-line;
}

/* -------------------------------------------------------
   6. Profile Introduction & Editing
------------------------------------------------------- */

#intro-textarea {
  width: calc(100% - 10rem);
  border-radius: 0;
  float: left;
  font-family: inherit;
  font-size: 1rem;
  border: none;
  border-bottom: 2px solid rgba(200,100,100,.3);
  background-color: transparent;
  padding: 5px;
  resize: none;
  margin: 0;
  display: block;
  margin-top: 3rem;
}

#save-intro-button {
  float: left;
  width: 1rem;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: block;
  margin-top: 3rem;
  margin-left: .5rem;
  cursor: pointer;
}

#edit-intro-button {
  float: left;
  width: 1rem;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: block;
  margin-top: 3rem;
  margin-left: .5rem;
  cursor: pointer;
}

#intro-display {
  width: calc(100% - 10rem);
  border-radius: 0;
  cursor: pointer;
  float: left;
  font-family: inherit;
  font-size: 1rem;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,.3);
  background-color: transparent;
  padding: 5px;
  resize: none;
  min-height: 40px;
  margin: 0;
  display: block;
  margin-top: 3rem;
  padding-top: 5px;
  line-height: 1.4rem;
}

.intro-pencil {
  float: right;
  display: block;
  margin-right: -40px;
  margin-top: -5px;
  font-size: 1.5rem;
}

/* -------------------------------------------------------
   7. Profile Links
------------------------------------------------------- */

.profile-links {
  margin-top: 2.5rem;
}

#links-form {
  margin-left: 10rem;
  width: calc(100% - 10rem);
}

#links-container {
  display: inline;
}

.add-link-button {
  border: none;
  background: none;
  cursor: pointer;
  display: inline-block;
  vertical-align: .5rem;
}

.add-link-button i {
  font-size: 1.5rem;
  line-height: 2.8rem;
}

.link-input {
  background: none;
  border: none;
  border-radius: 0;
  padding-top: .3rem;
  padding-left: 1rem;
  font-family: Montserrat, "Segoe UI", sans-serif;
  float: left;
}

.save-link-button, .edit-link-button, .remove-link-button {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: .5rem;
  float: left;
}

.save-link-button {
  margin-top: -.3rem;
}

.edit-link-button, .remove-link-button {
  margin-top: -.4rem;
  margin-left: 0;
  padding-right: 0;
}

.remove-link-button {
  padding-left: 0;
  color: rgb(200,100,0);
  margin-right: 1rem;
}

.saved-link {
  float: left;
  width: auto;
  padding: .5rem 5rem .5rem 1rem;
  margin-right: -4rem;
  text-decoration: none;
  font-weight: bold;
}

.saved-link:link, .saved-link:visited {
  color: rgba(0,50,150,1);
}

.saved-link:hover, .saved-link:active {
  color: rgba(0,50,150,.8);
}

.link-item {
  width: auto;
  display: inline-block;
  height: 30px;
  border-radius: 2rem;
  background-color: rgba(0,0,0,.05);
  clear: both;
  margin-right: .5rem;
  margin-bottom: .4rem;
}

.link-item:hover {
  background-color: rgba(0,0,0,.08);
}

/* -------------------------------------------------------
   8. "What I'm Upto" Block
------------------------------------------------------- */

.profile-upto {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 32px;
  padding-bottom: 80px;
  position: relative;
  background-color: rgba(0,0,0,.02);
  padding-top: 3.5rem;
}

.upto-title {
  border-bottom: 1px solid rgba(0,0,0,.1);
  background-color: rgba(0,0,0,.05);
  padding: 1rem 0 1rem 0;
  margin: 0 !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  border-radius: 32px 32px 0 0;
}

.upto-options {
  padding-bottom: 3rem;
}

/* -------------------------------------------------------
   Book Cover & Tooltip Styles
------------------------------------------------------- */

/* Book/movie card sections form a stacking context at z-29000 — above the
   page overlay (z-28000) but below full-screen modals (z-9000+). */

#upto-section, #upto-books-section, #upto-movies-section, #upto-albums-section, .tg-upto-card {
  position: relative;
  z-index: 29000;
}

.tg-upto-card {
  margin-bottom: 1.25rem;
}

#tg-upto-page-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 28000;
}

#tg-upto-page-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.tg-upto-card > .edit-icon {
  top: 1rem;
  right: 1rem;
  left: auto;
}

.tg-upto-card > .upto-options {
  padding-right: 4rem;
  padding-bottom: 0;
}

/* Upto list container */

.upto-book-list {
  position: relative;
  width: min(100%, 25rem);
  height: 250px;
  margin: 0;
  padding: 0;
  overflow: visible;
  left: -1.25rem;
  isolation: isolate;
}

.upto-book-list.expanded {
  z-index: 29500;
}

.upto-book-list.expanded::before {
  content: "";
  position: absolute;
  top: -0.75rem;
  left: 0;
  width: var(--tg-upto-hit-width, 100%);
  height: var(--tg-upto-hit-height, 250px);
  pointer-events: auto;
  z-index: 0;
}

.upto-book-cover {
  width: 140px;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #e0e0e0;
  border-radius: 8px;
  border: none;
  position: absolute !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center left;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  overflow: visible;
  background-image: none;
  left: 0;
  cursor: pointer;
}

.upto-book-cover.has-cover {
  background-image: var(--cover-url);
}

.upto-book-cover .upto-book-fallback-title {
  font-family: "Times New Roman", serif;
  font-size: 15px;
  text-align: center;
  color: #333;
  margin: 0;
  line-height: 1.2;
}

.upto-book-cover .upto-book-fallback-author {
  font-family: "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
  text-align: center;
  color: #666;
  margin: 10px 0 0 0;
}

/* Hide fallback content when cover is loaded */

.upto-book-cover.has-cover .upto-book-fallback-title, .upto-book-cover.has-cover .upto-book-fallback-author {
  display: none;
}

.upto-book-cover:hover {
  filter: brightness(100%);
}

.upto-book-cover:hover .tooltip {
  display: block;
}

.tooltip .tooltip-title {
  font-size: 15px;
  margin: 0;
  line-height: 1.2;
}

.tooltip .tooltip-author {
  font-size: 13px;
  font-style: italic;
  margin: 0.3rem 0 0 0;
  opacity: 0.9;
}

/* -------------------------------------------------------
   9. Media Queries
------------------------------------------------------- */

/* Mobile styles (max-width: 768px) */

@media (max-width: 768px) {
  .profile-popup-content {
    width: 95vw;
    max-width: 100%;
    z-index: 50000000;
    padding: 5px;
  }

  .profile-popup-close {
    top: 10px;
    right: 10px;
    z-index: 50000001;
  }

  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  #intro-form {
    width: 100%;
  }

  #intro-form[style*="display:block"], #intro-form[style*="display: block"] {
    display: flex !important;
    align-items: flex-start;
    gap: 0.5rem;
  }

  #intro-textarea, #intro-display {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 8rem;
  }

  #intro-display {
    position: relative;
    padding-right: 2.25rem;
  }

  .intro-pencil {
    position: absolute;
    top: 5px;
    right: 0;
    float: none;
    margin: 0;
  }

  #intro-textarea {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  #save-intro-button, #edit-intro-button {
    float: none;
    flex: 0 0 auto;
    width: auto;
    margin-top: 8rem;
    margin-left: 0;
  }

  #links-form {
    margin-left: 0;
    width: 100%;
  }

  /* Mobile friend button adjustments */

  .profile-actions {
    justify-content: center;
    padding-right: 0;
    margin-bottom: 0.5rem;
  }

  .profile-actions .friend-btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
  }

  .header-username {
    font-size: 2.2rem !important;
  }
}

/* Additional mobile styles for "What I'm Upto" & book covers */

@media (max-width: 768px) {
  .upto-book-cover {
    width: 152px;
    height: 240px;
  }

  .upto-options {
    padding: 0rem .5rem 2rem .5rem;
  }

  .tg-upto-card > .edit-icon {
    top: 0.75rem;
    right: 0.75rem;
  }

  .tg-upto-card > .upto-options {
    padding-right: 3.75rem;
    padding-bottom: 0;
  }

  .upto-book-list {
    position: relative;
    width: 232px;
    overflow: visible;
    height: 262px;
    left: -1.7rem;
    scrollbar-width: thin;
  }

  .upto-book-list.expanded {
    overflow-x: scroll;
    position: relative;
    padding-right: -100px;
    width: calc(100% + 6.5rem);
    z-index: 29500;
  }

  /* Initial stacked state for mobile */

  .upto-book-list:not(.expanded) .upto-book-cover {
    position: absolute !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Expanded state for mobile */

  .upto-book-list.expanded .upto-book-cover {
    transform: scale(1) translateZ(0) !important;
    filter: brightness(100%) contrast(100%) !important;
    top: 0 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Position books when expanded */

  .upto-book-list.expanded > div:nth-child(1) .upto-book-cover {
    left: calc(0px + 1.75rem) !important;
  }

  .upto-book-list.expanded > div:nth-child(2) .upto-book-cover {
    left: calc(176px + 1.75rem) !important;
  }

  .upto-book-list.expanded > div:nth-child(3) .upto-book-cover {
    left: calc(352px + 1.75rem) !important;
  }

  .upto-book-list.expanded > div:nth-child(4) .upto-book-cover {
    left: calc(528px + 1.75rem) !important;
  }

  .upto-book-list.expanded > div:nth-child(5) .upto-book-cover {
    left: calc(704px + 1.75rem) !important;
  }

  .upto-book-list.expanded > div:last-child .upto-book-cover {
    margin-right: 180px;
  }

  /* Book hover/active state on mobile */

  .upto-book-list.expanded .upto-book-cover:active {
    transform: scale(1.1) translateX(-5px) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
  }
}

/* Desktop specific styles (min-width: 769px) */

@media (min-width: 769px) {
  .upto-book-list.expanded .upto-book-cover.expanded .tooltip {
    display: block;
    opacity: 1;
  }

  .upto-book-cover {
    cursor: pointer;
  }

  .upto-book-cover.expanded .tooltip {
    display: block;
    opacity: 1;
  }

  .upto-book-list.expanded .upto-book-cover {
    transform: scale(1) translateZ(0) !important;
    filter: brightness(100%) contrast(100%) !important;
    top: 0 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
  }

  .upto-book-list.expanded > div:nth-child(1) .upto-book-cover {
    left: calc(0px + 2rem) !important;
  }

  .upto-book-list.expanded > div:nth-child(2) .upto-book-cover {
    left: calc(160px + 2rem) !important;
  }

  .upto-book-list.expanded > div:nth-child(3) .upto-book-cover {
    left: calc(320px + 2rem) !important;
  }

  .upto-book-list.expanded > div:nth-child(4) .upto-book-cover {
    left: calc(480px + 2rem) !important;
  }

  .upto-book-list.expanded > div:nth-child(5) .upto-book-cover {
    left: calc(640px + 2rem) !important;
  }

  .upto-book-list.expanded .upto-book-cover.expanded {
    transform: scale(1.1) translateX(-5px) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
  }
}

/* -------------------------------------------------------
   10. Overrides & Additional Styles
------------------------------------------------------- */

/* Remove outline on intro textarea and link inputs */

#intro-textarea, #intro-textarea:focus, .link-input, .link-input:focus {
  outline: none !important;
}

/* -------------------------------------------------------
   12. Global Add Button, Book Details & Review Section
------------------------------------------------------- */

/* Global position for add button */

#global-add-upto {
  position: absolute;
  bottom: 15px !important;
  top: auto !important;
  right: 15px !important;
  left: auto !important;
  margin: 0 !important;
}

/* Global add button (duplicate definition with updated values) */

.add-upto-item-global {
  background: #007ACC;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.add-upto-item-global:hover {
  transform: scale(1.1);
}

.add-upto-item-global .material-symbols-outlined {
  color: #fff;
  font-size: 24px;
}

.add-upto-item-global i {
  font-size: 1.5rem;
  line-height: 2.8rem;
}

/* Book details header */

.upto-book-details-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.upto-book-details-header img {
  width: 150px;
  height: 225px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.upto-book-info {
  flex: 1;
}

/* Book review section */

.upto-book-review-section {
  margin-top: 20px;
}

#upto-book-review-textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  font-family: inherit;
}

#upto-book-review-display {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  position: relative;
}

#edit-upto-book-review-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}

/* ===== modal.css ===== */

/* ===========================================================
   Modal Styles
   - Styles for the modal overlay, content, and close button.
   =========================================================== */

/* Modal overlay covering the entire viewport */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 30000;
}

/* Modal content container */

.modal-content {
  color: #000;
  width: min(90vw, 800px);
  padding: 60px 0 0;
  max-width: 800px;
  margin: calc(2rem + env(safe-area-inset-top)) auto 2rem;
  min-height: auto;
  position: relative;
  z-index: 30001;
  background: transparent;
  box-shadow: none;
}

/* Close button for the modal */

.close-modal {
  position: fixed;
  top: max(16px, calc(env(safe-area-inset-top) + 8px));
  right: max(16px, calc(env(safe-area-inset-right) + 8px));
  left: auto;
  cursor: pointer;
  font-size: 4rem;
  line-height: 2rem;
  padding: 0;
  margin: 0;
  color: #f00;
  z-index: 30002;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

/* Adjust modal styles for mobile devices */

@media (max-width: 768px) {
  .modal-content {
    width: calc(100vw - 1.5rem);
    margin: calc(1rem + env(safe-area-inset-top)) auto 1rem;
  }

  .close-modal {
    top: max(12px, calc(env(safe-area-inset-top) + 4px));
    right: max(12px, calc(env(safe-area-inset-right) + 4px));
    left: auto;
    padding: 15px;
    min-width: 54px;
    min-height: 54px;
  }
}

/* ===========================================================
   Step Visibility
   - Controls display of step elements.
   =========================================================== */

.step {
  display: none;
}

.step.active {
  display: block !important;
}

/* ===========================================================
   Uptos & Related UI Components
   - Styles for "upto-types", buttons, and icons.
   =========================================================== */

/* Uptos container */

.upto-item-types {
  display: grid;
  gap: 0;
  width: 100%;
}

/* Uptos type button to align icon and text */

.upto-item-type-btn {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(84, 106, 80, 0.14);
  border-radius: 0;
  cursor: pointer;
  width: 100%;
  padding: 0.95rem 1.1rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
  margin: 0;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.upto-item-type-btn:hover, .upto-item-type-btn:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(84, 106, 80, 0.28);
  outline: none;
}

/* Icon container within each button */

.upto-item-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #546a50;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Icon styling inside the circle */

.upto-item-icon-circle span.material-symbols-outlined {
  font-size: 1.75rem;
  color: #fff;
}

/* Title text for adding an upto item */

.add-upto-item-title {
  margin-left: 0;
  font-size: 1.08rem;
  color: #2f3b2d;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
}

/* Ensure direct child override for title inside button */

.upto-item-type-btn > .add-upto-item-title {
  background: none !important;
  border: none !important;
}

.upto-item-details-content {
  border-top: 1px solid rgba(84, 106, 80, 0.14);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

/* ===========================================================
   Uptos Form Groups & Suggestions
   - Styling for form groups and suggestion lists.
   =========================================================== */

/* Form group wrapper for upto-related inputs */

.upto-item-form-group {
  margin-bottom: 1rem;
}

/* Input styling for upto forms */

.tg-upto-form {
  display: grid;
  gap: 1.5rem;
}

.tg-upto-form-title {
  margin: 0 0 1.5rem;
  color: #2f3b2d;
  font-size: 1.55rem;
  font-weight: 700;
}

.tg-upto-form-fields {
  display: grid;
  gap: 0.9rem;
}

.upto-item-form-group input, .upto-item-form-group textarea, .upto-item-form-group select {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  border: 1px solid rgba(84, 106, 80, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: #2f3b2d;
  border-radius: 1.25rem;
  box-sizing: border-box;
}

.upto-item-form-group input:focus, .upto-item-form-group textarea:focus, .upto-item-form-group select:focus {
  border-color: rgba(84, 106, 80, 0.42);
  outline: none;
}

/* Select box styling */

.upto-item-form-group select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23546a50' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5rem;
}

/* Option styling for select boxes */

.upto-item-form-group select option {
  background-color: #fff;
  color: #2f3b2d;
  font-size: 1rem;
  line-height: 1.5;
}

/* Override select colors for mobile devices */

@media (max-width: 768px) {
  .upto-item-form-group select, .upto-item-form-group select option {
    color: #2f3b2d !important;
    -webkit-text-fill-color: #2f3b2d !important;
    opacity: 1 !important;
  }
}

/* General option styling and hover effect */

.upto-item-form-group option {
  padding: 0.5rem;
  border-radius: 5px;
}

.upto-item-form-group option:hover {
  background-color: #edf2ea;
  transition: 0.3s;
}

/* Suggestion list styling */

.suggestions-list {
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(84, 106, 80, 0.12);
  overflow: hidden;
}

/* Suggestion item styling */

.suggestion-item {
  padding: 1rem;
  color: #2f3b2d;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid rgba(84, 106, 80, 0.08);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: #edf2ea;
}

.suggestion-item.selected {
  background-color: rgba(84, 106, 80, 0.14);
}

.suggestion-item .tg-upto-suggestion {
  align-items: flex-start !important;
  display: flex !important;
  gap: 0.9rem;
  min-width: 0;
}

.suggestion-item .tg-upto-suggestion__art {
  flex: 0 0 58px !important;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
}

.suggestion-item .tg-upto-suggestion__cover {
  display: block !important;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 82px !important;
  max-height: 82px !important;
  object-fit: cover !important;
  border-radius: 0.9rem;
  background: #edf2ea;
}

.suggestion-item .tg-upto-suggestion__cover--placeholder {
  align-items: center !important;
  display: flex !important;
  justify-content: center !important;
  text-align: center;
  padding: 0.4rem;
}

.suggestion-item .tg-upto-suggestion__body {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 0.28rem;
  min-width: 0;
}

.suggestion-item .tg-upto-suggestion__title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.suggestion-item .tg-upto-suggestion__subtitle {
  color: rgba(47, 59, 45, 0.75);
  font-size: 0.9rem;
  line-height: 1.4;
}

.suggestion-item .tg-upto-suggestion__meta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.suggestion-item .tg-upto-suggestion__pill {
  background: rgba(84, 106, 80, 0.1);
  border-radius: 999px;
  color: #546a50;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
}

.tg-upto-selection-preview .tg-upto-suggestion {
  align-items: center;
  display: flex;
  gap: 0.9rem;
}

.tg-upto-selection-preview .tg-upto-suggestion__art {
  flex: 0 0 58px;
  width: 58px;
}

.tg-upto-selection-preview .tg-upto-suggestion__cover {
  width: 58px;
  height: 82px;
  object-fit: cover;
  border-radius: 0.9rem;
}

/* ===========================================================
   Button Groups
   - Basic styling for button groups and individual buttons.
   =========================================================== */

.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.btn {
  align-items: center;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 600;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1.3rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: #546a50;
  color: #fff;
}

.btn-secondary {
  background: #edf2ea;
  color: #2f3b2d;
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: #4a5d46;
  outline: none;
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background: #dde7db;
  outline: none;
}

/* ===========================================================
   Animations
   - Keyframes and animation delays for upto type buttons.
   =========================================================== */

@keyframes flyIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Initially hide each upto type button */

.upto-item-types .upto-item-type-btn {
  opacity: 0;
}

/* When the container has a 'show' class, animate buttons in sequence */

.upto-item-types.show .upto-item-type-btn {
  animation: flyIn 0.3s forwards;
}

.upto-item-types.show .upto-item-type-btn:nth-child(1) {
  animation-delay: 0.05s;
}

.upto-item-types.show .upto-item-type-btn:nth-child(2) {
  animation-delay: 0.1s;
}

.upto-item-types.show .upto-item-type-btn:nth-child(3) {
  animation-delay: 0.15s;
}

.upto-item-types.show .upto-item-type-btn:nth-child(4) {
  animation-delay: 0.2s;
}

.upto-item-types.show .upto-item-type-btn:nth-child(5) {
  animation-delay: 0.25s;
}

.upto-item-types.show .upto-item-type-btn:nth-child(6) {
  animation-delay: 0.3s;
}

.upto-item-types.show .upto-item-type-btn:nth-child(7) {
  animation-delay: 0.35s;
}

.upto-item-types.show .upto-item-type-btn:nth-child(8) {
  animation-delay: 0.4s;
}

.upto-item-types.show .upto-item-type-btn:nth-child(9) {
  animation-delay: 0.45s;
}

.upto-item-types.show .upto-item-type-btn:nth-child(10) {
  animation-delay: 0.5s;
}

/* ===========================================================
   Loading Icon
   - Styles for a loading indicator.
   =========================================================== */

.loading-icon {
  display: none;
  margin-top: 0.75rem;
  text-align: center;
  color: #546a50;
}

.loading-icon img {
  width: 30px;
  height: 30px;
}

/* === Book Details Modal Specific Styles === */

#upto-book-details-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 11000;
  overflow-y: auto;
  padding-top: 50px;
}

#upto-book-details-modal .upto-item-modal-content {
  background: transparent;
  max-width: 600px;
  margin: auto;
  padding: 20px 0 0;
  position: relative;
}

#upto-book-details-modal .upto-item-close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  color: #f00;
  cursor: pointer;
  z-index: 11001;
}

.delete-upto-item {
  margin-bottom: 15px;
  opacity: .3;
  padding-left: .5rem;
  font-size: .8rem;
  transition: .2s;
}

.delete-upto-item:hover {
  opacity: 1;
}

.upto-item-details-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.upto-item-details-header img#modal-upto-item-cover {
  width: 120px;
  height: auto;
  margin-right: 20px;
  border-radius: 5px;
}

.upto-item-details-header .upto-item-info {
  flex: 1;
}

.upto-item-details-header .upto-item-info h2#modal-upto-item-title {
  margin: 0;
  font-size: 1.8rem;
  color: #333;
}

.upto-item-details-header .upto-item-info p#modal-upto-item-author {
  margin: 5px 0 20px 0;
  color: #666;
}

.upto-item-review-section {
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

.upto-item-review-section #upto-item-review-display, .upto-item-review-section #upto-item-review-edit {
  margin-top: 10px;
}

.upto-item-review-section #upto-item-review-text {
  font-size: 1rem;
  color: #444;
  margin-bottom: 10px;
}

.upto-item-review-section textarea#upto-item-review-textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  font-size: 1rem;
  resize: vertical;
}

#upto-item-edit-review-btn, #upto-item-save-review-btn {
  background: #007ACC;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

/* ===== eva.css ===== */

@font-face {
    font-family: Eva-Icons;
    src: url("./fonts/Eva-Icons.eot");
    src: url("./fonts/Eva-Icons.eot?#iefix") format("embedded-opentype"), url("./fonts/Eva-Icons.woff2") format("woff2"), url("./fonts/Eva-Icons.woff") format("woff"), url("./fonts/Eva-Icons.ttf") format("truetype"), url("./fonts/Eva-Icons.svg#Eva-Icons") format("svg");
    font-style: normal;
    font-weight: 400;
}

.eva {
  display: inline-block;
  transform: translate(0, 0);
  text-rendering: auto;
  font: normal normal 400 14px/1 Eva-Icons;
  font-size: inherit;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

.eva-lg {
  vertical-align: -15%;
  line-height: 0.75em;
  font-size: 1.33333333em;
}

.eva-2x {
  font-size: 2em;
}

.eva-3x {
  font-size: 3em;
}

.eva-4x {
  font-size: 4em;
}

.eva-5x {
  font-size: 5em;
}

.eva-fw {
  width: 1.28571429em;
  text-align: center;
}

.eva-activity::before {
  content: "";
}

.eva-activity-outline::before {
  content: "";
}

.eva-alert-circle::before {
  content: "";
}

.eva-alert-circle-outline::before {
  content: "";
}

.eva-alert-triangle::before {
  content: "";
}

.eva-alert-triangle-outline::before {
  content: "";
}

.eva-archive::before {
  content: "";
}

.eva-archive-outline::before {
  content: "";
}

.eva-arrow-back::before {
  content: "";
}

.eva-arrow-back-outline::before {
  content: "";
}

.eva-arrow-circle-down::before {
  content: "";
}

.eva-arrow-circle-down-outline::before {
  content: "";
}

.eva-arrow-circle-left::before {
  content: "";
}

.eva-arrow-circle-left-outline::before {
  content: "";
}

.eva-arrow-circle-right::before {
  content: "";
}

.eva-arrow-circle-right-outline::before {
  content: "";
}

.eva-arrow-circle-up::before {
  content: "";
}

.eva-arrow-circle-up-outline::before {
  content: "";
}

.eva-arrow-down::before {
  content: "";
}

.eva-arrow-down-outline::before {
  content: "";
}

.eva-arrow-downward::before {
  content: "";
}

.eva-arrow-downward-outline::before {
  content: "";
}

.eva-arrow-forward::before {
  content: "";
}

.eva-arrow-forward-outline::before {
  content: "";
}

.eva-arrow-ios-back::before {
  content: "";
}

.eva-arrow-ios-back-outline::before {
  content: "";
}

.eva-arrow-ios-downward::before {
  content: "";
}

.eva-arrow-ios-downward-outline::before {
  content: "";
}

.eva-arrow-ios-forward::before {
  content: "";
}

.eva-arrow-ios-forward-outline::before {
  content: "";
}

.eva-arrow-ios-upward::before {
  content: "";
}

.eva-arrow-ios-upward-outline::before {
  content: "";
}

.eva-arrow-left::before {
  content: "";
}

.eva-arrow-left-outline::before {
  content: "";
}

.eva-arrow-right::before {
  content: "";
}

.eva-arrow-right-outline::before {
  content: "";
}

.eva-arrow-up::before {
  content: "";
}

.eva-arrow-up-outline::before {
  content: "";
}

.eva-arrow-upward::before {
  content: "";
}

.eva-arrow-upward-outline::before {
  content: "";
}

.eva-arrowhead-down::before {
  content: "";
}

.eva-arrowhead-down-outline::before {
  content: "";
}

.eva-arrowhead-left::before {
  content: "";
}

.eva-arrowhead-left-outline::before {
  content: "";
}

.eva-arrowhead-right::before {
  content: "";
}

.eva-arrowhead-right-outline::before {
  content: "";
}

.eva-arrowhead-up::before {
  content: "";
}

.eva-arrowhead-up-outline::before {
  content: "";
}

.eva-at::before {
  content: "";
}

.eva-at-outline::before {
  content: "";
}

.eva-attach::before {
  content: "";
}

.eva-attach-2::before {
  content: "";
}

.eva-attach-2-outline::before {
  content: "";
}

.eva-attach-outline::before {
  content: "";
}

.eva-award::before {
  content: "";
}

.eva-award-outline::before {
  content: "";
}

.eva-backspace::before {
  content: "";
}

.eva-backspace-outline::before {
  content: "";
}

.eva-bar-chart::before {
  content: "";
}

.eva-bar-chart-2::before {
  content: "";
}

.eva-bar-chart-2-outline::before {
  content: "";
}

.eva-bar-chart-outline::before {
  content: "";
}

.eva-battery::before {
  content: "";
}

.eva-battery-outline::before {
  content: "";
}

.eva-behance::before {
  content: "";
}

.eva-behance-outline::before {
  content: "";
}

.eva-bell::before {
  content: "";
}

.eva-bell-off::before {
  content: "";
}

.eva-bell-off-outline::before {
  content: "";
}

.eva-bell-outline::before {
  content: "";
}

.eva-bluetooth::before {
  content: "";
}

.eva-bluetooth-outline::before {
  content: "";
}

.eva-book::before {
  content: "";
}

.eva-book-open::before {
  content: "";
}

.eva-book-open-outline::before {
  content: "";
}

.eva-book-outline::before {
  content: "";
}

.eva-bookmark::before {
  content: "";
}

.eva-bookmark-outline::before {
  content: "";
}

.eva-briefcase::before {
  content: "";
}

.eva-briefcase-outline::before {
  content: "";
}

.eva-browser::before {
  content: "";
}

.eva-browser-outline::before {
  content: "";
}

.eva-brush::before {
  content: "";
}

.eva-brush-outline::before {
  content: "";
}

.eva-bulb::before {
  content: "";
}

.eva-bulb-outline::before {
  content: "";
}

.eva-calendar::before {
  content: "";
}

.eva-calendar-outline::before {
  content: "";
}

.eva-camera::before {
  content: "";
}

.eva-camera-outline::before {
  content: "";
}

.eva-car::before {
  content: "";
}

.eva-car-outline::before {
  content: "";
}

.eva-cast::before {
  content: "";
}

.eva-cast-outline::before {
  content: "";
}

.eva-charging::before {
  content: "";
}

.eva-charging-outline::before {
  content: "";
}

.eva-checkmark::before {
  content: "";
}

.eva-checkmark-circle::before {
  content: "";
}

.eva-checkmark-circle-2::before {
  content: "";
}

.eva-checkmark-circle-2-outline::before {
  content: "";
}

.eva-checkmark-circle-outline::before {
  content: "";
}

.eva-checkmark-outline::before {
  content: "";
}

.eva-checkmark-square::before {
  content: "";
}

.eva-checkmark-square-2::before {
  content: "";
}

.eva-checkmark-square-2-outline::before {
  content: "";
}

.eva-checkmark-square-outline::before {
  content: "";
}

.eva-chevron-down::before {
  content: "";
}

.eva-chevron-down-outline::before {
  content: "";
}

.eva-chevron-left::before {
  content: "";
}

.eva-chevron-left-outline::before {
  content: "";
}

.eva-chevron-right::before {
  content: "";
}

.eva-chevron-right-outline::before {
  content: "";
}

.eva-chevron-up::before {
  content: "";
}

.eva-chevron-up-outline::before {
  content: "";
}

.eva-clipboard::before {
  content: "";
}

.eva-clipboard-outline::before {
  content: "";
}

.eva-clock::before {
  content: "";
}

.eva-clock-outline::before {
  content: "";
}

.eva-close::before {
  content: "";
}

.eva-close-circle::before {
  content: "";
}

.eva-close-circle-outline::before {
  content: "";
}

.eva-close-outline::before {
  content: "";
}

.eva-close-square::before {
  content: "";
}

.eva-close-square-outline::before {
  content: "";
}

.eva-cloud-download::before {
  content: "";
}

.eva-cloud-download-outline::before {
  content: "";
}

.eva-cloud-upload::before {
  content: "";
}

.eva-cloud-upload-outline::before {
  content: "";
}

.eva-code::before {
  content: "";
}

.eva-code-download::before {
  content: "";
}

.eva-code-download-outline::before {
  content: "";
}

.eva-code-outline::before {
  content: "";
}

.eva-collapse::before {
  content: "";
}

.eva-collapse-outline::before {
  content: "";
}

.eva-color-palette::before {
  content: "";
}

.eva-color-palette-outline::before {
  content: "";
}

.eva-color-picker::before {
  content: "";
}

.eva-color-picker-outline::before {
  content: "";
}

.eva-compass::before {
  content: "";
}

.eva-compass-outline::before {
  content: "";
}

.eva-copy::before {
  content: "";
}

.eva-copy-outline::before {
  content: "";
}

.eva-corner-down-left::before {
  content: "";
}

.eva-corner-down-left-outline::before {
  content: "";
}

.eva-corner-down-right::before {
  content: "";
}

.eva-corner-down-right-outline::before {
  content: "";
}

.eva-corner-left-down::before {
  content: "";
}

.eva-corner-left-down-outline::before {
  content: "";
}

.eva-corner-left-up::before {
  content: "";
}

.eva-corner-left-up-outline::before {
  content: "";
}

.eva-corner-right-down::before {
  content: "";
}

.eva-corner-right-down-outline::before {
  content: "";
}

.eva-corner-right-up::before {
  content: "";
}

.eva-corner-right-up-outline::before {
  content: "";
}

.eva-corner-up-left::before {
  content: "";
}

.eva-corner-up-left-outline::before {
  content: "";
}

.eva-corner-up-right::before {
  content: "";
}

.eva-corner-up-right-outline::before {
  content: "";
}

.eva-credit-card::before {
  content: "";
}

.eva-credit-card-outline::before {
  content: "";
}

.eva-crop::before {
  content: "";
}

.eva-crop-outline::before {
  content: "";
}

.eva-cube::before {
  content: "";
}

.eva-cube-outline::before {
  content: "";
}

.eva-diagonal-arrow-left-down::before {
  content: "";
}

.eva-diagonal-arrow-left-down-outline::before {
  content: "";
}

.eva-diagonal-arrow-left-up::before {
  content: "";
}

.eva-diagonal-arrow-left-up-outline::before {
  content: "";
}

.eva-diagonal-arrow-right-down::before {
  content: "";
}

.eva-diagonal-arrow-right-down-outline::before {
  content: "";
}

.eva-diagonal-arrow-right-up::before {
  content: "";
}

.eva-diagonal-arrow-right-up-outline::before {
  content: "";
}

.eva-done-all::before {
  content: "";
}

.eva-done-all-outline::before {
  content: "";
}

.eva-download::before {
  content: "";
}

.eva-download-outline::before {
  content: "";
}

.eva-droplet::before {
  content: "";
}

.eva-droplet-off::before {
  content: "";
}

.eva-droplet-off-outline::before {
  content: "";
}

.eva-droplet-outline::before {
  content: "";
}

.eva-edit::before {
  content: "";
}

.eva-edit-2::before {
  content: "";
}

.eva-edit-2-outline::before {
  content: "";
}

.eva-edit-outline::before {
  content: "";
}

.eva-email::before {
  content: "";
}

.eva-email-outline::before {
  content: "";
}

.eva-expand::before {
  content: "";
}

.eva-expand-outline::before {
  content: "";
}

.eva-external-link::before {
  content: "";
}

.eva-external-link-outline::before {
  content: "";
}

.eva-eye::before {
  content: "";
}

.eva-eye-off::before {
  content: "";
}

.eva-eye-off-2::before {
  content: "";
}

.eva-eye-off-2-outline::before {
  content: "";
}

.eva-eye-off-outline::before {
  content: "";
}

.eva-eye-outline::before {
  content: "";
}

.eva-facebook::before {
  content: "";
}

.eva-facebook-outline::before {
  content: "";
}

.eva-file::before {
  content: "";
}

.eva-file-add::before {
  content: "";
}

.eva-file-add-outline::before {
  content: "";
}

.eva-file-outline::before {
  content: "";
}

.eva-file-remove::before {
  content: "";
}

.eva-file-remove-outline::before {
  content: "";
}

.eva-file-text::before {
  content: "";
}

.eva-file-text-outline::before {
  content: "";
}

.eva-film::before {
  content: "";
}

.eva-film-outline::before {
  content: "";
}

.eva-flag::before {
  content: "";
}

.eva-flag-outline::before {
  content: "";
}

.eva-flash::before {
  content: "";
}

.eva-flash-off::before {
  content: "";
}

.eva-flash-off-outline::before {
  content: "";
}

.eva-flash-outline::before {
  content: "";
}

.eva-flip::before {
  content: "";
}

.eva-flip-2::before {
  content: "";
}

.eva-flip-2-outline::before {
  content: "";
}

.eva-flip-outline::before {
  content: "";
}

.eva-folder::before {
  content: "";
}

.eva-folder-add::before {
  content: "";
}

.eva-folder-add-outline::before {
  content: "";
}

.eva-folder-outline::before {
  content: "";
}

.eva-folder-remove::before {
  content: "";
}

.eva-folder-remove-outline::before {
  content: "";
}

.eva-funnel::before {
  content: "";
}

.eva-funnel-outline::before {
  content: "";
}

.eva-gift::before {
  content: "";
}

.eva-gift-outline::before {
  content: "";
}

.eva-github::before {
  content: "";
}

.eva-github-outline::before {
  content: "";
}

.eva-globe::before {
  content: "";
}

.eva-globe-2::before {
  content: "";
}

.eva-globe-2-outline::before {
  content: "";
}

.eva-globe-3::before {
  content: "";
}

.eva-globe-outline::before {
  content: "";
}

.eva-google::before {
  content: "";
}

.eva-google-outline::before {
  content: "";
}

.eva-grid::before {
  content: "";
}

.eva-grid-outline::before {
  content: "";
}

.eva-hard-drive::before {
  content: "";
}

.eva-hard-drive-outline::before {
  content: "";
}

.eva-hash::before {
  content: "";
}

.eva-hash-outline::before {
  content: "";
}

.eva-headphones::before {
  content: "";
}

.eva-headphones-outline::before {
  content: "";
}

.eva-heart::before {
  content: "";
}

.eva-heart-outline::before {
  content: "";
}

.eva-home::before {
  content: "";
}

.eva-home-outline::before {
  content: "";
}

.eva-image::before {
  content: "";
}

.eva-image-2::before {
  content: "";
}

.eva-image-outline::before {
  content: "";
}

.eva-inbox::before {
  content: "";
}

.eva-inbox-outline::before {
  content: "";
}

.eva-info::before {
  content: "";
}

.eva-info-outline::before {
  content: "";
}

.eva-keypad::before {
  content: "";
}

.eva-keypad-outline::before {
  content: "";
}

.eva-layers::before {
  content: "";
}

.eva-layers-outline::before {
  content: "";
}

.eva-layout::before {
  content: "";
}

.eva-layout-outline::before {
  content: "";
}

.eva-link::before {
  content: "";
}

.eva-link-2::before {
  content: "";
}

.eva-link-2-outline::before {
  content: "";
}

.eva-link-outline::before {
  content: "";
}

.eva-linkedin::before {
  content: "";
}

.eva-linkedin-outline::before {
  content: "";
}

.eva-list::before {
  content: "";
}

.eva-list-outline::before {
  content: "";
}

.eva-loader-outline::before {
  content: "";
}

.eva-lock::before {
  content: "";
}

.eva-lock-outline::before {
  content: "";
}

.eva-log-in::before {
  content: "";
}

.eva-log-in-outline::before {
  content: "";
}

.eva-log-out::before {
  content: "";
}

.eva-log-out-outline::before {
  content: "";
}

.eva-map::before {
  content: "";
}

.eva-map-outline::before {
  content: "";
}

.eva-maximize::before {
  content: "";
}

.eva-maximize-outline::before {
  content: "";
}

.eva-menu::before {
  content: "";
}

.eva-menu-2::before {
  content: "";
}

.eva-menu-2-outline::before {
  content: "";
}

.eva-menu-arrow::before {
  content: "";
}

.eva-menu-arrow-outline::before {
  content: "";
}

.eva-menu-outline::before {
  content: "";
}

.eva-message-circle::before {
  content: "";
}

.eva-message-circle-outline::before {
  content: "";
}

.eva-message-square::before {
  content: "";
}

.eva-message-square-outline::before {
  content: "";
}

.eva-mic::before {
  content: "";
}

.eva-mic-off::before {
  content: "";
}

.eva-mic-off-outline::before {
  content: "";
}

.eva-mic-outline::before {
  content: "";
}

.eva-minimize::before {
  content: "";
}

.eva-minimize-outline::before {
  content: "";
}

.eva-minus::before {
  content: "";
}

.eva-minus-circle::before {
  content: "";
}

.eva-minus-circle-outline::before {
  content: "";
}

.eva-minus-outline::before {
  content: "";
}

.eva-minus-square::before {
  content: "";
}

.eva-minus-square-outline::before {
  content: "";
}

.eva-monitor::before {
  content: "";
}

.eva-monitor-outline::before {
  content: "";
}

.eva-moon::before {
  content: "";
}

.eva-moon-outline::before {
  content: "";
}

.eva-more-horizontal::before {
  content: "";
}

.eva-more-horizontal-outline::before {
  content: "";
}

.eva-more-vertical::before {
  content: "";
}

.eva-more-vertical-outline::before {
  content: "";
}

.eva-move::before {
  content: "";
}

.eva-move-outline::before {
  content: "";
}

.eva-music::before {
  content: "";
}

.eva-music-outline::before {
  content: "";
}

.eva-navigation::before {
  content: "";
}

.eva-navigation-2::before {
  content: "";
}

.eva-navigation-2-outline::before {
  content: "";
}

.eva-navigation-outline::before {
  content: "";
}

.eva-npm::before {
  content: "";
}

.eva-npm-outline::before {
  content: "";
}

.eva-options::before {
  content: "";
}

.eva-options-2::before {
  content: "";
}

.eva-options-2-outline::before {
  content: "";
}

.eva-options-outline::before {
  content: "";
}

.eva-pantone::before {
  content: "";
}

.eva-pantone-outline::before {
  content: "";
}

.eva-paper-plane::before {
  content: "";
}

.eva-paper-plane-outline::before {
  content: "";
}

.eva-pause-circle::before {
  content: "";
}

.eva-pause-circle-outline::before {
  content: "";
}

.eva-people::before {
  content: "";
}

.eva-people-outline::before {
  content: "";
}

.eva-percent::before {
  content: "";
}

.eva-percent-outline::before {
  content: "";
}

.eva-person::before {
  content: "";
}

.eva-person-add::before {
  content: "";
}

.eva-person-add-outline::before {
  content: "";
}

.eva-person-delete::before {
  content: "";
}

.eva-person-delete-outline::before {
  content: "";
}

.eva-person-done::before {
  content: "";
}

.eva-person-done-outline::before {
  content: "";
}

.eva-person-outline::before {
  content: "";
}

.eva-person-remove::before {
  content: "";
}

.eva-person-remove-outline::before {
  content: "";
}

.eva-phone::before {
  content: "";
}

.eva-phone-call::before {
  content: "";
}

.eva-phone-call-outline::before {
  content: "";
}

.eva-phone-missed::before {
  content: "";
}

.eva-phone-missed-outline::before {
  content: "";
}

.eva-phone-off::before {
  content: "";
}

.eva-phone-off-outline::before {
  content: "";
}

.eva-phone-outline::before {
  content: "";
}

.eva-pie-chart::before {
  content: "";
}

.eva-pie-chart-2::before {
  content: "";
}

.eva-pie-chart-outline::before {
  content: "";
}

.eva-pin::before {
  content: "";
}

.eva-pin-outline::before {
  content: "";
}

.eva-play-circle::before {
  content: "";
}

.eva-play-circle-outline::before {
  content: "";
}

.eva-plus::before {
  content: "";
}

.eva-plus-circle::before {
  content: "";
}

.eva-plus-circle-outline::before {
  content: "";
}

.eva-plus-outline::before {
  content: "";
}

.eva-plus-square::before {
  content: "";
}

.eva-plus-square-outline::before {
  content: "";
}

.eva-power::before {
  content: "";
}

.eva-power-outline::before {
  content: "";
}

.eva-pricetags::before {
  content: "";
}

.eva-pricetags-outline::before {
  content: "";
}

.eva-printer::before {
  content: "";
}

.eva-printer-outline::before {
  content: "";
}

.eva-question-mark::before {
  content: "";
}

.eva-question-mark-circle::before {
  content: "";
}

.eva-question-mark-circle-outline::before {
  content: "";
}

.eva-question-mark-outline::before {
  content: "";
}

.eva-radio::before {
  content: "";
}

.eva-radio-button-off::before {
  content: "";
}

.eva-radio-button-off-outline::before {
  content: "";
}

.eva-radio-button-on::before {
  content: "";
}

.eva-radio-button-on-outline::before {
  content: "";
}

.eva-radio-outline::before {
  content: "";
}

.eva-recording::before {
  content: "";
}

.eva-recording-outline::before {
  content: "";
}

.eva-refresh::before {
  content: "";
}

.eva-refresh-outline::before {
  content: "";
}

.eva-repeat::before {
  content: "";
}

.eva-repeat-outline::before {
  content: "";
}

.eva-rewind-left::before {
  content: "";
}

.eva-rewind-left-outline::before {
  content: "";
}

.eva-rewind-right::before {
  content: "";
}

.eva-rewind-right-outline::before {
  content: "";
}

.eva-save::before {
  content: "";
}

.eva-save-outline::before {
  content: "";
}

.eva-scissors::before {
  content: "";
}

.eva-scissors-outline::before {
  content: "";
}

.eva-search::before {
  content: "";
}

.eva-search-outline::before {
  content: "";
}

.eva-settings::before {
  content: "";
}

.eva-settings-2::before {
  content: "";
}

.eva-settings-2-outline::before {
  content: "";
}

.eva-settings-outline::before {
  content: "";
}

.eva-shake::before {
  content: "";
}

.eva-shake-outline::before {
  content: "";
}

.eva-share::before {
  content: "";
}

.eva-share-outline::before {
  content: "";
}

.eva-shield::before {
  content: "";
}

.eva-shield-off::before {
  content: "";
}

.eva-shield-off-outline::before {
  content: "";
}

.eva-shield-outline::before {
  content: "";
}

.eva-shopping-bag::before {
  content: "";
}

.eva-shopping-bag-outline::before {
  content: "";
}

.eva-shopping-cart::before {
  content: "";
}

.eva-shopping-cart-outline::before {
  content: "";
}

.eva-shuffle::before {
  content: "";
}

.eva-shuffle-2::before {
  content: "";
}

.eva-shuffle-2-outline::before {
  content: "";
}

.eva-shuffle-outline::before {
  content: "";
}

.eva-skip-back::before {
  content: "";
}

.eva-skip-back-outline::before {
  content: "";
}

.eva-skip-forward::before {
  content: "";
}

.eva-skip-forward-outline::before {
  content: "";
}

.eva-slash::before {
  content: "";
}

.eva-slash-outline::before {
  content: "";
}

.eva-smartphone::before {
  content: "";
}

.eva-smartphone-outline::before {
  content: "";
}

.eva-smiling-face::before {
  content: "";
}

.eva-smiling-face-outline::before {
  content: "";
}

.eva-speaker::before {
  content: "";
}

.eva-speaker-outline::before {
  content: "";
}

.eva-square::before {
  content: "";
}

.eva-square-outline::before {
  content: "";
}

.eva-star::before {
  content: "";
}

.eva-star-outline::before {
  content: "";
}

.eva-stop-circle::before {
  content: "";
}

.eva-stop-circle-outline::before {
  content: "";
}

.eva-sun::before {
  content: "";
}

.eva-sun-outline::before {
  content: "";
}

.eva-swap::before {
  content: "";
}

.eva-swap-outline::before {
  content: "";
}

.eva-sync::before {
  content: "";
}

.eva-sync-outline::before {
  content: "";
}

.eva-text::before {
  content: "";
}

.eva-text-outline::before {
  content: "";
}

.eva-thermometer::before {
  content: "";
}

.eva-thermometer-minus::before {
  content: "";
}

.eva-thermometer-minus-outline::before {
  content: "";
}

.eva-thermometer-outline::before {
  content: "";
}

.eva-thermometer-plus::before {
  content: "";
}

.eva-thermometer-plus-outline::before {
  content: "";
}

.eva-toggle-left::before {
  content: "";
}

.eva-toggle-left-outline::before {
  content: "";
}

.eva-toggle-right::before {
  content: "";
}

.eva-toggle-right-outline::before {
  content: "";
}

.eva-trash::before {
  content: "";
}

.eva-trash-2::before {
  content: "";
}

.eva-trash-2-outline::before {
  content: "";
}

.eva-trash-outline::before {
  content: "";
}

.eva-trending-down::before {
  content: "";
}

.eva-trending-down-outline::before {
  content: "";
}

.eva-trending-up::before {
  content: "";
}

.eva-trending-up-outline::before {
  content: "";
}

.eva-tv::before {
  content: "";
}

.eva-tv-outline::before {
  content: "";
}

.eva-twitter::before {
  content: "";
}

.eva-twitter-outline::before {
  content: "";
}

.eva-umbrella::before {
  content: "";
}

.eva-umbrella-outline::before {
  content: "";
}

.eva-undo::before {
  content: "";
}

.eva-undo-outline::before {
  content: "";
}

.eva-unlock::before {
  content: "";
}

.eva-unlock-outline::before {
  content: "";
}

.eva-upload::before {
  content: "";
}

.eva-upload-outline::before {
  content: "";
}

.eva-video::before {
  content: "";
}

.eva-video-off::before {
  content: "";
}

.eva-video-off-outline::before {
  content: "";
}

.eva-video-outline::before {
  content: "";
}

.eva-volume-down::before {
  content: "";
}

.eva-volume-down-outline::before {
  content: "";
}

.eva-volume-mute::before {
  content: "";
}

.eva-volume-mute-outline::before {
  content: "";
}

.eva-volume-off::before {
  content: "";
}

.eva-volume-off-outline::before {
  content: "";
}

.eva-volume-up::before {
  content: "";
}

.eva-volume-up-outline::before {
  content: "";
}

.eva-wifi::before {
  content: "";
}

.eva-wifi-off::before {
  content: "";
}

.eva-wifi-off-outline::before {
  content: "";
}

.eva-wifi-outline::before {
  content: "";
}

/* ===== app/styles.css ===== */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body, .app-auth-body, .app-shell-body {
  min-height: 100vh;
}

body.app-auth-body, body.app-shell-body {
  background: var(--app-bg-bottom);
  color: var(--app-text);
}

body.app-route-profile .app-shell-header--transparent, body.app-route-profile-view .app-shell-header--transparent {
  padding-top: var(--tg-safe-area-top);
  min-height: calc(4rem + var(--tg-safe-area-top));
}

body.app-route-profile .app-shell .header-tools, body.app-route-profile-view .app-shell .header-tools, body.app-route-profile .app-shell .header-status, body.app-route-profile-view .app-shell .header-status {
  top: var(--tg-safe-area-top);
}

body.app-route-profile .header-picture, body.app-route-profile-view .header-picture {
  margin-top: calc(-1 * var(--tg-safe-area-top));
  height: calc(20rem + var(--tg-safe-area-top));
  padding-top: var(--tg-safe-area-top);
}

img {
  display: block;
  max-width: 100%;
}

button, input, select, textarea, a {
  font: inherit;
}

#app-root {
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
}

#app-main {
  padding: 0;
  margin: 0;
  min-height: 100vh;
  position: relative;
}

.app-shell-header {
  position: relative;
  z-index: 2200;
}

.app-shell-header--transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2400;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 5%, rgba(0, 0, 0, 0.3) 100%);
}

.app-shell .header-container {
  position: relative;
}

.app-shell .centered-logo {
  position: absolute;
  left: 50%;
  width: 3rem;
  margin-left: 0;
  transform: translateX(-50%);
  text-align: center;
}

.app-shell .centered-logo a {
  display: flex;
  justify-content: center;
}

.app-shell .logo {
  width: 3rem;
  margin-top: .5rem;
  margin-left: auto;
  margin-right: auto;
}

.app-auth-shell, .app-auth-shell__main {
  min-height: 100vh;
}

.app-auth-shell__main {
  width: 100%;
}

.app-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.app-auth-secondary {
  min-height: 44px;
  padding: 0.72rem 1.35rem;
  border-radius: var(--app-control-radius);
  border: none;
  background: rgba(84, 106, 80, 0.14);
  color: var(--app-text);
  font-weight: 500;
}

.app-auth-help {
  margin: 14px 0 0;
  color: var(--app-muted-text);
}

.app-auth-recovery {
  margin-top: 12px;
}

.app-auth-recovery__link {
  color: var(--app-accent);
  font-weight: 600;
}

.app-surface {
  border: none;
  border-radius: var(--app-card-radius);
  background: var(--app-card-bg);
  box-shadow: var(--app-shadow);
  padding: 1.5rem 2rem;
}

.app-footer-link {
  color: var(--app-accent);
  text-decoration: underline;
  font-weight: 500;
  background: none;
  border: 0;
  padding: 0;
}

.app-footer-link:hover {
  text-decoration: none;
}

.app-surface + .app-surface {
  margin-top: 18px;
}

.app-grid {
  display: grid;
  gap: 18px;
}

.app-grid--two {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.app-profile-layout {
  display: grid;
  gap: 24px;
}

.app-profile-actions, .app-inline-actions, .app-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.app-shell-body .profile-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin: -1.4rem 1rem 1rem auto;
  max-width: calc(100% - 2rem);
  overflow: visible;
  padding: 0;
  position: relative;
  z-index: 2600;
}

.app-shell-body .profile-circle-quick-add {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.1);
  min-height: 2.8rem;
  padding: 0 0.45rem;
}

.app-shell-body .profile-circle-quick-add__loading {
  color: var(--app-muted-text);
  font-size: 0.8rem;
  white-space: nowrap;
}

.app-shell-body .profile-action-icon {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.1);
  color: #000;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.8rem;
  justify-content: flex-start;
  gap: 0;
  line-height: 1;
  min-width: 2.8rem;
  overflow: hidden;
  padding: 0 0.9rem;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
  width: auto;
}

.app-shell-body .profile-action-icon:hover, .app-shell-body .profile-action-icon:focus-visible {
  background: rgba(255, 255, 255, 0.94);
  color: var(--app-accent-strong);
  outline: none;
  transform: translateY(-1px);
}

.app-shell-body .profile-action-icon--danger:hover, .app-shell-body .profile-action-icon--danger:focus-visible {
  color: #8b402b;
}

.app-shell-body .profile-action-icon:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.app-shell-body .profile-action-icon svg {
  height: 1.35rem;
  min-width: 1.35rem;
  width: 1.35rem;
}

.app-shell-body .profile-action-icon__hint {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  padding-left: 0;
  transform: translate(-8px, 2px);
  transition: max-width 0.56s ease, opacity 0.48s ease, transform 0.52s ease, padding-left 0.56s ease;
  white-space: nowrap;
}

.app-shell-body .profile-action-icon:hover .profile-action-icon__hint, .app-shell-body .profile-action-icon:focus-visible .profile-action-icon__hint {
  max-width: 11rem;
  opacity: 1;
  padding-left: 0.45rem;
  transform: translate(0, 2px);
}

.app-profile-links {
  display: grid;
  gap: 12px;
}

.app-profile-links__row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.app-profile-links__actions {
  justify-content: space-between;
  margin-top: 0.75rem;
}

.app-status, .app-error {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--app-control-radius);
}

.app-status {
  background: var(--app-accent-soft);
  color: var(--app-text);
}

.app-error {
  background: rgba(145, 34, 34, 0.1);
  color: #8c2b2b;
}

.app-route-empty {
  color: var(--app-muted-text);
}

.app-auth-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #eef2ea 0%, #f7f1e7 100%);
}

.app-auth-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 460px);
}

.app-auth-hero__intro {
  position: relative;
  display: flex;
  align-items: stretch;
  padding: clamp(2rem, 4vw, 4rem);
  background-image: linear-gradient(rgba(24, 44, 18, 0.48), rgba(24, 44, 18, 0.64)),
    url("https://touchgrass.network/cdn/img/homepage/grass1.jpg");
  background-position: center center;
  background-size: cover;
}

.app-auth-hero__intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.app-auth-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: auto;
  display: grid;
  gap: 1.4rem;
}

.app-auth-copy__eyebrow {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.app-auth-copy__title, .app-auth-copy__section-title {
  margin: 0;
  line-height: 1.05;
}

.app-auth-copy__title {
  max-width: 14ch;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  color: #fff;
}

.app-auth-copy__section {
  display: grid;
  gap: 0.85rem;
}

.app-auth-copy__section-title {
  font-size: 1.1rem;
  color: #21311f;
}

.app-auth-copy__body {
  margin: 0;
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.app-auth-copy__link {
  margin-left: 0.35rem;
  color: #fff;
}

.app-auth-copy__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
  max-width: 70ch;
}

.app-auth-copy__list li {
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.6;
  color: rgba(33, 49, 31, 0.88);
}

.app-auth-copy__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--app-accent-strong);
}

.app-auth-hero__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2vw, 1.75rem);
  background: rgba(255, 255, 255, 0.58);
  border-left: 1px solid rgba(84, 106, 80, 0.14);
  backdrop-filter: blur(8px);
}

.app-auth-panel {
  width: 100%;
  max-width: none;
  padding: 1rem 0.35rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.app-auth-panel__logo {
  margin: 0 0 1.25rem;
  text-align: center;
}

.app-auth-panel__logo .logo {
  margin-left: auto;
  margin-right: auto;
}

.app-auth-panel__title {
  margin: 0 0 1.5rem;
  text-align: center;
}

.app-auth-form {
  display: grid;
  gap: 0.35rem;
}

.app-auth-checkbox {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.app-auth-checkbox input {
  margin: 0;
}

.app-auth-hero .app-auth-actions {
  flex-direction: column;
  align-items: stretch;
}

.app-auth-hero .app-auth-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.app-auth-switch {
  margin: 1.5rem 0 0;
  text-align: center;
  color: var(--app-muted-text);
}

.app-auth-details {
  padding: clamp(2rem, 4vw, 4rem);
}

.app-auth-details__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.app-auth-details__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(84, 106, 80, 0.16);
  align-items: start;
}

.app-auth-details .app-auth-copy__body, .app-auth-details .app-auth-copy__section-title {
  color: #21311f;
}

.app-auth-details .app-auth-copy__section {
  align-content: start;
}

.app-notification-menu {
  min-width: 300px;
}

.app-avatar-button {
  border: 0;
  background: transparent;
  padding: 0;
}

.app-avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  line-height: 0;
}

.app-shell .header-icon {
  height: 1.7rem;
  width: 1.7rem;
  min-width: 1.7rem;
  cursor: pointer;
  box-sizing: content-box;
  object-fit: contain;
  color: #fff;
}

.app-shell .header-icon path {
  fill: currentColor;
}

.app-shell .pfp-icon {
  height: 2.2rem;
  width: 2.2rem;
  border: 2px solid #fff;
  border-radius: 50%;
  margin-top: 0px;
  margin-right: -5px;
  box-sizing: content-box;
}

.app-shell .app-settings-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.app-shell .app-settings-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-top: 0;
  margin-right: -5px;
  box-sizing: content-box;
  color: #fff;
}

.app-shell .app-settings-shortcut svg {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
  fill: currentColor;
}

.app-shell .header-tools {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  min-height: 4rem;
  z-index: 2401;
}

.app-shell .header-status {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  min-height: 4rem;
  padding-top: .5rem;
  padding-left: .7rem;
  z-index: 2401;
}

body.modal-open .app-shell-header, body.modal-open .app-shell-header--transparent, body.modal-open .app-shell .header-status, body.modal-open .app-shell .header-tools, body.modal-open .notification-menu {
  z-index: 1 !important;
}

body.modal-open .app-shell-header, body.modal-open .app-shell .header-status, body.modal-open .app-shell .header-tools, body.modal-open .notification-menu {
  pointer-events: none;
}

.app-shell .header-icons {
  height: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  padding: .5rem .7rem .5rem 1rem;
  border-radius: 2rem;
  box-sizing: content-box;
}

.app-shell .header-icons > a, .app-shell .header-icons > .header-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.app-shell .header-search {
  display: inline-flex;
  align-items: center;
}

.app-shell .header-search-toggle {
  display: none;
}

.app-shell .header-search-form {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

.app-shell .header-search-input {
  width: clamp(170px, 24vw, 260px);
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0.35rem 0.8rem;
  font-size: 0.92rem;
  line-height: 1.2;
}

.app-shell .header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.app-shell .header-search-submit {
  flex: 0 0 auto;
  min-height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.32rem 0.7rem;
  font-size: 0.84rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.app-shell .header-search-submit:hover, .app-shell .header-search-submit:focus-visible {
  background: rgba(255, 255, 255, 0.26);
}

.app-shell-toast {
  max-width: min(34vw, 320px);
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  padding: .5rem 1rem .5rem 1.2rem;
  border-radius: 2rem;
  background-color: rgba(255, 255, 255, 0.32);
  color: var(--app-accent-strong);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: content-box;
}

.app-shell-toast--error {
  background-color: rgba(145, 34, 34, 0.2);
  color: #fff;
}

.app-shell-toast[hidden] {
  display: none;
}

.app-shell .header-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.app-shell .header-icon-button, .app-shell .app-avatar-link {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
}

.app-debug-clear-posts-button {
  min-width: auto;
  padding: 0;
}

.app-debug-clear-posts-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.app-hidden {
  display: none !important;
}

.app-upload-label {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
}

.app-upload-label input[type="file"] {
  max-width: 100%;
}

.app-composer-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-composer__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top:.5rem;
  gap: 0.45rem;
  align-items: center;
}

.tg-composer__media-input {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-bottom: 0;
}

.tg-composer__media-input input[type="file"] {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.tg-composer__icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  border: 1px solid rgba(84, 106, 80, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 0;
}

.tg-composer__schedule-button {
  text-decoration: none;
}

.tg-composer__icon-button i {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
}

.tg-composer__media-input:hover, .tg-composer__media-input:focus-within {
  background: #f1f5f9;
  border-color: #cbd5e0;
}

.tg-composer__schedule-button:hover, .tg-composer__schedule-button:focus-visible {
  background: #f1f5f9;
  border-color: #cbd5e0;
}

.tg-composer__schedule-panel {
  width: 100%;
  grid-column: 1 / -1;
  margin-top: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

.tg-composer__schedule-panel[hidden] {
  display: none;
}

.tg-composer__schedule-row {
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
}

.tg-composer__schedule-link {
  font-size: 0.85rem;
}

.app-article-editor__form {
  display: grid;
  gap: 12px;
}

.app-article-editor__bento-card {
  border: 1px solid rgba(84, 106, 80, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  padding: 12px;
  display: grid;
  gap: 12px;
}

.app-article-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-article-editor__tool {
  min-width: 42px;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(84, 106, 80, 0.2);
  background: #fff;
  color: #2f3e2f;
  padding: 0.2rem 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.app-article-editor__tool:hover, .app-article-editor__tool:focus-visible {
  background: rgba(84, 106, 80, 0.14);
  border-color: rgba(84, 106, 80, 0.34);
}

.app-article-editor__canvas {
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  color: var(--app-text);
  line-height: 1.55;
  white-space: pre-wrap;
}

.app-article-editor__canvas h1, .app-article-editor__canvas h2, .app-article-editor__canvas h3 {
  background: transparent !important;
}

.app-article-editor__canvas:focus {
  outline: 2px solid rgba(150, 205, 164, 0.45);
}

.app-article-editor__canvas [data-redacted="1"] {
  background: #111;
  color: #111;
  border-radius: 4px;
  padding: 0 2px;
}

.app-article-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.app-article-editor__actions .submit-button {
  margin-left: auto;
}

.app-article-editor__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.app-composer-grid label, .app-profile-form label, .app-settings-form label {
  display: grid;
  gap: 8px;
}

.app-upto-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.app-upto-card {
  border: none;
  border-radius: var(--app-card-radius);
  background: var(--app-card-bg);
  padding: 1rem 1.25rem;
}

.app-upto-card ul, .app-results-list, .app-audit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-results-list {
  display: grid;
  gap: 12px;
}

.app-result-item, .app-audit-item {
  display: grid;
  gap: 10px;
  border: none;
  border-radius: var(--app-card-radius);
  padding: 1rem 1.25rem;
  background: var(--app-card-bg);
}

.app-shell-body .submit-button, .app-auth-body .submit-button, .app-shell-body .tg-pill-button, .app-auth-body .tg-pill-button {
  align-items: center;
  background: var(--app-accent-strong);
  border: none;
  border-radius: var(--app-control-radius);
  box-shadow: none;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 600;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0;
  min-height: 44px;
  padding: 0.72rem 1.35rem;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
  width: auto;
}

.app-auth-body .submit-button {
  display: flex;
  width: 100%;
}

.app-shell-body .submit-button:hover, .app-shell-body .submit-button:focus, .app-auth-body .submit-button:hover, .app-auth-body .submit-button:focus, .app-shell-body .tg-pill-button:hover, .app-shell-body .tg-pill-button:focus, .app-auth-body .tg-pill-button:hover, .app-auth-body .tg-pill-button:focus {
  background: var(--sage-green-dark);
  box-shadow: none;
  outline: none;
  transform: translateY(-1px);
}

.app-shell-body .tg-pill-button--secondary, .app-auth-body .tg-pill-button--secondary, .app-shell-body .app-day-pill, .app-auth-body .app-auth-secondary {
  background: rgba(84, 106, 80, 0.14);
  border: none;
  color: var(--app-text) !important;
  box-shadow: none;
}

.app-shell-body .tg-pill-button--secondary:hover, .app-shell-body .tg-pill-button--secondary:focus, .app-auth-body .tg-pill-button--secondary:hover, .app-auth-body .tg-pill-button--secondary:focus, .app-shell-body .app-day-pill:hover, .app-shell-body .app-day-pill:focus, .app-auth-body .app-auth-secondary:hover, .app-auth-body .app-auth-secondary:focus {
  background: rgba(84, 106, 80, 0.24);
  box-shadow: none;
}

.app-shell-body .app-day-pill.is-active {
  background: var(--app-accent-strong);
  color: #fff;
}

.app-shell-body .tg-icon-button {
  align-items: center;
  background: rgba(84, 106, 80, 0.14);
  border: none;
  color: var(--app-text);
  box-shadow: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-shell-body .tg-icon-button:hover, .app-shell-body .tg-icon-button:focus {
  background: rgba(84, 106, 80, 0.24);
  color: var(--app-text);
  outline: none;
  transform: translateY(-1px);
}

.app-shell-body .tg-icon-button--danger {
  background: rgba(166, 84, 54, 0.12);
  border-color: rgba(166, 84, 54, 0.24);
  color: #8b402b;
}

.app-shell-body .tg-icon-button--danger:hover, .app-shell-body .tg-icon-button--danger:focus {
  background: rgba(166, 84, 54, 0.2);
  border-color: rgba(166, 84, 54, 0.34);
  color: #7c3624;
}

.app-shell-body .submit-button:disabled, .app-auth-body .submit-button:disabled, .app-shell-body .tg-pill-button:disabled, .app-auth-body .tg-pill-button:disabled, .app-shell-body .tg-icon-button:disabled {
  background: rgba(84, 106, 80, 0.14);
  border-color: transparent;
  color: rgba(51, 51, 51, 0.55) !important;
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.app-shell-body .input-field, .app-auth-body .input-field, .app-shell-body textarea.input-field, .app-auth-body textarea.input-field, .app-shell-body .notes-textarea, .app-auth-body .notes-textarea {
  background: #fff;
  border: 1px solid var(--app-input-border);
  border-radius: var(--app-control-radius);
  box-shadow: none;
  color: var(--app-text);
  font-size: 1rem !important;
  min-height: 44px;
  padding: 0.72rem 1rem;
  width: 100%;
}

.app-shell-body select.input-field, .app-auth-body select.input-field {
  line-height: 1.35;
  min-height: 48px;
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
}

.app-shell-body textarea.input-field, .app-auth-body textarea.input-field, .app-shell-body .notes-textarea, .app-auth-body .notes-textarea {
  min-height: 112px;
}

.app-shell-body .input-field:focus, .app-auth-body .input-field:focus, .app-shell-body .notes-textarea:focus, .app-auth-body .notes-textarea:focus {
  border-color: var(--sage-green);
  outline: 2px solid var(--sage-green);
  outline-offset: 1px;
}

.app-shell-body .tg-friends-card, .app-shell-body .app-result-item, .app-shell-body .app-audit-item, .app-shell-body .app-upto-card, .app-shell-body .app-tracker-item, .app-auth-body .form-container {
  background: var(--app-card-bg);
  border: none;
  border-radius: var(--app-card-radius);
  box-shadow: none;
}

.app-shell-body .tg-friends-card, .app-auth-body .form-container {
  padding: 1.5rem 2rem;
}

.app-home {
  padding: 2rem 0;
}

.app-home .grid-container {
  display: block;
}

.app-home .tg-composer--profile-shell {
  margin-bottom:0;
}

.app-home-grid {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
  align-items: stretch;
}

.app-home-grid::before, .app-home-grid::after {
  display: none;
}

.app-home-grid > [class*="grid-"] {
  float: none;
  width: auto;
  padding-left: 10px;
  padding-right: 10px;
  display: flex;
}

.app-home-card {
  width: 100%;
  min-height: 100%;
  padding: 1.5rem 2rem;
  border: none;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.app-home-card h4, .app-home-card p {
  margin: 0;
}

.app-home-card .muted {
  color: var(--app-muted-text);
}

.app-home-card ul {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.app-home-card a.button {
  display: block;
  color: var(--app-text);
  text-decoration: none;
}

.app-home-card a.button li {
  width: 100%;
  min-height: 52px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-home-card .cards-section__actions {
  margin-top: auto;
  align-items: stretch;
}

.app-home-card .cards-section__actions .button {
  min-height: 44px;
  padding: 0.72rem 1.1rem;
  border-radius: var(--app-control-radius);
  background: rgba(84, 106, 80, 0.14);
  border: none;
  color: var(--app-text) !important;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.app-home-card .cards-section__actions .button:hover, .app-home-card .cards-section__actions .button:focus {
  background: rgba(84, 106, 80, 0.24);
  transform: translateY(-1px);
}

.app-shell-body .tg-friends-hub {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 20px 0;
}

.app-shell-body .app-card-page--narrow {
  max-width: 1440px;
}

.app-shell-body .tg-friends-hub__intro, .app-shell-body .tg-friends-section {
  border: none;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.app-shell-body .tg-friends-hub__intro {
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  margin-bottom: 20px;
}

.app-shell-body .tg-friends-section {
  margin-top: 20px;
  padding: 1.5rem 2rem;
}

.app-shell-body .tg-friends-hub__intro p, .app-shell-body .tg-friends-card__empty, .app-shell-body .tg-friends-actor__handle, .app-shell-body .tg-quiet-note {
  color: var(--app-muted-text);
}

.app-shell-body .tg-friends-grid {
  gap: 20px;
  align-items: stretch;
}

.app-shell-body .tg-people-hub .tg-friends-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.app-shell-body .tg-friends-grid > * {
  min-height: 100%;
}

.app-shell-body .tg-friends-card, .app-shell-body .tg-friends-section {
  border: none;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.app-shell-body .tg-friends-card {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
}

.app-shell-body .tg-friends-card__header {
  align-items: flex-start;
}

.app-shell-body .tg-friends-card__header h2, .app-shell-body .tg-friends-section h2 {
  margin: 0;
  font-weight: 500;
}

.app-shell-body .tg-friends-card__meta, .app-shell-body .tg-friends-card__list {
  gap: 0.9rem;
  min-height: 0;
}

.app-shell-body .tg-friends-card > .tg-friends-card__list {
  flex: 1 1 auto;
}

.app-shell-body .tg-friends-card > .tg-friends-card__empty {
  margin-top: auto;
}

.app-shell-body .tg-friends-card__list-item {
  min-height: 0;
  padding: 0.35rem 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.app-shell-body .tg-friends-card__item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.app-shell-body .tg-friends-actions {
  justify-content: flex-end;
}

.app-shell-body .tg-friends-card__meta label {
  display: grid;
  gap: 0.45rem;
  font-weight: 500;
  color: var(--app-text);
}

.app-shell-body .tg-friends-card--nav .tg-friends-card__list {
  margin-top: auto;
}

.app-shell-body .tg-friends-card--nav .tg-friends-card__list-item {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
}

.app-shell-body .tg-friends-card--nav .tg-pill-button {
  width: auto;
  justify-content: center;
  align-self: flex-start;
}

.app-shell-body .app-card-grid--single {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.app-shell-body .tg-friends-card__checks {
  gap: 0.9rem;
}

.app-shell-body .tg-friends-card__check {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.75rem 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-weight: 500;
}

.app-shell-body .tg-friends-card__check input {
  width: 18px;
  height: 18px;
  margin: 0.2rem 0 0;
  accent-color: var(--app-accent-strong);
}

.app-shell-body .tg-friends-card__check span {
  line-height: 1.45;
}

.app-shell-body .tg-friends-card--form {
  max-width: 720px;
}

.app-shell-body .tg-people-card--wide {
  grid-column: span 2;
}

.app-shell-body .tg-people-circles-card {
  margin-bottom: 20px;
}

.app-shell-body .tg-people-card__header, .app-shell-body .tg-people-circles-card .tg-friends-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.app-shell-body .tg-people-add-button {
  border: 0;
  border-radius: 999px;
  background: rgba(36, 93, 75, 0.08);
  color: #17352d;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}

.app-shell-body .tg-people-add-button span:first-child {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 93, 75, 0.16);
  font-size: 1rem;
  line-height: 1;
}

.app-shell-body .tg-people-circle-form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) auto;
  gap: 12px;
  align-items: center;
}

.app-shell-body .tg-people-circle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-shell-body .tg-people-circle-item {
  display: flex;
  align-items: center;
}

.app-shell-body .tg-people-circle-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--tg-circle-bg);
  color: var(--app-text);
  border: 1px solid color-mix(in srgb, var(--tg-circle-color) 24%, transparent);
}

.app-shell-body .tg-people-circle-pill__icon, .app-shell-body .tg-people-circle-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tg-circle-bg);
  color: var(--tg-circle-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-shell-body .tg-people-circle-pill__icon svg, .app-shell-body .tg-people-circle-dot svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.app-shell-body .tg-people-circle-pill__meta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.app-shell-body .tg-people-circle-pill__meta span {
  color: var(--app-muted-text);
  font-size: 0.9rem;
}

.app-shell-body .tg-people-circle-delete {
  border: 0;
  background: transparent;
  color: var(--app-muted-text);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-shell-body .tg-people-circle-delete:hover, .app-shell-body .tg-people-circle-delete:focus-visible {
  color: var(--app-text);
  background: rgba(23, 53, 45, 0.08);
}

.app-shell-body .tg-people-filter {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: var(--app-text);
  font-weight: 500;
}

.app-shell-body .tg-people-requests {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(36, 93, 75, 0.06);
}

.app-shell-body .tg-people-list {
  gap: 14px;
}

.app-shell-body .tg-people-list__item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(23, 53, 45, 0.08);
}

.app-shell-body .tg-people-list__item:last-child {
  border-bottom: 0;
}

.app-shell-body .tg-people-list__item.is-pending {
  opacity: 0.72;
}

.app-shell-body .tg-people-list__main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.app-shell-body .tg-people-list__item .tg-friends-actor {
  flex: 1 1 auto;
  grid-template-columns: 40px minmax(0, 1fr);
  min-width: 0;
}

.app-shell-body .tg-people-list__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  width: 100%;
}

.app-shell-body .tg-people-list__identity .tg-friends-actor__meta {
  flex: 0 1 auto;
  min-width: 0;
}

.app-shell-body .tg-people-server-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 53, 45, 0.18);
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 0.1rem 0.45rem;
  margin-left: 0.4rem;
  color: #235548;
  background: rgba(35, 85, 72, 0.08);
}

.app-shell-body .tg-people-list__circles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(23, 53, 45, 0.12);
  border-radius: 999px;
  width: fit-content;
  max-width: min(360px, 100%);
}

.app-shell-body .profile-circle-quick-add.tg-people-list__circles {
  flex-wrap: nowrap;
  gap: 6px;
  max-width: none;
  padding: 0 0.45rem;
}

.app-shell-body .profile-circle-quick-add .tg-people-circle-dot {
  border-radius: 999px;
  gap: 0;
  width: auto;
  height: 2rem;
  justify-content: flex-start;
  min-width: 2rem;
  overflow: hidden;
  padding: 0 0.65rem;
}

.app-shell-body .profile-circle-quick-add .tg-people-circle-dot svg {
  min-width: 16px;
}

.app-shell-body .profile-circle-quick-add .tg-people-circle-dot:hover .profile-action-icon__hint, .app-shell-body .profile-circle-quick-add .tg-people-circle-dot:focus-visible .profile-action-icon__hint {
  max-width: 13rem;
  opacity: 1;
  padding-left: 0.45rem;
  transform: translate(0, 2px);
}

.app-shell-body .tg-friends-actor__avatar-link {
  text-decoration: none;
}

.app-shell-body .tg-people-circle-dot {
  border: 0;
  padding: 0;
  opacity: 0.28;
  cursor: pointer;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.app-shell-body .tg-people-circle-dot.is-active, .app-shell-body .tg-people-circle-dot:hover, .app-shell-body .tg-people-circle-dot:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.app-shell-body .tg-friends-card__header h2, .app-shell-body .app-surface h1, .app-shell-body .app-surface h2, .app-shell-body .app-surface h3, .app-shell-body .app-surface h4, .app-auth-body .form-container h1, .app-auth-body .form-container h2, .app-auth-body .form-container h3, .app-auth-body .form-container h4 {
  color: var(--app-text);
  font-weight: 500;
}

.app-result-item__row, .app-audit-item__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.app-actor {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-actor__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(36, 93, 75, 0.18), rgba(36, 93, 75, 0.32));
}

.app-actor__meta {
  display: grid;
  gap: 2px;
}

.app-actor__name {
  font-weight: 600;
  color: #17352d;
  text-decoration: none;
}

.app-actor__handle, .app-muted, .app-quiet {
  color: rgba(23, 53, 45, 0.72);
}

.app-account-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-account-grid__wide {
  grid-column: 1 / -1;
}

.tg-account-grid .tg-friends-card, .tg-friends-grid .tg-friends-card, .tg-friends-section, .tg-card.tg-feed-panel {
  box-shadow: none;
}

.app-instagram-import {
  display: grid;
  gap: 18px;
}

.app-instagram-import__summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.app-instagram-import__stat {
  border: 1px solid var(--app-line);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 4px;
}

.app-instagram-import__stat strong {
  font-size: 1.25rem;
  color: #17352d;
}

.app-instagram-import__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.app-instagram-import__toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.app-instagram-import__toolbar-group label {
  font-size: 0.92rem;
  color: rgba(23, 53, 45, 0.72);
}

.app-instagram-import__toolbar .input-field {
  min-width: 160px;
}

.app-instagram-import__progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  appearance: none;
}

.app-instagram-import__progress::-webkit-progress-bar {
  background: rgba(23, 53, 45, 0.08);
  border-radius: 999px;
}

.app-instagram-import__progress::-webkit-progress-value {
  background: var(--app-accent);
  border-radius: 999px;
}

.app-instagram-import__list {
  display: grid;
  gap: 14px;
}

.app-instagram-item {
  border: 1px solid var(--app-line);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
  display: grid;
  gap: 14px;
}

.app-instagram-item__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.app-instagram-item__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #17352d;
}

.app-instagram-item__toggle input {
  width: 18px;
  height: 18px;
}

.app-instagram-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  font-size: 0.88rem;
  color: rgba(23, 53, 45, 0.72);
}

.app-instagram-item__body {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
}

.app-instagram-item__preview {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-instagram-item__preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(23, 53, 45, 0.08);
}

.app-instagram-item__content {
  display: grid;
  gap: 12px;
}

.app-instagram-item__content p {
  margin: 0;
  white-space: pre-wrap;
}

.app-instagram-item__content label {
  display: grid;
  gap: 6px;
}

.app-instagram-item__federate {
  padding: 10px 12px;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.app-instagram-item__federate-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.app-instagram-item__federate-control input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.app-instagram-item__circles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-instagram-item__circle-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.app-instagram-item__circle-option input {
  margin: 0;
}

.app-gallery-import {
  display: grid;
  gap: 18px;
}

.app-gallery-import__summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.app-gallery-import__stat {
  border: 1px solid var(--app-line);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 4px;
}

.app-gallery-import__stat strong {
  font-size: 1.25rem;
  color: #17352d;
}

.app-gallery-import__progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  appearance: none;
}

.app-gallery-import__progress::-webkit-progress-bar {
  background: rgba(23, 53, 45, 0.08);
  border-radius: 999px;
}

.app-gallery-import__progress::-webkit-progress-value {
  background: var(--app-accent);
  border-radius: 999px;
}

.app-gallery-import__list {
  display: grid;
  gap: 14px;
}

.app-gallery-item {
  border: 1px solid var(--app-line);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
  display: grid;
  gap: 16px;
}

.app-gallery-item__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.app-gallery-item__meta {
  font-size: 0.92rem;
  color: rgba(23, 53, 45, 0.72);
}

.app-gallery-item__preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-gallery-item__preview-slot {
  position: relative;
  width: calc(25% - 7.5px);
  min-width: 110px;
  overflow: visible;
}

.app-gallery-item__thumbnail,
.app-gallery-item__split {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  color: #17352d;
  font-size: 0.95rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.app-gallery-item__thumbnail {
  left: 10px;
  top: 10px;
}

.app-gallery-item__thumbnail--active {
  background: var(--app-accent);
  color: #fff;
}

.app-gallery-item__split {
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
}

.app-gallery-import__merge {
  display: flex;
  justify-content: center;
}

.app-gallery-import__merge-button {
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
}

.app-gallery-item__preview-slot img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(23, 53, 45, 0.08);
}

.app-gallery-item__split {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  color: #17352d;
  font-size: 1.1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.app-gallery-item__content {
  display: grid;
  gap: 12px;
}

.app-gallery-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.app-gallery-item__content label {
  display: grid;
  gap: 6px;
}

.app-tracker-card {
  display: grid;
  gap: 18px;
}

.app-tracker-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.app-tracker-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--app-line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.app-tracker-item--stacked {
  display: grid;
  justify-content: stretch;
}

.app-tracker-days {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-day-pill {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--app-line);
  background: rgba(255, 255, 255, 0.88);
  color: #17352d;
}

.app-day-pill.is-active {
  background: var(--app-accent);
  border-color: var(--app-accent);
  color: #fff;
}

.app-tracker-editor-grid {
  align-items: start;
}

.app-tracker-editor-panel {
  display: grid;
  gap: 12px;
}

.app-tracker-actions-row {
  justify-content: flex-end;
}

.tg-tracker-weights-card, .tg-tracker-schedule-card {
  position: relative;
}

.tg-tracker-weights-card {
  padding-bottom: 5.25rem;
}

.tg-tracker-weights-list {
  margin: 0;
}

.tg-tracker-workout-item {
  position: relative;
}

.tg-tracker-workout-link {
  color: #000 !important;
  text-decoration: none;
}

.tg-tracker-temp-link {
  display: block;
  margin: 0.3rem 0 0;
  color: #7a7a7a;
  text-decoration: none;
  font-size: 0.95rem;
  text-align: center;
}

.tg-tracker-temp-link:hover, .tg-tracker-temp-link:focus {
  color: #555;
  text-decoration: underline;
}

.add-schedule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  top: auto;
  left: auto;
}

.edit-icon-inline {
  position: absolute;
  right: 1rem;
  top: .5rem;
  cursor: pointer;
}

.delete-icon-inline {
  position: absolute;
  right: 3rem;
  top: .5rem;
  cursor: pointer;
  color: #c0392b;
  border: 0;
  background: transparent;
  padding: 0;
}

.tg-tracker-builder__canvas {
  display: flex;
  flex-wrap: wrap;
}

.tg-tracker-builder .divider, .tg-tracker-temp .divider {
  border-top: 1px solid #ccc;
  margin: 1rem 0;
}

.tg-tracker-builder .workout-blocks, .tg-tracker-builder .selected-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 100px;
}

.tg-tracker-builder .selected-blocks, .tg-tracker-temp .selected-exercises {
  background-color: rgba(0, 0, 0, .02);
  border-radius: 20px;
  border: 2px dashed rgba(0, 0, 0, .2);
  padding: 1rem 3rem 1rem 1rem;
  position: relative;
  flex: 1;
}

.tg-tracker-builder .workout-block, .tg-tracker-temp .exercise-item {
  cursor: grab;
}

.tg-tracker-builder .workout-block {
  background-color: rgba(84, 106, 80, .1);
  color: #333;
  border-radius: 2rem;
  padding: 0.7rem 3rem 0.7rem 1rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  width: calc(25% - 4.5rem);
  text-align: center;
  font-weight: 600;
  position: relative;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.tg-tracker-builder .workout-block__label {
  display: block;
}

.tg-tracker-builder .workout-block.selected, .tg-tracker-temp .exercise-item.selected {
  background-color: rgba(84, 106, 80, .3);
  color: #000;
}

.tg-tracker-builder .create-block-link {
  display: block;
  margin: 1rem 0 2rem;
  text-align: center;
  color: #999;
  text-decoration: none;
}

.tg-tracker-builder .trash-zone, .tg-tracker-temp .trash-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-left: 1rem;
}

.tg-tracker-builder .trash-icon, .tg-tracker-temp .trash-icon {
  width: 4rem;
  height: 4rem;
  background-color: rgba(100, 0, 0, .5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: auto;
}

.tg-tracker-builder .trash-icon.drag-hover, .tg-tracker-temp .trash-icon.drag-hover {
  background-color: #cc0000;
  transform: translateX(-50%) scale(1.1);
  transition: transform 0.2s ease;
}

.tg-tracker-builder [data-builder-placeholder], .tg-tracker-temp [data-temp-placeholder] {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 1rem;
  text-align: center;
  color: rgba(0, 0, 0, .5);
  pointer-events: none;
}

.tg-tracker-temp .exercise-library, .tg-tracker-temp .selected-exercises {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  min-height: 110px;
}

.tg-tracker-temp .exercise-group-title {
  grid-column: 1 / -1;
  margin: 2rem 1rem 0 1rem;
  font-size: 1.3rem;
  text-transform: capitalize;
  color: rgba(0, 0, 0, .65);
  letter-spacing: 0.01em;
}

.tg-tracker-temp .exercise-item {
  background-color: rgba(84, 106, 80, .1);
  color: #333;
  border-radius: 1.25rem;
  padding: 0.7rem 0.9rem;
  width: 100%;
  text-align: left;
  font-weight: 600;
  position: relative;
  transition: background-color 0.2s ease;
  min-height: 3.5rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  box-sizing: border-box;
}

.tg-tracker-temp .exercise-thumb {
  width: 82px;
  height: 82px;
  border-radius: 1.1rem;
  margin: -5px 0 -5px -8px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: rgba(0, 0, 0, 0.08);
}

.tg-tracker-temp .exercise-thumb.placeholder {
  background-color: rgba(0, 0, 0, 0.08);
}

.tg-tracker-temp .exercise-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.tg-tracker-temp .exercise-title {
  font-size: 0.95rem;
}

.tg-tracker-temp .muscle-pill {
  display: inline-block;
  background: rgba(84, 106, 80, .18);
  color: #2f3b2f;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  width: fit-content;
}

.tg-tracker-temp .exercise-item small {
  display: block;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.75rem;
}

.tg-tracker-day-pills {
  display: flex;
  flex-wrap: wrap;
}

.tg-tracker-preview {
  padding: 1rem;
  padding-bottom: 0;
}

.tg-tracker-preview__title {
  position: relative;
  padding: 1rem;
  padding-bottom: 0;
}

.tg-tracker-preview__back {
  text-decoration: none;
}

.tg-tracker-preview__toggle {
  font-size: 0.8rem;
  margin-left: 1rem;
  text-decoration: underline;
}

.tg-tracker-preview__start {
  margin-left: 1rem;
}

.tg-tracker-preview-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.tg-tracker-preview-table__head, .tg-tracker-preview-table__cell {
  border-bottom: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
}

.tg-tracker-preview-table__block {
  padding: 0.75rem;
  background: rgba(0, 0, 0, .05);
  font-weight: 600;
  border-bottom: 1px solid #ccc;
}

.tg-tracker-preview-table__badge {
  font-size: 0.78em;
  opacity: 0.7;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
}

.tg-tracker-preview .block {
  background-color: rgba(255, 255, 255, .1);
  padding: 1rem 0 1rem 1rem;
  padding-bottom: .5rem;
  border-radius: 1.5rem;
  margin-bottom: 1rem;
}

.tg-tracker-preview .block h5 {
  font-weight: 600;
  position: relative;
}

.tg-tracker-preview .exercise-label {
  display: inline-block;
  font-size: .8rem;
  padding: .2rem 1rem;
  background-color: rgba(0, 0, 0, .6);
  color: rgba(255, 255, 255, .8);
  border-radius: 2rem;
  margin-left: -.4rem;
  margin-bottom: .3rem;
}

.tg-tracker-preview .exercise {
  width: calc(50% - .7rem);
  padding: 1rem;
  border-radius: 1rem;
  display: inline-block;
  vertical-align: bottom;
  height: 14rem;
  background-color: rgba(255, 255, 255, .1);
  box-sizing: border-box;
  position: relative;
  margin: .5rem;
  margin-left: 0;
  margin-right: .5rem;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.tg-tracker-preview .exercise p {
  position: absolute;
  bottom: 1rem;
  width: calc(100% - 2rem);
  text-align: left;
  margin: 0;
  padding: 0;
  padding-bottom: .5rem;
  font-weight: 500;
}

.tg-tracker-preview .exercise::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, .9), transparent);
  border-radius: 0 0 1rem 1rem;
}

.app-loading {
  color: rgba(23, 53, 45, 0.72);
}

@media (max-width: 900px) {
  .app-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-grid--two, .app-account-grid, .app-composer-grid {
    grid-template-columns: 1fr;
  }

  .app-article-editor__controls {
    grid-template-columns: 1fr;
  }

  .app-instagram-item__body {
    grid-template-columns: 1fr;
  }

  .app-tracker-item {
    display: grid;
    justify-content: stretch;
  }

  .app-auth-hero {
    grid-template-columns: 1fr;
  }

  .app-auth-hero__intro, .app-auth-hero__panel, .app-auth-details {
    padding: 1.5rem;
  }

  .app-auth-hero__intro {
    order: 2;
    min-height: auto;
  }

  .app-auth-hero__panel {
    order: 1;
    border-left: 0;
    border-bottom: 1px solid rgba(84, 106, 80, 0.14);
  }

  .app-auth-details__grid {
    grid-template-columns: 1fr;
  }

  .tg-tracker-builder .workout-block {
    width: calc(50% - 1rem);
  }

  .tg-tracker-temp .exercise-library, .tg-tracker-temp .selected-exercises {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tg-tracker-preview-table th:nth-child(5), .tg-tracker-preview-table th:nth-child(6), .tg-tracker-preview-table th:nth-child(7), .tg-tracker-preview-table td:nth-child(5), .tg-tracker-preview-table td:nth-child(6), .tg-tracker-preview-table td:nth-child(7) {
    display: none;
  }
}

@media (max-width: 640px) {
  .app-shell .header-icons {
    position: relative;
    gap: 0.8rem;
  }

  .app-shell .header-search-toggle {
    display: inline-flex;
  }

  .app-shell .header-search-form {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    z-index: 10;
    width: min(92vw, 340px);
    padding: 0.4rem;
    border-radius: 0.95rem;
    background: rgba(43, 63, 40, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  }

  .app-shell .header-search.is-open .header-search-form {
    display: inline-flex;
  }

  .app-shell .header-search-input {
    width: 100%;
    min-width: 0;
  }

  .app-shell .header-search-submit {
    white-space: nowrap;
  }

  .app-home .grid-container {
    display: flex;
    flex-direction: column;
  }

  .app-home .profile-main__posts-column {
    order: 1;
  }

  .app-home .profile-main__upto-column {
    order: 2;
  }

  .app-home .profile-main__spacer-column {
    order: 3;
  }

  .app-home-grid {
    grid-template-columns: 1fr;
  }

  .app-home-card, .app-shell-body .tg-friends-card, .app-shell-body .tg-friends-section, .app-shell-body .tg-friends-hub__intro {
    padding: 1.35rem 1.4rem;
  }

  .app-shell-body .tg-friends-card__list-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-shell-body .tg-friends-actions, .app-shell-body .tg-friends-card__item-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .app-shell-body .tg-people-list__item .tg-friends-actor {
    width: 100%;
  }

  .app-shell-body .tg-people-list__identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .app-shell-body .tg-people-card--wide {
    grid-column: auto;
  }

  .app-shell-body .tg-people-card__header, .app-shell-body .tg-people-circles-card .tg-friends-card__header {
    flex-direction: column;
  }

  .app-shell-body .tg-people-circle-form {
    grid-template-columns: 1fr;
  }

  .app-shell-body .tg-people-filter {
    min-width: 0;
    width: 100%;
  }

  .app-surface {
    padding: 18px;
  }

  .app-profile-links__row, .app-result-item__row, .app-audit-item__row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .app-tracker-actions-row {
    justify-content: stretch;
  }

  .app-auth-copy {
    gap: 1.1rem;
  }

  .app-auth-copy__title {
    max-width: none;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .app-auth-hero__intro {
    min-height: 28rem;
  }

  .app-auth-panel {
    padding: 1.4rem;
  }

  .tg-tracker-builder .workout-block, .tg-tracker-builder .create-block-link {
    width: 100%;
  }

  .tg-tracker-builder .trash-zone, .tg-tracker-temp .trash-zone {
    width: 100%;
    margin: 1rem 0 0;
  }

  .tg-tracker-temp .exercise-library, .tg-tracker-temp .selected-exercises {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tg-tracker-preview .exercise {
    width: calc(100% - .7rem);
  }
}

@media (min-width: 768px) {
  .tg-tracker-preview .exercise {
    width: calc(25% - 1.7rem);
  }
}

@media (min-width: 1024px) {
  .tg-tracker-preview .exercise {
    width: calc(25% - .7rem);
    padding-top: calc(25% - 1.7rem);
  }
}
