:root {
    --primary: #10b981;
    --primary-alt: #3b82f6;
    --bg: #F4F7F6;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #0f172a;
    --text-dim: #64748b;
    --glass-border: rgba(0, 0, 0, 0.08);
    --color-actual: #10b981;
    --color-estimated: #f59e0b;
    --toggle-bg: #e2e8f0;
    --input-bg: #f8fafc;
    --accent-solid: #e65100;
    /* Specific Intense Orange */
    --accent-rgba: 230, 81, 0;
    --nct-text: #000000;
}

/* --- CONSENT OVERLAY (Tier 1 Gating) --- */
.consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Deep dark overlay */
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    transition: opacity 0.6s ease, visibility 0.6s;
    visibility: visible;
    opacity: 1;
}

.consent-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.consent-modal {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.consent-modal h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-alt));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.consent-content p {
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    font-family: 'Outfit';
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: var(--toggle-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    font-family: 'Outfit';
    cursor: pointer;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* --- RESTRICTED UI (Demo Mode) --- */
.restricted-field {
    position: relative;
    opacity: 0.9;
}

.restricted-field select {
    background: rgba(0, 0, 0, 0.05);
}

/* Tier 1 Restricted Buttons (Replacing Selects) */
.passcode-button {
    width: 100%;
    padding: 1rem;
    background: #FFC107;
    color: #0D47A1 !important;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 950;
    font-family: 'Outfit';
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    text-transform: uppercase;
}

.passcode-button::after {
    content: '▼';
    font-size: 0.6rem;
    color: #0D47A1 !important;
    opacity: 0.8;
}

.gantt-legend {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0.5rem 1rem;
    max-width: 1700px;
    margin: 0.5rem auto 0 auto;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.today-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ffcc00;
    z-index: 0;
    /* Behind bars */
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.4);
    pointer-events: none;
    opacity: 0.7;
}

/* Clear out the legacy marker to avoid confusion */
.today-marker {
    display: none;
}


html[data-theme="dark"] {
    --bg: #020617;
    --card-bg: rgba(15, 23, 42, 0.9);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.15);
    --toggle-bg: #1e293b;
    --input-bg: rgba(0, 0, 0, 0.7);
    --accent-solid: #ff9800;
    /* Lighter Orange for dark mode visibility */
    --accent-rgba: 255, 152, 0;
    --nct-text: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    padding: 0;
    line-height: 1.5;
    transition: background-color 0.4s, color 0.4s;
}

