    :root {
      color-scheme: light;
      --ink: #182028;
      --muted: #64717f;
      --line: #d9e1e8;
      --panel: #f7f9fb;
      --forest-950: #0d3532;
      --forest-900: #123d3a;
      --forest-800: #195c56;
      --forest-700: #246b65;
      --forest-300: #8fc9c2;
      --forest-100: #e6f5f2;
      --forest-50: #f2fbfa;
      --accent: var(--forest-800);
      --accent-dark: var(--forest-900);
      --accent-edge: var(--forest-950);
      --button-edge: #b9c7cf;
      --button-face: #dbe6ea;
      --button-face-dark: #c9d8df;
      --warn: #a35a00;
      --risk: #b42b38;
      --ok: var(--forest-700);
      --white: #fff;
      --bevel-top: rgba(255, 255, 255, 0.48);
      --bevel-bottom: rgba(18, 26, 34, 0.2);
      --control-shadow: 0 1px 1px rgba(18, 26, 34, 0.1), 0 6px 14px rgba(18, 26, 34, 0.08);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--ink);
      background: #eef3f6;
    }

    body.auth-locked main {
      filter: blur(2px);
      pointer-events: none;
      user-select: none;
    }

    .hidden {
      display: none !important;
    }

    .auth-gate {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: grid;
      place-items: center;
      padding: 24px;
      overflow-y: auto;
      background: rgba(238, 243, 246, 0.92);
    }

    .auth-panel {
      width: min(520px, 100%);
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 22px;
      box-shadow: 0 18px 50px rgba(18, 26, 34, 0.16);
    }

    .brand-logo {
      display: block;
      width: 100%;
      height: 100%;
    }

    .brand-lockup {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: var(--ink);
      line-height: 1;
      white-space: nowrap;
    }

    .brand-lockup-mark {
      width: 32px;
      height: 32px;
      flex: 0 0 32px;
      filter: drop-shadow(0 2px 2px rgba(18, 26, 34, 0.12));
    }

    .brand-word {
      font-size: 18px;
      font-weight: 720;
      letter-spacing: 0;
    }

    .brand-word b {
      color: var(--accent-dark);
      font-weight: 880;
    }

    .auth-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 24px;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--line);
    }

    .auth-brand .brand-lockup-mark {
      width: 44px;
      height: 44px;
      flex-basis: 44px;
    }

    .auth-brand .brand-word {
      font-size: 25px;
    }

    .auth-brand-tagline {
      display: block;
      margin-top: 5px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 650;
    }

    .onboarding-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 13px;
      color: var(--accent-dark);
      font-size: 13px;
      font-weight: 800;
    }

    .onboarding-brand .brand-lockup-mark {
      width: 28px;
      height: 28px;
      flex-basis: 28px;
    }

    .onboarding-gate {
      position: fixed;
      inset: 0;
      z-index: 95;
      display: grid;
      place-items: center;
      padding: 20px;
      overflow-y: auto;
      background: rgba(24, 32, 40, 0.42);
    }

    .onboarding-panel {
      width: min(560px, 100%);
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      box-shadow: 0 22px 60px rgba(18, 26, 34, 0.22);
      overflow: hidden;
    }

    .onboarding-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      padding: 20px;
      border-bottom: 1px solid var(--line);
    }

    .onboarding-header h1 {
      font-size: 22px;
      margin-bottom: 4px;
    }

    .onboarding-header p {
      margin: 0;
      font-size: 14px;
    }

    .onboarding-header button {
      width: auto;
      flex: 0 0 auto;
      padding: 8px 10px;
      font-size: 12px;
    }

    .onboarding-body {
      padding: 20px;
      display: grid;
      gap: 16px;
    }

    .onboarding-progress {
      height: 7px;
      border-radius: 4px;
      background: #e6ecef;
      overflow: hidden;
    }

    .onboarding-progress > span {
      display: block;
      height: 100%;
      width: var(--onboarding-progress, 0%);
      border-radius: inherit;
      background: var(--accent);
      transition: width 180ms ease;
    }

    .onboarding-steps {
      display: grid;
      gap: 8px;
    }

    .onboarding-step {
      display: grid;
      grid-template-columns: 28px minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
    }

    .onboarding-step-number {
      width: 28px;
      height: 28px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: #e7edef;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .onboarding-step.complete .onboarding-step-number {
      background: #dff2e8;
      color: var(--ok);
    }

    .onboarding-step.current {
      border-color: var(--forest-300);
      background: var(--forest-50);
    }

    .onboarding-step b,
    .onboarding-step span {
      min-width: 0;
      overflow-wrap: anywhere;
    }

    .onboarding-current {
      border-left: 4px solid var(--accent);
      border-radius: 0 8px 8px 0;
      background: #eef8f6;
      padding: 13px 14px;
    }

    .onboarding-current b,
    .onboarding-current span {
      display: block;
    }

    .onboarding-actions {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
    }

    .auth-migration {
      margin-top: 16px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 0 12px 12px;
    }

    .auth-migration summary {
      cursor: pointer;
      padding: 12px 0 0;
      font-weight: 800;
    }

    .auth-migration button {
      width: 100%;
      margin-top: 10px;
    }

    .tenant-bar {
      position: sticky;
      top: 0;
      z-index: 40;
      display: grid;
      grid-template-columns: minmax(220px, 1fr) minmax(0, auto) minmax(220px, 1fr);
      gap: 18px;
      align-items: center;
      padding: 8px 14px;
      border-bottom: 1px solid var(--line);
      background: var(--white);
      color: var(--muted);
      font-size: 13px;
    }

    .app-brand-group {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .brand-home-button {
      min-height: 0;
      padding: 0;
      border: 0;
      background: transparent;
      color: var(--ink);
      box-shadow: none;
      text-shadow: none;
    }

    .brand-home-button:hover,
    .brand-home-button.active {
      border: 0;
      background: transparent;
      color: var(--accent-dark);
      box-shadow: none;
      text-shadow: none;
      transform: none;
    }

    .brand-home-button:focus-visible {
      outline: 3px solid rgba(25, 92, 86, 0.22);
      outline-offset: 4px;
      border-radius: 7px;
    }

    .app-brand-group .brand-lockup {
      flex: 0 0 auto;
    }

    #tenantBarLabel {
      display: none;
    }

    .tenant-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: nowrap;
      justify-content: flex-end;
      justify-self: end;
    }

    .global-brand-filter {
      display: flex;
      align-items: center;
      gap: 7px;
      min-width: 0;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .global-brand-filter-staging {
      display: none;
    }

    .global-brand-filter select {
      width: auto;
      min-width: 110px;
      max-width: 140px;
      min-height: 36px;
      margin: 0;
      padding: 7px 30px 7px 10px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 750;
      background-color: var(--white);
    }

    .header-icon-button,
    .global-add-menu > summary {
      display: inline-grid;
      place-items: center;
      width: 36px;
      height: 36px;
      min-width: 36px;
      padding: 0;
      border-radius: 7px;
    }

    .header-icon-button {
      border-color: transparent;
      background: transparent;
      color: var(--muted);
      box-shadow: none;
      text-shadow: none;
    }

    .header-tools-button {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      width: auto;
      min-width: 70px;
      padding: 0 10px;
      border-color: transparent;
      background: transparent;
      color: var(--muted);
      box-shadow: none;
      text-shadow: none;
    }

    .header-tools-button:hover,
    .header-tools-button[aria-expanded="true"] {
      border-color: var(--forest-300);
      background: var(--forest-100);
      color: var(--accent-dark);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 2px 7px rgba(25, 92, 86, 0.12);
      text-shadow: none;
    }

    .workspace-tools-panel {
      position: fixed;
      z-index: 85;
      width: 220px;
      padding: 8px;
      display: grid;
      gap: 6px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      box-shadow: 0 12px 32px rgba(18, 26, 34, 0.16);
    }

    .workspace-tools-panel.hidden {
      display: none;
    }

    .workspace-tools-panel button {
      width: 100%;
      padding: 9px 10px;
      justify-content: flex-start;
      text-align: left;
      border-color: transparent;
      background: transparent;
      color: var(--ink);
      font-weight: 650;
      box-shadow: none;
      text-shadow: none;
    }

    .workspace-tools-panel button:hover {
      border-color: transparent;
      background: #edf7f5;
      color: var(--accent-dark);
      box-shadow: none;
      text-shadow: none;
    }

    .header-icon-button:hover,
    .header-icon-button.active {
      border-color: var(--forest-300);
      background: var(--forest-100);
      color: var(--accent-dark);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 2px 7px rgba(25, 92, 86, 0.12);
      text-shadow: none;
    }

    .header-icon-button.active {
      background: var(--accent);
      color: var(--white);
    }

    .header-icon {
      width: 19px;
      height: 19px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      pointer-events: none;
    }

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

    .global-add-menu {
      position: relative;
    }

    .account-menu {
      position: relative;
    }

    .account-menu > summary {
      list-style: none;
      display: inline-grid;
      place-items: center;
      width: 36px;
      height: 36px;
      border: 1px solid transparent;
      border-radius: 7px;
      color: var(--muted);
      cursor: pointer;
    }

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

    .account-menu > summary:hover,
    .account-menu[open] > summary {
      border-color: var(--forest-300);
      background: var(--forest-100);
      color: var(--accent-dark);
    }

    .account-panel {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      width: min(280px, calc(100vw - 24px));
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      box-shadow: 0 12px 32px rgba(18, 26, 34, 0.16);
    }

    .account-panel-heading {
      padding: 9px 10px 11px;
      border-bottom: 1px solid var(--line);
      margin-bottom: 6px;
    }

    .account-panel-heading b,
    .account-panel-heading span {
      display: block;
    }

    .account-panel-heading span {
      margin-top: 3px;
      color: var(--muted);
      font-size: 12px;
      overflow-wrap: anywhere;
    }

    .account-panel button {
      width: 100%;
      min-height: 38px;
      justify-content: flex-start;
      gap: 8px;
      border-color: transparent;
      background: transparent;
      color: var(--ink);
      box-shadow: none;
      text-shadow: none;
    }

    .account-panel button:hover {
      border-color: transparent;
      background: #edf7f5;
      color: var(--accent-dark);
      box-shadow: none;
    }

    .global-add-menu summary {
      list-style: none;
      border: 1px solid var(--accent-edge);
      border-radius: 8px;
      background: linear-gradient(var(--forest-700), var(--accent));
      color: var(--white);
      padding: 0;
      font-weight: 800;
      cursor: pointer;
      box-shadow: inset 0 1px 0 var(--bevel-top), inset 0 -1px 0 var(--bevel-bottom), var(--control-shadow);
      text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18);
    }

    .global-add-menu summary::-webkit-details-marker {
      display: none;
    }

    .global-add-menu[open] summary {
      background: linear-gradient(var(--accent-dark), var(--forest-950));
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22), 0 1px 1px rgba(18, 26, 34, 0.08);
    }

    .global-add-panel {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      width: min(260px, calc(100vw - 28px));
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      box-shadow: 0 12px 32px rgba(18, 26, 34, 0.14);
      padding: 8px;
      display: grid;
      gap: 6px;
    }

    .global-add-panel button {
      width: 100%;
      text-align: left;
      background: linear-gradient(#ffffff, #f4f7f9);
      color: var(--ink);
      border: 1px solid var(--line);
      padding: 9px 10px;
    }

    .global-add-panel button:hover {
      background: linear-gradient(#ffffff, #edf3f6);
    }

    main {
      min-height: 100vh;
      display: block;
    }

    main > aside {
      display: none;
    }

    aside {
      background: var(--white);
      border-right: 1px solid var(--line);
      padding: 28px;
    }

    main > section {
      width: min(1280px, 100%);
      margin: 0 auto;
      padding: 30px 28px 56px;
    }

    h1 {
      font-size: 24px;
      line-height: 1.15;
      margin: 0 0 10px;
    }

    h2 {
      font-size: 17px;
      margin: 0 0 14px;
    }

    p {
      color: var(--muted);
      line-height: 1.5;
      margin: 0 0 22px;
    }

    label {
      display: block;
      font-size: 13px;
      font-weight: 700;
      margin: 18px 0 7px;
    }

    input,
    textarea,
    select {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 10px 11px;
      font: inherit;
      background: var(--white);
      color: var(--ink);
    }

    textarea {
      min-height: 92px;
      resize: vertical;
    }

    button {
      border: 1px solid var(--accent-edge);
      border-radius: 8px;
      background: linear-gradient(var(--forest-700), var(--accent));
      color: #fff;
      font: inherit;
      font-weight: 800;
      padding: 11px 14px;
      cursor: pointer;
      box-shadow: inset 0 1px 0 var(--bevel-top), inset 0 -1px 0 var(--bevel-bottom), var(--control-shadow);
      text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18);
      transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 80ms ease;
    }

    button:hover {
      border-color: var(--accent-edge);
      background: linear-gradient(var(--forest-800), var(--accent-dark));
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -1px 0 rgba(18, 26, 34, 0.28), 0 2px 2px rgba(18, 26, 34, 0.1), 0 8px 18px rgba(18, 26, 34, 0.1);
    }

    button:active {
      transform: translateY(1px);
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.24), 0 1px 1px rgba(18, 26, 34, 0.08);
    }

    button:focus-visible,
    .global-add-menu summary:focus-visible,
    .filter-chip:focus-visible {
      outline: 3px solid rgba(25, 92, 86, 0.22);
      outline-offset: 2px;
    }

    button.digest-intent {
      outline: 3px solid rgba(25, 92, 86, 0.34);
      outline-offset: 3px;
      box-shadow: 0 0 0 6px rgba(25, 92, 86, 0.1), var(--control-shadow);
    }

    button:disabled {
      cursor: not-allowed;
      opacity: 0.58;
      transform: none;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    }

    button.secondary {
      border-color: var(--button-edge);
      background: linear-gradient(#edf4f7, var(--button-face));
      color: var(--ink);
      text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
    }

    button.secondary:hover {
      border-color: #aebec7;
      background: linear-gradient(#e6eef2, var(--button-face-dark));
    }

    button.small {
      width: 100%;
      padding: 8px 10px;
      font-size: 12px;
    }

    .button-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      padding: 7px 10px;
      border: 1px solid var(--button-edge);
      border-radius: 8px;
      background: linear-gradient(#edf4f7, var(--button-face));
      color: var(--ink);
      font-size: 12px;
      font-weight: 800;
      text-decoration: none;
      box-shadow: inset 0 1px 0 var(--bevel-top), inset 0 -1px 0 var(--bevel-bottom), var(--control-shadow);
    }

    .actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 20px;
    }

    .workspace-nav {
      display: flex;
      flex-wrap: nowrap;
      width: auto;
      min-width: 0;
      max-width: 100%;
      gap: 4px;
      margin: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      overflow-x: visible;
      justify-self: center;
      scroll-padding-inline: 8px;
      scrollbar-width: none;
    }

    .workspace-nav::-webkit-scrollbar {
      display: none;
    }

    .workspace-nav button {
      flex: 0 0 auto;
      min-height: 34px;
      padding: 8px 11px;
      background: transparent;
      color: var(--muted);
      border: 1px solid transparent;
      font-size: 12px;
      box-shadow: none;
      text-shadow: none;
    }

    @media (max-width: 1180px) {
      .tenant-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px 10px;
      }

      .workspace-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-top: 1px;
      }

      .tenant-actions {
        grid-column: 2;
        grid-row: 1;
      }
    }

    .workspace-nav button.active {
      background: #e4f4f1;
      border-color: #b8d9d5;
      color: var(--accent-dark);
      text-shadow: none;
    }

    .workspace-more-promoted {
      display: none !important;
    }

    .workspace-home-button {
      width: auto;
      min-width: 0;
      padding: 8px 11px !important;
      display: inline-flex;
    }

    .workspace-home-button .ui-label {
      display: inline;
    }

    .workspace-attention-button {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .workspace-badge {
      min-width: 18px;
      height: 18px;
      padding: 0 5px;
      border-radius: 9px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #b42b38;
      color: var(--white);
      font-size: 10px;
      line-height: 1;
      box-shadow: 0 1px 2px rgba(18, 26, 34, 0.15);
    }

    .workspace-nav button.active .workspace-badge {
      background: var(--white);
      color: var(--risk);
    }

    .workspace-more-panel {
      position: fixed;
      z-index: 80;
      width: 170px;
      padding: 7px;
      display: grid;
      gap: 5px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      box-shadow: 0 12px 30px rgba(18, 26, 34, 0.16);
    }

    .workspace-more-panel.hidden {
      display: none;
    }

    .workspace-more-panel button {
      width: 100%;
      min-height: 36px;
      padding: 8px 10px;
      text-align: left;
      justify-content: flex-start;
      border-color: transparent;
      background: transparent;
      color: var(--ink);
      font-weight: 650;
      box-shadow: none;
      text-shadow: none;
    }

    .workspace-more-panel button:hover {
      border-color: transparent;
      background: #edf7f5;
      color: var(--accent-dark);
      box-shadow: none;
      text-shadow: none;
    }

    .workspace-summary {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 14px;
      margin-bottom: 18px;
    }

    .workspace-summary h2 {
      margin-bottom: 6px;
    }

    .side-details {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      margin: 18px 0;
      overflow: hidden;
    }

    .side-details summary {
      cursor: pointer;
      padding: 12px 14px;
      font-weight: 800;
      list-style-position: inside;
    }

    .side-details-body {
      border-top: 1px solid var(--line);
      background: var(--white);
      padding: 0 14px 14px;
    }

    .home-dashboard {
      max-width: 1240px;
      margin: 0 auto;
    }

    .home-hero {
      margin-bottom: 16px;
    }

    .home-hero h1 {
      font-size: 22px;
      margin-bottom: 4px;
    }

    .home-status {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0;
      margin-bottom: 18px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--white);
    }

    .home-metric {
      min-height: 92px;
      border: 0;
      border-left: 1px solid var(--line);
      border-radius: 0;
      background: var(--white);
      color: var(--ink);
      padding: 14px;
      text-align: left;
      display: grid;
      align-content: center;
      gap: 5px;
      box-shadow: none;
      text-shadow: none;
    }

    .home-metric:first-child {
      border-left: 0;
    }

    .home-metric:hover {
      border-color: var(--forest-300);
      background: var(--forest-50);
      color: var(--ink);
      box-shadow: 0 2px 8px rgba(25, 92, 86, 0.1);
      text-shadow: none;
    }

    .home-metric b {
      font-size: 26px;
      line-height: 1;
    }

    .home-metric span {
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    .home-readiness {
      margin: 0 0 12px;
      padding: 0;
      border: 1px solid var(--line);
      border-left: 5px solid var(--accent);
      border-radius: 6px;
      background: var(--white);
      overflow: hidden;
    }

    .home-readiness-heading,
    .home-readiness-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 14px 16px;
    }

    .home-readiness-heading { background: #f4faf9; }

    .home-readiness-heading h2 {
      margin: 2px 0 3px;
      font-size: 17px;
    }

    .home-readiness-heading p {
      margin: 0;
      font-size: 13px;
    }

    .home-readiness-score {
      min-width: 74px;
      text-align: right;
    }

    .home-readiness-score strong,
    .home-readiness-score span {
      display: block;
    }

    .home-readiness-score strong {
      color: var(--accent-dark);
      font-size: 24px;
      line-height: 1;
    }

    .home-readiness-score span {
      margin-top: 3px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 750;
      text-transform: uppercase;
    }

    .home-readiness-steps {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      border-bottom: 1px solid var(--line);
    }

    .home-readiness-step {
      min-width: 0;
      display: grid;
      grid-template-columns: 12px minmax(0, 1fr);
      gap: 8px;
      align-items: center;
      padding: 12px 14px;
      border-right: 1px solid var(--line);
    }

    .home-readiness-step:last-child {
      border-right: 0;
    }

    .home-readiness-step.current {
      background: #f7fbfb;
    }

    .home-readiness-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #c9d3d8;
      box-shadow: 0 0 0 3px #edf1f3;
    }

    .home-readiness-step.complete .home-readiness-dot {
      background: var(--ok);
      box-shadow: 0 0 0 3px #dff2e8;
    }

    .home-readiness-step.current .home-readiness-dot {
      background: #d68a17;
      box-shadow: 0 0 0 3px #fff0d4;
    }

    .home-readiness-step b,
    .home-readiness-step small {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .home-readiness-step b {
      font-size: 12px;
    }

    .home-readiness-step small {
      margin-top: 2px;
      color: var(--muted);
      font-size: 11px;
    }

    .home-readiness-footer {
      align-items: center;
      padding-top: 12px;
      padding-bottom: 12px;
      border-top: 1px solid var(--line);
    }

    .home-readiness-footer .meta {
      max-width: 780px;
      line-height: 1.45;
    }

    .home-readiness-footer button {
      width: auto;
      min-width: 148px;
      flex: 0 0 auto;
    }

    .home-readiness.complete {
      border-left-color: var(--ok);
    }

    .home-readiness-details { border-top: 1px solid var(--line); }
    .home-readiness-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; cursor: pointer; color: var(--ink); font-size: 12px; font-weight: 800; list-style: none; }
    .home-readiness-details > summary::-webkit-details-marker { display: none; }
    .home-readiness-details > summary > span:last-child { color: var(--muted); font-weight: 650; }
    .home-readiness-details > summary > span:last-child::after { display: inline-block; margin-left: 8px; content: "›"; transform: rotate(90deg); transition: transform .15s ease; }
    .home-readiness-details[open] > summary > span:last-child::after { transform: rotate(-90deg); }
    .home-readiness-details .home-readiness-steps { border-top: 1px solid var(--line); border-bottom: 0; }

    .home-overview-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
      gap: 12px;
      align-items: start;
      margin-bottom: 12px;
    }

    .home-panel {
      width: auto;
      margin: 0;
      padding: 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      overflow: hidden;
    }

    .home-panel-heading {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      padding: 14px;
      border-bottom: 1px solid var(--line);
      background: var(--panel);
    }

    .home-panel-heading h2 {
      margin: 0 0 3px;
      font-size: 17px;
    }

    .home-panel-heading p {
      margin: 0;
      font-size: 13px;
    }

    .home-panel-heading button {
      width: auto;
      flex: 0 0 auto;
    }

    .home-priority-list,
    .home-recent-list {
      display: grid;
    }

    .home-priority-list .attention-item {
      min-height: 0;
      padding: 11px 14px;
      font-size: 14px;
      line-height: 1.3;
    }

    .home-priority-list .attention-item b {
      font-size: 14px;
    }

    .home-priority-list .attention-item .meta {
      margin-top: 2px;
      font-size: 12px;
      line-height: 1.35;
    }

    .home-action-origin { display: block; margin-top: 5px; color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .02em; }

    .home-priority-list .attention-item:hover {
      border-color: transparent;
      border-bottom-color: var(--line);
      background: var(--panel);
      box-shadow: none;
    }

    .home-priority-list .attention-item:last-child:hover {
      border-bottom-color: transparent;
    }

    .home-side-signals {
      display: grid;
      gap: 12px;
    }

    .home-signal {
      width: 100%;
      min-height: 104px;
      padding: 15px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      color: var(--ink);
      text-align: left;
      display: grid;
      align-content: start;
      gap: 6px;
      box-shadow: none;
      text-shadow: none;
    }

    .home-signal:hover {
      border-color: var(--forest-300);
      background: var(--forest-50);
      color: var(--ink);
      box-shadow: 0 2px 8px rgba(25, 92, 86, 0.1);
      text-shadow: none;
    }

    .home-signal b {
      font-size: 16px;
    }

    .home-signal strong {
      font-size: 26px;
      line-height: 1;
    }

    .home-signal span {
      color: var(--muted);
      font-size: 13px;
      font-weight: 600;
      line-height: 1.4;
    }

    .home-lower-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
      gap: 12px;
      align-items: start;
    }

    .home-recent-item {
      padding: 11px 14px;
      border-bottom: 1px solid var(--line);
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      font-size: 14px;
    }

    .home-recent-item:last-child {
      border-bottom: 0;
    }

    .home-recent-copy {
      min-width: 0;
      display: grid;
      gap: 2px;
    }

    .home-recent-copy b,
    .home-recent-copy span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .home-recent-meta {
      font-size: 12px;
      text-align: right;
      white-space: nowrap;
    }

    .home-quick-actions {
      padding: 12px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .home-quick-actions button {
      width: 100%;
      min-height: 42px;
    }

    @media (max-width: 760px) {
      .home-status {
        grid-template-columns: 1fr 1fr;
      }

      .home-overview-grid,
      .home-lower-grid {
        grid-template-columns: 1fr;
      }

      .home-readiness-heading,
      .home-readiness-footer {
        align-items: stretch;
        flex-direction: column;
      }

      .home-readiness-score {
        text-align: left;
      }

      .home-readiness-steps {
        grid-template-columns: 1fr;
      }

      .home-readiness-step {
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      .home-readiness-step:last-child {
        border-bottom: 0;
      }

      .home-readiness-step b,
      .home-readiness-step small {
        white-space: normal;
      }

      .home-readiness-footer button {
        width: 100%;
      }

      .home-priority-list .attention-item {
        grid-template-columns: 1fr;
      }

      .home-priority-list .attention-item > .pill {
        justify-self: start;
      }

      .home-recent-item {
        grid-template-columns: 1fr;
        gap: 3px;
      }

      .home-recent-meta {
        text-align: left;
      }
    }

    .side-workspace.hidden,
    .main-workspace.hidden {
      display: none;
    }

    .side-workspace > h2:first-child {
      margin-top: 18px !important;
    }

    .side-tools {
      display: none;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      margin: 0 0 16px;
      overflow: hidden;
    }

    body.show-related-tools .side-tools {
      display: block;
    }

    .side-tools summary {
      cursor: pointer;
      padding: 12px 14px;
      font-weight: 800;
      list-style-position: inside;
      background: var(--panel);
    }

    .side-tools-body {
      padding: 14px;
      border-top: 1px solid var(--line);
    }

    .side-tools-body > * {
      max-width: 760px;
    }

    .side-tools.related-tools-compact {
      width: min(960px, 100%);
      margin: 0 auto 18px;
    }

    .related-tools-compact > summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 11px 13px;
      list-style: none;
    }

    .related-tools-compact > summary::-webkit-details-marker,
    .related-tool-card > summary::-webkit-details-marker {
      display: none;
    }

    .related-tools-compact > summary > span:first-child,
    .related-tool-card > summary > span:first-child {
      min-width: 0;
    }

    .related-tools-compact > summary b,
    .related-tools-compact > summary small,
    .related-tool-card > summary b,
    .related-tool-card > summary small {
      display: block;
    }
    .related-tools-compact > summary small,
    .related-tool-card > summary small {
      margin-top: 2px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 600;
    }

    .related-tools-count,
    .related-tool-open {
      flex: 0 0 auto;
      color: var(--forest-800);
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .related-tools-compact .side-tools-body {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      padding: 10px;
      background: var(--panel);
    }

    .related-tools-compact .side-tools-body > * {
      max-width: none;
    }

    .related-tool-card {
      min-width: 0;
      border: 1px solid var(--line);
      border-radius: 5px;
      background: var(--white);
      overflow: hidden;
    }

    .related-tool-card[open] {
      grid-column: 1 / -1;
      border-color: var(--forest-300);
    }

    .related-tool-card > summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 58px;
      padding: 10px 12px;
      cursor: pointer;
      list-style: none;
    }

    .related-tool-card > summary:hover {
      background: var(--forest-50);
    }

    .related-tool-open {
      font-size: 0;
    }

    .related-tool-open::after {
      content: "Open";
      font-size: 11px;
    }

    .related-tool-card[open] .related-tool-open::after {
      content: "Close";
    }

    .related-tool-card-body {
      padding: 2px 12px 12px;
      border-top: 1px solid var(--line);
    }

    .related-tool-card-body > .actions {
      gap: 6px;
      margin-top: 9px;
    }

    .related-tool-card-body > .actions button {
      min-height: 34px;
      padding: 7px 10px;
      box-shadow: none;
      font-size: 12px;
    }

    .related-tool-card-body > .note {
      margin-top: 9px;
      padding: 9px 10px;
      font-size: 12px;
    }

    .related-tool-card-body > label {
      margin-top: 12px;
    }

    @media (max-width: 760px) {
      .related-tools-compact .side-tools-body {
        grid-template-columns: 1fr;
      }

      .related-tool-card[open] {
        grid-column: auto;
      }
    }

    .owned-flow {
      display: grid;
      gap: 10px;
      margin-top: 18px;
    }

    .owned-flow .side-details {
      margin: 0;
    }

    .owned-review {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 12px;
      display: grid;
      gap: 8px;
    }

    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .form-grid label {
      margin-top: 12px;
    }

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

    .note {
      margin-top: 22px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .mapping-panel {
      display: none;
      margin-top: 14px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
    }

    .mapping-panel.active {
      display: block;
      position: fixed;
      z-index: 120;
      inset: 50% auto auto 50%;
      width: min(880px, calc(100vw - 28px));
      max-height: calc(100vh - 28px);
      margin: 0;
      padding: 18px;
      overflow-y: auto;
      transform: translate(-50%, -50%);
      background: var(--white);
      box-shadow: 0 0 0 100vmax rgba(24, 32, 40, 0.32), 0 20px 48px rgba(24, 32, 40, 0.22);
    }

    body.csv-mapping-open {
      overflow: hidden;
    }

    .euipo-template-panel {
      display: grid;
      gap: 12px;
      margin: 12px 0 4px;
      padding: 12px 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .euipo-template-row {
      display: grid;
      grid-template-columns: auto minmax(180px, 1fr) auto minmax(140px, .55fr);
      gap: 8px;
      align-items: center;
    }

    .euipo-template-row:first-child {
      grid-template-columns: auto minmax(220px, 1fr) auto;
    }

    .euipo-template-row label,
    .euipo-template-panel .field-label {
      margin: 0;
      font-size: 12px;
      font-weight: 800;
      color: var(--muted);
    }

    .euipo-template-watches {
      display: flex;
      flex-wrap: wrap;
      gap: 7px 14px;
      margin-top: 6px;
    }

    .euipo-template-watches label,
    .euipo-template-options label {
      display: inline-flex;
      gap: 7px;
      align-items: center;
      color: var(--ink);
      font-size: 13px;
      font-weight: 600;
    }

    .euipo-template-watches input,
    .euipo-template-options input {
      width: auto;
      margin: 0;
    }

    .euipo-template-options {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 22px;
      align-items: center;
    }

    .euipo-template-options select {
      width: auto;
      min-width: 180px;
    }

    .euipo-preflight {
      display: grid;
      gap: 10px;
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid var(--line);
    }

    .euipo-preflight-empty,
    .euipo-preflight-message {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .euipo-preflight-stats {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      border: 1px solid var(--line);
      border-radius: 6px;
      overflow: hidden;
    }

    .euipo-preflight-stat {
      padding: 10px;
      border-right: 1px solid var(--line);
      background: var(--white);
    }

    .euipo-preflight-stat:last-child {
      border-right: 0;
    }

    .euipo-preflight-stat b,
    .euipo-preflight-stat span {
      display: block;
    }

    .euipo-preflight-stat b {
      font-size: 20px;
    }

    .euipo-preflight-stat span {
      margin-top: 2px;
      color: var(--muted);
      font-size: 12px;
    }

    .euipo-preflight-warnings {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 14px;
      color: var(--muted);
      font-size: 12px;
    }

    .euipo-preflight-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      font-size: 12px;
    }

    .euipo-preflight-table th,
    .euipo-preflight-table td {
      padding: 7px 8px;
      border-bottom: 1px solid var(--line);
      text-align: left;
      vertical-align: top;
      overflow-wrap: anywhere;
    }

    .euipo-preflight-table th {
      color: var(--muted);
      font-size: 11px;
      text-transform: uppercase;
    }

    .euipo-preflight-table tr.invalid td {
      background: #fff1f2;
    }

    .euipo-template-summary {
      display: grid;
      margin-top: 10px;
      border-top: 1px solid var(--line);
    }

    .euipo-template-summary-row {
      display: grid;
      grid-template-columns: minmax(160px, 1fr) minmax(100px, .5fr) minmax(180px, 1.2fr) auto;
      gap: 12px;
      align-items: center;
      min-height: 42px;
      border-bottom: 1px solid var(--line);
      font-size: 13px;
    }

    .euipo-template-summary-row span {
      color: var(--muted);
    }

    @media (max-width: 720px) {
      .euipo-template-row,
      .euipo-template-row:first-child {
        grid-template-columns: minmax(0, 1fr);
      }

      .euipo-template-row label {
        margin-top: 4px;
      }

      .euipo-template-summary-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 10px;
        padding: 9px 0;
      }

      .euipo-template-summary-row span:last-of-type {
        grid-column: 1;
      }

      .euipo-template-summary-row button {
        grid-column: 2;
        grid-row: 1 / span 2;
      }

      .euipo-preflight-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .euipo-preflight-stat:nth-child(2) {
        border-right: 0;
      }

      .euipo-preflight-stat:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
      }

      .euipo-preflight-table th:nth-child(3),
      .euipo-preflight-table td:nth-child(3) {
        display: none;
      }
    }

    .preview-panel {
      display: none;
      margin-top: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      overflow: hidden;
    }

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

    .preview-row {
      display: grid;
      grid-template-columns: 24px minmax(0, 1fr);
      gap: 9px;
      padding: 10px;
      border-bottom: 1px solid var(--line);
    }

    .preview-row:last-child {
      border-bottom: 0;
    }

    .preview-row input {
      width: auto;
      margin-top: 4px;
    }

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

    .check-grid label {
      display: flex;
      align-items: center;
      gap: 7px;
      margin: 0;
      padding: 9px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      font-weight: 700;
    }

    .check-grid input {
      width: auto;
    }

    .fee-planner-tool {
      display: grid;
      grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
      gap: 9px;
      margin-top: 10px;
    }

    .fee-planner-section {
      min-width: 0;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 5px;
      background: var(--white);
    }

    .fee-planner-result-section {
      border-color: var(--forest-300);
      background: var(--forest-50);
    }

    .fee-planner-heading {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-items: center;
      gap: 9px;
    }

    .fee-planner-heading h3,
    .fee-planner-heading small {
      display: block;
    }

    .fee-planner-heading h3 {
      margin: 0;
      color: var(--ink);
      font-size: 13px;
    }

    .fee-planner-heading small {
      margin-top: 2px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.35;
    }

    .fee-planner-step {
      display: grid;
      width: 24px;
      height: 24px;
      place-items: center;
      border: 1px solid var(--forest-300);
      border-radius: 4px;
      background: var(--forest-50);
      color: var(--forest-800);
      font-size: 11px;
      font-weight: 900;
    }

    .fee-planner-fields {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 9px;
      margin-top: 12px;
    }

    .fee-planner-field-wide {
      grid-column: 1 / -1;
    }

    .fee-planner-fields label {
      margin: 0 0 5px;
      color: var(--muted);
      font-size: 11px;
    }

    .fee-planner-fields input,
    .fee-planner-fields select {
      min-height: 36px;
      padding: 8px 9px;
      border-radius: 4px;
      font-size: 12px;
    }

    .fee-planner-options {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 6px;
      margin-top: 9px;
    }

    .fee-planner-options label {
      min-height: 36px;
      padding: 7px 8px;
      border-radius: 4px;
      font-size: 11px;
    }

    .fee-output {
      display: grid;
      gap: 8px;
      margin-top: 12px;
    }

    .fee-reference-basis {
      display: grid;
      gap: 2px;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--forest-300);
    }

    .fee-reference-basis > span {
      color: var(--forest-800);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .fee-reference-basis b {
      font-size: 12px;
    }

    .fee-reference-basis small {
      color: var(--muted);
      font-size: 10px;
      line-height: 1.35;
    }

    .fee-total-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 7px;
    }

    .fee-total-card {
      display: grid;
      gap: 3px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 4px;
      background: var(--white);
    }

    .fee-total-card.primary {
      border-color: var(--forest-700);
      background: var(--forest-100);
    }

    .fee-total-card > span {
      color: var(--muted);
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .fee-total-card b {
      color: var(--ink);
      font-size: 18px;
      letter-spacing: -0.02em;
    }

    .fee-total-card small {
      color: var(--muted);
      font-size: 10px;
    }

    .fee-planning-note {
      display: grid;
      gap: 2px;
      padding: 8px 9px;
      border-left: 3px solid var(--forest-700);
      background: var(--white);
    }

    .fee-planning-note b {
      font-size: 11px;
    }

    .fee-planning-note span {
      color: var(--muted);
      font-size: 10px;
      line-height: 1.35;
    }

    .fee-breakdown {
      border: 1px solid var(--line);
      border-radius: 4px;
      background: var(--white);
      overflow: hidden;
    }

    .fee-breakdown > summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 8px 9px;
      cursor: pointer;
      font-size: 11px;
      font-weight: 800;
    }

    .fee-breakdown > summary small {
      color: var(--muted);
      font-size: 10px;
      font-weight: 600;
    }

    .fee-breakdown-body {
      padding: 0 9px 4px;
      border-top: 1px solid var(--line);
    }

    .fee-line {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 2px 8px;
      padding: 8px 0;
      border-bottom: 1px solid var(--line);
    }

    .fee-line:last-child {
      border-bottom: 0;
    }

    .fee-line b,
    .fee-line strong {
      font-size: 11px;
    }

    .fee-line strong {
      color: var(--forest-800);
    }

    .fee-line span {
      grid-column: 1 / -1;
      color: var(--muted);
      font-size: 10px;
      line-height: 1.35;
    }

    .fee-planner-boundary {
      margin-top: 8px;
      padding: 8px 9px;
      border-radius: 4px;
      background: var(--white);
      font-size: 10px;
      line-height: 1.4;
    }

    @media (max-width: 920px) {
      .fee-planner-tool {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 520px) {
      .fee-planner-fields,
      .fee-planner-options,
      .fee-total-grid {
        grid-template-columns: 1fr;
      }

      .fee-planner-field-wide {
        grid-column: auto;
      }
    }

    .evidence-capture-tool {
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 5px;
      background: var(--white);
    }

    .evidence-capture-heading {
      display: grid;
      gap: 2px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--line);
    }

    .evidence-capture-heading .eyebrow {
      color: var(--forest-800);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .evidence-capture-heading h3 {
      margin: 0;
      color: var(--ink);
      font-size: 14px;
    }

    .evidence-capture-heading small {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.35;
    }

    .evidence-capture-target {
      margin: 10px 0 0;
      padding: 9px 10px;
      border: 1px solid var(--line);
      border-left: 3px solid var(--button-edge);
      border-radius: 4px;
      background: var(--panel);
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }

    .evidence-capture-target.has-target {
      border-color: var(--forest-300);
      border-left-color: var(--forest-700);
      background: var(--forest-50);
      color: var(--forest-900);
    }

    .evidence-capture-fields {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 9px;
      margin-top: 11px;
    }

    .evidence-capture-field-wide {
      grid-column: 1 / -1;
    }

    .evidence-capture-fields label {
      margin: 0 0 5px;
      color: var(--muted);
      font-size: 11px;
    }

    .evidence-capture-fields input,
    .evidence-capture-fields select,
    .evidence-capture-fields textarea {
      min-height: 36px;
      padding: 8px 9px;
      border-radius: 4px;
      font-size: 12px;
    }

    .evidence-capture-fields textarea {
      min-height: 68px;
    }

    .evidence-capture-actions {
      gap: 6px;
      margin-top: 10px;
    }

    .evidence-capture-actions button {
      min-height: 34px;
      padding: 7px 10px;
      border-radius: 4px;
      box-shadow: none;
      font-size: 12px;
    }

    .evidence-capture-tool > .saved {
      margin-top: 7px;
    }

    .evidence-capture-boundary {
      margin: 9px 0 0;
      padding: 8px 9px;
      border-radius: 4px;
      background: var(--forest-50);
      font-size: 10px;
      line-height: 1.4;
    }

    @media (max-width: 520px) {
      .evidence-capture-fields {
        grid-template-columns: 1fr;
      }

      .evidence-capture-field-wide {
        grid-column: auto;
      }

      .evidence-capture-actions button {
        flex: 1;
      }
    }

    .decision-output {
      display: grid;
      gap: 10px;
      margin-top: 12px;
    }

    .decision-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 12px;
    }

    .decision-card strong {
      display: block;
      margin: 8px 0 4px;
    }

    .decision-card ul {
      margin: 7px 0 0;
      padding-left: 18px;
    }

    .decision-card li {
      color: var(--ink);
      font-size: 13px;
      line-height: 1.4;
      margin-bottom: 4px;
    }

    .decision-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
    }

    .clearance-workflow {
      display: grid;
      gap: 14px;
      margin-bottom: 18px;
    }

    .clearance-stage-tabs {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 2px;
      scrollbar-width: thin;
    }

    .clearance-stage-tabs button {
      width: 104px;
      min-width: 104px;
      flex: 0 0 auto;
      border-color: var(--line);
      background: linear-gradient(#ffffff, #f4f7f9);
      color: var(--ink);
      text-shadow: none;
    }

    .clearance-stage-tabs button::before {
      content: attr(data-step);
      display: inline-grid;
      place-items: center;
      width: 20px;
      height: 20px;
      margin-right: 7px;
      border: 1px solid currentColor;
      border-radius: 50%;
      font-size: 11px;
      line-height: 1;
    }

    .clearance-stage-tabs button.active {
      border-color: var(--accent-edge);
      background: linear-gradient(var(--forest-700), var(--accent));
      color: var(--white);
    }

    .clearance-stage-view {
      min-width: 0;
    }

    .clearance-flow-grid {
      display: grid;
      grid-template-columns: minmax(280px, 1.1fr) minmax(260px, .9fr);
      gap: 12px;
      align-items: start;
    }

    .clearance-flow-grid.setup-only {
      grid-template-columns: minmax(280px, 720px);
    }

    .clearance-step-pending {
      display: none;
    }

    .clearance-step {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 14px;
      min-width: 0;
    }

    .clearance-step h3 {
      margin: 0 0 6px;
      font-size: 16px;
    }

    .clearance-step p {
      margin-bottom: 12px;
    }

    .clearance-setup-fields {
      display: grid;
      gap: 10px;
    }

    .clearance-setup-fields label {
      margin-top: 0;
    }

    .clearance-action-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 8px;
      margin-top: 12px;
    }

    .clearance-action-grid button {
      min-height: 42px;
    }

    .clearance-work-products {
      margin-top: 16px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 0 14px 14px;
    }

    .clearance-review-next {
      margin-top: 16px;
      border-left: 4px solid var(--accent);
    }

    .clearance-results-actions {
      display: flex;
      flex: 0 0 auto;
      flex-wrap: nowrap;
      justify-content: flex-end;
      gap: 8px;
    }

    .clearance-results-actions button {
      width: auto;
      white-space: nowrap;
    }

    .clearance-refresh-summary {
      min-height: 18px;
      margin: -8px 0 14px;
    }

    .clearance-results-summary {
      display: grid;
      gap: 3px;
    }

    .clearance-results-summary b {
      color: var(--ink);
      font-size: 15px;
    }

    .clearance-result-disclosure {
      margin: 0 0 14px;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: rgba(255, 255, 255, .72);
    }

    .clearance-result-disclosure > summary {
      min-height: 42px;
      padding: 11px 13px;
      cursor: pointer;
      color: var(--accent-dark);
      font-size: 12px;
      font-weight: 800;
    }

    .clearance-search-scope-body {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr);
      gap: 16px;
      padding: 0 13px 13px;
      border-top: 1px solid var(--line);
    }

    .clearance-scope-block {
      min-width: 0;
      padding-top: 12px;
    }

    .clearance-scope-block > span {
      display: block;
      margin-bottom: 7px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .clearance-source-links {
      display: flex;
      flex-wrap: wrap;
      gap: 7px 12px;
      font-size: 12px;
    }

    .clearance-source-details .adapter-status {
      margin: 0;
      padding: 0 13px 13px;
      border-top: 1px solid var(--line);
    }

    .clearance-source-details .adapter-card {
      margin-top: 12px;
      background: var(--white);
    }

    .clearance-work-products > summary {
      cursor: pointer;
      padding: 13px 0 0;
      font-weight: 800;
    }

    .clearance-work-products-body > .section-heading {
      margin-top: 18px;
    }

    .clearance-work-products-body > .panel .empty {
      padding: 18px 14px;
    }

    .link-grid {
      display: grid;
      gap: 8px;
      margin-top: 12px;
    }

    .link-grid a {
      display: block;
      padding: 9px 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      color: var(--accent-dark);
      font-weight: 800;
      text-decoration: none;
    }

    .hit-list {
      display: grid;
      gap: 8px;
      margin-top: 12px;
    }

    .hit-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 10px;
    }

    .hit-card .actions {
      margin-top: 10px;
    }

    .common-law-tool {
      display: grid;
      gap: 0;
    }

    .common-law-step {
      padding: 14px 0;
      border-top: 1px solid var(--line);
    }

    .common-law-step:first-child {
      border-top: 0;
    }

    .common-law-step-heading {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 9px;
    }

    .common-law-step-heading h3,
    .common-law-step-heading small {
      display: block;
    }

    .common-law-step-heading h3 {
      margin: 0;
      color: var(--ink);
      font-size: 13px;
    }

    .common-law-step-heading small {
      margin-top: 2px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.35;
    }

    .common-law-step-number {
      display: grid;
      width: 24px;
      height: 24px;
      place-items: center;
      border: 1px solid var(--forest-300);
      border-radius: 4px;
      background: var(--forest-50);
      color: var(--forest-800);
      font-size: 11px;
      font-weight: 900;
    }

    .common-law-step-heading button,
    .common-law-actions button {
      min-height: 32px;
      padding: 6px 9px;
      border-radius: 4px;
      box-shadow: none;
      font-size: 11px;
    }

    .common-law-tool .link-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 6px;
      margin: 10px 0 0 33px;
    }

    .common-law-tool .link-grid a {
      padding: 7px 8px;
      border-radius: 4px;
      background: var(--white);
      font-size: 11px;
    }

    .common-law-capture-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 9px;
      margin: 12px 0 0 33px;
    }

    .common-law-capture-grid label,
    .common-law-tool > .common-law-step > label {
      margin: 0 0 5px;
      color: var(--muted);
      font-size: 11px;
    }

    .common-law-capture-grid input,
    .common-law-capture-grid select,
    .common-law-tool textarea {
      min-height: 36px;
      padding: 8px 9px;
      border-radius: 4px;
      font-size: 12px;
    }

    .common-law-field-wide {
      grid-column: 1 / -1;
    }

    .common-law-tool > .common-law-step > label,
    .common-law-tool textarea,
    .common-law-capture-preview,
    .common-law-actions,
    .common-law-step > .saved {
      width: calc(100% - 33px);
      margin-left: 33px;
    }

    .common-law-tool textarea {
      min-height: 68px;
    }

    .common-law-tool > .common-law-step > label {
      margin-top: 10px;
    }

    .common-law-actions {
      gap: 6px;
      margin-top: 9px;
    }

    .common-law-capture-preview,
    .common-law-evidence-note {
      margin-top: 9px;
      padding: 8px 9px;
      border-radius: 4px;
      font-size: 11px;
    }

    .common-law-tool .hit-list {
      margin: 10px 0 0 33px;
    }

    .common-law-tool .hit-card {
      padding: 9px;
      border-radius: 4px;
      background: var(--white);
    }

    .common-law-evidence-note {
      width: calc(100% - 33px);
      margin-left: 33px;
    }

    @media (max-width: 820px) {
      .common-law-tool .link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 560px) {
      .common-law-step-heading {
        grid-template-columns: auto minmax(0, 1fr);
      }

      .common-law-step-heading button {
        grid-column: 2;
        justify-self: start;
      }

      .common-law-tool .link-grid,
      .common-law-capture-grid {
        grid-template-columns: 1fr;
      }

      .common-law-field-wide {
        grid-column: auto;
      }
    }

    .refresh-history {
      margin-top: 8px;
      color: var(--muted);
      font-size: 12px;
    }

    .refresh-history summary {
      cursor: pointer;
      color: var(--accent-dark);
      font-weight: 800;
    }

    .refresh-history ul {
      margin: 6px 0 0;
      padding-left: 18px;
    }

    .refresh-history li {
      margin-bottom: 4px;
      line-height: 1.35;
    }

    .mapping-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .mapping-grid label {
      margin-top: 8px;
    }

    .saved {
      color: var(--ok);
      font-weight: 800;
      min-height: 18px;
      margin-top: 10px;
    }

    .adapter-status {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 18px;
    }

    .adapter-card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 12px;
      min-height: 74px;
    }

    .adapter-card.complete { border-left: 4px solid var(--success); }
    .adapter-card.incomplete { border-left: 4px solid var(--warn); }
    .adapter-card.refreshing { border-left: 4px solid var(--accent); background: #f2faf8; }

    .results-material-empty {
      display: grid;
      gap: 5px;
      grid-column: 1 / -1;
      min-height: 100px;
      align-content: center;
      border-left: 4px solid var(--success);
    }

    .index-source-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 10px;
      margin: 12px 0;
    }

    .index-source-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 12px;
      display: grid;
      gap: 8px;
    }

    .index-source-row {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      border-top: 1px solid var(--line);
      padding-top: 8px;
      color: var(--muted);
      font-size: 13px;
    }

    .index-source-row b {
      color: var(--ink);
    }

    .settings-panel-heading {
      display: grid;
      gap: 12px;
      margin: 0 0 14px;
      justify-content: start;
      justify-items: start;
      align-items: start;
    }

    .settings-panel-heading .calendar-actions {
      justify-content: flex-start;
      width: 100%;
    }

    .settings-panel-heading .calendar-actions button {
      flex: 0 0 auto;
      min-width: 170px;
      width: auto;
    }

    .settings-panel-heading p {
      max-width: 760px;
      line-height: 1.4;
    }

    #registrySourcesPanel {
      padding: 0;
      display: grid;
      gap: 18px;
      border: 0;
      background: transparent;
      box-shadow: none;
    }

    .settings-connections-nav {
      display: flex;
      gap: 22px;
      overflow-x: auto;
      border-bottom: 1px solid var(--line);
      scrollbar-width: none;
    }

    .settings-connections-nav::-webkit-scrollbar { display: none; }

    .settings-connections-nav button {
      display: inline-flex;
      flex: 0 0 auto;
      align-items: center;
      gap: 8px;
      width: auto;
      min-height: 44px;
      padding: 8px 0 10px;
      border: 0;
      border-bottom: 3px solid transparent;
      border-radius: 0;
      background: transparent;
      color: var(--muted);
      box-shadow: none;
      text-shadow: none;
    }

    .settings-connections-nav button:hover,
    .settings-connections-nav button.active {
      border-bottom-color: var(--accent);
      background: transparent;
      color: var(--ink);
      box-shadow: none;
      transform: none;
    }

    .settings-connections-summary {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
    }

    .settings-connections-summary > div {
      display: grid;
      gap: 3px;
      padding: 15px 18px;
      border-left: 1px solid var(--line);
    }

    .settings-connections-summary > div:first-child { border-left: 0; }
    .settings-connections-summary span { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
    .settings-connections-summary b { font-size: 1.25rem; }

    .settings-connections-panel,
    .settings-connections-list { display: grid; gap: 12px; }
    .settings-connections-panel.hidden { display: none; }
    .settings-connections-heading { margin: 0 0 2px; }
    .settings-connections-heading h3 { margin: 0; }

    .settings-connections-list > #indexSourcesDashboard {
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }

    .settings-connections-list > .registry-import-card {
      gap: 0;
      padding: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

    .settings-connections-list > .registry-import-card > summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 58px;
      padding: 15px 18px;
      border: 0;
      font-size: 15px;
    }

    .settings-connections-list > .registry-import-card[open] { gap: 12px; padding-bottom: 18px; }
    .settings-connections-list > .registry-import-card[open] > summary { border-bottom: 1px solid var(--line); }
    .settings-connections-list > .registry-import-card > :not(summary) { margin-right: 18px; margin-left: 18px; }

    .connection-card-state {
      margin-left: auto;
      color: var(--muted);
      font-size: 12px;
      font-weight: 750;
    }

    .connection-card-state.ready { color: var(--forest-800); }
    .connection-card-state.setup { color: #966018; }

    .registry-import-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 12px;
      display: grid;
      gap: 10px;
      max-width: none;
    }

    .settings-connections-panel[data-connection-panel="cloudflare"] .settings-connections-list {
      gap: 12px;
    }

    .settings-connections-panel[data-connection-panel="cloudflare"] .cloudflare-service {
      padding: 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      gap: 0;
    }

    .settings-connections-panel[data-connection-panel="cloudflare"] .cloudflare-service[open] { gap: 12px; padding-bottom: 18px; }

    .settings-connections-panel[data-connection-panel="cloudflare"] .cloudflare-service > :not(summary) { margin-right: 18px; margin-left: 18px; }

    .settings-connections-panel[data-connection-panel="cloudflare"] .cloudflare-service > summary,
    .settings-connections-panel[data-connection-panel="cloudflare"] .cloudflare-service[open] > summary {
      min-height: 58px;
      padding: 15px 18px;
      border: 0;
      font-size: 16px;
    }

    .settings-connections-panel[data-connection-panel="cloudflare"] .cloudflare-service[open] > summary { border-bottom: 1px solid var(--line); }

    .cloudflare-service-summary,
    .cloudflare-service-state,
    .cloudflare-operational-details > summary {
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .cloudflare-service-summary {
      justify-content: space-between;
      width: calc(100% - 24px);
    }

    .cloudflare-service-state {
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .cloudflare-service-state.connected { color: var(--forest-800); }
    .cloudflare-service-state.error { color: var(--danger); }

    .settings-connections-panel[data-connection-panel="cloudflare"] .settings-panel-heading {
      align-items: start;
      gap: 14px;
    }

    .settings-connections-panel[data-connection-panel="cloudflare"] .settings-panel-heading p {
      max-width: 780px;
      color: var(--muted);
    }

    .settings-connections-panel[data-connection-panel="cloudflare"] .calendar-actions {
      flex: 0 0 auto;
      gap: 7px;
    }

    .settings-connections-panel[data-connection-panel="cloudflare"] .calendar-actions button {
      min-height: 36px;
      padding: 7px 10px;
      font-size: 13px;
    }

    .settings-connections-panel[data-connection-panel="cloudflare"] .registry-fields {
      grid-template-columns: repeat(2, minmax(240px, 1fr));
      max-width: 860px;
    }

    .cloudflare-operational-details {
      border-top: 1px solid var(--line);
    }

    .cloudflare-operational-details > summary {
      justify-content: space-between;
      min-height: 44px;
      padding: 10px 2px;
      cursor: pointer;
      font-weight: 750;
      list-style: none;
    }

    .cloudflare-operational-details > summary::-webkit-details-marker { display: none; }
    .cloudflare-operational-details > summary::after {
      content: "+";
      color: var(--accent);
      margin-left: auto;
    }
    .cloudflare-operational-details[open] > summary::after { content: "-"; }

    .radar-capability-section {
      display: grid;
      gap: 10px;
      padding-top: 0;
    }

    .radar-capability-heading {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 16px;
    }

    .radar-capability-heading h3,
    .radar-capability-heading p { margin: 0; }
    .radar-capability-heading p { margin-top: 3px; color: var(--muted); }

    .radar-capability-matrix { border-top: 1px solid var(--line); }

    .radar-capability-row {
      display: grid;
      grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1.4fr) minmax(140px, 0.7fr);
      align-items: center;
      gap: 16px;
      min-height: 58px;
      padding: 9px 2px;
      border-bottom: 1px solid var(--line);
    }

    .radar-capability-name,
    .radar-capability-state {
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .radar-capability-name span,
    .radar-capability-state span { display: block; }

    .radar-capability-dot {
      flex: 0 0 auto;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: #7b8794;
    }

    .radar-capability-dot.connected { background: var(--forest-700); }
    .radar-capability-dot.permission-missing,
    .radar-capability-dot.not-in-plan { background: #b56a00; }
    .radar-capability-dot.temporarily-unavailable { background: #bd2c3b; }
    .radar-capability-dot.no-data { background: #687585; }

    .radar-recovery-history {
      margin-top: 2px;
      border-top: 1px solid var(--line);
    }

    .radar-recovery-history > summary {
      padding: 10px 2px 4px;
    }

    .radar-recovery-history > summary span,
    .radar-recovery-table td > span {
      display: block;
    }

    .radar-recovery-table {
      margin-top: 8px;
      font-size: 12px;
    }

    .radar-recovery-table th,
    .radar-recovery-table td {
      padding: 9px 8px;
      vertical-align: top;
    }

    .radar-recovery-table th:last-child,
    .radar-recovery-table td:last-child {
      width: 42px;
      text-align: right;
    }

    .radar-recovery-retry {
      width: 32px;
      height: 32px;
      min-height: 32px;
      padding: 6px;
    }

    #radarRecoveryHistoryMessage:empty { display: none; }
    #radarRecoveryHistoryMessage { padding: 8px 2px 0; }

    .radar-recovery-status {
      display: inline-flex !important;
      align-items: center;
      gap: 7px;
      text-transform: capitalize;
    }

    #registrySourcesPanel .settings-panel-heading {
      max-width: none;
      margin: 0;
    }

    #registrySourcesPanel .settings-panel-heading p {
      margin-bottom: 0;
    }

    #registrySourcesPanel .registry-fields {
      grid-template-columns: repeat(2, minmax(180px, 280px));
      align-items: end;
      margin-bottom: 0;
    }

    @media (max-width: 760px) {
      .settings-connections-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .settings-connections-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
      .settings-connections-summary > div:nth-child(4) { border-top: 1px solid var(--line); }

      .cloudflare-service-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
      }

      .settings-connections-panel[data-connection-panel="cloudflare"] .calendar-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
      }

      .settings-connections-panel[data-connection-panel="cloudflare"] .calendar-actions button {
        width: 100%;
      }

      .settings-connections-panel[data-connection-panel="cloudflare"] .registry-fields {
        grid-template-columns: minmax(0, 1fr);
        max-width: none;
      }

      .radar-recovery-table td:last-child {
        width: auto;
        text-align: left;
      }
    }

    #registrySourcesPanel .registry-fields label {
      margin-top: 0;
    }

    #registrySourcesPanel .portfolio-health {
      margin: 0;
      background: var(--white);
    }

    #registrySourcesPanel .index-source-grid {
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      margin: 0;
    }

    .euipo-import-history-heading {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: end;
      margin-top: 8px;
    }

    .euipo-import-history-heading h3,
    .euipo-import-history-heading p {
      margin: 0;
    }

    .euipo-import-history-labels,
    .euipo-import-run > summary {
      display: grid;
      grid-template-columns: minmax(150px, 1.05fr) minmax(180px, 1.35fr) minmax(170px, 1.15fr) minmax(100px, .7fr) minmax(150px, 1fr);
      gap: 14px;
      align-items: center;
    }

    .euipo-import-history-labels {
      padding: 8px 12px;
      border-bottom: 1px solid var(--line);
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .euipo-import-history {
      display: grid;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 6px;
      overflow: hidden;
    }

    .euipo-import-run {
      border-bottom: 1px solid var(--line);
      background: var(--white);
    }

    .euipo-import-run:last-child {
      border-bottom: 0;
    }

    .euipo-import-run > summary {
      list-style: none;
      cursor: pointer;
      min-height: 68px;
      padding: 10px 36px 10px 12px;
      position: relative;
    }

    .euipo-import-run > summary::-webkit-details-marker {
      display: none;
    }

    .euipo-import-run > summary::after {
      content: "+";
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
      font-size: 18px;
    }

    .euipo-import-run[open] > summary::after {
      content: "−";
    }

    .euipo-import-run > summary:hover {
      background: var(--panel);
    }

    .euipo-import-run > summary > span {
      min-width: 0;
      display: grid;
      gap: 3px;
    }

    .euipo-import-run > summary b,
    .euipo-import-run > summary small {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .euipo-import-run > summary small {
      color: var(--muted);
      font-size: 12px;
    }

    .euipo-import-result {
      grid-template-columns: 10px minmax(0, 1fr) !important;
      column-gap: 8px !important;
    }

    .euipo-import-result small {
      grid-column: 2;
    }

    .euipo-import-run-details {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
      padding: 14px 18px;
      border-top: 1px solid var(--line);
      background: var(--panel);
    }

    .euipo-import-run-details > div {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 14px;
    }

    .euipo-import-run-details > div > b {
      flex-basis: 100%;
    }

    .euipo-import-run-details span {
      color: var(--muted);
      font-size: 13px;
    }

    .euipo-import-run-actions button {
      margin-top: 4px;
      width: fit-content;
    }

    #cloudflareZonesList .portfolio-empty-state {
      min-height: 112px;
      padding: 18px;
    }

    .system-health {
      display: grid;
      gap: 14px;
      margin-bottom: 24px;
      min-width: 0;
      width: 100%;
    }

    .system-health-heading {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: end;
    }

    .system-health-heading h2,
    .system-health-heading p {
      margin: 0;
    }

    .system-health-heading p {
      color: var(--muted);
      margin-top: 4px;
    }

    .system-health-heading button {
      min-width: 150px;
      white-space: nowrap;
    }

    .system-health-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 10px;
    }

    .system-health-stat {
      min-height: 112px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      display: grid;
      align-content: space-between;
      gap: 10px;
    }

    .system-health-stat strong {
      display: block;
      font-size: 24px;
      line-height: 1.1;
      color: var(--ink);
    }

    .system-health-stat span.meta {
      display: block;
      margin-top: 4px;
    }

    .system-health-overall {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(240px, .7fr);
      gap: 0;
      margin: 0;
      padding: 0;
      overflow: hidden;
      border-left-width: 4px;
      background: var(--white);
    }

    .system-health-overall > div {
      min-width: 0;
      padding: 13px 15px;
    }

    .system-health-overall > div + div {
      border-left: 1px solid var(--line);
    }

    .system-health-overall span,
    .system-health-overall strong,
    .system-health-overall small {
      display: block;
    }

    .system-health-overall span {
      margin-bottom: 3px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .03em;
      text-transform: uppercase;
    }

    .system-health-overall strong {
      overflow: hidden;
      font-size: 18px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .system-health-overall.error > div:last-child strong {
      color: var(--ink);
    }

    .system-health-overall small {
      margin-top: 3px;
      color: var(--muted);
      font-size: 12px;
    }

    .system-health-attention {
      margin: 0;
    }

    .review-signing-health {
      display: grid;
      gap: 0;
      margin: 0;
      padding: 0;
      overflow: hidden;
      border-left: 4px solid var(--accent);
    }

    .review-signing-heading {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      padding: 14px 15px 11px;
      background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--white)), var(--white));
    }

    .review-signing-heading h3,
    .review-signing-heading p,
    .review-signing-reason {
      margin: 0;
    }

    .review-signing-heading h3 {
      margin-top: 2px;
      font-size: 16px;
    }

    .review-signing-heading p,
    .review-signing-reason {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .review-signing-heading p {
      margin-top: 3px;
    }

    .review-signing-reason {
      border-top: 1px solid var(--line);
      padding: 9px 15px;
    }

    .review-signing-metrics {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .review-signing-metrics > div {
      display: grid;
      min-width: 0;
      gap: 3px;
      padding: 12px 15px;
    }

    .review-signing-metrics > div + div {
      border-left: 1px solid var(--line);
    }

    .review-signing-metrics span,
    .review-signing-public-key span {
      color: var(--muted);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    .review-signing-metrics b {
      overflow: hidden;
      font-size: 14px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .review-signing-metrics small {
      color: var(--muted);
      font-size: 11px;
    }

    .review-signing-public-key {
      display: grid;
      grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr);
      align-items: center;
      gap: 12px;
      padding: 11px 15px;
    }

    .review-signing-public-key > div {
      display: grid;
      gap: 3px;
    }

    .review-signing-public-key code {
      overflow: hidden;
      border-radius: 6px;
      background: var(--surface-soft);
      padding: 7px 8px;
      font-size: 10px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .review-signing-lifecycle {
      border-top: 1px solid var(--line);
    }

    .review-signing-lifecycle > summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 11px 15px;
      cursor: pointer;
      list-style: none;
    }

    .review-signing-lifecycle > summary::-webkit-details-marker {
      display: none;
    }

    .review-signing-lifecycle > summary > span:first-child,
    .review-signing-lifecycle > summary b,
    .review-signing-lifecycle > summary small {
      display: block;
    }

    .review-signing-lifecycle > summary small,
    .review-signing-lifecycle > summary > span:last-child,
    .review-signing-lifecycle-body p,
    .review-signing-lifecycle-body li,
    .review-signing-lifecycle-row span {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.45;
    }

    .review-signing-lifecycle-body {
      display: grid;
      gap: 10px;
      border-top: 1px solid var(--line);
      background: var(--surface-soft);
      padding: 12px 15px;
    }

    .review-signing-lifecycle-body ol,
    .review-signing-lifecycle-body p {
      margin: 0;
    }

    .review-signing-lifecycle-body ol {
      padding-left: 18px;
    }

    .review-signing-lifecycle-list {
      display: grid;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: var(--white);
    }

    .review-signing-lifecycle-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 9px 10px;
    }

    .review-signing-lifecycle-row > div {
      display: grid;
      min-width: 0;
      gap: 2px;
    }

    @media (max-width: 680px) {
      .review-signing-heading,
      .review-signing-public-key {
        align-items: stretch;
        grid-template-columns: 1fr;
      }

      .review-signing-heading {
        flex-direction: column;
      }

      .review-signing-heading > .pill {
        align-self: flex-start;
      }

      .review-signing-metrics {
        grid-template-columns: 1fr;
      }

      .review-signing-metrics > div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
      }
    }

    .system-health-attention-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 13px 14px;
      border-bottom: 1px solid var(--line);
      background: #fff8f7;
    }

    .system-health-attention.is-clean .system-health-attention-heading {
      background: #f3faf7;
    }

    .system-health-attention.is-clean .system-health-attention-heading > .pill {
      display: none;
    }

    .system-health-attention-heading h3,
    .system-health-attention-heading p {
      margin: 0;
    }

    .system-health-attention-heading h3 {
      margin-bottom: 3px;
      font-size: 15px;
    }

    .system-health-attention-heading p {
      color: var(--muted);
      font-size: 13px;
    }

    .system-health-attention-list {
      display: grid;
    }

    .system-health-attention-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 11px 14px;
      border-top: 1px solid var(--line);
    }

    .system-health-attention-row:first-child {
      border-top: 0;
    }

    .system-health-attention-row b,
    .system-health-attention-row span,
    .system-health-clean b,
    .system-health-clean span {
      display: block;
    }

    .system-health-attention-row > div > span,
    .system-health-clean span {
      margin-top: 2px;
      color: var(--muted);
      font-size: 13px;
    }

    .system-health-clean {
      padding: 13px 14px;
      background: #f7fbf9;
    }

    .system-health-clean.compact {
      border: 1px solid #cfe4da;
      border-radius: 7px;
    }

    .system-health-active-incidents {
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

    .system-health-disclosure {
      margin: 0;
    }

    .system-health-disclosure > summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 13px 14px;
      cursor: pointer;
      list-style: none;
      background: var(--white);
    }

    .system-health-disclosure > summary::-webkit-details-marker {
      display: none;
    }

    .system-health-disclosure > summary b,
    .system-health-disclosure > summary small {
      display: block;
    }

    .system-health-disclosure > summary small {
      margin-top: 3px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 400;
    }

    .system-health-disclosure > summary > span:last-child {
      flex: 0 0 auto;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .system-health-disclosure[open] > summary {
      border-bottom: 1px solid var(--line);
      background: var(--panel);
    }

    .system-health-disclosure-body {
      display: grid;
      gap: 14px;
      padding: 14px;
    }

    .system-health-disclosure-body > .system-health-section,
    .system-health-disclosure-body > .system-health-columns,
    .system-health-disclosure-body > .system-health-parity,
    .system-health-disclosure-body > .system-health-preferences {
      margin: 0;
    }

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

    .system-health-section {
      border-top: 1px solid var(--line);
      padding-top: 14px;
      min-width: 0;
    }

    .cloudflare-capacity {
      margin-top: 18px;
      padding: 18px;
      border: 1px solid #cfe4da;
      border-radius: 10px;
      background: linear-gradient(145deg, #f7fbf9 0%, #fff 58%);
    }

    .cloudflare-capacity > .system-health-section-heading {
      align-items: flex-start;
      margin-bottom: 14px;
    }

    #cloudflareCapacityFreshness {
      flex: 0 0 auto;
      max-width: none;
      white-space: nowrap;
    }

    .cloudflare-capacity .eyebrow {
      display: block;
      margin-bottom: 4px;
      color: var(--accent-dark);
      font-size: 10px;
      font-weight: 850;
      letter-spacing: .09em;
      text-transform: uppercase;
    }

    .cloudflare-capacity-guardrails {
      display: grid;
      gap: 8px;
      margin-bottom: 10px;
    }

    .cloudflare-capacity-activity {
      margin-bottom: 10px;
      border: 1px solid #b9d6ce;
      border-left: 4px solid var(--accent);
      background: #edf7f3;
    }

    .cloudflare-capacity-activity > div {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 13px;
    }

    .cloudflare-capacity-activity > div > div { min-width: 0; flex: 1; }
    .cloudflare-capacity-activity b,
    .cloudflare-capacity-activity small { display: block; }
    .cloudflare-capacity-activity b { font-size: 12px; line-height: 1.4; }
    .cloudflare-capacity-activity small { margin-top: 2px; color: var(--muted); font-size: 11px; }

    .cloudflare-guardrail-heading,
    .cloudflare-guardrail-alert {
      display: flex;
      align-items: center;
      gap: 11px;
      min-width: 0;
      padding: 11px 12px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--white);
    }

    .cloudflare-guardrail-heading > div,
    .cloudflare-guardrail-alert > span:first-child { min-width: 0; flex: 1; }
    .cloudflare-guardrail-heading b,
    .cloudflare-guardrail-heading small,
    .cloudflare-guardrail-alert b,
    .cloudflare-guardrail-alert small { display: block; }
    .cloudflare-guardrail-heading b,
    .cloudflare-guardrail-alert b { font-size: 12px; }
    .cloudflare-guardrail-heading small,
    .cloudflare-guardrail-alert small { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.4; }
    .cloudflare-guardrail-thresholds { flex: 0 0 auto; color: var(--muted); font-size: 10px; font-weight: 750; white-space: nowrap; }
    .cloudflare-guardrail-list { display: grid; gap: 6px; }
    .cloudflare-guardrail-alert { border-left: 4px solid #d7a530; }
    .cloudflare-guardrail-alert.over { border-left-color: var(--danger); }
    .cloudflare-guardrail-alert.informational { border-left-color: var(--accent); background: #fbfdfc; }
    .cloudflare-guardrail-context { display: grid; gap: 6px; }
    .cloudflare-guardrail-context > span { padding: 3px 2px 0; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
    .cloudflare-alert-controls { display: flex; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }
    .cloudflare-alert-controls button { min-height: 30px; padding: 5px 8px; border-radius: 0; font-size: 10px; }
    .cloudflare-alert-review-state { color: var(--accent-dark) !important; font-weight: 750; }
    .cloudflare-guardrail-alert small strong { display: inline; font-size: inherit; }

    .cloudflare-production-verification { margin-bottom: 10px; border: 1px solid #b9d6ce; background: var(--white); }
    .cloudflare-verification-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; border-bottom: 1px solid var(--line); }
    .cloudflare-verification-heading > div { display: grid; gap: 2px; }
    .cloudflare-verification-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .cloudflare-verification-grid > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 7px; min-width: 0; padding: 10px 11px; border-left: 1px solid var(--line); }
    .cloudflare-verification-grid > div:first-child { border-left: 0; }
    .cloudflare-verification-grid > div > span { grid-row: 1 / 3; color: var(--accent-dark); font-weight: 900; }
    .cloudflare-verification-grid > div.pending > span { color: #a4741d; }
    .cloudflare-verification-grid b { overflow-wrap: anywhere; font-size: 11px; }
    .cloudflare-verification-grid small { color: var(--muted); font-size: 10px; line-height: 1.35; }

    .cloudflare-capacity-forecast { margin-bottom: 10px; border: 1px solid #9fc9bc; background: #f2faf7; }
    .cloudflare-forecast-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
    .cloudflare-forecast-heading > div { display: grid; gap: 2px; }
    .cloudflare-forecast-heading > div > b { color: var(--accent-dark); font-size: 20px; }
    .cloudflare-forecast-heading small, .cloudflare-capacity-forecast > p { color: var(--muted); font-size: 10px; }
    .cloudflare-forecast-breakdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #c8ded7; border-bottom: 1px solid #c8ded7; background: var(--white); }
    .cloudflare-forecast-breakdown span { display: flex; justify-content: space-between; gap: 8px; padding: 9px 13px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; }
    .cloudflare-forecast-breakdown span:first-child { border-left: 0; }
    .cloudflare-forecast-breakdown b { color: var(--ink); }
    .cloudflare-capacity-forecast > p { margin: 0; padding: 8px 13px; }

    .cloudflare-capacity-summary {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      border: 1px solid var(--line);
      border-radius: 9px;
      overflow: hidden;
      background: var(--white);
    }

    .cloudflare-capacity-summary > div {
      min-width: 0;
      padding: 14px;
      border-left: 1px solid var(--line);
    }

    .cloudflare-capacity-summary > div:first-child { border-left: 0; }
    .cloudflare-capacity-summary span,
    .cloudflare-capacity-summary b,
    .cloudflare-capacity-summary p { display: block; }
    .cloudflare-capacity-summary span { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
    .cloudflare-capacity-summary b { margin-top: 5px; color: var(--accent-dark); font-size: 23px; line-height: 1.1; }
    .cloudflare-capacity-summary b small { display: inline; font-size: 12px; font-weight: 700; }
    .cloudflare-capacity-summary p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
    .cloudflare-capacity-summary .cloudflare-capacity-driver { font-size: 17px; line-height: 1.25; }
    .cloudflare-capacity-empty { grid-column: 1 / -1; border-left: 0 !important; }
    .cloudflare-capacity-empty b { font-size: 15px; }

    .cloudflare-capacity-trends { margin-top: 10px; }
    .cloudflare-capacity-subheading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
    .cloudflare-capacity-subheading b { font-size: 12px; }
    .cloudflare-capacity-subheading span { color: var(--muted); font-size: 11px; }
    .cloudflare-capacity-trend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .cloudflare-capacity-trend-grid article { padding: 12px 13px; border: 1px solid #cfdfdb; background: var(--white); }
    .cloudflare-capacity-trend-grid article > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .cloudflare-capacity-trend-grid article > div > span:first-child { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
    .cloudflare-capacity-trend-grid article > b { display: block; margin-top: 8px; color: var(--ink); font-size: 15px; }
    .cloudflare-capacity-trend-grid article > p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
    .cloudflare-capacity-sparklines { margin-top: 10px; }
    .cloudflare-sparkline-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .cloudflare-sparkline-grid article { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); background: var(--white); }
    .cloudflare-sparkline-grid article > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
    .cloudflare-sparkline-grid article span, .cloudflare-sparkline-grid article small { color: var(--muted); font-size: 10px; }
    .cloudflare-sparkline-grid article b { color: var(--ink); font-size: 11px; }
    .cloudflare-sparkline-grid svg { display: block; width: 100%; height: 42px; margin: 7px 0 4px; overflow: visible; }
    .cloudflare-sparkline-grid path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .cloudflare-sparkline-empty { height: 42px; margin: 7px 0 4px; display: grid; place-items: center; border-bottom: 1px dashed var(--line); color: var(--muted); font-size: 10px; }

    .cloudflare-capacity-meters {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 10px;
    }

    .cloudflare-capacity-meter {
      padding: 13px 14px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--white);
    }

    .cloudflare-capacity-meter > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
    .cloudflare-capacity-meter > div:first-child span { color: var(--muted); font-size: 12px; font-weight: 750; }
    .cloudflare-capacity-meter > div:first-child b { color: var(--ink); font-size: 16px; }
    .cloudflare-capacity-track { height: 7px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #e7edef; }
    .cloudflare-capacity-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
    .cloudflare-capacity-meter p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }

    .cloudflare-capacity-method { margin-top: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); overflow: hidden; }
    .cloudflare-capacity-method > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; cursor: pointer; list-style: none; }
    .cloudflare-capacity-method > summary::-webkit-details-marker { display: none; }
    .cloudflare-capacity-method > summary b,
    .cloudflare-capacity-method > summary small { display: block; }
    .cloudflare-capacity-method > summary small { margin-top: 2px; color: var(--muted); font-weight: 400; }
    .cloudflare-capacity-method > summary > span:last-child { color: var(--muted); font-size: 12px; font-weight: 800; }
    .cloudflare-capacity-method[open] > summary { border-bottom: 1px solid var(--line); background: var(--panel); }
    .cloudflare-capacity-method-body { padding: 13px; }
    .cloudflare-capacity-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .cloudflare-capacity-method-grid > div { padding-left: 11px; border-left: 3px solid var(--forest-300); }
    .cloudflare-capacity-method-grid b { font-size: 12px; }
    .cloudflare-capacity-method-grid p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
    .cloudflare-capacity-method-grid a { color: var(--accent-dark); font-weight: 750; }

    .system-health-section-heading {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      margin-bottom: 8px;
    }

    .system-health-section-heading h3,
    .system-health-section-heading p {
      margin: 0;
    }

    .system-health-list {
      display: grid;
      gap: 8px;
    }

    .system-health-row {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 11px 12px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
    }

    .system-health-row-main {
      min-width: 0;
    }

    .system-health-row-main > b,
    .system-health-row-main > span {
      display: block;
    }

    .system-health-row-actions {
      display: flex;
      gap: 8px;
      align-items: center;
      justify-content: flex-end;
      flex-wrap: wrap;
    }

    .system-health-error-message {
      font-weight: 700;
      color: var(--ink);
    }

    .workflow-health-summary {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 8px;
      padding: 11px 12px;
      border-left: 4px solid var(--accent);
      background: #f4f8f8;
    }

    .workflow-health-summary b,
    .workflow-health-summary span {
      display: block;
    }

    .ai-briefing-quality .system-health-section-heading { align-items: end; }
    .ai-briefing-quality .system-health-section-heading label { width: auto; min-width: 130px; margin: 0; color: var(--muted); font-size: 11px; }
    .ai-briefing-quality-filters { display: flex; align-items: end; gap: 8px; }
    .ai-briefing-quality .system-health-section-heading select { min-height: 34px; margin-top: 4px; padding: 5px 30px 5px 8px; }
    .ai-briefing-quality-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
    .ai-briefing-quality-stat { display: grid; gap: 5px; min-height: 82px; border-left: 1px solid var(--line); padding: 12px; background: var(--white); }
    .ai-briefing-quality-stat:first-child { border-left: 0; }
    .ai-briefing-quality-stat:nth-child(4n + 1) { border-left: 0; }
    .ai-briefing-quality-stat b { font-size: 22px; line-height: 1; }
    .ai-briefing-quality-stat span { color: var(--muted); font-size: 11px; line-height: 1.35; }
    .ai-briefing-quality .system-health-list { margin-top: 10px; }
    .ai-briefing-rollout-controls { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); overflow: hidden; }
    .ai-briefing-watchdog-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #b8d8d2; padding: 12px; background: #f5fbfa; }
    .ai-briefing-watchdog-summary > div { display: grid; gap: 2px; }
    .ai-briefing-watchdog-summary small { color: var(--muted); }
    .ai-briefing-rollout-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; background: var(--panel); }
    .ai-briefing-rollout-heading > div { display: grid; gap: 2px; }
    .ai-briefing-rollout-heading span,
    .ai-briefing-rollout-row small { color: var(--muted); font-size: 11px; }
    .ai-briefing-rollout-heading button { width: auto; }
    .ai-briefing-rollout-actions { display: flex; gap: 7px; }
    .ai-briefing-rollout-list { display: grid; }
    .ai-briefing-rollout-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0; border-top: 1px solid var(--line); padding: 10px 12px; cursor: pointer; }
    .ai-briefing-rollout-row input { width: 18px; min-height: 18px; margin: 0; }
    .ai-briefing-rollout-row > span:not(.pill) { display: grid; gap: 2px; }
    .ai-briefing-rollout-progress { color: var(--accent-dark) !important; font-weight: 700; }
    #aiBriefingRolloutMessage { min-height: 16px; margin: -2px 0 10px; }
    .ai-briefing-quality-gates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
    .ai-briefing-quality-gate { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; background: var(--white); }
    .ai-briefing-quality-gate > span { display: grid; gap: 2px; min-width: 0; }
    .ai-briefing-quality-gate small { color: var(--muted); }
    .ai-briefing-quality-gate i { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #9aa8b0; }
    .ai-briefing-quality-gate.pass i { background: var(--forest-700); }
    .ai-briefing-quality-gate.fail i { background: #c65b4a; }

    @media (max-width: 900px) {
      .ai-briefing-quality-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .ai-briefing-quality-stat { border-bottom: 1px solid var(--line); }
      .ai-briefing-quality-stat:nth-child(odd) { border-left: 0; }
      .ai-briefing-quality-gates { grid-template-columns: minmax(0, 1fr); }
      .ai-briefing-rollout-row { grid-template-columns: auto minmax(0, 1fr); }
      .ai-briefing-rollout-row .pill { grid-column: 2; justify-self: start; }
      .ai-briefing-rollout-heading { align-items: stretch; flex-direction: column; }
      .ai-briefing-rollout-actions button { flex: 1; }
    }

    @media (max-width: 560px) {
      .ai-briefing-quality .system-health-section-heading { align-items: stretch; flex-direction: column; }
      .ai-briefing-quality .system-health-section-heading label { width: 100%; }
      .ai-briefing-quality-filters { align-items: stretch; flex-direction: column; }
    }

    .workflow-health-row {
      border-width: 0 0 1px;
      border-radius: 0;
      padding-inline: 4px;
      background: transparent;
    }

    .workflow-health-dot {
      width: 10px;
      height: 10px;
      flex: 0 0 10px;
      border-radius: 50%;
      background: #9aa8b0;
      box-shadow: 0 0 0 3px rgba(154, 168, 176, 0.16);
    }

    .workflow-health-dot.healthy {
      background: var(--forest-700);
      box-shadow: 0 0 0 3px rgba(24, 132, 93, 0.15);
    }

    .workflow-health-dot.attention {
      background: #c27a16;
      box-shadow: 0 0 0 3px rgba(194, 122, 22, 0.15);
    }

    .workflow-health-dot.learning {
      background: #527b97;
      box-shadow: 0 0 0 3px rgba(82, 123, 151, 0.15);
    }

    @media (max-width: 760px) {
      .workflow-health-summary {
        flex-direction: column;
        gap: 4px;
      }
    }

    .system-health-preferences {
      margin-top: 10px;
      border-top: 1px solid var(--line);
      padding-top: 10px;
    }

    .system-health-preferences > summary {
      width: fit-content;
      cursor: pointer;
      color: var(--ink);
      font-weight: 800;
    }

    .system-health-preferences-form {
      display: grid;
      gap: 14px;
      padding-top: 14px;
    }

    .system-health-preferences-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px 16px;
    }

    .system-health-preferences-grid > label {
      display: grid;
      align-content: start;
      gap: 6px;
      margin: 0;
      font-weight: 700;
    }

    .system-health-preferences-grid input {
      width: 100%;
    }

    .operational-targets {
      grid-column: 1 / -1;
      display: grid;
      gap: 8px;
      margin: 0;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 6px;
    }

    .operational-targets legend {
      padding: 0 6px;
      font-weight: 800;
    }

    .operational-targets-header,
    .operational-target-row {
      display: grid;
      grid-template-columns: minmax(90px, 0.7fr) repeat(2, minmax(120px, 1fr));
      gap: 10px;
      align-items: center;
    }

    .operational-targets-header {
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
    }

    .input-with-suffix {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--white);
      overflow: hidden;
    }

    .input-with-suffix:focus-within {
      border-color: var(--teal);
      box-shadow: 0 0 0 2px rgba(25, 92, 86, 0.12);
    }

    .input-with-suffix input {
      border: 0;
      border-radius: 0;
      box-shadow: none;
    }

    .input-with-suffix > span {
      padding: 0 12px;
      color: var(--muted);
      font-size: 13px;
    }

    .system-health-preferences-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }

    .system-health-toggle-list {
      display: grid;
      gap: 8px;
    }

    .system-health-admin-toggle {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0;
      font-weight: 600;
    }

    .system-health-admin-toggle input {
      width: auto;
      margin: 0;
    }

    .system-health-preferences-buttons {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    #operationalErrorSettingsMessage {
      min-height: 18px;
      margin: 0;
    }

    #operationalAlertHistory .table-responsive {
      box-sizing: border-box;
      min-width: 0;
      width: 100%;
      max-width: 100%;
      overflow-x: auto;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

    #operationalAlertHistory,
    #operationalAlertHistoryMessage {
      min-width: 0;
      max-width: 100%;
    }

    #operationalAlertHistory {
      contain: inline-size;
      overflow: hidden;
    }

    #operationalAlertHistoryMessage {
      min-height: 18px;
      margin: 0 0 6px;
    }

    .operational-incident-modal {
      width: min(920px, calc(100vw - 32px));
    }

    .operational-incident-modal .drawer-header .eyebrow {
      margin: 0 0 3px;
      color: var(--accent-dark);
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .operational-incident-body {
      display: grid;
      gap: 18px;
      padding: 18px;
    }

    .operational-incident-statusbar {
      display: flex;
      align-items: center;
      gap: 9px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--line);
    }

    .operational-incident-statusbar .meta {
      margin-left: auto;
    }

    .status-dot {
      width: 10px;
      height: 10px;
      flex: 0 0 10px;
      border-radius: 50%;
      background: var(--muted);
      box-shadow: 0 0 0 3px rgba(95, 109, 122, 0.12);
    }

    .status-dot-good { background: var(--forest-700); box-shadow: 0 0 0 3px rgba(36, 107, 101, 0.14); }
    .status-dot-warning { background: #d98a1c; box-shadow: 0 0 0 3px rgba(217, 138, 28, 0.14); }
    .status-dot-danger { background: #c63f48; box-shadow: 0 0 0 3px rgba(198, 63, 72, 0.14); }

    .operational-incident-facts {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
    }

    .operational-incident-facts > div {
      min-width: 0;
      padding: 12px;
      background: var(--white);
    }

    .operational-incident-facts > div + div {
      border-left: 1px solid var(--line);
    }

    .operational-incident-facts span,
    .operational-incident-facts b {
      display: block;
      overflow-wrap: anywhere;
    }

    .operational-incident-facts b {
      margin-top: 4px;
      font-size: 14px;
    }

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

    .operational-incident-form {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px 16px;
      padding: 16px 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .operational-incident-form label {
      display: grid;
      gap: 6px;
      margin: 0;
      font-weight: 700;
    }

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

    .operational-incident-form-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    #operationalIncidentMessage {
      margin: 0;
      min-height: 18px;
    }

    .operational-incident-context {
      border-bottom: 1px solid var(--line);
      padding-bottom: 14px;
    }

    .operational-incident-context summary {
      cursor: pointer;
      font-weight: 800;
    }

    .operational-incident-context dl {
      display: grid;
      gap: 8px;
      margin: 12px 0 0;
    }

    .operational-incident-context dl > div {
      display: grid;
      grid-template-columns: 120px minmax(0, 1fr);
      gap: 12px;
    }

    .operational-incident-context dt {
      color: var(--muted);
      font-size: 13px;
    }

    .operational-incident-context dd {
      min-width: 0;
      margin: 0;
      overflow-wrap: anywhere;
      font-size: 13px;
    }

    .operational-incident-timeline-list {
      display: grid;
    }

    .operational-incident-event {
      position: relative;
      display: grid;
      grid-template-columns: 18px minmax(0, 1fr);
      gap: 10px;
      padding: 0 0 16px;
    }

    .operational-incident-event:not(:last-child)::before {
      content: "";
      position: absolute;
      left: 5px;
      top: 12px;
      bottom: 0;
      width: 1px;
      background: var(--line);
    }

    .operational-incident-event-marker {
      position: relative;
      z-index: 1;
      width: 11px;
      height: 11px;
      margin-top: 4px;
      border: 2px solid var(--accent);
      border-radius: 50%;
      background: var(--white);
    }

    .operational-incident-event b,
    .operational-incident-event .meta {
      display: block;
    }

    .operational-incident-event p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 13px;
    }

    .system-health-delivery-table {
      width: 100%;
      min-width: 720px;
      border-collapse: collapse;
      table-layout: fixed;
    }

    .system-health-delivery-table th,
    .system-health-delivery-table td {
      padding: 10px 12px;
      border-bottom: 1px solid var(--line);
      text-align: left;
      vertical-align: middle;
      font-size: 13px;
    }

    .system-health-delivery-table th {
      color: var(--muted);
      background: var(--soft);
      font-size: 12px;
      text-transform: uppercase;
    }

    .system-health-delivery-table tr:last-child td {
      border-bottom: 0;
    }

    .system-health-delivery-table th:nth-child(1),
    .system-health-delivery-table td:nth-child(1) { width: 90px; }

    .system-health-delivery-table th:nth-child(2),
    .system-health-delivery-table td:nth-child(2) { width: auto; }

    .system-health-delivery-table th:nth-child(3),
    .system-health-delivery-table td:nth-child(3) { width: 130px; }

    .system-health-delivery-table th:nth-child(4),
    .system-health-delivery-table td:nth-child(4) { width: 90px; }

    .system-health-delivery-table th:nth-child(5),
    .system-health-delivery-table td:nth-child(5) { width: 160px; }

    .system-health-delivery-table th:nth-child(6),
    .system-health-delivery-table td:nth-child(6) { width: 76px; }

    .system-health-delivery-incident,
    .system-health-delivery-table td .meta {
      display: block;
    }

    .system-health-delivery-incident {
      color: var(--ink);
      font-weight: 700;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .system-health-parity {
      border-top: 1px solid var(--line);
      padding-top: 12px;
    }

    .system-health-parity summary {
      cursor: pointer;
      font-weight: 800;
    }

    @media (max-width: 900px) {
      .system-health-grid,
      .system-health-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .cloudflare-capacity-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .cloudflare-verification-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .cloudflare-verification-grid > div:nth-child(4) { border-top: 1px solid var(--line); border-left: 0; }
      .cloudflare-verification-grid > div:nth-child(5) { border-top: 1px solid var(--line); }
      .cloudflare-sparkline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .cloudflare-capacity-summary > div:nth-child(odd) { border-left: 0; }
      .cloudflare-capacity-summary > div:nth-child(n + 3) { border-top: 1px solid var(--line); }

      .system-health-columns {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 600px) {
      .system-health-heading {
        align-items: stretch;
        flex-direction: column;
      }

      .system-health-heading button {
        width: 100%;
      }

      .system-health-grid,
      .system-health-row {
        grid-template-columns: 1fr;
      }

      .cloudflare-capacity { padding: 14px; }
      .cloudflare-capacity > .system-health-section-heading { flex-direction: column; }
      #cloudflareCapacityFreshness { align-self: flex-start; }
      .cloudflare-guardrail-heading { align-items: flex-start; flex-wrap: wrap; }
      .cloudflare-guardrail-heading > div { flex-basis: calc(100% - 90px); }
      .cloudflare-guardrail-thresholds { flex-basis: 100%; white-space: normal; }
      .cloudflare-guardrail-alert { align-items: flex-start; }
      .cloudflare-capacity-summary,
      .cloudflare-capacity-trend-grid,
      .cloudflare-sparkline-grid,
      .cloudflare-capacity-meters,
      .cloudflare-capacity-method-grid { grid-template-columns: 1fr; }
      .cloudflare-verification-grid { grid-template-columns: 1fr; }
      .cloudflare-verification-grid > div { border-top: 1px solid var(--line); border-left: 0; }
      .cloudflare-verification-grid > div:first-child { border-top: 0; }
      .cloudflare-forecast-breakdown { grid-template-columns: 1fr; }
      .cloudflare-forecast-breakdown span { border-top: 1px solid var(--line); border-left: 0; }
      .cloudflare-forecast-breakdown span:first-child { border-top: 0; }
      .cloudflare-capacity-summary > div { border-top: 1px solid var(--line); border-left: 0; }
      .cloudflare-capacity-summary > div:first-child { border-top: 0; }
      .cloudflare-capacity-activity > div { align-items: flex-start; flex-direction: column; gap: 8px; }
      .cloudflare-capacity-subheading { align-items: flex-start; flex-direction: column; gap: 2px; }

      .system-health-overall {
        grid-template-columns: 1fr;
      }

      .system-health-overall > div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
      }

      .system-health-attention-row {
        align-items: flex-start;
      }

      .system-health-row-actions {
        justify-content: flex-start;
      }

      .system-health-preferences-grid {
        grid-template-columns: 1fr;
      }

      .operational-targets-header,
      .operational-target-row {
        grid-template-columns: 68px repeat(2, minmax(0, 1fr));
        gap: 6px;
      }

      .operational-targets {
        padding: 10px 8px;
      }

      .operational-targets .input-with-suffix > span {
        padding: 0 7px;
      }

      .system-health-preferences-actions {
        align-items: stretch;
        flex-direction: column;
      }

      .system-health-preferences-actions button {
        width: 100%;
      }

      .system-health-preferences-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
      }

      .operational-incident-facts,
      .operational-incident-form {
        grid-template-columns: 1fr;
      }

      .operational-incident-facts > div + div {
        border-left: 0;
        border-top: 1px solid var(--line);
      }

      .operational-incident-form .full {
        grid-column: auto;
      }

      .operational-incident-form-actions,
      .operational-incident-statusbar {
        align-items: stretch;
        flex-direction: column;
      }

      .operational-incident-statusbar .meta {
        margin-left: 0;
      }

      .operational-incident-actions {
        display: grid;
        grid-template-columns: 1fr;
      }

      .operational-incident-actions button,
      .operational-incident-form-actions button {
        width: 100%;
      }

      .operational-incident-context dl > div {
        grid-template-columns: 1fr;
        gap: 2px;
      }

      #operationalAlertHistory .table-responsive {
        overflow: visible;
        border: 0;
        background: transparent;
      }

      .system-health-delivery-table,
      .system-health-delivery-table tbody,
      .system-health-delivery-table tr,
      .system-health-delivery-table td {
        display: block;
        width: 100%;
        min-width: 0;
      }

      .system-health-delivery-table {
        border-collapse: separate;
      }

      .system-health-delivery-table thead {
        display: none;
      }

      .system-health-delivery-table tr {
        margin-bottom: 8px;
        padding: 8px 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
      }

      .system-health-delivery-table td,
      .system-health-delivery-table td:nth-child(n) {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 8px;
        padding: 6px 0;
        border: 0;
      }

      .system-health-delivery-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
      }

      .system-health-delivery-table td[data-label="Action"]:empty {
        display: none;
      }
    }

    #durabilityPanel {
      padding: 14px;
    }

    #durabilityPanel .settings-panel-heading {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 12px;
      margin-bottom: 10px;
      max-width: none;
    }

    #durabilityPanel .calendar-actions {
      justify-content: flex-start;
      margin-bottom: 0;
    }

    #durabilityPanel .calendar-actions button {
      flex: 0 0 auto;
      width: auto;
      min-width: 150px;
    }

    #durabilityPanel .settings-panel-heading {
      align-items: center;
    }

    .durability-overview {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      margin-bottom: 10px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

    .durability-overview > div {
      min-width: 0;
      padding: 14px 16px;
      border-left: 1px solid var(--line);
    }

    .durability-overview > div:first-child {
      border-left: 0;
    }

    .durability-overview span,
    .durability-overview b {
      display: block;
    }

    .durability-overview span {
      margin-bottom: 5px;
      color: var(--muted);
      font-size: 12px;
    }

    .durability-overview b {
      overflow: hidden;
      font-size: 18px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    #durabilityPanel .durability-quality,
    #durabilityPanel .durability-restore-disclosure {
      margin-bottom: 10px;
    }

    .durability-section-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 13px 14px;
      border-bottom: 1px solid var(--line);
      background: var(--panel);
    }

    .durability-section-heading h3,
    .durability-section-heading p {
      margin: 0;
    }

    .durability-section-heading h3 {
      margin-bottom: 3px;
      font-size: 15px;
    }

    .durability-section-heading p {
      color: var(--muted);
      font-size: 13px;
    }

    .durability-quality .activity-feed {
      padding: 4px 14px 10px;
    }

    .durability-restore-disclosure > summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 13px 14px;
      cursor: pointer;
      list-style: none;
    }

    .durability-restore-disclosure > summary::-webkit-details-marker {
      display: none;
    }

    .durability-restore-disclosure > summary b,
    .durability-restore-disclosure > summary small {
      display: block;
    }

    .durability-restore-disclosure > summary small,
    .durability-restore-disclosure > summary > span:last-child {
      color: var(--muted);
      font-size: 12px;
    }

    .durability-restore-disclosure > summary small {
      margin-top: 3px;
    }

    .durability-restore-body {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 14px;
      border-top: 1px solid var(--line);
      background: #fffaf3;
    }

    .durability-warning b,
    .durability-warning span {
      display: block;
    }

    .durability-warning span {
      max-width: 720px;
      margin-top: 3px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .durability-restore-body button {
      flex: 0 0 auto;
      width: auto;
      min-width: 160px;
    }

    .toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 18px;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 0;
      margin-bottom: 18px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--white);
    }

    .stat {
      background: var(--white);
      border: 0;
      border-left: 1px solid var(--line);
      border-radius: 0;
      padding: 15px 16px;
      min-height: 78px;
    }

    .stat:first-child {
      border-left: 0;
    }

    .stat b {
      display: block;
      font-size: 25px;
      margin-bottom: 4px;
    }

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

    .panel {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 20px;
    }

    .report-preview {
      padding: 18px;
    }

    .report-preview h3 {
      margin: 18px 0 8px;
      font-size: 15px;
    }

    .report-preview .meta {
      margin-bottom: 8px;
    }

    .report-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 10px;
      margin: 14px 0;
    }

    .report-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 12px;
      min-height: 76px;
    }

    .report-card b {
      display: block;
      font-size: 22px;
      margin-bottom: 4px;
    }

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

    .report-preview ul {
      margin: 8px 0 0;
      padding-left: 18px;
    }

    .report-preview li {
      margin-bottom: 6px;
      color: var(--ink);
      line-height: 1.45;
    }

    .candidate-briefing-header {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
      gap: 18px;
      align-items: start;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--line);
    }

    .candidate-briefing-header h2 { margin: 4px 0 5px; }
    .candidate-briefing-header p { margin: 0; color: var(--muted); }

    .candidate-briefing-boundary {
      display: grid;
      gap: 4px;
      padding: 12px;
      border: 1px solid #9fcfc4;
      border-radius: 4px;
      background: #effaf7;
      color: #165f56;
    }

    .candidate-briefing-boundary span { color: #3d6f69; font-size: 13px; line-height: 1.4; }

    .candidate-briefing-scope {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      margin: 16px 0;
      border: 1px solid var(--line);
      border-radius: 4px;
      background: var(--white);
    }

    .candidate-briefing-scope > div { display: grid; gap: 4px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
    .candidate-briefing-scope > div:nth-child(odd) { border-right: 1px solid var(--line); }
    .candidate-briefing-scope > div:nth-last-child(-n + 2) { border-bottom: 0; }
    .candidate-briefing-scope span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
    .candidate-briefing-scope b { line-height: 1.45; }

    .candidate-briefing-facts .report-card { border-radius: 4px; background: var(--white); }

    @media (max-width: 720px) {
      .candidate-briefing-header,
      .candidate-briefing-scope { grid-template-columns: 1fr; }
      .candidate-briefing-scope > div,
      .candidate-briefing-scope > div:nth-child(odd),
      .candidate-briefing-scope > div:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid var(--line); }
      .candidate-briefing-scope > div:last-child { border-bottom: 0; }
    }

    .card-dashboard {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 12px;
      margin-bottom: 20px;
    }

    #portfolioCardDashboard {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tm-card {
      min-width: 0;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 14px;
      min-height: 178px;
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 9px;
      align-content: start;
    }

    .tm-card.selected {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(27, 94, 120, 0.14);
    }

    .tm-card.bulk-selected {
      border-color: #8a5a00;
      box-shadow: 0 0 0 3px rgba(163, 90, 0, 0.14);
    }

    .bulk-select-row {
      display: none;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    body.show-related-tools .bulk-select-row {
      display: flex;
    }

    .activity-log {
      display: grid;
      gap: 10px;
      margin-bottom: 14px;
    }

    .activity-feed {
      display: grid;
      gap: 8px;
      max-height: 280px;
      overflow: auto;
    }

    .activity-item {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 10px;
      display: grid;
      gap: 4px;
    }

    #budgetDashboardPanel {
      padding: 14px;
    }

    #budgetDashboardPanel .section-heading {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 12px;
      margin: 0 0 12px;
      align-items: start;
    }

    #budgetDashboardPanel .section-heading h2 {
      margin-bottom: 4px;
    }

    #budgetDashboardPanel .calendar-actions {
      align-self: start;
      justify-content: flex-start;
    }

    #budgetDashboardPanel .calendar-actions button {
      width: auto;
      min-width: 150px;
    }

    .budget-feed {
      display: grid;
      gap: 12px;
      max-height: none;
      overflow: visible;
    }

    .budget-feed-section {
      display: grid;
      gap: 8px;
    }

    .budget-feed-section > b {
      font-size: 14px;
    }

    details.budget-feed-section {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      overflow: hidden;
    }

    details.budget-feed-section > summary {
      cursor: pointer;
      padding: 12px 14px;
      font-size: 14px;
      font-weight: 800;
      background: var(--panel);
    }

    details.budget-feed-section > .budget-card-grid {
      padding: 10px;
    }

    .budget-card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 8px;
    }

    #budgetDashboardPanel .activity-item {
      background: var(--panel);
      min-height: 92px;
    }

    .fee-assumptions {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 12px;
      margin-bottom: 12px;
      display: grid;
      gap: 12px;
    }

    .fee-assumptions summary {
      cursor: pointer;
      font-weight: 800;
    }

    .registry-import-card > summary {
      cursor: pointer;
      font-weight: 800;
      list-style: none;
    }

    .registry-import-card > summary::-webkit-details-marker {
      display: none;
    }

    .registry-import-card > summary::after {
      content: "+";
      float: right;
      color: var(--accent);
    }

    .registry-import-card[open] > summary::after {
      content: "-";
    }

    .registry-import-card[open] > summary {
      padding-bottom: 10px;
      border-bottom: 1px solid var(--line);
    }

    .registry-freshness-line {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .registry-freshness-line b,
    .registry-freshness-line small {
      display: block;
    }

    .registry-freshness-line small {
      margin-top: 2px;
      color: var(--muted);
      font-weight: 500;
    }

    .fee-assumption-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 10px;
    }

    .fee-assumption-grid label {
      margin: 0;
    }

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

    .fee-assumption-actions button {
      width: auto;
      min-width: 140px;
    }

    .dashboard-toolbar {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: flex-start;
      flex-wrap: wrap;
      margin: 14px 0 12px;
    }

    .quick-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .filter-chip {
      border: 1px solid var(--line);
      background: linear-gradient(#ffffff, #f4f7f9);
      color: var(--ink);
      padding: 8px 10px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(18, 26, 34, 0.08), 0 1px 1px rgba(18, 26, 34, 0.06);
      transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 80ms ease;
    }

    .filter-chip.active {
      border-color: var(--accent);
      background: linear-gradient(var(--forest-50), #dcefed);
      color: var(--accent);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(25, 92, 86, 0.18), 0 0 0 1px rgba(25, 92, 86, 0.08);
    }

    .filter-chip:hover {
      border-color: #b8c9d1;
      background: linear-gradient(#ffffff, #edf3f6);
    }

    .filter-chip:active {
      transform: translateY(1px);
      box-shadow: inset 0 1px 2px rgba(18, 26, 34, 0.14);
    }

    .portfolio-health {
      border: 1px solid var(--line);
      border-radius: 8px;
      border-left: 4px solid var(--accent);
      background: #f4faf9;
      padding: 11px 13px;
      color: var(--ink);
      font-size: 14px;
      margin-top: 12px;
    }

    #portfolioHealthSummary {
      min-height: 72px;
      display: flex;
      align-items: center;
      padding: 14px 16px;
      border-radius: 4px;
    }

    .portfolio-health-heading {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .portfolio-health-heading b,
    .portfolio-health-heading span {
      display: block;
    }

    .portfolio-health-heading b {
      margin-bottom: 3px;
      font-size: 15px;
    }

    .portfolio-health-heading .pill {
      flex: 0 0 auto;
    }

    .portfolio-overview-stats {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      margin-bottom: 10px;
    }

    .portfolio-secondary-metrics {
      display: flex;
      flex-wrap: wrap;
      gap: 0;
      margin: -2px 0 16px;
      color: var(--muted);
    }

    .portfolio-secondary-metrics span {
      border-right: 1px solid var(--line);
      padding: 2px 10px;
      color: var(--muted);
      font-size: 12px;
    }

    .portfolio-secondary-metrics span:first-child {
      padding-left: 0;
    }

    .portfolio-secondary-metrics span:last-child {
      border-right: 0;
    }

    .portfolio-secondary-metrics b {
      color: var(--ink);
    }

    .portfolio-simple-actions {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) auto auto;
      gap: 10px;
      align-items: end;
      margin-bottom: 14px;
    }

    .portfolio-simple-actions button {
      min-height: 46px;
    }

    .portfolio-simple-actions .portfolio-overflow-action {
      display: none;
    }

    .domain-setup-panel {
      border: 1px solid var(--line);
      border-top: 3px solid var(--accent);
      border-radius: 8px;
      background: var(--white);
      margin: 14px 0 18px;
      padding: 18px;
      scroll-margin-top: 68px;
    }

    .domain-setup-heading,
    .domain-setup-toolbar,
    .domain-setup-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .domain-setup-heading h2 { margin: 2px 0 3px; }
    .domain-setup-heading p { margin: 0; color: var(--muted); }

    .domain-setup-steps {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      margin: 16px 0 0;
    }

    .domain-setup-step {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 10px 12px;
      display: grid;
      grid-template-columns: 24px minmax(0, 1fr);
      gap: 8px;
      align-items: center;
    }

    .domain-setup-step > b:first-child {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--accent);
      color: var(--white);
      font-size: 12px;
    }

    .domain-setup-step > div { display: grid; gap: 2px; }
    .domain-setup-step span { display: block; color: var(--muted); font-size: 12px; }

    .domain-setup-heading > button {
      width: auto;
      flex: 0 0 auto;
      align-self: flex-start;
    }

    .domain-setup-stats {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      margin: 16px 0;
    }

    .domain-setup-stat {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 10px 12px;
    }

    .domain-setup-stat b { display: block; font-size: 22px; }
    .domain-setup-stat span { color: var(--muted); font-size: 12px; }

    .domain-setup-toolbar {
      border-block: 1px solid var(--line);
      padding: 11px 0;
    }

    .domain-setup-toolbar .actions { margin: 0; width: auto; align-items: center; }
    .domain-setup-toolbar .actions button { width: auto; }

    .domain-setup-list {
      display: grid;
      gap: 10px;
      margin: 14px 0;
    }

    .domain-setup-record {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 12px;
      display: grid;
      grid-template-columns: minmax(180px, .7fr) minmax(0, 1.5fr);
      gap: 14px;
    }

    .domain-setup-record-title {
      display: grid;
      align-content: start;
      gap: 4px;
    }

    .domain-setup-record-title .pill { justify-self: start; }

    .domain-setup-editor { display: grid; gap: 8px; }

    .domain-draft-row {
      display: grid;
      grid-template-columns: minmax(160px, 1fr) 140px 36px;
      gap: 7px;
      align-items: center;
    }

    .domain-draft-row input,
    .domain-draft-row select { min-height: 38px; }

    .domain-draft-row button {
      width: 36px;
      min-width: 36px;
      min-height: 36px;
      padding: 0;
    }

    .domain-candidate-row,
    .domain-custom-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 7px;
    }

    .domain-candidate-row button { width: auto; }
    .domain-custom-row input { flex: 1 1 220px; }
    .domain-custom-row button { width: auto; }

    .domain-setup-footer {
      border-top: 1px solid var(--line);
      padding-top: 13px;
    }

    .domain-setup-footer .actions { margin: 0; }

    .domain-health-toolbar {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) 180px 180px auto auto;
      gap: 9px;
      align-items: end;
      margin-bottom: 12px;
    }

    .domain-health-toolbar label { margin: 0; }

    .domain-health-summary {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 14px;
    }

    .domain-health-nav {
      display: flex;
      align-items: center;
      gap: 26px;
      margin: 0 0 18px;
      border-bottom: 1px solid var(--line);
      overflow-x: auto;
      scrollbar-width: none;
    }

    .domain-health-nav::-webkit-scrollbar { display: none; }

    .domain-health-nav button {
      flex: 0 0 auto;
      width: auto;
      min-height: 42px;
      padding: 8px 1px 10px;
      border: 0;
      border-bottom: 3px solid transparent;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      color: var(--muted);
      font-weight: 800;
      text-shadow: none;
    }

    .domain-health-nav button:hover,
    .domain-health-nav button.active {
      border-bottom-color: var(--accent);
      background: transparent;
      box-shadow: none;
      color: var(--ink);
    }

    .domain-health-view.hidden { display: none !important; }

    .domain-health-view-heading {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 12px;
    }

    .domain-health-view-heading h3,
    .domain-health-view-heading p { margin: 0; }

    .domain-health-view-heading p { margin-top: 3px; }

    .domain-health-inventory-table {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

    .domain-health-inventory-head,
    .domain-health-inventory-row {
      display: grid;
      grid-template-columns: minmax(190px, 1.2fr) 110px 110px minmax(170px, 1fr) 112px;
      gap: 14px;
      align-items: center;
      padding: 11px 13px;
    }

    .domain-health-inventory-head {
      border-bottom: 1px solid var(--line);
      background: var(--panel);
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .domain-health-inventory-row + .domain-health-inventory-row { border-top: 1px solid var(--line); }
    .domain-health-inventory-row > * { min-width: 0; }
    .domain-health-inventory-row b { overflow-wrap: anywhere; }
    .domain-health-inventory-row .meta { line-height: 1.35; }
    .domain-health-inventory-row .compact-action { width: 100%; min-height: 34px; padding: 7px 9px; }

    .domain-reconciliation-table {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

    .domain-reconciliation-head,
    .domain-reconciliation-row {
      display: grid;
      grid-template-columns: minmax(190px, 1fr) minmax(190px, .9fr) minmax(240px, 1.2fr) 92px;
      gap: 14px;
      align-items: center;
      padding: 11px 13px;
    }

    .domain-reconciliation-head {
      border-bottom: 1px solid var(--line);
      background: var(--panel);
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .domain-reconciliation-row + .domain-reconciliation-row { border-top: 1px solid var(--line); }
    .domain-reconciliation-row > *,
    .domain-reconciliation-row label { min-width: 0; }
    .domain-reconciliation-row > div:first-child { display: grid; gap: 2px; }
    .domain-reconciliation-row select,
    .domain-reconciliation-row input[type="text"] { width: 100%; min-height: 38px; }
    .domain-reconciliation-context { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
    .domain-reconciliation-watch { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; }

    .domain-account-list {
      display: grid;
      border: 1px solid var(--line);
      border-radius: 6px;
      overflow: hidden;
      background: var(--white);
      margin-bottom: 14px;
    }

    .domain-account-row {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) minmax(170px, .8fr) auto;
      gap: 16px;
      align-items: center;
      padding: 12px 14px;
    }

    .domain-account-row + .domain-account-row { border-top: 1px solid var(--line); }
    .domain-account-row > * { min-width: 0; }
    .domain-account-row .status-dot { display: inline-block; margin-right: 7px; vertical-align: 1px; }
    .domain-account-row-actions,
    .domain-account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .domain-account-row-actions button { min-width: 76px; }
    .domain-account-editor { padding-top: 2px; }
    .domain-account-actions { margin-top: 12px; }
    .domain-account-editor .checkbox-label {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 42px;
    }
    .domain-account-editor .checkbox-label input[type="checkbox"] {
      width: 18px;
      height: 18px;
      min-height: 0;
      margin: 0;
      flex: 0 0 18px;
    }

    .domain-health-list {
      display: grid;
      gap: 8px;
    }

    .domain-health-row {
      display: grid;
      grid-template-columns: minmax(190px, 1.15fr) minmax(150px, .85fr) minmax(180px, 1fr) auto;
      gap: 14px;
      align-items: center;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 12px 13px;
    }

    .domain-health-row[data-tone="high"] { border-left: 4px solid var(--danger); }
    .domain-health-row[data-tone="medium"] { border-left: 4px solid #c67a00; }
    .domain-health-copy,
    .domain-health-facts,
    .domain-health-signals { min-width: 0; display: grid; gap: 4px; }
    .domain-health-copy > div,
    .domain-health-signals > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
    .domain-health-copy a { color: var(--ink); font-weight: 850; overflow-wrap: anywhere; }
    .domain-health-row .actions { margin: 0; justify-content: flex-end; }
    .domain-health-row .actions button { width: auto; white-space: nowrap; }
    .domain-health-action { display: grid; gap: 3px; margin-top: 3px; padding-top: 6px; border-top: 1px solid var(--line); }
    .domain-health-action b { font-size: 12px; }
    .domain-health-action span { color: var(--muted); font-size: 12px; }

    .domain-detail-link {
      width: auto;
      min-height: 0 !important;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      color: var(--ink);
      font: inherit;
      font-weight: 850;
      text-align: left;
      text-decoration: underline;
      text-underline-offset: 2px;
      text-shadow: none;
    }

    .domain-detail-link:hover {
      border: 0;
      background: transparent;
      box-shadow: none;
      color: var(--accent-dark);
      transform: none;
    }

    .domain-detail-backdrop {
      position: fixed;
      z-index: 110;
      inset: 0;
      background: rgba(24, 32, 40, 0.46);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 160ms ease, visibility 160ms ease;
    }

    .domain-detail-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }

    .domain-detail-modal {
      display: block;
      position: fixed;
      z-index: 111;
      top: 50%;
      left: 50%;
      width: min(820px, calc(100vw - 32px));
      max-height: min(820px, calc(100dvh - 32px));
      margin: 0;
      overflow-y: auto;
      visibility: hidden;
      opacity: 0;
      transform: translate(-50%, -48%) scale(.98);
      transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
      box-shadow: 0 24px 70px rgba(18, 26, 34, .28);
    }

    .domain-detail-modal.open {
      visibility: visible;
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }

    .domain-detail-modal .drawer-header { position: sticky; top: 0; z-index: 2; }
    .domain-detail-modal .drawer-header h2 { overflow-wrap: anywhere; }

    .domain-detail-section {
      display: grid;
      gap: 12px;
      padding: 2px 0 16px;
      border-bottom: 1px solid var(--line);
    }

    .domain-detail-section:last-child { padding-bottom: 0; border-bottom: 0; }
    .domain-detail-section h3 { margin: 0; font-size: 15px; }

    .domain-detail-facts {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
    }

    .domain-detail-fact { min-width: 0; padding: 11px 12px; background: var(--white); }
    .domain-detail-fact + .domain-detail-fact { border-left: 1px solid var(--line); }
    .domain-detail-fact b,
    .domain-detail-fact span { display: block; overflow-wrap: anywhere; }
    .domain-detail-fact span { margin-bottom: 3px; color: var(--muted); font-size: 12px; font-weight: 700; }

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

    .domain-detail-grid dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 7px 10px; margin: 0; }
    .domain-detail-grid > dl { align-content: start; }
    .domain-detail-grid dt { color: var(--muted); font-size: 12px; font-weight: 750; }
    .domain-detail-grid dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
    .domain-detail-edit { display: grid; gap: 9px; }
    .domain-detail-edit label { margin: 0; }
    .domain-detail-history { display: grid; border-top: 1px solid var(--line); }
    .domain-detail-history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
    .domain-detail-history-row:last-child { border-bottom: 0; }
    .browser-evidence-preview { display: grid; grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
    .browser-evidence-preview > a { display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
    .browser-evidence-preview img { display: block; width: 100%; max-height: 240px; object-fit: cover; object-position: top; }
    .browser-evidence-preview > div { display: grid; gap: 6px; min-width: 0; }
    .browser-evidence-preview span { color: var(--muted); }
    .browser-evidence-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
    .browser-evidence-links a { color: var(--accent-strong); font-weight: 700; }
    .domain-detail-action-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .domain-detail-action-toolbar button { width: auto; }
    .domain-detail-action-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
    .domain-detail-action-status > div { min-width: 0; padding: 10px 12px; }
    .domain-detail-action-status > div + div { border-left: 1px solid var(--line); }
    .domain-detail-action-status b, .domain-detail-action-status span { display: block; overflow-wrap: anywhere; }
    .domain-detail-action-status span { color: var(--muted); font-size: 12px; }
    .domain-emergence-section .section-heading { align-items: center; }
    .domain-emergence-score { display: inline-flex; align-items: baseline; gap: 2px; min-width: 62px; justify-content: center; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
    .domain-emergence-score b { font-size: 22px; }
    .domain-emergence-score small { color: var(--muted); }
    .domain-emergence-score.medium { border-color: #ddb978; background: #fff8ea; }
    .domain-emergence-score.high { border-color: #e3a0a5; background: #fff1f2; }
    .domain-emergence-chart { display: flex; align-items: end; gap: 3px; height: 92px; padding: 10px 12px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
    .domain-emergence-chart > span { flex: 1 1 0; min-width: 4px; max-width: 28px; height: var(--emergence-score); border-radius: 2px 2px 0 0; background: var(--accent); opacity: .82; }
    .domain-emergence-chart > span:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
    .domain-emergence-empty { padding: 18px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); text-align: center; }
    .domain-radar-history-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: 14px; }
    .domain-radar-history-heading h4,
    .domain-radar-history-heading p { margin: 0; }
    .domain-radar-history-heading p { margin-top: 3px; color: var(--muted); font-size: 12px; }
    .domain-radar-momentum { color: var(--muted); font-size: 13px; font-weight: 750; text-align: right; }
    .domain-radar-momentum.medium { color: var(--accent-dark); }
    .domain-radar-momentum.low { color: #7d5a18; }
    .domain-rank-chart { display: flex; align-items: end; gap: 2px; height: 92px; margin-top: 8px; padding: 10px 12px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
    .domain-rank-chart > span { flex: 1 1 0; min-width: 2px; max-width: 18px; height: var(--radar-rank-height); border-radius: 2px 2px 0 0; background: #5d8790; opacity: .8; }
    .domain-rank-chart > span:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
    .domain-certificate-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .domain-certificate-facts > div { min-width: 0; padding: 9px 11px; }
    .domain-certificate-facts > div + div { border-left: 1px solid var(--line); }
    .domain-certificate-facts span, .domain-certificate-facts b { display: block; }
    .domain-certificate-facts span { color: var(--muted); font-size: 12px; }
    .domain-certificate-table { margin-top: 10px; border-top: 1px solid var(--line); }
    .domain-certificate-row { display: grid; grid-template-columns: minmax(180px, 1fr) 110px 110px 90px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
    .domain-certificate-row > span { min-width: 0; overflow-wrap: anywhere; }
    .domain-certificate-row b, .domain-certificate-row small { display: block; }
    .domain-certificate-row small { margin-top: 2px; color: var(--muted); }
    .domain-certificate-head { color: var(--muted); font-size: 12px; font-weight: 750; }
    .domain-hostname-heading { margin-top: 18px; }
    .domain-hostname-table { border-top: 1px solid var(--line); }
    .domain-hostname-row { display: grid; grid-template-columns: minmax(170px, 1.35fr) minmax(120px, .85fr) minmax(150px, 1.15fr) 90px minmax(125px, .8fr); gap: 12px; align-items: center; min-height: 48px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
    .domain-hostname-row > span { min-width: 0; overflow-wrap: anywhere; }
    .domain-hostname-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 500; }
    .domain-hostname-head { min-height: 34px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
    .domain-hostname-decision { min-height: 34px; padding: 6px 28px 6px 8px; font-size: 12px; }
    .wanted-certificate-history { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
    .wanted-certificate-history summary { cursor: pointer; font-weight: 750; }
    .wanted-certificate-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
    .wanted-certificate-row b, .wanted-certificate-row small { display: block; overflow-wrap: anywhere; }
    .wanted-certificate-row small { color: var(--muted); }
    .domain-emergence-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .domain-emergence-facts > div { min-width: 0; padding: 9px 11px; }
    .domain-emergence-facts > div + div { border-left: 1px solid var(--line); }
    .domain-emergence-facts span, .domain-emergence-facts b { display: block; overflow-wrap: anywhere; }
    .domain-emergence-facts span { color: var(--muted); font-size: 12px; }
    .domain-detail-modal .portfolio-health { display: grid; gap: 3px; }
    .domain-detail-modal .portfolio-health b,
    .domain-detail-modal .portfolio-health span { display: block; }

    .domain-health-change-list {
      display: grid;
      gap: 0;
      padding: 0;
    }

    .domain-health-change-list .domain-health-inventory-head {
      grid-template-columns: minmax(170px, .8fr) minmax(0, 1.7fr) auto;
    }

    .domain-health-change-list .domain-health-inventory-head span:last-child { display: none; }

    .domain-health-change {
      display: grid;
      grid-template-columns: minmax(170px, .8fr) minmax(0, 1.7fr) auto;
      gap: 12px;
      border-bottom: 1px solid var(--line);
      padding: 11px 13px;
    }

    .domain-health-change:last-child { border-bottom: 0; }

    @media (max-width: 980px) {
      .domain-health-toolbar { grid-template-columns: 1fr 1fr; }
      .domain-health-toolbar label:first-child { grid-column: 1 / -1; }
      .domain-health-row { grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr); }
      .domain-health-row .actions { justify-content: flex-start; }
      .domain-health-inventory-head { display: none; }
      .domain-health-inventory-row { grid-template-columns: 1fr 1fr; }
      .domain-reconciliation-head { display: none; }
      .domain-reconciliation-row { grid-template-columns: 1fr 1fr; }
      .domain-reconciliation-row > div:first-child { grid-column: 1 / -1; }
      .domain-account-row { grid-template-columns: 1fr; gap: 8px; }
      .domain-account-row-actions button { flex: 1 1 90px; }
      .domain-detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .domain-detail-fact:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
      .domain-detail-fact:nth-child(4) { border-top: 1px solid var(--line); }
    }

    @media (max-width: 760px) {
      .domain-setup-heading,
      .domain-setup-toolbar,
      .domain-setup-footer { align-items: flex-start; flex-direction: column; }
      .domain-setup-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .domain-setup-steps { grid-template-columns: 1fr; }
      .domain-setup-record { grid-template-columns: 1fr; }
      .domain-draft-row { grid-template-columns: minmax(0, 1fr) 120px 36px; }
      .domain-setup-footer .actions { width: 100%; }
      .domain-health-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .domain-health-toolbar { grid-template-columns: 1fr; }
      .domain-health-toolbar label:first-child { grid-column: auto; }
      .domain-health-row { grid-template-columns: 1fr; }
      .domain-health-row .actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
      .domain-health-row .actions button { width: 100%; }
      .domain-health-change { grid-template-columns: 1fr; }
      .domain-health-view-heading { align-items: flex-start; flex-direction: column; }
      .domain-health-inventory-row { grid-template-columns: 1fr; }
      .domain-reconciliation-row { grid-template-columns: 1fr; }
      .domain-reconciliation-context { grid-template-columns: 1fr; }
      .domain-detail-grid { grid-template-columns: 1fr; }
      .domain-detail-action-status { grid-template-columns: 1fr; }
      .domain-detail-action-status > div + div { border-left: 0; border-top: 1px solid var(--line); }
      .domain-emergence-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .domain-emergence-facts > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
      .domain-emergence-facts > div:nth-child(4) { border-top: 1px solid var(--line); }
      .domain-radar-history-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
      .domain-radar-momentum { text-align: left; }
      .domain-certificate-facts { grid-template-columns: 1fr 1fr; }
      .domain-certificate-facts > div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
      .domain-certificate-row { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; }
      .domain-certificate-row > span:nth-child(3), .domain-certificate-head > span:nth-child(3) { display: none; }
      .domain-certificate-row:not(.domain-certificate-head) > span:nth-child(2)::before { content: "Issued "; color: var(--muted); }
      .domain-hostname-row { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; }
      .domain-hostname-row > span:nth-child(2), .domain-hostname-head > span:nth-child(2), .domain-hostname-head > span:nth-child(4), .domain-hostname-head > span:nth-child(5) { display: none; }
      .domain-hostname-row:not(.domain-hostname-head) > span:nth-child(4)::before { content: "Seen "; color: var(--muted); }
      .domain-hostname-row:not(.domain-hostname-head) > span:nth-child(5) { grid-column: 1 / -1; }
      .domain-hostname-decision { width: 100%; }
      .domain-detail-modal { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
      .domain-detail-modal .drawer-header { align-items: center; }
      .domain-detail-modal .drawer-header-actions > :not([data-close-domain-detail]) { display: none; }
    }

    .portfolio-simple-tools {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      margin: 12px 0 16px;
      overflow: hidden;
    }

    .portfolio-simple-tools summary {
      cursor: pointer;
      padding: 13px 16px;
      font-weight: 800;
      color: var(--ink);
      list-style-position: inside;
    }

    .portfolio-simple-tools[open] summary {
      border-bottom: 1px solid var(--line);
      background: var(--panel);
    }

    .portfolio-secondary-tools {
      margin-top: 0;
    }

    .portfolio-secondary-tools .activity-log {
      border: 0;
      margin-bottom: 0;
      padding: 0;
    }

    .portfolio-tools-body {
      display: grid;
      gap: 12px;
      padding: 14px;
    }

    .portfolio-advanced-filters {
      display: grid;
      gap: 8px;
    }

    .portfolio-advanced-filters > b {
      font-size: 13px;
    }

    .portfolio-view-tools {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 12px;
      display: grid;
      grid-template-columns: minmax(180px, 1.4fr) minmax(140px, .7fr) minmax(180px, 1fr) auto;
      gap: 10px;
      align-items: end;
      margin-bottom: 12px;
    }

    .portfolio-simple-actions + .portfolio-health {
      margin-top: 0;
    }

    .portfolio-human-review-queue {
      display: grid;
      gap: 10px;
      margin: 12px 0;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--white);
      padding: 14px;
    }

    .portfolio-human-review-heading,
    .portfolio-human-review-main,
    .portfolio-human-review-meta {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }

    .portfolio-human-review-heading h2,
    .portfolio-human-review-heading p,
    .portfolio-human-review-row p,
    .portfolio-human-review-guardrail {
      margin: 0;
    }

    .portfolio-human-review-heading h2 {
      font-size: 18px;
    }

    .portfolio-human-review-count {
      flex: 0 0 auto;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--surface-soft);
      padding: 4px 9px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 750;
      white-space: nowrap;
    }

    .portfolio-human-review-count.needs-review {
      border-color: color-mix(in srgb, var(--warn) 45%, var(--line));
      color: var(--warn);
    }

    .portfolio-human-review-count.stale {
      border-color: color-mix(in srgb, var(--risk) 45%, var(--line));
      color: var(--risk);
    }

    .portfolio-human-review-count.ready {
      border-color: color-mix(in srgb, var(--ok) 45%, var(--line));
      color: var(--ok);
    }

    .portfolio-human-review-list {
      display: grid;
      gap: 12px;
    }

    .portfolio-human-review-group {
      display: grid;
      gap: 8px;
      border-top: 1px solid var(--line);
      padding-top: 11px;
    }

    .portfolio-human-review-group:first-child {
      border-top: 0;
      padding-top: 0;
    }

    .portfolio-human-review-group-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .portfolio-human-review-group-heading h3,
    .portfolio-human-review-group-heading p {
      margin: 0;
    }

    .portfolio-human-review-group-heading h3 {
      font-size: 14px;
    }

    .portfolio-human-review-group-heading p {
      margin-top: 2px;
      color: var(--muted);
      font-size: 11px;
    }

    .portfolio-human-review-group-heading > span {
      display: grid;
      place-items: center;
      min-width: 26px;
      min-height: 26px;
      border-radius: 999px;
      background: var(--surface-soft);
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
    }

    .portfolio-human-review-row {
      display: grid;
      gap: 7px;
      border: 1px solid var(--line);
      border-left: 4px solid var(--warn);
      border-radius: 8px;
      background: var(--panel);
      padding: 11px;
    }

    .portfolio-human-review-row[data-review-state="ready"] {
      border-left-color: var(--ok);
    }

    .portfolio-human-review-row[data-review-state="stale"] {
      border-left-color: var(--risk);
    }

    .portfolio-human-review-group[data-review-group="view-only"] .portfolio-human-review-row {
      border-left-color: var(--muted);
    }

    .portfolio-human-review-main > div {
      display: grid;
      gap: 2px;
    }

    .portfolio-human-review-main > .portfolio-human-review-pills {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 6px;
    }

    .portfolio-review-integrity {
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--surface-soft);
      padding: 3px 8px;
      color: var(--muted);
      font-size: 10px;
      font-weight: 800;
      white-space: nowrap;
    }

    .portfolio-review-integrity-row {
      display: flex;
      align-items: center;
      gap: 8px;
      border-radius: 7px;
      background: color-mix(in srgb, var(--surface-soft) 78%, var(--white));
      padding: 7px 8px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.35;
    }

    .portfolio-review-integrity-row > span:last-child {
      min-width: 0;
    }

    .portfolio-review-integrity.verified {
      border-color: color-mix(in srgb, var(--ok) 45%, var(--line));
      color: var(--ok);
    }

    .portfolio-review-integrity.failed {
      border-color: color-mix(in srgb, var(--risk) 45%, var(--line));
      background: color-mix(in srgb, var(--risk) 7%, var(--white));
      color: var(--risk);
    }

    .portfolio-review-integrity.unsealed {
      border-color: color-mix(in srgb, var(--warn) 45%, var(--line));
      color: var(--warn);
    }

    @media (max-width: 520px) {
      .portfolio-review-integrity-row {
        align-items: flex-start;
        flex-direction: column;
      }
    }

    .portfolio-human-review-row p,
    .portfolio-human-review-meta,
    .portfolio-human-review-empty {
      color: var(--muted);
      font-size: 12px;
    }

    .portfolio-human-review-meta {
      justify-content: flex-start;
      flex-wrap: wrap;
      gap: 6px 14px;
    }

    .portfolio-human-review-empty {
      display: grid;
      gap: 3px;
      border: 1px dashed var(--line);
      border-radius: 8px;
      padding: 12px;
    }

    .portfolio-human-review-empty.compact {
      padding: 9px 11px;
    }

    @media (max-width: 680px) {
      .portfolio-human-review-heading,
      .portfolio-human-review-main {
        align-items: stretch;
        flex-direction: column;
      }

      .portfolio-human-review-heading > .portfolio-human-review-count,
      .portfolio-human-review-main > .pill,
      .portfolio-human-review-main > .portfolio-human-review-pills {
        align-self: flex-start;
      }

      .portfolio-human-review-main > .portfolio-human-review-pills {
        justify-content: flex-start;
      }
    }

    #portfolioCardDashboard {
      grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    }

    .portfolio-empty-state {
      grid-column: 1 / -1;
      min-height: 210px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 28px;
      display: grid;
      place-content: center;
      justify-items: center;
      gap: 8px;
      text-align: center;
    }

    .portfolio-empty-state b {
      font-size: 18px;
    }

    .portfolio-empty-state span {
      max-width: 520px;
      color: var(--muted);
      line-height: 1.45;
    }

    .portfolio-empty-state button {
      width: auto;
      margin-top: 6px;
    }

    .operations-home {
      display: grid;
      gap: 12px;
      margin-bottom: 16px;
    }

    .attention-dashboard {
      display: grid;
      gap: 14px;
      margin-bottom: 18px;
    }

    .attention-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--white);
    }

    .portfolio-review-center { display: block; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
    .portfolio-review-center > summary { padding: 16px 18px; cursor: pointer; list-style: none; }
    .portfolio-review-center > summary::-webkit-details-marker { display: none; }
    .portfolio-review-center[open] > summary { border-bottom: 1px solid var(--line); background: var(--panel); }
    .portfolio-review-center-body { display: grid; gap: 18px; padding: 20px 24px 22px; }
    .portfolio-review-center-heading, .portfolio-review-subheading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
    .portfolio-review-center-heading h3, .portfolio-review-subheading h4 { margin: 4px 0; }
    .portfolio-review-center-heading p { margin: 0; color: var(--muted); }
    .portfolio-review-center-toggle { align-self: center; flex: 0 0 auto; color: var(--accent-dark); font-size: .78rem; font-weight: 750; }
    .portfolio-review-center[open] .portfolio-review-center-toggle { font-size: 0; }
    .portfolio-review-center[open] .portfolio-review-center-toggle::after { content: "Close evidence review"; font-size: .78rem; }
    .portfolio-review-center-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
    .portfolio-review-center-actions button { width: auto; }
    .portfolio-review-center-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
    .portfolio-review-center-stats > div { display: grid; gap: 4px; padding: 13px 15px; border-left: 1px solid var(--line); }
    .portfolio-review-center-stats > div:first-child { border-left: 0; }
    .portfolio-review-center-stats b { font-size: 1.3rem; }
    .portfolio-review-center-stats span { color: var(--muted); font-size: .78rem; }
    .portfolio-review-center-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 24px; }
    .portfolio-review-center-grid > section { min-width: 0; }
    .portfolio-review-list { display: grid; margin-top: 8px; border-top: 1px solid var(--line); }
    .portfolio-review-row { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .portfolio-review-row-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
    .portfolio-review-row-heading > div { display: grid; gap: 3px; min-width: 0; }
    .portfolio-review-row-heading button { width: auto; flex: 0 0 auto; }
    .portfolio-review-evidence-links { display: flex; gap: 7px; flex-wrap: wrap; }
    .portfolio-review-evidence-links button { width: auto; max-width: 100%; text-align: left; }
    .portfolio-review-gaps { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
    .portfolio-review-gaps li { padding-left: 12px; border-left: 3px solid var(--warn); color: var(--muted); font-size: .82rem; }
    .portfolio-review-gaps b { color: var(--ink); }
    .portfolio-review-history { border-top: 1px solid var(--line); padding-top: 12px; }
    .portfolio-review-history > summary { cursor: pointer; font-weight: 750; }
    .portfolio-review-history-row { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .83rem; }
    .portfolio-identity-resolution { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
    .portfolio-identity-resolution .portfolio-review-subheading p { margin: 3px 0 0; }
    .portfolio-identity-resolution .portfolio-review-subheading button { width: auto; }
    .portfolio-identity-list { display: grid; gap: 10px; }
    .portfolio-identity-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--white); }
    .portfolio-identity-card.event-only { border-left-color: var(--warn); }
    .portfolio-identity-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
    .portfolio-identity-heading > div { display: grid; gap: 4px; }
    .portfolio-identity-heading h5 { margin: 0; font-size: 1rem; }
    .portfolio-identity-score { display: grid; justify-items: end; gap: 4px; flex: 0 0 auto; }
    .portfolio-identity-evidence { display: flex; flex-wrap: wrap; gap: 6px; }
    .portfolio-identity-evidence span { padding: 4px 7px; border-radius: 999px; background: var(--panel); color: var(--muted); font-size: .75rem; }
    .portfolio-identity-changes { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
    .portfolio-identity-changes li { display: grid; grid-template-columns: minmax(150px, .35fr) 1fr; gap: 12px; font-size: .82rem; }
    .portfolio-identity-changes span { color: var(--muted); overflow-wrap: anywhere; }
    .portfolio-identity-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .portfolio-identity-actions .button, .portfolio-identity-actions button { width: auto; }
    .portfolio-identity-actions .meta { margin-right: auto; }

    @media (max-width: 900px) {
      .portfolio-review-center-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .portfolio-review-center-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 620px) {
      .portfolio-review-center > summary { padding: 15px; }
      .portfolio-review-center-body { padding: 16px; }
      .portfolio-review-center-heading, .portfolio-review-row-heading { flex-direction: column; }
      .portfolio-review-center-actions, .portfolio-review-center-actions button, .portfolio-review-row-heading button { width: 100%; }
      .portfolio-review-center-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .portfolio-review-center-stats > div:nth-child(odd) { border-left: 0; }
      .portfolio-review-history-row { flex-direction: column; gap: 3px; }
      .portfolio-identity-resolution { padding: 14px; }
      .portfolio-identity-resolution .portfolio-review-subheading, .portfolio-identity-heading { flex-direction: column; }
      .portfolio-identity-resolution .portfolio-review-subheading button, .portfolio-identity-actions, .portfolio-identity-actions button, .portfolio-identity-actions .button { width: 100%; }
      .portfolio-identity-score { justify-items: start; }
      .portfolio-identity-changes li { grid-template-columns: 1fr; gap: 2px; }
    }

    .attention-stat {
      border: 0;
      border-left: 1px solid var(--line);
      border-radius: 0;
      background: var(--white);
      padding: 14px;
      min-height: 86px;
    }

    .attention-stat:first-child {
      border-left: 0;
    }

    .attention-stat b {
      display: block;
      font-size: 28px;
      line-height: 1;
      margin-bottom: 6px;
    }

    .attention-stat span {
      display: block;
      color: var(--ink);
      font-size: 13px;
      font-weight: 750;
      line-height: 1.35;
    }

    .attention-stat small {
      display: block;
      margin-top: 3px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.35;
    }

    .ai-briefing {
      display: grid;
      gap: 0;
      overflow: hidden;
      border: 1px solid #b8d8d2;
      border-radius: 8px;
      background: linear-gradient(135deg, #f5fbfa 0%, #fff 70%);
    }

    .ai-briefing-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 15px 16px;
    }

    .ai-briefing-heading h3,
    .ai-briefing-heading p { margin: 0; }
    .ai-briefing-heading p { margin-top: 4px; color: var(--muted); font-size: 13px; }
    .ai-briefing-heading button { width: auto; flex: 0 0 auto; }
    .ai-briefing-label { display: block; margin-bottom: 3px; color: var(--accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

    .ai-briefing-body {
      display: grid;
      gap: 12px;
      border-top: 1px solid #d7e8e4;
      padding: 15px 16px;
    }

    .ai-briefing-body h4,
    .ai-briefing-body p { margin: 0; }
    .ai-briefing-body > p { color: var(--ink); line-height: 1.5; }
    .ai-briefing-themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 9px; }
    .ai-briefing-theme { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .78); padding: 11px 12px; }
    .ai-briefing-theme p,
    .ai-briefing-notes { color: var(--muted); font-size: 13px; line-height: 1.45; }
    .ai-briefing-notes { margin: 0; padding-left: 18px; }
    .ai-briefing-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }
    .ai-briefing-sources > span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
    .ai-briefing-sources button { width: auto; min-height: 28px; border: 1px solid #c9ddd9; border-radius: 999px; background: #fff; padding: 4px 9px; color: var(--accent-dark); font-size: 11px; box-shadow: none; }
    .ai-briefing-sources button:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); transform: none; box-shadow: none; }
    .ai-briefing-sources button small { color: var(--muted); font-size: inherit; }
    .ai-briefing-feedback { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #d7e8e4; margin-top: 2px; padding-top: 12px; }
    .ai-briefing-feedback > span { color: var(--muted); font-size: 12px; }
    .ai-briefing-feedback > div { display: flex; flex-wrap: wrap; gap: 6px; }
    .ai-briefing-feedback button { width: auto; min-height: 30px; border-color: var(--line); background: #fff; padding: 5px 9px; color: var(--muted); font-size: 11px; box-shadow: none; }
    .ai-briefing-feedback button:hover,
    .ai-briefing-feedback button.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); transform: none; box-shadow: none; }
    .ai-briefing-feedback button.selected { opacity: 1; }
    .ai-briefing-guardrail { margin: 0; border-top: 1px solid #d7e8e4; padding: 9px 16px; color: var(--muted); font-size: 11px; }
    .monitoring-digest-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
    .monitoring-digest-heading h3,
    .monitoring-digest-heading p { margin: 0; }
    .monitoring-digest-heading button { width: auto; flex: 0 0 auto; }
    .monitoring-digest-ai-briefing { margin: 0 12px 12px; border: 1px solid #b8d8d2; border-radius: 7px; background: #f5fbfa; }
    .monitoring-digest-ai-briefing > .ai-briefing-guardrail { margin: 0 -16px -15px; }
    .case-timeline-ai-briefing { margin-top: 12px; border: 1px solid #b8d8d2; border-radius: 7px; background: #f5fbfa; }
    .case-timeline-ai-briefing > .ai-briefing-guardrail { margin: 0 -16px -15px; }

    .gazette-activity { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 13px; }
    .gazette-activity > h4,
    .gazette-activity > h3 { margin: 0 0 4px; }
    .gazette-activity-list { display: grid; gap: 8px; margin-top: 10px; }
    .gazette-activity-item { display: grid; gap: 7px; border: 1px solid #c9ddd9; border-radius: 7px; background: #f5fbfa; padding: 11px 12px; }
    .gazette-activity-item.reviewed { border-color: var(--line); background: var(--panel); }
    .gazette-activity-item > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
    .gazette-activity-item p { margin: 0; line-height: 1.45; }
    .gazette-activity-item .actions { align-items: center; }
    .gazette-verification { display: grid; gap: 3px; border-left: 3px solid #c8a44d; padding: 7px 9px; background: rgba(255, 255, 255, .72); }
    .gazette-verification.verified { border-left-color: var(--forest-700); }
    .gazette-verification.conflict { border-left-color: #c65b4a; background: #fff7f5; }
    .gazette-verification.unavailable { border-left-color: #c8a44d; }
    .gazette-verification > span:not(.meta) { color: var(--ink); font-size: 13px; line-height: 1.4; }

    [data-case-timeline-source].ai-briefing-source-highlight {
      background: #e8f6f3;
      box-shadow: inset 4px 0 0 var(--accent);
      transition: background .25s ease, box-shadow .25s ease;
    }

    .protection-queue-row.ai-briefing-source-highlight {
      background: #e8f6f3;
      box-shadow: inset 4px 0 0 var(--accent);
      transition: background .25s ease, box-shadow .25s ease;
    }

    @media (max-width: 680px) {
      .ai-briefing-heading { align-items: stretch; flex-direction: column; }
      .ai-briefing-heading button { width: 100%; }
      .ai-briefing-feedback { align-items: stretch; flex-direction: column; }
      .monitoring-digest-heading { align-items: stretch; flex-direction: column; }
      .monitoring-digest-heading button { width: 100%; }
    }

    .protection-queue {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

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

    .protection-queue-heading h3,
    .protection-queue-heading p { margin: 0; }
    .protection-queue-heading .section-eyebrow { display: block; margin-bottom: 3px; }
    .protection-queue-heading p { margin-top: 3px; color: var(--muted); }
    .protection-queue-heading-actions { display: flex; gap: 8px; }
    .protection-queue-heading-actions button { width: auto; min-width: 92px; }

    .protection-queue-toolbar {
      display: grid;
      grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
      gap: 12px;
      align-items: center;
      padding: 10px 14px;
      border-bottom: 1px solid var(--line);
      background: #f7f9fb;
    }

    .protection-queue-toolbar input { min-height: 38px; }
    .protection-queue-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
    .protection-queue-filters .filter-chip { flex: 0 0 auto; min-height: 34px; padding: 6px 10px; }

    .protection-queue-head {
      display: grid;
      grid-template-columns: minmax(280px, 1.6fr) minmax(120px, .65fr) 92px minmax(130px, .65fr) 184px;
      gap: 12px;
      align-items: center;
    }

    .protection-queue-head {
      padding: 8px 14px;
      border-bottom: 1px solid var(--line);
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
    }

    .protection-queue-list { display: grid; }
    .protection-queue-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 184px;
      gap: 10px;
      align-items: center;
      width: 100%;
      min-height: 78px;
      padding: 11px 14px;
      border-bottom: 1px solid var(--line);
      background: var(--white);
      color: var(--ink);
    }

    .protection-queue-row:last-child { border-bottom: 0; }
    .protection-queue-row:hover { background: #f7faf9; color: var(--ink); transform: none; box-shadow: none; }
    .protection-queue-main {
      display: grid;
      grid-template-columns: minmax(250px, 1.45fr) minmax(150px, .8fr) 86px minmax(125px, .65fr);
      gap: 12px;
      align-items: center;
      min-width: 0;
      min-height: 44px;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: var(--ink);
      text-align: left;
      box-shadow: none;
    }
    .protection-queue-main:hover { background: transparent; color: var(--ink); transform: none; box-shadow: none; }
    .protection-queue-main:focus-visible { position: relative; z-index: 1; }
    .protection-queue-main > span { display: grid; gap: 3px; min-width: 0; }
    .protection-queue-signal { overflow: hidden; }
    .protection-queue-signal b,
    .protection-queue-signal small { display: block; width: 100%; }
    .protection-queue-main b,
    .protection-queue-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .protection-queue-main b { font-size: 13px; }
    .protection-queue-main small { color: var(--muted); font-size: 12px; font-weight: 400; }
    .protection-queue-origin { color: var(--accent-dark) !important; font-size: 10px !important; font-weight: 750 !important; letter-spacing: .02em; }
    .protection-queue-row[data-queue-group="administrative"] { background: #f8fafb; }
    .protection-queue-priority { display: flex !important; grid-template-columns: none; align-items: center; gap: 8px !important; font-size: 12px; font-weight: 700; }
    .protection-queue-priority .incident-severity-dot { flex: 0 0 auto; }
    .protection-queue-actions { display: grid; grid-template-columns: repeat(5, 32px); gap: 5px; justify-content: end; }
    .protection-queue-actions button { display: inline-grid; place-items: center; width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0; border-color: transparent; background: transparent; color: var(--muted); box-shadow: none; }
    .protection-queue-actions button:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); transform: none; box-shadow: none; }
    .protection-queue-actions .ui-icon { width: 16px; height: 16px; }
    .protection-queue-row.deferred { background: #f8fafb; }
    .protection-queue-row.deferred .protection-queue-main { opacity: .72; }
    .protection-queue-action-modal { width: min(560px, calc(100vw - 32px)); }
    .protection-queue-action-body { display: grid; gap: 16px; }
    .protection-queue-action-fields { display: grid; gap: 12px; }
    .protection-queue-action-fields label { margin: 0; }
    .protection-queue-action-note { padding: 11px 12px; border-left: 4px solid var(--accent); background: var(--accent-soft); color: var(--muted); font-size: 13px; }
    .attention-review-facts {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      border: 1px solid var(--line);
      background: var(--panel);
    }
    .attention-review-facts > div { display: grid; gap: 3px; padding: 10px 12px; border-left: 1px solid var(--line); }
    .attention-review-facts > div:first-child { border-left: 0; }
    .attention-review-facts span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
    .attention-review-facts b { font-size: 13px; }
    .attention-review-brief {
      display: grid;
      gap: 10px;
      padding: 14px;
      border: 1px solid var(--line-strong);
      border-left: 4px solid var(--accent);
      background: var(--white);
    }
    .attention-review-brief h3 { margin: 0; font-size: 17px; line-height: 1.35; }
    .attention-review-brief ol { display: grid; gap: 8px; margin: 0; padding-left: 22px; color: var(--muted); }
    .attention-review-sources { display: grid; gap: 7px; }
    .attention-review-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .attention-review-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 58px;
      padding: 10px 12px;
      border: 1px solid #b8d2cd;
      background: var(--accent-soft);
      color: var(--accent-dark);
      text-decoration: none;
    }
    .attention-review-link span { display: grid; gap: 2px; }
    .attention-review-link b { font-size: 13px; }
    .attention-review-link small { color: var(--muted); font-size: 11px; line-height: 1.3; }
    .attention-review-link strong { font-size: 18px; }
    .attention-review-link:hover { border-color: var(--accent); background: #e3f0ed; color: var(--accent-dark); }
    .attention-review-link:focus-visible { outline: 3px solid rgba(25, 92, 86, .25); outline-offset: 2px; }
    .attention-review-outcome { display: grid; gap: 7px; font-weight: 750; }
    .attention-review-outcome select { font-weight: 600; }
    .attention-review-evidence { display: grid; gap: 7px; font-weight: 750; }
    .attention-review-evidence > span { color: var(--muted); font-size: 11px; font-weight: 600; }
    .attention-review-evidence textarea { min-height: 88px; resize: vertical; font-weight: 500; }
    .attention-review-boundary {
      display: grid;
      gap: 3px;
      padding: 11px 12px;
      border: 1px solid #c9ddd9;
      background: var(--accent-soft);
      color: var(--muted);
      font-size: 13px;
    }
    .attention-review-boundary b { color: var(--accent-dark); }
    .attention-review-success {
      display: grid;
      grid-template-columns: 38px minmax(0, 1fr);
      gap: 12px;
      align-items: start;
      padding: 16px;
      border: 1px solid #b8d2cd;
      background: var(--accent-soft);
    }
    .attention-review-success-icon { display: grid; place-items: center; width: 38px; height: 38px; background: var(--accent); color: var(--white); font-size: 20px; font-weight: 800; }
    .attention-review-success h3,
    .attention-review-success p { margin: 0; }
    .attention-review-success > div { display: grid; gap: 7px; }
    .attention-review-success p { color: var(--muted); }
    .attention-review-success > div > div { display: grid; gap: 3px; margin-top: 4px; padding-top: 10px; border-top: 1px solid #b8d2cd; }
    .attention-review-success > div > div span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
    .attention-review-success > div > div b { font-size: 13px; }
    @media (max-width: 620px) {
      .attention-review-facts { grid-template-columns: minmax(0, 1fr); }
      .attention-review-facts > div { border-top: 1px solid var(--line); border-left: 0; }
      .attention-review-facts > div:first-child { border-top: 0; }
      .attention-review-links { grid-template-columns: minmax(0, 1fr); }
    }
    .protection-queue-empty { display: grid; gap: 3px; padding: 24px 14px; text-align: center; }
    .protection-queue-empty span { color: var(--muted); font-size: 13px; }

    .incident-case-panel {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

    .incident-case-panel .operations-attention-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .incident-case-panel .operations-attention-header p { margin: 0; color: var(--muted); }
    .incident-case-panel .operations-attention-header button { width: auto; }
    .incident-case-list { display: grid; }

    .incident-case-row {
      display: grid;
      grid-template-columns: 14px minmax(220px, 1fr) minmax(130px, .34fr) 80px;
      align-items: center;
      gap: 12px;
      width: 100%;
      min-height: 64px;
      padding: 11px 14px;
      border: 0;
      border-bottom: 1px solid var(--line);
      border-radius: 0;
      background: var(--white);
      color: var(--ink);
      text-align: left;
      box-shadow: none;
    }

    .incident-case-row:last-child { border-bottom: 0; }
    .incident-case-row:hover { background: var(--panel); color: var(--ink); transform: none; }
    .incident-case-row span { min-width: 0; }
    .incident-case-main,
    .incident-case-owner,
    .incident-case-progress { display: grid; gap: 2px; }
    .incident-case-main b,
    .incident-case-owner b,
    .incident-case-progress b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
    .incident-case-main > span,
    .incident-case-owner > span,
    .incident-case-progress > span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
    .incident-case-progress { text-align: right; }

    .incident-severity-dot {
      display: inline-block;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--muted);
    }

    .incident-severity-dot.critical { background: #a61b2b; box-shadow: 0 0 0 3px #f8dce1; }
    .incident-severity-dot.high { background: #d64545; box-shadow: 0 0 0 3px #fbe4e4; }
    .incident-severity-dot.medium { background: #c67a00; box-shadow: 0 0 0 3px #fff0d5; }
    .incident-severity-dot.low { background: var(--forest-700); box-shadow: 0 0 0 3px var(--forest-100); }

    .incident-case-empty {
      display: grid;
      gap: 3px;
      padding: 16px 14px;
    }

    .incident-case-empty span { color: var(--muted); font-size: 13px; }

    .incident-case-modal { width: min(900px, calc(100vw - 32px)); }
    .incident-case-body { display: grid; gap: 18px; }
    .incident-case-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .incident-case-form label { display: grid; gap: 5px; font-weight: 700; }
    .incident-case-form .full { grid-column: 1 / -1; }
    .incident-case-form textarea { min-height: 82px; }

    .incident-source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .incident-source-list > div {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 3px 10px;
      padding: 9px 10px;
      border: 1px solid var(--line);
      border-radius: 6px;
    }
    .incident-source-list b { overflow-wrap: anywhere; font-size: 13px; }
    .incident-source-list span { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
    .incident-source-list a { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 12px; }

    .incident-playbook { display: grid; }
    .incident-playbook label {
      display: grid;
      grid-template-columns: 18px minmax(0, 1fr);
      align-items: start;
      gap: 10px;
      padding: 10px 0;
      border-bottom: 1px solid var(--line);
      cursor: pointer;
    }
    .incident-playbook label:last-child { border-bottom: 0; }
    .incident-playbook input { margin-top: 2px; }
    .incident-playbook span { display: grid; gap: 2px; }
    .incident-playbook b { font-size: 13px; }
    .incident-playbook small { color: var(--muted); font-size: 12px; font-weight: 400; }

    .incident-timeline { display: grid; }
    .incident-timeline > div { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; padding: 8px 0; }
    .incident-timeline > div > span { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--accent); }
    .incident-timeline > div > div { display: grid; gap: 2px; }
    .incident-timeline b { font-size: 13px; }
    .incident-timeline small { color: var(--muted); font-size: 12px; }
    .incident-evidence-record .section-heading { align-items: center; }
    .incident-evidence-record .section-heading button { width: auto; white-space: nowrap; }
    .incident-evidence-list { border-top: 1px solid var(--line); }
    .incident-evidence-snapshot { border-bottom: 1px solid var(--line); }
    .incident-evidence-snapshot summary {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
      padding: 11px 0;
      color: var(--ink);
      cursor: pointer;
      list-style: none;
    }
    .incident-evidence-snapshot summary::-webkit-details-marker { display: none; }
    .incident-evidence-snapshot summary > span:first-child { display: grid; gap: 2px; }
    .incident-evidence-snapshot summary small { color: var(--muted); font-weight: 400; }
    .incident-evidence-snapshot summary > span:last-child { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
    .incident-evidence-body { padding: 0 0 13px; }
    .incident-evidence-body > p { margin: 0 0 10px; color: var(--muted); }
    .incident-evidence-body dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
    .incident-evidence-body dl > div { display: grid; gap: 2px; padding: 8px 10px 8px 0; border-top: 1px solid var(--line); }
    .incident-evidence-body dt { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
    .incident-evidence-body dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; }
    .incident-evidence-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; }
    .incident-evidence-links a { font-size: 12px; font-weight: 700; }
    .incident-case-footer { display: flex; justify-content: space-between; gap: 12px; }
    .incident-case-export-actions,
    .incident-case-save-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
    .incident-case-footer button { width: auto; min-width: 120px; }

    .attention-primary-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
      gap: 12px;
      align-items: start;
    }

    .attention-lane {
      width: auto;
      margin: 0;
      padding: 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      overflow: hidden;
    }

    .attention-lane.urgent {
      border-top: 3px solid var(--danger);
    }

    .attention-lane.next {
      border-top: 3px solid var(--accent);
    }

    .attention-inboxes {
      display: grid;
      gap: 12px;
    }

    .attention-planning {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      overflow: hidden;
    }

    .attention-planning > summary {
      cursor: pointer;
      list-style: none;
      padding: 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      font-weight: 800;
    }

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

    .attention-planning > summary::after {
      content: "Show";
      color: var(--accent);
      font-size: 13px;
    }

    .attention-planning[open] > summary::after {
      content: "Hide";
    }

    .attention-planning .attention-sections {
      padding: 0 12px 12px;
    }

    .attention-sections {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 12px;
    }

    .attention-section {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      overflow: hidden;
    }

    .attention-section h3 {
      margin: 0;
      padding: 12px 14px;
      border-bottom: 1px solid var(--line);
      background: var(--panel);
      font-size: 16px;
    }

    .operations-attention {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      overflow: hidden;
    }

    .operations-attention > summary {
      cursor: pointer;
      list-style: none;
      padding: 14px;
      background: var(--panel);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

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

    .operations-attention > summary::after {
      content: "Review";
      color: var(--accent);
      font-size: 13px;
      font-weight: 800;
    }

    .operations-attention[open] > summary::after {
      content: "Hide";
    }

    .operations-attention > summary b,
    .operations-attention > summary span {
      display: block;
    }

    .operations-attention > summary b {
      margin-bottom: 3px;
      font-size: 16px;
    }

    .operations-attention-header {
      padding: 14px;
      border-bottom: 1px solid var(--line);
      background: var(--panel);
    }

    .operations-attention-header h3 {
      margin: 0 0 4px;
      font-size: 17px;
    }

    .operations-attention-list {
      display: grid;
      gap: 0;
    }

    .attention-item {
      width: 100%;
      border: 0;
      border-bottom: 1px solid var(--line);
      border-radius: 0;
      background: var(--white);
      color: var(--ink);
      padding: 12px 14px;
      text-align: left;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      font-size: 14px;
      font-weight: 500;
      line-height: 1.35;
      box-shadow: none;
      text-shadow: none;
    }

    .attention-item:hover {
      background: var(--panel);
      color: var(--ink);
      box-shadow: none;
      text-shadow: none;
      transform: none;
    }

    .attention-item:last-child {
      border-bottom: 0;
    }

    .attention-item b,
    .attention-item span {
      display: block;
    }

    .attention-item b {
      font-size: 14px;
      font-weight: 700;
    }

    .attention-item .meta {
      margin-top: 2px;
      font-size: 12px;
      font-weight: 500;
      line-height: 1.4;
    }

    .attention-item > .pill {
      font-weight: 750;
    }

    .domain-action-queue {
      margin: 18px 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      overflow: hidden;
    }

    .domain-action-queue .operations-attention-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 16px;
    }
    .domain-action-queue .operations-attention-header > button { width: auto; min-width: 76px; }

    .domain-action-rules-modal { width: min(660px, calc(100vw - 32px)); }
    .domain-action-rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .domain-action-rules-grid label { margin: 0; }
    .domain-action-rules-grid .full { grid-column: 1 / -1; }
    .domain-action-rules-options { display: flex; gap: 18px; flex-wrap: wrap; padding: 4px 0; }
    .domain-action-rules-options label { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
    .domain-action-rules-options input { width: auto; margin: 0; }

    .protection-triage-modal { width: min(920px, calc(100vw - 32px)); }
    .protection-triage-body { display: grid; gap: 18px; }
    .protection-triage-guardrail {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 12px 14px;
      border-left: 4px solid var(--accent);
      background: var(--accent-soft);
    }
    .protection-triage-guardrail b,
    .protection-triage-guardrail span { display: block; }
    .protection-triage-guardrail span { margin-top: 2px; color: var(--muted); font-size: 13px; }
    .protection-triage-guardrail .toggle-row { flex: 0 0 auto; margin: 0; }
    .protection-triage-default-owner { max-width: 360px; margin: 0; }
    .protection-triage-rule-head,
    .protection-triage-rule-row {
      display: grid;
      grid-template-columns: minmax(150px, .8fr) minmax(150px, 1fr) minmax(135px, .7fr) minmax(170px, 1fr);
      gap: 12px;
      align-items: center;
    }
    .protection-triage-rule-head {
      padding: 0 10px 7px;
      border-bottom: 1px solid var(--line);
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
    }
    .protection-triage-rule-rows { display: grid; }
    .protection-triage-rule-row { min-height: 58px; padding: 9px 10px; border-bottom: 1px solid var(--line); }
    .protection-triage-rule-row:last-child { border-bottom: 0; }
    .protection-triage-rule-row > * { min-width: 0; }
    .protection-triage-rule-row b { font-size: 13px; }
    .protection-triage-rule-row input,
    .protection-triage-rule-row select { width: 100%; min-height: 38px; margin: 0; font-size: 13px; }
    .protection-triage-sla { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
    .protection-triage-sla h3,
    .protection-triage-sla p { margin: 0; }
    .protection-triage-sla p { margin-top: 3px; color: var(--muted); font-size: 13px; }
    .protection-triage-sla-grid { display: grid; grid-template-columns: repeat(4, 96px); gap: 8px; }
    .protection-triage-sla-grid label { position: relative; margin: 0; font-size: 11px; }
    .protection-triage-sla-grid input { min-height: 38px; margin: 4px 0 0; padding-right: 36px; }
    .protection-triage-sla-grid label span { position: absolute; right: 8px; bottom: 11px; color: var(--muted); font-size: 11px; font-weight: 500; }
    .protection-triage-alerts { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(360px, 1.3fr); gap: 22px; align-items: start; padding-top: 16px; border-top: 1px solid var(--line); }
    .protection-triage-alerts h3,
    .protection-triage-alerts p { margin: 0; }
    .protection-triage-alerts p { margin-top: 3px; color: var(--muted); font-size: 13px; }
    .protection-triage-alert-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
    .protection-triage-alert-controls .full { grid-column: 1 / -1; margin: 0; }
    .protection-triage-alert-controls input[type="text"] { margin: 4px 0 0; }
    .protection-triage-alert-controls .toggle-row { margin: 0; }
    .protection-triage-preview { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; background: var(--panel); }
    .protection-triage-preview span { color: var(--muted); font-size: 13px; text-align: right; }
    .protection-queue-rule-note { color: var(--accent-dark) !important; }

    .domain-action-table { display: grid; }

    .domain-action-head,
    .domain-action-row {
      display: grid;
      grid-template-columns: minmax(145px, .9fr) minmax(210px, 1.35fr) minmax(115px, .65fr) 124px 112px auto;
      gap: 12px;
      align-items: center;
      padding: 10px 13px;
    }

    .domain-action-head {
      border-bottom: 1px solid var(--line);
      background: var(--panel);
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .domain-action-row + .domain-action-row { border-top: 1px solid var(--line); }
    .domain-action-row > * { min-width: 0; }
    .domain-action-row b,
    .domain-action-row span { display: block; overflow-wrap: anywhere; }
    .domain-action-row input,
    .domain-action-row select { width: 100%; min-height: 36px; margin: 0; font-size: 13px; }
    .domain-action-row .actions { margin: 0; justify-content: flex-end; flex-wrap: nowrap; }
    .domain-action-row .actions button { width: auto; white-space: nowrap; }

    @media (max-width: 860px) {
      .domain-action-head { display: none; }
      .domain-action-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; padding: 14px; }
      .domain-action-copy,
      .domain-action-actions { grid-column: 1 / -1; }
      .domain-action-actions { justify-content: flex-start; }
    }

    @media (max-width: 760px) {
      .domain-action-queue .operations-attention-header { align-items: flex-start; flex-direction: column; }
      .domain-action-row { grid-template-columns: 1fr; gap: 8px; }
      .domain-action-copy,
      .domain-action-actions { grid-column: auto; }
      .domain-action-row .actions { display: grid; grid-template-columns: 1fr 1fr; }
      .domain-action-row .actions button { width: 100%; }
      .domain-action-rules-grid { grid-template-columns: 1fr; }
      .domain-action-rules-grid .full { grid-column: auto; }
      .protection-triage-guardrail,
      .protection-triage-sla,
      .protection-triage-preview { align-items: stretch; flex-direction: column; }
      .protection-triage-default-owner { max-width: none; }
      .protection-triage-rule-head { display: none; }
      .protection-triage-rule-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; }
      .protection-triage-rule-row b { font-size: 14px; }
      .protection-triage-rule-row input,
      .protection-triage-rule-row select { min-height: 42px; }
      .protection-triage-sla-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .protection-triage-alerts,
      .protection-triage-alert-controls { grid-template-columns: 1fr; }
      .protection-triage-alert-controls .full { grid-column: auto; }
      .protection-triage-preview span { text-align: left; }
    }

    .journal-review-toolbar {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 12px 18px;
      border-bottom: 1px solid var(--line);
      background: var(--white);
    }

    .journal-review-header {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 16px;
      padding: 16px 18px;
      background: var(--white);
    }

    .journal-review-header button {
      width: auto !important;
      flex: 0 0 auto;
      justify-self: end;
      white-space: nowrap;
    }

    .journal-review-stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1px;
      border-bottom: 1px solid var(--line);
      background: var(--line);
    }

    .journal-review-stat {
      display: grid;
      gap: 2px;
      padding: 11px 18px;
      background: var(--white);
    }

    .journal-review-stat b {
      font-size: 20px;
    }

    .journal-review-family {
      overflow: hidden;
      border: 0;
      border-bottom: 1px solid var(--line);
      border-radius: 0;
      background: var(--white);
    }

    .journal-review-family:last-child {
      border-bottom: 0;
    }

    .journal-review-family > summary {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto;
      gap: 14px;
      align-items: center;
      padding: 14px 18px;
      cursor: pointer;
      list-style: none;
    }

    .journal-review-family > summary:hover {
      background: var(--panel);
    }

    .journal-review-family > summary::-webkit-details-marker {
      display: none;
    }

    .journal-review-family > summary::after {
      content: "Review";
      color: var(--accent);
      font-size: 12px;
      font-weight: 800;
    }

    .journal-review-family[open] > summary::after {
      content: "Hide";
    }

    .journal-review-family-summary {
      display: grid;
      gap: 3px;
      min-width: 0;
    }

    .journal-review-family-label {
      color: var(--muted);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0;
      text-transform: uppercase;
    }

    .journal-review-family-mark {
      font-size: 15px;
      line-height: 1.25;
    }

    .journal-review-family-summary > span {
      color: var(--muted);
    }

    .journal-review-family-meta {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 4px;
      font-size: 13px;
    }

    .journal-review-family-meta-label {
      color: var(--ink);
      font-weight: 700;
    }

    .journal-review-family .journal-review-item {
      border: 0;
      border-top: 1px solid var(--line);
      border-left: 4px solid var(--accent);
      border-radius: 0;
    }

    .journal-review-bulkbar {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      padding: 11px 18px;
      border-bottom: 1px solid var(--line);
      background: var(--panel);
    }

    .journal-review-bulkbar label {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      margin-right: auto;
      font-weight: 700;
      white-space: nowrap;
    }

    .journal-review-bulkbar select,
    .journal-review-bulkbar button {
      width: auto;
      min-height: 36px;
      padding: 7px 10px;
    }

    .journal-review-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }

    .journal-review-list {
      display: grid;
      gap: 0;
      padding: 0;
      background: var(--white);
    }

    .journal-review-item {
      display: grid;
      grid-template-columns: 22px minmax(230px, 1.15fr) minmax(220px, .85fr) auto;
      gap: 16px;
      align-items: start;
      padding: 16px;
      border: 1px solid var(--line);
      border-left: 4px solid var(--accent);
      border-radius: 8px;
      background: var(--white);
    }

    .journal-review-item.confirmed {
      border-left-color: var(--ok);
    }

    .journal-review-item.dismissed {
      border-left-color: var(--muted);
      opacity: .82;
    }

    .journal-review-title,
    .journal-review-meta,
    .journal-review-actions {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 7px;
    }

    .journal-review-title {
      align-items: flex-start;
      justify-content: space-between;
      margin-bottom: 7px;
    }

    .journal-review-mark {
      display: block;
      margin-bottom: 4px;
      font-size: 17px;
      line-height: 1.2;
    }

    .journal-review-eyebrow {
      display: block;
      margin-bottom: 4px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .journal-review-owner {
      display: block;
      color: var(--muted);
      line-height: 1.35;
    }

    .journal-review-match {
      display: grid;
      gap: 7px;
      min-width: 0;
    }

    .journal-review-match > span {
      display: block;
    }

    .journal-review-signals {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
    }

    .journal-review-actions {
      display: grid;
      grid-template-columns: repeat(2, auto);
      justify-content: end;
      min-width: 220px;
    }

    .journal-review-actions select {
      grid-column: 1 / -1;
      width: 100%;
      min-height: 38px;
      padding: 8px 9px;
    }

    .journal-review-actions button {
      min-height: 38px;
      padding: 8px 11px;
      font-size: 12px;
    }

    .journal-review-actions .journal-review-status {
      grid-column: 1 / -1;
      justify-self: end;
      margin-bottom: 2px;
    }

    .journal-review-select {
      width: 18px;
      height: 18px;
      margin-top: 3px;
    }

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

    .journal-comparison-column {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 14px;
      min-width: 0;
    }

    .journal-comparison-column h3 {
      margin-bottom: 10px;
    }

    .journal-signal-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 9px;
    }

    .journal-notes {
      min-height: 110px;
    }

    .finding-review-fields {
      display: grid;
      grid-template-columns: minmax(180px, .7fr) minmax(220px, 1fr);
      gap: 10px;
    }

    .finding-review-fields label {
      margin-top: 0;
    }

    .finding-review-fields .full {
      grid-column: 1 / -1;
    }

    .finding-dismissal {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) auto;
      gap: 10px 14px;
      align-items: end;
      border-top: 1px solid var(--line);
      margin-top: 14px;
      padding-top: 14px;
    }

    .finding-dismissal .full {
      grid-column: 1 / -1;
    }

    .finding-dismissal .checkbox-row {
      align-self: center;
      margin: 0;
    }

    .data-quality-repair {
      border-left: 4px solid var(--warn);
      background: #fffdf7;
    }

    .data-quality-repair-heading {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
    }

    .data-quality-repair-heading p {
      margin: 3px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .watch-status-dot.error {
      background: var(--danger);
      box-shadow: 0 0 0 3px #fbe5e7;
    }

    .data-quality-repair-controls {
      display: grid;
      grid-template-columns: auto minmax(180px, 1fr) auto auto;
      gap: 10px;
      align-items: end;
      margin-top: 14px;
    }

    .data-quality-repair-controls label { margin: 0; }
    .data-quality-repair-controls button { width: auto; min-height: 42px; }

    .data-quality-design-resolution {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 16px;
      align-items: center;
      margin-top: 12px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--surface);
    }

    .data-quality-design-resolution b,
    .data-quality-design-resolution span { display: block; }
    .data-quality-design-resolution span { margin-top: 2px; color: var(--muted); font-size: 12px; }
    .data-quality-design-resolution button { width: auto; white-space: nowrap; }

    .data-quality-repair-status {
      display: grid;
      grid-template-columns: minmax(160px, .4fr) minmax(240px, 1fr);
      gap: 10px 18px;
      border-top: 1px solid var(--line);
      margin-top: 14px;
      padding-top: 12px;
      color: var(--muted);
      font-size: 12px;
    }

    .data-quality-repair-status b { display: block; color: var(--text); margin-bottom: 2px; }
    .data-quality-row-note { color: var(--danger); }

    @media (max-width: 760px) {
      .data-quality-repair-controls,
      .data-quality-design-resolution,
      .data-quality-repair-status {
        grid-template-columns: 1fr;
      }

      .data-quality-repair-controls button,
      .data-quality-design-resolution button { width: 100%; }
    }

    .watch-layout {
      display: grid;
      grid-template-columns: minmax(270px, 360px) minmax(0, 1fr);
      gap: 16px;
      align-items: start;
    }

    .watch-form,
    .watch-section {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 16px;
    }

    .watch-form {
      display: grid;
      gap: 10px;
    }

    .watch-view-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 18px;
      padding: 9px 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      box-shadow: 0 3px 10px rgba(18, 26, 34, 0.05);
    }

    .watch-view-tabs {
      display: flex;
      gap: 6px;
      min-width: 0;
      overflow-x: auto;
      scrollbar-width: thin;
    }

    .watch-view-tabs button {
      width: auto;
      flex: 0 0 auto;
      min-height: 38px;
      border-color: transparent;
      background: transparent;
      color: var(--ink);
      box-shadow: none;
      text-shadow: none;
    }

    .watch-view-tabs button.active {
      border-color: var(--forest-300);
      background: var(--forest-100);
      color: var(--accent-dark);
      box-shadow: inset 0 -3px 0 var(--accent);
      text-shadow: none;
    }

    .watch-view-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex: 0 0 auto;
    }

    .watch-view-actions button {
      width: auto;
      white-space: nowrap;
    }

    .watch-view-panel {
      display: grid;
      gap: 16px;
    }

    .watch-view-panel.hidden {
      display: none;
    }

    #watchProfilesView,
    #watchComparisonView,
    #watchFindingsView,
    #watchRulesView,
    #watchHistoryView,
    #watchWebView {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 18px;
    }

    .radar-layout {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      align-items: stretch;
    }

    .radar-intake,
    .radar-results {
      display: grid;
      gap: 12px;
      align-content: start;
      min-width: 0;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

    .radar-intake h3,
    .radar-intake p,
    .radar-results h3,
    .radar-results p {
      margin: 0;
    }

    .radar-suggestions {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }

    .radar-suggestions button {
      width: auto;
    }

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

    .radar-campaign-list {
      display: grid;
      gap: 8px;
    }

    .radar-campaign-heading,
    .radar-campaign-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 11px 0;
      border-top: 1px solid var(--line);
    }

    .radar-campaign-heading > div,
    .radar-campaign-row > div {
      display: grid;
      gap: 2px;
      min-width: 0;
    }

    .radar-campaign-heading > span {
      font-weight: 750;
      color: var(--accent);
    }

    .radar-campaign-row button {
      width: auto;
      white-space: nowrap;
    }

    .campaign-confidence-dot,
    .radar-form-signal > span {
      display: inline-block;
      width: 9px;
      height: 9px;
      margin-right: 8px;
      border-radius: 50%;
      background: var(--muted);
    }

    .campaign-confidence-dot.medium,
    .radar-form-signal.medium > span { background: var(--warn); }
    .campaign-confidence-dot.high,
    .radar-form-signal.high > span { background: var(--risk); }

    .radar-form-signal {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      color: var(--muted);
      font-size: 13px;
      font-weight: 650;
    }

    .radar-case-campaign,
    .radar-case-form-risk,
    .radar-impersonation-evidence,
    .radar-operator-evidence {
      padding: 14px 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .radar-case-campaign p,
    .radar-case-form-risk p,
    .radar-impersonation-evidence p { margin: 5px 0; }

    .radar-impersonation-evidence.alert { border-left: 4px solid var(--risk); padding-left: 12px; }
    .radar-impersonation-heading,
    .radar-impersonation-heading > div,
    .radar-impersonation-links,
    .radar-impersonation-actions { display: flex; align-items: center; gap: 9px; }
    .radar-impersonation-heading { justify-content: space-between; }
    .radar-impersonation-heading strong { font-size: 13px; }
    .radar-impersonation-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
    .radar-impersonation-dot.medium { background: var(--warn); }
    .radar-impersonation-dot.high,
    .radar-impersonation-dot.critical { background: var(--risk); }
    .radar-impersonation-excerpts { margin-top: 8px; border-top: 1px solid var(--line); }
    .radar-impersonation-excerpts blockquote { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
    .radar-impersonation-excerpts b,
    .radar-impersonation-excerpts span { display: block; }
    .radar-impersonation-excerpts span { margin-top: 3px; color: var(--muted); line-height: 1.4; }
    .radar-impersonation-actions { flex-wrap: wrap; margin-top: 9px; }
    .radar-impersonation-actions span { padding: 4px 7px; border-left: 3px solid var(--warn); background: var(--soft); font-size: 12px; }
    .radar-impersonation-links { flex-wrap: wrap; margin-top: 10px; font-size: 12px; }
    .radar-impersonation-links span { margin-left: auto; color: var(--muted); }
    .radar-infrastructure-evidence { display: grid; gap: 12px; }
    .radar-network-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
    .radar-routing-table { border-top: 1px solid var(--line); }
    .radar-routing-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.2fr) minmax(90px, .6fr) minmax(90px, .6fr); gap: 14px; align-items: center; min-height: 46px; border-bottom: 1px solid var(--line); font-size: 12px; }
    .radar-routing-row > span:nth-child(2) { display: grid; gap: 2px; }
    .radar-routing-row small { color: var(--muted); font-size: 11px; }
    .radar-routing-row.head { min-height: 34px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
    .radar-route-status { display: inline-flex; align-items: center; gap: 7px; text-transform: capitalize; }
    .radar-network-context { margin: 0; padding: 10px 12px; border-left: 4px solid var(--warn); background: var(--soft); color: var(--muted); font-size: 12px; }
    .radar-network-events { display: flex; gap: 24px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
    .radar-network-events span { display: flex; align-items: baseline; gap: 6px; }
    .radar-network-events b { color: var(--ink); font-size: 16px; }
    .radar-related-heading { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
    .radar-infrastructure-networks { display: flex; flex-wrap: wrap; gap: 18px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .radar-infrastructure-networks > div { display: grid; gap: 2px; min-width: 160px; }
    .radar-infrastructure-networks span,
    .radar-infrastructure-row small { color: var(--muted); font-size: 12px; }
    .radar-infrastructure-table { border-top: 1px solid var(--line); }
    .radar-infrastructure-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(180px, 1.5fr) minmax(110px, .7fr); gap: 14px; align-items: center; min-height: 46px; border-bottom: 1px solid var(--line); font-size: 12px; }
    .radar-infrastructure-row > span:first-child { display: grid; gap: 2px; }
    .radar-infrastructure-row > span:last-child { display: flex; align-items: center; gap: 7px; }
    .radar-infrastructure-row.head { min-height: 34px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
    .radar-infrastructure-caution { margin: 0; padding-left: 10px; border-left: 3px solid var(--warn); color: var(--muted); font-size: 12px; }
    @media (max-width: 620px) { .radar-impersonation-links span { width: 100%; margin-left: 0; } }
    @media (max-width: 620px) {
      .radar-routing-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 14px; padding: 10px 0; }
      .radar-routing-row.head { display: none; }
      .radar-network-events { display: grid; gap: 6px; }
      .radar-infrastructure-row { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 10px 0; }
      .radar-infrastructure-row.head { display: none; }
    }

    .radar-regional-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    .radar-regional-grid > div { padding: 11px 12px; min-width: 0; }
    .radar-regional-grid > div + div { border-left: 1px solid var(--line); }
    .radar-regional-grid span,
    .radar-regional-grid small { display: block; color: var(--muted); }
    .radar-regional-grid small { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .radar-regional-differences { margin: 10px 0 0; padding-left: 20px; }
    @media (max-width: 700px) {
      .radar-regional-grid { grid-template-columns: 1fr; }
      .radar-regional-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
    }

    .radar-operator-evidence > div:first-child > * { display: block; }

    .radar-operator-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
      gap: 0 18px;
      margin-top: 9px;
      border-top: 1px solid var(--line);
    }

    .radar-operator-list > div { min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
    .radar-operator-list span,
    .radar-operator-list b,
    .radar-operator-list small { display: block; overflow-wrap: anywhere; }
    .radar-operator-list span,
    .radar-operator-list small { color: var(--muted); font-size: 12px; }
    .radar-operator-list b { margin: 2px 0; font-size: 13px; }

    .radar-case-campaign > div:last-child {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 8px;
    }

    .radar-case-campaign > div:last-child span {
      padding: 5px 8px;
      border: 1px solid var(--line);
      border-radius: 5px;
      background: var(--white);
      font-size: 12px;
    }

    .radar-results-heading {
      align-items: start;
    }

    .radar-heading-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 8px;
    }

    .radar-results-heading button {
      width: auto;
      white-space: nowrap;
    }

    .radar-auto-policy {
      display: grid;
      grid-template-columns: minmax(190px, 1fr) auto 110px 90px auto;
      align-items: end;
      gap: 10px;
      padding: 12px 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .radar-auto-policy h4,
    .radar-auto-policy p { margin: 0; }
    .radar-auto-policy h4 { font-size: 14px; }
    .radar-auto-policy label { margin: 0; font-size: 12px; }
    .radar-auto-policy input[type="number"] { min-height: 36px; padding: 7px 9px; }
    .radar-auto-policy .check-row { align-self: center; white-space: nowrap; }
    .radar-auto-policy button { width: auto; min-width: 72px; }

    .radar-empty {
      margin: 0;
      padding: 14px 0 0;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 14px;
      text-align: left;
    }

    .wanted-domain-section {
      width: 100%;
      margin: 18px 0 0;
      padding: 18px 0 0;
      border-top: 1px solid var(--line);
    }

    .wanted-domain-form {
      display: grid;
      grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(120px, 0.55fr) 86px minmax(220px, 1.2fr) auto;
      gap: 10px;
      align-items: end;
    }

    .wanted-domain-form label {
      min-width: 0;
      margin: 0;
    }

    .wanted-domain-form button {
      width: auto;
      white-space: nowrap;
    }

    .wanted-domain-list {
      display: grid;
      gap: 0;
      margin-top: 14px;
      border-top: 1px solid var(--line);
    }

    .wanted-domain-record {
      border-bottom: 1px solid var(--line);
    }

    .wanted-domain-row {
      display: grid;
      grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 1fr) minmax(120px, 0.6fr) minmax(170px, 0.9fr) auto;
      gap: 14px;
      align-items: center;
      padding: 12px 0;
    }

    .wanted-domain-row > span,
    .wanted-domain-row > div {
      min-width: 0;
    }

    .wanted-domain-row b,
    .wanted-domain-row .meta {
      overflow-wrap: anywhere;
    }

    .wanted-domain-status {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .wanted-domain-actions {
      display: flex;
      gap: 7px;
      justify-content: flex-end;
    }

    .wanted-domain-actions button {
      width: auto;
    }

    .wanted-domain-details {
      margin: 0 0 12px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: #f8fafb;
    }

    .wanted-domain-details > summary {
      padding: 9px 12px;
      cursor: pointer;
      color: var(--accent-dark);
      font-size: 13px;
      font-weight: 750;
    }

    .wanted-domain-detail-body {
      padding: 12px;
      display: grid;
      grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
      gap: 16px;
      border-top: 1px solid var(--line);
      background: var(--white);
    }

    .wanted-domain-facts,
    .wanted-domain-known {
      display: grid;
      gap: 9px;
      min-width: 0;
    }

    .wanted-domain-facts dl {
      margin: 0;
      display: grid;
      grid-template-columns: 110px minmax(0, 1fr);
      gap: 7px 10px;
      font-size: 13px;
    }

    .wanted-domain-facts dt {
      color: var(--muted);
      font-weight: 700;
    }

    .wanted-domain-facts dd {
      margin: 0;
      overflow-wrap: anywhere;
    }

    .wanted-domain-known textarea {
      min-height: 68px;
    }

    .wanted-domain-known .check-row {
      margin: 0;
    }

    .wanted-domain-known button {
      width: fit-content;
    }

    .radar-result-card {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

    .radar-lookalike-review {
      display: grid;
      gap: 0;
      border: 1px solid var(--line);
      border-left: 4px solid var(--accent);
      border-radius: 8px;
      background: var(--white);
    }

    .radar-lookalike-review.hidden { display: none; }
    .radar-lookalike-review > .section-heading { padding: 14px 16px; }
    .radar-lookalike-review-list { border-top: 1px solid var(--line); }

    .radar-lookalike-review-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(320px, auto);
      align-items: center;
      gap: 16px;
      padding: 12px 16px;
      background: var(--white);
    }

    .radar-lookalike-review-row + .radar-lookalike-review-row { border-top: 1px solid var(--line); }
    .radar-lookalike-review-row > div:first-child { display: grid; gap: 3px; min-width: 0; }

    .radar-lookalike-decisions {
      display: grid;
      grid-template-columns: minmax(128px, auto) minmax(170px, 1fr);
      gap: 8px;
    }

    .radar-lookalike-decisions button,
    .radar-lookalike-decisions select { width: 100%; min-height: 38px; }

    .radar-lookalike-decisions label { margin: 0; }

    .radar-review-outcomes {
      display: grid;
      gap: 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      background: var(--white);
    }

    .radar-review-outcomes.hidden { display: none; }
    .radar-review-outcomes > .section-heading { padding: 14px 0 10px; }

    .radar-review-outcome-stats {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
    }

    .radar-review-outcome-stat {
      display: grid;
      gap: 2px;
      min-width: 0;
      padding: 11px 12px;
      background: #f7f9fb;
    }

    .radar-review-outcome-stat + .radar-review-outcome-stat { border-left: 1px solid var(--line); }
    .radar-review-outcome-stat b { font-size: 18px; }
    .radar-review-outcome-stat span { color: var(--muted); font-size: 12px; }
    .radar-review-outcome-stat small { color: var(--muted); font-size: 11px; line-height: 1.35; }
    .radar-review-outcome-stat.high { border-top: 3px solid var(--risk); }
    .radar-review-outcome-stat.low { border-top: 3px solid var(--accent); }

    .radar-calibration-recommendations {
      display: grid;
      gap: 8px;
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid var(--line);
    }

    .radar-calibration-heading { display: grid; gap: 2px; }
    .radar-calibration-heading h5 { margin: 0; font-size: 13px; }
    .radar-calibration-list { display: grid; }

    .radar-calibration-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 16px;
      align-items: center;
      padding: 11px 0;
      border-top: 1px solid var(--line);
    }

    .radar-calibration-row > div:first-child { display: grid; gap: 3px; min-width: 0; }
    .radar-calibration-row p { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
    .radar-calibration-actions { display: grid; grid-template-columns: repeat(2, minmax(82px, 1fr)); gap: 8px; }
    .radar-calibration-actions button { width: 100%; min-height: 36px; }

    .radar-calibration-history {
      display: grid;
      gap: 8px;
      margin-top: 4px;
      padding-top: 12px;
      border-top: 1px solid var(--line);
    }

    .radar-calibration-history.hidden { display: none; }
    .radar-calibration-history-head,
    .radar-calibration-history-row {
      display: grid;
      grid-template-columns: minmax(130px, 1.1fr) 92px 120px minmax(190px, 1.4fr) 120px;
      gap: 12px;
      align-items: center;
    }

    .radar-calibration-history-head {
      padding: 0 8px 5px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
    }

    .radar-calibration-history-list { display: grid; }
    .radar-calibration-history-row {
      min-height: 48px;
      padding: 9px 8px;
      border-top: 1px solid var(--line);
      font-size: 12px;
    }

    .radar-calibration-history-row > span { min-width: 0; }
    .radar-calibration-history-row b,
    .radar-calibration-history-row small { display: block; }
    .radar-calibration-history-row small { margin-top: 2px; color: var(--muted); font-size: 11px; }
    .radar-calibration-decision { color: var(--muted); font-weight: 700; }
    .radar-calibration-decision.applied { color: var(--accent-dark); }

    .radar-review-outcome-list {
      display: grid;
    }

    .radar-review-recent-heading {
      margin: 14px 0 0;
      font-size: 13px;
    }

    .radar-review-outcome-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      padding: 10px 0;
      border-top: 1px solid var(--line);
    }

    .radar-review-outcome-row > div { display: grid; gap: 3px; min-width: 0; }
    .radar-review-outcome-row button { width: auto; min-width: 108px; }

    .radar-result-copy,
    .radar-result-actions {
      display: grid;
      gap: 8px;
      min-width: 0;
    }

    .radar-result-heading,
    .radar-result-metrics {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 7px;
    }

    .radar-result-actions {
      align-content: start;
    }

    .radar-result-actions button,
    .radar-result-actions a {
      width: auto;
      white-space: nowrap;
    }

    .activation-indicator {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      color: var(--muted);
      font-size: 12px;
    }

    .activation-indicator > span,
    .activation-timeline-marker {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: #8996a3;
      box-shadow: 0 0 0 3px #eef2f4;
      flex: 0 0 auto;
    }

    .activation-indicator.low > span,
    .activation-timeline-marker.low { background: var(--accent); box-shadow: 0 0 0 3px #dff2ec; }
    .activation-indicator.medium > span,
    .activation-timeline-marker.medium { background: #bf7311; box-shadow: 0 0 0 3px #fff0d4; }
    .activation-indicator.high > span,
    .activation-timeline-marker.high { background: #c93645; box-shadow: 0 0 0 3px #f9dde1; }
    .activation-indicator b { color: var(--ink); font-size: inherit; }
    .activation-indicator small { color: var(--muted); font-size: inherit; }

    .radar-connector-state {
      justify-self: start;
    }

    .radar-case-modal { width: min(900px, calc(100vw - 32px)); }

    .radar-case-summary {
      border-left: 4px solid var(--accent);
      padding: 12px 14px;
      background: var(--soft);
      border-radius: 4px;
    }

    .radar-case-summary p { margin: 4px 0 0; }

    .activation-overview {
      border: 1px solid var(--line);
      border-left: 4px solid var(--accent);
      border-radius: 5px;
      padding: 12px 14px;
      background: var(--white);
    }

    .activation-overview > div {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .activation-overview p { margin: 7px 0 0; color: var(--muted); }

    .activation-timeline {
      display: grid;
    }

    .activation-timeline > div {
      display: grid;
      grid-template-columns: 18px minmax(0, 1fr);
      gap: 8px;
      padding: 9px 0;
      border-top: 1px solid var(--line);
    }

    .activation-timeline > div:first-child { border-top: 0; }
    .activation-timeline-marker { margin-top: 4px; }
    .activation-timeline b,
    .activation-timeline .meta { display: block; }

    .radar-web-history-empty {
      padding: 12px 0;
      border-top: 1px solid var(--line);
    }

    .radar-web-history-empty p { margin: 0; }

    .radar-web-comparison {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 14px;
    }

    .radar-web-comparison figure {
      min-width: 0;
      margin: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--panel);
    }

    .radar-web-comparison figcaption {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 8px;
      padding: 9px 10px;
      border-bottom: 1px solid var(--line);
      background: var(--white);
    }

    .radar-web-comparison figcaption span {
      color: var(--muted);
      font-size: 11px;
      text-align: right;
    }

    .radar-web-comparison img,
    .radar-screenshot-missing {
      display: block;
      width: 100%;
      aspect-ratio: 16 / 10;
      object-fit: cover;
      object-position: top;
      background: #eef2f4;
    }

    .radar-screenshot-missing {
      display: grid;
      place-items: center;
      color: var(--muted);
      font-size: 12px;
    }

    .radar-web-timeline {
      border-top: 1px solid var(--line);
    }

    .radar-web-timeline article {
      display: grid;
      grid-template-columns: 14px minmax(0, 1fr);
      gap: 9px;
      padding: 11px 0;
      border-bottom: 1px solid var(--line);
    }

    .radar-web-marker {
      width: 9px;
      height: 9px;
      margin-top: 5px;
      border-radius: 50%;
      background: #8996a3;
      box-shadow: 0 0 0 3px #eef2f4;
    }

    .radar-web-marker.low { background: var(--accent); box-shadow: 0 0 0 3px #dff2ec; }
    .radar-web-marker.medium { background: var(--warn); box-shadow: 0 0 0 3px #fff0d4; }
    .radar-web-marker.high { background: var(--risk); box-shadow: 0 0 0 3px #f9dde1; }

    .radar-web-event-heading {
      display: flex;
      justify-content: space-between;
      gap: 12px;
    }

    .radar-web-event-heading span,
    .radar-web-timeline p {
      color: var(--muted);
      font-size: 12px;
    }

    .radar-web-timeline p { margin: 3px 0 0; }

    .radar-web-event-links {
      display: flex;
      gap: 12px;
      margin-top: 5px;
      font-size: 12px;
    }

    .radar-case-evidence {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      border: 1px solid var(--line);
      border-radius: 6px;
      overflow: hidden;
    }

    .radar-case-evidence > div { padding: 11px 12px; min-width: 0; }
    .radar-case-evidence > div + div { border-left: 1px solid var(--line); }
    .radar-case-evidence span, .radar-case-evidence b { display: block; overflow-wrap: anywhere; }
    .radar-case-evidence span { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 3px; }
    .cloudflare-intel-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
    .cloudflare-intel-summary > div { min-width: 0; padding: 11px 12px; }
    .cloudflare-intel-summary > div + div { border-left: 1px solid var(--line); }
    .cloudflare-intel-summary span, .cloudflare-intel-summary b { display: block; overflow-wrap: anywhere; }
    .cloudflare-intel-summary span { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 3px; }
    .cloudflare-intel-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; padding: 14px 12px 4px; }
    .cloudflare-intel-facts b, .cloudflare-intel-facts span { display: block; overflow-wrap: anywhere; }
    .cloudflare-intel-sources, .cloudflare-related-domains { list-style: none; margin: 10px 0 0; padding: 0; }
    .cloudflare-intel-sources li, .cloudflare-related-domains li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 2px; border-top: 1px solid var(--line); }
    .cloudflare-related-domains li { grid-template-columns: minmax(0, 1fr) auto; }
    .cloudflare-intel-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
    .cloudflare-intel-dot.available { background: var(--success); }
    .cloudflare-intel-dot.not-in-plan, .cloudflare-intel-dot.permission, .cloudflare-intel-dot.no-data { background: var(--warning); }
    .cloudflare-intel-dot.error, .cloudflare-intel-dot.rate-limited { background: var(--risk); }

    .radar-campaign-stats {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      border: 1px solid var(--line);
      border-radius: 6px;
      overflow: hidden;
      background: var(--white);
    }

    .radar-campaign-stats > div {
      min-width: 0;
      padding: 12px 14px;
    }

    .radar-campaign-stats > div + div { border-left: 1px solid var(--line); }
    .radar-campaign-stats strong,
    .radar-campaign-stats span { display: block; }
    .radar-campaign-stats strong { font-size: 22px; line-height: 1.1; }
    .radar-campaign-stats span { margin-top: 3px; color: var(--muted); font-size: 12px; }

    .radar-campaign-members { border-top: 1px solid var(--line); }

    .radar-campaign-members article {
      display: grid;
      grid-template-columns: minmax(190px, 1.2fr) minmax(175px, 1fr) minmax(130px, .7fr) auto;
      gap: 14px;
      align-items: center;
      padding: 11px 0;
      border-bottom: 1px solid var(--line);
    }

    .radar-campaign-members article > div { min-width: 0; }
    .radar-campaign-members article b,
    .radar-campaign-members article .meta { display: block; overflow-wrap: anywhere; }
    .radar-campaign-members article button { width: auto; white-space: nowrap; }

    .radar-campaign-timeline { border-top: 1px solid var(--line); }

    .radar-campaign-timeline article {
      display: grid;
      grid-template-columns: 14px minmax(0, 1fr);
      gap: 9px;
      padding: 10px 0;
      border-bottom: 1px solid var(--line);
    }

    .radar-campaign-timeline article > div > div {
      display: flex;
      justify-content: space-between;
      gap: 12px;
    }

    .radar-campaign-timeline article > div > div span,
    .radar-campaign-timeline p { color: var(--muted); font-size: 12px; }
    .radar-campaign-timeline p { margin: 3px 0 0; }
    .radar-campaign-timeline p strong { color: var(--ink); }

    .radar-campaign-map-section { display: grid; gap: 12px; }

    .radar-map-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .radar-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
    .radar-map-legend i,
    .radar-map-line-key { width: 28px; height: 0; border-top: 2px solid var(--forest-700); }
    .radar-map-legend i.contextual,
    .radar-map-line-key.contextual { border-top-style: dotted; border-top-color: #87949f; }

    .radar-map-time {
      display: grid;
      grid-template-columns: minmax(190px, auto) minmax(180px, 1fr);
      gap: 14px;
      align-items: center;
      padding: 8px 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .radar-map-time label { margin: 0; }
    .radar-map-time input { margin: 0; accent-color: var(--forest-800); }

    .radar-campaign-map-scroll {
      width: 100%;
      overflow-x: auto;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: #fbfcfc;
    }

    .radar-campaign-map {
      position: relative;
      min-width: 680px;
      aspect-ratio: 2 / 1;
      min-height: 330px;
      max-height: 430px;
    }

    .radar-campaign-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
    .radar-campaign-map line { vector-effect: non-scaling-stroke; stroke: var(--forest-700); stroke-width: 2.5; opacity: .8; transition: opacity .18s ease; }
    .radar-campaign-map line.contextual { stroke: #87949f; stroke-width: 2; stroke-dasharray: 3 5; }

    .radar-campaign-map-node {
      position: absolute;
      left: var(--map-x);
      top: var(--map-y);
      width: 168px;
      min-height: 68px;
      padding: 9px 11px;
      transform: translate(-50%, -50%);
      border: 1px solid #bdcbd2;
      border-radius: 6px;
      background: var(--white);
      color: var(--ink);
      text-align: left;
      box-shadow: 0 2px 8px rgba(24, 32, 40, .08);
      z-index: 1;
    }

    .radar-campaign-map-node:hover,
    .radar-campaign-map-node:focus-visible { border-color: var(--forest-800); background: #eef8f6; color: var(--ink); }
    .radar-campaign-map-node > span { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #87949f; }
    .radar-campaign-map-node.active > span { background: var(--forest-700); }
    .radar-campaign-map-node.high > span { background: #bd2d3a; }
    .radar-campaign-map-node b,
    .radar-campaign-map-node small { display: block; overflow-wrap: anywhere; letter-spacing: 0; }
    .radar-campaign-map-node b { font-size: 12px; }
    .radar-campaign-map-node small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 600; }

    .radar-map-evidence-list { border-top: 1px solid var(--line); }
    .radar-map-evidence-list article { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line); }
    .radar-map-evidence-list .radar-map-line-key { margin-top: 8px; }
    .radar-map-evidence-list b,
    .radar-map-evidence-list p { display: block; margin: 0; font-size: 12px; }
    .radar-map-evidence-list p { margin-top: 2px; color: var(--muted); }
    .radar-campaign-map .map-hidden,
    .radar-map-evidence-list .map-hidden { opacity: .12; pointer-events: none; }

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

    .radar-case-form .full { grid-column: 1 / -1; }
    .radar-case-form .check-row { display: flex; align-items: center; gap: 8px; align-self: end; min-height: 42px; margin: 0; }
    .radar-case-form .check-row input { width: auto; margin: 0; }
    .radar-case-form textarea { min-height: 110px; }
    .radar-case-footer { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

    @media (max-width: 700px) {
      .radar-case-evidence,
      .cloudflare-intel-summary,
      .cloudflare-intel-facts,
      .radar-case-form,
      .radar-web-comparison { grid-template-columns: minmax(0, 1fr); }
      .radar-case-evidence > div + div { border-left: 0; border-top: 1px solid var(--line); }
      .cloudflare-intel-summary > div + div { border-left: 0; border-top: 1px solid var(--line); }
      .cloudflare-intel-facts { grid-template-columns: 1fr; }
      .radar-campaign-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .radar-campaign-stats > div + div { border-left: 0; }
      .radar-campaign-stats > div:nth-child(even) { border-left: 1px solid var(--line); }
      .radar-campaign-stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
      .radar-campaign-members article { grid-template-columns: minmax(0, 1fr); gap: 7px; }
      .radar-campaign-members article button { width: 100%; }
      .radar-campaign-timeline article > div > div { display: grid; gap: 2px; }
      .radar-map-time { grid-template-columns: minmax(0, 1fr); gap: 6px; }
      .radar-campaign-map { min-width: 620px; min-height: 310px; }
      .radar-case-form .full { grid-column: auto; }
      .radar-case-footer > * { width: 100%; }
    }

    #watchProfilesView > .competitor-profiles,
    #watchFindingsView > #competitorFindingsSection,
    #watchHistoryView > .watch-scan-history {
      width: 100%;
      margin: 0;
      padding: 0;
    }

    #watchProfilesView .section-heading,
    #watchFindingsView .section-heading,
    #watchWebView .section-heading,
    #watchRulesView .section-heading,
    #watchHistoryView .section-heading {
      margin: 0 0 14px;
    }

    #watchFindingsView > #competitorFindingsSection {
      border: 0;
      border-radius: 0;
    }

    #watchHistoryView > .watch-reminder-panel {
      margin: 0;
    }

    #watchHistoryView > .watch-scan-history {
      margin-top: 0;
      border-top: 1px solid var(--line);
      padding-top: 18px;
    }

    .watch-editor-drawer {
      display: block;
      position: fixed;
      z-index: 90;
      top: 0;
      right: 0;
      width: min(620px, 100vw);
      height: 100dvh;
      margin: 0;
      border-width: 0 0 0 1px;
      border-radius: 0;
      overflow-y: auto;
      transform: translateX(102%);
      transition: transform 180ms ease;
      box-shadow: -18px 0 42px rgba(20, 35, 44, .16);
      visibility: hidden;
    }

    .watch-editor-drawer.open {
      display: block;
      transform: translateX(0);
      visibility: visible;
    }

    .watch-editor-backdrop {
      position: fixed;
      z-index: 100;
      inset: 0;
      border: 0;
      background: rgba(24, 32, 40, 0.46);
      opacity: 0;
      visibility: hidden;
      transition: opacity 160ms ease, visibility 160ms ease;
    }

    .watch-editor-backdrop.open {
      opacity: 1;
      visibility: visible;
    }

    .watch-editor-drawer.watch-editor-modal {
      z-index: 101;
      top: 50%;
      left: 50%;
      right: auto;
      width: min(640px, calc(100vw - 32px));
      height: auto;
      max-height: min(740px, calc(100dvh - 32px));
      border: 1px solid var(--line);
      border-radius: 8px;
      box-shadow: 0 24px 70px rgba(18, 26, 34, 0.28);
      opacity: 0;
      transform: translate(-50%, -48%) scale(0.98);
      transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    }

    .watch-editor-drawer.watch-editor-modal.open {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }

    .competitor-evidence-modal {
      width: min(760px, calc(100vw - 32px));
    }

    .competitor-evidence-form {
      padding: 18px;
      display: grid;
      gap: 16px;
      overflow-y: auto;
    }

    .competitor-evidence-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 13px;
    }

    .competitor-evidence-grid label {
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .competitor-evidence-span {
      grid-column: 1 / -1;
    }

    .competitor-evidence-note {
      border-left: 4px solid var(--teal);
      background: var(--soft);
      padding: 12px 14px;
      display: grid;
      gap: 3px;
    }

    .competitor-evidence-note span {
      color: var(--muted);
    }

    .competitor-evidence-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
    }

    .watch-rule-preview-drawer {
      display: block;
      position: fixed;
      z-index: 95;
      top: 0;
      right: 0;
      width: min(680px, 100vw);
      height: 100dvh;
      margin: 0;
      border-width: 0 0 0 1px;
      border-radius: 0;
      overflow-y: auto;
      transform: translateX(102%);
      transition: transform 180ms ease;
      box-shadow: -18px 0 42px rgba(20, 35, 44, .2);
      visibility: hidden;
    }

    .watch-rule-preview-drawer.open {
      display: block;
      transform: translateX(0);
      visibility: visible;
    }

    .watch-editor-drawer .watch-form {
      border: 0;
      border-radius: 0;
      padding: 16px 18px 18px;
    }

    .watch-core-fields,
    .watch-advanced-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .watch-core-fields label,
    .watch-advanced-grid label {
      margin: 0;
    }

    .watch-core-fields .full,
    .watch-advanced-grid .full {
      grid-column: 1 / -1;
    }

    .watch-office-fieldset {
      min-width: 0;
      margin: 0;
      padding: 0;
      border: 0;
    }

    .watch-office-fieldset legend {
      margin-bottom: 6px;
      font-weight: 700;
    }

    .watch-advanced-settings {
      margin-top: 2px;
      background: var(--white);
    }

    .watch-advanced-settings > summary {
      padding: 10px 0;
    }

    .watch-advanced-settings[open] > summary {
      margin-bottom: 12px;
      border-bottom: 1px solid var(--line);
    }

    .watch-advanced-group {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid var(--line);
    }

    .watch-advanced-group > b {
      display: block;
      margin-bottom: 8px;
    }

    .watch-editor-drawer .watch-form-actions {
      position: sticky;
      bottom: -18px;
      z-index: 2;
      margin: 2px -18px -18px;
      padding: 12px 18px 18px;
      border-top: 1px solid var(--line);
      background: var(--white);
    }

    #watchMessage:not(:empty) {
      padding: 10px 12px;
      border-left: 3px solid var(--accent);
      background: #e8f5f2;
      color: var(--ink);
    }

    #watchMessage.error:not(:empty) {
      border-left-color: var(--risk);
      background: #fdecee;
    }

    @media (max-width: 640px) {
      .watch-core-fields,
      .watch-advanced-grid {
        grid-template-columns: 1fr;
      }

      .watch-core-fields .full,
      .watch-advanced-grid .full {
        grid-column: auto;
      }
    }

    .watch-editor-drawer .watch-form > h3 {
      display: none;
    }

    .watch-editor-drawer .drawer-header {
      position: sticky;
      top: 0;
      z-index: 2;
    }

    body.watch-drawer-open {
      overflow: hidden;
    }

    .watch-office-options {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .watch-office-options label {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 8px 10px;
      font-weight: 700;
    }

    .watch-list,
    .watch-findings {
      display: grid;
      gap: 9px;
    }

    .watch-finding-bulkbar {
      margin-bottom: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
    }

    .watch-finding-bulkbar input,
    .watch-finding-bulkbar select,
    .watch-finding-bulkbar button {
      width: auto;
      min-height: 36px;
      padding: 7px 10px;
    }

    .watch-finding-bulkbar input[type="text"] {
      min-width: 170px;
    }

    .watch-finding-heading-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .watch-finding-heading-actions button,
    .watch-finding-heading-actions select {
      width: auto;
      min-height: 38px;
    }

    .guided-competitor-review-modal {
      width: min(860px, calc(100vw - 32px));
    }

    .competitor-finding-modal {
      width: min(1040px, calc(100vw - 32px));
    }

    .competitor-review-actions {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      padding: 12px 18px;
      border-bottom: 1px solid var(--line);
      background: var(--ui-surface-subtle, #f7f9fa);
    }

    .competitor-review-actions button {
      width: 100%;
      min-height: 42px;
    }

    .guided-review-kicker {
      display: block;
      margin-bottom: 4px;
      color: var(--accent-dark);
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .guided-review-progress {
      height: 5px;
      background: var(--line);
    }

    .guided-review-progress span {
      display: block;
      height: 100%;
      background: var(--accent);
      transition: width 180ms ease;
    }

    .guided-review-body,
    .guided-review-filings {
      display: grid;
      gap: 12px;
    }

    .guided-review-summary {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 18px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--line);
    }

    .guided-review-summary > div:first-child,
    .guided-review-filing > div {
      display: grid;
      gap: 3px;
    }

    .guided-review-signals {
      display: grid;
      grid-template-columns: repeat(3, minmax(88px, 1fr));
      gap: 8px;
    }

    .guided-review-signals span {
      display: grid;
      gap: 2px;
      padding: 9px 10px;
      border-left: 3px solid var(--accent);
      background: var(--panel);
      color: var(--muted);
      font-size: 12px;
    }

    .guided-review-signals b { color: var(--ink); }

    .guided-review-filing {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid var(--line);
    }

    .guided-review-filing:last-child { border-bottom: 0; }

    .guided-review-decision {
      display: grid;
      gap: 10px;
      padding-top: 14px;
      border-top: 1px solid var(--line);
    }

    .guided-review-actions,
    .guided-review-navigation {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .guided-review-actions button { flex: 1 1 130px; }
    .guided-review-navigation { justify-content: space-between; }

    .guided-review-rule {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      padding: 9px 0;
      font-weight: 400;
    }

    .guided-review-rule input { width: auto; margin-top: 3px; }

    .guided-review-complete {
      display: grid;
      justify-items: center;
      gap: 10px;
      padding: 44px 24px;
      text-align: center;
    }

    .guided-review-complete button { width: auto; }

    .watch-finding-group {
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      background: var(--white);
    }

    .watch-finding-group-header,
    .watch-finding-row {
      display: grid;
      grid-template-columns: 24px minmax(0, 1fr) auto;
      gap: 10px;
      align-items: start;
      padding: 11px 12px;
    }

    .watch-finding-group-header {
      background: var(--panel);
    }

    .watch-finding-row {
      border-top: 1px solid var(--line);
    }

    .watch-finding-group-header input,
    .watch-finding-row input {
      width: auto;
      margin-top: 3px;
    }

    .watch-card,
    .watch-finding {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 12px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: start;
    }

    .watch-card-copy {
      min-width: 0;
    }

    .watch-source-context,
    .watch-origin-note {
      display: block;
      border-left: 3px solid var(--accent);
      background: #f2f8f7;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
    }

    .watch-source-context {
      margin: 0 0 12px;
      padding: 9px 11px;
      border-radius: 4px;
    }

    .watch-source-context span { display: block; margin-top: 2px; }
    .watch-origin-note { margin-top: 7px; padding: 5px 8px; }

    .watch-card-heading {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 2px;
    }

    .watch-card-heading > b {
      min-width: 0;
      overflow-wrap: anywhere;
    }

    .watch-status-dot {
      flex: 0 0 auto;
      width: 10px;
      height: 10px;
      margin-top: 5px;
      border-radius: 50%;
      background: #8b98a4;
      box-shadow: 0 0 0 3px #edf1f4;
    }

    .watch-status-dot.active { background: var(--success); box-shadow: 0 0 0 3px #e2f4eb; }
    .watch-status-dot.paused { background: #8b98a4; }

    .watch-card-health {
      display: block;
      margin-top: 7px;
      color: var(--text);
      font-size: 12px;
      font-weight: 700;
    }

    .watch-euipo-source {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-top: 5px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
    }

    .watch-euipo-source .portfolio-status-dot {
      flex-basis: 22px;
      width: 22px;
      min-width: 22px;
      height: 22px;
      min-height: 22px;
    }

    .watch-euipo-source a {
      margin-left: 6px;
      font-weight: 750;
    }

    .radar-response-playbook .actions { justify-content: flex-start; margin-top: 14px; }
    .radar-playbook-progress { height: 5px; margin: 14px 0 16px; background: #dfe7eb; overflow: hidden; }
    .radar-playbook-progress span { display: block; width: var(--playbook-progress); height: 100%; background: var(--accent); transition: width .2s ease; }
    .radar-playbook-steps { border-top: 1px solid var(--line); }
    .radar-playbook-steps label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: flex-start; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
    .radar-playbook-steps input { width: 17px; height: 17px; margin: 2px 0 0; }
    .radar-playbook-steps b,
    .radar-playbook-steps small { display: block; }
    .radar-playbook-steps small { margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
    .radar-playbook-fields { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(260px, 1fr); gap: 12px; margin-top: 14px; }
    .radar-playbook-fields label { margin: 0; }
    .radar-playbook-fields textarea { min-height: 76px; }

    @media (max-width: 680px) {
      .radar-playbook-fields { grid-template-columns: 1fr; }
    }

    .watch-card-summary {
      display: block;
      margin-top: 8px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
    }

    .watch-card.inactive {
      opacity: .62;
    }

    .watch-card-actions,
    .watch-finding-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 7px;
    }

    .watch-card-actions button,
    .watch-finding-actions button {
      width: auto;
      min-height: 34px;
      padding: 7px 10px;
    }

    .watch-card-menu {
      position: relative;
    }

    .watch-card-menu > summary {
      cursor: pointer;
      list-style: none;
      min-height: 34px;
      padding: 7px 10px;
      border: 1px solid transparent;
      border-radius: 6px;
      background: transparent;
      box-shadow: none;
      color: var(--ink);
      font-weight: 800;
      line-height: 18px;
    }

    .watch-card-menu > summary::-webkit-details-marker {
      display: none;
    }

    .watch-card-menu[open] > summary,
    .watch-card-menu > summary:hover {
      border-color: var(--forest-300);
      color: var(--accent-dark);
      background: #edf8f6;
    }

    .watch-card-menu-panel {
      position: absolute;
      z-index: 5;
      top: calc(100% + 6px);
      right: 0;
      width: 152px;
      display: grid;
      gap: 5px;
      padding: 7px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      box-shadow: 0 12px 28px rgba(18, 28, 35, 0.18);
    }

    .watch-card-menu-panel button {
      width: 100%;
      text-align: left;
    }

    .competitor-profiles {
      margin: 16px 0;
    }

    .competitor-profile-grid {
      display: grid;
      gap: 0;
    }

    .competitor-profile-index-heading,
    .competitor-profile-row {
      display: grid;
      grid-template-columns: minmax(180px, 1.15fr) minmax(170px, 1fr) minmax(200px, 1.2fr) minmax(210px, 1.25fr) auto;
      gap: 18px;
      align-items: center;
    }

    .competitor-profile-index-heading {
      padding: 8px 12px;
      border-bottom: 1px solid var(--line);
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
    }

    .competitor-profile-row {
      background: var(--white);
      padding: 14px 12px;
      border-bottom: 1px solid var(--line);
      min-width: 0;
    }

    .competitor-profile-row:last-child {
      border-bottom: 0;
    }

    .competitor-profile-identity,
    .competitor-profile-relationship,
    .competitor-profile-activity,
    .competitor-profile-next {
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .competitor-profile-name {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .profile-state {
      width: 8px;
      height: 8px;
      flex: 0 0 8px;
      border-radius: 50%;
      background: #9aa5af;
    }

    .profile-state.active { background: var(--forest-700); }
    .profile-state.paused { background: #9aa5af; }

    .competitor-profile-relationship .watch-relationship {
      margin-top: 0 !important;
    }

    .competitor-profile-next {
      padding-left: 10px;
      border-left: 3px solid #9aa5af;
    }

    .competitor-profile-next.review { border-left-color: #c58416; }
    .competitor-profile-next.urgent { border-left-color: #c43d4d; }
    .competitor-profile-next.clear { border-left-color: var(--forest-700); }

    .competitor-profile-actions { justify-self: end; }
    .competitor-profile-actions button { width: auto; white-space: nowrap; }

    .competitor-comparison-dashboard {
      display: grid;
      gap: 18px;
    }

    #watchComparisonView {
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
    }

    .competitor-comparison-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }

    .competitor-comparison-actions button { width: auto; }

    .competitor-comparison-picker {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
      border-top: 1px solid var(--line);
      border-left: 1px solid var(--line);
      background: var(--white);
    }

    .competitor-comparison-picker button {
      display: grid;
      gap: 3px;
      min-height: 62px;
      padding: 11px 12px;
      border: 0;
      border-right: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      border-radius: 0;
      background: var(--white);
      color: var(--ink);
      text-align: left;
      box-shadow: none;
    }

    .competitor-comparison-picker button:hover { background: var(--soft); }
    .competitor-comparison-picker button.selected { background: var(--forest-100); box-shadow: inset 3px 0 0 var(--forest-700); }
    .competitor-comparison-picker button span { font-weight: 800; }
    .competitor-comparison-picker button small { color: var(--muted); }

    .competitor-comparison-insights {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      border-top: 1px solid var(--line);
      border-left: 1px solid var(--line);
      background: var(--white);
    }

    .competitor-comparison-insights article {
      min-width: 0;
      padding: 14px;
      border-right: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .competitor-comparison-insights b { display: block; margin-top: 4px; }
    .competitor-comparison-insights p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

    .competitor-comparison-table-wrap {
      max-width: 100%;
      overflow-x: auto;
      border: 1px solid var(--line);
      background: var(--white);
    }

    .competitor-comparison-table {
      width: 100%;
      min-width: 760px;
      border-collapse: collapse;
      table-layout: auto;
    }

    .competitor-comparison-table th,
    .competitor-comparison-table td {
      padding: 11px 12px;
      border-right: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      text-align: left;
      vertical-align: top;
      overflow-wrap: anywhere;
    }

    .competitor-comparison-table tr:last-child > * { border-bottom: 0; }
    .competitor-comparison-table tr > *:last-child { border-right: 0; }
    .competitor-comparison-table thead th { background: #f4f8f8; }
    .competitor-comparison-table thead th:first-child,
    .competitor-comparison-table tbody th { width: 150px; background: var(--soft); }
    .competitor-comparison-table thead th:not(:first-child) { min-width: 200px; }
    .competitor-comparison-table thead th span { display: block; margin: 3px 0 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
    .competitor-comparison-table thead button { width: auto; }
    .competitor-comparison-boundary { margin: 0; padding-top: 2px; }

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

    .competitor-identity-summary {
      display: flex;
      flex-wrap: wrap;
      gap: 0;
      margin-top: 12px;
      border: 1px solid var(--line);
      background: var(--white);
    }

    .competitor-identity-summary span {
      min-width: 120px;
      padding: 9px 12px;
      border-right: 1px solid var(--line);
      color: var(--muted);
      font-size: 12px;
    }

    .competitor-identity-summary span:last-child { border-right: 0; }
    .competitor-identity-summary b { color: var(--ink); }

    .competitor-dossier-columns > div {
      min-width: 0;
      padding: 14px;
      border: 1px solid var(--line);
      background: var(--white);
    }

    .competitor-dossier-columns h4 { margin: 0 0 8px; }

    .competitor-dossier-evidence {
      display: grid;
      gap: 0;
    }

    .competitor-dossier-evidence article {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid var(--line);
    }

    .competitor-dossier-evidence article:last-child { border-bottom: 0; }
    .competitor-dossier-evidence article > div { display: grid; gap: 3px; min-width: 0; }
    .competitor-dossier-evidence article > div:last-child { justify-items: end; flex: 0 0 auto; }
    .competitor-dossier-evidence .button-link { margin-top: 5px; }

    .competitor-dossier-evidence article.identity-confirmed {
      box-shadow: inset 3px 0 0 var(--forest-700);
      padding-left: 10px;
    }

    .competitor-dossier-evidence article.identity-rejected { opacity: .62; }

    .competitor-dossier-evidence-controls > div {
      display: flex;
      justify-content: flex-end;
      gap: 6px;
      margin-top: 4px;
    }

    .competitor-dossier-evidence-controls button { width: auto; white-space: nowrap; }

    .competitor-coverage-plan {
      display: grid;
      gap: 0;
      margin-top: 12px;
      border-top: 1px solid var(--line);
    }

    .competitor-coverage-plan-row {
      display: grid;
      grid-template-columns: minmax(170px, .85fr) minmax(230px, 1.3fr) auto;
      gap: 16px;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid var(--line);
    }

    .competitor-coverage-plan-row > div { display: grid; gap: 4px; min-width: 0; }
    .competitor-coverage-plan-row button { width: auto; white-space: nowrap; }
    .competitor-coverage-details { margin-top: 12px; }
    .competitor-coverage-details summary { cursor: pointer; font-weight: 700; }

    @media (max-width: 1100px) {
      .competitor-profile-index-heading { display: none; }

      .competitor-profile-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        gap: 12px 18px;
      }

      .competitor-profile-activity,
      .competitor-profile-next {
        padding-top: 10px;
        border-top: 1px solid var(--line);
      }

      .competitor-profile-next {
        padding-left: 10px;
        border-left-width: 3px;
      }

      .competitor-profile-actions {
        grid-column: 3;
        grid-row: 1 / span 2;
      }

      .competitor-dossier-columns { grid-template-columns: 1fr; }
      .competitor-comparison-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    .watch-empty-state {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      min-width: 0;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--soft);
    }

    .watch-empty-state > span {
      flex: 1 1 240px;
    }

    .watch-empty-state button {
      width: auto;
    }

    #competitorFindingsSection.findings-empty .watch-finding-bulkbar {
      display: none;
    }

    #competitorFindingsSection .watch-empty-state {
      margin-top: 8px;
    }

    .competitor-profile-timeline {
      display: grid;
      gap: 0;
    }

    .competitor-profile-event {
      display: grid;
      grid-template-columns: 100px minmax(0, 1fr) auto;
      gap: 10px;
      align-items: start;
      padding: 10px 0;
      border-bottom: 1px solid var(--line);
    }

    .competitor-profile-event:last-child {
      border-bottom: 0;
    }

    .historical-intent-summary {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      background: var(--white);
    }

    .historical-intent-summary > div {
      padding: 12px;
      border-right: 1px solid var(--line);
    }

    .historical-intent-summary > div:last-child {
      border-right: 0;
    }

    .historical-intent-summary b,
    .historical-intent-summary span {
      display: block;
    }

    .historical-intent-summary b {
      font-size: 22px;
    }

    .historical-intent-summary span {
      color: var(--muted);
      font-size: 12px;
    }

    .competitor-profile-evidence-row .watch-finding-actions {
      justify-content: flex-end;
    }

    @media (max-width: 680px) {
      .competitor-evidence-grid {
        grid-template-columns: 1fr;
      }

      .competitor-evidence-span {
        grid-column: auto;
      }

      .competitor-evidence-actions > * {
        flex: 1 1 0;
      }

      .historical-intent-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .competitor-coverage-plan-row { grid-template-columns: 1fr; gap: 8px; }
      .competitor-coverage-plan-row button { width: 100%; }
      .competitor-dossier-evidence article { display: grid; }
      .competitor-dossier-evidence article > div:last-child { justify-items: start; }
      .competitor-dossier-evidence-controls > div { justify-content: flex-start; flex-wrap: wrap; }
      .competitor-comparison-dashboard > .section-heading { align-items: stretch; }
      .competitor-comparison-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .competitor-comparison-actions button:last-child { grid-column: 1 / -1; }
      .competitor-comparison-actions button { width: 100%; }
      .competitor-comparison-picker,
      .competitor-comparison-insights { grid-template-columns: 1fr; }

      .historical-intent-summary > div:nth-child(2) {
        border-right: 0;
      }

      .historical-intent-summary > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
      }
    }

    .watch-coverage {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 9px;
      margin-bottom: 14px;
    }

    .watch-coverage-item {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 12px;
      display: grid;
      gap: 8px;
      min-width: 0;
    }

    .watch-coverage-heading,
    .watch-coverage-title,
    .watch-coverage-metrics {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .watch-coverage-heading {
      justify-content: space-between;
      margin: 18px 0 8px;
    }

    .watch-coverage-heading h3 {
      margin-bottom: 2px;
    }

    .watch-coverage-title {
      justify-content: space-between;
    }

    .watch-coverage-item > .meta {
      min-height: 38px;
    }

    .watch-coverage-metrics {
      padding-top: 8px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 12px;
    }

    .watch-coverage-metrics b {
      color: var(--ink);
    }

    .backfill-progress {
      display: grid;
      gap: 7px;
      margin: 10px 0;
    }

    .backfill-progress progress {
      width: 100%;
      height: 10px;
      accent-color: var(--accent);
    }

    .backfill-all-status {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 12px;
      margin-bottom: 12px;
    }

    .backfill-all-status:empty {
      display: none;
    }

    .backfill-all-status progress {
      width: 100%;
      height: 9px;
      accent-color: var(--accent);
    }

    .backfill-batch-header,
    .backfill-batch-actions,
    .backfill-batch-controls {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }

    .backfill-batch-controls {
      justify-content: flex-start;
    }

    .backfill-batch-metrics,
    .backfill-batch-sources {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 8px;
      margin-top: 10px;
    }

    .backfill-batch-metrics span,
    .backfill-batch-sources span {
      border-left: 2px solid var(--line);
      padding-left: 9px;
    }

    .backfill-batch-metrics b,
    .backfill-batch-sources b {
      display: block;
    }

    .backfill-batch-issues {
      display: grid;
      gap: 6px;
      margin-top: 10px;
    }

    .backfill-batch-issue {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      padding-top: 7px;
      border-top: 1px solid var(--line);
    }

    .backfill-history {
      margin: 0 0 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      overflow: hidden;
    }

    .backfill-history:empty {
      display: none;
    }

    .backfill-history summary {
      cursor: pointer;
      padding: 11px 12px;
      font-weight: 800;
    }

    .backfill-history-list {
      border-top: 1px solid var(--line);
    }

    .backfill-history-row {
      display: grid;
      grid-template-columns: minmax(170px, 1.2fr) repeat(3, minmax(90px, 0.65fr)) auto;
      gap: 10px;
      align-items: center;
      padding: 10px 12px;
      border-bottom: 1px solid var(--line);
    }

    .backfill-history-row:last-child {
      border-bottom: 0;
    }

    .backfill-history-row.selected {
      background: #eef8f6;
    }

    .backfill-history-row span {
      min-width: 0;
    }

    .backfill-history-row small {
      display: block;
    }

    .backfill-history-row button {
      width: auto;
      padding: 7px 10px;
      font-size: 12px;
    }

    @media (max-width: 700px) {
      .watch-view-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
      }

      .watch-view-tabs {
        flex: 1 1 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
      }

      .watch-view-tabs button {
        width: 100%;
        min-width: 0;
      }

      .watch-view-actions {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
      }

      .watch-view-actions button {
        width: auto;
        flex: 1 1 0;
      }

      #openCompetitorWatchDrawerButton:not(.hidden) {
        flex: 1 1 0;
      }

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

      .backfill-all-status {
        grid-template-columns: 1fr;
      }

      .backfill-history-row {
        grid-template-columns: 1fr 1fr;
      }

      .backfill-history-row > span:first-child {
        grid-column: 1 / -1;
      }

    }

    .watch-all-clear {
      margin-top: 10px;
      border-left: 3px solid var(--ok);
      background: #eef8f3;
      padding: 9px 11px;
      border-radius: 0 6px 6px 0;
    }

    .watch-scan-activity {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 14px;
      margin-bottom: 14px;
    }

    .watch-overview-stats {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-bottom: 0;
    }

    .watch-overview-stats .stat {
      min-height: 58px;
      padding: 9px 11px;
    }

    .watch-overview-stats .stat b {
      font-size: 19px;
      line-height: 1.2;
      margin-bottom: 2px;
      overflow-wrap: anywhere;
    }

    .watch-overview-stats .stat span {
      font-size: 12px;
    }

    .watch-health-panel {
      margin: 14px 0 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      overflow: hidden;
    }

    .watch-health-panel > summary {
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      list-style: none;
    }

    .watch-health-panel > summary::-webkit-details-marker {
      display: none;
    }

    .watch-health-panel > summary > span:first-child {
      display: grid;
      gap: 2px;
      min-width: 0;
    }

    .watch-health-panel > summary::after {
      content: "+";
      font-size: 20px;
      font-weight: 800;
      color: var(--muted);
    }

    .watch-health-panel[open] > summary::after {
      content: "−";
    }

    .watch-health-panel-body {
      border-top: 1px solid var(--line);
      padding: 0 14px 14px;
    }

    .watch-health-panel .watch-coverage {
      margin-top: 14px;
    }

    .watch-health-panel .watch-scan-activity {
      background: var(--panel);
    }

    .watch-reconciliation {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px 18px;
      align-items: center;
      padding: 14px 0;
      margin-bottom: 14px;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .watch-reconciliation h3 {
      margin: 0 0 3px;
      font-size: 15px;
    }

    .watch-reconciliation-actions {
      display: flex;
      gap: 8px;
    }

    .watch-reconciliation-actions button {
      width: auto;
      min-width: 92px;
    }

    .watch-reconciliation-preview {
      grid-column: 1 / -1;
    }

    .watch-reconciliation-preview:empty {
      display: none;
    }

    .watch-reconciliation-examples {
      margin-top: 10px;
    }

    .watch-reconciliation-metrics {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      border-top: 1px solid var(--line);
    }

    .watch-reconciliation-metrics > span {
      padding: 10px 10px 0 0;
      color: var(--muted);
      font-size: 12px;
    }

    .watch-reconciliation-metrics b {
      display: block;
      color: var(--ink);
      font-size: 18px;
    }

    .watch-reconciliation-complete {
      display: flex;
      align-items: baseline;
      gap: 12px;
      padding-top: 10px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 13px;
    }

    .watch-reconciliation-complete b {
      flex: 0 0 auto;
      color: var(--ink);
    }

    #competitorWatchListSection {
      margin: 0;
      padding: 16px;
      border: 1px solid var(--line);
      background: var(--white);
    }

    #competitorWatchListSection .section-heading {
      margin: 0 0 12px;
    }

    #competitorWatchList .watch-card {
      background: var(--white);
    }

    .watch-scan-header,
    .watch-scan-actions {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .watch-scan-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 8px;
      margin-top: 12px;
    }

    .watch-scan-metric {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 9px 10px;
      min-width: 0;
    }

    .watch-scan-metric b,
    .watch-scan-metric span {
      display: block;
    }

    .watch-scan-errors {
      color: var(--danger);
      margin-top: 10px;
    }

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

    .watch-form-actions button {
      flex: 1 1 130px;
    }

    .watch-notification-settings {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 0 10px 10px;
    }

    .watch-notification-settings summary {
      cursor: pointer;
      padding: 10px 0 0;
      font-weight: 800;
    }

    .watch-notification-options {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 7px;
      margin-top: 9px;
    }

    .watch-notification-options label {
      display: flex;
      align-items: center;
      gap: 7px;
      margin: 0;
      font-size: 13px;
    }

    .watch-notification-options input,
    .watch-notification-settings .checkbox-row input {
      width: auto;
      flex: 0 0 auto;
    }

    .watch-notification-settings .checkbox-row {
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .watch-match-mode {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      margin-top: 6px;
    }

    .watch-match-mode label {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 38px;
      margin: 0;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: var(--white);
      font-size: 13px;
      font-weight: 800;
    }

    .watch-match-mode input {
      width: auto;
    }

    .watch-preview-results {
      display: grid;
      gap: 7px;
      margin-top: 10px;
    }

    .watch-preview-item {
      border-top: 1px solid var(--line);
      padding-top: 7px;
    }

    .watch-scan-history {
      margin-bottom: 16px;
    }

    .watch-reminder-panel {
      margin-bottom: 16px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 0 12px;
    }

    .watch-reminder-panel summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 11px 0;
      cursor: pointer;
    }

    .watch-reminder-list {
      display: grid;
      gap: 8px;
      border-top: 1px solid var(--line);
      padding: 10px 0 12px;
    }

    .watch-reminder-item {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: start;
      gap: 10px;
    }

    .watch-reminder-item button {
      width: auto;
    }

    .watch-scan-history-list {
      margin-top: 8px;
      overflow-x: auto;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--white);
    }

    .watch-scan-history-table {
      min-width: 560px;
      table-layout: auto;
    }

    .watch-scan-history-table th {
      padding: 8px 12px;
      background: #f7f9fa;
      color: var(--muted);
      font-size: 11px;
    }

    .watch-scan-history-table > tbody > tr:first-child > td {
      height: 54px;
      padding: 8px 12px;
      vertical-align: middle;
    }

    .watch-scan-history-table > tbody:hover > tr:first-child > td {
      background: #fbfcfd;
    }

    .watch-scan-history-table th:nth-child(2),
    .watch-scan-history-table td:nth-child(2) {
      width: 90px;
      text-align: center;
    }

    .watch-scan-history-table th:nth-child(3),
    .watch-scan-history-table td:nth-child(3) {
      width: 72px;
      text-align: center;
    }

    .watch-scan-history-table th:nth-child(4),
    .watch-scan-history-table td:nth-child(4) {
      width: 145px;
    }

    .watch-scan-history-table th:nth-child(5),
    .watch-scan-history-table td:nth-child(5) {
      width: 190px;
    }

    .watch-scan-label {
      display: inline-flex;
      align-items: center;
      gap: 9px;
    }

    button.watch-scan-row-toggle {
      width: 26px;
      height: 26px;
      min-height: 26px;
      flex: 0 0 26px;
      padding: 0;
      border: 0;
      border-radius: 4px;
      background: transparent;
      box-shadow: none;
      color: var(--muted);
      font-size: 20px;
      font-weight: 500;
      line-height: 1;
      text-shadow: none;
      transform: none;
      transition: color 140ms ease, background 140ms ease, transform 140ms ease;
    }

    button.watch-scan-row-toggle:hover,
    button.watch-scan-row-toggle:focus-visible,
    button.watch-scan-row-toggle:active {
      border: 0;
      background: #e8f3f1;
      box-shadow: none;
      color: var(--accent);
      text-shadow: none;
    }

    button.watch-scan-row-toggle[aria-expanded="true"] {
      transform: rotate(90deg);
    }

    .watch-scan-status {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      white-space: nowrap;
    }

    .watch-scan-status::before {
      width: 8px;
      height: 8px;
      flex: 0 0 8px;
      border-radius: 50%;
      background: var(--muted);
      content: "";
    }

    .watch-scan-status.low::before { background: var(--ok); }
    .watch-scan-status.medium::before { background: var(--warn); }
    .watch-scan-status.high::before { background: var(--risk); }

    .watch-scan-time,
    .watch-scan-time span {
      display: block;
    }

    .watch-scan-time {
      white-space: nowrap;
    }

    .watch-scan-time b {
      font-weight: 600;
    }

    .watch-scan-detail-row[hidden] {
      display: none;
    }

    .watch-scan-detail-row > td {
      padding: 0;
      background: #fafcfd;
    }

    .watch-scan-run-body {
      border-top: 1px solid var(--line);
      padding: 10px 16px 12px;
    }

    .watch-source-result {
      display: grid;
      grid-template-columns: 90px 90px minmax(160px, 1fr) auto;
      align-items: center;
      gap: 10px;
      padding: 8px 0;
      border-bottom: 1px solid var(--line);
    }

    .watch-source-result:last-child {
      border-bottom: 0;
    }

    .watch-scan-run-body .watch-source-result .pill {
      justify-self: start;
      padding: 0;
      background: transparent;
      font-size: 12px;
    }

    .watch-rule-impact {
      grid-column: 1 / -1;
      display: grid;
      gap: 8px;
      border-left: 3px solid var(--accent);
      background: var(--soft);
      padding: 10px 12px;
    }

    .watch-rule-impact-header,
    .watch-rule-impact-actions,
    .watch-rule-sample {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }

    .watch-rule-impact-actions button,
    .watch-rule-sample button {
      width: auto;
      min-height: 32px;
      padding: 6px 10px;
    }

    .watch-rule-samples {
      display: grid;
      gap: 6px;
    }

    .watch-rule-sample {
      border-top: 1px solid var(--line);
      padding-top: 7px;
    }

    .watch-rule-toolbar {
      display: grid;
      grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 210px));
      gap: 10px;
      margin-bottom: 14px;
    }

    .watch-rule-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 12px;
    }

    .watch-feedback-suggestions {
      display: grid;
      gap: 10px;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--line);
    }

    .watch-feedback-suggestion-list {
      display: grid;
      border-top: 1px solid var(--line);
    }

    .watch-feedback-suggestion {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 18px;
      padding: 12px 2px;
      border-bottom: 1px solid var(--line);
    }

    .watch-feedback-suggestion > div:first-child {
      display: grid;
      gap: 3px;
      min-width: 0;
    }

    .watch-feedback-kicker {
      color: var(--accent-dark);
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .watch-feedback-suggestion-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(90px, 1fr));
      gap: 7px;
    }

    .watch-feedback-suggestion-actions button {
      min-height: 36px;
    }

    .watch-template-section {
      width: 100%;
      margin: 0;
      padding: 0 0 18px;
      display: grid;
      gap: 12px;
      border-bottom: 1px solid var(--line);
    }

    #watchRulesView .watch-template-section,
    #watchRulesView > .section-heading:first-of-type {
      margin-top: 0;
    }

    .template-watch-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 8px;
    }

    .template-watch-actions > div {
      display: flex;
      gap: 7px;
    }

    .template-watch-actions button {
      width: auto;
      min-height: 32px;
      padding: 6px 9px;
    }

    .watch-rule-card {
      display: grid;
      align-content: start;
      gap: 12px;
      min-width: 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 14px;
    }

    .watch-rule-card.disabled,
    .watch-rule-card.removed {
      background: var(--panel);
    }

    .watch-rule-card-header,
    .watch-rule-card-actions,
    .watch-rule-edit-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
    }

    .watch-rule-card-value {
      overflow-wrap: anywhere;
      font-size: 16px;
    }

    .watch-rule-card-meta {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 6px 12px;
      margin: 0;
    }

    .watch-rule-card-meta dt {
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .watch-rule-card-meta dd {
      min-width: 0;
      margin: 0;
      overflow-wrap: anywhere;
    }

    .watch-rule-card-actions button,
    .watch-rule-edit-actions button {
      width: auto;
      min-height: 34px;
      padding: 7px 11px;
    }

    .watch-rule-edit {
      display: grid;
      gap: 8px;
      border-top: 1px solid var(--line);
      padding-top: 10px;
    }

    .watch-rule-edit label {
      margin: 0;
    }

    .watch-rule-card .watch-rule-samples {
      border-top: 1px solid var(--line);
      padding-top: 4px;
    }

    .watch-rule-preview-summary,
    .watch-rule-preview-offices {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 10px;
    }

    .watch-rule-preview-metric {
      min-width: 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 12px;
    }

    .watch-rule-preview-metric b {
      display: block;
      font-size: 22px;
      margin-bottom: 3px;
    }

    .watch-rule-preview-metric.low { border-color: #a8d9cd; background: #eef8f5; }
    .watch-rule-preview-metric.high { border-color: #e3afb5; background: #fff1f2; }

    .watch-rule-preview-warning {
      border-left: 3px solid var(--warn);
      background: #fff5e5;
      padding: 11px 12px;
    }

    .watch-rule-preview-warning.blocking { border-left-color: var(--danger); background: #fff1f2; }

    .watch-rule-preview-examples {
      display: grid;
      gap: 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
    }

    .watch-rule-preview-example {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      border-bottom: 1px solid var(--line);
    }

    .watch-rule-preview-example:last-child {
      border-bottom: 0;
    }

    .watch-rule-preview-example b,
    .watch-rule-preview-example span {
      overflow-wrap: anywhere;
    }

    @media (max-width: 720px) {
      .watch-notification-options {
        grid-template-columns: 1fr;
      }

      .watch-scan-run summary,
      .watch-source-result {
        grid-template-columns: 1fr auto;
      }

      .watch-source-result .meta {
        grid-column: 1 / -1;
      }

      .watch-rule-toolbar,
      .watch-rule-grid {
        grid-template-columns: 1fr;
      }

      .watch-feedback-suggestion {
        grid-template-columns: 1fr;
      }

      .watch-feedback-suggestion-actions {
        width: 100%;
      }

      .watch-rule-preview-example {
        grid-template-columns: 1fr;
      }

      .competitor-profile-event {
        grid-template-columns: 1fr;
      }
    }

    .operations-action-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 10px;
    }

    .operations-action {
      min-height: 130px;
      padding: 14px;
      text-align: left;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      color: var(--ink);
      cursor: pointer;
      display: grid;
      gap: 8px;
      align-content: start;
      box-shadow: none;
    }

    .operations-action:hover,
    .operations-action.active {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(18, 132, 116, 0.12);
    }

    .operations-action b {
      font-size: 17px;
    }

    .operations-action strong {
      font-size: 30px;
      line-height: 1;
    }

    .operations-action span {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.35;
    }

    .operations-detail-hidden {
      display: none !important;
    }

    .portfolio-view-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .recent-feed {
      display: grid;
      grid-template-columns: 1fr;
      gap: 6px;
    }

    .recent-item {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 8px 10px;
      min-height: 0;
      display: grid;
      grid-template-columns: minmax(160px, .8fr) minmax(180px, 1fr) minmax(220px, 1.2fr);
      gap: 10px;
      align-items: center;
    }

    .recent-item b {
      display: block;
      margin-bottom: 0;
    }

    .renewal-calendar {
      display: grid;
      gap: 12px;
      margin-bottom: 20px;
    }

    .calendar-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 12px;
    }

    .calendar-bucket {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 12px;
      min-height: 110px;
    }

    .calendar-bucket h3 {
      margin: 0 0 10px;
      font-size: 15px;
    }

    .calendar-item {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 10px;
      display: grid;
      gap: 5px;
      margin-bottom: 8px;
    }

    .calendar-item:last-child {
      margin-bottom: 0;
    }

    .portfolio-drawer {
      display: none;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 20px;
      scroll-margin-top: 72px;
    }

    .portfolio-drawer.open {
      display: block;
    }

    .drawer-header {
      background: var(--white);
      border-bottom: 1px solid var(--line);
      padding: 18px;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
    }

    .drawer-body {
      padding: 18px;
      display: grid;
      gap: 14px;
    }

    .drawer-header-actions {
      display: flex;
      gap: 8px;
      align-items: flex-start;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .drawer-header-actions button,
    .drawer-header-actions .button-link {
      width: auto;
    }

    .drawer-header-actions .primary {
      background: var(--accent);
      color: var(--white);
      width: auto;
      min-width: 132px;
    }

    .drawer-priority {
      border: 1px solid var(--line);
      border-left: 4px solid var(--accent);
      border-radius: 8px;
      background: var(--white);
      padding: 12px;
      display: grid;
      gap: 6px;
    }

    .drawer-priority.high {
      border-left-color: var(--risk);
    }

    .drawer-priority.medium {
      border-left-color: var(--warn);
    }

    .drawer-priority b,
    .drawer-priority span {
      display: block;
    }

    .drawer-summary {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 10px;
    }

    .drawer-summary-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 10px;
      min-height: 74px;
      display: grid;
      align-content: start;
      gap: 4px;
    }

    .drawer-summary-card b {
      display: block;
      margin: 0;
    }

    .drawer-summary-label {
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    .drawer-summary-card .drawer-summary-value {
      font-size: 15px;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .drawer-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.94);
    }

    .drawer-tabs button {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: linear-gradient(#ffffff, #f1f5f7);
      color: var(--ink);
      padding: 9px 12px;
      font-size: 13px;
      font-weight: 800;
      width: auto;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), inset 0 -1px 0 rgba(18, 26, 34, 0.08);
      text-shadow: none;
    }

    .drawer-tabs button.active {
      border-color: var(--accent);
      background: linear-gradient(var(--forest-700), var(--accent));
      color: var(--white);
      text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18);
    }

    .drawer-tab-panel {
      display: none;
      gap: 14px;
    }

    .drawer-tab-panel.active {
      display: grid;
    }

    .drawer-actions {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
      gap: 8px;
    }

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

    .drawer-action-row > button {
      width: auto;
    }

    .drawer-more-actions {
      min-width: 0;
    }

    .drawer-more-actions > summary {
      min-height: 36px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: linear-gradient(#ffffff, #f1f5f7);
      padding: 8px 11px;
      color: var(--ink);
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
      list-style-position: inside;
    }

    .drawer-more-actions[open] > summary {
      border-color: var(--accent);
      color: var(--accent-dark);
    }

    .drawer-more-actions .drawer-actions {
      margin-top: 8px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

    .drawer-section {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 12px;
    }

    .drawer-section h3 {
      margin: 0 0 10px;
      font-size: 15px;
    }

    .suspension-briefing {
      border-left: 4px solid var(--warn);
      background: linear-gradient(135deg, color-mix(in srgb, var(--warn) 8%, var(--panel)), var(--panel) 60%);
    }

    .suspension-briefing .drawer-section-heading h3 {
      margin-top: 4px;
    }

    .suspension-briefing-headline {
      margin: 0 0 6px;
      font-weight: 700;
      color: var(--ink);
    }

    .suspension-briefing-facts,
    .suspension-briefing-columns {
      display: grid;
      gap: 10px;
      margin-top: 12px;
    }

    .suspension-briefing-facts {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .suspension-briefing-fact,
    .suspension-briefing-columns > div {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 10px;
    }

    .suspension-briefing-fact {
      display: grid;
      gap: 4px;
    }

    .suspension-briefing-fact span,
    .suspension-briefing-fact small {
      color: var(--muted);
    }

    .suspension-briefing-columns h4 {
      margin: 0 0 8px;
      font-size: 13px;
    }

    .suspension-briefing-columns ul {
      margin: 0 0 10px;
      padding-left: 20px;
    }

    .suspension-briefing-columns li + li {
      margin-top: 6px;
    }

    .suspension-briefing-events {
      display: grid;
      gap: 7px;
    }

    .suspension-briefing-event {
      display: grid;
      grid-template-columns: 92px 1fr;
      gap: 8px;
      align-items: baseline;
    }

    .suspension-briefing-event time {
      color: var(--muted);
      font-size: 12px;
    }

    .suspension-briefing-document {
      margin-top: 12px;
      border: 1px solid color-mix(in srgb, var(--good) 35%, var(--line));
      border-radius: 8px;
      background: color-mix(in srgb, var(--good) 5%, var(--white));
      padding: 10px;
    }

    .suspension-briefing-document h4,
    .suspension-briefing-document p {
      margin: 0 0 8px;
    }

    .suspension-briefing-document blockquote {
      margin: 8px 0;
      border-left: 3px solid var(--good);
      padding: 7px 10px;
      background: var(--white);
    }

    .suspension-briefing-document blockquote p {
      margin: 3px 0 0;
    }

    .suspension-blocker-tracker {
      margin-top: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 10px;
    }

    .suspension-blocker-tracker h4,
    .suspension-blocker-tracker p {
      margin: 0;
    }

    .suspension-blocker-list {
      display: grid;
      gap: 7px;
      margin-top: 10px;
    }

    .suspension-blocker-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      border-top: 1px solid var(--line);
      padding-top: 7px;
    }

    .suspension-blocker-row > div {
      display: grid;
      gap: 2px;
    }

    .suspension-blocker-row a,
    .suspension-blocker-row span,
    .suspension-blocker-row small {
      color: var(--muted);
      font-size: 12px;
    }

    .suspension-blocker-row.foreign {
      margin-top: 3px;
      border-top-style: dashed;
    }

    .suspension-foreign-evidence {
      display: grid;
      gap: 9px;
    }

    .suspension-human-review-gate {
      display: grid;
      gap: 10px;
      margin-top: 4px;
      border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
      border-radius: 8px;
      background: color-mix(in srgb, var(--accent) 4%, var(--white));
      padding: 12px;
    }

    .suspension-human-review-gate h4,
    .suspension-human-review-gate p {
      margin: 0;
    }

    .suspension-review-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .suspension-review-grid label,
    .suspension-review-notes {
      display: grid;
      align-content: start;
      gap: 5px;
      color: var(--text);
      font-size: 12px;
      font-weight: 650;
    }

    .suspension-review-grid select,
    .suspension-review-notes textarea {
      width: 100%;
      margin: 0;
    }

    .suspension-review-notes textarea {
      min-height: 82px;
      resize: vertical;
    }

    .suspension-review-ack {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      border-radius: 6px;
      background: var(--surface-soft);
      padding: 9px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .suspension-review-ack input {
      flex: 0 0 auto;
      width: auto;
      margin-top: 2px;
    }

    .suspension-review-ack span {
      min-width: 0;
    }

    .suspension-review-ack code {
      overflow-wrap: anywhere;
      color: var(--text);
      font-size: 11px;
    }

    .suspension-review-warning {
      border-left: 3px solid var(--warning);
      padding-left: 9px;
      color: var(--muted);
      font-size: 12px;
    }

    .suspension-review-permission {
      border-left: 3px solid var(--success);
      padding-left: 9px;
      color: var(--muted);
      font-size: 12px;
    }

    .suspension-review-permission.view-only {
      border-left-color: var(--warning);
    }

    .suspension-review-history {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

    .suspension-review-history.empty {
      display: grid;
      gap: 3px;
      padding: 11px 12px;
      color: var(--muted);
      font-size: 12px;
    }

    .suspension-review-history.empty b {
      color: var(--text);
      font-size: 13px;
    }

    .suspension-review-history summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 12px;
      cursor: pointer;
      list-style: none;
    }

    .suspension-review-history summary::-webkit-details-marker {
      display: none;
    }

    .suspension-review-history summary > span:first-child {
      display: grid;
      gap: 2px;
    }

    .suspension-review-history summary small {
      color: var(--muted);
      font-size: 11px;
      font-weight: 600;
    }

    .suspension-review-timeline {
      display: grid;
      gap: 0;
      border-top: 1px solid var(--line);
    }

    .suspension-review-revision {
      position: relative;
      display: grid;
      gap: 7px;
      padding: 12px 12px 12px 24px;
    }

    .suspension-review-revision + .suspension-review-revision {
      border-top: 1px solid var(--line);
    }

    .suspension-review-revision::before {
      content: "";
      position: absolute;
      top: 17px;
      left: 10px;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, var(--white));
    }

    .suspension-review-revision.stale::before {
      background: var(--warning);
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--warning) 16%, var(--white));
    }

    .suspension-review-revision-heading {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }

    .suspension-review-revision-heading > div {
      display: grid;
      gap: 2px;
    }

    .suspension-review-revision-heading span,
    .suspension-review-revision p,
    .suspension-review-revision li {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.45;
    }

    .suspension-review-revision code {
      overflow-wrap: anywhere;
      border-radius: 5px;
      background: var(--surface-soft);
      padding: 6px 7px;
      color: var(--text);
      font-size: 10px;
    }

    .suspension-review-receipts {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
    }

    .suspension-review-receipts > div {
      display: grid;
      min-width: 0;
      gap: 3px;
    }

    .suspension-review-receipts span {
      color: var(--muted);
      font-size: 10px;
      font-weight: 700;
    }

    .suspension-review-receipts code {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    @media (max-width: 720px) {
      .suspension-review-receipts {
        grid-template-columns: 1fr;
      }
    }

    .suspension-review-integrity {
      border-left: 2px solid var(--muted);
      padding-left: 7px;
      font-weight: 700;
    }

    .suspension-review-integrity.verified {
      border-left-color: var(--success);
      color: var(--success);
    }

    .suspension-review-integrity.failed {
      border-left-color: var(--danger);
      color: var(--danger);
    }

    .suspension-review-integrity.unsealed,
    .suspension-review-integrity.pending {
      border-left-color: var(--warning);
    }

    .suspension-review-revision p,
    .suspension-review-revision ul {
      margin: 0;
    }

    .suspension-review-revision ul {
      padding-left: 17px;
    }

    .suspension-review-stale-reason {
      border-left: 2px solid var(--warning);
      padding-left: 7px;
    }

    .suspension-review-current-reason {
      border-left: 2px solid var(--success);
      padding-left: 7px;
    }

    .suspension-review-audit-packet {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px 12px;
      border: 1px dashed var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 11px 12px;
    }

    .suspension-review-audit-packet > div:first-child {
      display: grid;
      gap: 2px;
    }

    .suspension-review-audit-packet b {
      color: var(--text);
      font-size: 13px;
    }

    .suspension-review-audit-packet span,
    .suspension-review-audit-packet p {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.45;
    }

    .suspension-review-audit-packet .actions {
      margin: 0;
    }

    .suspension-review-audit-packet > p {
      grid-column: 1 / -1;
      margin: 0;
      border-top: 1px solid var(--line);
      padding-top: 7px;
    }

    @media (max-width: 620px) {
      .suspension-review-audit-packet {
        grid-template-columns: 1fr;
      }

      .suspension-review-audit-packet .actions {
        display: grid;
        grid-template-columns: 1fr;
      }
    }

    .suspension-review-completion-backdrop {
      z-index: 120;
    }

    .suspension-review-completion-modal {
      z-index: 121;
      width: min(720px, calc(100vw - 32px));
    }

    .suspension-review-completion-body {
      display: grid;
      gap: 14px;
    }

    .suspension-review-completion-body section {
      margin: 0;
    }

    .suspension-review-completion-body h3,
    .suspension-review-completion-body p {
      margin: 0;
    }

    .suspension-review-completion-body h3 {
      margin-bottom: 8px;
      font-size: 13px;
    }

    .suspension-review-completion-impact {
      display: grid;
      grid-template-columns: auto auto auto minmax(0, 1fr);
      align-items: center;
      gap: 8px;
      border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
      border-radius: 8px;
      background: color-mix(in srgb, var(--accent) 5%, var(--white));
      padding: 12px;
    }

    .suspension-review-completion-impact p {
      padding-left: 4px;
      font-size: 12px;
    }

    .suspension-review-completion-summary,
    .suspension-review-completion-notes,
    .suspension-review-completion-checksum,
    .suspension-review-completion-effects {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 12px;
    }

    .suspension-review-completion-summary dl {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin: 0;
    }

    .suspension-review-completion-summary dl div {
      border-radius: 6px;
      background: var(--surface-soft);
      padding: 9px;
    }

    .suspension-review-completion-summary dt {
      color: var(--muted);
      font-size: 10px;
      font-weight: 750;
      letter-spacing: .03em;
      text-transform: uppercase;
    }

    .suspension-review-completion-summary dd {
      margin: 3px 0 0;
      color: var(--text);
      font-size: 12px;
      font-weight: 700;
    }

    .suspension-review-completion-notes p,
    .suspension-review-completion-checksum p,
    .suspension-review-completion-effects li {
      color: var(--muted);
      font-size: 12px;
    }

    .suspension-review-completion-checksum code {
      display: block;
      overflow-wrap: anywhere;
      border-radius: 6px;
      background: var(--surface-soft);
      padding: 8px;
      color: var(--text);
      font-size: 11px;
    }

    .suspension-review-completion-checksum p {
      margin-top: 7px;
    }

    .suspension-review-completion-effects {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .suspension-review-completion-effects > div:last-child {
      border-left: 3px solid var(--success);
      padding-left: 12px;
    }

    .suspension-review-completion-effects ul {
      margin: 0;
      padding-left: 17px;
    }

    .suspension-review-completion-ack {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      margin: 0;
      border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
      border-radius: 8px;
      background: color-mix(in srgb, var(--accent) 5%, var(--white));
      padding: 11px 12px;
      color: var(--text);
      font-size: 12px;
      line-height: 1.45;
    }

    .suspension-review-completion-ack input {
      flex: 0 0 auto;
      width: auto;
      margin-top: 2px;
    }

    .suspension-review-completion-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
    }

    @media (max-width: 620px) {
      .suspension-review-completion-modal {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
      }

      .suspension-review-completion-impact {
        grid-template-columns: auto auto auto;
      }

      .suspension-review-completion-impact p {
        grid-column: 1 / -1;
        padding-left: 0;
      }

      .suspension-review-completion-summary dl,
      .suspension-review-completion-effects {
        grid-template-columns: 1fr;
      }

      .suspension-review-completion-effects > div:last-child {
        border-top: 1px solid var(--line);
        border-left: 0;
        padding-top: 12px;
        padding-left: 0;
      }

      .suspension-review-completion-actions {
        display: grid;
        grid-template-columns: 1fr;
      }
    }

    .suspension-counsel-handoff {
      display: grid;
      gap: 9px;
      border: 1px dashed var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 12px;
    }

    .suspension-counsel-handoff h4,
    .suspension-counsel-handoff p,
    .suspension-counsel-handoff dl,
    .suspension-counsel-handoff dd {
      margin: 0;
    }

    .suspension-counsel-handoff dl {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 7px;
    }

    .suspension-counsel-handoff dl > div {
      display: grid;
      gap: 2px;
      border-radius: 6px;
      background: var(--surface-soft);
      padding: 8px;
    }

    .suspension-counsel-handoff dt {
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .03em;
      text-transform: uppercase;
    }

    .suspension-counsel-handoff dd {
      color: var(--text);
      font-size: 12px;
      font-weight: 650;
    }

    @media (max-width: 680px) {
      .suspension-review-grid {
        grid-template-columns: 1fr;
      }

      .suspension-counsel-handoff dl {
        grid-template-columns: 1fr;
      }
    }

    .suspension-evidence-facts {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 6px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .suspension-evidence-facts li {
      display: grid;
      gap: 2px;
      padding: 7px 8px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--surface-soft);
    }

    .suspension-evidence-facts span,
    .suspension-evidence-facts small,
    .suspension-evidence-missing {
      color: var(--muted);
      font-size: 12px;
    }

    .suspension-evidence-missing {
      border-left: 3px solid var(--warning);
      padding-left: 9px;
    }

    .suspension-evidence-missing ul {
      margin: 4px 0 0;
      padding-left: 18px;
    }

    .suspension-material-changes {
      margin-top: 10px;
      border-top: 1px solid var(--line);
      padding-top: 9px;
    }

    .suspension-material-changes ul {
      margin: 6px 0 0;
      padding-left: 20px;
    }

    .suspension-briefing-guardrail {
      margin: 12px 0 0;
      color: var(--muted);
      font-size: 12px;
    }

    .drawer-section-heading,
    .brand-record-handoff {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
    }

    .drawer-section-heading {
      margin-bottom: 10px;
    }

    .drawer-section-heading h3,
    .drawer-section-heading p {
      margin: 0;
    }

    .drawer-section-heading .button-link,
    .brand-record-handoff button {
      width: auto;
      flex: 0 0 auto;
    }

    .brand-record-handoff > div {
      display: grid;
      gap: 4px;
    }

    .drawer-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .drawer-field {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 9px;
      min-width: 0;
    }

    .drawer-field b {
      display: block;
      font-size: 12px;
      margin-bottom: 4px;
    }

    .field-provenance {
      display: flex;
      align-items: flex-start;
      gap: 5px;
      margin-top: 6px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.35;
    }

    .field-provenance > span {
      color: var(--accent-dark);
      font-weight: 900;
    }

    .brand-record-heading { display: grid; gap: 4px; min-width: 0; }
    .brand-record-heading .eyebrow { color: var(--accent-dark); font-size: 11px; font-weight: 850; text-transform: uppercase; }
    .brand-record-heading .mark { font-size: 23px; }
    .registration-identity { font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
    .drawer-brand-family-context { margin-top: 1px; }
    .brand-record-score { display: grid; gap: 5px; }
    .brand-record-score-track { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
    .brand-record-score-track span { display: block; width: var(--score); height: 100%; background: var(--accent); }
    .brand-record-columns { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 14px; }
    .brand-record-section { border-top: 1px solid var(--line); padding-top: 12px; }
    .brand-record-section:first-child { border-top: 0; padding-top: 0; }
    .brand-record-section h3 { margin: 0 0 8px; font-size: 15px; }
    .brand-record-list { display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
    .brand-record-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 11px; background: var(--white); }
    .brand-record-row + .brand-record-row { border-top: 1px solid var(--line); }
    .brand-record-row > div { display: grid; gap: 3px; min-width: 0; }
    .brand-record-row button { width: auto; }
    .brand-evidence-heading { margin: 0 0 12px; }
    .brand-evidence-summary {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      border-block: 1px solid var(--line);
    }
    .brand-evidence-summary > div { padding: 10px 12px; }
    .brand-evidence-summary > div + div { border-left: 1px solid var(--line); }
    .brand-evidence-summary b,
    .brand-evidence-summary span { display: block; }
    .brand-evidence-summary b { font-size: 20px; }
    .brand-evidence-summary span { color: var(--muted); font-size: 12px; }
    .brand-evidence-key { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 10px 2px 4px; color: var(--muted); font-size: 12px; }
    .brand-evidence-key span { display: inline-flex; align-items: center; gap: 6px; }
    .brand-evidence-key i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
    .brand-evidence-timeline { display: grid; padding-top: 4px; }
    .brand-evidence-event {
      display: grid;
      grid-template-columns: 100px 14px minmax(0, 1fr);
      gap: 10px;
      min-width: 0;
      padding: 11px 0;
    }
    .brand-evidence-event + .brand-evidence-event { border-top: 1px solid var(--line); }
    .brand-evidence-event time { color: var(--muted); font-size: 12px; font-weight: 700; }
    .brand-evidence-marker { width: 9px; height: 9px; margin-top: 4px; border: 2px solid var(--white); border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 1px var(--line); }
    .brand-evidence-event.attention .brand-evidence-marker { background: var(--warning); }
    .brand-evidence-event.positive .brand-evidence-marker { background: var(--success); }
    .brand-evidence-event > div { display: grid; gap: 3px; min-width: 0; }
    .brand-evidence-event > div > b,
    .brand-evidence-event > div > span { overflow-wrap: anywhere; }
    .brand-evidence-event > div > span:not(.brand-evidence-category) { color: var(--muted); font-size: 13px; }
    .brand-evidence-category { color: var(--accent-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; }
    .brand-evidence-empty { display: grid; gap: 3px; padding: 16px 0; border-block: 1px solid var(--line); }
    .brand-evidence-empty span { color: var(--muted); font-size: 13px; }

    .brand-pipeline { display: grid; gap: 14px; margin-bottom: 30px; }
    .brand-pipeline-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; background: var(--white); overflow: hidden; }
    .brand-pipeline-summary > div { display: grid; gap: 2px; padding: 12px 14px; }
    .brand-pipeline-summary > div + div { border-left: 1px solid var(--line); }
    .brand-pipeline-summary b { font-size: 22px; }
    .brand-pipeline-summary span { color: var(--muted); font-size: 12px; }
    .brand-pipeline-legend { display: grid; grid-template-columns: 220px repeat(5, minmax(76px, 1fr)) 170px; color: var(--muted); font-size: 11px; font-weight: 750; }
    .brand-pipeline-legend span:first-child { grid-column: 2; }
    .brand-pipeline-legend span { text-align: center; }
    .brand-pipeline-rows { display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); }
    .brand-pipeline-row { display: grid; grid-template-columns: 220px minmax(380px, 1fr) 170px; align-items: center; gap: 18px; min-width: 0; padding: 13px 14px; }
    .brand-pipeline-row + .brand-pipeline-row { border-top: 1px solid var(--line); }
    .brand-pipeline-identity { display: grid; gap: 3px; min-width: 0; }
    .brand-pipeline-identity-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
    .brand-pipeline-identity b, .brand-pipeline-identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .brand-pipeline-identity span, .brand-pipeline-next > span { color: var(--muted); font-size: 12px; }
    .brand-pipeline-track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(76px, 1fr)); align-items: start; }
    .brand-pipeline-track::before { content: ""; position: absolute; top: 7px; left: 10%; right: 10%; height: 2px; background: var(--line); }
    .brand-pipeline-stage { position: relative; z-index: 1; display: grid; justify-items: center; gap: 5px; color: var(--muted); font-size: 11px; text-align: center; }
    .brand-pipeline-stage i { width: 16px; height: 16px; border: 2px solid #bdc9d2; border-radius: 50%; background: var(--white); }
    .brand-pipeline-stage.done i { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--white); }
    .brand-pipeline-stage.next i { border-color: #bd7600; background: #fff3dc; }
    .brand-pipeline-stage.done em, .brand-pipeline-stage.next em { color: var(--ink); }
    .brand-pipeline-stage em { font-style: normal; }
    .brand-pipeline-next { display: grid; justify-items: stretch; gap: 6px; }
    .brand-pipeline-next button { width: 100%; }

    .brands-workspace { display: grid; gap: 18px; }
    .brands-records-section { display: grid; gap: 14px; }
    .brands-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
    .brands-toolbar label { margin: 0; }
    .brands-summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; background: var(--white); overflow: hidden; }
    .brands-summary-strip > div { padding: 14px 16px; display: grid; gap: 2px; }
    .brands-summary-strip > div + div { border-left: 1px solid var(--line); }
    .brands-summary-strip b { font-size: 24px; }
    .brands-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .brand-hub-card { display: grid; align-content: start; gap: 13px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
    .brand-hub-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
    .brand-hub-card-header > div { display: grid; gap: 3px; min-width: 0; }
    .brand-hub-identity { display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px !important; }
    .brand-hub-logo { width: 36px; height: 36px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
    .brand-hub-card-header h3 { margin: 0; font-size: 17px; }
    .brand-hub-score { flex: 0 0 auto; color: var(--accent-dark); font-size: 13px; font-weight: 850; }
    .brand-hub-offices { display: flex; flex-wrap: wrap; gap: 5px; }
    .brand-hub-facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .brand-hub-fact { display: grid; gap: 2px; padding: 10px 6px; }
    .brand-hub-fact:nth-child(even) { border-left: 1px solid var(--line); padding-left: 12px; }
    .brand-hub-fact:nth-child(n+3) { border-top: 1px solid var(--line); }
    .brand-hub-fact b { font-size: 15px; }
    .brand-hub-gaps { min-height: 38px; color: var(--muted); font-size: 12px; }
    .brand-hub-card .actions { margin: 0; grid-template-columns: 1fr; }
    .brand-hub-card .actions.two { grid-template-columns: minmax(0, 1fr) auto; }
    .brand-editor-backdrop { position: fixed; inset: 0; z-index: 88; display: none; background: rgba(24, 32, 40, .42); }
    .brand-editor-backdrop.open { display: block; }
    .brand-editor-modal { position: fixed; z-index: 89; inset: 50% auto auto 50%; display: none; width: min(720px, calc(100vw - 32px)); max-height: min(780px, calc(100vh - 32px)); transform: translate(-50%, -50%); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 22px 60px rgba(18, 26, 34, .24); }
    .brand-editor-modal.open { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
    .brand-editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
    .brand-editor-header h2 { margin: 0 0 3px; font-size: 21px; }
    .brand-editor-body { display: grid; gap: 18px; padding: 20px; overflow-y: auto; }
    .brand-editor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .brand-editor-fields .full { grid-column: 1 / -1; }
    .brand-editor-section { display: grid; gap: 9px; padding-top: 14px; border-top: 1px solid var(--line); }
    .brand-editor-section h3 { margin: 0; font-size: 15px; }
    .brand-policy-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
    .brand-policy-heading p { margin: 4px 0 0; }
    .brand-policy-publish { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); white-space: nowrap; }
    .brand-policy-publish input { width: auto; margin: 0; }
    .brand-policy-state { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 650; }
    .brand-policy-state-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa8b4; box-shadow: 0 0 0 3px rgba(154, 168, 180, .16); }
    .brand-policy-state-dot.published { background: var(--teal); box-shadow: 0 0 0 3px rgba(20, 135, 123, .14); }
    .brand-policy-editor textarea { min-height: 76px; }
    .brand-editor-connections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
    .brand-editor-connections > div { display: grid; gap: 2px; padding: 11px 12px; }
    .brand-editor-connections > div + div { border-left: 1px solid var(--line); }
    .brand-editor-registration-list { display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
    .brand-editor-registration { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 9px; padding: 10px 11px; }
    .brand-editor-registration + .brand-editor-registration { border-top: 1px solid var(--line); }
    .brand-editor-registration input { margin-top: 3px; }
    .brand-protection-confirm { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-weight: 600; }
    .brand-protection-confirm input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; }
    .brand-protection-actions { justify-content: flex-start; margin: 14px 0 10px; }
    .brand-protection-findings { margin-top: 10px; border-top: 1px solid var(--line); }
    .brand-protection-finding { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .brand-protection-finding > div:first-child { display: grid; gap: 3px; min-width: 0; }
    .brand-editor-structural { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
    .brand-editor-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--line); background: var(--panel); }

    .brand-policy-api { display: grid; gap: 16px; }
    .brand-policy-api > .section-heading { margin-bottom: 0; }
    .brand-policy-api > .panel, .brand-policy-distribution-grid > .panel { margin-bottom: 0; }
    .brand-policy-api-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; overflow: hidden; }
    .brand-policy-api-overview > div { display: grid; gap: 3px; padding: 16px 20px; border-left: 1px solid var(--line); background: var(--panel); }
    .brand-policy-api-overview > div:first-child { border-left: 0; }
    .brand-policy-api-overview span { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
    .brand-policy-api-overview b { font-size: 1.3rem; }
    .brand-policy-api-message { margin: -4px 0 0; }
    .brand-policy-api-message:empty { display: none; }
    .brand-policy-api-keys { min-width: 0; padding: 20px; }
    .brand-policy-api-keys h3 { margin: 0 0 5px; font-size: 16px; }
    .brand-policy-api-list-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
    .brand-policy-api-list-heading button { width: auto; flex: 0 0 auto; }
    .brand-policy-api-list { display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
    .brand-policy-api-key { display: grid; grid-template-columns: minmax(150px, .65fr) minmax(280px, 1.35fr) auto; gap: 14px; align-items: center; padding: 13px 14px; background: var(--white); }
    .brand-policy-api-key + .brand-policy-api-key { border-top: 1px solid var(--line); }
    .brand-policy-api-key.revoked { background: var(--panel); color: var(--muted); }
    .brand-policy-api-key b, .brand-policy-api-key span { display: block; }
    .brand-policy-api-key dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; margin: 0; font-size: 12px; }
    .brand-policy-api-key dt { color: var(--muted); font-weight: 700; }
    .brand-policy-api-key dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
    .brand-policy-key-secret { display: grid; gap: 8px; margin-top: 14px; padding: 13px; border-left: 4px solid var(--accent); background: #eef8f6; }
    .brand-policy-key-secret code { display: block; padding: 10px; border: 1px solid #b8d9d5; border-radius: 6px; background: var(--white); overflow-wrap: anywhere; user-select: all; }
    .brand-policy-key-secret button { width: auto; justify-self: start; }
    .brand-policy-api-action { margin-top: 14px; border-top: 1px solid var(--line); }
    .brand-policy-api-action > summary, .brand-policy-api-guide > summary, .brand-policy-deliveries > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 2px 0; cursor: pointer; list-style: none; }
    .brand-policy-api-action > summary::-webkit-details-marker, .brand-policy-api-guide > summary::-webkit-details-marker, .brand-policy-deliveries > summary::-webkit-details-marker { display: none; }
    .brand-policy-api-action > summary span:first-child, .brand-policy-api-guide > summary span:first-child, .brand-policy-deliveries > summary span:first-child { display: grid; gap: 3px; }
    .brand-policy-api-action > summary small, .brand-policy-api-guide > summary small, .brand-policy-deliveries > summary small { color: var(--muted); }
    .brand-policy-api-action > summary span:last-child, .brand-policy-api-guide > summary span:last-child, .brand-policy-deliveries > summary span:last-child { color: var(--accent); font-size: .76rem; font-weight: 800; }
    .brand-policy-api-action[open] > summary > span:last-child { transform: rotate(45deg); }
    .brand-policy-api-create { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(280px, 1.35fr) auto; align-items: end; gap: 12px; padding-top: 16px; }
    .brand-policy-api-create label { margin: 0; }
    .brand-policy-api-create button { align-self: end; }
    .brand-policy-api-create .brand-policy-key-secret { grid-column: 1 / -1; }
    .brand-policy-api-guide { padding: 0; overflow: hidden; }
    .brand-policy-api-guide > summary, .brand-policy-deliveries > summary { padding: 17px 20px; }
    .brand-policy-api-example { display: grid; gap: 7px; margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
    .brand-policy-distribution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .brand-policy-distribution-section { display: grid; gap: 14px; align-content: start; min-width: 0; padding: 20px; }
    .brand-policy-distribution-section h3, .brand-policy-deliveries h3, .brand-policy-history h3 { margin: 0 0 4px; font-size: 16px; }
    .brand-policy-webhook-form { display: grid; grid-template-columns: minmax(140px, .65fr) minmax(220px, 1.35fr); gap: 10px; align-items: end; padding-top: 16px; }
    .brand-policy-webhook-form button { grid-column: 1 / -1; justify-self: start; }
    .brand-policy-webhook-form button { width: auto; }
    .brand-policy-webhook-list, .brand-policy-consumer-list { display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
    .brand-policy-webhook-list > .empty, .brand-policy-consumer-list > .empty { margin: 0; padding: 24px 16px; }
    .brand-policy-webhook-row { display: grid; grid-template-columns: minmax(160px, .75fr) minmax(220px, 1.25fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .brand-policy-webhook-row > div, .brand-policy-consumer-row > div { min-width: 0; }
    .brand-policy-webhook-row code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .brand-policy-webhook-actions { display: flex; gap: 6px; }
    .brand-policy-webhook-actions button { width: auto; }
    .brand-policy-consumer-row { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(120px, .7fr) minmax(100px, .6fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .brand-policy-consumer-row span { overflow-wrap: anywhere; }
    .brand-policy-consumer-name { display: flex; align-items: center; gap: 9px; }
    .brand-policy-consumer-name > div { min-width: 0; }
    .brand-policy-consumer-status { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #b7791f; box-shadow: 0 0 0 3px rgba(183, 121, 31, .12); }
    .brand-policy-consumer-status.current { background: var(--forest-700); box-shadow: 0 0 0 3px rgba(36, 107, 101, .12); }
    .brand-policy-consumer-status.offline { background: #bd3341; box-shadow: 0 0 0 3px rgba(189, 51, 65, .12); }
    .brand-policy-deliveries { padding: 0; overflow: hidden; }
    .brand-policy-deliveries > div { padding: 0 20px 18px; }
    .brand-policy-delivery-table { width: 100%; border-collapse: collapse; font-size: 13px; }
    .brand-policy-delivery-table th, .brand-policy-delivery-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
    .brand-policy-delivery-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; }
    .brand-policy-delivery-table td .meta { display: block; max-width: 280px; margin-top: 3px; }
    .brand-policy-history { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
    .brand-policy-history-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
    .brand-policy-history-version { font-weight: 800; color: var(--teal); }
    .brand-record-coverage { display: grid; gap: 0; border-top: 1px solid var(--line); }
    .brand-record-coverage-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
    .brand-record-coverage-row span:last-child { color: var(--muted); text-align: right; }

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

    .timeline-item {
      border-left: 3px solid var(--accent);
      padding: 2px 0 2px 10px;
    }

    .asset-timeline {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 10px;
      display: grid;
      gap: 8px;
    }

    .asset-timeline-bar {
      height: 8px;
      border-radius: 999px;
      background: #e5ecef;
      overflow: hidden;
    }

    .asset-timeline-progress {
      height: 100%;
      width: var(--progress, 0%);
      background: var(--accent);
      border-radius: inherit;
    }

    .asset-timeline-points {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .asset-timeline-points b {
      display: block;
      font-size: 12px;
      margin-bottom: 2px;
    }

    .tm-card-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }

    .tm-card-title {
      min-width: 0;
    }

    .tm-card-title .mark {
      overflow-wrap: anywhere;
    }

    .portfolio-status-dot {
      position: relative;
      flex: 0 0 28px;
      width: 28px;
      height: 28px;
      min-width: 28px;
      min-height: 28px;
      padding: 0;
      border: 0;
      border-radius: 50%;
      background: transparent;
      box-shadow: none;
      text-shadow: none;
    }

    .portfolio-status-dot::before {
      content: "";
      display: block;
      width: 11px;
      height: 11px;
      margin: auto;
      border: 2px solid var(--white);
      border-radius: 50%;
      background: var(--muted);
      box-shadow: 0 0 0 1px #aab7c1;
    }

    .portfolio-status-dot.high::before {
      background: var(--risk);
      box-shadow: 0 0 0 1px #8f1f2b;
    }

    .portfolio-status-dot.medium::before {
      background: #d88a16;
      box-shadow: 0 0 0 1px #a96709;
    }

    .portfolio-status-dot.low::before {
      background: var(--ok);
      box-shadow: 0 0 0 1px var(--forest-950);
    }

    .portfolio-status-dot:hover,
    .portfolio-status-dot:focus-visible {
      border: 0;
      background: #edf7f5;
      box-shadow: none;
      transform: none;
    }

    .portfolio-status-dot::after {
      content: attr(data-tooltip);
      position: absolute;
      z-index: 20;
      top: calc(100% + 7px);
      right: 0;
      width: max-content;
      max-width: 260px;
      padding: 8px 10px;
      border: 1px solid var(--line);
      border-radius: 4px;
      background: var(--ink);
      color: var(--white);
      font-size: 12px;
      font-weight: 650;
      line-height: 1.4;
      text-align: left;
      text-shadow: none;
      white-space: normal;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(-3px);
      transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
    }

    .portfolio-status-dot:hover::after,
    .portfolio-status-dot:focus-visible::after {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .semantic-relevance-line {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .semantic-relevance-dot {
      flex: 0 0 24px;
      width: 24px;
      height: 24px;
      min-width: 24px;
      min-height: 24px;
    }

    .semantic-relevance-dot::after {
      left: 0;
      right: auto;
    }

    .tm-card-summary {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
      overflow-wrap: anywhere;
    }

    .tm-card .variants {
      gap: 5px;
    }

    .tm-card-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px 14px;
    }

    .tm-card-field {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 2px;
      align-content: start;
      min-height: 0;
      padding-top: 7px;
      border-top: 1px solid var(--line);
    }

    .tm-card-field b {
      font-size: 12px;
      color: var(--muted);
    }

    .tm-card-field span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .tm-card-field .clip {
      white-space: nowrap;
    }

    .tm-card-field:nth-child(5) {
      grid-column: 1 / -1;
    }

    @media (max-width: 1180px) {
      #portfolioCardDashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    .tm-card-actions {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 8px;
    }

    .tm-card-actions .actions {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      margin-top: 0;
    }

    .tm-card-actions button {
      width: 100%;
      min-width: 0;
    }

    .tm-card-actions button.primary {
      background: linear-gradient(var(--forest-700), var(--accent));
      border-color: var(--accent-edge);
      color: var(--white);
    }

    .brand-domain-list {
      display: grid;
      gap: 8px;
    }

    .brand-domain-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 9px 10px;
    }

    .brand-domain-row a {
      flex: 1 1 auto;
      min-width: 0;
      color: var(--accent);
      font-weight: 700;
      overflow-wrap: anywhere;
    }

    .brand-domain-row button {
      flex: 0 0 auto;
      width: auto !important;
      min-width: 110px;
    }

    .brand-domain-monitor-row {
      align-items: flex-start;
    }

    .brand-domain-copy {
      display: grid;
      gap: 4px;
      min-width: 0;
      flex: 1 1 auto;
    }

    .brand-domain-copy > div,
    .brand-domain-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .brand-domain-actions {
      justify-content: flex-end;
      flex: 0 1 390px;
    }

    .brand-domain-actions select {
      width: auto;
      min-width: 130px;
    }

    .brand-domain-actions button {
      min-width: 82px;
    }

    .domain-auto-renew {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      white-space: nowrap;
      font-size: 13px;
      font-weight: 700;
    }

    .domain-auto-renew input { width: auto; }

    @media (max-width: 760px) {
      .brand-domain-monitor-row { flex-direction: column; }
      .brand-domain-actions { width: 100%; flex-basis: auto; justify-content: flex-start; }
    }

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

    .tm-card-counter {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 8px;
      min-height: 58px;
    }

    .tm-card-counter b {
      display: block;
      font-size: 20px;
      line-height: 1;
      margin-bottom: 5px;
    }

    .tm-card-counter span {
      color: var(--muted);
      font-size: 12px;
    }

    .memo-header {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr);
      gap: 16px;
      align-items: start;
      margin-bottom: 16px;
    }

    .memo-header h2 {
      margin-bottom: 6px;
    }

    .memo-callout {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 12px;
    }

    .memo-callout b {
      display: block;
      margin-bottom: 4px;
    }

    .memo-list {
      display: grid;
      gap: 8px;
      margin: 12px 0 0;
    }

    .memo-list div {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 10px;
      background: var(--white);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
    }

    th,
    td {
      border-bottom: 1px solid var(--line);
      padding: 11px 12px;
      text-align: left;
      vertical-align: top;
      font-size: 13px;
    }

    th {
      background: #f2f6f8;
      color: #42505d;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    tr:last-child td {
      border-bottom: 0;
    }

    .results-card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 12px;
      margin-bottom: 14px;
    }

    .clearance-briefing {
      display: grid;
      gap: 16px;
      margin: 0 0 16px;
      padding: 18px;
      overflow: hidden;
    }

    .clearance-briefing-heading {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 24px;
    }

    .clearance-briefing-heading h3 { margin: 3px 0 5px; }
    .clearance-briefing-heading p { margin: 0; color: var(--muted); }

    .clearance-risk-badge {
      min-width: 132px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-left: 4px solid var(--success);
      border-radius: 8px;
      background: var(--panel);
    }

    .clearance-risk-badge.medium { border-left-color: var(--warn); }
    .clearance-risk-badge.high { border-left-color: var(--danger); }
    .clearance-risk-badge span, .clearance-risk-badge b { display: block; }
    .clearance-risk-badge span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
    .clearance-risk-badge b { margin-top: 3px; font-size: 18px; }

    .clearance-query-map {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
    }

    .clearance-query-map > div { min-width: 0; padding: 12px 14px; border-left: 1px solid var(--line); background: var(--panel); }
    .clearance-query-map > div:first-child { border-left: 0; }
    .clearance-query-map span, .clearance-query-map b { display: block; }
    .clearance-query-map span { margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
    .clearance-query-map b { overflow-wrap: anywhere; font-size: 13px; }

    .clearance-coverage-table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
    .clearance-coverage-row { display: grid; grid-template-columns: minmax(90px, .7fr) repeat(3, minmax(64px, .45fr)) minmax(240px, 2fr); align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
    .clearance-coverage-row:first-child { border-top: 0; }
    .clearance-coverage-header { background: var(--panel); color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
    .clearance-coverage-row > span:last-child { min-width: 0; }
    .clearance-coverage-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }

    .clearance-findings { display: grid; gap: 0; }
    .clearance-findings-heading { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; color: var(--muted); font-size: 12px; }
    .clearance-findings article { display: grid; grid-template-columns: minmax(180px, 1.1fr) auto minmax(240px, 1.5fr) auto; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
    .clearance-findings article > div span, .clearance-findings article > div small { display: block; }
    .clearance-findings article > div span, .clearance-findings article > div small { margin-top: 3px; color: var(--muted); font-size: 11px; }
    .clearance-findings article > div small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .clearance-findings article > a { font-size: 12px; font-weight: 750; white-space: nowrap; }
    .clearance-no-conflicts { padding: 14px; border: 1px dashed var(--line); border-radius: 8px; background: var(--panel); }
    .clearance-owned-context { margin-top: 10px; border-top: 1px solid var(--line); }
    .clearance-owned-context > summary { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; color: var(--muted); cursor: pointer; font-size: 12px; }
    .clearance-owned-context > summary b { color: var(--ink); }
    .clearance-owned-context > div { border-top: 1px solid var(--line); }

    .clearance-boundary { display: flex; gap: 10px; padding: 11px 13px; border-left: 4px solid var(--success); background: var(--panel); font-size: 12px; }
    .clearance-boundary.limited { border-left-color: var(--warn); }
    .clearance-boundary span { color: var(--muted); }
    .clearance-briefing-empty { display: grid; gap: 4px; color: var(--muted); }
    .clearance-briefing-empty b { color: var(--ink); }

    .result-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 14px;
      display: grid;
      gap: 10px;
      align-content: start;
    }

    .result-card-header {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: flex-start;
    }

    .result-card-body {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 8px;
    }

    .result-card-field {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      padding: 9px;
      min-width: 0;
    }

    .result-card-field b {
      display: block;
      font-size: 12px;
      margin-bottom: 4px;
      color: var(--muted);
    }

    .result-card-goods {
      grid-column: 1 / -1;
    }

    .line-clamp {
      display: -webkit-box;
      -webkit-line-clamp: 5;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .result-card-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .result-table-details {
      margin-top: 10px;
    }

    .result-table-details summary {
      cursor: pointer;
      padding: 12px 14px;
      font-weight: 800;
      border-bottom: 1px solid var(--line);
      background: var(--panel);
    }

    .mark {
      font-weight: 800;
      font-size: 14px;
    }

    .meta {
      display: block;
      color: var(--muted);
      margin-top: 3px;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 3px 8px;
      border-radius: 999px;
      font-weight: 800;
      font-size: 12px;
      background: #eef2f4;
    }

    .pill.high {
      color: var(--risk);
      background: #f9e5e7;
    }

    .pill.medium {
      color: var(--warn);
      background: #fff1da;
    }

    .pill.low {
      color: var(--ok);
      background: #e2f3eb;
    }

    .pill.owner {
      margin-top: 6px;
    }

    button.pill {
      border: 1px solid rgba(18, 26, 34, 0.08);
      color: var(--ink);
      cursor: pointer;
      min-height: 24px;
      padding: 3px 8px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), inset 0 -1px 0 rgba(18, 26, 34, 0.08);
      text-shadow: none;
    }

    button.pill:hover {
      background: linear-gradient(#eef4f7, #dbe6ea);
      color: var(--ink);
    }

    button.pill.high:hover {
      background: linear-gradient(#fae8ea, #f2ccd1);
      color: var(--risk);
    }

    button.pill.medium:hover {
      background: linear-gradient(#fff5e4, #ffe2ad);
      color: var(--warn);
    }

    button.pill.low:hover {
      background: linear-gradient(#e5f5ed, #cbe9da);
      color: var(--ok);
    }

    .pill.owner.likely {
      color: var(--ok);
      background: #dff2ed;
    }

    .pill.owner.possible {
      color: var(--warn);
      background: #fff1da;
    }

    .pill.owner.partner {
      color: #32506b;
      background: #e4edf5;
    }

    .variants {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 9px;
    }

    .empty {
      padding: 42px 20px;
      text-align: center;
      color: var(--muted);
    }

    .section-heading {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 16px;
      margin: 26px 0 12px;
    }

    .section-heading h2,
    .section-heading p {
      margin-bottom: 0;
    }

    .workspace-page-heading {
      align-items: flex-start;
      margin: 0 0 18px;
    }

    .workspace-page-heading h2 {
      margin: 0 0 4px;
      font-size: 22px;
      line-height: 1.2;
    }

    .workspace-page-heading p {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.4;
    }

    .workspace-masthead {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 0 20px;
      align-items: start;
      margin: 0 0 24px;
      padding: 21px 24px 18px;
      border-top: 4px solid var(--accent);
      border-bottom: 1px solid #cbdadf;
      background: var(--white);
      box-shadow: 0 7px 18px rgba(18, 26, 34, 0.06);
    }

    .workspace-masthead > .section-heading,
    .workspace-masthead > .home-hero {
      grid-column: 1;
      align-items: flex-start;
      margin: 0;
    }

    .workspace-masthead > .global-brand-filter {
      grid-column: 2;
      grid-row: 1;
      align-self: start;
      justify-self: end;
      margin-top: 2px;
    }

    .workspace-masthead > .global-brand-filter select {
      min-width: 150px;
      max-width: 210px;
    }

    .workspace-masthead-kicker {
      display: block;
      margin-bottom: 7px;
      color: var(--accent-dark);
      font-size: 11px;
      font-weight: 850;
      letter-spacing: 0;
      text-transform: uppercase;
    }

    .workspace-masthead h1,
    .workspace-masthead .section-heading h2,
    #budgetDashboardPanel .workspace-masthead .section-heading h2,
    .main-workspace[data-workspace="operations"] .workspace-masthead .section-heading h2 {
      margin: 0 0 6px;
      font-size: 28px;
      line-height: 1.12;
    }

    .workspace-masthead .section-heading p,
    .workspace-masthead .home-hero p {
      max-width: 760px;
      margin: 0;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.45;
    }

    .workspace-guidance {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 18px;
      align-items: center;
      margin: 4px 0 22px;
      padding: 13px 14px 13px 16px;
      border-block: 1px solid #cfe3df;
      border-left: 4px solid var(--accent);
      background: #f4faf9;
    }

    .workspace-masthead .workspace-guidance {
      grid-column: 1 / -1;
      margin: 18px -24px -18px;
      padding: 13px 24px;
      border-block: 1px solid #cfe3df;
      border-left: 0;
      background: #eef8f6;
    }

    .workspace-guidance-copy {
      min-width: 0;
    }

    .workspace-guidance-kicker {
      display: block;
      margin-bottom: 3px;
      color: var(--accent-dark);
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
    }

    .workspace-guidance b,
    .workspace-guidance-detail {
      overflow-wrap: anywhere;
    }

    .workspace-guidance-detail {
      display: block;
      margin-top: 3px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.4;
    }

    .workspace-guidance button {
      width: auto;
      min-width: 136px;
      padding: 9px 12px;
      font-size: 12px;
    }

    .workspace-section-heading {
      align-items: flex-start;
      margin: 22px 0 10px;
    }

    .workspace-section-heading h2,
    .panel-section-heading h2 {
      margin: 0 0 3px;
      font-size: 17px;
      line-height: 1.25;
    }

    .workspace-section-heading p,
    .panel-section-heading p {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.4;
    }

    .section-disclosure > summary {
      font-size: 15px;
      line-height: 1.3;
    }

    #budgetDashboardPanel .workspace-page-heading h2,
    .main-workspace[data-workspace="operations"] > .panel > .section-heading h2 {
      font-size: 22px;
      line-height: 1.2;
    }

    .main-workspace[data-workspace="operations"] > .panel > .section-heading {
      align-items: flex-start;
      margin: 0 0 18px;
    }

    .section-heading.settings-panel-heading {
      display: grid;
      grid-template-columns: 1fr;
      justify-content: start;
      justify-items: start;
      align-items: start;
      gap: 12px;
      margin: 0 0 14px;
    }

    .section-heading.settings-panel-heading .calendar-actions {
      justify-content: flex-start;
      width: auto;
    }

    .section-heading.settings-panel-heading .calendar-actions button {
      flex: 0 0 auto;
      width: auto;
    }

    .filters {
      display: grid;
      grid-template-columns: repeat(4, minmax(130px, 1fr));
      gap: 10px;
      margin-bottom: 14px;
    }

    .filters label {
      margin-top: 0;
    }

    textarea.inline-note {
      min-height: 64px;
      margin-top: 7px;
      font-size: 13px;
    }

    @media (max-width: 900px) {
      main {
        grid-template-columns: 1fr;
      }

      aside {
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

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

      .watch-overview-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

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

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

      .portfolio-view-tools {
        grid-template-columns: 1fr;
      }

      .result-card-body {
        grid-template-columns: 1fr;
      }

      .clearance-briefing-heading { flex-direction: column; gap: 12px; }
      .clearance-risk-badge { width: 100%; }
      .clearance-query-map { grid-template-columns: 1fr; }
      .clearance-query-map > div { border-top: 1px solid var(--line); border-left: 0; }
      .clearance-query-map > div:first-child { border-top: 0; }
      .clearance-coverage-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
      .clearance-coverage-header span:nth-child(n + 2):nth-child(-n + 4), .clearance-coverage-row > span:nth-child(n + 2):nth-child(-n + 4) { text-align: center; }
      .clearance-coverage-row > span:last-child { grid-column: 1 / -1; }
      .clearance-findings article { grid-template-columns: 1fr auto; }
      .clearance-findings article > div:nth-of-type(2), .clearance-findings article > a { grid-column: 1 / -1; }
      .clearance-findings article > a { white-space: normal; }
      .clearance-boundary { flex-direction: column; }

      .portfolio-view-actions {
        justify-content: flex-start;
      }

      #registrySourcesPanel .registry-fields {
        grid-template-columns: 1fr;
      }

      .settings-panel-heading .calendar-actions button {
        flex: 1 1 160px;
      }

      .portfolio-drawer {
        width: 100%;
      }

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

      .drawer-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .drawer-summary-card:last-child {
        grid-column: 1 / -1;
      }

      .drawer-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
      }

      .drawer-tabs button {
        flex: 0 0 auto;
      }

      .brand-record-columns { grid-template-columns: 1fr; }

      .brand-pipeline-legend { display: none; }

      .brand-pipeline-row { grid-template-columns: 180px minmax(360px, 1fr) 150px; overflow-x: auto; }

      .brand-pipeline-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }

      .brand-pipeline-summary > div:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }

      .brand-pipeline-summary > div:nth-child(n+5) { border-top: 1px solid var(--line); }

      .brands-toolbar { grid-template-columns: 1fr; }

      .brands-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }

      .brands-summary-strip > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }

      .brands-summary-strip > div:nth-child(4) { border-top: 1px solid var(--line); }

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

      .brand-editor-fields, .brand-editor-structural, .brand-policy-api-create, .brand-policy-distribution-grid, .brand-policy-webhook-form { grid-template-columns: 1fr; }
      .brand-policy-api-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .brand-policy-api-overview > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
      .brand-policy-api-overview > div:nth-child(4) { border-top: 1px solid var(--line); }
      .brand-policy-api-create button, .brand-policy-api-create .brand-policy-key-secret, .brand-policy-webhook-form button { grid-column: auto; }
      .brand-policy-heading, .brand-policy-api-list-heading { align-items: stretch; flex-direction: column; }
      .brand-policy-api-key { grid-template-columns: 1fr; }
      .brand-policy-api-key button, .brand-policy-api-list-heading button, .brand-policy-webhook-form button { width: 100%; }
      .brand-policy-webhook-row, .brand-policy-consumer-row, .brand-policy-history-row { grid-template-columns: 1fr; gap: 5px; }
      .brand-policy-webhook-actions button { flex: 1; }

      .brand-editor-connections { grid-template-columns: 1fr; }

      .brand-editor-connections > div + div { border-left: 0; border-top: 1px solid var(--line); }

      .brand-record-row { grid-template-columns: 1fr; align-items: start; }

      .drawer-section-heading,
      .brand-record-handoff {
        align-items: stretch;
        flex-direction: column;
      }

      .drawer-section-heading .button-link,
      .brand-record-handoff button {
        width: 100%;
      }

      .brand-evidence-summary { grid-template-columns: 1fr; }

      .brand-evidence-summary > div + div { border-left: 0; border-top: 1px solid var(--line); }

      .brand-evidence-event { grid-template-columns: 82px 12px minmax(0, 1fr); gap: 8px; }

      .brand-record-row > .actions { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }

      .brand-record-row > .actions button { width: 100%; }

      .drawer-action-row {
        grid-template-columns: 1fr 1fr;
      }

      .drawer-action-row > button {
        width: 100%;
      }

      .drawer-more-actions {
        grid-column: 1 / -1;
      }

      .drawer-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .finding-review-fields {
        grid-template-columns: 1fr;
      }

      .finding-review-fields .full {
        grid-column: auto;
      }

      .finding-dismissal {
        grid-template-columns: 1fr;
      }

      .finding-dismissal .full {
        grid-column: auto;
      }

      .journal-review-toolbar,
      .journal-comparison,
      .watch-layout,
      .watch-coverage,
      .radar-layout {
        grid-template-columns: 1fr;
      }

      .wanted-domain-form,
      .wanted-domain-row,
      .wanted-domain-detail-body {
        grid-template-columns: 1fr;
      }

      .wanted-domain-actions {
        justify-content: stretch;
      }

      .wanted-domain-actions button {
        flex: 1 1 0;
      }

      .radar-results-heading button {
        width: 100%;
      }

      .radar-heading-actions { width: 100%; }

      .radar-auto-policy {
        grid-template-columns: 1fr 1fr;
        align-items: end;
      }

      .radar-auto-policy > div { grid-column: 1 / -1; }
      .radar-auto-policy .check-row { align-self: end; min-height: 42px; }
      .radar-auto-policy button { width: 100%; }

      .journal-review-stats {
        grid-template-columns: 1fr;
      }

      .watch-card,
      .watch-finding,
      .watch-reminder-item,
      .radar-result-card {
        grid-template-columns: 1fr;
      }

      .radar-lookalike-review-row { grid-template-columns: 1fr; }
      .radar-lookalike-decisions { grid-template-columns: 1fr 1fr; }
      .radar-review-outcome-stats { grid-template-columns: 1fr 1fr; }
      .radar-review-outcome-stat:nth-child(odd):not(:first-child) { border-left: 0; }
      .radar-review-outcome-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
      .radar-review-outcome-row { grid-template-columns: 1fr; }
      .radar-review-outcome-row button { width: 100%; }
      .radar-calibration-row { grid-template-columns: 1fr; }
      .radar-calibration-history-head { display: none; }
      .radar-calibration-history-row { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
      .radar-calibration-history-row > span::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
      .radar-calibration-history-row > span:first-child,
      .radar-calibration-history-row > span:nth-child(4) { grid-column: 1 / -1; }

      .watch-finding-group-header,
      .watch-finding-row {
        grid-template-columns: 22px minmax(0, 1fr);
      }

      .watch-finding-row .watch-finding-actions {
        grid-column: 2;
      }

      .clearance-flow-grid,
      .clearance-flow-grid.setup-only {
        grid-template-columns: 1fr;
      }

      #competitorFindingsSection .section-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
      }

      #watchFindingFilter {
        width: 100% !important;
      }

      .watch-finding-heading-actions,
      .guided-review-summary,
      .guided-review-filing {
        grid-template-columns: 1fr;
        width: 100%;
      }

      .watch-finding-heading-actions {
        display: grid;
      }

      .watch-finding-heading-actions button,
      .watch-finding-heading-actions select,
      .guided-review-actions button,
      .guided-review-navigation button {
        width: 100%;
      }

      .guided-review-signals {
        grid-template-columns: 1fr;
      }

      .watch-card-actions,
      .watch-finding-actions {
        justify-content: flex-start;
      }

      .journal-review-item {
        grid-template-columns: 22px minmax(0, 1fr) auto;
      }

      .journal-review-match {
        grid-column: 2;
      }

      .journal-review-actions {
        grid-column: 3;
        grid-row: 1 / span 2;
        justify-content: flex-start;
        min-width: 0;
      }
    }

    @media (max-width: 700px) {
      .watch-overview-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .watch-health-panel > summary {
        align-items: flex-start;
      }

      .watch-reconciliation {
        grid-template-columns: 1fr;
      }

      .watch-reconciliation-actions,
      .watch-reconciliation-actions button {
        width: 100%;
      }

      .watch-reconciliation-actions button {
        flex: 1 1 0;
      }

      .watch-reconciliation-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .watch-reconciliation-complete {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
      }

      .watch-card-menu-panel {
        right: auto;
        left: 0;
      }
    }

    /* Final responsive pass: keep every workspace usable at phone and tablet widths. */
    :root {
      --danger: var(--risk);
    }

    .saved:empty {
      display: none;
    }

    .error {
      color: var(--risk);
      overflow-wrap: anywhere;
    }

    .panel > table,
    .result-table-details > table {
      min-width: 760px;
    }

    #deadlineTablePanel,
    #portfolioTablePanel,
    #clearanceReviewTable,
    .result-table-details {
      overflow-x: auto;
      overscroll-behavior-inline: contain;
    }

    @media (max-width: 760px) {
      .protection-queue-heading { align-items: stretch; flex-direction: column; }
      .protection-queue-heading-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .protection-queue-heading-actions button { width: 100%; min-width: 0; }
      .protection-queue-toolbar { grid-template-columns: minmax(0, 1fr); padding: 10px; }
      .protection-queue-head { display: none; }
      .protection-queue-row { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 12px 10px; }
      .protection-queue-main { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; }
      .protection-queue-signal { grid-column: 1 / -1; }
      .protection-queue-main > span:nth-child(4) { grid-column: 1; }
      .protection-queue-actions { justify-content: start; padding-top: 7px; border-top: 1px solid var(--line); }
      .protection-queue-actions button { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }

      .competitor-profile-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
        padding: 14px 4px;
      }

      .competitor-profile-relationship,
      .competitor-profile-activity,
      .competitor-profile-next {
        padding-top: 10px;
        border-top: 1px solid var(--line);
      }

      .competitor-profile-next {
        padding-left: 10px;
        border-left-width: 3px;
      }

      .competitor-profile-actions {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
      }

      .competitor-profile-actions button { width: 100%; }

      main > section {
        padding: 18px 14px 28px;
      }

      .tenant-bar {
        padding: 7px 10px;
      }

      .app-brand-group {
        gap: 7px;
      }

      .app-brand-group .brand-lockup-mark {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
      }

      .app-brand-group .brand-word {
        font-size: 16px;
      }

      #tenantBarLabel {
        display: none;
      }

      .global-brand-filter > span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }

      .global-brand-filter select {
        min-width: 112px;
        max-width: 150px;
      }

      .header-tools-button {
        width: 36px;
        min-width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
      }

      .header-tools-button > span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }

      .workspace-nav {
        gap: 6px;
        margin-inline: -2px;
        padding: 2px;
      }

      .workspace-nav button {
        min-height: 40px;
        padding-inline: 11px;
      }

      .workspace-more-panel,
      .workspace-tools-panel {
        width: min(240px, calc(100vw - 20px));
      }

      .workspace-page-heading,
      .workspace-section-heading,
      .section-heading,
      #budgetDashboardPanel .section-heading,
      .main-workspace[data-workspace="operations"] > .panel > .section-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
      }

      .section-heading > div,
      .workspace-page-heading > div,
      .home-panel-heading > div,
      .drawer-header > div {
        min-width: 0;
      }

      .section-heading h2,
      .section-heading h3,
      .section-heading p,
      .workspace-page-heading h2,
      .workspace-page-heading p,
      .home-panel-heading h2,
      .home-panel-heading p,
      .drawer-header h2,
      .drawer-header p {
        overflow-wrap: anywhere;
      }

      .workspace-guidance {
        grid-template-columns: 1fr;
        gap: 11px;
      }

      .workspace-masthead {
        margin-bottom: 20px;
        padding: 17px 16px 15px;
      }

      .workspace-masthead h1,
      .workspace-masthead .section-heading h2,
      #budgetDashboardPanel .workspace-masthead .section-heading h2,
      .main-workspace[data-workspace="operations"] .workspace-masthead .section-heading h2 {
        font-size: 24px;
      }

      .workspace-masthead .workspace-guidance {
        margin: 15px -16px -15px;
        padding: 13px 16px 15px;
      }

      .workspace-guidance button {
        width: 100%;
      }

      .calendar-actions,
      .fee-assumption-actions,
      .portfolio-view-actions,
      .drawer-header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
      }

      .calendar-actions > *,
      .fee-assumption-actions button,
      .portfolio-view-actions button,
      .drawer-header-actions button,
      .drawer-header-actions .button-link,
      #budgetDashboardPanel .calendar-actions button {
        width: 100%;
        min-width: 0;
      }

      .calendar-actions label {
        margin-top: 0;
      }

      .form-grid,
      .mapping-grid,
      .check-grid,
      .filters,
      .adapter-status,
      .journal-review-toolbar,
      .attention-sections,
      .attention-primary-grid,
      .drawer-grid {
        grid-template-columns: 1fr;
      }

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

      .full {
        grid-column: auto;
      }

      .operations-action-grid,
      .budget-card-grid,
      .watch-rule-grid,
      .competitor-profile-grid,
      .card-dashboard {
        grid-template-columns: minmax(0, 1fr);
      }

      .operations-action {
        min-height: 108px;
      }

      .quick-filters {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 2px 2px 6px;
        scrollbar-width: thin;
      }

      .quick-filters .filter-chip {
        flex: 0 0 auto;
      }

      .dashboard-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        min-width: 0;
      }

      .dashboard-toolbar > .quick-filters {
        grid-column: 1 / -1;
      }

      .dashboard-toolbar > button {
        grid-column: 1 / -1;
        width: 100%;
      }

      .portfolio-simple-actions {
        grid-template-columns: 1fr 1fr;
      }

      .portfolio-simple-actions > label,
      #portfolioAddJumpButton {
        grid-column: 1 / -1;
      }

      .portfolio-overview-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .activity-feed {
        max-height: none;
        overflow: visible;
      }

      .recent-item {
        grid-template-columns: 1fr;
      }

      .drawer-header {
        flex-direction: column;
        padding: 14px;
      }

      .drawer-body {
        padding: 14px;
      }

      .drawer-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
      }

      .drawer-tabs button {
        flex: 0 0 auto;
        min-height: 40px;
      }

      .watch-empty-state {
        align-items: stretch;
        flex-direction: column;
      }

      .watch-empty-state > span {
        flex-basis: auto;
      }

      .watch-empty-state button {
        width: 100%;
      }

      .template-watch-actions {
        align-items: stretch;
        flex-direction: column;
      }

      .template-watch-actions > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
      }

      .tm-card-field {
        grid-template-columns: 70px minmax(0, 1fr);
      }

      .tm-card-actions {
        align-items: stretch;
        flex-direction: column;
      }

      .tm-card-actions button {
        width: 100%;
      }

      .empty {
        min-height: 96px;
        padding: 28px 14px;
        display: grid;
        place-items: center;
      }
    }

    @media (max-width: 480px) {
      #tenantBarLabel {
        font-size: 12px;
      }

      .tenant-actions {
        gap: 2px;
      }

      .global-brand-filter select {
        min-width: 94px;
        max-width: 112px;
        min-height: 34px;
        padding-inline: 8px 24px;
      }

      .header-icon-button,
      .header-tools-button,
      .global-add-menu > summary,
      .account-menu > summary {
        width: 34px;
        min-width: 34px;
        height: 34px;
      }

      .home-status,
      .home-quick-actions,
      .watch-view-actions,
      .calendar-actions,
      .fee-assumption-actions,
      .portfolio-view-actions,
      .drawer-header-actions,
      .template-watch-actions > div {
        grid-template-columns: 1fr;
      }

      .home-panel-heading {
        align-items: stretch;
        flex-direction: column;
      }

      .home-panel-heading button {
        width: 100%;
      }

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

      .watch-view-actions button,
      .watch-card-actions button,
      .watch-finding-actions button,
      .competitor-profile-actions button {
        width: 100%;
      }

      .watch-card-actions,
      .watch-finding-actions,
      .competitor-profile-actions {
        align-items: stretch;
        flex-direction: column;
      }

      .watch-card-menu,
      .watch-card-menu > summary {
        width: 100%;
      }

      .watch-card-menu-panel {
        width: 100%;
      }

      .journal-review-bulkbar {
        align-items: stretch;
        flex-direction: column;
      }

      .journal-review-header {
        align-items: stretch;
        flex-direction: column;
      }

      .journal-review-header button {
        width: 100%;
      }

      .journal-review-bulkbar label,
      .journal-review-bulkbar select,
      .journal-review-bulkbar button {
        width: 100%;
        margin-right: 0;
      }

      .journal-review-list {
        padding: 8px;
      }

      .journal-review-item {
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
      }

      .journal-review-match,
      .journal-review-actions {
        grid-column: 2;
      }

      .journal-review-actions {
        grid-row: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
      }

      .journal-review-actions button {
        width: 100%;
      }

      .backfill-history-row {
        grid-template-columns: 1fr;
      }

      .backfill-history-row > span:first-child {
        grid-column: auto;
      }

      .tm-card-counters,
      .asset-timeline-points {
        grid-template-columns: 1fr;
      }

      .onboarding-gate {
        align-items: end;
        padding: 0;
      }

      .onboarding-panel {
        width: 100%;
        max-height: calc(100vh - 18px);
        overflow-y: auto;
        border-radius: 8px 8px 0 0;
      }

      .onboarding-header,
      .onboarding-body {
        padding: 16px;
      }

      .onboarding-header {
        flex-direction: column;
      }

      .onboarding-header button {
        width: 100%;
      }

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

      .onboarding-step > .pill {
        grid-column: 2;
        justify-self: start;
      }

      .onboarding-actions {
        grid-template-columns: 1fr;
      }

      #tenantBarLabel {
        display: none;
      }
    }

    /* Unified application shell and controls. */
    :root {
      --control-height: 40px;
      --control-height-compact: 34px;
      --page-gap: 24px;
      --section-gap: 18px;
      --soft-panel: #f5f8f9;
    }

    body.ui-booting main {
      visibility: hidden;
    }

    .ui-icon {
      width: 18px;
      height: 18px;
      flex: 0 0 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      pointer-events: none;
    }

    button.has-ui-icon,
    .button-link.has-ui-icon,
    .workspace-nav button,
    .workspace-more-panel button,
    .workspace-subnav button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
    }

    button:not(.small):not(.filter-chip):not(.header-icon-button):not(.workspace-home-button):not(.brand-home-button) {
      min-height: var(--control-height);
    }

    button.small,
    .button-link,
    .workspace-subnav button {
      min-height: var(--control-height-compact);
    }

    .action-primary,
    .action-secondary,
    .action-tertiary,
    .action-icon,
    .action-menu-item {
      border-radius: 6px;
      text-shadow: none;
      transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
    }

    .action-primary {
      border: 1px solid var(--accent-dark);
      background: var(--accent);
      color: var(--white);
      box-shadow: 0 1px 2px rgba(18, 26, 34, 0.14);
    }

    .action-primary:hover:not(:disabled) {
      border-color: var(--accent-edge);
      background: var(--accent-dark);
      box-shadow: 0 1px 3px rgba(18, 26, 34, 0.16);
    }

    .action-secondary {
      border: 1px solid var(--button-edge);
      background: var(--white);
      color: var(--ink);
      box-shadow: none;
    }

    .action-secondary:hover:not(:disabled),
    .action-tertiary:hover:not(:disabled),
    .action-icon:hover:not(:disabled) {
      border-color: var(--forest-300);
      background: #edf8f6;
      color: var(--accent-dark);
      box-shadow: none;
    }

    .action-tertiary,
    .action-icon,
    .action-menu-item {
      border: 1px solid transparent;
      background: transparent;
      color: var(--accent-dark);
      box-shadow: none;
    }

    .action-tertiary {
      padding-inline: 8px;
    }

    .action-icon {
      display: inline-grid !important;
      place-items: center;
      width: 36px !important;
      min-width: 36px !important;
      min-height: 36px !important;
      padding: 0 !important;
    }

    .action-compact {
      min-height: 36px !important;
      padding: 7px 12px !important;
    }

    .action-menu-item {
      justify-content: flex-start !important;
      gap: 9px;
      min-height: 36px !important;
      padding: 8px 9px !important;
      text-align: left;
    }

    .action-menu-item:hover {
      background: #edf8f6;
    }

    .action-menu-item.destructive {
      color: var(--risk);
    }

    .action-menu-item.destructive:hover {
      background: #fff1f2;
    }

    .workspace-masthead,
    .panel,
    .system-health,
    .operations-home {
      box-shadow: 0 1px 2px rgba(18, 26, 34, 0.04);
    }

    .workspace-subnav {
      position: sticky;
      top: 53px;
      z-index: 18;
      display: flex;
      align-items: center;
      gap: 24px;
      padding: 0;
      margin: 0 0 var(--section-gap);
      border: 0;
      border-bottom: 1px solid var(--line);
      border-radius: 0;
      background: rgba(238, 243, 246, 0.96);
      box-shadow: none;
      overflow-x: auto;
      scrollbar-width: none;
    }

    .workspace-subnav::-webkit-scrollbar {
      display: none;
    }

    .workspace-subnav button {
      position: relative;
      flex: 0 0 auto;
      min-height: 44px;
      padding: 8px 0 10px;
      border: 0;
      border-bottom: 3px solid transparent;
      border-radius: 0;
      background: transparent;
      color: var(--muted);
      box-shadow: none;
      text-shadow: none;
    }

    .workspace-subnav button:hover {
      border-bottom-color: #a8d2cd;
      background: transparent;
      color: var(--accent-dark);
      box-shadow: none;
    }

    .workspace-subnav button.active {
      border-bottom-color: var(--accent);
      background: transparent;
      color: var(--ink);
      box-shadow: none;
      text-shadow: none;
    }

    .workspace-tab-panel.hidden {
      display: none !important;
    }

    .settings-connection-heading,
    .domain-zone-inventory-heading {
      display: flex;
      align-items: center;
      gap: 9px;
      margin: 0 0 12px;
    }

    .settings-connection-heading .ui-icon,
    .domain-zone-inventory-heading .ui-icon {
      color: var(--accent);
    }

    .domain-zone-inventory {
      margin-top: 18px;
    }

    .domain-zone-inventory > summary {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      font-weight: 800;
    }

    .watch-settings-stack,
    .watch-overview-history {
      display: grid;
      gap: 16px;
    }

    /* Watch workspace: keep monitoring content primary and utilities quiet. */
    #competitorWatchPanel .watch-view-toolbar {
      margin-bottom: 16px;
      padding: 0;
      border: 0;
      border-bottom: 1px solid var(--line);
      border-radius: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
    }

    #competitorWatchPanel .watch-view-tabs {
      align-self: stretch;
      gap: 20px;
    }

    #competitorWatchPanel .watch-view-tabs button {
      position: relative;
      min-height: 42px;
      padding: 8px 1px 10px;
      border: 0;
      border-bottom: 3px solid transparent;
      border-radius: 0 !important;
      appearance: none;
      background: transparent !important;
      box-shadow: none !important;
      color: var(--muted);
      text-shadow: none;
    }

    #competitorWatchPanel .watch-view-tabs button:hover {
      border-bottom-color: #a8d2cd;
      background: transparent !important;
      color: var(--accent-dark);
      box-shadow: none;
    }

    #competitorWatchPanel .watch-view-tabs button.active {
      border-color: transparent;
      border-bottom-color: var(--accent);
      background: transparent !important;
      color: var(--ink);
      box-shadow: none;
    }

    #competitorWatchPanel .watch-view-tabs button:focus-visible,
    .watch-settings-nav button:focus-visible {
      outline: 0;
      background: transparent !important;
      box-shadow: inset 0 -3px 0 var(--forest-300) !important;
    }

    #competitorWatchPanel .watch-view-actions {
      gap: 6px;
      padding-bottom: 7px;
    }

    #watchOverviewView,
    #watchHealthInsightsView {
      align-content: start;
    }

    #watchHealthInsightsView {
      gap: 18px;
    }

    #watchHealthInsightsView > .watch-health-insights-intro {
      margin: 0;
      padding: 0 0 14px;
      border-bottom: 1px solid var(--line);
    }

    #watchHealthInsightsView > .watch-health-panel,
    #watchHealthInsightsView > .watch-source-trust,
    #watchHealthInsightsView > .watch-source-verification,
    #watchHealthInsightsView > .watch-semantic-calibration,
    #watchHealthInsightsView > .watch-digest-effectiveness,
    #watchHealthInsightsView > .watch-overview-history {
      margin: 0;
    }

    #competitorWatchPanel .watch-source-trust {
      margin: 0;
      padding: 0;
      border: 1px solid var(--line);
      border-left: 4px solid var(--accent);
      border-radius: 0;
      background: var(--white);
    }

    #competitorWatchPanel .watch-source-trust.has-gaps { border-left-color: #c58416; }

    #competitorWatchPanel .watch-source-trust > .section-heading {
      margin: 0;
      padding: 18px 18px 14px;
    }

    .watch-source-trust-metrics {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      background: #f8fcfa;
    }

    .watch-source-trust-metrics > div {
      display: grid;
      gap: 5px;
      min-width: 0;
      padding: 14px 16px;
      border-right: 1px solid var(--line);
    }

    .watch-source-trust-metrics > div:last-child { border-right: 0; }
    .watch-source-trust-metrics b { font-size: 24px; line-height: 1; }
    .watch-source-trust-metrics span { color: var(--muted); font-size: 13px; }

    .watch-source-trust-boundary {
      display: flex;
      align-items: baseline;
      gap: 8px;
      padding: 11px 16px;
      border-bottom: 1px solid #e2cda6;
      background: #fffaf0;
      color: #71470b;
      font-size: 13px;
    }

    .watch-source-trust-head,
    .watch-source-trust-row {
      display: grid;
      grid-template-columns: minmax(130px, .9fr) minmax(150px, 1.05fr) minmax(170px, 1.25fr) minmax(145px, 1fr) minmax(210px, 1.45fr);
      gap: 14px;
      align-items: center;
    }

    .watch-source-trust-head {
      padding: 12px 16px 8px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .watch-source-trust-row {
      padding: 12px 16px;
      border-top: 1px solid var(--line);
    }

    .watch-source-trust-row.not-selected { opacity: .62; }
    .watch-source-trust-row > span { display: grid; gap: 3px; min-width: 0; }
    .watch-source-trust-row small { color: var(--muted); font-size: 12px; line-height: 1.4; }
    .watch-source-trust-row .pill { justify-self: start; }

    #competitorWatchPanel .watch-overview-stats {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin: 0;
      overflow: visible;
      border: 0;
      background: transparent;
    }

    #competitorWatchPanel .watch-overview-stats .stat {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      align-content: center;
      gap: 4px;
      min-height: 82px;
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

    #competitorWatchPanel .watch-overview-stats .stat b {
      margin: 0;
      font-size: 26px;
      line-height: 1;
    }

    #competitorWatchPanel .watch-overview-stats .stat span {
      font-size: 14px;
    }

    #competitorWatchPanel .watch-source-verification {
      margin: 0;
      padding: 18px 0 0;
      border-top: 1px solid var(--line);
      background: var(--white);
    }

    #competitorWatchPanel .watch-source-verification > .section-heading {
      margin: 0;
      padding: 0 16px 14px;
    }

    .watch-source-verification-metrics {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .watch-source-verification-metrics > div {
      display: grid;
      gap: 5px;
      min-width: 0;
      padding: 14px 16px;
      border-right: 1px solid var(--line);
    }

    .watch-source-verification-metrics > div:last-child { border-right: 0; }
    .watch-source-verification-metrics b { font-size: 24px; line-height: 1; }
    .watch-source-verification-metrics span { color: var(--muted); font-size: 13px; }

    .watch-source-verification-head,
    .watch-source-verification-row {
      display: grid;
      grid-template-columns: minmax(150px, 1.35fr) repeat(3, minmax(105px, .8fr)) minmax(170px, 1.15fr);
      gap: 12px;
      align-items: center;
    }

    .watch-source-verification-head {
      padding: 12px 16px 8px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .watch-source-verification-row {
      padding: 11px 16px;
      border-top: 1px solid var(--line);
    }

    .watch-source-verification-row > span { display: grid; gap: 2px; min-width: 0; }
    .watch-source-verification-row small { color: var(--muted); font-size: 12px; }
    .watch-source-verification-row .needs-attention b { color: #a55b00; }
    #competitorWatchPanel .watch-source-verification.is-clear .watch-source-verification-head,
    #competitorWatchPanel .watch-source-verification.is-clear .watch-source-verification-rows { display: none; }

    #competitorWatchPanel .watch-relationship {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 7px;
      color: var(--text);
      font-size: 13px;
    }

    #competitorWatchPanel .watch-relationship i {
      width: 8px;
      height: 8px;
      flex: 0 0 8px;
      border-radius: 50%;
      background: #8b98a5;
    }

    #competitorWatchPanel .watch-relationship span,
    #competitorWatchPanel .watch-relationship-note,
    #competitorWatchPanel .watch-domain-context { color: var(--muted); font-size: 13px; }
    #competitorWatchPanel .watch-relationship.direct i { background: #c43d4d; }
    #competitorWatchPanel .watch-relationship.adjacent i { background: #c58416; }
    #competitorWatchPanel .watch-relationship.domain-conflict i { background: #6e58a5; }
    #competitorWatchPanel .watch-relationship.reference i { background: var(--forest-700); }
    #competitorWatchPanel .watch-relationship-note,
    #competitorWatchPanel .watch-domain-context { display: block; margin-top: 5px; line-height: 1.4; }

    #competitorWatchPanel .watch-relationship-domains {
      display: grid;
      grid-template-columns: max-content minmax(0, 1fr);
      gap: 6px 14px;
      margin: 10px 0 0;
    }

    #competitorWatchPanel .watch-relationship-domains dt { color: var(--muted); font-size: 12px; font-weight: 700; }
    #competitorWatchPanel .watch-relationship-domains dd { margin: 0; overflow-wrap: anywhere; }

    #competitorWatchPanel .watch-digest-effectiveness {
      margin: 0;
      padding: 18px 0 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      background: var(--white);
    }

    #competitorWatchPanel .watch-digest-effectiveness > .section-heading {
      margin: 0;
      padding: 0 16px 14px;
    }

    .watch-effectiveness-confidence {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
    }

    .watch-effectiveness-confidence > span {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #9aa7b3;
    }

    .watch-effectiveness-confidence.early > span,
    .watch-effectiveness-confidence.developing > span { background: #d48b19; }
    .watch-effectiveness-confidence.established > span { background: var(--forest-700); }

    #competitorWatchPanel .watch-digest-effectiveness-metrics {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    #competitorWatchPanel .watch-digest-effectiveness-metrics > button {
      display: grid;
      align-content: center;
      justify-items: start;
      gap: 3px;
      min-height: 92px;
      padding: 14px 16px;
      border-right: 1px solid var(--line);
      border-top: 0;
      border-bottom: 0;
      border-left: 0;
      border-radius: 0;
      background: var(--white);
      color: var(--ink);
      text-align: left;
      box-shadow: none;
    }

    #competitorWatchPanel .watch-digest-effectiveness-metrics > button:hover:not(:disabled),
    #competitorWatchPanel .watch-digest-effectiveness-row:hover { background: #eef8f6; color: var(--ink); }
    #competitorWatchPanel .watch-digest-effectiveness-metrics > button:focus-visible,
    #competitorWatchPanel .watch-digest-effectiveness-row:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
    #competitorWatchPanel .watch-digest-effectiveness-metrics > button:disabled { cursor: default; opacity: .62; }
    #competitorWatchPanel .watch-digest-effectiveness-metrics > button:last-child { border-right: 0; }
    #competitorWatchPanel .watch-digest-effectiveness-metrics b { font-size: 24px; line-height: 1; }
    #competitorWatchPanel .watch-digest-effectiveness-metrics span { font-size: 14px; font-weight: 700; }
    #competitorWatchPanel .watch-digest-effectiveness-metrics small { color: var(--muted); font-size: 12px; }

    #competitorWatchPanel .watch-digest-effectiveness-guardrail {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 10px;
      margin: 14px 16px;
      padding: 11px 12px;
      border-left: 4px solid #9aa7b3;
      background: #f5f8f8;
      color: var(--muted);
      font-size: 13px;
    }

    #competitorWatchPanel .watch-digest-effectiveness-guardrail.early,
    #competitorWatchPanel .watch-digest-effectiveness-guardrail.developing { border-left-color: #d48b19; }
    #competitorWatchPanel .watch-digest-effectiveness-guardrail.established { border-left-color: var(--forest-700); }
    #competitorWatchPanel .watch-digest-effectiveness-guardrail b { color: var(--ink); }

    #competitorWatchPanel .watch-digest-effectiveness-head,
    #competitorWatchPanel .watch-digest-effectiveness-row {
      display: grid;
      grid-template-columns: 88px minmax(170px, 1fr) repeat(4, 82px) 104px;
      align-items: center;
      column-gap: 12px;
      padding: 10px 16px;
    }

    #competitorWatchPanel .watch-digest-effectiveness-head {
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
    }

    #competitorWatchPanel .watch-digest-effectiveness-row {
      width: 100%;
      min-height: 48px;
      border: 0;
      border-bottom: 1px solid var(--line);
      border-radius: 0;
      background: var(--white);
      color: var(--ink);
      font-size: 13px;
      text-align: left;
      box-shadow: none;
    }

    #competitorWatchPanel .watch-digest-effectiveness-row:last-child { border-bottom: 0; }
    #competitorWatchPanel .watch-digest-effectiveness-rows > .empty { margin: 0; padding: 14px 16px 18px; }

    #competitorWatchPanel .watch-semantic-calibration {
      margin: 0;
      padding: 18px 0 0;
      border-bottom: 1px solid var(--line);
      background: var(--white);
    }

    #competitorWatchPanel .watch-semantic-calibration > .section-heading { margin: 0; padding: 0 16px 14px; }

    #competitorWatchPanel .watch-semantic-calibration-metrics {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    #competitorWatchPanel .watch-semantic-calibration-metrics > div {
      display: grid;
      align-content: center;
      gap: 3px;
      min-height: 92px;
      padding: 14px 16px;
      border-right: 1px solid var(--line);
    }

    #competitorWatchPanel .watch-semantic-calibration-metrics > div:last-child { border-right: 0; }
    #competitorWatchPanel .watch-semantic-calibration-metrics b { font-size: 24px; line-height: 1; }
    #competitorWatchPanel .watch-semantic-calibration-metrics span { font-size: 14px; font-weight: 700; }
    #competitorWatchPanel .watch-semantic-calibration-metrics small { color: var(--muted); font-size: 12px; }

    #competitorWatchPanel .watch-semantic-calibration-head,
    #competitorWatchPanel .watch-semantic-calibration-row {
      display: grid;
      grid-template-columns: minmax(160px, 1.5fr) repeat(5, minmax(78px, .7fr));
      gap: 12px;
      align-items: center;
      padding: 10px 16px;
    }

    #competitorWatchPanel .watch-semantic-calibration-head {
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
    }

    #competitorWatchPanel .watch-semantic-calibration-row { min-height: 48px; border-bottom: 1px solid var(--line); font-size: 13px; }
    #competitorWatchPanel .watch-semantic-calibration-row:last-child { border-bottom: 0; }
    #competitorWatchPanel .watch-semantic-calibration-row > span:first-child { display: flex; align-items: center; gap: 8px; }
    #competitorWatchPanel .watch-semantic-calibration-row small { color: var(--muted); }
    #competitorWatchPanel .watch-semantic-calibration-row .semantic-relevance-dot { position: static; width: 9px; height: 9px; flex: 0 0 9px; padding: 0; border: 0; box-shadow: none; pointer-events: none; }

    #competitorWatchPanel .watch-digest-calibration {
      padding: 2px 16px 14px;
      border-top: 1px solid var(--line);
    }

    #competitorWatchPanel .watch-digest-calibration > .section-heading {
      margin: 0;
      padding: 14px 0 8px;
    }

    #competitorWatchPanel .watch-digest-calibration-list {
      border-top: 1px solid var(--line);
    }

    #competitorWatchPanel .watch-digest-calibration-list > .empty {
      margin: 0;
      padding: 12px 0;
    }

    #competitorWatchPanel .watch-digest-calibration-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 18px;
      padding: 13px 0;
      border-bottom: 1px solid var(--line);
    }

    #competitorWatchPanel .watch-digest-calibration-row > div:first-child { display: grid; gap: 3px; }
    #competitorWatchPanel .watch-digest-calibration-row p { margin: 2px 0; color: var(--muted); font-size: 13px; }
    #competitorWatchPanel .watch-digest-calibration-actions { display: grid; grid-template-columns: repeat(3, minmax(104px, auto)); gap: 8px; }

    #competitorWatchPanel .watch-digest-calibration-history {
      margin-top: 10px;
      border: 0;
      border-radius: 0;
      background: transparent;
    }

    #competitorWatchPanel .watch-digest-calibration-history.hidden { display: none; }
    #competitorWatchPanel .watch-digest-calibration-history > summary { padding: 8px 0; }

    #competitorWatchPanel .watch-digest-calibration-history-row {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) 90px minmax(180px, .8fr) 72px;
      align-items: center;
      gap: 12px;
      min-height: 50px;
      padding: 9px 0;
      border-bottom: 1px solid var(--line);
      font-size: 13px;
    }

    #competitorWatchPanel .watch-digest-calibration-history-row > span:first-child { display: grid; gap: 2px; }
    #competitorWatchPanel .watch-digest-calibration-history-row small { color: var(--muted); }
    #competitorWatchPanel .watch-calibration-status { color: var(--muted); font-weight: 700; }
    #competitorWatchPanel .watch-calibration-status.applied { color: var(--forest-800); }
    #competitorWatchPanel .watch-calibration-status.reverted { color: #7a5b16; }

    #competitorWatchPanel .watch-effectiveness-evidence-context {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin: 0 0 14px;
      padding: 12px 14px;
      border-left: 4px solid var(--teal);
      background: #f1f8f7;
    }

    #competitorWatchPanel .watch-effectiveness-evidence-context.hidden { display: none; }
    #competitorWatchPanel .watch-effectiveness-evidence-context > div { display: grid; gap: 2px; }

    #competitorWatchPanel .watch-effectiveness-evidence {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0;
      margin-top: 9px;
      border-top: 1px solid var(--line);
    }

    #competitorWatchPanel .watch-effectiveness-evidence > span {
      display: grid;
      align-content: start;
      gap: 2px;
      min-width: 0;
      padding: 8px 10px 0 0;
    }

    #competitorWatchPanel .watch-effectiveness-evidence small { color: var(--muted); font-size: 10px; }
    #competitorWatchPanel .watch-effectiveness-evidence b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

    #competitorWatchPanel #watchHealthPanel {
      margin: 0;
    }

    #competitorWatchPanel #watchHealthPanel > summary {
      min-height: 58px;
      padding: 11px 14px;
    }

    #competitorWatchPanel #watchHealthPanel > summary > span:first-child {
      grid-template-columns: auto minmax(0, 1fr);
      align-items: baseline;
      column-gap: 10px;
    }

    #competitorWatchPanel #watchHealthPanel > summary .meta {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    #competitorWatchPanel #competitorWatchListSection {
      padding: 0;
      overflow: hidden;
    }

    #competitorWatchPanel #competitorWatchListSection > .section-heading {
      margin: 0;
      padding: 16px 16px 13px;
      border-bottom: 1px solid var(--line);
    }

    #competitorWatchPanel #competitorWatchList {
      gap: 0;
    }

    #competitorWatchPanel #competitorWatchList .watch-card {
      border: 0;
      border-bottom: 1px solid var(--line);
      border-radius: 0;
      padding: 14px 16px;
    }

    #competitorWatchPanel #competitorWatchList .watch-card:last-child {
      border-bottom: 0;
    }

    #competitorWatchPanel #competitorWatchList .watch-card-actions {
      display: flex;
      align-items: start;
      justify-content: end;
      gap: 2px;
      width: auto;
    }

    #competitorWatchPanel #competitorWatchList .watch-card-actions > button,
    #competitorWatchPanel #competitorWatchList .watch-card-menu,
    #competitorWatchPanel #competitorWatchList .watch-card-menu > summary {
      width: auto;
      min-width: 0;
      min-height: 36px;
    }

    #competitorWatchPanel #competitorWatchList .watch-card-actions > button,
    #competitorWatchPanel #competitorWatchList .watch-card-menu > summary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 7px 8px;
      text-align: center;
    }

    #competitorWatchPanel .watch-view-actions {
      gap: 7px;
    }

    #competitorWatchPanel .watch-view-actions button {
      min-height: 36px;
      padding: 7px 12px;
      font-size: 13px;
    }

    #watchProfilesView,
    #watchFindingsView,
    #watchSettingsView {
      gap: 18px;
      padding: 18px;
      border-top: 1px solid var(--line);
      border-right: 0;
      border-bottom: 1px solid var(--line);
      border-left: 0;
      border-radius: 0;
      background: var(--white);
    }

    #watchProfilesView > .competitor-profiles,
    #watchFindingsView > #competitorFindingsSection {
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
    }

    #watchProfilesView .backfill-all-status {
      margin: 0 0 14px;
      padding: 10px 12px;
      border: 0;
      border-left: 3px solid var(--accent);
      border-radius: 0 7px 7px 0;
      background: #f4f8f8;
      box-shadow: none;
    }

    #watchProfilesView .backfill-all-status progress {
      margin-top: 8px;
      height: 7px;
    }

    #watchProfilesView .competitor-profile-grid {
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    #watchFindingsView .watch-empty-state,
    #watchRulesView .watch-empty-state {
      margin-top: 4px;
      padding: 14px 0 2px;
      border: 0;
      border-top: 1px solid var(--line);
      border-radius: 0;
      background: transparent;
    }

    .watch-settings-nav {
      display: flex;
      align-items: center;
      gap: 20px;
      width: 100%;
      padding: 0;
      border: 0;
      border-bottom: 1px solid var(--line);
      border-radius: 0;
      background: transparent;
    }

    #watchSettingsView > .watch-section-stats {
      margin: 0;
    }

    #watchSettingsView > .watch-settings-intro {
      margin: 0;
      padding: 0 0 14px;
      border-bottom: 1px solid var(--line);
    }

    .watch-settings-nav button {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      width: auto;
      min-height: 40px;
      padding: 7px 1px 9px;
      border: 0;
      border-bottom: 3px solid transparent;
      border-radius: 0 !important;
      appearance: none;
      background: transparent !important;
      box-shadow: none !important;
      color: var(--muted);
      text-shadow: none;
    }

    .watch-settings-nav button:hover {
      border-bottom-color: #a8d2cd;
      background: transparent !important;
      color: var(--accent-dark);
    }

    .watch-settings-nav button.active {
      border-color: transparent;
      border-bottom-color: var(--accent);
      background: transparent !important;
      color: var(--ink);
      box-shadow: none;
    }

    #watchSettingsView > .watch-settings-panel {
      display: block;
      margin: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
    }

    #watchSettingsView > .watch-settings-panel.hidden {
      display: none;
    }

    #watchSettingsView > .watch-settings-panel > .section-heading {
      margin: 0;
      padding: 0 0 14px;
      border-bottom: 1px solid var(--line);
    }

    .watch-settings-schedule {
      padding-left: 12px;
      border-left: 3px solid var(--accent);
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    .watch-settings-index {
      display: grid;
      border-bottom: 1px solid var(--line);
    }

    .watch-settings-index-heading,
    .watch-settings-row {
      display: grid;
      grid-template-columns: minmax(180px, 1.1fr) minmax(160px, .9fr) minmax(220px, 1.3fr) minmax(190px, 1fr) auto;
      gap: 18px;
      align-items: center;
    }

    .watch-settings-index-heading {
      padding: 9px 12px;
      border-bottom: 1px solid var(--line);
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
    }

    .watch-settings-row {
      min-width: 0;
      padding: 14px 12px;
      border-bottom: 1px solid var(--line);
      background: var(--white);
    }

    .watch-settings-row:last-child { border-bottom: 0; }

    .watch-settings-row > div,
    .watch-settings-identity {
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .watch-settings-row small {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .watch-settings-identity > span {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .watch-settings-state {
      padding-left: 10px;
      border-left: 3px solid var(--forest-700);
    }

    .watch-settings-state.attention { border-left-color: #c58416; }

    .watch-settings-row > button {
      width: auto;
      white-space: nowrap;
    }

    @media (max-width: 1100px) {
      .watch-settings-index-heading { display: none; }

      .watch-settings-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        gap: 12px 18px;
      }

      .watch-settings-row > div:nth-child(3),
      .watch-settings-row > div:nth-child(4) {
        padding-top: 10px;
        border-top: 1px solid var(--line);
      }

      .watch-settings-row > button {
        grid-column: 3;
        grid-row: 1 / span 2;
      }
    }

    @media (max-width: 760px) {
      #watchSettingsView > .watch-settings-panel > .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
      }

      .watch-settings-schedule {
        width: 100%;
        padding: 8px 0 8px 10px;
      }

      .watch-settings-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 14px 4px;
      }

      .watch-settings-row > div:nth-child(n+2) {
        padding-top: 10px;
        border-top: 1px solid var(--line);
      }

      .watch-settings-row > button {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
      }
    }

    .watch-overview-history {
      margin-top: 16px;
      padding: 0;
      border: 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .watch-overview-history > summary {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      padding: 12px 2px;
      list-style: none;
      color: var(--ink);
      font-size: 14px;
      font-weight: 700;
    }

    .watch-overview-history > summary::-webkit-details-marker {
      display: none;
    }

    .watch-overview-history > summary::after {
      content: "+";
      margin-left: auto;
      color: var(--muted);
      font-size: 18px;
      font-weight: 500;
    }

    .watch-overview-history[open] > summary {
      border-bottom: 1px solid var(--line);
    }

    .watch-overview-history[open] > summary::after {
      content: "−";
    }

    .watch-overview-history > summary:focus-visible {
      outline: 0;
      box-shadow: inset 0 -2px 0 var(--forest-300);
    }

    #watchHealthInsightsView .watch-overview-history > #watchHistoryView {
      display: grid;
      gap: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
    }

    #watchHealthInsightsView #watchHistoryView > .watch-reminder-panel {
      margin: 0;
      padding: 0 2px;
      border: 0;
      border-bottom: 1px solid var(--line);
      border-radius: 0;
      background: transparent;
    }

    #watchHealthInsightsView #watchHistoryView > .watch-reminder-panel summary {
      padding: 12px 0;
    }

    #watchHealthInsightsView #watchHistoryView > .watch-scan-history {
      margin: 0;
      padding: 14px 2px 16px;
      border: 0;
    }

    #watchHealthInsightsView #watchHistoryView > .watch-scan-history .section-heading {
      margin-bottom: 8px;
    }

    @media (max-width: 900px) {
      #competitorWatchPanel .watch-overview-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      #competitorWatchPanel .watch-digest-effectiveness-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      #competitorWatchPanel .watch-source-verification-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      #competitorWatchPanel .watch-source-trust-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      #competitorWatchPanel .watch-source-trust-metrics > div:nth-child(2) { border-right: 0; }
      #competitorWatchPanel .watch-source-trust-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
      #competitorWatchPanel .watch-source-trust-head { display: none; }
      #competitorWatchPanel .watch-source-trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding-block: 14px; }
      #competitorWatchPanel .watch-source-trust-row > span::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
      #competitorWatchPanel .watch-source-trust-row > span:last-child { grid-column: 1 / -1; }
      #competitorWatchPanel .watch-semantic-calibration-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      #competitorWatchPanel .watch-semantic-calibration-metrics > div:nth-child(2) { border-right: 0; }
      #competitorWatchPanel .watch-semantic-calibration-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
      #competitorWatchPanel .watch-semantic-calibration-head { display: none; }
      #competitorWatchPanel .watch-semantic-calibration-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding-block: 14px; }
      #competitorWatchPanel .watch-semantic-calibration-row > span::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
      #competitorWatchPanel .watch-semantic-calibration-row > span:first-child { display: grid; grid-template-columns: 9px minmax(0, 1fr); }
      #competitorWatchPanel .watch-semantic-calibration-row > span:first-child::before { grid-column: 1 / -1; }
      #competitorWatchPanel .watch-semantic-calibration-row > span:first-child small { grid-column: 2; }
      #competitorWatchPanel .watch-source-verification-metrics > div:nth-child(2) { border-right: 0; }
      #competitorWatchPanel .watch-source-verification-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
      #competitorWatchPanel .watch-source-verification-head { display: none; }
      #competitorWatchPanel .watch-source-verification-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding-block: 14px; }
      #competitorWatchPanel .watch-source-verification-row > span::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
      #competitorWatchPanel .watch-source-verification-row > span:last-child { grid-column: 1 / -1; }

      #competitorWatchPanel .watch-digest-effectiveness-metrics > button:nth-child(2) { border-right: 0; }
      #competitorWatchPanel .watch-digest-effectiveness-metrics > button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

      #competitorWatchPanel .watch-digest-effectiveness-head { display: none; }
      #competitorWatchPanel .watch-digest-effectiveness-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 9px 16px;
        padding-block: 14px;
      }

      #competitorWatchPanel .watch-digest-effectiveness-row > span::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: var(--muted);
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
      }

      #competitorWatchPanel .watch-digest-calibration-row {
        grid-template-columns: minmax(0, 1fr);
      }

      #competitorWatchPanel .watch-digest-calibration-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      #competitorWatchPanel .watch-digest-calibration-history-row {
        grid-template-columns: minmax(0, 1fr) auto;
      }

      #competitorWatchPanel .watch-digest-calibration-history-row > span:nth-child(3) { grid-column: 1 / -1; }
    }

    @media (max-width: 520px) {
      #competitorWatchPanel .watch-overview-stats {
        grid-template-columns: minmax(0, 1fr);
      }

      #competitorWatchPanel .watch-digest-effectiveness-metrics { grid-template-columns: minmax(0, 1fr); }
      #competitorWatchPanel .watch-source-verification-metrics { grid-template-columns: minmax(0, 1fr); }
      #competitorWatchPanel .watch-source-trust-metrics { grid-template-columns: minmax(0, 1fr); }
      #competitorWatchPanel .watch-source-trust-metrics > div,
      #competitorWatchPanel .watch-source-trust-metrics > div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
      #competitorWatchPanel .watch-source-trust-metrics > div:last-child { border-bottom: 0; }
      #competitorWatchPanel .watch-source-trust-boundary { align-items: flex-start; flex-direction: column; }
      #competitorWatchPanel .watch-source-trust-row { grid-template-columns: minmax(0, 1fr); }
      #competitorWatchPanel .watch-source-trust-row > span:last-child { grid-column: auto; }
      #competitorWatchPanel .watch-semantic-calibration-metrics { grid-template-columns: minmax(0, 1fr); }
      #competitorWatchPanel .watch-semantic-calibration-metrics > div,
      #competitorWatchPanel .watch-semantic-calibration-metrics > div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
      #competitorWatchPanel .watch-semantic-calibration-metrics > div:last-child { border-bottom: 0; }
      #competitorWatchPanel .watch-semantic-calibration-row { grid-template-columns: minmax(0, 1fr); }
      #competitorWatchPanel .watch-source-verification-metrics > div,
      #competitorWatchPanel .watch-source-verification-metrics > div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
      #competitorWatchPanel .watch-source-verification-metrics > div:last-child { border-bottom: 0; }
      #competitorWatchPanel .watch-source-verification-row { grid-template-columns: minmax(0, 1fr); }
      #competitorWatchPanel .watch-source-verification-row > span:last-child { grid-column: auto; }
      #competitorWatchPanel .watch-digest-effectiveness-metrics > button,
      #competitorWatchPanel .watch-digest-effectiveness-metrics > button:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
      #competitorWatchPanel .watch-digest-effectiveness-metrics > button:last-child { border-bottom: 0; }
      #competitorWatchPanel .watch-digest-effectiveness-guardrail { grid-template-columns: minmax(0, 1fr); }
      #competitorWatchPanel .watch-effectiveness-evidence-context { align-items: stretch; flex-direction: column; }
      #competitorWatchPanel .watch-effectiveness-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); }

      #competitorWatchPanel #watchHealthPanel > summary > span:first-child {
        grid-template-columns: minmax(0, 1fr);
      }

      #competitorWatchPanel #watchHealthPanel > summary .meta {
        white-space: normal;
      }
    }

    .operations-home .operations-attention {
      margin-top: 14px;
    }

    .operations-home .operations-attention[open] > summary {
      border-bottom: 1px solid var(--line);
    }

    #journalReviewPanel {
      box-shadow: 0 1px 2px rgba(18, 26, 34, 0.04);
    }

    #journalReviewPanel .journal-review-header > div {
      min-width: 0;
    }

    #journalReviewPanel .journal-review-header h3,
    #journalReviewPanel .journal-review-header p {
      margin: 0;
    }

    #journalReviewPanel .journal-review-header p {
      margin-top: 4px;
      max-width: 760px;
    }

    #journalReviewPanel .journal-review-filters {
      flex-wrap: nowrap;
      overflow-x: auto;
      scrollbar-width: none;
    }

    #journalReviewPanel .journal-review-filters::-webkit-scrollbar {
      display: none;
    }

    #journalReviewPanel .journal-review-family-summary > b,
    #journalReviewPanel .journal-review-family-summary > span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .finance-overview-panel > #budgetDashboardFeed {
      margin-top: 0;
    }

    .main-workspace > .workspace-masthead + .workspace-subnav {
      margin-top: -8px;
    }

    .workspace-nav .ui-icon {
      width: 17px;
      height: 17px;
      flex-basis: 17px;
      stroke-width: 1.8;
    }

    .workspace-more-panel .ui-icon,
    .workspace-tools-panel .ui-icon,
    .global-add-panel .ui-icon {
      color: var(--accent);
    }

    @media (max-width: 760px) {
      body {
        padding-bottom: 72px;
      }

      .action-icon {
        width: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
      }

      .action-compact {
        min-height: 44px !important;
      }

      .tenant-bar {
        position: sticky;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 54px;
      }

      .workspace-nav {
        position: fixed;
        z-index: 70;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0;
        margin: 0;
        padding: 6px max(5px, env(safe-area-inset-left)) max(6px, env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-right));
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -8px 24px rgba(18, 26, 34, 0.1);
        overflow: visible;
      }

      .workspace-nav button,
      .workspace-nav .workspace-home-button {
        width: 100%;
        min-width: 0;
        min-height: 54px;
        flex-direction: column;
        gap: 2px;
        padding: 5px 2px !important;
        border: 0;
        border-radius: 7px;
        background: transparent;
        box-shadow: none;
        font-size: 10px;
      }

      .workspace-nav .workspace-promoted-button {
        display: none;
      }

      .workspace-more-panel .workspace-more-promoted {
        display: flex !important;
      }

      .workspace-nav .workspace-home-button {
        display: inline-flex !important;
      }

      .workspace-nav .workspace-home-button .ui-label {
        display: inline;
      }

      .workspace-nav button.active {
        background: #e4f4f1;
        color: var(--accent-dark);
        text-shadow: none;
      }

      .workspace-nav .workspace-badge {
        position: absolute;
        margin: -22px 0 0 24px;
      }

      .workspace-subnav {
        top: 54px;
        margin-inline: -14px;
        padding-inline: 14px;
        border-inline: 0;
        border-radius: 0;
      }

      .workspace-subnav button {
        min-height: 38px;
      }

      .watch-view-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
      }

      .watch-view-tabs button {
        min-width: 0;
        padding-inline: 3px;
      }

      #competitorWatchPanel #competitorWatchList .watch-card-actions {
        width: auto;
      }

      .watch-settings-nav {
        width: 100%;
      }

      #watchProfilesView,
      #watchFindingsView,
      #watchSettingsView {
        padding: 14px;
      }

      .watch-settings-nav button {
        flex: 0 0 auto;
      }

      #journalReviewPanel .journal-review-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
      }

      #journalReviewPanel .journal-review-header button {
        width: 100% !important;
        justify-self: stretch;
      }

      #journalReviewPanel .journal-review-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      #journalReviewPanel .journal-review-stat {
        padding: 10px 12px;
      }

      #journalReviewPanel .journal-review-stat b {
        font-size: 18px;
      }

      #journalReviewPanel .journal-review-stat .meta {
        font-size: 11px;
      }

      #journalReviewPanel .journal-review-family > summary {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
      }

      #journalReviewPanel .journal-review-family > summary::after {
        grid-column: 2;
      }

      .workspace-page-heading .calendar-actions,
      .settings-panel-heading .calendar-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
      }

      .workspace-page-heading .calendar-actions button,
      .settings-panel-heading .calendar-actions button {
        width: 100%;
      }
    }

    /* Mobile workspace contract: compact context, early records, and full-screen detail work. */
    .mobile-filter-toggle {
      display: none;
    }

    .mobile-only-label {
      display: none;
    }

    @media (max-width: 760px) {
      body {
        font-size: 16px;
      }

      main > section {
        padding: 12px 14px 22px;
      }

      .workspace-masthead {
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 14px;
        padding: 13px 14px 12px;
        border-top-width: 3px;
        box-shadow: none;
      }

      .workspace-masthead > .global-brand-filter {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        margin-top: 11px;
      }

      .workspace-masthead > .global-brand-filter > span {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
      }

      .workspace-masthead > .global-brand-filter select {
        width: 100%;
        max-width: none;
      }

      .workspace-masthead-kicker {
        margin-bottom: 4px;
        font-size: 10px;
      }

      .workspace-masthead h1,
      .workspace-masthead .section-heading h2,
      #budgetDashboardPanel .workspace-masthead .section-heading h2,
      .main-workspace[data-workspace="operations"] .workspace-masthead .section-heading h2 {
        margin-bottom: 4px;
        font-size: 22px;
      }

      .workspace-masthead .section-heading p,
      .workspace-masthead .home-hero p {
        font-size: 13px;
        line-height: 1.35;
      }

      .workspace-masthead .workspace-guidance {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        margin: 11px -14px -12px;
        padding: 10px 14px 12px;
      }

      .workspace-guidance-detail {
        display: -webkit-box;
        margin-top: 2px;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 12px;
        line-height: 1.3;
      }

      .workspace-guidance button {
        width: auto;
        min-width: 104px;
        min-height: 42px;
        padding-inline: 12px;
      }

      .workspace-subnav,
      .domain-health-nav,
      .watch-settings-nav {
        gap: 18px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
      }

      .workspace-subnav::-webkit-scrollbar,
      .domain-health-nav::-webkit-scrollbar,
      .watch-settings-nav::-webkit-scrollbar {
        display: none;
      }

      .workspace-subnav button,
      .domain-health-nav button,
      .watch-settings-nav button {
        flex: 0 0 auto;
        width: auto;
        min-width: max-content;
        padding-inline: 1px;
      }

      .stats,
      .portfolio-overview-stats,
      .attention-grid,
      .domain-health-summary,
      .watch-overview-stats,
      #competitorWatchPanel .watch-overview-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .stat,
      .attention-stat,
      #competitorWatchPanel .watch-overview-stats .stat {
        min-height: 72px;
        padding: 10px 12px;
      }

      .stat b,
      .attention-stat b,
      #competitorWatchPanel .watch-overview-stats .stat b {
        margin-bottom: 4px;
        font-size: 22px;
      }

      .stat span,
      .attention-stat span,
      #competitorWatchPanel .watch-overview-stats .stat span {
        font-size: 12px;
        line-height: 1.3;
      }

      .attention-stat span {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }

      .domain-health-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 10px;
        overflow: visible;
      }

      .domain-health-nav button {
        width: 100%;
        min-width: 0;
        font-size: 12px;
      }

      .domain-health-nav .desktop-only-label {
        display: none;
      }

      .domain-health-nav .mobile-only-label {
        display: inline;
      }

      #domainHealthMonitoredView .domain-health-view-heading {
        display: none;
      }

      .domain-health-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 10px;
      }

      .domain-health-toolbar > label:first-child {
        grid-column: 1 / -1;
      }

      .domain-health-toolbar > label:nth-of-type(2),
      .domain-health-toolbar > label:nth-of-type(3),
      .domain-health-toolbar > #domainHealthSetupButton {
        display: none;
      }

      .mobile-filter-toggle {
        display: inline-flex;
        grid-column: 1;
        width: 100%;
        min-width: 44px;
        min-height: 44px;
        align-self: end;
      }

      #domainHealthRefreshAllButton {
        grid-column: 2;
        width: 100%;
        min-height: 44px;
        align-self: end;
      }

      .domain-health-toolbar.mobile-filters-open > label:nth-of-type(2),
      .domain-health-toolbar.mobile-filters-open > label:nth-of-type(3) {
        display: block;
        grid-column: 1 / -1;
      }

      .domain-health-toolbar.mobile-filters-open > #domainHealthSetupButton {
        display: inline-flex;
        grid-column: 1 / -1;
        width: 100%;
      }

      .domain-health-list {
        gap: 7px;
      }

      .domain-health-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
        padding: 11px 12px;
      }

      .domain-health-copy {
        grid-column: 1;
      }

      .domain-health-facts,
      .domain-health-signals {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 5px 9px;
        color: var(--muted);
        font-size: 12px;
      }

      .domain-health-signals > div {
        display: contents;
      }

      .domain-health-row .actions {
        grid-column: 2;
        grid-row: 1;
        display: block;
        width: auto;
      }

      .domain-health-row .actions button {
        width: auto;
        min-height: 40px;
        padding-inline: 11px;
      }

      .domain-health-action {
        flex: 1 1 100%;
        margin-top: 2px;
        padding-top: 6px;
      }

      .card-dashboard {
        gap: 8px;
        margin-bottom: 14px;
      }

      .tm-card {
        min-height: 0;
        gap: 7px;
        padding: 11px 12px;
      }

      .tm-card-summary {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }

      .tm-card-field {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 7px;
      }

      .tm-card-actions .actions {
        gap: 7px;
      }

      .portfolio-secondary-metrics {
        display: none;
      }

      .portfolio-simple-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .portfolio-simple-actions > label {
        grid-column: 1 / -1;
      }

      #portfolioAddJumpButton {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        align-self: end;
      }

      #portfolioRefreshAllButton {
        grid-column: 1;
        width: 100%;
      }

      #portfolioDomainSetupButton {
        grid-column: 2;
        width: 100%;
      }

      #portfolioToolsOpenButton,
      #togglePortfolioViewButton {
        display: none;
      }

      .dashboard-toolbar {
        display: block;
      }

      .dashboard-toolbar > .quick-filters {
        padding-bottom: 2px;
      }

      .portfolio-simple-tools[open] {
        position: fixed;
        z-index: 105;
        inset: 0;
        margin: 0;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
        background: var(--white);
      }

      .portfolio-simple-tools[open] > summary {
        position: sticky;
        z-index: 2;
        top: 0;
        border-bottom: 1px solid var(--line);
        background: var(--white);
      }

      .attention-dashboard {
        gap: 10px;
      }

      .attention-primary-grid {
        gap: 10px;
      }

      .attention-lane,
      .attention-planning,
      .attention-section {
        border-radius: 6px;
      }

      .attention-item {
        min-height: 58px;
        padding: 10px 12px;
      }

      .attention-item b {
        font-size: 14px;
      }

      .attention-item .meta {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }

      .attention-item > .pill {
        align-self: start;
        font-size: 11px;
      }

      .watch-view-toolbar {
        gap: 8px;
      }

      .watch-view-tabs {
        display: flex;
        gap: 4px;
        overflow-x: auto;
      }

      .watch-view-tabs button {
        flex: 0 0 auto;
        width: auto;
        min-width: max-content;
        padding-inline: 2px;
        font-size: 13px;
      }

      .watch-view-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      #watchProfilesView,
      #watchFindingsView,
      #watchSettingsView {
        padding: 10px 0 0;
      }

      #competitorWatchPanel #competitorWatchListSection,
      #competitorFindingsSection,
      .competitor-profiles,
      .watch-template-section {
        padding-inline: 0;
      }

      #competitorWatchPanel #competitorWatchList .watch-card,
      .watch-finding-group,
      .competitor-profile-row,
      .watch-rule-card {
        border-radius: 6px;
      }

      #competitorWatchPanel #watchHealthPanel > summary > .pill {
        max-width: 46%;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.25;
        text-align: right;
        white-space: normal;
      }

      .watch-finding-group-header,
      .watch-finding-row {
        gap: 8px;
        padding: 10px;
      }

      .watch-finding-row .watch-finding-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
      }

      .watch-finding-row .watch-finding-actions > * {
        width: auto;
        min-height: 40px;
      }

      #watchFindingBulkbar {
        min-height: 52px;
        padding: 10px 12px;
      }

      #watchFindingBulkbar > .meta {
        display: none;
      }

      #watchFindingBulkbar > label {
        margin: 0;
      }

      .portfolio-drawer.open,
      .watch-editor-drawer.open,
      .watch-rule-preview-drawer.open {
        position: fixed;
        z-index: 111;
        inset: 0;
        width: 100vw;
        max-width: none;
        height: 100dvh;
        max-height: none;
        margin: 0;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
        background: var(--white);
        box-shadow: 0 0 0 100vmax rgba(24, 32, 40, 0.46);
      }

      .watch-editor-drawer.watch-editor-modal.open {
        top: 0;
        right: 0;
        left: 0;
        opacity: 1;
        transform: none;
      }

      .portfolio-drawer.open .drawer-header,
      .watch-editor-drawer.open .drawer-header,
      .watch-rule-preview-drawer.open .drawer-header {
        position: sticky;
        z-index: 3;
        top: 0;
        padding: 13px 14px;
        background: var(--white);
      }

      .portfolio-drawer.open .drawer-header-actions,
      .watch-editor-drawer.open .drawer-header-actions,
      .watch-rule-preview-drawer.open .drawer-header-actions {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
      }

      .portfolio-drawer.open .drawer-header-actions > :last-child,
      .watch-editor-drawer.open .drawer-header-actions > :last-child,
      .watch-rule-preview-drawer.open .drawer-header-actions > :last-child {
        width: auto;
        min-width: 82px;
      }

      .portfolio-drawer.open .drawer-body,
      .watch-editor-drawer.open .drawer-body,
      .watch-rule-preview-drawer.open .drawer-body {
        padding: 14px;
      }

      .domain-detail-modal {
        inset: 0;
        width: 100vw;
        max-width: none;
        height: 100dvh;
        max-height: none;
        border: 0;
        border-radius: 0;
        transform: translateY(2%);
      }

      .domain-detail-modal.open {
        transform: none;
      }

      input,
      select,
      textarea,
      button,
      .button-link {
        min-height: 44px !important;
      }

      #brandHomeButton,
      #globalBrandFilterInput,
      .tm-card-actions button,
      .portfolio-view-actions button,
      #competitorWatchPanel #competitorWatchList .watch-card-actions > button,
      #competitorWatchPanel #competitorWatchList .watch-card-menu > summary,
      #watchProfilesView .competitor-profile-actions button {
        min-height: 44px;
      }

      .domain-detail-link {
        display: inline-flex;
        min-height: 44px !important;
        align-items: center;
      }
    }

    @media (max-width: 430px) {
      .global-brand-filter select {
        min-width: 102px;
        max-width: 112px;
      }

      .workspace-guidance-copy > b {
        font-size: 14px;
      }

      .workspace-guidance button {
        min-width: 96px;
        font-size: 12px;
      }
    }

    /* Interface system v2: one page frame, one tab language, and quieter data bands. */
    .main-workspace {
      --workspace-content-width: 1224px;
      min-width: 0;
    }

    .main-workspace > :not(.workspace-masthead),
    .main-workspace .workspace-tab-panel {
      min-width: 0;
    }

    .workspace-masthead {
      margin-bottom: 20px;
      padding: 22px 24px 18px;
      border-radius: 0;
      box-shadow: 0 1px 2px rgba(18, 26, 34, 0.04);
    }

    .workspace-masthead h1,
    .workspace-masthead .section-heading h2,
    #budgetDashboardPanel .workspace-masthead .section-heading h2,
    .main-workspace[data-workspace="operations"] .workspace-masthead .section-heading h2 {
      font-size: 27px;
    }

    .workspace-page-heading,
    .workspace-section-heading,
    .panel-section-heading,
    .main-workspace .section-heading {
      align-items: flex-start;
    }

    .workspace-section-heading,
    .panel-section-heading,
    .main-workspace .section-heading:not(.workspace-page-heading):not(.compact) {
      margin: 24px 0 11px;
    }

    .workspace-section-heading h2,
    .panel-section-heading h2,
    .main-workspace .section-heading:not(.workspace-page-heading) h2 {
      margin: 0 0 4px;
      font-size: 18px;
      line-height: 1.25;
    }

    .workspace-section-heading p,
    .panel-section-heading p,
    .main-workspace .section-heading p {
      max-width: 760px;
      margin: 0;
      font-size: 14px;
      line-height: 1.4;
    }

    .workspace-subnav {
      margin-top: -4px;
    }

    .workspace-subnav .ui-icon {
      width: 16px;
      height: 16px;
      flex-basis: 16px;
    }

    .stats,
    .home-status,
    .attention-grid,
    .domain-health-summary,
    .portfolio-overview-stats,
    .watch-overview-stats,
    #competitorWatchPanel .watch-overview-stats {
      gap: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--white);
    }

    .home-metric,
    .attention-stat,
    .domain-health-summary .stat,
    .portfolio-overview-stats .stat,
    .watch-overview-stats .stat,
    #competitorWatchPanel .watch-overview-stats .stat {
      min-height: 80px;
      padding: 14px 16px;
      border: 0;
      border-left: 1px solid var(--line);
      border-radius: 0;
      box-shadow: none;
    }

    .home-metric:first-child,
    .attention-stat:first-child,
    .domain-health-summary .stat:first-child,
    .portfolio-overview-stats .stat:first-child,
    .watch-overview-stats .stat:first-child,
    #competitorWatchPanel .watch-overview-stats .stat:first-child {
      border-left: 0;
    }

    .panel > .section-heading:first-child,
    .activity-log > .section-heading:first-child,
    .system-health > .section-heading:first-child {
      margin: 0;
      padding: 16px 18px 13px;
      border-bottom: 1px solid var(--line);
      background: #f8fafb;
    }

    .workspace-tab-panel > .panel,
    .workspace-tab-panel > .system-health,
    .workspace-tab-panel > .operations-home {
      margin-bottom: 16px;
    }

    .workspace-tab-panel > .panel > .panel,
    .workspace-tab-panel > .panel > section,
    .workspace-tab-panel > .system-health > section {
      border-radius: 6px;
      box-shadow: none;
    }

    .main-workspace .toolbar,
    .main-workspace .dashboard-toolbar,
    .main-workspace .watch-view-toolbar,
    .main-workspace .domain-health-toolbar,
    .main-workspace .brands-toolbar {
      min-width: 0;
    }

    .main-workspace .toolbar button,
    .main-workspace .dashboard-toolbar button,
    .main-workspace .watch-view-actions button,
    .main-workspace .domain-health-toolbar button,
    .main-workspace .brands-toolbar button {
      min-height: 40px;
    }

    @media (max-width: 760px) {
      main > section {
        width: 100%;
        padding: 14px 14px 84px;
      }

      .workspace-masthead {
        margin: 0 0 14px;
        padding: 14px 14px 12px;
      }

      .workspace-masthead h1,
      .workspace-masthead .section-heading h2,
      #budgetDashboardPanel .workspace-masthead .section-heading h2,
      .main-workspace[data-workspace="operations"] .workspace-masthead .section-heading h2 {
        font-size: 23px;
      }

      .workspace-subnav {
        gap: 18px;
        margin: -2px -14px 14px;
        padding: 0 14px;
        background: rgba(238, 243, 246, 0.97);
      }

      .stats,
      .home-status,
      .attention-grid,
      .domain-health-summary,
      .portfolio-overview-stats,
      .watch-overview-stats,
      #competitorWatchPanel .watch-overview-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
      }

      .home-metric:nth-child(odd),
      .attention-stat:nth-child(odd),
      .stats .stat:nth-child(odd),
      .domain-health-summary .stat:nth-child(odd),
      .portfolio-overview-stats .stat:nth-child(odd),
      .watch-overview-stats .stat:nth-child(odd),
      #competitorWatchPanel .watch-overview-stats .stat:nth-child(odd) {
        border-left: 0;
      }

      .home-metric:nth-child(n + 3),
      .attention-stat:nth-child(n + 3),
      .stats .stat:nth-child(n + 3),
      .domain-health-summary .stat:nth-child(n + 3),
      .portfolio-overview-stats .stat:nth-child(n + 3),
      .watch-overview-stats .stat:nth-child(n + 3),
      #competitorWatchPanel .watch-overview-stats .stat:nth-child(n + 3) {
        border-top: 1px solid var(--line);
      }

      .panel > .section-heading:first-child,
      .activity-log > .section-heading:first-child,
      .system-health > .section-heading:first-child {
        padding: 13px 14px 11px;
      }
    }

    @media (max-width: 760px) {
      .incident-case-panel {
        border: 0;
        background: transparent;
      }

      .incident-case-panel .operations-attention-header {
        align-items: flex-start;
        padding: 0 0 8px;
        background: transparent;
      }

      .incident-case-row {
        grid-template-columns: 12px minmax(0, 1fr) 58px;
        gap: 9px;
        padding: 11px 2px;
        background: transparent;
      }

      .incident-case-owner { grid-column: 2; }
      .incident-case-progress { grid-column: 3; grid-row: 1 / span 2; }
      .incident-case-form,
      .incident-source-list { grid-template-columns: minmax(0, 1fr); }
      .incident-case-footer { align-items: stretch; flex-direction: column-reverse; }
      .incident-case-footer button { width: 100%; }
      .incident-case-export-actions,
      .incident-case-save-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
      .incident-evidence-record .section-heading { align-items: stretch; }
      .incident-evidence-record .section-heading button { width: 100%; }
      .incident-evidence-body dl { grid-template-columns: minmax(0, 1fr); }
    }

    .radar-alert-history {
      margin-top: 22px;
      padding-top: 18px;
      border-top: 1px solid var(--line);
    }

    .radar-alert-history .section-heading select {
      width: 180px;
      min-height: 40px;
    }

    .radar-alert-history-list {
      border-top: 1px solid var(--line);
    }

    .radar-alert-calibration {
      display: flex;
      align-items: stretch;
      gap: 0;
      margin: 12px 0 18px;
      border: 1px solid var(--line);
      border-left: 4px solid var(--accent);
      border-radius: 6px;
      background: var(--surface);
    }

    .radar-alert-calibration > div {
      display: grid;
      min-width: 120px;
      padding: 12px 16px;
      border-right: 1px solid var(--line);
    }

    .radar-alert-calibration > div b { font-size: 18px; }
    .radar-alert-calibration > div span { color: var(--muted); font-size: 12px; }
    .radar-alert-calibration > p { align-self: center; margin: 0; padding: 12px 16px; color: var(--muted); font-size: 13px; }

    .radar-alert-priority {
      display: grid;
      gap: 2px;
      margin-top: 10px;
      padding-left: 10px;
      border-left: 3px solid var(--accent);
      font-size: 13px;
    }

    .radar-alert-priority span { color: var(--muted); }

    .radar-alert-history-header,
    .radar-alert-history-row > summary {
      display: grid;
      grid-template-columns: minmax(220px, 2fr) minmax(100px, .7fr) minmax(100px, .8fr) minmax(110px, .8fr) 24px;
      align-items: center;
      gap: 12px;
      padding: 11px 12px;
    }

    .radar-alert-history-header {
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
    }

    .radar-alert-history-row {
      border-bottom: 1px solid var(--line);
    }

    .radar-alert-history-row > summary {
      cursor: pointer;
      list-style: none;
    }

    .radar-alert-history-row > summary::-webkit-details-marker { display: none; }
    .radar-alert-history-row > summary:hover { background: var(--surface-soft); }
    .radar-alert-history-row > summary > span:first-child { display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 8px; }
    .radar-alert-history-row > summary > span:first-child small { grid-column: 2; color: var(--muted); font-size: 12px; }
    .radar-alert-history-row[open] > summary > span:last-child { transform: rotate(90deg); }

    .radar-alert-history-detail {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
      gap: 24px;
      padding: 16px 32px 20px;
      background: var(--surface-soft);
    }

    .radar-alert-history-detail ul { margin: 12px 0 0; padding: 0; list-style: none; }
    .radar-alert-history-detail li { display: grid; grid-template-columns: minmax(140px, .7fr) minmax(0, 1.3fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
    .radar-alert-review-form { display: grid; gap: 10px; }
    .radar-alert-review-form label { display: grid; gap: 5px; }
    .radar-alert-review-form textarea { min-height: 76px; }
    .radar-alert-review-form .actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

    @media (max-width: 760px) {
      .radar-alert-history .section-heading { align-items: stretch; flex-direction: column; }
      .radar-alert-history .section-heading select { width: 100%; }
      .radar-alert-calibration { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .radar-alert-calibration > div { min-width: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); }
      .radar-alert-calibration > p { grid-column: 1 / -1; padding: 11px 12px; }
      .radar-alert-history-header { display: none; }
      .radar-alert-history-row > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 13px 4px; }
      .radar-alert-history-row > summary > span:nth-child(2)::before { content: "Domains "; color: var(--muted); }
      .radar-alert-history-row > summary > span:nth-child(3)::before { content: "Delivery "; color: var(--muted); }
      .radar-alert-history-row > summary > span:nth-child(4)::before { content: "Review "; color: var(--muted); }
      .radar-alert-history-row > summary > span:nth-child(2),
      .radar-alert-history-row > summary > span:nth-child(3),
      .radar-alert-history-row > summary > span:nth-child(4) { grid-column: 1; padding-left: 20px; font-size: 13px; }
      .radar-alert-history-row > summary > span:last-child { grid-column: 2; grid-row: 1; }
      .radar-alert-history-detail { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 14px 4px 18px; }
      .radar-alert-history-detail li { grid-template-columns: minmax(0, 1fr); gap: 3px; }
      .radar-alert-review-form .actions { grid-template-columns: minmax(0, 1fr); }
    }

    @media (max-width: 760px) {
      .radar-campaign-heading,
      .radar-campaign-row {
        align-items: stretch;
        flex-direction: column;
      }

      .radar-campaign-row button {
        width: 100%;
      }

      .radar-case-campaign > div:last-child span {
        max-width: 100%;
        overflow-wrap: anywhere;
      }
    }

    .class-reference {
      display: grid;
      gap: 18px;
    }

    .class-reference-overview {
      display: grid;
      grid-template-columns: minmax(190px, 240px) minmax(280px, 1fr) auto;
      align-items: end;
      gap: 14px;
    }

    .class-reference-overview label {
      display: grid;
      gap: 6px;
      min-width: 0;
      font-size: 13px;
      font-weight: 700;
    }

    .class-reference-overview input,
    .class-reference-overview select {
      width: 100%;
      min-width: 0;
    }

    .class-reference-tabs {
      display: flex;
      gap: 20px;
      min-height: 44px;
      border-bottom: 1px solid var(--line, #d5dfe4);
    }

    .class-reference-tabs button {
      min-height: 44px;
      padding: 0 2px;
      border: 0;
      border-bottom: 3px solid transparent;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      color: var(--muted, #617080);
    }

    .class-reference-tabs button:hover,
    .class-reference-tabs button:focus-visible,
    .class-reference-tabs button.active {
      border-bottom-color: var(--accent, var(--forest-700));
      background: transparent;
      box-shadow: none;
      color: var(--accent-strong, var(--forest-800));
    }

    .class-reference-office-note {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 14px 16px;
      border: 1px solid var(--line, #d5dfe4);
      border-left: 4px solid var(--accent, var(--forest-700));
      border-radius: 6px;
      background: #fff;
    }

    .class-reference-office-note p {
      margin: 4px 0 0;
      color: var(--muted, #617080);
    }

    .class-reference-office-note a {
      display: inline-flex;
      flex: 0 0 auto;
      align-items: center;
      gap: 6px;
      font-weight: 700;
    }

    .class-reference-summary {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--line, #d5dfe4);
      color: var(--muted, #617080);
      font-size: 13px;
    }

    .class-reference-summary span:first-child {
      color: var(--ink, #1b242d);
      font-weight: 700;
    }

    .class-reference-list {
      display: grid;
    }

    .class-reference-row {
      display: grid;
      grid-template-columns: 96px minmax(0, 1fr);
      gap: 18px;
      padding: 16px 4px;
      border-bottom: 1px solid var(--line, #d5dfe4);
    }

    .class-reference-number {
      display: grid;
      align-content: start;
      gap: 2px;
      color: var(--muted, #617080);
      font-size: 12px;
      text-transform: uppercase;
    }

    .class-reference-number b {
      color: var(--ink, #1b242d);
      font-size: 26px;
      line-height: 1;
    }

    .class-reference-copy {
      min-width: 0;
    }

    .class-reference-copy > div {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 14px;
    }

    .class-reference-copy h3,
    .class-reference-copy p {
      margin: 0;
    }

    .class-reference-copy h3 {
      font-size: 16px;
    }

    .class-reference-copy p {
      margin-top: 5px;
      color: var(--muted, #617080);
      line-height: 1.5;
    }

    .class-reference-copy span {
      color: var(--muted, #617080);
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
    }

    .class-reference-empty {
      display: grid;
      gap: 4px;
      padding: 28px 4px;
      border-bottom: 1px solid var(--line, #d5dfe4);
      color: var(--muted, #617080);
    }

    .class-reference-empty b {
      color: var(--ink, #1b242d);
    }

    @media (max-width: 760px) {
      .class-reference-overview {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
      }

      .class-reference-tabs {
        gap: 14px;
        overflow-x: auto;
      }

      .class-reference-tabs button {
        flex: 0 0 auto;
      }

      .class-reference-office-note,
      .class-reference-summary {
        align-items: flex-start;
        flex-direction: column;
      }

      .class-reference-row {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 12px;
      }

      .class-reference-copy > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
      }
    }

    .domain-hostname-review {
      display: grid;
      gap: 6px;
    }

    .domain-threat-case-list {
      margin-top: 10px;
    }

    .domain-threat-case-table {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--panel);
    }

    .domain-threat-case-row {
      display: grid;
      grid-template-columns: minmax(210px, 1.7fr) 100px 110px minmax(130px, 1fr) 100px 130px 74px;
      gap: 12px;
      align-items: center;
      min-height: 58px;
      padding: 9px 12px;
      border-bottom: 1px solid var(--line);
      font-size: 13px;
    }

    .domain-threat-case-row:last-child { border-bottom: 0; }
    .domain-threat-case-row > span { min-width: 0; overflow-wrap: anywhere; }
    .domain-threat-case-row > span:first-child { display: grid; gap: 2px; }
    .domain-threat-case-row > span:nth-child(3) { display: grid; gap: 2px; }
    .domain-threat-case-row small { color: var(--muted); font-size: 11px; font-weight: 500; }
    .domain-threat-case-head { min-height: 38px; color: var(--muted); background: var(--canvas); font-size: 11px; font-weight: 700; text-transform: uppercase; }

    .domain-threat-severity-dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      margin-right: 7px;
      border-radius: 50%;
      background: #7c8b96;
    }

    .domain-threat-severity-dot.medium { background: #c98619; }
    .domain-threat-severity-dot.high { background: #c34a35; }
    .domain-threat-severity-dot.critical { background: #991f2f; }
    .domain-threat-severity-dot.low { background: var(--forest-700); }

    .domain-threat-case-modal { width: min(920px, calc(100vw - 32px)); }
    .domain-threat-case-body { display: grid; gap: 0; }

    .domain-threat-case-form {
      display: grid;
      grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(130px, .7fr));
      gap: 12px;
    }

    .domain-threat-case-form label { display: grid; align-content: start; gap: 6px; font-size: 12px; font-weight: 700; }
    .domain-threat-case-form label.wide { grid-column: 1 / -1; }
    .domain-threat-case-form textarea { min-height: 90px; resize: vertical; }

    .domain-threat-case-actions {
      display: flex;
      align-items: center;
      gap: 9px;
      margin-top: 12px;
    }

    .domain-threat-case-actions .saved { margin-left: auto; }

    .domain-threat-monitoring-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 24px;
      padding-top: 2px;
    }

    .domain-threat-monitoring-controls .check-row {
      display: flex;
      grid-column: auto;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 600;
    }

    .domain-threat-monitoring-summary {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      background: transparent;
    }

    .domain-threat-monitoring-summary > div {
      display: grid;
      min-width: 0;
      gap: 3px;
      padding: 12px 14px;
      border-right: 1px solid var(--line);
    }

    .domain-threat-monitoring-summary > div:last-child { border-right: 0; }
    .domain-threat-monitoring-summary span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
    .domain-threat-monitoring-summary b { font-size: 13px; }
    .domain-threat-monitoring-summary small { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.35; }

    .domain-threat-evidence-list,
    .domain-threat-timeline {
      display: grid;
      margin-top: 10px;
      border-top: 1px solid var(--line);
    }

    .domain-threat-snapshot,
    .domain-threat-timeline > div {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 16px;
      align-items: start;
      padding: 10px 0;
      border-bottom: 1px solid var(--line);
      background: transparent;
    }

    .domain-threat-snapshot > div,
    .domain-threat-timeline > div > span:first-child { display: grid; gap: 3px; }
    .domain-threat-snapshot span,
    .domain-threat-timeline small { color: var(--muted); font-size: 12px; font-weight: 500; }

    @media (max-width: 760px) {
      .domain-threat-case-head { display: none; }
      .domain-threat-case-table { border-right: 0; border-left: 0; border-radius: 0; }
      .domain-threat-case-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 14px;
        padding: 13px 2px;
        border-radius: 0;
      }
      .domain-threat-case-row > span:first-child { grid-column: 1 / -1; }
      .domain-threat-case-row > span:not(:first-child):not(:last-child)::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: var(--muted);
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
      }
      .domain-threat-case-row > span:last-child { grid-column: 1 / -1; }
      .domain-threat-case-row button { width: 100%; }
      .domain-threat-case-modal .drawer-header-actions > [data-close-domain-threat-case] { display: inline-grid; }
      .domain-threat-case-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .domain-threat-case-form label:first-child,
      .domain-threat-case-form label:nth-child(4),
      .domain-threat-case-form label.wide { grid-column: 1 / -1; }
      .domain-threat-case-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
      .domain-threat-case-actions .saved { margin-left: 0; }
      .domain-threat-monitoring-controls { display: grid; gap: 10px; }
      .domain-threat-monitoring-summary { grid-template-columns: minmax(0, 1fr); }
      .domain-threat-monitoring-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
      .domain-threat-monitoring-summary > div:last-child { border-bottom: 0; }
      .domain-hostname-review { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; }
    }

    @media (max-width: 760px) {
      .brand-pipeline { gap: 11px; margin-bottom: 22px; }
      .brand-pipeline-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .brand-pipeline-summary > div { padding: 10px 11px; }
      .brand-pipeline-summary > div:nth-child(odd) { border-left: 0; }
      .brand-pipeline-summary > div:nth-child(n+3) { border-top: 1px solid var(--line); }
      .brand-pipeline-row { grid-template-columns: 1fr; gap: 11px; padding: 12px; overflow: visible; }
      .brand-pipeline-track { grid-template-columns: repeat(5, minmax(52px, 1fr)); }
      .brand-pipeline-stage { font-size: 10px; }
      .brand-pipeline-stage em { max-width: 62px; line-height: 1.2; }
      .brand-pipeline-next { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
      .brand-pipeline-next button { width: auto; min-width: 120px; }
    }

    /* Mobile workflows: keep the next decision above supporting detail. */
    @media (min-width: 761px) and (max-width: 900px) {
      .protection-queue-heading { align-items: stretch; flex-direction: column; }
      .protection-queue-heading-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .protection-queue-heading-actions button { width: 100%; min-width: 0; }
      .protection-queue-toolbar { grid-template-columns: minmax(0, 1fr); }
      .protection-queue-head { grid-template-columns: minmax(230px, 1.4fr) minmax(110px, .7fr) 80px minmax(120px, .75fr) 184px; }
      .protection-queue-main { grid-template-columns: minmax(230px, 1.4fr) minmax(110px, .7fr) 80px minmax(120px, .75fr); }
      .protection-queue-heading-actions button { white-space: nowrap; }
    }

    @media (max-width: 900px) {
      .home-overview-grid,
      .home-lower-grid,
      .attention-primary-grid,
      .system-health-columns,
      .clearance-flow-grid,
      .clearance-flow-grid.setup-only {
        grid-template-columns: minmax(0, 1fr);
      }

      .main-workspace[data-workspace="operations"] .workspace-tab-panel,
      .main-workspace[data-workspace="finance"] .workspace-tab-panel,
      .main-workspace[data-workspace="admin"] .workspace-tab-panel {
        min-width: 0;
      }

      .main-workspace[data-workspace="operations"] table,
      .main-workspace[data-workspace="finance"] table,
      .main-workspace[data-workspace="admin"] table {
        font-size: 13px;
      }
    }

    @media (max-width: 760px) {
      .main-workspace[data-workspace="home"],
      .main-workspace[data-workspace="attention"],
      .main-workspace[data-workspace="clearance"],
      .main-workspace[data-workspace="operations"],
      .main-workspace[data-workspace="finance"],
      .main-workspace[data-workspace="admin"] {
        --page-gap: 14px;
        --section-gap: 12px;
      }

      .home-dashboard,
      .attention-dashboard,
      .operations-home {
        gap: 12px;
      }

      .home-status {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .home-metric {
        min-height: 76px;
        padding: 11px 12px;
        text-align: left;
      }

      .home-metric b {
        font-size: 22px;
      }

      .home-side-signals {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .home-signal {
        min-height: 112px;
        padding: 12px;
      }

      .home-panel {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
      }

      .home-panel-heading {
        margin-bottom: 6px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--line);
      }

      .home-recent-item,
      .home-priority-list .attention-item {
        padding-inline: 2px;
      }

      .attention-lane,
      .domain-action-queue,
      .attention-inboxes > .operations-attention {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
      }

      .attention-lane .operations-attention-header,
      .domain-action-queue .operations-attention-header,
      .attention-inboxes .operations-attention-header {
        padding: 0 0 8px;
        border-bottom: 1px solid var(--line);
      }

      .attention-item {
        grid-template-columns: minmax(0, 1fr) auto;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        background: transparent;
      }

      .attention-item:last-child {
        border-bottom: 0;
      }

      .clearance-workflow {
        margin-bottom: 12px;
      }

      .clearance-stage-tabs {
        position: sticky;
        z-index: 6;
        top: 58px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: 0 -14px 12px;
        padding: 0 14px;
        background: var(--canvas);
      }

      .clearance-stage-tabs button {
        width: 100%;
        min-width: 0;
        padding-inline: 6px;
      }

      .clearance-step {
        padding: 14px;
      }

      .clearance-setup-fields,
      .clearance-action-grid {
        grid-template-columns: minmax(0, 1fr);
      }

      .clearance-setup-fields .actions,
      .clearance-action-grid {
        gap: 8px;
      }

      .clearance-results-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
      }

      .clearance-results-actions button {
        width: 100%;
      }

      .clearance-search-scope-body {
        grid-template-columns: minmax(0, 1fr);
      }

      .clearance-work-products > summary,
      .section-disclosure > summary,
      .attention-planning > summary {
        min-height: 48px;
        padding: 12px 14px;
      }

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

      .result-table-details > summary,
      #clearanceWorkProducts > summary {
        font-size: 14px;
      }

      .main-workspace[data-workspace="operations"] .operations-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .main-workspace[data-workspace="operations"] .operations-action {
        min-height: 96px;
        padding: 11px 12px;
      }

      .main-workspace[data-workspace="operations"] > .workspace-tab-panel.panel,
      #budgetDashboardPanel,
      #systemHealthPanel,
      #registrySourcesPanel,
      #durabilityPanel {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
      }

      #budgetDashboardPanel .workspace-masthead > .workspace-page-heading {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
      }

      .main-workspace[data-workspace="operations"] .operations-attention,
      .finance-overview-panel .budget-feed-section,
      .system-health-section,
      .registry-import-card,
      #durabilityPanel .portfolio-health {
        border-radius: 6px;
      }

      .durability-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .durability-overview > div:nth-child(3) {
        border-left: 0;
      }

      .durability-overview > div:nth-child(n + 3) {
        border-top: 1px solid var(--line);
      }

      #durabilityPanel .settings-panel-heading,
      .durability-restore-body {
        align-items: stretch;
      }

      #durabilityPanel .calendar-actions,
      .durability-restore-body {
        flex-direction: column;
      }

      #durabilityPanel .calendar-actions button,
      .durability-restore-body button {
        width: 100%;
      }

      .budget-card-grid,
      .system-health-grid,
      #registrySourcesPanel .registry-fields {
        grid-template-columns: minmax(0, 1fr);
      }

      .euipo-import-history-labels {
        display: none;
      }

      .euipo-import-run > summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 16px;
        padding: 14px 36px 14px 12px;
      }

      .euipo-import-run > summary > span::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
      }

      .euipo-import-result {
        grid-template-columns: 10px minmax(0, 1fr) !important;
      }

      .euipo-import-result::before {
        grid-column: 1 / -1;
      }

      .euipo-import-run-details {
        grid-template-columns: minmax(0, 1fr);
      }

      .system-health-heading,
      .settings-panel-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
      }

      .system-health-heading button,
      .settings-panel-heading .calendar-actions,
      #registrySourcesPanel .calendar-actions {
        width: 100%;
      }

      .system-health-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
        padding: 10px 0;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
      }

      .system-health-row-actions {
        justify-content: flex-start;
      }

      .workspace-tab-panel > .panel,
      .workspace-tab-panel > details,
      .workspace-tab-panel > section {
        min-width: 0;
      }
    }

    @media (max-width: 430px) {
      .home-side-signals,
      .main-workspace[data-workspace="operations"] .operations-action-grid {
        grid-template-columns: minmax(0, 1fr);
      }

      .clearance-action-grid button,
      .clearance-setup-fields .actions button {
        width: 100%;
      }
    }

    .clearance-stage-tabs {
      gap: 24px;
      padding: 0;
      border-bottom: 1px solid var(--line);
      scrollbar-width: none;
    }

    .clearance-stage-tabs::-webkit-scrollbar {
      display: none;
    }

    .clearance-stage-tabs button {
      width: auto;
      min-width: 0;
      min-height: 44px;
      padding: 8px 1px 10px;
      border: 0;
      border-bottom: 3px solid transparent;
      border-radius: 0;
      background: transparent;
      color: var(--muted);
      box-shadow: none;
      text-shadow: none;
    }

    .clearance-stage-tabs button:hover,
    .clearance-stage-tabs button.active {
      border-color: transparent;
      border-bottom-color: var(--accent);
      background: transparent;
      color: var(--ink);
      box-shadow: none;
      text-shadow: none;
    }

    .operations-action-grid,
    .system-health-grid {
      gap: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--white);
    }

    .operations-action,
    .system-health-stat {
      min-height: 104px;
      padding: 14px 16px;
      border: 0;
      border-left: 1px solid var(--line);
      border-radius: 0;
      box-shadow: none;
    }

    .operations-action:first-child,
    .system-health-stat:first-child {
      border-left: 0;
    }

    .operations-action:hover,
    .operations-action.active {
      border-color: var(--line);
      background: #f2faf8;
      box-shadow: inset 0 -3px 0 var(--accent);
    }

    .main-workspace[data-workspace="finance"] #budgetDashboardPanel {
      padding: 0;
      overflow: visible;
      border: 0;
      background: transparent;
      box-shadow: none;
    }

    .main-workspace[data-workspace="finance"] #budgetDashboardPanel > .workspace-tab-panel {
      min-width: 0;
    }

    .main-workspace[data-workspace="finance"] .workspace-masthead > .workspace-page-heading {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: start;
      gap: 16px;
      width: 100%;
    }

    .main-workspace[data-workspace="finance"] .workspace-masthead .calendar-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 7px;
      width: auto;
      max-width: 540px;
    }

    .main-workspace[data-workspace="finance"] .workspace-masthead .calendar-actions button {
      width: auto;
      min-width: 0;
      min-height: 38px;
      padding: 8px 11px;
      font-size: 12px;
    }

    @media (max-width: 760px) {
      .clearance-stage-tabs {
        position: sticky;
        top: 54px;
        z-index: 6;
        display: flex;
        grid-template-columns: none;
        gap: 22px;
        margin: 0 -14px 12px;
        padding: 0 14px;
        background: rgba(238, 243, 246, 0.97);
      }

      .clearance-stage-tabs button {
        width: auto;
        min-width: max-content;
        padding-inline: 1px;
      }

      .operations-action-grid,
      .system-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .main-workspace[data-workspace="operations"] .operations-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .main-workspace[data-workspace="finance"] .workspace-masthead > .workspace-page-heading {
        display: block;
      }

      .main-workspace[data-workspace="finance"] .workspace-masthead .calendar-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        width: 100%;
        max-width: none;
        margin-top: 14px;
      }

      .main-workspace[data-workspace="finance"] .workspace-masthead .calendar-actions button {
        width: 100%;
      }

      .main-workspace[data-workspace="finance"] .workspace-masthead .calendar-actions button:first-child:last-child,
      .main-workspace[data-workspace="finance"] .workspace-masthead .calendar-actions button:nth-child(3):last-child {
        grid-column: 1 / -1;
      }

      .operations-action:nth-child(odd),
      .system-health-stat:nth-child(odd) {
        border-left: 0;
      }

      .operations-action:nth-child(n + 3),
      .system-health-stat:nth-child(n + 3) {
        border-top: 1px solid var(--line);
      }
    }

    /* Interface consistency pass: shared command bars and calmer work surfaces. */
    .workspace-commandbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      min-height: 52px;
      margin: -5px 0 18px;
      padding: 7px 10px 8px 2px;
      border-bottom: 1px solid var(--line);
    }

    .workspace-commandbar-label {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .workspace-commandbar .calendar-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 7px;
      width: auto;
      margin: 0;
    }

    .workspace-commandbar .calendar-actions button {
      width: auto;
      min-width: 0;
      min-height: 38px;
      padding: 8px 11px;
      font-size: 12px;
    }

    .main-workspace[data-workspace="finance"] .workspace-masthead > .workspace-page-heading {
      display: block;
    }

    .main-workspace[data-workspace="finance"] .workspace-masthead .calendar-actions {
      margin: 0;
    }

    .brands-grid {
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
    }

    .brands-grid.single .brand-hub-card {
      grid-template-columns: minmax(230px, .8fr) minmax(360px, 1.2fr) auto;
      align-items: center;
      column-gap: 24px;
      row-gap: 9px;
    }

    .brands-grid.single .brand-hub-card-header,
    .brands-grid.single .brand-hub-offices {
      grid-column: 1;
    }

    .brands-grid.single .brand-hub-facts {
      grid-column: 2;
      grid-row: 1 / span 2;
    }

    .brands-grid.single .brand-hub-card > div:nth-child(4),
    .brands-grid.single .brand-hub-gaps {
      grid-column: 1 / span 2;
      min-height: 0;
    }

    .brands-grid.single .brand-hub-card .actions {
      grid-column: 3;
      grid-row: 1 / span 4;
      grid-template-columns: minmax(150px, auto) auto;
      align-self: center;
      justify-content: end;
    }

    .brands-grid.single .brand-hub-card .actions button {
      width: auto;
      white-space: nowrap;
    }

    #watchSettingsView {
      padding: 0;
      border: 0;
      background: transparent;
    }

    #watchSettingsView > .watch-section-stats {
      margin-bottom: 2px;
    }

    #watchSettingsView .watch-settings-nav {
      margin-bottom: 2px;
    }

    #watchWebView > .section-heading.compact {
      margin: 0 0 12px;
    }

    #watchWebView .radar-layout {
      grid-template-columns: minmax(310px, .72fr) minmax(0, 1.28fr);
      gap: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: var(--white);
    }

    #watchWebView .radar-intake,
    #watchWebView .radar-results {
      padding: 18px;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    #watchWebView .radar-results {
      border-left: 1px solid var(--line);
    }

    #watchWebView .radar-results-heading {
      margin: 0;
      padding: 0 0 14px;
      border-bottom: 1px solid var(--line);
    }

    #watchWebView .radar-auto-policy {
      margin: 0;
      padding: 12px 0;
      border-top: 0;
    }

    #watchWebView .radar-lookalike-review,
    #watchWebView .radar-review-outcomes {
      padding: 14px 0 0;
      border: 0;
      border-top: 1px solid var(--line);
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    #watchWebView .radar-lookalike-review .section-heading,
    #watchWebView .radar-review-outcomes .section-heading {
      margin: 0 0 10px;
      padding: 0;
      border: 0;
      background: transparent;
    }

    .clearance-flow-grid.setup-only {
      grid-template-columns: minmax(320px, 860px);
    }

    .clearance-flow-grid.setup-only .clearance-step {
      padding: 18px;
    }

    .finance-overview-panel .budget-feed > .empty {
      min-height: 150px;
      padding: 34px 20px;
      border: 1px solid var(--line);
      border-left: 4px solid var(--accent);
      border-radius: 7px;
      background: var(--white);
      text-align: left;
    }

    @media (max-width: 900px) {
      .brands-grid.single .brand-hub-card {
        grid-template-columns: minmax(0, 1fr);
      }

      .brands-grid.single .brand-hub-card-header,
      .brands-grid.single .brand-hub-offices,
      .brands-grid.single .brand-hub-facts,
      .brands-grid.single .brand-hub-card > div:nth-child(4),
      .brands-grid.single .brand-hub-gaps,
      .brands-grid.single .brand-hub-card .actions {
        grid-column: 1;
        grid-row: auto;
      }

      .brands-grid.single .brand-hub-card .actions {
        grid-template-columns: minmax(0, 1fr) auto;
      }

      #watchWebView .radar-layout {
        grid-template-columns: minmax(0, 1fr);
      }

      #watchWebView .radar-results {
        border-top: 1px solid var(--line);
        border-left: 0;
      }
    }

    @media (max-width: 760px) {
      .workspace-commandbar {
        align-items: stretch;
        margin: -4px -14px 14px;
        padding: 10px 14px 12px;
      }

      .workspace-commandbar-label {
        align-self: center;
      }

      .workspace-commandbar .calendar-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        flex: 1;
      }

      .workspace-commandbar .calendar-actions button {
        width: 100%;
        min-height: 42px;
      }

      #watchWebView .radar-intake,
      #watchWebView .radar-results {
        padding: 14px;
      }
    }

    @media (max-width: 520px) {
      .workspace-commandbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
      }

      .workspace-commandbar .calendar-actions {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        justify-items: stretch;
      }

      .brands-grid.single .brand-hub-card .actions {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    /* Interface consistency pass 3: compact records and predictable responsive actions. */
    .brands-grid.single .brand-hub-card,
    .card-dashboard.single .tm-card,
    .domain-health-row {
      box-shadow: none;
    }

    .brands-grid.single .brand-hub-facts {
      gap: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--white);
    }

    .brands-grid.single .brand-hub-facts > div {
      min-height: 58px;
      padding: 10px 12px;
      border: 0;
      border-left: 1px solid var(--line);
      border-radius: 0;
      background: transparent;
    }

    .brands-grid.single .brand-hub-facts > div:nth-child(odd) {
      border-left: 0;
    }

    .brands-grid.single .brand-hub-facts > div:nth-child(n + 3) {
      border-top: 1px solid var(--line);
    }

    .domain-health-row {
      min-height: 112px;
      padding: 14px 16px;
    }

    .domain-health-row .actions button,
    .brands-grid.single .brand-hub-card .actions button {
      min-height: 40px;
    }

    .system-health-row,
    .operations-attention-list > *,
    .home-priority-list > *,
    .activity-feed > * {
      transition: background-color 140ms ease;
    }

    .system-health-row:hover,
    .operations-attention-list > *:hover,
    .home-priority-list > *:hover,
    .activity-feed > *:hover {
      background: #f7fafb;
    }

    @media (max-width: 900px) {
      .brands-grid.single .brand-hub-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .brands-grid.single .brand-hub-card .actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .brands-grid.single .brand-hub-card .actions button {
        width: 100%;
      }
    }

    @media (max-width: 760px) {
      .home-readiness-heading {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
      }

      .home-readiness-score {
        margin: 0;
        text-align: right;
      }

      .home-readiness-score strong {
        font-size: 24px;
      }

      .home-readiness-steps {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .home-readiness-step {
        min-height: 62px;
        padding: 9px 12px;
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
      }

      .home-readiness-step:nth-child(even) {
        border-right: 0;
      }

      .home-readiness-step:last-child {
        grid-column: 1 / -1;
        border-right: 0;
        border-bottom: 0;
      }

      .home-readiness-step b {
        font-size: 12px;
        line-height: 1.25;
      }

      .home-readiness-footer {
        gap: 10px;
        padding: 11px 12px;
      }

      .home-readiness-footer .meta {
        line-height: 1.35;
      }

      .portfolio-simple-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      #portfolioRefreshAllButton {
        grid-column: 1 / -1;
      }

      .domain-health-row {
        min-height: 0;
        gap: 10px;
        padding: 13px 12px;
      }

      .domain-health-row .actions {
        grid-template-columns: minmax(0, 1fr);
      }

      .domain-health-row .actions button {
        width: 100%;
      }

      .system-health-row:hover,
      .operations-attention-list > *:hover,
      .home-priority-list > *:hover,
      .activity-feed > *:hover {
        background: transparent;
      }
    }

    @media (max-width: 520px) {
      .brands-grid.single .brand-hub-card .actions {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    /* Findings workflow: explain the signal before asking for a decision. */
    .watch-finding-row {
      grid-template-columns: 24px minmax(230px, 1.15fr) minmax(210px, 1fr) minmax(240px, .95fr);
      gap: 0;
      padding: 0 12px;
    }

    .watch-finding-row > input {
      margin: 17px 10px 0 0;
    }

    .watch-finding-change,
    .watch-finding-relevance,
    .watch-finding-next {
      display: grid;
      align-content: start;
      min-width: 0;
      gap: 5px;
      padding: 13px 16px;
      border-left: 1px solid var(--line);
    }

    .watch-finding-change {
      border-left: 0;
    }

    .watch-finding-column-label {
      color: var(--muted);
      font-size: 10px;
      font-weight: 800;
      line-height: 1.2;
      text-transform: uppercase;
    }

    .watch-finding-relevance > b {
      font-size: 13px;
      line-height: 1.35;
    }

    .watch-feedback-adjustment {
      display: grid;
      gap: 2px;
      margin-top: 3px;
      padding-left: 9px;
      border-left: 3px solid var(--line);
      color: var(--muted);
      font-size: 11px;
      line-height: 1.35;
    }

    .watch-feedback-adjustment.positive {
      border-left-color: var(--accent);
    }

    .watch-feedback-adjustment.negative {
      border-left-color: var(--warn);
    }

    .watch-feedback-adjustment b {
      color: var(--ink);
      font-size: 11px;
    }

    .watch-finding-next > span:not(.watch-finding-column-label) {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
    }

    .watch-finding-next .watch-finding-actions {
      justify-content: flex-start;
      margin-top: 5px;
    }

    .watch-finding-next .watch-finding-actions > * {
      min-height: 36px;
    }

    #competitorWatchPanel #watchFindingsStats {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    @media (max-width: 900px) {
      .watch-finding-row {
        grid-template-columns: 24px minmax(0, 1fr) minmax(220px, .85fr);
      }

      .watch-finding-relevance {
        grid-column: 2;
        border-top: 1px solid var(--line);
        border-left: 0;
      }

      .watch-finding-next {
        grid-column: 3;
        grid-row: 1 / span 2;
      }
    }

    @media (max-width: 760px) {
      .watch-finding-row {
        grid-template-columns: 24px minmax(0, 1fr);
        padding: 0;
      }

      .watch-finding-row > input {
        grid-column: 1;
        grid-row: 1;
        margin: 17px 8px 0 2px;
      }

      .watch-finding-change,
      .watch-finding-relevance,
      .watch-finding-next {
        grid-column: 2;
        grid-row: auto;
        padding: 12px 4px 12px 12px;
        border-top: 1px solid var(--line);
        border-left: 0;
      }

      .watch-finding-change {
        grid-row: 1;
        border-top: 0;
      }

      .watch-finding-relevance {
        grid-row: 2;
      }

      .watch-finding-next {
        grid-row: 3;
      }

      .watch-finding-next .watch-finding-column-label,
      .watch-finding-next > span:not(.watch-finding-column-label) {
        display: block;
        grid-column: 1 / -1;
      }

      .watch-finding-next .watch-finding-actions {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
      }

      .watch-finding-next .watch-finding-actions > * {
        width: 100%;
      }
    }

    @media (max-width: 900px) {
      #competitorWatchPanel #watchFindingsStats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    .watch-inline-triage {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 6px;
      margin-top: 5px;
    }

    .watch-inline-triage button {
      min-width: 0;
      min-height: 34px;
      white-space: normal;
    }

    .watch-inline-triage button.is-active {
      border-color: var(--accent);
      background: #e2f3ef;
      color: var(--accent-dark);
      box-shadow: inset 0 -2px 0 rgba(25, 92, 86, 0.18);
    }

    #watchPageMessage.watch-undo-message {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 48px;
      padding: 8px 10px 8px 14px;
      border-left: 4px solid var(--accent);
      background: #f2f8f7;
    }

    #watchPageMessage.watch-undo-message button {
      width: auto;
      min-width: 72px;
    }

    .watch-decision-history {
      display: grid;
    }

    .watch-decision-history > div {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 9px 0;
      border-bottom: 1px solid var(--line);
    }

    .watch-decision-history > div:last-child {
      border-bottom: 0;
    }

    .watch-decision-history span:first-child {
      display: grid;
      gap: 2px;
    }

    .watch-decision-history small {
      color: var(--muted);
      font-size: 11px;
    }

    @media (max-width: 760px) {
      .browser-evidence-preview { grid-template-columns: 1fr; }

      .watch-inline-triage {
        grid-column: 1 / -1;
      }

      .competitor-review-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px 14px;
      }

      #watchPageMessage.watch-undo-message {
        margin-bottom: 10px;
      }
    }

    /* Shared workspace presentation system. Keep structure here; workspace CSS owns only domain-specific content. */
    :root {
      --ui-space-1: 4px;
      --ui-space-2: 8px;
      --ui-space-3: 12px;
      --ui-space-4: 16px;
      --ui-space-5: 20px;
      --ui-space-6: 24px;
      --ui-space-8: 32px;
      --ui-radius: 6px;
      --ui-surface: #ffffff;
      --ui-surface-subtle: #f7f9fa;
      --ui-accent-soft: #edf8f6;
      --ui-shadow: 0 1px 2px rgba(18, 26, 34, 0.045);
    }

    .ui-workspace {
      display: grid;
      gap: var(--ui-space-5);
      min-width: 0;
    }

    .ui-workspace > * {
      min-width: 0;
    }

    .ui-masthead {
      margin: 0;
      padding: var(--ui-space-6) var(--ui-space-6) 0;
      border: 1px solid var(--line);
      border-top: 4px solid var(--accent);
      border-radius: var(--ui-radius);
      background: var(--ui-surface);
      box-shadow: var(--ui-shadow);
      overflow: hidden;
    }

    .ui-masthead h1,
    .ui-masthead .section-heading h2,
    #budgetDashboardPanel .ui-masthead .section-heading h2,
    .main-workspace[data-workspace="operations"] .ui-masthead .section-heading h2 {
      font-size: 27px;
      line-height: 1.15;
    }

    .ui-guidance,
    .ui-masthead .ui-guidance {
      margin: var(--ui-space-5) calc(var(--ui-space-6) * -1) 0;
      padding: var(--ui-space-3) var(--ui-space-6);
      border: 0;
      border-top: 1px solid #cfe3df;
      background: var(--ui-accent-soft);
    }

    .ui-guidance button {
      min-height: 38px;
    }

    .ui-metrics,
    #competitorWatchPanel .ui-metrics {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0;
      margin: 0;
      border: 1px solid var(--line);
      border-radius: var(--ui-radius);
      background: var(--ui-surface);
      box-shadow: var(--ui-shadow);
      overflow: hidden;
    }

    .ui-metrics > *,
    #competitorWatchPanel .ui-metrics > * {
      min-height: 82px;
      padding: var(--ui-space-4);
      border: 0;
      border-left: 1px solid var(--line);
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .ui-metrics > *:first-child,
    #competitorWatchPanel .ui-metrics > *:first-child {
      border-left: 0;
    }

    .ui-metrics b,
    .ui-metrics strong {
      font-size: 25px;
      line-height: 1.05;
    }

    .ui-metrics span {
      font-size: 13px;
      font-weight: 500;
    }

    .ui-toolbar {
      min-height: 54px;
      margin: 0;
      padding: var(--ui-space-2) 0;
      border: 0;
      border-bottom: 1px solid var(--line);
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .ui-toolbar label {
      margin: 0;
    }

    .ui-tabs {
      display: flex;
      align-items: flex-end;
      gap: var(--ui-space-6);
      min-width: 0;
      overflow-x: auto;
      scrollbar-width: none;
    }

    .ui-tabs::-webkit-scrollbar {
      display: none;
    }

    .ui-tabs button,
    .watch-view-toolbar .ui-tabs button,
    .domain-health-toolbar .ui-tabs button {
      min-height: 42px;
      padding: 8px 1px 9px;
      border: 0;
      border-bottom: 3px solid transparent;
      border-radius: 0;
      background: transparent;
      color: var(--muted);
      box-shadow: none;
      text-shadow: none;
    }

    .ui-tabs button:hover,
    .ui-tabs button.active,
    .ui-tabs button[aria-selected="true"],
    .watch-view-toolbar .ui-tabs button.active,
    .domain-health-toolbar .ui-tabs button.active {
      border-color: var(--accent);
      background: transparent;
      color: var(--ink);
      box-shadow: none;
      transform: none;
    }

    .ui-tab-panel,
    #watchProfilesView.ui-tab-panel,
    #watchFindingsView.ui-tab-panel,
    #watchRulesView.ui-tab-panel,
    #watchHistoryView.ui-tab-panel,
    #watchWebView.ui-tab-panel {
      gap: var(--ui-space-5);
      margin: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .ui-section {
      margin: 0;
      border: 1px solid var(--line);
      border-radius: var(--ui-radius);
      background: var(--ui-surface);
      box-shadow: var(--ui-shadow);
      overflow: hidden;
    }

    .ui-section > .section-heading:first-child,
    .ui-section > .operations-attention-header:first-child,
    .ui-section > .protection-queue-heading:first-child {
      margin: 0;
      padding: var(--ui-space-4) var(--ui-space-4) var(--ui-space-3);
      border-bottom: 1px solid var(--line);
      background: var(--ui-surface);
    }

    .ui-section > .section-heading:first-child h2,
    .ui-section > .section-heading:first-child h3,
    .ui-section > .section-heading:first-child h4,
    .ui-section > .operations-attention-header:first-child h3,
    .ui-section > .protection-queue-heading:first-child h3 {
      font-size: 17px;
      line-height: 1.3;
    }

    .ui-section > .section-heading:first-child p,
    .ui-section > .operations-attention-header:first-child p,
    .ui-section > .protection-queue-heading:first-child p {
      margin-top: 3px;
      font-size: 13px;
    }

    .ui-section .ui-section,
    .ui-section .panel,
    .ui-section .operations-attention {
      border-radius: 0;
      box-shadow: none;
    }

    .ui-workspace[data-workspace="brands"] .brands-records-section,
    .ui-workspace[data-workspace="brands"] .brand-pipeline {
      padding: 0 0 var(--ui-space-4);
    }

    .ui-workspace[data-workspace="portfolio"] > .section-heading {
      margin: 0;
      padding-bottom: var(--ui-space-3);
      border-bottom: 1px solid var(--line);
    }

    .ui-workspace[data-workspace="portfolio"] .portfolio-secondary-metrics {
      margin-top: calc(var(--ui-space-5) * -1);
      border-top: 0;
      border-radius: 0 0 var(--ui-radius) var(--ui-radius);
      background: var(--ui-surface-subtle);
    }

    .ui-workspace[data-workspace="attention"] .attention-dashboard,
    .ui-workspace[data-workspace="watch"] #competitorWatchPanel,
    .ui-workspace[data-workspace="domains"] #domainHealthPanel,
    .ui-workspace[data-workspace="brands"] #brandsWorkspacePanel {
      display: grid;
      gap: var(--ui-space-5);
      margin: 0;
    }

    @media (max-width: 900px) {
      .ui-metrics,
      #competitorWatchPanel .ui-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .ui-metrics > *:nth-child(odd),
      #competitorWatchPanel .ui-metrics > *:nth-child(odd) {
        border-left: 0;
      }

      .ui-metrics > *:nth-child(n + 3),
      #competitorWatchPanel .ui-metrics > *:nth-child(n + 3) {
        border-top: 1px solid var(--line);
      }
    }

    @media (max-width: 760px) {
      .ui-workspace {
        gap: var(--ui-space-4);
      }

      .ui-masthead {
        padding: var(--ui-space-4) var(--ui-space-4) 0;
      }

      .ui-masthead h1,
      .ui-masthead .section-heading h2,
      #budgetDashboardPanel .ui-masthead .section-heading h2,
      .main-workspace[data-workspace="operations"] .ui-masthead .section-heading h2 {
        font-size: 23px;
      }

      .ui-guidance,
      .ui-masthead .ui-guidance {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--ui-space-3);
        margin: var(--ui-space-4) calc(var(--ui-space-4) * -1) 0;
        padding: var(--ui-space-3) var(--ui-space-4) var(--ui-space-4);
      }

      .ui-guidance button {
        width: 100%;
      }

      .ui-toolbar,
      .watch-view-toolbar.ui-toolbar,
      .domain-health-toolbar.ui-toolbar {
        align-items: stretch;
        gap: var(--ui-space-3);
        padding-top: 0;
      }

      .ui-tabs {
        gap: var(--ui-space-5);
      }

      .ui-section > .section-heading:first-child,
      .ui-section > .operations-attention-header:first-child,
      .ui-section > .protection-queue-heading:first-child {
        align-items: flex-start;
        padding: var(--ui-space-3) var(--ui-space-3) 10px;
      }
    }

    /* Navigation and Watch audit: separate destinations from commands. */
    @media (min-width: 761px) {
      .tenant-bar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: 58px;
        gap: 12px;
        padding: 0 14px;
      }

      .app-brand-group {
        grid-column: 1;
        grid-row: 1;
      }

      .tenant-actions {
        grid-column: 3;
        grid-row: 1;
      }

      .workspace-nav {
        grid-column: 2;
        grid-row: 1;
        align-self: stretch;
        justify-self: stretch;
        justify-content: center;
        gap: clamp(8px, 1.25vw, 20px);
        width: 100%;
        padding: 0;
        border: 0;
      }

      .workspace-nav button,
      .workspace-nav .workspace-home-button {
        min-height: 58px;
        padding: 9px 1px 10px !important;
        border: 0;
        border-bottom: 3px solid transparent;
        border-radius: 0;
      }

      .workspace-nav button:hover {
        border-bottom-color: #a8d2cd;
        background: transparent;
        color: var(--accent-dark);
        box-shadow: none;
      }

      .workspace-nav button.active,
      .workspace-nav button[aria-current="page"] {
        border-color: var(--accent);
        background: transparent;
        color: var(--ink);
        box-shadow: none;
      }

      .global-add-panel,
      .account-panel {
        top: calc(100% + 16px);
      }
    }

    @media (min-width: 761px) and (max-width: 1180px) {
      .workspace-nav [data-workspace-button="brands"],
      .workspace-nav [data-workspace-button="domains"] {
        display: none;
      }

      .workspace-more-overflow {
        display: grid !important;
      }

      .workspace-more-overflow [data-workspace-button="portfolio"] {
        display: none;
      }

      .workspace-more-overflow [data-workspace-button="domains"] {
        display: flex !important;
      }

      .header-tools-button {
        width: 36px;
        min-width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
      }

      .header-tools-button > span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }
    }

    .workspace-more-panel,
    .workspace-tools-panel,
    .global-add-panel,
    .account-panel {
      border-radius: 7px;
      box-shadow: 0 16px 36px rgba(18, 26, 34, 0.16);
    }

    .workspace-more-panel {
      width: 230px;
      padding: 7px 0;
      gap: 0;
    }

    .workspace-more-group {
      display: grid;
      gap: 2px;
      padding: 6px 7px;
      border-top: 1px solid var(--line);
    }

    .workspace-more-group:first-child,
    .workspace-more-overflow + .workspace-more-group {
      border-top: 0;
    }

    .workspace-more-overflow {
      display: none;
    }

    .workspace-menu-label,
    .workspace-menu-heading > span {
      display: block;
      padding: 2px 10px 5px;
      color: var(--muted);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0;
      text-transform: uppercase;
    }

    .workspace-more-panel button,
    .workspace-tools-panel button,
    .global-add-panel button,
    .account-panel button {
      min-height: 40px;
      gap: 9px;
      border: 0;
      border-radius: 5px;
      background: transparent;
      box-shadow: none;
      text-shadow: none;
    }

    .workspace-more-panel button.active {
      background: #e4f4f1;
      color: var(--accent-dark);
    }

    .workspace-menu-heading {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 8px;
      margin: -1px -1px 5px;
      padding: 3px 1px 8px;
      border-bottom: 1px solid var(--line);
    }

    .workspace-menu-heading > span {
      padding-bottom: 0;
    }

    .workspace-menu-heading small {
      padding-right: 8px;
      color: var(--muted);
      font-size: 11px;
    }

    #competitorWatchPanel .watch-view-toolbar.ui-toolbar {
      min-height: 52px;
      margin-bottom: 0;
    }

    #watchProfilesView,
    #watchFindingsView,
    #watchSettingsView {
      gap: var(--ui-space-5);
      padding: 0;
      border: 0;
      background: transparent;
    }

    #watchProfilesView > .competitor-profiles,
    #watchFindingsView > #competitorFindingsSection,
    #watchSettingsView > .watch-settings-panel {
      border-radius: var(--ui-radius);
    }

    #watchProfilesView .competitor-profile-grid,
    #watchFindingsView .watch-finding-groups,
    #watchSettingsView .watch-settings-index {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--ui-radius);
      background: var(--white);
      box-shadow: var(--ui-shadow);
    }

    #watchProfilesView .competitor-profile-grid,
    #watchSettingsView .watch-settings-index {
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    #watchHealthInsightsView > .watch-health-insights-intro,
    #watchSettingsView > .watch-settings-intro {
      padding: 0 0 var(--ui-space-3);
      background: transparent;
    }

    @media (max-width: 760px) {
      .global-add-panel,
      .account-panel {
        top: calc(100% + 8px);
      }

      .workspace-more-panel {
        position: fixed;
        right: 10px !important;
        bottom: calc(72px + env(safe-area-inset-bottom));
        left: 10px !important;
        top: auto !important;
        width: auto;
        max-height: min(68vh, 520px);
        overflow-y: auto;
        padding: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 8px;
        border-radius: 8px;
      }

      .workspace-more-overflow {
        display: grid !important;
      }

      .workspace-more-group,
      .workspace-more-overflow + .workspace-more-group {
        align-content: start;
        padding: 7px 0;
        border-top: 0;
      }

      .workspace-more-group:last-child {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-top: 1px solid var(--line);
      }

      .workspace-more-group:last-child .workspace-menu-label {
        grid-column: 1 / -1;
      }

      .workspace-more-overflow [data-workspace-button="brands"] {
        display: none;
      }

      .workspace-more-panel button {
        min-height: 46px;
      }

      #competitorWatchPanel .watch-view-toolbar.ui-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 0 0 10px;
      }

      #competitorWatchPanel .watch-view-tabs {
        gap: 20px;
        margin-inline: -14px;
        padding-inline: 14px;
      }

      #competitorWatchPanel .watch-view-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        padding: 0;
      }

      #competitorWatchPanel .watch-view-actions button {
        width: 100%;
        min-width: 0;
      }

      #watchProfilesView .competitor-profile-grid,
      #watchFindingsView .watch-finding-groups,
      #watchSettingsView .watch-settings-index {
        margin-inline: 0;
        border-radius: 6px;
      }

      .watch-settings-nav {
        gap: 20px;
        overflow-x: auto;
        scrollbar-width: none;
      }

      .watch-settings-nav::-webkit-scrollbar {
        display: none;
      }

      .watch-settings-nav button {
        flex: 0 0 auto;
        white-space: nowrap;
      }
    }

    /* Focused hierarchy pass: Watch matching, integrations, and Attention actions. */
    .watch-matching-panel {
      gap: 14px !important;
    }

    #watchSettingsView,
    #watchSettingsView > * {
      min-width: 0;
      max-width: 100%;
    }

    .watch-rules-section {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: var(--white);
    }

    .watch-rules-section > .section-heading {
      margin: 0;
      padding: 14px 16px;
      border-bottom: 1px solid var(--line);
    }

    .watch-rules-section .watch-rule-toolbar {
      margin: 0;
      padding: 10px 14px;
      border-bottom: 1px solid var(--line);
      background: var(--white);
    }

    #watchRulesView .watch-rules-section .watch-empty-state {
      margin: 0;
      padding: 16px;
      border-top: 0;
    }

    #watchRuleGrid.watch-rule-grid,
    #watchRuleTemplateGrid.watch-rule-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
    }

    #watchRuleGrid .watch-rule-card,
    #watchRuleTemplateGrid .watch-rule-card {
      grid-template-columns: minmax(112px, .35fr) minmax(200px, .8fr) minmax(260px, 1fr) auto;
      align-items: center;
      gap: 14px;
      padding: 12px 14px;
      border: 0;
      border-bottom: 1px solid var(--line);
      border-radius: 0;
      background: var(--white);
    }

    #watchRuleGrid .watch-rule-card:last-child,
    #watchRuleTemplateGrid .watch-rule-card:last-child {
      border-bottom: 0;
    }

    #watchRuleGrid .watch-rule-card.disabled,
    #watchRuleGrid .watch-rule-card.removed,
    #watchRuleTemplateGrid .watch-rule-card.disabled {
      background: #fafbfc;
    }

    #watchRuleGrid .watch-rule-card > div:nth-child(2),
    #watchRuleTemplateGrid .watch-rule-card > div:nth-child(2) {
      display: grid;
      gap: 2px;
      min-width: 0;
    }

    #watchRuleGrid .watch-rule-card-meta,
    #watchRuleTemplateGrid .watch-rule-card-meta {
      font-size: 12px;
    }

    #watchRuleGrid .watch-rule-card-actions,
    #watchRuleTemplateGrid .watch-rule-card-actions {
      flex-wrap: nowrap;
      justify-content: flex-end;
    }

    #watchRuleGrid .watch-rule-card-actions .action-tertiary,
    #watchRuleTemplateGrid .watch-rule-card-actions .action-tertiary {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }

    #watchRuleGrid .watch-rule-edit,
    #watchRuleGrid .watch-rule-samples {
      grid-column: 1 / -1;
    }

    .watch-feedback-suggestions,
    .watch-template-section {
      display: block;
      padding: 0;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: var(--white);
    }

    .watch-feedback-suggestions > summary,
    .watch-template-section > summary {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
      padding: 13px 16px;
      cursor: pointer;
      list-style: none;
    }

    .watch-feedback-suggestions > summary::-webkit-details-marker,
    .watch-template-section > summary::-webkit-details-marker {
      display: none;
    }

    .watch-feedback-suggestions > summary::after,
    .watch-template-section > summary::after {
      content: "+";
      color: var(--muted);
      font-size: 20px;
      font-weight: 500;
    }

    .watch-feedback-suggestions[open] > summary::after,
    .watch-template-section[open] > summary::after {
      content: "-";
    }

    .watch-feedback-suggestions > summary h3,
    .watch-template-section > summary h3,
    .watch-feedback-suggestions > summary p,
    .watch-template-section > summary p {
      margin: 0;
    }

    .watch-feedback-suggestions > summary p,
    .watch-template-section > summary p {
      margin-top: 3px;
      color: var(--muted);
      font-size: 13px;
    }

    .watch-feedback-suggestion-list,
    #watchRuleTemplateGrid {
      border-top: 1px solid var(--line);
    }

    .watch-feedback-suggestion {
      padding-inline: 16px;
    }

    .watch-rule-menu .watch-card-menu-panel {
      width: 170px;
    }

    .watch-integration-nav {
      display: flex;
      align-items: center;
      gap: 22px;
      overflow-x: auto;
      border-bottom: 1px solid var(--line);
      scrollbar-width: none;
    }

    .watch-integration-nav::-webkit-scrollbar {
      display: none;
    }

    .watch-integration-nav button {
      flex: 0 0 auto;
      width: auto;
      min-height: 40px;
      padding: 7px 1px 9px;
      border: 0;
      border-bottom: 3px solid transparent;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      color: var(--muted);
      text-shadow: none;
      white-space: nowrap;
    }

    .watch-integration-nav button:hover,
    .watch-integration-nav button.active {
      border-bottom-color: var(--accent);
      background: transparent;
      color: var(--ink);
      box-shadow: none;
      transform: none;
    }

    .watch-integration-panel {
      margin: 0;
    }

    #watchWebView > .watch-integration-panel > .radar-layout {
      margin-top: 0;
    }

    #watchWebView > .radar-alert-history,
    #watchWebView > .wanted-domain-section {
      padding: 0;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: var(--white);
    }

    #watchWebView > .radar-alert-history > .section-heading,
    #watchWebView > .wanted-domain-section > .section-heading {
      margin: 0;
      padding: 14px 16px;
      border-bottom: 1px solid var(--line);
    }

    #watchWebView > .radar-alert-history > :not(.section-heading),
    #watchWebView > .wanted-domain-section > :not(.section-heading) {
      margin-inline: 16px;
    }

    .protection-queue-head {
      grid-template-columns: minmax(250px, 1.45fr) minmax(150px, .8fr) 86px minmax(125px, .65fr) 132px;
    }

    .protection-queue-row {
      grid-template-columns: minmax(0, 1fr) 132px;
    }

    .protection-queue-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 4px;
    }

    .protection-queue-actions .protection-queue-primary-action {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      width: auto;
      min-width: 0;
      height: auto;
      min-height: 36px;
      padding: 7px 9px;
      color: var(--accent-dark);
    }

    .protection-queue-actions .protection-queue-primary-action.is-running .ui-icon {
      animation: protection-queue-spin .9s linear infinite;
    }

    .protection-queue-live-state {
      display: block;
      margin-top: 4px;
      color: var(--accent-dark);
      font-weight: 600;
    }

    .protection-queue-live-state.blocked,
    .protection-queue-live-state.error {
      color: var(--danger);
    }

    .protection-queue-row.recovery-running {
      background: var(--accent-soft);
    }

    @keyframes protection-queue-spin {
      to { transform: rotate(360deg); }
    }

    .protection-queue-menu .watch-card-menu-panel {
      width: 164px;
    }

    .protection-queue-actions .watch-card-menu-panel button {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 8px;
      width: 100%;
      min-width: 0;
      height: auto;
      min-height: 36px;
      padding: 8px 9px;
    }

    @media (max-width: 820px) {
      .protection-queue-heading { align-items: stretch; flex-direction: column; }
      .protection-queue-heading-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .protection-queue-heading-actions button { width: 100%; min-width: 0; }
      .protection-queue-toolbar { grid-template-columns: minmax(0, 1fr); padding: 10px; }
      .protection-queue-head { display: none; }
      .protection-queue-row { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 12px; }
      .protection-queue-main { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; }
      .protection-queue-signal { grid-column: 1 / -1; }
      .protection-queue-main > span:nth-child(4) { grid-column: 1; }
      .protection-queue-actions { justify-content: flex-start; padding-top: 8px; border-top: 1px solid var(--line); }
    }

    @media (max-width: 900px) {
      #watchRuleGrid .watch-rule-card,
      #watchRuleTemplateGrid .watch-rule-card {
        grid-template-columns: minmax(100px, .35fr) minmax(180px, .8fr) minmax(220px, 1fr) auto;
        gap: 10px;
      }
    }

    @media (max-width: 760px) {
      .watch-rules-section .watch-rule-toolbar {
        grid-template-columns: minmax(0, 1fr);
      }

      #watchRuleGrid .watch-rule-card,
      #watchRuleTemplateGrid .watch-rule-card {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 12px;
        padding: 13px 12px;
      }

      #watchRuleGrid .watch-rule-card-header,
      #watchRuleTemplateGrid .watch-rule-card-header,
      #watchRuleGrid .watch-rule-card > div:nth-child(2),
      #watchRuleTemplateGrid .watch-rule-card > div:nth-child(2),
      #watchRuleGrid .watch-rule-card-meta,
      #watchRuleTemplateGrid .watch-rule-card-meta {
        grid-column: 1 / -1;
      }

      #watchRuleGrid .watch-rule-card-actions,
      #watchRuleTemplateGrid .watch-rule-card-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 8px;
        border-top: 1px solid var(--line);
      }

      .watch-feedback-suggestion {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
      }

      .watch-feedback-suggestion-actions {
        display: flex;
      }

      .watch-integration-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
      }

      .watch-integration-nav button {
        min-width: 0;
        font-size: 12px;
        white-space: normal;
      }

      #watchSettingsView .watch-settings-nav {
        gap: 14px;
      }

      #watchSettingsView .watch-settings-nav button {
        font-size: 13px;
      }

      #watchWebView .radar-layout {
        border-radius: 6px;
      }

      .protection-queue-actions {
        justify-content: flex-start;
      }

      .protection-queue-actions .protection-queue-primary-action,
      .protection-queue-actions .action-icon {
        min-height: 44px;
      }

      .protection-queue-actions .protection-queue-primary-action {
        width: auto;
        height: auto;
      }

      .protection-queue-actions .action-icon {
        width: 44px;
        min-width: 44px;
        height: 44px;
      }

      .protection-queue-actions .watch-card-menu-panel button {
        min-height: 44px !important;
      }
    }

    /* Watch settings: contained Scan and Alerts indexes. */
    .watch-settings-index-section {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: var(--white);
    }

    #watchSettingsView .watch-settings-index-section > .section-heading {
      margin: 0;
      padding: 14px 16px;
      border-bottom: 1px solid var(--line);
    }

    #watchSettingsView .watch-settings-index-section .watch-settings-index {
      overflow: visible;
      border: 0;
      border-radius: 0;
      box-shadow: none;
    }

    .watch-settings-note {
      max-width: 220px;
      padding-left: 12px;
      border-left: 3px solid var(--accent);
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      line-height: 1.35;
    }

    .watch-settings-index-section .watch-settings-index-heading {
      padding-inline: 14px;
      background: #f8fafb;
    }

    .watch-settings-index-section .watch-settings-row {
      padding: 12px 14px;
    }

    .watch-settings-index-section .watch-settings-row > div {
      overflow-wrap: anywhere;
    }

    .watch-settings-cell-label {
      display: none;
      color: var(--muted);
      font-size: 10px;
      font-weight: 700;
      line-height: 1.2;
      text-transform: uppercase;
    }

    .watch-settings-index-section .watch-settings-edit {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-height: 36px;
    }

    .watch-settings-index-section .watch-settings-edit svg {
      width: 15px;
      height: 15px;
    }

    @media (max-width: 1100px) {
      .watch-settings-index-section .watch-settings-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .watch-settings-cell-label {
        display: block;
        margin-bottom: 2px;
      }

      .watch-settings-index-section .watch-settings-row > button {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: end;
      }
    }

    @media (max-width: 760px) {
      #watchSettingsView .watch-settings-index-section > .section-heading {
        gap: 10px;
        padding: 14px;
      }

      .watch-settings-schedule,
      .watch-settings-note {
        width: 100%;
        max-width: none;
        padding: 7px 0 7px 10px;
      }

      .watch-settings-index-section .watch-settings-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 12px;
        padding: 14px;
      }

      .watch-settings-index-section .watch-settings-identity,
      .watch-settings-index-section .watch-settings-row > div:nth-child(4),
      .watch-settings-index-section .watch-settings-edit {
        grid-column: 1 / -1;
      }

      .watch-settings-index-section .watch-settings-row > div:nth-child(n+2) {
        margin-top: 12px;
        padding-top: 12px;
      }

      .watch-settings-cell-label {
        display: block;
        margin-bottom: 2px;
      }

      .watch-settings-index-section .watch-settings-edit {
        width: 100%;
        min-height: 44px;
        margin-top: 14px;
      }
    }
    .correlation-review-modal { position: fixed; inset: 5vh max(20px, calc((100vw - 1180px) / 2)); z-index: 112; display: none; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 70px rgba(25, 38, 45, .24); }
    .correlation-review-modal.open { display: grid; }
    .correlation-review-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 28px 20px; border-bottom: 1px solid var(--line); }
    .correlation-review-header h2 { margin: 2px 0 6px; }
    .correlation-review-header p:last-child { margin: 0; color: var(--muted); }
    .correlation-review-body { min-height: 0; overflow: auto; padding: 22px 28px 28px; }
    .correlation-review-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
    .correlation-review-stat { padding: 14px 18px; border-right: 1px solid var(--line); }
    .correlation-review-stat:last-child { border-right: 0; }
    .correlation-review-stat b { display: block; font-size: 1.4rem; }
    .correlation-review-stat span { color: var(--muted); font-size: .85rem; }
    .correlation-review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 12px; }
    .correlation-review-list { border-top: 1px solid var(--line); }
    .correlation-review-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
    .correlation-review-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .correlation-review-title h3 { margin: 0; font-size: 1.05rem; }
    .correlation-review-meta { margin: 6px 0 10px; color: var(--muted); font-size: .86rem; }
    .correlation-review-rationale { margin: 0; line-height: 1.55; }
    .correlation-review-calibration { margin-top: 10px; color: var(--muted); font-size: .83rem; }
    .correlation-review-evidence { margin-top: 14px; }
    .correlation-review-evidence summary { cursor: pointer; color: var(--accent-strong); font-weight: 700; }
    .correlation-review-event { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
    .correlation-review-event:last-child { border-bottom: 0; }
    .correlation-review-event time, .correlation-review-event small { color: var(--muted); }
    .correlation-review-event b, .correlation-review-event span { display: block; }
    .correlation-review-decision { align-self: start; border-left: 2px solid var(--accent); padding-left: 20px; }
    .correlation-review-decision label { display: grid; gap: 7px; font-weight: 700; }
    .correlation-review-decision textarea { min-height: 82px; resize: vertical; }
    .correlation-review-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
    .correlation-review-empty { padding: 36px 0; color: var(--muted); }

    @media (max-width: 720px) {
      .correlation-review-modal { inset: 10px; }
      .correlation-review-header, .correlation-review-body { padding-inline: 18px; }
      .correlation-review-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .correlation-review-stat:nth-child(2) { border-right: 0; }
      .correlation-review-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
      .correlation-review-row { grid-template-columns: 1fr; gap: 16px; }
      .correlation-review-decision { border-left: 0; border-top: 2px solid var(--accent); padding: 16px 0 0; }
      .correlation-review-event { grid-template-columns: 1fr; gap: 3px; }
      .correlation-review-toolbar { align-items: flex-start; }
      .radar-capability-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
      .radar-capability-row { grid-template-columns: minmax(0, 1fr); gap: 7px; padding-block: 12px; }
      .radar-capability-state { padding-left: 18px; }
      .radar-capability-row > .meta { padding-left: 18px; }
    }

    .commercial-readiness { margin-bottom: 28px; }
    .commercial-readiness-heading { align-items: center; }
    .commercial-readiness-shell { display: grid; gap: 0; padding: 0; overflow: hidden; }
    .commercial-readiness-summary { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(220px, .8fr) minmax(180px, .6fr); align-items: stretch; }
    .commercial-readiness-summary > div { display: grid; align-content: start; gap: 4px; padding: 22px 24px; border-left: 1px solid var(--line); }
    .commercial-readiness-summary > div:first-child { border-left: 0; }
    .commercial-readiness-summary h3 { display: flex; align-items: center; gap: 10px; margin: 4px 0 3px; font-size: 1.45rem; text-transform: capitalize; }
    .commercial-readiness-summary p { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.45; }
    .commercial-plan-fact span, .commercial-plan-fact small { color: var(--muted); font-size: .8rem; }
    .commercial-plan-fact b { margin-top: 2px; font-size: .98rem; line-height: 1.35; }
    .commercial-usage-section, .commercial-capabilities { display: grid; gap: 16px; padding: 22px 24px; border-top: 1px solid var(--line); }
    .commercial-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
    .commercial-section-heading h3 { margin: 0 0 3px; font-size: 1rem; }
    .commercial-section-heading p { margin: 0; color: var(--muted); font-size: .85rem; }
    .commercial-section-heading > span { color: var(--muted); font-size: .78rem; white-space: nowrap; }
    .commercial-usage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .commercial-usage-card { display: grid; align-content: start; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
    .commercial-usage-card h4 { margin: 0; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
    .commercial-usage-row { display: grid; gap: 7px; }
    .commercial-usage-row + .commercial-usage-row { padding-top: 12px; border-top: 1px solid var(--line); }
    .commercial-usage-row > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
    .commercial-usage-row span, .commercial-usage-row small { color: var(--muted); font-size: .78rem; }
    .commercial-usage-row b { color: var(--ink); font-size: .9rem; white-space: nowrap; }
    .commercial-usage-track { height: 5px; overflow: hidden; border-radius: 999px; background: var(--panel); }
    .commercial-usage-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
    .commercial-usage-row.at-limit .commercial-usage-track i { background: var(--warn); }
    .commercial-entitlements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 22px; margin: 0; padding: 0; list-style: none; }
    .commercial-entitlements li { position: relative; padding-left: 22px; color: var(--ink); font-size: .88rem; line-height: 1.4; }
    .commercial-entitlements li::before { position: absolute; left: 0; top: .05em; content: "✓"; color: var(--accent); font-weight: 850; }
    .commercial-plan-details { border-top: 1px solid var(--line); }
    .commercial-plan-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 24px; cursor: pointer; list-style: none; }
    .commercial-plan-details > summary::-webkit-details-marker { display: none; }
    .commercial-plan-details > summary > span:first-child { display: grid; gap: 2px; }
    .commercial-plan-details > summary small, .commercial-plan-details > summary > span:last-child { color: var(--muted); font-size: .78rem; }
    .commercial-plan-details > summary > span:last-child::after { display: inline-block; margin-left: 7px; content: "›"; transform: rotate(90deg); transition: transform .15s ease; }
    .commercial-plan-details[open] > summary > span:last-child::after { transform: rotate(-90deg); }
    .commercial-plan-details-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 1.2fr); gap: 24px; padding: 0 24px 22px; }
    .commercial-billing-state { align-self: start; padding: 15px 17px; border-left: 3px solid var(--accent); background: var(--panel); }
    .commercial-billing-state p { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
    .commercial-plan-metadata { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
    .commercial-plan-metadata > div { display: grid; align-content: center; gap: 4px; padding: 13px 14px; border-left: 1px solid var(--line); }
    .commercial-plan-metadata > div:first-child { border-left: 0; }
    .commercial-plan-metadata span { color: var(--muted); font-size: .72rem; }
    .commercial-plan-metadata b { font-size: .83rem; text-transform: capitalize; }

    @media (max-width: 1050px) {
      .commercial-readiness-summary { grid-template-columns: minmax(0, 1.2fr) minmax(200px, .8fr); }
      .commercial-readiness-summary > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
      .commercial-usage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .commercial-plan-details-body { grid-template-columns: 1fr; }
    }

    @media (max-width: 720px) {
      .commercial-readiness-heading { align-items: flex-start; flex-direction: column; }
      .commercial-readiness-heading button { width: 100%; }
      .commercial-readiness-summary, .commercial-usage-grid, .commercial-entitlements, .commercial-plan-metadata { grid-template-columns: 1fr; }
      .commercial-readiness-summary > div, .commercial-readiness-summary > div:first-child { grid-column: auto; border-top: 1px solid var(--line); border-left: 0; padding: 18px; }
      .commercial-readiness-summary > div:first-child { border-top: 0; }
      .commercial-usage-section, .commercial-capabilities { padding: 18px; }
      .commercial-section-heading { flex-direction: column; gap: 5px; }
      .commercial-plan-details > summary { align-items: flex-start; padding: 17px 18px; }
      .commercial-plan-details-body { padding: 0 18px 18px; }
      .commercial-plan-metadata > div { border-top: 1px solid var(--line); border-left: 0; }
      .commercial-plan-metadata > div:first-child { border-top: 0; }
    }

    .counsel-portal-admin { display: grid; gap: 16px; margin-bottom: 28px; }
    .counsel-portal-admin > .section-heading { margin-bottom: 0; }
    .counsel-portal-admin > .panel { margin-bottom: 0; }
    .counsel-portal-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; overflow: hidden; background: var(--panel); }
    .counsel-portal-overview > div { display: grid; gap: 3px; padding: 16px 20px; border-left: 1px solid var(--line); }
    .counsel-portal-overview > div:first-child { border-left: 0; }
    .counsel-portal-overview span { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
    .counsel-portal-overview b { font-size: 1.3rem; }
    .counsel-portal-create { display: grid; gap: 18px; padding: 24px; }
    .counsel-portal-create-disclosure { padding: 0; overflow: hidden; }
    .counsel-portal-create-disclosure > summary, .counsel-portal-audit > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; cursor: pointer; list-style: none; }
    .counsel-portal-create-disclosure > summary::-webkit-details-marker, .counsel-portal-audit > summary::-webkit-details-marker { display: none; }
    .counsel-portal-create-disclosure > summary span:first-child, .counsel-portal-audit > summary span:first-child { display: grid; gap: 3px; }
    .counsel-portal-create-disclosure > summary small, .counsel-portal-audit > summary small { color: var(--muted); }
    .counsel-portal-create-disclosure > summary span:last-child, .counsel-portal-audit > summary span:last-child { color: var(--accent); font-size: .76rem; font-weight: 800; }
    .counsel-portal-create-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
    .counsel-portal-create-disclosure[open] > summary span:last-child { transform: rotate(45deg); }
    .counsel-portal-create-body { display: grid; gap: 18px; padding: 22px; }
    .counsel-portal-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .counsel-portal-form-grid label, .counsel-portal-message-status { display: grid; gap: 7px; font-weight: 700; }
    .counsel-portal-sections { display: flex; gap: 12px 22px; flex-wrap: wrap; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; }
    .counsel-portal-sections legend { padding-inline: 5px; font-weight: 700; }
    .counsel-portal-sections label, .counsel-portal-download-control { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; }
    .counsel-portal-create-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
    .counsel-portal-item-selection { display: grid; gap: 12px; }
    .counsel-portal-item-selection > b { display: block; }
    .counsel-portal-item-selection fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
    .counsel-portal-item-selection legend { padding-inline: 5px; font-weight: 700; }
    .counsel-portal-item-selection label { display: flex; align-items: flex-start; gap: 7px; min-width: 0; }
    .counsel-portal-item-selection label span { overflow-wrap: anywhere; }
    .counsel-portal-download-control { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
    .counsel-portal-admin-section { padding: 20px 22px; }
    .counsel-portal-admin-section > div:first-child h3 { margin: 0 0 4px; }
    .counsel-portal-admin-section > div:first-child { margin-bottom: 12px; }
    .counsel-portal-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
    .counsel-portal-row-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 5px; }
    .counsel-portal-row .meta { display: block; margin-top: 3px; }
    .counsel-portal-row p { margin: 9px 0 0; line-height: 1.5; white-space: pre-wrap; }
    .counsel-portal-row-actions { align-self: center; }
    .counsel-portal-message-status { align-self: center; min-width: 155px; font-size: .8rem; }
    .counsel-portal-audit { padding: 0; overflow: hidden; }
    .counsel-portal-audit > summary { font-weight: 750; }
    .counsel-portal-audit > div { padding: 0 20px 18px; }
    .counsel-portal-audit-row { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
    .counsel-portal-audit-row > span { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--accent); }
    .counsel-portal-audit-row b { display: block; text-transform: capitalize; }
    .counsel-portal-audit-row small { display: block; margin-top: 3px; color: var(--muted); }

    @media (max-width: 720px) {
      .counsel-portal-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .counsel-portal-overview > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
      .counsel-portal-overview > div:nth-child(4) { border-top: 1px solid var(--line); }
      .counsel-portal-form-grid { grid-template-columns: 1fr; }
      .counsel-portal-create-actions, .counsel-portal-row { align-items: stretch; grid-template-columns: 1fr; flex-direction: column; }
      .counsel-portal-create-actions button, .counsel-portal-row-actions button { width: 100%; }
      .counsel-portal-message-status { width: 100%; }
      .counsel-portal-item-selection fieldset { grid-template-columns: 1fr; }
    }

    .registry-coverage { display: grid; gap: 12px; margin-bottom: 28px; }
    .registry-coverage-heading { align-items: center; }
    .registry-coverage-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
    .registry-coverage-actions > button { width: auto; min-width: 150px; }
    .registry-coverage-actions > button:first-child { order: -2; }
    .registry-coverage-actions > button:nth-child(2) { order: -1; }
    .registry-coverage-report-tools { position: relative; }
    .registry-coverage-report-tools > summary { min-height: 42px; display: inline-flex; align-items: center; padding: 10px 13px; border: 1px solid var(--button-edge); border-radius: 8px; background: linear-gradient(#edf4f7, var(--button-face)); color: var(--ink); cursor: pointer; font-weight: 800; list-style: none; box-shadow: var(--control-shadow); }
    .registry-coverage-report-tools > summary::-webkit-details-marker { display: none; }
    .registry-coverage-report-tools > div { position: absolute; z-index: 8; top: calc(100% + 6px); right: 0; width: 190px; display: grid; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 12px 28px rgba(18, 26, 34, .16); }
    .registry-coverage-report-tools button { width: 100%; }
    .registry-coverage > .note { margin: 0; border-left: 4px solid var(--accent); }
    .cipo-data-coverage { display: grid; gap: 16px; margin: 0; padding: 20px; overflow: hidden; }
    .cipo-data-coverage-heading, .cipo-data-coverage-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
    .cipo-data-coverage-heading h3, .cipo-data-coverage-heading p { margin: 0; }
    .cipo-data-coverage-heading h3 { margin-top: 3px; font-size: 1.08rem; }
    .cipo-data-coverage-heading .eyebrow { color: var(--accent); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
    .cipo-data-coverage-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
    .cipo-data-coverage-stats > div { display: grid; gap: 4px; padding: 14px; border-left: 1px solid var(--line); }
    .cipo-data-coverage-stats > div:first-child { border-left: 0; }
    .cipo-data-coverage-stats span, .cipo-data-coverage-stats small, .cipo-data-coverage-health small { color: var(--muted); font-size: .72rem; }
    .cipo-data-coverage-stats b { font-size: .95rem; }
    .cipo-data-coverage-progress { height: 8px; overflow: hidden; border-radius: 999px; background: var(--line); }
    .cipo-data-coverage-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s ease; }
    .cipo-search-quality { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 14px 16px; border: 1px solid #b9ddd7; border-radius: 8px; background: #f2faf8; }
    .cipo-search-quality.issue { border-color: #efc5be; background: #fff7f5; }
    .cipo-search-quality-score { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 8px; }
    .cipo-search-quality-score > span:first-child { grid-column: 1 / -1; color: var(--muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; }
    .cipo-search-quality-score b { font-size: 1.65rem; }
    .cipo-search-quality-score b small { color: var(--muted); font-size: .72rem; font-weight: 600; }
    .cipo-search-quality-checks { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
    .cipo-search-quality-checks > span { color: var(--muted); font-size: .76rem; }
    .cipo-search-quality-checks > span b { color: var(--ink); }
    .cipo-search-quality-checks > small { flex-basis: 100%; color: var(--muted); }
    .cipo-data-coverage-health, .cipo-data-coverage-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
    .cipo-data-coverage-health > div { display: flex; align-items: center; gap: 7px; }
    .cipo-data-coverage-health > div > span:last-child { display: grid; gap: 1px; }
    .cipo-health-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--danger); }
    .cipo-health-dot.ok { background: var(--success); }
    .cipo-data-coverage-actions .button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
    .registry-coverage-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
    .registry-coverage-summary > div { display: grid; gap: 4px; padding: 14px 16px; border-left: 1px solid var(--line); background: var(--white); }
    .registry-coverage-summary > div:first-child { border-left: 0; }
    .registry-coverage-summary span, .registry-coverage-summary small { color: var(--muted); font-size: .75rem; }
    .registry-coverage-summary small { text-transform: capitalize; }
    .registry-coverage-summary b { font-size: 1.28rem; }
    .registry-coverage-section { padding: 18px 20px; }
    .registry-coverage-section > div:first-child { margin-bottom: 12px; }
    .registry-coverage-section h3 { margin: 0 0 4px; }
    .registry-coverage-source { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(250px, 1fr) minmax(260px, 1fr); align-items: center; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); }
    .registry-coverage-source-identity > span, .registry-coverage-source-identity > b, .registry-coverage-source-identity > small, .registry-coverage-source-state > span, .registry-coverage-source-state > small { display: block; }
    .registry-coverage-source-identity > span { margin-bottom: 2px; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
    .registry-coverage-source-identity > small, .registry-coverage-source-state > small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
    .registry-coverage-source-state .pill { display: inline-flex; margin-bottom: 5px; }
    .registry-coverage-capabilities { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
    .registry-coverage-capabilities span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: .7rem; font-weight: 750; }
    .registry-coverage-disclosure { margin: 0; }
    .registry-coverage-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; cursor: pointer; list-style: none; }
    .registry-coverage-disclosure > summary::-webkit-details-marker { display: none; }
    .registry-coverage-disclosure > summary b, .registry-coverage-disclosure > summary small { display: block; }
    .registry-coverage-disclosure > summary small { margin-top: 3px; color: var(--muted); font-size: .76rem; font-weight: 400; }
    .registry-coverage-disclosure > summary > span:last-child { flex: 0 0 auto; color: var(--muted); font-size: .75rem; font-weight: 800; }
    .registry-coverage-disclosure[open] > summary { border-bottom: 1px solid var(--line); background: var(--panel); }
    .registry-coverage-disclosure-body { padding: 0 20px 18px; }
    .registry-coverage-diagnostics .registry-coverage-disclosure-body { display: grid; gap: 8px; padding: 12px; }
    .registry-coverage-diagnostics .registry-coverage-history { margin: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
    .registry-coverage-record { padding: 18px 0; border-top: 1px solid var(--line); }
    .registry-coverage-record-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
    .registry-coverage-record-heading > div { display: grid; gap: 5px; }
    .registry-coverage-record-heading > div:last-child { justify-items: end; }
    .registry-confidence { color: var(--muted); font-size: .78rem; }
    .registry-coverage-record ul { display: grid; gap: 7px; margin: 14px 0; padding: 0; list-style: none; }
    .registry-coverage-record li { display: grid; grid-template-columns: minmax(180px, .38fr) 1fr; gap: 16px; padding: 9px 11px; border-left: 3px solid var(--warn); background: var(--panel); font-size: .85rem; }
    .registry-coverage-record li span { color: var(--muted); }
    .registry-coverage-record > a { display: inline-block; margin-top: 4px; font-size: .82rem; font-weight: 700; }
    .registry-coverage-ok { margin: 12px 0 0; color: var(--success); font-weight: 700; }
    .registry-coverage-history { padding: 14px 16px; }
    .registry-coverage-history > summary { cursor: pointer; font-weight: 750; }
    .registry-coverage-history-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .registry-coverage-history-row span { color: var(--muted); }
    .registry-reconciliation-review { display: grid; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
    .registry-reconciliation-review.resolved { opacity: .72; }
    .registry-reconciliation-fields { display: grid; gap: 8px; }
    .registry-reconciliation-fields > div { display: grid; grid-template-columns: minmax(170px, .3fr) 1fr; gap: 14px; padding: 10px 12px; border-left: 3px solid var(--warn); background: var(--panel); }
    .registry-reconciliation-fields span { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .registry-reconciliation-fields del { color: var(--danger); }
    .registry-reconciliation-fields ins { color: var(--success); font-weight: 700; text-decoration: none; }
    .registry-reconciliation-fields i { color: var(--muted); font-style: normal; }
    .registry-reconciliation-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
    .registry-reconciliation-actions > a { margin-right: auto; font-size: .82rem; font-weight: 700; }
    .registry-coverage-alert { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .registry-coverage-alert > div { display: flex; justify-content: space-between; gap: 16px; }
    .registry-coverage-alert ul { margin: 9px 0 0; padding-left: 20px; color: var(--muted); }

    @media (max-width: 820px) {
      .cipo-data-coverage-heading, .cipo-data-coverage-footer { align-items: stretch; flex-direction: column; }
      .cipo-data-coverage-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .cipo-data-coverage-stats > div:nth-child(3) { border-left: 0; }
      .cipo-data-coverage-stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
      .cipo-search-quality { grid-template-columns: 1fr; }
      .cipo-data-coverage-actions, .cipo-data-coverage-actions > * { width: 100%; }
      .registry-coverage-heading, .registry-coverage-record-heading { align-items: stretch; flex-direction: column; }
      .registry-coverage-actions { justify-content: stretch; }
      .registry-coverage-actions > button, .registry-coverage-report-tools { flex: 1 1 160px; }
      .registry-coverage-actions > button { min-width: 0; }
      .registry-coverage-report-tools > summary { justify-content: center; width: 100%; }
      .registry-coverage-report-tools > div { right: auto; left: 0; width: 100%; }
      .registry-coverage-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .registry-coverage-summary > div:nth-child(3) { border-left: 0; }
      .registry-coverage-summary > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
      .registry-coverage-source, .registry-coverage-record li { grid-template-columns: 1fr; gap: 8px; }
      .registry-coverage-capabilities { justify-content: flex-start; }
      .registry-reconciliation-fields > div { grid-template-columns: 1fr; gap: 5px; }
      .registry-reconciliation-actions { align-items: stretch; flex-direction: column; }
      .registry-reconciliation-actions > a { margin: 0 0 4px; }
      .registry-reconciliation-actions button { width: 100%; }
      .registry-coverage-record-heading > div:last-child { justify-items: start; }
      .registry-coverage-history-row { flex-direction: column; gap: 4px; }
    }
.brand-access-panel { display: grid; gap: 16px; }
.brand-access-panel.hidden { display: none; }
.brand-access-panel > .section-heading { margin-bottom: 0; }
.brand-access-panel > .note { margin: 0; border-left: 4px solid var(--warn); }
.brand-access-panel > .note.active { border-left-color: var(--success); background: #f2faf7; color: var(--forest-800); }
.brand-access-matrix { padding: 0; overflow: hidden; }
.brand-access-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--panel); }
.brand-access-overview > div { display: grid; gap: 3px; padding: 16px 20px; border-left: 1px solid var(--line); }
.brand-access-overview > div:first-child { border-left: 0; }
.brand-access-overview span { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.brand-access-overview b { color: var(--ink); font-size: 1.3rem; }
.brand-access-permissions-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; }
.brand-access-permissions-heading h3, .brand-access-permissions-heading p { margin: 0; }
.brand-access-permissions-heading p { margin-top: 5px; }
.brand-access-save-area { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-access-save-area .pending { color: var(--warn); font-weight: 750; }
.brand-access-user-list { display: grid; gap: 14px; padding: 0 22px 22px; }
.brand-access-user-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.brand-access-user-card > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.brand-access-user-card h4, .brand-access-user-card p { margin: 0; }
.brand-access-user-card h4 { font-size: 1rem; }
.brand-access-user-card header p { margin-top: 3px; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.brand-access-role-badge, .brand-access-count-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; background: #e9f3f1; color: var(--forest-800); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.brand-access-user-summary { padding: 10px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.brand-access-user-summary b { color: var(--ink); }
.brand-access-brand-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brand-access-brand-row { display: flex; align-items: center; justify-content: space-between; min-width: 0; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.brand-access-brand-row:nth-child(odd) { border-right: 1px solid var(--line); }
.brand-access-brand-row:last-child, .brand-access-brand-row:has(+ .brand-access-brand-row:last-child:nth-child(even)) { border-bottom: 0; }
.brand-access-brand-row:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.brand-access-brand-name { display: grid; gap: 3px; min-width: 0; }
.brand-access-brand-name b { overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.brand-access-brand-name span { color: var(--muted); font-size: .72rem; }
.brand-access-grant { display: grid; grid-template-columns: auto auto; align-items: center; justify-items: end; gap: 7px 10px; flex: 0 0 auto; }
.brand-access-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: .74rem; font-weight: 750; }
.brand-access-toggle input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.brand-access-role-select { margin: 0; }
.brand-access-role-select select { width: 118px; min-width: 118px; }
.brand-access-reviewer-toggle { display: inline-flex; grid-column: 1 / -1; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: .72rem; font-weight: 750; }
.brand-access-reviewer-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.brand-access-admin-summary, .brand-access-clear-state { display: flex; align-items: center; gap: 12px; padding: 18px; }
.brand-access-admin-summary > span, .brand-access-clear-state > span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #e7f5ef; color: var(--success); font-weight: 900; }
.brand-access-admin-summary b { font-size: .86rem; }
.brand-access-admin-summary p, .brand-access-clear-state p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }
.brand-access-quarantine { margin: 0; }
.brand-access-quarantine.clear { padding: 0; }
.brand-access-clear-state h3 { margin: 0; font-size: .94rem; }
.brand-access-quarantine-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-access-quarantine-heading h3, .brand-access-quarantine-heading p { margin: 0; }
.brand-access-quarantine-heading p { margin-top: 4px; }
.brand-access-count-badge { background: #fff1dc; color: #8a5900; }
.evidence-review-audit { display: grid; gap: 0; padding: 0; overflow: hidden; }
.evidence-review-audit.hidden { display: none; }
.evidence-review-audit-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.evidence-review-audit-heading h3, .evidence-review-audit-heading p { margin: 0; }
.evidence-review-audit-heading h3 { margin-top: 3px; }
.evidence-review-audit-heading p { margin-top: 5px; }
.evidence-review-audit-heading .eyebrow { color: var(--success); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.evidence-review-audit-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.evidence-review-audit-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--panel); }
.evidence-review-audit-summary > div { display: grid; gap: 3px; padding: 14px 18px; border-left: 1px solid var(--line); }
.evidence-review-audit-summary > div:first-child { border-left: 0; }
.evidence-review-audit-summary span { color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.evidence-review-audit-summary b { font-size: 1.18rem; }
.evidence-review-audit-summary > .empty { grid-column: 1 / -1; margin: 0; padding: 18px 22px; }
.evidence-review-audit-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.evidence-review-audit-filters label { display: grid; gap: 5px; margin: 0; color: var(--muted); font-size: .72rem; font-weight: 750; }
.evidence-review-audit-filters select { width: 100%; margin: 0; }
.evidence-review-audit-list { display: grid; }
.evidence-review-audit-row { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.evidence-review-audit-row:last-child { border-bottom: 0; }
.evidence-review-audit-row > div { min-width: 0; }
.evidence-review-audit-row b, .evidence-review-audit-row p, .evidence-review-audit-row small { display: block; margin: 0; }
.evidence-review-audit-row p { margin-top: 4px; color: var(--muted); font-size: .78rem; }
.evidence-review-audit-row small { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.evidence-review-audit-row time { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.evidence-review-audit-kind { display: inline-flex; justify-content: center; min-height: 26px; padding: 5px 8px; border-radius: 999px; background: #e9f3f1; color: var(--forest-800); font-size: .68rem; font-weight: 800; text-align: center; }
.evidence-review-audit-row.permission-revoked .evidence-review-audit-kind, .evidence-review-audit-row.review-rejected .evidence-review-audit-kind { background: #fff1dc; color: #8a5900; }
.evidence-review-audit-list > .empty, .evidence-review-audit-list > .portfolio-empty-state { margin: 18px 22px; }
.evidence-review-audit-footnote { margin: 0; padding: 12px 22px; border-top: 1px solid var(--line); background: var(--panel); }
.brand-access-advanced { padding: 0; overflow: hidden; }
.brand-access-advanced > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; cursor: pointer; list-style: none; }
.brand-access-advanced > summary::-webkit-details-marker { display: none; }
.brand-access-advanced > summary span:first-child { display: grid; gap: 3px; }
.brand-access-advanced > summary small { color: var(--muted); }
.brand-access-advanced-label { color: var(--accent); font-size: .76rem; font-weight: 800; }
.brand-access-advanced-body { border-top: 1px solid var(--line); }
.brand-access-control-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .7fr); align-items: end; gap: 28px; padding: 20px; border-bottom: 1px solid var(--line); }
.brand-access-control-section:last-child { border-bottom: 0; }
.brand-access-control-section h3, .brand-access-control-section p { margin: 0; }
.brand-access-control-section p { margin-top: 5px; }
.brand-access-control-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.brand-access-control-action label { margin: 0; }
.brand-access-control-action.compact { grid-template-columns: minmax(170px, 1fr) auto; }

@media (max-width: 920px) {
  .brand-access-brand-list { grid-template-columns: 1fr; }
  .brand-access-brand-row, .brand-access-brand-row:nth-child(odd), .brand-access-brand-row:has(+ .brand-access-brand-row:last-child:nth-child(even)) { border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-access-brand-row:last-child { grid-column: auto; border-bottom: 0; }
  .brand-access-control-section { grid-template-columns: 1fr; gap: 16px; }
  .evidence-review-audit-row { grid-template-columns: 118px minmax(0, 1fr); }
  .evidence-review-audit-row time { grid-column: 2; }
}

/* Cross-workspace command, access posture, and operating controls */
.lifecycle-command-centre { margin: 16px 0; border: 1px solid #bfd6d0; background: #f8fbfa; }
.lifecycle-command-heading,
.client-access-heading,
.cloudflare-operating-policy-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--white); }
.lifecycle-command-heading h2,
.client-access-heading h3,
.cloudflare-operating-policy-heading h4 { margin: 3px 0 4px; color: var(--ink); }
.lifecycle-command-heading p,
.client-access-heading p,
.cloudflare-operating-policy-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.lifecycle-command-boundary { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #9bc7b6; background: #e8f5ef; color: var(--accent-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.lifecycle-command-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lifecycle-command-lane { min-width: 0; min-height: 174px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 17px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); text-align: left; box-shadow: none; text-shadow: none; }
.lifecycle-command-lane:first-child { border-left: 0; }
.lifecycle-command-lane:hover { background: var(--white); color: var(--ink); transform: none; box-shadow: inset 0 -3px 0 var(--accent); }
.lifecycle-command-stage { display: flex; align-items: center; gap: 7px; color: var(--accent-dark); font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.lifecycle-command-stage i { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid #9bc7b6; border-radius: 50%; font-style: normal; }
.lifecycle-command-lane strong { margin-top: 6px; color: var(--accent-dark); font-size: 28px; line-height: 1; }
.lifecycle-command-lane b { max-width: 100%; overflow-wrap: anywhere; font-size: 14px; }
.lifecycle-command-lane small { color: var(--muted); line-height: 1.4; }
.lifecycle-command-open { margin-top: auto; color: var(--accent-dark); font-size: 11px; font-weight: 800; }
.lifecycle-handoff { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(150px, .8fr)) auto; align-items: end; gap: 12px; padding: 16px 18px; border-top: 1px solid var(--line); background: var(--white); }
.lifecycle-handoff > div { align-self: center; }
.lifecycle-handoff > div p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.lifecycle-handoff label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.lifecycle-handoff select { width: 100%; min-height: 39px; border-radius: 0; background: #fbfdfc; }
.lifecycle-handoff button { min-height: 39px; border-radius: 0; }
.lifecycle-handoff > span { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }

.client-access-centre { border-bottom: 1px solid var(--line); background: #f8fbfa; }
.client-access-posture { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.client-access-posture > div { display: grid; gap: 3px; padding: 15px 18px; border-left: 1px solid var(--line); }
.client-access-posture > div:first-child { border-left: 0; }
.client-access-posture span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.client-access-posture b { font-size: 22px; color: var(--accent-dark); }
.client-access-posture small { color: var(--muted); line-height: 1.35; }
.client-access-role-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.client-access-role-map span { padding: 10px 14px; background: var(--white); color: var(--muted); font-size: 11px; }
.client-access-role-map b { display: block; color: var(--ink); }
.client-access-certification { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--white); }
.client-access-certification > div:first-child { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 9px; }
.client-access-certification > div:first-child p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 11px; }
.client-access-certification > button { border-radius: 0; }
.client-access-certification details { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 9px; }
.client-access-certification details summary { cursor: pointer; color: var(--accent-dark); font-size: 11px; font-weight: 800; }
.client-access-certification details div { display: grid; gap: 7px; margin-top: 8px; }
.client-access-certification details span { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.client-access-boundary { margin: 0; padding: 11px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.cloudflare-operating-policy { margin-bottom: 12px; border: 1px solid #9fc9bc; background: var(--white); }
.cloudflare-operating-policy-controls { display: grid; grid-template-columns: 1.15fr repeat(4, minmax(105px, .8fr)); gap: 10px; padding: 14px 16px; }
.cloudflare-operating-policy-controls label { position: relative; color: var(--muted); font-size: 11px; font-weight: 800; }
.cloudflare-operating-policy-controls input,
.cloudflare-operating-policy-controls select { width: 100%; min-height: 38px; margin-top: 5px; border-radius: 0; background: #fbfdfc; }
.cloudflare-operating-policy-controls label span { position: absolute; right: 9px; bottom: 11px; color: var(--muted); font-weight: 600; }
.cloudflare-cost-ceiling { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 16px 14px; padding: 12px 14px; border: 1px solid #a8cabf; background: #f2faf7; }
.cloudflare-cost-ceiling.tripped { border-color: #d5a34b; background: #fff8e8; }
.cloudflare-cost-ceiling > div { display: grid; gap: 2px; }
.cloudflare-cost-ceiling b { color: var(--accent-dark); font-size: 16px; }
.cloudflare-cost-ceiling span, .cloudflare-cost-ceiling p { color: var(--muted); font-size: 11px; }
.cloudflare-cost-ceiling p { max-width: 520px; margin: 0; text-align: right; }
.cloudflare-workload-attribution { margin: 0 16px 14px; border: 1px solid var(--line); background: var(--white); }
.cloudflare-workload-attribution summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; }
.cloudflare-workload-attribution summary > span:first-child { display: grid; gap: 2px; }
.cloudflare-workload-attribution summary small, .cloudflare-workload-attribution article small, .cloudflare-workload-attribution > div > p { color: var(--muted); font-size: 10px; }
.cloudflare-workload-attribution article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line); }
.cloudflare-workload-attribution article > span { display: grid; gap: 2px; }
.cloudflare-workload-attribution article strong { color: var(--accent-dark); font-size: 12px; }
.cloudflare-workload-attribution > div > p { margin: 0; padding: 9px 14px; border-top: 1px solid var(--line); }
.cloudflare-d1-attribution { margin: 0 16px 14px; border: 1px solid #9fc9bc; background: #f8fcfa; }
.cloudflare-d1-attribution > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; cursor: pointer; list-style: none; }
.cloudflare-d1-attribution > summary::-webkit-details-marker { display: none; }
.cloudflare-d1-attribution > summary > span:first-child { display: grid; gap: 2px; }
.cloudflare-d1-attribution > summary small, .cloudflare-d1-attribution article small, .cloudflare-d1-attribution > p { color: var(--muted); font-size: 10px; line-height: 1.4; }
.cloudflare-d1-allocation-grid { border-top: 1px solid #c8ddd6; background: var(--white); }
.cloudflare-d1-allocation-grid article { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 14px; border-top: 1px solid var(--line); }
.cloudflare-d1-allocation-grid article:first-child { border-top: 0; }
.cloudflare-d1-allocation-grid article > span, .cloudflare-d1-allocation-grid article > div { display: grid; gap: 2px; }
.cloudflare-d1-allocation-grid article > div { flex: 0 0 auto; text-align: right; }
.cloudflare-d1-allocation-grid strong { color: var(--accent-dark); font-size: 15px; }
.cloudflare-d1-workload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-top: 1px solid #c8ddd6; background: var(--line); }
.cloudflare-d1-workload-grid article { display: grid; align-content: start; gap: 4px; padding: 12px 14px; background: #fbfdfc; }
.cloudflare-d1-workload-grid article .pill { width: max-content; margin-bottom: 2px; }
.cloudflare-d1-workload-grid article strong { color: var(--accent-dark); font-size: 12px; }
.cloudflare-d1-attribution > p { margin: 0; padding: 10px 14px; border-top: 1px solid #c8ddd6; background: var(--white); }
.cloudflare-ai-attribution { margin: 0 0 10px; border: 1px solid #9fc9bc; background: var(--white); }
.cloudflare-ai-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; background: #f2faf7; }
.cloudflare-ai-heading > div { display: grid; gap: 2px; }
.cloudflare-ai-heading small, .cloudflare-ai-attribution article small, .cloudflare-ai-attribution > p, .cloudflare-ai-attribution details small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.cloudflare-ai-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cloudflare-ai-feature-grid article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-left: 1px solid var(--line); }
.cloudflare-ai-feature-grid article:first-child { border-left: 0; }
.cloudflare-ai-feature-grid article > span { display: grid; gap: 3px; }
.cloudflare-ai-feature-grid strong, .cloudflare-ai-attribution details article strong { color: var(--accent-dark); }
.cloudflare-ai-coverage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); background: #fbfdfc; }
.cloudflare-ai-coverage span { padding: 9px 14px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.cloudflare-ai-coverage span:first-child { border-left: 0; }
.cloudflare-ai-coverage b { display: block; margin-top: 2px; color: var(--ink); font-size: 12px; }
.cloudflare-ai-attribution details { border-top: 1px solid var(--line); }
.cloudflare-ai-attribution details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; }
.cloudflare-ai-attribution details summary::-webkit-details-marker { display: none; }
.cloudflare-ai-attribution details summary > span:first-child, .cloudflare-ai-attribution details article > span { display: grid; gap: 2px; }
.cloudflare-ai-attribution details article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line); }
.cloudflare-ai-attribution > p { margin: 0; padding: 9px 14px; border-top: 1px solid var(--line); }
.cloudflare-operating-policy-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); background: #eff7f4; }
.cloudflare-operating-policy-footer span { color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .lifecycle-command-grid,
  .client-access-posture,
  .client-access-role-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lifecycle-command-lane:nth-child(3),
  .client-access-posture > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .lifecycle-command-lane:nth-child(4),
  .client-access-posture > div:nth-child(4) { border-top: 1px solid var(--line); }
  .cloudflare-operating-policy-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lifecycle-handoff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .lifecycle-command-heading,
  .client-access-heading,
  .cloudflare-operating-policy-heading,
  .cloudflare-operating-policy-footer { align-items: stretch; flex-direction: column; }
  .lifecycle-command-grid,
  .client-access-posture,
  .client-access-role-map,
  .cloudflare-operating-policy-controls { grid-template-columns: 1fr; }
  .lifecycle-handoff { grid-template-columns: 1fr; }
  .client-access-certification { grid-template-columns: 1fr; }
  .cloudflare-cost-ceiling { align-items: flex-start; flex-direction: column; }
  .cloudflare-d1-workload-grid { grid-template-columns: 1fr; }
  .cloudflare-d1-allocation-grid article { align-items: flex-start; flex-direction: column; gap: 7px; }
  .cloudflare-d1-allocation-grid article > div { text-align: left; }
  .cloudflare-ai-heading { align-items: flex-start; flex-direction: column; }
  .cloudflare-ai-feature-grid, .cloudflare-ai-coverage { grid-template-columns: 1fr; }
  .cloudflare-ai-feature-grid article, .cloudflare-ai-coverage span { border-top: 1px solid var(--line); border-left: 0; }
  .cloudflare-ai-feature-grid article:first-child, .cloudflare-ai-coverage span:first-child { border-top: 0; }
  .cloudflare-cost-ceiling p { text-align: left; }
  .lifecycle-command-lane,
  .client-access-posture > div { border-left: 0; border-top: 1px solid var(--line); }
  .lifecycle-command-lane:first-child,
  .client-access-posture > div:first-child { border-top: 0; }
}

@media (max-width: 620px) {
  .brand-access-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-access-overview > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .brand-access-overview > div:nth-child(4) { border-top: 1px solid var(--line); }
  .brand-access-permissions-heading { align-items: stretch; flex-direction: column; padding: 18px; }
  .brand-access-save-area { align-items: stretch; flex-direction: column; }
  .brand-access-save-area button { width: 100%; }
  .brand-access-user-list { padding: 0 14px 14px; }
  .brand-access-user-card > header { align-items: flex-start; }
  .brand-access-brand-row { align-items: stretch; flex-direction: column; }
  .brand-access-brand-name b { white-space: normal; }
  .brand-access-grant { justify-content: space-between; justify-items: start; }
  .brand-access-reviewer-toggle { justify-self: end; }
  .brand-access-role-select select { width: min(180px, 48vw); }
  .brand-access-control-action, .brand-access-control-action.compact { grid-template-columns: 1fr; }
  .brand-access-control-action button { width: 100%; }
  .evidence-review-audit-heading { align-items: stretch; flex-direction: column; padding: 18px; }
  .evidence-review-audit-actions button { flex: 1; }
  .evidence-review-audit-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-review-audit-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .evidence-review-audit-summary > div:nth-child(4) { border-top: 1px solid var(--line); }
  .evidence-review-audit-filters { grid-template-columns: 1fr; padding: 14px 18px; }
  .evidence-review-audit-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 18px; }
  .evidence-review-audit-row time { grid-column: auto; }
  .evidence-review-audit-kind { justify-self: start; }
}

.patent-portfolio-panel { display: grid; gap: 18px; }
.patent-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.patent-stats > div { display: grid; gap: 4px; }
.patent-stats strong { font-size: 1.45rem; }
.patent-stats span { color: var(--muted); font-size: .78rem; }
.patent-toolbar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.patent-toolbar label { display: grid; gap: 6px; font-size: .78rem; font-weight: 700; }
.patent-toolbar .patent-search { flex: 1 1 280px; }
.patent-record-list { display: grid; gap: 14px; }
.ip-evidence-timeline { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: var(--panel); }
.ip-evidence-timeline .section-heading { align-items: end; margin: 0; }
.ip-evidence-timeline .section-heading label { width: auto; min-width: 190px; margin: 0; }
.ip-evidence-timeline-controls { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ip-evidence-timeline-controls button { width: auto; }
.ip-evidence-timeline-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--white); }
.ip-evidence-timeline-summary span { display: grid; gap: 3px; border-left: 1px solid var(--line); padding: 9px 10px; color: var(--muted); font-size: 11px; }
.ip-evidence-timeline-summary span:first-child { border-left: 0; }
.ip-evidence-timeline-summary b { color: var(--ink); font-size: 18px; }
.ip-evidence-timeline-list { display: grid; gap: 8px; max-height: 620px; overflow: auto; }
.ip-evidence-timeline-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: start; gap: 12px; border: 1px solid var(--line); border-radius: 7px; padding: 11px; background: var(--white); }
.ip-evidence-timeline-item.attention { border-color: #e0a398; background: #fff8f6; }
.ip-evidence-timeline-item.new { box-shadow: inset 4px 0 0 var(--accent); }
.ip-evidence-timeline-item time { color: var(--muted); font-size: 12px; font-weight: 700; }
.ip-evidence-timeline-item > div:nth-child(2) { display: grid; gap: 5px; min-width: 0; }
.ip-evidence-timeline-item p { margin: 0; line-height: 1.42; }
.patent-record-card { padding: 20px 22px; border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 10px; background: var(--white); }
.patent-record-card.confirmed { border-left-color: var(--success); }
.patent-record-card.dismissed { border-left-color: var(--muted); opacity: .78; }
.patent-record-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.patent-record-heading h3 { margin: 9px 0 4px; }
.patent-record-heading .actions { justify-content: flex-end; }
.patent-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; margin: 18px 0; }
.patent-facts div { min-width: 0; }
.patent-facts dt { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.patent-facts dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.patent-details { border-top: 1px solid var(--line); padding-top: 12px; }
.patent-details > summary { cursor: pointer; font-weight: 700; }
.patent-edit-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.patent-edit-form label { display: grid; gap: 5px; font-size: .78rem; font-weight: 700; }
.patent-edit-form .patent-notes { grid-column: 1 / -1; }
.patent-edit-form button { justify-self: start; }

@media (max-width: 900px) {
  .patent-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .patent-facts, .patent-edit-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-evidence-timeline-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .patent-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .patent-facts, .patent-edit-form { grid-template-columns: 1fr; }
  .patent-record-heading { flex-direction: column; }
  .patent-record-heading .actions, .patent-record-heading .actions > * { width: 100%; }
  .patent-toolbar > button { width: 100%; }
  .ip-evidence-timeline .section-heading { align-items: stretch; flex-direction: column; }
  .ip-evidence-timeline .section-heading label { width: 100%; }
  .ip-evidence-timeline-controls { align-items: stretch; flex-direction: column; width: 100%; }
  .ip-evidence-timeline-controls button { width: 100%; }
  .ip-evidence-timeline-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-evidence-timeline-summary span:nth-child(odd) { border-left: 0; }
  .ip-evidence-timeline-item { grid-template-columns: 1fr; }
}

/* Clearance journey: one cohesive, human-led search and review experience. */
.main-workspace[data-workspace="clearance"] .workspace-masthead {
  padding-top: 22px;
  padding-bottom: 22px;
}

.main-workspace[data-workspace="clearance"] .workspace-masthead .section-heading h2 {
  font-size: 24px;
}

.clearance-journey {
  display: grid;
  gap: 0;
  scroll-margin-top: 74px;
}

.clearance-journey #clearanceWorkflowPanel {
  gap: 0;
  margin: 0;
}

.clearance-journey .clearance-stage-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 22px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(32, 53, 62, .05);
}

.clearance-journey .clearance-stage-tabs button {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
  min-height: 72px;
  padding: 12px 16px;
  border: 0;
  border-left: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: var(--white);
  color: var(--muted);
  text-align: left;
  box-shadow: none;
}

.clearance-journey .clearance-stage-tabs button:first-child { border-left: 0; }
.clearance-journey .clearance-stage-tabs button::before { display: none; content: none; }

.clearance-journey .clearance-stage-tabs button:hover {
  border-bottom-color: var(--forest-300);
  background: #f6fbfa;
  color: var(--ink);
}

.clearance-journey .clearance-stage-tabs button.active {
  border-bottom-color: var(--accent);
  background: #edf8f6;
  color: var(--ink);
}

.clearance-stage-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #9aabb4;
  border-radius: 50%;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.clearance-stage-tabs button.complete .clearance-stage-number {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.clearance-stage-tabs button.active .clearance-stage-number {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 4px rgba(24, 139, 128, .12);
}

.clearance-stage-copy { display: grid; gap: 2px; min-width: 0; }
.clearance-stage-copy b { color: inherit; font-size: 14px; }
.clearance-stage-copy small { color: var(--muted); font-size: 11px; font-weight: 650; }
.clearance-stage-state { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.clearance-stage-tabs button.active .clearance-stage-state { color: var(--accent-dark); }

.clearance-journey .clearance-flow-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, .84fr);
  gap: 18px;
  align-items: stretch;
}

.clearance-journey .clearance-step {
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(32, 53, 62, .05);
}

.clearance-journey .clearance-step h3 {
  margin-bottom: 5px;
  font-size: 20px;
}

.clearance-journey .clearance-step p { margin: 0 0 20px; }
.clearance-journey .clearance-setup-fields { gap: 13px; }
.clearance-journey .clearance-setup-fields label { font-size: 12px; }
.clearance-journey .clearance-setup-fields input,
.clearance-journey .clearance-setup-fields textarea,
.clearance-journey .clearance-setup-fields select { background: #fbfcfd; }
.clearance-journey .clearance-setup-fields .actions { display: grid; margin-top: 5px; }
.clearance-journey .clearance-setup-fields .actions button { width: 100%; min-height: 48px; }

.clearance-search-plan {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--forest-700);
  border-radius: 10px;
  background: linear-gradient(145deg, var(--forest-900), var(--forest-800));
  color: var(--white);
  box-shadow: 0 12px 30px rgba(16, 67, 62, .18);
}

.clearance-plan-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.clearance-plan-heading .eyebrow { color: #9dd8d1; }
.clearance-plan-heading h3 { margin: 5px 0 0; color: var(--white); font-size: 21px; overflow-wrap: anywhere; }
.clearance-plan-progress { flex: 0 0 auto; padding: 5px 8px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #cce9e6; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.clearance-search-plan.ready .clearance-plan-progress { border-color: #82d1c7; background: rgba(130,209,199,.16); color: #dff8f5; }

.clearance-plan-facts { display: grid; align-content: start; }
.clearance-plan-facts > div { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.clearance-plan-facts span,
.clearance-plan-facts b { display: block; }
.clearance-plan-facts span { margin-bottom: 4px; color: #9dd0cb; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.clearance-plan-facts b { color: var(--white); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }

.clearance-plan-boundary { display: grid; gap: 4px; margin-top: 18px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; background: rgba(255,255,255,.07); }
.clearance-plan-boundary b { color: #dff8f5; font-size: 12px; }
.clearance-plan-boundary span { color: #c2d9d6; font-size: 11px; line-height: 1.45; }

.clearance-source-confidence {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid #cbdcd9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 53, 62, .05);
}

.clearance-results-confidence { margin: 0 0 14px; }
.clearance-confidence-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.clearance-confidence-heading h3 { margin: 4px 0 5px; font-size: 18px; }
.clearance-confidence-heading p { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; }
.clearance-confidence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 10px; margin-top: 17px; }
.clearance-confidence-grid article { display: grid; gap: 12px; min-width: 0; padding: 15px; border: 1px solid var(--line); border-left: 4px solid #9aabb4; border-radius: 8px; background: #f9fbfc; }
.clearance-confidence-grid article.current { border-left-color: var(--success); }
.clearance-confidence-grid article.limited { border-left-color: var(--warn); background: #fffaf1; }
.clearance-confidence-grid article.failed { border-left-color: var(--danger); background: #fff7f7; }
.clearance-confidence-source { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.clearance-confidence-source b { font-size: 15px; }
.clearance-confidence-source span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.clearance-confidence-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.clearance-confidence-facts > div { min-width: 0; padding-top: 8px; border-top: 1px solid #dce5e8; }
.clearance-confidence-facts span, .clearance-confidence-facts b { display: block; }
.clearance-confidence-facts span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.clearance-confidence-facts b { margin-top: 3px; font-size: 12px; overflow-wrap: anywhere; }
.clearance-confidence-grid article > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.clearance-search-quality { display: grid; gap: 13px; margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-left: 4px solid var(--forest-700); border-radius: 8px; background: #f5faf8; }
.clearance-search-quality.issue { border-left-color: var(--danger); background: #fff8f7; }
.clearance-search-quality.stale, .clearance-search-quality.pending { border-left-color: var(--warn); background: #fffaf1; }
.clearance-search-quality.pending > button { justify-self: start; }
.clearance-quality-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.clearance-quality-heading h4 { margin: 3px 0 4px; color: var(--forest-900); font-size: 16px; }
.clearance-quality-heading p { max-width: 760px; margin: 0; color: var(--muted); font-size: 11px; }
.clearance-quality-score { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.clearance-quality-score > b { color: var(--forest-900); font-size: 24px; }
.clearance-quality-score small { color: var(--muted); font-size: 10px; }
.clearance-quality-offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.clearance-quality-offices > div { display: grid; gap: 3px; padding: 11px 12px; border: 1px solid #d6e4e0; border-radius: 7px; background: #fff; }
.clearance-quality-offices > div.issue { border-color: #e2c4bd; background: #fffafa; }
.clearance-quality-offices span { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.clearance-quality-offices small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.clearance-quality-failures { display: grid; gap: 6px; padding: 12px; border: 1px solid #e4c7c0; border-radius: 7px; background: #fff; }
.clearance-quality-failures > span { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; border-top: 1px solid #eee3e0; }
.clearance-quality-failures strong { font-size: 11px; }
.clearance-quality-failures small { color: #765b55; text-transform: capitalize; }
.clearance-quality-pass { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 7px; background: #eaf5ef; color: #315d4e; font-size: 11px; }
.clearance-quality-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 10px; }
.clearance-quality-boundary { margin: 0; padding-top: 10px; border-top: 1px solid #d4e2dd; color: var(--muted); font-size: 10px; }
.clearance-international-coverage { display: grid; gap: 13px; margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-left: 4px solid var(--success); border-radius: 8px; background: #f3f8f2; }
.clearance-international-coverage.limited { border-left-color: var(--warn); background: #fffaf1; }
.clearance-international-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.clearance-international-heading h4 { margin: 3px 0 4px; font-size: 16px; }
.clearance-international-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.clearance-international-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.clearance-international-facts > div { padding-top: 8px; border-top: 1px solid #d4e2d1; }
.clearance-international-facts span, .clearance-international-facts b { display: block; }
.clearance-international-facts span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.clearance-international-facts b { margin-top: 3px; font-size: 12px; }
.clearance-international-actions { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; font-weight: 800; }
.clearance-international-boundary { margin: 0; padding-top: 10px; border-top: 1px solid #d4e2d1; color: var(--muted); font-size: 10px; }
.pill.madrid-source { border-color: #abc9a7; background: #e5f1e2; color: #28532d; }
.clearance-confidence-boundary { display: flex; gap: 8px; margin-top: 13px; padding: 11px 13px; border-left: 4px solid var(--accent); background: #f1f8f7; color: #486269; font-size: 11px; }
.clearance-confidence-boundary.limited { border-left-color: var(--warn); background: #fff7e8; color: #675535; }
.clearance-confidence-boundary b { flex: 0 0 auto; color: var(--ink); }

.clearance-all-candidates {
  margin: 14px 0;
  padding: 22px;
  border: 1px solid #cbdcd9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(32, 53, 62, .05);
}

.clearance-all-candidates-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.clearance-all-candidates-heading h3 { margin: 4px 0 5px; font-size: 19px; }
.clearance-all-candidates-heading p { max-width: 740px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.clearance-candidate-count { flex: 0 0 auto; display: grid; justify-items: end; }
.clearance-candidate-count b { color: var(--accent-dark); font-size: 25px; }
.clearance-candidate-count span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.clearance-candidate-filters { display: grid; grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(170px, .45fr)); gap: 10px; margin: 18px 0 12px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #f7fafb; }
.clearance-candidate-filters label { margin: 0; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.clearance-candidate-filters input, .clearance-candidate-filters select { margin-top: 5px; background: #fff; text-transform: none; }
.clearance-candidate-list { display: grid; gap: 8px; }
.clearance-candidate-list article { display: grid; gap: 8px; padding: 14px 15px; border: 1px solid #dce5e8; border-radius: 8px; background: #fff; }
.clearance-candidate-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.clearance-candidate-main > div { display: grid; gap: 3px; min-width: 0; }
.clearance-candidate-main b { color: var(--ink); overflow-wrap: anywhere; }
.clearance-candidate-main span:not(.pill) { color: var(--muted); font-size: 11px; }
.clearance-candidate-meta { display: flex; flex-wrap: wrap; gap: 5px 13px; color: #53656d; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.clearance-candidate-meta a { text-transform: none; }
.clearance-candidate-list article > p { margin: 0; color: var(--muted); font-size: 11px; }
.clearance-candidate-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.clearance-candidate-pagination > div { display: flex; align-items: center; gap: 9px; }
.clearance-candidate-load, .clearance-candidate-complete { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 15px; padding: 13px 14px; border-left: 4px solid var(--accent); background: #f1f8f7; }
.clearance-candidate-load > div, .clearance-candidate-complete { color: #496169; font-size: 11px; }
.clearance-candidate-load > div { display: grid; gap: 2px; }
.clearance-candidate-load button { flex: 0 0 auto; }
.clearance-candidate-complete b { color: var(--ink); }

.clearance-evidence-snapshot {
  margin: 14px 0;
  padding: 22px;
  border: 1px solid #bfcfda;
  border-top: 4px solid #365c78;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0%, #f5f8fb 100%);
  box-shadow: 0 8px 22px rgba(32, 53, 62, .06);
}

.clearance-evidence-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.clearance-evidence-heading h3 { margin: 4px 0 5px; font-size: 19px; }
.clearance-evidence-heading p { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.clearance-evidence-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-top: 17px; overflow: hidden; border: 1px solid #d8e1e6; border-radius: 8px; background: #d8e1e6; }
.clearance-evidence-facts > div { min-width: 0; padding: 12px 13px; background: #fff; }
.clearance-evidence-facts span, .clearance-evidence-facts b { display: block; }
.clearance-evidence-facts span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.clearance-evidence-facts b { margin-top: 4px; font-size: 12px; overflow-wrap: anywhere; }
.clearance-copy-id { width: auto; min-height: 0; margin-top: 5px; padding: 0; border: 0; background: transparent; color: var(--accent-dark); font-size: 10px; font-weight: 750; text-align: left; text-decoration: underline; box-shadow: none; }
.clearance-copy-id:hover { background: transparent; color: var(--ink); box-shadow: none; transform: none; }
.clearance-evidence-comparison { margin-top: 14px; border: 1px solid #d8e1e6; border-radius: 8px; background: #fff; }
.clearance-evidence-comparison > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 14px; cursor: pointer; list-style: none; }
.clearance-evidence-comparison > summary::-webkit-details-marker { display: none; }
.clearance-evidence-comparison > summary > span:first-child { display: grid; gap: 2px; }
.clearance-evidence-comparison summary small { color: var(--muted); font-weight: 500; }
.clearance-evidence-comparison > summary > span:last-child { padding: 4px 8px; border-radius: 999px; background: #eef3f6; color: #52616c; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.clearance-evidence-deltas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 14px; border-top: 1px solid #d8e1e6; }
.clearance-evidence-deltas > div { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 12px; border-radius: 7px; background: #f7fafb; }
.clearance-evidence-deltas span { display: grid; gap: 2px; min-width: 0; color: var(--muted); font-size: 11px; }
.clearance-evidence-deltas span b { color: var(--ink); overflow-wrap: anywhere; }
.clearance-evidence-deltas small { color: var(--muted); overflow-wrap: anywhere; }
.clearance-evidence-first, .clearance-evidence-error { display: grid; gap: 3px; margin-top: 14px; padding: 12px 14px; border-left: 4px solid #365c78; background: #eef4f8; color: #50636f; font-size: 11px; }
.clearance-evidence-error { grid-template-columns: minmax(0, 1fr) auto; border-left-color: var(--danger); background: #fff5f5; }
.clearance-evidence-error b { grid-column: 1; color: var(--ink); }
.clearance-evidence-error span { grid-column: 1; }
.clearance-evidence-error button { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.clearance-evidence-boundary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #d8e1e6; color: var(--muted); font-size: 11px; }

.clearance-history-library { display: grid; gap: 14px; }
.clearance-history-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px; border: 1px solid #cbdcd9; border-top: 4px solid #365c78; border-radius: 10px; background: linear-gradient(135deg, #fff 0%, #f4f8fa 100%); box-shadow: 0 8px 24px rgba(32,53,62,.06); }
.clearance-history-header h2 { margin: 4px 0 5px; font-size: 23px; }
.clearance-history-header p { max-width: 720px; margin: 0; color: var(--muted); }
.clearance-history-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #d7e1e5; border-radius: 9px; background: #d7e1e5; }
.clearance-history-stats > div { padding: 15px 17px; background: #fff; }
.clearance-history-stats b, .clearance-history-stats span { display: block; }
.clearance-history-stats b { color: var(--accent-dark); font-size: 22px; }
.clearance-history-stats span { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.clearance-history-filters { display: grid; grid-template-columns: minmax(230px, 1fr) repeat(2, minmax(170px, .45fr)) auto; align-items: end; gap: 10px; padding: 15px; border: 1px solid #d7e1e5; border-radius: 9px; background: #f7fafb; }
.clearance-history-filters label { margin: 0; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.clearance-history-filters input, .clearance-history-filters select { margin-top: 5px; background: #fff; text-transform: none; }
.clearance-history-selection { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 15px; border-left: 4px solid #365c78; background: #eef4f8; }
.clearance-history-selection > div { display: grid; gap: 2px; }
.clearance-history-selection span { color: var(--muted); font-size: 11px; }
.clearance-history-list { display: grid; gap: 10px; }
.clearance-history-card { position: relative; display: grid; gap: 13px; padding: 18px 18px 18px 48px; border: 1px solid #d4dfe4; border-radius: 6px; background: #fff; box-shadow: 0 5px 16px rgba(32,53,62,.04); }
.clearance-history-card.selected { border-color: var(--forest-300); box-shadow: inset 0 0 0 2px rgba(36,107,101,.12), 0 5px 16px rgba(32,53,62,.05); }
.clearance-history-series { display: grid; gap: 10px; padding: 12px; border: 1px solid #cbd9de; border-left: 4px solid #365c78; background: #f4f7f8; }
.clearance-history-series-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 2px 4px; }
.clearance-history-series-heading > div { display: grid; gap: 2px; }
.clearance-history-series-heading > span { color: var(--muted); font-size: 11px; }
.clearance-history-series > details { padding: 0 4px 4px; }
.clearance-history-series > details > summary { cursor: pointer; color: #365c78; font-size: 12px; font-weight: 800; }
.clearance-history-series-earlier { display: grid; gap: 8px; margin-top: 10px; }
.clearance-history-check { position: absolute; top: 20px; left: 16px; display: grid; justify-items: center; gap: 2px; margin: 0; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.clearance-history-check input { margin: 0; }
.clearance-history-card-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.clearance-history-card-main h3 { margin: 3px 0; font-size: 18px; }
.clearance-history-card-main p { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; }
.clearance-history-card-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 11px; border-top: 1px solid #e0e7ea; color: #52646c; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.clearance-history-list .actions { justify-content: flex-end; }
.clearance-history-list .actions > * { width: auto; }
.clearance-history-focus { padding: 22px; border: 1px solid #bdced8; border-radius: 10px; background: #fff; box-shadow: 0 10px 26px rgba(32,53,62,.07); }
.clearance-history-focus-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.clearance-history-focus-heading h3 { margin: 4px 0 5px; font-size: 21px; overflow-wrap: anywhere; }
.clearance-history-focus-heading p { margin: 0; color: var(--muted); }
.clearance-history-focus-heading .actions { flex: 0 0 auto; }
.clearance-history-receipt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 17px; overflow: hidden; border: 1px solid #d8e1e6; border-radius: 8px; background: #d8e1e6; }
.clearance-history-receipt > div { min-width: 0; padding: 12px 14px; background: #f9fbfc; }
.clearance-history-receipt span, .clearance-history-receipt b { display: block; }
.clearance-history-receipt span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.clearance-history-receipt b { margin-top: 3px; font-size: 11px; overflow-wrap: anywhere; }
.clearance-history-receipt .verified { color: var(--success); }
.clearance-history-receipt .failed { color: var(--danger); }
.clearance-history-scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.clearance-history-scope > div { padding: 12px 14px; border: 1px solid #dce5e8; border-radius: 8px; background: #fff; }
.clearance-history-scope span, .clearance-history-scope b { display: block; }
.clearance-history-scope span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.clearance-history-scope b { margin-top: 4px; font-size: 12px; overflow-wrap: anywhere; }
.clearance-history-export { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 14px; border-left: 4px solid var(--accent); background: #f0f8f7; }
.clearance-history-export > div { display: grid; flex: 1; gap: 2px; }
.clearance-history-export span { color: var(--muted); font-size: 11px; }
.clearance-history-export .button { width: auto; flex: 0 0 auto; }
.clearance-history-source-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 9px; margin-top: 14px; }
.clearance-history-source-grid article { padding: 13px 14px; border: 1px solid #dce5e8; border-radius: 8px; background: #f9fbfc; }
.clearance-history-source-grid article > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.clearance-history-source-grid p { margin: 8px 0 2px; color: #465b64; font-size: 11px; }
.clearance-history-source-grid small { color: var(--muted); overflow-wrap: anywhere; }
.clearance-history-candidates { margin-top: 14px; border: 1px solid #d8e1e6; border-radius: 8px; }
.clearance-history-candidates > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px; cursor: pointer; list-style: none; }
.clearance-history-candidates > summary::-webkit-details-marker { display: none; }
.clearance-history-candidates summary > span:first-child { display: grid; gap: 2px; }
.clearance-history-candidates summary small { color: var(--muted); font-weight: 500; }
.clearance-history-candidates summary > span:last-child { color: var(--accent-dark); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.clearance-history-candidates > div { display: grid; gap: 7px; padding: 14px; border-top: 1px solid #d8e1e6; }
.clearance-history-candidates article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 11px 12px; border: 1px solid #e1e8eb; border-radius: 7px; background: #fafcfd; }
.clearance-history-candidates article > div { display: grid; gap: 2px; }
.clearance-history-candidates article span, .clearance-history-candidates article p, .clearance-history-candidates article a { color: var(--muted); font-size: 11px; }
.clearance-history-candidates article p { grid-column: 1 / -1; margin: 4px 0 0; }
.clearance-history-candidates article a { grid-column: 1 / -1; }
.clearance-history-delta-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.clearance-history-delta-summary > div { padding: 13px; border: 1px solid #dce5e8; border-radius: 8px; text-align: center; }
.clearance-history-delta-summary b, .clearance-history-delta-summary span { display: block; }
.clearance-history-delta-summary b { color: var(--accent-dark); font-size: 23px; }
.clearance-history-delta-summary span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.clearance-history-deltas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.clearance-history-deltas > div { display: grid; align-content: start; gap: 7px; padding: 13px; border-radius: 8px; background: #f7fafb; }
.clearance-history-deltas span { display: grid; gap: 2px; color: var(--muted); font-size: 11px; }
.clearance-history-deltas strong { color: var(--ink); overflow-wrap: anywhere; }
.clearance-history-boundary { padding: 12px 14px; border-left: 4px solid #a86e00; background: #fff7e8; color: #675535; font-size: 11px; }
.clearance-history-loading, .clearance-history-empty, .clearance-history-error { display: grid; gap: 5px; padding: 28px; border: 1px dashed #cbd8de; border-radius: 9px; background: #f9fbfc; color: var(--muted); text-align: center; }
.clearance-history-empty button { justify-self: center; margin-top: 6px; }
.clearance-history-error { border-style: solid; border-color: #e7bcbc; background: #fff6f6; color: #7b4040; }
.clearance-history-limit { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.clearance-reopen-notice { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding: 15px 17px; border: 1px solid #b8d7d2; border-left: 4px solid var(--accent); border-radius: 8px; background: #eef8f6; }
.clearance-reopen-notice > div { display: grid; gap: 3px; }
.clearance-reopen-notice p { margin: 0; color: var(--forest-800); font-size: 11px; }

.clearance-results-header {
  align-items: flex-end;
  margin: 0 0 18px;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line);
}

.clearance-results-header h2 { margin-bottom: 7px; font-size: 23px; }
.clearance-results-header .clearance-refresh-summary { min-height: 0; margin: 6px 0 0; font-size: 11px; }
.clearance-results-actions .clearance-refresh-primary { background: linear-gradient(var(--forest-700), var(--accent)); color: var(--white); }

.clearance-journey .clearance-briefing {
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid #cbdcd9;
  border-top: 4px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(32, 53, 62, .07);
}

.clearance-journey #clearanceResultsView > .stats { margin-top: 14px; }
.clearance-journey #clearanceReviewView > .section-heading { margin: 8px 0 12px; }

.clearance-review-empty {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 190px;
  padding: 28px;
  border: 1px solid #cbdcd9;
  border-radius: 10px;
  background: linear-gradient(120deg, #ffffff 0%, #f3faf8 100%);
  box-shadow: 0 10px 28px rgba(32, 53, 62, .06);
  text-align: left;
}

.clearance-review-empty-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #dff2ef;
  color: var(--accent-dark);
  font-size: 22px;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px #aed8d2;
}

.clearance-review-empty-copy { min-width: 0; }
.clearance-review-empty-copy .eyebrow { color: var(--accent-dark); }
.clearance-review-empty-copy > b { display: block; margin: 4px 0 5px; color: var(--ink); font-size: 20px; }
.clearance-review-empty-copy p { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.45; }
.clearance-review-promises { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.clearance-review-promises span { padding: 5px 8px; border: 1px solid #d0e4e1; border-radius: 999px; background: var(--white); color: #496169; font-size: 10px; font-weight: 750; }
.clearance-review-lineage { display: grid; gap: 8px; margin: 10px 0; padding: 10px; border: 1px solid #cfe2df; border-radius: 10px; background: #f4faf9; }
.clearance-review-lineage > span { display: grid; gap: 2px; }
.clearance-review-lineage b { color: var(--forest-900); font-size: 11px; }
.clearance-review-lineage small { color: var(--muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.clearance-review-lineage > div { display: flex; flex-wrap: wrap; gap: 6px; }
.clearance-review-lineage .button { min-height: 30px; padding: 6px 9px; }
.clearance-review-lineage.missing { border-color: #e5dac2; background: #fffaf0; }
.clearance-review-lineage.missing b { color: #745b26; }
.clearance-review-lineage.official { border-color: var(--forest-300); border-left: 4px solid var(--forest-700); background: var(--forest-50); }
.clearance-coverage-recovery { display: grid; gap: 14px; margin: 14px 0 12px; padding: 18px; border: 1px solid var(--forest-300); border-left: 4px solid var(--forest-700); border-radius: 12px; background: linear-gradient(135deg, var(--forest-50), var(--white) 72%); box-shadow: 0 8px 24px rgba(18,61,58,.06); }
.clearance-coverage-recovery.needs-recovery { border-color: #dbc898; border-left-color: #98752c; background: linear-gradient(135deg, #fff9eb, var(--white) 72%); }
.clearance-recovery-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.clearance-recovery-header > div { min-width: 0; }
.clearance-recovery-header h3 { margin: 4px 0; color: var(--forest-900); font-size: 19px; }
.clearance-recovery-header p { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.clearance-recovery-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.clearance-recovery-facts > div { display: grid; gap: 3px; min-width: 0; padding: 10px 11px; border: 1px solid rgba(36,107,101,.16); border-radius: 8px; background: rgba(255,255,255,.82); }
.clearance-recovery-facts span, .clearance-recovery-records article > div > span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.clearance-recovery-facts b { overflow-wrap: anywhere; color: var(--ink); font-size: 12px; }
.clearance-recovery-records { display: grid; gap: 8px; }
.clearance-recovery-records article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px; border: 1px solid #e4d6b5; border-radius: 9px; background: var(--white); }
.clearance-recovery-records article > div:first-child { display: grid; gap: 3px; min-width: 0; }
.clearance-recovery-records article b { color: var(--forest-900); font-size: 14px; }
.clearance-recovery-records article small { color: var(--muted); }
.clearance-recovery-records .actions { justify-content: flex-end; margin: 0; }
.clearance-recovery-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid rgba(36,107,101,.16); }
.clearance-recovery-footer > span, .clearance-recovery-loading { display: grid; gap: 3px; min-width: 0; }
.clearance-recovery-footer b, .clearance-recovery-loading b { color: var(--forest-900); font-size: 11px; }
.clearance-recovery-footer small, .clearance-recovery-loading small { color: var(--muted); line-height: 1.4; }
.clearance-official-intake { margin: 14px 0 18px; overflow: hidden; border: 1px solid var(--forest-300); border-left: 4px solid var(--forest-700); border-radius: 10px; background: var(--white); box-shadow: 0 6px 18px rgba(32,53,62,.04); }
.clearance-official-intake > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; cursor: pointer; list-style: none; }
.clearance-official-intake > summary::-webkit-details-marker { display: none; }
.clearance-official-intake > summary > span:first-child { display: grid; gap: 3px; min-width: 0; }
.clearance-official-intake > summary b { color: var(--forest-900); font-size: 15px; }
.clearance-official-intake > summary small { color: var(--muted); }
.clearance-official-intake form { display: grid; gap: 14px; padding: 18px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.clearance-official-intro { display: grid; gap: 3px; padding: 11px 13px; border-left: 4px solid var(--forest-700); background: var(--forest-50); color: var(--muted); font-size: 11px; line-height: 1.45; }
.clearance-official-intro b { color: var(--forest-900); }
.clearance-official-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.clearance-official-fields label { display: grid; align-content: start; gap: 6px; min-width: 0; }
.clearance-official-fields .wide { grid-column: 1 / -1; }
.clearance-official-confirm { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; padding: 12px; border: 1px solid var(--forest-300); border-radius: 8px; background: var(--white); }
.clearance-official-confirm input { margin-top: 3px; }
.clearance-official-confirm span { display: grid; gap: 2px; }
.clearance-official-confirm b { color: var(--forest-900); font-size: 11px; }
.clearance-official-confirm small { color: var(--muted); line-height: 1.4; }
.clearance-official-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.clearance-official-actions [role=status] { flex: 1 1 240px; color: var(--muted); font-size: 11px; }
.clearance-official-actions [role=status].success { color: var(--forest-800); font-weight: 700; }
.clearance-official-actions [role=status].error { color: var(--risk); font-weight: 700; }
@media (max-width: 720px) {
  .clearance-coverage-recovery { padding: 14px; }
  .clearance-recovery-header, .clearance-recovery-footer { align-items: stretch; flex-direction: column; }
  .clearance-recovery-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clearance-recovery-records article { grid-template-columns: minmax(0, 1fr); }
  .clearance-recovery-records .actions { display: grid; grid-template-columns: 1fr; }
  .clearance-recovery-records .actions .button, .clearance-recovery-records .actions button, .clearance-recovery-footer button { width: 100%; }
  .clearance-official-intake > summary { align-items: flex-start; padding: 14px; }
  .clearance-official-intake > summary > .button { display: none; }
  .clearance-official-intake form { padding: 14px; }
  .clearance-official-fields { grid-template-columns: minmax(0, 1fr); }
  .clearance-official-fields .wide { grid-column: auto; }
  .clearance-official-actions > button, .clearance-official-actions > .button { width: 100%; }
}
.clearance-review-sync { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid #bfded9; border-radius: 10px; background: #f2faf8; }
.clearance-review-sync > span { display: grid; gap: 3px; min-width: 0; }
.clearance-review-sync > span b { color: var(--forest-900); font-size: 12px; }
.clearance-review-sync > span small { color: var(--muted); line-height: 1.4; }
.clearance-review-sync > div { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.clearance-review-sync.loading, .clearance-review-sync.saving { border-color: #b9d0dc; background: #f3f8fb; }
.clearance-review-sync.attention, .clearance-review-sync.offline { border-color: #e5d1a6; background: #fff9ed; }
.clearance-review-sync.conflict { border-color: #dfb6b6; background: #fff5f5; }
.clearance-review-history { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.clearance-review-history summary { color: var(--accent-dark); cursor: pointer; font-size: 11px; font-weight: 750; }
.clearance-review-history > div { display: grid; gap: 6px; margin-top: 8px; }
.clearance-review-history article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.clearance-review-history article > span:first-child { display: grid; gap: 2px; }
.clearance-review-history article > span:nth-child(2) { color: var(--muted); font-size: 10px; text-align: right; }
.clearance-review-history article > small { grid-column: 1 / -1; color: var(--muted); }
.clearance-decision-workspace { display: grid; gap: 18px; padding-bottom: 24px; }
.clearance-decision-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 8px 0 18px; border-bottom: 1px solid var(--line); }
.clearance-decision-header h2 { margin: 4px 0 6px; font-size: 24px; }
.clearance-decision-header p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.5; }
.clearance-decision-current { display: grid; gap: 2px; min-width: 220px; padding: 13px 15px; border: 1px solid #a8d1ca; border-radius: 10px; background: #eef8f6; }
.clearance-decision-current.empty { border-color: var(--line); background: var(--surface-soft); }
.clearance-decision-current span, .clearance-decision-current small { color: var(--muted); font-size: 10px; }
.clearance-decision-current b { color: var(--accent-dark); font-size: 18px; }
.clearance-decision-message { padding: 10px 12px; border: 1px solid #e5d1a6; border-radius: 9px; background: #fff9ed; color: #745b26; }
.clearance-decision-briefing { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.5fr); gap: 16px 24px; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); box-shadow: 0 6px 18px rgba(32, 53, 62, .04); }
.clearance-decision-briefing h3 { margin: 4px 0 3px; font-size: 18px; }
.clearance-decision-briefing p { margin: 0; color: var(--muted); }
.clearance-decision-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.clearance-decision-facts span { display: grid; align-content: center; gap: 2px; min-height: 64px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 10px; }
.clearance-decision-facts b { color: var(--ink); font-size: 20px; }
.clearance-decision-boundary { grid-column: 1 / -1; display: flex; gap: 8px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.clearance-decision-boundary b { color: #745b26; flex: 0 0 auto; }
.clearance-decision-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 18px; align-items: start; }
.clearance-decision-form, .clearance-decision-records { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.clearance-decision-form h3, .clearance-decision-records h3 { margin: 4px 0; font-size: 18px; }
.clearance-decision-form > div > p, .clearance-decision-records > div > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.clearance-decision-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.clearance-decision-check input { margin-top: 3px; }
.clearance-decision-check span { display: grid; gap: 2px; }
.clearance-decision-check small { color: var(--muted); line-height: 1.4; }
.clearance-decision-submit { display: flex; align-items: center; gap: 12px; }
.clearance-decision-submit span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.clearance-decision-form button:disabled { cursor: not-allowed; opacity: .48; }
.clearance-decision-history { display: grid; gap: 10px; }
.clearance-decision-history article { display: grid; gap: 10px; padding: 13px; border: 1px solid var(--line); border-left: 4px solid #9aaab2; border-radius: 9px; background: var(--surface-soft); }
.clearance-decision-history article.current { border-left-color: var(--accent); background: #f2faf8; }
.clearance-decision-history article h3 { margin: 3px 0; font-size: 16px; }
.clearance-decision-history article p { margin: 0; color: var(--ink); line-height: 1.45; }
.clearance-decision-history-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--muted); font-size: 10px; }
.clearance-decision-history-meta code { overflow-wrap: anywhere; }
.clearance-decision-empty-history { display: grid; gap: 4px; padding: 18px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); text-align: center; }
.clearance-decision-empty-history b { color: var(--ink); }
.clearance-review-linker { display: grid; gap: 8px; margin: 10px 0; padding: 11px; border: 1px solid var(--forest-300); border-radius: 10px; background: #f1faf8; }
.clearance-review-linker > div:first-child { display: grid; gap: 2px; }
.clearance-review-linker > div:first-child span, .clearance-review-linker > p { color: var(--muted); font-size: 10px; line-height: 1.4; }
.clearance-review-linker article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px; border: 1px solid #d4e6e3; border-radius: 8px; background: var(--white); }
.clearance-review-linker article > span { display: grid; gap: 2px; min-width: 0; }
.clearance-review-linker article small { color: var(--muted); overflow-wrap: anywhere; }
.clearance-review-linker article > div { display: flex; flex-wrap: wrap; gap: 6px; }
.clearance-review-linker > p { margin: 0; }
@media (max-width: 720px) {
  .clearance-review-sync { align-items: stretch; flex-direction: column; }
  .clearance-review-sync > div { justify-content: space-between; }
  .clearance-review-history article { grid-template-columns: 1fr; }
  .clearance-review-history article > span:nth-child(2) { text-align: left; }
  .clearance-decision-header { align-items: stretch; flex-direction: column; }
  .clearance-decision-current { min-width: 0; }
  .clearance-decision-briefing, .clearance-decision-layout { grid-template-columns: 1fr; }
  .clearance-decision-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clearance-decision-facts span:last-child { grid-column: 1 / -1; }
  .clearance-decision-submit { align-items: stretch; flex-direction: column; }
}
.clearance-evidence-health { display: grid; gap: 18px; padding-bottom: 18px; }
.clearance-evidence-health-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 8px 0 18px; border-bottom: 1px solid var(--line); }
.clearance-evidence-health-header h2 { margin: 4px 0 6px; font-size: 24px; }
.clearance-evidence-health-header p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.5; }
.clearance-evidence-health-header .actions { flex: 0 0 auto; justify-content: flex-end; }
.clearance-evidence-health-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.clearance-evidence-health-stats button { display: grid; gap: 2px; min-height: 82px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--muted); text-align: left; box-shadow: none; }
.clearance-evidence-health-stats button:hover, .clearance-evidence-health-stats button.active { border-color: var(--forest-300); background: #eef8f6; color: var(--ink); }
.clearance-evidence-health-stats b { color: var(--ink); font-size: 24px; }
.clearance-evidence-health-stats span { font-size: 11px; font-weight: 750; }
.clearance-evidence-health-scope { margin: -3px 0 0; padding: 9px 11px; border-left: 3px solid var(--accent); background: #f2f9f8; color: var(--muted); font-size: 11px; }
.clearance-evidence-health-scope b { color: var(--ink); }
.clearance-evidence-health-checked { margin: -8px 0 0; color: var(--muted); font-size: 11px; }
.clearance-evidence-health-group { display: grid; gap: 10px; }
.clearance-evidence-health-group > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2px 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.clearance-evidence-health-group > div:first-child h3 { margin: 0; font-size: 17px; }
.clearance-evidence-health-group > div:first-child p { margin: 0; color: var(--muted); font-size: 11px; }
.clearance-evidence-health-group > div:first-child > span { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent-dark); font-size: 22px; font-weight: 850; }
.clearance-evidence-health-list { display: grid; gap: 10px; }
.clearance-evidence-health-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-left: 4px solid #99aab3; border-radius: 9px; background: var(--white); box-shadow: 0 5px 16px rgba(32, 53, 62, .04); }
.clearance-evidence-health-card.linked { border-left-color: var(--accent); }
.clearance-evidence-health-card.linkable { border-left-color: #bd8421; }
.clearance-evidence-health-card.issue, .clearance-evidence-health-card.unavailable { border-left-color: #b26767; }
.clearance-evidence-health-main { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.clearance-evidence-health-main h3 { margin: 0 0 3px; font-size: 16px; }
.clearance-evidence-health-main p, .clearance-evidence-health-card > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.clearance-evidence-health-status { color: var(--accent-dark); font-size: 10px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.clearance-evidence-health-card.linkable .clearance-evidence-health-status { color: #805910; }
.clearance-evidence-health-card.unavailable .clearance-evidence-health-status, .clearance-evidence-health-card.issue .clearance-evidence-health-status { color: #8a4242; }
.clearance-evidence-health-receipt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.clearance-evidence-health-receipt span { display: grid; gap: 2px; padding: 9px 10px; border-radius: 7px; background: #f4f7f8; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.clearance-evidence-health-receipt b { color: var(--ink); font-size: 11px; overflow-wrap: anywhere; text-transform: none; }
.clearance-evidence-health-sources { display: flex; flex-wrap: wrap; gap: 6px; }
.clearance-evidence-source-chip { display: inline-flex; gap: 5px; padding: 5px 8px; border: 1px solid #d5e3e1; border-radius: 999px; background: #f5faf9; color: var(--forest-800); font-size: 9px; }
.clearance-evidence-source-chip b { color: var(--forest-900); }
.clearance-evidence-source-chip.muted { border-color: var(--line); background: #f7f8f8; color: var(--muted); }
.clearance-evidence-health-warning { padding: 10px 12px; border: 1px solid #e5c9a6; border-radius: 7px; background: #fff8ec; color: #745b26; font-size: 11px; line-height: 1.45; }
.clearance-evidence-health-matches { display: grid; gap: 8px; }
.clearance-evidence-health-matches > div { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(240px, 1fr) auto; align-items: center; gap: 12px; padding: 11px; border: 1px solid #dce5e8; border-radius: 8px; background: #f9fbfb; }
.clearance-evidence-health-matches > div > span { display: grid; gap: 2px; }
.clearance-evidence-health-matches small { color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.clearance-evidence-health-card details { color: var(--muted); font-size: 10px; }
.clearance-evidence-health-card code { display: block; margin-top: 6px; padding: 8px; border-radius: 6px; background: #f4f6f7; color: var(--ink); overflow-wrap: anywhere; white-space: normal; }
.clearance-evidence-health-empty { display: grid; gap: 5px; justify-items: center; padding: 28px; border: 1px dashed #cbd8de; border-radius: 9px; background: #f9fbfc; color: var(--muted); text-align: center; }
.clearance-evidence-health-boundary { display: flex; gap: 12px; padding: 12px 14px; border-left: 4px solid #a86e00; background: #fff7e8; color: #675535; font-size: 11px; line-height: 1.45; }
.clearance-evidence-health-boundary b { flex: 0 0 auto; }
.clearance-history-candidates article.linked-review-candidate { border-color: var(--forest-300); box-shadow: 0 0 0 2px rgba(36, 107, 101, .12); background: #f2fbf9; }
.clearance-history-linked-label { display: inline-flex; width: max-content; margin: 4px 0; color: var(--forest-800); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.clearance-review-empty-actions { display: grid; gap: 8px; min-width: 190px; }
.clearance-review-empty-actions button { width: 100%; }

@media (max-width: 1280px) {
  .clearance-journey .clearance-stage-tabs button {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 4px 9px;
    min-height: 78px;
    padding: 10px 11px;
  }
  .clearance-stage-number {
    grid-row: 1 / span 2;
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .clearance-stage-copy { align-self: end; }
  .clearance-stage-copy small { display: none; }
  .clearance-stage-state {
    grid-column: 2;
    align-self: start;
    line-height: 1.2;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .clearance-journey .clearance-flow-grid { grid-template-columns: minmax(0, 1fr); }
  .clearance-search-plan { min-height: 360px; }
  .clearance-stage-state { display: none; }
  .clearance-review-empty { grid-template-columns: 52px minmax(0, 1fr); }
  .clearance-review-empty-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clearance-evidence-health-header { display: grid; }
  .clearance-evidence-health-header .actions { justify-content: flex-start; }
  .clearance-evidence-health-matches > div { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .main-workspace[data-workspace="clearance"] .workspace-masthead { padding: 18px; }
  .clearance-journey { scroll-margin-top: 58px; }
  .clearance-journey .clearance-stage-tabs { position: sticky; top: 56px; z-index: 6; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-inline: 0; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.97); }
  .clearance-journey .clearance-stage-tabs button { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; min-height: 64px; padding: 7px 3px; text-align: center; }
  .clearance-stage-number { width: 24px; height: 24px; font-size: 11px; }
  .clearance-stage-copy b { font-size: 10px; }
  .clearance-stage-copy small { display: none; }
  .clearance-journey .clearance-step,
  .clearance-search-plan { padding: 19px; }
  .clearance-search-plan { min-height: 0; }
  .clearance-source-confidence { padding: 18px; }
  .clearance-confidence-heading { display: grid; }
  .clearance-confidence-heading .pill { justify-self: start; }
  .clearance-confidence-grid { grid-template-columns: minmax(0, 1fr); }
  .clearance-quality-heading, .clearance-quality-footer, .clearance-quality-pass { display: grid; }
  .clearance-quality-score { justify-content: flex-start; }
  .clearance-quality-failures > span { display: grid; gap: 2px; }
  .clearance-international-heading { display: grid; }
  .clearance-international-heading .pill { justify-self: start; }
  .clearance-international-facts { grid-template-columns: minmax(0, 1fr); }
  .clearance-confidence-boundary { display: grid; }
  .clearance-all-candidates { padding: 18px; }
  .clearance-all-candidates-heading, .clearance-candidate-pagination, .clearance-candidate-load, .clearance-candidate-complete { display: grid; justify-items: stretch; }
  .clearance-candidate-count { justify-items: start; }
  .clearance-candidate-filters { grid-template-columns: minmax(0, 1fr); }
  .clearance-candidate-main { display: grid; }
  .clearance-candidate-main .pill { justify-self: start; }
  .clearance-candidate-pagination > div { justify-content: space-between; }
  .clearance-candidate-load button { width: 100%; }
  .clearance-evidence-snapshot { padding: 18px; }
  .clearance-evidence-heading, .clearance-evidence-boundary { display: grid; }
  .clearance-evidence-heading .pill { justify-self: start; }
  .clearance-evidence-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clearance-evidence-deltas { grid-template-columns: 1fr; }
  .clearance-evidence-error { grid-template-columns: 1fr; }
  .clearance-evidence-error button { grid-column: 1; grid-row: auto; width: 100%; }
  .clearance-history-header, .clearance-history-card-main, .clearance-history-focus-heading, .clearance-history-export, .clearance-reopen-notice { display: grid; }
  .clearance-history-stats, .clearance-history-receipt, .clearance-history-scope, .clearance-history-delta-summary, .clearance-history-deltas { grid-template-columns: 1fr; }
  .clearance-history-filters { grid-template-columns: 1fr; }
  .clearance-history-filters button, .clearance-history-header > button, .clearance-history-selection > button, .clearance-history-focus-heading .actions, .clearance-history-export .button, .clearance-reopen-notice > button { width: 100%; }
  .clearance-history-selection { display: grid; }
  .clearance-history-card { padding: 17px 17px 17px 45px; }
  .clearance-history-series-heading { align-items: flex-start; flex-direction: column; }
  .clearance-history-card-main .pill { justify-self: start; }
  .clearance-history-list .actions { display: grid; }
  .clearance-history-list .actions > * { width: 100%; }
  .clearance-history-candidates article { grid-template-columns: 1fr; }
  .clearance-history-candidates article .pill { justify-self: start; }
  .clearance-results-header { align-items: stretch; }
  .clearance-review-empty { grid-template-columns: 1fr; justify-items: start; padding: 22px; }
  .clearance-review-empty-actions { grid-column: auto; grid-template-columns: 1fr; width: 100%; }
  .clearance-review-linker article { grid-template-columns: 1fr; }
  .clearance-evidence-health-stats, .clearance-evidence-health-receipt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clearance-evidence-health-main { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .clearance-evidence-health-main .pill { justify-self: start; }
  .clearance-evidence-health-header .actions, .clearance-evidence-health-card .actions { display: grid; width: 100%; }
  .clearance-evidence-health-header .actions > *, .clearance-evidence-health-card .actions > * { width: 100%; }
  .clearance-evidence-health-boundary { display: grid; }
}

.clearance-common-law-lane,
.clearance-article-sixter-lane,
.clearance-filter-details {
  margin: 14px 0;
  border: 1px solid #cbdcd9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(32, 53, 62, .05);
}

/* Candidate-first clearance workspace */
.clearance-candidate-workspace {
  display: grid;
  gap: 16px;
  margin: 2px 0 20px;
  padding: 24px;
  border: 1px solid var(--forest-300);
  border-radius: 16px;
  background: linear-gradient(145deg, #f7fcfa 0%, #edf8f4 100%);
  box-shadow: 0 14px 34px rgba(20, 76, 65, .08);
}
.clearance-candidate-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.clearance-candidate-heading h2 { margin: 5px 0 6px; color: var(--forest-900); font-size: clamp(23px, 3vw, 32px); letter-spacing: -.025em; }
.clearance-candidate-heading p { max-width: 700px; margin: 0; color: #526a67; line-height: 1.5; }
.clearance-candidate-heading .eyebrow { color: var(--forest-700); }
.clearance-candidate-picker { flex: 0 0 min(340px, 36%); }
.clearance-candidate-picker { display: grid; gap: 7px; }
.clearance-candidate-picker > button { justify-self: end; }
.clearance-candidate-picker label { display: grid; gap: 6px; color: var(--forest-900); font-size: 11px; font-weight: 800; }
.clearance-candidate-picker select { min-height: 44px; border-color: #afd0c8; background: rgba(255,255,255,.92); }
.clearance-candidate-lifecycle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid #b9d9d1; border-radius: 11px; background: rgba(255,255,255,.75); }
.clearance-candidate-lifecycle button { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 58px; padding: 11px 13px; border: 0; border-right: 1px solid #d5e7e2; border-radius: 0; background: transparent; color: #58706d; box-shadow: none; text-align: left; }
.clearance-candidate-lifecycle button:last-child { border-right: 0; }
.clearance-candidate-lifecycle button span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #bcd3ce; border-radius: 50%; background: #fff; color: #607875; font-size: 11px; }
.clearance-candidate-lifecycle button b { font-size: 12px; line-height: 1.25; }
.clearance-candidate-lifecycle button:hover:not(:disabled) { background: #f0f8f5; color: var(--forest-900); }
.clearance-candidate-lifecycle button.active { background: var(--forest-700); color: #fff; }
.clearance-candidate-lifecycle button.active span { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.15); color: #fff; }
.clearance-candidate-lifecycle button.reject.active { background: #735052; }
.clearance-candidate-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, .8fr); border: 1px solid #c7dfda; border-radius: 11px; background: rgba(255,255,255,.86); }
.clearance-candidate-summary > div { display: grid; align-content: center; gap: 3px; min-height: 102px; padding: 16px; border-right: 1px solid #dbe9e6; min-width: 0; }
.clearance-candidate-summary > div:last-child { border-right: 0; }
.clearance-candidate-summary small { color: #6a7e7b; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.clearance-candidate-summary b { color: var(--forest-900); font-size: 18px; }
.clearance-candidate-summary span { overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.4; text-overflow: ellipsis; }
.clearance-candidate-primary-action { background: #f5faf8; }
.clearance-candidate-primary-action button { width: 100%; background: var(--forest-700); }
.clearance-candidate-adopted { color: var(--forest-800) !important; font-size: 12px !important; font-weight: 850; }
.clearance-candidate-new { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 18px; border: 1px dashed #9cc8be; border-radius: 11px; background: rgba(255,255,255,.7); }
.clearance-candidate-new span { display: grid; gap: 3px; }
.clearance-candidate-new b { color: var(--forest-900); font-size: 15px; }
.clearance-candidate-new small { color: var(--muted); }
.clearance-candidate-new button { flex: 0 0 auto; background: var(--forest-700); }
.clearance-candidate-boundary { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid #cfe2de; color: #5d716e; font-size: 10px; line-height: 1.45; }
.clearance-candidate-boundary b { flex: 0 0 auto; color: var(--forest-800); }
.clearance-candidate-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #e1c4aa; border-radius: 8px; background: #fff7eb; color: #744e24; font-size: 11px; }
.clearance-candidate-context { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 11px 14px; border: 1px solid #bddad4; border-left: 4px solid var(--forest-700); border-radius: 9px; background: #f2f9f7; }
.clearance-candidate-context > span:first-child { display: grid; gap: 1px; min-width: 150px; }
.clearance-candidate-context small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.clearance-candidate-context b { color: var(--forest-900); font-size: 14px; }
.clearance-candidate-context-facts { margin-left: auto; color: #5c726f; font-size: 10px; }
.clearance-candidate-context.empty { border-left-color: #9aaab2; background: #f7f9f9; }
.clearance-candidate-stage { padding: 5px 8px; border-radius: 999px; background: #dceee9; color: var(--forest-800); font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.clearance-candidate-stage.rejected { background: #eee4e4; color: #734a4d; }
.clearance-candidate-stage.approved { background: #d9eee4; color: #215d4d; }
.clearance-journey > .clearance-stage-view { padding-top: 20px; }
.clearance-journey #clearanceResultsView > .stats,
.clearance-journey #clearanceReviewStats { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.clearance-journey #clearanceResultsView > .stats .stat,
.clearance-journey #clearanceReviewStats .stat { border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.clearance-journey #clearanceResultsView > .stats .stat:last-child,
.clearance-journey #clearanceReviewStats .stat:last-child { border-right: 0; }
.clearance-journey #clearanceReviewView > .section-heading { padding-bottom: 13px; border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .clearance-candidate-heading { align-items: stretch; flex-direction: column; gap: 16px; }
  .clearance-candidate-picker { flex-basis: auto; }
  .clearance-candidate-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clearance-candidate-summary > div:nth-child(2) { border-right: 0; }
  .clearance-candidate-summary > div:nth-child(-n+2) { border-bottom: 1px solid #dbe9e6; }
}
@media (max-width: 620px) {
  .clearance-candidate-workspace { margin-inline: -1px; padding: 18px; border-radius: 12px; }
  .clearance-candidate-lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clearance-candidate-lifecycle button:nth-child(2) { border-right: 0; }
  .clearance-candidate-lifecycle button:nth-child(-n+2) { border-bottom: 1px solid #d5e7e2; }
  .clearance-candidate-summary { grid-template-columns: 1fr; }
  .clearance-candidate-summary > div { min-height: 84px; border-right: 0; border-bottom: 1px solid #dbe9e6; }
  .clearance-candidate-summary > div:last-child { border-bottom: 0; }
  .clearance-candidate-new, .clearance-candidate-context, .clearance-candidate-boundary { align-items: stretch; flex-direction: column; }
  .clearance-candidate-new button { width: 100%; }
  .clearance-candidate-context-facts { margin-left: 0; }
}

.clearance-common-law-lane { padding: 22px; }
.clearance-article-sixter-lane { display: grid; gap: 14px; padding: 22px; border-left: 4px solid var(--forest-700); }
.clearance-article-sixter-lane.limited { border-left-color: var(--warn); }
.clearance-sixter-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.clearance-sixter-heading h3 { margin: 3px 0 5px; color: var(--forest-900); }
.clearance-sixter-heading p { max-width: 760px; margin: 0; color: var(--muted); }
.clearance-sixter-status { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 16px; padding: 13px 15px; border: 1px solid #cfe2dc; border-radius: 8px; background: #f2f8f5; }
.clearance-sixter-status span { color: var(--muted); font-size: 11px; }
.clearance-sixter-results { display: grid; gap: 8px; }
.clearance-sixter-results article { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.clearance-sixter-results img, .clearance-sixter-monogram { width: 64px; height: 64px; border: 1px solid #d7e1df; border-radius: 7px; background: #f5f8f7; object-fit: contain; }
.clearance-sixter-monogram { display: grid; place-items: center; color: var(--forest-700); font-size: 14px; font-weight: 900; }
.clearance-sixter-record { display: grid; gap: 4px; min-width: 0; }
.clearance-sixter-record > div { display: grid; gap: 2px; }
.clearance-sixter-record p { margin: 0; color: #405a55; font-size: 11px; }
.clearance-sixter-actions { display: grid; justify-items: stretch; gap: 6px; min-width: 140px; }
.clearance-sixter-actions .pill { justify-content: center; }
.clearance-sixter-empty { display: grid; gap: 3px; padding: 16px; border: 1px dashed #b8ceca; border-radius: 8px; background: #f8fbfa; }
.clearance-sixter-empty span { color: var(--muted); font-size: 11px; }
.clearance-sixter-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.clearance-sixter-footer > span { display: grid; gap: 2px; max-width: 760px; }
.clearance-sixter-footer small { color: var(--muted); }
.clearance-sixter-footer > div { display: flex; flex: 0 0 auto; gap: 12px; font-size: 11px; font-weight: 800; }
.clearance-common-law-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.clearance-common-law-heading h3 { margin: 3px 0 5px; }
.clearance-common-law-heading p { max-width: 720px; margin: 0; color: var(--muted); }
.clearance-common-law-status { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; margin: 18px 0 14px; padding: 13px 15px; border-left: 4px solid #d18a00; background: #fff7e8; }
.clearance-common-law-status span { color: #675535; }
.clearance-common-law-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.clearance-common-law-links a { display: flex; align-items: center; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: #f7fafb; font-size: 12px; font-weight: 750; text-decoration: none; }
.clearance-common-law-links a:hover { border-color: var(--forest-300); background: #eef8f6; }
.clearance-common-law-saved { display: grid; gap: 4px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.clearance-common-law-saved span { color: var(--muted); font-size: 12px; }
.clearance-discovery-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.clearance-discovery-source-grid > div { display: grid; gap: 3px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafb; }
.clearance-discovery-source-grid span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.clearance-discovery-source-grid b { text-transform: capitalize; }
.clearance-discovery-source-grid small { color: var(--muted); line-height: 1.4; }
.clearance-discovery-results { display: grid; gap: 8px; margin: 14px 0; }
.clearance-discovery-results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.clearance-discovery-results-heading span { color: var(--muted); font-size: 11px; }
.clearance-discovery-results article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 14px; border: 1px solid #dce5e8; border-radius: 8px; }
.clearance-discovery-results article > div:first-child { display: grid; gap: 3px; min-width: 0; }
.clearance-discovery-results article p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.clearance-discovery-results article .actions { flex-wrap: nowrap; }
.clearance-manual-discovery { display: grid; gap: 3px; margin: 18px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.clearance-manual-discovery span { color: var(--muted); font-size: 12px; }

.clearance-filter-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; cursor: pointer; list-style: none; }
.clearance-filter-details > summary::-webkit-details-marker { display: none; }
.clearance-filter-details > summary > span:first-child { display: grid; gap: 3px; }
.clearance-filter-details > summary small { color: var(--muted); font-weight: 500; }
.clearance-filter-details > summary > span:last-child { padding: 4px 8px; border-radius: 999px; background: #eef3f6; color: #52616c; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.clearance-filter-body { padding: 0 18px 18px; border-top: 1px solid var(--line); }
.clearance-filter-body > p { color: var(--muted); }
.clearance-filter-list { display: grid; gap: 7px; }
.clearance-filter-list > div { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); gap: 16px; padding: 10px 12px; border: 1px solid #e1e7eb; border-radius: 7px; background: #fafcfd; }
.clearance-filter-list span { display: grid; gap: 2px; }
.clearance-filter-list small,
.clearance-filter-list > div > span:last-child,
.clearance-filter-empty { color: var(--muted); font-size: 11px; }
.clearance-filter-empty { padding: 12px; border-radius: 7px; background: #f7fafb; }

@media (max-width: 900px) {
  .clearance-common-law-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .clearance-common-law-lane { padding: 18px; }
  .clearance-common-law-heading { display: grid; }
  .clearance-sixter-heading, .clearance-sixter-footer { display: grid; }
  .clearance-sixter-status { grid-template-columns: 1fr; }
  .clearance-sixter-results article { grid-template-columns: 54px minmax(0, 1fr); }
  .clearance-sixter-results img, .clearance-sixter-monogram { width: 54px; height: 54px; }
  .clearance-sixter-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr 1fr; }
  .clearance-sixter-footer > div { flex-wrap: wrap; }
  .clearance-common-law-status,
  .clearance-filter-list > div { grid-template-columns: 1fr; gap: 5px; }
  .clearance-common-law-links { grid-template-columns: 1fr; }
  .clearance-discovery-source-grid { grid-template-columns: 1fr; }
  .clearance-discovery-results-heading,
  .clearance-discovery-results article { display: grid; align-items: stretch; grid-template-columns: 1fr; }
  .clearance-discovery-results article .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clearance-discovery-results article .actions > * { width: 100%; }
}

/* Clearance results: one obvious review queue, quieter evidence detail. */
.clearance-journey #clearanceResultsView {
  display: grid;
  gap: 14px;
}

.clearance-journey #clearanceResultsView.hidden { display: none; }
.clearance-journey #clearanceResultsView > * { margin: 0; }

.clearance-results-header {
  align-items: flex-start;
  padding: 0 0 16px;
}

.clearance-results-header > div:first-child { max-width: 720px; }
.clearance-results-header h2 { margin: 0 0 5px; font-size: 26px; letter-spacing: -.02em; }
.clearance-results-actions { flex-wrap: wrap; }

.clearance-journey #clearanceResultsView > .stats {
  order: 1;
  margin: 0;
  box-shadow: none;
}

.clearance-journey #clearanceResultsView > .stats .stat {
  min-height: 86px;
  padding: 14px 16px;
  background: #fff;
}

.clearance-journey #clearanceResultsView > .stats .stat b { font-size: 24px; }
.clearance-journey #clearanceResultsView > .clearance-briefing { order: 2; }
.clearance-journey #clearanceResultsView > .results-card-grid { order: 3; display: block; }
.clearance-journey #clearanceResultsView > .clearance-results-confidence { order: 4; }
.clearance-journey #clearanceResultsView > .clearance-coverage-recovery { order: 5; }
.clearance-journey #clearanceResultsView > .clearance-official-intake { order: 6; }
.clearance-journey #clearanceResultsView > .clearance-common-law-lane { order: 7; }
.clearance-journey #clearanceResultsView > .clearance-article-sixter-lane { order: 8; }
.clearance-journey #clearanceResultsView > .clearance-all-candidates { order: 9; }
.clearance-journey #clearanceResultsView > #clearanceSearchScope { order: 10; }
.clearance-journey #clearanceResultsView > #clearanceSourceDetails { order: 11; }
.clearance-journey #clearanceResultsView > .clearance-filter-details { order: 12; }
.clearance-journey #clearanceResultsView > .result-table-details { order: 13; }

.clearance-journey .clearance-briefing {
  padding: 19px 20px;
  border-top-width: 1px;
  border-left: 4px solid var(--accent);
  box-shadow: none;
}

.clearance-query-map,
.clearance-coverage-table,
.clearance-owned-context,
.clearance-boundary { border-radius: 0; }

.clearance-results-shortlist {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid #b9d4ce;
  border-left: 4px solid var(--forest-700);
  background: #fff;
}

.clearance-results-shortlist-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.clearance-results-shortlist-heading h3 { margin: 3px 0 4px; font-size: 20px; }
.clearance-results-shortlist-heading p { max-width: 700px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.clearance-results-shortlist-count { flex: 0 0 auto; color: var(--muted); font-size: 10px; font-weight: 800; text-align: right; text-transform: uppercase; }
.clearance-results-shortlist-count b { display: block; color: var(--forest-800); font-size: 26px; line-height: 1; }
.clearance-results-shortlist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 10px; }

.clearance-results-shortlist .result-card {
  gap: 12px;
  padding: 16px;
  border: 1px solid #d6e1de;
  border-left: 3px solid #c9942e;
  border-radius: 0;
  box-shadow: none;
}

.clearance-results-shortlist .result-card.high { border-left-color: var(--danger); }
.clearance-results-shortlist .result-card.low { border-left-color: var(--success); }
.result-card-header .mark { display: block; margin: 3px 0 2px; font-size: 18px; }
.result-card-kicker { color: var(--forest-700); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.result-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.clearance-results-shortlist .result-card-field { padding: 0; border: 0; border-radius: 0; background: transparent; }
.clearance-results-shortlist .result-card-goods { padding-top: 10px; border-top: 1px solid var(--line); }
.clearance-results-shortlist .result-card-actions { grid-template-columns: auto auto minmax(130px, 1fr); align-items: stretch; padding-top: 3px; }
.clearance-results-shortlist .result-card-actions > * { width: 100%; }
.clearance-results-shortlist-boundary { margin: 0; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.results-material-empty { display: grid; gap: 4px; padding: 18px; border: 1px dashed #cbd8d4; background: #f7faf9; }
.results-material-empty span { color: var(--muted); font-size: 12px; }

.clearance-results-confidence {
  padding: 0;
  box-shadow: none;
}

.clearance-results-evidence-disclosure > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  list-style: none;
  cursor: pointer;
}

.clearance-results-evidence-disclosure > summary::-webkit-details-marker { display: none; }
.clearance-results-evidence-disclosure > summary > span:first-child { display: grid; gap: 3px; min-width: 0; }
.clearance-results-evidence-disclosure > summary b { font-size: 16px; }
.clearance-results-evidence-disclosure > summary small { color: var(--muted); line-height: 1.45; }
.clearance-results-evidence-state { display: grid; flex: 0 0 auto; justify-items: end; gap: 5px; }
.clearance-results-evidence-state small { font-size: 10px; font-weight: 750; text-transform: uppercase; }
.clearance-results-evidence-disclosure[open] > summary { border-bottom: 1px solid var(--line); background: #f8fbfa; }
.clearance-results-evidence-body { display: grid; gap: 14px; padding: 18px; }

.clearance-results-confidence .clearance-confidence-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.clearance-results-confidence .clearance-confidence-grid article { padding: 12px; border-radius: 0; box-shadow: none; }
.clearance-results-confidence .clearance-confidence-facts { grid-template-columns: 1fr; }

@media (max-width: 1000px) {
  .clearance-results-confidence .clearance-confidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .clearance-results-header,
  .clearance-results-shortlist-heading { display: grid; }
  .clearance-results-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .clearance-results-actions button { width: 100%; }
  .clearance-results-shortlist { padding: 16px; }
  .clearance-results-shortlist-grid,
  .clearance-results-confidence .clearance-confidence-grid,
  .clearance-results-shortlist .result-card-body { grid-template-columns: 1fr; }
  .clearance-results-shortlist .result-card-actions { grid-template-columns: 1fr; }
  .clearance-results-shortlist-count { text-align: left; }
  .clearance-results-evidence-disclosure > summary { display: grid; gap: 10px; }
  .clearance-results-evidence-state { justify-items: start; }
  .clearance-results-evidence-body { padding: 14px; }
}

/* Cross-workspace product tranche: history, clearance matters, and operations. */
.competitor-trends-dashboard,
.clearance-matter-dashboard,
.operations-planning-view {
  display: grid;
  gap: 18px;
}

#watchTrendsView {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.competitor-trend-actions,
.clearance-matter-actions,
.clearance-matter-next {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.competitor-trend-actions > label {
  display: grid;
  gap: 4px;
  min-width: 150px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.competitor-trend-actions select {
  min-height: 38px;
  border-radius: 0;
  color: var(--text);
  background: #fff;
  font-size: .78rem;
  font-weight: 600;
  text-transform: none;
}

.competitor-trend-window {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--surface-muted, #f4f6f5);
}

.competitor-trend-window button {
  min-width: 48px;
  padding: 7px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.competitor-trend-window button.active {
  color: var(--accent-strong, #0c694c);
  background: #fff;
  box-shadow: inset 0 -2px var(--accent, #168565);
}

.competitor-trend-chart {
  min-height: 178px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  align-items: end;
  gap: 8px;
  padding: 22px 20px 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.competitor-trend-source-mix {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #f8fcfa;
}

.competitor-trend-source-mix > span {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  padding: 11px 13px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
}

.competitor-trend-source-mix > span:last-child { border-right: 0; }
.competitor-trend-source-mix b { color: var(--text); font-size: 1rem; }

.competitor-trend-chart > div {
  height: 136px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  justify-items: center;
  gap: 4px;
}

.competitor-trend-chart > div > span {
  width: min(34px, 72%);
  align-self: end;
  background: linear-gradient(180deg, var(--accent, #168565), #8fc9b5);
}

.competitor-trend-chart b { font-size: .82rem; }
.competitor-trend-chart small { color: var(--muted); font-size: .68rem; white-space: nowrap; }

.competitor-trend-layout,
.clearance-matter-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
}

.competitor-trend-layout > section,
.clearance-matter-layout > section {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.competitor-trend-heading,
.clearance-matter-heading,
.operations-plan-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.competitor-trend-heading h4,
.clearance-matter-heading h3,
.operations-plan-heading h3 { margin: 0; }
.competitor-trend-heading > span,
.clearance-matter-heading > span { color: var(--muted); font-size: .78rem; font-weight: 700; }

.competitor-trend-dossiers,
.competitor-trend-timeline,
.clearance-matter-checklist,
.clearance-matter-list { display: grid; }

.competitor-trend-dossiers > article {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(150px, .8fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.competitor-trend-dossiers > article:last-child,
.competitor-trend-timeline > article:last-child { border-bottom: 0; }
.competitor-trend-dossiers span,
.competitor-trend-dossiers small,
.competitor-trend-timeline span,
.competitor-trend-timeline small { display: block; color: var(--muted); }
.competitor-trend-metric { text-align: right; }
.competitor-trend-metric b { display: block; font-size: 1.25rem; }

.competitor-trend-timeline > article {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: inset 3px 0 var(--accent, #168565);
}

.competitor-trend-timeline {
  max-height: 44rem;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.competitor-trend-timeline > article:nth-child(even) { background: #fbfdfc; }
.competitor-trend-timeline > article:focus-within { background: #f4faf7; }

.competitor-trend-timeline > article.historical { box-shadow: inset 3px 0 #98a4ab; }
.competitor-trend-timeline > article.kind-ownership { box-shadow: inset 3px 0 #795aa6; }
.competitor-trend-timeline > article.kind-status { box-shadow: inset 3px 0 #c58416; }
.competitor-trend-timeline > article.kind-domains { box-shadow: inset 3px 0 #315e87; }
.competitor-trend-timeline > article.kind-companies { box-shadow: inset 3px 0 #667f36; }
.competitor-trend-timeline > article.kind-source { box-shadow: inset 3px 0 #98a4ab; }
.competitor-trend-timeline time { color: var(--muted); font-size: .75rem; font-weight: 700; }
.competitor-trend-timeline b { display: block; margin: 3px 0; }
.competitor-trend-provenance { margin-top: 6px; font-size: .68rem; }
.competitor-trend-event-actions { display: flex; align-items: center; gap: 6px; }
.competitor-trend-event-actions .button-link,
.competitor-trend-event-actions button {
  min-height: 34px;
  white-space: nowrap;
}
.competitor-trend-limit { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); }

.competitor-change-points,
.competitor-timeline-history,
.competitor-monitor-usage {
  border: 1px solid var(--line);
  background: #fff;
}

.competitor-change-points > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.competitor-change-points article {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 12px;
  min-height: 88px;
  padding: 15px 16px;
  border-right: 1px solid var(--line);
}

.competitor-change-points article:last-child { border-right: 0; }
.competitor-change-points article > span { background: #98a4ab; }
.competitor-change-points article.material > span { background: #a64b41; }
.competitor-change-points article.rising > span,
.competitor-change-points article.new > span { background: var(--accent, #168565); }
.competitor-change-points article.falling > span { background: #c58416; }
.competitor-change-points article b,
.competitor-change-points article small { display: block; }
.competitor-change-points article small { margin-top: 5px; color: var(--muted); line-height: 1.35; }

.competitor-timeline-history > div:last-child,
.competitor-monitor-usage-list { display: grid; }

.competitor-timeline-history details { border-bottom: 1px solid var(--line); }
.competitor-timeline-history details:last-child { border-bottom: 0; }
.competitor-timeline-history summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  cursor: pointer;
}
.competitor-timeline-history summary span,
.competitor-timeline-history summary small { display: block; }
.competitor-timeline-history summary > span:last-child { color: var(--muted); font-size: .75rem; font-weight: 700; text-align: right; }
.competitor-timeline-history summary small { margin-top: 3px; color: var(--muted); font-weight: 400; }
.competitor-timeline-history-detail { display: grid; gap: 12px; padding: 0 16px 16px 34px; }
.competitor-timeline-history-detail p { margin: 0; }
.competitor-timeline-history-detail > div,
.competitor-monitor-usage-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #f8fcfa;
}
.competitor-timeline-history-detail > div > span,
.competitor-monitor-usage-totals > span {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
}
.competitor-timeline-history-detail > div > span:last-child,
.competitor-monitor-usage-totals > span:last-child { border-right: 0; }
.competitor-timeline-history-detail b,
.competitor-monitor-usage-totals b { color: var(--text); }
.competitor-timeline-history-detail button { justify-self: start; }

.competitor-monitor-usage-list article {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(80px, .35fr));
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.competitor-monitor-usage-list article:last-child { border-bottom: 0; }
.competitor-monitor-usage-list span,
.competitor-monitor-usage-list small { display: block; }
.competitor-monitor-usage-list small { color: var(--muted); }
.competitor-monitor-usage > .meta { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); }

.clearance-matter-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #fff;
}

.clearance-matter-summary article {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.clearance-matter-summary article:last-child { border-right: 0; }
.clearance-matter-summary span,
.clearance-matter-summary small { display: block; color: var(--muted); }
.clearance-matter-summary b { display: block; margin: 5px 0; font-size: 1.05rem; overflow-wrap: anywhere; }

.clearance-matter-checklist article {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.clearance-matter-checklist article > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong, #c8d0d4);
  color: #fff;
  font-size: .72rem;
}

.clearance-matter-checklist article.complete > span {
  border-color: var(--accent, #168565);
  background: var(--accent, #168565);
}

.clearance-matter-checklist b,
.clearance-matter-checklist small { display: block; }
.clearance-matter-checklist small { margin-top: 3px; color: var(--muted); }
.clearance-matter-next { justify-content: flex-start; padding: 16px; }

.clearance-matter-list > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.clearance-matter-list > button.active {
  background: #f0f8f5;
  box-shadow: inset 3px 0 var(--accent, #168565);
}

.clearance-matter-list b,
.clearance-matter-list small { display: block; }
.clearance-matter-list small { margin-top: 3px; color: var(--muted); }
.clearance-matter-list > button > span:last-child { color: var(--accent-strong, #0c694c); font-weight: 800; }

.clearance-matter-boundary,
.operations-plan-boundary {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent, #168565);
  background: #f3f8f6;
  color: var(--muted);
}

.operations-planning-view {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.operations-plan-heading > div p { margin: 5px 0 0; color: var(--muted); }

.operations-plan-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operations-plan-lanes > section {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.operations-plan-lanes > section:last-child { border-right: 0; }
.operations-plan-lanes > section > div:first-child { padding: 14px; border-bottom: 1px solid var(--line); background: #f7f9f8; }
.operations-plan-lanes > section > div:first-child span,
.operations-plan-lanes > section > div:first-child small { display: block; color: var(--muted); }
.operations-plan-lanes > section > div:first-child b { display: block; margin: 4px 0; font-size: 1.45rem; }
.operations-plan-lanes > section > div:last-child { display: grid; }

.operations-plan-lanes button {
  min-width: 0;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: inherit;
  background: #fff;
  text-align: left;
}

.operations-plan-lanes button:hover { background: #f3f8f6; }
.operations-plan-lanes button span,
.operations-plan-lanes button b,
.operations-plan-lanes button small { display: block; }
.operations-plan-lanes button span { color: var(--accent-strong, #0c694c); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.operations-plan-lanes button b { margin: 4px 0; overflow-wrap: anywhere; }
.operations-plan-lanes button small { color: var(--muted); }
.operations-plan-lanes p,
.operations-plan-more { display: block; margin: 0; padding: 14px; color: var(--muted); }
.operations-plan-boundary { margin: 0 16px 16px; }

@media (max-width: 1100px) {
  .competitor-trend-layout,
  .clearance-matter-layout { grid-template-columns: 1fr; }
  .clearance-matter-summary,
  .operations-plan-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clearance-matter-summary article:nth-child(2) { border-right: 0; }
  .clearance-matter-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .operations-plan-lanes > section:nth-child(2) { border-right: 0; }
  .operations-plan-lanes > section:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  .competitor-trend-actions,
  .clearance-matter-actions { align-items: stretch; flex-direction: column; }
  .competitor-trend-actions > button,
  .clearance-matter-actions > button { width: 100%; }
  .competitor-trend-window { width: 100%; }
  .competitor-trend-actions > label { width: 100%; }
  .competitor-trend-window button { flex: 1; }
  .competitor-trend-source-mix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .competitor-trend-source-mix > span { border-bottom: 1px solid var(--line); }
  .competitor-trend-source-mix > span:nth-child(2n) { border-right: 0; }
  .competitor-trend-source-mix > span:last-child { border-bottom: 0; }
  .competitor-trend-chart { grid-template-columns: repeat(4, minmax(44px, 1fr)); overflow-x: auto; }
  .competitor-trend-dossiers > article { grid-template-columns: 1fr auto; }
  .competitor-trend-dossiers > article > div:nth-child(3) { grid-column: 1 / -1; }
  .competitor-trend-timeline > article { grid-template-columns: 1fr; gap: 5px; }
  .competitor-trend-event-actions { align-items: stretch; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin-top: 4px; }
  .competitor-trend-event-actions > * { width: 100%; }
  .competitor-change-points > div:last-child,
  .competitor-timeline-history-detail > div,
  .competitor-monitor-usage-totals { grid-template-columns: 1fr 1fr; }
  .competitor-change-points article { border-right: 0; border-bottom: 1px solid var(--line); }
  .competitor-change-points article:last-child { border-bottom: 0; }
  .competitor-timeline-history summary { display: grid; }
  .competitor-timeline-history summary > span:last-child { text-align: left; }
  .competitor-timeline-history-detail { padding-left: 16px; }
  .competitor-timeline-history-detail > div > span:nth-child(2n),
  .competitor-monitor-usage-totals > span:nth-child(2n) { border-right: 0; }
  .competitor-monitor-usage-list article { grid-template-columns: 1fr 1fr 1fr; }
  .competitor-monitor-usage-list article > span:first-child { grid-column: 1 / -1; }
  .clearance-matter-summary,
  .operations-plan-lanes { grid-template-columns: 1fr; }
  .clearance-matter-summary article,
  .operations-plan-lanes > section { border-right: 0; border-bottom: 1px solid var(--line); }
  .clearance-matter-summary article:last-child,
  .operations-plan-lanes > section:last-child { border-bottom: 0; }
  .clearance-matter-boundary,
  .operations-plan-boundary { align-items: flex-start; flex-direction: column; }
}

/*
 * Surface geometry
 *
 * Content containers use square corners so the workspace reads as a precise,
 * continuous operating surface. Interactive controls, status pills, avatars,
 * progress tracks, and thumbnails intentionally keep their distinct shapes.
 */
.workspace-masthead,
.auth-panel,
.onboarding-panel,
.onboarding-step,
.panel,
.stats,
.attention-grid,
.portfolio-health,
.system-health-overall,
.system-health-grid,
.system-health-active-incidents,
.system-health-clean,
.system-health-row,
.system-health-disclosure,
.review-signing-lifecycle-list,
.cloudflare-capacity,
.cloudflare-capacity-activity,
.cloudflare-guardrail-heading,
.cloudflare-guardrail-alert,
.cloudflare-capacity-summary,
.cloudflare-capacity-trend-grid article,
.cloudflare-capacity-meter,
.cloudflare-capacity-method,
.ai-briefing,
.ai-briefing-theme,
.ai-briefing-quality-stats,
.ai-briefing-rollout-controls,
.ai-briefing-quality-gate,
.monitoring-digest-ai-briefing,
.case-timeline-ai-briefing,
.gazette-activity-item,
.decision-card,
.hit-card,
.adapter-card,
.index-source-card,
.registry-import-card,
.report-card,
.tm-card,
.activity-item,
.fee-assumptions,
.budget-feed-section,
.brand-access-user-card,
.brand-hub-card,
.commercial-usage-card,
.drawer-summary-card,
.patent-record-card,
.portfolio-empty-state,
.portfolio-review-center,
.portfolio-review-center-stats,
.portfolio-identity-resolution,
.portfolio-identity-card,
.radar-result-card,
.result-card,
.watch-card,
.watch-rule-card,
.clearance-candidate-workspace,
.clearance-candidate-lifecycle,
.clearance-candidate-summary,
.clearance-candidate-new,
.clearance-candidate-context,
.clearance-common-law-lane,
.clearance-article-sixter-lane,
.clearance-filter-details,
.clearance-sixter-status,
.clearance-sixter-results article,
.clearance-sixter-empty,
.clearance-discovery-source-grid > div,
.clearance-discovery-results article,
.clearance-filter-list > div,
.clearance-journey #clearanceResultsView > .stats,
.clearance-journey #clearanceReviewStats,
.table-responsive {
  border-radius: 0;
}

/* Admin workspace density and hierarchy */
#systemHealthPanel {
  gap: 10px;
}

#systemHealthPanel > .system-health-heading {
  margin-bottom: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

#systemHealthPanel > .panel,
#systemHealthPanel > .system-health-section,
#systemHealthPanel > .system-health-disclosure {
  margin-bottom: 0;
  box-shadow: none;
}

#systemHealthPanel .system-health-overall > div {
  padding: 12px 15px;
}

#systemHealthPanel .system-health-grid {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

#systemHealthPanel .system-health-stat {
  min-height: 96px;
  padding: 12px 14px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
}

#systemHealthPanel .system-health-stat:first-child {
  border-left: 0;
}

#systemHealthPanel .system-health-stat strong {
  font-size: 22px;
}

#systemHealthPanel .cloudflare-capacity {
  margin-top: 4px;
  padding: 16px 0 0;
  border-width: 1px 0 0;
  border-color: var(--line);
  background: transparent;
}

#systemHealthPanel .cloudflare-capacity > .system-health-section-heading {
  margin-bottom: 10px;
  padding: 0 2px;
}

#systemHealthPanel .cloudflare-capacity-guardrails {
  gap: 0;
  margin-bottom: 8px;
  border-top: 1px solid var(--line);
}

#systemHealthPanel .cloudflare-guardrail-heading,
#systemHealthPanel .cloudflare-guardrail-alert {
  padding: 10px 9px;
  border-width: 0 0 1px;
  background: transparent;
}

#systemHealthPanel .cloudflare-guardrail-alert {
  border-left: 3px solid #d7a530;
}

#systemHealthPanel .cloudflare-guardrail-alert.over {
  border-left-color: var(--danger);
}

#systemHealthPanel .cloudflare-capacity-summary {
  border-width: 1px 0;
}

#systemHealthPanel .cloudflare-capacity-summary > div {
  padding: 12px 14px;
}

#systemHealthPanel .cloudflare-capacity-meters {
  gap: 0;
  margin-top: 8px;
  border-bottom: 1px solid var(--line);
}

#systemHealthPanel .cloudflare-capacity-meter {
  padding: 11px 14px;
  border-width: 0 0 0 1px;
  background: transparent;
}

#systemHealthPanel .cloudflare-capacity-meter:first-child {
  border-left: 0;
}

#systemHealthPanel .cloudflare-capacity-method {
  margin-top: 8px;
  border-width: 1px 0;
  background: transparent;
}

#systemHealthPanel .review-signing-health,
#systemHealthPanel .system-health-attention,
#systemHealthPanel .system-health-active-incidents {
  border-width: 1px 0 1px 4px;
}

#systemHealthPanel .review-signing-heading,
#systemHealthPanel .system-health-attention-heading {
  padding: 12px 14px 10px;
}

#systemHealthPanel .system-health-attention.is-clean .system-health-attention-heading,
#systemHealthPanel .system-health-clean {
  background: #f7fbf9;
}

#systemHealthPanel .system-health-active-incidents {
  padding: 13px 14px;
  border-left-color: #9aa8b0;
}

#systemHealthPanel .system-health-disclosure {
  border-width: 1px 0 0;
  background: transparent;
}

#systemHealthPanel .system-health-disclosure > summary {
  padding: 12px 4px;
  background: transparent;
}

#systemHealthPanel .system-health-disclosure[open] > summary {
  background: transparent;
}

#systemHealthPanel .system-health-disclosure-body {
  gap: 10px;
  padding: 12px 4px 14px;
}

#systemHealthPanel .system-health-section-heading {
  align-items: flex-end;
  margin-bottom: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

#systemHealthPanel .system-health-list {
  gap: 0;
}

#systemHealthPanel .system-source-trends {
  display: grid;
  gap: .7rem;
  margin-bottom: .85rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--line);
}

#systemHealthPanel .system-source-trends-heading,
#systemHealthPanel .system-source-trend-heading,
#systemHealthPanel .system-source-current-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

#systemHealthPanel .system-source-trends-heading > span:first-child,
#systemHealthPanel .system-source-trends-heading small,
#systemHealthPanel .system-source-trend-heading > span:first-child,
#systemHealthPanel .system-source-trend-heading small {
  display: block;
}

#systemHealthPanel .system-source-trends-heading small,
#systemHealthPanel .system-source-trend-heading small,
#systemHealthPanel .system-source-current-heading span {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.4;
}

#systemHealthPanel .system-source-trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

#systemHealthPanel .system-source-trend-card {
  min-width: 0;
  padding: .75rem .8rem;
  border: 1px solid #cfe2d7;
  border-left: 3px solid var(--brand-green, #2f7d5c);
  background: #f8fcfa;
}

#systemHealthPanel .system-source-trend-card svg {
  display: block;
  width: 100%;
  height: 2.1rem;
  margin: .4rem 0 .2rem;
}

#systemHealthPanel .system-source-trend-card svg path {
  fill: none;
  stroke: var(--brand-green, #2f7d5c);
  stroke-width: 2;
}

#systemHealthPanel .system-source-trend-card > .meta {
  display: block;
  font-size: .7rem;
}

#systemHealthPanel .system-source-trend-learning {
  display: grid;
  gap: .2rem;
  padding: .8rem;
  border-left: 3px solid #94a59e;
  background: #f7f9f8;
}

#systemHealthPanel .system-source-current-heading {
  align-items: baseline;
  padding: .2rem 0 .45rem;
}

#systemHealthPanel .system-queue-health {
  background: #fff;
  border-left: 4px solid var(--brand-green, #2f7d5c);
}

#systemHealthPanel .system-queue-row .system-health-row-actions {
  min-width: 13rem;
}

#systemHealthPanel .system-queue-row .system-health-row-actions > strong {
  font-size: 1.15rem;
}

#systemHealthPanel .system-queue-dashboard-link {
  justify-self: start;
  margin-top: .35rem;
  width: fit-content;
}

#systemHealthPanel .system-queue-history {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

#systemHealthPanel .system-queue-history-grid {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: .75rem;
}

#systemHealthPanel .system-queue-history-grid article {
  background: #f7fbf8;
  border: 1px solid #cfe2d7;
  border-radius: 2px;
  min-width: 0;
  padding: .8rem;
}

#systemHealthPanel .system-queue-history-grid article > div:first-child {
  display: grid;
  gap: .2rem;
}

#systemHealthPanel .system-queue-history-grid article span,
#systemHealthPanel .system-queue-history-grid article small,
#systemHealthPanel .system-queue-history.is-learning span {
  color: var(--muted);
  font-size: .78rem;
}

#systemHealthPanel .system-queue-history-grid svg {
  display: block;
  height: 2.25rem;
  margin: .45rem 0 .15rem;
  width: 100%;
}

#systemHealthPanel .system-queue-history-grid svg path {
  fill: none;
  stroke: var(--brand-green, #2f7d5c);
  stroke-width: 2;
}

#systemHealthPanel .system-queue-history.is-learning {
  background: #f7fbf8;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .2rem;
  padding: .9rem 1rem;
}

#systemHealthPanel .system-queue-jobs {
  border-top: 1px solid var(--line);
}

#systemHealthPanel .system-queue-jobs > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: .85rem 1rem;
}

#systemHealthPanel .system-queue-jobs > summary span:first-child,
#systemHealthPanel .system-queue-job > span:first-child {
  display: grid;
  gap: .18rem;
}

#systemHealthPanel .system-queue-jobs > div {
  border-top: 1px solid var(--line);
}

#systemHealthPanel .system-queue-job {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: .75rem 1rem;
}

@media (max-width: 700px) {
  #systemHealthPanel .system-queue-row .system-health-row-actions {
    align-items: flex-start;
    min-width: 0;
  }

  #systemHealthPanel .system-queue-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#systemHealthPanel .system-health-row {
  padding: 10px 4px;
  border-width: 0 0 1px;
  background: transparent;
}

#systemHealthPanel .system-queue-guardrails {
  display: grid;
  gap: .65rem;
  margin-bottom: .85rem;
  padding: .9rem 1rem;
  border: 1px solid #c7ddd4;
  border-left: 4px solid var(--brand-green, #2f7d5c);
  background: #f3faf7;
}

#systemHealthPanel .system-queue-guardrails.has-warnings {
  border-color: #e2c486;
  border-left-color: #b97813;
  background: #fff9ed;
}

#systemHealthPanel .system-queue-guardrails > div:first-child,
#systemHealthPanel .system-queue-guardrails > div:first-child > b,
#systemHealthPanel .system-queue-guardrails > div:first-child > small {
  display: block;
}

#systemHealthPanel .system-queue-guardrails > div:first-child > small,
#systemHealthPanel .system-queue-thresholds,
#systemHealthPanel .system-queue-warning-list small {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.45;
}

#systemHealthPanel .system-queue-thresholds {
  padding-top: .55rem;
  border-top: 1px solid rgba(47, 125, 92, .18);
  font-weight: 700;
}

#systemHealthPanel .system-queue-warning-list {
  display: grid;
  border-top: 1px solid #ead9b5;
}

#systemHealthPanel .system-queue-warning-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid #ead9b5;
}

#systemHealthPanel .system-queue-warning-list article:last-child { border-bottom: 0; }
#systemHealthPanel .system-queue-warning-list b,
#systemHealthPanel .system-queue-warning-list small { display: block; }

#systemHealthPanel .system-queue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

#systemHealthPanel .system-queue-grid .system-queue-row {
  align-items: flex-start;
  min-width: 0;
  padding: .9rem;
  border: 1px solid #d4e2dd;
  border-left: 3px solid var(--brand-green, #2f7d5c);
  background: #fbfdfc;
}

#systemHealthPanel .system-queue-grid .system-queue-row:nth-child(even) {
  border-left-color: #8ca49a;
}

#systemHealthPanel .system-queue-grid .system-health-row-main {
  gap: .18rem;
}

#systemHealthPanel .system-queue-grid .system-health-row-actions {
  min-width: 7rem;
}

#systemHealthPanel .system-queue-role {
  color: var(--brand-green, #2f7d5c);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  #systemHealthPanel .system-queue-grid { grid-template-columns: 1fr; }

  #systemHealthPanel .system-health-stat:nth-child(odd) {
    border-left: 0;
  }

  #systemHealthPanel .system-health-stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  #systemHealthPanel {
    gap: 8px;
  }

  #systemHealthPanel > .system-health-heading {
    gap: 10px;
    padding-bottom: 10px;
  }

  #systemHealthPanel .system-health-stat {
    min-height: 78px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  #systemHealthPanel .system-health-stat:first-child {
    border-top: 0;
  }

  #systemHealthPanel .cloudflare-capacity {
    padding: 13px 0 0;
  }

  #systemHealthPanel .cloudflare-capacity-meter {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  #systemHealthPanel .cloudflare-capacity-meter:first-child {
    border-top: 0;
  }

  #systemHealthPanel .system-health-disclosure > summary,
  #systemHealthPanel .system-health-disclosure-body,
  #systemHealthPanel .system-health-row {
    padding-right: 0;
    padding-left: 0;
  }

  #systemHealthPanel .system-source-trend-grid { grid-template-columns: 1fr; }
}

/* Unified application header: destinations, creation, workspace actions, account. */
.tenant-bar {
  border-bottom-color: #d8e2e5;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(18, 26, 34, 0.03);
}

.tenant-actions {
  gap: 6px;
}

#globalAddMenu > summary,
#toggleRelatedToolsButton,
.account-menu > summary {
  height: 40px;
  min-height: 40px;
  border-radius: 4px;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

#globalAddMenu > summary,
#toggleRelatedToolsButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

#globalAddMenu > summary {
  min-width: 86px;
  border-color: var(--accent-dark);
  background: var(--accent);
  box-shadow: 0 1px 2px rgba(18, 26, 34, 0.14);
  text-shadow: none;
}

#globalAddMenu > summary:hover,
#globalAddMenu[open] > summary {
  border-color: var(--forest-950);
  background: var(--accent-dark);
  box-shadow: 0 1px 3px rgba(18, 26, 34, 0.16);
}

#toggleRelatedToolsButton {
  min-width: 92px;
  border-color: var(--button-edge);
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}

#toggleRelatedToolsButton:hover,
#toggleRelatedToolsButton[aria-expanded="true"],
.account-menu > summary:hover,
.account-menu[open] > summary {
  border-color: var(--forest-300);
  background: var(--forest-50);
  color: var(--accent-dark);
  box-shadow: none;
}

.account-menu > summary {
  width: 40px;
  min-width: 40px;
  border-color: transparent;
  background: transparent;
}

.header-command-label {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
}

.workspace-more-panel,
.workspace-tools-panel,
.global-add-panel,
.account-panel {
  width: min(248px, calc(100vw - 24px));
  gap: 0;
  padding: 6px;
  border: 1px solid #ccd8dc;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(18, 26, 34, 0.16);
}

.account-panel {
  width: min(280px, calc(100vw - 24px));
}

.workspace-more-panel > .workspace-menu-heading,
.workspace-tools-panel > .workspace-menu-heading,
.global-add-panel > .workspace-menu-heading,
.account-panel-heading {
  min-height: 36px;
  margin: 0 0 4px;
  padding: 7px 8px 9px;
  border-bottom: 1px solid var(--line);
}

.workspace-menu-heading > span,
.account-panel-heading b {
  padding: 0;
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workspace-menu-heading small,
.account-panel-heading span {
  padding: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.workspace-more-group {
  gap: 1px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.workspace-more-group:first-of-type {
  border-top: 0;
}

.workspace-menu-label {
  padding: 3px 9px 5px;
  color: #73808d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workspace-more-panel button,
.workspace-tools-panel button,
.global-add-panel button,
.account-panel button {
  min-height: 44px !important;
  gap: 10px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  text-shadow: none;
}

.workspace-more-panel button:hover,
.workspace-tools-panel button:hover,
.global-add-panel button:hover,
.account-panel button:hover {
  border-color: transparent;
  background: var(--forest-50);
  color: var(--accent-dark);
  box-shadow: none;
  transform: none;
}

.workspace-more-panel button:focus-visible,
.workspace-tools-panel button:focus-visible,
.global-add-panel button:focus-visible,
.account-panel button:focus-visible {
  outline: 2px solid rgba(25, 92, 86, 0.28);
  outline-offset: -2px;
}

.workspace-more-panel button.active,
.workspace-more-panel button[aria-current="page"] {
  background: var(--forest-100);
  color: var(--accent-dark);
  box-shadow: inset 3px 0 0 var(--accent);
}

.workspace-more-panel .ui-icon,
.workspace-tools-panel .ui-icon,
.global-add-panel .ui-icon,
.account-panel .ui-icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
  color: #526570;
  stroke-width: 1.8;
}

.workspace-more-panel button:hover .ui-icon,
.workspace-tools-panel button:hover .ui-icon,
.global-add-panel button:hover .ui-icon,
.account-panel button:hover .ui-icon,
.workspace-more-panel button.active .ui-icon {
  color: var(--accent-dark);
}

@media (min-width: 761px) {
  .tenant-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 62px;
    gap: 14px;
    padding: 0 14px;
  }

  .tenant-actions {
    padding-left: 12px;
    border-left: 1px solid var(--line);
  }

  .workspace-nav {
    align-self: stretch;
    gap: clamp(7px, 1vw, 16px);
  }

  .workspace-nav button,
  .workspace-nav .workspace-home-button {
    min-height: 62px;
    padding: 10px 2px 9px !important;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    box-shadow: none;
    font-size: 12px;
    font-weight: 700;
    text-shadow: none;
  }

  .workspace-nav button:hover {
    border-bottom-color: #a8d2cd;
    background: transparent;
    color: var(--accent-dark);
    box-shadow: none;
    transform: none;
  }

  .workspace-nav button.active,
  .workspace-nav button[aria-current="page"],
  .workspace-switcher-button.active {
    border-bottom-color: var(--accent);
    background: transparent;
    color: var(--ink);
    box-shadow: none;
  }

  .workspace-switcher-button[aria-expanded="true"] {
    border-bottom-color: var(--accent);
    color: var(--accent-dark);
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .header-tools-button > .header-command-label,
  .header-command-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
  }

  #toggleRelatedToolsButton {
    width: auto;
    min-width: 92px;
    padding: 0 11px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .tenant-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 54px 48px;
    gap: 0 12px;
    padding: 0 12px;
  }

  .app-brand-group {
    grid-column: 1;
    grid-row: 1;
  }

  .tenant-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .workspace-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    padding: 0;
    border-top: 1px solid var(--line);
  }

  .workspace-nav button,
  .workspace-nav .workspace-home-button {
    min-height: 48px;
    padding: 7px 3px 6px !important;
  }

  .header-tools-button > .header-command-label,
  .header-command-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
  }

  #toggleRelatedToolsButton {
    width: auto;
    min-width: 92px;
    padding: 0 11px;
  }

  .global-add-panel,
  .account-panel {
    position: fixed;
    top: 110px;
    right: 12px;
  }
}

@media (max-width: 760px) {
  .tenant-bar {
    min-height: 58px;
    padding: 7px 10px;
  }

  .tenant-actions {
    padding-left: 8px;
    border-left: 1px solid var(--line);
  }

  #globalAddMenu > summary,
  #toggleRelatedToolsButton,
  .account-menu > summary {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
  }

  .header-command-label,
  .header-tools-button > .header-command-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .workspace-nav {
    padding-top: 5px;
    border-top-color: #ccd8dc;
    box-shadow: 0 -6px 18px rgba(18, 26, 34, 0.1);
  }

  .workspace-nav button,
  .workspace-nav .workspace-home-button {
    border-radius: 4px;
    font-weight: 700;
  }

  .workspace-nav button.active,
  .workspace-nav button[aria-current="page"] {
    background: var(--forest-100);
  }

  .workspace-more-panel {
    border-radius: 4px;
  }

  .workspace-more-panel > .workspace-menu-heading {
    grid-column: 1 / -1;
  }
}

/* Attention: keep the work itself ahead of reporting and system detail. */
.main-workspace[data-workspace="attention"] .attention-dashboard {
  gap: 10px;
}

.main-workspace[data-workspace="attention"] .attention-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 4px;
}

.main-workspace[data-workspace="attention"] .attention-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  justify-content: start;
  gap: 7px;
  min-height: 52px;
  padding: 10px 12px;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.main-workspace[data-workspace="attention"] .attention-stat:hover,
.main-workspace[data-workspace="attention"] .attention-stat.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  transform: none;
}

.main-workspace[data-workspace="attention"] .attention-stat.active {
  box-shadow: inset 0 -3px 0 var(--accent);
}

.main-workspace[data-workspace="attention"] .attention-stat b {
  margin: 0;
  font-size: 20px;
}

.main-workspace[data-workspace="attention"] .attention-stat span {
  font-size: 12px;
}

.main-workspace[data-workspace="attention"] .protection-queue-heading {
  padding: 13px 14px;
}

.main-workspace[data-workspace="attention"] .protection-queue-heading-actions button {
  min-width: 0;
}

.main-workspace[data-workspace="attention"] .protection-queue-head {
  grid-template-columns: minmax(300px, 1.55fr) minmax(210px, .9fr) minmax(145px, .65fr) 132px;
}

.main-workspace[data-workspace="attention"] .protection-queue-main {
  grid-template-columns: minmax(300px, 1.55fr) minmax(210px, .9fr) minmax(145px, .65fr);
}

.main-workspace[data-workspace="attention"] .protection-queue-reason b {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-workspace[data-workspace="attention"] .protection-queue-reason .incident-severity-dot {
  flex: 0 0 auto;
}

@media (min-width: 761px) and (max-width: 900px) {
  .main-workspace[data-workspace="attention"] .protection-queue-head {
    grid-template-columns: minmax(250px, 1.3fr) minmax(190px, .9fr) minmax(130px, .65fr) 132px;
  }

  .main-workspace[data-workspace="attention"] .protection-queue-main {
    grid-template-columns: minmax(250px, 1.3fr) minmax(190px, .9fr) minmax(130px, .65fr);
  }
}

@media (max-width: 760px) {
  .main-workspace[data-workspace="attention"] .attention-grid {
    display: flex;
    gap: 0;
    overflow-x: auto;
  }

  .main-workspace[data-workspace="attention"] .attention-stat {
    flex: 1 0 auto;
    min-width: max-content;
    min-height: 44px;
    padding: 8px 11px;
  }

  .main-workspace[data-workspace="attention"] .attention-stat b {
    font-size: 18px;
  }

  .main-workspace[data-workspace="attention"] .protection-queue-heading {
    gap: 10px;
    padding: 12px;
  }

  .main-workspace[data-workspace="attention"] .protection-queue-heading-actions {
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }

  .main-workspace[data-workspace="attention"] .protection-queue-heading-actions button {
    flex: 1 0 auto;
    width: auto;
    min-height: 36px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .main-workspace[data-workspace="attention"] .protection-queue-row {
    gap: 10px;
    padding: 12px;
  }

  .main-workspace[data-workspace="attention"] .protection-queue-main {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
  }

  .main-workspace[data-workspace="attention"] .protection-queue-signal {
    grid-column: 1 / -1;
  }

  .main-workspace[data-workspace="attention"] .protection-queue-owner {
    justify-items: end;
    text-align: right;
  }

  .main-workspace[data-workspace="attention"] .protection-queue-actions {
    justify-content: flex-end;
    padding-top: 9px;
  }

  .main-workspace[data-workspace="attention"] .protection-queue-actions .protection-queue-primary-action {
    min-width: 112px;
  }
}

/* Final interaction cascade: keep accessible targets above legacy responsive rules. */
#workspaceMoreMenu,
#globalAddMenu > summary,
#toggleRelatedToolsButton,
.account-menu > summary,
.workspace-more-panel button,
.workspace-tools-panel button,
.global-add-panel button,
.account-panel button {
  touch-action: manipulation;
}

#workspaceMoreMenu:focus-visible,
#globalAddMenu > summary:focus-visible,
#toggleRelatedToolsButton:focus-visible,
.account-menu > summary:focus-visible {
  outline: 3px solid rgba(25, 92, 86, 0.28);
  outline-offset: 2px;
}

.workspace-more-panel,
.workspace-tools-panel,
.global-add-panel,
.account-panel {
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 390px) {
  .tenant-actions {
    gap: 3px;
    padding-left: 5px;
  }

  #globalAddMenu > summary,
  #toggleRelatedToolsButton,
  .account-menu > summary {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }
}

/* Header command roles: navigation, creation, and current-workspace actions. */
@media (min-width: 1181px) {
  .tenant-actions {
    gap: 5px;
    padding-left: 12px;
    border-left: 1px solid var(--line);
  }

  .global-add-menu > summary,
  .header-tools-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    height: 40px;
    padding: 0 11px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
  }

  .global-add-menu > summary {
    min-width: 86px;
  }

  .header-tools-button {
    min-width: 92px;
    border-color: var(--button-edge);
    background: var(--white);
    color: var(--ink);
  }
}

.header-command-label {
  white-space: nowrap;
}

.workspace-more-panel,
.workspace-tools-panel,
.global-add-panel {
  width: min(236px, calc(100vw - 24px));
}

.workspace-more-panel > .workspace-menu-heading,
.workspace-tools-panel > .workspace-menu-heading,
.global-add-panel > .workspace-menu-heading {
  margin: 0 0 3px;
  padding: 5px 6px 9px;
}

.workspace-more-panel > .workspace-menu-heading > span,
.workspace-tools-panel > .workspace-menu-heading > span,
.global-add-panel > .workspace-menu-heading > span {
  padding: 0;
  color: var(--ink);
  font-size: 11px;
}

.workspace-more-panel > .workspace-menu-heading small,
.workspace-tools-panel > .workspace-menu-heading small,
.global-add-panel > .workspace-menu-heading small {
  padding: 0;
  font-size: 10px;
}

@media (max-width: 1180px) {
  .global-add-menu > summary {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

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

@media (max-width: 480px) {
  .global-add-menu > summary {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }
}

/* Document intake: source, preview, then explicit confirmation. */
.document-intake-tool {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  overflow: hidden;
}

.document-intake-step {
  padding: 12px;
  border-top: 1px solid var(--line);
}

.document-intake-step:first-child {
  border-top: 0;
}

.document-intake-step-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.document-intake-step-heading > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--forest-300);
  border-radius: 4px;
  background: var(--forest-50);
  color: var(--forest-800);
  font-size: 11px;
  font-weight: 900;
}

.document-intake-step-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.document-intake-step-heading small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.document-intake-step > label {
  margin: 11px 0 5px 33px;
  color: var(--muted);
  font-size: 11px;
}

.document-intake-step > textarea {
  width: calc(100% - 33px);
  min-height: 110px;
  margin-left: 33px;
  padding: 9px;
  border-radius: 4px;
  font-size: 12px;
}

.document-intake-source-actions,
.document-intake-confirm-actions {
  width: calc(100% - 33px);
  gap: 6px;
  margin: 9px 0 0 33px;
}

.document-intake-source-actions button,
.document-intake-confirm-actions button {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 4px;
  box-shadow: none;
  font-size: 11px;
}

.document-intake-ai-boundary,
.document-intake-save-boundary {
  display: grid;
  gap: 2px;
  width: calc(100% - 33px);
  margin: 9px 0 0 33px;
  padding: 8px 9px;
  border-left: 3px solid var(--forest-300);
  background: var(--panel);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.document-intake-ai-boundary b {
  color: var(--ink);
  font-size: 10px;
}

.document-intake-preview {
  display: grid;
  gap: 4px;
  width: calc(100% - 33px);
  min-height: 76px;
  margin: 10px 0 0 33px;
  padding: 10px;
  border: 1px dashed var(--button-edge);
  border-radius: 4px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
}

.document-intake-preview.ready {
  border-style: solid;
  border-color: var(--forest-300);
  background: var(--forest-50);
  color: var(--ink);
}

.document-intake-preview .mark {
  font-size: 12px;
}

.document-intake-preview .meta {
  font-size: 10px;
  line-height: 1.4;
}

.document-intake-confirm-actions > button:first-child {
  flex: 1;
}

@media (max-width: 620px) {
  .document-intake-source-actions,
  .document-intake-confirm-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .document-intake-source-actions button,
  .document-intake-confirm-actions button {
    width: 100%;
  }
}

/* One visual language for workspace, create, action, account, and row option menus. */
.workspace-more-panel,
.workspace-tools-panel,
.global-add-panel,
.account-panel,
.watch-card-menu-panel,
.drawer-more-actions .drawer-actions {
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(18, 26, 34, 0.16);
}

.workspace-more-group {
  gap: 2px;
  padding: 5px 0;
}

.workspace-more-group:first-child {
  padding-top: 0;
}

.workspace-more-group:last-child {
  padding-bottom: 0;
}

.workspace-more-panel button,
.workspace-tools-panel button,
.global-add-panel button,
.account-panel button,
.watch-card-menu-panel button,
.drawer-more-actions .drawer-actions button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-height: 40px !important;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  text-shadow: none;
}

.workspace-more-panel button:hover,
.workspace-tools-panel button:hover,
.global-add-panel button:hover,
.account-panel button:hover,
.watch-card-menu-panel button:hover,
.drawer-more-actions .drawer-actions button:hover {
  border-color: transparent;
  background: var(--forest-50);
  color: var(--accent-dark);
  box-shadow: none;
}

.workspace-more-panel button.active {
  background: var(--forest-100);
  color: var(--accent-dark);
}

.workspace-more-panel .ui-icon,
.workspace-tools-panel .ui-icon,
.global-add-panel .ui-icon,
.account-panel .ui-icon,
.watch-card-menu-panel .ui-icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}

.global-add-panel .workspace-menu-heading,
.workspace-tools-panel .workspace-menu-heading {
  margin: 0 0 3px;
  padding: 4px 3px 8px;
}

.drawer-more-actions .drawer-actions {
  grid-template-columns: 1fr;
  margin-top: 6px;
}

/* Cloudflare capacity contrast */
#systemHealthPanel .cloudflare-capacity {
  padding: 17px;
  border: 1px solid #bfd8d1;
  background: #f2f8f6;
  box-shadow: 0 8px 22px rgba(18, 61, 58, .08);
}

#systemHealthPanel .cloudflare-capacity > .system-health-section-heading {
  padding: 0 1px;
}

#systemHealthPanel .cloudflare-capacity-guardrails {
  border: 1px solid #cfdfdb;
  background: var(--white);
}

#systemHealthPanel .cloudflare-guardrail-heading,
#systemHealthPanel .cloudflare-guardrail-alert {
  background: var(--white);
}

#systemHealthPanel .cloudflare-capacity-summary {
  border: 1px solid #cfdfdb;
  background: var(--white);
  box-shadow: 0 3px 10px rgba(18, 61, 58, .05);
}

#systemHealthPanel .cloudflare-capacity-meters {
  gap: 8px;
  border-bottom: 0;
}

#systemHealthPanel .cloudflare-capacity-meter {
  border: 1px solid #cfdfdb;
  background: var(--white);
  box-shadow: 0 3px 10px rgba(18, 61, 58, .05);
}

#systemHealthPanel .cloudflare-capacity-method {
  border: 1px solid #cfdfdb;
  background: var(--white);
}

@media (max-width: 600px) {
  #systemHealthPanel .cloudflare-capacity {
    padding: 14px;
  }

  #systemHealthPanel .cloudflare-capacity-meter,
  #systemHealthPanel .cloudflare-capacity-meter:first-child {
    border: 1px solid #cfdfdb;
  }
}

/* Final header cascade: keep the shell coherent after legacy component rules. */
#globalAddMenu > summary,
#toggleRelatedToolsButton,
.account-menu > summary {
  height: 40px;
  min-height: 40px;
  border-radius: 4px;
}

#globalAddMenu > summary,
#toggleRelatedToolsButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

#globalAddMenu > summary {
  min-width: 86px;
  border-color: var(--accent-dark);
  background: var(--accent);
  box-shadow: 0 1px 2px rgba(18, 26, 34, 0.14);
  text-shadow: none;
}

#toggleRelatedToolsButton {
  min-width: 92px;
  border-color: var(--button-edge);
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}

.account-menu > summary {
  width: 40px;
  min-width: 40px;
  border-color: transparent;
  background: transparent;
}

.workspace-more-panel,
.workspace-tools-panel,
.global-add-panel,
.account-panel {
  width: min(248px, calc(100vw - 24px));
  gap: 0;
  padding: 6px;
  border-color: #ccd8dc;
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(18, 26, 34, 0.16);
}

.account-panel {
  width: min(280px, calc(100vw - 24px));
}

.workspace-more-panel > .workspace-menu-heading,
.workspace-tools-panel > .workspace-menu-heading,
.global-add-panel > .workspace-menu-heading,
.account-panel-heading {
  min-height: 36px;
  margin: 0 0 4px;
  padding: 7px 8px 9px;
  border-bottom: 1px solid var(--line);
}

.workspace-more-panel button,
.workspace-tools-panel button,
.global-add-panel button,
.account-panel button {
  min-height: 44px !important;
  gap: 10px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
}

.workspace-more-panel button.active,
.workspace-more-panel button[aria-current="page"] {
  background: var(--forest-100);
  color: var(--accent-dark);
  box-shadow: inset 3px 0 0 var(--accent);
}

@media (min-width: 761px) {
  .header-command-label,
  .header-tools-button > .header-command-label {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }

  .tenant-actions {
    gap: 6px;
    padding-left: 12px;
    border-left: 1px solid var(--line);
  }

  .workspace-nav button,
  .workspace-nav .workspace-home-button {
    border-radius: 0;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .tenant-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 54px 48px;
    gap: 0 12px;
    padding: 0 12px;
  }

  .app-brand-group {
    grid-column: 1;
    grid-row: 1;
  }

  .tenant-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .workspace-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    padding: 0;
    border-top: 1px solid var(--line);
  }

  .workspace-nav button,
  .workspace-nav .workspace-home-button {
    min-height: 48px;
    padding: 7px 3px 6px !important;
  }

  .global-add-panel,
  .account-panel {
    position: fixed;
    top: 110px;
    right: 12px;
  }
}

@media (max-width: 760px) {
  #globalAddMenu > summary,
  #toggleRelatedToolsButton,
  .account-menu > summary {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
  }

  .header-command-label,
  .header-tools-button > .header-command-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .workspace-more-panel {
    border-radius: 4px;
  }

  .workspace-more-panel > .workspace-menu-heading {
    grid-column: 1 / -1;
  }
}
.watch-purpose-landing{margin:0 0 16px;padding:22px;border:1px solid var(--line);border-top:4px solid var(--accent);border-radius:3px;background:var(--surface)}.watch-purpose-heading{display:flex;justify-content:space-between;gap:20px;align-items:end}.watch-purpose-heading h3{margin:4px 0}.watch-purpose-heading p{margin:0;color:var(--muted)}.watch-purpose-filter{display:flex;border:1px solid var(--line);border-radius:3px;background:var(--surface-raised,#fff);overflow:hidden}.watch-purpose-filter button{display:flex;gap:7px;align-items:center;width:auto;min-height:36px;padding:7px 11px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;color:var(--muted);box-shadow:none}.watch-purpose-filter button:last-child{border-right:0}.watch-purpose-filter button.active{background:var(--accent);color:#fff}.watch-purpose-filter button span{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border:1px solid currentColor;border-radius:2px;font-size:.7rem}.watch-purpose-lanes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.watch-purpose-lane{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:18px;border:1px solid var(--line);border-left:4px solid #315e87;border-radius:2px;background:var(--surface-raised,#fff)}.watch-purpose-lane.intelligence{border-left-color:var(--forest-700)}.watch-purpose-lane h4{margin:8px 0 3px;font-size:1.05rem}.watch-purpose-lane p{margin:0;color:var(--muted);font-size:.8rem}.watch-purpose-lane button{width:auto;white-space:nowrap}.watch-purpose-sources{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.watch-purpose-sources>div{display:flex;gap:7px;flex-wrap:wrap}.watch-purpose-sources>button{width:auto}.watch-source-chip{display:inline-flex;gap:5px;align-items:center;padding:5px 7px;border:1px solid var(--line);border-radius:2px;color:var(--muted);font-size:.72rem}.watch-source-chip i{width:7px;height:7px;border-radius:50%;background:#c48a22}.watch-source-chip.low i{background:var(--forest-700)}.watch-source-chip.high i{background:var(--danger)}.watch-source-chip b{color:var(--text)}.watch-purpose{display:inline-flex;width:max-content;margin-top:3px;padding:3px 7px;border-left:3px solid var(--forest-700);background:#edf8f6;color:var(--accent-dark);font-size:.7rem;font-weight:800;letter-spacing:.02em}.watch-purpose.protection{border-left-color:#315e87;background:#eef4fa;color:#234866}.ci-brief-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:start;padding:24px;border:1px solid var(--line);border-left:4px solid var(--accent);background:var(--surface);border-radius:4px}.ci-brief-hero h3{margin:7px 0 5px;font-size:1.5rem}.ci-brief-hero p{margin:0;color:var(--muted);max-width:760px}.ci-brief-guardrail{grid-column:1/-1;padding-top:14px!important;border-top:1px solid var(--line);font-size:.82rem}.ci-ai-output{margin-top:14px;padding:22px;border:1px solid color-mix(in srgb,var(--accent) 34%,var(--line));background:color-mix(in srgb,var(--accent) 5%,var(--surface));border-radius:4px}.ci-ai-output>h3{margin:0 0 7px}.ci-ai-output>p{margin:0;color:var(--muted)}.ci-brief-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:14px 0;border:1px solid var(--line);background:var(--surface);border-radius:4px}.ci-brief-stats>div{display:flex;flex-direction:column;gap:3px;padding:16px 18px;border-right:1px solid var(--line)}.ci-brief-stats>div:last-child{border-right:0}.ci-brief-stats b{font-size:1.35rem}.ci-brief-stats span{color:var(--muted);font-size:.78rem}.ci-brief-stats .material b{color:var(--danger)}.ci-brief-section{margin-top:14px;padding:22px;border:1px solid var(--line);background:var(--surface);border-radius:4px}.ci-profile-list{display:grid;gap:8px;margin-top:14px}.ci-profile-row{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:18px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:3px;background:var(--surface-raised,#fff)}.ci-profile-row h4{margin:2px 0 3px}.ci-profile-row p{margin:0;color:var(--muted);font-size:.82rem}.ci-profile-kicker{color:var(--accent);font-size:.68rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.ci-profile-counts{display:flex;gap:14px;color:var(--muted);font-size:.76rem}.ci-profile-counts span{white-space:nowrap}.ci-profile-counts b{color:var(--text);font-size:.95rem}.ci-timeline{display:grid;margin-top:14px;border-top:1px solid var(--line)}.ci-timeline-row{display:grid;grid-template-columns:145px minmax(0,1fr) auto;gap:18px;align-items:start;padding:15px 0;border-bottom:1px solid var(--line)}.ci-timeline-row time{color:var(--muted);font-size:.76rem}.ci-timeline-copy{display:grid;gap:5px;min-width:0}.ci-timeline-copy .variants{margin:0}.ci-timeline-copy p{margin:0;color:var(--muted);font-size:.8rem}.ci-timeline-actions{display:flex;gap:7px}.ci-timeline-actions .button-link,.ci-timeline-actions button{width:auto;white-space:nowrap}.ci-timeline-limit{margin:12px 0 0}.ci-material-section{border-left:4px solid color-mix(in srgb,var(--danger) 58%,var(--line))}.ci-material-list{display:grid;gap:8px;margin-top:14px}.ci-material-list article{display:flex;gap:12px;align-items:start;padding:14px;border:1px solid color-mix(in srgb,var(--danger) 28%,var(--line));background:color-mix(in srgb,var(--danger) 4%,var(--surface));border-radius:3px}.ci-material-list p,.ci-all-clear{margin:4px 0 0;color:var(--muted)}.ci-all-clear{padding:16px;border:1px dashed var(--line);border-radius:3px}
@media(max-width:800px){.ci-brief-hero{grid-template-columns:1fr}.ci-brief-guardrail{grid-column:1}.ci-brief-stats{grid-template-columns:repeat(2,1fr)}.ci-brief-stats>div{border-bottom:1px solid var(--line)}.ci-profile-row,.ci-timeline-row{grid-template-columns:1fr}.ci-profile-counts,.ci-timeline-actions{flex-wrap:wrap}.ci-timeline-row time{font-weight:700}}
@media(max-width:900px){.watch-purpose-heading{display:grid;align-items:start}.watch-purpose-filter{width:100%;overflow:auto}.watch-purpose-filter button{flex:1;justify-content:center}.watch-purpose-lane{display:grid;align-items:start}.watch-purpose-lane button{justify-self:start}}
@media(max-width:680px){.watch-purpose-heading{display:grid;align-items:start}.watch-purpose-filter{width:100%;overflow:auto}.watch-purpose-filter button{flex:1;justify-content:center}.watch-purpose-lanes{grid-template-columns:1fr}.watch-purpose-lane{align-items:start}.watch-purpose-sources{grid-template-columns:1fr}}
@media(max-width:520px){.watch-purpose-landing{padding:16px}.watch-purpose-lane{display:grid}.watch-purpose-lane button{width:100%}}
.watch-source-chip.retryable{width:auto;min-height:0;background:transparent;box-shadow:none;cursor:pointer}.watch-source-chip.retryable:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 5%,var(--surface));color:var(--accent-dark)}
.ci-trend-layout{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(420px,1.1fr);gap:24px;margin-top:16px}.ci-trend-chart{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;align-items:end;height:190px;padding:12px 10px 0;border-left:1px solid var(--line);border-bottom:1px solid var(--line)}.ci-trend-chart>div{display:grid;grid-template-rows:1fr auto;gap:7px;align-items:end;height:100%;text-align:center}.ci-trend-chart>div>span{display:flex;justify-content:center;align-items:flex-start;height:var(--trend-height);min-height:4px;padding-top:5px;background:color-mix(in srgb,var(--accent) 78%,#fff);color:#fff}.ci-trend-chart>div>span i{font-size:.7rem;font-style:normal;font-weight:800}.ci-trend-chart>div>b{color:var(--muted);font-size:.7rem}.ci-trend-ranks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);background:var(--surface-raised,#fff)}.ci-trend-rank{display:grid;align-content:start;gap:6px;padding:14px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.ci-trend-rank:nth-child(2n){border-right:0}.ci-trend-rank:nth-last-child(-n+2){border-bottom:0}.ci-trend-rank>b{font-size:.73rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.ci-trend-rank>span{display:flex;justify-content:space-between;gap:12px;font-size:.78rem}.ci-trend-rank i{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal}.ci-trend-rank strong{color:var(--accent-dark)}
.protection-review-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:start;padding:24px;border:1px solid var(--line);border-left:4px solid #315e87;background:var(--surface)}.protection-review-hero h3{margin:5px 0;font-size:1.45rem}.protection-review-hero p{max-width:720px;margin:0;color:var(--muted)}.protection-review-hero button{width:auto}.protection-review-stats{display:grid;grid-template-columns:repeat(4,1fr);margin:14px 0;border:1px solid var(--line);background:var(--surface)}.protection-review-stats>div{display:grid;gap:3px;padding:16px 18px;border-right:1px solid var(--line)}.protection-review-stats>div:last-child{border-right:0}.protection-review-stats b{font-size:1.35rem}.protection-review-stats span{color:var(--muted);font-size:.76rem}.protection-review-list{padding:22px;border:1px solid var(--line);background:var(--surface)}.protection-review-row{display:grid;grid-template-columns:minmax(210px,.9fr) minmax(320px,1.25fr) minmax(260px,1fr);gap:20px;align-items:center;padding:16px 0;border-top:1px solid var(--line)}.protection-review-row.source-gap{border-left:3px solid #c48a22;padding-left:14px}.protection-review-primary h4{margin:7px 0 3px}.protection-review-primary p{margin:0;color:var(--muted);font-size:.78rem}.protection-review-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.protection-review-facts span{display:grid;gap:2px;color:var(--text);font-size:.78rem}.protection-review-facts b,.protection-review-next>span{color:var(--muted);font-size:.68rem;text-transform:uppercase;letter-spacing:.04em}.protection-review-next{display:grid;gap:7px}.protection-review-next>div{display:flex;gap:6px;flex-wrap:wrap}.protection-review-next button,.protection-review-next .button-link{width:auto}.protection-review-clear{margin:12px 0 0;padding:18px;border:1px dashed var(--line);color:var(--muted)}
@media(max-width:900px){.ci-trend-layout{grid-template-columns:1fr}.protection-review-row{grid-template-columns:1fr}.protection-review-hero{grid-template-columns:1fr}.protection-review-hero button{justify-self:start}.protection-review-stats{grid-template-columns:repeat(2,1fr)}.protection-review-stats>div{border-bottom:1px solid var(--line)}}
.watch-cost-governor{display:grid;grid-template-columns:minmax(260px,1.25fr) minmax(260px,1fr) minmax(210px,.7fr);gap:18px;align-items:center;margin-bottom:14px;padding:18px 20px;border:1px solid #b9d7ca;border-left:4px solid var(--accent);background:#f8fcfa}.watch-cost-governor h3{margin:3px 0 5px;font-size:1.05rem}.watch-cost-governor p{margin:0;color:var(--muted);font-size:.78rem}.watch-cost-governor>label{display:grid;gap:5px;font-size:.72rem;font-weight:700}.watch-cost-governor>.meta{grid-column:1/-1}.watch-cost-governor-metrics{display:flex;gap:8px;flex-wrap:wrap}.watch-cost-governor-metrics span{display:grid;gap:2px;min-width:92px;padding:9px 10px;border:1px solid var(--line);background:var(--surface);font-size:.68rem;color:var(--muted)}.watch-cost-governor-metrics b{font-size:.9rem;color:var(--text)}.watch-source-confidence{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.watch-source-confidence>span{display:grid;gap:2px;padding:8px 9px;border:1px solid var(--line);background:var(--surface)}.watch-source-confidence small{color:var(--muted);font-size:.62rem;text-transform:uppercase;letter-spacing:.05em}.watch-source-confidence b{font-size:.76rem}.watch-source-confidence .low{border-left:3px solid var(--accent)}.watch-source-confidence .medium{border-left:3px solid #c48a22}.protection-intake{border-left:4px solid #315e87}.protection-intake.active{border-left-color:var(--accent);background:#f8fcfa}.protection-intake-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.protection-intake-fields label{display:grid;gap:5px}.protection-intake-fields .full{grid-column:1/-1}.protection-intake-checklist{display:flex;gap:8px 16px;flex-wrap:wrap;margin:12px 0;padding:12px;border:1px solid var(--line)}.protection-intake-checklist legend{padding:0 6px;font-size:.72rem;font-weight:700}.protection-intake-checklist label{font-size:.76rem}.protection-review-next>p{margin:0;color:var(--muted);font-size:.75rem}@media(max-width:800px){.watch-cost-governor{grid-template-columns:1fr}.watch-cost-governor>.meta{grid-column:auto}.watch-source-confidence,.protection-intake-fields{grid-template-columns:1fr}.protection-intake-fields .full{grid-column:auto}}
@media(max-width:560px){.ci-trend-chart{height:150px}.ci-trend-ranks{grid-template-columns:1fr}.ci-trend-rank,.ci-trend-rank:nth-child(2n),.ci-trend-rank:nth-last-child(-n+2){border-right:0;border-bottom:1px solid var(--line)}.ci-trend-rank:last-child{border-bottom:0}.protection-review-stats{grid-template-columns:1fr}.protection-review-stats>div{border-right:0}.protection-review-facts{grid-template-columns:1fr}}
.ci-trend-integrity{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:16px;border:1px solid var(--line);background:var(--surface-raised,#fff)}.ci-trend-integrity>span{display:grid;gap:2px;padding:12px 14px;border-right:1px solid var(--line);color:var(--muted);font-size:.72rem}.ci-trend-integrity>span:last-child{border-right:0}.ci-trend-integrity b{color:var(--text);font-size:1.05rem}.ci-trend-legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px;color:var(--muted);font-size:.7rem}.ci-trend-legend span{display:inline-flex;gap:6px;align-items:center}.ci-trend-legend span::before{width:9px;height:9px;background:var(--accent);content:""}.ci-trend-legend .change::before{background:#315e87}.ci-trend-legend .historical::before{background:#a8b4bd}.ci-trend-chart>div>.ci-trend-bar{position:relative;display:block;height:var(--trend-height);min-height:4px;padding:0;background:transparent;color:var(--text)}.ci-trend-bar>i{position:absolute;top:-17px;left:0;width:100%;color:var(--muted)}.ci-trend-bar>em{display:flex;flex-direction:column-reverse;width:100%;height:100%;overflow:hidden;font-style:normal}.ci-trend-bar>em>span{display:block;min-height:3px;background:var(--accent)}.ci-trend-bar>em>.change{background:#315e87}.ci-trend-bar>em>.historical{background:#a8b4bd}.ci-trend-method{margin:14px 0 0;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:.75rem}
@media(max-width:720px){.ci-trend-integrity{grid-template-columns:repeat(2,1fr)}.ci-trend-integrity>span{border-bottom:1px solid var(--line)}.ci-trend-integrity>span:nth-child(2n){border-right:0}}
@media(max-width:460px){.ci-trend-integrity{grid-template-columns:1fr}.ci-trend-integrity>span{border-right:0}}
.ci-timeline-row time span{display:block;margin-top:4px;color:var(--muted);font-size:.68rem}

/* Cost reconciliation and a quieter Watch review surface. */
.watch-view-actions #scanCompetitorWatchesButton{display:none}
.cloudflare-billing-reconciliation{margin-bottom:10px;border:1px solid #a8cfc3;border-left:4px solid var(--accent);border-radius:2px;background:var(--surface-raised,#fff)}
.cloudflare-billing-heading,.cloudflare-billing-setup{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px}
.cloudflare-billing-heading>div,.cloudflare-billing-setup>div{display:grid;gap:3px}.cloudflare-billing-heading>div>b{color:var(--accent-dark);font-size:1.2rem}
.cloudflare-billing-heading small,.cloudflare-billing-setup p,.cloudflare-billing-reconciliation>p{margin:0;color:var(--muted);font-size:.72rem}
.cloudflare-billing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#f6faf8}
.cloudflare-billing-grid>span,.cloudflare-billing-services>span{display:flex;justify-content:space-between;gap:10px;padding:10px 13px;border-left:1px solid var(--line);color:var(--muted);font-size:.74rem}.cloudflare-billing-grid>span:first-child,.cloudflare-billing-services>span:first-child{border-left:0}.cloudflare-billing-grid b,.cloudflare-billing-services b{color:var(--text)}
.cloudflare-billing-services{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));border-bottom:1px solid var(--line)}.cloudflare-billing-reconciliation>p{padding:9px 13px}
.watch-finding-quick-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 10px;border:1px solid var(--line);border-radius:2px;background:var(--surface-raised,#fff)}
.watch-finding-quick-filters button{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:9px 12px;border:0;border-left:1px solid var(--line);border-radius:0;background:transparent;color:var(--muted);box-shadow:none}.watch-finding-quick-filters button:first-child{border-left:0}.watch-finding-quick-filters button.active{background:#e8f4f0;color:var(--accent-dark);box-shadow:inset 0 -3px 0 var(--accent)}
.watch-finding-quick-filters b{display:grid;place-items:center;min-width:24px;height:22px;padding:0 5px;border:1px solid currentColor;border-radius:2px;font-size:.72rem}.watch-more-filter{display:grid;gap:2px;color:var(--muted);font-size:.65rem;font-weight:750;text-transform:uppercase;letter-spacing:.04em}
.watch-card-intent{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.watch-card-intent .watch-purpose{margin-top:0}.watch-card-details{margin-top:3px;border-top:1px solid var(--line)}.watch-card-details summary{padding:8px 0;color:var(--muted);font-size:.72rem;font-weight:750;cursor:pointer}.watch-card-details>div{display:grid;gap:7px;padding:2px 0 8px}
.backfill-batch-issues{display:block;border:1px solid var(--line);border-radius:2px;background:var(--surface-raised,#fff)}.backfill-batch-issues>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;color:var(--muted);font-size:.74rem;cursor:pointer}.backfill-batch-issues>summary b{color:var(--text)}.backfill-batch-issue-list{display:grid;gap:6px;padding:0 12px 10px;border-top:1px solid var(--line)}
@media(max-width:760px){.cloudflare-billing-grid,.watch-finding-quick-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.cloudflare-billing-grid>span:nth-child(3){grid-column:1/-1;border-top:1px solid var(--line);border-left:0}.watch-finding-quick-filters button:nth-child(3){border-left:0;border-top:1px solid var(--line)}.watch-finding-quick-filters button:nth-child(4){border-top:1px solid var(--line)}}
@media(max-width:520px){.cloudflare-billing-heading,.cloudflare-billing-setup{align-items:flex-start;flex-direction:column}.cloudflare-billing-grid{grid-template-columns:1fr}.cloudflare-billing-grid>span,.cloudflare-billing-grid>span:nth-child(3){grid-column:auto;border-top:1px solid var(--line);border-left:0}.cloudflare-billing-grid>span:first-child{border-top:0}.watch-finding-quick-filters{grid-template-columns:1fr}.watch-finding-quick-filters button,.watch-finding-quick-filters button:nth-child(3),.watch-finding-quick-filters button:nth-child(4){border-top:1px solid var(--line);border-left:0}.watch-finding-quick-filters button:first-child{border-top:0}}

/* Competitive Intelligence Center: one briefing surface with explicit evidence lenses. */
.ci-brief-hero,
.ci-ai-output,
.ci-brief-stats,
.ci-brief-section,
.ci-profile-row,
.ci-material-list article,
.ci-all-clear {
  border-radius: 0;
}

.ci-brief-hero {
  border-left-color: var(--forest-700);
  background: linear-gradient(100deg, #f8fcfa 0%, var(--surface) 64%);
}

.ci-brief-hero > button {
  min-width: 174px;
}

.ci-activity-lens {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--surface-raised, #fff);
}

.ci-activity-lens > div:first-child {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
}

.ci-activity-lens > div:first-child span {
  color: var(--muted);
  font-size: .72rem;
}

.ci-activity-lens > div:last-child {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

.ci-activity-lens button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 9px 12px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: .73rem;
}

.ci-activity-lens button:first-child {
  border-left: 0;
}

.ci-activity-lens button:hover,
.ci-activity-lens button:focus-visible {
  background: var(--forest-50);
  color: var(--accent-dark);
}

.ci-activity-lens button.active {
  background: #e8f4f0;
  color: var(--accent-dark);
  box-shadow: inset 0 -3px 0 var(--forest-700);
}

.ci-activity-lens button span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: .68rem;
  font-weight: 800;
}

.ci-digest {
  margin-top: 14px;
  border: 1px solid color-mix(in srgb, var(--forest-700) 32%, var(--line));
  border-top: 4px solid var(--forest-700);
  border-radius: 0;
  background: var(--surface-raised, #fff);
}

.ci-digest * {
  min-width: 0;
}

.ci-digest-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding: 18px 20px 14px;
}

.ci-digest-heading h3 {
  margin: 5px 0 3px;
}

.ci-digest-heading p,
.ci-digest-period {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}

.ci-digest-heading > div:last-child {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.ci-digest-window {
  display: flex;
  border: 1px solid var(--line);
}

.ci-digest-window button {
  width: auto;
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: .7rem;
}

.ci-digest-window button:first-child {
  border-left: 0;
}

.ci-digest-window button.active {
  background: var(--forest-700);
  color: #fff;
}

.ci-digest-period {
  padding: 8px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--forest-50);
}

.ci-digest-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.ci-digest-metrics span {
  display: grid;
  gap: 2px;
  padding: 13px 16px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: .7rem;
}

.ci-digest-metrics span:first-child {
  border-left: 0;
}

.ci-digest-metrics b {
  color: var(--text);
  font-size: 1.15rem;
}

.ci-digest-body {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
}

.ci-digest-latest {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--forest-50) 62%, var(--surface-raised, #fff));
}

.ci-digest-latest h4 {
  margin: 7px 0 5px;
}

.ci-digest-latest p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}

.ci-digest-latest .ci-digest-change {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}

.ci-digest-latest button {
  width: auto;
  margin-top: 12px;
}

.ci-digest-themes {
  padding: 18px 20px;
}

.ci-digest-themes > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ci-digest-themes article {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-left: 3px solid var(--forest-700);
  background: var(--forest-50);
}

.ci-digest-themes article span {
  color: var(--accent-dark);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ci-digest-themes article p {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
}

.ci-digest-empty {
  margin: 0;
  padding: 18px 20px;
  color: var(--muted);
}

.ci-history {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--forest-700);
  border-radius: 0;
  background: var(--surface);
}

.ci-history * {
  min-width: 0;
}

.ci-history > .section-heading {
  margin-bottom: 12px;
}

.ci-history-list {
  display: grid;
  gap: 8px;
}

.ci-history-row {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-raised, #fff);
}

.ci-history-row.expanded {
  border-color: color-mix(in srgb, var(--forest-700) 48%, var(--line));
}

.ci-history-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 15px 16px;
}

.ci-history-summary > div:first-child > span {
  color: var(--accent-dark);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ci-history-summary h4 {
  margin: 4px 0;
}

.ci-history-summary p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .8rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ci-history-summary > div:last-child {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.ci-history-summary time {
  color: var(--muted);
  font-size: .72rem;
  white-space: nowrap;
}

.ci-history-summary button {
  width: auto;
}

.ci-history-detail {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--forest-50);
}

.ci-history-detail > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ci-history-detail article {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface-raised, #fff);
}

.ci-history-detail article p,
.ci-history-detail > p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .76rem;
}

.ci-history-detail ul {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
}

.ci-history-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  color: var(--muted);
}

@media (max-width: 980px) {
  .ci-digest-body {
    grid-template-columns: 1fr;
  }

  .ci-digest-latest {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ci-activity-lens {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ci-activity-lens > div:last-child {
    border-top: 1px solid var(--line);
    border-left: 0;
    overflow-x: auto;
  }

  .ci-activity-lens button {
    min-width: 132px;
  }
}

@media (max-width: 620px) {
  .ci-digest-heading {
    grid-template-columns: 1fr;
  }

  .ci-digest-heading > div:last-child {
    justify-items: start;
  }

  .ci-digest-window button {
    min-height: 44px;
  }

  .ci-digest-metrics,
  .ci-digest-themes > div {
    grid-template-columns: 1fr 1fr;
  }

  .ci-digest-metrics span:nth-child(odd) {
    border-left: 0;
  }

  .ci-digest-metrics span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .ci-history {
    padding: 16px;
  }

  .ci-history-summary {
    grid-template-columns: 1fr;
  }

  .ci-history-summary > div:last-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
  }

  .ci-history-summary time {
    white-space: normal;
  }

  .ci-history-detail > div {
    grid-template-columns: 1fr;
  }

  .ci-activity-lens > div:last-child {
    grid-template-columns: 1fr 1fr;
  }

  .ci-activity-lens button,
  .ci-activity-lens button:first-child {
    min-width: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .ci-activity-lens button:nth-child(-n + 2) {
    border-top: 0;
  }

  .ci-activity-lens button:nth-child(odd) {
    border-left: 0;
  }

  .ci-activity-lens button:last-child {
    grid-column: 1 / -1;
  }
}
