/* ---------- Base ---------- */
:root{
  --bg: #FAFAF8;
  --paper: #FFFFFF;
  --ink: #232823;
  --ink-soft: #6B756E;
  --line: #E7E9E4;
  --accent: #2F6B4F;
  --accent-soft: #E7F0E9;
  --radius: 14px;
  --gap: 28px; /* specific distance between posts */
}
*{ box-sizing:border-box; margin:0; padding:0; }
/* The `hidden` attribute must always win, even on elements whose class
   sets display:flex/grid (e.g. .admin-gate, .admin-tabs, .edit-inline) —
   otherwise those elements stay visible no matter what .hidden is set to. */
[hidden]{ display: none !important; }
body{
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }

/* ---------- Fixed header (present on every view) ---------- */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  height: 60px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.header-inner{
  max-width: 720px;
  margin: 0 auto;
  height: 100%;
  padding: 0 18px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.brand{
  font-size: 19px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.2px;
}
.user-box{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.user-avatar{
  width:30px; height:30px; border-radius:50%;
  background: var(--accent);
  color:#fff; font-size:13px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.user-name{ font-size: 13.5px; font-weight:600; color: var(--ink-soft); }
.identity-btn{
  display:flex; align-items:center; gap:8px;
  padding: 4px 6px; border-radius: 20px;
}
.identity-btn:active{ background: var(--accent-soft); }
.language-toggle{
  display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:18px;
  overflow:hidden; background:var(--bg); flex:0 0 auto; margin-left:12px;
}
.language-option{
  min-width:34px; padding:6px 8px; font-size:11px; line-height:1; font-weight:700;
  color:var(--ink-soft); background:transparent;
}
.language-option.active{ color:#fff; background:#1877F2; }
.user-box{ margin-left:auto; }
.google-translate-widget{ position:fixed; left:-10000px; top:0; width:1px; height:1px; overflow:hidden; }
body{ top:0 !important; }
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.skiptranslate iframe{
  display:none !important; visibility:hidden !important; height:0 !important; max-height:0 !important;
}

/* ---------- Google Sign-In modal + sign-out popover ---------- */
.gsi-modal-body{ padding: 16px 18px 26px; display:flex; flex-direction:column; align-items:center; gap:14px; }
#gsiButtonContainer{ min-height: 44px; }
.identity-menu{
  position:absolute; top: 56px; right: 16px; z-index: 120;
  background: var(--paper); border:1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 10px; min-width: 180px;
}
.identity-menu-name{ font-size: 12px; color: var(--ink-soft); padding: 4px 8px 8px; border-bottom:1px solid var(--line); margin-bottom:6px; word-break:break-all; }
.identity-menu-btn{
  width:100%; text-align:left; font-size: 13px; font-weight:600; color:#B4443A;
  padding: 8px; border-radius: 8px;
}
.identity-menu-btn:hover{ background: #FBEDEC; }
.dashboard-menu-btn{ color: var(--accent); }
.signout-menu-btn{ color:#B4443A; }

/* ---------- App shell ---------- */
#app{
  max-width: 720px;
  margin: 0 auto;
  padding: 66px 6px 60px;
}

/* ---------- Home view ---------- */
.page-title{
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ink);
}
.option-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.option-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  transition: border-color .15s ease, transform .1s ease;
}
.option-card:active{ transform: scale(0.98); }
.option-card:hover{ border-color: var(--accent); }
.option-icon{ font-size: 32px; }
.option-label{ font-size: 14.5px; font-weight:600; }

/* ---------- User dashboard ---------- */
.dashboard-welcome{
  display:flex; align-items:center; gap:12px; margin-bottom:18px;
}
.dashboard-avatar{
  width:48px; height:48px; border-radius:50%; background:var(--accent); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:700;
  background-size:cover; background-position:center;
}
.dashboard-welcome h1{ font-size:21px; }
.dashboard-welcome p{ color:var(--ink-soft); font-size:12px; word-break:break-all; }
.dashboard-profile{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:16px; margin:0 0 18px;
}
.dashboard-profile h2{ font-size:16px; margin-bottom:12px; }
.dashboard-profile-form{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.dashboard-profile-form label{ display:flex; flex-direction:column; gap:5px; font-size:12px; font-weight:700; color:var(--ink-soft); }
.dashboard-profile-form label:nth-child(3),.dashboard-profile-form .field-submit,.dashboard-profile-form .field-hint{ grid-column:1/-1; }
.dashboard-profile-form .field-submit{ margin-top:4px; }
.dashboard-profile-form .field-hint{ min-height:18px; margin:0; }
.dashboard-earnings-card{
  width:100%; text-align:center; background:var(--accent); color:#fff; border-radius:18px;
  padding:20px 14px; margin:0 0 18px; box-shadow:0 8px 18px rgba(47,107,79,.18);
}
.dashboard-earnings-card strong{ display:block; font-size:38px; line-height:1.1; }
.dashboard-earnings-card span{ display:block; font-size:14px; margin-top:6px; opacity:.95; }
.dashboard-stats{
  display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-bottom:28px;
}
.dashboard-stat{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:14px 12px; min-height:82px;
}
.dashboard-stat strong{ display:block; color:var(--accent); font-size:24px; line-height:1.1; }
.dashboard-stat span{ display:block; color:var(--ink-soft); font-size:12px; margin-top:5px; }
.dashboard-posts-section{ margin-top:26px; }
.dashboard-list-tabs{ display:flex; gap:8px; border-bottom:1px solid var(--line); margin-bottom:14px; }
.dashboard-list-tab{ padding:10px 12px; font-weight:700; font-size:13px; color:var(--ink-soft); border-bottom:2px solid transparent; }
.dashboard-list-tab.active{ color:var(--accent); border-bottom-color:var(--accent); }
.dashboard-list-panel[hidden]{ display:none !important; }
.dashboard-posts{ max-width:none; }
.dashboard-posts .admin-item{
  background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:12px;
  display:flex; gap:12px; margin-bottom:12px;
}
.dashboard-posts .admin-item-thumb{
  width:64px; height:64px; border-radius:8px; object-fit:cover; flex:0 0 64px;
  background:var(--accent-soft);
}
.dashboard-posts .admin-item-body{ flex:1; min-width:0; }
.dashboard-posts .admin-item-top{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:4px; }
.dashboard-posts .admin-item-tag{ font-size:10.5px; font-weight:700; color:var(--accent); background:var(--accent-soft); padding:2px 8px; border-radius:20px; }
.dashboard-posts .admin-item-status{ font-size:10.5px; font-weight:700; padding:2px 8px; border-radius:20px; background:var(--accent-soft); color:var(--accent); }
.dashboard-posts .admin-item-author{ font-size:11px; color:var(--ink-soft); }
.dashboard-posts .admin-item-title{ font-size:14px; font-weight:700; margin-bottom:2px; }
.dashboard-posts .admin-item-text{ font-size:12.5px; color:var(--ink-soft); overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.dashboard-posts .admin-item-actions{ display:flex; gap:8px; margin-top:8px; }
.dashboard-posts .admin-btn{ display:inline-block; text-decoration:none; font-size:12px; font-weight:700; padding:6px 12px; border-radius:8px; background:var(--bg); border:1px solid var(--line); color:var(--ink); }
.dashboard-pagination{ display:flex; justify-content:center; align-items:center; gap:14px; padding:18px 0; color:var(--ink-soft); font-size:13px; }
.dashboard-pagination button:disabled{ opacity:.45; cursor:default; }
.dashboard-empty,.dashboard-empty-list,.dashboard-loading{
  text-align:center; color:var(--ink-soft); padding:30px 14px;
}
.dashboard-empty{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
}
.dashboard-empty h3{ color:var(--ink); margin:8px 0 4px; }
.dashboard-empty p{ font-size:13px; margin-bottom:16px; }
.dashboard-empty-icon{ font-size:32px; }

/* ---------- Feed view ---------- */
.feed-toolbar{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom: var(--gap);
}
.back-btn{
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
}
.feed-toolbar h2{ font-size: 18px; font-weight:700; }

.feed-list{
  display:flex;
  flex-direction:column;
  gap: var(--gap); /* specific, consistent distance between posts */
}

/* ---------- Post card ---------- */
.post{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  position: relative;
}
.post-media{
  position: relative;
  width: 100%;
}
.post-media img{
  width:100%;
  display:block;
  height:auto;
  max-height: 520px;   /* image scales to full width, capped so it never dominates the feed */
  object-fit: cover;
}
.post-tag{
  position:absolute;
  left:10px;
  bottom:10px;
  background: rgba(0,0,0,0.55);
  color:#fff;
  font-size: 11.5px;
  font-weight:600;
  padding: 4px 10px;
  border-radius: 20px;
}
.post-tag.on-text{
  position: static;
  display:inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 8px;
}
.bookmark-flag{
  position:absolute;
  top:10px;
  left:10px;
  background: rgba(255,255,255,0.9);
  width:30px; height:30px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:15px;
  opacity:0;
  transition: opacity .15s ease;
}
.post.bookmarked .bookmark-flag{ opacity:1; }
.text-bookmark-flag{
  display:none;
  font-size: 11.5px; font-weight:600; color: var(--accent);
  margin-top: 8px;
}
.post.bookmarked .text-bookmark-flag{ display:inline-block; }

.post-body{
  padding: 14px 16px 16px;
}
.post-body p{
  font-size: 15px;          /* matches typical AI search-result body text size */
  line-height: 1.6;
  color: #3A423C;
}
.post-body p b{ color: var(--ink); font-weight:700; }
.post-body.text-only p{ font-size: 15px; }
.post-rich{
  font-size: 15px;
  line-height: 1.6;
  color: #3A423C;
}
.post-rich b, .post-rich strong{ color: var(--ink); font-weight:700; }
.post-rich u{ text-decoration: underline; }
.post-rich ul{ margin: 8px 0 8px 20px; padding:0; }
.post-rich li{ margin-bottom:4px; }
.post-title-line{ font-weight:700; color: var(--ink); font-size: 15.5px; }
.post-content{ margin-top: 8px; } /* paragraph spacing between title & content */
.post-excerpt{ display:block; }
.read-more{
  display:block; margin-top:8px; padding:0;
  color:var(--accent); font-size:13px; font-weight:700;
  text-decoration:underline;
}

/* image + text spacing */
.post-media + .post-body{ padding-top: 12px; }
.post-body--slim{ padding: 12px 16px; }

/* ---------- Share button — top-right of the post (Amazon-style share sheet) ---------- */
.post-share-fab{
  position:absolute; top:10px; right:10px; z-index: 6;
  width:34px; height:34px; border-radius:50%;
  background: rgba(255,255,255,0.94); border:1px solid var(--line);
  font-size:15px; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 2px 6px rgba(31,43,36,0.12);
}
.post-share-fab:active{ background: var(--accent-soft); }

.share-sheet{ max-width: 380px; }
.share-options{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; padding: 18px; }
.share-option{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  font-size: 12px; font-weight:600; color: var(--ink);
  text-decoration:none; background:none; border:none; font-family:inherit;
}
.share-icon{
  width:46px; height:46px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size: 0; background: var(--bg); border:1px solid var(--line);
  font-weight: 800;
}
.share-icon::before{ font-size: 20px; line-height:1; }
.share-icon--whatsapp{ color:#fff; background:#25d366; border-color:#25d366; }
.share-icon--whatsapp::before{ content:"◔"; }
.share-icon--facebook{ color:#fff; background:#1877f2; border-color:#1877f2; }
.share-icon--facebook::before{ content:"f"; font-family:Arial,sans-serif; }
.share-icon--instagram{ color:#fff; background:linear-gradient(135deg,#feda75,#d62976,#4f5bd5); border-color:#d62976; }
.share-icon--instagram::before{ content:"◎"; }
.share-icon--twitter{ color:#fff; background:#111; border-color:#111; }
.share-icon--twitter::before{ content:"X"; font-size:16px; }
.share-icon--copy::before{ content:"↗"; }
}

/* ---------- Deep-link highlight ---------- */
.post-highlight{ animation: postHighlightPulse 2s ease; }
@keyframes postHighlightPulse{
  0%{ box-shadow: 0 0 0 3px var(--accent); }
  100%{ box-shadow: 0 0 0 0 rgba(47,107,79,0); }
}


/* ---------- Image slider (multi-image posts) ---------- */
.post-slider{
  display:flex;
  overflow-x:auto;
  gap: 8px;                 /* specific gap between slides */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.post-slider::-webkit-scrollbar{ display:none; }
.post-slider img{
  flex: 0 0 100%;
  scroll-snap-align: start;
  width:100%;
  height:auto;
  max-height: 520px;
  object-fit: cover;
  display:block;
}
.slider-count{
  position:absolute;
  right:10px;
  bottom:10px;
  background: rgba(0,0,0,0.55);
  color:#fff;
  font-size: 11px;
  font-weight:600;
  padding: 3px 9px;
  border-radius: 20px;
}

/* ---------- Loader ---------- */
.loader{
  text-align:center;
  padding: 20px 0 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Empty state (bookmarks) ---------- */
.empty-state{
  text-align:center;
  padding: 60px 20px;
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---------- Toast ---------- */
.toast{
  position: fixed;
  left:50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(10px);
  background: #232823;
  color:#fff;
  font-size: 13px;
  font-weight:600;
  padding: 10px 18px;
  border-radius: 30px;
  opacity:0;
  pointer-events:none;
  transition: all .2s ease;
  z-index: 200;
}
.toast.show{ opacity:1; transform: translateX(-50%) translateY(0); }
.toast-link{ color:#fff; text-decoration:underline; font-weight:700; margin-left:6px; }

/* ---------- Header: logo button + plus button ---------- */
.brand{
  font-size: 19px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.2px;
}
.plus-btn{
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  display:flex; align-items:center; justify-content:center;
  line-height: 1;
}
.plus-btn:active{ transform: scale(0.92); }

/* ---------- Reels option card — same visual style as other icons ---------- */
.option-card--reels{ /* intentionally identical to .option-card — no special background */ }

/* ---------- Remark / official tags on posts ---------- */
.post-remark{
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-style: italic;
}
.post-official{
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 20px;
  display:inline-block;
  margin-bottom: 8px;
}

/* ---------- Reading report ---------- */
.report-card{
  margin-top: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.report-title{ font-size: 15.5px; font-weight:700; margin-bottom: 12px; }
.report-tabs{ display:flex; gap:8px; margin-bottom: 16px; }
.report-tab{
  flex:1;
  font-size: 12.5px; font-weight:600;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 6px;
}
.report-tab.active{ background: var(--accent); color:#fff; border-color: var(--accent); }
.report-figure{ display:flex; align-items:baseline; gap:8px; margin-bottom: 10px; }
.report-number{ font-size: 34px; font-weight:800; color: var(--ink); }
.report-label{ font-size: 13px; color: var(--ink-soft); }
.report-bar-track{ height: 8px; background: var(--accent-soft); border-radius: 6px; overflow:hidden; }
.report-bar-fill{ height:100%; background: var(--accent); border-radius:6px; width:0%; transition: width .4s ease; }

/* ---------- Time spent studying (two simple circles) ---------- */
.time-card{
  margin-top: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.time-circles{ display:flex; gap: 18px; justify-content:center; margin-top: 14px; }
.time-circle{
  width: 118px; height: 118px; border-radius: 50%;
  border: 6px solid var(--accent-soft);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  background: var(--paper);
}
.time-circle-value{ font-size: 17px; font-weight:800; color: var(--ink); }
.time-circle-label{ font-size: 11px; color: var(--ink-soft); margin-top:3px; font-weight:600; }

/* ---------- Footer (home page only) ---------- */
.site-footer{
  max-width: 720px;
  margin: 36px auto 0;
  padding: 20px 16px 40px;
  background: transparent;
}
.footer-inner{
  display:flex;
  justify-content: center;
  align-items:center;
  gap: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  text-align: center;
}
.footer-col{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.footer-col--about{ max-width: 240px; }
.footer-col--right{ text-align:center; margin-left:0; }
.footer-qr{ width:80px; height:80px; border-radius:6px; border:1px solid var(--line); }
.footer-heading{ font-size: 12.5px; font-weight:700; color: var(--ink-soft); }
.footer-text{ font-size: 12px; color: var(--ink-soft); }
.footer-link{ color: var(--accent); text-decoration:none; font-weight:600; }

/* ---------- Modal (student post submission) ---------- */
.modal-backdrop{
  position: fixed; inset:0; background: rgba(35,40,35,0.45);
  display:flex; align-items:flex-end; justify-content:center;
  opacity:0; pointer-events:none; transition: opacity .2s ease;
  z-index: 300;
}
.modal-backdrop.open{ opacity:1; pointer-events:auto; }
.modal{
  background: var(--paper);
  width: 100%; max-width: 480px;
  border-radius: 18px 18px 0 0;
  max-height: 88vh; overflow-y:auto;
  transform: translateY(16px);
  transition: transform .2s ease;
}
.modal-backdrop.open .modal{ transform: translateY(0); }
.modal-header{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.modal-header h3{ font-size: 16px; }
.modal-close{ font-size: 16px; color: var(--ink-soft); }
.modal-body{ padding: 16px 18px 22px; display:flex; flex-direction:column; }
.reel-text-modal{ max-width: 680px; }
.reel-text-modal .modal-body{ display:block; line-height:1.65; }
.field-label{ font-size: 12.5px; font-weight:700; color: var(--ink-soft); margin: 12px 0 6px; }
.field-label:first-child{ margin-top:0; }
.field-input{
  width:100%; border:1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; font-family:inherit; color: var(--ink);
  background: var(--bg);
}
textarea.field-input{ resize: vertical; }
.field-hint{ font-size: 11.5px; color: var(--ink-soft); margin-top:14px; line-height:1.5; }
.field-submit{
  margin-top: 14px; background: var(--accent); color:#fff;
  font-weight:700; font-size: 14px; padding: 12px; border-radius: 10px;
}

/* ---------- Rich text toolbar (content writing option) ---------- */
.rt-toolbar{ display:flex; gap:6px; margin-bottom:8px; }
.rt-btn{
  border:1px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: 12.5px; font-weight:600; padding:6px 10px; border-radius:8px;
}
.rt-btn:active{ background: var(--accent-soft); }
.rt-editable{
  min-height: 90px; line-height:1.6; font-size:14px;
  overflow-y:auto; cursor:text;
}
.rt-editable:empty:before{
  content: attr(data-placeholder);
  color:#9AA79E;
}
.rt-editable ul{ margin:6px 0 6px 20px; }
.rt-editable u{ text-decoration:underline; }

/* ---------- Image preview chips (multi-image picker) ---------- */
.image-preview-row{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.image-preview-chip{
  font-size:11px; font-weight:600; color: var(--accent);
  background: var(--accent-soft); padding:4px 9px; border-radius: 20px;
}

/* ---------- Header logo (image variant) ---------- */
.brand{ display:flex; align-items:center; gap:8px; }
.brand-logo-img{ height:26px; width:auto; display:block; border-radius:6px; }

/* ---------- Reels view (fullscreen vertical swipe) ---------- */
#reels-view{ padding:0; max-width:none; }
.reels-topbar{
  position: fixed; top: 60px; left:0; right:0; z-index: 90;
  padding: 10px 16px;
  display:flex; align-items:center;
}
.back-btn--light{ background: rgba(255,255,255,0.85); }
.reels-container{
  position: fixed; top:60px; left:0; right:0; bottom:0;
  overflow-y:auto; scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}
.reels-container .post{
  height: calc(100vh - 60px);
  scroll-snap-align: start;
  border-radius:0; border-left:none; border-right:none; border-bottom:none;
  display:flex; flex-direction:column;
}
.reels-container .post .post-media{
  flex: 0 0 45%; position:relative; overflow:hidden; isolation:isolate;
  background:var(--ink);
}
.reels-container .post .post-media::before{
  content:""; position:absolute; inset:-18px; z-index:-1;
  background-image:var(--reel-image); background-size:cover; background-position:center;
  filter:blur(18px); transform:scale(1.08); opacity:.75;
}
.reels-container .post .post-media img,
.reels-container .post .post-slider img{ height:100%; aspect-ratio:auto; }
.reels-container .post .post-media img,
.reels-container .post .post-slider img{ width:100%; object-fit:contain; }
.reels-container .post .post-body{ flex: 0 0 55%; overflow-y:auto; }
.reels-container .post.post--reel .post-media.no-media{ flex:1; }
.reels-sentinel{ height:1px; scroll-snap-align:none; }

/* ---------- Responsive ---------- */
@media (max-width: 420px){
  .option-grid{ grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .page-title{ font-size: 18px; }
}
@media (min-width: 720px){
  .option-grid{ grid-template-columns: repeat(3, 1fr); }
}
