.companion-hub-backdrop{position:fixed;right:1rem;bottom:1rem;z-index:2000;width:min(480px,calc(100vw - 2rem));max-height:calc(100vh - 2rem);pointer-events:none}.companion-hub-backdrop[hidden]{display:none}.companion-hub{position:relative;width:100%;max-height:calc(100vh - 2rem);overflow:auto;pointer-events:auto;border-radius:26px;background:var(--panel,#fff);color:var(--text,#172b39);box-shadow:0 24px 70px rgba(0,0,0,.28);border:1px solid var(--line,#d5e0e4)}
.hub-close{position:absolute;z-index:3;right:.8rem;top:.8rem;width:42px!important;height:42px;border-radius:13px;border:1px solid var(--line,#d5e0e4);background:var(--panel,#fff);color:var(--text,#172b39);font-size:1.55rem}.hub-hero{height:150px;display:grid;place-items:end center;background:var(--hub-hero,linear-gradient(145deg,#e9f4f4,#edf1fb));overflow:hidden}.hub-hero>div{height:138px;width:190px;display:grid;place-items:end center}.hub-hero img{display:block;max-width:100%;max-height:100%;object-fit:contain}.hub-body{padding:1.15rem}.hub-body h2{font-size:1.55rem;margin:.08rem 0}.hub-role{margin:.15rem 0 .8rem;color:var(--muted,#647682)}.hub-message{min-height:auto;padding:.85rem 1rem;border:1px solid var(--line,#d5e0e4);border-radius:16px;background:var(--soft-panel,#f6f8fa);font-size:.98rem;line-height:1.48}.hub-actions{display:flex;flex-wrap:wrap;gap:.42rem;margin-top:.85rem}.hub-actions button,.hub-duration button,.hub-session-buttons button,.hub-theme-grid button,.hub-companion-grid button{border:1px solid var(--line,#d5e0e4);border-radius:999px;padding:.58rem .75rem;background:var(--panel,#fff);color:var(--text,#172b39);font-weight:750}.hub-actions button{font-size:.78rem}.hub-actions .primary,.hub-session-buttons .primary{background:var(--accent,#347f83);border-color:var(--accent,#347f83);color:#fff}.hub-privacy{font-size:.75rem;color:var(--muted,#647682);margin:.8rem 0 0}.hub-insight{display:grid;gap:.65rem;margin-top:.7rem}.hub-insight section{padding:.75rem .9rem;border:1px solid var(--line,#d5e0e4);border-radius:15px;background:var(--panel,#fff)}.hub-insight h3{margin:0 0 .4rem;font-size:.9rem}.hub-insight ul{display:grid;gap:.35rem;margin:0;padding-left:1.15rem}.hub-insight li{font-size:.86rem;line-height:1.4;color:var(--text,#172b39)}
.hub-session{margin-top:.75rem}.hub-session label{display:grid;gap:.35rem;font-weight:700}.hub-session input{width:100%;min-height:44px;border:1px solid var(--line,#d5e0e4);border-radius:12px;padding:.65rem .8rem;background:var(--field-bg,var(--panel,#fff));color:var(--field-text,var(--text,#172b39))}.hub-duration{display:grid;grid-template-columns:repeat(5,1fr);gap:.35rem;margin:.75rem 0}.hub-duration button{border-radius:12px;padding:.62rem .2rem}.hub-duration button.active{outline:3px solid color-mix(in srgb,var(--accent,#347f83) 25%,transparent);border-color:var(--accent,#347f83)}.hub-clock{text-align:center;font:800 2.8rem/1 ui-monospace,monospace;margin:1rem 0 .4rem}.hub-clock-state{text-align:center;color:var(--muted,#647682);font-size:.84rem}.hub-session-buttons{display:flex;justify-content:center;gap:.5rem}.hub-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.4rem;margin-top:.75rem}.hub-stats span{display:grid;text-align:center;padding:.55rem;border-radius:12px;background:var(--soft-panel,#f3f6f8)}.hub-stats strong{font-size:1.1rem}.hub-stats small{color:var(--muted,#647682);font-size:.7rem}.hub-config h3{margin:.8rem 0 .5rem}.hub-theme-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.4rem}.hub-theme-grid button{border-radius:12px;padding:.58rem .35rem;font-size:.76rem}.hub-theme-grid button.active,.hub-companion-grid button.active{border-color:var(--accent,#347f83);box-shadow:inset 0 0 0 2px var(--accent,#347f83)}.hub-companion-grid{display:grid;grid-template-columns:1fr 1fr;gap:.45rem}.hub-companion-grid button{border-radius:14px;display:grid;grid-template-columns:48px 1fr;grid-template-rows:auto auto;text-align:left;padding:.5rem}.hub-companion-grid button>span{grid-row:1/3;width:44px;height:44px}.hub-companion-grid img{width:100%;height:100%;object-fit:contain}.hub-companion-grid small{color:var(--muted,#647682);font-size:.7rem}
@media(max-width:620px){.companion-hub-backdrop{right:.4rem;bottom:.4rem;width:calc(100vw - .8rem);max-height:calc(100dvh - .8rem)}.companion-hub{max-height:calc(100dvh - .8rem);border-radius:22px}.hub-hero{height:112px}.hub-hero>div{height:105px}.hub-body{padding:1rem}.hub-actions{max-height:128px;overflow:auto}.hub-duration{grid-template-columns:repeat(3,1fr)}.hub-theme-grid{grid-template-columns:repeat(2,1fr)}.hub-companion-grid{grid-template-columns:1fr}.hub-stats{grid-template-columns:1fr 1fr 1fr}}
/* V0.12 assistant contextuel */
.hub-hero{height:168px;overflow:hidden;padding:8px 52px 0;background:var(--hub-hero)}
.hub-hero>div{position:relative;width:230px;height:156px;place-items:end center;overflow:hidden}
.hub-hero img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:center bottom}
.hub-insight-title{margin:.2rem 0 .05rem;font-size:1.02rem}
.hub-context-actions{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.75rem}
.hub-context-actions button{border:1px solid var(--line);border-radius:999px;padding:.58rem .78rem;background:var(--panel);color:var(--text);font-size:.78rem;font-weight:800}
.hub-context-actions button:hover{border-color:var(--accent);background:var(--soft-accent);color:var(--accent-strong)}
.hub-actions{padding-top:.75rem;border-top:1px solid var(--line)}
.hub-theme-grid button{display:grid;grid-template-columns:28px 1fr;align-items:center;gap:.35rem;text-align:left}
.hub-theme-icon{display:grid;width:26px;height:26px;place-items:center;border-radius:9px;background:var(--soft-accent)}
.hub-theme-icon::before{content:"◆"}.theme-icon-professional::before{content:"■"}.theme-icon-constellation::before{content:"✦"}.theme-icon-aurora::before{content:"☀"}.theme-icon-sparkle::before{content:"🦄"}.theme-icon-mission::before{content:"⌁"}.theme-icon-real::before{content:"◉"}
@media(max-width:620px){.hub-hero{height:138px;padding:5px 44px 0}.hub-hero>div{height:128px;width:200px}.hub-context-actions{display:grid}.hub-context-actions button{width:100%}}