/* Work overview. Scoped to #workOverview so the rest of the report keeps its styles. */
#workOverview {
  --wo-ink: #1b1916; --wo-honey: #ffb028; --wo-line: rgba(31, 35, 33, .1); --wo-muted: #6d726f; --wo-soft: #f6f5f1;
  --wo-done: #2f7d55; --wo-done-bg: #e5f3ea; --wo-doing: #3d68a8; --wo-doing-bg: #e7eef8;
  --wo-wait: #a86a00; --wo-wait-bg: #fdf0d6; --wo-warn: #b84b3d; --wo-warn-bg: #f8e4e0;
}
#workOverview .overview-verdict { margin: 4px 0 16px; font-size: 20px; font-weight: 650; letter-spacing: -.01em; }

#workOverview .overview-summary { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--wo-line); border-radius: 14px; overflow: hidden; }
#workOverview .overview-tile { padding: 18px 20px; border-right: 1px solid var(--wo-line); min-width: 0; }
#workOverview .overview-tile:last-child { border-right: 0; }
#workOverview .overview-tile small { display: block; font-size: 12px; color: var(--wo-muted); }
#workOverview .overview-tile strong { display: block; font-size: 30px; font-weight: 650; line-height: 1.2; margin: 6px 0 2px; letter-spacing: -.01em; }
#workOverview .overview-tile span { font-size: 12px; color: var(--wo-muted); }
#workOverview .overview-tile.is-main { background: var(--wo-ink); color: #fff; border-color: var(--wo-ink); }
#workOverview .overview-tile.is-main strong { color: var(--wo-honey); }
#workOverview .overview-tile.is-main small, #workOverview .overview-tile.is-main span { color: #cfc8b8; }
#workOverview .overview-workload { margin: 10px 2px 26px; font-size: 12px; color: var(--wo-muted); }

#workOverview .overview-section { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
#workOverview .overview-section h2 { margin: 0; font-size: 18px; }
#workOverview .overview-section small { font-size: 12px; color: var(--wo-muted); }

#workOverview .overview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
#workOverview .overview-card { background: #fff; border: 1px solid var(--wo-line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
#workOverview .overview-card:hover { border-color: rgba(31, 35, 33, .22); box-shadow: 0 8px 24px rgba(0, 0, 0, .05); }
#workOverview .overview-card header { display: flex; align-items: center; gap: 12px; }
#workOverview .overview-card header > div { min-width: 0; flex: 1; }
#workOverview .overview-card h3 { margin: 0; font-size: 16px; }
#workOverview .overview-card header small { color: var(--wo-muted); font-size: 12px; }
#workOverview .overview-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; }
#workOverview .overview-card.is-idle, #workOverview .overview-card.is-loading { opacity: .72; }
#workOverview .overview-empty { margin: 0; font-size: 13px; color: var(--wo-muted); background: var(--wo-soft); border-radius: 10px; padding: 12px; text-align: center; }
#workOverview .overview-card header .overview-badge { margin-left: auto; flex: none; }
#workOverview .overview-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
#workOverview .overview-badge.is-done { background: var(--wo-done-bg); color: var(--wo-done); }
#workOverview .overview-badge.is-talk { background: var(--wo-wait-bg); color: var(--wo-wait); }
#workOverview .overview-badge.is-warn { background: var(--wo-warn-bg); color: var(--wo-warn); }
#workOverview .overview-badge.is-idle { background: #eeeeec; color: #777; }
#workOverview .overview-badge.is-file { background: var(--wo-doing-bg); color: var(--wo-doing); }
#workOverview .overview-badge.is-auto { background: #efe9fb; color: #5b3fa8; }

#workOverview .overview-facts { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; }
#workOverview .overview-facts > div { background: var(--wo-soft); border-radius: 10px; padding: 9px 11px; min-width: 0; }
#workOverview .overview-facts > div.is-main { background: #fff3d9; }
#workOverview .overview-facts > div.is-main.is-zero { background: var(--wo-soft); }
#workOverview .overview-facts small, #workOverview .overview-facts i { display: block; font-size: 11px; font-style: normal; color: var(--wo-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#workOverview .overview-facts b { display: block; font-size: 18px; line-height: 1.35; }
#workOverview .overview-facts > div.is-main b { color: #8a5a00; font-size: 20px; }
#workOverview .overview-facts > div.is-main.is-zero b { color: var(--wo-muted); }

