body { margin: 0; }

/* ---------- Login ---------- */
.auth-page {
  min-height: 100vh; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center;
  background: #f1f5f8; padding-bottom: 3rem;
}
.auth-page[hidden] { display: none; }
.auth-hero {
  align-self: stretch; box-sizing: border-box;
  padding: 1.5rem 2rem 9rem;
  color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px),
    linear-gradient(160deg, #0b5a7d 0%, #00364d 55%, #002538 100%);
}
.auth-brand { display: flex; align-items: center; font-size: .9rem; font-weight: 500; letter-spacing: .02em; }
.auth-hero-text { text-align: center; margin-top: 3.5rem; }
.auth-page .auth-hero-text h1 { color: #fff; font-size: 1.9rem; line-height: 1.2; font-weight: 400; margin: 0; }
.auth-page .auth-hero-text p { color: rgba(255,255,255,.8); margin: .75rem 0 0; font-size: .8rem; }

.auth-card {
  width: calc(100% - 2rem); max-width: 25rem; box-sizing: border-box;
  margin-top: -6rem; padding: 1.75rem 2rem 1.5rem;
  background: #fff; border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,37,56,.08), 0 16px 40px rgba(0,37,56,.18);
}
.auth-card .auth-title { margin: 0; font-size: 1.25rem; line-height: 1.3; font-weight: 500; }
.auth-card .auth-sub { margin: .25rem 0 .5rem; color: #6a7178; font-size: .7rem; }
.auth-card .auth-label { display: block; font-size: .65rem; font-weight: 600; color: #313131; margin: 1rem 0 .35rem; }
.auth-field {
  position: relative; display: flex; align-items: center;
  border: 1px solid #c5cdd3; border-radius: 6px; background: #fafbfc;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-field:focus-within { border-color: #0072a3; background: #fff; box-shadow: 0 0 0 3px rgba(0,114,163,.15); }
.auth-field input {
  flex: 1; min-width: 0; height: 2.4rem; padding: 0 .75rem 0 2.4rem;
  border: 0; outline: 0; background: transparent; font: inherit; font-size: .75rem; color: #21333b;
}
.auth-field input::placeholder { color: #9aa3a9; }
.auth-icon { position: absolute; left: .75rem; width: 18px; height: 18px; color: #6a7178; pointer-events: none; }
.auth-eye {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
  border: 0; background: none; color: #6a7178; cursor: pointer; border-radius: 0 6px 6px 0;
}
.auth-eye svg { width: 18px; height: 18px; }
.auth-eye:hover, .auth-eye.on { color: #0072a3; }
.auth-card .alert { margin: 1rem 0 0; }
.auth-card .auth-submit { width: 100%; max-width: none; height: 2.4rem; margin: 1.5rem 0 0 !important; font-size: .7rem; }
.auth-card .auth-hint { text-align: center; margin: 1rem 0 0; font-size: .6rem; color: #6a7178; }

@media (max-width: 600px) {
  .auth-hero { padding: 1rem 1rem 8rem; }
  .auth-hero-text { margin-top: 2rem; }
  .auth-hero-text h1 { font-size: 1.4rem; }
  .auth-card { padding: 1.5rem 1.25rem 1.25rem; }
}

/* ---------- Header ---------- */
.logo-badge {
  display: inline-grid; place-items: center;
  width: 1.6rem; height: 1.6rem; margin-right: .6rem;
  border-radius: 6px; background: #49afd9; color: #002538;
  font-weight: 700; font-size: .95rem;
}
.header .branding .nav-link { display: flex; align-items: center; }
/* Clarity caps the branding width and clips it – let the name show in full */
.main-container .header .branding { max-width: none; overflow: visible; }
.main-container .header .branding .nav-link, .main-container .header .branding .title { overflow: visible; white-space: nowrap; }
.header-actions { align-items: center; padding-right: .75rem; }
/* Remove Clarity divider before the menu */
.header .header-actions > .dropdown > .dropdown-toggle::before { display: none !important; }

.user-menu { position: relative; display: flex; align-items: center; height: 100%; }
.header .header-actions > .dropdown > .dropdown-toggle.user-toggle {
  display: flex; align-items: center; gap: .55rem;
  height: 2.25rem; padding: 0 .6rem 0 .25rem; margin: 0;
  border: 0; border-radius: 999px; background: transparent; color: #fafafa; cursor: pointer;
  transition: background .15s;
}
.header .header-actions > .dropdown > .dropdown-toggle.user-toggle:hover,
.user-menu.open .user-toggle { background: rgba(255,255,255,.12) !important; }
.user-toggle .caret { width: 14px; height: 14px; transition: transform .15s; }
.user-menu.open .user-toggle .caret { transform: rotate(180deg); }
.user-toggle-name { font-size: .7rem; }
.avatar {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: #49afd9; color: #002538; font-weight: 600; font-size: .6rem;
}
.avatar-lg { width: 2.4rem; height: 2.4rem; font-size: .75rem; }

.header .header-actions > .dropdown .dropdown-menu.user-dropdown {
  position: absolute; top: calc(100% - .25rem); right: 0; left: auto;
  margin: 0; padding: .4rem; min-width: 15rem;
  border: 1px solid #dde3e7; border-radius: 8px; background: #fff;
  box-shadow: 0 10px 30px rgba(0,37,56,.18);
}
.user-menu:not(.open) .user-dropdown { display: none !important; }
.user-menu.open .user-dropdown { display: block !important; }
.ud-head { display: flex; align-items: center; gap: .7rem; padding: .5rem .5rem .6rem; }
.ud-info { min-width: 0; }
.ud-name { font-weight: 600; font-size: .75rem; color: #21333b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ud-sub { font-size: .6rem; color: #6a7178; margin-top: .1rem; }
.ud-divider { height: 1px; background: #e3e8ec; margin: .2rem -.4rem .3rem; }
.ud-item {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .5rem; border: 0; border-radius: 5px; background: none;
  font: inherit; font-size: .7rem; color: #21333b; text-align: left; cursor: pointer;
}
.ud-item svg { width: 16px; height: 16px; color: #6a7178; }
.ud-item:hover, .ud-item:focus-visible { background: #eef4f7; outline: none; }
#logoutBtn:hover { color: #c21d00; }
#logoutBtn:hover svg { color: #c21d00; }

/* ---------- Side navigation ---------- */
.clr-vertical-nav { width: 12rem; flex: 0 0 12rem; }
.clr-vertical-nav .nav-link { display: flex; align-items: center; gap: .6rem; }
.clr-vertical-nav .nav-icon { width: 18px; height: 18px; flex: 0 0 18px; }

/* ---------- Content ---------- */
.content-area { padding: 1.5rem 2rem 3rem !important; }
.page { max-width: 1100px; }
.page-title { margin: 0; display: flex; align-items: center; gap: .75rem; }
#page-overview .page-title { display: block; }
.page-sub { margin: .25rem 0 1.25rem; color: #565656; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head .page-sub { margin-bottom: 0; }

.card { margin-top: 0; margin-bottom: 1rem; }
.card-header-flex { display: flex; justify-content: space-between; align-items: center; }
.card-header-flex { gap: .75rem; }
.card-header-flex > span { min-width: 0; }
.card-header-flex .btn { margin: 0; flex: 0 0 auto; }
.card-icon { width: 18px; height: 18px; vertical-align: -3px; margin-right: .5rem; color: #0072a3; }
.btn-icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: .35rem; }

.facts { display: grid; grid-template-columns: 9rem 1fr; gap: .75rem 1rem; margin: 0; }
.facts dt { color: #565656; }
.facts dd { margin: 0; font-weight: 500; }
.service-cell { min-width: 0; }
.service-progress { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; flex-wrap: wrap; }
.service-track { flex: 1 1 8rem; max-width: 14rem; height: 6px; border-radius: 3px; background: #e3e8ec; overflow: hidden; }
.service-fill { display: block; height: 100%; border-radius: 3px; background: #0072a3; transition: width .4s ease; }
.service-text { font-size: .6rem; font-weight: 400; color: #6a7178; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.modal-body .field-pair .clr-form-control:first-child { margin-top: .9rem; }
@media (max-width: 600px) { .field-pair { grid-template-columns: 1fr; } }
.secret-cell { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.secret-value { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.secret-value.masked { letter-spacing: .15em; }
.secret-eye {
  display: grid; place-items: center; flex: 0 0 auto; width: 1.5rem; height: 1.5rem; padding: 0;
  border: 0; border-radius: 4px; background: none; color: #6a7178; cursor: pointer;
}
.secret-eye svg { width: 16px; height: 16px; }
.secret-eye:hover, .secret-eye.on { color: #0072a3; background: #eef4f7; }
.secret-input { position: relative; }
.secret-input .clr-input { padding-right: 2rem; }
.secret-input .secret-eye { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.secret-note { margin: 1.25rem 0 0; padding-top: .9rem; border-top: 1px solid #e3e8ec; font-size: .6rem; color: #6a7178; }

.stat-card .stat-label { color: #565656; font-size: .7rem; }
.stat-value { font-size: 1.15rem; font-weight: 500; margin-top: .4rem; color: #00364d; }
.stat-sub { margin-top: .25rem; font-size: .65rem; color: #6a7178; font-variant-numeric: tabular-nums; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { margin-top: 0; }
.table td { vertical-align: middle; }
.cooking-plan tr.me td { background: #e1f1f6; }
.cooking-plan tr.me td:first-child { box-shadow: inset 4px 0 0 #0072a3; font-weight: 600; }
.cooking-plan select { min-width: 12rem; }
.users .btn { margin: 0 .25rem 0 0; }
.users .actions-cell { white-space: nowrap; }
.muted { color: #8c8c8c; }

/* ---------- Week overview card ---------- */
.viz-card { height: calc(100% - 1rem); }
.viz-card .card-block { padding: 1rem 1.25rem 1.25rem; }
.viz-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.viz-card .viz-title { margin: 0; font-size: .85rem; font-weight: 600; line-height: 1.4; }
.viz-meta { color: #6a7178; font-size: .65rem; }
.viz-week-number { white-space: nowrap; color: #6a7178; font-weight: 400; font-size: .7rem; margin-left: .35rem; }
.viz-footer { display: flex; justify-content: flex-end; padding: .35rem .75rem; }
.card .viz-footer .viz-cta {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0;
  color: #0072a3; text-decoration: none;
}
.card .viz-footer .viz-cta:visited { color: #0072a3; }
.viz-cta-icon { width: 16px; height: 16px; }
.viz-cta-arrow { width: 14px; height: 14px; transition: transform .15s ease; }
.card .viz-footer .viz-cta:hover { color: #004d8a; background: #eef4f7; }
.viz-cta:hover .viz-cta-arrow, .viz-cta:focus-visible .viz-cta-arrow { transform: translateX(3px); }

.coverage { display: flex; gap: 2px; margin: .6rem 0 1rem; }
.coverage .seg { flex: 1; height: 6px; background: #e3e8ec; }
.coverage .seg:first-child { border-radius: 3px 0 0 3px; }
.coverage .seg:last-child { border-radius: 0 3px 3px 0; }
.coverage .seg.on { background: #79c6e6; }
.coverage .seg.me { background: #0072a3; }

.week-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.week-strip .day {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: .8rem .25rem .7rem; border-radius: 8px; border: 1px solid #e3e8ec; background: #fafbfc;
  transition: transform .15s, box-shadow .15s;
}
.week-strip .day:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,37,56,.1); }
.week-strip .day.past { opacity: .6; }
.week-strip .day.today { border-color: #0072a3; box-shadow: 0 0 0 1px #0072a3; }
.week-strip .day.me { background: #e1f1f6; border-color: #9fd3ea; }
.week-strip .day.me.today { border-color: #0072a3; }
.day-name { font-weight: 600; font-size: .7rem; color: #21333b; }
.day-date { font-size: .6rem; color: #6a7178; }
.day-time { font-size: .55rem; font-weight: 600; color: #0072a3; text-align: center; line-height: 1.25; font-variant-numeric: tabular-nums; }
.time-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.day-avatar {
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin: .45rem 0 .3rem;
  border-radius: 50%; font-size: .65rem; font-weight: 600;
  background: #fff; color: #6a7178; border: 2px dashed #c5cdd3;
}
.day.on .day-avatar { background: #fff; color: #00364d; border: 2px solid #79c6e6; }
.day.me .day-avatar { background: #0072a3; color: #fff; border: 2px solid #0072a3; }
.day-who { font-size: .62rem; color: #21333b; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day.open .day-who { color: #9aa3a9; font-style: italic; }
.today-tag {
  position: absolute; top: -.55rem; left: 50%; transform: translateX(-50%);
  padding: 0 .4rem; border-radius: 999px; background: #0072a3; color: #fff;
  font-size: .5rem; font-weight: 600; line-height: 1.1rem; text-transform: uppercase; letter-spacing: .04em;
}

@media (max-width: 600px) {
  .week-strip { gap: .3rem; }
  .day-avatar { width: 1.8rem; height: 1.8rem; }
  .day-who { font-size: .55rem; }
}

/* ---------- Dialogs ---------- */
/* Never taller than the screen: header + buttons stay fixed, only the fields scroll */
.modal .modal-dialog { max-height: 100%; display: flex; }
.modal .modal-content { display: flex; flex-direction: column; max-height: 100%; min-height: 0; width: 100%; box-sizing: border-box; }
.modal .modal-header--accessible, .modal .modal-footer, #modalError { flex: 0 0 auto; }
.modal .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 768px) {
  .modal { padding: .75rem !important; padding-top: calc(.75rem + env(safe-area-inset-top, 0px)) !important; padding-bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)) !important; }
  .modal .modal-dialog { width: 100%; max-width: 100%; }
}
.modal .modal-header--accessible .close {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin: -.5rem -.5rem 0 .5rem;
  border-radius: 6px; font-size: 1.4rem; line-height: 1;
}
.modal .modal-header--accessible .close:hover { background: #eef4f7; }
.modal-body .clr-form-control { margin-top: .9rem; }
.modal-body .clr-form-control:first-child { margin-top: 0; }
.modal-body .clr-input, .modal-body .clr-select { width: 100%; }
.modal-body .clr-input-wrapper, .modal-body .clr-select-wrapper { width: 100%; max-width: none; }
#modalError { margin: 0 1rem; }
.pw-box {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem;
  padding: .6rem .8rem; margin-top: .6rem; border-radius: 4px;
  background: #f4f4f4; border: 1px solid #ccc; user-select: all; word-break: break-all;
}

#globalAlert { margin: -1.5rem -2rem 1.25rem; }

/* ---------- Mobile bottom sheet ---------- */
.sheet-fab, .sheet-backdrop, .nav-sheet { display: none; }

@media (max-width: 768px) {
  .clr-vertical-nav { display: none !important; }
  .user-toggle-name, .user-toggle .caret { display: none; }
  .header .branding { min-width: 0; width: auto; max-width: none; flex: 1 1 auto; padding-right: .5rem; }
  .header .branding .title { white-space: nowrap; }
  /* 100vh is taller than the visible area while the phone's address bar is shown – use the dynamic height */
  .main-container { height: 100vh; height: 100dvh; }
  .content-area { padding: 1rem 1rem calc(6rem + env(safe-area-inset-bottom, 0px)) !important; }

  .sheet-fab {
    display: inline-flex; align-items: center; gap: .5rem;
    position: fixed; z-index: 1030; left: 50%; transform: translateX(-50%);
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    height: 2.6rem; padding: 0 1.2rem 0 1rem; border: 0; border-radius: 999px;
    background: #00364d; color: #fff; font: inherit; font-size: .7rem; font-weight: 600; letter-spacing: .02em;
    box-shadow: 0 6px 20px rgba(0,37,56,.35); cursor: pointer;
    transition: transform .15s, background .15s;
  }
  .sheet-fab svg { width: 18px; height: 18px; }
  .sheet-fab:active { transform: translateX(-50%) scale(.96); }
  .sheet-locked .sheet-fab { opacity: 0; pointer-events: none; }

  .sheet-backdrop {
    display: block; position: fixed; inset: 0; z-index: 1035;
    background: rgba(0,25,38,.45); opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .sheet-backdrop.open { opacity: 1; pointer-events: auto; }

  .nav-sheet {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
    max-height: 85vh; overflow-y: auto; box-sizing: border-box;
    padding: 0 .75rem calc(1rem + env(safe-area-inset-bottom, 0px));
    background: #fff; border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 30px rgba(0,37,56,.2);
    transform: translateY(105%); visibility: hidden;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), visibility 0s linear .25s;
  }
  .nav-sheet.open { transform: translateY(0); visibility: visible; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
  .sheet-grip { display: flex; justify-content: center; padding: .6rem 0 .4rem; }
  .sheet-grip span { width: 2.4rem; height: 4px; border-radius: 2px; background: #c5cdd3; }
  .sheet-user { display: flex; align-items: center; gap: .7rem; padding: .4rem .5rem .8rem; border-bottom: 1px solid #e3e8ec; margin-bottom: .4rem; }
  .sheet-nav { display: flex; flex-direction: column; }
  .sheet-item {
    display: flex; align-items: center; gap: .8rem; width: 100%; box-sizing: border-box;
    min-height: 2.75rem; padding: 0 .75rem; border: 0; border-radius: 8px; background: none;
    font: inherit; font-size: .8rem; color: #21333b; text-align: left; text-decoration: none; cursor: pointer;
  }
  .sheet-item:visited { color: #21333b; }
  .sheet-item svg { width: 20px; height: 20px; color: #6a7178; flex: 0 0 auto; }
  .sheet-item:hover, .sheet-item:focus-visible { background: #eef4f7; outline: none; text-decoration: none; }
  .sheet-item.active { background: #e1f1f6; color: #00364d; font-weight: 600; }
  .sheet-item.active svg { color: #0072a3; }
  .sheet-danger, .sheet-danger:visited { color: #c21d00; }
  .sheet-danger svg { color: #c21d00; }
  .sheet-divider { height: 1px; background: #e3e8ec; margin: .4rem 0; }
  .sheet-item[hidden] { display: none; }
  #globalAlert { margin: -1rem -1rem 1rem; }
  .facts { grid-template-columns: 1fr; gap: .2rem; }
  .facts dd { margin-bottom: .6rem; }
}

/* ---------- Phones: fixes found by the Playwright layout test ---------- */
@media (max-width: 768px) {
  .page-title { font-size: clamp(1.15rem, 5.4vw + .1rem, 1.6rem); line-height: 1.2; hyphens: auto; overflow-wrap: break-word; }
  .viz-card .card-block { padding: .9rem .75rem 1rem; }
  .page-head > div { min-width: 0; }
  .page-head .btn { width: 100%; max-width: none; margin: 0; }

  /* Bottom sheet: links look exactly like the buttons */
  .nav-sheet a.sheet-item, .nav-sheet a.sheet-item:link, .nav-sheet a.sheet-item:visited {
    color: #21333b; font-size: .8rem; font-weight: 400; text-decoration: none;
  }
  .nav-sheet a.sheet-item.active, .nav-sheet a.sheet-item.active:link, .nav-sheet a.sheet-item.active:visited {
    color: #00364d; font-weight: 600;
  }

  /* Tables become stacked cards */
  .table-wrap { overflow: visible; }
  .cooking-plan, .users { border: 0 !important; background: none !important; }
  .cooking-plan thead, .users thead { display: none; }
  .cooking-plan tbody, .users tbody { display: flex; flex-direction: column; gap: .6rem; }
  .cooking-plan tr, .users tr {
    display: grid; border: 1px solid #dde3e7; border-radius: 8px; background: #fff; overflow: hidden;
  }
  .cooking-plan td, .users td { display: block; border: 0 !important; padding: 0 !important; text-align: left; }

  .cooking-plan tr { grid-template-columns: auto 1fr auto; grid-template-areas: "day day status" "date time status" "who who who"; padding: .7rem .85rem; row-gap: .1rem; }
  .cooking-plan td:nth-child(1) { grid-area: day; font-weight: 600; }
  .cooking-plan td:nth-child(2) { grid-area: date; font-size: .65rem; color: #6a7178; }
  .cooking-plan td:nth-child(3) { grid-area: time; font-size: .65rem; font-weight: 600; color: #0072a3; }
  .cooking-plan td:nth-child(3)::before { content: "·"; margin: 0 .35rem; color: #9aa3a9; font-weight: 400; }
  .cooking-plan td:nth-child(4) { grid-area: who; margin-top: .5rem !important; }
  .cooking-plan td:nth-child(5) { grid-area: status; align-self: center; }
  .cooking-plan select, .cooking-plan .clr-select-wrapper { width: 100%; min-width: 0; max-width: none; }
  .cooking-plan tr.me { border-color: #9fd3ea; box-shadow: inset 4px 0 0 #0072a3; }
  .cooking-plan tr.me td, .cooking-plan tr.me td:first-child { background: none; box-shadow: none; }
  .cooking-plan tr.me { background: #e1f1f6; }

  .users tr { grid-template-columns: 1fr 1fr; gap: .55rem 1rem; padding: .8rem .85rem; }
  .users td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: .1rem;
    font-size: .55rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #6a7178;
  }
  .users td:first-child { grid-column: 1 / -1; font-size: .8rem; }
  .users td:first-child::before { display: none; }
  .users .actions-cell { white-space: normal; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; padding-top: .55rem !important; border-top: 1px solid #e3e8ec !important; }
  .users .actions-cell .btn { margin: 0; flex: 1 1 auto; }
}

@media (max-width: 400px) {
  .week-strip { gap: .25rem; }
  .week-strip .day { padding: .65rem .1rem .55rem; }
  .week-strip .day { padding: .65rem 0 .55rem; }
  .day-who { font-size: .5rem; letter-spacing: -.01em; }
  .today-tag { font-size: .45rem; padding: 0 .3rem; }
}

/* ---------- Phones: week overview as a vertical list ---------- */
@media (max-width: 600px) {
  .week-strip { grid-template-columns: 1fr; gap: .45rem; }
  .week-strip .day {
    display: grid; grid-template-columns: 2.4rem 1fr auto;
    grid-template-areas: "name time avatar" "date who avatar";
    align-items: center; column-gap: .8rem; row-gap: .05rem;
    padding: .55rem .75rem; text-align: left;
  }
  .week-strip .day:hover { transform: none; box-shadow: none; }
  .week-strip .day.today { box-shadow: 0 0 0 1px #0072a3; padding-top: .8rem; margin-top: .35rem; }
  .day-name { grid-area: name; font-size: .8rem; }
  .day-date { grid-area: date; font-size: .6rem; }
  .day-time { grid-area: time; font-size: .72rem; text-align: left; white-space: nowrap; }
  .day-who { grid-area: who; font-size: .65rem; white-space: nowrap; letter-spacing: 0; }
  .day-avatar { grid-area: avatar; width: 2.1rem; height: 2.1rem; margin: 0; font-size: .6rem; }
  .today-tag { left: .6rem; right: auto; transform: none; top: -.5rem; font-size: .48rem; padding: 0 .4rem; }
}
