:root {
  /* shadcn-ish tokens (light) */
  --page-bg: #ffffff;
  --panel: #ffffff;
  --panel2: #f5f5f5;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #f6c700;
  --link: #2563eb;
  --mention: #c76a12;
  --mention-soft: rgba(199,106,18,0.12);
  --danger: #dc2626;
  --border: rgba(15, 23, 42, 0.12);
  --ring: rgba(37, 99, 235, 0.35);
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.10);

  --subtle-bg: rgba(15, 23, 42, 0.04);
  --overlay-bg: rgba(15, 23, 42, 0.70);
  --overlay-bg-soft: rgba(15, 23, 42, 0.45);

  --glass-bg-soft: rgba(255,255,255,0.5);
  --glass-bg-muted: rgba(255,255,255,0.55);
  --glass-bg: rgba(255,255,255,0.65);
  --glass-bg-hover: rgba(255,255,255,0.9);
  --glass-bg-strong: rgba(255,255,255,0.92);
  --glass-border: rgba(15, 23, 42, 0.12);
  --glass-border-strong: rgba(15, 23, 42, 0.22);

  --btn-bg: #0f172a;
  --btn-bg-hover: #111c33;
  --btn-text: #ffffff;
  --btn-success-bg: #16a34a;
  --btn-success-hover: #15803d;
  --btn-success-text: #ffffff;

  --alert-danger-bg: rgba(220,38,38,0.08);
  --alert-danger-border: rgba(220,38,38,0.35);
  --alert-danger-text: #7f1d1d;

  --alert-success-bg: rgba(22,163,74,0.08);
  --alert-success-border: rgba(22,163,74,0.35);
  --alert-success-text: #14532d;

  --liked: #1d4ed8;

  --radius-lg: 18px;
  --radius-xl: 22px;

  --header-inner-h: 56px;
  --header-h: 84px;
  --sidebar-w: 260px;
  --page-max: 1200px;

  --corp-bg: var(--panel);
  --corp-text: var(--text);
  --corp-muted: var(--muted);
  --corp-border: rgba(15, 23, 42, 0.10);

  --menu-bg: var(--panel);
  --menu-hover: rgba(15, 23, 42, 0.05);

  --bg-glow: none;
}

html { color-scheme: light; }

html[data-theme="dark"] {
  color-scheme: dark;

  --page-bg: #0b1220;
  --panel: #0f172a;
  --panel2: #111c33;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --link: #93c5fd;
  --mention: #f5b36b;
  --mention-soft: rgba(245,179,107,0.18);
  --danger: #ef4444;
  --border: rgba(148,163,184,0.22);
  --ring: rgba(96,165,250,0.55);
  --shadow: 0 16px 40px rgba(0,0,0,0.55);
  --shadow-sm: 0 6px 18px rgba(0,0,0,0.45);

  --subtle-bg: rgba(148,163,184,0.08);
  --overlay-bg: rgba(0,0,0,0.72);
  --overlay-bg-soft: rgba(0,0,0,0.55);

  --glass-bg-soft: rgba(15,23,42,0.55);
  --glass-bg-muted: rgba(15,23,42,0.50);
  --glass-bg: rgba(15,23,42,0.62);
  --glass-bg-hover: rgba(15,23,42,0.82);
  --glass-bg-strong: rgba(15,23,42,0.88);
  --glass-border: rgba(148,163,184,0.22);
  --glass-border-strong: rgba(148,163,184,0.32);

  --btn-bg: #2563eb;
  --btn-bg-hover: #1d4ed8;
  --btn-text: #ffffff;
  --btn-success-bg: #22c55e;
  --btn-success-hover: #16a34a;
  --btn-success-text: #ffffff;

  --alert-danger-bg: rgba(248,113,113,0.14);
  --alert-danger-border: rgba(248,113,113,0.35);
  --alert-danger-text: #fecaca;

  --alert-success-bg: rgba(34,197,94,0.14);
  --alert-success-border: rgba(34,197,94,0.35);
  --alert-success-text: #bbf7d0;

  --liked: #93c5fd;

  --corp-bg: rgba(15,23,42,0.78);
  --corp-border: rgba(148,163,184,0.18);
  --menu-bg: rgba(15,23,42,0.78);
  --menu-hover: rgba(148,163,184,0.12);

  --bg-glow: radial-gradient(1200px 680px at 12% 0%, rgba(59,130,246,0.22), transparent 58%);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--page-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg-glow);
  pointer-events: none;
  z-index: -1;
  transform: translateZ(0);
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

#corpheader {
  background: transparent;
  color: var(--corp-text);
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 1300;
  height: var(--header-h);
  padding: 14px 14px;
}
.corpheader__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-inner-h);
  padding: 0 16px;
  gap: 14px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--corp-border);
  background: var(--corp-bg);
  box-shadow: none;
  min-width: 0;
}
.corpheader__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--corp-text);
  text-decoration: none;
  font-weight: 950;
  letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; }
.brand__logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.brand__logo--circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.brand__logo--dark { display: none; }
html[data-theme="dark"] .brand__logo--light { display: none; }
html[data-theme="dark"] .brand__logo--dark { display: block; }
.brand__text {
  display: inline-flex;
  align-items: center;
  height: 28px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(1px);
}
.corpheader__sites {
  position: relative;
  display: flex;
  align-items: center;
}
.top-menu,
a.top-menu,
.sites-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--corp-muted);
  font-size: 12px;
  text-decoration: none;
  border: 1px solid var(--corp-border);
  background: var(--glass-bg-soft);
  padding: 6px 8px;
  border-radius: 999px;
  font-weight: 800;
}
a.top-menu:hover {
  text-decoration: none;
  color: var(--corp-text);
  background: var(--glass-bg-hover);
}
.top-menu:focus-visible,
.sites-trigger:focus-visible,
.sites-card a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.top-menu__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #111;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.top-action-pill {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #22c55e;
  background: #dcfce7;
  color: #166534;
}
.top-action-pill__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  color: inherit;
  background: transparent;
}
.top-action-pill__item:hover {
  text-decoration: none;
  background: #bbf7d0;
  color: #14532d;
}
.top-action-pill__item:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
}
.top-action-pill__divider {
  width: 1px;
  background: rgba(22, 101, 52, 0.22);
}
html[data-theme="dark"] .top-action-pill {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.45);
  color: #bbf7d0;
}
html[data-theme="dark"] .top-action-pill__item:hover {
  background: rgba(34, 197, 94, 0.28);
  color: #dcfce7;
}
html[data-theme="dark"] .top-action-pill__divider {
  background: rgba(187, 247, 208, 0.22);
}
@media (max-width: 360px) {
  .top-action-pill__item { padding: 6px 6px; gap: 5px; font-size: 11px; }
  .top-action-pill .top-menu__count { min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
}
.sites-trigger {
  cursor: pointer;
}
.sites-card {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  min-width: 180px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}
.sites-card.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 160ms ease, transform 160ms ease;
}
.sites-card a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--corp-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}
.sites-card a:hover {
  background: var(--glass-bg-hover);
}


.corpheader__right {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  min-width: 0;
}
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}
.user-chip {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--brand);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.user-chip:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-1px);
}
.user-chip:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.user-menu-card {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 200px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}
.user-menu-card.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 160ms ease, transform 160ms ease;
}
.user-menu-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.user-menu-card__name {
  font-weight: 900;
  font-size: 13px;
  color: var(--text);
}
.user-menu-card__link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel2);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.user-menu-card__link:hover {
  text-decoration: none;
  border-color: var(--glass-border-strong);
  background: var(--subtle-bg);
}
.user-menu-card__link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.user-menu-card__link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: 0 0 auto;
}
.user-menu-card__link-icon-svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.user-menu-card .btn {
  width: 100%;
  justify-content: center;
}
.summary-link {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--corp-text);
  font-size: 13px;
  font-weight: 900;
  border-radius: 12px;
}
.summary-link:hover { text-decoration: none; background: var(--glass-bg-hover); }
.summary-link:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--corp-muted);
  line-height: 1;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
a.icon-btn:hover { text-decoration: none; }
.icon-btn:hover { background: var(--glass-bg-hover); color: var(--corp-text); }
.icon-btn--danger { color: var(--danger); }
.icon-btn--danger:hover { background: rgba(220,38,38,0.10); color: var(--danger); }
.icon-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.icon-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.icon-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.row-link { cursor: pointer; }
.row-link:hover { background: var(--glass-bg-hover); }
.row-link__cell {
  display: block;
  color: inherit;
  text-decoration: none;
}
.row-link__cell:hover { text-decoration: none; }

.emoji-pop {
  position: absolute;
  z-index: 9998;
  width: 272px;
  max-width: calc(100vw - 24px);
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
}
.emoji-pop.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 140ms ease, transform 140ms ease;
}
.emoji-pop__title { font-size: 12px; font-weight: 800; color: var(--muted); margin: 0 0 8px; }
.emoji-pop__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}
.emoji-pop__btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.emoji-pop__btn:hover { background: var(--glass-bg-hover); border-color: var(--glass-border); }
.emoji-pop__btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.like-group {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--glass-bg);
  color: var(--corp-muted);
  line-height: 1;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.like-group:hover { background: var(--glass-bg-hover); color: var(--corp-text); }
.like-group.is-liked {
  background: rgba(37,99,235,0.10);
  border-color: rgba(37,99,235,0.35);
  color: var(--liked);
}

.like-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  color: inherit;
  line-height: 1;
}
.like-toggle:disabled { opacity: 0.55; cursor: not-allowed; }
.like-toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.like-toggle__count {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-left: 1px solid var(--glass-border);
  font-weight: 800;
}
.like-toggle__count a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}
.like-toggle__count a:hover { text-decoration: underline; }
.like-group.is-liked .like-toggle__count { border-left-color: rgba(37,99,235,0.35); }
.likes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.likes-list__item {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.like-toggle__icon,
.icon-btn__icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes like-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

@keyframes like-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,99,235,0.35); }
  100% { box-shadow: 0 0 0 8px rgba(37,99,235,0); }
}

.like-toggle.is-animating .like-toggle__icon {
  animation: like-pop 260ms ease-out;
}
.like-group.is-animating {
  animation: like-pulse 380ms ease-out;
}

.theme-toggle .theme-icon { display: none; }
.theme-toggle .theme-icon--moon { display: block; }
html[data-theme="dark"] .theme-toggle .theme-icon--moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon--sun { display: block; }

.mobile-menu-trigger {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--glass-border-strong);
  background: var(--glass-bg);
  border-radius: 12px;
  padding: 0;
  font-size: 0;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--corp-text);
}
.mobile-menu-trigger__icon {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.mobile-menu-trigger:hover { background: var(--glass-bg-hover); }
.mobile-menu-trigger:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

#layout {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: calc(100vh - var(--header-h));
  gap: 14px;
  padding: 0 14px 18px;
  max-width: none;
  margin: 0;
}

#menu {
  width: var(--sidebar-w);
  background: var(--menu-bg);
  padding: 14px 12px;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: none;
}
#menu .menuitem {
  display: block;
  border-bottom: 0;
}
#menu .menuitem a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  transition: none;
}
#menu .menuitem a:hover { background: var(--menu-hover); }
#menu .menuitem a.is-active {
  background: rgba(246, 199, 0, 0.18);
  box-shadow: inset 3px 0 0 rgba(246, 199, 0, 0.95);
  font-weight: 900;
}

.menu-extlinks { display: none; }
.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}
.menu-caption {
  padding: 8px 12px 6px;
  font-size: 11px;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#bodycont {
  flex: 1;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  min-width: 0;
}
.page {
  max-width: var(--page-max);
  margin: 0;
  animation: page-enter 180ms ease;
}
.page--project {
  max-width: none;
  width: 100%;
}
.page--project-todos {
  max-width: none;
  width: 100%;
}
body.is-guest .page {
  margin-left: auto;
  margin-right: auto;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-message {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: 0.2px;
}
.welcome-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.welcome-row--narrow {
  width: 100%;
  max-width: 920px;
}

.welcome-row .welcome-message { margin: 0; }

.notification-info {
  font-size: 14px;
  margin: 8px 0 0;
  padding: 0;
  color: var(--muted);
  font-weight: 800;
}

.notif-layout {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.notif-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  padding: 12px;
}
.notif-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.notif-feed {
  display: grid;
  gap: 10px;
}
.notif-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel2);
  min-width: 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 72px;
}
.notif-row.is-read {
  opacity: 0.62;
}
.notif-row__main { min-width: 0; }
.notif-row__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.notif-row__title:hover { text-decoration: underline; }
.notif-row__title:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.notif-row__body {
  margin-top: 4px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}
.notif-row__time {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
@media (min-width: 980px) {
  .notif-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

@media (max-width: 720px) {
  .notif-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.page-title {
  font-size: 18px;
  font-weight: 900;
  margin: 22px 0 10px;
  padding: 0;
  color: var(--text);
  letter-spacing: 0.2px;
}

.comment-count {
  color: var(--muted);
  font-size: 13px;
  margin-left: 6px;
  font-weight: 700;
}

.comms-date {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.comms-table .col-dateupdated {
  white-space: nowrap;
  color: var(--muted);
  font-weight: 700;
}
.data-table.accounts-table { table-layout: fixed; }
.accounts-table thead th,
.accounts-table tbody td {
  padding: 6px 7px;
}
.accounts-table tbody td { overflow-wrap: break-word; word-break: break-word; }
.accounts-table td a { overflow-wrap: break-word; word-break: break-word; }
.accounts-table .col-contact { width: 240px; }
.accounts-table .col-count { width: 60px; }
.accounts-table .col-status { width: 196px; text-align: right; }
.accounts-table .row-actions-end {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.accounts-table .row-actions-end form {
  margin: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.accounts-table .account-name-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.accounts-table .row-actions-end .badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
}
.accounts-table .js-status-toggle-btn {
  min-width: 92px;
}
.account-todo-modal__form {
  display: grid;
  gap: 10px;
}
.account-todo-modal__target {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

body.menu-open::before {
  content: "";
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--overlay-bg-soft);
  z-index: 1200;
}

@media (max-width: 1100px) {
  .corpheader__sites { display: none; }
  .menu-extlinks { display: block; }

  .mobile-menu-trigger { display: inline-flex; }

  #menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    height: calc(100vh - var(--header-h));
    width: min(86vw, var(--sidebar-w));
    z-index: 1250;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: var(--shadow);
  }

  body.menu-open #menu { transform: translateX(0); }

  #layout { display: block; }
  #bodycont { padding: 18px 14px; }
  .page { max-width: none; }
  .project-layout {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin-right: 0;
  }
}
.bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--glass-border-strong);
  background: var(--glass-bg-muted);
  padding: 0;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.bell:hover { background: var(--glass-bg-strong); border-color: var(--glass-border-strong); }
.bell:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.bell__icon {
  width: 18px;
  height: 18px;
  fill: var(--text);
  opacity: 0.9;
}
.bell__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #111111;
  font-weight: 900;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  border: 2px solid var(--panel);
}
.bell__dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--danger);
  border: 2px solid var(--panel);
}

