/* Mobile employee shell. Composes UI Foundation tokens. Desktop layout is unchanged without .hr-m-on. */
body.hr-m-on {
  overflow-x: hidden;
  --ui-btn-h-sm: 44px;
  --ui-btn-h-md: 44px;
  --ui-input-h: 44px;
}

/* Touch targets and form sizing apply to every module, including manager and HR views. */
body.hr-m-on .ui-btn:not(.hr-pinpad__key) {
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  height: auto;
  padding-block: var(--ui-space-2);
  line-height: 1.35;
  white-space: normal;
}
body.hr-m-on .ui-btn--icon { width: 44px; flex-shrink: 0; }
body.hr-m-on :is(.ui-input, .ui-select, .ui-textarea) { font-size: 16px; min-height: 44px; }
body.hr-m-on .ui-modal { --ui-btn-h-md: 44px; }
body.hr-m-on .hr-app-shell {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
}
body.hr-m-on .hr-app-sidebar,
body.hr-m-on #hr-btn-menu,
body.hr-m-on #hr-btn-collapse,
body.hr-m-on #ui-drawer,
body.hr-m-on #hr-btn-logout,
body.hr-m-on .hr-user-chip {
  display: none;
}
body.hr-m-on .hr-app-topbar > .hr-app-toolbar { display: none; }
body.hr-m-on .hr-app-topbar-utils { margin-left: 0; gap: 0; }
body.hr-m-on .hr-m-who { flex: 1; }
body.hr-m-on .hr-page-header { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
body.hr-m-on .hr-page-header > div:first-child { display: none; }
body.hr-m-self-page .hr-page-header { display: none; }
body.hr-m-on .hr-page-header__actions { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
body.hr-m-on .hr-page-header__actions .ui-btn { min-height: 44px; white-space: normal; }
.hr-m-workbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hr-m-workbar h1 { font-size: 20px; line-height: 1.3; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.hr-m-workbar .ui-btn { min-height: 44px; flex-shrink: 0; }
.hr-m-tools-open { overflow: hidden; }
.hr-m-tools-dialog { position: fixed; inset: 0; width: 100%; max-width: 720px; height: 100dvh; max-height: 100dvh; margin: auto; overflow: hidden; padding: 0; border: 0; border-radius: 0; color: var(--ui-text-primary); background: var(--ui-page-bg); }
.hr-m-tools-dialog[open] { display: flex; flex-direction: column; }
.hr-m-tools-dialog::backdrop { background: rgb(17 24 39 / 35%); }
.hr-m-tools-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: var(--ui-surface); flex-shrink: 0; }
.hr-m-tools-head > div { min-width: 0; }
.hr-m-tools-head h2 { margin: 0; font-size: 20px; font-weight: 650; line-height: 1.35; }
.hr-m-tools-head p { margin: 4px 0 0; font-size: 12px; color: var(--ui-text-secondary); line-height: 1.4; }
.hr-m-tools-dialog svg { width: 18px; height: 18px; flex-shrink: 0; }
.hr-m-tools-dialog .ui-input { width: 100%; max-width: none; font-size: 16px; min-height: 44px; border-radius: 10px; box-shadow: none; padding-inline: 42px 46px; }
.hr-m-tools-dialog .ui-btn { min-height: 44px; border-radius: 10px; box-shadow: none; font-size: 13px; }
.hr-m-tools-dialog [hidden] { display: none !important; }
.hr-m-tools-dialog :is(a, button, input, summary):focus-visible { outline: 3px solid var(--ui-primary); outline-offset: 2px; }
.hr-m-tools-controls { padding: 0 16px; background: var(--ui-surface); border-bottom: 1px solid var(--ui-border); flex-shrink: 0; }
.hr-m-tools-search { position: relative; }
.hr-m-tools-search > svg { position: absolute; left: 14px; top: 13px; color: var(--ui-text-secondary); pointer-events: none; }
.hr-m-tools-search .ui-btn { position: absolute; right: 1px; top: 0; }
.hr-m-tools-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hr-m-tools-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; }
.hr-m-tools-meta p { margin: 0; color: var(--ui-text-secondary); font-size: 12px; }
.hr-m-tools-meta .ui-btn { padding-inline: 8px; color: var(--ui-primary); }
.hr-m-tools-offline { display: flex; align-items: flex-start; gap: 10px; padding: 12px; margin-bottom: 12px; border-radius: 10px; background: var(--ui-primary-soft); }
.hr-m-tools-offline p { margin: 0; font-size: 12px; line-height: 1.5; }
.hr-m-tools-offline svg { color: var(--ui-primary); }
.hr-m-tools-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.hr-m-tool-group { margin: 0 0 12px; border: 1px solid var(--ui-border); border-radius: 16px; background: var(--ui-surface); }
.hr-m-tool-group > summary { display: flex; align-items: center; gap: 10px; padding: 14px; min-height: 64px; list-style: none; cursor: pointer; border-radius: 16px; }
.hr-m-tool-group > summary::-webkit-details-marker { display: none; }
.hr-m-tool-group h3 { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.hr-m-tool-group-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--ui-primary-soft); color: var(--ui-primary); flex-shrink: 0; }
.hr-m-tool-count { min-width: 24px; padding: 2px 6px; border-radius: 6px; text-align: center; font-size: 11px; color: var(--ui-text-secondary); background: var(--ui-surface-muted); }
.hr-m-tool-group > summary > svg { width: 16px; color: var(--ui-text-muted); }
.hr-m-tool-group[open] > summary > svg { transform: rotate(180deg); }
.hr-m-tool-items { padding: 0 8px 8px; }
.hr-m-tool-link { display: flex; align-items: center; gap: 10px; padding: 12px 8px; min-height: 64px; border-radius: 10px; color: var(--ui-text-primary); text-decoration: none; }
.hr-m-tool-link + .hr-m-tool-link { border-top: 1px solid var(--ui-border); }
.hr-m-tool-link:is(:hover, [aria-current="page"]) { background: var(--ui-primary-soft); }
.hr-m-tool-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 32px; color: var(--ui-text-secondary); flex-shrink: 0; }
.hr-m-tool-link[aria-current="page"] .hr-m-tool-icon { color: var(--ui-primary); }
.hr-m-tool-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.hr-m-tool-text strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.4; }
.hr-m-tool-text small { display: block; color: var(--ui-text-secondary); font-size: 12px; line-height: 1.4; margin-top: 3px; }
.hr-m-tool-link > svg { width: 15px; color: var(--ui-text-muted); }
#hr-m-tools-empty { padding: 32px 20px; border-radius: 16px; border: 1px solid var(--ui-border); text-align: center; background: var(--ui-surface); }
#hr-m-tools-empty > svg { width: 28px; height: 28px; color: var(--ui-text-muted); }
#hr-m-tools-empty h3 { margin: 12px 0 8px; font-size: 16px; font-weight: 600; }
#hr-m-tools-empty p { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--ui-text-secondary); }
@media (max-height: 500px) {
  .hr-m-tools-head { padding-block: 6px; }
  .hr-m-tools-head p { display: none; }
  .hr-m-tools-meta { min-height: 44px; }
  .hr-m-tools-offline { padding: 6px 10px; margin-bottom: 6px; }
  .hr-m-tools-scroll { padding-top: 10px; }
}
body.hr-m-on .hr-app-notif { position: fixed; top: calc(64px + env(safe-area-inset-top)); right: 12px; max-height: calc(100dvh - 160px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); z-index: 45; }
.hr-m-request-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hr-m-request-actions .ui-btn { flex: 1 1 120px; min-height: 44px; }
.hr-m-request-record { padding-block: 12px; border-bottom: 1px solid var(--ui-border); display: flex; flex-direction: column; gap: 8px; }
.hr-m-request-record p { margin: 0; }
body.hr-m-on .ui-tabs {
  flex-wrap: wrap;
}
body.hr-m-on .ui-tab {
  min-height: 44px;
}
body.hr-m-on .hr-app-content {
  padding: 12px 16px calc(96px + env(safe-area-inset-bottom));
  max-width: 100%;
}
body.hr-m-on .hr-app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  background: var(--ui-surface);
  border-bottom: 1px solid var(--ui-border);
}
.hr-m-who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 600;
}
.hr-m-who span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hr-m-net {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
  color: var(--ui-text-secondary);
  font-size: 13px;
}
.hr-m-net__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ui-success);
}
.hr-m-net.is-offline .hr-m-net__dot {
  background: var(--ui-warning);
}
.hr-m-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: space-around;
  gap: 2px;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: var(--ui-surface);
  border-top: 1px solid var(--ui-border);
}
.hr-m-tab {
  flex: 1 1 0;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ui-text-secondary);
  text-decoration: none;
  font-size: 11px;
  line-height: 1.1;
}
.hr-m-tab[aria-current="page"] {
  color: var(--ui-primary);
  font-weight: 600;
}
.hr-m-home,
.hr-m-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hr-m-card,
.hr-m-qr-card,
.hr-m-setup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hr-m-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hr-m-qr canvas {
  width: 210px;
  height: 210px;
  max-width: 100%;
  background: var(--ui-surface);
}
.hr-m-rcp {
  font-size: 1.25rem;
  font-weight: 700;
}
.hr-m-action,
.hr-m-card .ui-btn,
.hr-m-setup .ui-btn,
.hr-m-qr .ui-btn {
  min-height: 44px;
}
.hr-m-steps {
  margin: 8px 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hr-m-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.hr-m-gate {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: var(--ui-page-bg);
}
.hr-m-gate .hr-pinpad-screen,
.hr-pinpad {
  width: min(100%, 420px);
}
.hr-pinpad__hello,
.hr-pinpad__title,
.hr-pinpad__error {
  text-align: center;
}
.hr-pinpad__hello {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}
.hr-pinpad__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.hr-pinpad__actions .ui-btn,
#hr-trusted-device-list .ui-btn {
  min-height: 44px;
}
.hr-trusted-device {
  padding: 12px 0;
  border-top: 1px solid var(--ui-border);
}
.hr-pinpad__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}
.hr-pinpad__dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ui-text, #111);
}
.hr-pinpad__dots span.is-on {
  background: var(--ui-text, #111);
}
.hr-pinpad__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(64px, 1fr));
  gap: 12px;
}
.hr-pinpad__key {
  min-width: 64px;
  min-height: 68px;
  font-size: 28px;
  justify-content: center;
  touch-action: manipulation;
}
.hr-pinpad__key--empty {
  visibility: hidden;
}
.hr-m-qr,
.hr-m-qr-card,
.hr-m-tab,
.ui-btn,
.hr-pinpad__key {
  touch-action: manipulation;
}
@media (max-width: 768px) {
  .ui-input,
  .ui-select,
  .ui-textarea,
  input,
  select,
  textarea {
    font-size: 16px;
  }
}
@media (min-width: 1024px) {
  .hr-pinpad__key {
    min-height: 56px;
    font-size: 22px;
  }
}
body.hr-m-on .hr-m-tab,
body.hr-m-on .hr-m-bell,
body.hr-m-on .hr-m-card .ui-btn,
body.hr-m-on .hr-m-qr-card .ui-btn,
body.hr-m-on .hr-m-shift {
  min-height: 44px;
}
body.hr-m-on .hr-m-home,
body.hr-m-on .hr-m-list,
body.hr-m-on .hr-m-card,
body.hr-m-on .ui-card {
  min-width: 0;
  max-width: 100%;
}
body.hr-m-on .hr-m-bell {
  margin-left: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  color: var(--ui-text);
  text-decoration: none;
}
body.hr-m-on .hr-m-tab {
  position: relative;
}
.hr-m-badge {
  position: absolute;
  top: 2px;
  right: 10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--ui-primary);
  color: var(--ui-text-inverse);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}
