/* MindScape visual polish — calm, consistent, mobile-first */
:root{
  --coral:#f54731; --coral-dark:#d83b27; --blue:#6fa7ff; --lav:#e8b4fa;
  --navy:#072e2d; --ink:#173c39; --muted:#667572; --cream:#fbfaf8;
  --white:#fff; --line:#e7e2de; --soft:#f5f1ee;
  --shadow-sm:0 5px 18px rgba(7,46,45,.06); --shadow-md:0 10px 28px rgba(7,46,45,.08);
  --radius:18px;
}
*{box-sizing:border-box}
body{background:var(--cream);color:var(--ink)}
.site-nav{background:rgba(251,250,248,.96);border-bottom:1px solid var(--line);box-shadow:0 2px 12px rgba(7,46,45,.035)}
.site-nav-inner{max-width:1180px;min-height:64px;padding:8px 20px;gap:18px}
.site-logo{font-size:27px}
.site-menu{gap:8px;font-size:11px}
.site-menu a{padding:8px 9px;border-radius:9px}
.site-menu a:hover,.site-menu a.active{background:#fff0eb;color:var(--coral)}
.site-menu .nav-report{background:var(--navy);padding:9px 13px}
.site-menu .nav-report:hover{background:var(--coral);color:#fff}
.container{max-width:1120px}
.btn{min-height:42px;padding:10px 17px;box-shadow:none!important}
.btn:hover{transform:translateY(-1px)}
.section{padding:72px 0}
.section-title{letter-spacing:-.4px}
.section-intro{margin-bottom:30px}
.quick-links{margin:-30px auto 0;gap:10px}
.quick-card{border-radius:16px;padding:14px;box-shadow:var(--shadow-sm)}
.quick-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.feature-card,.choice,.tool,.side-card,.feed,.teacher-panel,.info-card,.panel,.stats>div,.form-card,.success-message,.poster-card,.kind-card,.composer{box-shadow:var(--shadow-sm)!important}
.feature-card{min-height:230px;padding:24px;border-radius:18px}
.feature-card h3{font-size:22px}
.how{background:var(--navy)}
.steps{gap:12px}.step{padding:17px;border-radius:15px}
.slider-wrapper{border-radius:20px;box-shadow:var(--shadow-md)}
.cta{padding:44px 0}
.cta h2{font-size:31px}
.site-footer{padding:30px 20px 16px}

/* Shared inner-page rhythm */
.community-hero,.teacher-hero,.awareness-hero,.header{background:linear-gradient(135deg,#fff7f3 0%,#fbf7fd 100%)}
.community-hero,.teacher-hero{padding:58px 0 76px}
.community-hero h1,.teacher-hero h1,.awareness-hero h1,.header h1{font-size:clamp(42px,5.5vw,62px);letter-spacing:-1px}
.community-main,.report-container,.awareness-main{padding-top:48px}
.community-layout,.teacher-layout{gap:16px}
.feed,.teacher-panel,.info-card,.side-card{border-radius:17px}
.feed,.teacher-panel{padding:18px}
.feed-item,.post,.composer,.kind-card{border-radius:14px}
.empty-feed,.empty{background:#fcfbfa;border-style:dashed}

/* Teacher Space: quiet chat UI, clearly separate from reporting */
.teacher-layout{margin-top:-26px}
.teacher-panel{border-color:#ddd8d4}
.chat-window{height:390px;background:#f7f5f3;border-color:#e2ddd9;border-radius:14px;padding:13px}
.message{max-width:72%}
.bubble{font-size:10.5px;padding:9px 11px;border-radius:14px}
.student .bubble{background:var(--navy)}
.teacher .bubble{background:#fff}
.chat-compose{border-top:1px solid var(--line);padding-top:12px}
.chat-compose textarea{min-height:78px;border-radius:11px;background:#fff}
.teacher-bottom button{min-height:40px;padding:9px 15px}
.info-card{padding:15px}
.info-card p{line-height:1.55}

/* Community */
.community-art{opacity:.9}.feed-top h2{font-size:25px}.feed-tools{margin:14px 0 8px}
.composer textarea{min-height:82px}.feed-item{padding:13px}
.post-text{margin:7px 0}.post-actions button{background:#fcfbfa}

/* Kindness Wall */
body:has(.kind-card) header{padding:54px 20px 72px}
body:has(.kind-card) main{margin-top:-28px}
.wall{gap:12px}.kind-card{padding:17px}
.kind-card p{font-size:14px}

/* Mood */
body:has(.moods){background:linear-gradient(135deg,#fff8f5,#faf6fc)}
body:has(.moods) main{padding-top:64px}
.moods{gap:10px}.moods button{padding:20px 8px;border-radius:16px;box-shadow:var(--shadow-sm)}

/* Awareness */
.awareness-main{padding-bottom:60px}.poster-grid{gap:14px}
.poster-card{border-radius:17px;overflow:hidden}.card-actions{padding:11px 13px}
.poster{border-radius:0!important}.ideas{border-radius:18px!important;box-shadow:var(--shadow-sm)}

/* Report */
.report-container{margin-top:-27px}.form-card{border-radius:17px;padding:20px}
.options{gap:9px}.option{border-radius:13px}.form-card h2{font-size:26px}
.submit-btn{min-height:46px;border-radius:13px}

/* Staff */
.dashboard-main{padding-top:42px}.stats{gap:9px}.stats>div{border-radius:15px;padding:14px}
.grid{gap:12px}.panel{border-radius:16px;padding:16px}.workflow div{border-radius:9px}

@media(max-width:760px){
  .site-nav-inner{min-height:60px;padding:8px 14px}
  .site-logo{font-size:25px}
  .mobile-nav-panel{border-radius:15px;box-shadow:0 14px 32px rgba(7,46,45,.12)}
  .hero{padding:58px 16px 68px;min-height:560px}
  .hero h1{font-size:48px}
  .quick-links{margin-top:-22px;padding:0 14px}
  .section{padding:58px 0}
  .community-hero,.teacher-hero{padding:48px 0 64px}
  .community-hero h1,.teacher-hero h1,.awareness-hero h1,.header h1{font-size:43px}
  .community-main,.report-container,.awareness-main{padding-top:38px}
  .teacher-layout{margin-top:-20px}
  .chat-window{height:350px}
  .message{max-width:86%}
  .feed,.teacher-panel{padding:14px}
}
@media(max-width:520px){
  .hero h1{font-size:43px}.hero p{font-size:12.5px}
  .quick-card{padding:12px}.quick-icon{width:40px;height:40px}
  .community-hero h1,.teacher-hero h1,.awareness-hero h1,.header h1{font-size:39px}
  .moods{grid-template-columns:1fr 1fr}
  .stats{grid-template-columns:1fr 1fr}
  .poster-grid,.wall{grid-template-columns:1fr}
  .cta{padding:38px 0}
}


/* =========================================================
   MOBILE NAV — FINAL OVERRIDE
   ========================================================= */

.site-nav{
  position:sticky;
  top:0;
  z-index:5000;
}

.site-nav-inner{
  position:relative;
}

.mobile-nav-toggle{
  display:none;
  flex:0 0 42px;
  width:42px;
  height:42px;
  margin-left:auto;
  padding:0;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--navy);
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(7,46,45,.06);
  -webkit-tap-highlight-color:transparent;
}

.hamburger-lines{
  width:19px;
  height:16px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.hamburger-lines span{
  display:block;
  width:100%;
  height:2px;
  border-radius:99px;
  background:currentColor;
  transition:transform .22s ease, opacity .18s ease;
}

.mobile-nav-toggle.is-open .hamburger-lines span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.is-open .hamburger-lines span:nth-child(2){
  opacity:0;
}
.mobile-nav-toggle.is-open .hamburger-lines span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

.mobile-nav-panel{
  display:none;
}

@media (max-width:760px){
  body.mobile-menu-open{
    overflow:hidden;
  }

  .site-nav-inner{
    min-height:62px;
    padding:8px 14px;
    gap:10px;
  }

  .site-logo{
    font-size:25px;
    line-height:1;
    max-width:calc(100% - 55px);
  }

  .site-menu{
    display:none !important;
  }

  .mobile-nav-toggle{
    display:flex;
  }

  .mobile-nav-panel{
    position:absolute;
    display:block;
    left:10px;
    right:10px;
    top:calc(100% + 8px);
    z-index:5001;
    max-height:calc(100vh - 80px);
    overflow-y:auto;
    padding:8px;
    background:rgba(255,255,255,.98);
    border:1px solid var(--line);
    border-radius:18px;
    box-shadow:0 18px 45px rgba(7,46,45,.16);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-8px) scale(.98);
    transform-origin:top center;
    transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  .mobile-nav-panel.open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0) scale(1);
  }

  .mobile-nav-panel a{
    display:flex;
    align-items:center;
    min-height:46px;
    width:100%;
    padding:11px 13px;
    margin:2px 0;
    border-radius:12px;
    color:var(--ink);
    font-size:13px;
    font-weight:700;
    line-height:1.2;
    transition:background .18s ease, color .18s ease, transform .18s ease;
  }

  .mobile-nav-panel a:hover,
  .mobile-nav-panel a:focus-visible{
    background:#fff1ec;
    color:var(--coral);
    outline:none;
  }

  .mobile-nav-panel a.active{
    background:#fff1ec;
    color:var(--coral);
  }

  .mobile-nav-panel .nav-report{
    justify-content:center;
    margin-top:7px;
    min-height:45px;
    background:var(--navy);
    color:#fff;
  }

  .mobile-nav-panel .nav-report:hover,
  .mobile-nav-panel .nav-report:focus-visible{
    background:var(--coral);
    color:#fff;
  }
}

@media (max-width:380px){
  .site-nav-inner{
    padding-left:11px;
    padding-right:11px;
  }

  .site-logo{
    font-size:23px;
  }

  .mobile-nav-panel{
    left:8px;
    right:8px;
    border-radius:16px;
  }

  .mobile-nav-panel a{
    min-height:44px;
    font-size:12.5px;
  }
}


/* =========================================================
   COMMUNITY — UNIFIED BUTTON SYSTEM
   ========================================================= */

.community-page .btn,
.community-page button,
.community-page .post-actions button,
.community-page .post-card button,
.community-page .community-actions button,
.community-page .community-btn,
.community-page a.btn {
  box-sizing:border-box;
  min-height:40px;
  border-radius:12px;
  border:1px solid transparent;
  padding:9px 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font:inherit;
  font-size:13px;
  font-weight:800;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  transition:
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.community-page .btn:hover,
.community-page button:hover,
.community-page .post-actions button:hover,
.community-page .post-card button:hover,
.community-page .community-actions button:hover,
.community-page .community-btn:hover,
.community-page a.btn:hover {
  transform:translateY(-1px);
}

.community-page .btn:active,
.community-page button:active,
.community-page .post-actions button:active,
.community-page .post-card button:active,
.community-page .community-actions button:active,
.community-page .community-btn:active,
.community-page a.btn:active {
  transform:translateY(0);
}

/* Main / primary actions */
.community-page .btn-primary,
.community-page .btn-main,
.community-page .community-btn.primary,
.community-page .create-post-btn,
.community-page .new-post-btn {
  background:var(--navy);
  color:#fff;
  border-color:var(--navy);
  box-shadow:0 5px 12px rgba(7,46,45,.12);
}

.community-page .btn-primary:hover,
.community-page .btn-main:hover,
.community-page .community-btn.primary:hover,
.community-page .create-post-btn:hover,
.community-page .new-post-btn:hover {
  background:var(--coral);
  border-color:var(--coral);
  color:#fff;
}

/* Secondary / neutral actions */
.community-page .btn-secondary,
.community-page .btn-outline,
.community-page .community-btn.secondary,
.community-page .cancel-btn,
.community-page .edit-btn {
  background:#fff;
  color:var(--navy);
  border-color:var(--line);
  box-shadow:none;
}

.community-page .btn-secondary:hover,
.community-page .btn-outline:hover,
.community-page .community-btn.secondary:hover,
.community-page .cancel-btn:hover,
.community-page .edit-btn:hover {
  background:#f8f5f1;
  border-color:#cfc6bd;
  color:var(--navy);
}

/* Delete / danger */
.community-page .delete-btn,
.community-page .btn-danger,
.community-page .community-btn.danger {
  background:#fff;
  color:#c94b3b;
  border-color:#e6c1ba;
  box-shadow:none;
}

.community-page .delete-btn:hover,
.community-page .btn-danger:hover,
.community-page .community-btn.danger:hover {
  background:#fff1ee;
  border-color:#d88b80;
  color:#b83c2e;
}

/* Like / reaction buttons stay visually consistent */
.community-page .like-btn,
.community-page .reaction-btn,
.community-page .post-like,
.community-page .post-actions .like {
  min-width:40px;
  padding:9px 13px;
  background:#fff;
  color:var(--navy);
  border-color:var(--line);
}

.community-page .like-btn.active,
.community-page .reaction-btn.active,
.community-page .post-like.active,
.community-page .post-actions .like.active {
  background:#fff1ec;
  color:var(--coral);
  border-color:#f0c5bc;
}

/* Make button groups consistent */
.community-page .post-actions,
.community-page .community-actions,
.community-page .button-group,
.community-page .actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}

@media (max-width:600px){
  .community-page .btn,
  .community-page button,
  .community-page .post-actions button,
  .community-page .post-card button,
  .community-page .community-actions button,
  .community-page .community-btn,
  .community-page a.btn {
    min-height:42px;
    padding:10px 14px;
    border-radius:12px;
    font-size:12.5px;
  }

  .community-page .post-actions,
  .community-page .community-actions,
  .community-page .button-group,
  .community-page .actions {
    gap:7px;
  }
}


/* =========================================================
   COMMUNITY — FINAL BUTTON SHAPE
   Keep the existing layout; unify every interactive button.
   ========================================================= */

.community-page .filters .filter,
.community-page .feed-tools .ghost-danger,
.community-page .composer-bottom .btn,
.community-page .post-actions button,
.community-page .comment-actions button,
.community-page .mini-delete,
.community-page .comment-box button {
  min-height:38px;
  height:38px;
  box-sizing:border-box;
  border-radius:12px;
  border:1px solid var(--line);
  padding:0 13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-family:Poppins,sans-serif;
  font-size:9px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}

.community-page .filters .filter {
  background:#fff;
  color:#777;
}

.community-page .filters .filter.active {
  background:var(--navy);
  color:#fff;
  border-color:var(--navy);
}

.community-page .filters .filter:hover {
  border-color:var(--navy);
  color:var(--navy);
}

.community-page .filters .filter.active:hover {
  color:#fff;
}

.community-page .feed-tools .ghost-danger {
  background:#fff;
  color:var(--coral);
  border-color:#f1c8c1;
}

.community-page .feed-tools .ghost-danger:hover {
  background:#fff1ed;
  border-color:#e7a99e;
}

.community-page .composer-bottom .btn {
  min-width:155px;
  background:var(--navy);
  color:#fff;
  border-color:var(--navy);
}

.community-page .composer-bottom .btn:hover {
  background:var(--coral);
  border-color:var(--coral);
  transform:translateY(-1px);
}

.community-page .post-actions button,
.community-page .comment-actions button,
.community-page .mini-delete {
  background:#fff;
  color:var(--navy);
}

.community-page .post-actions button:hover,
.community-page .comment-actions button:hover,
.community-page .mini-delete:hover {
  background:#f8f5f2;
  border-color:#cfc6bd;
  transform:translateY(-1px);
}

.community-page .post-actions .delete-btn,
.community-page .comment-actions .comment-delete,
.community-page .mini-delete {
  color:var(--coral);
  border-color:#f1c8c1;
}

.community-page .post-actions .delete-btn:hover,
.community-page .comment-actions .comment-delete:hover,
.community-page .mini-delete:hover {
  background:#fff1ed;
  border-color:#e3a298;
}

.community-page .comment-box button {
  min-width:72px;
  background:var(--navy);
  color:#fff;
  border-color:var(--navy);
}

.community-page .comment-box button:hover {
  background:var(--coral);
  border-color:var(--coral);
  transform:translateY(-1px);
}

.community-page .composer-bottom select {
  height:38px;
  min-height:38px;
  border-radius:12px;
  padding:0 12px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--navy);
  font-family:Poppins,sans-serif;
  font-size:9px;
  font-weight:700;
  cursor:pointer;
}

@media (max-width:650px) {
  .community-page .filters .filter,
  .community-page .feed-tools .ghost-danger,
  .community-page .composer-bottom .btn,
  .community-page .post-actions button,
  .community-page .comment-actions button,
  .community-page .mini-delete,
  .community-page .comment-box button {
    height:40px;
    min-height:40px;
    border-radius:12px;
    padding:0 13px;
    font-size:9px;
  }

  .community-page .composer-bottom .btn,
  .community-page .comment-box button {
    width:100%;
  }

  .community-page .composer-bottom select {
    height:40px;
    min-height:40px;
    width:100%;
  }
}

/* === Enhanced UI Pack === */
:root{--radius:18px}
.site-nav{position:sticky;top:0;backdrop-filter:blur(14px);background:rgba(255,255,255,.88);border-bottom:1px solid rgba(0,0,0,.06);z-index:1000}
.site-menu a{padding:10px 14px;border-radius:999px;font-weight:600;transition:.2s}.site-menu a:hover,.site-menu a.active{background:#fff4f1;color:var(--coral)}
.btn,.composer-bottom .btn,#sendTeacher,.ghost-danger,.post-actions button,.comment-box button{min-height:44px;border-radius:14px;font-weight:700;transition:.2s}.btn:hover,#sendTeacher:hover,.ghost-danger:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(0,0,0,.08)}
.feed,.teacher-panel,.side-card,.info-card,.quick-card,.tool,.choice,.feature-card{border-radius:22px;border:1px solid rgba(0,0,0,.06);box-shadow:0 14px 36px rgba(32,28,48,.08)}
.feed-item,.post{transition:.22s}.feed-item:hover,.post:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(0,0,0,.08)}
.post-meta{padding-bottom:8px;border-bottom:1px solid rgba(0,0,0,.05)}
.post-actions{margin-top:12px;padding-top:10px;border-top:1px solid rgba(0,0,0,.05)}
.chat-window{background:linear-gradient(180deg,#fcfcfd,#f7f8fc);border-radius:18px;padding:18px}.chat-compose textarea,.composer textarea,.feed-tools input{background:#fff;border:1px solid #ece7f2;border-radius:14px}.online{background:#eef9f3;color:#20855d;padding:8px 12px;border-radius:999px;font-size:11px;font-weight:700}
@media (max-width:768px){.site-nav-inner{padding:12px 16px}.hero,.community-hero,.teacher-hero{padding-top:84px}.community-layout,.teacher-layout{grid-template-columns:1fr!important}.sidebar{display:flex!important;overflow-x:auto;gap:12px;padding-bottom:8px}.side-card{min-width:250px}.post-actions button,.comment-box button,.ghost-danger,.composer-bottom .btn{width:100%}.quick-links{gap:10px}.quick-card{padding:14px}.site-menu{width:100%}}


/* =========================================================
   MINDScape V3 — product-level polish
   ========================================================= */
:root{--focus:#6fa7ff;--success:#2f8f73;--card:#ffffff}
body{overflow-x:hidden}
.site-nav-inner{width:100%;max-width:1180px}
.site-menu a{white-space:nowrap}
.site-menu .nav-report{font-weight:800}
.mobile-nav-panel{z-index:6000}
.mobile-nav-toggle:focus-visible,.site-menu a:focus-visible,.btn:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(111,167,255,.32);outline-offset:2px}
.community-page .feed-top{align-items:flex-start}
.community-page .filters{display:flex;flex-wrap:wrap;gap:7px}
.community-page .feed-tools{display:grid;grid-template-columns:1fr auto;gap:10px}
.community-page .feed-tools input{min-height:42px;border:1px solid var(--line);border-radius:12px;padding:0 13px;background:#fff;outline:none}
.community-page .feed-tools input:focus{border-color:#b9d1fa;box-shadow:0 0 0 4px rgba(111,167,255,.12)}
.community-page .composer{border:1px solid var(--line);background:#fff}
.community-page .composer-bottom{gap:9px;align-items:center}
.community-page .composer-bottom select{min-height:38px;border:1px solid var(--line);border-radius:12px;padding:0 10px;background:#fff;color:var(--ink);font-size:11px;font-weight:700}
.community-page .post{background:#fff;border:1px solid var(--line);box-shadow:0 8px 25px rgba(7,46,45,.055)!important}
.community-page .post:hover{box-shadow:0 12px 30px rgba(7,46,45,.08)!important;transform:translateY(-1px)}
.community-page .post-head{gap:10px}
.community-page .post-head small{display:block;color:#8b8784;margin-top:2px}
.community-page .tag{white-space:nowrap}
.community-page .post-actions{padding-top:11px;margin-top:10px;border-top:1px solid #f0ebe7}
.community-page .comment{padding:10px;border-radius:12px;background:#faf8f6;margin-top:8px}
.community-page .comment-head{display:flex;align-items:center;gap:7px}
.community-page .you-badge{font-size:9px;font-weight:800;padding:2px 6px;border-radius:999px;background:#e9f7f2;color:var(--success)}
.community-page .comment-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.community-page .comment-actions button,.community-page .mini-delete{min-height:30px;height:30px;padding:0 9px;font-size:9px}
.community-page .reply{margin-top:7px;padding:8px 9px 8px 12px;border-left:3px solid var(--lav);background:#fff;display:flex;justify-content:space-between;gap:8px;border-radius:0 10px 10px 0}
.community-page .comment-box{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:10px}
.community-page .comment-box input{min-height:38px;border:1px solid var(--line);border-radius:11px;padding:0 11px;background:#fff}
.community-page .empty{padding:28px;text-align:center;border:1px dashed #d9d0ca;border-radius:14px;color:#7c7976;background:#fff}

/* Teacher chat */
.teacher-panel{background:#fff;border:1px solid var(--line)}
.chat-window{display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.chat-empty{height:100%;display:grid;place-content:center;text-align:center;color:#7c8582;font-size:11px;padding:30px}.chat-empty strong{display:block;color:var(--navy);font-size:15px;margin-bottom:5px}
.message{animation:msgIn .22s ease both}.message-meta{font-size:8px;color:#8d8a87;margin-top:3px}.teacher .message-meta{text-align:left}.student .message-meta{text-align:right}
@keyframes msgIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.teacher-bottom{gap:9px}.teacher-bottom button{background:var(--navy);color:#fff;border:0;border-radius:11px;font-weight:800}.teacher-bottom button:hover{background:var(--coral)}

/* Staff portal */
.dashboard-main{padding-bottom:60px}.dashboard-header{display:flex;justify-content:space-between;align-items:flex-start;gap:25px;padding:48px 0 24px}.privacy{display:flex;flex-direction:column;gap:3px;border:1px solid #d8e3df;background:#f5faf8;border-radius:13px;padding:11px 13px;color:var(--navy);font-size:11px;font-weight:800}.privacy small{font-size:9px;color:#70807c;font-weight:600}
.dashboard-tools{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px;padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:15px}.dashboard-tools strong{display:block;font-size:13px}.dashboard-tools span{display:block;font-size:9px;color:var(--muted)}.staff-refresh{border:1px solid var(--line);background:#fff;border-radius:10px;min-height:36px;padding:0 12px;font-size:10px;font-weight:800;color:var(--navy);cursor:pointer}.staff-refresh:hover{background:#fff1ec;color:var(--coral)}
.queue,.flag{border:1px solid #eee8e3;border-radius:12px;padding:11px;margin-top:8px;background:#fff}.queue select,.flag select{margin-top:8px;width:100%;min-height:34px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:10px;padding:0 8px}.teacher-thread{border:1px solid #eee8e3;border-radius:13px;overflow:hidden}.teacher-thread-head{padding:11px 12px;background:#faf8f6;display:flex;justify-content:space-between;gap:10px}.teacher-thread-head small{color:#8a8784}.thread-messages{max-height:330px;overflow:auto;padding:11px;display:flex;flex-direction:column;gap:7px}.staff-msg{align-self:flex-start;max-width:80%;padding:8px 10px;border-radius:12px;background:#f2efec;font-size:10px}.staff-msg.student{align-self:flex-end;background:var(--navy);color:#fff}.staff-msg small{display:block;margin-top:4px;opacity:.65;font-size:8px}.reply-row{display:grid;grid-template-columns:1fr auto;gap:7px;padding:10px;border-top:1px solid var(--line)}.reply-row input{min-height:37px;border:1px solid var(--line);border-radius:10px;padding:0 10px}.reply-row button{border:0;border-radius:10px;background:var(--navy);color:#fff;padding:0 13px;font-size:10px;font-weight:800;cursor:pointer}
@media(max-width:760px){.dashboard-header{display:block;padding-top:34px}.privacy{margin-top:14px}.dashboard-tools{align-items:flex-start}.community-page .feed-tools{grid-template-columns:1fr}.community-page .composer-bottom{display:grid;grid-template-columns:1fr 1fr}.community-page .composer-bottom .btn{grid-column:1/-1;width:100%}.community-page .post-actions button{flex:1 1 auto}.reply-row{grid-template-columns:1fr}.reply-row button{min-height:38px}.staff-refresh{min-height:38px}}
@media(max-width:430px){.dashboard-tools{display:block}.staff-refresh{width:100%;margin-top:9px}.community-page .composer-bottom{grid-template-columns:1fr}.community-page .composer-bottom select{width:100%}.community-page .post-actions{display:grid;grid-template-columns:1fr 1fr}.community-page .post-actions button{width:100%}.community-page .comment-actions button{flex:1 1 auto}}



/* =========================================================
   MINDSCAPE — FINAL NAV + COMMUNITY UI PASS
   ========================================================= */

/* ---------- Shared navigation ---------- */
.site-nav{
  position:sticky;
  top:0;
  z-index:5000;
  background:rgba(255,250,247,.96);
  border-bottom:1px solid rgba(232,225,221,.95);
  box-shadow:0 5px 18px rgba(7,46,45,.045);
}

.site-nav-inner{
  width:min(1180px,100%);
  min-height:68px;
  margin:0 auto;
  padding:9px 20px;
  display:flex;
  align-items:center;
  gap:20px;
}

.site-logo{
  flex:0 0 auto;
  font-size:28px;
  line-height:1;
}

.site-menu{
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:4px;
  font-size:11px;
  white-space:nowrap;
}

.site-menu a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 10px;
  border-radius:10px;
  color:#34514e;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}

.site-menu a:hover,
.site-menu a.active{
  background:#fff0eb;
  color:var(--coral);
}

.site-menu .nav-report{
  margin-left:3px;
  padding:9px 13px;
  background:var(--navy);
  color:#fff;
  border-radius:11px;
  box-shadow:0 5px 14px rgba(7,46,45,.12);
}

.site-menu .nav-report:hover{
  background:var(--coral);
  color:#fff;
  transform:translateY(-1px);
}

/* Keep the mobile button visually identical on every page. */
.mobile-nav-toggle{
  display:none;
  flex:0 0 42px;
  width:42px;
  height:42px;
  margin-left:auto;
  padding:0;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--navy);
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 12px rgba(7,46,45,.07);
  cursor:pointer;
}

.mobile-nav-toggle:focus-visible{
  outline:3px solid rgba(111,167,255,.35);
  outline-offset:2px;
}

.hamburger-lines{
  width:19px;
  height:16px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.hamburger-lines span{
  display:block;
  width:100%;
  height:2px;
  border-radius:99px;
  background:currentColor;
  transition:transform .22s ease,opacity .18s ease;
}

.mobile-nav-toggle.is-open .hamburger-lines span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.is-open .hamburger-lines span:nth-child(2){
  opacity:0;
}
.mobile-nav-toggle.is-open .hamburger-lines span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

.mobile-nav-panel{
  display:none;
}

@media (max-width:1040px) and (min-width:761px){
  .site-nav-inner{
    padding-inline:16px;
    gap:12px;
  }
  .site-menu{
    gap:1px;
    font-size:10px;
  }
  .site-menu a{
    padding-inline:7px;
  }
  .site-menu .nav-report{
    padding-inline:10px;
  }
}

@media (max-width:760px){
  body.mobile-menu-open{
    overflow:hidden;
  }

  .site-nav-inner{
    min-height:62px;
    padding:8px 14px;
    gap:10px;
  }

  .site-logo{
    font-size:25px;
  }

  .site-menu{
    display:none;
  }

  .mobile-nav-toggle{
    display:flex;
  }

  .mobile-nav-panel{
    display:none;
    position:absolute;
    left:12px;
    right:12px;
    top:calc(100% + 8px);
    padding:8px;
    background:rgba(255,255,255,.99);
    border:1px solid var(--line);
    border-radius:18px;
    box-shadow:0 20px 45px rgba(7,46,45,.15);
  }

  .mobile-nav-panel.open{
    display:block;
  }

  .mobile-nav-panel a{
    display:flex;
    align-items:center;
    min-height:46px;
    padding:11px 13px;
    border-radius:12px;
    font-size:12px;
    font-weight:700;
    color:var(--ink);
  }

  .mobile-nav-panel a:hover,
  .mobile-nav-panel a.active{
    background:#fff0eb;
    color:var(--coral);
  }

  .mobile-nav-panel .nav-report{
    margin-top:6px;
    justify-content:center;
    background:var(--navy);
    color:#fff;
  }

  .mobile-nav-panel .nav-report:hover{
    background:var(--coral);
    color:#fff;
  }
}

/* ---------- Community page ---------- */
.community-page{
  background:#fffaf7;
}

.community-hero{
  padding:68px 0 82px;
}

.community-main{
  padding:48px 0 72px;
}

.community-layout{
  grid-template-columns:minmax(0,1fr) 300px;
  gap:20px;
  align-items:start;
}

.feed{
  padding:20px;
  border-radius:20px;
}

.feed-top{
  align-items:center;
  gap:18px;
}

.feed-top h2{
  font-size:27px;
}

.filters{
  gap:6px;
  justify-content:flex-end;
}

.filter{
  min-height:36px;
  padding:7px 12px;
  font-size:9px;
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}

.filter:hover{
  border-color:#d7cfca;
  transform:translateY(-1px);
}

.filter.active{
  box-shadow:0 5px 12px rgba(7,46,45,.10);
}

.feed-tools{
  align-items:center;
  gap:9px;
  margin:16px 0 10px;
}

.feed-tools input{
  min-height:42px;
  border-radius:12px;
  background:#fff;
}

.ghost-danger{
  min-height:42px;
  padding:9px 13px;
  white-space:nowrap;
}

.composer{
  border-radius:17px;
  padding:15px;
  background:#fff9f5;
}

.composer textarea{
  min-height:96px;
  font-size:12px;
  line-height:1.6;
}

.composer-bottom{
  margin-top:5px;
  gap:9px;
}

.composer-bottom select{
  min-height:40px;
  padding:8px 10px;
}

.composer-bottom .btn{
  min-height:40px;
  padding:9px 15px;
}

.sidebar{
  gap:12px;
}

.side-card{
  padding:17px;
  border-radius:18px;
}

.side-card h3{
  font-size:19px;
}

.side-card p,
.side-card li{
  font-size:10px;
  line-height:1.65;
}

.side-link{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  margin-top:8px;
  padding:6px 10px;
  border-radius:9px;
  background:#fff0eb;
  color:var(--coral);
  transition:background .18s ease,transform .18s ease;
}

.side-link:hover{
  background:#ffe3dc;
  transform:translateY(-1px);
}

/* Posts: one consistent control language. */
.post{
  margin-top:12px;
  padding:16px;
  border-radius:17px;
}

.post-head{
  min-width:0;
}

.post-head > div:nth-child(2){
  min-width:0;
}

.post-head strong{
  font-size:10.5px;
}

.post-head small{
  font-size:8.5px;
}

.tag{
  flex:0 0 auto;
  padding:6px 9px;
  font-size:8px;
}

.post-text{
  font-size:12px;
  line-height:1.7;
  margin:10px 0;
}

.post-actions,
.comment-actions{
  gap:6px;
}

.post-actions button,
.comment-actions button,
.mini-delete{
  min-height:32px;
  padding:6px 10px;
  border-radius:9px;
  font-size:8.5px;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}

.post-actions button:hover,
.comment-actions button:hover{
  background:#faf6f3;
  border-color:#d9d1cc;
  transform:translateY(-1px);
}

.post-actions .delete-btn,
.comment-actions .delete-btn,
.post-actions .danger{
  color:var(--coral);
}

.comments-section{
  margin-top:12px;
  padding-top:12px;
}

.comment-content{
  border-radius:12px;
  padding:9px;
}

.comment-box{
  gap:7px;
}

.comment-box input{
  min-height:38px;
  padding:8px 10px;
}

.comment-box button{
  min-width:62px;
  min-height:38px;
  padding:8px 11px;
}

.empty{
  background:#fcfbfa;
}

/* ---------- Community mobile/tablet ---------- */
@media (max-width:900px){
  .community-layout{
    grid-template-columns:1fr;
  }

  .sidebar{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:650px){
  .community-hero{
    padding:52px 0 66px;
  }

  .community-main{
    padding:36px 0 55px;
  }

  .feed{
    padding:13px;
    border-radius:17px;
  }

  .feed-top{
    display:block;
  }

  .feed-top h2{
    font-size:25px;
  }

  .filters{
    margin-top:12px;
    justify-content:flex-start;
  }

  .filter{
    flex:1 1 calc(25% - 6px);
    min-width:0;
    padding-inline:7px;
  }

  .feed-tools{
    display:grid;
    grid-template-columns:1fr;
  }

  .feed-tools input,
  .ghost-danger{
    width:100%;
  }

  .composer{
    padding:13px;
  }

  .composer-bottom{
    display:grid;
    grid-template-columns:1fr;
  }

  .composer-bottom span{
    margin:0;
  }

  .composer-bottom select,
  .composer-bottom .btn{
    width:100%;
  }

  .post{
    padding:13px;
  }

  .tag{
    padding:5px 7px;
    font-size:7px;
  }

  .post-actions button,
  .comment-actions button,
  .mini-delete{
    min-height:34px;
  }

  .sidebar{
    display:flex;
  }

  .side-card{
    padding:15px;
  }
}

@media (max-width:420px){
  .filter{
    flex-basis:calc(50% - 6px);
  }

  .post-head{
    gap:7px;
  }

  .avatar,
  .comment-avatar{
    width:30px;
    height:30px;
  }

  .tag{
    max-width:92px;
    text-align:center;
  }

  .post-actions button,
  .comment-actions button{
    flex:1 1 auto;
  }
}
