.doctor-hero {
    margin-top: 0;
}

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

.doctor-card {
    text-align: left;
    padding: 14px 14px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-soft);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92) 0%, rgba(246, 240, 232, 0.9) 100%);
    box-shadow: var(--shadow-subtle);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.doctor-card:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.doctor-card-title {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-title);
    color: var(--color-text-primary);
}

.doctor-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-caption);
    color: var(--color-text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doctor-card-meta span {
    min-width: 0;
}

.doctor-card-meta span:not(:nth-child(2)) {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doctor-card-kv {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    font-size: var(--font-size-caption);
    color: var(--color-text-secondary);
    min-width: 0;
}

.doctor-card-kv > span:first-child {
    color: var(--color-text-tertiary);
}

.doctor-card-kv > span:nth-child(2) {
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
    word-break: break-word;
    justify-self: center;
    text-align: center;
}

.doctor-kv-error {
    color: #8a2f36;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doctor-status-row {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.doctor-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--color-border-soft);
    background: rgba(255, 255, 255, 0.78);
    font-size: var(--font-size-caption);
    color: var(--color-text-secondary);
    justify-content: center;
    text-align: center;
}

.doctor-status-chip strong {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-secondary);
}

.doctor-status-chip.ok {
    border-color: rgba(57, 181, 97, 0.25);
    background: rgba(57, 181, 97, 0.08);
    color: #2b6a3b;
}

.doctor-status-chip.warn {
    border-color: rgba(246, 211, 106, 0.45);
    background: rgba(246, 211, 106, 0.16);
    color: #6f4b00;
}

.doctor-status-chip.error {
    border-color: rgba(220, 95, 108, 0.28);
    background: rgba(220, 95, 108, 0.08);
    color: #8a2f36;
}

.doctor-health-result {
    margin-top: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-soft);
    padding: 12px 12px 10px;
    background: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.doctor-health-result.ok {
    border-color: rgba(57, 181, 97, 0.25);
    background: rgba(57, 181, 97, 0.08);
    color: #2b6a3b;
}

.doctor-health-result.error {
    border-color: rgba(220, 95, 108, 0.28);
    background: rgba(220, 95, 108, 0.08);
    color: #8a2f36;
}

.doctor-health-title {
    font-weight: var(--font-weight-secondary);
    color: var(--color-text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.doctor-health-issues {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: var(--font-size-caption);
    align-items: center;
}

.doctor-health-issue {
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(220, 95, 108, 0.2);
    background: rgba(255, 255, 255, 0.75);
    color: var(--color-text-secondary);
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
    width: 100%;
    max-width: 720px;
}

.doctor-action-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.doctor-action-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-soft);
    background: rgba(255, 255, 255, 0.78);
    padding: 12px;
    overflow: hidden;
    text-align: center;
}

.doctor-action-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.doctor-action-title {
    font-weight: var(--font-weight-secondary);
    color: var(--color-text-primary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.doctor-action-severity {
    font-size: var(--font-size-caption);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--color-border-soft);
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-text-secondary);
    text-transform: uppercase;
}

.doctor-action-severity.error {
    border-color: rgba(220, 95, 108, 0.28);
    background: rgba(220, 95, 108, 0.08);
    color: #8a2f36;
}

.doctor-action-severity.warn {
    border-color: rgba(246, 211, 106, 0.45);
    background: rgba(246, 211, 106, 0.16);
    color: #6f4b00;
}

.doctor-action-severity.info {
    border-color: rgba(126, 163, 215, 0.35);
    background: rgba(126, 163, 215, 0.14);
    color: #1f3d62;
}

.doctor-action-impact {
    font-size: var(--font-size-caption);
    color: var(--color-text-secondary);
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 920px;
    margin: 0 auto 10px;
}

.doctor-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.doctor-action-footer {
    display: flex;
    justify-content: center;
    margin-top: 2px;
}

@media (max-width: 520px) {
    .doctor-card-kv {
        grid-template-columns: 76px minmax(0, 1fr);
    }
}

.doctor-providers-health {
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-soft);
    background: rgba(255, 255, 255, 0.78);
}

.doctor-providers-health-title {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-title);
    color: var(--color-text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doctor-providers-health-summary {
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-primary);
    color: var(--color-text-tertiary);
}

.doctor-providers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doctor-provider-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--color-border-soft);
    background: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-caption);
    color: var(--color-text-secondary);
    max-width: 100%;
    overflow: hidden;
}

.doctor-provider-chip.green {
    border-color: rgba(57, 181, 97, 0.25);
    background: rgba(57, 181, 97, 0.08);
    color: #2b6a3b;
}

.doctor-provider-chip.yellow {
    border-color: rgba(246, 211, 106, 0.45);
    background: rgba(246, 211, 106, 0.16);
    color: #6f4b00;
}

.doctor-provider-chip.red {
    border-color: rgba(220, 95, 108, 0.28);
    background: rgba(220, 95, 108, 0.08);
    color: #8a2f36;
}

.doctor-provider-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doctor-provider-current {
    font-size: 0.85em;
    opacity: 0.7;
    margin-left: 2px;
}

.doctor-provider-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.doctor-provider-chip.green .doctor-provider-status-dot {
    background: rgba(57, 181, 97, 0.7);
}

.doctor-provider-chip.yellow .doctor-provider-status-dot {
    background: rgba(246, 211, 106, 0.85);
}

.doctor-provider-chip.red .doctor-provider-status-dot {
    background: rgba(220, 95, 108, 0.7);
}

.doctor-provider-issues {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doctor-provider-issue-card {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(220, 95, 108, 0.15);
    background: rgba(255, 255, 255, 0.7);
}

.doctor-provider-issue-name {
    font-weight: var(--font-weight-secondary);
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.doctor-provider-issue-row {
    font-size: var(--font-size-caption);
    color: var(--color-text-secondary);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 8px;
    margin-top: 4px;
}

.doctor-provider-issue-text {
    color: #8a2f36;
}

.doctor-provider-issue-fix {
    color: var(--color-text-tertiary);
    font-style: italic;
}
