/* Contratos de layout do aplicativo real, sem folhas antigas ou overrides legados. */
#appRoot { padding:16px }
#appRoot .ep-app { height:calc(100dvh - 32px);min-height:calc(100dvh - 32px) }
#appRoot .ep-stage { min-height:0 }
#appRoot .ep-body { min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable }
#appRoot .ep-workspace { min-height:0;max-height:100% }
#appRoot .ep-topbar { flex-shrink:0 }
#appRoot .ep-sidebar { min-height:0;height:100%;overflow:auto }
#brandHomeBtn { border:0;background:transparent;padding:0;width:32px;min-height:44px;display:grid;place-items:center }
#brandHomeBtn img { width:32px;height:32px }
#appRoot .ep-sidebar-user strong { font-size:12px;font-weight:500 }
#appRoot .ep-avatar svg { width:18px;height:18px }
.screen { display:none }
.screen.visible { display:block }
.late-badge,.version-footer,.tabs-fade { display:none }
#screenTitle {font-size:13px;line-height:1.5;margin:0 }
#appRoot .ep-calendar .widget { padding:0;border:0;background:transparent }
.widget-head { display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:650 }
.widget-head button { background:transparent;border:0;padding:6px;width:32px }
.mini-cal-grid { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px }
.mini-cal-grid .d,.mini-cal-grid>div { display:grid;place-items:center;min-height:28px;padding:2px;border:0;background:transparent;color:var(--text);font-size:11px;font-weight:500;position:relative }
.mini-cal-grid .today { color:var(--accent);font-weight:650 }
.mini-cal-grid .selected { background:var(--accent);color:var(--primary-text);border-radius:8px }
.mini-cal-grid .dots { display:flex;gap:2px;position:absolute;bottom:2px }
.dots i { width:3px;height:3px;border-radius:50% }
.widget-label { font-size:11px;color:var(--muted);margin:18px 0 8px }
.widget-muted { font-size:11px;color:var(--muted) }
.google-sync-widget { display:flex;align-items:center;gap:8px;margin-top:18px;font-size:11px;color:var(--muted) }
.google-sync-icon { width:18px;height:18px;flex-shrink:0 }
.tabs { display:grid;gap:3px }
.tabs .tab { display:flex;align-items:center;gap:8px;min-height:44px;padding:6px 0;border:0;background:transparent;color:var(--muted);font-size:11px;text-align:left }
.tab-dot { width:12px;height:12px;border:1px solid var(--line);border-radius:3px;flex-shrink:0 }
.tabs .active { color:var(--text) }
.tabs .active .tab-dot { outline:2px solid var(--accent);outline-offset:2px }
.item-compact { border-left-color:var(--pd,var(--accent));cursor:pointer }
.item-compact .row1 { display:flex;align-items:center;gap:8px }
.item-compact .info { flex:1;min-width:0 }
.item-compact .check { order:2;display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border:1px solid var(--control-border);border-radius:50%;color:var(--accent);font-size:16px }
.item-compact .time { display:block;font-size:11px;color:var(--pd,#96c3ff);font-weight:600 }

.item-compact .source{ font-size:11px;color:var(--muted) }
.item-compact.done .agenda-card-open b { color:var(--muted);text-decoration:line-through }
.item-compact.done .check { color:var(--done) }
.item-compact .expand-actions,.item-compact .inline-details { display:none }
.item-compact.expanded .expand-actions { display:flex;gap:8px;margin-top:12px;flex-wrap:wrap }
.item-compact.expanded .inline-details { display:block;margin-top:12px }
.item-compact .card-action { display:grid;place-items:center;width:44px;height:44px;padding:10px;background:var(--panel-2) }

.subtask-check { width:24px;height:24px;border:1px solid var(--line);border-radius:6px;display:grid;place-items:center }
.subtask-check.done { background:var(--accent);color:var(--primary-text) }

#atrasadosList { display:grid;gap:12px }
.batch-action-bar { display:none;position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:60;background:var(--panel);padding:16px;border:1px solid var(--line);border-radius:14px;max-width:calc(100vw - 24px) }
.batch-action-bar.show { display:block }
.batch-action-head,.batch-action-buttons { display:flex;gap:12px;align-items:center;flex-wrap:wrap }
#batchSelectBtn { border:0;background:transparent;color:var(--accent);font-size:12px }
.section-label-actions { display:flex;justify-content:flex-end;margin:0 0 10px }
.week-nav,.month-nav,.month-tools { display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px }
.cal-grid { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line) }
.cal-day { min-height:65px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--panel);padding:7px;min-width:0;font-size:12px }
.cal-day.today { background:var(--accent-soft) }
.cal-header { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-height:30px;text-align:center;padding:6px;background:var(--panel-2);font-size:11px }



