/* Interface das secoes, stories, mensagens e leitura. */
.app-shared-home-header:not(.app-shared-home-header--home){
  margin-bottom:12px!important;padding:11px 13px!important;border-radius:16px!important;
  border:1px solid #dfe8f5!important;background:#fff!important;
  box-shadow:0 3px 14px rgba(11,45,92,.06)!important;
}
.app-shared-home-header:not(.app-shared-home-header--home)::after{display:none}
.app-shared-home-header .app-header-back{
  width:40px;height:40px;flex-basis:40px;border-radius:12px;background:#edf4ff;
  box-shadow:none;color:#1555a8;font-size:23px;
}
.app-shared-home-header .app-header-back:hover{background:#dceafe}
.app-shared-home-header:not(.app-shared-home-header--home) .hc-hi{font-size:10px;letter-spacing:.08em;color:#4772a9}
.app-shared-home-header:not(.app-shared-home-header--home) .hc-name{font-size:17px;color:#102d53}
.app-shared-home-header:not(.app-shared-home-header--home) .hc-header-mantra{font-size:10px;color:#71839b}
.app-shared-home-header:not(.app-shared-home-header--home) .hc-avatar,
.app-shared-home-header:not(.app-shared-home-header--home) .hc-avatar-wrap{width:36px;height:36px}
.app-shared-home-header:not(.app-shared-home-header--home) .app-notification-button{width:36px;height:36px}
.app-shared-home-header[data-screen="community"]{border-color:#d2e5fb!important;background:#f9fcff!important}
.app-shared-home-header[data-screen="diary"]{border-color:#e2d9fa!important;background:#fcfaff!important}
.app-shared-home-header[data-screen="sos"]{border-color:#cfe9dc!important;background:#f9fffb!important}
.app-shared-home-header[data-screen="bookReader"],.app-shared-home-header[data-screen="library"]{border-color:#eadfca!important;background:#fffdf8!important}
.app-shared-home-header[data-screen="bookReader"] .app-header-back,.app-shared-home-header[data-screen="library"] .app-header-back{background:#f4ead8;color:#76532b}
.app-shared-home-header[data-screen="diary"] .app-header-back{background:#efe8ff;color:#6948a6}
.app-shared-home-header[data-screen="sos"] .app-header-back{background:#e3f4e9;color:#23764b}

/* Stories com avatares circulares e visualizador de midia. */
.member-stories{padding:14px 12px 12px;border-radius:18px;box-shadow:0 3px 14px rgba(18,51,92,.04)}
.member-stories-head{margin-bottom:12px}.member-stories-head strong{font-size:15px;color:#152b49}.member-stories-head span{font-size:11px}
.member-stories-list{gap:14px;padding:2px 4px 8px;scrollbar-width:none}.member-stories-list::-webkit-scrollbar{display:none}
.member-story-card,.member-story-create{flex:0 0 72px;width:72px;height:auto;min-height:94px;padding:0;border:0;border-radius:0;background:transparent;color:#223550;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;gap:6px;text-align:center;box-shadow:none}
.member-story-card strong,.member-story-create>span:last-child{display:block;max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 11px/1.2 var(--font);color:#243855}
.member-story-ring{display:grid;place-items:center;width:70px;height:70px;flex:0 0 70px;border-radius:50%;padding:3px;background:linear-gradient(145deg,#2459c4,#7c4ce2 55%,#d53d91)}
.member-story-avatar,.member-story-create-avatar{display:grid;place-items:center;width:64px;height:64px;overflow:hidden;border:3px solid #fff;border-radius:50%;background:#e4edfa;color:#1c55ab;font-size:22px;font-weight:800}
.member-story-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.member-story-create-avatar{position:relative;background:linear-gradient(135deg,#e9f3ff,#cde0fb);color:#1453ae;font-size:33px;line-height:1;border:2px solid #dce9f8;box-shadow:inset 0 0 0 3px #fff}
.member-story-card:focus-visible .member-story-ring,.member-story-create:focus-visible .member-story-create-avatar{outline:3px solid #215fc2;outline-offset:3px}
.story-layer{background:#080d16ef;padding:0}.story-shell{width:min(100%,430px);height:100dvh;max-height:900px;border-radius:0;background:#090e18}
.story-view-layer .story-shell{position:relative;justify-content:stretch;background:#070a10}
.story-view-layer .story-stage{position:absolute;inset:0;background:#070a10;touch-action:pan-y}
.story-view-layer .story-media img,.story-view-layer .story-media video{object-fit:contain;background:#070a10}
.story-view-layer .story-overlays{z-index:1}.story-view-layer .story-draw-layer{z-index:1}
.story-view-layer .story-progress{position:relative;z-index:4;display:flex;gap:4px;width:calc(100% - 24px);height:3px;margin:12px 12px 0;background:transparent}
.story-progress>span{height:3px;flex:1;min-width:2px;border-radius:999px;background:#ffffff58;overflow:hidden}
.story-progress>span i{display:block;height:100%;width:0;background:#fff}
.story-progress>span.complete i{width:100%}.story-progress>span.active i{animation:story-progress 15s linear forwards}
.story-view-head{position:relative;z-index:4;display:flex;gap:9px;height:58px;padding:6px 12px;background:linear-gradient(#0008,transparent)}
.story-view-head .story-view-avatar{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:50%;background:#244d90;overflow:hidden;border:1px solid #fff8;font-size:14px;font-weight:800}
.story-view-head .story-view-avatar img{width:100%;height:100%;object-fit:cover}
.story-view-person{flex:1;min-width:0;display:flex;align-items:flex-start;justify-content:center;flex-direction:column}
.story-view-person strong{font-size:13px}.story-view-person small{font-size:10px;color:#ddd}
.story-view-head>button{width:36px;height:36px;padding:0;border-radius:50%;background:#0005;font-size:17px}
.story-view-head #storyDelete{width:auto;padding:0 10px;font-size:11px}
.story-view-bottom{position:relative;z-index:3;margin-top:auto;padding:24px 16px max(15px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#000a 35%,#000d)}
.story-view-bottom p{max-height:18vh;overflow:auto;margin:0 0 10px;font-size:13px;line-height:1.5;text-shadow:0 1px 3px #000}
.story-view-nav{display:flex;align-items:center;justify-content:space-between;gap:12px}
.story-view-nav button{width:42px;height:42px;border:1px solid #fff7;border-radius:50%;background:#ffffff26;color:#fff;font-size:20px}
.story-view-nav span{color:#fff9;font-size:10px}
.story-editor .story-shell{background:#0b1320}
.story-head{min-height:56px}.story-head .story-publish{border-radius:999px;background:#fff;color:#1454aa;padding:9px 16px}
.story-tools{padding:10px 7px}.story-tools button,.story-tool{border-radius:999px!important;background:#ffffff22!important;padding:9px 11px!important}
.story-bottom{background:#0b1320}
@media(min-width:700px){.story-layer{padding:24px}.story-shell{height:min(92dvh,850px);border-radius:22px}}
@media(max-width:480px){.member-stories{border-radius:0}.story-view-nav span{font-size:9px}}

/* Mensagens com hierarquia visual e tamanhos de toque confortaveis. */
#community .comm-direct-btn{border-radius:50%;background:#edf4ff;color:#1859b5;box-shadow:none;border:1px solid #d8e7fb}
#community .comm-direct-btn:hover{background:#e1efff;box-shadow:0 4px 12px #1d5fd022}
.community-room-modal{background:#071729b8}
.community-room-panel{background:#fff;border-radius:22px 22px 0 0}
.community-room-head{min-height:64px;background:#fff;color:#183150;border-bottom:1px solid #e9eef5;padding:12px 16px}
.community-room-head small{color:#6181a9;font-size:10px;letter-spacing:.05em}
.community-room-head strong{font-size:18px;color:#152b48}
.community-room-close,.community-room-back{background:#edf4ff;border:0;color:#2459a5;border-radius:50%;width:38px;height:38px}
.community-inbox-actions{padding:15px 16px 10px;gap:10px}.community-inbox-actions button{min-height:46px;border-radius:14px;background:#eaf3ff;font-size:12px}
.community-privacy-note{margin:3px 16px 13px;padding:11px 13px;background:#f7f9fc;border:0}.community-privacy-note p{font-size:11px}.community-privacy-note strong{font-size:11px}
.community-conversation-row{min-height:72px;padding:12px 16px;gap:12px}.community-conversation-row:hover,.community-member-choice:hover{background:#f7faff}
.community-conversation-avatar{width:50px;height:50px;flex-basis:50px;font-size:17px}
.community-conversation-copy strong{font-size:14px;color:#172e4b}.community-conversation-copy span{font-size:11px;color:#76869c}
.community-conversation-side time{font-size:10px}.community-conversation-side b{font-size:10px;min-width:20px;height:20px}
.community-picker-intro strong{font-size:17px}.community-picker-intro span{font-size:12px}.community-member-choice strong{font-size:13px}
.community-private-banner{padding:10px 14px;background:#f6f9fd;font-size:10px}
.community-room-messages{padding:18px 14px;background:#f8fafc}
.community-message{margin-bottom:14px}.community-message-avatar{width:34px;height:34px;flex-basis:34px}
.community-message-bubble{padding:10px 13px;border-radius:4px 18px 18px 18px;box-shadow:0 2px 8px #102a4c0b}
.community-message.own .community-message-bubble{border-radius:18px 4px 18px 18px;background:#dcecff}
.community-message-author{font-size:10px}.community-message-author time{font-size:9px}.community-message-text{font-size:13px;line-height:1.5}
.community-room-form{padding:10px 13px calc(10px + env(safe-area-inset-bottom,0px));gap:9px}
.community-room-form textarea{min-height:44px;padding:12px 14px;border-radius:22px;background:#f5f8fc;font-size:13px}
.community-room-send{width:44px;height:44px;flex-basis:44px;border-radius:50%;font-size:19px}
@media(min-width:700px){.community-room-panel{border-radius:22px}}

/* Livro com pagina virando e resposta de passos mais clara. */
#bookReader .br-content{transform-style:preserve-3d;backface-visibility:hidden;will-change:transform,opacity;box-shadow:0 4px 20px #4e617a16}
#bookReader .page-turn-out-next{transform-origin:left center;animation:bookPageOutNext .3s ease-in forwards}
#bookReader .page-turn-in-next{transform-origin:right center;animation:bookPageInNext .33s ease-out forwards}
#bookReader .page-turn-out-prev{transform-origin:right center;animation:bookPageOutPrev .3s ease-in forwards}
#bookReader .page-turn-in-prev{transform-origin:left center;animation:bookPageInPrev .33s ease-out forwards}
@keyframes bookPageOutNext{to{transform:perspective(1000px) rotateY(-75deg);opacity:.25;filter:brightness(.88)}}
@keyframes bookPageInNext{from{transform:perspective(1000px) rotateY(75deg);opacity:.25;filter:brightness(.88)}to{transform:perspective(1000px) rotateY(0);opacity:1;filter:brightness(1)}}
@keyframes bookPageOutPrev{to{transform:perspective(1000px) rotateY(75deg);opacity:.25;filter:brightness(.88)}}
@keyframes bookPageInPrev{from{transform:perspective(1000px) rotateY(-75deg);opacity:.25;filter:brightness(.88)}to{transform:perspective(1000px) rotateY(0);opacity:1;filter:brightness(1)}}
#bookReader .stw-task{border-radius:14px;padding:13px;border-color:#d7e4f0;background:#fbfdff}
#bookReader .stw-task.done{background:#eff9f3;border-color:#bce3ca}
#bookReader .stw-note-btn{width:auto;min-width:42px;height:34px;padding:0 10px;border-radius:9px}
#bookReader .stw-note-btn::after{content:' Escrever';font:700 11px var(--font)}
#bookReader .stw-note-preview{background:#f1f7ff}
.stw-modal-panel{border-radius:18px;padding:24px}.stw-modal-actions .btn{min-height:44px}
@media(prefers-reduced-motion:reduce){#bookReader .page-turn-out-next,#bookReader .page-turn-in-next,#bookReader .page-turn-out-prev,#bookReader .page-turn-in-prev{animation:none!important;transform:none!important;opacity:1!important;filter:none!important}.story-progress>span.active i{animation:none;width:100%}}
