/* Pulse Check (round 20): the checker's own parts. Colors, fonts, the header, buttons and the Aura are in ../shared/site.css.
   Nothing of the writer's look travels with the PDF. */
.check-main { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: 24px; padding-bottom: 72px; }
.sheet { width: 100%; }
.drop-sheet { max-width: 680px; padding: 44px 52px 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.shield { width: 64px; height: 64px; }
h1 { font-size: 34px; line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; margin: 6px 0 0; }
h2 { font-size: 19px; letter-spacing: -0.01em; margin: 0 0 8px; }
.lead { margin: 0; color: var(--ink2); font-size: 16.5px; max-width: 44ch; }
.small { margin: 0; color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.drop { width: 100%; margin-top: 10px; padding: 40px 16px; border: 2px dashed var(--dash); border-radius: 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--iris); background: var(--soft); outline: none; }
.drop-main { font-size: 17px; font-weight: 600; }
.facts { width: 100%; max-width: 680px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.facts > div { display: flex; gap: 12px; align-items: flex-start; }
.facts svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--iris); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.facts p { margin: 0; font-size: 13.5px; color: var(--muted); }
.facts b { display: block; font-size: 14.5px; color: var(--ink); }
.about { max-width: 680px; padding: 36px 44px; }
.about p { margin: 0 0 10px; color: var(--ink2); }
.about p:last-child { margin-bottom: 0; }

/* The result, with the sealed piece beside it */
.result-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 44px; align-items: start; }
.result-grid.alone { grid-template-columns: minmax(0, 680px); justify-content: center; }
.side { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
.side > [role=tabpanel] { width: 100%; }
.tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--field); }
.tabs button { border: 0; background: none; font: 600 13.5px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--solid); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pages { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pages canvas { display: block; width: 100%; max-width: 560px; height: auto; background: #fff; border-radius: 4px; box-shadow: var(--paper-shadow); }
#pagesNote { margin-top: 14px; }
#textPane .sheet { padding: 30px 34px; }

.result { width: 100%; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.result .sheet { padding: 30px 34px; }
.status { display: flex; align-items: flex-start; gap: 10px; font-size: 18px; font-weight: 650; line-height: 1.35; margin: 0; }
.status svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.ok { color: var(--green); } .changed { color: var(--red); } .warn { color: var(--amber); }
.piece { display: flex; flex-direction: column; gap: 14px; margin: 22px 0 18px; }
.tier { display: flex; align-items: center; gap: 14px; }
.piece .tier-word { margin: 0; color: var(--ink); font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; }
.piece .tier-word b { font-weight: 650; }
.piece .tier-word span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.disc { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--disc); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 30px/1 ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; font-variant-numeric: tabular-nums; }
.piece h2 { font-size: 20px; margin: 0 0 2px; overflow-wrap: anywhere; }
.piece p { margin: 0; color: var(--muted); font-size: 14px; }
.rows { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.row-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.row-top b { font-variant-numeric: tabular-nums; }
.track { height: 6px; border-radius: 3px; background: var(--track); margin-top: 6px; overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 3px; }
.note { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.writers-head { margin: 22px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.writers { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.writers li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.writers .muted { color: var(--muted); }
.apple { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--green); font-size: 14px; font-weight: 600; }
.apple svg { width: 16px; height: 18px; flex: none; }
.explain { margin: 14px 0 0; color: var(--ink2); }
.file { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--soft); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.file b { color: var(--ink); font-weight: 600; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
details { margin-top: 16px; font-size: 13px; color: var(--muted); }
details summary { cursor: pointer; }
details dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0 0; }
details dd { margin: 0; overflow-wrap: anywhere; color: var(--ink2); }
.cant { font-size: 13px; color: var(--muted); margin: 0; padding: 0 8px; }

@media (max-width: 560px) {
  .sheet, .result .sheet { padding: 26px 20px; border-radius: 22px; }
  h1 { font-size: 25px; }
  .sub { display: none; }
  .disc { width: 60px; height: 60px; font-size: 25px; }
}

.reading-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.reading-top p { margin: 0; flex: 1; min-width: 180px; color: var(--ink2); }
.small-disc { width: 44px; height: 44px; font-size: 18px; }
.sealed-text { padding: 8px 0 4px; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.sealed-text h2 { font-size: 26px; line-height: 1.2; margin: 18px 0 12px; }
.sealed-text h3 { font-size: 20px; margin: 22px 0 8px; }
.sealed-text h4 { font-size: 17px; margin: 18px 0 6px; }
.sealed-text p { margin: 0 0 12px; }
.sealed-text blockquote { margin: 4px 0 14px; padding-left: 16px; border-left: 3px solid var(--line); font-style: italic; color: var(--ink2); }
.sealed-text ul, .sealed-text ol { margin: 0 0 12px; padding-left: 24px; }
.sealed-text a { color: var(--iris); }
.sealed-text hr { border: 0; height: 1px; width: 80px; margin: 22px auto; background: var(--dash); }
.sealed-text figure { margin: 8px 0 16px; }
.sealed-text .pic { padding: 26px 16px; border-radius: 12px; background: var(--soft); border: 1px dashed var(--dash); color: var(--muted); text-align: center; font-size: 14px; }
.sealed-text figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; text-align: center; font-style: italic; }
.table-wrap { overflow-x: auto; margin: 4px 0 16px; }
.sealed-text table { border-collapse: collapse; width: 100%; font-size: 14px; }
.sealed-text th, .sealed-text td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.sealed-text th { background: var(--soft); font-weight: 600; }

@media (max-width: 980px) {
  .result-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
  .drop-sheet { padding: 28px 20px; border-radius: 22px; }
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .about { padding: 26px 20px; border-radius: 22px; }
  #textPane .sheet { padding: 24px 20px; }
}

/* Opened from a page's badge */
.from-bar { width: 100%; display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 16px 22px; }
.from-bar svg { flex: none; width: 22px; height: 22px; color: var(--iris); }
.from-bar p { margin: 0; flex: 1 1 320px; min-width: 0; font-size: 15px; line-height: 1.45; }
.from-bar p.small { flex: 0 1 auto; color: var(--muted); font-size: 13.5px; }
.from-bar .ok, .from-bar .warn { font-weight: 600; }