.notif { position: relative; }
.notif-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 24px);
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px;
  z-index: 1400;
  overflow: hidden;
  /* Header uses `white-space: nowrap`; override so long notification text can wrap. */
  white-space: normal;
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}
.notif-pop.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 160ms ease, transform 160ms ease;
}
.notif-pop__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.notif-pop__title {
  font-weight: 900;
  letter-spacing: 0.2px;
}
.notif-pop__viewall {
  color: var(--link);
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
}
.notif-pop__viewall:hover { text-decoration: underline; }
.notif-pop__viewall:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.notif-pop__empty {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.notif-pop__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
  min-width: 0;
}
.notif-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  max-width: 100%;
}
.notif-item + .notif-item { border-top: 1px solid var(--border); }
.notif-item:hover { background: var(--subtle-bg); }
.notif-item:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.notif-item__label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-item__count {
  flex: 0 0 auto;
  min-width: 28px;
  text-align: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(246,199,0,0.9);
  color: #111111;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid var(--glass-border);
  margin-left: auto;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.card--narrow {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.h1 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.muted { color: var(--muted); margin: 0; }

.u-m0 { margin: 0 !important; }
.u-block { display: block !important; }
.u-inline-form { display: inline; margin: 0; }
.u-flex { display: flex !important; }
.u-flex-wrap { flex-wrap: wrap !important; }
/* Keep hidden attributes authoritative even when classes set display. */
[hidden] { display: none !important; }
.u-gap-10 { gap: 10px !important; }

.u-mt-4 { margin-top: 4px !important; }
.u-mt-6 { margin-top: 6px !important; }
.u-mt-8 { margin-top: 8px !important; }
.u-mt-10 { margin-top: 10px !important; }
.u-mt-12 { margin-top: 12px !important; }
.u-mt-14 { margin-top: 14px !important; }
.u-mt-16 { margin-top: 16px !important; }
.u-mt-18 { margin-top: 18px !important; }
.u-ml-6 { margin-left: 6px !important; }
.u-ml-8 { margin-left: 8px !important; }
.u-mb-6 { margin-bottom: 6px !important; }
.u-mb-8 { margin-bottom: 8px !important; }
.u-mb-10 { margin-bottom: 10px !important; }
.u-mb-12 { margin-bottom: 12px !important; }
.u-mb-16 { margin-bottom: 16px !important; }
.u-mb-18 { margin-bottom: 18px !important; }
.u-pre-wrap { white-space: pre-wrap !important; }
.u-pre-line { white-space: pre-line !important; }
.u-fs-12 { font-size: 12px !important; }
.u-fs-13 { font-size: 13px !important; }
.u-fw-600 { font-weight: 600 !important; }
.u-fw-700 { font-weight: 700 !important; }
.u-fw-800 { font-weight: 800 !important; }

.prose h2 {
  margin: 18px 0 8px;
  font-size: 16px;
  letter-spacing: 0.2px;
}
.prose p { margin: 0 0 12px; }
.prose ul,
.prose ol {
  margin: 0 0 12px 18px;
  padding: 0;
}
.prose li { margin: 4px 0; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--glass-bg-muted);
}

.form { display: grid; gap: 12px; margin-top: 12px; }
.form--compact { margin-top: 0; margin-bottom: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--mentions { position: relative; }
.field span { color: var(--muted); font-size: 13px; font-weight: 600; }
.field .field-hint,
.field .field-hint span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.field__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.field__controls { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.mention,
.mention.user-link { font-weight: 900; color: var(--mention); text-decoration: none; }
.mention:hover,
.mention.user-link:hover { color: var(--mention); text-decoration: underline; }
.mention-autocomplete {
  position: absolute;
  z-index: 20;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  width: min(220px, calc(100vw - 24px));
  max-height: 220px;
  overflow: auto;
}
.mention-autocomplete[hidden] { display: none !important; }
.mention-autocomplete__item {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.mention-autocomplete__item:hover,
.mention-autocomplete__item.is-active {
  border-color: rgba(199,106,18,0.16);
  background: var(--mention-soft);
}
.mention-autocomplete__primary {
  color: var(--mention);
  font-size: 12px;
  font-weight: 800;
}
.mention-autocomplete__secondary {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.tribute-container--mentions {
  position: absolute;
  z-index: 30;
  min-width: 0;
}
.tribute-container--mentions ul {
  margin: 0;
  padding: 6px;
  list-style: none;
  display: grid;
  gap: 4px;
  width: min(240px, calc(100vw - 24px));
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.tribute-container--mentions li {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.tribute-container--mentions li.highlight,
.tribute-container--mentions li.is-active,
.tribute-container--mentions li:hover {
  border-color: rgba(199,106,18,0.16);
  background: var(--mention-soft);
}
.tribute-container__primary {
  color: var(--mention);
  font-size: 12px;
  font-weight: 800;
}
.tribute-container__secondary {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.tribute-container--mentions li.no-match {
  display: none;
}
.check { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.check span { color: inherit; }
.check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}
.check-row span { color: inherit; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus { border-color: rgba(37,99,235,0.55); box-shadow: 0 0 0 4px rgba(37,99,235,0.16); }

input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
}
input[type="file"]:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid var(--glass-border);
  background: var(--panel);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
input[type="file"]::file-selector-button:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-strong);
}
input[type="file"]::-webkit-file-upload-button {
  margin-right: 10px;
  border: 1px solid var(--glass-border);
  background: var(--panel);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
input[type="file"]::-webkit-file-upload-button:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-strong);
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  accent-color: var(--link);
}
select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
select:focus { border-color: rgba(37,99,235,0.55); box-shadow: 0 0 0 4px rgba(37,99,235,0.16); }

.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  max-height: 260px;
  overflow: auto;
}
.checklist__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.checklist__item span { min-width: 0; }
@media (max-width: 720px) {
  .checklist { grid-template-columns: 1fr; max-height: 220px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 11px 14px;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.10);
  transition: transform 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}
.btn:not(.btn--ghost):not(.btn--danger):hover { background-color: var(--btn-bg-hover); }
.btn--danger:hover { background-color: #b91c1c; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn:disabled,
.btn[aria-disabled="true"],
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.alert {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.alert-danger {
  border-color: var(--alert-danger-border);
  background: var(--alert-danger-bg);
  color: var(--alert-danger-text);
}

.alert-success {
  border-color: var(--alert-success-border);
  background: var(--alert-success-bg);
  color: var(--alert-success-text);
}

html.js .alert-success,
html.js .alert-danger {
  display: none;
}

.toast-region {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(440px, calc(100vw - 24px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.toast.is-open {
  opacity: 1;
  transform: translateY(0);
}
.toast.is-closing {
  opacity: 0;
  transform: translateY(10px);
}
.toast__msg {
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.toast__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.toast__close:hover {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.38);
}
.toast__close:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.toast__close svg { width: 18px; height: 18px; }

.toast--success {
  border-color: var(--alert-success-border);
  background: var(--alert-success-bg);
  color: var(--alert-success-text);
}
.toast--danger {
  border-color: var(--alert-danger-border);
  background: var(--alert-danger-bg);
  color: var(--alert-danger-text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.grid > * { min-width: 0; }
.project-layout {
  --project-sidebar-w: 320px;
  --project-sidebar-gap: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--project-sidebar-gap);
  margin-top: 16px;
  align-items: start;
  overflow: visible;
}
.project-main { min-width: 0; }
.project-summary-card {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(199,106,18,0.18);
  border-left: 4px solid rgba(199,106,18,0.55);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(199,106,18,0.08), rgba(148,163,184,0.03));
}
.project-summary-card > .project-intro,
.project-summary-card > .project-pinned {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.project-summary-card > .project-pinned {
  padding-top: 14px;
  border-top: 1px solid rgba(148,163,184,0.16);
}
.project-summary-card--guest > .project-intro {
  gap: 0;
}
.project-intro {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(199,106,18,0.18);
  border-left: 4px solid rgba(199,106,18,0.55);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(199,106,18,0.08), rgba(148,163,184,0.03));
}
.doc-meta--project-intro {
  margin: 0;
}
.project-intro__body {
  margin-top: 0 !important;
  font-size: 16px;
  line-height: 1.7;
}
.project-intro__readby {
  margin-top: 0;
}
.project-intro__readby > .btn {
  width: auto;
}
.project-sidebar {
  display: grid;
  gap: 12px;
  align-content: start;
  overflow-anchor: none;
}
.project-mobile-todo-slot { display: none; }

@media (min-width: 1200px) {
  .project-layout--sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  }
}

@media (min-width: 1440px) {
  .project-layout--sidebar {
    grid-template-columns: minmax(0, 1fr) var(--project-sidebar-w);
  }
}

@media (min-width: 1840px) {
  .project-layout {
    grid-template-columns: minmax(0, 1fr) var(--project-sidebar-w);
    width: calc(100% + var(--project-sidebar-w) + var(--project-sidebar-gap));
    margin-right: calc(-1 * (var(--project-sidebar-w) + var(--project-sidebar-gap)));
  }
  .project-layout--sidebar {
    width: 100%;
    margin-right: 0;
  }
}
.tile {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--panel2);
}
.tile h2 { margin: 0 0 6px; font-size: 16px; }
.tile p { margin: 0 0 10px; color: var(--muted); }
.members-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.members-head__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}
.members-head h2 { margin: 0; }
.members-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.members-body,
.project-readby-panel,
.readby-panel {
  overflow: hidden;
  overflow-anchor: none;
  will-change: max-height, opacity;
  transition: max-height 220ms ease, opacity 200ms ease;
}
.readby-panel {
  padding: 10px;
  background: var(--subtle-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
#members.is-collapsed .members-body,
.readby-panel[aria-hidden="true"] {
  opacity: 0;
}
.todo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.todo-head__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}
.todo-head h2 { margin: 0; }
.todo-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.todo-toggle { display: none; }
.todo-sidebar-filters {
  margin-bottom: 8px;
}
.todo-sidebar-filters .tab {
  padding: 4px 10px;
  font-size: 12px;
}
.todo-body {
  overflow: hidden;
  transition: max-height 220ms ease, opacity 200ms ease;
}
#todos.is-collapsed .todo-body { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .members-body,
  .project-readby-panel,
  .readby-panel,
  .todo-body,
  .project-pinned__form,
  .comments--project-thread > .comment-form.project-compose,
  .comment__edit,
  .comment.project-message-subform,
  .account-card__detail-grid { transition: none; }
}
.minutes-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
}
.project-files-tile__head,
.project-files-tile__title {
  display: flex;
  align-items: center;
  gap: 8px 12px;
}
.project-files-tile__head {
  justify-content: space-between;
  margin-bottom: 6px;
}
.project-files-tile__title {
  flex-wrap: wrap;
  align-items: baseline;
}
.project-files-tile__title h2 { margin: 0; }
.minutes-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.minutes-controls { gap: 12px; margin-top: 8px; }
.minutes-control-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}
.minutes-control-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.minutes-add-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.minutes-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.minutes-stack--compact { gap: 12px; }
.minutes-icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
}
.minutes-icon-btn .icon-btn__icon { width: 18px; height: 18px; }
.minutes-icon--record { fill: var(--danger); stroke: none; }
.minutes-icon--play { display: none; }
#minutesPauseBtn.is-paused .minutes-icon--pause { display: none; }
#minutesPauseBtn.is-paused .minutes-icon--play { display: block; }
.minutes-status-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.minutes-remote {
  font-weight: 700;
  color: var(--text);
}
.minutes-status { font-weight: 600; }
.minutes-timer { font-variant-numeric: tabular-nums; font-weight: 800; }
.minutes-player { width: 100%; margin-top: 6px; }
.minutes-upload { margin-top: 10px; }
.tile--panel { background: var(--panel); }
.pagehead {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.pagehead__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  min-width: 0;
}
.pagehead__project-title {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pagehead__title-row--project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  column-gap: 10px;
  row-gap: 8px;
}
.pagehead__title-actions--project {
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.pagehead__title-actions--project .pagehead-form-btn {
  margin: 0;
}
.pagehead__title-actions--project .badge {
  white-space: nowrap;
}

.pagehead__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}
.pagehead__actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  width: 100%;
}
.pagehead__actions-row--dense {
  gap: 6px;
}
.pagehead__actions-row--dense .btn--small {
  padding: 8px 11px;
  border-radius: 11px;
  font-size: 12px;
}
.pagehead__actions-row--todos {
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: auto;
}
.pagehead__actions-row--compact-mobile {
  width: auto;
  justify-content: flex-end;
}
.pagehead__actions-row--projects {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: auto;
}
.pagehead--projects {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "title actions filters";
  align-items: center;
  gap: 8px;
}
.pagehead--projects .pagehead__title {
  grid-area: title;
  min-width: 0;
}
.pagehead--projects .pagehead__actions-row {
  grid-area: actions;
  width: auto;
}
.pagehead__actions-row--projects {
  flex-wrap: nowrap;
}
.pagehead__filters-row {
  grid-area: filters;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.pagehead--projects .project-scope-row {
  flex-wrap: nowrap;
}
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.project-filter-mobile { display: none; }
.project-filter-desktop { display: inline-flex; position: relative; }
.project-filter-desktop details { position: relative; }
.project-filter-desktop .project-filter-mobile__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  z-index: 20;
}
.project-filter-mobile .summary-link,
.project-filter-desktop .summary-link {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--panel);
  font-weight: 700;
  font-size: 13px;
}
.project-filter-mobile .summary-link::-webkit-details-marker,
.project-filter-desktop .summary-link::-webkit-details-marker { display: none; }
.project-filter-mobile__menu {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.project-filter-mobile details[open] .project-filter-mobile__menu,
.project-filter-desktop details[open] .project-filter-mobile__menu {
  animation: dropdown-in 160ms ease-out;
  transform-origin: top right;
}
.project-filter-desktop details[open] .project-filter-mobile__menu {
  transform-origin: top right;
}
.project-filter-mobile details[open] .project-filter-mobile__menu {
  transform-origin: top left;
}
@keyframes dropdown-in {
  0% { opacity: 0; transform: translateY(-6px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.project-filter-mobile__menu .tab {
  width: 100%;
  justify-content: space-between;
}
.project-scope-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.tabs--compact {
  gap: 6px;
}
.tabs--compact .tab {
  gap: 6px;
  padding: 7px 10px;
  font-size: 12px;
}
.tab:hover { color: var(--text); }
.tab.is-active {
  color: var(--text);
  border-color: rgba(246, 199, 0, 0.45);
  background: rgba(246, 199, 0, 0.18);
  font-weight: 900;
}
.tab:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 10px;
}

.filters {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.filters--compact {
  margin-bottom: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.filters__toggle { display: none; }
.filters__body { display: contents; }
.filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  justify-content: flex-start;
}
.field--inline span { font-size: 12px; }

#projects-results.is-loading,
#content-results.is-loading,
#accounts-results.is-loading,
#vendors-results.is-loading,
#jobs-results.is-loading,
#jobtracker-results.is-loading,
#jt-reqarch-results.is-loading,
#files-results.is-loading,
#io-results.is-loading,
#io-contra-results.is-loading,
#retail-schedules-results.is-loading,
#suggestions-results.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

mark.hl {
  background: rgba(246, 199, 0, 0.35);
  padding: 0 2px;
  border-radius: 4px;
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.poll-builder {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.06);
}
.poll-builder__panel {
  display: grid;
  gap: 12px;
}
.poll-builder__panel[hidden] { display: none; }
.poll-builder__count {
  max-width: 220px;
}
.poll-builder__options {
  display: grid;
  gap: 10px;
}
@media (min-width: 760px) {
  .poll-builder__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.form-row {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.todo-create-row {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .todo-create-row {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 220px) minmax(140px, 180px);
  }
}

.btn--small {
  width: auto;
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 900;
}
.btn--chip {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
}
.btn--ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  box-shadow: none;
}
.btn--ghost:hover {
  filter: none;
  background: var(--glass-bg-hover);
}
.btn--ghost.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.btn--danger {
  background: var(--danger);
  border-color: var(--alert-danger-border);
}
.list {
  display: grid;
  gap: 10px;
}

.anon-access-box {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid var(--alert-success-border);
  background: var(--alert-success-bg);
  color: var(--alert-success-text);
  padding: 12px;
  display: grid;
  gap: 10px;
}
.anon-access-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.anon-access-box__title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}
.anon-access-box__lead {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
}
.anon-access-box__code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.anon-access-box__code {
  width: 132px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--alert-success-border);
  background: var(--panel);
  color: var(--text);
  padding: 8px 10px;
  text-align: center;
  letter-spacing: 0.22em;
  font-size: 18px;
  font-weight: 900;
}
.anon-access-box__steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
}
.anon-access-box__hint {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.anon-board-item {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
}
.anon-board-item:hover { border-color: rgba(17,17,17,0.22); }

.anon-board-item__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}
.anon-board-item__summary::-webkit-details-marker { display: none; }
.anon-board-item__summary::marker { content: ""; }
.anon-board-item__summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.anon-board-item__summary-main { min-width: 0; }
.anon-board-item__summary-side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--muted);
}
.anon-board-item__chevron {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 140ms ease;
}
.anon-board-item[open] .anon-board-item__chevron { transform: rotate(180deg); }
.anon-board-item .list-item__badges { margin-top: 8px; }

