/* Workday v1.17 — faithful mobile composition derived from approved flat mockup.
   Overrides visual presentation only; all original UI and actions remain. */
:root {
  --bg: #ffffff; --surface: #ffffff; --surface-soft: #f6f5fb;
  --ink: #151326; --navy: #17162a; --muted: #686c7c;
  --line: #d6d7e1; --primary: #4a22b8; --primary-dark: #37158e;
  --primary-soft: #eee9fc; --green: #15843b; --green-soft: #edf8ef;
  --red: #ed343a; --red-soft: #fff0f0; --orange: #ad610e;
  --shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
html, body { background: #fff !important; background-image: none !important; }
.app-shell, .app-header, .brand-mark, .user-avatar, .app-main, .employee-switcher,
.role-badge, .employee-select-field select, .employee-reminder-setting,
.manager-export-button, .view-mode-switch, .view-mode-button, .task-scope-switch,
.task-scope-button, .push-card, .push-card__icon, .push-button, .push-test-button,
.week-card, .week-nav-button, .week-day, .summary-card, .summary-icon,
.progress-card, .progress-track, .progress-track span, .tasks-section,
.week-tasks-section, .add-button, .week-task-count, .week-task-status,
.task-card, .task-number, .remove-button, .task-recurrence-badge,
.task-recurrence-stop, .field input, .field select, .field textarea,
.task-carry-hint, .task-timestamp, .empty-state, .empty-state__icon,
.action-bar, .button, .app-login__card, .app-login__icon, .confirm-modal,
.confirm-modal__icon, .tool-modal, .modal-close-button, .tool-field input,
.export-scope-card, .toast, .current-week-button, .mobile-quick-nav,
.quick-nav-button, .wd-task-check, .wd-task-actions, .wd-task-badge {
  border-radius: 0 !important; box-shadow: none !important;
}
.app-shell { background: #fff; }
.app-header {
  padding: calc(11px + var(--safe-top)) calc(16px + var(--safe-right)) 13px calc(16px + var(--safe-left));
  min-height: calc(80px + var(--safe-top)); gap: 12px;
  color: #fff; background: #4b1db3;
  border-bottom: 0; box-shadow: none;
}
.brand-mark { width: 40px; height: 44px; flex-basis: 40px; border: 0; background: transparent; }
.brand-mark svg { width: 36px; height: 36px; stroke-width: 1.9; }
.brand-copy { gap: 2px; }
.brand-copy strong { font-size: 25px; font-weight: 800; letter-spacing: -0.025em; }
.brand-copy > span:not(.header-identity) { font-size: 12px; color: #f0eafd; }
.brand-copy .header-identity { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.header-alerts {
  border: 0; background: transparent; color: #fff; width: 36px; height: 44px; padding: 8px 3px;
  display: grid; place-items: center; flex-shrink: 0; cursor: pointer;
}
.header-alerts svg { fill: none; stroke: currentColor; stroke-width: 1.8; width: 27px; height: 27px; stroke-linecap: round; stroke-linejoin: round; }
.header-alerts:focus-visible { outline: 2px solid #fff; }
.user-avatar {
  width: 40px; height: 40px; flex-basis: 40px; border: 2px solid rgba(255,255,255,.9);
  background: #6033ca; color: #fff; font-size: 15px; font-weight: 700;
}
.app-main {
  width: min(100%, 720px);
  padding: 0 calc(12px + var(--safe-right)) 18px calc(12px + var(--safe-left));
  background: #fff; gap: 10px;
}
.app-main > * { flex-shrink: 0; }
.week-card { margin: 0 -12px; padding: 13px 12px 9px; border: 0; background: #fff; }
.week-navigation { display: grid; grid-template-columns: 45px minmax(0,1fr) 45px; gap: 9px; margin: 0 0 12px; align-items: center; }
.week-navigation__copy { gap: 1px; min-width: 0; }
.week-navigation .eyebrow, .week-navigation #weekTitle, .week-navigation .week-range { display: none; }
.week-navigation h2.display-date-title { display: block; margin: 0; color: #151427; font-size: clamp(15px,4.8vw,20px); font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-nav-button { width: 45px; height: 47px; border: 1px solid #bfc1ce; background: #f6f6f9; color: #121126; font-size: 30px; }
.week-nav-button:active { background: #e7defc; transform: none; }
.week-strip { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 0; border: 1px solid #bcc0cb; }
.week-day { width: 100%; min-height: 66px; padding: 8px 0 6px; background: #fff; border: 0; border-right: 1px solid #bdc0ce; gap: 3px; }
.week-day:last-child { border-right: none; }
.week-day__name { font-size: 11px; font-weight: 750; color: #1c1b2f; }
.week-day__number { font-size: 20px; font-weight: 800; color: #0f1020; }
.week-day__result { min-height: 8px; font-size: 9px; line-height: 1; color: #7c80a5; }
.week-day:nth-child(n+6) .week-day__name, .week-day:nth-child(n+6) .week-day__number { color: #ed2a34; }
.week-day.is-selected { background: #4a22b8; border-color: #4a22b8; }
.week-day.is-selected .week-day__name, .week-day.is-selected .week-day__number, .week-day.is-selected .week-day__result { color: #fff !important; }
.week-day.is-today:not(.is-selected) { background: #f3f0fc; }
.current-week-button { border: 1px solid #ddd6ed; padding: 10px; background: #f6f3fc; color: #4a22b8; }
/* Functionality retained: date/week mode and personal/manager scopes stay accessible. */
.view-mode-switch, .task-scope-switch { display: flex; gap: 0; padding: 0; border: 1px solid #c9c9d5; background: #fff; }
.view-mode-button, .task-scope-button { min-height: 39px; padding: 8px 5px; font-size: 12px; font-weight: 720; color: #555269; border: 0; border-right: 1px solid #c9c9d5; background: #fff; }
.view-mode-button:last-child, .task-scope-button:last-child { border-right: none; }
.view-mode-button.is-active, .task-scope-button.is-active { background: #4a22b8; color: white; }
.task-scope-button[hidden], .task-scope-switch[hidden] { display: none !important; }
.view-mode-button span { font-size: 12px; }
/* Real daily stats drive the single progress panel in the approved composition. */
.wd-redesign-ready .summary-grid { display: none !important; }
.progress-card {
  display: grid; width: 100%; padding: 14px 16px; border: 1px solid #bfc0cc;
  background: #fff; grid-template-columns: 1fr auto; column-gap: 12px;
}
.progress-copy { display: contents; }
.progress-copy > span { grid-column: 1; grid-row: 1; font-size: 17px; color: #1d1b2d; font-weight: 800; }
.progress-copy > strong { grid-column: 2; grid-row: 2 / span 2; align-self: center; font-size: 21px; color: #191529; font-weight: 800; }
.progress-detail { grid-column: 1; grid-row: 2; margin-top: 5px; font-size: 12px; color: #565a6a; }
.progress-track { grid-column: 1; grid-row: 3; height: 8px; margin-top: 10px; background: #dcdde4; }
.progress-track span { background: #36c444; }
.push-card, .employee-switcher { border: 1px solid #cdd0da; background: #fff; padding: 12px; }
.employee-switcher__head strong { font-size: 15px; }
.role-badge { background: #4a22b8; }
.employee-select-field > span { font-size: 12px; }
.employee-select-field select { border: 1px solid #bfc2ce; font-size: 14px; }
.manager-export-button { border: 1px solid #4a22b8; background: #f5f0ff; color: #4320a9; min-height: 42px; }
.employee-switcher p { font-size: 12px; line-height: 1.4; }
.employee-reminder-setting { border: 1px solid #cfcfde; }
.push-button { background: #4a22b8; }
/* Remove redundant outer card: each list section is a standalone category. */
.tasks-section, .week-tasks-section { width: 100%; border: 0; padding: 0 0 8px; background: transparent; }
.section-heading { margin: 0 0 10px; padding: 9px 0 7px; background: #fff; border-bottom: 1px solid #e3e3ea; gap: 8px; }
.section-heading .eyebrow { color: #777187; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.section-heading h2 { font-size: 16px; font-weight: 800; color: #19162a; }
.add-button { min-height: 37px; padding: 7px 10px; background: #4a22b8; color: #fff; font-size: 12px; font-weight: 750; }
.add-button span { font-size: 20px; }
.task-list { display: flex; flex-direction: column; gap: 0; }
.wd-group-heading { display: flex; align-items: center; gap: 9px; min-height: 49px; margin-top: 13px; padding: 7px 10px; border: 1px solid #bcbfcf; background: #eeeaf9; }
.wd-group-heading:first-child { margin-top: 0; }
.wd-group-heading strong { font-size: 17px; line-height: 1.2; font-weight: 800; color: #1a1727; }
.wd-group-count { display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 6px; margin-left: 1px; background: #e0dcef; font-size: 14px; font-weight: 800; color: #17162b; }
.wd-group-icon { display: grid; place-items: center; width: 26px; flex: 0 0 26px; height: 26px; font-size: 22px; font-weight: 800; color: #ed353c; }
.wd-group-heading--planned .wd-group-icon { color: #205de8; }
.wd-group-heading--done .wd-group-icon { color: #139d2b; }
.wd-group-heading--carried .wd-group-icon { color: #9d682e; }
.wd-group-heading--not_done .wd-group-icon { color: #e43a3a; }
/* Compact rows matching the mock: checkmark + title/time + tag + editor menu. */
.wd-redesign-ready .task-card {
  min-width: 0; margin: 0; padding: 0; overflow: visible;
  border: 1px solid #d1d1db; border-top: 0; border-left: 4px solid #2457e8;
  background: #fff;
}
.wd-redesign-ready .task-card[data-wd-status="in_progress"] { border-left-color: #e8383e; }
.wd-redesign-ready .task-card[data-wd-status="done"] { border-left-color: #29aa43; }
.wd-redesign-ready .task-card[data-wd-status="not_done"] { border-left-color: #cd4242; }
.wd-redesign-ready .task-card[data-wd-status="carried"] { border-left-color: #bf8942; }
.wd-redesign-ready .task-card:focus-within { background: #fff; border-color: #b2a3d7; border-left-color: #4a22b8; }
.wd-task-row { display: grid; min-height: 74px; padding: 10px 8px; align-items: center; grid-template-columns: 30px minmax(0,1fr) auto 24px; column-gap: 8px; }
.wd-task-check { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 2px solid #9297a9; background: #fff; color: transparent; cursor: pointer; font-size: 20px; font-weight: 900; }
.wd-task-check[aria-pressed="true"] { border-color: #18b137; color: #fff; background: #18b137; }
.wd-task-check:disabled { opacity: .55; cursor: default; }
.wd-task-name-button { padding: 0; text-align: left; min-width: 0; border: 0; background: transparent; cursor: pointer; }
.wd-task-name { display: block; font-size: 14px; font-weight: 780; line-height: 1.25; color: #171628; overflow-wrap: anywhere; }
.task-card.is-done .wd-task-name { text-decoration: line-through; color: #757587; }
.wd-task-meta { display: block; margin-top: 5px; font-size: 11px; color: #62667a; line-height: 1.35; overflow-wrap: anywhere; }
.wd-task-labels { display: flex; flex-direction: column; align-items: end; gap: 3px; min-width: 0; }
.wd-task-badge { display: block; max-width: 93px; padding: 5px; background: #eee8fd; color: #4a22b8; font-size: 10px; font-weight: 700; text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.wd-task-badge[data-status="in_progress"] { background: #ffeded; color: #bb2734; }
.wd-task-badge[data-status="done"] { background: #e8faee; color: #167b32; }
.wd-task-badge[data-status="not_done"] { background: #fff0f0; color: #bd2e38; }
.wd-task-badge[data-status="carried"] { background: #fff5e9; color: #91611d; }
.wd-task-scope { font-size: 9px; color: #8c8d9c; line-height: 1; }
.wd-task-actions { border: none; background: transparent; font-size: 24px; font-weight: 800; color: #4b4268; width: 24px; height: 37px; padding: 0; cursor: pointer; }
.wd-task-editor { display: none; padding: 13px 12px 15px; background: #f8f7fc; border-top: 1px solid #cbc5e3; }
.wd-redesign-ready .task-card.wd-editing .wd-task-editor { display: block; }
.wd-task-editor .task-card__head { margin: 0 0 10px; }
.wd-task-editor .task-number { background: #e4dffa; color: #3b2093; }
.wd-task-editor .remove-button { background: #ffe5e5; color: #bf2632; }
.wd-task-editor .field { gap: 5px; }
.wd-task-editor .field input, .wd-task-editor .field select, .wd-task-editor .field textarea { background: #fff; border: 1px solid #bdc0ce; color: #201a34; font-size: 14px; }
.wd-task-editor .field input, .wd-task-editor .field select { min-height: 43px; }
.wd-task-editor .field label, .wd-task-editor .field span { color: #4c4a60; font-size: 11px; font-weight: 700; }
.wd-task-editor .task-schedule-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.wd-task-editor .task-reminder-field, .wd-task-editor .task-recurrence-field, .wd-task-editor .task-recurrence-until-field { grid-column: 1/-1; }
.wd-task-editor .task-schedule-hint, .wd-task-editor .task-carry-hint { font-size: 11px; line-height: 1.4; }
.wd-task-editor .task-note-field { margin-top: 12px; }
.wd-task-editor .task-recurrence-badge, .wd-task-editor .task-timestamp { font-size: 11px; }
.wd-task-editor button { border-radius: 0; }
.wd-task-editor .task-details-toggle { display: none !important; }
.week-tasks-section { margin-top: 8px; }
.week-task-list { padding: 0; border: 1px solid #c8cada; }
.week-task-row { padding: 11px 8px; border-bottom: 1px solid #d6d8e2; }
.week-task-row.is-today { background: #f1ebff; }
.week-task-date strong, .week-task-copy strong { color: #171525; }
.week-task-status { font-size: 11px; }
.empty-state { border: 1px dashed #b9b8c6; background: #faf9fd; padding: 24px 15px; }
/* Keep business actions visible and working, above the fixed bottom nav. */
.action-bar { flex-shrink: 0; border-top: 1px solid #cbd0da; padding: 6px calc(10px + var(--safe-right)) 6px calc(10px + var(--safe-left)); background: #fff; }
.action-bar__content { width: min(100%,696px); gap: 8px; }
.action-bar .button { padding: 8px; min-height: 37px; font-size: 12px; font-weight: 750; }
.action-bar .button--primary { background: #4a22b8; color: white; }
.action-bar .button--secondary { background: #fff; color: #221b39; border: 1px solid #b5b6c7; }
.action-caption { display: none; }
.mobile-quick-nav { display: grid; flex: 0 0 auto; width: 100%; min-height: calc(65px + var(--safe-bottom)); padding: 0 calc(8px + var(--safe-right)) var(--safe-bottom) calc(8px + var(--safe-left)); grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid #c9cbda; background: #fff; }
.quick-nav-button { display: flex; min-height: 65px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 7px 2px; border: 0; border-right: 1px solid #e5e5ef; color: #4b4d61; background: #fff; font-size: 11px; font-weight: 720; cursor: pointer; }
.quick-nav-button:last-child { border-right: 0; }
.quick-nav-button svg { fill: none; stroke: currentColor; stroke-width: 1.8; width: 24px; height: 24px; stroke-linecap: round; stroke-linejoin: round; }
.quick-nav-button.is-current { background: #eee8fc; color: #4a22b8; }
.quick-nav-button--add { background: #4a22b8; color: white; }
.quick-nav-button--add:disabled { opacity: .5; }
.button:disabled, .add-button:disabled { opacity: .55; }
/* Other screens keep original functionality with the same sharp visual language. */
.app-login { background: #4a22b8; }
.app-login__card, .confirm-modal, .tool-modal { border: 1px solid #c7c8d3; background: #fff; }
.app-login__icon { background: #4a22b8; }
.tool-field input { border: 1px solid #c7c9d3; }
.export-scope-card { background: #f6f4fa; }
@media (max-width: 430px) {
  .app-main { padding-left: calc(10px + var(--safe-left)); padding-right: calc(10px + var(--safe-right)); gap: 9px; }
  .week-card { margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
  .wd-task-row { padding: 9px 7px; column-gap: 6px; grid-template-columns: 27px minmax(0,1fr) 76px 20px; }
  .wd-task-badge { max-width: 76px; padding: 5px 3px; font-size: 9px; }
  .wd-task-actions { width: 20px; }
  .wd-task-name { font-size: 13.5px; }
  .wd-group-heading strong { font-size: 16px; }
  .week-day { min-height: 61px; }
  .week-day__number { font-size: 19px; }
}
@media (max-width: 350px) {
  .app-header { padding-left: 11px; padding-right: 11px; }
  .brand-copy strong { font-size: 22px; }
  .brand-mark { flex-basis: 32px; width: 32px; }
  .brand-mark svg { width: 30px; }
  .user-avatar { flex-basis: 34px; width: 34px; height: 34px; }
  .header-alerts { width: 28px; }
  .week-navigation { grid-template-columns: 35px minmax(0,1fr) 35px; }
  .week-nav-button { width: 35px; height: 42px; }
  .week-navigation h2.display-date-title { font-size: 14px; }
  .week-day__name { font-size: 10px; }
  .week-day__number { font-size: 17px; }
  .wd-task-row { grid-template-columns: 26px minmax(0,1fr) 64px 18px; column-gap: 5px; }
  .wd-task-badge { max-width: 64px; }
  .wd-task-name { font-size: 12px; }
  .wd-task-meta { font-size: 10px; }
  .wd-task-editor .task-schedule-grid { grid-template-columns: 1fr; }
}
@media (min-width: 681px) {
  .app-main { padding-top: 0; }
  .week-card { margin-inline: 0; }
}


/* 1.18: Calm, precise, flat mobile layout following the selected visual direction.
   This layer overrides 1.17 presentation, not form fields or application logic. */
:root {
  --bg: #f7f8fb; --surface: #fff; --surface-soft: #f8f8fc;
  --ink: #232238; --navy: #232238; --muted: #77788a;
  --line: #e2e3eb; --primary: #5128b8; --primary-dark: #3b1696;
  --primary-soft: #f0ecfb; --green: #209e56; --green-soft: #eaf7ef;
  --red: #d54453; --red-soft: #fff0f1; --orange: #ae762f;
  --shadow: none;
  -webkit-font-smoothing: antialiased;
}
html, body, .app-shell { background: var(--bg) !important; }
.app-header {
  background: #4a20ad;
  min-height: calc(72px + var(--safe-top));
  padding: calc(10px + var(--safe-top)) calc(17px + var(--safe-right)) 10px calc(17px + var(--safe-left));
  gap: 11px; border-bottom: 0; box-shadow: none;
}
.brand-mark { flex: 0 0 36px; width: 36px; height: 38px; background: transparent; }
.brand-mark svg { width: 31px; height: 31px; stroke-width: 1.8; }
.brand-copy { justify-content: center; gap: 2px; }
.brand-copy strong { font-weight: 750; font-size: 21px; line-height: 1.1; letter-spacing: -.02em; }
.brand-copy > span:not(.header-identity) { color: #e7dff8; font-size: 11.5px; }
.header-alerts { width: 32px; height: 40px; }
.header-alerts svg { width: 23px; height: 23px; }
.user-avatar { width: 34px; height: 34px; flex-basis: 34px; border: 1px solid #d6c5fa; background: #653bd0; font-size: 12px; }
.app-main { width: min(100%, 680px); padding: 0 14px 24px; gap: 0; background: #f7f8fb; scroll-padding-block: 12px; }
.app-main > * { flex-shrink: 0; }
.week-card { margin: 0 -14px; padding: 16px 14px 13px; background: #fff; border: 0; border-bottom: 1px solid #e6e5ef; }
.week-navigation { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 8px; margin-bottom: 15px; }
.week-navigation__copy { gap: 0; text-align: center; }
.week-navigation h2.display-date-title { font-size: clamp(14px, 4.05vw, 18px); line-height: 1.25; font-weight: 750; color: #252238; }
.week-nav-button { width: 36px; height: 36px; background: #f9f8fd; border: 1px solid #e7e5ef; color: #4a4091; font-size: 25px; line-height: 1; }
.week-strip { border: 0; gap: 3px; background: #fff; }
.week-day { min-height: 61px; border: 1px solid #f0eff5; padding: 6px 1px 5px; gap: 3px; background: #fbfbfe; }
.week-day:last-child { border-right: 1px solid #f0eff5; }
.week-day__name { font-size: 10.5px; font-weight: 650; color: #767586; }
.week-day__number { font-size: 18px; line-height: 1.2; font-weight: 700; color: #29283b; }
.week-day__result { font-size: 8px; min-height: 5px; color: #b9aedb; }
.week-day:nth-child(n+6) .week-day__name, .week-day:nth-child(n+6) .week-day__number { color: #d85360; }
.week-day.is-selected { border-color: #5128b8; background: #5128b8; }
.week-day.is-today:not(.is-selected) { border-color: #e2daf9; background: #f2edfe; }
.current-week-button { margin-top: 10px; padding: 8px 10px; color: #4c20ac; background: #f4f0fd; border: 1px solid #e8defc; font-size: 11.5px; }
/* A single, horizontal progress module (no redundant statistic cards). */
.wd-redesign-ready .summary-grid { display: none !important; }
.progress-card { margin: 13px 0 0; padding: 16px 16px 15px; border: 1px solid #e6e4ee; background: #fff; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 12px; }
.progress-copy { display: contents; }
.progress-copy > span { font-size: 14px; font-weight: 740; line-height: 1.4; color: #26243c; }
.progress-copy > strong { font-size: 19px; font-weight: 760; color: #4424a8; grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.progress-detail { grid-row: 2; grid-column: 1; margin-top: 2px; font-size: 12px; font-weight: 450; line-height: 1.4; color: #858295; }
.progress-track { grid-row: 3; grid-column: 1/-1; margin-top: 12px; height: 5px; background: #ebecf1; overflow: hidden; }
.progress-track span { height: 100%; background: #23a15a; }
/* Essential scope and time controls, visually subordinated to the calendar. */
.wd-view-toolbar { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; margin-top: 11px; padding: 0 0 1px; background: #fff; border: 1px solid #e7e5ee; min-width: 0; }
.view-mode-switch, .task-scope-switch { display: flex; flex: 0 1 auto; width: auto; padding: 0 5px; min-width: 0; border: 0; gap: 0; box-shadow: none; background: #fff; }
.task-scope-switch { flex: 1 1 auto; justify-content: flex-end; }
.view-mode-button, .task-scope-button { width: auto; flex: 0 1 auto; min-height: 43px; padding: 9px 11px 8px; background: transparent !important; color: #777589; border: 0; border-bottom: 2px solid transparent; font-size: 12px; font-weight: 620; }
.view-mode-button.is-active, .task-scope-button.is-active { color: #4b20ad; border-bottom-color: #5429bf; font-weight: 750; box-shadow: none; }
.view-mode-button span { font-size: 12px; }
.task-scope-button[hidden] { display: none !important; }
.push-card, .employee-switcher { margin-top: 12px; border: 1px solid #e3e1ed; background: #fff; }
.employee-switcher { padding: 14px; }
.role-badge { background: #efeafb; color: #4f2bad; }
.manager-export-button { color: #5128b8; background: #fbfaff; border: 1px solid #dfd6f6; font-size: 12px; }
.push-button { background: #5128b8; }
/* Task area: typography + spacing create hierarchy; no heavy boxes. */
.tasks-section, .week-tasks-section { padding: 0 0 5px; margin-top: 14px; background: #fff; border: 1px solid #e5e4ed; }
.section-heading { margin: 0; padding: 12px 14px; border-bottom: 1px solid #eceaf2; background: #fff; min-height: 61px; align-items: center; }
.section-heading .eyebrow { display: none; }
.section-heading h2 { font-size: 16px; font-weight: 760; line-height: 1.3; letter-spacing: -.01em; color: #28253b; }
.add-button { min-height: 36px; padding: 7px 12px; font-size: 12px; font-weight: 700; background: #5128b8; color: #fff; }
.add-button span { font-size: 17px; }
.wd-group-heading { min-height: 42px; margin: 7px 0 0; padding: 9px 14px 7px; background: #fff; border: 0; border-bottom: 1px solid #edeaf2; gap: 8px; }
.wd-group-heading:first-child { margin-top: 0; }
.wd-group-heading strong { font-size: 14px; line-height: 1.3; font-weight: 760; color: #2d293d; }
.wd-group-icon { flex-basis: 20px; width: 20px; height: 20px; font-size: 16px; color: #da575e; }
.wd-group-heading--planned .wd-group-icon { color: #5e3bc7; }
.wd-group-heading--done .wd-group-icon { color: #209653; }
.wd-group-count { min-width: 20px; height: 20px; margin: 0 0 0 auto; padding: 0 5px; color: #66647b; font-size: 11px; font-weight: 700; background: #f3f2f8; }
.wd-redesign-ready .task-card, .wd-redesign-ready .task-card:focus-within { border: 0; border-bottom: 1px solid #eeeef3; border-left: 3px solid #ded9f1; background: #fff; margin: 0; }
.wd-redesign-ready .task-card[data-wd-status="in_progress"] { border-left-color: #7551d9; }
.wd-redesign-ready .task-card[data-wd-status="planned"] { border-left-color: #d1c8ed; }
.wd-redesign-ready .task-card[data-wd-status="done"] { border-left-color: #4cb47d; }
.wd-redesign-ready .task-card[data-wd-status="carried"] { border-left-color: #d9ab6c; }
.wd-redesign-ready .task-card[data-wd-status="not_done"] { border-left-color: #da6464; }
.wd-task-row { display: grid; grid-template-columns: 27px minmax(0,1fr) auto 20px; column-gap: 9px; align-items: center; min-height: 72px; padding: 10px 12px 10px 11px; }
.wd-task-check { width: 23px; height: 23px; border: 1.6px solid #a8a5b8; background: #fff; color: transparent; font-size: 16px; font-weight: 800; }
.wd-task-check[aria-pressed="true"] { background: #2eaa63; color: #fff; border-color: #2eaa63; }
.wd-task-name-button { align-self: center; }
.wd-task-name { display: block; font-size: 13.2px; font-weight: 660; line-height: 1.35; color: #29273b; letter-spacing: -.007em; }
.task-card.is-done .wd-task-name, .task-card[data-wd-status="done"] .wd-task-name { color: #8c8b99; text-decoration: line-through; text-decoration-thickness: 1px; }
.wd-task-meta { display: block; font-size: 11px; line-height: 1.3; margin-top: 4px; color: #8a8798; }
.wd-task-badge { max-width: 85px; padding: 4px 6px; font-size: 10px; font-weight: 600; line-height: 1.25; color: #5d42b4; background: #f1edfa; white-space: normal; text-align: center; }
.wd-task-badge[data-status="in_progress"] { background: #f1edfa; color: #5a38ac; }
.wd-task-badge[data-status="done"] { background: #edf7ef; color: #2a9251; }
.wd-task-badge[data-status="not_done"] { background: #fff1f2; color: #be3d50; }
.wd-task-badge[data-status="carried"] { background: #fff6ed; color: #af773c; }
.wd-task-scope { display: none !important; }
.wd-task-actions { padding: 0; width: 20px; font-size: 20px; line-height: 1.1; color: #9995a5; }
.wd-task-editor { padding: 13px 13px 16px; border-top: 1px solid #eeeaf3; background: #fafaff; }
.wd-task-editor .field input, .wd-task-editor .field select, .wd-task-editor .field textarea { border: 1px solid #d9d5e5; background: #fff; color: #292538; font-size: 14px; }
.wd-task-editor .field label, .wd-task-editor .field span { color: #58556b; font-size: 11.5px; font-weight: 650; }
.wd-task-editor .task-schedule-grid { gap: 10px; }
.wd-task-editor .task-number { background: #eee9fb; color: #5128b8; }
.wd-task-editor .remove-button { background: #fff0f1; color: #c93c50; }
.week-tasks-section { margin-top: 14px; }
.week-task-list { border: 0; padding: 0; }
.week-task-row { border-bottom: 1px solid #efedf4; }
.week-task-row.is-today { background: #f7f4fe; }
.empty-state { background: #fff; border: 0; padding: 26px 15px; }
/* Sticky controls stay accessible without consuming excessive vertical space. */
.action-bar { padding: 8px calc(14px + var(--safe-right)) 7px calc(14px + var(--safe-left)); border-top: 1px solid #e8e5ef; background: #fff; }
.action-bar__content { gap: 8px; }
.action-bar .button { min-height: 39px; padding: 9px 12px; font-size: 12px; font-weight: 730; }
.action-bar .button--secondary { border: 1px solid #dcd7e9; color: #4b4080; background: #fff; }
.action-bar .button--primary { background: #5128b8; color: #fff; }
.mobile-quick-nav { min-height: calc(60px + var(--safe-bottom)); border-top: 1px solid #e9e5ef; background: #fff; padding: 0 calc(14px + var(--safe-right)) var(--safe-bottom) calc(14px + var(--safe-left)); }
.quick-nav-button { min-height: 60px; border: 0; background: #fff; color: #8a8699; gap: 4px; padding: 6px 2px; font-size: 10.5px; font-weight: 640; }
.quick-nav-button svg { width: 22px; height: 22px; stroke-width: 1.9; }
.quick-nav-button.is-current { background: #f5f1fd; color: #4e26b2; }
.quick-nav-button--add { color: #4e26b2; background: #fff; }
.quick-nav-button--add:disabled { opacity: .45; }
.app-login { background: #4a20ad; }
.app-login__card, .confirm-modal, .tool-modal { border: 1px solid #e7e2f2; background: #fff; }
@media (max-width: 430px) {
  .app-main { padding-left: 11px; padding-right: 11px; }
  .week-card { margin-left: -11px; margin-right: -11px; padding-left: 11px; padding-right: 11px; }
  .wd-task-row { grid-template-columns: 26px minmax(0,1fr) 73px 19px; column-gap: 7px; padding: 10px 10px 10px 9px; }
  .wd-task-badge { max-width: 73px; padding: 4px 4px; font-size: 9.5px; }
  .wd-task-name { font-size: 12.7px; }
  .wd-group-heading strong { font-size: 13.5px; }
  .wd-view-toolbar { gap: 3px; }
  .view-mode-button, .task-scope-button { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 345px) {
  .app-header { padding-left: 12px; padding-right: 12px; }
  .brand-copy strong { font-size: 19px; }
  .brand-mark { flex-basis: 31px; width: 31px; }
  .brand-mark svg { width: 28px; }
  .user-avatar { flex-basis: 30px; width: 30px; height: 30px; }
  .week-navigation h2.display-date-title { font-size: 13.5px; }
  .week-day { min-height: 56px; }
  .week-day__number { font-size: 17px; }
  .wd-task-row { grid-template-columns: 24px minmax(0,1fr) 66px 18px; column-gap: 5px; }
  .wd-task-badge { max-width: 66px; font-size: 9px; }
  .wd-task-name { font-size: 12px; }
  .view-mode-button, .task-scope-button { padding-left: 5px; padding-right: 5px; font-size: 11px; }
  .wd-task-editor .task-schedule-grid { grid-template-columns: 1fr; }
}
@media (min-width: 681px) {
  .week-card { margin-inline: 0; border: 1px solid #e7e5ec; margin-top: 12px; }
  .app-main { gap: 0; }
}

/* 1.18.1: hide task-count indicators beneath weekday numbers. */
.week-day__result { display: none !important; }


/* Рабочий день v1.19.0: compact header, square date cells and manager-only Reports tab.
   This CSS changes layout only; user permissions and actions remain in app.js. */
.app-header {
    min-height: 52px;
    padding: 5px calc(12px + var(--safe-right)) 5px calc(12px + var(--safe-left));
    gap: 8px;
}
.brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
.brand-mark svg { width: 27px; height: 27px; }
.brand-copy strong { font-size: 18px; letter-spacing: -0.02em; line-height: 1.08; }
.brand-copy > span:not(.header-identity) { font-size: 10px; line-height: 1.15; }
.header-alerts { width: 28px; height: 32px; padding: 3px; }
.header-alerts svg { width: 21px; height: 21px; }
.user-avatar { width: 30px; height: 30px; flex-basis: 30px; font-size: 11px; }
.week-strip { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.week-day {
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    min-height: 0 !important;
    height: auto;
    width: 100%;
    padding: 2px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    border: 1px solid #e5e4ee;
    border-radius: 0 !important;
    background: #faf9fe;
}
.week-day:last-child { border-right: 1px solid #e5e4ee; }
.week-day__name { font-size: clamp(9px, 2.5vw, 11px); line-height: 1.1; letter-spacing: 0; }
.week-day__number { font-size: clamp(15px, 4.5vw, 19px); line-height: 1.1; }
.week-day__result { display: none !important; }
.week-day.is-selected { border-color: #5128b8; background: #5128b8; }
.week-day:focus-visible { outline: 2px solid #5128b8; outline-offset: -3px; }
.manager-reports-screen { display: flex; flex-direction: column; gap: 11px; width: 100%; padding: 18px 0 30px; min-width: 0; }
.manager-reports-screen[hidden] { display: none !important; }
.manager-reports-heading { padding: 2px 2px 7px; border-bottom: 1px solid #e7e5ee; }
.manager-reports-heading h2 { margin: 0; color: #242139; font-size: 20px; font-weight: 760; }
.manager-reports-heading p { margin: 5px 0 0; font-size: 12px; line-height: 1.4; color: #6d6b7d; }
.manager-reports-screen .employee-switcher { margin-top: 0; }
.rd-reports-active .app-main > :not(#managerReportsScreen) { display: none !important; }
.rd-reports-active #actionBar { display: none !important; }
.mobile-quick-nav.rd-has-reports { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick-nav-button--reports[hidden] { display: none !important; }
.quick-nav-button--reports.is-current { background: #f5f1fd; color: #4e26b2; }
@media (max-width: 375px) {
    .app-header { padding-left: 10px; padding-right: 10px; gap: 6px; }
    .brand-copy strong { font-size: 17px; }
    .week-strip { gap: 3px; }
    .week-day { gap: 1px; padding: 1px 0; }
    .week-day__name { font-size: 9px; }
    .week-day__number { font-size: 16px; }
    .mobile-quick-nav.rd-has-reports .quick-nav-button { font-size: 9.5px; padding-left: 0; padding-right: 0; }
    .mobile-quick-nav.rd-has-reports .quick-nav-button svg { width: 20px; height: 20px; }
}
/* iOS standalone mode can draw beneath the status bar. Keep the system inset there. */
@supports (-webkit-touch-callout: none) {
    @media (display-mode: standalone) {
        .app-header { padding-top: max(5px, var(--safe-top)); min-height: calc(52px + var(--safe-top)); }
    }
}
