:root {
  --green: #087f6d;
  --green-dark: #075b50;
  --mint: #e9f5ef;
  --ink: #202d2b;
  --muted: #75807c;
  --line: #e8eeeb;
  --bg: #f7f9f8;
  --sidebar: 226px;
  --font:
    "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #48b9a5;
  outline-offset: 3px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
input,
textarea,
select {
  max-width: 100%;
  color: var(--ink);
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}
svg.icon {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
button svg,
a svg {
  pointer-events: none;
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.green {
  color: var(--green);
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.hide {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 15px;
  top: -100px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 25;
  display: flex;
  flex-direction: column;
  padding: 31px 19px 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 7px;
  text-align: left;
}
.brand img {
  width: 35px;
  height: 35px;
}
.brand-name {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1.1px;
  line-height: 1.2;
}
.brand-slogan {
  color: #8c9691;
  font-size: 9px;
  letter-spacing: 1.65px;
  margin: 15px 0 37px 10px;
  white-space: nowrap;
}
.main-nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 47px;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  color: #69736f;
  transition: 0.2s;
}
.nav-item:hover {
  background: #f6f8f6;
}
.nav-item.active {
  background: var(--mint);
  color: var(--green);
}
.nav-item.active .icon {
  stroke-width: 2.2;
}
.nav-item .nav-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 100%;
  margin-left: auto;
}
.nav-caption {
  font-size: 10px;
  color: #a0a8a4;
  letter-spacing: 1.2px;
  font-weight: 600;
  margin: 30px 14px 13px;
}
.topic-nav {
  display: grid;
  gap: 3px;
}
.topic-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 39px;
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 12px;
  color: #727b77;
  text-align: left;
}
.topic-item:hover,
.topic-item.active {
  color: var(--green);
  background: #f4f8f5;
}
.topic-symbol {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  color: #87968d;
  font-size: 17px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.create-invite {
  background: #f7faf7;
  padding: 17px;
  border: 1px solid #eaf0e9;
  border-radius: 13px;
  position: relative;
  margin-bottom: 22px;
}
.create-invite h4 {
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 5px;
}
.create-invite p {
  font-size: 11px;
  line-height: 1.8;
  color: #839086;
  max-width: 150px;
}
.create-invite button {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 0;
}
.create-invite .icon {
  width: 15px;
  height: 15px;
}
.sidebar-foot {
  font-size: 9px;
  color: #9aa39e;
  padding: 0 10px;
}
.sidebar-foot button {
  font-size: 9px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.desktop-account {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 12px 8px 0;
  border-top: 1px solid var(--line);
  width: 100%;
}
.desktop-account strong {
  font-size: 12px;
  display: block;
}
.desktop-account small {
  font-size: 10px;
  color: var(--muted);
}
.desktop-account > .icon {
  margin-left: auto;
  width: 16px;
}
.topbar {
  height: 83px;
  position: sticky;
  top: 0;
  margin-left: var(--sidebar);
  z-index: 20;
  background: #ffffffed;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  gap: 20px;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 390px;
  max-width: 48%;
  height: 41px;
  background: #f5f7f6;
  border: 1px solid #edf0ee;
  border-radius: 9px;
  padding: 0 14px;
  color: #95a09a;
}
.search-wrap .icon {
  width: 18px;
}
.search-wrap input {
  background: none;
  border: 0;
  outline: none !important;
  width: 100%;
  font-size: 12px;
}
.search-wrap input::placeholder {
  color: #94a09a;
}
.search-key {
  border: 1px solid #dfe5e1;
  border-radius: 4px;
  font: 11px var(--font);
  padding: 0 5px;
  color: #9ba59f;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: white;
  white-space: nowrap;
  transition: 0.2s;
}
.btn:hover {
  background: #f3f8f5;
}
.btn.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn.primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.btn.soft {
  background: var(--mint);
  color: var(--green);
  border-color: transparent;
}
.btn .icon {
  width: 17px;
  height: 17px;
}
.icon-btn {
  width: 39px;
  height: 39px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.icon-btn:hover {
  background: #f2f6f3;
}
.notification-dot {
  width: 6px;
  height: 6px;
  background: #d4a34a;
  position: absolute;
  right: 10px;
  top: 8px;
  border: 1px solid #fff;
  border-radius: 50%;
}
.top-divider {
  height: 26px;
  width: 1px;
  background: var(--line);
}
.mobile-brand,
.mobile-nav {
  display: none;
}
.main {
  margin-left: var(--sidebar);
  padding: 29px 35px 50px;
  max-width: 1700px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 15px;
}
.page-heading h1 {
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -0.85px;
  line-height: 1.4;
}
.page-heading h1 .heading-spark {
  display: inline-block;
  color: #d9b15f;
  margin-left: 4px;
  font-size: 26px;
  font-weight: 400;
}
.page-heading p {
  font-size: 12px;
  margin-top: 6px;
  color: #85918a;
}
.today-pill {
  font-size: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #87978d;
  white-space: nowrap;
  padding-bottom: 4px;
}
.today-pill i {
  width: 6px;
  height: 6px;
  background: #8cc7a8;
  border-radius: 50%;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 26px;
}
.feed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e1e9e3;
  margin-bottom: 18px;
  gap: 8px;
}
.feed-tabs {
  display: flex;
  gap: 23px;
}
.feed-tab {
  font-size: 12px;
  font-weight: 600;
  padding: 0 0 14px;
  color: #97a29a;
  position: relative;
  white-space: nowrap;
}
.feed-tab.active {
  color: var(--green);
}
.feed-tab.active:after {
  content: "";
  height: 2px;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  background: var(--green);
  border-radius: 2px;
}
.feed-info {
  font-size: 10px;
  color: #a1aaa4;
  padding-bottom: 13px;
}
.chips {
  display: flex;
  gap: 7px;
  overflow: auto;
  scrollbar-width: none;
  margin-bottom: 21px;
  padding: 1px 1px 2px;
}
.chip {
  border: 1px solid #e3eae5;
  border-radius: 7px;
  padding: 6px 12px;
  min-height: 33px;
  white-space: nowrap;
  font-size: 11px;
  color: #7f8b82;
  background: #fff;
}
.chip.active {
  background: #233d34;
  color: #fff;
  border-color: #233d34;
}
.chip:hover {
  border-color: #98b9aa;
}
.feed-list {
  display: grid;
  gap: 23px;
}
.post-card {
  border: 1px solid #e3eae5;
  background: #fff;
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 4px 18px #1f3e2e03;
}
.post-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.video-shell {
  position: relative;
  aspect-ratio: 9/15.4;
  min-height: 490px;
  max-height: 600px;
  background: #1c2725;
  overflow: hidden;
  isolation: isolate;
}
.video-shell video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  cursor: pointer;
}
.video-shell:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    180deg,
    #001b100e 28%,
    #001b1022 47%,
    #031813d9 100%
  );
}
.video-badges {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: #fff;
}
.video-badge {
  font-size: 8px;
  letter-spacing: 0.8px;
  border: 1px solid #ffffff30;
  background: #122b235e;
  backdrop-filter: blur(12px);
  border-radius: 5px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 75%;
  font-weight: 500;
}
.video-badge .icon {
  width: 12px;
  height: 12px;
}
.video-badges .duration {
  font-size: 10px;
  background: #1a271f55;
  backdrop-filter: blur(8px);
  border: 1px solid #ffffff30;
  border-radius: 5px;
  padding: 4px 7px;
}
.video-overlay {
  position: absolute;
  z-index: 3;
  bottom: 55px;
  left: 23px;
  right: 20px;
  color: white;
  pointer-events: none;
}
.video-overlay .eyebrow {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #d1e3d4;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.video-overlay .eyebrow:before {
  content: "";
  width: 20px;
  height: 1px;
  background: #b4d8b2;
}
.video-overlay h2 {
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: -0.85px;
  font-weight: 700;
  text-wrap: balance;
}
.video-overlay p {
  font-size: 10px;
  color: #d7e5d9;
  margin-top: 10px;
}
.video-overlay .overline {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  margin-top: 19px;
  color: #d1ded7;
}
.video-overlay .overline .icon {
  width: 12px;
  height: 12px;
}
.video-controls {
  position: absolute;
  bottom: 9px;
  left: 15px;
  right: 15px;
  z-index: 5;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.video-controls button {
  height: 33px;
  min-width: 30px;
  display: grid;
  place-items: center;
  padding: 4px;
}
.video-controls .icon {
  width: 17px;
  height: 17px;
}
.video-time {
  font-size: 9px;
  min-width: 57px;
  font-variant-numeric: tabular-nums;
}
.video-progress {
  width: 100%;
  min-width: 10px;
  height: 3px;
  accent-color: #d6eeb8;
  cursor: pointer;
  margin: 0;
}
.video-controls .expand-video {
  margin-left: 1px;
}
.center-play {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: white;
  background: #ffffff1f;
  backdrop-filter: blur(5px);
  border: 1px solid #ffffff73;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: 0.2s;
}
.center-play .icon {
  width: 25px;
  height: 25px;
  fill: white;
  stroke-width: 1;
}
.video-shell:hover .center-play,
.video-shell.paused .center-play {
  opacity: 1;
}
.video-error {
  position: absolute;
  inset: 35% 15px auto;
  z-index: 8;
  padding: 14px;
  background: #123c33e8;
  color: #fff;
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
}
.post-content {
  padding: 22px 21px 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.author-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}
.author-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 0;
  min-width: 0;
}
.avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  background: var(--avatar-bg, #ecdec9);
  color: var(--avatar-fg, #7e6551);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.large {
  width: 81px;
  height: 81px;
  font-size: 23px;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px #062a2020;
}
.avatar.small {
  width: 28px;
  height: 28px;
  font-size: 9px;
}
.author-name {
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.7;
}
.verified {
  display: inline-grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #5aa28c;
  color: white;
  font-size: 8px;
  line-height: 1;
}
.author-sub {
  font-size: 9px;
  color: #9ba69e;
  white-space: nowrap;
}
.follow-btn {
  margin-left: auto;
  color: var(--green);
  border: 1px solid #d2e6d9;
  white-space: nowrap;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  padding: 5px 8px;
}
.follow-btn.following {
  background: #eef6f0;
  color: #5f8d74;
  border-color: transparent;
}
.post-category {
  font-size: 9px;
  color: #72917f;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
}
.post-category .icon {
  width: 13px;
  height: 13px;
}
.post-title {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.5px;
  font-weight: 750;
  margin-bottom: 10px;
}
.post-description {
  font-size: 11px;
  line-height: 1.9;
  color: #869287;
}
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 11px 0 18px;
  font-size: 10px;
  color: var(--green);
}
.post-tags button {
  padding: 0;
}
.resource-label {
  font-size: 9px;
  color: #a0aaa2;
  letter-spacing: 0.6px;
  margin: 0 0 9px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.resource-label .icon {
  width: 12px;
  height: 12px;
}
.attachment {
  border: 1px solid #e2e9df;
  background: #fafbf7;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  transition: 0.2s;
}
.attachment:hover {
  border-color: #99bba7;
  background: #f4f9f0;
}
.pdf-icon {
  width: 32px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #ae7563;
  background: #f4eae3;
  font-weight: 700;
  position: relative;
  font-size: 9px;
  flex-shrink: 0;
}
.pdf-icon:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border: 5px solid;
  border-color: #fafbf7 #fafbf7 #e1cbbf #e1cbbf;
  border-bottom-left-radius: 3px;
}
.attachment-text {
  min-width: 0;
  flex: 1;
}
.attachment-text strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.7;
}
.attachment-text small {
  font-size: 8px;
  color: #9da794;
}
.attachment > .icon {
  width: 15px;
  height: 15px;
  color: #85a38d;
}
.useful-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 17px 0 18px;
  flex-wrap: wrap;
}
.rating-pill {
  font-size: 11px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 4px;
}
.rating-pill .icon {
  width: 13px;
  height: 13px;
  fill: #d3b168;
  stroke: #d3b168;
}
.useful-row .muted {
  font-size: 9px;
}
.rating-action {
  font-size: 9px;
  color: var(--green);
  margin-left: auto;
  border-bottom: 1px dotted #76a28c;
  padding: 0;
}
.post-actions {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 13px 0 10px;
  margin-top: auto;
}
.reaction {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 4px 0;
  font-size: 10px;
  color: #8d9891;
  min-height: 28px;
}
.reaction .icon {
  width: 17px;
  height: 17px;
}
.reaction.active {
  color: var(--green);
}
.reaction.heart.active {
  color: #b56558;
}
.reaction.heart.active .icon {
  fill: #bd736535;
}
.reaction.save.active .icon {
  fill: #16857122;
}
.comment-peek {
  background: #fcfdfb;
  border-top: 1px solid var(--line);
  padding: 14px 19px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.peek-body {
  flex: 1;
  min-width: 0;
}
.peek-meta {
  font-size: 10px;
  font-weight: 600;
}
.peek-meta span {
  font-size: 9px;
  color: #a5aea7;
  font-weight: 400;
  margin-left: 7px;
}
.peek-body p {
  font-size: 11px;
  line-height: 1.75;
  color: #859187;
}
.peek-action {
  font-size: 10px;
  color: var(--green);
  padding: 5px 0 0;
  white-space: nowrap;
}
.post-mobile-meta {
  display: none;
}
.feed-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #a0aaa2;
  font-size: 11px;
  padding: 15px;
}
.feed-end .icon {
  width: 16px;
}
.right-rail {
  padding-top: 1px;
}
.rail-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 19px;
  margin-bottom: 19px;
}
.rail-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 17px;
}
.rail-heading h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.1px;
}
.rail-heading > .icon {
  width: 16px;
  height: 16px;
  color: #c6a160;
}
.rail-heading .link-small {
  margin-left: auto;
}
.link-small {
  padding: 0;
  font-size: 9px;
  font-weight: 500;
  color: #7c9887;
}
.featured-book {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.book-cover {
  width: 74px;
  min-width: 74px;
  height: 102px;
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
  box-shadow: 3px 3px 7px #213e3020;
  transform: rotate(-5deg);
  position: relative;
  background: #165443;
}
.book-cover img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.featured-book .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
  color: #b4a272;
  margin: 5px 0 7px;
}
.featured-book h4 {
  font-size: 12px;
  line-height: 1.7;
  font-weight: 650;
}
.featured-book p {
  font-size: 9px;
  color: #9ca69e;
  margin-top: 8px;
}
.rail-book-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #96a195;
}
.rail-book-action button {
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.rail-book-action .icon {
  width: 13px;
  height: 13px;
}
.community-list {
  display: grid;
  gap: 16px;
}
.community-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  padding: 0;
  width: 100%;
}
.community-emoji {
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: var(--community-color, #f0f6ed);
}
.community-row h4 {
  font-size: 11px;
  font-weight: 600;
}
.community-row small {
  font-size: 9px;
  color: #9ca69e;
}
.community-row > .icon {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: #b1bbb1;
}
.weekly-card {
  background: #ecf2e8;
  border: 1px solid #e5eddf;
  border-radius: 13px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.weekly-card:after {
  content: "✦";
  font-size: 120px;
  position: absolute;
  right: -12px;
  bottom: 3px;
  color: #dce8d2;
  pointer-events: none;
  line-height: 1;
  transform: rotate(16deg);
}
.weekly-card .eyebrow {
  font-size: 8px;
  color: #8a9f7c;
  letter-spacing: 1.4px;
}
.weekly-card h3 {
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.4px;
  color: #466141;
  max-width: 170px;
  margin: 12px 0 8px;
  font-weight: 650;
  position: relative;
  z-index: 1;
}
.weekly-card p {
  font-size: 10px;
  line-height: 1.8;
  color: #8f9c82;
  max-width: 185px;
  position: relative;
  z-index: 1;
}
.weekly-card button {
  font-size: 10px;
  color: #59794f;
  background: white;
  border: 1px solid #dbe6d2;
  min-height: 32px;
  border-radius: 7px;
  padding: 6px 10px;
  margin-top: 17px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.weekly-card .icon {
  width: 13px;
}
.rail-footer {
  font-size: 9px;
  color: #a3ada5;
  line-height: 2.2;
  margin: 20px 9px;
}
.rail-footer button {
  padding: 0;
  font-size: 9px;
  color: #9ba79d;
}
.rail-footer .dot {
  margin: 0 5px;
}
.empty-state {
  padding: 65px 25px;
  background: #fff;
  border: 1px dashed #d8e4dc;
  border-radius: 15px;
  text-align: center;
}
.empty-state > .icon {
  width: 37px;
  height: 37px;
  color: #9bb6a6;
  margin-bottom: 12px;
}
.empty-state h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
.section-heading {
  font-size: 18px;
  font-weight: 700;
  margin: 30px 0 17px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.section-heading .icon {
  color: var(--green);
}
.library-hero {
  border-radius: 18px;
  background: #eaf1e7;
  padding: 30px 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 4px 0 28px;
  overflow: hidden;
}
.library-hero h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  color: #355b43;
  margin: 6px 0;
}
.library-hero p {
  font-size: 12px;
  color: #7c9480;
  max-width: 420px;
}
.library-hero .eyebrow {
  color: #8d9d80;
}
.library-art {
  display: flex;
  gap: 10px;
  margin-right: 30px;
}
.library-art img {
  height: 134px;
  width: auto;
  box-shadow: 5px 4px 10px #1f392720;
  transform: rotate(-9deg);
}
.library-art img + img {
  transform: rotate(10deg);
  margin-left: -15px;
  margin-top: 14px;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.library-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.library-cover {
  background: #f2f3ec;
  min-height: 215px;
  display: grid;
  place-items: center;
  padding: 26px;
}
.library-cover img {
  height: 180px;
  box-shadow: 5px 7px 12px #233b2d22;
  transform: rotate(-4deg);
}
.library-item:nth-child(2) .library-cover {
  background: #efece5;
}
.library-item:nth-child(3) .library-cover {
  background: #e9f0ed;
}
.library-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.library-info h3 {
  font-size: 16px;
  line-height: 1.6;
  margin: 8px 0;
}
.library-info p {
  color: #89958d;
  font-size: 11px;
  margin: 0 0 17px;
}
.library-info .btn {
  margin-top: auto;
  width: 100%;
}
.library-label {
  font-size: 9px;
  color: var(--green);
  letter-spacing: 1px;
}
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.community-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
}
.community-card .community-emoji {
  width: 53px;
  height: 53px;
  font-size: 27px;
  margin-bottom: 17px;
  border-radius: 14px;
}
.community-card h3 {
  font-size: 17px;
}
.community-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 18px;
}
.community-card .community-stats {
  font-size: 10px;
  color: #98a59a;
  margin: 15px 0;
}
.community-card .btn {
  margin-top: 9px;
  width: 100%;
}
.community-card .text-action {
  width: 100%;
  padding: 13px 0 0;
  color: var(--green);
  font-size: 11px;
}
.profile-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  margin-bottom: 26px;
}
.profile-cover {
  height: 122px;
  background: #dfece1;
  position: relative;
  overflow: hidden;
}
.profile-cover:before {
  content: "";
  position: absolute;
  right: 2%;
  top: -160px;
  width: 390px;
  height: 390px;
  border: 70px solid #d1e2cf;
  border-radius: 50%;
}
.profile-cover:after {
  content: "MỖI GÓC NHÌN, MỘT GIÁ TRỊ.";
  position: absolute;
  left: 30px;
  top: 28px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #78977d;
}
.profile-info {
  padding: 0 29px 25px;
  position: relative;
}
.profile-info .avatar.large {
  margin-top: -39px;
}
.profile-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.profile-title-row h1 {
  font-size: 25px;
  letter-spacing: -0.6px;
}
.profile-info .handle {
  font-size: 12px;
  color: #8c9b90;
  margin-top: 3px;
}
.profile-bio {
  max-width: 630px;
  font-size: 12px;
  color: #7b8e7f;
  line-height: 1.9;
  margin: 15px 0;
}
.profile-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}
.profile-tags span {
  font-size: 10px;
  color: #8a9c8a;
  background: #f2f6ef;
  padding: 3px 8px;
  border-radius: 5px;
}
.profile-stats {
  display: flex;
  gap: 30px;
  font-size: 11px;
  color: #98a499;
}
.profile-stats strong {
  font-size: 14px;
  color: #385c47;
  margin-right: 5px;
}
.profile-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.profile-tabs button {
  padding: 0 0 13px;
  font-size: 12px;
  color: #92a092;
  position: relative;
}
.profile-tabs button.active {
  color: var(--green);
  font-weight: 600;
}
.profile-tabs button.active:after {
  content: "";
  height: 2px;
  background: var(--green);
  bottom: -1px;
  left: 0;
  right: 0;
  position: absolute;
}
.mini-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}
.mini-post {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
  text-align: left;
  padding: 0;
  cursor: pointer;
  display: block;
}
.mini-poster {
  height: 240px;
  position: relative;
  background: #18392b;
  overflow: hidden;
}
.mini-poster img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: 0.3s;
}
.mini-post:hover img {
  transform: scale(1.03);
}
.mini-poster:after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, #001e17a8);
}
.mini-poster .mini-duration {
  position: absolute;
  right: 12px;
  top: 11px;
  background: #0005;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}
.mini-poster .mini-plays {
  position: absolute;
  bottom: 12px;
  left: 13px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 11px;
}
.mini-plays .icon {
  width: 14px;
  height: 14px;
}
.mini-post h3 {
  font-size: 12px;
  line-height: 1.8;
  padding: 14px 14px 5px;
}
.mini-post p {
  font-size: 10px;
  color: #8c9d8f;
  padding: 0 14px 14px;
}
dialog {
  border: 1px solid #dbe6de;
  padding: 0;
  max-width: 92vw;
  width: 570px;
  max-height: 90dvh;
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 25px 90px #061f1740;
  font-family: var(--font);
}
dialog::backdrop {
  background: #08231a6e;
  backdrop-filter: blur(6px);
}
body.modal-open {
  overflow: hidden;
}
.modal-header {
  padding: 21px 25px 17px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}
.modal-header h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
}
.modal-header .icon-btn {
  margin: -7px -8px -7px 0;
}
.modal-body {
  padding: 25px;
}
.modal-header .sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.modal-footer {
  padding: 17px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fbfcfa;
}
.modal-footer .btn {
  flex: 1;
}
.auth-top {
  text-align: center;
  padding: 11px 0 24px;
}
.auth-top img {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}
.auth-top h3 {
  font-size: 23px;
  letter-spacing: -0.7px;
}
.auth-top p {
  font-size: 12px;
  color: #839389;
  margin-top: 8px;
}
.auth-tabs {
  display: flex;
  gap: 7px;
  padding: 5px;
  background: #f2f6f1;
  border-radius: 9px;
  margin-bottom: 23px;
}
.auth-tabs button {
  flex: 1;
  font-size: 12px;
  padding: 9px;
  border-radius: 6px;
  color: #9aa798;
}
.auth-tabs button.active {
  background: white;
  box-shadow: 0 2px 8px #12351f08;
  color: var(--green);
  font-weight: 600;
}
.demo-account {
  display: flex;
  gap: 13px;
  align-items: center;
  border: 1px solid #c8dfcf;
  background: #f5faf4;
  border-radius: 10px;
  padding: 17px;
  margin-bottom: 18px;
}
.demo-account h4 {
  font-size: 14px;
}
.demo-account p {
  font-size: 10px;
  color: #8c9c8b;
}
.demo-account .icon {
  margin-left: auto;
  color: var(--green);
}
.form-group {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}
.form-group > label {
  font-size: 11px;
  font-weight: 600;
  color: #536e5c;
}
.form-group input,
.form-group textarea,
.form-group select {
  border: 1px solid #dfe7df;
  border-radius: 8px;
  background: #fcfdfa;
  padding: 11px 13px;
  font-size: 12px;
  outline-color: var(--green);
  width: 100%;
}
.form-group textarea {
  resize: vertical;
  min-height: 95px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.form-hint {
  font-size: 10px;
  color: #8e9f8f;
  line-height: 1.8;
}
.demo-note {
  font-size: 10px;
  line-height: 1.9;
  color: #8e9e8f;
  margin-top: 17px;
  text-align: center;
}
.auth-submit {
  width: 100%;
  min-height: 44px;
}
.field-error {
  font-size: 11px;
  color: #b95d4c;
  margin: 7px 0 0;
}
.field-error:empty {
  display: none;
}
.modal-section-label {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #8e9d8f;
  margin: 22px 0 10px;
}
.document-dialog {
  width: 950px;
  max-height: 94dvh;
}
.document-header {
  gap: 12px;
}
.document-header h2 {
  font-size: 14px;
}
.document-actions {
  display: flex;
  gap: 7px;
  margin-left: auto;
}
.document-actions .btn {
  min-height: 34px;
  font-size: 10px;
  padding: 6px 10px;
}
.document-frame {
  height: 67dvh;
  background: #e9eeea;
  position: relative;
}
.document-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: relative;
  z-index: 2;
}
.doc-mobile-fallback {
  display: none;
}
.document-foot {
  padding: 10px 22px;
  font-size: 10px;
  color: #8c998b;
  background: #fafcf8;
}
.discussion-context {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 22px;
}
.discussion-context img {
  width: 59px;
  height: 79px;
  object-fit: cover;
  border-radius: 7px;
}
.discussion-context h3 {
  font-size: 15px;
  line-height: 1.6;
}
.discussion-context p {
  font-size: 10px;
  color: #8a9b8c;
  margin-top: 6px;
}
.rating-box {
  padding: 18px;
  background: #f7f9f2;
  border: 1px solid #e9efdf;
  border-radius: 10px;
  margin: 18px 0 25px;
}
.rating-box h4 {
  font-size: 12px;
  font-weight: 600;
}
.rating-box p {
  font-size: 10px;
  color: #8e9f8a;
  margin-top: 3px;
}
.rating-stars {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}
.star-button {
  padding: 3px;
  color: #d6ddce;
}
.star-button .icon {
  width: 30px;
  height: 30px;
  fill: currentColor;
  stroke: currentColor;
}
.star-button.selected {
  color: #c9aa60;
}
.rating-value {
  font-size: 11px;
  color: #8da080;
  margin-top: 7px;
  min-height: 18px;
}
.comments-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.comments-heading h3 {
  font-size: 13px;
}
.comments-heading select {
  font-size: 10px;
  border: 0;
  background: #f4f7f2;
  border-radius: 5px;
  padding: 5px 8px;
}
.comment {
  display: flex;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid #eff3ec;
}
.comment:last-child {
  border-bottom: none;
}
.comment-main {
  flex: 1;
  min-width: 0;
}
.comment-name {
  font-size: 11px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-time {
  color: #9eaa9b;
  font-size: 9px;
  font-weight: 400;
}
.comment-text {
  font-size: 12px;
  color: #73896f;
  line-height: 1.9;
  margin: 6px 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.comment-tools {
  display: flex;
  gap: 17px;
}
.comment-tools button {
  color: #91a58d;
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
}
.comment-tools .icon {
  width: 13px;
  height: 13px;
}
.comment-tools .active {
  color: var(--green);
}
.comment.reply {
  padding-left: 23px;
  border-left: 2px solid #e5eddc;
  margin-left: 10px;
}
.comment-form {
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  background: #fff;
  position: sticky;
  bottom: 0;
  z-index: 3;
}
.comment-input-row {
  display: flex;
  gap: 9px;
  align-items: center;
}
.comment-form input {
  border: 1px solid #dfe8de;
  background: #f9fbf7;
  padding: 12px 13px;
  border-radius: 9px;
  width: 100%;
  font-size: 11px;
  min-width: 0;
}
.comment-form .btn {
  min-height: 41px;
}
.reply-banner {
  font-size: 10px;
  padding: 0 0 8px;
  color: #76906f;
  display: flex;
  justify-content: space-between;
}
.reply-banner button {
  color: #8ba17e;
  font-size: 10px;
  padding: 0;
}
.comment-login {
  font-size: 11px;
  color: #839b7d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.upload-zone {
  border: 1.5px dashed #bfd9c8;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: #f7fbf5;
  position: relative;
}
.upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.upload-zone > .icon {
  width: 29px;
  height: 29px;
  color: #7ca389;
  margin-bottom: 6px;
}
.upload-zone strong {
  display: block;
  font-size: 12px;
  color: #527f5f;
}
.upload-zone p {
  font-size: 10px;
  color: #95a990;
  margin-top: 5px;
}
.upload-zone:focus-within {
  outline: 3px solid #48b9a5;
  outline-offset: 3px;
}
.sample-clips {
  display: flex;
  gap: 9px;
  margin: 12px 0;
}
.clip-option {
  border: 2px solid transparent;
  width: 66px;
  height: 82px;
  border-radius: 7px;
  overflow: hidden;
  padding: 0;
  position: relative;
}
.clip-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.clip-option.active {
  border-color: var(--green);
}
.clip-option.active:after {
  content: "✓";
  position: absolute;
  right: 3px;
  top: 3px;
  background: var(--green);
  color: white;
  font-size: 9px;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
}
.file-label {
  font-size: 10px;
  color: var(--green);
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.preview-dialog {
  width: 930px;
}
.preview-dialog .post-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.preview-dialog .post-main {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.preview-dialog .video-shell {
  max-height: 65dvh;
  min-height: 380px;
}
.preview-dialog .post-content {
  padding-top: 25px;
}
.preview-dialog .comment-peek {
  padding: 19px 25px;
}
.info-content h3 {
  font-size: 15px;
  margin: 20px 0 7px;
}
.info-content p,
.info-content li {
  font-size: 12px;
  line-height: 1.9;
  color: #7c907a;
}
.info-content ul {
  padding-left: 19px;
}
.info-content a {
  color: var(--green);
  text-decoration: underline;
}
.notice-list {
  display: grid;
  gap: 17px;
}
.notice {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.notice .notice-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--green);
  flex-shrink: 0;
}
.notice h4 {
  font-size: 12px;
}
.notice p {
  font-size: 11px;
  color: #8fa28c;
  margin-top: 4px;
}
.notice small {
  font-size: 9px;
  color: #a2afa0;
}
.no-scrollbar {
  scrollbar-width: none;
}
#toast {
  position: fixed;
  left: calc(50% + var(--sidebar) / 2);
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 200;
  background: #193d2f;
  color: white;
  font-size: 12px;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px #0b291728;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: 90vw;
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast-in-modal {
  background: #eef6e9;
  border: 1px solid #d4e5c9;
  font-size: 11px;
  color: #567747;
  padding: 9px 13px;
  border-radius: 7px;
  margin: 0 0 12px;
}
.share-link {
  background: #f3f7ee;
  border: 1px solid #dce8d2;
  border-radius: 9px;
  padding: 12px;
  font-size: 11px;
  overflow-wrap: anywhere;
  margin: 15px 0;
}
.screenreader {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (min-width: 1600px) {
  .main {
    padding: 35px 55px;
  }
  .topbar {
    padding: 0 55px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 900px) 300px;
  }
  .video-shell {
    max-height: 660px;
    min-height: 580px;
  }
  .post-content {
    padding: 27px 27px 0;
  }
  .post-title {
    font-size: 24px;
  }
  .post-description {
    font-size: 13px;
  }
  .author-name {
    font-size: 13px;
  }
  .author-sub {
    font-size: 10px;
  }
  .attachment-text strong {
    font-size: 12px;
  }
  .attachment-text small {
    font-size: 9px;
  }
  .reaction {
    font-size: 12px;
  }
  .post-category {
    font-size: 10px;
  }
  .post-tags {
    font-size: 11px;
  }
  .video-overlay h2 {
    font-size: 34px;
  }
  .useful-row .muted {
    font-size: 10px;
  }
  .rating-action {
    font-size: 10px;
  }
}
@media (max-width: 1250px) {
  :root {
    --sidebar: 199px;
  }
  .sidebar {
    padding-left: 13px;
    padding-right: 13px;
  }
  .brand-name {
    font-size: 21px;
  }
  .brand-slogan {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .main {
    padding: 26px 25px 40px;
  }
  .topbar {
    padding: 0 25px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 236px;
    gap: 20px;
  }
  .right-rail .rail-card {
    padding: 16px;
  }
  .post-content {
    padding: 17px 16px 0;
  }
  .post-title {
    font-size: 17px;
  }
  .post-description {
    font-size: 10px;
  }
  .post-tags {
    font-size: 9px;
    gap: 7px;
  }
  .video-shell {
    min-height: 500px;
    aspect-ratio: 9/17.5;
  }
  .video-overlay {
    left: 18px;
    right: 17px;
  }
  .video-overlay h2 {
    font-size: 24px;
  }
  .author-sub {
    font-size: 8px;
  }
  .author-name {
    font-size: 10px;
  }
  .follow-btn {
    font-size: 8px;
    padding: 4px 6px;
  }
  .author-line {
    gap: 5px;
    margin-bottom: 17px;
  }
  .avatar {
    width: 30px;
    height: 30px;
    font-size: 9px;
  }
  .attachment {
    padding: 10px;
    gap: 8px;
  }
  .pdf-icon {
    width: 26px;
    height: 34px;
    font-size: 8px;
  }
  .useful-row {
    gap: 5px;
  }
  .attachment-text strong {
    font-size: 9px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .featured-book h4 {
    font-size: 11px;
  }
  .book-cover {
    width: 62px;
    min-width: 62px;
    height: 88px;
  }
  .rail-heading h3 {
    font-size: 11px;
  }
  .mini-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .library-grid,
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1080px) {
  .right-rail {
    display: none;
  }
  .content-grid {
    display: block;
  }
  .post-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .post-content {
    padding: 23px 24px 0;
  }
  .video-shell {
    min-height: 500px;
    max-height: 620px;
    aspect-ratio: 9/16;
  }
  .post-title {
    font-size: 22px;
  }
  .post-description {
    font-size: 12px;
  }
  .attachment-text strong {
    font-size: 11px;
  }
  .author-name {
    font-size: 12px;
  }
  .author-sub {
    font-size: 9px;
  }
  .avatar {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }
  .post-tags {
    font-size: 11px;
  }
  .follow-btn {
    font-size: 10px;
    padding: 5px 8px;
  }
  .reaction {
    font-size: 11px;
  }
  .post-category {
    font-size: 10px;
  }
  .today-pill {
    display: none;
  }
  .top-actions {
    gap: 12px;
  }
  .topbar .btn {
    padding: 8px 11px;
  }
  .search-wrap {
    max-width: 50%;
  }
  .search-key {
    display: none;
  }
  .video-overlay h2 {
    font-size: 28px;
  }
  .library-art {
    margin-right: 0;
  }
}
@media (max-width: 760px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    height: 65px;
    padding: 0 20px;
    gap: 10px;
  }
  .mobile-brand {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
  }
  .mobile-brand img {
    width: 29px;
    height: 29px;
  }
  .mobile-brand span {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -1px;
  }
  .search-wrap {
    height: 36px;
    background: transparent;
    border: 0;
    padding: 0;
    max-width: none;
    width: auto;
    margin-left: auto;
    gap: 0;
  }
  .search-wrap input,
  .search-wrap .search-key {
    display: none;
  }
  .search-wrap .mobile-search-toggle {
    display: grid;
  }
  .search-wrap .icon {
    color: #557063;
  }
  .topbar.search-open .mobile-brand {
    display: none;
  }
  .topbar.search-open .search-wrap {
    flex: 1;
    background: #f0f5f0;
    padding: 0 11px;
  }
  .topbar.search-open .search-wrap input {
    display: block;
    margin-left: 8px;
  }
  .topbar.search-open .top-actions {
    display: none;
  }
  .top-actions {
    gap: 5px;
  }
  .top-actions .create-top,
  .top-divider,
  .login-label,
  .desktop-login {
    display: none;
  }
  .top-actions .icon-btn {
    width: 34px;
    height: 34px;
  }
  .top-actions .mobile-login {
    display: flex;
  }
  .top-actions .avatar {
    width: 30px;
    height: 30px;
  }
  .main {
    padding: 20px 20px 100px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 24px;
    letter-spacing: -1px;
    max-width: 100%;
  }
  .page-heading p {
    font-size: 10px;
    margin-top: 4px;
  }
  .page-heading h1 .heading-spark {
    font-size: 23px;
  }
  .feed-tabs {
    gap: 27px;
  }
  .feed-tab {
    font-size: 12px;
    padding-bottom: 12px;
  }
  .feed-info {
    font-size: 9px;
    padding-bottom: 12px;
  }
  .chips {
    gap: 7px;
    margin-bottom: 18px;
  }
  .chip {
    font-size: 10px;
    min-height: 31px;
    padding: 5px 10px;
  }
  .feed-top {
    margin-bottom: 13px;
  }
  .feed-list {
    gap: 22px;
  }
  .post-main {
    display: block;
  }
  .video-shell {
    min-height: 0;
    max-height: unset;
    aspect-ratio: 9/13.3;
    width: 100%;
    border-radius: 0;
  }
  .video-badges {
    top: 17px;
    left: 18px;
    right: 18px;
  }
  .video-badge {
    font-size: 8px;
    max-width: 80%;
  }
  .video-overlay {
    left: 25px;
    right: 25px;
    bottom: 56px;
  }
  .video-overlay h2 {
    font-size: 30px;
    line-height: 1.4;
    max-width: 300px;
  }
  .video-overlay .eyebrow {
    font-size: 9px;
    margin-bottom: 10px;
  }
  .video-overlay p {
    font-size: 11px;
  }
  .video-overlay .overline {
    margin-top: 13px;
    font-size: 9px;
  }
  .video-controls {
    left: 18px;
    right: 18px;
  }
  .video-time {
    font-size: 9px;
  }
  .post-card {
    border-radius: 15px;
  }
  .post-content {
    padding: 19px 18px 0;
  }
  .author-line {
    margin-bottom: 15px;
  }
  .author-name {
    font-size: 12px;
  }
  .author-sub {
    font-size: 9px;
  }
  .follow-btn {
    font-size: 10px;
  }
  .post-category {
    display: none;
  }
  .post-title {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 7px;
  }
  .post-description {
    font-size: 12px;
    line-height: 1.9;
  }
  .post-tags {
    margin: 9px 0 14px;
    font-size: 10px;
  }
  .attachment {
    padding: 12px;
    gap: 10px;
  }
  .attachment-text strong {
    font-size: 11px;
  }
  .attachment-text small {
    font-size: 9px;
  }
  .pdf-icon {
    width: 32px;
    height: 40px;
  }
  .resource-label {
    font-size: 9px;
  }
  .useful-row {
    margin: 14px 0;
    gap: 7px;
  }
  .useful-row .muted {
    font-size: 10px;
  }
  .rating-action {
    font-size: 10px;
  }
  .rating-pill {
    font-size: 12px;
  }
  .post-actions {
    padding: 10px 0;
  }
  .reaction {
    font-size: 11px;
    min-height: 33px;
  }
  .reaction .icon {
    width: 20px;
    height: 20px;
  }
  .comment-peek {
    padding: 14px 17px;
    gap: 9px;
  }
  .peek-meta {
    font-size: 10px;
  }
  .peek-body p {
    font-size: 11px;
  }
  .peek-action {
    font-size: 10px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(65px + env(safe-area-inset-bottom));
    padding: 4px 11px calc(4px + env(safe-area-inset-bottom));
    z-index: 25;
    align-items: center;
    justify-content: space-around;
    background: #fffffff2;
    backdrop-filter: blur(16px);
    border-top: 1px solid #e3eae1;
  }
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #99a59a;
    font-size: 8px;
    min-width: 54px;
    height: 48px;
  }
  .mobile-nav .icon {
    width: 21px;
    height: 21px;
  }
  .mobile-nav button.active {
    color: var(--green);
    font-weight: 650;
  }
  .mobile-nav .nav-create {
    background: var(--green);
    color: white;
    width: 44px;
    min-width: 44px;
    height: 38px;
    border-radius: 11px;
    margin-top: -2px;
    box-shadow: 0 3px 8px #087f6d1a;
  }
  .mobile-nav .nav-create .icon {
    width: 24px;
    height: 24px;
  }
  .library-hero {
    padding: 23px;
    min-height: 188px;
    gap: 10px;
  }
  .library-hero h2 {
    font-size: 22px;
  }
  .library-hero p {
    font-size: 10px;
    max-width: 220px;
  }
  .library-art {
    margin-right: -28px;
    margin-top: 23px;
  }
  .library-art img {
    height: 90px;
  }
  .library-art img + img {
    display: none;
  }
  .library-grid,
  .community-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .library-item {
    display: grid;
    grid-template-columns: 112px 1fr;
  }
  .library-cover {
    padding: 15px;
    min-height: 100%;
    height: auto;
  }
  .library-cover img {
    height: 116px;
    width: auto;
  }
  .library-info {
    padding: 17px;
  }
  .library-info h3 {
    font-size: 14px;
    line-height: 1.65;
    margin: 6px 0;
  }
  .library-info p {
    font-size: 10px;
    margin-bottom: 12px;
  }
  .library-info .btn {
    font-size: 10px;
    min-height: 34px;
  }
  .library-label {
    font-size: 8px;
  }
  .community-card {
    padding: 22px;
  }
  .community-card p {
    font-size: 12px;
  }
  .community-card .community-emoji {
    width: 45px;
    height: 45px;
    font-size: 23px;
    margin-bottom: 12px;
  }
  .community-card .btn {
    min-height: 41px;
  }
  .profile-cover {
    height: 110px;
  }
  .profile-cover:after {
    font-size: 8px;
    left: 23px;
  }
  .profile-info {
    padding: 0 20px 23px;
  }
  .profile-title-row {
    align-items: flex-start;
  }
  .profile-title-row h1 {
    font-size: 22px;
  }
  .profile-title-row .btn {
    font-size: 10px;
    padding: 7px 10px;
    min-height: 35px;
  }
  .profile-bio {
    font-size: 11px;
  }
  .profile-stats {
    gap: 18px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .profile-stats strong {
    font-size: 13px;
  }
  .mini-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .mini-poster {
    height: 215px;
  }
  .mini-post h3 {
    padding: 12px 12px 5px;
    font-size: 11px;
  }
  .mini-post p {
    font-size: 9px;
    padding: 0 12px 12px;
  }
  .profile-tabs {
    gap: 21px;
  }
  .profile-tabs button {
    font-size: 11px;
  }
  .profile-card {
    margin-bottom: 23px;
  }
  dialog {
    max-width: 100vw;
    width: 100vw;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    margin: auto 0 0;
    border-bottom: 0;
    box-shadow: 0 -15px 50px #092b2030;
  }
  .modal-header {
    padding: 18px 21px 14px;
  }
  .modal-header h2 {
    font-size: 16px;
  }
  .modal-body {
    padding: 22px;
  }
  .modal-footer {
    padding: 15px 22px calc(16px + env(safe-area-inset-bottom));
  }
  .auth-top {
    padding-top: 6px;
  }
  .auth-top h3 {
    font-size: 23px;
  }
  .document-dialog {
    max-height: 94dvh;
  }
  .document-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .document-header h2 {
    max-width: 260px;
    font-size: 13px;
  }
  .document-header > .icon-btn {
    position: absolute;
    top: 15px;
    right: 19px;
  }
  .document-actions {
    width: 100%;
    margin-left: 0;
    padding-top: 3px;
  }
  .document-actions .btn {
    font-size: 11px;
    flex: 1;
  }
  .document-frame {
    height: 52dvh;
  }
  .doc-mobile-fallback {
    display: block;
    text-align: center;
    padding: 17px;
    font-size: 11px;
    color: #809279;
    background: #f5f9f1;
  }
  .doc-mobile-fallback a {
    color: var(--green);
    font-weight: 600;
    text-decoration: underline;
  }
  .document-foot {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    font-size: 9px;
  }
  .comment-form {
    padding: 15px 19px calc(15px + env(safe-area-inset-bottom));
  }
  .comment-login {
    font-size: 10px;
  }
  .comment-login .btn {
    font-size: 11px;
  }
  .comment-form input {
    font-size: 11px;
    min-height: 42px;
  }
  .comment-form .btn {
    padding: 9px 12px;
  }
  .discussion-context {
    gap: 13px;
  }
  .discussion-context h3 {
    font-size: 14px;
  }
  .rating-box {
    padding: 16px;
  }
  .preview-dialog .post-main {
    display: block;
  }
  .preview-dialog .video-shell {
    min-height: 0;
    max-height: 60dvh;
    aspect-ratio: 9/14;
  }
  .preview-dialog .post-content {
    padding: 19px 20px 0;
  }
  .preview-dialog .comment-peek {
    padding: 15px 20px;
  }
  .preview-dialog .modal-header {
    padding: 15px 20px;
  }
  #toast {
    left: 50%;
    bottom: 84px;
    font-size: 11px;
    padding: 11px 17px;
    width: max-content;
    max-width: calc(100vw - 32px);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .mobile-only {
    display: block;
  }
}
@media (min-width: 761px) {
  .mobile-login,
  .mobile-search-toggle {
    display: none !important;
  }
  .mobile-only {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.brand {
  gap: 9px;
}
.brand img {
  width: 78px;
  height: auto;
  object-fit: contain;
}
.brand-name {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1.5px;
  color: #156e86;
  border-left: 1px solid #d9e8df;
  padding-left: 9px;
  line-height: 1.15;
}
.brand-name sup {
  font-size: 11px;
  font-weight: 500;
  vertical-align: top;
  line-height: 1.4;
  margin-left: 1px;
}
.brand-slogan {
  letter-spacing: 1px;
  font-size: 8px;
  margin-top: 17px;
}
.auth-top img {
  width: 102px;
  height: auto;
}
.mobile-brand img {
  width: 59px;
  height: auto;
}
.mobile-brand span {
  font-size: 23px;
  font-weight: 600;
  color: #126f89;
  padding-left: 7px;
  border-left: 1px solid #d9e8df;
  line-height: 1.2;
}
.mobile-brand sup {
  font-size: 10px;
  vertical-align: top;
}
.nbc-signature {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7d9284;
}
.nbc-signature img {
  width: 38px;
  height: auto;
}

.search-wrap:focus-within {
  outline: 2px solid #7dbba4;
  outline-offset: 3px;
}
.reel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfdf9;
}
.reel-nav span {
  font-size: 11px;
  color: #8c9f8b;
}
.reel-nav .btn {
  min-height: 34px;
  font-size: 11px;
  padding: 6px 12px;
}
.preview-dialog .video-shell {
  touch-action: pan-y;
}
.avatar.large .icon {
  width: 32px;
  height: 32px;
}
@media (max-width: 760px) {
  .desktop-search-icon {
    display: none;
  }
  .page-heading h1 .heading-spark {
    display: none;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .form-group input,
  .form-group textarea,
  .form-group select,
  .comment-form input,
  .search-wrap input {
    font-size: 16px;
  }
  .comment-form input::placeholder,
  .form-group input::placeholder {
    font-size: 12px;
  }
  .reaction {
    min-height: 40px;
  }
  .follow-btn {
    min-height: 34px;
  }
  .post-description {
    font-size: 13px;
  }
  .post-tags button {
    min-height: 27px;
  }
  .peek-action {
    min-height: 34px;
  }
  .star-button {
    padding: 7px;
  }
  .comment-tools button {
    min-height: 32px;
  }
  .preview-dialog .video-shell {
    max-height: 55dvh;
  }
  .reel-nav {
    padding: 9px 20px;
  }
  .reel-nav .btn {
    min-height: 37px;
  }
  .auth-tabs button {
    min-height: 43px;
  }
}
