:root {
            --hc-success: #A5FFD6;
            --hc-danger: #CEB8B8;
            --hc-muted: #B3B5BB;
            --hc-primary: #C5D9E2;
            --hc-secondary: #CDFFF9;
            --hc-accent: #1db8ff;
            --hc-radius: 16px;
            --hc-light-bg: #f6fbfd;
            --hc-light-ink: #1f2a3a;
            --hc-light-ink-strong: #0f172a;
            --hc-light-panel: #ffffff;
            --hc-dark-bg: #0b1024;
            --hc-dark-panel: #0f1734;
            --hc-dark-ink: #d8e4ff;
            --hc-dark-ink-strong: #ffffff;
        }

        body {
            font-family: "Space Grotesk", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
            font-size: 0.95rem;
            background: var(--hc-bg);
            color: var(--hc-ink);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        body.hc-share-body {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        body.hc-share-body main {
            flex: 1;
        }

        body.hc-share-body .hc-footer {
            margin-top: auto;
        }

        main {
            flex: 1 0 auto;
        }

        .form-control,
        .form-select,
        textarea.form-control {
            font-size: 0.9rem;
            font-family: inherit;
        }

        .form-control:focus,
        .form-select:focus,
        textarea.form-control:focus {
            border-color: #35c6bf;
            box-shadow: 0 0 0 0.12rem rgba(53, 198, 191, 0.25);
        }

        input[type="search"]::placeholder,
        .hc-filter input::placeholder,
        .hc-filter .form-control::placeholder {
            text-transform: uppercase;
        }

        h1, h2, h3, h4,
        .h1, .h2, .h3, .h4,
        .hc-page-title {
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-family: inherit;
        }

        .form-label {
            text-transform: uppercase;
            letter-spacing: 0.06em;
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--hc-muted);
        }

        .btn {
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-family: inherit;
            font-size: 0.85rem;
        }

        .hc-header-title {
            font-size: 1.05rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--hc-ink-strong);
        }

        .hc-header-sub {
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--hc-muted);
            margin-top: 6px;
        }

        body[data-theme="dark"] .text-muted {
            color: var(--hc-muted) !important;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-size: 0.78rem;
        }

        body[data-theme="dark"] .text-muted.small {
            font-size: 0.72rem;
        }

        body[data-theme="dark"] .form-select {
            color: #ffffff;
            background-color: #0f1734;
            color-scheme: dark;
        }

        body[data-theme="dark"] .form-select option {
            color: #dbe7ff !important;
            background-color: #0f1734 !important;
        }

        .hc-page-header,
        .hc-page-header-block,
        .page-header,
        .d-flex.justify-content-between.align-items-center.mb-3,
        .d-flex.flex-wrap.justify-content-between.align-items-center.mb-3 {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
            padding: 14px 16px;
            border-radius: 16px;
            border: 1px solid var(--hc-border);
            background: var(--hc-panel);
            box-shadow: 0 10px 24px rgba(8, 15, 32, 0.2);
        }

        .hc-page-header h1,
        .hc-page-header .h1,
        .hc-page-header .h2,
        .hc-page-header .h3,
        .hc-page-header-block h1,
        .hc-page-header-block .h1,
        .hc-page-header-block .h2,
        .hc-page-header-block .h3,
        .page-header h1,
        .page-header .h1,
        .page-header .h2,
        .page-header .h3,
        .d-flex.justify-content-between.align-items-center.mb-3 h1,
        .d-flex.justify-content-between.align-items-center.mb-3 .h3,
        .d-flex.flex-wrap.justify-content-between.align-items-center.mb-3 h1,
        .d-flex.flex-wrap.justify-content-between.align-items-center.mb-3 .h3 {
            margin: 0;
            font-weight: 600;
            font-size: 1.05rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        body[data-theme="light"] {
            --hc-bg: var(--hc-light-bg);
            --hc-panel: var(--hc-light-panel);
            --hc-ink: var(--hc-light-ink);
            --hc-ink-strong: var(--hc-light-ink-strong);
            --hc-border: #c5c9cd;
            --hc-topbar: linear-gradient(135deg, #e9f4fb, #ffffff 65%);
            --hc-nav: #f7f9fc;
            --hc-nav-underline: rgba(90, 110, 170, 0.2);
            --hc-status-bg: #eef9f4;
        }

        body[data-theme="dark"] {
            --hc-bg: #0f152e;
            --hc-panel: #121b36;
            --hc-ink: #dbe7ff;
            --hc-ink-strong: #ffffff;
            --hc-border: rgba(120, 165, 210, 0.22);
            --hc-topbar: linear-gradient(135deg, #0f152e, #0b1226 70%);
            --hc-nav: #0d142b;
            --hc-nav-underline: rgba(53, 198, 191, 0.6);
            --hc-status-bg: rgba(15, 32, 56, 0.9);
            --hc-success: #35c6bf;
            --hc-primary: #2b8ea1;
            --hc-secondary: rgba(53, 198, 191, 0.18);
            background: radial-gradient(circle at top left, rgba(53, 198, 191, 0.18), transparent 45%),
                radial-gradient(circle at bottom right, rgba(43, 142, 161, 0.18), transparent 50%),
                #0f152e;
        }

        body[data-theme="dark"] .bg-light,
        body[data-theme="dark"] .bg-white,
        body[data-theme="dark"] .bg-body,
        body[data-theme="dark"] .bg-body-secondary,
body[data-theme="dark"] .bg-body-tertiary {
            background-color: rgba(15, 21, 46, 0.92) !important;
            color: var(--hc-ink);
        }

        .hc-mini-card {
            background: rgba(12, 22, 48, 0.7);
            border: 1px solid rgba(59, 88, 140, 0.35);
            border-radius: 12px;
            padding: 12px 14px;
            min-height: 72px;
        }

        .hc-mini-title {
            font-size: 10px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #9fb3d8;
            margin-bottom: 6px;
        }

        .hc-mini-body {
            font-weight: 600;
            font-size: 0.9rem;
            color: #e9f1ff;
            word-break: break-word;
        }

        .hc-mini-meta {
            font-size: 10px;
            color: #8ea6c6;
            margin-top: 4px;
            word-break: break-word;
        }

        .hc-mini-card .table,
        .hc-mini-card .table th,
        .hc-mini-card .table td {
            font-size: 0.78rem;
        }

        .hc-topbar {
            background: var(--hc-topbar);
            border-bottom: 1px solid var(--hc-border);
        }

        .hc-topbar-inner {
            padding: 16px 20px 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
        }

        .hc-brand {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            flex-direction: column;
            width: 100%;
        }

        .hc-title-line {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            width: 100%;
            justify-content: space-between;
        }

        .hc-title-right {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-left: auto;
        }

        .hc-title {
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--hc-ink-strong);
        }

        .hc-title-time {
            font-size: 0.85rem;
            color: var(--hc-muted);
        }

        .hc-timezone-label {
            margin-left: 6px;
        }

        .hc-hide-sm {
            display: inline-flex;
        }

        .hc-title-sep {
            color: var(--hc-muted);
            font-weight: 500;
        }

        .hc-meta {
            display: flex;
            align-items: center;
            gap: 14px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .hc-meta-time {
            font-size: 0.85rem;
            color: var(--hc-muted);
            text-align: right;
        }

        .hc-meta-user {
            font-size: 0.85rem;
            color: var(--hc-muted);
            text-align: right;
            white-space: nowrap;
        }

        .hc-logout-btn {
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        @media (max-width: 768px) {
            .hc-hide-sm {
                display: none;
            }

            .hc-hide-mobile {
                display: none !important;
            }

            .hc-page {
                font-size: 0.9rem;
            }

            .hc-page .form-control,
            .hc-page .form-select,
            .hc-page .btn,
            .hc-page .hc-actions-row,
            .hc-page .hc-actions-legend,
            .hc-page .hc-table tbody td {
                font-size: 0.9rem;
            }

            .hc-page-title {
                font-size: 1.45rem;
            }

            .hc-kpi-bar {
                font-size: 0.85rem;
            }
        }

        .hc-status {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 14px;
            border-radius: 999px;
            border: 1px solid var(--hc-border);
            background: var(--hc-status-bg);
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            font-size: 0.65rem;
        }

        .hc-status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #2ad46a;
            box-shadow: 0 0 0 4px rgba(42, 212, 106, 0.2);
        }

        .hc-status-success {
            border-color: rgba(42, 212, 106, 0.5);
        }

        .hc-status-danger {
            border-color: rgba(206, 184, 184, 0.75);
        }

        .hc-status-danger .hc-status-dot {
            background: #f25b5b;
            box-shadow: 0 0 0 4px rgba(242, 91, 91, 0.2);
        }

        .hc-status-compact {
            font-size: 0.6rem;
            padding: 4px 10px;
            letter-spacing: 0.08em;
        }

        .hc-status-compact .hc-status-dot {
            width: 6px;
            height: 6px;
            box-shadow: 0 0 0 3px rgba(42, 212, 106, 0.25), 0 0 10px rgba(42, 212, 106, 0.5);
        }

        .hc-status-compact.hc-status-danger .hc-status-dot {
            box-shadow: 0 0 0 3px rgba(242, 91, 91, 0.2), 0 0 10px rgba(242, 91, 91, 0.5);
        }

        .hc-status-info {
            border-color: rgba(90, 150, 255, 0.6);
        }

        .hc-status-info .hc-status-dot {
            background: #5aa2ff;
            box-shadow: 0 0 0 3px rgba(90, 150, 255, 0.25), 0 0 10px rgba(90, 150, 255, 0.45);
        }

        .hc-status-warning {
            border-color: rgba(255, 168, 64, 0.7);
        }

        .hc-status-warning .hc-status-dot {
            background: #ff8a3d;
            box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.25), 0 0 10px rgba(255, 138, 61, 0.45);
        }

        .hc-vessel-warning {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 1px solid rgba(245, 196, 90, 0.8);
            background: rgba(245, 196, 90, 0.15);
            color: #b47700;
            font-size: 0.7rem;
            font-weight: 700;
            line-height: 1;
        }

        .hc-accordion-row {
            cursor: pointer;
        }

        .hc-accordion-detail {
            display: none;
        }

        .hc-accordion-detail.show {
            display: table-row;
        }

        body[data-theme="dark"] .hc-accordion-detail td {
            color: rgba(222, 234, 255, 0.9);
        }

        .hc-match-ref {
            color: var(--hc-muted);
        }

        body[data-theme="dark"] .hc-match-ref {
            color: rgba(196, 214, 255, 0.95);
        }

        .hc-sync-note {
            color: var(--hc-muted);
            margin-top: 4px;
            line-height: 1.2;
            font-size: 0.7rem;
        }

        body[data-theme="dark"] .hc-sync-note {
            color: rgba(188, 206, 245, 0.9);
        }

        .hc-sailing-schedule {
            font-size: 0.85rem;
        }

        .hc-sailing-schedule .hc-route-note {
            font-size: 0.6rem;
        }

        .hc-edit-schedule .hc-date-stack {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .hc-edit-schedule .hc-date-row {
            display: flex;
            align-items: baseline;
            gap: 6px;
            font-size: 0.75rem;
        }

        .hc-edit-schedule .hc-date-tag {
            color: var(--hc-muted);
            font-weight: 600;
            min-width: 14px;
        }

        .hc-edit-schedule .hc-date-val {
            color: var(--hc-ink-strong);
        }

        .hc-edit-schedule .hc-date-row:first-child .hc-date-val {
            color: rgba(200, 214, 240, 0.85);
        }

        .hc-edit-schedule .hc-row-inactive td {
            text-decoration: line-through;
            opacity: 0.6;
        }

        .hc-edit-schedule .hc-row-inactive td .text-muted {
            text-decoration: none;
        }

        .hc-sailing-schedule .hc-date-stack {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .hc-sailing-schedule .hc-date-row {
            display: flex;
            align-items: baseline;
            gap: 6px;
            font-size: 0.68rem;
        }

        .hc-sailing-schedule .hc-date-tag {
            color: var(--hc-muted);
            font-weight: 600;
            min-width: 14px;
        }

        .hc-sailing-schedule .hc-date-val {
            color: var(--hc-ink-strong);
        }

        .hc-sailing-schedule .hc-date-row:first-child .hc-date-val {
            color: rgba(200, 214, 240, 0.85);
        }

        .hc-sailing-schedule .hc-port-code {
            color: var(--hc-ink-strong);
            font-weight: 600;
        }

        .hc-sailing-schedule .hc-port-name {
            color: rgba(200, 214, 240, 0.9);
            font-size: 0.68rem;
        }

        .hc-sailing-schedule .hc-match-meta {
            margin-top: 6px;
            color: rgba(196, 214, 255, 0.85);
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .hc-sailing-schedule .hc-row-omitted td {
            text-decoration: line-through;
            opacity: 0.65;
        }

        .hc-sgsin-port {
            font-size: 0.75rem;
        }

        .hc-sgsin-port .hc-date-stack {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .hc-sgsin-port .hc-date-row {
            display: flex;
            align-items: baseline;
            gap: 6px;
            font-size: 0.7rem;
        }

        .hc-sgsin-port .hc-date-tag {
            color: var(--hc-muted);
            font-weight: 600;
            min-width: 54px;
        }

        .hc-sgsin-port .hc-date-val {
            color: var(--hc-ink-strong);
            white-space: nowrap;
        }

        .hc-sgsin-port .hc-date-inline {
            white-space: nowrap;
        }

        .hc-sgsin-port input[type="datetime-local"] {
            font-size: 0.75rem;
        }

        .hc-rate-cost {
            display: grid;
            gap: 12px;
            margin-bottom: 10px;
        }

        .hc-rate-block {
            border: 1px solid var(--hc-border);
            border-radius: 12px;
            padding: 10px 12px;
            background: rgba(15, 32, 56, 0.25);
        }

        .hc-rate-card-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .hc-rate-card {
            border: 1px solid var(--hc-border);
            border-radius: 12px;
            padding: 10px 12px;
            background: rgba(15, 32, 56, 0.25);
        }

        .hc-rate-table {
            margin: 0;
            color: var(--hc-ink);
        }

        .hc-rate-table thead th {
            font-size: 0.68rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--hc-muted);
            border-color: var(--hc-border);
            background: rgba(15, 32, 56, 0.35);
        }

        .hc-rate-table td {
            border-color: var(--hc-border);
            vertical-align: middle;
        }

        .hc-rate-table tbody tr:not(.hc-rate-section):not(.hc-rate-total-row) td {
            font-size: 0.72rem;
            color: rgba(200, 214, 240, 0.9);
        }

        .hc-rate-section td {
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-size: 0.62rem;
            color: var(--hc-muted);
            background: rgba(15, 32, 56, 0.35);
        }

        .hc-rate-total-row td {
            font-weight: 600;
        }

        .hc-rate-col-charge {
            width: 32%;
            color: var(--hc-ink-strong);
        }

        .hc-rate-col-currency {
            width: 10%;
            font-weight: 600;
        }

        .hc-rate-col-amount {
            text-align: right;
            white-space: nowrap;
        }

        .hc-rate-title {
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--hc-muted);
            margin-bottom: 6px;
        }

        .hc-rate-values {
            font-size: 0.85rem;
            color: var(--hc-ink-strong);
        }

        .hc-rate-line {
            margin-bottom: 2px;
        }

        .hc-rate-breakdown {
            margin-top: 6px;
            display: grid;
            gap: 4px;
            font-size: 0.75rem;
            color: var(--hc-muted);
        }

        .hc-rate-breakdown-item {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }

        .hc-rate-group {
            margin-bottom: 6px;
        }

        .hc-rate-group-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--hc-muted);
            margin-bottom: 2px;
        }

        .hc-rate-group-values .hc-rate-line {
            margin-bottom: 2px;
        }

        .hc-rate-group-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .hc-rate-group-grid .hc-rate-group {
            margin-bottom: 0;
        }

        @media (max-width: 768px) {
            .hc-rate-card-grid {
                grid-template-columns: 1fr;
            }

            .hc-rate-group-grid {
                grid-template-columns: 1fr;
            }
        }

        .hc-rate-breakdown-code {
            color: var(--hc-ink);
        }

        .hc-rate-breakdown-amount {
            color: var(--hc-muted);
        }

        .hc-rate-debug {
            margin-top: 8px;
            padding: 8px 10px;
            border-radius: 10px;
            border: 1px dashed var(--hc-border);
            color: var(--hc-muted);
            background: rgba(15, 32, 56, 0.2);
        }

        body[data-theme="light"] .hc-sailing-schedule .hc-date-row:first-child .hc-date-val {
            color: #4b5563;
        }

        body[data-theme="light"] .hc-sailing-schedule .hc-port-name {
            color: #4b5563;
        }

        body[data-theme="light"] .hc-sailing-schedule .hc-match-meta {
            color: #4b5563;
        }

        body[data-theme="light"] .hc-page .btn-outline-primary,
        body[data-theme="light"] .hc-page .btn-outline-secondary,
        body[data-theme="light"] .hc-panel .btn-outline-primary,
        body[data-theme="light"] .hc-panel .btn-outline-secondary,
        body[data-theme="light"] .hc-actions-row .btn-outline-primary,
        body[data-theme="light"] .hc-actions-row .btn-outline-secondary,
        body[data-theme="light"] .btn-outline-primary,
        body[data-theme="light"] .btn-outline-secondary {
            color: #0f172a;
            border-color: #c5c9cd;
        }

        body[data-theme="light"] .hc-rate-card {
            background: #ffffff;
            border: 1px solid #d8e0ea;
            box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
        }

        body[data-theme="light"] .hc-rate-title {
            color: #6b7280;
        }

        body[data-theme="light"] .hc-rate-table {
            color: #111827;
        }

        body[data-theme="light"] .hc-rate-table thead th {
            background: #eef2f7;
            color: #5b6777;
            border-color: #d8e0ea;
        }

        body[data-theme="light"] .hc-rate-table td {
            border-color: #e3e9f1;
        }

        body[data-theme="light"] .hc-rate-table tbody tr:not(.hc-rate-section):not(.hc-rate-total-row) td {
            color: #1f2937;
        }

        body[data-theme="light"] .hc-rate-section td {
            background: #f5f7fb;
            color: #667085;
        }

        body[data-theme="light"] .hc-rate-total-row td {
            background: #fbfcfe;
            color: #0f172a;
        }

        body[data-theme="light"] .hc-rate-col-charge {
            color: #0f172a;
        }

        .hc-nav {
            background: var(--hc-nav);
            border-bottom: 1px solid var(--hc-border);
        }

        .hc-nav .navbar-brand,
        .hc-nav .nav-link,
        .hc-nav .navbar-text {
            color: var(--hc-ink);
            font-weight: 400;
            font-size: 0.9rem;
        }

        .hc-nav .nav-link.active,
        .hc-nav .nav-link:hover {
            color: var(--hc-ink-strong);
        }

        body[data-theme="dark"] .hc-nav .nav-link.active {
            color: var(--hc-ink-strong);
            background: transparent;
        }

        body[data-theme="dark"] .hc-nav .nav-link.active::before {
            display: block;
            background: var(--hc-nav-underline);
        }

        .hc-nav .nav-link:focus,
        .hc-nav .nav-link:active,
        .hc-nav .dropdown-toggle.show {
            color: var(--hc-ink-strong);
        }

        .hc-nav .nav-link {
            position: relative;
        }

        .hc-nav .navbar-nav {
            gap: 12px;
        }

        .hc-nav .nav-link {
            padding-left: 0.9rem;
            padding-right: 0.9rem;
        }

        .hc-nav .nav-link.active::before,
        .hc-nav .nav-link:hover::before {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -10px;
            height: 2px;
            background: var(--hc-nav-underline);
        }

        .hc-nav .navbar-toggler {
            border-color: rgba(15, 23, 42, 0.25);
            border-radius: 12px;
            padding: 6px 10px;
            background: var(--hc-panel);
            margin-left: auto;
        }

        .hc-nav .navbar-toggler:focus {
            box-shadow: 0 0 0 0.2rem rgba(53, 198, 191, 0.25);
        }

        .hc-nav .navbar-toggler-icon {
            background-image: none;
            width: 20px;
            height: 2px;
            background-color: var(--hc-ink);
            position: relative;
            display: block;
        }

        .hc-nav .navbar-toggler-icon::before,
        .hc-nav .navbar-toggler-icon::after {
            content: "";
            position: absolute;
            left: 0;
            width: 20px;
            height: 2px;
            background-color: var(--hc-ink);
        }

        .hc-nav .navbar-toggler-icon::before {
            top: -6px;
        }

        .hc-nav .navbar-toggler-icon::after {
            top: 6px;
        }

        .hc-nav .dropdown-menu {
            border-color: var(--hc-border);
            background: var(--hc-panel);
        }

        .hc-nav .dropdown-item {
            color: var(--hc-ink);
            font-size: 0.9rem;
            font-weight: 400;
        }

        .hc-nav .dropdown-item.active,
        .hc-nav .dropdown-item:active {
            background: var(--hc-secondary);
            color: var(--hc-ink-strong);
        }

        body[data-theme="dark"] .hc-nav .dropdown-item.active,
        body[data-theme="dark"] .hc-nav .dropdown-item:active {
            background: transparent !important;
            color: var(--hc-ink-strong);
            text-decoration: underline;
            text-decoration-thickness: 2px;
            text-underline-offset: 4px;
        }

        .hc-nav .dropdown-item:hover,
        .hc-nav .dropdown-item:focus {
            background: rgba(205, 255, 249, 0.65);
            color: var(--hc-ink-strong);
        }

        body[data-theme="dark"] .hc-nav .dropdown-item:hover,
        body[data-theme="dark"] .hc-nav .dropdown-item:focus {
            background: rgba(53, 198, 191, 0.18);
            color: var(--hc-ink-strong);
        }

        .hc-nav .dropdown-submenu {
            position: relative;
        }

        .hc-nav .dropdown-submenu > .dropdown-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .hc-nav .dropdown-submenu > .dropdown-menu {
            top: 0;
            left: 100%;
            margin-left: 0.2rem;
        }

        .hc-nav .dropdown-submenu > .dropdown-toggle::after {
            margin-left: auto;
            transform: rotate(-90deg);
        }

        .hc-nav .dropdown-submenu:hover > .dropdown-menu {
            display: block;
        }

        @media (max-width: 991px) {
            .hc-nav .dropdown-submenu > .dropdown-menu {
                position: static;
                margin-left: 0;
            }

            .hc-nav .dropdown-submenu > .dropdown-toggle::after {
                transform: rotate(0);
            }
        }

        body[data-theme="dark"] .modal-content {
            background: var(--hc-dark-panel);
            color: var(--hc-ink);
            border-color: var(--hc-border);
        }

        body[data-theme="dark"] .modal-header,
        body[data-theme="dark"] .modal-footer {
            border-color: var(--hc-border);
        }

        body[data-theme="dark"] .modal-content .form-control,
        body[data-theme="dark"] .modal-content .form-select,
        body[data-theme="dark"] .modal-content .input-group-text {
            background: rgba(15, 21, 46, 0.9);
            color: #e6efff;
            border-color: var(--hc-border);
        }

        body[data-theme="dark"] .modal-content .form-select {
            color: #e6efff;
        }

        body[data-theme="dark"] .modal-content .form-control::placeholder,
        body[data-theme="dark"] .modal-content .form-select::placeholder {
            color: rgba(219, 231, 255, 0.55);
        }

        body[data-theme="dark"] .modal-content .form-select option {
            color: #0f172a;
        }

        body[data-theme="dark"] .modal-backdrop.show {
            opacity: 0.7;
        }

        body[data-theme="dark"] .btn-close {
            filter: invert(1);
        }

        body[data-theme="dark"] .hc-nav .nav-link:focus,
        body[data-theme="dark"] .hc-nav .nav-link:active,
        body[data-theme="dark"] .hc-nav .dropdown-toggle.show {
            background: rgba(53, 198, 191, 0.18);
            color: var(--hc-ink-strong);
        }

        .hc-nav-tools {
            flex-wrap: wrap;
        }

        .hc-nav-mobile {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            width: 100%;
            padding: 6px 0 2px;
            flex-wrap: nowrap;
        }

        .hc-nav-mobile-left {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .hc-nav-mobile-right {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-left: auto;
        }

        .hc-theme-toggle {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 1px solid var(--hc-border);
            background: transparent;
            color: var(--hc-ink);
            display: grid;
            place-items: center;
        }

        .hc-theme-toggle-compact {
            width: 32px;
            height: 32px;
            font-size: 0.8rem;
        }

        @media (max-width: 992px) {
            .hc-nav .navbar-collapse {
                margin-top: 12px;
                padding-top: 12px;
                border-top: 1px solid var(--hc-border);
            }

            .hc-nav .navbar-nav {
                gap: 6px;
                width: 100%;
            }

            .hc-nav .nav-link {
                padding: 10px 12px;
                border-radius: 10px;
            }

            .hc-nav .nav-link:hover,
            .hc-nav .nav-link:focus,
            .hc-nav .nav-link:active,
            .hc-nav .dropdown-toggle.show {
                background: rgba(205, 255, 249, 0.65);
                color: var(--hc-ink-strong);
            }

            body[data-theme="dark"] .hc-nav .nav-link:hover,
            body[data-theme="dark"] .hc-nav .nav-link:focus,
            body[data-theme="dark"] .hc-nav .nav-link:active,
            body[data-theme="dark"] .hc-nav .dropdown-toggle.show {
                background: rgba(53, 198, 191, 0.18);
                color: var(--hc-ink-strong);
            }

            .hc-nav .nav-link.active::before,
            .hc-nav .nav-link:hover::before {
                display: none;
            }

            .hc-nav .dropdown-menu {
                border: none;
                box-shadow: none;
                background: transparent;
                padding-top: 4px;
            }

            .hc-nav .dropdown-item {
                padding: 10px 14px 10px 26px;
            }

            .hc-nav-tools {
                width: 100%;
                justify-content: flex-start;
                padding: 8px 0 4px;
            }

            .hc-nav .navbar-toggler {
                padding: 8px 14px;
                margin-left: 0;
            }

            .hc-nav .navbar-toggler:focus {
                box-shadow: none;
            }
        }

        .hc-footer {
            margin-top: auto;
            padding: 18px 20px;
            border-top: 1px solid var(--hc-border);
            background: var(--hc-panel);
            color: var(--hc-ink);
            font-size: 0.9rem;
        }

        .hc-footer strong {
            color: var(--hc-ink-strong);
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        body[data-theme="dark"] .hc-footer .text-muted {
            color: rgba(216, 228, 255, 0.7) !important;
        }

        .hc-quick-actions {
            margin: 10px 0 0;
            padding: 18px 0 8px;
        }

        .hc-qa-header {
            font-weight: 600;
            font-size: 0.95rem;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--hc-ink-strong);
            margin-bottom: 10px;
        }

        .hc-qa-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .hc-qa-item {
            display: inline-flex;
            align-items: center;
            padding: 8px 14px;
            border-radius: 10px;
            border: 1px solid var(--hc-border);
            background: var(--hc-panel);
            color: var(--hc-ink-strong);
            font-size: 0.85rem;
            font-weight: 500;
            text-decoration: none;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }

        .hc-qa-item:hover,
        .hc-qa-item:focus {
            color: var(--hc-ink-strong);
            box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
            transform: translateY(-1px);
        }

        body[data-theme="dark"] .hc-qa-item {
            background: rgba(15, 21, 46, 0.88);
        }

        .hc-page {
            display: flex;
            flex-direction: column;
            gap: 22px;
            font-size: 0.95rem;
        }

        .hc-page-header,
        .hc-page-header-block,
        .hc-filter-bar,
        .hc-panel,
        .hc-page .card {
            border-radius: var(--hc-radius);
        }

        .hc-page .card {
            overflow: hidden;
        }

        .hc-page .card-header,
        .hc-page .card-footer {
            border-radius: 0;
        }

        .hc-page-header {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .hc-page-header-row {
            justify-content: space-between;
            align-items: center;
        }

        .hc-page-title {
            font-size: 1.4rem;
            font-weight: 500;
            color: var(--hc-ink-strong);
            margin: 0;
        }

        .hc-page-header .hc-status-pill {
            margin-top: 6px;
        }

        .hc-title-row {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .hc-title-row .hc-status-pill {
            margin-top: 0;
        }


        .hc-hero {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin: 8px 0 18px;
        }

        .hc-hero-line {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
        }

        .hc-hero-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            font-size: 0.85rem;
            color: var(--hc-muted);
        }

        .hc-hero-meta-item {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .hc-hero-meta-strong {
            color: var(--hc-ink-strong);
            font-weight: 600;
        }

        .hc-status-dot-inline {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            display: inline-block;
        }

        .hc-status-dot-active {
            background: #2ad46a;
            box-shadow: 0 0 0 3px rgba(42, 212, 106, 0.25), 0 0 10px rgba(42, 212, 106, 0.45);
        }

        .hc-status-dot-inactive {
            background: #f25b5b;
            box-shadow: 0 0 0 3px rgba(242, 91, 91, 0.2), 0 0 10px rgba(242, 91, 91, 0.45);
        }

        .hc-action-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .hc-section-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 10px 12px;
            border-radius: 14px;
            border: 1px solid var(--hc-border);
            background: var(--hc-panel);
        }

        .hc-section-nav .btn {
            text-transform: uppercase;
            letter-spacing: 0.06em;
            font-size: 0.72rem;
        }

        .hc-section-anchor {
            scroll-margin-top: 140px;
        }

        .hc-credential-group .form-control {
            font-size: 0.8rem;
        }

        .hc-credential-group .btn {
            font-size: 0.7rem;
        }

        .hc-metric-card .hc-panel-body {
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-height: 98px;
        }

        .hc-metric-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--hc-ink);
        }

        .hc-metric-row strong {
            color: var(--hc-ink-strong);
        }

        .hc-metric-value {
            color: var(--hc-ink);
            font-weight: 400;
        }

        .hc-metric-sub {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-height: 1.2em;
        }

        .hc-alert-list {
            margin: 0 0 12px;
            padding-left: 1.1rem;
            color: var(--hc-ink);
        }

        .hc-action-inline {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .hc-panel-footer {
            padding: 12px 16px;
            border-top: 1px solid var(--hc-border);
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
            font-size: 0.85rem;
            color: var(--hc-muted);
            background: transparent;
        }

        .hc-section-subtitle {
            margin: 12px 0 8px;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--hc-muted);
        }

        .hc-inline-text {
            font-size: 0.85rem;
            color: var(--hc-muted);
            margin-bottom: 10px;
        }

        .hc-kpi-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            font-size: 0.9rem;
            color: var(--hc-muted);
        }

        .hc-kpi-item strong {
            color: var(--hc-ink-strong);
            font-weight: 600;
        }

        .hc-kpi-sep {
            color: var(--hc-muted);
        }

        .hc-kpi-warn {
            color: #f5b731;
        }

        .hc-rule-preview {
            font-size: 0.85rem;
            color: var(--hc-ink);
        }

        .hc-route-line {
            font-size: 0.8rem;
            line-height: 1.3;
            color: var(--hc-ink);
        }

        .hc-amount-line {
            font-size: 0.8rem;
            line-height: 1.3;
        }

        .hc-badge {
            display: inline-flex;
            align-items: center;
            padding: 2px 8px;
            border-radius: 999px;
            border: 1px solid var(--hc-border);
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }

        .hc-badge-container {
            color: var(--hc-ink-strong);
            border-color: rgba(42, 212, 106, 0.5);
            background: rgba(42, 212, 106, 0.15);
        }

        .hc-badge-shipment {
            color: var(--hc-ink-strong);
            border-color: rgba(82, 141, 255, 0.5);
            background: rgba(82, 141, 255, 0.12);
        }

        .hc-badge-delay {
            color: var(--hc-ink-strong);
            border-color: rgba(242, 91, 91, 0.6);
            background: rgba(242, 91, 91, 0.15);
        }

        .hc-badge-closed {
            color: var(--hc-ink-strong);
            border-color: rgba(242, 91, 91, 0.6);
            background: rgba(242, 91, 91, 0.15);
        }

        .hc-rule-use-count {
            font-size: 0.8rem;
            color: var(--hc-ink);
        }

        .hc-rule-status {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            margin-top: 2px;
        }

        .hc-rule-status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: currentColor;
        }

        .hc-rule-status-valid {
            color: #2ad46a;
        }

        .hc-rule-status-overlap {
            color: #f5b731;
        }

        .hc-rule-status-conflict {
            color: #f15b5b;
        }

        .hc-rule-status-warn {
            color: #f5b731;
        }

        .hc-rule-dot {
            font-size: 0.9rem;
        }

        .hc-rule-dot-active {
            color: #2ad46a;
        }

        .hc-rule-dot-muted {
            color: #8b929a;
        }


        .hc-filter-bar {
            padding: 16px;
            border-radius: 16px;
            border: 1px solid var(--hc-border);
            background: var(--hc-panel);
            margin-bottom: 16px;
        }

        .hc-filter-row {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: flex-end;
        }

        .hc-filter-row + .hc-filter-row {
            margin-top: 10px;
        }

        .hc-filter-bar .hc-actions-row {
            margin-top: 12px;
            gap: 12px;
        }

        .hc-filter-bar .form-label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--hc-muted);
        }

        .hc-filter {
            min-width: 180px;
        }

        .hc-filter-search {
            flex: 1 1 50%;
            min-width: 260px;
        }

        .hc-filter-actions {
            margin-left: auto;
        }

        .hc-actions-row {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.9rem;
            color: var(--hc-muted);
        }

        .hc-actions-row .btn-primary {
            background: var(--hc-success);
            border-color: var(--hc-success);
            color: var(--hc-ink-strong);
            font-size: 0.85rem;
        }

        .hc-actions-row .btn-primary:hover,
        .hc-actions-row .btn-primary:focus {
            background: var(--hc-primary);
            border-color: var(--hc-primary);
            color: var(--hc-ink-strong);
        }

        body[data-theme="dark"] .hc-actions-row .btn-primary {
            color: #0b1024;
        }

        .hc-panel .btn-primary {
            background: var(--hc-success);
            border-color: var(--hc-success);
            color: var(--hc-ink-strong);
            font-size: 0.85rem;
        }

        .hc-panel .btn-primary:hover,
        .hc-panel .btn-primary:focus {
            background: var(--hc-primary);
            border-color: var(--hc-primary);
            color: var(--hc-ink-strong);
        }

        body[data-theme="dark"] .hc-panel .btn-primary {
            color: #0b1024;
        }

        .hc-actions-label {
            font-weight: 500;
        }

        .hc-rate-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 340px;
            gap: 18px;
        }

        .hc-rate-sidebar {
            position: sticky;
            top: 96px;
            align-self: start;
        }

        .hc-rate-summary {
            border: 1px solid var(--hc-border);
        }

        .hc-rate-summary-main {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: center;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--hc-ink);
        }

        .hc-rate-summary-item {
            padding: 6px 10px;
            border-radius: 999px;
            border: 1px solid var(--hc-border);
            background: rgba(53, 198, 191, 0.08);
        }

        .hc-rate-summary-pill {
            padding: 6px 12px;
            border-radius: 999px;
            border: 1px solid rgba(53, 198, 191, 0.6);
            background: rgba(53, 198, 191, 0.2);
            font-weight: 600;
        }

        .hc-rate-summary-sub {
            margin-top: 8px;
            font-size: 0.78rem;
            color: var(--hc-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .hc-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .hc-tag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 4px 10px;
            border-radius: 999px;
            border: 1px solid var(--hc-border);
            background: rgba(43, 142, 161, 0.2);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .hc-tag-remove {
            border: none;
            background: transparent;
            color: var(--hc-ink);
            font-weight: 700;
            line-height: 1;
            padding: 0;
            cursor: pointer;
        }

        #lanes-table {
            table-layout: fixed;
            width: 100%;
        }

        #lanes-table th,
        #lanes-table td {
            padding: 0.4rem 0.5rem;
            vertical-align: middle;
        }

        #lanes-table .code-col {
            width: 96px;
            min-width: 96px;
            max-width: 96px;
        }

        #lanes-table .rate-input {
            width: 100%;
            height: 34px;
            padding: 6px 8px;
            text-align: right;
        }

        #lanes-table .form-control,
        #lanes-table .form-select {
            width: 100%;
            display: block;
            box-sizing: border-box;
        }

        #lanes-table .form-control-sm,
        #lanes-table .form-select-sm {
            height: 34px;
            padding-top: 0.35rem;
            padding-bottom: 0.35rem;
        }

        #lanes-table th.code-col,
        #lanes-table td.code-col {
            text-align: center;
        }

        #lanes-table .origin-include-cell,
        #lanes-table .origin-subject-cell {
            min-width: 150px;
        }

        #lanes-table .hc-lane-summary {
            font-size: 0.7rem;
            color: var(--hc-muted);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 6px;
        }

        @media (max-width: 1200px) {
            .hc-rate-layout {
                grid-template-columns: 1fr;
            }
            .hc-rate-sidebar {
                position: static;
            }
        }

        .hc-action-dots {
            padding: 4px 10px;
            line-height: 1;
            font-size: 1rem;
            letter-spacing: 0;
            text-transform: none;
        }

        .hc-action-dots::after {
            display: none;
        }

        .hc-panel {
            border-radius: 16px;
            border: 1px solid var(--hc-border);
            background: var(--hc-panel);
            overflow: hidden;
        }

        .hc-panel.hc-panel-overflow {
            overflow: visible;
        }

        .flat-detail-row td {
            background: var(--hc-panel);
        }

        .flat-lane-row td {
            padding: 0;
            border-top: 1px solid var(--hc-border);
        }

        .flat-lane-row {
            cursor: pointer;
        }

        .flat-lane-row-alt td {
            background: rgba(197, 217, 226, 0.14);
        }

        body[data-theme="dark"] .flat-lane-row-alt td {
            background: rgba(25, 34, 68, 0.75);
        }

        .flat-lane-wrap {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 12px 16px;
        }

        .flat-lane-left {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .flat-lane-title {
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 600;
            color: var(--hc-ink-strong);
            letter-spacing: 0.02em;
        }

        .flat-lane-cargo {
            padding: 2px 8px;
            border-radius: 999px;
            border: 1px solid var(--hc-border);
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--hc-ink-strong);
        }

        .flat-lane-cargo-rf {
            border-color: #4aa3ff;
            background: rgba(74, 163, 255, 0.35);
            color: #bfe2ff;
        }

        .flat-lane-route {
            color: var(--hc-ink);
            font-weight: 500;
        }

        .flat-lane-rates {
            font-size: 0.85rem;
            color: var(--hc-ink);
        }

        .flat-lane-right {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 0.8rem;
            color: var(--hc-ink);
        }

        .flat-status {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--hc-ink);
        }

        .flat-status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: currentColor;
        }

        .flat-status.status-active {
            color: #2ad46a;
        }

        .flat-status.status-expiring {
            color: #f5b731;
        }

        .flat-status.status-expired {
            color: #f1736a;
        }

        .flat-sr {
            font-weight: 600;
            color: var(--hc-ink-strong);
        }

        .flat-edit-link {
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--hc-primary);
            text-decoration: none;
        }

        .flat-edit-link:hover {
            text-decoration: underline;
        }

        .flat-lane-row:hover td {
            background: rgba(197, 217, 226, 0.12);
        }

        body[data-theme="dark"] .flat-lane-row:hover td {
            background: rgba(25, 34, 68, 0.65);
        }

        .hc-share-topbar {
            background: var(--hc-panel);
            border-bottom: 1px solid var(--hc-border);
            padding: 14px 0;
        }

        .hc-share-topbar-inner {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hc-share-brand {
            font-weight: 700;
            font-size: 1rem;
            letter-spacing: 0.24em;
            text-transform: uppercase;
            color: var(--hc-ink-strong);
        }

        .hc-share-view .hc-page-title {
            font-size: 1.4rem;
        }

        .hc-share-view .hc-share-route {
            font-size: 0.85rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--hc-muted);
            margin-top: 4px;
        }

        .hc-share-view .hc-panel-header {
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;
            text-align: left;
        }

        .hc-share-view .hc-share-header-row {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 12px;
            width: 100%;
        }

        .hc-share-view .hc-share-legend {
            display: grid;
            gap: 2px;
            font-size: 0.68rem;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--hc-muted);
            text-align: left;
            align-items: start;
            justify-items: start;
            width: 100%;
        }

        .hc-share-view .hc-share-legend-key {
            color: var(--hc-ink-strong);
            font-weight: 600;
            margin-right: 6px;
        }

        .hc-share-view .hc-th-stack {
            display: grid;
            gap: 2px;
        }

        .hc-share-view .hc-th-sub {
            font-size: 0.65rem;
            letter-spacing: 0.08em;
            color: var(--hc-muted);
        }

        .hc-share-view .hc-share-table {
            font-size: 0.9rem;
        }

        .hc-share-view .hc-share-cards {
            display: none;
            margin-top: 12px;
            gap: 12px;
        }

        .hc-share-view .hc-share-card {
            border: 1px solid var(--hc-border);
            border-radius: 12px;
            padding: 12px 14px;
            background: var(--hc-panel);
            display: grid;
            gap: 10px;
        }

        .hc-share-view .hc-share-card:nth-child(even) {
            background: rgba(53, 198, 191, 0.12);
        }

        body[data-theme="light"] .hc-share-view .hc-share-card:nth-child(even) {
            background: rgba(43, 142, 161, 0.08);
        }

        .hc-share-view .hc-share-card-vessel {
            font-weight: 600;
            font-size: 0.95rem;
            letter-spacing: 0.05em;
            color: var(--hc-ink-strong);
            text-transform: uppercase;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
        }

        .hc-share-view .hc-share-card-tags {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
            margin-left: auto;
            justify-content: flex-end;
        }

        .hc-share-view .hc-share-card-tag {
            white-space: nowrap;
        }

        .hc-share-view .hc-share-tag-danger {
            color: var(--hc-ink-strong);
            border-color: rgba(242, 91, 91, 0.6);
            background: rgba(242, 91, 91, 0.2);
        }

        .hc-share-view .hc-share-tag-info {
            color: var(--hc-ink-strong);
            border-color: rgba(90, 150, 255, 0.6);
            background: rgba(90, 150, 255, 0.2);
        }

        .hc-share-view .hc-share-card-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 6px 10px;
            align-items: center;
        }

        .hc-share-view .hc-share-card-cell {
            min-width: 0;
            word-break: break-word;
        }

        .hc-share-view .hc-share-card-cell-left {
            text-align: left;
        }

        .hc-share-view .hc-share-card-cell-mid {
            text-align: center;
        }

        .hc-share-view .hc-share-card-cell-right {
            text-align: right;
        }

        .hc-share-view .hc-share-card-codes {
            font-weight: 600;
            color: var(--hc-ink-strong);
            font-size: 0.82rem;
        }

        .hc-share-view .hc-share-card-names {
            font-size: 0.72rem;
            color: var(--hc-muted);
        }

        .hc-share-view .hc-share-card-dates {
            font-weight: 600;
            font-size: 0.82rem;
        }

        .hc-share-view .hc-share-card-labels {
            font-size: 0.62rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--hc-muted);
        }

        .hc-share-view .hc-share-card-values {
            font-weight: 600;
            font-size: 0.78rem;
        }

        .hc-share-view .hc-accordion-row {
            cursor: pointer;
        }

        .hc-share-view .hc-share-card {
            cursor: pointer;
        }

        .hc-share-view .hc-port-date {
            font-size: 0.78rem;
            color: #35c6bf;
            font-weight: 700;
            margin-top: 2px;
        }

        .hc-share-view .hc-share-schedule {
            display: block;
        }

        .hc-share-view .hc-share-schedule-title {
            font-size: 0.65rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--hc-muted);
            margin-bottom: 2px;
        }

        .hc-share-view .hc-share-schedule-row {
            display: flex;
            align-items: baseline;
            gap: 4px;
            font-size: 0.78rem;
            color: var(--hc-ink-strong);
        }

        .hc-share-view .hc-share-schedule-tag {
            color: var(--hc-muted);
            font-weight: 600;
            min-width: 24px;
        }

        .hc-share-view .hc-share-schedule-planned .hc-share-schedule-tag,
        .hc-share-view .hc-share-schedule-planned .hc-share-schedule-val {
            color: var(--hc-muted);
            font-weight: 600;
        }

        .hc-share-view .hc-share-schedule-berthing .hc-share-schedule-tag,
        .hc-share-view .hc-share-schedule-berthing .hc-share-schedule-val {
            color: #2b8ea1;
            font-weight: 600;
        }

        .hc-share-view .hc-share-schedule-predictive {
            padding-top: 2px;
        }

        .hc-share-view .hc-share-schedule-predictive .hc-share-schedule-tag {
            min-width: 110px;
        }

        .hc-share-view .hc-share-schedule-doc .hc-share-schedule-tag {
            min-width: 0;
        }

        .hc-share-view .hc-share-schedule-divider {
            border-top: 1px dashed var(--hc-border);
            margin: 6px 0;
        }

        .hc-share-view .hc-share-details {
            margin-top: 6px;
            text-align: left;
        }

        .hc-share-view .hc-share-details summary {
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.68rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--hc-muted);
            list-style: none;
        }

        .hc-share-view .hc-share-details summary::-webkit-details-marker {
            display: none;
        }

        .hc-share-view .hc-share-details[open] summary {
            margin-bottom: 6px;
        }

        .hc-share-view .hc-share-details-caret {
            width: 0;
            height: 0;
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            border-top: 6px solid var(--hc-muted);
            display: inline-block;
        }

        .hc-share-view .hc-share-details[open] .hc-share-details-caret {
            transform: rotate(180deg);
        }

        .hc-share-view .hc-share-card-current {
            color: #35c6bf;
            font-weight: 700;
        }

        .hc-share-view .hc-share-disclaimer {
            margin-top: 0;
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--hc-muted);
            text-align: center;
        }

        .hc-share-view .hc-share-float {
            position: fixed;
            right: 18px;
            bottom: 18px;
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: linear-gradient(135deg, #35c6bf, #2b8ea1);
            color: #ffffff;
            display: grid;
            place-items: center;
            text-decoration: none;
            font-weight: 700;
            letter-spacing: 0.08em;
            font-size: 0.75rem;
            text-transform: uppercase;
            box-shadow: 0 12px 24px rgba(7, 14, 30, 0.35);
            border: 1px solid rgba(255, 255, 255, 0.25);
            z-index: 1050;
        }

        .hc-share-view .hc-share-float:hover,
        .hc-share-view .hc-share-float:focus {
            color: #ffffff;
            text-decoration: none;
            box-shadow: 0 14px 28px rgba(7, 14, 30, 0.45);
        }

        @media (max-width: 576px) {
            .hc-share-view .hc-share-float {
                right: 14px;
                bottom: 14px;
                width: 48px;
                height: 48px;
                font-size: 0.7rem;
            }
        }

        .hc-share-view .hc-badge-delay {
            color: var(--hc-ink-strong);
            border-color: rgba(90, 150, 255, 0.6);
            background: rgba(90, 150, 255, 0.2);
        }

        .hc-share-view .hc-share-empty {
            margin-top: 12px;
            text-align: center;
            font-size: 0.85rem;
        }

        .hc-share-view .hc-route-note,
        .hc-share-view .hc-port-name,
        .hc-share-view .hc-sync-note {
            font-size: 0.75rem;
            color: var(--hc-muted);
        }

        @media (max-width: 992px) {
            .hc-share-view .hc-panel-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .hc-share-view .hc-share-actions {
                width: 100%;
                flex-direction: column;
                align-items: stretch;
            }

            .hc-share-view .hc-share-actions .form-control {
                width: 100%;
                min-width: 0;
            }

            .hc-share-view .hc-share-actions .btn {
                width: 100%;
            }

            .hc-share-view .hc-share-table {
                display: none;
            }

            .hc-share-view .hc-share-cards {
                display: grid;
            }

            .hc-share-view .hc-accordion-row {
                cursor: pointer;
            }
        }

        .lane-board-table {
            width: 100%;
            table-layout: fixed;
        }

        .lane-board-table th:first-child,
        .lane-board-table td:first-child {
            width: 70px;
        }

        .lane-board-table .lane-rate-col {
            width: 120px;
        }

        .lane-board-table .lane-valid-col {
            width: 160px;
        }

        .lane-board-table .lane-ref-col {
            width: 110px;
        }

        .lane-board-table .lane-action-col {
            width: 80px;
        }

        .lane-rate-value {
            font-weight: 600;
        }

        .lane-delta {
            color: #f1736a;
            font-size: 0.75rem;
            margin-top: 2px;
        }

        .lane-valid-cell {
            display: flex;
            flex-direction: column;
            gap: 4px;
            align-items: flex-start;
        }

        .lane-valid-date {
            font-size: 0.75rem;
            color: var(--hc-muted);
        }

        .hc-share-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .hc-share-actions .form-control {
            min-width: 220px;
        }

        .hc-btn-whatsapp {
            background: #25d366;
            border-color: #25d366;
            color: #ffffff;
        }

        .hc-btn-whatsapp:hover,
        .hc-btn-whatsapp:focus {
            background: #1fb85a;
            border-color: #1fb85a;
            color: #ffffff;
        }

        .flat-detail-card {
            border: 1px solid var(--hc-border);
            border-radius: 12px;
            background: var(--hc-panel);
            overflow: hidden;
        }

        .flat-detail-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 16px;
            border-bottom: 1px solid var(--hc-border);
            background: rgba(0, 0, 0, 0.08);
        }

        body[data-theme="light"] .flat-detail-head {
            background: rgba(197, 217, 226, 0.2);
        }

        .flat-detail-title {
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            color: var(--hc-ink-strong);
        }

        .flat-detail-meta {
            font-size: 0.75rem;
            color: var(--hc-muted);
            white-space: nowrap;
        }

        .flat-detail-table th,
        .flat-detail-table td {
            vertical-align: middle;
            padding: 10px 12px;
        }

        .flat-detail-table thead th {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--hc-muted);
            border-bottom: 1px solid var(--hc-border);
        }

        .flat-detail-table tbody td {
            border-top: 1px solid var(--hc-border);
        }

        .flat-detail-section td {
            background: rgba(255, 255, 255, 0.04);
            color: var(--hc-muted);
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-weight: 600;
        }

        body[data-theme="light"] .flat-detail-section td {
            background: rgba(197, 217, 226, 0.25);
            color: var(--hc-ink-strong);
        }

        .flat-section-muted {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            color: var(--hc-muted);
            letter-spacing: 0.12em;
        }

        .flat-section-muted::before,
        .flat-section-muted::after {
            content: "";
            height: 1px;
            background: currentColor;
            opacity: 0.4;
            flex: 1 1 40px;
        }

        .flat-charge-cell .text-muted {
            color: var(--hc-muted);
            font-size: 0.7rem;
            letter-spacing: 0.04em;
        }

        .flat-total-row td {
            font-weight: 600;
        }

        .flat-detail-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 12px 16px 16px;
        }

        .hc-panel.hc-panel-overflow .hc-panel-body,
        .hc-panel.hc-panel-overflow .table-responsive {
            overflow: visible;
        }

        .card {
            background: var(--hc-panel);
            color: var(--hc-ink);
            border-color: var(--hc-border);
        }

        .card .table-responsive {
            overflow-x: auto;
            overflow-y: visible;
        }

        .card-header {
            background: transparent;
            border-bottom: 1px solid var(--hc-border);
            font-size: 0.82rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--hc-muted);
            font-weight: 600;
        }

        .card-footer {
            background: transparent;
            border-top: 1px solid var(--hc-border);
            color: var(--hc-muted);
        }

        .hc-page .card {
            border-radius: 16px;
            border: 1px solid var(--hc-border);
            background: var(--hc-panel);
            color: var(--hc-ink);
        }

        .hc-page .card-header {
            background: transparent;
            border-bottom: 1px solid var(--hc-border);
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--hc-muted);
            font-weight: 600;
        }

        .hc-page .card-footer {
            background: transparent;
            border-top: 1px solid var(--hc-border);
            color: var(--hc-muted);
        }

        .hc-page .list-group-item {
            background: transparent;
            color: var(--hc-ink);
            border-color: var(--hc-border);
        }

        .table {
            --bs-table-bg: transparent;
            --bs-table-color: var(--hc-ink);
            --bs-table-striped-bg: rgba(197, 217, 226, 0.18);
            --bs-table-striped-color: var(--hc-ink);
            --bs-table-border-color: var(--hc-border);
        }

        body[data-theme="dark"] .table {
            --bs-table-bg: transparent;
            --bs-table-color: var(--hc-ink);
            --bs-table-striped-bg: rgba(53, 198, 191, 0.12);
            --bs-table-striped-color: var(--hc-ink);
            --bs-table-border-color: var(--hc-border);
        }

        .table tbody tr:nth-of-type(odd),
        .hc-table tbody tr:nth-of-type(odd) {
            background-color: var(--bs-table-striped-bg);
        }

        .table th,
        .table td {
            vertical-align: middle;
            font-size: 0.9rem;
        }

        .table th {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--hc-muted);
            border-bottom: 1px solid var(--hc-border);
            padding: 12px 14px;
        }

        .table tbody td {
            color: var(--hc-ink);
            border-bottom: 1px solid var(--hc-border);
            padding: 12px 14px;
        }

        .table tbody tr:last-child td {
            border-bottom: none;
        }

        .table tbody tr:hover {
            background: rgba(197, 217, 226, 0.2);
        }

        body[data-theme="dark"] .table tbody tr:hover {
            background: rgba(53, 198, 191, 0.12);
        }

        .table .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .table .btn-sm {
            font-size: 0.82rem;
            padding-top: 0.35rem;
            padding-bottom: 0.35rem;
        }

        .hc-table-scroll {
            max-height: 420px;
            overflow: auto;
            border: 1px solid var(--hc-border);
            border-radius: 14px;
            background: rgba(15, 21, 46, 0.35);
        }

        body[data-theme="light"] .hc-table-scroll {
            background: rgba(255, 255, 255, 0.8);
        }

        .hc-table-scroll .table {
            margin-bottom: 0;
        }

        /* Clip table row backgrounds to rounded panels (Directory/Settings tables). */
        .hc-panel.hc-panel-clip {
            overflow: hidden;
        }

        .hc-panel.hc-panel-clip .table-responsive {
            border-radius: 14px;
            overflow: hidden;
        }

        /* Companies table: give a stronger gutter so row backgrounds don't touch panel edges. */
        .hc-companies-panel .hc-panel-body {
            padding: 26px;
        }

        /* Companies table: stripe/hover backgrounds should not bleed into the rounded panel edges. */
        .hc-companies-panel .table-responsive {
            background: transparent;
            /* Override global .table-responsive { overflow: visible !important; } so the table never spills outside the panel. */
            overflow-x: auto !important;
            overflow-y: visible !important;
            max-width: 100%;
        }

        /* Use cell backgrounds (not row backgrounds) so the panel padding acts as a clean gutter. */
        .hc-companies-table tbody tr {
            background: transparent !important;
        }

        .hc-companies-table tbody td {
            background: transparent;
        }

        .hc-companies-table tbody tr:nth-of-type(odd) td {
            background-color: var(--bs-table-striped-bg);
        }

        .hc-companies-table tbody tr:hover td {
            background-color: rgba(197, 217, 226, 0.2);
        }

        body[data-theme="dark"] .hc-companies-table tbody tr:hover td {
            background-color: rgba(53, 198, 191, 0.12);
        }

        .hc-companies-table tbody td:first-child {
            border-top-left-radius: 12px;
            border-bottom-left-radius: 12px;
        }

        .hc-companies-table tbody td:last-child {
            border-top-right-radius: 12px;
            border-bottom-right-radius: 12px;
        }

        .hc-companies-table th,
        .hc-companies-table td {
            white-space: nowrap;
        }

        .hc-companies-table td:nth-child(2) {
            white-space: normal;
        }

        /* Companies table: keep actions from kissing the panel edge. */
        .hc-companies-table thead th:last-child,
        .hc-companies-table tbody td:last-child {
            padding-right: 28px !important;
        }

        .hc-table-sticky thead th {
            position: sticky;
            top: 0;
            z-index: 2;
            background: var(--hc-panel);
            border-bottom: 1px solid var(--hc-border);
        }

        body[data-theme="dark"] .hc-table-sticky thead th {
            background: #0f1734;
        }

        .hc-table-sticky th:first-child,
        .hc-table-sticky td:first-child {
            position: sticky;
            left: 0;
            z-index: 1;
            background: inherit;
        }

        .hc-table-sticky thead th:first-child {
            z-index: 3;
        }

        .hc-table-clip th,
        .hc-table-clip td {
            max-width: 220px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .hc-empty-cell {
            color: var(--hc-muted);
        }

        .hc-page .btn-primary {
            background: var(--hc-success);
            border-color: var(--hc-success);
            color: var(--hc-ink-strong);
            font-size: 0.85rem;
        }

        .hc-page .btn-primary:hover,
        .hc-page .btn-primary:focus {
            background: var(--hc-primary);
            border-color: var(--hc-primary);
            color: var(--hc-ink-strong);
        }

        body[data-theme="dark"] .hc-page .btn-primary {
            color: #0b1024;
        }

        .hc-page .btn-outline-primary {
            border-color: var(--hc-secondary);
            color: var(--hc-ink);
        }

        .hc-page .btn-outline-primary:hover,
        .hc-page .btn-outline-primary:focus {
            background: var(--hc-secondary);
            border-color: var(--hc-secondary);
            color: var(--hc-ink-strong);
        }

        .hc-page .btn-outline-secondary {
            border-color: var(--hc-secondary);
            color: var(--hc-ink);
        }

        .hc-page .btn-outline-secondary:hover,
        .hc-page .btn-outline-secondary:focus {
            background: var(--hc-secondary);
            border-color: var(--hc-secondary);
            color: var(--hc-ink-strong);
        }

        body[data-theme="dark"] .hc-page .btn-outline-secondary:hover,
        body[data-theme="dark"] .hc-page .btn-outline-secondary:focus {
            background: rgba(205, 255, 249, 0.25);
            color: var(--hc-ink-strong);
        }

        .btn-danger,
        .hc-page .btn-danger,
        .hc-panel .btn-danger,
        .hc-actions-row .btn-danger {
            background: #e25555;
            border-color: #e25555;
            color: #ffffff;
        }

        .btn-danger:hover,
        .btn-danger:focus,
        .hc-page .btn-danger:hover,
        .hc-page .btn-danger:focus,
        .hc-panel .btn-danger:hover,
        .hc-panel .btn-danger:focus,
        .hc-actions-row .btn-danger:hover,
        .hc-actions-row .btn-danger:focus {
            background: #c74444;
            border-color: #c74444;
            color: #ffffff;
        }

        body[data-theme="dark"] .btn-danger,
        body[data-theme="dark"] .hc-page .btn-danger,
        body[data-theme="dark"] .hc-panel .btn-danger,
        body[data-theme="dark"] .hc-actions-row .btn-danger {
            color: #ffffff;
        }

        .btn-outline-danger,
        .hc-page .btn-outline-danger {
            border-color: #e25555;
            color: #e25555;
        }

        .btn-outline-danger:hover,
        .btn-outline-danger:focus,
        .hc-page .btn-outline-danger:hover,
        .hc-page .btn-outline-danger:focus {
            background: #e25555;
            border-color: #e25555;
            color: #ffffff;
        }

        body[data-theme="dark"] .btn-outline-danger:hover,
        body[data-theme="dark"] .btn-outline-danger:focus,
        body[data-theme="dark"] .hc-page .btn-outline-danger:hover,
        body[data-theme="dark"] .hc-page .btn-outline-danger:focus {
            color: #ffffff;
        }

        .hc-page .btn-primary,
        .hc-page .btn-secondary,
        .hc-panel .btn-primary,
        .hc-panel .btn-secondary,
        .hc-actions-row .btn-primary,
        .hc-actions-row .btn-secondary,
        .btn-primary,
        .btn-secondary {
            background: var(--hc-success);
            border-color: var(--hc-success);
            color: var(--hc-ink-strong);
        }

        .hc-page .btn-primary:hover,
        .hc-page .btn-primary:focus,
        .hc-page .btn-secondary:hover,
        .hc-page .btn-secondary:focus,
        .hc-panel .btn-primary:hover,
        .hc-panel .btn-primary:focus,
        .hc-panel .btn-secondary:hover,
        .hc-panel .btn-secondary:focus,
        .hc-actions-row .btn-primary:hover,
        .hc-actions-row .btn-primary:focus,
        .hc-actions-row .btn-secondary:hover,
        .hc-actions-row .btn-secondary:focus,
        .btn-primary:hover,
        .btn-primary:focus,
        .btn-secondary:hover,
        .btn-secondary:focus {
            background: var(--hc-primary);
            border-color: var(--hc-primary);
            color: var(--hc-ink-strong);
        }

        body[data-theme="dark"] .hc-page .btn-primary,
        body[data-theme="dark"] .hc-page .btn-secondary,
        body[data-theme="dark"] .hc-panel .btn-primary,
        body[data-theme="dark"] .hc-panel .btn-secondary,
        body[data-theme="dark"] .hc-actions-row .btn-primary,
        body[data-theme="dark"] .hc-actions-row .btn-secondary,
        body[data-theme="dark"] .btn-primary,
        body[data-theme="dark"] .btn-secondary {
            color: #0b1024;
        }

        .hc-page .btn-outline-primary,
        .hc-page .btn-outline-secondary,
        .hc-panel .btn-outline-primary,
        .hc-panel .btn-outline-secondary,
        .hc-actions-row .btn-outline-primary,
        .hc-actions-row .btn-outline-secondary,
        .btn-outline-primary,
        .btn-outline-secondary {
            background: transparent;
            border-color: var(--hc-success);
            color: var(--hc-success);
        }

        body[data-theme="light"] .hc-page .btn-outline-secondary,
        body[data-theme="light"] .hc-panel .btn-outline-secondary,
        body[data-theme="light"] .hc-actions-row .btn-outline-secondary,
        body[data-theme="light"] .btn-outline-secondary {
            color: #0f172a;
            border-color: #c5c9cd;
        }

        .hc-page .btn-outline-primary:hover,
        .hc-page .btn-outline-primary:focus,
        .hc-page .btn-outline-secondary:hover,
        .hc-page .btn-outline-secondary:focus,
        .hc-panel .btn-outline-primary:hover,
        .hc-panel .btn-outline-primary:focus,
        .hc-panel .btn-outline-secondary:hover,
        .hc-panel .btn-outline-secondary:focus,
        .hc-actions-row .btn-outline-primary:hover,
        .hc-actions-row .btn-outline-primary:focus,
        .hc-actions-row .btn-outline-secondary:hover,
        .hc-actions-row .btn-outline-secondary:focus,
        .btn-outline-primary:hover,
        .btn-outline-primary:focus,
        .btn-outline-secondary:hover,
        .btn-outline-secondary:focus {
            background: var(--hc-success);
            border-color: var(--hc-success);
            color: var(--hc-ink-strong);
        }

        .btn-hc-edit,
        .hc-page .btn-hc-edit,
        .hc-panel .btn-hc-edit {
            background: #e6edf3;
            border-color: #e6edf3;
            color: #0f172a;
        }

        .btn-hc-edit:hover,
        .btn-hc-edit:focus,
        .hc-page .btn-hc-edit:hover,
        .hc-page .btn-hc-edit:focus,
        .hc-panel .btn-hc-edit:hover,
        .hc-panel .btn-hc-edit:focus {
            background: #d6dde6;
            border-color: #d6dde6;
            color: #0f172a;
        }

        body[data-theme="dark"] .btn-hc-edit,
        body[data-theme="dark"] .hc-page .btn-hc-edit,
        body[data-theme="dark"] .hc-panel .btn-hc-edit {
            background: #dfe4ea;
            border-color: #dfe4ea;
            color: #0b1024;
        }

        body[data-theme="dark"] .btn-hc-edit:hover,
        body[data-theme="dark"] .btn-hc-edit:focus,
        body[data-theme="dark"] .hc-page .btn-hc-edit:hover,
        body[data-theme="dark"] .hc-page .btn-hc-edit:focus,
        body[data-theme="dark"] .hc-panel .btn-hc-edit:hover,
        body[data-theme="dark"] .hc-panel .btn-hc-edit:focus {
            background: #cfd6de;
            border-color: #cfd6de;
            color: #0b1024;
        }

        body[data-theme="light"] .hc-sailing-schedule .hc-row-odd > * {
            background-color: #eef3f8;
        }

        body[data-theme="light"] .hc-sailing-schedule .hc-row-even > * {
            background-color: #ffffff;
        }

        body[data-theme="dark"] .hc-sailing-schedule .hc-row-odd > * {
            background-color: rgba(10, 30, 54, 0.6);
        }

        body[data-theme="dark"] .hc-sailing-schedule .hc-row-even > * {
            background-color: rgba(16, 44, 74, 0.75);
        }

        .hc-action-btn {
            min-width: 84px;
            justify-content: center;
            font-size: 0.75rem;
        }

        .hc-action-btn,
        .hc-action-btn.btn-primary,
        .hc-action-btn.btn-secondary {
            background: #dfe4ea;
            border-color: #dfe4ea;
            color: #0b1024;
        }

        .hc-action-btn:hover,
        .hc-action-btn:focus,
        .hc-action-btn.btn-primary:hover,
        .hc-action-btn.btn-primary:focus,
        .hc-action-btn.btn-secondary:hover,
        .hc-action-btn.btn-secondary:focus {
            background: #cfd6de;
            border-color: #cfd6de;
            color: #0b1024;
        }

        .hc-table-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            flex-wrap: wrap;
        }

        .hc-table-actions .btn {
            white-space: nowrap;
        }

        .hc-page .badge.text-bg-light {
            background: rgba(197, 217, 226, 0.2) !important;
            color: var(--hc-ink-strong);
            border-color: var(--hc-border);
        }

        body[data-theme="dark"] .hc-page .badge.text-bg-light {
            background: rgba(15, 23, 52, 0.7) !important;
            color: var(--hc-ink);
        }

        .hc-page .badge.text-bg-primary {
            background: var(--hc-primary) !important;
            color: var(--hc-ink-strong);
        }

        .hc-panel-space {
            margin-top: 16px;
        }

        .hc-panel + .hc-panel {
            margin-top: 16px;
        }

        .hc-settings-grid .col-12.col-lg-9 > .hc-panel-space:first-child,
        .hc-settings-grid .col-12.col-lg-9 > .hc-panel:first-child {
            margin-top: 0;
        }

        .hc-panel-header {
            padding: 12px 16px;
            border-bottom: 1px solid var(--hc-border);
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--hc-muted);
            font-weight: 600;
        }

        .hc-panel-header-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .hc-icon-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            border-radius: 999px;
            border: 1px solid var(--hc-border);
            background: transparent;
            color: var(--hc-ink);
            padding: 0;
            transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
        }

        .hc-icon-btn svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

        .hc-icon-btn:hover {
            border-color: rgba(96, 220, 212, 0.6);
            background: rgba(96, 220, 212, 0.12);
            color: var(--hc-ink-strong);
        }

        .hc-panel-body {
            padding: 16px;
        }

        .hc-enquiry .hc-enquiry-unit {
            min-width: 72px;
        }

        .hc-enquiry .hc-enquiry-x {
            padding: 0 10px;
            line-height: 1.2;
            white-space: nowrap;
        }

        .hc-panel .table-responsive,
        .hc-page .table-responsive,
        .card .table-responsive,
        .table-responsive {
            background: var(--hc-panel);
            overflow: visible !important;
            max-height: none !important;
        }

        .hc-page .table-responsive .dropdown-menu {
            max-height: 240px;
            overflow-y: auto;
        }

        .hc-table {
            margin: 0;
            --bs-table-bg: transparent;
            --bs-table-color: var(--hc-ink);
            --bs-table-striped-bg: rgba(197, 217, 226, 0.18);
            --bs-table-striped-color: var(--hc-ink);
        }

        .hc-table thead th {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--hc-muted);
            border-bottom: 1px solid var(--hc-border);
            padding: 12px 14px;
        }

        .hc-table tbody td {
            color: var(--hc-ink);
            border-bottom: 1px solid var(--hc-border);
            padding: 12px 14px;
            vertical-align: middle;
        }

        .hc-table.table-sm thead th,
        .hc-table.table-sm tbody td {
            padding: 8px 10px;
            font-size: 0.82rem;
        }

        .hc-page .form-control,
        .hc-page .form-select,
        .hc-page .btn,
        .hc-page .hc-actions-row,
        .hc-page .hc-actions-legend,
        .hc-page .hc-table tbody td {
            font-size: 0.9rem;
        }

        .hc-page .hc-actions-legend {
            font-size: 0.8rem;
        }

        .hc-table > :not(caption) > * > * {
            background-color: transparent;
        }

        .hc-table tbody tr:last-child td {
            border-bottom: none;
        }

        .hc-table tbody tr:hover {
            background: rgba(197, 217, 226, 0.2);
        }

        body[data-theme="dark"] .hc-table tbody tr:hover {
            background: rgba(53, 198, 191, 0.12);
        }

        body[data-theme="dark"] .hc-table {
            --bs-table-bg: transparent;
            --bs-table-color: var(--hc-ink);
            --bs-table-striped-bg: rgba(53, 198, 191, 0.12);
            --bs-table-striped-color: var(--hc-ink);
        }

        .hc-link {
            color: var(--hc-ink-strong);
            text-decoration: none;
        }

        .hc-link:hover {
            text-decoration: underline;
        }

        .hc-route-note {
            color: var(--hc-muted);
        }

        body[data-theme="dark"] .hc-route-note {
            color: rgba(216, 228, 255, 0.9);
        }

        body[data-theme="dark"] .hc-edit-schedule .card-header {
            color: var(--hc-ink-strong);
        }

        body[data-theme="dark"] .hc-edit-schedule .text-muted {
            color: rgba(182, 198, 230, 0.85) !important;
        }

        .deploy-card .seq-cell {
            color: var(--hc-ink-strong);
        }

        .hc-edit-schedule .table th,
        .hc-edit-schedule .table td,
        .hc-edit-schedule .form-control,
        .hc-edit-schedule .form-select {
            font-size: 0.8rem;
        }

        .hc-edit-schedule .table th,
        .hc-edit-schedule .table td {
            padding: 8px 10px;
        }

        .hc-edit-schedule .card-body {
            padding: 14px;
        }

        .hc-edit-schedule .hc-live-updates th,
        .hc-edit-schedule .hc-live-updates td {
            text-align: center;
            vertical-align: middle;
        }

        .hc-edit-schedule .hc-live-updates td:first-child,
        .hc-edit-schedule .hc-live-updates td:nth-child(2) {
            text-align: left;
        }

        .hc-status-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 4px 10px;
            border-radius: 999px;
            border: 1px solid var(--hc-border);
            background: var(--hc-status-bg);
            font-size: 0.7rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .hc-status-pill-compact {
            padding: 3px 8px;
            font-size: 0.65rem;
        }

        .hc-status-pill .hc-status-dot {
            width: 6px;
            height: 6px;
            box-shadow: 0 0 0 3px rgba(42, 212, 106, 0.25), 0 0 10px rgba(42, 212, 106, 0.5);
        }

        .hc-status-ok {
            color: var(--hc-ink-strong);
            border-color: rgba(42, 212, 106, 0.5);
            background: rgba(42, 212, 106, 0.12);
        }

        .hc-status-muted {
            color: var(--hc-muted);
            border-color: rgba(179, 181, 187, 0.4);
        }

        .hc-status-muted .hc-status-dot {
            background: #8b929a;
            box-shadow: 0 0 0 3px rgba(139, 146, 154, 0.2);
        }

        @media (max-width: 768px) {
            .hc-status-pill {
                padding: 4px 6px;
            }

            .hc-status-pill .hc-status-text {
                display: none;
            }
        }

