
/*
  КВИЗ ПЛЮС / UNBOUNDED SYSTEM — 2026
  Structural design layer applied after all legacy styles.
  Geometry of Telegram scroll roots and modal forms remains untouched.
*/
:root{
  --u-font:'Unbounded',-apple-system,BlinkMacSystemFont,sans-serif;
  --u-ink:#eff4ef; --u-muted:#90a19a; --u-dim:#64756e;
  --u-bg:#080d0c; --u-card:#141b19; --u-card-2:#19221e;
  --u-line:rgba(222,242,231,.085); --u-green:#11b978;
  --u-soft-green:rgba(17,185,120,.10);
  --u-shadow:0 16px 38px rgba(0,0,0,.16);
  --u-lg:24px; --u-md:18px; --u-sm:13px;
  --bg:#080d0c; --bg-deep:#050907;
  --surface:#141b19; --surface-2:#19221e; --surface-3:#22302a;
  --line:rgba(222,242,231,.12);--line-soft:rgba(222,242,231,.07);
  --text:#eff4ef;--muted:#90a19a;--muted-2:#66796e;
  --accent:#0a9661;--green:#0a9661;--success:#37d398;
  --ui-text:#eff4ef;--ui-muted:#8ea099;--ui-bg:#080d0c;
  --ui-surface:#141b19;--ui-surface-raised:#1d2822;
  --ui-border:rgba(233,248,238,.11);
  --ui-border-strong:rgba(233,248,238,.18);
  --ui-accent:#0a9661;--ui-accent-pressed:#087e50;
  --premium-ring:rgba(233,248,238,.10);
}
:root[data-theme=light]{
  --u-ink:#172820; --u-muted:#667b71; --u-dim:#899b91;
  --u-bg:#f7f8f4;--u-card:#fff;--u-card-2:#f3f7f4;
  --u-line:rgba(13,61,42,.095);--u-green:#087f54;
  --u-soft-green:rgba(8,127,84,.07);
  --u-shadow:0 12px 26px rgba(31,69,51,.06);
  --bg:#f7f8f4;--bg-deep:#eef2eb;--surface:#fff;
  --surface-2:#f3f7f4;--surface-3:#eaf4ee;
  --line:#d9e3db;--line-soft:#e8eee9;--text:#172820;--muted:#65786f;--muted-2:#809087;
  --ui-text:#172820;--ui-muted:#65786f;--ui-bg:#f7f8f4;
  --ui-surface:#fff;--ui-surface-raised:#f3f7f4;
  --ui-border:#d9e3db;--ui-border-strong:#c6d7cc;--ui-accent:#087f54;
}
/* Typography: Unbounded is the primary font at every level. Keep headings restrained. */
html,body,#app,
button,input,select,textarea,.ui-button,.ui-icon-button,
.sheet,.bottom,.nav,.employee-page,.portal-shell,
.shell,.person,.event,.ledger,.report,.schedule-page,.tasks-page{
  font-family:var(--u-font)!important;
}
body,#app{color:var(--u-ink);font-weight:400;letter-spacing:0;}
button,input,textarea,select{font-weight:500;}
b,strong{font-weight:650;}
:where(h1,h2,h3,p){margin-block-start:0;}
:where(h1,h2,h3){letter-spacing:-.045em;line-height:1.3;font-weight:700;}
.section-kicker{
  display:block;color:var(--u-green);font-size:9px;font-weight:700;
  letter-spacing:.105em;line-height:1.6;text-transform:uppercase;
}
.section-kicker + h2,.section-kicker + h3{margin:6px 0 0;}
:root[data-theme=light] .section-kicker{color:#087f54;}
:where(.eyebrow,.section-title,.period,.field label,.pnl small,.profile-section-aside){
  letter-spacing:.015em!important;text-transform:none!important;
}
:where(.page-title,.employee-name,.hero-value,.employee-report-title,.portal-profile-head h2){
  letter-spacing:-.055em!important;
}
:where(.page-title,.employee-name,.portal-profile-head h2){
  overflow-wrap:anywhere;word-break:normal;hyphens:auto;
}
/* Navigation chrome */
.shell{background:var(--u-bg)!important;}
.top{
  position:sticky;top:0;padding:19px 19px 16px;
  background:color-mix(in srgb,var(--u-bg) 93%,transparent)!important;
  border-bottom:1px solid var(--u-line)!important;
  box-shadow:none!important;backdrop-filter:blur(22px);
}
.brand{font-size:15px!important;line-height:1.3;letter-spacing:-.045em!important;font-weight:800;color:var(--u-ink)!important;}
.admin{color:var(--u-muted)!important;font-size:10px!important;letter-spacing:0;}
.admin:before{box-shadow:none;width:5px;height:5px;background:var(--u-green);}
.title-row{margin-top:17px;min-height:0;}
.page-title{font-size:clamp(24px,6.1vw,30px)!important;line-height:1.25!important;font-weight:700!important;color:var(--u-ink)!important;}
.period{font-size:9px!important;font-weight:600;color:var(--u-muted)!important;border-color:var(--u-line)!important;background:var(--u-card)!important;border-radius:99px!important;padding:6px 9px!important;letter-spacing:0!important;}
main{padding:23px 19px 36px;}
.bottom,:root:not([data-theme=light]) .bottom{
  width:min(498px,calc(100% - 22px));bottom:calc(8px + var(--qpf-safe-bottom));
  background:color-mix(in srgb,var(--u-card) 95%,transparent)!important;
  border:1px solid var(--u-line)!important;border-radius:22px;
  box-shadow:0 15px 44px rgba(0,0,0,.29)!important;
  backdrop-filter:blur(28px) saturate(115%);padding:7px;gap:2px;
}
.nav{min-height:58px!important;padding:7px 2px!important;gap:6px!important;
  background:transparent;border-radius:15px;font-size:9px!important;color:var(--u-muted)!important;font-weight:500;}
.nav.active{color:var(--u-ink)!important;background:var(--u-soft-green)!important;box-shadow:none!important;}
.nav .nav-label,.portal-bottom .nav-label{font-size:9px!important;font-weight:600!important;letter-spacing:-.04em!important;}
.nav-icon svg{width:20px;height:20px;stroke-width:1.8;}
.nav.active:after{height:2px;bottom:4px;background:var(--u-green)!important;width:15px;box-shadow:none!important;}
.fab{min-height:50px;height:50px;min-width:110px;
  border-radius:16px!important;border:0!important;
  background:var(--u-green)!important;color:#fff!important;
  box-shadow:0 13px 27px rgba(0,125,75,.23)!important;
}
.fab-label{font-size:11px!important;font-weight:700!important;letter-spacing:-.035em!important;}
/* Shared composition and tactile treatments: no repeated framed boxes */
:where(.pnl,.person,.event,.report,.bank-transaction,.transaction-overview,
  .task-card,.schedule-card,.birthday-card,.feed,.leader-next-event-card,
  .props-event-card,.props-expense-card,.portal-departments>div){
  background:var(--u-card)!important;
  border:1px solid var(--u-line)!important;
  border-radius:var(--u-md)!important;
  box-shadow:none!important;
}
:where(.pnl,.person,.event,.report,.bank-transaction,.transaction-overview,
  .task-card,.schedule-card,.birthday-card,.feed):before{
  box-shadow:none!important;
}
:where(.ui-button,.ui-icon-button){
  border-radius:var(--u-sm)!important;
  min-height:44px;font-weight:650!important;
  letter-spacing:-.025em!important;
  box-shadow:none!important;
}
.ui-button--primary,.ui-button--primary:hover{
  background:var(--u-green)!important;color:#fff!important;border:0!important;
}
.ui-button--secondary,.ui-icon-button{
  background:var(--u-card-2)!important;color:var(--u-ink)!important;border:1px solid var(--u-line)!important;
}
:where(.ui-button,.ui-icon-button,.person,.task-card,.event,.schedule-card):active{transform:scale(.987);}
:where(button,[role=button],input,textarea,select):focus-visible{
  outline:2px solid var(--u-green)!important;outline-offset:2px!important;
}
input,select,textarea{color:var(--u-ink);font-size:16px!important;letter-spacing:-.04em;}
:where(.field input,.field select,.field textarea,.search,.employee-directory-controls select){
  background:var(--u-card)!important;border:1px solid var(--u-line)!important;
  border-radius:15px!important;color:var(--u-ink)!important;
  min-height:52px;box-shadow:none!important;
}
:where(input,textarea)::placeholder{color:var(--u-dim)!important;opacity:.95;}
/* Main dashboard: hero, KPI tiles, period and team events */
.dashboard-page{display:grid;gap:22px;}
.dashboard-intro{display:grid;gap:5px;padding:2px 1px 0;}
.dashboard-intro p,.staff-directory-top p,.tasks-intro p,.schedule-intro p{
  margin:0;color:var(--u-muted);font-size:11px;line-height:1.65;
}
.dashboard-page .home-tabs{margin:0;}
.dashboard-page .home-unit-wrap{margin:0 0 11px;}
.dashboard-finance-hero{
  display:flex;justify-content:space-between;align-items:flex-start;
  position:relative;min-width:0;overflow:hidden;
  padding:26px 23px 28px;border-radius:var(--u-lg);
  background:linear-gradient(142deg,#203b30 0%,#14251e 36%,#101b17 100%);
  border:1px solid rgba(119,219,156,.13);color:#f2f8f3;
}
.dashboard-finance-hero:before{
  content:"";position:absolute;right:-80px;top:-95px;width:240px;height:240px;
  border-radius:50%;background:radial-gradient(circle,rgba(66,187,124,.2),transparent 66%);
  pointer-events:none;
}
.dashboard-finance-hero .hero{padding:0;min-width:0;position:relative;z-index:1;}
.dashboard-finance-hero .eyebrow,.premium-portal-finance .eyebrow{
  color:#a4cab3!important;font-size:10px!important;font-weight:600!important;
}
.dashboard-finance-hero .hero-value{
  margin:17px 0 15px;font-weight:700!important;
  font-size:clamp(25px,7vw,36px)!important;line-height:1.3!important;
  color:#f6fff8!important;white-space:normal;overflow-wrap:anywhere;
}
.dashboard-finance-hero .hero-sub{color:#a7bbac!important;font-size:10px!important;line-height:1.6;}
.dashboard-hero-mark{font-size:58px;line-height:1;color:#386750;position:absolute;right:15px;bottom:10px;font-weight:500;}
.dashboard-section-title,.profile-section-heading,.ledger-section-head,.staff-list-heading,
.tasks-list-heading,.schedule-list-heading,.portal-profile-section-title{
  display:flex;align-items:end;justify-content:space-between;gap:12px;min-width:0;
}
.dashboard-section-title h2,.profile-section-heading h2,.staff-directory-top h2,
.tasks-intro h2,.schedule-intro h2,.portal-profile-section-title h3{
  color:var(--u-ink);font-size:clamp(15px,4.3vw,19px)!important;line-height:1.4;margin:4px 0 0;font-weight:700;
}
.dashboard-section-title>span,.profile-section-aside,.staff-list-heading small{
  color:var(--u-muted);font-size:9px;line-height:1.6;white-space:nowrap;
}
.dashboard-page .pnl-grid{margin-top:-9px;}
.dashboard-kpi-grid{gap:9px;}
.dashboard-kpi-grid .pnl{min-width:0;min-height:112px;padding:17px 14px;background:var(--u-card)!important;border-color:var(--u-line)!important;}
.dashboard-kpi-grid .pnl:after{display:none!important;}
.dashboard-kpi-grid .pnl small{font-size:10px!important;color:var(--u-muted)!important;letter-spacing:-.03em!important;}
.dashboard-kpi-grid .pnl b{font-size:clamp(13px,3.9vw,17px)!important;line-height:1.5!important;letter-spacing:-.035em!important;white-space:normal;overflow-wrap:anywhere;margin-top:11px;}
.dashboard-kpi-grid .pnl span{font-size:9px!important;line-height:1.6;color:var(--u-dim)!important;}
.dashboard-kpi-grid .pnl--payables{color:var(--u-ink);text-align:left;}
.dashboard-kpi-grid .pnl--payables b{color:var(--u-green);}
.dashboard-kpi-grid .pnl--payables .pnl-action{color:var(--u-green)!important;font-weight:600;}
.dashboard-period-card{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:19px 18px;background:var(--u-card-2);border-radius:var(--u-md);
}
.dashboard-period-card>div:first-child{display:grid;gap:4px;min-width:0;}
.dashboard-period-card strong{font-size:13px;color:var(--u-ink);letter-spacing:-.04em;}
.dashboard-period-card small{font-size:9px;color:var(--u-muted);}
.dashboard-period-card .month-nav{flex:none;}
.dashboard-period-card .month-nav button{width:42px;height:42px;background:var(--u-card)!important;border-color:var(--u-line)!important;border-radius:13px!important;}
.dashboard-upcoming{display:grid;gap:10px;margin-top:-8px;}
.dashboard-upcoming .birthday-card,.dashboard-upcoming .leader-next-event-card{margin:0;background:var(--u-card)!important;}
.dashboard-upcoming .admin-next-event{margin:0;}
/* Home controls and transaction detail */
.home-unit-tabs,.home-tabs,.transaction-filter-tabs,
.employee-status-tabs,.task-tabs,.schedule-filters{
  border:none!important;border-radius:14px!important;background:var(--u-card-2)!important;
  padding:4px!important;gap:3px!important;
}
.home-unit-tabs button,.home-tabs button,.transaction-filter-tabs button,
.employee-status-tabs button,.task-tabs button,.schedule-filters button{
  min-height:37px;font-size:10px!important;letter-spacing:-.035em!important;
  font-weight:550!important;border-radius:10px!important;
}
.home-unit-tabs button.active,.home-tabs button.active,.transaction-filter-tabs button.active,
.employee-status-tabs button.active,.task-tabs button.active,.schedule-filters button.active{
  background:var(--u-card)!important;color:var(--u-ink)!important;
  box-shadow:0 2px 7px rgba(0,0,0,.08)!important;border:0!important;
}
.home-unit-wrap>small{font-size:9px!important;color:var(--u-muted);}
.transaction-overview{padding:20px!important;}
.transaction-overview b{font-family:var(--u-font);white-space:normal!important;overflow-wrap:anywhere;}
.bank-transaction{padding:14px!important;gap:11px!important;}
.bank-transaction-main b{font-size:11px!important;line-height:1.55;}
.bank-transaction-main small,.bank-transaction strong{font-size:10px!important;line-height:1.5;}
/* Directory: compact identity-led rows, no nested card soup */
.staff-directory{display:grid;gap:15px;}
.staff-directory-top{display:grid;gap:16px;}
.staff-directory-top h2{font-size:24px!important;margin:3px 0 4px;}
.staff-directory-top h2 span{font-size:11px;color:var(--u-green);vertical-align:middle;}
.staff-directory-top .section-action{margin:0!important;width:100%;min-height:48px;font-size:11px!important;background:var(--u-card-2)!important;}
.staff-directory-top .section-action span{font-size:19px;line-height:1;color:var(--u-green);}
.employee-directory-controls{display:grid;gap:9px;margin:0!important;}
.staff-search{position:relative;display:block;}
.staff-search-icon{position:absolute;left:15px;top:50%;transform:translateY(-53%);font-size:24px;color:var(--u-muted);line-height:1;pointer-events:none;}
.staff-search .search{margin:0!important;padding-left:48px!important;font-size:13px!important;min-height:50px;letter-spacing:-.05em;}
.staff-filter-bar{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:9px;}
.staff-filter-label{font-size:10px;font-weight:600;color:var(--u-muted);}
.staff-filter-bar select{width:100%;padding:0 13px;font-size:11px!important;min-height:45px;}
.staff-directory .employee-status-tabs{display:grid;grid-template-columns:1fr 1fr;}
.staff-list-heading{padding:1px 2px;margin:9px 0 -3px;}
.staff-list-heading b{font-size:13px;color:var(--u-ink);font-weight:650;}
.staff-list-heading small{font-size:9px;}
.staff-list-row{
  display:grid!important;grid-template-columns:42px minmax(0,1fr) auto;
  gap:11px!important;align-items:center;margin:0 0 8px!important;
  min-height:78px!important;padding:13px!important;
  color:var(--u-ink)!important;border-radius:17px!important;
}
.staff-list-row .avatar{width:42px;height:42px;border-radius:13px;background:var(--u-card-2)!important;box-shadow:none!important;font-size:11px;}
.staff-list-row .person-name{font-size:11px!important;line-height:1.5;font-weight:700;letter-spacing:-.04em;}
.staff-list-row .person-meta{font-size:9px!important;line-height:1.6;margin-top:3px;color:var(--u-muted)!important;}
.staff-tags{margin-top:7px;display:flex;gap:4px;flex-wrap:wrap;}
.staff-tag{
  display:inline-flex;max-width:100%;background:var(--u-card-2);
  border-radius:7px;padding:4px 7px;color:var(--u-muted);
  font-size:8px;line-height:1.5;overflow-wrap:anywhere;
}
.staff-tag--unassigned{background:rgba(245,184,80,.09);color:#c99e62;}
.staff-list-row .balance{max-width:116px;min-width:0;}
.staff-list-row .balance b{font-size:10px!important;font-weight:650;line-height:1.5;white-space:normal;overflow-wrap:anywhere;}
.staff-list-row .balance span{font-size:8px!important;line-height:1.5;color:var(--u-muted)!important;}
.staff-empty{display:grid;gap:10px;place-items:center;padding:35px 12px;}
.staff-empty span{font-size:35px;color:var(--u-green);}
.staff-empty b{font-size:13px;}
.staff-empty small{font-size:10px;color:var(--u-muted);}
/* Admin employee: editorial identity -> finance -> contact -> safe actions */
.employee-page{
  width:min(520px,100%);min-height:100dvh;margin:auto;background:var(--u-bg)!important;
  padding:0 17px 48px!important;
  color:var(--u-ink)!important;
}
.employee-toolbar{
  padding:17px 0 13px;position:sticky;top:0;z-index:22;
  background:color-mix(in srgb,var(--u-bg) 95%,transparent)!important;
  border-bottom:1px solid var(--u-line)!important;gap:8px;
}
.employee-toolbar-title{font-size:10px!important;color:var(--u-muted)!important;letter-spacing:-.035em!important;font-weight:600;text-transform:none;}
.employee-toolbar .employee-toolbar-action{min-width:0;min-height:43px;padding:0 12px;font-size:10px!important;}
.profile-hero{
  display:block!important;margin:22px 0 14px;padding:21px 19px 19px!important;
  background:linear-gradient(135deg,#1d3228 0%,#121e18 78%)!important;
  border:1px solid rgba(104,199,147,.14)!important;border-radius:var(--u-lg);
  box-shadow:none!important;color:#f4f8f4;
}
.profile-hero-top{display:flex;justify-content:space-between;align-items:center;gap:10px;}
.profile-hero-kicker{font-size:8px;letter-spacing:.045em;font-weight:650;color:#8fac9a;line-height:1.5;}
.profile-hero-kicker span{padding:0 5px;color:#4a8162;}
.profile-state{display:inline-flex;align-items:center;gap:7px;font-size:9px;font-weight:600;color:#91e2b5;white-space:nowrap;}
.profile-state:before{content:"";width:6px;height:6px;background:#27cd88;border-radius:50%;}
.profile-state.is-archive{color:#e7b7b7;}.profile-state.is-archive:before{background:#e79a9a;}
.profile-hero-person{display:flex;align-items:center;gap:15px;padding:24px 0 20px;}
.profile-hero .employee-avatar{
  width:78px;height:78px;border-radius:19px!important;
  border:1px solid rgba(226,248,234,.18);background:#263b30;
  box-shadow:none!important;font-size:22px;
}
.profile-hero .employee-name{margin:0;font-size:clamp(17px,5vw,23px)!important;line-height:1.3!important;font-weight:750;color:#fff;letter-spacing:-.065em!important;}
.profile-hero .employee-role{font-size:10px;color:#c1d8ca;margin-top:7px;line-height:1.6;font-weight:550;}
.profile-hero .employee-subline{font-size:9px;color:#91ab9c;line-height:1.65;margin-top:5px;}
.profile-hero .employee-photo-action{font-size:9px;color:#86d4a8;margin-top:11px;text-decoration:none;font-weight:600;}
.profile-hero-facts{display:grid;grid-template-columns:1fr 1fr;gap:9px;border-top:1px solid rgba(227,244,228,.12);padding-top:15px;}
.profile-hero-facts>div{min-width:0;}
.profile-hero-facts small{display:block;font-size:8px;color:#8eac99;margin-bottom:6px;letter-spacing:.04em;}
.profile-hero-facts strong{display:block;font-size:10px;line-height:1.55;color:#f0f9f3;font-weight:600;overflow-wrap:anywhere;}
.employee-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0 0 31px!important;}
.employee-actions .ui-button{min-width:0;min-height:48px!important;font-size:11px!important;font-weight:650!important;border-radius:14px!important;justify-content:center!important;}
.employee-action--accrual{background:var(--u-card-2)!important;color:var(--u-ink)!important;border:1px solid var(--u-line)!important;}
.employee-action--payment{background:var(--u-green)!important;color:#fff!important;border:0!important;}
.employee-report{margin:0;padding:0!important;background:transparent!important;box-shadow:none!important;border:0!important;}
.employee-report-head{display:grid;gap:13px;margin:0 0 12px;align-items:stretch;}
.employee-report-head .report-heading{min-width:0;}
.employee-report-title{font-size:19px!important;line-height:1.4;font-weight:700;max-width:none;}
.employee-report-period{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.employee-report-period b{font-size:10px;color:var(--u-ink)!important;letter-spacing:-.04em!important;min-width:0;flex:1;}
.employee-report-period .employee-month-button{width:40px;height:40px;min-height:40px;border-radius:12px!important;background:var(--u-card)!important;border:1px solid var(--u-line)!important;}
.employee-finance-overview{display:grid;gap:10px;}
.employee-balance-total{
  position:relative;margin:0!important;padding:21px 19px!important;
  border-radius:var(--u-lg);border:1px solid var(--u-line)!important;
  background:var(--u-card)!important;overflow:hidden;
}
.employee-balance-total:after{content:"";position:absolute;right:-40px;top:-70px;width:175px;height:175px;background:radial-gradient(circle,rgba(41,180,112,.09),transparent 70%);border-radius:50%;pointer-events:none;}
.balance-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.balance-topline small{font-size:9px!important;color:var(--u-muted)!important;letter-spacing:-.02em!important;font-weight:550;line-height:1.6;}
.balance-topline i{font-size:15px;color:var(--u-green);font-style:normal;}
.employee-balance-total b{font-size:clamp(23px,7vw,33px)!important;line-height:1.3;letter-spacing:-.075em!important;margin:16px 0 8px;overflow-wrap:anywhere;white-space:normal;}
.balance-footnote{font-size:8px;color:var(--u-dim);}
.employee-kpi-wrap .employee-summary{
  display:grid;grid-template-columns:1fr 1fr;gap:9px;background:transparent;border:0;margin:0;
}
.employee-kpi-wrap .employee-summary-item,.employee-kpi-wrap .employee-summary-item:nth-child(even),.employee-kpi-wrap .employee-summary-item:nth-child(n+3){
  padding:15px 13px!important;min-height:93px;border:1px solid var(--u-line)!important;
  border-radius:16px!important;background:var(--u-card)!important;
}
.employee-summary-item small{font-size:9px!important;line-height:1.55;letter-spacing:-.02em!important;color:var(--u-muted)!important;}
.employee-summary-item b{font-size:clamp(12px,4vw,16px)!important;line-height:1.55;white-space:normal;overflow-wrap:anywhere;letter-spacing:-.055em!important;margin-top:9px;}
.employee-filter-section{margin:25px 0 21px;}
.report-subheading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px;}
.report-subheading b{font-size:11px;font-weight:650;}
.report-subheading small{font-size:9px;color:var(--u-muted);}
.employee-contour-tabs{
  display:flex!important;overflow-x:auto;overflow-y:hidden;gap:5px!important;
  border:0!important;background:var(--u-card-2)!important;border-radius:13px!important;
  margin:0!important;padding:5px!important;scrollbar-width:none;
}
.employee-contour-tabs button{flex:0 0 auto;min-width:76px;min-height:37px;padding:9px 11px!important;font-size:9px!important;font-weight:600;color:var(--u-muted);border-radius:10px!important;}
.employee-contour-tabs button.active{background:var(--u-card)!important;color:var(--u-ink)!important;box-shadow:none!important;}
.ledger-section-head{margin:5px 0 13px;}
.ledger-section-head h3{font-size:15px;margin:3px 0 0;}
.ledger-section-head>span{font-size:9px;color:var(--u-muted);}
.ledger-tabs{background:var(--u-card-2)!important;border:0!important;border-radius:13px;padding:4px!important;margin:0 0 12px!important;}
.ledger-tabs button{font-size:9px!important;font-weight:580!important;min-height:37px;border-radius:10px!important;color:var(--u-muted);}
.ledger-tabs button.active{background:var(--u-card)!important;color:var(--u-ink)!important;}
.ledger{display:grid;gap:7px;}
.ledger-row{
  border:1px solid var(--u-line)!important;border-radius:15px!important;
  background:var(--u-card);padding:0!important;
}
.ledger-row:last-child{border-bottom:1px solid var(--u-line)!important;}
.ledger-row summary{
  display:grid!important;grid-template-columns:34px minmax(0,1fr) auto!important;
  align-items:center;gap:10px!important;padding:13px!important;min-height:64px;
}
.ledger-symbol{width:34px;height:34px;border-radius:11px;background:var(--u-card-2);display:grid;place-items:center;color:var(--u-green);font-size:19px;line-height:1;font-weight:500;}
.ledger-symbol.is-payment{color:#ecad96;}
.ledger-main b{font-size:10px!important;line-height:1.55;white-space:normal;overflow-wrap:anywhere;font-weight:650;}
.ledger-main span{font-size:8px!important;line-height:1.6;margin-top:4px;display:block;color:var(--u-muted);}
.ledger-date{color:var(--u-muted);font-size:8px!important;letter-spacing:-.015em;}
.ledger-amount{font-size:10px!important;line-height:1.55;white-space:normal;overflow-wrap:anywhere;max-width:115px;text-align:right;font-weight:650;}
.ledger-contour-badge{display:inline-flex;background:var(--u-card-2);border:0;color:var(--u-muted);margin-left:4px;font-size:8px!important;letter-spacing:-.03em!important;}
.ledger-detail{padding:3px 13px 16px!important;border-top:1px solid var(--u-line);margin:0 13px;}
.ledger-detail-line{font-size:10px!important;line-height:1.65;gap:8px;}
.ledger-detail-line span{color:var(--u-muted);}
.ledger-detail-line b,.ledger-detail-line a{color:var(--u-ink);}
.ledger-edit-action{border:0!important;background:var(--u-soft-green)!important;color:var(--u-green)!important;font-size:10px!important;min-height:42px;border-radius:12px;}
.ledger-delete-action{font-size:9px!important;background:transparent!important;border:0!important;color:#b88888;}
.profile-details{margin:34px 0 0;}
.profile-section-heading{margin-bottom:13px;}
.profile-section-heading h2{font-size:17px!important;}
.profile-details-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0!important;border:0!important;
  background:transparent!important;box-shadow:none!important;
}
.profile-details-grid .employee-data-row{
  display:flex;flex-direction:column;justify-content:space-between;gap:8px;
  min-width:0;min-height:83px;margin:0!important;padding:15px 13px!important;
  border:1px solid var(--u-line)!important;border-radius:15px;background:var(--u-card);
}
.profile-details-grid .employee-data-row span{font-size:9px!important;color:var(--u-muted)!important;letter-spacing:-.025em!important;text-transform:none;font-weight:550;line-height:1.5;}
.profile-details-grid .employee-data-row b,.profile-details-grid .employee-data-row a{
  font-size:10px!important;text-align:left;color:var(--u-ink)!important;font-weight:600;line-height:1.65;
  overflow-wrap:anywhere;
}
.profile-details-grid .employee-data-row--contours,.profile-details-grid .employee-data-row--notes{grid-column:1/-1;}
.profile-details-grid .employee-contour-memberships{justify-content:flex-start;}
.profile-details-grid .employee-contour-membership{background:var(--u-card-2);border:0;border-radius:10px;text-align:left;}
.profile-details-grid .employee-contour-membership b,.profile-details-grid .employee-contour-membership small{text-align:left;font-size:9px!important;}
.profile-details-grid .employee-contour-membership small{font-size:7px!important;}
.employee-birthday-actions{margin:15px 0 0;}
.employee-birthday-actions .ui-button{
  width:100%;min-height:51px;font-size:10px!important;justify-content:center;
  background:rgba(197,153,80,.09)!important;border:1px solid rgba(204,172,111,.14)!important;color:#d4b47c!important;
}
.profile-danger-zone{margin-top:24px;padding:0 2px;border-top:1px solid var(--u-line);}
.profile-danger-zone summary{
  display:flex;align-items:center;justify-content:space-between;
  padding:17px 3px;color:var(--u-muted);font-size:9px;cursor:pointer;list-style:none;
}
.profile-danger-zone summary::-webkit-details-marker{display:none;}
.profile-danger-zone summary span{font-size:17px;}
.profile-danger-zone[open] summary span{transform:rotate(180deg);}
.profile-danger-zone .employee-admin-actions{border:0!important;margin:0!important;padding:0!important;}
.profile-danger-zone .employee-danger-action{min-height:42px!important;font-size:9px!important;background:rgba(178,58,65,.08)!important;color:#d08c90!important;border:1px solid rgba(185,92,97,.12)!important;}
/* Employee self-service: no nested card within a card */
.premium-portal-profile{display:block!important;grid-template-columns:none!important;gap:0!important;}
.portal-profile-hero{border-radius:23px;padding:23px 20px;background:linear-gradient(145deg,#20382b,#111e18);color:#f6fcf7;}
.portal-profile-kicker{font-size:9px;letter-spacing:.09em;color:#a0bcaa;font-weight:650;}
.portal-profile-kicker span{color:#69997b;}
.portal-profile-person{display:flex;gap:17px;align-items:center;margin-top:21px;}
.portal-profile-person .portal-avatar{flex:0 0 86px;width:86px;height:86px;border-radius:20px!important;background:#263c2e!important;border-color:rgba(217,248,224,.12)!important;box-shadow:none!important;}
.portal-profile-person .portal-profile-head h2{font-size:clamp(16px,5vw,21px)!important;line-height:1.4;color:#fff;letter-spacing:-.06em!important;margin:4px 0 7px;}
.portal-profile-person .portal-profile-head p{color:#c4dfcd;font-size:10px;line-height:1.65;}
.portal-profile-person .eyebrow{color:#96c7a7;font-size:9px;}
.portal-profile-person .portal-photo-action{color:#8ad0a7;font-size:9px;font-weight:600;text-decoration:none;}
.portal-profile-section-title{display:block;margin:28px 0 12px;}
.portal-profile-section-title h3{font-size:16px!important;margin:4px 0 0;}
.premium-portal-profile .portal-departments{display:grid;gap:8px;margin:0;}
.premium-portal-profile .portal-departments>div{
  border:none!important;background:var(--u-card)!important;padding:17px;border-radius:15px!important;display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.premium-portal-profile .portal-departments b{font-size:11px!important;font-weight:650;}
.premium-portal-profile .portal-departments span{font-size:9px!important;color:var(--u-green)!important;}
.premium-portal-profile .portal-info{border:none!important;background:var(--u-card);border-radius:18px;padding:0 14px;margin:0;overflow:hidden;}
.premium-portal-profile .portal-info-row{min-height:57px;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:10px;padding:13px 2px;border-color:var(--u-line);}
.premium-portal-profile .portal-info-row span{font-size:9px!important;color:var(--u-muted);letter-spacing:-.02em;text-transform:none;}
.premium-portal-profile .portal-info-row b{font-size:10px!important;line-height:1.6;overflow-wrap:anywhere;}
.portal-profile-upcoming{margin-top:28px;display:grid;gap:10px;}
.portal-profile-upcoming .portal-profile-section-title{margin:0 0 2px;}
.portal-profile-upcoming .birthday-card,.portal-profile-upcoming .leader-next-event{margin:0;}
.premium-portal-finance .portal-finance-kicker{display:flex;justify-content:space-between;align-items:center;padding:0 2px;}
.portal-finance-kicker>span:last-child{color:var(--u-green);font-size:18px;font-weight:600;}
.premium-portal-finance .portal-finance-hero{
  margin:10px 0 22px;padding:23px 21px;
  border-radius:23px;background:linear-gradient(140deg,#20392c,#12231a);
}
.premium-portal-finance .hero-value{font-size:clamp(25px,7vw,36px)!important;line-height:1.4;color:#f6fff8!important;overflow-wrap:anywhere;white-space:normal;letter-spacing:-.07em!important;}
.premium-portal-finance .hero-sub{font-size:10px;color:#a9c4b4;}
.premium-portal-finance .portal-finance-section-header{display:flex;justify-content:space-between;align-items:center;gap:10px;}
.premium-portal-finance .portal-finance-section-header>.section-title{font-size:13px!important;max-width:50%;margin:0;}
.premium-portal-finance .portal-finance-month{flex-shrink:0;}
.premium-portal-finance .portal-finance-month strong{font-size:9px;}
.premium-portal-finance .portal-finance-grid{margin:13px 0 28px;gap:9px;}
.premium-portal-finance .portal-finance-grid .pnl{padding:16px 13px;min-height:92px;border-radius:16px!important;}
.premium-portal-finance .portal-finance-grid .pnl:after{display:none!important;}
.premium-portal-finance .portal-finance-grid small{font-size:9px!important;}
.premium-portal-finance .portal-finance-grid b{font-size:clamp(12px,3.7vw,16px)!important;overflow-wrap:anywhere;white-space:normal;line-height:1.55;}
.premium-portal-finance .portal-ledger-head>.section-title{max-width:none;}
.premium-portal-finance .portal-ledger-head small{font-size:9px;color:var(--u-muted);}
.premium-portal-finance .portal-finance-hint{font-size:10px;color:var(--u-muted);line-height:1.65;margin:7px 0 13px;}
/* Tasks: priority-first cards, not equal-weight panels */
.premium-tasks-page{display:grid;gap:16px;}
.tasks-intro{display:flex;align-items:start;justify-content:space-between;gap:12px;}
.tasks-intro h2{font-size:20px!important;margin:4px 0;}
.tasks-intro p{font-size:10px;}
.tasks-intro .task-create{min-height:42px;max-width:132px;font-size:9px!important;padding:0 11px;white-space:normal;text-align:center;line-height:1.4;}
.premium-tasks-page .task-tabs{margin:0!important;}
.tasks-analytics-label,.tasks-list-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;}
.tasks-analytics-label small,.tasks-list-heading small{font-size:9px;color:var(--u-muted);}
.tasks-list-heading{margin:2px 0 -4px;}
.tasks-list-heading h3{font-size:13px;margin:0;}
.tasks-list-heading .task-filter-clear{font-size:9px;color:var(--u-green);}
.premium-tasks-page .task-overview{gap:8px;}
.premium-tasks-page .task-overview button{
  min-width:0;padding:13px 9px!important;min-height:70px;border:0!important;
  border-radius:14px!important;background:var(--u-card)!important;
  box-shadow:none!important;
}
.premium-tasks-page .task-overview button span{font-size:9px!important;line-height:1.5;overflow-wrap:anywhere;}
.premium-tasks-page .task-overview button b{font-size:14px!important;}
.premium-tasks-page .task-card{margin:0 0 9px;background:var(--u-card)!important;border-color:var(--u-line)!important;padding:17px!important;}
.premium-tasks-page .task-card h3{font-size:13px!important;line-height:1.55;overflow-wrap:anywhere;margin-top:10px;}
.premium-tasks-page .task-card :where(.task-department,.task-priority,.task-status,.task-deadline,.task-checklist-progress){font-size:9px!important;line-height:1.5;letter-spacing:-.025em!important;}
.premium-tasks-page .task-card-meta{margin-top:15px;gap:8px;}
.premium-tasks-page .task-progress-line{margin-top:13px;}
/* Schedule: filters, month and timeline */
.premium-schedule-page{display:grid;gap:15px;}
.schedule-intro{margin-bottom:4px;}
.schedule-intro h2{font-size:20px!important;margin:5px 0;}
.schedule-intro p{font-size:10px;}
.premium-schedule-page .schedule-filters{margin:0!important;}
.premium-schedule-page .schedule-filters button{min-width:0;}
.premium-schedule-page .schedule-filters em{font-size:9px!important;}
.premium-schedule-page .schedule-month-filter{margin:0!important;border-radius:14px;background:var(--u-card)!important;border-color:var(--u-line)!important;}
.premium-schedule-page .schedule-month-filter label{font-size:10px!important;color:var(--u-muted);}
.premium-schedule-page .schedule-month-filter select{font-size:11px!important;}
.schedule-list-heading{margin-top:4px;}
.schedule-list-heading h3{font-size:13px;margin:0;}
.schedule-list-heading span{font-size:9px;color:var(--u-muted);}
.premium-schedule-page .schedule-card{
  padding:15px!important;border-color:var(--u-line)!important;box-shadow:none!important;
  border-radius:17px!important;
}
.premium-schedule-page .schedule-date{background:var(--u-card-2)!important;border:0!important;border-radius:13px;}
.premium-schedule-page .schedule-date b{font-size:17px!important;}
.premium-schedule-page .schedule-card h3{font-size:12px!important;line-height:1.55;overflow-wrap:anywhere;}
.premium-schedule-page .schedule-card p{font-size:9px!important;line-height:1.55;color:var(--u-muted);}
.premium-schedule-page .schedule-stage-summary span{font-size:9px!important;line-height:1.6;}
/* Auxiliary pages and finer typography */
.more-section-head b{font-size:10px!important;color:var(--u-ink)!important;}
.more-section-head span{font-size:9px!important;}
.more-list{background:var(--u-card)!important;border:0!important;box-shadow:none!important;}
.more-link{border-color:var(--u-line)!important;padding:13px 16px;min-height:69px;}
.more-link-icon{background:var(--u-card-2)!important;border:0!important;}
.more-link-copy b{font-size:11px!important;color:var(--u-ink);line-height:1.55;}
.more-link-copy small{font-size:9px!important;line-height:1.6;color:var(--u-muted)!important;}
.more-quick{min-height:112px;background:var(--u-card)!important;border-color:var(--u-line)!important;box-shadow:none!important;}
.more-quick span,.more-quick small{font-size:9px!important;line-height:1.55;color:var(--u-muted)!important;}
.more-quick b{font-size:11px!important;line-height:1.5;}
.event{padding:17px!important;}
.event-title{font-size:12px!important;line-height:1.55;}
.event-meta{font-size:9px!important;}
.event-grid :where(small,b){font-size:10px!important;line-height:1.55;overflow-wrap:anywhere;}
.birthday-main>small{font-size:9px!important;}
.birthday-person b{font-size:11px!important;}
.birthday-person span{font-size:9px!important;}
.portal-bottom .nav{min-width:0;}
.portal-team-card .person-meta{font-size:10px!important;}
.portal-team-card .person-name{font-size:11px!important;}
/* Overlay and form sheets: honor original iOS height, scroll ownership and keyboard constraints */
.sheet{background:var(--u-bg)!important;border-color:var(--u-line)!important;border-radius:25px 25px 0 0!important;}
.sheet-head{background:var(--u-bg)!important;border-color:var(--u-line)!important;padding:20px 19px 15px!important;}
.sheet-title{font-size:19px!important;line-height:1.5;letter-spacing:-.055em!important;font-weight:750;}
.sheet-body{padding:19px!important;}
.field label{font-size:10px!important;color:var(--u-muted)!important;text-transform:none!important;font-weight:600!important;letter-spacing:-.03em!important;}
.field input,.field select,.field textarea{font-size:16px!important;line-height:1.5;font-weight:500!important;}
.field textarea{min-height:112px;line-height:1.6;}
.form-actions{background:var(--u-bg)!important;border-top:1px solid var(--u-line)!important;padding:13px 18px calc(14px + var(--qpf-safe-bottom))!important;}
.form-actions .ui-button{font-size:11px!important;min-height:51px;font-weight:650!important;}
.sheet-close{background:var(--u-card)!important;color:var(--u-ink)!important;}
.money-input input{font-variant-numeric:tabular-nums;}
.money-currency{font-family:var(--u-font);font-size:13px;}
.error:not([hidden]){font-size:10px;line-height:1.6;}
.toast{font-size:10px;font-weight:600;line-height:1.6;}
/* Loading + graceful empty states */
.empty,.ledger-empty,.report-error,.schedule-empty{
  padding:24px 17px!important;border-radius:16px;
  background:var(--u-card)!important;color:var(--u-muted)!important;
  font-size:10px!important;line-height:1.7!important;
}
.report-skeleton{display:grid;gap:9px;overflow:hidden;}
.report-skeleton>i{
  display:block;height:70px;border-radius:15px;background:linear-gradient(90deg,var(--u-card) 0%,var(--u-card-2) 45%,var(--u-card) 90%);
  background-size:220% 100%;animation:qpf-shimmer 1.8s ease-in-out infinite;
}
.report-skeleton>i:first-child{height:130px;border-radius:21px;}
@keyframes qpf-shimmer{from{background-position:100% 0}to{background-position:-100% 0}}
/* Theme discipline for prior high specificity light-theme overrides */
:root[data-theme=light] :where(.employee-page,.shell,.portal-shell){background:var(--u-bg)!important;color:var(--u-ink)!important;}
:root[data-theme=light] .profile-hero,:root[data-theme=light] .portal-profile-hero,:root[data-theme=light] .dashboard-finance-hero,:root[data-theme=light] .portal-finance-hero{
  color:#f6fff8!important;background:linear-gradient(142deg,#1d3b2a,#14281e)!important;
  border-color:rgba(31,97,62,.18)!important;
}
:root[data-theme=light] :where(.person,.pnl,.event,.feed,.birthday-card,.task-card,.schedule-card,.bank-transaction,
.employee-kpi-wrap .employee-summary-item,.profile-details-grid .employee-data-row,.employee-balance-total,
.premium-portal-profile .portal-departments>div,.premium-portal-profile .portal-info,.more-link,.more-quick){
  background:var(--u-card)!important;border-color:var(--u-line)!important;box-shadow:none!important;
}
:root[data-theme=light] .bottom{background:rgba(255,255,255,.96)!important;border-color:var(--u-line)!important;}
:root[data-theme=light] .nav.active{background:var(--u-soft-green)!important;color:var(--u-green)!important;}
:root[data-theme=light] :where(.staff-tag,.staff-filter-bar select,.employee-contour-tabs,.ledger-tabs,.home-tabs,.task-tabs,.schedule-filters){background:var(--u-card-2)!important;}
:root[data-theme=light] .profile-hero .employee-name,:root[data-theme=light] .portal-profile-person .portal-profile-head h2{color:#fff!important;}
:root[data-theme=light] .employee-hero .employee-role{color:#d3e9da!important;}
:root[data-theme=light] .balance-topline small,:root[data-theme=light] .portal-info-row span{color:var(--u-muted)!important;}
:root[data-theme=light] .employee-data-row b,:root[data-theme=light] .employee-data-row a{color:var(--u-ink)!important;}
:root[data-theme=light] .ui-button--primary{color:#fff!important;}
/* Small iPhone: no large headings overlapping the Telegram chrome */
@media(max-width:390px){
  .top{padding:16px 15px 13px;}main{padding:18px 15px 34px;}
  .page-title{font-size:23px!important;line-height:1.3!important;}
  .bottom{width:calc(100% - 16px);}
  .nav .nav-label,.portal-bottom .nav-label{font-size:8px!important;}
  .employee-page{padding:0 14px 40px!important;}
  .profile-hero{padding:17px 15px!important;}
  .profile-hero-person{gap:12px;}
  .profile-hero .employee-avatar{width:68px;height:68px;border-radius:17px;}
  .profile-hero .employee-name{font-size:17px!important;}
  .employee-balance-total b{font-size:23px!important;}
  .staff-list-row .balance{max-width:85px;}
  .staff-list-row .person-name{font-size:10px!important;}
  .dashboard-finance-hero{padding:22px 17px;}
  .dashboard-finance-hero .hero-value{font-size:25px!important;}
  .portal-profile-person{gap:11px;}
  .portal-profile-person .portal-avatar{width:84px;height:84px;flex-basis:84px;}
  .portal-profile-person .portal-profile-head h2{font-size:16px!important;}
  .tasks-intro{display:grid;gap:10px;}
  .tasks-intro .task-create{max-width:none;width:max-content;}
}
@media(prefers-reduced-motion:reduce){
  .report-skeleton>i{animation:none;}
  :where(.person,.task-card,.event,.schedule-card,.nav,.ui-button,.ui-icon-button){transition:none!important;}
}


/* Dark-only release: resilient optical alignment for Unbounded on iPhone. */
:root{color-scheme:dark!important;}
html,body,#app{color-scheme:dark!important;}
:where(.hero-value,.balance b,.pnl b,.ledger-amount,.schedule-date b,.schedule-filters em,.task-overview b){
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1;
}
/* Equal width schedule filters; counter now has its own centered row.
   Two-digit values stay inside the badge on 320–520px screens. */
.premium-schedule-page .schedule-filters{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:5px!important;
  align-items:stretch!important;
  padding:5px!important;
  min-width:0;
}
.premium-schedule-page .schedule-filters button{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-width:0!important;
  min-height:68px!important;
  height:auto!important;
  padding:10px 2px 8px!important;
  border-radius:12px!important;
  overflow:hidden;
}
.premium-schedule-page .schedule-filters button>span{
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:center;
  font-size:clamp(8px,2.35vw,10px)!important;
  line-height:1.45!important;
  font-weight:650!important;
  letter-spacing:-.055em!important;
}
.premium-schedule-page .schedule-filters button>em{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 28px!important;
  width:auto!important;
  min-width:32px!important;
  height:28px!important;
  max-height:28px!important;
  margin:0!important;
  padding:1px 8px 0!important;
  border-radius:999px!important;
  box-sizing:border-box!important;
  font-family:var(--u-font)!important;
  font-size:10px!important;
  font-weight:650!important;
  font-style:normal!important;
  line-height:1!important;
  letter-spacing:-.065em!important;
  font-variant-numeric:tabular-nums!important;
  white-space:nowrap!important;
  text-align:center!important;
  overflow:visible!important;
  transform:none!important;
}
/* Every navigation item has the same icon box and two-line label rail. */
.bottom .nav{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  min-width:0!important;
  min-height:66px!important;
  padding:6px 2px!important;
}
.bottom .nav .nav-icon{
  display:grid!important;
  place-items:center!important;
  flex:0 0 23px!important;
  width:25px!important;
  height:23px!important;
  margin:0 auto!important;
  line-height:1!important;
}
.bottom .nav .nav-label{
  display:grid!important;
  place-items:center!important;
  min-height:26px!important;
  height:26px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  white-space:normal!important;
  text-wrap:balance!important;
  overflow-wrap:normal!important;
  text-align:center!important;
  line-height:1.27!important;
  letter-spacing:-.055em!important;
  font-size:clamp(8px,2.25vw,10px)!important;
}
/* Stable event/status chips and cards, regardless of their label length. */
.schedule-card-top{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
}
.schedule-card-top :is(.schedule-status,.schedule-doc-dot),
.schedule-card :is(.schedule-status,.schedule-doc-dot){
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:24px!important;
  height:auto!important;
  padding:5px 9px!important;
  line-height:1.35!important;
  font-size:8px!important;
  font-weight:650!important;
  text-align:center!important;
  border-radius:999px!important;
}
.schedule-card-main{min-width:0!important;}
.schedule-card h3{line-height:1.45!important;white-space:normal!important;overflow-wrap:anywhere;}
.schedule-card p{line-height:1.55!important;white-space:normal!important;overflow-wrap:anywhere;}
.schedule-date{align-self:center;overflow:hidden;}
.schedule-date b{font-weight:700!important;line-height:1.2!important;}
.schedule-date span{line-height:1.25!important;}
/* Secondary count chips use the same centering rhythm. */
:is(.schedule-event-team-counts span,.schedule-month-summary strong,.task-overview button b){
  font-variant-numeric:tabular-nums;
  line-height:1.35;
}
:where(.employee-status-tabs,.task-tabs,.home-tabs,.home-unit-tabs) button{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
@media(max-width:360px){
  .premium-schedule-page .schedule-filters button{min-height:65px!important;padding-inline:1px!important;}
  .premium-schedule-page .schedule-filters button>span{font-size:8px!important;}
  .bottom .nav .nav-label{font-size:8px!important;}
}
