
      /* Ardtumen Design System v1.0.0
   Canonical shared tokens and opt-in components.
   Scope components under .ad-ui to avoid changing legacy pages unexpectedly.
*/
      :root {
        color-scheme: dark;
        --ad-color-bg: #080d18;
        --ad-color-sidebar: #0b1220;
        --ad-color-surface: #0d1727;
        --ad-color-raised: #101a2b;
        --ad-color-hover: #17243a;
        --ad-color-text: #e8eef8;
        --ad-color-text-secondary: #9aa9bd;
        --ad-color-text-muted: #71829a;
        --ad-color-primary: #5798ff;
        --ad-color-primary-hover: #347fe8;
        --ad-color-cyan: #36d6e7;
        --ad-color-violet: #a78bfa;
        --ad-color-success: #24c58b;
        --ad-color-warning: #f4b64d;
        --ad-color-danger: #f36b7b;
        --ad-color-border: #223149;
        --ad-color-border-soft: rgba(148, 163, 184, 0.16);
        --ad-font-sans:
          Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI", sans-serif;
        --ad-font-mono:
          "SFMono-Regular", Consolas, "Liberation Mono", monospace;
        --ad-text-xs: 0.75rem;
        --ad-text-sm: 0.875rem;
        --ad-text-md: 1rem;
        --ad-text-lg: 1.125rem;
        --ad-text-xl: 1.25rem;
        --ad-text-2xl: 1.5rem;
        --ad-text-3xl: 1.875rem;
        --ad-text-4xl: 2.25rem;
        --ad-leading-tight: 1.2;
        --ad-leading-normal: 1.5;
        --ad-leading-relaxed: 1.7;
        --ad-space-1: 4px;
        --ad-space-2: 8px;
        --ad-space-3: 12px;
        --ad-space-4: 16px;
        --ad-space-5: 20px;
        --ad-space-6: 24px;
        --ad-space-8: 32px;
        --ad-space-10: 40px;
        --ad-space-12: 48px;
        --ad-space-16: 64px;
        --ad-radius-sm: 6px;
        --ad-radius-md: 9px;
        --ad-radius-lg: 12px;
        --ad-radius-xl: 16px;
        --ad-radius-2xl: 20px;
        --ad-radius-pill: 999px;
        --ad-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.16);
        --ad-shadow-md: 0 10px 28px rgba(0, 0, 0, 0.2);
        --ad-shadow-lg: 0 16px 45px rgba(0, 0, 0, 0.24);
        --ad-motion-fast: 120ms;
        --ad-motion-normal: 180ms;
        --ad-motion-slow: 260ms;
        --ad-motion-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
        --ad-z-dropdown: 100;
        --ad-z-sticky: 200;
        --ad-z-overlay: 800;
        --ad-z-modal: 900;
        --ad-z-toast: 1000;

        /* Temporary aliases for gradual migration; do not add new code using these names. */
        --ds-bg: var(--ad-color-bg);
        --ds-sidebar: var(--ad-color-sidebar);
        --ds-surface: var(--ad-color-surface);
        --ds-surface-raised: var(--ad-color-raised);
        --ds-surface-hover: var(--ad-color-hover);
        --ds-border: var(--ad-color-border);
        --ds-border-soft: var(--ad-color-border-soft);
        --ds-text: var(--ad-color-text);
        --ds-muted: var(--ad-color-text-secondary);
        --ds-subtle: var(--ad-color-text-muted);
        --ds-primary: var(--ad-color-primary);
        --ds-primary-hover: var(--ad-color-primary-hover);
        --ds-cyan: var(--ad-color-cyan);
        --ds-success: var(--ad-color-success);
        --ds-warning: var(--ad-color-warning);
        --ds-danger: var(--ad-color-danger);
        --ds-violet: var(--ad-color-violet);
        --ds-radius-sm: var(--ad-radius-sm);
        --ds-radius-md: var(--ad-radius-md);
        --ds-radius-lg: var(--ad-radius-lg);
        --ds-shadow: var(--ad-shadow-lg);
        --ds-font: var(--ad-font-sans);
      }

      .ad-ui,
      .ad-ui * {
        box-sizing: border-box;
      }
      .ad-ui {
        color: var(--ad-color-text);
        font-family: var(--ad-font-sans);
        font-size: var(--ad-text-sm);
        line-height: var(--ad-leading-normal);
      }
      .ad-ui :where(h1, h2, h3, h4, p, ul, ol) {
        margin: 0;
      }
      .ad-ui :where(button, input, select, textarea) {
        font: inherit;
      }
      .ad-ui :where(button) {
        cursor: pointer;
      }
      .ad-ui :where(a) {
        color: inherit;
        text-decoration: none;
      }
      .ad-ui :where(:focus-visible) {
        outline: 2px solid var(--ad-color-cyan);
        outline-offset: 3px;
      }
      .ad-ui :where([hidden]) {
        display: none !important;
      }

      /* Layout primitives */
      .ad-container {
        width: min(100% - 2 * var(--ad-space-6), 1440px);
        margin-inline: auto;
      }
      .ad-stack {
        display: flex;
        flex-direction: column;
        gap: var(--ad-space-4);
      }
      .ad-cluster {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--ad-space-3);
      }
      .ad-grid {
        display: grid;
        gap: var(--ad-space-4);
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
      }
      .ad-panel {
        min-width: 0;
        padding: var(--ad-space-5);
        border: 1px solid var(--ad-color-border-soft);
        border-radius: var(--ad-radius-lg);
        background: var(--ad-color-surface);
      }
      .ad-panel--raised {
        background: var(--ad-color-raised);
        box-shadow: var(--ad-shadow-sm);
      }
      .ad-divider {
        height: 1px;
        border: 0;
        background: var(--ad-color-border-soft);
      }

      /* Typography */
      .ad-eyebrow {
        color: var(--ad-color-cyan);
        font-size: var(--ad-text-xs);
        font-weight: 750;
        letter-spacing: 0.12em;
        text-transform: uppercase;
      }
      .ad-title {
        color: var(--ad-color-text);
        font-size: clamp(1.5rem, 3vw, 2.25rem);
        font-weight: 760;
        letter-spacing: -0.035em;
        line-height: var(--ad-leading-tight);
      }
      .ad-heading {
        color: var(--ad-color-text);
        font-size: var(--ad-text-xl);
        font-weight: 700;
        letter-spacing: -0.02em;
        line-height: var(--ad-leading-tight);
      }
      .ad-body {
        color: var(--ad-color-text-secondary);
        line-height: var(--ad-leading-relaxed);
      }
      .ad-caption {
        color: var(--ad-color-text-muted);
        font-size: var(--ad-text-xs);
      }
      .ad-mono {
        font-family: var(--ad-font-mono);
        font-variant-numeric: tabular-nums;
      }

      /* Buttons */
      .ad-btn {
        display: inline-flex;
        min-height: 38px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 14px;
        border: 1px solid var(--ad-color-border);
        border-radius: var(--ad-radius-md);
        background: var(--ad-color-raised);
        color: var(--ad-color-text);
        font-weight: 650;
        line-height: 1.2;
        transition:
          background var(--ad-motion-normal) var(--ad-motion-ease),
          border-color var(--ad-motion-normal) var(--ad-motion-ease),
          transform var(--ad-motion-fast) var(--ad-motion-ease);
      }
      .ad-btn:hover {
        border-color: rgba(87, 152, 255, 0.55);
        background: var(--ad-color-hover);
      }
      .ad-btn:active {
        transform: translateY(1px);
      }
      .ad-btn--primary {
        border-color: transparent;
        background: linear-gradient(110deg, #2563eb, #347fe8);
        color: #fff;
      }
      .ad-btn--primary:hover {
        background: linear-gradient(110deg, #1d4ed8, #2563eb);
      }
      .ad-btn--ghost {
        border-color: transparent;
        background: transparent;
        color: var(--ad-color-text-secondary);
      }
      .ad-btn--danger {
        border-color: rgba(243, 107, 123, 0.3);
        background: rgba(243, 107, 123, 0.1);
        color: var(--ad-color-danger);
      }
      .ad-btn:disabled,
      .ad-btn[aria-disabled="true"] {
        cursor: not-allowed;
        opacity: 0.48;
      }
      .ad-btn--sm {
        min-height: 30px;
        padding: 5px 10px;
        font-size: var(--ad-text-xs);
      }
      .ad-btn--lg {
        min-height: 46px;
        padding: 11px 18px;
      }

      /* Form controls */
      .ad-field {
        display: grid;
        gap: 6px;
        min-width: 0;
      }
      .ad-label {
        color: var(--ad-color-text-secondary);
        font-size: var(--ad-text-xs);
        font-weight: 650;
      }
      .ad-input,
      .ad-select,
      .ad-textarea {
        width: 100%;
        min-height: 40px;
        padding: 9px 11px;
        border: 1px solid var(--ad-color-border);
        border-radius: var(--ad-radius-md);
        background: var(--ad-color-bg);
        color: var(--ad-color-text);
      }
      .ad-input::placeholder,
      .ad-textarea::placeholder {
        color: var(--ad-color-text-muted);
      }
      .ad-textarea {
        min-height: 104px;
        resize: vertical;
      }
      .ad-input:focus,
      .ad-select:focus,
      .ad-textarea:focus {
        border-color: var(--ad-color-primary);
        outline: 2px solid rgba(87, 152, 255, 0.18);
        outline-offset: 0;
      }

      /* Cards, badges, alerts, tables */
      .ad-card {
        min-width: 0;
        overflow: hidden;
        border: 1px solid var(--ad-color-border-soft);
        border-radius: var(--ad-radius-lg);
        background: linear-gradient(
          145deg,
          var(--ad-color-raised),
          var(--ad-color-surface)
        );
        box-shadow: var(--ad-shadow-sm);
      }
      .ad-card__header,
      .ad-card__body,
      .ad-card__footer {
        padding: var(--ad-space-4) var(--ad-space-5);
      }
      .ad-card__header {
        border-bottom: 1px solid var(--ad-color-border-soft);
      }
      .ad-card__footer {
        border-top: 1px solid var(--ad-color-border-soft);
      }
      .ad-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 3px 8px;
        border: 1px solid var(--ad-color-border);
        border-radius: var(--ad-radius-pill);
        background: rgba(148, 163, 184, 0.08);
        color: var(--ad-color-text-secondary);
        font-size: 11px;
        font-weight: 700;
        line-height: 1.35;
      }
      .ad-badge--success {
        border-color: rgba(36, 197, 139, 0.28);
        background: rgba(36, 197, 139, 0.1);
        color: var(--ad-color-success);
      }
      .ad-badge--warning {
        border-color: rgba(244, 182, 77, 0.28);
        background: rgba(244, 182, 77, 0.1);
        color: var(--ad-color-warning);
      }
      .ad-badge--danger {
        border-color: rgba(243, 107, 123, 0.28);
        background: rgba(243, 107, 123, 0.1);
        color: var(--ad-color-danger);
      }
      .ad-badge--info {
        border-color: rgba(87, 152, 255, 0.28);
        background: rgba(87, 152, 255, 0.1);
        color: var(--ad-color-primary);
      }
      .ad-alert {
        padding: 12px 14px;
        border: 1px solid var(--ad-color-border);
        border-radius: var(--ad-radius-md);
        background: var(--ad-color-raised);
        color: var(--ad-color-text-secondary);
      }
      .ad-alert--success {
        border-color: rgba(36, 197, 139, 0.3);
      }
      .ad-alert--warning {
        border-color: rgba(244, 182, 77, 0.3);
      }
      .ad-alert--danger {
        border-color: rgba(243, 107, 123, 0.3);
      }
      .ad-table-wrap {
        width: 100%;
        overflow-x: auto;
        border: 1px solid var(--ad-color-border-soft);
        border-radius: var(--ad-radius-md);
      }
      .ad-table {
        width: 100%;
        border-collapse: collapse;
        text-align: left;
      }
      .ad-table th,
      .ad-table td {
        padding: 11px 13px;
        border-bottom: 1px solid var(--ad-color-border-soft);
      }
      .ad-table th {
        background: var(--ad-color-raised);
        color: var(--ad-color-text-secondary);
        font-size: var(--ad-text-xs);
        font-weight: 700;
      }
      .ad-table td {
        color: var(--ad-color-text);
      }
      .ad-table tr:last-child td {
        border-bottom: 0;
      }

      /* Navigation primitives */
      .ad-sidebar {
        width: 260px;
        flex: 0 0 260px;
        background: var(--ad-color-sidebar);
        border-right: 1px solid var(--ad-color-border-soft);
      }
      .ad-nav-link {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 38px;
        padding: 8px 11px;
        border-radius: var(--ad-radius-md);
        color: var(--ad-color-text-secondary);
      }
      .ad-nav-link:hover {
        background: var(--ad-color-hover);
        color: var(--ad-color-text);
      }
      .ad-nav-link[aria-current="page"] {
        background: rgba(87, 152, 255, 0.13);
        color: var(--ad-color-text);
        box-shadow: inset 2px 0 var(--ad-color-primary);
      }

      /* Motion and responsive behavior */
      @media (max-width: 760px) {
        .ad-container {
          width: min(100% - 2 * var(--ad-space-4), 1440px);
        }
        .ad-panel {
          padding: var(--ad-space-4);
        }
        .ad-sidebar {
          width: 100%;
          flex-basis: auto;
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .ad-ui *,
        .ad-ui *::before,
        .ad-ui *::after {
          scroll-behavior: auto !important;
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
        }
      }

      /* ═══ Newsroom base ═══ */
      * {
        box-sizing: border-box;
      }
      body {
        margin: 0;
        background: var(--bg);
        color: var(--text);
        font:
          13px/1.5 Inter,
          ui-sans-serif,
          system-ui,
          -apple-system,
          "Segoe UI",
          sans-serif;
      }
      button,
      input,
      select,
      textarea {
        font: inherit;
      }
      button {
        cursor: pointer;
      }
      .app {
        min-height: 100vh;
        display: grid;
        grid-template-columns: 246px 1fr;
      }
      .sidebar {
        background: var(--sidebar);
        border-right: 1px solid var(--line);
        height: 100vh;
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: column;
        z-index: 5;
      }
      .brand {
        padding: 21px 18px 18px;
        border-bottom: 1px solid var(--line);
        display: flex;
        gap: 11px;
        align-items: center;
      }
      .brandmark {
        width: 35px;
        height: 35px;
        border-radius: 10px;
        background: linear-gradient(135deg, #0e7490, #2563eb);
        display: grid;
        place-items: center;
        font-weight: 900;
        color: white;
        box-shadow: 0 7px 22px #0891b255;
      }
      .brand b {
        display: block;
        font-size: 14px;
        letter-spacing: 0.4px;
      }
      .brand small {
        color: var(--muted);
        font-size: 11px;
        letter-spacing: 1.4px;
      }
      .nav {
        padding: 14px 10px;
        overflow: auto;
        flex: 1;
      }
      .nav-label {
        font-size: 11px;
        color: #64748b;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        padding: 13px 10px 6px;
      }
      .nav button {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        border: 0;
        background: transparent;
        color: #9eacc1;
        text-align: left;
        padding: 9px 10px;
        border-radius: 8px;
        margin: 2px 0;
        font-size: 11px;
        transition: 0.15s;
      }
      .nav button:hover {
        background: #17243a;
        color: #fff;
      }
      .nav button.active {
        background: linear-gradient(90deg, #12344b, #14243a);
        color: #dffaff;
        box-shadow: inset 2px 0 var(--cyan);
      }
      .nav .ico {
        width: 17px;
        text-align: center;
        font-size: 14px;
      }
      .nav .count {
        margin-left: auto;
        font-size: 11px;
        color: #9db4ce;
        background: #1b2a40;
        padding: 2px 6px;
        border-radius: 10px;
      }
      .side-bottom {
        border-top: 1px solid var(--line);
        padding: 12px 16px;
        color: var(--muted);
        font-size: 12px;
      }
      .user {
        display: flex;
        gap: 9px;
        align-items: center;
      }
      .avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #263b57;
        display: grid;
        place-items: center;
        color: #bfefff;
        font-weight: 700;
      }
      .main {
        min-width: 0;
      }
      .topbar {
        height: 66px;
        border-bottom: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 28px;
        background: #0a1220d9;
        position: sticky;
        top: 0;
        z-index: 4;
        backdrop-filter: blur(12px);
      }
      .crumb {
        color: var(--muted);
        font-size: 11px;
      }
      .crumb strong {
        color: var(--text);
        font-weight: 600;
      }
      .top-actions {
        display: flex;
        align-items: center;
        gap: 9px;
      }
      .pill {
        border: 1px solid var(--line);
        border-radius: 20px;
        padding: 6px 10px;
        font-size: 12px;
        color: #b9c7da;
        background: #101b2c;
      }
      .live-dot {
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--green);
        margin-right: 6px;
        box-shadow: 0 0 9px #24c58b88;
      }
      .btn {
        border: 1px solid #2b4967;
        background: #132b42;
        color: #d9f7ff;
        border-radius: 7px;
        padding: 8px 11px;
        font-size: 12px;
      }
      .btn:hover {
        background: #1a3a58;
      }
      .btn.primary {
        background: #087e91;
        border-color: #12a6b9;
        color: white;
      }
      .btn.ghost {
        background: transparent;
        border-color: var(--line);
        color: #aebbd0;
      }
      .content {
        max-width: 1600px;
        margin: auto;
        padding: 26px 28px 50px;
      }
      .pagehead {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 21px;
      }
      .eyebrow {
        color: var(--cyan);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 1.8px;
        text-transform: uppercase;
      }
      .pagehead h1 {
        font-size: 24px;
        letter-spacing: -0.7px;
        margin: 5px 0 4px;
      }
      .pagehead p {
        margin: 0;
        color: var(--muted);
        font-size: 11px;
        max-width: 780px;
      }
      .head-buttons {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
      }
      .demo-banner {
        display: flex;
        gap: 10px;
        align-items: center;
        padding: 10px 13px;
        border: 1px solid #70562b;
        background: #33271266;
        border-radius: 8px;
        color: #f5d79b;
        font-size: 12px;
        margin-bottom: 17px;
      }
      .demo-banner b {
        color: #ffdc91;
      }
      .grid {
        display: grid;
        gap: 13px;
      }
      .kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: 14px;
      }
      .card {
        background: linear-gradient(155deg, #111d30, #0d1727);
        border: 1px solid var(--line);
        border-radius: 11px;
        box-shadow: var(--shadow);
        min-width: 0;
      }
      .card-head {
        padding: 13px 15px;
        border-bottom: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }
      .card-head h3 {
        font-size: 11px;
        margin: 0;
        font-weight: 700;
      }
      .card-body {
        padding: 14px 15px;
      }
      .kpi {
        padding: 14px 15px;
      }
      .kpi .label {
        font-size: 12px;
        color: var(--muted);
      }
      .kpi .value {
        font-size: 25px;
        font-weight: 750;
        letter-spacing: -0.7px;
        margin: 7px 0 3px;
      }
      .kpi .foot {
        font-size: 11px;
        color: var(--muted);
      }
      .kpi .delta {
        color: var(--green);
        font-size: 11px;
      }
      .two {
        grid-template-columns: 1.35fr 1fr;
      }
      .three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .split {
        grid-template-columns: 1fr 1fr;
      }
      .tag {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        border: 1px solid var(--line);
        padding: 3px 7px;
        border-radius: 5px;
        font-size: 11px;
        color: #b6c5d8;
        white-space: nowrap;
      }
      .tag.green {
        border-color: #1d6b53;
        color: #74e4ba;
        background: #0e3b3044;
      }
      .tag.amber {
        border-color: #72582a;
        color: #f5cd80;
        background: #45351644;
      }
      .tag.red {
        border-color: #733747;
        color: #ff9eac;
        background: #491b2b55;
      }
      .tag.blue {
        border-color: #285985;
        color: #9acaff;
        background: #142f4d;
      }
      .tag.purple {
        border-color: #594a88;
        color: #c8b8ff;
        background: #30264f;
      }
      .table-wrap {
        overflow: auto;
      }
      table {
        width: 100%;
        border-collapse: collapse;
        white-space: nowrap;
      }
      th {
        text-align: left;
        color: #73859e;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.5px;
        padding: 9px 10px;
        border-bottom: 1px solid var(--line);
      }
      td {
        padding: 11px 10px;
        border-bottom: 1px solid #1b293c;
        font-size: 12px;
        color: #cbd6e5;
      }
      tr:last-child td {
        border-bottom: 0;
      }
      tbody tr:hover {
        background: #ffffff05;
      }
      .muted {
        color: var(--muted);
      }
      .titlecell {
        font-weight: 650;
        color: #e8effa;
      }
      .subcell {
        font-size: 11px;
        color: #8192aa;
        margin-top: 3px;
      }
      .bar {
        height: 6px;
        border-radius: 10px;
        background: #23344a;
        overflow: hidden;
      }
      .bar i {
        display: block;
        height: 100%;
        border-radius: 10px;
        background: linear-gradient(90deg, #0e9bb0, #49d7e5);
      }
      .stagebar {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
        margin: 7px 0 15px;
      }
      .stage {
        height: 5px;
        border-radius: 5px;
        background: #26354b;
      }
      .stage.done {
        background: var(--green);
      }
      .stage.current {
        background: var(--cyan);
        box-shadow: 0 0 10px #36d6e755;
      }
      .pipeline {
        display: grid;
        grid-template-columns: repeat(7, minmax(100px, 1fr));
        gap: 8px;
        overflow: auto;
        padding-bottom: 4px;
      }
      .pipe {
        background: #0c1727;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 10px;
        min-height: 108px;
      }
      .pipe b {
        display: block;
        font-size: 12px;
        margin-bottom: 5px;
      }
      .pipe small {
        display: block;
        color: var(--muted);
        font-size: 11px;
      }
      .pipe .num {
        font-size: 18px;
        font-weight: 750;
        margin-top: 12px;
      }
      .dot {
        width: 7px;
        height: 7px;
        display: inline-block;
        border-radius: 50%;
        margin-right: 5px;
      }
      .dot.green {
        background: var(--green);
      }
      .dot.amber {
        background: var(--amber);
      }
      .dot.red {
        background: var(--red);
      }
      .dot.blue {
        background: var(--blue);
      }
      .list {
        display: grid;
        gap: 9px;
      }
      .listrow {
        display: flex;
        align-items: flex-start;
        gap: 9px;
      }
      .listrow .bullet {
        width: 25px;
        height: 25px;
        border-radius: 7px;
        background: #172b43;
        display: grid;
        place-items: center;
        color: #8bdcf1;
        flex: none;
      }
      .listrow b {
        display: block;
        font-size: 12px;
      }
      .listrow small {
        display: block;
        color: var(--muted);
        font-size: 11px;
        margin-top: 2px;
      }
      .chart {
        height: 135px;
        display: flex;
        align-items: end;
        gap: 9px;
        padding: 12px 5px 0;
        border-bottom: 1px solid var(--line);
      }
      .chart .col {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        height: 100%;
        justify-content: end;
      }
      .chart .col i {
        display: block;
        width: 70%;
        max-width: 27px;
        border-radius: 4px 4px 0 0;
        background: linear-gradient(180deg, #35c9d8, #2460a0);
      }
      .chart .col small {
        font-size: 11px;
        color: var(--muted);
      }
      .ring-wrap {
        display: flex;
        align-items: center;
        gap: 20px;
      }
      .ring {
        width: 112px;
        height: 112px;
        border-radius: 50%;
        background: conic-gradient(
          var(--green) 0 62%,
          #64748b 62% 84%,
          var(--red) 84% 100%
        );
        position: relative;
        flex: none;
      }
      .ring:after {
        content: "";
        position: absolute;
        inset: 17px;
        background: #101a2b;
        border-radius: 50%;
      }
      .ring-center {
        position: absolute;
        inset: 0;
        z-index: 1;
        display: grid;
        place-items: center;
        text-align: center;
        font-size: 17px;
        font-weight: 750;
      }
      .legend {
        display: grid;
        gap: 8px;
      }
      .legend span {
        font-size: 11px;
        color: var(--muted);
      }
      .legend b {
        color: var(--text);
        margin-left: 5px;
      }
      .search {
        background: #0a1423;
        border: 1px solid var(--line);
        border-radius: 7px;
        padding: 8px 10px;
        color: var(--text);
        font-size: 12px;
        min-width: 190px;
      }
      .select {
        background: #0a1423;
        border: 1px solid var(--line);
        border-radius: 7px;
        padding: 8px;
        color: #cbd6e5;
        font-size: 12px;
      }
      .module-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
      }
      .module-card {
        padding: 15px;
        cursor: pointer;
        transition: 0.18s;
      }
      .module-card:hover {
        transform: translateY(-2px);
        border-color: #35617d;
      }
      .module-icon {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        background: #15344a;
        color: #8de9f3;
        display: grid;
        place-items: center;
        font-size: 15px;
        margin-bottom: 10px;
      }
      .module-card h3 {
        font-size: 12px;
        margin: 0 0 5px;
      }
      .module-card p {
        font-size: 11px;
        color: var(--muted);
        margin: 0 0 12px;
        min-height: 30px;
      }
      .module-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      .agent-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
      }
      .agent {
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #0d1929;
      }
      .agent-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      .agent h4 {
        font-size: 12px;
        margin: 9px 0 3px;
      }
      .agent p {
        font-size: 11px;
        color: var(--muted);
        margin: 0 0 9px;
      }
      .agent-foot {
        display: flex;
        justify-content: space-between;
        color: #8fa0b8;
        font-size: 11px;
      }
      .claim {
        padding: 11px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #0b1727;
        margin-bottom: 8px;
      }
      .claim:last-child {
        margin: 0;
      }
      .claim-top {
        display: flex;
        justify-content: space-between;
        gap: 8px;
      }
      .claim b {
        font-size: 12px;
      }
      .claim p {
        font-size: 11px;
        color: var(--muted);
        margin: 6px 0;
      }
      .claim small {
        font-size: 11px;
        color: #8295ad;
      }
      .timeline {
        border-left: 1px solid #2b435e;
        margin-left: 7px;
        padding-left: 17px;
        display: grid;
        gap: 14px;
      }
      .event {
        position: relative;
      }
      .event:before {
        content: "";
        position: absolute;
        left: -22px;
        top: 4px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--cyan);
        box-shadow: 0 0 0 4px #143447;
      }
      .event b {
        font-size: 12px;
      }
      .event small {
        display: block;
        color: var(--muted);
        font-size: 11px;
        margin-top: 3px;
      }
      .graphbox {
        height: 255px;
        background: #0a1423;
        border: 1px solid var(--line);
        border-radius: 9px;
        position: relative;
        overflow: hidden;
      }
      .graphbox svg {
        width: 100%;
        height: 100%;
      }
      .node {
        fill: #122b43;
        stroke: #3b9eb4;
        stroke-width: 1.5;
      }
      .node.mainnode {
        fill: #075c72;
        stroke: #49dbe8;
        stroke-width: 2;
      }
      .edge {
        stroke: #42617c;
        stroke-width: 1.2;
        opacity: 0.8;
      }
      .node-label {
        fill: #d8e8f7;
        font-size: 12px;
      }
      .workflow {
        display: flex;
        gap: 6px;
        overflow: auto;
        padding: 5px 0 10px;
      }
      .wf {
        min-width: 120px;
        padding: 11px;
        background: #0c1929;
        border: 1px solid var(--line);
        border-radius: 8px;
      }
      .wf strong {
        display: block;
        font-size: 12px;
      }
      .wf small {
        display: block;
        font-size: 11px;
        color: var(--muted);
        margin-top: 5px;
      }
      .emptyhint {
        padding: 24px;
        text-align: center;
        color: var(--muted);
        font-size: 12px;
        border: 1px dashed #33465f;
        border-radius: 9px;
      }
      .footer-note {
        font-size: 11px;
        color: #71829a;
        margin-top: 18px;
        line-height: 1.6;
      }
      .toast {
        position: fixed;
        right: 24px;
        bottom: 22px;
        background: #15344a;
        border: 1px solid #28748b;
        color: #d8fbff;
        padding: 11px 15px;
        border-radius: 8px;
        box-shadow: var(--shadow);
        font-size: 12px;
        opacity: 0;
        transform: translateY(10px);
        transition: 0.2s;
        pointer-events: none;
        z-index: 20;
      }
      .toast.show {
        opacity: 1;
        transform: translateY(0);
      }
      .modal-bg {
        position: fixed;
        inset: 0;
        background: #0009;
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 30;
        padding: 20px;
      }
      .modal-bg.open {
        display: flex;
      }
      .modal {
        max-width: 560px;
        width: 100%;
        background: #101b2d;
        border: 1px solid #34516d;
        border-radius: 12px;
        box-shadow: var(--shadow);
        padding: 18px;
      }
      .modal h3 {
        margin: 0 0 7px;
        font-size: 15px;
      }
      .modal p {
        font-size: 12px;
        color: var(--muted);
        line-height: 1.6;
      }
      .modal-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 16px;
      }
      .mobile-menu {
        display: none;
      }

      .nav-group {
        margin: 8px 0 2px;
      }
      .nav-parent {
        font-weight: 700 !important;
        color: #d5e2f2 !important;
        justify-content: space-between;
      }
      .nav-parent .nav-parent-label {
        display: flex;
        align-items: center;
        gap: 10px;
      }
      .nav-parent .chevron {
        margin-left: auto;
        color: #71839b;
        transition: transform 0.18s;
      }
      .nav-parent[aria-expanded="true"] .chevron {
        transform: rotate(90deg);
      }
      .subnav {
        display: none;
        margin: 2px 0 7px 10px;
        padding-left: 8px;
        border-left: 1px solid #26364c;
      }
      .subnav.open {
        display: block;
      }
      .nav .subnav button {
        font-size: 12px;
        padding: 8px 9px;
        color: #91a5bd;
      }
      .nav .subnav button.active {
        background: #153247;
        color: #baf6ff;
        box-shadow: inset 2px 0 var(--cyan);
      }
      .nav .subnav .ico {
        font-size: 12px;
        width: 15px;
        text-align: center;
      }
      .nav-one-line {
        white-space: nowrap;
        flex-wrap: nowrap;
        min-width: 0;
      }
      .nav-one-line .ico {
        flex: none;
      }

      @media (max-width: 1100px) {
        .app {
          grid-template-columns: 215px 1fr;
        }
        .content {
          padding: 22px 18px;
        }
        .module-grid {
          grid-template-columns: repeat(2, 1fr);
        }
        .agent-grid {
          grid-template-columns: repeat(2, 1fr);
        }
      }
      @media (max-width: 760px) {
        .app {
          display: block;
        }
        .sidebar {
          position: fixed;
          left: -255px;
          width: 246px;
          transition: 0.2s;
          box-shadow: var(--shadow);
        }
        .sidebar.open {
          left: 0;
        }
        .topbar {
          padding: 0 14px;
          height: 58px;
        }
        .mobile-menu {
          display: inline-block;
        }
        .content {
          padding: 18px 13px 35px;
        }
        .pagehead {
          display: block;
        }
        .head-buttons {
          margin-top: 13px;
        }
        .kpis {
          grid-template-columns: repeat(2, 1fr);
        }
        .two,
        .split,
        .three {
          grid-template-columns: 1fr;
        }
        .module-grid,
        .agent-grid {
          grid-template-columns: 1fr;
        }
        .pipeline {
          grid-template-columns: repeat(7, 115px);
        }
        .search {
          min-width: 130px;
        }
        .top-actions .pill {
          display: none;
        }
      }

      .chart-bars {
        height: 150px;
        display: flex;
        align-items: flex-end;
        gap: 12px;
        padding: 12px 8px 0;
        border-bottom: 1px solid var(--line);
      }
      .bar-col {
        height: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        gap: 7px;
      }
      .bar {
        width: min(28px, 70%);
        border-radius: 5px 5px 0 0;
        background: linear-gradient(180deg, #19c5d8, #17658a);
        min-height: 8px;
      }
      .bar-col small {
        color: #8293aa;
        font-size: 11px;
      }
      .legend {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 12px;
        color: #9eacc1;
        font-size: 11px;
      }
      .metric-stack {
        display: grid;
        gap: 16px;
        padding: 10px 0;
      }
      .metric-stack div {
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: 5px 10px;
        align-items: center;
      }
      .metric-stack b {
        grid-row: span 2;
        font-size: 20px;
        color: #e8f4ff;
      }
      .metric-stack span {
        font-size: 12px;
        color: #a7b6c9;
      }
      .metric-stack i {
        display: block;
        height: 6px;
        background: linear-gradient(90deg, #11b6c9, #167b91);
        border-radius: 8px;
      }
      .entity-map {
        position: relative;
        min-height: 230px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        padding: 20px;
        background: radial-gradient(circle at center, #102b3c, #0d1726 65%);
        border: 1px solid var(--line);
        border-radius: 12px;
      }
      .entity-core,
      .entity-node {
        padding: 12px 16px;
        border: 1px solid #24566b;
        background: #102d40;
        border-radius: 10px;
        text-align: center;
        font-size: 11px;
        color: #d9f8ff;
      }
      .entity-core {
        background: #12475a;
        border-color: #22b9c9;
        font-weight: 800;
      }
      .entity-core small {
        font-size: 11px;
        color: #9bd9e2;
      }
      .entity-node {
        background: #17263a;
        border-color: #34465f;
        color: #c4d3e4;
      }
      .stakeholder-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
      }
      .stakeholder {
        border: 1px solid var(--line);
        border-radius: 9px;
        background: #101b2b;
        color: #d8e5f4;
        padding: 12px 8px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        cursor: pointer;
      }
      .stakeholder span {
        font-size: 18px;
        color: var(--cyan);
      }
      .stakeholder b {
        font-size: 12px;
      }
      .stakeholder small {
        font-size: 11px;
        color: #8396ad;
      }
      .toolbar {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 10px;
      }
      .toolbar .search {
        flex: 1;
        min-width: 160px;
      }
      @media (max-width: 900px) {
        .grid.two {
          grid-template-columns: 1fr;
        }
        .grid.three {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }
      @media (max-width: 760px) {
        .stakeholder-grid {
          grid-template-columns: repeat(2, 1fr);
        }
        .entity-map {
          gap: 7px;
          padding: 12px;
        }
        .entity-node,
        .entity-core {
          padding: 9px;
          font-size: 11px;
        }
      }

      /* ---- Consolidated stylesheet section ---- */

      /* ARDTUMEN DESIGN SYSTEM v1.0 — shared tokens and cross-module baseline.
   Module-specific layouts and interaction styles remain intentionally local. */
      :root {
        color-scheme: dark;
        --ds-bg: #0a0a0f;
        --ds-sidebar: #101018;
        --ds-surface: #13131a;
        --ds-surface-raised: #171722;
        --ds-surface-hover: #252535;
        --ds-border: rgba(255, 255, 255, 0.09);
        --ds-border-soft: rgba(148, 163, 184, 0.16);
        --ds-text: #f8faff;
        --ds-muted: #a1a1b3;
        --ds-subtle: #737386;
        --ds-primary: #2563eb;
        --ds-primary-hover: #1d4ed8;
        --ds-cyan: #06b6d4;
        --ds-success: #10b981;
        --ds-warning: #f59e0b;
        --ds-danger: #e11d48;
        --ds-violet: #7c3aed;
        --ds-radius-sm: 6px;
        --ds-radius-md: 9px;
        --ds-radius-lg: 12px;
        --ds-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
        --ds-font:
          Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI", sans-serif;

        /* Compatibility aliases: existing modules keep their own class structure. */
        --bg: var(--ds-bg);
        --sidebar: var(--ds-sidebar);
        --line: var(--ds-border);
        --text: var(--ds-text);
        --muted: var(--ds-muted);

        --blue: var(--ds-primary);
        --cyan: var(--ds-cyan);
        --green: var(--ds-success);
        --red: var(--ds-danger);
        --amber: var(--ds-warning);

        --shadow: var(--ds-shadow);
      }
      html {
        min-height: 100%;
        scroll-behavior: smooth;
      }
      *,
      *::before,
      *::after {
        box-sizing: border-box;
      }
      body {
        min-height: 100vh;
        font-family: var(--ds-font);
        color: var(--ds-text);
        background: var(--ds-bg);
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
      }
      button,
      input,
      select,
      textarea {
        font: inherit;
      }
      button,
      [role="button"],
      a {
        -webkit-tap-highlight-color: transparent;
      }
      button:focus-visible,
      a:focus-visible,
      input:focus-visible,
      select:focus-visible,
      textarea:focus-visible,
      [tabindex]:focus-visible {
        outline: 2px solid var(--ds-cyan);
        outline-offset: 2px;
      }
      ::selection {
        color: #fff;
        background: rgba(87, 152, 255, 0.38);
      }
      img,
      svg,
      video,
      canvas {
        max-width: 100%;
      }
      .app,
      .shell,
      .main,
      main,
      .content {
        min-width: 0;
      }
      .table-wrap,
      .table-responsive,
      .overflow-x-auto {
        max-width: 100%;
        overflow-x: auto;
      }
      @media (prefers-reduced-motion: reduce) {
        html {
          scroll-behavior: auto;
        }
        *,
        *::before,
        *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
        }
      }
      @media (max-width: 760px) {
        .content {
          max-width: 100%;
        }
        .topbar {
          max-width: 100%;
        }
        table {
          max-width: 100%;
        }
      }

      /* ---- Consolidated stylesheet section ---- */

      /* Revised index visual language applied to the newsroom workspace. */
      body {
        background:
          radial-gradient(
            ellipse at 78% -12%,
            rgba(37, 99, 235, 0.13),
            transparent 34%
          ),
          radial-gradient(
            ellipse at 12% 18%,
            rgba(6, 182, 212, 0.07),
            transparent 30%
          ),
          var(--bg);
        font-family:
          -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
      }
      .sidebar {
        background: linear-gradient(180deg, #101018 0%, #0d0d14 100%);
        border-right-color: rgba(255, 255, 255, 0.08);
      }
      .brandmark {
        background: linear-gradient(
          135deg,
          #06b6d4 0%,
          #2563eb 58%,
          #7c3aed 100%
        );
        box-shadow: 0 8px 26px rgba(37, 99, 235, 0.28);
      }
      .nav button {
        border-radius: 9px;
        color: #a1a1b3;
        transition:
          background 0.18s ease,
          color 0.18s ease,
          transform 0.18s ease;
      }
      .nav button:hover {
        background: rgba(255, 255, 255, 0.055);
        color: #fff;
        transform: translateX(2px);
      }
      .nav button.active {
        background: linear-gradient(
          100deg,
          rgba(37, 99, 235, 0.24),
          rgba(6, 182, 212, 0.09)
        );
        color: #f8faff;
        box-shadow: inset 2px 0 #06b6d4;
      }
      .nav .subnav button.active {
        background: rgba(6, 182, 212, 0.1);
        color: #baf7ff;
        box-shadow: inset 2px 0 #06b6d4;
      }
      .topbar {
        background: rgba(10, 10, 15, 0.82);
        border-bottom-color: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(18px);
      }
      .card {
        background: linear-gradient(
          145deg,
          rgba(28, 28, 40, 0.96),
          rgba(19, 19, 26, 0.98)
        );
        border-color: rgba(255, 255, 255, 0.085);
        border-radius: 14px;
        box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
        transition:
          border-color 0.2s ease,
          transform 0.2s ease;
      }
      .card:hover {
        border-color: rgba(37, 99, 235, 0.28);
      }
      .card-head {
        border-bottom-color: rgba(255, 255, 255, 0.075);
      }
      .btn {
        border-color: rgba(37, 99, 235, 0.35);
        background: rgba(37, 99, 235, 0.13);
        color: #dce9ff;
        border-radius: 9px;
        transition:
          background 0.18s ease,
          border-color 0.18s ease,
          transform 0.18s ease;
      }
      .btn:hover {
        background: rgba(37, 99, 235, 0.23);
        border-color: rgba(6, 182, 212, 0.42);
        transform: translateY(-1px);
      }
      .btn.primary {
        background: linear-gradient(110deg, #2563eb, #087fbd);
        border-color: transparent;
        color: white;
        box-shadow: 0 6px 18px rgba(37, 99, 235, 0.22);
      }
      .btn.ghost {
        background: rgba(255, 255, 255, 0.025);
        border-color: rgba(255, 255, 255, 0.1);
        color: #c6c6d3;
      }
      .pill,
      .search,
      .select {
        background: rgba(255, 255, 255, 0.035);
        border-color: rgba(255, 255, 255, 0.1);
        color: #e7e7f0;
        border-radius: 9px;
      }
      .pagehead h1 {
        letter-spacing: -0.9px;
        font-weight: 760;
      }
      .eyebrow {
        color: #22d3ee;
      }
      .kpi .value {
        background: linear-gradient(100deg, #fff, #b9d8ff 72%, #67e8f9);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }
      .module-icon,
      .listrow .bullet {
        background: linear-gradient(
          145deg,
          rgba(37, 99, 235, 0.22),
          rgba(6, 182, 212, 0.12)
        );
        color: #67e8f9;
        border: 1px solid rgba(6, 182, 212, 0.13);
      }
      .module-card:hover {
        border-color: rgba(6, 182, 212, 0.36);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
      }
      .workflow .wf,
      .pipe,
      .agent,
      .claim,
      .graphbox,
      .entity-map {
        background: linear-gradient(145deg, #171722, #11111a);
        border-color: rgba(255, 255, 255, 0.085);
      }
      .modal {
        background: #171722;
        border-color: rgba(37, 99, 235, 0.28);
      }
      .toast {
        background: #151d2e;
        border-color: rgba(6, 182, 212, 0.32);
      }
      :focus-visible {
        outline: 2px solid #06b6d4;
        outline-offset: 2px;
      }
      @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          scroll-behavior: auto !important;
          transition: none !important;
          animation: none !important;
        }
      }

      /* ARDTUMEN architecture and lifecycle layout repair */
      .arch-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        align-items: stretch;
      }
      .arch-card {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        min-width: 0;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.025);
      }
      .arch-card > span {
        display: grid;
        place-items: center;
        width: 30px;
        height: 30px;
        border: 1px solid rgba(6, 182, 212, 0.25);
        border-radius: 8px;
        background: rgba(6, 182, 212, 0.1);
        color: #67e8f9;
        font-size: 12px;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
      }
      .arch-card > div {
        min-width: 0;
      }
      .arch-card b {
        display: block;
        margin: 0 0 4px;
        color: var(--text);
        font-size: 12px;
        line-height: 1.45;
        overflow-wrap: anywhere;
      }
      .arch-card small {
        display: block;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.55;
        overflow-wrap: anywhere;
      }
      .lifecycle-row {
        display: flex;
        align-items: stretch;
        gap: 8px;
        overflow-x: auto;
        padding: 3px 2px 10px;
        scrollbar-width: thin;
      }
      .lifecycle-row > span {
        position: relative;
        display: flex;
        flex: 0 0 112px;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        min-height: 66px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.025);
        color: var(--text);
        font-size: 11px;
        font-weight: 650;
        line-height: 1.4;
      }
      .lifecycle-row > span i {
        color: var(--cyan);
        font-size: 11px;
        font-style: normal;
        font-weight: 800;
        letter-spacing: 0.08em;
      }
      @media (max-width: 760px) {
        .arch-grid {
          grid-template-columns: minmax(0, 1fr);
        }
        .lifecycle-row > span {
          flex-basis: 104px;
        }
      }

      /* v4: prevent long source/provider labels from colliding with descriptions */
      .grid.two .listrow {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        justify-items: start;
        gap: 6px;
        min-width: 0;
        width: 100%;
      }
      .grid.two .listrow > .bullet {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
        width: fit-content;
        max-width: 100%;
        min-width: 0;
        min-height: 23px;
        height: auto;
        padding: 4px 8px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.35;
        font-size: 11px;
      }
      .grid.two .listrow > div:not(.bullet) {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: normal;
      }
      .grid.two .listrow > div:not(.bullet) b,
      .grid.two .listrow > div:not(.bullet) small {
        display: block;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.5;
      }
      .grid.two .listrow > span:last-child {
        justify-self: start;
        max-width: 100%;
        min-width: 0;
        margin-left: 0 !important;
        white-space: normal;
      }
      .grid.two .listrow > span:last-child .tag {
        display: inline-flex;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.4;
      }
      @media (max-width: 760px) {
        .grid.two .listrow {
          grid-template-columns: minmax(0, 1fr);
        }
      }

      /* Extracted presentational utilities (formerly inline styles). */
      .user-label {
        display: block;
        color: #d9e5f4;
        font-size: 12px;
      }
      .topbar-leading {
        display: flex;
        align-items: center;
        gap: 11px;
      }
      .footer-note {
        padding: 0 28px 18px;
      }

      /* Organization Intelligence module refinement — uses shared Ardtumen DS tokens */
      .oi-module {
        display: grid;
        gap: 13px;
      }
      .oi-notice,
      .oi-principle {
        padding: 10px 13px;
        border: 1px solid rgba(244, 182, 77, 0.24);
        background: rgba(244, 182, 77, 0.06);
        border-radius: 9px;
        color: var(--ad-text-secondary, #b8c5d8);
        font-size: 12px;
        line-height: 1.6;
      }
      .oi-notice b {
        color: #e7bd72;
        letter-spacing: 0.08em;
      }
      .oi-subnav {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        padding: 6px;
        background: var(--ad-surface, #101b2b);
        border: 1px solid var(--ad-border, #26364b);
        border-radius: 10px;
      }
      .oi-subnav button {
        border: 0;
        background: transparent;
        color: var(--ad-text-secondary, #aebbd0);
        padding: 9px 12px;
        border-radius: 7px;
        font-size: 11px;
        font-weight: 650;
      }
      .oi-subnav button:hover {
        background: rgba(87, 152, 255, 0.08);
        color: var(--ad-text, #eaf1fb);
      }
      .oi-subnav button.active {
        background: rgba(87, 152, 255, 0.16);
        color: var(--ad-primary, #75aaff);
        box-shadow: inset 0 0 0 1px rgba(87, 152, 255, 0.22);
      }
      .oi-tab-count {
        display: inline-grid;
        place-items: center;
        margin-left: 4px;
        min-width: 17px;
        height: 17px;
        border-radius: 20px;
        background: rgba(243, 107, 123, 0.16);
        color: #f38b98;
        font-size: 11px;
      }
      .oi-panel[hidden] {
        display: none !important;
      }
      .oi-coverage,
      .oi-steps {
        display: grid;
        gap: 9px;
      }
      .oi-coverage > div,
      .oi-steps > div {
        padding: 10px 12px;
        background: rgba(148, 163, 184, 0.045);
        border: 1px solid var(--ad-border-soft, #223148);
        border-radius: 8px;
      }
      .oi-coverage b,
      .oi-steps b {
        display: block;
        font-size: 11px;
        color: var(--ad-text, #eaf1fb);
        margin-bottom: 4px;
      }
      .oi-coverage small,
      .oi-steps small {
        display: block;
        color: var(--ad-text-secondary, #aebbd0);
        font-size: 12px;
        line-height: 1.5;
      }
      .oi-principle {
        margin-bottom: 12px;
        border-color: rgba(87, 152, 255, 0.24);
        background: rgba(87, 152, 255, 0.06);
      }
      .oi-module .footer-note {
        line-height: 1.55;
      }
      @media (max-width: 700px) {
        .oi-subnav {
          flex-wrap: nowrap;
          overflow-x: auto;
          scrollbar-width: thin;
        }
        .oi-subnav button {
          white-space: nowrap;
        }
        .oi-module .grid.two {
          grid-template-columns: 1fr;
        }
      }

      /* Personal Intelligence module refinement — shared Ardtumen DS */
      .pi-module {
        display: grid;
        gap: 13px;
      }
      .pi-notice,
      .pi-principle {
        padding: 10px 13px;
        border: 1px solid rgba(244, 182, 77, 0.24);
        background: rgba(244, 182, 77, 0.06);
        border-radius: 9px;
        color: var(--ad-text-secondary, #b8c5d8);
        font-size: 12px;
        line-height: 1.6;
      }
      .pi-notice b {
        color: #e7bd72;
        letter-spacing: 0.08em;
      }
      .pi-principle {
        margin-bottom: 12px;
        border-color: rgba(87, 152, 255, 0.24);
        background: rgba(87, 152, 255, 0.06);
      }
      .pi-subnav {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        padding: 6px;
        background: var(--ad-surface, #101b2b);
        border: 1px solid var(--ad-border, #26364b);
        border-radius: 10px;
      }
      .pi-subnav button {
        border: 0;
        background: transparent;
        color: var(--ad-text-secondary, #aebbd0);
        padding: 9px 12px;
        border-radius: 7px;
        font-size: 11px;
        font-weight: 650;
      }
      .pi-subnav button.active {
        background: rgba(87, 152, 255, 0.16);
        color: var(--ad-primary, #75aaff);
        box-shadow: inset 0 0 0 1px rgba(87, 152, 255, 0.22);
      }
      .pi-tab-count {
        display: inline-grid;
        place-items: center;
        margin-left: 4px;
        min-width: 17px;
        height: 17px;
        border-radius: 20px;
        background: rgba(243, 107, 123, 0.16);
        color: #f38b98;
        font-size: 11px;
      }
      .pi-panel[hidden] {
        display: none !important;
      }
      .pi-steps {
        display: grid;
        gap: 9px;
      }
      .pi-steps > div {
        padding: 10px 12px;
        background: rgba(148, 163, 184, 0.045);
        border: 1px solid var(--ad-border-soft, #223148);
        border-radius: 8px;
      }
      .pi-steps b {
        display: block;
        font-size: 11px;
        color: var(--ad-text, #eaf1fb);
        margin-bottom: 4px;
      }
      .pi-steps small {
        display: block;
        color: var(--ad-text-secondary, #aebbd0);
        font-size: 12px;
        line-height: 1.5;
      }
      .pi-score {
        display: flex;
        align-items: baseline;
        gap: 10px;
        margin: 6px 0 14px;
      }
      .pi-score strong {
        font-size: 38px;
        letter-spacing: -0.04em;
        color: var(--ad-text, #eaf1fb);
      }
      .pi-score span {
        font-size: 11px;
        color: var(--ad-text-secondary, #aebbd0);
      }
      .pi-language {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
      }
      .pi-language span {
        padding: 7px 10px;
        border: 1px solid var(--ad-border, #26364b);
        border-radius: 7px;
        font-size: 11px;
      }
      .pi-module .footer-note {
        line-height: 1.55;
      }
      @media (max-width: 700px) {
        .pi-subnav {
          flex-wrap: nowrap;
          overflow-x: auto;
          scrollbar-width: thin;
        }
        .pi-subnav button {
          white-space: nowrap;
        }
        .pi-module .grid.two {
          grid-template-columns: 1fr;
        }
      }

      /* Newsroom compatibility adapter — maps legacy app tokens to Ardtumen Design System v1. */
      :root {
        --bg: var(--ad-color-bg);
        --sidebar: var(--ad-color-sidebar);

        --line: var(--ad-color-border);
        --text: var(--ad-color-text);
        --muted: var(--ad-color-text-secondary);
        --cyan: var(--ad-color-cyan);
        --blue: var(--ad-color-primary);
        --green: var(--ad-color-success);
        --amber: var(--ad-color-warning);
        --red: var(--ad-color-danger);

        --shadow: var(--ad-shadow-lg);
      }
      html,
      body {
        background: var(--ad-color-bg);
        color: var(--ad-color-text);
      }
      :where(
        header,
        nav,
        aside,
        .sidebar,
        .side,
        .topbar,
        .header,
        .toolbar,
        .app-header,
        .nav-panel
      ) {
        background-color: var(--ad-color-sidebar);
      }
      :where(main, .main, .content, .workspace, .page, .app, .shell) {
        color: var(--ad-color-text);
      }
      :where(
        .card,
        .panel,
        .widget,
        .modal,
        .dialog,
        .dropdown,
        .popover,
        .menu,
        .table-wrap,
        .stat-card,
        .kpi,
        .section-card
      ) {
        border-color: var(--ad-color-border);
      }
      :where(input, select, textarea) {
        background-color: var(--ad-color-surface);
        color: var(--ad-color-text);
        border-color: var(--ad-color-border);
      }
      :where(input, select, textarea, button, .btn, .control) {
        border-color: var(--ad-color-border);
      }
      :where(a, .link) {
      }
      :where(button, a, input, select, textarea, [tabindex]):focus-visible {
        outline: 2px solid var(--ad-color-cyan);
        outline-offset: 2px;
      }
      @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          scroll-behavior: auto !important;
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
        }
      }

      /* ═══ ARDTUMEN UI · unified layer (loads after DS v1 + legacy newsroom styles) ═══
   One palette (DS tokens only) · one type scale · one module vocabulary.
   Specificity is raised with .app so earlier legacy overrides cannot win. */
      :root {
        --r-card: 14px;
        --r-ctl: 9px;
        --fs-xs: 11px;
        --fs-sm: 12px;
        --fs-md: 13px;
        --gap: 16px;
      }
      html {
        scroll-padding-top: 80px;
      }
      body {
        font-size: var(--fs-md);
        line-height: 1.55;
        -webkit-font-smoothing: antialiased;
        background: var(--ad-color-bg);
      }
      .skip-link {
        position: absolute;
        left: 12px;
        top: -60px;
        z-index: 2000;
        padding: 9px 14px;
        border-radius: var(--r-ctl);
        background: var(--ad-color-primary);
        color: #fff;
        font-weight: 700;
      }
      .skip-link:focus {
        top: 12px;
      }

      /* Shell */
      .app .sidebar {
        background: var(--ad-color-sidebar);
        border-right: 1px solid var(--ad-color-border-soft);
        width: 264px;
      }
      .app {
        grid-template-columns: 264px minmax(0, 1fr);
      }
      .app .topbar {
        background: rgba(8, 13, 24, 0.86);
        border-bottom: 1px solid var(--ad-color-border-soft);
        backdrop-filter: blur(14px);
      }
      .app .content {
        max-width: 1520px;
        padding: 28px 32px 56px;
      }
      .app .nav {
        flex: 1;
        overflow-y: auto;
        padding: 6px 12px 14px;
        scrollbar-width: thin;
      }
      .app .nav-label {
        margin: 18px 10px 6px;
        font-size: 12px;
        letter-spacing: 0.14em;
        color: var(--ad-color-text-muted);
      }
      .app .nav button {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 40px;
        padding: 8px 11px;
        border: 0;
        border-radius: var(--r-ctl);
        background: transparent;
        color: var(--ad-color-text-secondary);
        font-size: var(--fs-md);
        text-align: left;
      }
      .app .nav button:hover {
        background: var(--ad-color-hover);
        color: var(--ad-color-text);
      }
      .app .nav button.active {
        background: rgba(87, 152, 255, 0.13);
        color: var(--ad-color-text);
        box-shadow: inset 2px 0 var(--ad-color-primary);
      }
      .app .nav .count {
        margin-left: auto;
        min-width: 22px;
        padding: 1px 7px;
        border-radius: 999px;
        background: rgba(148, 163, 184, 0.12);
        font-size: var(--fs-xs);
        text-align: center;
      }
      .app .side-bottom {
        border-top: 1px solid var(--ad-color-border-soft);
        padding: 12px;
      }
      .switcher {
        display: grid;
        gap: 4px;
        padding: 10px 12px 4px;
      }
      .switcher a {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 8px 10px;
        border: 1px solid transparent;
        border-radius: var(--r-ctl);
        color: var(--ad-color-text-secondary);
        font-size: var(--fs-sm);
        font-weight: 650;
      }
      .switcher a:hover {
        background: var(--ad-color-hover);
        color: var(--ad-color-text);
      }
      .switcher a[aria-current="page"] {
        border-color: rgba(87, 152, 255, 0.3);
        background: rgba(87, 152, 255, 0.1);
        color: var(--ad-color-text);
      }
      .switcher i {
        font-style: normal;
        width: 18px;
        text-align: center;
        color: var(--ad-color-cyan);
      }
      .scrim {
        position: fixed;
        inset: 0;
        z-index: 4;
        background: rgba(3, 7, 14, 0.6);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
      }
      .scrim.show {
        opacity: 1;
        pointer-events: auto;
      }

      /* Page head */
      .app .pagehead {
        align-items: flex-end;
        gap: 20px;
        margin-bottom: 18px;
        padding-bottom: 18px;
        border-bottom: 1px solid var(--ad-color-border-soft);
      }
      .app .pagehead h1 {
        font-size: clamp(1.5rem, 2.4vw, 1.95rem);
        margin: 6px 0 6px;
      }
      .app .pagehead p {
        font-size: var(--fs-md);
        line-height: 1.6;
        max-width: 760px;
      }
      .app .eyebrow {
        font-size: var(--fs-xs);
        letter-spacing: 0.14em;
      }
      .app .head-buttons {
        flex-shrink: 0;
        align-items: center;
      }

      /* One notice component (replaces demo-banner / oi-notice / pi-notice duplicates) */
      .app .demo-banner {
        display: flex;
        gap: 10px;
        align-items: flex-start;
      }
      .app .demo-banner,
      .app .oi-notice,
      .app .pi-notice {
        display: block;
        gap: 10px;
        align-items: flex-start;
        padding: 10px 14px;
        margin: 0 0 var(--gap);
        border: 1px solid rgba(244, 182, 77, 0.26);
        border-radius: var(--r-ctl);
        background: rgba(244, 182, 77, 0.06);
        color: var(--ad-color-text-secondary);
        font-size: var(--fs-sm);
        line-height: 1.6;
      }
      .app .demo-banner b,
      .app .oi-notice b,
      .app .pi-notice b {
        color: var(--ad-color-warning);
        letter-spacing: 0.06em;
      }
      .app .oi-principle,
      .app .pi-principle {
        padding: 10px 14px;
        border: 1px solid var(--ad-color-border-soft);
        border-radius: var(--r-ctl);
        background: rgba(148, 163, 184, 0.05);
        color: var(--ad-color-text-secondary);
        font-size: var(--fs-sm);
      }

      /* Cards & KPI */
      .app .card {
        background: linear-gradient(
          150deg,
          var(--ad-color-raised),
          var(--ad-color-surface)
        );
        border: 1px solid var(--ad-color-border-soft);
        border-radius: var(--r-card);
        box-shadow: var(--ad-shadow-sm);
        transform: none;
      }
      .app .card:hover {
        border-color: rgba(87, 152, 255, 0.28);
      }
      .app .card-head {
        padding: 14px 18px;
        border-bottom: 1px solid var(--ad-color-border-soft);
        min-height: 52px;
      }
      .app .card-head h3 {
        font-size: var(--fs-md);
        font-weight: 700;
        letter-spacing: -0.01em;
      }
      .app .card-body {
        padding: 16px 18px;
      }
      .app .kpi {
        padding: 16px 18px;
      }
      .app .kpi .label {
        font-size: var(--fs-sm);
        color: var(--ad-color-text-secondary);
      }
      .app .kpi .value {
        font-size: clamp(1.6rem, 2.4vw, 2rem);
        margin: 8px 0 4px;
        font-variant-numeric: tabular-nums;
      }
      .app .kpi .foot {
        font-size: var(--fs-xs);
        color: var(--ad-color-text-muted);
      }
      .app .kpi .delta {
        font-size: var(--fs-xs);
        font-weight: 700;
      }

      /* Grids: top-aligned (no stretched empty cards), consistent gap */
      .app .grid {
        gap: var(--gap);
        align-items: start;
      }
      .app .kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: var(--gap);
        align-items: stretch;
      }
      .app .two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .app .three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .app .content > * + * {
        margin-top: var(--gap);
      }
      .app .content > .pagehead + * {
        margin-top: 0;
      }

      /* Lists — icon beside text, action right (undoes legacy stacked hack) */
      .app .listrow,
      .app .grid.two .listrow {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 11px 0;
        border-bottom: 1px solid var(--ad-color-border-soft);
      }
      .app .listrow:last-child {
        border-bottom: 0;
      }
      .app .listrow .bullet,
      .app .grid.two .listrow > .bullet {
        display: grid;
        place-items: center;
        width: 30px;
        height: 30px;
        min-height: 0;
        padding: 0;
        border-radius: 8px;
        font-size: var(--fs-sm);
        font-weight: 800;
        background: rgba(87, 152, 255, 0.12);
        border: 1px solid rgba(87, 152, 255, 0.2);
        color: var(--ad-color-primary);
      }
      .app .listrow .bullet.red {
        background: rgba(243, 107, 123, 0.12);
        border-color: rgba(243, 107, 123, 0.3);
        color: var(--ad-color-danger);
      }
      .app .listrow .bullet.amber {
        background: rgba(244, 182, 77, 0.12);
        border-color: rgba(244, 182, 77, 0.3);
        color: var(--ad-color-warning);
      }
      .app .listrow .bullet.green {
        background: rgba(36, 197, 139, 0.12);
        border-color: rgba(36, 197, 139, 0.3);
        color: var(--ad-color-success);
      }
      .app .listrow b,
      .app .grid.two .listrow > div:not(.bullet) b {
        font-size: var(--fs-md);
        line-height: 1.4;
      }
      .app .listrow small,
      .app .grid.two .listrow > div:not(.bullet) small {
        font-size: var(--fs-sm);
        line-height: 1.5;
        color: var(--ad-color-text-secondary);
        margin-top: 2px;
      }
      .app .grid.two .listrow > span:last-child {
        justify-self: end;
        margin: 0 !important;
      }

      /* Buttons, tags, controls */
      .app .btn {
        min-height: 38px;
        padding: 8px 14px;
        border-radius: var(--r-ctl);
        border: 1px solid var(--ad-color-border);
        background: var(--ad-color-raised);
        color: var(--ad-color-text);
        font-size: var(--fs-sm);
        font-weight: 650;
        transition:
          background 0.18s,
          border-color 0.18s;
      }
      .app .btn:hover {
        background: var(--ad-color-hover);
        border-color: rgba(87, 152, 255, 0.5);
      }
      .app .btn.primary {
        border-color: transparent;
        background: linear-gradient(110deg, #2563eb, #347fe8);
        color: #fff;
      }
      .app .btn.ghost {
        background: transparent;
        border-color: var(--ad-color-border-soft);
        color: var(--ad-color-text-secondary);
      }
      .app .btn.ghost:hover {
        color: var(--ad-color-text);
      }
      .app .tag {
        padding: 3px 9px;
        border-radius: 999px;
        font-size: var(--fs-xs);
        font-weight: 700;
      }
      .app .tag.green {
        border-color: rgba(36, 197, 139, 0.3);
        background: rgba(36, 197, 139, 0.1);
        color: var(--ad-color-success);
      }
      .app .tag.amber {
        border-color: rgba(244, 182, 77, 0.3);
        background: rgba(244, 182, 77, 0.1);
        color: var(--ad-color-warning);
      }
      .app .tag.red {
        border-color: rgba(243, 107, 123, 0.3);
        background: rgba(243, 107, 123, 0.1);
        color: var(--ad-color-danger);
      }
      .app .tag.blue {
        border-color: rgba(87, 152, 255, 0.3);
        background: rgba(87, 152, 255, 0.1);
        color: var(--ad-color-primary);
      }
      .app .tag.purple {
        border-color: rgba(167, 139, 250, 0.3);
        background: rgba(167, 139, 250, 0.1);
        color: var(--ad-color-violet);
      }
      .app .pill,
      .app .search,
      .app .select {
        min-height: 36px;
        border-radius: var(--r-ctl);
        border: 1px solid var(--ad-color-border);
        background: var(--ad-color-surface);
        color: var(--ad-color-text);
        font-size: var(--fs-sm);
      }
      .app .toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 12px;
      }
      .app .toolbar .search {
        flex: 1 1 220px;
      }

      /* Tables: readable, scroll with edge shadows, never clip silently */
      .app .table-wrap {
        max-width: 100%;
        overflow-x: auto;
        border: 1px solid var(--ad-color-border-soft);
        border-radius: var(--ad-radius-md);
        background:
          linear-gradient(90deg, var(--ad-color-surface) 30%, transparent)
            left/28px 100% no-repeat local,
          linear-gradient(270deg, var(--ad-color-surface) 30%, transparent)
            right/28px 100% no-repeat local,
          linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent) left/10px
            100% no-repeat scroll,
          linear-gradient(270deg, rgba(0, 0, 0, 0.35), transparent) right/10px
            100% no-repeat scroll;
      }
      .app table {
        width: 100%;
        min-width: 620px;
        border-collapse: collapse;
      }
      .app th {
        padding: 11px 14px;
        background: rgba(148, 163, 184, 0.06);
        color: var(--ad-color-text-muted);
        font-size: var(--fs-xs);
        font-weight: 700;
        letter-spacing: 0.06em;
        text-align: left;
        white-space: nowrap;
      }
      .app td {
        padding: 12px 14px;
        border-top: 1px solid var(--ad-color-border-soft);
        font-size: var(--fs-sm);
        line-height: 1.5;
        vertical-align: middle;
      }
      .app tbody tr:hover td {
        background: rgba(87, 152, 255, 0.04);
      }

      /* Pipeline / lifecycle / workflow: responsive grid, no hidden overflow */
      .app .pipeline {
        grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
        overflow: visible;
      }
      .app .workflow {
        flex-wrap: wrap;
        overflow: visible;
      }
      .app .lifecycle-row {
        flex-wrap: wrap;
        overflow: visible;
      }
      .app .lifecycle-row > span {
        flex: 1 1 118px;
      }
      .app .arch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }
      .app .arch-card b {
        font-size: var(--fs-md);
      }
      .app .arch-card small {
        font-size: var(--fs-sm);
      }
      .app .pipe,
      .app .agent,
      .app .claim,
      .app .graphbox,
      .app .entity-map,
      .app .workflow .wf {
        background: var(--ad-color-surface);
        border: 1px solid var(--ad-color-border-soft);
        border-radius: var(--ad-radius-md);
      }

      /* Bars / metrics */
      .app .metric-stack {
        display: grid;
        gap: 14px;
      }
      .app .metric-stack div {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 12px;
        align-items: center;
      }
      .app .metric-stack b {
        grid-row: 1/3;
        font-size: 1.35rem;
        font-variant-numeric: tabular-nums;
      }
      .app .metric-stack span {
        font-size: var(--fs-sm);
        color: var(--ad-color-text-secondary);
      }
      .app .metric-stack i {
        display: block;
        height: 6px;
        border-radius: 99px;
        background: linear-gradient(
          90deg,
          var(--ad-color-primary),
          var(--ad-color-cyan)
        );
      }
      .app .chart-bars {
        min-height: 190px;
      }
      .app .legend {
        font-size: var(--fs-xs);
        color: var(--ad-color-text-secondary);
      }
      .app .footer-note {
        margin: 12px 0 0;
        padding: 0;
        font-size: var(--fs-xs);
        line-height: 1.6;
        color: var(--ad-color-text-muted);
      }

      /* Module vocabulary: ONE tab bar, ONE coverage/steps grid for org + personal */
      .oi-module,
      .pi-module {
        display: flex;
        flex-direction: column;
        gap: var(--gap);
      }
      .app .oi-subnav,
      .app .pi-subnav {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
        padding: 5px;
        border: 1px solid var(--ad-color-border-soft);
        border-radius: var(--ad-radius-lg);
        background: var(--ad-color-surface);
      }
      .app .oi-subnav button,
      .app .pi-subnav button {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 38px;
        padding: 8px 14px;
        border: 0;
        border-radius: var(--r-ctl);
        background: transparent;
        color: var(--ad-color-text-secondary);
        font-size: var(--fs-sm);
        font-weight: 650;
        white-space: nowrap;
      }
      .app .oi-subnav button:hover,
      .app .pi-subnav button:hover {
        background: var(--ad-color-hover);
        color: var(--ad-color-text);
      }
      .app .oi-subnav button.active,
      .app .pi-subnav button.active {
        background: rgba(87, 152, 255, 0.16);
        color: var(--ad-color-text);
        box-shadow: inset 0 0 0 1px rgba(87, 152, 255, 0.3);
      }
      .oi-tab-count,
      .pi-tab-count {
        min-width: 20px;
        padding: 0 6px;
        border-radius: 99px;
        background: rgba(243, 107, 123, 0.18);
        color: var(--ad-color-danger);
        font-size: var(--fs-xs);
        font-weight: 800;
        text-align: center;
      }
      .app .oi-coverage,
      .app .oi-steps,
      .app .pi-steps {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: 10px;
      }
      .app .oi-coverage > div,
      .app .oi-steps > div,
      .app .pi-steps > div {
        padding: 12px 14px;
        border: 1px solid var(--ad-color-border-soft);
        border-radius: var(--ad-radius-md);
        background: rgba(148, 163, 184, 0.05);
      }
      .app .oi-coverage b,
      .app .oi-steps b,
      .app .pi-steps b {
        display: block;
        margin-bottom: 4px;
        font-size: var(--fs-md);
        color: var(--ad-color-text);
      }
      .app .oi-coverage small,
      .app .oi-steps small,
      .app .pi-steps small {
        display: block;
        font-size: var(--fs-sm);
        line-height: 1.55;
        color: var(--ad-color-text-secondary);
      }
      .app .oi-module .footer-note,
      .app .pi-module .footer-note {
        margin-top: 12px;
      }
      .app .pi-score strong {
        font-size: 2.6rem;
      }
      .app .pi-score span {
        font-size: var(--fs-sm);
      }
      .oi-module .grid,
      .pi-module .grid {
        margin-top: 0 !important;
      }
      .oi-panel,
      .pi-panel {
        display: flex;
        flex-direction: column;
        gap: var(--gap);
      }
      .oi-panel[hidden],
      .pi-panel[hidden] {
        display: none;
      }
      .oi-panel > .grid.kpis,
      .pi-panel > .grid.kpis {
        margin-bottom: 0;
      }

      /* Modal & toast */
      .modal-bg {
        background: rgba(3, 7, 14, 0.72);
        backdrop-filter: blur(4px);
      }
      .modal {
        background: var(--ad-color-raised);
        border: 1px solid var(--ad-color-border);
        border-radius: var(--ad-radius-xl);
        box-shadow: var(--ad-shadow-lg);
        max-width: 560px;
        width: calc(100% - 32px);
      }
      .modal h3 {
        font-size: var(--ad-text-lg);
      }
      .modal p {
        font-size: var(--fs-md);
        line-height: 1.65;
        color: var(--ad-color-text-secondary);
        white-space: pre-line;
      }

      /* Standalone products: sidebar lists the module views; tab bar only when sidebar is hidden */
      body[data-app="organization"] .oi-subnav,
      body[data-app="personal"] .pi-subnav {
        display: none;
      }

      /* Responsive */
      @media (max-width: 1180px) {
        .app {
          grid-template-columns: 232px minmax(0, 1fr);
        }
        .app .sidebar {
          width: 232px;
        }
        .app .content {
          padding: 24px 22px 48px;
        }
        .app .kpis {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .app .three {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }
      @media (max-width: 960px) {
        .app .two,
        .app .grid.two {
          grid-template-columns: minmax(0, 1fr);
        }
        .app .arch-grid {
          grid-template-columns: minmax(0, 1fr);
        }
      }
      @media (max-width: 820px) {
        .app {
          display: block;
        }
        .app .sidebar {
          position: fixed;
          inset: 0 auto 0 0;
          left: -290px;
          width: 280px;
          transition: left 0.22s var(--ad-motion-ease);
          z-index: 6;
        }
        .app .sidebar.open {
          left: 0;
          box-shadow: var(--ad-shadow-lg);
        }
        .app .topbar {
          padding: 0 14px;
        }
        .mobile-menu {
          display: inline-flex !important;
        }
        body[data-app="organization"] .oi-subnav,
        body[data-app="personal"] .pi-subnav {
          display: flex;
        }
        .app .oi-subnav,
        .app .pi-subnav {
          flex-wrap: nowrap;
          overflow-x: auto;
          scrollbar-width: thin;
        }
        .app .pagehead {
          display: block;
        }
        .app .head-buttons {
          margin-top: 14px;
        }
        .app .content {
          padding: 20px 14px 44px;
        }
        .app .three {
          grid-template-columns: minmax(0, 1fr);
        }
        .top-actions .pill {
          display: none;
        }
      }
      @media (max-width: 520px) {
        .app .kpis {
          grid-template-columns: minmax(0, 1fr);
        }
        .app .listrow {
          grid-template-columns: auto minmax(0, 1fr);
        }
        .app .listrow > :last-child:not(div) {
          grid-column: 2;
        }
        .app .pipeline {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }

      /* Final touches */
      .app a {
        text-decoration: none;
      }
      .app .nav .ico {
        flex: none;
        width: 20px;
        text-align: center;
        font-size: var(--fs-sm);
        color: var(--ad-color-text-muted);
      }
      .app .nav button.active .ico {
        color: var(--ad-color-cyan);
      }
      .app .kpi .foot {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 8px;
      }
      .app .listrow > :last-child {
        min-width: 0;
        max-width: 100%;
      }
      .main > .footer-note {
        max-width: 1520px;
        margin: 0 auto;
        padding: 0 32px 36px;
        font-size: var(--fs-xs);
        color: var(--ad-color-text-muted);
      }
      @media (max-width: 820px) {
        .main > .footer-note {
          padding: 0 14px 28px;
        }
      }
      @media (max-width: 520px) {
        .app .tag {
          white-space: normal;
        }
      }
      .app .demo-banner {
        display: flex;
        gap: 10px;
        align-items: flex-start;
      }
      .app table {
        min-width: 0;
      }
      .app th {
        white-space: normal;
      }
      .app .table-wrap table {
        min-width: min(100%, 520px);
      }
      .oi-module > .oi-notice,
      .pi-module > .pi-notice,
      .oi-module > .oi-principle,
      .pi-module > .pi-principle {
        margin: 0;
      }
      .app .oi-notice b,
      .app .pi-notice b {
        font-size: inherit;
      }

      /* ═══ Audit fixes: motion, readable text ═══ */
      @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
          scroll-behavior: auto !important;
        }
      }
      #news-assist-output {
        white-space: pre-line;
      }
      small {
        font-size: 11px;
      }
      .x-root {
        grid-template-columns: minmax(0, 1fr);
      }
      .rw {
        display: grid;
        gap: 13px;
      }
      .rw-flow {
        display: grid;
        grid-template-columns: 1fr auto 1fr auto 1fr;
        gap: 10px;
      }
      .rw-flow > div {
        padding: 11px 13px;
        border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
        border-radius: var(--r-ctl);
        background: color-mix(in srgb, currentColor 4%, transparent);
      }
      .rw-flow b {
        display: block;
        font-size: var(--fs-md);
      }
      .rw-flow small {
        display: block;
        margin-top: 4px;
        opacity: 0.75;
        font-size: var(--fs-sm);
        line-height: 1.5;
      }
      .rw-flow > i {
        align-self: center;
        opacity: 0.5;
        font-style: normal;
      }
      .rw-field {
        display: grid;
        gap: 6px;
        margin-bottom: 11px;
        font-size: var(--fs-sm);
      }
      .rw-checks {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
      }
      .rw-checks label,
      label.rw-checks {
        align-items: center;
        font-size: var(--fs-md);
      }
      .rw-checks label {
        display: flex;
        gap: 7px;
      }
      .rw-langs {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        margin-bottom: 12px;
      }
      .rw-log {
        margin: 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 5px;
        font-size: var(--fs-sm);
      }
      .rw-pv {
        white-space: pre-wrap;
        padding: 11px;
        border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
        border-radius: var(--r-ctl);
        min-height: 120px;
        font-size: var(--fs-md);
        line-height: 1.6;
      }
      @media (max-width: 820px) {
        .rw-flow {
          grid-template-columns: 1fr;
        }
        .rw-flow > i {
          display: none;
        }
      }
    