.anon-board-item__body {
  border-top: 1px solid var(--border);
  padding: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  overflow: hidden;
  transition: max-height 180ms ease, opacity 180ms ease, transform 180ms ease;
}
.anon-thread { display: grid; gap: 12px; }
.anon-thread__replies-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.anon-thread__replies-title { margin: 0; font-size: 14px; font-weight: 900; }
.anon-thread__replies .comment-list { margin-top: 10px; }
.anon-thread__replies .comment-form { margin-top: 10px; }
.anon-thread__reply { margin-left: 24px; background: var(--subtle-bg); }
.anon-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.anon-lookup-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 6px;
  flex-wrap: wrap;
}
.anon-lookup-code {
  width: min(180px, 100%);
}
.anon-help-title {
  font-weight: 900;
}
.anon-help-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .anon-board-item__body { transition: none; }
}

@media (max-width: 640px) {
  .anon-access-box__head {
    align-items: flex-start;
    flex-direction: column;
  }
  .anon-access-box__code {
    width: min(180px, 100%);
  }
}

.list-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  contain: layout paint;
}
.list-item {
  content-visibility: auto;
  contain-intrinsic-size: 1px 84px;
}
.list-item:hover { border-color: rgba(17,17,17,0.22); }
.list-item:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.list-item__title {
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.25;
}
.list-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.dot { opacity: 0.6; }
.list-item__badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.list-item__action-slot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.list-item__action-slot .u-inline-form {
  display: inline-flex;
  margin: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
a.badge,
button.badge { cursor: pointer; }
a.badge:hover,
button.badge:hover { background: var(--glass-bg-hover); }

.badge--new {
  background: rgba(246, 199, 0, 0.22);
  border-color: rgba(246, 199, 0, 0.52);
  color: #111111;
  font-weight: 900;
}

.badge--ok {
  color: var(--alert-success-text);
  border-color: var(--alert-success-border);
  background: var(--alert-success-bg);
}

.list-item.is-new {
  border-color: rgba(246, 199, 0, 0.45);
  background: rgba(246, 199, 0, 0.06);
}
.list-item.is-new:hover {
  border-color: rgba(246, 199, 0, 0.60);
  background: rgba(246, 199, 0, 0.10);
}
.list-item.is-mine {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.04);
}
.list-item.is-mine:hover {
  border-color: rgba(37, 99, 235, 0.38);
  background: rgba(37, 99, 235, 0.07);
}
.badge--danger {
  color: var(--danger);
  border-color: var(--alert-danger-border);
  background: var(--alert-danger-bg);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.pager__count { color: var(--muted); font-weight: 700; font-size: 13px; }

.crumbs { margin-bottom: 10px; }
.crumbs { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.crumbs a { color: var(--link); text-decoration: none; font-weight: 700; }
.crumbs a:hover { color: #266c91; }

.doc-head { margin-bottom: 10px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; color: var(--muted); font-weight: 600; font-size: 13px; }
.doc-meta__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-meta__name { font-weight: 900; color: var(--text); }
.doc-meta__sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  align-self: center;
  border: 1px solid var(--border);
  background: var(--subtle-bg);
}
img.avatar { cursor: zoom-in; }
.avatar--md { width: 40px; height: 40px; }
.avatar--sm { width: 28px; height: 28px; }
.avatar--xs { width: 24px; height: 24px; }

.doc-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.doc-body--main {
  font-size: 15px;
  line-height: 1.6;
}
.doc-body img { max-width: 100%; height: auto; }

.h2 { margin: 0 0 10px; font-size: 16px; }

.attachments { margin-top: 16px; }
.attachments__list { margin: 0; padding-left: 18px; }
.attachments__list a { color: var(--link); }
.attachments__list a:hover { color: #266c91; }

.attachments__media {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.attachments__media .attachment {
  content-visibility: auto;
  contain-intrinsic-size: 1px 48px;
}
.attachment {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}
/* Non-media attachments (no thumb) — compact pill/chip */
.attachment:not(:has(.attachment__thumb)) {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel2);
}
.attachment__thumb {
  position: relative;
  width: 48px;
  height: 48px;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--glass-border-strong);
  background: var(--subtle-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.attachment__thumb:hover { text-decoration: none; }
.attachment__thumb:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.attachment__thumb img,
.attachment__thumb video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}
.attachments__media--single-image {
  display: block;
}
.attachments__media--single-image .attachment {
  display: block;
  width: min(100%, 820px);
}
.attachments__media--single-image .attachment__thumb {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 8px;
  background: transparent;
}
.attachments__media--single-image .attachment__thumb img {
  width: 100%;
  height: auto;
  max-height: min(72vh, 760px);
  object-fit: contain;
  background: var(--panel2);
}
.attachment__thumb--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,0.0), rgba(15,23,42,0.26));
  pointer-events: none;
}
.attachment__thumb--video::before {
  content: "Play";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--overlay-bg);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  pointer-events: none;
}
@media (hover: none) and (pointer: coarse) {
  .attachment__thumb--video video {
    display: none;
  }
  .attachment__thumb--video {
    background:
      linear-gradient(180deg, rgba(15,23,42,0.18), rgba(15,23,42,0.34)),
      var(--subtle-bg);
  }
  .attachment__thumb--video::before {
    width: auto;
    height: auto;
    padding: 4px 8px;
    font-size: 11px;
  }
}
/* Hide filename under thumbnails — thumb IS the link */
.attachment:has(.attachment__thumb) .attachment__meta { display: none; }
.attachment__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  justify-content: space-between;
}
.attachment__link {
  font-weight: 800;
  overflow-wrap: anywhere;
  color: var(--link);
  font-size: 12px;
}
.attachment__link:hover { text-decoration: underline; }
.attachment__link:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.content-poll {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.06);
}
.content-poll__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.content-poll__title {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.content-poll__total {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.content-poll__form {
  display: grid;
  gap: 0;
}
.content-poll__option {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 11px 2px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease;
}
.content-poll__option:last-child {
  border-bottom: 0;
}
.content-poll__option:hover {
  background: rgba(148, 163, 184, 0.06);
}
.content-poll__option:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 8px;
}
.content-poll__option:disabled {
  cursor: wait;
  opacity: 0.78;
}
.content-poll__option.is-selected {
  color: var(--text);
}
.content-poll__option-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.content-poll__radio {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(148, 163, 184, 0.65);
  border-radius: 999px;
  background: transparent;
  transition: border-color 120ms ease, background 120ms ease;
}
.content-poll__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: transparent;
  transition: background 120ms ease;
}
.content-poll__option.is-selected .content-poll__radio {
  border-color: #60a5fa;
}
.content-poll__option.is-selected .content-poll__radio::after {
  background: #60a5fa;
}
.content-poll__option-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  width: 100%;
}
.content-poll__option-label {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 900;
}
.content-poll__option-stats {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.content-poll__progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
}
.content-poll__progress::-webkit-progress-bar {
  background: rgba(148, 163, 184, 0.14);
  border-radius: 999px;
}
.content-poll__progress::-webkit-progress-value {
  background: #60a5fa;
  border-radius: 999px;
}
.content-poll__progress::-moz-progress-bar {
  background: #60a5fa;
  border-radius: 999px;
}
@media (max-width: 560px) {
  .content-poll__option-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}
.attachment__detail {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}
.attachment__file-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel2);
  color: var(--text);
  text-decoration: none;
}
.attachment__file-card:hover {
  text-decoration: none;
  border-color: var(--glass-border-strong);
  background: rgba(148, 163, 184, 0.08);
}
.attachment__file-card:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.attachment__file-icon--card {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: 0 0 auto;
  background: rgba(148, 163, 184, 0.12);
}
.attachment__file-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.attachment__file-name {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.attachment__file-detail {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}
.attachment__file-ext-badge {
  align-self: flex-start;
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #c7d7ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.project-files-page .pagehead {
  margin-bottom: 14px;
}
.project-files-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--border);
}
.project-files-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.project-files-search .field {
  flex: 1 1 280px;
}
.project-files-upload {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.project-files-upload .form-file-actions {
  align-items: flex-end;
  gap: 10px;
}
.project-files-upload .muted {
  margin-left: 0;
}
.project-file-list {
  display: grid;
  gap: 0;
}
.project-file-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.5fr) minmax(180px, 0.8fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.project-file-row:hover {
  background: rgba(148, 163, 184, 0.04);
}
.project-file-row__thumb,
.project-file-row__icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--glass-border-strong);
  background: var(--subtle-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.project-file-row__thumb img,
.project-file-row__thumb video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}
.project-file-row__main,
.project-file-row__source {
  min-width: 0;
}
.project-file-row__name {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.project-file-row__name:hover {
  color: var(--link);
  text-decoration: underline;
}
.project-file-row__meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.project-file-row__meta a {
  color: var(--link);
  font-weight: 900;
  text-decoration: none;
}
.project-file-row__meta a:hover {
  text-decoration: underline;
}
.project-file-row__source-label {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.project-file-row__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.project-file-row__delete {
  margin: 0;
}
@media (max-width: 760px) {
  .project-file-row {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }
  .project-file-row__thumb,
  .project-file-row__icon {
    width: 52px;
    height: 52px;
  }
  .project-file-row__source,
  .project-file-row__actions {
    grid-column: 2;
  }
  .project-file-row__actions {
    justify-content: flex-start;
    margin-top: 4px;
  }
}
@media (max-width: 720px) {
  .attachments__media { gap: 4px; }
  .attachment__thumb { width: 40px; height: 40px; }
  .attachments__media .attachment { contain-intrinsic-size: 1px 40px; }
}

body.is-modal-open { overflow: hidden; }
.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--overlay-bg);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 180ms ease;
}
.media-lightbox[hidden] { display: none; }
.media-lightbox.is-open { opacity: 1; }
.media-lightbox__dialog {
  width: min(1100px, 100%);
  max-height: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transform: translateY(8px) scale(0.985);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}
.media-lightbox.is-open .media-lightbox__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.media-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--glass-bg-strong);
}
.media-lightbox__title {
  min-width: 0;
  font-weight: 900;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-lightbox__content {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--subtle-bg);
  position: relative;
}
.media-lightbox__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.media-lightbox__content img,
.media-lightbox__content video {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  border-radius: 12px;
  background: #000;
  transition: opacity 120ms ease;
}
.media-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass-bg-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
}
.media-lightbox__nav--prev { left: 10px; }
.media-lightbox__nav--next { right: 10px; }
.media-lightbox__nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .media-lightbox__content { padding: 8px; }
  .media-lightbox__nav {
    width: 44px;
    height: 44px;
  }
  .media-lightbox__nav--prev { left: 6px; }
  .media-lightbox__nav--next { right: 6px; }
}

.likes-modal {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--overlay-bg);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 160ms ease;
}
.likes-modal.is-open { opacity: 1; }
.likes-modal[hidden] { display: none; }
.likes-modal__dialog {
  width: min(520px, 100%);
  max-height: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transform: translateY(10px) scale(0.985);
  opacity: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}
.likes-modal.is-open .likes-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.likes-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--glass-bg-strong);
}
.likes-modal__title {
  min-width: 0;
  font-weight: 900;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.likes-modal__content {
  padding: 12px;
  background: var(--subtle-bg);
  overflow: auto;
  max-height: calc(100vh - 180px);
}
.likes-modal__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.likes-modal__item {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  font-weight: 800;
  color: var(--text);
}
.likes-modal__empty { font-weight: 800; color: var(--muted); }
.likes-page-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.likes-page-list > li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.user-modal {
  position: fixed;
  inset: 0;
  z-index: 3150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--overlay-bg);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 160ms ease;
}
.user-modal.is-open { opacity: 1; }
.user-modal[hidden] { display: none; }
.user-modal__dialog {
  width: min(640px, 100%);
  max-height: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transform: translateY(10px) scale(0.985);
  opacity: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}
.user-modal.is-open .user-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.user-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--glass-bg-strong);
}
.user-modal__title {
  min-width: 0;
  font-weight: 900;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-modal__content {
  padding: 14px;
  background: var(--subtle-bg);
  overflow: auto;
  max-height: calc(100vh - 180px);
}
.avatar-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--overlay-bg);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 160ms ease;
}
.avatar-lightbox.is-open { opacity: 1; }
.avatar-lightbox[hidden] { display: none; }
.avatar-lightbox__dialog {
  width: min(520px, 100%);
  max-height: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transform: translateY(10px) scale(0.985);
  opacity: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}
