@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-variable.woff2?v=6219bc4bfdfc5d9b2201dcdf046218b122a758f932e25ed5f168f929b7ca2311") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-ext-variable.woff2?v=21fac8da552a915e7a9fb84c5afaeb85d35507b2616346d592e78128c1cfe3e0") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-024F;
}
:root {
  color-scheme: light;
  /* A VitaViss-riport kék–türkiz fejléce és zöld mérési sávjai. */
  --brand-blue: #3e83e7;
  --brand-cyan: #20bcc6;
  --brand-mint: #2af5c3;
  --brand-green: #27e981;
  --brand-gradient: linear-gradient(
    115deg,
    var(--brand-blue),
    var(--brand-cyan)
  );
  --bg: #f5f8fc;
  --surface: #fff;
  --surface-alt: #f3f8fc;
  --border: #e0e8f2;
  --border-strong: #c6d7e9;
  --text: #46536c;
  --strong: #243a5a;
  --muted: #66758b;
  --primary: #2165ba;
  --primary-hover: #18569f;
  --on-primary: #fff;
  --soft: #eaf4fe;
  --accent: #c5fff2;
  --rail: linear-gradient(165deg, #235db0 0%, #146eaa 55%, #087d8c 100%);
  --rail-text: #eef8ff;
  --rail-active: #103c713d;
  --success: #087344;
  --success-bg: #e4fbf0;
  --hero-bg: linear-gradient(115deg, #2767bf 0%, #167f9c 60%, #20bcc6 100%);
  --hero-border: #207fbb;
  --hero-text: #ffffff;
  --hero-muted: #f0faff;
  --hero-ring: #ffffff24;
  --warning: #9d6d22;
  --warning-bg: #fcf4e6;
  --cyan: #087e8d;
  --cyan-bg: #e3f8fc;
  --blue: #2165ba;
  --blue-bg: #eaf2ff;
  --shadow: 0 2px 4px #183f7003;
  --overlay: #10274777;
  --rail-width: 92px;
  --radius: 18px;
  --page-width: 1280px;
}
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 "Instrument Sans",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
.login-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 80px 24px;
  background: radial-gradient(ellipse at 20% 10%, color-mix(in srgb, var(--brand-cyan) 12%, transparent), transparent 60%), var(--bg);
}
.login-language-picker {
  position: absolute;
  top: max(24px, env(safe-area-inset-top));
  right: max(24px, env(safe-area-inset-right));
}
.login-card {
  display: grid;
  gap: 28px;
  width: min(100%, 440px);
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 16px 64px #183f700a;
}
.login-card h1 { font-size: 28px; margin-bottom: 8px; }
.login-card form { display: grid; margin: 0; }
.login-card label { display: block; margin-bottom: 8px; color: var(--strong); font-weight: 600; }
.login-card input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--surface-alt); border: 1px solid var(--border-strong); border-radius: 10px; font-size: 16px;
}
.login-card .login-error { min-height: 24px; margin: 8px 0 0; }
.login-card .button { width: 100%; min-height: 48px; margin-top: 20px; }
.logout-button { width: 100%; background: transparent; }
@media (max-width: 480px) {
  .login-page { padding: 72px 16px; }
  .login-language-picker { top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }
  .login-card { padding: 24px; gap: 24px; }
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  color: var(--strong);
}
h1 {
  font-size: 32px;
  letter-spacing: -1.05px;
  line-height: 1.2;
  font-weight: 600;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.35px;
  font-weight: 600;
  line-height: 1.35;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
main:focus {
  outline: none;
}
.icon {
  flex-shrink: 0;
  vertical-align: middle;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 110px;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--on-primary);
  z-index: 100;
  border-radius: 10px;
}
.skip-link:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 11px;
}
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.14s,
    transform 0.14s;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.button:active {
  transform: translateY(1px);
}
.primary {
  background: linear-gradient(110deg, #2866c5, #087b93);
  color: var(--on-primary);
}
.primary:hover {
  background: var(--primary-hover);
}
.secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.secondary:hover {
  background: var(--surface-alt);
}
.icon-button {
  background: transparent;
  border-radius: 9px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--soft);
}
.text-link {
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  white-space: nowrap;
}
.text-link .icon {
  width: 15px;
  height: 15px;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-width);
  background: var(--rail);
  color: var(--rail-text);
  display: flex;
  flex-direction: column;
  padding: 23px 8px 16px;
  z-index: 30;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
}
.brand img {
  display: block;
}
.rail nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 66px;
  padding: 11px 3px;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 500;
  transition:
    background 0.14s,
    color 0.14s;
}
.rail-item > .icon,
.rail-item > span:first-child > .icon {
  width: 21px;
  height: 21px;
}
.rail-item:hover {
  background: #ffffff09;
  color: #ffffff;
}
.rail-item[aria-current] {
  background: var(--rail-active);
  color: var(--accent);
}
.rail-item[aria-current]::before {
  content: "";
  position: absolute;
  left: 0;
  height: 23px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.rail-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.rail-bottom .rail-item {
  width: 100%;
}
.mobile-close,
.mobile-menu {
  display: none;
}
.app {
  margin-left: var(--rail-width);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.header {
  height: 68px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.header-inner {
  max-width: calc(var(--page-width) + 80px);
  height: 100%;
  margin: auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-title {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.header-wordmark {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
.wordmark-dot {
  color: var(--primary);
  font-size: 24px;
}
.header-divider {
  height: 18px;
  width: 1px;
  background: var(--border);
  margin-right: 1px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
}
.live-dot {
  background: var(--success);
  width: 5px;
  height: 5px;
  display: inline-block;
  border-radius: 50%;
}
main {
  max-width: calc(var(--page-width) + 80px);
  width: 100%;
  margin: 0 auto;
  padding: 37px 40px 38px;
  flex: 1;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}
.page-heading h1 {
  margin-bottom: 10px;
}
.page-heading .muted {
  font-size: 12px;
  line-height: 1.6;
}
.page-heading > .button {
  margin-top: 20px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.panel-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 6px;
}
.panel-heading .small {
  margin-top: 5px;
}
.hero {
  background: var(--hero-bg);
  border: 1px solid var(--hero-border);
  min-height: 261px;
  border-radius: var(--radius);
  padding: 29px 34px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  margin-bottom: 21px;
  color: var(--hero-text);
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.7px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hero-muted);
}
.hero-label .live-dot {
  background: var(--brand-mint);
  box-shadow: 0 0 0 3px #2af5c329;
}
.hero h1 {
  font-size: 29px;
  line-height: 1.16;
  letter-spacing: -0.9px;
  font-weight: 500;
  color: var(--hero-text);
  margin: 15px 0 12px;
}
.hero p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--hero-muted);
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 10px;
  font-weight: 600;
  color: var(--hero-text);
  margin-top: 20px;
}
.hero-link:hover {
  text-decoration: underline;
}
.hero-link .icon {
  height: 15px;
  width: 15px;
}
.hero-art {
  position: absolute;
  right: 42px;
  top: 0;
  width: 400px;
  height: 280px;
  color: #1b84bc;
}
.hero-ring {
  position: absolute;
  border: 1px solid var(--hero-ring);
  border-radius: 50%;
  width: 340px;
  height: 340px;
  left: 35px;
  top: -40px;
}
.ring-two {
  width: 245px;
  height: 245px;
  left: 82px;
  top: 7px;
}
.floating-note {
  position: absolute;
  background: #ffffff;
  border: 1px solid #cfe4f3;
  border-radius: 12px;
  width: 142px;
  height: 185px;
  box-shadow: 0 10px 18px #123c6e20;
}
.note-back {
  left: 98px;
  top: 35px;
  transform: rotate(-13deg);
  background: #eef8ff;
  padding: 22px 16px;
}
.note-back > span {
  display: block;
  background: #d5e8f6;
  height: 5px;
  margin-top: 9px;
  width: 80%;
}
.note-front {
  left: 164px;
  top: 42px;
  transform: rotate(10deg);
  padding: 17px 16px;
}
.note-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #287cc9;
}
.note-brand .icon {
  width: 18px;
  height: 18px;
}
.note-rule {
  height: 1px;
  background: #deedf7;
  margin-top: 13px;
}
.note-chart {
  height: 51px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin: 12px 0;
}
.note-chart i {
  width: 10px;
  border-radius: 3px 3px 0 0;
  background: #31b9da;
  height: 45%;
}
.note-chart i:nth-child(2) {
  height: 65%;
  background: #65c9ec;
}
.note-chart i:nth-child(3) {
  height: 50%;
}
.note-chart i:nth-child(4) {
  height: 80%;
  background: #20cbd1;
}
.note-chart i:nth-child(5) {
  height: 62%;
  background: #2be6c4;
}
.note-chart i:nth-child(6) {
  height: 90%;
  background: #27e981;
}
.note-chart i:nth-child(7) {
  height: 77%;
  background: #2af5c3;
}
.note-lines span {
  display: block;
  background: #e3eef8;
  height: 4px;
  border-radius: 2px;
  width: 100%;
  margin-top: 6px;
}
.note-lines span + span {
  width: 64%;
}
.note-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 5px;
  letter-spacing: 0.6px;
  color: #5b7d98;
  margin-top: 12px;
}
.note-footer .icon {
  width: 9px;
  height: 9px;
}
.floating-chip {
  position: absolute;
  left: 99px;
  top: 199px;
  background: #ffffff;
  box-shadow: 0 5px 16px #123c6e20;
  border: 1px solid #cde7ef;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 8px;
  color: #087344;
  font-size: 9px;
  transform: rotate(-4deg);
}
.floating-chip .icon {
  width: 14px;
  height: 14px;
  background: #dcf9ed;
  border-radius: 50%;
  padding: 2px;
}
.hero-spark {
  position: absolute;
  left: 324px;
  top: 67px;
  color: #84ffe0;
  font-size: 24px;
  font-weight: 400;
}
.hero-version {
  position: absolute;
  bottom: 18px;
  right: 23px;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: var(--hero-muted);
  text-transform: uppercase;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 18px 20px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
}
.stat-icon .icon {
  width: 17px;
  height: 17px;
}
.teal {
  background: var(--soft);
  color: var(--primary);
}
.cyan {
  background: var(--cyan-bg);
  color: var(--cyan);
}
.amber {
  background: var(--warning-bg);
  color: var(--warning);
}
.blue {
  background: var(--blue-bg);
  color: var(--blue);
}
.stat-card > strong {
  font-size: 31px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--strong);
  margin-top: 5px;
}
.stat-description {
  color: var(--muted);
  font-size: 9px;
  margin-top: 9px;
}
.flow-panel {
  padding: 22px 25px 24px;
  margin-bottom: 22px;
}
.flow-panel .panel-heading h2 {
  font-size: 16px;
}
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 23px;
  gap: 0;
}
.flow-step {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.flow-node {
  display: flex;
  align-items: center;
  height: 36px;
  margin-bottom: 10px;
}
.step-icon {
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.active .step-icon {
  background: var(--soft);
  border-color: var(--border-strong);
  color: var(--primary);
}
.step-icon .icon {
  height: 18px;
  width: 18px;
}
.step-line {
  height: 1px;
  background: var(--border);
  flex: 1;
  margin: 0 12px;
}
.step-number {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
  margin-bottom: 3px;
}
.flow-step strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.flow-step.active strong {
  color: var(--strong);
  font-weight: 600;
}
.flow-step > span {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.flow-step small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.flow-step.active small {
  color: var(--primary);
}
.flow-step.active small:before {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.recent-panel {
  overflow: hidden;
  min-height: 348px;
}
.recent-panel > .panel-heading {
  padding: 23px 25px 0;
}
.recent-panel .panel-heading h2 {
  font-size: 16px;
}
.side-stack {
  display: grid;
  gap: 17px;
}
.connection {
  padding: 22px;
}
.connection h2 {
  font-size: 14px;
}
.service-tag {
  font-size: 9px;
  letter-spacing: 0.2px;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 5px;
  padding: 3px 7px;
}
.connection-state {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 21px 0 19px;
}
.connection-state strong {
  font-size: 11px;
  font-weight: 600;
}
.connection-state p {
  margin-top: 3px;
  font-size: 9px;
}
.connection-orb {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  background: var(--soft);
  color: var(--primary);
  border-radius: 11px;
}
.connection-orb.warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.connection-orb.neutral {
  background: var(--surface-alt);
  color: var(--muted);
}
.connection-orb .icon {
  height: 18px;
  width: 18px;
}
.email-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 10px;
}
.email-address > div {
  min-width: 0;
}
.email-address small {
  font-size: 7px;
  letter-spacing: 1.1px;
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}
.email-address strong {
  font-size: 11px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.email-address .icon-button {
  padding: 4px;
  color: var(--muted);
}
.email-address .icon {
  width: 14px;
  height: 14px;
}
.connection-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 14px;
}
.tag {
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 9px;
  background: var(--surface-alt);
  color: var(--muted);
}
.connection-description {
  font-size: 9px;
  line-height: 1.7;
  margin: 13px 0;
}
.connection > .text-link {
  font-size: 10px;
}
.privacy-note {
  display: flex;
  gap: 11px;
  padding: 0 6px;
}
.privacy-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
}
.privacy-icon .icon {
  height: 14px;
  width: 14px;
}
.privacy-note h3 {
  font-size: 10px;
  margin: 3px 0 5px;
}
.privacy-note p {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.7;
}
.empty-state {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 48px 25px 45px;
}
.empty-art {
  width: 150px;
  height: 108px;
  position: relative;
  margin-bottom: 18px;
}
.empty-orbit {
  position: absolute;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px dashed var(--border-strong);
  top: 0;
  left: 22px;
}
.empty-paper {
  display: grid;
  place-items: center;
  position: absolute;
  width: 63px;
  height: 75px;
  left: 43px;
  top: 13px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transform: rotate(-8deg);
  color: #6ca8cb;
  box-shadow: 0 4px 8px #183f7005;
}
.empty-paper .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1;
}
.empty-check {
  position: absolute;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border: 3px solid var(--surface);
  border-radius: 50%;
  top: 65px;
  left: 93px;
  color: var(--primary);
}
.empty-check .icon {
  width: 13px;
  height: 13px;
}
.empty-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--border-strong);
  width: 4px;
  height: 4px;
}
.empty-dot.one {
  left: 26px;
  top: 24px;
}
.empty-dot.two {
  right: 23px;
  bottom: 26px;
  width: 3px;
  height: 3px;
}
.empty-state h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
  margin-bottom: 9px;
}
.empty-state p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 370px;
}
.empty-state > .button {
  margin-top: 20px;
  font-size: 10px;
  padding: 8px 13px;
  min-height: 34px;
}
.empty-state > small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 17px;
}
.compact {
  padding: 23px 22px 29px;
}
.compact .empty-art {
  transform: scale(0.77);
  height: 82px;
  margin-bottom: 10px;
}
.compact h3 {
  font-size: 13px;
}
.compact p {
  font-size: 10px;
}
.compact > small {
  display: none;
}
.compact > .button {
  margin-top: 14px;
}
.empty-email {
  font-size: 12px;
  font-weight: 500;
  background: var(--soft);
  color: var(--primary);
  padding: 8px 15px;
  border-radius: 8px;
  margin-top: 20px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(var(--page-width) + 80px);
  width: 100%;
  margin: auto;
  padding: 0 40px 22px;
  font-size: 8px;
  color: var(--muted);
}
.footer-dot {
  padding: 0 7px;
}
.list-panel {
  overflow: hidden;
}
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-alt);
  padding: 4px;
  border-radius: 10px;
  max-width: 100%;
  overflow: auto;
}
.tabs button {
  background: transparent;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 11px;
  border-radius: 7px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tabs button.selected {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 4px #183f7012;
}
.tabs span {
  font-size: 9px;
  padding: 0 5px;
  background: var(--soft);
  border-radius: 4px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 11px;
  background: var(--surface);
  color: var(--muted);
}
.search-field .icon {
  height: 16px;
  width: 16px;
}
.search-field input {
  background: transparent;
  border: 0;
  font-size: 11px;
  min-width: 220px;
  outline: 0;
}
.search-field:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  background: var(--surface-alt);
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  padding: 12px 17px;
  border-bottom: 1px solid var(--border);
}
td {
  font-size: 10px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--border);
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--surface-alt);
}
th:first-child,
td:first-child {
  padding-left: 23px;
}
.document-link {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  background: transparent;
  padding: 0;
  max-width: 360px;
}
.document-link > span:last-child {
  min-width: 0;
}
.document-link strong {
  display: block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 500;
  color: var(--strong);
}
.document-link small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.document-icon {
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--primary);
  width: 32px;
  height: 38px;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.document-icon .icon {
  height: 17px;
  width: 17px;
}
.source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}
.source .icon {
  width: 13px;
  height: 13px;
}
.date-cell {
  font-size: 10px;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--primary);
  white-space: nowrap;
}
.badge i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.pending {
  background: var(--cyan-bg);
  color: var(--cyan);
}
.badge.success,
.connection-orb.success {
  background: var(--success-bg);
  color: var(--success);
}
.badge.warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.badge.neutral {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--muted);
}
.list-footer {
  border-top: 1px solid var(--border);
  padding: 13px 22px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 10px;
  background: var(--soft);
  padding: 13px 15px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.notice .icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--primary);
}
.wide-notice {
  margin-top: 22px;
  background: transparent;
  padding-left: 0;
}
.inbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 22px;
}
.info-panel {
  padding: 22px;
}
.info-panel h3 {
  font-size: 12px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 17px 0;
  display: grid;
  gap: 12px;
  font-size: 11px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-list .icon {
  width: 13px;
  height: 13px;
  color: var(--primary);
}
.info-panel > .small {
  font-size: 10px;
  line-height: 1.7;
}
.mail-row {
  width: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  padding: 22px;
  border-bottom: 1px solid var(--border);
}
.mail-row:last-child {
  border-bottom: 0;
}
.mail-row:hover {
  background: var(--surface-alt);
}
.mail-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mail-avatar .icon {
  width: 18px;
  height: 18px;
}
.mail-content {
  display: grid;
  min-width: 0;
  flex: 1;
}
.mail-content strong {
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mail-content > span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mail-content small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.no-results,
.loading-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 80px 24px;
  text-align: center;
}
.no-results > .icon {
  color: var(--muted);
  margin-bottom: 8px;
}
.no-results p {
  font-size: 12px;
}
.loading-state {
  color: var(--muted);
  padding-top: 20vh;
}
.error-state h1 {
  font-size: 24px;
}
.error-state p {
  color: var(--muted);
}
.error-banner {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  background: var(--warning-bg);
  color: var(--warning);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 12px;
}
.error-banner button {
  background: transparent;
  text-decoration: underline;
  font-weight: 600;
}
.pipeline-banner {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 23px 25px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 23px;
}
.pipeline-banner > .icon {
  color: var(--primary);
  width: 25px;
  height: 25px;
}
.pipeline-banner strong {
  font-size: 13px;
}
.pipeline-banner p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.pipeline-banner .tag {
  margin-left: auto;
  white-space: nowrap;
}
.pipeline-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.pipeline-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 27px 30px;
}
.pipeline-index {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  padding-top: 11px;
}
.pipeline-symbol {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 13px;
  height: 45px;
  width: 45px;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
}
.pipeline-item .pipeline-symbol {
  background: var(--soft);
  color: var(--primary);
}
.ready {
  border-color: var(--border-strong);
}
.pipeline-copy {
  flex: 1;
  min-width: 0;
}
.pipeline-copy > div {
  display: flex;
  gap: 17px;
  align-items: center;
  margin-bottom: 10px;
}
.pipeline-copy h2 {
  font-size: 16px;
}
.pipeline-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  max-width: 830px;
}
.pipeline-copy .text-link {
  margin-top: 14px;
}
.pipeline-wiki {
  margin-top: 24px;
  padding: 28px 30px;
}
.pipeline-wiki-heading {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.pipeline-wiki-heading > div { min-width: 0; }
.pipeline-wiki .pipeline-symbol { background: var(--soft); color: var(--primary); }
.pipeline-wiki h2 { font-size: 18px; margin-bottom: 8px; }
.pipeline-wiki p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.pipeline-wiki-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin: 26px 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}
.pipeline-wiki-points h3 { font-size: 13px; margin-bottom: 6px; }
@media (max-width: 600px) {
  .pipeline-wiki { padding: 22px 18px; }
  .pipeline-wiki-heading { gap: 14px; }
  .pipeline-wiki h2 { font-size: 15px; }
  .pipeline-wiki p { font-size: 11px; }
  .pipeline-wiki-points { grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 22px 0; padding-top: 20px; }
}
.knowledge-intro {
  padding: 42px 28px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.knowledge-art {
  position: relative;
  width: 85px;
  height: 75px;
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 0 17px;
}
.knowledge-art > .icon:first-child {
  width: 55px;
  height: 55px;
  stroke-width: 1;
  background: var(--soft);
  box-sizing: content-box;
  padding: 16px;
  border-radius: 25px;
}
.knowledge-art > .icon + .icon {
  position: absolute;
  right: -5px;
  top: 3px;
  color: var(--cyan);
  background: var(--surface);
  padding: 2px;
  width: 25px;
  height: 25px;
  border-radius: 8px;
}
.knowledge-intro > .badge {
  margin: 16px 0;
}
.knowledge-intro h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}
.knowledge-intro p {
  max-width: 580px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.knowledge-card {
  padding: 25px;
}
.knowledge-card > span {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: var(--soft);
  color: var(--primary);
  margin-bottom: 20px;
}
.knowledge-card h3 {
  font-size: 13px;
  margin-bottom: 10px;
}
.knowledge-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  min-height: 40px;
}
.knowledge-card small {
  display: block;
  border-top: 1px solid var(--border);
  padding-top: 13px;
  margin-top: 20px;
  font-size: 9px;
  color: var(--muted);
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 23px;
  align-items: start;
}
.settings-card {
  padding: 25px;
}
.settings-card > .panel-heading {
  margin-bottom: 23px;
}
.settings-card > p {
  font-size: 12px;
  line-height: 1.8;
}
.settings-card .button {
  max-width: 100%;
  white-space: normal;
}
.gmail-connection {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 18px;
}
.gmail-connection p {
  margin: 0 0 12px;
  line-height: 1.7;
}
.gmail-connection .button {
  max-width: 100%;
  white-space: normal;
  margin-bottom: 12px;
}
.gmail-upload-panel { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.gmail-upload-panel h3 { margin: 0 0 10px; font-size: 15px; }
.gmail-config-form { display: grid; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.gmail-config-form label { font-size: 13px; font-weight: 600; }
.gmail-config-form input { width: 100%; min-width: 0; font: inherit; font-size: 12px; }
.gmail-config-form input::file-selector-button { margin-right: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; background: var(--bg); color: inherit; cursor: pointer; }
.gmail-config-form .button { justify-self: start; margin-bottom: 0; }
.gmail-file-name { overflow-wrap: anywhere; }
.gmail-file-name:empty { display: none; }
.gmail-callback { display: block; font-size: 12px; overflow-wrap: anywhere; }
.settings-list {
  margin: 0 0 20px;
}
.settings-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.settings-list dt {
  color: var(--muted);
}
.settings-list dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.settings-list .badge {
  max-width: 100%;
  white-space: normal;
}
dialog {
  width: min(580px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 20px 80px #10274730;
  overflow: auto;
}
dialog::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(3px);
}
.report-dialog { width: min(1000px, calc(100% - 32px)); }
.correspondence-dialog { width: min(820px, calc(100% - 32px)); }
.correspondence-user { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.correspondence-user-address { display: flex; align-items: center; gap: 12px; min-width: 0; }
.correspondence-user-address strong { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
#mail-report-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex-shrink: 0; max-width: 45%; }
.correspondence-report-link { background: var(--soft); border: 1px solid var(--border); color: var(--primary); width: 38px; height: 38px; }
.correspondence-report-link:hover { background: var(--surface-alt); border-color: var(--primary); }
.correspondence-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.correspondence-stat { position: relative; border: 1px solid var(--border); border-radius: 14px; padding: 18px; background: var(--surface-alt); min-width: 0; }
.correspondence-stat strong { display: block; font-size: 28px; line-height: 1.2; font-weight: 600; margin-bottom: 7px; }
.correspondence-stat > span:last-child { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.correspondence-stat-icon { position: absolute; top: 16px; right: 16px; color: var(--primary); }
.correspondence-stat-icon .icon { width: 17px; height: 17px; }
.correspondence-stat.outgoing { background: #f0fbf8; }
.correspondence-stat.outgoing .correspondence-stat-icon { color: #14836e; }
.correspondence-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.correspondence-timeline { display: grid; gap: 16px; margin-bottom: 18px; }
.correspondence-message { border: 1px solid var(--border); border-left: 3px solid var(--brand-blue); border-radius: 14px; padding: 20px; min-width: 0; background: var(--surface-alt); }
.correspondence-message.outgoing { border-left-color: #14a68b; background: #f0fbf8; margin-left: 28px; }
.correspondence-message.incoming { margin-right: 28px; }
.correspondence-meta { margin-bottom: 14px; }
.correspondence-meta time { font-size: 10px; color: var(--muted); }
.correspondence-meta .badge .icon { width: 13px; height: 13px; margin-right: 6px; }
.correspondence-message summary { cursor: pointer; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.6; }
.correspondence-addresses { display: grid; gap: 6px; margin: 14px 0; font-size: 11px; }
.correspondence-addresses > div { display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 8px; }
.correspondence-addresses dt { color: var(--muted); }
.correspondence-addresses dd { margin: 0; overflow-wrap: anywhere; }
.correspondence-body { border-top: 1px solid var(--border); padding-top: 16px; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.correspondence-attachments { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.correspondence-attachments .tag { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.correspondence-attachments .icon { width: 13px; height: 13px; flex-shrink: 0; margin-right: 5px; }
.correspondence-empty { padding: 10px 0 16px; }
@media (max-width: 600px) {
  .correspondence-dialog { width: calc(100% - 16px); padding: 18px; }
  .correspondence-message { padding: 14px; }
  .correspondence-message.outgoing, .correspondence-message.incoming { margin-left: 0; margin-right: 0; }
  .correspondence-meta { gap: 8px; }
  .correspondence-user { gap: 10px; }
  .correspondence-user-address { gap: 8px; }
  .correspondence-user-address strong { font-size: 11px; }
  .correspondence-user-address .mail-avatar { width: 30px; height: 30px; border-radius: 9px; }
  .correspondence-summary { gap: 8px; }
  .correspondence-stat { padding: 13px 10px; border-radius: 11px; }
  .correspondence-stat strong { font-size: 24px; }
  .correspondence-stat > span:last-child { font-size: 10px; }
  .correspondence-stat-icon { position: static; display: block; margin-bottom: 8px; }
  .correspondence-stat-icon .icon { width: 15px; height: 15px; }
}
.report-person { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0; font-size: 12px; }
.report-person strong { flex-basis: 100%; font-size: 18px; font-weight: 500; }
.report-person span { color: var(--muted); }
.measurement-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.measurement-summary > div { background: var(--surface-alt, var(--background)); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.measurement-summary span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 12px; }
.measurement-summary strong { font-size: 24px; font-weight: 500; overflow-wrap: anywhere; }
.measurement-summary small, .measurement-grid dd small { font-size: 11px; color: var(--muted); font-weight: 400; }
.measurement-section { border: 1px solid var(--border); border-radius: 14px; margin: 14px 0; padding: 18px; min-width: 0; }
.measurement-section summary, .report-metadata summary { cursor: pointer; font-size: 13px; font-weight: 500; }
.measurement-section summary span { float: right; color: var(--muted); font-size: 11px; }
.measurement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px 0 0; gap: 0 20px; }
.measurement-grid > div { padding: 16px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.measurement-grid dt { font-size: 11px; color: var(--muted); line-height: 1.6; }
.measurement-grid dd { margin: 6px 0; font-size: 18px; overflow-wrap: anywhere; }
.measurement-grid > div > small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.extension-result { margin-top: 18px; font-size: 12px; overflow-wrap: anywhere; }
.extension-result p { color: var(--muted); margin: 8px 0 0; }
.json-inspector pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; max-height: 400px; overflow-y: auto; line-height: 1.6; margin-top: 20px; }
.report-metadata { margin-top: 24px; color: var(--muted); }
.list-toolbar { flex-wrap: wrap; }
.tabs { max-width: 100%; overflow-x: auto; }
.tabs button { white-space: nowrap; }
@media (max-width: 600px) {
  .measurement-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .measurement-summary > div { padding: 12px; }
  .measurement-summary strong { font-size: 20px; }
  .measurement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .measurement-grid dd { font-size: 16px; }
  .measurement-section { padding: 14px; }
  .report-dialog .dialog-actions { flex-wrap: wrap; }
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 17px;
  margin-bottom: 19px;
}
.dialog-header .eyebrow {
  font-size: 9px;
  margin-bottom: 9px;
}
.dialog-header h2 {
  font-size: 22px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.dialog-header .icon-button {
  margin: -5px -7px 0 0;
  color: var(--muted);
}
dialog > .muted {
  font-size: 12px;
  line-height: 1.8;
}
.detail-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.detail-status > .small {
  font-size: 9px;
  letter-spacing: 1px;
}
.detail-list {
  margin: 22px 0;
}
.detail-list > div {
  padding: 11px 0;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 15px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.hash {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  line-height: 1.8;
}
.dialog-actions {
  margin-top: 25px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.detail-reports {
  margin: 20px 0;
  display: grid;
  gap: 10px;
}
.detail-reports .button {
  white-space: normal;
  justify-content: flex-start;
  overflow-wrap: anywhere;
  text-align: left;
}
.detail-reports .button .icon:last-child {
  margin-left: auto;
}
.review-notice {
  background: var(--warning-bg);
  color: var(--warning);
  margin-bottom: 14px;
}
.review-notice .icon {
  color: var(--warning);
}
.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--border-strong);
  border-radius: 14px;
  background: var(--surface-alt);
  padding: 28px 15px;
  position: relative;
  cursor: pointer;
  gap: 8px;
  margin-top: 23px;
}
.drop-zone:hover,
.drop-zone.dragging {
  border-color: var(--primary);
  background: var(--soft);
}
.drop-zone strong {
  font-size: 13px;
  font-weight: 500;
}
.drop-zone > span:not(.upload-circle) {
  font-size: 11px;
  color: var(--muted);
}
.drop-zone small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
}
.drop-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.drop-zone:focus-within {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.upload-circle {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 50%;
  margin-bottom: 8px;
}
.upload-circle .icon {
  width: 19px;
  height: 19px;
}
.selected-file {
  font-size: 11px;
  overflow-wrap: anywhere;
  color: var(--primary);
  margin: 13px 0;
}
.inline-error {
  font-size: 12px;
  color: var(--warning);
  margin: 12px 0;
}
.inline-error:empty {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 46px);
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  background: var(--strong);
  color: var(--bg);
  padding: 13px 23px;
  border-radius: 12px;
  z-index: 100;
  box-shadow: 0 6px 25px #10274725;
  font-size: 12px;
  text-align: center;
}
.backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 35;
}
@media (min-width: 1500px) {
  main {
    padding-top: 45px;
  }
  .hero {
    min-height: 290px;
    padding: 35px 38px;
  }
  .hero h1 {
    font-size: 33px;
  }
  .hero-art {
    top: 12px;
    right: 95px;
    transform: scale(1.08);
  }
  .stats {
    margin-bottom: 25px;
  }
  .stat-card {
    padding: 21px 24px;
  }
  .stat-description {
    font-size: 10px;
  }
  .flow-panel {
    padding: 25px 28px;
  }
  .flow {
    margin-top: 26px;
  }
  .flow-step strong {
    font-size: 12px;
  }
  .flow-step > span {
    font-size: 10px;
  }
  .flow-step small {
    font-size: 9px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero-link {
    font-size: 11px;
  }
}
@media (max-width: 1120px) {
  main {
    padding: 30px 25px;
  }
  .header-inner {
    padding: 0 25px;
  }
  footer {
    padding-right: 25px;
    padding-left: 25px;
  }
  .hero-art {
    right: -30px;
    transform: scale(0.9);
  }
  .hero-copy {
    max-width: 60%;
  }
  .hero h1 {
    font-size: 27px;
  }
  .hero p br {
    display: none;
  }
  .hero p {
    max-width: 330px;
  }
  .hero-art {
    opacity: 0.85;
  }
  .dashboard-grid,
  .inbox-layout {
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 17px;
  }
  .connection {
    padding: 19px 17px;
  }
  .stat-card {
    padding: 16px;
  }
  .stats {
    gap: 12px;
  }
  .stat-description {
    font-size: 8px;
  }
  .flow-panel {
    padding: 22px 20px;
  }
  .flow-step > span {
    font-size: 8px;
  }
  .flow-step small {
    font-size: 7px;
  }
  .flow-panel > .panel-heading .text-link {
    font-size: 10px;
  }
  .recent-panel > .panel-heading {
    padding: 20px 19px 0;
    gap: 10px;
  }
  .recent-panel > .panel-heading .small {
    font-size: 10px;
  }
  .recent-panel > .panel-heading .text-link {
    font-size: 9px;
  }
  .knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .knowledge-card p {
    min-height: 0;
  }
  .inbox-layout .tabs button {
    padding: 7px 8px;
    font-size: 10px;
  }
  .inbox-layout .list-toolbar {
    padding: 16px 13px;
  }
  .mail-row {
    padding: 17px 14px;
    gap: 10px;
  }
  .mail-row > .icon {
    display: none;
  }
}
@media (max-width: 900px) and (min-width: 801px) {
  .dashboard-grid,
  .inbox-layout {
    grid-template-columns: 1fr;
  }
  .side-stack {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .privacy-note {
    padding: 20px 5px;
  }
  .hero-art {
    right: -60px;
    opacity: 0.7;
  }
  .hero-copy {
    max-width: 70%;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-description {
    font-size: 10px;
  }
}
@media (max-width: 800px) {
  :root {
    --rail-width: 0px;
  }
  .app {
    margin-left: 0;
  }
  .header {
    height: 62px;
  }
  .header-inner {
    padding: 0 20px;
  }
  .header-title {
    gap: 13px;
  }
  .header-wordmark {
    font-size: 17px;
  }
  .header-divider {
    margin: 0 2px;
  }
  .header-right {
    gap: 10px;
  }
  .mobile-menu {
    display: inline-flex;
    margin-left: -8px;
  }
  .rail {
    width: 240px;
    padding: 24px 14px;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.2s;
    z-index: 40;
    overflow-y: auto;
  }
  .rail.is-open {
    visibility: visible;
    transform: none;
  }
  .rail .brand {
    justify-content: flex-start;
    padding-left: 15px;
    margin-bottom: 28px;
  }
  .rail .rail-item {
    flex-direction: row;
    justify-content: flex-start;
    padding: 13px 15px;
    gap: 17px;
    font-size: 13px;
    min-height: 50px;
  }
  .rail nav {
    gap: 5px;
  }
  .rail .mobile-close {
    display: inline-flex;
    position: absolute;
    right: 8px;
    top: 9px;
    color: var(--rail-text);
  }
  .rail .mobile-close:hover {
    background: #ffffff10;
  }
  .rail-bottom {
    margin-top: 25px;
    gap: 15px;
  }
  .rail-item[aria-current]::before {
    display: none;
  }
  body.menu-open {
    overflow: hidden;
  }
  main {
    padding: 28px 22px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 16px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading > .button {
    margin-top: 29px;
  }
  .page-heading .muted {
    max-width: 420px;
  }
  .hero {
    min-height: 245px;
    padding: 26px;
  }
  .hero-art {
    right: -24px;
    transform: scale(0.87);
    top: -5px;
  }
  .hero-copy {
    max-width: 60%;
  }
  .hero h1 {
    font-size: 27px;
  }
  .hero p {
    font-size: 10px;
  }
  .stats {
    gap: 12px;
  }
  .stat-card {
    padding: 16px 14px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-icon {
    width: 26px;
    height: 26px;
  }
  .stat-icon .icon {
    width: 15px;
    height: 15px;
  }
  .stat-description {
    font-size: 8px;
  }
  .dashboard-grid,
  .inbox-layout {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 16px;
  }
  .flow-step strong {
    font-size: 10px;
  }
  .flow-step > span {
    font-size: 8px;
  }
  .flow-step small {
    font-size: 7px;
  }
  .flow-panel {
    padding: 21px 18px;
  }
  .step-line {
    margin: 0 8px;
  }
  .recent-panel > .panel-heading {
    display: block;
  }
  .recent-panel > .panel-heading > .text-link {
    margin-top: 10px;
  }
  .compact {
    padding-top: 12px;
  }
  .compact h3 {
    font-size: 12px;
  }
  .compact p {
    font-size: 9px;
  }
  .compact p br {
    display: none;
  }
  .connection h2 {
    font-size: 13px;
  }
  footer {
    padding: 0 22px 22px;
  }
  #toast {
    left: 50%;
  }
  .settings-card {
    padding: 21px;
  }
  .settings-list > div {
    font-size: 10px;
    gap: 12px;
  }
  .pipeline-item {
    padding: 23px;
    gap: 18px;
  }
}
@media (max-width: 650px) {
  .dashboard-grid,
  .inbox-layout {
    grid-template-columns: 1fr;
  }
  .side-stack {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .privacy-note {
    padding: 14px 4px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat-description {
    font-size: 9px;
  }
  .hero-art {
    right: -65px;
    opacity: 0.6;
    transform: scale(0.8);
  }
  .hero-copy {
    max-width: 75%;
  }
  .hero p {
    max-width: 270px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .page-heading > .button {
    margin-top: 0;
  }
  .page-heading .muted {
    font-size: 11px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .hero {
    margin-top: 4px;
  }
  .flow {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 21px;
  }
  .flow-step {
    display: grid;
    grid-template-columns: 37px 24px 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding-bottom: 19px;
    position: relative;
  }
  .flow-step:last-child {
    padding-bottom: 0;
  }
  .flow-node {
    grid-column: 1;
    grid-row: 1/3;
    margin: 0;
    align-self: start;
    position: relative;
  }
  .step-line {
    position: absolute;
    height: 24px;
    width: 1px;
    left: 17px;
    top: 36px;
    margin: 0;
  }
  .step-number {
    grid-column: 2;
    grid-row: 1/3;
    font-size: 9px;
    margin: 0;
  }
  .flow-step strong {
    grid-column: 3;
    grid-row: 1;
    font-size: 12px;
    align-self: end;
  }
  .flow-step > span {
    grid-column: 3;
    grid-row: 2;
    font-size: 10px;
  }
  .flow-step small {
    grid-column: 4;
    grid-row: 1/3;
    margin: 0;
    font-size: 8px;
    max-width: 75px;
    text-align: right;
    line-height: 1.7;
    display: block;
  }
  .flow-step.active small:before {
    display: none;
  }
  .flow-panel {
    padding: 22px;
  }
  .flow-panel .panel-heading h2 {
    font-size: 16px;
  }
  .recent-panel > .panel-heading {
    display: flex;
  }
  .recent-panel > .panel-heading .small {
    font-size: 10px;
  }
  .recent-panel > .panel-heading > .text-link {
    margin: 0;
    font-size: 10px;
  }
  .compact {
    padding: 23px 25px 30px;
  }
  .compact h3 {
    font-size: 14px;
  }
  .compact p {
    font-size: 11px;
  }
  .compact .empty-art {
    transform: scale(0.88);
    height: 95px;
  }
  .connection {
    padding: 20px;
  }
  .connection h2 {
    font-size: 14px;
  }
  .connection-description {
    font-size: 10px;
  }
  .hero-version {
    font-size: 7px;
  }
  .settings-list > div {
    font-size: 12px;
  }
  .pipeline-banner {
    padding: 20px;
    gap: 14px;
    align-items: flex-start;
  }
  .pipeline-banner .tag {
    display: none;
  }
  .pipeline-banner p {
    font-size: 10px;
  }
  .pipeline-banner strong {
    font-size: 12px;
  }
  .pipeline-item {
    padding: 22px 18px;
    gap: 14px;
  }
  .pipeline-index {
    font-size: 10px;
    padding-top: 10px;
  }
  .pipeline-symbol {
    height: 35px;
    width: 35px;
    border-radius: 10px;
  }
  .pipeline-symbol .icon {
    width: 18px;
    height: 18px;
  }
  .pipeline-copy > div {
    flex-wrap: wrap;
    gap: 8px;
  }
  .pipeline-copy h2 {
    font-size: 15px;
  }
  .pipeline-copy p {
    font-size: 11px;
  }
  .knowledge-intro h2 {
    font-size: 22px;
  }
  .knowledge-card {
    padding: 20px;
  }
  .knowledge-card h3 {
    font-size: 12px;
  }
  .knowledge-card p {
    font-size: 10px;
  }
  .list-toolbar {
    padding: 16px;
    gap: 15px;
  }
  .search-field {
    width: 100%;
  }
  .search-field input {
    min-width: 0;
    width: 100%;
  }
  .inbox-layout .side-stack {
    grid-template-columns: 1fr 1fr;
  }
  .inbox-layout .info-panel {
    padding: 20px;
  }
  .mail-row {
    padding: 18px 16px;
    gap: 10px;
  }
  .mail-avatar {
    width: 30px;
    height: 34px;
  }
  .mail-row > .icon {
    display: none;
  }
  .list-footer {
    font-size: 9px;
    padding: 14px 16px;
  }
  .list-footer span:last-child {
    text-align: right;
  }
  footer {
    flex-direction: column;
    gap: 6px;
    font-size: 9px;
  }
  .header-title {
    font-size: 11px;
  }
  .list-panel .empty-state {
    padding: 36px 20px;
  }
  .empty-state > small {
    max-width: 270px;
  }
}
@media (max-width: 440px) {
  main {
    padding: 25px 17px 30px;
  }
  .header-inner {
    padding: 0 17px;
  }
  .header-title {
    gap: 10px;
  }
  .header-wordmark {
    font-size: 16px;
  }
  .header-divider {
    height: 14px;
  }
  .header-right {
    gap: 0;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .page-heading .muted {
    font-size: 11px;
    max-width: 310px;
  }
  .page-heading > .button {
    min-height: 36px;
    font-size: 11px;
    padding: 9px 13px;
  }
  .hero {
    padding: 25px 23px;
    min-height: 264px;
  }
  .hero h1 {
    font-size: 26px;
    margin: 17px 0 13px;
  }
  .hero-label {
    font-size: 6px;
    letter-spacing: 1.5px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero p {
    max-width: 216px;
    font-size: 10px;
    line-height: 1.8;
  }
  .hero-art {
    right: -162px;
    top: 40px;
    transform: scale(0.66);
    opacity: 0.42;
  }
  .hero-ring {
    opacity: 0.6;
  }
  .floating-note {
    box-shadow: none;
  }
  .hero-link {
    font-size: 9px;
    margin-top: 22px;
  }
  .hero-version {
    font-size: 6px;
    right: 15px;
    bottom: 14px;
  }
  .stats {
    gap: 11px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-card > strong {
    font-size: 30px;
    margin-top: 9px;
  }
  .stat-description {
    font-size: 8px;
  }
  .flow-panel {
    padding: 20px;
  }
  .flow-panel .panel-heading {
    gap: 8px;
  }
  .flow-panel .panel-heading h2 {
    font-size: 15px;
  }
  .flow-panel .panel-heading .text-link {
    font-size: 9px;
    gap: 5px;
  }
  .flow-step {
    column-gap: 9px;
    grid-template-columns: 36px 19px 1fr auto;
  }
  .flow-step strong {
    font-size: 11px;
  }
  .flow-step > span {
    font-size: 9px;
  }
  .flow-step small {
    font-size: 7px;
    max-width: 61px;
  }
  .side-stack,
  .inbox-layout .side-stack {
    grid-template-columns: 1fr;
  }
  .privacy-note {
    padding: 0 3px;
    margin: 0 0 4px;
  }
  .privacy-note h3 {
    font-size: 11px;
  }
  .privacy-note p {
    font-size: 10px;
  }
  .recent-panel > .panel-heading {
    display: flex;
    align-items: flex-start;
    padding: 21px 19px 0;
  }
  .recent-panel > .panel-heading h2 {
    font-size: 15px;
  }
  .recent-panel > .panel-heading > .text-link {
    font-size: 9px;
    gap: 5px;
    padding-top: 4px;
  }
  .recent-panel > .panel-heading .small {
    font-size: 9px;
    max-width: 175px;
    line-height: 1.7;
  }
  .connection {
    padding: 22px;
  }
  .connection-state strong {
    font-size: 12px;
  }
  .connection-state p {
    font-size: 10px;
  }
  .email-address strong {
    font-size: 12px;
  }
  .connection-details {
    font-size: 11px;
  }
  .connection-description {
    font-size: 10px;
  }
  .connection > .text-link {
    font-size: 11px;
  }
  .knowledge-grid {
    gap: 12px;
  }
  .knowledge-card {
    padding: 18px;
  }
  .knowledge-card h3 {
    font-size: 11px;
  }
  .knowledge-card p {
    font-size: 10px;
  }
  .knowledge-intro {
    padding: 35px 22px;
  }
  .knowledge-intro h2 {
    font-size: 21px;
  }
  .knowledge-intro p {
    font-size: 11px;
  }
  .pipeline-item {
    gap: 11px;
    position: relative;
  }
  .pipeline-index {
    display: none;
  }
  .pipeline-copy h2 {
    font-size: 14px;
  }
  .pipeline-copy p {
    font-size: 11px;
  }
  .pipeline-copy .badge {
    font-size: 8px;
  }
  .pipeline-banner {
    gap: 12px;
  }
  .pipeline-banner > .icon {
    width: 22px;
    height: 22px;
  }
  .pipeline-banner p {
    font-size: 10px;
    line-height: 1.7;
  }
  .settings-list > div {
    font-size: 11px;
  }
  .tabs button {
    font-size: 10px;
    padding: 7px 10px;
  }
  .list-toolbar {
    padding: 14px;
  }
  .mail-row .badge {
    font-size: 8px;
    padding: 4px 6px;
  }
  .mail-content strong {
    font-size: 11px;
  }
  .mail-content > span,
  .mail-content small {
    font-size: 9px;
  }
  .mail-row {
    gap: 9px;
  }
  .mail-avatar {
    width: 27px;
    height: 32px;
  }
  .mail-avatar .icon {
    width: 15px;
    height: 15px;
  }
  dialog {
    padding: 23px 21px;
  }
  .dialog-header h2 {
    font-size: 20px;
  }
  .detail-list > div {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    font-size: 10px;
  }
  .dialog-actions .button {
    font-size: 10px;
    padding: 9px 12px;
  }
  .notice {
    font-size: 10px;
  }
  .drop-zone {
    padding: 25px 12px;
  }
  .drop-zone strong {
    font-size: 12px;
  }
  .drop-zone > span:not(.upload-circle) {
    font-size: 10px;
  }
  .drop-zone small {
    font-size: 8px;
  }
  .error-banner {
    flex-wrap: wrap;
    font-size: 11px;
  }
  footer {
    padding-left: 17px;
  }
}
.sr-only {
  left: 0;
  top: 0;
}
.table-scroll {
  position: relative;
}
.panel,
.side-stack {
  min-width: 0;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.language-picker {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-alt);
}
.language-flag {
  display: block;
  width: 18px;
  height: 12px;
  border-radius: 1.5px;
  box-shadow: 0 0 0 1px var(--border);
}
.language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  opacity: 0.6;
  transition: background 0.15s, opacity 0.15s;
}
.language-option:hover {
  background: var(--soft);
  opacity: 1;
}
.language-option[aria-pressed="true"] {
  border-color: var(--border-strong);
  background: var(--surface);
  box-shadow: 0 1px 3px #0b234514;
  opacity: 1;
}
.header-title {
  min-width: 0;
}
#page-title {
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-right {
  flex-shrink: 0;
}
@media (max-width: 1120px) {
  .header-right {
    gap: 12px;
  }
}
@media (max-width: 650px) {
  .header-title .header-divider,
  .header-title .header-wordmark {
    display: none;
  }
}

.evaluation-section { margin: 28px 0; padding: 22px 0; border-block: 1px solid var(--border); }
.evaluation-section .panel-heading { flex-wrap: wrap; gap: 12px; }
.evaluation-section .button { max-width: 100%; white-space: normal; }
.evaluation-section p, .ai-assessment li { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.65; }
.ai-assessment h4 { margin: 24px 0 8px; }
.ai-finding { padding: 2px 0 10px; }
.ai-finding h4 { margin: 14px 0 6px; }
.ai-assessment ul { padding-left: 22px; }
.openai-key-form { display: grid; gap: 12px; margin: 18px 0; }
.openai-key-form input { min-width: 0; width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px; color: inherit; background: transparent; font: inherit; }
.openai-key-form button { justify-self: start; }

/* Live overview: each report is one native, keyboard-accessible button. */
.live-recent-panel { min-height: 0; }
.live-recent-panel > .panel-heading { padding-bottom: 20px; }
.live-recent-panel .panel-heading h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.live-list-label { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 10px; font-weight: 500; }
.live-list-label i, .service-indicator > i, .live-state-label > i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.live-list-label i { animation: live-beacon 2.6s ease-in-out infinite; }
.live-report-list { padding: 0 12px 12px; }
.live-report { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(175px, 240px) 20px; align-items: center; gap: 18px; width: 100%; padding: 22px 14px; border: 1px solid transparent; border-top-color: var(--border); border-radius: 10px; background: transparent; text-align: left; color: var(--text); transition: background .2s, border-color .2s; isolation: isolate; }
.live-report:hover, .live-report:focus-visible { background: var(--surface-alt); border-color: var(--border-strong); }
.live-report:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.live-document-icon { display: grid; place-items: center; width: 42px; height: 48px; border: 1px solid var(--border); border-radius: 10px; color: var(--primary); background: var(--soft); }
.live-report-body { min-width: 0; display: block; }
.live-report-heading { display: flex; align-items: center; gap: 9px; min-width: 0; }
.live-report-heading > strong { color: var(--strong); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrival-tag { flex-shrink: 0; color: var(--primary); background: var(--soft); border-radius: 5px; padding: 3px 6px; font-size: 9px; font-weight: 600; }
.live-report-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; margin-top: 7px; min-width: 0; }
.live-report-meta > .icon { width: 12px; height: 12px; flex-shrink: 0; }
.live-report-meta > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }
.live-report-meta time { white-space: nowrap; }
.meta-divider { opacity: .55; }
.report-track { display: flex; margin-top: 16px; max-width: 540px; }
.track-step { flex: 1; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.track-step:not(:last-child)::after { content: ""; height: 1px; min-width: 8px; flex: 1; margin: 0 8px 0 3px; background: var(--border-strong); }
.track-node { display: grid; place-items: center; width: 17px; height: 17px; flex-shrink: 0; border: 1px solid var(--border-strong); border-radius: 50%; font-size: 8px; }
.track-node > .icon { width: 10px; height: 10px; stroke-width: 2.5; }
.track-step.is-done { color: var(--success); }
.is-done .track-node { background: var(--success-bg); border-color: transparent; }
.track-step.is-current { color: var(--primary); font-weight: 600; }
.is-current .track-node { border-color: var(--primary); background: var(--soft); }
.track-step.has-error { color: var(--warning); }
.has-error .track-node { border-color: var(--warning); background: var(--warning-bg); }
.live-report-state { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.live-state-label { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 6px; background: var(--soft); color: var(--primary); font-size: 11px; font-weight: 500; }
.live-state-detail { font-size: 10px; color: var(--muted); line-height: 1.5; }
.live-row-arrow { color: var(--muted); transition: transform .2s, color .2s; }
.live-report:hover .live-row-arrow { transform: translateX(3px); color: var(--primary); }
.tone-complete .live-document-icon, .tone-complete .live-state-label { color: var(--success); background: var(--success-bg); }
.tone-warning .live-state-label { color: var(--warning); background: var(--warning-bg); }
.is-processing .live-state-label > i { animation: live-beacon 1.8s ease-in-out infinite; }
.is-processing .track-step.is-current .track-node { animation: live-beacon 2.2s ease-in-out infinite; }
.is-processing::after { content: ""; position: absolute; bottom: 0; left: 15px; right: 15px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--brand-cyan), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: report-flow 3s ease-in-out infinite; opacity: .7; }
.live-report.is-fresh { animation: report-arrival 1.3s ease-out 2; }
.service-strip { display: flex; align-items: center; gap: 24px; padding: 19px 4px; color: var(--muted); }
.services-caption { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; flex-shrink: 0; }
.services-caption > .icon { width: 15px; height: 15px; }
.services-items { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.service-indicator { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; }
.service-indicator > .icon { width: 14px; height: 14px; }
.service-indicator > span:first-of-type { color: var(--text); }
.service-indicator > i { width: 5px; height: 5px; margin-left: 3px; }
.service-indicator > small { font-size: 9px; }
.service-active > i, .service-active > small { color: var(--success); }
.service-error > i, .service-error > small, .service-unconfigured > i, .service-unconfigured > small { color: var(--warning); }
@keyframes live-beacon { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes report-flow { from { background-position: -100% 0; } to { background-position: 200% 0; } }
@keyframes report-arrival { 0%, 25% { background: var(--success-bg); border-color: var(--success); } 100% { background: transparent; border-color: var(--border); } }
@media (max-width: 1120px) {
  .live-report { grid-template-columns: 38px minmax(0, 1fr) minmax(145px, 190px) 16px; gap: 12px; }
  .live-report-meta { flex-wrap: wrap; }
  .service-strip { align-items: flex-start; gap: 14px; }
  .services-items { gap: 12px 18px; }
}
@media (max-width: 650px) {
  .live-report-list { padding: 0 8px 8px; }
  .live-report { grid-template-columns: 32px minmax(0, 1fr) 16px; gap: 12px; padding: 18px 8px; }
  .live-document-icon { width: 32px; height: 40px; align-self: start; }
  .live-document-icon > .icon { width: 17px; height: 17px; }
  .live-report-heading { flex-wrap: wrap; gap: 5px; }
  .live-report-heading > strong { font-size: 12px; max-width: 100%; }
  .live-report-body { grid-column: 2; }
  .live-report-meta { font-size: 9px; gap: 4px; }
  .live-report-meta time { flex-basis: 100%; margin-left: 16px; }
  .live-report-meta .meta-divider { display: none; }
  .live-row-arrow { grid-column: 3; grid-row: 1; }
  .live-report-state { grid-column: 2 / 4; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
  .live-state-label { font-size: 10px; padding: 5px 7px; }
  .live-state-detail { font-size: 9px; }
  .report-track { flex-wrap: wrap; gap: 8px 0; margin-top: 12px; }
  .track-step { flex: 0 0 50%; font-size: 9px; }
  .report-track .track-step::after { display: none; }
  .service-strip { flex-direction: column; padding: 17px 4px; gap: 12px; }
  .services-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 12px 14px; }
  .service-indicator { flex-wrap: wrap; gap: 5px; font-size: 9px; }
  .service-indicator > small { font-size: 8px; }
  .live-recent-panel .panel-heading h2 { gap: 6px; }
}

/* Expert wiki */
.wiki-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.wiki-heading h1 { margin: 4px 0 8px; font-size: 30px; color: var(--strong); letter-spacing: -.8px; }
.wiki-heading p { margin: 0; }
.wiki-heading .button { flex-shrink: 0; }
.wiki-banner { display: flex; align-items: center; gap: 20px; padding: 23px 27px; border: 1px solid #c9e8ed; border-radius: var(--radius); background: linear-gradient(110deg, #edf5ff, #eafbf5); margin-bottom: 25px; }
.wiki-banner-icon { display: grid; place-items: center; height: 52px; width: 52px; flex-shrink: 0; border-radius: 16px; background: white; color: var(--primary); }
.wiki-banner-icon svg { width: 27px; height: 27px; }
.wiki-banner strong { color: var(--strong); font-size: 16px; }
.wiki-banner p { margin: 4px 0 0; max-width: 650px; color: var(--muted); font-size: 12px; }
.wiki-stats { margin-left: auto; padding-left: 22px; border-left: 1px solid #c6dfe6; text-align: center; min-width: 125px; }
.wiki-stats strong { display: block; font-size: 30px; color: var(--primary); }
.wiki-stats span { font-size: 11px; }
.wiki-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 23px; align-items: start; }
.wiki-sidebar { padding: 20px 12px; }
.wiki-sidebar h2 { margin: 0 10px 16px; font-size: 13px; color: var(--strong); }
.wiki-category { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; padding: 12px 10px; border-radius: 10px; color: var(--text); margin: 2px 0; }
.wiki-category span { flex: 1; font-size: 12px; line-height: 1.45; }
.wiki-category .icon { flex-shrink: 0; width: 18px; }
.wiki-category small { color: var(--muted); font-size: 11px; }
.wiki-category.selected { background: var(--soft); color: var(--primary); }
.wiki-category:hover { background: var(--surface-alt); }
.wiki-main { min-width: 0; }
.wiki-toolbar { padding: 14px; }
.wiki-search { display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-alt); }
.wiki-search input { width: 100%; min-width: 0; border: 0; padding: 11px 0; background: transparent; font: inherit; color: var(--text); }
.wiki-search:focus-within { outline: 2px solid var(--primary); }
.wiki-search input:focus { outline: 0; }
.wiki-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.wiki-filters label, .wiki-form-grid label, .wiki-approve label { min-width: 0; }
.wiki-filters select, .wiki-dialog select, .wiki-dialog input, .wiki-dialog textarea { display: block; width: 100%; min-width: 0; border: 1px solid var(--border-strong); border-radius: 9px; padding: 10px; background: var(--surface); color: var(--text); font: inherit; }
.wiki-filters select { font-size: 12px; }
.wiki-results-heading { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; }
.wiki-results-heading h2 { margin: 0; font-size: 16px; color: var(--strong); }
.wiki-results-heading > span { margin-left: auto; font-size: 11px; flex-shrink: 0; }
.wiki-article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.wiki-article-card { padding: 22px; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.wiki-card-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.wiki-card-meta > span:last-child { font-size: 10px; color: var(--muted); }
.wiki-type { color: var(--primary); font-size: 10px; }
.wiki-article-card h3 { margin: 8px 0; line-height: 1.35; font-size: 17px; }
.wiki-article-card h3 button { padding: 0; text-align: left; font: inherit; color: var(--strong); background: transparent; }
.wiki-article-card h3 button:hover { color: var(--primary); }
.wiki-article-card > p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.wiki-tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0; }
.wiki-tags .tag { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.wiki-dialog .wiki-tags .button { white-space: normal; overflow-wrap: anywhere; max-width: 100%; text-align: left; }
.wiki-card-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.wiki-empty { text-align: center; padding: 55px 25px; color: var(--muted); }
.wiki-empty > svg { color: var(--primary); width: 36px; height: 36px; }
.wiki-empty h3 { color: var(--strong); margin: 16px 0 8px; }
.wiki-empty p { max-width: 430px; margin: 0 auto 20px; font-size: 12px; }
.wiki-dialog { width: min(880px, calc(100vw - 32px)); }
.wiki-dialog h2, .wiki-dialog h3 { overflow-wrap: anywhere; }
.wiki-dialog .settings-list > div { grid-template-columns: minmax(100px, .8fr) minmax(0, 1.6fr); }
.wiki-dialog dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.wiki-prose { overflow-wrap: anywhere; line-height: 1.8; margin: 15px 0 24px; }
.wiki-prose p { margin: 0 0 14px; }
.wiki-picture { margin: 16px 0 20px; }
.wiki-picture img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.wiki-prose h1, .wiki-prose h2, .wiki-prose h3, .wiki-prose h4, .wiki-prose h5, .wiki-prose h6 { color: var(--strong); line-height: 1.4; margin: 25px 0 12px; letter-spacing: -.3px; }
.wiki-prose h1 { font-size: 25px; }
.wiki-prose h2 { font-size: 21px; }
.wiki-prose h3 { font-size: 18px; }
.wiki-prose h4, .wiki-prose h5, .wiki-prose h6 { font-size: 15px; }
.wiki-prose > :first-child { margin-top: 0; }
.wiki-prose > :last-child { margin-bottom: 0; }
.wiki-prose ul, .wiki-prose ol { padding-left: 24px; margin: 12px 0 18px; }
.wiki-prose li { padding-left: 3px; margin: 7px 0; }
.wiki-prose li::marker { color: var(--primary); }
.wiki-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.wiki-prose code { padding: 2px 5px; background: var(--surface-alt); border-radius: 4px; font-size: .9em; white-space: pre-wrap; }
.wiki-body-editor { min-width: 0; }
.wiki-body-editor > label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 7px; }
.wiki-format-toolbar { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; border: 1px solid var(--border-strong); border-bottom: 0; border-radius: 9px 9px 0 0; background: var(--surface-alt); }
.wiki-format-toolbar button { min-width: 36px; min-height: 36px; display: inline-flex; justify-content: center; align-items: center; padding: 6px 9px; border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.wiki-format-toolbar button:hover { background: var(--soft); color: var(--primary); }
.wiki-format-toolbar button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.wiki-body-editor #wiki-body { border-radius: 0 0 9px 9px; font-family: ui-monospace, monospace; font-size: 13px; }
.wiki-body-editor > .small { margin: 9px 0 14px; }
.wiki-preview { padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.wiki-preview > summary { cursor: pointer; color: var(--primary); font-size: 12px; font-weight: 600; }
.wiki-preview .wiki-prose { font-size: 14px; margin-bottom: 0; }
.wiki-summary { font-size: 16px; color: var(--strong); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.wiki-source { padding: 15px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.wiki-source a { display: inline-flex; gap: 8px; align-items: center; color: var(--primary); }
.wiki-source a svg { flex-shrink: 0; width: 15px; }
.wiki-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wiki-form-grid label, .wiki-approve label, .wiki-dialog details > label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 500; }
.wiki-wide { grid-column: 1 / -1; }
.wiki-dialog textarea { resize: vertical; line-height: 1.7; font-weight: 400; }
.wiki-source-form { padding: 15px; border: 1px solid var(--border); border-radius: 12px; margin: 16px 0; min-width: 0; }
.wiki-source-form legend { color: var(--primary); font-size: 12px; padding: 0 7px; }
.wiki-source-form .text-link { margin-top: 14px; }
.wiki-approve { background: var(--soft); padding: 18px; border-radius: 12px; margin-top: 20px; }
.wiki-approve p { margin: 0 0 14px; font-size: 12px; }
.wiki-approve .button { margin-top: 14px; }
.wiki-bulk { padding: 18px; margin-bottom: 18px; }
.wiki-bulk-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.wiki-selection { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; cursor: pointer; }
.wiki-selection input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; margin: 0; accent-color: var(--primary); }
.wiki-bulk .button { white-space: normal; text-align: left; }
.wiki-bulk > p { margin-bottom: 0; overflow-wrap: anywhere; }
.wiki-bulk li { overflow-wrap: anywhere; font-size: 12px; margin: 8px 0; }
.wiki-revision-json { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; }
@media (max-width: 1100px) { .wiki-layout { grid-template-columns: 215px minmax(0, 1fr); gap: 15px; } .wiki-article-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) { .wiki-layout { grid-template-columns: minmax(0, 1fr); } .wiki-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; } .wiki-sidebar h2 { grid-column: 1 / -1; } .wiki-banner { padding: 20px; gap: 14px; } .wiki-stats { min-width: 90px; padding-left: 14px; } }
@media (max-width: 480px) { .wiki-heading { flex-direction: column; gap: 15px; } .wiki-heading h1 { font-size: 26px; } .wiki-banner { align-items: flex-start; flex-wrap: wrap; } .wiki-banner-icon { height: 38px; width: 38px; border-radius: 11px; } .wiki-banner > div:nth-child(2) { flex: 1; } .wiki-stats { display: none; } .wiki-filters { grid-template-columns: minmax(0, 1fr); } .wiki-sidebar { padding: 12px 8px; } .wiki-category { padding: 9px 6px; gap: 6px; } .wiki-category span { font-size: 11px; } .wiki-category .icon { width: 15px; } .wiki-results-heading { flex-wrap: wrap; } .wiki-results-heading h2 { font-size: 14px; } .wiki-form-grid { grid-template-columns: minmax(0, 1fr); } .wiki-dialog { width: calc(100vw - 16px); padding: 18px; } .wiki-dialog .settings-list > div { grid-template-columns: minmax(0, 1fr); gap: 5px; } }
.wiki-metric-explanation { grid-column: 1 / -1; margin-top: 8px; font-size: 12px; }
.wiki-metric-explanation summary { cursor: pointer; color: var(--primary); }
.wiki-metric-explanation a { color: var(--primary); overflow-wrap: anywhere; }
.wiki-metric-explanation .wiki-prose { margin: 10px 0; }
.wiki-category span { min-width: 0; overflow-wrap: anywhere; }
.wiki-heading > div { min-width: 0; overflow-wrap: anywhere; }

/* Processing workspace and full-page report details. */
.processing-panel { overflow: hidden; }
.processing-panel > .panel-heading { padding: 22px 26px; border-bottom: 1px solid var(--border); margin: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.processing-panel h1 { font-size: 21px; letter-spacing: -.5px; }
.processing-list-tools { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.processing-row { position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(160px,280px) 18px; gap:22px; padding:23px 26px; align-items:center; width:100%; border:0; border-bottom:1px solid var(--border); text-align:left; background:var(--surface); }
.processing-row:last-child { border-bottom:0; }
.processing-row:hover { background:var(--surface-alt); }
.processing-row.is-processing:before { content:''; position:absolute; top:20px; bottom:20px; left:0; width:3px; border-radius:0 4px 4px 0; background:var(--brand-gradient); }
.processing-row.is-fresh { animation:report-update-flash 2s ease-out; }
.processing-identity { min-width:0; }
.processing-identity>strong { display:block; color:var(--strong); font-size:16px; margin:4px 0; overflow-wrap:anywhere; }
.processing-filename { display:block; color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.processing-date { display:flex; align-items:center; gap:6px; margin-top:7px; color:var(--muted); font-size:12px; }
.processing-date>.icon { width:14px; height:14px; flex-shrink:0; }
.processing-track { display:flex; max-width:320px; gap:5px; margin-top:13px; }
.processing-track>span { flex:1; min-width:0; }
.processing-track i { display:block; height:3px; background:var(--border); border-radius:3px; }
.processing-track small { display:block; color:var(--muted); font-size:10px; margin-top:5px; }
.processing-track .done i { background:#20a99d; }
.processing-track .current i { background:linear-gradient(90deg,var(--brand-blue),var(--brand-cyan),var(--brand-blue)); background-size:200% 100%; animation:journey-shimmer 2s linear infinite; }
.processing-track .unpaid i,.processing-track .error i { background:#d49d43; }
.processing-state { display:flex; align-items:flex-end; flex-direction:column; gap:7px; text-align:right; }
.processing-state>.small { font-size:11px; }
.processing-arrow { color:var(--muted); width:15px; }
.journey-connection { display:inline-flex; align-items:center; gap:7px; padding:5px 10px; font-size:11px; color:var(--success); background:var(--success-bg); border-radius:20px; white-space:nowrap; }
.journey-connection>i { width:6px; height:6px; background:currentColor; border-radius:50%; }
.journey-connection.is-offline { color:var(--warning); background:var(--warning-bg); }
.journey-badge { display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:6px 9px; border-radius:7px; font-size:11px; color:var(--muted); background:var(--surface-alt); max-width:100%; }
.journey-badge>svg { width:14px; height:14px; flex-shrink:0; }
.journey-badge.processing { color:var(--blue); background:var(--blue-bg); }
.journey-badge.complete { color:var(--success); background:var(--success-bg); }
.journey-badge.payment,.journey-badge.warning { color:var(--warning); background:var(--warning-bg); }
.journey-spinner { display:inline-block; width:12px; height:12px; flex-shrink:0; border-radius:50%; border:1.7px solid #3e83e72c; border-top-color:var(--brand-blue); animation:journey-spin 1.1s linear infinite; }
.journey-elapsed { font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums; display:block; margin-top:4px; }
.journey-back { display:inline-flex; align-items:center; gap:5px; margin-bottom:20px; font-size:12px; }
.journey-back>.icon { transform:rotate(180deg); width:15px; }
.journey-detail-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; flex-wrap:wrap; margin-bottom:25px; }
.journey-detail-heading>div { min-width:0; }
.journey-detail-heading h1 { margin:6px 0 9px; font-size:29px; overflow-wrap:anywhere; }
.journey-detail-heading .small { overflow-wrap:anywhere; }
.journey-flow { background:linear-gradient(120deg,#edf4ff,#eafaf9); border:1px solid #d5e6f5; border-radius:18px; padding:24px; margin-bottom:24px; }
.journey-flow-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; flex-wrap:wrap; margin-bottom:27px; }
.journey-flow-heading h2 { font-size:16px; margin-bottom:4px; }
.journey-flow-heading>div:last-child { text-align:right; }
.journey-nodes { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:17px; position:relative; }
.journey-nodes:before { content:''; position:absolute; top:25px; left:26px; right:26px; height:2px; background:#c5d9e9; }
.journey-node { position:relative; min-width:0; }
.journey-node-icon { position:relative; display:grid; place-items:center; width:50px; height:50px; border:1px solid #d2e2ef; background:var(--surface); border-radius:15px; color:#738ba6; margin-bottom:13px; }
.journey-node.done .journey-node-icon { background:#ecfcf6; border-color:#bdebdc; color:#078169; }
.journey-node.current .journey-node-icon { background:#276fd2; border-color:#276fd2; color:#fff; box-shadow:0 0 0 5px #3e83e713,0 8px 22px #2165ba20; }
.journey-node.unpaid .journey-node-icon,.journey-node.failed .journey-node-icon { background:var(--warning-bg); border-color:#e9c78b; color:var(--warning); }
.journey-node.current:after { content:''; position:absolute; width:6px; height:6px; top:22px; left:-20px; border-radius:50%; background:var(--brand-cyan); animation:journey-packet 2.6s ease-in-out infinite; }
.journey-node h3 { font-size:12px; margin-bottom:6px; overflow-wrap:anywhere; }
.journey-node p { font-size:11px; color:var(--muted); min-height:34px; }
.journey-node-state { display:inline-block; font-size:10px; padding:4px 7px; border-radius:6px; margin-top:9px; background:#f0f4f8; color:var(--muted); }
.journey-node.done .journey-node-state { background:var(--success-bg); color:var(--success); }
.journey-node.current .journey-node-state { background:var(--blue-bg); color:var(--blue); }
.journey-node.unpaid .journey-node-state,.journey-node.failed .journey-node-state { background:var(--warning-bg); color:var(--warning); }
.journey-tabs { display:flex; gap:7px; border-bottom:1px solid var(--border); margin-bottom:23px; flex-wrap:wrap; }
.journey-tabs>button { display:flex; align-items:center; justify-content:center; gap:8px; border:0; border-bottom:3px solid transparent; background:transparent; padding:13px 14px; font-size:12px; color:var(--muted); font-weight:500; min-height:47px; }
.journey-tabs .icon { width:16px; height:16px; }
.journey-tabs>button[aria-selected=true] { color:var(--blue); border-bottom-color:var(--brand-blue); background:var(--blue-bg); border-radius:9px 9px 0 0; }
.journey-tab-panel[hidden] { display:none; }
.journey-tab-panel { min-height:360px; }
.journey-person { padding:20px 24px; }
.journey-person dl { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; margin:0; }
.journey-person dt { font-size:11px; color:var(--muted); margin-bottom:6px; }
.journey-person dd { color:var(--strong); font-size:13px; font-weight:500; margin:0; overflow-wrap:anywhere; }
.journey-source { margin:15px 0 20px; }
.journey-measurements .measurement-section,.journey-measurements .measurement-summary>div { background:var(--surface); }
.journey-measurements>.measurement-section { padding:20px 24px; }
.journey-assessment { padding:24px; }
.journey-assessment .evaluation-section { margin:0; padding:0; border:0; }
.journey-assessment .notice { margin:15px 0; }
.journey-assessment .ai-assessment { margin-top:22px; }
.journey-empty { padding:32px 26px; text-align:center; }
.journey-empty h2 { font-size:17px; margin:12px 0 8px; }
.journey-empty p { font-size:13px; }
.journey-empty .button { margin-top:15px; }
.journey-section-title { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.journey-documents { padding:0 24px; }
.journey-document { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 0; border-bottom:1px solid var(--border); }
.journey-document:last-child { border:0; }
.journey-document>span:first-child { display:flex; gap:12px; align-items:center; min-width:0; }
.journey-document strong { display:block; color:var(--strong); font-size:13px; overflow-wrap:anywhere; }
.journey-document small { display:block; color:var(--muted); font-size:11px; margin-top:4px; }
.journey-document .button { flex-shrink:0; font-size:12px; }
.journey-metadata { padding:20px 24px; margin-top:18px; }
.journey-metadata summary { cursor:pointer; font-size:13px; font-weight:500; }
.journey-access { display:flex; align-items:flex-start; gap:13px; border:1px solid #efdfbf; border-radius:13px; padding:20px; margin-bottom:20px; background:#fff6e8; color:var(--warning); }
.journey-access>.icon { flex-shrink:0; }
.journey-access h3 { color:inherit; font-size:14px; margin-bottom:5px; }
.journey-access p { font-size:12px; }
.journey-access.paid { background:var(--success-bg); color:var(--success); border-color:#ccebdc; }
@keyframes journey-spin { to { transform:rotate(360deg); } }
@keyframes journey-shimmer { to { background-position:-200% 0; } }
@keyframes journey-packet { 0% { transform:translateX(-18px);opacity:0; } 30%{opacity:1} 100%{transform:translateX(18px);opacity:0;} }
@media(max-width:800px) {
 .processing-row { grid-template-columns:minmax(0,1fr) minmax(120px,190px) 14px; padding:21px 18px; gap:14px; }
 .journey-flow { padding:21px 18px; }
 .journey-nodes { gap:13px; }
 .journey-person dl { grid-template-columns:1fr 1fr; }
}
@media(max-width:600px) {
 .processing-panel>.panel-heading { padding:18px 16px; }
 .processing-panel h1 { font-size:18px; }
 .processing-list-tools { gap:10px; }
 .processing-list-tools .button { padding:7px 9px; font-size:11px; }
 .processing-row { padding:20px 15px; grid-template-columns:minmax(0,1fr); gap:16px; }
 .processing-identity>strong { font-size:15px; line-height:1.5; margin:5px 0; }
 .processing-filename { display:block; line-height:1.5; }
 .processing-track { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); max-width:none; gap:8px; margin-top:16px; }
 .processing-track small { display:block; line-height:1.5; overflow-wrap:anywhere; }
 .processing-arrow { display:none; }
 .processing-state { flex-direction:row; flex-wrap:wrap; align-items:center; gap:8px 12px; text-align:left; min-width:0; border-top:1px solid var(--border); padding-top:13px; }
 .processing-state>.small { flex-basis:100%; font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
 .processing-state>.journey-elapsed { margin-top:0; }
 .journey-badge { font-size:10px; gap:5px; }
 .journey-badge .icon { width:12px;height:12px; }
 .journey-detail-heading h1 { font-size:25px; }
 .journey-nodes { grid-template-columns:1fr 1fr; gap:22px 16px; }
 .journey-nodes:before,.journey-node.current:after { display:none; }
 .journey-node p { min-height:0; }
 .journey-tabs { display:grid; grid-template-columns:1fr 1fr; gap:5px; border:0; }
 .journey-tabs>button { padding:11px 7px; gap:6px; font-size:11px; border:1px solid var(--border); background:var(--surface); border-radius:8px; }
 .journey-tabs>button[aria-selected=true] { border-color:#9dbfec; border-radius:8px; }
 .journey-tab-panel { min-height:0; }
 .journey-assessment,.journey-person,.journey-documents { padding:18px 16px; }
 .journey-documents { padding-top:0; padding-bottom:0; }
 .journey-document { flex-wrap:wrap; gap:13px; }
 .journey-metadata { padding:18px 16px; }
 .journey-measurements>.measurement-section { padding:18px 16px; }
}
@media(max-width:380px) {
 .processing-track { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 8px; }
}
@media(prefers-reduced-motion:reduce) {
 .processing-row,.processing-track .current i,.journey-spinner,.journey-node.current:after { animation:none!important; transition:none!important; }
}
.journey-document { flex-wrap:wrap; }
.journey-document>span:first-child { flex:1 1 240px; }
.journey-pdf-preview { margin-top:20px; overflow:hidden; }
.journey-pdf-preview>.panel-heading { margin:0; padding:15px 20px; }
.journey-pdf-preview iframe { width:100%; height:650px; border:0; display:block; }
@media(max-width:600px) { .journey-pdf-preview iframe { height:480px; } }
@keyframes report-update-flash { 0% { background:#d9faf0; } 100% { background:var(--surface); } }

/* Report sharing uses the same spacing and palette as the report cards. */
.customer-share { margin-bottom: 24px; overflow: hidden; }
.customer-share-heading { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; padding: 24px 24px 20px; }
.customer-share-heading > .customer-share-icon { grid-column: 1; grid-row: 1 / 3; align-self: start; }
.customer-share-heading > h3 { grid-column: 2; grid-row: 1; min-width: 0; overflow-wrap: anywhere; }
.customer-share-heading > p { grid-column: 2 / -1; grid-row: 2; }
.customer-share-tools { grid-column: 3; grid-row: 1; display: flex; align-self: start; gap: 6px; }
.customer-share-tools > .icon-button { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--primary); }
.customer-share-tools > .icon-button:hover { background: var(--blue-bg); }
.customer-share-tools .icon { width: 17px; height: 17px; }
.customer-share-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #d3e4f7; border-radius: 12px; background: var(--blue-bg); color: var(--primary); }
.customer-share-heading h3 { font-size: 15px; margin: 0; }
.customer-share-heading p { max-width: 78ch; font-size: 12px; line-height: 1.7; color: var(--muted); }
.customer-share-body { padding: 0 24px 24px 78px; }
.customer-share-state { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); background: var(--surface-alt); border-radius: 11px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.customer-share-state > .icon { width: 17px; height: 17px; margin-top: 2px; }
.customer-share label { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.customer-share input { width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid var(--border-strong); border-radius: 10px; font: 13px monospace; color: var(--strong); background: var(--surface-alt); }
.customer-share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.customer-share .button { min-height: 40px; font-size: 12px; }
.customer-share .button .icon { width: 16px; height: 16px; }
.customer-preview-link { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.customer-preview-link > a { margin-top: 16px; }
.customer-preview-link:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.customer-share .customer-share-revoke { border-color: #ecd9d9; color: #a14444; }
.customer-share .customer-share-revoke:hover { background: #fff5f5; border-color: #d9b6b6; }
.customer-share-confirm { margin-top: 20px; }
.customer-share-confirm > div { min-width: 0; }
.customer-share-note { display: flex; align-items: flex-start; gap: 10px; padding: 15px 24px; border-top: 1px solid var(--border); background: #f8fafd; font-size: 11px; line-height: 1.7; color: var(--muted); }
.customer-share-note > .icon { width: 16px; height: 16px; margin-top: 1px; color: var(--primary); }
@media (max-width: 600px) {
  .customer-share-heading { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 20px 16px 16px; gap: 12px; }
  .customer-share-heading > .customer-share-icon { grid-row: 1; }
  .customer-share-heading > p { grid-column: 1 / -1; }
  .customer-share-heading h3 { font-size: 14px; }
  .customer-share-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
  .customer-share-body { padding: 0 16px 20px; }
  .customer-share-state { padding: 12px; }
  .customer-share-actions { gap: 8px; }
  .customer-share-actions > .button { flex: 1 1 170px; justify-content: center; }
  .customer-share-note { padding: 14px 16px; }
}
.mcp-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; margin-bottom: 24px; }
.mcp-layout > *, .mcp-connection > div { min-width: 0; }
.mcp-url-label { display: block; font-size: 13px; font-weight: 600; margin: 24px 0 8px; }
.mcp-url { display: flex; gap: 10px; }
.mcp-url input { width: 100%; min-width: 0; padding: 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: inherit; font: inherit; font-size: 13px; }
.mcp-url .button { flex-shrink: 0; }
.mcp-steps { padding-left: 24px; line-height: 1.7; }
.mcp-steps li { padding-left: 6px; margin-bottom: 18px; }
.mcp-steps li::marker { color: var(--primary); font-weight: 700; }
.mcp-cli { margin-top: 22px; }
.mcp-cli summary { cursor: pointer; font-weight: 600; }
.mcp-cli pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.8; }
.mcp-connection { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--border); }
.mcp-connection strong, .mcp-connection p { overflow-wrap: anywhere; }
.mcp-connection p { margin: 7px 0 0; }
@media (max-width: 1050px) { .mcp-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .mcp-url { flex-direction: column; }
  .mcp-layout .panel-heading, .mcp-connections .panel-heading { flex-wrap: wrap; }
  .mcp-layout .settings-list > div { flex-wrap: wrap; }
  .mcp-connection { align-items: flex-start; flex-direction: column; gap: 12px; }
}
