.ip-layout-grid {
    grid-template-columns: 1fr !important;
}

.ip-queue-card {
    display: block !important;
}

.ip-queue-body {
    padding: 1.25rem !important;
}

.ip-queue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.ip-queue-actions form {
    margin: 0;
}

.ip-queue-actions .ip-btn {
    min-width: 118px;
    white-space: nowrap;
    font-weight: 400;
    font-size: 0.95rem;
    padding: 0.22rem 0.68rem;
    line-height: 1.05;
    min-height: 36px;
}

.pm-meta-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
    color: #5a6f8d;
    margin-bottom: 10px;
    font-size: 1.02rem;
    white-space: nowrap;
}

.pm-main-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    min-width: 0;
}

.pm-index {
    color: #1a2436;
    font-weight: 700;
}

.pm-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    vertical-align: middle;
}

.pm-status-ok {
    background: #23a55a;
    color: #fff;
}

.pm-status-bad {
    background: #e55353;
    color: #fff;
}

.pm-hint {
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid #f1b8b8;
    border-radius: 8px;
    background: #fff3f3;
    color: #a33434;
    font-size: 0.92rem;
}

.ip-queue-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.pm-file-name {
    color: #1a2436;
    font-weight: 600;
}

.pm-inline-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    min-width: 0;
}

.pm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 16px;
}

.pm-modal-backdrop.is-open {
    display: flex;
}

.pm-modal {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dbe5f1;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.22);
    padding: 18px;
}

.pm-modal h4 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.pm-modal p {
    margin: 0 0 14px;
    color: #4f6482;
}

.pm-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.pm-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 16px;
}

.pm-action-row .ip-btn {
    font-weight: 400;
}

.pm-action-row.is-processing .ip-btn {
    opacity: 0.75;
    cursor: wait;
}

.ps-textarea {
    width: 100%;
    min-height: 132px;
    border: 1px solid #d3dde8;
    border-radius: 8px;
    padding: 12px;
    resize: vertical;
    background: #fff;
}

.ps-helper-box {
    margin: 14px 0 10px;
    padding: 14px 16px;
    border: 1px solid #dbe5f1;
    border-radius: 12px;
    background: #f8fbff;
    color: #4f6482;
}

.ps-helper-box strong,
.ps-helper-box p {
    display: block;
    margin: 0 0 8px;
}

.ps-helper-box p:last-child {
    margin-bottom: 0;
}

.ps-doc-card,
.ps-part-card {
    grid-template-columns: 1fr !important;
}
