/* Bosque v6 · Perfiles ilustrados, modo oscuro y sesiones terminadas. */
.header-actions{display:flex;align-items:center;gap:9px;margin-left:auto;position:relative}
.theme-toggle{width:43px;height:43px;border:1px solid var(--edge);background:var(--cream);color:var(--ink);font-size:23px;border-radius:13px;cursor:pointer}
.profile-trigger{display:flex;align-items:center;gap:7px;border:1px solid var(--edge);color:var(--ink);background:var(--cream);padding:4px 9px 4px 4px;border-radius:16px;font-size:12px;font-weight:800}
.profile-trigger .illustrated-avatar{--avatar-size:42px}
.illustrated-avatar{display:block;width:var(--avatar-size,48px);height:var(--avatar-size,48px);border-radius:50%;background:#e4e9d5;object-fit:cover;flex:none}
.profiles-popover{position:absolute;z-index:50;right:0;top:calc(100% + 12px);width:min(410px,90vw);max-height:75vh;overflow:auto;background:var(--cream);border:1px solid var(--edge);box-shadow:0 14px 42px #172b1b33;border-radius:19px;padding:17px;color:var(--ink)}
.popover-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.profile-tile{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;background:var(--paper);border:1px solid var(--edge);border-radius:14px;padding:10px 5px;min-width:0}
.profile-tile.active{outline:2px solid var(--forest);outline-offset:-2px}
.profile-tile .chip-inline{display:flex;flex-direction:column;align-items:center;gap:5px;border:0;background:transparent;color:var(--ink);cursor:pointer;font-weight:700;max-width:100%;overflow-wrap:anywhere}
.profile-tile .edit-mini{border:0;background:transparent;color:var(--forest);text-decoration:underline;cursor:pointer;font-size:11px}
.profile-subtools{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}
.profile-subtools .btn{font-size:11px}
.brand-profiles{cursor:pointer;color:var(--forest);font:inherit}
.avatar-choice{background:var(--paper);border:2px solid transparent;border-radius:16px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:7px;cursor:pointer;color:var(--ink);font-size:11px}
.avatar-choice.active{border-color:var(--forest);background:var(--sage)}
.avatars-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:10px 0}
.sync-pill{font-size:11px;color:var(--forest);border:1px solid var(--edge);padding:8px 9px;border-radius:12px;background:var(--sage)}
.session-check{flex:none;width:18px;height:18px;accent-color:var(--forest);cursor:pointer}
.session-finished .event-title,.session-finished .detail-body,.session-row.is-finished .session-main{text-decoration:line-through;opacity:.6}
.session-finished{background:var(--sage) !important;opacity:.68}
.session-row.is-finished{opacity:.74}
.auth-gate{position:fixed;z-index:100;inset:0;background:#17281edb;backdrop-filter:blur(7px);display:grid;place-items:center;padding:20px}
.auth-card{width:min(430px,100%);max-height:90vh;overflow:auto;text-align:center;border-radius:25px;background:var(--cream);color:var(--ink);padding:29px 26px;border:1px solid var(--edge);box-shadow:0 18px 65px #0004}
.auth-card h2{margin:13px 0 7px}.auth-card p{font-size:13px}.auth-onboarding{text-align:left;margin:15px 0}
.auth-onboarding .btn{margin:7px 0}.cloud-warning{position:fixed;bottom:16px;left:16px;right:16px;z-index:95;max-width:750px;padding:12px 15px;background:#fbe3d1;border:1px solid #d7a87c;color:#663f2c;border-radius:14px;box-shadow:0 5px 25px #0002;font-size:13px}
:root[data-theme="dark"]{color-scheme:dark;--paper:#151f1c;--cream:#202d29;--cream-dark:#2d3a33;--forest:#b2d3a6;--forest-dark:#d3e8c4;--sage:#324e3d;--ink:#edf1e6;--muted:#b2c0b4;--edge:#45594c;--orange:#b9735e;--shadow:0 7px 28px #0004}
:root[data-theme="dark"] body{background:radial-gradient(circle at 20% 10%,#233b2d 0,transparent 42%),#141f1b}
:root[data-theme="dark"] .sidebar,:root[data-theme="dark"] .chip,:root[data-theme="dark"] .btn,:root[data-theme="dark"] .filters select,:root[data-theme="dark"] .weeknames,:root[data-theme="dark"] .view-tabs{background:var(--cream);color:var(--ink);border-color:var(--edge)}
:root[data-theme="dark"] .hero{background:linear-gradient(115deg,#293f30,#343e31 70%,#4a3b30)}
:root[data-theme="dark"] .hero h2,:root[data-theme="dark"] .hero p,:root[data-theme="dark"] .eyebrow{color:var(--ink)}
:root[data-theme="dark"] .daycell.outside,:root[data-theme="dark"] .week-column,:root[data-theme="dark"] .hour-drop,:root[data-theme="dark"] .kanban-col,:root[data-theme="dark"] .project-card,:root[data-theme="dark"] .capacity-card{background:#26332d;color:var(--ink);border-color:var(--edge)}
:root[data-theme="dark"] .daycell,:root[data-theme="dark"] .month-grid,:root[data-theme="dark"] .weeknames,:root[data-theme="dark"] .event,:root[data-theme="dark"] .event-title{border-color:var(--edge)}
:root[data-theme="dark"] .event{--event-fill:#344a3c!important;background:var(--event-fill)!important;color:#f3f3e9}
:root[data-theme="dark"] .event:hover,:root[data-theme="dark"] .daycell:hover,:root[data-theme="dark"] .hour-drop:hover{background:#375443!important}
:root[data-theme="dark"] .modal,:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea,:root[data-theme="dark"] .kanban-task{background:var(--cream);color:var(--ink);border-color:var(--edge)}
:root[data-theme="dark"] .kanban-title,:root[data-theme="dark"] .priority{color:var(--ink)}
:root[data-theme="dark"] .forest-art p{background:#27362deb;color:#f0f2e7;border-color:var(--edge)}
:root[data-theme="dark"] .btn.primary{background:#ba745f;color:#fff}
@media(max-width:760px){.header-actions{width:100%;justify-content:flex-end}.profile-trigger-label{display:none}.sync-pill{font-size:10px}.topbar{gap:10px}.profiles-popover{right:0}.profile-grid{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion: reduce){.illustrated-avatar,.pet{animation:none!important}}
.profile-tile:hover{background:var(--sage)}
.session-finished .tree-session-label{text-decoration:line-through;opacity:.7}
:root[data-theme="dark"] .weeknames span,:root[data-theme="dark"] .week-column small,:root[data-theme="dark"] .month-grid .daynum{color:var(--ink)}
:root[data-theme="dark"] .forest-art{border-color:var(--edge)}
:root[data-theme="dark"] .session-finished{background:#3d5a46!important;color:var(--ink)!important}
:root[data-theme="dark"] .check,:root[data-theme="dark"] .profile-tile,:root[data-theme="dark"] .avatar-choice{background:#293a30;color:var(--ink)}
