/* Personal launchpad: quiet profile rail, searchable applications, deliberate motion. */
main.home-layout{max-width:1600px;padding:0 36px 0 0}
.home-shell{display:grid;grid-template-columns:290px minmax(0,1fr);min-height:calc(100vh - 153px)}
.profile-panel{border-right:1px solid var(--border);padding:42px 26px 28px 30px;align-self:stretch;background:linear-gradient(180deg,var(--surface),var(--bg) 75%)}
.profile-avatar{position:relative;width:76px;height:76px;border:1px solid #4068ff55;border-radius:24px;background:linear-gradient(145deg,#1434a2,#192342);display:grid;place-items:center;color:#b6c8ff;margin-bottom:20px;box-shadow:0 7px 25px #002bfd16}
.profile-avatar>svg{width:35px;height:35px;stroke-width:1.4}.profile-presence{position:absolute;bottom:-2px;right:-2px;width:16px;height:16px;background:var(--good);border:4px solid var(--surface);border-radius:50%}
.profile-panel>h2{font-size:24px;margin-bottom:2px;overflow-wrap:anywhere}.profile-handle{font-size:14px;color:var(--muted);margin:0 0 22px}
.rank-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:var(--muted)}.rank-label strong{display:flex;align-items:center;gap:6px;color:var(--text);font-size:13px;font-weight:500;border:1px solid var(--border);border-radius:6px;padding:5px 9px;background:var(--surface)}.rank-label svg{width:15px;height:15px;color:#8da9ff}
.profile-block{border-top:1px solid var(--border);margin-top:26px;padding-top:23px}.profile-block h3{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--muted);margin:0 0 14px}.profile-block h3 svg{width:16px;height:16px}.profile-empty{font-size:14px;color:var(--muted);line-height:1.6;margin:0}
.last-page{display:flex;align-items:center;gap:10px;padding:13px 10px;border:1px solid var(--border);border-radius:10px;text-decoration:none;background:var(--surface);transition:border-color .18s,background .18s}.last-page:hover{border-color:var(--accent);background:var(--accent-soft)}.last-page-icon{display:grid;place-items:center;color:#91acff}.last-page small{display:block;font-size:12px;color:var(--muted);margin-bottom:3px}.last-page strong{display:block;font-size:14px;font-weight:500;line-height:1.3}.last-page>svg{margin-left:auto;width:16px;flex-shrink:0;color:var(--muted)}
.profile-summary{margin:0}.profile-summary>div,.profile-summary>a>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0}.profile-summary dt{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:14px}.profile-summary svg{width:17px;height:17px;stroke-width:1.5}.profile-summary dd{font-size:16px;margin:0;font-variant-numeric:tabular-nums}
.queue-summary{display:flex;align-items:flex-start;gap:10px;padding:15px 12px;background:var(--surface);border:1px solid var(--border);border-radius:10px;text-decoration:none;margin-top:21px;transition:border-color .18s}.queue-summary:hover{border-color:var(--accent)}.summary-indicator{height:6px;width:6px;background:var(--good);border-radius:50%;margin-top:7px;flex-shrink:0}.summary-indicator.needs-attention{background:#f2bb66}.queue-summary strong{display:block;font-size:13px;font-weight:500}.queue-summary small{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin-top:5px}.queue-summary svg{width:13px;height:13px}.profile-bottom{border-top:1px solid var(--border);margin-top:28px;padding-top:21px;color:var(--muted);font-size:12px}.profile-bottom .dot{margin-right:6px}.profile-bottom small{display:block;font-size:12px;line-height:1.7;margin-top:12px;color:var(--muted)}
.home-content{padding:42px 0 42px 36px;min-width:0}.home-welcome .eyebrow{letter-spacing:2px;font-size:11px}.home-welcome h1{font-size:clamp(28px,2.7vw,39px);line-height:1.23;margin:12px 0 10px;letter-spacing:-.9px}.home-welcome h1 span{color:var(--text)}.home-welcome p{font-size:18px;color:var(--muted);margin:0 0 27px}
.tile-search{display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:11px;background:var(--surface);padding:0 17px;transition:border-color .18s,box-shadow .18s}.tile-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #3765ff14}.tile-search>svg{width:20px;height:20px;color:var(--muted);flex-shrink:0}.tile-search input{border:0;background:transparent;outline:none;margin:0;padding:16px 0;min-width:0;box-shadow:none;min-height:54px;font-size:15px}.tile-search input:focus-visible{outline:none}.tile-search-count{color:var(--muted);font-size:12px;white-space:nowrap;border-left:1px solid var(--border);padding-left:14px}
.home-section-title{display:flex;align-items:center;gap:10px;margin:27px 0 14px}.home-section-title h2{font-size:18px;margin:0}.home-section-title>span{font-size:11px;color:var(--muted);border:1px solid var(--border);border-radius:5px;padding:1px 6px;font-variant-numeric:tabular-nums}
.home-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.home-tile{position:relative;min-height:199px;padding:21px;background:var(--surface);border-radius:12px;box-shadow:none;overflow:hidden;transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease;animation:tile-appear .3s ease backwards}.home-tile:hover{background:color-mix(in srgb,var(--surface) 94%,var(--accent));border-color:#5475ff;transform:translateY(-4px);box-shadow:0 10px 24px #0002}.home-tile:active{transform:translateY(-1px)}.home-tile:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.home-tile .tile-icon{width:40px;height:40px;background:#3765ff14;color:#87a4ff;border:1px solid #3765ff20;transition:transform .2s,background .2s}.home-tile:hover .tile-icon{transform:rotate(-5deg) scale(1.07);background:#3765ff25}.home-tile .tile-icon svg{width:24px;height:24px}.tile-forward{color:var(--muted);opacity:.45;transform:translateX(-3px);transition:transform .2s,opacity .2s,color .2s}.tile-forward svg{width:18px;height:18px}.home-tile:hover .tile-forward{opacity:1;transform:translateX(2px);color:var(--text)}.home-tile h3{font-size:18px;line-height:1.3;margin:19px 0 6px}.home-tile p{font-size:13px;line-height:1.5;max-width:260px}.tile-status{display:block;width:fit-content;font-size:11px;line-height:1.5;letter-spacing:.1px;color:var(--muted);margin-top:16px}.connected-status{color:var(--good)}.connected-status::before{content:'';display:inline-block;width:5px;height:5px;background:currentColor;border-radius:50%;margin-right:6px}.home-tile.forge-tile{background:linear-gradient(135deg,var(--surface),var(--accent-soft));border-color:#3765ff55}.icon-check-in-out,.icon-queue{color:#8bd4c2!important}.icon-crm-operator,.icon-proposals-quotes-operator{color:#b5a3ff!important}.icon-project-manager,.icon-snag-operator{color:#ddbb84!important}
.home-preview-note{margin:27px 0 0;font-size:12px;color:var(--muted);line-height:1.6}.search-empty{margin-top:24px;border:1px dashed var(--border);border-radius:12px}.search-empty>svg{width:28px;height:28px;margin-bottom:15px}.search-empty h2{font-size:22px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:root[data-theme=light] .profile-panel{background:linear-gradient(180deg,var(--surface),var(--bg))}:root[data-theme=light] .profile-avatar{background:linear-gradient(145deg,#2f55e6,#1d3bb0);color:#fff}:root[data-theme=light] .home-tile:hover{box-shadow:0 10px 24px rgba(20,28,36,.12)}:root[data-tp-theme=contrast] .home-tile,:root[data-tp-theme=contrast] .tile-search,:root[data-tp-theme=contrast] .last-page,:root[data-tp-theme=contrast] .queue-summary{border-color:var(--border-strong)}:root[data-theme=light] .home-tile .tile-icon{color:#264bcc}:root[data-theme=light] .icon-check-in-out,:root[data-theme=light] .icon-queue{color:#237a69!important}:root[data-theme=light] .icon-crm-operator,:root[data-theme=light] .icon-proposals-quotes-operator{color:#7353c1!important}:root[data-theme=light] .icon-project-manager,:root[data-theme=light] .icon-snag-operator{color:#987123!important}
@keyframes tile-appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1200px){.profile-panel{position:sticky;top:0;align-self:start;min-height:calc(100vh - 153px)}.home-tile:nth-child(2){animation-delay:25ms}.home-tile:nth-child(3){animation-delay:50ms}}
@media(max-width:1150px){.home-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.home-shell{grid-template-columns:255px minmax(0,1fr)}.profile-panel{padding:32px 20px}.home-content{padding:32px 0 32px 26px}main.home-layout{padding-right:26px}}
@media(max-width:760px){main.home-layout{padding:0}.home-shell{grid-template-columns:1fr}.profile-panel{border-right:0;border-bottom:1px solid var(--border);padding:23px 20px;display:grid;grid-template-columns:60px minmax(0,1fr);column-gap:15px}.profile-avatar{grid-column:1;grid-row:1/4;width:58px;height:58px;border-radius:17px;margin:0}.profile-avatar>svg{width:28px;height:28px}.profile-panel>h2{grid-column:2;font-size:21px;margin:0}.profile-handle{grid-column:2;margin:0;font-size:12px}.rank-label{grid-column:2;justify-content:flex-start;gap:8px;margin-top:10px}.rank-label strong{font-size:12px;padding:2px 7px}.rank-label>span{font-size:12px}.profile-block{grid-column:1/-1;margin-top:20px;padding-top:16px}.profile-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.profile-summary>div,.profile-summary>a>div{align-items:flex-start;flex-direction:column;gap:6px}.profile-summary dt{font-size:12px;gap:5px}.profile-summary dt svg{width:14px;height:14px}.profile-summary dd{font-size:22px}.profile-block h3{font-size:12px}.queue-summary{grid-column:1/-1;margin-top:12px}.profile-bottom{grid-column:1/-1;margin-top:18px;padding-top:14px}.profile-bottom small{margin-top:6px}.profile-bottom small br{display:none}.profile-bottom small br::after{content:' '}.home-content{padding:28px 20px}.home-welcome h1{font-size:30px}.home-welcome p{font-size:16px}.home-tiles{gap:12px}.home-tile{padding:17px;min-height:200px}.home-tile h3{font-size:16px}.home-tile p{font-size:13px}.home-tile .tile-icon{width:34px;height:34px}.tile-search{padding:0 13px}.tile-search input{font-size:14px}.tile-search-count{font-size:11px;padding-left:9px}}
@media(max-width:390px){.home-tiles{grid-template-columns:1fr}.home-tile{min-height:180px}}
@media(prefers-reduced-motion:reduce){.home-tile,.home-tile .tile-icon,.tile-forward,.last-page,.queue-summary{animation:none!important;transition:none!important}.home-tile:hover,.home-tile:active,.home-tile:hover .tile-icon,.home-tile:hover .tile-forward{transform:none}}


/* The person's picture in the profile panel, with a shortcut to Profile & settings. */
.profile-avatar.has-picture{background:none;overflow:visible}
.profile-avatar>img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.profile-edit{position:absolute;left:-6px;bottom:-6px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--surface);border:1px solid var(--border);color:var(--muted);opacity:0;transition:opacity .15s}
.profile-avatar:hover .profile-edit,.profile-edit:focus-visible{opacity:1}
.profile-edit svg{width:14px;height:14px}
@media(hover:none){.profile-edit{opacity:1}}
/* A link to every task, under the counts in the profile panel. */
.profile-summary a{color:inherit;text-decoration:none}.profile-summary a:hover dd,.profile-summary a:hover dt{color:var(--accent-text)}

/* Reserve quick actions before the asynchronous workspace helper loads. */
.home-content:has(.ux-smart-ribbon) #tile-groups{margin-right:0}
.home-tile-section:has(.ux-smart-ribbon){display:grid;grid-template-columns:minmax(0,1fr) 178px;column-gap:20px}
.home-tile-section:has(.ux-smart-ribbon)>.home-section-title{grid-column:1/-1}
.home-tile-section:has(.ux-smart-ribbon)>.home-tiles{grid-column:1;grid-row:2}
.home-content .ux-smart-ribbon{display:grid;grid-column:2;grid-row:2;float:none;align-self:start;align-content:start;width:178px;min-height:407px;gap:9px;margin:0!important}
.ux-smart-empty{box-sizing:border-box;display:flex;align-items:center;min-height:43px;padding:10px 12px;border:1px dashed var(--border);border-radius:11px;color:var(--muted);font-size:12px;line-height:1.5}
@media(min-width:1101px){.home-content:has(.ux-smart-ribbon) .home-tile-section:not(:has(.ux-smart-ribbon)){padding-right:198px}}
@media(max-width:1100px){.home-tile-section:has(.ux-smart-ribbon){display:block}.home-content .ux-smart-ribbon{width:auto;min-height:43px;margin:16px 0!important}}
.home-tile-section:has(.ux-smart-ribbon)>.home-tiles{align-self:start}

/* Background home refreshes must never replay an entrance/fade animation. */
.home-content .home-tile,.home-content .ux-smart-ribbon{animation:none!important}

/* Short pinned rows must not inherit the smart ribbon's reserved height. The
   side column continues beside later sections, which already reserve its width. */
@media(min-width:1101px){
 .home-content .home-tile-section:has(.ux-smart-ribbon){position:relative}
 .home-content .home-tile-section>.ux-smart-ribbon{position:absolute;top:0;right:0;min-height:0}
}
.home-content .home-tile-section+.home-tile-section>.home-section-title{margin-top:18px}