.hc-status-unknown {
            color: var(--hc-muted);
        }

        .uc-hero {
            border-radius: 18px;
            border: 1px solid var(--hc-border);
            background: var(--hc-panel);
            padding: 18px 22px;
            box-shadow: 0 12px 28px rgba(8, 15, 32, 0.18);
        }

        .uc-hero-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
        }

        .uc-title {
            font-size: 1.1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--hc-ink-strong);
        }

        .uc-subtitle {
            font-size: 0.85rem;
            color: var(--hc-muted);
            margin-top: 6px;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        .uc-metrics {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 14px;
        }

        .uc-metric {
            padding: 8px 12px;
            border-radius: 12px;
            border: 1px solid var(--hc-border);
            background: rgba(255, 255, 255, 0.02);
            font-size: 0.85rem;
            color: var(--hc-muted);
            display: inline-flex;
            gap: 6px;
            align-items: center;
        }

        .uc-metric strong {
            color: var(--hc-ink-strong);
            font-weight: 600;
        }

        .uc-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 14px;
        }

        .uc-security-card .card-body {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .uc-security-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            font-size: 0.88rem;
            color: var(--hc-muted);
        }

        .uc-security-value {
            font-weight: 600;
            color: var(--hc-ink-strong);
        }

        .uc-security-muted {
            color: var(--hc-muted);
            font-weight: 500;
        }

        .uc-security-warn {
            color: #f5b731;
        }

        .uc-security-ok {
            color: #2ad46a;
            font-weight: 600;
        }

        .uc-table .dropdown-menu {
            min-width: 180px;
        }

        .uc-status {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .uc-status-active {
            color: #2ad46a;
        }

        .uc-status-pending {
            color: #f5b731;
        }

        .uc-status-suspended {
            color: #f25b5b;
        }

        .uc-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin-top: 12px;
            font-size: 0.82rem;
            color: var(--hc-muted);
        }

        .hc-idle-modal .modal-content {
            background: rgba(10, 16, 36, 0.98);
            color: var(--hc-ink);
            border: 1px solid var(--hc-border);
            box-shadow: 0 20px 50px rgba(8, 15, 32, 0.35);
        }

        .hc-idle-modal .modal-header,
        .hc-idle-modal .modal-footer {
            border-color: var(--hc-border);
        }

        body[data-theme="light"] .hc-idle-modal .modal-content {
            background: #ffffff;
            color: var(--hc-light-ink);
        }

        .hc-actions-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 0.85rem;
            color: var(--hc-muted);
        }

        .hc-actions-legend span {
            padding: 2px 8px;
            border-radius: 999px;
            border: 1px solid var(--hc-border);
        }

        .hc-panel .dropdown-menu {
            border-color: var(--hc-border);
        }

        body[data-theme="dark"] .hc-panel .dropdown-menu {
            background: rgba(15, 21, 46, 0.95);
        }

        body[data-theme="dark"] .hc-panel .dropdown-item {
            color: var(--hc-ink);
        }

        body[data-theme="dark"] .hc-panel .dropdown-item:hover,
        body[data-theme="dark"] .hc-panel .dropdown-item:focus {
            background: rgba(53, 198, 191, 0.18);
            color: var(--hc-ink-strong);
        }

        body[data-theme="dark"] .dropdown-menu {
            background: rgba(15, 21, 46, 0.98);
            border-color: var(--hc-border);
        }

        body[data-theme="dark"] .dropdown-menu .dropdown-item {
            color: var(--hc-ink);
        }

        body[data-theme="dark"] .dropdown-menu .dropdown-item:hover,
        body[data-theme="dark"] .dropdown-menu .dropdown-item:focus {
            background: rgba(53, 198, 191, 0.18);
            color: var(--hc-ink-strong);
        }

        body[data-theme="dark"] .form-control,
        body[data-theme="dark"] .form-select {
            background: rgba(15, 21, 46, 0.88);
            color: var(--hc-ink);
            border-color: var(--hc-border);
        }

        body[data-theme="dark"] .form-control::placeholder {
            color: rgba(216, 228, 255, 0.6);
        }

        body[data-theme="dark"] .form-select:disabled {
            background: rgba(15, 23, 52, 0.6);
        }

        @media (max-width: 992px) {
            .hc-panel .table-responsive {
                overflow-x: auto;
                overflow-y: visible;
            }
            .hc-filter-actions {
                margin-left: 0;
            }
            .hc-filter-search {
                flex-basis: 100%;
                min-width: 100%;
            }
        }

        input[type="text"]:not([data-no-upper="1"]),
        input[type="search"]:not([data-no-upper="1"]),
        input[type="tel"]:not([data-no-upper="1"]),
        input[type="url"]:not([data-no-upper="1"]),
        textarea:not([data-no-upper="1"]),
        select:not([data-no-upper="1"]) {
            text-transform: uppercase;
        }

        [data-no-upper="1"] input[type="text"],
        [data-no-upper="1"] input[type="search"],
        [data-no-upper="1"] input[type="tel"],
        [data-no-upper="1"] input[type="url"],
        [data-no-upper="1"] textarea,
        [data-no-upper="1"] select {
            text-transform: none;
        }

        .port-combobox {
            position: relative;
        }

        .port-combobox-menu {
            position: absolute;
            top: calc(100% + 2px);
            left: 0;
            right: 0;
            z-index: 1050;
            max-height: 240px;
            overflow-y: auto;
            display: none;
            background: #fff;
            border: 1px solid rgba(0, 0, 0, 0.15);
            border-radius: 0.25rem;
        }

        .port-combobox-menu .list-group-item {
            cursor: pointer;
        }

        body[data-theme="dark"] .port-combobox-menu {
            background: rgba(15, 23, 52, 0.98);
            border-color: var(--hc-border);
            color: var(--hc-ink);
        }

        body[data-theme="dark"] .port-combobox-menu .list-group-item {
            background: transparent;
            color: var(--hc-ink);
            border-color: var(--hc-border);
        }

        body[data-theme="dark"] .port-combobox-menu .list-group-item:hover,
        body[data-theme="dark"] .port-combobox-menu .list-group-item:focus,
        body[data-theme="dark"] .port-combobox-menu .list-group-item-action.active {
            background: rgba(53, 198, 191, 0.18);
            color: var(--hc-ink-strong);
        }

        .hc-auth-main {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 48px 20px;
            background: radial-gradient(circle at top left, rgba(53, 198, 191, 0.35), transparent 45%),
                radial-gradient(circle at bottom right, rgba(43, 142, 161, 0.35), transparent 50%),
                #0f152e;
        }

        body[data-theme="light"] .hc-auth-main {
            background: radial-gradient(circle at top left, rgba(53, 198, 191, 0.25), transparent 45%),
                radial-gradient(circle at bottom right, rgba(43, 142, 161, 0.2), transparent 50%),
                #f3f7fb;
        }

        .hc-auth {
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .hc-auth-expired {
            position: relative;
        }

        .hc-expired-modal .modal-content {
            border-radius: 18px;
            border: 1px solid rgba(15, 23, 42, 0.12);
            box-shadow: 0 20px 50px rgba(7, 14, 30, 0.25);
            background: #ffffff;
            color: #1f2a3a;
        }

        .hc-expired-modal .modal-title {
            font-weight: 700;
        }

        .hc-auth-expired .modal-backdrop {
            opacity: 0.35;
        }

        .hc-login-card {
            display: grid;
            grid-template-columns: 1.05fr 0.95fr;
            width: min(920px, 100%);
            border-radius: 24px;
            overflow: hidden;
            background: #ffffff;
            border: 1px solid rgba(15, 23, 42, 0.08);
            box-shadow: 0 20px 50px rgba(7, 14, 30, 0.25);
        }

        .hc-login-left {
            padding: 42px;
            background: #ffffff;
            color: #1f2a3a;
        }

        .hc-login-title {
            font-size: 1.4rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            margin-bottom: 6px;
        }

        .hc-login-sub {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #7b8794;
        }

        .hc-login-form {
            margin-top: 24px;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .hc-login-field {
            display: flex;
            flex-direction: column;
        }

        .hc-login-input {
            border-radius: 999px;
            background: #ffffff;
            border: 1px solid #cfd6df;
            padding: 10px 18px;
            font-size: 0.95rem;
            color: #6b7280;
            box-shadow: none;
        }

        .hc-login-input:focus {
            background: #ffffff;
            border-color: #35c6bf;
            box-shadow: 0 0 0 0.12rem rgba(53, 198, 191, 0.25);
        }

        .hc-login-input::placeholder {
            color: #9aa3af;
        }

        body[data-theme="dark"] .hc-auth-main .hc-login-input {
            background: #ffffff;
            border-color: #cfd6df;
            color: #6b7280;
        }

        body[data-theme="dark"] .hc-auth-main .hc-login-input::placeholder {
            color: #9aa3af;
        }

        .hc-otp {
            display: flex;
            gap: 10px;
            flex-wrap: nowrap;
        }

        .hc-otp-input {
            width: 48px;
            height: 48px;
            text-align: center;
            border-radius: 12px;
            border: 1px solid #cfd6df;
            background: #ffffff;
            color: #6b7280;
            font-size: 1.05rem;
            font-weight: 600;
            padding: 0;
        }

        .hc-otp-input:focus {
            outline: none;
            border-color: #35c6bf;
            box-shadow: 0 0 0 0.12rem rgba(53, 198, 191, 0.25);
        }

        @media (max-width: 600px) {
            .hc-otp {
                gap: 6px;
            }
            .hc-otp-input {
                width: 40px;
                height: 42px;
                font-size: 0.95rem;
            }
        }

        .hc-login-options {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            font-size: 0.78rem;
            color: #7b8794;
            margin-top: 4px;
        }

        .hc-login-remember {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .hc-login-forgot {
            font-weight: 500;
        }

        .hc-login-btn {
            border-radius: 999px;
            padding: 10px 18px;
            border: none;
            background: linear-gradient(135deg, #35c6bf, #2b8ea1);
            color: #ffffff;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .hc-login-btn:hover,
        .hc-login-btn:focus {
            background: linear-gradient(135deg, #2fb9b2, #237f8f);
            color: #ffffff;
        }

        .hc-login-btn:focus {
            box-shadow: 0 0 0 0.12rem rgba(53, 198, 191, 0.25);
        }

        .btn:focus,
        .btn:focus-visible {
            border-color: #35c6bf;
            box-shadow: 0 0 0 0.12rem rgba(53, 198, 191, 0.25);
        }

        .hc-login-right {
            position: relative;
            padding: 44px 40px;
            color: #ffffff;
            background: linear-gradient(160deg, #35c6bf, #2b8ea1);
            overflow: hidden;
        }

        .hc-login-right::before,
        .hc-login-right::after {
            content: "";
            position: absolute;
            border-radius: 999px;
            opacity: 0.35;
            background: rgba(255, 255, 255, 0.25);
        }

        .hc-login-right::before {
            width: 180px;
            height: 180px;
            top: -40px;
            right: -60px;
        }

        .hc-login-right::after {
            width: 240px;
            height: 240px;
            bottom: -90px;
            left: -80px;
        }

        .hc-login-right-inner {
            position: relative;
            z-index: 1;
        }

        .hc-login-hero {
            font-size: 2rem;
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 16px;
        }

        .hc-login-right p {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.85);
            margin-bottom: 22px;
        }

        .hc-login-cta {
            border-radius: 999px;
            padding: 9px 18px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-size: 0.8rem;
        }

        .hc-login-otp-label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #7b8794;
            margin-bottom: 8px;
        }

        .hc-login-divider {
            height: 1px;
            background: #e6ebf2;
            margin: 14px 0;
        }

        .hc-alert-info {
            background-color: #74ccc8;
            border-color: #74ccc8;
            color: #ffffff;
        }

        .hc-mfa-right-block {
            margin: 18px 0 22px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .hc-mfa-qr {
            width: 170px;
            height: 170px;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.18);
            display: grid;
            place-items: center;
            padding: 10px;
        }

        .hc-mfa-qr img {
            width: 100%;
            height: 100%;
            border-radius: 10px;
            background: #ffffff;
            padding: 6px;
        }

        .hc-mfa-label {
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(255, 255, 255, 0.75);
            margin-bottom: 4px;
        }

        .hc-mfa-key {
            font-size: 0.95rem;
            font-weight: 600;
            letter-spacing: 0.06em;
            word-break: break-all;
        }

        @media (max-width: 900px) {
            .hc-login-card {
                grid-template-columns: 1fr;
            }
            .hc-login-right {
                order: -1;
                text-align: left;
            }
        }

        .hc-onboarding {
            max-width: 980px;
            margin: 32px auto;
            padding: 0 20px 40px;
        }

        .hc-onboarding-hero {
            background: linear-gradient(135deg, rgba(21, 46, 74, 0.9), rgba(12, 26, 48, 0.95));
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            padding: 28px;
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
            margin-bottom: 24px;
        }

        .hc-onboarding-brand {
            font-size: 0.7rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.6);
        }

        .hc-onboarding-title {
            font-size: 2rem;
            margin: 8px 0 6px;
        }

        .hc-onboarding-sub {
            color: rgba(255, 255, 255, 0.72);
        }

        .hc-onboarding-stepper {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
            margin-top: 20px;
        }

        .hc-onboard-step {
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            padding: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: rgba(255, 255, 255, 0.6);
            background: rgba(8, 18, 34, 0.6);
        }

        .hc-onboard-step-number {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            font-weight: 700;
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
        }

        .hc-onboard-step.is-active {
            border-color: rgba(53, 198, 191, 0.8);
            color: #ffffff;
            background: rgba(10, 42, 54, 0.8);
        }

        .hc-onboard-step.is-active .hc-onboard-step-number {
            background: rgba(53, 198, 191, 0.3);
            color: #ffffff;
        }

        .hc-onboard-step.is-complete {
            border-color: rgba(43, 142, 161, 0.8);
            color: rgba(255, 255, 255, 0.85);
        }

        .hc-onboarding-panel {
            border-radius: 20px;
        }

        .hc-onboarding-step {
            display: none;
        }

        .hc-onboarding-step-title {
            font-size: 1.25rem;
            margin-bottom: 16px;
        }

        .hc-onboarding-card {
            background: rgba(12, 26, 48, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            padding: 18px;
            height: 100%;
        }

        .hc-onboarding-card-title {
            font-weight: 600;
            margin-bottom: 12px;
        }

        .hc-onboarding-tos {
            background: rgba(12, 26, 48, 0.8);
            border: 1px dashed rgba(255, 255, 255, 0.18);
            border-radius: 14px;
            padding: 16px;
            max-height: 220px;
            overflow-y: auto;
            color: rgba(255, 255, 255, 0.7);
        }

        .hc-onboarding-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 22px;
        }

        body.hc-share-onboarding .hc-onboarding-hero {
            background: linear-gradient(135deg, #eef4fb, #ffffff 70%);
            border: 1px solid #dbe3ea;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
            color: #0f172a;
        }

        body.hc-share-onboarding .hc-onboarding-brand {
            color: rgba(15, 23, 42, 0.55);
        }

        body.hc-share-onboarding .hc-onboarding-sub {
            color: rgba(15, 23, 42, 0.65);
        }

        body.hc-share-onboarding .hc-onboard-step {
            background: #ffffff;
            border-color: #e2e8f0;
            color: #475569;
        }

        body.hc-share-onboarding .hc-onboard-step-number {
            background: #e2e8f0;
            color: #334155;
        }

        body.hc-share-onboarding .hc-onboard-step.is-active {
            background: #e9f7f7;
            border-color: #35c6bf;
            color: #0f172a;
        }

        body.hc-share-onboarding .hc-onboard-step.is-active .hc-onboard-step-number {
            background: rgba(53, 198, 191, 0.25);
            color: #0f172a;
        }

        body.hc-share-onboarding .hc-onboard-step.is-complete {
            border-color: #cbd5e1;
            color: #334155;
        }

        body.hc-share-onboarding .hc-onboarding-card {
            background: #ffffff;
            border-color: #e2e8f0;
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
        }

        body.hc-share-onboarding .hc-onboarding-tos {
            background: #f8fafc;
            border-color: #cbd5e1;
            color: #475569;
        }

        body.hc-share-onboarding .hc-onboard-note {
            color: #9aa3b2;
        }

        @media (max-width: 900px) {
            .hc-onboarding {
                margin-top: 20px;
            }
            .hc-onboarding-stepper {
                grid-template-columns: 1fr;
            }
        }

        .hc-entity-dashboard {
            display: grid;
            gap: 20px;
        }

        @media (min-width: 1200px) {
            .hc-entity-dashboard {
                grid-template-columns: 1.5fr 1fr;
                align-items: stretch;
            }

            .hc-entity-side {
                display: contents;
            }

            .hc-entity-attention {
                grid-column: 2;
            }
        }

        .hc-client-profile {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .hc-client-hero {
            position: relative;
            overflow: hidden;
            padding: 18px 20px;
            background: linear-gradient(135deg, rgba(197, 217, 226, 0.22), rgba(205, 255, 249, 0.18));
        }

        body[data-theme="dark"] .hc-client-hero {
            background: linear-gradient(135deg, rgba(53, 198, 191, 0.18), rgba(43, 142, 161, 0.12));
        }

        .hc-client-hero::after {
            content: "";
            position: absolute;
            inset: -30% -20% auto auto;
            width: 280px;
            height: 280px;
            background: radial-gradient(circle, rgba(53, 198, 191, 0.18), transparent 70%);
            pointer-events: none;
        }

        .hc-client-hero-top {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            position: relative;
            z-index: 1;
        }

        .hc-client-identity {
            display: flex;
            align-items: center;
            gap: 14px;
            flex: 1 1 420px;
            min-width: 0;
        }

        .hc-client-logo {
            width: 56px;
            height: 56px;
            border-radius: 18px;
            display: grid;
            place-items: center;
            background: linear-gradient(135deg, #0b1f3b, #102a4f);
            color: #fff;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            box-shadow: 0 12px 30px rgba(11, 31, 59, 0.28);
        }

        .hc-client-kicker {
            font-size: 0.7rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--hc-muted);
        }

        .hc-client-name {
            font-size: 1.7rem;
            font-weight: 600;
            color: var(--hc-ink-strong);
            max-width: 100%;
            overflow-wrap: anywhere;
        }

        .hc-client-uen {
            font-size: 0.8rem;
            color: var(--hc-muted);
            letter-spacing: 0.08em;
            text-transform: uppercase;
            margin-top: 4px;
        }

        .hc-client-address {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
            font-size: 0.72rem;
            color: var(--hc-muted);
        }

        .hc-client-address-label {
            text-transform: uppercase;
            letter-spacing: 0.14em;
            font-size: 0.6rem;
        }

        .hc-client-address-value {
            color: var(--hc-ink-strong);
            font-weight: 500;
            letter-spacing: 0.04em;
            text-transform: none;
            overflow-wrap: anywhere;
        }

        .hc-client-copy {
            border: 1px solid rgba(90, 150, 255, 0.4);
            background: rgba(90, 150, 255, 0.1);
            color: var(--hc-ink-strong);
            font-size: 0.6rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            padding: 2px 8px;
            border-radius: 999px;
            cursor: pointer;
        }

        .hc-client-copy:hover {
            border-color: rgba(90, 150, 255, 0.7);
            background: rgba(90, 150, 255, 0.2);
        }

        .hc-client-dates {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 6px;
            font-size: 0.62rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--hc-muted);
        }

        .hc-client-dates strong {
            font-weight: 600;
            color: var(--hc-ink-strong);
            letter-spacing: 0.06em;
        }

        .hc-client-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-left: auto;
            justify-content: flex-end;
            max-width: 100%;
        }

        .hc-client-badges .hc-status {
            white-space: nowrap;
        }

        .hc-status-danger-solid {
            background: rgba(242, 91, 91, 0.16);
            border-color: rgba(242, 91, 91, 0.6);
            color: #f25b5b;
        }

        body[data-theme="dark"] .hc-status-danger-solid {
            background: rgba(242, 91, 91, 0.2);
            border-color: rgba(242, 91, 91, 0.7);
            color: #ff9a9a;
        }

        .hc-client-meta-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 12px;
            margin-top: 16px;
            position: relative;
            z-index: 1;
        }

        .hc-client-meta-item span {
            display: block;
            font-size: 0.68rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--hc-muted);
        }

        .hc-client-meta-item strong {
            display: block;
            margin-top: 4px;
            font-size: 0.9rem;
            color: var(--hc-ink-strong);
        }

        .hc-client-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 14px;
            position: relative;
            z-index: 1;
        }

        .hc-client-grid,
        .hc-client-triple-grid {
            display: grid;
            gap: 18px;
            align-items: stretch;
        }

        .hc-client-grid > .hc-panel {
            height: 100%;
        }

        @media (min-width: 1200px) {
            .hc-client-grid {
                grid-template-columns: 1.4fr 1fr;
            }

            .hc-client-triple-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        .hc-client-info-grid {
            display: grid;
            gap: 8px;
        }

        .hc-client-info-row {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            padding: 6px 0;
            border-bottom: 1px dashed var(--hc-border);
            font-size: 0.86rem;
        }

        .hc-client-info-row span {
            color: var(--hc-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-size: 0.7rem;
        }

        .hc-client-info-row strong {
            color: var(--hc-ink-strong);
            font-weight: 600;
            text-align: right;
        }

        .hc-client-info-row:last-child {
            border-bottom: none;
        }

        .hc-client-note {
            margin-top: 14px;
            font-size: 0.82rem;
            color: var(--hc-muted);
            display: flex;
            gap: 8px;
            align-items: baseline;
        }

        .hc-client-note strong {
            color: var(--hc-ink-strong);
            font-weight: 500;
        }

        .hc-client-readiness-block {
            margin-bottom: 14px;
        }

        .hc-client-readiness-title {
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--hc-muted);
            margin-bottom: 6px;
        }

        .hc-client-readiness-value {
            font-size: 1.4rem;
            font-weight: 600;
            color: var(--hc-ink-strong);
        }

        .hc-client-readiness-sub {
            font-size: 0.75rem;
            color: var(--hc-muted);
            margin-top: 6px;
        }

        .hc-client-readiness-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 12px;
        }

        .hc-client-readiness-card {
            border: 1px solid var(--hc-border);
            border-radius: 12px;
            padding: 12px;
            background: rgba(255, 255, 255, 0.6);
        }

        body[data-theme="dark"] .hc-client-readiness-card {
            background: rgba(13, 20, 43, 0.55);
        }

        .hc-client-readiness-alerts {
            margin-top: 16px;
        }

        .hc-client-inline-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
        }

        .hc-client-snapshot {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
        }

        .hc-client-snapshot-item {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            padding: 6px 0;
            border-bottom: 1px dashed var(--hc-border);
            font-size: 0.85rem;
        }

        .hc-client-snapshot-item span {
            color: var(--hc-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-size: 0.7rem;
        }

        .hc-client-snapshot-item strong {
            color: var(--hc-ink-strong);
            font-weight: 600;
        }

        .hc-client-action-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 8px;
        }

        .hc-client-action-link {
            display: inline-flex;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 10px;
            border: 1px solid var(--hc-border);
            background: rgba(255, 255, 255, 0.6);
            color: var(--hc-ink-strong);
            font-size: 0.85rem;
            text-align: left;
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease;
        }

        body[data-theme="dark"] .hc-client-action-link {
            background: rgba(13, 20, 43, 0.55);
        }

        .hc-client-action-link:hover {
            border-color: rgba(53, 198, 191, 0.5);
            background: rgba(53, 198, 191, 0.12);
        }

        .hc-client-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .hc-client-tab {
            border: 1px solid var(--hc-border);
            border-radius: 999px;
            padding: 6px 12px;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--hc-ink-strong);
            text-decoration: none;
            background: rgba(255, 255, 255, 0.6);
            transition: border-color 0.2s ease, background 0.2s ease;
        }

        body[data-theme="dark"] .hc-client-tab {
            background: rgba(13, 20, 43, 0.55);
        }

        .hc-client-tab:hover {
            border-color: rgba(53, 198, 191, 0.5);
            background: rgba(53, 198, 191, 0.12);
        }

        .hc-client-section {
            scroll-margin-top: 120px;
        }

        .hc-client-overview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
        }

        .hc-client-overview-card {
            border: 1px solid var(--hc-border);
            border-radius: 12px;
            padding: 12px;
        }

        .hc-client-overview-title {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--hc-muted);
        }

        .hc-client-overview-value {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--hc-ink-strong);
            margin-top: 6px;
        }

        .hc-client-overview-sub {
            font-size: 0.75rem;
            color: var(--hc-muted);
            margin-top: 6px;
        }

        .hc-client-billing-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 10px;
            margin-bottom: 16px;
            font-size: 0.85rem;
            color: var(--hc-muted);
        }

        .hc-client-billing-summary strong {
            color: var(--hc-ink-strong);
        }

        .hc-client-timeline {
            margin-top: 12px;
        }

        .hc-client-timeline-date {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--hc-muted);
            margin-bottom: 6px;
        }

        .hc-client-timeline-list {
            list-style: none;
            padding-left: 0;
            margin: 0 0 16px 0;
            display: grid;
            gap: 6px;
            font-size: 0.85rem;
        }

        .hc-client-timeline-list li {
            padding-left: 14px;
            position: relative;
        }

        .hc-client-timeline-list li::before {
            content: \"•\";
            position: absolute;
            left: 0;
            color: var(--hc-muted);
        }

        .hc-entity-hero {
            padding: 18px;
            background: linear-gradient(135deg, rgba(197, 217, 226, 0.22), rgba(205, 255, 249, 0.16));
            position: relative;
            overflow: hidden;
        }

        body[data-theme="dark"] .hc-entity-hero {
            background: linear-gradient(135deg, rgba(53, 198, 191, 0.18), rgba(43, 142, 161, 0.08));
        }

        .hc-entity-hero::after {
            content: "";
            position: absolute;
            top: -40%;
            right: -20%;
            width: 240px;
            height: 240px;
            background: radial-gradient(circle, rgba(53, 198, 191, 0.18), transparent 70%);
            pointer-events: none;
        }

        .hc-entity-hero-head {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            position: relative;
            z-index: 1;
        }

        .hc-entity-kicker {
            font-size: 0.7rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--hc-muted);
        }

        .hc-entity-title-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 12px;
            margin-top: 6px;
        }

        .hc-entity-meta {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .hc-entity-name {
            font-size: 1.6rem;
            font-weight: 600;
            margin: 0;
            color: var(--hc-ink-strong);
        }

        .hc-entity-sub {
            font-size: 0.82rem;
            color: var(--hc-muted);
            margin-top: 6px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .hc-entity-uen-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--hc-muted);
        }

        .hc-entity-uen-row .hc-entity-uen-value {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--hc-ink-strong);
            text-transform: none;
            letter-spacing: 0.04em;
        }

        .hc-entity-address-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
            font-size: 0.86rem;
            color: var(--hc-muted);
        }

        .hc-entity-address-row .hc-entity-address-text {
            color: var(--hc-ink-strong);
            font-weight: 500;
        }

        .hc-entity-timestamp-row {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--hc-muted);
        }

        .hc-entity-copy-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            border-radius: 10px;
            border: 1px solid var(--hc-border);
            background: rgba(255, 255, 255, 0.4);
            color: var(--hc-ink-strong);
            padding: 0;
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
        }

        body[data-theme="dark"] .hc-entity-copy-btn {
            background: rgba(7, 14, 32, 0.4);
        }

        .hc-entity-copy-btn:hover,
        .hc-entity-copy-btn:focus {
            border-color: rgba(53, 198, 191, 0.5);
            background: rgba(53, 198, 191, 0.12);
            color: var(--hc-ink-strong);
        }

        .hc-entity-copy-btn svg {
            width: 16px;
            height: 16px;
        }

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

        .hc-entity-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .hc-entity-hero-grid {
            margin-top: 18px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            position: relative;
            z-index: 1;
        }

        .hc-entity-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--hc-muted);
            margin-bottom: 6px;
        }

        .hc-entity-value {
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--hc-ink-strong);
        }

        .hc-entity-side {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .hc-entity-metric-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
        }

        .hc-entity-metric {
            border: 1px solid var(--hc-border);
            border-radius: 14px;
            padding: 12px;
            background: rgba(255, 255, 255, 0.6);
        }

        body[data-theme="dark"] .hc-entity-metric {
            background: rgba(13, 20, 43, 0.6);
        }

        .hc-entity-metric-title {
            font-size: 0.72rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--hc-muted);
            margin-bottom: 8px;
        }

        .hc-entity-metric-value {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--hc-ink-strong);
        }

        .hc-entity-metric-sub {
            font-size: 0.75rem;
            color: var(--hc-muted);
            margin-top: 6px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .hc-progress {
            height: 6px;
            border-radius: 999px;
            background: rgba(197, 217, 226, 0.4);
            overflow: hidden;
            margin-top: 8px;
        }

        body[data-theme="dark"] .hc-progress {
            background: rgba(53, 198, 191, 0.12);
        }

        .hc-progress span {
            display: block;
            height: 100%;
            width: 0;
            background: linear-gradient(90deg, #35c6bf, #1db8ff);
            transition: width 0.3s ease;
        }

        .hc-entity-card {
            border: 1px solid var(--hc-border);
            border-radius: 16px;
            padding: 16px;
            background: var(--hc-panel);
            box-shadow: 0 12px 24px rgba(8, 15, 32, 0.08);
        }

        .hc-entity-card-title {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--hc-muted);
            margin-bottom: 12px;
        }

        .hc-entity-sticky {
            position: sticky;
            top: 120px;
        }

        .hc-entity-score {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .hc-entity-score-value {
            font-size: 1.6rem;
            font-weight: 600;
            color: var(--hc-ink-strong);
        }

        .hc-entity-score-sub {
            font-size: 0.75rem;
            color: var(--hc-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .hc-entity-score-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
            margin-top: 12px;
        }

        .hc-entity-score-item {
            border: 1px dashed var(--hc-border);
            border-radius: 12px;
            padding: 10px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            font-size: 0.8rem;
        }

        .hc-entity-score-item strong {
            font-size: 1rem;
            color: var(--hc-ink-strong);
        }

        .hc-entity-score-hint {
            font-size: 0.7rem;
            color: var(--hc-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .hc-entity-mini-title {
            margin-top: 14px;
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--hc-muted);
        }

        .hc-entity-missing-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
            font-size: 0.8rem;
            margin-top: 8px;
        }

        .hc-entity-missing-list a,
        .hc-entity-missing-list span {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 8px;
            border-radius: 10px;
            border: 1px solid rgba(242, 91, 91, 0.35);
            color: var(--hc-ink-strong);
            background: rgba(242, 91, 91, 0.08);
            text-decoration: none;
        }

        .hc-entity-missing-list .hc-missing-ok {
            border-color: rgba(42, 212, 106, 0.45);
            background: rgba(42, 212, 106, 0.1);
        }

        .hc-entity-signal-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 8px;
            margin-top: 8px;
            font-size: 0.8rem;
        }

        .hc-entity-signal-grid span {
            color: var(--hc-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-size: 0.68rem;
        }

        .hc-entity-signal-grid strong {
            display: block;
            font-size: 1rem;
            color: var(--hc-ink-strong);
        }

        .hc-entity-preview-row {
            font-size: 0.8rem;
            color: var(--hc-muted);
            margin-top: 6px;
        }

        .hc-entity-preview-row span {
            color: var(--hc-ink-strong);
        }

        .hc-section-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .hc-section-link.hc-section-active {
            border-color: rgba(53, 198, 191, 0.6);
            box-shadow: 0 6px 14px rgba(53, 198, 191, 0.18);
        }

        .hc-section-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(179, 181, 187, 0.6);
            display: inline-block;
        }

        .hc-section-dot.hc-dot-complete {
            background: #2ad46a;
            box-shadow: 0 0 0 3px rgba(42, 212, 106, 0.25);
        }

        .hc-section-dot.hc-dot-missing {
            background: #f25b5b;
            box-shadow: 0 0 0 3px rgba(242, 91, 91, 0.2);
        }

        .hc-field-missing {
            border-color: rgba(242, 91, 91, 0.7) !important;
            box-shadow: 0 0 0 0.12rem rgba(242, 91, 91, 0.2);
        }

        @media (max-width: 992px) {
            .hc-entity-sticky {
                position: static;
            }
        }


/* Onboarding process layout */
.hc-onboarding-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.hc-kpi-card {
    border: 1px solid var(--hc-border);
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--hc-panel);
    box-shadow: 0 10px 20px rgba(8, 15, 32, 0.08);
}

body[data-theme="dark"] .hc-kpi-card {
    background: rgba(15, 21, 46, 0.7);
}

.hc-kpi-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hc-muted);
    margin-bottom: 6px;
}

