/* SmartFont · Área de trabalho em janelas (ativa só em telas ≥ 900px: html.ws) */
html.ws{--ws-acento:#f26b2c;--ws-sombra:0 18px 50px rgba(20,26,38,.16),0 2px 8px rgba(20,26,38,.06)}

/* ---------- janela ---------- */
html.ws .ws-win{position:fixed;display:flex;flex-direction:column;min-width:360px;min-height:220px;background:var(--bg,#f3f4f7);border:1px solid var(--line,#d5d9e1);border-radius:14px;box-shadow:var(--ws-sombra);overflow:hidden;animation:wsAbre .16s ease-out}
@keyframes wsAbre{from{opacity:0;transform:scale(.985) translateY(6px)}to{opacity:1;transform:none}}
html.ws .ws-win.ws-foco{border-color:#f0b393;box-shadow:0 24px 60px rgba(20,26,38,.22),0 0 0 1px #f26b2c22}
html.ws .ws-win.ws-min{display:none}
html.ws .ws-win.ws-max{left:262px!important;top:80px!important;right:8px;bottom:56px;width:auto!important;height:auto!important;border-radius:12px}
html.ws .ws-win.ws-movendo{user-select:none;animation:none}
html.ws .ws-win.ws-movendo iframe{pointer-events:none}

html.ws .ws-bar{display:flex;align-items:center;gap:8px;flex:0 0 42px;height:42px;padding:0 6px 0 14px;background:var(--panel,#fff);border-bottom:1px solid var(--line,#e3e5e9);cursor:grab;user-select:none;touch-action:none}
html.ws .ws-win.ws-movendo .ws-bar{cursor:grabbing}
html.ws .ws-ico{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#fff0e8;color:#d95d27;font-size:13px}
html.ws .ws-titulo{font-size:13px;font-weight:680;color:var(--text,#1b1f27);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.ws .ws-esp{flex:1}
html.ws .ws-btn{display:grid;place-items:center;width:30px;height:28px;padding:0;margin:0;border:0;border-radius:8px;background:transparent;color:var(--muted,#6b7280);font-size:15px;line-height:1;cursor:pointer;box-shadow:none}
html.ws .ws-btn:hover{background:var(--panel2,#f1f2f5);color:var(--text,#1b1f27)}
html.ws .ws-btn[data-ws-acao="info"]{font:italic 700 13px Georgia,serif}
html.ws .ws-win.ws-info .ws-btn[data-ws-acao="info"]{background:#fff0e8;color:#d95d27}
html.ws .ws-fechar:hover{background:#e5484d!important;color:#fff!important}

html.ws .ws-corpo{flex:1;min-height:0;overflow:auto;padding:20px 22px 28px;overscroll-behavior:contain}
html.ws .ws-corpo>section.view{display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important}
html.ws .ws-redim{position:absolute;right:0;bottom:0;width:18px;height:18px;cursor:nwse-resize;touch-action:none;background:linear-gradient(135deg,transparent 55%,var(--line,#cfd3da) 55%,var(--line,#cfd3da) 62%,transparent 62%,transparent 72%,var(--line,#cfd3da) 72%,var(--line,#cfd3da) 79%,transparent 79%)}
html.ws .ws-win.ws-max .ws-redim{display:none}

/* ---------- menos texto: descrições ficam escondidas até clicar no "i" ---------- */
html.ws .ws-win:not(.ws-info) .head-text>p.hint,
html.ws .ws-win:not(.ws-info) .section-head>p.hint,
html.ws .ws-win:not(.ws-info) .head-text>p:not([id]),
html.ws .ws-win:not(.ws-info) .ini-card small,
html.ws .modules-list .module-item small{display:none!important}

/* ---------- áreas do Início dentro da janela ---------- */
html.ws .ws-ini-grade{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;align-content:start}
html[data-php-ui="1"].ws #inicio .ws-win .ws-ini-grade>[data-bloco]:not(.hidden):not(.ini-oculto),
html[data-php-ui="1"].ws #inicio .ws-win .ws-ini-grade>#iniExtras>[data-bloco]:not(.hidden):not(.ini-oculto){display:block!important}
html.ws .ws-ini-grade>[data-bloco],html.ws .ws-ini-grade>#iniExtras>[data-bloco]{grid-column:span var(--larg,6);margin-top:0!important;min-width:0}
html.ws .ws-ini-grade>[data-bloco="numeros"]{grid-column:1/-1}
html.ws .ws-win #iniListaVoltar{display:none}

/* ---------- área de trabalho ---------- */
html[data-php-ui="1"].ws #inicio #iniHomeHub{max-width:1180px;padding-bottom:70px}
html[data-php-ui="1"].ws #inicio .ws-sub{margin-top:30px}
html[data-php-ui="1"].ws #inicio .ws-atalhos{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
html[data-php-ui="1"].ws #inicio .ws-tile{min-height:104px;padding:16px;gap:12px}
html[data-php-ui="1"].ws #inicio .ws-tile>b{font-size:12.5px;line-height:1.25}
html.ws .ws-tile-svg svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html.ws .ws-tile-svg .php-nav-emoji{display:none}

/* ---------- barra de janelas ---------- */
html.ws .ws-barra{position:fixed;left:262px;right:8px;bottom:8px;z-index:96;display:flex;align-items:center;gap:6px;height:42px;padding:4px 6px;overflow-x:auto;background:color-mix(in srgb,var(--panel,#fff) 88%,transparent);backdrop-filter:blur(14px);border:1px solid var(--line,#e3e5e9);border-radius:12px;box-shadow:0 8px 26px rgba(20,26,38,.1);scrollbar-width:none}
html.ws .ws-barra.vazia{display:none}
html:not(.ws) .ws-barra{display:none}
html.ws .ws-chip{display:flex;align-items:center;gap:7px;flex:0 0 auto;max-width:200px;height:32px;padding:0 12px;margin:0;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--text,#1b1f27);font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;box-shadow:none}
html.ws .ws-chip:hover{background:var(--panel2,#f1f2f5)}
html.ws .ws-chip.foco{background:#fff0e8;border-color:#f6c7ae;color:#c4501d}
html.ws .ws-chip.min{opacity:.55}
html.ws .ws-chip-casa,html.ws .ws-chip-org{width:34px;padding:0;justify-content:center;font-size:16px;color:var(--muted,#6b7280)}
html.ws .ws-chip-org{margin-left:auto}

/* ---------- modais arrastáveis ---------- */
html.ws .modal .modal-head{cursor:grab;user-select:none}

/* ---------- tema escuro ---------- */
html.ws:not([data-tema="claro"]) .ws-ico,html.ws:not([data-tema="claro"]) .ws-chip.foco{background:#3a2a22;color:#ff9a6b;border-color:#5a3a2a}

/* números do dia se ajustam à largura da janela */
html.ws .ws-ini-grade .ini-cards{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;overflow:visible}

/* menu lateral enxuto: ícone + nome numa linha; o pino só aparece ao passar o mouse */
html[data-php-ui="1"].ws #modulesDrawer .module-item[data-view]{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;min-height:36px!important;height:auto!important;padding:7px 10px!important;text-align:left!important}
html[data-php-ui="1"].ws #modulesDrawer .module-item[data-view] b{flex:1;font-size:12.5px;font-weight:600;margin:0!important}
html[data-php-ui="1"].ws #modulesDrawer .module-item[data-view] .php-nav-icon{margin:0!important;flex:0 0 auto}
html[data-php-ui="1"].ws #modulesDrawer .module-item[data-view] .pin{opacity:0;transition:opacity .15s;position:static!important}
html[data-php-ui="1"].ws #modulesDrawer .module-item[data-view]:hover .pin{opacity:.8}

/* ---------- telas que hospedam janelas continuam vivas mesmo quando outra está na tela ---------- */
html.ws section.view.ws-host:not(.active){display:block!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;overflow:visible!important}
html.ws section.view.ws-host:not(.active)>:not(.ws-win){display:none!important}

/* pedaço destacado: ocupa a janela inteira, sem margens de quando estava na tela */
html.ws .ws-corpo>.ws-destacado{margin:0!important;max-width:none!important;width:auto!important;max-height:none!important;position:static!important;transform:none!important}
html.ws .ws-corpo>.ws-destacado.panel,html.ws .ws-corpo>.ws-destacado.table-wrap{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}

/* lugar onde estava o pedaço: um clique traz de volta */
html.ws .ws-lugar{display:flex;align-items:center;justify-content:center;min-height:54px;margin:6px 0;border:1.5px dashed #f3b899;border-radius:12px;background:#fff8f4}
html.ws .ws-lugar button{display:flex;align-items:center;gap:8px;margin:0;padding:8px 14px;border:0;border-radius:9px;background:transparent;color:#c4501d;font-size:12px;font-weight:650;box-shadow:none;cursor:pointer}
html.ws .ws-lugar button:hover{background:#ffeadf}

/* dica (aparece uma vez) */
html.ws .ws-dica{position:fixed;left:50%;bottom:64px;transform:translateX(-50%);z-index:97;display:flex;align-items:center;gap:12px;padding:10px 10px 10px 16px;border-radius:12px;background:#1f232b;color:#e9ebef;font-size:12.5px;box-shadow:0 14px 40px rgba(0,0,0,.25);animation:wsAbre .2s ease-out}
html.ws .ws-dica b{color:#ff9a6b;font-weight:700}
html.ws .ws-dica button{margin:0;padding:6px 12px;border:0;border-radius:8px;background:#f26b2c;color:#fff;font-size:12px;font-weight:650;cursor:pointer}
html.ws .ws-barra-fim{display:flex;gap:4px;margin-left:auto}
html.ws .ws-barra-fim .ws-chip-org{margin-left:0}

/* ================== Identidade Smart Font ================== */
html[data-php-ui="1"] .php-sidebar-brand{gap:11px;padding:4px 8px 26px;letter-spacing:0}
html[data-php-ui="1"] img.php-sidebar-mark{width:42px;height:42px;flex:0 0 42px;padding:0;border-radius:0;background:none;box-shadow:none;object-fit:contain;filter:drop-shadow(0 4px 10px rgba(242,107,44,.35))}
html[data-php-ui="1"] .php-sidebar-nome{display:flex;flex-wrap:wrap;align-items:baseline;line-height:1}
html[data-php-ui="1"] .php-sb-smart{color:#fff;font-size:19px;font-weight:700;letter-spacing:-.4px}
html[data-php-ui="1"] .php-sb-font{color:#ff7a3d;font-size:19px;font-weight:700;letter-spacing:-.4px}
html[data-php-ui="1"] .php-sidebar-nome small{flex-basis:100%;margin-top:6px;color:#8d95a3;font-size:8.5px;font-weight:650;letter-spacing:2.2px}

/* menu lateral */
html[data-php-ui="1"].ws #modulesDrawer{background:linear-gradient(180deg,#1c2028 0%,#20252e 100%)}
html[data-php-ui="1"].ws #modulesDrawer .php-nav-label{margin:18px 10px 6px;color:#6f7786;font-size:9.5px;font-weight:700;letter-spacing:1.6px}
html[data-php-ui="1"].ws #modulesDrawer .module-item[data-view]{position:relative;border:0!important;border-radius:9px!important;color:#c9ced6!important;background:transparent!important;transition:background .14s,color .14s}
html[data-php-ui="1"].ws #modulesDrawer .module-item[data-view]:hover{background:#ffffff0d!important;color:#fff!important}
html[data-php-ui="1"].ws #modulesDrawer .module-item[data-view].active{background:linear-gradient(90deg,#f26b2c26,#f26b2c08)!important;color:#fff!important;box-shadow:none!important}
html[data-php-ui="1"].ws #modulesDrawer .module-item[data-view].active:before{content:"";position:absolute;left:-15px;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:#f26b2c}
html[data-php-ui="1"].ws #modulesDrawer .module-item[data-view].active b{color:#fff}
html[data-php-ui="1"].ws #modulesDrawer .module-item[data-view].active .php-nav-icon{color:#ff8a52}
html[data-php-ui="1"].ws #modulesDrawer .php-nav-icon svg{width:17px;height:17px}
html[data-php-ui="1"].ws #modulesDrawer .php-nav-search input{border-radius:10px;border:1px solid #ffffff12;background:#ffffff0a;color:#fff}

/* área de trabalho */
html[data-php-ui="1"].ws #inicio .ini-home-title{margin:0 0 12px;color:#8a909b;font-size:10.5px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase}
html[data-php-ui="1"].ws #inicio .ini-home-tile{border-radius:16px;border-color:#eceef2;box-shadow:0 1px 2px #1a20290a,0 6px 18px #1a202908}
html[data-php-ui="1"].ws #inicio .ini-home-tile:hover{transform:translateY(-3px);border-color:#f4b796;box-shadow:0 2px 4px #1a20290a,0 14px 30px #f26b2c1c}
html[data-php-ui="1"].ws #inicio .ini-home-tile>i{opacity:0;transition:opacity .15s,transform .15s}
html[data-php-ui="1"].ws #inicio .ini-home-tile:hover>i{opacity:1;transform:translate(2px,-2px)}
html[data-php-ui="1"].ws #inicio .ini-home-tile-icon{border-radius:12px}
html[data-php-ui="1"].ws #inicio .ini-home-tile-dia{background:linear-gradient(140deg,#ff8a4c,#ec5d21);border-color:transparent}

/* janelas: cabeçalho com a marca */
html.ws .ws-win.ws-foco .ws-bar{background:linear-gradient(180deg,#fff,#fffaf7)}
html.ws:not([data-tema="claro"]) .ws-win.ws-foco .ws-bar{background:var(--panel)}
html[data-php-ui="1"].ws #inicio .ini-home-title.ws-sub{margin-top:34px}
