*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
}
html[data-theme="dark"] {
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--colorNeutralBackground2);
  color: var(--colorNeutralForeground1);
  font-family: var(--fontFamilyBase);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.2px;
}
h3 {
  font-size: 16px;
}
small {
  font-size: 12px;
}
a,
button,
input,
textarea,
select {
  outline-offset: 4px;
}
:focus-visible {
  outline: 2px solid var(--colorBrandStroke1);
}
::selection {
  background: var(--colorBrandBackground2);
  color: var(--colorBrandForeground1);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  padding: 12px 20px;
  background: var(--colorBrandBackground);
  color: white;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.app-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px 18px 24px;
  background: var(--colorNeutralBackground1);
  border-right: 1px solid var(--colorNeutralStroke2);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.6px;
  padding: 0 10px;
}
.brand-icon {
  width: 38px;
  height: 40px;
  background: var(--colorBrandBackground);
  color: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 3px 10px #6b20a820;
}
.brand-sub {
  display: block;
  font-size: 8px;
  letter-spacing: 1.35px;
  color: var(--colorNeutralForeground3);
  margin-top: 1px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--colorNeutralForeground3);
  margin: 48px 14px 14px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border-radius: 7px;
  padding: 11px 14px;
  color: var(--colorNeutralForeground2);
  font-weight: 500;
}
.sidebar nav a span {
  font-size: 20px;
  line-height: 1;
  min-width: 22px;
  text-align: center;
}
.sidebar nav a:hover {
  background: var(--colorNeutralBackground1Hover);
}
.sidebar nav a[aria-current="page"] {
  background: var(--colorBrandBackground2);
  color: var(--colorBrandForeground1);
  box-shadow: inset 3px 0 var(--colorBrandForeground1);
}
.sidebar-note {
  margin-top: auto;
  padding: 24px 12px 0;
  color: var(--colorNeutralForeground3);
  font-size: 11px;
  line-height: 1.8;
  border-top: 1px solid var(--colorNeutralStroke2);
}
.online-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #2b8a57;
  border-radius: 50%;
  margin-right: 7px;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 36px;
  background: var(--colorNeutralBackground1);
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.breadcrumb {
  font-size: 12px;
  color: var(--colorNeutralForeground3);
}
.breadcrumb span {
  padding: 0 10px;
  color: var(--colorNeutralStroke1);
}
.breadcrumb strong {
  color: var(--colorNeutralForeground2);
  font-weight: 500;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-button {
  height: 34px;
  width: 34px;
  background: transparent;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: 6px;
  color: var(--colorNeutralForeground2);
  font-size: 21px;
  display: grid;
  place-items: center;
}
.icon-button:hover {
  background: var(--colorNeutralBackground1Hover);
}
.identity {
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar,
.client-avatar,
.comment-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--colorBrandBackground2);
  color: var(--colorBrandForeground1);
  font-weight: 600;
  font-size: 12px;
}
.identity strong {
  display: block;
  font-size: 12px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.identity small {
  display: block;
  color: var(--colorNeutralForeground3);
  text-transform: capitalize;
  font-size: 10px;
}
.mobile-brand {
  display: none;
}
.page {
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  padding: 36px;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.65px;
  color: var(--colorBrandForeground1);
  margin-bottom: 12px;
}
.page-heading p {
  color: var(--colorNeutralForeground3);
  font-size: 13px;
  margin-top: 12px;
  max-width: 640px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.button.primary {
  background: var(--colorBrandBackground);
  color: var(--colorNeutralForegroundOnBrand);
  box-shadow: 0 2px 3px #00000008;
}
.button.primary:hover {
  background: var(--colorBrandBackgroundHover);
}
.button.secondary {
  background: var(--colorNeutralBackground1);
  border-color: var(--colorNeutralStroke1);
  color: var(--colorNeutralForeground1);
}
.button.secondary:hover {
  background: var(--colorNeutralBackground1Hover);
  border-color: var(--colorNeutralStroke1Hover);
}
.button.subtle {
  color: var(--colorNeutralForeground2);
  background: transparent;
}
.button.subtle:hover {
  background: var(--colorNeutralBackground1Hover);
  color: var(--colorBrandForeground1);
}
.button.small {
  padding: 6px 11px;
  min-height: 32px;
  font-size: 12px;
}
.button.large {
  min-height: 44px;
  font-size: 14px;
}
.disabled {
  pointer-events: none;
  opacity: 0.45;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--colorNeutralBackground1);
  border: 1px solid var(--colorNeutralStroke2);
  padding: 20px 22px;
  border-radius: 9px;
  box-shadow: 0 2px 4px #00000003;
  position: relative;
}
.stat-card:before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  right: 22px;
  top: 26px;
  border-radius: 50%;
  background: var(--colorBrandForeground1);
}
.stat-card.blue:before {
  background: #3b82b1;
}
.stat-card.amber:before {
  background: #bd7b19;
}
.stat-card.green:before {
  background: #2b8a57;
}
.stat-card > span {
  font-size: 12px;
  font-weight: 500;
  color: var(--colorNeutralForeground2);
}
.stat-card > strong {
  display: block;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -1.2px;
  font-weight: 600;
  margin-top: 10px;
}
.stat-card > small {
  display: block;
  color: var(--colorNeutralForeground3);
  margin-top: 9px;
  font-size: 11px;
}
.panel {
  background: var(--colorNeutralBackground1);
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: 9px;
  box-shadow: 0 3px 6px #00000003;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.panel-heading p {
  font-size: 12px;
  color: var(--colorNeutralForeground3);
  margin-top: 5px;
}
.panel-body {
  padding: 24px;
}
.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  min-width: 23px;
  min-height: 20px;
  border-radius: 5px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--colorBrandBackground2);
  color: var(--colorBrandForeground1);
  margin-left: 6px;
}
.filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
  background: var(--colorNeutralBackground2);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  font-weight: 500;
  font-size: 12px;
}
.field small {
  font-weight: 400;
  font-size: 11px;
  color: var(--colorNeutralForeground3);
}
.filters .field:first-child {
  flex: 1;
  min-width: 220px;
}
.filters .field {
  min-width: 120px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  background: var(--colorNeutralBackground1);
  border: 1px solid var(--colorNeutralStroke1);
  border-bottom-color: var(--colorNeutralStrokeAccessible);
  border-radius: 5px;
  color: var(--colorNeutralForeground1);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--colorNeutralStroke1Hover);
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--colorBrandStroke1);
  outline-offset: 1px;
}
textarea {
  resize: vertical;
  min-height: 106px;
}
input::placeholder,
textarea::placeholder {
  color: var(--colorNeutralForeground4);
}
input[type="hidden"] {
  display: none;
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: thin;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 790px;
  text-align: left;
}
th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  white-space: nowrap;
  color: var(--colorNeutralForeground3);
  padding: 14px 20px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
  background: var(--colorNeutralBackground2);
}
th:first-child,
td:first-child {
  padding-left: 24px;
}
th a {
  display: inline-block;
}
th a:hover {
  color: var(--colorBrandForeground1);
}
th a span {
  opacity: 0.6;
}
td {
  padding: 17px 20px;
  font-size: 12px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
  max-width: 230px;
  overflow-wrap: anywhere;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--colorNeutralBackground1Hover);
}
.client-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 185px;
}
.client-cell strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.client-cell:hover strong {
  color: var(--colorBrandForeground1);
}
.client-cell small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--colorNeutralForeground3);
}
.status {
  display: inline-flex;
  white-space: nowrap;
}
.status fluent-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 5px;
  background: #eef4fa;
  color: #315c83;
}
.status.in_progress fluent-badge {
  background: #fff5df;
  color: #8c650f;
}
.status.completed fluent-badge {
  background: #e8f5ee;
  color: #286448;
}
html[data-theme="dark"] .status fluent-badge {
  background: #223448;
  color: #a3cbee;
}
html[data-theme="dark"] .status.in_progress fluent-badge {
  background: #3e321a;
  color: #ebcb7e;
}
html[data-theme="dark"] .status.completed fluent-badge {
  background: #203a2b;
  color: #96d8b2;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-top: 1px solid var(--colorNeutralStroke2);
  font-size: 11px;
}
.pagination > div {
  display: flex;
  gap: 14px;
  align-items: center;
}
.muted {
  color: var(--colorNeutralForeground3);
}
.nowrap {
  white-space: nowrap;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.referral-feed {
  padding: 0 24px;
}
.feed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.feed-row:last-child {
  border-bottom: 0;
}
.feed-row:hover .feed-client strong {
  color: var(--colorBrandForeground1);
}
.feed-client {
  flex: 1;
  min-width: 0;
}
.feed-client strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.feed-client small {
  display: block;
  font-size: 11px;
  color: var(--colorNeutralForeground3);
  margin-top: 4px;
}
.feed-arrow {
  color: var(--colorNeutralForeground3);
  padding-left: 5px;
}
.quick-panel {
  padding: 26px;
}
.quick-panel > p {
  font-size: 12px;
  color: var(--colorNeutralForeground3);
  margin-top: 10px;
}
.quick-links {
  display: grid;
  margin-top: 22px;
}
.quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--colorNeutralStroke2);
}
.quick-links strong {
  display: block;
  font-size: 12px;
}
.quick-links small {
  display: block;
  font-size: 11px;
  color: var(--colorNeutralForeground3);
  margin-top: 4px;
}
.quick-links a:hover strong {
  color: var(--colorBrandForeground1);
}
.text-link {
  color: var(--colorBrandForeground1);
  font-size: 12px;
  font-weight: 600;
}
.text-link:hover {
  text-decoration: underline;
}
.back-link {
  display: inline-block;
  margin-bottom: 24px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 24px;
}
.info-grid > div:last-child {
  grid-column: 1/-1;
}
dt {
  color: var(--colorNeutralForeground3);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}
