html, body { margin: 0; padding: 0; } * { box-sizing: border-box; }

/* Prevent refresh-time visual jitter/flicker before first stable paint */
.preload-ui *,
.preload-ui *::before,
.preload-ui *::after {
  animation: none !important;
  transition: none !important;
}:root {
  --sapphire: #1f1f1b;
  --royal-blue: #f6f5f1;
  --quicksand: #c8b89a;
  --swan-wing: #f1efe8;
  --shellstone: #1f1f1b;

  --primary-accent: #5f7c68;
  --secondary-accent: #6f7c86;
  --accent: var(--primary-accent);
  --text: var(--shellstone);
  --text-soft: #6d6b63;
  --surface: #ffffff;
  --surface-2: var(--swan-wing);
  --line: #e4e1d7;
  --blue-soft: #5e6d78;

  --font-ui: Inter, system-ui, Arial, sans-serif;
  --font-tech: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ArchOps type scale */
  --fs-page-title: 24px;
  --fs-section-title: 22px;
  --fs-card-title: 18px;
  --fs-body: 15px;
  --fs-table: 13px;
  --fs-label: 12px;
  --consultant-company-gap: 3px;
}

#root {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
}

html,
body {
  margin: 0;
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
}

/* Global typography standard */
body,
input,
button,
select,
textarea,
.wrap,
.wrap * {
  font-family: var(--font-ui);
  font-size: var(--fs-body);
}

h1,
.calendar-title,
.directory-title {
  font-size: var(--fs-page-title) !important;
  line-height: 1.15;
}

h2,
.panel h1,
.section-title {
  font-size: var(--fs-section-title);
}

h3,
.dashboard-card h3,
.consultant-section-card h3,
.meeting-block h3 {
  font-size: var(--fs-card-title);
}

small,
.small,
label,
.meeting-attendees-header,
.meeting-action-header,
.staffing-table-header {
  font-size: var(--fs-label) !important;
}

.staffing-table-row,
.staffing-table-row span,
.staffing-table-row input,
.staffing-table-row select,
.meeting-action-row,
.meeting-attendees-row,
.file-row {
  font-size: var(--fs-table) !important;
}

/* Technical/data text */
.staffing-table-row,
.meeting-action-row,
.meeting-attendees-row,
.file-row {
  font-family: var(--font-tech);
}

.wrap {
  font-family: Inter, system-ui, Arial, sans-serif;
  color: var(--text);
  background: var(--royal-blue);
  min-height: 100dvh;
  padding: 24px;
  overflow-x: hidden;
  font-size: var(--fs-body);
}

.wrap.directory-page {
  background: var(--royal-blue);
}

.wrap,
.wrap p,
.wrap span,
.wrap small,
.wrap li,
.wrap label,
.wrap strong {
  color: var(--text);
}

.wrap h1,
.wrap h2,
.wrap h3,
.wrap h4 {
  color: var(--sapphire);
}

.left-column {
  display: flex;
  flex-direction: column;
  border-right: 0;
  position: relative;
}

.top-header {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.top-header-vertical-nav {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  position: absolute;
  left: 300px;
  top: 0;
  height: 50px;
  transform: none;
  max-width: calc(100% - 500px);
  overflow-x: auto;
}

.top-header-nav-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--sapphire);
  border-radius: 12px;
  padding: 0 12px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.1;
  width: auto;
  height: 36px;
  white-space: nowrap;
  text-align: center;
}

.top-header-vertical-nav .top-header-nav-tab {
  color: color-mix(in srgb, var(--sapphire) 72%, transparent);
}

.top-header-vertical-nav .top-header-nav-tab:hover,
.top-header-vertical-nav .top-header-nav-tab:focus-visible {
  color: var(--sapphire);
  background: color-mix(in srgb, var(--surface) 92%, var(--line));
}

.top-header-vertical-nav .top-header-nav-tab.active {
  color: var(--sapphire);
  background: color-mix(in srgb, var(--primary-accent) 16%, #ffffff);
  border-color: color-mix(in srgb, var(--primary-accent) 18%, var(--line));
}

.top-header-right-actions {
  --profile-menu-width: min(320px, 92vw);
  position: absolute;
  right: 12px;
  top: 0;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-header-search {
  width: 220px;
  min-height: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
}

.search-input-icon {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  padding-left: 34px !important;
}

.top-header-search,
.search-input-icon,
.team-org-overall-search input,
.office-employees-search-row input,
.calendar-list-search-row input,
.filters input,
.projects-overview-actions input {
  box-shadow: inset 0 1px 3px color-mix(in srgb, var(--sapphire) 22%, transparent);
}

.directory-search-row,
.team-org-overall-search,
.office-employees-search-row,
.calendar-list-search-row,
.filters,
.projects-overview-actions {
  position: relative;
}

.directory-search-row::before,
.team-org-overall-search::before,
.office-employees-search-row::before,
.calendar-list-search-row::before,
.filters::before,
.projects-overview-actions::before {
  content: '⌕';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.directory-search-row::before,
.projects-overview-actions::before {
  top: calc(50% + 4px);
}

.top-header-filter {
  min-height: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 10px;
  font-size: 13px;
}

.top-header-right-actions .top-header-nav-tab {
  width: auto;
}

.profile-bell-btn,
.profile-gear-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  outline: none;
  box-shadow: none;
  color: var(--accent);
  position: relative;
}

.profile-bell-btn svg,
.profile-gear-btn svg {
  width: 32px;
  height: 32px;
}

.profile-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  padding: 0 4px;
}

.profile-notifications-dropdown {
  right: 0;
  background: var(--swan-wing);
}

.profile-notification-list {
  display: grid;
  gap: 6px;
}

.profile-notification-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  text-align: left;
  padding: 8px;
  color: var(--text);
  font-weight: 400;
}

.profile-notification-item.unread {
  font-weight: 700;
}

.profile-settings-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: var(--profile-menu-width);
  max-height: 76vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--swan-wing);
  padding: 10px;
  z-index: 2500;
}

.profile-settings-detail {
  position: absolute;
  top: calc(100% + 8px);
  right: var(--profile-menu-width);
  width: min(430px, 90vw);
  max-height: 76vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--swan-wing);
  padding: 10px;
  z-index: 2500;
}

.profile-settings-account-header {
  padding: 2px 4px 4px;
}

.profile-settings-account-header strong {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.profile-settings-menu {
  display: grid;
  gap: 4px;
}

.profile-settings-menu-item {
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 6px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.profile-settings-menu-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent) !important;
  flex: 0 0 16px;
}

.profile-settings-menu-icon svg {
  width: 16px;
  height: 16px;
  color: var(--accent) !important;
}

.profile-settings-menu-icon svg * {
  stroke: var(--accent) !important;
}

.profile-settings-menu-item.active {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
}

.profile-settings-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

.nav-settings-divider {
  margin: 10px 4px 4px;
}

.profile-settings-content {
  min-width: 0;
}

.profile-settings-content .site-settings-typography-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-settings-content .site-settings-typography-grid label {
  min-width: 0;
}

.profile-settings-content .site-settings-typography-grid input,
.profile-settings-content .site-settings-typography-grid select,
.profile-settings-content .site-settings-typography-grid textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--royal-blue);
}

.profile-current-projects-textarea {
  min-height: 110px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

.profile-settings-content .site-settings-typography-grid input[readonly],
.profile-settings-content .site-settings-typography-grid input:disabled,
.profile-settings-content .site-settings-typography-grid select:disabled,
.profile-settings-content .site-settings-typography-grid textarea[readonly],
.profile-settings-content .site-settings-typography-grid textarea:disabled {
  background: var(--swan-wing);
  border: 0;
  box-shadow: none;
}

.my-profile-grid input[readonly],
.my-profile-grid textarea[readonly] {
  background: var(--swan-wing) !important;
}

.my-profile-grid select {
  background: var(--royal-blue) !important;
}

.my-profile-grid .my-profile-borderless {
  border: 0 !important;
  box-shadow: none !important;
}

.profile-settings-content .row {
  flex-wrap: wrap;
}

.profile-settings-content button:not(.profile-settings-save-btn):not(.modal-save-btn) {
  max-width: 100%;
  box-sizing: border-box;
  background: var(--royal-blue);
  border: 1px solid var(--line);
}

.profile-settings-content button:disabled {
  background: var(--swan-wing) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.profile-settings-detail-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-settings-save-row {
  justify-content: flex-end;
}

.profile-settings-save-btn {
  border: 1px solid var(--accent) !important;
  background: var(--accent) !important;
  color: var(--surface) !important;
  border-radius: 8px;
  padding: 5px 12px;
}

.settings-action-btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--surface);
  border-radius: 8px;
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
  padding: 0 10px;
}

.web-settings-open-btn {
  border-color: var(--line);
  background: var(--swan-wing);
  color: var(--text);
}

.holiday-upload-btn {
  border-color: var(--line);
  background: var(--swan-wing);
  color: var(--text);
}

.user-management-btn {
  border-color: var(--line) !important;
  background: var(--royal-blue) !important;
  color: var(--text) !important;
}

.account-settings-btn {
  border-color: var(--line) !important;
  background: var(--royal-blue) !important;
  color: var(--text) !important;
}

.company-settings-actions {
  grid-column: 2;
  display: grid;
  gap: 10px;
  align-content: start;
}

.company-settings-action-row {
  display: grid;
  gap: 4px;
}

.permissions-tab-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.permissions-tab-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  background: transparent;
}

.permissions-tab-name {
  color: var(--text);
}

.permissions-tab-capability {
  font-weight: 600;
  color: var(--accent);
}

.company-logo-upload-wrap {
  display: grid;
  gap: 8px;
}

.company-brand-assets-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.company-brand-asset-item {
  min-width: 0;
}

.company-logo-upload-preview {
  width: 200px;
  max-width: 200px;
  height: 100px;
  max-height: 100px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--swan-wing);
}

.company-image-preview-btn {
  width: max-content;
  border: 0;
  padding: 0;
  background: transparent;
}

.image-crop-popover {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.image-crop-preview {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--royal-blue);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
  padding: 12px;
}

.image-crop-preview.logo,
.image-crop-preview.icon {
  aspect-ratio: auto;
}

.image-crop-stage {
  position: relative;
  width: 520px;
  height: 520px;
  max-width: min(78vw, 520px);
  max-height: min(78vh, 520px);
  line-height: 0;
  background: color-mix(in srgb, var(--swan-wing) 75%, white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.image-crop-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.image-crop-rect {
  position: absolute;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 9999px color-mix(in srgb, var(--text) 35%, transparent);
  cursor: move;
}

.image-crop-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  min-width: 14px !important;
  border-radius: 50%;
  border: 1px solid var(--accent) !important;
  background: var(--swan-wing) !important;
  padding: 0 !important;
}

.image-crop-handle.nw { left: -7px; top: -7px; cursor: nwse-resize; }
.image-crop-handle.ne { right: -7px; top: -7px; cursor: nesw-resize; }
.image-crop-handle.sw { left: -7px; bottom: -7px; cursor: nesw-resize; }
.image-crop-handle.se { right: -7px; bottom: -7px; cursor: nwse-resize; }

.preferences-dashboard-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.preferences-dashboard-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preferences-dashboard-list label span {
  color: var(--text-soft);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 200px;
  gap: 12px;
  margin-bottom: 8px;
}

.header-logo {
  width: calc(100% - 40px);
  height: auto;
  object-fit: contain;
  margin-top: 0;
  margin-left: 20px;
  margin-right: 20px;
}

.mission-title {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sapphire);
  margin: 0 0 12px 4px;
  text-align: left;
  width: 100%;
}

.top-header .mission-title {
  margin: 0;
  width: auto;
}

.top-header-logo-wrap {
  position: absolute;
  left: 8px;
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
}

.top-header .header-logo {
  height: 52px;
  width: auto;
  max-width: 500px;
  margin: 0;
}

.top-header .header-brand-stack {
  gap: 6px;
  align-items: center;
}

.left-nav-brand {
  margin: 4px 0 10px;
}

.left-nav-brand .header-logo {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0;
}

.shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 8px;
}

.shell.sidebar-collapsed {
  grid-template-columns: 72px 1fr;
}

.sidebar {
  background: color-mix(in srgb, var(--royal-blue) 82%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  border-radius: 16px;
  padding: 12px;
  min-height: calc(100vh - 48px);
  box-shadow: 0 1px 2px rgba(31, 31, 27, 0.03);
}

.sidebar-collapse-btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  padding: 10px 10px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  margin-bottom: 4px;
}

.sidebar-flyout {
  position: absolute;
  left: calc(100% + 8px);
  top: 64px;
  min-width: 220px;
  background: color-mix(in srgb, var(--royal-blue) 88%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  z-index: 1200;
}

.sidebar-flyout .nav-sub-item {
  width: 100%;
  margin-left: 0;
}

.mobile-nav-toggle {
  display: none;
}

.sidebar h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.directory-menu-tab {
  text-transform: none;
  letter-spacing: 0.02em;
}

.nav-section-label {
  margin: 14px 8px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  opacity: 0.78;
}

.directory-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.directory-panel.consultant-list-main {
  background: var(--royal-blue) !important;
}

.directory-title {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
}

.directory-header-row {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  text-align: center;
}

.consultant-list-disclaimer {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.directory-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto 0;
  width: 100%;
  max-width: 980px;
}

.directory-toolbar-search {
  justify-content: flex-start;
}

.directory-search-row {
  width: 100%;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.directory-search-row input {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  background: var(--royal-blue) !important;
  box-shadow: inset 0 1px 3px color-mix(in srgb, var(--sapphire) 22%, transparent);
}

.directory-search-row .directory-header-actions {
  margin-left: auto;
  margin-top: 0;
  align-self: center;
}

.directory-toolbar-actions {
  width: 740px;
  margin: 12px auto 0;
  justify-content: flex-start;
  gap: 10px;
  transform: translateX(70px);
}

.directory-toolbar input {
  min-width: 340px;
}

.directory-team-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.directory-team-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.directory-team-card {
  width: 100%;
  background: var(--swan-wing) !important;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 72px;
}

.directory-team-grid .directory-team-card * {
  background: transparent !important;
}

.directory-team-card h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  width: 100%;
  text-align: left;
  padding: 0 0 0 20px;
  border-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-symbol-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 42px;
  margin-right: 8px;
  margin-left: -20px;
}

.directory-team-card .muted {
  margin-top: 5px;
  text-align: left;
  width: 100%;
  padding-left: 60px;
}

.directory-contact-row {
  display: grid;
  grid-template-columns: 1fr var(--directory-contact-actions-width);
  align-items: center;
  gap: 10px;
  border: 0;
  background: #FAFAFA !important;
  cursor: pointer;
}

.directory-type-container .directory-contact-row + .directory-contact-row {
  position: relative;
}

.directory-type-container .directory-contact-row + .directory-contact-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: color-mix(in srgb, var(--line) 80%, transparent);
}

.directory-panel .file-list {
  width: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consultant-list-container {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  padding: 0;
}

.consultant-type-container,
.directory-type-container {
  background: var(--swan-wing);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 8px 8px 0;
  margin: 0 !important;
  box-shadow: inset 0 1px 3px color-mix(in srgb, var(--sapphire) 22%, transparent);
}

.directory-type-container {
  position: relative;
}

.directory-type-container::after {
  display: none;
}

.consultant-type-container {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.consultant-list-container .directory-team-header {
  margin-left: -8px;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.consultant-list-container .directory-team-header > div:first-child {
  margin-left: 0;
}

.consultant-type-badge,
.directory-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 26px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--secondary-accent) 28%, transparent);
  background: color-mix(in srgb, var(--secondary-accent) 14%, #fff);
  border-radius: 0 999px 999px 0;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  white-space: nowrap;
}

.directory-type-container .directory-team-header {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.directory-team-header .directory-type-badge {
  margin-left: 0;
}

.content.directory-content .file-list.consultant-list-container {
  background: var(--royal-blue) !important;
}

.consultant-company-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 14px;
  background: #fff !important;
  margin: 8px 0;
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 1px 3px color-mix(in srgb, var(--sapphire) 22%, transparent);
}

.consultant-company-row-main {
  display: grid;
  gap: 3px;
}

.consultant-company-row-meta {
  font-size: 12px;
}

.consultant-company-row-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.directory-panel .file-row.consultant-company-row,
.directory-panel .file-row.consultant-company-row:last-child {
  border-bottom: 1px solid var(--text-soft) !important;
}

.consultant-company-row-name {
  padding-left: 8px;
  font-weight: 500;
  color: var(--text);
}

.directory-panel .file-row,
.directory-panel .file-row:last-child {
  border-bottom: 0 !important;
}

.directory-contact-row:hover {
  background: #F2F2F2 !important;
}

.directory-contact-actions {
  display: grid;
  grid-template-columns: var(--directory-email-col-width) var(--directory-phone-col-width);
  gap: var(--directory-col-gap);
  min-width: var(--directory-contact-actions-width);
  margin-left: auto;
  transform: none;
  justify-items: center;
  align-items: center;
}

:root {
  --directory-email-col-width: 250px;
  --directory-phone-col-width: 250px;
  --directory-col-gap: 20px;
  --directory-contact-actions-width: calc(var(--directory-email-col-width) + var(--directory-phone-col-width) + var(--directory-col-gap));
}


.contact-edit-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
  margin-right: 0;
}

.copy-email-btn {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: copy;
  padding: 0;
  text-align: left;
  font-weight: 400;
}

.desktop-only {
  display: inline-flex;
}

.mobile-only {
  display: none;
}