.hc-kpi-value {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--hc-ink-strong);
}

.hc-kpi-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-muted);
    margin-top: 6px;
}

.hc-onboarding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.hc-onboarding-card {
    border: 1px solid var(--hc-border);
    border-radius: 18px;
    padding: 16px;
    background: var(--hc-panel);
    box-shadow: 0 12px 24px rgba(8, 15, 32, 0.12);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hc-onboarding-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(8, 15, 32, 0.18);
}

body[data-theme="dark"] .hc-onboarding-card {
    background: rgba(13, 20, 43, 0.85);
}

.hc-onboarding-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hc-onboarding-company {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--hc-ink-strong);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hc-onboarding-meta {
    font-size: 0.7rem;
    color: var(--hc-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hc-onboarding-meta-sep {
    color: var(--hc-muted);
}

.hc-onboarding-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.hc-onboarding-attn {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f5b731;
    border: 1px solid rgba(245, 183, 49, 0.4);
    border-radius: 999px;
    padding: 2px 8px;
    background: rgba(245, 183, 49, 0.1);
}

.hc-onboarding-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hc-onboarding-progress .hc-progress {
    flex: 1;
    margin-top: 0;
}

.hc-onboarding-progress-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-muted);
    white-space: nowrap;
}

.hc-onboarding-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.hc-onboarding-block {
    border: 1px dashed var(--hc-border);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.55);
}