dd {
  font-size: 13px;
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}
.info-list {
  margin: 0;
  display: grid;
  gap: 20px;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
}
.assignment {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.assignment small {
  display: block;
  color: var(--colorNeutralForeground3);
  font-size: 9px;
  letter-spacing: 1px;
}
.assignment strong {
  display: block;
  font-size: 13px;
  margin-top: 4px;
}
.comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 24px;
}
.comment-list li {
  display: flex;
  align-items: start;
  gap: 12px;
}
.comment-list li > div {
  flex: 1;
  min-width: 0;
}
.comment-avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
  border-radius: 50%;
}
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-bottom: 8px;
}
.comment-meta strong {
  font-size: 12px;
}
.comment-meta time {
  font-size: 10px;
  color: var(--colorNeutralForeground3);
}
.comment-list .prose {
  border: 1px solid var(--colorNeutralStroke2);
  background: var(--colorNeutralBackground2);
  border-radius: 0 8px 8px 8px;
  padding: 12px 14px;
}
.comment-form {
  border-top: 1px solid var(--colorNeutralStroke2);
  padding-top: 22px;
  gap: 14px;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
}
.comment-empty {
  padding: 16px 0;
  text-align: center;
}
.comment-empty strong {
  font-size: 13px;
}
.comment-empty p {
  font-size: 12px;
  color: var(--colorNeutralForeground3);
  margin: 7px auto;
  max-width: 340px;
}
.confidential {
  font-size: 11px;
  color: var(--colorNeutralForeground3);
  line-height: 1.8;
  padding: 0 8px;
}
.alert,
.notice {
  padding: 14px 18px;
  border-radius: 7px;
  margin-bottom: 20px;
  font-size: 13px;
  border: 1px solid;
}
.alert {
  color: var(--colorPaletteRedForeground1);
  background: var(--colorPaletteRedBackground1);
  border-color: var(--colorPaletteRedBorder1);
}
.notice {
  color: var(--colorPaletteGreenForeground1);
  background: var(--colorPaletteGreenBackground1);
  border-color: var(--colorPaletteGreenBorder1);
}
.empty-state {
  padding: 56px 24px;
  text-align: center;
}
.empty-state > span {
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  width: 44px;
  height: 44px;
  background: var(--colorBrandBackground2);
  color: var(--colorBrandForeground1);
  font-size: 24px;
  border-radius: 12px;
}
.empty-state p {
  font-size: 12px;
  color: var(--colorNeutralForeground3);
  margin: 8px auto 18px;
  max-width: 360px;
}
.page-footer {
  padding: 24px 36px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--colorNeutralForeground3);
}
.page-footer span {
  font-style: italic;
}
.separator {
  padding: 0 8px;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-intro {
  background: linear-gradient(155deg, #29133f, #4c1d78 65%, #6b20a8);
  color: white;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.auth-intro:after {
  content: "";
  position: absolute;
  bottom: -200px;
  right: -240px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  border: 1px solid #ffffff12;
  box-shadow: 0 0 0 70px #ffffff04, 0 0 0 140px #ffffff03;
  z-index: -1;
}
.auth-intro .brand {
  padding: 0;
}
.auth-intro .brand-icon {
  background: #ffffff20;
}
.auth-intro .brand-sub {
  color: #e1d1ed;
}
.auth-intro .eyebrow {
  color: #d9bceb;
}
.auth-intro h1 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.15;
  letter-spacing: -1.7px;
}
.auth-intro p {
  max-width: 420px;
  color: #dacde5;
  margin-top: 26px;
  font-size: 15px;
  line-height: 1.9;
}
.auth-intro > small {
  color: #c3acce;
  font-size: 11px;
}
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--colorNeutralBackground1);
}
.auth-card {
  width: 100%;
  max-width: 380px;
}
.auth-card h2 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.6px;
}
.auth-card > p.muted {
  margin-top: 14px;
  line-height: 1.8;
  font-size: 13px;
  margin-bottom: 30px;
}
.auth-card .field {
  font-size: 13px;
}
.auth-card input {
  font-size: 14px;
  min-height: 46px;
}
.auth-card .stack {
  gap: 24px;
}
.auth-card .text-link {
  display: block;
  margin-top: 20px;
}
.auth-card .alert {
  margin-top: 24px;
}
.auth-help {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--colorNeutralStroke2);
  font-size: 11px;
  color: var(--colorNeutralForeground3);
}
[aria-busy="true"] button[type="submit"] {
  opacity: 0.6;
  pointer-events: none;
}
@media (min-width: 1500px) {
  .page {
    padding: 44px 52px;
  }
  .topbar {
    padding: 0 52px;
  }
}
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 10px;
  }
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .brand-sub {
    font-size: 7px;
  }
  .brand-icon {
    width: 32px;
    height: 36px;
  }
  .page {
    padding: 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
  }
  .filters .field:first-child {
    min-width: 180px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 18px;
  }
  .auth-intro {
    padding: 40px;
  }
  .auth-panel {
    padding: 32px;
  }
}
@media (max-width: 800px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    height: auto;
    min-height: 68px;
    padding: 12px 20px;
  }
  .breadcrumb {
    display: none;
  }
  .mobile-brand {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: var(--colorBrandForeground1);
  }
  .page {
    padding: 26px 20px;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading p {
    line-height: 1.8;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .stat-card > strong {
    font-size: 29px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid > aside {
    grid-row: 1;
  }
  .detail-grid > aside .info-list,
  .detail-grid > aside .confidential {
    display: none;
  }
  .detail-grid > aside > .panel:nth-child(2) {
    display: none;
  }
  .page-footer {
    padding: 24px 20px;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-intro {
    min-height: auto;
    padding: 28px;
  }
  .auth-intro > div:not(.brand) {
    margin-top: 36px;
  }
  .auth-intro h1 {
    font-size: 32px;
  }
  .auth-intro p {
    font-size: 13px;
    max-width: 500px;
    margin-top: 16px;
  }
  .auth-intro > small {
    display: none;
  }
  .auth-panel {
    padding: 36px 24px;
    align-items: start;
  }
  .auth-card {
    max-width: 460px;
  }
  .heading-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
}
@media (max-width: 480px) {
  .identity > div {
    display: none;
  }
  .topbar-actions {
    gap: 10px;
  }
  .topbar-actions .button {
    font-size: 11px;
    padding: 7px;
  }
  .page-heading {
    flex-direction: column;
    gap: 18px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .heading-actions {
    flex-direction: row;
    align-items: center;
  }
  .panel-heading {
    padding: 18px;
  }
  .panel-body {
    padding: 18px;
  }
  .filters {
    padding: 18px;
    gap: 12px;
  }
  .filters .field:first-child {
    flex-basis: 100%;
  }
  .filters .field {
    flex: 1;
    min-width: calc(50% - 12px);
  }
  .filters .button {
    flex: 1;
  }
  .pagination {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .pagination > div {
    justify-content: space-between;
  }
  .info-grid {
    padding: 18px;
    gap: 20px;
  }
  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .form-footer .button {
    width: 100%;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-card:before {
    right: 16px;
    top: 22px;
  }
  .stat-card > small {
    font-size: 10px;
  }
  .page-footer {
    font-size: 9px;
  }
  .comment-meta {
    gap: 4px 10px;
  }
  .auth-intro .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .feed-row {
    flex-wrap: wrap;
  }
  .feed-client {
    min-width: 120px;
  }
  .referral-feed {
    padding: 0 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  html,
  body {
    background: white !important;
    color: black !important;
  }
  .sidebar,
  .topbar,
  .page-footer,
  .back-link,
  .heading-actions button,
  .comment-form,
  .detail-grid > aside form,
  .skip-link {
    display: none !important;
  }
  .app-shell,
  .workspace,
  .detail-grid {
    display: block;
  }
  .page {
    padding: 0;
    max-width: none;
  }
  .panel {
    box-shadow: none;
    break-inside: avoid;
    margin-bottom: 16px;
    border: 1px solid #ddd;
  }
  .detail-grid > aside {
    margin-top: 16px;
  }
  .detail-grid > aside .info-list {
    display: grid !important;
  }
  .panel-heading {
    padding: 12px;
  }
  .panel-body,
  .info-grid {
    padding: 12px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  .comment-list li {
    break-inside: avoid;
  }
  a {
    color: inherit;
  }
  .page-heading .eyebrow {
    color: #6b20a8;
  }
}

.mobile-nav {
  display: none;
}
@media (max-width: 800px) {
  .workspace {
    padding-bottom: 58px;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    justify-content: space-around;
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom));
    background: var(--colorNeutralBackground1);
    border-top: 1px solid var(--colorNeutralStroke2);
    box-shadow: 0 -2px 12px #00000004;
  }
  .mobile-nav a {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    color: var(--colorNeutralForeground3);
    border-radius: 5px;
  }
  .mobile-nav a[aria-current="page"] {
    color: var(--colorBrandForeground1);
    background: var(--colorBrandBackground2);
  }
}
@media print {
  .mobile-nav {
    display: none !important;
  }
  .workspace {
    padding-bottom: 0;
  }
}

.brand-logo {
  object-fit: contain;
  flex-shrink: 0;
  height: 48px;
  width: 44px;
}
.auth-intro .brand-logo {
  height: 64px;
  width: 58px;
  background: white;
  border-radius: 10px;
  padding: 5px;
}
.sidebar .brand {
  gap: 10px;
}
.avatar img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.google-button {
  width: 100%;
  border: 1px solid var(--colorNeutralStroke1);
  background: var(--colorNeutralBackground1);
  color: var(--colorNeutralForeground1);
  gap: 12px;
}
.google-button:hover {
  background: var(--colorNeutralBackground1Hover);
  border-color: var(--colorNeutralStroke1Hover);
}
.google-button svg {
  flex-shrink: 0;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  font-size: 11px;
  color: var(--colorNeutralForeground3);
}
.auth-divider:before,
.auth-divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--colorNeutralStroke2);
}

/* Shared native workspace forms and data views. */
.stack-form {
  display: grid;
  gap: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.stack-form .button {
  justify-self: start;
}
.module-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.module-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--colorNeutralBackground2);
  color: var(--colorBrandForeground1);
}
.native-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.native-table td,
.native-table th {
  padding: 14px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
  vertical-align: top;
}
.native-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.table-scroll {
  overflow: auto;
}
.panel-pad {
  padding: 24px;
  margin-bottom: 24px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 20px;
}
.inline-form label {
  display: grid;
  gap: 6px;
}
.notice {
  padding: 12px 16px;
  background: var(--colorNeutralBackground2);
  border-left: 3px solid var(--colorBrandBackground);
  border-radius: 6px;
}
.record-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.record-details dt {
  font-size: 12px;
  color: var(--colorNeutralForeground2);
}
.record-details dd {
  margin: 5px 0;
  white-space: pre-wrap;
}
.comment-body {
  white-space: pre-wrap;
}
.page details {
  margin: 16px 0;
}
.page summary {
  cursor: pointer;
  font-weight: 600;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
  gap: 8px;
  min-width: 750px;
}
.calendar-day {
  min-height: 120px;
  padding: 10px;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: 8px;
}
.calendar-day a {
  display: block;
  margin: 8px 0;
  font-size: 12px;
}
.pagination {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
}
.field select[multiple] {
  min-height: 130px;
}
@media print {
  .module-nav,
  .inline-form,
  .stack-form,
  [data-print] {
    display: none;
  }
  .panel {
    break-inside: avoid;
  }
  .table-scroll {
    overflow: visible;
  }
}

/* Workspace finish: compact navigation, clear hierarchy, and readable data. */
.sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar .nav-label {
  margin-top: 30px;
}
.sidebar nav {
  gap: 3px;
}
.sidebar nav a {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 12px;
}
.sidebar-note {
  margin-top: 28px;
}
.page > .panel-pad {
  margin-top: 24px;
}
.panel-pad > h2 {
  margin-bottom: 18px;
}
.panel-pad > p {
  color: var(--colorNeutralForeground2);
  margin: 10px 0 20px;
}
.panel-pad > h3 {
  margin: 22px 0 12px;
}
.panel-pad > section > h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--colorNeutralForeground3);
  margin: 30px 0 16px;
}
.panel-pad .panel-heading {
  padding: 0 0 18px;
  margin-bottom: 20px;
}
.workspace-grid > section.panel {
  align-self: start;
}
.workspace-grid > [data-menu-item] {
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: 8px;
  transition: background 0.15s, border-color 0.15s;
}
.workspace-grid > [data-menu-item]:hover {
  background: var(--colorNeutralBackground1Hover);
  border-color: var(--colorBrandStroke1);
}
[data-menu-item] > a,
[data-menu-item] > p {
  display: block;
  padding: 18px 20px;
  height: 100%;
}
[data-menu-item] strong {
  font-weight: 600;
  font-size: 13px;
}
[data-menu-item] p {
  color: var(--colorNeutralForeground3);
  font-size: 12px;
  margin-top: 6px;
}
[data-menu-item] > p {
  opacity: 0.6;
}
.workspace-grid {
  margin-bottom: 24px;
}
.form-grid {
  gap: 20px 24px;
}
.form-grid .field:has(textarea) {
  grid-column: 1/-1;
}
.stack-form {
  gap: 24px;
}
.stack-form > label:has(input[type="checkbox"]) {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--colorNeutralForeground2);
}
input[type="checkbox"] {
  display: inline-block;
  width: 16px;
  min-height: 16px;
  height: 16px;
  accent-color: var(--colorBrandBackground);
  flex-shrink: 0;
  padding: 0;
}
.inline-form {
  padding: 18px;
  background: var(--colorNeutralBackground2);
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: 8px;
  gap: 12px;
  margin: 0 0 24px;
}
.inline-form label {
  font-size: 11px;
  font-weight: 600;
  color: var(--colorNeutralForeground2);
  min-width: 125px;
  flex: 1;
}
.inline-form label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}
.inline-form button {
  align-self: end;
}
.inline-form > a {
  font-size: 12px;
  color: var(--colorBrandForeground1);
  padding: 9px 4px;
}
.module-nav a {
  border: 1px solid var(--colorNeutralStroke2);
  font-size: 12px;
  font-weight: 500;
  background: var(--colorNeutralBackground1);
}
.module-nav a:hover {
  background: var(--colorBrandBackground2);
  border-color: var(--colorBrandStroke1);
}
.native-table {
  min-width: 700px;
}
.native-table th {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  position: sticky;
  top: 0;
}
.native-table td {
  font-size: 12px;
  padding: 16px 14px;
  max-width: 320px;
}
.native-table td > a {
  font-weight: 600;
  color: var(--colorBrandForeground1);
}
.native-table small {
  display: block;
  color: var(--colorNeutralForeground3);
  font-size: 10px;
  margin-top: 5px;
}
.native-table .stack-form {
  margin-top: 8px;
  gap: 8px;
}
.native-table .stack-form .button {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 10px;
}
.native-table .stack-form .form-grid {
  display: block;
}
.native-table .stack-form select {
  min-width: 125px;
}
.record-details {
  padding: 16px 0 24px;
  gap: 24px;
  margin: 0;
}
.record-details dd {
  font-size: 13px;
  font-weight: 500;
}
.record-details dt {
  font-size: 10px;
}
.record-details + .stack-form {
  border-top: 1px solid var(--colorNeutralStroke2);
  padding-top: 24px;
}
.page details {
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: 8px;
  overflow: hidden;
  background: var(--colorNeutralBackground1);
}
.page summary {
  padding: 13px 16px;
  color: var(--colorNeutralForeground2);
  font-size: 12px;
  line-height: 1.6;
}
.page details[open] > summary {
  border-bottom: 1px solid var(--colorNeutralStroke2);
  background: var(--colorNeutralBackground2);
  color: var(--colorBrandForeground1);
}
.page details > .stack-form,
.page details > section,
.page details > details {
  margin: 16px;
}
.page .native-table details:not(.column-filter) {
  min-width: 200px;
}
.page .native-table details[open]:not(.column-filter) {
  min-width: 300px;
}
.page .native-table details .native-table {
  min-width: 600px;
}
.panel-pad article {
  padding: 18px 0;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.panel-pad article:last-of-type {
  margin-bottom: 24px;
}
.panel-pad article strong {
  font-size: 12px;
}
.panel-pad article small {
  font-size: 10px;
  color: var(--colorNeutralForeground3);
}
.comment-body {
  line-height: 1.8;
  margin: 10px 0 24px;
}
.employee-card {
  max-width: 360px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-height: 440px;
  border-top: 6px solid var(--colorBrandBackground);
}
.employee-photo {
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--colorBrandStroke1);
  margin-top: 16px;
}
.employee-card p {
  margin: 0;
}
.calendar-day {
  background: var(--colorNeutralBackground1);
  padding: 14px;
}
.calendar-day > strong {
  font-size: 11px;
  color: var(--colorNeutralForeground3);
}
.calendar-day > a {
  padding: 7px 8px;
  border-radius: 5px;
  background: var(--colorBrandBackground2);
  color: var(--colorBrandForeground1);
  border-left: 2px solid var(--colorBrandStroke1);
  line-height: 1.5;
}
.status.todo fluent-badge {
  background: var(--colorBrandBackground2);
  color: var(--colorBrandForeground1);
}
.page > .workspace-grid > a.panel:hover {
  border-color: var(--colorBrandStroke1);
  background: var(--colorNeutralBackground1Hover);
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  .panel-pad {
    padding: 20px;
  }
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-heading .button {
    align-self: flex-start;
  }
  .inline-form {
    padding: 14px;
  }
  .inline-form label {
    min-width: calc(50% - 12px);
  }
  .inline-form button {
    flex: 1;
  }
  .panel-pad .workspace-grid {
    gap: 12px;
  }
  .mobile-nav {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .mobile-nav a {
    flex-shrink: 0;
  }
  .native-table td,
  .native-table th {
    padding: 12px;
  }
  .record-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .employee-card {
    max-width: none;
  }
}
@media print {
  .employee-card-print {
    display: block;
  }
  .employee-card {
    width: 74mm;
    height: 105mm;
    min-height: 105mm;
    max-width: 74mm;
    padding: 6mm;
    break-after: page;
  }
  .employee-photo {
    height: 30mm;
    width: 30mm;
  }
  .employee-card h2 {
    font-size: 14px;
  }
  .employee-card p {
    font-size: 10px;
  }
  .employee-card svg {
    max-height: 15mm;
  }
  .employee-card-print ~ * {
    display: none;
  }
  .page details:not([open]) {
    display: none;
  }
}
.report-section + .report-section {
  border-top: 1px solid var(--colorNeutralStroke2);
  padding-top: 24px;
  margin-top: 24px;
}
.report-section > h2 {
  font-size: 14px;
  margin: 8px 0 18px;
}
.report-chart {
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: 8px;
  background: var(--colorNeutralBackground2);
}
.report-chart figcaption {
  font-size: 11px;
  color: var(--colorNeutralForeground3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.report-bar {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(100px, 3fr) 60px;
  gap: 14px;
  align-items: center;
  margin: 12px 0;
  font-size: 12px;
}
.report-bar strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.report-bar meter {
  width: 100%;
  height: 10px;
  accent-color: var(--colorBrandBackground);
}
meter::-webkit-meter-bar {
  background: var(--colorNeutralStroke2);
  border: 0;
  border-radius: 4px;
}
meter::-webkit-meter-optimum-value {
  background: var(--colorBrandBackground);
  border-radius: 4px;
}
.data-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  flex-wrap: wrap;
}
.data-controls input {
  max-width: 280px;
  flex: 1;
}
.data-controls span {
  font-size: 11px;
  color: var(--colorNeutralForeground3);
  margin-left: auto;
}
.table-sort {
  background: transparent;
  color: inherit;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
}
.table-sort:after {
  content: " ↕";
  color: var(--colorNeutralForeground4);
}
.page button:disabled {
  opacity: 0.4;
  cursor: default;
}
.report-section .empty-state {
  padding: 28px;
}
@media print {
  .data-controls {
    display: none !important;
  }
  .native-table tr[hidden] {
    display: table-row !important;
  }
}
@media (max-width: 480px) {
  .report-bar {
    grid-template-columns: 90px minmax(40px, 1fr) 40px;
    gap: 8px;
  }
  .data-controls input {
    flex-basis: 100%;
    max-width: none;
  }
}
.calendar-frame {
  padding: 8px;
  --fc-border-color: var(--colorNeutralStroke2);
  --fc-page-bg-color: var(--colorNeutralBackground1);
  --fc-neutral-bg-color: var(--colorNeutralBackground2);
  --fc-today-bg-color: var(--colorBrandBackground2);
  --fc-list-event-hover-bg-color: var(--colorNeutralBackground1Hover);
  --fc-button-bg-color: var(--colorBrandBackground);
  --fc-button-border-color: var(--colorBrandBackground);
  --fc-button-hover-bg-color: var(--colorBrandBackgroundHover);
  --fc-button-hover-border-color: var(--colorBrandBackgroundHover);
  --fc-button-active-bg-color: var(--colorBrandBackgroundPressed);
  --fc-button-active-border-color: var(--colorBrandBackgroundPressed);
}
.fc .fc-toolbar-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.fc .fc-button {
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 5px;
}
.fc .fc-col-header-cell {
  padding: 12px 0;
}
.fc .fc-daygrid-day-number {
  font-size: 12px;
  padding: 10px;
}
.fc .fc-event {
  font-size: 11px;
  border-radius: 4px;
  padding: 2px 5px;
}
.calendar-dialog {
  background: var(--colorNeutralBackground1);
  color: var(--colorNeutralForeground1);
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: 12px;
  padding: 28px;
  max-width: min(480px, 90vw);
  box-shadow: var(--shadow16);
}
.calendar-dialog::backdrop {
  background: #0007;
}
.calendar-dialog p {
  margin: 16px 0;
  white-space: pre-wrap;
}
.calendar-dialog .button {
  margin-top: 12px;
}
@media (max-width: 800px) {
  .fc .fc-toolbar {
    flex-wrap: wrap;
    gap: 14px;
  }
  .fc .fc-toolbar-title {
    font-size: 17px;
  }
  .fc .fc-button {
    padding: 7px 9px;
  }
  .fc th {
    font-size: 10px;
  }
}
.form-grid .field:has(input[name="title"]) {
  grid-column: 1/-1;
}
.form-grid .field:has(input[name="title"]) input {
  max-width: 720px;
}
.employee-card-print {
  justify-items: start;
}
.page > .panel-pad#all-workspaces {
  margin-top: 28px;
}
#all-workspaces .workspace-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.performance-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: 8px;
  padding: 20px;
}
.performance-card:hover {
  border-color: var(--colorBrandStroke1);
}
.performance-card span,
.performance-card small {
  font-size: 12px;
  color: var(--colorNeutralForeground3);
}
.performance-card meter {
  height: 10px;
  width: 100%;
  accent-color: var(--colorBrandBackground);
}
.focus-group {
  margin: 24px 0;
}
.focus-group > h2 {
  padding: 14px 0;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.task-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
  overflow: auto;
  padding-bottom: 12px;
}
.task-column {
  background: var(--colorNeutralBackground2);
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: 8px;
  padding: 14px;
  min-height: 300px;
}
.task-column > h2 {
  font-size: 12px;
  margin-bottom: 16px;
}
.task-card {
  padding: 14px;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: 6px;
  background: var(--colorNeutralBackground1);
  margin-bottom: 12px;
}
.task-card > a {
  color: var(--colorBrandForeground1);
  font-size: 13px;
}
.task-card > p,
.task-card > small {
  display: block;
  font-size: 11px;
  color: var(--colorNeutralForeground3);
  margin: 8px 0;
}
.task-card .stack-form {
  gap: 8px;
  margin-top: 14px;
}
.task-card .form-grid {
  display: block;
}
/* Calendar tables own their geometry rather than inheriting data-table widths. */
.fc table {
  min-width: 0;
  table-layout: fixed;
}
.fc td {
  max-width: none;
  padding: 0;
}
.fc th {
  padding: 0;
}
.fc th:first-child,
.fc td:first-child {
  padding-left: 0;
}
.fc .fc-list-event-time,
.fc .fc-list-event-title {
  padding: 10px 14px;
}
.fc .fc-list-event-graphic {
  padding: 10px 6px;
}

