.screen-format-picker-button {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px;
    padding: 13px 14px; border: 1px solid #cfdcf0; border-radius: 12px;
    background: #f5f8ff; color: #1d3559; text-align: left; cursor: pointer;
    font: inherit; transition: background .15s, border-color .15s;
}
.screen-format-picker-button:hover { background: #edf3ff; border-color: #86acf0; }
.screen-format-picker-button > svg { flex: 0 0 24px; width: 24px; height: 24px; fill: none; stroke: #3976d6; stroke-width: 1.7; }
.screen-format-picker-button > span { flex: 1; min-width: 0; display: grid; gap: 5px; }
.screen-format-picker-button strong { font-size: 14px; font-weight: 650; }
.screen-format-picker-button small { color: #63758f; font-size: 12px; line-height: 1.35; }
.screen-format-picker-button .format-picker-chevron { flex-basis: 16px; width: 16px; height: 16px; }
.format-picker {
    box-sizing: border-box; width: min(1020px, calc(100vw - 48px)); max-width: none;
    max-height: min(850px, calc(100dvh - 48px)); padding: 0; margin: auto;
    border: 1px solid #e0e7f1; border-radius: 24px; overflow: hidden;
    background: #fff; color: #172b49; box-shadow: 0 28px 100px #182d5540;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.format-picker::backdrop { background: #15233966; backdrop-filter: blur(4px); }
.format-picker[open] { display: flex; }
.format-picker *, .format-picker *::before, .format-picker *::after { box-sizing: border-box; }
.format-picker [hidden] { display: none !important; }
.format-picker-shell { display: flex; flex-direction: column; width: 100%; min-height: 0; max-height: inherit; }
.format-picker-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 26px 30px 20px; flex-shrink: 0; }
.format-picker-eyebrow { margin: 0 0 6px; color: #7a88a0; font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.format-picker h2 { margin: 0; font-size: 27px; line-height: 1.25; font-weight: 700; letter-spacing: -.6px; }
.format-picker button { font-family: inherit; -webkit-tap-highlight-color: transparent; cursor: pointer; }
#screen-format-picker button { margin: 0; width: auto; max-width: none; min-width: 0; line-height: 1.4; transition: none; }
#screen-format-picker .format-picker-card { width: 100%; background: #fff; color: #172b49; }
.format-picker-close { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #f2f5fa; color: #687a94; }
.format-picker-close:hover { background: #e7edf7; color: #243c62; }
.format-picker-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.format-picker-tabs { display: flex; gap: 5px; align-self: flex-start; margin: 0 30px 22px; padding: 5px; border-radius: 13px; background: #f0f4fa; flex-shrink: 0; }
.format-picker-tabs button { min-height: 40px; padding: 0 25px; border: 0; border-radius: 9px; background: transparent; color: #6b7b94; font-size: 14px; font-weight: 650; white-space: nowrap; }
.format-picker-tabs button[aria-selected="true"] { background: #fff; color: #2464c6; box-shadow: 0 2px 6px #2c447612; }
.format-picker-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 30px 26px; scrollbar-gutter: stable; }
.format-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.format-picker-card { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 0; border: 1.5px solid #e0e7f0; border-radius: 17px; background: #fff; text-align: left; overflow: hidden; color: inherit; transition: border-color .15s, box-shadow .15s; }
.format-picker-card:hover { border-color: #94b5e9; box-shadow: 0 5px 16px #284f8910; }
.format-picker-card[aria-checked="true"] { border-color: #3979e5; box-shadow: 0 0 0 2px #3979e51a; }
.format-picker-art { position: relative; display: flex; justify-content: center; align-items: center; height: 132px; background: #f6f8fc; flex-shrink: 0; }
.format-picker-art img { width: 124px; height: 124px; object-fit: contain; mix-blend-mode: multiply; }
.format-picker-paper-badge { position: absolute; top: 13px; left: 14px; color: #7185a4; font-size: 11px; font-weight: 750; letter-spacing: .03em; }
.format-picker-check { display: none; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: #3979e5; color: #fff; }
.format-picker-check svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.format-picker-card[aria-checked="true"] .format-picker-check { display: block; }
.format-picker-card-copy { display: flex; flex: 1; flex-direction: column; padding: 16px 17px 18px; }
.format-picker-card-title { display: block; font-size: 15px; line-height: 1.4; font-weight: 700; letter-spacing: -.15px; }
.format-picker-size { display: block; margin-top: 6px; color: #3569b7; font-size: 13px; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; }
.format-picker-feature { display: block; margin-top: 10px; color: #738198; font-size: 12px; line-height: 1.55; font-weight: 400; }
.format-picker-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-shrink: 0; padding: 18px 30px; border-top: 1px solid #e8edf4; background: #fff; }
.format-picker-selection { margin: 0; max-width: 430px; color: #6d7d96; font-size: 12px; line-height: 1.5; }
.format-picker-actions { display: flex; gap: 10px; flex-shrink: 0; }
.format-picker-actions button { min-height: 43px; padding: 0 20px; border-radius: 10px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.format-picker-cancel { border: 1px solid #dce4ef; background: #fff; color: #63738a; }
.format-picker-cancel:hover { background: #f4f7fb; }
.format-picker-confirm { border: 1px solid #2f6dd4; background: #3979e5; color: #fff; }
.format-picker-confirm:hover:not(:disabled) { background: #2464d1; }
.format-picker-confirm:disabled { cursor: default; opacity: .4; }
.format-picker button:focus-visible, .screen-format-picker-button:focus-visible { outline: 3px solid #6a9ef6; outline-offset: 3px; }
.format-picker-card:focus-visible { outline-offset: -4px; }
@media (max-width: 760px) {
    .format-picker { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 20px; }
    .format-picker-header { padding: 22px 20px 17px; }
    .format-picker h2 { font-size: 24px; }
    .format-picker-tabs { margin: 0 20px 18px; }
    .format-picker-body { padding: 0 20px 20px; }
    .format-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .format-picker-footer { padding: 15px 20px; }
    .format-picker-selection { max-width: 210px; }
}
@media (max-width: 480px) {
    .format-picker { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 17px; }
    .format-picker-header { padding: 19px 16px 15px; }
    .format-picker h2 { font-size: 22px; }
    .format-picker-tabs { display: grid; grid-template-columns: 1.4fr 1fr 1fr; align-self: stretch; margin: 0 16px 16px; gap: 2px; }
    .format-picker-tabs button { min-height: 40px; padding: 0 8px; font-size: 13px; }
    .format-picker-body { padding: 0 16px 16px; }
    .format-picker-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .format-picker-card { flex-direction: row; align-items: stretch; border-radius: 14px; }
    .format-picker-art { width: 98px; height: auto; min-height: 146px; }
    .format-picker-art img { width: 94px; height: 94px; }
    .format-picker-paper-badge { top: 10px; left: 10px; font-size: 10px; }
    .format-picker-check { width: 20px; height: 20px; top: auto; bottom: 9px; right: 9px; }
    .format-picker-check svg { width: 20px; height: 20px; }
    .format-picker-card-copy { padding: 13px 13px 14px; }
    .format-picker-card-title { font-size: 14px; }
    .format-picker-size { margin-top: 5px; font-size: 12px; }
    .format-picker-feature { margin-top: 8px; font-size: 11px; }
    .format-picker-footer { display: block; padding: 12px 16px 15px; }
    .format-picker-selection { max-width: none; margin-bottom: 10px; font-size: 11px; }
    .format-picker-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
    .format-picker-actions button { min-height: 44px; padding: 0 10px; font-size: 12px; }
}