.hr-m-note,
.hr-m-shift {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: inherit;
}
body.hr-m-keyboard .hr-m-tabbar {
  display: none;
}
body.hr-m-keyboard .hr-app-content {
  padding-bottom: 16px;
}
.hr-m-passkey {
  padding: 8px 0;
  border-top: 1px solid var(--ui-border);
}
.hr-offline {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.hr-offline .ui-card {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 769px) {
  body.hr-m-on .hr-m-tabbar {
    display: none;
  }
}
/* Published team schedule; the private offline snapshot remains separate. */
.hr-m-schedule-scope { display: flex; gap: 8px; }
.hr-m-schedule-scope .ui-btn { flex: 1; min-height: 44px; }
.hr-m-schedule-scope [aria-pressed="true"] { color: #fff; background: var(--ui-primary); border-color: var(--ui-primary); }
.hr-m-team-nav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; text-align: center; }
.hr-m-team-nav .ui-btn { min-height: 44px; font-size: 24px; }
.hr-m-team-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hr-m-team-actions .ui-btn { min-height: 44px; }
.hr-m-team-day { padding: 0; overflow: hidden; scroll-margin-top: 80px; }
.hr-m-team-day h2 { margin: 0; padding: 12px 14px; font-size: 15px; line-height: 1.5; background: var(--ui-n-50); }
.hr-m-team-day.is-today { border-color: var(--ui-primary); }
.hr-m-team-day.is-today h2 { color: var(--ui-primary); }
.hr-m-team-day > p { padding: 0 14px; }
.hr-m-team-shift { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 14px; border-top: 1px solid var(--ui-border); }
.hr-m-team-shift strong { font-size: 15px; overflow-wrap: anywhere; }
.hr-m-team-shift.is-self { border-left: 3px solid var(--ui-primary); background: var(--ui-primary-soft, #eff6ff); }
.hr-m-team-shift small { font-size: 12px; font-weight: 500; }
.hr-m-team-time { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.hr-m-team-shift a { display: flex; align-items: center; min-height: 44px; }
.hr-m-team-continuation { font-size: 13px; line-height: 1.5; }

/* Mobile schedule shares the calm surfaces and touch controls of Start. */
.hr-m-schedule { gap: 14px; }
.hr-m-schedule .ui-card { margin: 0; border-radius: 16px; box-shadow: none; }
.hr-m-schedule :is(h2, h3, p) { margin: 0; }
.hr-m-schedule h2 { font-size: 16px; line-height: 1.4; font-weight: 650; }
.hr-m-schedule svg { width: 18px; height: 18px; flex-shrink: 0; }
.hr-m-schedule .ui-btn { border-radius: 10px; box-shadow: none; gap: 7px; }
.hr-m-schedule :is(a, button, input, select):focus-visible { outline: 3px solid var(--ui-primary); outline-offset: 3px; }
.hr-m-schedule .hr-m-schedule-muted { color: var(--ui-text-secondary); font-size: 13px; line-height: 1.5; font-weight: 400; }
.hr-m-schedule-controls { display: flex; flex-direction: column; gap: 14px; padding: 14px; }
.hr-m-schedule .hr-m-schedule-scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: var(--ui-surface-muted); border-radius: 12px; padding: 4px; }
.hr-m-schedule .hr-m-schedule-scope .ui-btn { background: transparent; border-color: transparent; padding-inline: 8px; font-size: 13px; color: var(--ui-text-secondary); }
.hr-m-schedule .hr-m-schedule-scope [aria-pressed="true"] { background: var(--ui-surface); border-color: var(--ui-border); color: var(--ui-primary); font-weight: 600; }
.hr-m-schedule .hr-m-team-nav { grid-template-columns: 44px minmax(0, 1fr) 44px; }
.hr-m-schedule .hr-m-team-nav strong { font-size: 17px; font-weight: 650; line-height: 1.4; }
.hr-m-schedule .hr-m-team-nav .ui-btn { padding: 0; background: var(--ui-surface); border-color: var(--ui-border); }
.hr-m-schedule .hr-m-team-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hr-m-schedule .hr-m-team-actions .ui-btn { font-size: 13px; }
.hr-m-schedule-search { position: relative; }
.hr-m-schedule-search > svg { position: absolute; left: 12px; top: 14px; color: var(--ui-text-secondary); pointer-events: none; }
.hr-m-schedule-search .ui-input { width: 100%; padding-left: 38px; border-radius: 10px; background: var(--ui-n-50); }
.hr-m-schedule .hr-m-schedule-info { display: flex; align-items: center; gap: 8px; padding: 0 4px; color: var(--ui-text-secondary); font-size: 12px; overflow-wrap: anywhere; }
.hr-m-schedule .hr-m-schedule-info > svg { color: var(--ui-primary); width: 16px; }
.hr-m-schedule .hr-m-team-day { padding: 0; scroll-margin-top: calc(80px + env(safe-area-inset-top)); }
.hr-m-schedule .hr-m-team-day.is-today { border-color: var(--ui-border); }
.hr-m-schedule-day-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--ui-n-50); }
.hr-m-schedule .hr-m-team-day.is-today .hr-m-schedule-day-head { background: var(--ui-primary-soft); }
.hr-m-schedule-date { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 42px; min-height: 44px; border-radius: 10px; background: var(--ui-surface-muted); color: var(--ui-text-secondary); }
.hr-m-schedule-date strong { font-size: 21px; line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ui-text-primary); }
.hr-m-schedule-date > span { font-size: 11px; }
.hr-m-schedule-day-head > .hr-m-schedule-date { background: var(--ui-surface); border: 1px solid var(--ui-border); }
.hr-m-schedule .hr-m-team-day h2 { flex: 1; min-width: 0; padding: 0; font-size: 14px; background: transparent; color: var(--ui-text-primary); }
.hr-m-schedule .hr-m-team-day h2 > span { display: block; color: var(--ui-text-secondary); font-size: 12px; font-weight: 400; }
.hr-m-schedule-tag { display: inline-flex; align-items: center; flex-shrink: 0; padding: 3px 8px; border-radius: 6px; background: var(--ui-primary-soft); color: var(--ui-primary); font-size: 11px; font-weight: 600; }
.hr-m-schedule .hr-m-team-day.is-today .hr-m-schedule-day-head .hr-m-schedule-tag { background: var(--ui-surface); }
.hr-m-schedule .hr-m-team-shift { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 3px; padding: 14px; }
.hr-m-schedule .hr-m-team-shift.is-self { border-left: 0; background: var(--ui-primary-soft); }
.hr-m-team-person { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 5px; min-width: 0; }
.hr-m-schedule .hr-m-team-person strong { font-size: 14px; font-weight: 600; line-height: 1.5; }
.hr-m-team-person .hr-m-schedule-tag { background: var(--ui-surface); padding-block: 1px; }
.hr-m-schedule .hr-m-team-time { font-size: 15px; line-height: 1.5; font-weight: 650; text-align: right; }
.hr-m-schedule .hr-m-team-time small { display: block; font-size: 11px; color: var(--ui-text-secondary); }
.hr-m-team-kind { grid-column: 1 / -1; }
.hr-m-schedule .hr-m-team-shift a { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; min-height: 44px; margin-bottom: -7px; text-decoration: none; font-size: 13px; font-weight: 500; color: var(--ui-primary); }
.hr-m-schedule .hr-m-team-day > p { padding: 10px 14px; font-size: 12px; }
.hr-m-schedule .hr-m-team-continuation { display: flex; align-items: center; gap: 8px; color: var(--ui-text-secondary); border-top: 1px solid var(--ui-border); }
.hr-m-schedule .hr-m-team-day.is-empty { background: transparent; border-style: dashed; }
.hr-m-schedule .is-empty .hr-m-schedule-day-head { background: transparent; padding-bottom: 0; }
.hr-m-schedule-periods { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 4px; }
.hr-m-schedule .hr-m-schedule-periods .ui-btn { padding-inline: 4px; font-size: 13px; color: var(--ui-text-secondary); }
.hr-m-schedule .hr-m-schedule-periods [aria-pressed="true"] { background: var(--ui-primary-soft); color: var(--ui-primary); font-weight: 600; }
.hr-m-schedule-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px; }
.hr-m-schedule .hr-m-schedule-list-head h2 { font-size: 15px; }
.hr-m-schedule-shift { display: flex; align-items: center; width: 100%; gap: 12px; text-align: left; color: var(--ui-text-primary); font: inherit; cursor: pointer; }
.hr-m-schedule-shift-body { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.hr-m-schedule .hr-m-schedule-hours { font-size: 20px; font-weight: 650; line-height: 1.4; font-variant-numeric: tabular-nums; }
.hr-m-schedule-shift.is-today { background: linear-gradient(140deg, var(--ui-primary-soft), var(--ui-surface) 80%); }
.hr-m-schedule-shift.is-today .hr-m-schedule-date { background: var(--ui-primary-soft); }
.hr-m-schedule-shift > svg { color: var(--ui-text-secondary); width: 16px; }
.hr-m-schedule .hr-m-schedule-empty { display: flex; align-items: center; flex-direction: column; gap: 10px; padding: 28px 20px; text-align: center; }
.hr-m-schedule-empty > svg { width: 28px; height: 28px; color: var(--ui-primary); }
.hr-m-schedule-empty > strong { font-size: 15px; font-weight: 600; }
.hr-m-schedule-empty > p { color: var(--ui-text-secondary); font-size: 13px; }
.hr-m-schedule .hr-m-schedule-back { align-self: flex-start; color: var(--ui-text-secondary); padding-inline: 8px; }
.hr-m-schedule-detail { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.hr-m-schedule-detail-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.hr-m-schedule-detail-head h2 span { display: block; font-size: 13px; font-weight: 400; color: var(--ui-text-secondary); }
.hr-m-schedule .hr-m-schedule-detail-hours { font-size: 30px; line-height: 1.3; font-weight: 700; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.hr-m-schedule-detail-meta { display: flex; align-items: center; gap: 8px; color: var(--ui-text-secondary); font-size: 13px; }
.hr-m-schedule-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.hr-m-schedule-buttons:empty { display: none; }
.hr-m-schedule-buttons > .ui-btn { flex: 1 1 100px; }
.hr-m-schedule-detail .hr-m-schedule-buttons { border-top: 1px solid var(--ui-border); padding-top: 14px; margin-top: 2px; }
.hr-m-schedule #hr-m-change-form { gap: 14px; }
.hr-m-schedule #hr-m-change-form :is(select, input) { width: 100%; border-radius: 10px; }
.hr-m-schedule .hr-m-schedule-warning { font-size: 13px; line-height: 1.5; color: var(--ui-status-warning-ink); }
.hr-m-schedule-error { color: var(--ui-status-danger-ink); font-size: 13px; }
.hr-m-schedule :is(#hr-m-change, #hr-m-change-error, #hr-m-schedule-security):empty { display: none; }
#hr-m-schedule-security .ui-alert { margin: 0; padding: 14px; border-radius: 12px; font-size: 13px; }
#hr-m-schedule-security .ui-alert > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (hover: hover) {
  button.hr-m-schedule-shift:hover { border-color: var(--ui-primary); }
  .hr-m-schedule .hr-m-team-shift a:hover { text-decoration: underline; }
}
@media (max-width: 359px) {
  .hr-m-schedule-controls { padding: 10px; }
  .hr-m-schedule .hr-m-schedule-scope .ui-btn { gap: 5px; padding-inline: 4px; }
  .hr-m-schedule .hr-m-schedule-periods .ui-btn { font-size: 12px; }
  .hr-m-schedule .hr-m-team-shift { padding: 12px; column-gap: 8px; }
  .hr-m-schedule .hr-m-team-time { font-size: 14px; }
}

/* Employee requests: readable records and one consistent form panel. */
.hr-m-requests { gap: 16px; }
.hr-m-requests .ui-card { margin: 0; border-radius: 16px; box-shadow: none; }
.hr-m-requests :is(h2, h3, p) { margin: 0; }
.hr-m-requests h2 { font-size: 16px; line-height: 1.4; font-weight: 650; }
.hr-m-requests h3 { font-size: 14px; line-height: 1.5; font-weight: 600; }
.hr-m-requests svg { width: 18px; height: 18px; flex-shrink: 0; }
.hr-m-requests .ui-btn { border-radius: 10px; box-shadow: none; gap: 7px; }
.hr-m-requests :is(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--ui-primary); outline-offset: 3px; }
.hr-m-requests .hr-m-request-muted { color: var(--ui-text-secondary); font-size: 13px; line-height: 1.5; font-weight: 400; }
.hr-m-request-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hr-m-request-toolbar > p { font-size: 13px; line-height: 1.5; color: var(--ui-text-secondary); max-width: 140px; }
.hr-m-request-toolbar > .ui-btn { flex-shrink: 0; font-size: 13px; padding-inline: 12px; }
.hr-m-request-tabs { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--ui-surface-muted); }
.hr-m-requests .hr-m-request-tabs .ui-btn { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; padding-inline: 4px; font-size: 12px; color: var(--ui-text-secondary); border: 1px solid transparent; }
.hr-m-requests .hr-m-request-tabs [aria-pressed="true"] { color: var(--ui-primary); background: var(--ui-surface); border-color: var(--ui-border); font-weight: 600; }
.hr-m-request-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding-inline: 4px; border-radius: 5px; background: var(--ui-border); font-size: 10px; line-height: 1; }
[aria-pressed="true"] .hr-m-request-count { background: var(--ui-primary-soft); }
.hr-m-request-group { display: flex; flex-direction: column; gap: 10px; }
.hr-m-request-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px; }
.hr-m-request-section-head > span { font-size: 12px; color: var(--ui-text-secondary); }
.hr-m-requests .hr-m-request-record { flex-direction: row; align-items: flex-start; gap: 12px; padding: 16px; color: var(--ui-text-primary); text-decoration: none; }
.hr-m-request-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ui-primary-soft); color: var(--ui-primary); flex-shrink: 0; }
.hr-m-request-record-body { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: 5px; overflow-wrap: anywhere; }
.hr-m-request-subject { font-size: 13px; line-height: 1.5; }
.hr-m-request-status { display: inline-block; max-width: 100%; padding: 3px 8px; border-radius: 6px; font-size: 11px; line-height: 1.5; font-weight: 500; color: var(--ui-text-secondary); background: var(--ui-surface-muted); }
.hr-m-request-status.is-pending { background: var(--ui-status-warning-bg); color: var(--ui-status-warning-ink); }
.hr-m-request-status.is-success { background: var(--ui-status-success-bg); color: var(--ui-status-success-ink); }
.hr-m-request-status.is-danger { background: var(--ui-status-danger-bg); color: var(--ui-status-danger-ink); }
.hr-m-request-open { display: flex; align-self: center; color: var(--ui-text-secondary); }
.hr-m-request-open > svg { width: 16px; }
.hr-m-request-incoming { color: var(--ui-status-warning-ink); font-size: 12px; }
.hr-m-request-empty { display: flex; align-items: center; flex-direction: column; gap: 10px; padding: 24px 18px; text-align: center; }
.hr-m-request-empty > svg { width: 26px; height: 26px; color: var(--ui-primary); }
.hr-m-request-empty > strong { font-size: 14px; font-weight: 600; }
.hr-m-request-empty > p { color: var(--ui-text-secondary); font-size: 13px; }
.hr-m-request-compose { display: flex; flex-direction: column; gap: 16px; padding: 18px; scroll-margin-top: calc(80px + env(safe-area-inset-top)); }
.hr-m-request-compose-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ui-border); }
.hr-m-request-compose-head h2 { margin-bottom: 3px; }
.hr-m-request-compose form:not([hidden]) { display: flex; flex-direction: column; gap: 16px; }
.hr-m-request-compose .ui-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.hr-m-request-compose label { font-size: 13px; line-height: 1.5; font-weight: 500; }
.hr-m-request-compose :is(input, select, textarea) { width: 100%; min-width: 0; max-width: 100%; border-radius: 10px; box-shadow: none; }
.hr-m-request-compose input[type="date"] { display: block; min-inline-size: 0; }
.hr-m-request-compose input::-webkit-date-and-time-value { text-align: left; }
body.hr-m-on .hr-m-request-compose textarea { height: auto; min-height: 120px; resize: vertical; padding: 12px; line-height: 1.5; }
.hr-m-request-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hr-m-requests .hr-m-request-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.hr-m-requests .hr-m-request-actions .ui-btn { flex: 1 1 100px; padding-inline: 8px; font-size: 13px; }
.hr-m-request-footnote { font-size: 12px; line-height: 1.5; color: var(--ui-text-secondary); }
.hr-m-request-limit:not([hidden]) { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; background: var(--ui-primary-soft); }
.hr-m-request-limit > span, .hr-m-request-limit > p { font-size: 12px; color: var(--ui-text-secondary); }
.hr-m-request-limit > strong { font-size: 24px; font-weight: 650; line-height: 1.3; font-variant-numeric: tabular-nums; }
#hr-m-request-link .ui-btn { width: 100%; }
.hr-m-requests #hr-m-request-error:not(:empty) { padding: 12px; border-radius: 10px; background: var(--ui-status-danger-bg); color: var(--ui-status-danger-ink); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.hr-m-requests #hr-m-request-error a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
.hr-m-requests :is(#hr-m-request-error, #hr-m-requests-security):empty { display: none; }
.hr-m-request-offline { display: flex; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 12px; background: var(--ui-status-warning-bg); color: var(--ui-status-warning-ink); font-size: 13px; line-height: 1.5; }
.hr-m-request-drafts { display: flex; flex-direction: column; gap: 10px; }
.hr-m-requests .hr-m-request-draft { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-color: var(--ui-status-warning-border); }
.hr-m-request-draft > div { min-width: 0; }
.hr-m-request-draft p { margin-block: 4px; font-size: 13px; overflow-wrap: anywhere; }
.hr-m-request-draft > button { flex-shrink: 0; }
#hr-m-requests-security .ui-alert { margin: 0; padding: 14px; border-radius: 12px; font-size: 13px; }
#hr-m-requests-security .ui-alert > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (hover: hover) {
  .hr-m-requests a.hr-m-request-record:hover { border-color: var(--ui-primary); background: var(--ui-n-50); }
}
@media (max-width: 379px) {
  .hr-m-request-dates { grid-template-columns: minmax(0, 1fr); }
  .hr-m-requests .hr-m-request-record { padding: 14px; gap: 10px; }
  .hr-m-request-compose { padding: 16px; }
  .hr-m-requests .hr-m-request-tabs .ui-btn { flex-direction: column; gap: 3px; }
}