body[data-theme="dark"] .hc-onboarding-block {
    background: rgba(15, 21, 46, 0.55);
}

.hc-onboarding-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hc-muted);
    margin-bottom: 6px;
}

.hc-onboarding-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hc-ink-strong);
}

.hc-onboarding-meta-line {
    font-size: 0.78rem;
    color: var(--hc-muted);
    margin-top: 4px;
}

.hc-onboarding-share {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hc-onboarding-share .form-control {
    font-size: 0.75rem;
}

.hc-onboarding-missing {
    border: 1px solid rgba(242, 91, 91, 0.35);
    background: rgba(242, 91, 91, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
}

.hc-onboarding-missing-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.hc-onboarding-missing-list span {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(242, 91, 91, 0.4);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-ink-strong);
}

.hc-onboarding-more {
    border-top: 1px dashed var(--hc-border);
    padding-top: 10px;
}

.hc-onboarding-more summary {
    cursor: pointer;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hc-muted);
}

.hc-onboarding-meta-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    font-size: 0.75rem;
    color: var(--hc-muted);
}

.hc-onboarding-meta-grid strong {
    display: block;
    font-size: 0.9rem;
    color: var(--hc-ink-strong);
    font-weight: 600;
}

.hc-onboarding-meta-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hc-muted);
}