.empty-hint { padding:24px 16px;text-align:center;color:var(--muted);font-size:13px }
.space-switcher { position:relative }
.space-switcher-menu { width:min(360px,100%);max-width:360px;padding:20px }

.space-switcher-menu button { display:flex;align-items:center;gap:10px;width:100%;padding:10px 0;text-align:left;background:transparent;border:0 }
.space-switcher-menu [data-space-id]>span:not(.space-menu-avatar) { flex:1;min-width:0 }
.space-switcher-menu button.active { color:var(--accent) }
.space-switcher-menu small { display:block;font-size:11px;color:var(--muted) }
.account-menu-heading { border-bottom:1px solid var(--line);padding-bottom:16px }
.account-menu-heading b { display:block }
#spaceSwitcherButton>span:not(.ep-avatar) { display:block }
#spaceSwitcherButton small { display:none }
#spaceSwitcherButton strong { font-size:12px;font-weight:500 }
#spaceSwitcherButton>svg { width:14px;height:14px }
.home-loading { display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px }
.home-loading span { height:92px;background:var(--panel-2);border-radius:14px;animation:home-pulse 1s ease-in-out infinite alternate }
.library-card-body { min-width:0;flex:1 }
.library-card-open { display:none }
#appRoot .ep-table-name .ep-kind-label { display:none }





