/* Faithful layout layer: the existing EHA dashboard remains the visual reference. */
:root {
  --surface-ground: var(--colorNeutralBackground2);
  --surface-card: var(--colorNeutralBackground1);
  --surface-hover: var(--colorNeutralBackground1Hover);
  --surface-border: var(--colorNeutralStroke2);
  --text-color: var(--colorNeutralForeground1);
  --text-secondary: var(--colorNeutralForeground2);
  --text-muted: var(--colorNeutralForeground3);
  --eha-sky-50: #f0f7fc;
  --eha-sky-100: #e6f3fc;
  --page-border: #f3e8ff;
}
html[data-theme="dark"] {
  --page-border: #334155;
}
.original-layout .original-shell {
  display: flex;
  min-height: 100vh;
}
.original-shell > .workspace {
  width: 100%;
  padding-bottom: 0;
}
.original-layout .topbar {
  height: auto;
  min-height: 64px;
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0 20px;
  gap: 12px;
  box-shadow: 0 1px 3px #0000000d;
  flex-wrap: wrap;
}
.original-layout .original-page-header {
  background: var(--surface-card);
  border-bottom: 1px solid var(--surface-border);
}
.original-layout .header-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.original-layout .icon-button {
  border: 0;
  box-shadow: none;
  border-radius: 4px;
  min-height: 40px;
  min-width: 40px;
  background: transparent;
  font-size: 18px;
}
.original-layout .icon-button:hover {
  background: var(--surface-hover);
}
.original-layout .topbar-actions {
  gap: 8px;
}
.original-layout .identity {
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  background: var(--colorNeutralBackground3);
  height: 40px;
}
.original-layout .identity .avatar {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.original-layout .identity strong {
  font-size: 12px;
}
.original-layout .identity small {
  font-size: 10px;
  color: var(--text-secondary);
}
.original-layout .header-actions {
  display: flex;
  gap: 8px;
}
.original-layout .page {
  padding: 24px 32px;
  max-width: 1400px;
  width: 100%;
  min-width: 0;
}
.original-layout .page > nav.module-nav:empty {
  display: none;
}
.original-layout .panel {
  border-radius: 12px;
  border-color: var(--page-border);
  background: var(--surface-card);
  box-shadow: 0 1px 3px #0000000d;
}
.original-layout .panel-pad {
  padding: 20px;
  margin-bottom: 24px;
}
.original-layout .page > .panel-pad {
  margin-top: 0;
}
.original-layout .page-heading {
  margin-bottom: 20px;
}
.original-layout .page-heading h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.original-layout .page-heading .eyebrow {
  display: none;
}
.original-layout .button {
  border-radius: 6px;
  font-size: 12px;
}
.original-layout .native-table td {
  padding: 9px 10px;
  font-size: 12px;
}
.original-layout .native-table th {
  padding: 10px;
  font-size: 11px;
  background: var(--surface-ground);
  letter-spacing: 0;
  text-transform: none;
}
.original-layout .native-table td > a {
  font-weight: 500;
}
.original-layout .inline-form {
  background: transparent;
  border: 0;
  padding: 0;
  gap: 12px;
}
.original-layout .module-nav {
  gap: 8px;
  margin-bottom: 20px;
}
.original-layout .module-nav a {
  border-color: var(--page-border);
  border-radius: 6px;
}
.original-layout .page-footer,
.original-layout .mobile-nav {
  display: none;
}
.original-layout .dashboard-topbar {
  padding: 12px 24px;
  background: var(--eha-sky-100);
  border-bottom: 1px solid #bae0f5;
  flex-wrap: nowrap;
  justify-content: space-between;
  z-index: 50;
}
.dashboard-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.dashboard-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 576px;
  margin: 0 16px;
}
.dashboard-search > svg {
  position: absolute;
  left: 12px;
  color: #9ca3af;
}
.dashboard-search input {
  padding: 9px 12px 9px 40px;
  border: 1px solid #bae0f5;
  border-radius: 12px;
  background: #ffffffb3;
  font-size: 14px;
  min-height: 38px;
}
.original-layout .dashboard-topbar .identity {
  background: transparent;
  flex-direction: row;
  text-align: right;
  height: auto;
  padding: 0;
  gap: 12px;
}
.dashboard-topbar .identity .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd6fe;
  background: #ede9fe;
  color: #6d28d9;
}
.dashboard-topbar .identity strong {
  font-size: 14px;
}
.dashboard-topbar .identity small {
  font-size: 12px;
}
.logout-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}
.logout-button:hover {
  color: #dc2626;
  background: #fef2f2;
}
.dashboard-topbar .icon-button {
  background: #ffffff99;
  border-radius: 8px;
  min-height: 36px;
  min-width: 36px;
  height: 36px;
  width: 36px;
}
.original-layout.layout-dashboard {
  background: var(--eha-sky-50);
}
.original-layout .dashboard-page {
  max-width: none;
  padding: 24px 32px;
  background: var(--eha-sky-50);
}
.dashboard-content {
  max-width: 1280px;
  margin: 0 auto;
}
.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 32px;
  color: white;
  background: linear-gradient(90deg, #7c3aed, #9333ea, #4f46e5);
  box-shadow: 0 10px 15px -3px #ddd6fe80;
  margin-bottom: 32px;
  gap: 16px;
}
.welcome-banner:before,
.welcome-banner:after {
  content: "";
  position: absolute;
  background: #ffffff0d;
  border-radius: 50%;
  pointer-events: none;
}
.welcome-banner:before {
  width: 256px;
  height: 256px;
  top: -128px;
  right: -64px;
}
.welcome-banner:after {
  width: 192px;
  height: 192px;
  bottom: -96px;
  left: 33%;
}
.welcome-person {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1;
}
.welcome-person .avatar {
  height: 56px;
  width: 56px;
  border-radius: 16px;
  background: #ffffff33;
  color: #fff;
  border: 1px solid #ffffff33;
  font-size: 20px;
}
.welcome-person h1 {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.welcome-person p {
  color: #ddd6fe;
  font-size: 14px;
  margin-top: 2px;
}
.welcome-organization {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff1a;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  padding: 12px 20px;
  z-index: 1;
}
.welcome-organization > img {
  height: 32px;
  width: auto;
}
.welcome-organization strong {
  font-size: 14px;
}
.welcome-organization small {
  display: block;
  color: #ddd6fe;
  font-size: 12px;
  text-transform: capitalize;
}
.dashboard-category {
  margin-bottom: 32px;
}
.category-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.category-heading > span {
  height: 28px;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(#8b5cf6, #6366f1);
}
.category-heading h2 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.25px;
  color: #1f2937;
}
.category-heading hr {
  flex: 1;
  height: 1px;
  border: 0;
  margin-left: 12px;
  background: linear-gradient(90deg, #e5e7eb, transparent);
}
.dashboard-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.dashboard-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface-card);
  border: 1px solid #f3e8ff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px #0000000d;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 24px -12px #6b20a835;
  border-color: #ede9fe;
}
.dashboard-card-image {
  padding: 12px;
  margin-bottom: 6px;
  color: #7c3aed;
}
.dashboard-card-image > img {
  height: 80px;
  width: 80px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px #0000001a);
  transition: transform 0.2s;
}
.dashboard-card:hover .dashboard-card-image > img {
  transform: scale(1.1);
}
.dashboard-card h3 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: #111827;
}
.dashboard-card p {
  font-size: 12px;
  line-height: 16px;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dashboard-card .card-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  opacity: 0;
  background: #f5f3ff;
  color: #7c3aed;
  padding: 6px;
  border-radius: 50%;
  display: flex;
}
.dashboard-card:hover .card-arrow {
  opacity: 1;
}
.dashboard-no-results {
  text-align: center;
  padding: 80px 0;
  color: #9ca3af;
}
.dashboard-no-results > svg {
  margin-bottom: 16px;
}
.original-brand-panel {
  width: 320px;
  flex-shrink: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#7c3aed, #7e22ce, #3730a3);
  padding: 16px;
}
.original-brand-panel > a {
  display: block;
  padding: 16px;
  background: #ffffff1a;
  border: 1px solid #ffffff33;
  border-radius: 16px;
  box-shadow: 0 20px 25px #0002;
}
.original-brand-panel img {
  max-width: 100%;
  height: auto;
}
.with-brand-panel > .workspace {
  flex: 1;
  min-width: 0;
}
.original-layout .with-brand-panel .page {
  padding: 24px;
}
.original-layout [data-theme-sun] {
  display: none;
}
html[data-theme="dark"] .original-layout [data-theme-sun] {
  display: flex;
}
html[data-theme="dark"] .original-layout [data-theme-moon] {
  display: none;
}
html[data-theme="dark"] .layout-dashboard,
html[data-theme="dark"] .dashboard-page {
  background: #0f172a;
}
html[data-theme="dark"] .dashboard-topbar {
  background: #1e293b;
  border-color: #334155;
}
html[data-theme="dark"] .dashboard-search input {
  background: #334155;
  border-color: #475569;
  color: #f1f5f9;
}
html[data-theme="dark"] .welcome-banner {
  background: linear-gradient(90deg, #5b21b6, #581c87, #312e81);
  box-shadow: 0 10px 15px -3px #4c1d954d;
}
html[data-theme="dark"] .dashboard-card {
  background: #1e293b;
  border-color: #334155;
}
html[data-theme="dark"] .dashboard-card h3,
html[data-theme="dark"] .category-heading h2 {
  color: #f1f5f9;
}
html[data-theme="dark"] .dashboard-card p {
  color: #94a3b8;
}
html[data-theme="dark"] .category-heading hr {
  background: linear-gradient(90deg, #334155, transparent);
}
html[data-theme="dark"] .dashboard-topbar .icon-button {
  background: #334155;
}
html[data-theme="dark"] .original-brand-panel {
  background: linear-gradient(#1e293b, #0f172a, #020617);
}
@media (max-width: 1279px) {
  .dashboard-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .original-brand-panel {
    width: 288px;
  }
}
@media (max-width: 1023px) {
  .original-brand-panel {
    display: none;
  }
  .dashboard-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .welcome-banner {
    padding: 24px;
  }
  .welcome-person h1 {
    font-size: 24px;
    line-height: 32px;
  }
  .original-layout .dashboard-page {
    padding: 24px;
  }
  .original-layout .topbar {
    padding: 0 12px;
  }
  .original-layout .dashboard-topbar {
    padding: 12px 24px;
  }
}
@media (max-width: 639px) {
  .original-layout .topbar {
    gap: 8px;
  }
  .original-layout .header-title {
    font-size: 16px;
  }
  .original-layout .header-actions {
    order: 3;
    width: 100%;
    padding: 6px 0;
    overflow: auto;
  }
  .original-layout .header-actions:empty {
    display: none;
  }
  .original-layout .identity > div {
    display: none;
  }
  .original-layout .page {
    padding: 20px 16px;
  }
  .original-layout .dashboard-page {
    padding: 24px;
  }
  .original-layout .dashboard-topbar {
    padding: 12px 16px;
    gap: 8px;
  }
  .dashboard-logo img {
    height: 32px;
    max-width: 95px;
  }
  .dashboard-search {
    margin: 0;
    min-width: 60px;
  }
  .dashboard-search input {
    font-size: 12px;
  }
  .dashboard-topbar .identity .avatar {
    height: 32px;
    width: 32px;
  }
  .logout-button span {
    display: none;
  }
  .dashboard-topbar .topbar-actions {
    gap: 4px;
  }
  .dashboard-topbar .icon-button {
    min-width: 30px;
    width: 30px;
  }
  .welcome-organization {
    display: none;
  }
  .welcome-banner {
    padding: 24px;
  }
  .welcome-person h1 {
    font-size: 23px;
  }
  .welcome-person {
    gap: 12px;
  }
  .welcome-person .avatar {
    height: 48px;
    width: 48px;
    flex-shrink: 0;
  }
  .welcome-person p {
    font-size: 12px;
  }
  .dashboard-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .original-layout .panel-pad {
    padding: 16px;
  }
  .category-heading h2 {
    font-size: 18px;
  }
  .original-layout .inline-form label {
    min-width: calc(50% - 12px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-card,
  .dashboard-card-image > img {
    transition: none;
  }
  .dashboard-card:hover {
    transform: none;
  }
}
@media print {
  .original-layout .topbar,
  .original-brand-panel {
    display: none !important;
  }
  .original-layout .page {
    padding: 0;
    max-width: none;
  }
  .original-shell {
    display: block !important;
  }
}
.original-layout .users-page {
  padding: 24px 32px;
  max-width: 1400px;
}
.users-panel {
  padding: 16px;
}
.users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.users-title-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.users-title-tabs h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
}
.status-tabs {
  display: flex;
  border: 1px solid var(--page-border);
  border-radius: 8px;
  overflow: hidden;
}
.status-tabs button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  border-right: 1px solid var(--page-border);
}
.status-tabs button:last-child {
  border-right: 0;
}
.status-tabs button[aria-pressed="true"] {
  background: #9333ea;
  color: white;
}
.users-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.search-with-icon > svg {
  position: absolute;
  left: 12px;
  color: #9ca3af;
}
.search-with-icon input {
  padding-left: 36px;
  width: 260px;
}
.users-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.users-filters select {
  min-width: 140px;
  font-size: 12px;
  padding: 7px 10px;
}
.original-layout .compact-users-table th {
  font-size: 11.5px;
  padding: 7px 9px;
}
.original-layout .compact-users-table td {
  font-size: 12.5px;
  line-height: 17px;
  padding: 6px 9px;
}
.user-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.user-name-cell strong {
  font-weight: 500;
}
.user-initial {
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  background: #f3e8ff;
  color: #7e22ce;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
.role-tag,
.account-status {
  display: inline-flex;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 600;
}
.role-tag {
  text-transform: uppercase;
  background: #f3e8ff;
  color: #7e22ce;
}
.role-tag.chw,
.account-status.active {
  background: #dcfce7;
  color: #15803d;
}
.role-tag.hr,
.role-tag.supervisor {
  background: #dbeafe;
  color: #1d4ed8;
}
.role-tag.accountant {
  background: #fef3c7;
  color: #a16207;
}
.account-status.inactive {
  background: #fee2e2;
  color: #b91c1c;
}
.inactive-user {
  opacity: 0.6;
}
.capitalize {
  text-transform: capitalize;
}
.equipment-chips,
.equipment-chips > span,
.equipment-chips > small {
  display: flex;
  align-items: center;
  gap: 4px;
}
.equipment-chips > span {
  border-radius: 20px;
  padding: 2px 6px;
  background: #faf5ff;
  color: #7e22ce;
  font-size: 11px;
  font-weight: 600;
}
.row-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.row-icon {
  height: 28px;
  width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #9333ea;
  border-radius: 6px;
  padding: 0;
}
.row-icon:hover {
  background: #faf5ff;
}
.row-icon.edit {
  color: #2563eb;
}
.row-icon.deactivate {
  color: #ef4444;
}
.row-icon.activate {
  color: #16a34a;
}
.row-actions form {
  display: flex;
}
.original-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
  background: var(--surface-card);
  color: var(--text-color);
  border: 1px solid var(--page-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 50px #0003;
}
.original-dialog::backdrop {
  background: #0006;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.original-dialog .form-grid {
  grid-template-columns: 1fr;
}
.original-dialog .stack-form {
  gap: 16px;
}
.original-dialog .stack-form > label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.original-layout .user-editor-page {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  align-content: start;
}
.user-editor-page > nav {
  grid-column: 1/-1;
}
.user-editor-page > section:nth-of-type(1) {
  grid-column: 1;
  grid-row: 2 / span 2;
}
.user-editor-page > section:nth-of-type(2),
.user-editor-page > section:nth-of-type(3) {
  grid-column: 2;
}
.original-layout .user-editor-page .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .original-layout .user-editor-page {
    display: block;
  }
}
@media (max-width: 639px) {
  .users-toolbar-actions {
    width: 100%;
  }
  .search-with-icon {
    flex: 1;
    min-width: 0;
  }
  .search-with-icon input {
    width: 100%;
  }
  .users-filters label {
    flex: 1;
  }
  .users-filters select {
    width: 100%;
    min-width: 0;
  }
  .original-layout .users-page {
    padding: 24px 16px;
  }
  .status-tabs button {
    padding: 6px 10px;
  }
  .original-layout .user-editor-page .form-grid {
    grid-template-columns: 1fr;
  }
}
.table-search-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
}
.table-search-toolbar input {
  max-width: 260px;
}
.original-paginator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--surface-border);
  font-size: 12px;
  flex-wrap: wrap;
}
.original-paginator > span[role="status"] {
  margin-right: 8px;
  color: var(--text-secondary);
}
.original-paginator select {
  width: auto;
  min-width: 65px;
  min-height: 32px;
  padding: 5px 8px;
}
.page-button {
  width: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  color: var(--text-secondary);
  background: transparent;
  font-size: 14px;
}
.page-button:hover {
  background: var(--surface-hover);
}
.page-button[aria-current="page"] {
  background: #f3e8ff;
  color: #7e22ce;
}
.page-numbers {
  display: flex;
  gap: 2px;
}
.column-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.original-layout .page .column-filter {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  position: relative;
}
.original-layout .page .column-filter > summary {
  padding: 4px;
  display: flex;
  border: 0;
  background: transparent;
  border-radius: 4px;
  color: var(--text-secondary);
}
.column-filter > summary::-webkit-details-marker {
  display: none;
}
.original-layout .page .column-filter[open] > summary,
.original-layout .page .column-filter > summary.filter-active {
  background: #f3e8ff;
  color: #7e22ce;
}
.column-filter-panel {
  position: absolute;
  right: 0;
  top: 28px;
  width: 210px;
  z-index: 15;
  padding: 12px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  box-shadow: 0 8px 25px #0002;
  display: grid;
  gap: 10px;
  white-space: normal;
}
.original-layout .table-scroll:has(.column-filter[open]) {
  padding-bottom: 160px;
  margin-bottom: -160px;
}
.native-table th:has(.column-filter[open]) {
  z-index: 20;
}
.original-layout .native-table .table-sort {
  white-space: nowrap;
}
.original-paginator .page-button:disabled {
  opacity: 0.35;
}
html[data-theme="dark"] .role-tag,
html[data-theme="dark"] .user-initial {
  background: #581c874d;
  color: #e9d5ff;
}
html[data-theme="dark"] .account-status.active {
  background: #14532d4d;
  color: #86efac;
}
html[data-theme="dark"] .account-status.inactive {
  background: #7f1d1d4d;
  color: #fca5a5;
}
@media (max-width: 639px) {
  .original-paginator {
    gap: 3px;
    padding: 10px 2px;
  }
  .page-button {
    width: 28px;
  }
  .original-paginator > span[role="status"] {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 4px;
  }
}
@media print {
  .original-paginator,
  .table-search-toolbar,
  .column-filter {
    display: none !important;
  }
}
.original-layout .clients-page {
  max-width: none;
  padding: 0;
  flex: 1;
  display: flex;
}
.client-split-layout {
  display: flex;
  min-height: calc(100vh - 64px);
  width: 100%;
  min-width: 0;
}
.client-list-sidebar {
  width: 288px;
  flex-shrink: 0;
  background: var(--surface-card);
  border-right: 1px solid var(--page-border);
  display: flex;
  flex-direction: column;
}
.client-list-sidebar > .search-with-icon {
  padding: 12px;
  border-bottom: 1px solid var(--page-border);
}
.client-list-sidebar > .search-with-icon > svg {
  left: 24px;
}
.client-list-sidebar input {
  width: 100%;
  border-radius: 8px;
  background: var(--surface-ground);
}
.client-list {
  overflow-y: auto;
  max-height: calc(100vh - 130px);
}
.client-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--page-border);
}
.client-list-item:hover,
.client-list-item.selected {
  background: #faf5ff;
}
.client-list-item > div {
  flex: 1;
  min-width: 0;
}
.client-list-item strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
}
.client-list-item small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 4px;
}
.client-list-item > svg {
  color: #cbd5e1;
  flex-shrink: 0;
}
.client-gender {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #dbeafe;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.client-gender.female {
  background: #fce7f3;
  color: #db2777;
}
.client-workspace-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.select-client-empty {
  margin: auto;
  padding: 32px;
  text-align: center;
  max-width: 420px;
}
.select-client-empty > span {
  height: 80px;
  width: 80px;
  border-radius: 16px;
  background: #f3e8ff;
  color: #9333ea;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.select-client-empty h2 {
  font-size: 20px;
  margin-bottom: 8px;
}
.select-client-empty p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.select-client-empty ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
}
.select-client-empty li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--page-border);
  border-radius: 8px;
  background: var(--surface-card);
  font-size: 12px;
}
.select-client-empty li svg {
  color: #9333ea;
}
.client-detail-layout {
  display: flex;
  gap: 24px;
  padding: 24px;
  min-width: 0;
}
.client-profile-panel {
  width: 260px;
  flex-shrink: 0;
}
.client-profile-heading {
  text-align: center;
  padding: 20px;
  background: var(--surface-card);
  border: 1px solid var(--page-border);
  border-radius: 12px;
  margin-bottom: 16px;
}
.client-profile-heading > .client-gender {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}
.client-profile-heading small {
  display: block;
  color: var(--text-muted);
  margin-top: 5px;
}
.client-profile-panel .record-details {
  grid-template-columns: 1fr;
  gap: 16px;
}
.client-profile-panel .panel-pad {
  padding: 16px;
}
.client-profile-panel .module-nav {
  display: grid;
  gap: 5px;
  margin: 0;
}
.client-profile-panel .module-nav a {
  font-size: 11px;
  padding: 8px;
}
.client-services {
  flex: 1;
  min-width: 0;
}
.client-services .panel-pad {
  padding: 20px;
}
.original-layout .client-workspace-content .native-table {
  min-width: 600px;
}
html[data-theme="dark"] .client-list-item:hover,
html[data-theme="dark"] .client-list-item.selected {
  background: #581c8733;
}
@media (max-width: 1100px) {
  .client-detail-layout {
    flex-direction: column;
  }
  .client-profile-panel {
    width: auto;
  }
  .client-profile-panel .record-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 639px) {
  .client-list-sidebar {
    width: 125px;
  }
  .client-list-item {
    padding: 12px 8px;
    gap: 6px;
  }
  .client-list-item .client-gender {
    width: 26px;
    height: 30px;
    border-radius: 6px;
  }
  .client-list-item strong {
    font-size: 11px;
  }
  .client-list-item small {
    font-size: 9px;
  }
  .client-list-item > svg {
    display: none;
  }
  .client-list-sidebar > .search-with-icon {
    padding: 8px;
  }
  .client-list-sidebar input {
    padding: 8px;
    font-size: 11px;
  }
  .client-list-sidebar > .search-with-icon > svg {
    display: none;
  }
  .client-list-sidebar .empty-state {
    padding: 12px;
  }
  .client-detail-layout {
    padding: 12px;
    gap: 12px;
  }
  .select-client-empty {
    padding: 20px 12px;
  }
  .select-client-empty h2 {
    font-size: 18px;
  }
  .select-client-empty p {
    font-size: 12px;
  }
  .select-client-empty li {
    padding: 8px;
    font-size: 10px;
  }
}
.referrals-original {
  max-width: 1280px;
  margin: 0 auto;
}
.referral-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.referral-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}
.referral-stat > span {
  height: 36px;
  width: 36px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 12px;
}
.referral-stat strong {
  font-size: 20px;
  line-height: 25px;
  font-weight: 700;
  display: block;
}
.referral-stat small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 10px;
}
.referrals-toolbar {
  padding: 12px 20px;
  border-bottom: 1px solid var(--page-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.referrals-toolbar > div:first-child {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-secondary);
}
.referrals-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.referral-date-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 12px 20px;
}
.referral-table th {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  padding: 12px 16px;
  background: var(--surface-card);
}
.referral-table td {
  padding: 12px 16px;
  line-height: 20px;
  font-size: 13px;
  max-width: 250px;
}
.referral-table tbody tr:hover {
  background: var(--surface-hover);
}
.referral-paginator {
  justify-content: flex-end;
  padding: 16px;
}
.referral-paginator form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.referral-paginator select {
  min-width: 115px;
}
.original-layout .status fluent-badge {
  border-radius: 4px;
}
.original-layout .page-heading .eyebrow {
  display: none;
}
@media (max-width: 639px) {
  .referrals-toolbar-actions {
    width: 100%;
  }
  .referrals-toolbar-actions .search-with-icon {
    flex-basis: 100%;
    order: 3;
  }
  .referrals-toolbar-actions input {
    width: 100%;
  }
  .referral-paginator {
    justify-content: center;
  }
  .referral-stats-row {
    gap: 14px 24px;
  }
}
.original-layout .tasks-page {
  max-width: none;
  padding: 24px;
}
.task-summary-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.task-summary-chips > span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--page-border);
  border-radius: 8px;
  background: var(--surface-card);
}
.task-summary-chips small {
  font-size: 12px;
  color: var(--text-muted);
}
.task-summary-chips strong {
  font-size: 14px;
}
.task-summary-chips svg {
  color: #9333ea;
}
.task-list-panel {
  padding: 12px !important;
}
.original-layout .task-toolbar {
  margin-bottom: 16px;
  gap: 8px;
}
.task-toolbar label {
  max-width: 200px;
  min-width: 120px;
  flex: 1;
}
.task-toolbar select,
.task-toolbar input {
  font-size: 12px;
  min-height: 36px;
}
.task-toolbar label > input[type="date"] {
  width: 145px;
}
.original-layout .page .task-status-group {
  margin: 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--page-border);
  overflow: visible;
}
.original-layout .page .task-status-group > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #579bfc;
  color: white;
  border: 0;
  font-size: 12px;
}
.original-layout .page .task-status-group.in_progress > summary {
  background: #fdab3d;
}
.original-layout .page .task-status-group.completed > summary {
  background: #00c875;
}
.original-layout .page .task-status-group.archived > summary {
  background: #9ca3af;
}
.task-status-group > summary > span {
  font-weight: 400;
  font-size: 11px;
  border: 1px solid #ffffff55;
  border-radius: 4px;
  padding: 0 5px;
}
.task-status-group .table-scroll {
  margin: 0 !important;
}
.task-status-group .original-paginator {
  display: none;
}
.task-status-group .empty-state {
  padding: 16px;
}
.task-status-group .native-table td {
  padding: 10px 14px;
}
.task-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.task-editor-layout .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.task-editor-layout aside .form-grid {
  grid-template-columns: 1fr;
}
.task-editor-layout .panel {
  margin: 0;
}
.task-editor-layout .panel > h2 {
  font-size: 14px;
  margin-bottom: 20px;
}
.task-editor-layout .field:has(textarea) {
  grid-column: 1/-1;
}
.task-editor-shell > .stack-form {
  gap: 20px;
}
.task-editor-layout .field > input[name="title"] {
  max-width: none;
}
.original-layout .task-board .task-card {
  margin: 12px 0;
}
.original-layout .task-editor-shell {
  padding: 0;
  background: transparent;
  border: 0;
}
.original-layout .form-grid .field:has(input[name="title"]) {
  grid-column: 1/-1;
}
.original-dialog.task-drawer {
  position: fixed;
  left: auto;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 0;
  height: 100vh;
  max-height: 100vh;
  width: min(760px, 100vw);
  border-radius: 12px 0 0 12px;
}
.task-drawer .task-editor-layout {
  display: block;
}
.task-drawer .task-editor-layout > .panel {
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .task-editor-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 639px) {
  .original-layout .tasks-page {
    padding: 16px;
  }
  .task-editor-layout .form-grid {
    grid-template-columns: 1fr;
  }
  .task-toolbar label {
    max-width: none;
  }
  .task-summary-chips {
    gap: 8px;
  }
  .task-summary-chips > span {
    padding: 5px 9px;
  }
}
.original-layout .page .column-filter-panel {
  position: fixed;
  right: auto;
  z-index: 100;
}
.original-layout .table-scroll:has(.column-filter[open]) {
  padding-bottom: 0;
  margin-bottom: 0;
}
.original-layout .productivity-page {
  max-width: none;
  padding: 24px 32px;
}
.productivity-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.productivity-stat {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.productivity-stat > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f3e8ff;
  color: #9333ea;
}
.productivity-stat > strong {
  font-size: 24px;
  font-weight: 700;
}
.productivity-stat > small {
  grid-column: 1/-1;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
}
.productivity-metric {
  font-size: 12px;
  font-weight: 500;
  border: 0;
  border-radius: 0;
  padding: 2px 8px;
  color: white;
  min-height: 22px;
}
.productivity-metric.good {
  background: #16a34a;
}
.productivity-metric.needs-attention {
  background: #dc2626;
}
.productivity-table tbody tr.notice {
  background: #faf5ff;
}
.records-dialog {
  width: min(1000px, calc(100vw - 32px));
  padding: 24px;
}
.records-dialog .report-section {
  margin-top: 16px;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.original-chart {
  border: 1px solid var(--page-border);
  border-radius: 12px;
  padding: 20px;
}
.original-chart h3 {
  font-size: 14px;
  margin-bottom: 16px;
}
.chart-canvas {
  position: relative;
  height: 280px;
}
.productivity-table td:first-child {
  position: sticky;
  left: 0;
  background: var(--surface-card);
  z-index: 1;
  min-width: 200px;
}
.records-dialog .native-table {
  min-width: 700px;
}
@media (max-width: 1023px) {
  .productivity-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 639px) {
  .productivity-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .original-layout .productivity-page {
    padding: 20px 16px;
  }
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .chart-canvas {
    height: 230px;
  }
}
.original-layout .publications-page {
  max-width: 1280px;
}
.publication-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.publication-heading > h2 {
  font-size: 20px;
  font-weight: 700;
}
.publication-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.publication-toolbar select {
  max-width: 150px;
}
.publication-toolbar > span {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
}
.publication-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 100px 100px 100px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--page-border);
  font-size: 12px;
}
.publication-table-heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  background: var(--surface-hover);
  color: var(--text-muted);
  padding: 8px 16px;
  font-weight: 600;
}
.publication-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.publication-name strong {
  font-size: 13px;
  font-weight: 600;
}
.publication-name p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.publication-file-icon {
  width: 36px;
  height: 40px;
  border-radius: 8px;
  background: #f3e8ff;
  color: #9333ea;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.publication-row > .account-status {
  justify-self: start;
}
.publication-row small {
  color: var(--text-muted);
  font-size: 11px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.original-dialog .dialog-actions .button {
  justify-self: auto;
}
@media (max-width: 767px) {
  .publication-table-heading {
    display: none;
  }
  .publication-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .publication-name {
    flex-basis: 100%;
  }
  .publication-row .row-actions {
    margin-left: auto;
  }
  .publication-toolbar {
    flex-wrap: wrap;
  }
  .publication-toolbar .search-with-icon {
    flex: 1;
  }
  .publication-toolbar > span {
    flex-basis: 100%;
    margin: 0;
  }
}
.original-layout .original-schedule-grid {
  table-layout: fixed;
  min-width: 1180px;
}
.original-schedule-grid th,
.original-schedule-grid td {
  padding: 10px;
  border: 1px solid var(--page-border);
  vertical-align: middle;
  text-align: center;
}
.original-schedule-grid th:first-child {
  width: 230px;
  text-align: left;
  padding: 14px;
}
.original-schedule-grid thead th {
  background: var(--surface-ground);
  font-size: 11px;
  letter-spacing: 0.5px;
}
.original-schedule-grid th small {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 10px;
}
.original-schedule-grid tbody th strong {
  display: block;
  font-size: 12px;
  margin-top: 8px;
}
.original-schedule-grid .user-initial {
  width: 32px;
  height: 32px;
}
.schedule-shift {
  width: 100%;
  padding: 12px 8px;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  background: #f5f3ff;
  color: #5b21b6;
  text-align: left;
  min-height: 86px;
}
.schedule-shift strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.schedule-shift small {
  display: block;
  font-size: 10px;
  margin: 6px 0;
}
.schedule-shift > span {
  font-size: 10px;
  font-weight: 700;
}
.schedule-shift.off {
  background: var(--surface-ground);
  color: var(--text-muted);
  border: 1px dashed var(--surface-border);
}
.schedule-shift.overtime {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.schedule-shift.training {
  background: #ecfeff;
  border-color: #a5f3fc;
  color: #155e75;
}
.schedule-grid-panel {
  margin-bottom: 24px;
}
.schedule-editor .table-scroll {
  overflow: visible;
}
.schedule-editor table,
.schedule-editor tbody,
.schedule-editor tr,
.schedule-editor th,
.schedule-editor td {
  display: block;
  min-width: 0;
  width: 100%;
  padding: 8px 0 !important;
  border: 0;
}
.schedule-editor thead {
  display: none;
}
.schedule-editor td:has(input[type="checkbox"]) {
  display: flex;
  gap: 10px;
  align-items: center;
}
.schedule-editor td input[type="time"],
.schedule-editor td input,
.schedule-editor td select {
  width: 100%;
}
.schedule-editor td input + input {
  margin-top: 12px;
}
.schedule-editor th small {
  margin-left: 10px;
}
.schedule-editor .native-table tr[hidden] {
  display: none;
}
.schedule-editor .module-nav {
  margin-top: 20px;
}
.schedule-editor > h2 {
  display: none;
}
html[data-theme="dark"] .schedule-shift.regular {
  background: #7c3aed1a;
  color: #ede9fe;
  border-color: #8b5cf64d;
}
html[data-theme="dark"] .original-layout .panel {
  background: #1e293b;
}
html[data-theme="dark"] .original-layout .field input,
html[data-theme="dark"] .original-layout .field select,
html[data-theme="dark"] .original-layout .field textarea {
  background: #0f172a;
  border-color: #475569;
}
.mileage-heading {
  margin-bottom: 24px;
}
.mileage-heading h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}
.mileage-heading p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}
.mileage-original-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.mileage-original-grid .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mileage-original-grid h2 {
  font-size: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--page-border);
}
.mileage-estimates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface-ground);
}
.mileage-estimates small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.mileage-estimates strong {
  font-size: 18px;
}
.mileage-calculation p {
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 1.7;
  margin: 16px 0;
  color: var(--text-secondary);
}
.mileage-calculation p > svg {
  flex-shrink: 0;
  color: #9333ea;
  margin-top: 2px;
}
.mileage-requests .native-table th {
  text-transform: none;
}
.mileage-requests p {
  font-size: 12px;
  margin-top: 4px;
}
.support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.support-header > div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.support-header h1 {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
}
.support-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.support-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: linear-gradient(#a855f7, #9333ea);
  color: white;
  border-radius: 16px;
}
.support-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.support-quick-actions button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  text-align: left;
}
.support-quick-actions .green {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}
.support-quick-actions .amber {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}
.support-quick-actions .purple {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #7e22ce;
}
.support-quick-actions strong {
  display: block;
  font-size: 14px;
}
.support-quick-actions small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
.support-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.support-filters > select {
  max-width: 180px;
}
.ticket-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.ticket-card {
  padding: 20px;
}
.ticket-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ticket-card > h2 {
  font-size: 17px;
  margin: 18px 0 10px;
}
.ticket-card > p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.ticket-card > footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--page-border);
  padding: 14px 0;
  margin-top: 18px;
}
.ticket-card > small {
  font-size: 10px;
  color: var(--text-muted);
}
@media (max-width: 1100px) {
  .support-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mileage-original-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 639px) {
  .support-header {
    flex-direction: column;
    align-items: start;
  }
  .support-header h1 {
    font-size: 24px;
  }
  .support-quick-actions {
    grid-template-columns: 1fr;
  }
  .support-filters {
    flex-wrap: wrap;
  }
  .mileage-original-grid .form-grid {
    grid-template-columns: 1fr;
  }
  .ticket-card-grid {
    grid-template-columns: 1fr;
  }
}
.task-title-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}
.task-title-cell a {
  font-weight: 500;
  font-size: 13px;
}
.task-check {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #d1d5db;
  padding: 0;
}
.task-check.checked {
  color: #00c875;
}
.task-check:hover {
  color: #9333ea;
}
.projects-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.projects-heading h1 {
  font-size: 24px;
  font-weight: 700;
}
.projects-heading p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}
.project-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-card {
  position: relative;
  padding: 0;
}
.project-color-bar {
  height: 8px;
  width: 100%;
}
.project-card-body {
  padding: 24px;
}
.project-card-icon {
  height: 56px;
  width: 56px;
  display: grid;
  place-items: center;
  background: #f3e8ff;
  color: #9333ea;
  border-radius: 12px;
  margin-bottom: 20px;
}
.project-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.project-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.project-view-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #9333ea;
  padding-top: 16px;
  border-top: 1px solid var(--page-border);
  font-weight: 500;
}
.project-edit {
  position: absolute;
  right: 16px;
  top: 24px;
}
.project-card-body .original-dialog .stack-form + .stack-form {
  margin-top: 20px;
}
.project-card .original-dialog .form-grid {
  grid-template-columns: 1fr;
}
@media (max-width: 1023px) {
  .project-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 639px) {
  .project-card-grid {
    grid-template-columns: 1fr;
  }
}