.hero-section {
    background: linear-gradient(181deg, #e4e9f2 0%, var(--bg) 100%);
    padding: 4rem 2rem 1rem 2rem;
    margin-bottom: 2rem;
}

html[data-theme="dark"] .hero-section {
    background: linear-gradient(180deg, #0f172a 0%, var(--bg) 100%);
}

header {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.beta-tag {
    background: var(--primary);
    color: #000;
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 950;
    letter-spacing: 0.15em;
    font-family: 'Outfit';
}

.stats-container {
    display: flex;
    gap: 10rem;
    justify-content: center;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 5rem;
    font-weight: 950;
    font-family: 'Outfit';
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 950;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 1.25rem;
}

.controls {
    max-width: 1400px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.utility-filters {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 1.5rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 3rem;
    justify-content: flex-end;
}

.system-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    justify-content: flex-end;
}

.toggle-row {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
}

.toggle-row.countries {
    gap: 1.5rem;
}

.toggle-row.system {
    margin-top: 0.5rem;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toggle-row.mini {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.toggle-item.mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.countries-control-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-end;
}

.must-countries-label {
    text-align: left;
    font-size: 0.8rem !important;
    font-weight: 950 !important;
    margin-bottom: 0.6rem;
}

.sub-label {
    font-size: 0.72rem;
    /* Reduced slightly to common base */
    font-weight: 850;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.switch.mini {
    width: 44px;
    height: 24px;
}

.switch.mini .slider:before {
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
}

.switch.mini input:checked+.slider:before {
    transform: translateX(20px);
}

@media (max-width: 768px) {
    .utility-filters {
        flex-direction: column;
        align-items: flex-end;
        gap: 1rem;
        text-align: right;
    }

    .toggle-row {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .must-countries-label {
        width: 100%;
        text-align: right;
    }

    .countries-control-group {
        width: 100%;
        align-items: flex-end;
    }
}

.group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

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

.label {
    font-size: 0.75rem;
    font-weight: 950;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* iOS Style Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
    background-color: #10b981;
}

input:checked+.slider:before {
    transform: translateX(24px);
}

/* Premium Hierarchical Toggle (Segmented Control) */
.segmented-control {
    display: flex;
    background: var(--toggle-bg);
    padding: 0.3rem;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    position: relative;
    width: 100%;
}

.segmented-control input {
    display: none;
}

.segmented-control label {
    flex: 1;
    text-align: center;
    padding: 0.8rem 0;
    font-size: 0.8rem;
    font-weight: 950;
    color: var(--text-dim);
    cursor: pointer;
    z-index: 2;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.segmented-control .selection-slider {
    position: absolute;
    top: 0.3rem;
    left: 0.3rem;
    width: calc(50% - 0.3rem);
    height: calc(100% - 0.6rem);
    border-radius: 11px;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), background 0.4s ease;
    z-index: 1;
}

.segmented-control input#is-oncology:checked~.selection-slider {
    transform: translateX(0);
    /* Transition starts at 75% mark, becoming green at the right end */
    background: linear-gradient(to right, #3b82f6 0%, #3b82f6 75%, #10b981 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.segmented-control input#not-oncology:checked~.selection-slider {
    transform: translateX(100%);
    /* Transition starts bluish at left, ends at 25%, then solid green */
    background: linear-gradient(to right, #3b82f6 0%, #10b981 25%, #10b981 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.segmented-control input#is-oncology:checked~label[for="is-oncology"],
.segmented-control input#not-oncology:checked~label[for="not-oncology"] {
    color: #fff;
}

/* Tooltip / Popout Refinement */
.tip {
    position: fixed;
    pointer-events: auto;
    background: #ffffff;
    color: #0f172a;
    padding: 1.25rem;
    border-radius: 16px;
    z-index: 9999;
    opacity: 0;
    /* Re-enabled for interaction */
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 90vw;
    backdrop-filter: blur(20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 99999;
}

.tip-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 22px;
    height: 22px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
    z-index: 100;
    font-weight: 900;
    line-height: 1;
}

.tip-close:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

[data-theme="dark"] .tip {
    background: #1e293b;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.1);
}

.tip .company {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tip .title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

select,
input {
    padding: 0.9rem 1.2rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
    width: 100%;
    appearance: none;
}

select:focus,
input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    z-index: 10000;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.suggestion-item {
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.suggestion-item .id-pill {
    background: var(--primary);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 900;
    font-family: 'Outfit';
}

.view-toggle {
    display: flex;
    background: var(--toggle-bg);
    padding: 0.3rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

.view-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-weight: 900;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.3s;
    font-size: 0.8rem;
}

.view-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Gantt Container */
.g-container {
    display: none;
    max-width: 1700px;
    margin: 0 auto;
    overflow: auto;
    max-height: 80vh;
}

.g-header {
    display: flex;
    border-bottom: 3px solid var(--text-dim);
    background: var(--toggle-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.g-labels {
    width: 180px;
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-weight: 950;
    color: var(--text-main);
    text-transform: uppercase;
    border-right: 2px solid var(--text-dim);
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 110;
    background: var(--toggle-bg);
    display: flex;
    align-items: center;
}

.today-marker {
    position: absolute;
    background: rgba(147, 197, 253, 0.15);
    /* Ice-blue modest fill */
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    /* Transparent thin start */
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    /* Transparent thin end */
    pointer-events: none;
    z-index: 5;
}

.g-time {
    flex-grow: 1;
    display: flex;
    position: relative;
    background: var(--toggle-bg);
}

.year {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 950;
    border-left: 1px solid var(--glass-border);
}

/* Today Highlight: A refined Q1 2026 block.
   Mathematical 3-month coverage with subtle, thin boundaries. */
.today-marker {
    position: absolute;
    background: rgba(147, 197, 253, 0.15);
    /* Ice-blue modest fill */
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    /* Transparent thin start */
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    /* Transparent thin end */
    pointer-events: none;
    z-index: 5;
}

.g-row {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    height: 75px;
    transition: 0.3s;
}

.g-row:hover {
    background: rgba(16, 185, 129, 0.05);
}

/* This column contains trial metadata (Ticker, NCT ID, Indication).
   It is also sticky to support comfortable horizontal scrolling on small screens. */
.g-info {
    width: 180px;
    flex-shrink: 0;
    padding: 0.4rem 1rem;
    border-right: 2px solid var(--text-dim);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--toggle-bg);
    position: sticky;
    left: 0;
    z-index: 90;
    overflow: hidden;
}

.company {
    font-weight: 500;
    font-size: 1.0rem;
    margin-bottom: 0px;
    color: var(--accent-solid);
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    max-width: 100%;
    line-height: 1.1;
}

.company.jazz {
    color: var(--color-jazz);
}

.company.beone {
    color: var(--color-beone);
}

.nct-link {
    color: var(--nct-text);
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    /* Non-bold as requested */
    text-decoration: none;
    transition: 0.2s;
}

.nct-link:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

.g-meta {
    font-size: 0.9rem;
    color: var(--accent-solid);
    /* Sick blue for indications */
    font-weight: 600;
    margin-top: 0.25rem;
}

.p-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 0.6rem;
    background: var(--toggle-bg);
    color: var(--text-main);
    font-weight: 950;
    font-size: 0.8rem;
    margin-right: 1rem;
}

.g-bar-cell {
    flex-grow: 1;
    position: relative;
    cursor: pointer;
}

.bar {
    position: absolute;
    height: 25px;
    top: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 0.8rem;
    font-size: 0.86rem;
    font-weight: 950;
    color: #fff;
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    background: var(--accent-solid);
    z-index: 10;
}

/* # COMPONENT: Country Tags (Global Footprint) */
.country-tag-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    pointer-events: none;
    /* Let clicks pass to the bar */
}

.country-tag {
    padding: 0.1rem 0.4rem;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.country-tag.missing {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.country-others {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 950;
    white-space: nowrap;
}

.bar:hover {
    transform: scale(1.02, 1.25);
    filter: brightness(1.4);
    z-index: 30;
}

.bar.jazz {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.bar.beone {
    background: linear-gradient(90deg, #059669, #34d399);
}

.marker {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    top: 4px;
    /* Positioned above the 22px bar */
    z-index: 20;
    cursor: pointer;
    transition: 0.2s;
    transform: translateX(-50%);
}

.marker:hover {
    transform: translateX(-50%) scale(1.3);
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.8rem;
    border-radius: 1.5rem;
    font-size: 0.75rem;
    font-weight: 950;
    margin-left: 0.75rem;
    text-transform: uppercase;
}

.status.A {
    background: var(--color-actual);
    color: #064e3b;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.status.E {
    background: var(--color-estimated);
    color: #451a03;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.status-label {
    font-size: 0.7rem;
    opacity: 0.7;
    font-weight: 800;
    text-transform: uppercase;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.readout {
    margin-top: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 1.5rem;
    padding: 1.5rem;
}

.intel-tag {
    font-weight: 950;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 0.6rem;
    display: block;
    letter-spacing: 0.15em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(550px, 1fr));
    gap: 3rem;
    max-width: 1700px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border-bottom: 4px solid var(--primary);
    padding: 3rem;
    transition: 0.4s;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .card {
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
    border-bottom: 4px solid var(--primary);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.1);
}

/* Pagination Controls */
#pagination-controls {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 0.5rem 1rem;
    background: transparent;
    /* Remove white oval */
    border: none;
    box-shadow: none;
}

.pag-info {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-dim);
    min-width: 100px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pag-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-weight: 950;
    cursor: pointer;
    transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 2.5rem;
    /* Even larger and thicker "pop" */
    -webkit-text-stroke: 1px var(--text-main);
    /* Thickness boost */
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pag-btn:hover:not(:disabled) {
    transform: scale(1.2);
    color: var(--primary);
}

.pag-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* Phrasing standardization handled via ID/Class in app2.js */

@media (max-width: 768px) {
    .logo-area {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .beta-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .stats-container {
        gap: 2rem;
        margin-top: 2rem;
        text-align: center;
        justify-content: center;
    }

    .stat-number {
        font-size: 4rem;
        /* Reduced from 5rem (20% reduction) */
    }

    .stat-label {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
    }

    body {
        padding: 1rem;
    }

    h1 {
        font-size: 2.8rem;
    }

    .pagination {
        gap: 1rem;
        padding: 0.8rem 1.5rem;
        width: 100%;
        justify-content: space-between;
    }

    .pag-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.75rem;
    }

    .pag-info {
        font-size: 0.8rem;
        min-width: auto;
    }

    .controls {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .group div[style*="justify-content:space-between"] {
        width: 100%;
    }

    .label {
        font-size: 0.7rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card {
        padding: 2rem;
        border-radius: 2rem;
    }

    .card div:nth-of-type(2) {
        font-size: 1.5rem !important;
    }

    .view-toggle {
        margin-top: 0.5rem;
    }

    .g-container {
        border-radius: 1.5rem;
    }

    .g-header {
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
        min-width: 1000px;
    }

    .g-labels {
        width: 140px;
        padding: 0.75rem;
        font-size: 0.65rem;
    }

    .g-info {
        width: 140px;
        padding: 0.5rem;
    }

    .company {
        font-size: 1.1rem;
    }

    .g-meta {
        font-size: 0.8rem;
    }

    .p-badge {
        margin-right: 0.5rem;
        padding: 0.2rem 0.6rem;
    }

    #gantt {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #g-rows {
        min-width: 1000px;
    }
}