/* SIGMA Produtividade — Meu Caderno: espaço de criação pessoal */
.content:has(.sigma-book-layout){max-width:none;padding:0!important;margin:0;width:100%;min-height:calc(100dvh - 76px)}
.sigma-book-layout{--book-edge:#e2e9f3;display:grid;grid-template-columns:276px minmax(0,1fr);min-height:calc(100dvh - 78px);background:linear-gradient(120deg,#f4f8ff,#eef6fa 63%,#eaf7f4);color:#20304c;transition:grid-template-columns .2s ease}
.sigma-book-layout.pages-hidden{grid-template-columns:0 minmax(0,1fr)}
.sigma-book-nav{background:#fff;box-shadow:2px 0 25px #2342630b;border-right:1px solid var(--book-edge);display:flex;flex-direction:column;min-width:0;overflow:hidden;max-height:calc(100dvh - 78px);position:sticky;top:0}
.sigma-book-nav-top{padding:31px 18px 14px;display:flex;align-items:flex-start;gap:6px;justify-content:space-between}
.sigma-book-nav h2{font-size:20px;letter-spacing:-.65px;margin:7px 0 4px;font-weight:820;white-space:nowrap}.sigma-book-nav-top small{color:#8494ab;font-size:12px}
.sigma-book-kicker{display:block;color:var(--primary);font-size:10px;letter-spacing:1.3px;font-weight:850}
.sigma-book-circle{width:34px;height:34px;min-width:34px;border:1px solid #dce7f3;border-radius:11px;background:#f5f9fd;color:#466483;font-size:24px;display:grid;place-items:center;line-height:1;cursor:pointer}
.sigma-book-circle:hover{color:#fff;background:var(--primary)}
.sigma-book-nav-search{margin:14px 15px 10px;position:relative;color:#8293ac}.sigma-book-nav-search span{position:absolute;left:14px;top:9px;font-size:22px}.sigma-book-nav-search input{width:100%;border-radius:12px;background:#f5f8fc;border:1px solid #e6edf4;padding:12px 13px 12px 40px;font-size:13px;min-width:0}
.sigma-book-pages{padding:5px 12px 16px;overflow:auto;flex:1;min-height:0;scrollbar-width:thin;scrollbar-color:#c8d8e6 transparent}
.sigma-book-page{width:100%;text-align:left;display:flex;gap:10px;align-items:center;border:1px solid transparent;padding:12px 10px;border-radius:13px;background:transparent;color:#354963;margin:4px 0;cursor:pointer}
.sigma-book-page:hover{background:#f4f8fc}.sigma-book-page.active{background:linear-gradient(103deg,color-mix(in srgb,var(--primary) 10%,white),color-mix(in srgb,var(--secondary) 7%,white));border-color:color-mix(in srgb,var(--primary) 20%,white);box-shadow:inset 3px 0 var(--primary)}
.sigma-book-page-glyph{display:grid;place-items:center;width:36px;height:40px;flex:0 0 36px;color:var(--primary);border-radius:9px;background:#edf3ff;font-size:23px}.sigma-book-page-info{flex:1;min-width:0}.sigma-book-page-info strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sigma-book-page-info small{color:#8293a8;font-size:11px;margin-top:4px;display:block}.sigma-book-page-chevron{color:#9ab0c5;font-size:21px}.sigma-book-nav-bottom{padding:15px;border-top:1px solid #ebf0f7}.sigma-book-nav-bottom .btn{width:100%;justify-content:center}.sigma-book-blank-list{color:#8b9ab0;text-align:center;padding:24px 5px}
.sigma-book-main{padding:32px clamp(17px,3vw,54px) 60px;min-width:0}
.sigma-book-topline{display:flex;align-items:center;gap:15px;margin:0 auto 25px;max-width:1130px}.sigma-book-topline>div:nth-child(2){flex:1;min-width:0}.sigma-book-topline h1{margin:5px 0 3px;font-size:clamp(24px,3vw,32px);letter-spacing:-1px;color:#162d4b}.sigma-book-topline p{margin:0;color:#7a8ca4;font-size:14px}.sigma-book-top-actions{flex:0 0 auto}.sigma-book-layout:not(.pages-hidden) #sigma-book-show{display:none}.sigma-book-layout.pages-hidden .sigma-book-nav{visibility:hidden}.sigma-book-layout.pages-hidden #sigma-book-show{display:grid}
#sigma-book-work{max-width:1130px;margin:auto}
.sigma-book-editor-shell{background:#fff;border:1px solid #e3eaf5;border-radius:20px;box-shadow:0 16px 40px #16406410;overflow:clip}
.sigma-book-paper-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:15px 25px;border-bottom:1px solid #ebf0f5;min-height:65px}
.sigma-book-breadcrumb{color:#879ab0;letter-spacing:1px;font-weight:800;font-size:10px}.sigma-book-breadcrumb span{padding:0 5px;color:#c5d1dc}
.sigma-book-head-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}#sigma-book-status{font-size:12px;color:#43816c;display:inline-flex;gap:6px;align-items:center;margin-right:8px;font-weight:750;max-width:260px}#sigma-book-status:before{content:'●';font-size:8px}#sigma-book-status[data-mode=error]{color:#bf3650}#sigma-book-status[data-mode=saving],#sigma-book-status[data-mode=pending]{color:#a47226}
.sigma-book-mini{border:1px solid #dfe9f4;background:#fff;color:#465f79;border-radius:9px;padding:8px 10px;font-size:12px;font-weight:750}.sigma-book-mini:hover{background:#eff5ff}.sigma-book-mini.danger{color:#ae435a}.sigma-book-mini.danger:hover{background:#fff1f3}
.sigma-book-head-actions .btn{font-size:12px;padding:9px 13px;min-height:34px;border-radius:9px}
.sigma-book-titlebar{padding:27px clamp(18px,4vw,63px) 15px}.sigma-book-titlebar input{width:100%;border:0!important;border-bottom:1px solid #e1e8f1!important;border-radius:0!important;padding:9px 1px 18px!important;outline:none!important;font-size:clamp(24px,3.5vw,37px);font-weight:820;letter-spacing:-1px;line-height:1.25;background:transparent;color:#172a44;box-shadow:none!important}.sigma-book-titlebar input:focus{border-bottom-color:var(--primary)!important}.sigma-book-titlebar input::placeholder{color:#a5b2c2}
.sigma-book-toolbar{position:sticky;top:0;z-index:6;display:flex;align-items:center;flex-wrap:wrap;gap:6px;row-gap:9px;background:#f9fbff;padding:13px clamp(12px,3vw,32px);border-top:1px solid #e6edf5;border-bottom:1px solid #e2eaf3}
.sigma-book-tools-group{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.sigma-book-tools-group select{min-width:0;border:1px solid #d8e3f0;padding:7px 8px;border-radius:8px;background:white;color:#394d69;height:36px;font-size:12px;line-height:1}.sigma-book-tools-group #sigma-book-block{width:117px}.sigma-book-tools-group #sigma-book-font{width:104px}.sigma-book-tools-group #sigma-book-fontsize{width:95px}.sigma-book-tools-group #sigma-book-lines{width:61px}
.sigma-book-tool{border:1px solid transparent;background:transparent;color:#47617e;border-radius:8px;height:35px;min-width:34px;padding:0 8px;font-size:15px;font-weight:750;display:grid;place-items:center}.sigma-book-tool:hover,.sigma-book-tool.active{background:color-mix(in srgb,var(--primary) 12%,white);border-color:color-mix(in srgb,var(--primary) 16%,white);color:var(--primary)}.sigma-book-tool:focus-visible,.sigma-book-page:focus-visible{outline:3px solid var(--secondary);outline-offset:2px}.sigma-book-separator{background:#dae4ee;width:1px;height:28px;margin:0 4px}
.sigma-book-color-label{position:relative;display:grid;place-items:center;min-width:35px;height:35px;font-weight:820;font-size:16px;cursor:pointer;border-radius:8px;color:#3d536e}.sigma-book-color-label:hover{background:#e9f2fc}.sigma-book-color-bar{height:4px;position:absolute;bottom:4px;width:18px;border-radius:2px;background:#233653}#sigma-book-markbar{background:#fff2a8}.sigma-book-color-label input[type=color]{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;padding:0}
.sigma-book-paper-wrap{background:#fff;padding:8px clamp(18px,4vw,63px) 36px}.sigma-book-paper{min-height:560px;line-height:1.6;letter-spacing:normal;word-break:break-word;color:#253750;font-size:16px;outline:none;overflow-wrap:anywhere;font-family:Arial,sans-serif}.sigma-book-paper:empty:before{content:attr(data-placeholder);color:#aab7c6;pointer-events:none}.sigma-book-paper p{margin:0 0 .75em}.sigma-book-paper h1,.sigma-book-paper h2,.sigma-book-paper h3{line-height:1.25;color:#1b3655;margin:1em 0 .4em}.sigma-book-paper h1{font-size:2em}.sigma-book-paper h2{font-size:1.55em}.sigma-book-paper h3{font-size:1.25em}.sigma-book-paper blockquote{border-left:4px solid var(--secondary);padding:8px 14px;background:#f4f9fc;margin:12px 0;color:#536781}.sigma-book-paper ul,.sigma-book-paper ol{padding-left:29px;margin:10px 0 15px}.sigma-book-paper li{margin:4px 0}.sigma-book-paper hr{border:0;border-top:2px solid #dce6f0;margin:22px 0}.sigma-book-paper a{color:var(--primary);text-decoration:underline}.sigma-book-paper table{border-collapse:collapse;width:100%;margin:16px 0;table-layout:fixed}.sigma-book-paper th,.sigma-book-paper td{padding:10px 12px;border:1px solid #cfdde9;text-align:left;min-width:60px}.sigma-book-paper th{background:#eff5fc}.sigma-book-paper td:focus{outline:1px solid var(--primary)}
.sigma-book-editor-footer{border-top:1px solid #edf2f6;background:#fbfcff;padding:14px 25px;display:flex;justify-content:space-between;gap:10px;align-items:center;color:#8191a5;font-size:12px;font-weight:650}
.sigma-book-empty{text-align:center;max-width:750px;margin:54px auto 0;padding:65px 35px;border:1px dashed #cfddea;border-radius:25px;background:#fff;box-shadow:0 12px 32px #2747770b}.sigma-book-empty-icon{display:grid;place-items:center;width:77px;height:77px;font-size:36px;margin:0 auto 15px;border-radius:23px;color:#fff;background:linear-gradient(135deg,var(--primary),var(--secondary))}.sigma-book-empty h2{font-size:24px;letter-spacing:-.6px;margin:10px 0}.sigma-book-empty p{color:#7d90a9;margin:8px auto 22px;max-width:380px;line-height:1.6}
@media(max-width:1160px){.sigma-book-layout{grid-template-columns:238px minmax(0,1fr)}.sigma-book-main{padding:22px 18px 40px}.sigma-book-separator{margin:0 2px}}
@media(max-width:820px){.sigma-book-layout{grid-template-columns:0 minmax(0,1fr)}.sigma-book-layout:not(.pages-hidden) .sigma-book-nav{position:fixed;top:70px;bottom:0;height:calc(100dvh - 70px);left:0;width:min(300px,83vw);max-height:none;z-index:30;box-shadow:12px 0 60px #001b3550}.sigma-book-layout.pages-hidden .sigma-book-nav{visibility:hidden}.sigma-book-layout #sigma-book-show{display:grid!important}.sigma-book-main{padding:17px 12px 45px}.sigma-book-toolbar{position:static;gap:5px}.sigma-book-topline{margin-bottom:18px}.sigma-book-paper-header{padding:13px}.sigma-book-titlebar{padding:19px 18px 9px}.sigma-book-paper-wrap{padding:13px 18px 30px}.sigma-book-paper{min-height:450px}.sigma-book-topline p{font-size:12px}.sigma-book-top-actions .btn{font-size:12px;padding:8px 11px}.sigma-book-breadcrumb{display:none}.sigma-book-editor-footer{padding:12px 16px}.sigma-book-titlebar input{font-size:26px}.sigma-book-nav-top{padding-top:22px}}
@media(prefers-reduced-motion:reduce){.sigma-book-layout{transition:none}}
/* A coluna do editor permanece na segunda faixa mesmo quando o menu mobile sai do fluxo. */
.sigma-book-main{grid-column:2}
