/* Optional refinement 3: a matching Paper Size pill and a calmer print button. */
body.index-page .bottom-controls-cluster > .paper-size-control {
    width: auto;
    justify-self: center;
    gap: 8px;
    padding: 4px 10px 4px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 999px;
    background-color: #fafafa;
}

body.index-page .paper-size-control label {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    color: #757575;
}

body.index-page .paper-size-select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 3.1em;
    padding: 2px 18px 2px 2px;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2378909c' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 10px auto;
    color: #212121;
    font-weight: 600;
    line-height: 1.3;
}

body.index-page .paper-size-select:focus {
    outline: none;
}

body.index-page .paper-size-control:focus-within {
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}

body.index-page .print-btn {
    border-radius: 8px;
    background-color: #15803d;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(21, 128, 61, 0.16);
}

body.index-page .print-btn:hover {
    background-color: #166534;
}

body.index-page.dark-mode .bottom-controls-cluster > .paper-size-control {
    background-color: #2a2a2a;
    border-color: #5a5a5a;
}

body.index-page.dark-mode .paper-size-control label {
    color: #aaaaaa;
}

body.index-page.dark-mode .paper-size-select {
    color: #e0e0e0;
    color-scheme: dark;
}
