:root {
  --forest-950: #042716;
  --forest-900: #064024;
  --forest-800: #0a5630;
  --forest-700: #145f34;
  --mint-100: #eef6e4;
  --mint-50: #f7fbf1;
  --gold-600: #b9791f;
  --gold-100: #fbefd9;
  --blue-600: #3274c5;
  --blue-100: #eaf3ff;
  --orange-600: #bd631c;
  --orange-100: #fff1e5;
  --rose-600: #b9445a;
  --rose-100: #fdecef;
  --ink: #17251f;
  --muted: #6b7972;
  --line: #dfe7e3;
  --canvas: #f4f7f5;
  --white: #fff;
  --shadow: 0 12px 38px rgba(20, 52, 39, .08);
  --sidebar: 250px;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.app-frame { min-height: 100vh; }
.app-header { position: fixed; z-index: 40; top: 0; right: 0; left: 0; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); height: 72px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.brand-panel { display: flex; align-items: center; padding: 0 22px; border-right: 1px solid var(--line); }
.brand-home { display: inline-flex; align-items: center; border-radius: 12px; outline: none; }
.brand-home:focus-visible { box-shadow: 0 0 0 4px rgba(20, 95, 52, .14); }
.brand-panel img { width: 174px; height: auto; }
.header-main { display: flex; align-items: center; gap: 16px; padding: 0 24px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; color: var(--forest-900); background: var(--white); cursor: pointer; }
.global-search { position: relative; flex: 1; max-width: 520px; }
.global-search input { width: 100%; height: 44px; padding: 0 46px 0 17px; border: 1px solid var(--line); border-radius: 13px; outline: none; color: var(--ink); background: #fafcfb; }
.global-search input:focus { border-color: var(--forest-700); box-shadow: 0 0 0 4px rgba(23,108,77,.1); background: var(--white); }
.search-glyph { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); color: #87938d; font-size: 20px; pointer-events: none; }
.header-spacer { flex: 1; }
.header-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 12px; border: 0; border-radius: 11px; color: #526159; background: transparent; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; }
.header-action:hover { color: var(--forest-900); background: var(--mint-50); }
.header-action svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.header-plan { color: #8f42c4; }
.header-webinars { color: #2374bb; }
.header-spark { display: inline-grid; flex: 0 0 18px; place-items: center; width: 18px; height: 18px; color: #a64bd3; font-size: 16px; line-height: 1; }
.header-chevron { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .78; }
.header-action[aria-expanded="true"] .header-chevron,
.account-button[aria-expanded="true"] .header-chevron { margin-top: 3px; transform: rotate(225deg); }
.header-menu-wrap { position: relative; }
.header-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 242px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(20, 52, 39, .13);
}
.header-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 43px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  color: #26352e;
  background: transparent;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}
.header-menu button:hover { color: var(--forest-900); background: var(--mint-50); }
.header-menu button span {
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  color: #304139;
  font-weight: 900;
}
.round-action { position: relative; display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--forest-900); background: var(--white); cursor: pointer; }
.round-action.has-alert::after { content: ""; position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: #e55656; }
.account-button { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 46px; padding: 4px 11px 4px 5px; border: 0; border-radius: 13px; color: var(--ink); background: transparent; line-height: 1; cursor: pointer; }
.account-button:hover, .account-button[aria-expanded="true"] { background: var(--mint-50); }
.avatar { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(140deg, var(--forest-700), var(--forest-950)); font-size: 13px; font-weight: 850; }
.account-copy { min-width: 0; text-align: left; }
.account-copy strong, .account-copy small { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { font-size: 13px; }
.account-copy small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.account-chevron { margin-left: 2px; }
.account-wrap { position: relative; }
.account-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: var(--shadow); }
.account-menu button, .account-menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; color: #3b4a43; background: transparent; font-size: 13px; text-align: left; text-decoration: none; cursor: pointer; }
.account-menu button:hover, .account-menu a:hover { color: var(--forest-900); background: var(--mint-50); }
.account-menu-wide { width: 256px; padding: 10px; border-radius: 18px; box-shadow: 0 18px 45px rgba(20, 52, 39, .13); }
.account-menu-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 13px;
  background: #edf6ff;
}
.account-menu-card strong,
.account-menu-card small { display: block; }
.account-menu-card strong { color: #25352e; font-size: 14px; }
.account-menu-card small { margin-top: 2px; color: #6d7c74; font-size: 12px; }
.menu-divider { height: 1px; margin: 6px 3px; background: var(--line); }

.app-sidebar { position: fixed; z-index: 30; top: 72px; bottom: 0; left: 0; width: var(--sidebar); overflow-y: auto; border-right: 1px solid var(--line); background: #fbfcfb; }
.nav-shell { padding: 18px 13px 28px; }
.nav-section { margin-top: 20px; }
.nav-section:first-child { margin-top: 0; }
.nav-label { margin: 0 10px 7px; color: #9aa49f; font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 52px; margin: 4px 0; padding: 0 12px; border: 0; border-radius: 13px; color: #4d5b54; background: transparent; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.nav-link:hover { color: var(--forest-900); background: #f0f5f2; }
.nav-link.active { color: var(--forest-900); background: #e4f1eb; box-shadow: inset 3px 0 0 var(--forest-700); }
.nav-icon { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(20, 50, 39, .08); border-radius: 13px; color: var(--forest-800); background: var(--mint-100); font-size: 16px; font-weight: 850; box-shadow: 0 2px 5px rgba(18, 48, 34, .06); }
.nav-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.15; }
.insight-icon svg,
.automation-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.menu-toggle svg, .round-action svg, .search-glyph svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.mobile-more-tab .close-icon { display: none; }
body.mobile-more-open .mobile-more-tab .more-icon { display: none; }
body.mobile-more-open .mobile-more-tab .close-icon { display: block; }
.account-button::before { content: none; }
.nav-icon--green { color: #12613d; background: #e4f3e7; }
.nav-icon--gold { color: #9b6817; background: #fff1ce; }
.nav-icon--blue { color: #176b87; background: #def3f6; }
.nav-icon--rose { color: #a94c54; background: #fde7e4; }
.nav-icon--orange { color: #a85b20; background: #ffedda; }
.nav-icon--purple { color: #65519c; background: #eee8ff; }
.nav-icon--teal { color: #147b78; background: #ddf3ef; }
.nav-count { min-width: 22px; margin-left: auto; padding: 3px 6px; border-radius: 999px; color: var(--forest-900); background: #fff; font-size: 10px; font-weight: 850; text-align: center; }
.mobile-more-tab { display: none; }
.sidebar-foot { margin: 22px 5px 0; padding: 15px; border: 1px solid #dce8e2; border-radius: 15px; background: linear-gradient(145deg, #f1f8f4, #fffaf1); }
.sidebar-foot strong { display: block; color: var(--forest-900); font-size: 12px; }
.sidebar-foot p { margin: 6px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.sidebar-foot a { color: var(--forest-700); font-size: 11px; font-weight: 800; text-decoration: none; }

.app-main { min-height: 100vh; margin-left: var(--sidebar); padding: 98px 26px 40px; }
.content-shell { width: min(1500px, 100%); margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 7px; color: var(--gold-600); font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.page-head h1 { margin: 0; color: var(--forest-950); font-size: clamp(27px, 3vw, 36px); line-height: 1.1; letter-spacing: -.04em; }
.page-head p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.sync-status { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 8px 11px; border: 1px solid #dce8e2; border-radius: 999px; color: #4e665b; background: #f9fcfa; font-size: 11px; font-weight: 750; }
.sync-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #37a268; box-shadow: 0 0 0 4px rgba(55,162,104,.12); }

.home-command {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #dbe8e2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(20, 52, 39, .055);
}

.home-command-head {
  display: block;
  margin-bottom: 18px;
}

.home-command-head h1 {
  margin: 0;
  color: var(--forest-950);
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.home-command-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.home-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-action-card {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: linear-gradient(135deg, #fff, #f8fcfc);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(23,50,39,.035);
}

.home-action-card.primary {
  border-color: var(--line);
  background: linear-gradient(135deg, #fff, #f4fbfb);
}

.home-action-card:hover {
  transform: translateY(-1px);
  border-color: #adc3b8;
}

.home-action-card .quick-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 19px;
}

.home-action-card .quick-icon svg {
  width: 43px;
  height: 43px;
}

.home-action-card:nth-child(2) .quick-icon { background: #fff0cf; }
.home-action-card:nth-child(3) .quick-icon { background: #fce8d8; }
.home-action-card:nth-child(4) .quick-icon { background: #e6efda; }
.home-action-card:nth-child(5) .quick-icon { background: #ddf3ef; }
.home-action-card:nth-child(6) .quick-icon { background: #fff1ce; }

.home-action-card strong {
  display: block;
  color: var(--forest-950);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.home-action-card small,
.home-action-card .quick-copy span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.workflow-panel {
  background: linear-gradient(135deg, #ffffff, #f8fcf9);
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workflow-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 86px;
  padding: 15px;
  border: 1px solid #dfe8e3;
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.workflow-item:hover {
  transform: translateY(-1px);
  border-color: #b8cfc2;
  box-shadow: 0 10px 24px rgba(23, 50, 39, .06);
}

.workflow-item.urgent {
  border-color: rgba(185, 121, 31, .34);
  background: linear-gradient(135deg, #fffaf1, #fff);
}

.workflow-icon {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: var(--forest-900);
  background: var(--mint-100);
  font-size: 18px;
  font-weight: 900;
}

.workflow-item.urgent .workflow-icon {
  color: var(--gold-600);
  background: var(--gold-100);
}

.workflow-item strong {
  display: block;
  color: var(--forest-950);
  font-size: 16px;
  line-height: 1.15;
}

.workflow-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.workflow-item b {
  color: var(--forest-900);
  font-size: 15px;
}
.priority-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.priority-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 7px 22px rgba(23,50,39,.035);
}

.priority-card:hover {
  border-color: #b9cbbf;
  transform: translateY(-1px);
}

.priority-card.urgent {
  border-color: rgba(189, 99, 28, .28);
  background: linear-gradient(135deg, #fffaf4, #fff);
}

.priority-icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--forest-800);
  background: var(--mint-100);
  font-size: 16px;
  font-weight: 900;
}

.priority-card.urgent .priority-icon {
  color: var(--orange-600);
  background: var(--orange-100);
}

.priority-card strong {
  display: block;
  color: var(--forest-950);
  font-size: 19px;
  line-height: 1.1;
}

.priority-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}


.schedule-board {
  margin-bottom: 18px;
  padding: 18px;
  background: linear-gradient(135deg, #fff, #f6fbf7);
}

.schedule-board-top,
.schedule-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.schedule-board-top {
  margin-bottom: 14px;
}

.schedule-board-top h2 {
  margin: 0;
  color: var(--forest-950);
  font-size: 22px;
  letter-spacing: -.035em;
}

.schedule-board-top p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.location-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d7e4dd;
  border-radius: 999px;
  color: var(--forest-800);
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.location-chip.active {
  color: #fff;
  border-color: var(--forest-900);
  background: var(--forest-900);
}

.location-chip.add-location {
  color: var(--gold-600);
  background: #fffaf0;
}

.shift-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 12px;
}

.shift-filter {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dce7e1;
  border-radius: 999px;
  color: #51635a;
  background: #fff;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.shift-filter.active {
  border-color: var(--forest-900);
  color: #fff;
  background: var(--forest-900);
}

.schedule-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.location-schedule {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 10px 13px;
  padding: 14px;
  border: 1px solid #e1ebe6;
  border-radius: 18px;
  background: #fbfdfc;
}

.location-schedule-head {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 2px;
}

.location-schedule-head strong {
  color: var(--forest-950);
  font-size: 15px;
}

.location-schedule-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.shift-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 58px;
  align-items: start;
  gap: 5px;
  padding: 13px 15px;
  border: 0;
  border-radius: 15px;
  color: var(--forest-950);
  background: #edf2f0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
}

.shift-block span {
  color: #6f7e77;
  font-size: 11px;
  font-weight: 850;
}

.shift-block strong {
  font-size: 15px;
  letter-spacing: -.02em;
}

.shift-block small {
  display: block;
  margin-top: 0;
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.shift-block.covered {
  background: #d8f4df;
  border-bottom: 5px solid #0a8d45;
}

.shift-block.assigned {
  background: #e8f2ed;
  border-bottom: 5px solid var(--forest-700);
}

.shift-block.open {
  color: #8a5b13;
  background: #fff1ce;
  border: 1px dashed rgba(185, 121, 31, .45);
}
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; }
.dashboard-main, .dashboard-rail { display: flex; min-width: 0; flex-direction: column; gap: 20px; }
.surface { border: 1px solid var(--line); border-radius: 19px; background: var(--white); box-shadow: 0 5px 18px rgba(23,50,39,.035); }
.surface-pad { padding: 21px; }

.manual-entry-panel { margin-bottom: 20px; border-color: #d9e8de; background: linear-gradient(135deg, #f4faf6, #ffffff 58%); }
.manual-entry-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #cfe3d4; border-radius: 999px; color: var(--forest-800); background: var(--mint-100); font-size: 11px; font-weight: 800; white-space: nowrap; }
.manual-timesheet-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.manual-timesheet-form .field label { margin-bottom: 6px; }
.manual-timesheet-form .field input, .manual-timesheet-form .field textarea { min-height: 46px; }
.manual-timesheet-form .manual-reason-field, .manual-timesheet-form .manual-entry-actions { grid-column: 1 / -1; }
.manual-timesheet-form .manual-reason-field textarea { min-height: 74px; }
.manual-weekends-check { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.manual-weekends-check input { width: 18px; height: 18px; accent-color: var(--forest-700); }
.manual-weekends-check span { display: flex; flex-direction: column; gap: 2px; }
.manual-weekends-check strong { color: var(--ink); font-size: 12px; }
.manual-weekends-check small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.manual-entry-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 2px; }
.manual-entry-actions p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.manual-entry-actions .primary-button { flex: 0 0 auto; }
.timesheet-dashboard { margin-bottom: 18px; }
.timesheet-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.timesheet-share-panel { margin: 0 0 20px; padding: 19px; border: 1px solid #c9decf; border-radius: 16px; background: linear-gradient(140deg, #edf7f1, #fff 70%); }
.timesheet-share-panel .surface-head { margin-bottom: 13px; }
.timesheet-share-panel h3, .timesheet-email-history-panel h3 { margin: 0; color: var(--forest-950); font-size: 17px; letter-spacing: -.02em; }
.timesheet-share-panel .surface-head p, .timesheet-email-history-panel .surface-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.timesheet-share-fields { display: grid; grid-template-columns: minmax(170px, 1.4fr) repeat(2, minmax(140px, 1fr)); gap: 12px; }
.timesheet-share-fields .field { margin: 0; }
.timesheet-share-fields label { display: block; margin-bottom: 6px; font-size: 12px; }
.timesheet-share-fields input, .timesheet-share-fields select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.timesheet-share-summary { margin: 12px 0; color: var(--forest-800); font-size: 12px; font-weight: 650; line-height: 1.5; }
.timesheet-share-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.timesheet-share-actions button { min-height: 43px; padding: 10px 14px; }
.timesheet-share-actions button:disabled { opacity: .45; cursor: not-allowed; }
.timesheet-email-history-panel { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.timesheet-email-history-panel .surface-head { margin-bottom: 9px; }
.timesheet-email-history-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 1px; border-top: 1px solid #e4ede6; }
.timesheet-email-history-row > div { min-width: 0; }
.timesheet-email-history-row strong { display: block; color: var(--forest-950); font-size: 12px; }
.timesheet-email-history-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.timesheet-email-history-row .status { flex: 0 0 auto; font-size: 10px; }
.manual-rate-field[hidden] { display: none !important; }
@media (max-width: 740px) {
  .timesheet-share-fields { grid-template-columns: 1fr 1fr; }
  .timesheet-share-fields .field:first-child { grid-column: 1 / -1; }
  .timesheet-share-panel { padding: 14px; }
  .timesheet-email-history-row { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 420px) {
  .timesheet-share-fields { grid-template-columns: 1fr; }
  .timesheet-share-fields .field:first-child { grid-column: auto; }
  .timesheet-share-actions button { flex: 1 1 100%; }
}

.timesheet-summary article { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, #fbfdfb, #f2f7f2); }
.timesheet-summary span { color: var(--muted); font-size: 11px; font-weight: 700; }
.timesheet-summary strong { color: var(--forest-950); font-size: 24px; letter-spacing: -.04em; }
.timesheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; }
.timesheet-action-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 13px; border: 1px solid #cfe0d5; border-radius: 10px; color: var(--forest-800); background: #f7fbf8; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }
.timesheet-action-button:hover { border-color: #9cbdab; background: #edf6f0; }
.timesheet-approve-button { min-height: 38px; padding: 8px 14px; font-size: 11px; }
.timesheet-approval-record { color: var(--forest-800) !important; font-size: 11px !important; }
.invoice-email-review { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:15px; }
.invoice-email-review .secondary-button { flex:0 1 auto; min-height:42px; }
.invoice-email-review small { color:var(--muted); font-size:12px; line-height:1.45; }
@media (max-width:600px) { .invoice-email-review .secondary-button { width:100%; } .invoice-email-review small { display:block; width:100%; } }
.timesheet-email-confirm { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: #f7faf7; font-size: 11px; line-height: 1.5; }
.timesheet-email-confirm input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--forest-700); }
.timesheet-email-dialog .dialog-actions > * { min-width: 140px; }
.timesheet-email-sender { margin: 8px 0 0; color: var(--forest-700); font-size: 11px; font-weight: 700; }
.timesheet-email-error { margin: 10px 0 0; padding: 10px 12px; border: 1px solid #e6b4ad; border-radius: 10px; color: #8b251c; background: #fff6f4; font-size: 12px; line-height: 1.45; }
.timesheet-preview-dialog { width: min(1120px, calc(100vw - 24px)); height: min(94dvh, 960px); max-width: none; max-height: none; padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: #eef2ef; box-shadow: 0 28px 90px rgba(5,35,24,.28); }
.timesheet-preview-dialog::backdrop { background: rgba(4,26,18,.56); backdrop-filter: blur(3px); }
.timesheet-preview-dialog iframe { display: block; width: 100%; height: 100%; border: 0; background: #eef2ef; }
.status-approved { color: #17633a; background: #e9f5eb; }
.timesheet-card { margin-bottom: 11px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 4px 14px rgba(23,50,39,.035); }
.timesheet-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.timesheet-card-head > strong { color: var(--forest-950); font-size: 15px; letter-spacing: -.01em; }
.timesheet-card > p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.timesheet-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.timesheet-export-button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 12px; border: 1px solid #cfe0d5; border-radius: 10px; color: var(--forest-800); background: #f7fbf8; font-size: 11px; font-weight: 800; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.timesheet-export-button:hover { border-color: #9cbdab; background: #edf6f0; transform: translateY(-1px); }
.timesheet-export-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.timesheet-export-hint { margin: 15px 2px 0; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.timesheet-export-hint strong { color: var(--forest-800); }
.status-manual { color: var(--forest-800); background: var(--mint-100); }
.timesheet-review-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.expense-form { background: linear-gradient(145deg, #fff, #fffaf4); }
.expense-receipt-preview { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 12px; border: 1px dashed #d7c5a8; border-radius: 14px; color: var(--muted); background: #fffaf2; font-size: 12px; }
.expense-receipt-preview img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; border: 1px solid #eadfcf; }
.expense-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 13px 0; border-top: 1px solid #edf1ef; }
.expense-row:first-child { border-top: 0; }
.expense-row .row-icon { color: #a85b20; background: #ffedda; }
.expense-receipt-thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.expense-amount { color: var(--forest-950); font-size: 17px; font-weight: 850; white-space: nowrap; }

.billing-dashboard {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}


/* Client billing: accessible Invoices / Receipts switcher. */
.invoice-tab-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 20px;
  padding: 5px;
  border: 1px solid #e0e9e2;
  border-radius: 15px;
  background: #eff5f0;
}
.invoice-tab-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 21px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #4a6354;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.invoice-tab-nav button[aria-selected="true"] {
  background: #064024;
  color: #fff;
  box-shadow: 0 4px 11px rgba(6, 64, 36, .18);
}
.invoice-tab-nav button:focus-visible {
  outline: 3px solid #b9791f;
  outline-offset: 2px;
}
.receipt-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 99px;
  color: #064024;
  background: #dbece1;
  font-size: 11px;
  font-weight: 900;
}
.invoice-tab-nav button[aria-selected="true"] .receipt-tab-count {
  background: #fff;
}
.nav-link--receipt { margin-left: 8px; width: calc(100% - 8px); }
.receipt-ledger-icon,
.receipt-entry-icon {
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #e7f3e9;
  color: #12613d;
}
.receipt-ledger-icon { width: 43px; height: 43px; flex: 0 0 43px; }
.receipt-ledger-icon svg,
.receipt-entry-icon svg,
.receipt-download svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.invoice-receipts-panel {
  max-width: 1040px;
  min-width: 0;
}
.receipt-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.receipt-summary-strip > div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #e0e9e2;
  border-radius: 14px;
  background: #f7faf8;
}
.receipt-summary-strip span {
  display: block;
  margin-bottom: 6px;
  color: #687a70;
  font-size: 11px;
  font-weight: 700;
}
.receipt-summary-strip strong {
  display: block;
  color: #064024;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.receipt-list { display: grid; gap: 13px; }
.receipt-entry {
  min-width: 0;
  padding: 17px;
  border: 1px solid #e0e9e2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(23, 50, 39, .035);
}
.receipt-entry-top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.receipt-entry-icon { width: 48px; height: 48px; }
.receipt-entry-title { min-width: 0; }
.receipt-entry-title strong {
  display: block;
  color: #064024;
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.receipt-entry-title > span {
  display: block;
  margin-top: 4px;
  color: #65766c;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.receipt-state {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 195px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}
.receipt-state--pending { color: #936018; background: #fff2d8; }
.receipt-state--cleared { color: #145c35; background: #e5f4e8; }
.receipt-state--returned { color: #a63c37; background: #ffedec; }
.receipt-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #edf1ee;
}
.receipt-info-grid > div { min-width: 0; }
.receipt-info-grid small {
  display: block;
  margin-bottom: 6px;
  color: #68796e;
  font-size: 10px;
  font-weight: 700;
}
.receipt-info-grid strong {
  display: block;
  color: #243b2e;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.receipt-entry-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.receipt-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 41px;
}
.receipt-download svg { width: 16px; height: 16px; }
.receipt-email-status {
  color: #63776b;
  font-size: 11px;
  font-weight: 750;
}
@media (max-width: 680px) {
  body.mobile-more-open .nav-link--receipt {
    margin: 0;
    width: 100%;
  }
  .invoice-tab-nav { display: flex; width: 100%; margin-bottom: 14px; }
  .invoice-tab-nav button { flex: 1 1 0; padding: 9px 10px; }
  .invoice-receipts-panel { padding: 15px; }
  .receipt-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .receipt-summary-strip > div { padding: 12px; }
  .receipt-summary-strip > div:last-child { grid-column: 1 / -1; }
  .receipt-summary-strip strong { font-size: 17px; }
  .receipt-entry { padding: 13px; }
  .receipt-entry-top { grid-template-columns: 42px minmax(0, 1fr); gap: 9px; }
  .receipt-entry-icon { width: 42px; height: 42px; }
  .receipt-entry-title strong { font-size: 13px; }
  .receipt-state { grid-column: 2; justify-self: start; max-width: 100%; margin-top: 2px; }
  .receipt-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .receipt-entry-foot { align-items: flex-start; flex-direction: column; }
  .receipt-download { width: 100%; justify-content: center; }
}

.invoice-console {
  background: linear-gradient(145deg, #fff, #f7fbf8 58%, #fffaf0);
}

.invoice-console .primary-button.full {
  grid-column: 1 / -1;
  width: 100%;
}

.invoice-ledger {
  min-width: 0;
}

.invoice-row {
  border: 1px solid #e4ece8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23,50,39,.04);
}

.invoice-row + .invoice-row {
  margin-top: 12px;
}

.invoice-row-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
}

.invoice-row .row-icon {
  color: var(--forest-900);
  background: #e8f6ef;
}

.invoice-total {
  color: var(--forest-950);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.04em;
  white-space: nowrap;
}

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

.invoice-details {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #edf2ef;
}

.invoice-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: #51635a;
  font-size: 11px;
}

.invoice-detail-row strong {
  color: var(--forest-950);
  white-space: nowrap;
}

.invoice-detail-total {
  border-top: 1px solid #edf2ef;
  color: var(--forest-950);
  font-weight: 850;
}

.client-record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid #edf1ef;
}

.client-record-card:first-child {
  border-top: 0;
}

.client-record-card strong,
.client-record-card span,
.client-record-card small {
  display: block;
}

.client-record-card strong {
  color: var(--forest-950);
  font-size: 15px;
}

.client-record-card span {
  margin-top: 4px;
  color: #43534b;
  font-size: 12px;
  font-weight: 800;
}

.client-record-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.client-rate-stack {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.client-rate-stack span {
  margin: 0;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--forest-900);
  background: var(--mint-100);
  font-size: 11px;
}
@media (max-width: 760px) {
  .manual-timesheet-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .manual-timesheet-form { grid-template-columns: 1fr; }
  .manual-timesheet-form .manual-reason-field, .manual-timesheet-form .manual-entry-actions { grid-column: auto; }
  .manual-entry-pill { width: 100%; justify-content: center; }
  .manual-entry-actions { align-items: stretch; flex-direction: column; }
  .manual-entry-actions .primary-button { width: 100%; }
  .timesheet-card-head { align-items: flex-start; flex-direction: column; }
  .timesheet-summary { grid-template-columns: 1fr; }
  .timesheet-actions > * { flex: 1 1 auto; }
  .expense-row { grid-template-columns: auto minmax(0, 1fr); }
  .expense-row .expense-amount { grid-column: 2; }
}

.surface-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.surface-head h2 { margin: 0; color: var(--forest-950); font-size: 17px; letter-spacing: -.02em; }
.surface-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.text-link { border: 0; color: var(--forest-700); background: transparent; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }
.text-link:hover { text-decoration: underline; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.quick-card { display: flex; min-height: 118px; align-items: center; gap: 17px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 19px; color: var(--ink); background: linear-gradient(135deg, #fff, #f4fbfb); text-align: left; cursor: pointer; transition: border-color .18s, transform .18s, box-shadow .18s; }
.quick-card:hover { transform: translateY(-2px); border-color: #adc3b8; box-shadow: 0 8px 20px rgba(19,61,43,.07); }
.quick-icon { display: grid; flex: 0 0 68px; place-items: center; width: 68px; height: 68px; border: 1px solid rgba(20, 50, 39, .08); border-radius: 20px; color: var(--forest-800); background: #dff4f5; box-shadow: 0 4px 10px rgba(20, 68, 74, .08); }
.quick-card:nth-child(2) .quick-icon { background: #fff0cf; }
.quick-card:nth-child(3) .quick-icon { background: #fce8d8; }
.quick-card:nth-child(4) .quick-icon { background: #e6efda; }
.quick-icon svg { width: 45px; height: 45px; overflow: visible; }
.quick-copy strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.quick-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.metric-card { position: relative; isolation: isolate; min-height: 130px; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.metric-card::after { content: ""; position: absolute; z-index: -1; right: -32px; bottom: -40px; width: 100px; height: 100px; border-radius: 50%; background: var(--mint-50); pointer-events: none; }
.metric-label { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 750; line-height: 1.35; }
.metric-card > * { position: relative; z-index: 1; }
.metric-label .metric-dot { flex: 0 0 auto; }
.metric-value { display: block; margin-top: 16px; color: var(--forest-950); font-size: 29px; font-weight: 850; letter-spacing: -.045em; }
.metric-foot { display: block; margin-top: 5px; color: #7b8881; font-size: 10px; }
.metric-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--forest-700); box-shadow: 0 0 0 5px var(--mint-100); }
.metric-card:nth-child(2) .metric-dot { background: var(--gold-600); box-shadow: 0 0 0 5px var(--gold-100); }
.metric-card:nth-child(3) .metric-dot { background: var(--blue-600); box-shadow: 0 0 0 5px var(--blue-100); }
.metric-card:nth-child(4) .metric-dot { background: var(--rose-600); box-shadow: 0 0 0 5px var(--rose-100); }

.operations-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 18px; }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 13px; min-height: 66px; padding: 12px 0; border-top: 1px solid #edf1ef; }
.list-row:first-child { border-top: 0; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.row-actions .primary-button, .row-actions .secondary-button { min-height: 38px; padding: 0 13px; white-space: nowrap; }
.warning-note { border: 1px solid rgba(180, 83, 9, 0.25); border-radius: 12px; background: #fff7ed; color: #92400e; padding: 10px 12px; }
.payroll-controls { align-items: stretch; gap: 8px; }
.payroll-controls label { color: #51615a; display: grid; font-size: .72rem; font-weight: 800; gap: 4px; text-transform: uppercase; }
.payroll-controls select { border: 1px solid rgba(20, 77, 48, .18); border-radius: 10px; color: #143b2b; min-height: 38px; padding: 0 10px; }
.shift-row { flex-wrap: wrap; }
.shift-row .row-copy { min-width: 170px; }
.shift-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dfe8e3;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #fbfdfc);
  box-shadow: 0 8px 22px rgba(22, 52, 39, .045);
  cursor: pointer;
}
.shift-card:first-child { margin-top: 0; }
.shift-card:focus-visible {
  outline: 3px solid rgba(54, 145, 105, .28);
  outline-offset: 3px;
}
.shift-card:hover {
  border-color: #c7d9cf;
  box-shadow: 0 14px 32px rgba(22, 52, 39, .08);
  transform: translateY(-1px);
}
.shift-time-tile {
  display: grid;
  gap: 6px;
  align-self: stretch;
  align-content: center;
  padding: 12px;
  border-radius: 16px;
  color: var(--forest-950);
  background: #eef7e8;
  border-left: 5px solid var(--forest-700);
}
.shift-time-tile span {
  color: #65746d;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.shift-time-tile strong {
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.shift-card-copy {
  display: grid;
  min-width: 0;
  gap: 9px;
}
.shift-card-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}
.shift-card-title-row strong {
  overflow: hidden;
  color: #26352e;
  font-size: 16px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shift-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.shift-meta-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid #e2ebe6;
  border-radius: 999px;
  color: #4d5f56;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}
.shift-coverage-track {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #e9efec;
}
.shift-coverage-track span {
  display: block;
  min-width: 8px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest-700), #34a853);
}
.shift-card-side {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-items: end;
  gap: 9px;
  color: #53635b;
  font-size: 12px;
  font-weight: 850;
}
.shift-card-side .primary-button,
.shift-card-side .secondary-button {
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}
.shift-muted-action {
  color: #7b8781;
  font-size: 11px;
}
.claims-section-head {
  margin: 24px 0 12px;
  padding-top: 18px;
  border-top: 1px solid #e7eeea;
}
.claims-section-head h2 {
  margin: 0 0 4px;
  color: var(--forest-950);
  font-size: 18px;
}
.claims-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.claim-card {
  display: grid;
  gap: 13px;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid #e1eae5;
  border-radius: 18px;
  background: radial-gradient(circle at 100% 0, rgba(242, 191, 92, .12), transparent 36%), #fff;
}
.claim-card:first-child { margin-top: 0; }
.claim-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.claim-avatar {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #d7e5dc;
  border-radius: 15px;
  color: var(--forest-900);
  background: var(--mint-100);
  font-size: 14px;
  font-weight: 900;
}
.claim-copy {
  min-width: 0;
  flex: 1;
}
.claim-copy strong,
.claim-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.claim-copy strong {
  color: #23352d;
  font-size: 15px;
}
.claim-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.claim-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.claim-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #e4ece8;
  border-radius: 999px;
  color: #53645c;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}
.claim-note {
  margin: 0;
  padding: 11px 12px;
  border-radius: 13px;
  color: #53645c;
  background: #f7faf8;
  font-size: 12px;
  line-height: 1.55;
}
.claim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.shift-detail-dialog { width: min(640px, calc(100% - 24px)); }
.shift-detail-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid #dfe9e4;
  border-radius: 16px;
  background: #f8fbf9;
}
.shift-detail-status strong {
  color: var(--forest-950);
  font-size: 13px;
}
.shift-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.shift-detail-grid div,
.shift-detail-note {
  padding: 13px;
  border: 1px solid #e4ece8;
  border-radius: 15px;
  background: #fff;
}
.shift-detail-grid span,
.shift-detail-note span {
  display: block;
  margin-bottom: 6px;
  color: #728078;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.shift-detail-grid strong {
  display: block;
  color: #26352e;
  font-size: 13px;
  line-height: 1.35;
}
.shift-detail-note {
  margin-top: 10px;
  background: #fbfdfc;
}
.shift-detail-note p {
  margin: 0;
  color: #4f5f57;
  font-size: 12px;
  line-height: 1.55;
}
#caregiverClock textarea { display: block; width: 100%; min-height: 90px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
#timesheetList article + article, #caregiverTimesheets article + article { border-top: 1px solid var(--line); }
@media (max-width: 600px) {
  .shift-row > button,
  .shift-card-side .primary-button,
  .shift-card-side .secondary-button { width: 100%; }
  .shift-card { grid-template-columns: 1fr; padding: 13px; }
  .shift-time-tile { align-self: auto; }
  .shift-card-side { justify-items: stretch; }
  .claim-card-head { align-items: flex-start; }
  .claim-card-head .status { margin-left: 0; }
  .claim-actions > * { flex: 1; }
  .shift-detail-grid { grid-template-columns: 1fr; }
}
.row-icon { display: grid; flex: 0 0 46px; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(20, 50, 39, .07); border-radius: 14px; color: var(--forest-800); background: var(--mint-100); font-size: 14px; font-weight: 850; }
.row-copy { min-width: 0; flex: 1; }
.row-copy strong { display: block; overflow: hidden; color: #26352e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.row-copy span { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { flex: 0 0 auto; color: #53635b; font-size: 11px; font-weight: 750; text-align: right; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; color: #25734e; background: #e9f6ee; font-size: 9px; font-weight: 850; letter-spacing: .02em; text-transform: uppercase; }
.status.warning { color: #9c591c; background: #fff0dd; }
.status.neutral { color: #65736d; background: #eef2f0; }

.attention-list { display: flex; flex-direction: column; gap: 9px; }
.attention-item { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid #e6ece9; border-radius: 14px; background: #fcfdfc; }
.attention-item .row-icon { width: 34px; height: 34px; flex-basis: 34px; }
.attention-count { display: grid; flex: 0 0 25px; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #fff; background: var(--orange-600); font-size: 10px; font-weight: 850; }
.setup-card { overflow: hidden; border-color: #d7e5de; background: linear-gradient(150deg, #f6fbf8 0%, #fffaf2 100%); }
.setup-banner { padding: 20px; }
.setup-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setup-top h2 { margin: 0; color: var(--forest-950); font-size: 17px; }
.setup-percent { color: var(--forest-800); font-size: 12px; font-weight: 850; }
.progress-track { height: 7px; margin: 13px 0 17px; overflow: hidden; border-radius: 999px; background: #e0e8e4; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--forest-700), #4aaa76); }
.setup-list { display: flex; flex-direction: column; gap: 8px; }
.setup-step { display: flex; align-items: center; gap: 9px; color: #506058; font-size: 11px; }
.setup-step::before { content: ""; width: 16px; height: 16px; border: 1.5px solid #9bad9f; border-radius: 50%; }
.setup-step.done::before { content: "✓"; display: grid; place-items: center; border-color: var(--forest-700); color: #fff; background: var(--forest-700); font-size: 9px; font-weight: 900; }
.primary-button, .secondary-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 11px; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }
.primary-button { border: 1px solid var(--forest-900); color: #fff; background: var(--forest-900); }
.primary-button:hover { background: var(--forest-800); }
.secondary-button { border: 1px solid var(--line); color: var(--forest-900); background: #fff; }
.secondary-button:hover { border-color: #b5c7be; background: var(--mint-50); }
.setup-card .primary-button { width: 100%; margin-top: 17px; }
.empty-state { display: grid; min-height: 220px; place-items: center; padding: 25px; border: 1px dashed #d7e1dc; border-radius: 15px; color: var(--muted); background: #fbfdfc; text-align: center; }
.empty-state strong { display: block; color: var(--forest-950); font-size: 14px; }
.empty-state p { max-width: 320px; margin: 6px auto 14px; font-size: 11px; line-height: 1.5; }
.empty-mark { display: grid; width: 48px; height: 48px; margin: 0 auto 11px; place-items: center; border-radius: 15px; color: var(--forest-700); background: var(--mint-100); font-size: 19px; font-weight: 850; }
.timeline { display: flex; min-height: 210px; align-items: flex-end; gap: 9px; padding: 20px 2px 4px; }
.bar-wrap { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 8px; }
.bar { width: min(24px, 70%); min-height: 8px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #5fae83, var(--forest-700)); }
.bar-wrap span { color: #8b9691; font-size: 9px; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.chart-card.wide { grid-column: 1 / -1; }
.chart-bars { display: flex; min-height: 250px; align-items: flex-end; gap: 12px; padding: 16px 4px 2px; }
.chart-bars div { display: grid; flex: 1; min-width: 0; grid-template-rows: 1fr auto auto; gap: 6px; justify-items: center; }
.chart-bars span { align-self: end; width: min(34px, 78%); height: var(--bar); min-height: 18px; border-radius: 12px 12px 5px 5px; background: linear-gradient(180deg, #67b78c, var(--forest-800)); box-shadow: inset 0 1px 0 rgba(255,255,255,.38); }
.chart-bars strong { color: #33453c; font-size: 11px; }
.chart-bars small { color: var(--muted); font-size: 10px; }
.rate-stack { display: grid; gap: 15px; }
.rate-stack div { display: grid; gap: 7px; }
.rate-stack div > span { color: #53625b; font-size: 12px; font-weight: 800; }
.rate-stack strong { color: var(--forest-950); font-size: 18px; }
.rate-stack i { display: block; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--forest-700), #62b184); box-shadow: 0 0 0 1px rgba(6,62,44,.08); }
.insight-row { display: flex; align-items: flex-start; gap: 14px; padding: 15px 0; border-top: 1px solid #edf2ef; }
.insight-row:first-of-type { border-top: 0; padding-top: 0; }
.insight-row p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.insight-icon,
.automation-icon { display: grid; flex: 0 0 50px; place-items: center; width: 50px; height: 50px; border-radius: 16px; }
.automation-layout { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.mcp-panel { overflow: hidden; background: radial-gradient(circle at 100% 0, rgba(50,116,197,.14), transparent 34%), #fff; }
.mcp-flow { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr; gap: 10px; align-items: center; margin: 18px 0; }
.mcp-flow span { display: grid; min-height: 72px; place-items: center; padding: 12px; border: 1px solid #dce8e2; border-radius: 18px; color: var(--forest-950); background: #fbfdfc; font-size: 12px; font-weight: 900; text-align: center; }
.mcp-flow i { height: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--forest-700), var(--blue-600)); }
.mcp-endpoint-row { display: flex; align-items: center; gap: 10px; margin: 14px 0 18px; padding: 9px; border: 1px solid #dce8e2; border-radius: 13px; background: #f7faf8; }
.mcp-endpoint-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--forest-950); font-size: 11px; }
.mcp-endpoint-row button { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px; color: #fff; background: var(--forest-800); font-size: 11px; font-weight: 800; cursor: pointer; }
.automation-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.automation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.automation-card { display: grid; gap: 12px; min-height: 212px; padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: 0 7px 24px rgba(23,50,39,.04); }
.automation-card strong { color: var(--forest-950); font-size: 15px; letter-spacing: -.01em; }
.automation-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.automation-card button { align-self: end; min-height: 38px; border: 1px solid #d5e2dc; border-radius: 11px; color: var(--forest-900); background: var(--mint-50); font-size: 12px; font-weight: 850; cursor: pointer; }
.automation-card button:hover { border-color: #b7c9bf; background: #fff; }
.workflow-library { margin-top: 18px; }
.workflow-table { display: grid; border: 1px solid #e5ece8; border-radius: 16px; overflow: hidden; }
.workflow-row { display: grid; grid-template-columns: minmax(240px, 1.35fr) minmax(160px, .75fr) minmax(130px, .55fr) minmax(120px, .45fr); gap: 12px; align-items: center; padding: 14px 16px; border-top: 1px solid #edf2ef; background: #fff; }
.workflow-row:first-child { border-top: 0; }
.workflow-head { color: #74827b; background: #f7fbf8; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.workflow-row strong { display: block; color: var(--forest-950); font-size: 13px; }
.workflow-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.workflow-row span { color: #52625a; font-size: 12px; font-weight: 700; }
.workflow-row button { min-height: 36px; border: 1px solid #d5e2dc; border-radius: 10px; color: var(--forest-900); background: #fff; font-size: 12px; font-weight: 850; cursor: pointer; }
.workflow-row button:hover { background: var(--mint-50); border-color: #b8c9c0; }
.toast { position: fixed; z-index: 90; right: 24px; bottom: 24px; max-width: 360px; padding: 14px 16px; border: 1px solid #cfe2d7; border-radius: 13px; color: var(--forest-950); background: #f3fbf6; box-shadow: var(--shadow); font-size: 12px; font-weight: 700; }
.invite-dialog { width: min(600px, calc(100% - 28px)); max-height: calc(100vh - 36px); overflow: auto; padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: #fff; box-shadow: 0 28px 90px rgba(5,35,24,.28); }
.invite-dialog::backdrop { background: rgba(4,26,18,.48); backdrop-filter: blur(3px); }
.invite-form { padding: 27px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.dialog-head h2 { margin: 3px 0 6px; color: var(--forest-950); font-size: 26px; }
.dialog-head p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.dialog-close { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 11px; color: #607068; background: #fff; font-size: 22px; cursor: pointer; }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); }
.invite-result { margin-top: 20px; padding: 16px; border: 1px solid #cfe4d8; border-radius: 14px; background: #f4faf6; }
.invite-result > strong { color: var(--forest-900); }
.invite-result p { margin: 5px 0 13px; color: var(--muted); font-size: 12px; }
.invite-result label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 800; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { min-width: 0; flex: 1; height: 41px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: #4a5b52; background: #fff; font-size: 11px; }
.share-row { display: flex; gap: 8px; margin-top: 10px; }
.share-row a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.mobile-overlay { display: none; }
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.support-grid .surface { min-height: 190px; }
.support-grid h2,
.support-form h2 { margin: 0 0 8px; color: var(--forest-950); font-size: 18px; }
.support-grid p,
.support-form p,
.muted-copy { color: var(--muted); font-size: 13px; line-height: 1.55; }
.support-grid .secondary-button,
.support-grid .primary-button { margin-top: 10px; text-decoration: none; }
.notification-list { display: grid; gap: 10px; }
.notification-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
  width: 100%;
  padding: 15px;
  border: 1px solid #e2ebe6;
  border-radius: 16px;
  color: inherit;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.notification-item:hover { border-color: #c8d9d0; background: #fbfdfc; }
.notification-item strong { color: var(--forest-950); font-size: 15px; }
.notification-item small { grid-column: 2; color: var(--muted); font-size: 12px; line-height: 1.4; }

.operations-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 6%, rgba(185, 121, 31, .12), transparent 30%),
    linear-gradient(180deg, #f7faf8 0, #eef5f0 100%);
}
.ops-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(6, 62, 36, .1);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}
.ops-brand img { display: block; width: 180px; height: auto; }
.ops-search {
  position: relative;
  flex: 1;
  max-width: 560px;
}
.ops-search input {
  width: 100%;
  height: 45px;
  padding: 0 48px 0 17px;
  border: 1px solid #d8e3dd;
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: #fbfdfc;
}
.ops-search input:focus { border-color: var(--forest-700); box-shadow: 0 0 0 4px rgba(20, 95, 52, .1); background: #fff; }
.ops-search span {
  position: absolute;
  top: 50%;
  right: 17px;
  transform: translateY(-50%);
  color: #7b8982;
  font-size: 20px;
}
.ops-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.ops-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  color: #526159;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.ops-actions a:hover { color: var(--forest-900); background: var(--mint-50); }
.ops-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 56px;
}
.ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 30px;
  border: 1px solid #d8e7df;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(185, 121, 31, .16), transparent 34%),
    linear-gradient(135deg, #fff, #f5fbf7);
  box-shadow: 0 18px 48px rgba(17, 50, 37, .08);
}
.ops-hero h1 {
  max-width: 820px;
  margin: 8px 0 12px;
  color: var(--forest-950);
  font-size: clamp(34px, 5vw, 58px);
  line-height: .97;
  letter-spacing: -.06em;
}
.ops-hero p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.ops-status-card {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 190px;
  padding: 22px;
  border: 1px solid #dce8e2;
  border-radius: 22px;
  background: #fff;
}
.ops-status-card span {
  color: #7b8881;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ops-status-card strong {
  color: var(--forest-950);
  font-size: 18px;
  line-height: 1.35;
}
.ops-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.ops-metrics article {
  position: relative;
  overflow: hidden;
  min-height: 122px;
  padding: 18px;
  border: 1px solid #dde7e2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 50, 39, .045);
}
.ops-metrics article::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--mint-100);
}
.ops-metrics span {
  position: relative;
  z-index: 1;
  display: block;
  color: #6e7d75;
  font-size: 12px;
  font-weight: 850;
}
.ops-metrics strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 14px;
  color: var(--forest-950);
  font-size: 27px;
  letter-spacing: -.04em;
}
.ops-metrics small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  gap: 18px;
  align-items: start;
}
.ops-side {
  display: grid;
  gap: 18px;
}
.ops-card h3 {
  margin: 20px 0 8px;
  color: var(--forest-950);
  font-size: 15px;
}
.ops-form { display: grid; gap: 13px; }
.ops-form .primary-button,
.ops-form .secondary-button { width: fit-content; }
.ops-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.ops-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.ops-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #53645c;
  font-size: 12px;
  line-height: 1.5;
}
.ops-consent input {
  flex: 0 0 auto;
  width: auto;
  margin-top: 3px;
}
.ops-record-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.ops-record-list article,
.ops-record-list p,
.ops-record-list pre {
  margin: 0;
}
.ops-record-list article,
.ops-record-list > p {
  padding: 13px;
  border: 1px solid #e3ebe7;
  border-radius: 15px;
  background: #fbfdfc;
}
.ops-record-list h3 {
  margin: 0 0 5px;
  color: var(--forest-950);
  font-size: 14px;
}
.ops-record-list pre {
  white-space: pre-wrap;
  color: #4f6058;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
}
.ops-record-list.compact {
  color: var(--muted);
  font-size: 12px;
}

/* Onboarding */
.onboarding-page { min-height: 100vh; background: radial-gradient(circle at 100% 0, rgba(200,139,44,.13), transparent 32%), linear-gradient(135deg, #f2f7f4, #fbfcfb); }
.onboarding-shell { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(600px, 1.25fr); min-height: 100vh; }
.onboarding-aside { position: relative; display: flex; min-height: 100vh; flex-direction: column; overflow: hidden; padding: 48px clamp(30px, 5vw, 72px); color: #fff; background: var(--forest-950); }
.onboarding-aside::after { content: ""; position: absolute; right: -180px; bottom: -190px; width: 440px; height: 440px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 140px rgba(255,255,255,.025); }
.onboarding-logo { position: relative; z-index: 1; width: 185px; filter: brightness(0) invert(1); }
.onboarding-aside-copy { position: relative; z-index: 1; margin: auto 0; }
.onboarding-aside .eyebrow { color: #e7bd72; }
.onboarding-aside h1 { max-width: 480px; margin: 0; font-size: clamp(36px, 4.3vw, 58px); line-height: 1.02; letter-spacing: -.055em; }
.onboarding-aside p { max-width: 460px; margin: 18px 0 0; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.65; }
.aside-points { position: relative; z-index: 1; display: grid; gap: 12px; margin: 34px 0 0; }
.aside-point { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.86); font-size: 12px; font-weight: 700; }
.aside-point b { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; color: #fff; background: rgba(255,255,255,.11); }
.onboarding-form-side { display: flex; min-height: 100vh; flex-direction: column; padding: 35px clamp(30px, 6vw, 84px); }
.onboarding-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.onboarding-top a { color: var(--forest-800); font-size: 12px; font-weight: 800; text-decoration: none; }
.step-dots { display: flex; align-items: center; gap: 0; }
.step-dot { display: grid; width: 28px; height: 28px; place-items: center; border: 2px solid #d7e0dc; border-radius: 50%; color: #9aa6a0; background: #fff; font-size: 10px; font-weight: 850; }
.step-dot.active { border-color: var(--forest-700); color: #fff; background: var(--forest-700); }
.step-dot.done { border-color: #69aa86; color: var(--forest-800); background: #e8f5ed; }
.step-line { width: clamp(22px, 4vw, 52px); height: 2px; background: #dfe5e2; }
.step-line.done { background: #69aa86; }
.onboarding-form-wrap { width: min(680px, 100%); margin: auto; padding: 45px 0; }
.step-panel { display: none; animation: fade-up .28s ease both; }
.step-panel.active { display: block; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-kicker { color: var(--gold-600); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.step-panel h2 { margin: 9px 0 0; color: var(--forest-950); font-size: clamp(29px, 4vw, 42px); line-height: 1.1; letter-spacing: -.045em; }
.step-intro { max-width: 580px; margin: 11px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; color: #34443c; font-size: 12px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--ink); background: #fff; }
.field input, .field select { height: 50px; padding: 0 14px; }
.field textarea { min-height: 110px; padding: 13px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest-700); box-shadow: 0 0 0 4px rgba(23,108,77,.1); }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: flex; min-height: 84px; flex-direction: column; justify-content: center; padding: 13px; border: 1px solid var(--line); border-radius: 14px; color: #48574f; background: #fff; font-size: 12px; font-weight: 750; cursor: pointer; }
.choice label small { display: block; margin-top: 4px; color: #89948f; font-size: 10px; font-weight: 550; line-height: 1.35; }
.choice input:checked + label { border-color: var(--forest-700); color: var(--forest-950); background: var(--mint-50); box-shadow: inset 0 0 0 1px var(--forest-700); }
.choice input:focus-visible + label { outline: 3px solid rgba(23,108,77,.2); }
.onboarding-actions { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.button-group { display: flex; gap: 10px; margin-left: auto; }
.skip-button { border: 0; color: #78857e; background: transparent; font-size: 12px; font-weight: 750; cursor: pointer; }
.onboarding-error { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #f1cccc; border-radius: 11px; color: #9c3030; background: #fff0f0; font-size: 12px; }

@media (max-width: 1380px) and (min-width: 921px) {
  .quick-grid, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .priority-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .operations-grid { grid-template-columns: 1fr; }
  .billing-dashboard { grid-template-columns: 1fr; }
  .automation-layout { grid-template-columns: 1fr; }
  .ops-layout,
  .ops-hero { grid-template-columns: 1fr; }
  .ops-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  :root { --sidebar: 0px; }
  .app-header { grid-template-columns: minmax(0, 1fr); }
  .brand-panel { display: none; }
  .menu-toggle { display: block; }
  .app-sidebar { width: 260px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 20px 0 50px rgba(11,45,33,.12); }
  body.nav-open .app-sidebar { transform: translateX(0); }
  .mobile-overlay { position: fixed; z-index: 20; inset: 72px 0 0; display: block; opacity: 0; pointer-events: none; background: rgba(4,23,16,.3); transition: opacity .22s; }
  body.nav-open .mobile-overlay { opacity: 1; pointer-events: auto; }
  .app-main { margin-left: 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onboarding-shell { grid-template-columns: 1fr; }
  .onboarding-aside { min-height: auto; padding: 27px 30px; }
  .onboarding-aside-copy, .aside-points { display: none; }
  .onboarding-form-side { min-height: calc(100vh - 92px); }
}
@media (max-width: 680px) {
  body { background: linear-gradient(180deg, #eef6f1 0, var(--canvas) 190px); }
  .app-header { height: 76px; border-bottom-color: rgba(6, 62, 44, .08); box-shadow: 0 8px 28px rgba(16, 52, 38, .06); }
  .ops-topbar { flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; }
  .ops-brand img { width: 154px; }
  .ops-search { order: 3; flex-basis: 100%; max-width: none; }
  .ops-actions { max-width: 100%; overflow-x: auto; }
  .ops-shell { width: calc(100% - 28px); padding: 18px 0 38px; }
  .ops-hero { padding: 20px; border-radius: 22px; }
  .ops-hero h1 { font-size: 32px; }
  .ops-hero p { font-size: 14px; }
  .ops-metrics,
  .ops-two-column { grid-template-columns: 1fr; }
  .ops-form .primary-button,
  .ops-form .secondary-button,
  .ops-button-row > * { width: 100%; }
  .header-main { gap: 10px; padding: 0 18px; }
  .brand-panel { position: absolute; top: 0; left: 18px; display: flex; height: 76px; padding: 0; border-right: 0; }
  .brand-home { min-height: 52px; padding: 4px 0; }
  .brand-panel img { width: 148px; }
  .global-search, .header-action, .account-copy { display: none; }
  .header-menu-wrap,
  .desktop-only { display: none; }
  .menu-toggle { display: none; }
  .header-spacer { display: block; }
  .round-action { display: none; }
  .account-button {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(6, 62, 44, .10);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(18, 52, 39, .06);
  }
  .account-button::before {
    content: "";
    width: 24px;
    height: 16px;
    background:
      linear-gradient(var(--forest-950), var(--forest-950)) 0 0 / 24px 3px no-repeat,
      linear-gradient(var(--forest-950), var(--forest-950)) 0 6.5px / 24px 3px no-repeat,
      linear-gradient(var(--forest-950), var(--forest-950)) 0 13px / 24px 3px no-repeat;
    border-radius: 2px;
  }
  .account-button .avatar,
  .account-button > span[aria-hidden="true"] { display: none; }
  .account-wrap { position: static; }
  .account-menu { position: fixed; top: 80px; right: 12px; width: min(260px, calc(100vw - 24px)); }
  .app-sidebar {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 82px;
    transform: none;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid rgba(6, 62, 44, .1);
    border-right: 0;
    background: rgba(255,255,255,.97);
    box-shadow: 0 -14px 34px rgba(11,45,33,.11);
    backdrop-filter: blur(16px);
    transition: height .24s ease, border-radius .24s ease, box-shadow .24s ease;
  }
  body.nav-open .app-sidebar { transform: none; }
  body.mobile-more-open .app-sidebar {
    height: min(82vh, 620px);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -24px 70px rgba(5, 35, 24, .24);
  }
  .mobile-overlay { inset: 0; display: block; opacity: 0; pointer-events: none; background: rgba(4,23,16,.34); }
  body.mobile-more-open .mobile-overlay { opacity: 1; pointer-events: auto; }
  .nav-shell { display: flex; gap: 7px; min-width: max-content; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  body.mobile-more-open .nav-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    gap: 9px;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
  }
  .nav-section { display: contents; }
  .nav-label,
  .sidebar-foot,
  .nav-link[href="/operations.html"] { display: none; }
  body.mobile-more-open .nav-label {
    display: block;
    grid-column: 1 / -1;
    margin: 7px 4px 0;
    color: var(--forest-800);
  }
  .nav-link:not(.mobile-primary) { display: none; }
  .nav-link {
    position: relative;
    flex: 1 1 0;
    min-height: 64px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 6px 5px;
    border-radius: 16px;
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
  }
  .mobile-more-tab {
    position: relative;
    display: flex;
    min-height: 64px;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 6px 5px;
    border: 0;
    border-radius: 16px;
    color: #4d5b54;
    background: transparent;
    font: inherit;
    font-size: 10px;
    font-weight: 690;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
  }
  body.mobile-more-open .nav-link,
  body.mobile-more-open .nav-link:not(.mobile-primary) {
    display: flex;
    min-height: 54px;
    flex: initial;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 12px;
    font-size: 12px;
    text-align: left;
  }
  body.mobile-more-open .mobile-more-tab {
    grid-column: 1 / -1;
    min-height: 52px;
    flex-direction: row;
    justify-content: center;
    color: #fff;
    background: var(--forest-900);
  }
  .nav-link.active { box-shadow: none; background: var(--forest-900); color: #fff; }
  .nav-link.active .nav-icon { color: var(--forest-900); background: #fff; }
  body.mobile-more-open .nav-link.active { box-shadow: none; }
  .nav-icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 14px; font-size: 14px; }
  .nav-count { position: absolute; transform: translate(26px, -20px); margin-left: 0; }
  body.mobile-more-open .nav-count { right: 10px; transform: none; }
  .app-main { padding: 94px 14px calc(108px + env(safe-area-inset-bottom)); }
  .content-shell { width: 100%; }
  .home-command {
    margin: 0 -2px 14px;
    padding: 16px;
    border-radius: 22px;
  }
  .home-command-head {
    margin-bottom: 14px;
  }
  .home-command-head h1 { font-size: 20px; }
  .home-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .home-action-card {
    min-height: 148px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
  }
  .home-action-card strong { font-size: 18px; }
  .home-action-card small,
  .home-action-card .quick-copy span { font-size: 13px; }
  .home-action-card .quick-icon {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
    border-radius: 20px;
  }
  .home-action-card .quick-icon svg {
    width: 46px;
    height: 46px;
  }
  .schedule-board {
    padding: 14px;
    border-radius: 20px;
    margin-bottom: 14px;
  }
  .schedule-board-top,
  .schedule-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .schedule-board-top .primary-button {
    width: 100%;
  }
  .location-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .location-chip {
    flex: 0 0 auto;
  }
  .workflow-list {
    grid-template-columns: 1fr;
  }
  .workflow-item {
    min-height: 74px;
    padding: 13px;
  }
  .workflow-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
  .location-schedule {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .shift-block {
    grid-template-columns: 1fr;
  }
  .shift-block small {
    text-align: left;
  }
  .priority-strip {
    display: flex;
    gap: 10px;
    margin: 0 -14px 16px;
    overflow-x: auto;
    padding: 0 14px 2px;
    scroll-snap-type: x proximity;
  }
  .priority-card {
    flex: 0 0 78%;
    min-height: 76px;
    border-radius: 17px;
    scroll-snap-align: start;
  }
  .priority-card strong { font-size: 17px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 16px; padding: 0 2px; }
  .page-head h1 { font-size: clamp(27px, 8vw, 34px); }
  .page-head p { font-size: 13px; line-height: 1.45; }
  .sync-status { display: none; }
  .quick-grid, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .chart-grid,
  .automation-grid,
  .support-grid { grid-template-columns: 1fr; gap: 12px; }
  .chart-bars { min-height: 190px; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
  .chart-bars div { min-width: 48px; }
  .rate-stack strong { font-size: 16px; }
  .mcp-flow { grid-template-columns: 1fr; }
  .mcp-flow i { width: 2px; height: 24px; justify-self: center; }
  .automation-card { min-height: auto; }
  .workflow-table { border: 0; gap: 10px; overflow: visible; }
  .workflow-head { display: none; }
  .workflow-row { grid-template-columns: 1fr; gap: 8px; padding: 15px; border: 1px solid #e5ece8; border-radius: 16px; }
  .workflow-row button { width: 100%; }
  .dashboard-rail { grid-template-columns: 1fr; }
  .quick-card { min-height: 122px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 14px; border-radius: 18px; }
  .quick-icon { width: 58px; height: 58px; flex-basis: 58px; border-radius: 17px; }
  .quick-icon svg { width: 40px; height: 40px; }
  .quick-copy strong { font-size: 13px; }
  .quick-copy span { font-size: 10px; }
  .metric-card { min-height: 112px; padding: 15px; border-radius: 18px; }
  .metric-value { margin-top: 12px; font-size: 25px; }
  .metric-label { align-items: flex-start; gap: 8px; font-size: 10px; }
  .operations-grid { gap: 14px; }
  .surface { border-radius: 18px; box-shadow: 0 8px 22px rgba(23,50,39,.045); }
  .surface-pad { padding: 16px; }
  .surface-head { align-items: flex-start; margin-bottom: 13px; }
  .surface-head h2 { font-size: 16px; }
  .list-row { align-items: flex-start; min-height: 62px; }
  .row-meta,
  .status { margin-left: auto; }
  .timeline { min-height: 160px; padding-top: 10px; }
  .attention-item { border-radius: 16px; }
  .setup-banner { padding: 17px; }
  .page-actions,
  .form-actions,
  .dialog-actions,
  .share-row { width: 100%; }
  .page-actions > *,
  .form-actions > *,
  .dialog-actions > *,
  .share-row > * { flex: 1; }
  .onboarding-form-side { padding: 24px 20px; }
  .onboarding-top { align-items: flex-start; flex-direction: column-reverse; }
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .choice label { min-height: 68px; }
  .onboarding-actions { align-items: stretch; flex-direction: column; }
  .button-group { width: 100%; margin-left: 0; }
  .button-group > * { flex: 1; }
  .invite-form { padding: 22px 18px; }
  .dialog-head { gap: 14px; }
  .dialog-head h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.contract-builder {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.contract-form {
  position: sticky;
  top: 96px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contract-form .form-grid label {
  color: var(--ink);
  font-weight: 750;
}

.contract-form .full {
  grid-column: 1 / -1;
}

.contract-form input,
.contract-form textarea {
  border-radius: 7px;
  border: 1px solid rgba(6, 62, 44, 0.24);
  background: #fff;
  color: var(--ink);
  font: inherit;
  margin-top: 6px;
  padding: 10px 11px;
  width: 100%;
}

.contract-form textarea {
  min-height: 88px;
  resize: vertical;
}

.classic-checks {
  border: 1px solid rgba(6, 62, 44, 0.18);
  border-radius: 10px;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 13px;
}

.classic-checks legend {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0 6px;
  text-transform: uppercase;
}

.classic-checks label {
  align-items: center;
  display: flex;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 650;
}

.classic-checks input {
  accent-color: #064832;
  margin: 0;
  width: auto;
}

.classic-checks input[type="text"] {
  margin-top: 0;
  width: 100%;
}

.contract-nudge-panel {
  background: #f8fbf9;
  border: 1px solid rgba(6, 62, 44, 0.18);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 13px;
}

.contract-nudge-panel legend {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0 6px;
  text-transform: uppercase;
}

.contract-nudge-panel label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.contract-nudge-panel select {
  appearance: none;
  background: #fff;
  border: 1px solid rgba(6, 62, 44, 0.24);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  margin-top: 6px;
  padding: 10px 11px;
  width: 100%;
}

.nudge-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 44px);
  justify-content: center;
}

.nudge-button {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(6, 62, 44, 0.22);
  border-radius: 10px;
  color: var(--forest-900);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
}

.nudge-button:hover {
  background: var(--mint-50);
  border-color: #b5c7be;
}

.nudge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contract-preview-wrap {
  background: linear-gradient(145deg, rgba(8, 77, 52, 0.08), rgba(213, 176, 95, 0.12));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  overflow: auto;
}

.contract-page {
  background: #fff;
  color: #101f1a;
  width: min(100%, 794px);
  min-height: 1123px;
  margin: 0 auto;
  padding: 40px 52px 34px;
  border: 1px solid rgba(23, 53, 42, 0.12);
  box-shadow: 0 24px 70px rgba(18, 38, 31, 0.16);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.35;
}

.contract-letterhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 0;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.contract-logo {
  width: 150px;
  max-height: 82px;
  object-fit: contain;
}

.contract-letterhead div,
.contract-contact {
  display: grid;
  gap: 4px;
  color: #203a32;
}

.contract-letterhead strong {
  color: #063e2c;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contract-brand {
  align-items: start;
}

.contract-contact {
  align-self: end;
  color: #506760;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  text-align: right;
}

.contract-main-title {
  color: #17261f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  margin: 14px 0 18px;
  text-align: center;
  text-transform: uppercase;
}

.contract-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.contract-title-row h2 {
  margin: 4px 0 0;
  color: #063e2c;
  font-size: 1.45rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.contract-date {
  margin: 0;
  color: #49665c;
  font-weight: 700;
  white-space: nowrap;
}

.contract-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(6, 62, 44, 0.14);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 13px;
}

.contract-summary-two { grid-template-columns: 1fr 1fr; }

.contract-summary div {
  padding: 14px;
  background: #f8fbf8;
  border-right: 1px solid rgba(6, 62, 44, 0.12);
}

.contract-summary div:last-child {
  border-right: 0;
}

.contract-summary span,
.signature-grid span {
  display: block;
  color: #6d8178;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-summary strong,
.signature-grid strong {
  display: block;
  color: #063e2c;
  margin-top: 5px;
}

.contract-summary p {
  color: #49665c;
  margin: 6px 0 0;
}

.contract-copy h3 {
  color: #111f1a;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  margin: 9px 0 5px;
  text-transform: uppercase;
}

.contract-copy p {
  margin: 0 0 6px;
}

.contract-fill-line {
  align-items: baseline;
  display: grid;
  gap: 10px;
  grid-template-columns: 180px minmax(0, 1fr);
  margin: 5px 0;
}

.contract-fill-line span,
.contract-schedule-box > span {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
}

.contract-fill-line strong {
  border-bottom: 1px solid #17261f;
  color: #17261f;
  display: block;
  font-weight: 600;
  min-height: 20px;
  padding: 0 6px 2px;
}

.contract-clause-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contract-clause-grid.compact > div,
.contract-legal-grid > div,
.contract-clause {
  break-inside: avoid;
}

.contract-lines {
  display: grid;
  gap: 2px;
}

.contract-lines span {
  display: block;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(6, 62, 44, 0.12);
}

.contract-rates p {
  margin: 0 0 4px;
  font-weight: 720;
}

.contract-schedule-box {
  margin-top: 7px;
}

.contract-legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
}

.contract-numbered-grid {
  margin-top: 2px;
}

.contract-clause-grid ul {
  margin: 0;
  padding-left: 18px;
}

.signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}

.signature-grid div {
  border-top: 1.5px solid #17352a;
  padding-top: 7px;
}

.signature-grid small {
  display: block;
  color: #6d8178;
  margin-top: 6px;
}

.script-signature,
.signature-input {
  font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
}

.script-signature {
  min-height: 35px;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.15;
}

.contract-signatures-title {
  color: #111f1a;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  margin: 11px 0 8px;
  text-transform: uppercase;
}

.contract-page {
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  gap: 24px;
  min-height: auto;
  padding: 0;
  width: min(100%, 794px);
}

.contract-template-page {
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 38, 31, 0.16);
  display: block;
  position: relative;
  width: 100%;
}

.contract-template-page img {
  display: block;
  height: auto;
  width: 100%;
}

.template-cover {
  background: #fff;
  display: block;
  position: absolute;
}

.template-value,
.template-mark,
.template-signature {
  color: #111;
  display: block;
  position: absolute;
  z-index: 2;
}

.template-value {
  font-family: Cambria, Georgia, "Times New Roman", serif;
  font-size: clamp(7px, .96vw, 12px);
  line-height: 1.1;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.template-mark {
  align-items: center;
  display: flex;
  font-family: Arial, sans-serif;
  font-size: clamp(5px, .64vw, 8px);
  font-weight: 900;
  height: .65%;
  justify-content: center;
  line-height: 1;
  transform: none;
  width: 1.16%;
}

.template-signature {
  font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
  font-size: clamp(7px, .94vw, 12px);
  line-height: 1;
  max-width: none;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.value-client { left: 24.6%; top: 28.48%; }
.value-recipient { left: 26.7%; top: 31.33%; }
.value-start { left: 22.8%; top: 45.28%; }
.value-day-rate { left: 47.55%; top: 63.15%; width: 4.7%; text-align: center; }
.value-evening-rate { left: 43.55%; top: 65.30%; width: 4.7%; text-align: center; }
.mark-mon { left: 13.96%; top: 50.54%; }
.mark-tue { left: 37.28%; top: 50.54%; }
.mark-wed { left: 60.72%; top: 50.54%; }
.mark-thu { left: 13.96%; top: 52.57%; }
.mark-fri { left: 37.28%; top: 52.57%; }
.mark-sat { left: 60.72%; top: 52.57%; }
.mark-sun { left: 13.96%; top: 54.60%; }
.mark-morning { left: 13.96%; top: 63.86%; }
.mark-evening { left: 13.96%; top: 66.00%; }
.mark-weekly { left: 28.18%; top: 68.64%; }
.mark-biweekly { left: 39.78%; top: 68.64%; }
.sig-client { left: 25.7%; top: 73.36%; width: 23.9%; }
.date-client { left: 57.25%; top: 73.34%; width: 7.7%; text-align: center; }
.sig-agency { left: 32.25%; top: 76.72%; width: 18.2%; }
.date-agency { left: 57.75%; top: 76.70%; width: 7.7%; text-align: center; }
.date-client,
.date-agency {
  font-size: clamp(6px, .82vw, 10px);
}

.contract-empty-state {
  display: grid;
  place-items: center;
  min-height: 420px;
  color: #6d8178;
  border: 1px dashed rgba(6, 62, 44, 0.24);
  border-radius: 14px;
}

@media (max-width: 1100px) {
  .contract-builder {
    grid-template-columns: 1fr;
  }

  .contract-form {
    position: static;
  }
}

@media (max-width: 720px) {
  .contract-page {
    min-height: auto;
    padding: 24px;
  }

  .contract-letterhead,
  .contract-title-row {
    display: grid;
  }

  .contract-letterhead div {
    text-align: left;
  }

  .contract-summary,
  .contract-clause-grid,
  .contract-legal-grid,
  .signature-grid {
    grid-template-columns: 1fr;
  }

  .contract-summary div {
    border-right: 0;
    border-bottom: 1px solid rgba(6, 62, 44, 0.12);
  }

  .contract-summary div:last-child {
    border-bottom: 0;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  body {
    background: #fff;
  }

  .app-header,
  .app-sidebar,
  .mobile-overlay,
  .page-head,
  .contract-form,
  .toast {
    display: none !important;
  }

  .app-frame,
  .app-main,
  .content-shell {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  [data-view-panel] {
    display: none !important;
  }

  [data-view-panel="contracts"] {
    display: block !important;
  }

  .contract-builder,
  .contract-preview-wrap {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
    overflow: visible !important;
  }

  .contract-page {
    width: 100% !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 8.35pt;
    line-height: 1.24;
  }

  .contract-template-page {
    box-shadow: none !important;
    height: 297mm !important;
    margin: 0 !important;
    page-break-after: always;
    width: 210mm !important;
  }

  .contract-template-page:last-child {
    page-break-after: auto;
  }

  .template-value {
    font-size: 9pt !important;
  }

  .template-mark {
    font-size: 7pt !important;
  }

  .template-signature {
    font-size: 10pt !important;
  }

  .contract-title-row h2 {
    font-size: 16pt;
  }

  .contract-letterhead {
    margin-bottom: 9pt;
    padding-bottom: 8pt;
  }

  .contract-logo {
    width: 145pt;
  }

  .contract-summary {
    margin-bottom: 8pt;
  }

  .contract-summary div {
    padding: 8pt;
  }

  .contract-copy h3 {
    margin-top: 5pt;
  }

  .signature-grid {
    margin-top: 12pt;
  }

  .script-signature {
    font-size: 15pt;
  }
}



/* Care Workspace — private, non-clinical intake and internal learning */
.care-workspace-section { margin-top: 24px; display: grid; gap: 15px; }
.care-workspace-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 2px; }
.care-workspace-head h2 { margin: 0 0 7px; color: var(--forest-950); font-size: 21px; letter-spacing: -.03em; }
.care-workspace-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.care-workspace-label { display: inline-flex; flex: 0 0 auto; padding: 9px 12px; border-radius: 100px; color: #0c613c; background: #e3f2e8; font-size: 11px; font-weight: 850; }
.care-workspace-grid { display: grid; grid-template-columns: minmax(330px, 1fr) minmax(320px, .95fr); gap: 17px; align-items: start; }
.care-intake-form, .care-records-panel { min-width: 0; }
.care-intake-form { background: linear-gradient(148deg,#fff 40%,#f8fcf9); }
.care-choice-fieldset { margin: 0; padding: 12px 13px; border: 1px solid #e0e9e3; border-radius: 13px; background: #fff; }
.care-choice-fieldset legend { padding: 0 5px; color: #374d3e; font-size: 12px; font-weight: 850; }
.care-option-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 12px; }
.care-option-grid label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: #385047; font-size: 12px; line-height: 1.3; cursor: pointer; }
.care-option-grid input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: #0e6039; }
.care-weekdays { grid-template-columns: repeat(4,minmax(0,1fr)); }
.care-intake-form .field small { display: block; color: #64766b; margin-top: 6px; line-height: 1.45; font-size: 11px; }
.care-form-actions { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 14px; }
.care-form-actions button { min-height: 42px; }
.care-form-feedback { margin: 12px 0 0; color: #106037; background: #eef8f0; padding: 10px 12px; border-radius: 10px; font-size: 12px; }
.care-form-feedback.is-error, .care-error { color: #9a3b34; background: #fff4f1; padding: 12px; border-radius: 10px; font-size: 12px; line-height: 1.6; }
.care-records-panel #careIntakeList { display: grid; gap: 12px; }
.care-intake-card { min-width: 0; padding: 15px; border: 1px solid #e0e9e3; border-radius: 15px; background: #fff; }
.care-intake-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.care-intake-top h3 { margin: 0 0 5px; color: var(--forest-950); font-size: 15px; line-height: 1.35; }
.care-intake-top small { color: #75877c; font-size: 11px; }
.care-stage { display: inline-block; padding: 6px 9px; background: #f3eee0; border-radius: 50px; color: #86631d; font-size: 10px; font-weight: 800; white-space: nowrap; }
.care-stage-ready { background: #def3e4; color: #12603b; }
.care-intake-meta { display: flex; gap: 9px; flex-wrap: wrap; margin: 13px 0; }
.care-intake-meta span { padding: 5px 8px; border-radius: 6px; background: #f2f7f4; color: #546a5c; font-size: 11px; font-weight: 700; }
.care-intake-details { margin-bottom: 12px; padding-top: 10px; border-top: 1px solid #eaf0ec; }
.care-intake-details summary { color: #0c643d; font-size: 12px; font-weight: 800; cursor: pointer; }
.care-intake-details p { margin: 8px 0; color: #50685a; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.care-edit-button { min-height: 38px; }
.care-empty { padding: 25px 13px; border: 1px dashed #d6e4d9; border-radius: 14px; text-align: center; }
.care-empty strong { color: #22543d; font-size: 13px; }
.care-empty p { color: #76877c; font-size: 12px; line-height: 1.6; }

.care-training-shell { max-width: 1100px; }
.care-training-progress { margin-bottom: 17px; color: var(--forest-800); font-size: 14px; font-weight: 850; }
.care-training-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; align-items: start; }
.care-module { min-width: 0; padding: 17px; border: 1px solid #dfe8e2; border-radius: 16px; background: linear-gradient(140deg,#fff,#f9fcfa); }
.care-module-top { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.care-module h3 { margin: 6px 0 7px; color: #123f29; font-size: 16px; line-height: 1.35; }
.care-module-top small { color: #9d7a35; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.care-module-top p { margin: 0; color: #52665b; font-size: 12px; line-height: 1.55; }
.care-module-state { flex: 0 0 auto; padding: 7px 9px; background: #fff1d5; color: #916319; border-radius: 99px; font-size: 10px; font-weight: 850; }
.care-module-state.done { color: #135f39; background: #e0f3e4; }
.care-module-details { padding-top: 15px; }
.care-module-details summary { font-size: 12px; font-weight: 850; color: #0e6641; cursor: pointer; }
.care-module-details ol { margin: 13px 0; padding-left: 20px; color: #4b6155; font-size: 12px; line-height: 1.6; }
.care-module-details li { margin-bottom: 8px; }
.care-module-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #354d40; margin: 12px 0; cursor: pointer; }
.care-module-check input { width: 17px; height: 17px; margin: 0; accent-color: #0f613a; }
.care-module-details button { width: 100%; min-height: 40px; }
.care-module-details button:disabled { opacity: .5; cursor: not-allowed; }
.care-reviewed { font-size: 12px; color: #197449; font-weight: 750; }
.care-learning-disclaimer { margin: 17px 0 0; padding-top: 12px; border-top: 1px solid #edf1ed; color: #66766b; font-size: 11px; line-height: 1.6; }
@media (max-width: 1180px) {
  .care-workspace-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .care-workspace-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .care-workspace-head h2 { font-size: 20px; }
  .care-workspace-grid { gap: 12px; }
  .care-option-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .care-weekdays { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .care-option-grid label { font-size: 11px; }
  .care-form-actions button { width: 100%; }
  .care-training-grid { grid-template-columns: 1fr; gap: 11px; }
  .care-module { padding: 14px; }
}

/* Caregiver install links: optional app download after successful web registration */
.caregiver-app-links { margin-bottom: 17px; background: linear-gradient(120deg,#f7fbf8,#fff); }
.caregiver-app-actions { display:flex; flex-wrap:wrap; gap:10px; }
.caregiver-app-actions .secondary-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; text-decoration:none; padding:11px 16px; }
.caregiver-app-caveat { color:var(--muted); font-size:11px; line-height:1.5; margin:12px 0 0; }
@media (max-width:680px) { .caregiver-app-actions { flex-direction:column; }.caregiver-app-actions .secondary-button { width:100%; } }


/* Elite Bridge Care Continuity: secure chat + next-shift handoffs */
.care-web-chat { display:grid;gap:12px;max-width:920px;margin:auto; }
.care-web-chat-header {display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;}
.care-web-chat-header h2 {color:#11442c;font-size:20px;letter-spacing:-.02em;margin:0 0 5px;}
.care-web-chat-header p {color:#687b6e;font-size:12px;line-height:1.5;margin:0;}
.care-web-chat-header select {min-width:210px;max-width:100%;border:1px solid #d6e6da;background:#fff;border-radius:11px;padding:12px;color:#174b32;font-size:13px;font-weight:800;}
.care-web-thread {display:flex;flex-direction:column;gap:12px;max-height:480px;min-height:180px;overflow:auto;background:#f8fbf9;border:1px solid #e0e9e2;border-radius:16px;padding:16px;}
.care-web-bubble {max-width:85%;padding:13px 15px;border-radius:15px;background:#fff;border:1px solid #dde9df;align-self:flex-start;overflow-wrap:anywhere;}
.care-web-bubble.mine {background:#0a4a35;border-color:#0a4a35;align-self:flex-end;}
.care-web-bubble p {margin:0;color:#224b36;font-size:13px;line-height:1.6;white-space:pre-wrap;}
.care-web-bubble.mine p {color:#fff;}
.care-web-bubble small {display:block;color:#87998c;font-size:10px;margin-top:7px;}
.care-web-bubble.mine small {color:#c2e1d0;}
.care-web-chat-form {display:grid;gap:9px;}
.care-web-chat-form label,.care-web-handoffs label {font-size:12px;font-weight:850;color:#264e36;}
.care-web-chat-form textarea,.care-web-handoffs textarea,.care-web-handoffs select {width:100%;min-height:48px;border:1px solid #d4e4d8;background:#fff;border-radius:11px;padding:12px;color:#153d28;font:inherit;font-size:13px;}
.care-web-chat-form button {justify-self:start;min-height:42px;}
.care-web-handoffs {display:grid;grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr);gap:16px;align-items:start;}
.care-web-handoffs form {display:grid;gap:12px;}
.care-web-handoffs .surface-head {margin-bottom:12px;}
.care-web-handoffs h3 {font-size:15px;color:#0c432b;margin:21px 0 12px;}
.care-web-handoffs h3:first-child {margin-top:16px;}
.care-web-handoff-item {padding:13px;border:1px solid #dbe9de;border-radius:12px;margin-bottom:10px;background:#fbfdfc;}
.care-web-handoff-item p {white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.55;color:#2e4c39;margin:0 0 7px;font-weight:600;}
.care-web-handoff-item small {display:block;color:#6f8777;font-size:11px;}
.care-web-handoff-item button {margin-top:9px;min-height:37px;}
.care-web-completed {display:inline-block;font-size:11px;font-weight:900;color:#1b7a49;margin-top:7px;}
.care-web-disclaimer {font-size:11px;line-height:1.55;color:#6f8074;margin:8px 0 0;}
.care-web-placeholder {font-size:12px;line-height:1.65;color:#789083;padding:12px 4px;}
.care-web-error {color:#a53831;font-weight:700;font-size:12px;}
#careWebHandoffStatus:not(:empty),#careWebChatStatus:not(:empty){font-size:12px;padding:10px;border-radius:9px;background:#f2f8f3;}
@media(max-width:850px){.care-web-handoffs{grid-template-columns:1fr;}.care-web-chat-header{align-items:stretch;flex-direction:column;gap:12px;}.care-web-chat-header select{width:100%;max-width:none;}}
@media(max-width:480px){.care-web-thread{max-height:58vh;min-height:160px;padding:11px;}.care-web-bubble{max-width:92%;}.care-web-chat-form button{width:100%;}.care-web-handoffs{gap:12px;}}


/* Location-based visit checklist: clear, full-size tap targets for caregivers. */
.sitecheck-surface { margin-bottom:18px; }
.sitecheck-controls { display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,185px);gap:8px 14px;margin-top:12px;align-items:center; }
.sitecheck-controls label { display:block;font-size:11px;font-weight:850;color:#315741; }
.sitecheck-controls select { width:100%;padding:11px;border-radius:11px;background:#fff;border:1px solid #d5e4d9;color:#173f2a;font-size:13px;min-height:45px; }
.sitecheck-summary { padding:12px 14px;border-radius:11px;background:#edf7f0;color:#10492d;font-size:12px;font-weight:850;margin:15px 0;line-height:1.5; }
.sitecheck-task { margin:10px 0;padding:14px;border-radius:14px;border:1px solid #dce9e0;background:#fff; }
.sitecheck-task-head {display:flex;align-items:flex-start;gap:12px;}
.sitecheck-task-head > div {min-width:0;flex:1;}
.sitecheck-task-head strong {display:block;font-size:14px;line-height:1.4;color:#133c29;font-weight:850;}
.sitecheck-task-head p {font-size:12px;line-height:1.5;color:#667b6c;margin:5px 0 0;}
.sitecheck-tick { flex:0 0 32px;width:32px;height:32px;border-radius:11px;display:flex;align-items:center;justify-content:center;border:1px solid #d2e3d7;background:#f1f5f2;color:#9caea2;font-size:18px;font-weight:900; }
.sitecheck-tick.done {background:#e0f5e8;color:#0d7645;border-color:#b5dec5;}
.sitecheck-tick.na {background:#f3eee4;color:#856d45;border-color:#e2d8c5;}
.sitecheck-actions { display:flex;gap:7px;flex-wrap:wrap;margin:13px 0 0 44px; }
.sitecheck-actions button {min-height:42px;font-size:12px;padding:8px 12px;}
.sitecheck-meta,.sitecheck-last { font-size:11px;line-height:1.5;color:#24804b;margin-top:7px;font-weight:750; }
.sitecheck-last {color:#687c6f;font-weight:550;}
.sitecheck-frequency { display:inline-block;margin-top:9px;padding:5px 8px;background:#fef7e9;border-radius:7px;color:#916b2c;font-size:11px;font-weight:850; }
.sitecheck-finish {margin-top:18px;padding:17px;border-radius:14px;background:#f5faf6;border:1px solid #dcebe0;display:grid;gap:10px;}
.sitecheck-finish h3 {margin:0;font-size:16px;color:#0c482e;}
.sitecheck-finish p {font-size:12px;color:#697a6c;margin:0;line-height:1.5;}
.sitecheck-finish label {font-size:11px;color:#375b45;font-weight:850;}
.sitecheck-finish textarea {padding:12px;font-size:13px;border-radius:10px;border:1px solid #d5e4db;background:#fff;min-height:68px;resize:vertical;}
.sitecheck-finish button {min-height:46px;justify-self:start;}
.sitecheck-finish button:disabled {opacity:.55;cursor:not-allowed;}
.sitecheck-history-title {font-size:16px;color:#143e2b;margin:20px 0 8px;}
.sitecheck-signoff {padding:11px 13px;border-radius:11px;background:#f9fcfa;border:1px solid #e5eee7;font-size:11px;color:#697b6b;line-height:1.5;margin-bottom:8px;}
.sitecheck-signoff strong {color:#1a5132;}
.sitecheck-signoff p {margin:6px 0 0;color:#436450;font-size:12px;line-height:1.5;}
.team-management { margin-top:18px; }
.team-invite-form { display:grid;grid-template-columns:minmax(220px,1.3fr) minmax(150px,.8fr) auto;gap:12px;align-items:end;margin:18px 0 8px; }
.team-invite-form .field { margin:0; }
.team-invite-form input,.team-invite-form select,.organization-team-row select { width:100%;min-height:44px;padding:10px 12px;border:1px solid #d5e4d9;border-radius:10px;background:#fff;color:#173f2a; }
.organization-team-list { display:grid;gap:9px;margin-top:14px; }
.organization-team-list h3 { margin:12px 0 2px;color:#173f2a;font-size:14px; }
.organization-team-row { display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px;border:1px solid #e0eae3;border-radius:12px;background:#fbfdfb; }
.organization-team-row > div { display:grid;gap:3px;min-width:0; }
.organization-team-row strong,.organization-team-row span { overflow-wrap:anywhere; }
.organization-team-row > div span { color:#667a6b;font-size:12px; }
.organization-team-row > select { max-width:145px; }
.organization-team-row button { flex:0 0 auto; }
.team-invite-form[hidden] { display:none; }
@media(max-width:720px) {
 .team-invite-form { grid-template-columns:1fr; }
 .organization-team-row { align-items:stretch;flex-wrap:wrap; }
 .organization-team-row > select { max-width:none; }
}
@media(max-width:590px){
 .sitecheck-controls {grid-template-columns:1fr 1fr;gap:7px;}
 .sitecheck-controls select {font-size:12px;}
 .sitecheck-actions {margin-left:0;}
 .sitecheck-actions button {flex:1 1 95px;}
 .sitecheck-finish button {width:100%;}
}

/* AI Agent conversation workspace */
.agent-page-head{margin-bottom:28px}.agent-page-head .eyebrow{color:#a9783b;font-size:11px;font-weight:800;letter-spacing:.13em}
.agent-layout{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:22px;align-items:start;max-width:1120px}
.agent-chat{min-width:0;overflow:hidden;padding:0;border:1px solid #e6ebe7;border-radius:22px;background:#fff;box-shadow:0 18px 55px rgba(17,46,35,.07)}
.agent-chat-header{min-height:74px;display:flex;align-items:center;justify-content:space-between;padding:14px 22px;border-bottom:1px solid #edf0ee}
.agent-identity{display:flex;align-items:center;gap:12px;color:#153c30}.agent-mark,.agent-welcome-icon{display:grid;place-items:center;color:#b47c37;background:#fbf6ed}
.agent-mark{width:40px;height:40px;border-radius:13px}.agent-mark svg,.agent-welcome-icon svg{width:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.agent-identity strong{display:block;font-size:14px;font-weight:750}.agent-identity small{display:flex;align-items:center;gap:6px;margin-top:3px;color:#7b8881;font-size:11px}.agent-identity small i{width:6px;height:6px;border-radius:50%;background:#42a277}
.agent-new-chat{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #e6ebe7;border-radius:11px;color:#486055;background:#fff;font:inherit;font-size:12px;font-weight:650;cursor:pointer}.agent-new-chat:hover{background:#f7f9f7}.agent-new-chat svg{width:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.agent-conversation{min-height:390px;max-height:58vh;overflow:auto;padding:30px clamp(20px,5vw,58px);scroll-behavior:smooth}
.agent-welcome{max-width:590px;margin:12px auto 8px;text-align:center}.agent-welcome-icon{width:48px;height:48px;margin:0 auto 17px;border-radius:16px}.agent-welcome-icon svg{width:25px}
.agent-welcome h2{margin:0;color:#173d31;font-size:clamp(22px,3vw,28px);letter-spacing:-.035em}.agent-welcome>p{margin:9px auto 26px;max-width:460px;color:#79847e;font-size:14px;line-height:1.55}
.agent-prompt-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-width:530px;margin:0 auto}
.agent-prompt-list button{display:flex;align-items:center;gap:10px;min-height:47px;padding:10px 13px;border:1px solid #e7ece8;border-radius:12px;color:#43584e;background:#fff;text-align:left;font:inherit;font-size:12px;line-height:1.4;cursor:pointer;transition:border-color .18s,background .18s,transform .18s}
.agent-prompt-list button:hover{border-color:#b9cfbf;background:#f9fbf9;transform:translateY(-1px)}.agent-prompt-list button span{display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;border-radius:7px;color:#8a673a;background:#f8f2e8;font-size:12px}
.agent-transcript{display:grid;gap:22px;max-width:650px;margin:0 auto}.agent-transcript[hidden]{display:none}
.agent-user-message{justify-self:end;max-width:min(83%,500px);padding:13px 16px;border-radius:17px 17px 5px 17px;color:#173d31;background:#edf4ef;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.agent-assistant-message{display:flex;align-items:flex-start;gap:11px;color:#263d33}.agent-reply-avatar{display:grid;flex:0 0 29px;width:29px;height:29px;place-items:center;border-radius:10px;color:#a7773d;background:#faf3e8}
.agent-reply-body{min-width:0;padding-top:3px}.agent-reply-body>strong{display:block;margin-bottom:8px;color:#173d31;font-size:12px;font-weight:750}.agent-answer{margin:0;color:#45574e;font-size:14px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.agent-error{color:#9b423c}
.agent-thinking{display:flex;align-items:center;gap:5px;margin:0;color:#7d8982;font-size:13px}.agent-thinking span{width:5px;height:5px;border-radius:50%;background:#b4864d;animation:agentPulse 1s infinite ease-in-out}.agent-thinking span:nth-child(2){animation-delay:.15s}.agent-thinking span:nth-child(3){animation-delay:.3s}
@keyframes agentPulse{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.agent-composer{display:flex;align-items:flex-end;gap:10px;margin:0 22px;padding:10px 10px 10px 17px;border:1px solid #dfe7e1;border-radius:17px;background:#fff;box-shadow:0 5px 18px rgba(18,48,36,.055);transition:border-color .2s,box-shadow .2s}
.agent-composer:focus-within{border-color:#9bb7a4;box-shadow:0 0 0 3px rgba(48,102,75,.08)}.agent-composer textarea{flex:1;min-height:25px;max-height:110px;resize:vertical;border:0;outline:0;color:#253d32;background:transparent;font:inherit;font-size:13px;line-height:1.55}.agent-composer textarea::placeholder{color:#9aa49e}
.agent-composer button{display:grid;flex:0 0 36px;width:36px;height:36px;place-items:center;border:0;border-radius:12px;color:#fff;background:#174333;cursor:pointer;transition:background .18s,transform .18s}.agent-composer button:hover{background:#245944;transform:translateY(-1px)}.agent-composer button:disabled{opacity:.45;cursor:wait}.agent-composer button svg{width:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.agent-composer-note{margin:9px 22px 17px;color:#9aa39e;text-align:center;font-size:10px}
.agent-side{display:grid;gap:13px}.agent-info-card,.agent-privacy-card{padding:19px;border:1px solid #e6ebe7;border-radius:17px;background:#fff}.agent-info-card{background:linear-gradient(145deg,#f4f8f4,#fff 76%)}
.agent-info-icon{display:grid;width:31px;height:31px;place-items:center;margin-bottom:14px;border-radius:10px;color:#a7793f;background:#fbf3e7}.agent-info-card .eyebrow{margin:0 0 8px;color:#8c7654;font-size:9px;font-weight:800;letter-spacing:.12em}
.agent-info-card h2{margin:0;color:#173d31;font-size:17px;line-height:1.3;letter-spacing:-.025em}.agent-info-card>p:last-child{margin:9px 0 0;color:#718078;font-size:12px;line-height:1.65}
.agent-privacy-card h3{display:flex;align-items:center;gap:8px;margin:0 0 10px;color:#29483a;font-size:12px}.agent-privacy-card h3 svg{width:17px;fill:none;stroke:#4a8664;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.agent-privacy-card>p,.agent-privacy-card details p{margin:0;color:#77837c;font-size:11px;line-height:1.65}.agent-privacy-card details{margin-top:12px;padding-top:11px;border-top:1px solid #edf0ee}.agent-privacy-card summary{color:#53675c;font-size:11px;font-weight:700;cursor:pointer}.agent-privacy-card details p{margin-top:8px}
.agent-integrations-link{display:flex;align-items:center;justify-content:space-between;padding:9px 3px;border:0;color:#527461;background:transparent;text-align:left;font:inherit;font-size:11px;font-weight:700;cursor:pointer}.agent-integrations-link:hover{color:#173d31}.agent-integrations-link span{font-size:17px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.agent-layout{grid-template-columns:1fr}.agent-side{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-integrations-link{grid-column:1/-1}}
@media(max-width:620px){.agent-page-head{margin-bottom:17px}.agent-page-head h1{font-size:27px}.agent-layout{gap:14px}.agent-chat{border-radius:18px}.agent-chat-header{min-height:64px;padding:11px 14px}.agent-new-chat{padding:8px 10px;font-size:11px}.agent-conversation{min-height:350px;max-height:none;padding:25px 15px}.agent-welcome{margin-top:0}.agent-welcome>p{font-size:13px}.agent-prompt-list{grid-template-columns:1fr;gap:7px}.agent-prompt-list button{min-height:42px}.agent-composer{margin:0 12px;padding-left:12px}.agent-composer-note{margin-inline:12px}.agent-side{grid-template-columns:1fr}}

/* Deputy-inspired compact chat panel */
.agent-page-head{margin-bottom:20px}.agent-page-head h1{font-size:clamp(25px,3vw,33px)}.agent-layout{display:block;max-width:880px}.agent-chat{border-radius:20px;box-shadow:0 12px 38px rgba(17,46,35,.065)}
.agent-chat-header{min-height:68px;padding:12px 20px}.agent-conversation{min-height:220px;max-height:52vh;padding:24px clamp(18px,5vw,54px)}
.agent-welcome{max-width:680px;margin:2px auto 0;text-align:left}.agent-example-label{display:flex;align-items:center;gap:8px;margin:0 0 18px;color:#1b4535;font-size:16px;font-weight:750;letter-spacing:-.02em}.agent-example-label span{display:grid;width:26px;height:26px;place-items:center;border-radius:8px;color:#a7773d;background:#f9f2e7;font-size:13px}
.agent-sample-chat{display:grid;gap:12px;max-width:630px;margin-left:auto}.agent-sample-user{justify-self:end;max-width:86%;padding:12px 15px;border:1px solid #dce8df;border-radius:15px 15px 4px 15px;color:#214534;background:#eff6f1;text-align:left;font:inherit;font-size:13px;line-height:1.5;cursor:pointer}.agent-sample-user:hover{border-color:#adc8b6;background:#e9f2ec}
.agent-sample-reply{display:flex;align-items:flex-start;gap:9px;max-width:92%;color:#45574e}.agent-sample-reply p{margin:4px 0 0;font-size:13px;line-height:1.6}
.agent-reply-avatar{flex:0 0 27px;width:27px;height:27px;border-radius:9px;font-size:12px}
.agent-composer{margin:0 22px;padding:10px 10px 10px 15px;border-radius:15px}.agent-composer textarea{min-height:28px;font-size:13px}.agent-composer button{border-radius:10px}
.agent-quick-prompts{display:flex;flex-wrap:wrap;gap:8px;padding:12px 22px 5px}.agent-quick-prompts button{padding:8px 12px;border:1px solid #e5ebe6;border-radius:99px;color:#52675b;background:#fff;font:inherit;font-size:11px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}.agent-quick-prompts button:hover{border-color:#b6cbbc;background:#f7faf7}
.agent-footnote{display:flex;align-items:flex-start;gap:7px;margin:8px 22px 4px;color:#89958e;font-size:10px;line-height:1.5}.agent-footnote>span:first-child{color:#4c8666;font-size:12px}
.agent-data-details{margin:6px 22px 15px;color:#748179;font-size:10px}.agent-data-details summary{width:max-content;cursor:pointer}.agent-data-details p{max-width:630px;margin:7px 0 0;line-height:1.55}
@media(max-width:620px){.agent-page-head{margin-bottom:14px}.agent-layout{gap:0}.agent-chat{border-radius:17px}.agent-chat-header{padding:10px 13px}.agent-conversation{min-height:200px;padding:21px 15px}.agent-example-label{font-size:15px;margin-bottom:15px}.agent-sample-chat{gap:10px}.agent-sample-user{max-width:94%;font-size:12px}.agent-sample-reply p{font-size:12px}.agent-composer{margin:0 12px}.agent-quick-prompts{padding:11px 12px 4px}.agent-quick-prompts button{font-size:10px;padding:7px 10px}.agent-footnote{margin-inline:13px}.agent-data-details{margin-inline:13px}}

/* Prevent the AI chat view from exceeding the mobile viewport */
.agent-page,.agent-layout,.agent-chat,.agent-conversation,.agent-transcript{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.agent-conversation{overflow-x:hidden}
.agent-transcript{grid-template-columns:minmax(0,1fr)}
.agent-user-message{width:fit-content;min-width:0;max-width:min(85%,34rem);box-sizing:border-box;white-space:pre-wrap;overflow-wrap:anywhere}
.agent-assistant-message,.agent-reply-body{min-width:0;max-width:100%}
.agent-composer{width:calc(100% - 44px);min-width:0;box-sizing:border-box}
.agent-composer textarea{min-width:0}
.agent-quick-prompts{width:100%;min-width:0;box-sizing:border-box}
@media(max-width:620px){
 .agent-page,.agent-layout,.agent-chat{width:100%;max-width:100%;min-width:0}
 .agent-chat-header{min-width:0}
 .agent-composer{width:calc(100% - 24px);margin-inline:12px}
 .agent-quick-prompts{padding-inline:12px}
 .agent-user-message{max-width:88%}
}

/* Simple chat-first treatment, sized to mobile */
.agent-page{width:100%;min-width:0;max-width:100%;overflow-x:clip;box-sizing:border-box}
.agent-page-head{margin-bottom:16px}.agent-page-head h1{font-size:clamp(25px,3vw,32px)}.agent-page-head p{margin-top:5px}
.agent-layout{display:block;width:100%;min-width:0;max-width:800px}.agent-chat{display:block;width:100%;min-width:0;max-width:100%;overflow:hidden;box-sizing:border-box;border-radius:18px;box-shadow:0 8px 25px rgba(17,46,35,.06)}
.agent-chat-header{min-width:0;min-height:62px;padding:11px 16px}.agent-mark{flex:0 0 38px;width:38px;height:38px;border-radius:11px}.agent-mark svg,.agent-reply-avatar svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.agent-conversation{width:100%;min-width:0;max-width:100%;min-height:210px;max-height:50vh;box-sizing:border-box;overflow-x:hidden;padding:22px clamp(14px,4vw,32px)}
.agent-welcome{width:100%;min-width:0;max-width:620px;margin:0 auto;text-align:left}.agent-example-label{margin:0 0 13px;color:#52675b;font-size:12px;font-weight:700;letter-spacing:0}
.agent-sample-chat{width:100%;min-width:0;max-width:100%;gap:10px}.agent-sample-user{max-width:88%;white-space:normal;overflow-wrap:anywhere}
.agent-sample-reply{min-width:0;max-width:100%;align-items:flex-start}.agent-sample-reply p{min-width:0;margin-top:5px}
.agent-reply-avatar{display:grid;place-items:center;box-sizing:border-box}
.agent-transcript{display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;max-width:620px;margin:0 auto}
.agent-user-message{justify-self:end;width:fit-content;max-width:min(85%,32rem);min-width:0;box-sizing:border-box;white-space:pre-wrap;overflow-wrap:anywhere}
.agent-assistant-message,.agent-reply-body{min-width:0;max-width:100%}
.agent-composer{display:flex;width:auto;max-width:100%;min-width:0;box-sizing:border-box;margin:0 14px;padding:8px 8px 8px 13px;overflow:hidden}
.agent-composer textarea{display:block;flex:1 1 0%;width:1%;min-width:0;box-sizing:border-box;resize:none}
.agent-composer button{flex:0 0 36px;width:36px}
.agent-quick-prompts{display:flex;flex-wrap:wrap;width:100%;min-width:0;box-sizing:border-box;gap:7px;padding:10px 14px 2px}
.agent-quick-prompts button{min-width:0;max-width:100%;padding:7px 11px;font-size:11px;white-space:normal;overflow-wrap:anywhere}
.agent-footnote{margin:8px 14px 4px;font-size:10px}.agent-data-details{margin:5px 14px 13px;font-size:10px}
@media(max-width:620px){
 .agent-page,.agent-layout,.agent-chat{width:100%;min-width:0;max-width:100%}
 .agent-page-head{padding:0;margin-bottom:12px}.agent-page-head h1{font-size:25px}
 .agent-chat-header{padding-inline:12px}.agent-conversation{min-height:185px;max-height:none;padding:18px 13px}
 .agent-composer{width:auto;margin:0 12px;padding:7px 7px 7px 11px}
 .agent-composer textarea{font-size:14px}.agent-quick-prompts{padding-inline:12px}
 .agent-new-chat{padding:8px 9px;font-size:10px}
 .agent-user-message{max-width:88%}
}
