/* Hulk Marketing Project Management
   Light sidebar, white pages, black buttons, grey filled fields.
   Brand green is used only for the logo, the current menu item and "active". */

/* Prefer the user's installed Inter font when available; otherwise use the
   existing system-font stack. No downloadable font asset is required. */

:root {
  --page: #ffffff;
  --canvas: #f8f8f8;
  --line: #ededed;
  --line-strong: #dcdcdc;
  --text: #171717;
  --muted: #6b6b6b;
  --fill: #f3f3f3;
  --fill-hover: #ebebeb;
  --ink: #171717;
  --brand: #9def69;
  --danger: #c0392b;
  --danger-fill: #fdf0ee;
  --ok-fill: #effbe7;
  --radius: 8px;
  --sidebar: 224px;
  --control: 34px;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  font: 400 13px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.icon { flex: none; display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Shell ---------- */

.app { display: flex; min-height: 100vh; }

.sidebar {
  flex: none;
  width: var(--sidebar);
  background: var(--canvas);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 30;
}

.brand { display: block; background: #000; padding: 16px 16px 14px; }
.brand img { display: block; width: 150px; height: auto; }
.brand span { display: block; margin-top: 7px; color: #fff; font-size: 12px; font-weight: 500; }

.nav { padding: 10px 8px; overflow-y: auto; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  margin-bottom: 2px;
  padding: 0 10px;
  border-radius: 6px;
  color: #3d3d3d;
  font-weight: 450;
  position: relative;
}
.nav a:hover { background: var(--fill-hover); }
.nav a.is-current { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.nav a.is-current::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 24px;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.button.menu-button { display: none; }

.content { padding: 24px; max-width: 1080px; width: 100%; }

.scrim { display: none; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--control);
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--fill);
  color: var(--text);
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
}
.button:hover { background: var(--fill-hover); }
.button.primary { background: var(--ink); color: #fff; }
.button.primary:hover { background: #000; }
.button.danger { background: transparent; color: var(--danger); }
.button.danger:hover { background: var(--danger-fill); }
.button.icon-only { width: var(--control); padding: 0; background: transparent; }
.button.icon-only:hover { background: var(--fill); }

/* ---------- Account menu ---------- */

.account { position: relative; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer; }
.account-menu {
  position: absolute;
  right: 0;
  top: 40px;
  width: 232px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}
.account-menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-menu .who strong { display: block; font-weight: 600; }
.account-menu .who span { color: var(--muted); font-size: 12px; }
.account-menu a, .account-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  text-align: left;
  cursor: pointer;
}
.account-menu a:hover, .account-menu button:hover { background: var(--fill); }

/* ---------- Messages ---------- */

.notice {
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--ok-fill);
  color: #1f5c06;
  font-weight: 500;
}
.notice.error { background: var(--danger-fill); color: #96281b; }
.notice ul { margin: 0; padding-left: 18px; }

/* ---------- Lists ---------- */

.list-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.search { position: relative; width: 260px; max-width: 100%; }
.search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input[type="search"] { padding-left: 32px; }
.count { color: var(--muted); margin-left: auto; white-space: nowrap; }

.list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.list table { width: 100%; border-collapse: collapse; }
.list th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  background: var(--canvas);
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.list td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list tbody tr:last-child td { border-bottom: 0; }
.list tbody tr { cursor: pointer; }
.list tbody tr:hover { background: #fafafa; }
.list .name { font-weight: 600; }
.list .sub { color: var(--muted); font-size: 12px; }

.status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b5b5b5; }
.status.active::before { background: #4fc41a; }

.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 10px; }
.empty h2 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.empty p { color: var(--muted); margin-bottom: 16px; }

/* ---------- Forms ---------- */

.card { border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: 14px; font-weight: 600; }
.card-head .hint { margin-top: 2px; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields.narrow { grid-template-columns: minmax(0, 340px); }
.field label { display: block; margin-bottom: 5px; color: #4a4a4a; font-size: 12px; font-weight: 500; }
.hint { color: var(--muted); font-size: 12px; }
.field .hint { margin-top: 5px; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="search"], select {
  width: 100%;
  height: var(--control);
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background-color: var(--fill);
  outline: none;
}
input:hover, select:hover { background-color: var(--fill-hover); }
input:focus, select:focus { background-color: #fff; border-color: var(--ink); }
select {
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.form-actions { display: flex; gap: 8px; margin-top: 20px; }

/* ---------- Dashboard ---------- */

.hello { margin-bottom: 20px; }
.hello h2 { font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.hello p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.number-card { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.number-card:hover { border-color: var(--line-strong); background: #fafafa; }
.number-card span { color: var(--muted); font-size: 12px; font-weight: 500; }
.number-card strong { display: block; margin-top: 2px; font-size: 26px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }

.facts { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }

/* ---------- Popups ---------- */

dialog {
  width: 440px;
  max-width: calc(100vw - 32px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
}
dialog::backdrop { background: rgba(0, 0, 0, .38); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 15px; font-weight: 600; }
.dialog-body { padding: 20px; display: grid; gap: 14px; }
.dialog-body .notice { margin: 0; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }

/* ---------- Sign-in and setup ---------- */

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--canvas); }
.auth-card { width: 380px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.auth-brand { background: #000; padding: 28px 28px 24px; }
.auth-brand img { display: block; width: 200px; max-width: 100%; height: auto; }
.auth-brand span { display: block; margin-top: 10px; color: #fff; font-size: 14px; font-weight: 500; }
.auth-body { padding: 24px 28px 28px; display: grid; gap: 14px; }
.auth-body h1 { font-size: 16px; font-weight: 650; }
.auth-body .button { width: 100%; height: 38px; margin-top: 4px; }
.auth-body .notice { margin: 0; }
.auth-body code { font-size: 12px; background: var(--fill); padding: 1px 5px; border-radius: 4px; }

/* ---------- Tablet and phone ---------- */

@media (max-width: 860px) {
  :root { --control: 40px; }
  body { font-size: 14px; }

  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .18s ease; }
  .app.menu-open .sidebar { transform: none; box-shadow: 0 0 48px rgba(0, 0, 0, .25); }
  .app.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .38); }
  .nav a { height: 40px; }

  .button.menu-button { display: inline-flex; margin-left: -8px; }
  .topbar { padding: 0 14px; gap: 8px; }
  .content { padding: 16px 14px 32px; }
  .fields { grid-template-columns: 1fr; }
  .hide-small { display: none; }
  .list th, .list td { padding-left: 10px; padding-right: 10px; }
  .search { width: 100%; }
  .facts { grid-template-columns: 110px 1fr; }

  dialog { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; margin: 0; border-radius: 0; }
  dialog form { display: flex; flex-direction: column; height: 100%; }
  .dialog-body { flex: 1; align-content: start; overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* =====================================================================
   Phase 2: photos, projects, tasks, discussion, attachments
   ===================================================================== */

.fields .wide { grid-column: 1 / -1; }

textarea {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background-color: var(--fill);
  outline: none;
  resize: vertical;
  line-height: 1.5;
}
textarea:hover { background-color: var(--fill-hover); }
textarea:focus { background-color: #fff; border-color: var(--ink); }
input[disabled] { color: var(--muted); }

/* ---------- People ---------- */

.pic {
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #000;
  color: var(--brand);
  font-weight: 650;
  object-fit: cover;
  vertical-align: middle;
  line-height: 1;
}
.avatar { padding: 0; background: none; }
.person { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.person.big { gap: 10px; }

.photo-field { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.photo-field .hint { margin-top: 6px; }
.check { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; color: #4a4a4a; cursor: pointer; }

.attach {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--control);
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--fill);
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
}
.attach:hover { background: var(--fill-hover); }
.attach:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.attach input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.field label.attach { display: inline-flex; margin: 0 8px 0 0; color: var(--text); font-size: inherit; font-weight: 550; }
.field .chosen { display: inline; }

/* ---------- Status colours ---------- */

.status.todo::before { background: #b5b5b5; }
.status.in_progress::before { background: #2f80ed; }
.status.review::before, .status.on_hold::before { background: #f2a20c; }
.status.done::before, .status.completed::before { background: #4fc41a; }

.priority.high { color: var(--danger); font-weight: 600; }
.priority.low { color: var(--muted); }
.late { color: var(--danger); font-weight: 600; }
#tasks td:nth-child(4), #projects td:nth-child(4), .late, .today { white-space: nowrap; }
.today { color: #b26a00; font-weight: 600; }

.meta { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; color: var(--muted); font-size: 12px; }
.sub .meta:first-of-type { margin-left: 10px; }

/* ---------- Projects ---------- */

.progress-cell { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.bar { display: block; width: 90px; height: 6px; border-radius: 3px; background: var(--fill-hover); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 3px; background: var(--ink); }

.project-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 16px; color: var(--muted); }
.project-line a { text-decoration: underline; text-underline-offset: 2px; }
.project-line .status { margin-left: 8px; color: var(--text); }

/* ---------- Task filters ---------- */

.filters { flex-wrap: wrap; }
.filters select { width: auto; max-width: 200px; }
.toggle { display: inline-flex; padding: 3px; border-radius: var(--radius); background: var(--fill); }
.toggle a { display: inline-flex; align-items: center; gap: 6px; height: calc(var(--control) - 6px); padding: 0 10px; border-radius: 6px; color: var(--muted); font-weight: 550; }
.toggle a.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }

/* ---------- Board ---------- */

.content:has(.board) { max-width: none; }
.board { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.column { background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-height: 160px; }
.column.is-over { border-color: var(--ink); background: #f1f1f1; }
.column > h2 { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; font-size: 13px; font-weight: 600; }
.column > h2 .count { font-weight: 500; }
.cards-stack { display: grid; gap: 8px; min-height: 40px; }
.task-card { padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.task-card:hover { border-color: var(--line-strong); }
.task-card.is-dragging { opacity: .45; }
.task-card h3 { font-size: 13px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.task-card .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 22px; font-size: 12px; }
.card-foot .spacer { flex: 1; }
.card-foot .meta { margin-left: 0; }

/* ---------- Task panel ---------- */

.panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: 540px;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 48px rgba(0, 0, 0, .14);
  transform: translateX(24px);
  opacity: 0;
  transition: transform .16s ease, opacity .16s ease;
}
.panel.is-open { transform: none; opacity: 1; }
.panel-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .28); }

.panel-head { display: flex; align-items: flex-start; gap: 4px; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { flex: 1; padding-top: 5px; font-size: 16px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.panel-body { flex: 1; overflow-y: auto; padding: 16px 20px 20px; }
.panel-body .notice { margin-bottom: 12px; }

.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.status-row select { width: auto; min-width: 150px; }

.panel .facts { grid-template-columns: 110px 1fr; margin-bottom: 16px; }
.description { margin-bottom: 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--canvas); overflow-wrap: anywhere; }

.section-title { margin: 20px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }

.comment { display: flex; gap: 10px; margin-bottom: 16px; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.comment-head strong { font-weight: 600; }
.comment-head form { margin-left: auto; opacity: 0; }
.comment:hover .comment-head form, .comment-head form:focus-within { opacity: 1; }
.comment-body { overflow-wrap: anywhere; }

.button.small { width: 26px; height: 26px; color: var(--muted); }
.button.small:hover { color: var(--danger); }

.files { display: grid; gap: 8px; margin: 8px 0 12px; }
.file { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.file img, .file video { display: block; width: 100%; max-height: 300px; object-fit: contain; background: #0b0b0b; }
.file audio { display: block; width: 100%; }
.file-line { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; min-height: 38px; }
.file-line > .icon { color: var(--muted); }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file-name:hover { text-decoration: underline; }
.file-line .sub { color: var(--muted); font-size: 12px; white-space: nowrap; }

.composer { padding: 12px 20px 16px; border-top: 1px solid var(--line); background: #fff; }
.composer .notice { margin-bottom: 8px; }
.composer-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.composer-foot .chosen { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.upload-bar { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--fill-hover); overflow: hidden; }
.upload-bar span { display: block; width: 0; height: 100%; background: var(--ink); transition: width .15s linear; }

dialog#task { width: 560px; }

@media (max-width: 860px) {
  .filters select { flex: 1; max-width: none; min-width: 130px; }
  .board { grid-template-columns: repeat(4, 78vw); }
  .panel { width: 100vw; border-left: 0; }
  .comment-head form { opacity: 1; }
  .bar { width: 48px; }
  dialog#task { width: 100vw; }
  .dialog-body .fields { gap: 14px; }
}
.field label.attach, .field .chosen { vertical-align: middle; }
.field .attach + .chosen { margin-top: 0; }

/* =====================================================================
   Project logos and file-type icons
   ===================================================================== */

.logo-tile {
  flex: none;
  display: inline-grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: #3d3d3d;
  font-weight: 650;
  line-height: 1;
  object-fit: contain;
  vertical-align: middle;
}
span.logo-tile { background: var(--fill); border-color: transparent; }
img.logo-tile { padding: 2px; }

.with-logo { display: flex; align-items: center; gap: 6px; min-width: 0; }
.with-logo .logo-tile { border-radius: 4px !important; }
.with-logo .meta { margin-left: 4px; }
.task-card .with-logo { margin-top: 4px; }
.project-line .logo-tile { margin-right: 4px; }

.file-icon { flex: none; display: block; }
.file-line { padding-top: 7px; padding-bottom: 7px; }

/* =====================================================================
   Phase 3: time tracking, live team board, notifications
   ===================================================================== */

.clock { font-variant-numeric: tabular-nums; }
.notice.warn { background: #fff6e0; color: #7a4d00; }
.form-title { margin: 24px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
input[type="time"] { width: 100%; height: var(--control); padding: 0 10px; border: 1px solid transparent; border-radius: var(--radius); background-color: var(--fill); outline: none; }
input[type="time"]:focus { background-color: #fff; border-color: var(--ink); }
.check.plain { margin-left: 0; color: var(--text); font-size: 13px; font-weight: 500; }
.field label.check.plain { display: inline-flex; margin-bottom: 0; font-size: 13px; color: var(--text); }
button.link { border: 0; background: none; padding: 0; color: var(--text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-weight: 500; }
.turn-left .icon { transform: rotate(90deg); }
.turn-right .icon { transform: rotate(-90deg); }

/* Working days */
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.days label { margin: 0; cursor: pointer; }
.days input { position: absolute; opacity: 0; pointer-events: none; }
.days span { display: inline-grid; place-items: center; min-width: 48px; height: var(--control); padding: 0 10px; border-radius: var(--radius); background: var(--fill); color: var(--muted); font-size: 13px; font-weight: 550; }
.days input:checked + span { background: var(--ink); color: #fff; }
.days input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Status colours ---------- */

.status.online::before, .status.working::before { background: #4fc41a; }
.status.idle::before { background: #f2a20c; }
.status.offline::before { background: #b5b5b5; }

.who { position: relative; display: inline-block; flex: none; line-height: 0; }
.who .dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; }
.dot.online { background: #4fc41a; }
.dot.idle { background: #f2a20c; }
.dot.offline { background: #b5b5b5; }

.tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 600; line-height: 18px; vertical-align: 1px; }
.tag.late { color: #96281b; background: var(--danger-fill); }
.tag.paused { color: #8a5a00; background: #fff4dc; }

.said { margin-top: 3px; font-size: 12px; color: #3d3d3d; overflow-wrap: anywhere; }
.said::before { content: "\201C"; }
.said::after { content: "\201D"; }

/* People on a task */
.stack { display: inline-flex; flex: none; }
.stack .pic { box-shadow: 0 0 0 2px #fff; }
.stack .pic + .pic { margin-left: -6px; }
.pic.more { background: var(--fill-hover); color: #3d3d3d; }
.person.line { display: flex; }
.person.line + .person.line { margin-top: 6px; }

.picker { border-radius: var(--radius); background: var(--fill); }
.picker summary { display: flex; align-items: center; height: var(--control); padding: 0 28px 0 10px; cursor: pointer; list-style: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-radius: var(--radius); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
.picker summary::-webkit-details-marker { display: none; }
.picker summary span { overflow: hidden; text-overflow: ellipsis; }
.picker[open] { background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.picker-list { max-height: 176px; overflow-y: auto; padding: 4px; border-top: 1px solid var(--line); }
.field .picker-list label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 5px 6px; border-radius: 6px; color: var(--text); font-size: 13px; cursor: pointer; }
.field .picker-list label:hover { background: var(--fill); }

/* ---------- Top bar: running timer and bell ---------- */

.timer-chip { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 5px 0 14px; border-radius: 18px; background: #000; color: #fff; font-weight: 550; min-width: 0; }
.timer-chip .live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(157, 239, 105, .28); }
.timer-chip .what { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.timer-chip .clock { color: var(--brand); font-weight: 650; font-size: 14px; }
.timer-chip .stop { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; color: #000; cursor: pointer; }
.timer-chip .stop i, .go.on i, .timer-button.is-on i { display: block; width: 9px; height: 9px; border-radius: 2px; background: #000; }
.timer-chip .stop .play { margin-left: 2px; }
.timer-chip.is-paused { background: #fff4dc; color: #7a4d00; }
.timer-chip.is-paused .what { color: #7a4d00; }
.timer-chip.is-paused .stop { background: #000; color: #fff; }

.bell { position: relative; }
.bell > .button { position: relative; }
.badge { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.bell-menu { position: absolute; right: 0; top: 40px; z-index: 40; width: 340px; max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); }
.bell-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bell-head strong { font-weight: 600; }
.bell-head .link { font-size: 12px; }
.bell-empty { padding: 20px 14px; color: var(--muted); }
.bell-item { display: block; padding: 10px 14px 10px 26px; border-bottom: 1px solid var(--line); position: relative; }
.bell-item:last-child { border-bottom: 0; }
.bell-item:hover { background: #fafafa; }
.bell-item span { display: block; overflow-wrap: anywhere; }
.bell-item .sub { margin-top: 2px; color: var(--muted); font-size: 12px; }
.bell-item.is-unread { font-weight: 550; }
.bell-item.is-unread::before { content: ""; position: absolute; left: 11px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: #2f80ed; }

/* ---------- My day ---------- */

.day { display: flex; align-items: center; gap: 40px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; }
.day .date { flex: 1; min-width: 0; }
.day .date h2 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.day .date p { color: var(--muted); }
.stat > span { display: block; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.stat strong { font-size: 20px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
.end-button { height: 38px; padding: 0 18px; }

.day-wrap { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; }
.day-wrap .day { border: 0; margin: 0; border-radius: 0; }
.now-box label { display: block; margin-bottom: 5px; color: #4a4a4a; font-size: 12px; font-weight: 500; }
.now-row { display: flex; align-items: center; gap: 8px; }
.now-row input { flex: 1; min-width: 0; }
.now-box.inline { display: block; padding: 14px 20px 16px; border-top: 1px solid var(--line); background: var(--canvas); border-radius: 0 0 10px 10px; }
.now-box.inline input { background-color: #fff; border-color: var(--line-strong); max-width: 560px; }
.now-box.inline input:focus { border-color: var(--ink); }
.now-box.inline .hint { margin-left: 6px; }
.day.start { align-items: flex-end; }
.day.start .date { flex: 0 1 auto; align-self: center; }
.day.start .now-box { flex: 1; min-width: 0; }
.start-button { background: #000; padding: 0 18px; }
.start-button .play { margin-right: 2px; }
.idle-banner { display: flex; align-items: center; gap: 12px; }
.idle-banner .button { height: 28px; background: #fff; }

.cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.content:has(.cols), .content:has(.live-cards) { max-width: 1320px; }
.box { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.box > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.box > header h2 { font-size: 13px; font-weight: 600; }
.box > header span, .box > header a { color: var(--muted); font-size: 12px; white-space: nowrap; }
.box > header a:hover { color: var(--text); }
.box table { width: 100%; border-collapse: collapse; }
.box td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.box tr:last-child td { border-bottom: 0; }
.box td.tight { width: 1%; padding-right: 0; white-space: nowrap; }
.box .name { font-weight: 600; }
.box .sub { color: var(--muted); font-size: 12px; }
.box-empty { padding: 20px 16px; color: var(--muted); }
.my-tasks tr { cursor: pointer; }
.my-tasks tr:hover { background: #fafafa; }

.go { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--text); cursor: pointer; }
.go:hover { border-color: var(--ink); }
.go .play { margin-left: 2px; }
.go.on { background: var(--brand); border-color: var(--brand); }
.go.off { background: var(--fill); border-color: transparent; color: #b5b5b5; cursor: default; }
tr.is-running, .my-tasks tr.is-running:hover { background: #f6fdf0; box-shadow: inset 3px 0 0 var(--brand); }
.spent { min-width: 140px; }
.spent .bar { width: 100%; margin-top: 5px; }
.bar.over span { background: var(--danger); }
.spent b { font-weight: 600; }
.running-clock { font-weight: 650; font-size: 14px; }

.log { padding: 6px 16px 10px; }
.log .row { display: grid; grid-template-columns: 104px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.log .row:last-child { border-bottom: 0; }
.log .when { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.log .len { font-weight: 600; white-space: nowrap; }
.log .row.quiet { color: var(--muted); }
.log .row.quiet .len { font-weight: 450; }
.log .row.now .len { color: #2c7a0c; }
.log a:hover { text-decoration: underline; }
.log .said { margin: 0; font-size: 13px; color: var(--muted); }

.week { display: flex; align-items: flex-end; gap: 10px; height: 148px; padding: 16px 16px 12px; }
.week .d { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.week .d i { display: block; width: 100%; max-width: 44px; border-radius: 5px 5px 2px 2px; background: var(--ink); }
.week .d.now i { background: var(--brand); }
.week .d.off i { background: var(--fill-hover); height: 3px !important; }
.week .d b { font-size: 11px; font-weight: 600; white-space: nowrap; }
.week .d span { font-size: 11px; color: var(--muted); }

/* Timer button in the task panel */
.timer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.timer-button { gap: 8px; background: #000; color: #fff; }
.timer-button:hover { background: #000; }
.timer-button.is-on { background: var(--brand); color: #000; }
.timer-button.is-on:hover { background: var(--brand); }

/* ---------- Live team board ---------- */

.live-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.live-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.live-card span { color: var(--muted); font-size: 12px; font-weight: 500; }
.live-card strong { display: block; font-size: 24px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; }

.live-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.live-tools select { width: auto; max-width: 200px; }
.live-tools .search { width: 220px; }
.pulse { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.pulse::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4fc41a; box-shadow: 0 0 0 3px rgba(79, 196, 26, .2); }
.pulse.is-stale::before { background: #b5b5b5; box-shadow: none; }

.team td { padding-top: 9px; padding-bottom: 9px; }
.team tr.dim td, #timesheet tr.dim td { color: var(--muted); }
.team tr.dim .name { color: var(--text); }
.team a.name:hover { text-decoration: underline; }
.today-cell { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.today-cell .bar { width: 70px; }
.today-cell b { font-weight: 600; }

.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pcard { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pcard > header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pcard > header .t { flex: 1; min-width: 0; }
.pcard > header .t b { display: block; font-weight: 600; font-size: 14px; }
.pcard > header .t span, .pcard > header .n span { color: var(--muted); font-size: 12px; }
.pcard > header .n { text-align: right; white-space: nowrap; }
.pcard > header .n b { display: block; font-size: 13px; font-weight: 600; }
.pcard .p { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.pcard .p:last-child { border-bottom: 0; }
.pcard .p:hover { background: #fafafa; }
.pcard .p .name { font-weight: 600; }
.pcard .p .sub { color: var(--muted); font-size: 12px; }
.pcard .p .r { text-align: right; white-space: nowrap; }

/* ---------- Timesheets ---------- */

.week-nav { display: inline-flex; align-items: center; gap: 4px; }
.week-nav strong { min-width: 150px; text-align: center; font-weight: 600; white-space: nowrap; }
#timesheet tr.is-selected td { background: #f6fdf0; }
#timesheet tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
#timesheet tfoot td { padding: 10px 14px; border-top: 1px solid var(--line); background: var(--canvas); font-weight: 500; }
.day-log { margin-top: 16px; }

dialog.small { width: 400px; }

@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; }
  .day { flex-wrap: wrap; gap: 16px 28px; }
  .day .date { flex: 1 1 100%; }
  .day.start .now-box { flex: 1 1 100%; }
}

@media (max-width: 860px) {
  .timer-chip { padding-left: 10px; gap: 8px; }
  .timer-chip .what, .timer-chip .live { display: none; }
  .timer-chip.is-paused .what { display: block; max-width: 90px; }
  .topbar h1 { font-size: 16px; }
  .now-row { flex-wrap: wrap; }
  .now-row input { flex: 1 1 100%; }
  .now-box.inline .hint { margin-left: 0; }
  .start-button { width: 100%; }
  .live-tools select, .live-tools .search { flex: 1; max-width: none; min-width: 130px; }
  .pulse { margin-left: 0; width: 100%; }
  .pgrid { grid-template-columns: 1fr; }
  .box td { padding-left: 12px; padding-right: 12px; }
  .log .row { grid-template-columns: 92px 1fr auto; }
  .bell-menu { position: fixed; left: 12px; right: 12px; top: 60px; width: auto; }
  dialog.small { width: 100vw; }
  .week-nav strong { min-width: 0; }
}

.start-hint { margin-top: 8px; }
.today-cell + .sub { margin-top: 2px; color: var(--muted); font-size: 12px; }

@media (max-width: 860px) {
  /* Team board: each person becomes a small card */
  .list.team thead { display: none; }
  .list.team tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px; border-bottom: 1px solid var(--line); }
  .list.team tbody tr:last-child { border-bottom: 0; }
  .list.team tbody td { display: block; padding: 0; border: 0; }
  .list.team tbody td.hide-small { display: none; }
  .list.team tbody td:nth-child(2) { text-align: right; align-self: center; }
  .list.team tbody td:nth-child(3) { grid-column: 1 / -1; padding-left: 42px; }
  .list.team tbody td:nth-child(3):empty { display: none; }

  #timesheet td:first-child { white-space: nowrap; }
  #timesheet th, #timesheet td { padding-left: 8px; padding-right: 8px; }
  .my-tasks .name { overflow-wrap: anywhere; }
}

.clock { white-space: nowrap; }
@media (max-width: 860px) {
  .my-tasks td:last-child { display: none; }
}

/* =====================================================================
   Phase 4: attendance, leave, holidays, time corrections
   ===================================================================== */

:root {
  --present: #4fc41a; --present-fill: #effbe7; --present-ink: #2c6e0e;
  --lateish: #f2a20c; --late-fill: #fff4dc; --late-ink: #8a5a00;
  --absent: #d64535; --absent-fill: #fdf0ee; --absent-ink: #96281b;
  --leave: #2f80ed; --leave-fill: #eaf2fe; --leave-ink: #1d5bb5;
  --holiday: #7b3fe4; --holiday-fill: #f2ecfd; --holiday-ink: #5a2bb0;
}

.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 650; line-height: 20px; text-align: center; }
/* Per-user navigation acknowledgements (blue marker, with a readable count). */
.nav-new-marker { margin-left: auto; display: inline-flex; gap: 5px; align-items: center; flex: none; border-radius: 12px; padding: 2px 6px; background: #eaf2ff; color: #164da2; font-weight: 700; font-size: 11px; line-height: 16px; }
.nav-new-marker[hidden] { display: none !important; }
.nav-new-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #2878ea; }
.nav-new-total { font-variant-numeric: tabular-nums; }
.staff-unread-tag { display: inline-block; margin-left: 7px; border-radius: 10px; background: #eaf2ff; color: #164da2; font-size: 11px; padding: 2px 8px; vertical-align: baseline; }
.hr-ops-actions form { display: inline-flex; margin: 0; }
.toggle .nav-count { margin-left: 2px; min-width: 18px; height: 18px; line-height: 18px; font-size: 10.5px; }

.tabs-row { margin-bottom: 16px; }
.page-hint { margin: -4px 0 16px; }
.att-wrap + .page-hint, .month + .page-hint { margin: 12px 0 0; }
.optional { color: var(--muted); font-weight: 400; }
.nowrap { white-space: nowrap; }
.clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list tbody tr.static { cursor: default; }
.list tbody tr.static:hover { background: none; }
.list th .th-sub { font-weight: 400; font-size: 11px; }
form.inline { display: inline; }
.actions-cell { text-align: right; }
.actions-cell > * + * { margin-left: 6px; }
.button.small-text { height: 28px; padding: 0 10px; font-size: 12px; }
.push-left { margin-right: auto; }
.fields.three { grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
.notice.info { background: var(--leave-fill); color: var(--leave-ink); }
.dialog-body .notice.warn { margin: 8px 0 0; }

/* Status dots for leave, corrections and attendance */
.status.pending::before { background: var(--lateish); }
.status.approved::before { background: var(--present); }
.status.rejected::before, .status.absent::before { background: var(--absent); }
.status.cancelled::before { background: #c9c9c9; }
.status.leave::before { background: var(--leave); }

.tag.info { color: var(--leave-ink); background: var(--leave-fill); font-weight: 550; }
.tag.fixed { color: #5b5b5b; background: var(--fill-hover); font-weight: 550; }

.chip { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.chip.present { background: var(--present-fill); color: var(--present-ink); }
.chip.late { background: var(--late-fill); color: var(--late-ink); }
.chip.absent { background: var(--absent-fill); color: var(--absent-ink); }
.chip.leave { background: var(--leave-fill); color: var(--leave-ink); }
.chip.holiday { background: var(--holiday-fill); color: var(--holiday-ink); }
.chip.off, .chip.waiting { background: var(--fill); color: var(--muted); }

/* Balances and waiting lists */
.number-card strong small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.number-card .sub { margin-top: 2px; color: var(--muted); font-size: 12px; }
.balance-cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.waiting-box td { vertical-align: top; }
.waiting-box td.actions-cell { vertical-align: middle; }
.waiting-box .said { max-width: 420px; }

/* Team board: four counters */
.live-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.live-cards.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- Attendance month grid ---------- */

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-left: auto; color: var(--muted); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .cell { width: 20px; height: 20px; font-size: 9.5px; }

.cell { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; font-size: 10.5px; font-weight: 700; font-style: normal; line-height: 1; background: var(--fill); color: var(--muted); }
a.cell:hover { box-shadow: 0 0 0 2px var(--ink); }
.cell.present { background: var(--present-fill); color: var(--present-ink); }
.cell.late { background: var(--late-fill); color: var(--late-ink); }
.cell.absent { background: var(--absent-fill); color: var(--absent-ink); }
.cell.leave { background: var(--leave-fill); color: var(--leave-ink); }
.cell.holiday { background: var(--holiday-fill); color: var(--holiday-ink); }
.cell.off { background: repeating-linear-gradient(135deg, #f3f3f3 0 4px, #e9e9e9 4px 6px); }
.cell.waiting { background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.cell.future { opacity: .55; }
.cell.half { background-image: linear-gradient(135deg, transparent 50%, rgba(47, 128, 237, .22) 50%); }

.att-wrap { border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.att { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; }
.att th, .att td { padding: 6px 2px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.att tbody tr:last-child th, .att tbody tr:last-child td { border-bottom: 0; }
.att th.d, .att td.d { width: 30px; min-width: 30px; }
.att thead th { background: var(--canvas); color: var(--muted); font-weight: 500; font-size: 11px; line-height: 1.25; }
.att thead th.d span { display: block; font-size: 10px; color: #9a9a9a; }
.att thead th.now { color: var(--text); font-weight: 700; }
.att thead th.now span { color: var(--text); }
.att thead th.hol { color: var(--holiday-ink); }
.att td.now { background: #fafff5; }
.att .who-col { position: sticky; left: 0; z-index: 1; min-width: 170px; padding: 6px 12px; text-align: left; background: #fff; border-right: 1px solid var(--line); }
.att thead .who-col { background: var(--canvas); }
.att .who-col .person { display: flex; }
.att .who-col .name { font-weight: 600; font-size: 13px; }
.att .who-col a:hover .name { text-decoration: underline; }
.att .t { padding: 6px 10px; font-size: 13px; font-weight: 600; text-align: right; }
.att thead .t { font-size: 11px; font-weight: 500; }
.att th.t:first-of-type, .att td.t:nth-last-child(5) { border-left: 1px solid var(--line); padding-left: 14px; }
.att .t .of { color: var(--muted); font-weight: 450; font-size: 11px; }
.att .t.warn { color: var(--late-ink); }
.att .t.bad { color: var(--absent-ink); }

/* ---------- One person's month ---------- */

.att-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.att-cards .number-card strong { font-size: 22px; }

.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month .dow { padding: 0 4px 2px; color: var(--muted); font-size: 12px; font-weight: 500; }
.mday { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 92px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
a.mday:hover { border-color: var(--ink); }
.mday.blank { border-color: transparent; background: none; }
.mday .n { font-size: 12px; font-weight: 650; color: #3d3d3d; }
.mday .t { font-size: 12px; font-variant-numeric: tabular-nums; color: #3d3d3d; }
.mday .h { font-size: 12px; font-weight: 600; }
.mday .note { font-size: 11px; color: var(--muted); line-height: 1.3; }
.mday.now { box-shadow: inset 0 0 0 2px var(--brand); border-color: var(--brand); }
.mday.s-off { background: var(--canvas); }
.mday.s-absent { background: #fffafa; }
.mday.future .n { color: #a8a8a8; }

@media (max-width: 1100px) {
  .live-cards.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .att-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .live-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-cards.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .att-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legend { margin-left: 0; width: 100%; }
  .att .who-col { min-width: 132px; padding-left: 8px; padding-right: 8px; }
  .att .who-col .pic { display: none; }
  .fields.three { grid-template-columns: 1fr 1fr; }
  .fields.three .field:first-child { grid-column: 1 / -1; }
  .month { gap: 3px; }
  .month .dow { font-size: 11px; padding: 0 2px; }
  .mday { min-height: 64px; padding: 5px; gap: 2px; }
  .mday .chip { padding: 0 4px; font-size: 9.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .mday .t, .mday .note { display: none; }
  .mday .h { font-size: 11px; }
  .waiting-box tr { display: grid; grid-template-columns: 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .waiting-box tr:last-child { border-bottom: 0; }
  .waiting-box td { border: 0; padding-top: 4px; padding-bottom: 4px; }
  .waiting-box td.actions-cell { text-align: left; width: auto; padding-right: 12px; white-space: normal; }
  .clip { max-width: 140px; }
  .tabs-row .toggle { width: 100%; }
  .tabs-row .toggle a { flex: 1; justify-content: center; }
}
.box td.actions-cell { padding-right: 16px; }

@media (max-width: 860px) {
  /* Person's month: the whole day carries the colour */
  .mday .chip { display: none; }
  .mday.s-present { background: var(--present-fill); border-color: #d6f0c4; }
  .mday.s-late { background: var(--late-fill); border-color: #f5dfae; }
  .mday.s-absent { background: var(--absent-fill); border-color: #f3cdc8; }
  .mday.s-leave { background: var(--leave-fill); border-color: #c9ddfb; }
  .mday.s-holiday { background: var(--holiday-fill); border-color: #dccdf8; }
  .month + .page-hint::before { content: "Green present, amber late, red absent, blue leave, purple holiday. "; }

  /* Leave and correction lists become cards */
  #corrections thead, #leave-list thead { display: none; }
  #corrections tbody tr, #leave-list tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px; border-bottom: 1px solid var(--line); }
  #corrections tbody tr:last-child, #leave-list tbody tr:last-child { border-bottom: 0; }
  #corrections td, #leave-list td { display: block; padding: 0; border: 0; }
  #corrections td.tight:empty, #leave-list td.tight:empty { display: none; }
  #leave-list td.hide-small { display: none; }
  .clip { max-width: 100%; }
}

/* =====================================================================
   Phase 5: client portal, client requests, shared files
   ===================================================================== */

.show-small { display: none; }
.underline { text-decoration: underline; text-underline-offset: 2px; }
.box-pad { padding: 12px 16px; }
.box-pad .files { margin: 0; }
.cols.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tight-right { width: 1%; white-space: nowrap; text-align: right; }
.box tr.clickable { cursor: pointer; }
.box tr.clickable:hover { background: #fafafa; }

/* Request status colours */
.status.r-open::before { background: var(--lateish); }
.status.r-in_progress::before { background: #2f80ed; }
.status.r-done::before { background: var(--present); }
.status.r-declined::before { background: #c9c9c9; }
#requests tr.unread-row .name { font-weight: 700; }

/* Staff preview of the portal */
.notice.preview-bar { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: #111; color: #fff; }
.notice.preview-bar span { display: inline-flex; align-items: center; gap: 8px; }
.notice.preview-bar .button { height: 30px; background: #fff; color: #000; }

/* Links on the project line for the team */
.client-links { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; margin-left: auto; }
.client-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--text); text-decoration: none; font-weight: 550; }
.client-links a:hover { text-decoration: underline; }

/* Messages: who wrote it, and who can see it */
.tag.client { color: #1d5bb5; background: #eaf2fe; }
.tag.shared { color: #2c6e0e; background: #effbe7; }
.tag.team { color: #3d3d3d; background: var(--fill-hover); }
.comment.from-client .comment-body { padding: 8px 12px; border-radius: 4px 10px 10px 10px; background: #f3f8ff; }
.share-check { margin-left: 4px; white-space: nowrap; font-weight: 550; color: var(--text); }
.share-check input:checked + * { color: #2c6e0e; }

/* Files with a second line */
.file-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-text .file-name { flex: none; }
.file-text .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.button.small.plain:hover { color: var(--text); }

/* Upload box */
.upload-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--canvas); }
.upload-box strong { display: block; font-weight: 600; }
.upload-box .hint { max-width: 560px; }
.upload-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.upload-actions .chosen { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-box .upload-bar { flex-basis: 100%; }
.upload-box .attach { background: #fff; box-shadow: 0 0 0 1px var(--line-strong) inset; }

/* Conversations on a page (not the side panel) */
.conversation .thread { padding: 16px 16px 4px; }
.conversation .inline-composer { padding: 12px 16px 16px; background: var(--canvas); }
.conversation .inline-composer textarea { background: #fff; border-color: var(--line-strong); }
.request-card .request-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.request-top .spacer { flex: 1; }
.request-actions { display: flex; gap: 8px; }
.request-card .description { margin-bottom: 12px; }
.request-card .notice { margin: 12px 0 0; }
.task-card-portal .facts { margin: 0; }

/* Portal home */
.project-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 20px; }
.project-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.project-card:hover { border-color: var(--ink); }
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-head .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pc-head .t b { font-size: 15px; font-weight: 650; }
.pc-progress { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.pc-progress strong { color: var(--text); font-size: 13px; }
.bar.wide { width: 100%; height: 8px; border-radius: 4px; }
.bar.wide span { background: var(--brand); border-radius: 4px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.portal-cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.updates { padding: 4px 0; }
.update { display: flex; gap: 12px; padding: 10px 16px; align-items: flex-start; }
.update:hover { background: #fafafa; }
.u-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fill); color: var(--muted); }
.u-icon.done { background: var(--present-fill); color: var(--present-ink); }
.u-icon.file { background: #f2ecfd; color: #5a2bb0; }
.u-icon.message { background: #eaf2fe; color: #1d5bb5; }
.u-text { display: flex; flex-direction: column; min-width: 0; font-weight: 500; }
.u-text .sub { font-weight: 400; color: var(--muted); font-size: 12px; }

/* Portal project header */
.project-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; }
.ph-main { flex: 1; min-width: 0; }
.ph-main h2 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.ph-main p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 4px; color: var(--muted); }
.ph-main .person { color: var(--muted); }
.ph-progress { width: 260px; display: grid; gap: 6px; }
.ph-progress strong { font-size: 22px; font-weight: 650; line-height: 1; }
#portal-tasks .meta, #portal-requests .meta, #requests .meta { margin-left: 8px; }

@media (max-width: 860px) {
  .show-small { display: inline; }
  .cols.even, .portal-cols { grid-template-columns: 1fr; }
  .project-head { flex-wrap: wrap; padding: 14px; }
  .ph-progress { width: 100%; }
  .upload-actions { width: 100%; flex-wrap: wrap; }
  .upload-actions .chosen { max-width: none; flex: 1 1 100%; order: 3; }
  .client-links { margin-left: 0; width: 100%; }
  .notice.preview-bar { flex-direction: column; align-items: flex-start; }
  .request-actions { width: 100%; }
  .request-top .spacer { display: none; }
  .composer-foot { flex-wrap: wrap; }
}
.tag { white-space: nowrap; }
.comment-head { flex-wrap: wrap; column-gap: 8px; row-gap: 0; }

/* =====================================================================
   Phase 6: reports
   ===================================================================== */

.report-filters .dates { display: inline-flex; align-items: center; gap: 6px; }
.report-filters .dates input { width: 150px; }
.report-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.report-cards .number-card strong { font-size: 22px; }

/* One-series bar chart: thin rounded bars on a hairline baseline, hover for values */
.chart { position: relative; padding: 30px 16px 30px 64px; }
.chart-top { position: absolute; left: 16px; top: 22px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-bars { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 180px; border-bottom: 1px solid var(--line-strong); }
.chart-bars::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 1px solid var(--line); }
.chart-bars.dense { gap: 3px; }
.cb { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; outline: none; cursor: default; }
.cb i { display: block; width: 100%; max-width: 22px; border-radius: 4px 4px 0 0; background: var(--ink); transition: background .1s; }
.cb > b { position: absolute; bottom: 100%; margin-bottom: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.cb > span { position: absolute; bottom: -20px; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.cb > span.we { color: #b5b5b5; }
.cb.now > span { color: var(--text); font-weight: 600; }
.chart-bars.dense .cb:nth-child(even) > span { visibility: hidden; }
.cb:hover i, .cb:focus i { background: var(--brand); }
.cb:hover > b, .cb:focus > b { visibility: hidden; }
.cb:hover::after, .cb:focus::after { content: attr(data-tip); position: absolute; top: -26px; left: 50%; transform: translateX(-50%); z-index: 5; padding: 4px 8px; border-radius: 6px; background: #111; color: #fff; font-size: 11.5px; font-weight: 500; white-space: nowrap; pointer-events: none; }
.cb:first-child:hover::after, .cb:first-child:focus::after { left: 0; transform: none; }
.cb:last-child:hover::after, .cb:last-child:focus::after { left: auto; right: 0; transform: none; }
.list + .page-hint { margin-top: 10px; }

/* Grouped report table */
.report-list tbody.group { border-bottom: 1px solid var(--line); }
.report-list tbody.group:last-of-type { border-bottom: 0; }
.report-list .group-row { cursor: pointer; }
.report-list .group-row td { border-bottom: 0; }
.report-list .caret { display: inline-grid; place-items: center; width: 16px; color: var(--muted); transform: rotate(-90deg); transition: transform .12s; }
.report-list .group-row.is-open .caret { transform: none; }
.report-list .item-row td { padding-top: 6px; padding-bottom: 6px; border-bottom: 0; background: #fcfcfc; font-size: 12.5px; }
.report-list .item-row:last-child td { padding-bottom: 12px; }
.report-list .item-name { padding-left: 64px; }
.report-list tfoot td { padding: 10px 14px; border-top: 1px solid var(--line); background: var(--canvas); font-weight: 500; }
.share { display: flex; align-items: center; gap: 8px; }
.share .bar { width: 120px; }
.bar.thin { height: 4px; }
.share-col { width: 1%; white-space: nowrap; }

/* Estimated against actual */
.est-col { width: 260px; }
.est { display: flex; align-items: center; gap: 10px; }
.est .bar { width: 110px; flex: none; }
.est .tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 0; }

@media (max-width: 860px) {
  .report-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-filters .dates { width: 100%; flex-wrap: wrap; }
  .report-filters .dates input { flex: 1; width: auto; min-width: 120px; }
  .chart { padding-left: 16px; }
  .chart-top { display: none; }
  .chart-bars { gap: 2px; height: 150px; }
  .chart-bars.dense .cb > span { visibility: hidden; }
  .chart-bars.dense .cb:nth-child(5n+1) > span { visibility: visible; }
  .report-list .item-name { padding-left: 28px; }
  .est-col { width: auto; }
  .est { flex-direction: column; align-items: flex-start; gap: 4px; }
  .est .bar { width: 80px; }
}

@media (max-width: 860px) {
  .tabs-row .toggle { overflow-x: auto; scrollbar-width: none; }
  .tabs-row .toggle a { padding: 0 8px; gap: 5px; white-space: nowrap; }
  .tabs-row .toggle a .icon { display: none; }
  #estimates, #report-attendance, #report-projects { overflow-x: auto; }
  #estimates table, #report-attendance table, #report-projects table { min-width: 560px; }
  .report-filters .count { width: 100%; margin-left: 0; }
}

/* =====================================================================
   Extras: email, backups, activity, recurring tasks
   ===================================================================== */

.fields.inner { grid-template-columns: 1fr 1fr; gap: 12px; }
.plain-list { margin: 0 0 12px; padding-left: 18px; }
.plain-list li { margin-bottom: 4px; }
.mail-facts { margin-top: 14px; grid-template-columns: 180px 1fr; }
.number-card strong.small-strong { font-size: 16px; line-height: 1.6; }
.backup-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.keep-form { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.keep-form input { width: 60px; height: 30px; text-align: center; }
.keep-form .button { height: 30px; }
.backup-hint { margin-top: 12px; }

/* Activity */
.activity-log { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.activity-day { margin: 0; padding: 9px 16px; background: var(--canvas); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.act { display: flex; gap: 12px; align-items: flex-start; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.act:last-child { border-bottom: 0; }
.act-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fill); color: #3d3d3d; }
.act-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.act-main strong { font-weight: 600; }
.act-details { margin: 4px 0 2px; padding: 6px 10px; border-radius: 6px; background: var(--canvas); color: #3d3d3d; font-size: 12px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.filters .dates { display: inline-flex; align-items: center; gap: 6px; }
.filters .dates input { width: 150px; }

/* Task panel history */
.history { margin: 4px 0 0; border: 1px solid var(--line); border-radius: 8px; }
.history summary { display: flex; align-items: center; gap: 6px; padding: 8px 12px; cursor: pointer; font-weight: 550; list-style: none; }
.history summary::-webkit-details-marker { display: none; }
.history ul { margin: 0; padding: 4px 12px 10px 28px; font-size: 12.5px; }
.history li { margin-bottom: 6px; }
.repeat-mark { display: inline-flex; vertical-align: -1px; margin-left: 6px; color: var(--muted); }

@media (max-width: 860px) {
  .filters .dates { width: 100%; }
  .filters .dates input { flex: 1; width: auto; }
  .keep-form { flex-wrap: wrap; }
  .mail-facts { grid-template-columns: 1fr 1fr; }
}
.form-actions { flex-wrap: wrap; }
@media (max-width: 860px) {
  .form-actions .button { white-space: normal; height: auto; min-height: var(--control); padding-top: 8px; padding-bottom: 8px; text-align: center; }
  .card-head { flex-wrap: wrap; }
  .card .list { overflow-x: auto; }
  .card .list table { min-width: 480px; }
}

/* =====================================================================
   Desktop tracker: notice, screenshots on the timesheet
   ===================================================================== */

dialog.notice-dialog { width: 560px; }
.notice-text { padding: 14px 16px; border-radius: 8px; background: var(--canvas); line-height: 1.6; }

.shots-box .shots-hint { padding: 10px 16px 0; }
.shots-hour { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.shots-hour:last-of-type { border-bottom: 0; }
.shots-label { padding-top: 4px; color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.shots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shot { margin: 0; min-width: 0; }
.shot-img { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #111; cursor: zoom-in; }
.shot-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot-img:hover { border-color: var(--ink); }
.shot-img.empty { display: grid; place-items: center; padding: 8px; background: var(--canvas); color: var(--muted); font-size: 11.5px; text-align: center; cursor: default; }
.shot.is-deleted .shot-img.empty { background: repeating-linear-gradient(135deg, #f6f6f6 0 6px, #efefef 6px 8px); }
.shot-badge { position: absolute; right: 4px; bottom: 4px; padding: 0 5px; border-radius: 4px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 10px; line-height: 16px; }
.shot figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 5px; font-size: 11.5px; }
.shot-task { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.activity { display: flex; align-items: center; gap: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.activity .bar { width: 60px; height: 4px; }
.activity.high .bar span { background: #2c7a0c; }
.activity.mid .bar span { background: #b26a00; }
.activity.low .bar span { background: var(--danger); }
.small-link { font-size: 11.5px; color: var(--muted); }
dialog.shot-dialog { width: min(1200px, 96vw); }
.shot-full { padding: 12px; background: #111; }
.shot-full img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; }

@media (max-width: 860px) {
  .shots-hour { grid-template-columns: 1fr; gap: 6px; }
  .shots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dialog.shot-dialog { width: 100vw; }
}

/* ---------- 1.9: progress updates, @mentions, editing ---------- */
.tag.update { color: #2c6e0e; background: #e3f7d4; }
.comment.is-update .comment-body { padding: 8px 12px; border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; background: #f6fcf1; }
.comment-head [data-edit-comment] { margin-left: auto; opacity: 0; }
.comment-head [data-edit-comment] + form { margin-left: 0; }
.comment:hover .comment-head [data-edit-comment], .comment-head [data-edit-comment]:focus-visible { opacity: 1; }
@media (hover: none) { .comment-head [data-edit-comment] { opacity: 1; } }
.comment-edit { margin-top: 6px; }
.comment-edit textarea { width: 100%; }
.comment-edit .composer-foot .grow { flex: 1; }
.update-check { font-size: 13px; color: var(--muted); white-space: nowrap; }
.update-check input:checked { accent-color: #4fc41a; }
.mention { padding: 0 3px; border-radius: 4px; color: #1d5bb5; background: #eaf2fe; font-weight: 550; }
.mention-box { position: relative; }
.mention-menu { position: absolute; left: 0; bottom: calc(100% + 4px); z-index: 30; min-width: 220px; max-width: 100%; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.comment-edit .mention-menu { top: calc(100% + 4px); bottom: auto; }
.mention-menu li { padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.mention-menu li.is-active, .mention-menu li:hover { background: var(--fill); }

/* ---------- 1.9: reports for people and projects ---------- */
.notice.info { background: var(--leave-fill); color: var(--leave-ink); font-weight: 450; }
.notice.info a { margin-left: 6px; font-weight: 550; }
.number-card em.sub { display: block; margin-top: 2px; font-style: normal; font-size: 12px; }
.number-card strong small { font-size: 15px; font-weight: 550; color: var(--muted); }
.number-card strong.late, .number-card .late { color: var(--danger); }
.report-title { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.report-title h2 { font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.report-title .report-period { margin-left: auto; color: var(--muted); white-space: nowrap; }
.box-pad { padding: 14px 16px; }
.box-empty { padding: 14px 16px; color: var(--muted); }
.list.flat { border: 0; border-radius: 0; }
.list.flat tr:last-child td { border-bottom: 0; }
.list.flat .item-row td { padding-top: 5px; padding-bottom: 5px; border-bottom: 0; background: #fcfcfc; font-size: 12.5px; }
.list.flat .item-row .item-name { padding-left: 34px; }
.list.flat .group-row td { border-bottom: 0; padding-top: 12px; }
.list.flat .share .bar { width: 160px; }
.feed { margin: 0; padding: 0; list-style: none; }
.feed li { padding: 12px 16px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.feed li:last-child { border-bottom: 0; }
.feed-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.act-meter { display: inline-block; width: 40px; height: 6px; margin-right: 6px; border-radius: 3px; background: var(--fill-hover); overflow: hidden; vertical-align: middle; }
.act-meter i { display: block; height: 100%; background: var(--present); }
.note-form textarea { width: 100%; }
.note-form .form-actions { align-items: center; margin-top: 8px; }
.note-text { overflow-wrap: anywhere; line-height: 1.55; }
.print-only { display: none; }
.print-head { align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid #111; }
.print-head span { font-weight: 600; }

/* ---------- 1.9: weekly updates ---------- */
.week-bar { flex-wrap: wrap; }
.week-label { font-size: 14px; font-weight: 600; }
.update-status { margin-left: 4px; }
.recent-weeks { display: flex; gap: 4px; margin-left: auto; }
.recent-weeks a { padding: 3px 8px; border-radius: 6px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); }
.recent-weeks a.is-sent { color: #2c6e0e; background: #effbe7; border-color: #d6f2c3; }
.recent-weeks a.is-draft { color: #8a5a00; background: #fff4dc; border-color: #f7e2b0; }
.recent-weeks a.is-on { outline: 2px solid var(--ink); outline-offset: 1px; }
.update-projects { display: grid; gap: 12px; }
.update-project { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.update-project textarea { width: 100%; margin-top: 10px; }
.up-head { display: flex; align-items: center; gap: 10px; }
.up-head .sub { margin-left: auto; }
.up-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 12.5px; }
.up-facts li { display: inline-flex; align-items: center; gap: 5px; }
.up-facts li .icon { color: var(--muted); }
.up-facts li.is-done .icon { color: var(--present); }
.up-progress { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #f6fcf1; }
.up-progress blockquote { margin: 6px 0; padding-left: 10px; border-left: 3px solid var(--brand); font-size: 13px; }
.add-project { margin-top: 12px; }
.update-fields { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.update-fields textarea { width: 100%; }
.sticky-actions { align-items: center; margin: 20px -4px 16px; padding: 12px 4px; }
@media (min-width: 761px) { .sticky-actions { position: sticky; bottom: 0; z-index: 5; background: linear-gradient(to bottom, rgba(255,255,255,.85), #fff 30%); } }
.update-list { display: grid; gap: 10px; }
.update-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.update-card.has-blocker { border-color: #f3c3bc; }
.update-card summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.update-card summary::-webkit-details-marker { display: none; }
.update-card .caret { display: inline-grid; place-items: center; width: 16px; color: var(--muted); transform: rotate(-90deg); transition: transform .12s; }
.update-card[open] .caret { transform: none; }
.update-card .uc-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.update-card .uc-name { font-weight: 600; }
.update-card .facts { display: flex; gap: 14px; margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.update-card summary > .tag { margin-left: 12px; }
.update-card .uc-who + .tag { margin-left: auto; }
.update-card-body { padding: 4px 16px 14px 56px; }
.update-body { margin-bottom: 10px; }
.update-week { margin: 14px 0 6px; font-size: 13px; font-weight: 600; }
.u-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.u-row:last-child { border-bottom: 0; }
.u-label { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 550; }
.u-text { overflow-wrap: anywhere; line-height: 1.55; }
.u-row.is-blocker { margin: 4px 0; padding: 8px 10px; border: 0; border-radius: 8px; background: var(--danger-fill); }
.u-row.is-blocker .u-label { color: #96281b; }
.update-replies { margin-top: 8px; }
.update-replies .comment { margin-bottom: 10px; }
.reply-form { display: flex; gap: 8px; align-items: flex-start; }
.reply-form textarea { flex: 1; min-height: 34px; }
.person-link { margin-top: 10px; font-size: 12.5px; }
.inline-form { display: inline-flex; }
@media (max-width: 760px) {
  .u-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .update-card-body { padding-left: 16px; }
  .update-card .facts { display: none; }
  .update-card summary { padding: 10px 12px; }
  .update-card summary > .tag { margin-left: auto; }
  .recent-weeks { flex-wrap: wrap; margin-left: 0; }
  .list.flat .share .bar { width: 64px; }
  .list.flat .share .sub { display: none; }
  .reply-form { flex-direction: column; align-items: stretch; }
}

/* ---------- 1.9: printing a report or saving it as a PDF ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  .sidebar, .topbar, .scrim, .tabs-row, .report-filters, .print-hide, .page-hint, .notice, .note-form, .menu-button, .panel, .panel-scrim, dialog { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  .content { padding: 0 !important; max-width: none !important; }
  .print-only { display: block !important; }
  .print-head.print-only { display: flex !important; }
  .box, .number-card, .list { break-inside: avoid; }
  .box { border-color: #ccc; }
  .cards { grid-template-columns: repeat(3, 1fr) !important; }
  td.hide-small, th.hide-small { display: table-cell !important; }
  tr[data-href] { cursor: default; }
  a { color: inherit; text-decoration: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.nudge { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px 12px 10px 14px; border-radius: var(--radius); background: #f3fbec; border: 1px solid #d6f2c3; color: #1f5c06; }
.nudge span { flex: 1; }
@media (max-width: 760px) { .nudge { flex-wrap: wrap; } }

/* ---------- 2.0: hours budgets ---------- */
.budget { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.budget .bar { width: 70px; }
.budget.is-near .bar span { background: var(--lateish); }
.budget.is-over .bar span { background: var(--danger); }
.budget.is-over .budget-label { color: var(--danger); font-weight: 550; }
.budget-label { font-size: 12.5px; color: var(--muted); }
.project-line .budget { margin-left: 10px; }
.number-card .budget { margin-top: 8px; }
.number-card .budget .bar { width: 100%; }
.input-pair { display: flex; gap: 8px; }
.input-pair input { flex: 1; min-width: 0; }
.input-pair select { width: auto; }

/* ---------- 2.0: task templates ---------- */
.tpl-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.tpl-row { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.tpl-main { display: flex; align-items: center; gap: 8px; }
.tpl-main input { flex: 1; min-width: 0; font-weight: 550; }
.tpl-num { width: 22px; color: var(--muted); font-size: 12px; text-align: right; }
.tpl-moves { display: flex; gap: 2px; }
.tpl-moves [data-move="-1"] .icon { transform: rotate(180deg); }
.tpl-meta { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 8px 0 0 30px; }
.tpl-meta > label { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.tpl-meta > label input { width: 80px; }
.tpl-meta > label .sub { font-size: 11px; }
.tpl-meta > label.check { flex-direction: row; align-items: center; color: var(--text); padding-bottom: 8px; }
.tpl-desc { margin: 6px 0 0 30px; font-size: 12.5px; }
.tpl-desc summary { color: var(--muted); cursor: pointer; }
.tpl-desc textarea { width: 100%; margin-top: 6px; }
@media (max-width: 760px) { .tpl-meta, .tpl-desc { margin-left: 0; } }
.project-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.project-tools .button .icon { margin-right: 4px; }

/* ---------- 2.0: workload ---------- */
.load-meter { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; min-width: 150px; }
.load-meter .bar { width: 150px; }
.load-text { font-size: 12px; color: var(--muted); white-space: nowrap; }
.load-over .load-meter .bar span { background: var(--danger); }
.load-full .load-meter .bar span { background: var(--lateish); }
.load-room .load-meter .bar span { background: var(--present); }
.workload-list .update-card summary > .tag { margin-left: 12px; min-width: 112px; text-align: center; }
.update-card.load-over { border-color: #f3c3bc; }
.load-tasks { margin: 0; padding: 0; list-style: none; }
.load-tasks li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.load-tasks li .clock { margin-left: auto; white-space: nowrap; }
.load-more { margin-top: 8px; }
@media (max-width: 760px) {
  .load-meter { min-width: 0; }
  .load-meter .bar { width: 70px; }
  .load-text { display: none; }
  .workload-list .update-card summary > .tag { min-width: 0; margin-left: 8px; }
}

/* ---------- 2.0: client approvals and the content calendar ---------- */
.approval-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.approval-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; color: inherit; }
.approval-card:hover { border-color: var(--line-strong); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.ac-thumb { display: grid; place-items: center; height: 150px; background: var(--canvas); color: var(--muted); overflow: hidden; }
.ac-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px 12px; }
.ac-title { font-weight: 600; }
.ac-body .tag { margin: 4px 0 0; }
.waiting-box { border-color: #f7e2b0; }
.waiting-box > header { background: #fff8e8; }
.approval-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.approval-head h2 { font-size: 20px; font-weight: 650; }
.tag.big { padding: 3px 10px; font-size: 12.5px; line-height: 20px; }
.approval-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.approval-side .box-pad { display: grid; gap: 10px; }
.approval-side textarea, .approval-side input[type=text], .approval-side select { width: 100%; }
.version.is-old { opacity: .8; }
.decision { margin-top: 10px; padding: 10px 12px; border-radius: 8px; }
.decision.is-approved { background: #effbe7; color: #1f5c06; }
.decision.is-changes { background: var(--danger-fill); color: #7d2318; }
.decide-box { border-color: var(--ink); }
.decide-box textarea { width: 100%; }
.older-versions .older { padding: 10px 0; border-top: 1px solid var(--line); }
.cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.cal-head strong { font-size: 15px; min-width: 120px; text-align: center; }
.cal-key { display: flex; gap: 12px; margin-left: auto; font-size: 12px; color: var(--muted); }
.cal-key span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.cal-key .is-pending::before, .cal-item.is-pending { background: #fff4dc; }
.cal-key .is-changes::before, .cal-item.is-changes { background: var(--danger-fill); }
.cal-key .is-approved::before, .cal-item.is-approved { background: #e3f7d4; }
.cal-key .is-pending::before { background: var(--lateish); }
.cal-key .is-changes::before { background: var(--danger); }
.cal-key .is-approved::before { background: var(--present); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cal-dow { padding: 6px 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--canvas); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 96px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.is-blank { background: #fbfbfb; }
.cal-day.is-today .cal-num { background: var(--ink); color: #fff; }
.cal-num { align-self: flex-start; padding: 0 6px; border-radius: 10px; font-size: 12px; color: var(--muted); }
.cal-dow-small { display: none; }
.cal-item { display: block; padding: 3px 6px; border-radius: 5px; font-size: 11.5px; line-height: 1.3; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-item b { font-weight: 600; }
.cal-item:hover { filter: brightness(.96); }
@media (max-width: 760px) {
  .approval-layout { grid-template-columns: minmax(0, 1fr); }
  .approval-head { flex-direction: column; }
  .cal { grid-template-columns: minmax(0, 1fr); }
  .cal-dow, .cal-day.is-blank, .cal-day:not(.has-items):not(.is-today) { display: none; }
  .cal-day { min-height: 0; }
  .cal-dow-small { display: inline; }
  .cal-item { white-space: normal; }
  .cal-key { margin-left: 0; width: 100%; }
}

/* ---------- 2.0: results ---------- */
.result-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0; }
.result-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rc-name { color: var(--muted); font-size: 12px; font-weight: 500; }
.result-card strong { font-size: 24px; font-weight: 650; letter-spacing: -.02em; }
.rc-change { font-size: 12.5px; white-space: nowrap; }
.rc-change.is-good { color: #2c7a0e; }
.rc-change.is-bad { color: var(--danger); }
.rc-spark.is-good { color: var(--present); }
.rc-spark.is-bad { color: var(--danger); }
.spark { display: block; }
.result-input { width: 110px; }
.results-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.preset-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.add-measure { border-top: 1px solid var(--line); }
.add-measure summary { cursor: pointer; color: var(--muted); font-weight: 550; }
.add-measure-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.add-measure-form input[name=name] { flex: 1; min-width: 180px; }
.add-measure-form input[name=unit] { width: 120px; }
@media print { .results-form input { border: 0; background: none; padding: 0; } .add-measure, .results-actions, .results-form button { display: none !important; } }

/* ---------- 2.1: profiles ---------- */
.bank-facts { margin-bottom: 12px; }
.bank-change > summary { display: inline-flex; list-style: none; cursor: pointer; }
.bank-change > summary::-webkit-details-marker { display: none; }
.bank-change[open] > summary { margin-bottom: 12px; }
.change-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.change-head .tag { margin-left: auto; }
.change-card.is-pending { border-color: #f7e2b0; }
.change-table { border-collapse: collapse; margin-bottom: 10px; font-size: 13.5px; }
.change-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 550; padding: 4px 16px 4px 0; }
.change-table td { padding: 5px 16px 5px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.change-table tr.is-changed td { background: #fff8e8; }
.change-form { display: flex; flex-wrap: wrap; gap: 8px; }
.change-form input { flex: 1; min-width: 200px; }
.company-more summary { cursor: pointer; color: var(--muted); font-weight: 550; margin-bottom: 8px; }
.card .fields + .fields { margin-top: 16px; }

/* ---------- 2.2: connecting Claude ---------- */
.consent-list { margin: 4px 0 6px; padding-left: 18px; line-height: 1.55; }
.consent-actions { display: flex; gap: 8px; }
.consent-actions .button { flex: 1; justify-content: center; }
.steps { margin: 12px 0; padding-left: 20px; line-height: 1.6; }
.steps li { margin-bottom: 8px; }
.connections { margin: 10px 0 0; padding: 0; list-style: none; }
.connections li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }

/* ---------- Get the app ---------- */
.card-head h2 svg { display: inline-block; vertical-align: -3px; margin-right: 4px; }
.notice svg { display: inline-block; vertical-align: -3px; margin-right: 4px; }
.installer-admin { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.installer-admin h3 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.installer-admin form + form { margin-top: 14px; }
.installer-admin .inline-form { margin-top: 14px; }
.nudge[hidden] { display: none; }
.notice[hidden] { display: none; }
.card p .button + .hint { margin-left: 8px; }
details.installer-admin > summary { cursor: pointer; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
details.installer-admin[open] > summary { margin-bottom: 12px; }
.page-intro { color: var(--muted); margin: 0 0 16px; max-width: 760px; }
.download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.installer-status { list-style: none; padding: 0; margin: 0 0 16px; }
.installer-status li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.installer-status .inline-form { display: inline; }
.link-button { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.link-button:hover { color: var(--ink); }
.installer-admin .fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 700px) { .installer-admin .fields { grid-template-columns: 1fr; } }
.card > .installer-admin:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Devices and places ---------- */
.form-intro { margin: -6px 0 14px; max-width: 760px; }
.dev { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.dev svg { flex: none; color: var(--muted); }
.device-cell { min-width: 200px; max-width: 260px; }
.device-cell .sub.also { color: #8a5a00; }
.flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag.flag-new_device, .tag.flag-new_country, .tag.flag-second, .tag.flag-no_location { background: var(--late-fill); color: var(--late-ink); }
.tag.flag-phone { background: var(--leave-fill); color: var(--leave-ink); }
.tag.flag-old_app { background: var(--fill); color: var(--muted); }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; }
.places-box .table-wrap { overflow-x: auto; }
.places { width: 100%; }
.places td { vertical-align: top; }
.chip.ok { background: var(--present-fill); color: var(--present-ink); }
.devices-card .device-list { display: grid; gap: 12px; }
.device { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; gap: 12px; }
.device.is-blocked { background: #fff8f7; border-color: #f3d2cd; }
.device header { display: flex; align-items: flex-start; gap: 12px; }
.device header > div { flex: 1; min-width: 0; }
.device h3 { font-size: 14px; font-weight: 600; }
.dev-icon { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--fill); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.device .facts { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 13px; }
.device .facts dt { color: var(--muted); }
.device .facts dd { margin: 0; overflow-wrap: anywhere; }
.device-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.device-actions input[type=text] { flex: 1 1 220px; min-width: 0; height: 32px; }
.danger-text { color: #b42318; }
.my-devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.my-devices li { display: flex; gap: 12px; align-items: flex-start; }
@media (max-width: 760px) { .device .facts { grid-template-columns: max-content minmax(0, 1fr); } }
.devices-card .device header .chip:not(.ok):not(.absent) { background: var(--fill); color: var(--muted); }
.start-privacy { margin-top: 6px; }
.places th, .places td { text-align: left; padding: 10px 16px; }

/* ---------- Email settings ---------- */
.sub-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.sub-nav a { padding: 5px 12px; border-radius: 99px; background: var(--fill); color: var(--ink); text-decoration: none; font-size: 13px; }
.sub-nav a:hover { background: var(--line-strong); }
.email-types { width: 100%; }
.email-types td, .email-types th { vertical-align: top; text-align: left; padding: 10px 14px; }
.email-types td.sub { font-size: 13px; color: var(--muted); max-width: 320px; }
.email-types .group-row th { background: var(--fill); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 14px; }
.email-types .tpl summary { cursor: pointer; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.email-types .tpl-fields { display: grid; gap: 6px; margin-top: 8px; max-width: 460px; }
.email-types .tpl-fields label { font-size: 12px; color: var(--muted); }
.email-types .tpl-fields .button { justify-self: start; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-strong); transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.email-log { width: 100%; }
.email-log td, .email-log th { text-align: left; vertical-align: top; padding: 9px 14px; }
.mail-facts { margin-top: 18px; }

/* ---------- Pop-up notifications and the phone policy bar ---------- */
.toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast { position: relative; display: block; padding: 12px 36px 12px 14px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; font-size: 13.5px; line-height: 1.45; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); border-left: 4px solid var(--brand); transition: opacity .35s, transform .35s; }
.toast:hover { background: #000; }
.toast.is-going { opacity: 0; transform: translateY(8px); }
.toast-close { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: #bbb; font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.bell-tools { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12.5px; }
.policy-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 70; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: #b42318; color: #fff; font-weight: 600; font-size: 14px; text-align: center; }
.policy-bar.is-view { position: static; background: var(--late-fill); color: var(--late-ink); font-weight: 500; padding: 8px 16px; }
.policy-bar.is-stopped { background: #171717; }
.policy-notice svg { vertical-align: -3px; margin-right: 4px; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.policy-bar.is-view { margin: 0 0 16px; border-radius: var(--radius); text-align: left; }

/* ---------- Working hours ---------- */
.policy-bar.is-window { background: #8a5a00; }
.chip.extra { background: var(--leave-fill); color: var(--leave-ink); }
.stat .of { display: inline; margin-left: 5px; font-style: normal; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stat .bar { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--fill); overflow: hidden; min-width: 90px; }
.stat .bar span { display: block; height: 100%; background: var(--present); border-radius: 2px; }
.window-closed .now-box p { margin: 0 0 8px; color: #4a4a4a; }
.window-closed .closed-title { display: flex; align-items: center; gap: 8px; color: var(--ink) !important; }
.window-closed .now-box .button svg { margin-right: 6px; }
.hours-week, .permits, .agreed { width: 100%; }
.hours-week td, .hours-week th, .permits td, .agreed td, .agreed th { text-align: left; vertical-align: middle; padding: 9px 14px; border-top: 1px solid var(--line); }
.hours-week thead th, .agreed thead th { border-top: 0; color: var(--muted); font-size: 12px; font-weight: 550; }
.hours-week tfoot td { font-weight: 600; }
.hours-week tr.is-today td { background: var(--canvas); }
.permits tr.dim td { opacity: .6; }
.permits .said-cell { color: #4a4a4a; max-width: 340px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.hours-input { width: 74px; }
.days.compact { gap: 4px; }
.days.compact span { min-width: 38px; height: 30px; padding: 0 6px; font-size: 12px; }
#mine .facts { margin-bottom: 14px; }
@media (max-width: 760px) {
  .permits td, .agreed td { padding: 8px 10px; }
  .permits .said-cell { display: none; }
  .days.compact span { min-width: 32px; }
}
.cell.present.short { background: var(--late-fill); color: var(--late-ink); box-shadow: inset 0 -3px 0 var(--lateish); }
.att td.t.warn { color: var(--late-ink); font-weight: 600; }
.mday .h em { font-style: normal; font-weight: 500; color: var(--muted); }
.mday .hrs { display: block; margin-top: 2px; }
.agreed input.hours-input { width: 80px; min-width: 0; }
.agreed .planned { color: var(--leave-ink); font-weight: 550; }
.agreed-from { margin-bottom: 8px; }
.notice.no-timer svg { vertical-align: -3px; margin-right: 4px; }
.cell.present.low { box-shadow: inset 0 -3px 0 #b42318; }
.cron-command { margin: 8px 0 4px; max-width: 760px; }
.cron-command input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.cron-when { margin: 8px 0 4px; border-collapse: collapse; }
.cron-when th, .cron-when td { border: 1px solid var(--line); padding: 4px 12px; font-size: 12.5px; text-align: center; }
.cron-when td { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; }
.cron-help { margin-top: 14px; }
.cron-help summary { cursor: pointer; font-weight: 550; }
.cron-jobs { width: 100%; }
.cron-jobs td, .cron-jobs th { text-align: left; padding: 8px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.cron-jobs thead th { border-top: 0; color: var(--muted); font-size: 12px; }
.installer-updates { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.installer-updates h3 { font-size: 15px; font-weight: 650; margin: 0 0 10px; }
.installer-updates .update-policy { display: block; max-width: 520px; }
.installer-updates .update-policy label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 500; color: #4a4a4a; }
.app-versions { width: 100%; margin-top: 12px; }
.app-versions th, .app-versions td { text-align: left; padding: 8px 14px; border-top: 1px solid var(--line); }
.app-versions thead th { border-top: 0; color: var(--muted); font-size: 12px; font-weight: 550; }
.notice.app-update a { font-weight: 600; }
.plain-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.access-table { width: 100%; }
.access-table th, .access-table td { text-align: left; vertical-align: middle; padding: 9px 14px; border-top: 1px solid var(--line); }
.access-table thead th { border-top: 0; color: var(--muted); font-size: 12px; font-weight: 550; }
.access-table select { width: auto; min-width: 170px; }
.access-table tr.is-given td { background: var(--leave-fill); }
.access-grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.access-grid { border-collapse: collapse; min-width: 100%; }
.access-grid th, .access-grid td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 12.5px; }
.access-grid thead th { font-size: 11.5px; color: var(--muted); font-weight: 600; min-width: 112px; }
.access-grid .who-col { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 190px; }
.access-grid .person { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.access-grid .person .sub { display: block; }
.access-grid td.is-given { background: var(--leave-fill); }
.access-grid .from-role { font-weight: 600; color: var(--present-ink); margin-bottom: 4px; }
.access-grid .from-role .sub { font-weight: 400; display: block; }
.access-grid select { width: 100%; min-width: 96px; height: 30px; font-size: 12.5px; padding: 0 6px; }

/* ---------- Photos with names (2.10) ---------- */

.person-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-text { display: flex; flex-direction: column; min-width: 0; }
.person-text .sub { font-size: 12px; }
.with-logo .pic { margin: 0 2px; }
.decision .pic, .report-title .sub .pic, p.sub .pic, span.sub .pic { vertical-align: -4px; }

.people-select { position: relative; display: block; min-width: 0; }
.filters .people-select, .input-pair .people-select, .live-tools .people-select { display: inline-block; }
.people-select > .pic { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; font-size: 9px; pointer-events: none; z-index: 1; }
.people-select.has-pic select { padding-left: 38px; }
.filters .people-select.has-pic select { max-width: 230px; }
@media (max-width: 860px) {
  .filters .people-select { flex: 1; min-width: 130px; }
  .filters .people-select select { width: 100%; max-width: none; }
}

.card-people { margin-top: 8px; font-size: 12px; color: #3d3d3d; }
.card-people .person { display: flex; gap: 6px; max-width: 100%; }
.card-foot { min-height: 0; }

.act-who { position: relative; flex: none; width: 30px; height: 30px; }
.act-badge { position: absolute; right: -4px; bottom: -3px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); color: #3d3d3d; }

.bell-item { display: flex; gap: 10px; align-items: flex-start; }
.bell-item .bell-text { flex: 1; min-width: 0; }
.bell-item .pic { margin-top: 1px; }
.app-pic { background: var(--fill); color: #3d3d3d; }
.day-log h2 .person { margin-left: 12px; font-size: 13px; font-weight: 500; vertical-align: middle; }

/* ---------- Board extras and the week view (2.10) ---------- */

.column-foot { margin: 10px 4px 2px; font-size: 12px; color: var(--muted); }
.column-foot a { color: inherit; text-decoration: underline; }
.task-card.is-done { opacity: .62; }
.task-card.is-done h3 { text-decoration: line-through; text-decoration-color: #9a9a9a; }
.task-card[draggable="false"] { cursor: pointer; }
.task-card .card-foot .status { font-size: 12px; }

.week-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.week-bar .hint { margin-left: 8px; }
.week-board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); scroll-behavior: auto; }
.week-board .column { min-height: 220px; }
.week-board .day-name { font-weight: 600; }
.week-board .day-date { color: var(--muted); font-weight: 500; }
.week-board .column.is-today { border-color: var(--ink); background: #fff; }
.week-board .column.is-past:not(.is-today) { background: #f6f6f6; }
.week-board .column.is-overdue { border-color: #f1c5c5; background: #fdf3f3; }
.week-board .column.is-overdue h2 { color: var(--danger); }
.week-board .column.is-undated { border-style: dashed; }
.week-board h2 .tag { margin-left: 4px; }
@media (max-width: 860px) {
  .week-board { grid-auto-columns: 78vw; }
}

/* ---------- Daily log (2.11) ---------- */

.page-hint { margin: -4px 0 14px; }
dialog#log { width: 600px; }
.label { display: block; margin-bottom: 6px; font-weight: 550; font-size: 13px; }
.log-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-option { height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 13px; cursor: pointer; }
.chip-option:hover { background: var(--fill); }
.chip-option.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.log-old-files { display: grid; gap: 4px; margin-bottom: 8px; }
.log-old-file { font-size: 13px; }

.log-entry { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.log-entry:last-child { border-bottom: 0; }
.log-main { flex: 1; min-width: 0; }
.log-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.log-kind { font-weight: 600; }
.log-head strong + .log-kind::before { content: "\00b7"; margin-right: 8px; color: var(--muted); font-weight: 400; }
.log-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.log-fact { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 9px; border-radius: 6px; background: var(--fill); font-size: 12.5px; overflow: hidden; }
.log-fact a { display: inline-flex; align-items: center; gap: 3px; color: #1f5fbf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-fact a:hover { text-decoration: underline; }
.log-note { margin-top: 6px; color: #3d3d3d; overflow-wrap: anywhere; }
.log-main .files { margin-top: 8px; }
.log-tools { display: flex; gap: 4px; flex: none; }
.log-tools form { display: inline; }

.log-totals { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.log-total { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.log-total b { font-size: 22px; font-weight: 650; line-height: 1.1; }
.log-total .sub { font-size: 12px; }

.box.attention { border-color: #f0d9a8; }
.box.attention > header { background: #fdf7ea; }
.missing-list { list-style: none; margin: 0; padding: 6px 16px; }
.missing-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0; }

.today-logs li { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.today-logs li:last-child { border-bottom: 0; }
.today-logs .grow { flex: 1; min-width: 0; }
.today-logs .done-mark { color: #2c7a0c; font-size: 12px; font-weight: 600; white-space: nowrap; }
.today-logs .todo-mark { color: #b26a00; font-size: 12px; white-space: nowrap; }
.box-foot { padding: 10px 16px; border-top: 1px solid var(--line); }
.box-pad .log-totals { margin: 0; }
.today-logs { list-style: none; margin: 0; padding: 0; }
.log-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.log-thumb { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--fill); }
.log-thumb:hover { border-color: var(--ink); }
.log-thumb img, .log-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.log-thumb .play-mark { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .25); }
.log-thumb .thumb-name { max-width: 88px; padding: 0 4px; font-size: 11px; color: #3d3d3d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Social media projects (2.12) ---------- */

.form-hint { margin: -6px 0 12px; }
.form-subtitle { margin: 20px 0 10px; font-size: 13px; font-weight: 600; }
.platform-list { display: grid; gap: 8px; }
.platform-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 10px; align-items: center; }
.platform-row input[disabled] { opacity: .45; }
.schedule-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.schedule-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; font-weight: 550; }
@media (max-width: 640px) { .platform-row { grid-template-columns: 1fr; gap: 4px; } }
.profile-links { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.profile-link { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--fill); color: #3d3d3d; font-size: 12px; font-weight: 550; }
.profile-link:hover { background: var(--fill-hover); color: var(--text); }
.log-link-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.log-link-label a { font-weight: 500; font-size: 12px; color: #1f5fbf; }
.log-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -4px; }

/* ---------- Posting calendar (2.12) ---------- */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cal-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.cal-grid { border-collapse: collapse; width: 100%; font-size: 12px; }
.cal-grid th, .cal-grid td { padding: 6px 2px; text-align: center; border-bottom: 1px solid var(--line); }
.cal-grid tbody tr:last-child th, .cal-grid tbody tr:last-child td { border-bottom: 0; }
.cal-grid thead th { background: var(--canvas); font-weight: 500; color: var(--muted); }
.cal-grid .cal-dow, .cal-grid .cal-dom { display: block; line-height: 1.25; }
.cal-grid .cal-dom { color: var(--text); font-weight: 600; }
.cal-grid .is-today { background: #f3f8ee; }
.cal-grid thead th.is-today { background: #e6f3da; }
.cal-grid .cal-name { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; padding: 8px 12px; min-width: 130px; font-weight: 600; white-space: nowrap; }
.cal-grid thead .cal-name { background: var(--canvas); }
.cal-grid .cal-name a { display: inline-flex; align-items: center; gap: 4px; color: var(--text); }
.cal-grid .cal-name a:hover { color: #1f5fbf; }
.cal-grid .cal-name .sub { display: block; font-weight: 400; font-size: 11px; }
.cal-grid .cal-total { padding: 6px 12px; text-align: right; white-space: nowrap; min-width: 70px; }
.cal-cell { display: inline-block; width: 18px; height: 18px; border-radius: 5px; vertical-align: middle; box-sizing: border-box; }
.cal-cell.is-posted { background: #2c7a0c; }
a.cal-cell.is-posted:hover { background: #1f5a08; box-shadow: 0 0 0 2px #cfe8bd; }
.cal-cell.is-missed { border: 2px solid var(--danger); background: #fff; }
.cal-cell.is-today { background: #e3a72f; }
.cal-cell.is-planned { border: 1.5px dashed #9a9a9a; background: #fff; }
.cal-cell.is-none { background: transparent; }
.cal-grid.is-week td { padding: 8px 6px; }
.cal-grid.is-week .cal-cell { width: 100%; min-width: 74px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.cal-grid.is-week .cal-cell.is-posted { color: #fff; }
.cal-grid.is-week .cal-cell.is-missed { color: var(--danger); }
.cal-grid.is-week .cal-cell.is-today { color: #3d2a00; }
.cal-grid.is-week .cal-cell.is-planned { color: var(--muted); font-weight: 500; }
.cal-type { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--fill); color: var(--muted); font-size: 11px; font-weight: 700; }
.cal-type.is-done { background: var(--ink); color: #fff; }
.cal-pic { display: inline-block; width: 26px; height: 26px; border-radius: 5px; overflow: hidden; vertical-align: middle; border: 1px solid var(--line); }
.cal-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cal-grid.is-week .cal-pic { width: 54px; height: 54px; border-radius: 8px; }
.cal-key { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 12px; color: #3d3d3d; margin-bottom: 20px; }
.cal-key span { display: inline-flex; align-items: center; gap: 6px; }
.cal-key i { width: 14px; height: 14px; }
.cal-grid:not(.is-week) th, .cal-grid:not(.is-week) td { padding: 5px 1px; }
.cal-grid:not(.is-week) .cal-cell { width: 16px; height: 16px; border-radius: 4px; }
.cal-grid:not(.is-week) .cal-type { width: 17px; height: 17px; font-size: 10px; }
.cal-grid:not(.is-week) .cal-pic { width: 20px; height: 20px; }
.cal-grid .cal-name { min-width: 112px; }
.cal-grid:not(.is-week) .cal-name, .cal-grid:not(.is-week) .cal-total { padding: 6px 10px; }
.cal-grid:not(.is-week) .cal-name { min-width: 100px; padding-right: 6px; } .cal-grid:not(.is-week) .cal-total { padding-left: 4px; min-width: 56px; }
.today-idea { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12px; color: #1f5fbf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-link.is-tool { background: var(--ink); color: #fff; }
.profile-link.is-tool:hover { background: #333; color: #fff; }
.cal-idea { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; line-height: 1.3; text-align: left; color: #3d3d3d; padding: 0 2px; }
.cal-idea-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1f5fbf; }
.cal-grid .cal-name a { font-weight: 600; }

/* ---------- Content plan (2.13) ---------- */

.plan-days { display: grid; gap: 10px; margin-bottom: 14px; }
.plan-day { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.plan-day.is-today { border-color: var(--ink); }
.plan-day.is-past { background: #fbfbfb; }
.plan-when { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.plan-when strong { font-size: 14px; }
.plan-when select { height: 30px; font-size: 12.5px; }
.plan-by { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--fill); color: #3d3d3d; }
.plan-by.is-client { background: #eaf1fd; color: #1f4f9c; }
.plan-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.plan-main .plan-idea { font-weight: 600; }
.plan-idea-text { font-weight: 600; font-size: 14px; }
.plan-caption { white-space: normal; color: #3d3d3d; }
.plan-files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plan-file { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.plan-file a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); max-width: 220px; }
.plan-file a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-file img { width: 34px; height: 34px; border-radius: 5px; object-fit: cover; }
.plan-remove { font-size: 12px; color: var(--muted); }
.attach.small { height: 30px; font-size: 12.5px; padding: 0 10px; }
.plan-who { font-size: 11.5px; }
.plan-save { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; position: sticky; bottom: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.06); margin-bottom: 20px; }
@media (max-width: 720px) { .plan-day { grid-template-columns: 1fr; gap: 10px; } .plan-when { flex-direction: row; flex-wrap: wrap; align-items: center; } }
.page-hint a { text-decoration: underline; color: inherit; } .page-hint a:hover { color: var(--text); }
.posts-row { max-width: 360px; margin-bottom: 10px; grid-template-columns: 96px minmax(0, 1fr); }
/* 2.14: several posts a day, approvals on plans, posted tab, report */
.cal-cell.is-partial { background: linear-gradient(135deg, #2c7a0c 50%, #cfe8bd 50%); }
.cal-grid.is-week .cal-cell.is-partial { background: #cfe8bd; color: #1f5a08; }
a.cal-cell.is-partial:hover { box-shadow: 0 0 0 2px #cfe8bd; }
.cal-type { min-width: 20px; width: auto; padding: 0 3px; box-sizing: border-box; }
.cal-pic { position: relative; }
.cal-more { position: absolute; right: 1px; bottom: 1px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: var(--ink); color: #fff; font: 700 10px/14px inherit; font-style: normal; text-align: center; }
.cal-extra { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; color: #2c7a0c; }
.cal-approval { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin-left: 3px; }
.cal-approval.is-approved { background: #2c7a0c; } .cal-approval.is-pending { background: #e3a72f; } .cal-approval.is-changes { background: var(--danger); }
.cal-grid.is-week .cal-approval { width: auto; height: auto; padding: 1px 7px; border-radius: 999px; margin: 4px 0 0; font-size: 11px; font-weight: 600; color: #fff; }
.cal-grid.is-week .cal-approval.is-pending { color: #3d2a00; }
.plan-slots { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.plan-main.is-slot { padding-top: 12px; border-top: 1px dashed var(--line); }
.plan-main.is-slot:first-child { padding-top: 0; border-top: 0; }
.plan-slot-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plan-slot-head select { height: 30px; font-size: 12.5px; width: auto; }
.plan-slot-head a.tag { text-decoration: none; }
.plan-slot-no { font-size: 13px; }
.posted-sum { width: 100%; border-collapse: collapse; font-size: 13px; }
.posted-sum th, .posted-sum td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.posted-sum th:first-child, .posted-sum td:first-child { text-align: left; }
.posted-sum thead th { color: var(--muted); font-weight: 500; }
.follower-input { width: 110px; text-align: right; }
.today-approval { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; }
.today-approval.is-pending { color: #8a5a00; } .today-approval.is-changes { color: var(--danger); } .today-approval.is-approved { color: #2c7a0c; }
/* 2.15: SEO */
.target-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; margin-bottom: 14px; }
.target-input { width: 70px; text-align: right; }
.seo-targets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.seo-target { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; align-items: flex-start; }
.seo-target strong { font-size: 22px; line-height: 1.1; }
.seo-target strong .sub { font-size: 14px; font-weight: 500; }
.st-label { font-size: 12px; color: var(--muted); }
.st-bar { display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.st-bar i { display: block; height: 100%; background: #2c7a0c; border-radius: 3px; }
.st-bar i.is-behind { background: #e3a72f; }
.seo-plan-line { margin-top: 12px; }
.seo-grid .cal-name { min-width: 130px; }
.cal-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 5px; background: #2c7a0c; color: #fff; font-size: 11px; font-weight: 700; box-sizing: border-box; }
.rank-summary { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--line); }
.rank-summary b { font-size: 15px; }
.rank-up { color: #2c7a0c; font-weight: 600; } .rank-down { color: var(--danger); font-weight: 600; } .rank-same { color: var(--muted); }
.rank-table th, .rank-table td { white-space: nowrap; }
.rank-table td:first-child { white-space: normal; min-width: 180px; }
.rank-spark { color: #2c7a0c; }
.rank-input { width: 70px; text-align: right; }
.rank-wrap { overflow-x: auto; }
.inline-label { font-size: 13px; font-weight: 600; }
.add-keywords-form { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.add-keywords-form textarea { flex: 1; }
.seo-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .seo-columns { grid-template-columns: 1fr; } }
.seo-items { display: flex; flex-direction: column; }
.seo-item { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.seo-item:last-child { border-bottom: 0; }
.seo-item.is-done { background: #f6fbf2; }
.seo-item.is-new { background: #fcfcfc; }
.seo-item-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seo-item-head:empty { display: none; }
.seo-item-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 150px; gap: 8px; align-items: center; }
.seo-item-fields .wide { grid-column: 1 / 3; }
.seo-item-fields .plan-remove { grid-column: 3; }
@media (max-width: 720px) { .seo-item-fields { grid-template-columns: 1fr; } .seo-item-fields .wide, .seo-item-fields .plan-remove { grid-column: auto; } }
.report-sub { padding-bottom: 0; }
.report-sub h3 { font-size: 13px; }
.backlink-list summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.rank-form .results-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rank-form .results-actions input[type=date] { width: 170px; }
.seo-line { display: block; font-size: 12px; }
/* 2.16: client updates */
.cu-title { font-size: 20px; margin: 4px 0 14px; }
.cu-note { padding: 14px 16px; margin-bottom: 16px; border-left: 3px solid #9def69; background: #f6fbf2; border-radius: 8px; font-size: 14px; line-height: 1.55; }
.cu-counts { display: flex; flex-wrap: wrap; gap: 10px; }
.cu-count { display: flex; flex-direction: column; min-width: 110px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cu-count b { font-size: 22px; line-height: 1.15; }
.cu-count span { font-size: 12px; color: var(--muted); }
.cu-progress { margin-top: 10px; font-size: 13px; }
.cu-list { padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.cu-list h3 { font-size: 13px; margin-bottom: 6px; }
.cu-list ul, .cu-next { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.cu-next { padding: 12px 16px 14px 34px; }
.cu-links { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 6px; }
.cu-links a { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--fill); color: var(--text); text-decoration: none; }
.cu-send { display: flex; flex-direction: column; gap: 8px; }
.cu-send-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cu-settings { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 18px; }
.cu-make select { width: auto; }
@media print { .cu-send, .cu-settings { display: none; } }
.cu-latest { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .cu-latest span { flex: 1; }
.steps-list { margin: 10px 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.5; }
.google-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.google-form textarea { width: 100%; font-family: ui-monospace, monospace; font-size: 12px; }
.public-page { background: var(--canvas, #f7f7f7); }
.public-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: #000; }
.public-head img { height: 26px; width: auto; }
.public-main { max-width: 960px; margin: 0 auto; padding: 20px 16px 40px; }
@media print { .public-head .button { display: none; } }
.cu-link { margin-bottom: 12px; } @media print { .cu-link { display: none; } }
.ads-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; } .ads-form label { display: flex; flex-direction: column; gap: 3px; } .cu-figures { margin-top: 10px; }
.stage-steps { display: flex; list-style: none; margin: 8px 0; padding: 0; gap: 4px; flex-wrap: wrap; }
.stage-steps li { flex: 1; min-width: 90px; padding: 7px 10px; border-radius: 8px; background: var(--fill); font-size: 12px; color: var(--muted); text-align: center; }
.stage-steps li.is-done { background: #e3f2d6; color: #1f5a08; }
.stage-steps li.is-now { background: var(--ink); color: #fff; font-weight: 600; }
.stage-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 12px; }
.stage-form select { width: auto; }
.stage-form input[type=text] { flex: 1; min-width: 200px; }
/* Website projects */
.web-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 12px 0 16px; }
.web-stats > * { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); color: inherit; text-decoration: none; }
.web-stats a:hover { border-color: var(--muted); }
.web-stats b { font-size: 20px; }
.web-stats > * > span { font-size: 12px; color: var(--muted); }
.web-stats a.is-warn { border-color: #e7b448; }
.web-stats a.is-bad { border-color: var(--danger); } .web-stats a.is-bad b { color: var(--danger); }
@media (max-width: 900px) { .web-stats { grid-template-columns: repeat(2, 1fr); } }
.web-pages td { vertical-align: top; }
.web-pages input[type=text], .web-pages textarea, .web-pages select { width: 100%; min-width: 120px; }
.web-pages .sub-input { margin-top: 4px; font-size: 12px; }
.web-pages tr.is-new td { background: var(--fill); }
.check.plain.small { font-size: 12px; margin-top: 4px; }
.web-note { margin-top: 6px; padding: 6px 8px; border-radius: 6px; background: var(--fill); font-size: 12.5px; white-space: normal; max-height: 160px; overflow: auto; }
.web-files { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.web-files a { display: inline-flex; align-items: center; gap: 4px; }
.web-checklist { list-style: none; margin: 0; padding: 4px 16px 8px; }
.web-checklist li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.web-checklist li:last-child { border-bottom: 0; }
.web-checklist li.is-done label { color: var(--muted); }
.web-big { margin: 0 0 6px; } .web-big b { font-size: 24px; } .web-big.is-bad b { color: var(--danger); }
.web-speed { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.web-speed > div { display: grid; grid-template-columns: 44px 1fr; column-gap: 10px; align-items: center; }
.web-speed .sub { grid-column: 2; }
.web-score { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-size: 15px; font-weight: 700; grid-row: span 2; }
.web-ask { padding: 12px 16px; border-top: 1px solid var(--line); }
.web-ask h3 { margin: 0 0 4px; font-size: 15px; }
.web-ask p { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.web-ask-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.web-ask-form textarea { width: 100%; }
.web-more summary { list-style: none; cursor: pointer; } .web-more summary::-webkit-details-marker { display: none; }
.web-more[open] { min-width: 260px; }
.cu-needed ul { margin: 6px 0 0; padding-left: 18px; } .cu-web { margin-top: 10px; }
.web-pages-wrap { overflow-x: auto; position: relative; }
@media (max-width: 700px) { .web-pages { min-width: 640px; } }
/* Reputation, branding and automations */
.stars { color: #e3a008; letter-spacing: 1px; white-space: nowrap; }
.stars-off { color: var(--line-strong); }
.rep-review, .brand-item { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rep-review:last-of-type, .brand-item:last-of-type { border-bottom: 0; }
.rep-review.is-low { background: #fffaf2; }
.rep-head, .brand-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rep-body { margin: 6px 0 0; font-size: 13.5px; }
.rep-reply { margin: 6px 0 0; padding: 6px 10px; border-left: 3px solid var(--line-strong); color: var(--muted); font-size: 13px; }
.rep-act { margin-top: 6px; }
.rep-act summary { list-style: none; cursor: pointer; display: inline; } .rep-act summary::-webkit-details-marker { display: none; }
.rep-form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; max-width: 720px; }
.rep-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .rep-row select { width: auto; } .rep-row input { flex: 1; min-width: 200px; }
.rep-inputs { white-space: nowrap; } .rep-inputs input { width: 70px; display: inline-block; }
.rep-targets > div { display: grid; grid-template-columns: 200px 1fr 90px; gap: 10px; align-items: center; margin-bottom: 8px; }
@media (max-width: 700px) { .rep-targets > div { grid-template-columns: 1fr 70px; } .rep-targets .bar { grid-column: 1 / -1; grid-row: 2; } }
.rep-add .fields { margin-bottom: 10px; }
.brand-brief { margin: 4px 0 0; }
.brand-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 8px; }
.brand-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.attach.small { font-size: 12px; }
.auto-figs { border-bottom: 0; padding: 8px 0 0; }
.auto-days { display: flex; align-items: flex-end; gap: 2px; height: 44px; margin-top: 8px; }
.auto-days span { flex: 0 0 8px; background: var(--brand); border-radius: 2px 2px 0 0; }
.auto-table input, .auto-table select, .auto-table textarea { width: 100%; }
/* Billing and invoices */
.fee-table input, .fee-table select { width: 100%; min-width: 90px; }
.web-pages tr.is-off td { opacity: .55; }
td.num, th.num { text-align: right; white-space: nowrap; }
.inv-actions .results-actions { margin: 0 0 16px; } .inv-actions .input-pair { max-width: 560px; flex: 1; }
.pay-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .pay-form input, .pay-form select { width: auto; } .pay-form input[name=note] { flex: 1; min-width: 160px; }
.invoice-paper { max-width: 820px; margin: 0 auto 24px; background: #fff; color: #171717; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 13.5px; }
.ip-brand { background: #000; padding: 16px 28px; -webkit-print-color-adjust: exact; print-color-adjust: exact; } .ip-brand img { height: 30px; width: auto; display: block; }
.ip-head { display: flex; justify-content: space-between; gap: 24px; padding: 24px 28px 8px; flex-wrap: wrap; }
.ip-from { display: flex; flex-direction: column; gap: 2px; color: #444; } .ip-from b { color: #171717; font-size: 15px; }
.ip-title h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.01em; text-align: right; }
.ip-title table { border-collapse: collapse; margin-left: auto; } .ip-title th { text-align: left; font-weight: 500; color: #6b6b6b; padding: 2px 14px 2px 0; } .ip-title td { text-align: right; font-weight: 600; padding: 2px 0; }
.ip-to { padding: 8px 28px 16px; } .ip-to div { margin-top: 2px; }
.ip-lines { width: calc(100% - 56px); margin: 0 28px; border-collapse: collapse; }
.ip-lines th, .ip-lines td { padding: 9px 6px; border-bottom: 1px solid #ededed; text-align: left; vertical-align: top; }
.ip-lines thead th { font-size: 12px; color: #6b6b6b; font-weight: 600; border-bottom: 2px solid #171717; }
.ip-lines tfoot th { text-align: right; font-weight: 500; color: #444; border-bottom: 0; padding: 6px; } .ip-lines tfoot td { border-bottom: 0; padding: 6px; }
.ip-lines .ip-total th, .ip-lines .ip-total td { font-weight: 700; color: #171717; font-size: 15px; border-top: 2px solid #171717; }
.ip-lines .num { text-align: right; white-space: nowrap; }
.ip-stamp { margin: 12px 28px 0; display: inline-block; padding: 4px 12px; border: 2px solid #c0392b; color: #c0392b; border-radius: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; } .ip-stamp.is-paid { border-color: #2c6e0e; color: #2c6e0e; }
.ip-notes { margin: 16px 28px 0; }
.ip-pay { margin: 16px 28px 0; padding: 12px 14px; background: #f6f6f6; border-radius: 8px; -webkit-print-color-adjust: exact; print-color-adjust: exact; } .ip-pay div { margin-top: 4px; }
.ip-footer { margin: 20px 28px 24px; color: #6b6b6b; font-size: 12px; }
.invoice-paper > :last-child { margin-bottom: 24px; }
@media (max-width: 640px) { .ip-head, .ip-to { padding-left: 16px; padding-right: 16px; } .ip-lines { width: calc(100% - 32px); margin: 0 16px; } .ip-title h1 { text-align: left; } .ip-title table { margin-left: 0; } .ip-brand { padding: 14px 16px; } }
@media print { .public-head, .ip-hint { display: none; } .public-main { padding: 0; } .invoice-paper { border: 0; border-radius: 0; max-width: none; } body.public-page { background: #fff; } }
.billing-filter { flex-wrap: wrap; max-width: 100%; }
/* Payroll */
.salary-form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; margin-top: 8px; }
.salary-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); } .salary-form .wide { grid-column: span 4; }
@media (max-width: 800px) { .salary-form { grid-template-columns: 1fr 1fr; } .salary-form .wide { grid-column: 1 / -1; } }
.salary-history { margin-top: 8px; font-size: 13px; } .salary-history td { padding: 4px 8px 4px 0; }
.payslip-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding: 0 28px; } .payslip-cols .ip-lines { width: 100%; margin: 0; }
@media (max-width: 640px) { .payslip-cols { grid-template-columns: 1fr; padding: 0 16px; } }
.payslip-net { margin: 18px 28px 0; padding: 12px 14px; background: #f6f6f6; border-radius: 8px; font-size: 15px; -webkit-print-color-adjust: exact; print-color-adjust: exact; } .payslip-net b { font-size: 20px; margin-left: 8px; }
.profit-table tr.is-loss td { background: var(--danger-fill); } .web-stats > .is-bad { border-color: var(--danger); }
/* Two-step login */
.totp-setup { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin-top: 12px; }
.totp-qr { width: 190px; height: 190px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; } .totp-qr svg { width: 100%; height: 100%; display: block; }
.totp-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; } .totp-form label { width: 100%; font-size: 12.5px; color: var(--muted); } .totp-form input { width: 160px; letter-spacing: .1em; }
.totp-actions { display: flex; flex-wrap: wrap; gap: 24px; }
.recovery-codes { columns: 2; list-style: none; padding: 0; margin: 10px 0; font-family: ui-monospace, monospace; font-size: 15px; } .recovery-codes li { padding: 3px 0; }
.recovery-card { border-color: #e7b448; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media print { body:has(.recovery-card) .sidebar, body:has(.recovery-card) .tabs-row, body:has(.recovery-card) .card:not(.recovery-card), body:has(.recovery-card) .form-actions { display: none !important; } }
.payslip-cols { align-items: start; }
/* HR file */
.doc-form, .policy-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; } .doc-form select, .doc-form input[type=date] { width: auto; } .doc-form input[name=title] { flex: 1; min-width: 200px; }
.policy-form { flex-direction: column; align-items: stretch; max-width: 640px; } .policy-form .button { align-self: flex-start; }
.tick-form { margin: 0; } .inline-add { display: flex; gap: 8px; } .inline-add input { flex: 1; }
.give-form { margin: 0 6px 6px 0; }
.results-actions > input[type=date], .results-actions > select, .results-actions > input[type=text], .results-actions .inline-label input { width: auto; } .results-actions > .hint { flex-basis: 100%; }

/* ---------- 2.24: milestones, timeline, hours, meetings ---------- */
.ms-row.is-next td { background: #fbfdf8; }
.ms-diamond { display: inline-block; width: 10px; height: 10px; margin-right: 8px; transform: rotate(45deg); border: 2px solid #b5b5b5; background: #fff; vertical-align: 0; }
.ms-diamond.done { background: #4fc41a; border-color: #4fc41a; }
.ms-diamond.late { border-color: var(--danger); }
.ms-progress { min-width: 130px; } .ms-progress .bar { width: 120px; margin-bottom: 3px; }
.ms-assign { display: grid; gap: 10px; margin-top: 10px; }
.ms-task-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; max-height: 260px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.ms-assign .button { justify-self: start; }
.gantt-wrap { overflow-x: auto; position: relative; }
.gantt { position: relative; font-size: 12px; }
.g-row { display: grid; grid-template-columns: 230px 1fr; border-bottom: 1px solid var(--line); min-height: 34px; }
.g-row:last-child { border-bottom: 0; }
.g-label { position: sticky; left: 0; z-index: 2; background: #fff; padding: 6px 12px 6px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.g-label a, .g-label b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-label .sub { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-track { position: relative; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / var(--weeks, 1)) 100%; }
.g-head { min-height: 30px; background: var(--canvas); } .g-head .g-label { background: var(--canvas); color: var(--muted); font-weight: 600; }
.g-week { position: absolute; top: 7px; padding-left: 5px; color: var(--muted); white-space: nowrap; border-left: 1px solid var(--line-strong); height: 100%; top: 0; line-height: 30px; }
.g-ms { background: #fafafa; } .g-ms .g-label { background: #fafafa; }
.g-bar { position: absolute; top: 50%; height: 14px; margin-top: -7px; border-radius: 4px; background: #c9c9c9; min-width: 6px; }
.g-bar.in_progress { background: #2f80ed; } .g-bar.review { background: #f2a20c; } .g-bar.done { background: #4fc41a; }
.g-bar.is-late { box-shadow: inset 0 0 0 2px var(--danger); }
.g-bar.is-waiting { background: repeating-linear-gradient(45deg, #d6d6d6, #d6d6d6 4px, #ececec 4px, #ececec 8px); }
.g-diamond { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; transform: rotate(45deg); background: #fff; border: 2px solid #171717; z-index: 1; }
.g-diamond.done { background: #4fc41a; border-color: #4fc41a; } .g-diamond.late { border-color: var(--danger); }
.g-today { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--brand); }
.g-nodate { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 11px; }
.g-key { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.g-key span { display: inline-flex; align-items: center; gap: 6px; } .g-key .g-bar { position: static; display: inline-block; width: 22px; margin: 0; }
.g-key .hint { width: 100%; margin: 4px 0 0; }
.g-today-key { display: inline-block; width: 0; height: 14px; border-left: 2px solid var(--brand); }
.est-bar { display: block; width: 140px; max-width: 100%; height: 4px; margin-top: 5px; border-radius: 2px; background: var(--fill-hover); overflow: hidden; }
.est-bar span { display: block; height: 100%; background: #171717; } .est-bar.is-over span { background: var(--danger); }
.diff-up { color: #96281b; font-weight: 600; } .diff-down { color: #2c6e0e; font-weight: 600; }
.est-ratio { margin: -4px 0 14px; }
tr.is-over td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.waits .wait-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 4px; }
.waits .wait-add select { max-width: 100%; }
.waiting-note { margin: 0 0 12px; display: flex; gap: 8px; align-items: flex-start; }
.meeting-head h2 { margin: 0 0 4px; font-size: 20px; }
.meeting-head p { margin: 0 0 8px; }
.meeting-people { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.meeting-cols { align-items: start; }
.rich h3, .rich h4, .rich h5 { margin: 16px 0 6px; font-size: 14px; } .rich h3 { font-size: 16px; }
.rich > :first-child { margin-top: 0; } .rich p { margin: 0 0 10px; } .rich ul, .rich ol { margin: 0 0 10px; padding-left: 20px; } .rich li { margin-bottom: 3px; }
.action-list { list-style: none; margin: 0; padding: 0; }
.action-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.action-list li:last-child { border-bottom: 0; }
.action-list .a-text { font-weight: 550; flex: 1 1 200px; } .action-list li.is-done .a-text { text-decoration: line-through; color: var(--muted); }
.action-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.action-row { display: grid; grid-template-columns: minmax(180px, 1fr) 170px 150px auto; gap: 8px; align-items: center; }
.action-row .a-task { white-space: nowrap; }
.meeting-options { margin-top: 14px; }
@media (max-width: 760px) { .action-row { grid-template-columns: 1fr 1fr; } .action-row input[type=text] { grid-column: 1 / -1; } .g-row { grid-template-columns: 150px 1fr; } }

/* ---------- 2.24: proposals, welcome form, feedback, card payments ---------- */
.pp-title { margin: 8px 28px 6px; font-size: 20px; letter-spacing: -.01em; }
.pp-body { margin: 0 28px 10px; font-size: 14px; line-height: 1.6; }
.pp-sub { margin: 18px 28px 6px; font-size: 14px; }
.box-pad .pp-sub, .box-pad > .pp-sub { margin: 4px 0 8px; display: flex; align-items: center; gap: 6px; }
.ip-lines .pp-group th { padding-top: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6b6b6b; border-bottom: 1px solid #ededed; }
.pp-vat { margin: 8px 28px 0; }
.pp-file { margin: 14px 28px 0; }
.pp-signed { margin: 18px 28px 0; padding: 12px 14px; border-radius: 8px; background: #effbe7; color: #2c6e0e; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pp-signed div { color: #262626; margin-top: 2px; } .pp-signed.is-declined { background: #f6f6f6; color: #444; }
.decide-box { max-width: 820px; margin: 0 auto 24px; }
.decide-form { display: grid; gap: 10px; } .decide-form p { margin: 0; }
.decline-more summary { cursor: pointer; color: var(--muted); } .decline-more form { margin-top: 10px; }
.proposal-actions { margin: 0 0 16px; }
.box-pad-x { padding: 0 16px; }
.paynow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; max-width: 820px; margin: 0 auto 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdf8; }
.paynow-done { max-width: 820px; margin: 0 auto 14px; display: flex; gap: 8px; align-items: center; }
@media print { .paynow, .decide-box { display: none; } }
.setup-steps { margin: 6px 0 12px; padding-left: 20px; } .setup-steps li { margin-bottom: 4px; } .setup-steps code, .logins-table code { font-size: 12px; background: var(--fill); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.welcome-page { max-width: 900px; } .welcome-page .ip-brand { border-radius: 10px; margin-bottom: 18px; }
.welcome-title { margin: 0 0 4px; font-size: 22px; }
.welcome-page > .sub { margin: 0 0 16px; }
.wf-table input[type=text], .wf-table input[type=email], .wf-table input[type=tel], .wf-table input[type=password] { width: 100%; min-width: 120px; }
.welcome-actions { margin-bottom: 20px; }
.welcome-answers dd { white-space: normal; }
.feedback-page { max-width: 640px; } .feedback-page .ip-brand { border-radius: 10px; margin-bottom: 18px; }
.feedback-box.is-big header h2 { font-size: 16px; }
.score-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0 14px; }
.score-pick label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; text-align: center; background: #fff; }
.score-pick input { position: absolute; opacity: 0; pointer-events: none; }
.score-pick b { font-size: 20px; line-height: 1.1; } .score-pick span { font-size: 11px; color: var(--muted); line-height: 1.2; }
.score-pick label:hover { background: var(--fill); }
.score-pick label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--fill); }
.score-pick label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.score-chip { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 700; font-size: 12px; background: var(--fill-hover); color: #171717; }
.score-chip.s1, .score-chip.s2 { background: var(--danger-fill); color: #96281b; } .score-chip.s3 { background: #fff4dc; color: #8a5a00; } .score-chip.s4, .score-chip.s5 { background: #effbe7; color: #2c6e0e; }
.feedback-list { list-style: none; margin: 0; padding: 0; }
.feedback-list li { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); } .feedback-list li:last-child { border-bottom: 0; }
.feedback-list p { margin: 4px 0 0; }
.portal-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .portal-ask span { flex: 1 1 220px; }
.ms-steps { list-style: none; margin: 0; padding: 14px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ms-steps li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-top: 26px; }
.ms-steps li::before { content: ""; position: absolute; top: 9px; left: 22px; right: -12px; height: 2px; background: var(--line-strong); }
.ms-steps li:last-child::before { display: none; }
.ms-steps li.is-done::before { background: #4fc41a; }
.ms-dot { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; display: flex; align-items: center; justify-content: center; color: #fff; z-index: 1; }
.ms-steps li.is-done .ms-dot { background: #4fc41a; border-color: #4fc41a; }
.ms-steps li.is-next .ms-dot { border-color: var(--ink); box-shadow: 0 0 0 3px var(--brand); }
@media (max-width: 640px) { .score-pick { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; } .score-pick span { font-size: 10px; } .pp-title, .pp-body, .pp-sub, .pp-vat, .pp-file, .pp-signed { margin-left: 16px; margin-right: 16px; } .ms-steps { grid-template-columns: 1fr; } .ms-steps li::before { display: none; } }
.public-page .box { background: #fff; }
.welcome-form .plain-list, #welcome .plain-list { list-style: none; padding-left: 0; }
.welcome-form .plain-list li, #welcome .plain-list li { display: flex; align-items: center; gap: 6px; }
.welcome-form .box > header span, .box > header span:has(svg) { display: inline-flex; align-items: center; gap: 4px; }
.welcome-form .plain-list li > svg, #welcome .plain-list a { display: inline-flex; align-items: center; gap: 5px; }


/* Personal time display. Small, wrapping labels; no effect on workday totals. */
.time-zone-strip { display:flex; flex-wrap:wrap; gap:4px 18px; margin:0 0 16px; font-size:12px; line-height:1.6; color:var(--muted, #666); }
.time-zone-strip > span { min-width:0; overflow-wrap:anywhere; }
.time-zone-strip a { text-decoration:underline; text-underline-offset:3px; }
.time-zone-refresh { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.time-zone-refresh[hidden] { display:none; }
#time-zone select { width:100%; min-width:0; max-width:100%; }
#time-zone .hint, #correction .hint, #review .hint, .shot figcaption { overflow-wrap:anywhere; }
.shots-label { overflow-wrap:anywhere; line-height:1.5; }
@media (max-width:600px) {
  .time-zone-strip { flex-direction:column; gap:3px; }
  .log .when { white-space:normal; overflow-wrap:anywhere; }
  #time-zone .fields, #correction .fields, #review .fields { grid-template-columns:minmax(0,1fr); }
}

@media (max-width:600px) {
  .timesheet-filters .count { white-space:normal; flex-basis:100%; min-width:0; }
  .day-log > header { flex-wrap:wrap; }
  .day-log > header > span { white-space:normal; min-width:0; overflow:visible; text-overflow:clip; }
}

/* HR dashboard freshness and compact team work status. */
.dashboard-data-refresh { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px 14px; padding:11px 13px; margin-bottom:12px; border:1px solid var(--line); border-radius:10px; background:var(--soft); }
.dashboard-data-refresh-copy { min-width:0; }
.dashboard-data-refresh-copy strong, .dashboard-data-refresh-copy span { display:block; overflow-wrap:anywhere; }
.dashboard-data-refresh-copy strong { font-size:13px; }
.dashboard-data-refresh-copy span { margin-top:2px; color:var(--muted); font-size:11px; line-height:1.45; }
.dashboard-data-refresh .button { justify-self:end; white-space:normal; }
.dashboard-data-refresh-warning { grid-column:1 / -1; margin:0; color:#855800; font-size:12px; line-height:1.45; }
.dashboard-data-refresh.is-stale { border-color:#e0bf74; background:#fffaf0; }
.dashboard-data-refresh[aria-busy="true"] .button, .dashboard-team[aria-busy="true"] [data-status-refresh] { cursor:wait; opacity:.7; }

.dashboard-team > header { align-items:flex-start; flex-wrap:wrap; gap:10px 14px; }
.dashboard-team-heading { flex:1 1 220px; min-width:0; }
.dashboard-team-heading .sub { display:block; margin-top:2px; white-space:normal; overflow-wrap:anywhere; }
.dashboard-team-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.dashboard-team-actions .button { white-space:normal; }
.dashboard-team-counts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:14px 16px 10px; }
.dashboard-team-count { min-width:0; padding:12px; border:1px solid var(--line); border-radius:9px; background:var(--page); }
.dashboard-team-count strong, .dashboard-team-count span, .dashboard-team-count small { display:block; overflow-wrap:anywhere; }
.dashboard-team-count strong { font-size:22px; line-height:1; }
.dashboard-team-count span { margin-top:5px; font-size:12px; font-weight:700; }
.dashboard-team-count small { margin-top:3px; color:var(--muted); font-size:10px; line-height:1.35; }
.dashboard-team-count.is-idle strong { color:#855800; }
.dashboard-team-count.is-break strong { color:#4654a3; }
.dashboard-team-context { margin:0; padding:0 16px 14px; color:var(--muted); font-size:12px; line-height:1.5; }
.dashboard-team-foot { display:flex; flex-wrap:wrap; gap:4px 12px; justify-content:space-between; color:var(--muted); font-size:11px; }
.dashboard-team-warning { flex-basis:100%; margin:4px 0 0; color:#855800; }
.dashboard-team.is-stale .dashboard-team-count { opacity:.68; }
.dashboard-team.is-unavailable .dashboard-team-counts, .dashboard-team.is-unavailable .dashboard-team-context { display:none; }

@media (max-width:600px) {
  .dashboard-data-refresh { grid-template-columns:minmax(0,1fr); }
  .dashboard-data-refresh .button { justify-self:stretch; }
  .dashboard-team-actions { width:100%; justify-content:stretch; }
  .dashboard-team-actions .button { flex:1 1 130px; justify-content:center; }
  .dashboard-team-counts { gap:7px; padding:12px 12px 9px; }
  .dashboard-team-count { padding:10px 8px; }
  .dashboard-team-count strong { font-size:19px; }
  .dashboard-team-count span { font-size:11px; }
  .dashboard-team-count small { font-size:9px; }
  .dashboard-team-context { padding:0 12px 12px; }
}

/* Item 6: explicit work context, not a productivity score. */
.input-work-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;margin-bottom:18px;border:1px solid var(--line,#e4e7e5);border-radius:10px;background:var(--soft,#f7f8f7)}
.input-work-bar[hidden]{display:none}.input-work-copy{flex:1 1 280px;min-width:0}.input-work-copy>span,.input-work-copy>strong{display:block;overflow-wrap:anywhere}.input-work-copy>strong{font-size:14px}.input-work-copy [hidden]{display:none}.input-work-bar .button{white-space:normal}.input-work-team{overflow-wrap:anywhere;margin-top:4px}.input-work-history{width:100%;min-width:670px}.input-work-history td,.input-work-history th{padding:10px 14px;text-align:left;vertical-align:top}.input-work-history td:first-child{min-width:220px;max-width:380px;overflow-wrap:anywhere}#input-work-dialog{max-width:510px}#input-work-dialog .field{margin-bottom:14px}#input-work-dialog .hint{font-size:12px;line-height:1.5}
@media(max-width:600px){.input-work-bar{gap:10px;padding:12px}.input-work-copy{flex-basis:100%}.input-work-bar>.button{flex:1 1 auto}.input-work-history{font-size:13px}}

/* Keep this dialog's actions visible, including on a short phone viewport. */
#input-work-dialog[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);overflow:hidden}
#input-work-dialog>.dialog-head{flex:0 0 auto}
#input-work-dialog>form{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;height:auto}
#input-work-dialog .dialog-body{flex:1 1 auto;min-height:0;overflow-y:auto}
#input-work-dialog .dialog-foot{flex:0 0 auto;flex-wrap:wrap;background:var(--canvas,#fff)}
#input-work-dialog input[type=number]{width:100%;min-height:40px;padding:8px 10px;border:1px solid var(--line-strong,#ccc);border-radius:8px;font:inherit;background:var(--fill,#f5f5f5);color:var(--text,#171717)}
@media(max-width:860px){#input-work-dialog[open]{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh}#input-work-dialog .dialog-foot .button{flex:1 1 auto}}

/* Item 8: self-task requests, distinct from completed-work review. */
.creation-badge { margin: 4px 5px 3px 0; display: inline-flex; max-width: 100%; white-space: normal; line-height: 1.4; vertical-align: middle; }
.creation-review { margin: 0 0 18px; border: 1px solid var(--line, #ddd); border-radius: 10px; overflow: hidden; }
.creation-summary { padding: 12px 14px; background: var(--wash, #f7f7f7); }
.creation-summary p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.creation-review > .hint { padding: 0 14px; }
.creation-review-details { padding: 12px 14px; }
.creation-review-details > summary { font-size: 13px; font-weight: 600; cursor: pointer; }
.creation-review-form { margin-top: 14px; }
.creation-review-form .field { margin-bottom: 13px; }
.creation-review-form input, .creation-review-form select, .creation-review-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.creation-review-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.task-creation-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.task-creation-tools .hint { margin: 0; max-width: 680px; }
.self-task-intro { margin: 0 0 16px; line-height: 1.6; font-size: 13px; }
.self-task-dialog .hint { margin-top: 6px; line-height: 1.5; }
.self-task-dialog .dialog-foot { flex-wrap: wrap; }
.my-task-header { flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) {
  .self-task-dialog { width: calc(100vw - 24px); max-width: calc(100vw - 24px); }
  .self-task-dialog .dialog-foot { gap: 8px; }
  .self-task-dialog .dialog-foot .button { flex: 1 1 auto; justify-content: center; }
  .self-task-dialog .dialog-foot .primary { flex-basis: 100%; }
  .creation-review-actions .button { flex: 1 1 100%; justify-content: center; }
  .task-creation-tools { align-items: flex-start; }
  .my-task-header > a { margin-left: auto; }
}

/* Item 9: completed-day shortfalls, separate from actual recorded time. */
.hours-flex-summary { margin: 16px 0; padding: 16px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; background: var(--panel, #fff); min-width: 0; }
.card > .hours-flex-summary { margin: 16px 0 0; }
.hours-flex-summary h3 { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.hours-flex-summary h3 .sub { font-weight: 400; margin-left: 8px; }
.hours-flex-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 12px; }
.hours-flex-metrics dt { font-size: 12px; color: var(--muted, #667085); line-height: 1.5; }
.hours-flex-metrics dd { margin: 4px 0 0; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hours-flex-result { margin: 8px 0; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.hours-flex-summary .hint { margin: 8px 0 0; line-height: 1.6; }
@media (max-width: 480px) {
  .hours-flex-metrics { grid-template-columns: 1fr; gap: 10px; }
  .hours-flex-metrics > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .hours-flex-metrics dd { font-size: 17px; }
  .hours-flex-summary h3 .sub { display: block; margin-left: 0; }
  .hours-week .chip { white-space: normal; }
}

/* Let the attendance difference explain itself without overflowing a narrow tile. */
.att-cards .number-card .sub { white-space: normal; overflow-wrap: anywhere; }

/* Item 10: work status is separate from account status and the viewer's timer. */
.work-status-block { display: inline-flex; flex-direction: column; gap: 3px; max-width: 100%; vertical-align: top; overflow-wrap: anywhere; }
.work-status-block .status { white-space: normal; align-items: baseline; line-height: 1.4; }
.work-status-block .status::before { flex: 0 0 7px; align-self: baseline; }
.work-status-detail { display: block; }
.work-status-block .input-work-team { display: block; white-space: normal; }
.live-status-feedback { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 12px 0; }
.live-status-warning { flex-basis: 100%; margin: 5px 0 0; font-size: 12px; color: #855800; line-height: 1.55; overflow-wrap: anywhere; }
.live-status-warning[hidden], [data-status-person][hidden], [data-employee-id][hidden], [data-project-card][hidden] { display: none !important; }
.own-work-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; }
.own-work-status [data-own-work-content] { flex: 1; min-width: min(210px, 100%); font-size: 13px; }
.own-work-status .live-status-warning { margin: 0; }
.team-presence .live-card .status { white-space: normal; font-size: 12px; }
.team-presence .live-card .status::before { flex-shrink: 0; }
.team-presence .team-count-scope { margin-top: -5px; line-height: 1.5; }
.team-presence .team td:nth-child(2) { max-width: 230px; }
.team-presence .pcard .p > div { min-width: 0; overflow-wrap: anywhere; }
.team-presence .pcard > header .n { white-space: normal; max-width: 46%; }
.team-presence .pcard .work-status-block { font-size: 12px; margin-top: 4px; }
.employee-status-list td.employee-work { max-width: 250px; }
.employee-status-list .person > div { min-width: 0; overflow-wrap: anywhere; }
.employee-status-list .mobile-label { display: none; }
.employee-presence.is-stale [data-employee-work], .team-presence.is-stale [data-team-board], .own-work-status.is-stale [data-own-work-content] { opacity: .75; }
@media (max-width: 640px) {
  .employee-status-list table, .employee-status-list tbody { display: block; width: 100%; }
  .employee-status-list thead { display: none; }
  .employee-status-list tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px 12px; padding: 12px; border-bottom: 1px solid var(--line); }
  .employee-status-list tbody tr:last-child { border-bottom: 0; }
  .employee-status-list tbody td { display: block; padding: 0; border: 0; min-width: 0; }
  .employee-status-list tbody td.hide-small { display: none; }
  .employee-status-list tbody td:first-child { grid-column: 1 / -1; }
  .employee-status-list td.employee-role { grid-column: 1 / -1; color: var(--muted); font-size: 12px; padding-left: 42px; }
  .employee-status-list .mobile-label { display: block; color: var(--muted); font-size: 11px; margin: 2px 0 4px; }
  .employee-status-list .employee-account, .employee-status-list .employee-work { font-size: 12px; }
  .employee-status-list .person .sub { white-space: normal; }
  .team-presence .list.team tbody tr { grid-template-columns: minmax(0, 1fr); }
  .team-presence .list.team tbody td:nth-child(2) { text-align: left; padding-left: 42px; max-width: none; }
  .team-presence .list.team tbody td:nth-child(3) { padding-left: 42px; }
  .team-presence .pcard .p { gap: 8px; padding: 10px 12px; }
  .team-presence .pcard > header { padding: 12px; gap: 8px; }
  .team-presence .pcard > header .n { max-width: 42%; }
  .own-work-status > .sub { font-size: 11px; }
}

/* Item 11: HR team administration. Scoped so work-status screens keep their layout. */
.staff-teams { display: grid; gap: 18px; min-width: 0; }
.staff-teams > .hint { margin: 0; }
.staff-team-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.staff-team-stats > * { padding: 16px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.staff-team-stats span { display: block; }
.staff-team-stats strong { display: block; font-size: 25px; line-height: 1.3; margin: 4px 0; }
.staff-team-stats a:hover { background: var(--canvas); }
.staff-teams .box > header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.staff-team-empty { display: grid; justify-items: start; gap: 10px; padding: 22px; }
.staff-team-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.staff-team-table th { font-size: 12px; color: var(--muted); text-align: left; background: var(--canvas); font-weight: 500; }
.staff-team-table th, .staff-team-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.staff-team-table th:nth-child(1) { width: 26%; }
.staff-team-table th:nth-child(2) { width: 15%; }
.staff-team-table th:nth-child(3) { width: 25%; }
.staff-team-table th:nth-child(4) { width: 34%; }
.staff-team-table tr:last-child td { border-bottom: 0; }
.staff-team-table .sub, .staff-team-lead-name { display: block; }
.staff-team-table .name, .staff-team-table .person > div { white-space: normal; min-width: 0; overflow-wrap: anywhere; }
.staff-team-table .staff-team-actions { display: flex; gap: 7px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.staff-team-actions form { display: inline-flex; margin: 0; }
.staff-team-actions .button { min-height: 34px; }
.staff-team-actions .button:disabled { opacity: .45; cursor: not-allowed; }
.staff-team-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.staff-team-filters .field { flex: 1 1 190px; min-width: 0; }
.staff-team-filters input, .staff-team-filters select { width: 100%; min-width: 0; }
.staff-member-edit { max-width: 780px; }
.staff-member-edit form > * + * { margin-top: 14px; }
.staff-member-edit .field select { width: 100%; }
.staff-member-edit .notice { display: block; }
.staff-lead-info p { margin: 8px 0 0; }
.staff-member-edit .check { display: flex; align-items: flex-start; white-space: normal; }
.staff-member-edit .check input { flex: none; margin-top: 3px; }
.staff-team-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
#staff-team { width: min(480px, calc(100vw - 24px)); }
#staff-team .dialog-body input { width: 100%; }
#staff-team .dialog-foot { flex-wrap: wrap; }
@media (max-width: 700px) {
  .staff-team-stats { gap: 8px; }
  .staff-team-stats > * { padding: 12px 10px; }
  .staff-team-stats span { font-size: 12px; }
  .staff-team-table-wrap { overflow: visible; }
  .staff-team-table, .staff-team-table tbody, .staff-team-table tr, .staff-team-table td { display: block; width: 100%; }
  .staff-team-table thead { display: none; }
  .staff-team-table tr + tr { border-top: 1px solid var(--line-strong); }
  .staff-team-table td { border: 0; padding: 8px 14px; }
  .staff-team-table td:first-child { padding-top: 16px; }
  .staff-team-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
  .staff-team-table td.staff-team-actions { justify-content: flex-start; padding: 12px 14px 16px; }
  .staff-team-filters .field { flex-basis: 100%; }
  .staff-team-form-actions .button { flex: 1; }
  .staff-member-edit .box-pad { padding: 16px; }
}


/* Item 12: discoverable salary setup and month-aware payroll guidance. */
.payroll-nav .toggle { max-width: 100%; }
.payroll-nav .toggle a { white-space: nowrap; }
.payroll-period { margin: 0 0 12px; }
.payroll-setup { display: block; margin-bottom: 16px; overflow-wrap: anywhere; }
.payroll-setup p + p { margin-top: 6px; }
.payroll-setup .button { margin-top: 10px; }
.payroll-missing-people a { text-decoration: underline; text-underline-offset: 2px; }
.payroll-guide { margin-bottom: 16px; }
.payroll-guide header { flex-wrap: wrap; gap: 5px 12px; }
.payroll-guide .box-pad > p + p { margin-top: 8px; }
.payroll-guide .button { margin-top: 12px; max-width: 100%; height: auto; min-height: var(--control); white-space: normal; }
.payroll-help { margin-top: 10px; }
.payroll-help summary { cursor: pointer; font-weight: 550; }
.payroll-help p { margin-top: 6px; }
.payroll-person { scroll-margin-top: 80px; min-width: 0; }
.payroll-person:target { outline: 2px solid var(--line); outline-offset: -2px; }
.payroll-person .brand-head { overflow-wrap: anywhere; }
.payroll-person .salary-history { min-width: 550px; }
.payroll-shortcut { flex-shrink: 0; }
@media (max-width: 480px) {
  .payroll-guide header, .payroll-guide .box-pad { padding-left: 12px; padding-right: 12px; }
  .payroll-person { padding-left: 12px; padding-right: 12px; }
  .payroll-person .salary-form > label { min-width: 0; }
}

.payroll-slip-editor > header { flex-wrap: wrap; gap: 5px 12px; }
.payroll-slip-editor > header span { white-space: normal; }

/* Item 13: the full time-window description must not squeeze Start work off screen. */
.working-window-summary { overflow-wrap: anywhere; }
@media (min-width: 1101px) {
  .day.start .date, .day.start .now-box { flex: 1 1 0; min-width: 0; }
}

/* Item 14: explicit breaks, distinct from inactivity and from paid-time policy. */
.status.break { color:var(--text); background:var(--fill); }
.dot.break { background:var(--muted); box-shadow:0 0 0 2px var(--page); }
.break-summary { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }
.break-summary > div:first-child { flex:1; min-width:0; }
.break-summary h2 { font-size:17px; margin:8px 0 6px; }
.break-summary p { margin:6px 0; overflow-wrap:anywhere; }
.break-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.work-break-panel .box-foot { display:flex; gap:8px; flex-wrap:wrap; }
.break-dialog { width:min(540px,calc(100vw - 28px)); max-height:calc(100dvh - 28px); padding:0; }
.break-dialog form { display:flex; flex-direction:column; max-height:calc(100dvh - 32px); }
.break-dialog .dialog-body { overflow-y:auto; min-height:0; padding:20px; }
.break-dialog .dialog-body > p, .break-dialog .field { margin-bottom:14px; }
.break-dialog .dialog-foot,.break-dialog .dialog-head { flex-shrink:0; }
.break-return-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.break-return-fields .field, .break-return-fields input { min-width:0; width:100%; }
.break-resume-option { display:flex; align-items:flex-start; gap:10px; margin:14px 0; }
.break-resume-option input { width:auto; flex:none; margin-top:4px; }
.break-resume-option span { min-width:0; overflow-wrap:anywhere; }
.break-history-table { width:100%; min-width:680px; border-collapse:collapse; }
.break-history-table th,.break-history-table td { padding:12px 16px; vertical-align:top; text-align:left; border-top:1px solid var(--line); }
.break-history-table td:first-child { max-width:290px; overflow-wrap:anywhere; }
.break-event-list p { margin:10px 0; font-size:12px; }
.break-history-table summary { cursor:pointer; margin-top:8px; color:var(--muted); }
.break-topbar { white-space:nowrap; flex-shrink:0; }
[data-break-overdue] { color:var(--muted); }
.live-cards:has(.status.break) { grid-template-columns:repeat(5,minmax(0,1fr)); }
@media (max-width:860px) {
  .break-summary { flex-direction:column; gap:12px; }
  .break-actions { width:100%; }
  .break-topbar { padding:7px 9px; font-size:12px; }
  .live-cards:has(.status.break) { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:480px) {
  .break-dialog .dialog-body { padding:16px; }
  .break-dialog .dialog-head, .break-dialog .dialog-foot { padding:14px 16px; }
  .break-dialog .dialog-foot { flex-wrap:wrap; gap:8px; }
  .break-actions .button { min-height:38px; }
  .break-topbar { max-width:100px; white-space:normal; line-height:1.15; }
}

/* Keep the phone header free for its existing timer, page actions and account controls. */
.break-content-trigger { display:none; }
@media (max-width:860px) {
  .break-topbar { display:none; }
  .break-content-trigger { display:inline-flex; margin-bottom:14px; }
}

/* Item 16: employment details share the existing profile and HR-file layout. */
.employment-section { scroll-margin-top: 90px; }
.employment-fields { min-width: 0; }
.employment-fields [hidden] { display: none !important; }
.employment-fields .hint { overflow-wrap: anywhere; }
.employment-fields .fields { margin-bottom: 12px; }
.employment-contracts { scroll-margin-top: 90px; }
.employment-contracts > header { flex-wrap: wrap; gap: 10px; }
.employment-contracts table { width: 100%; }
.employment-contracts td { vertical-align: top; }
.employment-contracts td:first-child { min-width: 160px; max-width: 420px; overflow-wrap: anywhere; }
.employment-contracts .contract-filename { overflow-wrap: anywhere; }
.employment-contract-dialog { width: min(560px, calc(100vw - 28px)); max-width: calc(100vw - 28px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.employment-contract-dialog input[type="file"] { width: 100%; max-width: 100%; min-width: 0; }
.employment-contract-dialog .dialog-head, .employment-contract-dialog .dialog-body, .employment-contract-dialog .dialog-foot { padding: 18px; }
.employment-contract-dialog .dialog-head, .employment-contract-dialog .dialog-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.employment-contract-dialog .dialog-head { justify-content: space-between; }
.employment-contract-dialog .dialog-foot { justify-content: flex-end; border-top: 1px solid var(--line, #ddd); }
@media (max-width: 600px) {
  .employment-contracts > header .button { width: 100%; justify-content: center; }
  .employment-contract-dialog .dialog-head, .employment-contract-dialog .dialog-body, .employment-contract-dialog .dialog-foot { padding: 14px; }
  .employment-contract-dialog .dialog-foot .button { flex: 1; justify-content: center; }
}

.employment-contract-dialog[open] { margin: auto; height: fit-content; }
.employment-contract-dialog > form { display: flex; flex-direction: column; height: auto; max-height: calc(100dvh - 32px); }
.employment-contract-dialog .dialog-body { min-height: 0; overflow-y: auto; flex: 1 1 auto; }
.employment-contract-dialog .dialog-head, .employment-contract-dialog .dialog-foot { flex-shrink: 0; }

/* Item 17: private HR document repository, using the existing interface tokens. */
.document-repository, .document-editor { min-width:0 }
.repository-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:end; margin-top:18px }
.repository-filters .field { min-width:0; margin:0 }
.repository-filters input, .repository-filters select, .document-editor input, .document-editor select { max-width:100%; min-width:0 }
.repository-search { grid-column:span 2 }
.repository-filter-actions, .repository-row-actions, .repository-pagination { display:flex; flex-wrap:wrap; align-items:center; gap:10px }
.repository-table { min-width:940px; width:100%; table-layout:fixed }
.repository-table th:nth-child(1) { width:27% }
.repository-table th:nth-child(2) { width:18% }
.repository-table th:nth-child(3) { width:16% }
.repository-table th:nth-child(4) { width:13% }
.repository-table th:nth-child(5) { width:15% }
.repository-table th:nth-child(6) { width:11% }
.repository-table td { overflow-wrap:anywhere }
.document-editor .box-pad > .hint:first-child { margin-bottom:16px }
.document-editor .repository-file-summary + p { margin-bottom:16px }
.repository-table th, .repository-table td { vertical-align:top }
.repository-table td:first-child { min-width:200px; max-width:300px }
.repository-table td:nth-child(2) { min-width:140px; max-width:220px }
.repository-table td:nth-child(3) { min-width:135px }
.repository-table .tag { white-space:normal; width:fit-content; line-height:1.4; margin-top:4px }
.repository-table .repository-row-actions { flex-direction:column; align-items:flex-start; gap:8px; white-space:nowrap }
.repository-table .repository-row-actions a { text-decoration:underline; text-underline-offset:3px }
.repository-filename, .repository-file-summary, .repository-owner, .document-editor header h2 { overflow-wrap:anywhere; word-break:normal; min-width:0 }
.repository-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; align-items:center }
.repository-footer .hint { flex:1 1 320px; margin:0 }
.repository-pagination { flex-shrink:0 }
.document-editor { max-width:980px }
.repository-file-summary { display:flex; justify-content:space-between; align-items:start; flex-wrap:wrap; gap:16px; padding-bottom:16px }
.repository-file-summary > div:first-child { flex:1 1 240px; min-width:0 }
.repository-file-summary > .repository-row-actions { flex:0 1 auto }
.repository-owner { margin:0 }
.repository-danger { margin-top:26px; padding-top:18px; border-top:1px solid var(--line) }
.document-editor .field .hint { white-space:normal; overflow-wrap:anywhere }
.document-editor .notice p + p { margin-top:8px }
.document-editor input[type=file] { width:100% }
@media (max-width:1100px) { .repository-filters { grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media (max-width:600px) {
  .repository-filters { grid-template-columns:minmax(0,1fr); gap:14px }
  .repository-search { grid-column:auto }
  .document-repository .box > header { flex-wrap:wrap; gap:6px }
  .document-repository .box > header span { white-space:normal }
  .document-editor .fields { grid-template-columns:minmax(0,1fr) }
  .document-editor .fields .wide { grid-column:auto }
  .document-editor .form-actions { flex-wrap:wrap }
  .repository-pagination { width:100%; justify-content:space-between }
}

/* Item 18: manual warning letters. Shared layout with an explicitly printable snapshot. */
.warning-workspace{min-width:0;max-width:1120px;width:100%}
.warning-workspace .box{min-width:0}
.warning-workspace .hint,.warning-workspace p{overflow-wrap:anywhere}
.warning-form fieldset{margin:0;padding:0;border:0;min-width:0}
.warning-form input,.warning-form textarea,.warning-form select{max-width:100%;min-width:0}
.warning-form .fields{margin-top:18px}
.warning-form textarea{line-height:1.6;resize:vertical}
.warning-form .form-actions,.warning-workspace .warning-filter-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:18px}
.warning-form label.check{align-items:flex-start;white-space:normal;line-height:1.6;display:flex;gap:10px}
.warning-form label.check input{flex:0 0 auto;margin-top:5px}
.warning-filters{display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(150px,1fr) minmax(120px,0.8fr);gap:16px;align-items:start}
.warning-filter-actions{grid-column:1/-1}
.warning-list{min-width:660px}.warning-list td{vertical-align:top}.warning-list .sub{white-space:normal;max-width:300px;overflow-wrap:anywhere}
.warning-summary{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:16px 18px;background:var(--fill,#f3f3f3);border:1px solid var(--line);border-radius:8px;margin-bottom:18px}
.warning-summary strong{display:block;font-weight:600;overflow-wrap:anywhere}
.warning-paper{background:var(--box,#fff);color:var(--text,#242a24);border:1px solid var(--line,#ddd);border-radius:10px;padding:38px 42px;margin:20px 0;overflow-wrap:anywhere;min-width:0}
.warning-paper-head{display:flex;justify-content:space-between;gap:26px;border-bottom:2px solid var(--line,#ddd);padding-bottom:24px;margin-bottom:25px}
.warning-paper h2{font-size:25px;line-height:1.25;margin:8px 0 0}
.warning-paper h3{font-size:18px;margin:26px 0 20px;line-height:1.5}
.warning-eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:var(--muted,#666);margin:0}
.warning-reference{text-align:right;font-size:13px;flex-shrink:0;line-height:1.8}
.warning-recipient{margin:22px 0}.warning-letter-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;font-size:15px}
.warning-signatory{margin-top:26px;padding-top:16px;border-top:1px solid var(--line,#ddd);font-size:14px;line-height:1.7}
.warning-draft-stamp{border:1px solid var(--line,#ddd);padding:10px 14px;font-size:12px;font-weight:600;letter-spacing:.06em}
.warning-note{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}
.warning-history{list-style:none;margin:0;padding:0}.warning-history li{padding:14px 0;border-bottom:1px solid var(--line,#ddd)}.warning-history li:last-child{border:0}
.warning-change-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.warning-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}
.warning-template{padding:22px;border:1px solid var(--line,#ddd);border-radius:8px;display:flex;align-items:flex-start;flex-direction:column;gap:12px}
.warning-template h3{font-size:17px;line-height:1.4;margin:0}.warning-template p{margin:0 0 10px}.warning-template .button{margin-top:auto}
.warning-tokens{display:flex;flex-wrap:wrap;gap:8px}.warning-tokens code{font-size:12px;overflow-wrap:anywhere;white-space:normal;padding:5px 8px;background:var(--bg,#f5f5f5);border:1px solid var(--line,#ddd);border-radius:4px}
@media(max-width:860px){.warning-template-grid{grid-template-columns:1fr}.warning-filters{grid-template-columns:1fr 1fr}.warning-filters .field:first-child{grid-column:1/-1}.warning-paper{padding:26px}.warning-change-grid{grid-template-columns:1fr}}
@media(max-width:520px){.warning-filters,.warning-summary{grid-template-columns:1fr}.warning-paper{padding:23px 18px}.warning-paper-head{display:block}.warning-reference{text-align:left;margin-top:18px}.warning-paper h2{font-size:23px}.warning-letter-text{font-size:14px;line-height:1.8}.warning-workspace .box>header{align-items:flex-start;flex-wrap:wrap;gap:10px}.warning-summary{padding:14px}.warning-workspace .form-actions .button{max-width:100%;white-space:normal;text-align:center}.warning-form label.check{font-size:13px}}

.warning-action-bar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px;align-items:center}.warning-action-bar .button{max-width:100%;white-space:normal;text-align:center}.warning-workspace .box-pad>p+p{margin-top:12px}

/* Item 19: scoped operational work alerts, separate from formal letters. */
.work-alert-intro{max-width:900px;margin:0 0 20px}.work-alert-intro h2{margin:0 0 8px}
.work-alert-intro p{margin:6px 0;overflow-wrap:anywhere}.work-alert-tools{flex-wrap:wrap;align-items:flex-end;gap:16px}
.work-alert-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-left:auto}
.work-alert-filters label{display:grid;gap:5px;font-size:13px}.work-alert-filters select{min-width:165px}
.work-alert-list{display:grid;gap:14px}.work-alert-card{padding:20px}.work-alert-card h3{margin:10px 0 6px;font-size:17px}
.work-alert-card p{margin:8px 0;overflow-wrap:anywhere}.work-alert-card-top,.work-alert-card-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}
.work-alert-card-top h3{margin:0}.work-alert-card-bottom{margin-top:16px}.work-alert-person{font-weight:500}
.work-alert-pagination{justify-content:flex-end;gap:16px;margin-top:18px}.work-alert-footnote{margin-top:20px;max-width:920px}
.work-alert-current,.work-alert-history,.work-alert-dismiss{margin-top:16px}.work-alert-current p,.work-alert-history p,.work-alert-dismiss p{overflow-wrap:anywhere}
.work-alert-numbers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:20px 0}.work-alert-numbers>div{padding:12px;border:1px solid var(--line,#ddd);border-radius:8px;min-width:0}
.work-alert-numbers strong{display:block;font-size:19px;margin-top:7px;overflow-wrap:anywhere}.work-alert-numbers .hint{display:block}
.work-alert-facts{display:grid;grid-template-columns:minmax(120px,200px) minmax(0,1fr);gap:10px 18px;margin:18px 0}.work-alert-facts dt{color:var(--muted,#555)}.work-alert-facts dd{margin:0;overflow-wrap:anywhere}
.work-alert-dismiss summary,.work-alert-history>summary{cursor:pointer;font-weight:600;line-height:1.5}
.work-alert-event{border-top:1px solid var(--line,#ddd);padding:14px 0}.work-alert-event summary{cursor:pointer;display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between}
.work-alert-settings{display:grid;gap:14px;margin-top:20px}.work-alert-settings .button{justify-self:start}.work-alert-enable{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.work-alert-enable input{width:18px;height:18px}.work-alert-enable .tag{margin-left:auto}
@media(max-width:860px){.work-alert-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}.work-alert-tools{align-items:stretch}.work-alert-filters{width:100%;margin-left:0}.work-alert-filters label{flex:1;min-width:130px}.work-alert-filters select{min-width:0;width:100%}}
@media(max-width:480px){.work-alert-card{padding:16px}.work-alert-facts{grid-template-columns:1fr;gap:5px}.work-alert-facts dd{margin-bottom:8px}.work-alert-filters .button{width:100%}.work-alert-current .web-pages-wrap,.work-alert-event .web-pages-wrap{max-width:100%;overflow-x:auto}.work-alert-intro h2{font-size:23px}}

/* Keep the alert-settings action labelled on narrow screens. */
.topbar .work-alert-settings-link span { display:inline; }


/* Item 20: HR overview and operations. Scoped styles preserve existing screens. */
.hr-ops-nav,.hr-ops-actions,.hr-ops-filter-actions,.hr-ops-pagination{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.hr-ops-nav{margin:0 0 18px}.hr-ops-pagination{margin-top:20px}.hr-ops-actions{margin-top:18px}
.hr-ops-workspace{min-width:0;margin-bottom:20px}.hr-ops-workspace>header{gap:12px;flex-wrap:wrap;align-items:center}
.hr-ops-workspace>header h2{min-width:0;overflow-wrap:anywhere}.hr-ops-workspace p,.hr-ops-workspace a,.hr-ops-meta strong{overflow-wrap:anywhere}
.hr-ops-filters{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(115px,1fr)) auto;gap:12px;align-items:end;margin:8px 0 14px}
.hr-ops-filters .field,.hr-ops-form .field{min-width:0;margin-bottom:0}.hr-ops-filter-actions{padding-bottom:1px}
.hr-ops-filters input,.hr-ops-filters select,.hr-ops-form input,.hr-ops-form textarea,.hr-ops-form select{max-width:100%;box-sizing:border-box;min-width:0}
.hr-ops-form .fields{row-gap:18px}.hr-ops-form select[multiple]{min-height:155px;width:100%;padding:6px}
.hr-ops-form select[multiple] option{padding:6px;white-space:normal}.hr-ops-form .field.wide{grid-column:1/-1}
.hr-ops-form .notice{margin:0}.hr-ops-form textarea{resize:vertical}.hr-ops-filter-actions .button{white-space:nowrap}
.hr-ops-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.hr-ops-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.hr-ops-stats>a{display:flex;flex-direction:column;border:1px solid var(--line,#ddd);padding:16px;border-radius:10px;text-decoration:none;color:inherit;gap:8px;background:var(--bg,#fafafa)}
.hr-ops-stats b{font-size:26px;line-height:1.2}.hr-ops-stats span{font-size:13px;line-height:1.5}
.hr-ops-approval{border:1px solid var(--line,#ddd);border-radius:10px;padding:15px;min-width:0}.hr-ops-approval h3{font-size:15px;margin:0 0 10px}
.hr-ops-lines{list-style:none;padding:0;margin:12px 0}.hr-ops-lines li{display:flex;flex-direction:column;gap:5px;border-top:1px solid var(--line,#ddd);padding:12px 0;overflow-wrap:anywhere}.hr-ops-lines li:first-child{border-top:0}
.hr-ops-lines a{font-weight:600}.hr-ops-lines .sub{font-weight:400;line-height:1.5}.hr-ops-lines a .sub{display:block;margin-top:4px}
.hr-ops-empty{border:1px dashed var(--line,#ddd);border-radius:8px;padding:20px;line-height:1.6;color:var(--muted,#666)}
.hr-ops-table{width:100%;min-width:650px}.hr-ops-table td{white-space:normal;max-width:390px;overflow-wrap:anywhere;vertical-align:top}.hr-ops-table .sub{display:block;line-height:1.5;margin-top:4px}
.hr-ops-table th,.hr-ops-table td{padding:12px}.hr-ops-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:20px}.hr-ops-meta>div{display:flex;flex-direction:column;gap:6px}.hr-ops-wide{grid-column:1/-1}
.hr-ops-body{line-height:1.75;margin:16px 0;overflow-wrap:anywhere}.hr-ops-body:empty{display:none}
.hr-ops-detail{margin-top:22px;border-top:1px solid var(--line,#ddd);padding-top:18px}.hr-ops-detail summary,.hr-ops-history summary{cursor:pointer;font-weight:600;margin-bottom:12px}
.hr-ops-detail textarea{width:100%;box-sizing:border-box}.hr-ops-publish{margin-top:24px;padding:18px;border:1px solid var(--line,#ddd);border-radius:10px;display:grid;gap:16px;justify-items:start}.hr-ops-publish label{line-height:1.5;display:flex;gap:8px;align-items:flex-start}
.hr-ops-history{padding:18px 0;border-top:1px solid var(--line,#ddd);overflow-wrap:anywhere}.hr-ops-history:first-of-type{border-top:0}.hr-ops-history h3{margin:0;font-size:16px}
.hr-ops-snapshot{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,3fr);gap:8px 15px}.hr-ops-snapshot dt{font-weight:600;overflow-wrap:anywhere}.hr-ops-snapshot dd{margin:0;overflow-wrap:anywhere;line-height:1.6}
.hr-ops-notice-card{padding:18px 0;border-top:1px solid var(--line,#ddd)}.hr-ops-notice-card:first-of-type{border-top:0}.hr-ops-notice-card h3{margin:0 0 8px;font-size:18px}.hr-ops-notice-card p{line-height:1.65}
.hr-ops-dashboard{margin:20px 0}.hr-ops-dashboard-row{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;margin:12px 0;overflow-wrap:anywhere}.hr-ops-dashboard-row a{min-width:0;overflow-wrap:anywhere}
.hr-ops-existing-title{margin:28px 0 8px}.hr-ops-progress{display:block;width:150px;height:9px;max-width:100%;margin:7px 0;accent-color:#5b7939}
.hr-ops-form [hidden],.hr-ops-filters [hidden]{display:none!important}
@media(max-width:1100px){.hr-ops-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.hr-ops-filter-actions{grid-column:1/-1}}
@media(max-width:680px){.hr-ops-grid{grid-template-columns:minmax(0,1fr)}.hr-ops-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hr-ops-filters{grid-template-columns:minmax(0,1fr)}.hr-ops-meta{grid-template-columns:minmax(0,1fr)}.hr-ops-snapshot{grid-template-columns:1fr}.hr-ops-snapshot dd{margin-bottom:12px}.hr-ops-workspace .fields{grid-template-columns:minmax(0,1fr)}.hr-ops-nav .button{white-space:normal}.hr-ops-table{min-width:620px}}

/* Match the established control style for meeting links. */
.hr-ops-form input[type="url"]{width:100%;height:var(--control);padding:0 10px;border:1px solid transparent;border-radius:var(--radius);background:var(--fill);outline:none}
.hr-ops-form input[type="url"]:hover{background:var(--fill-hover)}
.hr-ops-form input[type="url"]:focus{background:#fff;border-color:var(--ink)}
.hr-ops-form select[multiple]{background-image:none;padding-right:6px}
.hr-ops-form>.fields{margin-top:16px}

/* ---------- HR dashboard approval summary ---------- */
.dashboard-attention { border-color: #ead9a7; margin-bottom: 20px; }
.dashboard-attention > header { align-items: center; gap: 12px; flex-wrap: wrap; background: #fffaf0; }
.dashboard-attention > header > div { min-width: 0; }
.dashboard-attention-kicker { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-attention-intro, .dashboard-attention-foot { color: var(--muted); line-height: 1.6; }
.dashboard-attention-clear { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; background: var(--ok-fill); font-weight: 600; }
.dashboard-attention-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.dashboard-attention-group { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--page); }
.dashboard-attention-group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 13px 11px; border-bottom: 1px solid var(--line); }
.dashboard-attention-group-head > div { min-width: 0; }
.dashboard-attention-group-head h3 { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.dashboard-attention-list { list-style: none; margin: 0; padding: 0 13px; }
.dashboard-attention-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.dashboard-attention-list li:first-child { border-top: 0; }
.dashboard-attention-person { min-width: 0; align-items: flex-start; }
.dashboard-attention-person > div { min-width: 0; }
.dashboard-attention-person .name, .dashboard-attention-summary, .dashboard-attention-person .sub { display: block; overflow-wrap: anywhere; }
.dashboard-attention-summary { margin-top: 2px; line-height: 1.45; }
.dashboard-attention-person .sub { margin-top: 3px; line-height: 1.45; }
.dashboard-attention-open { white-space: nowrap; }
.dashboard-attention-empty { margin: 0; padding: 16px 13px; color: var(--muted); }
.dashboard-attention-more { margin: 0; padding: 0 13px 12px; color: var(--muted); font-size: 12px; }
.dashboard-attention-foot { margin-top: 13px; font-size: 12px; }
@media (max-width: 940px) {
  .dashboard-attention-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .dashboard-attention > header { align-items: flex-start; }
  .dashboard-attention-list li { grid-template-columns: minmax(0, 1fr); }
  .dashboard-attention-open { justify-self: start; }
  .dashboard-attention-group-head .button { flex: none; }
}

/* HR Stage 5: existing HR reminder previews. */
.dashboard-reminders { margin: 20px 0; }
.dashboard-reminders > header { align-items: flex-start; flex-wrap: wrap; gap: 10px 14px; }
.dashboard-reminders-heading { flex: 1 1 260px; min-width: 0; }
.dashboard-reminders-heading .sub { display: block; margin-top: 3px; white-space: normal; overflow-wrap: anywhere; }
.dashboard-reminders-kicker { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-reminders-clear { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--ok-fill); font-weight: 600; }
.dashboard-reminders-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 14px 16px; }
.dashboard-reminder-group { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--page); overflow: hidden; }
.dashboard-reminder-group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px 13px 10px; border-bottom: 1px solid var(--line); }
.dashboard-reminder-group-head > div { min-width: 0; }
.dashboard-reminder-group-head h3 { margin: 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.dashboard-reminder-group-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.dashboard-reminder-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--fill-hover); font-size: 11px; }
.dashboard-reminder-list { list-style: none; margin: 0; padding: 0 13px; }
.dashboard-reminder-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.dashboard-reminder-list li:first-child { border-top: 0; }
.dashboard-reminder-person { display: flex; gap: 9px; min-width: 0; color: inherit; text-decoration: none; }
.dashboard-reminder-copy { min-width: 0; }
.dashboard-reminder-copy .name, .dashboard-reminder-summary, .dashboard-reminder-copy .sub { display: block; overflow-wrap: anywhere; }
.dashboard-reminder-summary { margin-top: 2px; line-height: 1.4; }
.dashboard-reminder-copy .sub { margin-top: 3px; line-height: 1.4; }
.dashboard-reminder-state { align-self: flex-start; white-space: nowrap; }
.dashboard-reminder-state.is-overdue { background: var(--danger-fill); color: var(--danger); }
.dashboard-reminder-state.is-upcoming { background: #fff4dc; color: #855800; }
.dashboard-reminder-state.is-undated { background: var(--fill-hover); color: var(--muted); }
.dashboard-reminder-more { margin: 0; padding: 0 13px 12px; color: var(--muted); font-size: 12px; }
.dashboard-reminders-foot { color: var(--muted); font-size: 11px; line-height: 1.45; }
.dashboard-reminders.is-unavailable > header, .dashboard-reminders.is-unavailable .box-pad { opacity: .78; }
@media (max-width: 940px) {
  .dashboard-reminders-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .dashboard-reminders > header .button { width: 100%; justify-content: center; }
  .dashboard-reminders-grid { padding: 12px; gap: 10px; }
  .dashboard-reminder-group-head { flex-wrap: wrap; }
  .dashboard-reminder-list li { grid-template-columns: minmax(0, 1fr); }
  .dashboard-reminder-state { justify-self: start; }
}

/* HR Stage 4: task due/workflow context and accurate weekly-hours labels. */
.task-due-cell { min-width: 148px; max-width: 210px; white-space: normal !important; }
.task-due-context { display: inline-block; font-size: 12px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.task-due-context.is-overdue { color: var(--danger); font-weight: 650; }
.task-due-context.is-review { color: var(--late-ink); font-weight: 600; }
.task-due-context.is-today { color: var(--text); font-weight: 600; }
.task-due-context.is-quiet { color: var(--muted); }

.weekly-hours-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 16px 4px; }
.weekly-hours-metric { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
.weekly-hours-metric > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 550; }
.weekly-hours-metric > strong { display: block; font-size: 18px; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.weekly-hours-metric > small { display: block; margin-top: 5px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.weekly-hours-help { margin: 8px 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.weekly-hours-help summary { padding: 10px 0; cursor: pointer; color: var(--text); font-size: 12px; font-weight: 600; }
.weekly-hours-help summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.weekly-hours-help > div { padding: 0 0 10px; }
.weekly-hours-help p { margin: 5px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.weekly-hours-help strong { color: var(--text); }
.weekly-hours-box .week { padding-top: 14px; }

@media (max-width: 860px) {
  .task-due-cell { min-width: 122px; max-width: 155px; }
  .task-due-context { font-size: 11.5px; }
  .weekly-hours-summary { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .my-tasks td { padding-left: 8px; padding-right: 8px; }
  .task-due-cell { min-width: 104px; max-width: 126px; }
  .weekly-hours-summary { padding-left: 12px; padding-right: 12px; }
  .weekly-hours-help { margin-left: 12px; margin-right: 12px; }
}

/* HR Stage 6: concise, expandable dashboard guidance. */
.dashboard-help { margin-top: 7px; min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.dashboard-help > summary { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; cursor: pointer; color: var(--text); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.dashboard-help > summary::after { content: "More"; margin-left: 3px; color: var(--muted); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.dashboard-help[open] > summary::after { content: "Less"; }
.dashboard-help > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dashboard-help > p, .dashboard-help > div { margin: 7px 0 0; max-width: 76ch; color: var(--muted); overflow-wrap: anywhere; }
.dashboard-data-refresh-copy .dashboard-help { margin-top: 5px; }
.dashboard-data-refresh-copy .dashboard-help p { font-size: 11px; line-height: 1.5; }
.dashboard-compact-guidance { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin: -4px 0 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 12px; line-height: 1.45; }
.dashboard-compact-guidance > span { min-width: 0; overflow-wrap: anywhere; }
.dashboard-compact-guidance strong { color: var(--text); }
.dashboard-compact-guidance .dashboard-help { margin-top: 0; flex: 1 1 100%; }
.tracking-privacy-help { margin-top: 4px; }
.dashboard-notice-with-help { display: block; }
.dashboard-notice-with-help > span { display: block; }
.dashboard-notice-with-help .dashboard-help { margin-left: 23px; }
.input-work-help { margin-top: 4px; }
.dashboard-attention-help { margin-top: 13px; }
.dashboard-reminders-foot .dashboard-help { margin-top: 0; }
.dashboard-reminders-foot .dashboard-help > p { font-size: 11px; }
.dashboard-team-help { margin: -6px 16px 14px; }
.hr-ops-scope-line { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.hr-ops-scope-help { margin: 5px 0 0; }
@media (max-width: 600px) {
  .dashboard-help > summary { min-height: 34px; align-items: center; }
  .dashboard-notice-with-help .dashboard-help { margin-left: 0; }
  .dashboard-team-help { margin-left: 12px; margin-right: 12px; }
  .dashboard-compact-guidance { padding: 9px 10px; }
}

/* HR task oversight. Keep wide tables within their own scroll region. */
.task-oversight-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:14px; }
.task-oversight-filters label { display:flex; flex-direction:column; gap:5px; min-width:0; font-size:12px; font-weight:600; }
.task-oversight-filters select { min-width:0; width:100%; }
.task-oversight-actions { display:flex; flex-wrap:wrap; align-items:end; gap:8px; }
.task-oversight-table { overflow-x:auto; width:100%; }
.task-oversight-table table { min-width:700px; width:100%; table-layout:fixed; }
.task-oversight-table th, .task-oversight-table td { vertical-align:top; text-align:left; overflow-wrap:anywhere; }
.task-oversight-name { display:block; font-weight:600; }
.task-oversight-table .sub { display:block; margin-top:4px; }
.task-oversight-pagination { display:flex; align-items:center; justify-content:center; gap:12px; padding:14px; }
@media (max-width:760px) { .task-oversight-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:480px) { .task-oversight-filters { grid-template-columns:minmax(0,1fr); } .task-oversight-actions .button { flex:1; justify-content:center; } }

.task-oversight-scroll-hint { display:none; padding:10px 14px 0; }
@media (max-width:760px) { .task-oversight-scroll-hint { display:block; } }

/* Internal recruitment workspace, scoped to ATS screens. */
.ats-workspace { max-width: 1150px; margin-inline: auto; }
.ats-workspace .box-pad > h3 { margin: 1.2rem 0 .55rem; }
.ats-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr) auto; align-items: end; gap: 12px; margin: 12px 0; }
.ats-filter-actions, .ats-info-grid, .ats-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.ats-info-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; margin:1rem 0; }
.ats-info-grid > div { min-width:0; border:1px solid var(--border, #dedede); border-radius:9px; padding:12px; overflow-wrap:anywhere; }
.ats-info-grid strong, .ats-info-grid .sub { display:block; }
.ats-copy { white-space:normal; line-height:1.55; overflow-wrap:anywhere; }
.ats-table { width:100%; border-collapse:collapse; }
.ats-table td,.ats-table th { padding:12px; text-align:left; border-bottom:1px solid var(--border, #dedede); vertical-align:top; overflow-wrap:anywhere; }
.ats-table .sub { display:block; margin-top:3px; }
.ats-decision { margin-top:1.35rem; padding-top:.75rem; border-top:1px solid var(--border,#ddd); }
.ats-decision-form { border:1px solid var(--border,#ddd); padding:14px; border-radius:10px; margin:10px 0; }
.ats-decision-form .button { margin-top:8px; }
.ats-form .field,.ats-filters .field { min-width:0; }
.ats-upload { display:flex; align-items:end; gap:12px; flex-wrap:wrap; }
.ats-upload .field { flex:1 1 190px; }
.ats-lines { padding:0; margin:0; list-style:none; }
.ats-lines li { display:flex; align-items:baseline; flex-wrap:wrap; gap:10px; padding:10px 0; border-bottom:1px solid var(--border,#ddd); }
.ats-history article { padding:12px 0; border-bottom:1px solid var(--border,#ddd); }
.ats-history .sub { display:block; }
.ats-history p { overflow-wrap:anywhere; }
@media (max-width: 720px) {
 .ats-info-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
 .ats-filters { grid-template-columns: 1fr; }
 .ats-table { min-width:600px; }
 .ats-workspace header { flex-wrap:wrap; gap:8px; }
}
@media (max-width: 430px) { .ats-info-grid { grid-template-columns:1fr; } }
.ats-workspace { width:100%; min-width:0; box-sizing:border-box; }
.ats-workspace .box-pad, .ats-workspace .web-pages-wrap { min-width:0; max-width:100%; }

/* Momna Fix 7: task-day updates and HR meetings, compatible with original light/dark theme. */
.daily-update-editor, .daily-update-history { margin-bottom: 18px; }
.daily-update-filter { display: block; border-bottom: 1px solid var(--border, #e7e7e7); padding-bottom: 14px; margin-bottom: 12px; }
.daily-update-filter .fields, .daily-update-editor .fields, .staff-meeting-form .fields { align-items: end; }
.daily-update-list { display: grid; gap: 10px; margin-top: 12px; }
.daily-update-entry { min-width: 0; padding: 13px 15px; border: 1px solid var(--border, #e8e8e8); border-radius: 10px; }
.daily-update-entry-top, .meeting-schedule-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.daily-update-entry-top strong, .meeting-schedule-head strong { min-width: 0; overflow-wrap: anywhere; }
.daily-update-entry p { margin: 8px 0 0; white-space: normal; overflow-wrap: anywhere; }
.meeting-schedule-list { display: grid; gap: 12px; }
.meeting-schedule-entry { min-width: 0; }
.meeting-schedule-entry .box-pad { display: grid; gap: 8px; }
.staff-meeting-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px,100%),1fr)); gap: 8px; }
.staff-meeting-picks .check { min-width: 0; overflow-wrap: anywhere; }
.staff-meeting-people { border: 1px solid var(--border, #ddd); border-radius: 10px; padding: 12px; margin: 16px 0; min-width: 0; }
.staff-meeting-people legend { font-weight: 600; padding: 0 5px; }
.staff-meeting-private { padding: 14px; border: 1px solid var(--border, #ddd); border-radius: 9px; overflow-wrap: anywhere; }
.staff-meeting-detail p, .staff-meeting-detail a, .staff-meeting-history li { overflow-wrap: anywhere; }
.staff-meeting-actions { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.staff-meeting-cancel { display: grid; gap: 6px; min-width: 0; flex: 1 1 240px; }
.staff-meeting-cancel button { justify-self: start; }
.staff-meeting-history { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.staff-meeting-history .sub { display: inline; }
@media (max-width: 600px) {
  .daily-update-filter .fields, .daily-update-editor .fields, .staff-meeting-form .fields { display: grid; grid-template-columns: minmax(0,1fr); }
  .daily-update-entry, .staff-meeting-detail { padding: 12px; }
  .staff-meeting-actions { display: grid; grid-template-columns: minmax(0,1fr); }
}

.staff-meeting-filter { display:flex; flex-wrap:wrap; gap:8px; min-width:0; }
.staff-meeting-filter .button { flex:0 1 auto; }
.staff-meeting-form .field > label,
.daily-update-form .field > label { display: block; margin-bottom: 5px; }
.staff-meeting-form .field > input:not([type="checkbox"]),
.staff-meeting-form .field > textarea,
.staff-meeting-form .field > select,
.daily-update-form .field > textarea,
.daily-update-form .field > select { width: 100%; max-width: 100%; box-sizing: border-box; }
.staff-meeting-form .field > .hint { display: block; margin-top: 6px; }
.daily-update-filter > button, .daily-update-filter > a.button { margin-top: 12px; }

/* Project members: one manager plus individually selected staff. */
.project-list { overflow-x: auto; }
.project-list-table { min-width: 1040px; table-layout: auto; }
.project-list-table .project-list-action { width: 1%; white-space: nowrap; }
.project-members-cell { min-width: 150px; }
.project-member-stack { display: flex; align-items: center; min-height: 30px; padding-left: 3px; }
.project-member-avatar { display: inline-flex; margin-left: -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--canvas, #fff); }
.project-member-avatar:first-child { margin-left: 0; }
.project-member-avatar.is-inactive { opacity: .48; filter: grayscale(1); }
.project-member-more { display: inline-grid; place-items: center; min-width: 28px; height: 28px; margin-left: -5px; padding: 0 6px; border-radius: 50%; background: var(--fill-hover); box-shadow: 0 0 0 2px var(--canvas, #fff); color: var(--text); font-size: 11px; font-weight: 700; }

.project-team-editor { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.7fr); gap: 14px; margin-bottom: 8px; }
.project-manager-card, .project-member-summary { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.project-manager-card .person { margin-top: 7px; gap: 9px; }
.project-manager-card .hint, .project-member-summary .hint { margin-top: 9px; line-height: 1.5; }
.project-member-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.project-member-summary-head strong, .project-member-summary-head .sub { display: block; }
.project-selected-members { display: flex; flex-wrap: wrap; gap: 7px; min-height: 34px; margin-top: 12px; align-items: center; }
.project-member-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 6px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--fill); }
.project-member-chip > span:not(.pic):not(.avatar) { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.project-member-chip button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.project-member-chip button:hover, .project-member-chip button:focus-visible { background: var(--fill-hover); color: var(--text); outline: none; }
.project-member-empty { color: var(--muted); font-size: 12px; }

.project-member-dialog { width: min(760px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; }
.project-member-dialog[open] { display: flex; flex-direction: column; }
.project-member-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.project-member-dialog-head h3 { margin: 0; font-size: 16px; }
.project-member-dialog-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.project-member-tools { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(180px, .8fr); gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.project-member-tools label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 600; }
.project-member-tools input, .project-member-tools select { width: 100%; min-width: 0; }
.project-member-list { flex: 1 1 auto; min-height: 180px; overflow-y: auto; padding: 8px 18px; }
.project-member-option { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 8px; border-bottom: 1px solid var(--line); cursor: pointer; }
.project-member-option[hidden] { display: none !important; }
.project-member-option:last-child { border-bottom: 0; }
.project-member-option:hover { background: var(--fill); }
.project-member-option.is-selected { background: var(--leave-fill, #f4faef); }
.project-member-option.is-manager { opacity: .62; cursor: not-allowed; }
.project-member-option.is-manager::after { content: "Project Manager"; color: var(--muted); font-size: 11px; }
.project-member-option.is-manager .project-member-option-state { display: none; }
.project-member-option.is-inactive { opacity: .66; }
.project-member-option input { width: 18px; height: 18px; }
.project-member-option-copy { min-width: 0; }
.project-member-option-copy strong, .project-member-option-copy span { display: block; overflow-wrap: anywhere; }
.project-member-option-copy span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.project-member-option-state { visibility: hidden; color: #2c7a0c; font-size: 11px; font-weight: 700; }
.project-member-option.is-selected .project-member-option-state { visibility: visible; }
.project-member-dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); background: var(--canvas); font-size: 12px; }

@media (max-width: 760px) {
  .project-team-editor { grid-template-columns: minmax(0, 1fr); }
  .project-member-tools { grid-template-columns: minmax(0, 1fr); }
  .project-member-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .project-member-dialog-head, .project-member-tools, .project-member-list, .project-member-dialog-foot { padding-left: 14px; padding-right: 14px; }
  .project-member-dialog-foot .button { min-width: 100px; }
}

/* Project types: Social Media and SEO project setup (v2.24.32). */
.project-type-form { display: grid; gap: 14px; }
.project-form-intro { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.project-form-intro > span { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--text); color: var(--canvas); font-size: 11px; font-weight: 700; }
.project-form-card { width: 100%; min-width: 0; margin: 0; box-sizing: border-box; margin-bottom:24px;}
/* Keep every project form section visually separate. The form cards reset the
   normal .box margin, so restore a consistent vertical gap at the actual
   fieldset level where the cards are siblings. */
.project-type-form > .plain-fieldset > .project-form-card {
  margin-bottom: 16px;
}
.project-form-card > header { align-items: flex-start; flex-wrap: wrap; }
.project-form-card > header h2 { font-size: 15px; }
.project-details-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.project-details-grid .field { grid-column: span 2; }
.project-details-grid .field.wide { grid-column: span 3; }
.project-details-grid .field:last-child { grid-column: 1 / -1; }
.project-type-card[hidden] { display: none !important; }
.project-type-heading h3, .seo-baseline-panel h3, .project-type-advanced h3 { margin: 0; font-size: 13px; }
.project-type-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.project-type-divider { height: 1px; margin: 18px 0; background: var(--line); }
.project-type-note { margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--fill); color: var(--muted); font-size: 11px; line-height: 1.45; }
.project-type-note strong { color: var(--text); }

.project-structure-card.is-minimal-social .project-structure-grid { grid-template-columns: minmax(0, 560px); }
.social-platform-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.social-platform-picker legend { padding: 0; font-size: 12px; font-weight: 650; }
.social-platform-picker > .hint { margin: 4px 0 10px; }
.social-platform-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.social-platform-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600; transition: border-color .15s, background .15s, color .15s; }
.social-platform-chip:hover { border-color: var(--text); color: var(--text); }
.social-platform-chip.is-selected { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 18%, var(--canvas)); color: var(--text); }
.social-platform-chip input { margin: 0; }
.social-profile-links { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.social-profile-links > summary { cursor: pointer; font-size: 12px; font-weight: 650; }
.social-profile-links > summary .sub { margin-left: 4px; font-weight: 500; }
.social-profile-links > .hint { margin: 9px 0; }
.social-profile-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; }
.social-profile-link-grid label { display: grid; grid-template-columns: minmax(110px, .45fr) minmax(0, 1.55fr); align-items: center; gap: 10px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.social-profile-link-grid input { min-width: 0; width: 100%; }
.social-profile-link-grid [hidden] { display: none !important; }

.seo-project-core { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seo-check-grid { min-width: 0; margin: 14px 0 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px 12px; }
.seo-check-grid legend { padding: 0 4px; font-size: 12px; font-weight: 650; }
.seo-check-grid .check { min-width: 0; font-size: 12px; overflow-wrap: anywhere; }
.seo-tag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.seo-tag-field { min-width: 0; }
.seo-tag-box { min-height: 58px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.seo-tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.seo-tag-box > input { width: 100%; min-width: 0; margin-top: 5px; padding: 6px 4px; border: 0; background: transparent; box-shadow: none; }
.seo-tag-box > input:focus { outline: 0; }
.seo-tag-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 7px; border-radius: 6px; background: var(--fill-hover); font-size: 11px; }
.seo-tag-chip > span { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-tag-chip button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.seo-tag-chip button:hover, .seo-tag-chip button:focus-visible { background: var(--canvas); color: var(--text); outline: 1px solid var(--line); }
.seo-access-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; }
.seo-access-select { position: relative; }
.seo-access-select > span { position: absolute; z-index: 1; left: 12px; top: 50%; width: 8px; height: 8px; transform: translateY(-50%); border-radius: 50%; background: #21af56; pointer-events: none; }
.seo-access-select select { width: 100%; padding-left: 30px; }
.seo-baseline-panel { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--fill); }
.seo-baseline-panel .fields { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 9px; }
.seo-focus-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 15px 0 0; }
.seo-focus-grid > .hint { grid-column: 1 / -1; margin: -3px 0 2px; }
.project-type-advanced { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 12px; }
.project-type-advanced > summary { cursor: pointer; font-size: 12px; font-weight: 650; }
.project-type-advanced-body { margin-top: 12px; }

.project-team-card .project-team-editor { display: grid; grid-template-columns: minmax(240px, .58fr) minmax(0, 1.42fr); gap: 12px; }
.project-member-quick-tools { display: grid; grid-template-columns: minmax(160px, .8fr) minmax(220px, 1.2fr); gap: 10px; margin-bottom: 10px; }
.project-member-quick-tools label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 600; }
.project-member-quick-tools input, .project-member-quick-tools select { width: 100%; min-width: 0; }
.project-manager-card select { width: 100%; margin-top: 6px; }
.project-advanced-card > summary { padding: 15px 16px; cursor: pointer; font-size: 13px; font-weight: 650; }
.project-advanced-card[open] > summary { border-bottom: 1px solid var(--line); }
.project-form-actions { margin-top: 0; }

.project-service-summary { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.project-service-chip { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border-radius: 999px; background: var(--fill-hover); color: var(--muted); font-size: 10px; font-weight: 650; }
.project-priority { margin-left: 5px; }
.project-priority.is-high { background: var(--danger-fill); color: var(--danger); }
.project-priority.is-low { background: var(--fill); color: var(--muted); }

@media (max-width: 1000px) {
  .seo-check-grid, .seo-focus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seo-access-grid, .seo-baseline-panel .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-details-grid .field, .project-details-grid .field.wide { grid-column: auto; }
  .project-details-grid .field:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .social-profile-link-grid { grid-template-columns: minmax(0, 1fr); }
  .seo-tag-grid, .seo-project-core { grid-template-columns: minmax(0, 1fr); }
  .project-team-card .project-team-editor { grid-template-columns: minmax(0, 1fr); }
  .project-member-quick-tools { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .project-details-grid, .seo-access-grid, .seo-baseline-panel .fields, .seo-check-grid, .seo-focus-grid { grid-template-columns: minmax(0, 1fr); }
  .project-details-grid .field:last-child { grid-column: auto; }
  .social-platform-chips { gap: 7px; }
  .social-platform-chip { min-height: 34px; padding: 6px 9px; }
  .social-profile-link-grid label { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .project-type-form .box-pad { padding-left: 12px; padding-right: 12px; }
  .seo-tag-chip > span { max-width: 210px; }
}
.seo-project-setup-summary { margin-bottom: 14px; }
.seo-setup-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.seo-setup-summary-grid > div { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--fill); }
.seo-setup-summary-grid span, .seo-setup-summary-grid strong { display: block; overflow-wrap: anywhere; }
@media (max-width: 760px) { .seo-setup-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px) { .seo-setup-summary-grid { grid-template-columns: minmax(0, 1fr); } }

/* Project taxonomy v2.24.33: unified agency types, subtypes and timing. */
.project-structure-card { margin: 0; margin-bottom:24px;}
.project-structure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-planning-fields { margin-top: 16px; }
.project-planning-fields[hidden], .project-type-group[hidden] { display: none !important; }
.project-legacy-deadline { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff8ea; }
.project-legacy-deadline label, .project-legacy-deadline select { display: block; width: 100%; }
.project-legacy-deadline select { margin-top: 7px; }
.project-type-group + .project-type-group { margin-top: 18px; }
.project-option-field { min-width: 0; margin: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; }
.project-option-field legend, .project-addons legend { padding: 0 4px; font-size: 12px; font-weight: 650; }
.project-option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.project-option-grid .check { min-width: 0; overflow-wrap: anywhere; }
.project-addons { min-width: 0; margin: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--fill); }
.project-addons > .hint { margin: 0 0 9px; }
.project-generic-type textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.project-generic-type input[type="number"] { width: 100%; }
.project-generic-type .field > .hint { display: block; margin-top: 5px; }
.project-list-table td .sub { overflow-wrap: anywhere; }
.project-list-table td.hide-small > strong, .project-list-table td.hide-small > .sub { display: block; }
@media (max-width: 900px) {
  .project-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .project-structure-grid, .project-option-grid { grid-template-columns: minmax(0, 1fr); }
  .project-legacy-deadline { padding: 10px; }
}
/* Project list tools and table remain contained on narrow screens. */
@media (max-width: 600px) {
  .project-list + .page-hint { overflow-wrap: anywhere; }
  .list-tools:has(+ .project-list), .list-tools:has(~ .project-list) { flex-wrap: wrap; min-width: 0; }
  .list-tools:has(+ .project-list) .filters, .list-tools:has(~ .project-list) .filters { flex: 1 1 180px; min-width: 0; }
  .list-tools:has(+ .project-list) .filters select, .list-tools:has(~ .project-list) .filters select { width: 100%; max-width: 100%; min-width: 0; }
  .list-tools:has(+ .project-list) .count, .list-tools:has(~ .project-list) .count { margin-left: 0; }
}

/* Project workspace overview and explicit Social Media planner delegation. */
.project-list-actions { display:flex; flex-wrap:wrap; gap:6px; justify-content:flex-end; }
.project-social-planner { margin-top:14px; padding:0; border:1px solid var(--line); border-radius:10px; background:var(--page); }
.project-social-planner > summary { padding:11px 13px; cursor:pointer; font-size:12px; font-weight:650; }
.project-social-planner > summary .sub { margin-left:4px; font-weight:500; }
.project-social-planner[open] > summary { border-bottom:1px solid var(--line); }
.project-social-planner-body { padding:13px; }
.project-social-planner label > span { display:block; margin-bottom:6px; font-size:12px; font-weight:650; color:var(--muted); }
.project-social-planner select { width:100%; max-width:520px; }
.plan-owner-line { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 14px; padding:10px 12px; border:1px solid var(--line); border-radius:9px; background:var(--page); }
.plan-owner-line .person { display:inline-flex; align-items:center; gap:7px; }

.project-overview-hero { padding:18px 20px; display:grid; grid-template-columns:minmax(260px,1fr) minmax(520px,1.6fr); gap:22px; align-items:center; }
.project-overview-title { display:flex; align-items:flex-start; gap:13px; min-width:0; }
.project-overview-title > div { min-width:0; }
.project-overview-name { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.project-overview-name h1 { margin:0; font-size:22px; line-height:1.25; overflow-wrap:anywhere; }
.project-overview-title p { margin:4px 0 0; color:var(--muted); line-height:1.45; overflow-wrap:anywhere; }
.project-overview-chips { display:flex; flex-wrap:wrap; gap:5px; margin-top:9px; }
.project-overview-meta { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); min-width:0; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.project-overview-meta > div { min-width:0; padding:12px; border-left:1px solid var(--line); background:var(--canvas); }
.project-overview-meta > div:first-child { border-left:0; }
.project-overview-meta span,.project-overview-meta strong { display:block; overflow-wrap:anywhere; }
.project-overview-meta > div > span { color:var(--muted); font-size:11px; margin-bottom:5px; }
.project-overview-meta strong { font-size:12px; line-height:1.4; }
.project-overview-meta .person { display:flex; align-items:center; gap:6px; }
.project-overview-tabs { display:flex; gap:2px; overflow-x:auto; border-bottom:1px solid var(--line); margin:0 0 16px; padding:0 2px; scrollbar-width:thin; }
.project-overview-tabs a { flex:none; padding:10px 12px; color:var(--muted); font-size:12px; font-weight:600; text-decoration:none; border-bottom:2px solid transparent; white-space:nowrap; }
.project-overview-tabs a:hover,.project-overview-tabs a.is-on { color:var(--text); border-color:var(--ink); }
.project-overview-grid { display:grid; gap:14px; margin-bottom:14px; }
.project-overview-grid-top { grid-template-columns:repeat(3,minmax(0,1fr)); }
.project-overview-grid-middle { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,.9fr); }
.project-overview-grid-bottom { grid-template-columns:repeat(3,minmax(0,1fr)); }
.project-overview-card { min-width:0; margin:0; }
.project-overview-card > header { gap:10px; }
.project-overview-card > header a { font-size:11px; }
.project-progress-layout { display:grid; grid-template-columns:100px minmax(0,1fr); align-items:center; gap:15px; }
.project-progress-ring { --project-progress:0; width:92px; aspect-ratio:1; display:grid; place-items:center; border-radius:50%; background:conic-gradient(var(--ink) calc(var(--project-progress)*1%),var(--fill-hover) 0); position:relative; }
.project-progress-ring::before { content:""; position:absolute; inset:11px; border-radius:50%; background:var(--canvas); }
.project-progress-ring strong { position:relative; z-index:1; font-size:20px; }
.project-progress-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.project-progress-stats > div,.project-month-stats > div { min-width:0; padding:10px; border:1px solid var(--line); border-radius:8px; background:var(--page); }
.project-progress-stats strong,.project-progress-stats span,.project-month-stats strong,.project-month-stats span { display:block; overflow-wrap:anywhere; }
.project-progress-stats strong,.project-month-stats strong { font-size:18px; }
.project-progress-stats span,.project-month-stats span { margin-top:3px; font-size:10px; color:var(--muted); }
.project-progress-stats .is-danger strong { color:var(--danger); }
.project-progress-total { grid-column:1/-1; margin:0; }
.project-month-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.project-overview-card-link { grid-column:1/-1; justify-self:end; font-size:11px; }
.project-current-delivery { display:grid; gap:10px; }
.project-current-delivery > div { padding:10px; border:1px solid var(--line); border-radius:8px; }
.project-current-delivery span,.project-current-delivery strong,.project-current-delivery small { display:block; overflow-wrap:anywhere; }
.project-current-delivery span,.project-current-delivery small { color:var(--muted); font-size:11px; }
.project-current-delivery strong { margin:4px 0; }
.project-key-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; }
.project-key-details > div { min-width:0; display:flex; justify-content:space-between; align-items:flex-start; gap:8px; padding:8px 0; border-bottom:1px solid var(--line); }
.project-key-details span { color:var(--muted); font-size:11px; }
.project-key-details strong { text-align:right; font-size:11px; overflow-wrap:anywhere; }
.project-key-details .person { display:flex; align-items:center; gap:5px; }
.project-overview-table-wrap { overflow-x:auto; }
.project-overview-table-wrap table { width:100%; min-width:560px; border-collapse:collapse; }
.project-overview-table-wrap th,.project-overview-table-wrap td { padding:10px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; font-size:11px; }
.project-overview-table-wrap th { color:var(--muted); font-weight:600; background:var(--page); }
.project-update-list,.project-upcoming-list,.project-risk-list,.project-team-list,.project-file-list,.project-activity-list { padding:0 14px; }
.project-update-list article,.project-team-list article,.project-file-list article,.project-activity-list article { display:flex; align-items:flex-start; gap:9px; padding:11px 0; border-top:1px solid var(--line); }
.project-update-list article:first-child,.project-team-list article:first-child,.project-file-list article:first-child,.project-activity-list article:first-child { border-top:0; }
.project-update-list article > div,.project-team-list article > div,.project-file-list article > div,.project-activity-list article > div { min-width:0; flex:1; }
.project-update-list article > div > div { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.project-update-list strong,.project-team-list strong,.project-file-list a,.project-activity-list strong { display:block; overflow-wrap:anywhere; }
.project-update-list p { margin:4px 0; font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.project-update-list span,.project-team-list span,.project-file-list span,.project-activity-list span { display:block; color:var(--muted); font-size:10px; line-height:1.4; overflow-wrap:anywhere; }
.project-upcoming-list article { display:grid; grid-template-columns:45px minmax(0,1fr) auto; gap:9px; align-items:center; padding:10px 14px; border-top:1px solid var(--line); }
.project-upcoming-list article:first-child { border-top:0; }
.project-upcoming-list time { display:grid; place-items:center; min-height:38px; border:1px solid var(--line); border-radius:8px; font-size:10px; font-weight:700; }
.project-upcoming-list strong,.project-upcoming-list span { display:block; overflow-wrap:anywhere; }
.project-upcoming-list div > span { color:var(--muted); font-size:10px; margin-top:3px; }
.project-risk-list article { display:flex; gap:9px; padding:10px 0; border-top:1px solid var(--line); }
.project-risk-list article:first-child { border-top:0; }
.project-risk-list strong,.project-risk-list span { display:block; overflow-wrap:anywhere; }
.project-risk-list span { color:var(--muted); font-size:10px; margin-top:3px; }
.project-risk-dot { width:8px; height:8px; flex:none; border-radius:50%; margin-top:5px; background:var(--muted); }
.project-risk-dot.is-red { background:var(--danger); }
.project-risk-dot.is-amber { background:#b36b00; }
.project-task-avatars { display:flex; }
.project-task-avatars .pic,.project-task-avatars .avatar { margin-left:-6px; border:2px solid var(--canvas); }
.project-task-avatars .pic:first-child,.project-task-avatars .avatar:first-child { margin-left:0; }
.project-hours-card { display:grid; gap:8px; }
.project-hours-card > strong { font-size:26px; }
.project-hours-card .bar { height:7px; }
.project-hours-card small { color:var(--muted); }

@media (max-width:1100px) {
  .project-overview-hero { grid-template-columns:1fr; }
  .project-overview-meta { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .project-overview-meta > div:nth-child(4) { border-left:0; border-top:1px solid var(--line); }
  .project-overview-meta > div:nth-child(5) { border-top:1px solid var(--line); }
  .project-overview-grid-middle { grid-template-columns:1fr 1fr; }
  .project-platform-card { grid-column:1/-1; }
  .project-overview-grid-bottom { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:720px) {
  .project-overview-hero { padding:14px; }
  .project-overview-meta { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .project-overview-meta > div { border-left:1px solid var(--line); border-top:1px solid var(--line); }
  .project-overview-meta > div:nth-child(odd) { border-left:0; }
  .project-overview-meta > div:nth-child(-n+2) { border-top:0; }
  .project-overview-grid-top,.project-overview-grid-middle,.project-overview-grid-bottom { grid-template-columns:minmax(0,1fr); }
  .project-platform-card { grid-column:auto; }
  .project-progress-layout { grid-template-columns:82px minmax(0,1fr); }
  .project-progress-ring { width:78px; }
  .project-key-details { grid-template-columns:1fr; }
  .project-upcoming-list article { grid-template-columns:42px minmax(0,1fr); }
  .project-upcoming-list article > .tag { grid-column:2; justify-self:start; }
  .project-list-actions { justify-content:flex-start; }
}
@media (max-width:420px) {
  .project-overview-title { align-items:flex-start; }
  .project-overview-name h1 { font-size:19px; }
  .project-overview-meta { grid-template-columns:1fr; }
  .project-overview-meta > div { border-left:0; border-top:1px solid var(--line); }
  .project-overview-meta > div:first-child { border-top:0; }
  .project-progress-layout { grid-template-columns:1fr; }
  .project-progress-ring { justify-self:center; }
}

/* Social Media project-day updates (v2.24.35). */
.social-date-card, .social-daily-form > .box, .social-update-day { margin-bottom: 18px; }
.social-date-picker { display:flex; align-items:end; gap:10px; flex-wrap:wrap; }
.social-date-picker label { display:grid; gap:5px; font-weight:600; }
.social-date-picker input { min-width:190px; }
.social-daily-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:16px 0 24px; }
.social-daily-actions .hint { flex:1 1 360px; }
.social-creative-editor-list { display:grid; gap:14px; }
.social-creative-editor { min-width:0; border:1px solid var(--line); border-radius:10px; padding:14px; background:var(--page); }
.social-creative-editor.is-readonly { background:var(--soft); }
.social-creative-editor[hidden] { display:none !important; }
.social-creative-editor-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:12px; }
.social-creative-editor-head h3 { margin:0; overflow-wrap:anywhere; }
.social-creative-editor-head p { margin:3px 0 0; }
.social-upload-field { margin-top:13px; }
.social-upload-field > label { display:block; margin-bottom:6px; font-weight:600; }
.social-file-preview, .social-existing-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:9px; margin-top:10px; }
.social-file-preview-item, .social-existing-file { position:relative; display:flex; flex-direction:column; gap:6px; min-width:0; border:1px solid var(--line); border-radius:8px; padding:8px; background:var(--fill); color:inherit; text-decoration:none; overflow:hidden; }
.social-file-preview-item img, .social-file-preview-item video, .social-existing-file img, .social-existing-file video { width:100%; height:110px; object-fit:cover; border-radius:6px; background:#111; }
.social-file-preview-item > span, .social-existing-file > span { overflow-wrap:anywhere; font-size:11px; }
.social-file-preview-icon { display:grid; place-items:center; height:110px; border-radius:6px; background:var(--soft); color:var(--muted); font-weight:700; }
.social-existing-media { margin:13px 0; }
.social-platform-editor { margin-top:16px; border-top:1px solid var(--line); padding-top:14px; }
.social-platform-editor-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.social-platform-editor-head h4 { margin:0; }
.social-platform-table { display:grid; gap:7px; }
.social-platform-table-head, .social-platform-edit-row { display:grid; grid-template-columns:minmax(130px,.75fr) minmax(150px,.9fr) minmax(220px,1.5fr) minmax(175px,1fr); gap:8px; align-items:center; }
.social-platform-table-head { padding:0 8px; color:var(--muted); font-size:11px; font-weight:650; text-transform:uppercase; letter-spacing:.035em; }
.social-platform-edit-row { padding:8px; border:1px solid var(--line); border-radius:8px; background:var(--fill); }
.social-platform-edit-row.is-published { border-color:color-mix(in srgb, var(--ok) 35%, var(--line)); }
.social-platform-edit-row input, .social-platform-edit-row select { min-width:0; width:100%; }
.social-today-status { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:15px 17px; margin-bottom:16px; }
.social-today-status > div { min-width:0; display:grid; gap:3px; }
.social-today-status span, .social-today-status small { color:var(--muted); overflow-wrap:anywhere; }
.social-today-status.is-submitted { border-left:3px solid var(--ok); }
.social-today-status.is-draft { border-left:3px solid var(--warn); }
.social-history-filter label { display:flex; align-items:center; gap:6px; font-size:12px; font-weight:600; }
.social-update-feed { display:grid; gap:16px; }
.social-update-day-head { align-items:flex-start; flex-wrap:wrap; gap:10px; }
.social-update-day-head h2 { margin:0; }
.social-update-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:10px; padding:12px 16px; border-bottom:1px solid var(--line); background:var(--soft); }
.social-update-summary > div { min-width:0; }
.social-update-summary span { color:var(--muted); font-size:11px; font-weight:650; text-transform:uppercase; }
.social-update-summary p { margin:4px 0 0; line-height:1.5; overflow-wrap:anywhere; }
.social-update-summary .is-blocker { border-left:3px solid var(--danger); padding-left:10px; }
.social-creative-rows { display:grid; }
.social-creative-row { display:grid; grid-template-columns:150px minmax(0,1fr) minmax(180px,240px); gap:14px; padding:14px 16px; border-top:1px solid var(--line); align-items:start; }
.social-creative-row:first-child { border-top:0; }
.social-creative-preview { position:relative; display:grid; place-items:center; width:150px; height:112px; padding:0; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:#161616; cursor:pointer; }
.social-creative-preview img, .social-creative-preview video { width:100%; height:100%; object-fit:cover; }
.social-creative-preview.is-empty { background:var(--soft); color:var(--muted); gap:4px; }
.social-creative-preview.is-empty span { font-size:11px; }
.social-media-count { position:absolute; right:7px; bottom:7px; min-width:24px; padding:3px 6px; border-radius:999px; background:rgba(0,0,0,.75); color:#fff; font-size:11px; font-style:normal; }
.social-creative-main { min-width:0; }
.social-creative-heading { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.social-creative-heading h3 { margin:0; overflow-wrap:anywhere; }
.social-creative-heading p { margin:3px 0 0; }
.social-creative-state { display:flex; gap:5px; flex-wrap:wrap; justify-content:flex-end; }
.social-creative-caption { margin:9px 0; line-height:1.5; overflow-wrap:anywhere; }
.social-platform-results { display:flex; flex-wrap:wrap; gap:7px; margin-top:9px; }
.social-platform-result { display:inline-flex; align-items:center; gap:5px; max-width:100%; padding:5px 7px; border:1px solid var(--line); border-radius:8px; background:var(--fill); font-size:11px; }
.social-platform-result > span:first-child { font-weight:650; }
.social-review-form { display:grid; gap:9px; padding:10px; border:1px solid var(--line); border-radius:8px; background:var(--soft); }
.social-review-form label:not(.check) { display:grid; gap:5px; font-size:11px; font-weight:650; }
.social-manager-note { padding:12px 16px; border-top:1px solid var(--line); background:var(--soft); }
.social-manager-note p { margin:5px 0 0; overflow-wrap:anywhere; }
.social-update-empty { margin-top:16px; }
.social-media-viewer { width:min(980px,calc(100vw - 28px)); max-height:calc(100vh - 28px); padding:0; border:0; border-radius:12px; box-shadow:0 24px 70px rgba(0,0,0,.28); overflow:hidden; }
.social-media-viewer::backdrop { background:rgba(0,0,0,.62); }
.social-media-viewer-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; padding:15px 18px; border-bottom:1px solid var(--line); background:var(--page); }
.social-media-viewer-head h2 { margin:0; }
.social-media-viewer-head p { margin:3px 0 0; }
.social-media-viewer-body { max-height:calc(100vh - 100px); overflow:auto; padding:16px; background:var(--soft); }
.social-media-stage { display:grid; grid-template-columns:40px minmax(0,1fr) 40px; gap:10px; align-items:center; }
.social-media-stage-content { min-height:420px; max-height:68vh; display:grid; place-items:center; overflow:hidden; border-radius:10px; background:#111; }
.social-media-stage-content img, .social-media-stage-content video { max-width:100%; max-height:68vh; width:auto; height:auto; }
.social-media-file-fallback { color:#fff; text-align:center; padding:30px; }
.social-media-prev, .social-media-next { border-radius:50%; }
.social-media-next { transform:rotate(180deg); }
.social-media-counter { text-align:center; margin:8px 0; }
.social-media-viewer-copy { white-space:pre-wrap; line-height:1.55; padding:12px; background:var(--page); border:1px solid var(--line); border-radius:8px; overflow-wrap:anywhere; }
.social-media-viewer-copy:empty { display:none; }
.social-media-viewer-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.social-daily-overview { display:grid; gap:10px; }
.social-daily-overview-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.social-daily-overview-stats div { min-width:0; padding:9px; border:1px solid var(--line); border-radius:8px; text-align:center; }
.social-daily-overview-stats strong, .social-daily-overview-stats span { display:block; }
.social-daily-overview-stats span { color:var(--muted); font-size:11px; }
@media (max-width: 980px) {
  .social-creative-row { grid-template-columns:130px minmax(0,1fr); }
  .social-review-form { grid-column:1 / -1; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; }
  .social-platform-table-head { display:none; }
  .social-platform-edit-row { grid-template-columns:minmax(120px,.7fr) minmax(140px,1fr); }
  .social-platform-edit-row input { grid-column:1 / -1; }
}
@media (max-width: 620px) {
  .social-date-picker, .social-daily-actions, .social-today-status { align-items:stretch; flex-direction:column; }
  .social-date-picker input, .social-date-picker .button, .social-daily-actions .button, .social-today-status .button { width:100%; }
  .social-creative-row { grid-template-columns:minmax(0,1fr); }
  .social-creative-preview { width:100%; height:210px; }
  .social-creative-heading { display:grid; }
  .social-creative-state { justify-content:flex-start; }
  .social-review-form { grid-template-columns:minmax(0,1fr); }
  .social-platform-edit-row { grid-template-columns:minmax(0,1fr); }
  .social-platform-edit-row input { grid-column:auto; }
  .social-media-stage { grid-template-columns:32px minmax(0,1fr) 32px; gap:5px; }
  .social-media-stage-content { min-height:260px; }
  .social-media-viewer-body { padding:10px; }
  .social-daily-overview-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Professional Social Media project-day status on the unified Project Overview. */
.project-social-today-card { grid-column: 1 / -1; margin: 0 0 14px; }
.project-social-today-card > .box-pad { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.project-social-today-copy { min-width:0; flex:1 1 420px; }
.project-social-today-copy h2 { margin:2px 0 5px; font-size:17px; line-height:1.35; overflow-wrap:anywhere; }
.project-social-today-copy p { margin:0; color:var(--muted); line-height:1.5; overflow-wrap:anywhere; }
.project-social-today-copy small { display:block; margin-top:6px; color:var(--muted); overflow-wrap:anywhere; }
.project-overview-kicker { display:block; color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; }
.project-social-today-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.project-social-today-card.is-submitted { border-left:3px solid var(--ok); }
.project-social-today-card.is-draft { border-left:3px solid var(--warn); }
.social-update-audit { margin:0; padding:11px 16px; border-top:1px solid var(--line); background:var(--page); }
.social-update-audit > summary { cursor:pointer; font-weight:650; font-size:12px; }
.social-update-audit > summary:focus-visible { outline:2px solid var(--ink); outline-offset:3px; border-radius:4px; }
.social-update-audit ol { margin:10px 0 0; padding-left:20px; display:grid; gap:9px; }
.social-update-audit li { padding-left:2px; }
.social-update-audit li strong,.social-update-audit li span { display:block; overflow-wrap:anywhere; }
.social-update-audit li span { color:var(--muted); font-size:10px; }
.social-update-audit li p { margin:4px 0 0; line-height:1.45; overflow-wrap:anywhere; }
.cal-pic.is-video { position:relative; overflow:hidden; }
.cal-pic.is-video video { width:100%; height:100%; object-fit:cover; }
.cal-pic.is-video .play-mark { position:absolute; inset:0; display:grid; place-items:center; background:rgba(0,0,0,.18); color:#fff; }
@media (max-width:620px) {
  .project-social-today-card > .box-pad { align-items:stretch; }
  .project-social-today-actions { width:100%; justify-content:stretch; }
  .project-social-today-actions .button { flex:1 1 150px; justify-content:center; }
}
.social-creative-internal-note { margin:9px 0; padding:9px 10px; border-left:3px solid var(--ink); border-radius:0 7px 7px 0; background:var(--soft); font-size:11px; line-height:1.45; white-space:pre-wrap; overflow-wrap:anywhere; }
.social-creative-internal-note strong { display:block; margin-bottom:3px; }

/* Professional project-level SEO daily updates and generated reports. */
.seo-date-card { margin-bottom:16px; }
.seo-date-picker { display:flex; align-items:end; gap:9px; flex-wrap:wrap; }
.seo-date-picker label { display:block; font-size:12px; font-weight:650; color:var(--muted); }
.seo-date-picker input { display:block; margin-top:5px; }
.seo-activity-editor-list { display:grid; gap:14px; }
.seo-activity-editor { min-width:0; border:1px solid var(--line); border-radius:11px; background:var(--page); padding:14px; }
.seo-activity-editor.is-readonly { background:var(--soft); }
.seo-activity-editor-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:13px; }
.seo-activity-editor-head h3 { margin:0; font-size:15px; overflow-wrap:anywhere; }
.seo-activity-editor-head p { margin:3px 0 0; }
.seo-activity-fields { align-items:start; }
.seo-activity-fields .field > label, .seo-evidence-upload > label { display:block; margin-bottom:5px; font-size:12px; font-weight:650; }
.seo-activity-fields input, .seo-activity-fields textarea, .seo-activity-fields select, .seo-evidence-upload input { width:100%; max-width:100%; box-sizing:border-box; }
.seo-evidence-files { margin:12px 0; }
.seo-evidence-files > strong { display:block; margin-bottom:7px; font-size:12px; }
.seo-evidence-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr)); gap:8px; }
.seo-evidence-file { min-width:0; padding:9px 10px; border:1px solid var(--line); border-radius:8px; background:var(--surface); }
.seo-evidence-file > a { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:7px; align-items:center; color:inherit; text-decoration:none; }
.seo-evidence-file span, .seo-evidence-file small { overflow-wrap:anywhere; }
.seo-evidence-file .check { margin-top:7px; }
.seo-file-preview { display:flex; flex-wrap:wrap; gap:7px; margin-top:7px; }
.seo-file-preview-item { display:flex; align-items:center; gap:7px; min-width:0; padding:6px 8px; border:1px solid var(--line); border-radius:7px; background:var(--surface); font-size:11px; }
.seo-file-preview-item span { max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.seo-activity-review-summary { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin-top:11px; }
.seo-daily-actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin:16px 0 4px; }
.seo-today-status { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:15px 17px; margin-bottom:16px; }
.seo-today-status > div { min-width:0; }
.seo-today-status strong, .seo-today-status span, .seo-today-status small { display:block; overflow-wrap:anywhere; }
.seo-today-status span { margin-top:3px; color:var(--muted); font-size:12px; }
.seo-today-status small { margin-top:4px; color:var(--muted); }
.seo-history-filter { flex-wrap:wrap; }
.seo-update-feed { display:grid; gap:15px; }
.seo-update-day { overflow:hidden; }
.seo-update-day-head { align-items:flex-start; }
.seo-update-day-head h2 { margin:0; font-size:16px; }
.seo-update-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:12px 16px; border-bottom:1px solid var(--line); background:var(--soft); }
.seo-update-summary > div { min-width:0; }
.seo-update-summary span { display:block; color:var(--muted); font-size:11px; font-weight:650; text-transform:uppercase; letter-spacing:.04em; }
.seo-update-summary p { margin:4px 0 0; overflow-wrap:anywhere; }
.seo-update-summary .is-blocker { color:var(--danger); }
.seo-activity-rows { display:grid; }
.seo-activity-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(230px,300px); gap:14px; padding:15px 16px; border-top:1px solid var(--line); }
.seo-activity-row:first-child { border-top:0; }
.seo-activity-main { min-width:0; }
.seo-activity-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.seo-activity-heading h3 { margin:0; font-size:15px; overflow-wrap:anywhere; }
.seo-activity-heading p { margin:3px 0 0; }
.seo-activity-state { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:5px; }
.seo-activity-details { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr)); gap:8px; margin-top:11px; }
.seo-activity-details > div { min-width:0; padding:8px 9px; border:1px solid var(--line); border-radius:7px; }
.seo-activity-details span { display:block; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.04em; }
.seo-activity-details strong, .seo-activity-details a { display:block; margin-top:3px; overflow-wrap:anywhere; }
.seo-activity-copy { margin-top:10px; }
.seo-activity-copy strong { display:block; font-size:12px; }
.seo-activity-copy p { margin:3px 0 0; overflow-wrap:anywhere; }
.seo-activity-copy.is-blocker { padding:9px 10px; border-left:3px solid var(--danger); background:var(--danger-fill); }
.seo-evidence-links { display:flex; flex-wrap:wrap; gap:6px; margin-top:11px; }
.seo-review-note { margin:10px 0 0; padding:9px 10px; border-radius:8px; background:var(--soft); overflow-wrap:anywhere; }
.seo-review-note strong { display:block; font-size:11px; }
.seo-review-form { display:grid; align-content:start; gap:9px; min-width:0; padding:11px; border:1px solid var(--line); border-radius:9px; background:var(--soft); }
.seo-review-form label > span { display:block; margin-bottom:4px; font-size:11px; font-weight:650; }
.seo-review-form select, .seo-review-form textarea { width:100%; max-width:100%; box-sizing:border-box; }
.seo-manager-note { padding:12px 16px; border-top:1px solid var(--line); background:var(--soft); }
.seo-manager-note p { margin:4px 0 0; overflow-wrap:anywhere; }
.seo-update-audit { margin:0; padding:11px 16px 14px; border-top:1px solid var(--line); }
.seo-update-audit summary { cursor:pointer; font-weight:600; }
.seo-update-audit ol { margin:10px 0 0; padding-left:20px; }
.seo-update-audit li { margin:7px 0; }
.seo-update-audit li span { display:block; color:var(--muted); font-size:11px; }
.seo-update-empty { margin-top:16px; }
.seo-report-head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding:18px 20px; }
.seo-report-head h1 { margin:2px 0 3px; font-size:23px; }
.seo-report-head p { margin:0; color:var(--muted); }
.seo-report-periods { display:flex; flex-wrap:wrap; gap:7px; }
.seo-report-nav { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px; margin:13px 0; }
.seo-report-nav > :last-child { justify-self:end; }
.seo-report-summary-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.seo-report-summary-cards > div { min-width:0; padding:12px 13px; border:1px solid var(--line); border-radius:9px; background:var(--surface); }
.seo-report-summary-cards span { display:block; color:var(--muted); font-size:11px; }
.seo-report-summary-cards strong { display:block; margin-top:4px; font-size:20px; }
.seo-report-summary-cards .is-danger { border-color:var(--danger); }
.seo-report-metric-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }
.seo-report-metric-grid > div { min-width:0; padding:10px; border:1px solid var(--line); border-radius:8px; }
.seo-report-metric-grid span, .seo-report-metric-grid small { display:block; color:var(--muted); font-size:10px; }
.seo-report-metric-grid strong { display:block; margin:3px 0; font-size:18px; }
.seo-report-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(280px,.8fr); gap:14px; margin:14px 0; }
.seo-report-bars { display:grid; gap:11px; }
.seo-report-bar > div { display:flex; justify-content:space-between; gap:10px; margin-bottom:5px; }
.seo-report-bar span { color:var(--muted); font-size:11px; text-align:right; }
.seo-report-status-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.seo-report-status-grid > div { padding:10px; border:1px solid var(--line); border-radius:8px; }
.seo-report-status-grid span { display:block; color:var(--muted); font-size:11px; }
.seo-report-status-grid strong { display:block; margin-top:3px; font-size:18px; }
.seo-report-table { width:100%; min-width:650px; }
.seo-report-ranked { margin:0; padding-left:20px; }
.seo-report-ranked li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; padding:7px 0; border-bottom:1px solid var(--line); }
.seo-report-ranked a, .seo-report-ranked span { min-width:0; overflow-wrap:anywhere; }
.seo-contributor-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr)); gap:9px; }
.seo-contributor-grid > div { display:flex; align-items:center; gap:9px; padding:9px; border:1px solid var(--line); border-radius:8px; }
.seo-contributor-grid span, .seo-contributor-grid strong, .seo-contributor-grid small { display:block; min-width:0; }
.seo-contributor-grid small { color:var(--muted); }
.seo-report-footnote { margin:13px 0 0; }
@media (max-width:1000px) {
  .seo-activity-row { grid-template-columns:minmax(0,1fr); }
  .seo-review-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .seo-report-summary-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .seo-report-metric-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:700px) {
  .seo-today-status, .seo-report-head { align-items:stretch; flex-direction:column; }
  .seo-update-summary, .seo-report-grid { grid-template-columns:minmax(0,1fr); }
  .seo-activity-heading { flex-direction:column; }
  .seo-activity-state { justify-content:flex-start; }
  .seo-review-form { grid-template-columns:minmax(0,1fr); }
  .seo-report-summary-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .seo-report-metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media print {
  .sidebar,.topbar,.page-actions,.seo-report-periods,.seo-report-nav .button { display:none!important; }
  .main { margin:0!important; }
  .content { padding:0!important; }
  .box { break-inside:avoid; box-shadow:none!important; }
}
/* Keep SEO editor actions inside narrow project pages. */
.seo-daily-form .box > header { flex-wrap: wrap; gap: 9px; }
@media (max-width: 520px) {
  .seo-daily-form .box > header > .button { width: 100%; justify-content: center; }
  .seo-daily-actions .button { flex: 1 1 140px; }
}
.seo-update-day-head { flex-wrap: wrap; gap: 9px; }
@media (max-width: 520px) {
  .seo-update-day-head > .button { width: 100%; justify-content: center; }
}

/* Professional structured daily updates for the remaining agency project types. */
.agency-date-card, .agency-update-day, .agency-report-head, .agency-client-report { min-width:0; }
.agency-date-picker { display:flex; align-items:end; gap:10px; flex-wrap:wrap; }
.agency-date-picker label { display:block; font-weight:600; }
.agency-date-picker input { width:min(240px,100%); }
.agency-entry-list { display:grid; gap:16px; }
.agency-entry-editor { min-width:0; padding:16px; border:1px solid var(--line); border-radius:10px; background:var(--surface, #fff); }
.agency-entry-editor.is-readonly { background:var(--soft); }
.agency-entry-editor.is-blocked { border-color:#e5b7b7; }
.agency-entry-head, .agency-update-day-head, .agency-feed-entry-head, .agency-daily-actions, .agency-report-nav, .agency-report-periods { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.agency-entry-head h3, .agency-update-day-head h2, .agency-feed-entry-head h3 { margin:0; overflow-wrap:anywhere; }
.agency-entry-details, .agency-feed-detail-grid, .agency-report-summary, .agency-report-metrics, .agency-report-status-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.agency-entry-details > div, .agency-feed-detail-grid > div, .agency-report-summary > div, .agency-report-metrics > div, .agency-report-status-grid > div { min-width:0; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--soft); overflow-wrap:anywhere; }
.agency-entry-details span, .agency-feed-detail-grid span, .agency-report-summary span, .agency-report-metrics span, .agency-report-status-grid span { display:block; color:var(--muted); font-size:12px; }
.agency-entry-details strong, .agency-feed-detail-grid strong, .agency-report-summary strong, .agency-report-metrics strong, .agency-report-status-grid strong { display:block; margin-top:3px; }
.agency-type-fields, .agency-common-fields { margin-top:12px; }
.agency-metrics { margin:14px 0; border:1px solid var(--line); border-radius:9px; padding:0 12px; }
.agency-metrics > summary { cursor:pointer; padding:12px 0; font-weight:600; }
.agency-metrics > .fields { padding-bottom:12px; }
.agency-evidence-upload { margin-top:14px; }
.agency-evidence-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); gap:8px; margin-top:8px; }
.agency-evidence-file { min-width:0; display:flex; align-items:center; gap:8px; padding:9px 10px; border:1px solid var(--line); border-radius:8px; color:inherit; text-decoration:none; overflow-wrap:anywhere; }
.agency-evidence-file > a { min-width:0; display:flex; align-items:center; gap:8px; flex:1; color:inherit; text-decoration:none; }
.agency-evidence-file span { min-width:0; overflow-wrap:anywhere; }
.agency-evidence-file small { margin-left:auto; color:var(--muted); flex:none; }
.agency-file-preview { display:grid; gap:6px; margin-top:8px; }
.agency-file-preview-item { min-width:0; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; padding:8px 10px; border:1px dashed var(--line); border-radius:7px; }
.agency-file-preview-item b { font-size:10px; padding:2px 5px; border-radius:4px; background:var(--soft); }
.agency-file-preview-item span { overflow-wrap:anywhere; }
.agency-file-preview-item small { color:var(--muted); }
.agency-review-summary { display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin-top:12px; }
.agency-daily-actions { margin:16px 0 22px; justify-content:flex-start; }
.agency-daily-actions .hint { flex:1 1 320px; }
.agency-history-filter { display:flex; align-items:end; gap:10px; flex-wrap:wrap; }
.agency-update-feed, .agency-feed-entries { display:grid; gap:12px; }
.agency-update-day { overflow:hidden; }
.agency-update-day-head { padding:14px 16px; border-bottom:1px solid var(--line); }
.agency-day-summary, .agency-internal-copy { margin-bottom:12px; }
.agency-feed-entry { min-width:0; padding:13px 0; border-bottom:1px solid var(--line); }
.agency-feed-entry:last-child { border-bottom:0; }
.agency-feed-entry p { overflow-wrap:anywhere; white-space:normal; }
.agency-feed-metrics { display:flex; flex-wrap:wrap; gap:7px; margin:8px 0; }
.agency-feed-metrics span { padding:5px 8px; border-radius:7px; background:var(--soft); font-size:12px; }
.agency-history { margin-top:10px; }
.agency-report-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.agency-report-bars { display:grid; gap:12px; }
.agency-report-bar > div { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.agency-report-bar span { color:var(--muted); }
.agency-report-ranked { margin:0; padding-left:22px; display:grid; gap:9px; }
.agency-report-ranked li { display:flex; justify-content:space-between; gap:10px; }
.agency-contributor-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:10px; }
.agency-contributor-grid > div { display:flex; gap:9px; align-items:center; padding:9px; border:1px solid var(--line); border-radius:8px; }
.agency-contributor-grid strong, .agency-contributor-grid small { display:block; }
.agency-report-table { min-width:720px; width:100%; }
.agency-report-table th, .agency-report-table td { vertical-align:top; overflow-wrap:anywhere; }
.agency-report-footnote { margin:14px 0; }
.agency-report-periods { justify-content:flex-end; }
.agency-client-daily-feed { margin-top:20px; }
.agency-common-fields .is-required label::after { content:' *'; color:#b42318; }
.is-danger { color:#b42318 !important; }
@media (max-width:900px) {
  .agency-entry-details, .agency-feed-detail-grid, .agency-report-summary, .agency-report-metrics, .agency-report-status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
  .agency-entry-editor { padding:12px; }
  .agency-entry-details, .agency-feed-detail-grid, .agency-report-summary, .agency-report-metrics, .agency-report-status-grid, .agency-report-grid { grid-template-columns:minmax(0,1fr); }
  .agency-date-picker { display:grid; grid-template-columns:minmax(0,1fr); }
  .agency-date-picker input, .agency-date-picker .button { width:100%; }
  .agency-daily-actions { display:grid; grid-template-columns:minmax(0,1fr); }
  .agency-daily-actions .button { justify-content:center; width:100%; }
  .agency-history-filter { display:grid; grid-template-columns:minmax(0,1fr); }
  .agency-report-nav { display:grid; grid-template-columns:auto minmax(0,1fr) auto; text-align:center; }
}
/* Keep structured daily-update controls inside narrow employee-portal views. */
.agency-daily-form .box > header { flex-wrap: wrap; gap: 9px; }
.agency-evidence-upload input[type="file"] { display:block; width:100%; max-width:100%; min-width:0; box-sizing:border-box; overflow:hidden; }
@media (max-width: 520px) {
  .agency-daily-form .box > header > .button { width:100%; justify-content:center; }
}

/* Launch readiness and protected one-time clean start. */
.launch-hero { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:22px; margin-bottom:18px; }
.launch-hero h2 { margin:4px 0 8px; max-width:850px; }
.launch-kicker { display:block; color:var(--muted); font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.launch-workflow-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.launch-workflow-card { min-width:0; padding:17px; display:flex; flex-direction:column; align-items:flex-start; }
.launch-workflow-head { width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.launch-workflow-icon { width:34px; height:34px; border-radius:9px; display:grid; place-items:center; background:var(--soft); color:var(--text); }
.launch-workflow-card h3 { margin:13px 0 3px; }
.launch-workflow-card p { color:var(--muted); line-height:1.5; min-height:62px; overflow-wrap:anywhere; }
.launch-workflow-card .button { margin-top:auto; }
.launch-count { font-size:28px; line-height:1.1; font-variant-numeric:tabular-nums; }
.launch-state { border-radius:999px; padding:3px 8px; font-size:11px; font-weight:700; }
.launch-state.is-ready { color:#087443; background:#e8f8ef; }
.launch-state.is-attention { color:#925d00; background:#fff5d9; }
.launch-warning h2 { margin:0 0 6px; font-size:15px; }
.launch-warning ul { margin:6px 0 0 20px; }
.notice.success { border-color:#b7e7c9; background:#edf9f2; color:#146a3c; }
.launch-snapshot, .launch-complete, .launch-danger-zone { margin-top:18px; }
.launch-snapshot-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }
.launch-snapshot-grid > div, .launch-complete-grid > div { min-width:0; border:1px solid var(--line); border-radius:9px; padding:11px; background:var(--soft); }
.launch-snapshot-grid span, .launch-complete-grid span { display:block; color:var(--muted); font-size:11px; line-height:1.35; }
.launch-snapshot-grid strong, .launch-complete-grid strong { display:block; margin-top:5px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.launch-complete-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:12px 0; }
.launch-next-steps { display:grid; gap:8px; padding-left:22px; }
.launch-danger-zone { border:1px solid #e6b7b0; }
.launch-danger-zone > .card-head { background:#fff7f6; }
.launch-preserved, .launch-admins { margin:16px 0; border-top:1px solid var(--line); padding-top:14px; }
.launch-preserved ul { display:grid; gap:6px; padding-left:22px; }
.launch-admin-list { display:flex; flex-wrap:wrap; gap:8px; }
.launch-admin-list > span { display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:9px; padding:8px 10px; min-width:220px; background:var(--soft); }
.launch-admin-list strong, .launch-admin-list small { display:block; }
.launch-admin-list small { color:var(--muted); margin-top:2px; }
.launch-options { border:1px solid var(--line); border-radius:9px; padding:12px; margin:16px 0; min-width:0; }
.launch-options legend { padding:0 6px; font-weight:700; }
.launch-options .check { margin:7px 0; }
.launch-understand { margin:14px 0; padding:11px; border-radius:8px; background:#fff7f6; border:1px solid #edcbc6; }
.launch-reset-form .button.danger:disabled { opacity:.45; cursor:not-allowed; }
.launch-reset-form .field input { width:100%; }
@media (max-width:1100px) {
  .launch-workflow-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .launch-snapshot-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:700px) {
  .launch-hero { display:block; padding:16px; }
  .launch-hero > .tag { margin-top:10px; }
  .launch-workflow-grid { grid-template-columns:minmax(0,1fr); }
  .launch-workflow-card p { min-height:0; }
  .launch-snapshot-grid, .launch-complete-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .launch-admin-list > span { min-width:0; width:100%; }
}
@media (max-width:390px) {
  .launch-snapshot-grid, .launch-complete-grid { grid-template-columns:minmax(0,1fr); }
}

/* Projects listing v2.24.41: compact universal table for every project type. */
.project-table-tools { min-width: 0; flex-wrap: wrap; }
.project-table-tools .search { flex: 1 1 280px; max-width: 420px; min-width: 220px; }
.project-table-tools .filters { flex: 0 1 240px; min-width: 190px; }
.project-table-tools .filters select { width: 100%; min-width: 0; }
.project-table-count { display: inline-flex; align-items: baseline; gap: 4px; }
.project-table-count strong { color: var(--text); font-variant-numeric: tabular-nums; }

.project-table-shell {
  width: 100%;
  min-width: 0;
  overflow: visible;
  background: var(--page);
}
.project-directory-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.project-directory-table .project-col { width: 29%; }
.project-directory-table .team-col { width: 19%; }
.project-directory-table .manager-col { width: 15%; }
.project-directory-table .status-col { width: 9%; }
.project-directory-table .deadline-col { width: 12%; }
.project-directory-table .progress-col { width: 11%; }
.project-directory-table .actions-col { width: 44px; }
.project-directory-table th,
.project-directory-table td {
  min-width: 0;
  padding: 10px 11px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.project-directory-table th {
  position: sticky;
  top: 56px;
  z-index: 6;
  color: var(--muted);
  background: var(--canvas);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.project-directory-table th:first-child { border-radius: 9px 0 0 0; }
.project-directory-table th:last-child { border-radius: 0 9px 0 0; }
.project-directory-table tbody tr:last-child td { border-bottom: 0; }
.project-table-row { height: 68px; cursor: pointer; transition: background-color .14s ease; }
.project-table-row:hover { background: #fafafa; }
.project-table-row[hidden] { display: none !important; }
.project-table-row > td { overflow: visible; }

.project-table-identity { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; }
.project-table-identity .logo-tile { flex: none; }
.project-table-project-copy,
.project-table-name-line,
.project-table-subtitle,
.project-table-team-line,
.project-table-person,
.project-table-date,
.project-table-progress { min-width: 0; }
.project-table-project-copy { display: grid; gap: 3px; }
.project-table-name-line { display: flex; align-items: center; gap: 6px; }
.project-table-name-line .name {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-table-name-line .tag { flex: none; }
.project-table-subtitle { display: flex; align-items: center; gap: 4px; overflow: hidden; line-height: 1.35; white-space: nowrap; }
.project-table-subtitle > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.project-table-subtitle > span[aria-hidden] { flex: none; overflow: visible; }

.project-table-team-line { display: flex; align-items: center; gap: 8px; }
.project-table-team .project-member-stack { flex: none; min-height: 26px; }
.project-table-team .project-member-more { min-width: 26px; height: 26px; font-size: 10px; }
.project-table-team-names,
.project-table-person-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-table-team-names { font-size: 11.5px; }
.project-table-more-names { color: var(--muted); }
.project-table-person { max-width: 100%; gap: 7px; }
.project-table-person-name { font-size: 11.5px; }
.project-table-empty { color: var(--muted); font-size: 11.5px; font-weight: 400; }

.project-table-status .status { font-size: 11.5px; }
.project-table-date { display: grid; gap: 2px; }
.project-table-date strong,
.project-table-date > .sub {
  display: block;
  overflow: hidden;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-table-date strong { font-size: 11.5px; font-weight: 600; }
.project-table-date > .sub { font-size: 10.5px; }
.project-table-progress { display: grid; gap: 6px; }
.project-table-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; }
.project-table-progress-head strong { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.project-table-progress-head .sub { font-size: 10px; white-space: nowrap; }
.project-table-progress .bar { width: 100%; min-width: 0; height: 5px; }

.project-table-actions { position: relative; overflow: visible !important; text-align: right !important; }
.project-row-menu { position: relative; display: inline-block; }
.project-row-menu > summary { list-style: none; width: 30px; height: 30px; border-radius: 7px; }
.project-row-menu > summary::-webkit-details-marker { display: none; }
.project-row-menu-dots { display: block; font-size: 20px; line-height: 1; transform: translateY(-1px); }
.project-row-menu-panel {
  position: absolute;
  top: 0;
  right: calc(100% + 5px);
  z-index: 20;
  display: grid;
  width: 142px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--page);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .13);
  text-align: left;
}
.project-row-menu-panel a { display: flex; align-items: center; min-height: 32px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.project-row-menu-panel a:hover,
.project-row-menu-panel a:focus-visible { background: var(--fill); }
.project-table-no-results { padding: 28px 16px; text-align: center; }
.project-table-no-results strong,
.project-table-no-results span { display: block; }
.project-table-no-results .sub { margin-top: 5px; }
.project-table-hint { margin-top: 12px; overflow-wrap: anywhere; }

@media (max-width: 1180px) and (min-width: 861px) {
  .project-directory-table .project-col { width: 32%; }
  .project-directory-table .team-col { width: 22%; }
  .project-directory-table .status-col { width: 11%; }
  .project-directory-table .deadline-col { width: 14%; }
  .project-directory-table .progress-col { width: 14%; }
  .project-directory-table .manager-col,
  .project-directory-table .project-manager-column { display: none; }
}

@media (max-width: 860px) {
  .project-table-tools { align-items: stretch; }
  .project-table-tools .search,
  .project-table-tools .filters { flex: 1 1 100%; max-width: none; min-width: 0; }
  .project-table-tools .count { margin-left: 0; }
  .project-table-shell { border-radius: 10px; overflow: visible; }
  .project-directory-table,
  .project-directory-table tbody { display: block; width: 100%; }
  .project-directory-table colgroup,
  .project-directory-table thead { display: none; }
  .project-directory-table tbody { overflow: visible; }
  .project-directory-table .project-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, .72fr);
    grid-template-areas:
      "project project"
      "team status"
      "deadline progress";
    gap: 8px 12px;
    height: auto;
    min-width: 0;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    position: relative;
  }
  .project-directory-table tbody tr:last-child { border-bottom: 0; }
  .project-directory-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow: visible;
  }
  .project-table-project { grid-area: project; padding-right: 34px !important; }
  .project-table-team { grid-area: team; align-self: center; }
  .project-table-status { grid-area: status; align-self: center; justify-self: end; }
  .project-table-deadline { grid-area: deadline; }
  .project-table-progress { grid-area: progress; align-self: end; }
  .project-table-actions { position: absolute !important; top: 8px; right: 8px; z-index: 3; }
  .project-directory-table .project-manager-column { display: none; }
  .project-table-identity { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
  .project-table-identity .logo-tile { width: 34px !important; height: 34px !important; }
  .project-table-name-line .name { font-size: 12px; }
  .project-table-team-line { gap: 7px; }
  .project-table-team .project-member-stack { display: none; }
  .project-table-team::before,
  .project-table-deadline::before,
  .project-table-progress::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 650;
    letter-spacing: .025em;
    text-transform: uppercase;
  }
  .project-table-team::before { content: "Team"; }
  .project-table-deadline::before { content: "Deadline"; }
  .project-table-progress::before { content: "Progress"; }
  .project-table-date { display: flex; align-items: baseline; gap: 6px; }
  .project-table-date strong,
  .project-table-date > .sub { max-width: 100%; }
  .project-table-progress { gap: 4px; }
  .project-table-progress .bar { max-width: 100%; }
  .project-row-menu-panel { width: 160px; }
}

@media (max-width: 430px) {
  .project-table-subtitle { white-space: normal; flex-wrap: wrap; row-gap: 0; }
  .project-table-team-names { max-width: 190px; }
  .project-table-date { display: grid; gap: 1px; }
  .project-table-status .status { font-size: 11px; }
}

/* v2.24.43 — essential Social Media project details without maintenance clutter. */
.project-details-grid .project-name-field,
.project-details-grid .project-client-field { grid-column: span 3; }
.project-details-grid .project-type-field,
.project-details-grid .project-start-field { grid-column: span 2; }

.social-primary-link { margin-bottom: 16px; }
.social-primary-link label { display: grid; gap: 6px; max-width: 760px; font-size: 12px; font-weight: 650; }
.social-primary-link label > span { display: flex; align-items: baseline; gap: 5px; }
.social-primary-link input { width: 100%; min-width: 0; }
.social-primary-link .hint { margin: 6px 0 0; }
.social-account-picker { min-width: 0; margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); }
.social-account-picker legend { padding: 0; font-size: 12px; font-weight: 650; }
.social-account-picker > .hint { margin: 4px 0 10px; }
.social-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.social-account-row { display: grid; grid-template-columns: minmax(145px, .72fr) minmax(0, 1.28fr); align-items: center; gap: 10px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); transition: border-color .15s, background .15s; }
.social-account-row.is-selected { border-color: color-mix(in srgb, var(--brand) 70%, var(--line)); background: color-mix(in srgb, var(--brand) 7%, var(--canvas)); }
.social-account-choice { display: flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; }
.social-account-choice input { flex: none; margin: 0; }
.social-account-choice span { min-width: 0; }
.social-account-choice strong,
.social-account-choice small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-account-choice strong { font-size: 12px; }
.social-account-choice small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 500; }
.social-account-link { min-width: 0; }
.social-account-link input { width: 100%; min-width: 0; }
.social-account-link.is-disabled { opacity: .55; }

@media (max-width: 1000px) {
  .project-details-grid .project-name-field,
  .project-details-grid .project-client-field,
  .project-details-grid .project-type-field,
  .project-details-grid .project-start-field { grid-column: auto; }
  .social-account-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .social-account-row { grid-template-columns: minmax(0, 1fr); gap: 7px; }
}

/* v2.24.46 — simple Social Media publishing table and delegated brand lead. */
.social-simple-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.social-simple-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.social-simple-heading > div { min-width: 0; }
.social-simple-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.social-simple-title h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.social-simple-heading > div > p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.social-lead-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  font-size: 11.5px;
}
.social-lead-line > span:first-child { color: var(--muted); }
.social-lead-line .person { gap: 6px; }
.social-lead-line a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.social-lead-line a:hover { color: var(--text); }
.social-simple-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: none;
}
.social-simple-team {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "label stack" "count stack";
  align-items: center;
  gap: 0 9px;
  min-width: 0;
}
.social-simple-team > span:first-child {
  grid-area: label;
  color: var(--muted);
  font-size: 10px;
}
.social-simple-team > strong {
  grid-area: count;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.social-team-stack {
  grid-area: stack;
  display: flex;
  align-items: center;
  padding-left: 5px;
}
.social-team-stack > span {
  display: inline-grid;
  place-items: center;
  margin-left: -6px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--page);
}
.social-team-stack > span:first-child { margin-left: 0; }
.social-team-more {
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  background: var(--fill-hover);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
}

.social-post-workspace {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}
.social-post-filters {
  display: grid;
  grid-template-columns: 138px 138px minmax(135px, .9fr) minmax(145px, 1fr) minmax(155px, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.social-post-filters > label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}
.social-post-filters input,
.social-post-filters select { width: 100%; min-width: 0; }
.social-filter-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.social-filter-actions .button { padding-inline: 12px; }

.social-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.social-stat-strip > div {
  min-width: 0;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}
.social-stat-strip > div:last-child { border-right: 0; }
.social-stat-strip strong,
.social-stat-strip span { display: block; overflow-wrap: anywhere; }
.social-stat-strip strong {
  font-size: 22px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.social-stat-strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.social-post-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.social-post-table-head > div { min-width: 0; }
.social-post-table-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}
.social-post-table-head span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: normal;
}
.social-post-table-head > span { flex: none; margin: 0; }
.social-post-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.social-post-table {
  width: 100%;
  min-width: 1030px;
  border-collapse: collapse;
  table-layout: fixed;
}
.social-post-table th,
.social-post-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.social-post-table th {
  color: var(--muted);
  background: var(--canvas);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.social-post-table tbody tr:last-child td { border-bottom: 0; }
.social-post-table tbody tr:hover { background: #fafafa; }
.social-post-table th:nth-child(1) { width: 105px; }
.social-post-table th:nth-child(2) { width: 245px; }
.social-post-table th:nth-child(3) { width: 105px; }
.social-post-table th:nth-child(4) { width: 105px; }
.social-post-table th:nth-child(5) { width: 180px; }
.social-post-table th:nth-child(6) { width: 145px; }
.social-post-table th:nth-child(7) { width: 145px; }
.social-post-date strong,
.social-post-date span { display: block; white-space: nowrap; }
.social-post-date strong { font-size: 11px; }
.social-post-date span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.social-post-identity {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.social-post-identity > div { min-width: 0; }
.social-post-identity > div > strong,
.social-post-identity > div > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-post-identity > div > strong { font-size: 11.5px; }
.social-post-identity > div > span { margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.social-table-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #151515;
  color: #fff;
  cursor: zoom-in;
}
.social-table-thumb:hover,
.social-table-thumb:focus-visible { border-color: var(--ink); outline: none; }
.social-table-thumb img,
.social-table-thumb video { display: block; width: 100%; height: 100%; object-fit: cover; }
.social-table-thumb .play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .18);
}
.social-table-thumb.is-empty { background: var(--fill); color: var(--muted); cursor: default; }
.social-post-link a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #1f5fbf;
  text-decoration: underline;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-table-person {
  display: flex;
  max-width: 100%;
  gap: 7px;
}
.social-table-person > span:last-child {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-post-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
}
.social-post-pagination > div { display: flex; align-items: center; gap: 8px; }
.social-post-pagination strong { color: var(--text); font-size: 11px; font-weight: 600; }
.social-post-pagination .button { height: 30px; padding-inline: 11px; font-size: 11px; }
.social-post-empty { margin: 16px; }

/* The brand lead is deliberately visible, not hidden under advanced settings. */
.project-social-lead {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(0, 1.28fr);
  align-items: end;
  gap: 6px 14px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--page);
}
.project-social-lead > label { min-width: 0; }
.project-social-lead > label > span {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}
.project-social-lead > label > span small { color: var(--muted); font-weight: 500; }
.project-social-lead select { width: 100%; min-width: 0; }
.project-social-lead .hint { margin: 0; align-self: center; line-height: 1.45; }

/* A planned post can create one normal project task for the brand team. */
.plan-task-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 9px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
}
.plan-task-line > a { min-width: 0; overflow-wrap: anywhere; }
.plan-task-line > .button { margin-left: auto; }
.plan-task-line.is-empty { color: var(--muted); }
.plan-task-assignees { display: inline-flex; align-items: center; padding-left: 4px; }
.plan-task-assignees > span {
  display: inline-grid;
  place-items: center;
  margin-left: -5px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--page);
}
.plan-task-assignees > span:first-child { margin-left: 0; }
.plan-task-more {
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  background: var(--fill-hover);
  color: var(--text);
  font-size: 9px;
  font-weight: 700;
}
.plan-task-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}
.plan-task-dialog[open] { display: flex; flex-direction: column; }
.plan-task-dialog > form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.plan-task-dialog .dialog-body { overflow-y: auto; }
.plan-task-dialog .dialog-head > div { min-width: 0; }
.plan-task-dialog .dialog-head p { margin: 3px 0 0; }
.plan-task-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.plan-task-people legend { padding: 0 5px; font-size: 12px; font-weight: 650; }
.plan-task-people > label {
  min-width: 0;
  margin: 0;
  padding: 7px;
  border-radius: 7px;
}
.plan-task-people > label:hover { background: var(--fill); }
.plan-task-people .person { min-width: 0; }
.plan-task-people .person > span:last-child { min-width: 0; }
.plan-task-people strong,
.plan-task-people small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plan-task-people small { color: var(--muted); font-size: 10px; }

/* A single uploaded file uses the full viewer stage instead of empty arrow columns. */
.social-media-stage:has(.social-media-prev[hidden]) { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 1100px) {
  .social-post-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .social-filter-actions { align-self: end; }
}

@media (max-width: 760px) {
  .social-simple-hero { align-items: flex-start; flex-direction: column; padding: 14px; }
  .social-simple-side { width: 100%; justify-content: space-between; }
  .social-post-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .social-filter-actions { grid-column: 1 / -1; }
  .social-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-stat-strip > div:nth-child(2) { border-right: 0; }
  .social-stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .social-post-table { min-width: 950px; }
  .social-post-pagination { align-items: flex-start; flex-direction: column; }
  .project-social-lead { grid-template-columns: minmax(0, 1fr); }
  .plan-task-people { grid-template-columns: minmax(0, 1fr); }
  .plan-task-line > .button { margin-left: 0; }
  .plan-task-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
}

@media (max-width: 480px) {
  .social-simple-heading { align-items: flex-start; }
  .social-simple-title h1 { font-size: 18px; }
  .social-simple-side { align-items: stretch; flex-direction: column; }
  .social-simple-team { align-self: flex-start; }
  .social-simple-side > .button { width: 100%; }
  .social-post-filters { grid-template-columns: minmax(0, 1fr); }
  .social-filter-actions { grid-column: auto; }
  .social-filter-actions .button { flex: 1; }
  .social-stat-strip > div { padding: 11px 12px; }
  .social-stat-strip strong { font-size: 20px; }
  .social-post-table-head { align-items: flex-start; flex-direction: column; padding: 11px 12px; }
  .social-post-pagination > div { width: 100%; justify-content: space-between; }
}

/* Keep longer content-type labels inside their own table cell. */
.social-post-table th:nth-child(2) { width: 230px; }
.social-post-table th:nth-child(3) { width: 130px; }
.social-post-table th:nth-child(5) { width: 170px; }
.social-post-table td:nth-child(3) .tag { max-width: 100%; white-space: normal; line-height: 1.25; }

/* v2.24.47–2.24.48 — minimal Social Media add-update popup with selectable date. */
.social-quick-dialog {
  width: min(720px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}
.social-quick-dialog[open] { display: flex; flex-direction: column; }
.social-quick-dialog > .dialog-head { flex: none; }
.social-quick-dialog .dialog-head > div { min-width: 0; }
.social-quick-dialog .dialog-head p { margin: 3px 0 0; white-space: normal; }
.social-quick-form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.social-quick-form .dialog-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.social-quick-form .dialog-foot { flex: none; }
.social-quick-core { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.social-quick-core .field { min-width: 0; }
.social-quick-core input, .social-quick-core select { width: 100%; min-width: 0; }
.social-quick-core .hint { margin-top: 5px; line-height: 1.4; }
.social-quick-upload {
  position: relative;
  min-width: 0;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--canvas);
}
.social-quick-upload > input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.social-quick-upload .attach { margin-right: 8px; background: var(--page); box-shadow: inset 0 0 0 1px var(--line); }
.social-quick-upload .chosen { display: inline; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.social-quick-upload > .hint { margin: 8px 0 0; }
.social-quick-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.social-quick-preview:empty { display: none; }
.social-quick-preview-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
}
.social-quick-preview-item img,
.social-quick-preview-item video { display: block; width: 100%; height: 82px; object-fit: cover; background: #111; }
.social-quick-preview-item > span:last-child {
  display: block;
  padding: 5px 7px;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-quick-preview-item .play-mark {
  position: absolute;
  inset: 0 0 25px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .18);
  color: #fff;
  font-size: 18px;
}
.social-quick-links { min-width: 0; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.social-quick-links legend { padding: 0 5px; font-size: 12px; font-weight: 650; }
.social-quick-links > .hint { margin: 0 0 10px; }
.social-quick-link-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
.social-quick-link-list label { display: grid; gap: 4px; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 600; }
.social-quick-link-list input[type="url"] {
  width: 100%;
  min-width: 0;
  height: var(--control);
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--fill);
  outline: none;
}
.social-quick-link-list input[type="url"]:hover { background: var(--fill-hover); }
.social-quick-link-list input[type="url"]:focus { border-color: var(--ink); background: var(--page); }
.social-quick-error { margin: 0; }

@media (max-width: 620px) {
  .social-quick-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .social-quick-core, .social-quick-link-list { grid-template-columns: minmax(0, 1fr); }
  .social-quick-form .dialog-body { padding: 16px; }
  .social-quick-form .dialog-foot { padding: 12px 16px; }
  .social-quick-form .dialog-foot .button { flex: 1; }
}

/* v2.24.49 — minimal SEO project setup and clear responsibility assignment. */
.seo-minimal-setup .box-pad { display: grid; gap: 14px; }
.seo-minimal-core { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seo-minimal-keywords .seo-tag-field { width: 100%; }
.seo-minimal-keywords .seo-tag-box { min-height: 42px; }
.seo-minimal-note { margin: 0; }
.project-team-card.is-minimal-seo .project-team-editor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.project-team-card.is-minimal-seo .project-manager-card,
.project-team-card.is-minimal-seo .project-seo-lead-card { background: var(--canvas); }
.project-team-card.is-minimal-seo .project-member-summary { grid-column: 1 / -1; }
.project-team-card.is-minimal-seo .project-member-quick-tools { display: none; }
.project-team-card.is-minimal-seo .project-member-summary-head { align-items: center; }
.project-seo-lead-card select { width: 100%; margin-top: 6px; }
@media (max-width: 760px) {
  .seo-minimal-core,
  .project-team-card.is-minimal-seo .project-team-editor { grid-template-columns: minmax(0, 1fr); }
  .project-team-card.is-minimal-seo .project-member-summary { grid-column: auto; }
}

.seo-monitoring-setup > summary { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 16px; cursor:pointer; list-style:none; }
.seo-monitoring-setup > summary::-webkit-details-marker { display:none; }
.seo-monitoring-setup > summary span:first-child { min-width:0; }
.seo-monitoring-setup > summary strong,.seo-monitoring-setup > summary small { display:block; overflow-wrap:anywhere; }
.seo-monitoring-setup > summary small { margin-top:2px; color:var(--muted); font-size:11px; font-weight:400; }
.seo-monitoring-setup[open] > summary { border-bottom:1px solid var(--line); }
.seo-monitoring-fields { grid-template-columns:repeat(3,minmax(0,1fr)); }
.seo-monitoring-help { margin-top:12px; }
@media (max-width:860px) { .seo-monitoring-fields { grid-template-columns:minmax(0,1fr); } }


/* v2.24.50 — minimal SEO project overview, using page + keyword as one subject. */
.seo-simple-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.seo-simple-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.seo-simple-heading > div { min-width: 0; }
.seo-simple-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.seo-simple-title h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.seo-simple-heading > div > p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.seo-simple-heading > div > p a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.seo-simple-heading > div > p a:hover { color: var(--text); }
.seo-lead-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  font-size: 11.5px;
}
.seo-lead-line > span:first-child,
.seo-target-area { color: var(--muted); }
.seo-target-area::before { content: "·"; margin-right: 10px; }
.seo-lead-line .person { gap: 6px; }
.seo-lead-line a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.seo-lead-line a:hover { color: var(--text); }
.seo-simple-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: none;
}
.seo-simple-team {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "label stack" "count stack";
  align-items: center;
  gap: 0 9px;
  min-width: 0;
}
.seo-simple-team > span:first-child {
  grid-area: label;
  color: var(--muted);
  font-size: 10px;
}
.seo-simple-team > strong {
  grid-area: count;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.seo-team-stack {
  grid-area: stack;
  display: flex;
  align-items: center;
  padding-left: 5px;
}
.seo-team-stack > span {
  display: inline-grid;
  place-items: center;
  margin-left: -6px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--page);
}
.seo-team-stack > span:first-child { margin-left: 0; }
.seo-team-more {
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  background: var(--fill-hover);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
}

.seo-update-workspace {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}
.seo-update-filters {
  display: grid;
  grid-template-columns: 138px 138px minmax(145px, .9fr) minmax(145px, .9fr) minmax(190px, 1.2fr) auto;
  align-items: end;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.seo-update-filters > label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}
.seo-update-filters input,
.seo-update-filters select { width: 100%; min-width: 0; }
.seo-filter-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.seo-filter-actions .button { padding-inline: 12px; }

.seo-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.seo-stat-strip > div {
  min-width: 0;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}
.seo-stat-strip > div:last-child { border-right: 0; }
.seo-stat-strip strong,
.seo-stat-strip span { display: block; overflow-wrap: anywhere; }
.seo-stat-strip strong {
  font-size: 22px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.seo-stat-strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.seo-update-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.seo-update-table-head > div { min-width: 0; }
.seo-update-table-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}
.seo-update-table-head span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: normal;
}
.seo-update-table-head > span { flex: none; margin: 0; }
.seo-update-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.seo-update-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}
.seo-update-table th,
.seo-update-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.seo-update-table th {
  color: var(--muted);
  background: var(--canvas);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.seo-update-table tbody tr:last-child td { border-bottom: 0; }
.seo-update-table tbody tr:hover { background: #fafafa; }
.seo-update-table th:nth-child(1) { width: 98px; }
.seo-update-table th:nth-child(2) { width: 130px; }
.seo-update-table th:nth-child(3) { width: 225px; }
.seo-update-table th:nth-child(4) { width: 270px; }
.seo-update-table th:nth-child(5),
.seo-update-table th:nth-child(6) { width: 130px; }
.seo-update-date strong,
.seo-update-date span { display: block; white-space: nowrap; }
.seo-update-date strong { font-size: 11px; }
.seo-update-date span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.seo-update-target {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.seo-update-target > a {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #1f5fbf;
  text-decoration: underline;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seo-update-keyword {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seo-update-target .sub { font-size: 10px; }
.seo-update-copy { min-width: 0; }
.seo-update-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}
.seo-update-title > a,
.seo-update-title > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seo-update-title > a:hover { text-decoration: underline; }
.seo-update-copy > span {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.seo-table-person {
  display: flex;
  max-width: 100%;
  gap: 7px;
}
.seo-table-person > span:last-child {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seo-update-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
}
.seo-update-pagination > div { display: flex; align-items: center; gap: 8px; }
.seo-update-pagination strong { color: var(--text); font-size: 11px; font-weight: 600; }
.seo-update-pagination .button { height: 30px; padding-inline: 11px; font-size: 11px; }
.seo-update-empty { margin: 16px; }

.seo-overview-monitoring { margin-top: 14px; }
.seo-monitoring-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.seo-monitoring-statuses span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.seo-monitoring-statuses span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b5b5b5;
}
.seo-monitoring-statuses span.is-on { color: #2c6e0e; background: var(--ok-fill); }
.seo-monitoring-statuses span.is-on::before { background: #4fc41a; }

@media (max-width: 1100px) {
  .seo-update-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seo-filter-actions { align-self: end; }
}

@media (max-width: 760px) {
  .seo-simple-hero { align-items: flex-start; flex-direction: column; padding: 14px; }
  .seo-simple-side { width: 100%; justify-content: space-between; }
  .seo-update-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .seo-filter-search { grid-column: 1 / -1; }
  .seo-filter-actions { grid-column: 1 / -1; }
  .seo-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-stat-strip > div:nth-child(2) { border-right: 0; }
  .seo-stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .seo-update-table-head { align-items: flex-start; flex-direction: column; padding: 11px 12px; }
  .seo-update-table-wrap { overflow: visible; }
  .seo-update-table,
  .seo-update-table tbody { display: block; width: 100%; min-width: 0; }
  .seo-update-table thead { display: none; }
  .seo-update-table tr {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 10px 14px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .seo-update-table tbody tr:last-child { border-bottom: 0; }
  .seo-update-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .seo-update-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .03em;
    text-transform: uppercase;
  }
  .seo-update-table td:nth-child(3),
  .seo-update-table td:nth-child(4) { grid-column: 1 / -1; }
  .seo-update-table td:nth-child(5),
  .seo-update-table td:nth-child(6) { align-self: end; }
  .seo-update-pagination { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .seo-simple-heading { align-items: flex-start; }
  .seo-simple-title h1 { font-size: 18px; }
  .seo-simple-side { align-items: stretch; flex-direction: column; }
  .seo-simple-team { align-self: flex-start; }
  .seo-simple-side > .button { width: 100%; }
  .seo-update-filters { grid-template-columns: minmax(0, 1fr); }
  .seo-filter-search,
  .seo-filter-actions { grid-column: auto; }
  .seo-filter-actions .button { flex: 1; }
  .seo-stat-strip > div { padding: 11px 12px; }
  .seo-stat-strip strong { font-size: 20px; }
  .seo-update-table tr { grid-template-columns: minmax(0, 1fr); }
  .seo-update-table td:nth-child(3),
  .seo-update-table td:nth-child(4) { grid-column: auto; }
  .seo-update-pagination > div { width: 100%; justify-content: space-between; }
}

/* v2.24.51 — minimal SEO add-update popup and weekly/monthly exports. */
.seo-update-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}
.seo-update-table-actions > span { margin: 0 4px 0 0; }
.seo-update-table-actions .button { height: 30px; padding-inline: 10px; font-size: 10.5px; }

.seo-quick-dialog {
  width: min(720px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}
.seo-quick-dialog[open] { display: flex; flex-direction: column; }
.seo-quick-dialog > .dialog-head { flex: none; }
.seo-quick-dialog .dialog-head > div { min-width: 0; }
.seo-quick-dialog .dialog-head p { margin: 3px 0 0; white-space: normal; }
.seo-quick-form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.seo-quick-form .dialog-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.seo-quick-form .dialog-foot { flex: none; }
.seo-quick-core { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.seo-quick-subject { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.seo-quick-core .field, .seo-quick-subject .field { min-width: 0; }
.seo-quick-core input, .seo-quick-core select,
.seo-quick-subject input { width: 100%; min-width: 0; }
.seo-quick-subject input[type="url"] {
  height: var(--control);
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--fill);
  outline: none;
}
.seo-quick-subject input[type="url"]:hover { background: var(--fill-hover); }
.seo-quick-subject input[type="url"]:focus { border-color: var(--ink); background: var(--page); }
.seo-quick-core .hint { margin-top: 5px; line-height: 1.4; }
.seo-quick-note textarea { width: 100%; min-height: 104px; resize: vertical; }
.seo-quick-added-by {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--canvas);
  font-size: 12px;
}
.seo-quick-added-by > span:first-child { color: var(--muted); font-weight: 600; }
.seo-quick-added-by small { margin-left: auto; color: var(--muted); }

@media (max-width: 760px) {
  .seo-update-table-actions { justify-content: flex-start; }
  .seo-update-table-actions > span { width: 100%; }
  .seo-quick-core { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .seo-quick-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .seo-quick-subject { grid-template-columns: minmax(0, 1fr); }
  .seo-quick-form .dialog-body { padding: 16px; }
  .seo-quick-form .dialog-foot { padding: 12px 16px; }
  .seo-quick-form .dialog-foot .button { flex: 1; }
  .seo-quick-added-by small { flex-basis: 100%; margin-left: 32px; }
}


/* v2.24.52 — minimal project setup and overview for all remaining agency types. */
.project-generic-type.is-minimal-agency .project-minimal-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-generic-type.is-minimal-agency .project-minimal-fields .field.wide { grid-column: span 2; }
.project-structure-card.is-minimal-agency .project-structure-grid { max-width: 760px; }

.agency-simple-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.agency-simple-heading { display: flex; align-items: center; gap: 13px; min-width: 0; }
.agency-simple-heading > div { min-width: 0; }
.agency-simple-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.agency-simple-title h1 { margin: 0; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.agency-simple-heading > div > p { margin: 3px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.agency-simple-side { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex: none; }
.agency-simple-team {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "label stack" "count stack";
  align-items: center;
  gap: 0 9px;
  min-width: 0;
}
.agency-simple-team > span:first-child { grid-area: label; color: var(--muted); font-size: 10px; }
.agency-simple-team > strong { grid-area: count; font-size: 11px; font-weight: 600; white-space: nowrap; }
.agency-team-stack { grid-area: stack; display: flex; align-items: center; padding-left: 5px; }
.agency-team-stack > span { display: inline-grid; place-items: center; margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--page); }
.agency-team-stack > span:first-child { margin-left: 0; }
.agency-team-more { min-width: 30px; height: 30px; padding: 0 6px; background: var(--fill-hover); color: var(--text); font-size: 10px; font-weight: 700; }

.agency-update-workspace { min-width: 0; padding: 0; overflow: hidden; }
.agency-update-filters {
  display: grid;
  grid-template-columns: 138px 138px minmax(150px, .9fr) minmax(150px, .9fr) minmax(190px, 1.2fr) auto;
  align-items: end;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.agency-update-filters > label { display: grid; gap: 4px; min-width: 0; color: var(--muted); font-size: 10.5px; font-weight: 600; }
.agency-update-filters input, .agency-update-filters select { width: 100%; min-width: 0; }
.agency-filter-actions { display: flex; align-items: center; gap: 7px; }
.agency-filter-actions .button { padding-inline: 12px; }

.agency-stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.agency-stat-strip > div { min-width: 0; padding: 13px 16px; border-right: 1px solid var(--line); }
.agency-stat-strip > div:last-child { border-right: 0; }
.agency-stat-strip strong, .agency-stat-strip span { display: block; overflow-wrap: anywhere; }
.agency-stat-strip strong { font-size: 22px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.agency-stat-strip span { margin-top: 3px; color: var(--muted); font-size: 11px; }

.agency-update-table-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.agency-update-table-head > div { min-width: 0; }
.agency-update-table-head h2 { margin: 0; font-size: 13px; font-weight: 650; }
.agency-update-table-head span { display: block; margin-top: 1px; color: var(--muted); font-size: 10.5px; white-space: normal; }
.agency-update-table-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.agency-update-table-actions > span { margin: 0 4px 0 0; }
.agency-update-table-actions .button { height: 30px; padding-inline: 10px; font-size: 10.5px; }
.agency-update-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.agency-update-table { width: 100%; min-width: 980px; border-collapse: collapse; table-layout: fixed; }
.agency-update-table th, .agency-update-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.agency-update-table th { color: var(--muted); background: var(--canvas); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.agency-update-table tbody tr:last-child td { border-bottom: 0; }
.agency-update-table tbody tr:hover { background: #fafafa; }
.agency-update-table th:nth-child(1) { width: 98px; }
.agency-update-table th:nth-child(2) { width: 150px; }
.agency-update-table th:nth-child(3) { width: 230px; }
.agency-update-table th:nth-child(4) { width: 270px; }
.agency-update-table th:nth-child(5), .agency-update-table th:nth-child(6) { width: 130px; }
.agency-update-date strong, .agency-update-date span { display: block; white-space: nowrap; }
.agency-update-date strong { font-size: 11px; }
.agency-update-date span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.agency-progress-label { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.agency-update-subject { min-width: 0; }
.agency-update-subject > a, .agency-update-subject > strong { display: block; min-width: 0; overflow: hidden; color: var(--text); font-size: 11.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.agency-update-subject > a:hover { text-decoration: underline; }
.agency-update-reference { display: block; min-width: 0; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
a.agency-update-reference { color: #1f5fbf; text-decoration: underline; text-underline-offset: 2px; }
.agency-update-copy { min-width: 0; }
.agency-update-copy > span:not(.tag) { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 10.5px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.agency-update-copy .tag { margin-top: 4px; }
.agency-table-person { display: flex; max-width: 100%; gap: 7px; }
.agency-table-person > span:last-child { min-width: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.agency-update-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10.5px; }
.agency-update-pagination > div { display: flex; align-items: center; gap: 8px; }
.agency-update-pagination strong { color: var(--text); font-size: 11px; font-weight: 600; }
.agency-update-pagination .button { height: 30px; padding-inline: 11px; font-size: 11px; }
.agency-update-empty { margin: 16px; }

.agency-quick-dialog { width: min(760px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: hidden; }
.agency-quick-dialog[open] { display: flex; flex-direction: column; }
.agency-quick-dialog > .dialog-head { flex: none; }
.agency-quick-dialog .dialog-head > div { min-width: 0; }
.agency-quick-dialog .dialog-head p { margin: 3px 0 0; white-space: normal; }
.agency-quick-form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.agency-quick-form .dialog-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.agency-quick-form .dialog-foot { flex: none; }
.agency-quick-core { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.agency-quick-subject { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.agency-quick-core .field, .agency-quick-subject .field { min-width: 0; }
.agency-quick-core input, .agency-quick-core select, .agency-quick-subject input { width: 100%; min-width: 0; }
.agency-quick-core .hint { margin-top: 5px; line-height: 1.4; }
.agency-quick-note textarea { width: 100%; min-height: 104px; resize: vertical; }
.agency-quick-added-by { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); font-size: 12px; }
.agency-quick-added-by > span:first-child { color: var(--muted); font-weight: 600; }
.agency-quick-added-by small { margin-left: auto; color: var(--muted); }

@media (max-width: 1100px) {
  .project-generic-type.is-minimal-agency .project-minimal-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agency-update-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agency-filter-actions { align-self: end; }
}
@media (max-width: 760px) {
  .agency-simple-hero { align-items: flex-start; flex-direction: column; padding: 14px; }
  .agency-simple-side { width: 100%; justify-content: space-between; }
  .agency-update-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .agency-filter-search, .agency-filter-actions { grid-column: 1 / -1; }
  .agency-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agency-stat-strip > div:nth-child(2) { border-right: 0; }
  .agency-stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .agency-update-table-head { align-items: flex-start; flex-direction: column; padding: 11px 12px; }
  .agency-update-table-actions { justify-content: flex-start; }
  .agency-update-table-actions > span { width: 100%; }
  .agency-update-table-wrap { overflow: visible; }
  .agency-update-table, .agency-update-table tbody { display: block; width: 100%; min-width: 0; }
  .agency-update-table thead { display: none; }
  .agency-update-table tr { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px 14px; padding: 12px; border-bottom: 1px solid var(--line); }
  .agency-update-table tbody tr:last-child { border-bottom: 0; }
  .agency-update-table td { display: block; min-width: 0; padding: 0; border: 0; }
  .agency-update-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; }
  .agency-update-table td:nth-child(3), .agency-update-table td:nth-child(4) { grid-column: 1 / -1; }
  .agency-update-table td:nth-child(5), .agency-update-table td:nth-child(6) { align-self: end; }
  .agency-update-pagination { align-items: flex-start; flex-direction: column; }
  .agency-quick-core { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .project-generic-type.is-minimal-agency .project-minimal-fields { grid-template-columns: minmax(0, 1fr); }
  .project-generic-type.is-minimal-agency .project-minimal-fields .field.wide { grid-column: auto; }
  .agency-quick-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .agency-quick-subject { grid-template-columns: minmax(0, 1fr); }
  .agency-quick-form .dialog-body { padding: 16px; }
  .agency-quick-form .dialog-foot { padding: 12px 16px; }
  .agency-quick-form .dialog-foot .button { flex: 1; }
  .agency-quick-added-by small { flex-basis: 100%; margin-left: 32px; }
}
@media (max-width: 480px) {
  .agency-simple-heading { align-items: flex-start; }
  .agency-simple-title h1 { font-size: 18px; }
  .agency-simple-side { align-items: stretch; flex-direction: column; }
  .agency-simple-team { align-self: flex-start; }
  .agency-simple-side > .button { width: 100%; }
  .agency-update-filters { grid-template-columns: minmax(0, 1fr); }
  .agency-filter-search, .agency-filter-actions { grid-column: auto; }
  .agency-filter-actions .button { flex: 1; }
  .agency-stat-strip > div { padding: 11px 12px; }
  .agency-stat-strip strong { font-size: 20px; }
  .agency-update-table tr { grid-template-columns: minmax(0, 1fr); }
  .agency-update-table td:nth-child(3), .agency-update-table td:nth-child(4) { grid-column: auto; }
  .agency-update-pagination > div { width: 100%; justify-content: space-between; }
}

/* =====================================================================
   v2.24.53: compact task workspace, task panel and discussion
   ===================================================================== */
.content:has(.task-workspace) { max-width: none; }
.task-workspace { width: 100%; min-width: 0; }

.task-project-context {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: -2px 0 14px;
}
.task-project-context-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.task-project-context-main:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.task-project-context-copy { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.task-project-context-copy strong,
.task-project-context-copy span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-project-context-copy strong { font-size: 13px; font-weight: 650; }
.task-project-context-copy span { color: var(--muted); font-size: 12px; }
.task-project-context-copy span::before { content: "·"; margin-right: 6px; }
.task-project-context > .status { margin-left: 2px; font-size: 12px; }

.task-request-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
}
.task-request-strip .hint { min-width: 0; overflow-wrap: anywhere; }
.task-request-strip .count { margin-left: 4px; color: inherit; }

.task-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  margin-bottom: 12px;
}
.task-view-toggle { flex: none; }
.task-search { flex: 1 1 260px; width: auto; min-width: 190px; }
.task-toolbar > select { width: auto; min-width: 150px; max-width: 220px; }
.task-search-submit { display: none; }
.task-count { margin-left: auto; font-size: 12px; }
.task-more-filters { flex: 1 1 100%; min-width: 0; margin-top: -2px; }
.task-more-filters > summary {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.task-more-filters > summary::-webkit-details-marker { display: none; }
.task-more-filters > summary::after { content: "▾"; margin-left: 6px; font-size: 10px; }
.task-more-filters[open] > summary::after { transform: rotate(180deg); }
.task-more-filter-fields {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--canvas);
}
.task-more-filter-fields select { width: auto; min-width: 160px; max-width: 230px; }

.task-list { overflow: hidden; }
.task-list-table { table-layout: fixed; }
.task-list-table th:first-child { width: 40%; }
.task-list-table th:nth-child(2) { width: 22%; }
.task-list-table th:nth-child(3) { width: 11%; }
.task-list-table th:nth-child(4) { width: 11%; }
.task-list-table th:nth-child(5) { width: 16%; }
.task-list-table td { height: 61px; }
.task-list-table .name { display: inline; overflow-wrap: anywhere; }
.task-list-table .with-logo { margin-top: 3px; }
.task-list-table .person { max-width: 100%; }
.task-list-table .person-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-list-table .status { font-size: 12px; }

.task-board { gap: 12px; }
.task-board .column { padding: 10px; border-radius: 10px; }
.task-board .column > h2 { padding: 2px 4px 10px; }
.task-board .task-card { padding: 10px 11px; }
.task-board .task-card h3 { font-size: 13px; }
.task-board .card-people { margin-top: 7px; }
.task-board .card-foot { flex-wrap: wrap; gap: 5px 8px; }

/* The task dialog stays short and keeps its save actions visible. */
dialog#task { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: hidden; }
dialog#task[open] { display: flex; flex-direction: column; }
dialog#task > form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
dialog#task .dialog-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
dialog#task .dialog-foot { flex: none; }
dialog#task .fields { gap: 12px 14px; }
dialog#task .field > label:not(.check):not(.attach) { font-weight: 550; }

/* The task panel keeps the everyday facts visible; secondary controls stay collapsed. */
#task-panel { width: 540px; }
#task-panel .panel-head { min-height: 62px; align-items: center; }
#task-panel .panel-head h2 { padding-top: 0; }
#task-panel .panel-body { padding-top: 16px; }
#task-panel .status-row { margin-bottom: 14px; }
#task-panel .timer-row { margin-bottom: 14px; }
.task-panel-facts { margin-bottom: 14px !important; }
.task-panel-facts dt,
.task-panel-extra-facts dt { align-self: start; padding-top: 2px; }
.task-panel-facts dd,
.task-panel-extra-facts dd { min-width: 0; overflow-wrap: anywhere; }
.task-panel-more {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
}
.task-panel-more > summary {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 600;
}
.task-panel-more > summary::-webkit-details-marker { display: none; }
.task-panel-more > summary::before { content: "▸"; margin-right: 7px; color: var(--muted); font-size: 10px; }
.task-panel-more[open] > summary::before { transform: rotate(90deg); }
.task-panel-extra-facts { margin: 0 !important; padding: 11px; border-top: 1px solid var(--line); }
#task-panel .description { margin-bottom: 14px; padding: 11px 13px; line-height: 1.55; }
#task-panel .history { margin: 0 0 14px; }
#task-panel .section-title { margin-top: 20px; }

/* Compact task and discussion attachments. */
.task-files { gap: 6px; margin: 8px 0 12px; }
.task-file {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
  overflow: visible;
}
.task-file-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 40px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--fill);
  color: var(--muted);
}
.task-file-preview.is-media { background: #161616; }
.task-file-preview img,
.task-file-preview video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  background: #161616;
}
.task-file-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.16); }
.task-file-copy { min-width: 0; }
.task-file-copy .file-name,
.task-file-copy .sub { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-file-copy .file-name { font-size: 12px; font-weight: 600; }
.task-file-copy .sub { margin-top: 2px; font-size: 10.5px; }
.task-file > form { flex: none; }

#task-panel .comment { margin-bottom: 14px; }
#task-panel .comment-head { min-height: 24px; }
#task-panel .comment-body { margin-top: 2px; line-height: 1.5; }
#task-panel .comment.is-update .comment-body { margin-top: 5px; }
#task-panel .composer textarea { min-height: 58px; }
#task-panel .composer-foot { flex-wrap: wrap; }
#task-panel .composer-foot .chosen { flex: 1 1 100px; }

@media (max-width: 980px) {
  .task-toolbar > select { flex: 1 1 160px; max-width: none; }
  .task-count { margin-left: 0; }
  .task-list-table th:first-child { width: 44%; }
  .task-list-table th:nth-child(2) { width: 24%; }
}

@media (max-width: 860px) {
  .task-project-context { align-items: flex-start; flex-wrap: wrap; }
  .task-project-context-main { flex: 1 1 220px; }
  .task-project-context-copy { align-items: flex-start; flex-direction: column; gap: 1px; }
  .task-project-context-copy span::before { content: none; }
  .task-toolbar { align-items: stretch; }
  .task-view-toggle { order: 1; }
  .task-search { order: 2; flex-basis: calc(100% - 210px); }
  .task-toolbar > select { order: 3; min-width: 140px; }
  .task-count { order: 4; align-self: center; }
  .task-more-filters { order: 5; }
  .task-request-strip { align-items: flex-start; flex-direction: column; }
  .task-request-strip .button { width: 100%; }
  .task-more-filter-fields > * { flex: 1 1 170px; max-width: none !important; }
  #task-panel { width: 100vw; }
  #task-panel .panel-head { min-height: 58px; }
  #task-panel .composer { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 620px) {
  .task-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); }
  .task-view-toggle,
  .task-search,
  .task-toolbar > select,
  .task-count,
  .task-more-filters { order: initial; width: 100%; max-width: none; min-width: 0; }
  .task-view-toggle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .task-view-toggle a { justify-content: center; }
  .task-count { margin: 0; }
  .task-more-filter-fields { display: grid; grid-template-columns: minmax(0, 1fr); }
  .task-more-filter-fields > * { width: 100%; max-width: none !important; }
  .task-list { overflow-x: auto; }
  .task-list-table { min-width: 620px; }
  dialog#task { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  dialog#task .dialog-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  dialog#task .dialog-foot .button { flex: 1; }
  .task-panel-facts,
  .task-panel-extra-facts { grid-template-columns: 92px minmax(0, 1fr) !important; }
  .task-file { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 7px; }
  .task-file-preview { width: 46px; height: 38px; }
  #task-panel .composer-foot .attach { flex: 1 1 auto; justify-content: center; }
  #task-panel .composer-foot .button.primary { margin-left: auto; }
}
.task-board .card-people .person-name { display: none; }
.task-board .card-people .person { gap: 0; }

/* =====================================================================
   v2.24.54: minimal client management
   ===================================================================== */

.content:has(.client-directory-shell),
.content:has(.client-profile-head) { max-width: 1240px; }

/* Client directory */
.client-directory-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 16px;
  color: var(--muted);
}
.client-directory-intro p { max-width: 720px; }
.client-directory-intro a { display: inline-flex; align-items: center; gap: 5px; flex: none; color: var(--text); font-weight: 550; }
.client-directory-intro a:hover { text-decoration: underline; text-underline-offset: 2px; }

.client-directory-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.client-directory-search { flex: 1 1 300px; max-width: 440px; }
.client-directory-tools > select { width: 180px; flex: none; }
.client-directory-count { margin-left: auto; }
.client-directory-count strong { color: var(--text); font-variant-numeric: tabular-nums; }

.client-directory-shell { overflow: visible; }
.client-directory-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.client-directory-table .client-col { width: 27%; }
.client-directory-table .contact-col { width: 24%; }
.client-directory-table .projects-col { width: 13%; }
.client-directory-table .portal-col { width: 20%; }
.client-directory-table .status-col { width: 10%; }
.client-directory-table .actions-col { width: 46px; }
.client-directory-table th,
.client-directory-table td { min-width: 0; padding: 10px 12px; vertical-align: middle; }
.client-directory-table th { font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.client-directory-table tbody tr { height: 68px; }
.client-directory-table tbody tr:hover { background: #fafafa; }
.client-directory-table tbody tr[hidden] { display: none !important; }

.client-directory-identity { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; }
.client-mark,
.client-profile-mark {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: var(--ink);
  color: var(--brand);
  font-weight: 700;
  line-height: 1;
}
.client-mark { width: 36px; height: 36px; font-size: 14px; }
.client-directory-identity > div,
.client-contact-cell,
.client-project-count-cell,
.client-portal-cell { min-width: 0; }
.client-directory-identity .name,
.client-contact-cell strong,
.client-project-count-cell strong,
.client-portal-cell strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-directory-identity .name { font-size: 12.5px; font-weight: 650; }
.client-directory-identity .sub,
.client-contact-cell .sub,
.client-project-count-cell .sub,
.client-portal-cell .sub { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
.client-website:hover,
.client-contact-cell a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.client-contact-cell strong,
.client-project-count-cell strong,
.client-portal-cell strong { font-size: 11.5px; font-weight: 600; }
.client-status-cell .status { font-size: 11.5px; }
.client-actions-cell { position: relative; overflow: visible !important; text-align: right !important; }
.client-row-menu-panel button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.client-row-menu-panel button:hover,
.client-row-menu-panel button:focus-visible { background: var(--fill); }
.client-directory-empty { padding: 34px 16px; text-align: center; }
.client-directory-empty strong,
.client-directory-empty span { display: block; }
.client-directory-empty span { margin-top: 4px; }

/* Shared add/edit client dialog */
dialog.client-dialog { width: 640px; }
.client-dialog .dialog-head > div { min-width: 0; }
.client-dialog .dialog-head p { margin-top: 2px; }
.client-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.client-form-grid .field { min-width: 0; }
.client-password-field { grid-column: 1 / -1; }
.client-extra-details { margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.client-extra-details > summary { cursor: pointer; font-size: 12px; font-weight: 650; }
.client-extra-details > summary .sub { margin-left: 4px; font-weight: 500; }
.client-extra-details > .hint { margin: 8px 0 12px; line-height: 1.5; }
.client-extra-details > .fields { gap: 12px; }

/* Minimal client profile */
.client-backline { display: flex; align-items: center; gap: 6px; margin: -5px 0 12px; color: var(--muted); font-size: 12px; }
.client-backline a { color: var(--text); }
.client-backline a:hover { text-decoration: underline; text-underline-offset: 2px; }
.client-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  background: var(--page);
}
.client-profile-mark { width: 48px; height: 48px; font-size: 18px; }
.client-profile-title { flex: 1; min-width: 0; }
.client-profile-name { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.client-profile-name h2 { min-width: 0; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.client-profile-title p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 13px; margin-top: 4px; color: var(--muted); }
.client-profile-title p strong { color: var(--text); }
.client-profile-title p a:hover,
.client-profile-website:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.client-profile-website { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; color: var(--muted); font-size: 12px; }

.client-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.client-summary-strip > div { min-width: 0; padding: 12px 14px; border-left: 1px solid var(--line); background: var(--canvas); }
.client-summary-strip > div:first-child { border-left: 0; }
.client-summary-strip span,
.client-summary-strip strong,
.client-summary-strip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-summary-strip span { color: var(--muted); font-size: 10.5px; font-weight: 550; }
.client-summary-strip strong { margin-top: 3px; font-size: 14px; font-weight: 650; }
.client-summary-strip small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.client-profile-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr); gap: 14px; align-items: start; }
.client-profile-grid > .box { min-width: 0; margin-bottom: 14px; }
.client-project-list { display: grid; }
.client-project-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 11px 15px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.client-project-list article:first-child { border-top: 0; }
.client-project-list article:hover { background: #fafafa; }
.client-project-main { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; align-items: center; min-width: 0; }
.client-project-main > div { min-width: 0; }
.client-project-main .name,
.client-project-main .sub { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-project-main .name { font-weight: 650; }
.client-project-main .sub { margin-top: 2px; }
.client-project-state { display: grid; justify-items: end; gap: 2px; text-align: right; }
.client-project-state .sub { font-size: 10px; white-space: nowrap; }

.client-details-box > header { align-items: center; }
.client-detail-list { margin: 0; padding: 4px 15px 7px; }
.client-detail-list > div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.client-detail-list > div:first-child { border-top: 0; }
.client-detail-list dt { color: var(--muted); font-size: 11px; }
.client-detail-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 550; }
.client-detail-list dd a:hover { text-decoration: underline; text-underline-offset: 2px; }
.client-detail-links { display: flex; flex-wrap: wrap; gap: 7px 14px; padding: 11px 15px; border-top: 1px solid var(--line); background: var(--canvas); }
.client-detail-links a { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; }
.client-detail-links a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Less-used client workflows stay available without filling the page. */
.client-more-tools { margin-bottom: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); overflow: hidden; }
.client-more-tools > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 15px; cursor: pointer; list-style: none; font-weight: 650; }
.client-more-tools > summary::-webkit-details-marker { display: none; }
.client-more-tools > summary::before { content: "▸"; flex: none; color: var(--muted); font-size: 11px; }
.client-more-tools[open] > summary::before { transform: rotate(90deg); }
.client-more-tools > summary > span { margin-right: auto; }
.client-more-tools > summary small { color: var(--muted); font-size: 11px; font-weight: 500; text-align: right; }
.client-more-tools[open] > summary { border-bottom: 1px solid var(--line); }
.client-more-tools-body { display: grid; gap: 0; }
.client-tool-section { min-width: 0; padding: 15px; border-top: 1px solid var(--line); }
.client-tool-section:first-child { border-top: 0; }
.client-tool-section > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.client-tool-section > header > div { min-width: 0; }
.client-tool-section h3 { margin: 0; font-size: 13px; }
.client-tool-section header p { margin: 2px 0 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.client-tool-empty { margin: 0; }
.client-subtool { border-top: 1px solid var(--line); }
.client-subtool > summary { display: flex; align-items: center; gap: 6px; min-height: 40px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 600; }
.client-subtool > summary::-webkit-details-marker { display: none; }
.client-subtool > summary::before { content: "▸"; color: var(--muted); font-size: 10px; }
.client-subtool[open] > summary::before { transform: rotate(90deg); }
.client-subtool > summary .sub { margin-left: auto; font-weight: 500; }
.client-subtool .facts { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--canvas); }
.client-subtool-pad { padding: 0 0 12px 16px; }
.client-compact-table-wrap { max-width: 100%; overflow-x: auto; padding-bottom: 10px; }
.client-compact-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.client-compact-table th,
.client-compact-table td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.client-compact-table th { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.client-compact-table td { font-size: 11.5px; }
.client-compact-table td .sub { display: block; margin-top: 2px; }
.client-file-list { display: grid; gap: 6px; padding-bottom: 11px; }
.client-file-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; }
.client-file-list a:hover { background: var(--canvas); }
.client-file-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.client-file-list small { color: var(--muted); }

.client-feedback-list,
.client-proposal-list { display: grid; border-top: 1px solid var(--line); }
.client-feedback-list article { display: grid; grid-template-columns: 170px 42px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.client-feedback-list article:last-child { border-bottom: 0; }
.client-feedback-list strong,
.client-feedback-list span { display: block; }
.client-feedback-list p { margin: 0; overflow-wrap: anywhere; }
.client-proposal-list > a { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.client-proposal-list > a:hover strong { text-decoration: underline; text-underline-offset: 2px; }
.client-proposal-list > a > span:first-child { flex: 1; min-width: 0; }
.client-proposal-list strong,
.client-proposal-list small { display: block; overflow-wrap: anywhere; }
.client-proposal-list small { margin-top: 2px; color: var(--muted); }
.client-proposal-create { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.client-proposal-create select { width: auto; min-width: 180px; }

@media (max-width: 1080px) and (min-width: 861px) {
  .client-directory-table .portal-col,
  .client-directory-table .client-portal-cell { display: none; }
  .client-directory-table .client-col { width: 31%; }
  .client-directory-table .contact-col { width: 28%; }
  .client-directory-table .projects-col { width: 18%; }
  .client-directory-table .status-col { width: 13%; }
  .client-profile-grid { grid-template-columns: minmax(0, 1.45fr) minmax(260px, .8fr); }
}

@media (max-width: 860px) {
  .client-directory-intro { align-items: flex-start; flex-direction: column; }
  .client-directory-tools { align-items: stretch; flex-wrap: wrap; }
  .client-directory-search { flex: 1 1 100%; max-width: none; }
  .client-directory-tools > select { flex: 1 1 180px; width: auto; }
  .client-directory-count { align-self: center; margin-left: 0; }
  .client-directory-shell { overflow: visible; }
  .client-directory-table,
  .client-directory-table tbody { display: block; width: 100%; }
  .client-directory-table colgroup,
  .client-directory-table thead { display: none; }
  .client-directory-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(110px, .65fr);
    grid-template-areas:
      "client client"
      "contact status"
      "projects portal";
    gap: 9px 12px;
    height: auto;
    min-width: 0;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .client-directory-table tbody tr:last-child { border-bottom: 0; }
  .client-directory-table td { display: block; min-width: 0; padding: 0; border: 0; }
  .client-directory-identity-cell { grid-area: client; padding-right: 34px !important; }
  .client-contact-cell { grid-area: contact; }
  .client-project-count-cell { grid-area: projects; }
  .client-portal-cell { grid-area: portal; }
  .client-status-cell { grid-area: status; justify-self: end; align-self: start; }
  .client-actions-cell { position: absolute !important; top: 8px; right: 8px; z-index: 3; }
  .client-contact-cell::before,
  .client-project-count-cell::before,
  .client-portal-cell::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 650;
    letter-spacing: .03em;
    text-transform: uppercase;
  }
  .client-contact-cell::before { content: "Contact"; }
  .client-project-count-cell::before { content: "Projects"; }
  .client-portal-cell::before { content: "Portal"; }
  .client-row-menu-panel { width: 160px; }

  dialog.client-dialog { width: 100vw; }
  .client-form-grid { grid-template-columns: minmax(0, 1fr); }
  .client-password-field { grid-column: auto; }

  .client-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-summary-strip > div { border-top: 1px solid var(--line); }
  .client-summary-strip > div:nth-child(-n+2) { border-top: 0; }
  .client-summary-strip > div:nth-child(odd) { border-left: 0; }
  .client-profile-grid { grid-template-columns: minmax(0, 1fr); }
  .client-feedback-list article { grid-template-columns: minmax(130px, .7fr) 42px minmax(0, 1.3fr); }
}

@media (max-width: 540px) {
  .client-directory-tools > select,
  .client-directory-count { width: 100%; }
  .client-directory-count { align-self: flex-start; }
  .client-directory-table tbody tr { grid-template-columns: minmax(0, 1fr); grid-template-areas: "client" "contact" "projects" "portal" "status"; }
  .client-status-cell { justify-self: start; }
  .client-directory-identity .name { white-space: normal; }

  .client-profile-head { align-items: flex-start; padding: 14px; }
  .client-profile-mark { width: 42px; height: 42px; }
  .client-profile-name h2 { font-size: 18px; }
  .client-profile-title p { display: grid; gap: 2px; }
  .client-summary-strip { grid-template-columns: minmax(0, 1fr); }
  .client-summary-strip > div { border-left: 0; border-top: 1px solid var(--line); }
  .client-summary-strip > div:first-child { border-top: 0; }
  .client-project-list article { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .client-project-state { justify-items: start; text-align: left; padding-left: 39px; }
  .client-detail-list > div { grid-template-columns: 90px minmax(0, 1fr); }
  .client-more-tools > summary { align-items: flex-start; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .client-more-tools > summary small { flex-basis: 100%; padding-left: 18px; text-align: left; }
  .client-tool-section > header { align-items: stretch; flex-direction: column; }
  .client-tool-section > header .button { align-self: flex-start; }
  .client-feedback-list article { grid-template-columns: minmax(0, 1fr) 40px; }
  .client-feedback-list article p { grid-column: 1 / -1; }
  .client-proposal-create { align-items: stretch; flex-direction: column; }
  .client-proposal-create select,
  .client-proposal-create .button { width: 100%; }
}

/* =====================================================================
   v2.24.55 — minimal Dashboard / My Day
   The essential work controls, pending actions, tasks and weekly hours stay
   visible. Plans, logs, notices and team summaries remain available under one
   deliberately collapsed secondary section.
   ===================================================================== */

.dashboard-minimal { min-width: 0; }
.dashboard-minimal > .notice,
.dashboard-minimal > .nudge,
.dashboard-minimal > .own-work-status,
.dashboard-minimal > .working-window-summary,
.dashboard-minimal > .day,
.dashboard-minimal > .day-wrap { margin-bottom: 12px; }
.dashboard-minimal > .working-window-summary { margin-top: -2px; }
.dashboard-minimal .day { gap: 24px; padding: 15px 17px; }
.dashboard-minimal .day .date h2 { font-size: 17px; }
.dashboard-minimal .day .date p { font-size: 12px; }
.dashboard-minimal .day-wrap .now-box.inline { padding: 11px 16px 13px; }
.dashboard-minimal .own-work-status { padding: 8px 12px; font-size: 12px; }
.dashboard-minimal .dashboard-compact-guidance { margin: 0 0 12px; padding: 8px 11px; }

.dashboard-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--page);
}
.dashboard-summary-strip a {
  min-width: 0;
  padding: 11px 13px;
  border-left: 1px solid var(--line);
}
.dashboard-summary-strip a:first-child { border-left: 0; }
.dashboard-summary-strip a:hover { background: var(--canvas); }
.dashboard-summary-strip strong,
.dashboard-summary-strip span { display: block; overflow-wrap: anywhere; }
.dashboard-summary-strip strong { font-size: 19px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dashboard-summary-strip span { margin-top: 3px; color: var(--muted); font-size: 11px; }

.dashboard-attention-compact { margin: 0 0 14px; border-color: #ead9a7; }
.dashboard-attention-compact > header { align-items: center; background: #fffaf0; }
.dashboard-attention-compact > header > div { min-width: 0; }
.dashboard-attention-compact > header .sub { display: block; margin-top: 2px; white-space: normal; }
.dashboard-attention-rows,
.dashboard-reminder-rows { display: grid; }
.dashboard-attention-row,
.dashboard-reminder-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.dashboard-attention-row:first-child,
.dashboard-reminder-row:first-child { border-top: 0; }
.dashboard-attention-row:hover,
.dashboard-reminder-row:hover { background: #fafafa; }
.dashboard-attention-copy,
.dashboard-reminder-copy { min-width: 0; }
.dashboard-attention-copy strong,
.dashboard-attention-copy span,
.dashboard-attention-copy small,
.dashboard-reminder-copy strong,
.dashboard-reminder-copy span,
.dashboard-reminder-copy small { display: block; overflow-wrap: anywhere; }
.dashboard-attention-copy strong,
.dashboard-reminder-copy strong { font-size: 12.5px; }
.dashboard-attention-copy span,
.dashboard-reminder-copy span { margin-top: 1px; font-size: 12px; }
.dashboard-attention-copy small,
.dashboard-reminder-copy small { margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.dashboard-attention-open { color: var(--text); font-size: 11px; font-weight: 650; }
.dashboard-attention-links { display: flex; flex-wrap: wrap; gap: 5px 14px; }
.dashboard-attention-links a { color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 2px; }

.dashboard-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, .75fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}
.dashboard-primary-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.dashboard-primary-grid > .box { margin: 0; }

.dashboard-tasks-box > header { align-items: center; }
.dashboard-tasks-box .my-task-header > div:first-child { min-width: 0; }
.dashboard-tasks-box .my-task-header h2,
.dashboard-tasks-box .my-task-header .sub { display: block; }
.dashboard-tasks-box .my-task-header .sub { margin-top: 2px; }
.dashboard-task-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dashboard-task-list { display: grid; }
.dashboard-task-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(120px, auto) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.dashboard-task-row:first-child { border-top: 0; }
.dashboard-task-row:hover { background: #fafafa; }
.dashboard-task-row.is-running { background: #f6fdf0; box-shadow: inset 3px 0 0 var(--brand); }
.dashboard-task-timer { display: grid; place-items: center; }
.dashboard-task-timer form { margin: 0; }
.dashboard-task-dot.status { width: 12px; min-height: 12px; font-size: 0; }
.dashboard-task-copy { min-width: 0; }
.dashboard-task-copy > .name { display: inline; font-weight: 600; overflow-wrap: anywhere; }
.dashboard-task-copy > .sub { margin-top: 2px; font-size: 11px; }
.dashboard-task-row > .task-due-context { justify-self: end; max-width: 170px; text-align: right; }
.dashboard-task-row > .status { justify-self: end; font-size: 11px; }
.dashboard-task-more { text-align: right; }
.dashboard-task-more a { font-size: 11px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

.weekly-hours-compact > header { align-items: center; }
.weekly-hours-compact > header > div { min-width: 0; }
.weekly-hours-compact > header h2,
.weekly-hours-compact > header .sub { display: block; }
.weekly-hours-compact > header .sub { margin-top: 2px; }
.weekly-hours-compact .weekly-hours-summary {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
}
.weekly-hours-compact .weekly-hours-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--page);
}
.weekly-hours-compact .weekly-hours-metric:first-child { border-top: 0; }
.weekly-hours-compact .weekly-hours-metric > span { margin: 0; }
.weekly-hours-compact .weekly-hours-metric > strong { font-size: 15px; text-align: right; }
.weekly-hours-details { border-top: 1px solid var(--line); }
.weekly-hours-details > summary {
  padding: 10px 14px;
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  list-style: none;
}
.weekly-hours-details > summary::-webkit-details-marker { display: none; }
.weekly-hours-details > summary::after { content: "Show"; float: right; color: var(--text); }
.weekly-hours-details[open] > summary::after { content: "Hide"; }
.weekly-hours-details .week { border-top: 1px solid var(--line); }
.weekly-hours-details > .hint { padding: 0 14px 12px; }

.dashboard-more {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--page);
  overflow: hidden;
}
.dashboard-more > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
}
.dashboard-more > summary::-webkit-details-marker { display: none; }
.dashboard-more > summary::before { content: "+"; width: 18px; color: var(--muted); font-size: 18px; font-weight: 400; line-height: 1; }
.dashboard-more[open] > summary::before { content: "−"; }
.dashboard-more > summary small { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 400; text-align: right; }
.dashboard-more[open] > summary { border-bottom: 1px solid var(--line); background: var(--canvas); }
.dashboard-more-body { display: grid; gap: 12px; padding: 12px; }
.dashboard-more-body > .box,
.dashboard-more-body > div > .box { margin: 0; }
.dashboard-secondary-box { margin: 0; }
.dashboard-refresh-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
}
.dashboard-refresh-inline strong,
.dashboard-refresh-inline span { display: block; }
.dashboard-refresh-inline span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.dashboard-refresh-inline > p { grid-column: 1 / -1; margin: 0; color: #855800; font-size: 11px; }
.dashboard-refresh-inline.is-stale { border-color: #e0bf74; background: #fffaf0; }
.dashboard-refresh-inline[aria-busy="true"] .button { cursor: wait; opacity: .7; }

.dashboard-reminders-compact { margin: 0; }
.dashboard-reminders-compact > header { align-items: center; }
.dashboard-reminders-compact .dashboard-reminders-heading { min-width: 0; }
.dashboard-reminders-compact .dashboard-reminders-heading .sub { white-space: normal; }
.dashboard-reminder-state { justify-self: end; }

.dashboard-team-inline {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  padding: 12px 16px;
}
.dashboard-team-inline > span { display: inline-flex; align-items: baseline; gap: 4px; font-size: 12px; }
.dashboard-team-inline > span strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.dashboard-team-inline > small { margin-left: auto; color: var(--muted); }
.dashboard-team .dashboard-team-foot { padding-top: 8px; padding-bottom: 8px; }

@media (max-width: 980px) {
  .dashboard-primary-grid { grid-template-columns: minmax(0, 1fr); }
  .weekly-hours-compact .weekly-hours-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .weekly-hours-compact .weekly-hours-metric {
    display: block;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .weekly-hours-compact .weekly-hours-metric:first-child { border-left: 0; }
  .weekly-hours-compact .weekly-hours-metric > strong { margin-top: 4px; text-align: left; }
}

@media (max-width: 700px) {
  .dashboard-minimal .day { gap: 12px; }
  .dashboard-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-summary-strip a { border-top: 1px solid var(--line); }
  .dashboard-summary-strip a:nth-child(-n+2) { border-top: 0; }
  .dashboard-summary-strip a:nth-child(odd) { border-left: 0; }
  .dashboard-task-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    grid-template-areas:
      "timer copy status"
      "timer due due";
    gap: 4px 8px;
  }
  .dashboard-task-timer { grid-area: timer; }
  .dashboard-task-copy { grid-area: copy; }
  .dashboard-task-row > .status { grid-area: status; }
  .dashboard-task-row > .task-due-context { grid-area: due; justify-self: start; max-width: none; text-align: left; }
  .dashboard-more > summary { align-items: flex-start; flex-wrap: wrap; }
  .dashboard-more > summary small { flex-basis: 100%; margin-left: 28px; text-align: left; }
  .dashboard-attention-row,
  .dashboard-reminder-row { grid-template-columns: auto minmax(0, 1fr); }
  .dashboard-attention-open,
  .dashboard-reminder-state { grid-column: 2; justify-self: start; }
  .dashboard-team-inline > small { width: 100%; margin-left: 0; }
}

@media (max-width: 480px) {
  .dashboard-summary-strip { grid-template-columns: minmax(0, 1fr); }
  .dashboard-summary-strip a { border-left: 0; border-top: 1px solid var(--line); }
  .dashboard-summary-strip a:first-child { border-top: 0; }
  .dashboard-task-actions { width: 100%; }
  .dashboard-task-actions .button { flex: 1 1 auto; }
  .weekly-hours-compact .weekly-hours-summary { grid-template-columns: minmax(0, 1fr); }
  .weekly-hours-compact .weekly-hours-metric {
    display: grid;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .weekly-hours-compact .weekly-hours-metric:first-child { border-top: 0; }
  .weekly-hours-compact .weekly-hours-metric > strong { margin-top: 0; text-align: right; }
  .dashboard-refresh-inline { grid-template-columns: minmax(0, 1fr); }
  .dashboard-refresh-inline .button { width: 100%; }
  .dashboard-more-body { padding: 9px; }
}

/* =====================================================================
   v2.24.56 — one-row weekly summary, full-width dashboard tasks,
   and shared AJAX pagination for server-side lists
   ===================================================================== */

.weekly-hours-inline {
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
}
.weekly-hours-inline-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) repeat(3, minmax(120px, .85fr)) auto;
  align-items: stretch;
  min-width: 0;
}
.weekly-hours-inline-title,
.weekly-hours-inline-metric,
.weekly-hours-inline-action {
  min-width: 0;
  min-height: 64px;
  padding: 10px 14px;
}
.weekly-hours-inline-title,
.weekly-hours-inline-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.weekly-hours-inline-title h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}
.weekly-hours-inline-title span,
.weekly-hours-inline-metric span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.weekly-hours-inline-title span { margin-top: 2px; }
.weekly-hours-inline-metric {
  border-left: 1px solid var(--line);
}
.weekly-hours-inline-metric strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.weekly-hours-inline-action {
  align-self: center;
  justify-self: center;
  min-height: var(--control);
  margin: 0 12px;
  padding-top: 0;
  padding-bottom: 0;
}

.dashboard-tasks-box {
  width: 100%;
  margin: 0 0 14px;
}
.dashboard-task-pagination {
  margin: 0;
}

.ajax-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.ajax-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.ajax-pagination .button {
  min-width: 32px;
  height: 30px;
  padding: 0 9px;
}
.ajax-page-direction { min-width: 76px !important; }
.ajax-page-number.is-current {
  background: var(--ink);
  color: #fff;
  cursor: default;
}
.ajax-page-gap {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  color: var(--muted);
}
.ajax-page-status {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.ajax-pagination .is-disabled {
  opacity: .42;
  pointer-events: none;
}
[data-ajax-page-region] {
  transition: opacity .14s ease;
}
[data-ajax-page-region].ajax-page-loading {
  opacity: .55;
  pointer-events: none;
}

/* Existing listing footers keep their own spacing while using the shared pager. */
.repository-pagination,
.task-oversight-pagination,
.hr-ops-pagination,
.work-alert-pagination {
  width: 100%;
}
.repository-footer .repository-pagination {
  flex: 1 1 100%;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.social-post-pagination > .ajax-pagination,
.seo-update-pagination > .ajax-pagination,
.agency-update-pagination > .ajax-pagination {
  width: auto;
  margin: 0;
  padding: 0;
  border-top: 0;
  justify-content: flex-end;
}
.activity-pagination {
  border-top: 0;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 980px) {
  .weekly-hours-inline-row {
    grid-template-columns: minmax(150px, 1fr) repeat(3, minmax(105px, 1fr));
  }
  .weekly-hours-inline-action {
    grid-column: 1 / -1;
    justify-self: stretch;
    margin: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
  }
}

@media (max-width: 700px) {
  .weekly-hours-inline-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .weekly-hours-inline-title {
    grid-column: 1 / -1;
    min-height: 52px;
  }
  .weekly-hours-inline-metric {
    border-top: 1px solid var(--line);
  }
  .weekly-hours-inline-metric:nth-of-type(2) { border-left: 0; }
  .weekly-hours-inline-metric:nth-of-type(4) { grid-column: 1 / -1; border-left: 0; }
  .ajax-page-status { flex-basis: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .weekly-hours-inline-row { grid-template-columns: minmax(0, 1fr); }
  .weekly-hours-inline-title,
  .weekly-hours-inline-metric {
    grid-column: auto !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    min-height: 48px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .weekly-hours-inline-title { display: flex; border-top: 0; }
  .weekly-hours-inline-metric strong { margin-top: 0; text-align: right; }
  .ajax-pagination { gap: 5px; padding: 10px; }
  .ajax-page-direction { min-width: 68px !important; }
  .ajax-page-number { display: none !important; }
  .ajax-page-number.is-current { display: inline-flex !important; }
}

/* =====================================================================
   v2.24.57 — minimal grouped staff navigation
   ===================================================================== */

.nav-primary { display: grid; gap: 2px; }
.nav-link-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-groups {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.nav-group { min-width: 0; }
.nav-group > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 9px;
  border-radius: 7px;
  color: #3d3d3d;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover { background: var(--fill-hover); color: var(--text); }
.nav-group > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.nav-group[open] > summary { background: var(--fill-hover); color: var(--text); }
.nav-group-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-group-chevron {
  display: inline-grid;
  place-items: center;
  flex: none;
  color: var(--muted);
  transform: rotate(-90deg);
  transition: transform .14s ease;
}
.nav-group[open] .nav-group-chevron { transform: none; }
.nav-group-count {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.nav-group-count.is-new { background: #eaf2ff; color: #164da2; }
.nav-group[open] .nav-group-count { display: none; }
.nav-group-items {
  position: relative;
  display: grid;
  gap: 1px;
  margin: 3px 0 7px 17px;
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
}
.nav-group-items .nav-group-link {
  height: 34px;
  margin: 0;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12px;
}
.nav-group-items .nav-group-link.is-current::before {
  left: -27px;
  top: 8px;
  bottom: 8px;
}
.nav-group-items .nav-group-link .icon { width: 14px; height: 14px; }
.nav-group-items .nav-group-link.is-current { box-shadow: 0 0 0 1px var(--line); }

/* New-assignment markers use the same compact count language as grouped rows. */
.nav .nav-new-marker {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 10px;
  background: #eaf2ff;
  color: #164da2;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.nav .nav-new-marker .nav-new-dot { display: none; }
.nav .nav-new-marker + .nav-count { margin-left: 4px; }
.nav .nav-count { flex: none; }
.nav-group-items .nav-new-marker,
.nav-group-items .nav-count { margin-left: auto; }

@media (max-width: 860px) {
  .nav-group > summary { height: 40px; }
  .nav-group-items .nav-group-link { height: 38px; }
  .nav-group-items { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-group-chevron { transition: none; }
}

/* =====================================================================
   v2.24.58: minimal multi-team management, Team directory and Workload
   ===================================================================== */
.team-summary-strip,
.workload-summary-strip,
.team-management-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--page);
}
.team-summary-strip > div,
.workload-summary-strip > div,
.team-management-summary > div {
  min-width: 0;
  padding: 13px 15px;
  border-left: 1px solid var(--line);
}
.team-summary-strip > div:first-child,
.workload-summary-strip > div:first-child,
.team-management-summary > div:first-child { border-left: 0; }
.team-summary-strip strong,
.workload-summary-strip strong,
.team-management-summary strong { display: block; font-size: 22px; line-height: 1.15; font-weight: 650; }
.team-summary-strip span,
.workload-summary-strip span,
.team-management-summary span { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.workload-summary-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-management-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.team-directory-tools,
.workload-tools,
.team-management-tools { flex-wrap: wrap; }
.team-directory-tools .search,
.workload-tools .search { flex: 1 1 230px; }
.team-directory-tools select,
.workload-tools select { width: auto; min-width: 145px; max-width: 210px; }
.team-directory table,
.workload-directory table,
.staff-team-directory table { table-layout: fixed; }
.team-directory th:nth-child(1) { width: 17%; }
.team-directory th:nth-child(2) { width: 16%; }
.team-directory th:nth-child(3) { width: 12%; }
.team-directory th:nth-child(4) { width: 20%; }
.team-directory th:nth-child(5) { width: 10%; }
.team-directory th:nth-child(6) { width: 11%; }
.team-directory th:nth-child(7) { width: 12%; }
.team-directory th:last-child { width: 38px; }
.team-directory td,
.workload-directory td,
.staff-team-directory td { overflow-wrap: anywhere; }
.team-directory td > strong,
.team-directory td > span,
.workload-directory td > strong,
.workload-directory td > span { display: block; }
.team-directory tr[data-team-member-url] { cursor: pointer; }
.team-load { display: grid; gap: 5px; min-width: 0; }
.team-load .bar { width: 100%; height: 5px; }
.team-load > span:last-child,
.team-load > strong { font-size: 11px; white-space: nowrap; }
.team-load .tag { justify-self: start; margin: 0; }
.numbered-pager { flex-wrap: wrap; }
.numbered-pager .button[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.ajax-page-loading { opacity: .62; pointer-events: none; }

.team-member-panel { width: 520px; }
.team-member-panel .panel-head { align-items: center; }
.team-member-panel .panel-head .person { flex: 1; }
.team-member-panel .panel-head h2 { padding: 0; }
.team-member-status-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.team-member-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.team-member-metrics > div { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.team-member-metrics span,
.team-member-metrics strong,
.team-member-metrics small { display: block; overflow-wrap: anywhere; }
.team-member-metrics span,
.team-member-metrics small { color: var(--muted); font-size: 11px; }
.team-member-metrics strong { margin: 3px 0; font-size: 18px; }
.team-member-section { padding: 15px 0; border-top: 1px solid var(--line); }
.team-member-section h3 { margin: 0 0 9px; font-size: 13px; }
.team-role-chips,
.team-project-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.team-role-chips .tag { margin: 0; white-space: normal; }
.team-quick-list { list-style: none; margin: 0; padding: 0; }
.team-quick-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.team-quick-list li:first-child { border-top: 0; }
.team-quick-list strong,
.team-quick-list span { display: block; }
.team-quick-list span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.team-member-panel-actions { display: flex; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line); background: var(--page); }
.team-member-panel-actions .button { flex: 1; }

.workload-directory th:nth-child(1) { width: 24%; }
.workload-directory th:nth-child(2) { width: 22%; }
.workload-directory th:nth-child(3) { width: 17%; }
.workload-directory th:nth-child(4),
.workload-directory th:nth-child(5) { width: 10%; }
.workload-directory th:nth-child(6) { width: 13%; }
.workload-directory th:last-child { width: 38px; }

.staff-team-directory th:nth-child(1) { width: 19%; }
.staff-team-directory th:nth-child(2),
.staff-team-directory th:nth-child(3) { width: 19%; }
.staff-team-directory th:nth-child(4),
.staff-team-directory th:nth-child(5) { width: 9%; }
.staff-team-directory th:nth-child(6) { width: 14%; }
.staff-team-directory th:last-child { width: 44px; }
.team-editor-dialog { width: min(760px, calc(100vw - 32px)); }
.team-editor-dialog .dialog-head { align-items: flex-start; }
.team-editor-dialog .dialog-body { max-height: min(680px, calc(100dvh - 160px)); overflow-y: auto; }
.team-member-picker-inline { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.team-member-picker-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.team-member-picker-head .search { width: 230px; }
.team-editor-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; max-height: 260px; overflow-y: auto; padding-right: 3px; }
.team-editor-member { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; padding: 7px 8px; border-radius: 7px; cursor: pointer; }
.team-editor-member:hover { background: var(--fill); }
.team-editor-member > span:last-child,
.team-editor-member strong,
.team-editor-member small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-editor-member small { margin-top: 1px; color: var(--muted); font-size: 10.5px; }
.team-editor-member:has(input:checked) { background: var(--ok-fill); }
.dialog-foot .spacer { flex: 1; }

.project-responsibility-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.project-responsibility-grid .project-manager-card { margin: 0; }
.project-member-summary-wide { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.project-specialist-leads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.project-specialist-leads > div { min-width: 0; }
.project-specialist-leads select { width: 100%; }
.project-member-option.is-project-lead::after { content: "Project Team Lead"; color: var(--present-ink); font-size: 11px; }
.project-member-option.is-project-lead .project-member-option-state { display: none; }

@media (max-width: 1100px) {
  .team-directory { overflow-x: auto; }
  .team-directory table { min-width: 980px; }
  .staff-team-directory { overflow-x: auto; }
  .staff-team-directory table { min-width: 880px; }
  .project-responsibility-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .team-summary-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-summary-strip > div:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .team-summary-strip > div:nth-child(5) { border-top: 1px solid var(--line); }
  .workload-summary-strip,
  .team-management-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workload-summary-strip > div:nth-child(3),
  .team-management-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .workload-summary-strip > div:nth-child(4),
  .team-management-summary > div:nth-child(4) { border-top: 1px solid var(--line); }
  .team-directory-tools select,
  .workload-tools select { flex: 1 1 150px; max-width: none; }
  .team-member-panel { width: 100vw; }
  .team-editor-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .team-editor-dialog form { height: 100%; }
  .team-editor-dialog .dialog-body { max-height: none; }
  .project-specialist-leads { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .team-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-summary-strip > div { border-top: 1px solid var(--line); }
  .team-summary-strip > div:nth-child(-n+2) { border-top: 0; }
  .team-summary-strip > div:nth-child(odd) { border-left: 0; }
  .team-directory { overflow: visible; }
  .team-directory table,
  .team-directory tbody { display: block; width: 100%; min-width: 0; }
  .team-directory thead { display: none; }
  .team-directory tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding: 12px; border-bottom: 1px solid var(--line); }
  .team-directory td { display: block; padding: 0; border: 0; }
  .team-directory td:first-child { grid-column: 1 / -1; padding-right: 32px; }
  .team-directory td:nth-child(2),
  .team-directory td:nth-child(4) { grid-column: 1 / -1; }
  .team-directory td:nth-child(5),
  .team-directory td:nth-child(6),
  .team-directory td:nth-child(7) { padding-top: 5px; }
  .team-directory td:last-child { position: absolute; right: 8px; top: 8px; }
  .team-directory tr { position: relative; }
  .team-member-metrics { grid-template-columns: minmax(0, 1fr); }
  .team-member-panel-actions { flex-wrap: wrap; }
  .team-member-panel-actions .button { flex: 1 1 120px; }
  .team-member-picker-head { align-items: stretch; flex-direction: column; }
  .team-member-picker-head .search { width: 100%; }
  .team-editor-members { grid-template-columns: minmax(0, 1fr); }
  .team-management-summary strong,
  .workload-summary-strip strong { font-size: 19px; }
}

/* v2.24.58: keep compact Team and team-management identity lines readable. */
.team-directory .person > div > .name,
.team-directory .person > div > .sub,
.workload-directory .person > div > .name,
.workload-directory .person > div > .sub,
.staff-team-directory td:first-child > .name,
.staff-team-directory td:first-child > .sub {
  display: block;
}

/* =====================================================================
   v2.24.59 — minimal Employees directory, editor, profile and quick view
   ===================================================================== */
.employee-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--page);
}
.employee-summary-strip > div {
  min-width: 0;
  padding: 13px 15px;
  border-left: 1px solid var(--line);
}
.employee-summary-strip > div:first-child { border-left: 0; }
.employee-summary-strip strong,
.employee-summary-strip span { display: block; overflow-wrap: anywhere; }
.employee-summary-strip strong { font-size: 22px; line-height: 1.15; font-weight: 650; }
.employee-summary-strip span { margin-top: 3px; color: var(--muted); font-size: 11.5px; }

.employee-directory-tools { flex-wrap: wrap; align-items: center; }
.employee-directory-tools .search { flex: 1 1 230px; }
.employee-directory-tools > select { width: auto; min-width: 135px; max-width: 190px; }
.employee-more-filters { position: relative; }
.employee-more-filters > summary { list-style: none; }
.employee-more-filters > summary::-webkit-details-marker { display: none; }
.employee-more-filters[open] > summary { background: var(--ink); color: #fff; }
.employee-more-filters > div {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 18;
  width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--page);
  box-shadow: 0 12px 30px rgba(0,0,0,.13);
}
.employee-more-filters select { width: 100%; }
.employee-status-feedback { margin: -3px 0 10px; }

.employee-directory { overflow: visible; }
.employee-directory table { table-layout: fixed; }
.employee-directory th:nth-child(1) { width: 21%; }
.employee-directory th:nth-child(2) { width: 15%; }
.employee-directory th:nth-child(3) { width: 20%; }
.employee-directory th:nth-child(4) { width: 16%; }
.employee-directory th:nth-child(5) { width: 13%; }
.employee-directory th:nth-child(6) { width: 10%; }
.employee-directory th:last-child { width: 42px; }
.employee-directory tr[data-team-member-url] { cursor: pointer; }
.employee-directory td { min-width: 0; overflow-wrap: anywhere; }
.employee-directory .person > div,
.employee-directory-role,
.employee-directory-teams { min-width: 0; }
.employee-directory .person .name,
.employee-directory .person .sub,
.employee-directory-role > strong,
.employee-directory-role > .sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-team-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.employee-team-chips .tag { margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.employee-week-progress { display: grid; gap: 6px; }
.employee-week-progress strong { font-size: 11.5px; white-space: nowrap; }
.employee-week-progress .bar { width: 100%; height: 5px; }
.employee-directory-actions { position: relative; overflow: visible !important; text-align: right !important; }
.employee-row-menu-panel { width: 154px; }
.employee-row-menu-panel button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: none;
  text-align: left;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.employee-row-menu-panel button:hover,
.employee-row-menu-panel button:focus-visible { background: var(--fill); }
.employee-directory-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.employee-directory-footer > .hint { padding: 12px 0; }
.employee-pagination { width: auto; margin: 0; border-top: 0; padding-left: 0; padding-right: 0; }

/* Employee editor */
.employee-editor-dialog { width: min(820px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: hidden; }
.employee-editor-dialog[open] { display: flex; flex-direction: column; }
.employee-editor-dialog > form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 32px); }
.employee-editor-dialog .dialog-head { align-items: flex-start; }
.employee-editor-dialog .dialog-head > div { min-width: 0; }
.employee-editor-dialog .dialog-head p { margin-top: 3px; max-width: 620px; }
.employee-editor-dialog .dialog-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.employee-editor-dialog .photo-field { margin-bottom: 4px; }
.employee-core-fields { gap: 13px 16px; }
.employee-team-picker { margin-top: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.employee-team-picker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.employee-team-picker-head strong { display: block; font-size: 13px; }
.employee-team-picker-head .hint { margin-top: 3px; }
.employee-primary-team-row { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 10px; }
.employee-team-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; max-height: 210px; overflow-y: auto; }
.employee-team-option { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 9px; min-width: 0; padding: 8px 9px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.employee-team-option:hover { background: var(--fill); }
.employee-team-option.is-selected,
.employee-team-option:has(input:checked) { border-color: #d1e9c0; background: var(--ok-fill); }
.employee-team-option input { margin: 0; }
.employee-team-option strong,
.employee-team-option small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-team-option small { margin-top: 2px; color: var(--muted); font-size: 10.5px; font-weight: 400; }
.employee-editor-section { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.employee-editor-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; cursor: pointer; list-style: none; }
.employee-editor-section > summary::-webkit-details-marker { display: none; }
.employee-editor-section > summary::after { content: "Open"; color: var(--muted); font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.employee-editor-section[open] > summary::after { content: "Close"; }
.employee-editor-section[open] > summary { border-bottom: 1px solid var(--line); background: var(--canvas); }
.employee-editor-section > summary span,
.employee-editor-section > summary small { display: block; }
.employee-editor-section > summary span { font-weight: 650; }
.employee-editor-section > summary small { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 400; text-align: right; }
.employee-editor-section-body { padding: 14px; }
.employee-section-divider { height: 1px; margin: 16px 0; background: var(--line); }
.employee-section-title { margin: 18px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }

/* Employee profile */
.employee-backline { display: flex; gap: 7px; margin: -3px 0 12px; color: var(--muted); font-size: 12px; }
.employee-backline a:hover { color: var(--text); text-decoration: underline; }
.employee-profile-hero { display: flex; align-items: center; gap: 15px; padding: 18px 20px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; }
.employee-profile-title { flex: 1; min-width: 0; }
.employee-profile-name { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.employee-profile-name h2 { font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.employee-profile-title > p { margin-top: 3px; color: var(--muted); }
.employee-profile-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 5px; font-size: 12px; }
.employee-profile-contact a:hover { text-decoration: underline; }
.employee-profile-teams { margin-top: 9px; }
.employee-profile-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.employee-profile-metrics > div { min-width: 0; padding: 12px 13px; border-left: 1px solid var(--line); background: var(--page); }
.employee-profile-metrics > div:first-child { border-left: 0; }
.employee-profile-metrics span,
.employee-profile-metrics strong,
.employee-profile-metrics small { display: block; overflow: hidden; text-overflow: ellipsis; }
.employee-profile-metrics > div > span { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.employee-profile-metrics > div > strong { margin-top: 4px; font-size: 14px; line-height: 1.35; }
.employee-profile-metrics > div > strong .status { font-size: 12px; }
.employee-profile-metrics small { margin-top: 3px; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.employee-profile-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 14px; align-items: start; }
.employee-profile-grid > .box { margin: 0; }
.employee-profile-leave { grid-column: 2; }
.employee-project-list article,
.employee-task-list article,
.employee-leave-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.employee-project-list article:first-child,
.employee-task-list article:first-child,
.employee-leave-list article:first-child { border-top: 0; }
.employee-project-list article:hover,
.employee-task-list article:hover { background: #fafafa; }
.employee-project-list article > div:first-child,
.employee-task-list article > div:first-child { min-width: 0; }
.employee-project-list .name,
.employee-project-list .sub,
.employee-task-list .name,
.employee-task-list .sub { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-project-list article > div:last-child,
.employee-task-list article > div:last-child { flex: none; text-align: right; }
.employee-project-list article > div:last-child strong,
.employee-project-list article > div:last-child span,
.employee-task-list article > div:last-child span { display: block; }
.employee-leave-list article { cursor: default; }
.employee-leave-list time { white-space: nowrap; font-weight: 600; }

.employee-more-details { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.employee-more-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 16px; cursor: pointer; list-style: none; }
.employee-more-details > summary::-webkit-details-marker { display: none; }
.employee-more-details > summary span,
.employee-more-details > summary small { display: block; }
.employee-more-details > summary span { font-weight: 650; }
.employee-more-details > summary small { color: var(--muted); font-size: 11px; text-align: right; }
.employee-more-details[open] > summary { border-bottom: 1px solid var(--line); background: var(--canvas); }
.employee-more-details-body { padding: 16px; }
.employee-detail-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 16px; }
.employee-detail-links > a { display: grid; grid-template-columns: 30px minmax(0,1fr); column-gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; }
.employee-detail-links > a:hover { border-color: var(--line-strong); background: #fafafa; }
.employee-detail-links > a > span { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--fill); }
.employee-detail-links strong,
.employee-detail-links small { display: block; min-width: 0; overflow-wrap: anywhere; }
.employee-detail-links small { color: var(--muted); font-size: 10.5px; }
.employee-detail-section { padding: 15px 0; border-top: 1px solid var(--line); scroll-margin-top: 74px; }
.employee-detail-section > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.employee-detail-section h3 { margin: 0; font-size: 14px; }
.employee-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 20px; margin: 0; }
.employee-detail-facts > div { min-width: 0; display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.employee-detail-facts > div:nth-child(-n+2) { border-top: 0; }
.employee-detail-facts > div.wide { grid-column: 1 / -1; }
.employee-detail-facts dt { color: var(--muted); }
.employee-detail-facts dd { min-width: 0; margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.employee-subdetails { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; }
.employee-subdetails > summary { padding: 10px 12px; cursor: pointer; font-weight: 600; }
.employee-subdetails .table-wrap { border-top: 1px solid var(--line); }
.employee-detail-tool { scroll-margin-top: 74px; }
.employee-detail-tool > .card,
.employee-detail-tool > .box { margin-top: 14px; margin-bottom: 0; }
.employee-detail-tool .card { padding: 0; overflow: hidden; }
.employee-detail-tool .card > .card-head,
.employee-detail-tool .card > form > .card-head { padding: 14px 16px 0; }
.employee-detail-tool .card > .table-wrap,
.employee-detail-tool .card > form > .table-wrap { margin-top: 14px; }
.employee-quick-panel { width: 520px; }

@media (max-width: 1100px) {
  .employee-directory { overflow-x: auto; }
  .employee-directory table { min-width: 980px; }
  .employee-profile-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .employee-profile-metrics > div:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .employee-profile-metrics > div:nth-child(5) { border-top: 1px solid var(--line); }
  .employee-detail-links { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .employee-summary-strip { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .employee-summary-strip > div:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .employee-summary-strip > div:nth-child(5) { border-top: 1px solid var(--line); }
  .employee-directory-tools > select { flex: 1 1 145px; max-width: none; }
  .employee-more-filters { flex: 1 1 auto; }
  .employee-more-filters > summary { width: 100%; }
  .employee-editor-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .employee-editor-dialog > form { height: 100%; max-height: 100dvh; }
  .employee-profile-grid { grid-template-columns: minmax(0,1fr); }
  .employee-profile-leave { grid-column: auto; }
  .employee-detail-links { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .employee-quick-panel { width: 100vw; }
}

@media (max-width: 620px) {
  .employee-summary-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .employee-summary-strip > div { border-top: 1px solid var(--line); }
  .employee-summary-strip > div:nth-child(-n+2) { border-top: 0; }
  .employee-summary-strip > div:nth-child(odd) { border-left: 0; }
  .employee-summary-strip > div:last-child { grid-column: 1 / -1; }
  .employee-directory-tools .search,
  .employee-directory-tools > select,
  .employee-directory-tools > .button,
  .employee-more-filters { flex: 1 1 100%; width: 100%; }
  .employee-more-filters > div { position: static; width: 100%; margin-top: 6px; box-shadow: none; }
  .employee-directory { overflow: visible; }
  .employee-directory table,
  .employee-directory tbody { display: block; width: 100%; min-width: 0; }
  .employee-directory thead,
  .employee-directory colgroup { display: none; }
  .employee-directory tr { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 12px; padding: 12px; border-bottom: 1px solid var(--line); }
  .employee-directory td { display: block; padding: 0; border: 0; }
  .employee-directory td:first-child { grid-column: 1 / -1; padding-right: 34px; }
  .employee-directory td:nth-child(2),
  .employee-directory td:nth-child(3),
  .employee-directory td:nth-child(4) { grid-column: 1 / -1; }
  .employee-directory td:nth-child(5),
  .employee-directory td:nth-child(6) { padding-top: 5px; }
  .employee-directory td:last-child { position: absolute; top: 8px; right: 8px; }
  .employee-directory-role > .sub { white-space: normal; }
  .employee-directory-role::before,
  .employee-directory-teams::before,
  .employee-directory-work::before,
  .employee-directory-week::before,
  .employee-directory-account::before { display: block; margin-bottom: 3px; color: var(--muted); font-size: 9.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .035em; }
  .employee-directory-role::before { content: "Role"; }
  .employee-directory-teams::before { content: "Teams"; }
  .employee-directory-work::before { content: "Work status"; }
  .employee-directory-week::before { content: "This week"; }
  .employee-directory-account::before { content: "Account"; }
  .employee-directory-footer { display: block; }
  .employee-directory-footer > .hint { display: block; text-align: center; }
  .employee-pagination { width: 100%; }
  .employee-core-fields,
  .employee-primary-team-row { grid-template-columns: minmax(0,1fr); }
  .employee-team-picker-head { flex-direction: column; }
  .employee-team-options { grid-template-columns: minmax(0,1fr); max-height: 260px; }
  .employee-editor-section > summary { align-items: flex-start; }
  .employee-editor-section > summary small { display: none; }
  .employee-profile-hero { align-items: flex-start; padding: 14px; }
  .employee-profile-hero > .pic { width: 48px !important; height: 48px !important; }
  .employee-profile-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .employee-profile-metrics > div { border-top: 1px solid var(--line); }
  .employee-profile-metrics > div:nth-child(-n+2) { border-top: 0; }
  .employee-profile-metrics > div:nth-child(odd) { border-left: 0; }
  .employee-profile-metrics > div:last-child { grid-column: 1 / -1; border-left: 0; }
  .employee-more-details > summary { align-items: flex-start; }
  .employee-more-details > summary small { max-width: 160px; }
  .employee-more-details-body { padding: 12px; }
  .employee-detail-links { grid-template-columns: minmax(0,1fr); }
  .employee-detail-facts { grid-template-columns: minmax(0,1fr); }
  .employee-detail-facts > div,
  .employee-detail-facts > div:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .employee-detail-facts > div:first-child { border-top: 0; }
  .employee-detail-facts > div.wide { grid-column: auto; }
}

@media (max-width: 420px) {
  .employee-profile-hero { display: grid; grid-template-columns: auto minmax(0,1fr); }
  .employee-profile-contact { display: grid; gap: 2px; }
  .employee-profile-metrics { grid-template-columns: minmax(0,1fr); }
  .employee-profile-metrics > div { border-left: 0; border-top: 1px solid var(--line); }
  .employee-profile-metrics > div:first-child { border-top: 0; }
  .employee-profile-metrics > div:last-child { grid-column: auto; }
  .employee-project-list article,
  .employee-task-list article,
  .employee-leave-list article { align-items: flex-start; }
  .employee-more-details > summary small { display: none; }
  .employee-detail-facts > div { grid-template-columns: minmax(0,1fr); gap: 3px; }
}

/* =====================================================================
   v2.24.60 — minimal Daily Log directory, editor and quick view
   ===================================================================== */
.content:has(.daily-log-workspace) { max-width: 1320px; }
.daily-log-workspace { min-width: 0; }
.daily-log-workspace .page-intro { margin-bottom: 14px; }

.daily-log-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(132px, .72fr)) minmax(170px, 1fr) minmax(180px, 1.15fr) minmax(160px, .9fr) minmax(220px, 1.3fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}
.daily-log-filters > label { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 650; }
.daily-log-filters input,
.daily-log-filters select { width: 100%; min-width: 0; }
.daily-log-search .search { width: 100%; }
.daily-log-filter-actions { display: flex; gap: 7px; align-items: center; }

.daily-log-missing-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 14px;
  padding: 10px 13px;
  border: 1px solid #ead9a7;
  border-radius: 9px;
  background: #fffaf0;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.daily-log-missing-alert:hover { border-color: #d3b86f; background: #fff7e6; }
.daily-log-missing-alert > span:nth-child(2) { min-width: 0; }
.daily-log-missing-alert strong,
.daily-log-missing-alert small { display: block; overflow-wrap: anywhere; }
.daily-log-missing-alert small { margin-top: 1px; color: var(--muted); font-size: 11px; font-weight: 450; }

.daily-log-list-box { margin: 0; }
.daily-log-list-box > header { align-items: center; flex-wrap: wrap; }
.daily-log-list-box > header > div:first-child { min-width: 0; }
.daily-log-list-box > header h2,
.daily-log-list-box > header span { display: block; }
.daily-log-list-box > header span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.daily-log-export-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.daily-log-export-actions .button { height: 30px; padding: 0 10px; font-size: 11.5px; }

.daily-log-table-wrap { min-width: 0; overflow-x: auto; }
.daily-log-table { width: 100%; min-width: 980px; table-layout: fixed; border-collapse: collapse; }
.daily-log-table th,
.daily-log-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.daily-log-table thead th { color: var(--muted); background: var(--page); font-size: 11px; font-weight: 600; white-space: nowrap; }
.daily-log-table tbody tr:last-child td { border-bottom: 0; }
.daily-log-table tbody tr { cursor: pointer; }
.daily-log-table tbody tr:hover,
.daily-log-table tbody tr:focus { background: #fafafa; outline: none; }
.daily-log-table tbody tr:focus-visible { box-shadow: inset 3px 0 0 var(--brand); }
.daily-log-table th:nth-child(1) { width: 10%; }
.daily-log-table th:nth-child(2) { width: 16%; }
.daily-log-table th:nth-child(3) { width: 17%; }
.daily-log-table th:nth-child(4) { width: 15%; }
.daily-log-table th:nth-child(5) { width: 31%; }
.daily-log-table th:nth-child(6) { width: 7%; }
.daily-log-table th:nth-child(7) { width: 42px; }
.daily-log-table td > strong,
.daily-log-table td > span { min-width: 0; }
.daily-log-table td:first-child strong,
.daily-log-table td:first-child .sub { display: block; white-space: nowrap; }
.daily-log-project-person { max-width: 100%; }
.daily-log-project-person .person-name,
.daily-log-table .person-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.daily-log-update-cell strong,
.daily-log-update-cell span { display: block; overflow-wrap: anywhere; }
.daily-log-update-cell strong { font-size: 12.5px; font-weight: 600; }
.daily-log-update-cell span { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.daily-log-file-count { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.daily-log-row-action { text-align: right !important; }
.daily-log-row-action .button { transform: rotate(-90deg); }
.daily-log-pagination { margin: 0; }

.daily-log-view-panel,
.daily-log-missing-panel { width: 520px; }
.daily-log-panel-heading { flex: 1; min-width: 0; padding-top: 2px; }
.daily-log-panel-heading h2 { padding: 0; margin-top: 2px; }
.daily-log-view-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.daily-log-view-date { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.daily-log-view-date strong { font-variant-numeric: tabular-nums; }
.daily-log-view-section { padding: 15px 0; border-top: 1px solid var(--line); }
.daily-log-view-date + .daily-log-view-section { border-top: 0; }
.daily-log-view-section h3 { margin: 0 0 9px; font-size: 13px; }
.daily-log-view-facts { grid-template-columns: 125px minmax(0, 1fr); margin: 0; }
.daily-log-view-facts dd { overflow-wrap: anywhere; }
.daily-log-view-facts a { color: #1f5fbf; text-decoration: underline; text-underline-offset: 2px; }
.daily-log-view-note { margin: 0; padding: 11px 12px; border-radius: 8px; background: var(--canvas); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.daily-log-view-files { display: grid; gap: 7px; }
.daily-log-view-file { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 8px; }
.daily-log-view-file:hover { border-color: var(--line-strong); background: #fafafa; }
.daily-log-view-file img,
.daily-log-view-file video,
.daily-log-view-file-type { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 6px; background: #111; object-fit: cover; }
.daily-log-view-file-type { background: var(--fill); color: var(--muted); font-size: 9px; font-weight: 700; }
.daily-log-view-file-copy { min-width: 0; }
.daily-log-view-file-copy strong,
.daily-log-view-file-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.daily-log-view-file-copy small { margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.daily-log-view-audit .facts { margin: 0; }
.daily-log-panel-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line); background: var(--page); }
.daily-log-panel-actions form { display: inline-flex; margin: 0; }
.daily-log-missing-panel .panel-body > .hint { margin-bottom: 12px; line-height: 1.55; }
.daily-log-missing-list { list-style: none; margin: 0; padding: 0; }
.daily-log-missing-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.daily-log-missing-list li:first-child { border-top: 0; }
.daily-log-missing-list .person { display: flex; }
.daily-log-missing-list .person-text { min-width: 0; }
.daily-log-dialog { width: 620px; }
.daily-log-dialog .dialog-body { max-height: min(680px, calc(100dvh - 150px)); overflow-y: auto; }
.daily-log-dialog .log-kinds { gap: 7px; }
.daily-log-dialog .chip-option { min-height: 34px; height: auto; padding-top: 6px; padding-bottom: 6px; white-space: normal; text-align: left; }

@media (max-width: 1180px) {
  .daily-log-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .daily-log-search { grid-column: span 2; }
  .daily-log-filter-actions { justify-self: end; }
}

@media (max-width: 860px) {
  .daily-log-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-log-search { grid-column: 1 / -1; }
  .daily-log-filter-actions { justify-self: stretch; }
  .daily-log-filter-actions .button { flex: 1; }
  .daily-log-export-actions { width: 100%; justify-content: flex-start; }
  .daily-log-view-panel,
  .daily-log-missing-panel { width: 100vw; }
  .daily-log-dialog { width: 100vw; }
}

@media (max-width: 680px) {
  .daily-log-filters { grid-template-columns: minmax(0, 1fr); }
  .daily-log-search { grid-column: auto; }
  .daily-log-table-wrap { overflow: visible; }
  .daily-log-table,
  .daily-log-table tbody { display: block; width: 100%; min-width: 0; }
  .daily-log-table thead { display: none; }
  .daily-log-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, .7fr);
    grid-template-areas:
      "employee date"
      "project project"
      "type files"
      "update update";
    gap: 7px 12px;
    padding: 12px 42px 12px 12px;
    border-bottom: 1px solid var(--line);
  }
  .daily-log-table td { display: block; min-width: 0; padding: 0; border: 0; }
  .daily-log-table td:nth-child(1) { grid-area: date; text-align: right; }
  .daily-log-table td:nth-child(2) { grid-area: employee; }
  .daily-log-table td:nth-child(3) { grid-area: project; padding-left: 36px; }
  .daily-log-table td:nth-child(4) { grid-area: type; }
  .daily-log-table td:nth-child(5) { grid-area: update; padding-top: 3px; }
  .daily-log-table td:nth-child(6) { grid-area: files; justify-self: end; }
  .daily-log-table td:nth-child(7) { position: absolute; top: 8px; right: 6px; }
  .daily-log-table td[data-label]::before { display: none; }
  .daily-log-table .tag { white-space: normal; }
  .daily-log-update-cell strong { font-size: 12px; }
  .daily-log-view-facts { grid-template-columns: 100px minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .daily-log-export-actions .button { flex: 1 1 140px; justify-content: center; }
  .daily-log-view-facts { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .daily-log-view-facts dd { margin-bottom: 8px; }
  .daily-log-panel-actions { flex-wrap: wrap; }
  .daily-log-panel-actions .button,
  .daily-log-panel-actions form { flex: 1 1 auto; }
  .daily-log-panel-actions form .button { width: 100%; }
}

/* =====================================================================
   v2.24.61 — minimal weekly timesheets and day detail panel
   ===================================================================== */
.content:has(.timesheet-workspace) { max-width: 1360px; }
.timesheet-workspace { min-width: 0; }
.timesheet-page-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.timesheet-page-intro h2 { margin: 0; font-size: 18px; line-height: 1.35; }
.timesheet-page-intro p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.timesheet-page-intro > .tag { margin: 2px 0 0; }

.timesheet-directory-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 10px; }
.timesheet-directory-tools .search { flex: 1 1 240px; max-width: 360px; }
.timesheet-directory-tools > select { flex: 0 1 190px; width: auto; min-width: 150px; }
.timesheet-period-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.timesheet-period-bar .week-nav strong { min-width: 190px; }
.timesheet-export-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-left: auto; }

.timesheet-summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.timesheet-summary-strip > a { min-width: 0; padding: 11px 13px; border-left: 1px solid var(--line); background: var(--page); }
.timesheet-summary-strip > a:first-child { border-left: 0; }
.timesheet-summary-strip > a:hover { background: #fafafa; }
.timesheet-summary-strip > a.is-active { box-shadow: inset 0 -3px 0 var(--ink); background: var(--canvas); }
.timesheet-summary-strip span,
.timesheet-summary-strip strong,
.timesheet-summary-strip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timesheet-summary-strip span { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.timesheet-summary-strip strong { margin-top: 2px; font-size: 21px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.timesheet-summary-strip small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.timesheet-results { min-width: 0; }
.timesheet-table-wrap { min-width: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--page); }
.timesheet-directory-table { width: 100%; min-width: 1060px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.timesheet-directory-table th,
.timesheet-directory-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.timesheet-directory-table th { color: var(--muted); background: var(--canvas); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.timesheet-directory-table tbody tr:last-child td { border-bottom: 0; }
.timesheet-directory-table tbody tr:hover { background: #fafafa; }
.timesheet-directory-table th:first-child,
.timesheet-person-cell { width: 220px; padding-left: 12px; }
.timesheet-directory-table th:nth-last-child(3),
.timesheet-total-cell { width: 88px; }
.timesheet-directory-table th:nth-last-child(2),
.timesheet-target-cell { width: 78px; }
.timesheet-directory-table th:last-child,
.timesheet-status-cell { width: 96px; }
.timesheet-day-heading { width: 78px; text-align: center !important; }
.timesheet-day-heading span,
.timesheet-day-heading small { display: block; }
.timesheet-day-heading small { margin-top: 1px; color: #9b9b9b; font-size: 9.5px; font-weight: 500; }
.timesheet-person-cell { display: table-cell; }
.timesheet-person-cell > .person { display: inline-flex; max-width: 100%; }
.timesheet-person-cell .person-name { max-width: 135px; }
.timesheet-person-meta { margin: 3px 0 0 40px; min-width: 0; }
.timesheet-person-meta span,
.timesheet-person-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timesheet-person-meta span { font-size: 11px; }
.timesheet-person-meta small { color: var(--muted); font-size: 9.5px; }
.timesheet-day-cell { padding: 0 !important; text-align: center !important; }
.timesheet-day-cell > a { display: grid; align-content: center; gap: 2px; min-height: 56px; padding: 7px 4px; border-radius: 6px; }
.timesheet-day-cell > a:hover,
.timesheet-day-cell > a:focus-visible { background: var(--fill); outline: none; }
.timesheet-day-cell strong { font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timesheet-day-state { display: block; overflow: hidden; color: var(--muted); font-size: 9.5px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.timesheet-day-state.present { color: var(--present-ink); }
.timesheet-day-state.absent { color: var(--danger); }
.timesheet-day-state.leave { color: var(--leave-ink); }
.timesheet-day-state.holiday { color: var(--holiday-ink); }
.timesheet-day-state.late { color: var(--late-ink); }
.timesheet-total-cell strong,
.timesheet-target-cell strong { display: block; font-size: 12px; font-variant-numeric: tabular-nums; }
.timesheet-total-cell .sub { font-size: 9.5px; }
.timesheet-status-cell .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.timesheet-directory-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.timesheet-directory-footer > .hint { margin: 0; }
.timesheet-pagination { margin-top: 0; }

.timesheet-day-panel { width: 620px; }
.timesheet-day-panel > [data-timesheet-day-content] { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.timesheet-day-heading-copy { min-width: 0; flex: 1; }
.timesheet-day-heading-copy h2 { padding-top: 0; }
.timesheet-day-heading-copy p { margin: 5px 0 0; }
.timesheet-day-body { padding-top: 14px; }
.timesheet-day-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.timesheet-day-summary > div { min-width: 0; padding: 10px; border-left: 1px solid var(--line); background: var(--canvas); }
.timesheet-day-summary > div:first-child { border-left: 0; }
.timesheet-day-summary span,
.timesheet-day-summary strong,
.timesheet-day-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timesheet-day-summary span { color: var(--muted); font-size: 9.5px; font-weight: 600; }
.timesheet-day-summary strong { margin-top: 3px; font-size: 16px; font-variant-numeric: tabular-nums; }
.timesheet-day-summary small { margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.timesheet-day-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 15px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.timesheet-day-facts > div { min-width: 0; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; padding: 9px 11px; border-top: 1px solid var(--line); }
.timesheet-day-facts > div:nth-child(-n+2) { border-top: 0; }
.timesheet-day-facts > div:nth-child(even) { border-left: 1px solid var(--line); }
.timesheet-day-facts dt { color: var(--muted); font-size: 11px; }
.timesheet-day-facts dd { min-width: 0; margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.timesheet-day-facts dd .sub { display: block; margin-top: 2px; font-weight: 400; }
.timesheet-day-section { margin-bottom: 13px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.timesheet-day-section-head { padding: 11px 13px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.timesheet-day-section-head h3 { margin: 0; font-size: 13px; }
.timesheet-day-section-head p { margin: 2px 0 0; color: var(--muted); font-size: 10.5px; }
.timesheet-day-section .log { padding: 5px 13px 8px; }
.timesheet-day-section .log .row { grid-template-columns: 94px minmax(0, 1fr) auto; }
.timesheet-day-more { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.timesheet-day-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; cursor: pointer; list-style: none; font-weight: 600; }
.timesheet-day-more > summary::-webkit-details-marker { display: none; }
.timesheet-day-more > summary small { color: var(--muted); font-weight: 500; }
.timesheet-day-more[open] > summary { border-bottom: 1px solid var(--line); background: var(--canvas); }
.timesheet-day-more-body { min-width: 0; }
.timesheet-day-more-body > .box { margin: 0; border: 0; border-radius: 0; }
.timesheet-day-more-body > .box > header { background: var(--page); }
.timesheet-day-more-body .shots-hour,
.timesheet-day-more-body .box-pad { padding-left: 13px; padding-right: 13px; }
.timesheet-day-more-body .break-history-table,
.timesheet-day-more-body .input-work-history { min-width: 620px; }
.timesheet-day-empty { margin: 8px 0 0; }
.timesheet-day-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line); background: var(--page); }
.timesheet-day-panel[aria-busy="true"] [data-timesheet-day-content] { opacity: .58; }

@media (max-width: 900px) {
  .timesheet-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timesheet-summary-strip > a:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .timesheet-summary-strip > a:nth-child(4) { border-top: 1px solid var(--line); }
  .timesheet-day-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timesheet-day-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .timesheet-day-summary > div:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .timesheet-page-intro { display: block; }
  .timesheet-page-intro > .tag { margin-top: 8px; }
  .timesheet-directory-tools .search,
  .timesheet-directory-tools > select,
  .timesheet-directory-tools > .button { flex: 1 1 100%; width: 100%; max-width: none; }
  .timesheet-period-bar { align-items: stretch; }
  .timesheet-period-bar .week-nav { width: 100%; justify-content: space-between; }
  .timesheet-period-bar .week-nav strong { min-width: 0; }
  .timesheet-export-actions { width: 100%; margin-left: 0; }
  .timesheet-export-actions .button { flex: 1 1 140px; }
  .timesheet-table-wrap { overflow: visible; }
  .timesheet-directory-table,
  .timesheet-directory-table tbody { display: block; width: 100%; min-width: 0; }
  .timesheet-directory-table thead { display: none; }
  .timesheet-directory-table tr { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px 4px; padding: 12px; border-bottom: 1px solid var(--line); }
  .timesheet-directory-table tbody tr:last-child { border-bottom: 0; }
  .timesheet-directory-table td { display: block; width: auto; padding: 0; border: 0; }
  .timesheet-person-cell { grid-column: 1 / -1; padding-bottom: 5px !important; }
  .timesheet-person-meta { margin-left: 40px; }
  .timesheet-day-cell { min-width: 0; }
  .timesheet-day-cell::before { content: attr(data-short); display: block; margin-bottom: 2px; color: var(--muted); font-size: 8.5px; font-weight: 650; text-align: center; text-transform: uppercase; }
  .timesheet-day-cell > a { min-height: 44px; padding: 5px 2px; background: var(--canvas); }
  .timesheet-day-cell strong { font-size: 10.5px; }
  .timesheet-day-state { font-size: 8.5px; }
  .timesheet-total-cell { grid-column: 1 / 3; }
  .timesheet-target-cell { grid-column: 3 / 5; }
  .timesheet-status-cell { grid-column: 5 / 8; text-align: right; }
  .timesheet-total-cell::before,
  .timesheet-target-cell::before,
  .timesheet-status-cell::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 8.5px; font-weight: 650; text-transform: uppercase; }
  .timesheet-status-cell .chip { margin-top: 2px; }
  .timesheet-directory-footer { display: block; }
  .timesheet-directory-footer > .hint { margin-bottom: 10px; text-align: center; }
  .timesheet-pagination { width: 100%; }
  .timesheet-day-panel { width: 100vw; }
  .timesheet-day-facts { grid-template-columns: minmax(0, 1fr); }
  .timesheet-day-facts > div { border-top: 1px solid var(--line) !important; border-left: 0 !important; }
  .timesheet-day-facts > div:first-child { border-top: 0 !important; }
  .timesheet-day-section .log .row { grid-template-columns: 80px minmax(0, 1fr) auto; }
  .timesheet-day-actions .button { flex: 1 1 auto; }
}

@media (max-width: 430px) {
  .timesheet-summary-strip small { white-space: normal; }
  .timesheet-day-state { display: none; }
  .timesheet-day-cell > a { min-height: 36px; }
  .timesheet-day-summary { grid-template-columns: minmax(0, 1fr); }
  .timesheet-day-summary > div { border-left: 0 !important; border-top: 1px solid var(--line); }
  .timesheet-day-summary > div:first-child { border-top: 0; }
  .timesheet-day-actions { flex-wrap: wrap; padding-left: 14px; padding-right: 14px; }
  .timesheet-day-actions .button { flex-basis: 140px; }
}

/* =====================================================================
   v2.24.62 — minimal monthly attendance and person/day panels
   ===================================================================== */
.content:has(.attendance-workspace) { max-width: 1480px; }
.attendance-workspace { min-width: 0; }
.attendance-page-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.attendance-page-intro h2 { margin: 0; font-size: 18px; line-height: 1.35; }
.attendance-page-intro p { margin: 3px 0 0; max-width: 780px; color: var(--muted); font-size: 12px; }
.attendance-page-intro > .tag { margin: 2px 0 0; }

.attendance-directory-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 10px; }
.attendance-directory-tools .search { flex: 1 1 240px; max-width: 360px; }
.attendance-directory-tools > select { flex: 0 1 190px; width: auto; min-width: 155px; }
.attendance-period-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.attendance-period-bar .week-nav strong { min-width: 150px; }
.attendance-export { margin-left: auto; }

.attendance-summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.attendance-summary-strip > div { min-width: 0; padding: 11px 13px; border-left: 1px solid var(--line); background: var(--page); }
.attendance-summary-strip > div:first-child { border-left: 0; }
.attendance-summary-strip span,
.attendance-summary-strip strong,
.attendance-summary-strip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attendance-summary-strip span { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.attendance-summary-strip strong { margin-top: 2px; font-size: 21px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.attendance-summary-strip small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.attendance-results { min-width: 0; }
.attendance-grid-wrap { min-width: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--page); }
.attendance-directory-table { width: 100%; min-width: 1040px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.attendance-directory-table th,
.attendance-directory-table td { padding: 7px 2px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.attendance-directory-table thead th { position: sticky; top: 0; z-index: 4; color: var(--muted); background: var(--canvas); font-size: 9px; font-weight: 600; white-space: nowrap; }
.attendance-directory-table tbody tr:last-child td { border-bottom: 0; }
.attendance-directory-table tbody tr:hover td { background: #fafafa; }
.attendance-person-heading,
.attendance-person-cell { position: sticky; left: 0; z-index: 3; width: 174px; padding-left: 11px !important; padding-right: 9px !important; text-align: left !important; background: var(--page); box-shadow: 1px 0 0 var(--line); }
.attendance-directory-table thead .attendance-person-heading { z-index: 7; background: var(--canvas); }
.attendance-directory-table tbody tr:hover .attendance-person-cell { background: #fafafa; }
.attendance-person-cell .person { display: flex; max-width: 100%; }
.attendance-person-copy { display: flex; min-width: 0; flex-direction: column; }
.attendance-person-copy strong,
.attendance-person-copy small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attendance-person-copy strong { font-size: 11.5px; }
.attendance-person-copy small { margin-top: 1px; color: var(--muted); font-size: 9px; font-weight: 400; }
.attendance-day-heading,
.attendance-day-cell { width: 18px; }
.attendance-day-heading span,
.attendance-day-heading strong { display: block; line-height: 1.1; }
.attendance-day-heading span { color: #9a9a9a; font-size: 7.5px; font-weight: 500; }
.attendance-day-heading strong { margin-top: 2px; color: var(--text); font-size: 9px; }
.attendance-day-heading.is-today { background: color-mix(in srgb, var(--brand) 18%, var(--canvas)); }
.attendance-day-cell.is-today { background: color-mix(in srgb, var(--brand) 8%, var(--page)); }
.attendance-day-cell .cell { width: 17px; height: 17px; border-radius: 4px; font-size: 8px; }
.attendance-day-cell .cell.none { background: transparent; color: transparent; }
.attendance-day-cell a.cell:hover,
.attendance-day-cell a.cell:focus-visible { box-shadow: 0 0 0 2px var(--ink); outline: none; }
.attendance-total-heading,
.attendance-number-cell { width: 45px; }
.attendance-hours-heading,
.attendance-hours-cell { width: 58px; }
.attendance-status-heading,
.attendance-status-cell { width: 78px; }
.attendance-number-cell strong,
.attendance-hours-cell strong { display: block; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.attendance-number-cell small { display: block; color: var(--muted); font-size: 8.5px; }
.attendance-number-cell.is-danger strong { color: var(--danger); }
.attendance-status-cell .chip { max-width: 80px; overflow: hidden; text-overflow: ellipsis; font-size: 9.5px; }
.attendance-status-cell small { display: block; margin-top: 3px; color: var(--muted); font-size: 8.5px; line-height: 1.2; }
.attendance-mobile-list { display: none; }
.attendance-directory-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.attendance-directory-footer > .hint { margin: 0; }
.attendance-pagination { margin-top: 0; }
.attendance-key { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 12px; color: var(--muted); font-size: 10px; }
.attendance-key > span { display: inline-flex; align-items: center; gap: 5px; }
.attendance-key .cell { width: 18px; height: 18px; font-size: 7.5px; }

.attendance-person-panel { z-index: 50; width: 620px; }
.attendance-person-scrim { z-index: 45; }
body:has(.attendance-person-panel) .timesheet-day-panel { z-index: 60; }
body:has(.attendance-person-panel) [data-timesheet-day-scrim] { z-index: 55; }
.attendance-person-panel > [data-attendance-person-content] { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.attendance-person-panel-head { align-items: flex-start; }
.attendance-person-panel-title { flex: 1; min-width: 0; }
.attendance-person-panel-title h2 { padding-top: 0; }
.attendance-person-panel-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.attendance-person-panel-body { padding-top: 14px; }
.attendance-person-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 13px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.attendance-person-summary > div { min-width: 0; padding: 10px; border-left: 1px solid var(--line); background: var(--canvas); }
.attendance-person-summary > div:first-child { border-left: 0; }
.attendance-person-summary span,
.attendance-person-summary strong,
.attendance-person-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attendance-person-summary span { color: var(--muted); font-size: 9.5px; font-weight: 600; }
.attendance-person-summary strong { margin-top: 3px; font-size: 16px; font-variant-numeric: tabular-nums; }
.attendance-person-summary strong.is-danger { color: var(--danger); }
.attendance-person-summary small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.attendance-person-attention { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; padding: 9px 11px; border-left: 3px solid var(--danger); border-radius: 0 8px 8px 0; background: var(--danger-fill); }
.attendance-person-attention strong { flex: none; font-size: 11px; }
.attendance-person-attention span { color: #6b332c; font-size: 11px; }
.attendance-person-balances { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.attendance-person-balances > span { display: inline-flex; gap: 6px; padding: 5px 8px; border-radius: 999px; background: var(--fill); font-size: 10.5px; }
.attendance-person-month-section { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.attendance-person-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; padding: 11px; }
.attendance-person-dow { padding: 2px 3px; color: var(--muted); font-size: 9px; font-weight: 600; text-align: center; }
.attendance-person-day { position: relative; display: grid; min-height: 55px; align-content: space-between; padding: 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--page); color: var(--text); }
a.attendance-person-day:hover,
a.attendance-person-day:focus-visible { border-color: var(--ink); outline: none; }
.attendance-person-day small { font-size: 9px; font-weight: 650; }
.attendance-person-day strong { justify-self: end; font-size: 10px; }
.attendance-person-day em { margin-top: 2px; color: var(--muted); font-size: 8.5px; font-style: normal; }
.attendance-person-day.present { background: var(--present-fill); color: var(--present-ink); }
.attendance-person-day.absent { background: var(--absent-fill); color: var(--absent-ink); }
.attendance-person-day.leave { background: var(--leave-fill); color: var(--leave-ink); }
.attendance-person-day.holiday { background: var(--holiday-fill); color: var(--holiday-ink); }
.attendance-person-day.off { background: repeating-linear-gradient(135deg, #f3f3f3 0 4px, #e9e9e9 4px 6px); }
.attendance-person-day.waiting { background: #fff; border-style: dashed; color: var(--muted); }
.attendance-person-day.short { box-shadow: inset 0 -3px 0 var(--lateish); }
.attendance-person-day.low { box-shadow: inset 0 -3px 0 var(--danger); }
.attendance-person-day.is-today { outline: 2px solid var(--brand); outline-offset: -2px; }
.attendance-person-day.is-blank { border-color: transparent; background: transparent; }
.attendance-person-day.is-future { opacity: .48; }
.attendance-person-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line); background: var(--page); }
.attendance-person-panel[aria-busy="true"] [data-attendance-person-content] { opacity: .58; }

@media (max-width: 900px) {
  .attendance-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attendance-summary-strip > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .attendance-summary-strip > div:nth-child(4) { border-top: 1px solid var(--line); }
  .attendance-person-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attendance-person-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .attendance-person-summary > div:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .attendance-page-intro { display: block; }
  .attendance-page-intro > .tag { margin-top: 8px; }
  .attendance-directory-tools .search,
  .attendance-directory-tools > select,
  .attendance-directory-tools > .button { flex: 1 1 100%; width: 100%; max-width: none; }
  .attendance-period-bar { align-items: stretch; }
  .attendance-period-bar .week-nav { width: 100%; justify-content: space-between; }
  .attendance-period-bar .week-nav strong { min-width: 0; }
  .attendance-export { flex: 1 1 100%; margin-left: 0; }
  .attendance-grid-wrap { display: none; }
  .attendance-mobile-list { display: grid; gap: 10px; }
  .attendance-mobile-card { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); }
  .attendance-mobile-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
  .attendance-mobile-card > header .person { min-width: 0; }
  .attendance-mobile-card > header .chip { flex: none; }
  .attendance-mobile-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
  .attendance-mobile-metrics > div { min-width: 0; padding: 7px; border-left: 1px solid var(--line); text-align: center; }
  .attendance-mobile-metrics > div:first-child { border-left: 0; }
  .attendance-mobile-metrics span,
  .attendance-mobile-metrics strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .attendance-mobile-metrics span { color: var(--muted); font-size: 8px; font-weight: 600; text-transform: uppercase; }
  .attendance-mobile-metrics strong { margin-top: 2px; font-size: 11px; }
  .attendance-mobile-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .attendance-mobile-day { display: grid; min-width: 0; min-height: 38px; align-content: center; justify-items: center; gap: 1px; border-radius: 6px; background: var(--fill); color: var(--muted); }
  .attendance-mobile-day small { font-size: 7.5px; }
  .attendance-mobile-day strong { font-size: 8.5px; }
  .attendance-mobile-day.present { background: var(--present-fill); color: var(--present-ink); }
  .attendance-mobile-day.absent { background: var(--absent-fill); color: var(--absent-ink); }
  .attendance-mobile-day.leave { background: var(--leave-fill); color: var(--leave-ink); }
  .attendance-mobile-day.holiday { background: var(--holiday-fill); color: var(--holiday-ink); }
  .attendance-mobile-day.off { background: repeating-linear-gradient(135deg, #f3f3f3 0 4px, #e9e9e9 4px 6px); }
  .attendance-mobile-day.waiting { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
  .attendance-mobile-day.short { box-shadow: inset 0 -2px 0 var(--lateish); }
  .attendance-mobile-day.low { box-shadow: inset 0 -2px 0 var(--danger); }
  .attendance-mobile-day.is-today { outline: 2px solid var(--brand); }
  .attendance-mobile-day.future { opacity: .46; }
  .attendance-directory-footer { display: block; }
  .attendance-directory-footer > .hint { margin-bottom: 10px; text-align: center; }
  .attendance-pagination { width: 100%; }
  .attendance-person-panel { width: 100vw; }
  .attendance-person-actions { flex-wrap: wrap; padding-left: 14px; padding-right: 14px; }
  .attendance-person-actions .button { flex: 1 1 120px; }
}

@media (max-width: 430px) {
  .attendance-summary-strip small { white-space: normal; }
  .attendance-mobile-card { padding: 10px; }
  .attendance-mobile-card > header { align-items: center; }
  .attendance-person-summary { grid-template-columns: minmax(0, 1fr); }
  .attendance-person-summary > div { border-left: 0 !important; border-top: 1px solid var(--line); }
  .attendance-person-summary > div:first-child { border-top: 0; }
  .attendance-person-month { gap: 3px; padding: 8px; }
  .attendance-person-day { min-height: 46px; padding: 5px; }
  .attendance-person-day em { display: none; }
}

/* =====================================================================
   v2.24.63: minimal Working Hours, Breaks and Extra Time
   ===================================================================== */
.content:has(.hours-workspace) { max-width: 1320px; }
.hours-workspace { min-width: 0; }
.hours-page-intro { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin:0 0 16px; }
.hours-page-intro h2 { margin:0; font-size:20px; font-weight:650; letter-spacing:-.01em; }
.hours-page-intro p { margin:3px 0 0; color:var(--muted); overflow-wrap:anywhere; }
.hours-policy-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0 0 16px; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--page); }
.hours-policy-strip > div { min-width:0; padding:12px 14px; border-left:1px solid var(--line); }
.hours-policy-strip > div:first-child { border-left:0; }
.hours-policy-strip span,.hours-policy-strip strong { display:block; overflow-wrap:anywhere; }
.hours-policy-strip span { color:var(--muted); font-size:11px; font-weight:550; }
.hours-policy-strip strong { margin-top:3px; font-size:13px; }
.hours-own-card > header > div { min-width:0; }
.hours-own-card > header span { white-space:normal; }
.hours-own-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.hours-own-metrics > div { min-width:0; padding:13px 16px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.hours-own-metrics > div:last-child { border-right:0; }
.hours-own-metrics span,.hours-own-metrics strong { display:block; overflow-wrap:anywhere; }
.hours-own-metrics span { color:var(--muted); font-size:11px; font-weight:550; }
.hours-own-metrics strong { margin-top:4px; font-size:17px; line-height:1.35; }
.hours-planned-note { margin:0; padding:10px 16px; border-bottom:1px solid var(--line); background:#fff8e8; line-height:1.5; overflow-wrap:anywhere; }
.hours-week-details,.hours-assessment { margin:0; }
.hours-week-details > summary { padding:11px 16px; cursor:pointer; font-weight:600; list-style:none; }
.hours-week-details > summary::-webkit-details-marker,.hours-assessment > summary::-webkit-details-marker { display:none; }
.hours-week-details[open] > summary { border-bottom:1px solid var(--line); }
.hours-week-scroll { overflow-x:auto; }
.hours-week { min-width:560px; border-collapse:collapse; }
.hours-week th,.hours-week td { padding:9px 14px; border-bottom:1px solid var(--line); text-align:left; }
.hours-week thead th { color:var(--muted); background:var(--canvas); font-size:11px; font-weight:600; }
.hours-week tbody tr:last-child td { border-bottom:0; }
.hours-assessment { border-top:1px solid var(--line); }
.hours-assessment > summary { padding:10px 16px; cursor:pointer; font-size:12px; font-weight:600; }
.hours-assessment > .hours-flex-summary { border:0; border-radius:0; margin:0; }
.hours-anchor { display:block; position:relative; top:-80px; visibility:hidden; }
.hours-directory > header,.hours-extra > header { align-items:flex-start; flex-wrap:wrap; }
.hours-directory-tools,.hours-extra-tools { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:12px 16px; border-bottom:1px solid var(--line); }
.hours-directory-tools .search,.hours-extra-tools .search { flex:1 1 240px; max-width:360px; }
.hours-directory-tools select,.hours-extra-tools select,.hours-extra-tools input[type=date] { width:auto; min-width:130px; }
.hours-schedule-summary,.hours-extra-counts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-bottom:1px solid var(--line); background:var(--canvas); }
.hours-extra-counts { grid-template-columns:repeat(4,minmax(0,1fr)); }
.hours-schedule-summary span,.hours-extra-counts span { min-width:0; padding:8px 14px; border-left:1px solid var(--line); color:var(--muted); font-size:11.5px; }
.hours-schedule-summary span:first-child,.hours-extra-counts span:first-child { border-left:0; }
.hours-schedule-summary b,.hours-extra-counts b { margin-right:4px; color:var(--text); font-size:14px; }
.hours-table-wrap { width:100%; overflow-x:auto; }
.hours-directory-table,.hours-extra-table,.hours-break-table { width:100%; border-collapse:collapse; }
.hours-directory-table { min-width:920px; }
.hours-extra-table { min-width:980px; }
.hours-break-table { min-width:720px; }
.hours-directory-table th,.hours-directory-table td,.hours-extra-table th,.hours-extra-table td,.hours-break-table th,.hours-break-table td { padding:10px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:middle; }
.hours-directory-table thead th,.hours-extra-table thead th,.hours-break-table thead th { color:var(--muted); background:var(--page); font-size:11px; font-weight:600; white-space:nowrap; }
.hours-directory-table tbody tr:last-child td,.hours-extra-table tbody tr:last-child td,.hours-break-table tbody tr:last-child td { border-bottom:0; }
.hours-directory-table tbody tr[data-hours-person-row] { cursor:pointer; }
.hours-directory-table tbody tr:hover,.hours-extra-table tbody tr:hover { background:#fafafa; }
.hours-extra-table tr.is-past { color:var(--muted); }
.hours-team-list { display:flex; flex-wrap:wrap; gap:4px; max-width:260px; }
.hours-team-list > span { display:inline-flex; align-items:center; gap:4px; padding:2px 7px; border-radius:999px; background:var(--fill); font-size:11px; }
.hours-team-list small { color:var(--muted); font-size:9px; text-transform:uppercase; }
.hours-row-actions { width:1%; white-space:nowrap; text-align:right !important; }
.hours-extra-actions { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:5px; }
.hours-extra-actions form { margin:0; }
.hours-directory-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:11px 16px; border-top:1px solid var(--line); }
.hours-directory-footer .hint { margin:0; }
.hours-directory-footer .pager { margin:0; }
.hours-export-actions { display:flex; flex-wrap:wrap; gap:6px; }
.hours-break-history { overflow:hidden; }
.hours-break-history > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; cursor:pointer; list-style:none; }
.hours-break-history > summary::-webkit-details-marker { display:none; }
.hours-break-history > summary span:first-child { display:flex; flex-direction:column; min-width:0; }
.hours-break-history > summary small { color:var(--muted); font-weight:400; }
.hours-break-history[open] > summary { border-bottom:1px solid var(--line); }
.hours-break-copy { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:11px 16px; border-bottom:1px solid var(--line); background:var(--canvas); }
.hours-break-copy p { margin:0; color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.hours-dialog { width:min(520px,calc(100vw - 32px)); }
.hours-window-dialog { width:min(720px,calc(100vw - 32px)); }
.hours-dialog .dialog-head > div { min-width:0; }
.hours-dialog .dialog-head p { margin:2px 0 0; }
.hours-advanced-settings { margin-top:2px; border-top:1px solid var(--line); padding-top:12px; }
.hours-advanced-settings > summary { cursor:pointer; font-size:12px; font-weight:650; }
.hours-advanced-settings > .fields { margin-top:12px; }

.hours-person-panel { width:560px; }
.hours-person-panel-head { align-items:flex-start; }
.hours-person-panel-title { min-width:0; flex:1; }
.hours-person-panel-title .person { margin-top:5px; }
.hours-person-panel-title .person > div { min-width:0; }
.hours-person-panel-title h2 { margin:0; padding:0; }
.hours-person-panel-title p { margin:2px 0 0; color:var(--muted); overflow-wrap:anywhere; }
.hours-person-panel-body { padding-bottom:84px; }
.hours-person-responsibilities { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:12px; }
.hours-person-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:14px; }
.hours-person-summary > div { min-width:0; padding:11px 12px; border:1px solid var(--line); border-radius:9px; background:var(--canvas); }
.hours-person-summary span,.hours-person-summary strong,.hours-person-summary small { display:block; overflow-wrap:anywhere; }
.hours-person-summary span { color:var(--muted); font-size:11px; }
.hours-person-summary strong { margin-top:3px; font-size:16px; line-height:1.35; }
.hours-person-summary small { margin-top:3px; color:var(--muted); font-size:10.5px; }
.hours-person-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; margin:0 0 14px; }
.hours-person-facts > div { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; padding:8px 0; border-bottom:1px solid var(--line); }
.hours-person-facts dt { color:var(--muted); font-size:11px; }
.hours-person-facts dd { margin:0; text-align:right; font-size:11.5px; font-weight:600; overflow-wrap:anywhere; }
.hours-person-planned { display:flex; flex-direction:column; gap:3px; margin-bottom:14px; padding:10px 12px; border-left:3px solid #e3a72f; border-radius:0 8px 8px 0; background:#fff8e8; }
.hours-person-planned span { color:#6d4c00; font-size:12px; }
.hours-person-section { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
.hours-person-list { display:grid; }
.hours-person-list article,.hours-person-more-body article { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.hours-person-list article:last-child,.hours-person-more-body article:last-child { border-bottom:0; }
.hours-person-list article > div,.hours-person-more-body article > div { min-width:0; }
.hours-person-list strong,.hours-person-list span,.hours-person-more-body strong,.hours-person-more-body span { display:block; overflow-wrap:anywhere; }
.hours-person-list article > div > span,.hours-person-more-body article > div > span { margin-top:2px; color:var(--muted); font-size:11px; }
.hours-person-empty { margin:10px 0 0; color:var(--muted); }
.hours-person-more { margin-top:14px; border:1px solid var(--line); border-radius:9px; }
.hours-person-more > summary { display:flex; justify-content:space-between; gap:10px; padding:10px 12px; cursor:pointer; list-style:none; font-weight:600; }
.hours-person-more > summary::-webkit-details-marker { display:none; }
.hours-person-more > summary small { color:var(--muted); font-weight:400; }
.hours-person-more[open] > summary { border-bottom:1px solid var(--line); }
.hours-person-more-body { padding:0 12px; }
.hours-person-actions { position:absolute; left:0; right:0; bottom:0; display:flex; justify-content:flex-end; gap:7px; flex-wrap:wrap; padding:12px 20px; border-top:1px solid var(--line); background:#fff; }
.hours-person-panel[aria-busy=true] { cursor:wait; }
.hours-person-panel[aria-busy=true] [data-hours-person-content] { opacity:.55; }

@media (max-width: 1050px) {
  .hours-policy-strip,.hours-own-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hours-policy-strip > div:nth-child(3),.hours-own-metrics > div:nth-child(3) { border-left:0; border-top:1px solid var(--line); }
  .hours-policy-strip > div:nth-child(4),.hours-own-metrics > div:nth-child(4) { border-top:1px solid var(--line); }
}

@media (max-width: 860px) {
  .hours-page-intro { align-items:center; }
  .hours-directory-tools,.hours-extra-tools { align-items:stretch; }
  .hours-directory-tools .search,.hours-extra-tools .search { flex:1 1 100%; max-width:none; }
  .hours-directory-tools select,.hours-extra-tools select,.hours-extra-tools input[type=date],.hours-directory-tools .button,.hours-extra-tools .button { flex:1 1 145px; min-width:0; }
  .hours-table-wrap { overflow:visible; }
  .hours-directory-table,.hours-directory-table tbody,.hours-extra-table,.hours-extra-table tbody,.hours-break-table,.hours-break-table tbody { display:block; width:100%; min-width:0; }
  .hours-directory-table thead,.hours-extra-table thead,.hours-break-table thead { display:none; }
  .hours-directory-table tr,.hours-extra-table tr,.hours-break-table tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(110px,.7fr); gap:6px 12px; padding:12px; border-bottom:1px solid var(--line); }
  .hours-directory-table tr:last-child,.hours-extra-table tr:last-child,.hours-break-table tr:last-child { border-bottom:0; }
  .hours-directory-table td,.hours-extra-table td,.hours-break-table td { display:block; min-width:0; padding:0; border:0; }
  .hours-directory-table td:first-child,.hours-extra-table td:first-child,.hours-break-table td:first-child { grid-column:1 / -1; }
  .hours-directory-table td[data-label]::before,.hours-extra-table td[data-label]::before,.hours-break-table td[data-label]::before { content:attr(data-label); display:block; margin-bottom:2px; color:var(--muted); font-size:9.5px; font-weight:650; letter-spacing:.03em; text-transform:uppercase; }
  .hours-row-actions { grid-column:1 / -1; width:auto; text-align:left !important; }
  .hours-extra-actions { justify-content:flex-start; }
  .hours-team-list { max-width:none; }
  .hours-break-copy { align-items:flex-start; flex-direction:column; }
  .hours-person-panel { width:100vw; }
}

@media (max-width: 600px) {
  .hours-policy-strip,.hours-own-metrics,.hours-schedule-summary,.hours-extra-counts,.hours-person-summary,.hours-person-facts { grid-template-columns:minmax(0,1fr); }
  .hours-policy-strip > div,.hours-own-metrics > div,.hours-schedule-summary span,.hours-extra-counts span { border-left:0; border-top:1px solid var(--line); }
  .hours-policy-strip > div:first-child,.hours-own-metrics > div:first-child,.hours-schedule-summary span:first-child,.hours-extra-counts span:first-child { border-top:0; }
  .hours-page-intro { align-items:flex-start; }
  .hours-page-intro .tag { flex:none; }
  .hours-directory-footer { align-items:flex-start; flex-direction:column; }
  .hours-directory-footer .pager { width:100%; justify-content:center; }
  .hours-dialog { width:100vw; max-width:100vw; }
  .hours-person-panel-body { padding-bottom:142px; }
  .hours-person-facts > div { display:grid; grid-template-columns:110px minmax(0,1fr); }
  .hours-person-actions { justify-content:stretch; padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px)); }
  .hours-person-actions .button { flex:1 1 120px; }
  .hours-person-actions .primary { flex-basis:100%; }
}

/* =====================================================================
   v2.24.64 — alignment, containment and responsive hardening
   Keeps every approved minimal module inside its page/card boundaries.
   Wide data tables may scroll only inside their own table wrapper; the
   application shell itself must never create horizontal page scrolling.
   ===================================================================== */
html,
body {
  max-width: 100%;
}
body {
  overflow-x: hidden;
}
.app,
.main,
.content {
  min-width: 0;
  max-width: 100%;
}
.main {
  overflow-x: clip;
}
.content > *,
.box,
.card,
.list,
[data-ajax-page-region],
.panel-body,
.dialog-body,
form,
fieldset {
  min-width: 0;
  max-width: 100%;
}
img,
video,
canvas {
  max-width: 100%;
}
.button,
.attach,
input,
select,
textarea {
  max-width: 100%;
  min-width: 0;
}

/* Shared headers, toolbars and action rows must shrink and wrap instead of
   forcing a card or page wider than its parent. */
.box > header,
.card-head,
.panel-head,
.dialog-head,
.dialog-foot,
.form-actions,
.list-tools,
.task-toolbar,
.client-directory-tools,
.team-directory-tools,
.workload-tools,
.team-management-tools,
.employee-directory-tools,
.daily-log-filter-actions,
.daily-log-export-actions,
.timesheet-period-bar,
.timesheet-export-actions,
.attendance-period-bar,
.hours-directory-tools,
.hours-extra-tools,
.hours-export-actions,
.hours-extra-actions,
.hours-directory-footer,
.social-filter-actions,
.social-post-table-head,
.social-post-pagination,
.seo-filter-actions,
.seo-update-table-head,
.seo-update-table-actions,
.seo-update-pagination,
.agency-filter-actions,
.agency-update-table-head,
.agency-update-table-actions,
.agency-update-pagination {
  min-width: 0;
  max-width: 100%;
}
.box > header > *,
.card-head > *,
.panel-head > *,
.dialog-head > *,
.dialog-foot > *,
.form-actions > *,
.list-tools > *,
.task-toolbar > *,
.client-directory-tools > *,
.team-directory-tools > *,
.workload-tools > *,
.team-management-tools > *,
.employee-directory-tools > *,
.hours-directory-tools > *,
.hours-extra-tools > * {
  min-width: 0;
}
.form-actions,
.dialog-foot,
.daily-log-panel-actions,
.timesheet-day-actions,
.attendance-person-actions,
.hours-person-actions,
.team-member-panel-actions,
.employee-quick-actions,
.client-detail-links,
.project-list-actions {
  flex-wrap: wrap;
}

/* Contain every intentionally wide data surface. */
.project-table-shell,
.social-post-table-wrap,
.seo-update-table-wrap,
.agency-update-table-wrap,
.client-compact-table-wrap,
.daily-log-table-wrap,
.timesheet-table-wrap,
.attendance-grid-wrap,
.hours-table-wrap,
.hours-week-scroll,
.table-wrap,
.web-pages-wrap,
.gantt-wrap,
.rank-wrap,
.cal-wrap {
  min-width: 0;
  max-width: 100%;
  overscroll-behavior-inline: contain;
}

/* Pagination remains centred and contained even when a result region is
   narrow or a large number of pages is available. */
.ajax-pagination,
.ajax-page-numbers {
  min-width: 0;
  max-width: 100%;
}
.ajax-page-numbers {
  overflow-x: auto;
  scrollbar-width: thin;
}
.ajax-pagination .button {
  flex: 0 1 auto;
}

/* Comfortable right-hand breathing room for compact action columns. */
.project-directory-table th:last-child,
.project-directory-table td:last-child,
.client-directory-table th:last-child,
.client-directory-table td:last-child,
.team-directory th:last-child,
.team-directory td:last-child,
.workload-directory th:last-child,
.workload-directory td:last-child,
.staff-team-directory th:last-child,
.staff-team-directory td:last-child,
.employee-directory th:last-child,
.employee-directory td:last-child,
.daily-log-table th:last-child,
.daily-log-table td:last-child,
.hours-directory-table th:last-child,
.hours-directory-table td:last-child,
.hours-extra-table th:last-child,
.hours-extra-table td:last-child {
  padding-right: 16px;
}

/* Working-hours desktop table: fixed column geometry prevents long team or
   agreement labels from pushing the action button outside the card. */
.hours-directory-table {
  table-layout: fixed;
}
.hours-directory-table th:nth-child(1) { width: 20%; }
.hours-directory-table th:nth-child(2) { width: 18%; }
.hours-directory-table th:nth-child(3) { width: 19%; }
.hours-directory-table th:nth-child(4) { width: 9%; }
.hours-directory-table th:nth-child(5) { width: 9%; }
.hours-directory-table th:nth-child(6) { width: 15%; }
.hours-directory-table th:last-child { width: 112px; }
.hours-directory-table .person > div,
.hours-directory-table .person .name,
.hours-directory-table .person .sub {
  min-width: 0;
}
.hours-directory-table .person .name,
.hours-directory-table .person .sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hours-row-actions .button {
  max-width: 100%;
}

/* Keep action columns visible while a medium-width table is scrolled inside
   its own card. This is especially useful on 10–12 inch laptops where the
   sidebar is still visible. */
@media (min-width: 861px) and (max-width: 1180px) {
  .team-directory th:last-child,
  .team-directory td:last-child,
  .workload-directory th:last-child,
  .workload-directory td:last-child,
  .staff-team-directory th:last-child,
  .staff-team-directory td:last-child,
  .employee-directory th:last-child,
  .employee-directory td:last-child,
  .daily-log-table th:last-child,
  .daily-log-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 3;
    background: var(--page);
    box-shadow: -1px 0 0 var(--line);
  }
  .team-directory thead th:last-child,
  .workload-directory thead th:last-child,
  .staff-team-directory thead th:last-child,
  .employee-directory thead th:last-child,
  .daily-log-table thead th:last-child {
    z-index: 4;
    background: var(--canvas);
  }
}

/* Working-hours tables switch to the approved compact record layout before
   the fixed sidebar leaves too little room. This removes the need for a page
   or card-level horizontal scrollbar on common laptop widths. */
@media (max-width: 1199px) {
  .hours-directory-tools,
  .hours-extra-tools {
    align-items: stretch;
  }
  .hours-directory-tools .search,
  .hours-extra-tools .search {
    flex: 1 1 100%;
    max-width: none;
  }
  .hours-directory-tools select,
  .hours-extra-tools select,
  .hours-extra-tools input[type="date"],
  .hours-directory-tools .button,
  .hours-extra-tools .button {
    flex: 1 1 145px;
    min-width: 0;
  }
  .hours-table-wrap {
    overflow: visible;
  }
  .hours-directory-table,
  .hours-directory-table tbody,
  .hours-extra-table,
  .hours-extra-table tbody,
  .hours-break-table,
  .hours-break-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .hours-directory-table thead,
  .hours-extra-table thead,
  .hours-break-table thead {
    display: none;
  }
  .hours-directory-table tr,
  .hours-extra-table tr,
  .hours-break-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, .7fr);
    gap: 7px 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .hours-directory-table tr:last-child,
  .hours-extra-table tr:last-child,
  .hours-break-table tr:last-child {
    border-bottom: 0;
  }
  .hours-directory-table td,
  .hours-extra-table td,
  .hours-break-table td {
    display: block;
    min-width: 0;
    width: auto;
    padding: 0;
    border: 0;
  }
  .hours-directory-table td:first-child,
  .hours-extra-table td:first-child,
  .hours-break-table td:first-child {
    grid-column: 1 / -1;
  }
  .hours-directory-table td[data-label]::before,
  .hours-extra-table td[data-label]::before,
  .hours-break-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 650;
    letter-spacing: .03em;
    text-transform: uppercase;
  }
  .hours-row-actions {
    grid-column: 1 / -1;
    width: auto;
    padding-right: 0 !important;
    text-align: left !important;
  }
  .hours-row-actions .button {
    width: auto;
  }
  .hours-extra-actions {
    justify-content: flex-start;
  }
  .hours-team-list {
    max-width: none;
  }
}

/* Medium and small screens: all control rows wrap cleanly, buttons remain
   inside their card, and summary text is allowed to wrap instead of widening
   the viewport. */
@media (max-width: 860px) {
  .topbar > .button,
  .topbar .button {
    max-width: min(48vw, 240px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .social-simple-hero,
  .seo-simple-hero,
  .agency-simple-hero,
  .client-profile-head,
  .employee-profile-hero,
  .hours-page-intro,
  .timesheet-page-intro,
  .attendance-page-intro {
    min-width: 0;
  }
  .social-simple-side,
  .seo-simple-side,
  .agency-simple-side {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .social-post-table-head,
  .seo-update-table-head,
  .agency-update-table-head,
  .daily-log-list-box > header,
  .hours-directory > header,
  .hours-extra > header {
    align-items: flex-start;
  }
  .daily-log-export-actions,
  .hours-export-actions,
  .seo-update-table-actions,
  .agency-update-table-actions {
    max-width: 100%;
    justify-content: flex-start;
  }
  .dialog-foot .button,
  .form-actions .button {
    min-height: var(--control);
    height: auto;
    padding-top: 7px;
    padding-bottom: 7px;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .box > header,
  .card-head,
  .panel-head,
  .dialog-head,
  .dialog-foot,
  .form-actions {
    gap: 8px;
  }
  .box > header .button,
  .card-head .button,
  .panel-head .button,
  .dialog-foot .button,
  .form-actions .button {
    max-width: 100%;
  }
  .ajax-page-numbers {
    max-width: 96px;
  }
  .hours-directory-footer,
  .timesheet-directory-footer,
  .attendance-directory-footer,
  .employee-directory-footer,
  .daily-log-pagination {
    min-width: 0;
    max-width: 100%;
  }
}

/* v2.24.64 audit corrections found by the cross-module browser fixture. */
.project-directory-table .actions-col,
.client-directory-table .actions-col {
  width: 56px;
}
.project-table-actions,
.client-actions-cell {
  padding-left: 6px !important;
  padding-right: 8px !important;
}
.project-table-actions .button,
.client-actions-cell .button {
  max-width: 100%;
}

.seo-filter-search .search,
.agency-filter-search .search,
.daily-log-search .search {
  width: 100%;
  min-width: 0;
}

/* The Daily Log filter grid needs the compact three-column arrangement on
   ordinary desktop screens too; the seven-column version is reserved for a
   genuinely wide workspace. */
@media (max-width: 1400px) {
  .daily-log-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .daily-log-search {
    grid-column: span 2;
  }
  .daily-log-filter-actions {
    justify-self: end;
  }
}

/* Tablet layouts use the same clean stacked records as phones. This avoids
   hidden action buttons in internally scrolled tables while the sidebar is
   still consuming part of the viewport. */
@media (max-width: 860px) {
  .team-directory,
  .employee-directory,
  .daily-log-table-wrap {
    overflow: visible;
  }

  .team-directory table,
  .team-directory tbody,
  .employee-directory table,
  .employee-directory tbody,
  .daily-log-table,
  .daily-log-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .team-directory thead,
  .employee-directory thead,
  .employee-directory colgroup,
  .daily-log-table thead {
    display: none;
  }

  .team-directory tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .team-directory td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .team-directory td:first-child {
    grid-column: 1 / -1;
    padding-right: 34px;
  }
  .team-directory td:nth-child(2),
  .team-directory td:nth-child(4) {
    grid-column: 1 / -1;
  }
  .team-directory td:nth-child(5),
  .team-directory td:nth-child(6),
  .team-directory td:nth-child(7) {
    padding-top: 5px;
  }
  .team-directory td:last-child {
    position: absolute;
    top: 8px;
    right: 8px;
    padding-right: 0;
    background: transparent;
    box-shadow: none;
  }

  .employee-directory tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .employee-directory td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .employee-directory td:first-child {
    grid-column: 1 / -1;
    padding-right: 34px;
  }
  .employee-directory td:nth-child(2),
  .employee-directory td:nth-child(3),
  .employee-directory td:nth-child(4) {
    grid-column: 1 / -1;
  }
  .employee-directory td:nth-child(5),
  .employee-directory td:nth-child(6) {
    padding-top: 5px;
  }
  .employee-directory td:last-child {
    position: absolute;
    top: 8px;
    right: 8px;
    padding-right: 0;
    background: transparent;
    box-shadow: none;
  }
  .employee-directory-role::before,
  .employee-directory-teams::before,
  .employee-directory-work::before,
  .employee-directory-week::before,
  .employee-directory-account::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 650;
    letter-spacing: .035em;
    text-transform: uppercase;
  }
  .employee-directory-role::before { content: "Role"; }
  .employee-directory-teams::before { content: "Teams"; }
  .employee-directory-work::before { content: "Work status"; }
  .employee-directory-week::before { content: "This week"; }
  .employee-directory-account::before { content: "Account"; }

  .daily-log-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, .7fr);
    grid-template-areas:
      "employee date"
      "project project"
      "type files"
      "update update";
    gap: 7px 12px;
    padding: 12px 42px 12px 12px;
    border-bottom: 1px solid var(--line);
  }
  .daily-log-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .daily-log-table td:nth-child(1) { grid-area: date; text-align: right; }
  .daily-log-table td:nth-child(2) { grid-area: employee; }
  .daily-log-table td:nth-child(3) { grid-area: project; padding-left: 36px; }
  .daily-log-table td:nth-child(4) { grid-area: type; }
  .daily-log-table td:nth-child(5) { grid-area: update; padding-top: 3px; }
  .daily-log-table td:nth-child(6) { grid-area: files; justify-self: end; }
  .daily-log-table td:nth-child(7) {
    position: absolute;
    top: 8px;
    right: 6px;
    padding-right: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 360px) {
  .timesheet-day-cell,
  .timesheet-day-cell > a {
    min-width: 0;
    overflow: hidden;
  }
  .timesheet-day-cell strong {
    font-size: 9.5px;
    white-space: nowrap;
  }
}

.hours-directory > header > div,
.hours-extra > header > div,
.hours-own-card > header > div {
  min-width: 0;
}
.hours-directory > header span,
.hours-extra > header span,
.hours-own-card > header span {
  white-space: normal;
  overflow-wrap: anywhere;
}
.hours-directory-table td,
.hours-extra-table td,
.hours-break-table td {
  min-width: 0;
  overflow-wrap: anywhere;
}
.hours-directory-table .chip,
.hours-extra-table .chip {
  max-width: 100%;
  white-space: normal;
}
@media (max-width: 1199px) {
  .hours-table-wrap {
    overflow-x: hidden;
  }
}

/* Final v2.24.64 containment refinements. */
@media (max-width: 1180px) and (min-width: 861px) {
  .project-directory-table .project-col { width: 31%; }
  .project-directory-table .team-col { width: 21%; }
  .project-directory-table .status-col { width: 10%; }
  .project-directory-table .deadline-col { width: 14%; }
  .project-directory-table .progress-col { width: 14%; }
  .project-directory-table .actions-col { width: 10%; }
}

@media (min-width: 861px) and (max-width: 1280px) {
  .daily-log-table th:last-child,
  .daily-log-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 3;
    background: var(--page);
    box-shadow: -1px 0 0 var(--line);
  }
  .daily-log-table thead th:last-child {
    z-index: 4;
    background: var(--canvas);
  }
}

.employee-directory-person .person,
.employee-directory-person .person-text,
.employee-directory-person .person > span:last-child {
  min-width: 0;
  max-width: 100%;
}
.employee-directory-person .name,
.employee-directory-person .sub {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-tasks-box > header > div:first-child {
  min-width: 0;
}
.dashboard-tasks-box > header > div:first-child h2,
.dashboard-tasks-box > header > div:first-child span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.hours-directory-table .person {
  display: flex;
  max-width: 100%;
  min-width: 0;
}
.hours-directory-table .person > div,
.hours-directory-table .person > .person-text {
  flex: 1 1 auto;
  min-width: 0;
}
.hours-row-actions .button {
  height: auto;
  min-height: 28px;
  max-width: 100%;
  padding-top: 5px;
  padding-bottom: 5px;
  white-space: nowrap;
  text-align: center;
}

/* =====================================================================
   v2.24.65: minimal Leave and Holidays
   ===================================================================== */
.content:has(.leave-minimal-workspace) { max-width: 1320px; }
.leave-minimal-workspace { min-width: 0; width: 100%; }

.leave-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--page);
}
.leave-summary-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 16px;
  border-left: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.leave-summary-card:first-child { border-left: 0; }
a.leave-summary-card:hover { background: var(--canvas); }
.leave-summary-card.is-active { background: var(--ok-fill); box-shadow: inset 0 -3px 0 var(--brand); }
.leave-summary-card span,
.leave-summary-card strong,
.leave-summary-card small { display: block; min-width: 0; overflow-wrap: anywhere; }
.leave-summary-card span { color: var(--muted); font-size: 11px; font-weight: 600; }
.leave-summary-card strong { margin-top: 3px; font-size: 23px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.leave-summary-card small { margin-top: 2px; color: var(--muted); font-size: 10.5px; }

.leave-own-balance {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--page);
}
.leave-own-balance > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.leave-own-balance > header > div { min-width: 0; }
.leave-own-balance > header strong,
.leave-own-balance > header span { display: block; overflow-wrap: anywhere; }
.leave-own-balance > header span { color: var(--muted); font-size: 11px; }
.leave-own-balance-total { text-align: right; }
.leave-own-balance-total strong { font-size: 13px; }
.leave-balance-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.leave-balance-item { min-width: 0; padding: 11px 14px; border-left: 1px solid var(--line); }
.leave-balance-item:first-child { border-left: 0; }
.leave-balance-item span,
.leave-balance-item strong,
.leave-balance-item small { display: block; overflow-wrap: anywhere; }
.leave-balance-item span { color: var(--muted); font-size: 10.5px; }
.leave-balance-item strong { margin-top: 2px; font-size: 15px; }
.leave-balance-item small { margin-top: 2px; color: var(--muted); font-size: 10.5px; }

.leave-filter-form {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  min-width: 0;
}
.leave-filter-primary {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(140px, .65fr) minmax(140px, .65fr) minmax(140px, .65fr) auto;
  gap: 9px;
  align-items: end;
  min-width: 0;
}
.leave-filter-primary > * { min-width: 0; }
.leave-filter-primary label,
.leave-more-filters label { display: grid; gap: 4px; min-width: 0; color: var(--muted); font-size: 10.5px; font-weight: 600; }
.leave-filter-primary input,
.leave-filter-primary select,
.leave-more-filters input,
.leave-more-filters select { width: 100%; min-width: 0; }
.leave-filter-form .search { width: auto; max-width: none; }
.leave-more-filters { border-top: 1px solid var(--line); padding-top: 8px; }
.leave-more-filters > summary { display: inline-flex; align-items: center; min-height: 28px; cursor: pointer; color: var(--text); font-size: 11px; font-weight: 600; }
.leave-more-filters > div { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)) auto; gap: 9px; align-items: end; padding-top: 8px; }
.leave-more-filters > div > * { min-width: 0; }

.leave-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}
.leave-list-heading > div:first-child { min-width: 0; }
.leave-list-heading h2 { font-size: 14px; }
.leave-list-heading p { margin-top: 2px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.leave-export-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.leave-results { min-width: 0; }
.leave-table-wrap { width: 100%; min-width: 0; overflow-x: auto; }
.leave-request-table { width: 100%; min-width: 930px; table-layout: fixed; border-collapse: collapse; }
.leave-request-table th:nth-child(1) { width: 18%; }
.leave-request-table th:nth-child(2) { width: 18%; }
.leave-request-table th:nth-child(3) { width: 20%; }
.leave-request-table th:nth-child(4) { width: 11%; }
.leave-request-table th:nth-child(5) { width: 14%; }
.leave-request-table th:nth-child(6) { width: 14%; }
.leave-request-table th:last-child { width: 68px; }
.leave-request-table th,
.leave-request-table td { min-width: 0; padding: 10px 12px; vertical-align: middle; overflow-wrap: anywhere; }
.leave-request-table tbody tr { cursor: pointer; }
.leave-request-table tbody tr:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.leave-request-table td > strong,
.leave-request-table td > small { display: block; min-width: 0; }
.leave-request-table td > small { margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.leave-person-cell .person { display: flex; max-width: 100%; }
.leave-person-cell .person-text { flex: 1; min-width: 0; }
.leave-person-cell .person-text strong,
.leave-person-cell .person-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leave-row-reason { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leave-attachment-count { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; color: var(--muted); font-size: 10.5px; }
.leave-row-action { text-align: right; }
.leave-row-action .button { max-width: 100%; }
.leave-results .ajax-pagination { max-width: 100%; }

.leave-secondary-section {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--page);
  overflow: hidden;
}
.leave-secondary-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  background: var(--canvas);
}
.leave-secondary-section > summary::-webkit-details-marker { display: none; }
.leave-secondary-section > summary > span { min-width: 0; }
.leave-secondary-section > summary strong,
.leave-secondary-section > summary small { display: block; overflow-wrap: anywhere; }
.leave-secondary-section > summary small { margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.leave-secondary-section > summary > span:last-child { flex: none; color: var(--muted); font-size: 11px; }
.leave-secondary-section[open] > summary { border-bottom: 1px solid var(--line); }
.leave-secondary-body { padding: 12px 14px 14px; min-width: 0; }
.leave-section-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.leave-balance-table-wrap { overflow-x: auto; }
.leave-balance-table { width: 100%; min-width: 720px; }
.leave-balance-table th,
.leave-balance-table td { vertical-align: top; }
.leave-balance-table th small,
.leave-balance-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; white-space: normal; }
.leave-balance-table td strong { display: block; }
.leave-holiday-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.leave-holiday-list article { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; }
.leave-holiday-list time { display: grid; place-items: center; min-height: 40px; border-radius: 7px; background: var(--fill); line-height: 1.1; }
.leave-holiday-list time strong { font-size: 15px; }
.leave-holiday-list time span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.leave-holiday-list article > div:nth-child(2) { min-width: 0; }
.leave-holiday-list article > div:nth-child(2) strong,
.leave-holiday-list article > div:nth-child(2) small { display: block; overflow-wrap: anywhere; }
.leave-holiday-list article > div:nth-child(2) small { color: var(--muted); font-size: 10.5px; }
.leave-holiday-actions { display: flex; align-items: center; gap: 4px; }
.leave-holiday-actions form { display: inline-flex; }

.leave-request-dialog { width: min(620px, calc(100vw - 32px)); }
.leave-request-dialog .dialog-head { align-items: flex-start; }
.leave-request-dialog .dialog-head > div { min-width: 0; }
.leave-request-dialog .dialog-head p { margin-top: 2px; }
.leave-date-fields { gap: 10px; }
.leave-request-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
.leave-request-preview > div { min-width: 0; padding: 8px; border-radius: 7px; background: var(--page); }
.leave-request-preview span,
.leave-request-preview strong { display: block; overflow-wrap: anywhere; }
.leave-request-preview span { color: var(--muted); font-size: 10.5px; }
.leave-request-preview strong { margin-top: 2px; font-size: 12px; }
.leave-request-preview .notice { grid-column: 1 / -1; margin: 0; }
.leave-attachment-field .attach { margin-right: 8px; }

.leave-request-panel { width: min(570px, 100vw); }
.leave-request-panel > div { display: flex; flex-direction: column; min-height: 100%; }
.leave-request-panel-head { align-items: flex-start; }
.leave-request-panel-title { flex: 1; min-width: 0; padding-top: 3px; }
.leave-request-panel-title h2 { margin: 2px 0; padding: 0; font-size: 17px; }
.leave-request-panel-title p { color: var(--muted); overflow-wrap: anywhere; }
.leave-request-panel-body { min-width: 0; }
.leave-panel-person { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.leave-panel-person .person-text { flex: 1; min-width: 0; }
.leave-panel-person .person-text strong,
.leave-panel-person .person-text small { display: block; overflow-wrap: anywhere; }
.leave-panel-person .person-text small { color: var(--muted); }
.leave-panel-person > .status { flex: none; }
.leave-panel-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.leave-panel-metrics > div { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.leave-panel-metrics span,
.leave-panel-metrics strong { display: block; overflow-wrap: anywhere; }
.leave-panel-metrics span { color: var(--muted); font-size: 10.5px; }
.leave-panel-metrics strong { margin-top: 3px; font-size: 13px; }
.leave-request-facts { grid-template-columns: 120px minmax(0, 1fr); margin: 14px 0; }
.leave-request-facts dd { overflow-wrap: anywhere; }
.leave-request-facts dd .sub { color: var(--muted); font-size: 11px; }
.leave-panel-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.leave-panel-section h3 { margin: 0 0 8px; font-size: 12px; }
.leave-panel-files { margin: 0; }
.leave-panel-history { margin-top: 14px; }
.leave-panel-history-body { padding: 0 12px 10px; }
.leave-panel-history-body p { margin: 5px 0; overflow-wrap: anywhere; }
.leave-request-panel-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 20px 16px; border-top: 1px solid var(--line); background: var(--page); }
.leave-request-panel-actions .spacer { flex: 1; }
.leave-request-panel-actions form { display: inline-flex; }
.leave-request-panel-actions .hint { flex: 1 1 220px; text-align: right; }
.leave-request-panel[aria-busy="true"] { cursor: wait; }
.leave-request-panel[aria-busy="true"] [data-leave-request-content] { opacity: .7; }

@media (max-width: 1100px) {
  .leave-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leave-summary-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .leave-summary-card:nth-child(4) { border-top: 1px solid var(--line); }
  .leave-filter-primary { grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, .65fr)); }
  .leave-filter-primary .search { grid-column: 1 / 3; }
  .leave-filter-primary .button { grid-column: 3; }
  .leave-more-filters > div { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}

@media (max-width: 1180px) {
  .leave-list-heading { align-items: flex-start; flex-wrap: wrap; }
  .leave-export-actions { width: 100%; justify-content: flex-start; }
  .leave-table-wrap { overflow: visible; }
  .leave-request-table,
  .leave-request-table tbody { display: block; min-width: 0; width: 100%; }
  .leave-request-table thead { display: none; }
  .leave-request-table tbody tr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding: 12px 78px 12px 12px; border-bottom: 1px solid var(--line); }
  .leave-request-table tbody tr:last-child { border-bottom: 0; }
  .leave-request-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .leave-request-table .leave-person-cell { grid-column: 1 / -1; }
  .leave-request-table td:nth-last-child(6) { grid-column: 1 / -1; }
  .leave-request-table td:nth-last-child(5) { grid-column: 1 / -1; }
  .leave-request-table td:nth-last-child(4),
  .leave-request-table td:nth-last-child(3),
  .leave-request-table td:nth-last-child(2) { font-size: 11px; }
  .leave-request-table td:nth-last-child(4)::before,
  .leave-request-table td:nth-last-child(3)::before,
  .leave-request-table td:nth-last-child(2)::before { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 650; text-transform: uppercase; }
  .leave-request-table td:nth-last-child(4)::before { content: "Duration"; }
  .leave-request-table td:nth-last-child(3)::before { content: "Status"; }
  .leave-request-table td:nth-last-child(2)::before { content: "Reviewed by"; }
  .leave-row-action { position: absolute; top: 10px; right: 10px; }
  .leave-holiday-list { grid-template-columns: minmax(0, 1fr); }
  .leave-balance-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leave-balance-item:nth-child(odd) { border-left: 0; }
  .leave-balance-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .leave-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leave-summary-card { padding: 11px 12px; }
  .leave-summary-card strong { font-size: 20px; }
  .leave-own-balance > header { align-items: flex-start; }
  .leave-own-balance-total { text-align: left; }
  .leave-filter-primary,
  .leave-more-filters > div { grid-template-columns: minmax(0, 1fr); }
  .leave-filter-primary .search,
  .leave-filter-primary .button { grid-column: auto; }
  .leave-filter-primary .button { width: 100%; }
  .leave-export-actions .button { flex: 1 1 130px; }
  .leave-secondary-section > summary { align-items: flex-start; }
  .leave-section-tools { align-items: stretch; }
  .leave-section-tools .week-nav { width: 100%; justify-content: space-between; }
  .leave-section-tools > .button { width: 100%; }
  .leave-holiday-list article { grid-template-columns: 42px minmax(0, 1fr); }
  .leave-holiday-actions { grid-column: 2; justify-content: flex-start; }
  .leave-request-preview { grid-template-columns: minmax(0, 1fr); }
  .leave-request-preview .notice { grid-column: auto; }
  .leave-request-panel { width: 100vw; border-left: 0; }
  .leave-request-panel-actions .spacer { display: none; }
  .leave-request-panel-actions > .button,
  .leave-request-panel-actions form,
  .leave-request-panel-actions form .button { flex: 1 1 120px; }
  .leave-request-panel-actions form .button { width: 100%; }
  .leave-request-panel-actions .hint { flex-basis: 100%; text-align: left; }
}

@media (max-width: 430px) {
  .leave-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leave-balance-strip { grid-template-columns: minmax(0, 1fr); }
  .leave-balance-item { border-left: 0; border-top: 1px solid var(--line); }
  .leave-balance-item:first-child { border-top: 0; }
  .leave-panel-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leave-request-facts { grid-template-columns: 92px minmax(0, 1fr); }
}

/* =====================================================================
   v2.24.66 — minimal Time Corrections workspace
   ===================================================================== */
.correction-minimal-workspace,
.correction-results,
.correction-table-wrap,
.correction-filter-form,
.correction-request-panel,
.correction-dialog { min-width: 0; max-width: 100%; }

.correction-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--page);
}
.correction-summary-card {
  min-width: 0;
  padding: 14px 16px;
  border-left: 1px solid var(--line);
  color: inherit;
  background: var(--page);
}
.correction-summary-card:first-child { border-left: 0; }
a.correction-summary-card:hover,
.correction-summary-card.is-active { background: var(--canvas); }
.correction-summary-card.is-active { box-shadow: inset 0 -3px 0 var(--ink); }
.correction-summary-card span,
.correction-summary-card strong,
.correction-summary-card small { display: block; overflow-wrap: anywhere; }
.correction-summary-card span { color: var(--muted); font-size: 11px; font-weight: 600; }
.correction-summary-card strong { margin-top: 3px; font-size: 22px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.correction-summary-card small { margin-top: 3px; color: var(--muted); font-size: 10.5px; }

.correction-filter-form {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
}
.correction-filter-primary {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(130px, .7fr) minmax(128px, .65fr) minmax(128px, .65fr) auto;
  gap: 8px;
  align-items: end;
}
.correction-filter-primary .search { width: auto; min-width: 0; }
.correction-filter-primary label,
.correction-more-filters label { display: grid; min-width: 0; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
.correction-filter-primary input,
.correction-filter-primary select,
.correction-more-filters input,
.correction-more-filters select { width: 100%; min-width: 0; }
.correction-more-filters { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 9px; }
.correction-more-filters > summary { cursor: pointer; color: var(--text); font-size: 12px; font-weight: 600; }
.correction-more-filters > div { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto; gap: 8px; align-items: end; margin-top: 9px; }

.correction-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}
.correction-list-heading > div:first-child { min-width: 0; }
.correction-list-heading h2 { font-size: 14px; font-weight: 650; }
.correction-list-heading p { margin-top: 2px; color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.correction-export-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }

.correction-table-wrap { overflow: hidden; }
.correction-request-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.correction-request-table .correction-person-col { width: 17%; }
.correction-request-table .correction-date-col { width: 10%; }
.correction-request-table .correction-current-col { width: 12%; }
.correction-request-table .correction-change-col { width: 17%; }
.correction-request-table .correction-reason-col { width: 18%; }
.correction-request-table .correction-status-col { width: 10%; }
.correction-request-table .correction-reviewer-col { width: 12%; }
.correction-request-table .correction-actions-col { width: 60px; }
.correction-request-table th,
.correction-request-table td { min-width: 0; padding: 10px 11px; vertical-align: middle; overflow-wrap: anywhere; }
.correction-request-table tbody tr { cursor: pointer; }
.correction-request-table tbody tr:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.correction-request-table td strong,
.correction-request-table td small { display: block; min-width: 0; }
.correction-request-table td strong { font-size: 12px; line-height: 1.4; }
.correction-request-table td small { margin-top: 2px; color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.correction-person-cell .person { display: flex; max-width: 100%; }
.correction-person-cell .person-text { min-width: 0; }
.correction-person-cell .person-text strong,
.correction-person-cell .person-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.correction-reason-cell > span,
.correction-decision-note { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.correction-attachment-count { display: inline-flex !important; align-items: center; gap: 4px; }
.correction-status-cell .status { white-space: normal; align-items: baseline; line-height: 1.35; }
.correction-status-cell .status::before { flex: 0 0 7px; align-self: baseline; }
.correction-reviewer-cell strong,
.correction-reviewer-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.correction-actions-cell { text-align: right; }
.correction-actions-cell .button { max-width: 100%; }

.correction-request-scrim { z-index: 55; }
.correction-request-panel { z-index: 60; width: min(620px, 100vw); }
.correction-request-panel > [data-correction-content] { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.correction-request-panel[aria-busy="true"] { cursor: progress; }
.correction-panel-head { flex: 0 0 auto; align-items: flex-start; }
.correction-panel-title { flex: 1; min-width: 0; padding: 2px 6px 0 0; }
.correction-panel-title h2 { margin-top: 3px; padding: 0; font-size: 18px; }
.correction-panel-title p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.correction-panel-body { min-height: 0; }
.correction-panel-person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 14px; }
.correction-panel-person .person-text { min-width: 0; }
.correction-panel-person .person-text strong,
.correction-panel-person .person-text small { display: block; overflow-wrap: anywhere; }
.correction-panel-person .status { justify-self: end; }
.correction-panel-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.correction-panel-metrics > div { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.correction-panel-metrics span,
.correction-panel-metrics strong { display: block; overflow-wrap: anywhere; }
.correction-panel-metrics span { color: var(--muted); font-size: 10.5px; }
.correction-panel-metrics strong { margin-top: 4px; font-size: 16px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.correction-request-facts { grid-template-columns: 126px minmax(0, 1fr); margin-bottom: 14px !important; }
.correction-request-facts dd { min-width: 0; overflow-wrap: anywhere; }
.correction-request-facts .sub { display: inline; color: var(--muted); font-size: 11px; }
.correction-panel-section { margin: 16px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.correction-panel-section h3 { margin: 0 0 8px; font-size: 13px; }
.correction-panel-files { margin: 0; }
.correction-history-body { padding: 0 12px 12px; }
.correction-history-body > p { margin: 7px 0; overflow-wrap: anywhere; }
.correction-session-list,
.correction-entry-list { display: grid; gap: 0; }
.correction-session-list > div,
.correction-entry-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.correction-session-list > div:first-child,
.correction-entry-list > div:first-child { border-top: 0; }
.correction-session-list span,
.correction-session-list strong,
.correction-session-list small,
.correction-entry-list span,
.correction-entry-list strong,
.correction-entry-list small { min-width: 0; overflow-wrap: anywhere; }
.correction-session-list small { grid-column: 1 / -1; color: var(--muted); }
.correction-entry-list > div > span:last-child { text-align: right; white-space: nowrap; }
.correction-entry-list small { display: block; color: var(--muted); white-space: normal; }
.correction-review-form { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
.correction-review-form h3 { margin: 0 0 4px; font-size: 14px; }
.correction-review-form > .hint { margin-bottom: 12px; }
.correction-review-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.correction-review-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.correction-panel-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line); background: var(--page); }
.correction-panel-actions .spacer { flex: 1; }
.correction-panel-actions form { display: inline-flex; margin: 0; }

.correction-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: hidden; }
.correction-dialog[open] { display: flex; flex-direction: column; }
.correction-dialog > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; max-height: calc(100dvh - 32px); }
.correction-dialog .dialog-head { align-items: flex-start; }
.correction-dialog .dialog-head > div { min-width: 0; }
.correction-dialog .dialog-head p { margin-top: 3px; overflow-wrap: anywhere; }
.correction-dialog .dialog-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.correction-dialog-core { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.correction-period-box { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
.correction-period-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.correction-period-box > .hint { margin-top: 8px; }
.correction-attachment-field .attach { margin-right: 8px; }
.correction-attachment-field .chosen { display: inline; min-width: 0; overflow-wrap: anywhere; }
.correction-dialog .dialog-foot { flex: 0 0 auto; flex-wrap: wrap; background: var(--page); }

@media (max-width: 1180px) {
  .correction-filter-primary { grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(120px, .65fr)); }
  .correction-filter-primary .button { grid-column: 4; justify-self: stretch; }
  .correction-request-table,
  .correction-request-table tbody { display: block; width: 100%; }
  .correction-request-table thead { display: none; }
  .correction-request-table tbody tr {
    display: grid;
    grid-template-columns: minmax(190px, 1.1fr) minmax(150px, .8fr) minmax(170px, 1fr) minmax(110px, .65fr) auto;
    grid-template-areas:
      "person date current status actions"
      "change change reason reviewer actions";
    gap: 8px 14px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .correction-request-table tbody tr:last-child { border-bottom: 0; }
  .correction-request-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .correction-person-cell { grid-area: person; }
  .correction-date-cell { grid-area: date; }
  .correction-current-cell { grid-area: current; }
  .correction-change-cell { grid-area: change; }
  .correction-reason-cell { grid-area: reason; }
  .correction-status-cell { grid-area: status; }
  .correction-reviewer-cell { grid-area: reviewer; }
  .correction-actions-cell { grid-area: actions; align-self: center; }
  .correction-person-cell::before,
  .correction-date-cell::before,
  .correction-current-cell::before,
  .correction-change-cell::before,
  .correction-reason-cell::before,
  .correction-status-cell::before,
  .correction-reviewer-cell::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 650;
    letter-spacing: .03em;
    text-transform: uppercase;
  }
  .correction-person-cell::before { content: "Employee"; }
  .correction-date-cell::before { content: "Work day"; }
  .correction-current-cell::before { content: "Current"; }
  .correction-change-cell::before { content: "Requested change"; }
  .correction-reason-cell::before { content: "Reason"; }
  .correction-status-cell::before { content: "Status"; }
  .correction-reviewer-cell::before { content: "Reviewed by"; }
}

@media (max-width: 860px) {
  .correction-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .correction-summary-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .correction-summary-card:nth-child(4) { border-top: 1px solid var(--line); }
  .correction-filter-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .correction-filter-primary .search { grid-column: 1 / -1; }
  .correction-filter-primary .button { grid-column: auto; width: 100%; }
  .correction-more-filters > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .correction-more-filters > div > .button { grid-column: 1 / -1; }
  .correction-list-heading { align-items: flex-start; flex-direction: column; }
  .correction-export-actions { width: 100%; justify-content: flex-start; }
  .correction-request-table tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "person status"
      "date current"
      "change change"
      "reason reason"
      "reviewer actions";
  }
  .correction-actions-cell { justify-self: end; }
  .correction-request-panel { width: 100vw; border-left: 0; }
  .correction-review-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .correction-period-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .correction-filter-primary,
  .correction-more-filters > div,
  .correction-dialog-core,
  .correction-period-fields { grid-template-columns: minmax(0, 1fr); }
  .correction-filter-primary .search,
  .correction-more-filters > div > .button { grid-column: auto; }
  .correction-export-actions .button { flex: 1 1 130px; }
  .correction-request-table tbody tr {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "person status"
      "date current"
      "change change"
      "reason reason"
      "reviewer actions";
    padding: 12px;
  }
  .correction-person-cell .person-text small { white-space: normal; }
  .correction-panel-person { grid-template-columns: auto minmax(0, 1fr); }
  .correction-panel-person .status { grid-column: 2; justify-self: start; }
  .correction-panel-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .correction-request-facts { grid-template-columns: 96px minmax(0, 1fr); }
  .correction-review-fields { grid-template-columns: minmax(0, 1fr); }
  .correction-review-actions .button { flex: 1 1 130px; }
  .correction-panel-actions { padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .correction-panel-actions .spacer { display: none; }
  .correction-panel-actions > .button,
  .correction-panel-actions > a,
  .correction-panel-actions form,
  .correction-panel-actions form .button { flex: 1 1 120px; }
  .correction-panel-actions form .button { width: 100%; }
  .correction-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .correction-dialog > form { max-height: 100dvh; height: 100%; }
  .correction-dialog .dialog-foot .button { flex: 1 1 120px; }
}

@media (max-width: 390px) {
  .correction-summary-card { padding: 12px; }
  .correction-summary-card strong { font-size: 20px; }
  .correction-panel-metrics { grid-template-columns: minmax(0, 1fr); }
  .correction-request-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .correction-request-facts dd { margin-bottom: 8px; }
  .correction-session-list > div,
  .correction-entry-list > div { grid-template-columns: minmax(0, 1fr); }
  .correction-entry-list > div > span:last-child { text-align: left; white-space: normal; }
}

/* =====================================================================
   v2.24.67: minimal unified Weekly Updates and Task Updates workspace
   ===================================================================== */

.content:has(.updates-directory) { max-width: 1420px; }
.updates-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  overflow: hidden;
}
.updates-summary > * {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 15px 17px;
  border-left: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.updates-summary > :first-child { border-left: 0; }
.updates-summary > a:hover { background: #fafafa; }
.updates-summary strong {
  display: block;
  font-size: 23px;
  font-weight: 650;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.updates-summary span { color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }

.updates-missing-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #f0d9a8;
  border-radius: 9px;
  background: #fffaf0;
  color: #5e450f;
  text-align: left;
  cursor: pointer;
}
.updates-missing-alert:hover { border-color: #d7b35c; }
.updates-missing-alert > span { min-width: 0; overflow-wrap: anywhere; }
.updates-missing-alert .button { pointer-events: none; background: #fff; }

.updates-directory { min-width: 0; }
.updates-directory > header { flex-wrap: wrap; }
.updates-directory > header > div:first-child { min-width: 0; }
.updates-export-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.updates-filter-pad { padding-top: 14px; padding-bottom: 14px; }
.updates-filters, .updates-filter-main, .updates-filter-secondary { min-width: 0; }
.updates-filter-main {
  display: grid;
  grid-template-columns: minmax(230px, 1.7fr) repeat(3, minmax(130px, .72fr)) auto auto;
  gap: 9px;
  align-items: end;
}
.updates-filter-main .search { width: 100%; min-width: 0; }
.updates-filter-main label,
.updates-filter-secondary label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.updates-filter-main input,
.updates-filter-main select,
.updates-filter-secondary input,
.updates-filter-secondary select { min-width: 0; width: 100%; }
.updates-more-filters { margin-top: 11px; border-top: 1px solid var(--line); }
.updates-more-filters > summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-top: 9px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.updates-filter-secondary {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 9px;
  padding-top: 3px;
}

.updates-table-wrap { width: 100%; min-width: 0; overflow: hidden; }
.updates-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.updates-table th,
.updates-table td {
  min-width: 0;
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.updates-table th {
  color: var(--muted);
  background: var(--canvas);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.updates-table th:nth-child(1) { width: 9%; }
.updates-table th:nth-child(2) { width: 14%; }
.updates-table th:nth-child(3) { width: 15%; }
.updates-table th:nth-child(4) { width: 8%; }
.updates-table th:nth-child(5) { width: 25%; }
.updates-table th:nth-child(6) { width: 13%; }
.updates-table th:nth-child(7) { width: 11%; }
.updates-table th:nth-child(8) { width: 64px; }
.updates-table tbody tr { cursor: pointer; }
.updates-table tbody tr:hover { background: #fafafa; }
.updates-table tbody tr:last-child td { border-bottom: 0; }
.updates-table tbody tr.is-missing { background: #fffaf0; cursor: default; }
.updates-table td > strong,
.updates-table td > .sub,
.updates-table td .person > span > strong,
.updates-table td .person > span > .sub { display: block; min-width: 0; }
.updates-table td > strong,
.updates-table td .person > span > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}
.updates-table td > .sub,
.updates-table td .person > span > .sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}
.updates-table .person { max-width: 100%; align-items: flex-start; }
.updates-table .person > span:last-child { min-width: 0; }
.updates-table .tag { margin: 0 3px 3px 0; }
.updates-copy-cell strong { white-space: normal !important; display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden !important; }
.updates-blocker-copy { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.updates-row-action { text-align: right !important; white-space: nowrap; }
.updates-row-action form { display: inline; }
.updates-directory-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  background: var(--canvas);
}
.updates-directory-footer .hint { margin: 0; }
.updates-directory-footer .pager { margin: 0; }

.updates-dialog { width: min(660px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: hidden; }
.updates-dialog[open] { display: flex; flex-direction: column; }
.updates-dialog > form { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; }
.updates-dialog .dialog-head { align-items: flex-start; }
.updates-dialog .dialog-head > div { min-width: 0; }
.updates-dialog .dialog-head p { margin-top: 3px; }
.updates-dialog .dialog-body { min-height: 0; overflow-y: auto; }
.updates-dialog-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.updates-dialog-fields > .wide { grid-column: 1 / -1; }
.updates-dialog-fields textarea { min-height: 64px; }
.updates-dialog input[type="file"] { max-width: 100%; }
.updates-dialog .dialog-foot { flex-wrap: wrap; flex: none; background: #fff; }

.updates-panel,
.updates-missing-panel { width: min(580px, 100vw); }
.updates-panel[aria-busy="true"],
.updates-missing-panel[aria-busy="true"] { cursor: progress; }
.updates-panel .panel-body,
.updates-missing-panel .panel-body { min-width: 0; }
.updates-panel-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.updates-panel-identity > div { min-width: 0; }
.updates-panel-identity h3,
.updates-panel-identity p { overflow-wrap: anywhere; }
.updates-panel-identity h3 { margin: 0; font-size: 15px; }
.updates-panel-identity p { margin: 2px 0 0; color: var(--muted); font-size: 11.5px; }
.updates-panel-facts { grid-template-columns: 110px minmax(0, 1fr) !important; margin-bottom: 0 !important; }
.updates-panel-facts dd { overflow-wrap: anywhere; }
.updates-panel-section {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.updates-panel-section > h3 {
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 650;
}
.updates-panel-section.is-blocker {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #f0c4bd;
  border-radius: 8px;
  background: var(--danger-fill);
}
.updates-panel-section.is-blocker > h3 { color: var(--danger); }
.updates-panel-copy { line-height: 1.6; overflow-wrap: anywhere; }
.updates-project-note { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.updates-project-note:last-child { border-bottom: 0; }
.updates-project-note strong { display: flex; align-items: center; gap: 7px; }
.updates-project-note p { margin: 5px 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.updates-files { margin: 0; }
.updates-replies .comment { margin-bottom: 12px; }
.updates-reply-form { margin-top: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
.updates-reply-form textarea { background: #fff; border-color: var(--line); }
.updates-reply-form .composer-foot { padding: 0; border: 0; background: transparent; }
.updates-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.updates-panel-actions form { display: inline-flex; margin-left: auto; }

.updates-missing-intro { margin: 0 0 12px; color: var(--muted); }
.updates-missing-list { display: grid; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.updates-missing-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-top: 1px solid var(--line);
}
.updates-missing-list article:first-child { border-top: 0; }
.updates-missing-list article > div { min-width: 0; }
.updates-missing-list strong,
.updates-missing-list span { display: block; overflow-wrap: anywhere; }
.updates-missing-list span { color: var(--muted); font-size: 11px; }
.updates-missing-list form { display: inline-flex; }

@media (max-width: 1280px) {
  .updates-filter-main { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .updates-filter-main .search { grid-column: 1 / -1; }
  .updates-filter-main .button { width: 100%; }
  .updates-filter-secondary { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .updates-table,
  .updates-table tbody { display: block; width: 100%; }
  .updates-table thead { display: none; }
  .updates-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(120px, .72fr);
    grid-template-areas:
      "person subject date"
      "copy copy type"
      "blocker added action";
    gap: 9px 14px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
  }
  .updates-table tbody tr:last-child { border-bottom: 0; }
  .updates-table td { display: block; padding: 0; border: 0; }
  .updates-table td::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .035em;
    text-transform: uppercase;
  }
  .updates-table td:nth-child(1) { grid-area: date; }
  .updates-table td:nth-child(2) { grid-area: person; }
  .updates-table td:nth-child(3) { grid-area: subject; }
  .updates-table td:nth-child(4) { grid-area: type; }
  .updates-table td:nth-child(5) { grid-area: copy; }
  .updates-table td:nth-child(6) { grid-area: blocker; }
  .updates-table td:nth-child(7) { grid-area: added; }
  .updates-table td:nth-child(8) { grid-area: action; align-self: end; justify-self: end; }
  .updates-table td::before { content: attr(data-label); }
  .updates-table td:nth-child(8)::before { display: none; }
}

@media (max-width: 760px) {
  .updates-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .updates-summary > :nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .updates-summary > :nth-child(4) { border-top: 1px solid var(--line); }
  .updates-missing-alert { grid-template-columns: auto minmax(0, 1fr); }
  .updates-missing-alert .button { grid-column: 2; justify-self: start; }
  .updates-filter-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .updates-filter-main .search { grid-column: 1 / -1; }
  .updates-filter-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .updates-directory > header { align-items: flex-start; flex-direction: column; }
  .updates-export-actions { width: 100%; }
  .updates-export-actions .button { flex: 1 1 130px; }
  .updates-directory-footer { align-items: flex-start; flex-direction: column; }
  .updates-directory-footer .pager { width: 100%; justify-content: flex-start; overflow-x: auto; }
  .updates-table tbody tr {
    grid-template-columns: minmax(0, 1fr) minmax(110px, .66fr);
    grid-template-areas:
      "person type"
      "subject date"
      "copy copy"
      "blocker blocker"
      "added action";
  }
  .updates-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .updates-dialog > form { height: 100%; }
  .updates-panel,
  .updates-missing-panel { width: 100vw; border-left: 0; }
  .updates-panel-actions form { margin-left: 0; }
}

@media (max-width: 520px) {
  .updates-filter-main,
  .updates-filter-secondary,
  .updates-dialog-fields { grid-template-columns: minmax(0, 1fr); }
  .updates-filter-main .search,
  .updates-dialog-fields > .wide { grid-column: auto; }
  .updates-filter-main .button { min-width: 0; }
  .updates-table tbody tr {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "person type"
      "date date"
      "subject subject"
      "copy copy"
      "blocker blocker"
      "added action";
    padding: 12px;
  }
  .updates-table td:nth-child(8) { align-self: center; }
  .updates-panel-identity { grid-template-columns: auto minmax(0, 1fr); }
  .updates-panel-identity > .tag { grid-column: 2; justify-self: start; }
  .updates-panel-facts { grid-template-columns: 92px minmax(0, 1fr) !important; }
  .updates-panel-actions > .button,
  .updates-panel-actions > a,
  .updates-panel-actions form,
  .updates-panel-actions form .button { flex: 1 1 120px; }
  .updates-panel-actions form .button { width: 100%; }
  .updates-missing-list article { grid-template-columns: auto minmax(0, 1fr); }
  .updates-missing-list form { grid-column: 2; justify-self: start; }
  .updates-dialog .dialog-foot .button { flex: 1 1 120px; }
}

@media (max-width: 360px) {
  .updates-summary strong { font-size: 20px; }
  .updates-summary > * { padding: 12px; }
  .updates-panel-facts { grid-template-columns: minmax(0, 1fr) !important; gap: 2px !important; }
  .updates-panel-facts dd { margin-bottom: 8px; }
}

/* =====================================================================
   v2.24.68: minimal project meetings
   ===================================================================== */
.meeting-minimal-workspace,
.meeting-results,
.meeting-table-wrap,
.meeting-filter-form,
.meeting-dialog,
.meeting-detail-panel,
.meeting-full-detail { min-width: 0; max-width: 100%; }

.meeting-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.meeting-summary-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 13px 15px;
  border-left: 1px solid var(--line);
  background: var(--page);
}
.meeting-summary-card:first-child { border-left: 0; }
.meeting-summary-card:hover { background: var(--canvas); }
.meeting-summary-card.is-active { box-shadow: inset 0 -3px 0 var(--brand); background: #fbfff8; }
.meeting-summary-card span,
.meeting-summary-card small,
.meeting-summary-card strong { display: block; overflow-wrap: anywhere; }
.meeting-summary-card span { color: var(--muted); font-size: 11px; font-weight: 600; }
.meeting-summary-card strong { margin-top: 3px; font-size: 23px; line-height: 1.15; }
.meeting-summary-card small { margin-top: 3px; color: var(--muted); font-size: 10.5px; }

.meeting-filter-form { margin-bottom: 16px; }
.meeting-filter-primary {
  display: grid;
  grid-template-columns: minmax(240px, 1.7fr) minmax(135px, .7fr) minmax(135px, .62fr) minmax(135px, .62fr) auto;
  gap: 9px;
  align-items: end;
}
.meeting-filter-primary .search { width: 100%; }
.meeting-filter-primary label,
.meeting-more-filters label { display: grid; gap: 4px; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 600; }
.meeting-filter-primary input,
.meeting-filter-primary select,
.meeting-more-filters input,
.meeting-more-filters select { width: 100%; min-width: 0; }
.meeting-more-filters { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.meeting-more-filters > summary { padding: 9px 11px; cursor: pointer; font-size: 12px; font-weight: 600; }
.meeting-more-filters > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 9px; align-items: end; padding: 0 11px 11px; }
.meeting-more-filters .button { align-self: end; }

.meeting-list-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 18px 0 10px; }
.meeting-list-heading h2 { font-size: 15px; }
.meeting-list-heading p { margin-top: 2px; color: var(--muted); font-size: 12px; }
.meeting-export-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }

.meeting-table-wrap { overflow: visible; }
.meeting-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.meeting-table th,
.meeting-table td { min-width: 0; padding: 10px 9px; vertical-align: middle; overflow-wrap: anywhere; }
.meeting-table th { font-size: 11px; }
.meeting-table th:nth-child(1) { width: 14%; }
.meeting-table th:nth-child(2) { width: 20%; }
.meeting-table th:nth-child(3) { width: 14%; }
.meeting-table th:nth-child(4) { width: 13%; }
.meeting-table th:nth-child(5) { width: 11%; }
.meeting-table th:nth-child(6) { width: 10%; }
.meeting-table th:nth-child(7) { width: 13%; }
.meeting-table th:nth-child(8) { width: 54px; }
.meeting-table tbody tr { cursor: pointer; }
.meeting-table td strong,
.meeting-table td small { display: block; min-width: 0; overflow-wrap: anywhere; }
.meeting-table td small { margin-top: 2px; color: var(--muted); font-size: 10.5px; line-height: 1.35; }
.meeting-title-cell > strong,
.meeting-project-cell .person-name,
.meeting-owner-cell .person-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meeting-date-cell strong { font-size: 11.5px; }
.meeting-title-cell > strong { font-size: 12.5px; }
.meeting-project-cell .person,
.meeting-owner-cell .person { display: flex; max-width: 100%; }
.meeting-attendees-cell { min-width: 0; }
.meeting-attendee-stack { display: inline-flex; align-items: center; padding-left: 4px; }
.meeting-attendee-stack .pic { flex: none; margin-left: -5px; box-shadow: 0 0 0 2px var(--page); }
.meeting-attendee-stack .pic:first-child { margin-left: 0; }
.meeting-status-cell .status { white-space: normal; line-height: 1.35; }
.meeting-status-cell small,
.meeting-actions-cell small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-row-action { text-align: right; }
.meeting-row-action .button { max-width: 100%; }

.meeting-dialog {
  width: min(820px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}
.meeting-dialog[open] { display: flex; flex-direction: column; }
.meeting-dialog > form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 32px); }
.meeting-dialog .dialog-head { flex: none; align-items: flex-start; }
.meeting-dialog .dialog-head > div { min-width: 0; }
.meeting-dialog .dialog-head p { margin-top: 2px; overflow-wrap: anywhere; }
.meeting-dialog .dialog-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.meeting-dialog .dialog-foot { flex: none; flex-wrap: wrap; background: var(--page); }
.meeting-core-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.meeting-core-fields input[type="url"],
.meeting-core-fields input[type="number"] { width: 100%; min-width: 0; height: var(--control); padding: 0 10px; border: 1px solid transparent; border-radius: var(--radius); background: var(--fill); outline: none; }
.meeting-core-fields input[type="url"]:focus,
.meeting-core-fields input[type="number"]:focus { background: #fff; border-color: var(--ink); }
.meeting-attendees-field { min-width: 0; }
.meeting-attendees-field .picker { width: 100%; }
.meeting-attendees-field .picker-list { max-height: 220px; }
.meeting-dialog-more { margin-top: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); overflow: hidden; }
.meeting-dialog-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; cursor: pointer; list-style: none; }
.meeting-dialog-more > summary::-webkit-details-marker { display: none; }
.meeting-dialog-more > summary span { min-width: 0; }
.meeting-dialog-more > summary strong,
.meeting-dialog-more > summary small { display: block; overflow-wrap: anywhere; }
.meeting-dialog-more > summary small { margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 400; }
.meeting-dialog-more[open] > summary { border-bottom: 1px solid var(--line); }
.meeting-dialog-more-body { padding: 13px; background: var(--page); }
.meeting-note-fields { grid-template-columns: minmax(0, 1fr); }
.meeting-actions-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 16px 0 9px; padding-top: 14px; border-top: 1px solid var(--line); }
.meeting-actions-head strong { display: block; }
.meeting-actions-head p { margin-top: 2px; }
.meeting-action-rows { display: grid; gap: 8px; }
.meeting-action-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) minmax(130px, .9fr) 135px 125px 105px 34px;
  gap: 8px;
  align-items: end;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
}
.meeting-action-row .field { min-width: 0; }
.meeting-action-row input,
.meeting-action-row select { width: 100%; min-width: 0; }
.meeting-action-task { min-width: 0; padding-bottom: 7px; }
.meeting-action-task .check { margin: 0; white-space: normal; }
.meeting-linked-state { min-height: var(--control); align-items: center; }
.meeting-action-remove { align-self: end; }
.meeting-existing-files { display: grid; gap: 6px; margin: 15px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.meeting-existing-files > strong { font-size: 12px; }
.meeting-existing-files .check { margin: 0; white-space: normal; }
.meeting-file-field { margin-top: 14px; }
.meeting-dialog-options { display: grid; gap: 7px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.meeting-dialog-options .check { margin: 0; white-space: normal; }
.meeting-fallback-card { max-width: 960px; }

.meeting-detail-panel { width: min(640px, 100vw); }
.meeting-panel-head { align-items: flex-start; }
.meeting-panel-head > div { flex: 1; min-width: 0; }
.meeting-panel-head h2 { margin: 5px 0 2px; padding: 0; }
.meeting-panel-head .sub { display: block; overflow-wrap: anywhere; }
.meeting-panel-body { padding-bottom: 88px; }
.meeting-facts { grid-template-columns: 120px minmax(0, 1fr); }
.meeting-facts dd { min-width: 0; overflow-wrap: anywhere; }
.meeting-panel-section { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.meeting-panel-section h3 { margin: 0 0 9px; font-size: 13px; }
.meeting-panel-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.meeting-panel-section-head > span { color: var(--muted); font-size: 12px; }
.meeting-panel-people { display: flex; flex-wrap: wrap; gap: 7px; }
.meeting-panel-people .person,
.meeting-guest-chip { padding: 5px 8px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); font-size: 12px; }
.meeting-guest-chip { padding-left: 9px; }
.meeting-copy { line-height: 1.6; overflow-wrap: anywhere; }
.meeting-decisions-copy { padding: 10px 12px; border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; background: #f7fcf3; }
.meeting-empty-copy { margin: 16px 0 0; padding: 12px; border-radius: 8px; background: var(--canvas); color: var(--muted); }
.meeting-file-list { display: grid; gap: 7px; }
.meeting-file-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: center; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; }
.meeting-file-row:hover { background: var(--canvas); }
.meeting-file-row strong,
.meeting-file-row small { display: block; overflow-wrap: anywhere; }
.meeting-file-row small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.meeting-action-list { display: grid; gap: 7px; }
.meeting-action-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; }
.meeting-action-item.is-done { background: var(--canvas); }
.meeting-action-item.is-done .meeting-action-copy > strong { color: var(--muted); text-decoration: line-through; }
.meeting-action-copy { min-width: 0; }
.meeting-action-copy strong,
.meeting-action-copy small { display: block; overflow-wrap: anywhere; }
.meeting-action-copy small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.meeting-action-item form { margin: 0; }
.meeting-cancel-box { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.meeting-cancel-box > summary { cursor: pointer; color: var(--danger); font-weight: 600; }
.meeting-cancel-box form { display: grid; gap: 9px; margin-top: 10px; }
.meeting-panel-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--page); }
.meeting-panel-actions .spacer { flex: 1; }
.meeting-panel-actions form { display: inline-flex; margin: 0; }
.meeting-full-detail { max-width: 920px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.meeting-full-detail .panel-head { position: static; }
.meeting-full-detail .panel-body { overflow: visible; padding-bottom: 20px; }
.meeting-full-detail .meeting-panel-actions { position: static; }

@media (max-width: 1180px) {
  .meeting-filter-primary { grid-template-columns: minmax(220px, 1.5fr) minmax(130px, .7fr) repeat(2, minmax(130px, .62fr)); }
  .meeting-filter-primary > .button { grid-column: 1 / -1; justify-self: start; }
  .meeting-table,
  .meeting-table tbody { display: block; width: 100%; }
  .meeting-table thead { display: none; }
  .meeting-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr) auto;
    grid-template-areas:
      "title title status view"
      "date project actions owner"
      "attendees attendees attendees attendees";
    gap: 8px 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .meeting-table tbody tr:last-child { border-bottom: 0; }
  .meeting-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .meeting-date-cell { grid-area: date; }
  .meeting-title-cell { grid-area: title; }
  .meeting-project-cell { grid-area: project; }
  .meeting-attendees-cell { grid-area: attendees; display: flex !important; align-items: center; gap: 8px; }
  .meeting-status-cell { grid-area: status; justify-self: end; }
  .meeting-actions-cell { grid-area: actions; }
  .meeting-owner-cell { grid-area: owner; }
  .meeting-row-action { grid-area: view; align-self: start; }
  .meeting-date-cell::before,
  .meeting-project-cell::before,
  .meeting-actions-cell::before,
  .meeting-owner-cell::before { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9.5px; font-weight: 650; letter-spacing: .025em; text-transform: uppercase; }
  .meeting-date-cell::before { content: "Date"; }
  .meeting-project-cell::before { content: "Project"; }
  .meeting-actions-cell::before { content: "Actions"; }
  .meeting-owner-cell::before { content: "Owner"; }
  .meeting-action-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meeting-action-text { grid-column: 1 / -1; }
  .meeting-action-task { align-self: center; }
  .meeting-action-remove { justify-self: end; }
}

@media (max-width: 860px) {
  .meeting-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meeting-summary-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .meeting-summary-card:nth-child(4) { border-top: 1px solid var(--line); }
  .meeting-filter-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meeting-filter-primary .search { grid-column: 1 / -1; }
  .meeting-filter-primary > .button { grid-column: auto; width: 100%; }
  .meeting-more-filters > div { grid-template-columns: minmax(0, 1fr); }
  .meeting-list-heading { align-items: flex-start; flex-direction: column; }
  .meeting-export-actions { width: 100%; justify-content: flex-start; }
  .meeting-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .meeting-dialog > form { max-height: 100dvh; height: 100%; }
  .meeting-core-fields { grid-template-columns: minmax(0, 1fr); }
  .meeting-core-fields .wide { grid-column: auto; }
  .meeting-detail-panel { width: 100vw; }
  .meeting-panel-actions .button:not(.icon-only),
  .meeting-panel-actions form { flex: 1 1 auto; }
  .meeting-panel-actions form .button { width: 100%; }
}

@media (max-width: 620px) {
  .meeting-summary-card { padding: 11px 12px; }
  .meeting-summary-card strong { font-size: 20px; }
  .meeting-filter-primary { grid-template-columns: minmax(0, 1fr); }
  .meeting-filter-primary .search { grid-column: auto; }
  .meeting-table tbody tr {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title view"
      "status status"
      "date date"
      "project project"
      "owner actions"
      "attendees attendees";
  }
  .meeting-status-cell { justify-self: start; }
  .meeting-attendees-cell { align-items: flex-start; flex-direction: column; }
  .meeting-project-cell .person-name,
  .meeting-owner-cell .person-name { white-space: normal; }
  .meeting-action-row { grid-template-columns: minmax(0, 1fr); }
  .meeting-action-text { grid-column: auto; }
  .meeting-action-remove { justify-self: start; }
  .meeting-actions-head { align-items: stretch; flex-direction: column; }
  .meeting-actions-head .button { align-self: flex-start; }
  .meeting-facts { grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr); gap: 7px 10px; }
  .meeting-action-item { grid-template-columns: minmax(0, 1fr); }
  .meeting-action-item .status { justify-self: start; }
  .meeting-panel-actions { padding: 10px 12px; }
  .meeting-panel-actions .spacer { display: none; }
}

/* =====================================================================
   v2.24.69: minimal HR meetings
   ===================================================================== */
.hr-meeting-minimal-workspace,
.hr-meeting-results,
.hr-meeting-table-wrap,
.hr-meeting-dialog,
.hr-meeting-detail-panel,
.hr-meeting-full-detail { min-width: 0; max-width: 100%; }

.hr-meeting-more-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto !important;
}
.hr-meeting-table th:nth-child(1) { width: 14%; }
.hr-meeting-table th:nth-child(2) { width: 16%; }
.hr-meeting-table th:nth-child(3) { width: 19%; }
.hr-meeting-table th:nth-child(4) { width: 13%; }
.hr-meeting-table th:nth-child(5) { width: 13%; }
.hr-meeting-table th:nth-child(6) { width: 10%; }
.hr-meeting-table th:nth-child(7) { width: 10%; }
.hr-meeting-table th:nth-child(8) { width: 54px; }
.hr-meeting-employee-cell .person,
.hr-meeting-employee-cell .person-text { min-width: 0; max-width: 100%; }
.hr-meeting-employee-cell strong,
.hr-meeting-employee-cell small,
.hr-meeting-followup-cell strong,
.hr-meeting-followup-cell small { display: block; overflow-wrap: anywhere; }
.hr-meeting-employee-cell strong,
.hr-meeting-owner-cell .person-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-meeting-employee-cell small,
.hr-meeting-followup-cell small { margin-top: 2px; color: var(--muted); font-size: 10.5px; line-height: 1.35; }
.hr-meeting-followup-cell .status { white-space: normal; }

.hr-meeting-core-fields { align-items: start; }
.hr-meeting-core-fields .picker-list label > span:last-child { min-width: 0; }
.hr-meeting-core-fields .picker-list label strong,
.hr-meeting-core-fields .picker-list label small { display: block; overflow-wrap: anywhere; }
.hr-meeting-follow-up-fields {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(180px, 1.2fr);
  gap: 12px;
  align-items: end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.hr-meeting-follow-up-fields > label:not(.check) { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 600; }
.hr-meeting-follow-up-fields input[type="date"] { width: 100%; min-width: 0; }
.hr-meeting-private-details { border-color: #ddd8e8; }
.hr-meeting-private-details > summary { background: #fbf9ff; }

.hr-meeting-detail-panel { width: min(650px, 100vw); }
.hr-meeting-private-section {
  margin-left: -6px;
  margin-right: -6px;
  padding: 15px 12px 12px;
  border: 1px solid #ddd8e8;
  border-radius: 9px;
  background: #fbf9ff;
}
.hr-meeting-private-grid { display: grid; gap: 12px; }
.hr-meeting-private-grid > div { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); }
.hr-meeting-private-grid > div > strong { display: block; margin-bottom: 5px; font-size: 12px; }
.hr-meeting-follow-up-facts { margin-bottom: 0 !important; }
.hr-meeting-history { margin-top: 18px; }
.hr-meeting-panel-actions { z-index: 2; }
.hr-meeting-full-detail { max-width: 940px; }

@media (max-width: 1180px) {
  .hr-meeting-more-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .hr-meeting-more-filter-grid > .button { justify-self: start; }
  .hr-meeting-table tbody tr {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .9fr) auto;
    grid-template-areas:
      "meeting meeting status view"
      "date employee followup owner"
      "participants participants participants participants";
  }
  .hr-meeting-table .meeting-date-cell { grid-area: date; }
  .hr-meeting-table .hr-meeting-employee-cell { grid-area: employee; }
  .hr-meeting-table .meeting-title-cell { grid-area: meeting; }
  .hr-meeting-table .meeting-owner-cell { grid-area: owner; }
  .hr-meeting-table .meeting-attendees-cell { grid-area: participants; }
  .hr-meeting-table .meeting-status-cell { grid-area: status; }
  .hr-meeting-table .hr-meeting-followup-cell { grid-area: followup; }
  .hr-meeting-table .meeting-row-action { grid-area: view; }
  .hr-meeting-table .meeting-date-cell::before,
  .hr-meeting-table .hr-meeting-employee-cell::before,
  .hr-meeting-table .hr-meeting-followup-cell::before,
  .hr-meeting-table .meeting-owner-cell::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 650;
    letter-spacing: .025em;
    text-transform: uppercase;
  }
  .hr-meeting-table .meeting-date-cell::before { content: "Date"; }
  .hr-meeting-table .hr-meeting-employee-cell::before { content: "Employee"; }
  .hr-meeting-table .hr-meeting-followup-cell::before { content: "Follow-up"; }
  .hr-meeting-table .meeting-owner-cell::before { content: "HR owner"; }
}

@media (max-width: 860px) {
  .hr-meeting-more-filter-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .hr-meeting-more-filter-grid > .button { width: 100%; justify-content: center; }
  .hr-meeting-follow-up-fields { grid-template-columns: minmax(0, 1fr); }
  .hr-meeting-dialog .dialog-foot .button { flex: 1 1 auto; }
}

@media (max-width: 620px) {
  .hr-meeting-table tbody tr {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "meeting view"
      "status status"
      "employee employee"
      "date date"
      "owner followup"
      "participants participants";
  }
  .hr-meeting-table .meeting-status-cell { justify-self: start; }
  .hr-meeting-table .meeting-owner-cell .person-name,
  .hr-meeting-table .hr-meeting-employee-cell strong { white-space: normal; }
  .hr-meeting-table .meeting-attendees-cell { flex-direction: column; align-items: flex-start; }
  .hr-meeting-private-section { margin-left: 0; margin-right: 0; }
  .hr-meeting-panel-actions .button:not(.icon-only),
  .hr-meeting-panel-actions form { flex: 1 1 140px; }
  .hr-meeting-panel-actions form .button { width: 100%; }
}

@media (max-width: 390px) {
  .hr-meeting-table tbody tr {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "meeting"
      "status"
      "employee"
      "date"
      "owner"
      "followup"
      "participants"
      "view";
  }
  .hr-meeting-table .meeting-row-action { justify-self: start; }
  .hr-meeting-panel-actions { align-items: stretch; }
  .hr-meeting-panel-actions .button,
  .hr-meeting-panel-actions form { width: 100%; }
}

/* =====================================================================
   v2.24.70: minimal Client Updates workspace and client-facing list
   ===================================================================== */
.client-update-workspace,
.client-update-workspace * { min-width: 0; }
.client-update-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.client-update-summary-card { display:grid; gap:3px; padding:13px 14px; border:1px solid var(--line); border-radius:10px; background:var(--page); text-decoration:none; }
.client-update-summary-card:hover,
.client-update-summary-card.is-active { border-color:var(--ink); background:var(--canvas); }
.client-update-summary-card span { color:var(--muted); font-size:11px; font-weight:600; }
.client-update-summary-card strong { font-size:23px; line-height:1.15; font-variant-numeric:tabular-nums; }
.client-update-summary-card small { color:var(--muted); font-size:10.5px; line-height:1.35; overflow-wrap:anywhere; }

.client-update-filters { margin-bottom:16px; padding:12px; border:1px solid var(--line); border-radius:10px; background:var(--canvas); }
.client-update-filter-primary { display:grid; grid-template-columns:minmax(240px,1.8fr) minmax(150px,.8fr) minmax(135px,.7fr) minmax(135px,.7fr) auto; gap:9px; align-items:end; }
.client-update-filter-primary .search { width:100%; }
.client-update-filter-primary label,
.client-update-more-filter-grid label { display:grid; gap:4px; color:var(--muted); font-size:11px; font-weight:600; }
.client-update-filter-primary input,
.client-update-filter-primary select,
.client-update-more-filter-grid select { width:100%; }
.client-update-more-filters { margin-top:10px; padding-top:9px; border-top:1px solid var(--line); }
.client-update-more-filters > summary { cursor:pointer; font-size:12px; font-weight:650; }
.client-update-more-filter-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto; gap:9px; align-items:end; margin-top:10px; }

.client-update-list-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin:0 0 10px; }
.client-update-list-heading h2 { font-size:15px; }
.client-update-list-heading p { margin-top:2px; color:var(--muted); font-size:11.5px; }
.client-update-export-actions { display:flex; flex-wrap:wrap; gap:7px; justify-content:flex-end; }
.client-update-results { min-width:0; }
.client-update-table-wrap { overflow:visible; }
.client-update-table { width:100%; table-layout:fixed; }
.client-update-table th:nth-child(1) { width:14%; }
.client-update-table th:nth-child(2) { width:18%; }
.client-update-table th:nth-child(3) { width:25%; }
.client-update-table th:nth-child(4) { width:15%; }
.client-update-table th:nth-child(5) { width:13%; }
.client-update-table th:nth-child(6) { width:11%; }
.client-update-table th:nth-child(7) { width:70px; }
.client-update-table th,
.client-update-table td { min-width:0; overflow-wrap:anywhere; }
.client-update-table tbody tr { cursor:pointer; }
.client-update-table td strong,
.client-update-table td small { display:block; }
.client-update-table td small { margin-top:2px; color:var(--muted); font-size:10.5px; line-height:1.35; }
.client-update-table .person { max-width:100%; }
.client-update-table .person > span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.client-update-title-cell strong,
.client-update-client-cell strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.client-update-action-cell { text-align:right !important; white-space:nowrap; }
.client-update-settings { margin-top:16px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; }
.client-update-settings > summary { cursor:pointer; font-weight:650; }
.client-update-settings form { display:grid; gap:9px; margin-top:11px; }
.client-update-settings .button { justify-self:start; }

.client-update-detail-panel { width:min(680px,100vw); }
.client-update-panel-body { padding-bottom:32px; }
.client-update-facts { grid-template-columns:120px minmax(0,1fr); }
.client-update-panel-section { margin-top:17px; padding-top:15px; border-top:1px solid var(--line); }
.client-update-panel-section h3 { margin:0 0 8px; font-size:13px; }
.client-update-summary-copy { padding:11px 12px; border-radius:8px; background:var(--canvas); line-height:1.55; overflow-wrap:anywhere; }
.client-update-review-note { padding:12px; border:1px solid #f1d29d; border-radius:9px; background:#fff8ea; }
.client-update-review-note h3 { color:#855800; }
.client-update-preview { margin-top:17px; border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.client-update-preview > summary { cursor:pointer; padding:11px 13px; background:var(--canvas); font-size:12px; font-weight:650; }
.client-update-preview-body { padding:13px; }
.client-update-preview-body .cu-project { margin-bottom:12px; }
.client-update-preview-body .cu-project > header,
.client-update-preview-body .box > header { flex-wrap:wrap; }
.client-update-preview-body .cu-counts { gap:7px; }
.client-update-preview-body .cu-count { min-width:90px; padding:8px 10px; }
.client-update-preview-body .cu-count b { font-size:18px; }
.client-update-preview-body .rank-wrap,
.client-update-preview-body .list { max-width:100%; overflow-x:auto; }
.client-update-share-link { margin-top:17px; }
.client-update-panel-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:18px; padding-top:15px; border-top:1px solid var(--line); }
.client-update-panel-actions .spacer { flex:1; }
.client-update-panel-actions form { display:inline-flex; margin:0; }
.client-update-review-box,
.client-update-delete-box { margin-top:14px; padding:11px 12px; border:1px solid var(--line); border-radius:9px; }
.client-update-review-box > summary,
.client-update-delete-box > summary { cursor:pointer; font-weight:650; }
.client-update-review-box form,
.client-update-delete-box form { margin-top:11px; }
.client-update-review-box textarea { width:100%; }
.client-update-full-page { max-width:960px; }
.client-update-full-page .panel-head { position:static; }
.client-update-full-page .panel-body { overflow:visible; }

.client-update-dialog { width:min(720px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:hidden; }
.client-update-dialog[open] { display:flex; flex-direction:column; }
.client-update-dialog > form { display:flex; flex-direction:column; min-height:0; max-height:calc(100dvh - 32px); }
.client-update-dialog .dialog-body { overflow-y:auto; min-height:0; }
.client-update-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.client-update-form-grid .wide { grid-column:1 / -1; }
.client-update-form-grid .field > span,
.client-update-includes > summary { display:block; margin-bottom:5px; color:#4a4a4a; font-size:12px; font-weight:600; }
.client-update-form-grid textarea { width:100%; }
.client-update-includes { margin-top:2px; padding:12px; border:1px solid var(--line); border-radius:9px; }
.client-update-includes > summary { cursor:pointer; margin:0; color:var(--text); }
.client-update-includes > .hint { margin:9px 0; }
.client-update-include-grid { display:grid; gap:8px; }
.client-update-include-grid .check { margin:0; align-items:flex-start; white-space:normal; }
.client-update-include-grid input { flex:none; margin-top:3px; }
.client-update-form-page { max-width:900px; }
.client-update-form-page > header { padding:12px 16px; border-bottom:1px solid var(--line); background:var(--canvas); }

.portal-client-update-list td { vertical-align:middle; }
.client-update-client-head { margin-bottom:16px; padding:15px 17px; border:1px solid var(--line); border-radius:10px; }
.client-update-client-head > span { color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; }
.client-update-client-head h2 { margin:4px 0 2px; font-size:20px; }
.client-update-client-head p { color:var(--muted); font-size:12px; }
.status.approved::before { background:var(--present); }
.status.review::before { background:var(--lateish); }

@media (max-width:1100px) {
  .client-update-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .client-update-filter-primary { grid-template-columns:minmax(220px,1.5fr) minmax(140px,.8fr) repeat(2,minmax(130px,.7fr)); }
  .client-update-filter-primary > .button { grid-column:1 / -1; justify-self:start; }
  .client-update-more-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .client-update-more-filter-grid > .button { justify-self:start; }

  .client-update-table-wrap { overflow:visible; }
  .client-update-table,
  .client-update-table tbody { display:block; width:100%; }
  .client-update-table thead { display:none; }
  .client-update-table tbody tr { position:relative; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 14px; padding:13px 86px 13px 13px; border-bottom:1px solid var(--line); }
  .client-update-table tbody tr:last-child { border-bottom:0; }
  .client-update-table td { display:block; padding:0; border:0; }
  .client-update-table td::before { display:block; margin-bottom:2px; color:var(--muted); font-size:9.5px; font-weight:650; letter-spacing:.03em; text-transform:uppercase; }
  .client-update-period-cell::before { content:"Period"; }
  .client-update-client-cell::before { content:"Client / project"; }
  .client-update-title-cell::before { content:"Update"; }
  .client-update-table td:nth-child(4)::before { content:"Prepared by"; }
  .client-update-table td:nth-child(5)::before { content:"Status"; }
  .client-update-table td:nth-child(6)::before { content:"Sent"; }
  .client-update-title-cell { grid-column:1 / -1; }
  .client-update-action-cell { position:absolute; top:13px; right:13px; }
}

@media (max-width:700px) {
  .client-update-filter-primary,
  .client-update-more-filter-grid,
  .client-update-form-grid { grid-template-columns:minmax(0,1fr); }
  .client-update-filter-primary > .button,
  .client-update-form-grid .wide { grid-column:auto; }
  .client-update-filter-primary > .button,
  .client-update-more-filter-grid > .button { width:100%; justify-content:center; }
  .client-update-list-heading { align-items:stretch; flex-direction:column; }
  .client-update-export-actions { justify-content:flex-start; }
  .client-update-export-actions .button { flex:1 1 140px; }
  .client-update-detail-panel { width:100vw; }
  .client-update-panel-actions .spacer { display:none; }
  .client-update-panel-actions > .button,
  .client-update-panel-actions form { flex:1 1 140px; }
  .client-update-panel-actions form .button { width:100%; }
  .client-update-facts { grid-template-columns:100px minmax(0,1fr); }
  .portal-client-update-list thead { display:none; }
  .portal-client-update-list table,
  .portal-client-update-list tbody { display:block; width:100%; }
  .portal-client-update-list tr { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 12px; padding:12px; border-bottom:1px solid var(--line); }
  .portal-client-update-list tr:last-child { border-bottom:0; }
  .portal-client-update-list td { display:block; padding:0; border:0; }
  .portal-client-update-list td:first-child { grid-column:1 / -1; }
  .portal-client-update-list td:last-child { grid-row:2 / span 2; grid-column:2; align-self:center; }
}

@media (max-width:480px) {
  .client-update-summary { gap:7px; }
  .client-update-summary-card { padding:11px; }
  .client-update-summary-card strong { font-size:20px; }
  .client-update-table tbody tr { grid-template-columns:minmax(0,1fr); padding-right:72px; }
  .client-update-title-cell { grid-column:auto; }
  .client-update-facts { grid-template-columns:minmax(0,1fr); gap:3px; }
  .client-update-facts dd { margin-bottom:8px; }
  .client-update-dialog { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; margin:0; border-radius:0; }
  .client-update-dialog > form { height:100%; max-height:100dvh; }
  .client-update-dialog .dialog-foot { flex-wrap:wrap; }
  .client-update-dialog .dialog-foot .button { flex:1 1 120px; }
}

@media print {
  .client-update-panel-actions,
  .client-update-review-box,
  .client-update-delete-box,
  .client-update-share-link { display:none !important; }
  .client-update-preview { border:0; }
  .client-update-preview > summary { display:none; }
  .client-update-preview-body { padding:0; }
}

/* Keep the Client Updates filter grid inside laptop-width staff layouts where
   the persistent sidebar reduces the available content width. */
@media (max-width: 980px) and (min-width: 701px) {
  .client-update-filter-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-update-filter-primary > .search { grid-column: 1 / -1; }
  .client-update-filter-primary > .button { grid-column: 1 / -1; justify-self: start; }
}

/* =====================================================================
   v2.24.71 — one minimal system for the remaining workspaces
   The user's manually edited typography and spacing above remain the base.
   ===================================================================== */

/* Shared minimal shell */
.minimal-workspace,
.minimal-admin-workspace { width:100%; min-width:0; }
.content:has(.minimal-workspace),
.content:has(.minimal-admin-workspace),
.content:has(.minimal-primary-list),
.content:has(.portal-minimal-home) { max-width:1320px; }

.minimal-hero { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; padding:16px 18px; border:1px solid var(--line); border-radius:10px; background:var(--page); }
.minimal-hero > div { min-width:0; }
.minimal-hero h2 { margin:2px 0 3px; font-size:20px; line-height:1.3; overflow-wrap:anywhere; }
.minimal-hero p { margin:0; color:var(--muted); overflow-wrap:anywhere; }
.minimal-hero > strong { flex:none; font-size:26px; line-height:1; font-variant-numeric:tabular-nums; }
.minimal-kicker { display:block; color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; }

.minimal-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:0; margin:0 0 16px; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:var(--page); }
.minimal-summary > a,
.minimal-summary > span,
.minimal-summary > div { min-width:0; padding:12px 14px; border-left:1px solid var(--line); color:inherit; }
.minimal-summary > :first-child { border-left:0; }
.minimal-summary > a:hover,
.minimal-summary > a.is-active { background:var(--canvas); }
.minimal-summary span,
.minimal-summary small { display:block; color:var(--muted); font-size:11px; line-height:1.35; overflow-wrap:anywhere; }
.minimal-summary strong,
.minimal-summary b { display:block; margin-top:3px; font-size:21px; font-weight:650; line-height:1.2; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.minimal-summary .number-card { border:0; border-radius:0; padding:12px 14px; margin:0; }

.minimal-filter-bar { display:flex; flex-wrap:wrap; align-items:end; gap:9px; min-width:0; margin-bottom:14px; padding:11px; border:1px solid var(--line); border-radius:10px; background:var(--canvas); }
.minimal-filter-bar > label,
.minimal-filter-bar > .field { display:grid; gap:4px; min-width:130px; margin:0; color:var(--muted); font-size:11px; font-weight:650; }
.minimal-filter-bar > label > input,
.minimal-filter-bar > label > select,
.minimal-filter-bar > .field input,
.minimal-filter-bar > .field select,
.minimal-filter-bar > input,
.minimal-filter-bar > select { width:100%; min-width:0; }
.minimal-filter-bar .search,
.minimal-filter-bar .minimal-search { flex:1 1 230px; min-width:180px; max-width:none; }
.minimal-filter-bar .dates { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.minimal-filter-bar .dates input { width:145px; }
.minimal-filter-bar .button { flex:none; }

.minimal-filter-card { margin-bottom:14px; }
.minimal-filter-card > header { padding:10px 14px; }
.minimal-filter-card .box-pad { padding:14px; }

.minimal-primary-list { min-width:0; overflow:hidden; margin-bottom:16px; border:1px solid var(--line); border-radius:10px; background:var(--page); }
.minimal-primary-list > header,
.minimal-list-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; padding:11px 14px; border-bottom:1px solid var(--line); background:var(--canvas); }
.minimal-list-heading > div { min-width:0; }
.minimal-list-heading h2,
.minimal-primary-list > header h2 { margin:0; font-size:13px; font-weight:650; overflow-wrap:anywhere; }
.minimal-list-heading p,
.minimal-list-heading span,
.minimal-primary-list > header span { display:block; margin:2px 0 0; color:var(--muted); font-size:11px; line-height:1.4; overflow-wrap:anywhere; }
.minimal-list-heading > strong { flex:none; font-size:18px; font-variant-numeric:tabular-nums; }
.minimal-table-wrap { width:100%; max-width:100%; overflow-x:auto; }
.minimal-table { width:100%; min-width:680px; border-collapse:collapse; table-layout:auto; }
.minimal-table th,
.minimal-table td { min-width:0; padding:9px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:middle; overflow-wrap:anywhere; }
.minimal-table thead th { color:var(--muted); background:var(--page); font-size:10.5px; font-weight:650; letter-spacing:.025em; text-transform:uppercase; white-space:nowrap; }
.minimal-table tbody tr:last-child td { border-bottom:0; }
.minimal-table tbody tr:hover { background:#fafafa; }
.minimal-table .name { font-weight:650; }
.minimal-table .sub { display:block; margin-top:2px; color:var(--muted); font-size:11px; line-height:1.4; white-space:normal; }
.minimal-row-action { width:1%; text-align:right !important; white-space:nowrap; }
.minimal-list-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:10px 14px; border-top:1px solid var(--line); }
.minimal-list-footer > .hint { margin:0; }
.minimal-list-footer .pagination,
.minimal-list-footer .pager { margin:0; }
.minimal-empty { border:0; border-radius:0; }
.minimal-progress { display:grid; gap:4px; min-width:90px; }
.minimal-progress strong { font-size:11px; }
.minimal-progress .bar { width:100%; height:5px; }
.minimal-two-column { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:start; }

/* Collapsed secondary information */
.minimal-secondary { min-width:0; margin:0 0 14px; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:var(--page); }
.minimal-secondary > summary { display:flex; align-items:center; gap:8px; min-height:42px; padding:10px 14px; cursor:pointer; list-style:none; font-size:13px; font-weight:650; }
.minimal-secondary > summary::-webkit-details-marker { display:none; }
.minimal-secondary > summary::after { content:"Show"; margin-left:auto; color:var(--muted); font-size:10px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; }
.minimal-secondary[open] > summary { border-bottom:1px solid var(--line); background:var(--canvas); }
.minimal-secondary[open] > summary::after { content:"Hide"; }
.minimal-secondary > div,
.minimal-secondary-body { min-width:0; padding:14px; }
.minimal-secondary .card,
.minimal-secondary .box { margin-bottom:12px; }
.minimal-secondary .card:last-child,
.minimal-secondary .box:last-child { margin-bottom:0; }

/* One compact selector instead of wide tab bars */
.workspace-selector-row,
.report-minimal-head,
.finance-selector-row,
.people-selector-row,
.hr-operation-selector-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 14px; min-width:0; }
.workspace-selector,
.report-selector { position:relative; min-width:230px; max-width:100%; }
.workspace-selector > summary,
.report-selector > summary { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; min-height:38px; padding:7px 10px; border:1px solid var(--line); border-radius:9px; background:var(--page); cursor:pointer; list-style:none; }
.workspace-selector > summary::-webkit-details-marker,
.report-selector > summary::-webkit-details-marker { display:none; }
.workspace-selector > summary > span,
.report-selector > summary > span { color:var(--muted); font-size:11px; }
.workspace-selector > summary > strong,
.report-selector > summary > strong { min-width:0; overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.workspace-selector > summary::after,
.report-selector > summary::after { content:"⌄"; color:var(--muted); }
.workspace-selector[open] > summary::after,
.report-selector[open] > summary::after { content:"⌃"; }
.workspace-selector nav,
.report-selector > div { position:absolute; z-index:35; top:calc(100% + 5px); left:0; display:grid; min-width:250px; max-width:min(360px,calc(100vw - 28px)); max-height:65vh; overflow-y:auto; padding:5px; border:1px solid var(--line); border-radius:10px; background:var(--page); box-shadow:0 14px 36px rgba(0,0,0,.14); }
.workspace-selector nav a,
.report-selector > div a { display:flex; align-items:center; gap:8px; min-height:34px; padding:7px 9px; border-radius:7px; font-size:12px; }
.workspace-selector nav a:hover,
.workspace-selector nav a.is-current,
.report-selector > div a:hover,
.report-selector > div a.is-current { background:var(--fill); }
.report-period-label { color:var(--muted); font-size:12px; }

/* Client portal and request communication */
.portal-home-hero { align-items:stretch; }
.portal-home-summary { flex:0 1 600px; margin:0; }
.portal-project-table { min-width:780px; }
.portal-project-table .person { min-width:180px; }
.portal-project-nav { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 14px; padding:9px 11px; border:1px solid var(--line); border-radius:9px; background:var(--canvas); }
.portal-project-current span,
.portal-project-current strong { display:block; }
.portal-project-current span { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.04em; }
.portal-project-current strong { margin-top:2px; font-size:12px; }
.portal-project-menu { position:relative; }
.portal-project-menu > summary { display:flex; align-items:center; gap:6px; min-height:32px; padding:0 10px; border-radius:7px; background:var(--fill); cursor:pointer; list-style:none; font-weight:600; }
.portal-project-menu > summary::-webkit-details-marker { display:none; }
.portal-project-menu > div { position:absolute; z-index:30; top:calc(100% + 5px); right:0; display:grid; min-width:220px; max-height:65vh; overflow:auto; padding:5px; border:1px solid var(--line); border-radius:9px; background:var(--page); box-shadow:0 12px 30px rgba(0,0,0,.13); }
.portal-project-menu a { display:flex; align-items:center; gap:8px; min-height:33px; padding:6px 8px; border-radius:6px; font-size:12px; }
.portal-project-menu a:hover,
.portal-project-menu a.is-current { background:var(--fill); }
.portal-latest-details > .updates { padding:4px 0; }

.client-request-summary { margin-bottom:14px; }
.client-request-filters .search { flex:1 1 320px; }
.client-request-table { min-width:900px; }
.client-request-table tr.is-unread td:first-child { box-shadow:inset 3px 0 0 var(--brand); }
.shared-file-table { min-width:760px; }
.shared-file-table .name { display:inline-flex; align-items:center; gap:6px; }
.minimal-upload-bar { display:flex; flex-wrap:wrap; align-items:center; gap:9px 12px; margin-bottom:14px; padding:12px 14px; border:1px dashed var(--line-strong); border-radius:10px; background:var(--canvas); }
.minimal-upload-bar > div { flex:1 1 280px; min-width:0; }
.minimal-upload-bar > div strong,
.minimal-upload-bar > div span { display:block; }
.minimal-upload-bar > div span { margin-top:2px; color:var(--muted); font-size:11px; }
.minimal-upload-bar .upload-bar { flex-basis:100%; }
.minimal-request-summary { padding:14px 16px; }
.minimal-request-summary .request-top { margin-bottom:9px; }
.minimal-conversation { overflow:hidden; }
.minimal-conversation > header { padding:10px 14px; }
.minimal-conversation .thread { max-height:54vh; overflow-y:auto; }

/* Approval workspaces */
.approvals-filter { max-width:560px; }
.approval-table { min-width:720px; }
.approval-item { display:grid; grid-template-columns:42px minmax(0,1fr); align-items:center; gap:9px; min-width:190px; }
.approval-item img,
.approval-file-icon { display:grid; place-items:center; width:42px; height:34px; border:1px solid var(--line); border-radius:6px; object-fit:cover; background:var(--canvas); }
.approval-item strong,
.approval-item small { display:block; overflow-wrap:anywhere; }
.approval-item small { margin-top:2px; color:var(--muted); font-size:10px; }
.approval-layout { grid-template-columns:minmax(0,1fr) minmax(250px,320px); }
.approval-main .version.is-old { opacity:1; }
.approval-main .version.is-old .box-pad { padding-top:10px; }

/* Reports and finance */
.report-minimal-head { padding:0; }
.report-cards.minimal-summary,
.web-stats.minimal-summary,
.finance-summary { grid-template-columns:repeat(auto-fit,minmax(135px,1fr)); }
.report-filters { margin-bottom:14px; }
.report-filters .count { margin-left:auto; }
.report-filters .dates { display:flex; }
.report-filters .dates input { min-width:130px; }
.report-list,
#report-attendance,
#report-projects,
#estimates { border-radius:10px; }
.finance-selector-row { justify-content:flex-start; }
.billing-filter { min-width:0; }
.inv-actions .results-actions,
.billing-filter,
.proposal-actions { gap:8px; }
.finance-summary + .box,
.minimal-summary + .box { margin-top:0; }
.payroll-guide.minimal-secondary { margin-bottom:14px; }

/* HR, recruitment, documents, warning letters and alerts */
.people-selector-row,
.hr-operation-selector-row { justify-content:flex-start; }
.hr-ops-stats.minimal-summary { grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); }
.hr-ops-stats.minimal-summary > a { border:0; border-left:1px solid var(--line); border-radius:0; background:transparent; }
.hr-ops-stats.minimal-summary > a:first-child { border-left:0; }
.hr-ops-filters.minimal-filter-bar { display:grid; grid-template-columns:minmax(190px,2fr) repeat(3,minmax(120px,1fr)) auto; }
.hr-ops-filter-actions { align-self:end; }
.hr-ops-table { min-width:680px; }
.staff-notice-table { min-width:650px; }
.ats-workspace { max-width:none; margin:0; }
.ats-filters.minimal-filter-bar { display:grid; grid-template-columns:minmax(220px,1.6fr) minmax(160px,.8fr) auto; }
.ats-table { min-width:680px; }
.repository-filters { padding:0; }
.repository-table { min-width:900px; table-layout:auto; }
.warning-filters { padding:0; }
.warning-list { min-width:650px; }
.work-alert-table { min-width:850px; }
.work-alert-table td:first-child { min-width:260px; }

/* Project tools */
.project-hours-summary { grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); }
.project-hours-summary > a,
.project-hours-summary > span { display:block; }
#milestones.minimal-primary-list { overflow:visible; }
#timeline.minimal-secondary { overflow:visible; }
#timeline .minimal-secondary-body { padding:0; }
#timeline .g-key { padding:12px 14px; }
.project-tools { margin-bottom:12px; }

/* Templates, recurring tasks and audit */
#templates .list,
#recurring .list { border:0; border-radius:0; }
#templates table,
#recurring table { min-width:700px; }
.activity-table { min-width:800px; }
.activity-table td:nth-child(3) { min-width:300px; }
.activity-details { margin-top:4px; }
.activity-details summary { color:var(--muted); cursor:pointer; font-size:11px; }
.activity-details div { margin-top:5px; padding:7px 9px; border-radius:6px; background:var(--canvas); font-size:11px; }

/* Account, settings, integrations and technical administration */
.account-secondary .card { padding:16px; }
.account-secondary .card-head { margin-bottom:12px; }
.minimal-admin-workspace { max-width:1120px; }
.minimal-admin-workspace > .sub-nav { display:none; }
.minimal-admin-workspace > .card,
.minimal-admin-workspace > form > .card,
.minimal-admin-workspace > .box,
.minimal-admin-workspace > section.card { margin-bottom:14px; padding:16px; }
.minimal-admin-workspace .card-head { margin-bottom:12px; }
.minimal-admin-workspace .card-head h2 { font-size:14px; }
.minimal-admin-workspace .page-intro { max-width:none; padding:11px 13px; border:1px solid var(--line); border-radius:8px; background:var(--canvas); }
.minimal-admin-workspace .report-cards { grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); }
.minimal-admin-workspace .steps { line-height:1.5; }
.minimal-admin-workspace .launch-workflow-grid { gap:10px; }
.minimal-admin-workspace .launch-workflow-card { padding:14px; }
.minimal-admin-workspace .launch-workflow-card p { min-height:0; }
.settings-secondary .card { padding:15px; }
.settings-secondary .card-head { margin-bottom:12px; }
.settings-selector { min-width:270px; }

/* Ensure primary actions never leave their container */
.minimal-workspace .button,
.minimal-admin-workspace .button,
.workspace-selector .button,
.report-selector .button { max-width:100%; }
.minimal-workspace .form-actions,
.minimal-admin-workspace .form-actions,
.minimal-workspace .row-actions { flex-wrap:wrap; }
.minimal-workspace img,
.minimal-admin-workspace img,
.minimal-workspace video,
.minimal-admin-workspace video { max-width:100%; }

@media (max-width:1100px) {
  .portal-home-hero { align-items:stretch; flex-direction:column; }
  .portal-home-summary { flex:none; width:100%; }
  .minimal-two-column { grid-template-columns:minmax(0,1fr); }
  .hr-ops-filters.minimal-filter-bar { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hr-ops-filter-actions { grid-column:1 / -1; }
  .ats-filters.minimal-filter-bar { grid-template-columns:minmax(0,1fr) minmax(160px,.7fr) auto; }
}

@media (max-width:860px) {
  .minimal-hero { align-items:flex-start; }
  .minimal-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .minimal-summary > :nth-child(odd) { border-left:0; }
  .minimal-summary > :nth-child(n+3) { border-top:1px solid var(--line); }
  .minimal-filter-bar { align-items:stretch; }
  .minimal-filter-bar > label,
  .minimal-filter-bar > .field,
  .minimal-filter-bar > select,
  .minimal-filter-bar > input { flex:1 1 180px; }
  .minimal-filter-bar .search,
  .minimal-filter-bar .minimal-search { flex-basis:100%; }
  .minimal-table { min-width:620px; }
  .minimal-list-heading { align-items:flex-start; flex-wrap:wrap; }
  .minimal-row-action .button { min-height:32px; }
  .workspace-selector-row,
  .report-minimal-head,
  .finance-selector-row,
  .people-selector-row,
  .hr-operation-selector-row { align-items:stretch; }
  .workspace-selector,
  .report-selector { width:100%; min-width:0; }
  .workspace-selector nav,
  .report-selector > div { position:static; min-width:0; max-width:none; margin-top:5px; box-shadow:none; }
  .portal-project-nav { align-items:stretch; }
  .portal-project-menu > div { position:fixed; left:14px; right:14px; top:72px; min-width:0; max-height:70vh; }
  .report-period-label { align-self:center; }
  .approval-layout { grid-template-columns:minmax(0,1fr); }
  .hr-ops-filters.minimal-filter-bar,
  .ats-filters.minimal-filter-bar { grid-template-columns:minmax(0,1fr); }
  .hr-ops-filter-actions { grid-column:auto; }
  .minimal-admin-workspace .cols.even { grid-template-columns:minmax(0,1fr); }
}

@media (max-width:620px) {
  .minimal-hero { flex-direction:column; padding:13px; }
  .minimal-hero > strong { font-size:22px; }
  .minimal-filter-bar { display:grid; grid-template-columns:minmax(0,1fr); padding:10px; }
  .minimal-filter-bar > label,
  .minimal-filter-bar > .field,
  .minimal-filter-bar > .search,
  .minimal-filter-bar > .minimal-search,
  .minimal-filter-bar > select,
  .minimal-filter-bar > input,
  .minimal-filter-bar > .button { width:100%; min-width:0; }
  .minimal-filter-bar .dates { display:grid; grid-template-columns:minmax(0,1fr); width:100%; }
  .minimal-filter-bar .dates input { width:100%; }
  .minimal-filter-bar .dates .sub { display:none; }
  .minimal-primary-list { border-radius:9px; }
  .minimal-list-heading { padding:10px 12px; }
  .minimal-list-footer { align-items:stretch; padding:10px 12px; }
  .minimal-list-footer .pagination { width:100%; }
  .minimal-secondary > summary { min-height:44px; padding:10px 12px; }
  .minimal-secondary > div,
  .minimal-secondary-body { padding:12px; }
  .portal-project-nav { display:grid; grid-template-columns:minmax(0,1fr) auto; }
  .client-request-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .minimal-upload-bar { align-items:stretch; }
  .minimal-upload-bar .attach,
  .minimal-upload-bar > .button { width:100%; justify-content:center; }
  .minimal-conversation .thread { max-height:none; }
  .report-filters .count { width:100%; margin-left:0; }
  .report-period-label { display:none; }
  .hr-ops-stats.minimal-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hr-ops-stats.minimal-summary > a:nth-child(odd) { border-left:0; }
  .hr-ops-stats.minimal-summary > a:nth-child(n+3) { border-top:1px solid var(--line); }
  .minimal-admin-workspace > .card,
  .minimal-admin-workspace > form > .card,
  .minimal-admin-workspace > .box { padding:13px; }
}

@media (max-width:430px) {
  .minimal-summary { grid-template-columns:minmax(0,1fr); }
  .minimal-summary > * { border-left:0 !important; border-top:1px solid var(--line); }
  .minimal-summary > :first-child { border-top:0; }
  .portal-home-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .portal-home-summary > :nth-child(2) { border-top:0; border-left:1px solid var(--line) !important; }
  .portal-home-summary > :nth-child(3) { border-top:1px solid var(--line); }
  .portal-home-summary > :nth-child(4) { border-left:1px solid var(--line) !important; }
  .portal-project-nav { grid-template-columns:minmax(0,1fr); }
  .portal-project-menu > summary { justify-content:center; }
  .client-request-summary { grid-template-columns:minmax(0,1fr); }
  .hr-ops-stats.minimal-summary { grid-template-columns:minmax(0,1fr); }
  .workspace-selector > summary,
  .report-selector > summary { grid-template-columns:auto minmax(0,1fr) auto; }
}

@media print {
  .workspace-selector-row,
  .report-minimal-head,
  .minimal-filter-bar,
  .minimal-list-footer,
  .portal-project-nav { display:none !important; }
  .minimal-primary-list,
  .minimal-secondary { border-color:#ccc; }
}

/* Keep direct filter controls compact on desktop; labels continue to size their own fields. */
@media (min-width: 621px) {
  .minimal-filter-bar > select,
  .minimal-filter-bar > input:not([type="hidden"]) {
    flex: 0 1 190px;
    width: auto;
  }
  .minimal-filter-bar > input[type="date"] { flex-basis: 150px; }
}

/* Client communication tables become compact records on phones. */
@media (max-width: 620px) {
  .client-request-table,
  .client-request-table tbody,
  .portal-request-table,
  .portal-request-table tbody,
  .shared-file-table,
  .shared-file-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .client-request-table thead,
  .portal-request-table thead,
  .shared-file-table thead { display: none; }
  .client-request-table tbody tr,
  .portal-request-table tbody tr,
  .shared-file-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
  }
  .client-request-table tbody tr:last-child,
  .portal-request-table tbody tr:last-child,
  .shared-file-table tbody tr:last-child { border-bottom: 0; }
  .client-request-table tbody td,
  .portal-request-table tbody td,
  .shared-file-table tbody td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .client-request-table tbody td:first-child,
  .portal-request-table tbody td:first-child,
  .shared-file-table tbody td:first-child {
    grid-column: 1 / -1;
    padding-right: 62px;
  }
  .client-request-table tbody td[data-label]::before,
  .portal-request-table tbody td[data-label]::before,
  .shared-file-table tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 650;
    letter-spacing: .035em;
    text-transform: uppercase;
  }
  .client-request-table .minimal-row-action,
  .portal-request-table .minimal-row-action,
  .shared-file-table .minimal-row-action {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  .shared-file-table .minimal-row-action { display: flex; gap: 4px; }
  .client-request-table .person,
  .shared-file-table .person { white-space: normal; }
}

@media (max-width: 390px) {
  .client-request-table tbody tr,
  .portal-request-table tbody tr,
  .shared-file-table tbody tr { grid-template-columns: minmax(0, 1fr); }
  .client-request-table tbody td:first-child,
  .portal-request-table tbody td:first-child,
  .shared-file-table tbody td:first-child { grid-column: auto; }
}

@media (max-width: 620px) {
  .client-request-table .minimal-row-action,
  .portal-request-table .minimal-row-action,
  .shared-file-table .minimal-row-action {
    width: auto !important;
    min-width: max-content;
    overflow: visible;
  }
}

/* v2.24.72: one record-count control for every server-paginated directory. */
.ajax-page-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.ajax-page-size select {
  width: auto;
  min-width: 64px;
  height: 30px;
  padding: 0 26px 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background-color: var(--page);
  font-size: 12px;
  font-weight: 600;
}
.ajax-page-size-links { color: var(--muted); font-size: 11px; }
.ajax-page-size-links a { margin-left: 5px; text-decoration: underline; text-underline-offset: 2px; }
.ajax-page-size-links a[aria-current="page"] { color: var(--text); font-weight: 700; }
@media (max-width: 600px) {
  .ajax-pagination { justify-content: center; }
  .ajax-page-size { flex: 1 1 100%; justify-content: center; margin-left: 0; }
}


/* SEO task proof: keep submission details readable inside the task panel. */
#task-panel .status-row.seo-task-submit,
.task-page .status-row.seo-task-submit { align-items: stretch; }
.seo-task-proof { flex: 1 0 100%; width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2, #f8fafc); }
.seo-task-proof-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.seo-task-proof-head > div { display:grid; gap:2px; }
.seo-task-proof-head span:not(.tag) { font-size:12px; color:var(--muted); }
.seo-task-proof-fields { margin:0; }
@media (max-width: 700px) { .seo-task-proof-head { align-items:flex-start; flex-direction:column; } }

/* Project-specific member jobs */
.project-member-job{display:grid;gap:4px;margin-top:8px;max-width:360px}.project-member-job>span{font-size:11px;font-weight:700;color:var(--muted,#64748b)}.project-member-job input{width:100%;min-height:34px;padding:7px 10px;border:1px solid var(--line,#dfe4ea);border-radius:9px;background:#fff}.pj-project-team{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.pj-project-person{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line,#e5e7eb);border-radius:12px;background:var(--card,#fff)}.pj-project-person>span:last-child{display:grid;gap:2px;min-width:0}.pj-project-person b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pj-project-person small{font-size:12px;color:var(--muted,#64748b)}

/* Project member JD editor */
.pj-project-person-job{display:grid;grid-template-columns:auto minmax(150px,1fr) minmax(280px,auto);align-items:center;gap:12px}
.pj-project-person-copy{min-width:0}.pj-project-person-copy small.is-unset{color:var(--muted);font-style:italic}
.pj-job-edit{display:flex;align-items:center;gap:8px;min-width:0}.pj-job-edit input{min-width:180px;width:240px;max-width:100%}
.project-member-chip-job>span{display:flex;flex-direction:column;line-height:1.15}.project-member-chip-job small{font-size:11px;color:var(--muted);margin-top:3px}
@media(max-width:900px){.pj-project-person-job{grid-template-columns:auto 1fr}.pj-job-edit{grid-column:1/-1}.pj-job-edit input{width:100%;flex:1}}


/* Project-specific responsibility labels (v2.51.8). */
.person .sub,[data-project-job]{display:block;font-size:11px;line-height:1.25;color:var(--muted,#667085);font-weight:500;margin-top:2px}
.tp-wide b>span{display:inline-flex;flex-direction:column;vertical-align:middle;margin-left:4px}
.tp-wide b>span .sub{margin-top:1px}