#workOverview .overview-did > small { font-size: 12px; color: var(--wo-muted); }
#workOverview .overview-deliveries { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#workOverview .overview-deliveries li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.55; }
#workOverview .overview-deliveries li .overview-badge { flex: none; margin-top: 1px; }
#workOverview .overview-deliveries li > span:nth-child(2) { flex: 1; min-width: 0; }
#workOverview .overview-deliveries time { flex: none; font-size: 11px; color: var(--wo-muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
#workOverview .overview-more { display: block; margin: 8px 0 0; font-size: 12px; color: var(--wo-muted); }
#workOverview .overview-analysis { border-left: 3px solid var(--wo-honey); padding: 2px 0 2px 10px; }
#workOverview .overview-analysis small { font-size: 11px; color: var(--wo-muted); }
#workOverview .overview-analysis p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; }
#workOverview .overview-analysis ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#workOverview .overview-analysis li { font-size: 13px; line-height: 1.5; }
#workOverview .overview-analysis li span { display: block; font-size: 12px; color: var(--wo-muted); }

#workOverview .work-status { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
#workOverview .work-status.completed { background: var(--wo-done-bg); color: var(--wo-done); }
#workOverview .work-status.progressed { background: var(--wo-doing-bg); color: var(--wo-doing); }
#workOverview .work-status.suggested { background: var(--wo-wait-bg); color: var(--wo-wait); }
#workOverview .work-status.failed { background: var(--wo-warn-bg); color: var(--wo-warn); }
#workOverview .overview-work { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#workOverview .overview-work li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
#workOverview .overview-work li .work-status { flex: none; }

#workOverview .overview-card footer { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--wo-line); display: flex; align-items: center; gap: 10px; }
#workOverview .overview-card footer small { flex: 1; font-size: 12px; color: var(--wo-muted); }
#workOverview .overview-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: #9a6500; cursor: pointer; flex: none; }
#workOverview .overview-link:hover { text-decoration: underline; }
#workOverview .overview-footnote { margin-top: 22px; font-size: 12px; color: var(--wo-muted); }
#workOverview .overview-footnote summary { cursor: pointer; }
#workOverview .overview-footnote p { margin: 6px 0 0; line-height: 1.7; }

@media (max-width: 820px) {
  #workOverview .overview-summary { grid-template-columns: repeat(2, 1fr); }
  #workOverview .overview-tile:nth-child(2) { border-right: 0; }
  #workOverview .overview-tile:nth-child(-n+2) { border-bottom: 1px solid var(--wo-line); }
  #workOverview .overview-tile strong { font-size: 24px; }
}
@media (max-width: 520px) {
  #workOverview .overview-grid { grid-template-columns: 1fr; }
  #workOverview .overview-section { flex-direction: column; gap: 2px; }
}