.hc-onboarding-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--hc-border);
    padding-top: 12px;
}

.hc-onboarding-footmeta {
    font-size: 0.75rem;
    color: var(--hc-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hc-onboarding-empty {
    border: 1px dashed var(--hc-border);
    border-radius: 16px;
    padding: 24px;
    background: var(--hc-panel);
    text-align: center;
    color: var(--hc-muted);
}

.hc-onboarding-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hc-ink-strong);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.hc-onboarding-empty-sub {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hc-copy-btn.is-copied {
    border-color: rgba(42, 212, 106, 0.6);
    color: #1f9f6d;
}

@media (max-width: 900px) {
    .hc-onboarding-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .hc-onboarding-head-right {
        align-items: flex-start;
    }

    .hc-onboarding-columns {
        grid-template-columns: 1fr;
    }

    .hc-onboarding-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

.bp-type-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.bp-type-pill {
    position: relative;
    cursor: pointer;
}

.bp-type-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bp-type-pill span {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--hc-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--hc-ink);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bp-type-pill input:checked + span {
    background: #35c6bf;
    border-color: #35c6bf;
    color: #051318;
    box-shadow: 0 0 0 1px rgba(53, 198, 191, 0.4);
}

body[data-theme="dark"] .bp-type-pill span {
    background: rgba(15, 21, 46, 0.65);
    color: var(--hc-ink);
}

body[data-theme="dark"] .bp-type-pill input:checked + span {
    background: #35c6bf;
    color: #041018;
}

body[data-theme="dark"] .bp-uen-input.bp-filled {
    background: rgba(20, 30, 58, 0.92);
    color: var(--hc-ink-strong);
}

body[data-theme="dark"] .bp-uen-input.bp-filled:-webkit-autofill {
    -webkit-text-fill-color: var(--hc-ink-strong);
    box-shadow: 0 0 0 1000px #141e3a inset;
}

/* Bootstrap helpers tuned for our dark panels */
body[data-theme="dark"] .hc-panel .form-text,
body[data-theme="dark"] .hc-page .form-text,
body[data-theme="dark"] .hc-form-section .form-text {
    color: rgba(207, 221, 235, 0.72) !important;
}

body[data-theme="dark"] .hc-panel .form-text a,
body[data-theme="dark"] .hc-page .form-text a,
body[data-theme="dark"] .hc-form-section .form-text a {
    color: rgba(205, 255, 249, 0.9);
    text-decoration-color: rgba(205, 255, 249, 0.45);
}

/* Dark-theme drawers (Bootstrap offcanvas) */
body[data-theme="dark"] .offcanvas {
    background: #0f1734;
    color: var(--hc-ink);
    border-left: 1px solid var(--hc-border);
}

body[data-theme="dark"] .offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--hc-border);
}

body[data-theme="dark"] .offcanvas .offcanvas-title {
    color: var(--hc-ink-strong);
    font-weight: 800;
    letter-spacing: 0.02em;
}

body[data-theme="dark"] .offcanvas .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.85;
}