/* Mobile documents and the in-app PDF reader. */
.hr-m-documents { gap: 16px; }
.hr-m-documents .ui-card { margin: 0; border-radius: 16px; box-shadow: none; }
.hr-m-documents :is(h2, h3, p) { margin: 0; }
.hr-m-documents h2 { font-size: 15px; line-height: 1.45; font-weight: 650; }
.hr-m-documents svg, .hr-m-pdf svg { width: 18px; height: 18px; flex-shrink: 0; }
.hr-m-documents .ui-btn, body.hr-m-on .hr-m-pdf .ui-btn, body.hr-m-on .hr-doc-dialog .ui-btn { border-radius: 10px; box-shadow: none; gap: 7px; }
.hr-m-documents :is(a, button, input, summary):focus-visible, .hr-m-pdf :is(a, button, [tabindex]):focus-visible { outline: 3px solid var(--ui-primary); outline-offset: 3px; }
.hr-m-documents .hr-m-doc-muted { color: var(--ui-text-secondary); font-size: 13px; line-height: 1.5; }
.hr-m-doc-controls { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.hr-m-doc-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hr-m-doc-summary > div { display: flex; flex-direction: column; gap: 4px; }
.hr-m-doc-summary > div + div { border-left: 1px solid var(--ui-border); padding-left: 16px; }
.hr-m-doc-summary strong { font-size: 28px; line-height: 1.2; font-weight: 650; }
.hr-m-doc-summary span { font-size: 12px; color: var(--ui-text-secondary); }
.hr-m-doc-search { position: relative; }
.hr-m-doc-search > svg { position: absolute; left: 12px; top: 14px; color: var(--ui-text-secondary); }
.hr-m-doc-search .ui-input { width: 100%; padding-left: 38px; border-radius: 10px; box-shadow: none; }
.hr-m-doc-filters { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 4px; padding: 4px; background: var(--ui-surface-muted); border-radius: 12px; }
.hr-m-documents .hr-m-doc-filters .ui-btn { padding-inline: 3px; font-size: 12px; color: var(--ui-text-secondary); border: 1px solid transparent; }
.hr-m-documents .hr-m-doc-filters [aria-pressed="true"] { background: var(--ui-surface); border-color: var(--ui-border); color: var(--ui-primary); font-weight: 600; }
#hr-m-doc-list { display: flex; flex-direction: column; gap: 12px; }
.hr-m-doc-result { padding-inline: 4px; font-size: 12px; color: var(--ui-text-secondary); }
.hr-m-doc-result:empty { display: none; }
.hr-m-doc-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.hr-m-doc-card-head { display: flex; gap: 12px; align-items: flex-start; }
.hr-m-doc-card-head > div { min-width: 0; overflow-wrap: anywhere; }
.hr-m-doc-card-head h2 { margin-top: 3px; }
.hr-m-doc-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 42px; border-radius: 11px; background: var(--ui-primary-soft); color: var(--ui-primary); flex-shrink: 0; }
.hr-m-doc-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.hr-m-doc-status { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--ui-surface-muted); color: var(--ui-text-secondary); font-size: 11px; line-height: 1.5; }
.hr-m-doc-status.is-pending, .hr-m-doc-status.is-warning { background: var(--ui-status-warning-bg); color: var(--ui-status-warning-ink); }
.hr-m-doc-status.is-confirmed { background: var(--ui-status-success-bg); color: var(--ui-status-success-ink); }
.hr-m-doc-actions { display: flex; gap: 8px; }
.hr-m-documents .hr-m-doc-actions .ui-btn { flex: 1 1 0; padding-inline: 7px; font-size: 13px; }
.hr-m-doc-empty { display: flex; align-items: center; flex-direction: column; gap: 10px; padding: 24px 18px; text-align: center; }
.hr-m-doc-empty > svg { width: 26px; height: 26px; color: var(--ui-primary); }
.hr-m-doc-empty strong { font-size: 14px; font-weight: 600; }
.hr-m-doc-empty p { color: var(--ui-text-secondary); font-size: 13px; }
.hr-m-doc-requirements > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; }
.hr-m-doc-requirements > summary::-webkit-details-marker { display: none; }
.hr-m-doc-requirements small { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--ui-text-secondary); }
.hr-m-doc-requirements[open] > summary { margin-bottom: 12px; }
.hr-m-doc-requirements[open] > summary svg { transform: rotate(180deg); }
.hr-m-doc-requirement { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 0; border-top: 1px solid var(--ui-border); }
.hr-m-doc-requirement strong { font-size: 13px; }
.hr-m-doc-auth { display: flex; flex-direction: column; gap: 12px; padding: 4px; }
.hr-m-doc-auth > div { display: flex; align-items: flex-start; gap: 10px; }
.hr-m-doc-auth svg { color: var(--ui-text-secondary); margin-top: 2px; }
.hr-m-doc-auth h2 { font-size: 14px; }
.hr-m-doc-auth p { margin-top: 4px; color: var(--ui-text-secondary); font-size: 12px; line-height: 1.5; }
.hr-m-doc-auth > a { align-self: flex-start; font-size: 13px; }
.hr-m-doc-offline { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 14px; background: var(--ui-status-warning-bg); color: var(--ui-status-warning-ink); font-size: 13px; }
.hr-m-doc-offline p { margin-top: 6px; }
#hr-m-documents-security:empty { display: none; }
#hr-m-documents-security .ui-alert { margin: 0; padding: 14px; border-radius: 12px; font-size: 13px; }
#hr-m-documents-security .ui-alert > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
dialog.hr-m-pdf { position: fixed; inset: 0; width: 100%; max-width: 900px; height: 100dvh; max-height: 100dvh; margin: auto; padding: 0; border: 0; border-radius: 0; background: var(--ui-surface); color: var(--ui-text-primary); overflow: hidden; }
dialog.hr-m-pdf[open] { display: flex; flex-direction: column; }
dialog.hr-m-pdf::backdrop { background: rgb(15 23 42 / 45%); }
.hr-m-pdf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; flex-shrink: 0; }
.hr-m-pdf-head > div { min-width: 0; }
.hr-m-pdf-head span { font-size: 12px; color: var(--ui-text-secondary); }
.hr-m-pdf-head h2 { margin: 3px 0 0; font-size: 15px; line-height: 1.4; font-weight: 600; max-height: 64px; overflow: auto; overflow-wrap: anywhere; }
.hr-m-pdf-head .ui-btn { flex-shrink: 0; width: 44px; padding-inline: 0; }
.hr-m-pdf-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 0 12px 10px; border-bottom: 1px solid var(--ui-border); flex-shrink: 0; }
.hr-m-pdf-pages, .hr-m-pdf-zoom { display: flex; align-items: center; justify-content: center; gap: 6px; }
.hr-m-pdf-pages { flex: 1 1 190px; }
.hr-m-pdf-pages > span { flex: 1; min-width: 90px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.hr-m-pdf-zoom { flex: 1 1 190px; }
.hr-m-pdf-tools .ui-btn { padding-inline: 10px; font-size: 12px; }
#hr-m-pdf-fit { flex: 1; }
.hr-m-pdf-viewport { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 12px; background: var(--ui-surface-muted); }
#hr-m-pdf-message:not([hidden]) { margin: 24px auto; max-width: 320px; text-align: center; color: var(--ui-text-secondary); font-size: 14px; }
#hr-m-pdf-paper { width: max-content; min-width: 100%; }
#hr-m-pdf-paper canvas { display: block; margin: auto; max-width: none; background: white; box-shadow: var(--ui-shadow-sm); }
#hr-m-pdf-retry:not([hidden]) { display: flex; margin: 16px auto; }
.hr-m-pdf-foot { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ui-border); flex-shrink: 0; }
.hr-m-pdf-foot .ui-btn { flex: 1 1 0; font-size: 13px; padding-inline: 8px; }
.hr-m-pdf [hidden] { display: none !important; }
body.hr-m-on dialog#hr-doc-detail.hr-doc-mobile-detail[open] { top: auto; bottom: max(12px, env(safe-area-inset-bottom)); height: auto; max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border-radius: 16px; }
body.hr-m-on .hr-doc-mobile-detail .ui-modal__title { overflow-wrap: anywhere; font-size: 17px; line-height: 1.4; }
body.hr-m-on .hr-doc-mobile-detail .ui-modal__head { max-height: 25dvh; overflow: auto; }
body.hr-m-on .hr-doc-dialog .ui-modal__foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; }
body.hr-m-on .hr-doc-dialog .ui-modal__foot .ui-btn { width: 100%; min-width: 0; font-size: 13px; padding-inline: 8px; }
body.hr-m-on .hr-doc-dialog .ui-modal__foot .ui-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
body.hr-m-on .hr-doc-mobile-detail .hr-doc-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 12px; font-size: 12px; }
body.hr-m-on .hr-doc-mobile-detail .hr-doc-meta dd { overflow-wrap: anywhere; }
.hr-m-doc-detail-summary { padding: 12px 0; color: var(--ui-text-secondary); font-size: 13px; }
.hr-m-doc-detail-summary p { margin: 4px 0; }
.hr-m-doc-detail-more { border-top: 1px solid var(--ui-border); padding: 8px 0; }
.hr-m-doc-detail-more summary { display: list-item; cursor: pointer; padding-block: 12px; min-height: 44px; font-size: 14px; font-weight: 500; }
@media (max-height: 500px) {
  .hr-m-pdf-head { padding-block: 6px; }
  .hr-m-pdf-head span { display: none; }
  .hr-m-pdf-head h2 { max-height: 42px; }
  .hr-m-pdf-tools { padding-bottom: 4px; }
}

