/* =================================================================
   Share-link modal — used by both the analyst-mode top bar and the
   dashboard rows. Lightweight inline overlay; no library dependency.
   Extracted from dashboard.css so the dashboard CSS can be replaced
   independently without breaking share-link UI.
   ================================================================= */
.share-link-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.share-link-modal[hidden] { display: none; }
.share-link-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}
.share-link-card {
    position: relative;
    width: min(540px, calc(100vw - 32px));
    background: var(--card-bg, #14181f);
    color: var(--text-primary, #e6e6e6);
    border: 1px solid var(--border-strong, rgba(255,255,255,0.12));
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
    padding: 18px 20px 16px;
}
.share-link-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.share-link-title {
    margin: 0;
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.share-link-close {
    background: transparent;
    border: 0;
    color: var(--text-secondary, #a0a4a9);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}
.share-link-close:hover { color: var(--text-primary, #fff); }
.share-link-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.share-link-option {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-strong, rgba(255,255,255,0.12));
    color: var(--text-secondary, #a0a4a9);
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.share-link-option:hover {
    color: var(--text-primary, #fff);
    border-color: var(--accent, #4fc3f7);
}
.share-link-option.active {
    color: #0a0d12;
    background: var(--accent, #4fc3f7);
    border-color: var(--accent, #4fc3f7);
    font-weight: 700;
}
.share-link-url-label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary, #a0a4a9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.share-link-url-row {
    display: flex;
    gap: 8px;
}
.share-link-url {
    flex: 1 1 auto;
    min-width: 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-strong, rgba(255,255,255,0.12));
    color: var(--text-primary, #e6e6e6);
    border-radius: 4px;
    padding: 8px 10px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 12px;
}
.share-link-copy {
    padding: 8px 14px;
    background: var(--accent, #4fc3f7);
    border: 1px solid var(--accent, #4fc3f7);
    color: #0a0d12;
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
}
.share-link-copy:hover {
    background: var(--accent-hot, #29b6f6);
    border-color: var(--accent-hot, #29b6f6);
}
.share-link-status {
    margin-top: 8px;
    min-height: 18px;
    font-size: 12px;
    color: var(--good, #66bb6a);
}
