:root{--bg:#f6f5f0;--paper:#fff;--ink:#20312f;--muted:#6c7b75;--border:#e6e9e1;--green:#1b6254;--green2:#143d38;--mint:#e8f4ef;--yellow:#ffeec1;--shadow:0 12px 32px rgba(20,60,48,.055);--radius:19px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:14px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}a{color:inherit}.app{min-height:100vh}.topbar{position:sticky;z-index:20;top:0;background:#fffefb;border-bottom:1px solid var(--border);padding:15px max(22px,calc((100vw - 1520px)/2));display:flex;justify-content:space-between;align-items:center;gap:12px;box-shadow:0 2px 8px rgba(30,50,40,.02)}.brand-group{display:flex;align-items:center;gap:12px;min-width:0}.back-link{text-decoration:none;display:grid;place-items:center;border:1px solid var(--border);border-radius:12px;background:#fff;width:38px;height:38px;font-size:21px}.back-link:hover{background:var(--mint)}.logo-mark{background:var(--green);color:#fff;font-size:25px;width:44px;height:44px;display:grid;place-items:center;border-radius:14px}.eyebrow{font-size:10px;letter-spacing:.13em;font-weight:800;color:#7b9088}.product-name{font-size:18px;letter-spacing:-.04em}.header-actions{display:flex;align-items:center;gap:8px}.btn{border:1px solid var(--border);border-radius:11px;padding:10px 12px;font-size:12px;font-weight:750;background:white;color:var(--ink);display:inline-flex;align-items:center;gap:6px;justify-content:center;text-decoration:none}.btn:hover{background:#f2f8f5}.btn.primary{background:var(--green);color:white;border-color:var(--green)}.btn.primary:hover{background:var(--green2)}.btn.danger{color:#ae4141}.btn.tiny{padding:7px 9px;font-size:11px}.btn.quiet{white-space:nowrap}.cloud-status{font-size:11px;color:#738278;background:#f1f4ef;padding:9px 11px;border-radius:100px;white-space:nowrap}.cloud-status.ok{background:#e2f6e8;color:#11643c}.cloud-status.warn{background:#fff3d7;color:#825d14}.cloud-status.bad{background:#fce7e7;color:#a72d35}.app-layout{max-width:1560px;margin:auto;display:grid;grid-template-columns:242px minmax(0,1fr) 302px;min-height:calc(100vh - 79px)}.library{background:#fffefb;border-right:1px solid var(--border);padding:28px 18px;position:sticky;top:79px;height:calc(100vh - 79px);overflow-y:auto}.sidebar-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.sidebar-heading h2{margin:5px 0;font-size:20px;letter-spacing:-.05em}.add-round{border:0;background:var(--green);color:white;border-radius:11px;width:34px;height:34px;font-size:24px;line-height:1}.library-hint{color:var(--muted);line-height:1.55;font-size:12px;margin:8px 0 22px}.book-list{display:grid;gap:9px}.book-list-item{display:flex;align-items:flex-start;gap:11px;border:1px solid transparent;background:transparent;border-radius:13px;width:100%;padding:12px 9px;text-align:left;color:var(--ink)}.book-list-item.active{border-color:#c9e3d7;background:#eaf5ee}.book-list-item:hover{background:#f5f8f4}.book-symbol{display:grid;place-items:center;flex:none;background:#e7eae1;border-radius:10px;width:33px;height:38px;font-size:19px}.book-list-item.active .book-symbol{background:#d1e6d8}.book-list-item strong{display:block;font-size:12px;line-height:1.3;margin-bottom:5px}.book-list-item small{color:var(--muted);font-size:10px}.library-footer{margin-top:40px;padding:15px;color:#718279;border-top:1px solid var(--border);font-size:11px;line-height:1.6}.library-footer span{color:var(--green)}.workspace{padding:27px 30px 70px;min-width:0}.right-panel{background:#fdfcf8;border-left:1px solid var(--border);padding:25px 19px;display:flex;flex-direction:column;gap:19px;position:sticky;top:79px;height:calc(100vh - 79px);overflow-y:auto}.timer-card{background:var(--green2);border-radius:22px;color:white;padding:22px 19px;box-shadow:0 18px 34px rgba(19,61,54,.18)}.eyebrow.light{color:#9ec4b8}.timer-top{display:flex;align-items:center;justify-content:space-between}.timer-top h2{font-size:21px;letter-spacing:-.05em;margin:6px 0 16px}.phase-chip{font-size:10px;font-weight:800;letter-spacing:.09em;padding:6px 8px;border:1px solid #5a9488;border-radius:100px;color:#c2ece1}.timer-ring{width:205px;height:205px;max-width:100%;border-radius:50%;padding:9px;margin:8px auto 23px;background:conic-gradient(#a4e5c7 100%,rgba(255,255,255,.16) 0)}.timer-core{width:100%;height:100%;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#16483e;border:8px solid #143d38}.timer-emoji{font-size:23px;color:#afdcc8}.timer-clock{font-size:45px;font-weight:750;letter-spacing:-.06em;font-variant-numeric:tabular-nums}.timer-caption{font-size:10px;color:#bdd8cc}.timer-presets{display:flex;gap:6px;justify-content:center;margin-bottom:14px}.preset{border:1px solid #4d776c;background:transparent;color:#c3dbd1;border-radius:8px;padding:7px 13px;font-size:12px;font-weight:700}.preset.active{background:#d3eee0;color:#174839;border-color:#d3eee0}.timer-buttons{display:flex;gap:7px}.timer-play{flex:1;border:none;padding:13px;border-radius:11px;background:#c6e8d9;font-weight:800;color:#16483e}.timer-reset{width:43px;font-size:20px;border:1px solid #577c72;color:white;border-radius:11px;background:transparent}.skip-btn{border:0;background:none;color:#b7d8cc;width:100%;text-align:center;padding:13px 4px 6px;font-size:11px}.timer-tip{padding-top:15px;margin-top:10px;border-top:1px solid #51796b;font-size:11px;line-height:1.55;color:#bcd7ca}.side-guide{padding:20px;border:1px solid var(--border);background:white;border-radius:18px}.side-guide h3{margin:6px 0 15px;letter-spacing:-.035em;font-size:16px}.study-step{display:flex;align-items:flex-start;gap:11px;color:#53665f;font-size:12px;margin:13px 0;line-height:1.4}.study-step b{color:#3c9380;font-size:11px}.page-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.page-top h1{font-size:clamp(25px,2.9vw,35px);letter-spacing:-.055em;line-height:1.17;margin:5px 0 7px}.subtitle{color:var(--muted);font-size:13px;line-height:1.55}.header-title-row{display:flex;align-items:center;gap:10px}.kind-pill{font-size:10px;color:#386b5e;background:#e5f4ea;padding:6px 10px;border-radius:100px;font-weight:800;white-space:nowrap}.tab-strip{display:flex;gap:7px;overflow-x:auto;border-bottom:1px solid var(--border);padding:0 0 12px;margin:0 0 22px}.tab-btn{white-space:nowrap;background:none;border:1px solid transparent;border-radius:10px;color:#65756d;font-weight:750;font-size:12px;padding:10px 12px}.tab-btn:hover{background:white}.tab-btn.active{color:#205e4d;background:white;border-color:#b9d9cc;box-shadow:0 1px 4px #d3e8dc}.sheet{background:white;border:1px solid var(--border);border-radius:19px;padding:22px;box-shadow:var(--shadow)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-heading h2{margin:0;font-size:18px;letter-spacing:-.045em}.section-heading small{color:var(--muted)}.two-cols{display:grid;grid-template-columns:1.05fr .95fr;gap:16px}.stack{display:grid;gap:15px}.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.stat{background:white;border:1px solid var(--border);border-radius:15px;padding:17px}.stat b{font-size:25px;display:block;letter-spacing:-.045em}.stat span{font-size:11px;color:var(--muted)}.field{display:grid;gap:6px;margin-bottom:14px}.field label,.form-label{font-size:11px;color:#53685c;font-weight:750}.input,textarea,select{width:100%;border:1px solid #dbe2d8;background:#fff;border-radius:11px;padding:11px 12px;outline:none;color:var(--ink)}.input:focus,textarea:focus,select:focus{border-color:#56a78d;box-shadow:0 0 0 3px #e2f4ea}textarea{min-height:100px;line-height:1.5;resize:vertical}.note-editor{min-height:310px;font-size:14px}.small-editor{min-height:84px}.muted{color:var(--muted)}.hint{font-size:11px;line-height:1.5;color:var(--muted)}.pill{padding:5px 8px;border:1px solid var(--border);border-radius:100px;font-size:10px;color:#708079}.empty{text-align:center;padding:40px 20px;color:var(--muted);border:1px dashed #cfddd3;border-radius:17px;background:#fdfefc}.empty-icon{font-size:33px;display:block;margin-bottom:6px}.empty h2{font-size:20px;color:var(--ink);margin:6px 0}.empty p{max-width:400px;margin:8px auto 18px;line-height:1.6}.list-line{padding:13px 0;border-bottom:1px solid var(--border);display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.list-line:last-child{border-bottom:0}.list-line strong{font-size:13px}.list-line p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5;white-space:pre-wrap}.list-actions{display:flex;gap:5px;flex:none}.note-layout{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);gap:15px}.note-menu{display:grid;align-content:start;gap:6px}.note-choice{border:1px solid var(--border);padding:12px;text-align:left;border-radius:12px;background:white}.note-choice.active{background:#edf6f1;border-color:#9aceb7}.note-choice strong{display:block;margin-bottom:5px;font-size:12px}.note-choice small{color:var(--muted);font-size:10px}.note-editor-pane{background:#fcfdfa;border:1px solid var(--border);border-radius:13px;padding:16px;min-width:0}.post-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.post{border:1px solid rgba(50,60,50,.07);border-radius:9px;padding:18px;min-height:170px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 7px 15px rgba(20,30,20,.04);transform:rotate(-.45deg)}.post:nth-child(2n){transform:rotate(.65deg)}.post.yellow{background:#fff2b9}.post.blue{background:#dceaf8}.post.green{background:#dcf1dd}.post.pink{background:#fbe3e6}.post .post-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45;font-size:14px}.post-footer{display:flex;justify-content:space-between;align-items:center;margin-top:14px}.post-footer small{font-size:10px;color:#59665b}.post button{border:0;background:rgba(255,255,255,.5);border-radius:7px;padding:5px 8px}.review-card{padding:24px;border:1px solid #d7e2d8;border-radius:16px;background:#f6faf6;min-height:210px}.review-question{font-size:20px;line-height:1.4;font-weight:720;white-space:pre-wrap;overflow-wrap:anywhere}.review-answer{padding-top:12px;margin-top:12px;border-top:1px dashed #b7c9bb;white-space:pre-wrap;line-height:1.55}.review-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:17px}.command-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.command{border:1px solid var(--border);padding:18px;border-radius:14px;background:#fff}.command code{display:inline-block;background:#ecf6f0;border-radius:7px;padding:5px 8px;color:#27654f;font-size:12px;font-weight:700}.command h3{font-size:13px;margin:13px 0 6px}.command p{font-size:12px;color:var(--muted);line-height:1.5;min-height:36px}.command button{margin-top:8px}.card-tint{background:linear-gradient(135deg,#e6f4eb,#f7fbf6);border:1px solid #d5e8d9;padding:21px;border-radius:19px}.card-tint h2{font-size:22px;letter-spacing:-.04em;margin:6px 0 9px}.card-tint p{line-height:1.6;color:#557167;margin:0 0 14px}.subtle-link{border:0;background:none;color:var(--green);font-weight:800;padding:0}.sync-alert{max-width:1040px;margin:12px auto 0;padding:13px 16px;background:#fff3d8;border:1px solid #eed7a1;border-radius:12px;line-height:1.6;font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.sync-alert[hidden]{display:none}.sync-alert-actions{display:flex;gap:7px;flex-wrap:wrap}.sync-alert button{border:1px solid #b8a471;padding:6px 10px;border-radius:9px;background:#fffefa;font-weight:700}.toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#183f37;color:white;border-radius:13px;padding:12px 18px;font-size:12px;box-shadow:0 14px 32px #123b3055;z-index:200;display:none;max-width:90vw}.toast.show{display:block}dialog{width:min(490px,calc(100vw - 24px));max-height:90vh;overflow:auto;border:0;border-radius:22px;padding:0;background:white;color:var(--ink);box-shadow:0 35px 100px #0e39294d}dialog::backdrop{background:#10292399}#dialog-content{padding:25px}#dialog-content h2{font-size:22px;letter-spacing:-.04em;margin:0 0 6px}#dialog-content p{color:var(--muted);font-size:12px;line-height:1.5;margin:0 0 20px}.dialog-actions{display:flex;gap:8px;justify-content:end;margin-top:18px}.banner{background:#fff6de;border-radius:12px;padding:12px;color:#795714;font-size:12px;line-height:1.5}.highlight{color:var(--green);font-weight:800}.spaced{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.small-tag{font-size:10px;color:#658478;background:#e6f4ec;padding:5px 8px;border-radius:8px}.book-page{min-height:50vh}.wide{text-align:left}.mobile-book-select{display:none}
@media(max-width:1200px){.app-layout{grid-template-columns:210px minmax(0,1fr) 255px}.workspace{padding:24px 20px}.timer-ring{height:180px;width:180px}.timer-clock{font-size:38px}.right-panel{padding:19px 12px}}
@media(max-width:950px){.app-layout{grid-template-columns:210px minmax(0,1fr)}.right-panel{grid-column:2;position:static;height:auto;border-top:1px solid var(--border);border-left:none;display:grid;grid-template-columns:1fr 1fr}.timer-ring{width:165px;height:165px}.topbar{padding:12px}.library{top:69px;height:calc(100vh - 69px)}.two-cols{grid-template-columns:1fr}}
@media(max-width:650px){.topbar{align-items:flex-start;flex-wrap:wrap;gap:8px}.logo-mark{width:35px;height:35px;font-size:20px}.product-name{font-size:15px}.eyebrow{font-size:9px}.header-actions{width:100%;justify-content:flex-end;gap:4px}.header-actions .btn{padding:7px 9px}.cloud-status{margin-right:auto;font-size:10px}.app-layout{display:flex;flex-direction:column}.library{position:static;height:auto;border-right:0;border-bottom:1px solid var(--border);padding:12px}.sidebar-heading,.library-hint,.library-footer{display:none}.book-list{display:flex;overflow:auto;gap:5px}.book-list-item{flex:0 0 auto;max-width:190px;padding:9px;border-color:var(--border);background:white}.book-list-item .book-symbol{width:25px;height:30px;font-size:14px}.book-list-item strong{font-size:11px}.book-list-item small{display:none}.mobile-book-select{display:inline-block}.workspace{padding:20px 12px 32px}.page-top{flex-wrap:wrap}.page-top h1{font-size:26px}.right-panel{display:flex;padding:14px}.timer-card{max-width:430px;width:100%;margin:auto}.side-guide{max-width:430px;width:100%;margin:auto}.two-cols,.stat-grid,.note-layout{grid-template-columns:1fr}.stat-grid{gap:7px}.stat{padding:10px}.stat b{font-size:20px}.stat span{font-size:10px}.sheet{padding:15px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.post{padding:12px;min-height:155px}.post .post-text{font-size:12px}.small-label{display:none}.sync-alert{margin:7px 10px;display:block}.sync-alert-actions{margin-top:9px}}
@media(max-width:380px){.post-grid{grid-template-columns:1fr}.book-list-item{max-width:170px}.btn.tiny{padding:6px}}

/* Biblioteca Drive · v3.2 */
.resource-sheet .section-heading{flex-wrap:wrap}
.drive-panel{padding:16px;margin:17px 0;border-radius:15px;background:#f2f8f4;border:1px solid #d6e6dc;display:grid;gap:12px}
.drive-head{display:flex;gap:11px;align-items:center}.drive-logo{font-size:27px}.drive-head strong{font-size:13px}.drive-head p{margin:4px 0 0}
.resource-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:12px;margin:18px 0}
.resource-card{border:1px solid var(--border);border-radius:15px;padding:16px;background:#fff;display:flex;flex-direction:column;gap:8px;min-width:0}
.resource-icon{font-size:27px}.resource-info strong{display:block;font-size:13px;overflow-wrap:anywhere}.resource-info small{display:block;margin-top:5px;color:var(--muted);font-size:11px}.resource-info p{font-size:12px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}.resource-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:auto}
.resource-actions a{text-decoration:none}.resource-foot{display:flex;flex-wrap:wrap;gap:12px;border-top:1px solid var(--border);padding-top:14px;color:var(--muted);font-size:11px}
#resource-preview-area:not(:empty){margin:16px 0;border:1px solid var(--border);border-radius:15px;padding:13px;background:#f9fcfa}.resource-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.resource-preview-head strong{font-size:13px}#resource-preview-area iframe{width:100%;height:min(68vh,620px);min-height:320px;border:0;border-radius:9px;background:white}
@media(max-width:650px){.resource-grid{grid-template-columns:1fr}.resource-sheet .section-heading .spaced{width:100%}.resource-sheet .section-heading .spaced .btn{flex:1}.drive-panel{padding:12px}}
