
.pc-machine-hero__actions--cdi {
    flex-wrap: wrap;
}

.pc-machine-hero__cdi-loading {
    display: inline-flex;
    align-items: center;
}

.pc-machine-hero__cdi-loading[hidden] {
    display: none;
}

.pc-machine-hero__cdi-loading--error {
    flex-wrap: wrap;
    gap: 8px;
    max-width: 360px;
    color: #5b6770;
    font-size: 13px;
    line-height: 1.35;
}

.pc-machine-hero__cdi-retry {
    appearance: none;
    padding: 3px 8px;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    color: var(--ac-blue);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.pc-machine-hero__cdi-retry:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.pc-machine-hero__cdi-retry:focus-visible {
    outline: 2px solid var(--ac-blue);
    outline-offset: 2px;
}

.cdi-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: cdi-spin 0.7s linear infinite;
}

@keyframes cdi-spin {
    to { transform: rotate(360deg); }
}

#cdi-upload-drawer .pc-drawer__body {
    max-width: 640px;
}

#cdi-upload-form {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 20px;
}

#cdi-upload-form [hidden] {
    display: none !important;
}

.cdi-upload-intro {
    margin: 0;
    color: #5b6770;
    font-size: 14px;
    line-height: 1.45;
}

.cdi-machine-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    overflow: hidden;
    border: 1px solid #e3e7ea;
    border-radius: 8px;
    background: #f7f9fa;
}

.cdi-machine-summary > div {
    min-width: 0;
    padding: 12px 14px;
    border-right: 1px solid #e3e7ea;
}

.cdi-machine-summary > div:last-child {
    border-right: 0;
}

.cdi-machine-summary dt {
    margin: 0 0 4px;
    color: #5b6770;
    font-size: 12px;
    font-weight: 600;
}

.cdi-machine-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #2f363a;
    font-size: 14px;
    font-weight: 600;
}

.cdi-form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cdi-form-section__title {
    margin: 0;
    color: #2f363a;
    font-size: 18px;
    font-weight: 700;
}

.cdi-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.cdi-field-row > .pc-drawer__field {
    flex: 1 1 180px;
}

.cdi-field-help {
    color: #6f787f;
    font-size: 12px;
    line-height: 1.35;
}

.cdi-field-error {
    color: #9c1f1f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

#cdi-upload-form [aria-invalid="true"] {
    outline: 2px solid #c43b3b;
    outline-offset: 2px;
}

.cdi-readonly-value {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d8dde1;
    border-radius: 4px;
    background: #f1f3f5;
    color: #2f363a;
    font-size: 16px;
}

.cdi-dropzone {
    padding: 24px;
    border: 1px dashed #b7c0c8;
    border-radius: 8px;
    background: #f7f9fa;
    color: #5b6770;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}

.cdi-dropzone p {
    margin: 0 0 14px;
}

.cdi-dropzone.is-dragover {
    border-color: #0084c9;
    background: #eaf6fc;
}

.cdi-choose-file {
    min-height: 40px;
    padding: 8px 18px;
}

.cdi-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.cdi-file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #e3e7ea;
    border-radius: 6px;
    font-size: 14px;
}

