
.apb-rating {
    display: flex;
    gap: 4px;
    align-items: center;
}

.apb-star {
    background: none;
    border: none;
    padding: 2px;
    font-size: 28px;
    color: #d1d5db;
    cursor: pointer;
    line-height: 1;
    transition: color 0.1s, transform 0.1s;
}

.apb-star:hover,
.apb-star.apb-star-hover,
.apb-star.apb-star-active {
    color: #f59e0b;
}

.apb-star:hover {
    transform: scale(1.15);
}

.apb-file-drop {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
}

.apb-file-drop-over {
    border-color: #2563eb;
    background: #eff6ff;
}

.apb-file-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 16px;
    pointer-events: none;
}

.apb-file-drop-icon {
    font-size: 28px;
    line-height: 1;
}

.apb-file-drop-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.apb-file-drop-hint {
    font-size: 12px;
    color: #6b7280;
}

.apb-file-chips {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 10px 10px;
}

.apb-file-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.apb-file-chip-uploading {
    border-color: #93c5fd;
}

.apb-file-chip-done {
    border-color: #86efac;
}

.apb-file-chip-error {
    border-color: #fca5a5;
    background: #fff7f7;
    color: #dc2626;
}

.apb-file-chip-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.apb-file-chip-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111827;
}

.apb-file-chip-error .apb-file-chip-name {
    color: #dc2626;
}

.apb-file-chip-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e5e7eb;
}

.apb-file-chip-bar {
    height: 100%;
    background: #2563eb;
    width: 0%;
    transition: width 0.2s;
}

.apb-file-chip-done .apb-file-chip-bar {
    background: #22c55e;
}

.apb-file-chip-remove {
    background: none;
    border: none;
    padding: 0 2px;
    font-size: 16px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    flex-shrink: 0;
}

.apb-file-chip-remove:hover {
    color: #dc2626;
}

.apb-draft-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 14px;
    color: #1e40af;
    line-height: 1.5;
}

.apb-draft-banner-text {
    flex: 1;
    min-width: 180px;
}

.apb-draft-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.apb-draft-btn {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
    border: none;
    transition: background 0.15s;
}

.apb-draft-btn-resume {
    background: #2563eb;
    color: #fff;
}

.apb-draft-btn-resume:hover {
    background: #1d4ed8;
}

.apb-draft-btn-discard {
    background: transparent;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.apb-draft-btn-discard:hover {
    background: #dbeafe;
}

.apb-repeater {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    padding: 12px;
}

.apb-repeater-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.apb-repeater-row {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 14px;
}

.apb-repeater-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.apb-repeater-row-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.apb-repeater-row-number {
    color: #9ca3af;
    font-weight: 400;
}

.apb-repeater-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}

.apb-repeater-remove:hover {
    background: #fef2f2;
}

.apb-repeater-remove:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: transparent;
}

.apb-repeater-subfield {
    margin-bottom: 10px;
}

.apb-repeater-subfield:last-child {
    margin-bottom: 0;
}

.apb-repeater-add {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    background: #fff;
    border: 1px dashed #d1d5db;
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
}

.apb-repeater-add:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.apb-repeater-add:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #fff;
    border-color: #d1d5db;
}

.apb-field-calculated .apb-calculated-display {
    background: #f9fafb;
    cursor: default;
    color: #374151;
    font-weight: 600;
}

.apb-field-calculated .apb-calculated-display:focus {
    border-color: #d1d5db;
    box-shadow: none;
}