/* EHA brand and shared right-hand drawers. */
.maintenance-banner {
  background: #fff3cd;
  color: #624600;
  border-bottom: 1px solid #e9c966;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}
html[data-theme="dark"] .maintenance-banner {
  background: #3d3017;
  color: #ffe2a0;
  border-color: #80672b;
}
.original-layout .topbar,
.original-layout .dashboard-topbar,
html[data-theme="dark"] .original-layout .topbar {
  background: linear-gradient(110deg, #572680, #482269);
  color: #fff;
  border-bottom: 1px solid #ffffff24;
}
.original-layout .topbar .header-title,
.original-layout .topbar .identity strong,
.original-layout .topbar .identity small,
.original-layout .topbar .icon-button,
.original-layout .topbar .logout-button {
  color: #fff;
}
.original-layout .topbar .icon-button:hover,
.original-layout .topbar .logout-button:hover {
  background: #ffffff20;
}
.original-layout .topbar .dashboard-search {
  background: #fff;
  color: #482269;
  border-radius: 8px;
}
.original-layout .topbar .dashboard-search input {
  background: transparent;
  color: #27123b;
}
.original-layout .topbar .dashboard-search input::placeholder {
  color: #645a6e;
}
.original-layout .topbar .header-actions .button {
  background: #ffffff18;
  color: #fff;
  border-color: #ffffff65;
}
.original-layout .native-table th {
  background: #f1edfc;
  color: #482269;
}
html[data-theme="dark"] .original-layout .native-table th {
  background: #371a52;
  color: #e1d8f8;
}
.original-layout .native-table tbody tr[data-row-href]:hover td,
.original-layout .native-table tbody tr[data-row-dialog]:hover td {
  background: var(--colorBrandBackground2);
}
tr[data-row-href],
tr[data-row-dialog] {
  cursor: pointer;
}
tr[data-row-href]:focus-visible,
tr[data-row-dialog]:focus-visible {
  outline: 2px solid var(--colorBrandStroke1);
  outline-offset: -2px;
}
html:has(dialog[open]) {
  overflow: hidden;
}
.original-layout dialog,
.original-layout .original-dialog.task-drawer,
.original-layout .records-dialog,
.original-layout .calendar-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(640px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-left: 3px solid var(--colorBrandBackground);
  border-radius: 0;
  padding: 24px;
  background: var(--colorNeutralBackground1);
  color: var(--colorNeutralForeground1);
  overflow: auto;
  box-shadow: -12px 0 40px #180a2530;
}
.original-layout dialog[open] {
  animation: eha-drawer-enter 220ms ease-out;
}
.original-layout dialog::backdrop {
  background: #180a2573;
}
@keyframes eha-drawer-enter {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .original-layout dialog[open] {
    animation: none;
  }
}
.original-layout dialog .dialog-heading {
  position: sticky;
  top: -24px;
  z-index: 5;
  background: var(--colorNeutralBackground1);
  color: var(--colorBrandForeground1);
  padding: 16px 0;
  border-bottom: 1px solid var(--colorNeutralStroke2);
  gap: 12px;
}
.dialog-heading h2 {
  font-size: 18px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.drawer-auto-close {
  float: right;
}
.original-layout .detail-drawer {
  width: min(900px, 100vw);
  padding: 0;
  overflow: hidden;
}
.detail-drawer[open] {
  display: flex;
  flex-direction: column;
}
.original-layout .detail-drawer .dialog-heading {
  position: static;
  padding: 16px 20px;
  margin: 0;
  flex-shrink: 0;
}
.drawer-full-page {
  margin-left: auto;
  font-size: 12px;
  white-space: nowrap;
  text-decoration: underline;
}
.drawer-detail-frame {
  width: 100%;
  min-height: 0;
  flex: 1;
  border: 0;
  background: var(--colorNeutralBackground1);
}
.drawer-document .maintenance-banner,
.drawer-document .topbar,
.drawer-document .original-brand-panel,
.drawer-document .skip-link {
  display: none;
}
.drawer-document .original-shell > .workspace {
  width: 100%;
  margin: 0;
}
.drawer-document .page {
  padding: 20px;
  max-width: 100%;
}
.original-layout dialog .native-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}
.original-layout dialog .native-table td,
.original-layout dialog .native-table th {
  overflow-wrap: anywhere;
  white-space: normal;
  padding: 8px 6px;
}
.original-layout .productivity-page .table-scroll {
  overflow-x: visible;
}
.original-layout .productivity-table {
  table-layout: fixed;
  min-width: 0;
  width: 100%;
}
.original-layout .productivity-table th,
.original-layout .productivity-table td {
  min-width: 0;
  padding: 8px 6px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.original-layout .productivity-table th:first-child {
  width: 25%;
}
.original-layout .productivity-table td:first-child {
  min-width: 0;
  position: static;
  background: transparent;
}
.productivity-table .table-sort {
  white-space: normal;
  overflow-wrap: anywhere;
}

.productivity-table .row-icon {
  width: 26px;
  padding: 3px;
}
.productivity-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.productivity-summary > div {
  background: var(--colorBrandBackground2);
  padding: 12px;
  border-radius: 8px;
}
.productivity-summary dt {
  font-size: 12px;
  color: var(--colorNeutralForeground2);
}
.productivity-summary dd {
  margin: 4px 0 0;
  font-weight: 600;
  color: var(--colorBrandForeground1);
}
@media (max-width: 700px) {
  .original-layout .productivity-table th:nth-child(4),
  .original-layout .productivity-table td:nth-child(4),
  .original-layout .productivity-table th:nth-child(5),
  .original-layout .productivity-table td:nth-child(5),
  .original-layout .productivity-table th:nth-child(6),
  .original-layout .productivity-table td:nth-child(6) {
    display: none;
  }
  .original-layout .productivity-table th:first-child {
    width: 40%;
  }
  .maintenance-banner {
    font-size: 12px;
    padding: 8px 12px;
  }
  .original-layout dialog {
    padding: 16px;
  }
  .original-layout .detail-drawer {
    padding: 0;
  }
  .chart-grid {
    grid-template-columns: 1fr;
  }
}
@media print {
  .maintenance-banner {
    display: none;
  }
}

/* Ordinary record tables wrap within their page; editable planning grids retain their own layout. */
.original-layout .native-table:not([data-editable-table]) {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}
.original-layout .native-table:not([data-editable-table]) th,
.original-layout .native-table:not([data-editable-table]) td {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.original-layout .native-table:not([data-editable-table]) .table-sort {
  white-space: normal;
  overflow-wrap: anywhere;
}
.original-layout .native-table:not([data-editable-table]) td > a {
  white-space: normal;
}
.original-layout .native-table:not([data-editable-table]) .row-actions {
  flex-wrap: wrap;
}
.original-layout .productivity-table th .column-filter {
  margin-left: 0;
}
.original-layout .productivity-table th .column-filter summary {
  padding: 1px;
}

/* Header filters are compact controls, not expandable record-detail columns. */
.original-layout .native-table .column-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: start;
  gap: 4px;
  min-width: 0;
}
.original-layout .page .native-table .column-filter,
.original-layout .page .native-table .column-filter[open] {
  width: 22px;
  min-width: 0;
  max-width: 22px;
  margin: 0;
}
.original-layout .native-table .column-filter > summary {
  width: 22px;
  height: 24px;
  padding: 4px;
  box-sizing: border-box;
}
.original-layout .native-table:not([data-editable-table]) th,
.original-layout .native-table:not([data-editable-table]) .table-sort {
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
  line-height: 1.4;
}
.original-layout .native-table .table-sort {
  min-width: 0;
  width: 100%;
}
.original-layout .compact-users-table th:first-child {
  width: 3%;
}
.original-layout .compact-users-table th:nth-child(2) {
  width: 16%;
}
.original-layout .compact-users-table th:nth-child(4) {
  width: 18%;
}
.original-layout .compact-users-table th:last-child {
  width: 9%;
}
.original-layout .compact-users-table .user-name-cell {
  white-space: normal;
  min-width: 0;
}
@media (max-width: 900px) {
  /* Secondary fields remain available in each row's detail drawer. */
  .compact-users-table :is(th, td):nth-child(3),
  .compact-users-table :is(th, td):nth-child(4),
  .compact-users-table :is(th, td):nth-child(7),
  .compact-users-table :is(th, td):nth-child(8),
  .compact-users-table:has(th:nth-child(10)) :is(th, td):nth-child(9) {
    display: none;
  }
  .original-layout .compact-users-table th:first-child {
    width: 7%;
  }
  .original-layout .compact-users-table th:nth-child(2) {
    width: 34%;
  }
  .original-layout .compact-users-table th:last-child {
    width: 20%;
  }
}
.local-record-drawer dd {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.local-summary-chart {
  display: grid;
  gap: 20px;
}
.local-summary-chart > div > span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.local-summary-chart > div > div {
  height: 16px;
  border-radius: 6px;
  background: var(--colorBrandBackground2);
  overflow: hidden;
}
.local-summary-chart > div > div > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--colorBrandBackground);
}
.productivity-filters {
  align-items: end;
}
.productivity-filters > label {
  flex: 1 1 150px;
  min-width: 0;
}
.productivity-filters input,
.productivity-filters select {
  width: 100%;
  min-width: 0;
}
.productivity-filters .date-range-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 2 1 310px;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.date-range-filter legend {
  padding: 0;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--colorBrandForeground1);
}
.date-range-filter label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 12px;
}
@media (max-width: 480px) {
  .productivity-filters .date-range-filter {
    flex-basis: 100%;
    gap: 8px;
  }
}