.avatar-lightbox.is-open .avatar-lightbox__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.avatar-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--glass-bg-strong);
}
.avatar-lightbox__title {
  min-width: 0;
  font-weight: 900;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar-lightbox__content {
  padding: 16px;
  background: var(--subtle-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-lightbox__img {
  max-width: min(80vw, 420px);
  max-height: min(80vh, 420px);
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--panel);
  object-fit: cover;
}

@media (max-width: 900px) {
  .media-lightbox,
  .likes-modal,
  .user-modal,
  .avatar-lightbox {
    backdrop-filter: none;
  }
  .pagehead--projects {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title actions"
      "filters filters";
    align-items: center;
  }
  .pagehead__actions-row--projects {
    flex-wrap: nowrap;
  }
  .pagehead__filters-row {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .pagehead--projects .project-scope-row {
    flex-wrap: wrap;
  }
}

.user-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.user-card__avatar {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  border-radius: 22px;
  border: 1px solid var(--glass-border);
  background: var(--panel);
  object-fit: cover;
}
.user-card__avatar-btn {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 22px;
  cursor: zoom-in;
}
.user-card__avatar-btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.account-card__details {
  display: none;
  margin-top: 10px;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}
.account-card__summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  color: var(--link);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.account-card__summary::-webkit-details-marker { display: none; }
.account-card__summary::after {
  content: "▾";
  font-size: 12px;
  transition: transform 120ms ease;
}
.account-card__details[open] .account-card__summary::after {
  transform: rotate(180deg);
}
.account-card__detail-grid {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  overflow: hidden;
  transition: max-height 180ms ease, opacity 180ms ease, transform 180ms ease;
}
.account-card__detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.account-card__detail span:first-child {
  color: var(--muted);
  font-weight: 800;
}
.account-card__detail a { color: var(--link); font-weight: 900; }
.account-card__detail--stack {
  flex-direction: column;
  align-items: flex-start;
}
.team-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 12px;
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}
.team-card:hover {
  transform: translateY(-2px);
  border-color: var(--glass-border-strong);
  background: var(--glass-bg-hover);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.team-card:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.team-card__avatar-wrap {
  width: 104px;
  height: 104px;
  border-radius: 999px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(246, 199, 0, 0.18), rgba(37, 99, 235, 0.12));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.team-card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--panel);
  object-fit: cover;
}
.team-card__name {
  margin-top: 4px;
  font-weight: 900;
  font-size: 14px;
  text-align: center;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.team-card__role {
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.team-card__role--empty {
  color: var(--muted);
}
.profile-photo {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  margin-top: 12px;
}
.profile-photo__forms {
  display: grid;
  gap: 10px;
  flex: 1 1 420px;
  min-width: 280px;
  max-width: 620px;
}
.profile-photo__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: flex-end;
}
.profile-photo__upload-form {
  min-width: 0;
  width: 100%;
}
.profile-photo__delete-form {
  margin: 0;
  align-self: end;
  justify-self: end;
}
.profile-photo__forms .form { margin-top: 0; }
.profile-photo__note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.user-card__main { min-width: 0; flex: 1; }
.user-card__name {
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: var(--text);
}
.user-card__handle {
  margin-top: 2px;
  font-weight: 900;
  font-size: 13px;
  color: var(--muted);
}
.user-card__badges {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.user-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  font-weight: 900;
  font-size: 12px;
  color: var(--muted);
}
.user-card__grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.user-card__field {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 0;
}
.user-card__label {
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}
.user-card__value {
  margin-top: 4px;
  font-weight: 800;
  color: var(--text);
  overflow-wrap: anywhere;
}
.user-card__value a { color: var(--link); font-weight: 900; }
.user-card__value a:hover { text-decoration: underline; }
.user-card__desc {
  margin-top: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 14px;
  padding: 10px 12px;
}
.user-card__desc .user-card__value { font-weight: 700; line-height: 1.5; color: var(--text); white-space: pre-line; }

.user-link {
  color: inherit;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.user-link:hover { text-decoration: underline; }
.user-link:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  .notif-pop,
  .emoji-pop,
  .sites-card,
  .user-menu-card,
  .media-lightbox,
  .media-lightbox__dialog,
  .likes-modal,
  .likes-modal__dialog,
  .user-modal,
  .user-modal__dialog,
  .page,
  .comment.is-appear,
  .like-group.is-animating,
  .like-toggle.is-animating .like-toggle__icon {
    transition: none;
    animation: none;
  }
}

@media print {
  .comment,
  .list-item,
  .data-table tbody tr,
  .attachments__media .attachment {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }
}

.attachment-remove-help { margin-top: 6px; font-size: 13px; }
.attachment-remove-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.attachment-remove-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}
.attachment-remove-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--muted); }
.attachment-remove-check input { width: 16px; height: 16px; }
.attachment-remove-label { user-select: none; }
.attachment-remove-link { font-weight: 700; color: var(--link); overflow-wrap: anywhere; }
.attachment-remove-link:hover { text-decoration: underline; }

