/* Shared PC/tablet metrics. Evidence and limits: DESIGN-DISPLAY.md.
   Breakpoints change composition, never multiply type by device pixel ratio. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;--an-header-height:48px}
html:root .an-header,html:root #interview-reading-layout .an-header.ir-header{height:48px;min-height:48px;padding:0 16px;gap:20px}
html:root .an-header .an-brand,html:root #interview-reading-layout .an-header .an-brand.ir-name{font-size:22px}
html:root .an-header .an-links{gap:16px}
html:root .an-header .an-links a{font-size:12px;min-height:44px}
html:root .an-header .an-actions{gap:6px}
html:root .an-header button{min-height:44px;font-size:12px}
html:root .an-header .an-search-toggle{padding:6px 10px}
html:root #interview-reading-layout:not(.rm-workbench) .kc-window{grid-template-rows:48px minmax(0,1fr);grid-template-columns:0 minmax(0,1fr)}
html:root #interview-reading-layout:not(.rm-workbench) .kc-window.kc-nav-open{grid-template-columns:176px minmax(0,1fr)}
html:root #interview-reading-layout #kc-sidebar{padding:16px 8px 8px}
html:root #interview-reading-layout .kc-side-label{font-size:10px;padding:0 8px 12px}
html:root #interview-reading-layout #kc-sidebar .ir-topic-switch{gap:4px}
html:root #interview-reading-layout #kc-sidebar .ir-topic-switch a,
html:root #interview-reading-layout #kc-sidebar .ir-topic-switch button{font-size:12px;line-height:1.5;min-height:44px;padding:8px}
html:root #interview-reading-layout .kc-side-note{font-size:11px;padding-top:16px;margin: auto 8px 0}
html:root #interview-reading-layout .kc-toolbar{min-height:56px;padding:6px 16px;gap:12px}
html:root #interview-reading-layout .kc-heading{column-gap:8px}
html:root #interview-reading-layout .kc-heading h1{font-size:20px;line-height:1.4;margin:0}
html:root #interview-reading-layout .kc-heading>span{font-size:11px}
html:root #interview-reading-layout .kc-heading #kc-nav-toggle{width:44px;height:44px;min-height:44px}
html:root #interview-reading-layout .kc-actions{gap:6px}
html:root #interview-reading-layout .kc-actions button,
html:root #interview-reading-layout .kc-more>summary,
html:root #interview-reading-layout .rm-mode-switch button{font-size:12px;min-height:40px;padding:6px 10px}
html:root #interview-reading-layout .kc-reader-head{min-height:40px;padding:4px 12px}
html:root #interview-reading-layout .kc-reader-head strong{font-size:12px}
html:root #interview-reading-layout .kc-reader-head button{font-size:12px;min-height:36px}
html:root #interview-reading-layout .kc-reader .kc-card-head{padding:12px 16px 8px}
html:root #interview-reading-layout .kc-reader .kc-card-head h2{font-size:22px;line-height:1.5}
html:root #interview-reading-layout .kc-reader .kc-card-kicker{font-size:11px;margin-bottom:4px}
html:root #interview-reading-layout .kc-reader .kc-card-close{width:44px;height:44px;min-height:44px;font-size:22px}
html:root #interview-reading-layout .kc-reader .kc-card-tools{padding:0 16px 8px;gap:6px}
html:root #interview-reading-layout .kc-reader .kc-card-tools button,
html:root #interview-reading-layout .kc-reader .kc-card-tools summary{font-size:12px;line-height:1.5;min-height:40px;padding:6px 8px}
html:root #interview-reading-layout .kc-reader .kc-card-scroll{padding:12px 16px 88px}
html:root #interview-reading-layout .kc-card-scroll p,
html:root #interview-reading-layout .kc-card-scroll li{font-size:16px;line-height:1.7}
html:root #interview-reading-layout .kc-card-scroll h3{font-size:16px;line-height:1.6}
html:root #interview-reading-layout .kc-card-scroll .kc-core{padding:12px 14px 4px;border-radius:12px}
html:root #interview-reading-layout .kc-explain-section{margin:20px 0!important}
html:root #interview-reading-layout .kc-explain-section p{line-height:1.7!important}
html:root #interview-reading-layout .kc-card-scroll details>summary{font-size:13px;min-height:44px;padding:8px 0}
html:root #interview-reading-layout #kc-recent{padding:4px 12px;font-size:11px}
html:root #interview-reading-layout #kc-recent button{font-size:12px;min-height:36px}
html:root #interview-reading-layout .kc-canvas-tools{left:12px;bottom:12px;padding:4px}
html:root #interview-reading-layout .kc-canvas-tools button{min-width:44px;min-height:44px;font-size:12px}
html:root #interview-reading-layout .kc-canvas-tools output{font-size:12px}
html:root #interview-reading-layout .kc-map-footer{display:none}
html:root #interview-reading-layout .kc-save-state{font-size:11px;padding:3px 12px}
html:root #recall-map .rm-question{padding:16px}
html:root #recall-map .rm-question h2{font-size:21px;line-height:1.65;margin-top:16px}
html:root #recall-map .rm-origin{padding:12px;margin-top:12px}
html:root #recall-map .rm-origin strong{font-size:17px}
html:root #recall-map .rm-origin p{font-size:13px;line-height:1.65}
html:root #recall-map .rm-answer p{font-size:16px;line-height:1.7}
html:root #recall-map .rm-actions button{font-size:14px;min-height:44px}
html:root #recall-map .rm-node strong{font-size:14px!important}
html:root #recall-map .rm-tabs button,html:root #recall-map .rm-tools button{font-size:12px;min-height:40px}
@media(min-width:760px){
 html:root #interview-reading-layout .kc-stage{flex-direction:row}
 html:root #interview-reading-layout .kc-reader,
 html:root #interview-reading-layout .kc-reader.is-compare{height:auto;width:var(--kc-reader-size,50%);min-width:280px}
 html:root #interview-reading-layout #kc-splitter{flex-basis:10px;cursor:col-resize;border-top:0;border-left:1px solid var(--ir-line)}
 html:root #interview-reading-layout #kc-splitter::after{inset:40% 3px}
}
@media(max-width:1199px){
 html:root #interview-reading-layout:not(.rm-workbench) .kc-window.kc-nav-open{grid-template-columns:0 minmax(0,1fr)}
 html:root #interview-reading-layout #kc-sidebar{position:fixed;top:48px;left:0;bottom:0;width:176px;z-index:105;transform:translateX(-100%);transition:transform .15s}
 html:root #interview-reading-layout .kc-nav-open #kc-sidebar{transform:translateX(0)}
 html:root #interview-reading-layout #kc-nav-backdrop:not([hidden]){display:block;position:fixed;top:48px;left:176px;right:0;bottom:0;z-index:104;background:#20223833;border:0}
}
@media(max-width:759px){
 html:root .an-header,html:root #interview-reading-layout .an-header.ir-header{gap:8px;padding:0 12px}
 html:root .an-header .an-links{display:none}
 html:root .an-header .an-menu-toggle{display:inline-flex}
 html:root .an-header .an-theme{font-size:0;width:44px;padding:6px}
 html:root .an-header .an-theme::after{content:'夜间';font:12px/1.4 var(--an-sans)}
 html:root[data-theme=dark] .an-header .an-theme::after{content:'日间'}
 html:root .an-header .an-search-toggle kbd{display:none}
 html:root #interview-reading-layout .kc-toolbar{padding:6px 12px;flex-wrap:wrap}
 html:root #interview-reading-layout .kc-stage{flex-direction:column}
 html:root #interview-reading-layout .kc-reader,
 html:root #interview-reading-layout .kc-reader.is-compare{height:var(--kc-reader-size,66%);width:100%;min-width:0}
 html:root #recall-map .rm-question{padding:12px 12px 96px}
}
/* Touch affects hit areas only; typography and spacing stay shared. */
@media(pointer:coarse){
 html:root #interview-reading-layout .kc-actions button,
 html:root #interview-reading-layout .kc-more>summary,
 html:root #interview-reading-layout .rm-mode-switch button,
 html:root #interview-reading-layout .kc-reader .kc-card-tools button,
 html:root #interview-reading-layout .kc-reader .kc-card-tools summary{min-height:44px}
}
@media(max-width:399px){
 html:root .an-header .an-brand,html:root #interview-reading-layout .an-header .an-brand.ir-name{font-size:18px}
 html:root .an-header .an-actions{gap:2px}
}
@media(max-width:359px){
 html:root .an-header,html:root #interview-reading-layout .an-header.ir-header{padding:0 8px;gap:4px}
 html:root .an-header .an-brand,html:root #interview-reading-layout .an-header .an-brand.ir-name{font-size:15px}
 html:root .an-header .an-actions>button{width:44px;min-width:44px;padding:0;justify-content:center}
}
@media(prefers-reduced-motion:reduce){html:root #interview-reading-layout #kc-sidebar{transition:none}}

/* Graph geometry is shared across devices. Pan the map instead of squeezing edges. */
html:root #recall-map .rm-map-viewport{position:relative;height:clamp(360px,calc(100dvh - 330px),650px);min-height:280px;flex:1;overflow:hidden;isolation:isolate;touch-action:none;cursor:grab;background:var(--ir-paper);background-image:radial-gradient(var(--ir-line) .7px,transparent .7px);background-size:22px 22px}
html:root #recall-map .rm-map-viewport:active{cursor:grabbing}
html:root #recall-map .rm-map-viewport .rm-map{position:absolute;left:0;top:0;margin:0!important;width:var(--rm-world-width)!important;height:var(--rm-world-height)!important;min-width:0!important;min-height:0!important;transform-origin:0 0;background:none;flex:none}
html:root #recall-map .rm-map-viewport .rm-node{max-width:none!important;min-width:0;min-height:0;box-sizing:border-box;cursor:pointer}
html:root #recall-map .rm-map-controls{position:absolute;left:10px;bottom:10px;display:flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--ir-line);border-radius:10px;background:var(--ir-surface);color:var(--ir-ink);cursor:default;z-index:5}
html:root #recall-map .rm-map-controls button{min-height:36px;min-width:36px;padding:5px 8px;background:transparent;border:0;color:inherit;font-size:12px;border-radius:6px}
html:root #recall-map .rm-map-controls output{font-size:11px;min-width:35px;text-align:center}
html:root #recall-map .rm-map-controls button:hover{background:var(--ir-tint)}
html:root #recall-map .rm-edge-label{max-width:none;box-sizing:border-box;font-size:13px;line-height:1.5}
html:root #interview-reading-layout .kc-relation-association text,html:root #interview-reading-layout .kc-relation-constraint text{opacity:.85}
html:root #interview-reading-layout #kc-edges .kc-label-leader{stroke-width:1;stroke-dasharray:2 3;opacity:.5}
@media(pointer:coarse){html:root #recall-map .rm-map-controls button{min-height:44px;min-width:40px}}

html:root #interview-reading-layout .kc-shared-knowledge{padding:12px;border:1px solid var(--ir-line);border-radius:9px;background:var(--ir-tint);margin-bottom:16px}
html:root #interview-reading-layout .kc-shared-knowledge p{font-size:12px;margin-bottom:8px}
html:root #interview-reading-layout .kc-shared-knowledge nav,html:root #recall-map .rm-shared-knowledge{display:flex;flex-wrap:wrap;gap:6px}
html:root #interview-reading-layout .kc-shared-knowledge a,html:root #recall-map .rm-shared-knowledge a{font-size:12px;color:var(--ir-ink);text-decoration:underline;text-underline-offset:3px;padding:6px 8px;border:1px solid var(--ir-line);border-radius:6px;background:var(--ir-surface)}
html:root #recall-map .rm-shared-knowledge{padding:10px 0;font-size:12px}
html:root #recall-map .rm-shared-knowledge strong{width:100%;font-weight:500;color:var(--rm-muted)}

html:root #interview-reading-layout .kc-shared-knowledge{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px 10px}
html:root #interview-reading-layout .kc-shared-knowledge>span{font-size:11px;color:var(--ir-muted);margin-right:4px}

/* Pair technical names with their concrete action, using existing theme tokens. */
html:root #interview-reading-layout .kc-professional-title{font-size:.8em;color:var(--ir-muted);margin:.35em 0 0;line-height:1.5}
html:root #interview-reading-layout .kc-term,html:root #recall-map .rm-terminology{border-left:2px solid var(--ir-line);padding:.5em .75em;margin:.75em 0 0;font-size:.875em;line-height:1.7;background:var(--ir-tint);color:var(--ir-ink)}
html:root #interview-reading-layout .kc-term>span,html:root #recall-map .rm-terminology>small{display:block;font-size:.85em;color:var(--ir-muted);margin:0 0 .2em}
html:root #interview-reading-layout .kc-term>strong,html:root #recall-map .rm-terminology>strong{font-weight:600}

html:root #recall-map .rm-node .rm-node-plain{display:block;font-size:11px;line-height:1.4;color:var(--ir-muted)}