body[data-theme="dark"] .offcanvas .form-label {
    color: rgba(207, 221, 235, 0.8);
}

body[data-theme="dark"] .offcanvas .form-check-label {
    color: rgba(207, 221, 235, 0.85);
}

body[data-theme="dark"] .offcanvas hr,
body[data-theme="dark"] .offcanvas .hc-divider {
    border-color: rgba(205, 255, 249, 0.12);
}

.hc-form-section {
    border: 1px solid var(--hc-border);
    border-radius: 16px;
    background: rgba(15, 21, 46, 0.35);
    overflow: hidden;
    margin-bottom: 16px;
}

body[data-theme="light"] .hc-form-section {
    background: rgba(255, 255, 255, 0.7);
}

.hc-form-section-promoted {
    border-color: rgba(53, 198, 191, 0.4);
    box-shadow: 0 0 0 1px rgba(53, 198, 191, 0.12);
}

.hc-form-section-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--hc-border);
    background: rgba(0, 0, 0, 0.08);
}

.hc-form-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hc-ink-strong);
}

.hc-form-section-sub {
    margin-top: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hc-muted);
}

.hc-form-section-body {
    padding: 16px;
}

.hc-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 6px;
}

.hc-builder {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 240px;
    gap: 16px;
}

.hc-builder-panel {
    background: var(--hc-panel);
    border: 1px solid var(--hc-border);
    border-radius: 16px;
    padding: 16px;
    height: 100%;
}