.io-orders-table .list-item__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.io-orders-table .list-item__badges .icon-btn {
  width: 30px;
  height: 30px;
}
.io-orders-table .list-item__badges .icon-btn .icon-btn__icon {
  width: 16px;
  height: 16px;
}
.io-editor-lookup-card {
  margin-top: 12px;
  padding: 12px;
}
.io-editor-lookup-title {
  margin: 0 0 8px;
}
.io-editor-search-grid {
  align-items: end;
}
.io-editor-search-field {
  grid-column: 1 / -1;
}
.io-editor-table--tight {
  min-width: 0;
}
.io-editor-col-pims {
  width: 160px;
}
.io-editor-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.io-editor-year-input {
  max-width: 110px;
}
.io-editor-cash-input {
  max-width: 140px;
}
.io-table--tight {
  min-width: 0;
}
.io-menu-search-field {
  flex: 1;
}
.io-admin-optional-grid {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}
.io-admin-rate-input-sm {
  max-width: 110px;
}
.io-admin-rate-input-md {
  max-width: 140px;
}
.io-admin-rate-input-disabled {
  opacity: 0.5;
}
.io-admin-year-cell {
  max-width: 180px;
}
.io-admin-year-input {
  max-width: 140px;
}
.field--full {
  grid-column: 1 / -1;
}
.check-inline {
  display: flex;
  gap: 10px;
  align-items: center;
}
.accounts-password-help {
  margin-top: -6px;
}
.accounts-role-summary {
  gap: 8px;
  margin-top: 2px;
}
.accounts-role-summary__textarea {
  min-height: 520px;
  overflow-y: hidden;
  padding: 16px;
  border-radius: 12px;
  line-height: 1.58;
  font-family: inherit;
  font-size: 14px;
  white-space: pre-wrap;
}
.accounts-role-summary__count {
  justify-self: end;
}
.accounts-password-toggle {
  margin: 10px 0 12px;
}
.accounts-password-control {
  position: relative;
  display: flex;
  align-items: center;
}
.accounts-password-control > input {
  padding-right: 42px;
}
.accounts-password-visibility {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 4px;
  border: 0;
  background: transparent;
}
.accounts-password-visibility:hover {
  background: var(--glass-bg-hover);
}
.accounts-password-visibility:disabled {
  background: transparent;
}
.table-wrap--mt-10 {
  margin-top: 10px;
}
.table--min-w-0 {
  min-width: 0;
}
.pagehead-form-btn {
  margin: 0;
}
.row-actions-end {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
.pagehead__actions-row--stack-mobile {
  margin-bottom: 0;
}
.col-actions {
  width: 160px;
}
.col-actions--compact {
  width: 60px;
}
.cell-actions {
  white-space: nowrap;
  text-align: right;
}
.cell-actions--compact {
  white-space: nowrap;
}
.cell-actions .row-actions-end {
  justify-content: flex-end;
}
.icon-actions--compact { gap: 4px; }
.icon-actions--compact .icon-btn {
  padding: 4px;
  width: 28px;
  height: 28px;
}
.jobtracker-count-badge {
  margin-left: 6px;
  padding: 3px 6px;
  font-size: 11px;
}
.jobtracker-count-badge--lg {
  margin-left: 8px;
}
.jobtracker-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.jobtracker-pager__nav {
  display: flex;
  gap: 8px;
}
.jobtracker-col-180 {
  width: 180px;
}
.jobtracker-col-200 {
  width: 200px;
}
.time-tile {
  margin-top: 12px;
}
.time-table {
  min-width: 720px;
}
.time-col-length {
  width: 110px;
}
.time-entry-desc-cell {
  padding-top: 0 !important;
}
.time-entry-desc-body {
  padding-top: 6px;
}
.time-aggregate-table {
  min-width: 560px;
}
.time-aggregate-col-entries {
  width: 120px;
}
.time-aggregate-col-total {
  width: 140px;
}
.timecard-table {
  min-width: 860px;
}
.timecard-col-day {
  width: 140px;
}
.purchase-grid {
  margin-top: 16px;
}
.purchase-badges {
  align-items: center;
}
.purchase-approved-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.purchase-approved-table .col-author {
  width: 11%;
}
.purchase-approved-table .col-dept {
  width: 12%;
}
.purchase-approved-table .col-date {
  width: 10%;
}
.purchase-approved-table .col-count {
  width: 8%;
  text-align: right;
}
.purchase-approved-table th:nth-child(3),
.purchase-approved-table td:nth-child(3) {
  width: 21%;
}
.purchase-approved-table th:nth-child(6),
.purchase-approved-table td:nth-child(6) {
  width: 7%;
}
.purchase-approved-table th:nth-child(7),
.purchase-approved-table td:nth-child(7) {
  width: 7%;
}
.purchase-approved-table .col-actions {
  width: 13%;
}
.purchase-approved-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.purchase-approved-table td:not(.purchase-approved-detail-cell):not(.purchase-approved-actions-cell) {
  white-space: nowrap;
}
.purchase-approved-detail__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
}
.purchase-approved-actions-cell {
  vertical-align: middle;
  overflow: visible;
}
.purchase-approved-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}
.purchase-approved-actions .u-inline-form {
  display: inline-flex;
}
.purchase-approved-actions .icon-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
}
.crm-search-field {
  flex: 1;
}
.crm-tile-full {
  grid-column: 1 / -1;
}
.crm-optional-grid {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}
.crm-notes-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.comments { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.comments__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.comments__head--project {
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.comments__head--project .h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.comments__head--project .btn {
  width: auto;
}
.comments__divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0 6px;
}
.project-pinned {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(199,106,18,0.08), rgba(148,163,184,0.04));
}
.project-pinned__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.project-pinned__head-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.project-pinned__head--actions {
  justify-content: flex-end;
}
.project-pinned__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}
.project-pinned__head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.project-pinned__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.project-pinned__actions .icon-btn.is-active {
  border-color: rgba(199,106,18,0.38);
  background: rgba(199,106,18,0.12);
  color: var(--mention);
}
.project-pinned__minor-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.project-pinned__cta--sticky {
  border-color: rgba(199,106,18,0.42);
  background: rgba(199,106,18,0.92);
  color: #fff7ed;
}
.project-pinned__cta--sticky:hover {
  background: #b95d0d;
}
.project-pinned__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.project-pinned__author {
  color: var(--text);
  font-weight: 800;
}
.project-pinned__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
.project-pinned.is-editing .project-pinned__meta,
.project-pinned.is-editing .project-pinned__body,
.project-pinned.is-editing .attachments {
  display: none;
}
.project-pinned__form {
  overflow: hidden;
  overflow-anchor: none;
  will-change: max-height, opacity;
  max-height: 0;
  opacity: 0;
  transition: max-height 220ms ease, opacity 200ms ease;
}
.project-pinned__form.is-open {
  max-height: none;
  opacity: 1;
}
.project-pinned.is-editing .project-pinned__form.is-open {
  margin-top: 2px;
}
.project-pinned__form,
.project-pinned__form .field--mentions {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.project-pinned__form .form-file-actions {
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(148,163,184,0.16);
}
.project-pinned__files span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.project-pinned__buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.project-pinned__file-options {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.project-pinned__replace {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.project-pinned__replace-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.project-pinned .attachments {
  margin-top: 4px;
}
.project-pinned .attachments .muted {
  margin-bottom: 4px !important;
  font-size: 11px;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.project-pinned .attachments__media {
  gap: 6px;
}
.project-pinned .attachment {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: auto;
  max-width: 190px;
}
.project-pinned .attachment--file {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.project-pinned .attachment__thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: 0 0 auto;
}
.project-pinned .attachment__thumb,
.project-pinned .attachment__file-card {
  border-color: rgba(148,163,184,0.18);
  background: rgba(148,163,184,0.08);
  box-shadow: none;
}
.project-pinned .attachment__thumb:hover,
.project-pinned .attachment__file-card:hover {
  border-color: rgba(148,163,184,0.28);
  background: rgba(148,163,184,0.12);
  text-decoration: none;
}
.project-pinned .attachment__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.project-pinned .attachment__file-card {
  min-height: 0;
  width: auto;
  max-width: 190px;
  padding: 7px 8px;
  border-radius: 10px;
}
.project-pinned .attachment__link {
  color: var(--text);
  line-height: 1.3;
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-pinned .attachment__detail {
  color: var(--muted);
  font-size: 10px;
}
.project-pinned .attachment__file-icon--card {
  width: 24px;
  height: 24px;
}
.project-pinned .attachment__file-name {
  font-size: 12px;
  -webkit-line-clamp: 2;
}
.project-pinned .attachment__file-ext-badge {
  display: none;
}

.comments--project-thread {
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}
.comments--project-thread > .comment-form {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
}
.comments--project-thread > .comment-form.project-compose {
  gap: 12px;
  overflow: hidden;
  overflow-anchor: none;
  will-change: max-height, opacity;
  max-height: 0;
  opacity: 0;
  transition: max-height 220ms ease, opacity 200ms ease;
}
.comments--project-thread > .comment-form.project-compose.is-open {
  max-height: none;
  opacity: 1;
}
.comments--project-thread > .comment-form.project-compose,
.comments--project-thread > .comment-form.project-compose .field--mentions {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.comments--project-thread > .comment-form.project-compose .field__head > span {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.comments--project-thread > .comment-form.project-compose .field__controls .icon-btn {
  width: 34px;
  height: 34px;
}
.comments--project-thread > .comment-form.project-compose .message-textarea {
  min-height: 120px;
}
.comments--project-thread > .comment-form.project-compose .form-file-actions {
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(148,163,184,0.16);
}
.comments--project-thread > .comment-form.project-compose .project-compose__files span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.comments--project-thread > .comment-form.project-compose .project-compose__files input[type="file"] {
  font-size: 13px;
}
.comments--project-thread > .comment-form.project-compose .form-file-actions > .btn {
  min-width: 92px;
}
.comments--project-thread > .comment-form.project-compose .project-compose__buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.comments--project-thread .comments__divider {
  margin: 18px 0 0;
}
@keyframes comment-appear {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.comment.is-appear {
  animation: comment-appear 220ms ease-out;
}
.comment-form { margin-top: 10px; display: grid; gap: 10px; }
.comment-form.guest-message-form { grid-template-columns: 1fr; align-items: stretch; }
.comment-form.guest-message-form > .btn { justify-self: start; }
.comment-form input[type="file"] {
  width: auto;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.form-file-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
}
.form-file-actions > .field {
  flex: 1 1 auto;
  min-width: 0;
}
.form-file-actions > .btn {
  flex: 0 0 auto;
  margin-left: auto;
}
.io-fee-multiplier { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0; }
.io-fee-multiplier__times { font-weight: 900; }
.io-fee-multiplier__total { flex: 1 1 auto; min-width: 140px; }
.io-fee-multiplier__count { flex: 0 0 60px; width: 60px; }
@media (max-width: 720px) {
  .io-fee-multiplier { flex-wrap: wrap; }
  .io-fee-multiplier__count { width: 52px; }
}
.todo-add-fields { display: grid; gap: 10px; }
.todo-assignees {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  max-height: 160px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.todo-assignee {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}
.todo-assignee input { margin: 0; }
.todo-assignee span { overflow-wrap: anywhere; }
.todo-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: flex-start;
}
.todo-item[data-is-complete="1"] .todo-item__title {
  text-decoration: line-through;
  color: var(--muted);
}
.todo-item[data-is-complete="1"] .todo-item__assignee {
  opacity: 0.85;
}
.todo-item__body { min-width: 0; }
.todo-item__title {
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.todo-item__assignee {
  margin-top: 4px;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.todo-item.todo-row--focus {
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.28);
  padding: 8px;
}
.todo-discussion {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 10px;
}
.todo-discussion__summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.todo-discussion__summary::-webkit-details-marker { display: none; }
.todo-discussion__summary::marker { content: ""; }
.todo-discussion__summary:hover { color: var(--text); }
.todo-discussion__body {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  overflow: hidden;
  transition: max-height 180ms ease, opacity 180ms ease, transform 180ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .todo-discussion__body { transition: none; }
}
.todo-discussion__list {
  display: grid;
  gap: 8px;
}
.todo-discussion__comment {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.todo-discussion__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 4px;
}
.todo-discussion__author {
  font-size: 12px;
  font-weight: 800;
}
.todo-discussion__date {
  font-size: 12px;
  color: var(--muted);
}
.todo-discussion__text {
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.todo-discussion__form {
  display: grid;
  gap: 8px;
}
.todo-item__delete { margin: 0; }
.todo-item__delete-btn { white-space: nowrap; }
.todo-group {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.todo-group:first-child { margin-top: 0; }

.todo-group__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--panel2);
  border-bottom: 1px solid var(--border);
}
.todo-group__summary::-webkit-details-marker { display: none; }
.todo-group__summary::marker { content: ""; }
.todo-group__summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.todo-group__summary-main { min-width: 0; }
.todo-group__title {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.todo-group__summary-side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--muted);
}
.todo-group__chevron {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 140ms ease;
}
.todo-group[open] .todo-group__chevron { transform: rotate(180deg); }

.todo-group__body {
  padding: 12px;
  overflow: hidden;
  transition: max-height 180ms ease, opacity 180ms ease, transform 180ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .todo-group__body { transition: none; }
}
.todo-group__list { margin-top: 0; }
.todo-group__list--sections {
  display: grid;
  gap: 0;
}
.todo-section + .todo-section {
  border-top: 1px solid var(--border);
}
.todo-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 10px;
  background: color-mix(in srgb, var(--panel2) 74%, transparent);
}
.todo-section__title {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.todo-section__count {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.todo-section__list {
  display: grid;
  gap: 0;
}
.todo-section__list > .js-todo-item {
  margin: 0;
}

.todo-search { width: 260px; }

/* My Todos: project tabs (Chrome-ish) */
.todo-project-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.todo-project-tabs-nav__btn {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 120ms ease, opacity 120ms ease;
}
.todo-project-tabs-nav__btn:hover {
  color: var(--text);
}
.todo-project-tabs-nav__btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.todo-project-tabs-nav__btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.todo-project-tabs-nav.is-scrollable .todo-project-tabs-nav__btn {
  display: inline-flex;
}
.todo-project-tabs {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 12px;
  margin-top: 0;
  /* Bottom border acts as the "tab strip" baseline — active tab erases its segment */
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.todo-project-tabs::-webkit-scrollbar { display: none; }

.todo-project-tab {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: 320px;
  padding: 8px 16px 7px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  margin: 0 0 -1px;             /* pull down 1px so bottom overlaps the strip border */
  position: relative;
  z-index: 1;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

/* — Inactive hover — */
.todo-project-tab:hover {
  color: var(--text);
  background: var(--panel2);
  border-color: var(--border) var(--border) transparent;
}

/* — Active tab — */
.todo-project-tab.is-active {
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
  z-index: 2;
  border-color: var(--border) var(--border) var(--panel);  /* bottom = panel → seamless join */
}

/* — Focus ring — */
.todo-project-tab:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
  z-index: 3;
}

.todo-project-tab__title {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.todo-project-tab__meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

/* My Todos: project-tabs mode tweaks */
#projects-todos.is-tabs-mode .todo-group {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
#projects-todos.is-tabs-mode .todo-group__body {
  padding: 10px 0 0;
}
#projects-todos.is-tabs-mode .todo-group__summary { display: none; }
#projects-todos.is-tabs-mode.is-searching .todo-group__summary { display: flex; }
#projects-todos.is-tabs-mode.is-searching .todo-project-tabs-nav { display: none; }

.todo-assignee-groups { display: grid; gap: 12px; margin-top: 10px; }
.todo-assignee-groups .todo-group { margin-top: 0; }
.todo-group.todo-group--nested { box-shadow: none; }

.todo-group .table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.todo-group a.todo-item__title {
  color: var(--text);
  text-decoration: none;
  display: block;
  /* Prevent table layout from collapsing the title column to ~1ch. */
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}
.todo-group a.todo-item__title:hover { text-decoration: underline; }

.todo-group .badge { text-transform: lowercase; }
.todo-group .todo-row.is-done { opacity: 0.85; }
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  outline: none;
  resize: vertical;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
textarea:focus { border-color: rgba(37,99,235,0.55); box-shadow: 0 0 0 4px rgba(37,99,235,0.16); }
.message-textarea {
  line-height: 1.5;
  transition: min-height 160ms ease, height 160ms ease;
}
.comment-form:focus-within .message-textarea {
  min-height: 180px;
}
.notes-textarea {
  min-height: 320px;
  line-height: 1.5;
}
.notes-textarea--compact {
  min-height: 160px;
}
.page--notes {
  max-width: none;
  width: 100%;
}
.notes-layout {
  --notes-sidebar-w: 360px;
  --notes-sidebar-gap: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--notes-sidebar-gap);
  align-items: start;
  width: 100%;
}
.notes-layout > * {
  min-width: 0;
}
.notes-page,
.notes-files-page,
.notes-page .form,
.notes-list,
.notes-items,
.notes-item,
.notes-files-page .project-files-toolbar,
.notes-files-page .project-files-search,
.notes-files-page .project-files-upload,
.notes-files-page .project-file-list {
  min-width: 0;
  max-width: 100%;
}
.notes-files-page {
  margin-top: 0;
}
.notes-files-page .pagehead {
  margin-bottom: 12px;
}
.notes-files-page .project-files-toolbar {
  margin: 14px 0 16px;
  padding-bottom: 14px;
}
.notes-files-page .project-file-row {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 11px 0;
}
.notes-files-page .project-file-row__thumb,
.notes-files-page .project-file-row__icon {
  width: 52px;
  height: 52px;
}
.notes-files-page .project-file-row__source,
.notes-files-page .project-file-row__actions {
  grid-column: 2;
}
.notes-files-page .project-file-row__source {
  margin-top: -4px;
}
.notes-files-page .project-file-row__actions {
  justify-content: flex-start;
  margin-top: 2px;
}
.notes-files-page .project-file-row__actions .btn {
  width: auto;
}
@media (min-width: 1180px) {
  .notes-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, var(--notes-sidebar-w));
  }
}
.notes-list {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.notes-items {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.notes-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
.notes-item__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-bottom: 6px;
}
.notes-item__meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
  color: var(--muted);
}
.notes-item__body {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.5;
}
.notes-item.is-editing .js-note-row-actions .icon-btn {
  opacity: 0.4;
  pointer-events: none;
}
.notes-item__edit {
  min-height: 120px;
  margin-bottom: 10px;
}

@media (max-width: 720px) {
  .comment-form:focus-within .message-textarea {
    min-height: 150px;
  }
  .notes-textarea { min-height: 240px; }
  .notes-textarea--compact { min-height: 140px; }
}
@media (max-width: 520px) {
  .notes-page .doc-meta-actions--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  .notes-page .doc-meta-actions--split > .muted {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .notes-page .doc-meta-actions--split .row-actions-end {
    width: 100%;
    justify-content: flex-start;
  }
  .notes-page .doc-meta-actions--split .row-actions-end .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .notes-files-page .project-files-search,
  .notes-files-page .project-files-upload .form-file-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  .notes-files-page .project-files-search .btn,
  .notes-files-page .project-files-upload .btn {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

.crm-notes-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.crm-notes {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.readby-grid {
  display: grid;
  gap: 12px;
}
.readby-title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.readby-unread {
  color: var(--link);
  font-weight: 700;
}
@media (min-width: 720px) {
  .readby-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.crm-note {
    line-height: 1.45;
  }
.crm-note__row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.crm-note__meta {
    font-weight: 900;
    color: var(--muted);
    font-size: 12px;
    margin-right: 6px;
  }
.crm-note__text {
    color: var(--text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 1;
  }
.crm-note__edit-form {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.crm-note.is-editing .crm-note__text {
  display: none;
}
.crm-grand-total {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.crm-grand-total__label {
  color: var(--muted);
  font-weight: 900;
}
.crm-grand-total__value {
  font-weight: 900;
}

.comment-list { display: grid; gap: 10px; margin-top: 12px; }
.comment {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--panel);
  contain: layout paint;
}
.comment-list > .comment,
#projectMessageList > .comment.project-message,
.project-message-children > .comment.project-message {
  content-visibility: auto;
  contain-intrinsic-size: 1px 160px;
}
/* Avoid paint clipping artifacts on My Todos rows (e.g. missing bottom border). */
#projects-todos .todo-section__list > .comment.js-todo-item {
  content-visibility: visible;
  contain-intrinsic-size: auto;
  contain: none;
}
@media (min-width: 720px) {
  #projects-todos {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  #projects-todos .pagehead {
    align-items: flex-start;
    gap: 12px 20px;
    margin-bottom: 14px;
  }
  #projects-todos .pagehead__actions {
    width: 100%;
    justify-content: flex-end;
  }
  #projects-todos .pagehead__actions-row--todos {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  #projects-todos .todo-search {
    width: min(360px, 100%);
  }
  #projects-todos .todo-project-tabs-nav {
    margin-top: 18px;
  }
  #projects-todos.is-tabs-mode .todo-group__body {
    padding-top: 14px;
  }
  #projects-todos.is-tabs-mode .todo-group__list {
    display: block;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--panel);
  }
  #projects-todos.is-tabs-mode .todo-section__header {
    padding: 12px 16px 10px;
  }
  #projects-todos.is-tabs-mode .todo-section__list > .js-todo-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: flex-start;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    box-shadow: none;
  }
  #projects-todos.is-tabs-mode .todo-section__list > .js-todo-item:last-child {
    border-bottom: 0;
  }
  #projects-todos.is-tabs-mode .todo-item__check {
    margin-top: 2px;
  }
  #projects-todos.is-tabs-mode .todo-item__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    min-width: 0;
  }
  #projects-todos.is-tabs-mode .todo-item__title {
    display: block;
    font-size: 15px;
    line-height: 1.35;
  }
  #projects-todos.is-tabs-mode .todo-item__description {
    max-width: 88ch;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
  }
  #projects-todos.is-tabs-mode .todo-item__assignee {
    margin-top: 0;
    font-size: 12px;
  }
  #projects-todos.is-tabs-mode .todo-discussion {
    grid-column: 1;
    grid-row: auto;
    align-self: start;
    justify-self: start;
    min-width: 0;
    width: auto;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  #projects-todos.is-tabs-mode .todo-discussion__summary {
    justify-content: flex-start;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--link);
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
    width: fit-content;
  }
  #projects-todos.is-tabs-mode .todo-discussion__summary::before {
    content: '\2197';
    font-size: 11px;
    opacity: 0.85;
  }
  #projects-todos.is-tabs-mode .todo-discussion__summary:hover {
    color: var(--link-hover);
  }
  #projects-todos.is-tabs-mode .todo-discussion[open] {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    width: 100%;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  #projects-todos.is-tabs-mode .todo-discussion[open] .todo-discussion__summary {
    justify-content: flex-start;
    width: fit-content;
  }
  #projects-todos.is-tabs-mode .todo-discussion__body {
    max-width: 860px;
  }
}
.comment__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.comment__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.comment__author { font-weight: 800; }
.comment__date { color: var(--muted); font-weight: 600; font-size: 13px; }
.comment__edited { color: var(--muted); font-weight: 600; font-size: 12px; font-style: italic; }
.comment__body { line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.comment__body--preline { white-space: pre-line; }
.comment__reply-target {
  margin: 4px 0 8px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
}
.comment__reply-target::before {
  content: '↳';
  color: color-mix(in srgb, var(--accent) 68%, white 32%);
  font-size: 12px;
  line-height: 1;
}
.comment__reply-target-name {
  color: var(--text);
}
.comment__edit {
  margin-top: 10px;
  overflow: hidden;
  overflow-anchor: none;
  will-change: max-height, opacity;
  max-height: 0;
  opacity: 0;
  transition: max-height 220ms ease, opacity 200ms ease;
}
.comment__edit.is-open {
  max-height: none;
  opacity: 1;
}
.comment__edit .comment-form { margin-top: 0; }
.comment.is-editing .comment__body { display: none; }
.comment.is-editing .attachments { display: none; }
.comment--nested {
  margin-left: 24px;
  background: var(--subtle-bg);
}
.comment--thread-depth-0 { margin-left: 0; }
.comment--thread-depth-1 { margin-left: 14px; }
.comment--thread-depth-2 { margin-left: 28px; }
.comment--reply-form { display: none; }
.comment--reply-form.is-open { display: block; }
.comments--content-thread {
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}
.comments--content-thread .comments__head {
  margin-bottom: 10px;
}
.comments--content-thread > .comment-form {
  margin-top: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.comments--content-thread .comments__divider {
  display: none;
}
.comments--content-thread #commentList {
  display: grid;
  gap: 0;
  margin-top: 0;
}
.comments--content-thread #commentList > .comment {
  margin: 0;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  contain: none;
  content-visibility: visible;
  contain-intrinsic-size: auto;
}
.comments--content-thread #commentList > .comment:last-child {
  border-bottom: 0;
}
.comments--content-thread .comment__meta {
  gap: 10px;
  margin-bottom: 6px;
}
.comments--content-thread .comment__who {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 7px;
  line-height: 1.25;
}
.comments--content-thread .comment__author {
  font-size: 14px;
  line-height: 1.25;
}
.comments--content-thread .comment__date,
.comments--content-thread .comment__edited {
  font-size: 11px;
  line-height: 1.25;
}
.comments--content-thread .comment__actions {
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  margin-left: auto;
}
.comments--content-thread .comment__actions .like-group {
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.comments--content-thread .comment__actions .like-group:hover,
.comments--content-thread .comment__actions .like-group.is-liked {
  background: transparent;
  border-color: transparent;
}
.comments--content-thread .comment__actions .like-toggle {
  padding: 0;
}
.comments--content-thread .comment__actions .like-toggle__count {
  padding: 0;
  border-left: 0;
  font-size: 12px;
  font-weight: 700;
}
.comments--content-thread .comment__actions .like-group.is-liked .like-toggle__count {
  border-left: 0;
}
.comments--content-thread .comment__actions .icon-btn {
  width: 30px;
  height: 30px;
}
.comments--content-thread .comment > .comment-list {
  display: grid;
  gap: 0;
  margin-top: 12px !important;
  margin-left: 12px;
  padding-left: 14px;
  border-left: 2px solid rgba(148,163,184,0.24);
}
.comments--content-thread .comment--nested {
  margin-left: 0;
  padding: 12px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  contain: none;
}
.comments--content-thread .comment-list > .comment--nested + .comment--nested {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(148,163,184,0.16);
}
.comments--content-thread .comment--nested .comment__meta {
  gap: 8px;
}
.comments--content-thread .comment--nested .comment__author {
  font-size: 14px;
}
.comments--content-thread .comment--nested .comment__date {
  font-size: 11px;
}
.comments--content-thread .comment--nested .comment__body {
  font-size: 13px;
  line-height: 1.5;
}
.comments--content-thread .comment--reply-form {
  display: none;
  margin: 10px 0 0 12px;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 2px solid rgba(148,163,184,0.24);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.comments--content-thread .comment--reply-form.is-open {
  display: block;
}
.comments--content-thread .comment--reply-form > .comment__meta,
.comments--content-thread .comment__edit > .comment__meta {
  margin-bottom: 6px;
}
.comments--content-thread .comment--reply-form .comment-form,
.comments--content-thread .comment__edit .comment-form {
  margin-top: 0 !important;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.comments--content-thread .comment__edit.is-open {
  margin-top: 10px;
  padding: 10px 0 0 14px;
  border-left: 2px solid rgba(148,163,184,0.24);
  background: transparent;
  box-shadow: none;
}
.comments--content-thread .attachments {
  margin-top: 8px;
}
.comments--content-thread .attachments .muted {
  margin-bottom: 4px !important;
  font-size: 11px;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.comments--content-thread .attachments__media {
  gap: 6px;
}
.comments--content-thread .attachments__media .attachment {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: auto;
  max-width: 190px;
  contain: none;
  content-visibility: visible;
}
.comments--content-thread .attachment--file {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.comments--content-thread .attachment__thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: 0 0 auto;
}
.comments--content-thread .attachment__thumb,
.comments--content-thread .attachment__file-card {
  border-color: rgba(148,163,184,0.18);
  background: rgba(148,163,184,0.08);
  box-shadow: none;
}
.comments--content-thread .attachment__thumb:hover,
.comments--content-thread .attachment__file-card:hover {
  border-color: rgba(148,163,184,0.28);
  background: rgba(148,163,184,0.12);
  text-decoration: none;
}
.comments--content-thread .attachment__file-card {
  min-height: 0;
  width: auto;
  max-width: 190px;
  padding: 7px 8px;
  border-radius: 10px;
}
.comments--content-thread .attachment__link,
.comments--content-thread .attachment__file-name {
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comments--content-thread .attachment__detail,
.comments--content-thread .attachment__file-detail {
  color: var(--muted);
  font-size: 10px;
}
.comments--content-thread .attachment__file-icon--card {
  width: 24px;
  height: 24px;
}
.comments--content-thread .attachment__file-ext-badge {
  display: none;
}
#projectMessageList { display: block; }
#projectMessageList > .project-message + .project-message { margin-top: 14px; }
.project-message { display: grid; gap: 14px; }
.project-message .comment__meta { margin-bottom: 0; }
.comments--project-thread #projectMessageList {
  display: grid;
  gap: 0;
  margin-top: 0 !important;
}
.comments--project-thread #projectMessageList > .project-message,
.comments--project-thread .project-message-children > .project-message {
  content-visibility: visible;
  contain: none;
  contain-intrinsic-size: auto;
}
.comments--project-thread #projectMessageList > .project-message {
  margin-top: 0;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 10px;
}
.comments--project-thread #projectMessageList > .project-message:first-child {
  padding-top: 16px;
}
.comments--project-thread .project-message .comment__meta {
  gap: 12px;
}
.comments--project-thread .project-message .comment__who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}
.comments--project-thread .project-message .comment__author {
  font-size: 15px;
}
.comments--project-thread .project-message .comment__date,
.comments--project-thread .project-message .comment__edited {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-size: 12px;
}
.comments--project-thread .project-message .comment__body {
  font-size: 14px;
}
.comments--project-thread .comment-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.comments--project-thread .comment-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.comments--project-thread .comment-action-btn:hover {
  color: var(--text);
}
.comments--project-thread .comment-action-btn:focus-visible,
.comments--project-thread .comment-action-menu__item:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.comments--project-thread .comment-action-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.comments--project-thread .comment-action-btn__icon-svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.comments--project-thread .comment-action-bar .like-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  color: var(--muted);
  line-height: 1;
}
.comments--project-thread .comment-action-bar .like-group:hover {
  background: transparent;
  color: var(--text);
}
.comments--project-thread .comment-action-bar .like-group.is-liked {
  background: transparent;
  border-color: transparent;
  color: var(--liked);
}
.comments--project-thread .comment-action-bar .like-toggle {
  padding: 0;
}
.comments--project-thread .comment-action-bar .like-toggle__count {
  padding: 0;
  border-left: 0;
  font-size: 13px;
  font-weight: 700;
}
.comments--project-thread .comment-action-bar .like-group.is-liked .like-toggle__count {
  border-left: 0;
}
.comments--project-thread .comment-action-menu {
  position: relative;
}
.comments--project-thread .comment-action-menu[open] {
  z-index: 6;
}
.comments--project-thread .comment-action-menu__toggle {
  list-style: none;
}
.comments--project-thread .comment-action-menu__toggle::-webkit-details-marker {
  display: none;
}
.comments--project-thread .comment-action-menu__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 8;
  min-width: 148px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.comments--project-thread .comment-action-menu__form {
  display: block;
}
.comments--project-thread .comment-action-menu__item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.comments--project-thread .comment-action-menu__item:hover {
  background: var(--subtle-bg);
}
.comments--project-thread .comment-action-menu__item--danger {
  color: var(--danger);
}
.comments--project-thread .comment-action-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.comments--project-thread .comment-action-menu__icon-svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.comments--project-thread .attachments {
  margin-top: 8px;
}
.comments--project-thread .attachments .muted {
  margin-bottom: 4px !important;
  font-size: 11px;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.comments--project-thread .attachments__media {
  gap: 6px;
}
.comments--project-thread .attachments__media .attachment {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: auto;
  max-width: 190px;
}
.comments--project-thread .attachment--file {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.comments--project-thread .attachment__thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: 0 0 auto;
}
.comments--project-thread .attachment__thumb,
.comments--project-thread .attachment__file-card {
  border-color: rgba(148,163,184,0.18);
  background: rgba(148,163,184,0.08);
  box-shadow: none;
}
.comments--project-thread .attachment__thumb:hover,
.comments--project-thread .attachment__file-card:hover {
  border-color: rgba(148,163,184,0.28);
  background: rgba(148,163,184,0.12);
  text-decoration: none;
}
.comments--project-thread .attachment__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.comments--project-thread .attachment__file-card {
  min-height: 0;
  width: auto;
  max-width: 190px;
  padding: 7px 8px;
  border-radius: 10px;
}
.comments--project-thread .attachment__link {
  color: var(--text);
  line-height: 1.3;
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comments--project-thread .attachment__detail {
  color: var(--muted);
  font-size: 10px;
}
.comments--project-thread .attachment__file-icon--card {
  width: 24px;
  height: 24px;
}
.comments--project-thread .attachment__file-name {
  font-size: 12px;
  -webkit-line-clamp: 2;
}
.comments--project-thread .attachment__file-ext-badge {
  display: none;
}
@media (max-width: 720px) {
  .project-pinned .attachment,
  .comments--project-thread .attachments__media .attachment,
  .project-pinned .attachment--file,
  .comments--project-thread .attachment--file {
    max-width: 168px;
  }
  .project-pinned .attachment__thumb,
  .comments--project-thread .attachment__thumb {
    width: 34px;
    height: 34px;
  }
  .project-pinned .attachment__file-card,
  .comments--project-thread .attachment__file-card {
    max-width: 168px;
    padding: 7px 8px;
  }
}

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.table thead th {
  background: var(--panel2);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2px;
  font-weight: 900;
}
.table tbody tr:nth-child(even) { background: var(--subtle-bg); }
.table tbody tr:hover { background: rgba(37,99,235,0.06); }

.contract-table input[type="text"] { width: 100%; }
.contract-table td { vertical-align: middle; }
.contract-table td:last-child { white-space: nowrap; }
.contract-table .btn { width: auto; }
.contract-table .btn--small { padding: 7px 10px; }
.contract-col-check { width: 48px; }
.contract-col-publication { width: 140px; }
.contract-col-rate,
.contract-col-discount,
.contract-col-net { width: 120px; }
.contract-section-title { margin-top: 20px; }
.contract-send-email { max-width: 420px; }
.contract-totals { margin-top: 16px; display: grid; gap: 10px; max-width: 320px; }
.contract-add-row { margin-top: 12px; }
.contract-sign-wrap { display: flex; gap: 18px; align-items: flex-start; width: 100%; }
.contract-sign-pdf { flex: 1 1 auto; min-width: 0; }
.contract-sign-side { flex: 0 0 340px; max-width: 360px; }
.contract-sign-box { border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: var(--panel2); }
.contract-sign-box + .contract-sign-box { margin-top: 12px; }
.contract-sign-box--embed { padding: 0; overflow: hidden; background: var(--panel); }
.contract-sign-iframe { width: 100%; height: 82vh; border: 0; display: block; background: #fff; }
.contract-sign-title { font-weight: 600; margin: 0 0 10px; }
.contract-sign-list { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.contract-sign-list strong { font-weight: 600; }
.contract-sign-box form .btn { margin-top: 10px; }
.contract-sign-download { margin-top: 12px; }
@media (max-width: 980px) {
  .contract-sign-wrap { flex-direction: column; }
  .contract-sign-side { flex: 1 1 auto; max-width: none; width: 100%; }
  .contract-sign-iframe { height: 60vh; }
}
@media (max-width: 720px) {
  .contract-table td:last-child {
    white-space: normal;
  }
}
.doc-meta-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.doc-meta-actions--compact { gap: 8px; }
.doc-meta-actions--split {
  width: 100%;
  justify-content: space-between;
}
.doc-meta-actions--stack {
  flex-direction: column;
  align-items: stretch;
}
.doc-meta-actions--center {
  justify-content: center;
}
.comment.project-message-subform {
  margin-top: 10px;
  background: var(--subtle-bg);
  overflow: hidden;
  overflow-anchor: none;
  will-change: max-height, opacity;
  max-height: 0;
  opacity: 0;
  transition: max-height 220ms ease, opacity 200ms ease;
}
.comment.project-message-subform.is-open {
  max-height: none;
  opacity: 1;
}
.comment.project-message-subform .comment-form { margin-top: 0; }
.project-message-children { margin-top: 14px; display: block; }
.project-message-children > .project-message + .project-message { margin-top: 14px; }
.comments--project-thread .project-message-children {
  display: grid;
  gap: 0;
  margin-top: 10px;
  margin-left: 12px;
  padding-left: 14px;
  border-left: 2px solid rgba(148,163,184,0.24);
}
.comments--project-thread .project-message-children > .project-message {
  margin-top: 0;
  padding: 12px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 10px;
}
.comments--project-thread .project-message-children > .project-message .comment__meta {
  gap: 8px;
}
.comments--project-thread .project-message-children > .project-message .comment__who {
  gap: 2px 6px;
}
.comments--project-thread .project-message-children > .project-message .comment__author {
  font-size: 14px;
}
.comments--project-thread .project-message-children > .project-message .comment__date,
.comments--project-thread .project-message-children > .project-message .comment__edited {
  font-size: 11px;
}
.comments--project-thread .project-message-children > .project-message .comment__body {
  font-size: 13px;
  line-height: 1.5;
}
.comments--project-thread .project-message-children > .project-message .comment__actions {
  gap: 6px;
}
.comments--project-thread .project-message-children > .project-message .icon-btn {
  width: 30px;
  height: 30px;
}
.comments--project-thread .project-message-children > .project-message + .project-message {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(148,163,184,0.16);
}
.comments--project-thread .project-message-children > .project-message:first-child {
  padding-top: 0;
}
.comments--project-thread .project-message-children > .project-message.project-message--subreply {
  margin-left: 24px;
  padding-left: 14px;
  border-left: 2px solid rgba(148,163,184,0.24);
  background: linear-gradient(90deg, rgba(148,163,184,0.05), transparent 72%);
}
.project-guest-message-list .project-message--subreply {
  margin-left: 24px;
  padding-left: 14px;
  border-left: 2px solid rgba(148,163,184,0.22);
  background: linear-gradient(90deg, rgba(148,163,184,0.05), transparent 72%);
}
.comments--project-thread .comment.project-message-subform {
  margin: 10px 0 0 12px;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 2px solid rgba(148,163,184,0.24);
  border-radius: 0;
  background: transparent;
}
.comments--project-thread .comment.project-message-subform .comment-form.project-reply-compose {
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(148,163,184,0.06), transparent);
}
.comments--project-thread .comment.project-message-subform .project-reply-compose,
.comments--project-thread .comment.project-message-subform .project-reply-compose .field--mentions {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.comments--project-thread .comment.project-message-subform .project-reply-compose .field__head {
  align-items: center;
}
.comments--project-thread .project-reply-compose__title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.comments--project-thread .comment.project-message-subform .project-reply-compose .field__controls .icon-btn {
  width: 32px;
  height: 32px;
}
.comments--project-thread .comment.project-message-subform .project-reply-compose textarea {
  min-height: 88px;
}
.comments--project-thread .comment.project-message-subform .project-reply-compose__actions {
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(148,163,184,0.14);
}
.comments--project-thread .comment.project-message-subform .project-reply-compose__files span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.comments--project-thread .project-reply-compose__buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.comments--project-thread .comment__edit {
  margin-top: 8px;
}
.comments--project-thread .comment__edit.is-open {
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.comments--project-thread .comment-edit-form {
  display: grid;
  gap: 10px;
}
.comments--project-thread .comment-edit-form,
.comments--project-thread .comment-edit-form .field--mentions {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.comments--project-thread .comment-edit-form textarea {
  min-height: 96px;
}
.comments--project-thread .comment-edit-form:focus-within .message-textarea {
  min-height: 112px;
}
.comments--project-thread .comment__edit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}
.comments--project-thread .comment__edit-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

@keyframes projectNotifPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.00), 0 0 0 0 rgba(59, 130, 246, 0.00);
  }
  35% {
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.48), 0 0 0 6px rgba(59, 130, 246, 0.18);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.32), 0 0 0 4px rgba(59, 130, 246, 0.10);
  }
}

