/*
 * Podcastmaker Admin CSS
 * 管理画面専用スタイルシート
 */

/* ========================================
 * Settings Page: General Layout
 * ======================================== */
.Podcastmaker-tab-content {
    display: block !important;
    width: 100% !important;
    clear: both;
    float: none !important;
}

.Podcastmaker-gemini-card,
.Podcastmaker-prompts-card {
    max-width: 100% !important;
    margin-top: 20px;
    box-sizing: border-box;
    clear: both;
}

.Podcastmaker-base-prompt-card {
    max-width: 100% !important;
    margin-top: 20px;
    box-sizing: border-box;
    clear: both;
}

.Podcastmaker-base-prompt-card.card {
    padding-top: 14px;
    padding-bottom: 14px;
}

.Podcastmaker-base-prompt-card .form-table {
    margin-top: 0;
    margin-bottom: 0;
}

.Podcastmaker-base-prompt-card .form-table td {
    padding-top: 0;
}

.Podcastmaker-base-prompt-card textarea {
    min-height: 220px;
}

.Podcastmaker-base-prompt-field-title,
.Podcastmaker-prompt-set-field-title {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.Podcastmaker-prompt-set-field-title {
    margin-top: 8px;
}

.Podcastmaker-prompt-editor-topbar {
    margin-bottom: 10px;
}

.Podcastmaker-prompts-card .wp-list-table {
    width: 100%;
    margin-top: 10px;
    table-layout: auto;
}

.Podcastmaker-prompts-card .wp-list-table td,
.Podcastmaker-prompts-card .wp-list-table th {
    vertical-align: middle;
}

.Podcastmaker-wide-row>th {
    display: block;
    width: 100% !important;
    padding-bottom: 5px !important;
}

.Podcastmaker-wide-row>td {
    display: block;
    width: 100% !important;
    padding-left: 0 !important;
}

.Podcastmaker-ai-assistant-card {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    padding: 15px;
    margin-top: 10px;
    border-radius: 6px;
}

.Podcastmaker-ai-assistant-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.Podcastmaker-ai-assistant-card h3::before {
    content: "\f326";
    /* dashicons-translation */
    font-family: "dashicons";
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    font-size: 20px;
    line-height: 1;
    margin-right: 8px;
    vertical-align: middle;
}

.Podcastmaker-translation-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.Podcastmaker-translation-controls select {
    width: auto;
    min-width: 180px;
}

.Podcastmaker-prompts-card.card {
    max-width: 100% !important;
    margin-right: 20px;
    overflow: visible !important;
}

.Podcastmaker-prompts-card .wp-list-table {
    width: 100%;
    display: table !important;
}

.Podcastmaker-plan-section {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Plan Selection Cards */
.Podcastmaker-plan-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.Podcastmaker-plan-card {
    flex: 1;
    min-width: 320px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 24px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.Podcastmaker-plan-card.active {
    border: 2px solid #2271b1 !important;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.15);
}

.Podcastmaker-plan-card.disabled {
    background: #f6f7f7;
    opacity: 0.8;
}

.Podcastmaker-plan-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.Podcastmaker-plan-card .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    line-height: 24px;
}

.Podcastmaker-plan-card .active-badge {
    background: #00a32a;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.Podcastmaker-plan-card .pro-badge {
    background: #eba000;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.Podcastmaker-plan-card .business-badge {
    background: #722ed1;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.Podcastmaker-plan-card ul {
    margin: 16px 0 24px;
    padding-left: 0;
    list-style: none;
}

.Podcastmaker-plan-card ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #50575e;
}

.Podcastmaker-plan-card ul li .dashicons-yes {
    color: #00a32a;
}

.Podcastmaker-plan-card ul li .dashicons-no {
    color: #d63638;
}

/* Settings page controls */
.pm-toggle-button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
}

.pm-toggle-button.button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

.pm-admin-status {
    color: #646970;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: pre-line;
}

.pm-admin-status--busy {
    color: #646970;
}

.pm-admin-status--success {
    color: #00a32a;
}