/* Report header: tabs on the left, reading status on the right, one line with a rule underneath. */
#reports .report-bar { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; border-bottom: 1px solid rgba(31, 35, 33, .12); }
#reports .report-bar .analysis-mode { display: flex; gap: 2px; padding: 0; margin: 0; border-radius: 0; background: none; }
#reports .report-bar .analysis-mode button { position: relative; min-height: 48px; padding: 10px 14px; white-space: nowrap; border-radius: 0; background: none; box-shadow: none; color: #64696b; font-size: 15px; }
#reports .report-bar .analysis-mode button:hover { color: #262a2c; }
#reports .report-bar .analysis-mode button[aria-pressed="true"] { background: none; box-shadow: none; color: #1b1916; font-weight: 700; }
#reports .report-bar .analysis-mode button[aria-pressed="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 2px; background: #1b1916; }
#reports .report-bar .analysis-mode button:focus-visible { outline: 2px solid #ffb028; outline-offset: -2px; border-radius: 8px; }
.wcr-card { display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; }
.wcr-status { position: relative; min-width: 0; }
.wcr-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 4px 10px 4px 12px; border: 1px solid rgba(31, 35, 33, .12); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: #1f2321; cursor: pointer; white-space: nowrap; }
.wcr-chip:hover { border-color: rgba(31, 35, 33, .28); }
.wcr-chip:focus-visible { outline: 2px solid #ffb028; outline-offset: 2px; }
.wcr-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #b9b6ad; }
.wcr-card.is-on .wcr-dot { background: #2f7d55; box-shadow: 0 0 0 3px #e5f3ea; }
.wcr-info { width: 14px; height: 14px; flex: none; fill: none; stroke: #8b8f8c; stroke-width: 1.4; stroke-linecap: round; }
.wcr-detail { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: 300px; padding: 10px 12px; border-radius: 10px; background: #1b1916; color: #f3efe6; font-size: 12px; line-height: 1.65; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.wcr-card.is-detail-open .wcr-detail { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .wcr-status:hover .wcr-detail { opacity: 1; visibility: visible; transform: none; } }
.wcr-note { font-size: 12px; color: #6d726f; white-space: nowrap; }
.wcr-card > .button { min-height: 32px; padding: 5px 14px; font-size: 13px; border-radius: 999px; flex: none; }
.wcr-link { flex: none; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 650; color: #9a6500; cursor: pointer; white-space: nowrap; }
.wcr-link:hover { text-decoration: underline; }
.wcr-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 24px 80px rgba(0, 0, 0, .25); }
.wcr-dialog:focus { outline: none; }
.wcr-dialog::backdrop { background: rgba(20, 18, 15, .45); }
.wcr-form { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.6; color: #1f2321; }
.wcr-form h3 { margin: 0 0 4px; font-size: 18px; }
.wcr-form ul, .wcr-form ol { margin: 0; padding-left: 20px; }
.wcr-form p { margin: 0; }
.wcr-lead { font-weight: 700; margin-top: 4px !important; }
.wcr-terms { background: #f6f5f1; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.wcr-terms summary { cursor: pointer; color: #9a6500; }
.wcr-terms h4 { margin: 10px 0 4px; font-size: 13px; }
.wcr-terms small { display: block; margin-top: 8px; color: #6d726f; }
/* Consent and delete options: one clickable row with a custom checkbox aligned to the first line of text. */
.wcr-dialog .wcr-accept { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; margin: 8px 0 0; padding: 12px 14px; border: 1px solid rgba(31, 35, 33, .16); border-radius: 12px; background: #fff; font-size: 14px; line-height: 22px; font-weight: 600; color: #1f2321; cursor: pointer; transition: border-color .15s, background .15s; }
.wcr-dialog .wcr-accept:hover { border-color: rgba(31, 35, 33, .32); }
.wcr-dialog .wcr-accept:has(input:checked) { border-color: #1b1916; background: #faf9f5; }
.wcr-dialog .wcr-accept > span { min-width: 0; }
.wcr-dialog .wcr-accept small { display: block; font-size: 12px; line-height: 18px; font-weight: 400; color: #6d726f; }
.wcr-dialog .wcr-accept input { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-content: center; width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; border: 1.5px solid #9a9e9b; border-radius: 6px; background: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.wcr-dialog .wcr-accept input::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); opacity: 0; transition: opacity .1s; }
.wcr-dialog .wcr-accept input:checked { background: #1b1916; border-color: #1b1916; }
.wcr-dialog .wcr-accept input:checked::after { opacity: 1; }
.wcr-dialog .wcr-accept input:focus-visible { outline: 2px solid #ffb028; outline-offset: 2px; }
.wcr-dialog .wcr-accept.is-danger:has(input:checked) { border-color: #b84b3d; background: #fdf3f1; }
.wcr-dialog .wcr-accept.is-danger input:checked { background: #b84b3d; border-color: #b84b3d; }
.wcr-hint { font-size: 12px; color: #6d726f; }
.wcr-error { color: #b84b3d; font-size: 13px; }
.wcr-error:empty { display: none; }
.wcr-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.wcr-dialog .button.wcr-danger, .wcr-dialog .button.wcr-danger:hover { background: #b84b3d; border-color: #b84b3d; color: #fff; }

/* My employees / Demo, and the demo banner. */
#workOverview .overview-demo-banner { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--wo-doing-bg); color: #24456f; font-size: 13px; }
#workOverview .overview-demo-banner.hidden { display: none; }
#workOverview .overview-demo-banner span { flex: 1; min-width: 0; }
#workOverview .overview-demo-banner .button { min-height: 34px; padding: 6px 14px; font-size: 13px; border-radius: 999px; flex: none; }

#workOverview .overview-tile.is-warn strong { color: var(--wo-warn); }
#workOverview .overview-tile.is-locked strong { color: #b9b6ad; }
#workOverview .overview-workload .overview-link { font-size: 12px; }

/* Cards open the day's details. */
#workOverview .overview-card.is-clickable { cursor: pointer; }
#workOverview .overview-card.is-clickable:focus-visible { outline: 2px solid var(--wo-honey); outline-offset: 2px; }
#workOverview .overview-presence { cursor: default; }
#workOverview .overview-presence:hover { border-color: var(--wo-line); box-shadow: none; }

/* Presence cards while reading is off. */
#workOverview .overview-facts-two { grid-template-columns: 1fr 1fr; }
#workOverview .overview-facts > div.is-locked b { color: #b9b6ad; }
#workOverview .overview-week small { display: block; font-size: 11px; color: var(--wo-muted); margin-bottom: 6px; }
#workOverview .overview-week ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
#workOverview .overview-week li { text-align: center; font-size: 11px; color: var(--wo-muted); white-space: nowrap; }
#workOverview .overview-week li b { display: block; height: 8px; border-radius: 4px; background: #e6e5e0; margin-bottom: 4px; }
#workOverview .overview-week li.is-on b { background: var(--wo-done); }
#workOverview .overview-week li.is-before b { background: transparent; border: 1px dashed #d8d6cf; height: 6px; }

#workOverview .overview-roster { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -6px 0 14px; font-size: 14px; color: var(--wo-muted); }
#workOverview .overview-roster b { color: #1f2321; font-weight: 650; margin-right: 4px; }
#workOverview .overview-roster .is-miss b { color: var(--wo-muted); }
#workOverview .overview-state { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 12px; border-radius: 10px; background: var(--wo-soft); font-size: 13px; color: var(--wo-muted); }
#workOverview .overview-state span { flex: 1; min-width: 0; }
#workOverview .overview-state.is-warn { background: var(--wo-warn-bg); color: var(--wo-warn); }
#workOverview .overview-state .overview-link { font-size: 12px; }
#workOverview .overview-update { margin: 12px 0 0; background: var(--wo-doing-bg); color: #24456f; }

/* Day drawer. */
.wo-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100%); height: 100%; max-height: none; border: 0; border-radius: 0; padding: 22px; background: #fff; color: #1f2321; box-shadow: -12px 0 40px rgba(0, 0, 0, .15); overflow: auto; font-size: 14px; line-height: 1.6; }
.wo-drawer[open] { display: flex; flex-direction: column; gap: 12px; animation: wo-slide .2s ease-out; }
.wo-drawer:focus { outline: none; }
.wo-drawer::backdrop { background: rgba(20, 18, 15, .35); }
@keyframes wo-slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.wo-drawer-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.wo-drawer-head > div { flex: 1; min-width: 0; }
.wo-drawer-head h3 { margin: 0; font-size: 18px; }
.wo-drawer-head small { color: #6d726f; font-size: 12px; }
.wo-drawer-head .button { min-height: 34px; padding: 6px 14px; font-size: 13px; border-radius: 999px; }
.wo-drawer-item { display: flex; align-items: flex-start; gap: 8px; border: 1px solid rgba(31, 35, 33, .12); border-radius: 12px; padding: 10px 12px; }
.wo-drawer-item.is-warn { border-color: rgba(184, 75, 61, .35); background: #fdf6f4; }
.wo-drawer-item b { flex: 1; min-width: 0; font-weight: 600; }
.wo-drawer-item time { flex: none; font-size: 11px; color: #6d726f; margin-top: 2px; font-variant-numeric: tabular-nums; }
.wo-drawer .overview-badge { display: inline-flex; flex: none; margin-top: 2px; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.wo-drawer .overview-badge.is-done { background: #e5f3ea; color: #2f7d55; }
.wo-drawer .overview-badge.is-warn { background: #f8e4e0; color: #b84b3d; }
.wo-drawer .overview-badge.is-file { background: #e7eef8; color: #3d68a8; }
.wo-drawer .overview-badge.is-auto { background: #efe9fb; color: #5b3fa8; }
.wo-drawer .overview-empty { margin: 0; font-size: 13px; color: #6d726f; background: #f6f5f1; border-radius: 10px; padding: 12px; text-align: center; }
.wo-drawer-chat, .wo-drawer-more { border: 1px solid rgba(31, 35, 33, .12); border-radius: 12px; padding: 12px; }
.wo-drawer-chat small, .wo-drawer-more small { display: block; color: #6d726f; font-size: 12px; margin-bottom: 4px; }
.wo-drawer-chat p { margin: 6px 0 0; font-size: 13px; color: #3d68a8; }
.wo-drawer-chat p.is-agent { color: #1f2321; }
.wo-drawer .overview-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: #9a6500; cursor: pointer; }
.wo-drawer .overview-link:hover { text-decoration: underline; }
/* Placed after the base rules above so the phone layout wins. */
@media (max-width: 520px) {
  #workOverview .overview-demo-banner { flex-wrap: wrap; }
  #workOverview .overview-demo-banner span { flex: 1 1 100%; order: 1; }
  #workOverview .overview-demo-banner .button { order: 2; }
}

/* Loading skeleton (shapes from skeleton.js / skeleton.css), laid out like the real page. */
#workOverview .overview-card.is-skeleton { cursor: default; }
#workOverview .overview-card.is-skeleton:hover { border-color: var(--wo-line); box-shadow: none; }
#workOverview .overview-card.is-skeleton footer { justify-content: space-between; }
#workOverview .overview-card.is-skeleton footer .sk { margin: 0; }
#workOverview .overview-skeleton .overview-summary { margin-bottom: 26px; }
#workOverview .overview-skeleton .overview-section { margin-bottom: 14px; }
#workOverview .overview-skeleton .overview-section .sk { height: 16px; }

/* Overview toolbar: whose data on the left, the day on the right; light, not a card. */
#workOverview .overview-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
/* Higher specificity than the app's global label rule (column layout, 12px). */

/* When the content area is too narrow for both (tablets, narrow windows with the
   sidebar, phones): tabs share the full width and the reading status sits under them.
   Four tabs plus the status need about 720px beside the sidebar, hence 1100. */
@media (max-width: 1100px) {
  #reports .report-bar { flex-direction: column; align-items: stretch; gap: 10px; border-bottom: 0; }
  #reports .report-bar .analysis-mode { width: 100%; border-bottom: 1px solid rgba(31, 35, 33, .12); }
  #reports .report-bar .analysis-mode button { flex: 1 1 0; padding: 10px 6px; font-size: 15px; }
  #reports .report-bar .analysis-mode button[aria-pressed="true"]::after { left: 18%; right: 18%; }
  /* The status row spans the width: state on the left, actions on the right. */
  .wcr-card { margin-left: 0; }
  .wcr-status { margin-right: auto; }
  .wcr-detail { left: 0; right: auto; }
}
/* Phones: bigger touch targets; the explanation opens under the status instead of floating. */
@media (max-width: 720px) {
  .wcr-card { flex-wrap: wrap; }
  /* The pill and the buttons stay on one row; the explanation opens as a full-width row under them. */
  .wcr-status { display: contents; }
  .wcr-chip { margin-right: auto; }
  .wcr-detail { position: static; order: 9; flex: 1 1 100%; width: auto; display: none; transform: none; transition: none; }
  .wcr-card.is-detail-open .wcr-detail { display: block; }
  .wcr-card > .button { min-height: 40px; padding-inline: 16px; }
  .wcr-chip { min-height: 40px; }
}

/* Reading off: one prominent card that says what is missing and how to get it. */
#workOverview .overview-unlock { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, #fff8e8 0%, #fff 70%); border: 1px solid #f0d9a6; }
#workOverview .overview-unlock-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: #1b1916; color: #ffb028; }
#workOverview .overview-unlock-icon svg, #workOverview .overview-unlock-go svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#workOverview .overview-unlock-copy { flex: 1; min-width: 0; }
#workOverview .overview-unlock-copy h3 { margin: 0 0 4px; font-size: 17px; }
#workOverview .overview-unlock-copy p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--wo-muted); }
#workOverview .overview-unlock-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
#workOverview .overview-unlock-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; font-size: 15px; box-shadow: 0 6px 18px rgba(27, 25, 22, .18); }
#workOverview .overview-unlock-go svg { width: 18px; height: 18px; color: #ffb028; }
#workOverview .overview-unlock-note { font-size: 13px; color: var(--wo-muted); text-align: center; max-width: 180px; }
@media (max-width: 720px) {
  #workOverview .overview-unlock { flex-wrap: wrap; align-items: flex-start; }
  #workOverview .overview-unlock-copy { flex-basis: calc(100% - 64px); }
  #workOverview .overview-unlock-actions { flex-basis: 100%; flex-direction: row; justify-content: space-between; }
  #workOverview .overview-unlock-go { flex: 1; justify-content: center; }
}

/* Header: a visible 开启读取 button, and a calm pulse on the shield while reading is on. */
.wcr-card > .button.wcr-go { display: inline-flex; align-items: center; gap: 6px; padding-inline: 14px 16px; box-shadow: 0 4px 12px rgba(27, 25, 22, .18); }
.wcr-go svg { width: 16px; height: 16px; fill: none; stroke: #ffb028; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wcr-card.is-on .wcr-chip { position: relative; overflow: hidden; min-height: 36px; padding-left: 8px; border-color: #9fcdb1; background: #eef8f1; color: #1f4d33; box-shadow: 0 0 0 3px rgba(47, 125, 85, .08); }
.wcr-shield { position: relative; display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: #2f7d55; color: #fff; }
.wcr-shield svg { position: relative; z-index: 1; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wcr-shield::before, .wcr-shield::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(47, 125, 85, .55); animation: wcr-pulse 2.4s ease-out infinite; }
.wcr-shield::after { animation-delay: 1.2s; }
@keyframes wcr-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wcr-shield::before, .wcr-shield::after { animation: none; opacity: 0; } }

/* Phones: a shorter status label keeps the pill, the button and the terms on one row. */
.wcr-label-short { display: none; }
@media (max-width: 720px) { .wcr-label-long { display: none; } .wcr-label-short { display: inline; } }

/* Check-ins: what the employee did today by kind, counts only. */
#workOverview .overview-did-kinds { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
#workOverview .overview-did-kinds small { flex: none; font-size: 11px; color: var(--wo-muted); }
#workOverview .overview-did-kinds span { font-weight: 600; color: #1f2321; }
/* Phones: the header button drops its icon (the unlock card below carries the big one) so the
   status, the button and the terms stay on one row. */
@media (max-width: 720px) { .wcr-card { gap: 8px; } .wcr-card > .button.wcr-go svg { display: none; } .wcr-card > .button.wcr-go { padding-inline: 14px; } }

/* An employee without records: same card shape, numbers muted. */
#workOverview .overview-facts > div.is-zero b { color: var(--wo-muted); }
#workOverview .overview-card.is-idle:not(.overview-presence) { opacity: 1; }
#workOverview .overview-card.is-idle:not(.overview-presence) header h3, #workOverview .overview-card.is-idle:not(.overview-presence) .overview-avatar { opacity: .8; }


/* Summary: one sentence, the main number against the period before, and the days as bars. */
#workOverview .overview-hero { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 28px; align-items: center; margin: 0 0 14px; padding: 20px 22px 16px; border: 1px solid var(--wo-line); border-radius: 16px; background: #fff; }
#workOverview .overview-hero.is-single { grid-template-columns: 1fr; }
#workOverview .overview-lead { margin: 0 0 10px; font-size: 16px; font-weight: 650; line-height: 1.55; }
#workOverview .overview-lead em { font-style: normal; color: var(--wo-warn); }
#workOverview .overview-big small { display: block; font-size: 12px; color: var(--wo-muted); }
#workOverview .overview-big strong { display: inline-block; margin-right: 10px; font-size: 44px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#workOverview .overview-big strong u { margin-left: 4px; font-size: 20px; font-weight: 600; text-decoration: none; }
#workOverview .overview-delta { font-size: 13px; font-weight: 700; color: var(--wo-muted); }
#workOverview .overview-delta.is-up { color: var(--wo-done); } #workOverview .overview-delta.is-down { color: var(--wo-warn); }
#workOverview .overview-delta-note { font-size: 12px; color: var(--wo-muted); }
#workOverview .overview-def { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--wo-muted); }
#workOverview .overview-minor { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--wo-line); font-size: 12px; color: var(--wo-muted); }
#workOverview .overview-minor b { color: #1f2321; font-weight: 650; }
#workOverview .overview-trend > small { display: block; margin-bottom: 6px; font-size: 12px; color: var(--wo-muted); }
#workOverview .overview-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
#workOverview .overview-chart-axis { display: flex; flex-direction: column; justify-content: space-between; height: 150px; font-size: 11px; color: var(--wo-muted); text-align: right; font-variant-numeric: tabular-nums; transform: translateY(-6px); }
#workOverview .overview-chart ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; background: repeating-linear-gradient(to bottom, transparent 0 calc(25% - 1px), rgba(31, 35, 33, .07) calc(25% - 1px) 25%) top / 100% 150px no-repeat; }
#workOverview .overview-chart li { min-width: 0; text-align: center; }
#workOverview .overview-chart li > i { display: block; height: 16px; margin-top: 4px; font-size: 11px; font-style: normal; color: var(--wo-muted); white-space: nowrap; }
#workOverview .overview-chart button { position: relative; display: block; width: 100%; height: 150px; padding: 0; border: 0; background: none; cursor: pointer; }
#workOverview .overview-chart-bar { display: flex; align-items: flex-end; justify-content: center; height: 100%; }
#workOverview .overview-chart-bar b { display: block; width: min(100%, 44px); min-height: 2px; border-radius: 4px 4px 0 0; background: #f0a52a; transition: background .12s; }
#workOverview .overview-chart button:hover .overview-chart-bar b, #workOverview .overview-chart button:focus-visible .overview-chart-bar b { background: #c27a00; }
#workOverview .overview-chart button:focus-visible { outline: 2px solid var(--wo-honey); outline-offset: 2px; border-radius: 4px; }
#workOverview .overview-chart-tip { position: absolute; left: 50%; bottom: calc(100% - 8px); z-index: 5; width: max-content; max-width: 220px; padding: 8px 11px; border-radius: 10px; background: #1b1916; color: #fff; font-size: 12px; line-height: 1.55; text-align: left; pointer-events: none; opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: opacity .12s, transform .12s; }
#workOverview .overview-chart-tip b { display: block; } #workOverview .overview-chart-tip em { display: block; margin-top: 4px; font-style: normal; color: #cfc8b8; }
#workOverview .overview-chart li:first-child .overview-chart-tip { left: 0; transform: translate(0, 4px); }
#workOverview .overview-chart li:last-child .overview-chart-tip { left: auto; right: 0; transform: translate(0, 4px); }
#workOverview .overview-chart button:hover .overview-chart-tip, #workOverview .overview-chart button:focus-visible .overview-chart-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
#workOverview .overview-chart li:first-child button:hover .overview-chart-tip, #workOverview .overview-chart li:last-child button:hover .overview-chart-tip,
#workOverview .overview-chart li:first-child button:focus-visible .overview-chart-tip, #workOverview .overview-chart li:last-child button:focus-visible .overview-chart-tip { transform: none; }

/* A computer that was not connected, and what needs the manager. */
#workOverview .overview-gap { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: var(--wo-soft); font-size: 12px; line-height: 1.6; color: #5d605e; }
#workOverview .overview-gap svg { flex: none; width: 15px; height: 15px; margin-top: 2px; fill: none; stroke: #8a8d8a; stroke-width: 1.6; stroke-linecap: round; }
#workOverview .overview-attention { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: flex-start; margin: 0 0 18px; padding: 12px 16px; border: 1px solid rgba(184, 75, 61, .25); border-radius: 12px; background: var(--wo-warn-bg); font-size: 13px; }
#workOverview .overview-attention > div { flex: none; width: 150px; }
#workOverview .overview-attention > div b { display: block; color: var(--wo-warn); }
#workOverview .overview-attention > div small { font-size: 12px; color: #8a5048; }
#workOverview .overview-attention ul { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#workOverview .overview-attention li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
#workOverview .overview-attention li em { font-style: normal; font-weight: 650; }
#workOverview .overview-attention li span { flex: 1; min-width: 0; }
#workOverview .overview-attention li time { font-size: 12px; color: #8a5048; font-variant-numeric: tabular-nums; }
#workOverview .overview-attention .overview-link { font-size: 12px; }
#workOverview .overview-attention-more { flex-basis: 100%; padding-left: 166px; font-size: 12px; color: #8a5048; }

/* One bar per day on a card, styled like the 7-day strip it extends. */
#workOverview .overview-days small { display: block; margin-bottom: 6px; font-size: 11px; color: var(--wo-muted); }
#workOverview .overview-days ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#workOverview .overview-days ol.is-dense { gap: 2px; }
#workOverview .overview-days li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#workOverview .overview-days li[role="button"] { cursor: pointer; }
#workOverview .overview-days li[role="button"]:focus-visible { outline: 2px solid var(--wo-honey); outline-offset: 2px; border-radius: 4px; }
#workOverview .overview-days li > span { display: flex; align-items: flex-end; height: 40px; border-bottom: 1px solid #e6e5e0; }
#workOverview .overview-days li b { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--wo-done); }
#workOverview .overview-days li[role="button"]:hover b { background: #246843; }
#workOverview .overview-days li.is-zero b { height: 3px !important; border-radius: 2px; background: #e6e5e0; }
#workOverview .overview-days li.is-before > span { border-bottom-style: dashed; border-bottom-color: #d8d6cf; }
#workOverview .overview-days li i { font-size: 11px; font-style: normal; text-align: center; color: var(--wo-muted); white-space: nowrap; }
#workOverview .overview-days-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--wo-muted); }

/* Only the links open details; the card itself does not react, so scrolling or selecting
   text never opens anything. The link gets a comfortable hit area. */
#workOverview .overview-card:hover { border-color: var(--wo-line); box-shadow: none; }
#workOverview .overview-card footer .overview-link { padding: 8px 0 8px 12px; margin: -8px 0; }

@media (max-width: 960px) {
  #workOverview .overview-hero { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 720px) {
  #workOverview .overview-hero { padding: 16px 16px 12px; }
  #workOverview .overview-big strong { font-size: 36px; }
  #workOverview .overview-attention > div { width: auto; flex-basis: 100%; }
  #workOverview .overview-attention-more { padding-left: 0; }
  #workOverview .overview-attention li span { flex-basis: 100%; order: 2; }
  #workOverview .overview-attention li time { order: 3; }
  #workOverview .overview-attention li .overview-link { order: 4; margin-left: auto; }
  #workOverview .overview-card footer .overview-link { padding: 12px 0 12px 16px; margin: -12px 0; }
}

/* A quiet way into the AI report, under what needs the manager. */
#workOverview .overview-ask-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: -6px 0 18px; padding: 10px 14px; border: 1px dashed #e0c58a; border-radius: 12px; background: #fffaf0; font-size: 13px; color: #6b5418; }
#workOverview .overview-ask-ai span { flex: 1 1 260px; }
#workOverview .overview-body { transition: opacity .15s; }
#workOverview .overview-body.is-stepping { opacity: .45; pointer-events: none; }
