  /* ============================================================
     DESIGN TOKENS & RESET
  ============================================================ */
  :root {
    --red:          #c0392b;
    --red-dark:     #96281b;
    --red-light:    #e74c3c;
    --red-bg:       #fdf2f1;
    --sidebar-bg:   #1a1e2e;
    --sidebar-hover:#22283d;
    --sidebar-active:#c0392b;
    --sidebar-text: #a8b2c8;
    --sidebar-head: #6b7a99;
    --sidebar-w:    260px;
    --topbar-h:     56px;
    --body-bg:      #f0f2f5;
    --card-bg:      #ffffff;
    --border:       #dee2e6;
    --text:         #2d3748;
    --text-muted:   #718096;
    --badge-green:  #27ae60;
    --badge-blue:   #2980b9;
    --badge-orange: #e67e22;
    --badge-red:    #c0392b;
    --badge-gray:   #7f8c8d;
    --badge-purple: #8e44ad;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --radius: 4px;
    --shadow: 0 1px 4px rgba(0,0,0,.10);
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: var(--font); background: var(--body-bg); color: var(--text); font-size: 13px; display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
  a { text-decoration: none; color: inherit; }
  ul { list-style: none; }
  button { cursor: pointer; font-family: var(--font); }
  input, select, textarea { font-family: var(--font); }
  table { border-collapse: collapse; width: 100%; }

  /* ============================================================
     TOP BAR
  ============================================================ */
  #topbar {
    position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
    background: var(--red); display: flex; align-items: center;
    padding: 0 16px; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,.25);
  }
  #topbar .brand {
    display: flex; align-items: center; gap: 10px; color: #fff;
    font-size: 15px; font-weight: 700; white-space: nowrap;
    width: var(--sidebar-w); flex-shrink: 0;
  }
  #topbar .brand .logo-circle {
    width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0;
  }
  #topbar .brand .brand-text { line-height: 1.15; }
  #topbar .brand .brand-text small { font-size: 10px; font-weight: 400; opacity: .8; display: block; }
  #sidebar-toggle {
    background: none; border: none; color: #fff; font-size: 18px; margin-right: 12px;
    padding: 6px; border-radius: var(--radius); display: none;
  }
  #topbar .search-wrap {
    flex: 1; max-width: 420px; margin: 0 20px; position: relative;
  }
  #topbar .search-wrap input {
    width: 100%; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25);
    color: #fff; border-radius: 20px; padding: 6px 16px 6px 36px;
    font-size: 12.5px; outline: none; transition: background .2s;
  }
  #topbar .search-wrap input::placeholder { color: rgba(255,255,255,.65); }
  #topbar .search-wrap input:focus { background: rgba(255,255,255,.26); }
  #topbar .search-wrap .s-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.7); font-size: 13px; }
  #topbar .global-search-results {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff; border-radius: var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,.18);
    display: none; max-height: 360px; overflow-y: auto; z-index: 9999;
  }
  #topbar .global-search-results.visible { display: block; }
  .gsr-group { padding: 8px 0; }
  .gsr-group-title { font-size: 10px; font-weight: 700; color: var(--text-muted); padding: 0 14px 4px; text-transform: uppercase; letter-spacing: .5px; }
  .gsr-item { padding: 7px 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
  .gsr-item:hover { background: #f5f7fa; }
  .gsr-item .gsr-icon { width: 26px; height: 26px; border-radius: var(--radius); background: var(--red-bg); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
  .gsr-item .gsr-label { font-size: 12.5px; color: var(--text); }
  .gsr-item .gsr-sub { font-size: 11px; color: var(--text-muted); }
  #topbar .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
  .tb-btn {
    background: rgba(255,255,255,.15); border: none; color: #fff;
    width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 15px; position: relative; transition: background .2s;
  }
  .tb-btn:hover { background: rgba(255,255,255,.25); }
  .tb-btn .badge-dot {
    position: absolute; top: 4px; right: 4px; width: 8px; height: 8px;
    background: #f39c12; border-radius: 50%; border: 2px solid var(--red);
  }
  .tb-user {
    display: flex; align-items: center; gap: 8px; padding: 4px 10px;
    background: rgba(255,255,255,.15); border-radius: 20px; cursor: pointer; border: none; color: #fff;
    transition: background .2s;
  }
  .tb-user:hover { background: rgba(255,255,255,.25); }
  .tb-user .avatar { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
  .tb-user .uname { font-size: 12.5px; font-weight: 600; }
  .tb-user .urole { font-size: 10.5px; opacity: .8; }

  /* ============================================================
     LAYOUT
  ============================================================ */
  #layout { display: flex; padding-top: var(--topbar-h); min-height: 100vh; }

  /* ============================================================
     SIDEBAR
  ============================================================ */
  #sidebar {
    width: var(--sidebar-w); background: var(--sidebar-bg); flex-shrink: 0;
    position: fixed; top: var(--topbar-h); bottom: 0; left: 0;
    overflow-y: auto; overflow-x: hidden; z-index: 900;
    transition: transform .25s ease;
    display: flex; flex-direction: column;
  }
  #sidebar::-webkit-scrollbar { width: 4px; }
  #sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

  /* Sidebar search */
  .sidebar-search { padding: 12px 14px 8px; }
  .sidebar-search input {
    width: 100%; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
    color: #fff; border-radius: var(--radius); padding: 6px 10px; font-size: 12px; outline: none;
  }
  .sidebar-search input::placeholder { color: var(--sidebar-head); }
  .sidebar-search input:focus { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.2); }

  /* Nav groups */
  .nav-group { margin-bottom: 4px; }
  .nav-group-title {
    font-size: 10px; font-weight: 700; color: var(--sidebar-head);
    padding: 10px 16px 4px; text-transform: uppercase; letter-spacing: .7px;
    display: flex; align-items: center; gap: 6px;
  }
  .nav-group-title::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.06); }

  /* Nav items */
  .nav-item { position: relative; }
  .nav-link {
    display: flex; align-items: center; gap: 10px; padding: 8px 16px;
    color: var(--sidebar-text); border-radius: 0; cursor: pointer;
    transition: background .15s, color .15s; font-size: 12.5px;
    border: none; background: none; width: 100%; text-align: left;
  }
  .nav-link:hover { background: var(--sidebar-hover); color: #fff; }
  .nav-link.active { background: var(--red); color: #fff; }
  .nav-link .nav-icon { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
  .nav-link .nav-label { flex: 1; line-height: 1.3; }
  .nav-link .nav-badge {
    background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
    padding: 1px 6px; border-radius: 10px; line-height: 16px;
  }
  .nav-link.active .nav-badge { background: rgba(255,255,255,.3); }
  .nav-link .nav-chevron { font-size: 10px; transition: transform .2s; }
  .nav-link.open .nav-chevron { transform: rotate(90deg); }

  /* Sub nav */
  .nav-sub { display: none; background: rgba(0,0,0,.15); }
  .nav-sub.open { display: block; }
  .nav-sub .nav-link { padding: 6px 16px 6px 44px; font-size: 12px; }

  /* Sidebar footer */
  .sidebar-footer {
    margin-top: auto; padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,.07); font-size: 11px; color: var(--sidebar-head);
  }
  .sidebar-footer .version { opacity: .6; }

  /* ============================================================
     MAIN CONTENT
  ============================================================ */
  #main-content {
    margin-left: var(--sidebar-w); flex: 1; min-height: calc(100vh - var(--topbar-h));
    padding: 0; display: flex; flex-direction: column;
  }

  /* Page header (breadcrumb + title) */
  .page-header {
    background: var(--card-bg); border-bottom: 1px solid var(--border);
    padding: 14px 24px; display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px; position: sticky; top: var(--topbar-h); z-index: 800;
    box-shadow: var(--shadow);
  }
  .page-header .ph-left .ph-title { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.2; }
  .breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
  .breadcrumb span { color: var(--text-muted); }
  .breadcrumb a { color: var(--red); }
  .breadcrumb .sep { opacity: .5; }
  .page-header .ph-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

  /* Content body */
  .content-body { padding: 20px 24px; flex: 1; }

  /* ============================================================
     BUTTONS
  ============================================================ */
  .btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
    border-radius: var(--radius); font-size: 12.5px; font-weight: 600; border: 1px solid transparent;
    cursor: pointer; transition: all .15s; line-height: 1.4; white-space: nowrap;
  }
  .btn-sm { padding: 4px 10px; font-size: 11.5px; }
  .btn-xs { padding: 2px 8px; font-size: 11px; }
  .btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
  .btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
  .btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
  .btn-outline:hover { background: var(--red); color: #fff; }
  .btn-default { background: #fff; color: var(--text); border-color: var(--border); }
  .btn-default:hover { background: #f5f5f5; }
  .btn-success { background: var(--badge-green); color: #fff; border-color: var(--badge-green); }
  .btn-info { background: var(--badge-blue); color: #fff; border-color: var(--badge-blue); }
  .btn-warning { background: var(--badge-orange); color: #fff; border-color: var(--badge-orange); }
  .btn-danger { background: var(--badge-red); color: #fff; border-color: var(--badge-red); }

  /* ============================================================
     CARDS / PANELS
  ============================================================ */
  .card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden;
  }
  .card-header {
    padding: 10px 16px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    background: #fafbfc;
  }
  .card-header .ch-title { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 7px; }
  .card-header .ch-title .ch-icon { color: var(--red); }
  .card-body { padding: 14px 16px; }
  .card-footer { padding: 8px 16px; border-top: 1px solid var(--border); background: #fafbfc; }

  /* KPI boxes */
  .kpi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
  .kpi-box {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px 16px; display: flex; align-items: center; gap: 14px;
    box-shadow: var(--shadow); position: relative; overflow: hidden;
    border-left: 4px solid var(--red);
  }
  .kpi-box.green { border-left-color: var(--badge-green); }
  .kpi-box.blue { border-left-color: var(--badge-blue); }
  .kpi-box.orange { border-left-color: var(--badge-orange); }
  .kpi-box.purple { border-left-color: var(--badge-purple); }
  .kpi-box.gray { border-left-color: var(--badge-gray); }
  .kpi-icon { font-size: 26px; opacity: .18; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
  .kpi-value { font-size: 24px; font-weight: 800; line-height: 1; }
  .kpi-label { font-size: 11px; color: var(--text-muted); margin-top: 3px; line-height: 1.3; }
  .kpi-delta { font-size: 10.5px; margin-top: 4px; font-weight: 600; }
  .kpi-delta.up { color: var(--badge-green); }
  .kpi-delta.down { color: var(--badge-red); }

  /* ============================================================
     TABLES
  ============================================================ */
  .table-wrap { overflow-x: auto; }
  .table {
    width: 100%; font-size: 12.5px; border-collapse: collapse;
  }
  .table thead tr { background: #f5f7fa; }
  .table th {
    padding: 8px 12px; text-align: left; font-weight: 700; font-size: 11px;
    text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted);
    border-bottom: 2px solid var(--border); white-space: nowrap;
  }
  .table td {
    padding: 8px 12px; border-bottom: 1px solid #f0f2f5; vertical-align: middle;
    color: var(--text);
  }
  .table tbody tr:hover { background: #fafbfc; }
  .table tbody tr:last-child td { border-bottom: none; }
  .table .monospace { font-family: 'Courier New', monospace; font-size: 11.5px; }

  /* ============================================================
     BADGES / TAGS
  ============================================================ */
  .badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 12px; font-size: 10.5px; font-weight: 700;
    line-height: 1.5; white-space: nowrap;
  }
  .badge-success { background: #eafaf1; color: #1e8449; }
  .badge-danger  { background: #fdecea; color: #c0392b; }
  .badge-warning { background: #fef9e7; color: #b7770d; }
  .badge-info    { background: #eaf3fb; color: #1a6ea8; }
  .badge-secondary { background: #f0f2f5; color: #5d6d7e; }
  .badge-purple  { background: #f5eef8; color: #7d3c98; }
  .badge-primary { background: #fdecea; color: var(--red); }

  /* ============================================================
     GRID HELPERS
  ============================================================ */
  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .row.col-3 { grid-template-columns: 1fr 1fr 1fr; }
  .row.col-3-1 { grid-template-columns: 3fr 1fr; }
  .row.col-2-1 { grid-template-columns: 2fr 1fr; }

  /* ============================================================
     WORKFLOW STEPS
  ============================================================ */
  .workflow-steps { display: flex; gap: 0; margin-bottom: 16px; }
  .wf-step {
    flex: 1; text-align: center; padding: 10px 6px; position: relative;
    background: #f5f7fa; border: 1px solid var(--border); font-size: 11px; color: var(--text-muted);
  }
  .wf-step:not(:last-child)::after {
    content: '▶'; position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
    font-size: 12px; color: var(--border); z-index: 1;
  }
  .wf-step.done { background: #eafaf1; color: #1e8449; border-color: #a9dfbf; }
  .wf-step.active { background: var(--red-bg); color: var(--red); border-color: #f1948a; font-weight: 700; }
  .wf-step .ws-label { font-weight: 600; margin-bottom: 2px; font-size: 11.5px; }
  .wf-step .ws-sub { font-size: 10px; opacity: .75; }

  /* Info block */
  .info-row { display: flex; gap: 14px; font-size: 12px; flex-wrap: wrap; margin-bottom: 14px; }
  .info-chip {
    display: flex; align-items: center; gap: 5px; background: #f5f7fa;
    border: 1px solid var(--border); border-radius: var(--radius); padding: 5px 10px;
  }
  .info-chip .ic-label { color: var(--text-muted); font-size: 11px; }
  .info-chip .ic-value { font-weight: 600; }

  /* Alert banners */
  .alert { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; }
  .alert-danger { background: #fdecea; border-left: 4px solid var(--red); color: #7b241c; }
  .alert-warning { background: #fef9e7; border-left: 4px solid #f39c12; color: #7d6608; }
  .alert-success { background: #eafaf1; border-left: 4px solid #27ae60; color: #1a5c35; }
  .alert-info { background: #eaf3fb; border-left: 4px solid #2980b9; color: #1a4e7e; }

  /* Audit note */
  .audit-note {
    background: #fdf8e1; border: 1px dashed #f0c040; border-radius: var(--radius);
    padding: 10px 14px; font-size: 11.5px; color: #7d6608; margin-top: 14px;
  }
  .audit-note strong { color: #5d4e0a; }

  /* Quick stat row */
  .qs-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
  .qs-item { font-size: 12px; color: var(--text-muted); }
  .qs-item strong { color: var(--text); font-size: 13px; }

  /* Tab nav */
  .tab-nav { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 14px; gap: 0; }
  .tab-btn {
    padding: 8px 16px; font-size: 12.5px; font-weight: 600; color: var(--text-muted);
    background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent;
    margin-bottom: -2px; transition: all .15s;
  }
  .tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
  .tab-btn:hover:not(.active) { color: var(--text); background: #f5f7fa; }

  /* Progress bar */
  .prog-bar { height: 6px; background: #e9ecef; border-radius: 3px; overflow: hidden; }
  .prog-fill { height: 100%; border-radius: 3px; background: var(--red); }
  .prog-fill.green { background: var(--badge-green); }
  .prog-fill.orange { background: var(--badge-orange); }
  .prog-fill.blue { background: var(--badge-blue); }

  /* Description block */
  .module-desc {
    background: linear-gradient(135deg, var(--red-bg) 0%, #fff 100%);
    border: 1px solid #f1948a; border-radius: var(--radius);
    padding: 14px 18px; margin-bottom: 18px;
    display: flex; gap: 14px; align-items: flex-start;
  }
  .module-desc .md-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
  .module-desc .md-title { font-size: 14px; font-weight: 700; color: var(--red); margin-bottom: 4px; }
  .module-desc .md-text { font-size: 12.5px; color: var(--text); line-height: 1.6; }
  .module-desc .md-meta { margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
  .module-desc .md-meta span { font-size: 11px; background: rgba(192,57,43,.08); color: var(--red); padding: 2px 8px; border-radius: 10px; font-weight: 600; }

  /* Empty / hidden state */
  .d-none { display: none !important; }

  /* Sidebar hidden state for mobile */
  @media (max-width: 900px) {
    #sidebar-toggle { display: flex !important; }
    #sidebar { transform: translateX(-100%); }
    #sidebar.open { transform: translateX(0); }
    #main-content { margin-left: 0; }
    .row { grid-template-columns: 1fr; }
    .row.col-3 { grid-template-columns: 1fr; }
    .row.col-3-1 { grid-template-columns: 1fr; }
    .row.col-2-1 { grid-template-columns: 1fr; }
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
    #topbar .brand .brand-text { display: none; }
  }

  /* Micro-animations */
  .content-section { animation: fadeIn .2s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

  /* Thin divider */
  .divider { height: 1px; background: var(--border); margin: 14px 0; }

  /* Small text helpers */
  .text-muted { color: var(--text-muted); }
  .text-red { color: var(--red); }
  .text-green { color: var(--badge-green); }
  .text-bold { font-weight: 700; }
  .text-sm { font-size: 11.5px; }

  /* Checkbox col */
  .cb-col { width: 32px; }
  input[type=checkbox] { accent-color: var(--red); width: 13px; height: 13px; }

  /* Responsive hidden */
  .hide-sm { }
  @media (max-width: 600px) { .hide-sm { display: none; } }

  /* Filter bar */
  .filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
  .filter-bar input, .filter-bar select {
    padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 12px; color: var(--text); background: #fff; outline: none;
  }
  .filter-bar input:focus, .filter-bar select:focus { border-color: var(--red); }
  .filter-bar label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

  /* Inline form */
  .form-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
  .form-group label { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .4px; }
  .form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 12.5px; color: var(--text); background: #fff; outline: none;
  }
  .form-group input:focus, .form-group select:focus { border-color: var(--red); box-shadow: 0 0 0 2px rgba(192,57,43,.1); }

  /* Right-align cell */
  .text-right { text-align: right; }
  .text-center { text-align: center; }

  /* Dense list */
  .dense-list li { padding: 5px 0; border-bottom: 1px solid #f0f2f5; font-size: 12.5px; display: flex; justify-content: space-between; align-items: center; }
  .dense-list li:last-child { border-bottom: none; }

  /* Modal overlay */
  .modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 9000; align-items: center; justify-content: center;
  }
  .modal-overlay.open { display: flex; }
  .modal-box {
    background: #fff; border-radius: 6px; box-shadow: 0 8px 40px rgba(0,0,0,.25);
    max-width: 520px; width: 92%; max-height: 80vh; overflow-y: auto; animation: fadeIn .2s;
  }
  .modal-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
  .modal-header .modal-title { font-size: 14px; font-weight: 700; }
  .modal-close { background: none; border: none; font-size: 18px; color: var(--text-muted); cursor: pointer; }
  .modal-body { padding: 18px; }
  .modal-footer { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

  /* Scrollable content */
  .scroll-x { overflow-x: auto; }

  /* Number formatting */
  .num { font-variant-numeric: tabular-nums; }

  /* dot status indicator */
  .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; vertical-align: middle; }
  .dot-green { background: var(--badge-green); }
  .dot-red { background: var(--badge-red); }
  .dot-orange { background: var(--badge-orange); }
  .dot-blue { background: var(--badge-blue); }
  .dot-gray { background: var(--badge-gray); }

  /* mini chart bar */
  .mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 36px; }
  .mini-bar { flex: 1; background: var(--red); opacity: .6; border-radius: 2px 2px 0 0; min-width: 4px; }
  .mini-bar:last-child { opacity: 1; }

  /* Footnote */
  .footnote { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

  /* ============================================================
     TOOLTIP — ⓘ column header & label tooltips
  ============================================================ */
  .tip-wrap {
    position: relative; display: inline-flex; align-items: center; gap: 4px;
  }
  .tip-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--text-muted); color: #fff;
    font-size: 9px; font-weight: 700; font-style: normal;
    cursor: help; flex-shrink: 0; line-height: 1;
    transition: background .15s;
  }
  .tip-icon:hover { background: var(--red); }
  .tip-popup {
    position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    background: #2d3748; color: #fff; border-radius: 5px;
    padding: 6px 10px; font-size: 11px; line-height: 1.45;
    white-space: nowrap; max-width: 240px; white-space: normal;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    pointer-events: none; opacity: 0; transition: opacity .15s;
    z-index: 9000; width: max-content;
  }
  .tip-popup::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: #2d3748;
  }
  .tip-wrap:hover .tip-popup { opacity: 1; }

  /* ============================================================
     FORM HINTS — field-level guidance below inputs
  ============================================================ */
  .form-hint {
    display: block; font-size: 11px; color: var(--text-muted);
    margin-top: 3px; line-height: 1.4;
  }
  .field-group { margin-bottom: 14px; }
  .field-group label {
    display: block; font-size: 12px; font-weight: 600;
    color: var(--text); margin-bottom: 4px;
  }
  .field-group input,
  .field-group select,
  .field-group textarea {
    width: 100%; padding: 6px 10px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 13px; color: var(--text);
    background: #fff; transition: border-color .15s;
  }
  .field-group input:focus,
  .field-group select:focus,
  .field-group textarea:focus {
    outline: none; border-color: var(--red);
  }
  .field-required::after { content: ' *'; color: var(--red); }
</style>