.pm-admin-status--error {
    color: #d63638;
}

/* Speaker Icons */
.speaker-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f1;
    color: #50575e;
}

.speaker-type-icon.single {
    background: #e5f8ff;
    color: #2271b1;
}

.speaker-type-icon.multi {
    background: #fdf2e9;
    color: #a35200;
}

.speaker-select-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 15px;
    background: #fff;
    transition: all 0.2s ease;
}

.speaker-select-option.selected {
    border-color: #2271b1;
    background: #f0f6fa;
    box-shadow: 0 0 0 1px #2271b1;
}

.speaker-select-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f6f7f7;
}

.Podcastmaker-prompt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.Podcastmaker-prompt-list-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    flex: 1 1 100%;
}

.Podcastmaker-base-prompt-toolbar {
    margin-top: 12px;
}

.Podcastmaker-base-prompt-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.Podcastmaker-base-prompt-actions .button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.Podcastmaker-base-prompt-actions .button:disabled {
    pointer-events: none;
}

.Podcastmaker-prompt-filter-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid #dcdcde;
    border-radius: 999px;
    background: #f6f7f7;
}

.Podcastmaker-prompt-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    color: #50575e;
    text-decoration: none;
    font-weight: 600;
}

.Podcastmaker-prompt-filter:hover {
    color: #135e96;
}

.Podcastmaker-prompt-filter.is-active {
    background: #2271b1;
    color: #fff;
    box-shadow: 0 6px 18px rgba(34, 113, 177, 0.18);
}

.Podcastmaker-prompt-badge,
.Podcastmaker-mode-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.Podcastmaker-prompt-badge {
    margin-left: 8px;
}

.Podcastmaker-prompt-badge.is-single,
.Podcastmaker-mode-badge.is-single {
    background: #e7f2ff;
    color: #1565c0;
}

.Podcastmaker-prompt-badge.is-multi,
.Podcastmaker-mode-badge.is-multi {
    background: #fff0df;
    color: #a35200;
}

.Podcastmaker-prompt-badge.is-builtin {
    margin-left: 8px;
    background: #eef2f6;
    color: #475467;
}

.Podcastmaker-default-star-toggle,
.Podcastmaker-default-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #c8a100;
    cursor: pointer;
}

.Podcastmaker-default-star-toggle:hover {
    color: #a67c00;
}

.Podcastmaker-default-star.is-active {
    color: #c8a100;
}

.Podcastmaker-default-star-toggle .dashicons,
.Podcastmaker-default-star .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.Podcastmaker-prompt-set-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.Podcastmaker-prompt-set-actions a,
.Podcastmaker-prompt-set-actions button {
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
}

.Podcastmaker-prompt-set-actions .duplicate button {
    color: #00a32a;
}

.Podcastmaker-prompt-set-actions .trash button {
    color: #a00;
}

.Podcastmaker-prompt-list-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.Podcastmaker-prompt-list-actions {
    white-space: nowrap;
}

.Podcastmaker-prompt-list-actions .button-link {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: underline;
}

.Podcastmaker-prompt-editor-actions .button:disabled,
.Podcastmaker-prompt-editor-actions .button.button-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.Podcastmaker-prompt-editor-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.Podcastmaker-voice-summary-cell {
    color: #1d2327;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
}

/* ========================================
 * Settings Page: Model Selector UI
 * ======================================== */
.Podcastmaker-model-container {
    display: flex;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    background: #fff;
    height: 450px;
}

.Podcastmaker-model-sidebar {
    width: 220px;
    background: #f6f7f7;
    border-right: 1px solid #c3c4c7;
    display: flex;
    flex-direction: column;
}

.Podcastmaker-model-sidebar-item {
    padding: 12px 15px;
    border-bottom: 1px solid #c3c4c7;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2c3338;
    transition: all 0.1s ease;
}

.Podcastmaker-model-sidebar-item:hover {
    background: #f0f0f1;
}

.Podcastmaker-model-sidebar-item.active {
    background: #fff;
    border-right: 1px solid #fff;
    margin-right: -1px;
    color: #2271b1;
}

