.openread-page { margin: 0; background: #f3f6fa; color: #182536; font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; color-scheme: light; }
.openread-page * { box-sizing: border-box; }
.openread-page main { max-width: 1080px; margin: auto; padding: 32px 24px; }
.openread-page header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.openread-page h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.03em; }
.openread-page .openread-eyebrow { color: #456a94; font-size: 12px; font-weight: 750; letter-spacing: .16em; margin: 0 0 4px; }
.openread-page a, .openread-box a { color: #195db3; text-underline-offset: 3px; }
.openread-page header > a { white-space: nowrap; }
.openread-page section, .openread-page form, .openread-box { background: #fff; border: 1px solid #d5deea; border-radius: 12px; padding: 24px; margin: 16px 0; min-width: 0; }
.openread-page h2, .openread-box h3 { font-size: 20px; line-height: 1.4; margin-top: 0; overflow-wrap: anywhere; }
.openread-page h2 { margin-bottom: 16px; }
.openread-page p { overflow-wrap: anywhere; }
.openread-page .openread-announcement { background: #edf4ff; border: 1px solid #b8d0f0; border-left: 4px solid #195db3; border-radius: 10px; padding: 20px 24px; margin-bottom: 24px; }
.openread-page .openread-announcement h2 { margin-bottom: 8px; }
.openread-page .openread-announcement p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.openread-page .openread-tabs { display: flex; gap: 6px; border-bottom: 1px solid #ccd8e7; padding: 6px; overflow-x: auto; scrollbar-width: thin; }
.openread-page button { min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: 7px; background: #195db3; color: #fff; cursor: pointer; font: inherit; font-weight: 600; }
.openread-page button:hover:not(:disabled) { background: #124a91; }
.openread-page button:disabled { opacity: .6; cursor: not-allowed; }
.openread-page .openread-tabs button { flex: 1 0 auto; color: #43566e; background: transparent; padding: 12px 18px; white-space: nowrap; }
.openread-page .openread-tabs button:hover { background: #e2eaf5; color: #164b8e; }
.openread-page .openread-tabs button[aria-selected="true"] { background: #195db3; color: #fff; }
.openread-page .openread-panel { padding-top: 24px; }
.openread-page .openread-panel-title { font-size: 23px; margin: 0 0 20px; }
.openread-page label { display: block; margin: 14px 0; color: #34485f; }
.openread-page input:not([type="hidden"]), .openread-page select, .openread-page textarea { display: block; width: 100%; max-width: 680px; padding: 11px 12px; margin-top: 6px; border: 1px solid #8293a7; border-radius: 6px; background: #fff; color: #182536; font: inherit; }
.openread-page textarea { resize: vertical; }
.openread-page :is(button, a, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid #125abc; outline-offset: 3px; }
.openread-page .openread-secondary { color: #174e90; background: #eaf1fa; border-color: #b6cbe4; white-space: nowrap; padding: 8px 12px; font-size: 14px; }
.openread-page .openread-secondary:hover:not(:disabled) { background: #d7e6f8; }
.openread-page .openread-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.openread-page .openread-stats p { border: 1px solid #e0e8f1; background: #f7faff; border-radius: 8px; padding: 14px; margin: 0; }
.openread-page .openread-stats span { display: block; color: #526478; font-size: 14px; }
.openread-page .openread-stats strong { display: block; margin-top: 4px; font-size: 21px; }
.openread-page .openread-table { overflow-x: auto; overscroll-behavior-inline: contain; }
.openread-page table { width: 100%; border-collapse: collapse; font-size: 14px; }
.openread-page th, .openread-page td { padding: 12px 10px; border-bottom: 1px solid #dbe3ee; text-align: left; vertical-align: top; overflow-wrap: anywhere; min-width: 80px; max-width: 320px; }
.openread-page th { color: #43566e; background: #f5f8fc; white-space: nowrap; }
.openread-page td:first-child { min-width: 140px; }
.openread-page .openread-feedback { color: #185b3e; white-space: pre-wrap; overflow-wrap: anywhere; }
.openread-page .openread-feedback:not(:empty) { padding: 12px 14px; margin-top: 16px; border: 1px solid #a8cdbb; border-radius: 6px; background: #f1faf5; }
.openread-page .openread-feedback textarea { color: #182536; background: #fff; white-space: pre; font-family: ui-monospace, monospace; }
.openread-page .openread-error, .openread-page .openread-feedback.openread-error { color: #9e2028; border-color: #e2a8ad; border-left: 4px solid #ae2932; background: #fff4f4; padding: 12px; }
.openread-page .openread-success { color: #185b3e; border: 1px solid #a8cdbb; border-radius: 8px; background: #f1faf5; padding: 14px; }
.openread-page #openread-payment { border-color: #adc8e9; background: #f8fbff; }
.openread-page #openread-payment img { display: block; max-width: 100%; height: auto; margin: 16px 0; border: 8px solid #fff; }
.openread-page .openread-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; padding: 16px 0; }
.openread-page .openread-pagination a { min-height: 44px; padding: 8px; }
.openread-page .openread-dialog { width: min(600px, calc(100% - 24px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 24px; border: 1px solid #b6cbe4; border-radius: 12px; color: #182536; background: #fff; box-shadow: 0 16px 64px #18253640; }
.openread-page .openread-dialog::backdrop { background: #18253699; }
.openread-page #openread-admin-order dl { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 3fr); gap: 12px; }
.openread-page #openread-admin-order dt { font-weight: 600; }
.openread-page #openread-admin-order dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.openread-page .openread-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.openread-page .openread-dialog-header h2 { margin: 8px 0; }
.openread-page .openread-dialog form { margin-bottom: 0; padding: 16px; }
.openread-page .openread-source { padding: 12px; border-radius: 6px; background: #edf4ff; overflow-wrap: anywhere; }
.openread-page:has(dialog[open]) { overflow: hidden; }
.openread-page footer { border-top: 1px solid #d5deea; padding-top: 20px; margin-top: 40px; color: #526478; font-size: 13px; }
.openread-box .openread-body { white-space: normal; overflow-wrap: anywhere; }
.openread-products, .openread-access { color: #182536; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
.openread-products, .openread-products *, .openread-access, .openread-access * { box-sizing: border-box; }
.openread-products .openread-products-heading, .openread-access .openread-access-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.openread-products .openread-products-heading h3, .openread-access .openread-access-heading h3 { margin: 0; font-size: 20px; }
.openread-products .openread-products-heading > span, .openread-products .openread-product-stock, .openread-products .openread-products-footer > span { color: #526478; font-size: 13px; }
.openread-products .openread-product-list { display: grid; gap: 12px; }
.openread-products .openread-product, .openread-access .openread-access-summary, .openread-access .openread-access-download { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 0; padding: 18px; border: 1px solid #dce5f0; border-radius: 10px; background: #f8fbff; min-width: 0; }
.openread-products .openread-product-name { margin: 0 0 10px; color: #182536; font-size: 17px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.openread-products .openread-product-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0; }
.openread-products .openread-product-price, .openread-access .openread-access-price { display: inline-flex; gap: 3px; align-items: baseline; color: #195db3; font-size: 15px; white-space: nowrap; }
.openread-products .openread-product-price strong, .openread-access .openread-access-price strong { font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
.openread-products .openread-product-actions { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.openread-products .openread-product-quantity { display: grid; gap: 5px; margin: 0; color: #43566e; font-size: 13px; }
.openread-products .openread-product-quantity input { display: block; width: 80px; max-width: 80px; height: 44px; margin: 0; padding: 8px 10px; border: 1px solid #8293a7; border-radius: 7px; color: #182536; background: #fff; font: inherit; font-size: 16px; line-height: 1.5; }
.openread-products .openread-product-actions button { height: 44px; min-height: 44px; margin: 0; padding: 10px 18px; border: 1px solid transparent; border-radius: 7px; background: #195db3; color: #fff; font: inherit; font-weight: 600; line-height: 1.25; cursor: pointer; white-space: nowrap; }
.openread-products .openread-product-actions button:hover:not(:disabled) { background: #124a91; }
.openread-products .openread-product-actions button:disabled, .openread-products .openread-product-quantity input:disabled { opacity: .6; cursor: not-allowed; }
.openread-products :is(a, button, input):focus-visible, .openread-access a:focus-visible { outline: 3px solid #125abc; outline-offset: 3px; }
.openread-products .openread-product-feedback { grid-column: 1 / -1; margin: 0; color: #185b3e; font-size: 14px; overflow-wrap: anywhere; }
.openread-products .openread-product-feedback:empty { display: none; }
.openread-products .openread-product-feedback.openread-error { color: #9e2028; }
.openread-products .openread-products-footer, .openread-access .openread-access-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 16px; margin-top: 16px; border-top: 1px solid #dce5f0; }
.openread-products .openread-products-footer a, .openread-access .openread-access-footer a, .openread-access-compact a { font-size: 14px; font-weight: 600; text-decoration: underline; }
.openread-access .openread-access-badge { padding: 4px 10px; border: 1px solid #d5e2f3; border-radius: 6px; background: #f0f5fc; color: #43566e; font-size: 13px; white-space: nowrap; }
.openread-access .openread-access-info { min-width: 0; }
.openread-access .openread-access-summary h4, .openread-access .openread-access-download h4 { margin: 0 0 8px; color: #182536; font-size: 17px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.openread-access .openread-access-description, .openread-access .openread-access-download p { margin: 0; color: #526478; font-size: 14px; overflow-wrap: anywhere; }
.openread-access .openread-access-price { margin: 12px 0 0; }
.openread-access a.openread-access-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; padding: 10px 18px; border: 1px solid transparent; border-radius: 7px; color: #fff; background: #195db3; font: inherit; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.openread-access a.openread-access-primary:hover { background: #124a91; color: #fff; }
.openread-access .openread-access-footer > span, .openread-access-compact > span { color: #526478; font-size: 13px; }
.openread-access .openread-access-footer > div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.openread-access .openread-access-footer a, .openread-access-compact a { display: inline-flex; align-items: center; min-height: 44px; }
.openread-access .openread-access-download { margin-top: 16px; }
.openread-access.openread-access-compact { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.openread-editor-commerce { overflow-wrap: anywhere; }
.openread-editor-commerce #openread-linked-products ul { padding: 0; margin: 0 0 12px; list-style: none; }
.openread-editor-commerce #openread-linked-products li { margin: 8px 0; padding: 10px; border: 1px solid #d5deea; border-radius: 6px; background: #fff; }
.openread-editor-commerce #openread-linked-products p { margin: 6px 0; }
.openread-page [hidden] { display: none !important; }
@media (max-width: 640px) {
    .openread-page main { padding: 20px 12px; }
    .openread-page header { gap: 12px; }
    .openread-page header > a { font-size: 14px; }
    .openread-page section, .openread-page form { padding: 18px 16px; }
    .openread-page .openread-announcement { padding: 16px; }
    .openread-page .openread-tabs { gap: 2px; padding: 4px 0; }
    .openread-page .openread-tabs button { padding: 10px 12px; font-size: 14px; }
    .openread-page .openread-stats { grid-template-columns: 1fr; gap: 8px; }
    .openread-page .openread-stats p { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .openread-page .openread-stats strong { font-size: 19px; margin: 0; }
    .openread-page form > button { width: 100%; }
    .openread-box.openread-products, .openread-box.openread-access { padding: 18px 16px; }
    .openread-products .openread-product, .openread-access .openread-access-summary, .openread-access .openread-access-download { grid-template-columns: minmax(0, 1fr); padding: 16px; }
    .openread-products .openread-product-actions button { flex: 1; }
    .openread-access a.openread-access-primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .openread-page * { scroll-behavior: auto !important; }
}
