.analyzer-panel{margin:20px 0;padding:24px;border:1px solid #cbd5df;border-radius:12px;background:#fff;color:#253342}
.analyzer-panel h2{font-size:24px;margin:0 0 12px}.analyzer-test-badge{display:inline-block;background:#fff2c6;padding:5px 10px;border-radius:5px;font-size:14px;margin-bottom:12px}
.analyzer-panel input{max-width:100%;font:inherit;margin:12px 0}.analyzer-panel label{display:block;font-weight:700}.analyzer-panel p{line-height:1.5}
#analyzer-modal{color:#253342;background:#fff;border:0;border-radius:14px;padding:24px;width:min(640px,calc(100vw - 32px));max-height:85vh;max-height:85dvh;overflow:auto;box-sizing:border-box;box-shadow:0 20px 70px #0005;font:16px/1.5 Arial,sans-serif}
#analyzer-modal::backdrop{background:#15202b99}#analyzer-modal h2{font-size:25px;margin:0 40px 8px 0}#analyzer-filename{overflow-wrap:anywhere;color:#536171;margin:0 0 16px}
#analyzer-close{position:absolute;top:14px;right:14px;background:#edf1f5;border:0;border-radius:50%;width:36px;height:36px;font-size:24px;cursor:pointer}
.analyzer-stats{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0;margin:16px 0}.analyzer-stats dt,.analyzer-stats dd{padding:10px 0;border-bottom:1px solid #e0e5eb;margin:0}.analyzer-stats dd{font-weight:bold;text-align:right;padding-left:16px}.analyzer-stats dt:first-child,.analyzer-stats dd:nth-child(2){font-size:21px}
#analyzer-modal details{font-size:14px;color:#536171;margin:16px 0}#analyzer-modal summary{cursor:pointer}.analyzer-warning{background:#fff2c6;padding:10px;border-radius:6px}
.analyzer-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.analyzer-actions button{font:inherit;padding:12px 18px;border-radius:7px;border:1px solid #aab5c0;cursor:pointer;background:#edf1f5;color:#253342}#analyzer-continue{background:#b42332;color:white;border-color:#b42332}.analyzer-actions button:disabled{opacity:.55;cursor:default}#analyzer-modal .analyzer-future{font-size:13px;color:#536171}
#analyzer-status.is-loading::before{content:'';display:inline-block;width:18px;height:18px;border:3px solid #dce3eb;border-top-color:#b42332;border-radius:50%;margin-right:10px;vertical-align:middle;animation:analyzer-spin 1s linear infinite}@keyframes analyzer-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#analyzer-status.is-loading::before{animation:none}}@media(max-width:480px){#analyzer-modal{padding:18px}.analyzer-actions button{width:100%}.analyzer-stats{font-size:15px}}

.analyzer-list-toggle{font:inherit;font-size:13px;font-weight:400;color:#b42332;background:transparent;border:0;border-radius:4px;padding:4px 6px;margin:-4px 0 -4px 8px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.analyzer-list-toggle:focus-visible{outline:2px solid #b42332;outline-offset:2px}
.analyzer-stats .analyzer-list-panel{padding:0;margin:0;border:0;font-weight:400;text-align:left;grid-column:1/-1;display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows 280ms ease,opacity 200ms ease;min-width:0}
.analyzer-list-panel.is-open{grid-template-rows:1fr;opacity:1}
.analyzer-list-inner{min-height:0;overflow:hidden}
.analyzer-list-content{padding:12px;margin:8px 0 4px;border-radius:8px;background:#f4f6f8;font-size:14px;min-width:0}
#analyzer-modal .analyzer-list-total{margin:0 0 8px;font-weight:700}
.analyzer-list-table{width:100%;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums;text-align:center}
.analyzer-list-table th,.analyzer-list-table td{padding:5px 4px;border-bottom:1px solid #dce3eb;overflow-wrap:anywhere}
.analyzer-list-table th{font-size:13px;color:#536171}.analyzer-list-table tbody tr:last-child td{border-bottom:0}
#analyzer-modal .analyzer-list-note{font-size:12px;line-height:1.45;color:#536171;margin:10px 0 0}
@media(prefers-reduced-motion:reduce){#analyzer-modal .analyzer-stats .analyzer-list-panel{transition:none!important}}
@media(max-width:480px){.analyzer-stats dd{padding-left:8px}.analyzer-list-content{padding:10px}.analyzer-list-toggle{margin-left:3px}}

/* Explicit alignment wins over the site's global heading/table rules. */
#analyzer-modal .analyzer-list-table th,#analyzer-modal .analyzer-list-table td{text-align:center;vertical-align:middle;border-right:1px solid #cbd3dc}
#analyzer-modal .analyzer-list-table th:last-child,#analyzer-modal .analyzer-list-table td:last-child{border-right:0}
#analyzer-modal .analyzer-list-table th{font-family:Arial,sans-serif;font-weight:700;letter-spacing:normal}
#analyzer-modal .analyzer-actions button{background:#cb3340;color:#fff;border-color:#cb3340}
#analyzer-modal .analyzer-actions button:hover:not(:disabled){background:#ac2631;border-color:#ac2631}
#analyzer-modal .analyzer-actions button:disabled{background:#edf1f5;color:#536171;border-color:#cbd3dc;opacity:1}
#analyzer-modal::backdrop{background:rgba(255,255,255,.72);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
#analyzer-modal{box-shadow:0 16px 60px #0003}
#analyzer-modal #analyzer-modal-title{margin:0 0 8px;padding-left:42px;padding-right:42px;text-align:center}
#analyzer-modal #analyzer-filename{text-align:center}
#analyzer-modal #analyzer-close{display:flex;align-items:center;justify-content:center;padding:0;line-height:1;color:#555;background:#f1f1f1;border:0;outline:none;box-shadow:none}
#analyzer-modal #analyzer-close:focus-visible{outline:2px solid #555;outline-offset:2px}
#analyzer-modal .analyzer-actions{justify-content:center}
#analyzer-modal .analyzer-book-type{margin:20px auto 0;max-width:340px}
#analyzer-modal .analyzer-book-type label{display:block;margin:0 0 6px;font:16px/1.4 Arial,sans-serif;color:#253342}
#analyzer-modal .analyzer-book-type select{width:100%;min-height:40px;font:16px Arial,sans-serif;box-sizing:border-box;padding:0 38px 0 10px;border:1px solid #aab5c0;border-radius:6px;color:#253342;-webkit-appearance:none;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23444' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center/12px 8px}
#analyzer-modal .analyzer-actions button{display:flex;align-items:center;justify-content:center}
/* Inactive Continue: the click passes to its row; analyzer-ui.js then outlines the book type in red and shakes it. */
#analyzer-modal #analyzer-continue:disabled{pointer-events:none}
#analyzer-modal .analyzer-book-type select.analyzer-needs-type{border-color:#cb3340;box-shadow:0 0 0 3px rgba(203,51,64,.18)}
#analyzer-modal .analyzer-book-type label.analyzer-needs-type{color:#cb3340}
@keyframes analyzer-type-alert{0%,100%{transform:none}15%{transform:translateX(-7px)}30%{transform:translateX(6px)}45%{transform:translateX(-4px)}60%{transform:translateX(3px)}75%{transform:translateX(-1px)}}
#analyzer-modal .analyzer-book-type select.analyzer-shake{animation:analyzer-type-alert .5s ease}
@media (prefers-reduced-motion:reduce){#analyzer-modal .analyzer-book-type select.analyzer-shake{animation:none}}
#analyzer-modal .analyzer-list-joined{margin:0 0 8px;font-size:13px;color:#536171}
/* PDF: file details list, page counter while reading. */
#analyzer-modal .analyzer-file-list{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 14px;margin:10px 0 0}
#analyzer-modal .analyzer-file-list dt{font-weight:700;color:#253342}
#analyzer-modal .analyzer-file-list dd{margin:0;overflow-wrap:anywhere}
#analyzer-status .analyzer-progress{color:#536171;font-variant-numeric:tabular-nums}
@media(max-width:480px){#analyzer-modal .analyzer-file-list{grid-template-columns:1fr;gap:0}#analyzer-modal .analyzer-file-list dd{margin-bottom:6px}}
/* Copy data: black button next to Continue. */
#analyzer-modal #analyzer-copy:not(:disabled){background:#222;border-color:#222;color:#fff}
#analyzer-modal #analyzer-copy:not(:disabled):hover{background:#000;border-color:#000}
#analyzer-modal .analyzer-file-table{border-collapse:collapse;margin:0;width:auto}
#analyzer-modal .analyzer-file-table td{padding:1px 16px 1px 0;border:0;text-align:left;font-size:14px;color:#536171;vertical-align:top}
#analyzer-modal .analyzer-file-table td:last-child{padding-right:0;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
/* "File details" (left) and "What is included?" (right): styled like the calculator's "Price details" toggle;
   both open one shared panel that slides open and closed. */
#analyzer-modal .analyzer-info{margin:16px 0 0}
#analyzer-modal .analyzer-info-bar{display:flex;justify-content:space-between;align-items:center;gap:8px 16px;flex-wrap:wrap}
#analyzer-modal .analyzer-info-toggle{padding:2px 0;margin:0;border:0;border-bottom:1px dashed currentColor;border-radius:0;background:none;color:#555;font:400 15px/1.3 AvenirReg,Arial,sans-serif;cursor:pointer;white-space:nowrap}
#analyzer-modal .analyzer-info-toggle:hover,#analyzer-modal .analyzer-info-toggle[aria-expanded="true"]{color:#cb3340}
#analyzer-modal .analyzer-info-toggle:focus{outline:none}
#analyzer-modal .analyzer-info-toggle:focus-visible{color:#cb3340;border-bottom-style:solid}
#analyzer-modal .analyzer-info-toggle::after{content:"";display:inline-block;width:7px;height:7px;margin:0 2px 3px 8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .2s}
#analyzer-modal .analyzer-info-toggle[aria-expanded="true"]::after{transform:rotate(-135deg);margin-bottom:-1px}
#analyzer-modal .analyzer-info-panel{overflow:hidden;transition:height .3s ease}
#analyzer-modal .analyzer-info-content{margin-top:10px;padding:12px 16px;background:#f7f7f7;border:1px solid #e6e6e6;border-radius:6px;font-size:14px;color:#536171}
#analyzer-modal .analyzer-info-content p{margin:0 0 10px;padding:0;font-size:14px;line-height:1.5;color:#536171}
#analyzer-modal .analyzer-info-content p:last-child{margin-bottom:0}
#analyzer-modal .analyzer-info-content .analyzer-file-list{margin:0}
@media(prefers-reduced-motion:reduce){#analyzer-modal .analyzer-info-panel,#analyzer-modal .analyzer-info-toggle::after{transition:none}}
/* Safari draws its own blue ring around focused controls: replaced by the site's own quiet styles. */
#analyzer-modal:focus{outline:none}
#analyzer-modal .analyzer-focus-start{position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);outline:none}
/* The site's legacy-fixes.css draws a 3px blue outline on every :focus-visible element (with !important). Safari
   treats the window opening and the book-type field as :focus-visible, so inside this window that outline is
   replaced: none on the invisible starting point and the window, a dark border on the book-type field. */
#analyzer-modal:focus-visible,#analyzer-modal .analyzer-focus-start:focus-visible{outline:none!important}
#analyzer-modal .analyzer-book-type select:focus-visible{outline:none!important;border-color:#253342;box-shadow:0 0 0 3px rgba(37,51,66,.15)}
#analyzer-modal .analyzer-book-type select.analyzer-needs-type:focus-visible{border-color:#cb3340;box-shadow:0 0 0 3px rgba(203,51,64,.18)}
#analyzer-modal .analyzer-book-type select:focus{outline:none;border-color:#253342}
#analyzer-modal .analyzer-book-type select.analyzer-needs-type,#analyzer-modal .analyzer-book-type select.analyzer-needs-type:focus{border-color:#cb3340;box-shadow:0 0 0 3px rgba(203,51,64,.18)}
#analyzer-modal #analyzer-close:focus:not(:focus-visible){outline:none}
/* Status under the file name: centred, close to it; "Analysis complete." in bold. */
#analyzer-modal #analyzer-filename{margin:0 0 2px}
#analyzer-modal #analyzer-status{margin:0 0 8px;padding:0;text-align:center;line-height:1.45}
#analyzer-modal #analyzer-status.is-done{font-weight:700}
/* Copy data: the three labels share one grid cell, so the button is always as wide as its widest label and
   does not change size when the label changes; the labels cross-fade. */
#analyzer-modal .analyzer-actions #analyzer-copy{display:inline-grid;place-items:center}
#analyzer-modal #analyzer-copy .analyzer-copy-label{grid-area:1/1;opacity:0;transform:translateY(5px);transition:opacity .2s ease,transform .2s ease;white-space:nowrap}
#analyzer-modal #analyzer-copy .analyzer-copy-label.is-active{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){#analyzer-modal #analyzer-copy .analyzer-copy-label{transition:none}}

.analyzer-tracked-star{color:#b42332}
#analyzer-modal .analyzer-tracked-footnote{font-size:12px;line-height:1.45;color:#536171;margin:10px 0 0}
#analyzer-modal .analyzer-tracked-content{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px}
#analyzer-modal .analyzer-tracked-content dt,#analyzer-modal .analyzer-tracked-content dd{margin:0;padding:7px 0;border-bottom:1px solid #dce3eb}
#analyzer-modal .analyzer-tracked-content dd{text-align:right;font-weight:700}
#analyzer-modal .analyzer-tracked-content dt:last-of-type,#analyzer-modal .analyzer-tracked-content dd:last-of-type{border-bottom:0}
/* Detail rows keep one text size instead of inheriting the main Words row size. */
#analyzer-modal .analyzer-tracked-content dt,#analyzer-modal .analyzer-tracked-content dd{font-size:14px}
#analyzer-modal .analyzer-tracked-note{display:block;margin-top:2px;font-size:12px;font-weight:400;line-height:1.35;color:#536171}