.hc-builder-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hc-muted);
    margin-bottom: 12px;
}

.hc-builder-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
    overflow: auto;
    padding-right: 6px;
}

.hc-builder-token {
    background: rgba(18, 37, 73, 0.8);
    border: 1px solid rgba(88, 120, 189, 0.4);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: grab;
}

.hc-builder-token:active {
    cursor: grabbing;
}

.hc-builder-token-label {
    font-weight: 600;
    color: var(--hc-ink-strong);
    margin-bottom: 4px;
}

.hc-builder-token-meta {
    font-size: 0.7rem;
    color: var(--hc-muted);
}

.hc-builder-canvas {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hc-builder-zone {
    background: var(--hc-panel);
    border: 1px solid var(--hc-border);
    border-radius: 18px;
    padding: 16px;
}

.hc-builder-zone-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hc-muted);
    margin-bottom: 10px;
}

.hc-builder-drop {
    min-height: 70px;
    border: 1px dashed rgba(88, 120, 189, 0.5);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    background: rgba(10, 19, 39, 0.6);
}

.hc-builder-drop.is-over {
    border-color: rgba(56, 189, 248, 0.8);
    background: rgba(56, 189, 248, 0.08);
}

.hc-builder-drop-hint {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-muted);
    position: absolute;
    right: 12px;
    bottom: 8px;
}

.hc-builder-chip {
    background: rgba(45, 212, 191, 0.15);
    border: 1px solid rgba(45, 212, 191, 0.5);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: grab;
}

.hc-builder-chip span {
    color: var(--hc-ink-strong);
}

.hc-builder-remove {
    border: none;
    background: transparent;
    color: var(--hc-muted);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
}