.mobile-info-btn {
  border: 1px solid var(--line);
  background: #F5F0E9;
  color: #112250;
  border-radius: 8px;
  width: 60px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mobile-info-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (min-width: 769px) {
  .mobile-only,
  .mobile-info-btn.mobile-only {
    display: none !important;
  }

  .desktop-only {
    display: inline-flex !important;
  }

  .directory-team-right-headers.desktop-only {
    display: grid !important;
  }

  .directory-contact-actions {
    display: grid !important;
    grid-template-columns: var(--directory-email-col-width) var(--directory-phone-col-width) !important;
    width: var(--directory-contact-actions-width);
    min-width: var(--directory-contact-actions-width);
    margin-left: 0;
    transform: none;
    justify-self: end;
  }

  .directory-column-headers .directory-contact-actions {
    display: none !important;
  }

  .desktop-email {
    display: flex !important;
    grid-column: 1;
    justify-self: center !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100%;
    margin: 0 auto;
  }

  .desktop-email .directory-inline-text,
  .desktop-email .directory-inline-input {
    text-align: center;
    margin: 0 auto;
  }

  .desktop-phone {
    display: flex !important;
    grid-column: 2;
    justify-self: center !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100%;
    margin: 0 auto;
  }

  .desktop-phone .phone-stack {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .desktop-phone .directory-inline-text,
  .desktop-phone .directory-inline-input {
    text-align: center;
  }
}

.contact-action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  color: #112250;
  text-decoration: none;
  background: #F5F0E9;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.contact-action-copy {
  font-weight: 400;
}

.info-icon-svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.directory-inline-text {
  cursor: pointer;
  border-radius: 6px;
  padding: 1px 4px;
}

.directory-contact-actions {
  text-align: center;
}

.directory-contact-actions .directory-inline-text,
.directory-contact-actions .directory-inline-input,
.directory-contact-actions .phone-stack,
.directory-contact-actions .desktop-email,
.directory-contact-actions .desktop-phone {
  text-align: center !important;
}

.directory-contact-actions .directory-inline-text {
  padding-left: 0;
  padding-right: 0;
}


.directory-inline-input {
  width: 100%;
  max-width: 180px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--swan-wing);
  border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--line));
  border-radius: 999px;
  padding: 6px 14px;
  z-index: 1200;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.saved-center-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: var(--royal-blue);
  border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--line));
  border-radius: 999px;
  padding: 10px 20px;
  z-index: 1400;
  font-size: 0.95rem;
  font-weight: 600;
}

.toast-undo-btn {
  border: 1px solid color-mix(in srgb, var(--royal-blue) 60%, var(--line));
  background: transparent;
  color: var(--royal-blue);
  border-radius: 999px;
  padding: 2px 8px;
}

.action-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: var(--swan-wing);
  border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--line));
  border-radius: 16px;
  padding: 10px 20px;
  z-index: 2200;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.action-toast span {
  color: var(--swan-wing) !important;
}


.directory-column-headers {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr var(--directory-contact-actions-width);
  border-bottom: 0 !important;
  border-top: 0 !important;
}

.directory-header-actions {
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding-bottom: 0;
}

.directory-header-actions button {
  background: var(--accent);
  color: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

.directory-column-headers .directory-contact-actions {
  width: var(--directory-contact-actions-width);
}

.directory-team-header {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 1fr var(--directory-contact-actions-width);
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.directory-team-right-headers {
  display: grid;
  grid-template-columns: var(--directory-email-col-width) var(--directory-phone-col-width);
  justify-content: end;
  gap: var(--directory-col-gap);
}

.directory-team-right-headers strong {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
  width: 100%;
  height: 100%;
  text-align: center !important;
}


.directory-contact-actions .desktop-email,
.directory-contact-actions .desktop-phone {
  display: flex !important;
  justify-self: center;
  justify-content: center !important;
  align-items: center !important;
  width: 100%;
  text-align: center !important;
}

.directory-contact-actions .desktop-email {
  padding: 0;
}

.directory-contact-actions .desktop-email .directory-inline-text,
.directory-contact-actions .desktop-email .directory-inline-input,
.directory-contact-actions .desktop-email.directory-inline-text,
.directory-contact-actions .desktop-email.directory-inline-input,
.directory-contact-actions .desktop-phone .directory-inline-text,
.directory-contact-actions .desktop-phone .directory-inline-input {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center !important;
  font-size: 12px !important;
}

.directory-contact-actions .desktop-email.directory-inline-text,
.directory-contact-actions .desktop-email.directory-inline-input {
  transform: translateX(15px);
}

.directory-contact-actions .desktop-email .directory-inline-text,
.directory-contact-actions .desktop-email.directory-inline-text {
  transition: transform 140ms ease, box-shadow 160ms ease;
}

.directory-contact-actions .desktop-email .directory-inline-text:hover,
.directory-contact-actions .desktop-email.directory-inline-text:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--text) 12%, transparent);
}

.directory-contact-actions .desktop-phone .phone-stack {
  display: flex !important;
  flex-direction: column;
  width: max-content;
  margin: 0 auto;
  align-items: center !important;
  justify-content: center !important;
}

.directory-contact-actions .desktop-phone .directory-inline-text {
  width: max-content;
  margin: 0 auto;
}

.directory-company-text {
  color: var(--text-soft);
  opacity: 0.75;
  font-weight: 400;
}

.file-list > div:has(.directory-team-header) {
  margin-bottom: 20px;
}

.directory-panel .file-list > div:has(.directory-team-header) {
  margin-bottom: 0 !important;
}

.directory-contact-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.directory-contact-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: color-mix(in srgb, var(--accent) 90%, transparent);
  box-shadow: inset 0 1px 3px color-mix(in srgb, var(--sapphire) 20%, transparent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex: 0 0 32px;
}

.directory-primary-star {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: var(--accent) !important;
  opacity: 0.5;
  margin-left: 10px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.directory-primary-star:hover,
.directory-primary-star.active {
  color: var(--accent) !important;
  opacity: 1;
}

.directory-name-row {
  display: flex;
  align-items: center;
}

.directory-primary-label {
  margin-left: 4px;
  font-size: 11px;
  line-height: 1.1;
  color: var(--accent);
  text-transform: none;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  padding: 2px 8px;
}

.directory-contact-main strong {
  white-space: nowrap;
  font-size: 15px;
}

.directory-contact-main .contact-edit-btn {
  display: none !important;
}

.directory-contact-row button[title="Edit contact"],
.directory-contact-row button[title="Delete contact"],
.directory-contact-row button[aria-label="Edit contact"],
.directory-contact-row button[aria-label="Delete contact"] {
  display: none !important;
}

.directory-contact-row > div > strong {
  font-weight: 400;
}

.directory-contact-actions button,
.directory-toolbar button,
.directory-toolbar select,
.directory-toolbar input {
  background: transparent;
  border-color: var(--sapphire);
  color: var(--shellstone);
}

.directory-toolbar input::placeholder {
  color: rgba(217, 203, 194, 0.7);
}

.directory-contact-filter-row {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  align-items: center;
  gap: 8px;
  margin: 2px 0 6px;
  text-align: left;
  color: var(--text);
}

.directory-filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  border-radius: 10px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.directory-contact-filter-row:not(.directory-bulk-actions) .directory-filter-btn,
.directory-contact-filter-row:not(.directory-bulk-actions) .directory-inline-input,
.directory-contact-filter-row:not(.directory-bulk-actions) select,
.directory-contact-filter-row:not(.directory-bulk-actions) .directory-sort-label,
.directory-contact-filter-row:not(.directory-bulk-actions) .directory-sort-select {
  color: var(--text);
}

.directory-filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--text) 12%, transparent);
}

.directory-group-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.directory-save-group-anchor {
  position: relative;
}

.directory-save-group-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 220px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--text) 25%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  backdrop-filter: blur(2px);
  box-shadow: 0 8px 22px color-mix(in srgb, #000 16%, transparent);
}

.directory-save-group-field-label {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 700;
}

.directory-save-group-popover .directory-inline-input {
  width: 100%;
}

.directory-save-group-popover-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.directory-filter-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.directory-group-select.active {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  color: var(--text-soft);
  font-weight: 700;
}

.directory-group-select.active option {
  color: var(--text-soft);
  font-weight: 700;
}

.directory-filter-btn.active {
  background: color-mix(in srgb, var(--quicksand) 10%, transparent);
  border-color: var(--line);
  color: var(--text-soft);
}

.directory-contact-filter-row:not(.directory-bulk-actions) .directory-filter-btn.active,
.directory-contact-filter-row:not(.directory-bulk-actions) .directory-group-select.active,
.directory-contact-filter-row:not(.directory-bulk-actions) .directory-group-select.active option {
  color: var(--text);
}

.directory-bulk-actions .directory-filter-btn,
.directory-bulk-actions .directory-inline-input,
.directory-bulk-actions select {
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--text) 55%, var(--line));
  color: var(--text-soft);
}

.directory-bulk-actions .directory-filter-btn.active {
  border-color: color-mix(in srgb, var(--text) 55%, var(--line));
  background: color-mix(in srgb, var(--text-soft) 22%, transparent);
  color: var(--shellstone);
  height: 40px;
  display: inline-flex;
  align-items: center;
}

.directory-sort-btn .directory-sort-label,
.directory-sort-btn .directory-sort-select {
  font-size: 12px !important;
  line-height: 1.1;
}

.directory-sort-btn .directory-sort-label {
  font-weight: 700;
}

.directory-sort-btn .directory-sort-select {
  border: none;
  background: transparent;
  color: inherit;
  outline: none;
  font-weight: 400;
}

.brand-link {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.settings-logo-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.site-settings-popover {
  width: min(760px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.calendar-popover.logout-confirm-popover {
  width: 200px !important;
  max-width: 200px !important;
  padding: 10px;
}

.logout-confirm-popover .row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.logout-confirm-popover .row button {
  width: auto;
  min-width: 72px;
}

.user-management-popover {
  width: min(420px, calc(100vw - 40px));
}

.site-settings-upload {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.site-settings-theme-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.site-color-item {
  display: grid;
  grid-template-rows: 34px 36px auto;
  gap: 4px;
  align-items: stretch;
}

.site-color-item > span {
  display: block;
  min-height: 34px;
  text-align: left;
}

.site-color-item small {
  color: #6f7b95;
  min-height: 36px;
  text-align: left;
}

.site-color-swatch {
  width: 100%;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.site-color-item input[type='color'] {
  width: 100%;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  margin-top: auto;
}

.site-settings-typography-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.site-settings-footer-actions {
  justify-content: flex-end;
  margin-top: 10px;
}

.site-settings-done-btn {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface);
}

.modal-save-btn {
  border: 1px solid var(--accent) !important;
  background: var(--accent) !important;
  color: var(--surface) !important;
}

.site-settings-typography-grid label {
  display: grid;
  gap: 4px;
}

.site-settings-typography-grid span {
  font-size: var(--fs-label);
  color: var(--text-soft);
}

.header-brand-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
}

.brand-link:hover {
  color: var(--quicksand);
}

.content {
  background: var(--royal-blue);
  border: 0;
  border-radius: 16px;
  padding: 18px;
  margin-left: 0;
  position: relative;
}

.shell.sidebar-collapsed .content {
  margin-left: 0;
}

.content.directory-content {
  background: var(--royal-blue);
}

.content.calendar-content {
  background: var(--royal-blue);
}

.content.directory-content .directory-team-card,
.content.directory-content .directory-contact-row {
  background: var(--swan-wing) !important;
}

.content.directory-content .directory-contact-row:hover {
  background: #F2F2F2 !important;
}

.content.directory-content .directory-team-card,
.content.directory-content .directory-contact-row,
.content.directory-content .file-list {
  border-color: var(--line) !important;
}

header h1 {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.65rem;
  line-height: 1.15;
}

header p {
  color: var(--text-soft);
  margin-top: 8px;
  font-size: 0.98rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.stat-card h3 {
  margin: 4px 0 0;
  font-family: Inter, sans-serif;
  font-size: 1.2rem;
}

.composer {
  display: grid;
  grid-template-columns: 2fr 2fr 0.7fr 0.9fr 0.9fr auto;
  gap: 10px;
  margin: 18px 0;
}

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.vault-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.vault-form {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 10px;
  margin-top: 10px;
}

input,
button,
select {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.95rem;
}

input:focus,
button:focus {
  outline: none;
}

button {
  cursor: pointer;
  font-weight: 500;
  height: 40px;
  border-radius: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  transition: all 140ms ease;
}

button:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, #fff 92%, var(--accent));
}

input,
select,
textarea {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid #ddd9cd;
  background: #fff;
  color: var(--text);
  padding: 8px 12px;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-soft);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--primary-accent) 32%, transparent);
  outline-offset: 0;
  border-color: color-mix(in srgb, var(--primary-accent) 50%, var(--line));
}

.nav-item:hover,
.nav-sub-item:hover {
  opacity: 1;
}

.nav-item {
  width: 100%;
  text-align: left;
  margin-top: 6px;
  background: transparent;
  color: var(--shellstone);
  border: 0;
  padding: 10px 12px;
  border-radius: 10px;
  opacity: 0.92;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.nav-main-icon {
  width: 18px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--text-soft);
}

.nav-main-icon svg {
  width: 18px;
  height: 18px;
}

.nav-main-label {
  white-space: nowrap;
}

.nav-sub-item {
  width: calc(100% - 14px);
  margin-left: 14px;
  text-align: left;
  margin-top: 4px;
  background: transparent;
  color: var(--shellstone);
  border: 0;
  padding: 8px 10px;
  border-radius: 10px;
  opacity: 0.78;
  height: 38px;
}

.nav-item.active,
.nav-sub-item.active {
  background: color-mix(in srgb, var(--primary-accent) 10%, #ffffff);
  color: var(--sapphire);
  text-decoration: none;
  border: 0;
  box-shadow: none;
  outline: none;
  opacity: 1;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--primary-accent);
}

.nav-item.active .nav-main-icon {
  color: var(--sapphire);
}

.sidebar.collapsed {
  width: 72px;
  padding: 10px 8px;
}

.sidebar.collapsed .nav-main-label,
.sidebar.collapsed .nav-section-label,
.sidebar.collapsed .nav-sub-item,
.sidebar.collapsed .nav-settings-divider {
  display: none;
}

.sidebar.collapsed .nav-item,
.sidebar.collapsed .sidebar-collapse-btn {
  justify-content: center;
  padding: 10px 8px;
}

.team-org-header-row {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.team-org-overall-toolbar-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 6px 0 10px;
}

.team-org-overall-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.team-org-overall-toolbar > .team-org-add-staff-btn {
  margin-left: auto;
}

.team-org-overall-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  max-width: none;
}

.team-org-overall-search input {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  background: var(--royal-blue) !important;
  min-width: 360px;
}

.team-org-overall-search input:focus {
  outline: none;
}

.team-org-view-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-org-view-select-wrap label {
  font-size: 12px;
  color: var(--text-soft);
}

.team-org-view-select-wrap select {
  min-width: 180px;
}

.team-org-chart-wrap {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.team-org-chart-wrap.drag-active,
.team-org-chart-wrap.drag-active * {
  transition: none !important;
  animation: none !important;
}

.team-org-chart-wrap.drag-active .team-org-downline,
.team-org-chart-wrap.drag-active .team-org-multi-outgoing-stem,
.team-org-chart-wrap.drag-active .team-org-hierarchy-row::before,
.team-org-chart-wrap.drag-active .team-org-level-grid-center.multi-card::before,
.team-org-chart-wrap.drag-active .team-org-level-grid-center.multi-card.branch-from-parent::after,
.team-org-chart-wrap.drag-active .team-org-level-grid-center.multi-card .team-org-card-btn::before,
.team-org-chart-wrap.drag-active .team-org-hierarchy-row.single-chain-to-next .team-org-card-single::after,
.team-org-chart-wrap.drag-active .team-org-hierarchy-row.single-chain-from-prev .team-org-card-single::before,
.team-org-chart-wrap.drag-active .team-org-hierarchy-row.branch-to-multi .team-org-card-single::after {
  display: none !important;
}

.team-org-level {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: color-mix(in srgb, var(--royal-blue) 95%, white);
  position: relative;
}

.team-org-unplaced-drop-catcher {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: transparent;
}

.team-org-staff-not-placed {
  box-shadow: inset 0 1px 3px color-mix(in srgb, var(--sapphire) 22%, transparent);
}

.team-org-level h3 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-soft);
}

.team-org-level-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}


.team-org-add-staff-btn {
  background: var(--primary-accent);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  min-width: 148px;
  white-space: nowrap;
  height: 36px;
  font-size: 12px;
}

.team-org-level-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Project Overview: Staff Not Placed top area uses a fixed 4-column layout */
.team-org-unplaced-overall .team-org-level-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  justify-content: stretch;
}

.team-org-unplaced-overall .team-org-card,
.team-org-unplaced-overall .team-org-card-btn {
  width: 100%;
  min-width: 0;
}

@media (max-width: 1200px) {
  .team-org-unplaced-overall .team-org-level-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .team-org-unplaced-overall .team-org-level-grid {
    grid-template-columns: 1fr;
  }
}

.team-org-hierarchy-board {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.team-org-hierarchy-board.top-down {
  grid-template-columns: 1fr;
}

.team-org-hierarchy-row {
  --tier-title-x: 24px;
  --tier-divider-x: 29px; /* 5px gap from title anchor */
  border: 1px dashed color-mix(in srgb, var(--line) 55%, white);
  border-radius: 10px;
  padding: 10px 10px 10px 44px;
  background: color-mix(in srgb, var(--royal-blue) 97%, white);
  position: relative;
  width: max-content;
  min-width: 360px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.team-org-hierarchy-row::before {
  content: '';
  position: absolute;
  left: var(--tier-divider-x);
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #000;
}

.team-org-level.drop-active,
.team-org-hierarchy-row.drop-active {
  border-color: var(--quicksand) !important;
  background: color-mix(in srgb, var(--quicksand) 12%, var(--royal-blue));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--quicksand) 35%, transparent);
}

.team-org-hierarchy-row h4 {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  position: absolute;
  left: calc(var(--tier-title-x) - 3px);
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
}

.team-org-hierarchy-row-principal {
  border-style: solid;
}

