:root {
  --bg: #f5f7fa;
  --bg2: #ffffff;
  --card: rgba(255, 255, 255, 0.88);
  --card-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(15, 23, 42, 0.10);
  --text: #0f172a;
  --muted: #5f6b7f;
  --accent: #00a9e8;
  --accent-2: #e80070;
  --cta-gradient: linear-gradient(135deg, #00a9e8 0%, #e80070 100%);
  --warn: #d97706;
  --danger: #dc2626;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(0, 169, 232, 0.12), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(232, 0, 112, 0.09), transparent 24%),
    linear-gradient(180deg, #f8fafc, #f5f7fa 34%, #eef2f7 100%);
  color: var(--text);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  padding: 28px;
}

.shell {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
}

.workspace {
  position: relative;
  display: grid;
  gap: 26px;
  isolation: isolate;
}

.workspace::before,
.workspace::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  filter: blur(0.2px) saturate(1.1);
}

.workspace::before {
  width: min(54vw, 780px);
  height: min(54vw, 780px);
  right: -16vw;
  bottom: -22vw;
  background:
    radial-gradient(ellipse at 58% 42%, rgba(255, 255, 255, 0.34), transparent 0 18%, transparent 19%),
    linear-gradient(145deg, rgba(15, 158, 168, 0.86), rgba(20, 184, 166, 0.62) 48%, rgba(83, 74, 183, 0.48));
  border-radius: 86% 8% 78% 12%;
  transform: rotate(-33deg);
  box-shadow: -28px 26px 80px rgba(15, 158, 168, 0.22);
}

.workspace::after {
  width: min(34vw, 500px);
  height: min(34vw, 500px);
  right: -11vw;
  top: 28vh;
  background:
    radial-gradient(ellipse at 55% 42%, rgba(255, 255, 255, 0.28), transparent 0 17%, transparent 18%),
    linear-gradient(150deg, rgba(249, 115, 82, 0.78), rgba(255, 183, 27, 0.64) 58%, rgba(15, 158, 168, 0.22));
  border-radius: 10% 82% 12% 76%;
  transform: rotate(24deg);
  box-shadow: -20px 24px 70px rgba(249, 115, 82, 0.18);
}

.page-panel {
  position: relative;
  z-index: 1;
}

.hours-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.landing-preview-layout {
  display: grid;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.tasks-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.hours-main {
  min-width: 0;
}

.hours-layout.sidebar-open {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.hours-layout[data-sidebar-layout="staff"].sidebar-open,
.hours-layout[data-sidebar-layout="clients"].sidebar-open,
.hours-layout[data-sidebar-layout="schedule"].sidebar-open,
.hours-layout[data-sidebar-layout="products"].sidebar-open {
  grid-template-columns: minmax(0, 1fr);
}

.hours-sidebar {
  position: sticky;
  top: 18px;
}

.tasks-sidebar {
  position: sticky;
  top: 18px;
}

.staff-editor {
  scroll-margin-top: 18px;
}

.landing-preview-stage {
  min-width: 0;
}

.landing-preview-launchers {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.landing-preview-launchers h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing-preview-thumb {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.90));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.landing-preview-thumb:hover,
.landing-preview-thumb:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 158, 168, 0.30);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
  outline: none;
}

.landing-preview-thumb img {
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.landing-preview-thumb-body {
  display: grid;
  gap: 8px;
  align-content: center;
  padding-right: 6px;
}

.landing-preview-thumb-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-preview-thumb strong {
  font-size: 18px;
}

.landing-preview-thumb span:last-child {
  color: var(--muted);
  line-height: 1.45;
}

.landing-preview-frame-wrap {
  display: grid;
  place-items: start center;
  min-height: 760px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(15, 158, 168, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.92));
  overflow: auto;
}

.landing-preview-frame-wrap[data-viewport="desktop"] {
  place-items: stretch;
}

.landing-preview-frame-wrap[data-viewport="tablet"] {
  place-items: start center;
}

.landing-preview-frame-wrap[data-viewport="mobile"] {
  place-items: start center;
}

.landing-preview-frame-wrap iframe {
  display: block;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
}

.page-sidebar[hidden] {
  display: none !important;
}

.topbar {
  position: relative;
  z-index: 10000;
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.topbar-row {
  display: grid;
  grid-template-columns: auto auto;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.topbar-menu {
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.brand-logo {
  display: block;
  width: 235px;
  height: 72px;
  object-fit: contain;
}

.brand-name {
  display: none;
}

.menu {
  position: relative;
  z-index: 10001;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.menu.topbar-menu {
  justify-content: flex-start;
}

.menu-dropdown {
  position: relative;
  z-index: 10002;
}

.menu-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.menu-tab.active {
  background: linear-gradient(135deg, rgba(15, 158, 168, 0.14), rgba(249, 115, 82, 0.12));
  color: var(--text);
  border-color: rgba(15, 158, 168, 0.30);
}

.live-reports-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 4px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.live-reports-panel-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.live-reports-panel-choice input { accent-color: var(--accent); }

.live-reports-panel-choice.active {
  border-color: rgba(15, 158, 168, .35);
  background: rgba(15, 158, 168, .10);
  color: var(--ink);
}

.live-reports-clear {
  align-self: center;
  padding: 6px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.live-reports-clear:hover,
.live-reports-clear:focus-visible {
  transform: none;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.live-reports-clear:focus-visible { outline: 2px solid rgba(0, 169, 232, .38); outline-offset: 3px; }
.live-reports-clear:disabled { cursor: default; opacity: .45; }

.live-reports-head-actions { display: inline-flex; align-items: center; gap: 14px; }

.live-reports-full-refresh {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.live-reports-full-refresh:hover,
.live-reports-full-refresh:focus-visible { border-color: rgba(15, 118, 110, .42); background: rgba(15, 158, 168, .07); }
.live-reports-full-refresh:disabled { cursor: default; opacity: .55; }

.live-reports-cache-health-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.live-reports-cache-health-toggle:hover,
.live-reports-cache-health-toggle:focus-visible,
.live-reports-cache-health-toggle.is-open { border-color: rgba(15, 118, 110, .42); background: rgba(15, 158, 168, .07); }
.live-reports-cache-health-arrow { display: inline-block; color: #111827; font-size: 14px; line-height: 1; transition: transform .16s ease; }
.live-reports-cache-health-toggle.is-open .live-reports-cache-health-arrow { transform: rotate(180deg); }

.live-reports-client-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: -8px 0 20px;
  padding: 11px 0 13px;
  border-bottom: 1px solid var(--line);
}

.live-reports-client-filter > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.live-reports-client-filter label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}

.live-reports-client-filter input { accent-color: var(--accent); }
.live-reports-client-filter b { font-weight: 650; }

.live-reports-cache-health { margin: -6px 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .8); }
.live-reports-cache-health-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.live-reports-cache-health-head h3 { margin: 0; font-size: 13px; }
.live-reports-cache-health-head span { color: var(--muted); font-size: 11px; font-weight: 700; }
.live-reports-cache-health > .muted { display: block; margin: 0; padding: 12px 13px; font-size: 12px; }
.live-reports-cache-health .table-wrap { padding-bottom: 10px; scrollbar-gutter: stable; }
.live-reports-cache-health table { width: 100%; min-width: 760px; border-collapse: collapse; }
.live-reports-cache-health th, .live-reports-cache-health td { padding: 9px 12px; border-bottom: 1px solid rgba(226, 232, 240, .9); text-align: left; font-size: 12px; white-space: nowrap; }
.live-reports-cache-health th { color: var(--muted); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.live-reports-cache-health tbody tr:last-child td { border-bottom: 0; }
.live-reports-cache-mode { color: #0f766e; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.live-reports-cache-status { display: inline-flex; padding: 3px 6px; border-radius: 999px; font-size: 10px; font-weight: 750; }
.live-reports-cache-status.current { background: rgba(16, 185, 129, .12); color: #047857; }
.live-reports-cache-status.stale { background: rgba(245, 158, 11, .13); color: #a16207; }
.live-reports-cache-status.missing { background: rgba(100, 116, 139, .10); color: #64748b; }
.live-reports-cache-refresh { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 11px; font-weight: 700; }
.live-reports-cache-refresh:hover, .live-reports-cache-refresh:focus-visible { border-color: rgba(15, 118, 110, .42); background: rgba(15, 158, 168, .07); }

.live-reports-content {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.live-reports-loading {
  padding: 13px 16px;
  border-radius: 11px;
  background: linear-gradient(135deg, #0f766e, #0f9ea8);
  box-shadow: 0 8px 20px rgba(15, 118, 110, .18);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* The hub-level refresh status needs its own visual language from funnel headers. */
.live-reports-content > .live-reports-loading {
  background: linear-gradient(135deg, #4338ca, #6366f1);
  box-shadow: 0 8px 20px rgba(79, 70, 229, .2);
}

.schedule-live-report-loading { margin: 0 0 12px; }

.live-reports-stale,
.schedule-live-report-stale {
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 1px solid rgba(217, 119, 6, .28);
  border-radius: 9px;
  background: rgba(254, 243, 199, .62);
  color: #8a5b10;
  font-size: 12px;
  font-weight: 650;
}

.live-reports-funnel-panel,
.live-reports-resource {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.live-reports-funnel-panel > :not(.live-reports-funnel-head) { margin: 0; }
.live-reports-funnel-panel > .ef-funnel-kpi-grid,
.live-reports-funnel-panel > .ef-checkout-flow-card,
.live-reports-funnel-panel > .ef-stats-panel,
.live-reports-funnel-panel > .ef-tracker-report-card,
.live-reports-funnel-panel > .ef-breakdown-card,
.live-reports-funnel-panel > .ef-conversions-card,
.live-reports-funnel-panel > .ef-purchase-chart-card,
.live-reports-funnel-panel > .ef-tracker-table-card { border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }

.live-reports-funnel-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 12px 15px;
  background: linear-gradient(135deg, #0f766e, #0f9ea8);
  color: #fff;
}

.live-reports-funnel-head strong,
.live-reports-funnel-head span { font-size: 14px; }
.live-reports-funnel-head span { color: rgba(255, 255, 255, .88); }
.live-reports-funnel-head small { margin-left: auto; color: rgba(255, 255, 255, .76); font-size: 11px; font-weight: 650; white-space: nowrap; }
.live-reports-resource .sc-resource-head { padding: 12px 15px; border-bottom: 1px solid var(--line); }
.live-reports-resource .connection-resource-body { min-width: 0; max-width: 100%; padding: 0 15px 15px; }
.live-reports-panel-stack { display: grid; min-width: 0; max-width: 100%; }
.live-reports-panel-item { min-width: 0; max-width: 100%; padding: 16px; border-top: 1px solid var(--line); }
.live-reports-panel-item > h3 { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.live-reports-panel-item > :last-child { margin-bottom: 0; }

/* Data-heavy report panels must scroll internally rather than widen the page. */
.live-reports-panel-item > *,
.live-reports-panel-item .table-wrap,
.live-reports-panel-item .ef-tracker-table-wrap,
.live-reports-panel-item .ef-breakdown-table-wrap,
.live-reports-panel-item .ef-conversions-table-wrap,
.live-reports-overview > .table-wrap {
  min-width: 0;
  max-width: 100%;
}

.live-reports-panel-item .table-wrap,
.live-reports-panel-item .ef-tracker-table-wrap,
.live-reports-panel-item .ef-breakdown-table-wrap,
.live-reports-panel-item .ef-conversions-table-wrap,
.live-reports-overview > .table-wrap {
  width: 100%;
  overflow-x: auto;
}

/* Consistent section accordions inside the Live Reports workspace. */
[data-live-reports-content] .live-report-accordion-head {
  min-width: 0;
}

[data-live-reports-content] .live-report-accordion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

[data-live-reports-content] .live-report-accordion-toggle:hover,
[data-live-reports-content] .live-report-accordion-toggle:focus-visible {
  transform: none;
  background: transparent;
  color: var(--ink);
  outline: none;
}

[data-live-reports-content] .live-report-accordion-toggle:focus-visible {
  outline: 2px solid rgba(0, 169, 232, .38);
  outline-offset: 4px;
}

[data-live-reports-content] .live-report-accordion-toggle i {
  flex: 0 0 auto;
  color: #000;
  font-size: 23px;
  font-style: normal;
  line-height: .7;
  transition: transform .16s ease;
}

[data-live-reports-content] .live-report-accordion-toggle b {
  min-width: 0;
  color: inherit;
  font: inherit;
}

[data-live-reports-content] .live-reports-resource .live-report-accordion-toggle {
  font-size: 1.17em;
}

[data-live-reports-content] .ef-tracker-table-head .live-report-accordion-toggle {
  font-size: 17px;
}

[data-live-reports-content] .live-report-accordion-card.is-collapsed > :not(.live-report-accordion-head) {
  display: none;
}

[data-live-reports-content] .live-report-accordion-card.is-collapsed .live-report-accordion-toggle i {
  transform: rotate(-90deg);
}

.live-reports-overview {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.live-reports-overview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.live-reports-overview-head h3 { margin: 0; font-size: 14px; }
.live-reports-overview-head span { color: var(--muted); font-size: 12px; }
.live-reports-overview table { width: 100%; min-width: 1080px; border-collapse: collapse; }
.live-reports-overview th,
.live-reports-overview td { padding: 11px 13px; border-bottom: 1px solid rgba(226, 232, 240, .9); text-align: left; font-size: 12px; white-space: nowrap; }
.live-reports-overview th { color: var(--muted); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.live-reports-overview tbody tr:last-child td { border-bottom: 0; }

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10020;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.archive-menu {
  left: 0;
  right: auto;
  display: grid;
  gap: 6px;
  min-width: 210px;
}

.archive-menu[hidden] {
  display: none;
}

.archive-menu .menu-tab {
  width: 100%;
  text-align: left;
}

.command-dropdown {
  z-index: 10030;
}

.hamburger-overlay,
.menu-overlay,
.mobile-menu,
.mobile-nav {
  position: fixed;
  z-index: 10040;
}

.command-toggle {
  min-width: 112px;
}

.command-menu {
  width: 40vw;
  min-width: 400px;
  max-width: calc(100vw - 40px);
  display: grid;
  gap: 12px;
  padding: 12px;
}

.command-menu[hidden] {
  display: none;
}

.command-menu-compact {
  width: auto;
  min-width: 220px;
}

.command-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.command-grid {
  display: grid;
  align-items: stretch;
}

.command-grid-one {
  grid-template-columns: minmax(0, 1fr);
}

.command-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.command-grid-labeled {
  grid-template-columns: 112px repeat(2, minmax(0, 1fr));
}

.command-grid-danger {
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
}

.command-row-danger {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.command-label {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-row button {
  width: 100%;
  min-height: 42px;
  white-space: nowrap;
}

.account-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.settings-btn {
  border-color: rgba(15, 158, 168, 0.30);
  background: rgba(15, 158, 168, 0.08);
  color: #087b83;
}

.admin-settings-panel { max-width: 900px; }

.eyebrow {
  margin: 0 0 4px !important;
  color: var(--teal) !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.env-settings-form { display: grid; gap: 18px; }
.env-settings-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.env-setting-field {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(248, 251, 252, .72);
}

.env-setting-field > span {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
}

.env-setting-field small { color: var(--muted); font-size: 11px; }
.env-settings-status { min-height: 18px; margin: 0; font-size: 13px; }
.env-settings-status.stable { color: #087b62; }
.env-settings-status.warning { color: #b45309; }

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 9px 11px 9px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.account-chip:hover,
.account-chip:focus-visible {
  transform: translateY(-2px);
  border-color: transparent;
  background: var(--cta-gradient);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 169, 232, 0.22);
  outline: none;
}

.account-chip:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 169, 232, 0.24), 0 12px 24px rgba(0, 169, 232, 0.22);
}

.account-divider {
  width: 100%;
  margin: 20px 0 4px;
  border: 0;
  border-top: 1px solid var(--line);
}

.account-permissions-list { display: grid; gap: 8px; margin-top: 14px; }
.account-permission-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.account-permission-row > div { display: grid; gap: 2px; min-width: 0; }
.account-permission-row span { color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }
.account-permission-row select { min-width: 112px; }

.account-name {
  font-weight: 800;
}

.account-settings-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.panel {
  background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(15, 158, 168, 0.10);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.panel {
  padding: 18px;
  margin-top: 18px;
}

.controls-panel {
  margin-bottom: 40px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.page-panel {
  display: none;
}

.page-panel.active {
  display: block;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 14px;
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 20px;
}

.page-panel[data-page="activity"] .panel-head { align-items: center; }

.activity-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.activity-search-field {
  display: flex;
  align-items: center;
  min-width: 218px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #dce3ea;
  border-radius: 10px;
  background: #f8fafc;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.activity-search-field svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-right: 8px;
  fill: none;
  stroke: #8b98a8;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.activity-search-field:focus-within {
  border-color: rgba(15,158,168,.72);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15,158,168,.12);
}

.activity-search-field input,
.activity-filters select {
  margin: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.activity-search-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.activity-search-field input::placeholder { color: #95a1b0; }

.activity-filters select {
  min-width: 128px;
  height: 38px;
  padding: 0 31px 0 12px;
  appearance: none;
  border: 1px solid #dce3ea;
  border-radius: 10px;
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b98a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.activity-filters select:hover { border-color: #c5d0db; background-color: #fff; }
.activity-filters select:focus { border-color: rgba(15,158,168,.72); background-color: #fff; box-shadow: 0 0 0 3px rgba(15,158,168,.12); }

.activity-table .activity-when { width: 178px; min-width: 178px; white-space: nowrap; }
.activity-changes { display: grid; gap: 6px; min-width: 250px; }
.activity-change { display: flex; align-items: baseline; gap: 10px; }
.activity-change-field { flex: 0 0 116px; color: var(--muted); font-size: 11px; font-weight: 750; }
.activity-change-values { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; font-size: 12px; line-height: 1.35; }
.activity-change-before { color: #8b98a8; text-decoration: line-through; text-decoration-color: #cbd5df; }
.activity-change-arrow { color: #a7b2bf; font-size: 13px; }
.activity-change-after { color: var(--text); font-weight: 650; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .page-panel[data-page="activity"] .panel-head { align-items: stretch; flex-direction: column; }
  .activity-filters { justify-content: flex-start; }
  .activity-search-field { flex: 1 1 100%; }
}

.schedule-accordion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.schedule-accordion-toggle:hover,
.schedule-accordion-toggle:focus-visible {
  transform: none;
  border: 0;
  color: var(--text);
  outline: none;
}

.schedule-accordion-toggle:focus-visible {
  outline: 2px solid rgba(0, 169, 232, 0.42);
  outline-offset: 4px;
}

.schedule-accordion-triangle {
  color: #000000;
  font-size: 26px;
  line-height: 1;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
}

.page-new-btn {
  white-space: nowrap;
}

.controls {
  display: grid;
  grid-template-columns: 1.5fr 0.6fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span {
  color: var(--muted);
  font-size: 13px;
}

.field input[type="file"],
.field select,
.field input[type="search"],
.field input[type="number"],
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="date"],
.field input[type="url"],
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field input[type="file"]:hover,
.field select:hover,
.field input[type="search"]:hover,
.field input[type="number"]:hover,
.field input[type="text"]:hover,
.field input[type="email"]:hover,
.field input[type="password"]:hover,
.field input[type="url"]:hover,
.field textarea:hover {
  border-color: rgba(15, 158, 168, 0.28);
  background: #fff;
}

.field input[type="file"]:focus,
.field select:focus,
.field input[type="search"]:focus,
.field input[type="number"]:focus,
.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field input[type="password"]:focus,
.field input[type="url"]:focus,
.field textarea:focus,
.field input[type="file"]:focus-visible,
.field select:focus-visible,
.field input[type="search"]:focus-visible,
.field input[type="number"]:focus-visible,
.field input[type="text"]:focus-visible,
.field input[type="email"]:focus-visible,
.field input[type="password"]:focus-visible,
.field input[type="url"]:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: rgba(15, 158, 168, 0.64);
  box-shadow: 0 0 0 4px rgba(15, 158, 168, 0.12);
  background: #fff;
}

.field input[type="date"] {
  position: relative;
  min-height: 48px;
  padding-right: 46px;
  color-scheme: light;
  letter-spacing: 0.01em;
}

.field input[type="date"]:hover {
  border-color: rgba(15, 158, 168, 0.28);
  background: #fff;
}

.field input[type="date"]:focus,
.field input[type="date"]:focus-visible {
  outline: none;
  border-color: rgba(15, 158, 168, 0.64);
  box-shadow: 0 0 0 4px rgba(15, 158, 168, 0.12);
  background: #fff;
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  width: 22px;
  height: 22px;
  margin-right: -32px;
  padding: 9px;
  border-radius: 12px;
  background-color: rgba(15, 158, 168, 0.10);
  cursor: pointer;
  opacity: 0.85;
}

.field input[type="date"]::-webkit-calendar-picker-indicator:hover {
  background-color: rgba(15, 158, 168, 0.18);
  opacity: 1;
}

.field input[type="date"]::-webkit-datetime-edit {
  color: var(--text);
}

.field input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.field input[type="date"]::-webkit-datetime-edit-text {
  color: var(--muted);
  padding: 0 2px;
}

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

.editor-form,
.login-form {
  display: grid;
  gap: 12px;
}

.editor-grid {
  display: grid;
  gap: 12px;
}

.staff-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.staff-list {
  margin-top: 20px;
}

.staff-table {
  min-width: 720px;
}

.schedule-table {
  min-width: 1380px;
  table-layout: fixed;
}

.schedule-table th[class*="schedule-column-"],
.schedule-table td[class*="schedule-column-"] {
  width: auto;
  min-width: 0;
}

.schedule-table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule-columns-control {
  position: relative;
}

.hours-layout[data-sidebar-layout="schedule"] {
  position: relative;
  z-index: 3;
}

.schedule-columns-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 7px;
  min-width: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg2);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.16);
}

.schedule-columns-menu[hidden] {
  display: none;
}

.schedule-columns-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.completed-projects-panel {
  position: relative;
  z-index: 1;
  margin-top: 20px;
}

.schedule-completed {
  text-align: center;
  vertical-align: middle;
}

.schedule-completed input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.schedule-completion-dialog {
  width: min(390px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.schedule-completion-dialog::backdrop {
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(3px);
}

.schedule-completion-dialog > div {
  padding: 22px;
}

.schedule-completion-dialog h3 {
  margin: 0;
  font-size: 19px;
}

.schedule-completion-dialog p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.schedule-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 150px;
}

.schedule-table .schedule-column-name {
  width: 180px;
  min-width: 180px;
}

.schedule-project-name {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.schedule-project-title {
  font-weight: 700;
}

.schedule-gantt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 4px 8px 4px 6px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.07);
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.schedule-gantt-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.schedule-gantt-toggle:hover,
.schedule-gantt-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.34);
  background: rgba(14, 165, 233, 0.13);
  color: #075985;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.13);
  outline: none;
}

.schedule-gantt-toggle[aria-expanded="true"] {
  border-color: rgba(2, 132, 199, 0.40);
  background: #0284c7;
  color: #fff;
}

.schedule-gantt-toggle:focus-visible {
  outline: 2px solid rgba(0, 169, 232, 0.42);
  outline-offset: 3px;
}

.schedule-links-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 6px;
  border: 1px solid rgba(100, 116, 139, .2);
  border-radius: 999px;
  background: rgba(100, 116, 139, .07);
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.schedule-links-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.schedule-links-toggle:hover,
.schedule-links-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(71, 85, 105, .36);
  background: rgba(100, 116, 139, .14);
  color: #334155;
  box-shadow: 0 4px 10px rgba(71, 85, 105, .12);
  outline: none;
}

.schedule-links-toggle[aria-expanded="true"] {
  border-color: rgba(71, 85, 105, .45);
  background: #475569;
  color: #fff;
}

.schedule-links-toggle:focus-visible {
  outline: 2px solid rgba(71, 85, 105, .38);
  outline-offset: 3px;
}

.schedule-products-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 6px;
  border: 1px solid rgba(124, 58, 237, .2);
  border-radius: 999px;
  background: rgba(124, 58, 237, .07);
  color: #6d28d9;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.schedule-products-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.schedule-products-toggle:hover,
.schedule-products-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(109, 40, 217, .36);
  background: rgba(124, 58, 237, .14);
  color: #5b21b6;
  box-shadow: 0 4px 10px rgba(109, 40, 217, .12);
  outline: none;
}

.schedule-products-toggle[aria-expanded="true"] {
  border-color: rgba(109, 40, 217, .45);
  background: #6d28d9;
  color: #fff;
}

.schedule-products-toggle:focus-visible {
  outline: 2px solid rgba(109, 40, 217, .38);
  outline-offset: 3px;
}

.schedule-gantt-row > td {
  padding: 0 14px 16px;
  background: rgba(248, 250, 252, 0.72);
}

.schedule-links-row > td {
  padding: 0 14px 16px;
  background: rgba(248, 250, 252, 0.72);
}

.schedule-expanded-panel {
  position: sticky;
  left: 0;
  width: var(--schedule-expanded-width, calc(100vw - 48px));
  max-width: 100%;
  box-sizing: border-box;
  overflow: auto;
  padding-bottom: 14px;
  scrollbar-gutter: stable;
}

.schedule-expanded-panel > .schedule-gantt-chart {
  width: 100%;
  min-width: var(--gantt-content-width, 0px);
}

.schedule-expanded-panel > .schedule-project-links {
  width: 100%;
  min-width: 0;
}

.schedule-live-report-panel {
  position: sticky;
  left: 0;
  width: var(--schedule-live-report-width, calc(100vw - 48px));
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 12px;
  background: #fff;
  padding: 18px;
}

.schedule-live-report-panel > .muted,
.schedule-live-report-panel > .sc-empty {
  display: block;
  padding: 4px;
}

.schedule-live-report-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 12px;
}

.schedule-live-report-title span {
  color: var(--muted);
  font-size: .8rem;
}

.schedule-project-links {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 11px;
  background: #fff;
}

.schedule-project-links > div {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 35px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, .9);
}

.schedule-project-links > div:last-child { border-bottom: 0; }
.schedule-project-links span { color: var(--muted); font-size: 11px; font-weight: 800; }
.schedule-project-links label { color: var(--muted); font-size: 11px; font-weight: 800; }
.schedule-project-links a { min-width: 0; overflow: hidden; color: #0369a1; font-size: 12px; font-weight: 650; text-decoration: underline; text-overflow: ellipsis; white-space: nowrap; }
.schedule-project-links em { color: var(--muted); font-size: 12px; font-style: normal; }
.schedule-project-links input[type="url"] { width: 100%; min-width: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); font: inherit; font-size: 12px; }
.schedule-project-links .schedule-links-actions { display: flex; justify-content: flex-start; gap: 8px; min-height: auto; padding: 9px 10px; background: rgba(248, 250, 252, .76); }
.schedule-links-actions button { padding: 6px 10px; border-radius: 8px; font-size: 12px; }

.schedule-link-item {
  grid-template-columns: 135px minmax(0, 1fr) auto !important;
}

.schedule-link-name,
.schedule-link-empty {
  width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.schedule-link-name:hover,
.schedule-link-name:focus-visible,
.schedule-link-empty:hover,
.schedule-link-empty:focus-visible {
  color: #0369a1;
  text-decoration: underline;
  outline: none;
  transform: none;
}

.schedule-link-empty { font-size: 12px; font-weight: 500; }
.schedule-link-actions { display: inline-flex; gap: 5px; }
.schedule-link-actions button { padding: 4px 7px; border-radius: 6px; font-size: 11px; }

.schedule-link-dialog {
  width: min(420px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.schedule-link-dialog::backdrop { background: rgba(15, 23, 42, .32); }
.schedule-link-dialog form { display: grid; gap: 12px; padding: 20px; }
.schedule-link-dialog h3 { margin: 0; font-size: 19px; }
.schedule-link-dialog .field { margin: 0; }

.schedule-gantt-chart {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.gantt-timescale {
  display: grid;
  grid-template-columns: 90px minmax(240px, 1fr) 190px;
  gap: 12px;
  align-items: end;
  padding-bottom: 2px;
}

.gantt-timescale-ticks {
  position: relative;
  height: 17px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.gantt-timescale-axis {
  position: relative;
  display: grid;
  gap: 5px;
}

.gantt-weekday-labels {
  position: relative;
  height: 12px;
  color: rgba(95, 107, 127, 0.52);
  font-size: 10px;
  font-weight: 700;
}

.gantt-weekday-labels span {
  position: absolute;
  left: var(--gantt-day-left);
  width: var(--gantt-day-width);
  text-align: center;
}

.gantt-timescale-ticks span {
  position: absolute;
  top: 0;
  left: var(--gantt-tick-left);
  transform: translateX(-50%);
  white-space: nowrap;
}

.gantt-timescale-ticks span::after {
  content: '';
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  height: 4px;
  border-left: 1px solid rgba(15, 23, 42, 0.20);
}

.gantt-timescale-ticks span.is-weekend-tick::after {
  height: 20px;
  border-color: rgba(15, 23, 42, 0.14);
}

.gantt-phase-row {
  display: grid;
  grid-template-columns: 90px minmax(240px, 1fr) 190px;
  gap: 12px;
  align-items: center;
  min-height: 30px;
}

.gantt-phase-label {
  position: relative;
}

.gantt-phase-label > button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.gantt-phase-label > button:hover,
.gantt-phase-label > button:focus-visible {
  transform: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  outline: none;
}

.gantt-track {
  position: relative;
  height: 18px;
  overflow: visible;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.07);
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.11) 1px, transparent 1px);
  background-size: var(--gantt-day-width, 100%) 100%;
}

.gantt-bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: var(--gantt-left);
  width: var(--gantt-width);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #38bdf8;
  cursor: pointer;
  touch-action: pan-x;
  overflow: hidden;
}

.gantt-bar:hover,
.gantt-bar:focus-visible {
  transform: none;
  border: 0;
  filter: brightness(0.93) saturate(1.12);
  outline: 2px solid rgba(15, 23, 42, 0.30);
  outline-offset: 2px;
}

.gantt-bar.is-dragging {
  cursor: grabbing;
  opacity: 0.82;
}

.gantt-bar.is-resizing {
  cursor: ew-resize;
  opacity: 0.9;
}

.gantt-bar-resize-handle {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: opacity 120ms ease;
}

.gantt-bar-resize-handle.is-start { left: 1px; }
.gantt-bar-resize-handle.is-end { right: 1px; }

.gantt-bar-resize-handle:hover,
.gantt-bar.is-resizing .gantt-bar-resize-handle {
  opacity: 1;
}

.gantt-weekend-band {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: var(--gantt-day-left);
  width: var(--gantt-day-width);
  background: rgba(15, 23, 42, 0.08);
}

.gantt-bar {
  z-index: 1;
}

.gantt-today-marker {
  position: absolute;
  z-index: 2;
  top: -2px;
  bottom: -2px;
  left: var(--gantt-today-left);
  width: 2px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.88);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.74);
  pointer-events: none;
}

.gantt-today-marker.is-axis {
  top: 0;
  bottom: -4px;
}

.gantt-today-marker.is-axis::before {
  content: 'Today';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  color: #0284c7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transform: translateX(-50%);
}

.gantt-track:has(.gantt-bar:hover) {
  z-index: 4;
}

.gantt-bar-tooltip {
  position: absolute;
  z-index: 5;
  left: var(--gantt-tooltip-left);
  bottom: calc(100% + 7px);
  max-width: 190px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: nowrap;
}

.gantt-bar:hover + .gantt-bar-tooltip,
.gantt-bar:focus-visible + .gantt-bar-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.gantt-bar:has(.gantt-bar-resize-handle:hover) + .gantt-bar-tooltip {
  opacity: 0;
}

.gantt-bar-weekend {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: var(--gantt-bar-day-left);
  width: var(--gantt-bar-day-width);
  background: rgba(255, 255, 255, 0.56);
  pointer-events: none;
}

.gantt-phase-script .gantt-bar { background: #a78bfa; }
.gantt-phase-design .gantt-bar { background: #f472b6; }
.gantt-phase-build .gantt-bar { background: #fb923c; }
.gantt-phase-feedback .gantt-bar { background: #facc15; }
.gantt-phase-revisions .gantt-bar { background: #c084fc; }
.gantt-phase-qa .gantt-bar { background: #34d399; }
.gantt-phase-approval .gantt-bar { background: #60a5fa; }

.gantt-empty,
.gantt-date-range {
  color: var(--muted);
  font-size: 12px;
}

.gantt-empty {
  align-self: center;
  margin-left: 10px;
}

.gantt-phase-editor {
  position: fixed;
  z-index: 1000;
  top: var(--gantt-editor-top);
  left: var(--gantt-editor-left);
  display: grid;
  gap: 8px;
  width: 250px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg2);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.gantt-phase-editor.is-above {
  transform: translateY(calc(-100% - 8px));
}

.gantt-owner-field {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.gantt-owner-field select {
  width: 100%;
  min-height: 33px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}

.gantt-trello-link {
  justify-self: start;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gantt-trello-link:hover,
.gantt-trello-link:focus-visible {
  color: var(--accent);
}

.gantt-trello-link.is-unavailable {
  color: rgba(95, 107, 127, 0.68);
  cursor: default;
  text-decoration: none;
}

.gantt-date-field {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.gantt-phase-editor input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.gantt-date-trigger {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}

.gantt-date-trigger:hover,
.gantt-date-trigger:focus-visible {
  transform: none;
  border-color: rgba(0, 169, 232, 0.52);
  background: #ffffff;
  outline: none;
}

.gantt-calendar {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.9);
}

.gantt-calendar-head {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  margin-bottom: 6px;
  text-align: center;
}

.gantt-calendar-head strong {
  color: var(--text);
  font-size: 12px;
}

.gantt-calendar-head button {
  padding: 2px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 21px;
  line-height: 1;
}

.gantt-calendar-head button:hover,
.gantt-calendar-head button:focus-visible {
  transform: none;
  border: 0;
  background: rgba(15, 23, 42, 0.07);
  outline: none;
}

.gantt-calendar-weekdays,
.gantt-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.gantt-calendar-weekdays {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.gantt-calendar-day,
.gantt-calendar-blank {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
}

.gantt-calendar-day {
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 11px;
}

.gantt-calendar-day:hover,
.gantt-calendar-day:focus-visible {
  transform: none;
  border: 0;
  background: rgba(0, 169, 232, 0.14);
  color: var(--text);
  outline: none;
}

.gantt-calendar-day.selected {
  background: var(--cta-gradient);
  color: #ffffff;
}

.gantt-editor-actions {
  display: flex;
  gap: 6px;
}

.gantt-editor-actions button {
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12px;
}

.schedule-table th {
  position: relative;
}

.schedule-table th:hover {
  z-index: 4;
}

.schedule-column-move-handle {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin: 0 1px 0 5px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(15, 23, 42, .38);
  cursor: grab;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, color .14s ease, background .14s ease;
  vertical-align: -2px;
}

.schedule-column-move-handle svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.schedule-table th:hover .schedule-column-move-handle,
.schedule-column-move-handle:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.schedule-column-move-handle:hover,
.schedule-column-move-handle:focus-visible {
  border: 0;
  background: rgba(15, 23, 42, .06);
  color: rgba(15, 23, 42, .8);
  outline: none;
  transform: none;
}

.schedule-column-move-handle:focus-visible {
  outline: 2px solid rgba(0, 169, 232, .42);
  outline-offset: 2px;
}

.schedule-table th.is-column-dragging { opacity: .45; }
.schedule-table th.is-column-drag-over { box-shadow: inset 3px 0 0 rgba(15, 23, 42, .45); }

.schedule-column-resizer {
  position: absolute;
  z-index: 3;
  top: 5px;
  right: -5px;
  bottom: 5px;
  width: 10px;
  cursor: col-resize;
}

.schedule-column-resizer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 1px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.24);
  opacity: 0;
  transition: opacity 120ms ease;
}

.schedule-column-resizer-arrow {
  position: absolute;
  top: 50%;
  color: rgba(15, 23, 42, 0.30);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 120ms ease;
}

.schedule-column-resizer-arrow.is-left { left: -2px; }
.schedule-column-resizer-arrow.is-right { left: 12px; }

.schedule-table th:hover .schedule-column-resizer::after,
.schedule-column-resizer:hover::after,
.schedule-table.is-resizing-columns .schedule-column-resizer.is-active::after {
  opacity: 1;
}

.schedule-table th:hover .schedule-column-resizer-arrow,
.schedule-column-resizer:hover .schedule-column-resizer-arrow,
.schedule-table.is-resizing-columns .schedule-column-resizer.is-active .schedule-column-resizer-arrow {
  opacity: 1;
}

.schedule-sort-button {
  margin-left: 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000000;
  font-size: 15px;
  line-height: 1;
  opacity: 0;
  transform: translateY(-1px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.schedule-table th:hover .schedule-sort-button,
.schedule-sort-button:focus-visible {
  opacity: 1;
}

.schedule-sort-button:hover,
.schedule-sort-button:focus-visible {
  border: 0;
  background: transparent;
  color: #000000;
  transform: translateY(-1px);
  outline: none;
}

.schedule-sort-button:focus-visible {
  outline: 2px solid rgba(0, 169, 232, 0.42);
  outline-offset: 3px;
}

.schedule-sort-button.is-descending {
  transform: translateY(-1px) rotate(180deg);
}

.schedule-product-card {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.schedule-product-name {
  font: inherit;
  line-height: inherit;
}

.schedule-product-image {
  width: 63px;
  height: 63px;
  border-radius: 8px;
  object-fit: cover;
}

.schedule-goal {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.schedule-goal-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.schedule-goal.expanded .schedule-goal-text {
  display: block;
  overflow: visible;
  white-space: pre-wrap;
}

.schedule-goal-toggle {
  margin-top: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.schedule-trello-link {
  color: inherit;
  font-size: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.schedule-trello-link:hover,
.schedule-trello-link:focus-visible {
  color: var(--teal);
}

.schedule-trello-value {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  text-align: left;
}

.schedule-trello-value.is-linked {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.schedule-trello-value:hover,
.schedule-trello-value:focus-visible {
  color: var(--teal);
  outline: none;
}

.schedule-trello-picker input {
  width: 100%;
  min-width: 130px;
  padding: 3px 5px;
  border: 1px solid rgba(14, 165, 233, 0.45);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: inherit;
}

.schedule-ad-partner {
  display: grid;
  gap: 3px;
}

.schedule-contact {
  position: relative;
  display: inline-block;
}

.schedule-contact-name,
.schedule-assignment-value {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: inherit;
}

.schedule-contact-name:hover,
.schedule-contact-name:focus-visible,
.schedule-assignment-value:hover,
.schedule-assignment-value:focus-visible {
  transform: none;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  outline: none;
}

.schedule-contact-name:focus-visible,
.schedule-assignment-value:focus-visible {
  outline: 2px solid rgba(0, 169, 232, 0.42);
  outline-offset: 3px;
}

.schedule-assignment-picker input {
  width: 100%;
  min-width: 0;
  padding: 3px 5px;
  border: 1px solid rgba(14, 165, 233, 0.45);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
  line-height: 1.35;
  outline: none;
}

.schedule-client-picker {
  display: grid;
  gap: 5px;
  min-width: 150px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

.schedule-client-picker label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.schedule-client-picker input { accent-color: var(--accent); }

.schedule-contact-bubble {
  position: absolute;
  z-index: 150;
  top: calc(100% + 7px);
  left: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg2);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
  white-space: nowrap;
}

.schedule-contact-bubble[hidden] {
  display: none;
}

.schedule-contact-bubble a {
  color: var(--text);
  font-size: 13px;
  text-decoration: underline;
}

.schedule-table .schedule-column-manager,
.schedule-table .schedule-column-ad_partner,
.schedule-table .schedule-column-writer,
.schedule-table .schedule-column-designer,
.schedule-table .schedule-column-developer,
.schedule-table .schedule-column-qa,
.schedule-table .schedule-column-approval {
  width: 160px;
  min-width: 160px;
}

.schedule-table th[class*="schedule-column-"],
.schedule-table td[class*="schedule-column-"] {
  width: auto;
  min-width: 0;
}

.schedule-priority {
  min-width: 68px;
  border-radius: 999px;
  font-weight: 800;
}

.priority-tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.priority-low {
  border-color: rgba(21, 128, 61, 0.28) !important;
  background: rgba(22, 163, 74, 0.12) !important;
  color: #15803d !important;
}

.priority-regular {
  border-color: rgba(3, 105, 161, 0.28) !important;
  background: rgba(14, 165, 233, 0.12) !important;
  color: #0369a1 !important;
}

.priority-urgent {
  border-color: rgba(185, 28, 28, 0.28) !important;
  background: rgba(239, 68, 68, 0.12) !important;
  color: #b91c1c !important;
}

.schedule-priority option {
  background: #ffffff;
  color: var(--text);
}

.schedule-priority-value {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
}

.schedule-priority-value:hover,
.schedule-priority-value:focus-visible {
  transform: none;
  border: 0;
  color: var(--accent);
  text-decoration: underline;
  outline: none;
}

.schedule-priority-value:focus-visible {
  outline: 2px solid rgba(0, 169, 232, 0.35);
  outline-offset: 3px;
}

.schedule-ad-partner strong {
  font-size: inherit;
}

.schedule-ad-partner span {
  color: var(--muted);
  font-size: inherit;
}

.schedule-table .schedule-product-card .tag,
.schedule-table .schedule-column-clients .tag {
  font-size: inherit;
  font-weight: inherit;
}

.product-tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
}

.product-tag-picker label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}

.products-table {
  min-width: 620px;
}

.product-thumb {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.staff-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  white-space: nowrap;
}

.team-permission-select {
  appearance: none;
  min-width: 98px;
  padding: 5px 26px 5px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 12px) 52% / 5px 5px no-repeat, linear-gradient(135deg, currentColor 50%, transparent 50%) calc(100% - 8px) 52% / 5px 5px no-repeat;
  font: 650 0.78rem/1.2 inherit;
  letter-spacing: .01em;
  cursor: pointer;
}

.team-permission-select.permission-admin { color: #6d28d9; background-color: #f5f3ff; }
.team-permission-select.permission-editor { color: #0369a1; background-color: #f0f9ff; }
.team-permission-select.permission-viewer { color: #64748b; background-color: #f8fafc; }
.team-permission-select.permission-client { color: #047857; background-color: #ecfdf5; }
.team-permission-select:focus-visible { outline: 3px solid rgba(37, 99, 235, .2); outline-offset: 2px; }

.team-role {
  color: var(--muted);
  font: inherit;
}

.team-client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-client-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid rgba(14, 116, 144, .16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236, 254, 255, .92), rgba(240, 249, 255, .82));
  color: #0f5f70;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
}

.product-client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-client-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid rgba(14, 116, 144, .16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236, 254, 255, .92), rgba(240, 249, 255, .82));
  color: #0f5f70;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
}

.client-visibility-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.client-visibility-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid rgba(124, 58, 237, .16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 243, 255, .94), rgba(250, 245, 255, .86));
  color: #6d28d9;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}

.editor-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.editor-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.hour-item {
  padding: 0;
  overflow: hidden;
}

.hour-details {
  display: block;
}

.hour-details > summary {
  list-style: none;
}

.hour-details > summary::-webkit-details-marker {
  display: none;
}

.hour-summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 110px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.hour-desc {
  min-width: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hour-hours {
  justify-self: end;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 700;
}

.hour-approved {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  user-select: none;
}

.hour-approved input {
  width: 18px;
  height: 18px;
}

.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;
}

.hour-body {
  padding: 14px 16px 16px;
}

.week-accordion {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  padding: 10px 14px;
}

.week-accordion > summary {
  cursor: pointer;
  font-weight: 800;
}

.day-stack {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.day-block h4 {
  margin: 0 0 12px;
  font-size: 16px;
}

.meta-row,
.task-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

form[data-resource="fixes"].task-item,
form[data-resource="tests"].task-item {
  padding: 0;
  overflow: hidden;
}

.task-accordion {
  display: block;
}

.task-accordion > summary {
  list-style: none;
}

.task-accordion > summary::-webkit-details-marker {
  display: none;
}

.task-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.task-summary-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.task-summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.task-summary-name {
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.task-summary-copy {
  display: block;
  max-width: min(860px, 100%);
  overflow: hidden;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.62;
  margin-top: 2px;
  white-space: pre-line;
}

.task-summary-progress {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 160px;
}

.task-summary-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  min-width: 0;
}

.progress-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(15, 158, 168, 0.10);
  padding: 5px 10px;
  border-radius: 999px;
}

.progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.08);
}

.progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.field .star-rating {
  margin-top: 4px;
}

.star-rating--control {
  flex-wrap: wrap;
}

.star-rating--control .star-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: rgba(15, 23, 42, 0.18);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating--control .star-button.active {
  color: var(--accent);
}

.star-rating--control .star-button:hover {
  transform: translateY(-1px);
}

.star-rating--control input[type="hidden"] {
  display: none;
}

.task-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}

.priority-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 158, 168, 0.10);
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
}

.running-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 82, 0.14);
  color: #c2410c;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.approval-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 158, 168, 0.18);
  background: rgba(15, 158, 168, 0.08);
  color: #0f7f86;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.approval-pill input {
  width: 18px;
  height: 18px;
}

.approval-pill input:disabled {
  opacity: 0.55;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.subpanel {
  margin-top: 0;
}

.stack {
  display: grid;
  gap: 10px;
}

.login-body {
  padding: 28px;
}

.login-shell {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

.login-logo {
  display: block;
  width: min(300px, 100%);
  height: 96px;
  object-fit: contain;
}

.login-card h1 {
  margin: 0;
  font-size: 32px;
}

.login-copy,
.login-note {
  color: var(--muted);
}

.login-copy {
  margin: 8px 0 18px;
}

.password-field {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.password-field input {
  flex: 1;
}

.password-toggle {
  width: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.login-submit {
  margin-top: 4px;
  width: 100%;
}

.login-error {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.login-note {
  margin-top: 14px;
  font-size: 13px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

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

button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

button.primary {
  background: var(--cta-gradient);
  color: #ffffff;
  border-color: transparent;
}

button.primary:hover {
  background: var(--cta-gradient);
  filter: saturate(1.12) brightness(1.04);
}

button.danger {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

button.ghost {
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
}

.progress-wrap {
  margin-top: 16px;
}

.controls + .progress-wrap {
  margin-top: 22px;
}

.status-row {
  display: flex;
  margin-top: 16px;
}

.progress-bar {
  height: 12px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar > div {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 160ms ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.log {
  margin: 14px 0 0;
  min-height: 92px;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 14px;
  color: var(--text);
}

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

.summary-card {
  padding: 16px;
  background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.summary-card .label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-card .value {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 800;
}

.summary-card .detail {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.chip.safe {
  background: rgba(15, 158, 168, 0.10);
  color: #0f7f86;
}

.chip.stable {
  background: rgba(15, 23, 42, 0.05);
  color: #334155;
}

.chip.specific {
  background: rgba(249, 115, 82, 0.10);
  color: #c2410c;
}

.coverage-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.coverage-list {
  display: grid;
  gap: 10px;
}

.coverage-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.coverage-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.coverage-label {
  font-weight: 700;
}

.coverage-sub {
  color: var(--muted);
  font-size: 12px;
}

.coverage-meter {
  height: 10px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.coverage-meter > div {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.table-wrap {
  overflow: auto;
  padding-bottom: 14px;
  scrollbar-gutter: stable;
  border-radius: 16px;
  border: 1px solid var(--line);
}

/* Keep the final project row comfortably above an in-flow horizontal scrollbar. */
#project-schedule-table,
#completed-projects-table,
#archived-projects-table {
  padding-bottom: 14px;
}

.portfolio-schedule {
  min-height: 220px;
}

.client-picker { gap: 7px; }
.client-picker > label { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: 13px; cursor: pointer; }
.client-picker input { accent-color: var(--accent); }

.portfolio-schedule-panel > .panel-head {
  justify-content: flex-start;
  align-items: center;
  gap: 56px;
}

.portfolio-schedule-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.portfolio-range-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

.portfolio-range-control label { display: grid; gap: 2px; }
.portfolio-range-control label span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.portfolio-range-control button[data-portfolio-date-trigger] {
  width: 128px;
  padding: 1px 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.portfolio-range-control button[data-portfolio-date-trigger]:hover,
.portfolio-range-control button[data-portfolio-date-trigger]:focus-visible {
  transform: none;
  color: var(--accent);
  outline: none;
}

.portfolio-range-divider { color: #94a3b8; font-size: 14px; }

.portfolio-calendar-popover {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 20;
  width: 250px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}

.portfolio-calendar-popover .gantt-calendar { border: 0; background: transparent; }

.portfolio-project-filter { position: relative; }

.portfolio-filter-button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.portfolio-filter-button::after {
  content: '▾';
  margin-left: 7px;
  color: var(--muted);
  font-size: 10px;
}

.portfolio-project-filter-popover {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 30;
  width: 250px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}

.portfolio-filter-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 9px;
}

.portfolio-filter-popover-head strong {
  font-size: 12px;
}

.portfolio-filter-popover-head button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
}

.portfolio-filter-options {
  display: grid;
  gap: 2px;
  max-height: 280px;
  overflow: auto;
}

.portfolio-filter-options label,
.portfolio-client-quick-filter label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.portfolio-filter-options label {
  padding: 7px 5px;
  border-radius: 7px;
  color: var(--ink);
  font-size: 12px;
}

.portfolio-filter-options label:hover { background: rgba(15, 23, 42, .045); }

.portfolio-filter-options input,
.portfolio-client-quick-filter input { accent-color: var(--accent); }

.portfolio-client-quick-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  min-width: 0;
  padding-left: 6px;
}

.portfolio-client-quick-filter > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.portfolio-client-quick-filter label {
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.portfolio-client-quick-filter b { font-weight: 650; }

.portfolio-gantt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 16px;
}

.portfolio-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.portfolio-legend-item i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--portfolio-phase-color, #64748b);
}

.portfolio-gantt-scroll {
  overflow: auto;
  padding-bottom: 14px;
}

.portfolio-gantt-grid,
.portfolio-project-row {
  display: grid;
  grid-template-columns: 210px repeat(var(--portfolio-days), minmax(34px, 1fr));
  min-width: max-content;
}

.portfolio-gantt-grid {
  position: sticky;
  top: 0;
  z-index: 2;
}

.portfolio-project-head,
.portfolio-day {
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.portfolio-project-head {
  position: sticky;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.portfolio-day {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-width: 34px;
  border-left: 1px solid rgba(148, 163, 184, .13);
  color: #334155;
  font-size: 10px;
}

.portfolio-day strong { font-size: 10px; font-weight: 800; }
.portfolio-day span { color: #94a3b8; font-size: 9px; font-weight: 700; }
.portfolio-day.is-weekend { background: rgba(148, 163, 184, .12); color: #94a3b8; }

.portfolio-project-row {
  position: relative;
  min-height: 64px;
  align-items: center;
  border-bottom: 1px solid rgba(220, 229, 232, .9);
  background-image: repeating-linear-gradient(to right, transparent 0, transparent calc((100% - 210px) / var(--portfolio-days) - 1px), rgba(148, 163, 184, .12) calc((100% - 210px) / var(--portfolio-days) - 1px), rgba(148, 163, 184, .12) calc((100% - 210px) / var(--portfolio-days)));
}

.portfolio-project-label {
  position: sticky;
  left: 0;
  z-index: 1;
  display: grid;
  gap: 3px;
  padding: 0 14px;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}

.portfolio-project-label button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.portfolio-project-label button:hover,
.portfolio-project-label button:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.portfolio-trello-link,
.portfolio-trello-empty {
  font-size: 10px;
  line-height: 1.1;
}

.portfolio-trello-link {
  width: max-content;
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

.portfolio-trello-empty { color: #9ca3af; }

.portfolio-project-label span { color: var(--muted); font-size: 10px; }

.portfolio-gantt-bar {
  z-index: 0;
  display: block;
  align-self: center;
  min-width: 0;
  height: 26px;
  margin: 0 2px;
  padding: 6px 8px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--portfolio-phase-color, #64748b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26), 0 2px 5px rgba(15, 23, 42, .11);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-phase-brief { --portfolio-phase-color: #3579c6; }
.portfolio-phase-script { --portfolio-phase-color: #7b61c9; }
.portfolio-phase-design { --portfolio-phase-color: #bd5e9f; }
.portfolio-phase-build { --portfolio-phase-color: #0d9b8a; }
.portfolio-phase-feedback { --portfolio-phase-color: #d88731; }
.portfolio-phase-revisions { --portfolio-phase-color: #c76a54; }
.portfolio-phase-qa { --portfolio-phase-color: #5380a5; }
.portfolio-phase-approval { --portfolio-phase-color: #4b8b55; }

.portfolio-schedule-empty {
  margin: 0;
  padding: 34px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: rgba(248, 250, 252, 0.98);
  z-index: 1;
  color: var(--text);
}

td.num, th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

tbody tr:hover {
  background: rgba(15, 23, 42, 0.03);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.tag.parsed {
  background: rgba(15, 158, 168, 0.10);
  color: #0f7f86;
}

.tag.warning {
  background: rgba(217, 119, 6, 0.12);
  color: #a16207;
}

.tag.error {
  background: rgba(220, 38, 38, 0.10);
  color: #b91c1c;
}

.tag.skipped {
  background: rgba(100, 116, 139, 0.10);
  color: #475569;
}

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

.small {
  font-size: 13px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.validation-box {
  display: grid;
  gap: 12px;
}

.dashboard-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.placeholder-card {
  width: min(720px, 100%);
  padding: 26px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.placeholder-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.placeholder-card h3 {
  margin: 0;
  font-size: 24px;
}

.placeholder-card p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 60ch;
}

.report {
  min-height: 160px;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 14px;
}

.sc-test-output {
  min-height: 360px;
  max-height: 68vh;
  margin-top: 14px;
}

.samcart-dashboard {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.connection-settings {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.ef-projects { margin: 18px 0; }
.ef-projects-head, .ef-project-card-head, .ef-project-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ef-projects-head h3, .ef-projects-head p, .ef-project-card h3 { margin: 0; }
.ef-projects-head p { margin-top: 5px; }
.ef-project-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.ef-project-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.82); box-shadow: 0 8px 24px rgba(20,35,45,.06); }
.ef-project-card-head { align-items: center; }
.ef-project-card-head h3 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ef-project-move-handle { display: grid; flex: 0 0 auto; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: rgba(15,23,42,.42); cursor: grab; }
.ef-project-move-handle svg { width: 14px; height: 14px; fill: currentColor; }
.ef-project-move-handle:hover, .ef-project-move-handle:focus-visible { transform: none; border: 0; background: rgba(15,23,42,.06); color: rgba(15,23,42,.78); outline: none; }
.ef-project-move-handle:active { cursor: grabbing; }
.ef-project-card.is-dragging { opacity: .48; }
.ef-project-card.is-drag-over { border-color: rgba(14,165,233,.56); box-shadow: 0 0 0 2px rgba(14,165,233,.14); }
.ef-project-accordion-toggle { display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font: inherit; font-weight: inherit; line-height: inherit; }
.ef-project-accordion-toggle:hover, .ef-project-accordion-toggle:focus-visible { transform: none; border: 0; background: transparent; color: var(--text); outline: none; }
.ef-project-accordion-toggle:focus-visible { outline: 2px solid rgba(0, 169, 232, 0.42); outline-offset: 4px; }
.ef-project-accordion-triangle { color: #000000; font-size: 28px; line-height: 1; transition: transform .16s ease; }
.ef-project-accordion-toggle[aria-expanded="true"] .ef-project-accordion-triangle { transform: rotate(90deg); }
.ef-project-card-body { padding-top: 4px; }
.ef-project-head-actions { display: flex; gap: 7px; }
.ef-project-id { margin-top: 5px; font-size: 13px; color: var(--muted); }
.ef-project-status { display: flex; align-items: center; gap: 8px; margin: 20px 0; min-height: 24px; }
.ef-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #9ca3af; box-shadow: 0 0 0 4px rgba(156,163,175,.14); }
.ef-project-card[data-status="connected"] .ef-status-dot { background: #15996f; box-shadow: 0 0 0 4px rgba(21,153,111,.14); }
.ef-project-card[data-status="error"] .ef-status-dot { background: #d34d4d; box-shadow: 0 0 0 4px rgba(211,77,77,.14); }
.ef-reporting-funnels-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 14px; border: 2px solid rgba(15,158,168,.3); border-radius: 14px; background: rgba(15,158,168,.07); }
.ef-reporting-funnels-copy { display: grid; gap: 7px; }
.ef-reporting-funnels-cta strong { font-size: 15px; }
.ef-reporting-funnels-cta span { color: var(--muted); font-size: 12px; }
.ef-active-funnel-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ef-active-funnel-item { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ef-active-funnel-chip { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border: 1px solid rgba(15,158,168,.24); border-radius: 999px; background: rgba(255,255,255,.8); color: var(--text) !important; font-weight: 750; }
.ef-published-link { display: inline-flex; align-items: center; width: fit-content; padding: 7px 10px; border: 1px solid rgba(15,158,168,.3); border-radius: 999px; background: rgba(15,158,168,.09); color: #087b83; font-size: 11px; font-weight: 850; line-height: 1; text-decoration: none; white-space: nowrap; }
.ef-published-link:hover { border-color: rgba(15,158,168,.5); background: rgba(15,158,168,.15); color: #075d63; }
@media (max-width: 620px) { .ef-reporting-funnels-cta { align-items: stretch; flex-direction: column; } }
.ef-project-dashboard-shell { margin-top: 16px; border-top: 1px solid var(--line); }
.ef-project-dashboard-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; font-size: 13px; font-weight: 850; }
.ef-project-dashboard { margin-top: 12px; }
.ef-funnel-dashboard-section { margin: 0; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.76); box-shadow: 0 8px 24px rgba(20,35,45,.05); overflow: hidden; }
.ef-funnel-dashboard-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.ef-funnel-dashboard-section > summary::-webkit-details-marker { display: none; }
.ef-funnel-dashboard-section > summary::marker { content: ''; }
.ef-funnel-dashboard-summary { display: block; }
.ef-funnel-dashboard-summary > strong { font-size: 17px; }
.ef-funnel-dashboard-triangle { color: #000; font-size: 26px; line-height: 1; transition: transform .16s ease; }
.ef-funnel-dashboard-section[open] .ef-funnel-dashboard-triangle { transform: rotate(90deg); }
.ef-funnel-dashboard-content { display: grid; gap: 12px; padding: 14px 16px 16px; border-top: 1px solid rgba(220,229,232,.8); }
.ef-funnel-dashboard-content > .samcart-dashboard { margin-top: 4px; }
.ef-funnel-dashboard-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ef-funnel-dashboard-title h4 { margin: 0; font-size: 18px; }
.ef-funnel-dashboard-title span { color: var(--muted); font-size: 12px; }
.ef-funnel-dashboard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.ef-publish-button { border-color: rgba(249,115,82,.3); background: rgba(249,115,82,.1); color: #b94d31; }
.ef-publish-button:hover { background: rgba(249,115,82,.18); }
.ef-publish-success { display: grid; gap: 6px; padding: 12px; border: 1px solid rgba(15,158,168,.25); border-radius: 11px; background: rgba(15,158,168,.07); }
.ef-publish-success a { color: var(--accent); font-size: 12px; overflow-wrap: anywhere; }
.ef-publish-slug-field { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: rgba(245,248,249,.9); }
.ef-publish-slug-field > span { padding-left: 11px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.ef-publish-slug-field input { min-width: 120px; border: 0 !important; box-shadow: none !important; background: transparent !important; }
@media (max-width: 620px) { .ef-publish-slug-field { align-items: stretch; flex-direction: column; } .ef-publish-slug-field > span { padding: 9px 11px 0; white-space: normal; } }
.ef-funnel-date-button { padding: 2px 3px; border: 0; border-radius: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 850; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; box-shadow: none; }
.ef-funnel-date-button:hover { background: transparent; color: #087b83; transform: none; }
.ef-date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ef-date-quick-selects { display: flex; flex-wrap: wrap; gap: 8px; }
.ef-date-quick-selects button { padding: 8px 11px; border-color: var(--line); background: rgba(255,255,255,.8); color: var(--text); font-size: 12px; }
.ef-date-quick-selects button:hover, .ef-date-quick-selects button.active { border-color: rgba(15,158,168,.45); background: rgba(15,158,168,.1); color: #087b83; }
@media (max-width: 520px) { .ef-date-fields { grid-template-columns: 1fr; } }
.ef-funnel-kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ef-funnel-kpi { display: grid; gap: 8px; padding: 18px; border: 1px solid rgba(15,158,168,.2); border-radius: 14px; background: linear-gradient(145deg, rgba(15,158,168,.08), rgba(255,255,255,.86)); }
.ef-funnel-kpi span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ef-funnel-kpi strong { color: var(--ink); font-size: 34px; line-height: 1; }
.ef-funnel-kpi-revenue { border-color: rgba(15,158,168,.42); background: linear-gradient(145deg, rgba(15,158,168,.11), rgba(255,255,255,.9)); animation: ef-revenue-glow 2.8s ease-in-out infinite; }
.ef-funnel-kpi-revenue span { color: #087b83; }
.ef-funnel-kpi-revenue strong { color: #087b83; }
@keyframes ef-revenue-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(15,158,168,.08), 0 8px 24px rgba(20,35,45,.04); } 50% { box-shadow: 0 0 0 4px rgba(15,158,168,.1), 0 0 24px rgba(15,158,168,.16); } }
@media (prefers-reduced-motion: reduce) { .ef-funnel-kpi-revenue { animation: none; } }
.ef-purchase-chart-card { padding: 16px; border: 1px solid rgba(15,158,168,.18); border-radius: 16px; background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(15,158,168,.035)); overflow: hidden; }
.ef-purchase-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ef-purchase-chart-head span { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.ef-purchase-chart-head h5 { margin: 3px 0 0; font-size: 17px; }
.ef-purchase-chart-head > strong { font-size: 14px; }
.ef-checkout-flow-card { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.9); overflow: hidden; }
.ef-checkout-flow-head { padding-bottom: 14px; }
.ef-checkout-flow-head span { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.ef-checkout-flow-head h5 { margin: 3px 0 0; font-size: 17px; }
.ef-checkout-flow { display: flex; align-items: stretch; gap: 9px; overflow-x: auto; padding-bottom: 4px; }
.ef-checkout-flow-step { display: grid; align-content: start; flex: 1 0 140px; min-width: 140px; padding: 14px; border: 1px solid rgba(15,158,168,.22); border-radius: 13px; background: rgba(15,158,168,.06); }
.ef-checkout-flow-step > span { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.ef-checkout-flow-step strong { margin-top: 6px; font-size: 28px; }
.ef-checkout-flow-step small { margin-top: 5px; color: var(--muted); line-height: 1.3; }
.ef-checkout-flow-metrics { display: grid; grid-template-columns: 1fr; gap: 11px; margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(15,158,168,.15); }
.ef-checkout-flow-metrics > div { display: grid; gap: 3px; }
.ef-checkout-flow-metrics span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.ef-checkout-flow-metrics b { font-size: 15px; line-height: 1.15; }
.ef-checkout-flow-step.unmapped { border-style: dashed; background: rgba(107,119,128,.035); }
.ef-checkout-flow-step.unmapped > span { color: var(--muted); }
.ef-checkout-flow-arrow { display: grid; place-items: center; flex: 0 0 18px; color: var(--accent); font-size: 24px; font-weight: 900; }
.ef-purchase-chart-wrap { margin-top: 10px; overflow-x: auto; }
.ef-purchase-chart { display: block; width: 100%; min-width: 560px; height: auto; overflow: visible; }
.ef-chart-gridline { stroke: rgba(100,116,139,.16); stroke-width: 1; }
.ef-chart-y-label, .ef-chart-x-label { fill: #7b8794; font-size: 11px; }
.ef-chart-area { opacity: 0; animation: ef-chart-fade .65s ease .15s forwards; }
.ef-chart-line { fill: none; stroke: #0f9ea8; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: ef-chart-draw 1.1s ease forwards; }
.ef-chart-point { fill: #fff; stroke: #0f9ea8; stroke-width: 3; transition: r .15s ease, fill .15s ease; }
.ef-chart-point:hover { r: 6; fill: #0f9ea8; }
.ef-usd-value { white-space: nowrap; font-weight: 800; }
.ef-usd-value small { color: var(--muted); font-size: 10px; font-weight: 800; }
.ef-product-bubbles { display: flex; flex-wrap: wrap; gap: 5px; min-width: 220px; }
.ef-product-bubbles span { display: inline-flex; padding: 5px 8px; border: 1px solid rgba(15,158,168,.22); border-radius: 999px; background: rgba(15,158,168,.08); color: #087b83; font-size: 11px; font-weight: 800; white-space: nowrap; }
@keyframes ef-chart-draw { to { stroke-dashoffset: 0; } }
@keyframes ef-chart-fade { to { opacity: 1; } }
.ef-funnel-refreshed { color: var(--muted); font-size: 12px; text-align: right; }
@media (max-width: 620px) { .ef-funnel-kpi-grid { grid-template-columns: 1fr; } }
.ef-stats-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--line); }
.ef-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; }
.ef-stat-card { position: relative; display: grid; align-content: start; gap: 9px; min-width: 0; min-height: 112px; padding: 17px 20px 15px 24px; background: rgba(255,255,255,.97); }
.ef-stat-sales, .ef-stat-cogs { box-shadow: inset 2px 0 0 rgba(52,179,126,.78); }
.ef-stat-estimated_profit { box-shadow: inset 2px 0 0 rgba(45,55,65,.9); }
.ef-stat-conversion_rate, .ef-stat-commissions_paid { box-shadow: inset 2px 0 0 rgba(143,82,201,.82); }
.ef-stat-aov { box-shadow: inset 2px 0 0 rgba(232,101,65,.82); }
.ef-stat-label { min-width: 0; color: #70777d; font-size: 13px; }
.ef-stat-value-row { display: grid; gap: 7px; min-width: 0; }
.ef-stat-value-row strong { min-width: 0; color: #1d2328; font-size: clamp(23px,2.2vw,28px); font-weight: 500; line-height: 1; letter-spacing: -.025em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ef-stat-change { min-height: 15px; font-size: 12px; font-weight: 650; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ef-stat-change.improved { color: #1a9a72; }
.ef-stat-change.declined { color: #ef5b68; }
.ef-stat-change.flat { color: var(--muted); }
.ef-stat-change.empty { visibility: hidden; }
.ef-stat-placeholder { min-height: 112px; background: rgba(255,255,255,.97); }
@media (max-width: 980px) { .ef-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ef-stat-placeholder { display: none; } }
@media (max-width: 560px) { .ef-stats-grid { grid-template-columns: 1fr; } .ef-stat-card { min-height: 92px; } }
.ef-tracker-report-card { display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(15,158,168,.22); border-radius: 17px; background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(15,158,168,.035)); overflow: hidden; }
.ef-tracker-report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ef-tracker-report-head > div { display: grid; gap: 3px; }
.ef-tracker-report-head span, .ef-tracker-table-head span { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.ef-tracker-report-head h5 { margin: 0; font-size: 17px; }
.ef-tracker-report-head p { margin: 0; color: var(--muted); font-size: 12px; }
.ef-tracker-report-head > strong { padding: 6px 9px; border-radius: 999px; background: rgba(15,158,168,.09); color: #087b83; font-size: 11px; white-space: nowrap; }
.ef-tracker-report-unconfigured { border-style: dashed; background: rgba(100,116,139,.035); }
.ef-tracker-report-unconfigured > p { margin: 0; color: var(--muted); font-size: 13px; }
.ef-tracker-summary-grid { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 8px; }
.ef-tracker-summary-grid > div { display: grid; gap: 5px; min-width: 0; padding: 12px; border: 1px solid rgba(15,158,168,.14); border-radius: 11px; background: rgba(255,255,255,.76); }
.ef-tracker-summary-grid span { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.ef-tracker-summary-grid strong { overflow-wrap: anywhere; font-size: 19px; line-height: 1.1; }
.ef-tracker-summary-grid .positive, .ef-tracker-table .positive { color: #087b62; }
.ef-tracker-summary-grid .negative, .ef-tracker-table .negative { color: #b45343; }
.ef-tracker-warning { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid rgba(217,151,29,.28); border-radius: 11px; background: rgba(254,243,199,.54); color: #78520a; }
.ef-tracker-warning strong { font-size: 12px; }
.ef-tracker-warning span { font-size: 11px; line-height: 1.45; }
.ef-tracker-table-stack { display: grid; gap: 12px; }
.ef-tracker-table-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.86); }
.ef-tracker-table-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px 14px 11px; }
.ef-tracker-table-head h6 { margin: 2px 0 0; font-size: 17px; }
.ef-tracker-table-head p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.ef-tracker-table-head > strong { font-size: 12px; white-space: nowrap; }
.ef-tracker-table-wrap { overflow-x: auto; padding-bottom: 14px; scrollbar-gutter: stable; border-top: 1px solid var(--line); }
.ef-tracker-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
.ef-tracker-table th, .ef-tracker-table td { padding: 10px 11px; border-bottom: 1px solid rgba(220,229,232,.75); text-align: right; white-space: nowrap; }
.ef-tracker-table th:first-child, .ef-tracker-table td:first-child { position: sticky; left: 0; z-index: 1; min-width: 170px; text-align: left; background: #fff; box-shadow: 1px 0 0 var(--line); }
.ef-tracker-table th { color: var(--muted); background: #f7fafb; font-size: 10px; font-weight: 850; letter-spacing: .025em; text-transform: uppercase; }
.ef-tracker-table th:first-child { z-index: 2; background: #f7fafb; }
.ef-tracker-table tbody td:first-child { display: grid; gap: 2px; }
.ef-tracker-table tbody td:first-child span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.ef-tracker-table tfoot td { border-bottom: 0; background: rgba(15,158,168,.055); font-weight: 800; }
.ef-tracker-table tfoot td:first-child { background: #f0f9f9; }
.ef-tracker-table-empty { padding: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.ef-tracker-source-note { color: var(--muted); font-size: 10px; line-height: 1.4; }
.ef-breakdown-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.97); }
.ef-breakdown-head { padding: 16px 18px 2px; }
.ef-breakdown-head h5 { margin: 0; font-size: 17px; }
.ef-breakdown-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.ef-breakdown-tabs button { flex: 0 0 auto; padding: 16px 18px 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #67625f; font-size: 13px; font-weight: 500; white-space: nowrap; }
.ef-breakdown-tabs button:hover { background: rgba(15,158,168,.035); color: var(--ink); }
.ef-breakdown-tabs button.active { border-bottom-color: #1d2328; color: #1d2328; }
.ef-breakdown-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ef-breakdown-search { display: flex; align-items: center; gap: 10px; color: #706c69; font-size: 12px; }
.ef-breakdown-search input { width: 175px; padding: 9px 11px; border: 1px solid transparent; border-radius: 7px; background: #f7f6f6; color: var(--ink); font: inherit; }
.ef-breakdown-search input:focus { outline: 0; border-color: rgba(15,158,168,.5); box-shadow: 0 0 0 3px rgba(15,158,168,.1); }
.ef-breakdown-search input::placeholder { color: #9da0aa; }
.ef-breakdown-controls { display: flex; align-items: center; gap: 8px; }
.ef-breakdown-controls select, .ef-breakdown-export, .ef-breakdown-footer button { min-height: 35px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 11px; font-weight: 650; }
.ef-breakdown-export { display: inline-flex; align-items: center; gap: 7px; margin-left: 5px; }
.ef-breakdown-export span { font-size: 17px; line-height: .8; }
.ef-breakdown-table-wrap { overflow: auto; }
.ef-breakdown-table { width: max-content; min-width: 100%; border-collapse: collapse; color: #222936; font-size: 12px; font-variant-numeric: tabular-nums; }
.ef-breakdown-table th, .ef-breakdown-table td { height: 54px; padding: 12px 15px; border-bottom: 1px solid rgba(220,229,232,.85); text-align: left; white-space: nowrap; }
.ef-breakdown-table th { height: 45px; color: #9294a5; background: #fff; font-size: 10px; font-weight: 500; }
.ef-breakdown-table th span { margin-left: 3px; color: #b7bac4; }
.ef-breakdown-table th:first-child, .ef-breakdown-table td:first-child { position: sticky; left: 0; z-index: 1; min-width: 132px; background: #fff; box-shadow: 1px 0 0 var(--line); }
.ef-breakdown-table th:first-child { z-index: 2; }
.ef-breakdown-table tbody td:first-child strong { color: #164bdc; font-weight: 500; }
.ef-breakdown-table tbody tr:hover td { background: #fbfdfd; }
.ef-breakdown-table tbody tr:hover td:first-child { background: #fbfdfd; }
.ef-breakdown-empty { height: 90px !important; color: var(--muted); text-align: center !important; }
.ef-breakdown-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: var(--muted); font-size: 11px; }
.ef-breakdown-footer > div { display: flex; gap: 7px; }
.ef-breakdown-footer button:disabled { opacity: .4; cursor: default; }
.ef-conversions-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.98); }
.ef-conversions-heading { display: grid; gap: 4px; padding: 19px 19px 13px; border-bottom: 1px solid var(--line); }
.ef-conversions-heading h5 { margin: 0; color: #1d2330; font-size: 21px; line-height: 1.2; }
.ef-conversions-heading p { margin: 0; color: #706c69; font-size: 12px; }
.ef-conversions-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ef-conversions-search { display: flex; align-items: center; gap: 10px; color: #706c69; font-size: 12px; }
.ef-conversions-search input { width: 175px; padding: 9px 11px; border: 1px solid transparent; border-radius: 7px; background: #f7f6f6; color: var(--ink); font: inherit; }
.ef-conversions-search input:focus { outline: 0; border-color: rgba(77,102,233,.46); box-shadow: 0 0 0 3px rgba(77,102,233,.09); }
.ef-conversions-search input::placeholder { color: #9da0aa; }
.ef-conversions-controls { display: flex; align-items: center; gap: 8px; }
.ef-conversions-controls select, .ef-conversions-controls button, .ef-conversions-footer button { min-height: 35px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 11px; font-weight: 650; }
.ef-conversions-controls button { display: inline-flex; align-items: center; gap: 7px; }
.ef-conversions-columns { position: relative; }
.ef-conversions-columns-menu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 8; display: grid; gap: 7px; width: 190px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 16px 40px rgba(15,23,42,.16); }
.ef-conversions-columns-menu label { display: flex; align-items: center; gap: 7px; color: #434957; font-size: 11px; font-weight: 600; }
.ef-conversions-columns-menu input { accent-color: #5368ed; }
.ef-conversions-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.ef-conversions-tabs button { flex: 1 0 88px; display: grid; place-items: center; gap: 5px; min-height: 75px; padding: 12px 10px 10px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #6b6966; font: inherit; font-size: 12px; font-weight: 500; white-space: nowrap; }
.ef-conversions-tabs button:hover { background: rgba(83,104,237,.035); color: #272c38; }
.ef-conversions-tabs button.active { border-bottom-color: #5368ed; color: #272c38; }
.ef-conversions-tabs button b { min-width: 29px; padding: 3px 8px; border-radius: 999px; background: #f1f2f5; color: #303541; font-size: 10px; font-weight: 600; }
.ef-conversions-table-wrap { overflow: auto; }
.ef-conversions-table { width: max-content; min-width: 100%; border-collapse: collapse; color: #222936; font-size: 12px; font-variant-numeric: tabular-nums; }
.ef-conversions-table th, .ef-conversions-table td { height: 54px; padding: 12px 15px; border-bottom: 1px solid rgba(220,229,232,.85); text-align: left; white-space: nowrap; }
.ef-conversions-table th { height: 45px; color: #9294a5; background: #fff; font-size: 10px; font-weight: 500; }
.ef-conversions-table tbody tr:hover td { background: #fbfcff; }
.ef-conversions-table .ef-conversions-customer { color: #164bdc; font-weight: 500; }
.ef-conversions-table .ef-conversions-more { min-width: 58px; color: #202530; font-size: 14px; letter-spacing: 2px; text-align: center; }
.ef-conversions-empty { height: 90px !important; color: var(--muted); text-align: center !important; }
.ef-conversions-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: var(--muted); font-size: 11px; }
.ef-conversions-footer > div { display: flex; gap: 7px; }
.ef-conversions-footer button:disabled { opacity: .4; cursor: default; }
@media (max-width: 980px) { .ef-tracker-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .ef-breakdown-toolbar, .ef-conversions-toolbar { align-items: stretch; flex-direction: column; } .ef-breakdown-controls, .ef-conversions-controls { flex-wrap: wrap; } .ef-breakdown-search, .ef-conversions-search { justify-content: space-between; } .ef-breakdown-search input, .ef-conversions-search input { flex: 1 1 auto; width: auto; } }
@media (max-width: 620px) { .ef-tracker-report-head, .ef-tracker-table-head { align-items: stretch; flex-direction: column; } .ef-tracker-report-head > strong, .ef-tracker-table-head > strong { width: fit-content; } .ef-tracker-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ef-tracker-report-card { padding: 13px; } .ef-breakdown-tabs button { padding-inline: 14px; } .ef-breakdown-controls select, .ef-conversions-controls select { flex: 1 1 145px; } .ef-conversions-tabs button { flex-basis: 96px; min-height: 68px; } }
.ef-project-data-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(15,158,168,.2); border-radius: 999px; background: rgba(15,158,168,.06); }
.ef-project-data-summary > div { display: flex; align-items: baseline; gap: 5px; padding-right: 10px; border-right: 1px solid var(--line); }
.ef-project-data-summary > div:last-child { border-right: 0; padding-right: 0; margin-left: auto; }
.ef-project-data-summary strong { font-size: 17px; }
.ef-project-data-summary span { color: var(--muted); font-size: 12px; }
.ef-project-empty { grid-column: 1 / -1; padding: 34px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); }
.ef-settings-dialog { width: min(680px, calc(100vw - 32px)); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 24px 80px rgba(0,0,0,.24); }
.ef-settings-dialog.ef-funnel-setup-dialog { width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; }
.ef-settings-dialog.ef-tracker-dialog { width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 40px); }
.ef-settings-dialog::backdrop { background: rgba(15,23,42,.44); backdrop-filter: blur(3px); }
.ef-settings-form { display: grid; gap: 14px; padding: 22px; }
.ef-settings-form h3, .ef-settings-form p { margin: 0; }
.ef-settings-form .actions { display: flex; justify-content: flex-end; gap: 9px; }
.ef-tracker-suggestion-note { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid rgba(15,158,168,.25); border-radius: 11px; background: rgba(15,158,168,.075); color: #086d74; }
.ef-tracker-suggestion-note strong { font-size: 13px; }
.ef-tracker-suggestion-note span { font-size: 12px; line-height: 1.45; }
.ef-tracker-global { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ef-tracker-global .field { margin: 0; }
.ef-tracker-checkbox { display: flex; align-items: center; gap: 9px; width: fit-content; font-size: 13px; font-weight: 750; }
.ef-tracker-checkbox input { width: 17px; height: 17px; accent-color: var(--accent); }
.ef-tracker-readiness { display: grid; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafb; }
.ef-tracker-readiness-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ef-tracker-readiness-head > div { display: grid; gap: 2px; }
.ef-tracker-readiness-head strong { font-size: 13px; }
.ef-tracker-readiness-head span { color: var(--muted); font-size: 11px; }
.ef-tracker-readiness-head b { color: #087b83; font-size: 12px; white-space: nowrap; }
.ef-tracker-readiness-grid { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 7px; }
.ef-tracker-readiness-grid > div { display: grid; grid-template-columns: 1fr auto; gap: 3px 6px; padding: 9px; border: 1px solid rgba(100,116,139,.14); border-radius: 9px; background: #fff; }
.ef-tracker-readiness-grid > div > span { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.ef-tracker-readiness-grid > div > strong { font-size: 10px; }
.ef-tracker-readiness-grid > div.ready > strong { color: #087b62; }
.ef-tracker-readiness-grid > div.review > strong { color: #a16207; }
.ef-tracker-readiness-grid > div > small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; line-height: 1.35; }
.ef-tracker-offers-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.ef-tracker-offers-head > div { display: grid; gap: 3px; }
.ef-tracker-offers-head span { color: var(--muted); font-size: 12px; }
.ef-tracker-offers { display: grid; gap: 10px; }
.ef-tracker-offer-row { display: grid; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.75); }
.ef-tracker-offer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ef-tracker-offer-head > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.ef-tracker-offer-head strong { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ef-tracker-observed { color: #087b83; font-size: 11px; font-weight: 800; }
.ef-tracker-offer-head button { padding: 6px 9px; font-size: 11px; }
.ef-tracker-offer-identity { display: grid; grid-template-columns: 150px minmax(160px, .9fr) minmax(230px, 1.5fr); gap: 9px; }
.ef-tracker-offer-economics { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 9px; }
.ef-tracker-offer-row label { display: grid; gap: 5px; min-width: 0; }
.ef-tracker-offer-row label > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.ef-tracker-offer-row input, .ef-tracker-offer-row select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text); font: inherit; }
@media (max-width: 980px) { .ef-tracker-readiness-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .ef-tracker-global, .ef-tracker-offer-economics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ef-tracker-offer-identity { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ef-tracker-global, .ef-tracker-offer-economics, .ef-tracker-readiness-grid { grid-template-columns: 1fr; } .ef-tracker-offers-head, .ef-tracker-readiness-head { align-items: stretch; flex-direction: column; } }
.ef-funnel-settings { display: grid; gap: 10px; padding-top: 4px; border-top: 1px solid var(--line); }
.ef-funnel-settings h4, .ef-funnel-settings p { margin: 0; }
.ef-funnel-settings p { margin-top: 3px; }
.ef-funnel-list { display: grid; gap: 10px; }
.ef-funnel-selected-label { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.ef-funnel-row, .ef-funnel-add-card { display: grid; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.72); }
.ef-funnel-row-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.ef-funnel-add-card { grid-template-columns: minmax(0, 1fr); margin-top: 4px; border-color: rgba(15,158,168,.28); background: rgba(15,158,168,.06); }
.ef-funnel-select-wrap { display: grid; gap: 6px; min-width: 0; }
.ef-funnel-select-wrap > span { color: var(--muted); font-size: 12px; font-weight: 750; }
.ef-funnel-select-wrap select { width: 100%; min-width: 0; padding: 11px 36px 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font: inherit; outline: none; }
.ef-funnel-select-wrap select:hover { border-color: rgba(15,158,168,.45); }
.ef-funnel-select-wrap select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,158,168,.12); }
.ef-funnel-empty { padding: 14px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); text-align: center; font-size: 13px; }
.ef-flow-mapping { display: grid; gap: 9px; padding-top: 11px; border-top: 1px solid var(--line); }
.ef-flow-mapping-title { display: flex; justify-content: space-between; gap: 10px; }
.ef-flow-mapping-title span { color: var(--muted); font-size: 11px; }
.ef-flow-mapping-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ef-flow-mapping-grid label { display: grid; gap: 5px; }
.ef-flow-mapping-grid label > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.ef-flow-mapping-grid select { min-width: 0; width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
@media (max-width: 900px) { .ef-flow-mapping-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ef-funnel-row-head, .ef-funnel-add-card, .ef-flow-mapping-grid { grid-template-columns: 1fr; align-items: stretch; } .ef-flow-mapping-title { flex-direction: column; } }

.connection-settings > summary {
  cursor: pointer;
  padding: 13px 14px;
  font-weight: 850;
}

.connection-settings-form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 220px auto;
  gap: 12px;
  align-items: end;
  padding: 0 14px 14px;
}

.connection-settings-form .actions {
  align-self: end;
}

.connection-settings-meta {
  grid-column: 1 / -1;
  font-size: 13px;
}

.connection-status {
  margin-top: 10px;
}

.connection-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.connection-store-status {
  margin-top: 12px;
}

.ai-insight-panel {
  position: relative;
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid rgba(15, 158, 168, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 158, 168, 0.08), rgba(255, 255, 255, 0.86));
}

.ai-insight-close {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  border-color: rgba(15, 158, 168, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ai-insight-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-right: 72px;
}

.ai-insight-head h3 {
  margin: 2px 0 0;
}

.ai-insight-body {
  color: var(--text);
  line-height: 1.55;
}

.ai-insight-body p {
  margin: 0 0 10px;
}

.ai-insight-body p:last-child {
  margin-bottom: 0;
}

.ai-insight-loading,
.ai-insight-error {
  color: var(--muted);
  font-weight: 800;
}

.ai-insight-error {
  color: var(--danger);
}

.import-progress {
  display: grid;
  gap: 10px;
  width: min(100%, 620px);
  padding: 13px 14px;
  border: 1px solid rgba(0, 180, 166, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0, 180, 166, 0.12), rgba(255, 255, 255, 0.86)),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(0, 180, 166, 0.10);
}

.import-progress-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.import-progress-head strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.import-progress-head span {
  color: var(--aqua-strong);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.import-progress-track {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(12, 38, 49, 0.08);
}

.import-progress-track > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aqua), var(--brand-green));
  transition: width 220ms ease;
}

.import-progress.is-indeterminate .import-progress-track > span {
  min-width: 32%;
  animation: importProgressPulse 1.1s ease-in-out infinite alternate;
}

.import-progress-detail {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.scx-section {
  margin: 28px 0;
}

.scx-section-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.scx-insight-grid + .scx-insight-grid {
  margin-top: 18px;
}

@keyframes importProgressPulse {
  from {
    transform: translateX(-14%);
    opacity: 0.7;
  }
  to {
    transform: translateX(18%);
    opacity: 1;
  }
}

.connection-store-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.connection-store-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connection-store-main {
  margin-top: 4px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.connection-store-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.connection-filter-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  overflow: hidden;
}

.connection-filter-panel > summary,
.connection-dashboard-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 850;
}

.connection-filter-panel > summary span,
.connection-dashboard-accordion > summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.connection-filter-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

details.connection-filter-panel:not([open]) > .connection-filter-body,
details.connection-filter-group:not([open]) > .connection-checkbox-grid,
details.connection-dashboard-accordion:not([open]) > :not(summary),
details.connection-resource-accordion:not([open]) > .connection-resource-body {
  display: none !important;
}

.connection-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.connection-filter-head h3 {
  margin: 0;
  font-size: 20px;
}

.connection-filter-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.connection-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.connection-filter-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.connection-filter-group > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  cursor: pointer;
  font-weight: 850;
}

.connection-filter-group > summary span {
  color: var(--accent);
  font-size: 12px;
}

.connection-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  max-height: 200px;
  overflow: auto;
  padding: 0 12px 12px;
}

.connection-checkbox {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
}

.connection-checkbox:hover {
  background: rgba(15, 158, 168, 0.08);
}

.connection-checkbox input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.connection-checkbox span {
  overflow-wrap: anywhere;
}

.sc-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.connection-dashboard-accordion {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.connection-dashboard-accordion .sc-summary-grid,
.connection-dashboard-accordion .sc-endpoint-strip {
  padding: 0 12px 12px;
}

.sc-metric,
.sc-endpoint,
.sc-resource {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.sc-metric {
  padding: 14px;
  border-radius: 12px;
}

.sc-metric .label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.sc-metric .value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 850;
}

.sc-metric .detail {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.sc-endpoint-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.sc-endpoint {
  padding: 12px;
  border-radius: 10px;
}

.sc-endpoint.ok {
  border-color: rgba(15, 158, 168, 0.22);
}

.sc-endpoint.bad {
  border-color: rgba(220, 38, 38, 0.24);
}

.sc-endpoint-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.sc-endpoint-message {
  margin-top: 8px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.35;
}

.sc-resource-stack {
  display: grid;
  gap: 18px;
}

.sc-resource {
  border-radius: 12px;
  overflow: hidden;
}

.sc-resource-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.connection-resource-accordion > summary {
  cursor: pointer;
  list-style: none;
}

.connection-resource-accordion > summary::-webkit-details-marker { display: none; }
.connection-resource-body { border-top: 1px solid var(--line); }

.sc-resource-head h3 {
  margin: 0;
}

.sc-resource-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sc-table-wrap {
  border: 0;
  border-radius: 0;
  max-height: 560px;
}

.sc-table {
  min-width: 1100px;
}

.sc-table td,
.sc-table th {
  max-width: 280px;
}

.sc-table th.wide-text-field,
.sc-table td.wide-text-field,
.scx-table th.wide-text-field,
.scx-table td.wide-text-field {
  min-width: 420px;
  max-width: 520px;
}

.sc-table th.page-title-field,
.sc-table td.page-title-field {
  width: 720px;
  min-width: 720px;
  max-width: 720px;
}

.connection-url-link {
  color: #087b83;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(8, 123, 131, 0.35);
  text-underline-offset: 2px;
}

.connection-url-link:hover,
.connection-url-link:focus-visible {
  color: #075d63;
  text-decoration-color: currentColor;
}

.sc-table td {
  overflow-wrap: anywhere;
}

.sortable-header {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-align: left;
}

.sortable-header:hover,
.sortable-header.active {
  color: var(--accent);
}

.sort-arrow {
  color: var(--accent-2);
  font-size: 12px;
  line-height: 1;
}

.sc-table code {
  display: inline-block;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}

.cell-disclosure {
  max-width: 420px;
}

.cell-disclosure > summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-disclosure > summary::marker {
  color: var(--accent-2);
}

.cell-disclosure pre {
  max-width: min(620px, 72vw);
  max-height: 240px;
  margin: 8px 0 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  white-space: pre-wrap;
}

.sc-response-panel {
  padding: 16px;
}

.sc-response-message {
  margin-bottom: 12px;
  color: var(--danger);
  font-weight: 800;
}

.sc-response-table-wrap {
  border-radius: 10px;
  max-height: 360px;
}

.sc-response-table {
  min-width: 0;
}

.sc-response-table th:first-child,
.sc-response-table td:first-child {
  width: 190px;
}

.sc-response-raw {
  margin: 0;
  padding: 16px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--muted);
}

.sc-chip-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.connection-tag-text {
  color: var(--accent);
  font-weight: 750;
}

.sc-empty {
  padding: 18px;
  color: var(--muted);
}

.scx-dashboard {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.scx-filter-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.scx-section-title {
  margin: 0;
  font-size: 20px;
}

.scx-filter-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.scx-filter-head {
  margin-top: 20px;
}

.scx-checkbox-filter-grid {
  align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scx-group-heading {
  padding: 0 2px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scx-kpis {
  margin-top: 0;
}

.scx-kpis.has-active-filters {
  padding: 14px;
  border: 2px solid rgba(15, 158, 168, 0.72);
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(15, 158, 168, 0.14), 0 0 26px rgba(15, 158, 168, 0.30);
  background: rgba(15, 158, 168, 0.035);
}

.scx-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.scx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  min-height: 220px;
}

.scx-card.is-full-width {
  grid-column: 1 / -1;
}

.scx-card.is-resizing {
  user-select: none;
}

.scx-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.scx-card-head h3 {
  margin: 0;
}

.scx-card-head span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scx-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.scx-expand-btn {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 158, 168, 0.24);
  background: rgba(15, 158, 168, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.scx-card-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.scx-resize-handle {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 34px;
  height: 18px;
  cursor: ns-resize;
}

.scx-resize-handle::before {
  content: "";
  display: block;
  width: 28px;
  height: 10px;
  margin-left: auto;
  border-bottom: 2px solid rgba(15, 158, 168, 0.52);
  border-top: 2px solid rgba(15, 158, 168, 0.22);
}

.scx-bars {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.scx-bar-row {
  display: grid;
  grid-template-columns: minmax(92px, 140px) minmax(100px, 1fr) minmax(82px, auto);
  align-items: center;
  gap: 10px;
}

.scx-bar-label,
.scx-bar-value {
  color: var(--muted);
  font-size: 12px;
}

.scx-bar-value {
  text-align: right;
}

.scx-bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 158, 168, 0.11);
  overflow: hidden;
}

.scx-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.scx-table-wrap {
  border: 0;
  border-radius: 0;
  max-height: none;
}

.scx-table {
  min-width: 980px;
}

.scx-table td:first-child,
.scx-table th:first-child {
  min-width: 320px;
}

.raw-json-panel {
  margin-top: 18px;
}

.raw-json-panel > summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .topbar,
  .controls,
  .coverage-section,
  .summary-grid,
  .sc-summary-grid,
  .sc-endpoint-strip,
  .connection-settings-form,
  .connection-store-card,
  .connection-filter-grid,
  .scx-filter-panel,
  .scx-insight-grid,
  .hours-layout,
  .tasks-layout,
  .landing-preview-layout {
    grid-template-columns: 1fr;
  }

  .env-settings-list { grid-template-columns: 1fr; }

  .menu {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  body {
    padding: 16px;
  }

  .hours-sidebar {
    position: static;
  }

  .tasks-sidebar {
    position: static;
  }

  .landing-preview-frame-wrap {
    min-height: 640px;
  }

  .landing-preview-thumb {
    grid-template-columns: 1fr;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .hours-layout.sidebar-open {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar {
    gap: 14px;
  }

  .brand-logo {
    height: 60px;
    max-width: min(300px, 64vw);
  }

  .account-bar {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .account-chip {
    text-align: left;
  }

  .task-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-summary-progress,
  .task-summary-right {
    min-width: 0;
    justify-items: start;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .hour-summary {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .hour-hours {
    grid-column: 2;
    justify-self: start;
  }

  .scx-bar-row {
    grid-template-columns: 1fr;
  }

  .scx-bar-value {
    text-align: left;
  }
}