.Podcastmaker-model-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.Podcastmaker-model-pane {
    display: none;
}

.Podcastmaker-model-pane.active {
    display: block;
}

.Podcastmaker-model-table {
    width: 100%;
    border-collapse: collapse;
}

.Podcastmaker-model-table th {
    position: sticky;
    top: 0;
    background: #fcfcfc;
    z-index: 10;
    border-bottom: 2px solid #f0f0f1;
    padding: 10px 15px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    color: #646970;
}

.Podcastmaker-matrix-section {
    margin: 0 0 18px;
}

.Podcastmaker-matrix-section .description {
    margin-bottom: 12px;
}

.Podcastmaker-model-matrix {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.Podcastmaker-model-matrix th {
    position: sticky;
    top: 0;
    background: #fcfcfc;
    z-index: 10;
    border-bottom: 2px solid #f0f0f1;
    padding: 10px 15px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    color: #646970;
}

.Podcastmaker-model-matrix td {
    padding: 12px 15px;
    vertical-align: top;
    border-bottom: 1px solid #f0f0f1;
}

.Podcastmaker-model-matrix .col-enable,
.Podcastmaker-model-matrix .col-default {
    width: 56px;
    text-align: center;
}

.Podcastmaker-model-matrix .col-name {
    width: 200px;
}

.Podcastmaker-model-matrix td:last-child,
.Podcastmaker-model-matrix th:last-child {
    width: auto;
    min-width: 760px;
}

.Podcastmaker-region-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.Podcastmaker-region-card {
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.Podcastmaker-region-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
    background: linear-gradient(180deg, #fff, #fcfcfc);
}

.Podcastmaker-region-card summary::-webkit-details-marker {
    display: none;
}

.Podcastmaker-region-card summary strong {
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
}

.Podcastmaker-region-status {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #50575e;
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    white-space: nowrap;
    line-height: 1.2;
    text-align: center;
}

.Podcastmaker-region-status.is-selected {
    background: #f3f4f6;
    color: #50575e;
}

.Podcastmaker-region-status.is-hidden {
    display: none;
}

.Podcastmaker-region-status-value {
    display: block;
    font-size: 12px;
    font-weight: 600;
    width: 100%;
}

.Podcastmaker-region-pill.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.Podcastmaker-region-pill.is-disabled input {
    cursor: not-allowed;
}

.Podcastmaker-region-card-body {
    display: none;
    padding: 10px 12px 12px;
    background: #f8fafc;
    border-top: 1px solid #dcdcde;
}

.Podcastmaker-region-card[open] .Podcastmaker-region-card-body {
    display: block;
}

.Podcastmaker-region-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.Podcastmaker-region-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid #dcdcde;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.Podcastmaker-region-pill input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #2271b1;
}

.Podcastmaker-region-pill.is-active {
    border-color: #9ec5fe;
    background: #eff6ff;
    color: #2271b1;
}

.Podcastmaker-matrix-note {
    margin: 0 0 12px;
    color: #646970;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 1280px) {
    .Podcastmaker-region-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .Podcastmaker-model-matrix td:last-child,
    .Podcastmaker-model-matrix th:last-child {
        min-width: 520px;
    }
}

/* ========================================
 * Audio Analytics
 * ======================================== */
.Podcastmaker-audio-analytics {
    max-width: 1320px;
}

.Podcastmaker-analytics-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.Podcastmaker-analytics-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
    flex-wrap: wrap;
}

.Podcastmaker-analytics-periods {
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 999px;
}

.Podcastmaker-period-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #50575e;
    text-decoration: none;
    font-weight: 600;
}

.Podcastmaker-period-pill:hover {
    color: #135e96;
}

.Podcastmaker-period-pill.is-active {
    background: #2271b1;
    color: #fff;
}

.Podcastmaker-analytics-export {
    white-space: nowrap;
}