.team-org-hierarchy-row-principal .team-org-level-grid-center {
  justify-content: center;
  --team-org-card-half: 160px;
}

.team-org-hierarchy-row-principal .team-org-level-grid-center.multi-card {
  padding-top: 0;
}

.team-org-hierarchy-row-principal .team-org-card,
.team-org-hierarchy-row-principal .team-org-card-btn {
  min-height: 92px;
  width: 320px;
  min-width: 320px;
}

.team-org-hierarchy-row-projectManager .team-org-level-grid-center {
  justify-content: center;
}


.team-org-hierarchy-row-drafter .team-org-level-grid-center {
  justify-content: center;
}

.team-org-level-grid-center {
  --team-org-card-half: 140px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: flex-start;
  width: fit-content;
  margin: 0 auto;
}

.team-org-level-grid-center.multi-card {
  position: relative;
  padding-top: 24px;
  flex-wrap: nowrap;
}

.team-org-level-grid-center.multi-card.branch-to-child-group {
  padding-bottom: 0;
}

.team-org-level-grid-center.multi-card::before {
  content: '';
  position: absolute;
  top: 10px;
  left: var(--team-org-card-half);
  right: var(--team-org-card-half);
  height: 2px;
  background: #000;
}

.team-org-level-grid-center.multi-card.branch-from-parent::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -28px;
  width: 2px;
  height: 38px;
  background: #000;
}

.team-org-level-grid-center.multi-card .team-org-card-btn {
  position: relative;
}

.team-org-level-grid-center.multi-card .team-org-card-btn::before {
  content: '';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 13px;
  background: #000;
}

.team-org-level-grid-center.multi-card .team-org-card-btn::after {
  content: none;
}


.team-org-hierarchy-row-principal .team-org-level-grid-center.multi-card::before,
.team-org-hierarchy-row-principal .team-org-level-grid-center.multi-card .team-org-card-btn::before {
  display: none;
}

.team-org-multi-outgoing-stem {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  width: 2px;
  height: 52px;
  background: #000;
}

.team-org-level-grid-center.multi-card.branch-to-child-group .team-org-downline {
  display: none;
}

.team-org-hierarchy-row-principal .team-org-level-grid-center.multi-card.branch-to-child-group::before,
.team-org-hierarchy-row-principal .team-org-level-grid-center.multi-card.branch-to-child-group .team-org-card-btn::before,
.team-org-hierarchy-row-principal .team-org-level-grid-center.multi-card.branch-to-child-group .team-org-downline {
  display: none !important;
}

.team-org-level-grid-center.multi-card.branch-to-child-group .team-org-multi-outgoing-stem {
  display: block;
  width: min(652px, 100%);
  height: 28px;
  top: calc(100% - 1px);
  background: transparent;
}

.team-org-level-grid-center.multi-card.branch-to-child-group .team-org-multi-outgoing-stem::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  background:
    linear-gradient(#000, #000) 25% top / 2px 14px no-repeat,
    linear-gradient(#000, #000) 75% top / 2px 14px no-repeat,
    linear-gradient(#000, #000) center 14px / 50% 2px no-repeat,
    linear-gradient(#000, #000) center 16px / 2px 12px no-repeat;
}

.team-org-level-grid-center.multi-card.branch-to-child-group .team-org-multi-outgoing-stem::after {
  content: none;
}

.team-org-downline {
  width: 2px;
  height: 20px;
  background: #000;
  margin: 10px auto 0;
  position: relative;
}

.team-org-downline.with-arrow::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #000;
}

.team-org-downline.multi-source {
  width: min(652px, 100%);
  height: 28px;
  margin-top: 6px;
  background: transparent;
  position: relative;
}

.team-org-downline.multi-source::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 16px;
  background:
    linear-gradient(#000, #000) 25% top / 2px 14px no-repeat,
    linear-gradient(#000, #000) 75% top / 2px 14px no-repeat,
    linear-gradient(#000, #000) center 14px / 50% 2px no-repeat;
}

.team-org-downline.multi-source::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 16px;
  width: 2px;
  height: 12px;
  background: #000;
  border: 0;
}

.team-org-hierarchy-row.branch-to-multi .team-org-downline {
  display: none;
}

.team-org-hierarchy-row.branch-to-multi .team-org-card-single::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  width: 2px;
  height: 52px;
  background: #000;
}

.team-org-hierarchy-row.branch-to-multi .team-org-downline.with-arrow::after {
  content: none;
}

.team-org-downline.no-arrow {
  height: 26px;
}

.team-org-hierarchy-row.single-chain-to-next .team-org-card-single::after,
.team-org-hierarchy-row.single-chain-from-prev .team-org-card-single::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: #000;
}

.team-org-hierarchy-row.single-chain-to-next .team-org-card-single::after {
  top: 100%;
  height: 28px;
}

/* Project rows need a slightly longer PM → Designer connector to stay visually continuous */
.team-org-hierarchy-row-projectManager.single-chain-to-next .team-org-card-single::after,
.team-org-hierarchy-row-projectManager.branch-to-multi .team-org-card-single::after {
  height: 36px;
}

.team-org-hierarchy-row.single-chain-from-prev .team-org-card-single::before {
  bottom: 100%;
  height: 28px;
}

.team-org-hierarchy-row.merge-from-multi-parent .team-org-card-single::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100%;
  width: 2px;
  height: 24px;
  background: #000;
}

.team-org-hierarchy-row-projectManager.merge-from-multi-parent .team-org-card-single::before {
  height: 20px;
}

@keyframes team-org-line-grow-y {
  from {
    clip-path: inset(0 0 100% 0);
    opacity: 0.8;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes team-org-line-grow-x {
  from {
    clip-path: inset(0 50% 0 50%);
    opacity: 0.8;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.team-org-hierarchy-board.connector-animating .team-org-downline,
.team-org-hierarchy-board.connector-animating .team-org-level-grid-center.multi-card.branch-from-parent::after,
.team-org-hierarchy-board.connector-animating .team-org-level-grid-center.multi-card .team-org-card-btn::before,
.team-org-hierarchy-board.connector-animating .team-org-hierarchy-row.single-chain-to-next .team-org-card-single::after,
.team-org-hierarchy-board.connector-animating .team-org-hierarchy-row.single-chain-from-prev .team-org-card-single::before,
.team-org-hierarchy-board.connector-animating .team-org-hierarchy-row.branch-to-multi .team-org-card-single::after,
.team-org-hierarchy-board.connector-animating .team-org-multi-outgoing-stem {
  animation: team-org-line-grow-y 190ms ease-out both;
}

.team-org-hierarchy-board.connector-animating .team-org-level-grid-center.multi-card::before {
  animation: team-org-line-grow-x 190ms ease-out both;
}

.team-org-drop-hint {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
}

.team-org-hierarchy-row .team-org-drop-hint {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
}

.team-org-card {
  border: 1px solid #000;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 3px;
  width: 280px;
  min-width: 280px;
  min-height: 72px;
  height: auto;
  box-sizing: border-box;
}

.team-org-card-btn {
  width: 280px;
  min-width: 280px;
  min-height: 72px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  border: 1px solid #000;
  box-sizing: border-box;
  color: var(--text-soft);
  overflow: visible;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.team-org-level-grid .team-org-card-btn,
.team-org-level-grid-center .team-org-card-btn {
  min-height: 78px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.team-org-card-btn:hover {
  border-color: var(--quicksand);
  transform: translateY(-1px);
}

.team-org-card-btn.is-dragging {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--text) 32%, transparent);
  cursor: grabbing;
  opacity: 0.95;
  z-index: 5;
}

.team-org-card small {
  display: block;
  width: 100%;
  color: var(--text-soft);
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.team-org-card strong {
  display: block;
  width: 100%;
  font-size: 15px;
  font-weight: 400;
  color: var(--quicksand);
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.team-org-card span {
  display: block;
  width: 100%;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.team-org-card-placeholder,
.team-org-card-placeholder.team-org-card-btn,
.team-org-card-placeholder.team-org-card-projectManager,
.team-org-card-placeholder.team-org-card-principal,
.team-org-card-placeholder.team-org-card-drafter {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--accent) 65%, #000);
  background: transparent !important;
  cursor: default;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.team-org-card-placeholder-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.team-org-overall-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1200px) {
  .team-org-overall-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .team-org-overall-groups {
    grid-template-columns: 1fr;
  }
}

.team-org-project-group {
  border: 1px solid var(--text-soft);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--swan-wing);
  position: relative;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.team-org-project-group::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 45px;
  border-top: 1px solid var(--line);
  pointer-events: none;
}

.team-org-project-group:hover {
  border-color: color-mix(in srgb, var(--quicksand) 55%, var(--line));
  background: color-mix(in srgb, var(--quicksand) 6%, var(--swan-wing));
}

.team-org-project-group.dragging-active {
  opacity: 0.85;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--text) 40%, var(--line));
  background: color-mix(in srgb, var(--primary-accent) 5%, var(--swan-wing));
}

.team-org-project-group.drop-active {
  opacity: 1;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--quicksand) 72%, var(--text));
  background: color-mix(in srgb, var(--quicksand) 16%, var(--swan-wing));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--quicksand) 38%, transparent);
}

.team-org-project-head {
  margin-bottom: 8px;
}

.team-org-project-click-zone {
  cursor: pointer;
}

.team-org-project-head-line1,
.team-org-project-head-line2,
.team-org-project-head-line3-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  line-height: 1.2;
}

.team-org-project-head-line1 {
  justify-content: space-between;
  margin-bottom: 4px;
}

.team-org-project-head-line2 {
  justify-content: flex-start;
  padding-top: 12px;
  margin-bottom: 4px;
}

.team-org-project-head-line3-meta {
  justify-content: flex-start;
}

.team-org-assigned-count {
  font-size: 12px;
}

.team-org-assigned-count.unassigned {
  color: var(--status-danger-fg);
  font-weight: 700;
}

.team-org-phase-chip {
  font-size: 15px;
  font-weight: 700;
  border-radius: 9px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  line-height: 1.2;
}

.team-org-phase-chip.danger {
  color: var(--status-danger-fg);
  background: var(--status-danger-bg);
  border-color: color-mix(in srgb, var(--status-danger-fg) 35%, var(--line));
}

.team-org-phase-chip.warning {
  color: var(--status-warning-fg);
  background: var(--status-warning-bg);
  border-color: color-mix(in srgb, var(--status-warning-fg) 35%, var(--line));
}

.team-org-phase-chip.neutral {
  color: var(--status-info-fg);
  background: var(--status-info-bg);
  border-color: color-mix(in srgb, var(--status-info-fg) 30%, var(--line));
}

.project-section-row-pm {
  font-size: 12px;
  color: var(--text-soft);
  background: color-mix(in srgb, var(--secondary-accent) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--secondary-accent) 20%, var(--line));
  border-radius: 6px;
  padding: 2px 10px;
  line-height: 1.2;
}

.project-section-row-pm strong {
  color: var(--text);
  font-weight: 400;
  font-size: 12px;
}

.project-section-row-pm.unassigned {
  color: color-mix(in srgb, var(--status-danger-fg) 80%, var(--text-soft));
  background: color-mix(in srgb, var(--status-danger-fg) 10%, #fff);
  border-color: color-mix(in srgb, var(--status-danger-fg) 22%, var(--line));
}

.project-section-row-pm.unassigned strong {
  color: color-mix(in srgb, var(--status-danger-fg) 85%, var(--text));
}

.team-org-project-line3 {
  display: block;
  margin-top: 8px;
}

.team-org-assign-label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: color-mix(in srgb, var(--quicksand) 75%, var(--text));
}

.team-org-row-actions {
  display: none !important;
}

.team-org-project-link {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  color: var(--text);
}

.calendar-title.team-org-title {
  text-transform: none !important;
}

.team-org-project-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 2px;
  border-radius: 999px;
}

.team-org-project-cards.drop-active {
  background: color-mix(in srgb, var(--primary-accent) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary-accent) 35%, transparent);
}

.team-org-drop-slot-empty-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.team-org-drop-slot-empty {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px dashed var(--primary-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  box-shadow: none !important;
}

.team-org-drop-slot-label {
  font-size: 10px;
  color: var(--primary-accent);
  font-weight: 600;
}
.avatar-chip-more {
  background: color-mix(in srgb, var(--primary-accent) 14%, #fff);
}

.team-org-card-compact {
  width: 64px;
  min-width: 64px;
  min-height: 48px;
  height: 48px;
  padding: 6px;
  align-items: center;
  justify-content: center;
}

/* Overall Project Overview chips: force compact one-row avatar pills */
.team-org-project-cards .team-org-card-compact,
.team-org-project-cards .team-org-card-btn.team-org-card-compact {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.team-org-project-cards {
  overflow: visible;
}

.team-org-project-cards .team-org-card-btn.team-org-card-compact:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--text) 20%, transparent);
  border-color: var(--quicksand);
}

.team-org-project-cards .team-org-card-btn.team-org-card-compact:active {
  cursor: grabbing;
}

.team-org-pill-wrap {
  position: relative;
  display: inline-flex;
}

.team-org-pill-hover-card {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: 280px;
  min-width: 280px;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--text) 20%, transparent);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.team-org-pill-wrap:hover .team-org-pill-hover-card {
  opacity: 1;
  visibility: visible;
}

@keyframes team-org-chip-in {
  0% { opacity: 0; transform: scale(0.92); }
  70% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes team-org-count-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

.team-org-project-cards.just-dropped .team-org-card-compact {
  animation: team-org-chip-in 0.2s ease-out;
}

.team-org-assigned-count.just-dropped {
  animation: team-org-count-pop 0.2s ease-out;
}

.team-org-ghost-preview {
  opacity: 0.45;
  border: 1px dashed color-mix(in srgb, var(--primary-accent) 65%, var(--line));
  background: color-mix(in srgb, var(--primary-accent) 10%, #fff);
}

.team-org-ghost-preview strong {
  opacity: 0.8;
}

.team-org-project-cards .team-org-card-compact strong {
  width: auto;
  line-height: 1;
  font-size: 12px;
  text-align: center;
}

.team-org-card-compact strong {
  font-size: 14px;
}

.team-org-card-principal {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.team-org-empty-note {
  color: var(--text-soft);
  white-space: nowrap;
  text-align: center;
  justify-self: center;
}

.team-org-notes-area {
  width: 100%;
  min-width: 100%;
  display: block;
  box-sizing: border-box;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.calendar-title.projects-title {
  text-transform: none !important;
}

.projects-overview-panel {
  border: 0 !important;
  box-shadow: none !important;
}

.projects-detail-page {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--swan-wing);
  padding: 14px;
}

.side-detail-panel {
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(31, 31, 27, 0.10);
}

.calendar-popover.side-detail-panel {
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  margin: 0 auto;
}

.projects-overview-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.projects-overview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.projects-overview-search {
  min-width: 220px;
}

.projects-add-btn {
  background: var(--quicksand);
  color: var(--swan-wing);
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
}

.projects-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.projects-overview-card {
  border: 1px solid color-mix(in srgb, var(--line) 45%, white);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  display: grid;
  gap: 12px;
}

.projects-overview-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.projects-overview-name {
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  color: var(--quicksand);
}

.projects-overview-principal-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.avatar-chip {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--secondary-accent) 18%, #fff);
  color: var(--text);
}

.avatar-chip-sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.avatar-chip-md {
  width: 36px;
  height: 36px;
}

.projects-overview-principal-initials {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 25%, transparent);
}

.projects-overview-principal {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-soft) !important;
}

.projects-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.projects-overview-head .muted {
  margin: 3px 0 0;
}

.projects-overview-employees {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--line) 45%, white);
  border-radius: 999px;
  padding: 4px 8px;
  background: color-mix(in srgb, var(--royal-blue) 92%, white);
  color: var(--text-soft);
}

.projects-overview-employees-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.projects-overview-employees strong {
  color: var(--quicksand);
}

.projects-overview-photo-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 35%, white);
}

.projects-overview-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.projects-overview-timeline {
  display: grid;
  gap: 6px;
}

.projects-overview-timeline-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 25%, white);
  overflow: hidden;
}

.projects-overview-timeline-bar span {
  display: block;
  height: 100%;
  background: var(--quicksand);
}

.projects-overview-phases {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}
.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.column {
  background: #fbfaf9;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.column h2 {
  margin-top: 0;
  font-family: Inter, sans-serif;
  font-size: 1.04rem;
  color: var(--quicksand);
}

.task {
  background: var(--swan-wing);
  border: 1px solid #b8a9a0;
  border-left: 4px solid var(--quicksand);
  border-radius: 11px;
  padding: 10px;
  margin-bottom: 10px;
}

.chip-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--line);
  background: #f4f4f4;
}

