/* Home, the owner's pass of 2026-12-04: the mascot sits beside the greeting (as Claude's mark does), the two composer
   switches are bare icons that light up green when on, and the suggestions come in four colours and rise in. */

/* The mascot beside the greeting, not above it. */
.hm-greet{display:flex;align-items:center;justify-content:center;gap:14px;margin:14px 0 24px;max-width:100%}
.hm-greet .w-greet{margin:0;min-width:0}
.hm-greet .mascot{flex:none}

/* GenZ and Approve all: only the icon, no pill. On = the icon turns green and fills softly; it pops once as it turns
   on, and nothing pulses after that (owner: a constant glow looked cheap). */
.w-comp .w-bropill.genz,.w-comp .w-bropill.appr{position:relative;width:34px;height:34px;padding:0;justify-content:center;border:0;border-radius:50%;background:transparent;color:var(--stone)}
.w-comp .w-bropill.genz>span:not(.hm-tip),.w-comp .w-bropill.appr>span:not(.hm-tip),.w-comp .w-bropill.appr .dot{display:none}
.w-comp .w-bropill.genz:hover,.w-comp .w-bropill.appr:hover{background:var(--chalk);color:var(--graphite)}
.w-comp .w-bropill.genz svg,.w-comp .w-bropill.appr svg{width:20px;height:20px;transition:color var(--t-quick),fill var(--t-quick),transform var(--t-quick)}
.w-comp .w-bropill.genz:active svg,.w-comp .w-bropill.appr:active svg{transform:scale(.88)}
/* GenZ is on when .on; Approve all is on when nothing waits for you (the pill drops .on for "Ask first"). */
.w-comp .w-bropill.genz.on,.w-comp .w-bropill.appr:not(.on){color:var(--green)}
.w-comp .w-bropill.genz.on:hover,.w-comp .w-bropill.appr:not(.on):hover{background:var(--mint-tint,rgba(69,215,162,.14));color:var(--green)}
.w-comp .w-bropill.appr:not(.on) svg{fill:color-mix(in srgb,var(--mint) 30%,transparent)}
.w-comp .w-bropill.genz.on svg{animation:hm-pop .38s ease-out}
@keyframes hm-pop{50%{transform:scale(1.2)}}