.project-notif-highlight {
  scroll-margin-top: 96px;
  border-color: rgba(59, 130, 246, 0.42) !important;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.32), 0 0 0 4px rgba(59, 130, 246, 0.10);
  animation: projectNotifPulse 1.8s ease-in-out 2;
}

.comments--project-thread .project-message.project-notif-highlight,
.todo-item.project-notif-highlight,
.project-pinned.project-notif-highlight,
.tile.project-notif-highlight {
  background: rgba(59, 130, 246, 0.08);
}

.js-project-member {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.js-project-guest {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.js-project-guest > div {
  min-width: 0;
  flex: 1 1 auto;
}
.js-project-guest details {
  max-width: 100%;
}
.js-project-guest details a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.js-project-guest details .muted {
  overflow-wrap: anywhere;
}
.js-project-guest-inactive {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.js-project-guest-email {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.js-project-guest-email .field {
  min-width: 0;
  flex: 1 1 220px;
}
.js-project-guest-email input {
  max-width: 100%;
}
.js-project-guest-email button {
  white-space: nowrap;
}
.project-guest-code {
  font-weight: 800;
  letter-spacing: 1px;
}
.project-external-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-external-add-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.project-external-add-input {
  flex: 1 1 220px;
  min-width: 0;
}
.project-external-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--subtle-bg);
}
.project-external-row__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.project-guest-note {
  margin-top: 10px;
  font-size: 12px;
}
.project-guest-note--footer {
  margin-top: 14px;
}
.project-guest-message-list {
  margin-top: 12px;
}
.project-guest-todo-list {
  margin-top: 10px;
}
.project-guest-todo-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.project-guest-todo-check {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: transparent;
}
.project-guest-todo-check.is-done {
  background: rgba(22,163,74,0.10);
}
.project-guest-todo-body {
  flex: 1 1 auto;
  min-width: 0;
}
.project-guest-todo-title {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.empty {
  padding: 18px 0;
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.table-wrap--narrow {
  width: 100%;
  max-width: 920px;
  margin: 0;
}

.data-table.comms-table { min-width: 0; }
.data-table.data-table--auto { min-width: 0; table-layout: auto; }
.data-table.io-editor-table--tight { min-width: 0; table-layout: auto; }
.data-table.io-editor-table--tight .col-date,
.data-table.io-editor-table--tight .col-count { width: auto; }
.data-table.io-table--tight { min-width: 0; table-layout: auto; }
.data-table.io-table--tight .col-date,
.data-table.io-table--tight .col-count { width: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}
.data-table thead th {
  background: var(--panel2);
  color: var(--muted);
  padding: 10px 12px;
  font-size: 13px;
  letter-spacing: 0.2px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-weight: 900;
}
.data-table thead th.is-sortable {
  cursor: pointer;
  user-select: none;
}
.data-table thead th.is-sortable:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
}
.data-table thead th.is-sortable::after {
  content: "";
  font-size: 10px;
  color: var(--muted);
  margin-left: 4px;
}
.data-table thead th.is-sortable.is-sorted-asc::after { content: "^"; }
.data-table thead th.is-sortable.is-sorted-desc::after { content: "v"; }
.data-table tbody td {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.data-table tbody tr:where(:nth-child(even)) {
  background: var(--subtle-bg);
}
.data-table tbody tr:hover {
  background: rgba(37,99,235,0.06);
}
.data-table tbody tr {
  content-visibility: auto;
  contain-intrinsic-size: 1px 44px;
}
.data-table tbody tr.is-new {
  background: rgba(246, 199, 0, 0.10);
}
.data-table tbody tr.is-new:hover {
  background: rgba(246, 199, 0, 0.14);
}
.data-table tbody tr.row-inactive {
  opacity: 0.72;
}
.data-table tbody tr.row-inactive:hover {
  opacity: 1;
}
.data-table .col-comments,
.data-table .col-privacy {
  text-align: center;
  width: 90px;
}
.data-table .col-date {
  width: 120px;
  white-space: nowrap;
}
.data-table .col-author {
  width: 160px;
}
.data-table .col-dept {
  width: 140px;
}
.data-table .col-count {
  width: 90px;
  text-align: center;
}
.data-table--compact thead th,
.data-table--compact tbody td {
  padding: 9px 10px;
}

.data-table.io-orders-table--search {
  table-layout: fixed;
}
.data-table.io-orders-table--search .col-author,
.data-table.io-orders-table--search .col-count {
  width: auto;
}
.data-table.io-orders-table--search th:first-child,
.data-table.io-orders-table--search td:first-child {
  width: 42%;
}
.data-table.io-orders-table--search th:nth-child(2),
.data-table.io-orders-table--search td:nth-child(2) {
  width: 33%;
}
.data-table.io-orders-table--search th:nth-child(3),
.data-table.io-orders-table--search td:nth-child(3) {
  width: 25%;
}
.data-table.io-orders-table--search td {
  overflow-wrap: anywhere;
}

.table-submeta {
  display: none;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.io-rates-print-table {
  table-layout: fixed;
}
.io-rates-print-table thead th,
.io-rates-print-table tbody td {
  padding: 6px 6px;
  font-size: 12px;
}
.io-rates-print-table th:first-child,
.io-rates-print-table td:first-child {
  width: 160px;
}
.io-rates-print-table .col-count {
  width: 64px;
}
.io-rates-print-table input {
  padding: 6px 6px;
  border-radius: 10px;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 12px;
}
.cal-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.cal-chip--neutral { --chip: #cccccc; }
.cal-chip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--chip, #cccccc);
  border: 1px solid rgba(17, 17, 17, 0.16);
}

.cal {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--panel);
  overflow-x: auto;
}
.cal-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 860px;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2px;
}
.cal-head > div {
  padding: 6px 6px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 860px;
  gap: 8px;
  margin-top: 8px;
}
.cal-cell {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: var(--panel);
  min-height: 120px;
}
.cal-cell.is-empty {
  background: var(--panel2);
}
.cal-cell.is-today {
  border-color: rgba(246, 199, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(246, 199, 0, 0.30);
}
.cal-cell.is-today .cal-daynum {
  color: var(--brand);
}
.cal-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.cal-daynum {
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
}
.cal-daynum:hover { text-decoration: underline; }
.cal-events {
  display: grid;
  gap: 6px;
}
.cal-event {
  display: block;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid rgba(17,17,17,0.12);
  border-left: 4px solid var(--cal-color, var(--brand));
  background: var(--cal-bg, var(--panel2));
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.25;
}
.cal-event:hover {
  border-color: rgba(17,17,17,0.20);
  background: var(--cal-bg-hover, rgba(255,204,0,0.14));
}
.cal-more {
  font-size: 12px;
  font-weight: 800;
  color: var(--link);
  text-decoration: none;
}
.cal-more:hover { text-decoration: underline; }

.cal-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.cal-code-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel2);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.cal-code-option input {
  margin: 0;
}
.cal-code-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--chip, #cccccc);
  border: 1px solid rgba(17, 17, 17, 0.16);
}
.cal-code-swatch--none { --chip: #cbd5e1; }
.cal-code-swatch--neutral { --chip: #94a3b8; }
.calendar-code-field-name {
  flex: 2;
}
.calendar-code-field-color {
  flex: 0 0 160px;
}
.calendar-code-field-submit {
  align-self: flex-end;
}

@media (min-width: 720px) {
  .container { margin: 36px auto; }
  .card { padding: 22px; }
  .h1 { font-size: 26px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn { width: auto; justify-self: start; }
  .pagehead { flex-direction: row; justify-content: space-between; align-items: center; }
  .pagehead__actions { flex-direction: row; align-items: center; justify-content: flex-end; }
  .filters { grid-template-columns: 1fr 190px 240px auto; align-items: end; }
  .filters.filters--double { grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; }
  .filters.filters--triple { grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 220px) minmax(140px, 180px) auto; }
  .filters.filters--single { grid-template-columns: minmax(180px, 320px) auto; }
  .filters.filters--todos { grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) auto; }
  .filters.filters--clientdb { grid-template-columns: 1fr auto; }
  .filters.filters--io-orders { grid-template-columns: 1fr 190px 240px 120px auto; }
  .form-grid { grid-template-columns: 1fr 1fr 1.4fr; align-items: end; }
  .form-row { grid-template-columns: 1fr 1fr; align-items: end; }
  .form-row.form-row--todos-add {
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 240px) minmax(150px, 180px) minmax(150px, 180px);
  }
  .list-item { flex-direction: row; align-items: center; }
  .comment-form { grid-template-columns: 1fr auto; align-items: end; }
  .comment-form--stacked { grid-template-columns: minmax(0, 1fr); }
  .todo-add-fields { grid-template-columns: minmax(0, 1fr) 240px; align-items: end; }
  .project-sidebar .todo-add-fields { grid-template-columns: minmax(0, 1fr); }
  .comments--project-thread .project-message .comment__author { font-size: 16px; }
  .comments--project-thread .project-message .comment__date,
  .comments--project-thread .project-message .comment__edited { font-size: 12px; }
  .comments--project-thread .project-message .comment__body { font-size: 15px; }
  .comments--project-thread .project-message-children > .project-message .comment__author { font-size: 15px; }
  .comments--project-thread .project-message-children > .project-message .comment__date,
  .comments--project-thread .project-message-children > .project-message .comment__edited { font-size: 11px; }
  .comments--project-thread .project-message-children > .project-message .comment__body { font-size: 14px; }
  .comments--project-thread .comment__reply-target { font-size: 11px; }
}

@media (max-width: 720px) {
  .data-table {
    min-width: 720px;
  }
  .data-table.table--min-w-0,
  .data-table.data-table--auto,
  .data-table.io-table--tight,
  .data-table.io-editor-table--tight {
    min-width: 0;
  }
  #corpheader { padding: 10px 10px; }
  .corpheader__inner { padding: 0 12px; gap: 10px; }
  .corpheader__right { gap: 8px; }

  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="number"],
  input[type="password"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px;
  }

  .list-item__badges { gap: 6px; }
  .list-item__badges .badge {
    font-size: 11px;
    padding: 4px 6px;
  }

  .notif-pop {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - var(--header-h) - 24px);
    overflow: auto;
  }

  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; }
  .project-filter-mobile { display: block; }
  .project-filter-desktop { display: none; }

  .pagehead__actions { align-items: stretch; }
  .pagehead__actions > .btn { width: 100%; justify-content: center; }
  .pagehead__actions > .tabs { width: 100%; }
  .pagehead__actions .pagehead-form-btn { width: 100%; }
  .pagehead__actions .pagehead-form-btn .btn { width: 100%; justify-content: center; }
  .pagehead__actions-row--compact-mobile {
    width: auto;
    justify-content: flex-end;
    align-items: center;
  }
  .pagehead__actions-row--compact-mobile .btn { width: auto; justify-content: flex-start; }
  .pagehead__actions-row--compact-mobile .pagehead-form-btn { width: auto; }
  .pagehead__actions-row--compact-mobile .pagehead-form-btn .btn { width: auto; justify-content: flex-start; }
  .pagehead__actions-row--todos {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .pagehead__actions-row--todos .btn { width: 100%; justify-content: center; }
  .pagehead__actions-row--todos .tabs { width: 100%; }
  .doc-meta-actions .btn { width: auto; }
  .doc-meta-actions .pagehead-form-btn { width: auto; }
  .doc-meta-actions .pagehead-form-btn .btn { width: auto; }
  .pagehead__actions-row--stack-mobile {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .pagehead__actions-row--dense {
    gap: 6px;
  }
  .pagehead__actions-row--stack-mobile .btn {
    width: 100%;
    justify-content: center;
  }
  .row-actions-end {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .list-item__action-slot.row-actions-end {
    width: 100%;
    margin-left: 0;
  }
  .cell-actions {
    white-space: normal;
    text-align: left;
  }
  .col-actions {
    width: auto;
  }
  .col-actions--compact {
    width: auto;
  }
  .todo-search { width: 100%; }

  .pagehead--projects .pagehead__actions-row {
    width: auto;
    justify-content: flex-end;
  }
  .pagehead--projects .pagehead__actions-row .btn {
    width: auto;
    min-width: 0;
  }
  .pagehead__actions-row--projects {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .pagehead__title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .pagehead__title-row--project {
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
  }
  .project-layout {
    gap: 10px;
    margin-top: 12px;
  }
  .project-main.card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .content-main.card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .project-main .crumbs {
    margin-bottom: 10px;
  }
  .pagehead {
    margin-bottom: 10px;
  }
  .pagehead__project-title {
    font-size: 20px;
    line-height: 1.22;
  }
  .pagehead__title-actions--project {
    width: 100%;
    margin-left: 0;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
  }
  .pagehead__title-actions--project .badge {
    padding: 6px 10px;
    font-size: 11px;
  }
  .comment--thread-depth-1,
  .comment--thread-depth-2 {
    margin-left: 0;
  }
  .comments--project-thread > .comment-form {
    padding: 12px;
  }
  .project-mobile-todo-slot {
    margin-top: 10px;
  }
  .project-summary-card {
    margin-top: 10px;
    padding: 10px 12px;
    gap: 10px;
    border-radius: 16px;
    border-left-width: 3px;
  }
  .project-pinned {
    padding: 12px;
  }
  .project-intro {
    padding: 12px 14px;
  }
  .project-summary-card .doc-meta {
    gap: 10px;
  }
  .project-summary-card > .project-intro,
  .project-summary-card > .project-pinned {
    padding: 0;
  }
  .project-summary-card > .project-pinned {
    padding-top: 12px;
  }
  .project-intro__body {
    font-size: 15px;
    line-height: 1.6;
  }
  .project-intro__readby > .btn {
    width: 100%;
    justify-content: flex-start;
  }
  .project-pinned__title {
    font-size: 16px;
  }
  .project-pinned__actions,
  .project-pinned__minor-actions,
  .comments__head--project .btn {
    width: auto;
  }
  .project-pinned__actions {
    justify-content: flex-start;
    width: auto;
  }
  .project-pinned__minor-actions {
    width: auto;
    gap: 6px;
  }
  .project-pinned__head-meta {
    gap: 4px 10px;
    font-size: 11px;
  }
  .project-pinned__form .form-file-actions {
    flex-wrap: wrap;
    align-items: flex-end;
    padding-top: 8px;
  }
  .project-pinned__files {
    width: 100%;
  }
  .project-pinned__buttons {
    margin-left: 0;
  }
  .project-pinned__file-options {
    width: 100%;
  }
  .comments {
    margin-top: 14px;
    padding-top: 12px;
  }
  .comments--content-thread {
    margin-top: 14px;
    padding-top: 0;
  }
  .comments--content-thread .comments__head {
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }
  .comments--content-thread .comments__head .h2 {
    font-size: 22px;
  }
  .comments--content-thread > .comment-form {
    padding-bottom: 12px;
  }
  .comments--content-thread > .comment-form .form-file-actions,
  .comments--content-thread .comment--reply-form .form-file-actions,
  .comments--content-thread .comment__edit .form-file-actions {
    flex-wrap: wrap;
    align-items: flex-end;
  }
  .comments--content-thread > .comment-form .form-file-actions > .field,
  .comments--content-thread .comment--reply-form .form-file-actions > .field,
  .comments--content-thread .comment__edit .form-file-actions > .field {
    width: 100%;
  }
  .comments--content-thread > .comment-form .form-file-actions > .btn,
  .comments--content-thread .comment--reply-form .form-file-actions > .btn,
  .comments--content-thread .comment__edit .form-file-actions > .btn {
    margin-left: 0;
  }
  .comments--content-thread #commentList > .comment {
    padding: 12px 0;
  }
  .comments--content-thread .comment__meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 9px;
    row-gap: 4px;
    align-items: center;
  }
  .comments--content-thread .comment__meta > .avatar {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin-top: 1px;
  }
  .comments--content-thread .comment__who {
    grid-column: 2;
    grid-row: 1;
    gap: 2px 4px;
    min-width: 0;
  }
  .comments--content-thread .comment__actions {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-content: flex-end;
    max-width: 132px;
    margin-left: 0;
    margin-top: 0;
  }
  .comments--content-thread .comment__meta:not(:has(> .avatar)) {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .comments--content-thread .comment__meta:not(:has(> .avatar)) .comment__who {
    grid-column: 1;
  }
  .comments--content-thread .comment__meta:not(:has(> .avatar)) .comment__actions {
    grid-column: 2;
  }
  .comments--content-thread .comment__date,
  .comments--content-thread .comment__edited {
    white-space: normal;
    line-height: 1.35;
    font-size: 10.5px;
  }
  .comments--content-thread .comment__body {
    font-size: 14px;
    line-height: 1.58;
  }
  .comments--content-thread .comment > .comment-list,
  .comments--content-thread .comment--reply-form {
    margin-left: 0;
    padding-left: 10px;
    border-left-width: 1px;
  }
  .comments--content-thread .comment--nested {
    padding-top: 10px;
  }
  .comments--content-thread .comment-list > .comment--nested + .comment--nested {
    margin-top: 10px;
    padding-top: 10px;
  }
  .comments--content-thread .comment--nested .comment__author {
    font-size: 14px;
  }
  .comments--content-thread .comment--nested .comment__body {
    font-size: 13px;
    line-height: 1.52;
  }
  .comments--content-thread .attachment,
  .comments--content-thread .attachments__media .attachment,
  .comments--content-thread .attachment--file {
    max-width: 168px;
  }
  .comments--content-thread .attachment__thumb {
    width: 34px;
    height: 34px;
  }
  .comments--content-thread .attachment__file-card {
    max-width: 168px;
    padding: 7px 8px;
  }
  .comments--content-thread .comment__actions .icon-btn {
    width: 28px;
    height: 28px;
  }
  .comments--content-thread .comment__actions .like-toggle__count {
    font-size: 11px;
  }
  .comments__head--project {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
  }
  .comments__head--project .h2 {
    font-size: 22px;
  }
  .comments--project-thread > .comment-form.project-compose .form-file-actions {
    flex-wrap: wrap;
    align-items: flex-end;
    padding-top: 8px;
  }
  .comments--project-thread > .comment-form.project-compose .form-file-actions > .btn {
    margin-left: 0;
  }
  .comments--project-thread > .comment-form.project-compose .project-compose__files {
    width: 100%;
  }
  .comments--project-thread > .comment-form.project-compose .project-compose__buttons {
    margin-left: 0;
  }
  .comments--project-thread #projectMessageList > .project-message {
    padding: 12px 0;
  }
  .comments--project-thread .project-message .comment__meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 2px;
    align-items: flex-start;
  }
  .comments--project-thread .project-message .comment__meta > .avatar {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin-top: 1px;
  }
  .comments--project-thread #projectMessageList > .project-message > .comment__meta > .avatar.avatar--sm {
    width: 32px;
    height: 32px;
  }
  .comments--project-thread .project-message-children > .project-message > .comment__meta > .avatar.avatar--xs {
    width: 26px;
    height: 26px;
  }
  .comments--project-thread .project-message .comment__who {
    grid-column: 2;
    gap: 2px 4px;
  }
  .comments--project-thread .project-message .comment__date,
  .comments--project-thread .project-message .comment__edited {
    white-space: normal;
    line-height: 1.35;
  }
  .comments--project-thread .project-message .comment__body {
    font-size: 14px;
    line-height: 1.58;
  }
  .comments--project-thread .comment-action-bar {
    gap: 12px;
    margin-top: 10px;
  }
  .comments--project-thread .comment-action-menu__panel {
    left: 0;
    right: auto;
  }
  .comments--project-thread .project-message-children,
  .comments--project-thread .comment.project-message-subform {
    margin-left: 0;
    padding-left: 10px;
    border-left-width: 1px;
  }
  .comments--project-thread .project-message-children > .project-message {
    padding-top: 10px;
  }
  .comments--project-thread .project-message-children > .project-message + .project-message {
    margin-top: 10px;
    padding-top: 10px;
  }
  .comments--project-thread .project-message-children > .project-message.project-message--subreply {
    margin-left: 14px;
    padding-left: 10px;
  }
  .project-guest-message-list .project-message--subreply {
    margin-left: 14px;
    padding-left: 10px;
  }
  .comments--project-thread .project-message-children > .project-message .comment__author {
    font-size: 14px;
  }
  .comments--project-thread .project-message-children > .project-message .comment__body {
    font-size: 13px;
    line-height: 1.52;
  }
  .comments--project-thread .comment.project-message-subform .project-reply-compose__actions {
    flex-wrap: wrap;
    align-items: flex-end;
  }
  .comments--project-thread .comment.project-message-subform .comment-form.project-reply-compose {
    padding: 10px 12px;
    border-radius: 16px;
  }
  .comments--project-thread .comment.project-message-subform .project-reply-compose__title {
    font-size: 12px;
  }
  .comments--project-thread .comment.project-message-subform .project-reply-compose__files {
    width: 100%;
  }
  .comments--project-thread .project-reply-compose__buttons {
    margin-left: 0;
  }
  .comments--project-thread .comment__edit-actions {
    flex-wrap: wrap;
    align-items: flex-end;
  }
  .comments--project-thread .comment__edit-buttons {
    margin-left: 0;
  }
  .comments--project-thread .comment-edit-form textarea,
  .comments--project-thread .comment.project-message-subform .project-reply-compose textarea {
    min-height: 84px;
  }
  .project-sidebar {
    gap: 10px;
  }
  .project-sidebar .tile {
    padding: 12px;
    border-radius: 14px;
  }
  .todo-head,
  .members-head {
    margin-bottom: 6px;
    gap: 8px;
  }
  .todo-head h2,
  .members-head h2 {
    font-size: 15px;
  }
  .todo-count,
  .members-count {
    font-size: 11px;
  }
  .jobtracker-col-180,
  .jobtracker-col-200 {
    width: auto;
  }
  .pagehead--projects .project-scope-row {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .pagehead--projects .project-scope-row .tabs,
  .pagehead--projects .project-scope-row .project-filter-mobile {
    width: auto;
  }

  input[type="date"],
  input[type="time"] {
    max-width: 100%;
    min-width: 0;
  }

  .cal-legend {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cal-legend::-webkit-scrollbar { display: none; }
  .cal-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 11px;
    padding: 5px 8px;
  }

  .todo-group .table-wrap { border: 0; box-shadow: none; }
  .todo-group .data-table { min-width: 0; }
  .todo-group .data-table thead { display: none; }
  .todo-group .data-table tbody {
    display: grid;
    gap: 10px;
  }
  .todo-group .data-table tbody tr {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
  }
  .todo-group .data-table tbody td {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 0;
    padding: 0;
    font-size: 13px;
  }
  .todo-group .data-table tbody td::before {
    content: attr(data-label);
    font-weight: 800;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
.todo-group .data-table tbody tr:hover {
  background: var(--panel);
}
@media (max-width: 720px) {
  .todo-group .data-table tbody td[data-label="Created"],
  .todo-group .data-table tbody td[data-label="Status"] {
    display: none;
  }
  .todo-item.todo-row--focus {
    padding: 6px;
    border-radius: 10px;
  }
  .todo-discussion__comment {
    padding: 9px 10px;
  }
}

  .filters--collapsible { display: block; }
  .filters--collapsible .filters__toggle {
    display: inline-flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .filters--collapsible .filters__body {
    display: grid;
    gap: 10px;
    margin-top: 10px;
  }
  .filters--collapsible:not(.is-open) .filters__body { display: none; }

  .toast-region {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .comms-table .table-submeta { display: flex; }

  .data-table.comms-table { min-width: 0; }
  .comms-table .col-author,
  .comms-table .col-dept,
  .comms-table .col-privacy {
    display: none;
  }
  .comms-table .col-comments { width: 70px; }

  .table-wrap--accounts {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .accounts-table { min-width: 0; table-layout: auto; }
  .accounts-table thead { display: none; }
  .accounts-table tbody { display: grid; gap: 12px; }
  .accounts-table tbody tr {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
  }
  .accounts-table tbody td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 0;
    border: 0;
  }
  .accounts-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.02em;
    color: var(--muted);
  }
  .accounts-table tbody td.col-user {
    display: block;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }
  .accounts-table tbody td.col-user::before { display: none; }
  .accounts-table tbody td.col-status::before { display: none; }
  .accounts-table tbody td.col-contact,
  .accounts-table tbody td.col-role,
  .accounts-table tbody td.col-count {
    display: none;
  }
  .account-card__start { display: none; }
  .account-card__details { display: block; }
  .accounts-table .col-status { width: auto; text-align: left; }
  .accounts-table .row-actions-end {
    width: auto;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }
  .accounts-table .row-actions-end form {
    width: auto;
    margin: 0;
  }

  .user-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .user-card__main { width: 100%; }
  .user-card__badges { justify-content: center; }
  .user-card__grid { grid-template-columns: minmax(0, 1fr); }
  .user-card__field,
  .user-card__desc {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 520px) {
  #corpheader { padding: 8px 8px; }
  .corpheader__inner { padding: 0 10px; gap: 8px; }
  .brand__text { display: none; }
  .brand__logo { height: 26px; max-width: 132px; }
  #bodycont { padding: 14px 10px; }
  .card { padding: 16px; }
  .notif-pop { left: 10px; right: 10px; }
  .notif-item { padding: 10px 0; }
  .likes-modal,
  .user-modal,
  .media-lightbox,
  .avatar-lightbox { padding: 14px; }

  .table-wrap--content {
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
  }
  .comms-table { min-width: 560px; }
  .comms-table thead { display: table-header-group; }
  .comms-table tbody { display: table-row-group; }
  .comms-table tbody tr { display: table-row; }
  .comms-table tbody td {
    padding: 8px 10px;
    border-top: 1px solid var(--border);
  }
  .comms-table .col-date { font-size: 12px; font-weight: 900; color: var(--muted); }
  .comms-table .col-comments { min-width: 60px; text-align: center; }
  .comms-table .table-submeta { margin-top: 4px; }

  .cal-chip { font-size: 10px; padding: 4px 7px; }
}

@media (max-width: 380px) {
  .comments--content-thread .comment__meta {
    column-gap: 7px;
  }
  .comments--content-thread .comment__actions {
    gap: 4px;
    max-width: 108px;
  }
  .comments--content-thread .comment__actions .icon-btn {
    width: 26px;
    height: 26px;
  }
  .comments--content-thread .comment__actions .like-toggle__count {
    font-size: 10.5px;
  }
}

.lottery-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(246, 199, 0, 0.28);
  background: linear-gradient(135deg, rgba(246, 199, 0, 0.18), rgba(255, 255, 255, 0.92));
}
html[data-theme="dark"] .lottery-hero {
  background: linear-gradient(135deg, rgba(246, 199, 0, 0.16), rgba(15, 23, 42, 0.9));
  border-color: rgba(246, 199, 0, 0.32);
}
.lottery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60px 60px at 12% 18%, rgba(246, 199, 0, 0.25), transparent 60%),
    radial-gradient(80px 80px at 82% 22%, rgba(246, 199, 0, 0.18), transparent 65%),
    radial-gradient(120px 120px at 80% 80%, rgba(246, 199, 0, 0.12), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
html[data-theme="dark"] .lottery-hero::before {
  background: none;
}
.lottery-hero > * {
  position: relative;
  z-index: 1;
}
.lottery-section + .lottery-section {
  margin-top: 16px;
}
.lottery-hero__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 16px;
}
.lottery-hero__note {
  margin-top: 12px;
  font-size: 12px;
}
.lottery-kpi {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] .lottery-kpi {
  background: rgba(15, 23, 42, 0.6);
}
.lottery-kpi__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--muted);
  font-weight: 800;
}
.lottery-kpi__value {
  font-size: 22px;
  font-weight: 900;
  margin-top: 4px;
}
.lottery-kpi__meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.lottery-kpi--wide {
  grid-column: span 2;
}
.lottery-history__total {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(246, 199, 0, 0.16);
  border: 1px solid rgba(246, 199, 0, 0.28);
  text-align: right;
}
html[data-theme="dark"] .lottery-history__total {
  background: rgba(246, 199, 0, 0.2);
}
.lottery-history__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--muted);
  font-weight: 700;
}
.lottery-history__value {
  font-size: 16px;
  font-weight: 900;
}
.lottery-history__table tbody td:last-child {
  font-weight: 800;
  color: #15803d;
}
html[data-theme="dark"] .lottery-history__table tbody td:last-child {
  color: #4ade80;
}
.lottery-active-kpi-card {
  padding: 12px;
}
.lottery-active-kpi-value {
  margin-top: 2px;
}
.lottery-active-kpi-value--prize {
  color: #16a34a;
}
html[data-theme="dark"] .lottery-active-kpi-value--prize {
  color: #4ade80;
}
.lottery-admin-card {
  padding: 14px;
}
.lottery-import-alert {
  margin: 0;
}