.Podcastmaker-analytics-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.Podcastmaker-analytics-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.Podcastmaker-analytics-card,
.Podcastmaker-analytics-panel {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.Podcastmaker-analytics-card {
    padding: 18px;
}

.Podcastmaker-analytics-label {
    display: block;
    font-size: 12px;
    color: #646970;
    margin-bottom: 10px;
}

.Podcastmaker-analytics-value {
    display: block;
    font-size: 30px;
    line-height: 1;
    color: #1d2327;
    margin-bottom: 10px;
}

.Podcastmaker-analytics-delta {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.Podcastmaker-analytics-delta.is-up {
    background: #edf8ef;
    color: #117c2f;
}

.Podcastmaker-analytics-delta.is-down {
    background: #fbeaea;
    color: #b32d2e;
}

.Podcastmaker-analytics-panel {
    overflow: hidden;
}

.Podcastmaker-analytics-panel__head {
    padding: 16px 18px;
    border-bottom: 1px solid #edf0f2;
}

.Podcastmaker-analytics-panel__head h2 {
    margin: 0;
    font-size: 16px;
}

.Podcastmaker-analytics-panel .widefat {
    border: 0;
    box-shadow: none;
    margin: 0;
}

.Podcastmaker-analytics-panel .widefat th,
.Podcastmaker-analytics-panel .widefat td {
    padding: 12px 14px;
    vertical-align: middle;
}

.Podcastmaker-sort-link {
    color: inherit;
    text-decoration: none;
}

.Podcastmaker-sort-link:hover {
    color: #135e96;
}

.Podcastmaker-sort-link.is-active {
    color: #135e96;
    font-weight: 700;
}

.Podcastmaker-analytics-ranking {
    list-style: none;
    margin: 0;
    padding: 0;
}

.Podcastmaker-analytics-ranking li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    border-top: 1px solid #edf0f2;
    margin: 0;
}

.Podcastmaker-analytics-ranking li:first-child {
    border-top: 0;
}

.Podcastmaker-analytics-secondary-link {
    margin-left: 8px;
    font-size: 12px;
}

.Podcastmaker-analytics-subrow {
    margin-top: 4px;
    color: #646970;
    font-size: 12px;
}

@media (max-width: 1080px) {
    .Podcastmaker-analytics-grid--4,
    .Podcastmaker-analytics-grid--2 {
        grid-template-columns: 1fr;
    }
}

.Podcastmaker-model-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: middle;
}

.Podcastmaker-model-table tr:hover {
    background: #f9f9f9;
}

.Podcastmaker-model-table .col-enable {
    width: 40px;
    text-align: center;
}

.Podcastmaker-model-table .col-default {
    width: 40px;
    text-align: center;
}

.Podcastmaker-model-table .col-name {
    white-space: nowrap;
}

.Podcastmaker-model-table label {
    display: block;
    cursor: pointer;
    font-weight: 500;
}

.Podcastmaker-model-sidebar-count {
    font-weight: normal;
    font-size: 11px;
    color: #646970;
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 10px;
}

.Podcastmaker-model-sidebar-item.active .Podcastmaker-model-sidebar-count {
    background: #2271b1;
    color: #fff;
}

/* ========================================
 * Script List Table (edit-podcastmaker_script)
 * ======================================== */
.wp-list-table.fixed {
    table-layout: fixed;
}

/* ID Column */
.fixed .column-index_id {
    width: 50px !important;
    text-align: center !important;
}

/* Content Preview Column */
table.wp-list-table th.column-preview,
table.wp-list-table td.column-preview,
.wp-list-table th.column-preview,
.wp-list-table td.column-preview,
th.column-preview,
td.column-preview {
    text-align: left !important;
    padding-left: 10px !important;
    direction: ltr !important;
    unicode-bidi: plaintext !important;
    white-space: normal !important;
    overflow: visible !important;
    vertical-align: top;
}

