/* Sharing profiles and shared-data views. */
.share-view-switch {
    display: inline-flex;
    border: 1px solid var(--fx-border);
    border-radius: 7px;
    overflow: hidden;
    background: var(--fx-panel);
}

.share-view-switch button {
    height: 32px;
    min-width: 82px;
    border: none;
    border-right: 1px solid var(--fx-border);
    background: transparent;
    color: var(--fx-text-muted);
    cursor: pointer;
}

.share-view-switch button:last-child {
    border-right: none;
}

.share-view-switch button.active {
    background: var(--fx-primary);
    color: #fff;
}

.share-mode-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 14px;
    flex-wrap: wrap;
}

.share-mode-strip span {
    color: var(--fx-text-muted);
    font-size: 12px;
    font-weight: 600;
}

.share-mode-strip button {
    height: 30px;
    border: 1px solid var(--fx-border);
    border-radius: 6px;
    background: var(--fx-panel);
    color: var(--fx-text-muted);
    cursor: pointer;
    padding: 0 12px;
}

.share-mode-strip button.active,
.share-mode-strip button:hover {
    border-color: var(--fx-primary);
    color: var(--fx-primary);
    background: var(--fx-nav-hover);
}

.share-section-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.share-section-title h2 {
    margin: 0;
}

.share-section-title p {
    margin: 5px 0 0;
    color: var(--fx-text-muted);
}

.share-config-time {
    margin-top: 4px;
    color: var(--fx-text-muted);
    font-size: 12px;
}

.share-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 12px;
}

.share-outer-card {
    background: var(--fx-panel);
    border: 1px solid var(--fx-border);
    border-radius: 8px;
    padding: 14px;
    min-width: 0;
}

.share-outer-card header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.share-outer-card h2 {
    margin: 0;
    font-size: 16px;
}

.share-outer-card p,
.share-card-summary,
.share-point-meta,
.share-point-head span {
    color: var(--fx-text-muted);
}

.share-outer-card p {
    margin: 5px 0 0;
}

.share-card-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    margin-bottom: 10px;
}

.share-point-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.share-point-card {
    border: 1px solid var(--fx-border);
    border-left: 3px solid var(--fx-primary);
    border-radius: 8px;
    background: var(--fx-panel-muted);
    padding: 10px;
    display: grid;
    gap: 8px;
    min-width: 0;
}

.share-point-card.warn {
    border-left-color: var(--fx-warning);
}

.share-point-card.missing {
    border-left-color: var(--fx-text-muted);
}

.share-point-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.share-point-head strong,
.share-point-head span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-point-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--fx-primary);
    overflow-wrap: anywhere;
}

.share-point-meta {
    display: grid;
    gap: 3px;
    font-size: 12px;
}

.share-point-card button {
    justify-self: start;
    height: 28px;
    border: 1px solid var(--fx-border);
    border-radius: 6px;
    background: var(--fx-panel);
    color: var(--fx-primary);
    cursor: pointer;
    padding: 0 10px;
}