.chip.p1 { background: #f5ddd6; border-color: #d8b2a5; }
.chip.p2 { background: #efe8d8; border-color: #d6c7a0; }
.chip.p3 { background: #e1e8ef; border-color: #bccad8; }
.chip.owner { background: #e9ecef; }
.chip.blocked { background: var(--shellstone); border-color: #b9aaa2; color: var(--sapphire); }

.task h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 600;
}

.task p {
  margin: 0 0 6px;
  color: #4a4744;
  font-size: 0.93rem;
}

small {
  color: var(--text-soft);
  display: block;
  font-size: 0.8rem;
}

.row {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.progress-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #e6e3df;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--quicksand), #c9ab6f);
}

.danger {
  border-color: #b79b91;
  background: #f4ebe7;
}

.muted {
  color: var(--text-soft);
}

.timeline {
  margin-top: 14px;
  background: #fbfaf9;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.timeline h2 {
  margin-top: 0;
  font-family: Inter, sans-serif;
  font-size: 1.1rem;
  color: var(--quicksand);
}

.event {
  border-bottom: 1px solid #dcd8d4;
  padding: 8px 0;
}

.event:last-child {
  border-bottom: 0;
}

.event p {
  margin: 4px 0;
  color: #4a4744;
  font-size: 0.92rem;
}

.panel {
  background: var(--royal-blue);
  color: var(--sapphire);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.panel h1 {
  margin-top: 0;
  font-family: Inter, sans-serif;
  font-size: var(--fs-section-title);
}

.calendar-upload-panel h2 {
  color: var(--quicksand);
  text-transform: uppercase;
}

.dashboard-panel {
  background: transparent;
  border: 0;
  padding: 0;
}

.dashboard-head {
  margin-bottom: 12px;
}

.dashboard-head h1 {
  margin-top: 20px;
}

.dashboard-head .muted {
  margin-top: -5px;
  margin-bottom: 20px;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.dashboard-kpi-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--swan-wing);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-kpi-card span {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--quicksand);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.office-kpi-symbol-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 42px;
}

.dashboard-kpi-card.office-kpi-card strong,
.dashboard-kpi-card.office-kpi-card small {
  padding-left: 50px;
}

.dashboard-kpi-card strong {
  font-size: 1.55rem;
  line-height: 1;
  color: var(--sapphire);
}

.dashboard-kpi-card small {
  color: var(--text-soft);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 12px;
}

.dashboard-layout.office-org-layout {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-main-col {
  display: grid;
  gap: 10px;
}

.dashboard-side-col {
  display: grid;
  align-content: start;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-grid > .dashboard-card {
  grid-column: span 2;
}

.dashboard-grid > .dashboard-mini-calendar-card {
  grid-column: span 2;
  min-width: 0;
}

@media (max-width: 1500px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid > .dashboard-card,
  .dashboard-grid > .dashboard-mini-calendar-card {
    grid-column: span 1;
  }
}

.dashboard-overview-hero-body {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.dashboard-phase-column {
  display: grid;
  gap: 8px;
}

.dashboard-phase-progress {
  margin-bottom: 8px;
}

.dashboard-phase-mobile-slider {
  display: none;
}

.dashboard-phase-progress-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 35%, transparent);
  margin: 4px 2px 8px;
}

.dashboard-phase-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: 999px;
  background: var(--quicksand);
}

.dashboard-phase-progress-dot {
  position: absolute;
  left: var(--stop, 0%);
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--royal-blue);
  transform: translate(-50%, -50%);
}

.dashboard-phase-progress-dot.active {
  background: var(--quicksand);
  border-color: var(--quicksand);
}

.dashboard-phase-progress-slider {
  width: 100%;
}

.dashboard-phase-start-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.dashboard-phase-edge-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dashboard-phase-edge-group.end {
  margin-left: auto;
  justify-content: flex-end;
}

.dashboard-phase-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-phase-pill {
  border: 0;
  border-radius: 10px;
  padding: 8px;
  display: grid;
  gap: 4px;
  background: var(--swan-wing);
  text-align: center;
  align-items: center;
  justify-items: center;
}

.dashboard-phase-date-placeholder {
  color: var(--text-soft);
  font-size: var(--fs-label);
}

.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 31, 27, 0.04), 0 6px 18px rgba(31, 31, 27, 0.04);
}

.dashboard-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--sapphire);
}

.dashboard-overview-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-overview-save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.dashboard-overview-save-btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--surface);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
}

.dashboard-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text);
}

.dashboard-project-location-input {
  width: 100%;
  max-width: 280px;
  margin: 0 0 8px;
  border: 0;
  border-radius: 8px;
  padding: 6px 8px;
  background: var(--swan-wing);
  color: var(--text);
  outline: none;
}

.dashboard-project-location-input:focus {
  outline: none;
  box-shadow: none;
}

.dashboard-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text);
}

.dashboard-overview-photo-wrap {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.dashboard-overview-photo {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.dashboard-overview-photo-placeholder {
  width: 100%;
  min-height: 90px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.dashboard-upload-photo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--accent);
  color: var(--surface) !important;
  font-size: 12px;
  cursor: pointer;
}

.dashboard-phase-date-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  min-width: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: var(--accent);
  background: var(--royal-blue);
  cursor: pointer;
}

.dashboard-phase-date-btn.has-date {
  color: var(--text);
  font-weight: 400;
}

.dashboard-phase-date-icon {
  width: 14px;
  height: 14px;
}

.dashboard-phase-date-hidden-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.dashboard-overview-upload {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
}

.dashboard-phase-timeline {
  display: grid;
  gap: 6px;
}

.dashboard-phase-timeline label {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 8px;
}

.dashboard-card-clickable {
  cursor: pointer;
}

.dashboard-card-clickable:hover {
  border-color: color-mix(in srgb, var(--primary-accent) 28%, var(--line));
  transform: translateY(-1px);
}

