:root {
  --ink: #101512;
  --ink-2: #17201b;
  --ink-3: #223129;
  --paper: #f4f7f5;
  --white: #ffffff;
  --line: #dce5df;
  --muted: #718078;
  --soft: #edf2ee;
  --honey: #ffbd14;
  --honey-dark: #d99700;
  --leaf: #5f9f28;
  --blue: #338db7;
  --red: #e84e46;
  --purple: #7967af;
  --la-blue: #2e7fa3;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #101512;
  background: var(--honey);
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform .18s ease;
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html { background: var(--ink); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

button, select, input { font: inherit; }
button { cursor: pointer; }

button:focus-visible,
select:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(255, 189, 20, .78);
  outline-offset: 3px;
}

.hive-shell { min-height: 100vh; display: flex; background: var(--paper); }

.app-sidebar {
  position: sticky; top: 0; display: flex; width: 284px; height: 100vh; flex: 0 0 284px; flex-direction: column;
  padding: 24px 16px 18px; color: #d7e1da; overflow: hidden;
  background:
    radial-gradient(circle at 26% 4%, rgba(255, 189, 20, .14), transparent 26%),
    radial-gradient(circle at 100% 74%, rgba(95, 159, 40, .18), transparent 31%),
    linear-gradient(158deg, #101512 12%, #17201b 77%);
}

.app-sidebar::after {
  position: absolute; right: -95px; bottom: 108px; width: 250px; height: 250px; border: 1px solid rgba(255, 189, 20, .1); border-radius: 32%; transform: rotate(30deg); content: "";
}

.brand-lockup, .workspace-switcher, .side-nav, .sidebar-bottom { position: relative; z-index: 1; }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 7px; }
.brand-logo-wrap { display: grid; width: 44px; height: 44px; place-items: center; overflow: hidden; border-radius: 13px; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.23); }
.brand-logo { width: 39px; height: 39px; object-fit: contain; }
.brand-name { margin: 0; color: #fff; font-size: 13px; font-weight: 850; letter-spacing: .17em; }
.brand-product { margin: 3px 0 0; color: #90a095; font-size: 8px; font-weight: 750; letter-spacing: .16em; }

.workspace-switcher { display: flex; align-items: center; width: calc(100% - 10px); gap: 8px; margin: 35px 5px 18px; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.05); color: #eff5f0; font-size: 12px; font-weight: 720; text-align: left; }
.switcher-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 4px rgba(255,189,20,.12); }
.demo-badge { margin-left: auto; padding: 3px 5px; border-radius: 5px; color: #201d13; background: var(--honey); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.switcher-chevron { margin-left: auto; color: #91a197; font-size: 16px; }
.nav-label { margin: 11px 12px 8px; color: #829188; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.side-nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; width: 100%; gap: 11px; min-height: 43px; padding: 0 12px; border: 0; border-radius: 10px; color: #aebbb2; background: transparent; font-size: 13px; font-weight: 660; text-align: left; transition: .2s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.is-active { color: #191b15; background: var(--honey); box-shadow: 0 7px 19px rgba(0,0,0,.18); }
.nav-icon { display: inline-grid; width: 27px; height: 23px; flex: 0 0 27px; place-items: center; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; color: #c8d4cc; background: rgba(255,255,255,.05); font-size: 7px; font-weight: 850; letter-spacing: .04em; }
.nav-item.is-active .nav-icon { border-color: rgba(16,21,18,.12); color: #1c211c; background: rgba(255,255,255,.28); }
.nav-count { display: grid; width: 21px; height: 20px; margin-left: auto; place-items: center; border-radius: 7px; color: #182019; background: rgba(16,21,18,.12); font-size: 10px; font-weight: 820; }
.library-count { color: #eff8ed; background: rgba(95,159,40,.35); }
.nav-item.is-active .library-count { color: #182019; background: rgba(16,21,18,.12); }
.sidebar-bottom { display: grid; gap: 14px; margin-top: auto; }
.legacy-note { display: flex; align-items: flex-start; gap: 8px; padding: 12px; border: 1px solid rgba(255, 189, 20, .15); border-radius: 12px; color: #cbd5ce; background: rgba(255,189,20,.045); }
.legacy-spark { color: var(--honey); font-size: 16px; line-height: 1; }
.legacy-note div { display: grid; gap: 3px; }
.legacy-note strong { color: #f5f4df; font-size: 10px; }
.legacy-note span { font-size: 10px; line-height: 1.35; }
.profile-chip { display: flex; align-items: center; width: 100%; gap: 9px; padding: 7px 5px; border: 0; color: #cbd5ce; background: transparent; text-align: left; }
.profile-avatar { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: #151a16; background: #d2e49e; font-size: 10px; font-weight: 850; }
.profile-copy { display: grid; gap: 1px; min-width: 0; }
.profile-copy strong { color: #f0f6f1; font-size: 11px; }.profile-copy small { color: #85948a; font-size: 9px; }
.profile-chip > :last-child { margin-left: auto; }

.app-surface { width: calc(100% - 284px); min-width: 0; }
.topbar { display: flex; position: sticky; z-index: 5; top: 0; align-items: center; justify-content: space-between; min-height: 70px; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(244,247,245,.91); backdrop-filter: blur(18px); }
.crumbs, .topbar-actions { display: flex; align-items: center; gap: 9px; }.crumbs { color: #829087; font-size: 12px; }.crumbs strong { color: #233229; font-weight: 780; }.crumb-separator { color: #b6c0b9; }
.topbar-actions { gap: 10px; }.sync-status { display: inline-flex; align-items: center; gap: 7px; color: #5e6d63; font-size: 10px; font-weight: 730; }.sync-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(95,159,40,.11); }
.icon-button { position: relative; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #33473b; background: #fff; font-size: 18px; transition: .2s ease; }.icon-button:hover { border-color: #aebcb3; transform: translateY(-1px); }.notification-button { font-size: 19px; }.notification-button b { position: absolute; top: -4px; right: -4px; display: grid; width: 15px; height: 15px; place-items: center; border: 2px solid var(--paper); border-radius: 50%; color: #fff; background: var(--red); font-size: 8px; }

.canvas { max-width: 1540px; margin: 0 auto; padding: 42px 42px 25px; }
.intro-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 34px; align-items: center; margin-bottom: 32px; }.intro-copy { max-width: 780px; }.eyebrow, .panel-kicker { margin: 0; color: #5e9b2c; font-size: 10px; font-weight: 850; letter-spacing: .16em; }.eyebrow { display: flex; align-items: center; gap: 8px; }.eyebrow span { width: 18px; height: 2px; background: var(--honey); }
.intro-copy h1 { max-width: 800px; margin: 11px 0 13px; color: #142018; font-size: clamp(30px, 3.2vw, 48px); font-weight: 780; letter-spacing: -.052em; line-height: 1.04; }.intro-copy > p:last-of-type { max-width: 650px; margin: 0; color: #65746a; font-size: 15px; line-height: 1.65; }.intro-actions { display: flex; align-items: center; gap: 22px; margin-top: 22px; }
.primary-button, .secondary-button, .outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; border: 0; border-radius: 10px; padding: 0 16px; color: #171b15; background: var(--honey); box-shadow: 0 7px 18px rgba(196,139,3,.13); font-size: 12px; font-weight: 810; transition: transform .2s ease, box-shadow .2s ease; }.primary-button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(196,139,3,.22); }.primary-button b { font-size: 18px; line-height: 0; }.text-button, .quiet-link { border: 0; color: #425d4e; background: transparent; font-size: 12px; font-weight: 760; }.text-button:hover, .quiet-link:hover { color: var(--honey-dark); }.text-button span { margin-left: 4px; }.quiet-link { white-space: nowrap; }.quiet-link span { margin-left: 5px; font-size: 15px; }.outline-button { border: 1px solid var(--line); color: #385245; background: #fff; box-shadow: none; font-size: 11px; }.outline-button:hover { border-color: #b8c9bc; background: #f6faf6; }.secondary-button { border: 1px solid var(--line); color: #395145; background: #fff; box-shadow: none; }.secondary-button:hover { border-color: #b8c9bc; background: #f7faf8; }.wide { width: 100%; }

.pulse-card { position: relative; padding: 20px 20px 15px; overflow: hidden; border-radius: 18px; color: #edf6ed; background: linear-gradient(145deg, #15201a, #263a2d); box-shadow: 0 15px 35px rgba(17,31,20,.16); }.pulse-card::after { position: absolute; top: -50px; right: -40px; width: 150px; height: 150px; border-radius: 44%; background: rgba(255,189,20,.12); content: ""; }.pulse-card-top, .pulse-foot { display: flex; position: relative; z-index: 1; align-items: center; justify-content: space-between; }.pulse-card-top p { margin: 0; color: #9eada2; font-size: 9px; font-weight: 780; letter-spacing: .13em; }.pulse-card-top span { color: #d9edbf; font-size: 10px; font-weight: 730; }.pulse-card-top span::first-letter { color: var(--leaf); }.pulse-metric { position: relative; z-index: 1; margin-top: 19px; }.pulse-metric strong { color: #fff; font-size: 39px; letter-spacing: -.05em; line-height: 1; }.pulse-metric strong span { color: var(--honey); font-size: 21px; }.pulse-metric p { margin: 6px 0 0; color: #b7c4b9; font-size: 11px; }.spark-bars { display: flex; position: relative; z-index: 1; align-items: end; height: 39px; gap: 7px; margin: 17px 0 9px; }.spark-bars i { display: block; width: 100%; max-width: 18px; border-radius: 3px 3px 1px 1px; background: rgba(209,231,210,.28); }.spark-bars i:nth-child(1){height:32%}.spark-bars i:nth-child(2){height:52%}.spark-bars i:nth-child(3){height:41%}.spark-bars i:nth-child(4){height:69%}.spark-bars i:nth-child(5){height:58%}.spark-bars i:nth-child(6){height:82%}.spark-bars i:nth-child(7){height:100%}.spark-bars .hot { background: var(--honey); }.pulse-foot { color: #abb9af; font-size: 9px; }.pulse-foot span:first-child { color: #d9e9bd; }

.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }.metric-card { min-height: 144px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 3px 9px rgba(26,44,32,.035); }.metric-card p { margin: 0; color: #718077; font-size: 9px; font-weight: 810; letter-spacing: .12em; }.metric-card strong { display: block; margin: 17px 0 10px; color: #16231a; font-size: 30px; font-weight: 790; letter-spacing: -.05em; line-height: 1; }.trend { display: block; font-size: 10px; font-weight: 750; }.trend small { color: #8a988f; font-size: 9px; font-weight: 620; }.trend.good { color: #5a9b29; }.trend.neutral { color: #557f94; }.trend.alert { color: #d1564e; }.metric-card-emphasis { border-color: #d9e8be; background: linear-gradient(140deg,#fff 30%,#f7fbef); }

.content-grid { display: grid; gap: 18px; }.overview-grid { grid-template-columns: minmax(0,1.45fr) minmax(300px,.78fr); }.panel { border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 6px 20px rgba(27,48,35,.045); }.priority-panel, .intelligence-panel { min-height: 436px; padding: 21px; }.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.panel-heading h2, .takeover-copy h2 { margin: 6px 0 0; color: #17251b; font-size: 18px; font-weight: 760; letter-spacing: -.032em; }.queue-toolbar { display: flex; gap: 7px; margin: 21px 0 13px; overflow-x: auto; }.filter { flex: 0 0 auto; padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; color: #718077; background: #f1f5f2; font-size: 10px; font-weight: 710; }.filter:hover { color: #34493b; background: #e8efe9; }.filter.is-selected { border-color: #efd57e; color: #344324; background: #fff9df; }.work-list { display: grid; }.work-row { display: grid; grid-template-columns: 34px minmax(0,1fr) 112px 18px; align-items: center; gap: 10px; width: 100%; min-height: 69px; padding: 8px 0; border: 0; border-top: 1px solid #edf1ee; color: inherit; background: transparent; text-align: left; transition: .16s ease; }.work-row:hover { padding-right: 7px; padding-left: 7px; border-radius: 9px; background: #f7faf7; }.work-glyph { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; color: #fff; background: var(--leaf); font-size: 11px; font-weight: 830; }.work-glyph.urgent { background: var(--red); }.work-glyph.review { background: var(--blue); }.work-glyph.scheduled { background: var(--purple); }.work-glyph.ready { background: var(--leaf); }.work-main, .work-meta { display: grid; min-width: 0; }.work-main small, .work-main em { overflow: hidden; color: #85938a; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.work-main strong { overflow: hidden; margin: 3px 0 2px; color: #1d2c22; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }.work-meta { justify-items: end; gap: 6px; }.work-meta > small { color: #78877d; font-size: 9px; }.status-pill { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 6px; font-size: 9px; font-weight: 800; white-space: nowrap; }.status-urgent { color: #c64039; background: #fff0ef; }.status-review { color: #247091; background: #eaf6fb; }.status-scheduled { color: #625093; background: #f0edfb; }.status-ready { color: #4c8126; background: #edf8e4; }.row-arrow { color: #789084; font-size: 15px; }

.period-label { padding: 5px 7px; border-radius: 6px; color: #8a978f; background: #f2f5f3; font-size: 8px; font-weight: 760; letter-spacing: .06em; }.chart-wrap { display: grid; grid-template-columns: 24px 1fr; grid-template-rows: 180px 20px; gap: 7px 5px; margin-top: 31px; }.chart-labels { display: flex; grid-row: 1; flex-direction: column; justify-content: space-between; color: #94a099; font-size: 8px; }.bar-chart { display: flex; grid-column: 2; align-items: end; gap: 11px; padding: 9px 3px 0; border-bottom: 1px solid #dfe7e1; background: repeating-linear-gradient(to bottom, transparent 0, transparent 58px, #edf2ee 59px, transparent 60px); }.chart-bar { display: flex; position: relative; flex: 1; align-items: flex-end; min-width: 10px; border-radius: 5px 5px 0 0; background: #c9e1b7; }.chart-bar::after { width: 100%; height: 19%; border-radius: 5px 5px 0 0; background: var(--leaf); content: ""; }.chart-bar.high { background: #f2d783; }.chart-bar.high::after { background: var(--honey); }.chart-days { display: flex; grid-column: 2; justify-content: space-between; padding: 0 4px; color: #98a49d; font-size: 9px; }.signal-callout { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 11px 12px; border-radius: 10px; background: #f2f8ec; }.signal-orb { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #fff; background: var(--leaf); font-size: 12px; }.signal-callout p { margin: 0; color: #647265; font-size: 10px; line-height: 1.48; }.signal-callout strong { color: #365524; }

.bottom-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(360px,.9fr); gap: 18px; margin-top: 18px; }.workflow-glance { padding: 21px; }.mini-workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 23px; }.mini-step { position: relative; min-width: 0; }.step-number { display: grid; width: 27px; height: 27px; margin-bottom: 10px; place-items: center; border: 1px solid #d5e4c5; border-radius: 8px; color: #528525; background: #f4faee; font-size: 9px; font-weight: 830; }.mini-step strong { display: block; color: #1c2e22; font-size: 11px; font-weight: 760; }.mini-step p { margin: 5px 0 0; color: #819087; font-size: 9px; line-height: 1.45; }.step-link { position: absolute; top: 5px; right: -8px; color: #a7bbac; font-size: 13px; }.takeover-card { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 205px; overflow: hidden; border-radius: 17px; color: #eff8ed; background: linear-gradient(140deg,#142018,#263a2a); box-shadow: 0 10px 22px rgba(20,35,24,.14); }.takeover-copy { z-index: 1; padding: 22px; }.takeover-copy p { margin: 0; color: var(--honey); font-size: 9px; font-weight: 820; letter-spacing: .12em; }.takeover-copy h2 { max-width: 245px; color: #f5f8f3; font-size: 20px; line-height: 1.15; }.takeover-copy > span { display: block; margin-top: 10px; color: #b8c4ba; font-size: 10px; line-height: 1.5; }.takeover-copy button { display: inline-flex; align-items: center; gap: 8px; margin-top: 17px; padding: 0; border: 0; color: #fbe59e; background: transparent; font-size: 10px; font-weight: 780; }.takeover-copy button:hover { color: #fff; }.takeover-copy button b { font-size: 16px; }.takeover-visual { position: relative; overflow: hidden; }.takeover-visual::after { position: absolute; inset: 0; background: linear-gradient(90deg,#263a2a 0%,rgba(38,58,42,.15) 55%,rgba(17,20,17,.15)); content: ""; }.takeover-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 66% center; }.visual-badge { display: flex; position: absolute; z-index: 1; right: 14px; bottom: 13px; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; color: #fff; background: rgba(15,25,17,.73); backdrop-filter: blur(8px); }.visual-badge span { color: var(--honey); }.visual-badge strong { font-size: 7px; line-height: 1.35; letter-spacing: .09em; }

.field-layout, .case-layout, .workflow-layout, .data-layout { display: grid; gap: 18px; }.field-layout { grid-template-columns: minmax(0,1.12fr) minmax(330px,.72fr); }.route-panel, .field-case-panel, .case-list-panel, .case-detail-panel, .workflow-editor, .rule-panel, .integration-panel, .mapping-panel { padding: 22px; }.route-panel { min-height: 510px; }.route-track { position: relative; display: flex; align-items: center; justify-content: space-between; margin: 58px 21px 42px; }.route-line { position: absolute; right: 0; left: 0; height: 3px; border-radius: 3px; background: #dfe9dc; }.route-line::before { display: block; width: 43%; height: 100%; border-radius: inherit; background: var(--leaf); content: ""; }.route-stop { position: relative; z-index: 1; display: grid; width: 29px; height: 29px; place-items: center; border: 2px solid #d7e4da; border-radius: 50%; color: #85948b; background: #fff; font-size: 10px; font-weight: 820; }.route-stop.complete { border-color: var(--leaf); color: #fff; background: var(--leaf); }.route-stop.current { width: 36px; height: 36px; border-color: var(--honey); color: #28301c; background: var(--honey); box-shadow: 0 0 0 7px rgba(255,189,20,.17); }.route-cards { display: grid; gap: 9px; }.route-card { display: grid; grid-template-columns: 52px 1fr 20px; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; color: #34473b; background: #fff; text-align: left; }.route-card:hover { border-color: #c4d6c8; }.route-card.active { border-color: #edcf66; background: #fffcf0; }.route-card.done { opacity: .7; }.route-card > span { color: #718077; font-size: 10px; font-weight: 750; }.route-card div { display: grid; gap: 3px; }.route-card strong { color: #233328; font-size: 12px; }.route-card small { color: #7d8c82; font-size: 10px; }.route-card b { font-size: 17px; }.field-case-panel { align-self: start; }.case-brow { display: flex; align-items: center; gap: 8px; color: #86948a; font-size: 10px; font-weight: 750; }.case-type { padding: 4px 6px; border-radius: 5px; color: #4d8126; background: #eef7e7; font-size: 8px; letter-spacing: .08em; }.field-case-panel h2, .case-detail-panel h2, .rule-panel h2, .mapping-panel h2 { margin: 14px 0 6px; color: #193023; font-size: 23px; letter-spacing: -.04em; }.case-address { margin: 0; color: #6f7e74; font-size: 11px; }.field-checklist { display: grid; gap: 13px; margin: 25px 0; }.field-checklist label { display: flex; align-items: center; gap: 9px; color: #4a5c51; font-size: 11px; }.field-checklist input { width: 15px; height: 15px; accent-color: var(--leaf); }.outcome-row { display: grid; gap: 7px; margin-bottom: 16px; }.outcome-row span { color: #65756b; font-size: 10px; font-weight: 760; }.outcome-row select, .panel-heading select { min-height: 37px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: #3e5145; background: #f9fbf9; font-size: 11px; font-weight: 650; }.outcome-row select:focus, .panel-heading select:focus { border-color: var(--leaf); }

.case-layout { grid-template-columns: minmax(310px,.72fr) minmax(0,1.28fr); }.case-list-panel { min-height: 530px; }.case-list { display: grid; margin-top: 20px; }.case-list-row { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 12px 4px; border: 0; border-top: 1px solid #edf1ee; color: inherit; background: transparent; text-align: left; }.case-list-row:hover { background: #fafcf9; }.case-list-row.selected { margin: 0 -5px; padding-right: 9px; padding-left: 9px; border-radius: 10px; background: #f3f8ee; }.case-list-row > span:nth-child(2) { display: grid; min-width: 0; }.case-list-row small, .case-list-row em { overflow: hidden; color: #85938a; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.case-list-row strong { overflow: hidden; margin: 3px 0; color: #233328; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.case-detail-top { display: flex; justify-content: space-between; gap: 15px; }.detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 29px 0 23px; padding: 14px; border-radius: 11px; background: #f4f7f5; }.detail-stats div { display: grid; gap: 4px; }.detail-stats small { color: #85938a; font-size: 8px; font-weight: 780; letter-spacing: .08em; }.detail-stats strong { color: #344a3c; font-size: 11px; line-height: 1.35; }.detail-section { padding-top: 2px; }.case-timeline { display: grid; gap: 17px; margin-top: 17px; }.case-timeline > div { display: grid; grid-template-columns: 25px 1fr; align-items: flex-start; gap: 11px; }.timeline-dot { display: grid; position: relative; width: 22px; height: 22px; place-items: center; border: 1px solid #d2ded5; border-radius: 50%; color: #9aa79f; background: #fff; font-size: 9px; font-weight: 790; }.case-timeline > div:not(:last-child) .timeline-dot::after { position: absolute; top: 22px; width: 1px; height: 18px; background: #d9e4dc; content: ""; }.timeline-dot.done { border-color: var(--leaf); color: #fff; background: var(--leaf); }.timeline-dot.active { border-color: var(--honey); color: #3c371e; background: var(--honey); }.case-timeline p { display: grid; gap: 3px; margin: 0; }.case-timeline strong { color: #344b3d; font-size: 11px; }.case-timeline small { color: #85938a; font-size: 9px; }.detail-actions { display: flex; gap: 9px; margin-top: 27px; }

.workflow-layout { grid-template-columns: minmax(0,1.25fr) minmax(300px,.62fr); }.workflow-editor { min-height: 510px; }.workflow-canvas { display: grid; position: relative; gap: 12px; margin: 28px 9px 0; }.workflow-rail { position: absolute; top: 26px; bottom: 25px; left: 19px; width: 2px; background: #dae6d8; }.flow-node { display: grid; grid-template-columns: 40px 1fr auto; position: relative; z-index: 1; align-items: center; gap: 13px; min-height: 66px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.flow-node.highlight { border-color: #ecd57a; background: #fffcf2; box-shadow: 0 8px 20px rgba(196,148,24,.09); }.flow-node > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: #5c8f2f; background: #eef7e7; font-size: 9px; font-weight: 800; }.flow-node.highlight > span { color: #4c431e; background: var(--honey); }.flow-node div { display: grid; gap: 3px; }.flow-node strong { color: #213126; font-size: 12px; }.flow-node small { color: #7c8b81; font-size: 10px; }.flow-node button { padding: 5px 7px; border: 0; border-radius: 5px; color: #75651f; background: #fff3ba; font-size: 9px; font-weight: 760; }.workflow-footer { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 19px; padding-top: 15px; border-top: 1px solid #edf1ee; color: #5d873d; font-size: 10px; font-weight: 690; }.rule-panel { align-self: start; }.rule-stack { display: grid; gap: 12px; margin: 25px 0; }.rule-stack > div { display: grid; grid-template-columns: 25px 1fr; gap: 10px; }.rule-stack span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; color: #3d6724; background: #edf7e6; font-size: 9px; font-weight: 810; }.rule-stack p { display: grid; gap: 4px; margin: 0; }.rule-stack strong { color: #344b3d; font-size: 11px; }.rule-stack small { color: #809087; font-size: 9px; }

.data-layout { grid-template-columns: minmax(0,1.28fr) minmax(280px,.62fr); }.integration-panel { min-height: 490px; }.integration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 28px 0 35px; }.integration-card { display: grid; gap: 6px; min-height: 115px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fafcfb; }.integration-card b { display: grid; width: 31px; height: 27px; place-items: center; border-radius: 7px; color: #276b88; background: #e4f3f9; font-size: 9px; }.integration-card:nth-child(2) b { color: #6e5922; background: #fff2c0; }.integration-card:nth-child(3) b { color: #5c4d89; background: #eee9fb; }.integration-card:nth-child(4) b { color: #4f812b; background: #eaf7e2; }.integration-card span { color: #3d5145; font-size: 10px; font-weight: 710; line-height: 1.4; }.integration-card small { color: #87958c; font-size: 8px; }.exchange-flow { display: grid; grid-template-columns: 1fr 24px 1fr 24px 1fr; align-items: center; gap: 4px; padding: 22px 13px; border-radius: 13px; color: #51645a; background: #f0f5f1; text-align: center; font-size: 10px; font-weight: 720; }.exchange-flow b { color: #a0b4a4; }.exchange-core { padding: 14px 8px; border-radius: 9px; color: #19241c; background: var(--honey); font-size: 11px; font-weight: 850; letter-spacing: .04em; }.exchange-core small { font-size: 8px; font-weight: 660; letter-spacing: 0; }.source-dot, .dest-dot { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--blue); }.dest-dot { background: var(--leaf); }.mapping-panel { align-self: start; }.mapping-table { display: grid; gap: 9px; margin: 24px 0; }.mapping-table div { display: grid; grid-template-columns: 1fr 20px 1fr; align-items: center; gap: 5px; padding: 10px; border: 1px solid #edf1ee; border-radius: 8px; }.mapping-table span { color: #6d7d73; font-size: 10px; }.mapping-table b { color: #a9b5ad; text-align: center; }.mapping-table strong { color: #3e5547; font-size: 10px; text-align: right; }

.concept-footer { display: flex; justify-content: space-between; gap: 18px; padding: 33px 0 7px; color: #8c9991; font-size: 9px; }.toast { display: flex; position: fixed; z-index: 20; right: 28px; bottom: 24px; align-items: center; max-width: min(420px, calc(100vw - 42px)); gap: 10px; padding: 12px 10px 12px 13px; border: 1px solid #d7e6cc; border-radius: 11px; color: #f2f9ee; background: #1d3123; box-shadow: 0 15px 38px rgba(10,20,12,.28); font-size: 11px; line-height: 1.4; animation: toast-in .25s ease-out; }.toast > span { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #1b2d1d; background: #b6de7f; font-weight: 900; }.toast button { width: 21px; height: 21px; margin-left: 3px; border: 0; border-radius: 5px; color: #cbd9cd; background: transparent; font-size: 18px; line-height: 1; }.toast button:hover { color: #fff; background: rgba(255,255,255,.08); }@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1180px) { .app-sidebar { width: 235px; flex-basis: 235px; }.app-surface { width: calc(100% - 235px); }.topbar, .canvas { padding-right: 28px; padding-left: 28px; }.intro-grid { grid-template-columns: 1fr 270px; }.metric-row { grid-template-columns: repeat(2,1fr); }.overview-grid, .bottom-grid { grid-template-columns: 1fr; }.takeover-card { min-height: 190px; }.mini-workflow { grid-template-columns: repeat(4,1fr); }.field-layout, .case-layout, .workflow-layout, .data-layout { grid-template-columns: 1fr; }.field-case-panel, .rule-panel, .mapping-panel { align-self: stretch; }.integration-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 820px) { .hive-shell { display: block; }.app-sidebar { position: relative; width: 100%; height: auto; min-height: unset; padding: 13px 14px; }.app-sidebar::after, .workspace-switcher, .nav-label, .legacy-note, .profile-chip { display: none; }.brand-lockup { padding: 0; }.brand-logo-wrap { width: 36px; height: 36px; border-radius: 10px; }.brand-logo { width: 32px; height: 32px; }.sidebar-bottom { display: none; }.side-nav { display: flex; flex-direction: row; gap: 5px; margin-top: 14px; overflow-x: auto; }.nav-item { width: auto; min-height: 35px; flex: 0 0 auto; padding: 0 10px; font-size: 11px; }.nav-icon { font-size: 7px; }.nav-count { display: none; }.app-surface { width: 100%; }.topbar { position: relative; min-height: 53px; padding: 0 18px; }.sync-status { display: none; }.canvas { padding: 27px 18px 18px; }.intro-grid { grid-template-columns: 1fr; gap: 18px; }.pulse-card { max-width: none; }.intro-copy h1 { font-size: 35px; }.content-grid, .bottom-grid { gap: 14px; }.concept-footer { flex-direction: column; padding-top: 22px; }.mini-workflow { grid-template-columns: repeat(2,1fr); row-gap: 23px; }.step-link { display: none; }.integration-grid { grid-template-columns: repeat(2,1fr); }.exchange-flow { grid-template-columns: 1fr; gap: 8px; }.exchange-flow b { transform: rotate(90deg); }.detail-stats { grid-template-columns: 1fr; }.case-detail-top { flex-direction: column; }.case-list-panel { min-height: unset; }.workflow-editor, .route-panel, .integration-panel { min-height: unset; } }
@media (max-width: 520px) { .topbar-actions { gap: 6px; }.crumbs { font-size: 10px; }.intro-copy h1 { font-size: 31px; }.intro-copy > p:last-of-type { font-size: 13px; }.intro-actions { align-items: flex-start; flex-direction: column; gap: 12px; }.metric-row { grid-template-columns: 1fr 1fr; gap: 8px; }.metric-card { min-height: 118px; padding: 14px; }.metric-card strong { margin: 14px 0 8px; font-size: 27px; }.priority-panel, .intelligence-panel, .workflow-glance, .route-panel, .field-case-panel, .case-list-panel, .case-detail-panel, .workflow-editor, .rule-panel, .integration-panel, .mapping-panel { padding: 16px; }.panel-heading h2 { font-size: 16px; }.work-row { grid-template-columns: 31px minmax(0,1fr) 14px; }.work-meta { display: none; }.row-arrow { justify-self: end; }.takeover-card { grid-template-columns: 1fr; }.takeover-visual { display: none; }.field-layout, .case-layout, .workflow-layout, .data-layout { gap: 13px; }.route-track { margin: 45px 12px 30px; }.route-stop:nth-of-type(n+6) { display: none; }.route-card { grid-template-columns: 43px 1fr 15px; }.case-list-row { grid-template-columns: 30px minmax(0,1fr); }.case-list-row .status-pill { display: none; }.detail-actions { flex-direction: column; }.workflow-footer { flex-direction: column; gap: 6px; }.integration-grid { grid-template-columns: 1fr 1fr; }.toast { right: 18px; bottom: 18px; } }

/* Static app additions */

.workspace-switcher .switcher-chevron { margin-left: 0; }
.view-root { min-height: 510px; }
.view-root > section { animation: view-enter .24s ease-out; }
.loading-panel { min-height: 280px; padding: 32px; }
.loading-panel h2 { margin: 8px 0 0; color: #1f3326; font-size: 24px; }

.work-row { min-height: 82px; }
.work-glyph { width: 33px; height: 33px; font-size: 7px; letter-spacing: .02em; }
.source-tag { display: inline-flex; width: max-content; align-items: center; min-height: 18px; padding: 0 6px; border: 1px solid #dbe8d3; border-radius: 5px; color: #4e792f; background: #f4f9ef; font-size: 7px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.work-meta .source-tag { justify-self: end; }

.mobile-status-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 18px; }
.mobile-status-strip span { display: inline-flex; align-items: center; min-height: 29px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #627269; background: rgba(255,255,255,.72); font-size: 9px; font-weight: 750; }
.mobile-status-strip span:first-child { color: #467a28; background: #f2f9ec; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 3px rgba(95,159,40,.12); }
.route-card.selected-visit { box-shadow: 0 0 0 2px rgba(255,189,20,.32); }
.route-card .source-tag { margin-bottom: 2px; }
.detail-source-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; color: #89978e; font-size: 8px; font-weight: 700; }
.evidence-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 20px 0 4px; }
.evidence-summary span { display: grid; gap: 2px; padding: 10px; border-radius: 9px; color: #7a8980; background: #f4f7f5; font-size: 8px; text-align: center; }
.evidence-summary b { color: #2d4536; font-size: 14px; }
.field-checklist { padding: 0; border: 0; }
.field-checklist legend { margin-bottom: 13px; color: #65756b; font-size: 10px; font-weight: 780; }

.case-list-row .source-tag { margin-top: 5px; }
.record-provenance { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 8px; margin-top: 23px; padding: 13px; border: 1px solid #e6ede8; border-radius: 11px; background: linear-gradient(90deg,#f7faf8,#fbfcf8); }
.record-provenance div { display: grid; gap: 4px; }
.record-provenance small { color: #87958c; font-size: 7px; font-weight: 820; letter-spacing: .09em; }
.record-provenance strong { color: #344d3d; font-size: 10px; }
.record-provenance > span { color: #b3bdb6; text-align: center; }

.select-label { display: inline-flex; }
.rule-preview { display: grid; gap: 4px; margin: 20px 0 16px; padding: 11px; border: 1px solid #e5ebdf; border-radius: 9px; background: #f8faf5; }
.rule-preview small { color: #829087; font-size: 7px; font-weight: 820; letter-spacing: .08em; }
.rule-preview strong { color: #3b573f; font-size: 10px; }

.library-toolbar { display: grid; grid-template-columns: minmax(230px,.9fr) minmax(0,1.6fr) auto; align-items: center; gap: 15px; margin-bottom: 18px; padding: 15px; }
.library-search { display: flex; align-items: center; gap: 8px; min-height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: #6c7b72; background: #f9fbfa; }
.library-search:focus-within { border-color: #c6a935; box-shadow: 0 0 0 3px rgba(255,189,20,.12); }
.library-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #25362c; background: transparent; font-size: 11px; }
.library-search input::placeholder { color: #98a49d; }
.library-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.library-total { color: #819087; font-size: 9px; font-weight: 750; white-space: nowrap; }
.library-layout { display: grid; grid-template-columns: minmax(0,1fr) 350px; align-items: start; gap: 18px; }
.library-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.library-card { display: flex; min-height: 244px; flex-direction: column; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgba(27,48,35,.04); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.library-card:hover { border-color: #c6d5ca; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27,48,35,.07); }
.library-card.selected { border-color: #e5c44e; box-shadow: 0 0 0 2px rgba(255,189,20,.11); }
.library-card-top, .template-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.template-type { display: inline-flex; align-items: center; min-height: 21px; padding: 0 7px; border-radius: 6px; color: #276d8c; background: #eaf5fa; font-size: 8px; font-weight: 820; }
.template-status { color: #5b8a37; font-size: 8px; font-weight: 760; white-space: nowrap; }
.library-card h2 { margin: 15px 0 8px; color: #1d3023; font-size: 15px; line-height: 1.25; letter-spacing: -.025em; }
.library-card p { margin: 0; color: #75847a; font-size: 10px; line-height: 1.55; }
.library-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; color: #8a978f; font-size: 8px; }
.library-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.library-card-actions .secondary-button { min-height: 32px; padding: 0 10px; font-size: 9px; }
.library-card-actions .quiet-link { font-size: 9px; }
.template-detail { position: sticky; top: 88px; padding: 21px; }
.template-detail .panel-kicker { margin-top: 21px; }
.template-detail h2 { margin: 8px 0 10px; color: #1a3022; font-size: 21px; line-height: 1.2; letter-spacing: -.04em; }
.template-detail > p:not(.panel-kicker) { margin: 0; color: #718078; font-size: 10px; line-height: 1.6; }
.template-facts { display: grid; gap: 8px; margin: 19px 0; }
.template-facts div { display: grid; gap: 3px; padding: 9px 10px; border-radius: 8px; background: #f4f7f5; }
.template-facts small { color: #89968e; font-size: 7px; font-weight: 820; letter-spacing: .08em; }
.template-facts strong { color: #395142; font-size: 10px; }
.field-list { display: grid; gap: 8px; margin: 13px 0 19px; padding: 0; list-style: none; }
.field-list li { display: flex; align-items: center; gap: 8px; color: #53665a; font-size: 10px; }
.field-list li span { display: grid; width: 18px; height: 18px; flex: 0 0 18px; place-items: center; border-radius: 6px; color: #4e7c2e; background: #edf7e6; font-size: 8px; }
.empty-state { grid-column: 1/-1; padding: 50px 25px; color: #718078; text-align: center; }
.empty-state > span { display: grid; width: 44px; height: 44px; margin: 0 auto 12px; place-items: center; border-radius: 13px; color: #4c6655; background: #edf2ee; font-size: 23px; }
.empty-state h2 { margin: 0 0 6px; color: #253a2d; font-size: 18px; }
.empty-state p { margin: 0 0 16px; font-size: 10px; }

.integration-grid-six { grid-template-columns: repeat(3,1fr); margin-bottom: 24px; }
.integration-card { color: inherit; text-align: left; cursor: pointer; }
.integration-card:hover { border-color: #c8d6cc; background: #fff; box-shadow: 0 7px 16px rgba(26,45,32,.05); }
.integration-card em { margin-top: auto; color: #5e8b3d; font-size: 8px; font-style: normal; font-weight: 740; }
.exchange-health { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 16px; }
.exchange-health div { display: grid; gap: 4px; padding: 11px; border: 1px solid #e5ece7; border-radius: 9px; background: #fbfcfb; }
.exchange-health strong { color: #263b2d; font-size: 15px; }
.exchange-health small { color: #849188; font-size: 8px; }

.toast p { margin: 0; }
.toast button { margin-left: auto; }

.search-dialog { width: min(680px,calc(100vw - 34px)); max-height: min(720px,calc(100vh - 40px)); padding: 0; overflow: hidden; border: 1px solid #d7e1da; border-radius: 17px; color: var(--ink); background: #fff; box-shadow: 0 26px 80px rgba(8,18,11,.35); }
.search-dialog::backdrop { background: rgba(12,19,15,.58); backdrop-filter: blur(4px); }
.dialog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 21px 21px 14px; }
.dialog-top h2 { margin: 7px 0 0; color: #1b2f22; font-size: 21px; letter-spacing: -.035em; }
.dialog-close { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #52635a; background: #f7f9f7; font-size: 22px; }
.search-field { display: flex; align-items: center; gap: 9px; margin: 0 21px 14px; padding: 0 11px; border: 1px solid #cfdad2; border-radius: 10px; background: #f8faf9; }
.search-field:focus-within { border-color: #d1a91a; box-shadow: 0 0 0 3px rgba(255,189,20,.14); }
.search-field input { min-width: 0; flex: 1; min-height: 45px; border: 0; outline: 0; color: #23372a; background: transparent; font-size: 12px; }
.search-field kbd { padding: 4px 6px; border: 1px solid #dbe3dd; border-bottom-width: 2px; border-radius: 5px; color: #839087; background: #fff; font-size: 7px; }
.search-results { max-height: 500px; overflow-y: auto; border-top: 1px solid #e7ece9; }
.search-result { display: grid; grid-template-columns: 52px minmax(0,1fr) 20px; align-items: center; gap: 12px; width: 100%; min-height: 67px; padding: 11px 21px; border: 0; border-bottom: 1px solid #edf1ee; color: inherit; background: #fff; text-align: left; }
.search-result:hover { background: #f7faf7; }
.search-result-type { display: inline-flex; justify-content: center; padding: 5px 4px; border-radius: 6px; color: #526e5c; background: #edf3ef; font-size: 7px; font-weight: 850; }
.search-result > span:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.search-result strong { overflow: hidden; color: #26392d; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.search-result small { overflow: hidden; color: #819087; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.search-result b { color: #819087; font-size: 16px; }
.search-empty { display: grid; gap: 5px; padding: 35px 21px; color: #819087; text-align: center; font-size: 10px; }
.search-empty strong { color: #385043; font-size: 14px; }
.noscript-banner { position: fixed; z-index: 90; right: 20px; bottom: 20px; left: 20px; padding: 14px; border-radius: 10px; color: #fff; background: #9e312c; font-size: 12px; text-align: center; }

@keyframes view-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .library-layout { grid-template-columns: 1fr; }
  .template-detail { position: static; }
  .library-toolbar { grid-template-columns: minmax(220px,.8fr) minmax(0,1.2fr); }
  .library-total { display: none; }
}

@media (max-width: 820px) {
  .nav-icon { width: 25px; height: 21px; flex-basis: 25px; }
  .library-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .library-total { display: inline; }
  .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mobile-status-strip { gap: 6px; }
  .mobile-status-strip span { flex: 1 1 auto; justify-content: center; }
  .integration-grid-six { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 620px) {
  .library-grid { grid-template-columns: 1fr; }
  .library-card { min-height: 220px; }
  .library-filters { padding-bottom: 2px; }
  .record-provenance { grid-template-columns: 1fr; }
  .record-provenance > span { transform: rotate(90deg); }
  .evidence-summary, .exchange-health { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 520px) {
  .nav-item { min-height: 42px; }
  .library-card-actions { align-items: stretch; flex-direction: column; }
  .library-card-actions .secondary-button { min-height: 38px; }
  .template-detail { padding: 17px; }
  .integration-grid-six { grid-template-columns: 1fr; }
  .exchange-health { grid-template-columns: 1fr; }
  .search-dialog { max-height: calc(100vh - 20px); }
  .dialog-top, .search-result { padding-right: 15px; padding-left: 15px; }
  .search-field { margin-right: 15px; margin-left: 15px; }
  .search-result { grid-template-columns: 45px minmax(0,1fr) 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
