/* Pieces used only inside detail screens. */
@keyframes sway { 0%,100%{transform:rotate(-1.2deg)} 50%{transform:rotate(1.2deg)} }
.os-row:hover { background: var(--bg-3); }
.diagram .edge { color: var(--line-2); } .diagram .edge.hot { color: var(--green); } .diagram .edge.warm { stroke: var(--amber); color: var(--amber); }
.diagram .edge.dash { stroke-dasharray: 5 5; }
.diagram .edge-label { paint-order: stroke; stroke: var(--bg-2); stroke-width: 4px; }
.diagram .lane-label { text-transform: uppercase; }
.diagram.bp { background: #13314F; border-color: #1E232B; background-image: linear-gradient(rgba(220,232,245,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(220,232,245,.10) 1px, transparent 1px); background-size: 24px 24px; }
.diagram.bp .node rect { fill: rgba(220,232,245,.06); stroke: #DCE8F5; }
.diagram.bp .node.hot rect { fill: rgba(220,232,245,.12); stroke: #DCE8F5; stroke-width: 1.5; }
.diagram.bp .node.warm rect { fill: rgba(255,217,174,.10); stroke: #FFD9AE; }
.diagram.bp .node text { fill: #DCE8F5; } .diagram.bp .node .sub { fill: rgba(220,232,245,.7); }
.diagram.bp .edge { stroke: #DCE8F5; color: #DCE8F5; } .diagram.bp .edge.warm { stroke: #FFD9AE; color: #FFD9AE; } .diagram.bp .edge.hot { stroke: #8FF0C4; color: #8FF0C4; }
.diagram.bp .edge-label { fill: #FFD9AE; stroke: #13314F; }
.diagram.bp .lane { stroke: rgba(220,232,245,.6); } .diagram.bp .lane-label { fill: rgba(220,232,245,.8); }
.bp-sheet { position: relative; border: 12px solid #1E232B; border-radius: 4px; box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.bp-sheet .diagram { border: none; border-radius: 0; }
.bp-title { position: absolute; right: 18px; bottom: 18px; border: 1px solid #DCE8F5; padding: 6px 10px; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: #DCE8F5; background: #13314F; line-height: 1.6; }
.bp-title b { font-size: 10px; }
.sheet-paper { background: #F3F5F7; color: #12161C; border-radius: 6px; padding: 28px 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 70px rgba(0,0,0,.5); font-size: 13px; }
.sheet-paper h4 { margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #A0541A; }
.sheet-paper ul { margin: 4px 0 0; padding-left: 14px; color: #2A313B; font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.sheet-paper .ph { color: #6B7684; border-color: #B8C0CA; }
.paper-cols { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 640px) { .paper-cols { grid-template-columns: 1fr; } .paper-cols > div + div { border-left: none !important; padding-left: 0 !important; border-top: 1px solid #D5DAE1; padding-top: 14px; } }
.paper-mock { background: #F3F5F7; color: #12161C; border: 10px solid #1C2129; border-radius: 4px; padding: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 420px; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.paper-mock i { display: block; height: 3px; background: #B8C0CA; border-radius: 2px; margin: 3px 0; }
.cert-big { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 22px 18px; min-height: 220px; background: #F7F8FA; color: #12161C; border: 8px solid #2B2219; outline: 10px solid #E9EDF2; outline-offset: -18px; cursor: pointer; font-family: var(--mono); text-align: center; transition: transform .2s var(--ease), box-shadow .2s; box-shadow: 0 18px 36px rgba(0,0,0,.5); }
.cert-big b { font-family: var(--display); font-size: 22px; font-weight: 800; } .cert-big .name { font-size: 14px; } .cert-big small { font-size: 10px; color: #4A5566; }
.cert-big i { position: absolute; right: 22px; bottom: 22px; width: 26px; height: 26px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-style: normal; font-size: 13px; }
.cert-big:hover { transform: translateY(-4px); } .cert-big.is-on { box-shadow: 0 0 0 4px var(--green), 0 24px 48px rgba(0,0,0,.55); }
.cert-big:focus-visible { outline-color: var(--green); }
.pick-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 104px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg-2); font-family: var(--mono); font-size: 11px; cursor: pointer; transition: transform .15s, border-color .15s; }
.pick-tile b { font-family: var(--mono); font-size: 26px; } .pick-tile .nm { color: var(--fg); font-weight: 500; } .pick-tile small { color: var(--fg-3); font-size: 10px; }
.pick-tile:hover { transform: translateY(-2px); border-color: var(--line-2); }
.pick-tile.is-on { border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent); background: #1C2A22; }
.ph-photo { flex: 1; width: 100%; display: grid; place-items: center; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--fg-4); font-size: 10px; }
.dpad { display: grid; grid-template-areas: ". u ." "l c r" ". d ."; gap: 4px; }
.dpad button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: rgba(14,17,22,.85); color: var(--fg); font-size: 12px; }
.dpad button:hover { border-color: var(--green); background: #1C2A22; }
.lab-tile { position: absolute; width: 17%; height: 14%; border-radius: 10px; border: 1px solid var(--line); background: rgba(18,22,29,.9); color: var(--fg-2); font-family: var(--mono); font-size: 11px; cursor: pointer; transition: transform .15s, border-color .15s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.lab-tile:hover { border-color: var(--green); transform: translateY(-2px); }
.lab-door { border-style: dashed; border-color: rgba(242,166,90,.5); }
.lab-door i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); position: absolute; bottom: 8px; }
.lab-door i:nth-of-type(1) { left: 10px; } .lab-door i:nth-of-type(2) { left: 20px; } .lab-door i:nth-of-type(3) { left: 30px; } .lab-door i:nth-of-type(4) { left: 40px; }
.lab-avatar { position: absolute; width: 60px; height: 90px; transition: left .9s var(--ease), top .9s var(--ease); animation: hover 3s ease-in-out infinite; }
.lab-head { position: absolute; left: 10px; top: 0; width: 40px; height: 40px; border-radius: 50%; background: #B98563; transition: transform .2s; display: flex; gap: 6px; justify-content: center; padding-top: 14px; }
.lab-head::before { content: ""; position: absolute; left: -2px; top: -4px; width: 44px; height: 20px; border-radius: 22px 22px 6px 6px; background: #1A1411; }
.lab-head .eye { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #F3F5F7; overflow: hidden; }
.lab-head .eye b { position: absolute; left: 2.5px; top: 2.5px; width: 4px; height: 4px; border-radius: 50%; background: #12161C; }
.lab-head .mouth { position: absolute; left: 16px; bottom: 7px; width: 8px; height: 3px; border-radius: 0 0 4px 4px; background: #7A4A36; }
.lab-body { position: absolute; left: 6px; top: 38px; width: 48px; height: 52px; border-radius: 20px 20px 8px 8px; background: linear-gradient(180deg, #2F6F5E, #245548); }
.lab-bang { position: absolute; left: 52px; top: -14px; color: var(--amber); font-family: var(--display); font-weight: 800; font-size: 22px; }
#lab-bubble { position: absolute; white-space: normal; max-width: 200px; transition: left .9s var(--ease), top .9s var(--ease); }
.phone-big { border-radius: 30px; background: #0E1A24; border: 10px solid #1C2129; box-shadow: 0 30px 70px rgba(0,0,0,.5); overflow: hidden; }
.pipe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pipe i { color: var(--fg-4); font-style: normal; }
.pstage { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 94px; height: 64px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); font-family: var(--mono); }
.pstage small { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); } .pstage b { font-size: 13px; }
.pstage.you { border-color: #3A4A6B; } .pstage.you small { color: #8FB3FF; }
.pstage.engine { border-color: #4A3A2A; } .pstage.engine small { color: var(--amber); }
.spine-btn { position: relative; border: none; cursor: pointer; color: rgba(255,255,255,.85); font-family: var(--mono); font-size: 9px; writing-mode: vertical-rl; padding: 10px 0; transition: transform .18s var(--ease); }
.spine-btn:hover { transform: translateY(-10px); }
.spine-btn.is-on { box-shadow: 0 0 0 3px var(--green), 0 10px 24px rgba(0,0,0,.5); transform: translateY(-14px); }
