
    :root {
      --color-primary: #1D351C;
      --color-primary-hover: #142614;
      --color-secondary: #6C7C37;
      --color-accent: #DAE066;
      --color-accent-hover: #CBD250;
      --color-accent-text: #142413;
      --color-tertiary: #2E4A3E;

      --bg-canvas: #F9FAF5;
      --bg-surface: #FFFFFF;
      --bg-surface-elevated: #F3F5EC;
      --bg-surface-accent: #EBF0DE;
      --bg-dark-banner: #142213;

      --text-main: #142213;
      --text-muted: #4A5646;
      --text-light: #71806D;

      --border-subtle: #E2E8D8;
      --border-prominent: #CAD4BE;

      --badge-claimed-bg: #EAF7EC;
      --badge-claimed-text: #1B5E20;
      --badge-claimed-border: #A3D9A5;

      --badge-queued-bg: #FDF6E7;
      --badge-queued-text: #8A5311;
      --badge-queued-border: #F3D9A2;

      --badge-requested-bg: #EBF5FF;
      --badge-requested-text: #1E40AF;
      --badge-requested-border: #93C5FD;

      --font-headline: 'Playfair Display', Georgia, serif;
      --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;

      --radius-sm: 6px;
      --radius-md: 12px;
      --radius-lg: 20px;
      --radius-full: 9999px;

      --shadow-sm: 0 2px 6px rgba(29, 53, 28, 0.04);
      --shadow-md: 0 8px 24px rgba(29, 53, 28, 0.08);
      --shadow-lg: 0 16px 42px rgba(29, 53, 28, 0.12);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      background-color: var(--bg-canvas);
      color: var(--text-main);
      font-family: var(--font-body);
      -webkit-font-smoothing: antialiased;
      line-height: 1.5;
    }

    /* Top 5-Portal Ecosystem Bar */
    .ecosystem-nav {
      background-color: #0E190D;
      color: #FFFFFF;
      padding: 10px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12.5px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      flex-wrap: wrap;
      gap: 12px;
    }
    .ecosystem-brand {
      font-weight: 700;
      letter-spacing: 0.06em;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11.5px;
      text-transform: uppercase;
      color: #CAD4BE;
    }
    .ecosystem-pills {
      display: flex;
      gap: 6px;
      align-items: center;
      flex-wrap: wrap;
    }
    .ecosystem-pill {
      color: rgba(255,255,255,0.75);
      text-decoration: none;
      padding: 5px 13px;
      border-radius: var(--radius-full);
      font-weight: 600;
      transition: all 0.2s;
    }
    .ecosystem-pill:hover {
      color: #FFFFFF;
      background: rgba(255,255,255,0.1);
    }
    .ecosystem-pill.active {
      color: var(--bg-dark-banner);
      background-color: var(--color-accent);
      font-weight: 700;
    }

    /* Sticky Navbar */
    .portal-nav {
      background: var(--bg-surface);
      border-bottom: 1px solid var(--border-subtle);
      padding: 16px 32px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: sticky;
      top: 0;
      z-index: 100;
      flex-wrap: wrap;
      gap: 14px;
    }
    .brand-wrap {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .brand-wrap img {
      height: 40px;
      width: auto;
    }
    .brand-title {
      font-family: var(--font-headline);
      font-size: 20px;
      font-weight: 700;
      color: var(--color-primary);
    }
    .client-badge-bar {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .user-pill {
      background: var(--bg-surface-elevated);
      border: 1px solid var(--border-prominent);
      padding: 6px 14px;
      border-radius: var(--radius-full);
      font-size: 13px;
      font-weight: 700;
      color: var(--color-primary);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .container {
      max-width: 1440px;
      margin: 0 auto;
      padding: 28px 32px;
    }

    /* Hero Banner */
    .hero-banner {
      background: linear-gradient(135deg, #1D351C 0%, #142213 100%);
      color: #FFFFFF;
      border-radius: var(--radius-lg);
      padding: 36px 40px;
      margin-bottom: 28px;
      box-shadow: var(--shadow-md);
    }
    .hero-banner h1 {
      font-family: var(--font-headline);
      font-size: 32px;
      font-weight: 700;
      line-height: 1.25;
      margin-bottom: 10px;
      max-width: 840px;
      color: #FFFFFF;
    }
    .hero-banner h1 span.accent {
      color: var(--color-accent);
    }
    .hero-banner p {
      font-size: 15.5px;
      color: rgba(255,255,255,0.82);
      max-width: 760px;
      margin-bottom: 22px;
    }
    .hero-metrics-strip {
      display: flex;
      gap: 32px;
      border-top: 1px solid rgba(255,255,255,0.15);
      padding-top: 18px;
      flex-wrap: wrap;
    }
    .hero-metric-item strong {
      font-family: var(--font-headline);
      font-size: 24px;
      color: var(--color-accent);
      display: block;
    }
    .hero-metric-item span {
      font-size: 11.5px;
      color: rgba(255,255,255,0.75);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    /* =========================================================================
       INTEREST-TRIGGERED STATUS TOOLTIPS (WCAG 1.4.13 & MODERN WEB GUIDANCE)
       ========================================================================= */
    [interestfor] {
      --interest-delay-start: 0.15s;
      interest-delay-start: var(--interest-delay-start);
      --interest-delay-end: 0.15s;
      interest-delay-end: var(--interest-delay-end);
      cursor: help;
    }

    button[interestfor="tip-locked"] { anchor-name: --tip-locked; }
    #tip-locked { position-anchor: --tip-locked; }

    button[interestfor="tip-queued"] { anchor-name: --tip-queued; }
    #tip-queued { position-anchor: --tip-queued; }

    button[interestfor="tip-followup"] { anchor-name: --tip-followup; }
    #tip-followup { position-anchor: --tip-followup; }

    button[interestfor="tip-panel-state"] { anchor-name: --tip-panel-state; }
    #tip-panel-state { position-anchor: --tip-panel-state; }

    [popover] {
      top: anchor(bottom);
      left: anchor(center);
      position-try: flip-block;
      margin: unset;
      background: #142213;
      color: #FFFFFF;
      border: 1px solid var(--color-accent);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      max-width: 310px;
      font-size: 12px;
      line-height: 1.5;
      box-shadow: var(--shadow-lg);
      z-index: 1200;
    }

    [popover]:is(:popover-open, .\:popover-open) {
      display: block;
    }

    :is(:interest-source, .interest-source) {
      box-shadow: 0 0 0 2px var(--color-accent);
    }

    :is(:interest-target, .interest-target) {
      display: block;
    }

    /* Hover Tooltip Wrapper for Instant Universal Visual Feedback */
    .status-hover-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
    }
    .status-hover-card {
      visibility: hidden;
      opacity: 0;
      position: absolute;
      bottom: calc(100% + 8px);
      left: 0;
      width: 295px;
      background: #142213;
      color: #FFFFFF;
      border: 1px solid var(--color-accent);
      border-radius: 10px;
      padding: 12px 14px;
      font-size: 11.5px;
      font-family: var(--font-body);
      font-weight: 500;
      line-height: 1.5;
      box-shadow: 0 12px 28px rgba(0,0,0,0.25);
      z-index: 500;
      transition: opacity 0.18s ease, visibility 0.18s ease;
      pointer-events: auto;
    }
    .status-hover-wrap:hover .status-hover-card,
    .status-hover-wrap:focus-within .status-hover-card {
      visibility: visible;
      opacity: 1;
    }

    /* Status Badges */
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      border-radius: var(--radius-full);
      font-size: 11px;
      font-weight: 700;
      font-family: var(--font-mono);
      border: 1px solid transparent;
      background: none;
    }
    .status-badge.locked {
      background: var(--badge-claimed-bg);
      color: var(--badge-claimed-text);
      border-color: var(--badge-claimed-border);
    }
    .status-badge.queued {
      background: var(--badge-queued-bg);
      color: var(--badge-queued-text);
      border-color: var(--badge-queued-border);
    }
    .status-badge.requested {
      background: var(--badge-requested-bg);
      color: var(--badge-requested-text);
      border-color: var(--badge-requested-border);
    }

    .info-dot {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background: rgba(29, 53, 28, 0.14);
      font-size: 10px;
      font-weight: 800;
    }

    /* Split Layout: 52% Left, 48% Right */
    .portfolio-grid {
      display: grid;
      grid-template-columns: 52fr 48fr;
      gap: 28px;
      align-items: start;
    }

    .column-title {
      font-family: var(--font-headline);
      font-size: 22px;
      color: var(--color-primary);
      margin-bottom: 4px;
    }
    .column-desc {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 18px;
    }

    .order-card {
      background: var(--bg-surface);
      border: 1.5px solid var(--border-subtle);
      border-radius: var(--radius-md);
      margin-bottom: 16px;
      box-shadow: var(--shadow-sm);
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .order-card:hover {
      border-color: var(--border-prominent);
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }
    .order-card.selected {
      border-color: var(--color-primary);
      box-shadow: 0 0 0 2px var(--color-accent), var(--shadow-md);
    }

    .order-card-header {
      background: var(--bg-surface-elevated);
      padding: 12px 18px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid var(--border-subtle);
      border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
    .partner-brand-tag {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .partner-brand-tag img {
      height: 24px;
      width: auto;
      object-fit: contain;
    }
    .partner-brand-tag span {
      font-weight: 700;
      font-size: 13px;
      color: var(--color-primary);
    }
    .order-mono-id {
      font-family: var(--font-mono);
      font-size: 13px;
      font-weight: 700;
      color: var(--color-primary);
    }

    .order-card-body {
      padding: 18px;
    }
    .order-item-title {
      font-size: 15.5px;
      font-weight: 700;
      color: var(--color-primary);
      margin-bottom: 4px;
    }
    .order-item-meta {
      font-size: 12.5px;
      color: var(--text-muted);
      margin-bottom: 14px;
    }

    /* Right Column: Deep-Dive Inspection Panel */
    .deep-dive-panel {
      background: var(--bg-surface);
      border: 1px solid var(--border-prominent);
      border-radius: var(--radius-md);
      padding: 24px;
      box-shadow: var(--shadow-md);
      position: sticky;
      top: 90px;
    }
    .panel-header {
      border-bottom: 1px solid var(--border-subtle);
      padding-bottom: 14px;
      margin-bottom: 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
    }
    .panel-header h3 {
      font-family: var(--font-headline);
      font-size: 20px;
      color: var(--color-primary);
    }

    /* Multi-Point Switcher inside Client Panel */
    .client-point-tabs {
      display: flex;
      gap: 8px;
      background: var(--bg-surface-elevated);
      padding: 8px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border-subtle);
      margin-bottom: 16px;
    }
    .client-pt-btn {
      flex: 1;
      padding: 8px 10px;
      border-radius: 6px;
      border: 1px solid transparent;
      background: none;
      font-size: 12px;
      font-weight: 700;
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.2s;
    }
    .client-pt-btn.active {
      background: var(--color-primary);
      color: #FFFFFF;
    }

    .photo-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 14px;
    }
    .photo-frame {
      position: relative;
      border-radius: var(--radius-sm);
      overflow: hidden;
      border: 1px solid var(--border-prominent);
      height: 155px;
    }
    .photo-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .watermark-overlay {
      position: absolute;
      bottom: 8px;
      right: 8px;
      background: rgba(20, 34, 19, 0.88);
      padding: 3px 8px;
      border-radius: 4px;
      font-size: 10px;
      color: #FFFFFF;
      font-weight: 600;
    }
    .photo-tag-label {
      position: absolute;
      top: 8px;
      left: 8px;
      background: rgba(255, 255, 255, 0.94);
      padding: 3px 8px;
      border-radius: 4px;
      font-size: 10px;
      font-weight: 700;
      color: var(--color-primary);
    }

    .meta-box {
      background: var(--bg-surface-elevated);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      padding: 14px;
      margin-bottom: 18px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      font-size: 12px;
    }
    .meta-item strong {
      display: block;
      color: var(--color-primary);
      font-size: 13px;
    }
    .meta-item span {
      color: var(--text-muted);
    }

    /* Recorded vs Due to Be Recorded Progress Checklist */
    .milestone-status-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-bottom: 18px;
    }
    .milestone-pill-card {
      padding: 10px 12px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border-subtle);
      font-size: 11.5px;
    }
    .milestone-pill-card.recorded {
      background: var(--badge-claimed-bg);
      border-color: var(--badge-claimed-border);
      color: var(--badge-claimed-text);
    }
    .milestone-pill-card.due {
      background: var(--badge-queued-bg);
      border-color: var(--badge-queued-border);
      color: var(--badge-queued-text);
    }

    .timeline-wrap {
      border-left: 2px solid var(--border-prominent);
      margin-left: 12px;
      padding-left: 20px;
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin-top: 14px;
    }
    .timeline-node { position: relative; }
    .timeline-dot {
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: var(--color-primary);
      border: 2px solid #FFFFFF;
      position: absolute;
      left: -27.5px;
      top: 4px;
      box-shadow: 0 0 0 3px rgba(29, 53, 28, 0.18);
    }
    .timeline-dot.accent {
      background: var(--color-accent);
      box-shadow: 0 0 0 4px rgba(218, 224, 102, 0.4);
    }
    .timeline-date {
      font-size: 11px;
      font-family: var(--font-mono);
      font-weight: 600;
      color: var(--color-secondary);
    }
    .timeline-title {
      font-size: 13.5px;
      font-weight: 700;
      color: var(--color-primary);
      margin-bottom: 3px;
    }
    .timeline-body {
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.45;
    }

    #client-map {
      height: 170px;
      border-radius: var(--radius-sm);
      overflow: hidden;
      border: 1px solid var(--border-prominent);
    }

    .btn-video {
      background: var(--bg-surface-elevated);
      border: 1px solid var(--border-prominent);
      padding: 8px 14px;
      border-radius: var(--radius-sm);
      font-size: 12px;
      font-weight: 700;
      color: var(--color-primary);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 14px;
    }
    .btn-video:hover {
      background: var(--color-primary);
      color: #FFFFFF;
    }

    .modal-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(20, 34, 19, 0.75);
      backdrop-filter: blur(4px);
      z-index: 1000;
      align-items: center;
      justify-content: center;
    }
    .modal-box {
      background: #FFFFFF;
      width: 90%;
      max-width: 600px;
      border-radius: var(--radius-md);
      padding: 24px;
      box-shadow: var(--shadow-lg);
    }

    @media (max-width: 1024px) {
      .portfolio-grid { grid-template-columns: 1fr; }
    }
  