@keyframes home-pulse { from { opacity:.45 } to { opacity:.8 } }
@media(max-width:679px), (max-width:1023px) and (pointer:coarse) and (orientation:landscape) {
 html,body { height:100%;overflow:hidden;overscroll-behavior:none;background:var(--bg) }
 /* A one-pixel scrollable document is retained only for the confirmed iOS launch recalculation. */
 html.ios-standalone body { min-height:calc(100vh + 1px);min-height:calc(100lvh + 1px) }
 #appRoot { position:fixed;top:var(--viewport-top,0px);left:0;right:0;height:var(--viewport-height,100dvh);padding:0;overflow:hidden }
 #appRoot .ep-stage { height:100%;min-height:0 }
 #appRoot .ep-sidebar { display:none }
 #appRoot .ep-mobile .ep-app { display:flex;flex-direction:column;width:100%;max-width:none;height:100%;min-height:0;margin:0;border:0;border-radius:0;overflow:hidden;box-shadow:none }
 #appRoot .ep-mobile .ep-workspace { flex:1;min-height:0;height:100%;max-height:100%;overflow:hidden;--mobile-nav-height:calc(57px + max(8px,var(--safe-bottom))) }
 #appRoot .ep-mobile .ep-topbar { flex:none }
 #appRoot .ep-mobile .ep-body { flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:auto;padding-bottom:96px }
 #appRoot .ep-mobile .ep-mobile-nav { position:relative;z-index:40;flex:none }
 #appRoot .ep-mobile .ep-fab { position:absolute;bottom:calc(var(--mobile-nav-height) + 16px);right:16px;z-index:39;margin:0;padding:0;background:transparent;pointer-events:none }
 #appRoot .ep-mobile .ep-fab button { pointer-events:auto }
 html.keyboard-open #appRoot .ep-mobile .ep-mobile-nav,html.keyboard-open #appRoot .ep-mobile .ep-fab { display:none }
 html.modal-open body { position:static;top:auto }
 html.modal-open #appRoot .ep-body { overflow:hidden }
 .overlay { backdrop-filter:none }
 #appRoot .ep-search-trigger,#filterTopBtn,#spaceSwitcherButton>span:not(.ep-avatar) { display:none }
 #appRoot .ep-table-name { min-height:54px }
 #appRoot .ep-table-name .ep-kind-label { display:block }
 #appRoot .ep-table-name .ep-item-icon { width:42px;height:42px }
 .library-card-open { display:block }
 
 
 .batch-action-bar { bottom:90px }
 
}
.agenda-week-heading { display:grid;place-items:center;gap:2px;width:100%;min-height:64px;padding:10px 2px;border:0;border-radius:0;background:var(--panel-2);font-size:10px }
.agenda-week-heading b { font-size:16px;font-weight:500 }
@media(max-width:679px), (max-width:1023px) and (pointer:coarse) and (orientation:landscape) { #appRoot .ep-week-grid { overflow:auto;grid-template-columns:repeat(7,minmax(110px,1fr)) } }
.agenda-card-open { display:block;min-width:0;padding:0;background:transparent;border:0;color:var(--text);text-align:left;min-height:54px }
.agenda-card-open b { display:block;font-size:13px;font-weight:600;margin:2px 0 }
.agenda-card-open small { display:block;font-size:11px;color:var(--muted) }
.agenda-card-open time { font-size:11px;color:var(--pd,#96c3ff);font-weight:600 }

.month-cell-item{ display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px }
.projects-collapsed .tabs-row { display:none }
.agenda-month-grid { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line);border-radius:10px;overflow:hidden }
.agenda-month-grid>div,.agenda-month-grid>.cal-day { min-height:65px;padding:7px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:var(--panel);font-size:11px;text-align:left;overflow:hidden }
.agenda-month-grid>.today,.agenda-month-grid>.in-range { background:var(--accent-soft) }
#monthList { display:grid;gap:9px;margin-top:12px }





/* Contratos dos componentes gerados dinamicamente, inclusive fora de appRoot. */
.account-menu-title{font-size:16px;margin:0 0 16px;font-weight:650}
.account-menu-heading{display:grid;grid-template-columns:40px minmax(0,1fr) auto;column-gap:12px;align-items:center}
.account-menu-heading b,.account-menu-heading small{display:block}
.space-switcher-menu .account-menu-heading button{grid-column:3;grid-row:1;width:auto;color:var(--accent);font-size:12px}

.space-switcher-menu [data-space-id]{padding:10px;border-radius:10px;gap:12px;margin:3px 0;min-height:64px}
.space-switcher-menu [data-space-id]:hover,.space-switcher-menu [data-space-id].active{background:var(--accent-soft)}
.space-switcher-menu [data-space-id]>svg{width:18px;height:18px;flex:0 0 18px}
.space-switcher-menu [data-space-id] b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;color:var(--text)}


.agenda-category-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.agenda-category-heading>div{display:flex;align-items:center}
.agenda-category-heading button{width:32px;padding:6px;border:0;background:transparent}
#appRoot .ep-item-icon{color:var(--category-color,#96c3ff);background:color-mix(in srgb,var(--category-color,#4c8dff) 20%,var(--panel))}
#appRoot .ep-item-time{color:var(--category-color,#96c3ff)}
#appRoot .library-card--note .ep-item-icon{color:#c3a6ff;background:#9b7ce520}
#appRoot .library-card--file .ep-item-icon{color:#81b3ff;background:#4c8dff20}
#appRoot .library-card--link .ep-item-icon{color:#69d7ac;background:#22c55e20}
#appRoot .library-card--access .ep-item-icon{color:#f4bf62;background:#f59e0b20}
#appRoot .library-card-body b,#appRoot .library-card-body small{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#appRoot .library-table{table-layout:fixed}
#appRoot .library-table th:first-child{width:68%}
#appRoot .agenda-card-open time{color:var(--pd,var(--accent))}
#appRoot .ep-timeline-row .agenda-card-open time{display:none}











.file-viewer-preview{display:grid;gap:12px;margin:16px 0;overflow-wrap:anywhere}
.file-viewer-preview svg,.file-upload-control svg{width:24px;height:24px;flex:0 0 24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.file-link-preview,.file-secret-preview{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel-2);min-width:0;font-size:13px}
.file-link-preview span{min-width:0;overflow-wrap:anywhere}
.file-link-preview svg{color:var(--accent)}
.file-secret-preview>span{flex:1;min-width:0;overflow-wrap:anywhere}
.file-secret-preview button{width:40px;min-height:40px;padding:8px;flex:none}
.file-document-preview{display:grid;justify-items:center;gap:12px;padding:28px;border:1px solid var(--line);border-radius:12px}
.file-document-preview>svg{width:44px;height:44px;color:var(--accent)}
.file-viewer-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-top:1px solid var(--line);padding-top:16px;margin:16px 0}
.file-viewer-meta>div{min-width:0}
.file-viewer-meta dt{color:var(--muted);font-size:11px}
.file-viewer-meta dd{margin:4px 0;font-size:13px;overflow-wrap:anywhere}
.file-viewer-meta #fileViewerNotesRow{grid-column:1/-1}
#modalSearch .modal{max-width:600px}
#globalSearchInput{width:100%}
#globalSearchResults{max-height:50dvh;overflow:auto}









































