/* AI Image Prompt Creator */
.ipc-page { max-width: 1100px; }
.ipc-setup-alert { margin-bottom: 1rem; }
.ipc-title-input { font-size: 1.05rem !important; font-weight: 600; }
.ipc-project-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.ipc-project-row select { flex: 1 1 200px; }
.ipc-project-chip {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: #1e293b;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
}
.ipc-sizes-compact .ipc-size-desc { display: none; }
.ipc-sizes-compact .ipc-size-card { min-height: 110px; }
.ipc-manage {
    margin-top: 1.25rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid #fdba74;
    border-radius: 12px;
    background: #fff;
}
.ipc-manage-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.ipc-manage-head h3 { margin: 0; }
.ipc-project-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.ipc-plist-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}
.ipc-plist-meta { display: block; font-size: 0.78rem; color: #475569; margin-top: 0.15rem; }
.ipc-plist-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ipc-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 960px) {
    .ipc-layout {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }
}
.ipc-form.card,
.ipc-result.card {
    padding: 1.15rem 1.25rem;
    border: 1px solid #fdba74;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.ipc-section { margin-bottom: 0.95rem; }
.ipc-label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: #0a0f1a;
    margin-bottom: 0.35rem;
}
.ipc-hint {
    font-size: 0.8rem;
    color: #334155;
    margin: 0 0 0.55rem;
}
.ipc-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}
.ipc-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    cursor: pointer;
}
.ipc-radio input { accent-color: #ea580c; width: auto; appearance: auto; }

.ipc-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    margin: 0;
}
.ipc-check:hover {
    border-color: #fb923c;
    background: #fff7ed;
}
.ipc-check.is-on {
    border-color: #ea580c;
    background: #fff7ed;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}
.ipc-check input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: #ea580c;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    cursor: pointer;
}
.ipc-check-title {
    display: block;
    font-weight: 800;
    font-size: 0.9rem;
    color: #0a0f1a;
}
.ipc-check-hint {
    display: block;
    font-size: 0.78rem;
    color: #475569;
    font-weight: 500;
    margin-top: 0.15rem;
    line-height: 1.35;
}
.ipc-text-extra {
    margin-top: 0.55rem;
}
.ipc-text-chip {
    font-size: 0.8rem;
    line-height: 1.35;
    color: #7c2d12;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    margin: 0 0 0.75rem;
}

.ipc-frames {
    grid-template-columns: 1fr 1fr;
    max-width: 280px;
}
.ipc-frames .ipc-size-card {
    min-height: 0;
    padding: 0.45rem 0.4rem 0.5rem;
}

/* Visual size cards */
.ipc-sizes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 0.65rem;
}
.ipc-size-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.65rem 0.5rem 0.7rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    text-align: center;
    min-height: 148px;
}
.ipc-size-card:hover {
    border-color: #fb923c;
    background: #fff7ed;
}
.ipc-size-card.is-selected {
    border-color: #ea580c;
    background: #fff7ed;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}
.ipc-size-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ipc-size-frame-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    margin-bottom: 0.15rem;
}
.ipc-size-frame {
    display: block;
    max-width: 72px;
    max-height: 52px;
    width: 100%;
    background: linear-gradient(145deg, #fdba74 0%, #ea580c 100%);
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
    opacity: 0.9;
}
.ipc-size-label {
    font-weight: 800;
    font-size: 0.82rem;
    color: #0a0f1a;
}
.ipc-size-ratio {
    font-size: 0.78rem;
    font-weight: 700;
    color: #c2410c;
}
.ipc-size-px {
    font-size: 0.7rem;
    font-weight: 600;
    color: #1e293b;
}
.ipc-size-desc {
    font-size: 0.65rem;
    line-height: 1.25;
    color: #475569;
    margin-top: 0.1rem;
}

/* More options */
.ipc-more {
    margin: 0.5rem 0 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fafafa;
    padding: 0.35rem 0.75rem 0.5rem;
}
.ipc-more > summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e293b;
    padding: 0.45rem 0;
    list-style: none;
}
.ipc-more > summary::-webkit-details-marker { display: none; }
.ipc-more > summary::before {
    content: '▸ ';
    color: #ea580c;
}
.ipc-more[open] > summary::before { content: '▾ '; }
.ipc-more-body { padding-bottom: 0.35rem; }
.ipc-grid2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 0.75rem;
}
@media (min-width: 560px) {
    .ipc-grid2 { grid-template-columns: 1fr 1fr; }
}
.ipc-safety-note {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #334155;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    margin-top: 0.35rem;
}
.ipc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.ipc-status {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
}

/* Result */
.ipc-result-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.ipc-result-head h3 { margin: 0; font-size: 1.1rem; }
.ipc-result-meta {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c2410c;
}
.ipc-scene-chip {
    font-size: 0.8rem;
    line-height: 1.35;
    color: #1e3a5f;
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    margin: 0 0 0.75rem;
}
.ipc-result-block { margin-bottom: 0.9rem; }
.ipc-result-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}
.ipc-out {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.45;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    resize: vertical;
}
#ipcNotes {
    margin: 0.35rem 0 0 1.1rem;
    font-size: 0.85rem;
    color: #334155;
}
