/* Employee app: Home over a live map, face scan, Updates and the bottom nav. Built on the design-system tokens and wc- components in style.css. */
body[data-role="employee"]{--nav-h:calc(69px + env(safe-area-inset-bottom,0px));background:var(--bg)}
body[data-role="employee"] main{max-width:520px;margin:0 auto;padding:var(--space-4) var(--space-4) calc(var(--nav-h) + var(--space-6))}
body[data-role="employee"] footer,body[data-role="employee"] #workspace>nav.tabs,body[data-role="employee"] .legacy-clock,body[data-role="employee"] #pilot-banner{display:none}
body[data-role="employee"][data-panel="home"]>header,body[data-role="employee"][data-panel="face-step"]>header,body[data-role="employee"][data-panel="updates"]>header{display:none}
body[data-role="employee"][data-panel="home"] .page-heading,body[data-role="employee"][data-panel="face-step"] .page-heading,body[data-role="employee"][data-panel="updates"] .page-heading{display:none}
body[data-role="employee"]>header{background:var(--surface);color:var(--ink);border-bottom:1px solid var(--border);min-height:56px;padding:8px 16px}
body[data-role="employee"] .brand{color:var(--ink);font-size:1.15rem}body[data-role="employee"] .brand:after{display:none}body[data-role="employee"] #identity{display:none}
body[data-role="employee"]>header button.quiet{background:var(--surface);color:var(--ink);border:0;box-shadow:inset 0 0 0 1.5px var(--border-strong);min-height:40px}
.emp-nav{position:fixed;left:0;right:0;bottom:0;z-index:1000}

/* Home */
.emp-home{position:fixed;left:0;right:0;top:0;bottom:var(--nav-h);display:flex;flex-direction:column;overflow:hidden;background:var(--bg);color:var(--ink)}
.emp-map{position:absolute;inset:0;z-index:0;background:var(--surface-sunken)}
.emp-head{position:relative;z-index:2;color:var(--ink);min-height:0;display:flex;align-items:center;gap:var(--space-2);padding:8px 4px 8px 16px;background:var(--surface);border-bottom:1px solid var(--border)}
.emp-head__who{flex:1;min-width:0}
.emp-head__name{margin:0;font-size:15px;line-height:20px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.emp-head__date{margin:0;font-size:13px;line-height:18px;color:var(--ink-muted)}
.emp-head__time{margin:0;font-size:20px;line-height:26px;font-weight:700}
button.emp-avatar{width:48px;height:48px;min-height:48px;padding:0;margin:0;display:flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:var(--radius-full)}
button.emp-avatar:hover:not(:disabled){background:transparent}
.emp-avatar span{width:36px;height:36px;border-radius:var(--radius-full);background:var(--neutral-soft);color:var(--ink);display:flex;align-items:center;justify-content:center;font:700 12px/1 var(--font-sans)}
button.emp-recenter{position:absolute;z-index:2;top:76px;right:12px;width:48px;height:48px;min-height:48px;padding:0;margin:0;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-full);background:var(--surface);color:var(--ink);border:1px solid var(--border);box-shadow:var(--elevation-1)}
button.emp-recenter:hover:not(:disabled){background:var(--surface)}
.emp-work{display:flex;flex-direction:column;gap:var(--space-3)}
.emp-work .wc-stat--compact{padding:6px 10px}.emp-work .wc-stat__value{font-size:16px}
.emp-quote{margin:0;text-align:center;font-size:15px;line-height:22px;font-style:italic;color:var(--ink-muted)}
.emp-bigclock{margin:var(--space-4) 0 0;text-align:center;font-size:44px;line-height:52px;font-weight:700;letter-spacing:-.01em}
.emp-work__body{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--space-4);padding:0 var(--space-4) var(--space-6)}
.emp-work__body .wc-stats{width:100%}
.emp-note{margin:0;font-size:13px;line-height:18px;color:var(--ink-muted);text-align:center}
.emp-spacer{flex:1}
.emp-panel{position:relative;z-index:2;display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-4) var(--space-4) var(--space-3);background:var(--surface);border-radius:var(--radius-sheet) var(--radius-sheet) 0 0;box-shadow:var(--elevation-2)}
.emp-loc-lead{display:flex;flex:none;color:var(--t-ink,var(--ink-muted))}
.emp-loc-lead .wc-icon,.emp-loc-lead .wc-spinner{width:20px;height:20px}
.emp-off{display:flex;flex-direction:column;gap:var(--space-3)}
.emp-off__row{display:flex;align-items:center;gap:var(--space-3)}
.emp-off__icon{width:36px;height:36px;flex:none;border-radius:var(--radius-full);display:flex;align-items:center;justify-content:center;background:var(--t-soft);color:var(--t-ink)}
.emp-off__icon .wc-icon{width:20px;height:20px}
.emp-off__title{margin:0;font-size:17px;line-height:24px;font-weight:700}
.emp-off__sub{margin:0;font-size:13px;line-height:18px;color:var(--ink-muted)}.emp-off__sub:empty{display:none}
.emp-off__balance{padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);background:var(--surface-sunken);font-size:13px;line-height:20px}
.emp-off__balance p{margin:0}
.emp-office-pin.leaflet-div-icon{background:none;border:0;color:var(--brand)}
.emp-office-pin .wc-icon{width:32px;height:32px;fill:var(--brand);stroke:var(--surface)}
.emp-home .leaflet-control-attribution{margin-bottom:var(--space-6)!important}