.dashboard-link-btn {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.dashboard-link-btn:hover {
  text-decoration: underline;
}

.meeting-row-flash {
  animation: meetingRowFlash 1.4s ease;
}

@keyframes meetingRowFlash {
  0% { background: #f6e8c7; }
  100% { background: transparent; }
}

.dashboard-mini-calendar-card {
  display: flex;
  flex-direction: column;
}

.dashboard-mini-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.dashboard-mini-nav p {
  margin: 0;
}

.dashboard-mini-weekdays,
.dashboard-mini-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.dashboard-mini-weekdays {
  margin-top: 6px;
  margin-bottom: 2px;
}

.dashboard-mini-weekday {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
}

.dashboard-mini-day {
  border: 0;
  background: transparent;
  border-radius: 6px;
  min-height: 28px;
  padding: 4px 6px;
}

.dashboard-mini-day.today-year {
  background: #d9cbc280;
}

.dashboard-mini-day.today-year .year-day-num {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.day-item-title {
  font-weight: 700;
}

.day-item-assign {
  color: var(--quicksand);
  font-weight: 700;
}

.day-deadline-list {
  border: 0;
  background: transparent;
  margin-top: 0;
}

.day-deadline-list .file-row {
  border: 0;
  background: transparent;
  padding-left: 0;
  font-size: 11px !important;
}

.day-deadline-list .file-row.tasks-today-divider {
  border-bottom: 1px solid var(--text-soft);
  color: var(--text-soft);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.day-item-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.day-item-main {
  flex: 1;
  min-width: 0;
}

.day-item-status {
  min-width: 112px;
}

.day-item-edit-btn {
  border: 0;
  background: transparent;
  width: auto;
  height: auto;
  border-radius: 0;
  padding: 0;
  color: #3c507d;
}

.day-view-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 12px;
  align-items: start;
}

.day-mini-month {
  justify-self: end;
  width: 320px;
  background: transparent;
  border: 0;
  padding: 0;
}

.day-mini-month .year-month-title {
  display: block;
  min-height: 24px;
  margin: 0;
  text-align: left;
  white-space: nowrap;
  font-weight: 700;
}

.day-mini-month .year-month-grid {
  margin-top: 8px;
  align-self: stretch;
}

.day-mini-month .year-month-grid .small {
  font-weight: 700;
}

.day-mini-selected .year-day-num {
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--royal-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.day-mini-month .year-day-cell {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 6px;
}

.day-mini-month .today-year {
  background: #d9cbc280 !important;
}

.day-mini-month .day-mini-selected {
  background: var(--quicksand) !important;
}

.day-mini-month .year-day-num.deadline-ring {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--quicksand) !important;
  background: transparent !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.day-mini-month .day-mini-selected .year-day-num.deadline-ring {
  border-width: 1.5px !important;
  background: var(--quicksand) !important;
  color: var(--royal-blue) !important;
}

.day-mini-month .today-year .year-day-num {
  background: transparent !important;
  border: 0 !important;
  color: inherit !important;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.small {
  font-size: 0.85rem;
}

.error {
  color: #8a4b3e;
}

.file-list {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  max-height: 55vh;
  overflow: auto;
  background: #ffffff;
}

.file-row {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: var(--shellstone);
}

.file-row:hover {
  background: color-mix(in srgb, var(--surface) 88%, var(--swan-wing));
}

.file-row:last-child {
  border-bottom: 0;
}

.project-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.subfolders {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
  gap: 6px;
}

.subfolder-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf9f7;
}

.subfolder-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  font-weight: 600;
}

.tiny-arrow {
  font-size: 0.5em;
  display: inline-flex;
  width: 10px;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.subfolder-content {
  padding: 0 10px 10px;
}

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}

.agents-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.subfolder-more {
  margin-bottom: 6px;
}

.subfolder-link {
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
}

.subfolder-link:hover {
  text-decoration: underline;
}

/* Apple Calendar-inspired styling (style-lab only) */
.calendar-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.calendar-shell {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0;
  background: transparent;
  border: 0;
  min-height: 640px;
}

.calendar-month-zoom-overlay {
  position: fixed;
  z-index: 30;
  border: 0;
  border-radius: 0;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  transition: left 340ms cubic-bezier(0.22, 1, 0.36, 1), top 340ms cubic-bezier(0.22, 1, 0.36, 1), width 340ms cubic-bezier(0.22, 1, 0.36, 1), height 340ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: none;
}

.calendar-month-zoom-overlay.expanded {
  opacity: 1;
}

.calendar-month-zoom-preview {
  width: 100%;
  height: 100%;
}

.calendar-month-zoom-preview .year-month-card {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  min-height: 0;
}

.calendar-month-zoom-preview .year-month-title {
  opacity: 0;
}

.calendar-day-morph-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 31;
}

.calendar-day-morph-item {
  position: fixed;
  transform: translate(-50%, -50%);
  color: var(--shellstone);
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  transition: left 340ms cubic-bezier(0.22, 1, 0.36, 1), top 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.calendar-grid-month.month-day-morphing .day-num,
.calendar-grid-week.month-day-morphing .day-num {
  opacity: 0;
}

.calendar-grid-week.week-entering.week-phase-0 .calendar-cell,
.calendar-grid-week.week-entering.week-phase-1 .calendar-cell,
.calendar-grid-week.week-entering.week-phase-2 .calendar-cell {
  border-top-color: transparent !important;
}

.calendar-grid-week.week-entering.week-phase-3 .calendar-cell,
.calendar-grid-week.week-entering.week-phase-4 .calendar-cell {
  transition: border-top-color 220ms ease;
}

.calendar-grid-week.week-entering.week-phase-0 .day-deadline-count,
.calendar-grid-week.week-entering.week-phase-1 .day-deadline-count {
  opacity: 0;
}

.calendar-grid-week.week-entering.week-phase-2 .day-deadline-count,
.calendar-grid-week.week-entering.week-phase-3 .day-deadline-count,
.calendar-grid-week.week-entering.week-phase-4 .day-deadline-count {
  opacity: 1;
  transition: opacity 220ms ease;
}

.calendar-grid-month.month-entering {
  animation: monthFadeIn 520ms ease;
}

.calendar-grid-month .month-weekday {
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.72rem !important;
}

.calendar-grid-month .month-weekday-first,
.calendar-grid-month .month-weekday-rest {
  font-size: 0.72rem !important;
}

.calendar-grid-month .month-weekday-rest {
  display: inline-block;
  max-width: 40px;
  opacity: 1;
  overflow: hidden;
  vertical-align: top;
}

.calendar-grid-month.month-entering.month-phase-0 .month-weekday-rest,
.calendar-grid-month.month-entering.month-phase-1 .month-weekday-rest {
  max-width: 0;
  opacity: 0;
}

.calendar-grid-month.month-entering.month-phase-2 .month-weekday-rest,
.calendar-grid-month.month-entering.month-phase-3 .month-weekday-rest,
.calendar-grid-month.month-entering.month-phase-4 .month-weekday-rest {
  max-width: 40px;
  opacity: 1;
  transition: max-width 220ms ease, opacity 180ms ease;
}

.calendar-grid-month.month-entering.month-phase-0 .calendar-cell,
.calendar-grid-month.month-entering.month-phase-1 .calendar-cell,
.calendar-grid-month.month-entering.month-phase-2 .calendar-cell {
  border-top-color: transparent !important;
}

.calendar-grid-month.month-entering.month-phase-3 .calendar-cell,
.calendar-grid-month.month-entering.month-phase-4 .calendar-cell {
  transition: border-top-color 220ms ease;
}

.calendar-grid-month.month-entering.month-phase-0 .month-deadline-list,
.calendar-grid-month.month-entering.month-phase-1 .month-deadline-list,
.calendar-grid-month.month-entering.month-phase-2 .month-deadline-list,
.calendar-grid-month.month-entering.month-phase-3 .month-deadline-list {
  opacity: 0;
}

.calendar-grid-month.month-entering.month-phase-4 .month-deadline-list {
  opacity: 1;
  transition: opacity 220ms ease;
}

@keyframes monthFadeIn {
  0% {
    opacity: 1;
    transform: scale(0.997);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.calendar-left-rail {
  border-right: 1px solid #112250;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14px;
  gap: 22px;
}

.consultant-left-rail {
  align-items: stretch;
  padding: 14px 8px;
  gap: 8px;
}

.consultant-team-select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #112250;
  font-size: 0.85rem;
}

.consultant-desktop-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consultant-add-tracker {
  margin-top: 2px;
  font-size: 25px !important;
  line-height: 1;
  font-weight: 300;
}

.consultant-mobile-nav {
  display: none;
}

.rail-dot {
  color: var(--text);
  font-size: 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: 0.5;
  text-transform: none;
  text-align: center;
  width: 100%;
  padding-left: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calendar-left-rail .rail-dot {
  width: auto;
  min-width: 48px;
  padding: 6px 10px;
  border-radius: 10px;
  align-self: center;
}

.calendar-left-rail .rail-dot:hover,
.calendar-left-rail .rail-dot:focus-visible,
.consultant-left-rail .rail-dot:hover,
.consultant-left-rail .rail-dot:focus-visible {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.rail-dot-long {
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.rail-dot-long span {
  display: inline-block;
  white-space: normal;
  line-height: 1;
  font-size: 12px;
  font-weight: 400;
}
.rail-dot.active {
  color: var(--text);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rail-dot:hover { opacity: 1; }

.rail-dot-plus {
  font-size: 24px;
  line-height: 1;
}

.calendar-main {
  padding: 24px;
  background: var(--royal-blue);
  position: relative;
}

.calendar-main.meeting-minutes-main {
  background: var(--royal-blue);
  padding-left: 0;
  padding-right: 0;
}

.meeting-minutes-main .meeting-top-row,
.meeting-minutes-main > .meeting-block {
  background: var(--swan-wing);
  padding-left: 22px;
  padding-right: 22px;
}

.meeting-minutes-main > .meeting-block {
  margin-top: 0;
}

.calendar-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.meeting-header-row {
  position: relative;
  width: 100%;
  justify-content: center;
}

.meeting-delete-actions {
  position: absolute;
  left: 0;
  display: inline-flex;
  gap: 8px;
}

.meeting-export-actions {
  position: absolute;
  right: 0;
  display: inline-flex;
  gap: 8px;
  justify-content: flex-end;
}

.meeting-export-actions button {
  background: var(--swan-wing);
  border: 1px solid var(--line);
  color: var(--text);
}

.calendar-today-row {
  display: flex;
  justify-content: center;
  margin-top: -4px;
  margin-bottom: 20px;
}

.calendar-today-row-year {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;
}

.calendar-today-row-year .calendar-today-btn {
  grid-column: 2;
  justify-self: center;
}

.calendar-today-row-year .calendar-year-legend-wrap {
  grid-column: 3;
  justify-self: end;
  position: relative;
}

.calendar-header-row {
  position: relative;
}

.calendar-header-row .calendar-year-legend-wrap {
  position: absolute;
  right: 0;
  top: -8px;
}

.calendar-today-btn {
  background: transparent;
  border: 1px solid var(--sapphire);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
}

.calendar-inline-nav {
  background: transparent;
  border: 0;
  color: #112250;
  font-size: 1rem;
  padding: 4px 8px;
}

.calendar-inline-nav-spacer {
  width: 26px;
}

.calendar-title {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 24px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #112250; /* royal blue */
}

.calendar-day-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.calendar-day-weekday {
  display: block;
}

.calendar-day-date {
  display: block;
  font-size: 0.62em;
  letter-spacing: 0.04em;
}

.consultant-company-title {
  display: flex !important;
  width: 100%;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  column-gap: var(--consultant-company-gap) !important;
  row-gap: 0 !important;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent) !important;
  opacity: 0.5;
  margin: -2px auto 12px;
}

.consultant-company-name {
  margin: 0 !important;
  padding: 0 !important;
}

.consultant-inline-col-header {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.6;
  margin-bottom: 4px;
}

.consultant-inline-col-header-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  opacity: inherit;
  padding: 0;
  width: 100%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.consultant-col-sort-marker {
  font-size: 10px;
  opacity: 0.75;
}

.consultant-inline-assignee[readonly] {
  text-align: center;
}

.consultant-inline-assignee-readonly,
.consultant-inline-date-readonly {
  width: 100%;
  text-align: center;
}

.consultant-row-header .consultant-assignee-cell {
  text-align: center;
}

.consultant-inline-date[readonly] {
  text-align: center;
}

.consultant-row-header .consultant-due-cell {
  text-align: center;
}

.consultant-all-summary {
  font-size: 14px;
}

.consultant-all-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: -2px 0 8px;
}

.consultant-all-controls select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  padding: 4px 8px;
}

.consultant-empty-state {
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 12px;
  border: 1px dashed color-mix(in srgb, var(--line) 65%, transparent);
  border-radius: 8px;
}

.consultant-overflow-toggle {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--swan-wing));
  color: var(--accent);
  opacity: 1;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.consultant-overflow-toggle:hover {
  background: color-mix(in srgb, var(--accent) 14%, var(--swan-wing));
}

.consultant-command-feed .consultant-overflow-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 30px;
  width: 100%;
  margin-top: 8px;
  box-sizing: border-box;
}

.consultant-footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.consultant-delete-tracker-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.consultant-delete-tracker-btn:hover {
  color: var(--status-danger);
  border-color: color-mix(in srgb, var(--status-danger) 50%, var(--line));
}

.consultant-delete-confirm-popover {
  width: 200px !important;
  max-width: calc(100vw - 48px) !important;
}

.consultant-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.consultant-section-card {
  --consultant-assignee-col-width: 160px;
  --consultant-due-col-width: 160px;
  --consultant-action-col-width: 96px;
  --consultant-row-min-height: 34px;
  --consultant-control-height: 40px;
  min-height: 250px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.consultant-section-card h3 {
  margin: 0 0 10px;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  color: var(--shellstone);
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  padding: 2px 0 8px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 65%, transparent);
}

.consultant-demo-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consultant-demo-list.bullets {
  list-style: disc;
  padding-left: 20px;
  display: block;
}

.consultant-demo-list.bullets li {
  display: list-item;
  padding: 0;
  border: 0;
  background: transparent;
  margin: 0 0 6px;
}

.consultant-section-body {
  --consultant-assignee-col-width: 160px;
  --consultant-due-col-width: 160px;
  --consultant-action-col-width: 96px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.consultant-rows .consultant-assignee-title,
.consultant-rows .consultant-due-title {
  text-align: center;
  display: flex;
  justify-content: center;
  padding-left: 0;
  margin-top: -30px;
  margin-bottom: 8px;
}

.consultant-rows .consultant-assignee-title {
  align-self: flex-end;
  width: var(--consultant-assignee-col-width);
  margin-right: calc(var(--consultant-due-col-width) + var(--consultant-action-col-width) + 16px);
}

.consultant-rows .consultant-due-title {
  align-self: flex-end;
  width: var(--consultant-due-col-width);
  margin-right: calc(var(--consultant-action-col-width) + 8px);
}

.consultant-row-pair {
  display: grid;
  grid-template-columns: 1fr var(--consultant-assignee-col-width) var(--consultant-due-col-width) var(--consultant-action-col-width);
  gap: 8px;
  align-items: start;
  position: relative;
  min-height: var(--consultant-row-min-height);
  padding-bottom: 4px;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.consultant-row-pair:hover {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}

.consultant-row-drag-over {
  background: color-mix(in srgb, var(--accent) 14%, transparent) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.consultant-attachment-thumb .muted {
  display: none !important;
}

.consultant-preview-image-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.consultant-preview-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}

.consultant-preview-image-wrap:hover .consultant-preview-delete {
  opacity: 1;
  pointer-events: auto;
}

.consultant-preview-delete:hover,
.consultant-preview-delete:focus-visible {
  color: #b84343;
  border-color: color-mix(in srgb, #b84343 55%, var(--line));
  background: color-mix(in srgb, #b84343 12%, var(--panel));
}

.consultant-markup-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 90%, white 10%);
}

.consultant-markup-toolbar-vertical {
  flex-direction: column;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  width: 36px;
}

.consultant-markup-toolbar-vertical .consultant-markup-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.consultant-markup-tool {
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.consultant-markup-tool.active {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.consultant-markup-canvas {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: crosshair;
  background: #fff;
}

.consultant-markup-control-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, white 8%);
}

.consultant-markup-control-label {
  font-size: 12px;
  color: var(--muted);
}

.consultant-markup-color-chip {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0 !important;
  cursor: pointer;
}

.consultant-markup-color-input-hidden {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.consultant-markup-color-chip:focus,
.consultant-markup-color-chip:focus-visible,
.consultant-markup-range-input:focus,
.consultant-markup-range-input:focus-visible {
  outline: none;
  box-shadow: none;
}

.consultant-markup-range-input {
  width: 88px;
}

.consultant-markup-percent-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.consultant-markup-percent-input {
  width: 64px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 6px;
  background: var(--panel);
  color: var(--text);
}

.consultant-markup-percent-sign {
  font-size: 12px;
  color: var(--muted);
}

.consultant-preview-popover {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.consultant-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.consultant-preview-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  padding-left: 44px;
}

.consultant-preview-controls-left,
.consultant-preview-controls-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.consultant-preview-body {
  margin-bottom: 10px;
}

.consultant-markup-tool {
  color: var(--text);
}

.consultant-markup-tool:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.consultant-row-header:hover {
  background: transparent;
}

.consultant-row-readonly {
  align-items: center;
}

.consultant-row-selected,
.consultant-row-active {
  box-shadow: inset 2px 0 0 #111;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  animation: consultantRowSelectPulse 0.2s ease;
}

.consultant-row-pair:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, #2f80ed 45%);
  outline-offset: 1px;
  border-radius: 8px;
}

.consultant-row-active:focus-visible {
  outline-color: transparent;
}

@keyframes consultantRowSelectPulse {
  0% {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
  }
  100% {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
  }
}

.consultant-row-from-summary::before {
  content: 'Opened from summary';
  position: absolute;
  right: 8px;
  top: -14px;
  font-size: 10px;
  color: color-mix(in srgb, var(--text) 64%, transparent);
}

.consultant-row-readonly .consultant-assignee-cell,
.consultant-row-readonly .consultant-due-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 0;
  height: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

.consultant-row-readonly .consultant-inline-assignee-readonly,
.consultant-row-readonly .consultant-inline-date-readonly {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.consultant-row-pair::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 1px;
  background: color-mix(in srgb, var(--line) 70%, transparent);
}

.consultant-row-jump-highlight {
  animation: consultantRowJumpFlash 1.4s ease;
}

@keyframes consultantRowJumpFlash {
  0% {
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
  }
  100% {
    background: transparent;
    box-shadow: inset 0 0 0 1px transparent;
  }
}

.consultant-row-actions {
  display: inline-flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  align-self: center;
  justify-self: end;
  place-self: center end;
  gap: 6px;
  padding: 2px 4px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--line) 24%, transparent);
}

.consultant-item-cell {
  min-height: var(--consultant-row-min-height);
}

.consultant-select-btn {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1;
  box-shadow: none;
}

.consultant-select-btn.active {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.consultant-select-btn:focus,
.consultant-select-btn:focus-visible,
.consultant-select-btn:focus-within {
  outline: none;
  box-shadow: none;
}

.consultant-item-cell-editable {
  display: flex;
  align-items: center;
}

.consultant-inline-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.1;
  padding: 0;
}

.consultant-assignee-cell {
  min-height: var(--consultant-row-min-height);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.consultant-inline-assignee {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  text-align: center;
  text-align-last: center;
  line-height: 1.1;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.consultant-inline-date {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  text-align: center;
  text-align-last: center;
  line-height: 1.1;
  padding: 0;
}

.consultant-inline-date::-webkit-datetime-edit,
.consultant-inline-date::-webkit-datetime-edit-fields-wrapper,
.consultant-inline-date::-webkit-datetime-edit-text,
.consultant-inline-date::-webkit-datetime-edit-month-field,
.consultant-inline-date::-webkit-datetime-edit-day-field,
.consultant-inline-date::-webkit-datetime-edit-year-field,
.consultant-inline-date::-webkit-date-and-time-value {
  text-align: center;
}

.consultant-inline-date::-webkit-datetime-edit,
.consultant-inline-date::-webkit-date-and-time-value {
  width: 100%;
  padding: 0;
}

.consultant-inline-input:focus,
.consultant-inline-assignee:focus,
.consultant-inline-date:focus {
  outline: none;
}

.consultant-due-cell {
  padding-left: 0;
  color: #112250;
  font-size: 0.85rem;
  min-height: var(--consultant-row-min-height);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.consultant-due-cell.is-empty {
  text-align: center;
  padding-left: 0;
}

.consultant-edit-btn {
  border: 1px solid transparent;
  background: transparent;
  color: color-mix(in srgb, var(--text) 52%, #6b7ea8);
  cursor: pointer;
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.consultant-edit-btn:hover {
  background: color-mix(in srgb, var(--line) 30%, transparent);
  color: color-mix(in srgb, var(--text) 78%, #405b8d);
  border-color: color-mix(in srgb, var(--line) 58%, transparent);
}

.consultant-edit-btn:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, #4a7bd8);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}

.consultant-edit-btn:active {
  transform: translateY(1px);
}

.consultant-action-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.consultant-inline-attachment-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.consultant-inline-attachment-trigger {
  position: relative;
  cursor: pointer;
}

.consultant-attachment-hover-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--text) 16%, transparent);
  z-index: 20;
  min-width: 116px;
}

.consultant-attachment-hover-title {
  width: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--text) 72%, transparent);
}

.consultant-attachment-hover-thumb {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  width: 34px;
  height: 34px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.consultant-attachment-hover-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.consultant-edit-btn-delete {
  color: color-mix(in srgb, #7d3030 48%, var(--text));
}

.consultant-edit-btn-delete:hover {
  background: color-mix(in srgb, #d24f4f 16%, transparent);
  color: #b43a3a;
  border-color: color-mix(in srgb, #d24f4f 30%, transparent);
}

.consultant-review-delete-btn {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #b84343 !important;
  -webkit-text-fill-color: #b84343 !important;
  appearance: none;
  -webkit-appearance: none;
  padding: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  font-size: 1rem;
  line-height: 1;
}

.consultant-review-delete-btn:hover,
.consultant-review-delete-btn:focus,
.consultant-review-delete-btn:focus-visible {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #b84343 !important;
  -webkit-text-fill-color: #b84343 !important;
}

.consultant-assignee-title,
.consultant-due-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #112250;
  margin-bottom: 2px;
}

.consultant-next-deliverable {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.consultant-next-deliverable p {
  margin: 8px 0 0;
}

.project-standards-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-standards-input-area {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-standards-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--royal-blue);
  padding: 14px;
}

.project-standards-card h3 {
  margin: 0 0 8px;
}

.project-standards-card p {
  margin: 0;
}

.project-standards-table-card {
  padding: 10px 12px;
  background: var(--swan-wing);
  border-radius: 10px;
}

.project-standards-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.project-standards-file-input,
.project-standards-add-col-input {
  min-width: 220px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f1efeb;
  color: var(--text);
  padding: 0 10px;
}

.project-standards-add-col-btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--quicksand);
  color: #fff;
  height: 38px;
  padding: 0 14px;
  font-weight: 600;
}

.project-standards-entry-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.project-standards-entry-cell {
  min-width: 160px;
  flex: 1 1 0;
}

.project-standards-entry-cell.is-100 {
  min-width: 90px;
  max-width: 90px;
  flex: 0 0 90px;
}

.project-standards-entry-cell.is-25 {
  min-width: 25px;
  max-width: 25px;
  flex: 0 0 25px;
}

.project-standards-table-wrap {
  margin-top: 8px;
  border-top: 0;
  overflow: auto;
  background: var(--swan-wing);
}

.project-standards-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
  background: var(--swan-wing);
}

.project-standards-table th,
.project-standards-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
  font-size: 0.78rem;
  color: var(--text);
}

.project-standards-table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent;
  text-align: center;
}

.project-standards-table th.project-standards-col-25 {
  height: 96px;
}

.project-standards-cell-input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d1d1d1;
  border-radius: 10px;
  background: var(--royal-blue);
  color: var(--text);
  font-size: 0.78rem;
  padding: 7px 10px;
}

.project-standards-draft-input {
  background: var(--royal-blue);
}

.project-standards-col-100 {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
}

.project-standards-col-25 {
  width: 25px;
  min-width: 25px;
  max-width: 25px;
  padding: 4px 2px !important;
  text-align: left !important;
}

.project-standards-col-100 .project-standards-cell-input,
.project-standards-entry-cell.is-100 .project-standards-cell-input {
  min-width: 90px;
}

.project-standards-col-25 .project-standards-cell-input,
.project-standards-entry-cell.is-25 .project-standards-cell-input {
  min-width: 25px;
  width: 25px;
  padding: 0;
  text-align: center;
}

.project-standards-rotated-label {
  display: block;
  width: 96px;
  text-align: left;
  transform: rotate(-90deg);
  transform-origin: left top;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1;
}

.project-standards-marker-input {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  text-align: center;
}

.project-standards-marker-input.is-filled {
  color: var(--quicksand);
  font-weight: 700;
}

.project-standards-table td .project-standards-cell-input {
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.project-standards-table td .project-standards-cell-input:focus {
  outline: none;
  box-shadow: none;
}

.consultant-entry-row {
  margin-top: 0;
  padding-top: 2px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 1fr var(--consultant-assignee-col-width) var(--consultant-due-col-width) var(--consultant-action-col-width);
  align-items: center;
  gap: 8px;
}

.consultant-entry-line {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.consultant-entry-assignee {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.consultant-entry-date {
  grid-column: 3;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.consultant-entry-submit {
  grid-column: 4;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  color: #112250;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  width: var(--consultant-action-col-width);
  min-width: var(--consultant-action-col-width);
  max-width: var(--consultant-action-col-width);
  height: 40px;
  border-radius: 10px;
  justify-self: end;
}

.meeting-top-row {
  display: grid;
  grid-template-columns: minmax(0, 58%) auto;
  gap: 16px;
  align-items: start;
}

.meeting-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.meeting-meta-with-logo {
  position: relative;
  padding-top: 132px;
}

.meeting-meta-logo-wrap {
  position: absolute;
  top: 0;
  left: 0;
  height: 128px;
  display: flex;
  align-items: flex-start;
}

.meeting-meta-logo {
  height: 112px;
  width: auto;
  object-fit: contain;
}

.meeting-meta-with-logo .meeting-meta-logo-wrap + div {
  margin-top: -24px;
}

.meeting-meta-inline-input {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.meeting-meta-inline-input::placeholder {
  color: var(--line);
  opacity: 1;
}

.meeting-meta-inline-input:focus {
  outline: 1px dashed var(--line);
  outline-offset: 2px;
}

.meeting-block {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}

.meeting-attendees-block {
  width: 420px;
  max-width: 100%;
  margin-left: auto;
  margin-top: 0;
}

.meeting-block h3 {
  margin: 0 0 8px;
  color: var(--text);
}

.meeting-attendees-header,
.meeting-attendees-row,
.meeting-action-header,
.meeting-action-row {
  display: grid;
  gap: 10px;
  align-items: center;
}

.meeting-attendees-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.meeting-attendees-add-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: #112250;
  padding: 2px 8px;
  font-weight: 400;
}

.meeting-attendees-header,
.meeting-attendees-row {
  grid-template-columns: 1fr 220px 28px;
}

.meeting-action-header,
.meeting-action-row {
  grid-template-columns: 20px 130px 1fr 120px 130px 130px;
}

.meeting-attendees-header,
.meeting-action-header {
  font-size: var(--fs-table);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 6px;
}

.meeting-action-header {
  font-size: 14px;
}

.meeting-action-row,
.meeting-action-row input,
.meeting-action-row select,
.meeting-action-row textarea,
.meeting-action-row button {
  font-size: 12px;
}

.meeting-attendees-header > span {
  font-size: 10px;
}

.meeting-attendees-row,
.meeting-action-row {
  border-top: 1px solid var(--line);
  padding: 8px 0;
  font-size: var(--fs-table);
}

.meeting-attendees-row,
.meeting-attendees-row .meeting-inline-edit {
  font-family: var(--font-ui) !important;
}

.meeting-attendees-block {
  border-top: 0;
}

.meeting-attendee-name-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meeting-action-row input,
.meeting-action-row select {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
}

.meeting-action-row button,
.meeting-subitem-add-btn {
  border: 0;
  box-shadow: none;
  outline: none;
}

.meeting-date-input.has-value::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 0;
  margin: 0;
  pointer-events: none;
}

.meeting-date-input.has-value {
  padding-right: 0;
  cursor: pointer;
}

.meeting-action-header > :nth-child(2),
.meeting-action-header > :nth-child(4),
.meeting-action-header > :nth-child(5),
.meeting-action-header > :nth-child(6),
.meeting-action-row > :nth-child(2),
.meeting-action-row > :nth-child(4),
.meeting-action-row > :nth-child(5),
.meeting-action-row > :nth-child(6) {
  text-align: center;
  justify-self: center;
}

.meeting-action-topic-row {
  font-weight: 700;
  background: rgba(217, 203, 194, 0.2);
}

.meeting-topic-row-wrap {
  position: relative;
}

.meeting-topic-row-wrap .meeting-action-topic-row {
  padding-left: 0;
}

.meeting-topic-toggle-outside {
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0;
  width: 14px;
  line-height: 1;
}

.meeting-action-sub-row {
  padding-left: 10px;
}

.meeting-action-sub-closed {
  opacity: 0.5;
}

.meeting-action-sub-row > :nth-child(3) {
  padding-left: 20px;
}

.meeting-status-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meeting-row-action-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: #112250;
}

.meeting-subitem-add-btn {
  border: 1px solid var(--line);
  background: transparent;
  padding: 2px 8px;
  margin: 4px 0 8px 20px;
  font-weight: 400;
}

.meeting-add-btn,
.meeting-attendees-add-btn,
.meeting-subitem-add-btn {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

.meeting-add-topic-btn {
  margin-bottom: 10px;
}

.staffing-table-wrap {
  border-top: 0;
  margin-top: 8px;
  background: transparent;
}

.staffing-last-updated {
  margin-top: 8px;
  text-align: right;
  font-size: 12px;
}

.staffing-table-header,
.staffing-table-row {
  display: grid;
  grid-template-columns: 90px 90px 100px 100px 1fr 1fr 110px 100px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
}

.staffing-table-header {
  font-size: 0.4375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.staffing-table-header > * {
  justify-self: center;
  text-align: center;
}

.staffing-table-header button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 0;
}

.staffing-table-row {
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
  color: var(--text);
}

.staffing-table-row,
.staffing-table-row span,
.staffing-table-row input,
.staffing-table-row select,
.staffing-table-row button {
  font-size: 0.7rem !important;
  color: var(--text) !important;
}

.staffing-table-row input::placeholder {
  color: #112250 !important;
  opacity: 0.75;
}

.staffing-table-row > :nth-child(2),
.staffing-table-row > :nth-child(3),
.staffing-table-row > :nth-child(4),
.staffing-table-row > :nth-child(7) {
  justify-self: stretch;
  text-align: center;
}

.office-employees-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.office-employees-head-row .row button {
  background: var(--quicksand);
  color: var(--swan-wing);
  border: 0;
}

.office-employees-search-row {
  margin: 6px 0 8px;
  position: relative;
  width: min(420px, 100%);
}

.office-employees-search-row input {
  width: 100%;
  background: var(--royal-blue) !important;
}

.office-employees-table .staffing-table-header,
.office-employees-table .staffing-table-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.staffing-action-row {
  border-bottom: 0;
  margin-bottom: 8px;
  background: transparent !important;
}

.staffing-action-row,
.staffing-action-row input,
.staffing-action-row select,
.staffing-action-row button {
  color: var(--text) !important;
}

.staffing-action-row input::placeholder {
  color: var(--text-soft) !important;
}

.staffing-enter-btn {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--accent);
  border-color: var(--line);
}

.staffing-action-row .staffing-enter-btn {
  color: var(--swan-wing) !important;
}

.status-chip,
.staffing-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 500;
}

.status-chip.success,
.staffing-status-pill.status-complete {
  background: var(--status-success-bg);
  color: var(--status-success-fg);
  border-color: color-mix(in srgb, var(--status-success-fg) 30%, var(--status-success-bg));
}

.status-chip.warning,
.staffing-status-pill.status-in-progress {
  background: var(--status-warning-bg);
  color: var(--status-warning-fg);
  border-color: color-mix(in srgb, var(--status-warning-fg) 30%, var(--status-warning-bg));
}

.status-chip.danger,
.staffing-status-pill.status-on-hold {
  background: var(--status-danger-bg);
  color: var(--status-danger-fg);
  border-color: color-mix(in srgb, var(--status-danger-fg) 30%, var(--status-danger-bg));
}

.status-chip.info {
  background: var(--status-info-bg);
  color: var(--status-info-fg);
  border-color: color-mix(in srgb, var(--status-info-fg) 30%, var(--status-info-bg));
}

.capacity-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 35%, #fff);
  overflow: hidden;
}

.capacity-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--status-success-fg);
}