.category-manage-list{display:grid;gap:10px}
.category-manage-row{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;flex-wrap:wrap}
.category-manage-row input:not([type="color"]){flex:1;min-width:100px;width:120px}
.category-row-main{flex:1;min-width:0}
.category-row-main small{display:block;color:var(--muted);font-size:11px}
.category-row-actions{display:flex;gap:6px;align-items:center}
.category-color-dot{width:12px;height:12px;border-radius:50%}
.category-create-row{display:flex;gap:8px;align-items:center}
.ai-assistant-modal{max-width:680px;display:flex;flex-direction:column;height:min(680px,calc(100dvh - 80px));overflow:hidden}
.ai-assistant-modal .modal-head{flex:none}
.ai-assistant-modal .modal-head p{margin-bottom:0}
.ai-messages{min-height:80px;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:12px 0;flex:1}
.ai-message{padding:12px 14px;border-radius:12px;background:var(--panel-2);font-size:13px;line-height:1.6;max-width:92%;overflow-wrap:anywhere;white-space:pre-line}
.ai-message--user{align-self:flex-end;background:var(--accent-soft)}
.ai-suggestions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0;flex:none}
.ai-suggestions button{font-size:11px;min-height:36px;padding:8px 10px;font-weight:500}
.ai-composer{display:flex;gap:8px;align-items:flex-end;padding:8px;border:1px solid var(--control-border);border-radius:12px;background:var(--panel-2);flex:none}
.ai-composer textarea{min-width:0;width:100%;border:0;background:transparent;min-height:44px;max-height:120px;padding:10px 4px;resize:none;font-size:13px}
.ai-composer button{width:40px;min-height:40px;height:40px;padding:9px;flex:0 0 40px}
.ai-composer .ai-attach-btn{background:transparent;border:0}
.ai-privacy{font-size:10px!important;margin:10px 0 0!important;flex:none}
@media(max-width:679px), (max-width:1023px) and (pointer:coarse) and (orientation:landscape){.file-viewer-meta{grid-template-columns:1fr}.ai-assistant-modal{height:calc(var(--viewport-height,100dvh) - 24px - var(--safe-top) - var(--safe-bottom))}.category-manage-row .category-row-actions{margin-left:auto}}

