html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* 共用檔案上傳控件(搭配 site.js 的 .js-file-upload 增強器) */
.file-upload-native {
    position: absolute !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d4d4d8;
    background: #fff;
    color: #111827;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

    .file-upload-btn:hover {
        background: #f4f4f5;
    }

.file-upload-list {
    margin-top: 8px;
    display: grid;
    gap: 4px;
}

.file-upload-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    background: #fafafa;
}

    .file-upload-item .fn {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.file-upload-remove {
    border: none;
    background: transparent;
    color: #b0332a;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

    .file-upload-remove:hover {
        color: #7f1d1d;
    }
