/* TLQ Living v71: native mobile layout, story-style posts, accessible writing tools */
.tlq71-challenge-layout{display:flex;flex-direction:column;gap:13px;margin:16px 0 21px;min-width:0}
.tlq71-challenge-action{display:flex;justify-content:flex-end;align-items:center;width:100%}
.tlq71-quick-capture{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:47px;padding:12px 15px;border-radius:15px;background:linear-gradient(120deg,#fdf1ca,#eacb82);border:1px solid #d7b878;color:#1e5b40;font-weight:900;font-size:12px;line-height:1.4;box-shadow:0 4px 0 #b79755,0 12px 23px #25563b15;box-sizing:border-box;max-width:100%}
.tlq71-challenge-layout>.ch40-daily-shortcut{margin:0!important;width:100%;max-width:none;box-sizing:border-box;border-radius:23px!important;min-height:100px}
.tlq71-challenge-layout>.ch40-daily-shortcut small{line-height:1.6!important;max-width:100%;white-space:normal!important}
.tlq71-history-group{border:1px solid #e2e9dd;border-radius:17px;overflow:hidden;background:#f9fcf6}
.tlq71-history-group .tlq68-history-item{border:0;border-radius:0;background:transparent;margin:0;box-shadow:none;padding:12px}
.tlq71-history-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid #e1ece0;padding:9px 12px;background:#f2f7ef}
.tlq71-history-actions a,.tlq71-history-actions button{display:inline-flex;gap:5px;align-items:center;justify-content:center;border:1px solid #d0e0d1;border-radius:10px;background:#fff;color:#256747;font-size:11px;font-weight:850;min-height:37px;padding:8px 12px}
.tlq71-history-actions button{color:#aa534a;border-color:#ecd7d2}
.tlq71-filter-chip{display:flex;align-items:center;gap:7px;flex-wrap:wrap;background:#ebf7ee;border:1px solid #d3e9d8;padding:11px 13px;border-radius:12px;color:#376b50;font-size:11px;font-weight:850;line-height:1.6;margin:0 0 13px}
.tlq71-filter-chip button{margin-left:auto;color:#186c48;text-decoration:underline;font-size:11px;font-weight:850;padding:4px 0}
.tlq71-active-days button{display:grid;place-items:center;min-width:27px;min-height:30px;border-radius:7px;padding:4px;border:1px solid #d5e6d5;background:#f5faf3;color:#66866e;font-size:10px;font-weight:900;cursor:pointer;touch-action:manipulation}
.tlq71-active-days button.done{background:#237e53;border-color:#237e53;color:white}
.tlq71-active-days button.today:not(.done){background:#fff2d8;border-color:#e2c87b;color:#9a763a}
.tlq71-active-days button:focus-visible{outline:2px solid #1d7654;outline-offset:2px}
.tlq71-media-field{margin:22px 0 18px;padding:17px;border:1px solid #d7e7d9;border-radius:16px;background:linear-gradient(145deg,#f2f8ef,#fbfdfa)}
.tlq71-media-label{display:block;font-size:12px;line-height:1.7;color:#366d4e;font-weight:850;margin:0 0 13px}
.tlq71-media-input{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:45px!important;padding:12px 14px!important;border:1px dashed #9cccb0!important;border-radius:11px!important;background:#fff!important;color:#1b7953!important;font-size:12px!important;font-weight:900!important;cursor:pointer;position:relative}
.tlq71-media-input input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important}
.tlq71-media-input span{display:inline-flex;align-items:center;gap:8px}
.tlq71-photo-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 0;min-height:0;align-items:start}
.tlq71-photo-preview:empty{display:none}
.tlq71-photo-preview small{grid-column:1/-1;font-size:11px;color:#84978b}
.tlq71-photo-thumb{position:relative;overflow:hidden;border:1px solid #c9dec8;border-radius:12px;aspect-ratio:4/3;min-width:0;background:#f6f7f1}
.tlq71-photo-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.tlq71-clear-photos{display:inline-flex;align-items:center;justify-content:center;gap:6px;grid-column:1/-1;margin:2px auto 0;font-size:11px;font-weight:850;color:#a1483d;border:1px solid #edd9d4;border-radius:10px;background:#fff;padding:8px 13px;min-height:36px}
.tlq71-photo-help{font-size:10px;line-height:1.7;color:#879b88;margin:10px 0 0}
.tlq71-voice-button{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;border:1px solid #c6e0d1!important;background:#f4faf4!important;color:#20684b!important;border-radius:10px!important;min-width:0;min-height:35px;padding:7px 10px!important;margin:6px 0 8px!important;font-size:10px!important;font-weight:850!important;line-height:1.3!important;vertical-align:top}
.tlq71-voice-button.recording{background:#fff1e9!important;color:#a3423a!important;border-color:#edb3a8!important;animation:tlq71micpulse 1.3s ease-in-out infinite}
@keyframes tlq71micpulse{50%{box-shadow:0 0 0 6px #eb948b19}}
.tlq71-reminder-controls{margin:16px 0;padding:14px;background:#eaf5ec;border:1px solid #d0e5d3;border-radius:14px}
.tlq71-reminder-controls>label:first-child{display:block!important;margin:0 0 9px!important;font-size:12px;font-weight:900;color:#346f50}
.tlq71-reminder-controls input[type=time]{display:block;width:min(100%,220px)!important;font-family:inherit;font-size:16px;min-height:45px;background:#fff;color:#245b40;border:1px solid #c1dbca;border-radius:11px;padding:9px 13px}
.tlq71-remind-toggle{display:flex!important;align-items:flex-start;gap:9px;font-size:11px!important;line-height:1.6!important;margin:12px 0!important;color:#416b52}
.tlq71-remind-toggle input{width:19px;height:19px;flex:0 0 19px;accent-color:#187c55;margin-top:2px}
.tlq71-reminder-controls p{font-size:10px;line-height:1.8;color:#849787;margin:11px 0 0}
.tlq71-reminder-chip{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:13px;padding:10px;background:#e2f2e6;border-radius:11px;font-size:11px;font-weight:900;color:#2b7253}
.tlq71-reminder-chip button{display:inline-flex;align-items:center;gap:6px;border-radius:9px;padding:7px 9px;background:#fff;border:1px solid #b5d9c1;color:#20744c;font-size:10px;font-weight:900;margin-left:auto}
.tlq71-reminder-offer{position:fixed;z-index:100005;bottom:max(86px,calc(env(safe-area-inset-bottom,0px) + 85px));left:50%;transform:translateX(-50%);width:min(92vw,420px);box-sizing:border-box;background:#fff;border:1px solid #bddfcb;border-radius:21px;box-shadow:0 18px 50px #073e2e47;padding:17px;color:#1f5e44}
.tlq71-reminder-offer>button:first-child{float:right;background:#edf6ee;border-radius:50%;width:32px;height:32px;display:grid;place-items:center}
.tlq71-reminder-offer>strong{display:flex;align-items:center;gap:8px;margin:9px 30px 7px 0;font-size:14px}
.tlq71-reminder-offer>p{font-size:12px;color:#789382;line-height:1.7;margin:7px 0 13px}
.tlq71-reminder-offer button[data-tlq71-calendar],.tlq71-reminder-offer button[data-tlq71-notif-permission]{width:100%;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #bcdccb;border-radius:11px;padding:11px;min-height:43px;font-size:11px;font-weight:850;margin-top:7px;background:#f3faf3;color:#246d4e}
.tlq71-reminder-offer button[data-tlq71-calendar]{background:#146a4a;color:#fff;border-color:#146a4a}
.tlq71-feed-gallery{display:grid;gap:4px;width:100%;margin:13px 0 15px;overflow:hidden;border-radius:13px}
.tlq71-feed-gallery.has-two{grid-template-columns:1fr 1fr}
.tlq71-feed-gallery button{border:0;padding:0;background:#e7eee9;display:block;width:100%;min-width:0;max-height:350px;overflow:hidden}
.tlq71-feed-gallery img{display:block;width:100%;height:auto;max-height:350px;object-fit:cover;aspect-ratio:4/3}
.tlq71-feed-gallery.has-one img{aspect-ratio:16/11}
.tlq71-reflection-story{font-size:clamp(13px,3.6vw,16px);line-height:1.9;color:#385b47;margin:15px 0;padding:2px 3px}
.tlq71-reflection-story>p{margin:10px 0;font:inherit;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:inherit}
.tlq71-reflection-story .tlq71-story-label{display:flex;gap:6px;align-items:center;font-size:10px;letter-spacing:.1em;font-weight:900;color:#6e9b7e;margin-bottom:10px}
.tlq71-reflection-followup{border-left:3px solid #71b58c;padding:10px 13px;background:#f2f8f0;border-radius:0 11px 11px 0}
.tlq71-reflection-followup strong{font-weight:900;color:#36664e}
.gema-story.gema-story-reflection{background:#fff;border:1px solid #dee9df;box-shadow:0 11px 32px #10533d12;overflow:hidden}
.gema-story-reflection .gema-story-source-inline{border:0;background:#f1f8f1;border-radius:9px;padding:11px 13px;color:#468060}
.gema-story-reflection .gema-story-actions{border-top:1px solid #e4ece3;margin-top:17px}
.tlq71-lightbox{position:fixed;inset:0;z-index:100010;background:#071e19ed;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:17px;box-sizing:border-box}
.tlq71-lightbox>img{display:block;max-width:100%;max-height:80vh;object-fit:contain;border-radius:8px}
.tlq71-lightbox>button{position:absolute;top:max(20px,env(safe-area-inset-top,15px));right:20px;background:#ffffff22;color:#fff;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid #ffffff66}
.tlq71-lightbox>small{color:#d0e3d1;font-size:12px}
body.tlq71-lightbox-open{overflow:hidden}
@media(max-width:375px){
 .tlq71-quick-capture{font-size:10px;gap:6px;padding:12px;min-height:44px}
 .tlq71-reminder-offer{bottom:87px}
 .tlq71-history-actions{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.tlq71-voice-button.recording{animation:none}}