:root {
  color-scheme: light;
  --paper: #f2eee5;
  --surface: #fffdf7;
  --soft: #e5e8e2;
  --ink: #151816;
  --muted: #6e756f;
  --line: #c9cec6;
  --red: #ff6049;
  --lime: #aaff2c;
  --blue: #6874f7;
  --yellow: #ffd965;
  --green: #07876f;
  --mono: "IBM Plex Mono", monospace;
  --sans: "DM Sans", "Noto Sans JP", sans-serif;
  --sim-width: 390px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
button, input { font: inherit; }
button { color: inherit; }
.page { width: min(100% - 36px, 1560px); margin-inline: auto; padding: 20px 0 44px; }

.hero { min-height: 250px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 0 12px 28px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--green); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.eyebrow i { width: 17px; height: 17px; border: 2px solid var(--blue); border-radius: 5px; box-shadow: 5px 5px 0 var(--lime); }
h1 { margin: 14px 0 0; font-size: clamp(54px, 8.5vw, 126px); line-height: .88; letter-spacing: 0; white-space: nowrap; }
.lead { margin: 18px 0 0; color: var(--muted); font-size: 21px; font-weight: 800; }
.lead strong { color: var(--ink); }
.hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-bottom: 2px; }
.support-chip, .top-button { min-height: 46px; padding: 0 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 11px; font-weight: 800; white-space: nowrap; }
.support-chip { display: inline-flex; align-items: center; color: var(--green); background: #e5fff7; }
.top-button { cursor: pointer; }
.top-button:hover { border-color: var(--ink); }
.top-button.dark { color: white; background: var(--ink); border-color: var(--ink); }

.finder-shell, .bookmarklet-panel, .code-panel, .method-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.section-heading { min-height: 94px; display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.section-number { flex: 0 0 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; color: white; background: var(--red); font-family: var(--mono); font-size: 12px; font-weight: 700; }
.section-heading p, .panel-heading p, .results-heading p { margin: 0; color: var(--green); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.section-heading h2 { margin: 4px 0 0; font-size: clamp(22px, 2vw, 32px); line-height: 1.1; }
.heading-metrics { display: flex; gap: 8px; margin-left: auto; }
.heading-metrics span { padding: 10px 13px; border-radius: 999px; background: #f1f2ed; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.heading-metrics i { margin-right: 4px; color: var(--blue); font-style: normal; }

.finder-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); }
.controls { border-right: 1px solid var(--line); background: #f7f4ec; }
.control-section { padding: 22px 20px 24px; border-bottom: 1px solid var(--line); }
.control-section:last-child { border-bottom: 0; }
.control-kicker, .control-title p { margin: 0; color: var(--green); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.control-section h3 { margin: 6px 0 15px; font-size: 16px; }
.preset-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.preset-list button { min-width: 0; min-height: 53px; display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 0 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; text-align: left; }
.preset-list button span { grid-row: 1 / 3; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: #eef0e9; font-family: var(--mono); font-size: 10px; font-weight: 700; }
.preset-list button b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.preset-list button small { color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.preset-list button[aria-pressed="true"] { color: white; border-color: var(--ink); background: var(--ink); }
.preset-list button[aria-pressed="true"] span { color: var(--ink); background: var(--lime); }
.preset-list button[aria-pressed="true"] small { color: #abb3ac; }
.control-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.control-title h3 { margin: 5px 0 0; }
.control-title output { color: var(--blue); font-family: var(--mono); font-size: 10px; font-weight: 700; white-space: nowrap; }
.viewport-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.viewport-options button { min-height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-family: var(--mono); font-size: 10px; font-weight: 700; cursor: pointer; }
.viewport-options button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); background: var(--lime); box-shadow: 0 3px 0 var(--ink); }
.viewport-range { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; margin-top: 13px; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 700; }
input[type="range"] { width: 100%; height: 18px; margin: 0; appearance: none; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: #afb7af; }
input[type="range"]::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; appearance: none; border: 0; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px #f7f4ec; cursor: ew-resize; }
input[type="range"]::-moz-range-track { height: 4px; border: 0; border-radius: 999px; background: #afb7af; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid #f7f4ec; border-radius: 50%; background: var(--blue); cursor: ew-resize; }
.action-section > p:not(.control-kicker) { margin: -4px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.55; font-weight: 700; }
.scan-button, .fix-button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--ink); border-radius: 12px; font-size: 12px; font-weight: 900; cursor: pointer; }
.scan-button { color: var(--ink); background: var(--lime); box-shadow: 0 5px 0 var(--ink); }
.scan-button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.scan-button span { font-size: 18px; }
.fix-button { margin-top: 12px; color: white; background: var(--blue); }
.fix-button:disabled { cursor: not-allowed; opacity: .38; }
.fix-button.is-active { color: var(--ink); background: var(--yellow); }

.workspace { min-width: 0; display: grid; grid-template-rows: 54px minmax(680px, 1fr) 86px; padding: 16px; background: var(--soft); }
.browser-bar { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border: 1px solid #bcc2ba; border-radius: 17px 17px 0 0; background: #d7dad3; }
.browser-address, .browser-state { display: flex; align-items: center; min-width: 0; }
.browser-address { gap: 7px; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.browser-address i { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.browser-address i:nth-child(2) { background: var(--yellow); }
.browser-address i:nth-child(3) { background: #55c99f; }
.browser-address span { overflow: hidden; margin-left: 4px; text-overflow: ellipsis; white-space: nowrap; }
.browser-state { gap: 8px; font-family: var(--mono); font-size: 9px; font-weight: 700; }
.browser-state span, .browser-state strong { padding: 7px 10px; border-radius: 999px; color: white; background: var(--green); }
.browser-state span[data-state="danger"] { background: var(--red); }
.browser-state span[data-state="safe"] { color: var(--ink); background: var(--lime); }
.browser-state strong { background: var(--blue); }
.browser-state i { font-style: normal; }

.viewport-stage { position: relative; min-width: 0; overflow: auto; padding: 58px max(30px, calc((100% - var(--sim-width)) / 2)) 34px; border-inline: 1px solid #bcc2ba; background-color: #faf8f2; background-image: linear-gradient(rgb(21 24 22 / 5%) 1px, transparent 1px), linear-gradient(90deg, rgb(21 24 22 / 5%) 1px, transparent 1px); background-size: 24px 24px; }
.ruler { position: absolute; top: 20px; left: max(30px, calc((100% - var(--sim-width)) / 2)); width: var(--sim-width); height: 22px; display: flex; align-items: flex-start; justify-content: space-between; border-top: 2px solid var(--ink); color: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 700; pointer-events: none; }
.ruler::before, .ruler::after { content: ""; width: 2px; height: 8px; background: var(--ink); }
.ruler span { position: absolute; top: 5px; }
.ruler span:first-child { left: 0; }
.ruler span:last-child { right: 0; }
.ruler i { position: absolute; inset: -2px 50% auto; height: 8px; border-left: 1px solid var(--muted); }
.demo-viewport { position: relative; width: var(--sim-width); min-height: 580px; overflow: auto; border: 2px solid var(--ink); border-radius: 20px; background: white; box-shadow: 12px 14px 0 rgb(21 24 22 / 13%); scrollbar-color: var(--red) #e5e7e1; scrollbar-width: thin; }
.demo-document { position: relative; width: 100%; min-height: 100%; overflow: visible; color: var(--ink); background: #fffdf7; font-family: var(--sans); }
.demo-document * { box-sizing: border-box; }
.demo-header { position: sticky; top: 0; z-index: 20; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 2px solid var(--ink); background: #fffdf7; font-family: var(--mono); font-size: 8px; font-weight: 700; }
.demo-header a { color: inherit; text-decoration: none; }
.demo-header nav { display: flex; gap: 13px; }
.demo-intro { padding: 32px 22px 38px; border-bottom: 1px solid #ccd0c8; background: var(--blue); color: white; }
.demo-intro p, .demo-label { margin: 0; font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.demo-intro h3 { margin: 12px 0 14px; font-size: 38px; line-height: .88; letter-spacing: 0; text-transform: uppercase; }
.demo-intro span { font-size: 9px; font-weight: 800; }
.issue-section { position: relative; padding: 27px 22px; border-bottom: 1px solid #ccd0c8; }
.demo-document[data-filter]:not([data-filter="all"]) .issue-section { display: none; }
.demo-document[data-filter="viewport"] .issue-section[data-issue-section="viewport"],
.demo-document[data-filter="flex"] .issue-section[data-issue-section="flex"],
.demo-document[data-filter="text"] .issue-section[data-issue-section="text"],
.demo-document[data-filter="image"] .issue-section[data-issue-section="image"],
.demo-document[data-filter="absolute"] .issue-section[data-issue-section="absolute"] { display: block; min-height: 360px; }
.demo-label { margin-bottom: 14px; color: var(--green); }
.issue-viewport { width: var(--sim-width); min-height: 108px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 18px 22px; border: 2px solid var(--ink); border-radius: 15px; background: var(--lime); }
.issue-viewport b { font-size: 18px; line-height: 1; }
.issue-viewport span { font-family: var(--mono); font-size: 8px; font-weight: 700; white-space: nowrap; }
.issue-flex-card { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px; border: 2px solid var(--ink); border-radius: 14px; background: white; }
.issue-avatar { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--yellow); font-size: 18px; font-weight: 900; }
.issue-flex-copy { flex: 1 1 auto; }
.issue-flex-copy small { font-family: var(--mono); font-size: 7px; font-weight: 700; }
.issue-flex-copy h4 { margin: 4px 0 0; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.issue-flex-card button { flex: 0 0 auto; min-height: 34px; padding: 0 10px; border: 0; border-radius: 9px; color: white; background: var(--ink); font-family: var(--mono); font-size: 8px; font-weight: 700; }
.issue-link-card { padding: 17px; border: 2px solid var(--ink); border-radius: 14px; background: var(--yellow); }
.issue-link-card > span { font-family: var(--mono); font-size: 8px; font-weight: 700; }
.issue-url { margin: 9px 0 0; font-family: var(--mono); font-size: 11px; line-height: 1.45; font-weight: 700; }
.issue-figure { margin: 0; }
.issue-image { width: 720px; max-width: none; height: 330px; display: block; object-fit: cover; border: 2px solid var(--ink); border-radius: 14px; }
.issue-figure figcaption { margin-top: 8px; color: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 700; }
.issue-position-stage { position: relative; min-height: 210px; overflow: visible; padding: 26px 20px; border: 2px solid var(--ink); border-radius: 14px; background: var(--red); }
.issue-position-stage p { margin: 0; font-family: var(--mono); font-size: 8px; font-weight: 700; }
.issue-position-stage h4 { max-width: 250px; margin: 28px 0 0; font-size: 25px; line-height: .96; }
.issue-absolute { position: absolute; top: 70px; left: calc(100% - 24px); width: 144px; height: 92px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); font-size: 32px; font-weight: 900; }
.demo-footer { min-height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; color: white; background: var(--ink); font-family: var(--mono); font-size: 8px; font-weight: 700; }
.demo-footer span { color: var(--lime); }

.demo-document.is-fixed .issue-viewport { width: 100%; }
.demo-document.is-fixed .issue-flex-copy { min-width: 0; }
.demo-document.is-fixed .issue-url { overflow-wrap: anywhere; }
.demo-document.is-fixed .issue-image { width: 100%; max-width: 100%; height: auto; }
.demo-document.is-fixed .issue-absolute { right: 12px; left: auto; }
[data-overflow-target].is-overflowing { position: relative; z-index: 12; outline: 4px solid var(--red); outline-offset: 3px; animation: overflow-pulse .65s ease 2; }
[data-overflow-target].is-overflowing::after { content: "+" attr(data-overflow-amount) "px"; position: absolute; top: -14px; right: -4px; z-index: 30; padding: 4px 7px; border: 2px solid var(--ink); border-radius: 999px; color: white; background: var(--red); font-family: var(--mono); font-size: 8px; font-weight: 700; white-space: nowrap; }
img.is-overflowing { box-shadow: 0 0 0 4px var(--red); }
[data-overflow-target].is-focused { outline-color: var(--yellow); animation: focus-flash .5s ease 3; }
@keyframes overflow-pulse { 50% { outline-width: 8px; } }
@keyframes focus-flash { 50% { filter: brightness(1.3); } }

.measure-bar { display: flex; align-items: stretch; min-width: 0; padding: 0 16px; border: 1px solid var(--ink); border-radius: 0 0 17px 17px; color: white; background: var(--ink); }
.measure-bar > div { min-width: 108px; display: flex; flex-direction: column; justify-content: center; padding: 0 16px; border-right: 1px solid #394039; }
.measure-bar > div:first-child { padding-left: 0; }
.measure-bar span { color: #8f9990; font-family: var(--mono); font-size: 8px; font-weight: 700; }
.measure-bar b { margin-top: 3px; color: var(--lime); font-family: var(--mono); font-size: 13px; }
.measure-bar b.danger { color: var(--red); }
.measure-bar i { font-style: normal; }
.measure-bar p { max-width: 340px; margin: auto 0 auto auto; color: #bdc5bd; font-size: 10px; line-height: 1.4; font-weight: 700; text-align: right; }

.results { border-top: 1px solid var(--line); padding: 22px 24px 25px; }
.results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.results-heading h3 { margin: 5px 0 0; font-size: 22px; }
.results-heading > span { padding: 8px 11px; border-radius: 999px; color: var(--muted); background: #eef0eb; font-family: var(--mono); font-size: 10px; font-weight: 700; }
.results-heading > span[data-state="danger"] { color: white; background: var(--red); }
.results-heading > span[data-state="safe"] { color: var(--ink); background: var(--lime); }
.result-empty { min-height: 112px; display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 17px; border: 1px dashed #b9bfb7; border-radius: 16px; color: var(--muted); background: #f6f5ef; }
.result-empty i { font-size: 28px; font-style: normal; }
.result-empty p { margin: 0; font-size: 12px; font-weight: 700; }
.result-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 17px; }
.result-card { min-width: 0; min-height: 155px; display: flex; flex-direction: column; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #f8f6ef; }
.result-card:hover { border-color: var(--ink); }
.result-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.result-card header span { color: var(--red); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.result-card header b { padding: 4px 6px; border-radius: 999px; color: white; background: var(--red); font-family: var(--mono); font-size: 10px; }
.result-card h4 { margin: 12px 0 4px; font-size: 13px; }
.result-card code { overflow: hidden; color: var(--blue); font-family: var(--mono); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.result-card p { margin: 8px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.4; font-weight: 700; }
.result-card button { min-height: 31px; margin-top: auto; border: 0; border-radius: 8px; color: white; background: var(--ink); font-size: 10px; font-weight: 800; cursor: pointer; }
.result-safe { grid-column: 1 / -1; min-height: 112px; display: grid; place-items: center; border: 1px solid #91d85a; border-radius: 16px; background: #efffd8; text-align: center; }
.result-safe b { font-size: 19px; }
.result-safe p { margin: 5px 0 0; color: var(--muted); font-size: 11px; font-weight: 700; }

.bookmarklet-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr); margin-top: 18px; }
.bookmarklet-intro { padding: 28px; color: white; background: var(--blue); }
.bookmarklet-intro > p:first-child { margin: 0; color: var(--lime); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.bookmarklet-intro h2 { margin: 7px 0 0; font-size: clamp(25px, 2.5vw, 38px); line-height: 1.12; }
.bookmarklet-lead { margin: 11px 0 0; color: #eef0ff; font-size: 12px; line-height: 1.55; font-weight: 700; }
.bookmarklet-action { min-height: 106px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 24px; padding: 15px; border: 2px solid var(--ink); border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: 6px 6px 0 var(--ink); }
.drag-arrow { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--red); font-size: 22px; font-weight: 900; }
.bookmarklet-action b { display: block; font-size: 13px; }
.bookmarklet-action div span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; font-weight: 700; }
.bookmarklet-action a { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 2px solid var(--ink); border-radius: 13px; color: var(--ink); background: var(--lime); box-shadow: 0 5px 0 var(--ink); font-size: 12px; font-weight: 900; text-decoration: none; white-space: nowrap; cursor: grab; }
.bookmarklet-action a:active { cursor: grabbing; transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.bookmarklet-test-note { margin: 13px 2px 0; color: #e9ebff; font-size: 10px; line-height: 1.45; font-weight: 700; }
.bookmarklet-guide { display: flex; flex-direction: column; padding: 25px; background: #f7f4ec; }
.bookmarklet-guide ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bookmarklet-guide li { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 12px; }
.bookmarklet-guide li > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--blue); background: white; font-family: var(--mono); font-size: 10px; font-weight: 700; }
.bookmarklet-guide li b { font-size: 12px; }
.bookmarklet-guide li p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; font-weight: 700; }
.bookmarklet-fallback { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: auto; padding-top: 19px; border-top: 1px solid var(--line); }
.bookmarklet-fallback b { font-size: 11px; }
.bookmarklet-fallback p { max-width: 380px; margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; font-weight: 700; }
.bookmarklet-fallback button { flex: 0 0 auto; min-height: 42px; padding: 0 14px; border: 0; border-radius: 10px; color: white; background: var(--ink); font-size: 10px; font-weight: 800; cursor: pointer; }
.bookmarklet-fallback button:hover { background: var(--green); }

.details-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 18px; }
.code-panel, .method-panel { min-height: 560px; padding: 24px; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.panel-heading h2 { margin: 6px 0 0; font-size: 25px; }
.panel-heading button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 10px; color: white; background: var(--ink); font-size: 10px; font-weight: 800; cursor: pointer; }
.code-tabs { display: flex; gap: 4px; margin-top: 22px; padding: 4px; border-radius: 11px; background: #e9ebe5; }
.code-tabs button { flex: 1; min-height: 37px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 700; cursor: pointer; }
.code-tabs button[aria-selected="true"] { color: white; background: var(--blue); }
pre { height: 340px; overflow: auto; margin: 12px 0 0; padding: 19px; border: 1px solid #333a35; border-radius: 14px; color: #eaf1ea; background: #151816; font-family: var(--mono); font-size: 11px; line-height: 1.65; tab-size: 2; }
pre code { font: inherit; }
.code-note { margin: 13px 3px 0; color: var(--muted); font-size: 10px; line-height: 1.45; font-weight: 700; }
.method-list { margin: 26px 0 0; padding: 0; list-style: none; }
.method-list li { display: grid; grid-template-columns: 42px 1fr; gap: 15px; padding: 18px 0; border-top: 1px solid var(--line); }
.method-list li > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--ink); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.method-list li b { font-size: 14px; }
.method-list li p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; font-weight: 700; }
.method-visual { position: relative; height: 92px; margin-top: 22px; overflow: hidden; border: 2px solid var(--ink); border-radius: 14px; background: #eeefe9; }
.method-visual span { position: absolute; inset: 0 27% 0 0; display: grid; place-items: center; border-right: 3px solid var(--ink); color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.method-visual i { position: absolute; inset: 0 0 0 73%; background: repeating-linear-gradient(135deg, var(--red) 0 10px, #ffb4a8 10px 20px); }
.method-visual b { position: absolute; right: 12px; top: 12px; padding: 6px 8px; border-radius: 999px; color: white; background: var(--red); font-family: var(--mono); font-size: 9px; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 8px 0; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.page-footer p { margin: 0; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 12px; color: white; background: var(--ink); font-size: 11px; font-weight: 800; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .18s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .finder-layout { grid-template-columns: 280px minmax(0, 1fr); }
  .workspace { grid-template-rows: 54px minmax(650px, 1fr) auto; padding: 12px; }
  .measure-bar { min-height: 98px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px; }
  .measure-bar > div { min-width: 0; padding: 4px 10px; }
  .measure-bar p { grid-column: 1 / -1; max-width: none; margin: 7px 8px 0; text-align: left; }
  .result-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bookmarklet-panel { grid-template-columns: 1fr; }
  .bookmarklet-guide { min-height: 290px; }
}

@media (max-width: 860px) {
  .page { width: min(100% - 20px, 720px); padding-top: 14px; }
  .hero { min-height: 0; display: block; padding: 6px 2px 18px; }
  h1 { margin-top: 12px; font-size: clamp(34px, 11.5vw, 78px); }
  .lead { margin-top: 12px; font-size: 15px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; }
  .support-chip { grid-column: 1 / -1; justify-content: center; }
  .section-heading { min-height: 82px; padding: 13px; }
  .section-number { flex-basis: 44px; height: 44px; }
  .section-heading h2 { font-size: 21px; }
  .heading-metrics { display: none; }
  .finder-layout { display: block; }
  .controls { display: grid; grid-template-columns: 1fr 1fr; border-right: 0; border-bottom: 1px solid var(--line); }
  .control-section:first-child { grid-row: span 2; border-right: 1px solid var(--line); }
  .control-section { padding: 18px 16px 20px; }
  .workspace { min-height: 850px; grid-template-rows: 50px 700px auto; }
  .viewport-stage { padding-inline: 24px; }
  .ruler { left: 24px; }
  .results { padding: 20px 16px; }
  .result-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details-grid { grid-template-columns: 1fr; }
  .code-panel, .method-panel { min-height: 0; padding: 20px 16px; }
}

@media (max-width: 560px) {
  .page { width: min(100% - 12px, 430px); }
  .hero-actions { gap: 7px; }
  .support-chip, .top-button { min-height: 42px; padding-inline: 10px; font-size: 10px; }
  .finder-shell, .bookmarklet-panel, .code-panel, .method-panel { border-radius: 20px; }
  .section-heading { gap: 11px; }
  .section-heading h2 { font-size: 18px; }
  .controls { display: block; }
  .control-section:first-child { border-right: 0; }
  .preset-list { grid-template-columns: 1fr 1fr; }
  .workspace { grid-template-rows: 46px 670px auto; padding: 8px; }
  .browser-bar { padding-inline: 10px; }
  .browser-state span { display: none; }
  .viewport-stage { padding-left: 18px; padding-right: 18px; }
  .ruler { left: 18px; }
  .measure-bar { grid-template-columns: 1fr 1fr; }
  .measure-bar > div { min-height: 46px; }
  .result-list { grid-template-columns: 1fr; }
  .result-card { min-height: 140px; }
  .result-empty { padding: 18px; text-align: center; }
  .result-empty p { font-size: 11px; }
  .bookmarklet-intro, .bookmarklet-guide { padding: 20px 16px; }
  .bookmarklet-action { grid-template-columns: 36px minmax(0, 1fr); }
  .drag-arrow { width: 36px; height: 36px; }
  .bookmarklet-action a { grid-column: 1 / -1; width: 100%; }
  .bookmarklet-guide { min-height: 0; }
  .bookmarklet-fallback { display: block; }
  .bookmarklet-fallback button { width: 100%; margin-top: 12px; }
  .panel-heading { align-items: flex-start; }
  .panel-heading h2 { font-size: 21px; }
  pre { height: 380px; padding: 14px; font-size: 10px; }
  .page-footer { display: block; line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