.agenda-category-heading{position:relative}
.agenda-category-heading>.ep-label{order:-1;margin-right:auto}
.category-actions{border:0;margin:0;position:relative}
.category-actions summary{list-style:none;width:44px;display:grid;place-items:center;padding:0;font-size:22px}
.category-actions summary::-webkit-details-marker{display:none}
.category-actions>div{position:absolute;top:44px;left:0;width:190px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:6px;box-shadow:0 12px 30px #0004;z-index:10}
.category-actions button{display:block;width:100%;font-size:12px;text-align:left;white-space:nowrap}
#agendaCategoriesMobile{display:none}
.category-row-editor{display:grid;gap:4px;flex:1;min-width:110px}
.category-row-editor input{width:100%!important}
.category-row-editor small{display:none}
.category-create-row{flex-wrap:wrap}
.category-create-row input[type="text"]{flex:1;min-width:120px}
.category-create-row button{display:flex;align-items:center;gap:6px}
.sharing-guide{font-size:12px;color:var(--muted);margin:12px 0}
.category-manager-modal{max-width:640px}
@media(max-width:679px), (max-width:1023px) and (pointer:coarse) and (orientation:landscape){#agendaCategoriesMobile{display:grid;place-items:center;width:44px;min-width:44px;min-height:44px;font-size:24px;margin:0;background:transparent;border:0}.category-actions>div{left:auto;right:0}}

.month-cell-item{border-left:2px solid var(--category-color,var(--accent));padding-left:4px;margin-top:4px;color:var(--text);background:color-mix(in srgb,var(--category-color,var(--accent)) 12%,transparent)}
.note-viewer-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}
#noteViewerChecklist{display:grid;gap:8px;margin:16px 0}
#noteViewerChecklist>div{display:flex;align-items:flex-start;gap:10px;padding:10px;border:1px solid var(--line);border-radius:8px;font-size:13px}
#noteViewerChecklist i{font-style:normal;color:var(--accent);flex:0 0 20px}

@media(max-width:679px), (max-width:1023px) and (pointer:coarse) and (orientation:landscape){#appRoot .ep-mobile .ep-week-strip{margin:0 -10px 20px;gap:0}}
@media(pointer:coarse) and (min-width:781px){#appRoot .ep-agenda-layout{grid-template-columns:308px minmax(0,1fr)}.mini-cal-grid .d{min-height:44px}}

@media(max-width:679px), (max-width:1023px) and (pointer:coarse) and (orientation:landscape){#appRoot .ep-mobile #agendaWorkspace>.ep-head{flex-direction:row;align-items:flex-start;gap:8px}#appRoot .ep-mobile #agendaWorkspace>.ep-head>div{min-width:0;flex:1}#appRoot .ep-mobile .ep-segment button{min-height:44px}}

/* Empresa e operações: listas contextuais com a mesma escala tipográfica. */
#miniCalHeader{color:var(--muted);font-size:10px;font-weight:500;margin:8px 0 4px}
#miniCalHeader>span{display:grid;place-items:center;min-height:24px}












































.notes-empty{padding:24px 12px;text-align:center;color:var(--muted);font-size:12px;line-height:1.6;border:1px dashed var(--line);border-radius:10px}
/* Perfil e Lixeira: componentes secundários com escala e estados explícitos. */
.profile-modal{max-width:640px}
.profile-avatar-editor{display:flex;align-items:center;gap:18px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel-2);margin:0 0 22px}
.profile-avatar-editor .profile-avatar-preview{width:64px;height:64px;flex:0 0 64px;font-size:20px;background:var(--panel)}
.profile-photo-help{font-size:11px!important;margin:0 0 8px!important;color:var(--muted)}
.profile-avatar-editor button{font-size:12px;min-height:40px}
.profile-link-danger{background:transparent;border:0;color:var(--late)}
.profile-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px}
.profile-fields>.field{margin-bottom:18px}
.profile-fields input,.profile-fields select{font-size:13px}
.profile-fields input:disabled{opacity:1;color:var(--muted);background:transparent;border-color:var(--line)}



.profile-fields>.field:last-child{grid-column:1/-1}

.profile-account-actions{gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.profile-account-actions button{padding:13px 14px;justify-content:space-between;border-radius:0;border-bottom:1px solid var(--line);gap:12px}
.profile-account-actions button:last-child{border-bottom:0}
.profile-account-actions button>span{flex:1;min-width:0}
.profile-account-actions b{font-size:12px;font-weight:500}
.profile-account-actions small{font-size:11px;margin-top:3px}
.danger-zone{margin:18px 0 0;font-size:12px}
.danger-zone>summary{color:var(--late);font-size:12px}
.danger-zone p{font-size:12px}
.danger-zone button{background:transparent;border-color:var(--late);color:var(--late);font-size:12px}
.profile-modal>.modal-footer{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}
.unified-trash-modal{max-width:640px}
.trash-area-nav{display:flex;gap:4px;padding:4px;border:1px solid var(--line);background:var(--panel-2);border-radius:10px;margin:0 0 20px}
.trash-area-nav button{flex:1;min-width:0;min-height:44px;padding:8px;border:1px solid transparent;background:transparent;font-size:12px;color:var(--muted)}
.trash-area-nav button.active{background:var(--accent-soft);color:var(--text);border-color:var(--accent)}
.trash-area-panel:not(.active){display:none}
.trash-row,.project-trash-card .project-card-top{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);min-width:0}
.trash-row>span:not(.pd),.project-trash-card strong{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px;font-weight:500}
.trash-row .pd,.project-trash-card .project-color-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%}
.trash-row button,.project-trash-card button{font-size:11px;color:var(--accent);background:transparent;flex:none;min-height:44px}
.trash-empty{display:grid;justify-items:center;gap:6px;padding:36px 18px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);text-align:center}
.trash-empty strong{font-size:13px;font-weight:500;color:var(--text)}
.trash-empty span{font-size:12px}
.trash-purge-action{display:block;margin:20px 0 0 auto;font-size:11px;background:transparent;border-color:var(--late);color:var(--late);min-height:44px}
#trashedProjectsSection{margin-top:22px}
@media(max-width:679px), (max-width:1023px) and (pointer:coarse) and (orientation:landscape){.profile-fields{grid-template-columns:minmax(0,1fr)}.profile-avatar-editor{gap:12px;padding:12px}.profile-avatar-editor button{padding:6px 8px}.profile-photo-help{max-width:190px}.trash-row{gap:8px}.trash-empty{padding:28px 12px}}
.profile-modal{display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
.profile-content{overflow:auto;overscroll-behavior:contain;min-height:0;max-height:calc(100dvh - 300px);padding-right:6px}
.profile-modal>.modal-footer{margin-top:14px}
.avatar-crop-stage{width:min(280px,100%);aspect-ratio:1;position:relative;overflow:hidden;border-radius:50%;margin:18px auto;background:var(--panel-2);touch-action:none;border:1px solid var(--line)}
.avatar-crop-stage img{display:block;width:100%;height:100%;object-fit:cover;user-select:none;pointer-events:none}
.avatar-zoom{width:100%;padding:0;background:transparent;border:0;accent-color:var(--accent)}
.avatar-zoom-label{font-size:12px;color:var(--muted)}
@media(max-width:679px), (max-width:1023px) and (pointer:coarse) and (orientation:landscape){.profile-content{max-height:calc(100dvh - 260px)}}

#modalSpaces{justify-content:flex-end;padding-top:calc(76px + var(--safe-top))}
#modalSpaces .space-switcher-menu{position:relative;top:auto;right:auto;bottom:auto;left:auto;display:block}




.library-mobile-list{display:grid;gap:9px;min-width:0;width:100%}
.library-mobile-list .library-card{min-width:0;max-width:100%;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
#appRoot .library-mobile-list .library-card-content{display:flex;width:100%;max-width:100%;min-width:0;gap:10px;padding:12px;min-height:76px}
#appRoot .library-mobile-list .ep-item-icon{width:36px;height:36px;min-width:36px;flex:0 0 36px;border-radius:9px}
#appRoot .library-mobile-list .ep-item-icon svg{width:20px;height:20px;max-width:20px;max-height:20px}
#appRoot .library-mobile-list .library-card-body{flex:1 1 0;width:0;min-width:0;overflow:hidden}
#appRoot .library-mobile-list .library-card-body b{font-size:13px;line-height:1.4}
#appRoot .library-mobile-list .library-card-body small{font-size:11px;line-height:1.4}
#appRoot .library-mobile-list .ep-kind-label{font-size:9px;margin-bottom:3px}
#appRoot .library-mobile-list .library-card-open{display:grid;place-items:center;flex:0 0 16px}
#appRoot .library-mobile-list .library-card-open svg{width:16px;height:16px}
@media(max-width:679px), (max-width:1023px) and (pointer:coarse) and (orientation:landscape){
 html{scrollbar-gutter:auto}
 #modalSpaces{align-items:flex-end;justify-content:center;padding:calc(12px + var(--safe-top)) 12px calc(12px + var(--safe-bottom))}
 #modalSpaces .space-switcher-menu{width:100%;max-width:440px}
 
 
 
 
 
 .profile-fields input,.profile-fields select,.ai-composer textarea{font-size:16px}
 
}

.pull-refresh-indicator{position:fixed;top:calc(10px + var(--safe-top));left:50%;z-index:55;display:grid;place-items:center;width:36px;height:36px;padding:8px;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--muted);opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,-58px)}
.pull-refresh-indicator svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.pull-refresh-indicator.visible{opacity:1;visibility:visible}
.pull-refresh-indicator.ready{color:var(--accent);border-color:var(--accent)}






