:root {
  color-scheme: light;
  --ink: #0a1628;
  --ink-soft: #172b46;
  --muted: #66758a;
  --muted-light: #8c9aad;
  --line: #e2e9ef;
  --paper: #f6f9fb;
  --white: #fff;
  --cyan: #1bb8c5;
  --cyan-dark: #07828e;
  --teal-pale: #e3f7f7;
  --shadow: 0 14px 42px rgba(10, 22, 40, .065);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--paper); font-size: 14px; line-height: 1.55; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(27, 184, 197, .55); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 10; top: -60px; left: 1rem; padding: .7rem 1rem; border-radius: 10px; color: var(--ink); background: var(--cyan); font-weight: 800; }
.skip-link:focus { top: 1rem; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 3; display: flex; width: 250px; flex-direction: column; padding: 27px 17px 18px; border-right: 1px solid var(--line); background: #fff; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 30px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 12px 12px 12px 4px; background: var(--cyan); color: var(--ink); font-size: 12px; font-weight: 900; letter-spacing: -.04em; }
.brand strong { display: block; font-size: 15px; letter-spacing: -.035em; line-height: 1.2; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .025em; }
.workspace-label { margin: 0 9px 10px; color: #93a0af; font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.side-nav { display: grid; gap: 5px; }
.nav-item { display: flex; min-height: 43px; align-items: center; gap: 11px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: #5e6c7e; text-align: left; font-size: 12px; font-weight: 650; cursor: pointer; transition: color .16s ease, background .16s ease; }
.nav-item:hover { background: #f5f8fa; color: var(--ink); }
.nav-item.is-active { background: #e9f8f8; color: #087b84; font-weight: 800; }
.nav-icon { width: 17px; color: #8290a1; font-size: 17px; line-height: 1; text-align: center; }
.nav-item.is-active .nav-icon { color: #078b95; }
.demo-pill { margin-left: auto; padding: 2px 6px; border: 1px solid #bce6e6; border-radius: 5px; color: #087b84; background: #f7ffff; font-size: 8px; font-weight: 850; letter-spacing: .05em; }
.sidebar-bottom { margin-top: auto; }
.boundary-card { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border: 1px solid #e2efed; border-radius: 11px; background: #f8fcfb; }
.boundary-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #39b995; box-shadow: 0 0 0 4px #e5f6ef; }
.boundary-card strong { display: block; font-size: 10px; }
.boundary-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.sidebar-foot { margin: 12px 9px 0; color: #92a0af; font-size: 9px; line-height: 1.7; }
.main-column { min-height: 100vh; margin-left: 250px; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 2; display: flex; height: 60px; flex: 0 0 60px; align-items: center; justify-content: space-between; padding: 0 clamp(25px, 4vw, 58px); border-bottom: 1px solid rgba(226, 233, 239, .86); background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #8492a3; font-size: 11px; }
.breadcrumb strong { color: #334258; font-weight: 750; }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.environment { display: inline-flex; align-items: center; gap: 7px; color: #758397; font-size: 9px; font-weight: 850; letter-spacing: .09em; }
.environment span, .mode-badge span { width: 6px; height: 6px; border-radius: 50%; background: #32b48b; box-shadow: 0 0 0 3px #e3f6ee; }
.avatar { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #d5e7e9; border-radius: 50%; background: #ebf8f7; color: #137a81; font-size: 9px; font-weight: 850; }
.content { width: 100%; max-width: 1540px; flex: 1; margin: 0 auto; padding: 36px clamp(25px, 4vw, 58px) 50px; }
.view[hidden] { display: none; }
.view.is-visible { animation: reveal .22s ease-out; }
@keyframes reveal { from { opacity: .75; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-heading { margin: 0 0 25px; }
.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.eyebrow { margin: 0 0 8px; color: #0b8790; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 800px; margin-bottom: 8px; font-size: clamp(28px, 3.2vw, 39px); line-height: 1.13; letter-spacing: -.055em; }
.view h1[tabindex="-1"]:focus { outline: 2px solid rgba(27, 184, 197, .48); outline-offset: 6px; border-radius: 3px; }
.lede { max-width: 700px; margin: 0; color: var(--muted); font-size: 13px; }
h2 { margin: 0; font-size: 15px; line-height: 1.3; letter-spacing: -.025em; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 11px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(10, 22, 40, .12); }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #172c48; }
.button-outline { min-height: 35px; border-color: #d7e4e8; background: #fff; color: #304258; white-space: nowrap; }
.notice { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 21px; padding: 12px 15px; border: 1px solid #d7eceb; border-radius: 9px; background: #f0fbfa; color: #496a72; }
.notice-icon { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; margin-top: 1px; border-radius: 50%; background: #d6f2ef; color: #087b84; font-size: 10px; font-weight: 900; }
.notice p { margin: 0; font-size: 10px; line-height: 1.6; }
.notice strong { color: #25545d; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.metric-card { min-height: 112px; padding: 16px 17px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 3px 12px rgba(13, 38, 59, .025); }
.metric-label { display: flex; align-items: center; justify-content: space-between; color: #6d7a8b; font-size: 10px; font-weight: 650; }
.metric-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; font-size: 14px; font-weight: 800; }
.metric-icon.cyan { background: #e5f8f7; color: #10858e; }
.metric-icon.violet { background: #f0edff; color: #7766cf; }
.metric-icon.amber { background: #fff5e2; color: #b77a17; }
.metric-icon.green { background: #e8f7ef; color: #27966c; }
.metric-card > strong { display: block; margin-top: 6px; font-size: 26px; font-weight: 800; letter-spacing: -.05em; line-height: 1.1; }
.metric-card > small { display: block; margin-top: 5px; color: #99a4b1; font-size: 9px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 15px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 3px 12px rgba(13, 38, 59, .025); }
.workflow-panel, .activity-panel { padding: 18px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-heading .eyebrow { margin-bottom: 5px; font-size: 8px; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: #0a858e; font-size: 10px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.text-button:hover { color: #075d65; text-decoration: underline; text-underline-offset: 3px; }
.journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0; margin: 27px 0 15px; list-style: none; }
.journey li { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.journey li:not(:last-child)::after { position: absolute; top: 15px; left: 35px; width: calc(100% - 37px); height: 1px; background: #dfe9eb; content: ""; }
.journey-icon { position: relative; z-index: 1; display: grid; width: 30px; height: 30px; place-items: center; margin-bottom: 9px; border: 1px solid #d4e9e9; border-radius: 9px; background: #effafa; color: #0c8790; font-size: 9px; font-weight: 850; }
.journey strong { font-size: 10px; }
.journey small { margin-top: 2px; color: #8b98a8; font-size: 8px; }
.journey-caption { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid #edf1f4; color: #7f8c9c; font-size: 9px; }
.line-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.recent-list { margin-top: 13px; }
.recent-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid #edf1f4; }
.recent-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid #e3edf0; border-radius: 8px; background: #f7fbfc; color: #50747e; font-size: 12px; font-weight: 750; }
.recent-copy { min-width: 0; flex: 1; }
.recent-copy strong, .recent-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-copy strong { font-size: 9px; }
.recent-copy small { margin-top: 2px; color: #8996a5; font-size: 8px; }
.status-badge { display: inline-flex; width: max-content; align-items: center; padding: 4px 7px; border: 1px solid transparent; border-radius: 20px; font-size: 8px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.status-blue { border-color: #d7e9fd; background: #edf6ff; color: #3d79b6; }
.status-violet { border-color: #e3ddff; background: #f3f0ff; color: #6a59bf; }
.status-amber { border-color: #f5e5c4; background: #fff8e9; color: #a96b0e; }
.status-cyan { border-color: #cdeeee; background: #eafafa; color: #0b818b; }
.status-green { border-color: #d2ecdf; background: #ecf8f1; color: #26825e; }
.status-gray { border-color: #e2e7ec; background: #f2f4f6; color: #7a8795; }
.security-strip { display: flex; align-items: center; gap: 13px; margin-top: 16px; padding: 13px 16px; border: 1px solid #e3e9f0; border-radius: 10px; background: #fff; }
.lock-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: #f0f4f8; color: #61748c; font-size: 13px; }
.security-strip > div { flex: 1; }
.security-strip strong { font-size: 10px; }
.security-strip p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.app-footer { display: flex; justify-content: space-between; gap: 15px; padding: 15px clamp(25px, 4vw, 58px) 19px; border-top: 1px solid #e8edf1; color: #96a2af; font-size: 9px; }

/* Public tracking */
.tracking-layout { display: grid; grid-template-columns: minmax(290px, .78fr) minmax(350px, 1.22fr); align-items: stretch; gap: 17px; }
.tracking-form-panel { padding: 22px; }
.form-heading { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 21px; }
.step-number { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: #e7f8f6; color: #0b828b; font-size: 10px; font-weight: 900; }
.form-heading h2 { margin: 1px 0 4px; font-size: 14px; }
.form-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.tracking-form-panel label, .filter-field label { display: block; margin: 0 0 6px; color: #3b4c61; font-size: 10px; font-weight: 750; }
.tracking-form-panel input, .filter-field input, .filter-field select { width: 100%; min-height: 39px; padding: 0 11px; border: 1px solid #dce5ec; border-radius: 7px; background: #fff; color: var(--ink); font-size: 10px; }
.tracking-form-panel input::placeholder, .filter-field input::placeholder { color: #a4afbc; }
.tracking-form-panel input { margin-bottom: 15px; }
.form-hint { margin: -7px 0 14px; color: #8794a3; font-size: 9px; line-height: 1.5; }
.full-width { width: 100%; min-height: 42px; }
.sample-button { display: flex; width: 100%; align-items: center; justify-content: center; gap: 6px; padding: 9px; border: 0; background: transparent; color: #0a838c; font-size: 10px; font-weight: 800; cursor: pointer; }
.sample-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.demo-credential { display: flex; gap: 8px; margin-top: 9px; padding: 10px; border: 1px dashed #d9e9e8; border-radius: 8px; background: #f7fbfa; }
.sparkle { color: #17a4a7; font-size: 13px; }
.demo-credential p { margin: 0; color: #7d8a99; font-size: 9px; }
.demo-credential strong { color: #43566a; }
.result-column { min-width: 0; }
.empty-result, .error-result { display: flex; min-height: 100%; min-height: 380px; flex-direction: column; align-items: center; justify-content: center; padding: 28px; border: 1px dashed #d5e0e8; border-radius: 11px; background: rgba(255,255,255,.55); text-align: center; }
.empty-art { position: relative; display: grid; width: 89px; height: 88px; place-items: center; margin-bottom: 18px; border: 1px solid #e3ecef; border-radius: 24px; background: linear-gradient(145deg, #fff, #f0f8f8); color: #53aab0; font-size: 14px; font-weight: 900; letter-spacing: .08em; box-shadow: 0 13px 28px rgba(25, 103, 112, .07); transform: rotate(-4deg); }
.empty-art::before, .empty-art::after { position: absolute; width: 27px; height: 5px; border-radius: 5px; background: #cbeceb; content: ""; }
.empty-art::before { top: 23px; left: -14px; transform: rotate(-24deg); }
.empty-art::after { right: -17px; bottom: 20px; background: #e5dfff; transform: rotate(24deg); }
.empty-art i, .empty-art b { position: absolute; right: -5px; top: -5px; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; background: #79d0b2; }
.empty-art b { right: auto; top: auto; bottom: 3px; left: -7px; width: 8px; height: 8px; background: #d8cdfd; }
.empty-result h2 { margin-bottom: 6px; font-size: 13px; }
.empty-result > p { max-width: 280px; margin: 0; color: #8290a0; font-size: 10px; }
.privacy-note { display: flex; align-items: center; gap: 6px; margin-top: 19px; padding: 7px 10px; border: 1px solid #e1eaef; border-radius: 20px; color: #7e8b99; background: #fff; font-size: 8px; }
.privacy-note span { color: #148b8f; font-size: 13px; }
.error-result { min-height: 230px; border-style: solid; border-color: #f1dada; background: #fffafa; }
.error-icon { display: grid; width: 35px; height: 35px; place-items: center; margin-bottom: 11px; border-radius: 50%; background: #fff0ef; color: #bb5754; font-weight: 900; }
.error-result h2 { margin-bottom: 6px; font-size: 13px; }
.error-result p { max-width: 310px; margin: 0; color: #8d7778; font-size: 10px; }
.result-card { overflow: hidden; border: 1px solid #dce7ed; border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.result-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 17px; border-bottom: 1px solid #edf1f4; background: #fbfdfd; }
.result-label { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.result-check { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: #e5f7ed; color: #269368; font-size: 10px; font-weight: 900; }
.verified-pill { padding: 4px 7px; border: 1px solid #d3eddf; border-radius: 5px; background: #f0faf4; color: #418b69; font-size: 7px; font-weight: 850; letter-spacing: .07em; }
.result-id { margin: 19px 18px 1px; color: #0b8790; font-size: 9px; font-weight: 850; letter-spacing: .07em; }
.result-title { margin: 0 18px 17px; font-size: 19px; line-height: 1.25; letter-spacing: -.035em; }
.result-status-row { display: flex; align-items: center; justify-content: space-between; margin: 0 18px; padding: 11px 0; border-top: 1px solid #edf1f4; border-bottom: 1px solid #edf1f4; }
.muted-label { color: #8592a1; font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.public-note { display: flex; gap: 8px; margin: 13px 18px 0; padding: 10px 11px; border-radius: 7px; background: #f0f9fa; color: #55737a; }
.note-icon { display: grid; width: 15px; height: 15px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #d6efef; color: #0d828b; font-size: 9px; font-weight: 900; }
.public-note p { margin: 0; font-size: 9px; }
.result-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 16px 18px 0; }
.detail-item dt { color: #8793a1; font-size: 8px; }
.detail-item dd { margin: 3px 0 0; color: #34465a; font-size: 9px; font-weight: 750; }
.public-boundary { margin: 16px 18px 15px; padding-top: 10px; border-top: 1px solid #edf1f4; color: #8b97a5; font-size: 8px; }

/* Internal synthetic search */
.mode-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #dcece6; border-radius: 7px; background: #f7fcf9; color: #517966; font-size: 8px; font-weight: 850; letter-spacing: .055em; white-space: nowrap; }
.staff-notice { border-color: #e5e1f4; background: #f8f6ff; }
.staff-notice .notice-icon { background: #ebe7fb; color: #6a5db6; }
.staff-notice p, .staff-notice strong { color: #655f81; }
.search-panel { margin-bottom: 15px; padding: 15px 16px 10px; }
.filter-grid { display: grid; grid-template-columns: 1.05fr 1fr .85fr 1fr; gap: 12px; }
.filter-field { min-width: 0; }
.filter-field label { margin-bottom: 5px; font-size: 9px; }
.filter-field input, .filter-field select { min-height: 35px; padding: 0 9px; font-size: 9px; }
.filter-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding-top: 8px; border-top: 1px solid #edf1f4; color: #7e8a99; font-size: 9px; }
.filter-footer .text-button { font-size: 9px; }
.table-panel { overflow: hidden; }
.table-heading { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px 12px; }
.table-heading .eyebrow { margin-bottom: 4px; font-size: 8px; }
.table-heading h2 { font-size: 14px; }
.table-tag { padding: 5px 7px; border: 1px solid #e0e9ee; border-radius: 5px; background: #f8fafb; color: #83909e; font-size: 7px; font-weight: 850; letter-spacing: .08em; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
thead { background: #f7f9fb; }
th { height: 33px; padding: 0 11px; border-top: 1px solid #e9eef2; border-bottom: 1px solid #e9eef2; color: #8290a0; font-size: 8px; font-weight: 800; }
td { height: 48px; padding: 6px 11px; border-bottom: 1px solid #edf1f4; color: #47566a; font-size: 8px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfd; }
.id-cell { color: #14818b; font-size: 8px; font-weight: 850; }
.document-cell strong, .document-cell small, .sender-cell strong, .sender-cell small { display: block; }
.document-cell strong, .sender-cell strong { color: #39495d; font-size: 8px; font-weight: 750; }
.document-cell small, .sender-cell small { margin-top: 2px; color: #94a0ad; font-size: 7px; }
.number-cell { color: #69788a; }
.owner-cell, .date-cell { color: #69788a; }
.no-results { height: 92px; color: #8a97a6; text-align: center; }
.table-foot { display: flex; justify-content: space-between; padding: 9px 13px; border-top: 1px solid #edf1f4; background: #fcfdfd; color: #99a3af; font-size: 8px; }

/* Workflow and configuration */
.flow-panel { padding: 18px; }
.flow-track { display: flex; align-items: stretch; gap: 7px; margin: 24px 0 16px; }
.flow-track article { display: flex; min-width: 0; flex: 1; flex-direction: column; justify-content: center; padding: 11px 9px; border: 1px solid #e3ecef; border-radius: 8px; background: #fbfdfd; }
.flow-track article span { color: #0c9298; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.flow-track article strong { margin-top: 7px; color: #34465a; font-size: 9px; line-height: 1.3; }
.flow-track article small { margin-top: 3px; color: #8491a0; font-size: 8px; line-height: 1.3; }
.flow-track > i { align-self: center; color: #a3b6bc; font-size: 12px; font-style: normal; }
.flow-footnote { margin: 0; padding-top: 11px; border-top: 1px solid #edf1f4; color: #8996a4; font-size: 9px; }
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.config-panel { padding: 17px; }
.config-symbol { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: #e9f8f7; color: #13868d; font-size: 14px; }
.config-symbol.violet-bg { background: #f0edff; color: #7565c7; }
.panel-intro { margin: 8px 0 13px; color: #8290a0; font-size: 9px; }
.config-row { display: flex; align-items: center; gap: 10px; min-height: 42px; border-top: 1px solid #edf1f4; }
.config-row.is-retired, .owner-row.is-retired { opacity: .72; }
.status-swatch { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 3px; }
.status-swatch.status-blue { background: #76aeea; }
.status-swatch.status-violet { background: #9d8be5; }
.status-swatch.status-amber { background: #e4ad50; }
.status-swatch.status-cyan { background: #45bfc6; }
.status-swatch.status-green { background: #55b686; }
.status-swatch.status-gray { background: #a8b2bd; }
.config-copy { min-width: 0; flex: 1; }
.config-copy strong, .config-copy small { display: block; }
.config-copy strong { color: #445468; font-size: 9px; }
.config-copy small { margin-top: 1px; color: #919daa; font-size: 8px; }
.state-pill { padding: 3px 6px; border-radius: 5px; font-size: 7px; font-weight: 850; }
.state-active { background: #ebf7f0; color: #438463; }
.state-retired { background: #f0f2f4; color: #83909d; }
.owner-row { display: flex; min-height: 39px; align-items: center; gap: 8px; border-top: 1px solid #edf1f4; }
.owner-row > strong { flex: 1; color: #48586b; font-size: 9px; font-weight: 700; }
.owner-avatar { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid #e3e8ef; border-radius: 8px; background: #f7f8fc; color: #767796; font-size: 7px; font-weight: 850; }
.metadata-panel { display: grid; grid-template-columns: auto minmax(200px, 1.3fr) minmax(220px, .9fr); align-items: center; gap: 13px; margin-top: 15px; padding: 16px; }
.metadata-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: #eef8f8; color: #17878d; font-size: 16px; }
.metadata-panel .eyebrow { margin-bottom: 3px; font-size: 8px; }
.metadata-panel h2 { margin-bottom: 4px; font-size: 12px; }
.metadata-panel p:last-child { margin: 0; color: #8794a2; font-size: 8px; }
.metadata-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.metadata-pills span { padding: 5px 7px; border: 1px solid #e1e9ee; border-radius: 6px; color: #718092; background: #fbfcfd; font-size: 7px; font-weight: 700; }

@media (max-width: 1200px) {
  .sidebar { width: 220px; }
  .main-column { margin-left: 220px; }
  .content { padding-right: 28px; padding-left: 28px; }
  .overview-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-track { flex-wrap: wrap; }
  .flow-track article { flex: 1 1 17%; }
}
@media (max-width: 780px) {
  .sidebar { position: sticky; inset: 0 0 auto; width: 100%; height: auto; padding: 10px 16px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 3px 9px; }
  .brand-mark { width: 31px; height: 31px; }
  .workspace-label, .sidebar-bottom { display: none; }
  .side-nav { display: flex; gap: 4px; overflow-x: auto; }
  .nav-item { min-height: 35px; flex: 0 0 auto; gap: 7px; padding: 0 9px; font-size: 10px; white-space: nowrap; }
  .nav-icon { font-size: 14px; }
  .demo-pill { padding: 2px 4px; }
  .main-column { min-height: calc(100vh - 89px); margin-left: 0; }
  .topbar { position: relative; height: 50px; flex-basis: 50px; padding: 0 18px; }
  .content { padding: 27px 18px 35px; }
  .app-footer { padding: 13px 18px 17px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tracking-layout { grid-template-columns: 1fr; }
  .tracking-form-panel { max-width: none; }
  .empty-result { min-height: 260px; }
  .result-column { min-height: 260px; }
  .result-card { max-width: none; }
  .heading-row { align-items: flex-start; flex-direction: column; }
  .heading-row > .button { align-self: flex-start; }
  .metadata-panel { grid-template-columns: auto 1fr; }
  .metadata-pills { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 520px) {
  .topbar-right { gap: 9px; }
  .environment { font-size: 7px; }
  .breadcrumb { gap: 6px; font-size: 9px; }
  .content { padding: 22px 13px 28px; }
  .app-footer { flex-direction: column; gap: 4px; padding-right: 13px; padding-left: 13px; font-size: 8px; }
  h1 { font-size: 28px; }
  .lede { font-size: 11px; }
  .metric-grid { gap: 8px; }
  .metric-card { min-height: 102px; padding: 12px; }
  .metric-label { gap: 5px; font-size: 8px; }
  .metric-card > strong { font-size: 23px; }
  .overview-grid { gap: 10px; }
  .workflow-panel, .activity-panel { padding: 14px; }
  .journey { grid-template-columns: repeat(3, 1fr); gap: 15px 4px; margin: 19px 0 13px; }
  .journey li:not(:last-child)::after { display: none; }
  .journey small { font-size: 7px; }
  .recent-row { gap: 7px; }
  .recent-row .status-badge { max-width: 105px; overflow: hidden; text-overflow: ellipsis; }
  .security-strip { align-items: flex-start; flex-wrap: wrap; padding: 12px; }
  .security-strip > div { min-width: calc(100% - 50px); }
  .security-strip .button { margin-left: 43px; }
  .tracking-form-panel { padding: 17px; }
  .result-card-head { align-items: flex-start; }
  .result-title { font-size: 16px; }
  .filter-grid { grid-template-columns: 1fr; gap: 9px; }
  .search-panel { padding: 12px; }
  .table-heading { padding: 13px; }
  .table-foot { flex-direction: column; gap: 2px; }
  .flow-panel, .config-panel { padding: 14px; }
  .flow-track { gap: 6px; }
  .flow-track article { flex-basis: 40%; min-height: 72px; }
  .flow-track > i { flex: 0 0 8px; font-size: 10px; }
  .flow-track article strong { font-size: 8px; }
  .config-grid { grid-template-columns: 1fr; gap: 10px; }
  .metadata-panel { grid-template-columns: auto 1fr; padding: 13px; }
  .metadata-pills { gap: 4px; }
  .metadata-pills span { font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
