@font-face{font-family:Inter;src:url(fonts/inter-latin-400-normal.woff2)}
@font-face{font-family:Inter;src:url(fonts/inter-latin-500-normal.woff2);font-weight:500}
@font-face{font-family:Inter;src:url(fonts/inter-latin-600-normal.woff2);font-weight:600}
@font-face{font-family:Inter;src:url(fonts/inter-latin-700-normal.woff2);font-weight:700}
@font-face{font-family:Lora;src:url(fonts/lora-latin-400-normal.woff2)}
@font-face{font-family:Lora;src:url(fonts/lora-latin-500-normal.woff2);font-weight:500}
@font-face{font-family:Lora;src:url(fonts/lora-latin-600-normal.woff2);font-weight:600}
:root{--bg:#f8f5ef;--paper:#fffefa;--ink:#203d3a;--muted:#777c72;--line:#e3e5da;--green:#234c48;--soft:#edf0e8;--copper:#9c6945;--gold:#f8e4a1;--danger:#aa4940;--blue:#325d83;--shadow:0 16px 65px #30402b0a;--speech-font:Inter;--speech-size:27px;--speech-line:1.7;--speech-width:800px;--zoom:1;--bottombar:76px;color-scheme:light}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html{height:100%;overscroll-behavior-y:none}body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font:14px/1.5 Inter,Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--copper);outline-offset:3px}button{border:0}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:600}h1{font-family:Lora,Georgia,serif;font-size:36px;letter-spacing:-1.1px;line-height:1.15}h2{font-family:Lora,Georgia,serif;font-size:26px;letter-spacing:-.65px;line-height:1.25}h3{font-size:16px;line-height:1.4}svg{width:21px;height:21px;stroke-width:1.7;flex-shrink:0}button svg{pointer-events:none}[hidden]{display:none!important}.boot{height:90vh;display:grid;place-content:center;text-align:center;gap:20px}.boot .brand{width:min(320px,80vw);max-width:none}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:700;color:var(--copper);display:flex;align-items:center;gap:8px;margin-bottom:10px}.eyebrow:before{content:'';height:1px;width:21px;background:var(--copper)}.muted{color:var(--muted)}.tiny{font-size:11px}.mono,.timer-value{font-variant-numeric:tabular-nums}.app-shell{max-width:1160px;margin:auto;min-height:100dvh;padding:0 36px calc(var(--bottombar) + 24px)}.topbar{height:104px;display:flex;align-items:center;justify-content:space-between;gap:14px}.brand{display:block;width:272px;max-width:calc(100% - 108px);min-width:0;flex:0 1 272px}.brand-logo{display:block;width:100%;height:auto;object-fit:contain}.brand-logo-dark{display:none}.dark .brand-logo-light{display:none}.dark .brand-logo-dark{display:block}.icon-btn{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:14px;color:var(--ink);background:transparent;flex-shrink:0}.icon-btn:hover{background:var(--soft)}.icon-btn.filled{background:var(--paper);border:1px solid var(--line)}.icon-btn.active,.icon-btn[aria-pressed=true]{background:var(--green);color:var(--paper)}.top-actions{display:flex;gap:6px;align-items:center;flex-shrink:0}.welcome{padding:22px 0 26px;display:flex;justify-content:space-between;align-items:end;gap:18px}.welcome p{margin-top:12px;color:var(--muted);font-size:13px}.btn{min-height:47px;padding:12px 19px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:14px;background:var(--green);color:var(--paper);font-size:13px;font-weight:600;white-space:nowrap}.btn.secondary{color:var(--ink);background:var(--paper);border:1px solid var(--line)}.btn.soft{background:var(--soft);color:var(--green)}.btn.danger{color:var(--danger);background:color-mix(in srgb,var(--danger) 8%,var(--paper))}.btn.full{width:100%}.btn.small{min-height:38px;font-size:12px;padding:8px 12px}.btn.link{background:transparent;color:var(--green);padding:8px 0}.btn:active,.icon-btn:active{transform:scale(.97)}.next-card{position:relative;overflow:hidden;border-radius:23px;padding:25px 27px;background:var(--green);color:#fbfaf1;display:flex;align-items:center;gap:26px;margin:4px 0 28px}.next-card:after{content:'';position:absolute;width:170px;height:170px;right:18px;top:-70px;border:1px solid #ffffff18;border-radius:50%;box-shadow:0 0 0 27px #ffffff05,0 0 0 55px #ffffff04;pointer-events:none}.next-icon{width:50px;height:60px;display:grid;place-items:center;border:1px solid #ffffff30;border-radius:14px;flex-shrink:0}.next-icon svg{width:29px;height:29px}.next-card .eyebrow{color:#dbc4a5;margin-bottom:7px}.next-card .eyebrow:before{background:#dbc4a5}.next-card h3{font-family:Lora,Georgia,serif;font-size:22px;max-width:650px}.next-meta{font-size:12px;color:#d4e1d8;margin-top:9px;display:flex;align-items:center;gap:13px;flex-wrap:wrap}.next-card .icon-btn{background:#ffffff15;color:white;margin-left:auto;z-index:1}.search-row{display:flex;gap:12px;align-items:center;margin-bottom:17px}.searchbox{height:48px;border-radius:14px;border:1px solid var(--line);display:flex;gap:10px;align-items:center;padding:0 14px;background:var(--paper);flex:1;min-width:0}.searchbox svg{color:var(--muted);width:18px}.searchbox input{border:0;outline:none;background:none;color:var(--ink);width:100%;height:100%;font-size:13px}.filters{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 1px 17px}.chip{padding:8px 13px;min-height:38px;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;border-radius:11px;background:transparent;border:1px solid var(--line);color:var(--muted);font-size:12px}.chip.active{background:var(--ink);border-color:var(--ink);color:var(--paper)}.chip svg{width:15px;height:15px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:14px 0}.section-head h3{font-size:12px;letter-spacing:.7px;text-transform:uppercase;font-weight:600}.section-head span{font-size:11px;color:var(--muted)}.speech-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.speech-card{position:relative;background:var(--paper);border:1px solid var(--line);border-radius:19px;min-width:0;transition:transform .18s,border-color .18s;overflow:hidden}.speech-card:hover{transform:translateY(-3px);border-color:var(--copper)}.speech-card-main{background:transparent;color:inherit;text-align:left;width:100%;padding:20px 21px 13px;display:block;min-height:188px}.category-tag{display:inline-flex;align-items:center;gap:7px;font-size:10px;font-weight:600;letter-spacing:.25px;color:var(--muted);margin-bottom:19px;max-width:90%}.category-dot{width:25px;height:25px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:var(--soft);color:var(--green)}.category-dot svg{width:14px;height:14px}.speech-card h3{font-family:Lora,Georgia,serif;font-size:20px;line-height:1.35;letter-spacing:-.5px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;padding-right:5px}.card-snippet{color:var(--muted);font-size:12px;line-height:1.6;margin-top:11px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin:0 20px;padding:11px 0;gap:10px;color:var(--muted);font-size:10px}.card-foot .icon-btn{width:32px;height:32px;border-radius:10px}.card-foot .icon-btn svg{width:16px;height:16px}.card-foot .card-actions{display:flex;gap:3px}.pin-corner{position:absolute;right:14px;top:16px;color:var(--copper);width:15px;height:15px}.empty{padding:42px 22px;background:var(--paper);border:1px dashed var(--line);border-radius:20px;text-align:center;color:var(--muted);grid-column:1/-1}.empty>svg{width:35px;height:35px;color:var(--copper);margin-bottom:14px}.empty h3{color:var(--ink);margin-bottom:8px}.empty p{font-size:12px;max-width:350px;margin:0 auto 19px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);height:var(--bottombar);z-index:25;width:100%;max-width:1160px;background:var(--bg);border-top:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:35px;padding:7px 16px max(7px,env(safe-area-inset-bottom))}.nav-item{display:flex;align-items:center;gap:9px;padding:11px 19px;background:transparent;color:var(--muted);font-size:12px;border-radius:14px}.nav-item.active{color:var(--green);background:var(--soft);font-weight:600}.nav-item svg{width:20px;height:20px}.fab{display:none}.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.category-card{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:22px}.category-card .cat-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.cat-symbol{width:45px;height:45px;border-radius:14px;display:grid;place-items:center;background:var(--soft)}.category-card p{font-size:12px;color:var(--muted);margin-top:5px}.agenda-day{display:flex;gap:19px;margin:0 0 18px;padding:21px;background:var(--paper);border:1px solid var(--line);border-radius:19px}.date-square{width:48px;min-width:48px;text-align:center;color:var(--copper);padding-top:2px}.date-square strong{font-family:Lora;font-size:29px;line-height:1}.date-square span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.7px;margin-top:5px}.agenda-content{min-width:0;flex:1}.agenda-content h3{font-family:Lora;font-size:19px}.agenda-meta{font-size:11px;color:var(--muted);margin:9px 0 15px;display:flex;align-items:center;gap:7px}.agenda-content .row{gap:8px}.agenda-content .row .btn{flex:1}.settings-list{max-width:760px}.setting-card{padding:22px;background:var(--paper);border:1px solid var(--line);border-radius:19px;margin-bottom:15px}.setting-card h3{margin-bottom:6px;display:flex;align-items:center;gap:10px}.setting-card p{font-size:12px;color:var(--muted);line-height:1.7;margin:0 0 15px}.row{display:flex;align-items:center;gap:12px}.wrap{flex-wrap:wrap}.spread{justify-content:space-between}.stack{display:grid;gap:13px}.field{display:grid;gap:7px;min-width:0}.field label{font-size:12px;font-weight:500;color:var(--ink)}.input,.field input,.field select,.field textarea{width:100%;background:var(--paper);border:1px solid var(--line);border-radius:12px;color:var(--ink);padding:12px 13px;min-height:45px;outline-offset:2px}.field textarea{resize:vertical;min-height:100px;line-height:1.65}.field small{font-size:11px;color:var(--muted);line-height:1.6}.field input[type=color]{padding:5px;height:44px}.field input[type=range]{padding:0;accent-color:var(--green)}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}.check-label{display:flex;align-items:center;gap:9px;font-size:12px;line-height:1.5;padding:4px 0}.check-label input{accent-color:var(--green);width:17px;height:17px}.divider{height:1px;background:var(--line);margin:18px 0}.editor-shell{height:100dvh;display:flex;flex-direction:column;max-width:1150px;margin:auto}.editor-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 22px;border-bottom:1px solid var(--line);min-height:70px;flex-shrink:0;background:var(--bg)}.editor-name{display:flex;align-items:center;gap:9px}.editor-name .name{font-family:Lora;font-size:19px}.save-status{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:4px;margin-top:2px}.save-status svg{width:11px;height:11px}.editor-top .btn{min-height:41px;padding:9px 14px;font-size:12px}.editor-info{padding:23px 40px 14px;background:var(--bg);flex-shrink:0}.title-input{display:block;width:100%;background:none;border:0;outline:none;font-family:Lora,Georgia,serif;font-size:28px;line-height:1.25;color:var(--ink);letter-spacing:-.7px;resize:none;overflow:hidden;padding:0;min-height:38px}.subtitle-input{width:100%;background:none;border:0;outline:none;margin-top:9px;color:var(--muted);font-size:12px;padding:0}.editor-meta{display:flex;align-items:center;gap:10px;padding:13px 0 0;flex-wrap:wrap}.meta-button{display:flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--muted);font-size:10px;padding:5px 8px;min-height:30px}.meta-button svg{width:13px;height:13px}.toolbar-wrap{flex-shrink:0;background:var(--paper);border-block:1px solid var(--line);padding:6px 10px}.toolbar{display:flex;gap:3px;align-items:center;overflow-x:auto;scrollbar-width:none;min-height:39px}.tool{width:38px;height:38px;min-width:38px;border-radius:9px;background:transparent;color:var(--ink);font-size:15px;display:inline-flex;align-items:center;justify-content:center}.tool svg{width:18px;height:18px}.tool.active,.tool[aria-pressed=true]{background:var(--soft);color:var(--green)}.tool:hover{background:var(--soft)}.tool.sep{width:1px;min-width:1px;height:22px;background:var(--line);margin:0 5px;border-radius:0}.tool.tool-label{width:auto;padding:0 10px;font-size:11px;gap:5px}.scope-bar{display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:.3px;color:var(--muted);padding:7px 16px;background:var(--bg);flex-shrink:0;gap:10px}.scope-state{display:flex;align-items:center;gap:5px}.scope-state svg{width:12px;height:12px}.scope-bar button{font-size:10px;background:none;color:var(--copper);padding:3px}.editor-scroll{flex:1;min-height:0;overflow:auto;padding:22px 35px 50px;overscroll-behavior:contain}.editor-page{background:var(--paper);border:1px solid var(--line);border-radius:5px;min-height:100%;max-width:850px;margin:auto;box-shadow:var(--shadow)}.editor-status{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;color:var(--muted);padding:10px 22px 12px;flex-shrink:0;border-top:1px solid var(--line);background:var(--bg)}.ql-container{position:relative;font:17px/1.8 Inter,Arial,sans-serif;height:auto}.ql-editor{outline:none;padding:35px 40px 90px;min-height:400px;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4}.ql-editor.ql-blank:before{content:attr(data-placeholder);position:absolute;left:40px;right:40px;font-style:normal;color:var(--muted);pointer-events:none}.ql-editor p,.reader-text p{margin:0 0 .9em}.ql-editor blockquote,.reader-text blockquote{padding:.6em .85em;border-left:3px solid var(--copper);background:var(--soft);margin:.75em 0 1em;border-radius:0 9px 9px 0}.ql-editor .ql-indent-1,.reader-text .ql-indent-1{padding-left:2em}.ql-editor .ql-indent-2,.reader-text .ql-indent-2{padding-left:4em}.ql-editor .ql-indent-3,.reader-text .ql-indent-3{padding-left:6em}.ql-editor .ql-align-center,.reader-text .ql-align-center{text-align:center}.ql-editor .ql-align-right,.reader-text .ql-align-right{text-align:right}.ql-editor .ql-align-justify,.reader-text .ql-align-justify{text-align:justify}.ql-editor h1,.reader-text h1{font-family:inherit;font-size:1.7em;margin:.8em 0 .45em;letter-spacing:-.04em;line-height:1.3}.ql-editor h2,.reader-text h2{font-family:inherit;font-size:1.4em;margin:.8em 0 .45em;line-height:1.35}.ql-editor h3,.reader-text h3{font-family:inherit;font-size:1.14em;margin:.8em 0 .45em}.ql-editor ol{list-style:none;padding-left:1.7em;counter-reset:item}.ql-editor li{list-style-type:none;padding-left:.3em;position:relative;margin:.3em 0}.ql-editor li[data-list=ordered]{counter-increment:item}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(item) "."}.ql-editor li[data-list=bullet]>.ql-ui:before{content:'•'}.ql-editor li[data-list=checked]>.ql-ui:before{content:'☑'}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:'☐'}.ql-editor li>.ql-ui{position:absolute;left:-1.4em;width:1.3em;text-align:center;cursor:pointer;display:inline-block;user-select:none}.ql-editor .ql-speech-question,.reader-text .ql-speech-question{background:var(--soft);border-left:3px solid var(--green);padding:.5em .75em;border-radius:0 10px 10px 0;font-weight:500}.ql-editor .ql-speech-scripture,.reader-text .ql-speech-scripture{border-left:3px solid #a5b7a3;background:var(--soft);padding:.55em .75em;border-radius:0 10px 10px 0}.ql-page-break{border:0;border-top:1px dashed var(--line);margin:35px 0;position:relative;height:20px;display:block;clear:both}.ql-editor .ql-page-break:after{content:'QUEBRA DE PÁGINA';font:9px Inter;color:var(--muted);letter-spacing:1.5px;display:block;position:absolute;left:50%;top:-8px;background:var(--paper);padding:0 15px;transform:translateX(-50%);white-space:nowrap}.ql-clipboard{position:absolute;left:-100000px;top:50%;height:1px;overflow:hidden}.ql-tooltip{display:none}.reader-shell{max-width:1000px;margin:auto;padding-bottom:140px}.reader-top{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:14px 18px 8px}.reader-heading{padding:25px 32px 26px}.reader-heading h1{max-width:800px;font-size:33px}.reader-heading p{font-size:12px;color:var(--muted);margin-top:12px}.reader-heading .row{gap:8px;margin-top:18px}.reader-controls{padding:0 24px 19px;display:grid;gap:10px}.start-reading{width:100%;min-height:58px;border-radius:15px;background:var(--green);color:var(--paper);font-size:15px;display:flex;gap:11px;align-items:center;justify-content:center;font-weight:600}.start-reading svg{width:22px;height:22px}.reader-subtools{display:flex;gap:8px}.reader-subtools .btn{flex:1;font-size:12px;padding:10px}.reader-paper{margin:0 24px;padding:38px 44px 48px;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.reader-text{font-family:var(--speech-font),Arial,sans-serif;font-size:calc(var(--speech-size)*var(--zoom));line-height:var(--speech-line);letter-spacing:-.015em;overflow-wrap:anywhere;max-width:var(--speech-width);margin:auto}.reader-text strong{font-weight:700}.reader-text ul,.reader-text ol{padding-left:1.4em;margin:.4em 0 1.1em}.reader-text li{padding-left:.2em;margin:.3em 0}.reader-text .ql-page-break{height:1px;display:block;margin:2em 0;border-top:1px solid var(--line)}.reader-text mark,.reader-text [style*="background-color"]{box-decoration-break:clone;-webkit-box-decoration-break:clone;border-radius:3px;padding:0 2px}.reader-text .speech-current{background:var(--gold);border-radius:5px}.reader-end{text-align:center;padding:25px 0 0;color:var(--muted);font-size:11px}.timer-dock{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));right:max(16px,calc((100vw - 950px)/2));z-index:30;display:flex;gap:7px;align-items:center}.timer-button{display:flex;align-items:center;justify-content:center;gap:9px;min-width:112px;height:50px;padding:8px 15px;background:var(--green);color:var(--paper);border-radius:16px;box-shadow:0 5px 23px #203b3926;border:1px solid #ffffff15}.timer-button svg{width:15px;height:15px}.timer-value{font-size:18px;font-weight:600;letter-spacing:.5px}.timer-dock .icon-btn{width:48px;height:50px;background:var(--paper);border:1px solid var(--line);box-shadow:0 5px 20px #203b3918}.timer-button.paused{background:var(--paper);color:var(--ink);border-color:var(--line)}.timer-button.over{background:#9a4840;color:white}.focus-exit{position:fixed;right:max(16px,calc((100vw - 950px)/2));bottom:max(16px,env(safe-area-inset-bottom));z-index:31;width:46px;height:46px;min-height:46px;background:var(--paper);border:1px solid var(--line);border-radius:13px;color:var(--ink);padding:0;display:flex;align-items:center;justify-content:center;gap:0}.focus-exit svg{width:21px;height:21px}
/* In focus mode, keep Exit at the bottom-right and the running timer next to it.
   Shift the timer, not the exit control, avoiding overlap without changing reading UI. */
.focus-mode #timerDock:not([hidden]){right:calc(max(16px,calc((100vw - 950px)/2)) + 60px)}.read-progress{position:fixed;top:0;left:0;height:3px;background:var(--copper);width:0;z-index:70;pointer-events:none}.focus-mode .reader-top,.focus-mode .reader-heading,.focus-mode .reader-controls,.focus-mode .reader-end{display:none}.focus-mode .reader-paper{margin:10px;padding-top:30px;border-color:transparent;box-shadow:none}.highlights-off .reader-text [style*="background-color"],.highlights-off .reader-text mark{background:transparent!important}.page-nav{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:20px 24px}.page-nav span{font-size:12px;color:var(--muted)}.page-nav .btn{min-height:43px}.modal-backdrop{position:fixed;inset:0;background:#14272466;backdrop-filter:blur(4px);z-index:80;display:flex;align-items:center;justify-content:center;padding:22px;animation:fade .15s}.modal{background:var(--bg);border:1px solid var(--line);border-radius:24px;max-width:530px;width:100%;max-height:90dvh;display:flex;flex-direction:column;box-shadow:0 20px 100px #152c3b2b;animation:rise .2s;overflow:hidden}.modal.wide{max-width:690px}.modal-head{padding:21px 23px 12px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-shrink:0}.modal-head h2{font-size:24px}.modal-body{padding:4px 23px 23px;overflow:auto;min-height:0}.modal-footer{padding:14px 23px 19px;border-top:1px solid var(--line);display:flex;gap:10px;flex-shrink:0}.modal-footer .btn{flex:1}.modal p.help{font-size:12px;line-height:1.75;color:var(--muted);margin:0 0 18px}.sheet-options{display:grid;gap:7px}.sheet-option{display:flex;align-items:center;gap:12px;padding:14px;text-align:left;background:var(--paper);border:1px solid var(--line);color:var(--ink);border-radius:13px;min-height:55px}.sheet-option>svg{color:var(--green);width:19px}.sheet-option>span{flex:1}.sheet-option strong{font-size:12px;font-weight:600;display:block}.sheet-option small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.sheet-option.danger{color:var(--danger)}.sheet-option.danger>svg{color:var(--danger)}.format-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.format-cell{min-height:65px;border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:var(--paper);color:var(--ink);font-size:10px}.format-cell svg{width:20px;height:20px}.format-cell.active{background:var(--soft);border-color:var(--green)}.swatches{display:flex;gap:9px;flex-wrap:wrap}.swatch{width:34px;height:34px;border-radius:50%;border:2px solid var(--paper);box-shadow:0 0 0 1px var(--line);background:var(--swatch)}.swatch.active{box-shadow:0 0 0 2px var(--green)}.icon-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.icon-grid .icon-btn{width:100%;background:var(--paper);border:1px solid var(--line);height:43px;border-radius:12px}.icon-grid .icon-btn.active{background:var(--green);color:var(--paper)}.review-card{padding:14px;background:var(--paper);border:1px solid var(--line);border-radius:13px;margin:9px 0}.review-context{font-size:12px;line-height:1.8;overflow-wrap:anywhere;margin-bottom:8px}.review-context del{color:var(--danger);background:#c9583910;text-decoration:none;border-bottom:2px solid #c9583980}.review-context ins{color:var(--green);background:var(--soft);text-decoration:none;padding:0 3px}.review-message{font-size:10px;color:var(--muted);margin-bottom:9px}.suggestion-row{display:flex;gap:7px;flex-wrap:wrap}.suggestion{border:1px solid var(--line);padding:5px 9px;border-radius:8px;background:var(--soft);color:var(--green);font-size:11px}.review-header{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:var(--muted);margin:16px 0 8px}.progress-note{padding:12px 14px;background:var(--soft);border-radius:12px;font-size:12px;color:var(--green);display:flex;gap:9px;align-items:center;margin:10px 0}.progress-note svg{width:17px}.history-item{padding:13px 0;border-bottom:1px solid var(--line);display:flex;gap:13px;align-items:center}.history-item>div{flex:1}.history-item strong{font-size:12px;display:block}.history-item small{color:var(--muted);font-size:10px}.permission-note{font-size:11px;color:var(--copper);background:var(--paper);border:1px solid var(--line);padding:12px;border-radius:11px;margin-top:12px}.badge{display:inline-flex;padding:4px 7px;background:var(--soft);color:var(--green);border-radius:7px;font-size:9px;letter-spacing:.3px}.settings-section-label{color:var(--muted);font-size:10px;letter-spacing:1px;text-transform:uppercase;margin:20px 0 12px}.voice-controls{display:flex;align-items:center;gap:8px;margin-top:10px;flex-wrap:wrap}.voice-controls .btn{min-height:40px}.range-line{display:flex;justify-content:space-between;align-items:center;gap:10px}.range-line output{font-size:12px;color:var(--green);font-weight:600}.meta-facts{display:flex;gap:20px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.meta-facts div{font-size:10px;color:var(--muted)}.meta-facts strong{display:block;color:var(--ink);font-size:16px;font-family:Lora;margin-bottom:4px}.checkbox-list{display:grid;gap:6px}.notice{font-size:11px;line-height:1.75;color:var(--muted)}#toast{position:fixed;bottom:calc(var(--bottombar) + 12px);left:50%;transform:translate(-50%,14px);background:var(--ink);color:var(--paper);padding:12px 19px;border-radius:14px;font-size:12px;z-index:150;box-shadow:0 5px 25px #162d3925;max-width:min(90%,500px);text-align:center;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}#toast.show{opacity:1;transform:translate(-50%,0)}body.editor-open #toast,body.reader-open #toast{bottom:85px}.dark{--bg:#162121;--paper:#1d2b2b;--ink:#e4e9dd;--muted:#a3b2a8;--line:#344541;--green:#b6d4ba;--soft:#2c4039;--copper:#dcaf82;--gold:#72622d;--danger:#f29b8e;--shadow:0 15px 60px #0000000d;color-scheme:dark}.dark .btn:not(.secondary):not(.soft):not(.danger):not(.link),.dark .start-reading,.dark .brand-symbol,.dark .timer-button:not(.paused):not(.over){color:#18302b}.dark .next-card{background:#294b41}.dark .next-card .icon-btn{color:white}.dark .chip.active,.dark .icon-btn.active,.dark .format-cell.active,.dark .icon-grid .active{color:#18302b;background:var(--green)}.dark .ql-editor{color:var(--ink)}@keyframes fade{from{opacity:0}to{opacity:1}}@keyframes rise{from{transform:translateY(12px)}to{transform:translateY(0)}}
@media(min-width:1000px){.app-shell{padding-top:6px}.welcome{padding-top:31px;padding-bottom:31px}.next-card{margin-top:7px}.reader-paper{padding:45px 60px}.reader-heading{padding-top:35px}.editor-info{padding-top:26px}.editor-page{min-height:calc(100dvh - 330px)}}
@media(max-width:750px){h1{font-size:31px}.app-shell{padding-inline:22px}.topbar{height:82px}.welcome{padding-top:19px}.welcome .btn{display:none}.welcome p{font-size:12px}.speech-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.speech-card-main{padding:18px;min-height:190px}.speech-card h3{font-size:19px}.card-foot{margin-inline:16px;gap:5px}.next-card{padding:23px;gap:15px}.next-card h3{font-size:19px}.next-icon{width:43px;height:52px}.bottom-nav{gap:12px;justify-content:space-around}.nav-item{padding:9px 12px;flex-direction:column;gap:4px;font-size:9px;min-width:59px}.nav-item svg{height:21px;width:21px}.fab{position:fixed;display:grid;place-items:center;right:23px;bottom:calc(var(--bottombar) + 17px);z-index:26;height:57px;width:57px;border-radius:19px;background:var(--green);color:var(--paper);box-shadow:0 6px 24px #2b483533}.fab svg{width:25px;height:25px}.editor-top{padding:10px 12px;min-height:66px}.editor-info{padding:17px 23px 13px}.title-input{font-size:26px}.editor-scroll{padding:15px 15px 30px}.ql-editor{padding:24px 23px 80px;font-size:17px}.ql-editor.ql-blank:before{left:23px;right:23px}.editor-status{padding:9px 15px;font-size:9px}.editor-name .name{font-size:17px}.reader-top{padding:12px 13px 3px}.reader-heading{padding:22px 22px 24px}.reader-heading h1{font-size:29px}.reader-controls{padding-inline:17px}.reader-paper{margin-inline:10px;padding:27px 20px 38px;border-radius:14px}.reader-subtools .btn{font-size:11px;gap:6px}.reader-subtools .btn svg{width:16px}.page-nav{margin-inline:14px}.reader-text{line-height:var(--speech-line)}.modal-backdrop{padding:0;align-items:flex-end}.modal{border-radius:24px 24px 0 0;max-height:92dvh;max-width:100%;padding-bottom:env(safe-area-inset-bottom)}.modal-head{padding:19px 21px 10px}.modal-body{padding-inline:21px}.modal-footer{padding:13px 21px 20px}.modal-head h2{font-size:23px}.icon-grid{grid-template-columns:repeat(6,1fr)}.setting-card{padding:20px}.next-meta{gap:8px;font-size:10px}.category-tag{font-size:9px;gap:6px;margin-bottom:15px}}
@media(max-width:420px){.app-shell{padding-inline:18px}.speech-grid{grid-template-columns:1fr}.speech-card-main{min-height:0;padding:19px 20px 15px}.speech-card h3{font-size:22px;max-width:290px;-webkit-line-clamp:2}.category-tag{margin-bottom:15px;font-size:10px}.card-snippet{-webkit-line-clamp:2;font-size:12px;margin-top:10px}.card-foot{margin-inline:20px;font-size:10px;padding:9px 0}.next-icon{display:none}.next-card{padding:23px 21px;gap:11px}.next-card h3{font-size:21px}.next-card .icon-btn{width:38px;min-width:38px;height:38px}.next-meta{font-size:11px;gap:8px}.welcome h1{font-size:32px}.welcome p{font-size:12px;max-width:270px;line-height:1.65}.search-row{gap:8px}.topbar{height:96px}.category-grid{gap:10px}.category-card{padding:17px 15px}.category-card h3{font-size:14px}.category-card .cat-head .icon-btn{width:30px;height:30px}.category-card .cat-head{margin-bottom:13px}.reader-heading h1{font-size:28px}.reader-text{font-size:calc(var(--speech-size)*var(--zoom))}.reader-paper{padding:24px 18px 35px}.reader-heading .row{flex-wrap:wrap}.title-input{font-size:24px}.editor-top .btn span{display:none}.editor-top .btn{width:43px;padding:0}.editor-info{padding-inline:20px}.editor-scroll{padding:10px 8px 25px}.ql-editor{padding:25px 17px 80px}.ql-editor.ql-blank:before{left:17px;right:17px}.editor-page{border-radius:4px}.scope-bar{padding-inline:13px;font-size:9px}.format-grid{gap:7px}.format-cell{font-size:9px}.two-col{gap:11px}.agenda-day{padding:18px 14px;gap:12px}.date-square{min-width:42px;width:42px}.agenda-content h3{font-size:18px}.agenda-content .btn{font-size:10px;padding:9px}.bottom-nav{padding-inline:8px;gap:4px}.nav-item{padding:8px 10px;min-width:58px}}
.reader-text .is-speaking{outline:2px solid var(--copper);outline-offset:8px;border-radius:5px}.ql-editor li.ql-ordinal-true>.ql-ui:before{content:counter(item) 'º'}.reader-text li.ql-ordinal-true::marker{content:counter(list-item) 'º '}.reader-text[data-font-override=true] [style*="font-family"]{font-family:inherit!important}.suggestion.active{border-color:var(--green);font-weight:600}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.reader-text{white-space:pre-wrap}.reader-text li[data-list=unchecked]::marker{content:'☐  '}.reader-text li[data-list=checked]::marker{content:'☑  '}

.reader-text{font-size:var(--speech-size);zoom:var(--zoom)}

.editor-smart-actions{display:flex;gap:8px;padding:8px 16px;flex-shrink:0;background:var(--paper);border-bottom:1px solid var(--line)}.editor-smart-actions .btn{flex:1;min-width:0;min-height:38px;font-size:12px;line-height:1.25;white-space:normal;padding:8px 10px}.editor-smart-actions .btn svg{width:16px;height:16px;flex-shrink:0}

.incoming-heading{margin:8px 0 20px}.incoming-heading h3{font-family:Lora,Georgia,serif;font-size:24px;line-height:1.3;margin:0 0 9px;overflow-wrap:anywhere}.incoming-heading p{color:var(--muted);line-height:1.6;margin:0 0 12px}.incoming-paper{padding:19px;border:1px solid var(--line);border-radius:18px;background:var(--paper)}.incoming-document.reader-text{font-size:18px;line-height:1.7;overflow-wrap:anywhere}.incoming-document blockquote{margin:1em 0;padding:.6em .8em;border-left:3px solid #638375;background:var(--soft)}.incoming-document hr{border:0;border-top:1px solid var(--line);margin:1.5em 0}

/* Tipos de preparação e leitura das falas identificadas no texto completo. */
.type-filters{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:14px;background:var(--paper);margin:0 0 15px;max-width:360px}.type-filter{flex:1;padding:9px 13px;border-radius:10px;background:transparent;color:var(--muted);font-weight:500;font-size:12px}.type-filter.active{background:var(--green);color:var(--paper)}.dark .type-filter.active{color:#18302b}.card-labels{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:15px}.card-labels .category-tag{margin:0}.item-type{display:inline-flex;align-items:center;gap:5px;vertical-align:middle;font:600 10px/1.4 Inter,sans-serif;letter-spacing:.2px;padding:5px 8px;border:1px solid var(--line);border-radius:7px;color:var(--green);background:var(--soft)}.item-type svg{width:13px;height:13px}.part-type{color:var(--copper)}.editor-info>.item-type{margin-bottom:10px}.card-participants{display:block;margin-top:13px;font-size:10px;color:var(--copper)}.sheet-option>.person-avatar{display:grid;place-items:center;flex:0 0 32px;width:32px;min-width:32px;max-width:32px;height:32px;border-radius:50%;background:var(--soft)}.person-avatar svg{display:block;width:18px;height:18px;flex:none}.sheet-option>.person-avatar+span{min-width:0;overflow-wrap:anywhere}.sheet-option>.person-avatar~svg{flex:0 0 19px}.reader-type-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:15px}.reader-type-row .eyebrow{margin:0}.reader-identity{margin:0 24px 20px;padding:12px 14px;border:1px solid var(--line);border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;background:var(--paper)}.reader-identity>span{overflow-wrap:anywhere;min-width:0;flex:1}.reader-identity-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}.reader-only-mine{width:36px;min-width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--green)}.reader-only-mine svg{width:18px;height:18px}.reader-only-mine[aria-pressed=true]{background:var(--green);color:var(--paper);border-color:var(--green)}.reader-only-mine:disabled{opacity:.4;cursor:default}.dark .reader-only-mine[aria-pressed=true]{color:#18302b}.reader-filter-empty{padding:18px 0;text-align:center;font:14px/1.7 Inter,Arial,sans-serif;color:var(--muted)}.reader-filter-empty>svg{width:28px;height:28px;margin-bottom:10px}.reader-filter-empty p{margin-bottom:10px}.reader-filter-empty small{display:block;font-size:12px}.reader-identity .btn{font-size:10px;flex-shrink:0;padding:8px}.reading-turn{margin:0 0 1.4em;border-left:3px solid var(--line);padding:0 0 0 .65em;white-space:normal}.reading-turn.mine{background:var(--soft);border-left-color:var(--green);border-radius:0 12px 12px 0;padding:.65em .65em .1em}.reading-turn .speaker-label{font:600 13px/1.6 Inter,Arial,sans-serif;letter-spacing:.1px;margin-bottom:1em;color:var(--copper);display:flex;gap:9px;align-items:center;flex-wrap:wrap}.speaker-label>span{font-size:9px;letter-spacing:.3px;background:var(--green);color:var(--paper);padding:2px 6px;border-radius:5px}.dark .speaker-label>span{color:#18302b}.reading-turn.unassigned .speaker-label{color:var(--muted)}.reading-turn-body{white-space:pre-wrap}.incoming-heading>.item-type{margin-bottom:12px}.incoming-identity{margin-bottom:18px}.incoming-document .speaker-label{font-size:12px}.agenda-content>.item-type{margin:6px 0}.reader-text .reading-turn.is-speaking{outline-offset:4px}
.editor-top .editor-save{width:auto;padding:9px 13px;min-height:40px;font-size:12px;gap:7px}.editor-top .editor-save span{display:inline}.part-editor .editor-info{padding-block:12px 10px}.part-editor .editor-info>.item-type{margin-bottom:6px}.part-editor .title-input{font-size:24px}.part-editor .editor-meta{gap:6px;padding-top:10px}.part-assignment-bar{flex-shrink:0;border-block:1px solid var(--line);background:var(--paper);padding:6px 15px 8px}.assignment-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted);min-height:29px}.assignment-heading>span{min-width:0;overflow-wrap:anywhere}.assignment-heading .btn{font-size:10px;min-height:27px;padding:3px 0;flex-shrink:0;gap:5px}.assignment-heading .btn svg{width:15px;height:15px}.speaker-chips{display:flex;gap:7px;overflow-x:auto;padding:3px 1px;scrollbar-width:thin;align-items:center;min-height:36px}.speaker-chip{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;white-space:nowrap;min-height:31px;padding:5px 10px;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:9px;font-size:11px}.speaker-chip:disabled{opacity:.65}.speaker-chip.active{border-color:var(--speaker-accent);box-shadow:inset 0 0 0 1px var(--speaker-accent)}.speaker-chip small{font-size:8px;color:var(--muted)}.speaker-color{height:8px;width:8px;flex-shrink:0;border-radius:50%;background:var(--speaker-accent)}.clear-speaker{color:var(--muted);border-style:dashed}.part-editor .ql-editor [data-speaker]{background:var(--speaker-tint);border-bottom:2px solid var(--speaker-accent);border-radius:3px;padding-block:1px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.dark .part-editor .ql-editor [data-speaker]{background:transparent;border-bottom-width:3px}.tool[data-short-tool]{display:none}
@media(max-width:750px){.reader-identity{margin-inline:17px}.part-editor .editor-info{padding-inline:18px}.part-assignment-bar{padding-inline:13px}}
@media(max-width:420px){.reader-identity{gap:8px;padding-inline:12px}.part-editor .title-input{font-size:22px}.editor-top{padding-inline:10px}.editor-name{gap:6px;min-width:0}.editor-name>div{min-width:0}.editor-top .editor-name .name{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-top .top-actions{flex-shrink:0;gap:4px}.editor-top .editor-save{width:auto}.editor-top .editor-save span{display:inline}.part-assignment-bar{padding-inline:12px}.part-editor .editor-meta{gap:5px}.part-editor .editor-meta .meta-button{padding-inline:6px}.part-editor .editor-info>.item-type{display:none}}
@media(max-height:600px){.part-editor .editor-info{max-height:56px;overflow-y:auto;padding-block:7px}.part-editor .editor-smart-actions{display:none}.part-editor .tool[data-short-tool]{display:inline-flex}.part-editor .scope-bar{padding-block:3px}.part-editor .editor-status{padding-block:5px}.part-editor .part-assignment-bar{padding-block:3px}.part-editor .editor-scroll{padding-block:5px}}

.empty .btn{max-width:100%;white-space:normal}.empty .btn svg{width:18px;height:18px;margin:0}

/* Scale both supplied header wordmarks inside the unchanged brand area. */
.topbar .brand-logo{width:75%}
/* Invisible scroll tail: clear the fixed 57px button and its 17px gap. */
@media(max-width:750px){.app-shell.has-fab::after{content:"";display:block;height:calc(74px + env(safe-area-inset-bottom,0px));pointer-events:none}}

/* Tablet presentation: one balanced control row above the reading surface. */
@media(min-width:751px) and (min-height:500px){
 .reader-controls{grid-template-columns:minmax(330px,1.15fr) minmax(0,2fr);align-items:stretch;gap:10px}
 .reader-controls .start-reading{min-height:56px;padding:12px 16px}
 .reader-controls .reader-subtools{min-width:0;align-items:stretch}
 .reader-controls .reader-subtools .btn{min-width:0;min-height:56px;padding:12px 14px;font-size:13px;flex:1 1 0}
 .reader-controls .reader-subtools .icon-btn{width:52px;height:auto;min-height:56px;align-self:stretch}
}

@media(min-width:751px) and (min-height:500px){
 .home-filter-row{display:flex;align-items:center;gap:16px;margin-bottom:15px}
 .home-filter-row .type-filters{flex:0 0 360px;margin:0}
 .home-filter-row .filters{flex:1;min-width:0;padding:2px 1px}
 .home-filter-row .filters .chip{flex-shrink:0}
}

.reader-primary-timer{display:flex;align-items:stretch;gap:8px;min-width:0}
.reader-primary-timer .start-reading{flex:1;min-width:0}
.start-reading #startTimerIcon{display:flex;align-items:center;flex-shrink:0}
.reader-primary-timer .timer-stop{width:52px;min-width:52px;height:auto;align-self:stretch;border-radius:15px}
.timer-stop{color:var(--danger)}
.timer-stop svg{width:17px;height:17px;fill:currentColor;stroke-width:1.4}
@media(min-width:751px) and (min-height:500px){
 .reader-controls .reader-subtools [data-action="speak"]{flex:1.25 1 0}
 .reader-controls .reader-subtools [data-action="reader-settings"]{flex:.85 1 0}
}
.timer-dock .dock-timer-toggle{display:none}

/* Phone home: type tabs at the left, category/pinned picker at the right. */
.home-category-picker{display:none}
@media(max-width:750px){
 .home-filter-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
 .home-filter-row .type-filters{flex:0 0 auto;max-width:none;margin:0}
 .home-filter-row .type-filter{padding:9px 8px;white-space:nowrap}
 .home-filter-row .filters{display:none}
 .home-category-picker{position:relative;display:flex;align-items:center;gap:7px;flex:0 1 auto;min-width:0;max-width:45%;min-height:46px;padding:8px 11px;border:1px solid var(--line);border-radius:11px;background:var(--paper);color:var(--muted);font-size:12px}
 .home-category-picker svg{width:15px;height:15px}
 .home-category-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .home-category-picker select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
 .home-category-picker.active{background:var(--soft);border-color:var(--green);color:var(--green)}
 .home-category-picker:focus-within{outline:3px solid var(--copper);outline-offset:3px}
}

/* Phone timer: time above the actions, with a softly translucent surface. */
@media(max-width:750px),(max-height:499px){
 .timer-dock{display:grid;grid-template-columns:repeat(2,44px);gap:4px;padding:6px;border:1px solid color-mix(in srgb,var(--line) 85%,transparent);border-radius:18px;background:color-mix(in srgb,var(--paper) 88%,transparent);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);box-shadow:0 5px 23px #203b3920}
 .timer-dock[data-session="true"][data-running="false"]{grid-template-columns:repeat(3,44px)}
 .timer-dock[data-running="true"] #dockTimerStop{display:none}
 .timer-dock .timer-button{grid-column:1/-1;min-width:0;width:100%;height:36px;padding:4px 8px;border:0;border-radius:11px;box-shadow:none;background:transparent;color:var(--ink)}
 .timer-dock .timer-button.paused{background:transparent;color:var(--ink)}
 .dark .timer-dock .timer-button:not(.over){color:var(--ink)}
 .timer-dock .timer-button.over{background:color-mix(in srgb,var(--danger) 12%,transparent);color:var(--danger)}
 .timer-dock #timerIcon{display:none}
 .timer-dock .icon-btn{width:44px;height:44px;border-color:transparent;border-radius:12px;background:transparent;box-shadow:none}
 .timer-dock .dock-timer-toggle{display:inline-grid;color:var(--green)}
 .timer-dock .icon-btn:hover{background:color-mix(in srgb,var(--soft) 75%,transparent)}
}

/* Content versions reuse the existing metadata buttons and modal sheets. */
.content-version-selector{max-width:210px;min-width:0}
.content-version-selector span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.content-version-selector svg{flex-shrink:0}
.reader-heading .reader-meta{flex-wrap:wrap}
.version-list{display:grid;gap:8px}
.version-list-row{display:flex;align-items:center;gap:5px;min-width:0}
.version-choice{flex:1;min-width:0}
.version-choice>span{min-width:0}
.version-choice strong{overflow-wrap:anywhere}
.version-choice small{overflow-wrap:anywhere}
.version-choice em{font-style:normal;font-size:9px;color:var(--green);margin-left:8px}
.version-choice.selected{border-color:var(--green);background:var(--soft)}
.version-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.version-compare-pane{min-width:0;border:1px solid var(--line);border-radius:14px;padding:15px;background:var(--paper)}
.version-compare-pane h3{overflow-wrap:anywhere}
.version-preview{font:14px/1.7 Inter,Arial,sans-serif;margin-top:16px;overflow-wrap:anywhere}
.version-preview .speaker-label{font-size:11px}
@media(max-width:600px){.version-compare-grid{grid-template-columns:1fr}.content-version-selector{max-width:180px}}

.share-version-choice{cursor:pointer}
.share-version-choice input{width:18px;height:18px;flex:0 0 18px;accent-color:var(--green);margin:0}
.incoming-version{margin-bottom:18px}

.share-format-action{min-width:0}
@media(max-width:420px){.share-format-action{padding-inline:10px;font-size:12px;gap:6px}.share-format-action svg{width:17px;height:17px}}

/* SePrepare 1.0.18 - only requested layout corrections; all header fields remain accessible. */
/* Tablet - category/fixed selector on opposite end of the type selector. */
@media (min-width:751px) and (min-height:560px){
 .home-filter-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}
 .home-filter-row .type-filters{flex:0 1 360px;margin:0;min-width:0}
 .home-filter-row .filters{display:none}
 .home-filter-row .home-category-picker{position:relative;display:flex;align-items:center;gap:7px;flex:0 1 auto;min-width:0;max-width:42%;min-height:46px;padding:8px 12px;border:1px solid var(--line);border-radius:11px;background:var(--paper);color:var(--muted);font-size:12px}
 .home-filter-row .home-category-picker svg{width:15px;height:15px}
 .home-filter-row .home-category-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .home-filter-row .home-category-picker select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
 .home-filter-row .home-category-picker.active{background:var(--soft);border-color:var(--green);color:var(--green)}
 .home-filter-row .home-category-picker:focus-within{outline:3px solid var(--copper);outline-offset:3px}
 /* Move only tablet review/analysis to the toolbar, directly after Paste. */
 .editor-shell .editor-smart-actions{display:none}
 .editor-shell .toolbar .tool[data-short-tool]{display:inline-flex;flex:0 0 auto;width:auto;min-width:0;padding:0 8px;gap:5px;white-space:nowrap;font-size:11px;font-weight:600}
 .editor-shell .toolbar .tool[data-short-tool]::after{display:inline;white-space:nowrap}
 .editor-shell .toolbar .tool[data-action="review"]::after{content:"Revisar"}
 .editor-shell .toolbar .tool[data-action="auto-format"]::after{content:"Analisar"}
 .editor-shell .toolbar{gap:2px}
 .editor-shell .toolbar .tool.sep{margin-inline:3px}
}
@media (min-width:960px) and (min-height:560px){
 .editor-shell .toolbar .tool[data-action="review"]::after{content:"Revisar português"}
 .editor-shell .toolbar .tool[data-action="auto-format"]::after{content:"Analisar e formatar"}
}
/* Landscape phones + tablets: resize whitespace, not functionality.
   Header title, subtitle, version, category, duration, schedule, save indicator,
   and formatting buttons remain visible and usable without an expansion control. */
@media (orientation:landscape) and (max-height:820px){
 .editor-shell{height:100dvh;min-height:0}
 .editor-shell .editor-top{min-height:46px;padding:4px 12px;gap:8px}
 .editor-shell .editor-top .icon-btn{width:36px;height:36px;border-radius:9px}
 .editor-shell .editor-name{gap:6px;min-width:0}
 .editor-shell .editor-name>div{min-width:0}
 .editor-shell .editor-name .name{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .editor-shell .save-status{display:flex;margin-top:0;font-size:9px}
 .editor-shell .editor-top .editor-save{min-height:35px;padding:5px 10px}
 .editor-shell .editor-info{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'title type' 'subtitle subtitle' 'meta meta';align-items:center;column-gap:12px;row-gap:4px;padding:6px 13px 7px;min-height:0;max-height:none;overflow:visible}
 .editor-shell .editor-info>.item-type{grid-area:type;justify-self:end;display:inline-flex;margin:0;padding:4px 7px}
 .editor-shell .title-input{grid-area:title;font-size:20px!important;line-height:1.25;min-height:25px;max-height:52px;overflow-y:auto;margin:0;letter-spacing:-.3px;text-align:left}
 .editor-shell .subtitle-input{grid-area:subtitle;width:100%;min-width:0;font-size:11px;margin:0;min-height:29px}
 .editor-shell .editor-meta{grid-area:meta;align-items:center;flex-wrap:nowrap;min-width:0;gap:6px;padding:0;overflow-x:auto;scrollbar-width:thin}
 .editor-shell .editor-meta>*{flex-shrink:0}
 .editor-shell .editor-meta .meta-button{min-height:29px;padding:4px 6px;font-size:10px}
 .editor-shell .toolbar-wrap{padding:2px 8px}
 .editor-shell .toolbar{min-height:33px}
 .editor-shell .toolbar .tool{width:33px;min-width:33px;height:33px}
 .editor-shell .toolbar .tool.sep{width:1px;min-width:1px;flex:0 0 1px;height:18px;margin-inline:2px;background:var(--line)}
 .editor-shell .toolbar .tool svg{width:17px;height:17px}
 .editor-shell .scope-bar{padding:2px 12px;min-height:20px}
 .editor-shell .editor-status{padding:4px 12px;min-height:29px}
 .editor-shell .editor-scroll{flex:1;min-height:0;padding:5px 8px 10px}
 .editor-shell .editor-page{min-height:100%}
 .editor-shell .ql-editor{min-height:100%;padding-top:12px;padding-bottom:35px}
 .editor-shell .editor-smart-actions{padding:3px 10px;gap:6px}
 .editor-shell .editor-smart-actions .btn{min-height:32px;padding:5px 8px}
 .editor-shell.part-editor .editor-info{max-height:none;overflow:visible;padding:6px 13px 7px}
 .editor-shell.part-editor .editor-info>.item-type{display:inline-flex}
 .editor-shell.part-editor .part-assignment-bar{padding-block:2px}
 .editor-shell.part-editor .assignment-heading{min-height:23px}
 .editor-shell.part-editor .speaker-chips{min-height:32px;padding-block:1px}
}
/* Mobile landscape: keep the original actions, place title and tag on the same line,
   and when the user is actively editing the text, hide the metadata area to free space. */
@media (orientation:landscape) and (max-height:500px) and (max-width:750px){
 .editor-shell .toolbar .tool.sep{width:1px;min-width:1px;flex:0 0 1px;height:18px;margin-inline:2px;background:var(--line)}
 .editor-shell .editor-info{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'title type' 'subtitle subtitle' 'meta meta';align-items:center;gap:3px 8px;padding:4px 9px 5px}
 .editor-shell .editor-info>.item-type{grid-area:type;justify-self:end;display:inline-flex;margin:0;padding:4px 7px}
 .editor-shell .title-input{grid-area:title;font-size:18px!important;line-height:1.2;text-align:left;min-height:22px;max-height:44px}
 .editor-shell .subtitle-input{grid-area:subtitle;margin-top:0;font-size:10px;min-height:20px}
 .editor-shell .editor-meta{grid-area:meta;gap:4px;padding-top:2px;overflow-x:auto;flex-wrap:nowrap}
 .editor-shell .editor-meta .meta-button{font-size:9px}
 .editor-shell:not(.part-editor) .editor-smart-actions{display:flex}
 .editor-shell:not(.part-editor) .toolbar .tool[data-short-tool]{display:none}
 .editor-shell .editor-top .editor-save span{display:inline}
}

/* SePrepare 1.0.20: comportamento de rolagem no editor (celular e tablet,
   retrato e paisagem). Nenhum outro layout do celular em pé é alterado.
   O estado aparece após rolar para baixo e só se desfaz com uma nova puxada no topo. */
@media(max-width:1099px) and (min-height:501px),(max-width:750px){
.editor-shell.editor-scrolled .editor-top,
.editor-shell.editor-scrolled .editor-info,
.editor-shell.editor-scrolled .scope-bar,
.editor-shell.editor-scrolled .editor-status{display:none}
.editor-shell.editor-scrolled .editor-scroll{padding-top:4px;padding-bottom:12px}
}
/* Category colors and trash actions stay scoped to these existing surfaces. */
.category-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.sheet-option>.category-icon{flex:0 0 23px;width:23px;height:23px}
.sheet-option>.category-icon svg{width:23px;height:23px}
.category-preview{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:13px;background:var(--paper)}
.category-preview-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:var(--soft)}
.category-preview-icon svg{width:22px;height:22px}
.category-preview>div{min-width:0}
.category-preview strong{display:block;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.category-preview small{display:block;margin-top:2px;font-size:10px;color:var(--muted)}
.category-icon-grid .icon-btn{color:var(--category-icon-color)}
.category-icon-grid .icon-btn.active{background:var(--soft);color:var(--category-icon-color);border-color:var(--category-icon-color);box-shadow:inset 0 0 0 1px var(--category-icon-color)}
.category-color-palette{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.category-color-choice{display:grid;place-items:center;position:relative;flex:0 0 36px;width:36px;height:40px;background:transparent;border-radius:9px;color:white}
.category-color-choice:before{content:"";position:absolute;inset:5px 3px;border-radius:50%;background:var(--swatch);border:1px solid #0000000d}
.category-color-choice[aria-pressed=true]:before{box-shadow:0 0 0 2px var(--paper),0 0 0 3px var(--green)}
.category-color-choice svg{position:relative;width:16px;height:16px;opacity:0;stroke-width:2.8}
.category-color-choice[aria-pressed=true] svg{opacity:1}
.field .category-custom-color{display:flex;align-items:center;gap:11px;padding:9px 11px;border:1px solid var(--line);border-radius:12px;background:var(--paper);cursor:pointer}
.field .category-custom-color input[type=color]{flex:0 0 42px;width:42px;min-height:38px;height:38px;padding:3px;border-radius:9px;cursor:pointer}
.category-custom-color>span{flex:1;min-width:0;font-size:12px}
.category-custom-color small{display:block;margin-top:2px;font-size:10px;font-variant-numeric:tabular-nums}
.category-custom-color>svg{width:17px;height:17px;color:var(--muted)}
.trash-list{display:grid;gap:10px;margin-top:18px}
.trash-item{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}
.trash-item-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:var(--soft);color:var(--green)}
.trash-item-icon svg{width:19px;height:19px}
.trash-item-content{min-width:0}
.trash-item-content>strong{display:block;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.trash-item-content>small{display:block;margin-top:4px;font-size:10px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.trash-restore{display:inline-flex;align-items:center;gap:6px;min-height:36px;margin:5px 0 -4px -8px;padding:6px 8px;border-radius:8px;background:transparent;color:var(--green);font-size:12px;font-weight:600}
.trash-restore svg{width:15px;height:15px;flex-shrink:0}
.trash-restore:hover,.trash-restore:focus-visible{background:var(--soft)}

.category-color-choice[data-color="#b88636"]{color:#18302b}

/* Inline category picker: the complete touch panel replaces Android's dialog. */
.field .category-custom-color{color:var(--ink);text-align:left}
.category-custom-color>.category-color-sample{flex:0 0 40px;width:40px;height:36px;border:1px solid var(--line);border-radius:9px;box-shadow:inset 0 0 0 3px var(--paper)}
.category-custom-color[aria-expanded=true]{border-color:var(--green);background:var(--soft)}
.inline-color-picker{display:grid;gap:10px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}
.inline-color-picker[hidden]{display:none}
.color-picker-surface{height:174px;position:relative;border-radius:10px;background-color:var(--picker-tone);background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent);touch-action:none;cursor:crosshair;outline-offset:3px;box-shadow:inset 0 0 0 1px #0000000d}
.color-picker-cursor{position:absolute;left:clamp(9px,var(--picker-x),calc(100% - 9px));top:clamp(9px,var(--picker-y),calc(100% - 9px));width:18px;height:18px;transform:translate(-50%,-50%);border:3px solid white;box-shadow:0 0 0 1px #0008,0 1px 4px #0004;border-radius:50%;pointer-events:none}
.inline-color-picker .color-picker-hint{font-size:10px;line-height:1.5;color:var(--muted)}
.color-picker-tone{display:grid;gap:0}
.inline-color-picker .color-picker-tone label{font-size:11px}
.field .inline-color-picker input.color-picker-hue{appearance:none;-webkit-appearance:none;display:block;width:100%;min-height:34px;height:34px;padding:0;margin:0;border:0;background:transparent;cursor:pointer;touch-action:pan-y}
.color-picker-hue::-webkit-slider-runnable-track{height:12px;border-radius:20px;background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)}
.color-picker-hue::-moz-range-track{height:12px;border-radius:20px;background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)}
.color-picker-hue::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:22px;height:22px;margin-top:-5px;border:3px solid var(--paper);border-radius:50%;background:var(--picker-tone);box-shadow:0 0 0 1px var(--line),0 1px 4px #0004}
.color-picker-hue::-moz-range-thumb{width:16px;height:16px;border:3px solid var(--paper);border-radius:50%;background:var(--picker-tone);box-shadow:0 0 0 1px var(--line)}
.color-picker-values{display:grid;grid-template-columns:minmax(82px,1.4fr) repeat(3,minmax(0,1fr));gap:7px;min-width:0}
.inline-color-picker .color-picker-values label{display:grid;gap:5px;min-width:0;font-size:10px;color:var(--muted)}
.field .color-picker-values input{width:100%;min-width:0;min-height:40px;height:40px;padding:7px 6px;border-radius:9px;font-family:Inter,Arial,sans-serif;font-size:12px;font-variant-numeric:tabular-nums;line-height:1.4;text-align:center}
.color-picker-values input[type=number]{appearance:textfield;-moz-appearance:textfield}
.color-picker-values input::-webkit-inner-spin-button,.color-picker-values input::-webkit-outer-spin-button{appearance:none;-webkit-appearance:none;margin:0}
.field .color-picker-values input[aria-invalid=true]{border-color:var(--danger)}
.inline-color-picker .color-picker-error{font-size:11px;line-height:1.5;color:var(--danger);margin:0}
@media(orientation:landscape) and (max-height:500px){.color-picker-surface{height:104px}.inline-color-picker{gap:7px}}