/* The hover card: what the switch does, in our own card, not the browser tooltip. */
.hm-tip{display:none}
.w-comp .hm-tip{display:block;position:absolute;bottom:calc(100% + 10px);inset-inline-start:50%;translate:-50% 4px;width:max-content;max-width:250px;padding:10px 12px;border-radius:var(--r-sm);background:var(--graphite);color:var(--paper);text-align:start;white-space:normal;box-shadow:var(--s2,0 8px 24px rgba(0,0,0,.16));opacity:0;visibility:hidden;pointer-events:none;transition:opacity .14s ease,translate .14s ease,visibility 0s linear .14s;z-index:30}
.w-comp .hm-tip b{display:block;font:600 13px/1.3 var(--ui)}
.w-comp .hm-tip small{display:block;margin-top:3px;font:400 12px/1.4 var(--ui);opacity:.75}
.w-comp .w-bropill:hover .hm-tip,.w-comp .w-bropill:focus-visible .hm-tip{opacity:1;visibility:visible;translate:-50% 0;transition-delay:.25s,.25s,0s}
.w-comp .popwrap:has(.pop.open) .hm-tip{display:none}
[dir="rtl"] .w-comp .hm-tip{translate:50% 4px}
[dir="rtl"] .w-comp .w-bropill:hover .hm-tip{translate:50% 0}
html[data-theme="dark"] .w-comp .hm-tip{background:#34393E;color:#F1F3EE}

/* Suggestions: four colours, each a soft tint with its own icon colour. */
.w-starts .w-sugg{--tone:var(--green);background:color-mix(in srgb,var(--tone) 9%,var(--paper));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tone) 28%,transparent)}
.w-starts .w-sugg svg.i{color:var(--tone)}
.w-starts .w-sugg:hover{background:color-mix(in srgb,var(--tone) 16%,var(--paper));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tone) 50%,transparent);transform:translateY(-2px)}
.w-starts .hm-tone0{--tone:var(--pink)}
.w-starts .hm-tone1{--tone:var(--green)}
.w-starts .hm-tone2{--tone:#7C5CFF}
.w-starts .hm-tone3{--tone:#E0901A}
html[data-theme="dark"] .w-starts .w-sugg{background:color-mix(in srgb,var(--tone) 14%,transparent)}
html[data-theme="dark"] .w-starts .w-sugg:hover{background:color-mix(in srgb,var(--tone) 22%,transparent)}

/* They rise in one after another, each from a little to the side, as if settling into a new order. */
.w-starts .w-sugg{animation:hm-settle .62s cubic-bezier(.2,.9,.25,1.25) backwards;animation-delay:calc(var(--i,0) * 70ms + 120ms)}
.w-starts .w-sugg:nth-child(odd){--from:-26px}
.w-starts .w-sugg:nth-child(even){--from:26px}
@keyframes hm-settle{0%{opacity:0;transform:translate(var(--from,0),14px) scale(.9)}100%{opacity:1;transform:none}}

@media (prefers-reduced-motion:reduce){
  .w-starts .w-sugg,.w-comp .w-bropill svg{animation:none!important}
}
@media (max-width:760px){.hm-greet{gap:10px}.hm-greet .mascot{transform:scale(.85)}}
.w-comp .tools{position:relative;z-index:3}

/* Where it runs: a small switch in the tool row (mark + short name), opening a short list above it. */
.hm-placebtn{display:inline-flex;align-items:center;gap:6px;height:28px;max-width:170px;padding:0 8px 0 8px;border-radius:999px;font-size:13px;font-weight:600;color:var(--graphite);background:transparent;transition:background var(--t-quick)}
.hm-placebtn:hover,.hm-place .pop.open~.hm-placebtn,.hm-place:has(.pop.open) .hm-placebtn{background:var(--chalk)}
.hm-placebtn svg.i,.hm-placebtn .lgo{width:16px;height:16px;flex:none}
.hm-placebtn svg.i{color:var(--stone)}
.hm-placebtn .pl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-placebtn .chv{width:12px!important;height:12px!important;opacity:.6}
.pop.place.mini{min-width:210px;max-width:260px;padding:5px}
.pop.place.mini button,.pop.place.mini a{display:flex;align-items:center!important;gap:9px;min-height:36px;padding:6px 9px;border-radius:var(--r-xs);font-size:13.5px}
.pop.place.mini button>svg.i:first-child,.pop.place.mini button>.lgo{margin-top:0!important;width:17px;height:17px;flex:none}
.pop.place.mini .pn{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.pop.place.mini .pd{flex:none;width:7px;height:7px;border-radius:50%;background:var(--mint)}
.pop.place.mini .pd.off{background:var(--line)}
.pop.place.mini .pu{font-size:12px;color:var(--pink);font-weight:600}
.pop.place.mini .chk{width:15px;height:15px;flex:none;visibility:hidden}
.pop.place.mini .sel .chk{visibility:visible}
.pop.place.mini button.off:not(.sel) .pn{color:var(--stone)}
.pop.place.mini .pdev{margin-top:4px;box-shadow:inset 0 1px 0 var(--chalk);border-radius:0 0 var(--r-xs) var(--r-xs);color:var(--stone)}
.pop.place.mini .pdev svg.i{width:15px;height:15px}
.pop.place.mini .pnone{padding:8px 9px;font-size:13px;color:var(--stone)}

.pop.place.mini .ps{display:inline-flex;align-items:center;gap:5px;flex:none;font-size:12px;font-weight:600;color:var(--green)}
.pop.place.mini .ps.off{color:var(--stone);font-weight:500}
/* Home starts at the greeting now that the device pill is gone (its state lives in the place switch). */
.w-hero>.hm-greet:first-child{margin-top:0}
/* The setup row above the box: place, then apps, quiet until hovered. */
.hm-strip{gap:4px}
.hm-strip .hm-appsbtn{font-weight:500;color:var(--stone)}
.hm-strip .hm-appsbtn:hover{color:var(--graphite)}
.hm-strip .pop.apps{min-width:300px}
.hm-strip .pop.down{inset-inline-start:0;inset-inline-end:auto}