.hc-preview-section {
    border-top: 1px solid var(--hc-border);
    padding-top: 16px;
    margin-top: 16px;
}

.hc-preview-section:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.hc-preview-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hc-muted);
    margin-bottom: 12px;
}

.hc-preview-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.hc-preview-card {
    background: rgba(17, 29, 55, 0.8);
    border: 1px solid var(--hc-border);
    border-radius: 12px;
    padding: 10px 12px;
}

.hc-preview-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-muted);
    margin-bottom: 6px;
}

.hc-preview-value {
    font-weight: 600;
    color: var(--hc-ink-strong);
}

@media (max-width: 1100px) {
    .hc-builder {
        grid-template-columns: 1fr;
    }
}

.hc-breadcrumb {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--hc-muted);
    margin-bottom: 8px;
}

.hc-prospect-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.hc-prospect-kpi {
    border: 1px solid var(--hc-border);
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--hc-panel);
}

.hc-prospect-kpi.hc-kpi-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hc-prospect-kpi.hc-kpi-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(8, 15, 32, 0.14);
}

.hc-prospect-kpi-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hc-muted);
}

.hc-prospect-kpi-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--hc-ink-strong);
}

.hc-kpi-overdue {
    border-color: rgba(242, 91, 91, 0.4);
}

.hc-kpi-due {
    border-color: rgba(255, 193, 7, 0.4);
}

.hc-kpi-won {
    border-color: rgba(42, 212, 106, 0.4);
}

.hc-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hc-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--hc-border);
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hc-ink-strong);
    text-decoration: none;
}

.hc-filter-chip.active {
    background: var(--hc-ink-strong);
    color: #fff;
    border-color: var(--hc-ink-strong);
}

body[data-theme="dark"] .hc-filter-chip.active {
    color: #000;
}

.hc-prospect-sortbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.hc-sort-form {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.hc-prospect-company {
    font-weight: 600;
    color: var(--hc-ink-strong);
}

.hc-prospect-contact {
    font-size: 0.85rem;
    color: var(--hc-muted);
}

.hc-prospect-meta {
    font-size: 0.7rem;
    color: var(--hc-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

.hc-prospect-link {
    color: inherit;
    text-decoration: none;
}

.hc-prospect-link:hover {
    text-decoration: none;
    color: var(--hc-ink-strong);
}

.hc-uen-missing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(242, 91, 91, 0.5);
    background: rgba(242, 91, 91, 0.12);
    color: #f25b5b;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.6rem;
}

.hc-uen-banner {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(242, 91, 91, 0.5);
    background: rgba(242, 91, 91, 0.12);
    color: #f25b5b;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.hc-status-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.hc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    font-weight: 600;
}

.hc-status-badge .hc-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #f25b5b;
    box-shadow: 0 0 0 3px rgba(242, 91, 91, 0.2);
}

.hc-blink-dot {
    animation: hcBlink 1.2s ease-in-out infinite;
}

@keyframes hcBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.hc-status-sub {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-muted);
}

.hc-status-sub-danger {
    color: #f25b5b;
}

.hc-status-sub-warn {
    color: #d18a00;
}

.hc-status-sub-muted {
    color: var(--hc-muted);
}

.hc-status-badge.hc-status-danger {
    background: rgba(242, 91, 91, 0.12);
    color: #f25b5b;
    border-color: rgba(242, 91, 91, 0.4);
}

.hc-status-overdue {
    background: rgba(242, 91, 91, 0.12);
    color: #f25b5b;
    border-color: rgba(242, 91, 91, 0.4);
}

.hc-status-due {
    background: rgba(255, 193, 7, 0.15);
    color: #d18a00;
    border-color: rgba(255, 193, 7, 0.5);
}

.hc-status-engaged {
    background: rgba(72, 162, 255, 0.15);
    color: #489fff;
    border-color: rgba(72, 162, 255, 0.4);
}

.hc-status-muted {
    background: rgba(150, 150, 150, 0.15);
    color: #9a9a9a;
    border-color: rgba(150, 150, 150, 0.4);
}

.hc-status-active {
    background: rgba(120, 120, 120, 0.1);
    color: var(--hc-ink-strong);
    border-color: var(--hc-border);
}

.hc-prospect-touch {
    font-weight: 600;
}

.hc-prospect-next {
    font-weight: 600;
}

.hc-prospect-next-sub {
    font-size: 0.7rem;
    color: var(--hc-muted);
}

.hc-next-overdue,
.hc-next-none {
    color: #f25b5b;
}

.hc-next-today {
    color: #d18a00;
}

.hc-next-alert {
    position: relative;
    padding-left: 12px;
}

.hc-next-alert::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #f25b5b;
    box-shadow: 0 0 0 3px rgba(242, 91, 91, 0.2);
    animation: hcBlink 1.2s ease-in-out infinite;
}

.hc-prospect-row {
    cursor: pointer;
}

.hc-prospect-expand {
    display: none;
    background: var(--hc-panel);
}

.hc-prospect-expand.show {
    display: table-row;
}

.hc-prospect-expand td {
    padding: 0;
}

.hc-prospect-expand-inner {
    padding: 12px 16px;
    border-top: 1px solid var(--hc-border);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.hc-prospect-expand-section {
    min-width: 200px;
}

.hc-prospect-expand-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-muted);
    margin-bottom: 6px;
}

.hc-prospect-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.82rem;
    color: var(--hc-ink-strong);
}

.hc-prospect-list li {
    padding: 4px 0;
    border-bottom: 1px dashed var(--hc-border);
}

.hc-prospect-expand-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hc-prospect-expand-actions-title {
    width: 100%;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-muted);
}

.hc-next-detail {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.hc-ellipsis-btn {
    min-width: 36px;
    text-transform: none;
    letter-spacing: 0;
}

.hc-ellipsis-btn::after {
    display: none;
}

.hc-prospect-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hc-prospect-card {
    border: 1px solid var(--hc-border);
    border-radius: 14px;
    padding: 12px;
    background: var(--hc-panel);
}

.hc-prospect-card-row {
    font-size: 0.85rem;
    margin-top: 6px;
}

.hc-prospect-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.hc-prospects-page .hc-prospect-actions-menu {
    max-height: none !important;
    overflow: visible !important;
    min-width: 220px;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(8, 15, 32, 0.25);
    z-index: 1200;
}

.hc-prospects-page .hc-prospect-actions-menu .dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
}

.hc-prospects-page .table-responsive {
    overflow: visible;
}

.hc-pipeline-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hc-pipeline-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 32px;
    gap: 10px;
    align-items: center;
    font-size: 0.85rem;
}

.hc-pipeline-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
    color: var(--hc-muted);
}

.hc-pipeline-bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(53, 198, 191, 0.12);
    border: 1px solid rgba(53, 198, 191, 0.25);
    overflow: hidden;
}

.hc-pipeline-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #35c6bf, #1db8ff);
    border-radius: 999px;
}

.hc-pipeline-count {
    text-align: right;
    font-weight: 600;
    color: var(--hc-ink-strong);
}

.hc-quick-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hc-quick-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--hc-border);
}

.hc-quick-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hc-quick-main {
    font-weight: 400;
    color: var(--hc-ink-strong);
    text-decoration: none;
    display: inline-block;
}

.hc-quick-main:hover {
    text-decoration: none;
    color: var(--hc-ink-strong);
}

.hc-quick-sub {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-muted);
}

.hc-followup-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-muted);
    margin-bottom: 6px;
}

.hc-activity-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-left: 22px;
}

.hc-activity-timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: rgba(120, 165, 210, 0.35);
}

.hc-activity-item {
    position: relative;
    display: flex;
    gap: 12px;
}

.hc-activity-dot {
    position: absolute;
    left: -18px;
    top: 16px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #35c6bf;
    box-shadow: 0 0 0 4px rgba(53, 198, 191, 0.2);
}

.hc-activity-card {
    border: 1px solid var(--hc-border);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(15, 21, 46, 0.7);
    width: 100%;
}

.hc-activity-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-muted);
}

.hc-activity-type {
    color: var(--hc-ink-strong);
    font-weight: 600;
}

.hc-activity-title {
    font-weight: 600;
    margin-top: 6px;
}

.hc-activity-body {
    margin-top: 6px;
    color: var(--hc-muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

.hc-activity-date {
    margin: 14px 0 10px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-muted);
}

.hc-activity-actions {
    border-top: 1px solid var(--hc-border);
    padding-top: 10px;
}

.hc-activity-thread .hc-activity-reply {
    border: 1px solid var(--hc-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 12px;
}

.hc-activity-foot {
    margin-top: 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-muted);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hc-trade-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hc-trade-row {
    display: grid;
    grid-template-columns: 130px 110px 1fr 1fr 120px 90px;
    gap: 8px;
    align-items: center;
}

@media (max-width: 992px) {
    .hc-trade-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Global settings typography + button standardization */
body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body[data-theme="light"] {
    --hc-accent-primary: #0FAF9F;
    --hc-accent-primary-hover: #0B998B;
    --hc-accent-outline: #0FAF9F;
    --hc-accent-ink: #FFFFFF;
}

body[data-theme="dark"] {
    --hc-accent-primary: #2ED3C6;
    --hc-accent-primary-hover: #24B7AB;
    --hc-accent-outline: #2ED3C6;
    --hc-accent-ink: #06212B;
}

.hc-settings-breadcrumb {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hc-muted);
    margin-bottom: 8px;
}

.hc-settings-nav .hc-panel-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hc-settings-nav-title {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hc-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.hc-settings-nav-item {
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--hc-ink);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.hc-settings-nav-item::before {
    content: "-";
    color: var(--hc-muted);
}

.hc-settings-nav-item.active {
    background: rgba(56, 189, 248, 0.08);
    border-color: var(--hc-border);
    font-weight: 600;
}

.hc-settings-nav-item:hover {
    border-color: var(--hc-border);
}

.hc-settings-nav-item.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Directory cards (Companies list) */
.hc-company-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 14px 20px;
    border: 1px solid var(--hc-border);
    border-radius: 14px;
    background: rgba(15, 21, 46, 0.35);
}

body[data-theme="light"] .hc-company-card {
    background: rgba(255, 255, 255, 0.85);
}

.hc-company-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    border-radius: 14px 0 0 14px;
    background: rgba(205, 255, 249, 0.35);
}

.hc-company-card--client::before {
    background: rgba(42, 212, 106, 0.9);
}

.hc-company-card--prospect::before {
    background: rgba(245, 158, 11, 0.95);
}

.hc-company-card--inactive::before {
    background: rgba(148, 163, 184, 0.7);
}

.hc-company-name {
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hc-ink-strong);
    font-size: 0.95rem;
}

.hc-company-meta {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hc-muted);
    margin-top: 2px;
}

.hc-company-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.hc-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--hc-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--hc-ink);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hc-company-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--hc-muted);
    font-size: 0.82rem;
}

.hc-company-sub .hc-dot {
    opacity: 0.7;
}

.hc-company-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Contact cards (Directory / Contacts) */
.hc-contact-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--hc-border);
    border-radius: 14px;
    background: rgba(15, 21, 46, 0.35);
}

body[data-theme="light"] .hc-contact-card {
    background: rgba(255, 255, 255, 0.85);
}

.hc-contact-name {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hc-ink-strong);
    font-size: 0.95rem;
}

.hc-contact-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hc-contact-person {
    min-width: 0;
}

.hc-contact-status {
    flex: 0 0 auto;
}

.hc-contact-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.hc-contact-company {
    text-align: right;
    color: var(--hc-muted);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-contact-divider {
    border-top: 1px solid var(--hc-border);
    opacity: 0.7;
}

.hc-contact-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 0;
    color: var(--hc-muted);
    font-size: 0.82rem;
}

.hc-contact-meta .hc-dot {
    display: inline-block;
    margin: 0 10px;
    opacity: 0.65;
}

.hc-contact-meta-label {
    color: var(--hc-ink);
    opacity: 0.85;
}

.hc-contact-headline {
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--hc-muted);
    letter-spacing: 0.02em;
}

.hc-contact-title-row .hc-contact-headline {
    margin-top: 0;
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-contact-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--hc-muted);
    font-size: 0.82rem;
}

.hc-contact-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hc-contact-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.hc-contact-card .hc-dot {
    opacity: 0.7;
}

/* KPI cards */
.hc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 992px) {
    .hc-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hc-kpi {
    border: 1px solid var(--hc-border);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
}

body[data-theme="light"] .hc-kpi {
    background: rgba(255, 255, 255, 0.85);
}

.hc-kpi-value {
    font-size: 1.6rem; /* ~fs-4 */
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: #ffffff;
}

body[data-theme="light"] .hc-kpi-value {
    color: var(--hc-ink-strong);
}

.hc-kpi-label {
    margin-top: 6px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hc-muted);
    font-weight: 700;
}

.hc-kpi-success .hc-kpi-value { color: #22c55e; }
.hc-kpi-warn .hc-kpi-value { color: #f59e0b; }
.hc-kpi-info .hc-kpi-value { color: var(--hc-accent-primary); }
.hc-kpi-neutral .hc-kpi-value { color: #e6efff; }

.hc-kpi-divider {
    height: 1px;
    background: var(--hc-border);
    margin: 14px 0;
    opacity: 0.95;
}

.btn,
.btn-primary,
.btn-outline-primary,
.btn-outline-secondary,
.btn-secondary {
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btn.btn-sm {
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
    letter-spacing: 0.06em;
}

.btn-primary,
.hc-page .btn-primary,
.hc-panel .btn-primary,
.hc-actions-row .btn-primary,
.btn-secondary,
.hc-page .btn-secondary,
.hc-panel .btn-secondary,
.hc-actions-row .btn-secondary {
    background: var(--hc-accent-primary);
    border-color: var(--hc-accent-primary);
    color: var(--hc-accent-ink);
}

.btn-primary:hover,
.btn-primary:focus,
.hc-page .btn-primary:hover,
.hc-page .btn-primary:focus,
.hc-panel .btn-primary:hover,
.hc-panel .btn-primary:focus,
.hc-actions-row .btn-primary:hover,
.hc-actions-row .btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.hc-page .btn-secondary:hover,
.hc-page .btn-secondary:focus,
.hc-panel .btn-secondary:hover,
.hc-panel .btn-secondary:focus,
.hc-actions-row .btn-secondary:hover,
.hc-actions-row .btn-secondary:focus {
    background: var(--hc-accent-primary-hover);
    border-color: var(--hc-accent-primary-hover);
    color: var(--hc-accent-ink);
}

.btn-outline-primary,
.btn-outline-secondary,
.hc-page .btn-outline-primary,
.hc-page .btn-outline-secondary,
.hc-panel .btn-outline-primary,
.hc-panel .btn-outline-secondary,
.hc-actions-row .btn-outline-primary,
.hc-actions-row .btn-outline-secondary {
    background: transparent;
    border-color: var(--hc-accent-outline);
    color: var(--hc-accent-outline);
}

body[data-theme="light"] .btn-outline-primary:hover,
body[data-theme="light"] .btn-outline-primary:focus,
body[data-theme="light"] .btn-outline-secondary:hover,
body[data-theme="light"] .btn-outline-secondary:focus,
body[data-theme="light"] .hc-page .btn-outline-primary:hover,
body[data-theme="light"] .hc-page .btn-outline-primary:focus,
body[data-theme="light"] .hc-page .btn-outline-secondary:hover,
body[data-theme="light"] .hc-page .btn-outline-secondary:focus {
    background: rgba(15, 175, 159, 0.08);
    border-color: var(--hc-accent-outline);
    color: var(--hc-accent-outline);
}

body[data-theme="dark"] .btn-outline-primary:hover,
body[data-theme="dark"] .btn-outline-primary:focus,
body[data-theme="dark"] .btn-outline-secondary:hover,
body[data-theme="dark"] .btn-outline-secondary:focus,
body[data-theme="dark"] .hc-page .btn-outline-primary:hover,
body[data-theme="dark"] .hc-page .btn-outline-primary:focus,
body[data-theme="dark"] .hc-page .btn-outline-secondary:hover,
body[data-theme="dark"] .hc-page .btn-outline-secondary:focus {
    background: rgba(46, 211, 198, 0.12);
    border-color: var(--hc-accent-outline);
    color: var(--hc-accent-outline);
}