/* Notifications: full-screen mobile inbox with a fixed header and scrolling cards. */
.hr-notif-filters { display: none; }
.hr-notif-feedback { padding: 12px 16px; font-size: 13px; }
.hr-notif-feedback p { margin: 0 0 8px; }
dialog.hr-m-notifications-dialog { position: fixed; inset: 0; width: 100%; max-width: 720px; height: 100dvh; max-height: 100dvh; margin: auto; border: 0; padding: 0; overflow: hidden; background: var(--ui-page-bg); color: var(--ui-text-primary); }
dialog.hr-m-notifications-dialog::backdrop { background: rgb(15 23 42 / 40%); }
body.hr-m-on .hr-m-notifications-dialog #hr-notif-panel { position: static; inset: auto; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: none; overflow: hidden; background: var(--ui-page-bg); }
.hr-m-notifications-dialog .hr-notif-head { align-items: center; flex-shrink: 0; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; border: 0; background: var(--ui-surface); }
.hr-m-notifications-dialog .hr-notif-title { font-size: 20px; line-height: 1.35; font-weight: 650; }
.hr-m-notifications-dialog .hr-notif-unread { margin-top: 4px; font-size: 13px; color: var(--ui-text-secondary); }
.hr-m-notifications-dialog .hr-notif-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 16px 12px; border: 0; background: var(--ui-surface); flex-shrink: 0; }
.hr-m-notifications-dialog .hr-notif-actions .ui-btn { border: 1px solid var(--ui-border); background: var(--ui-surface); font-size: 12px; }
.hr-m-notifications-dialog .hr-notif-filters { display: flex; gap: 4px; padding: 4px; margin: 0 16px 12px; border-radius: 12px; background: var(--ui-surface-muted); flex-shrink: 0; }
.hr-m-notifications-dialog .hr-notif-filters .ui-btn { flex: 1; min-width: 0; font-size: 13px; padding-inline: 6px; border: 1px solid transparent; }
.hr-m-notifications-dialog .hr-notif-filters [aria-pressed="true"] { color: var(--ui-primary); background: var(--ui-surface); border-color: var(--ui-border); font-weight: 600; }
.hr-m-notifications-dialog .ui-btn { border-radius: 10px; box-shadow: none; gap: 7px; }
.hr-m-notifications-dialog :is(button, a):focus-visible { outline: 3px solid var(--ui-primary); outline-offset: 2px; }
.hr-m-notifications-dialog .hr-notif-feedback { margin: 0 16px 12px; padding: 12px; border: 1px solid var(--ui-border); border-radius: 12px; background: var(--ui-surface); flex-shrink: 0; }
.hr-m-notifications-dialog [hidden] { display: none !important; }
.hr-m-notifications-dialog .hr-notif-scroll { flex: 1; min-height: 0; max-height: none; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.hr-m-notifications-dialog .hr-notif-group { padding: 4px 2px 10px; margin-top: 4px; text-transform: none; letter-spacing: normal; font-weight: 500; font-size: 12px; background: transparent; }
.hr-m-notification { display: flex; flex-direction: column; gap: 10px; padding: 16px; margin-bottom: 12px; border: 1px solid var(--ui-border); border-radius: 16px; background: var(--ui-surface); }
.hr-m-notification.is-unread { border-left: 3px solid var(--ui-primary); padding-left: 14px; }
.hr-m-notification-head { display: flex; align-items: flex-start; gap: 12px; }
.hr-m-notification-head > div { min-width: 0; }
.hr-m-notification-icon { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--ui-text-secondary); background: var(--ui-surface-muted); flex-shrink: 0; }
.hr-m-notification.is-unread .hr-m-notification-icon { background: var(--ui-primary-soft); color: var(--ui-primary); }
.hr-m-notification svg { width: 18px; height: 18px; flex-shrink: 0; }
.hr-m-notification h3 { margin: 4px 0 0; font-size: 15px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.hr-m-notification-state { display: flex; align-items: center; gap: 6px; color: var(--ui-text-secondary); font-size: 11px; font-weight: 500; }
.is-unread .hr-m-notification-state { color: var(--ui-primary); }
.hr-m-notification-state > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hr-m-notification-message { margin: 0; color: var(--ui-text-secondary); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.hr-m-notification-time { margin: 0; font-size: 12px; color: var(--ui-text-muted); }
.hr-m-notification-actions { display: flex; gap: 8px; margin-top: 2px; }
.hr-m-notification-actions .ui-btn { flex: 1; font-size: 12px; padding-inline: 8px; }
.hr-m-notification-actions [data-notif-action="read"] { flex: 1.6; }
.hr-m-notifications-dialog .hr-notif-empty { padding: 40px 16px; border: 1px solid var(--ui-border); border-radius: 16px; background: var(--ui-surface); }
.hr-m-notifications-dialog .hr-notif-empty > p:first-child { font-size: 16px; font-weight: 600; }
.hr-m-notifications-dialog .hr-notif-empty .settings-help { font-size: 13px; line-height: 1.5; }
.hr-m-note-unread { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ui-primary); font-weight: 500; margin-bottom: 4px; }
.hr-m-note-unread::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (max-height: 500px) {
  .hr-m-notifications-dialog .hr-notif-head { padding-block: 6px; }
  .hr-m-notifications-dialog .hr-notif-unread { display: none; }
  .hr-m-notifications-dialog .hr-notif-actions { padding-bottom: 6px; }
  .hr-m-notifications-dialog .hr-notif-filters { margin-bottom: 6px; }
  .hr-m-notifications-dialog .hr-notif-feedback { padding: 6px 12px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
  .hr-m-notifications-dialog .hr-notif-feedback p { margin: 0; flex: 1; }
}

/* Account: a compact settings index and focused mobile forms. */
.hr-m-account { gap: 16px; }
body.hr-m-on:has(.hr-m-account) .hr-page-header { display: none; }
.hr-m-account .ui-card { padding: 16px; margin: 0; border-radius: 16px; box-shadow: none; min-width: 0; }
.hr-m-account :is(h2, h3) { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.hr-m-account p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ui-text-secondary); overflow-wrap: anywhere; }
.hr-m-account p:empty { display: none; }
.hr-m-account .ui-caption, body.hr-m-on .account-dialog .ui-caption { text-transform: none; letter-spacing: normal; }
.hr-m-account #hr-pinpad-host:empty { display: none; }
.hr-m-account svg { width: 20px; height: 20px; flex-shrink: 0; }
.hr-m-account .ui-btn, body.hr-m-on .account-dialog .ui-btn { border-radius: 10px; box-shadow: none; gap: 7px; font-size: 13px; }
.hr-m-account :is(a, button, input, summary):focus-visible { outline: 3px solid var(--ui-primary); outline-offset: 3px; }
.hr-m-account [hidden], body.hr-m-on .account-dialog [hidden] { display: none !important; }
.hr-m-account-identity { display: flex; align-items: center; gap: 14px; }
.hr-m-account-identity > div { min-width: 0; }
.hr-m-account-identity .ui-avatar { flex-shrink: 0; background: var(--ui-primary-soft); color: var(--ui-primary); }
.hr-m-account .hr-m-account-identity h2 { font-size: 18px; }
.hr-m-account .hr-m-account-identity p { margin: 3px 0 8px; }
.hr-m-account .hr-m-account-menu { padding: 0 14px; }
.hr-m-account-link { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 13px 0; text-decoration: none; color: var(--ui-text-primary); }
.hr-m-account-link + .hr-m-account-link { border-top: 1px solid var(--ui-border); }
.hr-m-account-link > span:nth-child(2) { flex: 1; min-width: 0; }
.hr-m-account-link strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; }
.hr-m-account-link small { display: block; color: var(--ui-text-secondary); font-size: 12px; line-height: 1.45; margin-top: 3px; }
.hr-m-account-link > svg { width: 16px; color: var(--ui-text-muted); }
.hr-m-account-link:hover { color: var(--ui-primary); }
.hr-m-account-icon { width: 36px; height: 36px; border-radius: 11px; background: var(--ui-primary-soft); color: var(--ui-primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hr-m-account-attention { color: var(--ui-warning-text, #92400e); }
.hr-m-account-logout { width: 100%; }
.hr-m-account-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hr-m-account .hr-m-account-heading h2 { font-size: 20px; }
.hr-m-account-heading .ui-btn { padding-inline: 0; }
.hr-m-account .ui-stack, .hr-m-account-settings, .hr-m-account .account-security { display: grid; gap: 14px; }
.hr-m-account-settings > .ui-card { display: flex; flex-direction: column; gap: 14px; }
.hr-m-account-settings p { margin: 0; }
.hr-m-account-card-head { display: flex; align-items: flex-start; gap: 12px; }
.hr-m-account-card-head > div { min-width: 0; }
.hr-m-account-card-head p { margin-top: 4px; }
.hr-m-account-actions, .hr-m-account .account-security__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hr-m-account-actions .ui-btn, .hr-m-account .account-security__actions .ui-btn { flex: 1 1 120px; padding-inline: 10px; }
.hr-m-account-state { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.hr-m-account-state > span { color: var(--ui-text-secondary); }
.hr-m-account-state strong { font-weight: 500; }
.hr-m-account-offline-settings { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--ui-border); }
.hr-m-account .hr-m-account-storage { display: block; }
.hr-m-account-storage summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; }
.hr-m-account-storage summary::-webkit-details-marker { display: none; }
.hr-m-account-storage summary span { flex: 1; }
.hr-m-account-storage[open] summary > svg:last-child { transform: rotate(180deg); }
.hr-m-account-storage[open] > p { margin: 12px 0; }
.hr-m-account .account-security__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.hr-m-account .account-security__facts > div { min-width: 0; }
.hr-m-account .account-security__facts dd { margin: 3px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.hr-m-account .profile-nowrap { white-space: normal; }
.hr-m-account .profile-auth-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.hr-m-account .account-security__head { justify-content: space-between; }
.hr-m-account .ui-alert { padding: 14px; border-radius: 12px; margin-block: 0 14px; font-size: 13px; }
.hr-m-account .ui-field { margin: 0; }
.hr-m-account #profile-password { display: grid; gap: 14px; margin-top: 16px; }
.hr-m-account .ui-input { max-width: none; box-shadow: none; }
.hr-m-account :is(.hr-trusted-device, .hr-m-passkey) { border-top: 1px solid var(--ui-border); padding: 14px 0; overflow-wrap: anywhere; }
.hr-m-account .hr-m-passkey > .ui-btn { display: flex; width: 100%; margin-top: 10px; }
.hr-m-account #hr-trusted-revoke-all { width: 100%; margin-top: 12px; }
.hr-m-account-offline { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--ui-primary-soft); font-size: 14px; }
.hr-m-account-offline > svg { color: var(--ui-primary); }
body.hr-m-on dialog.account-dialog { width: min(480px, calc(100vw - 24px)); padding: 18px; border-radius: 16px; max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow: auto; }
body.hr-m-on .account-dialog .ui-modal__head { padding: 0 0 14px; }
body.hr-m-on .account-dialog .ui-field + .ui-field { margin-top: 14px; }
body.hr-m-on .account-dialog .ui-modal__foot { display: flex; gap: 8px; padding: 16px 0 0; margin: 0; }
body.hr-m-on .account-dialog .ui-modal__foot .ui-btn { flex: 1; min-width: 0; }
dialog.hr-m-pin-dialog { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; overflow: auto; color: var(--ui-text-primary); }
.hr-m-pin-cancel { display: flex; width: 100%; margin-top: 14px; border-radius: 10px; }
@media (max-height: 600px) {
  dialog.hr-m-pin-dialog { align-items: flex-start; }
}
@media (min-width: 600px) {
  .hr-m-account .profile-auth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Employee Start: one daily summary, followed by tasks and quiet shortcuts. */
.hr-m-home--compact { gap: 16px; }
.hr-m-home--compact .ui-card { margin: 0; border-radius: 16px; box-shadow: none; }
.hr-m-home--compact :is(h2, h3, p) { margin: 0; }
.hr-m-home--compact h2 { font-size: 16px; line-height: 1.4; font-weight: 650; }
.hr-m-home--compact h3 { font-size: 14px; line-height: 1.5; font-weight: 600; }
.hr-m-home--compact svg { width: 20px; height: 20px; flex-shrink: 0; }
.hr-m-home--compact .ui-btn { border-radius: 10px; box-shadow: none; gap: 8px; }
.hr-m-home--compact :is(a, summary, button):focus-visible { outline: 3px solid var(--ui-primary); outline-offset: 3px; }
.hr-m-home--compact .hr-m-home-muted { color: var(--ui-text-secondary); font-size: 13px; line-height: 1.5; font-weight: 400; }
.hr-m-home--compact .hr-m-home-today { padding: 18px; background: linear-gradient(140deg, var(--ui-primary-soft), var(--ui-surface) 65%); }
.hr-m-home-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hr-m-home--compact .hr-m-home-hours { display: flex; gap: 6px; margin: 12px 0 2px; font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.hr-m-home-hours > span { color: var(--ui-text-secondary); font-weight: 400; }
.hr-m-home--compact .hr-m-home-hours--empty { font-size: 23px; letter-spacing: -.4px; }
.hr-m-home--compact .hr-m-home-notice { margin-top: 8px; color: var(--ui-status-warning-ink); font-size: 13px; }
.hr-m-home-rcp { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 14px 0; margin-top: 12px; border-top: 1px solid var(--ui-border); }
.hr-m-home-rcp > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hr-m-home-rcp strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.hr-m-home-main-actions { position: relative; margin-top: 4px; }
.hr-m-home-main-actions summary { display: flex; width: calc(100% - 112px); cursor: pointer; list-style: none; }
.hr-m-home-main-actions summary::-webkit-details-marker { display: none; }
.hr-m-home-main-actions details + .hr-m-home-schedule { position: absolute; right: 0; top: 0; width: 100px; }
.hr-m-home-main-actions .hr-m-qr { padding-top: 18px; gap: 10px; }
.hr-m-home--compact .hr-m-qr .ui-caption { text-transform: none; letter-spacing: normal; font-size: 13px; }
.hr-m-home--compact #hr-m-qr-timer { font-size: 13px; color: var(--ui-text-secondary); }
.hr-m-home-qr-info { margin-top: 12px; }
.hr-m-home-qr-info .ui-alert { margin: 0; font-size: 13px; }
.hr-m-home-tasks > .hr-m-home-heading { margin-bottom: 4px; }
.hr-m-home-tasks > .hr-m-home-heading svg { color: var(--ui-status-warning-fg); }
.hr-m-home-task, .hr-m-home-tasks .hr-m-action-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }
.hr-m-home-tasks > :last-child { padding-bottom: 0; }
.hr-m-home-tasks > :nth-child(n+3) { border-top: 1px solid var(--ui-border); }
.hr-m-home-tasks .hr-m-action-card > p, .hr-m-home-task > p { font-size: 13px; color: var(--ui-text-secondary); }
.hr-m-home-task > .ui-btn { align-self: flex-start; }
.hr-m-home-task form:not([hidden]) { display: flex; flex-direction: column; gap: 12px; }
.hr-m-home-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.hr-m-home-buttons > .ui-btn { flex: 1 1 100px; }
.hr-m-home-task-link { display: flex; align-items: center; gap: 10px; padding: 14px 0; color: var(--ui-text-primary); text-decoration: none; }
.hr-m-home-task-link > span { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.hr-m-home-task-link strong { font-size: 14px; font-weight: 600; }
.hr-m-home-task-link > svg:first-child { color: var(--ui-text-secondary); }
.hr-m-home-task-link > svg:last-child { width: 16px; color: var(--ui-text-secondary); }
.hr-m-home--compact .hr-m-home-clear { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-size: 13px; color: var(--ui-text-secondary); }
.hr-m-home-clear svg { color: var(--ui-status-success-fg); width: 18px; }
.hr-m-home-next { display: flex; align-items: center; gap: 12px; padding: 4px; text-decoration: none; color: var(--ui-text-primary); }
.hr-m-home-next > span:nth-child(2) { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.hr-m-home-next strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.hr-m-home-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ui-primary-soft); color: var(--ui-primary); flex-shrink: 0; }
.hr-m-home-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hr-m-home-shortcut { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border: 1px solid var(--ui-border); border-radius: 14px; background: var(--ui-surface); color: var(--ui-text-primary); text-decoration: none; overflow-wrap: anywhere; }
.hr-m-home-shortcut > svg { margin-bottom: 4px; color: var(--ui-primary); }
.hr-m-home-shortcut strong { font-size: 14px; font-weight: 600; }
.hr-m-home--compact .hr-m-home-notifications { padding: 0 4px; }
.hr-m-home-notifications #hr-m-notes { padding: 0; background: transparent; border: 0; border-radius: 0; gap: 0; }
.hr-m-home-notifications #hr-m-notes h2 { margin-bottom: 4px; }
.hr-m-home-notifications .hr-m-note { padding: 12px 0; font-size: 13px; border-bottom: 1px solid var(--ui-border); }
.hr-m-home-notifications .hr-m-note strong { display: block; font-size: 14px; font-weight: 600; }
.hr-m-home-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; color: var(--ui-primary); text-decoration: none; }
#hr-m-home-security:empty { display: none; }
#hr-m-home-security .ui-alert { margin: 0; padding: 14px; border-radius: 12px; font-size: 13px; }
#hr-m-home-security .ui-alert > div { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; }
.hr-m-home-setup { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--ui-surface-muted); border-radius: 14px; font-size: 13px; }
.hr-m-home-setup p { color: var(--ui-text-secondary); margin-top: 4px; }
@media (hover: hover) {
  .hr-m-home-shortcut:hover { border-color: var(--ui-primary); background: var(--ui-primary-soft); }
  .hr-m-home-next:hover, .hr-m-home-task-link:hover { color: var(--ui-primary); }
}
@media (max-width: 359px) {
  .hr-m-home--compact .hr-m-home-today { padding: 14px; }
  .hr-m-home--compact .hr-m-home-hours { font-size: 28px; }
  .hr-m-home-main-actions summary { width: calc(100% - 96px); padding-inline: 8px; }
  .hr-m-home-main-actions details + .hr-m-home-schedule { width: 88px; padding-inline: 8px; }
}
