/* HPS Team: shared visual language with the HPS storefront, adapted for daily work.
   Source: storefront-glass-materials.css + hps-fonts.css; no storefront runtime dependency. */
@font-face{font-family:Normalidad;src:url('/assets/normalidad-regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap;ascent-override:100%;descent-override:32%;line-gap-override:0%}
@font-face{font-family:Normalidad;src:url('/assets/normalidad-medium.woff2') format('woff2');font-style:normal;font-weight:500 600;font-display:swap;ascent-override:100%;descent-override:32%;line-gap-override:0%}
@font-face{font-family:Normalidad;src:url('/assets/normalidad-bold.woff2') format('woff2');font-style:normal;font-weight:700 900;font-display:swap;ascent-override:100%;descent-override:32%;line-gap-override:0%}
:root{
 --bg:#0d0d10;--card:#171719;--ink:#fafafa;--muted:#aaaab0;--line:#ffffff1f;
 --lime:#75D981;--hps-hover:#92E89B;--hps-on-accent:#102116;
 --hps-raised:#1e1e21;--hps-field:#111114;--hps-control-border:#ffffff30;
 --hps-panel-radius:24px;--hps-field-radius:16px;
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.5;
 font-synthesis:none;background:var(--bg);color:var(--ink);accent-color:var(--lime);
}
body{background:var(--bg);text-rendering:optimizeLegibility}
button,input,select,textarea{font-family:inherit;letter-spacing:inherit}
::selection{background:#75D98140;color:var(--ink)}
input,textarea{caret-color:var(--lime)}
*{scrollbar-width:thin;scrollbar-color:#515158 transparent}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{
 outline:2px solid var(--lime);outline-offset:2px;
}
body button:disabled{cursor:not-allowed}
.shell{max-width:1180px;padding:0 28px}
.shell>header{height:auto;min-height:84px;margin:20px 0 12px;padding:14px 20px;border:1px solid var(--line);border-radius:28px;background:#111113;gap:20px}
.brand img{width:104px}.brand span{font-size:10px;font-weight:500;letter-spacing:1.5px}
.header-right{gap:12px;min-width:0}.header-tools{gap:12px}
.connection{font-size:11px}
#connection[hidden]{display:none}
.app-fullscreen-button{background:var(--hps-raised);border:1px solid var(--hps-control-border);border-radius:999px;min-height:40px}
main{padding:12px 0 120px}
.heading{margin-bottom:22px;align-items:center;gap:14px}
.heading h1{font-size:28px;line-height:1.2;font-weight:700;letter-spacing:-.025em}
.heading .sub{margin-top:8px}.sub{font-size:12px;line-height:1.6;color:var(--muted)}
h2,h3{line-height:1.35;text-wrap:balance}h3{overflow-wrap:anywhere}
.card{padding:24px;border-radius:var(--hps-panel-radius);background:var(--card);border:1px solid var(--line)}
.card h2,.section-title{font-size:17px;letter-spacing:-.015em;font-weight:700;margin-bottom:18px}
.card>.row:has(>h2){align-items:center;margin-bottom:16px}
.card>.row>h2{margin:0}
.grid{gap:18px}.team-grid{gap:16px}
.stat{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px}
.stat strong{font-size:24px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.stat .sub{font-size:11px}.hero{min-height:0}
.hero .big-number{font-size:54px;letter-spacing:-.035em;margin:26px 0 10px;font-weight:700}
.big-number small{font-size:16px;letter-spacing:0}.rest-number{font-size:24px}
.avatar:not(.avatar-character){background:var(--hps-raised)}
.avatar.avatar-character{background:#252528;box-shadow:none;border:1px solid var(--line)}
.pill{font-size:10px;font-weight:500;padding:6px 10px;line-height:1.4}
.accent-card{background:var(--card);border:1px solid var(--line);color:var(--ink)}
.accent-card h2,.accent-card .team-preview-title{color:var(--lime);font-size:22px;line-height:1.25;margin-top:22px;max-width:none}
.accent-card .sub,.accent-card .eyebrow{color:var(--muted)}
.accent-card .text-link{color:var(--ink);font-size:11px}
.accent-card .mini-team .avatar{border:1px solid var(--line);background:#28282b}
.accent-card .mini-team{margin-top:24px}
.progress{background:#303034;height:7px}.metric-label{line-height:1.5}
body .button{background:var(--hps-raised);border:1px solid var(--hps-control-border);border-radius:999px;min-height:44px;padding:11px 18px;font-size:12px;font-weight:500;line-height:1.5;letter-spacing:-.01em;gap:8px;box-shadow:none;transition:background-color 160ms ease,border-color 160ms ease}
body .button.primary{background:var(--lime);border-color:var(--lime);color:var(--hps-on-accent)}
body .button.plain{background:transparent;border-color:var(--line)}
body .button.danger{background:#ff8b8908;border-color:#ff8b8938;color:#ffaaa6}
.button svg{width:17px;height:17px;flex:none}
.actions{gap:12px}.actions>.button{width:100%}
body .filter{font-family:inherit;font-size:12px;line-height:1.5;font-weight:500;padding:10px 16px;min-height:40px}
body .filters{gap:6px}
body .capsule-controls{background:#18181b;border:1px solid var(--line);box-shadow:none}
body .capsule-controls .filter.active{background:#f6f6f2;color:#19191b;box-shadow:none}
input:not([type=checkbox]):not([type=radio]),select,textarea{
 background-color:var(--hps-field);border:1px solid var(--hps-control-border);border-radius:var(--hps-field-radius);color:var(--ink);line-height:1.5;font-size:14px;min-height:44px;padding:11px 14px;
}
body select:not([multiple]){padding-right:40px}
input::placeholder,textarea::placeholder{color:#9898a1;opacity:1}
label{font-size:12px;font-weight:500;line-height:1.5}
input[type=checkbox],input[type=radio]{accent-color:var(--lime);flex-shrink:0}
textarea{resize:vertical;min-height:100px}
dialog{background:#171719;border:1px solid var(--hps-control-border);border-radius:28px;padding:24px;max-height:calc(100dvh - 32px);color:var(--ink);box-shadow:0 24px 80px #0008}
.dialog-top{min-height:32px;margin-bottom:12px}.dialog-top>.circle{margin-left:auto}
dialog h2{font-size:22px;letter-spacing:-.02em;margin-top:0;margin-bottom:20px}
.circle{background:var(--hps-raised);border:1px solid var(--hps-control-border);box-shadow:none}
#dialog-content>.button,#dialog-content>article+.button{margin-top:12px}
#dialog-content>form+.button{margin-top:16px}
#dialog-content .task-detail-heading h3{font-size:19px;font-weight:700}
.task-meta-chip{background:#ffffff08;border:1px solid #ffffff08;font-size:11px;line-height:1.5;border-radius:10px}
.task-meta-label{color:#b2b2b8}
.task-detail-actions{gap:12px;margin-top:24px}
.task-description-text{color:#c6c6cc}
.task-history-body,.ledger-receipt-details{line-height:1.6}
.task-history>summary{min-height:44px}
.task-employee-group,.task-person-card,.task-dashboard-list,.task-dashboard-stats .stat{background:var(--card);border-color:var(--line);border-radius:20px}
.task-employee-group>summary{min-height:72px}
.task-group-list{border-color:var(--line)}
.task-compact-row{min-height:70px}.task-compact-copy>strong{font-size:14px}
.task-compact-copy>small,.task-compact-state>small{font-size:11px}
.task-row-arrow{font-family:Arial,sans-serif}
.plan-stats,.payment-metrics,.salary-unpaid,.ledger-receipt,.workday,.report-summary{border-color:var(--line)}
.ledger-receipt,.workday,.report-summary,.salary-unpaid{border-radius:18px}
.ledger-receipt>summary,.workday>summary,.report-summary>summary{gap:14px;min-height:64px}
.ledger-receipt>summary b,.payment-total-preview,.salary-total,.unpaid-day-heading b{font-variant-numeric:tabular-nums}
.ledger-receipt-details .row{gap:8px 20px}
.calendar-card{background:var(--card);border:1px solid var(--line);border-radius:20px}
.calendar-card .calendar-navigation,.calendar-card .schedule-toolbar{gap:10px}
.calendar-navigation .button{min-width:44px;padding:9px 12px}
.schedule-actions{gap:12px}
.schedule-actions .button{font-size:11px;padding:10px 14px}
.hour-timeline,.week-overview,.month-overview{font-size:11px}
.week-overview .week-person,.month-overview .month-person{font-size:12px}
.hour-timeline th,.week-overview th,.month-overview th{font-weight:500}
.day-total,.attendance-person-total strong{font-variant-numeric:tabular-nums}
#navigation{display:grid;grid-template-columns:repeat(var(--nav-count,6),minmax(0,1fr));gap:4px;width:var(--nav-width,540px);max-width:calc(100% - 24px);padding:6px;border:1px solid #ffffff26;border-radius:26px;background:#18181bf5;box-shadow:0 12px 36px #0006}
#navigation button{width:auto;min-width:0;min-height:52px;padding:7px 4px;border-radius:20px;font-family:inherit;font-size:10px;line-height:1.3;gap:5px}
#navigation button.active{background:var(--lime);color:var(--hps-on-accent)}
#navigation button svg{width:18px;height:18px;flex:none}
.ios-sheet{font-family:inherit;background:#171719;border-color:var(--hps-control-border);border-radius:26px}
.ios-choice-list,.ios-wheels{background:var(--hps-raised)}
.ios-choice-option{font-size:14px;min-height:48px;line-height:1.5}
.ios-choice-group{background:var(--card);color:var(--muted)}
.ios-choice-search{background:var(--hps-field);border:1px solid var(--hps-control-border)}
.ios-field-trigger{font-family:inherit}
.ios-wheel-column{font-family:inherit}
.day-feedback-banner{background:var(--card);border:1px solid var(--line);padding:16px 22px}
.day-feedback-banner .eyebrow{display:none}.day-feedback-banner h2{font-size:16px;margin:0 0 6px}
.day-feedback-banner .sub{margin:0}.team-preview:hover{background:var(--hps-raised)}
.team-preview:focus-visible{outline-color:var(--lime)}
#demo{border-radius:18px;background:#75D9810a;border:1px solid #75D98120;color:var(--muted)}
#toast{font-family:inherit;border-radius:16px;line-height:1.5}
@media(hover:hover) and (pointer:fine){
 body .button:not(:disabled):hover{background:#29292e;border-color:#ffffff4a}
 body .button.primary:not(:disabled):hover{background:var(--hps-hover);border-color:var(--hps-hover)}
 body .button.danger:not(:disabled):hover{background:#ff8b8915;border-color:#ff8b8960}
 .task-compact-row:hover{background:#ffffff05}
}
@media(max-width:800px){
 .shell{padding:0 20px}.shell>header{margin-top:14px;padding:12px 14px;gap:12px}
 .heading h1{font-size:25px}.grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .card{padding:20px}.hero .big-number{font-size:46px}
 .header-tools .connection{display:none}
}
@media(max-width:650px){
 .shell{padding:0 14px}.shell>header{min-height:68px;padding:10px 12px;margin:12px 0;border-radius:22px;flex-wrap:wrap}
 .brand img{width:80px}.brand span{display:none}.header-right{flex:1;flex-direction:row;align-items:center;justify-content:flex-end;max-width:none;gap:8px}
 #header-profile{flex:1;max-width:none}.header-tools{flex:none}
 .header-tools{gap:6px}.app-fullscreen-button{width:40px;min-width:40px;padding:8px}
 .app-fullscreen-button span{display:none}.grid{display:block}
 main{padding-top:10px;padding-bottom:110px}.heading h1{font-size:24px;line-height:1.25}
 .card{padding:18px;border-radius:20px;margin-bottom:14px}.card h2{font-size:16px}
 .hero .big-number{font-size:44px;margin:22px 0 12px}.big-number small{font-size:14px}
 body .button{font-size:12px;padding:11px 14px}.actions{gap:10px}
 .stat{padding:15px 12px}.stat strong{font-size:21px}
 .accent-card h2,.accent-card .team-preview-title{font-size:20px}.accent-card .eyebrow{font-size:10px;letter-spacing:.8px}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}
 dialog{padding:18px;max-width:calc(100vw - 24px);border-radius:24px}
 dialog h2{font-size:21px}.dialog-top{margin-bottom:10px}
 #dialog-content .task-detail-heading h3{font-size:18px}
 .task-detail-actions{gap:12px}
 .task-detail-heading h3{flex-basis:220px}.task-meta-chip{font-size:11px}
 .task-compact-copy>strong{font-size:13px}.task-compact-copy>small{font-size:11px}
 .ios-choice-option{font-size:15px}
 #navigation .nav-label{font-size:0}
 #navigation .nav-label::before{content:attr(data-short);font-size:10px}
 #navigation{gap:2px;padding:5px;bottom:max(10px,env(safe-area-inset-bottom));border-radius:23px}
 #navigation button{font-size:10px;min-height:50px;padding:6px 2px;border-radius:18px}
 .schedule-actions .button{font-size:11px;padding:10px 12px}
}
@media(max-width:360px){
 .shell{padding:0 10px}.shell>header{padding:9px 10px}
 .brand img{width:68px}.heading h1{font-size:22px}.hero .big-number{font-size:38px}
 .card{padding:16px}.actions{grid-template-columns:1fr}
 #navigation button{font-size:9px;letter-spacing:-.02em}
 #navigation .nav-label::before{font-size:9px}
}

@media(max-width:450px){
 .plan-stats.payment-metrics{grid-template-columns:minmax(0,1fr)}
 .payment-metrics>span:first-child{grid-column:auto}
}

/* Compact spacing keeps type readable rather than compressed. */
body{letter-spacing:0}
h1,h2{font-family:Normalidad,Arial,sans-serif;letter-spacing:0!important}
.heading h1{font-size:28px}.card h2,.section-title{font-size:17px;font-weight:600}
body .button{font-size:14px;font-weight:500;letter-spacing:.01em}
body .filter{font-size:14px;letter-spacing:0}
.sub,.stat .sub,.task-compact-copy>small,.task-compact-state>small{font-size:13px}
label{font-size:14px}.pill,.task-meta-chip{font-size:12px;letter-spacing:0}
.hour-timeline,.week-overview,.month-overview{font-size:12px}
.week-overview .week-person,.month-overview .month-person{font-size:13px}
.schedule-actions .button{font-size:13px}
#navigation button{font-size:12px;letter-spacing:0}
dialog{padding:22px}
.dialog-top{display:flex;align-items:center;gap:16px;min-height:40px;margin:0 0 16px}
.dialog-top h2{flex:1;min-width:0;margin:0;font-size:20px;font-weight:600;line-height:1.35;text-wrap:wrap}
.dialog-top>.circle{flex:0 0 40px;width:40px;height:40px;margin:0;align-self:flex-start;font-size:20px}
#dialog-content>p{margin:10px 0;line-height:1.5;font-size:14px}
#dialog-content>.dialog-top+p{margin-top:0}
#dialog-content>.dialog-header-note{margin:-4px 0 14px}
.dialog-header-note p{margin:0;font-size:13px}
#dialog-content .dialog-note{color:var(--muted);font-size:13px;line-height:1.45}
.reason-list{gap:8px;margin:16px 0 0}
.reason-list .button{min-height:46px;padding:10px 16px}
.plan-detail-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0}
.plan-detail-meta .work-role-badge{margin:0}
.plan-detail-time{margin:14px 0 10px!important;font-family:inherit;font-weight:600}
.plan-detail-actions{margin-top:16px}
#dialog-content .plan-edge-note{font-size:12px;margin:8px 0;color:var(--muted)}
@media(max-width:650px){
 .heading h1{font-size:25px}
 body .button{font-size:14px}body .filter{font-size:13px}
 .schedule-actions .button{font-size:13px}.card h2{font-size:16px}
 .task-compact-copy>strong{font-size:14px}
 #navigation button{font-size:11px;letter-spacing:0}
 #navigation .nav-label::before{font-size:11px}
 dialog{padding:20px}.dialog-top{gap:12px;margin-bottom:14px}
 .dialog-top h2{font-size:19px}
}
@media(max-width:360px){
 dialog{padding:18px}.heading h1{font-size:23px}
 #navigation button,#navigation .nav-label::before{font-size:10px}
}

/* Period and team filter share one baseline; narrow screens stack cleanly. */
.plan-caption{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-bottom:14px}
.plan-caption>strong{flex:1 0 auto;max-width:100%;min-width:0;font-size:15px;font-weight:600;line-height:1.4}
.plan-caption>select,.plan-caption>.ios-field-wrap{flex:1 0 140px!important;width:auto;max-width:240px!important;align-self:center!important}
.plan-caption>.ios-field-wrap .ios-field-trigger{font-size:14px!important}
@media(max-width:650px){
 .plan-caption>select,.plan-caption>.ios-field-wrap{max-width:none!important}
}

/* Workday history belongs to the same page grid as its summary above. */
.history-workdays{width:100%;max-width:none;padding:4px 20px}
@media(max-width:650px){.history-workdays{padding:4px 16px}}

/* A shared green accent for actions, with lighter text for work data. */
:root{--work:#75D981;--work-fill:#75D981;--work-surface:#75D98114;--work-border:#75D9814d}
.progress:not(.red)>i,.salary-payment-track>i,.task-work-bar,.task-work-bar .time-segment-leads,
.sales-team-share i,.sales-category-track i,.attendance-bar .work,.attendance-legend .work,
.time-part-leads>span i,.week-legend i.today,.connection:before{background:var(--work-fill)}
.stat:first-child strong,.value strong,.report-day .row>strong,.workday-totals>strong,
.report-summary-hours>strong,.task-metrics .time-part-leads strong,
.salary-due strong,.salary-balance-total strong,.salary-received>.row>strong,.salary-period>.row>strong,
.unpaid-day-remaining>strong,.payroll-day>b,.salary-payment-progress>.row>strong,.salary-chart-detail b,
.admin-payable strong,.report-balance-due strong,.attendance-person-total strong,.attendance-day-heading small,
.attendance-state.open,.week-done,.week-completed-key,.agenda-status.completed,.feedback-saved{color:var(--work)}
.accent-card h2,.accent-card .team-preview-title{color:var(--work)}
.pill.work,.task-state-completed{background:var(--work-surface);color:var(--work)}
.work-role-badge{color:var(--work);background:var(--work-surface);border-color:var(--work-border)}
.event-dot:not(.rest):not(.task){border-color:var(--work-fill)}
.salary-unpaid>summary small{background:var(--work-surface);color:var(--work)}
.salary-chart-bar-area>i{background:#75D98180}
.salary-chart-day.provisional i{background:repeating-linear-gradient(135deg,#75D98180 0 4px,#75D98133 4px 8px)}
.salary-chart-day.selected i,.salary-chart-day:hover i{background:var(--work-fill)}
.salary-chart-day.selected.provisional i{background:repeating-linear-gradient(135deg,var(--work-fill) 0 4px,#75D98166 4px 8px)}
.salary-chart-day.selected{background:var(--work-surface);color:var(--work)}
.week-overview thead .is-today{color:var(--work)}
.week-overview thead th.is-today,.hour-timeline thead th.is-today{box-shadow:inset 0 -3px var(--work-fill)!important}
.week-shift.is-working{border-bottom-color:var(--work-fill)}
.hour-timeline .timeline-track-day.is-today{background:linear-gradient(#75D98114,#75D98114),#1c1c1e!important;box-shadow:inset 1px 0 var(--work-border),inset -1px 0 var(--work-border)}
.hour-timeline .timeline-track-day.is-today.release-day,.hour-timeline .timeline-track-day.is-today.busy-day{background:linear-gradient(#75D9810a,#75D9810a),#2b2023!important}

/* Rectangular badges identify roles separately from attendance state. */
.pill,.work-role-badge,.task-meta-chip,.report-summary-fine-badge,.today-badge,.attendance-state{border-radius:6px}
.pill,.work-role-badge{display:inline-flex;align-items:center;justify-content:center;min-height:29px;padding:5px 8px;font-size:12px;font-weight:500;line-height:1.4;border:1px solid transparent}
.work-role-badge{justify-content:flex-start;text-align:left;white-space:normal}
.work-role-badge,.work-role-sales{color:var(--work);background:var(--work-surface);border-color:var(--work-border)}
.work-role-purchase{color:#CCB5EF;background:#A482D41a;border-color:#A482D440}
.work-role-support{color:#8BC9D5;background:#68B0C01a;border-color:#68B0C040}
.pill.work,.task-state-completed{border-color:var(--work-border)}
.pill.break,.task-state-paused{border-color:#e4bf6640}
.pill.stale{border-color:#ff8b8940}
.pill.off,.task-state-waiting,.task-state-cancelled{border-color:#ffffff1a}
.task-state-working{border-color:#ac8fda40}

/* Section names already appear in the persistent navigation. */
.page-title-accessible{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.page-utilities{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin:0 0 12px;min-width:0}

/* Shared charcoal/plum surfaces; neutral text throughout the application. */
:root{--bg:#111014;--card:#161419;--ink:#fafafa;--muted:#bcbcc2;--line:#ffffff1c;--hps-raised:#211d24;--hps-field:#141216;--hps-panel-radius:18px;--hps-field-radius:12px;--hps-accent-surface:#594552}
body{background:radial-gradient(ellipse 90% 540px at 55% 0%,#40343e 0%,#252128 48%,#000 100%) no-repeat;background-color:#000}
.shell>header{background:transparent;border:0;border-radius:0;box-shadow:none;min-height:72px;padding-inline:0}
body :is(.card,.stat,.calendar-card,.task-person-card,.task-employee-group,.salary-unpaid,.ledger-receipt,.workday,.report-summary){background:var(--card);border-color:var(--line);box-shadow:none}
body :is(.capsule-controls,.schedule-mode,.admin-sections){background:#18151b;border-color:var(--line)}
body :is(.capsule-controls,.schedule-mode,.admin-sections) .filter.active{background:#f6f6f2;color:#19191b;box-shadow:none}
body .button.primary{background:#594552;border-color:#90788b;color:#fff}
#navigation{background:#17141cf5;border-color:#ffffff26}
#navigation button.active{background:#f6f6f2;color:#19191b}
body :is(dialog,.ios-sheet){background:#19161d;color:var(--ink);border-color:#ffffff26}
body :is(.task-assignee,.work-role-purchase,.task-state-working){color:#f4f4f5}
@media(hover:hover) and (pointer:fine){body .button.primary:not(:disabled):hover{background:#70596a;border-color:#b098ab}}
/* Phone layout: concise summaries, comfortable controls, safe-area dock. */
@media(max-width:650px){
 .shell{padding-inline:12px;min-width:0}
 .shell>header{min-height:58px;margin:10px 0;padding:9px 0;gap:8px;border-radius:0}
 main{padding-top:6px;padding-bottom:calc(90px + env(safe-area-inset-bottom))}
 .card{padding:16px;margin-bottom:12px;border-radius:18px}
 .card h2,.section-title{font-size:16px;margin-bottom:12px}
 .heading{gap:10px;margin-bottom:14px}.heading h1{font-size:24px}
 .hero .big-number{font-size:42px;margin:16px 0 10px}
 .plan-stats{gap:8px}.stat{padding:12px;min-width:0}.stat strong{font-size:21px;overflow-wrap:anywhere}
 .day-feedback-banner{padding:12px 14px;gap:10px}.day-feedback-banner h2{font-size:14px}
 .actions{gap:8px}body .button{min-height:44px;padding:10px 13px}
 body .capsule-controls{max-width:100%;overflow-x:auto;flex-wrap:nowrap;justify-content:flex-start}
 body .capsule-controls .filter{flex:0 0 auto;white-space:nowrap;min-height:44px}
 .page-utilities{gap:8px;margin-bottom:10px}
 #navigation{max-width:calc(100% - 20px);bottom:max(8px,env(safe-area-inset-bottom));padding:5px;border-radius:22px;backdrop-filter:blur(16px)}
 #navigation button{min-height:48px;gap:4px;border-radius:17px}
 dialog{width:calc(100% - 24px);max-width:420px;max-height:calc(100dvh - 32px);padding:18px;border-radius:22px;box-sizing:border-box}
 .dialog-top{margin-bottom:12px}.dialog-top h2{font-size:19px}
}
@media(prefers-reduced-motion:reduce){body *{scroll-behavior:auto!important}}

/* Shift home: wallet-inspired hierarchy in HPS charcoal/plum. */
.shift-home{--home-soft:#d7cbd4;--home-edge:#ffffff16;--home-base:#19171d;--home-green:#91b89b;--home-amber:#d1b27d;--green:var(--home-green);--lime:var(--home-green);--yellow:var(--home-amber)}
.shift-home .page-utilities{margin-bottom:8px}
.shift-home .shift-home-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px;align-items:start}
.shift-home :is(.shift-home-primary,.shift-home-secondary){min-width:0;display:grid;gap:12px}
.shift-home .card{margin:0;padding:20px;border:0;border-radius:22px;background:#1b191f}
.shift-home .hero{padding:0;overflow:hidden;background:#1b191f}
.shift-wallet-surface{padding:22px;background:radial-gradient(ellipse at 0% 100%,#80677938,transparent 72%),var(--home-base,#19171d);border-radius:22px;color:#fff}
.shift-home .shift-head{gap:12px;align-items:center}
.shift-home .person{min-width:0;gap:10px}.shift-home .person strong{overflow-wrap:anywhere}
.shift-home .person .avatar{width:36px;height:36px;font-size:24px;background:#ffffff14;border:0}
.shift-home .shift-wallet-surface .sub{color:#eee5ec}
.shift-home .shift-badges{gap:5px;flex-wrap:wrap;justify-content:flex-end}
.shift-home .shift-badges :is(.pill,.work-role-badge){font-size:10px;min-height:24px;padding:3px 7px;background:#17121c66;color:#fff;border-color:#ffffff24}
.shift-wallet-label{margin-top:24px;font-size:12px;color:#eee5ec}
.shift-home .hero .big-number{margin:4px 0 20px;font-size:56px;line-height:1.15;letter-spacing:-.035em;font-variant-numeric:tabular-nums;color:#fff}
.shift-home .hero .big-number small{font-size:16px;font-weight:400;color:#eee5ec}
.shift-home .hero .progress{height:4px;background:#100d172e;margin:0 0 9px}
.shift-home .hero .progress>i{background:#e9d7e3}
.shift-home .shift-wallet-surface>.actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.shift-home .shift-wallet-surface>.actions .button{min-height:62px;flex-direction:column;gap:5px;padding:10px 8px;border-radius:17px;background:#211c304d;border:1px solid #ffffff24;color:#fff;white-space:normal;text-align:center}
.shift-home .shift-wallet-surface>.actions .button.primary{background:#f3edf1;color:#211a24;border-color:transparent}
.shift-wallet-footer{padding:16px 20px}
.shift-home .work-task-controls{margin:0;padding:0;border:0}
.shift-home .work-task-controls>.sub{margin:0 0 8px}
.shift-home .live-note{margin:10px 0 0;font-size:10px;color:#bdb5c0}
.shift-home .team-preview{width:100%;text-align:left;background:#211d26;color:#fff}
.shift-home .team-preview-title{margin-top:14px;color:#fff;font-size:24px}
.shift-home .team-preview .mini-team{margin-top:14px}
.shift-home .team-preview .text-link{color:#d7cbd4}
.shift-home .pay-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center}
.shift-home .pay-summary>.row{grid-column:1/-1;margin:0}
.shift-home .pay-summary .pay-total{grid-column:1/-1;margin:0 0 2px;font-size:30px;line-height:1.2;color:#fff}
.shift-home .pay-summary .button{margin:0;padding:9px 12px;font-size:11px;min-height:44px;white-space:normal;border-radius:13px}
.shift-home .shift-rest-card .rest-number{font-size:24px;margin:8px 0 12px}
.shift-home .shift-events-card>.row{gap:12px;align-items:baseline}
@media(hover:hover) and (pointer:fine){
 .shift-home .shift-wallet-surface>.actions .button:hover{background:#ffffff28}
 .shift-home .shift-wallet-surface>.actions .button.primary:hover{background:#fff}
 .shift-home .team-preview:hover{background:#2a2430}
}
@media(max-width:700px){
 .shift-home .shift-home-grid{grid-template-columns:1fr;gap:12px}
 .shift-home .card{padding:16px;border-radius:20px}
 .shift-home .hero{padding:0}
 .shift-wallet-surface{padding:18px;border-radius:20px}
 .shift-wallet-label{margin-top:20px}
 .shift-home .hero .big-number{font-size:44px;margin-bottom:16px}
 .shift-home .shift-wallet-surface>.actions{margin-top:16px;gap:8px}
 .shift-home .shift-wallet-surface>.actions .button{min-height:60px;font-size:12px}
 .shift-wallet-footer{padding:12px 16px}
 .shift-home .shift-head .person strong{font-size:13px}
 .shift-home .shift-head .person .sub{font-size:11px}
 .shift-home .shift-head .person .avatar{display:none}
 .shift-home .shift-badges{max-width:112px}
 .shift-home .team-preview-title{font-size:20px}
 .shift-home .pay-summary .pay-total{font-size:27px}
}
@media(max-width:360px){.shift-home .pay-summary{grid-template-columns:1fr}.shift-home .hero .big-number{font-size:39px}}

/* Shift cards: localized glows and action colors across all viewport sizes. */
.shift-home .team-preview{background:radial-gradient(ellipse at 0% 100%,#80677938,transparent 72%),var(--home-base)}
.shift-home .pay-summary{background:radial-gradient(ellipse at 0% 100%,#66856f30,transparent 72%),var(--home-base)}
.shift-home .shift-rest-card{background:radial-gradient(ellipse at 0% 100%,#a68a6130,transparent 72%),var(--home-base)}
.shift-home .shift-events-card{background:radial-gradient(ellipse at 0% 100%,#7b688b26,transparent 72%),var(--home-base)}
.shift-home .shift-wallet-surface>.actions .button.shift-action-finish{background:linear-gradient(135deg,#65434f 0%,#372b34 100%);border-color:var(--hps-control-border);color:#fff}
.shift-home .shift-wallet-surface>.actions .button.shift-action-break{background:linear-gradient(135deg,#455c6b 0%,#29323e 100%);border-color:var(--hps-control-border);color:#fff}
.shift-home .shift-wallet-surface>.actions .button.shift-action-return{background:linear-gradient(135deg,#3d6454 0%,#293d36 100%);border-color:var(--hps-control-border);color:#fff}
#dialog-content .button.shift-confirm-finish{background:#67434e;border-color:var(--hps-control-border);color:#fff}
@media(hover:hover) and (pointer:fine){
 .shift-home .shift-wallet-surface>.actions .button.shift-action-finish:hover{background:linear-gradient(135deg,#76505e 0%,#463440 100%)}
 .shift-home .shift-wallet-surface>.actions .button.shift-action-break:hover{background:linear-gradient(135deg,#536e80 0%,#343f4d 100%)}
 .shift-home .shift-wallet-surface>.actions .button.shift-action-return:hover{background:linear-gradient(135deg,#4b7965 0%,#334b42 100%)}
 #dialog-content .button.shift-confirm-finish:hover{background:#79505c}
 .shift-home .team-preview:hover{background:radial-gradient(ellipse at 0% 100%,#80677950,transparent 72%),var(--home-base)}
}

/* Consistent alignment for shift actions and timer units. */
.shift-home .shift-wallet-surface>.actions .button{display:flex;align-items:center;justify-content:center;line-height:1.3;font-weight:600}
.shift-home .hero .big-number small{letter-spacing:normal}

/* Shared muted accents for the shift dashboard, at every viewport size. */
.shift-home :is(.warning,.current-break){background:#b08b5020;color:#e1c497;box-shadow:inset 0 0 0 1px #d1b27d20}
.shift-home>.personal-plan-banner{background:radial-gradient(ellipse at 0% 100%,#66856f30,transparent 72%),var(--home-base)}
.shift-home .personal-plan-ring{background:conic-gradient(var(--home-green) var(--plan-fill),#343039 0)}
.shift-home .personal-plan-ring>span{background:var(--home-base)}
.shift-home .personal-plan-reminder b{color:var(--home-green)}

/* Date picker shares its navigation capsule; syncField copies native field colors. */
.calendar-navigation .calendar-date-switch input[type=date],.calendar-navigation .calendar-date-switch .ios-field-trigger{background:transparent!important;border:0;box-shadow:none}

.personal-results-tabs{margin-bottom:16px}.personal-shifts>summary,.personal-previous-payments>summary{cursor:pointer;font-weight:600;padding:2px 0}.personal-shifts-body{margin-top:16px}.personal-previous-payments[open]>summary{margin-bottom:16px}.personal-results-tabs{flex-wrap:wrap}

/* Current team: role belongs to the name; schedule stays a compact time range. */
.team-person-heading{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.team-person-heading>strong{min-width:0;overflow-wrap:anywhere}
.team-person-heading .work-role-badge{margin:0}
/* Pointer activation has no focus ring; keyboard focus remains visible. */
button,a,summary,[role="button"]{-webkit-tap-highlight-color:transparent}
button:focus:not(:focus-visible),a:focus:not(:focus-visible),summary:focus:not(:focus-visible),[role="button"]:focus:not(:focus-visible){outline:none}

/* Штрафы и командная история выплат */
.fines-heading, .fines-register > summary, .fine-overview {
  display: flex;
  gap: 12px;
  align-items: center;
}
.fines-heading, .fine-overview { justify-content: space-between; }
.fines-heading h2, .team-payment-history > h3 { margin: 0; }
.fines-total, .fine-value { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.fines-total strong { font-size: 21px; line-height: 1.25; }
.fines-total small, .fine-description small, .fine-details small { color: var(--muted); font-size: 12px; }
.fines-register { margin-top: 12px; }
.fines-register > summary { font-size: 13px; color: var(--muted); gap: 18px; }
.fines-section summary { cursor: pointer; }
.fine-list, .payment-day { border-top: 1px solid var(--line); }
.fine-record + .fine-record, .team-payment-history .ledger-receipt + .ledger-receipt { border-top: 1px solid var(--line); }
.fine-record > summary { min-height: 54px; padding-block: 10px; }
.fine-description { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.fine-description strong { font-size: 15px; }
.fine-value { flex: none; gap: 2px; }
.fine-value s, .fine-status-cancelled { color: var(--muted); }
.fine-value small { font-size: 12px; }
.fine-status-active { color: var(--yellow, #ecc982); }
.fine-details, .team-payment-history .ledger-receipt-details {
  border-radius: 12px;
  background: var(--hps-raised);
  padding: 14px 16px;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.fine-details { display: grid; gap: 8px; }
.fine-details > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: baseline; gap: 8px; }
.fine-details span { white-space: pre-line; }
.fine-cancellation { border-top: 1px solid var(--line); padding-top: 8px; }
.fine-details button { justify-self: start; }
.payment-day { margin-top: 16px; padding-top: 12px; }
.payment-day h4 { margin: 0 0 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.team-payment-history .ledger-receipt { border: 0; border-radius: 0; background: transparent; }
.team-payment-history .ledger-receipt > summary { min-height: 48px; padding: 10px 0; }
.team-payment-history .ledger-payee { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; }
.team-payment-history .ledger-payee small { margin: 0; }
.team-payment-history .cancelled > summary > b { text-decoration: line-through; }
.team-payment-history .ledger-receipt-details > :first-child { margin-top: 0; }
.team-payment-history .ledger-receipt-details > :last-child { margin-bottom: 0; }
@media (max-width: 540px) {
  .team-payment-history .ledger-payee { display: grid; }
  .fine-details > div { grid-template-columns: 1fr; gap: 1px; }
}