table.wp-list-table td.column-preview .Podcastmaker-content-preview,
.wp-list-table td.column-preview .Podcastmaker-content-preview,
td.column-preview .Podcastmaker-content-preview,
.column-preview .Podcastmaker-content-preview,
table.wp-list-table td.column-preview div,
.wp-list-table td.column-preview div,
td.column-preview div,
.column-preview .Podcastmaker-content-preview * {
    text-align: left !important;
    float: none !important;
    display: block !important;
    max-width: 100% !important;
    direction: ltr !important;
    unicode-bidi: plaintext !important;
    white-space: normal !important;
    overflow: visible !important;
    line-height: 1.5;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

/* Mode, Voices & Audio Columns */
.fixed .column-mode {
    width: 110px !important;
}

.fixed .column-voices {
    width: 220px !important;
}

.fixed .column-audio {
    width: 80px !important;
}

/* Date Column */
.fixed .column-date {
    width: 140px !important;
}

/* Title Column */
.fixed .column-title {
    width: 25% !important;
}

/* ========================================
 * Audio Analytics Dashboard Refresh
 * ======================================== */
.Podcastmaker-audio-analytics {
    max-width: 1360px;
}

.Podcastmaker-page-title {
    margin: 0 0 16px;
    font-size: 23px;
    font-weight: 400;
    color: #1d2327;
}

.Podcastmaker-period-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.Podcastmaker-period-bar__controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.Podcastmaker-period-bar__label {
    font-weight: 600;
    color: #3c434a;
}

.Podcastmaker-period-bar__separator {
    color: #c3c4c7;
}

.Podcastmaker-period-bar__range {
    color: #646970;
}

.Podcastmaker-period-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 4px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    background: #fff;
    color: #3c434a;
    font-size: 13px;
    text-decoration: none;
}

.Podcastmaker-period-button:hover {
    color: #135e96;
    border-color: #2271b1;
}

.Podcastmaker-period-button.is-active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.Podcastmaker-export-button {
    min-height: 32px;
    padding-inline: 14px;
}

.Podcastmaker-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.Podcastmaker-kpi-card {
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
}

.Podcastmaker-kpi-card.is-green {
    border-left-color: #00a32a;
}

.Podcastmaker-kpi-card.is-purple {
    border-left-color: #8c5fc8;
}

.Podcastmaker-kpi-card.is-orange {
    border-left-color: #dba617;
}

.Podcastmaker-kpi-card__label {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #646970;
}

.Podcastmaker-kpi-card__value {
    margin-bottom: 6px;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    color: #1d2327;
}

.Podcastmaker-kpi-card__meta {
    font-size: 12px;
    color: #646970;
}

.Podcastmaker-kpi-card__meta.is-up {
    color: #00a32a;
    font-weight: 600;
}

.Podcastmaker-kpi-card__meta.is-down {
    color: #d63638;
    font-weight: 600;
}

.Podcastmaker-kpi-card__meta.is-flat {
    color: #646970;
}

.Podcastmaker-chart-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.Podcastmaker-chart-grid--primary {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
}

.Podcastmaker-chart-grid--secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.Podcastmaker-dashboard-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
}

.Podcastmaker-dashboard-card--table {
    margin-bottom: 16px;
}

.Podcastmaker-dashboard-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f1;
}

.Podcastmaker-dashboard-card__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.Podcastmaker-dashboard-card__subtitle {
    margin: 4px 0 0;
    font-size: 11px;
    color: #646970;
}

.Podcastmaker-dashboard-card__aside,
.Podcastmaker-dashboard-card__footer {
    font-size: 12px;
    color: #646970;
}

.Podcastmaker-dashboard-card__body {
    padding: 16px;
}

.Podcastmaker-dashboard-card__body--tight {
    padding: 12px;
}

.Podcastmaker-chart-wrap {
    position: relative;
    width: 100%;
}

.Podcastmaker-chart-wrap--trend {
    height: 260px;
}

.Podcastmaker-chart-wrap--hour {
    height: 260px;
}

.Podcastmaker-chart-wrap--scatter {
    height: 330px;
}

.Podcastmaker-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.Podcastmaker-chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    color: #646970;
    font-size: 13px;
    text-align: center;
}

.Podcastmaker-retention-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.Podcastmaker-retention-item__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
    font-size: 12px;
}

.Podcastmaker-retention-item__label {
    font-weight: 600;
    color: #3c434a;
}