.capacity-bar > span[data-level='warning'] { background: var(--status-warning-fg); }
.capacity-bar > span[data-level='danger'] { background: var(--status-danger-fg); }
.capacity-bar > span[data-level='info'] { background: var(--status-info-fg); }

.staffing-row-complete {
  opacity: 0.5;
  text-decoration: line-through;
}

.staffing-row-complete > * {
  text-decoration: line-through;
}

.staffing-row-edit-btn {
  border: 0;
  background: transparent;
  color: #112250;
  cursor: pointer;
  padding: 0;
  width: 32px;
  justify-self: center;
}

.staffing-row-actions {
  display: inline-flex;
  gap: 8px;
  justify-self: center;
}

.staffing-popup-wide {
  flex: 0 0 100%;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.staffing-edit-popover {
  width: min(710px, calc(100vw - 40px));
}

.staffing-status-select,
.staffing-priority-select,
.staffing-text-input,
.staffing-assignee-select {
  width: 100%;
  min-width: 0;
  background: transparent;
  box-sizing: border-box;
}

.staffing-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.staffing-field-group label {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.2;
}

.staffing-assignee-select {
  background: #fff;
}

.staffing-date-icon {
  width: calc(100% - 5px);
  height: 34px;
  min-width: 0;
  justify-self: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cpath d='M8 2v4M16 2v4M3 9h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  color: var(--text-soft);
  font-size: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
}

.staffing-date-icon::-webkit-datetime-edit,
.staffing-date-icon::-webkit-clear-button,
.staffing-date-icon::-webkit-inner-spin-button {
  display: none;
}

.staffing-date-icon.has-value {
  background-image: none;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  font-size: 0.68rem;
  text-align: center;
  padding: 0 6px;
}

.staffing-date-icon.has-value::-webkit-datetime-edit {
  display: inline-block;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

.staffing-date-icon::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.meeting-attendees-row.absent {
  opacity: 0.25;
}

.meeting-inline-edit {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.meeting-presence-toggle {
  border: 0;
  background: transparent;
  color: #112250;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
  justify-self: end;
  transform: translateX(-30px);
}

.meeting-attendees-header > :last-child {
  transform: translateX(-30px);
}

.deadline-list-title {
  color: #112250;
}

.calendar-add-btn {
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 2px;
  padding: 10px 16px;
}

.calendar-mode-row,
.calendar-nav-row {
  gap: 6px;
}

.calendar-mode-row button,
.calendar-nav-row button {
  border-radius: 4px;
  border: 1px solid #e4e4e4;
  background: #fff;
  color: #222;
  box-shadow: none;
}

.calendar-mode-row button.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.calendar-grid-month,
.calendar-grid-year {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.calendar-grid-month {
  border-radius: 10px;
}
.calendar-grid-month {
  padding: 10px;
  box-shadow: inset 0 1px 3px color-mix(in srgb, var(--sapphire) 22%, transparent);
}

.calendar-year-legend-btn {
  background: transparent;
  border: 0;
  color: var(--text-soft);
  border-radius: 999px;
  width: 30px !important;
  height: 30px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.calendar-year-legend-btn-icon {
  width: 30px !important;
  height: 30px !important;
  stroke: currentColor;
  stroke-width: 0.5;
  vector-effect: non-scaling-stroke;
}

.calendar-year-legend {
  position: absolute;
  right: 36px;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--swan-wing);
  z-index: 3;
  min-width: 250px;
  width: max-content;
  font-size: 12px !important;
  line-height: 1.2;
  color: var(--text-soft);
}

.calendar-year-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px !important;
}

.calendar-year-legend-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 0;
  color: transparent;
}

.calendar-year-legend-today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calendar-year-legend .deadline-ring.calendar-year-legend-icon {
  border-width: 0;
}

.calendar-year-legend .deadline-ring.calendar-year-legend-icon.status-overdue {
  background: #cc6f6f;
}

.calendar-year-legend .deadline-ring.calendar-year-legend-icon.status-on-track {
  background: #d6c06a;
}

.calendar-year-legend .deadline-ring.calendar-year-legend-icon.status-completed {
  background: #6fa26f;
}

.calendar-year-legend .deadline-ring.calendar-year-legend-icon.status-not-selected {
  background: var(--text-soft);
}

.calendar-list-guide-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
}

.calendar-list-guide-card {
  position: fixed;
  inset: 0;
}

.calendar-list-guide-callout {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  max-width: 320px;
}

.calendar-list-guide-label {
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}

.calendar-list-guide-arrow {
  position: relative;
  width: 28px;
  height: 1px;
  background: #fff;
  flex: 0 0 28px;
}

.calendar-list-guide-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #fff;
}

.calendar-list-guide-callout.left-point .calendar-list-guide-arrow::after {
  right: auto;
  left: -1px;
  border-left: 0;
  border-right: 6px solid #fff;
}

.calendar-list-guide-callout.up-point {
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.calendar-list-guide-callout.up-point .calendar-list-guide-arrow {
  width: 1px;
  height: 24px;
  background: #fff;
  flex: 0 0 24px;
}

.calendar-list-guide-callout.up-point .calendar-list-guide-arrow::after {
  right: 50%;
  top: -1px;
  transform: translateX(50%);
  border-top: 0;
  border-bottom: 6px solid #fff;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.calendar-list-guide-callout.nav { top: 50px; left: 315px; }
.calendar-list-guide-callout.search { top: 107px; left: 360px; }
.calendar-list-guide-callout.filters { top: 154px; left: 1048px; }
.calendar-list-guide-callout.date { top: 198px; left: 435px; }
.calendar-list-guide-callout.title { top: 198px; left: 605px; }
.calendar-list-guide-callout.description { top: 210px; left: 1038px; }
.calendar-list-guide-callout.notes { top: 276px; left: 575px; }
.calendar-list-guide-callout.status { top: 223px; left: 540px; }

.year-month-card {
  background: var(--swan-wing);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 3px color-mix(in srgb, var(--sapphire) 22%, transparent);
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  min-height: 268px;
}

.year-month-title {
  display: block;
  min-height: 24px;
  margin: 0;
  text-align: left;
  white-space: nowrap;
}

.calendar-grid-year .year-month-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  min-height: 30px;
  padding: 4px 14px;
  font-size: 0.72rem;
  border: 1px solid color-mix(in srgb, var(--line) 90%, #fff);
  background: #f2f2f2;
  border-radius: 0 999px 999px 0;
  box-shadow: none;
  margin-left: -10px;
}


.year-month-grid {
  margin-top: 8px;
  align-self: stretch;
}

.year-month-grid > .small {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;
}

.year-day-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 !important;
}

.year-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.today-year .year-day-num {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1.5px solid var(--quicksand);
  background: var(--quicksand);
  color: var(--royal-blue);
}

.year-day-num.deadline-ring {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 2px solid var(--quicksand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.year-day-num.deadline-ring.status-not-selected {
  border-color: var(--text-soft);
}

.year-day-num.deadline-ring.status-overdue {
  border-color: #cc6f6f;
}

.year-day-num.deadline-ring.status-on-track {
  border-color: #d6c06a;
}

.year-day-num.deadline-ring.status-completed {
  border-color: #6fa26f;
}

.calendar-grid-month strong {
  color: #757575;
  font-size: 0.72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  display: block;
}

.calendar-grid-year .small {
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  display: block;
}


.calendar-cell {
  border-radius: 0;
  border: 0;
  border-top: 2px solid var(--sapphire);
  background: transparent;
  transition: background .15s ease;
  min-height: 96px !important;
  text-align: left;
  align-items: flex-start;
  position: relative;
}

.calendar-grid-month .calendar-cell {
  border-top: 1px solid color-mix(in srgb, var(--accent) 80%, transparent);
}

.week-view-shell {
  display: grid;
  gap: 10px;
}

.calendar-grid-week {
  box-shadow: inset 0 1px 3px color-mix(in srgb, var(--sapphire) 22%, transparent);
  border-radius: 10px;
  overflow: hidden;
}

.calendar-grid-week .calendar-cell {
  border-top: 0;
  border-left: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  min-height: 200px !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 45%, transparent);
}

.calendar-grid-week .calendar-cell.today-week {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.calendar-grid-week .calendar-cell.selected {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.calendar-grid-week .calendar-cell:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent) !important;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent),
    inset 0 1px 3px color-mix(in srgb, var(--sapphire) 18%, transparent);
}

.week-detail-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 10px;
}

.week-day-detail,
.week-mini-calendar {
  padding: 10px;
}

.week-day-detail,
.week-mini-calendar {
  box-shadow: inset 0 1px 3px color-mix(in srgb, var(--sapphire) 22%, transparent);
}

.week-day-detail h3,
.week-mini-calendar h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.week-day-detail-list {
  display: grid;
  gap: 6px;
}

.week-day-detail-list,
.week-day-detail-list * {
  font-size: 11px !important;
}

.week-detail-item {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  font-size: 11px !important;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.week-detail-main {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.week-detail-title {
  color: var(--text);
  font-weight: 700;
}

.week-detail-subline {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.week-detail-desc {
  color: var(--text);
}

.week-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.week-mini-grid > .small {
  width: 24px;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.week-mini-day {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0.65rem;
  color: var(--text-soft);
}

.week-mini-day.today-mini {
  border: 1.5px solid var(--accent) !important;
  background: var(--accent) !important;
  color: var(--royal-blue) !important;
}

.week-mini-day.selected {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--text);
}

.week-mini-day.today-mini.selected,
.week-mini-day.today-mini.deadline-ring,
.week-mini-day.today-mini.deadline-ring.status-not-selected,
.week-mini-day.today-mini.deadline-ring.status-overdue,
.week-mini-day.today-mini.deadline-ring.status-on-track,
.week-mini-day.today-mini.deadline-ring.status-completed {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: var(--royal-blue) !important;
}

.week-mini-day.deadline-ring {
  border: 2px solid var(--quicksand);
}

.week-mini-day.deadline-ring.status-not-selected {
  border-color: var(--text-soft);
}

.week-mini-day.deadline-ring.status-overdue {
  border-color: #cc6f6f;
}

.week-mini-day.deadline-ring.status-on-track {
  border-color: #d6c06a;
}

.week-mini-day.deadline-ring.status-completed {
  border-color: #6fa26f;
}

.calendar-grid-week .calendar-cell:nth-child(1) {
  border-left: 0;
}

.week-day-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  color: #757575;
  white-space: nowrap;
}

.week-day-short,
.week-day-rest {
  font-size: 0.72rem !important;
}

.week-day-rest {
  display: inline-block;
  max-width: 64px;
  opacity: 1;
  overflow: hidden;
}

.calendar-grid-week.week-entering.week-phase-0 .week-day-rest,
.calendar-grid-week.week-entering.week-phase-1 .week-day-rest {
  max-width: 0;
  opacity: 0;
}

.calendar-grid-week.week-entering.week-phase-2 .week-day-rest,
.calendar-grid-week.week-entering.week-phase-3 .week-day-rest,
.calendar-grid-week.week-entering.week-phase-4 .week-day-rest {
  max-width: 64px;
  opacity: 1;
  transition: max-width 220ms ease, opacity 180ms ease;
}

.week-day-divider {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 50%, transparent);
}

.week-deadline-list {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 58px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.week-deadline-list,
.week-deadline-list * {
  font-size: 11px !important;
}

.week-deadline-item {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  font-size: 10px !important;
  line-height: 1.25;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  gap: 6px;
}

.week-deadline-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.week-deadline-item:hover {
  text-decoration: underline;
}

.week-deadline-more {
  padding-left: 24px;
  margin-top: 6px;
  color: var(--accent);
  opacity: 0.85;
  font-style: italic;
}

.week-deadline-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: 0;
  flex: 0 0 18px;
  align-self: flex-start;
  background: var(--text-soft);
}

.week-deadline-dot.status-not-selected { background: var(--text-soft); }
.week-deadline-dot.status-overdue { background: #cc6f6f; }
.week-deadline-dot.status-on-track { background: #d6c06a; }
.week-deadline-dot.status-completed { background: #6fa26f; }

.week-detail-item .week-deadline-dot {
  align-self: center;
}

.week-deadline-title {
  color: var(--text);
  font-size: 11px !important;
}

.week-deadline-item.status-not-selected .week-deadline-title,
.week-detail-item.status-not-selected .week-detail-title {
  color: var(--text-soft);
}

.week-deadline-item.status-overdue .week-deadline-title,
.week-detail-item.status-overdue .week-detail-title {
  color: #cc6f6f;
}

.week-deadline-item.status-on-track .week-deadline-title,
.week-detail-item.status-on-track .week-detail-title {
  color: #d6c06a;
}

.week-deadline-item.status-completed .week-deadline-title,
.week-detail-item.status-completed .week-detail-title {
  color: #6fa26f;
}

.week-deadline-assignee {
  color: var(--text-soft);
  font-size: 11px !important;
}

.day-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--shellstone);
  font-weight: 600;
}

.calendar-grid-month .day-num,
.calendar-grid-week .day-num {
  top: 8px;
  right: 10px;
  left: auto;
  transform: none;
  font-weight: 400;
}

.calendar-grid-month .day-num {
  font-size: 0.72rem !important;
}

.calendar-grid-week .day-num {
  top: 38px;
  font-size: 0.72rem !important;
}

.day-deadline-count {
  position: absolute;
  top: calc(50% + 16px);
  left: 50%;
  transform: translateX(-50%);
  color: var(--shellstone);
  font-size: 0.78rem;
}

.calendar-grid-month .day-deadline-count,
.calendar-grid-week .day-deadline-count {
  top: 28px;
  right: 10px;
  left: auto;
  transform: none;
}

.calendar-grid-week .day-deadline-count {
  top: 62px;
  left: 10px;
  right: 10px;
  text-align: left;
}

.month-deadline-list {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100% - 36px);
  overflow: hidden;
}

.month-deadline-item {
  border: 1px solid #000;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  background: var(--swan-wing);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}

.month-deadline-item::before {
  content: none;
}

.month-deadline-item.status-not-selected {
  color: var(--text-soft);
}

.month-deadline-item.status-overdue {
  color: #cc6f6f;
}

.month-deadline-item.status-on-track {
  color: #d6c06a;
}

.month-deadline-item.status-completed {
  color: #6fa26f;
}

.month-deadline-item.month-deadline-count {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, var(--swan-wing));
  color: var(--accent);
  font-weight: 600;
}

.calendar-grid-month .calendar-cell:hover { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--sapphire); border-top-color: color-mix(in srgb, var(--accent) 15%, transparent); }
.calendar-cell:hover { background: #ffffff; color: var(--sapphire); border-top-color: #ffffff; }
.calendar-cell:hover .day-num,
.calendar-cell:hover .day-deadline-count { color: #ffffff; }

.calendar-grid-week .calendar-cell:hover .day-num {
  color: var(--shellstone) !important;
  font-weight: 700;
}

.year-day-cell:hover,
.year-day-cell:hover .year-day-num {
  color: var(--shellstone) !important;
}

.calendar-cell.today {
  background-color: color-mix(in srgb, var(--accent) 10%, transparent) !important;
}

.calendar-list .calendar-cell { width: 100%; min-height: 44px !important; border-top-width: 1px; }

.calendar-list-search-row {
  margin-top: 8px;
  margin-bottom: 8px;
  width: 100%;
  max-width: none;
}

.calendar-list-search-row input {
  width: 100%;
  background: transparent !important;
}

.calendar-filter-dropdown {
  position: relative;
  margin-right: 8px;
}

.calendar-filter-dropdown summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  background: var(--swan-wing);
}

.calendar-filter-dropdown[open] {
  position: absolute;
  right: 52px;
  top: 40px;
  z-index: 20;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  min-width: 180px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--text) 10%, transparent);
}

.calendar-filter-dropdown[open] summary {
  margin-bottom: 6px;
}

.calendar-filter-dropdown label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 4px 0;
}