.space-switcher-menu .modal-close{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:8px;font-size:22px;line-height:1;text-align:center}

.module-loading{padding:28px 16px;color:var(--muted);font-size:13px;text-align:center;border:1px dashed var(--line);border-radius:12px;margin:16px 0}


.space-menu-avatar{display:grid;place-items:center;width:36px;height:36px;min-width:36px;max-width:36px;aspect-ratio:1;flex:0 0 36px;border-radius:50%;overflow:hidden;background:var(--panel-2);color:var(--accent)}
.space-menu-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.space-menu-avatar svg{width:20px;height:20px}
.late-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.late-actions .range{margin:0}

/* ===== Refinos da varredura (17/11/2026) ===== */
/* Agenda: só a navegação útil de cada visão. A faixa de dias serve à visão Dia; Atrasos não navega por data;
   na Semana as setas do topo já pulam de semana em semana. */
body:not([data-agenda-view="dia"]) #agendaWeekStrip{display:none!important}
body[data-agenda-view="atrasados"] #dateNav{display:none!important}
#screen-semana .week-nav{display:none}
#appRoot .late-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#appRoot .late-actions .range{flex-basis:100%}
/* Semana no celular: três dias por vez, deslizando de lado com encaixe. */
#appRoot .ep-mobile .ep-week-grid{grid-template-columns:repeat(7,calc(100% / 3));overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
#appRoot .ep-mobile .ep-week-grid::-webkit-scrollbar{display:none}
#appRoot .ep-mobile .ep-week-column{scroll-snap-align:start}
/* Botão "+" se esconde ao rolar para baixo. */
#appRoot .ep-fab button{transition:transform 200ms ease,opacity 200ms ease}
#appRoot .ep-fab.fab-hidden button{transform:translateY(96px);opacity:0;pointer-events:none}
/* Tema claro: horários na cor da categoria, escurecida para dar contraste no fundo branco. */
:root[data-theme="light"] #appRoot .ep-item-time{color:color-mix(in srgb,var(--category-color,#245FB7) 55%,#000)}
/* Formulário: "É um período" como interruptor, na mesma linha do texto. */
.period-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin:4px 0 8px;cursor:pointer;color:var(--text);font-size:13px}
.toggle-switch{position:relative;flex:none;display:inline-flex}
.toggle-switch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.toggle-track{display:block;width:44px;height:26px;border-radius:999px;background:var(--line);transition:background 160ms ease}
.toggle-thumb{display:block;width:20px;height:20px;margin:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0005;transition:transform 160ms ease}
.toggle-switch input:checked+.toggle-track{background:var(--accent)}
.toggle-switch input:checked+.toggle-track .toggle-thumb{transform:translateX(18px)}
.toggle-switch input:focus-visible+.toggle-track{outline:2px solid var(--accent);outline-offset:2px}
/* Data e horário lado a lado também no celular. */
#modalItem .field-row{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
/* Busca única. */
.search-group{margin:14px 0 4px;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.search-result{display:flex;align-items:flex-start;gap:12px;width:100%;padding:12px 4px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--text);text-align:left;cursor:pointer}
.search-result .pd{width:9px;height:9px;border-radius:50%;margin-top:6px;flex:none}
.search-result-side{min-width:44px;color:var(--muted);font-size:12px;font-family:var(--font-mono,monospace)}
.search-result-body{display:grid;gap:2px;min-width:0}
.search-result-body b{font-weight:600;font-size:14px;overflow-wrap:anywhere}
.search-result-body small{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (prefers-reduced-motion:reduce){#appRoot .ep-fab button,.toggle-track,.toggle-thumb{transition:none}}

/* ===== Design (17/11/2026): Agora, hora atual, sequência de hábitos, telas vazias, grade da Biblioteca ===== */
/* Início: bloco "Agora" com o próximo compromisso e botão de concluir (usa o fundo azul do antigo "Hoje"). */
#appRoot .ep-now{align-items:center;gap:16px;min-height:96px}
#appRoot .ep-now-body{display:grid;gap:4px;min-width:0;flex:1;position:relative;z-index:1}
#appRoot .ep-now-body small:first-child{margin:0;color:#D6E5FF;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
#appRoot .ep-now-body b{font-size:20px;line-height:1.25;overflow-wrap:anywhere}
#appRoot .ep-now-body small:last-child{margin:0}
#appRoot .ep-now-done{position:relative;z-index:1;display:inline-flex;align-items:center;gap:8px;flex:none;min-height:44px;padding:0 16px;border:1px solid #FFFFFF55;border-radius:999px;background:#FFFFFF1F;color:#fff;font-weight:600;font-size:13px;cursor:pointer}
#appRoot .ep-now-done:hover{background:#FFFFFF33}
#appRoot .ep-now-done svg{width:18px;height:18px}
@media (max-width:679px){#appRoot .ep-now-done span{display:none}#appRoot .ep-now-done{width:48px;height:48px;padding:0;justify-content:center}}
/* Dia: linha da hora atual. */
#appRoot .ep-now-line{display:flex;align-items:center;gap:8px;margin:2px 0;color:var(--late,#FF8585);font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
#appRoot .ep-now-line::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}
#appRoot .ep-now-line::after{content:"";height:2px;flex:1;background:currentColor;border-radius:2px;opacity:.8}
#appRoot .ep-now-line span{order:-1;min-width:38px}
/* Hábitos: sequência de dias seguidos. */
.habit-streak{display:inline-flex;align-items:center;margin-left:6px;padding:1px 7px;border-radius:999px;background:color-mix(in srgb,#F0883E 18%,transparent);color:#F0883E;font-size:11px;font-weight:700;white-space:nowrap;vertical-align:middle}
:root[data-theme="light"] .habit-streak{color:#9A4A0F;background:#F0883E26}
/* Telas vazias com ícone e ação. */
#appRoot .ep-empty--rich{display:grid;justify-items:center;gap:8px;padding:28px 16px;text-align:center}
#appRoot .ep-empty--rich .ep-empty-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:var(--accent-soft);color:var(--accent)}
#appRoot .ep-empty--rich .ep-empty-icon svg{width:26px;height:26px}
#appRoot .ep-empty--rich strong{font-size:15px}
#appRoot .ep-empty--rich span:not(.ep-empty-icon){color:var(--muted);font-size:13px;max-width:320px}
#appRoot .ep-empty--rich button{margin-top:6px}
/* Biblioteca: grade de cartões no computador. */
@media (min-width:680px){#appRoot .library-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}}

/* ===== Tutorial guiado ===== */
.tour-layer{position:fixed;inset:0;z-index:300}
.tour-spot{position:fixed;border-radius:16px;box-shadow:0 0 0 9999px rgba(4,7,14,.72),0 0 0 2px var(--accent);transition:left 260ms cubic-bezier(.2,.8,.2,1),top 260ms cubic-bezier(.2,.8,.2,1),width 260ms cubic-bezier(.2,.8,.2,1),height 260ms cubic-bezier(.2,.8,.2,1);pointer-events:none}
.tour-spot--none{left:50%!important;top:50%!important;width:0!important;height:0!important;box-shadow:0 0 0 9999px rgba(4,7,14,.72)}
.tour-card{position:fixed;width:min(340px,calc(100vw - 32px));padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--text);box-shadow:0 24px 60px -20px #000c}
.tour-card h2{margin:10px 0 6px;font-size:18px;line-height:1.3}
.tour-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}
.tour-progress{display:flex;gap:6px}
.tour-progress i{width:6px;height:6px;border-radius:50%;background:var(--line);transition:width 200ms ease,background 200ms ease}
.tour-progress i.on{width:18px;border-radius:999px;background:var(--accent)}
.tour-actions{display:flex;align-items:center;gap:8px;margin-top:16px}
.tour-actions span{flex:1}
.tour-actions button{min-height:44px;padding:0 14px;border-radius:12px;font-weight:600;font-size:14px;cursor:pointer}
.tour-skip{border:0;background:transparent;color:var(--muted)}
.tour-back{border:1px solid var(--line);background:transparent;color:var(--text)}
.tour-next{border:0;background:var(--accent);color:#fff}
.tour-enter{animation:tour-in 240ms cubic-bezier(.2,.8,.2,1) backwards}
@keyframes tour-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.tour-spot,.tour-progress i{transition:none}.tour-enter{animation:none}}