.lottery-wheel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
.lottery-wheel-canvas {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lottery-wheel-canvas-card {
  padding: 12px;
}
#wheel {
  width: 100%;
  height: 100%;
  max-width: 900px;
  max-height: 900px;
}
.lottery-wheel-controls {
  padding: 14px;
}
.muted-small {
  font-size: 12px;
  color: var(--muted);
}
.lottery-wheel-status {
  margin-top: 12px;
}

.recording-indicator {
  position: fixed;
  top: 18px;
  right: 18px;
  background: #ef4444;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.recording-indicator.active {
  display: flex;
}
.recording-dot {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  animation: lottery-record-pulse 1s infinite;
}
@keyframes lottery-record-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.winner-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 10000;
}
.winner-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.winner-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  padding: 28px;
  text-align: center;
  box-shadow: 0 20px 80px rgba(0,0,0,.35);
}
.winner-name {
  font-size: 40px;
  font-weight: 800;
  color: #16a34a;
  margin: 14px 0;
}
html[data-theme="dark"] .winner-name {
  color: #4ade80;
}
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  animation: lottery-confetti-fall 3s linear;
}
@keyframes lottery-confetti-fall {
  to { transform: translateY(100vh) rotate(360deg); }
}

.lottery-wheel-processing {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 20px 80px rgba(0,0,0,.35);
  z-index: 10001;
  text-align: center;
  width: min(520px, 90vw);
}
.lottery-wheel-processing__title {
  margin: 0 0 6px;
  color: var(--text);
}
.lottery-wheel-processing__title--success {
  color: #16a34a;
}
.lottery-wheel-processing__title--danger {
  color: #dc2626;
}
@media (max-width: 900px) {
  .lottery-kpi--wide {
    grid-column: auto;
  }
  .lottery-history__total {
    width: 100%;
    text-align: left;
  }
  .lottery-wheel-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  #corpheader,
  #menu,
  .mobile-menu-trigger,
  .tabs,
  form.filters,
  .pager,
  .no-print {
    display: none !important;
  }

  body {
    background: #ffffff !important;
  }

  #layout {
    display: block !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  #bodycont {
    padding: 0 !important;
  }

  .page {
    max-width: none !important;
    margin: 0 !important;
  }

  .card,
  .table-wrap {
    box-shadow: none !important;
  }

  .card {
    border: 0 !important;
  }

  .table-wrap {
    overflow: visible !important;
  }

  .data-table {
    min-width: 0 !important;
  }
}
@media (max-width: 720px) {
  .profile-photo {
    display: grid;
    align-items: stretch;
  }
  .profile-photo__forms {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .profile-photo__actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .profile-photo__upload-form {
    min-width: 0;
    width: 100%;
  }
  .profile-photo__upload-form .form-file-actions {
    flex-wrap: wrap;
  }
  .profile-photo__delete-form {
    justify-self: stretch;
  }
  .profile-photo__upload-form .form-file-actions > .btn,
  .profile-photo__delete-form .btn {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
  .accounts-role-summary__textarea {
    min-height: 360px;
  }
  .doc-meta {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .doc-meta::-webkit-scrollbar { display: none; }
  .doc-meta .badge { flex: 0 0 auto; white-space: nowrap; }

  .project-intro .doc-meta,
  .project-summary-card .doc-meta {
    flex-wrap: wrap;
    overflow: visible;
  }

  .project-mobile-todo-slot {
    display: block;
    margin-top: 10px;
  }
  .project-mobile-todo-slot #todos {
    border-radius: 14px;
  }
  .project-mobile-todo-slot #todos.is-collapsed {
    padding: 10px 12px;
    border-color: rgba(148,163,184,0.18);
    background: linear-gradient(180deg, rgba(148,163,184,0.08), rgba(148,163,184,0.03));
  }
  .project-mobile-todo-slot #todos.is-collapsed .todo-head {
    margin-bottom: 0;
    align-items: center;
  }
  .project-mobile-todo-slot #todos.is-collapsed .todo-head__title {
    min-width: 0;
    gap: 4px 8px;
  }
  .project-mobile-todo-slot #todos.is-collapsed .todo-head h2 {
    font-size: 14px;
    letter-spacing: 0;
  }
  .project-mobile-todo-slot #todos.is-collapsed .todo-count {
    font-size: 11px;
  }
  .project-mobile-todo-slot #todos.is-collapsed .todo-toggle {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 999px;
  }
  .project-mobile-todo-slot #todos.is-collapsed .todo-body {
    margin-top: 0;
  }
  .todo-toggle { display: inline-flex; }
}

