.post-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.ai-summary-toggle-btn {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 1px solid var(--link-color);
    color: var(--link-color);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    line-height: 1.5;
    margin-left: auto;
}

.ai-summary-toggle-btn:hover {
    background: var(--link-color);
    color: var(--background-color);
}

.ai-summary-box {
    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: 12px;
    padding: 16px 18px 12px;
    margin: 12px 0 20px;
    background: var(--background-color);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.3s ease;
}

.ai-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ai-summary-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    font-size: 0.95em;
    color: var(--heading-color);
    flex-wrap: wrap;
}

.ai-model-select-wrapper {
    position: relative;
    margin-left: 2px;
}

.ai-model-select-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(128, 128, 128, 0.1);
    border: none;
    border-radius: 10px;
    padding: 1px 10px;
    font-size: 0.82em;
    font-weight: normal;
    color: var(--gray-color);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.ai-model-select-btn:hover {
    background: rgba(128, 128, 128, 0.2);
    color: var(--heading-color);
}

.ai-summary-time-label {
    font-weight: normal;
    font-size: 0.78em;
    color: var(--gray-color);
    background: rgba(128, 128, 128, 0.08);
    border-radius: 10px;
    padding: 1px 8px;
}

.ai-summary-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.ai-summary-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--gray-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.ai-summary-action-btn:hover {
    background: rgba(128, 128, 128, 0.15);
    color: var(--heading-color);
}

.ai-model-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-color);
    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    z-index: 100;
    padding: 4px 0;
    margin-top: 4px;
}

.ai-model-dropdown-item {
    padding: 6px 14px;
    font-size: 0.85em;
    cursor: pointer;
    color: var(--text-color);
    transition: background 0.15s;
    white-space: nowrap;
}

.ai-model-dropdown-item:hover {
    background: rgba(128, 128, 128, 0.1);
}

.ai-model-dropdown-item.active {
    color: var(--link-color);
    font-weight: bold;
}

.ai-summary-content {
    font-size: 0.92em;
    line-height: 1.7;
    color: var(--text-color);
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.ai-summary-content.ai-summary-collapsed {
    max-height: 3.4em;
    overflow: hidden;
}

.ai-summary-content p {
    margin: 0;
}

.ai-summary-expand-btn {
    display: block;
    width: 100%;
    background: none;
    border: none;
    border-top: 1px dashed rgba(128, 128, 128, 0.25);
    color: var(--link-color);
    font-size: 0.82em;
    cursor: pointer;
    padding: 6px 0 0;
    margin-top: 6px;
    text-align: center;
    font-family: inherit;
    transition: color 0.2s;
}

.ai-summary-expand-btn:hover {
    color: var(--heading-color);
}

.ai-summary-modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.ai-summary-modal-card {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 25px;
    border-radius: 4px;
    width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(128, 128, 128, 0.1);
}
.ai-summary-modal-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--heading-color);
}
.ai-summary-modal-body {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-color);
    opacity: 0.9;
}
.ai-summary-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}
.ai-summary-modal-button {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}
.ai-summary-modal-button:hover {
    opacity: 0.7;
}
.ai-summary-modal-confirm-text {
    color: var(--link-color);
    font-weight: bold;
}
.ai-summary-modal-cancel-text {
    color: var(--gray-color);
}