.calendar-filter-dropdown-side {
  margin-right: 0;
}

.calendar-filter-dropdown-side summary {
  width: 100%;
}

.calendar-filter-dropdown-side[open] {
  position: static;
  right: auto;
  top: auto;
  margin-top: 8px;
  min-width: 0;
  box-shadow: none;
}

.calendar-filter-inline-list {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.calendar-filter-inline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
}

.calendar-filter-inline-item input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  border: 0;
  outline: 0;
  box-shadow: none;
}

.calendar-filter-inline-item input[type='checkbox']:focus,
.calendar-filter-inline-item input[type='checkbox']:focus-visible,
.calendar-filter-inline-item input[type='checkbox']:checked {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.calendar-panel .file-list {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
}

.calendar-panel .file-row {
  background: transparent;
  color: #112250;
  border-bottom-color: rgba(255,255,255,0.2);
}

.calendar-deliverable-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: start;
}

.calendar-source-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-source-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  border: 1px solid var(--line);
  background: #fff;
}

.calendar-source-chip.source-deliverables {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, #fff);
}

.calendar-source-chip.source-teamTasks {
  color: #4a72c8;
  border-color: color-mix(in srgb, #4a72c8 35%, var(--line));
  background: color-mix(in srgb, #4a72c8 10%, #fff);
}

.calendar-source-chip.source-myTasks {
  color: #8b5fbf;
  border-color: color-mix(in srgb, #8b5fbf 35%, var(--line));
  background: color-mix(in srgb, #8b5fbf 10%, #fff);
}

.calendar-source-chip.source-consultantTasks {
  color: #2f8f8b;
  border-color: color-mix(in srgb, #2f8f8b 35%, var(--line));
  background: color-mix(in srgb, #2f8f8b 10%, #fff);
}

.calendar-deliverable-list {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 8px;
  border: 0;
}

.calendar-left-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 6px;
}

.calendar-left-filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.calendar-left-filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--text) 12%, transparent);
}

.calendar-left-filter-btn.active {
  background: color-mix(in srgb, var(--quicksand) 10%, transparent);
  border-color: var(--line);
  color: var(--text-soft);
}

.calendar-deliverable-card {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  background: var(--swan-wing);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.calendar-deliverable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--text) 12%, transparent);
}

.calendar-deliverable-side-container {
  min-height: 220px;
  margin-top: 10px;
  background: transparent;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-side-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--swan-wing);
  overflow: hidden;
  padding: 8px 10px;
  box-shadow: inset 0 1px 3px color-mix(in srgb, var(--sapphire) 22%, transparent);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.calendar-side-section:hover {
  border-color: var(--line);
  background: var(--swan-wing);
}

.calendar-deliverable-side-container .file-row {
  font-size: 12px;
}

.calendar-side-section .file-row {
  border-bottom: 0;
  padding: 6px 0;
}

.calendar-key-section {
  display: grid;
  gap: 10px;
}

.calendar-key-group {
  display: grid;
  gap: 6px;
}

.calendar-key-title {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.calendar-key-heading strong {
  font-weight: 700 !important;
}

.calendar-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-status-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid var(--line);
  background: #fff;
}

.calendar-status-key.status-not-selected {
  color: var(--text-soft);
}

.calendar-status-key.status-overdue {
  color: #cc6f6f;
  border-color: color-mix(in srgb, #cc6f6f 35%, var(--line));
  background: color-mix(in srgb, #cc6f6f 10%, #fff);
}

.calendar-status-key.status-on-track {
  color: #d6c06a;
  border-color: color-mix(in srgb, #d6c06a 35%, var(--line));
  background: color-mix(in srgb, #d6c06a 10%, #fff);
}

.calendar-status-key.status-completed {
  color: #6fa26f;
  border-color: color-mix(in srgb, #6fa26f 35%, var(--line));
  background: color-mix(in srgb, #6fa26f 10%, #fff);
}

.calendar-deliverable-side-container strong {
  font-weight: 400;
}

.calendar-filter-heading strong {
  font-weight: 700;
}

.calendar-deliverable-status-label {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  margin-right: 4px;
}

.calendar-deliverable-notes-label {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.calendar-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-summary-icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.calendar-summary-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

.calendar-most-recent-title strong {
  font-weight: 700;
}

.calendar-overdue-text {
  color: #cc6f6f !important;
}

.calendar-overdue-text strong {
  color: #cc6f6f !important;
}

.calendar-overdue-text .calendar-summary-icon {
  color: #cc6f6f !important;
}

.calendar-summary-section {
  border-color: var(--line);
}

.calendar-overdue-section {
  border-color: #cc6f6f;
}

.calendar-overdue-section .file-row,
.calendar-overdue-section .file-row strong {
  color: var(--text) !important;
}

.overdue-item-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 10px;
  align-items: baseline;
}

.overdue-item-date {
  color: #cc6f6f !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.overdue-item-title {
  min-width: 0;
}

.calendar-deliverable-date-badge {
  width: 50px;
  min-width: 50px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 2px;
  line-height: 1;
  padding: 0;
  font-weight: 400;
  text-transform: uppercase;
  box-shadow: inset 0 1px 3px color-mix(in srgb, var(--accent) 28%, transparent);
}

.calendar-deliverable-date-badge.status-not-selected,
.calendar-deliverable-date-badge.status-overdue,
.calendar-deliverable-date-badge.status-on-track,
.calendar-deliverable-date-badge.status-completed {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.calendar-deliverable-date-badge span:first-child {
  font-size: 0.625rem;
  color: var(--accent) !important;
}

.calendar-deliverable-date-badge span:last-child {
  font-size: 1.25rem;
  color: var(--accent) !important;
}

.calendar-deliverable-content {
  color: var(--text);
  display: grid;
  gap: 2px;
  padding: 2px 10px;
}

.calendar-deliverable-item-row {
  min-height: 20px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.calendar-deliverable-item-row + .calendar-deliverable-item-row {
  border-top: 1px solid var(--line);
  padding-top: 1px;
}

.calendar-deliverable-content .day-item-assign {
  font-weight: 400;
  font-size: calc(var(--fs-table) - 1px) !important;
}

.calendar-deliverable-item-header-row {
  display: flex;
  align-items: flex-start !important;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
}

.calendar-deliverable-item-header {
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.calendar-deliverable-item-header strong {
  display: inline-block;
  font-size: 14px;
  margin: 0;
  line-height: 1.1;
}

.calendar-deliverable-item-header strong.status-not-selected {
  color: var(--text-soft);
}

.calendar-deliverable-item-header strong.status-overdue {
  color: #cc6f6f;
}

.calendar-deliverable-item-header strong.status-on-track {
  color: #d6c06a;
}

.calendar-deliverable-item-header strong.status-completed {
  color: #6fa26f;
}

.calendar-deliverable-top-assign {
  color: var(--text-soft);
  font-weight: 400;
  font-size: 12px;
}

.calendar-deliverable-description {
  font-size: 12px;
  font-family: inherit;
}

.calendar-deliverable-notes {
  padding-left: 20px;
  font-size: 12px;
  font-family: inherit;
}

.calendar-deliverable-meta {
  padding-left: 20px;
  font-size: 12px;
  font-family: inherit;
}

.calendar-deliverable-status-text {
  font-size: inherit;
  font-family: inherit;
  font-weight: 400;
}

.calendar-deliverable-status {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 24px 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  min-width: 98px;
  text-align: center;
  text-align-last: center;
  align-self: center !important;
  margin: 0 !important;
  cursor: pointer;
}

.calendar-edit-status {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  padding-right: 28px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23757575' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 12px 12px !important;
}

.calendar-edit-status {
  width: 100%;
}

.calendar-deliverable-status.status-not-selected {
  background: var(--swan-wing);
}

.calendar-deliverable-status.status-overdue {
  background: color-mix(in srgb, #cc6f6f 25%, var(--swan-wing));
}

.calendar-deliverable-status.status-on-track {
  background: color-mix(in srgb, #d6c06a 25%, var(--swan-wing));
}

.calendar-deliverable-status.status-completed {
  background: color-mix(in srgb, #6fa26f 25%, var(--swan-wing));
}

.calendar-upload-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-top: 150px !important;
}

.calendar-upload-panel input[type='file'] {
  width: 100%;
  max-width: 100%;
}

.calendar-modal-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--royal-blue) 45%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.calendar-popover {
  width: min(980px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--swan-wing);
}

.calendar-popover.staffing-edit-popover {
  width: min(710px, calc(100vw - 40px)) !important;
}

.directory-contact-popover {
  width: min(720px, calc(100vw - 40px));
  padding-right: 20px;
}

.calendar-add-item-popover {
  width: min(460px, calc(100vw - 40px));
  padding: 10px;
}

.calendar-add-item-popover .add-item-row {
  margin-top: 6px;
}

.calendar-add-item-popover .add-item-row-primary,
.calendar-add-item-popover .add-item-row-secondary {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 8px;
}

.calendar-add-item-popover .calendar-edit-row-full {
  grid-template-columns: 1fr !important;
}

.calendar-add-item-popover .add-item-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.calendar-add-item-popover input.required-missing,
.calendar-add-item-popover input.required-missing::placeholder {
  color: var(--accent) !important;
  opacity: 1;
}

.calendar-add-item-popover input.required-missing {
  border-color: var(--accent) !important;
}

.calendar-primary-btn,
.calendar-add-item-popover .add-item-row-actions .calendar-primary-btn {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--swan-wing) !important;
}

.calendar-add-item-popover .add-item-row-actions button {
  width: auto !important;
  min-width: 92px;
}

.directory-contact-popover .row input {
  flex: 1;
  min-width: 0;
}

.directory-contact-popover .directory-popup-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.directory-contact-popover .directory-popup-field > span {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.2;
}

.directory-contact-popover .row select {
  min-width: 92px;
}

.directory-contact-popover .directory-email-input {
  font-size: 12px;
}

.directory-contact-popover .row.directory-phone-row {
  display: grid;
  grid-template-columns: calc((100% - 16px) * 0.4) calc((100% - 16px) * 0.1) calc((100% - 16px) * 0.5);
  gap: 8px;
}

.directory-contact-popover .row input.required-missing,
.directory-contact-popover .row input.required-missing::placeholder {
  color: var(--accent) !important;
  opacity: 1;
}

.directory-contact-popover .directory-popover-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.directory-primary-btn {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--swan-wing) !important;
}

.calendar-popover h3 {
  margin: 0 0 8px;
  color: var(--text);
}

.calendar-popover input,
.calendar-popover select,
.calendar-popover textarea {
  color: var(--text-soft);
}

.calendar-popover input:not(:placeholder-shown),
.calendar-popover textarea:not(:placeholder-shown),
.calendar-popover select {
  color: var(--text);
}

.calendar-popover input::placeholder,
.calendar-popover textarea::placeholder {
  color: var(--text-soft);
}

.calendar-popover option {
  color: var(--text-soft);
}

.office-contact-card {
  width: min(820px, calc(100vw - 40px));
  background: var(--swan-wing) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  transform-origin: center center;
  margin: 0;
}

.office-contact-card-head {
  position: absolute;
  top: 8px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  z-index: 1;
}

.office-contact-card-x {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.office-contact-card-main {
  display: flex;
  gap: 16px;
  padding: 20px 18px 8px;
  align-items: center;
}

.office-contact-avatar {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  flex: 0 0 86px;
}

.office-contact-identity {
  flex: 1;
  min-width: 0;
}

.office-contact-identity input {
  display: block;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 0;
}

.office-contact-card .required-missing,
.office-contact-card .required-missing::placeholder {
  color: var(--accent) !important;
  opacity: 1 !important;
}

.office-contact-name {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
}

.office-contact-position {
  font-size: 20px;
  color: var(--text-soft) !important;
  margin-top: 2px;
}

.office-contact-meta {
  padding: 6px 18px 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.office-contact-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--text);
}

.office-contact-meta-row > strong {
  font-size: 14px;
}

.office-contact-meta-row .office-contact-icon {
  margin-right: 0;
}

.office-contact-meta-row input,
.office-contact-meta-row select {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  flex: 1;
}

.office-contact-meta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.office-contact-meta-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.office-contact-meta-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.office-contact-meta-right label {
  font-weight: 600;
  font-size: 14px !important;
  line-height: 1.2;
  color: var(--text);
}

.office-contact-meta-right textarea {
  flex: 1;
  min-height: 112px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  padding: 4px 0;
  resize: vertical;
}

.office-contact-meta-row-half {
  width: 100%;
  max-width: 100%;
}

.office-contact-meta-row-half input,
.office-contact-meta-row-half select {
  flex: 1;
  max-width: none;
}

.office-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 12px 18px 8px;
}

.office-contact-actions {
  border-top: 1px solid var(--line);
  padding: 10px 18px;
  margin-top: 4px;
}

.office-contact-col {
  padding-right: 14px;
}

.office-contact-col-right {
  border-left: 1px solid var(--line);
  padding-left: 14px;
  padding-right: 0;
}

.office-contact-col label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.office-contact-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.office-contact-icon {
  display: inline-block;
  width: 14px;
  text-align: center;
  margin-right: 6px;
  color: var(--quicksand) !important;
  font-size: 13px;
  line-height: 1;
}

.office-contact-meta-hint {
  font-size: 12px;
  color: var(--text-soft);
  margin: -2px 0 2px 0;
}

.office-contact-col input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 3px 0;
}

.office-contact-card input::placeholder,
.office-contact-card select::placeholder {
  color: var(--line);
  opacity: 1;
}

.office-contact-field input {
  flex: 1;
}

.consultant-edit-popover {
  width: min(980px, calc(100vw - 40px));
}

.meeting-attendee-popover {
  width: min(470px, calc(100vw - 40px));
}

.meeting-directory-select {
  width: 100%;
  flex: 1;
}

.consultant-edit-row {
  width: 100%;
}

.consultant-edit-item {
  flex: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board {
    grid-template-columns: 1fr;
  }

  .composer,
  .filters,
  .vault-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wrap {
    min-height: 100dvh;
    padding: 8px;
  }

  .mission-title {
    margin: 0 0 8px;
    font-size: 2.1rem;
    color: var(--text);
    text-align: center;
  }

  .header-brand-stack {
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .header-brand-stack span {
    width: 100%;
    text-align: center;
  }

  .header-logo {
    width: min(110px, 31vw);
    margin: 0 auto;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 1201;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--swan-wing);
    color: var(--text);
    font-size: 1.1rem;
    padding: 0;
  }

  .top-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 0;
    padding: 4px 4px 8px;
  }

  .top-header-logo-wrap {
    display: none;
  }

  .top-header-vertical-nav {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    order: 3;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow-x: auto;
  }

  .top-header-right-actions {
    position: static;
    right: auto;
    top: auto;
    order: 1;
    width: 100%;
    max-width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    align-items: center;
    gap: 6px;
  }

  .top-header-search {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .top-header-filter {
    min-width: 0;
    max-width: 110px;
  }

  .header-profile-meta {
    align-items: flex-start;
    margin-right: 0;
    min-width: 0;
  }

  .header-profile-meta strong,
  .header-profile-meta small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 72px;
  }

  .sidebar {
    position: fixed;
    left: 12px;
    bottom: 62px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: min(78vw, 320px);
    max-height: 60dvh;
    overflow-y: auto;
    white-space: normal;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--royal-blue) 98%, transparent);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--text) 20%, transparent);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 140ms ease, transform 140ms ease;
    min-height: 0;
  }

  .sidebar.mobile-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-item {
    width: 100%;
    margin-top: 0;
    padding: 8px 10px;
    min-height: 40px;
    font-size: 0.95rem;
    text-align: left;
  }

  .content {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 12px;
    min-height: calc(100dvh - 16px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .calendar-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .calendar-left-rail {
    flex-direction: row;
    justify-content: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    gap: 14px;
  }

  .rail-dot {
    min-width: 36px;
    min-height: 36px;
    padding: 4px;
  }

  .calendar-main {
    padding: 14px 10px;
  }

  .calendar-title {
    font-size: 1.5rem !important;
    text-align: center;
  }

  .dashboard-head h1,
  .dashboard-head .muted {
    text-align: center;
  }

  .day-view-layout {
    grid-template-columns: 1fr;
  }

  .day-mini-month {
    width: 100%;
    justify-self: stretch;
  }

  .directory-title {
    margin: 0 0 18px;
    font-size: 1.4rem;
  }

  .directory-type-container::after {
    display: none;
  }

  .directory-toolbar {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 10px;
    padding: 0 2px;
  }

  .directory-toolbar-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .directory-toolbar input {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }

  .directory-team-grid {
    width: 100% !important;
    margin: 8px 0 0 !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .directory-team-card {
    width: 100%;
    min-width: 0;
    padding: 8px 0;
  }

  .directory-team-card h3 {
    font-size: 0.82rem;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4px;
    padding-left: 0;
  }

  .directory-team-card .muted {
    text-align: center;
    padding-left: 0;
  }

  .directory-team-card .team-symbol-img {
    margin-left: 0;
    margin-right: 0;
  }

  .directory-team-header {
    grid-template-columns: 1fr;
  }

  .directory-team-right-headers {
    display: none;
  }

  .directory-contact-row {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }

  .directory-column-headers {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .directory-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .directory-contact-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    max-width: 44vw;
    width: auto !important;
    margin-left: 0;
    transform: none;
    gap: 6px;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: inline-flex !important;
  }

  .mobile-info-btn {
    width: 60px !important;
    height: 28px !important;
  }

  .directory-column-headers .directory-contact-actions {
    display: none;
    width: 100%;
  }

  .consultant-desktop-nav {
    display: none;
  }

  .consultant-mobile-nav {
    display: block;
  }

  .consultant-section-card {
    --consultant-assignee-col-width: 120px;
    --consultant-due-col-width: 120px;
    --consultant-action-col-width: 96px;
  }

  .consultant-entry-row {
    display: grid;
    grid-template-columns: 1fr var(--consultant-assignee-col-width) var(--consultant-due-col-width) var(--consultant-action-col-width);
    align-items: center;
    gap: 8px;
  }

  .consultant-entry-line {
    height: 40px;
  }

  .consultant-entry-assignee,
  .consultant-entry-date {
    width: 100% !important;
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background-color: var(--swan-wing);
    color: var(--text);
    font-size: 0.9rem;
    appearance: auto;
    -webkit-appearance: auto;
  }

  .consultant-entry-submit {
    width: var(--consultant-action-col-width);
    min-width: var(--consultant-action-col-width);
    max-width: var(--consultant-action-col-width);
    height: 40px;
    font-size: 1.05rem;
    border-radius: 8px;
    justify-self: end;
  }

  .consultant-row-pair {
    grid-template-columns: 1fr var(--consultant-assignee-col-width) var(--consultant-due-col-width) var(--consultant-action-col-width);
    gap: 8px;
  }

  .consultant-rows .consultant-assignee-title,
  .consultant-rows .consultant-due-title {
    width: var(--consultant-due-col-width);
    display: none;
  }

  .meeting-attendees-block {
    width: 100%;
  }

  .meeting-attendees-header,
  .meeting-attendees-row {
    grid-template-columns: 1fr 1fr 28px;
  }

  .meeting-action-header,
  .meeting-action-row {
    grid-template-columns: 1fr 84px 64px 74px;
    gap: 8px;
    font-size: 0.8rem;
  }

  .staffing-table-wrap {
    overflow-x: auto;
  }

  .staffing-table-header,
  .staffing-table-row {
    min-width: 980px;
  }

  .calendar-grid-year {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .calendar-popover,
  .calendar-add-item-popover,
  .directory-contact-popover,
  .meeting-attendee-popover,
  .consultant-edit-popover {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    border-radius: 12px;
    padding: 10px;
  }

  .calendar-popover .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .calendar-popover .row input,
  .calendar-popover .row select,
  .calendar-popover .row button,
  .calendar-popover .row a {
    width: 100%;
    min-width: 0;
  }

  .calendar-popover input[type='date'] {
    width: 100%;
    min-height: 40px;
    font-size: 16px;
    box-sizing: border-box;
  }

  .calendar-date-input {
    width: 100%;
    height: auto;
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--royal-blue);
    -webkit-appearance: none;
    appearance: none;
  }
}

@media (max-width: 980px) {
  .dashboard-kpis,
  .dashboard-grid,
  .dashboard-layout,
  .dashboard-overview-hero-body,
  .dashboard-phase-strip,
  .site-settings-typography-grid {
    grid-template-columns: 1fr;
  }

  .company-settings-actions {
    grid-column: 1;
  }

  /* Phone uses the same component color rules as desktop (no mobile-only color overrides). */

  /* Phone/tablet: make project overview progress tracker vertical and aligned with phase titles */
  .dashboard-phase-column {
    grid-template-columns: 28px 1fr;
    align-items: stretch;
    column-gap: 8px;
  }

  .dashboard-phase-progress {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
  }

  .dashboard-phase-strip {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dashboard-phase-progress-track {
    width: 6px;
    height: 100%;
    min-height: 196px;
    margin: 0;
  }

  .dashboard-phase-progress-fill {
    top: auto;
    bottom: 0;
    width: 100%;
    height: var(--progress, 0%);
  }

  .dashboard-phase-progress-dot {
    left: 50%;
    top: var(--stop, 0%);
    transform: translate(-50%, -50%);
  }

  .dashboard-phase-mobile-slider {
    display: block;
    writing-mode: vertical-lr;
    direction: rtl;
    width: 20px;
    height: 196px;
    accent-color: var(--quicksand);
  }
}

.public-wrap {
  min-height: 100vh;
  background: linear-gradient(160deg, #f9f9f9 0%, #f0ece6 42%, #f9f9f9 100%);
  color: #1f1f1f;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  border-bottom: 1px solid rgba(31, 31, 31, 0.12);
}

.landing-logo {
  width: 180px;
  max-width: 48vw;
  object-fit: contain;
}

.landing-login-btn,
.landing-cta-row button,
.login-card button {
  border: 0;
  border-radius: 10px;
  background: #c6a15b;
  color: #1f1f1f;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
}

.landing-main {
  padding: 38px 32px 52px;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-hero {
  max-width: 760px;
}

.landing-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: #6d6d6d;
}

.landing-hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.05;
}

.landing-hero p {
  font-size: 17px;
  line-height: 1.6;
  color: #3b3b3b;
}

.landing-cta-row {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.landing-cta-row span {
  color: #6d6d6d;
}

.landing-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-grid article {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(31, 31, 31, 0.1);
  border-radius: 12px;
  padding: 18px;
}

.landing-grid h3 {
  margin: 0 0 8px;
}

.login-split-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.login-brand-pane {
  background: linear-gradient(145deg, #f9f9f9 0%, #f0ece6 62%, #f9f9f9 100%);
  border-right: 1px solid rgba(31, 31, 31, 0.12);
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-brand-logo {
  width: min(320px, 72%);
  margin-bottom: 22px;
}

.login-brand-pane h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 0.96;
}

.login-brand-pane p {
  max-width: 560px;
  color: #4a4a4a;
  font-size: 18px;
}

.login-form-pane {
  background: #fcfcfc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.login-card {
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-card h2 {
  margin: 0;
}

.login-card p {
  margin: 0 0 8px;
  color: #6d6d6d;
}

.login-card label {
  display: grid;
  gap: 6px;
}

.login-card input {
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.login-error {
  background: #fff2f2;
  border: 1px solid #f0c6c6;
  color: #8d2f2f;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.login-back-link {
  background: transparent !important;
  border: 1px solid #b5b5b5 !important;
}

@media (max-width: 960px) {
  .login-split-wrap {
    grid-template-columns: 1fr;
  }

  .login-brand-pane {
    min-height: 44vh;
  }

  .landing-grid {
    grid-template-columns: 1fr;
  }
}

.top-header-right-actions {
  gap: 8px;
}

.login-remember-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.login-remember-row input[type='checkbox'] {
  width: 16px;
  height: 16px;
}

.login-card button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.header-profile-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.05;
  margin-right: 4px;
}

.header-profile-meta strong {
  font-size: 13px;
  color: var(--sapphire);
}

.header-profile-meta small {
  font-size: 11px;
  color: var(--text-soft);
}

.profile-access-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.65);
}

.profile-access-card strong {
  font-size: 14px;
}

.profile-access-card small {
  font-size: 12px;
  color: var(--text-soft);
}

.office-contact-project-row {
  align-items: center;
}

.office-contact-project-row > strong {
  font-size: 14px;
  line-height: 28px;
}

.office-contact-project-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.office-contact-project-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.office-contact-project-pill select,
.office-contact-project-row > select {
  width: auto;
  min-width: 130px;
  max-width: 180px;
}

.project-access-add-btn,
.project-access-remove-btn {
  border: none;
  outline: none;
  color: var(--quicksand);
  background: transparent;
  border-radius: 0;
  width: 20px;
  height: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 18px;
}

.project-access-add-btn:hover,
.project-access-remove-btn:hover {
  background: transparent;
  opacity: 0.75;
}

.office-contact-access-tier {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--line);
  padding: 6px 8px;
  width: auto;
  min-width: 0;
  max-width: max-content;
  flex: 0 0 auto;
}

.office-contact-access-tier:focus,
.office-contact-access-tier.has-value {
  color: var(--text);
}

.role-readonly-banner {
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-soft);
  background: color-mix(in srgb, var(--royal-blue) 92%, var(--line) 8%);
  font-size: 12px;
}

/* Keep read-only tabs navigable; only show banner for now.
   Granular edit locks are enforced in feature-level controls. */
.read-only-tab input,
.read-only-tab textarea {
  opacity: 0.85;
}

.role-hidden-action {
  display: none !important;
}

.profile-role-preview-row {
  display: grid;
  gap: 6px;
  margin: 8px 0 10px;
}

.profile-role-preview-row select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  background: transparent;
}

.office-contact-card-readonly input,
.office-contact-card-readonly select,
.office-contact-card-readonly textarea,
.office-contact-card-readonly .project-access-add-btn,
.office-contact-card-readonly .project-access-remove-btn {
  pointer-events: none;
  opacity: 0.72;
}

.office-contact-card-readonly .office-contact-actions .danger,
.office-contact-card-readonly .office-contact-actions button:first-child {
  display: none !important;
}

/* Force add-calendar popup action styling across responsive overrides */
.calendar-popover.calendar-add-item-popover .add-item-row.add-item-row-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

.calendar-popover.calendar-add-item-popover .add-item-row.add-item-row-actions button {
  width: auto !important;
  min-width: 92px !important;
}

.calendar-popover.calendar-add-item-popover .add-item-row.add-item-row-actions .calendar-primary-btn {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--swan-wing) !important;
}

@media (min-width: 769px) {
  .consultant-section-card {
    --consultant-action-col-width: 96px;
  }

  .consultant-entry-submit {
    width: var(--consultant-action-col-width);
    min-width: var(--consultant-action-col-width);
    max-width: var(--consultant-action-col-width);
  }
}

/* ---- UI polish sweep: modal consistency, spacing, and controls ---- */
.calendar-popover {
  border-radius: 12px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--text) 10%, transparent);
}