/* Lottery winner celebration badge */
.lottery-winner {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.6rem;
  font-weight: 500;
  color: #d4a012;
  white-space: nowrap;
  animation: lottery-mixed 120s ease-in-out infinite;
}
@keyframes lottery-mixed {
  /* Wobble - quick */
  0% { transform: rotate(0) scale(1); }
  0.5% { transform: rotate(-12deg); }
  1% { transform: rotate(12deg); }
  1.5% { transform: rotate(-6deg); }
  2% { transform: rotate(0) scale(1); }
  /* 30s gap */
  2%, 24% { transform: rotate(0) scale(1) translateY(0); }
  /* Bounce - quick */
  24.5% { transform: scale(1.3) translateY(-3px); }
  25% { transform: scale(0.85) translateY(2px); }
  25.5% { transform: scale(1.15) translateY(-1px); }
  26% { transform: scale(1) translateY(0); }
  /* 30s gap */
  26%, 49% { transform: rotate(0) scale(1) translateY(0); }
  /* Zoom - quick */
  49.5% { transform: scale(1.25); }
  50% { transform: scale(0.95); }
  50.5% { transform: scale(1.2); }
  51% { transform: scale(1); }
  /* 30s gap */
  51%, 74% { transform: rotate(0) scale(1) translateY(0); }
  /* Spin - quick */
  74.5% { transform: rotate(0) scale(1.1); }
  76% { transform: rotate(360deg) scale(1.1); }
  76.5% { transform: rotate(360deg) scale(1); }
  /* 30s gap until loop */
  77%, 100% { transform: rotate(0) scale(1) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .lottery-winner__icon { animation: none; }
}

/* Highlighted list item */
.list-item--highlight {
  background: rgba(246, 199, 0, 0.12);
  border-left: 3px solid #d4a012;
}