/* Workspace overview: quiet surfaces, illustrated modules, and EHA accents. */
.original-layout.layout-dashboard {
  --overview-ground: #f8f7fb;
  --overview-card: #fff;
  --overview-border: #e7dff2;
  --overview-ink: #30233f;
  --overview-muted: #7a6b8c;
  background: var(--overview-ground);
}
.original-layout .dashboard-topbar {
  min-height: 88px;
  padding: 18px 3%;
  background: var(--overview-card);
  border-bottom: 1px solid var(--overview-border);
  gap: 24px;
}
.dashboard-logo { flex-shrink: 0; }
.dashboard-logo img { width: 340px; max-width: 26vw; height: 44px; object-position: left; }
.dashboard-search { max-width: 510px; margin: 0 auto; }
.dashboard-search input {
  width: 100%; min-height: 46px; border-color: var(--overview-border);
  background: var(--overview-ground); border-radius: 12px; color: var(--overview-ink);
}
.dashboard-search > svg { color: var(--overview-muted); }
.original-layout .dashboard-topbar .identity { text-align: left; }
.dashboard-topbar .identity strong { color: var(--overview-ink); font-size: 13px; }
.dashboard-topbar .identity small { color: var(--overview-muted); font-size: 11px; text-transform: capitalize; }
.dashboard-topbar .identity .avatar { width: 44px; height: 44px; background: #fae8bd; border: 0; color: #96671e; }
.original-layout .dashboard-page { background: var(--overview-ground); padding: 26px 3% 22px; }
.dashboard-content { max-width: 1440px; }
.overview-breadcrumb { display: flex; gap: 14px; color: var(--overview-muted); font-size: 12px; margin-bottom: 24px; }
.overview-breadcrumb a { color: #67429b; }
.welcome-banner {
  min-height: 180px; padding: 36px 38px; margin-bottom: 30px;
  border-radius: 20px; background: linear-gradient(110deg, #43255e, #603586);
  box-shadow: none; isolation: isolate;
}
.welcome-banner:before { width: 460px; height: 460px; right: -100px; top: -94px; border: 48px solid #ffffff03; background: #ffffff02; z-index: -1; }
.welcome-banner:after { display: none; }
.workspace-eyebrow { display: block; font-size: 10px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; color: #f6cd56; margin-bottom: 12px; }
.welcome-person h1 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.2; letter-spacing: -1.3px; margin: 0 0 8px; color: #fff; }
.welcome-person p { font-size: 14px; color: #e8ddef; margin: 0; }
.welcome-focus { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; flex-shrink: 0; color: #fff; font-size: 12px; font-weight: 700; padding: 13px 18px; border: 1px solid #ffffff50; background: #ffffff08; border-radius: 9px; }
.welcome-focus:hover { background: #ffffff1c; color: #fff; }
.category-heading { justify-content: space-between; margin-bottom: 19px; gap: 16px; }
.category-heading h2 { font-size: 21px; color: var(--overview-ink); letter-spacing: -.7px; margin: 0; line-height: 1.4; }
.category-heading p { font-size: 12px; color: var(--overview-muted); margin: 3px 0 0; }
.module-count { font-size: 11px; white-space: nowrap; background: #efeaf6; color: var(--overview-muted); border-radius: 7px; padding: 6px 10px; }
.dashboard-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.dashboard-card { background: var(--overview-card); border: 1px solid var(--overview-border); min-height: 233px; padding: 32px 18px 28px; justify-content: center; border-radius: 17px; box-shadow: 0 2px 8px #35204702; text-decoration: none; }
.dashboard-card-focus { border-color: #b999e7; background: linear-gradient(150deg, var(--overview-card), #fcfaff); }
.dashboard-card-image { padding: 0; margin: 3px 0 21px; height: 88px; }
.workspace-illustration { display: block; transition: transform .2s ease; }
.dashboard-card:hover .workspace-illustration { transform: translateY(-3px); }
.dashboard-card h3 { color: var(--overview-ink); font-size: 16px; line-height: 1.4; letter-spacing: -.4px; margin: 0; }
.dashboard-card p { color: var(--overview-muted); font-size: 12px; line-height: 1.6; margin: 1px 0 0; max-width: 260px; }
.dashboard-card:hover { border-color: #b999e7; box-shadow: 0 8px 26px #43255e0a; transform: translateY(-3px); }
.dashboard-card:focus-visible, .welcome-focus:focus-visible { outline: 3px solid #b999e7; outline-offset: 4px; }
.dashboard-card:focus-visible .card-arrow { opacity: 1; }
.overview-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; margin-top: 28px; border-top: 1px solid var(--overview-border); font-size: 10px; color: var(--overview-muted); }
.overview-footer strong { letter-spacing: .6px; color: #71548b; }
html[data-theme="dark"] .layout-dashboard { --overview-ground: #171320; --overview-card: #211b2b; --overview-border: #3c304b; --overview-ink: #f0e9f8; --overview-muted: #b8a9ca; }
html[data-theme="dark"] .original-layout .dashboard-topbar, html[data-theme="dark"] .original-layout .dashboard-page { background: var(--overview-ground); border-color: var(--overview-border); }
html[data-theme="dark"] .dashboard-search input, html[data-theme="dark"] .dashboard-card { background: var(--overview-card); color: var(--overview-ink); border-color: var(--overview-border); }
html[data-theme="dark"] .dashboard-card-focus { background: #292035; border-color: #8b65b5; }
html[data-theme="dark"] .module-count { background: #32273f; }
@media (max-width: 1100px) {
  .dashboard-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-logo img { width: 260px; }
  .original-layout .dashboard-topbar { gap: 16px; }
}
@media (max-width: 760px) {
  .original-layout .dashboard-topbar { flex-wrap: wrap; gap: 12px; padding: 16px 20px; }
  .dashboard-logo img { max-width: 55vw; width: 260px; height: 38px; }
  .dashboard-search { order: 3; flex-basis: 100%; max-width: none; }
  .dashboard-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .original-layout .dashboard-page { padding: 20px; }
  .welcome-banner { padding: 28px 24px; min-height: 190px; flex-wrap: wrap; gap: 22px; }
  .welcome-focus { padding: 10px 14px; }
  .dashboard-card { min-height: 220px; padding: 24px 14px; }
}
@media (max-width: 420px) {
  .dashboard-card-grid { grid-template-columns: 1fr; }
  .dashboard-card { min-height: 210px; }
  .module-count { font-size: 10px; padding: 5px 7px; }
  .category-heading h2 { font-size: 19px; }
  .overview-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-card, .workspace-illustration { transition: none; }
  .dashboard-card:hover, .dashboard-card:hover .workspace-illustration { transform: none; }
}

.dashboard-card-image > img.workspace-illustration { width: 88px; height: 88px; filter: none; }
.dashboard-card:hover .dashboard-card-image > img.workspace-illustration { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .dashboard-card:hover .dashboard-card-image > img.workspace-illustration { transform: none; }
}

/* Keep navigation readable on small laptops and tablets as well as desktop. */
.original-layout .dashboard-topbar .topbar-actions { flex-shrink: 0; min-width: 0; }
.original-layout .dashboard-topbar .identity { min-width: 0; flex-shrink: 1; }
.original-layout .dashboard-topbar .identity > div { display: block; min-width: 0; max-width: 220px; }
.original-layout .dashboard-topbar .identity strong {
  display: block; color: var(--overview-ink); font-size: 13px; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.original-layout .dashboard-topbar .identity small {
  display: block; color: var(--overview-muted); font-size: 12px; line-height: 1.5;
}
.original-layout .dashboard-topbar .logout-button,
.original-layout .dashboard-topbar .icon-button { color: var(--overview-ink); }
.original-layout .dashboard-topbar .logout-button:hover { color: #a32337; }
.dashboard-search { min-width: 150px; }
.dashboard-search input::placeholder { color: var(--overview-muted); opacity: 1; }
html[data-theme="dark"] .dashboard-topbar .dashboard-logo {
  padding: 6px 10px; border-radius: 8px; background: #fff;
}
@media (min-width: 761px) and (max-width: 1050px) {
  .original-layout .dashboard-topbar { flex-wrap: wrap; }
  .dashboard-logo img { max-width: 40vw; width: 320px; }
  .dashboard-search { order: 3; flex-basis: 100%; max-width: none; }
}
@media (min-width: 601px) and (max-width: 760px) {
  .dashboard-logo img { max-width: 35vw; width: 250px; }
  .original-layout .dashboard-topbar .identity > div { max-width: 170px; }
}
@media (max-width: 600px) {
  .original-layout .dashboard-topbar .identity > div { display: none; }
}

/* Productivity report shares the dashboard shell and keeps its filters native. */
.original-layout .productivity-redesign { max-width: 1600px; margin: 0 auto; width: 100%; padding: 26px 3%; color: var(--overview-ink); }
.productivity-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; margin: 0 0 20px; color: var(--overview-muted); }
.productivity-breadcrumb a:last-of-type { color: var(--overview-muted); }
.productivity-breadcrumb [aria-current] { color: #7240b2; }
.productivity-redesign .panel { background: var(--overview-card); border: 1px solid var(--overview-border); border-radius: 13px; box-shadow: 0 3px 16px #45236604; }
.productivity-redesign .productivity-stats { gap: 14px; margin-bottom: 14px; }
.productivity-redesign .productivity-stat { padding: 18px; gap: 12px; align-items: center; }
.productivity-redesign .productivity-stat > span { width: 48px; height: 48px; background: #f2ecff; color: #7941cf; border-radius: 12px; }
.productivity-redesign .productivity-stat > span svg { width: 27px; height: 27px; }
.productivity-redesign .productivity-stat strong { font-size: clamp(23px,2.2vw,30px); letter-spacing: -.7px; color: var(--overview-ink); }
.productivity-redesign .productivity-stat small { font-size: 12px; color: var(--overview-muted); }
.productivity-redesign .productivity-actions { display: flex; justify-content: flex-end; gap: 16px; margin: 0 0 12px; font-size: 12px; }
.productivity-redesign .productivity-actions a { border: 0; padding: 0; color: #7941cf; }
.productivity-redesign > .panel-pad { padding: 20px; margin-bottom: 18px; }
.productivity-redesign .productivity-filters { display: grid; grid-template-columns: minmax(230px,1.15fr) minmax(180px,1fr) minmax(180px,1fr) auto; align-items: end; gap: 18px; }
.productivity-redesign .productivity-filters > label { display: grid; gap: 7px; min-width: 0; font-size: 13px; color: var(--overview-ink); }
.productivity-redesign .productivity-filters input:not([type="checkbox"]), .productivity-redesign .productivity-filters select { min-width: 0; width: 100%; min-height: 46px; background: var(--overview-card); border: 1px solid var(--overview-border); border-radius: 8px; color: var(--overview-ink); padding: 10px 12px; font-size: 13px; }
.productivity-redesign input::placeholder { color: var(--overview-muted); opacity: 1; }
.productivity-redesign .button { min-height: 40px; font-size: 12px; border-radius: 7px; }
.productivity-redesign .button.secondary { border-color: #b58ae9; color: #7634c5; background: transparent; }
.productivity-redesign .productivity-filters > a { font-size: 13px; align-self: center; justify-self: end; }
.productivity-redesign .productivity-filters > button[name="export"] { grid-column: 4; grid-row: 1; }
.productivity-options { grid-column: 1 / 3; font-size: 12px; position: relative; }
.productivity-options summary { cursor: pointer; color: #7634c5; width: fit-content; padding: 5px 0; }
.productivity-options-content { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.productivity-options-content label { display: grid; gap: 6px; }
.productivity-redesign .productivity-apply { justify-self: end; }
.productivity-date-picker { position: relative; min-width: 0; }
.productivity-date-picker > summary { cursor: pointer; list-style: none; font-size: 13px; }
.productivity-date-picker > summary::-webkit-details-marker { display: none; }
.range-field-label { display: block; margin-bottom: 7px; font-weight: 500; }
.range-trigger { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #b58ae9; border-radius: 8px; min-height: 46px; background: var(--overview-card); color: var(--overview-ink); }
.range-trigger > span:first-of-type { flex: 1; font-size: 12px; }
.range-trigger svg { flex-shrink: 0; }
.range-popover { position: absolute; top: calc(100% + 10px); left: 0; z-index: 70; width: min(430px,calc(100vw - 56px)); padding: 22px; background: var(--overview-card); border: 1px solid #b58ae9; border-radius: 14px; box-shadow: 0 14px 45px #3e22571a; }
.range-popover h3 { margin: 0 0 14px; font-size: 16px; color: var(--overview-ink); }
.range-presets { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-bottom: 16px; }
.range-presets button { padding: 8px 3px; min-height: 36px; font-size: 11px; border: 1px solid var(--overview-border); border-radius: 9px; background: var(--overview-card); color: var(--overview-ink); }
.range-presets button:hover, .range-presets button:focus-visible { background: #eee4ff; color: #542b8b; }
.productivity-redesign .range-popover .date-range-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0; margin: 0; border: 0; min-width: 0; }
.productivity-redesign .range-popover .date-range-filter label { display: grid; gap: 6px; font-size: 12px; min-width: 0; }
.range-calendar { margin-top: 16px; }
.range-calendar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.range-calendar-heading strong { font-size: 15px; color: var(--overview-ink); }
.range-calendar-heading button { border: 0; background: transparent; color: var(--overview-ink); font-size: 25px; min-width: 36px; min-height: 36px; }
.range-weekdays, .range-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); text-align: center; }
.range-weekdays { font-size: 11px; color: var(--overview-muted); padding: 5px 0; }
.range-days { row-gap: 5px; }
.range-days button { padding: 0; height: 35px; border: 0; border-radius: 0; background: transparent; color: var(--overview-ink); font-size: 12px; }
.range-days button.outside-month { color: var(--overview-muted); opacity: .65; }
.range-days button.in-range { background: #f1ebfb; color: #4c2d77; }
.range-days button[aria-pressed="true"] { border-radius: 50%; background: #7d45c4; color: #fff; }
.range-days button:hover { outline: 1px solid #b58ae9; outline-offset: -2px; }
.range-hint { color: var(--overview-muted); font-size: 12px; margin: 15px 0; }
.range-actions { display: flex; justify-content: flex-end; gap: 10px; }
.productivity-result-count { font-size: 13px; color: var(--overview-ink); margin: 0 0 16px; }
.original-layout .productivity-redesign .table-scroll { overflow-x: auto; }
.original-layout .productivity-redesign .productivity-table { min-width: 620px; table-layout: fixed; }
.original-layout .productivity-redesign .productivity-table th { background: #f3edfb; color: #7736c6; padding: 10px 7px; border: 0; font-weight: 600; font-size: 11px; text-transform: none; letter-spacing: 0; }
.original-layout .productivity-redesign .productivity-table th:first-child { width: 26%; border-radius: 8px 0 0 8px; }
.original-layout .productivity-redesign .productivity-table th:last-child { border-radius: 0 8px 8px 0; }
.original-layout .productivity-redesign .productivity-table td { padding: 6px 7px; font-size: 12px; height: 42px; border-bottom: 1px solid var(--overview-border); color: var(--overview-ink); }
.original-layout .productivity-redesign .productivity-table td:not(:first-child) { text-align: center; }
.productivity-redesign .productivity-table td:first-child a { color: var(--overview-ink); font-weight: 400; }
.productivity-redesign .productivity-table .productivity-metric { min-width: 44px; min-height: 26px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: white; }
.productivity-redesign .productivity-metric.good { background: linear-gradient(110deg,#1dae57,#079a37); }
.productivity-redesign .productivity-metric.needs-attention { background: linear-gradient(110deg,#ef414a,#df1630); }
.original-layout .productivity-redesign .productivity-table .productivity-details-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 6px; border: 0; background: transparent; box-shadow: none; color: #8248ca; border-radius: 0; }
.productivity-details-icon svg { width: 20px; height: 20px; }
.productivity-details-icon:hover { color: #492377; }
.productivity-details-icon:focus-visible { outline: 2px solid #a677df; outline-offset: 1px; }
html[data-theme="dark"] .productivity-redesign .productivity-stat > span, html[data-theme="dark"] .productivity-redesign .productivity-table th { background: #332442; color: #d4aaff; }
html[data-theme="dark"] .productivity-redesign .productivity-breadcrumb [aria-current], html[data-theme="dark"] .productivity-options summary, html[data-theme="dark"] .productivity-redesign .button.secondary, html[data-theme="dark"] .productivity-details-icon { color: #d4aaff; }
html[data-theme="dark"] .range-days button.in-range { background: #39264f; color: #f2e9ff; }
html[data-theme="dark"] .range-days button[aria-pressed="true"] { background: #7d45c4; color: white; }
@media (max-width: 1100px) {
  .productivity-redesign .productivity-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .productivity-redesign .productivity-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .productivity-redesign .productivity-filters > button[name="export"] { grid-row: auto; grid-column: auto; }
  .productivity-options { grid-column: auto; }
}
@media (max-width: 700px) {
  .original-layout .productivity-redesign { padding: 20px 16px; }
  .productivity-redesign .productivity-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .productivity-redesign .productivity-stat { padding: 14px; }
  .productivity-redesign .productivity-stat > span { width: 36px; height: 36px; }
  .productivity-redesign .productivity-stat small { font-size: 10px; }
  .productivity-redesign .productivity-filters { grid-template-columns: 1fr; gap: 14px; }
  .productivity-redesign .productivity-filters > button, .productivity-redesign .productivity-filters > a { justify-self: stretch; text-align: center; }
  .original-layout .productivity-redesign .productivity-table th:nth-child(4), .original-layout .productivity-redesign .productivity-table td:nth-child(4),
  .original-layout .productivity-redesign .productivity-table th:nth-child(5), .original-layout .productivity-redesign .productivity-table td:nth-child(5),
  .original-layout .productivity-redesign .productivity-table th:nth-child(6), .original-layout .productivity-redesign .productivity-table td:nth-child(6) { display: table-cell; }
}

.productivity-redesign .productivity-filter-panel { overflow: visible; position: relative; z-index: 5; }
.productivity-redesign .productivity-filters { margin-bottom: 0; }
.original-layout .productivity-redesign .productivity-table td { vertical-align: middle; }

.productivity-redesign > .productivity-results { padding: 14px; }
.original-layout .productivity-redesign .productivity-table th:last-child { width: 8%; }
.productivity-redesign .productivity-result-count { margin-bottom: 10px; font-size: 12px; }
.productivity-redesign .productivity-table .table-sort { gap: 3px; padding: 0; font-size: 11px; }
.productivity-redesign .productivity-table .column-filter summary { padding: 2px; }


/* Compact period controls; prevent generic details/checkbox styles expanding them. */
.productivity-redesign > .productivity-filter-panel { padding: 14px 16px; }
.original-layout .productivity-redesign .productivity-filters { grid-template-columns: minmax(230px,1.1fr) minmax(150px,1fr) minmax(170px,1fr) auto; gap: 12px 16px; align-items: end; }
.original-layout .productivity-redesign details.productivity-date-picker { display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.original-layout .productivity-redesign .productivity-date-picker > summary { padding: 0; margin: 0; border: 0; background: transparent; font-weight: 500; color: var(--overview-ink); }
.original-layout .productivity-redesign .productivity-date-picker > summary::before,
.original-layout .productivity-redesign .productivity-date-picker > summary::after { display: none; }
.productivity-redesign .range-field-label { margin-bottom: 6px; font-size: 12px; }
.productivity-redesign .range-trigger { min-height: 40px; padding: 8px 10px; }
.productivity-redesign .productivity-filters > label { font-size: 12px; gap: 6px; }
.productivity-redesign .productivity-filters input:not([type="checkbox"]), .productivity-redesign .productivity-filters select { min-height: 40px; height: 40px; padding: 8px 10px; font-size: 12px; }
.productivity-redesign .productivity-filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; grid-column: 4; grid-row: 1; white-space: nowrap; }
.productivity-redesign .productivity-filter-actions .button { min-height: 40px; padding: 8px 12px; }
.productivity-redesign .productivity-filter-actions a { font-size: 12px; }
.productivity-redesign [data-productivity-empty] { font-size: 13px; padding: 14px 0; color: var(--overview-muted); }
@media (max-width: 1100px) {
  .original-layout .productivity-redesign .productivity-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .productivity-redesign .productivity-filter-actions { grid-column: 2 / -1; grid-row: 2; }
}
@media (max-width: 700px) {
  .original-layout .productivity-redesign .productivity-filters { grid-template-columns: 1fr; }
  .productivity-redesign .productivity-filter-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; flex-wrap: wrap; }
}

/* The calendar is an overlay: the shared details overflow rule must not clip it. */
.original-layout .productivity-redesign details.productivity-date-picker { overflow: visible; }
.productivity-date-picker[open] .range-trigger { border-color: #9554dc; box-shadow: 0 0 0 3px #9554dc15; }
.productivity-redesign .range-popover { border-color: #c6a4ee; padding: 18px; max-height: min(700px,80dvh); overflow-y: auto; background: var(--overview-card); }
.range-popover-title { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.range-popover-title h3 { margin: 0 0 3px; }
.range-popover-title p { margin: 0; color: var(--overview-muted); font-size: 11px; }
.range-calendar-badge { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; background: linear-gradient(135deg,#f0e5ff,#e5f6f2); color: #8545c7; border-radius: 12px; }
.productivity-redesign .range-presets button { min-height: 36px; border-color: #e4d5f8; font-weight: 600; transition: background .15s; }
.productivity-redesign .range-presets button[aria-pressed="true"] { color: #fff; border-color: #8244c2; background: linear-gradient(120deg,#8848cf,#6533a1); }
.productivity-redesign .range-calendar-heading { padding: 5px 8px; border-radius: 10px; background: linear-gradient(110deg,#7541b4,#9760ce); }
.productivity-redesign .range-calendar-heading strong, .productivity-redesign .range-calendar-heading button { color: #fff; }
.productivity-redesign .range-calendar-heading button:hover { background: #ffffff20; border-radius: 8px; }
.productivity-redesign .range-weekdays { margin: 8px 0 4px; color: #806399; font-weight: 700; }
.productivity-redesign .range-weekdays span:first-child, .productivity-redesign .range-weekdays span:last-child { color: #bd7189; }
.productivity-redesign .range-days { gap: 5px 0; }
.productivity-redesign .range-days button { height: 36px; }
.productivity-redesign .range-days button.in-range { background: linear-gradient(120deg,#efe4fc,#e5f6ef); color: #55357d; }
.productivity-redesign .range-days button.range-start { background: #8348c7; color: white; box-shadow: 0 3px 8px #8348c72b; }
.productivity-redesign .range-days button.range-end { background: #239e8b; color: white; box-shadow: 0 3px 8px #239e8b2b; }
.productivity-redesign .range-days button[aria-current="date"] { outline: 2px solid #e8b64a; outline-offset: -3px; }
.range-selection-preview { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border: 1px solid #e9ddf6; border-radius: 10px; background: #f9f5ff; }
.range-selection-preview > span { min-width: 0; }
.range-selection-preview small { display: block; margin-bottom: 2px; font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: #826399; }
.range-selection-preview strong { display: block; font-size: 12px; color: #7042a0; }
.range-selection-preview > span:last-child strong { color: #218b7b; }
.productivity-redesign .range-actions .button:not(.secondary) { border: 0; background: linear-gradient(110deg,#8747ce,#6732a8); color: #fff; }
html[data-theme="dark"] .range-selection-preview { background: #30203e; border-color: #503661; }
html[data-theme="dark"] .range-selection-preview strong { color: #d0a5ff; }
html[data-theme="dark"] .range-selection-preview > span:last-child strong { color: #7bddcb; }
html[data-theme="dark"] .productivity-redesign .range-days button.in-range { background: #38284c; color: #eadcf8; }
html[data-theme="dark"] .productivity-redesign .range-days button.range-start { background: #8348c7; color: white; }
html[data-theme="dark"] .productivity-redesign .range-days button.range-end { background: #239e8b; color: white; }

/* Shared compact workspace rhythm. Keep content in normal flow and forms usable. */
@media screen {
  body.original-layout {
    --workspace-inset: clamp(12px, 1.4vw, 22px);
    --workspace-gap: 12px;
    --workspace-panel-inset: 14px;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }
  body.original-layout > .original-shell { flex: 1; min-height: 0; }
  .original-layout .maintenance-banner { padding: 6px 16px; font-size: 12px; line-height: 1.45; }
  .original-layout .topbar { min-height: 58px; padding: 8px var(--workspace-inset); gap: 10px; }
  .original-layout .dashboard-topbar { min-height: 66px; padding: 10px var(--workspace-inset); }
  .dashboard-logo img { height: 36px; width: 300px; }
  .dashboard-topbar .identity .avatar { height: 36px; width: 36px; }
  .dashboard-topbar .dashboard-search input { min-height: 38px; }
  .original-layout .page,
  .original-layout .tasks-page,
  .original-layout .users-page,
  .original-layout .dashboard-page,
  .original-layout .productivity-redesign { padding: 14px var(--workspace-inset); }
  .original-layout .clients-page { padding: 0; }
  .original-layout .panel { border-radius: 10px; }
  .original-layout .panel-pad { padding: var(--workspace-panel-inset); margin-bottom: 14px; }
  .original-layout .panel-heading { padding: 12px 14px; gap: 10px; }
  .original-layout .panel-body { padding: 14px; }
  .original-layout .page-heading { margin-bottom: 12px; }
  .original-layout .page-heading h1 { font-size: 22px; line-height: 1.3; }
  .original-layout .module-nav { margin-bottom: 12px; gap: 6px; flex-wrap: wrap; }
  .original-layout .module-nav a { padding: 6px 10px; font-size: 12px; }
  .original-layout .workspace-grid,
  .original-layout .chart-grid { gap: var(--workspace-gap); margin-bottom: 14px; }
  .original-layout .form-grid { gap: 12px 16px; }
  .original-layout .stack-form { gap: 14px; }
  .original-layout .inline-form { gap: 10px; margin-bottom: 12px; }
  .original-layout .field { gap: 5px; }
  .original-layout .workspace :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="color"]):not([data-workspace-search])),
  .original-layout .workspace select:not([multiple]) { min-height: 36px; padding: 7px 10px; }
  .original-layout .workspace textarea { padding: 8px 10px; line-height: 1.5; }
  .original-layout .workspace .button { min-height: 34px; padding: 7px 12px; line-height: 1.35; }
  .original-layout .workspace .icon-button { min-height: 36px; min-width: 36px; }
  .original-layout .record-details { gap: 12px 18px; padding: 10px 0 14px; }
  .original-layout .record-details dt { font-size: 11px; }
  .original-layout .native-table td { padding: 7px 9px; line-height: 1.4; }
  .original-layout .native-table th { padding: 8px 9px; line-height: 1.35; }
  .original-layout .table-search-toolbar { padding: 8px 0; margin-bottom: 8px; }
  .original-layout .original-paginator { padding: 10px 0 0; gap: 6px; flex-wrap: wrap; }
  .original-layout .original-paginator select { width: auto; min-width: 68px; }
  .original-layout .page details:not(.productivity-date-picker):not(.column-filter) > summary { padding: 9px 12px; }

  /* Overview: smaller illustrations and cards, same links and role visibility. */
  .overview-breadcrumb { margin-bottom: 12px; }
  .welcome-banner { min-height: 122px; padding: 23px 28px; margin-bottom: 18px; border-radius: 14px; }
  .workspace-eyebrow { margin-bottom: 7px; font-size: 10px; letter-spacing: 2px; }
  .welcome-person h1 { font-size: clamp(25px, 2.2vw, 32px); margin-bottom: 5px; }
  .welcome-person p { font-size: 12px; }
  .dashboard-category { margin-bottom: 20px; }
  .category-heading { margin-bottom: 12px; }
  .category-heading h2 { font-size: 19px; }
  .dashboard-card-grid { gap: 12px; }
  .dashboard-card { min-height: 164px; padding: 18px 14px; border-radius: 12px; }
  .dashboard-card-image { height: 64px; margin: 0 0 12px; }
  .dashboard-card-image > .workspace-illustration,
  .dashboard-card-image > img.workspace-illustration { width: 64px; height: 64px; }
  .dashboard-card h3 { font-size: 14px; }
  .dashboard-card p { font-size: 12px; line-height: 1.4; }
  .overview-footer { margin-top: 16px; padding-top: 14px; }

  /* Productivity keeps the data above the fold and its calendar unobstructed. */
  .productivity-breadcrumb { margin-bottom: 10px; font-size: 12px; }
  .productivity-redesign .productivity-stats { gap: 10px; margin-bottom: 10px; }
  .productivity-redesign .productivity-stat { padding: 10px 12px; gap: 5px 10px; border-radius: 10px; }
  .productivity-redesign .productivity-stat > span { width: 32px; height: 32px; border-radius: 9px; }
  .productivity-redesign .productivity-stat > span svg { width: 21px; height: 21px; }
  .productivity-redesign .productivity-stat > strong { font-size: 24px; line-height: 1.15; }
  .productivity-redesign .productivity-stat > small { font-size: 10px; line-height: 1.25; }
  .productivity-redesign > .productivity-filter-panel { padding: 10px 12px; margin-bottom: 10px; }
  .original-layout .productivity-redesign .productivity-filters { gap: 8px 12px; }
  .productivity-redesign .range-field-label,
  .productivity-redesign .productivity-filters > label { font-size: 12px; }
  .productivity-redesign .range-field-label { margin-bottom: 4px; }
  .productivity-redesign .range-trigger { min-height: 36px; padding: 7px 9px; }
  .productivity-redesign .productivity-filters input:not([type="checkbox"]),
  .productivity-redesign .productivity-filters select { height: 36px; min-height: 36px; }
  .productivity-redesign .productivity-filter-actions .button { min-height: 36px; padding: 7px 10px; }
  .productivity-redesign > .productivity-results { padding: 10px 12px; margin-bottom: 0; }
  .productivity-redesign .productivity-result-count { margin-bottom: 8px; }
  .original-layout .productivity-redesign .productivity-table td { height: 35px; padding: 4px 7px; }
  .original-layout .productivity-redesign .productivity-table th { padding: 8px 7px; }
  .productivity-redesign .productivity-table .productivity-metric { min-height: 24px; min-width: 40px; padding: 3px 7px; }
  .original-layout .productivity-redesign .productivity-table .productivity-details-icon { height: 28px; width: 30px; padding: 4px; }
  .productivity-redesign .productivity-details-icon svg { width: 18px; height: 18px; }

  /* Other workspaces use the same spacing without hiding records or controls. */
  .users-toolbar, .referral-stats-row, .publication-toolbar { margin-bottom: 10px; gap: 10px; }
  .users-panel { padding: 12px; }
  .original-layout .referrals-toolbar, .original-layout .referral-date-filters { padding: 10px 14px; gap: 10px; }
  .original-layout .referral-table th { padding: 9px 10px; }
  .original-layout .referral-table td { padding: 8px 10px; font-size: 12px; line-height: 1.45; }
  .referral-paginator { padding: 10px 14px; }
  .task-summary-chips { gap: 6px; margin-bottom: 10px; }
  .original-layout .task-toolbar { margin-bottom: 10px; }
  .client-list-sidebar { width: 250px; }
  .client-list-item { padding: 11px 12px; }
  .client-detail-layout { gap: 16px; padding: 16px; }
  .client-profile-panel { width: 230px; }
  .client-profile-heading { padding: 14px; margin-bottom: 12px; }
  .client-profile-panel .record-details { gap: 12px; }
  .select-client-empty { padding: 28px 20px; }
  .select-client-empty > span { margin-bottom: 12px; }
  .projects-heading, .support-header { margin-bottom: 16px; gap: 12px; }
  .projects-heading h1, .support-header h1 { font-size: 24px; line-height: 1.3; }
  .project-card-body { padding: 16px; }
  .project-card-icon { width: 42px; height: 42px; margin-bottom: 12px; }
  .project-card h2 { font-size: 18px; margin-bottom: 6px; }
  .project-card p { margin-bottom: 14px; line-height: 1.5; }
  .project-view-link { padding-top: 12px; }
  .support-icon { width: 44px; height: 44px; border-radius: 12px; }
  .support-quick-actions { gap: 12px; margin-bottom: 18px; }
  .support-quick-actions button { padding: 12px; gap: 10px; }
  .ticket-card-grid { gap: 12px; }
  .ticket-card { padding: 14px; }
  .ticket-card > h2 { margin: 12px 0 8px; }
  .ticket-card > footer { padding: 10px 0; margin-top: 12px; }
  .publication-row { padding-top: 10px; padding-bottom: 10px; }
  .original-brand-panel { width: 240px; min-height: 0; }
  .original-layout .with-brand-panel .page { padding: 14px var(--workspace-inset); }
  .original-brand-panel img { max-width: 200px; }
  .original-layout dialog:not(.detail-drawer) { padding: 16px; }
  .original-layout dialog:not(.detail-drawer) .dialog-heading { top: -16px; padding: 12px 0; gap: 10px; }
  .original-layout .detail-drawer .dialog-heading { padding: 12px 16px; }
  .original-layout dialog .form-grid { gap: 12px 16px; }
  .original-layout .productivity-summary { gap: 10px; }
  .productivity-summary > div { padding: 10px; }
}
@media screen and (max-width: 1100px) {
  .original-brand-panel { display: none; }
  .client-profile-panel { width: auto; }
  .client-detail-layout { flex-direction: column; }
}
@media screen and (max-width: 700px) {
  .original-layout .topbar { padding: 9px 12px; }
  .original-layout .dashboard-topbar { gap: 10px; }
  .original-layout .page,
  .original-layout .tasks-page,
  .original-layout .users-page,
  .original-layout .dashboard-page,
  .original-layout .productivity-redesign { padding: 12px; }
  .original-layout .clients-page { padding: 0; }
  .original-layout .with-brand-panel .page { padding: 12px; }
  .original-layout .panel-pad { padding: 12px; }
  .dashboard-logo img { max-width: 44vw; height: 32px; }
  .welcome-banner { padding: 20px; gap: 14px; }
  .welcome-person h1 { font-size: 25px; }
  .dashboard-card-grid { gap: 10px; }
  .dashboard-card { min-height: 152px; }
  .client-list-sidebar { width: 135px; }
  .client-list-item { padding: 10px 8px; }
  .client-detail-layout { padding: 12px; gap: 12px; }
  .productivity-redesign .productivity-stat { padding: 9px 10px; }
  .productivity-redesign .productivity-stat > strong { font-size: 22px; }
}
@media screen and (pointer: coarse) {
  .original-layout .workspace .button,
  .original-layout .workspace .icon-button,
  .original-layout .workspace .row-icon { min-height: 40px; min-width: 40px; }
  .original-layout .workspace :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="color"]):not([data-workspace-search])),
  .original-layout .workspace select:not([multiple]) { min-height: 40px; }
}

/* The supplied LP wordmark uses white lettering for a purple navbar. */
.original-layout .dashboard-topbar,
html[data-theme="dark"] .original-layout .dashboard-topbar {
  background: linear-gradient(110deg, #572680, #482269);
  border-bottom-color: #ffffff24;
  color: #fff;
}
.original-layout .dashboard-topbar .identity strong,
.original-layout .dashboard-topbar .identity small,
.original-layout .dashboard-topbar .icon-button,
.original-layout .dashboard-topbar .logout-button { color: #fff; }
.original-layout .dashboard-topbar .icon-button:hover,
.original-layout .dashboard-topbar .logout-button:hover { background: #ffffff20; }
.original-layout .dashboard-topbar .dashboard-search { background: #fff; }
.original-layout .dashboard-topbar .dashboard-logo,
html[data-theme="dark"] .original-layout .dashboard-topbar .dashboard-logo {
  position: relative;
  display: block;
  width: min(320px, 28vw);
  height: 44px;
  flex-shrink: 0;
  overflow: hidden;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
/* Crop the transparent vertical margins through layout; preserve the image asset. */
.original-layout .dashboard-logo img {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
}
@media (max-width: 1050px) {
  .original-layout .dashboard-topbar .dashboard-logo { width: min(320px, 42vw); }
}
@media (max-width: 600px) {
  .original-layout .dashboard-topbar .dashboard-logo { width: min(260px, 53vw); height: 36px; }
}

/* Five modules per desktop row; keep the existing smaller-screen layouts. */
@media screen and (min-width: 1101px) {
  .dashboard-card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Compact calendar: native date fields already show the selected range. */
.productivity-redesign .range-popover {
  width: min(300px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 11px;
  max-height: min(450px, 76dvh);
}
.productivity-redesign .range-popover-title { gap: 8px; margin-bottom: 10px; }
.productivity-redesign .range-popover-title h3 { margin: 0; font-size: 14px; }
.productivity-redesign .range-calendar-badge { width: 28px; height: 28px; border-radius: 8px; }
.productivity-redesign .range-presets { gap: 5px; margin-bottom: 10px; }
.productivity-redesign .range-presets button { min-height: 29px; padding: 5px 2px; font-size: 10px; border-radius: 7px; }
.productivity-redesign .range-popover .date-range-filter { gap: 10px; }
.productivity-redesign .range-popover .date-range-filter label { gap: 4px; font-size: 11px; }
.original-layout .productivity-redesign .range-popover input[type="date"] { min-height: 34px; height: 34px; padding: 6px 7px; font-size: 11px; }
.productivity-redesign .range-calendar { margin-top: 10px; }
.productivity-redesign .range-calendar-heading { padding: 2px 5px; margin-bottom: 7px; }
.productivity-redesign .range-calendar-heading strong { font-size: 13px; }
.productivity-redesign .range-calendar-heading button { min-width: 30px; min-height: 30px; font-size: 22px; }
.productivity-redesign .range-weekdays { margin: 4px 0 2px; padding: 3px 0; font-size: 10px; }
.productivity-redesign .range-days { row-gap: 2px; }
.productivity-redesign .range-days button { height: 30px; font-size: 11px; }
.productivity-redesign .range-hint { margin: 9px 0; font-size: 11px; }
.original-layout .productivity-redesign .range-actions .button { min-height: 32px; padding: 6px 10px; font-size: 11px; }
@media screen and (pointer: coarse) {
  .productivity-redesign .range-days button { height: 36px; }
  .productivity-redesign .range-presets button { min-height: 36px; }
  .original-layout .productivity-redesign .range-actions .button { min-height: 40px; }
}

/* Explicit productivity drill-downs use centered modals, never row-click drawers. */
.productivity-redesign .productivity-chart-panel { margin: 0 0 10px; }
.productivity-redesign .productivity-chart-panel > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; padding: 9px 12px; }
.productivity-chart-host { padding: 12px; max-height: 360px; overflow: auto; }
.productivity-chart-host fluent-horizontal-bar-chart,
.productivity-record-chart-grid fluent-horizontal-bar-chart { display: block; width: 100%; min-width: 0; }
.productivity-redesign .productivity-metric:not(button) { display: inline-flex; align-items: center; justify-content: center; }
.productivity-redesign button.productivity-metric:hover { filter: brightness(.94); }
.productivity-redesign button.productivity-metric:focus-visible { outline: 2px solid #985bce; outline-offset: 2px; }
.original-layout dialog.productivity-records-modal {
  inset: 0;
  margin: auto;
  width: min(1060px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: fit-content;
  max-height: 88dvh;
  padding: 0;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  background: var(--surface-card);
  color: var(--text-color);
  overflow: hidden;
  animation: none;
}
.original-layout dialog.productivity-records-modal[open] { display: flex; flex-direction: column; }
.original-layout dialog.productivity-records-modal .dialog-heading {
  position: static; margin: 0; padding: 12px 16px; flex-shrink: 0;
  display: flex; justify-content: space-between; align-items: center;
}
.productivity-records-modal .dialog-heading h2 { font-size: 17px; }
.productivity-records-content { padding: 12px 16px 16px; overflow: auto; min-height: 0; }
.productivity-records-content > .muted { font-size: 12px; margin-bottom: 10px; }
.productivity-records-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.productivity-records-toolbar select { width: auto; min-width: 170px; }
.productivity-records-toolbar input { flex: 1; min-width: 180px; }
.productivity-record-list { min-width: 640px; }
.productivity-record-list td { overflow-wrap: anywhere; max-width: 280px; }
.productivity-records-modal .table-scroll { max-height: 340px; }
.productivity-record-charts > summary { cursor: pointer; padding: 8px 10px; font-size: 12px; }
.productivity-record-chart-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 12px; }
.productivity-record-chart-grid > section { min-width: 0; }
.productivity-record-chart-grid h3 { font-size: 13px; margin-bottom: 10px; }
.productivity-record-chart-grid fluent-donut-chart { display: block; max-width: 100%; }
@media (max-width: 700px) {
  .original-layout dialog.productivity-records-modal { max-height: 94dvh; width: calc(100vw - 16px); max-width: calc(100vw - 16px); }
  .productivity-records-content { padding: 12px; }
  .productivity-record-chart-grid { grid-template-columns: 1fr; }
}

/* A small animated chart echoes the productivity report while data loads. */
.productivity-modal-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 200px; color: var(--text-color); font-size: 13px; font-weight: 500; grid-column: 1 / -1; }
.productivity-loading-indicator { display: flex; align-items: flex-end; justify-content: center; gap: 5px; width: 76px; height: 70px; padding: 16px; border-radius: 20px; background: #f3edfc; border: 1px solid #e9dcfa; }
.productivity-loading-bar { width: 7px; height: 28px; border-radius: 4px; background: #8248ca; transform-origin: bottom; animation: productivity-loading-pulse 1.2s ease-in-out infinite; }
.productivity-loading-bar:nth-child(2) { background: #a275db; animation-delay: .15s; }
.productivity-loading-bar:nth-child(3) { background: #2c9e96; animation-delay: .3s; }
.productivity-loading-bar:nth-child(4) { background: #e8b84c; animation-delay: .45s; }
@keyframes productivity-loading-pulse { 0%, 100% { transform: scaleY(.35); opacity: .55; } 50% { transform: scaleY(1); opacity: 1; } }
html[data-theme="dark"] .productivity-loading-indicator { background: #30223f; border-color: #57406f; }
@media (prefers-reduced-motion: reduce) { .productivity-loading-bar { animation: none; } .productivity-loading-bar:nth-child(2n) { transform: scaleY(.6); } }

/* Favorite stars are siblings of card links, so starring never navigates. */
.dashboard-card-slot { position: relative; min-width: 0; }
.dashboard-card-slot > .dashboard-card { height: 100%; }
.dashboard-favorite-toggle { position: absolute; top: 8px; right: 8px; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 7px; border: 1px solid transparent; border-radius: 9px; background: var(--overview-card); color: var(--overview-muted); cursor: pointer; }
.dashboard-favorite-toggle:hover { color: #8248ca; background: #f3edfc; }
.dashboard-favorite-toggle[aria-pressed="true"] { color: #a87616; }
.dashboard-favorite-toggle[aria-pressed="true"] svg { fill: #f5cd69; }
.dashboard-favorite-toggle:focus-visible { outline: 2px solid #985bce; outline-offset: 2px; }
.dashboard-favorites { margin-bottom: 20px; }
.favorites-empty { padding: 14px 16px; border: 1px dashed var(--overview-border); border-radius: 10px; color: var(--overview-muted); font-size: 13px; }
.favorites-feedback { color: var(--overview-muted); font-size: 12px; margin-top: 8px; }
.favorites-feedback:empty { display: none; }

/* Shared role-aware category navigation. Dropdowns remain outside page overflow. */
.workspace-navigation { position: relative; z-index: 25; display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 0 8px; padding: 0 24px; border-bottom: 1px solid var(--surface-border); background: var(--surface-card); }
.workspace-nav-category { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.workspace-nav-category > summary { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 43px; padding: 10px 12px; border-bottom: 3px solid transparent; color: var(--text-muted); cursor: pointer; font-size: 12px; font-weight: 500; list-style: none; }
.workspace-nav-category > summary::-webkit-details-marker { display: none; }
.workspace-nav-category.is-active > summary { color: #8248ca; border-bottom-color: #8248ca; font-weight: 700; }
.workspace-nav-category > summary:hover, .workspace-nav-category[open] > summary { color: #8248ca; background: var(--surface-hover); }
.workspace-nav-category > summary:focus-visible { outline: 2px solid #985bce; outline-offset: -3px; border-radius: 6px; }
.workspace-nav-dropdown { position: absolute; top: 100%; left: 0; min-width: 240px; width: max-content; max-width: min(340px,calc(100vw - 24px)); max-height: min(65dvh,480px); overflow-y: auto; padding: 6px; border: 1px solid var(--surface-border); border-radius: 0 0 10px 10px; background: var(--surface-card); box-shadow: 0 12px 28px #30204420; }
.workspace-nav-category:nth-last-child(-n+2) .workspace-nav-dropdown { left: auto; right: 0; }
.workspace-nav-dropdown a { display: block; padding: 9px 10px; border-radius: 6px; color: var(--text-color); text-decoration: none; font-size: 12px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.workspace-nav-dropdown a:hover, .workspace-nav-dropdown a[aria-current="page"] { color: #8248ca; background: var(--surface-hover); }
html[data-theme="dark"] .workspace-nav-category.is-active > summary, html[data-theme="dark"] .workspace-nav-dropdown a[aria-current="page"] { color: #d4aaff; }
/* Compact referral workspace with a single desktop filter row. */
.original-layout .referrals-redesign { max-width: none; width: 100%; }
.referral-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.referral-breadcrumb a, .referral-breadcrumb [aria-current] { color: #8248ca; text-decoration: none; }
.referral-page-heading { margin-bottom: 14px; }
.referral-page-heading h1 { font-size: 25px; line-height: 1.3; margin: 0 0 4px; }
.referral-page-heading p { font-size: 13px; color: var(--text-muted); margin: 0; }
.referrals-redesign .referral-stats-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.referrals-redesign .referral-stat { gap: 14px; min-height: 84px; padding: 14px 16px; border: 1px solid var(--surface-border); border-radius: 12px; background: var(--surface-card); }
.referrals-redesign .referral-stat > span { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; }
.referrals-redesign .referral-stat strong { font-size: 26px; line-height: 1.2; }
.referrals-redesign .referral-stat small { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; margin-top: 4px; }
.referrals-redesign > .panel { overflow: visible; }
.original-layout .referrals-redesign .referrals-toolbar { padding: 12px 16px 8px; border-bottom: 0; }
.referrals-redesign .referrals-toolbar > div:first-child { text-transform: none; font-size: 17px; letter-spacing: -.2px; }
.referrals-redesign .referrals-toolbar .button { min-height: 34px; padding: 7px 12px; font-size: 12px; }
.referral-filter-row { display: grid; grid-template-columns: minmax(180px,2fr) minmax(125px,1fr) minmax(140px,1fr) minmax(155px,1fr) auto auto; gap: 12px; align-items: end; padding: 0 16px 14px; }
.referral-filter-row .field, .referral-date-control { min-width: 0; margin: 0; display: grid; gap: 5px; font-size: 11px; color: var(--text-muted); }
.referral-filter-row input, .referral-filter-row select { height: 36px; min-height: 36px; min-width: 0; width: 100%; font-size: 12px; }
.referral-filter-row .search-with-icon { min-width: 0; height: 36px; }
.referral-filter-row .search-with-icon input { padding-left: 34px; }
.referral-date-range { position: relative; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; }
.referral-date-range > summary { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 10px; border: 1px solid var(--surface-border); border-radius: 7px; color: var(--text-color); cursor: pointer; list-style: none; font-size: 12px; }
.referral-date-range > summary::-webkit-details-marker { display: none; }
.referral-date-range > summary svg:last-child { margin-left: auto; flex-shrink: 0; }
.referral-date-popover { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; display: grid; gap: 10px; width: 270px; max-width: calc(100vw - 32px); padding: 14px; border: 1px solid var(--surface-border); border-radius: 10px; background: var(--surface-card); box-shadow: 0 10px 30px #30204420; }
.referral-filter-row .referral-search-submit { height: 36px; min-height: 36px; padding: 8px; }
.referral-reset { padding: 9px 0; font-size: 12px; color: #8248ca; }
.referrals-redesign .referral-table { width: 100%; min-width: 940px; }
.original-layout .referrals-redesign .referral-table th { padding: 10px 12px; font-size: 12px; background: var(--surface-hover); }
.referrals-redesign .referral-table th a { text-decoration: none; color: var(--text-muted); }
.original-layout .referrals-redesign .referral-table td { padding: 8px 12px; font-size: 12px; line-height: 1.4; }
.referral-person { display: flex; align-items: center; gap: 9px; }
.referral-person strong { font-weight: 600; }
.referral-initials { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; background: #f1eafa; color: #8248ca; font-size: 11px; font-weight: 600; border-radius: 50%; }
.referral-unassigned { display: inline-block; padding: 4px 8px; border-radius: 6px; color: #9b6518; background: #fff2d9; font-size: 11px; white-space: nowrap; }
.referral-details-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #8248ca; text-decoration: none; font-weight: 500; }
.referrals-redesign .referral-paginator { gap: 7px; flex-wrap: wrap; padding: 10px 14px; font-size: 12px; }
.referrals-redesign .referral-paginator > span { margin-right: auto; }
.referrals-redesign .referral-paginator .button, .referrals-redesign .referral-paginator select { min-height: 32px; padding: 6px 9px; font-size: 12px; }
@media (max-width: 1100px) { .referral-filter-row { grid-template-columns: minmax(180px,2fr) minmax(140px,1fr) minmax(140px,1fr); } .workspace-navigation { padding: 0 12px; justify-content: flex-start; } }
@media (max-width: 650px) { .workspace-navigation { gap: 0; } .workspace-nav-category { flex: 1 1 50%; } .workspace-nav-category > summary { min-height: 38px; justify-content: space-between; padding: 8px; font-size: 11px; } .workspace-nav-category:nth-child(2n) .workspace-nav-dropdown { left: auto; right: 0; } .workspace-nav-category:nth-child(2n+1) .workspace-nav-dropdown { left: 0; right: auto; } .referrals-redesign .referral-stats-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; } .referrals-redesign .referral-stat { min-height: 72px; padding: 10px; gap: 9px; } .referrals-redesign .referral-stat strong { font-size: 22px; } .referrals-redesign .referral-stat > span { width: 36px; height: 36px; } .referral-filter-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .referral-filter-row > .search-with-icon { grid-column: 1 / -1; } .referral-page-heading h1 { font-size: 23px; } }

.original-layout .page details.referral-date-range { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.original-layout .page details.referral-date-range > summary { margin: 0; background: var(--surface-card); padding: 7px 10px; }

.productivity-navigation-loading {
  position: fixed;
  inset: 0px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem; background: rgba(255,255,255,.92);
}
html[data-theme="dark"] .productivity-navigation-loading { background: rgba(20,17,27,.94); }
.productivity-modal-loading[hidden] { display: none; }

/* Shared page heading keeps local actions separate from global navigation. */
.original-layout .workspace-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.original-layout .workspace-page-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 220px;
}
.original-layout .workspace-page-heading .header-title {
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1.4;
}
.original-layout .workspace-page-header .header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.original-layout .workspace-page-header .header-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  line-height: 1.25;
  text-align: center;
}
.original-layout .dashboard-topbar .topbar-actions > form { margin: 0; }
@media (max-width: 600px) {
  .original-layout .workspace-page-header .header-actions { flex: 1 1 100%; }
  .original-layout .workspace-page-header .header-actions .button { flex: 1 1 auto; }
}

/* Compact Productivity calendar, with the EHA purple carried through the range. */
.productivity-redesign .range-popover { --range-brand: #572680; --range-tint: #efe5f8; padding: 10px; }
.productivity-redesign .range-calendar-badge { background: var(--range-tint); color: var(--range-brand); }
.productivity-redesign .range-calendar-heading { background: linear-gradient(110deg, #572680, #7541a0); }
.productivity-redesign .range-days button {
  position: relative;
  isolation: isolate;
  height: 28px;
  transition: color 160ms ease, box-shadow 160ms ease;
}
.productivity-redesign .range-days button.in-range,
.productivity-redesign .range-days button.range-preview,
html[data-theme="dark"] .productivity-redesign .range-days button.in-range {
  background: transparent;
  color: #572680;
}
.productivity-redesign .range-days button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: transparent;
  transition: background-color 150ms ease;
}
.productivity-redesign .range-days button.in-range::before,
.productivity-redesign .range-days button.range-preview::before { background: var(--range-tint); }
.productivity-redesign .range-days button.range-start,
.productivity-redesign .range-days button.range-end,
html[data-theme="dark"] .productivity-redesign .range-days button.range-start,
html[data-theme="dark"] .productivity-redesign .range-days button.range-end {
  background: transparent;
  color: #fff;
  box-shadow: none;
}
.productivity-redesign .range-days button.range-start::before,
.productivity-redesign .range-days button.range-end::before { background: var(--range-brand); }
.productivity-redesign .range-days button.range-reveal::before {
  animation: range-fill 260ms ease-out both;
  animation-delay: var(--range-delay, 0ms);
}
.productivity-redesign [data-range-selecting="end"] .range-start {
  animation: range-anchor 1400ms ease-in-out infinite;
}
.productivity-redesign .range-selection-preview { margin-top: 10px; padding: 7px 9px; gap: 6px; }
.productivity-redesign .range-selection-preview strong { font-size: 11px; }
.productivity-redesign .range-selection-preview > span:last-child strong { color: var(--range-brand); }
.productivity-redesign .range-hint { margin: 6px 0; }
.productivity-redesign .range-actions .button:not(.secondary) { background: var(--range-brand); }
html[data-theme="dark"] .productivity-redesign .range-popover { --range-brand: #9d6bcc; --range-tint: #39264f; }
html[data-theme="dark"] .productivity-redesign .range-days button.in-range,
html[data-theme="dark"] .productivity-redesign .range-days button.range-preview,
html[data-theme="dark"] .productivity-redesign .range-selection-preview > span:last-child strong { color: #eadcf8; }
html[data-theme="dark"] .productivity-redesign .range-days button.range-start,
html[data-theme="dark"] .productivity-redesign .range-days button.range-end { color: #fff; }
@keyframes range-fill { from { opacity: .25; transform: scaleX(.2); } to { opacity: 1; transform: scaleX(1); } }
@keyframes range-anchor { 0%, 100% { box-shadow: 0 0 0 0 #7541a000; } 50% { box-shadow: 0 0 0 3px #7541a033; } }
@media (pointer: coarse) { .productivity-redesign .range-days button { height: 36px; } }
@media (prefers-reduced-motion: reduce) {
  .productivity-redesign .range-days button,
  .productivity-redesign .range-days button::before { animation: none !important; transition: none; }
}
.productivity-redesign .range-presets button { font-size: 9px; white-space: nowrap; }
.original-layout .productivity-redesign .range-calendar-heading button { min-height: 28px; height: 28px; }
.productivity-redesign .range-actions {
  position: sticky;
  bottom: -10px;
  margin: 0 -2px -2px;
  padding: 6px 2px 2px;
  background: var(--overview-card);
  z-index: 1;
}

.original-layout .productivity-redesign .productivity-chart-button {
  width: 36px;
  min-width: 36px;
  padding: 0;
  color: #572680;
  border-color: #dfcdef;
  background: #f4edf9;
}
.original-layout .productivity-redesign .productivity-chart-button:hover { background: #eadef4; }
html[data-theme="dark"] .original-layout .productivity-redesign .productivity-chart-button { color: #ddc3f4; background: #39264f; border-color: #684984; }
.productivity-overview-modal .productivity-chart-host { padding: 0; max-height: none; }

/* Navbar controls: unboxed theme icon and a dedicated search-icon gutter. */
.original-layout .dashboard-topbar [data-theme-toggle],
html[data-theme="dark"] .original-layout .dashboard-topbar [data-theme-toggle],
.original-layout .dashboard-topbar [data-theme-toggle]:hover,
html[data-theme="dark"] .original-layout .dashboard-topbar [data-theme-toggle]:hover {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #fff;
}
.original-layout .dashboard-topbar [data-theme-toggle]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.original-layout .dashboard-topbar .dashboard-search { background: transparent; border-radius: 8px; }
.original-layout .dashboard-topbar .dashboard-search > svg {
  left: 14px;
  width: 18px;
  height: 18px;
  color: #766685;
  pointer-events: none;
  z-index: 1;
}
.original-layout .dashboard-topbar .dashboard-search input {
  box-sizing: border-box;
  padding: 9px 12px 9px 42px;
  border: 1px solid #e3d8ec;
  border-radius: 8px;
  background: #fff;
  color: #27123b;
}
.original-layout .dashboard-topbar .dashboard-search input:focus-visible {
  outline: 2px solid #c9a7e8;
  outline-offset: 2px;
}

/* Keep the date picker compact and its footer outside the scrollable content. */
.productivity-redesign .range-popover {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(300px, calc(100vw - 24px));
  max-height: min(400px, calc(100dvh - 24px));
  padding: 8px;
  overflow: hidden;
}
.productivity-redesign .range-popover-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.productivity-redesign .range-popover-title { margin-bottom: 6px; gap: 6px; }
.productivity-redesign .range-popover-title h3 { font-size: 13px; }
.productivity-redesign .range-calendar-badge { width: 24px; height: 24px; }
.productivity-redesign .range-presets { margin-bottom: 6px; gap: 4px; }
.productivity-redesign .range-presets button { min-height: 26px; padding: 4px 2px; }
.productivity-redesign .range-popover .date-range-filter { gap: 8px; }
.productivity-redesign .range-popover .date-range-filter label { gap: 2px; font-size: 10px; }
.original-layout .workspace .productivity-redesign [data-range-picker] .range-popover .date-range-filter input[name][type="date"] { min-height: 30px; height: 30px; padding: 4px 6px; font-size: 11px; }
.productivity-redesign .range-calendar { margin-top: 6px; }
.productivity-redesign .range-calendar-heading { margin-bottom: 3px; padding: 0 4px; }
.productivity-redesign .range-weekdays { margin: 2px 0; padding: 2px 0; }
.productivity-redesign .range-days { row-gap: 1px; }
.productivity-redesign .range-days button { height: 26px; min-height: 26px; }
.productivity-redesign .range-hint { margin: 4px 0 0; font-size: 10px; }
.productivity-redesign .range-actions { position: static; flex-shrink: 0; margin: 0; padding: 6px 0 0; }
@media (pointer: coarse) {
  .productivity-redesign .range-days button { height: 32px; min-height: 32px; }
  .productivity-redesign .range-presets button { min-height: 32px; }
}

.productivity-redesign .productivity-filter-panel:has([data-range-picker][open]) { z-index: 80; }

.task-repeat-badge { display: block; color: var(--colorBrandForeground1, #087a67); font-size: .75rem; margin-top: .25rem; }
.task-repeat-settings { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--colorNeutralStroke1, #d8e0e5); }
.task-advanced { margin-top: 1rem; }
.task-advanced summary { cursor: pointer; padding: .75rem 0; font-weight: 600; }
.task-editor-shell label small { display: block; font-weight: 400; margin: .4rem 0 1rem; }

.task-weekdays, .task-assignees { border: 0; padding: 0; margin: 1rem 0; min-width: 0; }
.task-weekdays legend, .task-assignees legend { font-weight: 600; margin-bottom: .5rem; }
.task-weekdays { display: flex; flex-wrap: wrap; gap: .5rem; }
.task-weekdays[hidden] { display: none; }
.task-weekdays label, .task-assignee-options label { display: flex; align-items: center; gap: .5rem; padding: .5rem; min-height: 40px; border: 1px solid #e5deee; border-radius: 6px; cursor: pointer; }
.task-weekdays input, .task-assignee-options input { width: auto; margin: 0; }
.task-assignee-options { display: grid; gap: .4rem; max-height: 200px; overflow: auto; margin: .5rem 0; }
.task-assignee-options label[hidden] { display: none; }
.task-repeat-preview { font-weight: 600; padding: .6rem; background: var(--colorNeutralBackground2, #f6f2fa); border-radius: 6px; }


/* Task workspaces: quiet surfaces, compact rows, and a single clear toolbar. */
.asana-task-workspace { --task-border: var(--colorNeutralStroke2, #e9e9ed); --task-muted: var(--colorNeutralForeground3, #73757b); }
.asana-task-workspace .module-nav { border-bottom: 0; gap: 4px; margin-bottom: 8px; }
.asana-task-workspace .module-nav a { border: 0; background: transparent; color: var(--task-muted); padding: 6px 10px; font-size: 12px; }
.asana-task-workspace .page-heading { margin-bottom: 12px; }
.task-header-actions, .task-workspace-topline, .task-pagination, .task-pagination > div { display: flex; align-items: center; gap: 12px; }
.task-workspace-topline { justify-content: space-between; color: var(--task-muted); font-size: 13px; margin-bottom: 16px; }
.task-workspace-topline p { margin: 0; }
.task-result-count { white-space: nowrap; }
.task-view-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--task-border); margin-bottom: 0; overflow-x: auto; }
.task-view-tabs a { display: inline-flex; gap: 6px; align-items: center; padding: 12px 2px; color: var(--task-muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; font-size: 13px; }
.task-view-tabs a[aria-current="page"] { color: var(--colorBrandForeground1, #6b20a8); border-bottom-color: currentColor; font-weight: 600; }
.task-view-tabs .task-insights-link { margin-left: auto; }
.task-workspace-surface { background: var(--colorNeutralBackground1, #fff); border: 1px solid var(--task-border); border-top: 0; border-radius: 0 0 8px 8px; }
.task-filter-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--task-border); }
.task-filter-toolbar > label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--task-muted); }
.task-filter-toolbar input, .task-filter-toolbar select { min-height: 34px; font-size: 12px; border-color: var(--task-border); border-radius: 6px; padding: 6px 9px; }
.task-filter-toolbar .task-search { min-width: 190px; flex: 1; }
.task-filter-toolbar .task-search input { width: 100%; min-height: 36px; }
.task-reset { font-size: 12px; padding: 9px 2px; color: var(--task-muted); }
.task-more-filters { position: relative; font-size: 12px; }
.task-more-filters summary { list-style: none; cursor: pointer; padding: 9px 10px; border: 1px solid var(--task-border); border-radius: 6px; }
.task-filter-popover { position: absolute; z-index: 10; right: 0; top: calc(100% + 8px); width: 330px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; background: var(--colorNeutralBackground1, #fff); border: 1px solid var(--task-border); border-radius: 10px; box-shadow: 0 12px 40px #20202a22; }
.task-filter-popover label { min-width: 0; display: grid; gap: 4px; }
.task-filter-popover input, .task-filter-popover select { width: 100%; min-width: 0; }
.task-grid { font-size: 12px; min-width: 900px; }
.task-grid th { font-size: 11px; color: var(--task-muted); text-transform: none; letter-spacing: 0; background: transparent; border-right: 1px solid var(--task-border); font-weight: 500; }
.task-grid td { padding: 11px 12px; border-bottom: 1px solid var(--task-border); vertical-align: middle; }
.task-grid tr:hover td { background: var(--colorNeutralBackground1Hover, #faf9fc); }
.task-grid th:first-child, .task-grid td:first-child { padding-left: 16px; }
.task-selection { width: 30px; padding-right: 0 !important; }
.task-selection input { width: 16px; height: 16px; cursor: pointer; accent-color: #6b20a8; }
.task-grid .task-title-cell { min-width: 240px; gap: 9px; }
.task-grid .task-title-cell a { font-weight: 500; text-decoration: none; color: var(--colorNeutralForeground1, #292b30); }
.task-done-title { text-decoration: line-through !important; color: var(--task-muted) !important; }
.task-grid .task-check { padding: 0; background: transparent; border: 0; color: #a7abb1; }
.task-grid .task-check:hover, .task-grid .task-check.checked { color: #238c72; }
.task-assignee-chips { display: grid; gap: 5px; }
.task-assignee-chips > span { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.task-avatar { width: 24px; height: 24px; border-radius: 50%; background: #eee6f7; color: #6b20a8; display: inline-flex; justify-content: center; align-items: center; font-size: 9px; font-weight: 600; flex-shrink: 0; }
.task-priority { display: inline-flex; border-radius: 12px; padding: 3px 8px; font-size: 10px; text-transform: capitalize; background: #eef1f4; color: #647181; }
.task-priority.high { background: #fce4e5; color: #ad3d4b; }
.task-priority.medium { background: #fff0d1; color: #946412; }
.task-priority.low { background: #e5f3ef; color: #327963; }
.task-overdue { color: #c64454; font-weight: 500; }
.task-project-label { font-size: 11px; }
.task-grid .task-status-select { min-height: 28px; padding: 3px 6px; font-size: 11px; width: auto; border: 1px solid var(--task-border); border-radius: 5px; background-color: var(--colorNeutralBackground1, #fff); }
.task-status-select.completed { color: #278269; }
.task-status-select.in_progress { color: #a16e16; }
.task-grid .task-repeat-badge { color: var(--task-muted); font-size: 10px; margin-top: 2px; }
.task-bulk-toolbar { margin: 0; border: 0; border-radius: 0; background: var(--colorNeutralBackground2, #f8f6fc); font-size: 12px; box-shadow: none; }
.task-bulk-toolbar[hidden] { display: none; }
.task-bulk-toolbar small { display: none; }
.task-pagination { justify-content: space-between; margin-top: 16px; color: var(--task-muted); font-size: 12px; }
.task-feedback { padding: 10px 14px; border-radius: 6px; background: #e7f5ef; color: #286e58; font-size: 12px; margin: 10px 0; }
.task-feedback.error { background: #ffeded; color: #a23845; }
.task-feedback[hidden] { display: none; }
.task-kanban { display: flex; align-items: start; overflow-x: auto; gap: 20px; padding: 20px; background: var(--colorNeutralBackground2, #f7f8fa); min-height: 280px; }
.task-kanban-column { flex: 1; min-width: 240px; }
.task-kanban-column h2 { display: flex; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.task-kanban-column h2 span { color: var(--task-muted); font-weight: 400; }
.task-kanban-card { padding: 16px; border: 1px solid var(--task-border); border-radius: 8px; background: var(--colorNeutralBackground1, #fff); box-shadow: 0 1px 2px #20202a08; margin-bottom: 12px; display: grid; gap: 12px; font-size: 12px; }
.task-kanban-card > a { color: inherit; font-weight: 600; text-decoration: none; }
.task-kanban-card > div, .task-kanban-card footer { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.task-kanban-card small, .task-kanban-card footer { color: var(--task-muted); font-size: 11px; }
.task-empty { padding: 50px 16px; text-align: center; color: var(--task-muted); }
.task-empty > svg { color: #6e9d8b; }
.task-insights-modal { width: min(900px, calc(100vw - 32px)); max-height: 85vh; margin: auto; inset: 0; border: 1px solid var(--colorNeutralStroke2, #e5e5eb); border-radius: 12px; padding: 0; background: var(--colorNeutralBackground1, #fff); color: var(--colorNeutralForeground1, #292b30); }
.task-insights-modal::backdrop { background: #20202a66; }
.task-insights-modal > header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e9e9ed; padding: 20px 24px; }
.task-insights-modal > header small { font-size: 10px; letter-spacing: .1em; color: #73757b; }
.task-insights-modal > header h2 { margin: 5px 0 0; font-size: 20px; }
.task-insights-modal > header button { border: 0; background: transparent; font-size: 25px; cursor: pointer; }
[data-task-insights-body] { padding: 24px; overflow: auto; }
.task-insights-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 24px; }
.task-insights-metrics > div { padding: 16px; border: 1px solid var(--colorNeutralStroke2, #e9e9ed); border-radius: 8px; display: grid; gap: 8px; }
.task-insights-metrics span { font-size: 12px; color: #73757b; }
.task-insights-metrics strong { font-size: 26px; }
.task-editor-page .task-editor-layout { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); }
@media (max-width: 760px) {
 .task-workspace-topline { align-items: start; flex-direction: column; gap: 5px; }
 .task-view-tabs { gap: 18px; }
 .task-filter-toolbar { padding: 12px; gap: 8px; }
 .task-filter-toolbar .task-search { flex-basis: 100%; }
 .task-filter-toolbar > label { flex: 1; min-width: 90px; }
 .task-header-actions { gap: 5px; flex-wrap: wrap; }
 .task-header-actions .button { font-size: 11px; }
 .task-filter-popover { position: fixed; left: 16px; right: 16px; top: 25vh; width: auto; }
 .task-insights-metrics { grid-template-columns: 1fr 1fr; }
 .task-insights-modal > header, [data-task-insights-body] { padding: 16px; }
 .task-editor-page .task-editor-layout { grid-template-columns: 1fr; }
}
.task-focus-section h2 { display:flex;align-items:center;gap:10px;font-size:13px;padding:18px 16px 8px;margin:0; }
.task-focus-section h2 span { color:var(--task-muted);font-weight:400; }
.original-layout dialog.task-insights-modal { inset: 0; margin: auto; width: min(900px, calc(100vw - 32px)); height: fit-content; max-height: 85vh; border: 1px solid var(--colorNeutralStroke2, #e5e5eb); border-radius: 12px; padding: 0; }
.original-layout dialog.task-insights-modal[open] { animation: task-modal-enter 140ms ease-out; }
@keyframes task-modal-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media(prefers-reduced-motion:reduce) { .original-layout dialog.task-insights-modal[open] { animation: none; } }
.task-grid form[aria-busy="true"] { opacity: .5; }
.task-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; border: 1px solid var(--task-border); background: var(--colorNeutralBackground1, #fff); border-radius: 8px; margin-top: 16px; }
.task-detail-main { min-width: 0; }
.task-detail-section { padding: 24px; border-bottom: 1px solid var(--task-border); }
.task-detail-section h2 { font-size: 14px; margin: 0 0 16px; }
.task-detail-section .task-empty { padding: 20px 12px; }
.task-detail-sidebar { border-left: 1px solid var(--task-border); }
.task-detail-properties { display: grid; gap: 14px; margin: 0 0 24px; }
.task-detail-properties > div { display: grid; grid-template-columns: 85px 1fr; gap: 12px; font-size: 12px; }
.task-detail-properties dt { color: var(--task-muted); }
.task-detail-properties dd { margin: 0; overflow-wrap: anywhere; }
.task-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.task-section-title h2 { margin: 0; }
.task-section-title h2 span { margin-left: 6px; color: var(--task-muted); font-weight: 400; }
.task-discussion article { display: flex; gap: 12px; margin-bottom: 24px; font-size: 12px; }
.task-discussion article small { color: var(--task-muted); }
.task-schedule-link, .task-delete-link { display: block; margin-top: 20px; font-size: 12px; }
.task-delete-link { color: #ad3d4b; }
@media(max-width:760px) { .task-detail-layout { display: flex; flex-direction: column-reverse; }.task-detail-sidebar { border-left:0; }.task-detail-section { padding:16px; } }

/* Reusable workspace controls and task surfaces. */
:root { --eha-surface:var(--colorNeutralBackground1,#fff); --eha-ink:var(--colorNeutralForeground1,#292632); --eha-muted:var(--colorNeutralForeground3,#746e7e); --eha-line:var(--colorNeutralStroke2,#e5e1eb); --eha-accent:var(--colorBrandForeground1,#7025ad); --eha-tint:#f4eefb; }
html[data-theme="dark"] { --eha-tint:#30233e; }
[hidden] { display:none !important; }
.eha-page-header { gap:16px; }
.eha-tabs { display:flex; align-items:center; gap:22px; overflow-x:auto; border-bottom:1px solid var(--eha-line); }
.eha-tabs > a { display:inline-flex; align-items:center; gap:6px; flex-shrink:0; padding:12px 2px; border-bottom:2px solid transparent; color:var(--eha-muted); text-decoration:none; font-size:13px; }
.eha-tabs > a[aria-current="page"] { border-color:var(--eha-accent); color:var(--eha-accent); font-weight:600; }
.eha-field { gap:6px; min-width:0; }.eha-field-label { font-size:12px; font-weight:600; color:var(--eha-muted); }
.eha-control,.eha-text-control { position:relative; display:block; min-width:0; width:100%; box-sizing:border-box; }
.original-layout .workspace .eha-control-source,.original-layout dialog .eha-control-source { position:absolute !important; width:1px !important; height:1px !important; min-height:0 !important; padding:0 !important; border:0 !important; clip-path:inset(50%); overflow:hidden; opacity:0; pointer-events:none; }
.original-layout .eha-control button.eha-select-trigger,.original-layout .eha-control input.eha-date-display,.original-layout .eha-text-control input { box-sizing:border-box; display:flex; align-items:center; gap:10px; width:100%; min-width:0; min-height:40px; height:40px; padding:9px 32px 9px 12px; margin:0; border:1px solid var(--eha-line); border-radius:8px; background:var(--eha-surface); color:var(--eha-ink); text-align:left; font:inherit; font-size:13px; box-shadow:0 1px 2px #24202e04; cursor:pointer; transition:border-color 120ms,box-shadow 120ms; }
.original-layout .eha-text-control input,.original-layout .eha-control input.eha-date-display { cursor:text; }
.eha-select-value { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; }.eha-select-arrow { position:absolute; right:12px; top:50%; transform:translateY(-60%); color:var(--eha-muted); }
.eha-select-control:has(.eha-control-clear:not([hidden])) .eha-select-trigger { padding-right:56px; }
.original-layout .eha-control .eha-control-clear,.original-layout .eha-control .eha-date-trigger { display:grid; place-items:center; position:absolute; right:28px; top:50%; transform:translateY(-50%); width:24px; min-width:24px; height:28px; min-height:28px; padding:0; border:0; background:transparent; box-shadow:none; color:var(--eha-muted); font-size:18px; border-radius:4px; cursor:pointer; }
.original-layout .eha-control .eha-date-trigger { right:5px; font-size:20px; }.original-layout .eha-control input.eha-date-display { padding-right:58px; }
.original-layout .eha-control .eha-control-clear:hover,.original-layout .eha-control .eha-date-trigger:hover { background:var(--eha-tint); color:var(--eha-accent); }
.original-layout .eha-select-trigger:hover { border-color:#b9a4ca; }
.original-layout .eha-select-trigger:focus-visible,.original-layout .eha-date-display:focus-visible,.original-layout .eha-text-control input:focus-visible { outline:0; border-color:var(--eha-accent); box-shadow:0 0 0 3px #8139b91a; }
.eha-control.is-disabled { opacity:.6; }
.original-layout .eha-control.is-compact .eha-select-trigger { min-height:30px; height:30px; padding:4px 26px 4px 9px; font-size:12px; background:var(--eha-tint); border-color:transparent; border-radius:6px; }
.eha-text-control.with-icon > svg { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--eha-muted); pointer-events:none; }.original-layout .eha-text-control.with-icon input { padding-left:36px; }
.eha-popover { position:fixed; z-index:1000; box-sizing:border-box; padding:6px; border:1px solid var(--eha-line); border-radius:10px; background:var(--eha-surface); color:var(--eha-ink); box-shadow:0 12px 40px #24103726,0 2px 8px #24103712; overflow:auto; overscroll-behavior:contain; font-family:inherit; font-size:13px; line-height:1.45; animation:eha-popover-in 110ms ease-out; }
.original-layout .eha-popover input.eha-option-search { display:block; box-sizing:border-box; width:100%; min-height:36px; padding:8px 10px; margin:0 0 5px; border:1px solid var(--eha-line); border-radius:6px; font-size:13px; background:var(--eha-surface); color:var(--eha-ink); }
.eha-option-list { max-height:270px; overflow:auto; }.eha-option { display:flex; align-items:center; gap:9px; min-height:36px; box-sizing:border-box; padding:8px 10px; border-radius:6px; cursor:pointer; font-size:13px; }
.eha-option:hover,.eha-option.is-active,.eha-option[aria-selected="true"] { background:var(--eha-tint); }.eha-option[aria-selected="true"] { font-weight:600; }.eha-option[aria-disabled="true"] { opacity:.45; cursor:default; }.eha-option-check { margin-left:auto; color:var(--eha-accent); }
.eha-option-avatar { display:grid; place-items:center; width:26px; height:26px; flex-shrink:0; border-radius:50%; background:#ece0f7; color:#7025ad; font-size:10px; font-weight:600; }
.eha-option[data-tone]:not([data-tone=""]) > span:first-child::before { content:""; display:inline-block; width:7px; height:7px; margin-right:8px; border-radius:50%; background:currentColor; }
.eha-option[data-tone="high"],.eha-select-trigger[data-tone="high"] { color:#b93c52 !important; }.eha-option[data-tone="medium"],.eha-option[data-tone="in_progress"],.eha-select-trigger[data-tone="in_progress"] { color:#a06a13 !important; }.eha-option[data-tone="low"],.eha-option[data-tone="completed"],.eha-select-trigger[data-tone="completed"] { color:#288069 !important; }
.eha-options-empty { padding:15px 10px; color:var(--eha-muted); font-size:13px; }.original-layout .eha-popover .eha-popover-done { width:100%; margin-top:6px; min-height:32px; border:0; border-radius:6px; background:var(--eha-tint); color:var(--eha-accent); }
.eha-date-range { border:0; padding:0; margin:0; min-width:0; grid-column:1/-1; }.eha-date-range legend { font-size:12px; font-weight:600; margin-bottom:6px; }.eha-date-range > div { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.eha-date-range label { display:grid; gap:4px; color:var(--eha-muted); font-size:11px; }
.eha-calendar-header { display:flex; align-items:center; justify-content:space-between; padding:3px 0 8px; }.original-layout .eha-popover button { cursor:pointer; }
.original-layout .eha-calendar-header button,.original-layout .eha-calendar-grid button,.original-layout .eha-month-grid button,.original-layout .eha-calendar-presets button { border:0; box-shadow:none; border-radius:6px; background:transparent; color:var(--eha-ink); min-height:34px; padding:4px 8px; font-size:13px; }
.original-layout .eha-calendar-header button { font-size:20px; }.original-layout .eha-calendar-header .eha-calendar-month { font-size:13px; font-weight:600; }.eha-calendar-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }.eha-calendar-grid > span,.eha-calendar-grid button { text-align:center; }.eha-weekday { color:var(--eha-muted); font-size:10px; padding:5px; }
.original-layout .eha-calendar-grid button:hover,.original-layout .eha-month-grid button:hover,.original-layout .eha-calendar-header button:hover { background:var(--eha-tint); color:var(--eha-accent); }.original-layout .eha-calendar-grid button[data-today="true"] { box-shadow:inset 0 0 0 1px var(--eha-line); font-weight:600; }.original-layout .eha-calendar-grid button[aria-pressed="true"] { background:var(--eha-accent); color:#fff; }.original-layout .eha-calendar-grid button:disabled { opacity:.3; cursor:default; }
.eha-calendar-presets { display:flex; justify-content:space-around; gap:4px; border-top:1px solid var(--eha-line); padding-top:7px; margin-top:8px; }.original-layout .eha-calendar-presets button { font-size:11px; background:var(--eha-tint); color:var(--eha-accent); }.eha-month-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:8px; }.eha-control.is-invalid .eha-date-display { border-color:#b93c52; }
.eha-workspace-search { position:relative; width:min(440px,40vw); }.original-layout .dashboard-topbar .eha-workspace-search .dashboard-search { display:block; width:100%; max-width:none; }.original-layout .dashboard-topbar .eha-workspace-search input { padding-right:58px; }.eha-workspace-search kbd { position:absolute; right:10px; top:50%; transform:translateY(-50%); border:1px solid #e3d8ec; border-radius:4px; padding:2px 5px; font:10px system-ui; color:#766685; background:#faf8fc; }
.eha-command-results { position:absolute; top:calc(100% + 8px); left:0; right:0; padding:6px; max-height:360px; overflow:auto; background:var(--eha-surface); border:1px solid var(--eha-line); border-radius:10px; box-shadow:0 12px 40px #24103730; z-index:200; }.eha-command-results a { display:flex; flex-direction:column; gap:3px; padding:9px 10px; border-radius:6px; color:var(--eha-ink); text-decoration:none; font-size:13px; }.eha-command-results a:hover,.eha-command-results a.is-active { background:var(--eha-tint); }.eha-command-results small { color:var(--eha-muted); font-size:10px; }
.is-navigating::before { content:""; position:fixed; inset:0 auto auto 0; z-index:9999; height:3px; width:60%; background:#b97feb; animation:eha-progress 1s ease-in-out infinite; }.eha-navigation-error { display:flex; flex-wrap:wrap; gap:12px; padding:14px; margin-bottom:16px; border:1px solid #ebbecb; border-radius:8px; background:#fff3f5; color:#9c334a; font-size:13px; }
.eha-form-drawer > .stack-form { padding:20px; }.eha-form-drawer .dialog-heading { display:flex; justify-content:space-between; align-items:center; position:sticky; top:0; z-index:2; padding:18px 20px; background:var(--eha-surface); border-bottom:1px solid var(--eha-line); }.eha-form-drawer .dialog-heading h2 { margin:0; font-size:18px; }.eha-form-drawer .dialog-heading button { border:0; background:transparent; font-size:24px; color:var(--eha-muted); cursor:pointer; }
/* Intentional task column sizes prevent names from clipping into assignees. */
.original-layout .asana-task-workspace .task-grid { table-layout:auto; width:100%; min-width:1080px; }.original-layout .asana-task-workspace .task-grid th,.original-layout .asana-task-workspace .task-grid td { overflow:visible; white-space:normal; text-overflow:clip; padding:12px 14px; }.original-layout .asana-task-workspace .task-grid th { background:var(--colorNeutralBackground2,#faf9fc); color:var(--eha-muted); border-right:0; font-size:11px; height:36px; padding-block:8px; }.original-layout .asana-task-workspace .task-grid .task-selection { width:28px; min-width:28px; padding-right:0; }.asana-task-workspace[data-selection-ready]:not([data-selection-mode]) .task-selection { display:none; }
.original-layout .asana-task-workspace .task-title-cell { min-width:260px; max-width:440px; display:flex; align-items:center; gap:10px; }.task-title-cell > form { flex:0 0 24px; margin:0; }.task-title-cell > div { min-width:0; }.original-layout .asana-task-workspace .task-title-cell a { display:block; white-space:normal; overflow-wrap:anywhere; line-height:1.5; font-size:13px; }.original-layout .asana-task-workspace .task-check { display:grid; place-items:center; width:24px; height:28px; min-height:28px; padding:0; }
.task-assignee-chips { min-width:165px; max-width:220px; }.task-assignee-chips > span > span:last-child { overflow:hidden; text-overflow:ellipsis; }.task-grid td:has(> form [data-task-status]) { min-width:150px; }.task-grid td:has(.task-priority) { min-width:80px; }.task-grid td:has(.task-project-label) { min-width:135px; max-width:200px; }.task-grid td:has(.row-actions) { min-width:72px; }.task-grid .task-overdue { white-space:nowrap !important; min-width:108px; }.task-grid .task-project-label { line-height:1.5; overflow-wrap:anywhere; }
.original-layout .task-grid .row-actions { display:flex; justify-content:flex-end; gap:6px; }.original-layout .task-grid .row-icon { display:grid; place-items:center; width:30px; height:30px; border-radius:6px; }.original-layout .task-grid .row-icon:hover { background:var(--eha-tint); }
.original-layout .task-filter-toolbar { gap:10px; padding:16px; align-items:end; }.task-filter-toolbar > label { min-width:118px; flex:0 1 140px; font-size:11px; }.task-filter-toolbar > label:has([name="assignee"]) { flex-basis:185px; }.original-layout .task-filter-toolbar .task-search { flex:1 1 220px; min-width:180px; }.original-layout .task-filter-toolbar .eha-select-trigger,.original-layout .task-filter-toolbar .eha-text-control input { height:36px; min-height:36px; font-size:12px; }.original-layout .task-filter-toolbar .button,.original-layout .task-more-filters summary { box-sizing:border-box; min-height:36px; padding:8px 11px; font-size:12px; }
.task-list-tools { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 16px; border-bottom:1px solid var(--eha-line); min-height:24px; }.task-active-filters { display:flex; flex-wrap:wrap; gap:6px; }.task-filter-chip { display:inline-flex; align-items:center; gap:8px; border-radius:5px; padding:4px 7px; font-size:11px; color:var(--eha-accent); background:var(--eha-tint); text-decoration:none; }.original-layout .task-selection-toggle { background:transparent; border:0; color:var(--eha-muted); font-size:12px; cursor:pointer; white-space:nowrap; padding:5px; }.original-layout .task-selection-toggle[aria-pressed="true"] { color:var(--eha-accent); }
.original-layout .task-bulk-toolbar { padding:10px 16px; display:flex; align-items:center; gap:12px; }.task-bulk-toolbar label { display:flex; align-items:center; gap:10px; }.task-bulk-toolbar .eha-control { width:150px; }.task-filter-popover { z-index:50; width:360px; }.task-filter-popover label { font-size:11px; }.task-view-tabs > a { font-size:12px; }.task-kanban-card:hover { border-color:#c9b8d9; box-shadow:0 3px 10px #2410370a; }
@keyframes eha-progress { 0% { transform:translateX(-100%); } 100% { transform:translateX(170%); } }@keyframes eha-popover-in { from { opacity:0; transform:translateY(-3px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:760px) { .eha-workspace-search { width:100%; }.eha-workspace-search kbd { display:none; }.original-layout .dashboard-topbar .eha-workspace-search input { padding-right:12px; }.task-view-tabs { gap:18px; }.task-filter-toolbar > label { flex:1 1 130px; }.original-layout .task-filter-toolbar .task-search { flex-basis:100%; }.task-filter-popover { width:auto; }.task-bulk-toolbar { flex-wrap:wrap; }.task-list-tools { align-items:flex-start; } }
@media(prefers-reduced-motion:reduce) { .is-navigating::before,.eha-popover { animation:none; } }
.original-layout .workspace .eha-text-control.with-icon input { padding-left:36px; }
.original-layout .dashboard-topbar .eha-workspace-search .dashboard-search { margin:0; }
.original-layout .workspace .task-more-filters summary { border:1px solid var(--eha-line); border-radius:8px; box-shadow:none; font-weight:500; }
.eha-date-control.has-time { display:grid; grid-template-columns:minmax(0,1fr) 106px; gap:6px; }
.original-layout .eha-control.has-time .eha-date-trigger { right:117px; }
.original-layout .eha-control.has-time .eha-control-clear { right:141px; }
.original-layout .eha-control input.eha-time-display { width:100%; box-sizing:border-box; border:1px solid var(--eha-line); border-radius:8px; padding:8px; min-height:40px; height:40px; background:var(--eha-surface); color:var(--eha-ink); font-size:13px; }
.original-layout dialog.eha-form-drawer { padding:0; }
.original-layout dialog.eha-form-drawer .dialog-heading { top:0; padding:18px 20px; margin:0; background:var(--eha-surface); }
.original-layout .eha-form-drawer .task-editor-layout .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.eha-form-drawer .field:has(textarea),.eha-form-drawer .field:has([name="visibility"]) { grid-column:1/-1; }
.task-repeat-settings > summary { font-size:13px; font-weight:600; cursor:pointer; padding:8px 0; }
.task-repeat-settings > summary span { margin-left:10px; font-size:11px; font-weight:400; }
.task-repeat-settings[open] > summary { margin-bottom:12px; }
.task-editor-page .task-editor-layout > .panel { border-color:var(--eha-line); box-shadow:none; }
.original-layout .eha-form-drawer .panel { border-color:var(--eha-line); box-shadow:none; }
@media(max-width:480px) { .original-layout .eha-form-drawer .task-editor-layout .form-grid { grid-template-columns:1fr; } }

.original-layout .page .task-more-filters { margin:0; border:0; overflow:visible; background:transparent; border-radius:0; }
.original-layout .page .task-more-filters > summary { margin:0; background:var(--eha-surface); }
.original-layout .task-repeat-settings { border:0; border-top:1px solid var(--eha-line); border-radius:0; overflow:visible; background:transparent; }
.original-layout .task-advanced { border:0; border-radius:0; background:transparent; }
.task-apply-filters { grid-column:1/-1; justify-self:end; }

.tw-h-full {
  height: 100%;
}

.tw-w-full {
  width: 100%;
}

.tw-object-cover {
  object-fit: cover;
}
