:root {
  color-scheme: light;
  --ink: #192c42;
  --muted: #52657b;
  --line: #d9e3ee;
  --accent: #1459ae;
  --paper: #f2f6fb;
  font: 16px/1.55 "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .shell { height: 62px; display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 22px; font-weight: 850; text-decoration: none; color: var(--ink); letter-spacing: -.05em; }
.brand span { color: #2074e0; }
.home { color: var(--muted); font-size: .88rem; text-decoration: none; }
.intro { background: #122b45; color: #fff; padding: 52px 0 82px; }
.intro h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; letter-spacing: -.05em; margin: 0 0 13px; }
.intro p { color: #d0e0f4; font-size: clamp(.94rem, 2vw, 1.13rem); margin: 0; }
.workspace { margin-top: -39px; position: relative; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 24px; min-width: 0; }
#lookup { box-shadow: 0 12px 35px #163a6112; }
.search-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.search-settings { margin-top: 14px; }
.search-settings > summary { color: var(--accent); font-weight: 700; cursor: pointer; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 510px; margin-top: 10px; }
.mode-picker { display: flex; flex-wrap: wrap; gap: 8px 19px; border: 0; padding: 0; margin: 12px 0 0; }
.mode-picker legend { padding: 0; margin-bottom: 5px; font-size: .84rem; font-weight: 700; }
.mode-picker label { display: flex; align-items: center; gap: 7px; margin: 0; }
.mode-picker input { width: auto; height: auto; accent-color: var(--accent); }
label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 5px; }
input, select, button { font: inherit; }
input, select { width: 100%; height: 44px; border: 1px solid #bfcddd; border-radius: 7px; background: #fff; color: var(--ink); padding: 0 10px; min-width: 0; }
input::placeholder { color: #65788e; }
input[type="file"] { height: auto; padding: 8px 9px; }
button { min-height: 44px; padding: 0 15px; border: 1px solid transparent; border-radius: 7px; font-size: .9rem; font-weight: 750; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
.primary { background: var(--accent); color: #fff; }
.primary:hover:enabled { background: #104988; }
.secondary { border-color: #bfcddd; background: #fff; color: #174777; }
.secondary:hover:enabled { background: #edf5ff; }
:focus-visible { outline: 3px solid #276fcb; outline-offset: 3px; }
.search-footer { display: flex; gap: 14px; justify-content: space-between; align-items: end; margin-top: 16px; }
.access { width: min(100%, 300px); }
.search-footer #example { margin-left: auto; }
.muted { color: var(--muted); }
.hint { margin: 8px 0 0; font-size: .82rem; }
.status { margin: 12px 0; font-size: .9rem; color: var(--muted); }
.status:empty { display: none; }
.status.error { color: #9a271c; }
#result { margin-top: 22px; display: grid; gap: 15px; }
h2, h3, p { overflow-wrap: anywhere; }
h2 { margin: 0 0 8px; font-size: 1.3rem; letter-spacing: -.03em; }
h3 { margin: 0 0 5px; font-size: 1rem; }
.report-title { font-size: clamp(1.3rem, 3vw, 2rem); }
.report-head { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.report-head button { flex: 0 0 auto; }
.identity { color: var(--accent); font-weight: 750; font-size: .86rem; margin: 0 0 6px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin: 16px 0 0; }
.facts div { padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
dt { color: var(--muted); font-size: .8rem; }
dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.links { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 13px; }
a, .text-button { color: #0d56a8; }
.text-button { background: transparent; font-weight: 650; min-height: 0; padding: 0; text-decoration: underline; text-align: left; }
.table-wrap { overflow: auto; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .88rem; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); background: #f4f7fb; white-space: nowrap; }
td:first-child { white-space: nowrap; }
.document-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.document-actions button { min-height: 34px; padding: 0 8px; font-size: .78rem; }
.notes { padding-left: 1.2em; margin-bottom: 0; color: var(--muted); }
.sample { background: #fff6d9; border-color: #f0d28c; padding: 10px 15px; }
.upload, .coverage { margin-top: 17px; }
.upload p, .office-grid p { margin: 4px 0; font-size: .9rem; }
.upload form { margin-top: 16px; }
.upload-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(125px, .35fr) auto; align-items: end; gap: 10px; }
.upload-options:has(#scanGroup[hidden]) { grid-template-columns: minmax(0, 1fr) auto; }
.manual-record { margin-top: 16px; }
.manual-record summary { color: var(--accent); font-weight: 700; cursor: pointer; }
.manual-form { margin-top: 12px; }
.edit-confirmation { margin-left: 10px; color: var(--muted); font-size: .88rem; }
.manual-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.manual-fields .full { grid-column: 1 / -1; }
.manual-fields textarea { width: 100%; min-height: 83px; border: 1px solid #bfcddd; border-radius: 7px; padding: 8px 10px; font: inherit; font-size: .88rem; resize: vertical; color: var(--ink); }
.summary { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.summary pre { font: inherit; font-size: .93rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.summary small { color: var(--muted); }
.report-body { line-height: 1.7; overflow-wrap: anywhere; }
.report-body h3 { margin: 1.6em 0 .5em; }
.report-body h4, .report-body p, .report-body ul { margin: .65em 0; }
.report-body .table-wrap { margin: .8em 0 1.4em; }
.report-body blockquote { border-left: 3px solid var(--line); margin: 1em 0; padding-left: 1em; }
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 20px; }
.office-grid div { border-top: 1px solid var(--line); padding-top: 12px; }
.office-grid a { font-weight: 720; }
.office-grid p { color: var(--muted); }
.footer { color: var(--muted); font-size: .82rem; padding: 24px 0 35px; }
@media (max-width: 760px) {
  .facts, .office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .shell { width: calc(100% - 26px); }
  .panel { padding: 15px; }
  .intro { padding: 38px 0 68px; }
  .wide { display: none; }
  .search-grid { grid-template-columns: 1fr; }
  .report-head { flex-direction: column; align-items: stretch; }
  .manual-fields, .upload-options, .upload-options:has(#scanGroup[hidden]) { grid-template-columns: 1fr; }
  .search-footer button { flex: 0 0 auto; }
}
.ask label { display: block; margin-bottom: 6px; font-weight: 700; }
.ask textarea, .ask-field textarea { width: 100%; min-height: 88px; border: 1px solid #bfcddd; border-radius: 7px; padding: 9px 10px; font: inherit; resize: vertical; color: var(--ink); }
.ask button { margin-top: 12px; }
.ask-field { margin-top: 14px; }
.ask-field .optional { color: var(--muted); font-weight: 400; margin-left: 4px; }
.ask-field textarea { min-height: 64px; }
.register-zip { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.register-zip h3 { margin: 0 0 4px; font-size: 1rem; }
.register-zip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.zip-list { margin-top: 12px; }
.zip-row { display: flex; align-items: center; gap: 9px; margin: 0; padding: 6px 0; font-weight: 400; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.zip-row input { width: auto; height: auto; flex: none; }
.zip-row small { margin-left: auto; flex: none; }
.zip-list > button { margin-top: 12px; }
.search-footer { flex-wrap: wrap; }
.reading-report .intro, .reading-report #lookup, .reading-report #extension-setup { display: none; }
.reading-report .workspace { margin-top: 18px; }
#back-search { color: #325967; background: transparent; padding-inline: 2px; border: 0; }
.reading-report #result { margin-top: 8px; gap: 18px; }
#result > section { scroll-margin-top: 16px; }
.dossier-cover { background: linear-gradient(120deg, #102b3c 10%, #144454 76%, #165563); border: 0; padding: clamp(22px, 4vw, 44px); color: #fff; }
.dossier-cover .report-title { font-family: Georgia, "Malgun Gothic", serif; line-height: 1.12; letter-spacing: -.035em; font-weight: 550; font-size: clamp(1.9rem, 4.3vw, 3.45rem); margin: 12px 0; }
.dossier-cover .facts { margin-top: 18px; }
.dossier-cover .facts div { border-top-color: #8badb74d; }
.dossier-cover .facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.dossier-cover .identity { color: #a5dfd6; letter-spacing: .035em; }
.dossier-cover .hint, .dossier-cover dt, .dossier-cover .notes { color: #c4d6dc; }
.dossier-cover a, .dossier-cover .manual-record summary { color: #b3eddf; }
.dossier-cover .manual-fields { color: white; }
.dossier-takeaway { font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.7; max-width: 76ch; margin: 22px 0; color: #f1f7f6; }
.dossier-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin: 22px 0 0; border-block: 1px solid #8badb74d; padding: 18px 0; }
.dossier-metrics div + div { border-inline-start: 1px solid #8badb74d; padding-inline-start: clamp(8px, 3vw, 32px); }
.dossier-metrics dd { font-size: clamp(1.08rem, 2.6vw, 1.85rem); font-weight: 700; }
.report-metadata { margin-top: 18px; }
.dossier-cover .dossier-import { margin-top: 16px; color: var(--ink); }
.dossier-import a { color: var(--accent); }
.dossier-cover .dossier-import .notes { color: var(--ink); }
.dossier-import .import-controls { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; padding: 0; border: 0; min-width: 0; }
.import-controls label { max-width: 100%; }
.import-controls input { display: block; margin-top: 5px; }
.dossier-import .notes:empty { display: none; }
.dossier-cover #report-notes, .analysis-notice { border-inline-start: 3px solid #f2bc60; background: #fff5de; color: #563a11; padding: 10px 14px; border-radius: 4px; }
.dossier-cover #report-notes { list-style-position: inside; margin-top: 16px; }
.report-metadata > summary { cursor: pointer; font-size: .88rem; color: #d9e9ec; }
.report-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; border-bottom: 1px solid #bdcdd4; padding: 0 4px 12px; }
.report-nav a { font-size: .9rem; font-weight: 700; color: #295360; text-decoration: none; }
.report-nav a:hover { text-decoration: underline; }
.time-panel, .claim-panel { padding: clamp(18px, 3.5vw, 34px); }
.time-panel h2, .claim-panel h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); color: #143d46; }
.supporting-documents { margin-top: 18px; }
.claim-comparison { margin-top: 16px; }
.claim-comparison table { table-layout: fixed; min-width: 690px; }
.claim-comparison thead th { color: #fff; background: #244952; }
.claim-comparison thead th:first-child { width: 4.4rem; z-index: 1; }
.claim-comparison thead th:last-child { width: 24%; }
.claim-comparison tbody th { color: #214751; background: #f1f6f6; }
.claim-comparison th:first-child { position: sticky; left: 0; }
.claim-comparison td { padding: 12px; border-inline-start: 1px solid var(--line); }
.claim-comparison td:last-child { background: #f4f9f6; }
.comparison-finding p { margin: 0 0 4px; line-height: 1.55; }
.comparison-finding + .comparison-finding { margin-top: 10px; padding-top: 8px; border-top: 1px dotted var(--line); }
.comparison-empty { font-size: .82rem; color: var(--muted); }
.comparison-context { display: block; color: var(--muted); font-size: .76rem; }
.procedure-brief { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
#process-analysis > .procedure-brief { position: relative; padding: 2px 0 12px 22px; border-top: 0; border-left: 2px solid #c7d9dc; }
#process-analysis > .procedure-brief::before { content: ""; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #26646b; }
.finding-scope { display: block; color: var(--muted); margin-bottom: 4px; }
.reference-quote summary { cursor: pointer; font-size: .78rem; }
.procedure-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.procedure-head > div { flex: 1 1 280px; min-width: 0; }
.procedure-head small { color: var(--muted); font-variant-numeric: tabular-nums; }
.procedure-head h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); color: #173d46; margin: 3px 0; }
.brief-filter { display: grid; gap: 3px; font-size: .78rem; color: var(--muted); }
.brief-filter { max-width: 100%; }
.brief-filter select { width: auto; max-width: min(100%, 21rem); height: 35px; font-size: .88rem; }
.brief-note, .extra-findings { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }
.extra-findings summary { cursor: pointer; }
.claim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.finding-procedure { display: block; font-size: .92rem; overflow-wrap: anywhere; margin-bottom: 4px; }
.reference-quote { display: block; margin-top: 5px; color: var(--muted); }
.claim-role { --role: #855329; border-top: 3px solid var(--role); background: #fbf7f1; border-radius: 3px 3px 9px 9px; padding: 16px; }
.claim-role.applicant { --role: #295e8e; background: #f1f6fa; }
.claim-role.outcome { --role: #1b7463; background: #eff6f2; }
.claim-role h4, .finding > small:first-child { color: var(--role); }
.claim-role h4 { margin: 0; font-size: 1rem; }
.finding { margin-top: 14px; }
.finding + .finding { border-top: 1px solid #b9c9cd; padding-top: 14px; }
.finding p { font-size: .96rem; line-height: 1.7; margin: 5px 0 10px; }
.finding a, .source-ref { font-size: .78rem; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .claim-grid { grid-template-columns: 1fr; }
  .report-head { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .search-footer .access { flex-basis: 100%; }
  .report-nav { gap: 8px 12px; }
}

.analysis-choices { min-width: 0; margin: 18px 0 0; border: 0; padding: 0; }
.analysis-choices legend { font-weight: 700; margin-bottom: 6px; }
.analysis-list { max-height: 22rem; overflow: auto; }
.analysis-option { display: flex; align-items: center; gap: .65rem; margin: 0; padding: .55rem .25rem; overflow-wrap: anywhere; cursor: pointer; }
.analysis-option[hidden] { display: none; }
.analysis-list .analysis-option { border-bottom: 1px solid #dce4ed; font-weight: 400; }
.analysis-option input { width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--accent); }
.analysis-option small { margin-left: auto; color: var(--muted); }
.analysis-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 12px; }

.stage-axis { list-style: none; margin: 24px 0 0; padding: 0; }
.stage-step { --marker: #62768b; position: relative; padding: 0 0 22px 26px; margin-left: 7px; border-left: 2px solid #cfdee3; }
.stage-step:last-child { padding-bottom: 0; border-left-color: transparent; }
.stage-step::before { content: ""; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 3px white; }
.stage-examiner { --marker: #955321; }
.stage-applicant { --marker: #235f91; }
.stage-appeal { --marker: #6e5191; }
.stage-outcome { --marker: #176b56; }
.stage-step time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .83rem; }
.stage-heading { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.stage-heading h3 { color: var(--marker); margin: 0; font-size: 1.12rem; }
.stage-heading span, .stage-record { font-size: .83rem; color: var(--muted); }
.stage-step p { margin: 4px 0; }
.stage-record summary, .record-fold > summary { cursor: pointer; }
.stage-record ul { padding-left: 1.3rem; overflow-wrap: anywhere; }
.record-fold > summary { color: #274b59; font-weight: 700; }
.record-fold[open] > summary { margin-bottom: 12px; }
.decision-panel { padding: clamp(18px, 3.5vw, 34px); }
.decision-panel h2 { color: #143d46; }
.decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.decision-card { padding: 17px 19px; border-top: 3px solid #9badb5; background: #f4f7f8; border-radius: 4px 4px 10px 10px; }
.decision-0 { border-color: #19745f; background: #eaf5ef; }
.decision-1 { border-color: #a06a32; background: #faf5ed; }
.decision-2 { border-color: #407aa2; background: #eef5fa; }
.decision-card h3 { font-size: 1.05rem; }
.decision-card p, .decision-card li { margin: .35em 0; }
.decision-card ul { padding-left: 1.25em; }
.decision-card small { color: var(--muted); }
.decision-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 680px) {
  .decision-grid { grid-template-columns: 1fr; }
  .stage-step { padding-left: 20px; }
}

.case-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; list-style: none; margin: 0 0 12px; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.case-flow li { border-bottom: 3px solid #d4dee6; text-align: center; color: var(--muted); font-size: .84rem; }
.case-flow .complete { border-color: #86b4ab; }
.case-flow [aria-current] { color: #155b50; background: #edf6f3; border-color: #207763; font-weight: 750; }
/* Each step is a button: a step that can be opened reads as a link, the others as plain labels. */
.case-flow button { width: 100%; height: 100%; min-height: 0; padding: 7px 3px; border: 0; border-radius: 0; background: transparent; color: #174777; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.case-flow button:hover:enabled { background: #edf5ff; }
.case-flow button:disabled { opacity: 1; color: inherit; cursor: default; text-decoration: none; }
.flow-input #result, .flow-input #back-search { display: none; }

.extension-setup { margin-block: 14px; }
.extension-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; }
.extension-heading h2 { font-size: 1.05rem; margin: 0; }
.extension-heading p { margin: 4px 0; color: var(--muted); font-size: .9rem; }
#extension-download { display: inline-block; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 7px; font-weight: 700; text-decoration: none; }
#extension-download:hover { background: #edf5ff; }
#extension-guide { margin-top: 8px; }
#extension-guide summary { cursor: pointer; color: var(--accent); font-weight: 700; }
#extension-guide ol { margin-bottom: 0; padding-left: 1.5em; }
#extension-guide li + li { margin-top: 6px; }
.dossier-cover .report-usage { margin-top: 14px; color: #c4d6dc; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .claim-comparison table { min-width: 0; table-layout: auto; }
  .claim-comparison thead { display: none; }
  .claim-comparison table, .claim-comparison tbody, .claim-comparison tr, .claim-comparison tbody th, .claim-comparison td { display: block; width: 100%; box-sizing: border-box; }
  .claim-comparison tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
  .claim-comparison tbody th { position: static; padding: 10px 12px; }
  .claim-comparison td { border-inline-start: 0; border-top: 1px solid var(--line); }
  .claim-comparison td::before { content: attr(data-label); display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 700; color: #244952; }
}
/* Stage flow: each examiner notice with the applicant's answer and the result. */
.stage-number { font-weight: 700; color: #26646b; }
.stage-chip { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: #e8f0f1; color: #214751; font-size: .78rem; }
.round-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.round-result { margin-top: 12px; padding: 12px 16px; border-left: 3px solid #1b7463; border-radius: 3px 9px 9px 3px; background: #eff6f2; }
.round-result h4 { margin: 0; color: #1b7463; font-size: .95rem; }
.round-result > p { margin: 8px 0 0; }
.stage-decision .claim-role { max-width: 760px; }
.docket-finding p { font-size: .9rem; }

/* Family: filing tree and members by country. */
.family-panel h3 { margin: 24px 0 10px; font-size: 1.05rem; color: #173d46; }
.family-overview { margin: 4px 0; font-weight: 700; color: #173d46; }
.family-status { margin: 4px 0; color: var(--accent); font-size: .9rem; }
.family-tree-wrap { overflow-x: auto; }
.family-tree, .family-tree ul { list-style: none; margin: 0; padding: 0; }
.family-tree ul { margin-left: 16px; padding-left: 18px; border-left: 2px solid #c7d9dc; }
.family-tree li { position: relative; padding-top: 10px; }
.family-tree ul > li::before { content: ""; position: absolute; left: -18px; top: 30px; width: 14px; border-top: 2px solid #c7d9dc; }
.family-edge { display: table; margin-bottom: 4px; padding: 1px 9px; border-radius: 999px; background: #244952; color: #fff; font-size: .74rem; font-weight: 700; }
.family-node { display: inline-grid; gap: 2px; min-width: min(100%, 220px); padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.family-node strong { color: #173d46; overflow-wrap: anywhere; }
.family-node small { color: var(--muted); font-size: .78rem; }
.family-node em { font-style: normal; font-size: .74rem; font-weight: 700; color: var(--accent); }
.family-node.is-subject { border: 2px solid var(--accent); background: #eef5fd; }
.family-node.is-outside { border-style: dashed; background: #f7f9fb; }
.family-table table { table-layout: fixed; min-width: 880px; }
.family-table thead th { color: #fff; background: #244952; }
.family-table thead th:nth-child(1) { width: 15%; }
.family-table thead th:nth-child(2) { width: 12%; }
.family-table thead th:nth-child(3) { width: 15%; }
.family-table thead th:nth-child(4) { width: 31%; }
.family-table .family-country th { background: #e8f0f1; color: #214751; text-align: left; font-size: .85rem; }
.family-table tr.is-subject td { background: #f3f8fe; }
.family-table td { vertical-align: top; font-size: .88rem; white-space: normal; overflow-wrap: anywhere; border-inline-start: 1px solid var(--line); }
.family-table td:first-child { border-inline-start: 0; }
.family-table td small { display: block; color: var(--muted); font-size: .76rem; }
.family-claim p, .family-compare p { margin: 0 0 6px; line-height: 1.55; }
.family-claim details p { margin: 4px 0; font-size: .84rem; }
.family-compare .family-verdict + p { margin-top: 6px; }
.family-diff { color: var(--muted); font-size: .8rem; }
.family-verdict { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #6a7c8f; color: #fff; font-size: .76rem; font-weight: 700; }
.verdict-same { background: #1b7463; }
.verdict-narrower { background: #295e8e; }
.verdict-broader { background: #a4442a; }
.verdict-overlap { background: #85621a; }
.verdict-subject { background: var(--accent); }
@media (max-width: 760px) {
  .round-grid { grid-template-columns: 1fr; }
  .family-table table { min-width: 0; table-layout: auto; }
  .family-table thead { display: none; }
  .family-table table, .family-table tbody, .family-table tr, .family-table th, .family-table td { display: block; width: 100%; box-sizing: border-box; }
  .family-table tr:not(.family-country) { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
  .family-table td { border-top: 1px solid var(--line); }
  .family-table td:first-child { border-top: 0; }
  .family-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: .78rem; font-weight: 700; color: #244952; }
}
/* Claim-level detail: ground or response chip, the limitation at issue and the cited art. */
.detail-chip { display: inline-block; margin-bottom: 2px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--role, #244952); background: var(--role, #244952); color: #fff; font-size: .76rem; font-weight: 700; }
.detail-chip.chip-argue, .detail-chip.chip-disclaimer, .detail-chip.chip-elect { background: #fff; color: var(--role, #244952); }
.finding-detail { margin: 0 0 8px; display: grid; gap: 4px; font-size: .84rem; }
.finding-detail > div { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 8px; }
.finding-detail dt { color: var(--muted); font-size: .78rem; padding-top: 1px; }
.finding-detail dd { margin: 0; overflow-wrap: anywhere; }
.finding-detail dd span { display: block; }
.stage-overview { list-style: none; margin: 8px 0 0; padding: 8px 10px; border-radius: 6px; background: rgba(255, 255, 255, .7); font-size: .84rem; }
.stage-overview li + li { margin-top: 3px; }
.stage-overview strong { color: var(--role, #244952); }
/* Sections in the order a practitioner reads the history: case frame, claim comparison, allowance, limits, prior art, term, post-grant. */
.claim-panel h3 { margin: 22px 0 8px; font-size: 1.02rem; color: #173d46; }
.claim-panel .table-wrap td:first-child { white-space: normal; min-width: 6.5em; }
.frame-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0 24px; margin: 14px 0 0; }
.frame-facts div { padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.frame-facts dt { color: var(--muted); font-size: .8rem; }
.frame-facts dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; white-space: pre-line; }
.frame-facts small { display: block; margin-top: 2px; color: var(--muted); font-size: .76rem; }
.stage-claims { margin: 12px 0; font-size: .9rem; }
.stage-claims > summary { cursor: pointer; color: #274b59; font-weight: 700; }
.stage-claims mark { padding: 1px 2px; border-radius: 3px; color: inherit; }
.stage-claims mark.pointed { background: #fbe3d2; box-shadow: inset 0 -2px #b5632a; }
.stage-claims mark.amended { background: #d9f0e4; box-shadow: inset 0 -2px #1b7463; }
.stage-claim-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.stage-claim-columns > div { padding: 12px 14px; border-radius: 8px; background: #f6f8fa; }
.stage-claim-columns h5 { margin: 0 0 6px; font-size: .8rem; color: var(--muted); }
.stage-claim-columns .claim-text { margin: 0; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 680px) { .stage-claim-columns { grid-template-columns: 1fr; } }
.claim-card { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line); border-top: 3px solid #244952; border-radius: 4px 4px 10px 10px; background: #fbfcfd; }
.claim-card header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.claim-card header h3 { margin: 0; }
.claim-card header small { color: var(--muted); font-size: .78rem; }
.claim-diff, .claim-text p { font-size: .95rem; line-height: 1.75; overflow-wrap: anywhere; }
.claim-diff { margin: 0; white-space: pre-wrap; }
.claim-text p { margin: 0 0 6px; }
.claim-diff ins { background: #dff3e4; color: #0f5132; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.claim-diff del { background: #fde2e1; color: #8a1f17; }
.claim-changes { margin-top: 10px; font-size: .88rem; }
.claim-changes h4, .claim-dropped h4 { margin: 8px 0 4px; font-size: .82rem; color: var(--muted); }
.claim-changes ul { margin: 0; padding-left: 1.2em; }
.claim-card details, .claim-dropped { margin-top: 10px; font-size: .88rem; }
.claim-card summary, .claim-dropped summary { cursor: pointer; color: #274b59; font-weight: 700; }
.allowance-reason { padding: 8px 12px; border-inline-start: 3px solid #1b7463; border-radius: 4px; background: #eff6f2; }
.allowance-element { color: var(--muted); }
.allowance-last { margin-top: 16px; }
.allowance-last .stage-overview { background: #f1f6fa; }
.limit-entry p { margin: 0 0 4px; }
.limit-entry small { color: var(--muted); }
.art-sources a { display: block; }
.family-followers { margin: 8px 0; padding: 10px 14px; border-inline-start: 3px solid #6e5191; border-radius: 4px; background: #f5f1fa; font-size: .9rem; }
/* Stage flow: each rejection with the answer it drew and what became of it. */
.stage-focus { background: #1b7463; color: #fff; }
.stage-wording, .stage-focus-note { margin: 0 0 12px; padding: 8px 12px; border-inline-start: 3px solid #1b7463; border-radius: 4px; background: #eff6f2; font-size: .9rem; }
.issue-list { margin-top: 14px; }
.issue-list > h4 { margin: 0 0 8px; color: #173d46; font-size: .95rem; }
.issue-card { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.issue-card > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f4f7f8; }
.issue-card > header strong { color: #173d46; }
.issue-art { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.issue-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr); }
.issue-grid .claim-role { border-top: 0; border-radius: 0; padding: 12px 14px; }
.issue-grid .claim-role + .claim-role { border-inline-start: 1px solid var(--line); }
.issue-grid .claim-role h4 { margin: 0; font-size: .86rem; }
.issue-grid .finding { margin-top: 8px; }
.issue-fate { margin: 8px 0 4px; font-size: .92rem; line-height: 1.6; }
.fate-kept { color: #8a3b12; font-weight: 700; }
.fate-dropped, .fate-decided { color: #17594b; }
.fate-unknown { color: var(--muted); }
@media (max-width: 760px) {
  .issue-grid { grid-template-columns: 1fr; }
  .issue-grid .claim-role + .claim-role { border-inline-start: 0; border-top: 1px solid var(--line); }
}
/* Appeals, proceedings against the patent and third-party papers inside the stage flow. */
.claim-role.third { --role: #7a4b8f; background: #f7f2fa; }
.stage-round .stage-submissions .claim-role { margin-top: 12px; }
.stage-track { background: #efe7f6; color: #4d2f63; }
.stage-path { margin: 0 0 10px; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.fate-advisory { color: #5a4a12; }
/* Trials and court cases about the patent. */
.trial-cell small { display: block; margin-top: 2px; color: var(--muted); font-size: .8rem; }
.trial-cell details { margin-top: 4px; font-size: .82rem; }
.trial-cell summary { cursor: pointer; color: #274b59; }
.trial-cell details p { margin: 4px 0 0; }
/* Why an answer stands under a rejection: named by the response, or placed there only because the claims overlap. */
.answer-link { display: block; margin-top: 6px; font-size: .78rem; color: #17594b; }
.answer-link.link-claims, .answer-link.link-shared { padding: 4px 8px; border-inline-start: 3px solid #f2bc60; border-radius: 3px; background: #fff5de; color: #563a11; }
