/* Shared additions to the v7.2 page styles; font files and source prototype stay unchanged. */
.top .brand { font-size: inherit; font-weight: inherit; }
.top-a[aria-current="page"] { color:var(--ink);font-weight:500; }
.top-a[aria-current="page"]::after { content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:2px;background:var(--ink); }
.top-me[aria-current="page"] .av { box-shadow:0 0 0 2px var(--bg),0 0 0 3.5px var(--ink); }
.dd-menu>a { display:block;padding:10px 12px;font-size:var(--t15);border-radius:var(--r-xs); }
.dd-menu>a:hover,.dd-menu>a:focus { background:var(--fill); }
.dd-label {display:block;font-size:var(--t14);color:var(--ink-2);padding:12px 12px 4px;border-top:1px solid var(--line);margin-top:4px;}
.stack { gap:var(--gap,16px); }
.foot .stack {gap:8px;}
.foot-lang form {display:inline-flex;}
.foot-lang button[aria-current] {font-weight:500;color:var(--ink);}
.protected-screen img { display:block;width:100%;height:auto;aspect-ratio:16 / 10;object-fit:contain;background:var(--bg); }
.protected-screen { overflow:hidden; }
.chip { display:inline-flex;align-items:center;justify-content:center; }
.seg4 {border:0;padding:0;margin-top:24px;}
.seg4-o {cursor:pointer;}
.seg4-o:has(input:checked) {background:var(--bg);box-shadow:inset 0 0 0 1.5px var(--ink);}
.seg4-o:has(input:checked) .ck {opacity:1;}
.seg4-o:has(input:focus-visible) {outline:2px solid var(--accent);outline-offset:3px;}
.tp-acts form {margin:0;}
.tp-prompt-h .row-x {gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.tp-acc .stack {gap:20px;}
.tp-say .field {margin-top:16px;}
.m2-diff {display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.m2-diff pre {white-space:pre-wrap;overflow-wrap:anywhere;padding:20px;background:var(--fill);border-radius:var(--r-sm);font:inherit;}
.m2-tweak+.m2-tweak {padding-top:20px;margin-top:20px;border-top:1px solid var(--line);}
.m2-author-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;}
.m2-author-grid>section:only-child {grid-column:1/-1;max-width:760px;width:100%;}
.mb3 {margin-bottom:24px;}
.me-sys-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;}
.me-set-g .seg button[aria-pressed="true"] {background:var(--bg);box-shadow:var(--shadow-thumb);color:var(--ink);}
.m2-question-path {margin-top:28px;list-style:none;counter-reset:path;}
.m2-question-path li {padding:14px 0;border-top:1px solid var(--line);font-size:var(--t15);counter-increment:path;}
.m2-question-path li:before {content:counter(path);display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;background:var(--fill);border-radius:50%;margin-right:16px;}
.m2-search-result {display:block;padding:10px 12px;border-radius:var(--r-xs);font-size:var(--t15);}
.m2-search-result small {display:block;font-size:var(--t13);color:var(--ink-2);margin-top:2px;}
.m2-search-result:hover,.m2-search-result[aria-selected="true"] {background:var(--fill);}
.search-pop .cap {padding:8px 12px;}
.layer .sheet {overflow-y:auto;max-height:calc(100dvh - 48px);}
.pg [id],.band[id] {scroll-margin-top:100px;}
#me-did-form .textarea {min-height:200px;}
#me-did-form {padding-bottom:12px;}
#pg-login .lg-tools {display:flex;gap:16px;align-items:center;}
@media(max-width:767px){.me-sys-grid,.m2-author-grid,.m2-diff{grid-template-columns:1fr;}.tp-acts{flex-wrap:wrap}.tp-acts>form{max-width:100%}.tp-prompt-h{align-items:flex-start;gap:16px;flex-direction:column}.m2-author-grid>section:only-child{max-width:100%}.layer .sheet{max-height:calc(100dvh - 24px)}.pg [id],.band[id]{scroll-margin-top:130px;}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.screenshot-placeholder {aspect-ratio:16 / 10;display:flex;align-items:center;justify-content:center;padding:32px;background:var(--fill);border-radius:var(--r-img);color:var(--ink-2);text-align:center;}
#pg-tool .tp-mini .protected-screen {width:100%;}
#pg-tool .tp-mini-in:has(.protected-screen) {position:static;width:100%;transform:none;}
#pg-tool .tp-mini:has(.protected-screen) {height:auto;aspect-ratio:16 / 10;}
#pg-me .tp-priv {padding:36px;}
#pg-me .tp-priv-k {display:inline-flex;align-items:center;gap:6px;font-size:var(--t13);color:var(--ink-2);}
#pg-me .tp-pnums {display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px;}
#pg-me .tp-pnums b {font-size:var(--t56);font-weight:500;line-height:1;}
#pg-me .tp-pnums span {font-size:var(--t17);color:var(--ink-2);margin-left:4px;}
#pg-me .tp-pnums p {font-size:var(--t13);color:var(--ink-2);margin-top:6px;}
#pg-me .tp-psplit {margin-top:16px;padding-top:16px;border-top:1px solid var(--line);font-size:var(--t15);}
#pg-me .tp-wait {margin-top:24px;padding:20px;background:var(--bg-2);border-radius:var(--r-sm);}
#pg-me .tp-wait-t {font-size:var(--t17);margin:8px 0;}
@media(max-width:767px){#pg-me .tp-priv {padding:24px;}}
.m2-screen-tabs {display:flex;gap:4px;padding:8px;background:var(--device-bar);border-bottom:1px solid var(--device-line);}
.m2-screen-tabs button {flex:1;padding:6px 10px;border-radius:var(--r-xs);font-size:var(--t13);line-height:1.3;color:var(--device-soft);}
.m2-screen-tabs button[aria-selected="true"] {background:var(--device-bg);color:var(--device-ink);box-shadow:var(--shadow-thumb);}
#top-search .search-clear {position:static;flex:none;width:28px;height:28px;color:var(--ink-2);border-radius:50%;}
#q::-webkit-search-cancel-button {-webkit-appearance:none;}

/* A resource with no comparison evidence uses its real preview at full width. */
#pg-tool .tp-stage.tp-stage-preview {height:auto;padding:32px;display:flex;flex-direction:column;gap:24px;}
#pg-tool .tp-stage-preview .tp-preview {min-width:0;width:100%;}
#pg-tool .tp-stage-preview .tp-float {position:static;min-width:0;align-self:flex-end;}
#pg-home .hm-stage.hm-stage-preview {height:auto;padding:32px;}
#pg-home .hm-stage-preview .hm-dev {position:static;}
@media(max-width:759px){#pg-tool .tp-stage.tp-stage-preview,#pg-home .hm-stage.hm-stage-preview {padding:20px;}#pg-tool .tp-stage-preview .tp-float {width:100%;}}