/* typography rhythm + density pass */
h1, h2, h3 {
  letter-spacing: 0.01em;
}

.calendar-title,
.directory-title,
.projects-title,
.team-org-title {
  line-height: 1.15;
}

.panel h3,
.dashboard-card h3,
.calendar-popover h3 {
  line-height: 1.2;
}

.muted.small,
.small {
  line-height: 1.35;
}

.file-row,
.staffing-table-row,
.meeting-attendees-row,
.meeting-action-row,
.directory-contact-row {
  min-height: 42px;
}

.directory-contact-main strong,
.projects-overview-name,
.team-org-card strong {
  line-height: 1.2;
}

.directory-contact-main .muted,
.projects-overview-principal,
.office-contact-position {
  line-height: 1.3;
}

.directory-contact-main .muted,
.directory-contact-main .muted.small,
.directory-role-text,
.directory-role-text span {
  font-size: 12px !important;
}

.calendar-popover h3 {
  margin: 0 0 10px;
  line-height: 1.2;
}

.calendar-popover input,
.calendar-popover select,
.calendar-popover textarea {
  min-height: 40px;
  background: var(--royal-blue);
}

.calendar-popover input:focus,
.calendar-popover select:focus,
.calendar-popover textarea:focus,
.calendar-popover button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 65%, transparent);
  outline-offset: 1px;
}

/* unify action rows at bottom-right for popovers */
.directory-popover-actions,
.calendar-add-item-popover .add-item-row-actions,
.consultant-edit-popover .row:last-child,
.staffing-edit-popover .row:last-child,
.meeting-attendee-popover .row:last-child,
.calendar-popover .office-contact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* primary action visual consistency */
.calendar-primary-btn,
.directory-primary-btn,
.site-settings-save-btn,
.modal-save-btn {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--swan-wing) !important;
}

.calendar-primary-btn:disabled,
.directory-primary-btn:disabled,
.site-settings-save-btn:disabled,
.modal-save-btn:disabled {
  background: color-mix(in srgb, var(--line) 70%, var(--swan-wing)) !important;
  border-color: color-mix(in srgb, var(--line) 80%, transparent) !important;
  color: var(--text-soft) !important;
  cursor: not-allowed;
  opacity: 0.85;
}

/* soften secondary action buttons in modals */
.calendar-popover .row button:not(.danger):not(.calendar-primary-btn):not(.directory-primary-btn):not(.site-settings-save-btn):not(.modal-save-btn) {
  background: var(--swan-wing);
}

/* danger action consistency */
.calendar-popover .danger {
  background: color-mix(in srgb, #b84343 14%, var(--swan-wing));
  border-color: color-mix(in srgb, #b84343 55%, var(--line));
  color: var(--text);
}

.calendar-popover.consultant-company-popover {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.calendar-popover.project-add-popover {
  width: min(500px, calc(100vw - 40px));
}

.project-add-primary-btn {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--swan-wing) !important;
}

.project-add-popover input.required-missing,
.project-add-popover input.required-missing::placeholder {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
  opacity: 1 !important;
}

.project-add-popover .row {
  display: block;
}

.project-add-popover .project-card-popup-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-add-popover .row input {
  width: 100%;
}

.project-add-popover .project-add-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

.project-popup-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.project-popup-columns .site-settings-typography-grid {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.calendar-popover.team-org-add-staff-popover {
  width: min(500px, calc(100vw - 40px));
}

.team-org-add-staff-popover .row {
  display: block;
}

.team-org-add-staff-popover .row input,
.team-org-add-staff-popover .row select {
  width: 100%;
}

.team-org-add-staff-popover .row select {
  background: #fff;
  color: var(--text);
}

.team-org-add-staff-popover .row input[readonly] {
  color: var(--text-soft);
}

.team-org-add-staff-popover input.required-missing,
.team-org-add-staff-popover input.required-missing::placeholder,
.team-org-add-staff-popover select.required-missing {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
  opacity: 1 !important;
}

.team-org-add-staff-popover .team-org-add-staff-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

.team-org-add-primary-btn {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--swan-wing) !important;
}

/* ArchOps motion + casing refinement */
button,
.nav-item,
.nav-sub-item,
.top-header-nav-tab,
.projects-overview-card,
.dashboard-card,
.file-row,
.consultant-company-row {
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.calendar-popover,
.side-detail-panel {
  animation: archops-panel-in 220ms ease;
}

@keyframes archops-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calendar-title,
.directory-title,
.projects-title,
.team-org-title,
.nav-item,
.nav-sub-item,
button {
  text-transform: none !important;
  letter-spacing: normal;
}

/* Icon consistency (single stroke-system feel) */
.top-header svg,
.profile-settings-menu-icon svg,
.projects-overview-employees-icon,
.info-icon-svg,
.dashboard-phase-date-icon {
  stroke-width: 1.75;
  vector-effect: non-scaling-stroke;
}

.profile-settings-menu-icon svg,
.projects-overview-employees-icon,
.info-icon-svg {
  width: 18px;
  height: 18px;
}

/* Data-viz restraint: keep charts/bars to 3-4 semantic colors */
.capacity-bar > span[data-level='success'] { background: var(--status-success-fg); }
.capacity-bar > span[data-level='warning'] { background: var(--status-warning-fg); }
.capacity-bar > span[data-level='danger'] { background: var(--status-danger-fg); }
.capacity-bar > span[data-level='info'] { background: var(--status-info-fg); }

.consultant-health-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}

.consultant-health-chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  border-radius: 10px;
  padding: 0 10px;
  height: var(--consultant-control-height);
}

.consultant-health-chip.active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--text);
}

.consultant-health-filter-select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--swan-wing);
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
  height: var(--consultant-control-height);
}

.consultant-health-filter-select.push {
  margin-left: auto;
}

.consultant-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 10px;
  margin-bottom: 14px;
}

.consultant-command-feed,
.consultant-linked-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface) !important;
  padding: 10px;
}

.consultant-command-rail-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  background: var(--surface);
}

.consultant-command-rail-item.active { border-color: var(--accent); }

.consultant-command-feed-row {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 2px;
  margin-bottom: 0;
  background: transparent;
}

.consultant-command-feed-row:last-child {
  border-bottom: 0;
}

.consultant-command-feed-row.active {
  border-left: 2px solid var(--accent);
  padding-left: 8px;
}

.consultant-command-feed-row:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

.consultant-command-feed-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}

.consultant-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
}

.consultant-bulk-actions .consultant-overflow-toggle {
  margin: 0;
  border-radius: 8px;
  padding: 4px 8px;
}

.consultant-command-feed-actions .directory-filter-btn {
  height: 30px;
  padding: 0 10px;
}

.consultant-feed-status {
  text-transform: capitalize;
  font-size: 11px;
  padding: 0 8px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text);
  background: color-mix(in srgb, var(--line) 30%, transparent);
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.consultant-feed-status.onTrack {
  color: var(--status-success-fg);
  background: var(--status-success-bg);
  border-color: color-mix(in srgb, var(--status-success-fg) 35%, var(--line));
}

.consultant-feed-status.waiting,
.consultant-feed-status.atRisk {
  color: var(--status-warning-fg);
  background: var(--status-warning-bg);
  border-color: color-mix(in srgb, var(--status-warning-fg) 35%, var(--line));
}

.consultant-feed-status.overdue {
  color: var(--status-danger-fg);
  background: var(--status-danger-bg);
  border-color: color-mix(in srgb, var(--status-danger-fg) 35%, var(--line));
}

.consultant-feed-status.noDue {
  color: var(--text-soft);
  background: color-mix(in srgb, var(--line) 30%, transparent);
}

.consultant-feed-status-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 75px;
  text-align: center;
  white-space: nowrap;
}

.consultant-feed-status-btn:hover {
  transform: translateY(-1px);
}

.consultant-feed-status-btn:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .consultant-row-pair,
  .consultant-feed-status,
  .consultant-feed-status-btn,
  .consultant-row-selected,
  .consultant-row-jump-highlight {
    animation: none !important;
    transition: none !important;
  }
}

.consultant-feed-status-btn.overdue,
.consultant-feed-status-btn.noDue {
  cursor: default;
}

.consultant-linked-item { margin-top: 4px; font-size: 12px; }

/* Consultant coordination containers should always follow web setting: Container Background */
.consultant-command-feed,
.consultant-linked-panel,
.consultant-command-rail-item,
.consultant-section-card,
.consultant-all-controls select {
  background: var(--swan-wing) !important;
}

@media (max-width: 1200px) {
  .consultant-command-grid { grid-template-columns: 1fr; }
}

@media (pointer: coarse) {
  .directory-filter-btn,
  .directory-inline-input,
  .directory-sort-select,
  .directory-search-row .search-input-icon {
    min-height: 42px;
  }
}