.Podcastmaker-retention-item__value {
    font-weight: 700;
    color: #1d2327;
}

.Podcastmaker-retention-item__value.is-complete {
    color: #00a32a;
}

.Podcastmaker-retention-bar {
    height: 10px;
    overflow: hidden;
    background: #f0f0f1;
    border-radius: 5px;
}

.Podcastmaker-retention-bar__fill {
    display: block;
    height: 100%;
    border-radius: 5px;
}

.Podcastmaker-quadrant-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #646970;
}

.Podcastmaker-quadrant-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.Podcastmaker-quadrant-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.Podcastmaker-quadrant-legend .is-top {
    background: #2271b1;
}

.Podcastmaker-quadrant-legend .is-gem {
    background: #00a32a;
}

.Podcastmaker-quadrant-legend .is-work {
    background: #dba617;
}

.Podcastmaker-quadrant-legend .is-low {
    background: #c3c4c7;
}

.Podcastmaker-dashboard-table-wrap {
    overflow-x: auto;
}

.Podcastmaker-analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.Podcastmaker-analytics-table th {
    padding: 8px 12px;
    background: #f0f0f1;
    border-bottom: 1px solid #c3c4c7;
    text-align: left;
    font-weight: 600;
    color: #1d2327;
    white-space: nowrap;
}

.Podcastmaker-analytics-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: middle;
}

.Podcastmaker-analytics-table tbody tr:hover td {
    background: #f6f7f7;
}

.Podcastmaker-analytics-table tbody tr:last-child td {
    border-bottom: none;
}

.Podcastmaker-table-empty {
    color: #646970;
    text-align: center;
}

.Podcastmaker-rank-cell {
    font-weight: 700;
    color: #646970;
}

.Podcastmaker-voice-name-cell {
    font-weight: 600;
}

.Podcastmaker-inline-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.Podcastmaker-inline-bar__track {
    width: 80px;
    height: 8px;
    overflow: hidden;
    background: #f0f0f1;
    border-radius: 4px;
    flex-shrink: 0;
}

.Podcastmaker-inline-bar__fill {
    display: block;
    height: 100%;
    border-radius: 4px;
}

.Podcastmaker-inline-bar__value {
    font-weight: 700;
    white-space: nowrap;
}

.Podcastmaker-post-title-cell {
    max-width: 300px;
}

.Podcastmaker-post-title-cell__title {
    margin-bottom: 2px;
    font-weight: 600;
    color: #1d2327;
}

.Podcastmaker-post-title-cell__meta {
    font-size: 11px;
    color: #646970;
}

.Podcastmaker-post-title-cell__meta a {
    color: #2271b1;
    text-decoration: none;
}

.Podcastmaker-post-title-cell__meta a:hover {
    text-decoration: underline;
}

.Podcastmaker-post-title-cell__separator {
    color: #c3c4c7;
}

.Podcastmaker-voice-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.Podcastmaker-voice-tag.is-primary {
    background: #dce7f4;
    color: #2271b1;
}

.Podcastmaker-voice-tag.is-muted {
    background: #f0f0f1;
    color: #646970;
}

.Podcastmaker-voice-tag.is-mixed {
    background: #f3e8ff;
    color: #7c3aed;
}

.Podcastmaker-strong-value {
    font-weight: 700;
}

.Podcastmaker-data-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    color: #646970;
    font-size: 12px;
}

.Podcastmaker-data-note strong {
    color: #3c434a;
}

@media (max-width: 1200px) {
    .Podcastmaker-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .Podcastmaker-chart-grid--primary,
    .Podcastmaker-chart-grid--secondary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 782px) {
    .Podcastmaker-kpi-grid {
        grid-template-columns: 1fr;
    }

    .Podcastmaker-period-bar {
        align-items: stretch;
    }

    .Podcastmaker-dashboard-card__header {
        flex-direction: column;
    }

    .Podcastmaker-chart-wrap--trend,
    .Podcastmaker-chart-wrap--hour,
    .Podcastmaker-chart-wrap--scatter {
        height: 260px;
    }
}