.cdi-file-name {
    min-width: 0;
    overflow: hidden;
    flex: 1 1 auto;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.cdi-file-size {
    flex: 0 0 auto;
    color: #7c858c;
}

.cdi-file-remove {
    flex: 0 0 auto;
    padding: 4px;
    border: 0;
    background: none;
    color: #9c1f1f;
    cursor: pointer;
    font-weight: 600;
}

.cdi-file-remove:focus-visible {
    outline: 2px solid #0084c9;
    outline-offset: 2px;
}

.cdi-terms {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cdi-terms__box {
    max-height: 220px;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid #d8dde1;
    border-radius: 8px;
    background: #f7f9fa;
    color: #2f363a;
    font-size: 14px;
    line-height: 1.5;
}

.cdi-terms__title {
    margin: 0 0 8px;
    color: #002e5d;
    font-size: 15px;
    font-weight: 700;
}

.cdi-terms__box p {
    margin: 0 0 8px;
}

.cdi-terms__list {
    margin: 8px 0 0;
    padding-left: 20px;
}

.cdi-terms__list > li {
    margin-bottom: 10px;
}

.cdi-terms__list ul {
    margin: 6px 0;
    padding-left: 20px;
}

.cdi-terms__list ul li {
    margin-bottom: 4px;
}

.cdi-terms__notice {
    margin: 0;
    color: #2f363a;
    font-size: 14px;
    line-height: 1.45;
}

.cdi-terms__notice a {
    color: var(--pc-accent-dark);
    font-weight: 600;
}

.cdi-terms__accept {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #2f363a;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.cdi-terms__accept input {
    margin-top: 3px;
}

.cdi-status {
    padding: 10px 14px;
    border: 1px solid #e3e7ea;
    border-radius: 8px;
    background: #eef1f3;
    color: #5b6770;
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

.cdi-status--error {
    border-color: #f1a8a8;
    background: #fad7d7;
    color: #9c1f1f;
}

.cdi-status--success {
    border-color: #a8ddbb;
    background: #ddf3e4;
    color: #1e7d46;
}

.cdi-progress {
    margin: 0;
}

.cdi-progress__track {
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: #e3e7ea;
}

.cdi-progress__bar {
    width: 0;
    height: 100%;
    border-radius: 3px;
    background: #0084c9;
    transition: width 0.2s;
}

.cdi-progress--indeterminate .cdi-progress__bar {
    animation: cdi-progress-indeterminate 1.2s ease-in-out infinite;
}

.cdi-progress__label {
    display: block;
    margin-top: 6px;
    color: #5b6770;
    font-size: 13px;
}

@keyframes cdi-progress-indeterminate {
    from { transform: translateX(-120%); }
    to { transform: translateX(300%); }
}

#cdi-upload-form .pc-btn:disabled,
#close-cdi-upload-drawer:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.pc-page.ig-tabs-collapsed {
    display: none !important;
}

.cdi-doc-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: #eef1f3;
    color: #5b6770;
    font-size: 12px;
    font-weight: 600;
}

.cdi-doc-card {
    align-items: stretch;
}

.cdi-doc-card .pc-ig-card__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    aspect-ratio: 4 / 3;
    background: var(--pc-bg-warm);
}

.cdi-doc-card .pc-ig-card__thumb a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cdi-doc-glyph {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.cdi-doc-type {
    color: var(--pc-accent-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cdi-doc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.cdi-doc-card .pc-ig-card__download {
    align-self: center;
    margin: 0 0 14px;
}

.cdi-doc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.cdi-doc-search {
    position: relative;
    flex: 1 1 240px;
    max-width: 400px;
}

.cdi-doc-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.cdi-doc-search input {
    height: 48px;
    padding-left: 42px;
}

.cdi-doc-filter {
    width: auto;
    flex: 0 1 260px;
    min-width: 200px;
}

.cdi-doc-filter select {
    padding-right: 24px;
}

.cdi-doc-empty {
    margin: 8px 0 0;
    color: #5b6770;
    font-size: 14px;
}

@media (max-width: 600px) {
    .cdi-machine-summary {
        grid-template-columns: 1fr;
    }

    .cdi-machine-summary > div {
        border-right: 0;
        border-bottom: 1px solid #e3e7ea;
    }

    .cdi-machine-summary > div:last-child {
        border-bottom: 0;
    }

    .cdi-file-row {
        flex-wrap: wrap;
    }

    .cdi-doc-search {
        max-width: none;
        flex-basis: 100%;
    }

    .cdi-doc-filter {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cdi-progress--indeterminate .cdi-progress__bar {
        animation: none;
    }
}