/* Face scan: the camera fills the screen, one short line of text. Fixed dark colours, as in the design. */
.emp-scan{position:fixed;inset:0;z-index:3000;background:#14100D;color:#FFFDF9;overflow:hidden}
.emp-scan__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.emp-scan__oval{position:absolute;left:50%;top:18%;width:min(256px,72vw);aspect-ratio:256/340;transform:translateX(-50%);border:4px dashed rgba(255,253,249,.9);border-radius:50%;box-shadow:0 0 0 999px rgba(20,16,13,.45)}
.emp-scan[data-phase="checking"] .emp-scan__oval{border-style:solid;border-color:#A6C4F2}
.emp-scan[data-phase="failed"] .emp-scan__oval{border-style:solid;border-color:#EE6A8F}
button.emp-scan__close{position:absolute;left:4px;top:8px;width:48px;height:48px;min-height:48px;padding:0;margin:0;display:flex;align-items:center;justify-content:center;background:transparent;border:0;color:#FFFDF9}
button.emp-scan__close:hover:not(:disabled){background:rgba(255,255,255,.1)}
.emp-scan__foot{position:absolute;left:16px;right:16px;bottom:calc(24px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:var(--space-4);text-align:center}
.emp-scan__title{margin:0;font-size:17px;line-height:24px;font-weight:700}
.emp-scan[data-phase="failed"] .emp-scan__title{font-size:20px;line-height:26px;color:#FFA0BB}
.emp-scan__hint{margin:-12px 0 0;font-size:15px;line-height:22px}
.emp-scan__actions{display:flex;gap:var(--space-3)}.emp-scan__actions .wc-btn{flex:1}

/* Updates and other employee pages */
.emp-page{display:flex;flex-direction:column}
.emp-page__head{margin:0 0 var(--space-4)}
.emp-title{margin:0;font-size:20px;line-height:26px;font-weight:700;letter-spacing:0}
.emp-sub{margin:2px 0 0;font-size:13px;line-height:18px;color:var(--ink-muted)}
.emp-label{margin:0 0 var(--space-2);font-size:12px;line-height:16px;font-weight:700;letter-spacing:.02em;color:var(--ink-muted)}
.emp-feed{display:flex;flex-direction:column;gap:var(--space-3);margin-top:var(--space-6)}
.emp-feed .emp-label{margin:var(--space-3) 0 0}.emp-feed .emp-label:first-child{margin-top:0}
.update-action{margin-top:var(--space-3)}
.emp-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:var(--space-2);padding:var(--space-8) var(--space-4)}
.emp-empty__icon{width:32px;height:32px;color:var(--ink-muted)}
.emp-empty__title{margin:var(--space-2) 0 0;font-size:17px;line-height:24px}
.emp-empty__text{margin:0 0 var(--space-3);color:var(--ink-muted);max-width:300px}

/* Legacy panels still in use until their redesign step */
body[data-role="employee"] .card{border-radius:var(--radius-lg);padding:var(--space-4)}
body[data-role="employee"] .stats{grid-template-columns:repeat(2,1fr)}
body[data-role="employee"] .table-wrap table{min-width:0}
body[data-role="employee"] #requests .table-wrap thead{display:none}
body[data-role="employee"] #request-rows tr{display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--border);padding:12px 0}
body[data-role="employee"] #request-rows td{border:0;padding:5px 0}
body[data-role="employee"] #request-rows td:last-child{grid-column:1/-1;color:var(--ink-muted)}
@media(prefers-reduced-motion:reduce){body[data-role="employee"] *{animation:none!important;transition:none!important}}

/* Step c: every employee screen is new, so the old header and page title go away. */
body[data-role="employee"]>header,body[data-role="employee"] .page-heading,body[data-role="employee"] .toolbar{display:none!important}
.emp-sub-page{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
.emp-bar{display:flex;align-items:center;gap:var(--space-1);margin:calc(-1 * var(--space-3)) 0 var(--space-4) calc(-1 * var(--space-3))}
button.emp-back,button.emp-icon-btn{width:48px;height:48px;min-height:48px;padding:0;margin:0;display:flex;align-items:center;justify-content:center;background:transparent;color:var(--ink);border:0;border-radius:var(--radius-full)}
button.emp-back:hover:not(:disabled),button.emp-icon-btn:hover:not(:disabled){background:var(--surface-sunken)}
button.emp-icon-btn:disabled{color:var(--ink-disabled);background:transparent;opacity:.5}
.emp-foot{position:fixed;left:0;right:0;bottom:0;z-index:900;padding:var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom,0px));background:var(--bg)}
.emp-foot>*{max-width:488px;margin:0 auto}
#profile .emp-foot{bottom:var(--nav-h)}
#profile{padding-bottom:calc(var(--nav-h) + 80px)}
.emp-gap{margin-top:var(--space-6)}
.emp-stack{display:flex;flex-direction:column;gap:var(--space-3)}
.emp-label--flat{margin:0}
.emp-page__head--row{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-2)}
.emp-month-mini{display:flex;margin:-8px -12px 0 0}
button.emp-stat-btn{text-align:left;font:inherit;color:var(--ink);cursor:pointer;margin:0;min-height:48px}
button.emp-stat-btn:hover:not(:disabled){background:var(--surface)}
.emp-seg{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-2)}.emp-seg--3{grid-template-columns:repeat(3,1fr)}
.emp-seg .wc-btn{padding:0 var(--space-2)}
.emp-2col{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-2)}
.emp-2col:has(#rf-to-field[hidden]){grid-template-columns:1fr}
.emp-callout{padding:var(--space-3);border-radius:var(--radius-sm);background:var(--t-soft,var(--neutral-soft));color:var(--ink);font-size:15px;line-height:22px}
.emp-callout p{margin:0}.emp-callout__small{margin-top:var(--space-1)!important;font-size:13px;line-height:18px}
#rf-info{font-size:13px;line-height:18px}
.emp-facts{display:flex;flex-direction:column;gap:var(--space-1);margin:0;padding:var(--space-3);border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border);font-size:15px;line-height:22px}
.emp-facts>div{display:flex;justify-content:space-between;gap:var(--space-3)}
.emp-facts span,.emp-facts dt{color:var(--ink-muted)}.emp-facts dd{margin:0;font-weight:700}
.emp-facts--plain{padding:0;border:0;background:none}.emp-facts--plain dt{color:var(--ink)}
.emp-card{padding:var(--space-4);border-radius:var(--radius-lg);background:var(--surface);border:1px solid var(--border);display:flex;flex-direction:column;gap:var(--space-3)}
.emp-card__top{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-2)}
.emp-card__title{margin:0;font-size:17px;line-height:24px}
.emp-card__big{font-size:20px;line-height:26px;font-weight:700}
.emp-bar-cells{display:flex;gap:4px}.emp-bar-cells span{flex:1;height:12px;border-radius:4px;box-shadow:inset 0 0 0 2px var(--border-strong)}
.emp-bar-cells .is-used{background:var(--ink-muted);box-shadow:none}.emp-bar-cells .is-booked{background:var(--leave);box-shadow:none}
.emp-amount{margin:0;font-size:44px;line-height:52px;font-weight:700;letter-spacing:-.01em}
#my-salary .emp-card{gap:var(--space-1)}
.emp-row-56{min-height:56px}.wc-row.is-muted .wc-row__title,.wc-row.is-muted .wc-row__value{color:var(--ink-muted)}
.emp-pending{margin-top:var(--space-4);padding:var(--space-3)}.emp-pending__row{display:flex;align-items:baseline;justify-content:space-between}
.emp-month{display:flex;align-items:center;justify-content:space-between;margin:0 -12px var(--space-2)}
.emp-month__label{margin:0;font-size:17px;line-height:24px;font-weight:700}
.emp-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.emp-cal--head span{text-align:center;font-size:12px;line-height:16px;font-weight:700;color:var(--ink-muted);padding-bottom:4px}
.emp-cal__day{display:flex;flex-direction:column;align-items:center;justify-content:center;height:46px;min-height:46px;margin:0;padding:0;border:0;border-radius:var(--radius-sm);background:var(--t-soft,transparent);color:var(--t-ink,var(--ink));font:inherit}
button.emp-cal__day{cursor:pointer}button.emp-cal__day:hover:not(:disabled){background:var(--t-soft,var(--surface-sunken))}
.emp-cal__day .wc-num{font-size:15px;line-height:18px;font-weight:700}.emp-cal__day small{font-size:10px;line-height:12px;font-weight:700;min-height:12px}
.emp-cal__day.is-today{box-shadow:inset 0 0 0 1.5px var(--border-strong)}.emp-cal__day.is-selected{box-shadow:inset 0 0 0 2.5px var(--ink)}
.emp-legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin:var(--space-3) 0 var(--space-4);font-size:13px;line-height:18px}
.emp-legend span{display:inline-flex;align-items:center;gap:6px}
.emp-legend i{width:20px;height:20px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;font:700 10px/1 var(--font-sans);font-style:normal;background:var(--t-soft);color:var(--t-ink)}
.emp-day{padding:var(--space-3)}.emp-day__date{font-size:17px;line-height:24px}
.emp-day__times{display:flex;justify-content:space-between;gap:var(--space-2);margin-top:var(--space-2);font-size:15px;line-height:22px}
.emp-me{display:flex;align-items:center;gap:var(--space-4);margin:0 0 var(--space-4)}
.emp-me__avatar{width:64px;height:64px;flex:none;border-radius:var(--radius-full);background:var(--brand-soft);color:var(--brand-ink);display:flex;align-items:center;justify-content:center;font:700 22px/1 var(--font-sans)}
.emp-me__name{margin:0;font-size:20px;line-height:26px;font-weight:700}.emp-me__office{margin:0;color:var(--ink-muted)}
.emp-trail-text{font-size:15px;color:var(--ink)}
#pilot-note{margin-top:var(--space-4)}
.emp-code{display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-4);border-radius:var(--radius-lg);background:var(--surface);border:1px solid var(--border);text-align:center}
.emp-code__value{margin:0;font-size:24px;line-height:32px;font-weight:700;letter-spacing:.04em;overflow-wrap:anywhere;user-select:all}
.emp-facetest__video{display:block;width:100%;max-width:320px;aspect-ratio:3/4;object-fit:cover;margin:0 auto;border-radius:var(--radius-lg);background:#14100D;transform:scaleX(-1)}
.emp-amount--text{font-size:28px;line-height:36px}

/* Step d: authority screens share the employee page system. */
body[data-role="authority"]{--nav-h:calc(69px + env(safe-area-inset-bottom,0px));background:var(--bg)}
body[data-role="authority"] main{max-width:520px;margin:0 auto;padding:var(--space-4) var(--space-4) calc(var(--nav-h) + var(--space-6))}
body[data-role="authority"] .emp-sub-page:not(.has-nav){padding-bottom:calc(140px + env(safe-area-inset-bottom,0px))}
body[data-role="employee"] .emp-sub-page{padding-bottom:calc(140px + env(safe-area-inset-bottom,0px))}
.emp-head--page{margin:calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-4);padding:8px 4px 8px 16px;background:transparent;border-bottom:0}
.emp-gap-sm{margin-top:var(--space-4)}.emp-gap-xs{margin-top:var(--space-2)}
.emp-stepper{display:grid;grid-template-columns:48px 1fr 48px;gap:var(--space-2)}
.emp-stepper .wc-btn{padding:0;font-size:20px}.emp-stepper input{text-align:center;font-weight:700;-moz-appearance:textfield}
.emp-stepper input::-webkit-inner-spin-button,.emp-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.emp-person{display:flex;align-items:center;gap:var(--space-3)}
.emp-person__text{flex:1;min-width:0}.emp-person__name{margin:0;font-weight:600}.emp-person__sub{margin:0;font-size:13px;line-height:18px;color:var(--ink-muted)}
.emp-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:var(--space-2)}
.emp-photos:empty{display:none}
.emp-photos figure{margin:0;min-width:0;padding:6px;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border)}
.emp-photos img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px}
.emp-photos figcaption{margin-top:4px;font-size:12px;line-height:16px;color:var(--ink-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.emp-mapbox{position:relative;margin:0 calc(-1 * var(--space-4));border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
#office-map{height:330px;width:100%;margin:0;border:0;border-radius:0;isolation:isolate;z-index:0;background:var(--surface-sunken)}
.emp-mapbox__hint{position:absolute;left:16px;right:16px;bottom:12px;z-index:500;pointer-events:none}
.emp-search{display:flex;align-items:flex-end;gap:var(--space-2)}.emp-search .wc-field{flex:1}.emp-search>.wc-btn{flex:none}
.emp-results{display:flex;flex-direction:column;gap:var(--space-2)}.emp-results:empty{display:none}
.emp-results button{display:block;width:100%;margin:0;min-height:48px;text-align:left;background:var(--surface);color:var(--ink);border:0;box-shadow:inset 0 0 0 1px var(--border);border-radius:var(--radius-sm);font:400 15px/22px var(--font-sans);padding:var(--space-2) var(--space-3)}
.emp-results button:hover:not(:disabled){background:var(--brand-soft)}
.emp-details summary{min-height:48px;display:flex;align-items:center;cursor:pointer;font-weight:600;color:var(--brand-ink)}
.emp-week{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.emp-week .wc-btn{padding:0;min-width:0;font-size:13px}
button.emp-small-btn{min-height:40px;padding:0 var(--space-3);font-size:13px}
.emp-pending-ink{color:var(--pending-ink)!important;font-weight:600}
.emp-row-wrap .wc-row__title{white-space:normal}
.emp-code__value--big{font-size:20px;line-height:28px;letter-spacing:.02em}
.emp-card--tight{gap:var(--space-1)}
.emp-sub--top{margin:calc(-1 * var(--space-3)) 0 var(--space-4)}
.emp-help--top{margin:0 0 var(--space-3)}
.emp-foot:empty{display:none}
.wc-clock__btn--bar:disabled{color:var(--ink);background:var(--surface-sunken)}
.emp-page{position:relative}button.emp-avatar--corner{position:absolute;top:-12px;right:-8px;z-index:5}.emp-page .emp-page__head,.emp-page .emp-bar{padding-right:44px}
.emp-day-detail{padding:0 var(--space-4) var(--space-4)}.emp-day-detail .wc-update__top{display:none}
/* Round 3: no location strip on Home; a spinner circle under the locator while the position is not ready */
.emp-sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.emp-loc-status{position:absolute;z-index:2;top:132px;right:12px;width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-full);background:var(--surface);border:1px solid var(--border);box-shadow:var(--elevation-1);animation:wc-pop .3s var(--ease-spring) both}
.emp-loc-status .wc-spinner{--t-soft:var(--pending-soft);--t-ink:var(--pending)}
button.emp-text-btn{align-self:center;min-height:44px;margin:-4px 0 0;padding:0 var(--space-3);background:transparent;border:0;color:var(--brand-ink);font:600 15px/22px var(--font-sans);text-decoration:underline;text-underline-offset:3px}
button.emp-text-btn:hover:not(:disabled){background:transparent}
.emp-work .wc-stat__label{font-size:14px;line-height:18px;font-weight:800;letter-spacing:0}
.wc-clock__btn--bar{min-width:0;padding:0 var(--space-3)}.wc-clock__btn--bar .wc-clock__tag{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
/* Update cards: coloured headline with an icon, quiet time line, the reason, then the money box */
.emp-upd{padding:var(--space-4)}
.emp-upd__head{display:flex;align-items:flex-start;gap:var(--space-3)}
.emp-upd__icon{flex:none;width:32px;height:32px;border-radius:var(--radius-full);display:flex;align-items:center;justify-content:center;background:var(--t-soft);color:var(--t-ink)}
.emp-upd__icon .wc-icon{width:18px;height:18px}
.emp-upd__text{flex:1;min-width:0}
.emp-upd__title{margin:0;font-size:16px;line-height:22px;font-weight:700;color:var(--ink)}
.emp-upd--success .emp-upd__title{color:var(--success-ink)}.emp-upd--error .emp-upd__title{color:var(--error-ink)}.emp-upd--pending .emp-upd__title{color:var(--pending-ink)}
.emp-upd__time{margin:2px 0 0;font-size:13px;line-height:18px;color:var(--ink-muted)}
.emp-upd__head .wc-chip{flex:none;margin-top:2px}
.emp-upd__body{margin:var(--space-2) 0 0 44px;font-size:15px;line-height:22px;color:var(--ink)}
.emp-upd .wc-update__amount{margin-left:44px}
.emp-upd .update-action{margin-top:var(--space-3)}
.emp-upd.wc-update--unread::after{top:20px}
.emp-upd.wc-update--unread .emp-upd__head{padding-right:16px}
.emp-head__day{margin:0;font-size:18px;line-height:24px;font-weight:800}
.emp-head__clock{margin:0;font-size:14px;line-height:18px;font-weight:600;color:var(--ink-muted)}
.wc-clock__btn--bar[aria-disabled="true"]{color:var(--ink);background:var(--surface-sunken)}
.emp-scan__oval{width:min(300px,82vw);top:14%}
.emp-scan__done{top:calc(14% + min(300px,82vw)*0.66 - 44px)}
.emp-seg--5{grid-template-columns:repeat(5,1fr)}.emp-seg--5 .wc-btn{padding:0 2px;font-size:14px}
.emp-update{margin:var(--space-3) 0 0;display:flex;flex-direction:column;gap:var(--space-2)}.emp-update__title{margin:0!important;font-weight:700}
.emp-avatar.has-update{position:relative}.emp-avatar.has-update::after{content:"";position:absolute;top:6px;right:6px;width:12px;height:12px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 2px var(--surface)}
/* Background update: a floating ring whose bold arc fills with the download */
.emp-update-ring{position:fixed;right:16px;bottom:calc(var(--nav-h,69px) + 16px);z-index:1500;width:64px;height:64px;border-radius:50%;background:var(--surface);box-shadow:var(--elevation-1);display:flex;align-items:center;justify-content:center;animation:wc-pop .3s var(--ease-spring) both}
.emp-update-ring svg{position:absolute;inset:4px;width:56px;height:56px;transform:rotate(-90deg)}
.emp-update-ring circle{fill:none;stroke-width:5}
.emp-update-ring__track{stroke:var(--surface-sunken)}
.emp-update-ring__bar{stroke:var(--brand);stroke-linecap:round;stroke-dasharray:150.8;stroke-dashoffset:150.8;transition:stroke-dashoffset .4s ease}
#update-ring-text{position:relative;font:800 13px/1 var(--font-sans);color:var(--ink)}
